changed icons, to match the project icons

This commit is contained in:
Kazgatari
2026-07-06 11:22:33 +02:00
parent 19fd2ac86d
commit 4461b26270
4 changed files with 70 additions and 20 deletions
@@ -7,7 +7,12 @@
class="trend-chart-render"></div>
} @else {
<div class="no-data-msg">
<div class="icon">📊</div>
<div class="icon">
<mat-icon
style="font-size: 48px; width: 48px; height: 48px; color: #9ca3af"
>bar_chart</mat-icon
>
</div>
<h3>Keine Trenddaten verfügbar</h3>
<p>
Bitte wählen Sie mindestens ein Thema und Einrichtungen oder Regionen im
@@ -6,13 +6,14 @@ import {
} from '@angular/core';
import { EChartsOption } from 'echarts';
import { NgxEchartsDirective } from 'ngx-echarts';
import { MatIconModule } from '@angular/material/icon';
import { TrendResponse, TrendSeries, TopicYearlyData } from '../../../api';
@Component({
selector: 'app-uni-trend-chart',
templateUrl: './uni-trend-chart.component.html',
styleUrl: './uni-trend-chart.component.scss',
imports: [NgxEchartsDirective],
imports: [NgxEchartsDirective, MatIconModule],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UniTrendChartComponent {
@@ -52,23 +52,27 @@
) {
@for (c of comparisonCountries(); track c.id) {
<div class="comparison-item location-item font-country">
<span class="item-name" [title]="c.name">🏳️ {{ c.name }}</span>
<span class="item-name" [title]="c.name"
><mat-icon>flag</mat-icon> {{ c.name }}</span
>
<button
class="remove-btn"
(click)="removeLocation(c.id, 'country')"
aria-label="Land entfernen">
✕
<mat-icon>close</mat-icon>
</button>
</div>
}
@for (r of comparisonRegions(); track r.id) {
<div class="comparison-item location-item font-region">
<span class="item-name" [title]="r.name">🌍 {{ r.name }}</span>
<span class="item-name" [title]="r.name"
><mat-icon>public</mat-icon> {{ r.name }}</span
>
<button
class="remove-btn"
(click)="removeLocation(r.id, 'continent')"
aria-label="Kontinent entfernen">
✕
<mat-icon>close</mat-icon>
</button>
</div>
}
@@ -119,13 +123,13 @@
@for (inst of comparisonInstitutions(); track inst.id) {
<div class="comparison-item">
<span class="item-name" [title]="inst.name"
>🏫 {{ inst.name }}</span
><mat-icon>apartment</mat-icon> {{ inst.name }}</span
>
<button
class="remove-btn"
(click)="removeInstitution(inst.id)"
aria-label="Einrichtung aus Vergleich entfernen">
✕
<mat-icon>close</mat-icon>
</button>
</div>
}
@@ -169,7 +173,8 @@
[class.dirty]="isDirty()"
[disabled]="isTrendLoading() || selectedTrendTopics().length === 0"
(click)="fetchTrendData()">
🔍 {{ isDirty() ? 'Änderungen übernehmen' : 'Trend suchen' }}
<mat-icon>search</mat-icon>
{{ isDirty() ? 'Änderungen übernehmen' : 'Trend suchen' }}
</button>
</div>
</aside>
@@ -183,19 +188,19 @@
[class.active]="chartMode() === 'normalized'"
(click)="setChartMode('normalized')"
title="Normiert das Publikationsvolumen auf [0,1], um die Form von Wachstumstrends zu vergleichen.">
📉 Normierte Skala
<mat-icon>trending_down</mat-icon> Normierte Skala
</button>
<button
[class.active]="chartMode() === 'total'"
(click)="setChartMode('total')"
title="Zeigt die absolute Anzahl der Publikationen.">
📊 Gesamtvolumen
<mat-icon>bar_chart</mat-icon> Gesamtvolumen
</button>
<button
[class.active]="chartMode() === 'cumulative'"
(click)="setChartMode('cumulative')"
title="Zeigt das normierte kumulierte Publikationswachstum (S-Kurve).">
📈 S-Kurve (Normiert)
<mat-icon>trending_up</mat-icon> S-Kurve (Normiert)
</button>
</div>
</div>
@@ -213,7 +218,7 @@
<button
[class.active]="activeChartTopic() === topic"
(click)="updateActiveChartTopic(topic)">
📚 {{ topic }}
<mat-icon>article</mat-icon> {{ topic }}
</button>
}
</div>
@@ -255,14 +260,12 @@
? comparisonInstitutions().some((i) => i.id === item.id)
: false) || primaryInstitution() === item.id
">
<span class="add-icon">+</span>
<mat-icon class="add-icon">add</mat-icon>
<div class="info">
<strong class="name">{{ item.display_name }}</strong>
<span class="meta">
{{ item.country_code }} &bull;
{{
item.exact_topic_count?.toLocaleString()
}}
{{ item.exact_topic_count?.toLocaleString() }}
Publikationen
</span>
</div>
@@ -87,12 +87,21 @@
padding: 0.3rem 0.5rem;
.item-name {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 0.75rem;
color: #374151;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 210px;
mat-icon {
font-size: 14px;
width: 14px;
height: 14px;
}
}
.remove-btn {
@@ -100,9 +109,18 @@
border: none;
color: #9ca3af;
cursor: pointer;
font-size: 0.7rem;
padding: 1px 4px;
border-radius: 3px;
display: inline-flex;
align-items: center;
justify-content: center;
mat-icon {
font-size: 12px;
width: 12px;
height: 12px;
}
&:hover {
color: #ef4444;
background: #fee2e2;
@@ -286,6 +304,15 @@
color: #4b5563;
border-radius: 5px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
mat-icon {
font-size: 16px;
width: 16px;
height: 16px;
}
&:hover:not(.active) {
color: #111827;
@@ -325,6 +352,15 @@
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
display: inline-flex;
align-items: center;
gap: 4px;
mat-icon {
font-size: 14px;
width: 14px;
height: 14px;
}
&:hover {
border-color: #3b82f6;
@@ -391,6 +427,12 @@
color: white;
transition: all 0.2s ease;
mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
&:hover:not([disabled]) {
background-color: #2563eb;
border-color: #2563eb;
@@ -523,9 +565,7 @@
}
.add-icon {
font-size: 1.1rem;
color: #3b82f6;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
@@ -534,6 +574,7 @@
border-radius: 50%;
background: rgba(59, 130, 246, 0.1);
flex-shrink: 0;
font-size: 14px;
}
.info {