Merge pull request 'refactor/icons' (#293) from refactor/icons into dev
LocationBasedServices/smartguide/pipeline/head This commit looks good

Reviewed-on: #293
This commit was merged in pull request #293.
This commit is contained in:
2026-08-18 12:25:21 +02:00
186 changed files with 1813 additions and 589 deletions
@@ -61,7 +61,7 @@
<mat-dialog-actions align="end">
<button mat-button type="button" (click)="close()">Abbrechen</button>
<button mat-flat-button color="primary" type="button" (click)="submit()">
<mat-icon>save</mat-icon>
<mat-icon>{{ SAVE_ICON }}</mat-icon>
Speichern
</button>
</mat-dialog-actions>
@@ -21,6 +21,7 @@ import {
InseAccountManagementModelOrganizationProfile,
UserRole,
} from '../../api';
import { SAVE_ICON } from '../../shared/ui/icons';
export type AccountDialogMode = 'create' | 'edit';
@@ -71,6 +72,8 @@ export type AccountDialogResult =
standalone: true,
})
export class AccountDialogComponent {
readonly SAVE_ICON = SAVE_ICON;
private readonly dialogRef =
inject<
MatDialogRef<AccountDialogComponent, AccountDialogResult | undefined>
@@ -31,7 +31,7 @@
type="button"
matTooltip="Neuen Account anlegen"
(click)="startCreate()">
<mat-icon>person_add</mat-icon>
<mat-icon>{{ PERSON_ADD_ICON }}</mat-icon>
Neuer Account
</button>
}
@@ -68,7 +68,7 @@
type="button"
aria-label="Bearbeiten"
(click)="startEdit(row)">
<mat-icon>edit</mat-icon>
<mat-icon>{{ EDIT_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -76,7 +76,7 @@
aria-label="Impersonate"
[disabled]="!canImpersonate(row)"
(click)="impersonate(row)">
<mat-icon>switch_account</mat-icon>
<mat-icon>{{ SWITCH_ACCOUNT_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -84,7 +84,9 @@
[attr.aria-label]="row.activated ? 'Deaktivieren' : 'Aktivieren'"
[disabled]="row.is_current || row.deleted"
(click)="toggleAccountActivation(row)">
<mat-icon>{{ row.activated ? 'person_off' : 'person_check' }}</mat-icon>
<mat-icon>{{
row.activated ? PERSON_OFF_ICON : PERSON_CHECK_ICON
}}</mat-icon>
</button>
<button
mat-icon-button
@@ -92,7 +94,7 @@
aria-label="Deaktivieren"
[disabled]="row.is_current || row.deleted"
(click)="deleteAccount(row)">
<mat-icon>delete</mat-icon>
<mat-icon>{{ DELETE_ICON }}</mat-icon>
</button>
</div>
</ng-template>
@@ -44,6 +44,14 @@ import {
UserRole,
} from '../../api';
import { StatusPipe } from '../../shared/pipes/status.pipe';
import {
DELETE_ICON,
EDIT_ICON,
PERSON_ADD_ICON,
PERSON_CHECK_ICON,
PERSON_OFF_ICON,
SWITCH_ACCOUNT_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-accounts',
@@ -71,6 +79,13 @@ import { StatusPipe } from '../../shared/pipes/status.pipe';
standalone: true,
})
export class AccountsComponent implements OnInit {
readonly PERSON_ADD_ICON = PERSON_ADD_ICON;
readonly EDIT_ICON = EDIT_ICON;
readonly SWITCH_ACCOUNT_ICON = SWITCH_ACCOUNT_ICON;
readonly PERSON_CHECK_ICON = PERSON_CHECK_ICON;
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
readonly DELETE_ICON = DELETE_ICON;
protected readonly credentialService = inject(CredentialService);
private readonly snackBar = inject(MatSnackBar);
private readonly router = inject(Router);
@@ -58,7 +58,7 @@
"
(click)="showPassword = !showPassword">
<mat-icon>{{
showPassword ? 'visibility' : 'visibility_off'
showPassword ? VISIBILITY_ICON : VISIBILITY_OFF_ICON
}}</mat-icon>
</button>
@if (credentialsForm.controls.password.hasError('required')) {
@@ -91,7 +91,7 @@
} @else {
<form class="login-form" [formGroup]="otkForm" (ngSubmit)="login()">
<div class="code-intro">
<mat-icon>mark_email_unread</mat-icon>
<mat-icon>{{ EMAIL_UNREAD_ICON }}</mat-icon>
<div>
<strong>Code eingeben</strong>
<span>
@@ -123,7 +123,7 @@
class="expiry"
[class.expiry--expired]="codeExpiresIn === 0"
aria-live="polite">
<mat-icon>timer</mat-icon>
<mat-icon>{{ TIMER_ICON }}</mat-icon>
@if (codeExpiresIn > 0) {
<span>Code läuft in {{ formatCountdown() }} ab.</span>
} @else {
@@ -15,6 +15,12 @@ import { finalize, Subscription } from 'rxjs';
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
import { Router, RouterLink } from '@angular/router';
import { HttpErrorResponse } from '@angular/common/http';
import {
EMAIL_UNREAD_ICON,
TIMER_ICON,
VISIBILITY_ICON,
VISIBILITY_OFF_ICON,
} from '../../shared/ui/icons';
type LoginStep = 'credentials' | 'otk';
@@ -35,6 +41,11 @@ type LoginStep = 'credentials' | 'otk';
standalone: true,
})
export class AppLoginComponent implements OnDestroy {
readonly EMAIL_UNREAD_ICON = EMAIL_UNREAD_ICON;
readonly TIMER_ICON = TIMER_ICON;
readonly VISIBILITY_ICON = VISIBILITY_ICON;
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
credentialsForm = new FormGroup({
email: new FormControl<string>('', [Validators.required, Validators.email]),
password: new FormControl<string>('', [
@@ -6,7 +6,7 @@
<p>Gespeicherte Personen für den schnellen Zugriff.</p>
</div>
<div class="bookmark-count">
<mat-icon>bookmarks</mat-icon>
<mat-icon>{{ BOOKMARKS_ICON }}</mat-icon>
<strong>{{ persons().length }}</strong>
<span>Personen</span>
</div>
@@ -15,7 +15,7 @@
@if (loading()) {
<app-loading
text="Bookmarks werden geladen …"
icon="bookmarks"
[icon]="BOOKMARKS_ICON"
[size]="60"
[diameter]="60" />
} @else if (persons().length) {
@@ -30,7 +30,7 @@
</section>
} @else {
<section class="empty-state">
<mat-icon>bookmark_border</mat-icon>
<mat-icon>{{ BOOKMARK_BORDER_ICON }}</mat-icon>
<h2>Noch keine Bookmarks</h2>
<p>
Speichere Personen über das Bookmark-Symbol auf einer Personenkarte.
@@ -8,6 +8,7 @@ import { CustomAuthor, PersonsService } from '../../api';
import { BookmarkService } from '../../shared/services/bookmark.service';
import { PersonCardComponent } from '../person-card/person-card.component';
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
import { BOOKMARKS_ICON, BOOKMARK_BORDER_ICON } from '../../shared/ui/icons';
const PERSON_INCLUDE_TAGS =
'display_name,works_count,cited_by_count,summary_stats,ids,' +
@@ -22,6 +23,9 @@ const PERSON_INCLUDE_TAGS =
styleUrl: './bookmarks.component.scss',
})
export class BookmarksComponent {
readonly BOOKMARKS_ICON = BOOKMARKS_ICON;
readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON;
readonly bookmarkService = inject(BookmarkService);
private readonly personsService = inject(PersonsService);
private readonly destroyRef = inject(DestroyRef);
@@ -1,7 +1,7 @@
@if (visible()) {
<mat-card appearance="outlined" class="research-profile-card">
<mat-card-header class="profile-header">
<mat-icon class="profile-icon">science</mat-icon>
<mat-icon class="profile-icon">{{ SCIENCE_ICON }}</mat-icon>
<div class="profile-heading">
<mat-card-title>Forschungsprofil</mat-card-title>
<mat-card-subtitle>
@@ -11,6 +11,7 @@ import {
AuthorCategoryPieComponent,
buildAuthorCategoryLegend,
} from './author-category-pie.component';
import { SCIENCE_ICON } from '../../../shared/ui/icons';
export interface ResearchProfileAuthor {
authorId: string;
@@ -36,6 +37,8 @@ interface AuthorOrientationView {
styleUrl: './author-research-profile.component.scss',
})
export class AuthorResearchProfileComponent {
readonly SCIENCE_ICON = SCIENCE_ICON;
private readonly chartTheme = inject(ChartThemeService);
authors = input.required<ResearchProfileAuthor[]>();
@@ -22,7 +22,7 @@
<div class="meta-row">
<span class="meta-label">Betrachteter Zeitraum:</span>
<app-chip color="secondary">
<mat-icon>date_range</mat-icon>
<mat-icon>{{ DATE_RANGE_ICON }}</mat-icon>
{{ span.from }}–{{ span.to }}
</app-chip>
</div>
@@ -42,7 +42,7 @@
]"
title="Zur Autor:innen-Seite">
{{ author.name }}
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</app-chip>
}
@@ -181,7 +181,7 @@
]"
title="Zur Autor:innen-Seite">
{{ author.name }}
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</app-chip>
</th>
@@ -198,7 +198,7 @@
<mat-icon
class="icon-small name-match-star"
aria-hidden="true">
star
{{ STAR_ICON }}
</mat-icon>
}
</span>
@@ -257,7 +257,7 @@
</div>
@if (hasNameMatchedRow(rows)) {
<p class="name-match-note">
<mat-icon class="icon-small">star</mat-icon>
<mat-icon class="icon-small">{{ STAR_ICON }}</mat-icon>
Diese Kennzahlen basieren auf einem automatischen Namensabgleich mit
externen Quellen, wodurch es in Einzelfällen zu Fehlzuordnungen kommen
kann.
@@ -29,6 +29,11 @@ import { ChipComponent } from '../../shared/ui/chip/chip.component';
import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.component';
import { ChartThemeService } from '../../shared/services/chart-theme.service';
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
import {
DATE_RANGE_ICON,
OPEN_IN_NEW_ICON,
STAR_ICON,
} from '../../shared/ui/icons';
import {
AUTHOR_COLORS,
OTHER_COLOR,
@@ -135,6 +140,10 @@ interface SegmentDef {
styleUrl: './compare-authors.component.scss',
})
export class CompareAuthorsComponent implements OnInit {
readonly DATE_RANGE_ICON = DATE_RANGE_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly STAR_ICON = STAR_ICON;
private readonly route = inject(ActivatedRoute);
private readonly rankingService = inject(RankingService);
private readonly topicsService = inject(TopicsService);
@@ -44,7 +44,7 @@
matTooltip="Anzahl der Publikationen im ausgewählten Zeitraum"
matTooltipPosition="above">
<div class="statistics-icon statistics-icon--publications">
<mat-icon>menu_book</mat-icon>
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
</div>
<div>
<span>Publikationen</span>
@@ -66,7 +66,7 @@
matTooltip="Anzahl der Personen im ausgewählten Zeitraum"
matTooltipPosition="above">
<div class="statistics-icon statistics-icon--persons">
<mat-icon>groups</mat-icon>
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
</div>
<div>
<span>Personen</span>
@@ -111,7 +111,7 @@
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden EU-Projekte im ausgewählten Zeitraum"
matTooltipPosition="above">
<div class="statistics-icon statistics-icon--eu-projects">
<mat-icon>public</mat-icon>
<mat-icon>{{ PUBLIC_ICON }}</mat-icon>
</div>
<div>
<span>EU-Projekte</span>
@@ -133,7 +133,7 @@
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden Bund-Projekte im ausgewählten Zeitraum"
matTooltipPosition="above">
<div class="statistics-icon statistics-icon--bund-projects">
<mat-icon>account_balance</mat-icon>
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
</div>
<div>
<span>Bund-Projekte</span>
@@ -155,7 +155,7 @@
matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden DFG-Projekte im ausgewählten Zeitraum"
matTooltipPosition="above">
<div class="statistics-icon statistics-icon--dfg-projects">
<mat-icon>science</mat-icon>
<mat-icon>{{ SCIENCE_ICON }}</mat-icon>
</div>
<div>
<span>DFG-Projekte</span>
@@ -230,7 +230,7 @@
<div class="project-status-loading" role="status" aria-live="polite">
<app-loading
text="Projektstatus wird geladen …"
icon="stacked_bar_chart"
[icon]="STACKED_BAR_CHART_ICON"
size="64"
diameter="64"></app-loading>
</div>
@@ -267,7 +267,7 @@
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="Treemap-Daten für den gewählten Zeitraum werden geladen …"
icon="account_tree"
[icon]="ACCOUNT_TREE_ICON"
size="72"
diameter="72"></app-loading>
</div>
@@ -308,7 +308,7 @@
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="DFG-Topics werden geladen …"
icon="account_tree"
[icon]="ACCOUNT_TREE_ICON"
size="72"
diameter="72"></app-loading>
</div>
@@ -351,7 +351,7 @@
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="EU-Topics werden geladen …"
icon="account_tree"
[icon]="ACCOUNT_TREE_ICON"
size="72"
diameter="72"></app-loading>
</div>
@@ -394,7 +394,7 @@
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
text="BUND-Topics werden geladen …"
icon="account_tree"
[icon]="ACCOUNT_TREE_ICON"
size="72"
diameter="72"></app-loading>
</div>
@@ -7,7 +7,18 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { MatDialog } from '@angular/material/dialog';
import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive';
import { AppAuthorTooltipComponent } from '../../shared/ui/app-author-tooltip/app-author-tooltip.component';
import { PATENT_ICON } from '../../shared/ui/icons';
import {
ACCOUNT_BALANCE_ICON,
ACCOUNT_TREE_ICON,
ARTICLE_ICON,
DESCRIPTION_ICON,
GROUPS_ICON,
MENU_BOOK_ICON,
PATENT_ICON,
PUBLIC_ICON,
SCIENCE_ICON,
STACKED_BAR_CHART_ICON,
} from '../../shared/ui/icons';
import { EuProjectStatusChartComponent } from './eu-project-status-chart/eu-project-status-chart.component';
import { YearRangeSliderComponent } from '../../shared/ui/year-range-slider/year-range-slider.component';
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
@@ -76,6 +87,14 @@ type DashboardPeriodMode =
export class DashboardComponent implements OnInit {
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
readonly patentIcon = PATENT_ICON;
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
readonly GROUPS_ICON = GROUPS_ICON;
readonly PUBLIC_ICON = PUBLIC_ICON;
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
readonly SCIENCE_ICON = SCIENCE_ICON;
readonly STACKED_BAR_CHART_ICON = STACKED_BAR_CHART_ICON;
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
statistics?: Partial<DashboardStatistics>;
statisticsLoading = false;
statisticsError = false;
@@ -192,26 +211,30 @@ export class DashboardComponent implements OnInit {
return [
{
title: 'Publikationen',
icon: 'menu_book',
icon: MENU_BOOK_ICON,
entries: this.topAuthors?.works ?? [],
},
{
title: 'EU-Projekte',
icon: 'public',
icon: PUBLIC_ICON,
entries: this.topAuthors?.eu_projects ?? [],
},
{
title: 'Patente',
icon: 'description',
icon: DESCRIPTION_ICON,
entries: this.topAuthors?.patents ?? [],
},
{
title: 'DFG Projekte',
icon: 'account_tree',
icon: ACCOUNT_TREE_ICON,
entries: this.topAuthors?.projects ?? [],
stripAuthorTitle: true,
},
{ title: 'News', icon: 'article', entries: this.topAuthors?.news ?? [] },
{
title: 'News',
icon: ARTICLE_ICON,
entries: this.topAuthors?.news ?? [],
},
];
}
@@ -22,7 +22,7 @@
type="button"
aria-label="Dialog schließen"
mat-dialog-close>
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
</div>
@@ -32,7 +32,7 @@
<span
class="topic-context-icon topic-context-icon--field"
aria-hidden="true">
<mat-icon>category</mat-icon>
<mat-icon>{{ CATEGORY_ICON }}</mat-icon>
</span>
<span class="topic-context-copy">
<span class="topic-context-label">Field</span>
@@ -41,14 +41,14 @@
}}</strong>
</span>
</div>
<mat-icon class="topic-context-arrow" aria-hidden="true"
>chevron_right</mat-icon
>
<mat-icon class="topic-context-arrow" aria-hidden="true">{{
CHEVRON_RIGHT_ICON
}}</mat-icon>
<div class="topic-context-item">
<span
class="topic-context-icon topic-context-icon--subfield"
aria-hidden="true">
<mat-icon>account_tree</mat-icon>
<mat-icon>{{ ACCOUNT_TREE_ICON }}</mat-icon>
</span>
<span class="topic-context-copy">
<span class="topic-context-label">Subfield</span>
@@ -57,14 +57,14 @@
}}</strong>
</span>
</div>
<mat-icon class="topic-context-arrow" aria-hidden="true"
>chevron_right</mat-icon
>
<mat-icon class="topic-context-arrow" aria-hidden="true">{{
CHEVRON_RIGHT_ICON
}}</mat-icon>
<div class="topic-context-item topic-context-item--topic">
<span
class="topic-context-icon topic-context-icon--topic"
aria-hidden="true">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
</span>
<span class="topic-context-copy">
<span class="topic-context-label">Topic</span>
@@ -90,7 +90,7 @@
@if (loading) {
<div class="word-cloud-state">
<span class="state-icon state-icon--loading" aria-hidden="true">
<mat-icon>hourglass_top</mat-icon>
<mat-icon>{{ HOURGLASS_ICON }}</mat-icon>
</span>
<strong>Wordcloud wird erstellt</strong>
<span>Die wichtigsten Keywords werden geladen …</span>
@@ -98,7 +98,7 @@
} @else if (loadFailed) {
<div class="word-cloud-state word-cloud-state--error">
<span class="state-icon" aria-hidden="true"
><mat-icon>cloud_off</mat-icon></span
><mat-icon>{{ CLOUD_OFF_ICON }}</mat-icon></span
>
<strong>Wordcloud nicht verfügbar</strong>
<span>Die Keywords konnten nicht geladen werden.</span>
@@ -106,7 +106,7 @@
} @else if (words.length) {
<div class="keyword-toolbar" aria-label="Ausgewählte Keywords">
<div class="keyword-toolbar-label">
<mat-icon aria-hidden="true">tune</mat-icon>
<mat-icon aria-hidden="true">{{ TUNE_ICON }}</mat-icon>
<span>
<strong>Keyword-Auswahl</strong>
<small
@@ -124,7 +124,7 @@
[attr.aria-label]="word.name + ' aus Auswahl entfernen'"
(click)="toggleWord(word)">
{{ word.name }}
<mat-icon aria-hidden="true">close</mat-icon>
<mat-icon aria-hidden="true">{{ CLOSE_ICON }}</mat-icon>
</button>
} @empty {
<span class="keyword-selection-empty">Noch nichts ausgewählt</span>
@@ -157,7 +157,7 @@
? $event.preventDefault()
: closeForSearchNavigation()
">
<mat-icon aria-hidden="true">manage_search</mat-icon>
<mat-icon aria-hidden="true">{{ MANAGE_SEARCH_ICON }}</mat-icon>
Suche in Keywords
</a>
<a
@@ -178,7 +178,7 @@
? $event.preventDefault()
: closeForSearchNavigation()
">
<mat-icon aria-hidden="true">search</mat-icon>
<mat-icon aria-hidden="true">{{ SEARCH_ICON }}</mat-icon>
Suche in Themen
</a>
</div>
@@ -208,7 +208,7 @@
} @else {
<div class="word-cloud-state">
<span class="state-icon" aria-hidden="true"
><mat-icon>search_off</mat-icon></span
><mat-icon>{{ SEARCH_OFF_ICON }}</mat-icon></span
>
<strong>Keine Keywords gefunden</strong>
<span
@@ -14,6 +14,19 @@ import {
DashboardStatisticsService,
TopicWordCloudWord,
} from '../dashboard-statistics.service';
import {
ACCOUNT_TREE_ICON,
CATEGORY_ICON,
CHEVRON_RIGHT_ICON,
CLOSE_ICON,
CLOUD_OFF_ICON,
HOURGLASS_ICON,
LABEL_ICON,
MANAGE_SEARCH_ICON,
SEARCH_ICON,
SEARCH_OFF_ICON,
TUNE_ICON,
} from '../../../shared/ui/icons';
export interface TopicWordCloudDialogData {
topicId: string;
@@ -46,6 +59,18 @@ interface DisplayWord extends TopicWordCloudWord {
styleUrl: './topic-wordcloud-dialog.component.scss',
})
export class TopicWordCloudDialogComponent {
readonly CLOSE_ICON = CLOSE_ICON;
readonly CATEGORY_ICON = CATEGORY_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
readonly LABEL_ICON = LABEL_ICON;
readonly HOURGLASS_ICON = HOURGLASS_ICON;
readonly CLOUD_OFF_ICON = CLOUD_OFF_ICON;
readonly TUNE_ICON = TUNE_ICON;
readonly MANAGE_SEARCH_ICON = MANAGE_SEARCH_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
readonly data = inject<TopicWordCloudDialogData>(MAT_DIALOG_DATA);
private readonly dialogRef = inject(
MatDialogRef<TopicWordCloudDialogComponent>,
@@ -7,7 +7,7 @@
aria-describedby="error-message">
<mat-card-content class="error-content">
<div class="icon-wrapper" aria-hidden="true">
<mat-icon class="error-icon">warning</mat-icon>
<mat-icon class="error-icon">{{ WARNING_ICON }}</mat-icon>
</div>
<span class="status-code"> Fehler {{ error().statusCode }} </span>
@@ -34,12 +34,12 @@
color="primary"
type="button"
(click)="goBack()">
<mat-icon aria-hidden="true">arrow_back</mat-icon>
<mat-icon aria-hidden="true">{{ ARROW_BACK_ICON }}</mat-icon>
Zurück
</button>
<a mat-button routerLink="/" aria-label="Zur Startseite">
<mat-icon aria-hidden="true">home</mat-icon>
<mat-icon aria-hidden="true">{{ HOME_ICON }}</mat-icon>
Startseite
</a>
</div>
@@ -14,6 +14,12 @@ import { MatExpansionModule } from '@angular/material/expansion';
import { MatIconModule } from '@angular/material/icon';
import { ErrorService, ErrorState } from '../../shared/services/error.service';
import { RouterLink } from '@angular/router';
import {
ARROW_BACK_ICON,
HOME_ICON,
WARNING_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-error-page',
standalone: true,
@@ -28,6 +34,10 @@ import { RouterLink } from '@angular/router';
styleUrl: './error-page.component.scss',
})
export class ErrorPageComponent {
readonly WARNING_ICON = WARNING_ICON;
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
readonly HOME_ICON = HOME_ICON;
readonly routeStatusCode = input(500, { transform: numberAttribute });
readonly routeTitle = input('Da ist was schiefgelaufen');
readonly routeMessage = input(
@@ -13,7 +13,7 @@
<div class="login-form">
<div class="code-intro">
<mat-icon>
{{ rateLimited() ? 'hourglass_empty' : 'mark_email_unread' }}
{{ rateLimited() ? HOURGLASS_EMPTY_ICON : EMAIL_UNREAD_ICON }}
</mat-icon>
<div>
@if (rateLimited()) {
@@ -35,7 +35,7 @@
@if (errorMessage()) {
<div class="code-intro">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<div>
<strong>Fehler</strong>
<span>{{ errorMessage() }}</span>
@@ -75,7 +75,7 @@
@if (errorMessage()) {
<div class="code-intro">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<div>
<strong>Fehler</strong>
<span>{{ errorMessage() }}</span>
@@ -13,6 +13,11 @@ import { MatInputModule } from '@angular/material/input';
import { MatIconModule } from '@angular/material/icon';
import { CredentialService } from '../../shared/services/credential.service';
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
import {
EMAIL_UNREAD_ICON,
ERROR_OUTLINE_ICON,
HOURGLASS_EMPTY_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-forgot-password',
@@ -30,6 +35,10 @@ import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
standalone: true,
})
export class ForgotPasswordComponent {
readonly HOURGLASS_EMPTY_ICON = HOURGLASS_EMPTY_ICON;
readonly EMAIL_UNREAD_ICON = EMAIL_UNREAD_ICON;
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
private readonly credentialService = inject(CredentialService);
private readonly snackBar = inject(MatSnackBar);
@@ -1,7 +1,7 @@
@if (loading) {
<app-loading
text="Patentdaten werden geladen..."
icon="workspace_premium"
[icon]="PATENT_ICON"
[size]="150"
[diameter]="150" />
} @else if (error) {
@@ -25,7 +25,7 @@
<mat-form-field
class="patents-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="rule"></mat-icon>
<mat-icon matPrefix [fontIcon]="RULE_ICON"></mat-icon>
<mat-select
[value]="activeMatchType"
(selectionChange)="setMatchType($event.value)">
@@ -42,7 +42,7 @@
<mat-form-field
class="patents-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="sort"></mat-icon>
<mat-icon matPrefix [fontIcon]="SORT_ICON"></mat-icon>
<mat-select
[value]="sortColumn"
(selectionChange)="setSort($event.value)">
@@ -155,7 +155,7 @@
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">chevron_right</mat-icon>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
@@ -18,6 +18,13 @@ import { ComponentTooltipDirective } from '../../directives/component-tooltip.di
import { AppAuthorTooltipComponent } from '../../shared/ui/app-author-tooltip/app-author-tooltip.component';
import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component';
import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component';
import {
CHEVRON_RIGHT_ICON,
FILTER_ICON,
PATENT_ICON,
RULE_ICON,
SORT_ICON,
} from '../../shared/ui/icons';
type SortColumn = 'title' | 'publication_year' | 'source' | 'match_type';
type SortDirection = 'asc' | 'desc';
@@ -42,6 +49,12 @@ type OrgPatentMatchTypeFilter = 'all' | 'institution' | 'name' | 'both';
styleUrl: './institution-patents.component.scss',
})
export class InstitutionPatentsComponent implements OnInit {
readonly PATENT_ICON = PATENT_ICON;
readonly RULE_ICON = RULE_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly SORT_ICON = SORT_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
private route = inject(ActivatedRoute);
private router = inject(Router);
@@ -81,7 +81,7 @@
<ng-template #euProjectActionsTmp let-row>
<a mat-icon-button color="primary" [routerLink]="['/projects/eu', row.id]">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
@@ -90,7 +90,7 @@
mat-icon-button
color="primary"
[routerLink]="['/projects/bund', row.id]">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
</div>
@@ -32,6 +32,8 @@ import {
LinkTabNavBarComponent,
LinkTabNavBarItem,
} from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component';
import { OPEN_IN_NEW_ICON } from '../../shared/ui/icons';
type BundProjectRow = {
id: string;
topic: string;
@@ -71,6 +73,8 @@ type EuProjectRow = {
styleUrl: './institution-projects.component.scss',
})
export class InstitutionProjectsComponent implements OnInit {
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
fundingStartTmp = viewChild.required<TemplateRef<any>>('fundingStartTmp');
fundingEndTmp = viewChild.required<TemplateRef<any>>('fundingEndTmp');
fundingAmountTmp = viewChild.required<TemplateRef<any>>('fundingAmountTmp');
@@ -13,6 +13,7 @@ import {
} from '../../shared/ui/card-search/card-search.component';
import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component';
import { AppInstitutionCardComponent } from '../../shared/ui/app-institution-card/app-institution-card.component';
import { SEARCH_ICON } from '../../shared/ui/icons';
@Component({
selector: 'app-institutions',
@@ -35,7 +36,7 @@ export class InstitutionsComponent {
{
id: 'name',
queryParamKey: 'search',
icon: 'search',
icon: SEARCH_ICON,
},
];
@@ -4,7 +4,7 @@
@if (runsLoading() && runs().length === 0) {
<app-loading
text="Läufe werden geladen …"
icon="history"
[icon]="HISTORY_ICON"
[size]="48"
[diameter]="48" />
} @else if (runsError()) {
@@ -60,7 +60,7 @@
type="button"
[disabled]="selectedRunId() == null"
(click)="downloadLogs()">
<mat-icon>download</mat-icon>
<mat-icon>{{ DOWNLOAD_ICON }}</mat-icon>
Herunterladen
</button>
<button
@@ -71,7 +71,7 @@
matTooltipPosition="above"
[disabled]="loading() || runsLoading()"
(click)="loadRuns()">
<mat-icon>refresh</mat-icon>
<mat-icon>{{ REFRESH_ICON }}</mat-icon>
</button>
</div>
</div>
@@ -80,7 +80,7 @@
@if (loading() && !logs()) {
<app-loading
text="Logs werden geladen …"
icon="description"
[icon]="DESCRIPTION_ICON"
[size]="48"
[diameter]="48" />
} @else {
@@ -29,6 +29,12 @@ import {
formatUtcDateAsLocal,
statusMeta,
} from '../jobs.utils';
import {
DESCRIPTION_ICON,
DOWNLOAD_ICON,
HISTORY_ICON,
REFRESH_ICON,
} from '../../../shared/ui/icons';
export interface JobLogsDialogData {
task: BackgroundJobTask;
@@ -51,6 +57,11 @@ export interface JobLogsDialogData {
standalone: true,
})
export class JobLogsDialogComponent implements OnInit {
readonly HISTORY_ICON = HISTORY_ICON;
readonly DOWNLOAD_ICON = DOWNLOAD_ICON;
readonly REFRESH_ICON = REFRESH_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
private readonly dialogRef = inject(MatDialogRef<JobLogsDialogComponent>);
private readonly backgroundJobsService = inject(BackgroundJobsService);
private readonly destroyRef = inject(DestroyRef);
+10 -10
View File
@@ -13,7 +13,7 @@
type="button"
class="new-job-button"
(click)="openCreateDialog()">
<mat-icon>add</mat-icon>
<mat-icon>{{ ADD_ICON }}</mat-icon>
Neuer Job
</button>
</header>
@@ -48,7 +48,7 @@
matTooltip="Docker-Status aktualisieren"
[disabled]="dockerHealthLoading()"
(click)="refreshDockerHealth()">
<mat-icon>refresh</mat-icon>
<mat-icon>{{ REFRESH_ICON }}</mat-icon>
</button>
</mat-card-content>
</mat-card>
@@ -93,7 +93,7 @@
matTooltip="Nexus-Status aktualisieren"
[disabled]="registryHealthLoading()"
(click)="refreshRegistryHealth()">
<mat-icon>refresh</mat-icon>
<mat-icon>{{ REFRESH_ICON }}</mat-icon>
</button>
</mat-card-content>
</mat-card>
@@ -116,7 +116,7 @@
matTooltipPosition="above"
[disabled]="row.status === 'running' || row.status === 'stopping'"
(click)="openEditDialog(row)">
<mat-icon>edit</mat-icon>
<mat-icon>{{ EDIT_ICON }}</mat-icon>
</button>
<div class="task-name-text">
<strong>{{ row.name }}</strong>
@@ -191,7 +191,7 @@
matTooltip="Jobs aktualisieren"
matTooltipPosition="above"
(click)="refreshTasks()">
<mat-icon>refresh</mat-icon>
<mat-icon>{{ REFRESH_ICON }}</mat-icon>
</button>
</div>
</ng-template>
@@ -206,7 +206,7 @@
matTooltipPosition="above"
[disabled]="row.status === 'running' || row.status === 'stopping'"
(click)="runNow(row)">
<mat-icon>play_arrow</mat-icon>
<mat-icon>{{ PLAY_ARROW_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -216,7 +216,7 @@
matTooltipPosition="above"
[disabled]="row.status !== 'running'"
(click)="stopNow(row)">
<mat-icon>stop</mat-icon>
<mat-icon>{{ STOP_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -226,7 +226,7 @@
matTooltipPosition="above"
[disabled]="!row.last_run"
(click)="openLogsDialog(row)">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -235,7 +235,7 @@
matTooltip="Zeitplan bearbeiten"
matTooltipPosition="above"
(click)="openScheduleDialog(row)">
<mat-icon>edit_calendar</mat-icon>
<mat-icon>{{ EDIT_CALENDAR_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -255,7 +255,7 @@
diameter="18"
mode="indeterminate"></mat-progress-spinner>
} @else {
<mat-icon>delete</mat-icon>
<mat-icon>{{ DELETE_ICON }}</mat-icon>
}
</button>
</div>
@@ -58,6 +58,16 @@ import {
TaskEditDialogComponent,
TaskEditDialogData,
} from './task-edit-dialog/task-edit-dialog.component';
import {
ADD_ICON,
DELETE_ICON,
DESCRIPTION_ICON,
EDIT_CALENDAR_ICON,
EDIT_ICON,
PLAY_ARROW_ICON,
REFRESH_ICON,
STOP_ICON,
} from '../../shared/ui/icons';
const MAX_IDLE_POLL_WAIT_MS = 60000;
@@ -79,6 +89,15 @@ const MAX_IDLE_POLL_WAIT_MS = 60000;
standalone: true,
})
export class JobsComponent implements OnInit {
readonly ADD_ICON = ADD_ICON;
readonly REFRESH_ICON = REFRESH_ICON;
readonly EDIT_ICON = EDIT_ICON;
readonly PLAY_ARROW_ICON = PLAY_ARROW_ICON;
readonly STOP_ICON = STOP_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly EDIT_CALENDAR_ICON = EDIT_CALENDAR_ICON;
readonly DELETE_ICON = DELETE_ICON;
private readonly dialog = inject(MatDialog);
private readonly snackBar = inject(MatSnackBar);
private readonly backgroundJobsService = inject(BackgroundJobsService);
+17 -6
View File
@@ -1,4 +1,11 @@
import { JobRun } from '../../api';
import {
CHECK_CIRCLE_ICON,
ERROR_ICON,
JOBS_ICON,
SCHEDULE_ICON,
STOP_CIRCLE_ICON,
} from '../../shared/ui/icons';
export interface StatusMeta {
label: string;
@@ -7,28 +14,32 @@ export interface StatusMeta {
}
const STATUS_META: Record<string, StatusMeta> = {
running: { label: 'Läuft', icon: 'sync', cssClass: 'task-status--running' },
running: {
label: 'Läuft',
icon: JOBS_ICON,
cssClass: 'task-status--running',
},
stopping: {
label: 'Wird gestoppt',
icon: 'stop_circle',
icon: STOP_CIRCLE_ICON,
cssClass: 'task-status--running',
},
succeeded: {
label: 'Erfolgreich',
icon: 'check_circle',
icon: CHECK_CIRCLE_ICON,
cssClass: 'task-status--success',
},
failed: {
label: 'Fehlgeschlagen',
icon: 'error',
icon: ERROR_ICON,
cssClass: 'task-status--failed',
},
stopped: {
label: 'Gestoppt',
icon: 'stop_circle',
icon: STOP_CIRCLE_ICON,
cssClass: 'task-status--stopped',
},
idle: { label: 'Bereit', icon: 'schedule', cssClass: 'task-status--idle' },
idle: { label: 'Bereit', icon: SCHEDULE_ICON, cssClass: 'task-status--idle' },
};
export function statusMeta(status: string): StatusMeta {
@@ -9,7 +9,7 @@
matSuffix
class="field-info"
matTooltip="Eindeutiger Anzeigename des Jobs, z.B. „News-Themen-Mapping (Testlauf)“."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (form.controls.name.invalid) {
<mat-error>Bitte einen Namen eingeben.</mat-error>
@@ -28,7 +28,7 @@
matSuffix
class="field-info"
matTooltip="Wird beim Start direkt im Container ausgeführt — wie in einem Terminal, z.B. „python sync.py --update-keywords --target-index docker-job_test“. Leer = Standard-Befehl des Images."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -48,7 +48,7 @@
matSuffix
class="field-info"
matTooltip="Docker-Image für den Job. Tippen filtert die aus Nexus verfügbaren Images; du kannst auch einen eigenen Wert eingeben. Images aus unserer Registry (docker.nes.uni-due.de) erhalten die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch, fremde Images nicht."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (form.controls.image.invalid && form.controls.image.touched) {
<mat-error>Bitte ein Image auswählen oder eingeben.</mat-error>
@@ -63,7 +63,7 @@
matSuffix
class="field-info"
matTooltip="Freitext für die Job-Tabelle: Was macht der Job, was sollte man vor dem Start wissen?"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -74,7 +74,7 @@
matSuffix
class="field-info"
matTooltip="Reine Anzeige-Info in der Tabelle. In welchen Index der Job wirklich schreibt, bestimmt allein der Befehl (z.B. --target-index / --output-index)."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -89,7 +89,7 @@
matSuffix
class="field-info"
matTooltip="Zusätzliche Umgebungsvariablen für den Container, eine pro Zeile im Format KEY=value. Das Standard-Image bekommt die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch — hier ist nur Spezielles nötig."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<mat-hint>Eine Variable pro Zeile im Format KEY=value.</mat-hint>
@if (form.controls.env.hasError('invalidEnv')) {
@@ -111,7 +111,7 @@
type="button"
[disabled]="creating()"
(click)="submit()">
<mat-icon>add</mat-icon>
<mat-icon>{{ ADD_ICON }}</mat-icon>
Anlegen
</button>
</mat-dialog-actions>
@@ -15,6 +15,7 @@ import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatTooltipModule } from '@angular/material/tooltip';
import { BackgroundJobTask, BackgroundJobsService } from '../../../api';
import { ADD_ICON, INFO_OUTLINE_ICON } from '../../../shared/ui/icons';
const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
@@ -36,6 +37,9 @@ const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
standalone: true,
})
export class TaskCreateDialogComponent implements OnInit {
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
readonly ADD_ICON = ADD_ICON;
private readonly dialogRef =
inject<
MatDialogRef<TaskCreateDialogComponent, BackgroundJobTask | undefined>
@@ -9,7 +9,7 @@
matSuffix
class="field-info"
matTooltip="Eindeutiger Anzeigename des Jobs, z.B. „News-Themen-Mapping (Testlauf)“."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (form.controls.name.invalid) {
<mat-error>Bitte einen Namen eingeben.</mat-error>
@@ -28,7 +28,7 @@
matSuffix
class="field-info"
matTooltip="Wird beim Start direkt im Container ausgeführt — wie in einem Terminal, z.B. „python sync.py --update-keywords --target-index docker-job_test“. Leer = Standard-Befehl des Images."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -48,7 +48,7 @@
matSuffix
class="field-info"
matTooltip="Docker-Image für den Job. Tippen filtert die aus Nexus verfügbaren Images; du kannst auch einen eigenen Wert eingeben. Images aus unserer Registry (docker.nes.uni-due.de) erhalten die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch, fremde Images nicht."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (form.controls.image.invalid && form.controls.image.touched) {
<mat-error>Bitte ein Image auswählen oder eingeben.</mat-error>
@@ -63,7 +63,7 @@
matSuffix
class="field-info"
matTooltip="Freitext für die Job-Tabelle: Was macht der Job, was sollte man vor dem Start wissen?"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -74,7 +74,7 @@
matSuffix
class="field-info"
matTooltip="Reine Anzeige-Info in der Tabelle. In welchen Index der Job wirklich schreibt, bestimmt allein der Befehl (z.B. --target-index / --output-index)."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
</mat-form-field>
@@ -89,7 +89,7 @@
matSuffix
class="field-info"
matTooltip="Zusätzliche Umgebungsvariablen für den Container, eine pro Zeile im Format KEY=value. Das Standard-Image bekommt die INSE-Zugangsdaten (Elasticsearch/LLM) automatisch — hier ist nur Spezielles nötig."
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<mat-hint>Eine Variable pro Zeile im Format KEY=value.</mat-hint>
@if (form.controls.env.hasError('invalidEnv')) {
@@ -111,7 +111,7 @@
type="button"
[disabled]="saving()"
(click)="submit()">
<mat-icon>save</mat-icon>
<mat-icon>{{ SAVE_ICON }}</mat-icon>
Speichern
</button>
</mat-dialog-actions>
@@ -19,6 +19,7 @@ import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatTooltipModule } from '@angular/material/tooltip';
import { BackgroundJobTask, BackgroundJobsService } from '../../../api';
import { INFO_OUTLINE_ICON, SAVE_ICON } from '../../../shared/ui/icons';
const ENV_LINE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=.*$/;
@@ -44,6 +45,9 @@ export interface TaskEditDialogData {
standalone: true,
})
export class TaskEditDialogComponent implements OnInit {
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
readonly SAVE_ICON = SAVE_ICON;
private readonly dialogRef =
inject<
MatDialogRef<TaskEditDialogComponent, BackgroundJobTask | undefined>
@@ -123,7 +123,7 @@
<mat-dialog-actions align="end">
<button mat-button type="button" (click)="close()">Abbrechen</button>
<button mat-flat-button color="primary" type="button" (click)="submit()">
<mat-icon>save</mat-icon>
<mat-icon>{{ SAVE_ICON }}</mat-icon>
Speichern
</button>
</mat-dialog-actions>
@@ -18,6 +18,7 @@ import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { BackgroundJobTask } from '../../../api';
import { formatUtcDateAsLocal } from '../jobs.utils';
import { SAVE_ICON } from '../../../shared/ui/icons';
export interface TaskScheduleDialogData {
task: BackgroundJobTask;
@@ -127,6 +128,8 @@ function toTime(hour: string, minute: string): string {
standalone: true,
})
export class TaskScheduleDialogComponent {
readonly SAVE_ICON = SAVE_ICON;
private readonly dialogRef =
inject<
MatDialogRef<
@@ -1,7 +1,7 @@
@if (loading()) {
<app-loading
text="Patentdaten werden geladen..."
icon="workspace_premium"
[icon]="PATENT_ICON"
[size]="150"
[diameter]="150" />
} @else if (error()) {
@@ -19,7 +19,7 @@
<mat-form-field
class="patents-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="sort"></mat-icon>
<mat-icon matPrefix [fontIcon]="SORT_ICON"></mat-icon>
<mat-select
[value]="sortColumn()"
(selectionChange)="setSort($event.value)">
@@ -89,7 +89,7 @@
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">chevron_right</mat-icon>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
@@ -24,6 +24,12 @@ import {
import { KeywordPatentMappingStatus } from '../../../api';
import { PatentTableComponent } from '../../../shared/ui/patent-table/patent-table.component';
import { SourceFilterComponent } from '../../../shared/ui/source-filter/source-filter.component';
import {
CHEVRON_RIGHT_ICON,
FILTER_ICON,
PATENT_ICON,
SORT_ICON,
} from '../../../shared/ui/icons';
type SourceFilter = 'all' | 'EPO' | 'USPTO';
type SortColumn = 'title' | 'publication_year' | 'source';
@@ -50,6 +56,11 @@ function isValidSortColumn(value: string | null): value is SortColumn {
styleUrl: './keywords-patents.component.scss',
})
export class KeywordsPatentsComponent {
readonly PATENT_ICON = PATENT_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly SORT_ICON = SORT_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly queryParams = toSignal(this.route.queryParams);
@@ -23,7 +23,7 @@
[color]="isExtracting() ? 'warn' : 'primary'"
(click)="onExtractKeywordsClick()">
<mat-icon>
{{ isExtracting() ? 'close' : 'troubleshoot' }}
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
</mat-icon>
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
</button>
@@ -49,7 +49,7 @@
class="extract-btn"
(click)="onExtractKeywordsClick()">
<mat-icon>
{{ isExtracting() ? 'close' : 'troubleshoot' }}
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
</mat-icon>
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
</button>
@@ -74,7 +74,7 @@
class="extract-btn"
(click)="onExtractKeywordsClick()">
<mat-icon>
{{ isExtracting() ? 'close' : 'troubleshoot' }}
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
</mat-icon>
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
</button>
@@ -113,7 +113,7 @@
(click)="deselectAll()"
[disabled]="isExtracting()"
matTooltip="Alle extrahierten Keywords abwählen">
<mat-icon>select_all</mat-icon>
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
<span>Alle abwählen</span>
</button>
} @else {
@@ -123,7 +123,7 @@
[disabled]="isExtracting()"
(click)="selectAll()"
matTooltip="Alle extrahierten Keywords auswählen">
<mat-icon>select_all</mat-icon>
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
<span>Alle auswählen</span>
</button>
}
@@ -133,7 +133,7 @@
[disabled]="isExtracting()"
(click)="clearKeywords()"
matTooltip="Alle extrahierten Keywords löschen">
<mat-icon>delete_outline</mat-icon>
<mat-icon>{{ DELETE_OUTLINE_ICON }}</mat-icon>
<span>Alle löschen</span>
</button>
</div>
@@ -147,14 +147,14 @@
[disabled]="isExtracting()"
value="llm"
matTooltip="Extrahierte Keywords">
<mat-icon>text_fields</mat-icon>
<mat-icon>{{ TEXT_FIELDS_ICON }}</mat-icon>
<span>Extrahierte Keywords</span>
</mat-button-toggle>
<mat-button-toggle
[disabled]="isExtracting()"
value="topic"
matTooltip="Die Abbildung der extrahierten Keywords auf die bekannten Themenbereiche">
<mat-icon>account_tree</mat-icon>
<mat-icon>{{ ACCOUNT_TREE_ICON }}</mat-icon>
<span>Ähnliche Themen</span>
</mat-button-toggle>
</mat-button-toggle-group>
@@ -233,7 +233,7 @@
color="warn"
aria-label="Manuelles Keyword entfernen"
(click)="removeManualKeyword(keyword)">
<mat-icon>cancel</mat-icon>
<mat-icon>{{ CANCEL_ICON }}</mat-icon>
</button>
</div>
}
@@ -265,7 +265,10 @@
<div class="table-body">
<div class="table-col broad-col">
@if (isExtracting() && broadKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -280,7 +283,10 @@
<div class="table-col coarse-col">
@if (isExtracting() && coarseKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -295,7 +301,10 @@
<div class="table-col fine-col thick-border">
@if (isExtracting() && fineKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -323,7 +332,10 @@
</ng-template>
<div class="mobile-tab-panel">
@if (isExtracting() && broadKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -344,7 +356,10 @@
</ng-template>
<div class="mobile-tab-panel">
@if (isExtracting() && coarseKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -365,7 +380,10 @@
</ng-template>
<div class="mobile-tab-panel">
@if (isExtracting() && fineKeywords().length === 0) {
<app-loading icon="manage_search" [size]="60" [diameter]="60" />
<app-loading
[icon]="MANAGE_SEARCH_ICON"
[size]="60"
[diameter]="60" />
} @else {
<ng-container
*ngTemplateOutlet="
@@ -394,7 +412,7 @@
<!-- @if (isExtracting() && !keywordsExist()) {
<app-loading
text="{{ statusMessage() }}"
icon="manage_search"
[icon]="MANAGE_SEARCH_ICON"
[size]="200"
[diameter]="200" />
} -->
@@ -425,7 +443,7 @@
class="search-btn"
[disabled]="isSearchDisabled()"
(click)="search()">
<mat-icon>search</mat-icon>
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
Suchen
</button>
</div>
@@ -55,6 +55,17 @@ import { A11yModule } from '@angular/cdk/a11y';
import { DomSanitizer } from '@angular/platform-browser';
import { SearchResultsPayload } from './search-results/search-results-state.service';
import { clearPatentsCache } from './patent-search.utils';
import {
ACCOUNT_TREE_ICON,
CANCEL_ICON,
CLOSE_ICON,
DELETE_OUTLINE_ICON,
MANAGE_SEARCH_ICON,
SEARCH_ICON,
SELECT_ALL_ICON,
TEXT_FIELDS_ICON,
TROUBLESHOOT_ICON,
} from '../../shared/ui/icons';
type InputMode = 'url' | 'text' | 'file';
type KeywordCategory = 'broad' | 'coarse' | 'fine' | 'manual';
type KeywordView = 'llm' | 'topic';
@@ -89,6 +100,16 @@ type KeywordPatentLevel = 'broad' | 'coarse' | 'fine' | 'custom';
styleUrl: './keywords-search.component.scss',
})
export class KeywordsSearchComponent {
readonly CLOSE_ICON = CLOSE_ICON;
readonly TROUBLESHOOT_ICON = TROUBLESHOOT_ICON;
readonly SELECT_ALL_ICON = SELECT_ALL_ICON;
readonly DELETE_OUTLINE_ICON = DELETE_OUTLINE_ICON;
readonly TEXT_FIELDS_ICON = TEXT_FIELDS_ICON;
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
readonly CANCEL_ICON = CANCEL_ICON;
readonly MANAGE_SEARCH_ICON = MANAGE_SEARCH_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
private readonly formBuilder = inject(FormBuilder);
private readonly sanitizer = inject(DomSanitizer);
private readonly route = inject(ActivatedRoute);
@@ -6,7 +6,7 @@
[options]="relevanceOptions"
[queryParamKey]="keywordsNewsQueryParamKeys.relevance"
label="Relevanz"
icon="check_circle"
[icon]="CHECK_CIRCLE_ICON"
[multiple]="true" />
<app-query-param-selector
@@ -14,7 +14,7 @@
[options]="sortOrderOptions"
[queryParamKey]="keywordsNewsQueryParamKeys.sortOrder"
label="Sortierung"
icon="sort" />
[icon]="SORT_ICON" />
</app-filter-card>
<app-year-range-slider
@@ -33,7 +33,7 @@
type="button"
(click)="resetFilters()"
aria-label="Filter zurücksetzen">
<mat-icon>filter_alt_off</mat-icon>
<mat-icon>{{ FILTER_OFF_ICON }}</mat-icon>
<span>Zurücksetzen</span>
</button>
}
@@ -53,7 +53,7 @@
expanded ? 'Textstelle ausblenden' : 'Textstelle anzeigen'
">
<mat-icon class="expand-icon" [class.is-expanded]="expanded">
expand_more
{{ EXPAND_MORE_ICON }}
</mat-icon>
</button>
}
@@ -110,12 +110,12 @@
<ng-template #relevanceTmp let-article>
@if (article.relevant === true) {
<span class="relevance-badge is-relevant">
<mat-icon>check_circle</mat-icon>
<mat-icon>{{ CHECK_CIRCLE_ICON }}</mat-icon>
Relevant
</span>
} @else if (article.relevant === false) {
<span class="relevance-badge not-relevant">
<mat-icon>cancel</mat-icon>
<mat-icon>{{ CANCEL_ICON }}</mat-icon>
Nicht relevant
</span>
} @else {
@@ -123,7 +123,7 @@
class="relevance-badge undetermined"
[matTooltip]="relevanceHelp"
matTooltipPosition="above">
<mat-icon>help</mat-icon>
<mat-icon>{{ HELP_ICON }}</mat-icon>
Nicht bestimmt
</span>
}
@@ -167,7 +167,7 @@
[routerLink]="['/news', article.id]"
matTooltip="Details anzeigen"
(click)="$event.stopPropagation()">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
@@ -32,6 +32,15 @@ import { NEWS_MIN_YEAR } from '../../../../shared/ui/news-card/news-card.compone
import { keywordsNewsQueryParamKeys } from '../../../../resolvers/keywords-news-page.resolver';
import { SearchResultsStateService } from '../search-results-state.service';
import { YearRangeSliderComponent } from '../../../../shared/ui/year-range-slider/year-range-slider.component';
import {
CANCEL_ICON,
CHECK_CIRCLE_ICON,
EXPAND_MORE_ICON,
FILTER_OFF_ICON,
HELP_ICON,
OPEN_IN_NEW_ICON,
SORT_ICON,
} from '../../../../shared/ui/icons';
import {
keywordTooltip,
splitByKeywords,
@@ -66,6 +75,14 @@ interface SnippetSegment {
styleUrl: './news-results.component.scss',
})
export class KeywordsToNewsResultsComponent {
readonly CHECK_CIRCLE_ICON = CHECK_CIRCLE_ICON;
readonly SORT_ICON = SORT_ICON;
readonly FILTER_OFF_ICON = FILTER_OFF_ICON;
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
readonly CANCEL_ICON = CANCEL_ICON;
readonly HELP_ICON = HELP_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
protected readonly keywordsNewsQueryParamKeys = keywordsNewsQueryParamKeys;
private readonly state = inject(SearchResultsStateService);
@@ -5,7 +5,7 @@
<p class="results-hint">Lädt…</p>
} @else if (authors().length === 0) {
<div class="results-placeholder">
<mat-icon>groups</mat-icon>
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
<h2>Keine Autoren gefunden</h2>
<p>Passe die Keywords oder die Gewichtung an.</p>
</div>
@@ -19,7 +19,7 @@
color="primary"
[disabled]="!canCompare()"
(click)="compare()">
<mat-icon>insights</mat-icon>
<mat-icon>{{ INSIGHTS_ICON }}</mat-icon>
Vergleichen
</button>
</div>
@@ -67,7 +67,7 @@
<div class="filter-section-header">
<h3>Filter</h3>
<button mat-stroked-button color="primary" (click)="resetFilters()">
<mat-icon>restart_alt</mat-icon>
<mat-icon>{{ RESTART_ICON }}</mat-icon>
Zurücksetzen
</button>
</div>
@@ -77,14 +77,14 @@
appearance="outline"
class="filter-field"
subscriptSizing="dynamic">
<mat-icon matPrefix>article</mat-icon>
<mat-icon matPrefix>{{ ARTICLE_ICON }}</mat-icon>
<mat-label>Art der Work</mat-label>
<mat-select
multiple
[ngModel]="selectedPubTypes()"
(ngModelChange)="onPubTypesChange($event)">
<div class="pub-type-search">
<mat-icon class="search-icon">search</mat-icon>
<mat-icon class="search-icon">{{ SEARCH_ICON }}</mat-icon>
<input
matInput
placeholder="Suchen..."
@@ -99,7 +99,7 @@
pubTypeSearchTerm.set(''); $event.stopPropagation()
"
style="margin-right: 8px; transform: scale(0.8)">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
}
</div>
@@ -116,7 +116,7 @@
appearance="outline"
class="filter-field"
subscriptSizing="dynamic">
<mat-icon matPrefix>link</mat-icon>
<mat-icon matPrefix>{{ LINK_ICON }}</mat-icon>
<mat-label>Keyword-Verknüpfung</mat-label>
<mat-select
[ngModel]="keywordOperator()"
@@ -133,7 +133,7 @@
appearance="outline"
class="filter-field"
subscriptSizing="dynamic">
<mat-icon matPrefix>trending_up</mat-icon>
<mat-icon matPrefix>{{ TRENDING_UP_ICON }}</mat-icon>
<mat-label>Karrierestufe</mat-label>
<mat-select
multiple
@@ -151,7 +151,7 @@
appearance="outline"
class="filter-field"
subscriptSizing="dynamic">
<mat-icon matPrefix>business</mat-icon>
<mat-icon matPrefix>{{ BUSINESS_ICON }}</mat-icon>
<mat-label>Unternehmen</mat-label>
<mat-select
[ngModel]="companyStatus()"
@@ -32,6 +32,20 @@ import {
} from '../../../../api';
import { SearchResultsStateService } from '../search-results-state.service';
import {
ARTICLE_ICON,
BUSINESS_ICON,
CITATION_ICON,
CLOSE_ICON,
GROUPS_ICON,
INSIGHTS_ICON,
LINK_ICON,
PATENT_ICON,
RESTART_ICON,
SEARCH_ICON,
TRENDING_UP_ICON,
VISIBILITY_ICON,
} from '../../../../shared/ui/icons';
@Component({
selector: 'app-persons-results',
@@ -55,6 +69,16 @@ import { SearchResultsStateService } from '../search-results-state.service';
styleUrl: './persons-results.component.scss',
})
export class KeywordsToPersonsResultsComponent implements OnInit {
readonly GROUPS_ICON = GROUPS_ICON;
readonly INSIGHTS_ICON = INSIGHTS_ICON;
readonly RESTART_ICON = RESTART_ICON;
readonly ARTICLE_ICON = ARTICLE_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
readonly CLOSE_ICON = CLOSE_ICON;
readonly LINK_ICON = LINK_ICON;
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
readonly BUSINESS_ICON = BUSINESS_ICON;
// injects the state set by the parent route — no duplicate parsing here
private readonly state = inject(SearchResultsStateService);
private readonly rankingService = inject(RankingService);
@@ -98,7 +122,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
{
key: 'works',
label: 'Works',
icon: 'article',
icon: ARTICLE_ICON,
description:
'Gewichtet die Anzahl und Relevanz wissenschaftlicher Arbeiten.',
defaultValue: 0.5,
@@ -107,7 +131,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
{
key: 'citations',
label: 'Zitationen',
icon: 'format_quote',
icon: CITATION_ICON,
description: 'Gewichtet wissenschaftlichen Einfluss über Zitationen.',
defaultValue: 0.5,
queryParamName: 'wCitations',
@@ -115,7 +139,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
{
key: 'companies',
label: 'Unternehmensgründungen',
icon: 'business',
icon: BUSINESS_ICON,
description:
'Gewichtet die Anzahl der Unternehmensgründungen (Handelsregister-Verbindungen).',
nameMatched: true,
@@ -125,7 +149,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
{
key: 'news',
label: 'Medien-Sichtbarkeit',
icon: 'visibility',
icon: VISIBILITY_ICON,
description:
'Gewichtet die öffentliche Sichtbarkeit über Nennungen in Nachrichtenartikeln.',
nameMatched: true,
@@ -135,7 +159,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
{
key: 'patents',
label: 'Patente',
icon: 'workspace_premium',
icon: PATENT_ICON,
description: 'Gewichtet Innovations- und Transferleistung über Patente.',
nameMatched: true,
defaultValue: 0.5,
@@ -1,7 +1,7 @@
<div class="search-results-page">
<div class="search-results-header">
<button mat-stroked-button color="primary" (click)="goBackToSearch()">
<mat-icon>arrow_back</mat-icon>
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
Keywords anpassen
</button>
</div>
@@ -94,7 +94,7 @@
} @else {
<mat-card class="empty-card">
<mat-card-content class="empty-state">
<mat-icon>manage_search</mat-icon>
<mat-icon>{{ MANAGE_SEARCH_ICON }}</mat-icon>
<h2>Keine Suchdaten</h2>
<p>Starte eine neue Suche, um Ergebnisse zu sehen.</p>
<button mat-flat-button color="primary" (click)="goBackToSearch()">
@@ -24,6 +24,16 @@ import {
SearchResultsPayload,
SearchResultsStateService,
} from './search-results-state.service';
import {
ARTICLE_ICON,
ARROW_BACK_ICON,
BAR_CHART_ICON,
MANAGE_SEARCH_ICON,
NEWS_ICON,
PATENT_ICON,
PERSONS_ICON,
PROJECT_ICON,
} from '../../../shared/ui/icons';
@Component({
selector: 'app-keywords-search-results',
@@ -45,6 +55,9 @@ import {
styleUrl: './search-results.component.scss',
})
export class KeywordsSearchResultsComponent {
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
readonly MANAGE_SEARCH_ICON = MANAGE_SEARCH_ICON;
private readonly router = inject(Router);
private readonly route = inject(ActivatedRoute);
@@ -55,12 +68,12 @@ export class KeywordsSearchResultsComponent {
private readonly HANDOFF_KEY = 'search-results-handoff';
protected readonly childRoutes = [
{ path: 'persons', label: 'Personen', icon: 'groups' },
{ path: 'projects', label: 'Projekte', icon: 'work' },
{ path: 'patents', label: 'Patente', icon: 'workspace_premium' },
{ path: 'works', label: 'Publikationen', icon: 'article' },
{ path: 'news', label: 'Nachrichten', icon: 'newspaper' },
{ path: 'trends', label: 'Visualisierung', icon: 'bar_chart' },
{ path: 'persons', label: 'Personen', icon: PERSONS_ICON },
{ path: 'projects', label: 'Projekte', icon: PROJECT_ICON },
{ path: 'patents', label: 'Patente', icon: PATENT_ICON },
{ path: 'works', label: 'Publikationen', icon: ARTICLE_ICON },
{ path: 'news', label: 'Nachrichten', icon: NEWS_ICON },
{ path: 'trends', label: 'Visualisierung', icon: BAR_CHART_ICON },
];
private readonly lastUserFuzzy = signal(false);
@@ -4,19 +4,19 @@
class="back-link"
(click)="navigateBack()"
aria-label="Zurück zu den Nachrichten">
<mat-icon>arrow_back</mat-icon>
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
Alle Nachrichten
</button>
@if (loading) {
<app-loading
text="Nachricht wird geladen..."
icon="newspaper"
[icon]="NEWS_ICON"
[size]="60"
[diameter]="60" />
} @else if (notFound || !article) {
<div class="state error-state">
<mat-icon>search_off</mat-icon>
<mat-icon>{{ SEARCH_OFF_ICON }}</mat-icon>
<h2>Nachricht nicht gefunden</h2>
<p>Der Artikel konnte nicht geladen werden.</p>
<a mat-stroked-button routerLink="/persons">Zur Personensuche</a>
@@ -37,17 +37,17 @@
@if (article.relevant === true) {
<span class="relevance-badge is-relevant">
<mat-icon>check_circle</mat-icon>
<mat-icon>{{ CHECK_CIRCLE_ICON }}</mat-icon>
Relevant
</span>
} @else if (article.relevant === false) {
<span class="relevance-badge not-relevant">
<mat-icon>cancel</mat-icon>
<mat-icon>{{ CANCEL_ICON }}</mat-icon>
Nicht relevant
</span>
} @else {
<span class="relevance-badge undetermined">
<mat-icon>help</mat-icon>
<mat-icon>{{ HELP_ICON }}</mat-icon>
Relevanz nicht bestimmt
</span>
}
@@ -72,7 +72,7 @@
[href]="article.url"
target="_blank"
rel="noopener">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
Originalartikel öffnen
</a>
</div>
@@ -87,14 +87,14 @@
class="accordion-header"
(click)="openPanel = openPanel === 'persons' ? null : 'persons'"
[attr.aria-expanded]="openPanel === 'persons'">
<mat-icon>group</mat-icon>
<mat-icon>{{ GROUP_ICON }}</mat-icon>
<span class="accordion-title">Erwähnte Personen</span>
<mat-icon
class="info-icon"
matTooltip="Personen, die im Text erwähnt wurden. Klicke auf eine der UDE angehörige Person, um zu ihrem Profil zu gelangen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (article.authors?.length) {
<span class="count-badge">{{ article.authors!.length }}</span>
@@ -102,7 +102,7 @@
<mat-icon
class="chevron"
[class.rotated]="openPanel !== 'persons'"
>expand_more</mat-icon
>{{ EXPAND_MORE_ICON }}</mat-icon
>
</button>
@if (openPanel === 'persons') {
@@ -141,7 +141,7 @@
class="page-btn"
[disabled]="personsPage === 0"
(click)="personsPage = personsPage - 1">
<mat-icon>chevron_left</mat-icon>
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
</button>
<span class="page-indicator"
>{{ personsPage + 1 }} / {{ personsPageCount }}</span
@@ -151,7 +151,7 @@
class="page-btn"
[disabled]="personsPage === personsPageCount - 1"
(click)="personsPage = personsPage + 1">
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
</div>
}
@@ -170,20 +170,22 @@
class="accordion-header"
(click)="openPanel = openPanel === 'topics' ? null : 'topics'"
[attr.aria-expanded]="openPanel === 'topics'">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<span class="accordion-title">Themen & Schlüsselwörter</span>
<mat-icon
class="info-icon"
matTooltip="Themen, die mit den extrahierten Schlüsselwörtern des Artikels assoziiert werden. Klicke auf ein Schlüsselwort, um zum hervorgehobenen Begriff im Text zu springen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (article.topics?.length) {
<span class="count-badge">{{ article.topics!.length }}</span>
}
<mat-icon class="chevron" [class.rotated]="openPanel !== 'topics'"
>expand_more</mat-icon
<mat-icon
class="chevron"
[class.rotated]="openPanel !== 'topics'"
>{{ EXPAND_MORE_ICON }}</mat-icon
>
</button>
@if (openPanel === 'topics') {
@@ -207,8 +209,8 @@
}}</span>
<mat-icon>{{
expandedTopicId === topic.id
? 'expand_less'
: 'expand_more'
? EXPAND_LESS_ICON
: EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (expandedTopicId === topic.id) {
@@ -222,7 +224,7 @@
class="analyse-btn"
matTooltip="Suche nach dem Schlüsselwort"
(click)="analyseKeyword(topic.source_keyword)">
<mat-icon>search</mat-icon>
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
</button>
<button
type="button"
@@ -23,6 +23,23 @@ import {
topicKeywordColors,
} from '../../resolvers/utils/keyword-highlight';
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
import {
ARROW_BACK_ICON,
CANCEL_ICON,
CHECK_CIRCLE_ICON,
CHEVRON_LEFT_ICON,
CHEVRON_RIGHT_ICON,
EXPAND_LESS_ICON,
EXPAND_MORE_ICON,
GROUP_ICON,
HELP_ICON,
INFO_OUTLINE_ICON,
LABEL_ICON,
NEWS_ICON,
OPEN_IN_NEW_ICON,
SEARCH_ICON,
SEARCH_OFF_ICON,
} from '../../shared/ui/icons';
interface MentionedPerson {
name: string;
@@ -66,6 +83,22 @@ interface NewsArticleDetail {
styleUrl: './news-detail.component.scss',
})
export class NewsDetailComponent implements OnInit {
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
readonly NEWS_ICON = NEWS_ICON;
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
readonly CHECK_CIRCLE_ICON = CHECK_CIRCLE_ICON;
readonly CANCEL_ICON = CANCEL_ICON;
readonly HELP_ICON = HELP_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly GROUP_ICON = GROUP_ICON;
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
readonly EXPAND_LESS_ICON = EXPAND_LESS_ICON;
readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly LABEL_ICON = LABEL_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
@ViewChild('articleBody', { read: ElementRef })
articleBodyRef?: ElementRef<HTMLElement>;
private readonly router = inject(Router);
@@ -24,7 +24,7 @@
[options]="relevanceOptions"
queryParamKey="relevance"
label="Relevanz"
icon="check_circle"
[icon]="CHECK_CIRCLE_ICON"
[multiple]="true" />
@if (!isSearching()) {
@@ -33,7 +33,7 @@
[options]="sortingDirectionOptionsAll"
queryParamKey="sorting_order"
label="Sortierung"
icon="sort" />
[icon]="SORT_ICON" />
}
</app-filter-card>
@@ -28,6 +28,7 @@ import {
} from '../../shared/ui/query-param-selector/query-param-selector.component';
import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component';
import { YearRangeSliderComponent } from '../../shared/ui/year-range-slider/year-range-slider.component';
import { CHECK_CIRCLE_ICON, SORT_ICON } from '../../shared/ui/icons';
interface NewsArticle extends NewsArticleBase {
author?: string | null;
@@ -56,6 +57,9 @@ type SortOrder = 'desc' | 'asc';
styleUrl: './news.component.scss',
})
export class NewsComponent implements OnInit {
readonly CHECK_CIRCLE_ICON = CHECK_CIRCLE_ICON;
readonly SORT_ICON = SORT_ICON;
private readonly destroyRef = inject(DestroyRef);
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
@@ -32,7 +32,7 @@
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-label>Institution hinzufügen</mat-label>
<mat-icon matPrefix>search</mat-icon>
<mat-icon matPrefix>{{ SEARCH_ICON }}</mat-icon>
<input
matInput
type="text"
@@ -64,7 +64,7 @@
<div class="institution-list" aria-live="polite">
@for (entry of institutions(); track entry.id) {
<article class="institution-item">
<mat-icon class="institution-icon">apartment</mat-icon>
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
<div class="institution-details">
<strong>{{ entry.institution.display_name }}</strong>
<span class="institution-id">{{ entry.id }}</span>
@@ -86,7 +86,7 @@
type="button"
aria-label="Manuelle Auswahl entfernen"
(click)="removeInstitution(entry)">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
}
</article>
@@ -112,7 +112,7 @@
type="button"
[disabled]="isLoadingAssociations()"
(click)="submit()">
<mat-icon>save</mat-icon>
<mat-icon>{{ SAVE_ICON }}</mat-icon>
Speichern
</button>
</mat-dialog-actions>
@@ -44,6 +44,12 @@ import {
UpdateOrganizationRequest,
} from '../../../api';
import { InstitutionRemovalDialogComponent } from './institution-removal-dialog.component';
import {
APARTMENT_ICON,
CLOSE_ICON,
SAVE_ICON,
SEARCH_ICON,
} from '../../../shared/ui/icons';
type Relationship = InstitutionAssociation.RelationshipEnum;
@@ -58,10 +64,11 @@ interface EditableInstitution {
institution: Institution;
manuallySelected: boolean;
origins: InstitutionOrigin[];
relationship?: Relationship;
}
interface OriginLabel {
relationship: 'selected' | Relationship;
relationship: Relationship | 'selected';
label: string;
tooltip?: string;
}
@@ -109,6 +116,11 @@ const cleanInstitutionId = (id: string): string =>
standalone: true,
})
export class OrganizationDialogComponent {
readonly SEARCH_ICON = SEARCH_ICON;
readonly APARTMENT_ICON = APARTMENT_ICON;
readonly CLOSE_ICON = CLOSE_ICON;
readonly SAVE_ICON = SAVE_ICON;
private readonly dialogRef =
inject<
MatDialogRef<
@@ -11,7 +11,7 @@
color="primary"
type="button"
(click)="startCreate()">
<mat-icon>add_business</mat-icon>
<mat-icon>{{ ADD_BUSINESS_ICON }}</mat-icon>
Neue Organisation
</button>
</div>
@@ -66,7 +66,7 @@
type="button"
aria-label="Bearbeiten"
(click)="startEdit(row)">
<mat-icon>edit</mat-icon>
<mat-icon>{{ EDIT_ICON }}</mat-icon>
</button>
<button
mat-icon-button
@@ -74,7 +74,7 @@
aria-label="Deaktivieren"
[disabled]="row.deleted || isCurrentOrganization(row)"
(click)="deleteOrganization(row)">
<mat-icon>delete</mat-icon>
<mat-icon>{{ DELETE_ICON }}</mat-icon>
</button>
</div>
</ng-template>
@@ -30,6 +30,11 @@ import {
OrganizationWithInstitutions,
} from '../../resolvers/organizations-organizations.resolver';
import { CredentialService } from '../../shared/services/credential.service';
import {
ADD_BUSINESS_ICON,
DELETE_ICON,
EDIT_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-organizations',
@@ -49,6 +54,10 @@ import { CredentialService } from '../../shared/services/credential.service';
standalone: true,
})
export class OrganizationsComponent implements OnInit {
readonly ADD_BUSINESS_ICON = ADD_BUSINESS_ICON;
readonly EDIT_ICON = EDIT_ICON;
readonly DELETE_ICON = DELETE_ICON;
private readonly router = inject(Router);
private readonly dialog = inject(MatDialog);
private readonly snackBar = inject(MatSnackBar);
@@ -4,19 +4,19 @@
class="back-link"
(click)="navigateBack()"
aria-label="Zurück zu den Patenten">
<mat-icon>arrow_back</mat-icon>
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
Alle Patente
</button>
@if (loading) {
<app-loading
text="Patent wird geladen..."
icon="workspace_premium"
[icon]="PATENT_ICON"
[size]="60"
[diameter]="60" />
} @else if (notFound || !patent) {
<div class="state error-state">
<mat-icon>search_off</mat-icon>
<mat-icon>{{ SEARCH_OFF_ICON }}</mat-icon>
<h2>Patent nicht gefunden</h2>
<p>Das Patent konnte nicht geladen werden.</p>
<a mat-stroked-button routerLink="/patents"> Zur Patentübersicht </a>
@@ -55,7 +55,7 @@
target="_blank"
rel="noopener">
{{ link.label }}
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
}
</div>
@@ -63,17 +63,17 @@
<div class="metrics" aria-label="Patentkennzahlen">
<div>
<mat-icon>groups</mat-icon>
<mat-icon>{{ GROUPS_ICON }}</mat-icon>
<strong>{{ patent.inventors?.length ?? 0 }}</strong>
<span>Erfinder</span>
</div>
<div>
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
<strong>{{ patent.assignees?.length ?? 0 }}</strong>
<span>Anmelder</span>
</div>
<div>
<mat-icon>category</mat-icon>
<mat-icon>{{ CATEGORY_ICON }}</mat-icon>
<strong>{{
(patent.ipc?.length ?? 0) + (patent.cpc?.length ?? 0)
}}</strong>
@@ -87,7 +87,7 @@
@if (patent.abstract) {
<section class="card abstract-card">
<div class="section-title">
<mat-icon>subject</mat-icon>
<mat-icon>{{ SUBJECT_ICON }}</mat-icon>
<h2>Abstract</h2>
</div>
<p>{{ patent.abstract }}</p>
@@ -96,7 +96,7 @@
<section class="card">
<div class="section-title">
<mat-icon>engineering</mat-icon>
<mat-icon>{{ ENGINEERING_ICON }}</mat-icon>
<h2>Erfinder</h2>
<span>{{ patent.inventors?.length ?? 0 }}</span>
</div>
@@ -112,7 +112,7 @@
@if (patent.assignees?.length) {
<section class="card">
<div class="section-title">
<mat-icon>account_balance</mat-icon>
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
<h2>Anmelder</h2>
<span>{{ patent.assignees?.length ?? 0 }}</span>
</div>
@@ -129,7 +129,7 @@
@if (patent.openalex_topics?.length) {
<section class="card">
<div class="section-title">
<mat-icon>topic</mat-icon>
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
<h2>OpenAlex Themen</h2>
</div>
<div class="tags">
@@ -154,7 +154,7 @@
<section
class="card classification-card-section classification-card-section--ipc">
<div class="section-title">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<h2>Klassifikation (IPC)</h2>
</div>
<div class="classification-cards">
@@ -228,7 +228,7 @@
} @else if (patent.ipc?.length) {
<section class="card">
<div class="section-title">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<h2>Klassifikation (IPC)</h2>
</div>
<div class="tags">
@@ -243,7 +243,7 @@
<section
class="card classification-card-section classification-card-section--cpc">
<div class="section-title">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<h2>Klassifikation (CPC)</h2>
</div>
<div class="classification-cards">
@@ -317,7 +317,7 @@
} @else if (patent.cpc?.length) {
<section class="card">
<div class="section-title">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<h2>Klassifikation (CPC)</h2>
</div>
<div class="tags">
@@ -332,7 +332,7 @@
<aside>
<section class="card facts-card">
<div class="section-title">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
<h2>Patentdaten</h2>
</div>
<dl>
@@ -359,14 +359,14 @@
@if (externalLinks().length) {
<section class="card">
<div class="section-title">
<mat-icon>link</mat-icon>
<mat-icon>{{ LINK_ICON }}</mat-icon>
<h2>Externe Links</h2>
</div>
<div class="link-list">
@for (link of externalLinks(); track link.url) {
<a [href]="link.url" target="_blank" rel="noopener">
<span>{{ link.label }}</span>
<mat-icon>north_east</mat-icon>
<mat-icon>{{ NORTH_EAST_ICON }}</mat-icon>
</a>
}
</div>
@@ -15,6 +15,23 @@ import {
topicHierarchyColor,
} from '../../resolvers/utils/topic-colors';
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
import {
ACCOUNT_BALANCE_ICON,
ARROW_BACK_ICON,
BUSINESS_ICON,
CATEGORY_ICON,
ENGINEERING_ICON,
GROUPS_ICON,
INFO_ICON,
LABEL_ICON,
LINK_ICON,
NORTH_EAST_ICON,
OPEN_IN_NEW_ICON,
PATENT_ICON,
SEARCH_OFF_ICON,
SUBJECT_ICON,
TOPIC_ICON,
} from '../../shared/ui/icons';
import {
ClassificationCard,
ClassificationSystem,
@@ -40,6 +57,22 @@ import {
styleUrl: './patent-detail.component.scss',
})
export class PatentDetailComponent implements OnInit {
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
readonly PATENT_ICON = PATENT_ICON;
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly GROUPS_ICON = GROUPS_ICON;
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly CATEGORY_ICON = CATEGORY_ICON;
readonly SUBJECT_ICON = SUBJECT_ICON;
readonly ENGINEERING_ICON = ENGINEERING_ICON;
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
readonly TOPIC_ICON = TOPIC_ICON;
readonly LABEL_ICON = LABEL_ICON;
readonly INFO_ICON = INFO_ICON;
readonly LINK_ICON = LINK_ICON;
readonly NORTH_EAST_ICON = NORTH_EAST_ICON;
private readonly destroyRef = inject(DestroyRef);
private readonly route = inject(ActivatedRoute);
private readonly patentsService = inject(PatentsService);
@@ -324,7 +324,7 @@
mat-button
type="button"
(click)="selectPatent(patent); $event.stopPropagation()">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
Übersicht
</button>
</mat-card-actions>
@@ -22,6 +22,7 @@ import {
Page,
} from '../../shared/ui/card-search/card-search.component';
import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component';
import { INFO_ICON, PATENT_ICON } from '../../shared/ui/icons';
type PatentSource = 'EPO' | 'USPTO';
@@ -59,6 +60,9 @@ const MIN_YEAR = 1978;
styleUrl: './patents.component.scss',
})
export class PatentsComponent {
readonly PATENT_ICON = PATENT_ICON;
readonly INFO_ICON = INFO_ICON;
private router = inject(Router);
private route = inject(ActivatedRoute);
private patentsApi = inject(PatentsService);
@@ -26,7 +26,7 @@
isBookmarked() ? 'Bookmark entfernen' : 'Person speichern'
">
<mat-icon>{{
isBookmarked() ? 'bookmark' : 'bookmark_border'
isBookmarked() ? BOOKMARK_ICON : BOOKMARK_BORDER_ICON
}}</mat-icon>
</button>
</div>
@@ -68,7 +68,7 @@
margin-right: 4px;
vertical-align: middle;
"
>apartment</mat-icon
>{{ APARTMENT_ICON }}</mat-icon
>
<span
[skText]="loading()"
@@ -93,7 +93,7 @@
class="institution-open-icon"
(click)="openInstitutionPage($event)"
aria-label="Institutionsseite öffnen"
>open_in_new</mat-icon
>{{ OPEN_IN_NEW_ICON }}</mat-icon
>
}
</button>
@@ -124,17 +124,17 @@
<div class="card-footer">
<div class="action-buttons">
<a [routerLink]="['/person', person().id, 'overview']" class="action-btn">
<mat-icon>visibility</mat-icon>
<mat-icon>{{ OVERVIEW_ICON }}</mat-icon>
<span>Übersicht</span>
</a>
<a
[routerLink]="['/person', person().id, 'publications']"
class="action-btn">
<mat-icon>menu_book</mat-icon>
<mat-icon>{{ PUBLICATION_ICON }}</mat-icon>
<span>Publikationen</span>
</a>
<a [routerLink]="['/person', person().id, 'network']" class="action-btn">
<mat-icon>share</mat-icon>
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
<span>Netzwerk</span>
</a>
</div>
@@ -9,6 +9,15 @@ import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.compon
import { CountryFlagComponent } from '../../shared/ui/country-flag/country-flag.component';
import { CareerStageChipComponent } from '../../shared/ui/career-stage-chip/career-stage-chip.component';
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
import {
APARTMENT_ICON,
BOOKMARK_BORDER_ICON,
BOOKMARK_ICON,
NETWORK_ICON,
OPEN_IN_NEW_ICON,
OVERVIEW_ICON,
PUBLICATION_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-person-card',
@@ -27,6 +36,14 @@ import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
styleUrl: './person-card.component.scss',
})
export class PersonCardComponent {
readonly BOOKMARK_ICON = BOOKMARK_ICON;
readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON;
readonly APARTMENT_ICON = APARTMENT_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly OVERVIEW_ICON = OVERVIEW_ICON;
readonly PUBLICATION_ICON = PUBLICATION_ICON;
readonly NETWORK_ICON = NETWORK_ICON;
private readonly router = inject(Router);
person = input.required<CustomAuthor>();
@@ -1,7 +1,7 @@
@if (loading) {
<app-loading
text="Verbindungen zu Unternehmen werden geladen ..."
icon="business"
[icon]="BUSINESS_ICON"
[size]="60"
[diameter]="60" />
} @else if (error) {
@@ -55,9 +55,9 @@
? 'Weitere Registerpersonen ausblenden'
: 'Weitere Registerpersonen anzeigen'
">
<mat-icon class="graph-related-persons-icon">
{{ showRelatedPersons ? 'no_accounts' : 'account_circle' }}
</mat-icon>
<mat-icon class="graph-related-persons-icon">{{
showRelatedPersons ? NO_ACCOUNTS_ICON : ACCOUNT_CIRCLE_ICON
}}</mat-icon>
</button>
<div
@@ -189,13 +189,11 @@
relatedOfficers.length
}})
</span>
<mat-icon>
{{
isCompanyOfficersExpanded(connection)
? 'expand_less'
: 'expand_more'
}}
</mat-icon>
<mat-icon>{{
isCompanyOfficersExpanded(connection)
? EXPAND_LESS_ICON
: EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (isCompanyOfficersExpanded(connection)) {
@@ -243,7 +241,7 @@
relatedOfficer.name +
' öffnen'
">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
} @else {
<span class="officer-open-placeholder"></span>
@@ -27,6 +27,14 @@ import {
import { PersonDataResolved } from '../../resolvers/person.resolver';
import { ChartThemeService } from '../../shared/services/chart-theme.service';
import { LoadingComponent } from '../../shared/ui/loading/loading.component';
import {
ACCOUNT_CIRCLE_ICON,
BUSINESS_ICON,
EXPAND_LESS_ICON,
EXPAND_MORE_ICON,
NO_ACCOUNTS_ICON,
OPEN_IN_NEW_ICON,
} from '../../shared/ui/icons';
interface RoleLegendItem {
role: string;
@@ -57,6 +65,13 @@ interface GraphSymbols {
styleUrl: './person-company-connections.component.scss',
})
export class PersonCompanyConnectionsComponent implements OnInit {
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly NO_ACCOUNTS_ICON = NO_ACCOUNTS_ICON;
readonly ACCOUNT_CIRCLE_ICON = ACCOUNT_CIRCLE_ICON;
readonly EXPAND_LESS_ICON = EXPAND_LESS_ICON;
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
private readonly destroyRef = inject(DestroyRef);
@@ -1,7 +1,7 @@
@if (loading) {
<app-loading
text="Förderdaten werden geladen..."
icon="volunteer_activism"
[icon]="VOLUNTEER_ACTIVISM_ICON"
[size]="150"
[diameter]="150" />
} @else if (error) {
@@ -17,7 +17,7 @@
<mat-form-field
class="funding-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="filter_alt"></mat-icon>
<mat-icon matPrefix [fontIcon]="FILTER_ICON"></mat-icon>
<mat-select
[value]="activeFilter"
(selectionChange)="setFilter($event.value)">
@@ -31,7 +31,7 @@
<mat-form-field
class="funding-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="sort"></mat-icon>
<mat-icon matPrefix [fontIcon]="SORT_ICON"></mat-icon>
<mat-select
[value]="sortColumn"
(selectionChange)="setSort($event.value)">
@@ -137,7 +137,7 @@
returnUrl: getCurrentUrl(),
returnLabel: 'Förderungen',
}">
<span class="material-icons">open_in_new</span>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</span>
</li>
@@ -1,4 +1,10 @@
import { Component, OnInit, TemplateRef, inject, viewChild } from '@angular/core';
import {
Component,
OnInit,
TemplateRef,
inject,
viewChild,
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { ActivatedRoute, RouterLink } from '@angular/router';
import { Router } from '@angular/router';
@@ -14,6 +20,12 @@ import {
DataTableComponent,
GenericColumn,
} from '../../shared/ui/data-table/data-table.component';
import {
FILTER_ICON,
OPEN_IN_NEW_ICON,
SORT_ICON,
VOLUNTEER_ACTIVISM_ICON,
} from '../../shared/ui/icons';
type SortColumn = 'name' | 'publications' | 'first' | 'middle' | 'last';
type SortDirection = 'asc' | 'desc';
@@ -43,6 +55,11 @@ type FundingPublicationDetail = {
styleUrl: './person-funding.component.scss',
})
export class PersonFundingComponent implements OnInit {
readonly VOLUNTEER_ACTIVISM_ICON = VOLUNTEER_ACTIVISM_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly SORT_ICON = SORT_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
private route = inject(ActivatedRoute);
private router = inject(Router);
private fundingApi = inject(FundingService);
@@ -3,7 +3,7 @@
<h3>Interessant für</h3>
@if (tags().length > 0) {
<span class="interest-footnote">
<mat-icon class="footnote-icon">article</mat-icon>
<mat-icon class="footnote-icon">{{ ARTICLE_ICON }}</mat-icon>
Anzahl Publikationen zum Thema
</span>
}
@@ -27,7 +27,7 @@
<div class="interest-tags-loading" aria-live="polite">
<app-loading
text="Themen werden geladen ..."
icon="interests"
[icon]="INTERESTS_ICON"
[size]="48"
[diameter]="48" />
</div>
@@ -47,7 +47,7 @@
[secondaryActionLabel]="tagAction(tag)?.label ?? null"
[secondaryActionLink]="tagAction(tag)?.link ?? null"
[secondaryActionQueryParams]="tagAction(tag)?.queryParams ?? null"
countIcon="article"
[countIcon]="ARTICLE_ICON"
descriptionTooltipTarget="button"
(chipClick)="onTagClick(tag)">
</app-topic-chip>
@@ -29,6 +29,8 @@ import {
toggleTopicLegendSubfieldSelection,
} from '../../resolvers/utils/topic-legend';
import { ARTICLE_ICON, INTERESTS_ICON } from '../../shared/ui/icons';
interface InterestTag {
id: string;
label: string;
@@ -67,6 +69,9 @@ const MAX_TAGS = 5;
styleUrl: './person-interesting.component.scss',
})
export class PersonInterestingComponent implements OnInit {
readonly ARTICLE_ICON = ARTICLE_ICON;
readonly INTERESTS_ICON = INTERESTS_ICON;
private static readonly legendExpandedQueryParam =
'interesting_legend_expanded';
@@ -21,7 +21,7 @@
(click)="clearSearch()"
matTooltip="Suche zurücksetzen"
aria-label="Suche zurücksetzen">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
</div>
}
@@ -44,7 +44,9 @@
[appComponentTooltip]="AppTopicTooltipComponent"
[tooltipInputs]="getFilterTopicInputs(filter.value)"
[tooltipMaxWidth]="'500px'">
<mat-icon class="filter-topic-chip__icon">label</mat-icon>
<mat-icon class="filter-topic-chip__icon">{{
LABEL_ICON
}}</mat-icon>
<span class="filter-topic-chip__label">{{
filter.value
}}</span>
@@ -56,15 +58,15 @@
[attr.aria-label]="
'Themenfilter ' + filter.value + ' entfernen'
">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
</span>
} @else if (filter.category === 'institutionId') {
<span [skText]="loading" class="active-institution-filter">
<span class="filter-institution-chip">
<mat-icon class="filter-institution-chip__icon"
>apartment</mat-icon
>
<mat-icon class="filter-institution-chip__icon">{{
APARTMENT_ICON
}}</mat-icon>
<span class="filter-institution-chip__name">{{
institutionFilterLabel(filter)
}}</span>
@@ -83,7 +85,7 @@
class="institution-open-icon"
(click)="openInstitutionPage(filter.value, $event)"
aria-label="Institutionsseite öffnen"
>open_in_new</mat-icon
>{{ OPEN_IN_NEW_ICON }}</mat-icon
>
}
</span>
@@ -92,7 +94,7 @@
class="remove-chip-btn"
(click)="removeFilter(filter)"
aria-label="Institutionsfilter entfernen">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
</span>
} @else {
@@ -103,7 +105,7 @@
class="remove-chip-btn"
(click)="removeFilter(filter)"
aria-label="Filter entfernen">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
</span>
}
@@ -170,7 +172,7 @@
</div>
} @else {
<div class="empty-state">
<mat-icon>person_search</mat-icon>
<mat-icon>{{ PERSON_SEARCH_ICON }}</mat-icon>
<h2>Keine Personen gefunden</h2>
<p>
Versuchen Sie einen anderen Suchbegriff oder passen Sie die Filter
@@ -194,7 +196,7 @@
<!-- Right Column: Sidebar Filters -->
<aside class="filters-sidebar">
<div class="sidebar-header">
<mat-icon>filter_alt</mat-icon>
<mat-icon>{{ FILTER_ICON }}</mat-icon>
<h2>Filter &amp; Suche</h2>
</div>
@@ -203,7 +205,7 @@
<h3 class="filter-section-title">Themen &amp; Expertise</h3>
<div class="topic-search-wrapper">
<mat-icon>search</mat-icon>
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
<input
type="text"
[formControl]="topicSearchControl"
@@ -214,7 +216,7 @@
class="clear-topic-search"
(click)="topicSearchControl.setValue('')"
aria-label="Themensuche zurücksetzen">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
}
</div>
@@ -232,7 +234,7 @@
<div class="filter-section">
<h3 class="filter-section-title">Institution</h3>
<div class="topic-search-wrapper" [class.is-loading]="loading">
<mat-icon>apartment</mat-icon>
<mat-icon>{{ APARTMENT_ICON }}</mat-icon>
<input
type="text"
[formControl]="institutionControl"
@@ -266,7 +268,7 @@
class="clear-topic-search"
(click)="clearInstitutionFilter()"
aria-label="Institution zurücksetzen">
<mat-icon>close</mat-icon>
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
</button>
}
</div>
@@ -47,6 +47,15 @@ import { BookmarkService } from '../../shared/services/bookmark.service';
import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive';
import { AppTopicTooltipComponent } from '../../shared/ui/app-topic-tooltip/app-topic-tooltip.component';
import {
APARTMENT_ICON,
CLOSE_ICON,
FILTER_ICON,
LABEL_ICON,
OPEN_IN_NEW_ICON,
PERSON_SEARCH_ICON,
SEARCH_ICON,
} from '../../shared/ui/icons';
type InstitutionYearFilterMode = 'in' | 'from' | 'between';
@@ -76,6 +85,14 @@ type InstitutionYearFilterMode = 'in' | 'from' | 'between';
standalone: true,
})
export class PersonListComponent {
readonly CLOSE_ICON = CLOSE_ICON;
readonly LABEL_ICON = LABEL_ICON;
readonly APARTMENT_ICON = APARTMENT_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly PERSON_SEARCH_ICON = PERSON_SEARCH_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
readonly AppTopicTooltipComponent = AppTopicTooltipComponent;
private readonly router = inject(Router);
private readonly route = inject(ActivatedRoute);
@@ -1,12 +1,12 @@
@if (this.isPending()) {
<app-loading
text="Das Netzwerk wird gebaut, kleinen Moment..."
icon="graph_3"
[icon]="GRAPH_ICON"
[size]="150"
[diameter]="150" />
} @else if (this.isFailed()) {
<div class="error">
<mat-icon>error</mat-icon>
<mat-icon>{{ ERROR_ICON }}</mat-icon>
<span class="error-message">{{
this.collaborationGraphError()
? this.collaborationGraphError()
@@ -15,7 +15,7 @@
<app-selected-filters [observers]="observers" />
<button matButton="outlined" type="button" (click)="openFilterDialog()">
<mat-icon>filter_alt</mat-icon>
<mat-icon>{{ FILTER_ICON }}</mat-icon>
Filter
</button>
</div>
@@ -53,7 +53,7 @@
mat-stroked-button
type="button"
(click)="openFilterDialog()">
<mat-icon>filter_alt</mat-icon>
<mat-icon>{{ FILTER_ICON }}</mat-icon>
Filter
</button>
</div>
@@ -111,7 +111,7 @@
mat-icon-button
color="primary"
[routerLink]="['/person', this.stripOpenAlexIdPrefix(element.id)]">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
@@ -166,7 +166,7 @@
mat-icon-button
color="primary"
[routerLink]="['/publication', this.stripOpenAlexIdPrefix(element.id)]">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
@@ -206,7 +206,7 @@
mat-icon-button
color="primary"
[routerLink]="['/institution', this.stripOpenAlexIdPrefix(element.id)]">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
</ng-template>
@@ -58,6 +58,20 @@ import {
} from '../collaboration-graph/collaboration-graph.component';
import { form } from '@angular/forms/signals';
import { collaborationGraphQueryParamKeys } from '../../resolvers/collaboration-graph.resolver';
import {
APARTMENT_ICON,
CALENDAR_ICON,
ERROR_ICON,
FILTER_ICON,
GRAPH_ICON,
GROUP_ICON,
LABEL_ICON,
NETWORK_ICON,
OPEN_IN_NEW_ICON,
PERSON_ICON,
PUBLICATION_ICON,
SEARCH_ICON,
} from '../../shared/ui/icons';
import {
FilterObserver,
SelectedFiltersComponent,
@@ -122,6 +136,11 @@ interface FilterData {
providers: [],
})
export class PersonNetworkComponent implements OnInit {
readonly GRAPH_ICON = GRAPH_ICON;
readonly ERROR_ICON = ERROR_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly AppAuthorTooltipComponent = AppAuthorTooltipComponent;
readonly AppInstitutionTooltipComponent = AppInstitutionTooltipComponent;
readonly AppPublicationTooltipComponent = AppPublicationTooltipComponent;
@@ -168,12 +187,12 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'searchTerm',
queryParamKey: 'search_term',
icon: 'search',
icon: SEARCH_ICON,
},
{
id: 'yearFrom',
queryParamKey: collaborationGraphQueryParamKeys.yearFrom,
icon: 'calendar_today',
icon: CALENDAR_ICON,
valueFormatter: (value: string) => {
return value ? `Ab ${value}` : null;
},
@@ -181,7 +200,7 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'yearTo',
queryParamKey: collaborationGraphQueryParamKeys.yearTo,
icon: 'calendar_today',
icon: CALENDAR_ICON,
valueFormatter: (value: string) => {
return value ? `Bis ${value}` : null;
},
@@ -189,7 +208,7 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'minContributors',
queryParamKey: collaborationGraphQueryParamKeys.minCollaborators,
icon: 'person',
icon: PERSON_ICON,
valueFormatter: (value: string) => {
return value ? `Mindestens ${value} Autoren` : null;
},
@@ -197,7 +216,7 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'maxContributors',
queryParamKey: collaborationGraphQueryParamKeys.maxCollaborators,
icon: 'group',
icon: GROUP_ICON,
valueFormatter: (value: string) => {
return value ? `Höchstens ${value} Autoren` : null;
},
@@ -205,7 +224,7 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'topics',
queryParamKey: collaborationGraphQueryParamKeys.topicId,
icon: 'label',
icon: LABEL_ICON,
valueFormatter: (value: string) => {
const topic = this.selectedTopics().elements?.find(
(topic) => topic.id === value,
@@ -217,7 +236,7 @@ export class PersonNetworkComponent implements OnInit {
{
id: 'institutions',
queryParamKey: collaborationGraphQueryParamKeys.institutionId,
icon: 'apartment',
icon: APARTMENT_ICON,
valueFormatter: (value: string) => {
const institution = this.selectedInstitutions().elements?.find(
(inst) => inst.id === value,
@@ -420,22 +439,22 @@ export class PersonNetworkComponent implements OnInit {
readonly summaryCards = computed(() => [
{
icon: 'person',
icon: PERSON_ICON,
value: this.persons(),
description: 'Personen',
},
{
icon: 'apartment',
icon: APARTMENT_ICON,
value: this.institutions(),
description: 'Institutionen',
},
{
icon: 'menu_book',
icon: PUBLICATION_ICON,
value: this.publications(),
description: 'Gemeinsame Publikationen',
},
{
icon: 'share',
icon: NETWORK_ICON,
value: this.connections(),
description: 'Verbindungen im Netzwerk',
},
@@ -1,7 +1,7 @@
@if (loading) {
<app-loading
text="Patentdaten werden geladen..."
icon="workspace_premium"
[icon]="PATENT_ICON"
[size]="150"
[diameter]="150" />
} @else if (error) {
@@ -19,7 +19,7 @@
<mat-form-field
class="patents-toolbar-field"
subscriptSizing="dynamic">
<mat-icon matPrefix fontIcon="sort"></mat-icon>
<mat-icon matPrefix [fontIcon]="SORT_ICON"></mat-icon>
<mat-select
[value]="sortColumn"
(selectionChange)="setSort($event.value)">
@@ -92,7 +92,7 @@
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">chevron_right</mat-icon>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
@@ -17,6 +17,12 @@ import { LoadingComponent } from '../../shared/ui/loading/loading.component';
import { PageEvent } from '@angular/material/paginator';
import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component';
import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component';
import {
CHEVRON_RIGHT_ICON,
FILTER_ICON,
PATENT_ICON,
SORT_ICON,
} from '../../shared/ui/icons';
import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component';
type SortColumn = 'title' | 'publication_year' | 'source';
@@ -39,6 +45,11 @@ type SourceFilter = 'all' | 'EPO' | 'USPTO';
styleUrl: './person-patents.component.scss',
})
export class PersonPatentsComponent {
readonly PATENT_ICON = PATENT_ICON;
readonly FILTER_ICON = FILTER_ICON;
readonly SORT_ICON = SORT_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
private route = inject(ActivatedRoute);
private router = inject(Router);
private destroyRef = inject(DestroyRef);
@@ -23,13 +23,13 @@
(click)="toggleBookmark()">
<mat-icon>{{
bookmarkService.isBookmarked(person()?.id)
? 'bookmark'
: 'bookmark_border'
? BOOKMARK_ICON
: BOOKMARK_BORDER_ICON
}}</mat-icon>
</button>
</div>
<div class="institution-line">
<mat-icon class="institution-icon">apartment</mat-icon>
<mat-icon class="institution-icon">{{ APARTMENT_ICON }}</mat-icon>
@if (institutionId(); as institutionId) {
<a
class="institution-link"
@@ -52,7 +52,7 @@
<span class="stats-line">
@if (worksCount() !== null) {
<span class="stat-item">
<mat-icon class="stat-icon">menu_book</mat-icon>
<mat-icon class="stat-icon">{{ PUBLICATION_ICON }}</mat-icon>
{{ worksCount() | number }} Publikationen
</span>
}
@@ -61,7 +61,7 @@
}
@if (citedByCount() !== null) {
<span class="stat-item">
<mat-icon class="stat-icon">format_quote</mat-icon>
<mat-icon class="stat-icon">{{ CITATION_ICON }}</mat-icon>
{{ citedByCount() | number }} Zitationen
</span>
}
@@ -85,7 +85,7 @@
"
matTooltipPosition="right"
[matTooltipShowDelay]="250">
<mat-icon class="stat-icon">trending_up</mat-icon>
<mat-icon class="stat-icon">{{ TRENDING_UP_ICON }}</mat-icon>
h-Index {{ h_index() }}
</span>
}
@@ -105,7 +105,7 @@
matTooltip="ORCID-Profil öffnen"
matTooltipPosition="right"
[matTooltipShowDelay]="250">
<mat-icon>verified</mat-icon>
<mat-icon>{{ VERIFIED_ICON }}</mat-icon>
{{ orcidId }}
</a>
}
@@ -118,7 +118,7 @@
@if (isBioLoading()) {
<app-loading
text="Biografie wird geladen..."
icon="description"
[icon]="DESCRIPTION_ICON"
[size]="150"
[diameter]="150"></app-loading>
} @else if (personBio() != null) {
@@ -143,7 +143,7 @@
} @else {
<app-loading
text="Person wird geladen..."
icon="person"
[icon]="PERSON_ICON"
[size]="150"
[diameter]="150"></app-loading>
}
@@ -49,14 +49,22 @@ import {
LinkTabNavBarItem,
} from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component';
import {
APARTMENT_ICON,
BOOKMARK_BORDER_ICON,
BOOKMARK_ICON,
CITATION_ICON,
COMPANY_CONNECTION_ICON,
DESCRIPTION_ICON,
FUNDING_ICON,
NETWORK_ICON,
NEWS_ICON,
OVERVIEW_ICON,
PATENT_ICON,
PERSON_ICON,
PROJECT_ICON,
PUBLICATION_ICON,
TRENDING_UP_ICON,
VERIFIED_ICON,
} from '../../shared/ui/icons';
@Component({
@@ -78,6 +86,16 @@ import {
styleUrl: './person.component.scss',
})
export class PersonComponent {
readonly BOOKMARK_ICON = BOOKMARK_ICON;
readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON;
readonly APARTMENT_ICON = APARTMENT_ICON;
readonly PUBLICATION_ICON = PUBLICATION_ICON;
readonly CITATION_ICON = CITATION_ICON;
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
readonly VERIFIED_ICON = VERIFIED_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly PERSON_ICON = PERSON_ICON;
private readonly router = inject(Router);
private readonly activatedRoute = inject(ActivatedRoute);
@@ -2,7 +2,7 @@
<div class="page-header">
<div class="breadcrumb">
<span>Bund Projekte</span>
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
<span>Projektdetails</span>
</div>
</div>
@@ -31,18 +31,18 @@
[style.background-color]="
getStatusColor(getStatusDisplay(bundProject.funding_end_date))
">
<mat-icon>circle</mat-icon>
<mat-icon>{{ CIRCLE_ICON }}</mat-icon>
<span>{{ getStatusDisplay(bundProject.funding_end_date) }}</span>
</div>
<!-- @if (bundProject.project_agency) {
<div class="agency-info" (click)="searchForAgency(bundProject.project_agency)">
<mat-icon>account_balance</mat-icon>
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
<span>{{ bundProject.project_agency_fullname || bundProject.project_agency }}</span>
</div>
} -->
<!-- @if (bundProject.funding_type) {
<div class="funding-type-info" (click)="searchForFundingType(bundProject.funding_type)">
<mat-icon>category</mat-icon>
<mat-icon>{{ CATEGORY_ICON }}</mat-icon>
<span>{{ bundProject.funding_type }}</span>
</div>
} -->
@@ -51,7 +51,7 @@
<div class="metrics-grid">
<div class="metric-item">
<mat-icon>calendar_today</mat-icon>
<mat-icon>{{ CALENDAR_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
bundProject.funding_start_date | date: 'dd.MM.yyyy'
@@ -60,7 +60,7 @@
</div>
</div>
<div class="metric-item">
<mat-icon>event_busy</mat-icon>
<mat-icon>{{ EVENT_BUSY_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
getFundingStatus(bundProject.funding_end_date)
@@ -70,7 +70,7 @@
</div>
</div>
<div class="metric-item">
<mat-icon>access_time</mat-icon>
<mat-icon>{{ ACCESS_TIME_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
getStatusDisplay(bundProject.funding_end_date)
@@ -80,7 +80,7 @@
</div>
@if (bundProject.funding_amount) {
<div class="metric-item">
<mat-icon>paid</mat-icon>
<mat-icon>{{ PAID_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
bundProject.funding_amount
@@ -92,7 +92,7 @@
}
@if (bundProject.funding_profile) {
<div class="metric-item">
<mat-icon>assignment</mat-icon>
<mat-icon>{{ ASSIGNMENT_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ bundProject.funding_profile }}</strong>
<span>Förderprofil</span>
@@ -107,7 +107,7 @@
@if (bundProject.description) {
<mat-card appearance="outlined" class="card description-card">
<div class="section-header">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
<h2>Beschreibung</h2>
</div>
<p class="description-text">{{ bundProject.description }}</p>
@@ -122,7 +122,7 @@
@if (getAssociatedPersons().length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>people</mat-icon>
<mat-icon>{{ PEOPLE_ICON }}</mat-icon>
<h2>Beteiligte Personen</h2>
<span class="count-badge">{{
getAssociatedPersons().length
@@ -148,7 +148,7 @@
) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
<h2>Beteiligte Institution</h2>
</div>
<dl class="details-list">
@@ -234,7 +234,7 @@
) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>location_on</mat-icon>
<mat-icon>{{ LOCATION_ICON }}</mat-icon>
<h2>Standort</h2>
</div>
<dl class="details-list">
@@ -285,7 +285,7 @@
) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>more_info</mat-icon>
<mat-icon>{{ MORE_INFO_ICON }}</mat-icon>
<h2>Weitere Informationen</h2>
</div>
<dl class="details-list">
@@ -322,7 +322,7 @@
<!-- Projektdetails -->
<mat-card appearance="outlined" class="card details-card">
<div class="section-header">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
<h2>Projektdetails</h2>
</div>
<dl class="details-list">
@@ -408,7 +408,7 @@
} @else {
<div class="error-container">
<div class="error-state">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<p>Bund Projekt nicht gefunden.</p>
</div>
</div>
@@ -5,6 +5,24 @@ import { MatCardModule } from '@angular/material/card';
import { MatIconModule } from '@angular/material/icon';
import { BundProjectDetails } from '../../../api/model/bundProjectDetails';
import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component';
import {
ACCESS_TIME_ICON,
ACCOUNT_BALANCE_ICON,
ASSIGNMENT_ICON,
BUSINESS_ICON,
CALENDAR_ICON,
CATEGORY_ICON,
CHEVRON_RIGHT_ICON,
CIRCLE_ICON,
DESCRIPTION_ICON,
ERROR_OUTLINE_ICON,
EVENT_BUSY_ICON,
INFO_ICON,
LOCATION_ICON,
MORE_INFO_ICON,
PAID_ICON,
PEOPLE_ICON,
} from '../../../shared/ui/icons';
export interface InstitutionEntry {
label: string;
@@ -23,6 +41,23 @@ export interface InstitutionEntry {
styleUrl: './bund-details.component.scss',
})
export class BundDetailsComponent implements OnInit {
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly CIRCLE_ICON = CIRCLE_ICON;
readonly CALENDAR_ICON = CALENDAR_ICON;
readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON;
readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON;
readonly PAID_ICON = PAID_ICON;
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly PEOPLE_ICON = PEOPLE_ICON;
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly LOCATION_ICON = LOCATION_ICON;
readonly MORE_INFO_ICON = MORE_INFO_ICON;
readonly INFO_ICON = INFO_ICON;
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
readonly CATEGORY_ICON = CATEGORY_ICON;
private readonly route = inject(ActivatedRoute);
bundProject: BundProjectDetails | undefined;
@@ -2,7 +2,7 @@
<div class="page-header">
<div class="breadcrumb">
<span>DFG Projekte</span>
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
<span>Projektdetails</span>
</div>
</div>
@@ -34,7 +34,7 @@
[style.background-color]="
getStatusColor(getStatusDisplay(dfgProject.funding_end))
">
<mat-icon>circle</mat-icon>
<mat-icon>{{ CIRCLE_ICON }}</mat-icon>
<span>{{ getStatusDisplay(dfgProject.funding_end) }}</span>
</div>
@if (dfgProject.page_url) {
@@ -42,7 +42,7 @@
[href]="dfgProject.page_url"
target="_blank"
class="primary-action">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
<span>Zum Projekt</span>
</a>
}
@@ -51,7 +51,7 @@
[href]="dfgProject.external_link"
target="_blank"
class="secondary-action">
<mat-icon>language</mat-icon>
<mat-icon>{{ LANGUAGE_ICON }}</mat-icon>
<span>Webseite</span>
</a>
}
@@ -60,21 +60,21 @@
<div class="metrics-grid">
<div class="metric-item">
<mat-icon>calendar_today</mat-icon>
<mat-icon>{{ CALENDAR_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ dfgProject.funding_start || 'N/A' }}</strong>
<span>Förderbeginn</span>
</div>
</div>
<div class="metric-item">
<mat-icon>event_busy</mat-icon>
<mat-icon>{{ EVENT_BUSY_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ getFundingEndDisplay(dfgProject.funding_end) }}</strong>
<span>Förderende</span>
</div>
</div>
<div class="metric-item">
<mat-icon>access_time</mat-icon>
<mat-icon>{{ ACCESS_TIME_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ getStatusDisplay(dfgProject.funding_end) }}</strong>
<span>Status</span>
@@ -82,7 +82,7 @@
</div>
@if (dfgProject.dfg_procedure) {
<div class="metric-item">
<mat-icon>gavel</mat-icon>
<mat-icon>{{ GAVEL_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ dfgProject.dfg_procedure }}</strong>
<span>DFG Verfahren</span>
@@ -91,7 +91,7 @@
}
@if (getFundingType()) {
<div class="metric-item">
<mat-icon>paid</mat-icon>
<mat-icon>{{ PAID_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ getFundingType() }}</strong>
<span>Förderung</span>
@@ -100,7 +100,7 @@
}
@if (getInternationalRelation()) {
<div class="metric-item">
<mat-icon>public</mat-icon>
<mat-icon>{{ PUBLIC_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ getInternationalRelation() }}</strong>
<span>Internationaler Bezug</span>
@@ -115,7 +115,7 @@
@if (getDescription()) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
<h2>Beschreibung</h2>
</div>
<p class="description-text">{{ getDescription() }}</p>
@@ -125,7 +125,7 @@
@if (getFinalReportAbstract()) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>fact_check</mat-icon>
<mat-icon>{{ FACT_CHECK_ICON }}</mat-icon>
<h2>Abschlussbericht</h2>
</div>
<p class="description-text">{{ getFinalReportAbstract() }}</p>
@@ -146,7 +146,7 @@
<!-- Beteiligte Personen -->
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>people</mat-icon>
<mat-icon>{{ PEOPLE_ICON }}</mat-icon>
<h2>Beteiligte Personen</h2>
<span class="count-badge">{{ getPersonCount() }}</span>
</div>
@@ -184,7 +184,7 @@
<!-- Beteiligte Institutionen -->
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
<h2>Beteiligte Institutionen</h2>
<span class="count-badge">{{ getInstitutionCount() }}</span>
</div>
@@ -196,7 +196,7 @@
searchForInstitutionName(getInstitutionName(institution))
"
class="institution-item">
<mat-icon>apartment</mat-icon>
<mat-icon>{{ APARTMENT_ICON }}</mat-icon>
<div class="institution-details">
<span>{{ getInstitutionName(institution) }}</span>
@if (getInstitutionRoleLabel(institution)) {
@@ -220,7 +220,7 @@
@if (getSubprojects().length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>account_tree</mat-icon>
<mat-icon>{{ ACCOUNT_TREE_ICON }}</mat-icon>
<h2>Teilprojekte</h2>
<span class="count-badge">{{ getSubprojects().length }}</span>
</div>
@@ -264,7 +264,7 @@
@if (getPublications().length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>menu_book</mat-icon>
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
<h2>Publikationen</h2>
<span class="count-badge">{{ getPublications().length }}</span>
</div>
@@ -301,7 +301,7 @@
@if (getWebsiteHtml()) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>language</mat-icon>
<mat-icon>{{ LANGUAGE_ICON }}</mat-icon>
<h2>Projektwebseite</h2>
</div>
<div class="website-html" [innerHTML]="getWebsiteHtml()"></div>
@@ -313,7 +313,7 @@
<!-- Projektdetails -->
<mat-card appearance="outlined" class="card details-card">
<div class="section-header">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
<h2>Projektdetails</h2>
</div>
<dl class="details-list">
@@ -395,7 +395,7 @@
} @else {
<div class="error-container">
<div class="error-state">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<p>DFG Projekt nicht gefunden.</p>
</div>
</div>
@@ -11,6 +11,28 @@ import { DfgProjectPersonRole } from '../../../api/model/dfgProjectPersonRole';
import { DFGProjectFachgebieteInner } from '../../../api/model/dFGProjectFachgebieteInner';
import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component';
import { DfgClassificationComponent } from '../../../shared/ui/dfg-classification/dfg-classification.component';
import {
ACCESS_TIME_ICON,
ACCOUNT_TREE_ICON,
APARTMENT_ICON,
BUSINESS_ICON,
CALENDAR_ICON,
CHEVRON_RIGHT_ICON,
CIRCLE_ICON,
DESCRIPTION_ICON,
ERROR_OUTLINE_ICON,
EVENT_BUSY_ICON,
FACT_CHECK_ICON,
GAVEL_ICON,
INFO_ICON,
LANGUAGE_ICON,
MENU_BOOK_ICON,
OPEN_IN_NEW_ICON,
PAID_ICON,
PEOPLE_ICON,
PUBLIC_ICON,
} from '../../../shared/ui/icons';
@Component({
selector: 'app-dfg-details',
standalone: true,
@@ -25,6 +47,26 @@ import { DfgClassificationComponent } from '../../../shared/ui/dfg-classificatio
styleUrl: './dfg-details.component.scss',
})
export class DfgDetailsComponent implements OnInit {
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly CIRCLE_ICON = CIRCLE_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly LANGUAGE_ICON = LANGUAGE_ICON;
readonly CALENDAR_ICON = CALENDAR_ICON;
readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON;
readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON;
readonly GAVEL_ICON = GAVEL_ICON;
readonly PAID_ICON = PAID_ICON;
readonly PUBLIC_ICON = PUBLIC_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly FACT_CHECK_ICON = FACT_CHECK_ICON;
readonly PEOPLE_ICON = PEOPLE_ICON;
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly APARTMENT_ICON = APARTMENT_ICON;
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
readonly INFO_ICON = INFO_ICON;
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
private route = inject(ActivatedRoute);
dfgProject: DfgProjectDetails | undefined;
@@ -1,14 +1,14 @@
<div class="deliverables-tab">
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>assignment</mat-icon>
<mat-icon>{{ ASSIGNMENT_ICON }}</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>
<mat-icon>{{ FILE_PRESENT_ICON }}</mat-icon>
</div>
<div class="deliv-info">
<div class="deliv-description">
@@ -20,7 +20,7 @@
}
@if (deliv.url) {
<a [href]="deliv.url" target="_blank" class="deliv-link">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
<span>Zum Deliverable</span>
</a>
}
@@ -4,6 +4,12 @@ import { Router } from '@angular/router';
import { Input } from '@angular/core';
import { MatIcon } from '@angular/material/icon';
import { MatCard } from '@angular/material/card';
import {
ASSIGNMENT_ICON,
FILE_PRESENT_ICON,
OPEN_IN_NEW_ICON,
} from '../../../../shared/ui/icons';
@Component({
selector: 'app-deliverables-cards',
imports: [MatIcon, MatCard],
@@ -11,6 +17,10 @@ import { MatCard } from '@angular/material/card';
styleUrl: './deliverables-cards.component.scss',
})
export class DeliverablesCardsComponent {
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
readonly FILE_PRESENT_ICON = FILE_PRESENT_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
@Input() deliverables: HEUDeliverable[] = [];
@Input() showHeader: boolean = true;
@Input() headerTitle: string = 'Deliverables';
@@ -2,7 +2,7 @@
<div class="page-header">
<div class="breadcrumb">
<span>EU Projekte</span>
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
<span>Projektdetails</span>
</div>
</div>
@@ -44,13 +44,13 @@
<div
class="status-badge"
[style.background-color]="getStatusColor(euProject.status)">
<mat-icon>circle</mat-icon>
<mat-icon>{{ CIRCLE_ICON }}</mat-icon>
<span>{{ getStatusDisplay(euProject.status) }}</span>
</div>
}
@if (euProject.fundingScheme) {
<div class="scheme-info">
<mat-icon>assignment</mat-icon>
<mat-icon>{{ ASSIGNMENT_ICON }}</mat-icon>
<span>{{
getFundingSchemeDisplay(euProject.fundingScheme)
}}</span>
@@ -61,7 +61,7 @@
[href]="'https://doi.org/' + euProject.grantDoi"
target="_blank"
class="doi-link">
<mat-icon>link</mat-icon>
<mat-icon>{{ LINK_ICON }}</mat-icon>
<span>DOI: {{ euProject.grantDoi }}</span>
</a>
}
@@ -70,21 +70,21 @@
<div class="metrics-grid">
<div class="metric-item">
<mat-icon>calendar_today</mat-icon>
<mat-icon>{{ CALENDAR_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ euProject.startDate | date: 'dd.MM.yyyy' }}</strong>
<span>Förderbeginn</span>
</div>
</div>
<div class="metric-item">
<mat-icon>event_busy</mat-icon>
<mat-icon>{{ EVENT_BUSY_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ euProject.endDate | date: 'dd.MM.yyyy' }}</strong>
<span>Förderende</span>
</div>
</div>
<div class="metric-item">
<mat-icon>access_time</mat-icon>
<mat-icon>{{ ACCESS_TIME_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ getFundingStatus(euProject.endDate) }}</strong>
<span>Status</span>
@@ -92,7 +92,7 @@
</div>
@if (euProject.ecMaxContribution) {
<div class="metric-item">
<mat-icon>euro_symbol</mat-icon>
<mat-icon>{{ EURO_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
euProject.ecMaxContribution
@@ -104,7 +104,7 @@
}
@if (euProject.totalCost) {
<div class="metric-item">
<mat-icon>attach_money</mat-icon>
<mat-icon>{{ ATTACH_MONEY_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{
euProject.totalCost
@@ -116,7 +116,7 @@
}
@if (euProject.organizationCount !== undefined) {
<div class="metric-item">
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ euProject.organizationCount }}</strong>
<span>Organisationen</span>
@@ -125,7 +125,7 @@
}
@if (euProject.publicationCount !== undefined) {
<div class="metric-item">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
<div class="metric-content">
<strong>{{ euProject.publicationCount }}</strong>
<span>Publikationen</span>
@@ -140,7 +140,7 @@
class="tab-btn"
[class.active]="activeTab === 'overview'"
(click)="setTab('overview')">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
Übersicht
</button>
<button
@@ -148,7 +148,7 @@
[class.active]="activeTab === 'organizations'"
[disabled]="!isTabVisible('organizations')"
(click)="setTab('organizations')">
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
Organisationen
<span class="tab-badge">{{
euProject.organizations?.length ?? 0
@@ -160,7 +160,7 @@
[class.active]="activeTab === 'publications'"
[disabled]="!isTabVisible('publications')"
(click)="setTab('publications')">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
Publikationen
<span class="tab-badge">{{ euProject.publications?.length ?? 0 }}</span>
</button>
@@ -170,7 +170,7 @@
[class.active]="activeTab === 'iprs'"
[disabled]="!isTabVisible('iprs')"
(click)="setTab('iprs')">
<mat-icon>gavel</mat-icon>
<mat-icon>{{ GAVEL_ICON }}</mat-icon>
IPRs
<span class="tab-badge">{{ euProject.iprs?.length ?? 0 }}</span>
</button>
@@ -180,7 +180,7 @@
[class.active]="activeTab === 'deliverables'"
[disabled]="!isTabVisible('deliverables')"
(click)="setTab('deliverables')">
<mat-icon>assignment</mat-icon>
<mat-icon>{{ ASSIGNMENT_ICON }}</mat-icon>
Deliverables
<span class="tab-badge">{{ euProject.deliverables?.length ?? 0 }}</span>
</button>
@@ -196,7 +196,7 @@
@if (euProject.objective) {
<mat-card appearance="outlined" class="card description-card">
<div class="section-header">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
<h2>Projektziel</h2>
</div>
<p class="description-text">{{ euProject.objective }}</p>
@@ -206,7 +206,7 @@
@if (getFormattedTopics(euProject.topics).length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>topic</mat-icon>
<mat-icon>{{ TOPIC_ICON }}</mat-icon>
<h2>Themen</h2>
<span class="count-badge">{{
getFormattedTopics(euProject.topics).length
@@ -233,7 +233,7 @@
@if (getKeywordChips().length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>tag</mat-icon>
<mat-icon>{{ TAG_ICON }}</mat-icon>
<h2>Schlüsselwörter</h2>
<span class="count-badge">{{
getKeywordChips().length
@@ -263,7 +263,7 @@
@if (euProject.eurosciVoc && euProject.eurosciVoc.length > 0) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>science</mat-icon>
<mat-icon>{{ SCIENCE_ICON }}</mat-icon>
<h2>EuroSciVoc</h2>
<span class="count-badge">{{
euProject.eurosciVoc.length
@@ -282,9 +282,9 @@
) {
<span class="path-segment">{{ segment }}</span>
@if (!$last) {
<mat-icon class="path-separator"
>chevron_right</mat-icon
>
<mat-icon class="path-separator">{{
CHEVRON_RIGHT_ICON
}}</mat-icon>
}
}
} @else {
@@ -302,7 +302,9 @@
}}</span>
}
@if (voc.path) {
<mat-icon class="search-icon">search</mat-icon>
<mat-icon class="search-icon">{{
SEARCH_ICON
}}</mat-icon>
}
</div>
}
@@ -315,7 +317,7 @@
<!-- Projektdetails -->
<mat-card appearance="outlined" class="card details-card">
<div class="section-header">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
<h2>Projektdetails</h2>
</div>
<dl class="details-list">
@@ -419,7 +421,7 @@
<!-- Zeitliche Informationen -->
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>schedule</mat-icon>
<mat-icon>{{ SCHEDULE_ICON }}</mat-icon>
<h2>Zeitliche Übersicht</h2>
</div>
<dl class="details-list">
@@ -456,7 +458,9 @@
target="_blank"
class="external-link">
{{ euProject.grantDoi }}
<mat-icon class="external-icon">open_in_new</mat-icon>
<mat-icon class="external-icon">{{
OPEN_IN_NEW_ICON
}}</mat-icon>
</a>
</dd>
</div>
@@ -472,7 +476,7 @@
) {
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>person</mat-icon>
<mat-icon>{{ PERSON_ICON }}</mat-icon>
<h2>ERC Principal Investigators</h2>
<span class="count-badge">{{
euProject.ercPrincipalInvestigators.length
@@ -521,7 +525,7 @@
} @else {
<div class="error-container">
<div class="error-state">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<p>EU Projekt nicht gefunden.</p>
</div>
</div>
@@ -17,6 +17,31 @@ import { PatentsCardsComponent } from './patents-cards/patents-cards.component';
import { DeliverablesCardsComponent } from './deliverables-cards/deliverables-cards.component';
import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component';
import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component';
import {
ACCESS_TIME_ICON,
ARTICLE_ICON,
ASSIGNMENT_ICON,
ATTACH_MONEY_ICON,
BUSINESS_ICON,
CALENDAR_ICON,
CHEVRON_RIGHT_ICON,
CIRCLE_ICON,
DESCRIPTION_ICON,
ERROR_OUTLINE_ICON,
EURO_ICON,
EVENT_BUSY_ICON,
GAVEL_ICON,
INFO_ICON,
LINK_ICON,
OPEN_IN_NEW_ICON,
PERSON_ICON,
SCHEDULE_ICON,
SCIENCE_ICON,
SEARCH_ICON,
TAG_ICON,
TOPIC_ICON,
} from '../../../shared/ui/icons';
export type TabType =
| 'overview'
| 'organizations'
@@ -47,6 +72,28 @@ export type TabType =
styleUrl: './eu-details.component.scss',
})
export class EuDetailsComponent implements OnInit, OnDestroy {
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly CIRCLE_ICON = CIRCLE_ICON;
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
readonly LINK_ICON = LINK_ICON;
readonly CALENDAR_ICON = CALENDAR_ICON;
readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON;
readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON;
readonly EURO_ICON = EURO_ICON;
readonly ATTACH_MONEY_ICON = ATTACH_MONEY_ICON;
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly INFO_ICON = INFO_ICON;
readonly GAVEL_ICON = GAVEL_ICON;
readonly TOPIC_ICON = TOPIC_ICON;
readonly TAG_ICON = TAG_ICON;
readonly SCIENCE_ICON = SCIENCE_ICON;
readonly SEARCH_ICON = SEARCH_ICON;
readonly SCHEDULE_ICON = SCHEDULE_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly PERSON_ICON = PERSON_ICON;
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
private readonly route = inject(ActivatedRoute);
private readonly router = inject(Router);
@@ -72,11 +119,11 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
TabType,
{ label: string; icon: string; order: number }
> = {
overview: { label: 'Übersicht', icon: 'info', order: 0 },
organizations: { label: 'Organisationen', icon: 'business', order: 1 },
publications: { label: 'Publikationen', icon: 'article', order: 2 },
iprs: { label: 'IPRs', icon: 'gavel', order: 3 },
deliverables: { label: 'Ergebnisse', icon: 'assignment', order: 4 },
overview: { label: 'Übersicht', icon: INFO_ICON, order: 0 },
organizations: { label: 'Organisationen', icon: BUSINESS_ICON, order: 1 },
publications: { label: 'Publikationen', icon: ARTICLE_ICON, order: 2 },
iprs: { label: 'IPRs', icon: GAVEL_ICON, order: 3 },
deliverables: { label: 'Ergebnisse', icon: ASSIGNMENT_ICON, order: 4 },
};
ngOnInit(): void {
@@ -2,7 +2,7 @@
<mat-card appearance="outlined">
@if (showHeader) {
<div class="section-header">
<mat-icon>business</mat-icon>
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
<h2>{{ headerTitle }} ({{ getOrgsCount() }})</h2>
</div>
}
@@ -85,7 +85,7 @@
class="link-button"
matTooltip="Website öffnen"
(click)="$event.stopPropagation()">
<mat-icon class="link-icon">open_in_new</mat-icon>
<mat-icon class="link-icon">{{ OPEN_IN_NEW_ICON }}</mat-icon>
<span class="link-label">Web</span>
</a>
} @else {
@@ -20,6 +20,7 @@ import {
GenericColumn,
} from '../../../../shared/ui/data-table/data-table.component';
import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country-flag.component';
import { BUSINESS_ICON, OPEN_IN_NEW_ICON } from '../../../../shared/ui/icons';
@Component({
selector: 'app-organizations-table',
@@ -36,6 +37,9 @@ import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country
styleUrl: './organizations-table.component.scss',
})
export class OrganizationsTableComponent {
readonly BUSINESS_ICON = BUSINESS_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
private readonly router = inject(Router);
public paginationService = inject(PaginationService);
@@ -1,7 +1,7 @@
<div class="patents-tab">
<mat-card appearance="outlined" class="card">
<div class="section-header">
<mat-icon>gavel</mat-icon>
<mat-icon>{{ GAVEL_ICON }}</mat-icon>
<h2>Intellectual Property Rights ({{ patents.length }})</h2>
</div>
<div class="patents-list">
@@ -9,9 +9,9 @@
<div class="ipr-item" (click)="searchForPatent(ipr)">
<div class="ipr-icon">
@if (ipr.type === 'PATENT') {
<mat-icon>emoji_events</mat-icon>
<mat-icon>{{ EMOJI_EVENTS_ICON }}</mat-icon>
} @else {
<mat-icon>copyright</mat-icon>
<mat-icon>{{ COPYRIGHT_ICON }}</mat-icon>
}
</div>
<div class="ipr-info">
@@ -4,6 +4,12 @@ import { Router } from '@angular/router';
import { Input } from '@angular/core';
import { MatIcon } from '@angular/material/icon';
import { MatCard } from '@angular/material/card';
import {
COPYRIGHT_ICON,
EMOJI_EVENTS_ICON,
GAVEL_ICON,
} from '../../../../shared/ui/icons';
@Component({
selector: 'app-patents-cards',
imports: [MatIcon, MatCard],
@@ -11,6 +17,10 @@ import { MatCard } from '@angular/material/card';
styleUrl: './patents-cards.component.scss',
})
export class PatentsCardsComponent {
readonly GAVEL_ICON = GAVEL_ICON;
readonly EMOJI_EVENTS_ICON = EMOJI_EVENTS_ICON;
readonly COPYRIGHT_ICON = COPYRIGHT_ICON;
@Input() patents: Fp7ProjectIPR[] = [];
@Input() showHeader: boolean = true;
@Input() headerTitle: string = 'IPRs';
@@ -2,7 +2,7 @@
<mat-card appearance="outlined" class="card">
@if (showHeader) {
<div class="section-header">
<mat-icon>description</mat-icon>
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
<h2>{{ headerTitle }} ({{ getPublicationCount() }})</h2>
</div>
}
@@ -86,7 +86,7 @@
class="link-button doi-link"
matTooltip="DOI öffnen"
(click)="$event.stopPropagation()">
<mat-icon class="link-icon">link</mat-icon>
<mat-icon class="link-icon">{{ LINK_ICON }}</mat-icon>
<span class="link-label">DOI</span>
</a>
}
@@ -98,7 +98,7 @@
class="link-button"
matTooltip="Repository öffnen"
(click)="$event.stopPropagation()">
<mat-icon class="link-icon">folder_open</mat-icon>
<mat-icon class="link-icon">{{ FOLDER_OPEN_ICON }}</mat-icon>
<span class="link-label">Repo</span>
</a>
}
@@ -110,7 +110,7 @@
class="link-button"
matTooltip="Publikation öffnen"
(click)="$event.stopPropagation()">
<mat-icon class="link-icon">article</mat-icon>
<mat-icon class="link-icon">{{ ARTICLE_ICON }}</mat-icon>
<span class="link-label">Link</span>
</a>
}
@@ -21,6 +21,12 @@ import {
GenericColumn,
} from '../../../../shared/ui/data-table/data-table.component';
import { ChipOverflowToggleComponent } from '../../../../shared/ui/chip-overflow-toggle/chip-overflow-toggle.component';
import {
ARTICLE_ICON,
DESCRIPTION_ICON,
FOLDER_OPEN_ICON,
LINK_ICON,
} from '../../../../shared/ui/icons';
@Component({
selector: 'app-publications-table',
@@ -38,6 +44,11 @@ import { ChipOverflowToggleComponent } from '../../../../shared/ui/chip-overflow
styleUrl: './publications-table.component.scss',
})
export class PublicationsTableComponent {
readonly DESCRIPTION_ICON = DESCRIPTION_ICON;
readonly LINK_ICON = LINK_ICON;
readonly FOLDER_OPEN_ICON = FOLDER_OPEN_ICON;
readonly ARTICLE_ICON = ARTICLE_ICON;
private router = inject(Router);
public paginationService = inject(PaginationService);
@@ -15,6 +15,7 @@ import {
} from '../../shared/ui/card-search/card-search.component';
import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component';
import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component';
import { SEARCH_ICON } from '../../shared/ui/icons';
@Component({
selector: 'app-projects',
@@ -48,7 +49,7 @@ export class ProjectsComponent {
{
id: 'name',
queryParamKey: 'search',
icon: 'search',
icon: SEARCH_ICON,
},
];
@@ -4,19 +4,19 @@
class="back-link"
(click)="navigateBack()"
[attr.aria-label]="returnAriaLabel">
<mat-icon>arrow_back</mat-icon>
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
{{ returnLabel }}
</button>
@if (loading) {
<app-loading
text="Publikation wird geladen..."
icon="menu_book"
[icon]="MENU_BOOK_ICON"
[size]="60"
[diameter]="60" />
} @else if (notFound || !publication) {
<div class="state error-state">
<mat-icon>search_off</mat-icon>
<mat-icon>{{ SEARCH_OFF_ICON }}</mat-icon>
<h2>Publikation nicht gefunden</h2>
<p>Die Publikation konnte nicht geladen werden.</p>
<a mat-stroked-button routerLink="/persons"> Zur Personensuche </a>
@@ -76,7 +76,7 @@
target="_blank"
rel="noopener">
{{ link.label }}
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
}
</div>
@@ -84,12 +84,12 @@
<div class="metrics" aria-label="Publikationskennzahlen">
<div>
<mat-icon>format_quote</mat-icon>
<mat-icon>{{ CITATION_ICON }}</mat-icon>
<strong>{{ publication.cited_by_count ?? 0 | number }}</strong>
<span>Zitationen</span>
</div>
<div>
<mat-icon>menu_book</mat-icon>
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
<strong>{{
publication.referenced_works_count ?? 0 | number
}}</strong>
@@ -97,7 +97,7 @@
</div>
<div [class.positive]="publication.open_access?.is_oa">
<mat-icon>{{
publication.open_access?.is_oa ? 'lock_open' : 'lock'
publication.open_access?.is_oa ? LOCK_OPEN_ICON : LOCK_ICON
}}</mat-icon>
<strong>{{ publication.open_access?.is_oa ? 'Ja' : 'Nein' }}</strong>
<span>Open Access</span>
@@ -107,7 +107,7 @@
@if (publication.is_retracted) {
<div class="warning">
<mat-icon>warning</mat-icon>
<mat-icon>{{ WARNING_ICON }}</mat-icon>
Diese Publikation wurde zurückgezogen.
</div>
}
@@ -117,7 +117,7 @@
@if (abstractText(); as abstract) {
<section class="card abstract-card">
<div class="section-title">
<mat-icon>subject</mat-icon>
<mat-icon>{{ SUBJECT_ICON }}</mat-icon>
<h2>Abstract</h2>
</div>
<p>{{ abstract }}</p>
@@ -130,21 +130,21 @@
class="accordion-header"
(click)="authorsExpanded = !authorsExpanded"
[attr.aria-expanded]="authorsExpanded">
<mat-icon>group</mat-icon>
<mat-icon>{{ GROUP_ICON }}</mat-icon>
<span class="accordion-title">Autorinnen und Autoren</span>
<mat-icon
class="info-icon"
matTooltip="Autorinnen und Autoren dieser Publikation. Klicke auf eine Person, um zu ihrem Profil zu gelangen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
@if (authors().length) {
<span class="count-badge">{{ authors().length }}</span>
}
<mat-icon class="chevron" [class.rotated]="!authorsExpanded"
>expand_more</mat-icon
>
<mat-icon class="chevron" [class.rotated]="!authorsExpanded">{{
EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (authorsExpanded) {
<div class="accordion-body">
@@ -201,7 +201,7 @@
class="page-btn"
[disabled]="authorsPage === 0"
(click)="authorsPage = authorsPage - 1">
<mat-icon>chevron_left</mat-icon>
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
</button>
<span class="page-indicator"
>{{ authorsPage + 1 }} / {{ authorsPageCount() }}</span
@@ -211,7 +211,7 @@
class="page-btn"
[disabled]="authorsPage === authorsPageCount() - 1"
(click)="authorsPage = authorsPage + 1">
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
</div>
}
@@ -224,7 +224,7 @@
@if (publication.topics?.length) {
<section class="card">
<div class="section-title">
<mat-icon>label</mat-icon>
<mat-icon>{{ LABEL_ICON }}</mat-icon>
<h2>Themen</h2>
</div>
<div class="tags">
@@ -248,7 +248,7 @@
@if (publication.keywords?.length) {
<section class="card">
<div class="section-title">
<mat-icon>interests</mat-icon>
<mat-icon>{{ INTERESTS_ICON }}</mat-icon>
<h2>Keywords</h2>
</div>
<div class="tags">
@@ -266,19 +266,19 @@
class="accordion-header"
(click)="sourcesExpanded = !sourcesExpanded"
[attr.aria-expanded]="sourcesExpanded">
<mat-icon>library_books</mat-icon>
<mat-icon>{{ LIBRARY_BOOKS_ICON }}</mat-icon>
<span class="accordion-title">Quellen und Versionen</span>
<mat-icon
class="info-icon"
matTooltip="Quellen und Versionen, unter denen die Publikation verfügbar ist. Klicke auf das Symbol, um die Quelle zu öffnen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<span class="count-badge">{{ sources().length }}</span>
<mat-icon class="chevron" [class.rotated]="!sourcesExpanded"
>expand_more</mat-icon
>
<mat-icon class="chevron" [class.rotated]="!sourcesExpanded">{{
EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (sourcesExpanded) {
<div class="accordion-body">
@@ -316,7 +316,7 @@
target="_blank"
rel="noopener"
aria-label="Quelle öffnen">
<mat-icon>open_in_new</mat-icon>
<mat-icon>{{ OPEN_IN_NEW_ICON }}</mat-icon>
</a>
}
</div>
@@ -332,7 +332,7 @@
<aside>
<section class="card facts-card">
<div class="section-title">
<mat-icon>info</mat-icon>
<mat-icon>{{ INFO_ICON }}</mat-icon>
<h2>Publikationsdaten</h2>
</div>
<dl>
@@ -380,18 +380,20 @@
class="accordion-header"
(click)="institutionsExpanded = !institutionsExpanded"
[attr.aria-expanded]="institutionsExpanded">
<mat-icon>account_balance</mat-icon>
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
<span class="accordion-title">Institutionen</span>
<mat-icon
class="info-icon"
matTooltip="Institutionen, denen die Autorinnen und Autoren angehören. Klicke auf eine Institution, um zu ihrer Seite zu gelangen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<span class="count-badge">{{ institutions().length }}</span>
<mat-icon class="chevron" [class.rotated]="!institutionsExpanded"
>expand_more</mat-icon
<mat-icon
class="chevron"
[class.rotated]="!institutionsExpanded"
>{{ EXPAND_MORE_ICON }}</mat-icon
>
</button>
@if (institutionsExpanded) {
@@ -431,7 +433,7 @@
class="page-btn"
[disabled]="institutionsPage === 0"
(click)="institutionsPage = institutionsPage - 1">
<mat-icon>chevron_left</mat-icon>
<mat-icon>{{ CHEVRON_LEFT_ICON }}</mat-icon>
</button>
<span class="page-indicator"
>{{ institutionsPage + 1 }} /
@@ -444,7 +446,7 @@
institutionsPage === institutionsPageCount() - 1
"
(click)="institutionsPage = institutionsPage + 1">
<mat-icon>chevron_right</mat-icon>
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
</div>
}
@@ -460,19 +462,19 @@
class="accordion-header"
(click)="fundingExpanded = !fundingExpanded"
[attr.aria-expanded]="fundingExpanded">
<mat-icon>paid</mat-icon>
<mat-icon>{{ PAID_ICON }}</mat-icon>
<span class="accordion-title">Förderungen</span>
<mat-icon
class="info-icon"
matTooltip="Förderorganisationen und Förderungen, die zu dieser Publikation beigetragen haben."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<span class="count-badge">{{ fundingCount() }}</span>
<mat-icon class="chevron" [class.rotated]="!fundingExpanded"
>expand_more</mat-icon
>
<mat-icon class="chevron" [class.rotated]="!fundingExpanded">{{
EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (fundingExpanded) {
<div class="accordion-body">
@@ -506,19 +508,19 @@
class="accordion-header"
(click)="linksExpanded = !linksExpanded"
[attr.aria-expanded]="linksExpanded">
<mat-icon>link</mat-icon>
<mat-icon>{{ LINK_ICON }}</mat-icon>
<span class="accordion-title">Externe Links</span>
<mat-icon
class="info-icon"
matTooltip="Externe Links zur Publikation, z. B. DOI oder Open-Access-Version. Klicke auf einen Link, um ihn in einem neuen Tab zu öffnen."
matTooltipPosition="above"
(click)="$event.stopPropagation()"
>info_outline</mat-icon
>{{ INFO_OUTLINE_ICON }}</mat-icon
>
<span class="count-badge">{{ externalLinks().length }}</span>
<mat-icon class="chevron" [class.rotated]="!linksExpanded"
>expand_more</mat-icon
>
<mat-icon class="chevron" [class.rotated]="!linksExpanded">{{
EXPAND_MORE_ICON
}}</mat-icon>
</button>
@if (linksExpanded) {
<div class="accordion-body">
@@ -526,7 +528,7 @@
@for (link of externalLinks(); track link.url) {
<a [href]="link.url" target="_blank" rel="noopener">
<span>{{ link.label }}</span>
<mat-icon>north_east</mat-icon>
<mat-icon>{{ NORTH_EAST_ICON }}</mat-icon>
</a>
}
</div>
@@ -23,6 +23,30 @@ import { WorkTypePipe } from '../../shared/pipes/work-type.pipe';
import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe';
import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe';
import { ResearchProfileComponent } from './research-profile/research-profile.component';
import {
ACCOUNT_BALANCE_ICON,
ARROW_BACK_ICON,
CHEVRON_LEFT_ICON,
CHEVRON_RIGHT_ICON,
CITATION_ICON,
EXPAND_MORE_ICON,
GROUP_ICON,
INFO_ICON,
INFO_OUTLINE_ICON,
INTERESTS_ICON,
LABEL_ICON,
LIBRARY_BOOKS_ICON,
LINK_ICON,
LOCK_ICON,
LOCK_OPEN_ICON,
MENU_BOOK_ICON,
NORTH_EAST_ICON,
OPEN_IN_NEW_ICON,
PAID_ICON,
SEARCH_OFF_ICON,
SUBJECT_ICON,
WARNING_ICON,
} from '../../shared/ui/icons';
interface DetailLink {
label: string;
@@ -57,6 +81,29 @@ interface InstitutionDetail {
styleUrl: './publication-detail.component.scss',
})
export class PublicationDetailComponent implements OnInit {
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON;
readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON;
readonly CITATION_ICON = CITATION_ICON;
readonly LOCK_ICON = LOCK_ICON;
readonly LOCK_OPEN_ICON = LOCK_OPEN_ICON;
readonly WARNING_ICON = WARNING_ICON;
readonly SUBJECT_ICON = SUBJECT_ICON;
readonly GROUP_ICON = GROUP_ICON;
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON;
readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON;
readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON;
readonly LABEL_ICON = LABEL_ICON;
readonly INTERESTS_ICON = INTERESTS_ICON;
readonly LIBRARY_BOOKS_ICON = LIBRARY_BOOKS_ICON;
readonly INFO_ICON = INFO_ICON;
readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON;
readonly PAID_ICON = PAID_ICON;
readonly LINK_ICON = LINK_ICON;
readonly NORTH_EAST_ICON = NORTH_EAST_ICON;
private readonly destroyRef = inject(DestroyRef);
private readonly route = inject(ActivatedRoute);
private readonly httpClient = inject(HttpClient);
@@ -1,7 +1,7 @@
@if (details(); as profile) {
<mat-card appearance="outlined" class="research-profile-card">
<mat-card-header class="profile-header">
<mat-icon class="profile-icon">science</mat-icon>
<mat-icon class="profile-icon">{{ SCIENCE_ICON }}</mat-icon>
<div class="profile-heading">
<mat-card-title>Forschungsprofil</mat-card-title>
<mat-card-subtitle>
@@ -67,7 +67,7 @@
matTooltipPosition="above"
(click)="$event.stopPropagation()"
aria-label="Erläuterung zur Konfidenz">
info_outline
{{ INFO_OUTLINE_ICON }}
</mat-icon>
</mat-card>
}
@@ -81,7 +81,7 @@
matTooltipPosition="above"
(click)="$event.stopPropagation()"
aria-label="Erläuterung zur Informationsgrundlage">
info_outline
{{ INFO_OUTLINE_ICON }}
</mat-icon>
</mat-card>
}
@@ -21,6 +21,7 @@ import { WorkPrimaryCategoryPipe } from '../../../shared/pipes/work-primary-cate
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
import { OrientationGaugeComponent } from '../../../shared/ui/orientation-gauge/orientation-gauge.component';
import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component';
import { INFO_OUTLINE_ICON, SCIENCE_ICON } from '../../../shared/ui/icons';
type PasteurQuadrant =
| 'pure_basic'
@@ -83,6 +84,9 @@ const QUADRANTS: readonly QuadrantDefinition[] = [
styleUrl: './research-profile.component.scss',
})
export class ResearchProfileComponent {
readonly SCIENCE_ICON = SCIENCE_ICON;
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
private readonly destroyRef = inject(DestroyRef);
private readonly chartTheme = inject(ChartThemeService);
private readonly quadrantChartSize = signal({ width: 640, height: 320 });
@@ -9,7 +9,7 @@
@if (passwordChanged()) {
<div class="login-form">
<div class="code-intro">
<mat-icon>check_circle</mat-icon>
<mat-icon>{{ CHECK_CIRCLE_ICON }}</mat-icon>
<div>
<strong>Passwort geändert</strong>
<span>
@@ -31,7 +31,7 @@
} @else if (!hasToken()) {
<div class="login-form">
<div class="code-intro">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<div>
<strong>Ungültiger Link</strong>
<span>
@@ -41,7 +41,6 @@
</div>
</div>
<
<div class="form-actions">
<a class="auth-link" routerLink="/login">Zurück zum Login</a>
@@ -53,7 +52,7 @@
} @else if (linkInvalid()) {
<div class="login-form">
<div class="code-intro">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<div>
<strong>Link nicht mehr gültig</strong>
<span>
@@ -89,7 +88,7 @@
"
(click)="showPasswords.set(!showPasswords())">
<mat-icon>
{{ showPasswords() ? 'visibility' : 'visibility_off' }}
{{ showPasswords() ? VISIBILITY_ICON : VISIBILITY_OFF_ICON }}
</mat-icon>
</button>
@@ -119,7 +118,7 @@
"
(click)="showPasswords.set(!showPasswords())">
<mat-icon>
{{ showPasswords() ? 'visibility' : 'visibility_off' }}
{{ showPasswords() ? VISIBILITY_ICON : VISIBILITY_OFF_ICON }}
</mat-icon>
</button>
@@ -134,7 +133,7 @@
@if (errorMessage()) {
<div class="code-intro">
<mat-icon>error_outline</mat-icon>
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
<div>
<strong>Fehler</strong>
<span>{{ errorMessage() }}</span>
@@ -19,6 +19,12 @@ import { MatInputModule } from '@angular/material/input';
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
import { CredentialService } from '../../shared/services/credential.service';
import {
CHECK_CIRCLE_ICON,
ERROR_OUTLINE_ICON,
VISIBILITY_ICON,
VISIBILITY_OFF_ICON,
} from '../../shared/ui/icons';
@Component({
selector: 'app-reset-password',
@@ -36,6 +42,11 @@ import { CredentialService } from '../../shared/services/credential.service';
styleUrl: '../app-login/app-login.component.scss',
})
export class ResetPasswordComponent {
readonly CHECK_CIRCLE_ICON = CHECK_CIRCLE_ICON;
readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON;
readonly VISIBILITY_ICON = VISIBILITY_ICON;
readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON;
private readonly destroyRef = inject(DestroyRef);
private readonly snackBar = inject(MatSnackBar);
private readonly resetToken = signal<string | undefined>(undefined);
@@ -9,7 +9,7 @@
<mat-divider />
<div class="metrics">
<div class="metric-item">
<mat-icon>menu_book</mat-icon>
<mat-icon>{{ MENU_BOOK_ICON }}</mat-icon>
<span
>{{
topic.works_count | number: undefined : 'de'
@@ -18,7 +18,7 @@
>
</div>
<div class="metric-item">
<mat-icon>format_quote</mat-icon>
<mat-icon>{{ CITATION_ICON }}</mat-icon>
<span
>{{
topic.cited_by_count | number: undefined : 'de'
@@ -6,7 +6,11 @@ import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@angular/material/icon';
import { DecimalPipe } from '@angular/common';
import { topicHierarchyColor } from '../../resolvers/utils/topic-colors';
import { PUBLICATION_ICON } from '../../shared/ui/icons';
import {
CITATION_ICON,
MENU_BOOK_ICON,
PUBLICATION_ICON,
} from '../../shared/ui/icons';
import {
LinkTabNavBarComponent,
LinkTabNavBarItem,
@@ -29,6 +33,9 @@ import {
styleUrl: './topic.component.scss',
})
export class TopicComponent {
readonly MENU_BOOK_ICON = MENU_BOOK_ICON;
readonly CITATION_ICON = CITATION_ICON;
topic = input.required<Topic>();
links: LinkTabNavBarItem[] = [
@@ -9,6 +9,7 @@ import { SortDirection, TopicPageV2, TopicSortBy } from '../../api';
import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component';
import { topicQueryParamKeys } from '../../resolvers/topic-page.resolver';
import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component';
import { SEARCH_ICON } from '../../shared/ui/icons';
@Component({
selector: 'app-topics',
@@ -23,7 +24,7 @@ export class TopicsComponent {
{
id: 'query',
queryParamKey: topicQueryParamKeys.query,
icon: 'search',
icon: SEARCH_ICON,
removable: true,
},
];
@@ -6,28 +6,28 @@
[class.active]="selectedSearchType() === 'publications'"
(click)="setSearchType('publications')"
matTooltip="Zeigt Publikationstrends nach Einrichtung, Land oder Region">
<mat-icon>library_books</mat-icon> Publikationen
<mat-icon>{{ LIBRARY_BOOKS_ICON }}</mat-icon> Publikationen
</button>
<button
mat-button
[class.active]="selectedSearchType() === 'authors'"
(click)="setSearchType('authors')"
matTooltip="Zeigt Publikationstrends einzelner Autoren">
<mat-icon>people</mat-icon> Autoren
<mat-icon>{{ PEOPLE_ICON }}</mat-icon> Autoren
</button>
<button
mat-button
[class.active]="selectedSearchType() === 'patents'"
(click)="setSearchType('patents')"
matTooltip="Zeigt Patentanmeldungstrends">
<mat-icon>assignment</mat-icon> Patente
<mat-icon>{{ ASSIGNMENT_ICON }}</mat-icon> Patente
</button>
<button
mat-button
[class.active]="selectedSearchType() === 'projects'"
(click)="setSearchType('projects')"
matTooltip="Zeigt Drittmittelförderungstrends">
<mat-icon>business_center</mat-icon> Projekte
<mat-icon>{{ BUSINESS_CENTER_ICON }}</mat-icon> Projekte
</button>
<button
mat-button
@@ -39,14 +39,14 @@
: 'Zeigt Pressemitteilungstrends der UDE im Vergleich zur Web-Berichterstattung (CC-News). Der CC-News-Vergleich erfordert deaktivierte Fuzzy-Suche.'
"
(click)="setSearchType('news')">
<mat-icon>campaign</mat-icon> News
<mat-icon>{{ CAMPAIGN_ICON }}</mat-icon> News
</button>
<button
mat-button
[class.active]="selectedSearchType() === 'all'"
(click)="setSearchType('all')"
matTooltip="Zeigt den aggregierten Themenlebenszyklus über alle Fachbereiche">
<mat-icon>dashboard</mat-icon> Themenlebenszyklus (All)
<mat-icon>{{ DASHBOARD_ICON }}</mat-icon> Themenlebenszyklus (All)
</button>
</div>
@@ -73,19 +73,19 @@
<mat-button-toggle
value="normalized"
matTooltip="Normiert das Publikationsvolumen auf [0,1], um die Form von Wachstumstrends zu vergleichen.">
<mat-icon>trending_down</mat-icon>
<mat-icon>{{ TRENDING_DOWN_ICON }}</mat-icon>
<span class="toggle-text">Normierte Skala</span>
</mat-button-toggle>
<mat-button-toggle
value="total"
matTooltip="Zeigt die absolute Anzahl der Publikationen.">
<mat-icon>bar_chart</mat-icon>
<mat-icon>{{ BAR_CHART_ICON }}</mat-icon>
<span class="toggle-text">Gesamtvolumen</span>
</mat-button-toggle>
<mat-button-toggle
value="cumulative"
matTooltip="Zeigt das normierte kumulierte Publikationswachstum (S-Kurve).">
<mat-icon>trending_up</mat-icon>
<mat-icon>{{ TRENDING_UP_ICON }}</mat-icon>
<span class="toggle-text">S-Kurve (Normiert)</span>
</mat-button-toggle>
</mat-button-toggle-group>
@@ -186,7 +186,7 @@
}
@if (selectedSearchType() === 'news' && !hasCcNewsSeries()) {
<div class="cc-news-hint">
<mat-icon>info_outline</mat-icon>
<mat-icon>{{ INFO_OUTLINE_ICON }}</mat-icon>
<span>
Der CC-News-Vergleich (hinterlegte Fläche, ab 2017) ist aktuell
nur bei deaktivierter Fuzzy-Suche verfügbar, da für
@@ -277,9 +277,9 @@
align-items: center;
gap: 8px;
">
<mat-icon style="color: var(--sg-primary)"
>account_tree</mat-icon
>
<mat-icon style="color: var(--sg-primary)">{{
ACCOUNT_TREE_ICON
}}</mat-icon>
Themen-Hierarchie &amp; Verteilung (Treemap)
@if (selectedPieEntity()?.name || primaryInstitutionName()) {
<span
@@ -304,7 +304,7 @@
}
} @else {
<div class="no-data-fallback">
<mat-icon>trending_up</mat-icon>
<mat-icon>{{ TRENDING_UP_ICON }}</mat-icon>
<p>Bitte wählen Sie Themen aus, um die Trends zu laden.</p>
</div>
}
@@ -83,6 +83,19 @@ import {
newsSourceColor,
} from '../utils/trend.utils';
import { TrendDataService } from '../services/trend-data.service';
import {
ACCOUNT_TREE_ICON,
ASSIGNMENT_ICON,
BAR_CHART_ICON,
BUSINESS_CENTER_ICON,
CAMPAIGN_ICON,
DASHBOARD_ICON,
INFO_OUTLINE_ICON,
LIBRARY_BOOKS_ICON,
PEOPLE_ICON,
TRENDING_DOWN_ICON,
TRENDING_UP_ICON,
} from '../../../shared/ui/icons';
@Component({
selector: 'app-uni-trend-parent',
@@ -110,6 +123,18 @@ import { TrendDataService } from '../services/trend-data.service';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UniTrendParentComponent implements OnInit {
readonly LIBRARY_BOOKS_ICON = LIBRARY_BOOKS_ICON;
readonly PEOPLE_ICON = PEOPLE_ICON;
readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON;
readonly BUSINESS_CENTER_ICON = BUSINESS_CENTER_ICON;
readonly CAMPAIGN_ICON = CAMPAIGN_ICON;
readonly DASHBOARD_ICON = DASHBOARD_ICON;
readonly TRENDING_DOWN_ICON = TRENDING_DOWN_ICON;
readonly BAR_CHART_ICON = BAR_CHART_ICON;
readonly TRENDING_UP_ICON = TRENDING_UP_ICON;
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON;
private readonly apiService = inject(UniversityRankingsService);
private readonly institutionsApiService = inject(InstitutionsService);
private readonly institutionsV2Service = inject(InstitutionsV2Service);

Some files were not shown because too many files have changed in this diff Show More