Feature/multipliers frontend #323
File diff suppressed because it is too large
Load Diff
@@ -1,38 +1,37 @@
|
||||
<app-page-container
|
||||
eyebrow="Meine Sammlung"
|
||||
title="Bookmarks"
|
||||
title="Bookmarks verwalten"
|
||||
subtitle="Gespeicherte Personen für den schnellen Zugriff.">
|
||||
<div pageActions class="bookmark-count">
|
||||
<mat-icon>{{ BOOKMARKS_ICON }}</mat-icon>
|
||||
<strong>{{ persons().length }}</strong>
|
||||
<span>Personen</span>
|
||||
</div>
|
||||
<main class="bookmarks-page">
|
||||
|
||||
@if (loading()) {
|
||||
<app-loading
|
||||
text="Bookmarks werden geladen …"
|
||||
[icon]="BOOKMARKS_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else if (persons().length) {
|
||||
<section class="person-grid" aria-label="Gespeicherte Personen">
|
||||
@for (person of persons(); track person.id) {
|
||||
<app-person-card
|
||||
[person]="person"
|
||||
[isBookmarked]="bookmarkService.isBookmarked(person.id)"
|
||||
(bookmarkToggle)="toggleBookmark($event)">
|
||||
</app-person-card>
|
||||
}
|
||||
</section>
|
||||
} @else {
|
||||
<section class="empty-state">
|
||||
<mat-icon>{{ BOOKMARK_BORDER_ICON }}</mat-icon>
|
||||
<h2>Noch keine Bookmarks</h2>
|
||||
<p>
|
||||
Speichere Personen über das Bookmark-Symbol auf einer Personenkarte.
|
||||
</p>
|
||||
</section>
|
||||
}
|
||||
</main>
|
||||
<main class="bookmarks-page">
|
||||
@if (loading()) {
|
||||
<app-loading
|
||||
text="Bookmarks werden geladen …"
|
||||
[icon]="BOOKMARKS_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else if (persons().length) {
|
||||
<section class="person-grid" aria-label="Gespeicherte Personen">
|
||||
@for (person of persons(); track person.id) {
|
||||
<app-person-card
|
||||
[person]="person"
|
||||
[isBookmarked]="bookmarkService.isBookmarked(person.id)"
|
||||
(bookmarkToggle)="toggleBookmark($event)">
|
||||
</app-person-card>
|
||||
}
|
||||
</section>
|
||||
} @else {
|
||||
<section class="empty-state">
|
||||
<mat-icon>{{ BOOKMARK_BORDER_ICON }}</mat-icon>
|
||||
<h2>Noch keine Bookmarks</h2>
|
||||
<p>
|
||||
Speichere Personen über das Bookmark-Symbol auf einer Personenkarte.
|
||||
</p>
|
||||
</section>
|
||||
}
|
||||
</main>
|
||||
</app-page-container>
|
||||
|
||||
+31
-11
@@ -1,18 +1,38 @@
|
||||
<a
|
||||
class="statistics-card"
|
||||
[routerLink]="disabled() ? null : link()"
|
||||
[queryParams]="queryParams()"
|
||||
[class.disabled]="disabled()"
|
||||
[attr.aria-disabled]="disabled() || null"
|
||||
[attr.aria-label]="ariaLabel()"
|
||||
[attr.tabindex]="disabled() ? -1 : null"
|
||||
[matTooltip]="tooltip()"
|
||||
matTooltipPosition="above">
|
||||
<ng-template #content>
|
||||
<div class="statistics-icon" [class]="'statistics-icon--' + variant()">
|
||||
<mat-icon>{{ icon() }}</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ label() }}</span>
|
||||
<strong>{{ loading() ? '…' : ((value() | number) ?? '–') }}</strong>
|
||||
@if (detail()) {
|
||||
<small class="statistics-detail">{{ detail() }}</small>
|
||||
}
|
||||
</div>
|
||||
</a>
|
||||
</ng-template>
|
||||
|
||||
@if (link()) {
|
||||
<a
|
||||
class="statistics-card"
|
||||
[routerLink]="disabled() ? null : link()"
|
||||
[queryParams]="queryParams()"
|
||||
[class.disabled]="disabled()"
|
||||
[attr.aria-disabled]="disabled() || null"
|
||||
[attr.aria-label]="ariaLabel()"
|
||||
[attr.tabindex]="disabled() ? -1 : null"
|
||||
[matTooltip]="tooltip()"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<ng-container *ngTemplateOutlet="content" />
|
||||
</a>
|
||||
} @else {
|
||||
<div
|
||||
class="statistics-card statistics-card--static"
|
||||
role="group"
|
||||
[attr.aria-label]="ariaLabel()"
|
||||
[matTooltip]="tooltip()"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<ng-container *ngTemplateOutlet="content" />
|
||||
</div>
|
||||
}
|
||||
|
||||
+29
-1
@@ -34,6 +34,16 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&--static {
|
||||
cursor: default;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
color: var(--sg-text-muted);
|
||||
@@ -46,6 +56,13 @@
|
||||
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.statistics-detail {
|
||||
display: block;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-icon {
|
||||
@@ -69,8 +86,19 @@
|
||||
}
|
||||
|
||||
&--bund-projects,
|
||||
&--dfg-projects {
|
||||
&--dfg-projects,
|
||||
&--shortlist {
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&--founders {
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--quality {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
+14
-3
@@ -1,4 +1,4 @@
|
||||
import { DecimalPipe } from '@angular/common';
|
||||
import { DecimalPipe, NgTemplateOutlet } from '@angular/common';
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
@@ -10,17 +10,28 @@ export type DashboardStatisticCardVariant =
|
||||
| 'patents'
|
||||
| 'eu-projects'
|
||||
| 'bund-projects'
|
||||
| 'dfg-projects';
|
||||
| 'dfg-projects'
|
||||
| 'founders'
|
||||
| 'quality'
|
||||
| 'shortlist';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-statistic-card',
|
||||
imports: [DecimalPipe, MatIconModule, MatTooltipModule, RouterLink],
|
||||
imports: [
|
||||
DecimalPipe,
|
||||
NgTemplateOutlet,
|
||||
MatIconModule,
|
||||
MatTooltipModule,
|
||||
RouterLink,
|
||||
],
|
||||
templateUrl: './dashboard-statistic-card.component.html',
|
||||
styleUrl: './dashboard-statistic-card.component.scss',
|
||||
})
|
||||
export class DashboardStatisticCardComponent {
|
||||
readonly label = input.required<string>();
|
||||
readonly value = input<number | null>();
|
||||
/** Optional secondary line below the value, e.g. a share or denominator. */
|
||||
readonly detail = input<string | null>(null);
|
||||
readonly loading = input(false);
|
||||
readonly icon = input.required<string>();
|
||||
readonly variant = input.required<DashboardStatisticCardVariant>();
|
||||
|
||||
+244
-257
@@ -1,185 +1,71 @@
|
||||
<app-page-container
|
||||
title="Gründungspotenzial von {{ universityName() }}"
|
||||
[subtitle]="
|
||||
'Gründungspotenzial der Forschenden der ' +
|
||||
universityName() +
|
||||
'. Das Modell vergleicht Profile mit rund 9.000 Forschenden aus acht Universitäten; ein hoher Score ist keine Shortlist, daher wird die Datenqualität zusätzlich geprüft.'
|
||||
">
|
||||
[eyebrow]="'Gründungspotenzial · ' + universityName()"
|
||||
title="Wer hat Gründungspotenzial?"
|
||||
subtitle="Kandidat:innen für Gründungsgespräche und -angebote."
|
||||
[titleTooltip]="pageTooltip">
|
||||
<div class="founder-dashboard">
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
<strong>Datenbasis:</strong> Publikationen, Patente, Förderungen und
|
||||
Industriekooperationen werden für Forschende der Universität bis zum
|
||||
jeweiligen Datenstichtag zusammengeführt. Ein vortrainiertes,
|
||||
symmetrisch aufgebautes Modell schätzt die Ähnlichkeit zu Profilen von
|
||||
Personen, die gegründet haben.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Der Hauptwert ist ein
|
||||
<strong
|
||||
>Perzentil gegenüber einer festen Referenzkohorte von rund 9.000
|
||||
Forschenden aus acht anderen Universitäten</strong
|
||||
>
|
||||
– keine individuelle Gründungswahrscheinlichkeit.
|
||||
</li>
|
||||
<li>
|
||||
„Innerhalb 1 / 3 / 5 Jahre“ kommt aus drei eigenen Horizont-Modellen.
|
||||
Bewertbar sind Profile ab mindestens vier Publikationen. Die
|
||||
Kandidatenliste blendet standardmäßig Profile mit weniger als sieben
|
||||
Publikationen, unplausibel langen Karrieren (über 40 Jahre) und
|
||||
wahrscheinlichen Profilzusammenführungen aus.
|
||||
</li>
|
||||
</ul>
|
||||
</app-methodology-note>
|
||||
@if (hasData()) {
|
||||
<div class="kpis">
|
||||
<mat-card appearance="outlined" class="kpi">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Forschende im Index</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().total) }}</div>
|
||||
<div class="kpi__sub">gesamte Kohorte</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" class="kpi">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Bestehen Datenqualität</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().passed) }}</div>
|
||||
<div class="kpi__sub">{{ kpis().share }} % der Kohorte</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" class="kpi kpi--hero">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Auf der Shortlist</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().shortlisted) }}</div>
|
||||
<div class="kpi__sub">
|
||||
Score ≥ {{ fmt1(threshold())
|
||||
}}{{ screened() ? ', gescreent' : ', ungescreent' }}
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
@if (hasData() && hasScores()) {
|
||||
<section class="statistics-grid" aria-label="Kennzahlen">
|
||||
<app-dashboard-statistic-card
|
||||
label="Forschende gesamt"
|
||||
[value]="kpis().total"
|
||||
[icon]="PERSONS_ICON"
|
||||
variant="persons"
|
||||
[ariaLabel]="'Forschende gesamt: ' + fmtInt(kpis().total)"
|
||||
[tooltip]="totalTooltip"
|
||||
[detail]="'inkl. nicht bewertbarer Profile'" />
|
||||
|
||||
<!-- <section>
|
||||
<h2>1 · Warum die Shortlist klein ist</h2>
|
||||
<p class="note">
|
||||
Jeder Balken zeigt, wie viele Personen nach einer Screening-Regel übrig
|
||||
bleiben. Die mittleren Regeln existieren, weil OpenAlex-Profile manchmal
|
||||
zusammengeführt oder falsch datiert sind – und dieses Modell darauf
|
||||
besonders empfindlich reagiert.
|
||||
</p>
|
||||
<div class="funnel">
|
||||
@for (row of funnel(); track row.key) {
|
||||
<div class="funnel__row">
|
||||
<div class="funnel__label">{{ row.label }}</div>
|
||||
<div
|
||||
class="funnel__track"
|
||||
[title]="fmtInt(row.count) + ' Forschende verbleiben'">
|
||||
<mat-progress-bar mode="determinate" [value]="row.pct" />
|
||||
</div>
|
||||
<div class="funnel__count">{{ fmtInt(row.count) }}</div>
|
||||
<div class="funnel__lost">
|
||||
{{ row.lost ? '−' + fmtInt(row.lost) : '' }}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section> -->
|
||||
<section>
|
||||
<h2>1 · Woher die Kandidat:innen kommen</h2>
|
||||
<p class="note">
|
||||
Beide Panels nutzen die Shortlist am aktuellen Schwellenwert.
|
||||
</p>
|
||||
<div class="charts">
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">Karrierestufe</div>
|
||||
<div class="chart__body">
|
||||
@for (s of stageRows(); track s.career_bucket) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ s.career_bucket }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(s.shortlist_plain ?? 0) +
|
||||
' von ' +
|
||||
fmtInt(s.screened) +
|
||||
' gescreenten Forschenden'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="
|
||||
((s.shortlist_plain ?? 0) / stageMax()) * 100
|
||||
" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ s.shortlist_plain ?? 0 }}
|
||||
<small>/ {{ fmtInt(s.screened) }}</small></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente
|
||||
Pool der Stufe.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<app-dashboard-statistic-card
|
||||
label="Vom Modell bewertet"
|
||||
[value]="kpis().scoreable"
|
||||
[icon]="FOUNDER_ICON"
|
||||
variant="founders"
|
||||
[ariaLabel]="'Vom Modell bewertet: ' + fmtInt(kpis().scoreable)"
|
||||
[tooltip]="scoreableTooltip"
|
||||
[detail]="scoreableDetail()" />
|
||||
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">
|
||||
Forschungsfeld, vs. Anteil an der Kohorte
|
||||
</div>
|
||||
<div class="chart__body">
|
||||
@for (a of areaRows(); track a.code) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ a.label ?? a.code }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(a.shortlist_count ?? 0) +
|
||||
' Kandidat:innen; dieses Feld ist ' +
|
||||
fmt1((a.cohort_share ?? 0) * 100) +
|
||||
' % der gescreenten Kohorte'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="
|
||||
((a.shortlist_count ?? 0) / areaMax()) * 100
|
||||
" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ a.shortlist_count ?? 0 }}
|
||||
<small
|
||||
>· {{ fmt1((a.cohort_share ?? 0) * 100) }} % der
|
||||
Kohorte</small
|
||||
></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des
|
||||
Feldes an der gescreenten Kohorte – ein Feld deutlich über
|
||||
seinem Anteil überproduziert.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
<app-dashboard-statistic-card
|
||||
label="Unauffällige Profile"
|
||||
[value]="kpis().passed"
|
||||
[icon]="VERIFIED_ICON"
|
||||
variant="quality"
|
||||
[ariaLabel]="'Unauffällige Profile: ' + fmtInt(kpis().passed)"
|
||||
[tooltip]="qualityTooltip()"
|
||||
[detail]="qualityDetail()" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Auf der Shortlist"
|
||||
[value]="kpis().shortlisted"
|
||||
[icon]="STAR_ICON"
|
||||
variant="shortlist"
|
||||
[ariaLabel]="'Auf der Shortlist: ' + fmtInt(kpis().shortlisted)"
|
||||
[tooltip]="shortlistTooltip()"
|
||||
[detail]="shortlistDetail()" />
|
||||
</section>
|
||||
<section>
|
||||
<h2>2 · Die Shortlist</h2>
|
||||
<p class="note">
|
||||
Verschiebe den Schwellenwert, um Listenlänge gegen Sicherheit
|
||||
abzuwägen. Aktiviere das Screening für eine handlungsfähige Liste;
|
||||
deaktiviere es, um zu sehen, was der rohe Modell-Score hervorgebracht
|
||||
hätte – orange Zeilen sind Datensätze, die eine Datenqualitätsregel
|
||||
verletzt haben. Klicke auf eine Person, um ihre Karte zu öffnen.
|
||||
</p>
|
||||
|
||||
<section class="shortlist-section">
|
||||
<div class="section-heading">
|
||||
<h2>Shortlist: Top-Kandidat:innen</h2>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="shortlistSectionTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</div>
|
||||
|
||||
<div class="controls">
|
||||
<span class="controls__range">Minimaler Score</span>
|
||||
<span class="controls__range">
|
||||
Mindestwert
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="thresholdTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
<mat-slider
|
||||
class="controls__slider"
|
||||
[min]="50"
|
||||
@@ -193,13 +79,16 @@
|
||||
(valueChange)="onSliderInput($event)"
|
||||
(dragEnd)="onSliderCommit($event.value)"
|
||||
(keyup)="onSliderCommit()"
|
||||
aria-label="Minimaler Score" />
|
||||
aria-label="Mindestwert für die Shortlist" />
|
||||
</mat-slider>
|
||||
<span class="controls__value">{{ thresholdDraft() }}</span>
|
||||
<mat-slide-toggle
|
||||
[checked]="screened()"
|
||||
(change)="onScreenedChange($event.checked)">
|
||||
Fehlerhafte Datensätze aussortieren
|
||||
(change)="onScreenedChange($event.checked)"
|
||||
[matTooltip]="screeningTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
Auffällige Profile ausblenden
|
||||
</mat-slide-toggle>
|
||||
<span class="controls__count">
|
||||
{{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }}
|
||||
@@ -213,105 +102,173 @@
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[selectedRow]="selectedRow()"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortOrder"
|
||||
(rowClick)="selectCandidate($event.candidate.author_id)" />
|
||||
} @else {
|
||||
<div class="list__empty">
|
||||
Niemand erreicht diesen Schwellenwert, sobald fehlerhafte
|
||||
Datensätze aussortiert sind. Senke den Schwellenwert für eine
|
||||
handlungsfähige Liste.
|
||||
<p>{{ emptyListMessage() }}</p>
|
||||
@if (threshold() > 50) {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
type="button"
|
||||
(click)="onLowerThreshold()">
|
||||
Mindestwert auf {{ threshold() - 10 }} senken
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
|
||||
@if (selectedRow(); as row) {
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<mat-card-content>
|
||||
<div class="card__head">
|
||||
<div>
|
||||
<span class="card__eyebrow">Ausgewählt</span>
|
||||
<h3>{{ row.name }}</h3>
|
||||
<div class="card__meta">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
<span
|
||||
class="card__career"
|
||||
[matTooltip]="careerBucketTooltip(row.candidate.career_bucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
</span>
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
· {{ fmtInt(row.candidate.active_years) }} aktive Jahre
|
||||
· {{ fmtInt(row.candidate.active_years) }} Jahre mit
|
||||
Publikationen
|
||||
@if (!row.candidate.screen.passed && row.flagLabel) {
|
||||
·
|
||||
<span class="card__flag"
|
||||
>auffällig: {{ row.flagLabel }}</span
|
||||
>
|
||||
<span
|
||||
class="card__flag"
|
||||
[matTooltip]="flagTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
auffällig: {{ row.flagLabel }}
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card__grid card__grid--founder-only">
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Gründungspotenzial</div>
|
||||
<p class="panel__cap">
|
||||
Perzentil gegenüber der Modell-Referenzkohorte; keine
|
||||
individuelle Wahrscheinlichkeit.
|
||||
</p>
|
||||
<app-score-bar
|
||||
label="Score"
|
||||
[value]="row.score ?? 0"
|
||||
[display]="fmt1(row.score)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 1 Jahr"
|
||||
[value]="row.within[0] ?? 0"
|
||||
[display]="fmt1(row.within[0])" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 3 Jahre"
|
||||
[value]="row.within[1] ?? 0"
|
||||
[display]="fmt1(row.within[1])" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 5 Jahre"
|
||||
[value]="row.within[2] ?? 0"
|
||||
[display]="fmt1(row.within[2])" />
|
||||
<p class="score-caption">
|
||||
Alle Werte sind Ränge von 0 bis 100 – keine Wahrscheinlichkeiten.
|
||||
90 heißt: stärker als 90 % der Vergleichsgruppe.
|
||||
</p>
|
||||
|
||||
<div class="score-tiles">
|
||||
<div
|
||||
class="score-tile score-tile--primary"
|
||||
[matTooltip]="scoreTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Potenzial</span>
|
||||
<strong>{{ fmt1(row.score) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
class="score-tile"
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Signal 1 Jahr</span>
|
||||
<strong>{{ fmt1(row.within[0]) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
class="score-tile"
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Signal 3 Jahre</span>
|
||||
<strong>{{ fmt1(row.within[1]) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
class="score-tile"
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Signal 5 Jahre</span>
|
||||
<strong>{{ fmt1(row.within[2]) }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Publikationen
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Publikationen der Person."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Publikationen
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.publications)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Patente
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Patente mit Bezug zur Einrichtung."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Patente
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.patents)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Industrie-Publikationen
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Arbeiten mit Beteiligung aus Unternehmen."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Arbeiten mit Industrie
|
||||
<b>{{
|
||||
fmtInt(
|
||||
row.candidate.founder_features?.industry_collab_papers
|
||||
)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Förderungen
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Förderprojekte."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Förderprojekte
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.grants)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>aktive Jahre
|
||||
<b>{{ fmtInt(row.candidate.active_years) }}</b></app-chip
|
||||
>
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Jahre mit mindestens einer Publikation."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Aktive Jahre
|
||||
<b>{{ fmtInt(row.candidate.active_years) }}</b>
|
||||
</app-chip>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
</section>
|
||||
} @else if (hasData()) {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
<mat-icon class="empty-state__icon">{{ FOUNDER_ICON }}</mat-icon>
|
||||
<h2>Noch keine Gründungspotenzial-Scores</h2>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> liegen Forschungsdaten
|
||||
vor, aber die Gründungspotenzial-Auswertung wurde noch nicht
|
||||
berechnet. Sobald sie vorliegt, erscheinen hier die Kandidat:innen und
|
||||
ihre Werte.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
@@ -321,7 +278,7 @@
|
||||
Für die <strong>{{ universityName() }}</strong> wurde das
|
||||
Gründungspotenzial noch nicht berechnet. Sobald die Auswertung
|
||||
vorliegt, erscheinen hier die Kandidat:innen und ihre
|
||||
Gründungspotenzial-Scores.
|
||||
Gründungspotenzial-Werte.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@@ -333,7 +290,13 @@
|
||||
<span class="list__name">
|
||||
<span class="list__nm">{{ row.name }}</span>
|
||||
<span class="list__sub">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
<span
|
||||
class="list__career"
|
||||
[matTooltip]="careerBucketTooltip(row.candidate.career_bucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
</span>
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
@@ -342,40 +305,64 @@
|
||||
</ng-template>
|
||||
|
||||
<ng-template #scoreTemplate let-row>
|
||||
@if (row.score !== null) {
|
||||
<span class="list__score">
|
||||
<span class="list__meter">
|
||||
<mat-progress-bar mode="determinate" [value]="clamp0(row.score)" />
|
||||
</span>
|
||||
<span class="list__score-value">{{ fmt1(row.score) }}</span>
|
||||
</span>
|
||||
} @else {
|
||||
<span class="list__score-value">–</span>
|
||||
}
|
||||
<span class="list__score-value">{{ fmt1(row.score) }}</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #withinTemplate let-row>
|
||||
<span class="list__within">
|
||||
<span class="list__hist">
|
||||
@for (v of row.within; track $index) {
|
||||
<i [style.height.%]="histHeight(v)"></i>
|
||||
}
|
||||
</span>
|
||||
<span class="list__within-nums">
|
||||
{{ row.within.map((v) => (v === null ? '–' : round(v))).join(' · ') }}
|
||||
</span>
|
||||
<span class="list__within-nums">
|
||||
{{ row.within.map((v) => (v === null ? '–' : fmt1(v))).join(' · ') }}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #evidenceTemplate let-row>
|
||||
<span class="list__evidence">
|
||||
{{ fmtInt(row.candidate.founder_features?.publications) }} Publ.
|
||||
{{ fmtInt(row.candidate.founder_features?.publications) }} Publikationen
|
||||
@if (row.candidate.founder_features?.patents) {
|
||||
· {{ fmtInt(row.candidate.founder_features?.patents) }} Pat.
|
||||
· {{ fmtInt(row.candidate.founder_features?.patents) }} Patente
|
||||
}
|
||||
@if (row.candidate.founder_features?.industry_collab_papers) {
|
||||
·
|
||||
{{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} Ind.
|
||||
{{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} mit
|
||||
Industrie
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #scoreHeader>
|
||||
<span class="th-help">
|
||||
Potenzial (0–100)
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="scoreTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #withinHeader>
|
||||
<span class="th-help">
|
||||
Signal 1 / 3 / 5 Jahre
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #evidenceHeader>
|
||||
<span class="th-help">
|
||||
Signale
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="evidenceTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+119
-299
@@ -3,8 +3,14 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
section {
|
||||
margin-top: 40px;
|
||||
.info-icon {
|
||||
flex: none;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 19px;
|
||||
cursor: help;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
@@ -17,24 +23,24 @@ section {
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 34px;
|
||||
margin-bottom: 10px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 10px;
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
margin: 0 0 10px;
|
||||
color: var(--sg-text);
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
@@ -43,148 +49,64 @@ section {
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
margin: 0 0 4px;
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
line-height: var(--sg-section-title-line-height, 1.3);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.note {
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 2px 0 18px;
|
||||
max-width: 74ch;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
// -- KPIs ---------------------------------------------------------------
|
||||
|
||||
.kpis {
|
||||
.statistics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 26px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.kpi {
|
||||
background: var(--sg-surface-muted);
|
||||
// -- Shortlist ----------------------------------------------------------
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.kpi__key {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.kpi__value {
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--sg-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.kpi__sub {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
&.kpi--hero .kpi__value {
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
.shortlist-section {
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
// -- Funnel -------------------------------------------------------------
|
||||
|
||||
.funnel {
|
||||
.section-heading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.funnel__row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(140px, 240px) 1fr 64px 56px;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
|
||||
.funnel__label {
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.funnel__track {
|
||||
--mat-progress-bar-track-height: 20px;
|
||||
--mat-progress-bar-active-indicator-height: 20px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 4px;
|
||||
height: 22px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--sg-border);
|
||||
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
h2 {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.funnel__count {
|
||||
font-size: 13px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text);
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.funnel__lost {
|
||||
font-size: 11.5px;
|
||||
color: var(--sg-error);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// -- Controls -----------------------------------------------------------
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 22px;
|
||||
align-items: center;
|
||||
gap: 10px 22px;
|
||||
margin-bottom: 16px;
|
||||
padding: 12px 14px;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
margin-bottom: 16px;
|
||||
background: var(--sg-surface-muted);
|
||||
font-size: 13px;
|
||||
|
||||
&__range {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: 6px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
&__value {
|
||||
display: inline-block;
|
||||
min-width: 24px;
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text);
|
||||
min-width: 24px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&__count {
|
||||
color: var(--sg-text-soft);
|
||||
margin-left: auto;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
&__slider {
|
||||
@@ -193,8 +115,6 @@ h2 {
|
||||
}
|
||||
}
|
||||
|
||||
// -- List ---------------------------------------------------------------
|
||||
|
||||
.list-card {
|
||||
overflow: hidden;
|
||||
|
||||
@@ -211,10 +131,10 @@ h2 {
|
||||
.mat-mdc-header-cell {
|
||||
padding: 8px 14px;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.mat-mdc-cell {
|
||||
@@ -226,8 +146,9 @@ h2 {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
.mat-column-score {
|
||||
.mat-column-external_percentile {
|
||||
width: 15%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mat-column-within {
|
||||
@@ -238,11 +159,6 @@ h2 {
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.mat-column-actions {
|
||||
width: 10%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
tr.element-row {
|
||||
cursor: pointer;
|
||||
|
||||
@@ -263,96 +179,57 @@ h2 {
|
||||
}
|
||||
}
|
||||
|
||||
.th-help {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
&__icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 14px;
|
||||
cursor: help;
|
||||
}
|
||||
}
|
||||
|
||||
.list__nm {
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.list__sub {
|
||||
display: block;
|
||||
font-size: 11.5px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
.list__score {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.list__meter {
|
||||
--mat-progress-bar-track-height: 8px;
|
||||
--mat-progress-bar-active-indicator-height: 8px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
display: block;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 3px;
|
||||
height: 9px;
|
||||
flex: 1;
|
||||
min-width: 44px;
|
||||
overflow: hidden;
|
||||
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
}
|
||||
.list__career,
|
||||
.card__career {
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.list__score-value {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 12.5px;
|
||||
min-width: 34px;
|
||||
text-align: right;
|
||||
color: var(--sg-text);
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.list__within {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.list__hist {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
align-items: flex-end;
|
||||
height: 22px;
|
||||
|
||||
i {
|
||||
display: block;
|
||||
width: 9px;
|
||||
background: var(--sg-blue-highlight);
|
||||
border-radius: 2px 2px 0 0;
|
||||
opacity: 0.85;
|
||||
}
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.list__within-nums {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.list__evidence {
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.list__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.warn-pill {
|
||||
font-size: 10.5px;
|
||||
color: var(--sg-error);
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 999px;
|
||||
padding: 1px 7px;
|
||||
white-space: nowrap;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.list__empty {
|
||||
@@ -364,8 +241,8 @@ h2 {
|
||||
// -- Detail card --------------------------------------------------------
|
||||
|
||||
.card {
|
||||
background: var(--sg-surface-muted);
|
||||
margin-top: 16px;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 20px;
|
||||
@@ -373,58 +250,80 @@ h2 {
|
||||
|
||||
h3 {
|
||||
margin: 0 0 2px;
|
||||
font-size: 20px;
|
||||
color: var(--sg-text);
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.card__head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.card__eyebrow {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.card__meta {
|
||||
font-size: 12.5px;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 16px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.card__flag {
|
||||
color: var(--sg-error);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.card__grid {
|
||||
.score-caption {
|
||||
margin: 0 0 12px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.score-tiles {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 18px;
|
||||
|
||||
&--founder-only {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: var(--sg-surface);
|
||||
.score-tile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
padding: 14px 15px;
|
||||
border-radius: 12px;
|
||||
background: var(--sg-card-bg);
|
||||
cursor: help;
|
||||
|
||||
.panel__ttl {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
&__label {
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 3px;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.panel__cap {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-soft);
|
||||
margin: 0 0 12px;
|
||||
line-height: 1.45;
|
||||
strong {
|
||||
color: var(--sg-text);
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
&--primary strong {
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,91 +339,12 @@ h2 {
|
||||
}
|
||||
}
|
||||
|
||||
.fact {
|
||||
font-size: 12px;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 6px;
|
||||
padding: 4px 9px;
|
||||
color: var(--sg-text-muted);
|
||||
@media (max-width: 640px) {
|
||||
.section-heading h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
b {
|
||||
color: var(--sg-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
.controls__count {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// -- Charts -------------------------------------------------------------
|
||||
|
||||
.charts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
height: 100%;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.chart__ttl {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.chart__row {
|
||||
display: grid;
|
||||
grid-template-columns: 118px 1fr auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
margin-bottom: 7px;
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.chart__label {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.chart__track {
|
||||
--mat-progress-bar-track-height: 14px;
|
||||
--mat-progress-bar-active-indicator-height: 14px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
display: block;
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 3px;
|
||||
height: 16px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--sg-border);
|
||||
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.chart__num {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 12px;
|
||||
min-width: 96px;
|
||||
text-align: right;
|
||||
color: var(--sg-text);
|
||||
|
||||
small {
|
||||
color: var(--sg-text-soft);
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.chart__axis {
|
||||
border-top: 1px solid var(--sg-border);
|
||||
margin-top: 10px;
|
||||
padding-top: 6px;
|
||||
font-size: 11px;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
+113
-64
@@ -12,35 +12,40 @@ import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerStageStatistics,
|
||||
FounderCandidate,
|
||||
FounderCandidatePage,
|
||||
FounderSortBy,
|
||||
FounderStatistics,
|
||||
ResearchAreaStatistics,
|
||||
} from '../../../api';
|
||||
import {
|
||||
FUNNEL_STAGE_LABELS,
|
||||
SCREEN_REASON_LABELS,
|
||||
clamp,
|
||||
careerBucketDescription,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
} from '../founder-potential.utils';
|
||||
import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../../../shared/ui/data-table/data-table.component';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { DashboardStatisticCardComponent } from '../../dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component';
|
||||
import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component';
|
||||
import { FOUNDER_ICON } from '../../../shared/ui/icons';
|
||||
import {
|
||||
FOUNDER_ICON,
|
||||
HELP_OUTLINE_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
PERSONS_ICON,
|
||||
STAR_ICON,
|
||||
VERIFIED_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
@@ -65,15 +70,15 @@ interface FounderRow {
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatCardModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
MatProgressBarModule,
|
||||
MatSlideToggleModule,
|
||||
MatSliderModule,
|
||||
ScoreBarComponent,
|
||||
MatTooltipModule,
|
||||
QueryParamPaginatorComponent,
|
||||
ChipComponent,
|
||||
DataTableComponent,
|
||||
MethodologyNoteComponent,
|
||||
DashboardStatisticCardComponent,
|
||||
PageContainerComponent,
|
||||
],
|
||||
templateUrl: './founder-dashboard.component.html',
|
||||
@@ -81,6 +86,11 @@ interface FounderRow {
|
||||
})
|
||||
export class FounderDashboardComponent {
|
||||
readonly FOUNDER_ICON = FOUNDER_ICON;
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly PERSONS_ICON = PERSONS_ICON;
|
||||
readonly STAR_ICON = STAR_ICON;
|
||||
readonly VERIFIED_ICON = VERIFIED_ICON;
|
||||
|
||||
readonly statistics = input.required<FounderStatistics>();
|
||||
readonly candidates = input.required<FounderCandidatePage>();
|
||||
@@ -104,7 +114,7 @@ export class FounderDashboardComponent {
|
||||
});
|
||||
|
||||
readonly threshold = computed(
|
||||
() => toNumber(this.queryParams().get('threshold')) ?? 90,
|
||||
() => Math.max(50, Math.min(100, toNumber(this.queryParams().get('threshold')) ?? 90)),
|
||||
);
|
||||
readonly screened = computed(
|
||||
() => this.queryParams().get('screened') === 'true',
|
||||
@@ -119,35 +129,90 @@ export class FounderDashboardComponent {
|
||||
});
|
||||
}
|
||||
|
||||
// -- Explanations (tooltips only) --------------------------------------
|
||||
|
||||
readonly pageTooltip =
|
||||
'Das Modell schätzt, wie stark das Profil einer Person zu Forschenden passt, die gegründet haben. Grundlage sind Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit Unternehmen. Der Wert ist ein Rang von 0 bis 100 im Vergleich zu rund 9.000 Wissenschaftler:innen anderer Universitäten: 90 heißt „stärker als 90 % dieser Vergleichsgruppe“. Das ist ein Hinweis, keine Vorhersage und keine Gründungswahrscheinlichkeit.';
|
||||
|
||||
readonly totalTooltip =
|
||||
'Alle Forschenden der Universität im Datensatz. Nicht alle davon lassen sich bewerten – dafür braucht das Modell mindestens 4 Publikationen.';
|
||||
|
||||
readonly scoreableTooltip =
|
||||
'Nur diese Personen haben genug Publikationen (mindestens 4), um vom Modell bewertet zu werden. Für alle anderen gibt es keinen Score.';
|
||||
|
||||
readonly qualityTooltip = computed(
|
||||
() =>
|
||||
`${this.kpis().passed.toLocaleString('de-DE')} von ${this.kpis().total.toLocaleString('de-DE')} Forschenden (${this.kpis().share} %) haben ein vollständiges und plausibles Profil. Nur diese Werte sind gut belastbar.`,
|
||||
);
|
||||
|
||||
readonly shortlistTooltip = computed(
|
||||
() =>
|
||||
`Personen mit dem stärksten Gründungspotenzial. Angezeigt werden alle ab einem Rang von ${this.threshold()}. ${
|
||||
this.screened()
|
||||
? 'Auffällige Profile sind ausgeblendet.'
|
||||
: 'Auffällige Profile sind enthalten.'
|
||||
}`,
|
||||
);
|
||||
|
||||
readonly shortlistSectionTooltip =
|
||||
'Hier stehen die Personen mit dem stärksten Gründungspotenzial. Der Regler legt fest, ab welchem Rang jemand in die Liste kommt.';
|
||||
|
||||
readonly thresholdTooltip =
|
||||
'Legt fest, ab welchem Rang Personen in der Shortlist erscheinen. 90 ist streng und zeigt nur die obersten 10 % der Vergleichsgruppe; 50 zeigt die obere Hälfte.';
|
||||
|
||||
readonly screeningTooltip =
|
||||
'Blendet Profile aus, die vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt sind. Die Scores dieser Personen sind weniger verlässlich.';
|
||||
|
||||
readonly scoreTooltip =
|
||||
'Rang des Gründungspotenzials von 0 bis 100. 90 heißt: stärker als 90 % der rund 9.000 vergleichbaren Wissenschaftler:innen anderer Universitäten. Kein Wahrscheinlichkeitswert.';
|
||||
|
||||
readonly withinTooltip =
|
||||
'Getrennte Modelle für die Frage, ob das Profil zu einer Gründung innerhalb von 1, 3 oder 5 Jahren nach dem Stichtag passt – wieder als Rang von 0 bis 100, kein Wahrscheinlichkeitswert. Die drei Werte können unterschiedlich hoch sein.';
|
||||
|
||||
readonly evidenceTooltip =
|
||||
'Die Signale, auf denen die Einschätzung beruht: Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit der Industrie. Die Werte sind Zählungen, keine Bewertung der Person.';
|
||||
|
||||
readonly flagTooltip =
|
||||
'Möglicherweise wurden mehrere Personen mit gleichem Namen zusammengeführt oder die Karriereangaben sind unplausibel. Die Werte sind dann unsicher. Bitte Identität und Profil prüfen, bevor Sie die Person ansprechen.';
|
||||
|
||||
readonly careerBucketTooltip = careerBucketDescription;
|
||||
|
||||
// -- KPIs ---------------------------------------------------------------
|
||||
|
||||
readonly kpis = computed(() => {
|
||||
const stats = this.statistics();
|
||||
const total = stats.provenance?.document_count ?? 0;
|
||||
const scoreable = stats.overall?.in_population ?? 0;
|
||||
const passed = stats.overall?.screened ?? 0;
|
||||
const share = total ? Math.round((passed / total) * 100) : 0;
|
||||
const shortlisted = this.candidates().total ?? 0;
|
||||
return { total, passed, share, shortlisted };
|
||||
return { total, scoreable, passed, share, shortlisted };
|
||||
});
|
||||
|
||||
// -- Funnel -------------------------------------------------------------
|
||||
/** True when the pipeline has produced at least one score for this university. */
|
||||
readonly hasScores = computed(
|
||||
() => (this.statistics().overall?.in_population ?? 0) > 0,
|
||||
);
|
||||
|
||||
readonly funnel = computed(() => {
|
||||
const stages = this.statistics().funnel ?? [];
|
||||
const max = stages[0]?.count ?? 1;
|
||||
return stages.map((stage, i) => {
|
||||
const count = stage.count ?? 0;
|
||||
const lost = i === 0 ? 0 : (stages[i - 1]?.count ?? 0) - count;
|
||||
return {
|
||||
key: stage.key,
|
||||
label: FUNNEL_STAGE_LABELS[stage.key] ?? stage.label,
|
||||
count,
|
||||
lost,
|
||||
pct: clamp((count / max) * 100, 0, 100),
|
||||
};
|
||||
});
|
||||
readonly scoreableShare = computed(() => {
|
||||
const { total, scoreable } = this.kpis();
|
||||
return total ? Math.round((scoreable / total) * 100) : 0;
|
||||
});
|
||||
|
||||
readonly qualityDetail = computed(
|
||||
() => `${this.kpis().share} % der Forschenden`,
|
||||
);
|
||||
readonly scoreableDetail = computed(
|
||||
() => `${this.scoreableShare()} % der Forschenden`,
|
||||
);
|
||||
readonly shortlistDetail = computed(() => `ab Rang ${this.threshold()}`);
|
||||
|
||||
readonly emptyListMessage = computed(() =>
|
||||
this.screened()
|
||||
? `Niemand erreicht den Mindestwert von ${this.threshold()} und hat zugleich ein unauffälliges Profil. Senken Sie den Mindestwert oder blenden Sie auffällige Profile wieder ein.`
|
||||
: `Niemand erreicht den Mindestwert von ${this.threshold()}. Senken Sie den Mindestwert, um mehr Personen zu sehen.`,
|
||||
);
|
||||
|
||||
// -- Shortlist ----------------------------------------------------------
|
||||
|
||||
private readonly nameTemplate =
|
||||
@@ -158,30 +223,40 @@ export class FounderDashboardComponent {
|
||||
viewChild.required<TemplateRef<FounderRow>>('withinTemplate');
|
||||
private readonly evidenceTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('evidenceTemplate');
|
||||
private readonly scoreHeader =
|
||||
viewChild.required<TemplateRef<void>>('scoreHeader');
|
||||
private readonly withinHeader =
|
||||
viewChild.required<TemplateRef<void>>('withinHeader');
|
||||
private readonly evidenceHeader =
|
||||
viewChild.required<TemplateRef<void>>('evidenceHeader');
|
||||
|
||||
readonly columns = computed<GenericColumn<FounderRow>[]>(() => [
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende:r',
|
||||
header: 'Forschende',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'score',
|
||||
header: 'Score',
|
||||
type: 'display',
|
||||
id: FounderSortBy.ExternalPercentile,
|
||||
header: 'Potenzial (0–100)',
|
||||
type: 'accessor',
|
||||
headerTemplate: this.scoreHeader(),
|
||||
cellTemplate: this.scoreTemplate(),
|
||||
accessorKey: 'score',
|
||||
},
|
||||
{
|
||||
id: 'within',
|
||||
header: 'Innerhalb 1 / 3 / 5 J.',
|
||||
header: 'Signal 1 / 3 / 5 Jahre',
|
||||
type: 'display',
|
||||
headerTemplate: this.withinHeader(),
|
||||
cellTemplate: this.withinTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'evidence',
|
||||
header: 'Evidenz',
|
||||
header: 'Signale',
|
||||
type: 'display',
|
||||
headerTemplate: this.evidenceHeader(),
|
||||
cellTemplate: this.evidenceTemplate(),
|
||||
},
|
||||
]);
|
||||
@@ -235,41 +310,15 @@ export class FounderDashboardComponent {
|
||||
});
|
||||
}
|
||||
|
||||
// -- Stage / area charts ------------------------------------------------
|
||||
|
||||
readonly stageRows = computed<CareerStageStatistics[]>(
|
||||
() => this.statistics().career_stages ?? [],
|
||||
);
|
||||
|
||||
readonly stageMax = computed(() =>
|
||||
Math.max(1, ...this.stageRows().map((s) => s.shortlist_plain ?? 0)),
|
||||
);
|
||||
|
||||
readonly areaRows = computed<ResearchAreaStatistics[]>(() =>
|
||||
[...(this.statistics().research_areas ?? [])]
|
||||
.sort((a, b) => (b.shortlist_count ?? 0) - (a.shortlist_count ?? 0))
|
||||
.slice(0, 7),
|
||||
);
|
||||
|
||||
readonly areaMax = computed(() =>
|
||||
Math.max(1, ...this.areaRows().map((a) => a.shortlist_count ?? 0)),
|
||||
);
|
||||
onLowerThreshold(): void {
|
||||
const next = Math.max(50, this.threshold() - 10);
|
||||
this.onSliderCommit(next);
|
||||
}
|
||||
|
||||
// -- Formatting helpers for the template --------------------------------
|
||||
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmt1 = fmt1;
|
||||
|
||||
/** Clamp a percentile into the 0-100 band for bar widths. */
|
||||
readonly clamp0 = (value: number | null) =>
|
||||
value === null ? 0 : clamp(value, 0, 100);
|
||||
|
||||
/** Height (in %) of a bar in the within-1/3/5y mini histogram. */
|
||||
readonly histHeight = (value: number | null) =>
|
||||
value === null ? 3 : Math.max(3, (clamp(value, 0, 100) / 100) * 22);
|
||||
|
||||
/** Round a percentile for the within-1/3/5y summary. */
|
||||
readonly round = (value: number) => Math.round(value);
|
||||
}
|
||||
|
||||
function toRow(c: FounderCandidate): FounderRow {
|
||||
|
||||
@@ -36,6 +36,62 @@ export const SCREEN_REASON_LABELS: Record<string, string> = {
|
||||
OUT_OF_POPULATION: 'Außerhalb der Modellpopulation',
|
||||
};
|
||||
|
||||
/** Plain-language explanation of each career bucket. */
|
||||
export const CAREER_BUCKET_DESCRIPTIONS: Record<string, string> = {
|
||||
Early: 'Frühe Karriere: 1–4 Jahre mit mindestens einer Publikation.',
|
||||
Emerging: 'Aufstrebend: 5–9 Jahre mit mindestens einer Publikation.',
|
||||
Established: 'Etabliert: 10–14 Jahre mit mindestens einer Publikation.',
|
||||
Senior: 'Senior: 15 oder mehr Jahre mit mindestens einer Publikation.',
|
||||
};
|
||||
|
||||
/** Short active-year range for each bucket, shown next to the bucket name. */
|
||||
export const CAREER_BUCKET_RANGES: Record<string, string> = {
|
||||
Early: '1–4 Jahre',
|
||||
Emerging: '5–9 Jahre',
|
||||
Established: '10–14 Jahre',
|
||||
Senior: '15+ Jahre',
|
||||
};
|
||||
|
||||
export function careerBucketRange(bucket: string | null | undefined): string {
|
||||
if (!bucket || bucket === '–') return '';
|
||||
return CAREER_BUCKET_RANGES[bucket] ?? '';
|
||||
}
|
||||
|
||||
export function careerBucketDescription(bucket: string | null | undefined): string {
|
||||
if (!bucket || bucket === '–') {
|
||||
return 'Karrierestufe unbekannt.';
|
||||
}
|
||||
return CAREER_BUCKET_DESCRIPTIONS[bucket] ?? `Karrierestufe: ${bucket}.`;
|
||||
}
|
||||
|
||||
/** The three multiplier roles plus stand-alone context metrics. */
|
||||
export type MetricGroupKey = 'bridger' | 'mentor' | 'amplifier' | 'context';
|
||||
|
||||
export const METRIC_GROUP_META: Record<
|
||||
MetricGroupKey,
|
||||
{ label: string; description: string }
|
||||
> = {
|
||||
bridger: {
|
||||
label: 'Bridger – verbindet Gruppen',
|
||||
description:
|
||||
'Wie gut die Person Forschungsgruppen und Fachgebiete miteinander verbindet.',
|
||||
},
|
||||
mentor: {
|
||||
label: 'Mentor – fördert Nachwuchs',
|
||||
description:
|
||||
'Wie stark die Person Nachwuchsforschende begleitet und unterstützt.',
|
||||
},
|
||||
amplifier: {
|
||||
label: 'Amplifier – bringt Forschung in Anwendung',
|
||||
description:
|
||||
'Wie stark Forschung in Wirtschaft, Patente und Öffentlichkeit getragen wird.',
|
||||
},
|
||||
context: {
|
||||
label: 'Weitere Kontextwerte',
|
||||
description: 'Zusätzliche Messwerte, die nicht direkt in eine Rolle einfließen.',
|
||||
},
|
||||
};
|
||||
|
||||
/** German labels for the funnel stages, keyed by their stable key. */
|
||||
export const FUNNEL_STAGE_LABELS: Record<string, string> = {
|
||||
ALL: 'Alle Forschenden im Index',
|
||||
@@ -49,25 +105,135 @@ export const FUNNEL_STAGE_LABELS: Record<string, string> = {
|
||||
export interface MetricDef {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
group: MetricGroupKey;
|
||||
/** Plain-language explanation shown in the metric tooltip. */
|
||||
description: string;
|
||||
/** Share of the sub-score in percent, when the metric is weighted. */
|
||||
weight?: number;
|
||||
}
|
||||
|
||||
export const METRIC_DEFS: MetricDef[] = [
|
||||
{ key: 'betweenness', label: 'Betweenness-Zentralität' },
|
||||
{ key: 'brokerage', label: 'Brokerage' },
|
||||
{ key: 'constraint', label: 'Constraint' },
|
||||
{ key: 'field_entropy', label: 'Feld-Entropie' },
|
||||
{ key: 'cross_institution_share', label: 'Institutionsübergreifender Anteil' },
|
||||
{ key: 'strength', label: 'Stärke' },
|
||||
{ key: 'n_coauthors', label: 'Koautor:innen' },
|
||||
{ key: 'juniors_mentored', label: 'Betreute Nachwuchsforschende' },
|
||||
{ key: 'junior_progression_rate', label: 'Nachwuchs-Fortschrittsrate' },
|
||||
{ key: 'mentoring_rate', label: 'Mentoring-Rate' },
|
||||
{ key: 'last_author_with_junior_first', label: 'Letztautor mit Nachwuchs-Erstautor' },
|
||||
{ key: 'industry_coauthor_share', label: 'Industrie-Koautoranteil' },
|
||||
{ key: 'industry_coauthor_share_shrunk', label: 'Industrie-Koautoranteil (korrigiert)' },
|
||||
{ key: 'patent_count', label: 'Patente' },
|
||||
{ key: 'cordis_eu_projects', label: 'EU-Projekte (CORDIS)' },
|
||||
{ key: 'news_mentions', label: 'Medienerwähnungen' },
|
||||
{
|
||||
key: 'betweenness',
|
||||
label: 'Betweenness-Zentralität',
|
||||
group: 'bridger',
|
||||
weight: 35,
|
||||
description:
|
||||
'Wie oft die Person auf kürzesten Wegen zwischen anderen Forschenden liegt. Hoch = verbindet sonst getrennte Gruppen.',
|
||||
},
|
||||
{
|
||||
key: 'brokerage',
|
||||
label: 'Brokerage',
|
||||
group: 'bridger',
|
||||
weight: 25,
|
||||
description:
|
||||
'Wie häufig die Person Brücken zwischen sonst getrennten Gruppen schlägt.',
|
||||
},
|
||||
{
|
||||
key: 'field_entropy',
|
||||
label: 'Feld-Entropie',
|
||||
group: 'bridger',
|
||||
weight: 20,
|
||||
description:
|
||||
'Wie breit die Person über verschiedene Fachgebiete streut. Hoch = fachübergreifend.',
|
||||
},
|
||||
{
|
||||
key: 'cross_institution_share',
|
||||
label: 'Institutionsübergreifender Anteil',
|
||||
group: 'bridger',
|
||||
weight: 20,
|
||||
description:
|
||||
'Anteil der Kooperationen mit Personen anderer Einrichtungen.',
|
||||
},
|
||||
{
|
||||
key: 'juniors_mentored',
|
||||
label: 'Betreute Nachwuchsforschende',
|
||||
group: 'mentor',
|
||||
weight: 35,
|
||||
description:
|
||||
'Zahl der Nachwuchsforschenden, die die Person begleitet hat.',
|
||||
},
|
||||
{
|
||||
key: 'mentoring_rate',
|
||||
label: 'Mentoring-Rate',
|
||||
group: 'mentor',
|
||||
weight: 25,
|
||||
description:
|
||||
'Anteil der Arbeiten, an denen Nachwuchsforschende beteiligt sind.',
|
||||
},
|
||||
{
|
||||
key: 'last_author_with_junior_first',
|
||||
label: 'Letztautor mit Nachwuchs-Erstautor',
|
||||
group: 'mentor',
|
||||
weight: 25,
|
||||
description:
|
||||
'Arbeiten, in denen die Person als Letztautor:in einen Nachwuchsforschenden als Erstautor:in begleitet hat.',
|
||||
},
|
||||
{
|
||||
key: 'junior_progression_rate',
|
||||
label: 'Nachwuchs-Fortschrittsrate',
|
||||
group: 'mentor',
|
||||
weight: 15,
|
||||
description:
|
||||
'Wie häufig betreute Nachwuchsforschende anschließend selbst weiter publizieren.',
|
||||
},
|
||||
{
|
||||
key: 'industry_coauthor_share_shrunk',
|
||||
label: 'Industrie-Koautoranteil (korrigiert)',
|
||||
group: 'amplifier',
|
||||
weight: 50,
|
||||
description:
|
||||
'Anteil der Arbeiten mit Beteiligung aus Unternehmen – statistisch stabilisiert, damit kleine Fallzahlen nicht überbewertet werden.',
|
||||
},
|
||||
{
|
||||
key: 'patent_count',
|
||||
label: 'Patente',
|
||||
group: 'amplifier',
|
||||
weight: 25,
|
||||
description: 'Zahl der Patente mit Bezug zur Einrichtung.',
|
||||
},
|
||||
{
|
||||
key: 'cordis_eu_projects',
|
||||
label: 'EU-Projekte (CORDIS)',
|
||||
group: 'amplifier',
|
||||
weight: 15,
|
||||
description: 'Zahl der EU-geförderten Projekte (CORDIS).',
|
||||
},
|
||||
{
|
||||
key: 'news_mentions',
|
||||
label: 'Medienerwähnungen',
|
||||
group: 'amplifier',
|
||||
weight: 10,
|
||||
description: 'Zahl der Medienberichte, in denen die Person vorkommt.',
|
||||
},
|
||||
{
|
||||
key: 'constraint',
|
||||
label: 'Constraint',
|
||||
group: 'context',
|
||||
description:
|
||||
'Wie stark die Person in ein enges eigenes Netz eingebunden ist. Niedrig = viele Brücken zu anderen Gruppen.',
|
||||
},
|
||||
{
|
||||
key: 'strength',
|
||||
label: 'Stärke',
|
||||
group: 'context',
|
||||
description:
|
||||
'Gesamtstärke der Kooperationen – Zahl und Gewicht der gemeinsamen Arbeiten.',
|
||||
},
|
||||
{
|
||||
key: 'n_coauthors',
|
||||
label: 'Koautor:innen',
|
||||
group: 'context',
|
||||
description:
|
||||
'Zahl der Personen, mit denen die Person gemeinsam publiziert hat.',
|
||||
},
|
||||
{
|
||||
key: 'industry_coauthor_share',
|
||||
label: 'Industrie-Koautoranteil (roh)',
|
||||
group: 'context',
|
||||
description:
|
||||
'Anteil der Arbeiten mit Beteiligung aus Unternehmen, ohne statistische Korrektur.',
|
||||
},
|
||||
];
|
||||
|
||||
/** Whole numbers with German thousands separator. */
|
||||
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
<div class="content">
|
||||
<app-query-param-input
|
||||
queryParamKey="name"
|
||||
label="Name suchen"
|
||||
[debounceTime]="300" />
|
||||
|
||||
<div class="select-area">
|
||||
<app-query-param-selector
|
||||
[options]="roleOptions"
|
||||
queryParamKey="tag"
|
||||
label="Rollen-Badge"
|
||||
[multiple]="true"
|
||||
matTooltip="Zeigt nur Personen, die diese Rolle als Badge tragen, also mindestens 85 % Rang in der Rolle erreichen."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="careerOptions"
|
||||
queryParamKey="careerBucket"
|
||||
label="Karrierestufe"
|
||||
[multiple]="true"
|
||||
matTooltip="Early: 1–4 aktive Publikationsjahre, Emerging: 5–9, Established: 10–14, Senior: 15 oder mehr."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="peerRankFieldOptions"
|
||||
queryParamKey="peerRankField"
|
||||
label="Bezugsrolle für Mindest-Rang"
|
||||
matTooltip="Wählt die Rolle, deren Rang für den Mindest-Rang gilt. „Stärkste Rolle“ nutzt den besten der drei Werte."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="minRankOptions"
|
||||
queryParamKey="minPeerRank"
|
||||
label="Mindest-Rang"
|
||||
matTooltip="Zeigt nur Personen, die diesen Rang in der Bezugsrolle mindestens erreichen. 90 heißt: besser als 90 % der Vergleichsgruppe."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
</div>
|
||||
|
||||
<div class="select-area">
|
||||
<app-query-param-selector
|
||||
[options]="sortByOptions"
|
||||
queryParamKey="sortBy"
|
||||
label="Sortieren nach"
|
||||
matTooltip="Legt fest, welche Rolle die Reihenfolge der Liste bestimmt."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="sortOrderOptions"
|
||||
queryParamKey="sortOrder"
|
||||
label="Reihenfolge"
|
||||
matTooltip="Höchster Wert zuerst zeigt die stärksten Profile oben."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
</div>
|
||||
|
||||
<app-selected-filters [observers]="observers" />
|
||||
</div>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.select-area {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.select-area app-query-param-selector {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerBucket,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
SortDirection,
|
||||
} from '../../../api';
|
||||
import { tagLabel } from '../founder-potential.utils';
|
||||
import { QueryParamInputComponent } from '../../../shared/ui/query-param-input/query-param-input.component';
|
||||
import {
|
||||
QueryParamSelectorComponent,
|
||||
SelectorOption,
|
||||
} from '../../../shared/ui/query-param-selector/query-param-selector.component';
|
||||
import {
|
||||
FilterObserver,
|
||||
SelectedFiltersComponent,
|
||||
} from '../../../shared/ui/selected-filters/selected-filters.component';
|
||||
import {
|
||||
FILTER_ICON,
|
||||
NETWORK_ICON,
|
||||
PERSON_ICON,
|
||||
SEARCH_ICON,
|
||||
TUNE_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-multiplier-filters',
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatTooltipModule,
|
||||
QueryParamInputComponent,
|
||||
QueryParamSelectorComponent,
|
||||
SelectedFiltersComponent,
|
||||
],
|
||||
templateUrl: './multiplier-filters.component.html',
|
||||
styleUrl: './multiplier-filters.component.scss',
|
||||
})
|
||||
export class MultiplierFiltersComponent {
|
||||
readonly roleOptions: SelectorOption[] = Object.values(MultiplierTag).map(
|
||||
(value) => ({ value, display_name: tagLabel(value) }),
|
||||
);
|
||||
|
||||
readonly careerOptions: SelectorOption[] = [
|
||||
{ value: CareerBucket.Early, display_name: 'Early (1–4 Jahre)' },
|
||||
{ value: CareerBucket.Emerging, display_name: 'Emerging (5–9 Jahre)' },
|
||||
{
|
||||
value: CareerBucket.Established,
|
||||
display_name: 'Established (10–14 Jahre)',
|
||||
},
|
||||
{ value: CareerBucket.Senior, display_name: 'Senior (15+ Jahre)' },
|
||||
];
|
||||
|
||||
readonly sortByOptions: SelectorOption[] = [
|
||||
{ value: ResearcherSortBy.Max, display_name: 'Stärkste Rolle' },
|
||||
{ value: ResearcherSortBy.Bridger, display_name: 'Bridger' },
|
||||
{ value: ResearcherSortBy.Mentor, display_name: 'Mentor' },
|
||||
{ value: ResearcherSortBy.Amplifier, display_name: 'Amplifier' },
|
||||
];
|
||||
|
||||
readonly sortOrderOptions: SelectorOption[] = [
|
||||
{ value: SortDirection.Desc, display_name: 'Höchster Wert zuerst' },
|
||||
{ value: SortDirection.Asc, display_name: 'Niedrigster Wert zuerst' },
|
||||
];
|
||||
|
||||
readonly peerRankFieldOptions: SelectorOption[] = [
|
||||
{ value: PeerRankField.Max, display_name: 'Stärkste Rolle' },
|
||||
...Object.values(MultiplierTag).map((value) => ({
|
||||
value,
|
||||
display_name: tagLabel(value),
|
||||
})),
|
||||
];
|
||||
|
||||
readonly minRankOptions: SelectorOption[] = [
|
||||
50, 55, 60, 65, 70, 75, 80, 85, 90, 95,
|
||||
].map((percent) => ({
|
||||
value: String(percent / 100),
|
||||
display_name: `ab ${percent} %`,
|
||||
}));
|
||||
|
||||
readonly observers: FilterObserver[] = [
|
||||
{
|
||||
id: 'name',
|
||||
queryParamKey: 'name',
|
||||
icon: SEARCH_ICON,
|
||||
removable: true,
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
queryParamKey: 'tag',
|
||||
icon: NETWORK_ICON,
|
||||
valueFormatter: (value) =>
|
||||
value
|
||||
.split(',')
|
||||
.map((tag) => tagLabel(tag))
|
||||
.join(', '),
|
||||
removable: true,
|
||||
},
|
||||
{
|
||||
id: 'career',
|
||||
queryParamKey: 'careerBucket',
|
||||
icon: PERSON_ICON,
|
||||
valueFormatter: (value) => value.split(',').join(', '),
|
||||
removable: true,
|
||||
},
|
||||
{
|
||||
id: 'peerRankField',
|
||||
queryParamKey: 'peerRankField',
|
||||
icon: TUNE_ICON,
|
||||
valueFormatter: (value) =>
|
||||
value === PeerRankField.Max ? 'Stärkste Rolle' : tagLabel(value),
|
||||
removable: true,
|
||||
},
|
||||
{
|
||||
id: 'minPeerRank',
|
||||
queryParamKey: 'minPeerRank',
|
||||
icon: FILTER_ICON,
|
||||
valueFormatter: (value) => `ab ${Math.round(Number(value) * 100)} %`,
|
||||
removable: true,
|
||||
},
|
||||
];
|
||||
}
|
||||
+113
-201
@@ -1,201 +1,58 @@
|
||||
<app-page-container
|
||||
title="Multiplikatoren von {{ universityName() }}"
|
||||
[subtitle]="
|
||||
'Entdecke Forschende, die Forschungsgruppen verbinden, Nachwuchs fördern oder Wissen in Wirtschaft und Öffentlichkeit tragen. Die Rollen-Scores vergleichen Forschende derselben Karrierestufe an der ' +
|
||||
universityName() +
|
||||
'.'
|
||||
">
|
||||
<div class="multipliers-dashboard">
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
<strong>Datenbasis:</strong> Die UDE-Kohorte umfasst die Universität und
|
||||
acht zugehörige Einrichtungen. Forschende werden anhand jüngerer
|
||||
OpenAlex-Affiliationen ausgewählt; ihre Publikationen und
|
||||
Koautorenschaften werden anschließend institutionsübergreifend
|
||||
ausgewertet. Die Rollen-Scores vergleichen nur Personen derselben
|
||||
Karrierestufe.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Bridger:</strong> Netzwerkvermittlung, Verbindungen zwischen
|
||||
Fachgebieten und Institutionen.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Mentor:</strong> gemeinsame Publikationen mit Nachwuchs sowie
|
||||
Hinweise auf Betreuung und deren berufliche Entwicklung.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Amplifier:</strong> Industriekooperationen, verknüpfte
|
||||
Patente, EU-Projekte und relevante Medienerwähnungen.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Rohmetriken werden zunächst innerhalb der vier Karrierestufen
|
||||
<strong>Early, Emerging, Established, Senior</strong> in Peer-Ränge
|
||||
umgerechnet. Die drei Rollen-Scores sind gewichtete Mittel dieser Ränge:
|
||||
Bridger (35 % Betweenness, 25 % Brokerage, 20 %
|
||||
Feldbreite, 20 % institutionsübergreifende Zusammenarbeit), Mentor
|
||||
(35 % Nachwuchs, 25 % Mentoring-Rate, 25 % typische
|
||||
Autor:innenrollen, 15 % Nachwuchsentwicklung) und Amplifier
|
||||
(50 % Industrie, 25 % Patente, 15 % EU-Projekte,
|
||||
10 % Medien). Ab 85 % und mindestens zwei aktiven Jahren wird
|
||||
ein Badge vergeben. Ein Score beschreibt ein relatives Signal, keinen
|
||||
kausalen Nachweis.
|
||||
</p>
|
||||
<p>
|
||||
Die aktuelle Multiplikator-Auswertung ist für die definierte UDE-Kohorte
|
||||
berechnet. Für andere Universitäten erscheinen Daten erst, wenn deren
|
||||
Kohorte ebenfalls durch die Pipeline verarbeitet wurde.
|
||||
</p>
|
||||
</app-methodology-note>
|
||||
[eyebrow]="'Multiplikatoren · ' + universityName()"
|
||||
title="Wer stärkt das Innovationsökosystem?"
|
||||
subtitle="Personen, die Forschungsgruppen verbinden, Nachwuchs fördern oder Forschung in die Anwendung tragen."
|
||||
[titleTooltip]="pageTooltip">
|
||||
<app-multiplier-filters />
|
||||
|
||||
<section class="filters-section" aria-label="Multiplikatoren filtern">
|
||||
<mat-card appearance="outlined" class="filters-card">
|
||||
<mat-card-content>
|
||||
<div class="filters-grid">
|
||||
<mat-form-field appearance="outline" class="name-filter">
|
||||
<mat-label>Name suchen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
[value]="nameDraft()"
|
||||
(input)="onNameInput($event)"
|
||||
(keyup.enter)="onFilterCommit()"
|
||||
placeholder="Name oder Namensanfang" />
|
||||
<mat-icon matSuffix>{{ SEARCH_ICON }}</mat-icon>
|
||||
</mat-form-field>
|
||||
<section class="table-section">
|
||||
<div class="section-heading">
|
||||
<h2>Multiplikator:innen der Universität</h2>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="shortlistTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</div>
|
||||
<p class="section-caption">
|
||||
Rollen sind Ränge von 0 bis 100 im Vergleich zu Personen derselben
|
||||
Karrierestufe – keine Wahrscheinlichkeiten.
|
||||
</p>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Rollen-Badge</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
[value]="selectedTags()"
|
||||
(selectionChange)="onTagsChange($event.value)">
|
||||
@for (role of roleOptions; track role.value) {
|
||||
<mat-option [value]="role.value">{{ role.label }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Karrierestufe</mat-label>
|
||||
<mat-select
|
||||
multiple
|
||||
[value]="selectedCareerBuckets()"
|
||||
(selectionChange)="onCareerBucketsChange($event.value)">
|
||||
@for (bucket of careerOptions; track bucket) {
|
||||
<mat-option [value]="bucket">{{ bucket }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>Rolle für Mindest-Rang</mat-label>
|
||||
<mat-select
|
||||
[value]="selectedPeerRankField()"
|
||||
(selectionChange)="onPeerRankFieldChange($event.value)">
|
||||
@for (field of peerRankFields; track field.value) {
|
||||
<mat-option [value]="field.value">{{
|
||||
field.label
|
||||
}}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<div class="rank-filter">
|
||||
<label for="min-rank"
|
||||
>Mindest-Rang: {{ minPeerRankDraft() }} %</label
|
||||
>
|
||||
<mat-slider
|
||||
id="min-rank"
|
||||
[min]="0"
|
||||
[max]="100"
|
||||
[step]="5"
|
||||
[discrete]="true"
|
||||
[displayWith]="formatPercent">
|
||||
<input
|
||||
matSliderThumb
|
||||
[value]="minPeerRankDraft()"
|
||||
(valueChange)="onMinRankInput($event)"
|
||||
(dragEnd)="onFilterCommit()"
|
||||
(keyup.enter)="onFilterCommit()"
|
||||
aria-label="Mindest-Rang" />
|
||||
</mat-slider>
|
||||
</div>
|
||||
<mat-card appearance="outlined" class="table-card">
|
||||
<mat-card-content>
|
||||
@if (rows().length > 0) {
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[stickyHeader]="false" />
|
||||
} @else if (!hasActiveFilters()) {
|
||||
<div class="empty-state">
|
||||
<mat-icon>hub</mat-icon>
|
||||
<h3>Noch keine Multiplikator-Daten</h3>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> wurden noch keine
|
||||
Multiplikator-Scores berechnet.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="filter-actions">
|
||||
<span class="result-count">
|
||||
{{ fmtInt(pageTotal()) }}
|
||||
{{ pageTotal() === 1 ? 'Forschende:r' : 'Forschende' }}
|
||||
</span>
|
||||
<button mat-button type="button" (click)="clearFilters()">
|
||||
Filter zurücksetzen
|
||||
</button>
|
||||
<button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
type="button"
|
||||
(click)="onFilterCommit()">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
Anwenden
|
||||
</button>
|
||||
} @else {
|
||||
<div class="empty-state empty-state--filtered">
|
||||
<h3>Keine passenden Forschenden gefunden</h3>
|
||||
<p>
|
||||
Ändern oder entfernen Sie einen Filter, um weitere Ergebnisse zu
|
||||
sehen.
|
||||
</p>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</section>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<section class="table-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Multiplikator:innen in der Kohorte</h2>
|
||||
<p class="note">
|
||||
Nach dem stärksten Rollen-Rang sortiert. Öffne das Netzwerk, um
|
||||
Kooperationen und die zugrunde liegenden Metriken anzusehen.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-card appearance="outlined" class="table-card">
|
||||
<mat-card-content>
|
||||
@if (rows().length > 0) {
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[stickyHeader]="false"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortOrder" />
|
||||
} @else if (
|
||||
pageTotal() === 0 &&
|
||||
selectedTags().length === 0 &&
|
||||
selectedCareerBuckets().length === 0 &&
|
||||
!nameDraft() &&
|
||||
appliedMinPeerRank() === 0
|
||||
) {
|
||||
<div class="empty-state">
|
||||
<mat-icon>hub</mat-icon>
|
||||
<h3>Noch keine Multiplikator-Daten</h3>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> wurden noch
|
||||
keine Multiplikator-Scores berechnet.
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state empty-state--filtered">
|
||||
<h3>Keine passenden Forschenden gefunden</h3>
|
||||
<p>
|
||||
Ändere oder entferne einen Filter, um weitere Ergebnisse zu
|
||||
sehen.
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="pageTotal()"
|
||||
[pageSizeOptions]="[10, 25, 50, 100]" />
|
||||
</section>
|
||||
</div>
|
||||
<app-query-param-paginator
|
||||
[total]="pageTotal()"
|
||||
[pageSizeOptions]="[10, 25, 50, 100]" />
|
||||
</section>
|
||||
</app-page-container>
|
||||
|
||||
<ng-template #nameTemplate let-row>
|
||||
@@ -205,12 +62,35 @@
|
||||
{{ fmtInt(row.nWorks) }} Publikationen ·
|
||||
{{ fmtInt(row.activeYears) }} aktive Jahre
|
||||
@if (row.researcher.suspicious_profile) {
|
||||
· <span class="warning">Profil mit möglicher Zusammenführung</span>
|
||||
·
|
||||
<span
|
||||
class="warning"
|
||||
[matTooltip]="suspiciousTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<mat-icon class="warning__icon">{{ WARNING_ICON }}</mat-icon>
|
||||
Profil mit möglicher Zusammenführung
|
||||
</span>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #careerTemplate let-row>
|
||||
<span
|
||||
class="career-cell"
|
||||
[matTooltip]="careerBucketTooltip(row.careerBucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="career-cell__bucket">{{ row.careerBucket }}</span>
|
||||
@if (careerBucketRange(row.careerBucket)) {
|
||||
<span class="career-cell__range">{{
|
||||
careerBucketRange(row.careerBucket)
|
||||
}}</span>
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #rolesTemplate let-row>
|
||||
<app-multiplier-role-scores
|
||||
presentation="compact"
|
||||
@@ -222,8 +102,9 @@
|
||||
<div class="tags-cell">
|
||||
@for (tag of row.tags; track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[color]="tagColor(tag)"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
@@ -234,13 +115,6 @@
|
||||
}
|
||||
</ng-template>
|
||||
|
||||
<ng-template #maxTemplate let-row>
|
||||
<span class="max-score">
|
||||
<mat-progress-bar mode="determinate" [value]="row.max * 100" />
|
||||
<strong>{{ fmtSubScore(row.max) }}</strong>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #actionTemplate let-row>
|
||||
<button
|
||||
mat-icon-button
|
||||
@@ -251,3 +125,41 @@
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
</button>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #careerHeader>
|
||||
<span class="th-help">
|
||||
Karrierestufe
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="careerHeaderTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
<ng-template #rolesHeader>
|
||||
<span class="th-help">
|
||||
Multiplikator-Rollen
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="rolesHeaderTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #tagsHeader>
|
||||
<span class="th-help">
|
||||
Rollen-Badges
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="tagsHeaderTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+67
-109
@@ -1,95 +1,42 @@
|
||||
.multipliers-dashboard {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
.info-icon {
|
||||
flex: none;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 19px;
|
||||
cursor: help;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.filters-section,
|
||||
.table-section {
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.filters-card,
|
||||
.table-card {
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.filters-card .mat-mdc-card-content {
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.filters-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(150px, 1fr)) minmax(190px, 1.1fr);
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
|
||||
mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.name-filter {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-filter {
|
||||
min-width: 0;
|
||||
padding: 0 8px;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
mat-slider {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
.result-count {
|
||||
margin-right: auto;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12.5px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
h2 {
|
||||
margin: 0 0 4px;
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
line-height: var(--sg-section-title-line-height, 1.3);
|
||||
}
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.section-caption {
|
||||
margin: 0 0 14px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12.5px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
overflow: hidden;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 0;
|
||||
@@ -114,36 +61,59 @@
|
||||
}
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: var(--sg-warning);
|
||||
.career-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12.5px;
|
||||
white-space: nowrap;
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
|
||||
&__range {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.tags-cell {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
.warning {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
color: var(--sg-warning);
|
||||
cursor: help;
|
||||
|
||||
&__icon {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.th-help {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
&__icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 14px;
|
||||
cursor: help;
|
||||
}
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.max-score {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 105px;
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
|
||||
.mat-mdc-progress-bar {
|
||||
--mat-progress-bar-track-height: 7px;
|
||||
--mat-progress-bar-active-indicator-height: 7px;
|
||||
--mat-progress-bar-track-color: var(--sg-surface-soft);
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-success);
|
||||
width: 62px;
|
||||
}
|
||||
.tags-cell {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
@@ -184,20 +154,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.filters-grid {
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.filters-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px;
|
||||
.section-heading h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+80
-137
@@ -1,46 +1,46 @@
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
effect,
|
||||
inject,
|
||||
input,
|
||||
signal,
|
||||
TemplateRef,
|
||||
viewChild,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerBucket,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
ResearcherSummary,
|
||||
ResearcherSummaryPage,
|
||||
} from '../../../api';
|
||||
import { fmtInt, fmtSubScore, tagDescription, tagLabel } from '../founder-potential.utils';
|
||||
import {
|
||||
fmtInt,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
careerBucketDescription,
|
||||
careerBucketRange,
|
||||
} from '../founder-potential.utils';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../../../shared/ui/data-table/data-table.component';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component';
|
||||
import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component';
|
||||
import { MultiplierFiltersComponent } from '../multiplier-filters/multiplier-filters.component';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import { NETWORK_ICON, SEARCH_ICON } from '../../../shared/ui/icons';
|
||||
import {
|
||||
HELP_OUTLINE_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
NETWORK_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
|
||||
@@ -51,37 +51,31 @@ interface MultiplierRow {
|
||||
activeYears: number;
|
||||
nWorks: number;
|
||||
tags: string[];
|
||||
max: number;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-multipliers-dashboard',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatFormFieldModule,
|
||||
MatIconModule,
|
||||
MatInputModule,
|
||||
MatProgressBarModule,
|
||||
MatSelectModule,
|
||||
MatSliderModule,
|
||||
MatTooltipModule,
|
||||
ChipComponent,
|
||||
DataTableComponent,
|
||||
MethodologyNoteComponent,
|
||||
PageContainerComponent,
|
||||
MultiplierRoleScoresComponent,
|
||||
QueryParamPaginatorComponent,
|
||||
PageContainerComponent,
|
||||
MultiplierFiltersComponent,
|
||||
],
|
||||
templateUrl: './multipliers-dashboard.component.html',
|
||||
styleUrl: './multipliers-dashboard.component.scss',
|
||||
})
|
||||
export class MultipliersDashboardComponent {
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
readonly NETWORK_ICON = NETWORK_ICON;
|
||||
readonly SEARCH_ICON = SEARCH_ICON;
|
||||
readonly WARNING_ICON = WARNING_ICON;
|
||||
|
||||
readonly researchers = input.required<ResearcherSummaryPage>();
|
||||
|
||||
@@ -97,50 +91,55 @@ export class MultipliersDashboardComponent {
|
||||
() => this.credentials?.organizationName() || FALLBACK_UNIVERSITY,
|
||||
);
|
||||
readonly pageTotal = computed(() => this.researchers().total ?? 0);
|
||||
readonly nameDraft = signal('');
|
||||
readonly minPeerRankDraft = signal(0);
|
||||
|
||||
readonly selectedTags = computed(() => this.queryParams().getAll('tag'));
|
||||
readonly selectedCareerBuckets = computed(() =>
|
||||
this.queryParams().getAll('careerBucket'),
|
||||
);
|
||||
readonly selectedPeerRankField = computed(
|
||||
() => this.queryParams().get('peerRankField') ?? PeerRankField.Max,
|
||||
);
|
||||
readonly appliedMinPeerRank = computed(
|
||||
() => Math.round((toNumber(this.queryParams().get('minPeerRank')) ?? 0) * 100),
|
||||
readonly hasActiveFilters = computed(() =>
|
||||
['name', 'tag', 'careerBucket', 'minPeerRank', 'peerRankField'].some(
|
||||
(key) => {
|
||||
const value = this.queryParams().get(key);
|
||||
return value !== null && value !== '';
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
readonly roleOptions = [
|
||||
{ value: MultiplierTag.Bridger, label: tagLabel(MultiplierTag.Bridger) },
|
||||
{ value: MultiplierTag.Mentor, label: tagLabel(MultiplierTag.Mentor) },
|
||||
{ value: MultiplierTag.Amplifier, label: tagLabel(MultiplierTag.Amplifier) },
|
||||
];
|
||||
readonly careerOptions = Object.values(CareerBucket);
|
||||
readonly peerRankFields = [
|
||||
{ value: PeerRankField.Max, label: 'Stärkste Rolle' },
|
||||
{ value: PeerRankField.Bridger, label: tagLabel(MultiplierTag.Bridger) },
|
||||
{ value: PeerRankField.Mentor, label: tagLabel(MultiplierTag.Mentor) },
|
||||
{ value: PeerRankField.Amplifier, label: tagLabel(MultiplierTag.Amplifier) },
|
||||
];
|
||||
// -- Explanations (tooltips only) --------------------------------------
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
this.nameDraft.set(this.queryParams().get('name') ?? '');
|
||||
this.minPeerRankDraft.set(this.appliedMinPeerRank());
|
||||
}, { allowSignalWrites: true });
|
||||
}
|
||||
readonly pageTooltip =
|
||||
'Multiplikatoren werden anhand ihrer Zusammenarbeit bewertet: Wie gut verbinden sie Forschungsgruppen, wie viel publizieren sie mit Nachwuchsforschenden und wie stark ist der Austausch mit Industrie, Patenten oder der Öffentlichkeit? Daraus werden die drei Rollen Bridger, Mentor und Amplifier berechnet. Die Werte reichen von 0 bis 100: Je höher, desto stärker ist die Rolle im Vergleich zu anderen derselben Karrierestufe.';
|
||||
|
||||
readonly shortlistTooltip =
|
||||
'Die Liste ist nach der stärksten Rolle sortiert. Die stärkste Rolle ist in der Rollen-Spalte hervorgehoben. Über das Netzwerk-Symbol sehen Sie, mit wem die Person zusammenarbeitet.';
|
||||
|
||||
readonly careerHeaderTooltip =
|
||||
'Ordnet die Person anhand ihrer aktiven Publikationsjahre ein: Early, Emerging, Established oder Senior.';
|
||||
|
||||
readonly rolesHeaderTooltip =
|
||||
'Wie stark jemand als Bridger, Mentor oder Amplifier wirkt – verglichen mit anderen in derselben Karrierestufe. Die stärkste Rolle ist hervorgehoben.';
|
||||
|
||||
readonly tagsHeaderTooltip =
|
||||
'Diese Rollen sind bei der Person besonders stark ausgeprägt (Rang ab 85 % in der Rolle).';
|
||||
|
||||
readonly careerBucketTooltip = careerBucketDescription;
|
||||
readonly careerBucketRange = careerBucketRange;
|
||||
|
||||
readonly suspiciousTooltip =
|
||||
'Bei diesem Profil wurden vermutlich mehrere Personen vermischt. Die Angaben zu Publikationen und Netzwerk sind deshalb unsicher.';
|
||||
|
||||
private readonly nameTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('nameTemplate');
|
||||
private readonly careerTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('careerTemplate');
|
||||
private readonly rolesTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('rolesTemplate');
|
||||
private readonly tagsTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('tagsTemplate');
|
||||
private readonly maxTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('maxTemplate');
|
||||
private readonly actionTemplate =
|
||||
viewChild.required<TemplateRef<MultiplierRow>>('actionTemplate');
|
||||
private readonly careerHeader =
|
||||
viewChild.required<TemplateRef<void>>('careerHeader');
|
||||
private readonly rolesHeader =
|
||||
viewChild.required<TemplateRef<void>>('rolesHeader');
|
||||
private readonly tagsHeader =
|
||||
viewChild.required<TemplateRef<void>>('tagsHeader');
|
||||
|
||||
readonly rows = computed<MultiplierRow[]>(() =>
|
||||
(this.researchers().elements ?? []).map((researcher) => ({
|
||||
@@ -150,36 +149,37 @@ export class MultipliersDashboardComponent {
|
||||
activeYears: researcher.active_years ?? 0,
|
||||
nWorks: researcher.n_works ?? 0,
|
||||
tags: researcher.tags ?? [],
|
||||
max: researcher.max_multiplier_peer_rank ?? 0,
|
||||
})),
|
||||
);
|
||||
|
||||
readonly columns = computed<GenericColumn<MultiplierRow>[]>(() => [
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende:r',
|
||||
header: 'Forschende',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'career',
|
||||
header: 'Karrierestufe',
|
||||
type: 'display',
|
||||
headerTemplate: this.careerHeader(),
|
||||
cellTemplate: this.careerTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'roles',
|
||||
header: 'Multiplikator-Rollen',
|
||||
type: 'display',
|
||||
headerTemplate: this.rolesHeader(),
|
||||
cellTemplate: this.rolesTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
header: 'Badges',
|
||||
header: 'Rollen-Badges',
|
||||
type: 'display',
|
||||
headerTemplate: this.tagsHeader(),
|
||||
cellTemplate: this.tagsTemplate(),
|
||||
},
|
||||
{
|
||||
id: ResearcherSortBy.Max,
|
||||
header: 'Stärkster Rang',
|
||||
type: 'accessor',
|
||||
accessorKey: 'max',
|
||||
cellTemplate: this.maxTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'network',
|
||||
header: '',
|
||||
@@ -188,81 +188,24 @@ export class MultipliersDashboardComponent {
|
||||
},
|
||||
]);
|
||||
|
||||
readonly formatPercent = (value: number): string => `${value}%`;
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
onNameInput(event: Event): void {
|
||||
this.nameDraft.set((event.target as HTMLInputElement).value);
|
||||
}
|
||||
|
||||
onMinRankInput(value: number): void {
|
||||
this.minPeerRankDraft.set(value);
|
||||
}
|
||||
|
||||
onFilterCommit(): void {
|
||||
const rank = this.minPeerRankDraft();
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: {
|
||||
name: this.nameDraft().trim() || null,
|
||||
minPeerRank: rank > 0 ? rank / 100 : null,
|
||||
peerRankField: this.selectedPeerRankField() || PeerRankField.Max,
|
||||
page: 0,
|
||||
},
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onTagsChange(values: string[]): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { tag: values.length ? values : null, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onCareerBucketsChange(values: string[]): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { careerBucket: values.length ? values : null, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
onPeerRankFieldChange(value: string): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { peerRankField: value, page: 0 },
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
readonly tagColor = (tag: string): string => {
|
||||
switch (tag) {
|
||||
case MultiplierTag.Bridger:
|
||||
return 'info';
|
||||
case MultiplierTag.Mentor:
|
||||
return 'success';
|
||||
case MultiplierTag.Amplifier:
|
||||
return 'warn';
|
||||
default:
|
||||
return 'secondary';
|
||||
}
|
||||
};
|
||||
|
||||
openNetwork(row: MultiplierRow): void {
|
||||
void this.router.navigate(['/founders', row.researcher.author_id]);
|
||||
}
|
||||
|
||||
clearFilters(): void {
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: {
|
||||
tag: null,
|
||||
careerBucket: null,
|
||||
name: null,
|
||||
minPeerRank: null,
|
||||
peerRankField: PeerRankField.Max,
|
||||
suspiciousProfile: null,
|
||||
page: 0,
|
||||
},
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function toNumber(value: string | null): number | null {
|
||||
if (value === null || value === '') return null;
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null;
|
||||
}
|
||||
|
||||
+184
-115
@@ -1,28 +1,14 @@
|
||||
<app-page-container
|
||||
[eyebrow]="unavailable() ? null : 'Smart-Guide · Multiplikatoren · ' + universityName()"
|
||||
[eyebrow]="'Multiplikatoren · ' + universityName()"
|
||||
[title]="unavailable()?.title ?? name()"
|
||||
[subtitle]="unavailable()?.body ?? null">
|
||||
<a pageActions mat-button class="back-link" routerLink="/multipliers">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zu den Multiplikatoren
|
||||
</a>
|
||||
|
||||
<div class="researcher-network">
|
||||
@if (unavailable(); as empty) {
|
||||
<mat-card appearance="outlined" class="unavailable">
|
||||
<mat-card-content>
|
||||
<mat-icon class="unavailable__icon">{{ PERSON_OFF_ICON }}</mat-icon>
|
||||
@if (empty.hint) {
|
||||
<p class="unavailable__hint">{{ empty.hint }}</p>
|
||||
}
|
||||
<button mat-stroked-button color="primary" (click)="backToMultipliers()">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zur Multiplikatoren-Übersicht
|
||||
</button>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<section class="researcher-meta">
|
||||
[subtitle]="unavailable()?.body ?? null"
|
||||
[titleTooltip]="unavailable() ? null : pageTooltip">
|
||||
<div pageMeta class="meta-block">
|
||||
<a class="back-link" routerLink="/multipliers">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zur Multiplikatoren-Übersicht
|
||||
</a>
|
||||
@if (!unavailable()) {
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
<app-career-stage-chip
|
||||
@@ -35,129 +21,173 @@
|
||||
{{ fmtInt(activeYears()) }} aktive Jahre
|
||||
</span>
|
||||
@if (suspicious()) {
|
||||
<span class="suspicious">
|
||||
<span
|
||||
class="suspicious"
|
||||
[matTooltip]="suspiciousTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<mat-icon>{{ WARNING_ICON }}</mat-icon>
|
||||
Zusammengeführtes Profil · Daten vorsichtig interpretieren
|
||||
<mat-icon class="help-icon">{{ HELP_OUTLINE_ICON }}</mat-icon>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
@if (tags().length) {
|
||||
<div class="tags">
|
||||
<span class="tags__label">Rollen-Badges:</span>
|
||||
@for (tag of tags(); track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
</div>
|
||||
|
||||
<app-methodology-note>
|
||||
<p>
|
||||
Für das Diagramm werden Koautor:innen-Paare aus Publikationen zu einem
|
||||
gewichteten Netzwerk verbunden. Arbeiten mit mehr als 50 Autor:innen
|
||||
werden nur aus dem Graphen ausgeschlossen (sie zählen weiterhin für
|
||||
Publikations- und Karrierewerte); ältere Kanten werden mit 0,8 pro Jahr
|
||||
abgewichtet. Gezeigt werden bis zu 42 starke Koautor:innen, wobei
|
||||
Nachwuchs-Koautor:innen bevorzugt aufgenommen werden.
|
||||
</p>
|
||||
<p>
|
||||
Die drei Rollen-Scores sind gewichtete Mittel von Metrik-Perzentilen
|
||||
gegenüber Forschenden derselben Karrierestufe an der
|
||||
<strong>{{ universityName() }}</strong>. Ein Score von 85 % ist
|
||||
damit ein relativer Peer-Rang, kein kausaler Nachweis. Die Badges
|
||||
markieren Rollen-Scores ab 85 %.
|
||||
</p>
|
||||
</app-methodology-note>
|
||||
|
||||
<div class="legend">
|
||||
@for (entry of roleLegend(); track entry.role) {
|
||||
@if (unavailable(); as empty) {
|
||||
<mat-card appearance="outlined" class="unavailable">
|
||||
<mat-card-content>
|
||||
<mat-icon class="unavailable__icon">{{ PERSON_OFF_ICON }}</mat-icon>
|
||||
@if (empty.hint) {
|
||||
<p class="unavailable__hint">{{ empty.hint }}</p>
|
||||
}
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
(click)="backToMultipliers()">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zur Multiplikatoren-Übersicht
|
||||
</button>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<div class="researcher-network">
|
||||
<div class="legend">
|
||||
@for (entry of roleLegend(); track entry.role) {
|
||||
<span class="legend__item">
|
||||
<span
|
||||
class="legend__dot"
|
||||
[class.legend__dot--ego]="entry.role === 'ego'"
|
||||
[style.background]="entry.color"></span>
|
||||
{{ entry.label }}
|
||||
</span>
|
||||
}
|
||||
<span class="legend__item">
|
||||
<span
|
||||
class="legend__dot"
|
||||
[class.legend__dot--ego]="entry.role === 'ego'"
|
||||
[style.background]="entry.color"></span>
|
||||
{{ entry.label }}
|
||||
<span class="legend__edge"></span>
|
||||
Kollaboration (Breite = Stärke)
|
||||
</span>
|
||||
}
|
||||
<span class="legend__item">
|
||||
<span class="legend__edge"></span>
|
||||
Kollaboration (Breite = Stärke)
|
||||
</span>
|
||||
<span class="legend__item">
|
||||
<span class="legend__edge legend__edge--dashed"></span>
|
||||
überwiegend institutionsübergreifend
|
||||
</span>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
<span class="legend__item">
|
||||
<span class="legend__edge legend__edge--dashed"></span>
|
||||
überwiegend institutionsübergreifend
|
||||
</span>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
<p class="graph-hint">
|
||||
Personen anklicken, um ihr Profil zu öffnen · ziehen zum Verschieben ·
|
||||
scrollen zum Zoomen
|
||||
</p>
|
||||
|
||||
<div class="case-grid">
|
||||
<mat-card appearance="outlined" class="netbox">
|
||||
<mat-card-content>
|
||||
@if (network(); as net) {
|
||||
@if ((net.nodes?.length ?? 0) > 0) {
|
||||
<app-multiplier-network-graph
|
||||
[network]="net"
|
||||
[height]="640"
|
||||
(nodeClick)="onNodeClick($event)" />
|
||||
<div class="case-grid">
|
||||
<mat-card appearance="outlined" class="netbox">
|
||||
<mat-card-content>
|
||||
@if (network(); as net) {
|
||||
@if ((net.nodes?.length ?? 0) > 0) {
|
||||
<app-multiplier-network-graph
|
||||
[network]="net"
|
||||
[height]="640"
|
||||
(nodeClick)="onNodeClick($event)" />
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} von
|
||||
{{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt ·
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der
|
||||
Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} von
|
||||
{{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt ·
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der Universität ·
|
||||
{{ fmtInt(netMeta().mentees) }} Nachwuchsforschende
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="detail-card">
|
||||
<mat-card-content>
|
||||
<section class="panel">
|
||||
<h2>Multiplikator-Rollen</h2>
|
||||
<p class="cap">
|
||||
Peer-Rang innerhalb derselben Karrierestufe. Die gestrichelte
|
||||
Markierung zeigt die Badge-Schwelle von 85 %.
|
||||
</p>
|
||||
<app-multiplier-role-scores
|
||||
presentation="detailed"
|
||||
[scores]="researcher()?.multiplier_peer_ranks"
|
||||
[showThreshold]="true" />
|
||||
</section>
|
||||
<mat-card appearance="outlined" class="detail-card">
|
||||
<mat-card-content>
|
||||
<section class="panel">
|
||||
<h2>
|
||||
Multiplikator-Rollen
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="rolesTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</h2>
|
||||
<app-multiplier-role-scores
|
||||
presentation="detailed"
|
||||
[scores]="researcher()?.multiplier_peer_ranks"
|
||||
[showThreshold]="true" />
|
||||
</section>
|
||||
|
||||
<section class="metrics">
|
||||
<h2>Metriken im Detail</h2>
|
||||
<p class="cap">
|
||||
Rohwerte und zugehörige Peer-Ränge zeigen, welche Netzwerk- und
|
||||
Kooperationssignale in die Rollen-Scores einfließen.
|
||||
</p>
|
||||
<app-data-table
|
||||
[columns]="metricColumns()"
|
||||
[data]="metricRows()"
|
||||
[stickyHeader]="false" />
|
||||
</section>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<section class="metrics">
|
||||
<h2>
|
||||
Messwerte nach Rolle
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="metricsTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</h2>
|
||||
<p class="metrics-caption">
|
||||
Rang 0–100 im Vergleich zu Personen derselben Karrierestufe.
|
||||
Ab 85 % wird ein Rollen-Badge vergeben.
|
||||
</p>
|
||||
@for (group of metricGroups(); track group.key) {
|
||||
<div class="metric-group">
|
||||
<h3 class="metric-group__title">{{ group.label }}</h3>
|
||||
<p class="metric-group__desc">{{ group.description }}</p>
|
||||
<app-compact-data-table
|
||||
[columns]="metricColumns()"
|
||||
[data]="group.rows" />
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<footer class="network-footer">
|
||||
@if (networkComputedAt(); as computedAt) {
|
||||
Netzwerk berechnet am
|
||||
<span class="mono">{{ computedAt | date: 'dd.MM.yyyy' }}</span>
|
||||
} @else {
|
||||
Netzwerkstand unbekannt
|
||||
}
|
||||
@if (dataComputedAt(); as computedAt) {
|
||||
· Datenstand
|
||||
<span class="mono">{{ computedAt | date: 'dd.MM.yyyy' }}</span>
|
||||
}
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<footer class="page">
|
||||
Netzwerk-Konfiguration
|
||||
<span class="mono">{{ network()?.config_hash ?? '–' }}</span> · berechnet
|
||||
<span class="mono">{{ network()?.computed_at | date: 'dd.MM.yyyy HH:mm' }}</span>
|
||||
</footer>
|
||||
}
|
||||
</div>
|
||||
</app-page-container>
|
||||
|
||||
<ng-template #metricTemplate let-row>
|
||||
{{ row.label }}
|
||||
<span
|
||||
class="metric-label"
|
||||
[matTooltip]="row.hint"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.label }}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricValueTemplate let-row>
|
||||
@@ -169,3 +199,42 @@
|
||||
{{ fmtPeerRank(row.metric.peer_rank) }}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricHeader>
|
||||
<span class="th-help">
|
||||
Metrik
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="metricHeaderTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricValueHeader>
|
||||
<span class="th-help">
|
||||
Wert
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="valueTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricRankHeader>
|
||||
<span class="th-help">
|
||||
Peer-Rang
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="rankTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+105
-22
@@ -4,15 +4,18 @@
|
||||
}
|
||||
|
||||
.back-link {
|
||||
margin-bottom: 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-bottom: 6px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -20,6 +23,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
.meta-block {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.info-icon {
|
||||
flex: none;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 19px;
|
||||
cursor: help;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.meta-line {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -36,19 +53,39 @@
|
||||
gap: 4px;
|
||||
color: var(--sg-error);
|
||||
font-size: 12.5px;
|
||||
cursor: help;
|
||||
|
||||
mat-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.help-icon {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 15px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
margin-top: 4px;
|
||||
|
||||
&__label {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.graph-hint {
|
||||
margin: 8px 0 0;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.legend {
|
||||
@@ -99,7 +136,7 @@
|
||||
|
||||
.case-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
|
||||
grid-template-columns: minmax(0, 1.7fr) minmax(420px, 1fr);
|
||||
gap: 28px;
|
||||
align-items: start;
|
||||
margin-top: 26px;
|
||||
@@ -123,6 +160,8 @@
|
||||
}
|
||||
|
||||
.detail-card {
|
||||
overflow: hidden;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 18px;
|
||||
}
|
||||
@@ -141,6 +180,9 @@
|
||||
gap: 12px;
|
||||
|
||||
h2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
@@ -149,19 +191,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.cap {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-soft);
|
||||
margin: 0 0 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
min-width: 0;
|
||||
margin-top: 24px;
|
||||
margin-top: 20px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
|
||||
h2 {
|
||||
margin: 0 0 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text);
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
@@ -169,6 +209,55 @@
|
||||
}
|
||||
}
|
||||
|
||||
.metrics-caption {
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.metric-group {
|
||||
margin-top: 16px;
|
||||
|
||||
&__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin: 0 0 2px;
|
||||
color: var(--sg-text);
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&__desc {
|
||||
margin: 0 0 6px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.th-help {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
|
||||
&__icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 14px;
|
||||
cursor: help;
|
||||
}
|
||||
}
|
||||
|
||||
.num {
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text);
|
||||
@@ -190,18 +279,12 @@
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 34px;
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&__body {
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
color: var(--sg-text);
|
||||
margin: 0 0 8px;
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
&__hint {
|
||||
@@ -212,7 +295,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
footer.page {
|
||||
.network-footer {
|
||||
margin-top: 48px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
padding-top: 16px;
|
||||
|
||||
+88
-5
@@ -9,6 +9,8 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { MetricValue, ResearcherMetrics } from '../../../api';
|
||||
import {
|
||||
METRIC_DEFS,
|
||||
METRIC_GROUP_META,
|
||||
MetricGroupKey,
|
||||
fmtInt,
|
||||
fmtMetricValue,
|
||||
fmtPeerRank,
|
||||
@@ -21,15 +23,21 @@ import {
|
||||
multiplierRoleColor,
|
||||
MultiplierNetworkGraphComponent,
|
||||
} from '../../../shared/ui/multiplier-network-graph/multiplier-network-graph.component';
|
||||
import { DataTableComponent, GenericColumn } from '../../../shared/ui/data-table/data-table.component';
|
||||
import { GenericColumn } from '../../../shared/ui/data-table/data-table.component';
|
||||
import { CompactDataTableComponent } from '../../../shared/ui/compact-data-table/compact-data-table.component';
|
||||
import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/career-stage-chip.component';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component';
|
||||
import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component';
|
||||
import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import { ARROW_BACK_ICON, PERSON_OFF_ICON, WARNING_ICON } from '../../../shared/ui/icons';
|
||||
import {
|
||||
ARROW_BACK_ICON,
|
||||
HELP_OUTLINE_ICON,
|
||||
INFO_OUTLINE_ICON,
|
||||
PERSON_OFF_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
|
||||
const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
@@ -43,9 +51,20 @@ interface UnavailableView {
|
||||
interface MetricRow {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
group: MetricGroupKey;
|
||||
/** Plain-language explanation, shown on the metric label. */
|
||||
hint: string;
|
||||
/** The measured value plus its peer rank. */
|
||||
metric: MetricValue;
|
||||
}
|
||||
|
||||
interface MetricGroup {
|
||||
key: MetricGroupKey;
|
||||
label: string;
|
||||
description: string;
|
||||
rows: MetricRow[];
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-researcher-network',
|
||||
standalone: true,
|
||||
@@ -56,11 +75,10 @@ interface MetricRow {
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatTooltipModule,
|
||||
DataTableComponent,
|
||||
CompactDataTableComponent,
|
||||
MultiplierNetworkGraphComponent,
|
||||
CareerStageChipComponent,
|
||||
ChipComponent,
|
||||
MethodologyNoteComponent,
|
||||
MultiplierRoleScoresComponent,
|
||||
PageContainerComponent,
|
||||
],
|
||||
@@ -71,6 +89,8 @@ export class ResearcherNetworkComponent {
|
||||
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
|
||||
readonly WARNING_ICON = WARNING_ICON;
|
||||
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
|
||||
readonly page = input.required<ResearcherPageState>();
|
||||
|
||||
@@ -134,6 +154,29 @@ export class ResearcherNetworkComponent {
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
// -- Explanations (tooltips only) --------------------------------------
|
||||
|
||||
readonly pageTooltip =
|
||||
'Das Netzwerk zeigt, mit wem diese Person gemeinsam publiziert hat. Je dicker die Linie, desto häufiger haben die beiden zusammengearbeitet.';
|
||||
|
||||
readonly suspiciousTooltip =
|
||||
'Bei diesem Profil wurden vermutlich mehrere Personen vermischt, zum Beispiel wegen gleicher Namen oder einer unplausibel langen Karriere. Die Angaben zu Publikationen, Netzwerk und Rollen sind deshalb unsicher.';
|
||||
|
||||
readonly rolesTooltip =
|
||||
'Wie stark die drei Rollen ausgeprägt sind. Ab 85 % wird ein Badge vergeben.';
|
||||
|
||||
readonly metricsTooltip =
|
||||
'Die Messwerte sind nach Rolle gruppiert. Jede Zeile nennt das Gewicht im jeweiligen Rollen-Score.';
|
||||
|
||||
readonly valueTooltip =
|
||||
'Der gemessene Wert, zum Beispiel eine Anzahl oder ein Anteil.';
|
||||
|
||||
readonly rankTooltip =
|
||||
'Wie gut dieser Wert im Vergleich zu anderen derselben Karrierestufe ist. 90 % heißt: besser als 90 % der Vergleichsgruppe.';
|
||||
|
||||
readonly metricHeaderTooltip =
|
||||
'Diese Werte fließen in die Berechnung der drei Rollen ein.';
|
||||
|
||||
readonly netMeta = computed(() => {
|
||||
const network = this.network();
|
||||
return {
|
||||
@@ -150,32 +193,72 @@ export class ResearcherNetworkComponent {
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricValueTemplate');
|
||||
private readonly metricRankTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricRankTemplate');
|
||||
private readonly metricHeader =
|
||||
viewChild.required<TemplateRef<void>>('metricHeader');
|
||||
private readonly metricValueHeader =
|
||||
viewChild.required<TemplateRef<void>>('metricValueHeader');
|
||||
private readonly metricRankHeader =
|
||||
viewChild.required<TemplateRef<void>>('metricRankHeader');
|
||||
|
||||
readonly metricRows = computed<MetricRow[]>(() =>
|
||||
METRIC_DEFS.map((definition) => ({
|
||||
key: definition.key,
|
||||
label: definition.label,
|
||||
group: definition.group,
|
||||
hint:
|
||||
definition.weight != null
|
||||
? `${definition.description} Gewicht im Rollen-Score: ${definition.weight} %.`
|
||||
: definition.description,
|
||||
metric: this.researcher()?.metrics?.[definition.key] ?? {},
|
||||
})),
|
||||
);
|
||||
|
||||
/** Metrics grouped by the role they feed, with an extra context group. */
|
||||
readonly metricGroups = computed<MetricGroup[]>(() => {
|
||||
const rows = this.metricRows();
|
||||
const groupKeys: MetricGroupKey[] = [
|
||||
'bridger',
|
||||
'mentor',
|
||||
'amplifier',
|
||||
'context',
|
||||
];
|
||||
return groupKeys
|
||||
.map((key) => ({
|
||||
key,
|
||||
label: METRIC_GROUP_META[key].label,
|
||||
description: METRIC_GROUP_META[key].description,
|
||||
rows: rows.filter((row) => row.group === key),
|
||||
}))
|
||||
.filter((group) => group.rows.length > 0);
|
||||
});
|
||||
|
||||
readonly networkComputedAt = computed(
|
||||
() => this.network()?.computed_at ?? null,
|
||||
);
|
||||
readonly dataComputedAt = computed(
|
||||
() => this.researcher()?.computed_at ?? null,
|
||||
);
|
||||
|
||||
readonly metricColumns = computed<GenericColumn<MetricRow>[]>(() => [
|
||||
{
|
||||
id: 'metric',
|
||||
header: 'Metrik',
|
||||
type: 'display',
|
||||
headerTemplate: this.metricHeader(),
|
||||
cellTemplate: this.metricTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'value',
|
||||
header: 'Wert',
|
||||
type: 'display',
|
||||
headerTemplate: this.metricValueHeader(),
|
||||
cellTemplate: this.metricValueTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'rank',
|
||||
header: 'Peer-Rang',
|
||||
type: 'display',
|
||||
headerTemplate: this.metricRankHeader(),
|
||||
cellTemplate: this.metricRankTemplate(),
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -1,64 +1,68 @@
|
||||
<app-page-container
|
||||
[title]="suggestionsOnly() ? 'Hierarchie-Vorschläge' : 'Organisationsstruktur'"
|
||||
[eyebrow]="'Hierarchie · ' + credentialService.organizationName()"
|
||||
[title]="
|
||||
suggestionsOnly() ? 'Hierarchie-Vorschläge' : 'Organisationsstruktur'
|
||||
"
|
||||
subtitle="Erkunde Organisationshierarchien und ihre zugehörigen Daten.">
|
||||
<div class="content">
|
||||
@if (!hierarchyData()) {
|
||||
<div class="error">
|
||||
<span>Keine Hierarchie-Daten verfügbar.</span>
|
||||
</div>
|
||||
} @else {
|
||||
@if (suggestionsOnly()) {
|
||||
<app-hierarchy-suggestions
|
||||
[suggestions]="suggestions()"
|
||||
(reload)="reloadSuggestions()" />
|
||||
<div class="content">
|
||||
@if (!hierarchyData()) {
|
||||
<div class="error">
|
||||
<span>Keine Hierarchie-Daten verfügbar.</span>
|
||||
</div>
|
||||
} @else {
|
||||
<mat-accordion multi>
|
||||
<mat-expansion-panel
|
||||
[expanded]="hierarchyExpanded()"
|
||||
(expandedChange)="onHierarchyExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Hierarchie</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-hierarchy-chart
|
||||
[hierarchyData]="hierarchyData()"
|
||||
[pendingSuggestion]="
|
||||
@if (suggestionsOnly()) {
|
||||
<app-hierarchy-suggestions
|
||||
[suggestions]="suggestions()"
|
||||
(reload)="reloadSuggestions()" />
|
||||
} @else {
|
||||
<mat-accordion multi>
|
||||
<mat-expansion-panel
|
||||
[expanded]="hierarchyExpanded()"
|
||||
(expandedChange)="onHierarchyExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Hierarchie</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-hierarchy-chart
|
||||
[hierarchyData]="hierarchyData()"
|
||||
[pendingSuggestion]="
|
||||
suggestions().find((suggestion) => suggestion.status === 'new') ?? null
|
||||
"
|
||||
(analyzeOrgEvent)="analyzeOrg($event)"
|
||||
(suggestionSaved)="reloadSuggestions()" />
|
||||
</mat-expansion-panel>
|
||||
@if (orgUrl()) {
|
||||
<mat-expansion-panel
|
||||
[expanded]="organizationExpanded()"
|
||||
(expandedChange)="onOrganizationExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>{{ orgName() }}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-orgminer-content
|
||||
[orgName]="orgName()"
|
||||
[orgUrl]="orgUrl()"></app-orgminer-content>
|
||||
</mat-expansion-panel>
|
||||
<mat-expansion-panel
|
||||
[expanded]="classifiedPagesExpanded()"
|
||||
(expandedChange)="onClassifiedPagesExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Klassifizierte Seiten</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-classified-pages [orgUrl]="orgUrl()"></app-classified-pages>
|
||||
</mat-expansion-panel>
|
||||
} @else if (orgName()) {
|
||||
<div class="ucs-info">
|
||||
<mat-icon>info</mat-icon>
|
||||
<span
|
||||
>Die Organisation {{ orgName() }} konnte nicht geladen werden.</span
|
||||
>
|
||||
</div>
|
||||
(analyzeOrgEvent)="analyzeOrg($event)"
|
||||
(suggestionSaved)="reloadSuggestions()" />
|
||||
</mat-expansion-panel>
|
||||
@if (orgUrl()) {
|
||||
<mat-expansion-panel
|
||||
[expanded]="organizationExpanded()"
|
||||
(expandedChange)="onOrganizationExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>{{ orgName() }}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-orgminer-content
|
||||
[orgName]="orgName()"
|
||||
[orgUrl]="orgUrl()"></app-orgminer-content>
|
||||
</mat-expansion-panel>
|
||||
<mat-expansion-panel
|
||||
[expanded]="classifiedPagesExpanded()"
|
||||
(expandedChange)="onClassifiedPagesExpandedChange($event)"
|
||||
class="mat-elevation-z1">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Klassifizierte Seiten</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-classified-pages [orgUrl]="orgUrl()"></app-classified-pages>
|
||||
</mat-expansion-panel>
|
||||
} @else if (orgName()) {
|
||||
<div class="ucs-info">
|
||||
<mat-icon>info</mat-icon>
|
||||
<span
|
||||
>Die Organisation {{ orgName() }} konnte nicht geladen
|
||||
werden.</span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</mat-accordion>
|
||||
}
|
||||
</mat-accordion>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</app-page-container>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<div class="orgminer-state">
|
||||
<mat-icon>search_off</mat-icon>
|
||||
<span
|
||||
>Für {{ orgName() || 'diese Organisation' }} wurden keine
|
||||
Orgminer-Inhalte gefunden.</span
|
||||
>Für {{ orgName() || 'diese Organisation' }} wurden keine Orgminer-Inhalte
|
||||
gefunden.</span
|
||||
>
|
||||
</div>
|
||||
} @else {
|
||||
@@ -41,7 +41,9 @@
|
||||
<mat-icon>{{ PERSONS_ICON }}</mat-icon>
|
||||
<span class="cat-label">Personal</span>
|
||||
<span class="cat-count">{{ categoryCount('staff') }}</span>
|
||||
<span class="chevron" [class.open]="expandedCategory() === 'staff'"
|
||||
<span
|
||||
class="chevron"
|
||||
[class.open]="expandedCategory() === 'staff'"
|
||||
>▾</span
|
||||
>
|
||||
</button>
|
||||
@@ -56,11 +58,8 @@
|
||||
(click)="selectItem('staff', person)">
|
||||
{{ person.name }}
|
||||
@if (isVerified(person.name)) {
|
||||
<mat-icon
|
||||
class="verified-badge"
|
||||
matTooltip="Verified Staff Member"
|
||||
>verified</mat-icon
|
||||
>
|
||||
<app-verified-badge
|
||||
tooltip="Verifiziertes Personal" />
|
||||
}
|
||||
</li>
|
||||
|
||||
@@ -79,7 +78,9 @@
|
||||
<mat-icon>{{ PROJECT_ICON }}</mat-icon>
|
||||
<span class="cat-label">Projekte</span>
|
||||
<span class="cat-count">{{ categoryCount('projects') }}</span>
|
||||
<span class="chevron" [class.open]="expandedCategory() === 'projects'"
|
||||
<span
|
||||
class="chevron"
|
||||
[class.open]="expandedCategory() === 'projects'"
|
||||
>▾</span
|
||||
>
|
||||
</button>
|
||||
@@ -139,7 +140,14 @@
|
||||
<!-- ---------------------------- STAFF DETAIL ---------------------------- -->
|
||||
@if (selectedStaff(); as staff) {
|
||||
<div class="detail-card">
|
||||
<h2 class="detail-title">{{ staff.name }}</h2>
|
||||
<div class="detail-title-row">
|
||||
<h2 class="detail-title">{{ staff.name }}</h2>
|
||||
@if (isVerified(staff.name)) {
|
||||
<app-verified-badge
|
||||
size="md"
|
||||
tooltip="Verifiziertes Personal" />
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="detail-fields">
|
||||
@if (staff.email) {
|
||||
@@ -163,7 +171,9 @@
|
||||
<span class="detail-label">Links</span>
|
||||
<div class="detail-links">
|
||||
@for (link of staff.links; track link) {
|
||||
<a [href]="link" target="_blank" rel="noopener">{{ link }}</a>
|
||||
<a [href]="link" target="_blank" rel="noopener">{{
|
||||
link
|
||||
}}</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -214,7 +224,9 @@
|
||||
<span class="detail-label">Links</span>
|
||||
<div class="detail-links">
|
||||
@for (link of project.links; track $index) {
|
||||
<a [href]="link" target="_blank" rel="noopener">{{ link }}</a>
|
||||
<a [href]="link" target="_blank" rel="noopener">{{
|
||||
link
|
||||
}}</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -247,7 +259,9 @@
|
||||
<span class="detail-label">Links</span>
|
||||
<div class="detail-links">
|
||||
@for (link of news.links; track link) {
|
||||
<a [href]="link" target="_blank" rel="noopener">{{ link }}</a>
|
||||
<a [href]="link" target="_blank" rel="noopener">{{
|
||||
link
|
||||
}}</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -153,9 +153,6 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
.verified-badge {
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
/* ============================ DETAIL PANEL ============================ */
|
||||
|
||||
.orgminer-detail {
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
PROJECT_ICON,
|
||||
NEWS_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { VerifiedBadgeComponent } from '../../../shared/ui/verified-badge/verified-badge.component';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { OrgminerService } from '../../../api/api/orgminer.service';
|
||||
/* ------------------------------ Data model ------------------------------ */
|
||||
@@ -50,7 +50,7 @@ interface Selection {
|
||||
KeywordWordcloudComponent,
|
||||
MatIconModule,
|
||||
ChipComponent,
|
||||
MatTooltip,
|
||||
VerifiedBadgeComponent,
|
||||
MatProgressSpinnerModule,
|
||||
],
|
||||
templateUrl: './orgminer-content.component.html',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Institutionen'"
|
||||
title="Passende Institutionen finden"
|
||||
subtitle="Suche nach Hochschulen, Forschungszentren und weiteren Einrichtungen.">
|
||||
<app-card-search
|
||||
|
||||
@@ -1,55 +1,30 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Keywords'"
|
||||
title="Keywords extrahieren"
|
||||
subtitle="Extrahiere relevante Begriffe aus einer URL, einem Text oder einer Datei und nutze sie für die Suche.">
|
||||
<div class="content">
|
||||
<!-- Tabs and Extract Button -->
|
||||
<mat-tab-group
|
||||
[selectedIndex]="selectedTabIndex()"
|
||||
(selectedIndexChange)="onTabChange($event)">
|
||||
<mat-tab label="URL">
|
||||
<div class="tab-content">
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Füge eine URL ein, um Keywords zu extrahieren</mat-label>
|
||||
<input
|
||||
matInput
|
||||
placeholder="https://example.com/article"
|
||||
[formControl]="form.controls.urlInput"
|
||||
(keydown.enter)="
|
||||
onExtractKeywordsClick(); $event.preventDefault()
|
||||
" />
|
||||
</mat-form-field>
|
||||
<button
|
||||
mat-flat-button
|
||||
type="button"
|
||||
class="extract-btn"
|
||||
[disabled]="!form.controls.urlInput.value"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
(click)="onExtractKeywordsClick()">
|
||||
<mat-icon>
|
||||
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
|
||||
</mat-icon>
|
||||
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
|
||||
</button>
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab label="Text">
|
||||
<div class="tab-content">
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Schreibe einen Text, um Keywords zu extrahieren</mat-label>
|
||||
<textarea
|
||||
matInput
|
||||
rows="10"
|
||||
placeholder="Large language models are transforming innovation scouting..."
|
||||
[formControl]="form.controls.textInput"></textarea>
|
||||
</mat-form-field>
|
||||
<div class="actions">
|
||||
<div class="content">
|
||||
<!-- Tabs and Extract Button -->
|
||||
<mat-tab-group
|
||||
[selectedIndex]="selectedTabIndex()"
|
||||
(selectedIndexChange)="onTabChange($event)">
|
||||
<mat-tab label="URL">
|
||||
<div class="tab-content">
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Füge eine URL ein, um Keywords zu extrahieren</mat-label>
|
||||
<input
|
||||
matInput
|
||||
placeholder="https://example.com/article"
|
||||
[formControl]="form.controls.urlInput"
|
||||
(keydown.enter)="
|
||||
onExtractKeywordsClick(); $event.preventDefault()
|
||||
" />
|
||||
</mat-form-field>
|
||||
<button
|
||||
mat-flat-button
|
||||
type="button"
|
||||
[disabled]="!form.controls.textInput.value"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
class="extract-btn"
|
||||
[disabled]="!form.controls.urlInput.value"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
(click)="onExtractKeywordsClick()">
|
||||
<mat-icon>
|
||||
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
|
||||
@@ -57,162 +32,158 @@
|
||||
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</mat-tab>
|
||||
<mat-tab label="Datei">
|
||||
<div class="tab-content">
|
||||
<app-file-upload
|
||||
[requiredFileType]="'text/plain,application/pdf'"
|
||||
[maxFileSize]="5 * 1024 * 1024"
|
||||
[maxFiles]="3"
|
||||
[uploadedFiles]="uploadedFiles()"
|
||||
(filesChange)="onFilesSelected($event)">
|
||||
</app-file-upload>
|
||||
<div class="actions">
|
||||
<button
|
||||
mat-flat-button
|
||||
type="button"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
[disabled]="uploadedFiles().length === 0"
|
||||
class="extract-btn"
|
||||
(click)="onExtractKeywordsClick()">
|
||||
<mat-icon>
|
||||
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
|
||||
</mat-icon>
|
||||
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
|
||||
</button>
|
||||
<!-- Add this inside your form or section -->
|
||||
</div>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
<!-- Extraction Table -->
|
||||
<mat-card
|
||||
class="keyword-card progress-container"
|
||||
[class.loading]="isExtracting()">
|
||||
<mat-card-content>
|
||||
<!-- View toggle: Topic Mapping vs. LLM Keywords -->
|
||||
<div class="keywords-toolbar">
|
||||
@if (topicLegendGroups.length > 0) {
|
||||
<app-topic-legend
|
||||
[groups]="topicLegendGroups"
|
||||
[visible]="subfieldLegendVisible()"
|
||||
[expanded]="subfieldLegendExpanded()"
|
||||
[collapsedGroupLimit]="3"
|
||||
variant="default"
|
||||
(visibleChange)="onSubfieldLegendVisibleChange($event)"
|
||||
(expandedChange)="onSubfieldLegendExpandedChange($event)">
|
||||
</app-topic-legend>
|
||||
}
|
||||
</mat-tab>
|
||||
|
||||
<!-- Manual input is ALWAYS available, independent of extraction state -->
|
||||
<div class="toolbar-wrapper">
|
||||
<div class="toolbar-controls thick-border">
|
||||
<div class="toolbar-group toolbar-group--view">
|
||||
@if (areAllSelected()) {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
(click)="deselectAll()"
|
||||
[disabled]="isExtracting()"
|
||||
matTooltip="Alle extrahierten Keywords abwählen">
|
||||
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
|
||||
<span>Alle abwählen</span>
|
||||
</button>
|
||||
} @else {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
[disabled]="isExtracting()"
|
||||
(click)="selectAll()"
|
||||
matTooltip="Alle extrahierten Keywords auswählen">
|
||||
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
|
||||
<span>Alle auswählen</span>
|
||||
</button>
|
||||
}
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="warn"
|
||||
[disabled]="isExtracting()"
|
||||
(click)="clearKeywords()"
|
||||
matTooltip="Alle extrahierten Keywords löschen">
|
||||
<mat-icon>{{ DELETE_OUTLINE_ICON }}</mat-icon>
|
||||
<span>Alle löschen</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toolbar-divider"></div>
|
||||
<div class="toolbar-group toolbar-group--view">
|
||||
<mat-button-toggle-group
|
||||
[value]="keywordView()"
|
||||
(change)="onViewToggleChange($event.value)"
|
||||
aria-label="Keyword Ansicht wählen">
|
||||
<mat-button-toggle
|
||||
[disabled]="isExtracting()"
|
||||
value="llm"
|
||||
matTooltip="Extrahierte Keywords">
|
||||
<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_ICON }}</mat-icon>
|
||||
<span>Ähnliche Themen</span>
|
||||
</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="spacer toolbar-controls manual-input-controls">
|
||||
<app-topic-autocomplete
|
||||
label="z. B. Knowledge Graphs"
|
||||
placeholder="Thema suchen oder eintippen..."
|
||||
(topicSelected)="addKeywordFromInput($event)" />
|
||||
<mat-tab label="Text">
|
||||
<div class="tab-content">
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label
|
||||
>Schreibe einen Text, um Keywords zu extrahieren</mat-label
|
||||
>
|
||||
<textarea
|
||||
matInput
|
||||
rows="10"
|
||||
placeholder="Large language models are transforming innovation scouting..."
|
||||
[formControl]="form.controls.textInput"></textarea>
|
||||
</mat-form-field>
|
||||
<div class="actions">
|
||||
<button
|
||||
mat-flat-button
|
||||
type="button"
|
||||
[disabled]="!form.controls.textInput.value"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
class="extract-btn"
|
||||
(click)="onExtractKeywordsClick()">
|
||||
<mat-icon>
|
||||
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
|
||||
</mat-icon>
|
||||
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ===== Reusable chip stack templates ===== -->
|
||||
<ng-template
|
||||
#keywordChipStack
|
||||
let-keywords="keywords"
|
||||
let-emptyText="emptyText">
|
||||
@if (keywords.length > 0) {
|
||||
<div class="keyword-chip-stack">
|
||||
@for (keyword of keywords; track keyword.llm_keyword.keyword) {
|
||||
<app-topic-chip
|
||||
[topic]="keyword.topic_mapping?.topic"
|
||||
[topicId]="keyword.topic_mapping?.topic?.id"
|
||||
[label]="getChipLabel(keyword)"
|
||||
[count]="
|
||||
keywordView() === 'topic' ? getChipCount(keyword) : null
|
||||
"
|
||||
[description]="getChipDescription(keyword)"
|
||||
[subfieldName]="getChipSubfieldName(keyword)"
|
||||
[fieldName]="getChipFieldName(keyword)"
|
||||
[domainName]="getChipDomainName(keyword)"
|
||||
[color]="getTopicColor(keyword.topic_mapping?.topic)"
|
||||
[active]="isKeywordSelected(keyword)"
|
||||
countIcon="article"
|
||||
descriptionTooltipTarget="button"
|
||||
(chipClick)="toggleKeywordSelection(keyword)">
|
||||
</app-topic-chip>
|
||||
}
|
||||
</mat-tab>
|
||||
<mat-tab label="Datei">
|
||||
<div class="tab-content">
|
||||
<app-file-upload
|
||||
[requiredFileType]="'text/plain,application/pdf'"
|
||||
[maxFileSize]="5 * 1024 * 1024"
|
||||
[maxFiles]="3"
|
||||
[uploadedFiles]="uploadedFiles()"
|
||||
(filesChange)="onFilesSelected($event)">
|
||||
</app-file-upload>
|
||||
<div class="actions">
|
||||
<button
|
||||
mat-flat-button
|
||||
type="button"
|
||||
[color]="isExtracting() ? 'warn' : 'primary'"
|
||||
[disabled]="uploadedFiles().length === 0"
|
||||
class="extract-btn"
|
||||
(click)="onExtractKeywordsClick()">
|
||||
<mat-icon>
|
||||
{{ isExtracting() ? CLOSE_ICON : TROUBLESHOOT_ICON }}
|
||||
</mat-icon>
|
||||
{{ isExtracting() ? 'Abbrechen' : 'Keywords extrahieren' }}
|
||||
</button>
|
||||
<!-- Add this inside your form or section -->
|
||||
</div>
|
||||
} @else {
|
||||
<p class="empty-state small">{{ emptyText }}</p>
|
||||
}
|
||||
</ng-template>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
<!-- Extraction Table -->
|
||||
<mat-card
|
||||
class="keyword-card progress-container"
|
||||
[class.loading]="isExtracting()">
|
||||
<mat-card-content>
|
||||
<!-- View toggle: Topic Mapping vs. LLM Keywords -->
|
||||
<div class="keywords-toolbar">
|
||||
@if (topicLegendGroups.length > 0) {
|
||||
<app-topic-legend
|
||||
[groups]="topicLegendGroups"
|
||||
[visible]="subfieldLegendVisible()"
|
||||
[expanded]="subfieldLegendExpanded()"
|
||||
[collapsedGroupLimit]="3"
|
||||
variant="default"
|
||||
(visibleChange)="onSubfieldLegendVisibleChange($event)"
|
||||
(expandedChange)="onSubfieldLegendExpandedChange($event)">
|
||||
</app-topic-legend>
|
||||
}
|
||||
|
||||
<ng-template #manualChipStack>
|
||||
<div class="keyword-chip-stack manual-stack">
|
||||
@if (manualKeywords().length > 0) {
|
||||
@for (
|
||||
keyword of manualKeywords();
|
||||
track keyword.llm_keyword.keyword
|
||||
) {
|
||||
<div class="manual-chip-row">
|
||||
<!-- Manual input is ALWAYS available, independent of extraction state -->
|
||||
<div class="toolbar-wrapper">
|
||||
<div class="toolbar-controls thick-border">
|
||||
<div class="toolbar-group toolbar-group--view">
|
||||
@if (areAllSelected()) {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
(click)="deselectAll()"
|
||||
[disabled]="isExtracting()"
|
||||
matTooltip="Alle extrahierten Keywords abwählen">
|
||||
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
|
||||
<span>Alle abwählen</span>
|
||||
</button>
|
||||
} @else {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
[disabled]="isExtracting()"
|
||||
(click)="selectAll()"
|
||||
matTooltip="Alle extrahierten Keywords auswählen">
|
||||
<mat-icon>{{ SELECT_ALL_ICON }}</mat-icon>
|
||||
<span>Alle auswählen</span>
|
||||
</button>
|
||||
}
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="warn"
|
||||
[disabled]="isExtracting()"
|
||||
(click)="clearKeywords()"
|
||||
matTooltip="Alle extrahierten Keywords löschen">
|
||||
<mat-icon>{{ DELETE_OUTLINE_ICON }}</mat-icon>
|
||||
<span>Alle löschen</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toolbar-divider"></div>
|
||||
<div class="toolbar-group toolbar-group--view">
|
||||
<mat-button-toggle-group
|
||||
[value]="keywordView()"
|
||||
(change)="onViewToggleChange($event.value)"
|
||||
aria-label="Keyword Ansicht wählen">
|
||||
<mat-button-toggle
|
||||
[disabled]="isExtracting()"
|
||||
value="llm"
|
||||
matTooltip="Extrahierte Keywords">
|
||||
<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_ICON }}</mat-icon>
|
||||
<span>Ähnliche Themen</span>
|
||||
</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="spacer toolbar-controls manual-input-controls">
|
||||
<app-topic-autocomplete
|
||||
label="z. B. Knowledge Graphs"
|
||||
placeholder="Thema suchen oder eintippen..."
|
||||
(topicSelected)="addKeywordFromInput($event)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ===== Reusable chip stack templates ===== -->
|
||||
<ng-template
|
||||
#keywordChipStack
|
||||
let-keywords="keywords"
|
||||
let-emptyText="emptyText">
|
||||
@if (keywords.length > 0) {
|
||||
<div class="keyword-chip-stack">
|
||||
@for (keyword of keywords; track keyword.llm_keyword.keyword) {
|
||||
<app-topic-chip
|
||||
[topic]="keyword.topic_mapping?.topic"
|
||||
[topicId]="keyword.topic_mapping?.topic?.id"
|
||||
@@ -230,226 +201,262 @@
|
||||
descriptionTooltipTarget="button"
|
||||
(chipClick)="toggleKeywordSelection(keyword)">
|
||||
</app-topic-chip>
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
color="warn"
|
||||
aria-label="Manuelles Keyword entfernen"
|
||||
(click)="removeManualKeyword(keyword)">
|
||||
<mat-icon>{{ CANCEL_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<p class="empty-state small">{{ emptyText }}</p>
|
||||
}
|
||||
</ng-template>
|
||||
|
||||
<ng-template #manualChipStack>
|
||||
<div class="keyword-chip-stack manual-stack">
|
||||
@if (manualKeywords().length > 0) {
|
||||
@for (
|
||||
keyword of manualKeywords();
|
||||
track keyword.llm_keyword.keyword
|
||||
) {
|
||||
<div class="manual-chip-row">
|
||||
<app-topic-chip
|
||||
[topic]="keyword.topic_mapping?.topic"
|
||||
[topicId]="keyword.topic_mapping?.topic?.id"
|
||||
[label]="getChipLabel(keyword)"
|
||||
[count]="
|
||||
keywordView() === 'topic' ? getChipCount(keyword) : null
|
||||
"
|
||||
[description]="getChipDescription(keyword)"
|
||||
[subfieldName]="getChipSubfieldName(keyword)"
|
||||
[fieldName]="getChipFieldName(keyword)"
|
||||
[domainName]="getChipDomainName(keyword)"
|
||||
[color]="getTopicColor(keyword.topic_mapping?.topic)"
|
||||
[active]="isKeywordSelected(keyword)"
|
||||
countIcon="article"
|
||||
descriptionTooltipTarget="button"
|
||||
(chipClick)="toggleKeywordSelection(keyword)">
|
||||
</app-topic-chip>
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
color="warn"
|
||||
aria-label="Manuelles Keyword entfernen"
|
||||
(click)="removeManualKeyword(keyword)">
|
||||
<mat-icon>{{ CANCEL_ICON }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
} @else {
|
||||
<p class="empty-state small">Nichts hinzugefügt</p>
|
||||
}
|
||||
@if (loadingNewKeyword()) {
|
||||
<div class="manual-chip-row">
|
||||
<app-topic-chip [label]="'Neues Keyword wird hinzugefügt...'">
|
||||
</app-topic-chip>
|
||||
<button mat-icon-button></button>
|
||||
</div>
|
||||
}
|
||||
} @else {
|
||||
<p class="empty-state small">Nichts hinzugefügt</p>
|
||||
}
|
||||
@if (loadingNewKeyword()) {
|
||||
<div class="manual-chip-row">
|
||||
<app-topic-chip [label]="'Neues Keyword wird hinzugefügt...'">
|
||||
</app-topic-chip>
|
||||
<button mat-icon-button></button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<!-- ===== Desktop / tablet table view ===== -->
|
||||
@if (!isMobile()) {
|
||||
<div class="keyword-table">
|
||||
<div class="table-head">
|
||||
<div class="head-cell sub-cell broad-sub">Breite Keywords</div>
|
||||
<div class="head-cell sub-cell coarse-sub">Coarse Keywords</div>
|
||||
<div class="head-cell sub-cell fine-sub thick-border">
|
||||
Fine Keywords
|
||||
</div>
|
||||
<div class="head-cell sub-cell manual-sub">Eigene Keywords</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<div class="table-body">
|
||||
<div class="table-col broad-col">
|
||||
@if (isExtracting() && broadKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: broadKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
<!-- ===== Desktop / tablet table view ===== -->
|
||||
@if (!isMobile()) {
|
||||
<div class="keyword-table">
|
||||
<div class="table-head">
|
||||
<div class="head-cell sub-cell broad-sub">Breite Keywords</div>
|
||||
<div class="head-cell sub-cell coarse-sub">Coarse Keywords</div>
|
||||
<div class="head-cell sub-cell fine-sub thick-border">
|
||||
Fine Keywords
|
||||
</div>
|
||||
<div class="head-cell sub-cell manual-sub">Eigene Keywords</div>
|
||||
</div>
|
||||
|
||||
<div class="table-col coarse-col">
|
||||
@if (isExtracting() && coarseKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: coarseKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
<div class="table-body">
|
||||
<div class="table-col broad-col">
|
||||
@if (isExtracting() && broadKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: broadKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="table-col fine-col thick-border">
|
||||
@if (isExtracting() && fineKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: fineKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
<div class="table-col coarse-col">
|
||||
@if (isExtracting() && coarseKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: coarseKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="table-col own-col">
|
||||
<ng-container *ngTemplateOutlet="manualChipStack"></ng-container>
|
||||
<div class="table-col fine-col thick-border">
|
||||
@if (isExtracting() && fineKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: fineKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="table-col own-col">
|
||||
<ng-container
|
||||
*ngTemplateOutlet="manualChipStack"></ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
} @else {
|
||||
<!-- ===== Mobile: tabbed view instead of squashed columns ===== -->
|
||||
<mat-tab-group class="mobile-keyword-tabs" animationDuration="150ms">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Breit</span>
|
||||
<span class="tab-count">{{ broadKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && broadKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: broadKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
} @else {
|
||||
<!-- ===== Mobile: tabbed view instead of squashed columns ===== -->
|
||||
<mat-tab-group class="mobile-keyword-tabs" animationDuration="150ms">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Breit</span>
|
||||
<span class="tab-count">{{ broadKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && broadKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: broadKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Coarse</span>
|
||||
<span class="tab-count">{{ coarseKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && coarseKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: coarseKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Coarse</span>
|
||||
<span class="tab-count">{{ coarseKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && coarseKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: coarseKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Fine</span>
|
||||
<span class="tab-count">{{ fineKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && fineKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: fineKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Fine</span>
|
||||
<span class="tab-count">{{ fineKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
@if (isExtracting() && fineKeywords().length === 0) {
|
||||
<app-loading
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="60"
|
||||
[diameter]="60" />
|
||||
} @else {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
keywordChipStack;
|
||||
context: {
|
||||
keywords: fineKeywords(),
|
||||
emptyText: 'Nichts extrahiert',
|
||||
}
|
||||
"></ng-container>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Eigene</span>
|
||||
<span class="tab-count">{{ manualKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
<ng-container *ngTemplateOutlet="manualChipStack"></ng-container>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
}
|
||||
</mat-card-content>
|
||||
<!-- @if (isExtracting() && !keywordsExist()) {
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<span>Eigene</span>
|
||||
<span class="tab-count">{{ manualKeywords().length }}</span>
|
||||
</ng-template>
|
||||
<div class="mobile-tab-panel">
|
||||
<ng-container
|
||||
*ngTemplateOutlet="manualChipStack"></ng-container>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
}
|
||||
</mat-card-content>
|
||||
<!-- @if (isExtracting() && !keywordsExist()) {
|
||||
<app-loading
|
||||
text="{{ statusMessage() }}"
|
||||
[icon]="MANAGE_SEARCH_ICON"
|
||||
[size]="200"
|
||||
[diameter]="200" />
|
||||
} -->
|
||||
<!-- Source content display -->
|
||||
@if (sourceContent().length > 0) {
|
||||
<mat-divider></mat-divider>
|
||||
<mat-expansion-panel class="source-expansion">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Quellentext: {{ sourceUrl() }}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<div class="source-text" [innerHTML]="highlightedSourceContent()"></div>
|
||||
</mat-expansion-panel>
|
||||
<!-- Source content display -->
|
||||
@if (sourceContent().length > 0) {
|
||||
<mat-divider></mat-divider>
|
||||
<mat-expansion-panel class="source-expansion">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>Quellentext: {{ sourceUrl() }}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<div
|
||||
class="source-text"
|
||||
[innerHTML]="highlightedSourceContent()"></div>
|
||||
</mat-expansion-panel>
|
||||
}
|
||||
</mat-card>
|
||||
|
||||
@if (isExtracting()) {
|
||||
<div class="status-message">{{ statusMessage() }}</div>
|
||||
}
|
||||
</mat-card>
|
||||
|
||||
@if (isExtracting()) {
|
||||
<div class="status-message">{{ statusMessage() }}</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (keywordsExist()) {
|
||||
<!-- Search buttons -->
|
||||
<div class="search-container">
|
||||
<div class="search-actions">
|
||||
<button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
class="search-btn"
|
||||
[disabled]="isSearchDisabled()"
|
||||
(click)="search()">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
Suchen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (keywordsExist()) {
|
||||
<!-- Search buttons -->
|
||||
<div class="search-container">
|
||||
<div class="search-actions">
|
||||
<button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
class="search-btn"
|
||||
[disabled]="isSearchDisabled()"
|
||||
(click)="search()">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
Suchen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</app-page-container>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<app-page-container
|
||||
title="Nachrichten"
|
||||
[eyebrow]="'Nachrichten'"
|
||||
title="Nachrichten durchsuchen"
|
||||
subtitle="Aktuelle Nachrichten aus Campus-Aktuell.">
|
||||
<ng-template #snippetTpl let-article>
|
||||
@if (article.snippet) {
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
<app-page-container
|
||||
[title]="showDetail && selectedPatent ? (selectedPatent.title ?? selectedPatent.patent_id) : 'Patente'"
|
||||
[subtitle]="showDetail ? null : 'Suche Patente aus EPO und USPTO und filtere nach Zeitraum, Themen und Klassifikationen.'">
|
||||
[eyebrow]="'Patente'"
|
||||
[title]="
|
||||
showDetail && selectedPatent
|
||||
? (selectedPatent.title ?? selectedPatent.patent_id)
|
||||
: 'Patente durchsuchen'
|
||||
"
|
||||
[subtitle]="
|
||||
showDetail
|
||||
? null
|
||||
: 'Suche Patente aus EPO und USPTO und filtere nach Zeitraum, Themen und Klassifikationen.'
|
||||
">
|
||||
@if (showDetail && selectedPatent) {
|
||||
<button
|
||||
pageActions
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Personen'"
|
||||
title="Passende Personen finden"
|
||||
subtitle="Durchsuche OpenAlex-Autorinnen und -Autoren nach Namen, Themen oder Kennungen.">
|
||||
@if (searchValue()) {
|
||||
@@ -17,334 +18,310 @@
|
||||
</div>
|
||||
}
|
||||
<section class="person-list-page">
|
||||
<div class="layout-container">
|
||||
<!-- Left Column: Results Panel -->
|
||||
<main class="results-column">
|
||||
<!-- Active Filter Chips Row -->
|
||||
@if (activeFilters.length) {
|
||||
<div class="active-filters-row">
|
||||
<span class="active-filters-label">Aktive Filter:</span>
|
||||
<div class="chips-container">
|
||||
@for (
|
||||
filter of activeFilters;
|
||||
track filter.category + filter.value
|
||||
) {
|
||||
@if (filter.category === 'topic') {
|
||||
<span [skText]="loading" class="active-topic-filter">
|
||||
<span
|
||||
class="filter-topic-chip"
|
||||
[style.--topic-color]="getFilterTopicColor(filter.value)"
|
||||
[appComponentTooltip]="AppTopicTooltipComponent"
|
||||
[tooltipInputs]="getFilterTopicInputs(filter.value)"
|
||||
[tooltipMaxWidth]="'500px'">
|
||||
<mat-icon class="filter-topic-chip__icon">{{
|
||||
TOPIC_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-topic-chip__label">{{
|
||||
filter.value
|
||||
}}</span>
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
[attr.aria-label]="
|
||||
'Themenfilter ' + filter.value + ' entfernen'
|
||||
">
|
||||
<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">{{
|
||||
INSTITUTION_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-institution-chip__name">{{
|
||||
institutionFilterLabel(filter)
|
||||
}}</span>
|
||||
@if (filter.countryCode) {
|
||||
<app-country-flag
|
||||
class="filter-institution-chip__flag"
|
||||
[countryCode]="filter.countryCode"
|
||||
[height]="10"
|
||||
[bordered]="false" />
|
||||
<span class="filter-institution-chip__country">{{
|
||||
filter.countryCode.toUpperCase()
|
||||
<div class="layout-container">
|
||||
<!-- Left Column: Results Panel -->
|
||||
<main class="results-column">
|
||||
<!-- Active Filter Chips Row -->
|
||||
@if (activeFilters.length) {
|
||||
<div class="active-filters-row">
|
||||
<span class="active-filters-label">Aktive Filter:</span>
|
||||
<div class="chips-container">
|
||||
@for (
|
||||
filter of activeFilters;
|
||||
track filter.category + filter.value
|
||||
) {
|
||||
@if (filter.category === 'topic') {
|
||||
<span [skText]="loading" class="active-topic-filter">
|
||||
<span
|
||||
class="filter-topic-chip"
|
||||
[style.--topic-color]="getFilterTopicColor(filter.value)"
|
||||
[appComponentTooltip]="AppTopicTooltipComponent"
|
||||
[tooltipInputs]="getFilterTopicInputs(filter.value)"
|
||||
[tooltipMaxWidth]="'500px'">
|
||||
<mat-icon class="filter-topic-chip__icon">{{
|
||||
TOPIC_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-topic-chip__label">{{
|
||||
filter.value
|
||||
}}</span>
|
||||
}
|
||||
@if (filter.value) {
|
||||
<mat-icon
|
||||
class="institution-open-icon"
|
||||
(click)="openInstitutionPage(filter.value, $event)"
|
||||
aria-label="Institutionsseite öffnen"
|
||||
>{{ OPEN_IN_NEW_ICON }}</mat-icon
|
||||
>
|
||||
}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
[attr.aria-label]="
|
||||
'Themenfilter ' + filter.value + ' entfernen'
|
||||
">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
aria-label="Institutionsfilter entfernen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
} @else {
|
||||
<span [skText]="loading" class="filter-chip">
|
||||
{{ filter.label }}
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
aria-label="Filter entfernen">
|
||||
<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">{{
|
||||
INSTITUTION_ICON
|
||||
}}</mat-icon>
|
||||
<span class="filter-institution-chip__name">{{
|
||||
institutionFilterLabel(filter)
|
||||
}}</span>
|
||||
@if (filter.countryCode) {
|
||||
<app-country-flag
|
||||
class="filter-institution-chip__flag"
|
||||
[countryCode]="filter.countryCode"
|
||||
[height]="10"
|
||||
[bordered]="false" />
|
||||
<span class="filter-institution-chip__country">{{
|
||||
filter.countryCode.toUpperCase()
|
||||
}}</span>
|
||||
}
|
||||
@if (filter.value) {
|
||||
<mat-icon
|
||||
class="institution-open-icon"
|
||||
(click)="openInstitutionPage(filter.value, $event)"
|
||||
aria-label="Institutionsseite öffnen"
|
||||
>{{ OPEN_IN_NEW_ICON }}</mat-icon
|
||||
>
|
||||
}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
aria-label="Institutionsfilter entfernen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
} @else {
|
||||
<span [skText]="loading" class="filter-chip">
|
||||
{{ filter.label }}
|
||||
<button
|
||||
type="button"
|
||||
class="remove-chip-btn"
|
||||
(click)="removeFilter(filter)"
|
||||
aria-label="Filter entfernen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
<button
|
||||
class="clear-all-btn"
|
||||
(click)="clearAllFilters()"
|
||||
aria-label="Alle Filter zurücksetzen">
|
||||
Filter zurücksetzen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="toolbar">
|
||||
<span [skText]="loading" class="result-count">{{ resultRange() }}</span>
|
||||
|
||||
<div class="toolbar-actions">
|
||||
<div class="sort-selector">
|
||||
<span class="sort-label">Sortierung:</span>
|
||||
<div class="select-wrapper">
|
||||
<select
|
||||
[formControl]="sortValueControl"
|
||||
aria-label="Sortierkriterium">
|
||||
<option [ngValue]="null">Beste Treffer (Relevanz)</option>
|
||||
<option value="works_count">Publikationen</option>
|
||||
<option value="cited_by_count">Zitierungen</option>
|
||||
<option value="summary_stats.h_index">h_index</option>
|
||||
</select>
|
||||
|
||||
<select
|
||||
[formControl]="sortOrderControl"
|
||||
aria-label="Sortierreihenfolge">
|
||||
<option value="desc">Absteigend</option>
|
||||
<option value="asc">Aufsteigend</option>
|
||||
</select>
|
||||
<button
|
||||
class="clear-all-btn"
|
||||
(click)="clearAllFilters()"
|
||||
aria-label="Alle Filter zurücksetzen">
|
||||
Filter zurücksetzen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="results-panel">
|
||||
<div class="results-head">
|
||||
<strong [skText]="loading"
|
||||
>{{ total | number: '1.0-0' }} Personen gefunden</strong
|
||||
>
|
||||
<!--><span>Sortiert nach Publikationen und Zitierungen</span>-->
|
||||
</div>
|
||||
|
||||
@if (getPersons().length) {
|
||||
<div class="person-grid">
|
||||
@for (person of getPersons(); track person.id) {
|
||||
<app-person-card
|
||||
[loading]="loading"
|
||||
[person]="person"
|
||||
[isBookmarked]="isBookmarked(person)"
|
||||
[selectedTopics]="selectedTopics()"
|
||||
[activeInstitutionId]="appliedInstitutionId"
|
||||
(bookmarkToggle)="toggleBookmark($event)"
|
||||
(topicClick)="onCardTopicClick($event)"
|
||||
(institutionClick)="onCardInstitutionClick($event)">
|
||||
</app-person-card>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state">
|
||||
<mat-icon>{{ PERSON_SEARCH_ICON }}</mat-icon>
|
||||
<h2>Keine Personen gefunden</h2>
|
||||
<p>
|
||||
Versuchen Sie einen anderen Suchbegriff oder passen Sie die Filter
|
||||
an.
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
<!-- Paginator -->
|
||||
<mat-paginator
|
||||
[length]="total"
|
||||
[pageSize]="paginationService.selection"
|
||||
[pageSizeOptions]="paginationService.options"
|
||||
[pageIndex]="currentPage - 1"
|
||||
(page)="onPageChange($event)"
|
||||
aria-label="Ausgewählte Seite">
|
||||
</mat-paginator>
|
||||
</section>
|
||||
</main>
|
||||
<div class="toolbar">
|
||||
<span [skText]="loading" class="result-count">{{
|
||||
resultRange()
|
||||
}}</span>
|
||||
|
||||
<!-- Right Column: Sidebar Filters -->
|
||||
<aside class="filters-sidebar">
|
||||
<div class="sidebar-header">
|
||||
<mat-icon>{{ FILTER_ICON }}</mat-icon>
|
||||
<h2>Filter & Suche</h2>
|
||||
</div>
|
||||
<div class="toolbar-actions">
|
||||
<div class="sort-selector">
|
||||
<span class="sort-label">Sortierung:</span>
|
||||
<div class="select-wrapper">
|
||||
<select
|
||||
[formControl]="sortValueControl"
|
||||
aria-label="Sortierkriterium">
|
||||
<option [ngValue]="null">Beste Treffer (Relevanz)</option>
|
||||
<option value="works_count">Publikationen</option>
|
||||
<option value="cited_by_count">Zitierungen</option>
|
||||
<option value="summary_stats.h_index">h_index</option>
|
||||
</select>
|
||||
|
||||
<!-- Section 1: Topics Search and Selection -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Themen & Expertise</h3>
|
||||
|
||||
<div class="topic-search-wrapper">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
<input
|
||||
type="text"
|
||||
[formControl]="topicSearchControl"
|
||||
aria-label="Thema suchen"
|
||||
placeholder="Thema suchen..." />
|
||||
@if (topicSearchControl.value) {
|
||||
<button
|
||||
class="clear-topic-search"
|
||||
(click)="topicSearchControl.setValue('')"
|
||||
aria-label="Themensuche zurücksetzen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
<select
|
||||
[formControl]="sortOrderControl"
|
||||
aria-label="Sortierreihenfolge">
|
||||
<option value="desc">Absteigend</option>
|
||||
<option value="asc">Aufsteigend</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<app-topic-hierarchy
|
||||
[selectedTopics]="selectedTopics()"
|
||||
[searchQuery]="topicSearchControl.value"
|
||||
[searchType]="topicSearchType()"
|
||||
(searchTypeChange)="onTopicSearchTypeChange($event)"
|
||||
(selectionChange)="onTopicSelectionChange($event)">
|
||||
</app-topic-hierarchy>
|
||||
</div>
|
||||
<section class="results-panel">
|
||||
<div class="results-head">
|
||||
<strong [skText]="loading"
|
||||
>{{ total | number: '1.0-0' }} Personen gefunden</strong
|
||||
>
|
||||
<!--><span>Sortiert nach Publikationen und Zitierungen</span>-->
|
||||
</div>
|
||||
|
||||
<!-- Section 2: Institution Filter -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Institution</h3>
|
||||
<div class="topic-search-wrapper" [class.is-loading]="loading">
|
||||
<mat-icon>{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<input
|
||||
type="text"
|
||||
[formControl]="institutionControl"
|
||||
[matAutocomplete]="auto"
|
||||
aria-label="Institution suchen"
|
||||
placeholder="Institution suchen..."
|
||||
(keyup.enter)="applySidebarFilters()" />
|
||||
<mat-autocomplete
|
||||
#auto="matAutocomplete"
|
||||
[displayWith]="displayInstitution"
|
||||
(optionSelected)="onInstitutionSelected($event)">
|
||||
@for (institution of institutionOptions(); track institution.id) {
|
||||
<mat-option [value]="institution">
|
||||
<span>{{ institution.display_name }}</span>
|
||||
@if (institution.hint) {
|
||||
<small>{{ institution.hint }}</small>
|
||||
}
|
||||
</mat-option>
|
||||
}
|
||||
@if (
|
||||
!institutionLookupLoading() &&
|
||||
institutionOptions().length === 0 &&
|
||||
institutionControl.value &&
|
||||
displayInstitution(institutionControl.value).trim().length >= 2
|
||||
) {
|
||||
<mat-option disabled>Keine Institution gefunden</mat-option>
|
||||
}
|
||||
</mat-autocomplete>
|
||||
@if (institutionControl.value) {
|
||||
<button
|
||||
class="clear-topic-search"
|
||||
(click)="clearInstitutionFilter()"
|
||||
aria-label="Institution zurücksetzen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
@if (getPersons().length) {
|
||||
<div class="person-grid">
|
||||
@for (person of getPersons(); track person.id) {
|
||||
<app-person-card
|
||||
[loading]="loading"
|
||||
[person]="person"
|
||||
[isBookmarked]="isBookmarked(person)"
|
||||
[selectedTopics]="selectedTopics()"
|
||||
[activeInstitutionId]="appliedInstitutionId"
|
||||
(bookmarkToggle)="toggleBookmark($event)"
|
||||
(topicClick)="onCardTopicClick($event)"
|
||||
(institutionClick)="onCardInstitutionClick($event)">
|
||||
</app-person-card>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state">
|
||||
<mat-icon>{{ PERSON_SEARCH_ICON }}</mat-icon>
|
||||
<h2>Keine Personen gefunden</h2>
|
||||
<p>
|
||||
Versuchen Sie einen anderen Suchbegriff oder passen Sie die
|
||||
Filter an.
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
<!-- Paginator -->
|
||||
<mat-paginator
|
||||
[length]="total"
|
||||
[pageSize]="paginationService.selection"
|
||||
[pageSizeOptions]="paginationService.options"
|
||||
[pageIndex]="currentPage - 1"
|
||||
(page)="onPageChange($event)"
|
||||
aria-label="Ausgewählte Seite">
|
||||
</mat-paginator>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Right Column: Sidebar Filters -->
|
||||
<aside class="filters-sidebar">
|
||||
<div class="sidebar-header">
|
||||
<mat-icon>{{ FILTER_ICON }}</mat-icon>
|
||||
<h2>Filter & Suche</h2>
|
||||
</div>
|
||||
<div
|
||||
class="year-filter-wrapper"
|
||||
style="
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
">
|
||||
<mat-checkbox
|
||||
[formControl]="yearFilterEnabledControl"
|
||||
(change)="applySidebarFilters()"
|
||||
aria-label="Institutionszugehörigkeit nach Jahr filtern">
|
||||
<span
|
||||
style="font-size: 12px; font-weight: 500; color: var(--sg-text)">
|
||||
Institutionszugehörigkeit nach Jahr filtern
|
||||
</span>
|
||||
</mat-checkbox>
|
||||
|
||||
@if (yearFilterEnabledControl.value) {
|
||||
<div
|
||||
class="year-filter-options"
|
||||
style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding-left: 28px;
|
||||
">
|
||||
<mat-radio-group
|
||||
[formControl]="filterModeControl"
|
||||
(change)="applySidebarFilters()"
|
||||
style="display: flex; gap: 16px"
|
||||
aria-label="Modus für Jahresfilter">
|
||||
<mat-radio-button value="in">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Genau im Jahr
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="from">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Seit
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="between">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Zeitraum
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
<!-- Section 1: Topics Search and Selection -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Themen & Expertise</h3>
|
||||
|
||||
<div style="display: flex; gap: 8px; width: 100%">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
style="
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
margin-top: 4px;
|
||||
">
|
||||
<mat-label>
|
||||
{{ filterModeControl.value === 'between' ? 'Von' : 'Jahr' }}
|
||||
</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="number"
|
||||
[formControl]="filterYearControl"
|
||||
(change)="applySidebarFilters()"
|
||||
(keyup.enter)="applySidebarFilters()"
|
||||
[attr.aria-label]="
|
||||
filterModeControl.value === 'between' ? 'Von' : 'Jahr'
|
||||
"
|
||||
placeholder="Z. B. 2025" />
|
||||
@if (filterYearControl.hasError('min')) {
|
||||
<mat-error>Jahr muss ≥ 1900 sein</mat-error>
|
||||
<div class="topic-search-wrapper">
|
||||
<mat-icon>{{ SEARCH_ICON }}</mat-icon>
|
||||
<input
|
||||
type="text"
|
||||
[formControl]="topicSearchControl"
|
||||
aria-label="Thema suchen"
|
||||
placeholder="Thema suchen..." />
|
||||
@if (topicSearchControl.value) {
|
||||
<button
|
||||
class="clear-topic-search"
|
||||
(click)="topicSearchControl.setValue('')"
|
||||
aria-label="Themensuche zurücksetzen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<app-topic-hierarchy
|
||||
[selectedTopics]="selectedTopics()"
|
||||
[searchQuery]="topicSearchControl.value"
|
||||
[searchType]="topicSearchType()"
|
||||
(searchTypeChange)="onTopicSearchTypeChange($event)"
|
||||
(selectionChange)="onTopicSelectionChange($event)">
|
||||
</app-topic-hierarchy>
|
||||
</div>
|
||||
|
||||
<!-- Section 2: Institution Filter -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Institution</h3>
|
||||
<div class="topic-search-wrapper" [class.is-loading]="loading">
|
||||
<mat-icon>{{ INSTITUTION_ICON }}</mat-icon>
|
||||
<input
|
||||
type="text"
|
||||
[formControl]="institutionControl"
|
||||
[matAutocomplete]="auto"
|
||||
aria-label="Institution suchen"
|
||||
placeholder="Institution suchen..."
|
||||
(keyup.enter)="applySidebarFilters()" />
|
||||
<mat-autocomplete
|
||||
#auto="matAutocomplete"
|
||||
[displayWith]="displayInstitution"
|
||||
(optionSelected)="onInstitutionSelected($event)">
|
||||
@for (institution of institutionOptions(); track institution.id) {
|
||||
<mat-option [value]="institution">
|
||||
<span>{{ institution.display_name }}</span>
|
||||
@if (institution.hint) {
|
||||
<small>{{ institution.hint }}</small>
|
||||
}
|
||||
@if (filterYearControl.hasError('max')) {
|
||||
<mat-error>Zukünftige Jahre sind nicht erlaubt</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
</mat-option>
|
||||
}
|
||||
@if (
|
||||
!institutionLookupLoading() &&
|
||||
institutionOptions().length === 0 &&
|
||||
institutionControl.value &&
|
||||
displayInstitution(institutionControl.value).trim().length >= 2
|
||||
) {
|
||||
<mat-option disabled>Keine Institution gefunden</mat-option>
|
||||
}
|
||||
</mat-autocomplete>
|
||||
@if (institutionControl.value) {
|
||||
<button
|
||||
class="clear-topic-search"
|
||||
(click)="clearInstitutionFilter()"
|
||||
aria-label="Institution zurücksetzen">
|
||||
<mat-icon>{{ CLOSE_ICON }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
<div
|
||||
class="year-filter-wrapper"
|
||||
style="
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
">
|
||||
<mat-checkbox
|
||||
[formControl]="yearFilterEnabledControl"
|
||||
(change)="applySidebarFilters()"
|
||||
aria-label="Institutionszugehörigkeit nach Jahr filtern">
|
||||
<span
|
||||
style="
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--sg-text);
|
||||
">
|
||||
Institutionszugehörigkeit nach Jahr filtern
|
||||
</span>
|
||||
</mat-checkbox>
|
||||
|
||||
@if (filterModeControl.value === 'between') {
|
||||
@if (yearFilterEnabledControl.value) {
|
||||
<div
|
||||
class="year-filter-options"
|
||||
style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding-left: 28px;
|
||||
">
|
||||
<mat-radio-group
|
||||
[formControl]="filterModeControl"
|
||||
(change)="applySidebarFilters()"
|
||||
style="display: flex; gap: 16px"
|
||||
aria-label="Modus für Jahresfilter">
|
||||
<mat-radio-button value="in">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Genau im Jahr
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="from">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Seit
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
<mat-radio-button value="between">
|
||||
<span style="font-size: 12px; color: var(--sg-text)">
|
||||
Zeitraum
|
||||
</span>
|
||||
</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
|
||||
<div style="display: flex; gap: 8px; width: 100%">
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
style="
|
||||
@@ -353,47 +330,81 @@
|
||||
font-size: 13px;
|
||||
margin-top: 4px;
|
||||
">
|
||||
<mat-label>Bis</mat-label>
|
||||
<mat-label>
|
||||
{{
|
||||
filterModeControl.value === 'between' ? 'Von' : 'Jahr'
|
||||
}}
|
||||
</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="number"
|
||||
[formControl]="filterYearToControl"
|
||||
[formControl]="filterYearControl"
|
||||
(change)="applySidebarFilters()"
|
||||
(keyup.enter)="applySidebarFilters()"
|
||||
aria-label="Bis"
|
||||
placeholder="Z. B. 2026" />
|
||||
@if (filterYearToControl.hasError('min')) {
|
||||
[attr.aria-label]="
|
||||
filterModeControl.value === 'between' ? 'Von' : 'Jahr'
|
||||
"
|
||||
placeholder="Z. B. 2025" />
|
||||
@if (filterYearControl.hasError('min')) {
|
||||
<mat-error>Jahr muss ≥ 1900 sein</mat-error>
|
||||
}
|
||||
@if (filterYearToControl.hasError('max')) {
|
||||
@if (filterYearControl.hasError('max')) {
|
||||
<mat-error>Zukünftige Jahre sind nicht erlaubt</mat-error>
|
||||
}
|
||||
@if (
|
||||
!filterYearToControl.invalid &&
|
||||
filterYearControl.value > filterYearToControl.value
|
||||
) {
|
||||
<mat-error>„Bis“ muss ≥ „Von“ sein</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Footer Action showing matches count -->
|
||||
<div class="sidebar-footer">
|
||||
<button
|
||||
class="submit-btn"
|
||||
(click)="applySidebarFilters()"
|
||||
aria-label="Gefundene Personen anzeigen">
|
||||
<span [skText]="loading"
|
||||
>{{ total | number: '1.0-0' }} Personen anzeigen</span
|
||||
>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
@if (filterModeControl.value === 'between') {
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
style="
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
margin-top: 4px;
|
||||
">
|
||||
<mat-label>Bis</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="number"
|
||||
[formControl]="filterYearToControl"
|
||||
(change)="applySidebarFilters()"
|
||||
(keyup.enter)="applySidebarFilters()"
|
||||
aria-label="Bis"
|
||||
placeholder="Z. B. 2026" />
|
||||
@if (filterYearToControl.hasError('min')) {
|
||||
<mat-error>Jahr muss ≥ 1900 sein</mat-error>
|
||||
}
|
||||
@if (filterYearToControl.hasError('max')) {
|
||||
<mat-error
|
||||
>Zukünftige Jahre sind nicht erlaubt</mat-error
|
||||
>
|
||||
}
|
||||
@if (
|
||||
!filterYearToControl.invalid &&
|
||||
filterYearControl.value > filterYearToControl.value
|
||||
) {
|
||||
<mat-error>„Bis“ muss ≥ „Von“ sein</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Footer Action showing matches count -->
|
||||
<div class="sidebar-footer">
|
||||
<button
|
||||
class="submit-btn"
|
||||
(click)="applySidebarFilters()"
|
||||
aria-label="Gefundene Personen anzeigen">
|
||||
<span [skText]="loading"
|
||||
>{{ total | number: '1.0-0' }} Personen anzeigen</span
|
||||
>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
</app-page-container>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Projekte'"
|
||||
title="Passende Projekte finden"
|
||||
subtitle="Durchsuche geförderte Projekte aus DFG-, EU- und Bundesdatenquellen.">
|
||||
<app-card-search
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Publikationen'"
|
||||
title="Passende Publikationen finden"
|
||||
subtitle="Durchsuche wissenschaftliche Publikationen nach Titel, Autor:innen, Themen oder Institutionen.">
|
||||
<app-card-search
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Themen'"
|
||||
title="Passende Themen finden"
|
||||
subtitle="Entdecke Forschungsfelder nach Namen, Publikationen und Zitierungen.">
|
||||
<app-card-search
|
||||
|
||||
@@ -7,6 +7,10 @@ import {
|
||||
SortDirection,
|
||||
} from '../api';
|
||||
|
||||
const FOUNDER_SORT_FIELDS = Object.values(FounderSortBy);
|
||||
const SORT_DIRECTIONS = Object.values(SortDirection);
|
||||
const DEFAULT_THRESHOLD = 90;
|
||||
|
||||
/**
|
||||
* The founder-candidate list for the dashboard. Driven entirely by query
|
||||
* params (threshold, screened, page, size, sort) so the page state stays in
|
||||
@@ -18,23 +22,25 @@ export const founderCandidatesResolver: ResolveFn<FounderCandidatePage> = (
|
||||
const service = inject(MultiplicatorsService);
|
||||
const params = route.queryParamMap;
|
||||
|
||||
const page = toInt(params.get('page'), 0);
|
||||
const size = toInt(params.get('size'), 25);
|
||||
const threshold = toNumber(params.get('threshold'));
|
||||
const page = Math.max(0, toInt(params.get('page'), 0));
|
||||
const size = clamp(toInt(params.get('size'), 25), 1, 100);
|
||||
const thresholdRaw = toNumber(params.get('threshold'));
|
||||
const threshold = clamp(thresholdRaw ?? DEFAULT_THRESHOLD, 0, 100);
|
||||
|
||||
const screenedRaw = params.get('screened');
|
||||
const screened = screenedRaw === null ? undefined : screenedRaw === 'true';
|
||||
|
||||
const sortBy = (params.get('sortBy') as FounderSortBy) ??
|
||||
const sortBy =
|
||||
asMember(params.get('sortBy'), FOUNDER_SORT_FIELDS) ??
|
||||
FounderSortBy.ExternalPercentile;
|
||||
const sortOrder = (params.get('sortOrder') as SortDirection) ??
|
||||
SortDirection.Desc;
|
||||
const sortOrder =
|
||||
asMember(params.get('sortOrder'), SORT_DIRECTIONS) ?? SortDirection.Desc;
|
||||
|
||||
return service.searchFounderCandidates(
|
||||
page,
|
||||
size,
|
||||
true, // in_population: only researchers the model can score
|
||||
threshold ?? undefined,
|
||||
threshold,
|
||||
undefined, // max_external_percentile
|
||||
undefined, // career_bucket
|
||||
screened,
|
||||
@@ -50,6 +56,19 @@ export const founderCandidatesResolver: ResolveFn<FounderCandidatePage> = (
|
||||
);
|
||||
};
|
||||
|
||||
function asMember<T extends string>(
|
||||
value: string | null,
|
||||
allowed: readonly T[],
|
||||
): T | null {
|
||||
return value !== null && (allowed as readonly string[]).includes(value)
|
||||
? (value as T)
|
||||
: null;
|
||||
}
|
||||
|
||||
function clamp(value: number, min: number, max: number): number {
|
||||
return Math.max(min, Math.min(max, value));
|
||||
}
|
||||
|
||||
function toInt(value: string | null, fallback: number): number {
|
||||
if (value === null || value === '') return fallback;
|
||||
const parsed = Number.parseInt(value, 10);
|
||||
|
||||
@@ -28,9 +28,12 @@ export const multiplicatorResearchersResolver: ResolveFn<ResearcherSummaryPage>
|
||||
|
||||
const page = toInt(params.get('page'), 0);
|
||||
const size = toInt(params.get('size'), 25);
|
||||
const tags = validValues(params.getAll('tag'), VALID_TAGS);
|
||||
const tags = validValues(
|
||||
splitCommaSeparated(params.getAll('tag')),
|
||||
VALID_TAGS,
|
||||
);
|
||||
const careerBuckets = validValues(
|
||||
params.getAll('careerBucket'),
|
||||
splitCommaSeparated(params.getAll('careerBucket')),
|
||||
VALID_CAREER_BUCKETS,
|
||||
);
|
||||
const minPeerRank = toNumber(params.get('minPeerRank'));
|
||||
@@ -78,6 +81,13 @@ function toNumber(value: string | null): number | null {
|
||||
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null;
|
||||
}
|
||||
|
||||
function splitCommaSeparated(values: string[]): string[] {
|
||||
return values
|
||||
.flatMap((value) => value.split(','))
|
||||
.map((value) => value.trim())
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
function validValues<T extends string>(values: string[], valid: readonly T[]): T[] {
|
||||
return values.filter((value): value is T => valid.includes(value as T));
|
||||
}
|
||||
|
||||
@@ -16,7 +16,12 @@ import { MatCardContent, MatCardModule } from '@angular/material/card';
|
||||
import { MatProgressSpinner } from '@angular/material/progress-spinner';
|
||||
import { activeInstitutionPersonListQueryParams } from '../../person-list-query-params';
|
||||
import { topicQueryParamKeys } from '../../../resolvers/topic-page.resolver';
|
||||
import { SortDirection, TopicSortBy, WorkSortBy } from '../../../api';
|
||||
import {
|
||||
FounderSortBy,
|
||||
SortDirection,
|
||||
TopicSortBy,
|
||||
WorkSortBy,
|
||||
} from '../../../api';
|
||||
import { workQueryParamKeys } from '../../../resolvers/work-page.resolver';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import {
|
||||
@@ -106,7 +111,9 @@ export class AppMenuComponent {
|
||||
if (item.route === '/founders' && path.startsWith('/founders/')) {
|
||||
return false;
|
||||
}
|
||||
if ((item.detailRoutePrefixes ?? []).some((prefix) => path.startsWith(prefix))) {
|
||||
if (
|
||||
(item.detailRoutePrefixes ?? []).some((prefix) => path.startsWith(prefix))
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
if (path === item.route || path.startsWith(`${item.route}/`)) {
|
||||
@@ -229,7 +236,14 @@ export class AppMenuComponent {
|
||||
icon: FOUNDER_ICON,
|
||||
route: '/founders',
|
||||
disabled: false,
|
||||
queryParams: { threshold: 90, screened: 'true', page: 0, size: 25 },
|
||||
queryParams: {
|
||||
threshold: 90,
|
||||
screened: 'true',
|
||||
page: 0,
|
||||
size: 10,
|
||||
sortBy: FounderSortBy.ExternalPercentile,
|
||||
sortOrder: SortDirection.Desc,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Multiplikatoren',
|
||||
@@ -238,7 +252,7 @@ export class AppMenuComponent {
|
||||
disabled: false,
|
||||
queryParams: {
|
||||
page: 0,
|
||||
size: 25,
|
||||
size: 10,
|
||||
sortBy: 'max',
|
||||
sortOrder: 'desc',
|
||||
peerRankField: 'max',
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="data()"
|
||||
[dense]="true"
|
||||
[stickyHeader]="stickyHeader()"
|
||||
[maxHeight]="maxHeight()"
|
||||
[filterTerm]="filterTerm()"
|
||||
[selectedRow]="selectedRow()"
|
||||
[queryParamSortKey]="queryParamSortKey()"
|
||||
[queryParamSortDirectionKey]="queryParamSortDirectionKey()"
|
||||
(rowClick)="rowClick.emit($event)"
|
||||
(handleSortChange)="handleSortChange.emit($event)" />
|
||||
@@ -0,0 +1,4 @@
|
||||
:host {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Component, input, output } from '@angular/core';
|
||||
import type { Sort } from '@angular/material/sort';
|
||||
|
||||
import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../data-table/data-table.component';
|
||||
|
||||
/** Dense variant of the shared data table for secondary/detail tables. */
|
||||
@Component({
|
||||
selector: 'app-compact-data-table',
|
||||
standalone: true,
|
||||
imports: [DataTableComponent],
|
||||
templateUrl: './compact-data-table.component.html',
|
||||
styleUrl: './compact-data-table.component.scss',
|
||||
})
|
||||
export class CompactDataTableComponent<T> {
|
||||
readonly columns = input.required<GenericColumn<T>[]>();
|
||||
readonly data = input.required<T[]>();
|
||||
readonly stickyHeader = input(false);
|
||||
readonly maxHeight = input<string | null>(null);
|
||||
readonly filterTerm = input('');
|
||||
readonly selectedRow = input<T | null>(null);
|
||||
readonly queryParamSortKey = input<string | null>(null);
|
||||
readonly queryParamSortDirectionKey = input<string | null>(null);
|
||||
|
||||
readonly rowClick = output<T>();
|
||||
readonly handleSortChange = output<Sort>();
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
<div
|
||||
class="data-table-container"
|
||||
[class.dense]="dense()"
|
||||
[style.max-height]="maxHeight()"
|
||||
[style.overflow-y]="containerOverflow()">
|
||||
<table
|
||||
@@ -36,9 +37,15 @@
|
||||
@for (col of columns(); track col.id) {
|
||||
<ng-container [matColumnDef]="col.id">
|
||||
@if (col.headerTemplate) {
|
||||
<th mat-header-cell *matHeaderCellDef>
|
||||
<ng-container *ngTemplateOutlet="col.headerTemplate"></ng-container>
|
||||
</th>
|
||||
@if (col.type === 'accessor') {
|
||||
<th mat-header-cell *matHeaderCellDef [mat-sort-header]="col.id">
|
||||
<ng-container *ngTemplateOutlet="col.headerTemplate"></ng-container>
|
||||
</th>
|
||||
} @else {
|
||||
<th mat-header-cell *matHeaderCellDef>
|
||||
<ng-container *ngTemplateOutlet="col.headerTemplate"></ng-container>
|
||||
</th>
|
||||
}
|
||||
} @else if (col.type === 'accessor') {
|
||||
<th mat-header-cell *matHeaderCellDef [mat-sort-header]="col.id">
|
||||
{{ col.header }}
|
||||
|
||||
@@ -22,6 +22,42 @@
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
.data-table-container.dense {
|
||||
--mat-table-header-container-height: auto;
|
||||
--mat-table-row-item-container-height: auto;
|
||||
--mat-table-footer-container-height: auto;
|
||||
|
||||
.mat-mdc-header-row,
|
||||
.mat-mdc-row {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.mat-mdc-header-cell,
|
||||
.mat-mdc-cell {
|
||||
min-height: 0;
|
||||
padding: 2px 8px;
|
||||
font-size: 11.5px;
|
||||
line-height: 1.2;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mat-mdc-header-cell {
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.mat-mdc-header-cell:first-of-type,
|
||||
.mat-mdc-cell:first-of-type {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.mat-mdc-header-cell:last-of-type,
|
||||
.mat-mdc-cell:last-of-type {
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.no-data {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -72,6 +72,7 @@ export class DataTableComponent<T> implements AfterViewInit {
|
||||
maxHeight = input<string | null>(null);
|
||||
containerOverflow = computed(() => (this.maxHeight() ? 'auto' : 'visible'));
|
||||
stickyHeader = input<boolean>(true);
|
||||
dense = input<boolean>(false);
|
||||
|
||||
queryParamSortKey = input<string | null>(null);
|
||||
queryParamSortDirectionKey = input<string | null>(null);
|
||||
|
||||
@@ -106,6 +106,8 @@ export const ERROR_ICON = 'error' as const;
|
||||
export const ERROR_OUTLINE_ICON = 'error_outline' as const;
|
||||
export const FACT_CHECK_ICON = 'fact_check' as const;
|
||||
export const HELP_ICON = 'help' as const;
|
||||
export const HELP_OUTLINE_ICON = 'help_outline' as const;
|
||||
export const INFO_OUTLINE_ICON = 'info_outline' as const;
|
||||
export const RULE_ICON = 'rule' as const;
|
||||
export const STAR_ICON = 'star' as const;
|
||||
export const VERIFIED_ICON = 'verified' as const;
|
||||
|
||||
+49
-4
@@ -19,9 +19,9 @@ export interface MultiplierNodeClickEvent {
|
||||
|
||||
/** German labels for the network roles, shared with the HTML legend. */
|
||||
export const MULTIPLIER_ROLE_LABELS: Record<string, string> = {
|
||||
ego: 'Ego (Person)',
|
||||
cohort: 'UDE-Kohorte',
|
||||
mentee: 'Mentee',
|
||||
ego: 'Diese Person',
|
||||
cohort: 'Universität',
|
||||
mentee: 'Nachwuchs',
|
||||
industry: 'Unternehmen',
|
||||
external: 'Extern',
|
||||
};
|
||||
@@ -89,10 +89,13 @@ export class MultiplierNetworkGraphComponent {
|
||||
borderColor: colors.tooltipBorder,
|
||||
textStyle: { color: colors.tooltipTextColor },
|
||||
formatter: (params: any) => {
|
||||
if (!params || params.dataType === 'edge' || !params.data) {
|
||||
if (!params || !params.data) {
|
||||
return '';
|
||||
}
|
||||
const d = params.data;
|
||||
if (params.dataType === 'edge') {
|
||||
return edgeTooltip(d);
|
||||
}
|
||||
const lines = [
|
||||
`<strong>${escapeHtml(d.name ?? d.id)}</strong>`,
|
||||
escapeHtml(MULTIPLIER_ROLE_LABELS[d.role] ?? d.role),
|
||||
@@ -104,6 +107,9 @@ export class MultiplierNetworkGraphComponent {
|
||||
if (d.role === 'ego' && d.nWorks != null) {
|
||||
lines.push(`${d.nWorks} Publikationen`);
|
||||
}
|
||||
if (d.suspicious) {
|
||||
lines.push('Profil möglicherweise zusammengeführt');
|
||||
}
|
||||
return lines.join('<br>');
|
||||
},
|
||||
},
|
||||
@@ -161,6 +167,7 @@ export class MultiplierNetworkGraphComponent {
|
||||
role,
|
||||
inst: node.inst ?? '',
|
||||
activeYears,
|
||||
suspicious: node.suspicious ?? false,
|
||||
nWorks: isEgo ? nWorks : undefined,
|
||||
symbolSize: isEgo ? 24 : clamp(8 + activeYears * 1.1, 8, 26),
|
||||
itemStyle: {
|
||||
@@ -180,9 +187,19 @@ export class MultiplierNetworkGraphComponent {
|
||||
}
|
||||
|
||||
private buildLinks(edges: EgoNetworkEdge[]): any[] {
|
||||
const names = new Map<string, string>();
|
||||
for (const node of this.network().nodes ?? []) {
|
||||
names.set(node.id, node.name ?? node.id);
|
||||
}
|
||||
return edges.map((edge) => ({
|
||||
source: edge.a,
|
||||
target: edge.b,
|
||||
sourceName: names.get(edge.a) ?? edge.a,
|
||||
targetName: names.get(edge.b) ?? edge.b,
|
||||
nWorks: edge.n_works,
|
||||
cross: edge.cross ?? false,
|
||||
firstYear: edge.first_year,
|
||||
lastYear: edge.last_year,
|
||||
lineStyle: {
|
||||
width: clamp((edge.w ?? 0) * 2.5, 1, 7),
|
||||
type: edge.cross ? 'dashed' : 'solid',
|
||||
@@ -205,6 +222,34 @@ function clamp(value: number, min: number, max: number): number {
|
||||
return Math.max(min, Math.min(max, value));
|
||||
}
|
||||
|
||||
/** Plain-language tooltip for a collaboration tie. */
|
||||
function edgeTooltip(edge: {
|
||||
sourceName?: string;
|
||||
targetName?: string;
|
||||
nWorks?: number;
|
||||
cross?: boolean;
|
||||
firstYear?: number | null;
|
||||
lastYear?: number | null;
|
||||
}): string {
|
||||
const source = escapeHtml(edge.sourceName ?? '');
|
||||
const target = escapeHtml(edge.targetName ?? '');
|
||||
const lines = [`<strong>${source} ↔ ${target}</strong>`];
|
||||
if (edge.nWorks != null) {
|
||||
lines.push(
|
||||
`${edge.nWorks} gemeinsame Publikation${edge.nWorks === 1 ? '' : 'en'}`,
|
||||
);
|
||||
}
|
||||
if (edge.firstYear && edge.lastYear) {
|
||||
lines.push(`${edge.firstYear}–${edge.lastYear}`);
|
||||
}
|
||||
lines.push(
|
||||
edge.cross
|
||||
? 'Überwiegend institutionsübergreifend'
|
||||
: 'An derselben Einrichtung',
|
||||
);
|
||||
return lines.join('<br>');
|
||||
}
|
||||
|
||||
function escapeHtml(value: string): string {
|
||||
return String(value).replace(
|
||||
/[&<>"']/g,
|
||||
|
||||
@@ -8,11 +8,11 @@ export const MULTIPLIER_TAG_LABELS: Record<string, string> = {
|
||||
/** Coach-facing descriptions for the three multiplier archetypes. */
|
||||
export const MULTIPLIER_TAG_DESCRIPTIONS: Record<string, string> = {
|
||||
bridger:
|
||||
'Verbindet Forschungsgruppen, Fachgebiete oder Institutionen, die sonst wenig zusammenarbeiten.',
|
||||
'Verbindet Forschungsgruppen oder Fachgebiete, die sonst wenig miteinander zu tun haben.',
|
||||
mentor:
|
||||
'Publiziert mit Nachwuchsforschenden und zeigt Signale für deren Förderung und Entwicklung.',
|
||||
'Arbeitet mit Nachwuchsforschenden zusammen und unterstützt ihre Entwicklung.',
|
||||
amplifier:
|
||||
'Trägt Wissen über Industriekooperationen, Patente, EU-Projekte und Medienresonanz nach außen.',
|
||||
'Bringt Forschung in die Wirtschaft oder die Öffentlichkeit, zum Beispiel über Patente, Industrieprojekte oder Medien.',
|
||||
};
|
||||
|
||||
export function multiplierTagLabel(tag: string): string {
|
||||
|
||||
+3
-1
@@ -3,7 +3,8 @@
|
||||
@for (role of roles(); track role.key) {
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="info"
|
||||
[color]="tagColor(role.key)"
|
||||
[active]="role.isStrongest"
|
||||
[matTooltip]="role.hint"
|
||||
matTooltipPosition="above">
|
||||
{{ role.label }} <b>{{ role.display }}</b>
|
||||
@@ -19,6 +20,7 @@
|
||||
[hint]="role.hint"
|
||||
[value]="role.value * 100"
|
||||
[display]="role.display"
|
||||
[strongest]="role.isStrongest"
|
||||
[threshold]="showThreshold() ? threshold : null" />
|
||||
}
|
||||
</div>
|
||||
|
||||
+17
-2
@@ -1,9 +1,8 @@
|
||||
.role-scores {
|
||||
&--compact {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
align-items: start;
|
||||
font-size: 11px;
|
||||
|
||||
b {
|
||||
@@ -19,3 +18,19 @@
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.role-scores__note {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin: 6px 0 0;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
|
||||
mat-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
+42
-10
@@ -1,4 +1,5 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { MultiplierPeerRanks } from '../../../api';
|
||||
@@ -8,6 +9,7 @@ import {
|
||||
multiplierTagDescription,
|
||||
multiplierTagLabel,
|
||||
} from './multiplier-role-labels';
|
||||
import { MultiplierTag } from '../../../api';
|
||||
|
||||
const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
|
||||
@@ -15,7 +17,7 @@ const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
@Component({
|
||||
selector: 'app-multiplier-role-scores',
|
||||
standalone: true,
|
||||
imports: [MatTooltipModule, ChipComponent, ScoreBarComponent],
|
||||
imports: [MatIconModule, MatTooltipModule, ChipComponent, ScoreBarComponent],
|
||||
templateUrl: './multiplier-role-scores.component.html',
|
||||
styleUrl: './multiplier-role-scores.component.scss',
|
||||
})
|
||||
@@ -24,17 +26,47 @@ export class MultiplierRoleScoresComponent {
|
||||
readonly presentation = input<'compact' | 'detailed'>('detailed');
|
||||
readonly showThreshold = input(false);
|
||||
|
||||
readonly roles = computed(() =>
|
||||
ROLE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: multiplierTagLabel(key),
|
||||
hint: multiplierTagDescription(key),
|
||||
value: this.scores()?.[key] ?? 0,
|
||||
display: formatScore(this.scores()?.[key] ?? 0),
|
||||
})),
|
||||
);
|
||||
readonly roles = computed(() => {
|
||||
const roles = ROLE_KEYS.map((key) => {
|
||||
const value = this.scores()?.[key] ?? 0;
|
||||
return {
|
||||
key,
|
||||
label: multiplierTagLabel(key),
|
||||
hint: multiplierTagDescription(key),
|
||||
value,
|
||||
display: formatScore(value),
|
||||
};
|
||||
});
|
||||
const strongest = Math.max(...roles.map((role) => role.value));
|
||||
|
||||
return roles.map((role) => {
|
||||
const isStrongest = strongest > 0 && role.value === strongest;
|
||||
return {
|
||||
...role,
|
||||
isStrongest,
|
||||
hint: isStrongest
|
||||
? `${role.hint} Das ist die stärkste Rolle dieser Person.`
|
||||
: role.hint,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
readonly threshold = 85;
|
||||
readonly hasStrongest = computed(() =>
|
||||
this.roles().some((role) => role.isStrongest),
|
||||
);
|
||||
readonly tagColor = (tag: string): string => {
|
||||
switch (tag) {
|
||||
case MultiplierTag.Bridger:
|
||||
return 'info';
|
||||
case MultiplierTag.Mentor:
|
||||
return 'success';
|
||||
case MultiplierTag.Amplifier:
|
||||
return 'warn';
|
||||
default:
|
||||
return 'secondary';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function formatScore(value: number): string {
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
<app-page-header
|
||||
[title]="title()"
|
||||
[subtitle]="subtitle()"
|
||||
[eyebrow]="eyebrow()">
|
||||
[eyebrow]="eyebrow()"
|
||||
[titleTooltip]="titleTooltip()">
|
||||
<ng-container pageActions>
|
||||
<ng-content select="[pageActions]"></ng-content>
|
||||
</ng-container>
|
||||
|
||||
@@ -13,4 +13,5 @@ export class PageContainerComponent {
|
||||
readonly title = input<string | null>(null);
|
||||
readonly subtitle = input<string | null>(null);
|
||||
readonly eyebrow = input<string | null>(null);
|
||||
readonly titleTooltip = input<string | null>(null);
|
||||
}
|
||||
|
||||
@@ -4,17 +4,28 @@
|
||||
<p class="page-header__eyebrow">{{ eyebrow() }}</p>
|
||||
}
|
||||
@if (title()) {
|
||||
@switch (level()) {
|
||||
@case (2) {
|
||||
<h2 class="page-header__title">{{ title() }}</h2>
|
||||
<div class="page-header__title-row">
|
||||
@switch (level()) {
|
||||
@case (2) {
|
||||
<h2 class="page-header__title">{{ title() }}</h2>
|
||||
}
|
||||
@case (3) {
|
||||
<h3 class="page-header__title">{{ title() }}</h3>
|
||||
}
|
||||
@default {
|
||||
<h1 class="page-header__title">{{ title() }}</h1>
|
||||
}
|
||||
}
|
||||
@case (3) {
|
||||
<h3 class="page-header__title">{{ title() }}</h3>
|
||||
@if (titleTooltip()) {
|
||||
<mat-icon
|
||||
class="page-header__title-help"
|
||||
[matTooltip]="titleTooltip()"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="below">
|
||||
{{ HELP_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
}
|
||||
@default {
|
||||
<h1 class="page-header__title">{{ title() }}</h1>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (subtitle()) {
|
||||
<p class="page-header__subtitle">{{ subtitle() }}</p>
|
||||
|
||||
@@ -36,6 +36,22 @@
|
||||
line-height: var(--sg-page-title-line-height, 1.18);
|
||||
}
|
||||
|
||||
.page-header__title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header__title-help {
|
||||
flex: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 20px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
h2.page-header__title {
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
|
||||
@@ -1,15 +1,23 @@
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { HELP_OUTLINE_ICON } from '../icons';
|
||||
|
||||
/** Shared heading block for pages and page sections. */
|
||||
@Component({
|
||||
selector: 'app-page-header',
|
||||
standalone: true,
|
||||
imports: [MatIconModule, MatTooltipModule],
|
||||
templateUrl: './page-header.component.html',
|
||||
styleUrl: './page-header.component.scss',
|
||||
})
|
||||
export class PageHeaderComponent {
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
|
||||
readonly title = input<string | null>(null);
|
||||
readonly subtitle = input<string | null>(null);
|
||||
readonly eyebrow = input<string | null>(null);
|
||||
readonly titleTooltip = input<string | null>(null);
|
||||
readonly level = input<1 | 2 | 3>(1);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<div
|
||||
class="score-bar"
|
||||
[class.score-bar--success]="variant() === 'success'"
|
||||
[class.score-bar--warn]="variant() === 'warn'">
|
||||
[class.score-bar--warn]="variant() === 'warn'"
|
||||
[class.score-bar--strongest]="strongest()">
|
||||
<span
|
||||
class="score-bar__label"
|
||||
[class.score-bar__label--hinted]="!!hint()"
|
||||
@@ -9,6 +10,9 @@
|
||||
[matTooltipDisabled]="!hint()"
|
||||
matTooltipPosition="above"
|
||||
matTooltipClass="tooltip-sm">
|
||||
@if (strongest()) {
|
||||
<mat-icon class="score-bar__star" aria-label="Stärkste Rolle">star</mat-icon>
|
||||
}
|
||||
<span class="score-bar__label-text">{{ label() }}</span>
|
||||
@if (hint()) {
|
||||
<mat-icon class="score-bar__hint" aria-hidden="true">help_outline</mat-icon>
|
||||
|
||||
@@ -34,6 +34,19 @@
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.score-bar__star {
|
||||
flex: none;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.score-bar--strongest .score-bar__label-text {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.score-bar__track {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
@@ -29,6 +29,8 @@ export class ScoreBarComponent {
|
||||
/** Optional explanation, shown as a tooltip on the label. */
|
||||
readonly hint = input<string | null | undefined>(null);
|
||||
readonly variant = input<ScoreBarVariant>('primary');
|
||||
/** Marks this row as the strongest of a set. */
|
||||
readonly strongest = input<boolean>(false);
|
||||
|
||||
readonly pct = computed<number>(() => {
|
||||
const max = this.max() || 100;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<span
|
||||
class="verified-badge"
|
||||
[class.verified-badge--md]="size() === 'md'"
|
||||
[matTooltip]="tooltip()"
|
||||
matTooltipPosition="above">
|
||||
<mat-icon>{{ VERIFIED_ICON }}</mat-icon>
|
||||
</span>
|
||||
@@ -0,0 +1,34 @@
|
||||
:host {
|
||||
display: inline-flex;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.verified-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
cursor: help;
|
||||
|
||||
mat-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
color: inherit;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
&--md {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
|
||||
mat-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { VERIFIED_ICON } from '../icons';
|
||||
|
||||
/**
|
||||
* Small success-coloured verification seal.
|
||||
*
|
||||
* Matches the icon treatment of the dashboard statistic cards: same `verified`
|
||||
* glyph, same `--sg-success-soft` / `--sg-success` colour pair.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-verified-badge',
|
||||
standalone: true,
|
||||
imports: [MatIconModule, MatTooltipModule],
|
||||
templateUrl: './verified-badge.component.html',
|
||||
styleUrl: './verified-badge.component.scss',
|
||||
})
|
||||
export class VerifiedBadgeComponent {
|
||||
readonly VERIFIED_ICON = VERIFIED_ICON;
|
||||
|
||||
readonly tooltip = input('Verifiziertes Profil');
|
||||
readonly size = input<'sm' | 'md'>('sm');
|
||||
}
|
||||
@@ -650,6 +650,13 @@ html.dark-theme {
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.sg-tooltip-wide,
|
||||
.sg-tooltip-wide .mdc-tooltip__surface,
|
||||
.sg-tooltip-wide .mat-mdc-tooltip-surface {
|
||||
max-width: 360px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.cdk-overlay-pane .mat-mdc-option small {
|
||||
display: block;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
Reference in New Issue
Block a user