feature/dfg-details #169
+33
@@ -0,0 +1,33 @@
|
||||
<div class="deliverables-tab">
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>assignment</mat-icon>
|
||||
<h2>Deliverables ({{ deliverables.length }})</h2>
|
||||
</div>
|
||||
<div class="deliverables-list">
|
||||
@for (deliv of deliverables; track deliv.url) {
|
||||
<div class="deliverable-item">
|
||||
<div class="deliv-icon">
|
||||
<mat-icon>file_present</mat-icon>
|
||||
</div>
|
||||
<div class="deliv-info">
|
||||
<div class="deliv-description">
|
||||
{{ deliv.description || 'Ohne Beschreibung' }}
|
||||
</div>
|
||||
<div class="deliv-meta">
|
||||
@if (deliv.deliverableType) {
|
||||
<span class="deliv-type">{{ deliv.deliverableType }}</span>
|
||||
}
|
||||
@if (deliv.url) {
|
||||
<a [href]="deliv.url" target="_blank" class="deliv-link">
|
||||
<mat-icon>open_in_new</mat-icon>
|
||||
<span>Zum Deliverable</span>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</mat-card>
|
||||
</div>
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
// Deliverables
|
||||
.deliverables-list {
|
||||
padding: 16px 20px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.deliverable-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #f8fafc;
|
||||
}
|
||||
}
|
||||
|
||||
.deliv-icon {
|
||||
flex-shrink: 0;
|
||||
color: #7b1fa2;
|
||||
|
||||
mat-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.deliv-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.deliv-description {
|
||||
font-weight: 500;
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.deliv-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
align-items: center;
|
||||
|
||||
.deliv-type {
|
||||
padding: 1px 8px;
|
||||
background: #f3e5f5;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #7b1fa2;
|
||||
}
|
||||
|
||||
.deliv-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: var(--sg-primary, #0066cc);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.deliverable-item {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
border-color: #d9e2f0 !important;
|
||||
border-radius: var(--sg-radius-md) !important;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { HEUDeliverable } from '../../../../api';
|
||||
import { Router } from '@angular/router';
|
||||
import { Input } from '@angular/core';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { MatCard } from '@angular/material/card';
|
||||
@Component({
|
||||
selector: 'app-deliverables-cards',
|
||||
imports: [MatIcon, MatCard],
|
||||
templateUrl: './deliverables-cards.component.html',
|
||||
styleUrl: './deliverables-cards.component.scss',
|
||||
})
|
||||
export class DeliverablesCardsComponent {
|
||||
@Input() deliverables: HEUDeliverable[] = [];
|
||||
@Input() showHeader: boolean = true;
|
||||
@Input() headerTitle: string = 'Deliverables';
|
||||
}
|
||||
@@ -475,108 +475,20 @@
|
||||
|
||||
<!-- Organizations Tab -->
|
||||
@if (activeTab === 'organizations' && euProject.organizations) {
|
||||
<app-organizations-table [orgs]="euProject.organizations"/>
|
||||
<app-organizations-table [orgs]="euProject.organizations" />
|
||||
}
|
||||
@if (activeTab === 'publications' && euProject.publications) {
|
||||
<app-publications-table [publications]="euProject.publications"/>
|
||||
<app-publications-table [publications]="euProject.publications" />
|
||||
}
|
||||
|
||||
|
||||
<!-- IPRs Tab -->
|
||||
@if (activeTab === 'iprs' && euProject.iprs) {
|
||||
<div class="iprs-tab">
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>gavel</mat-icon>
|
||||
<h2>Intellectual Property Rights ({{ euProject.iprs.length }})</h2>
|
||||
</div>
|
||||
<div class="iprs-list">
|
||||
@for (ipr of euProject.iprs; track ipr.title) {
|
||||
<div class="ipr-item" (click)="searchForPatent(ipr)">
|
||||
<div class="ipr-icon">
|
||||
@if (ipr.type === 'PATENT') {
|
||||
<mat-icon>emoji_events</mat-icon>
|
||||
} @else {
|
||||
<mat-icon>copyright</mat-icon>
|
||||
}
|
||||
</div>
|
||||
<div class="ipr-info">
|
||||
<div class="ipr-title">{{ ipr.title || 'Ohne Titel' }}</div>
|
||||
<div class="ipr-details">
|
||||
@if (ipr.type) {
|
||||
<span class="ipr-type">{{ ipr.type }}</span>
|
||||
}
|
||||
@if (ipr.patentType) {
|
||||
<span class="ipr-patent-type">{{
|
||||
ipr.patentType
|
||||
}}</span>
|
||||
}
|
||||
@if (ipr.applicantName) {
|
||||
<span class="ipr-applicant"
|
||||
>Applicant: {{ ipr.applicantName }}</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
<div class="ipr-identifiers">
|
||||
@if (ipr.applicationIdentifier) {
|
||||
<span class="ipr-app-id"
|
||||
>App: {{ ipr.applicationIdentifier }}</span
|
||||
>
|
||||
}
|
||||
@if (ipr.awardIdentifier) {
|
||||
<span class="ipr-award-id"
|
||||
>Award: {{ ipr.awardIdentifier }}</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</mat-card>
|
||||
</div>
|
||||
<app-patents-cards [patents]="euProject.iprs" />
|
||||
}
|
||||
|
||||
<!-- Deliverables Tab -->
|
||||
@if (activeTab === 'deliverables' && notEmpty(euProject.deliverables)) {
|
||||
<div class="deliverables-tab">
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>assignment</mat-icon>
|
||||
<h2>Deliverables ({{ euProject.deliverables?.length }})</h2>
|
||||
</div>
|
||||
<div class="deliverables-list">
|
||||
@for (deliv of euProject.deliverables; track deliv.url) {
|
||||
<div class="deliverable-item">
|
||||
<div class="deliv-icon">
|
||||
<mat-icon>file_present</mat-icon>
|
||||
</div>
|
||||
<div class="deliv-info">
|
||||
<div class="deliv-description">
|
||||
{{ deliv.description || 'Ohne Beschreibung' }}
|
||||
</div>
|
||||
<div class="deliv-meta">
|
||||
@if (deliv.deliverableType) {
|
||||
<span class="deliv-type">{{
|
||||
deliv.deliverableType
|
||||
}}</span>
|
||||
}
|
||||
@if (deliv.url) {
|
||||
<a
|
||||
[href]="deliv.url"
|
||||
target="_blank"
|
||||
class="deliv-link">
|
||||
<mat-icon>open_in_new</mat-icon>
|
||||
<span>Zum Deliverable</span>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</mat-card>
|
||||
</div>
|
||||
@if (activeTab === 'deliverables' && euProject.deliverables) {
|
||||
<app-deliverables-cards [deliverables]="euProject.deliverables" />
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,8 +16,9 @@ import {
|
||||
import { EuProjectData } from '../../../api/model/euProjectData';
|
||||
import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component';
|
||||
import { OrganizationsTableComponent } from './organizations-table/organizations-table/organizations-table.component';
|
||||
import { Fp7ProjectIPR } from '../../../api';
|
||||
import { PublicationsTableComponent } from './publications-table/publications-table.component';
|
||||
import { PatentsCardsComponent } from './patents-cards/patents-cards.component';
|
||||
import { DeliverablesCardsComponent } from './deliverables-cards/deliverables-cards.component';
|
||||
export type TabType =
|
||||
| 'overview'
|
||||
| 'organizations'
|
||||
@@ -39,6 +40,8 @@ export type TabType =
|
||||
TopicChipComponent,
|
||||
OrganizationsTableComponent,
|
||||
PublicationsTableComponent,
|
||||
PatentsCardsComponent,
|
||||
DeliverablesCardsComponent,
|
||||
],
|
||||
templateUrl: './eu-details.component.html',
|
||||
styleUrl: './eu-details.component.scss',
|
||||
@@ -488,12 +491,4 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// ============= SEARCH / NAVIGATION METHODS =============
|
||||
|
||||
searchForPatent(patent: Fp7ProjectIPR): void {
|
||||
this.router.navigate(['/patents'], {
|
||||
queryParams: {
|
||||
search: patent.title,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
<div class="patents-tab">
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<div class="section-header">
|
||||
<mat-icon>gavel</mat-icon>
|
||||
<h2>Intellectual Property Rights ({{ patents.length }})</h2>
|
||||
</div>
|
||||
<div class="patents-list">
|
||||
@for (ipr of patents; track ipr.title) {
|
||||
<div class="ipr-item" (click)="searchForPatent(ipr)">
|
||||
<div class="ipr-icon">
|
||||
@if (ipr.type === 'PATENT') {
|
||||
<mat-icon>emoji_events</mat-icon>
|
||||
} @else {
|
||||
<mat-icon>copyright</mat-icon>
|
||||
}
|
||||
</div>
|
||||
<div class="ipr-info">
|
||||
<div class="ipr-title">{{ ipr.title || 'Ohne Titel' }}</div>
|
||||
<div class="ipr-details">
|
||||
@if (ipr.type) {
|
||||
<span class="ipr-type">{{ ipr.type }}</span>
|
||||
}
|
||||
@if (ipr.patentType) {
|
||||
<span class="ipr-patent-type">{{ ipr.patentType }}</span>
|
||||
}
|
||||
@if (ipr.applicantName) {
|
||||
<span class="ipr-applicant"
|
||||
>Applicant: {{ ipr.applicantName }}</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
<div class="ipr-identifiers">
|
||||
@if (ipr.applicationIdentifier) {
|
||||
<span class="ipr-app-id"
|
||||
>App: {{ ipr.applicationIdentifier }}</span
|
||||
>
|
||||
}
|
||||
@if (ipr.awardIdentifier) {
|
||||
<span class="ipr-award-id"
|
||||
>Award: {{ ipr.awardIdentifier }}</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</mat-card>
|
||||
</div>
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
// IPRs
|
||||
.iprs-list {
|
||||
padding: 16px 20px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ipr-item {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #f8fafc;
|
||||
}
|
||||
}
|
||||
|
||||
.ipr-icon {
|
||||
flex-shrink: 0;
|
||||
color: #f39c12;
|
||||
|
||||
mat-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.ipr-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ipr-title {
|
||||
font-weight: 500;
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.ipr-details {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
|
||||
.ipr-type {
|
||||
padding: 1px 8px;
|
||||
background: #fff3e0;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #e65100;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.ipr-patent-type {
|
||||
padding: 1px 8px;
|
||||
background: #e8eaf6;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #283593;
|
||||
}
|
||||
|
||||
.ipr-applicant {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
.ipr-identifiers {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
.ipr-app-id,
|
||||
.ipr-award-id {
|
||||
padding: 1px 8px;
|
||||
background: #f5f7fa;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
}
|
||||
|
||||
.ipr-item {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { Fp7ProjectIPR } from '../../../../api';
|
||||
import { Router } from '@angular/router';
|
||||
import { Input } from '@angular/core';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { MatCard } from '@angular/material/card';
|
||||
@Component({
|
||||
selector: 'app-patents-cards',
|
||||
imports: [MatIcon, MatCard],
|
||||
templateUrl: './patents-cards.component.html',
|
||||
styleUrl: './patents-cards.component.scss',
|
||||
})
|
||||
export class PatentsCardsComponent {
|
||||
@Input() patents: Fp7ProjectIPR[] = [];
|
||||
@Input() showHeader: boolean = true;
|
||||
@Input() headerTitle: string = 'IPRs';
|
||||
private router = inject(Router);
|
||||
searchForPatent(patent: Fp7ProjectIPR): void {
|
||||
this.router.navigate(['/patents'], {
|
||||
queryParams: {
|
||||
search: patent.title,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
+3
@@ -231,3 +231,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.deliverable-item {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user