refactor/trend_visual #258
+4
-10
@@ -25,10 +25,7 @@
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": [
|
||||
"@angular/material/prebuilt-themes/indigo-pink.css",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"styles": ["src/styles.scss"],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
@@ -41,8 +38,8 @@
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "5kb",
|
||||
"maximumError": "10kb"
|
||||
"maximumWarning": "10kb",
|
||||
"maximumError": "20kb"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
@@ -83,10 +80,7 @@
|
||||
"tsConfig": "tsconfig.spec.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": [
|
||||
"@angular/material/prebuilt-themes/indigo-pink.css",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"styles": ["src/styles.scss"],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,10 +23,11 @@ h1,
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.page-header p {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
@@ -46,19 +47,19 @@ p {
|
||||
}
|
||||
|
||||
.table-panel {
|
||||
border: 1px solid #d7dde6;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.table-header {
|
||||
justify-content: space-between;
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.table-header span {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
@@ -74,29 +75,29 @@ th,
|
||||
td {
|
||||
padding: 12px 16px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #edf1f7;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th {
|
||||
color: #475569;
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
tr.deleted {
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
tr.deactivated:not(.deleted) {
|
||||
color: #64748b;
|
||||
background: #f8fafc;
|
||||
color: var(--sg-text-muted);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
.link-button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #1d4ed8;
|
||||
color: var(--sg-blue-highlight);
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
@@ -109,25 +110,25 @@ tr.deactivated:not(.deleted) {
|
||||
min-height: 24px;
|
||||
border-radius: 999px;
|
||||
padding: 2px 10px;
|
||||
background: #eef2ff;
|
||||
color: #3730a3;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.status--deleted {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.status--deactivated {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
@@ -135,7 +136,7 @@ tr.deactivated:not(.deleted) {
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,10 +6,14 @@
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at top left,
|
||||
rgba(61, 124, 255, 0.12),
|
||||
color-mix(in srgb, var(--sg-primary) 15%, transparent),
|
||||
transparent 34%
|
||||
),
|
||||
linear-gradient(160deg, #f7f9ff 0%, #ffffff 64%);
|
||||
linear-gradient(
|
||||
160deg,
|
||||
var(--sg-surface-muted) 0%,
|
||||
var(--sg-background) 64%
|
||||
);
|
||||
}
|
||||
|
||||
.login-panel {
|
||||
@@ -80,7 +84,7 @@ p {
|
||||
.step--active span {
|
||||
background: var(--sg-primary);
|
||||
border-color: var(--sg-primary);
|
||||
color: #ffffff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.step-line {
|
||||
@@ -158,7 +162,7 @@ p {
|
||||
}
|
||||
|
||||
.expiry--expired {
|
||||
color: #ba1a1a;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
|
||||
@@ -16,15 +16,16 @@
|
||||
h1 {
|
||||
margin: 2px 0 6px;
|
||||
font-size: 2rem;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: #667085;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
color: #3f51b5;
|
||||
color: var(--sg-primary);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
@@ -38,21 +39,22 @@
|
||||
align-items: center;
|
||||
gap: 0 10px;
|
||||
padding: 14px 18px;
|
||||
border: 1px solid #e4e7ec;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 14px;
|
||||
background: white;
|
||||
background: var(--sg-surface);
|
||||
|
||||
mat-icon {
|
||||
grid-row: 1 / 3;
|
||||
color: #3f51b5;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
strong {
|
||||
font-size: 1.25rem;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
span {
|
||||
color: #667085;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
@@ -71,19 +73,19 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
color: #667085;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.empty-state mat-icon {
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
font-size: 54px;
|
||||
color: #98a2b3;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.empty-state h2 {
|
||||
margin: 16px 0 6px;
|
||||
color: #1d2939;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { Component, computed, input, output } from '@angular/core';
|
||||
import { Component, computed, inject, input, output } from '@angular/core';
|
||||
import { CollaborationGraph } from '../../api';
|
||||
import { EChartsCoreOption } from 'echarts';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../shared/services/chart-theme.service';
|
||||
|
||||
import * as echarts from 'echarts/core';
|
||||
import {
|
||||
@@ -36,9 +37,10 @@ export interface NodeClickEvent {
|
||||
})
|
||||
export class CollaborationGraphComponent {
|
||||
collaborationGraph = input.required<CollaborationGraph>();
|
||||
|
||||
handleNodeClick = output<NodeClickEvent>();
|
||||
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
readonly isEmptyGraph = computed(() => {
|
||||
const graph = this.collaborationGraph();
|
||||
return (
|
||||
@@ -67,10 +69,13 @@ export class CollaborationGraphComponent {
|
||||
|
||||
options = computed<EChartsCoreOption>(() => {
|
||||
const graph = this.collaborationGraph();
|
||||
const colors = this.chartTheme.colors();
|
||||
if (!graph) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const textColor = colors.text;
|
||||
|
||||
const frequencies = this.occurenceFrequencies();
|
||||
const minFrequency = Math.min(...Object.values(frequencies));
|
||||
const maxFrequency = Math.max(...Object.values(frequencies));
|
||||
@@ -129,10 +134,10 @@ export class CollaborationGraphComponent {
|
||||
}));
|
||||
|
||||
const categories = [
|
||||
{ name: 'author' },
|
||||
{ name: 'collaborator' },
|
||||
{ name: 'institution' },
|
||||
{ name: 'work' },
|
||||
{ name: 'author', itemStyle: { color: colors.blueHighlight } },
|
||||
{ name: 'collaborator', itemStyle: { color: colors.success } },
|
||||
{ name: 'institution', itemStyle: { color: colors.warning } },
|
||||
{ name: 'work', itemStyle: { color: colors.primary } },
|
||||
];
|
||||
|
||||
return {
|
||||
@@ -142,6 +147,9 @@ export class CollaborationGraphComponent {
|
||||
orient: 'horizontal',
|
||||
formatter: (name: string) => this.categoryLabels[name] || name,
|
||||
itemGap: 20,
|
||||
textStyle: { color: textColor },
|
||||
inactiveColor: colors.mutedTextColor,
|
||||
inactiveBorderColor: colors.tooltipBorder,
|
||||
},
|
||||
series: {
|
||||
type: 'graph',
|
||||
@@ -152,19 +160,42 @@ export class CollaborationGraphComponent {
|
||||
links: links,
|
||||
categories: categories,
|
||||
roam: true,
|
||||
roamTrigger: 'global', // + 2 hours because of incomplete documentation https://github.com/apache/echarts/issues/17214
|
||||
roamTrigger: 'global',
|
||||
zoom: 0.1,
|
||||
force: {
|
||||
repulsion: 10000,
|
||||
friction: 0.9,
|
||||
gravity: 0.2,
|
||||
},
|
||||
label: {
|
||||
show: true,
|
||||
position: 'right',
|
||||
color: textColor,
|
||||
fontSize: 12,
|
||||
},
|
||||
emphasis: {
|
||||
focus: 'adjacency',
|
||||
label: {
|
||||
show: true,
|
||||
color: textColor,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
lineStyle: {
|
||||
width: 5,
|
||||
},
|
||||
},
|
||||
blur: {
|
||||
itemStyle: {
|
||||
opacity: 0.15,
|
||||
},
|
||||
label: {
|
||||
show: false,
|
||||
opacity: 0.15,
|
||||
},
|
||||
lineStyle: {
|
||||
opacity: 0.1,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
+48
-19
@@ -1,7 +1,8 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import { Component, computed, inject, input } from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { WorkPrimaryCategory } from '../../../api';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { SUBFIELD_COLORS } from '../compare-authors-colors';
|
||||
|
||||
export interface AuthorCategoryLegendItem {
|
||||
@@ -69,6 +70,8 @@ export const AUTHOR_CATEGORY_LEGEND: readonly AuthorCategoryLegendItem[] = [
|
||||
export class AuthorCategoryPieComponent {
|
||||
counts = input<Partial<Record<WorkPrimaryCategory, number>> | null>(null);
|
||||
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
readonly total = computed(() =>
|
||||
Object.values(this.counts() ?? {}).reduce(
|
||||
(sum, count) => sum + Math.max(0, count),
|
||||
@@ -79,14 +82,49 @@ export class AuthorCategoryPieComponent {
|
||||
readonly options = computed<EChartsOption>(() => {
|
||||
const counts = this.counts() ?? {};
|
||||
const total = this.total();
|
||||
const textColor = this.cssColor('--sg-text', '#0f172a');
|
||||
const mutedColor = this.cssColor('--sg-text-muted', '#64748b');
|
||||
const colors = this.chartTheme.colors();
|
||||
const textColor = colors.text;
|
||||
const mutedColor = colors.mutedTextColor;
|
||||
const tooltipBg = colors.cardBg;
|
||||
const tooltipBorder = colors.splitLine;
|
||||
const palette = colors.subfieldColors;
|
||||
|
||||
const categoryLegend: readonly AuthorCategoryLegendItem[] = [
|
||||
categoryLegendItem(
|
||||
WorkPrimaryCategory.BasicResearch,
|
||||
'Grundlagenforschung',
|
||||
palette[0],
|
||||
),
|
||||
categoryLegendItem(
|
||||
WorkPrimaryCategory.AppliedResearch,
|
||||
'Anwendungsbasierte Forschung',
|
||||
palette[1],
|
||||
),
|
||||
categoryLegendItem(
|
||||
WorkPrimaryCategory.ExperimentalDevelopment,
|
||||
'Experimentelle Entwicklung',
|
||||
palette[2],
|
||||
),
|
||||
categoryLegendItem(
|
||||
WorkPrimaryCategory.NonResearch,
|
||||
'Nicht-forschende Tätigkeit',
|
||||
palette[3],
|
||||
),
|
||||
categoryLegendItem(
|
||||
WorkPrimaryCategory.NotClassified,
|
||||
'Nicht klassifiziert',
|
||||
palette[4],
|
||||
),
|
||||
];
|
||||
|
||||
return {
|
||||
animation: false,
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
formatter: '{b}: {c} Publikationen ({d} %)',
|
||||
backgroundColor: tooltipBg,
|
||||
borderColor: tooltipBorder,
|
||||
textStyle: { color: textColor },
|
||||
},
|
||||
graphic: {
|
||||
type: 'text',
|
||||
@@ -133,24 +171,15 @@ export class AuthorCategoryPieComponent {
|
||||
scale: true,
|
||||
scaleSize: 6,
|
||||
},
|
||||
data: AUTHOR_CATEGORY_LEGEND.map((item) => ({
|
||||
name: item.label,
|
||||
value: Math.max(0, counts[item.category] ?? 0),
|
||||
itemStyle: { color: item.color },
|
||||
})).filter((item) => item.value > 0),
|
||||
data: categoryLegend
|
||||
.map((item) => ({
|
||||
name: item.label,
|
||||
value: Math.max(0, counts[item.category] ?? 0),
|
||||
itemStyle: { color: item.color },
|
||||
}))
|
||||
.filter((item) => item.value > 0),
|
||||
},
|
||||
],
|
||||
};
|
||||
});
|
||||
|
||||
private cssColor(variable: string, fallback: string): string {
|
||||
if (typeof getComputedStyle !== 'function') {
|
||||
return fallback;
|
||||
}
|
||||
return (
|
||||
getComputedStyle(document.documentElement)
|
||||
.getPropertyValue(variable)
|
||||
.trim() || fallback
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+6
-13
@@ -5,7 +5,7 @@
|
||||
.research-profile-card {
|
||||
border-color: var(--sg-border);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 24px rgb(15 23 42 / 4%);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.profile-header {
|
||||
@@ -126,19 +126,12 @@ section {
|
||||
}
|
||||
|
||||
.legend-chip {
|
||||
--mdc-chip-elevated-container-color: color-mix(
|
||||
in srgb,
|
||||
var(--legend-color) 10%,
|
||||
var(--sg-surface)
|
||||
);
|
||||
--mdc-chip-label-text-color: var(--legend-color);
|
||||
--mdc-chip-outline-color: color-mix(
|
||||
in srgb,
|
||||
var(--legend-color) 28%,
|
||||
transparent
|
||||
);
|
||||
--mdc-chip-elevated-container-color: var(--sg-surface-soft);
|
||||
--mdc-chip-label-text-color: var(--sg-text);
|
||||
--mdc-chip-outline-color: var(--sg-border);
|
||||
|
||||
border: 1px solid color-mix(in srgb, var(--legend-color) 28%, transparent);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.legend-color {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,16 +34,16 @@
|
||||
gap: 6px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted, #f7f9ff);
|
||||
border: 1px solid var(--sg-border, #dde5f2);
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
|
||||
mat-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--sg-text-soft, #8a95b3);
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.legend-swatch {
|
||||
@@ -74,10 +74,10 @@
|
||||
|
||||
/* ---- cards ---- */
|
||||
.card {
|
||||
background: #fff;
|
||||
border: 1px solid #d7e4ff;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
padding: 20px 22px;
|
||||
}
|
||||
|
||||
@@ -85,19 +85,19 @@
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.card-sub {
|
||||
margin: 4px 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.compare-hint {
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
/* ---- comparison table ---- */
|
||||
@@ -114,7 +114,7 @@
|
||||
thead th {
|
||||
text-align: left;
|
||||
padding: 0 16px 10px;
|
||||
border-bottom: 2px solid var(--sg-border, #dde5f2);
|
||||
border-bottom: 2px solid var(--sg-border);
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
@@ -127,12 +127,12 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
tbody tr + tr th,
|
||||
tbody tr + tr td {
|
||||
border-top: 1px solid var(--sg-border, #dde5f2);
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
tbody th,
|
||||
@@ -148,7 +148,7 @@
|
||||
.metric-label {
|
||||
display: block;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.metric-hint {
|
||||
@@ -156,24 +156,24 @@
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: var(--sg-text-soft, #8a95b3);
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.value-cell {
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
|
||||
&.best {
|
||||
font-weight: 700;
|
||||
color: var(--sg-primary, #0b1020);
|
||||
background: var(--sg-surface-soft, #f3f6fd);
|
||||
color: var(--sg-primary);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.value-empty {
|
||||
color: var(--sg-text-soft, #8a95b3);
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
/* author-position row: first / middle / last shown together, colour-coded */
|
||||
@@ -186,49 +186,49 @@
|
||||
font-variant-numeric: tabular-nums;
|
||||
|
||||
&.pos-first {
|
||||
color: #16a34a;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
&.pos-middle {
|
||||
color: #d97706;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
&.pos-last {
|
||||
color: #2563eb;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
&.rel-count {
|
||||
color: #7c3aed;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
&.rel-avg {
|
||||
color: #0891b2;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
&.cit-total {
|
||||
color: #b91c1c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
&.cit-avg {
|
||||
color: #ea580c;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
&.fwci-count {
|
||||
color: #4d7c0f;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
&.fwci-avg {
|
||||
color: #0d9488;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
&.year-from {
|
||||
color: #6d28d9;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
&.year-to {
|
||||
color: #be185d;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
&.ind-count {
|
||||
color: #92400e;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
&.ind-share {
|
||||
color: #1d4ed8;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
|
||||
.pos-sep {
|
||||
margin: 0 4px;
|
||||
color: var(--sg-text-soft, #b6bed6);
|
||||
color: var(--sg-text-soft);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@@ -244,13 +244,13 @@
|
||||
margin: 18px 0 0;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.chart-hint {
|
||||
margin: 2px 0 8px;
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.profile-chart {
|
||||
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
AuthorResearchProfileComponent,
|
||||
ResearchProfileAuthor,
|
||||
} from './author-research-profile/author-research-profile.component';
|
||||
import { ChartThemeService } from '../../shared/services/chart-theme.service';
|
||||
import {
|
||||
AUTHOR_COLORS,
|
||||
OTHER_COLOR,
|
||||
@@ -73,7 +74,6 @@ interface GroupSegment {
|
||||
label: string;
|
||||
colorClass: string;
|
||||
decimals: boolean;
|
||||
// render the value as-is, without the number pipe (e.g. years)
|
||||
plain: boolean;
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ interface SegmentDef {
|
||||
export class CompareAuthorsComponent implements OnInit {
|
||||
private readonly route = inject(ActivatedRoute);
|
||||
private readonly rankingService = inject(RankingService);
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
readonly keywords = signal<string[]>([]);
|
||||
readonly timespan = signal<{ from: number; to: number } | null>(null);
|
||||
@@ -143,6 +144,7 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
readonly summary = computed<AuthorSummary[]>(() => {
|
||||
const topicById = new Map(this.topic().map((a) => [a.author_id, a]));
|
||||
const staticById = new Map(this.staticStats().map((a) => [a.author_id, a]));
|
||||
const authorPalette = this.chartTheme.colors().authorColors;
|
||||
|
||||
return this.authorIds().map((id, index) => {
|
||||
const t = topicById.get(id);
|
||||
@@ -153,7 +155,7 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
const authorSummary: AuthorSummary = {
|
||||
authorId: id,
|
||||
name,
|
||||
color: AUTHOR_COLORS[index % AUTHOR_COLORS.length],
|
||||
color: authorPalette[index % authorPalette.length],
|
||||
totalWorks: t ? t.works_total : null,
|
||||
corresponding: t ? t.corresponding_count : null,
|
||||
avgPercentile: t ? t.avg_percentile : null,
|
||||
@@ -469,7 +471,11 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
return `<b>${params[0]?.name ?? ''}</b><br/>${lines.join('<br/>')}`;
|
||||
},
|
||||
},
|
||||
legend: { type: 'scroll', top: 0 },
|
||||
legend: {
|
||||
type: 'scroll',
|
||||
top: 0,
|
||||
textStyle: { color: this.chartTheme.colors().text },
|
||||
},
|
||||
grid: { left: 16, right: 24, top: 56, bottom: 8, containLabel: true },
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
@@ -506,7 +512,7 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
return `<b>${params[0]?.name ?? ''}</b><br/>${lines.join('<br/>')}`;
|
||||
},
|
||||
},
|
||||
legend: { top: 0 },
|
||||
legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } },
|
||||
grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true },
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
@@ -553,7 +559,7 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
|
||||
return {
|
||||
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
||||
legend: { top: 0 },
|
||||
legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } },
|
||||
grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true },
|
||||
xAxis: { type: 'value' },
|
||||
yAxis: {
|
||||
@@ -566,21 +572,21 @@ export class CompareAuthorsComponent implements OnInit {
|
||||
{
|
||||
name: 'Themen',
|
||||
type: 'bar',
|
||||
itemStyle: { color: '#0891b2' },
|
||||
itemStyle: { color: this.chartTheme.colors().blueHighlight },
|
||||
label: { show: true, position: 'right' },
|
||||
data: profiles.map((p) => p.distinct_topics),
|
||||
},
|
||||
{
|
||||
name: 'Subfields',
|
||||
type: 'bar',
|
||||
itemStyle: { color: '#d97706' },
|
||||
itemStyle: { color: this.chartTheme.colors().warning },
|
||||
label: { show: true, position: 'right' },
|
||||
data: profiles.map((p) => p.distinct_subfields),
|
||||
},
|
||||
{
|
||||
name: 'Fields',
|
||||
type: 'bar',
|
||||
itemStyle: { color: '#16a34a' },
|
||||
itemStyle: { color: this.chartTheme.colors().success },
|
||||
label: { show: true, position: 'right' },
|
||||
data: profiles.map((p) => p.distinct_fields),
|
||||
},
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
// src/app/modules/university-ranking/dashboard.component.scss
|
||||
.dashboard-wrapper {
|
||||
padding: 2rem;
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #333;
|
||||
color: var(--sg-text);
|
||||
|
||||
.dashboard-period-filter {
|
||||
display: flex;
|
||||
@@ -16,22 +14,22 @@
|
||||
display: inline-flex;
|
||||
overflow: hidden;
|
||||
flex: 0 0 auto;
|
||||
border: 1px solid #cbd5e1;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
|
||||
button {
|
||||
padding: 0.55rem 0.8rem;
|
||||
border: 0;
|
||||
border-right: 1px solid #cbd5e1;
|
||||
border-right: 1px solid var(--sg-border);
|
||||
background: transparent;
|
||||
color: #334155;
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
|
||||
&.active {
|
||||
background: #1d4ed8;
|
||||
color: #fff;
|
||||
background: var(--sg-blue-highlight);
|
||||
color: var(--sg-card-bg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,10 +55,10 @@
|
||||
gap: 1rem;
|
||||
min-height: 120px;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid #e2e8f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: 0 4px 14px rgb(15 23 42 / 6%);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
@@ -69,13 +67,13 @@
|
||||
transform 160ms ease;
|
||||
|
||||
&:hover {
|
||||
border-color: #93c5fd;
|
||||
box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
|
||||
border-color: var(--sg-card-hover-border);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid #93c5fd;
|
||||
outline: 3px solid var(--sg-card-hover-border);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@@ -86,13 +84,13 @@
|
||||
span,
|
||||
small {
|
||||
display: block;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
margin: 0.2rem 0;
|
||||
color: #0f172a;
|
||||
color: var(--sg-text);
|
||||
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
@@ -105,38 +103,38 @@
|
||||
height: 52px;
|
||||
place-items: center;
|
||||
border-radius: 12px;
|
||||
background: #dbeafe;
|
||||
color: #1d4ed8;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
|
||||
&--persons {
|
||||
background: #dcfce7;
|
||||
color: #15803d;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--patents {
|
||||
background: #fee2e2;
|
||||
color: #b91c1c;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
&--eu-projects {
|
||||
background: #e0f2fe;
|
||||
color: #0369a1;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--bund-projects {
|
||||
background: #fef3c7;
|
||||
color: #b45309;
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&--dfg-projects {
|
||||
background: #f3e8ff;
|
||||
color: #7e22ce;
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-error {
|
||||
margin: -1rem 0 2rem;
|
||||
color: #b91c1c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.top-authors-section {
|
||||
@@ -146,9 +144,9 @@
|
||||
.topic-heatmap-section {
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid #e2e8f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.topic-heatmap-header {
|
||||
@@ -165,7 +163,7 @@
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
@@ -194,8 +192,8 @@
|
||||
span {
|
||||
padding: 0.35rem 0.65rem;
|
||||
border-radius: 999px;
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -203,7 +201,7 @@
|
||||
|
||||
.dfg-topic-summary {
|
||||
flex: 0 0 auto;
|
||||
color: #475569;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -221,7 +219,7 @@
|
||||
|
||||
p {
|
||||
margin-top: 0.35rem;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@@ -246,16 +244,16 @@
|
||||
|
||||
.top-authors-chart {
|
||||
padding: 1.25rem;
|
||||
border: 1px solid #e2e8f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
background: var(--sg-card-bg);
|
||||
|
||||
h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0 0 1rem;
|
||||
color: #0f172a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,7 +266,7 @@
|
||||
|
||||
.author-rank {
|
||||
flex: 0 0 1.4rem;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -287,7 +285,7 @@
|
||||
|
||||
.author-name {
|
||||
overflow: hidden;
|
||||
color: #1d4ed8;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -306,7 +304,7 @@
|
||||
|
||||
&:focus-visible {
|
||||
border-radius: 2px;
|
||||
outline: 2px solid #93c5fd;
|
||||
outline: 2px solid var(--sg-card-hover-border);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
@@ -315,20 +313,20 @@
|
||||
overflow: hidden;
|
||||
height: 7px;
|
||||
border-radius: 999px;
|
||||
background: #e2e8f0;
|
||||
background: var(--sg-border);
|
||||
}
|
||||
|
||||
.author-bar-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, #2563eb, #60a5fa);
|
||||
background: var(--sg-blue-highlight);
|
||||
transition: width 220ms ease;
|
||||
}
|
||||
|
||||
.empty-chart {
|
||||
margin: 2rem 0;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
min-height: 260px;
|
||||
margin: 0;
|
||||
place-items: center;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Component, Input, OnChanges } from '@angular/core';
|
||||
import { Component, Input, OnChanges, effect, inject } from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
|
||||
import { DfgProjectTopic } from '../dashboard-statistics.service';
|
||||
|
||||
@@ -13,9 +14,22 @@ import { DfgProjectTopic } from '../dashboard-statistics.service';
|
||||
export class DfgTopicDonutComponent implements OnChanges {
|
||||
@Input() topics: DfgProjectTopic[] = [];
|
||||
|
||||
private chartTheme = inject(ChartThemeService);
|
||||
options: EChartsOption = {};
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
this.buildOptions();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnChanges(): void {
|
||||
this.buildOptions();
|
||||
}
|
||||
|
||||
private buildOptions(): void {
|
||||
const theme = this.chartTheme.colors();
|
||||
|
||||
this.options = {
|
||||
color: [
|
||||
'#7255d9',
|
||||
@@ -29,9 +43,13 @@ export class DfgTopicDonutComponent implements OnChanges {
|
||||
'#db2777',
|
||||
'#9333ea',
|
||||
],
|
||||
backgroundColor: theme.backgroundColor,
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
confine: true,
|
||||
backgroundColor: theme.tooltipBg,
|
||||
borderColor: theme.tooltipBorder,
|
||||
textStyle: { color: theme.tooltipTextColor },
|
||||
formatter: (params: any) =>
|
||||
`<strong>${this.escapeHtml(String(params.name ?? ''))}</strong><br>${Number(params.value ?? 0).toLocaleString('de-DE')} DFG-Projekte`,
|
||||
},
|
||||
@@ -41,7 +59,7 @@ export class DfgTopicDonutComponent implements OnChanges {
|
||||
top: 'middle',
|
||||
right: 12,
|
||||
width: '38%',
|
||||
textStyle: { color: '#334155' },
|
||||
textStyle: { color: theme.textColor },
|
||||
formatter: (name: string) => this.truncate(name, 42),
|
||||
},
|
||||
graphic: [
|
||||
@@ -52,7 +70,7 @@ export class DfgTopicDonutComponent implements OnChanges {
|
||||
style: {
|
||||
text: `${this.topics.length}\nTopics`,
|
||||
align: 'center',
|
||||
fill: '#0f172a',
|
||||
fill: theme.textColor,
|
||||
fontSize: 18,
|
||||
fontWeight: 700,
|
||||
lineHeight: 25,
|
||||
@@ -68,7 +86,7 @@ export class DfgTopicDonutComponent implements OnChanges {
|
||||
avoidLabelOverlap: true,
|
||||
minAngle: 3,
|
||||
itemStyle: {
|
||||
borderColor: '#ffffff',
|
||||
borderColor: theme.cardBg,
|
||||
borderWidth: 3,
|
||||
borderRadius: 5,
|
||||
},
|
||||
|
||||
+27
-7
@@ -1,6 +1,7 @@
|
||||
import { Component, Input, OnChanges } from '@angular/core';
|
||||
import { Component, Input, OnChanges, effect, inject } from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
|
||||
import {
|
||||
BmbfProjectStatusStatistics,
|
||||
@@ -19,9 +20,23 @@ export class EuProjectStatusChartComponent implements OnChanges {
|
||||
@Input({ required: true }) bmbfStatuses!: BmbfProjectStatusStatistics;
|
||||
@Input({ required: true }) dfgStatuses!: DfgProjectStatusStatistics;
|
||||
|
||||
private chartTheme = inject(ChartThemeService);
|
||||
options: EChartsOption = {};
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
// Re-build options when theme colors signal changes
|
||||
this.buildOptions();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnChanges(): void {
|
||||
this.buildOptions();
|
||||
}
|
||||
|
||||
private buildOptions(): void {
|
||||
const theme = this.chartTheme.colors();
|
||||
|
||||
const values = [
|
||||
{
|
||||
name: 'Laufend',
|
||||
@@ -48,17 +63,21 @@ export class EuProjectStatusChartComponent implements OnChanges {
|
||||
this.bmbfStatuses?.completed ?? 0,
|
||||
this.dfgStatuses?.completed ?? 0,
|
||||
],
|
||||
color: '#64748b',
|
||||
color: theme.mutedTextColor,
|
||||
},
|
||||
];
|
||||
|
||||
this.options = {
|
||||
color: values.map((item) => item.color),
|
||||
animationDuration: 500,
|
||||
backgroundColor: theme.backgroundColor,
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: { type: 'shadow' },
|
||||
confine: true,
|
||||
backgroundColor: theme.tooltipBg,
|
||||
borderColor: theme.tooltipBorder,
|
||||
textStyle: { color: theme.tooltipTextColor },
|
||||
valueFormatter: (value) =>
|
||||
`${Number(value ?? 0).toLocaleString('de-DE')} Projekte`,
|
||||
},
|
||||
@@ -66,7 +85,7 @@ export class EuProjectStatusChartComponent implements OnChanges {
|
||||
top: 0,
|
||||
left: 'center',
|
||||
data: values.map((item) => item.name),
|
||||
textStyle: { color: '#334155' },
|
||||
textStyle: { color: theme.textColor },
|
||||
},
|
||||
grid: { top: 56, right: 24, bottom: 30, left: 24, containLabel: true },
|
||||
xAxis: {
|
||||
@@ -75,15 +94,16 @@ export class EuProjectStatusChartComponent implements OnChanges {
|
||||
name: 'Anzahl Projekte',
|
||||
nameLocation: 'middle',
|
||||
nameGap: 28,
|
||||
axisLabel: { color: '#64748b' },
|
||||
splitLine: { lineStyle: { color: '#e2e8f0' } },
|
||||
axisLabel: { color: theme.mutedTextColor },
|
||||
nameTextStyle: { color: theme.mutedTextColor },
|
||||
splitLine: { lineStyle: { color: theme.gridLineColor } },
|
||||
},
|
||||
yAxis: {
|
||||
type: 'category',
|
||||
data: ['EU-Projekte', 'Bund-Projekte', 'DFG-Projekte'],
|
||||
axisTick: { show: false },
|
||||
axisLine: { show: false },
|
||||
axisLabel: { color: '#334155', fontWeight: 600 },
|
||||
axisLabel: { color: theme.textColor, fontWeight: 600 },
|
||||
},
|
||||
series: values.map((item, index) => ({
|
||||
name: item.name,
|
||||
@@ -96,7 +116,7 @@ export class EuProjectStatusChartComponent implements OnChanges {
|
||||
position: 'inside',
|
||||
formatter: (params) =>
|
||||
Number(params.value ?? 0) > 0 ? String(params.value) : '',
|
||||
color: '#ffffff',
|
||||
color: theme.labelColor,
|
||||
fontWeight: 700,
|
||||
},
|
||||
itemStyle: {
|
||||
|
||||
+58
-69
@@ -4,12 +4,12 @@
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
padding: 24px 28px 20px;
|
||||
border-bottom: 1px solid var(--sg-border, #dde5f2);
|
||||
background: linear-gradient(135deg, #ffffff 52%, #f6f0ff 100%);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
background: var(--sg-card-bg);
|
||||
|
||||
h2 {
|
||||
margin: 1px 0 3px;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.375rem;
|
||||
font-weight: 700;
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
.dialog-eyebrow {
|
||||
display: block;
|
||||
color: #7255d9;
|
||||
color: var(--sg-primary);
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
@@ -41,18 +41,18 @@
|
||||
|
||||
.dialog-close {
|
||||
flex: 0 0 auto;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
&:hover {
|
||||
background: #f1f3f7;
|
||||
color: var(--sg-text, #101a3d);
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
mat-dialog-content {
|
||||
min-height: 410px;
|
||||
padding: 20px 28px 28px !important;
|
||||
background: #ffffff;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.topic-context-card {
|
||||
@@ -62,9 +62,9 @@ mat-dialog-content {
|
||||
gap: 12px;
|
||||
margin-bottom: 18px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--sg-border, #dde5f2);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-surface-muted, #f7f9ff);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.topic-context-item {
|
||||
@@ -91,21 +91,21 @@ mat-dialog-content {
|
||||
}
|
||||
|
||||
.topic-context-icon--field {
|
||||
border: 1px solid #bdd4ff;
|
||||
background: #f0f6ff;
|
||||
color: #0b63ce;
|
||||
border: 1px solid var(--sg-blue-highlight);
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
.topic-context-icon--subfield {
|
||||
border: 1px solid #bdebcf;
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
border: 1px solid var(--sg-success);
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.topic-context-icon--topic {
|
||||
border: 1px solid #d8cafe;
|
||||
background: #f6f0ff;
|
||||
color: #7255d9;
|
||||
border: 1px solid var(--sg-primary);
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.topic-context-copy {
|
||||
@@ -116,7 +116,7 @@ mat-dialog-content {
|
||||
|
||||
strong {
|
||||
overflow: hidden;
|
||||
color: #334155;
|
||||
color: var(--sg-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
@@ -126,11 +126,11 @@ mat-dialog-content {
|
||||
}
|
||||
|
||||
.topic-context-item--topic strong {
|
||||
color: #7255d9;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.topic-context-label {
|
||||
color: var(--sg-text-soft, #8a95b3);
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.07em;
|
||||
@@ -141,15 +141,15 @@ mat-dialog-content {
|
||||
.topic-context-arrow {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #a8b2c8;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.word-cloud-panel {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--sg-border, #dde5f2);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
@@ -159,11 +159,11 @@ mat-dialog-content {
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 14px 18px;
|
||||
border-bottom: 1px solid #e8edf5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
|
||||
h3 {
|
||||
margin: 0 0 2px;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 700;
|
||||
@@ -171,7 +171,7 @@ mat-dialog-content {
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
@@ -179,10 +179,10 @@ mat-dialog-content {
|
||||
.word-count {
|
||||
flex: 0 0 auto;
|
||||
padding: 5px 9px;
|
||||
border: 1px solid #d8cafe;
|
||||
border: 1px solid var(--sg-primary);
|
||||
border-radius: 999px;
|
||||
background: #f6f0ff;
|
||||
color: #7255d9;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -193,20 +193,20 @@ mat-dialog-content {
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid #e8edf5;
|
||||
background: #f8faff;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.keyword-toolbar-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #334155;
|
||||
color: var(--sg-text);
|
||||
|
||||
> mat-icon {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
color: #7255d9;
|
||||
color: var(--sg-primary);
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ mat-dialog-content {
|
||||
}
|
||||
|
||||
small {
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
}
|
||||
@@ -240,10 +240,10 @@ mat-dialog-content {
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 7px 4px 9px;
|
||||
border: 1px solid #c9bafa;
|
||||
border: 1px solid var(--sg-primary);
|
||||
border-radius: 999px;
|
||||
background: #f6f0ff;
|
||||
color: #6347c8;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.6875rem;
|
||||
@@ -256,13 +256,13 @@ mat-dialog-content {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: #a992ef;
|
||||
background: #eee7ff;
|
||||
border-color: var(--sg-primary);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.keyword-selection-empty {
|
||||
color: var(--sg-text-soft, #8a95b3);
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 0.75rem;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -286,7 +286,7 @@ mat-dialog-content {
|
||||
}
|
||||
|
||||
.keyword-search--secondary {
|
||||
background: #ffffff;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.keyword-search--disabled {
|
||||
@@ -303,18 +303,7 @@ mat-dialog-content {
|
||||
justify-content: center;
|
||||
gap: 14px 20px;
|
||||
padding: 30px 34px;
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at 15% 20%,
|
||||
rgba(114, 85, 217, 0.06),
|
||||
transparent 28%
|
||||
),
|
||||
radial-gradient(
|
||||
circle at 85% 75%,
|
||||
rgba(11, 99, 206, 0.05),
|
||||
transparent 30%
|
||||
),
|
||||
#ffffff;
|
||||
background: var(--sg-card-bg);
|
||||
}
|
||||
|
||||
.word-cloud-word {
|
||||
@@ -332,20 +321,20 @@ mat-dialog-content {
|
||||
background-color 150ms ease;
|
||||
|
||||
&:hover {
|
||||
background: rgba(241, 243, 247, 0.9);
|
||||
background: var(--sg-surface-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid rgba(114, 85, 217, 0.25);
|
||||
outline: 3px solid var(--sg-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.word-cloud-word--selected {
|
||||
border-color: currentColor;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 2px 8px rgba(51, 65, 85, 0.16);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@@ -357,12 +346,12 @@ mat-dialog-content {
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 24px;
|
||||
color: var(--sg-text-muted, #64708f);
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
|
||||
strong {
|
||||
margin-top: 4px;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
@@ -377,24 +366,24 @@ mat-dialog-content {
|
||||
height: 46px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
background: #f1f3f7;
|
||||
color: #64708f;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.state-icon--loading {
|
||||
background: #f6f0ff;
|
||||
color: #7255d9;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
animation: state-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.word-cloud-state--error .state-icon {
|
||||
background: #fff1f5;
|
||||
color: #d12f61;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
@keyframes state-pulse {
|
||||
50% {
|
||||
box-shadow: 0 0 0 8px rgba(114, 85, 217, 0.08);
|
||||
box-shadow: 0 0 0 8px var(--sg-primary-soft);
|
||||
transform: scale(1.04);
|
||||
}
|
||||
}
|
||||
|
||||
+10
-10
@@ -57,16 +57,16 @@ export class TopicWordCloudDialogComponent {
|
||||
loadFailed = false;
|
||||
|
||||
private readonly colors = [
|
||||
'#2563eb',
|
||||
'#059669',
|
||||
'#d97706',
|
||||
'#dc2626',
|
||||
'#7c3aed',
|
||||
'#0284c7',
|
||||
'#ea580c',
|
||||
'#4f46e5',
|
||||
'#0f766e',
|
||||
'#be123c',
|
||||
'var(--sg-blue-highlight)',
|
||||
'var(--sg-success)',
|
||||
'var(--sg-warning)',
|
||||
'var(--sg-error)',
|
||||
'var(--sg-primary)',
|
||||
'var(--sg-blue-highlight)',
|
||||
'var(--sg-warning)',
|
||||
'var(--sg-primary-strong)',
|
||||
'var(--sg-success)',
|
||||
'var(--sg-error)',
|
||||
];
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.error-container {
|
||||
min-height: 90vh;
|
||||
background-color: none !important;
|
||||
background-color: transparent !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -11,9 +11,7 @@
|
||||
.error-card {
|
||||
max-width: 450px;
|
||||
width: 100%;
|
||||
box-shadow:
|
||||
0 4px 6px -1px rgb(0 0 0 / 0.05),
|
||||
0 2px 4px -2px rgb(0 0 0 / 0.05) !important;
|
||||
box-shadow: var(--sg-shadow-sm) !important;
|
||||
}
|
||||
|
||||
.error-content {
|
||||
@@ -33,7 +31,7 @@
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@@ -41,7 +39,7 @@
|
||||
margin: 0.5rem 0 1rem 0;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
color: var(--sg-text);
|
||||
letter-spacing: -0.025em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
@@ -49,7 +47,7 @@
|
||||
.error-message {
|
||||
margin: 0 0 2rem 0;
|
||||
font-size: 1rem;
|
||||
color: #475569;
|
||||
color: var(--sg-text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@@ -68,17 +66,18 @@
|
||||
.diagnostics-title {
|
||||
font-size: 0.75rem !important;
|
||||
font-weight: 600;
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-muted);
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.diagnostics-code {
|
||||
margin-top: 0.5rem;
|
||||
padding: 1rem;
|
||||
background-color: #0f172a;
|
||||
background-color: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
font-size: 0.75rem;
|
||||
color: #34d399;
|
||||
color: var(--sg-success);
|
||||
overflow-x: auto;
|
||||
font-family: monospace;
|
||||
text-align: left;
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<span class="material-icons" aria-hidden="true">chevron_right</span>
|
||||
<mat-icon aria-hidden="true">chevron_right</mat-icon>
|
||||
</button>
|
||||
<p class="patent-detail-hint">
|
||||
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
.message {
|
||||
padding: 16px;
|
||||
color: #666;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
&.message-hint {
|
||||
padding-top: 0;
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
code {
|
||||
display: inline-block;
|
||||
margin-top: 6px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
@@ -80,10 +80,11 @@ app-query-param-paginator {
|
||||
|
||||
tr {
|
||||
cursor: pointer;
|
||||
color: var(--sg-text);
|
||||
transition: background-color 0.15s ease;
|
||||
|
||||
&:hover td {
|
||||
background: rgba(16, 26, 61, 0.04);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&.selected td {
|
||||
@@ -139,26 +140,26 @@ app-query-param-paginator {
|
||||
font-weight: 700;
|
||||
|
||||
&--institution {
|
||||
background: #f5f3ff;
|
||||
color: #6d28d9;
|
||||
border: 1px solid #ddd6fe;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
&--name {
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
border: 1px solid #fed7aa;
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
&--both {
|
||||
background: #ecfdf5;
|
||||
color: #047857;
|
||||
border: 1px solid #a7f3d0;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
.author-link {
|
||||
color: #2563eb;
|
||||
color: var(--sg-blue-highlight);
|
||||
text-decoration: none;
|
||||
font-size: 0.82rem;
|
||||
|
||||
@@ -176,15 +177,15 @@ app-query-param-paginator {
|
||||
font-weight: 700;
|
||||
|
||||
&--epo {
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
border: 1px solid #bdebcf;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
&--uspto {
|
||||
background: #f0f6ff;
|
||||
color: #0b63ce;
|
||||
border: 1px solid #bdd4ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -253,28 +254,28 @@ app-query-param-paginator {
|
||||
&--total {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #0b63ce;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
|
||||
&--institution {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #6d28d9;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
}
|
||||
|
||||
&--name {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #c2410c;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
&--both {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #047857;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -340,10 +341,10 @@ app-query-param-paginator {
|
||||
width: 100%;
|
||||
margin-top: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #bdd4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
|
||||
color: #0b63ce;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
@@ -353,9 +354,9 @@ app-query-param-paginator {
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #0b63ce;
|
||||
background: #f0f6ff;
|
||||
box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-primary-soft);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
@@ -367,16 +368,123 @@ app-query-param-paginator {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.patent-full-detail {
|
||||
flex: 1;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 20px;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
h3 {
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 16px;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 16px 0 8px 0;
|
||||
font-size: 14px;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 13px;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
width: auto;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background-color 0.15s ease,
|
||||
border-color 0.15s ease,
|
||||
color 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
color: var(--sg-blue-highlight);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--sg-blue-highlight);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-section {
|
||||
margin-top: 12px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.patent-meta {
|
||||
&--inline {
|
||||
margin: 12px 0 20px;
|
||||
}
|
||||
|
||||
&__list {
|
||||
margin: 0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-surface);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(130px, 38%) 1fr;
|
||||
gap: 12px 16px;
|
||||
align-items: center;
|
||||
padding: 11px 16px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--sg-text-muted);
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.35;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -394,10 +502,163 @@ app-query-param-paginator {
|
||||
.tag {
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: #f0f6ff;
|
||||
border: 1px solid #dbeafe;
|
||||
color: #1e40af;
|
||||
background: var(--sg-primary-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.classification-section {
|
||||
&--ipc .classification-card {
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-border);
|
||||
}
|
||||
|
||||
&--ipc .classification-badge--system {
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--cpc .classification-card {
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--cpc .classification-badge--system {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
.classification-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.classification-card {
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-card__header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.classification-card__codes {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.classification-card__badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.classification-code {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.classification-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.classification-badge--level {
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.classification-summary {
|
||||
margin: 10px 0 0;
|
||||
font-size: 0.84rem;
|
||||
line-height: 1.5;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.classification-toggle {
|
||||
margin-top: 6px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.78rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.classification-hierarchy {
|
||||
margin: 10px 0 0;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-hierarchy__row {
|
||||
display: grid;
|
||||
grid-template-columns: 88px 1fr;
|
||||
gap: 8px;
|
||||
margin-bottom: 6px;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.45;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
|
||||
button {
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.no-logs {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -8,15 +8,15 @@
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 120px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.logs-error {
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
border-radius: 6px;
|
||||
background: #fef2f2;
|
||||
color: #991b1b;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.logs-header {
|
||||
@@ -32,7 +32,7 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.logs-actions {
|
||||
@@ -54,28 +54,29 @@
|
||||
}
|
||||
|
||||
&--success {
|
||||
color: #166534;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--failed {
|
||||
color: #991b1b;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
&--running {
|
||||
color: #92400e;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&--stopped {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
&--idle {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
.logs-panel {
|
||||
background: #0f172a;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
padding: 12px 14px;
|
||||
min-width: 520px;
|
||||
@@ -83,32 +84,10 @@
|
||||
min-height: 120px;
|
||||
max-height: 55vh;
|
||||
overflow: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #64748b #1e293b;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #1e293b;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #64748b;
|
||||
border-radius: 6px;
|
||||
border: 3px solid #0f172a;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb:hover {
|
||||
background: #94a3b8;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
color: #e2e8f0;
|
||||
color: var(--sg-text);
|
||||
font-family: 'Roboto Mono', ui-monospace, monospace;
|
||||
font-size: 12px;
|
||||
white-space: pre-wrap;
|
||||
@@ -116,7 +95,7 @@
|
||||
}
|
||||
|
||||
.logs-loading {
|
||||
color: #cbd5e1;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +103,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -134,13 +113,13 @@
|
||||
}
|
||||
|
||||
.logs-hint {
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.run-duration {
|
||||
font-size: 13px;
|
||||
color: #475569;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
h1,
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
@@ -28,7 +29,7 @@ p {
|
||||
}
|
||||
|
||||
.page-header p {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
@@ -45,6 +46,8 @@ mat-paginator {
|
||||
.health-card {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.health-content {
|
||||
@@ -69,21 +72,21 @@ mat-paginator {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #94a3b8;
|
||||
background: var(--sg-text-soft);
|
||||
flex-shrink: 0;
|
||||
|
||||
&--ok {
|
||||
background: #16a34a;
|
||||
background: var(--sg-success);
|
||||
}
|
||||
|
||||
&--error {
|
||||
background: #dc2626;
|
||||
background: var(--sg-error);
|
||||
}
|
||||
}
|
||||
|
||||
.health-detail {
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.health-title {
|
||||
@@ -95,7 +98,7 @@ mat-paginator {
|
||||
|
||||
.health-host {
|
||||
font-size: 11px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
@@ -151,7 +154,7 @@ mat-paginator {
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s ease;
|
||||
|
||||
@@ -170,19 +173,19 @@ mat-paginator {
|
||||
|
||||
.edit-name-action[disabled] {
|
||||
cursor: not-allowed;
|
||||
color: #cbd5e1;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.task-description {
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.task-index {
|
||||
width: fit-content;
|
||||
font-size: 11px;
|
||||
color: #475569;
|
||||
background: #f1f5f9;
|
||||
color: var(--sg-text);
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 4px;
|
||||
padding: 1px 6px;
|
||||
}
|
||||
@@ -200,12 +203,12 @@ mat-paginator {
|
||||
font-family:
|
||||
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
color: #334155;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.next-run {
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.enabled-badge {
|
||||
@@ -214,12 +217,12 @@ mat-paginator {
|
||||
font-weight: 700;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
background: #e2e8f0;
|
||||
color: #64748b;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
&--on {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,23 +240,23 @@ mat-paginator {
|
||||
}
|
||||
|
||||
&--success {
|
||||
color: #166534;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--failed {
|
||||
color: #991b1b;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
&--running {
|
||||
color: #92400e;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&--stopped {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
&--idle {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,12 +271,12 @@ mat-paginator {
|
||||
|
||||
.last-run-message {
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.last-run-empty {
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
@@ -282,7 +285,7 @@ mat-paginator {
|
||||
}
|
||||
|
||||
.delete-action:not(:disabled) {
|
||||
color: #b91c1c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.actions-header {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-width: 400px;
|
||||
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
@@ -22,24 +21,24 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.field-hint {
|
||||
margin: -6px 0 0;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.field-info {
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.server-error {
|
||||
margin: 8px 0 0;
|
||||
color: #b3261e;
|
||||
color: var(--sg-error);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-width: 400px;
|
||||
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
@@ -19,13 +18,13 @@
|
||||
}
|
||||
|
||||
.field-info {
|
||||
color: #94a3b8;
|
||||
color: var(--sg-text-muted);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.server-error {
|
||||
margin: 8px 0 0;
|
||||
color: #b3261e;
|
||||
color: var(--sg-error);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
.task-description {
|
||||
margin: 0 0 16px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.schedule-form {
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
.field-hint {
|
||||
margin: -6px 0 0;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
width: 36px;
|
||||
height: 20px;
|
||||
border-radius: 999px;
|
||||
background: #cbd5e1;
|
||||
background: var(--sg-border-strong);
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
|
||||
@@ -55,13 +55,13 @@
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1px 2px rgba(16, 26, 61, 0.3);
|
||||
background: var(--sg-color-mix-base);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.enabled-toggle--on .enabled-toggle__track {
|
||||
background: #2259a8;
|
||||
background: var(--sg-primary);
|
||||
}
|
||||
|
||||
.enabled-toggle--on .enabled-toggle__thumb {
|
||||
@@ -70,11 +70,11 @@
|
||||
|
||||
.enabled-toggle__label {
|
||||
font-size: 14px;
|
||||
color: var(--sg-text, #101a3d);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.enabled-toggle:focus-visible {
|
||||
outline: 2px solid #2259a8;
|
||||
outline: 2px solid var(--sg-primary);
|
||||
outline-offset: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
@@ -82,7 +82,7 @@
|
||||
.next-run-hint {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<span class="material-icons" aria-hidden="true">chevron_right</span>
|
||||
<mat-icon aria-hidden="true">chevron_right</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
|
||||
+27
-19
@@ -1,28 +1,30 @@
|
||||
.message {
|
||||
padding: 16px;
|
||||
color: #666;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.fallback-notice {
|
||||
margin: 0 0 12px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: #f4f7fb;
|
||||
color: #3d4f63;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.patents-container {
|
||||
margin-top: 0;
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.patents-header {
|
||||
@@ -54,12 +56,14 @@
|
||||
gap: 6px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 20px;
|
||||
background: #f2f2f2;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
|
||||
select {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--sg-text);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -82,24 +86,26 @@
|
||||
th {
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 2px solid #e0e0e0;
|
||||
border-bottom: 2px solid var(--sg-border);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
tr {
|
||||
cursor: pointer;
|
||||
color: var(--sg-text);
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background: #f0f0f0;
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,13 +121,13 @@
|
||||
font-weight: 600;
|
||||
|
||||
&--epo {
|
||||
background: #dbeafe;
|
||||
color: #1e40af;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--uspto {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +142,8 @@
|
||||
flex: 0 0 320px;
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.detail-stats {
|
||||
@@ -147,19 +154,20 @@
|
||||
|
||||
.match-score {
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #374151;
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
display: block;
|
||||
word-break: break-word;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.patent-detail-action {
|
||||
@@ -171,8 +179,8 @@
|
||||
padding: 10px 12px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: #111827;
|
||||
color: #fff;
|
||||
background: var(--sg-primary);
|
||||
color: var(--sg-card-bg);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,12 +48,12 @@ $touch-target: 44px;
|
||||
.keywords-toolbar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--sg-background-muted, #f4f5f7);
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
::ng-deep app-topic-legend .topic-legend {
|
||||
width: 100%;
|
||||
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
border: 1px solid var(--sg-border);
|
||||
border-bottom: none;
|
||||
border-radius: 4px;
|
||||
margin: 0;
|
||||
@@ -65,17 +65,16 @@ $touch-target: 44px;
|
||||
justify-content: space-around;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background: var(--sg-background-muted, #f4f5f7);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
.toolbar-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 3fr 1.3fr;
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
border: 1px solid var(--sg-border);
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.toolbar-controls--placeholder {
|
||||
/* invisible spacer, preserves grid column width/position */
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -109,7 +108,7 @@ $touch-target: 44px;
|
||||
}
|
||||
|
||||
.toolbar-controls--placeholder {
|
||||
display: none; /* no need for a spacer once stacked */
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +116,7 @@ $touch-target: 44px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: nowrap; /* fixed: was invalid "no-wrap" */
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@@ -141,7 +140,7 @@ $touch-target: 44px;
|
||||
.toolbar-divider {
|
||||
width: 1px;
|
||||
align-self: stretch;
|
||||
background: var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-border);
|
||||
}
|
||||
|
||||
mat-button-toggle-group {
|
||||
@@ -214,7 +213,7 @@ mat-button-toggle-group {
|
||||
|
||||
.keyword-card {
|
||||
padding: 0 !important;
|
||||
background: var(--sg-background-muted, #f4f5f7);
|
||||
background: var(--sg-surface-muted);
|
||||
.mat-card-header {
|
||||
padding: 0 0 0.5rem 0;
|
||||
}
|
||||
@@ -233,14 +232,14 @@ mat-button-toggle-group {
|
||||
}
|
||||
|
||||
.table-head {
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
border: 1px solid var(--sg-border);
|
||||
padding-top: 0.5rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr) 1.3fr;
|
||||
column-gap: 1rem;
|
||||
border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
padding-bottom: 0.5rem;
|
||||
background: var(--sg-background-muted, #f4f5f7);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.head-cell {
|
||||
@@ -250,7 +249,7 @@ mat-button-toggle-group {
|
||||
|
||||
.sub-cell {
|
||||
font-weight: 500;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: clamp(0.8rem, 1.2vw, 1rem);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
@@ -265,7 +264,6 @@ mat-button-toggle-group {
|
||||
column-gap: 1rem;
|
||||
row-gap: 0.4rem;
|
||||
align-items: start;
|
||||
//border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
}
|
||||
|
||||
.table-col {
|
||||
@@ -274,7 +272,7 @@ mat-button-toggle-group {
|
||||
min-width: 0;
|
||||
padding: 0.5rem;
|
||||
height: 100%;
|
||||
border-right: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8));
|
||||
border-right: 1px solid var(--sg-border);
|
||||
|
||||
&:last-child {
|
||||
border-right: none;
|
||||
@@ -295,7 +293,7 @@ mat-button-toggle-group {
|
||||
}
|
||||
|
||||
.thick-border {
|
||||
border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.08)) !important;
|
||||
border-right: 5px solid var(--sg-border) !important;
|
||||
}
|
||||
|
||||
@container keyword-tool (max-width: #{$tablet}) {
|
||||
@@ -329,8 +327,8 @@ mat-button-toggle-group {
|
||||
margin-left: 0.35rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text-secondary);
|
||||
background: var(--sg-background-muted, #eceff1);
|
||||
color: var(--sg-text-muted);
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 10px;
|
||||
padding: 0 6px;
|
||||
min-width: 18px;
|
||||
@@ -431,7 +429,7 @@ mat-button-toggle-group {
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.35rem 0;
|
||||
@@ -490,10 +488,10 @@ mat-button-toggle-group {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 5;
|
||||
background: var(--sg-background, #fff);
|
||||
background: var(--sg-background);
|
||||
padding: 0.75rem 0.5rem;
|
||||
margin-top: 0.75rem;
|
||||
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
}
|
||||
|
||||
.search-actions {
|
||||
@@ -567,9 +565,8 @@ mat-button-toggle-group {
|
||||
============================================================ */
|
||||
.source-expansion {
|
||||
margin: 0.5rem 1rem;
|
||||
background: var(--sg-background-muted, #f5f5f5);
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 4px;
|
||||
//border-left: 4px solid var(--sg-primary, #1976d2);
|
||||
|
||||
.mat-expansion-panel-header {
|
||||
padding: 0.5rem 0.75rem;
|
||||
@@ -577,7 +574,7 @@ mat-button-toggle-group {
|
||||
min-height: 36px;
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
letter-spacing: 0.05em;
|
||||
|
||||
.mat-expansion-panel-header-title {
|
||||
@@ -594,7 +591,7 @@ mat-button-toggle-group {
|
||||
::ng-deep .mat-expansion-panel-content {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
color: var(--sg-text-primary);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
::ng-deep .mat-expansion-panel-body {
|
||||
@@ -611,7 +608,7 @@ mat-button-toggle-group {
|
||||
}
|
||||
|
||||
::ng-deep .mat-expansion-panel-header:hover {
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -640,7 +637,7 @@ mat-button-toggle-group {
|
||||
90deg,
|
||||
transparent 0%,
|
||||
transparent 35%,
|
||||
#2196f3 50%,
|
||||
var(--sg-primary) 50%,
|
||||
transparent 65%,
|
||||
transparent 100%
|
||||
);
|
||||
@@ -649,8 +646,8 @@ mat-button-toggle-group {
|
||||
animation: border-loading 1.5s linear infinite;
|
||||
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
linear-gradient(var(--sg-color-mix-base) 0 0) content-box,
|
||||
linear-gradient(var(--sg-color-mix-base) 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
|
||||
@@ -661,7 +658,7 @@ mat-button-toggle-group {
|
||||
align-self: center;
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -688,6 +685,6 @@ mat-button-toggle-group {
|
||||
button:focus-visible,
|
||||
.mat-button-toggle:focus-visible,
|
||||
::ng-deep .mat-mdc-tab:focus-visible {
|
||||
outline: 2px solid var(--sg-primary, #1976d2);
|
||||
outline: 2px solid var(--sg-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ export class KeywordsSearchComponent {
|
||||
|
||||
const regex = new RegExp(escapedRegexKeyword, 'gi');
|
||||
|
||||
const replacement = `<span style="text-decoration: underline; background-color: color-mix(in srgb, ${color} 27%, #ffffff); font-weight: bold;" title="Keyword: ${escapedKeyword}">${escapedKeyword}</span>`;
|
||||
const replacement = `<span style="text-decoration: underline; background-color: color-mix(in srgb, ${color} 27%, var(--sg-color-mix-base)); font-weight: bold;" title="Keyword: ${escapedKeyword}">${escapedKeyword}</span>`;
|
||||
|
||||
highlightedContent = highlightedContent.replace(regex, replacement);
|
||||
}
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@
|
||||
|
||||
.search-summary-card,
|
||||
.results-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@
|
||||
}
|
||||
|
||||
.weights-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
|
||||
+13
-13
@@ -28,8 +28,8 @@
|
||||
|
||||
.search-summary-card,
|
||||
.results-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
@@ -56,7 +56,7 @@
|
||||
}
|
||||
|
||||
.selected-hint {
|
||||
color: var(--sg-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -65,14 +65,14 @@
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.25rem;
|
||||
border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08));
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.author-name {
|
||||
flex: 1;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
color: var(--sg-primary, #1565c0);
|
||||
color: var(--sg-primary);
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
.author-score {
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
color: var(--sg-text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -95,9 +95,9 @@
|
||||
::ng-deep .filter-section {
|
||||
margin-top: 0.75rem;
|
||||
padding: 0.5rem 0.6rem 0.6rem;
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface-variant, rgba(0, 0, 0, 0.015));
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.filter-section-header {
|
||||
@@ -111,7 +111,7 @@
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 650;
|
||||
color: var(--sg-text-primary);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
button {
|
||||
@@ -126,7 +126,7 @@
|
||||
::ng-deep .filter-section .filter-row + .filter-row {
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
border-top: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08));
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
::ng-deep .company-filter-row {
|
||||
@@ -139,7 +139,7 @@
|
||||
::ng-deep .timespan-range-label {
|
||||
justify-content: center !important;
|
||||
font-weight: 500;
|
||||
color: var(--sg-text-primary) !important;
|
||||
color: var(--sg-text) !important;
|
||||
}
|
||||
|
||||
::ng-deep .timespan-slider {
|
||||
@@ -153,6 +153,6 @@
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
background: white;
|
||||
border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,10 @@
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<nav mat-tab-nav-bar [tabPanel]="resultTabPanel" class="result-nav">
|
||||
<nav
|
||||
mat-tab-nav-bar
|
||||
[tabPanel]="resultTabPanel"
|
||||
class="result-nav sg-tab-nav">
|
||||
@for (route of childRoutes; track route.path) {
|
||||
<a
|
||||
mat-tab-link
|
||||
|
||||
+13
-46
@@ -24,12 +24,12 @@ $touch-target: 44px;
|
||||
margin: 0;
|
||||
font-size: clamp(1.2rem, 2vw, 1.6rem);
|
||||
font-weight: 650;
|
||||
color: var(--sg-text-primary);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.2rem 0 0;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
@@ -38,8 +38,8 @@ $touch-target: 44px;
|
||||
KEYWORD SUMMARY CARD
|
||||
============================================================ */
|
||||
.summary-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
@@ -61,7 +61,7 @@ $touch-target: 44px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.summary-count {
|
||||
@@ -69,7 +69,7 @@ $touch-target: 44px;
|
||||
margin-top: 0.15rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 650;
|
||||
color: var(--sg-text-primary);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.mode-badge {
|
||||
@@ -78,8 +78,8 @@ $touch-target: 44px;
|
||||
gap: 0.25rem;
|
||||
border-radius: 999px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--sg-background-muted, #f4f5f7);
|
||||
color: var(--sg-text-secondary);
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
|
||||
@@ -105,48 +105,15 @@ $touch-target: 44px;
|
||||
CHILD ROUTE NAV
|
||||
============================================================ */
|
||||
.result-nav {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
}
|
||||
|
||||
.result-nav__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border-radius: 6px 6px 0 0;
|
||||
color: var(--sg-text-secondary);
|
||||
text-decoration: none;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
border-color 0.15s ease;
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--sg-text-primary);
|
||||
}
|
||||
|
||||
&--active {
|
||||
color: var(--sg-text-primary);
|
||||
border-bottom-color: var(--sg-primary, currentColor);
|
||||
}
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
EMPTY STATE
|
||||
============================================================ */
|
||||
.empty-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@@ -158,7 +125,7 @@ $touch-target: 44px;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
text-align: center;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
mat-icon {
|
||||
font-size: 48px;
|
||||
@@ -169,7 +136,7 @@ $touch-target: 44px;
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
color: var(--sg-text-primary);
|
||||
color: var(--sg-text);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -26,7 +26,7 @@
|
||||
|
||||
.filter-prefix-icon {
|
||||
margin-right: 0.25rem;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.select-search {
|
||||
@@ -34,10 +34,10 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
|
||||
&__icon {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
&__input {
|
||||
@@ -46,11 +46,12 @@
|
||||
outline: none;
|
||||
font: inherit;
|
||||
background: transparent;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&__empty {
|
||||
padding: 0.5rem 0.75rem;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
@@ -69,10 +70,9 @@
|
||||
}
|
||||
|
||||
.results-card {
|
||||
background: var(--sg-surface, #ffffff);
|
||||
border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12));
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: none;
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,21 +104,21 @@ main {
|
||||
}
|
||||
|
||||
&.is-relevant {
|
||||
background: #effaf3;
|
||||
border: 1px solid #bdebcf;
|
||||
color: #24834f;
|
||||
background: var(--sg-success-soft);
|
||||
border: 1px solid var(--sg-success);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&.not-relevant {
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid #e2e2e2;
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
&.undetermined {
|
||||
background: #fff7e8;
|
||||
border: 1px solid #ffd796;
|
||||
color: #c67500;
|
||||
background: var(--sg-warning-soft);
|
||||
border: 1px solid var(--sg-warning);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,10 +157,10 @@ main {
|
||||
}
|
||||
|
||||
.sidebar-card {
|
||||
border: 1px solid #d7e4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ main {
|
||||
transition: background 0.12s;
|
||||
|
||||
&:hover {
|
||||
background: #f6f9ff;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
@@ -205,8 +205,8 @@ main {
|
||||
.count-badge {
|
||||
padding: 2px 7px;
|
||||
border-radius: 999px;
|
||||
background: #e8effe;
|
||||
color: #3b5bd6;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -264,12 +264,12 @@ main {
|
||||
}
|
||||
|
||||
.person-item.is-link:hover {
|
||||
background: #e5ecfb;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
.person-item.is-muted {
|
||||
.avatar {
|
||||
background: #ececef;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@@ -282,9 +282,9 @@ main {
|
||||
justify-self: end;
|
||||
padding: 3px 9px;
|
||||
border-radius: 999px;
|
||||
background: #effaf3;
|
||||
border: 1px solid #bdebcf;
|
||||
color: #24834f;
|
||||
background: var(--sg-success-soft);
|
||||
border: 1px solid var(--sg-success);
|
||||
color: var(--sg-success);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
@@ -296,7 +296,7 @@ main {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
background: #e5ecfb;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
@@ -329,7 +329,7 @@ main {
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 1px solid #d7e4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
@@ -337,7 +337,7 @@ main {
|
||||
transition: background 0.12s;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: #f0f6ff;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ main {
|
||||
.topic-item {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
border: 1.5px solid color-mix(in srgb, var(--t) 38%, #ffffff);
|
||||
border: 1.5px solid color-mix(in srgb, var(--t) 38%, var(--sg-color-mix-base));
|
||||
}
|
||||
|
||||
.topic-item-header {
|
||||
@@ -380,8 +380,8 @@ main {
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 11px 14px;
|
||||
background: color-mix(in srgb, var(--t) 13%, #ffffff);
|
||||
color: color-mix(in srgb, var(--t) 90%, #0f172a);
|
||||
background: color-mix(in srgb, var(--t) 13%, var(--sg-color-mix-base));
|
||||
color: color-mix(in srgb, var(--t) 90%, var(--sg-text));
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
@@ -391,15 +391,15 @@ main {
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: color-mix(in srgb, var(--t) 22%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 22%, var(--sg-color-mix-base));
|
||||
}
|
||||
|
||||
&.is-expanded {
|
||||
background: var(--t);
|
||||
color: #ffffff;
|
||||
color: var(--sg-color-mix-base);
|
||||
|
||||
mat-icon {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
color: color-mix(in srgb, var(--sg-color-mix-base) 85%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,7 +408,7 @@ main {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex-shrink: 0;
|
||||
color: color-mix(in srgb, var(--t) 70%, #0f172a);
|
||||
color: color-mix(in srgb, var(--t) 70%, var(--sg-text));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -423,11 +423,11 @@ main {
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 14px 14px 14px;
|
||||
background: #ffffff;
|
||||
background: var(--sg-card-bg);
|
||||
|
||||
.analyse-btn {
|
||||
position: absolute;
|
||||
color: color-mix(in srgb, var(--t) 90%, #0f172a);
|
||||
color: color-mix(in srgb, var(--t) 90%, var(--sg-text));
|
||||
font-size: 18px;
|
||||
top: 0.1em;
|
||||
right: 0.1em;
|
||||
@@ -447,16 +447,16 @@ main {
|
||||
width: 100%;
|
||||
padding: 6px 14px;
|
||||
border-radius: 999px;
|
||||
border: 1.5px solid color-mix(in srgb, var(--t) 50%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 10%, #ffffff);
|
||||
color: color-mix(in srgb, var(--t) 90%, #0f172a);
|
||||
border: 1.5px solid color-mix(in srgb, var(--t) 50%, var(--sg-color-mix-base));
|
||||
background: color-mix(in srgb, var(--t) 10%, var(--sg-color-mix-base));
|
||||
color: color-mix(in srgb, var(--t) 90%, var(--sg-text));
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.12s;
|
||||
|
||||
&:hover {
|
||||
background: color-mix(in srgb, var(--t) 22%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 22%, var(--sg-color-mix-base));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -522,43 +522,79 @@ main {
|
||||
}
|
||||
|
||||
.purple {
|
||||
--topic-border: #d8cafe;
|
||||
--topic-bg: #f6f0ff;
|
||||
--topic-color: #7255d9;
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
var(--sg-primary) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-bg: color-mix(
|
||||
in srgb,
|
||||
var(--sg-primary) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.blue {
|
||||
--topic-border: #bdd4ff;
|
||||
--topic-bg: #f0f6ff;
|
||||
--topic-color: #0b63ce;
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
var(--sg-blue-highlight) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-bg: color-mix(
|
||||
in srgb,
|
||||
var(--sg-blue-highlight) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
.green {
|
||||
--topic-border: #bdebcf;
|
||||
--topic-bg: #effaf3;
|
||||
--topic-color: #24834f;
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
var(--sg-success) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-bg: color-mix(
|
||||
in srgb,
|
||||
var(--sg-success) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-color: var(--sg-success);
|
||||
}
|
||||
|
||||
.orange {
|
||||
--topic-border: #ffd796;
|
||||
--topic-bg: #fff7e8;
|
||||
--topic-color: #c67500;
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
var(--sg-warning) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-bg: color-mix(
|
||||
in srgb,
|
||||
var(--sg-warning) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-color: var(--sg-warning);
|
||||
}
|
||||
|
||||
.pink {
|
||||
--topic-border: #ffc7d7;
|
||||
--topic-bg: #fff1f5;
|
||||
--topic-color: #d12f61;
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
var(--sg-error) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-bg: color-mix(in srgb, var(--sg-error) 8%, var(--sg-color-mix-base));
|
||||
--topic-color: var(--sg-error);
|
||||
}
|
||||
|
||||
// ── Keyword highlights in article text ───────────────────────────────────────
|
||||
|
||||
@keyframes kw-flash {
|
||||
0% {
|
||||
background: color-mix(in srgb, var(--t) 45%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 45%, var(--sg-color-mix-base));
|
||||
}
|
||||
40% {
|
||||
background: color-mix(in srgb, var(--t) 45%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 45%, var(--sg-color-mix-base));
|
||||
}
|
||||
100% {
|
||||
background: transparent;
|
||||
@@ -579,7 +615,7 @@ main {
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: color-mix(in srgb, var(--t) 15%, #ffffff);
|
||||
background: color-mix(in srgb, var(--t) 15%, var(--sg-color-mix-base));
|
||||
}
|
||||
|
||||
&.kw-flash {
|
||||
|
||||
@@ -201,11 +201,11 @@ export class NewsDetailComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
const orphanColors = [
|
||||
'#7255d9',
|
||||
'#0b63ce',
|
||||
'#24834f',
|
||||
'#c67500',
|
||||
'#d12f61',
|
||||
'var(--sg-primary)',
|
||||
'var(--sg-blue-highlight)',
|
||||
'var(--sg-success)',
|
||||
'var(--sg-warning)',
|
||||
'var(--sg-error)',
|
||||
];
|
||||
let orphanIdx = 0;
|
||||
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
|
||||
::ng-deep .snippet em {
|
||||
font-style: normal;
|
||||
background: #fff48d;
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
padding: 0 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
@@ -93,10 +94,10 @@
|
||||
min-width: 132px;
|
||||
height: 42px;
|
||||
padding: 0 14px;
|
||||
border-color: #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
|
||||
mat-icon {
|
||||
margin-right: 6px;
|
||||
|
||||
@@ -15,11 +15,12 @@
|
||||
h1,
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.page-header p,
|
||||
.table-header span {
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.page-header p {
|
||||
@@ -32,15 +33,15 @@ p {
|
||||
min-height: 24px;
|
||||
border-radius: 999px;
|
||||
padding: 2px 10px;
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status--deleted {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
@@ -37,13 +37,7 @@
|
||||
padding: 38px 42px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-lg);
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at 90% 10%,
|
||||
rgba(200, 217, 255, 0.75),
|
||||
transparent 35%
|
||||
),
|
||||
linear-gradient(140deg, #fff 0%, #f8faff 100%);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
@@ -59,7 +53,7 @@
|
||||
padding: 5px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
@@ -71,6 +65,7 @@ h1 {
|
||||
margin: 20px 0 13px;
|
||||
font-size: clamp(27px, 3vw, 42px);
|
||||
line-height: 1.13;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.meta-line {
|
||||
@@ -93,7 +88,7 @@ h1 {
|
||||
padding: 9px 16px;
|
||||
border: 1px solid var(--sg-border-strong);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
@@ -102,7 +97,7 @@ h1 {
|
||||
.hero-actions a.primary-action {
|
||||
border-color: var(--sg-primary);
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.hero-actions mat-icon {
|
||||
@@ -116,9 +111,9 @@ h1 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
align-self: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(199, 211, 232, 0.8);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-md);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.metrics div {
|
||||
@@ -185,6 +180,7 @@ aside {
|
||||
.section-title h2 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.section-title span {
|
||||
@@ -313,13 +309,13 @@ dd {
|
||||
}
|
||||
|
||||
.source-badge--epo {
|
||||
background: #e8f7ee;
|
||||
color: #1f7a43;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.source-badge--uspto {
|
||||
background: #eef3ff;
|
||||
color: #1f4fbf;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
.classification-cards {
|
||||
@@ -335,11 +331,11 @@ dd {
|
||||
}
|
||||
|
||||
.classification-card-section--ipc .classification-card {
|
||||
background: #f4f8ff;
|
||||
background: var(--sg-primary-soft);
|
||||
}
|
||||
|
||||
.classification-card-section--cpc .classification-card {
|
||||
background: #f3fbf5;
|
||||
background: var(--sg-success-soft);
|
||||
}
|
||||
|
||||
.classification-card__header {
|
||||
@@ -359,7 +355,7 @@ dd {
|
||||
.classification-code {
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
@@ -380,12 +376,12 @@ dd {
|
||||
}
|
||||
|
||||
.classification-badge--system {
|
||||
background: #e8eef8;
|
||||
color: #35507a;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
.classification-badge--level {
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@@ -415,7 +411,7 @@ dd {
|
||||
grid-template-columns: 90px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
padding: 6px 0;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-hierarchy__row dt {
|
||||
|
||||
@@ -10,6 +10,7 @@ h1 {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
padding: 1rem 0 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.search-and-filter {
|
||||
@@ -34,9 +35,9 @@ h1 {
|
||||
.year-filter {
|
||||
width: min(285px, 100%);
|
||||
padding: 5px 10px;
|
||||
border: 1px solid #dbe5f6;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: #fbfdff;
|
||||
background: var(--sg-surface-muted);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -49,7 +50,7 @@ h1 {
|
||||
}
|
||||
|
||||
.year-filter-label {
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -57,20 +58,20 @@ h1 {
|
||||
.reset-range-button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #0057ff;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font-family: inherit;
|
||||
|
||||
&:disabled {
|
||||
color: #9aa5bc;
|
||||
color: var(--sg-text-soft);
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.year-filter-values {
|
||||
color: #40506f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
@@ -80,14 +81,14 @@ h1 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 0;
|
||||
color: #7c88a3;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.year-range-slider {
|
||||
--range-start: 0%;
|
||||
--range-end: 100%;
|
||||
--accent: #0057ff;
|
||||
--accent: var(--sg-blue-highlight);
|
||||
|
||||
position: relative;
|
||||
height: 16px;
|
||||
@@ -103,12 +104,12 @@ h1 {
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
#d8e2f4 0%,
|
||||
#d8e2f4 var(--range-start),
|
||||
var(--sg-border) 0%,
|
||||
var(--sg-border) var(--range-start),
|
||||
var(--accent) var(--range-start),
|
||||
var(--accent) var(--range-end),
|
||||
#d8e2f4 var(--range-end),
|
||||
#d8e2f4 100%
|
||||
var(--sg-border) var(--range-end),
|
||||
var(--sg-border) 100%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -134,12 +135,10 @@ h1 {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
margin-top: -5px;
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: #0057ff;
|
||||
box-shadow:
|
||||
0 0 0 1px #9ab7ff,
|
||||
0 2px 6px rgba(0, 87, 255, 0.22);
|
||||
background: var(--sg-blue-highlight);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
@@ -147,12 +146,10 @@ h1 {
|
||||
&::-moz-range-thumb {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: #0057ff;
|
||||
box-shadow:
|
||||
0 0 0 1px #9ab7ff,
|
||||
0 2px 6px rgba(0, 87, 255, 0.22);
|
||||
background: var(--sg-blue-highlight);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
@@ -170,11 +167,11 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 24px 1rem;
|
||||
color: #666;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
|
||||
&.error {
|
||||
color: #c0392b;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +200,8 @@ mat-paginator {
|
||||
|
||||
.card {
|
||||
padding: 0.5rem;
|
||||
background-color: var(--sg-background);
|
||||
background-color: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
transition: transform 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -211,13 +209,14 @@ mat-paginator {
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
mat-card-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -234,7 +233,7 @@ mat-paginator {
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
mat-card-actions {
|
||||
@@ -258,21 +257,21 @@ mat-card-actions {
|
||||
font-weight: 700;
|
||||
|
||||
&--epo {
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
border: 1px solid #bdebcf;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
border: 1px solid var(--sg-success);
|
||||
}
|
||||
&--uspto {
|
||||
background: #f0f6ff;
|
||||
color: #0b63ce;
|
||||
border: 1px solid #bdd4ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
.no-results {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.detail-view {
|
||||
@@ -281,18 +280,18 @@ mat-card-actions {
|
||||
h2 {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 1.4rem;
|
||||
color: #333;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.4;
|
||||
}
|
||||
h4 {
|
||||
margin: 16px 0 8px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
p {
|
||||
font-size: 13px;
|
||||
color: #444;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -304,25 +303,25 @@ mat-card-actions {
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border: 1px solid #d6e3f8;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: #f8fbff;
|
||||
color: #2563eb;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #eef5ff;
|
||||
border-color: #bcd3f7;
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
|
||||
.patent-meta__list {
|
||||
margin: 12px 0 20px;
|
||||
border: 1px solid #e2e8f4;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
|
||||
background: var(--sg-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -332,7 +331,7 @@ mat-card-actions {
|
||||
gap: 12px 16px;
|
||||
align-items: center;
|
||||
padding: 11px 16px;
|
||||
border-top: 1px solid #eef2f8;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
@@ -342,13 +341,13 @@ mat-card-actions {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
color: var(--sg-text);
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
@@ -356,7 +355,7 @@ mat-card-actions {
|
||||
.detail-section {
|
||||
margin-top: 12px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid #eee;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
@@ -376,28 +375,28 @@ mat-card-actions {
|
||||
.tag {
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: #f0f6ff;
|
||||
border: 1px solid #dbeafe;
|
||||
color: #1e40af;
|
||||
background: var(--sg-primary-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.classification-section {
|
||||
&--ipc .classification-card {
|
||||
background: #f0f6ff;
|
||||
border-color: #bfdbfe;
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-border);
|
||||
}
|
||||
&--ipc .classification-badge--system {
|
||||
background: #dbeafe;
|
||||
color: #1d4ed8;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
&--cpc .classification-card {
|
||||
background: #f0fdf4;
|
||||
border-color: #bbf7d0;
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
}
|
||||
&--cpc .classification-badge--system {
|
||||
background: #dcfce7;
|
||||
color: #15803d;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -410,7 +409,7 @@ mat-card-actions {
|
||||
.classification-card {
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #dbeafe;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-card__header {
|
||||
@@ -434,7 +433,7 @@ mat-card-actions {
|
||||
.classification-code {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.classification-badge {
|
||||
@@ -448,14 +447,14 @@ mat-card-actions {
|
||||
}
|
||||
|
||||
.classification-badge--level {
|
||||
background: #e2e8f0;
|
||||
color: #475569;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
.classification-summary {
|
||||
margin: 10px 0 0;
|
||||
font-size: 0.84rem;
|
||||
line-height: 1.5;
|
||||
color: #334155;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.classification-toggle {
|
||||
@@ -463,7 +462,7 @@ mat-card-actions {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: #2563eb;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.78rem;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
@@ -474,7 +473,7 @@ mat-card-actions {
|
||||
.classification-hierarchy {
|
||||
margin: 10px 0 0;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid rgba(15, 23, 42, 0.08);
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-hierarchy__row {
|
||||
@@ -487,13 +486,13 @@ mat-card-actions {
|
||||
margin: 0;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.45;
|
||||
color: #334155;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
border-color: var(--sg-primary);
|
||||
outline: none;
|
||||
box-shadow:
|
||||
@@ -223,14 +223,14 @@
|
||||
&.active {
|
||||
border-color: var(--sg-primary);
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
|
||||
&.active:hover,
|
||||
&.active:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
&.is-loading {
|
||||
|
||||
+27
-26
@@ -1,15 +1,15 @@
|
||||
$marked-color: #5470c6;
|
||||
$related-person-color: #4f8df5;
|
||||
$timeline-purple: #7255d9;
|
||||
$timeline-purple-bg: #f6f0ff;
|
||||
$marked-color: var(--sg-blue-highlight);
|
||||
$related-person-color: var(--sg-primary);
|
||||
$timeline-purple: var(--sg-warning);
|
||||
$timeline-purple-bg: var(--sg-warning-soft);
|
||||
|
||||
$timeline-orange-bg: #fff7e8;
|
||||
$timeline-orange-border: #ffd796;
|
||||
$timeline-orange-text: #c67500;
|
||||
$timeline-orange-bg: var(--sg-warning-soft);
|
||||
$timeline-orange-border: var(--sg-warning);
|
||||
$timeline-orange-text: var(--sg-warning);
|
||||
|
||||
$card-border: #dbe5f6;
|
||||
$text-main: #07163d;
|
||||
$text-muted: #64718f;
|
||||
$card-border: var(--sg-border);
|
||||
$text-main: var(--sg-text);
|
||||
$text-muted: var(--sg-text-muted);
|
||||
|
||||
:host {
|
||||
display: block;
|
||||
@@ -50,7 +50,7 @@ $text-muted: #64718f;
|
||||
}
|
||||
|
||||
.state-error {
|
||||
color: #b42318;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
@@ -58,8 +58,8 @@ $text-muted: #64718f;
|
||||
padding: 18px 22px;
|
||||
border: 1px solid $card-border;
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
|
||||
h2 {
|
||||
margin: 0 0 6px;
|
||||
@@ -106,8 +106,9 @@ $text-muted: #64718f;
|
||||
.graph-card,
|
||||
.connection-list {
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -141,7 +142,7 @@ $text-muted: #64718f;
|
||||
}
|
||||
|
||||
.graph-related-persons-button:hover {
|
||||
background: rgba(84, 112, 198, 0.08);
|
||||
background: var(--sg-primary-soft);
|
||||
}
|
||||
|
||||
.graph-related-persons-icon {
|
||||
@@ -248,7 +249,7 @@ $text-muted: #64718f;
|
||||
flex: 0 0 auto;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid $card-border;
|
||||
background: #fbfdff;
|
||||
background: var(--sg-surface-muted);
|
||||
color: $text-muted;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
@@ -271,7 +272,7 @@ $text-muted: #64718f;
|
||||
}
|
||||
|
||||
.connection-item {
|
||||
border-bottom: 1px solid #edf2fb;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.connection-row {
|
||||
@@ -281,11 +282,11 @@ $text-muted: #64718f;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #f8fbff;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background: #f0f6ff;
|
||||
background: var(--sg-primary-soft);
|
||||
box-shadow: inset 3px 0 0 $marked-color;
|
||||
}
|
||||
|
||||
@@ -320,7 +321,7 @@ $text-muted: #64718f;
|
||||
|
||||
.connection-detail {
|
||||
padding: 0 16px 16px;
|
||||
background: #f8fbff;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
.detail-grid {
|
||||
@@ -328,7 +329,7 @@ $text-muted: #64718f;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px 18px;
|
||||
padding: 14px 0 4px;
|
||||
border-top: 1px solid #e5edf8;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.detail-field {
|
||||
@@ -375,11 +376,11 @@ $text-muted: #64718f;
|
||||
}
|
||||
|
||||
.detail-value.detail-status--active {
|
||||
color: #218354;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.detail-value.detail-status--removed {
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.officers-toggle {
|
||||
@@ -390,7 +391,7 @@ $text-muted: #64718f;
|
||||
margin-top: 14px;
|
||||
padding: 12px 0 0;
|
||||
border: 0;
|
||||
border-top: 1px solid #e5edf8;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
background: transparent;
|
||||
color: $text-muted;
|
||||
font-size: 11px;
|
||||
@@ -429,7 +430,7 @@ $text-muted: #64718f;
|
||||
|
||||
.officer-role {
|
||||
padding-left: 10px;
|
||||
border-left: 4px solid #8a95b3;
|
||||
border-left: 4px solid var(--sg-border-strong);
|
||||
color: $text-main;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
+4
-4
@@ -372,7 +372,7 @@ export class PersonCompanyConnectionsComponent implements OnInit {
|
||||
show: true,
|
||||
position: 'bottom',
|
||||
fontWeight: 700,
|
||||
color: '#07163d',
|
||||
color: 'var(--sg-text)',
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -400,7 +400,7 @@ export class PersonCompanyConnectionsComponent implements OnInit {
|
||||
label: {
|
||||
show: true,
|
||||
position: 'bottom',
|
||||
color: '#07163d',
|
||||
color: 'var(--sg-text)',
|
||||
width: 125,
|
||||
overflow: 'truncate',
|
||||
},
|
||||
@@ -443,7 +443,7 @@ export class PersonCompanyConnectionsComponent implements OnInit {
|
||||
label: {
|
||||
show: true,
|
||||
position: 'bottom',
|
||||
color: '#07163d',
|
||||
color: 'var(--sg-text)',
|
||||
width: 110,
|
||||
overflow: 'truncate',
|
||||
fontSize: 11,
|
||||
@@ -506,7 +506,7 @@ export class PersonCompanyConnectionsComponent implements OnInit {
|
||||
itemHeight: 20,
|
||||
selectedMode: false,
|
||||
textStyle: {
|
||||
color: '#3f4659',
|
||||
color: 'var(--sg-text-muted)',
|
||||
fontSize: 13,
|
||||
fontWeight: 500,
|
||||
},
|
||||
|
||||
@@ -59,19 +59,22 @@
|
||||
<td class="funder-name">{{ funder.funder_name }}</td>
|
||||
<td class="text-center">{{ getPublicationCount(funder) }}</td>
|
||||
<td class="text-center">
|
||||
<span class="position-count-badge position-count-badge--first">{{
|
||||
funder.author_position_count.first || 0
|
||||
}}</span>
|
||||
<span
|
||||
class="position-count-badge position-count-badge--first"
|
||||
>{{ funder.author_position_count.first || 0 }}</span
|
||||
>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="position-count-badge position-count-badge--middle">{{
|
||||
funder.author_position_count.middle || 0
|
||||
}}</span>
|
||||
<span
|
||||
class="position-count-badge position-count-badge--middle"
|
||||
>{{ funder.author_position_count.middle || 0 }}</span
|
||||
>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="position-count-badge position-count-badge--last">{{
|
||||
funder.author_position_count.last || 0
|
||||
}}</span>
|
||||
<span
|
||||
class="position-count-badge position-count-badge--last"
|
||||
>{{ funder.author_position_count.last || 0 }}</span
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -127,10 +130,7 @@
|
||||
<a
|
||||
class="publication-more-info"
|
||||
title="Publikationsdetails öffnen"
|
||||
[routerLink]="[
|
||||
'/publication',
|
||||
getShortPublicationId(id),
|
||||
]"
|
||||
[routerLink]="['/publication', getShortPublicationId(id)]"
|
||||
[state]="{
|
||||
returnUrl: getCurrentUrl(),
|
||||
returnLabel: 'Förderungen',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
.message {
|
||||
color: #666;
|
||||
padding: 16px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
app-query-param-paginator {
|
||||
@@ -172,44 +173,53 @@ app-query-param-paginator {
|
||||
}
|
||||
|
||||
&.stat-first {
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
|
||||
.stat-label,
|
||||
.stat-value {
|
||||
color: #24834f;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
&.stat-middle {
|
||||
background: var(--sg-warning-soft);
|
||||
border-color: var(--sg-warning);
|
||||
|
||||
.stat-label,
|
||||
.stat-value {
|
||||
color: #7255d9;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
&.stat-last {
|
||||
background: var(--sg-error-soft);
|
||||
border-color: var(--sg-error);
|
||||
|
||||
.stat-label,
|
||||
.stat-value {
|
||||
color: #be123c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.position-badge--first {
|
||||
background: #effaf3;
|
||||
border-color: #bdebcf;
|
||||
color: #24834f;
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.position-badge--middle {
|
||||
background: #f6f0ff;
|
||||
border-color: #d8cafe;
|
||||
color: #7255d9;
|
||||
background: var(--sg-warning-soft);
|
||||
border-color: var(--sg-warning);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
.position-badge--last {
|
||||
background: #fff1f2;
|
||||
border-color: #fda4af;
|
||||
color: #be123c;
|
||||
background: var(--sg-error-soft);
|
||||
border-color: var(--sg-error);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.position-badge--first,
|
||||
@@ -225,6 +235,40 @@ app-query-param-paginator {
|
||||
margin: 0;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
|
||||
li {
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.publication-pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
|
||||
button {
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
@@ -236,30 +280,30 @@ app-query-param-paginator {
|
||||
display: inline-block;
|
||||
margin-bottom: 12px;
|
||||
padding: 4px 12px;
|
||||
border: 1px solid #dbe3f2;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: #475569;
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
|
||||
&.position-badge--first {
|
||||
background: #effaf3;
|
||||
border-color: #bdebcf;
|
||||
color: #24834f;
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&.position-badge--middle {
|
||||
background: #f6f0ff;
|
||||
border-color: #d8cafe;
|
||||
color: #7255d9;
|
||||
background: var(--sg-warning-soft);
|
||||
border-color: var(--sg-warning);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&.position-badge--last {
|
||||
background: #fff1f2;
|
||||
border-color: #fda4af;
|
||||
color: #be123c;
|
||||
background: var(--sg-error-soft);
|
||||
border-color: var(--sg-error);
|
||||
color: var(--sg-error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,12 +311,12 @@ app-query-param-paginator {
|
||||
margin: 0 0 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&__subtitle {
|
||||
margin: 0 0 20px;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -295,34 +339,34 @@ app-query-param-paginator {
|
||||
display: block;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&__stat-label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
&__stat--publications {
|
||||
.empty-overview__stat-value,
|
||||
.empty-overview__stat-label {
|
||||
color: #0b63ce;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
|
||||
&__stat--funders {
|
||||
.empty-overview__stat-value,
|
||||
.empty-overview__stat-label {
|
||||
color: #b45309;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
&__hint {
|
||||
p {
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
@@ -371,4 +415,3 @@ app-query-param-paginator {
|
||||
word-break: break-word;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
padding: 24px 28px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: var(--sg-surface-muted);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
box-shadow: inset 0 1px 0 var(--sg-border);
|
||||
}
|
||||
|
||||
.interest-card-loading {
|
||||
@@ -52,8 +52,7 @@
|
||||
|
||||
.interest-tags .interest-empty {
|
||||
padding: 9px 16px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-style: dashed;
|
||||
border: 1px dashed var(--sg-border);
|
||||
border-radius: 7px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
@@ -67,7 +66,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -146,8 +146,12 @@
|
||||
max-width: min(320px, 46vw);
|
||||
padding: 3px 8px;
|
||||
border-radius: 7px;
|
||||
background: color-mix(in srgb, var(--topic-color) 22%, #ffffff);
|
||||
color: color-mix(in srgb, var(--topic-color) 45%, #07163d);
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--topic-color) 22%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
color: color-mix(in srgb, var(--topic-color) 45%, var(--sg-text));
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
box-shadow: inset 0 0 0 1px
|
||||
@@ -433,7 +437,7 @@ mat-paginator {
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-color-mix-base);
|
||||
border: none;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 10px;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<div
|
||||
class="graph"
|
||||
echarts
|
||||
[options]="options"
|
||||
[options]="options()"
|
||||
[autoResize]="true"
|
||||
(wheel)="onGraphWheel($event)"
|
||||
(chartClick)="onChartEvent($event, 'chartClick')"></div>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { Component, computed, effect, input, output } from '@angular/core';
|
||||
import { Component, computed, inject, input, output } from '@angular/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { CollaborationNetwork } from '../../api';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { ChartThemeService } from '../../shared/services/chart-theme.service';
|
||||
import { EChartsCoreOption } from 'echarts/types/dist/core';
|
||||
|
||||
import * as echarts from 'echarts/core';
|
||||
@@ -13,6 +14,7 @@ import {
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
import { GraphChart } from 'echarts/charts';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
echarts.use([
|
||||
GridComponent,
|
||||
CanvasRenderer,
|
||||
@@ -37,12 +39,16 @@ export interface NodeClickEvent {
|
||||
})
|
||||
export class PersonNetworkGraphComponent {
|
||||
collaborationNetwork = input<CollaborationNetwork>();
|
||||
|
||||
handleNodeClick = output<NodeClickEvent>();
|
||||
|
||||
authorDisplayName: string = '';
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
options!: EChartsCoreOption;
|
||||
categoryLabels: Record<string, string> = {
|
||||
author: 'Autor',
|
||||
collaborator: 'Kollaborierender',
|
||||
institution: 'Institution',
|
||||
work: 'Publikation',
|
||||
};
|
||||
|
||||
readonly isEmptyGraph = computed(() => {
|
||||
const network = this.collaborationNetwork();
|
||||
@@ -63,27 +69,170 @@ export class PersonNetworkGraphComponent {
|
||||
);
|
||||
});
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
const network = this.collaborationNetwork();
|
||||
if (!network) {
|
||||
return;
|
||||
}
|
||||
this.updateGraphOptions(network);
|
||||
});
|
||||
}
|
||||
readonly options = computed<EChartsCoreOption>(() => {
|
||||
const collaborationNetwork = this.collaborationNetwork();
|
||||
const colors = this.chartTheme.colors();
|
||||
if (!collaborationNetwork) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const textColor = colors.text;
|
||||
|
||||
const primaryAuthor = collaborationNetwork.author_nodes.find(
|
||||
(n) => n.category === 'author',
|
||||
);
|
||||
const primaryAuthorId = primaryAuthor ? primaryAuthor.raw_id : '';
|
||||
const selectedNodeId = primaryAuthorId;
|
||||
|
||||
const occurences = this.calculateOccurenceFrequencies(collaborationNetwork);
|
||||
const freqValues = Object.values(occurences);
|
||||
const minFrequency = freqValues.length ? Math.min(...freqValues) : 0;
|
||||
const maxFrequency = freqValues.length ? Math.max(...freqValues) : 0;
|
||||
const freqDenominator =
|
||||
maxFrequency === minFrequency ? 1 : maxFrequency - minFrequency;
|
||||
|
||||
const categories = [
|
||||
{
|
||||
name: 'author',
|
||||
itemStyle: { color: colors.blueHighlight },
|
||||
},
|
||||
{
|
||||
name: 'collaborator',
|
||||
itemStyle: { color: colors.success },
|
||||
},
|
||||
{
|
||||
name: 'institution',
|
||||
itemStyle: { color: colors.warning },
|
||||
},
|
||||
{
|
||||
name: 'work',
|
||||
itemStyle: { color: colors.primary },
|
||||
},
|
||||
];
|
||||
|
||||
const nodes = collaborationNetwork.author_nodes
|
||||
.filter((node) => node.raw_id && node.display_name)
|
||||
.map((node) => {
|
||||
const rawId = node.raw_id;
|
||||
|
||||
const isPrimaryAuthor =
|
||||
rawId === primaryAuthorId ||
|
||||
rawId.toUpperCase() === primaryAuthorId.toUpperCase() ||
|
||||
rawId.split('/').pop()?.toUpperCase() ===
|
||||
primaryAuthorId.toUpperCase() ||
|
||||
primaryAuthorId.split('/').pop()?.toUpperCase() ===
|
||||
rawId.toUpperCase();
|
||||
|
||||
let category: NodeCategory;
|
||||
if (isPrimaryAuthor) {
|
||||
category = 'author';
|
||||
} else if (node.category === 'institution') {
|
||||
category = 'institution';
|
||||
} else if (node.category === 'work') {
|
||||
category = 'work';
|
||||
} else {
|
||||
category = 'collaborator';
|
||||
}
|
||||
|
||||
const isSelected = selectedNodeId
|
||||
? rawId === selectedNodeId ||
|
||||
rawId.toUpperCase() === selectedNodeId.toUpperCase() ||
|
||||
rawId.split('/').pop()?.toUpperCase() ===
|
||||
selectedNodeId.toUpperCase() ||
|
||||
selectedNodeId.split('/').pop()?.toUpperCase() ===
|
||||
rawId.toUpperCase()
|
||||
: false;
|
||||
|
||||
const baseId = node.raw_id + '';
|
||||
const nodeFreq = occurences[node.raw_id] || 0;
|
||||
const computedSymbolSize =
|
||||
25 + ((nodeFreq - minFrequency) / freqDenominator) * 30;
|
||||
|
||||
return {
|
||||
id: baseId,
|
||||
name: node.display_name,
|
||||
category,
|
||||
label: {
|
||||
show: node.category !== 'work',
|
||||
formatter: '{b}',
|
||||
},
|
||||
symbolSize: node.category === 'work' ? 15 : computedSymbolSize,
|
||||
};
|
||||
});
|
||||
|
||||
const links = collaborationNetwork.collaboration_edges.map((edge) => ({
|
||||
source: edge.raw_source_id + '',
|
||||
target: edge.raw_target_id + '',
|
||||
}));
|
||||
|
||||
const legendData = categories.map((c) => c.name);
|
||||
|
||||
return {
|
||||
legend: {
|
||||
data: legendData,
|
||||
bottom: 0,
|
||||
orient: 'horizontal',
|
||||
formatter: (name: string) => this.categoryLabels[name] || name,
|
||||
itemGap: 20,
|
||||
textStyle: { color: textColor },
|
||||
inactiveColor: colors.mutedTextColor,
|
||||
inactiveBorderColor: colors.tooltipBorder,
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'graph',
|
||||
layout: 'force',
|
||||
symbolSize: 15,
|
||||
animation: false,
|
||||
data: nodes,
|
||||
roam: true,
|
||||
label: {
|
||||
show: true,
|
||||
position: 'right',
|
||||
color: textColor,
|
||||
fontSize: 12,
|
||||
},
|
||||
force: {
|
||||
repulsion: 10000,
|
||||
friction: 0.9,
|
||||
gravity: 0.2,
|
||||
},
|
||||
zoom: 0.1,
|
||||
links,
|
||||
categories,
|
||||
roamTrigger: 'global',
|
||||
emphasis: {
|
||||
focus: 'adjacency',
|
||||
label: {
|
||||
show: true,
|
||||
color: textColor,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
lineStyle: {
|
||||
width: 4,
|
||||
},
|
||||
},
|
||||
blur: {
|
||||
itemStyle: {
|
||||
opacity: 0.15,
|
||||
},
|
||||
label: {
|
||||
show: false,
|
||||
opacity: 0.15,
|
||||
},
|
||||
lineStyle: {
|
||||
opacity: 0.1,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
});
|
||||
|
||||
onGraphWheel(event: WheelEvent): void {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
categoryLabels: Record<string, string> = {
|
||||
author: 'Autor',
|
||||
collaborator: 'Kollaborierender',
|
||||
institution: 'Institution',
|
||||
work: 'Publikation',
|
||||
};
|
||||
|
||||
onChartEvent(event: any, type: string) {
|
||||
if (type !== 'chartClick') {
|
||||
return;
|
||||
@@ -97,129 +246,7 @@ export class PersonNetworkGraphComponent {
|
||||
this.handleNodeClick.emit({ id, name, category });
|
||||
}
|
||||
|
||||
private updateGraphOptions(collaborationNetwork: CollaborationNetwork): void {
|
||||
if (!collaborationNetwork) {
|
||||
return;
|
||||
}
|
||||
|
||||
const frequencies =
|
||||
this.calculateOccurenceFrequencies(collaborationNetwork);
|
||||
|
||||
const freqValues = Object.values(frequencies);
|
||||
const minFrequency = freqValues.length ? Math.min(...freqValues) : 0;
|
||||
const maxFrequency = freqValues.length ? Math.max(...freqValues) : 0;
|
||||
const freqDenominator =
|
||||
maxFrequency === minFrequency ? 1 : maxFrequency - minFrequency;
|
||||
|
||||
const datas = [
|
||||
{
|
||||
nodes: [
|
||||
collaborationNetwork.work_nodes,
|
||||
collaborationNetwork.author_nodes,
|
||||
collaborationNetwork.institution_nodes,
|
||||
]
|
||||
.flat()
|
||||
.map((node) => {
|
||||
const category = (() => {
|
||||
if (node.category === 'institution') {
|
||||
return 'institution';
|
||||
}
|
||||
if (node.category === 'work') {
|
||||
return 'work';
|
||||
}
|
||||
if (node.raw_id === collaborationNetwork.raw_person_id) {
|
||||
return 'author';
|
||||
}
|
||||
return 'collaborator';
|
||||
})();
|
||||
|
||||
const baseId = node.raw_id + '';
|
||||
const nodeFreq = frequencies[node.raw_id] || 0;
|
||||
const computedSymbolSize =
|
||||
25 + ((nodeFreq - minFrequency) / freqDenominator) * 30;
|
||||
|
||||
return {
|
||||
id: baseId,
|
||||
name: node.display_name,
|
||||
category,
|
||||
label: {
|
||||
show: node.category !== 'work',
|
||||
formatter: '{b}',
|
||||
},
|
||||
emphasis: {
|
||||
label: {
|
||||
show: true,
|
||||
formatter: '{b}',
|
||||
},
|
||||
},
|
||||
symbolSize: node.category === 'work' ? 15 : computedSymbolSize,
|
||||
};
|
||||
}),
|
||||
links: collaborationNetwork.collaboration_edges.map((edge) => {
|
||||
return [edge.raw_source_id + '', edge.raw_target_id + ''];
|
||||
}),
|
||||
categories: [
|
||||
{
|
||||
name: 'author',
|
||||
},
|
||||
{
|
||||
name: 'collaborator',
|
||||
},
|
||||
{
|
||||
name: 'institution',
|
||||
},
|
||||
{
|
||||
name: 'work',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const legendData = datas.length
|
||||
? datas[0].categories.map((c) => c.name)
|
||||
: [];
|
||||
|
||||
this.options = {
|
||||
legend: {
|
||||
data: legendData,
|
||||
bottom: 0,
|
||||
orient: 'horizontal',
|
||||
formatter: (name: string) => this.categoryLabels[name] || name,
|
||||
itemGap: 20,
|
||||
},
|
||||
series: datas.map((item) => {
|
||||
return {
|
||||
type: 'graph',
|
||||
layout: 'force',
|
||||
symbolSize: 15,
|
||||
animation: false,
|
||||
data: item.nodes,
|
||||
roam: true,
|
||||
force: {
|
||||
repulsion: 10000,
|
||||
friction: 0.9,
|
||||
gravity: 0.2,
|
||||
},
|
||||
zoom: 0.1,
|
||||
links: item.links.map((e) => {
|
||||
return {
|
||||
source: e[0] + '',
|
||||
target: e[1] + '',
|
||||
};
|
||||
}),
|
||||
categories: item.categories,
|
||||
roamTrigger: 'global', // + 2 hours because of incomplete documentation https://github.com/apache/echarts/issues/17214
|
||||
emphasis: {
|
||||
focus: 'adjacency',
|
||||
lineStyle: {
|
||||
width: 5,
|
||||
},
|
||||
},
|
||||
};
|
||||
}),
|
||||
};
|
||||
}
|
||||
calculateOccurenceFrequencies(
|
||||
private calculateOccurenceFrequencies(
|
||||
network: CollaborationNetwork,
|
||||
): Record<string, number> {
|
||||
const frequencies: Record<string, number> = {};
|
||||
|
||||
+55
-59
@@ -1,12 +1,12 @@
|
||||
.research-timeline-card {
|
||||
--accent: #0057ff;
|
||||
--accent: var(--sg-blue-highlight);
|
||||
|
||||
width: 100%;
|
||||
padding: 24px 28px;
|
||||
border: 1px solid #d7e4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
box-sizing: border-box;
|
||||
|
||||
button {
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
h2 {
|
||||
margin: 0 0 6px;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
@@ -58,12 +58,12 @@
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: #64718f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
|
||||
span {
|
||||
color: #74809b;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,26 +86,26 @@
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
border: 1px solid #dbe5f6;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: #ffffff;
|
||||
background: var(--sg-surface);
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
padding: 9px 18px;
|
||||
color: #3f4b66;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #f2f6ff;
|
||||
background: var(--sg-surface-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #eef4ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--accent);
|
||||
box-shadow: inset 0 0 0 1px #3d7cff;
|
||||
box-shadow: inset 0 0 0 1px var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,9 +116,9 @@
|
||||
justify-self: end;
|
||||
width: min(var(--year-filter-width), 100%);
|
||||
padding: 5px 10px;
|
||||
border: 1px solid #dbe5f6;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: #fbfdff;
|
||||
background: var(--sg-surface-muted);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
}
|
||||
|
||||
.year-filter-label {
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -151,13 +151,13 @@
|
||||
font-size: 11px;
|
||||
|
||||
&:disabled {
|
||||
color: #9aa5bc;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.year-filter-values {
|
||||
gap: 5px;
|
||||
color: #40506f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
@@ -166,7 +166,7 @@
|
||||
.year-filter-bounds {
|
||||
justify-content: space-between;
|
||||
margin-top: 0;
|
||||
color: #7c88a3;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
@@ -188,12 +188,12 @@
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
#d8e2f4 0%,
|
||||
#d8e2f4 var(--range-start),
|
||||
var(--sg-border) 0%,
|
||||
var(--sg-border) var(--range-start),
|
||||
var(--accent) var(--range-start),
|
||||
var(--accent) var(--range-end),
|
||||
#d8e2f4 var(--range-end),
|
||||
#d8e2f4 100%
|
||||
var(--sg-border) var(--range-end),
|
||||
var(--sg-border) 100%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -220,12 +220,10 @@
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
margin-top: -5px;
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow:
|
||||
0 0 0 1px #9ab7ff,
|
||||
0 2px 6px rgba(0, 87, 255, 0.22);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
@@ -233,12 +231,10 @@
|
||||
.range-input::-moz-range-thumb {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow:
|
||||
0 0 0 1px #9ab7ff,
|
||||
0 2px 6px rgba(0, 87, 255, 0.22);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
@@ -269,7 +265,7 @@
|
||||
left: 34px;
|
||||
right: 34px;
|
||||
height: 2px;
|
||||
background: #23395d;
|
||||
background: var(--sg-border-strong);
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
@@ -278,7 +274,7 @@
|
||||
right: -10px;
|
||||
border-top: 6px solid transparent;
|
||||
border-bottom: 6px solid transparent;
|
||||
border-left: 12px solid #23395d;
|
||||
border-left: 12px solid var(--sg-border-strong);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -298,7 +294,7 @@
|
||||
|
||||
.year-button {
|
||||
margin-bottom: 9px;
|
||||
color: #15213f;
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 18px;
|
||||
@@ -308,10 +304,10 @@
|
||||
.dot {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 3px solid #ffffff;
|
||||
border: 3px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: var(--timeline-color);
|
||||
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.24);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,7 +317,7 @@
|
||||
}
|
||||
|
||||
.timeline-load-more-point {
|
||||
--timeline-color: #b8c7e6;
|
||||
--timeline-color: var(--sg-text-soft);
|
||||
|
||||
.year-button {
|
||||
color: var(--accent);
|
||||
@@ -331,9 +327,9 @@
|
||||
|
||||
.research-timeline-card .load-more-action-button {
|
||||
padding: 7px 12px;
|
||||
border: 1px solid #bdd4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: #f0f6ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
@@ -347,7 +343,7 @@
|
||||
h3 {
|
||||
min-height: 42px;
|
||||
margin: 0 0 8px;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
@@ -358,7 +354,7 @@
|
||||
.publication-count {
|
||||
display: block;
|
||||
margin-bottom: 14px;
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -387,7 +383,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
}
|
||||
|
||||
.no-topics {
|
||||
color: #9aa5bc;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -409,10 +405,10 @@ app-topic-chip.timeline-topic-chip {
|
||||
min-width: 300px;
|
||||
box-sizing: border-box;
|
||||
padding: 15px 16px;
|
||||
border: 1px solid #dbe5f6;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-left: 4px solid var(--timeline-color);
|
||||
border-radius: 14px;
|
||||
background: #fbfdff;
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.phase-card-header {
|
||||
@@ -425,10 +421,10 @@ app-topic-chip.timeline-topic-chip {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: 3px;
|
||||
border: 3px solid #ffffff;
|
||||
border: 3px solid var(--sg-surface);
|
||||
border-radius: 50%;
|
||||
background: var(--timeline-color);
|
||||
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.phase-title-block {
|
||||
@@ -437,7 +433,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
|
||||
h3 {
|
||||
margin: 10px 0 0;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
@@ -449,20 +445,20 @@ app-topic-chip.timeline-topic-chip {
|
||||
width: fit-content;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: #eef4ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.phase-years-button:hover {
|
||||
background: #dfeaff;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
.phase-publications-button {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
@@ -495,7 +491,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
margin-top: 13px;
|
||||
padding-top: 4px;
|
||||
padding-right: 6px;
|
||||
border-top: 1px solid #dbe5f6;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
@@ -508,7 +504,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
padding: 10px 0;
|
||||
|
||||
& + & {
|
||||
border-top: 1px solid #e4ebf7;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -519,7 +515,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
|
||||
.phase-year-button {
|
||||
width: fit-content;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
@@ -527,7 +523,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
|
||||
span,
|
||||
.phase-year-publication-button {
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
@@ -549,7 +545,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 18px;
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -557,9 +553,9 @@ app-topic-chip.timeline-topic-chip {
|
||||
.note-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 3px solid #dce5f5;
|
||||
border: 3px solid var(--sg-border);
|
||||
border-radius: 50%;
|
||||
background: #52627f;
|
||||
background: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.load-more-content {
|
||||
@@ -585,7 +581,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
color: #68748f;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -596,7 +592,7 @@ app-topic-chip.timeline-topic-chip {
|
||||
}
|
||||
|
||||
.timeline-state-error {
|
||||
color: #b42318;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
|
||||
@@ -70,14 +70,10 @@
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ patent.publication_year ?? '-' }}</td>
|
||||
<td
|
||||
class="patent-people"
|
||||
[title]="getInventorsLabel(patent)">
|
||||
<td class="patent-people" [title]="getInventorsLabel(patent)">
|
||||
{{ getInventorsLabel(patent) }}
|
||||
</td>
|
||||
<td
|
||||
class="patent-people"
|
||||
[title]="getAssigneesLabel(patent)">
|
||||
<td class="patent-people" [title]="getAssigneesLabel(patent)">
|
||||
{{ getAssigneesLabel(patent) }}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -140,7 +136,7 @@
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<span class="material-icons" aria-hidden="true">chevron_right</span>
|
||||
<mat-icon aria-hidden="true">chevron_right</mat-icon>
|
||||
</button>
|
||||
<p class="patent-detail-hint">
|
||||
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
.message {
|
||||
color: #666;
|
||||
padding: 16px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.patents-container {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
@@ -62,10 +64,11 @@ app-query-param-paginator {
|
||||
|
||||
tr {
|
||||
cursor: pointer;
|
||||
color: var(--sg-text);
|
||||
transition: background-color 0.15s ease;
|
||||
|
||||
&:hover td {
|
||||
background: rgba(16, 26, 61, 0.04);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&.selected td {
|
||||
@@ -104,6 +107,38 @@ app-query-param-paginator {
|
||||
}
|
||||
}
|
||||
|
||||
.match-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.match-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
|
||||
&--signal {
|
||||
padding: 4px 10px;
|
||||
font-size: 0.75rem;
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
.match-badges--detail {
|
||||
margin-top: 14px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.source-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -113,15 +148,15 @@ app-query-param-paginator {
|
||||
font-weight: 700;
|
||||
|
||||
&--epo {
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
border: 1px solid #bdebcf;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
border: 1px solid var(--sg-success);
|
||||
}
|
||||
|
||||
&--uspto {
|
||||
background: #f0f6ff;
|
||||
color: #0b63ce;
|
||||
border: 1px solid #bdd4ff;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,21 +225,21 @@ app-query-param-paginator {
|
||||
&--total {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #7255d9;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
}
|
||||
|
||||
&--epo {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #24834f;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
&--uspto {
|
||||
.overview-value,
|
||||
.overview-label {
|
||||
color: #0b63ce;
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -270,10 +305,10 @@ app-query-param-paginator {
|
||||
width: 100%;
|
||||
margin-top: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #bdd4ff;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
|
||||
color: #0b63ce;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
@@ -283,12 +318,12 @@ app-query-param-paginator {
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #0b63ce;
|
||||
background: #f0f6ff;
|
||||
box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-surface-soft);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
mat-icon {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
@@ -297,7 +332,295 @@ app-query-param-paginator {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.patent-full-detail {
|
||||
flex: 1;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 20px;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
h3 {
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 16px;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 16px 0 8px 0;
|
||||
font-size: 14px;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 13px;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
width: auto;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background-color 0.15s ease,
|
||||
border-color 0.15s ease,
|
||||
color 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--sg-blue-highlight);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-section {
|
||||
margin-top: 12px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.patent-meta {
|
||||
&--inline {
|
||||
margin: 12px 0 20px;
|
||||
}
|
||||
|
||||
&__list {
|
||||
margin: 0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-surface);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(130px, 38%) 1fr;
|
||||
gap: 12px 16px;
|
||||
align-items: center;
|
||||
padding: 11px 16px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--sg-text-muted);
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.35;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
&--compact .tag {
|
||||
font-size: 0.75rem;
|
||||
padding: 3px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.tag {
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: var(--sg-primary-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.classification-section {
|
||||
&--ipc .classification-card {
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-border);
|
||||
}
|
||||
|
||||
&--ipc .classification-badge--system {
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
&--cpc .classification-card {
|
||||
background: var(--sg-success-soft);
|
||||
border-color: var(--sg-success);
|
||||
}
|
||||
|
||||
&--cpc .classification-badge--system {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
}
|
||||
|
||||
.classification-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.classification-card {
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-card__header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.classification-card__codes {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.classification-card__badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.classification-code {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.classification-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.classification-badge--level {
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.classification-summary {
|
||||
margin: 10px 0 0;
|
||||
font-size: 0.84rem;
|
||||
line-height: 1.5;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.classification-toggle {
|
||||
margin-top: 6px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 0.78rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.classification-hierarchy {
|
||||
margin: 10px 0 0;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.classification-hierarchy__row {
|
||||
display: grid;
|
||||
grid-template-columns: 88px 1fr;
|
||||
gap: 8px;
|
||||
margin-bottom: 6px;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.45;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
|
||||
button {
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
background: var(--sg-surface);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
[loading]="isTopicsLoading()"
|
||||
(tagClick)="onInterestingTagClick($event)"></app-person-interesting>
|
||||
</section>
|
||||
<nav class="person-tabs" mat-tab-nav-bar [tabPanel]="tabPanel">
|
||||
<nav class="person-tabs sg-tab-nav" mat-tab-nav-bar [tabPanel]="tabPanel">
|
||||
@for (link of links(); track link.path) {
|
||||
<a
|
||||
mat-tab-link
|
||||
|
||||
@@ -34,13 +34,7 @@
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at 50% 30%,
|
||||
rgba(255, 255, 255, 0.78),
|
||||
transparent 34%
|
||||
),
|
||||
linear-gradient(145deg, #c8d9ff, #f7faff 48%, #88a9ee);
|
||||
background: var(--sg-avatar-gradient);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
color: var(--sg-primary);
|
||||
@@ -85,7 +79,7 @@
|
||||
padding: 0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 50%;
|
||||
background: white;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
cursor: pointer;
|
||||
|
||||
@@ -226,14 +220,14 @@
|
||||
}
|
||||
|
||||
.orcid-chip:hover {
|
||||
border-color: #6cc24a;
|
||||
border-color: var(--sg-success);
|
||||
}
|
||||
|
||||
.orcid-chip mat-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
color: #6cc24a;
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
@@ -252,7 +246,7 @@
|
||||
padding: 24px 28px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: var(--sg-surface-muted);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.bio-card h3 {
|
||||
@@ -275,26 +269,6 @@
|
||||
|
||||
.person-tabs {
|
||||
padding: 0 32px;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
background: var(--sg-background);
|
||||
}
|
||||
|
||||
.person-tabs a {
|
||||
min-width: 132px;
|
||||
height: 58px;
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.person-tabs a.mdc-tab--active {
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
::ng-deep .person-tabs .mdc-tab-indicator__content--underline {
|
||||
border-color: var(--sg-primary);
|
||||
border-top-width: 3px;
|
||||
}
|
||||
|
||||
.person-panel {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// Complete SCSS with all styles including clickable elements
|
||||
|
||||
.detail-page {
|
||||
padding: 28px 32px 42px;
|
||||
max-width: 100%;
|
||||
@@ -19,7 +17,7 @@
|
||||
gap: 6px;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
@@ -28,7 +26,7 @@
|
||||
|
||||
.status-badge:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.status-badge mat-icon {
|
||||
@@ -41,9 +39,9 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
@@ -51,8 +49,8 @@
|
||||
}
|
||||
|
||||
.back-link:hover {
|
||||
background: #f5f7fa;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.back-link mat-icon {
|
||||
@@ -81,8 +79,8 @@
|
||||
}
|
||||
|
||||
.project-hero {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #d9e2f0;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-md);
|
||||
padding: 28px 32px;
|
||||
margin-bottom: 28px;
|
||||
@@ -103,7 +101,7 @@
|
||||
.project-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
font-size: 12px;
|
||||
@@ -120,8 +118,8 @@
|
||||
.new-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
background: #27ae60;
|
||||
color: #fff;
|
||||
background: var(--sg-success);
|
||||
color: var(--sg-background);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
@@ -155,8 +153,8 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
background: #fff;
|
||||
border: 1px solid #d9e2f0;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text);
|
||||
font-size: 14px;
|
||||
@@ -166,8 +164,8 @@ h1 {
|
||||
|
||||
.agency-info:hover,
|
||||
.funding-type-info:hover {
|
||||
background: #f5f7fa;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.agency-info mat-icon,
|
||||
@@ -183,7 +181,7 @@ h1 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #d9e2f0;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.metric-item {
|
||||
@@ -217,7 +215,8 @@ h1 {
|
||||
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
border-color: #d9e2f0 !important;
|
||||
background: var(--sg-card-bg) !important;
|
||||
border-color: var(--sg-border) !important;
|
||||
border-radius: var(--sg-radius-md) !important;
|
||||
}
|
||||
|
||||
@@ -230,7 +229,7 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 16px 20px 12px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
@@ -255,7 +254,7 @@ h1 {
|
||||
height: 24px;
|
||||
padding: 0 8px;
|
||||
margin-left: auto;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
@@ -300,16 +299,16 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.person-item:hover {
|
||||
background: #f8fafc;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -320,7 +319,7 @@ h1 {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
@@ -345,9 +344,9 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
font-size: 13px;
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
@@ -355,8 +354,8 @@ h1 {
|
||||
}
|
||||
|
||||
.institution-item:hover {
|
||||
background: #f8fafc;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.institution-item mat-icon {
|
||||
@@ -394,7 +393,7 @@ h1 {
|
||||
grid-template-columns: 140px 1fr;
|
||||
gap: 24px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.detail-row:last-child {
|
||||
@@ -423,7 +422,7 @@ h1 {
|
||||
}
|
||||
|
||||
.detail-row dd.clickable:hover {
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.detail-row dd.clickable:hover .search-icon {
|
||||
@@ -469,7 +468,7 @@ h1 {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 48px;
|
||||
color: #e74c3c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.error-state p {
|
||||
@@ -477,9 +476,8 @@ h1 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
// Clickable external link styling
|
||||
.external-link {
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,14 +124,14 @@ export class BundDetailsComponent implements OnInit {
|
||||
return year >= new Date().getFullYear() ? `Laufend` : `Abgeschlossen`;
|
||||
}
|
||||
getStatusColor(status: string | null | undefined): string {
|
||||
if (!status) return '#95a5a6';
|
||||
if (!status) return 'var(--sg-text-muted)';
|
||||
const statusUpper = status.toUpperCase();
|
||||
if (statusUpper.includes('ABGESCHLOSSEN')) {
|
||||
return '#27ae60';
|
||||
return 'var(--sg-success)';
|
||||
} else if (statusUpper.includes('LAUFEND')) {
|
||||
return '#f39c12';
|
||||
return 'var(--sg-warning)';
|
||||
} else {
|
||||
return '#95a5a6';
|
||||
return 'var(--sg-text-muted)';
|
||||
}
|
||||
}
|
||||
goBack(): void {
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
@@ -26,8 +26,8 @@
|
||||
}
|
||||
|
||||
.back-link:hover {
|
||||
background: #f5f7fa;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.back-link mat-icon {
|
||||
@@ -56,8 +56,8 @@
|
||||
}
|
||||
|
||||
.project-hero {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #d9e2f0;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-md);
|
||||
padding: 28px 32px;
|
||||
margin-bottom: 28px;
|
||||
@@ -77,7 +77,7 @@
|
||||
.project-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
font-size: 12px;
|
||||
@@ -125,24 +125,24 @@ h1 {
|
||||
}
|
||||
|
||||
.primary-action {
|
||||
background: var(--sg-primary, #0066cc);
|
||||
color: #fff;
|
||||
background: var(--sg-primary);
|
||||
color: var(--sg-background);
|
||||
border: none;
|
||||
}
|
||||
|
||||
.primary-action:hover {
|
||||
background: var(--sg-primary-dark, #0052a3);
|
||||
background: var(--sg-primary-strong);
|
||||
}
|
||||
|
||||
.secondary-action {
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.secondary-action:hover {
|
||||
background: #f5f7fa;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.primary-action mat-icon,
|
||||
@@ -157,7 +157,7 @@ h1 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #d9e2f0;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.metric-item {
|
||||
@@ -191,7 +191,8 @@ h1 {
|
||||
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
border-color: #d9e2f0 !important;
|
||||
background: var(--sg-card-bg) !important;
|
||||
border-color: var(--sg-border) !important;
|
||||
border-radius: var(--sg-radius-md) !important;
|
||||
}
|
||||
|
||||
@@ -204,7 +205,7 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 16px 20px 12px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
@@ -229,7 +230,7 @@ h1 {
|
||||
height: 24px;
|
||||
padding: 0 8px;
|
||||
margin-left: auto;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
@@ -241,7 +242,7 @@ h1 {
|
||||
gap: 6px;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
@@ -250,7 +251,7 @@ h1 {
|
||||
|
||||
.status-badge:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.status-badge mat-icon {
|
||||
@@ -296,16 +297,16 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.person-item:hover {
|
||||
cursor: pointer;
|
||||
background: #f8fafc;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.avatar {
|
||||
@@ -315,7 +316,7 @@ h1 {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
@@ -337,7 +338,7 @@ h1 {
|
||||
|
||||
.person-role {
|
||||
font-size: 11px;
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -362,9 +363,9 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
font-size: 13px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
@@ -393,8 +394,8 @@ h1 {
|
||||
flex-shrink: 0;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
background: #fbeaea;
|
||||
color: #c0392b;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -409,16 +410,16 @@ h1 {
|
||||
|
||||
.subproject-item {
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.subproject-item:hover {
|
||||
background: #f8fafc;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.subproject-main {
|
||||
@@ -438,7 +439,7 @@ h1 {
|
||||
flex-shrink: 0;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
@@ -452,9 +453,9 @@ h1 {
|
||||
|
||||
.publication-item {
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
}
|
||||
|
||||
.publication-title {
|
||||
@@ -501,7 +502,7 @@ h1 {
|
||||
grid-template-columns: 140px 1fr;
|
||||
gap: 12px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.detail-row:last-child {
|
||||
@@ -522,7 +523,7 @@ h1 {
|
||||
}
|
||||
|
||||
.external-link {
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -556,7 +557,7 @@ h1 {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 48px;
|
||||
color: #e74c3c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.error-state p {
|
||||
|
||||
@@ -211,14 +211,14 @@ export class DfgDetailsComponent implements OnInit {
|
||||
}
|
||||
|
||||
getStatusColor(status: string | null | undefined): string {
|
||||
if (!status) return '#95a5a6';
|
||||
if (!status) return 'var(--sg-text-muted)';
|
||||
const statusUpper = status.toUpperCase();
|
||||
if (statusUpper.includes('ABGESCHLOSSEN')) {
|
||||
return '#27ae60';
|
||||
return 'var(--sg-success)';
|
||||
} else if (statusUpper.includes('LAUFEND')) {
|
||||
return '#f39c12';
|
||||
return 'var(--sg-warning)';
|
||||
} else {
|
||||
return '#95a5a6';
|
||||
return 'var(--sg-text-muted)';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+10
-9
@@ -11,19 +11,19 @@
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.deliv-icon {
|
||||
flex-shrink: 0;
|
||||
color: #7b1fa2;
|
||||
color: var(--sg-warning);
|
||||
|
||||
mat-icon {
|
||||
width: 24px;
|
||||
@@ -53,16 +53,16 @@
|
||||
|
||||
.deliv-type {
|
||||
padding: 1px 8px;
|
||||
background: #f3e5f5;
|
||||
background: var(--sg-warning-soft);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #7b1fa2;
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
.deliv-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
@@ -82,7 +82,8 @@
|
||||
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
border-color: #d9e2f0 !important;
|
||||
background: var(--sg-card-bg) !important;
|
||||
border-color: var(--sg-border) !important;
|
||||
border-radius: var(--sg-radius-md) !important;
|
||||
}
|
||||
|
||||
@@ -91,7 +92,7 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
|
||||
@@ -250,7 +250,7 @@
|
||||
[subfieldName]="keyword.subfieldName"
|
||||
[fieldName]="keyword.fieldName"
|
||||
[domainName]="keyword.domainName"
|
||||
[color]="keyword.color || '#d9e2f0'"
|
||||
[color]="keyword.color || 'var(--sg-border)'"
|
||||
[disabled]="!keyword.id">
|
||||
</app-topic-chip>
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
.project-hero {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #d9e2f0;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-md);
|
||||
padding: 28px 32px;
|
||||
margin-bottom: 28px;
|
||||
@@ -46,7 +46,7 @@
|
||||
.project-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
font-size: 12px;
|
||||
@@ -81,7 +81,7 @@ h1 {
|
||||
gap: 6px;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
@@ -89,7 +89,7 @@ h1 {
|
||||
}
|
||||
.status-badge:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
}
|
||||
.status-badge mat-icon {
|
||||
width: 16px;
|
||||
@@ -101,8 +101,8 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 14px;
|
||||
background: #fff;
|
||||
border: 1px solid #d9e2f0;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text);
|
||||
font-size: 13px;
|
||||
@@ -110,8 +110,8 @@ h1 {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.scheme-info:hover {
|
||||
background: #f5f7fa;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
}
|
||||
.scheme-info mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
@@ -124,16 +124,16 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 14px;
|
||||
background: #e8f0fe;
|
||||
border: 1px solid #c5d8f0;
|
||||
background: var(--sg-primary-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #1a73e8;
|
||||
color: var(--sg-blue-highlight);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.doi-link:hover {
|
||||
background: #d5e3fa;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
.doi-link mat-icon {
|
||||
width: 18px;
|
||||
@@ -145,7 +145,7 @@ h1 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #d9e2f0;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
.metric-item {
|
||||
display: flex;
|
||||
@@ -173,7 +173,8 @@ h1 {
|
||||
}
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
border-color: #d9e2f0 !important;
|
||||
background: var(--sg-card-bg) !important;
|
||||
border-color: var(--sg-border) !important;
|
||||
border-radius: var(--sg-radius-md) !important;
|
||||
}
|
||||
.section-header {
|
||||
@@ -181,7 +182,7 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
.section-header mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
@@ -203,7 +204,7 @@ h1 {
|
||||
height: 24px;
|
||||
padding: 0 8px;
|
||||
margin-left: auto;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
@@ -238,15 +239,15 @@ h1 {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.topic-item:hover {
|
||||
background: #f8fafc;
|
||||
border-color: #b8c5d6;
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.topic-value {
|
||||
@@ -280,7 +281,7 @@ h1 {
|
||||
grid-template-columns: 140px 1fr;
|
||||
gap: 12px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
.detail-row:last-child {
|
||||
border-bottom: 0;
|
||||
@@ -304,7 +305,7 @@ h1 {
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.detail-row dd.clickable:hover {
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
.detail-row dd.clickable:hover .search-icon,
|
||||
.detail-row dd:hover .search-icon {
|
||||
@@ -322,7 +323,7 @@ h1 {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
@@ -335,7 +336,7 @@ h1 {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: var(--sg-primary, #0066cc);
|
||||
color: var(--sg-primary);
|
||||
text-decoration: none;
|
||||
word-break: break-all;
|
||||
}
|
||||
@@ -359,7 +360,7 @@ h1 {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 48px;
|
||||
color: #e74c3c;
|
||||
color: var(--sg-error);
|
||||
}
|
||||
.error-state p {
|
||||
margin: 0;
|
||||
@@ -427,16 +428,16 @@ h1 {
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
.program-badge.fp7 {
|
||||
background: #e8eaf6;
|
||||
color: #283593;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
.program-badge.h2020 {
|
||||
background: #e3f2fd;
|
||||
color: #0d47a1;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
.program-badge.heu {
|
||||
background: #e8f5e9;
|
||||
color: #1b5e20;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
.tabs-container {
|
||||
@@ -444,9 +445,9 @@ h1 {
|
||||
gap: 4px;
|
||||
padding: 0 4px;
|
||||
margin-bottom: 24px;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: var(--sg-radius-md);
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
overflow-x: auto;
|
||||
}
|
||||
.tab-btn {
|
||||
@@ -465,13 +466,13 @@ h1 {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tab-btn:hover {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
background: var(--sg-surface-soft);
|
||||
color: var(--sg-text);
|
||||
}
|
||||
.tab-btn.active {
|
||||
background: #fff;
|
||||
color: var(--sg-primary, #0066cc);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
background: var(--sg-card-bg);
|
||||
color: var(--sg-primary);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
.tab-btn mat-icon {
|
||||
width: 20px;
|
||||
@@ -485,7 +486,7 @@ h1 {
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
padding: 0 6px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 10px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
@@ -515,15 +516,15 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e6e9ed;
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.eurosci-voc-item.clickable:hover {
|
||||
background: #f0f3f7;
|
||||
border-color: #b8c5d6;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-border-strong);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
.eurosci-voc-item .voc-path {
|
||||
display: flex;
|
||||
@@ -536,36 +537,36 @@ h1 {
|
||||
.eurosci-voc-item .path-segment {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
border: 1px solid #e6e9ed;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
.eurosci-voc-item .path-segment:last-child {
|
||||
background: #e8f0fe;
|
||||
border-color: #c5d8f0;
|
||||
color: #005a9c;
|
||||
background: var(--sg-primary-soft);
|
||||
border-color: var(--sg-border);
|
||||
color: var(--sg-blue-highlight);
|
||||
font-weight: 600;
|
||||
}
|
||||
.eurosci-voc-item .path-separator {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
.eurosci-voc-item .voc-code {
|
||||
font-size: 12px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-soft);
|
||||
font-family: monospace;
|
||||
background: #eef2f7;
|
||||
background: var(--sg-surface-soft);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.eurosci-voc-item .voc-description {
|
||||
font-size: 13px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@@ -580,9 +581,9 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
.erc-pi-item .pi-name {
|
||||
font-weight: 500;
|
||||
|
||||
@@ -221,14 +221,14 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
|
||||
*/
|
||||
private getKeywordColor(index: number): string {
|
||||
const colors = [
|
||||
'#3498db', // Blue
|
||||
'#e67e22', // Orange
|
||||
'#27ae60', // Green
|
||||
'#8e44ad', // Purple
|
||||
'#e74c3c', // Red
|
||||
'#1abc9c', // Teal
|
||||
'#f39c12', // Gold
|
||||
'#2c3e50', // Navy
|
||||
'var(--sg-blue-highlight)',
|
||||
'var(--sg-warning)',
|
||||
'var(--sg-success)',
|
||||
'var(--sg-primary)',
|
||||
'var(--sg-error)',
|
||||
'var(--sg-blue-highlight)',
|
||||
'var(--sg-warning)',
|
||||
'var(--sg-text-muted)',
|
||||
];
|
||||
return colors[index % colors.length];
|
||||
}
|
||||
@@ -326,22 +326,22 @@ export class EuDetailsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
getStatusColor(status: string | null | undefined): string {
|
||||
if (!status) return '#95a5a6';
|
||||
if (!status) return 'var(--sg-text-muted)';
|
||||
|
||||
const statusUpper = status.toUpperCase();
|
||||
if (statusUpper.includes('CLOSED') || statusUpper.includes('COMPLETED')) {
|
||||
return '#27ae60';
|
||||
return 'var(--sg-success)';
|
||||
} else if (
|
||||
statusUpper.includes('ONGOING') ||
|
||||
statusUpper.includes('ACTIVE')
|
||||
) {
|
||||
return '#f39c12';
|
||||
return 'var(--sg-warning)';
|
||||
} else if (statusUpper.includes('SIGNED')) {
|
||||
return '#3498db';
|
||||
return 'var(--sg-blue-highlight)';
|
||||
} else if (statusUpper.includes('CANCELLED')) {
|
||||
return '#e74c3c';
|
||||
return 'var(--sg-error)';
|
||||
} else {
|
||||
return '#95a5a6';
|
||||
return 'var(--sg-text-muted)';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+23
-23
@@ -5,10 +5,10 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
|
||||
mat-icon {
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 24px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
@@ -18,7 +18,7 @@
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,18 +31,18 @@
|
||||
|
||||
.mat-mdc-header-cell {
|
||||
font-weight: 600;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
background: #f8fafc;
|
||||
border-bottom: 2px solid #e6e9ed;
|
||||
background: var(--sg-surface-muted);
|
||||
border-bottom: 2px solid var(--sg-border);
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.mat-mdc-cell {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
.mat-mdc-row:hover {
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,21 +64,21 @@
|
||||
|
||||
.org-name-text {
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.org-name-cell:hover .org-name-text {
|
||||
color: #005a9c;
|
||||
color: var(--sg-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.role-chip {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.country-chip {
|
||||
@@ -95,27 +95,27 @@
|
||||
|
||||
.currency-value {
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.empty-value {
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.activity-chip {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
background: #f0f3f7;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.sme-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
background: #e8f5e9;
|
||||
color: #2e7d32;
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
@@ -132,23 +132,23 @@
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 2px 8px;
|
||||
background: #f0f3f7;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 4px;
|
||||
color: #4a5a6a;
|
||||
color: var(--sg-text);
|
||||
text-decoration: none;
|
||||
font-size: 12px;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #e8edf5;
|
||||
color: #005a9c;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.link-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.link-label {
|
||||
|
||||
+10
-10
@@ -3,7 +3,7 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.section-header mat-icon {
|
||||
@@ -33,19 +33,19 @@
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid #d9e2f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.ipr-icon {
|
||||
flex-shrink: 0;
|
||||
color: #f39c12;
|
||||
color: var(--sg-warning);
|
||||
|
||||
mat-icon {
|
||||
width: 24px;
|
||||
@@ -74,17 +74,17 @@
|
||||
|
||||
.ipr-type {
|
||||
padding: 1px 8px;
|
||||
background: #fff3e0;
|
||||
background: var(--sg-warning-soft);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #e65100;
|
||||
color: var(--sg-warning);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.ipr-patent-type {
|
||||
padding: 1px 8px;
|
||||
background: #e8eaf6;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: #283593;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.ipr-applicant {
|
||||
@@ -103,7 +103,7 @@
|
||||
.ipr-app-id,
|
||||
.ipr-award-id {
|
||||
padding: 1px 8px;
|
||||
background: #f5f7fa;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
}
|
||||
|
||||
+26
-24
@@ -3,6 +3,8 @@
|
||||
.publications-tab {
|
||||
.card {
|
||||
margin-bottom: 24px;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
.publication-institution-more {
|
||||
display: inline-flex;
|
||||
@@ -11,7 +13,7 @@
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
@@ -32,10 +34,10 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e6e9ed;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
|
||||
mat-icon {
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 24px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
@@ -45,7 +47,7 @@
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,28 +59,28 @@
|
||||
|
||||
.mat-mdc-header-cell {
|
||||
font-weight: 600;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
background: #f8fafc;
|
||||
border-bottom: 2px solid #e6e9ed;
|
||||
background: var(--sg-surface-muted);
|
||||
border-bottom: 2px solid var(--sg-border);
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.mat-mdc-cell {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mat-mdc-row {
|
||||
transition: background 0.2s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mat-mdc-row:hover {
|
||||
background: #f8fafc;
|
||||
&:hover {
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.pub-title-cell {
|
||||
@@ -90,27 +92,27 @@
|
||||
|
||||
.pub-title-text {
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.pub-title-cell:hover .pub-title-text {
|
||||
color: #005a9c;
|
||||
color: var(--sg-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.author-name:hover {
|
||||
color: #005a9c;
|
||||
color: var(--sg-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.journal-chip {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
background: #e8edf5;
|
||||
background: var(--sg-primary-soft);
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
max-width: 200px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -119,16 +121,16 @@
|
||||
|
||||
.year-value {
|
||||
font-weight: 500;
|
||||
color: #1a1a1a;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.publisher-text {
|
||||
color: #4a5a6a;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.empty-value {
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -144,17 +146,17 @@
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 10px;
|
||||
background: #f0f3f7;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 12px;
|
||||
color: #4a5a6a;
|
||||
color: var(--sg-text);
|
||||
text-decoration: none;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #e8edf5;
|
||||
color: #005a9c;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -162,7 +164,7 @@
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: #6b7a8a;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.link-label {
|
||||
|
||||
@@ -37,13 +37,7 @@
|
||||
padding: 38px 42px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-lg);
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at 90% 10%,
|
||||
rgba(200, 217, 255, 0.75),
|
||||
transparent 35%
|
||||
),
|
||||
linear-gradient(140deg, #fff 0%, #f8faff 100%);
|
||||
background: var(--sg-card-bg);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
@@ -59,7 +53,7 @@
|
||||
padding: 5px 10px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
background: var(--sg-surface-muted);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
@@ -71,6 +65,7 @@ h1 {
|
||||
margin: 20px 0 13px;
|
||||
font-size: clamp(27px, 3vw, 42px);
|
||||
line-height: 1.13;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.author-line {
|
||||
@@ -93,7 +88,7 @@ h1 {
|
||||
padding: 9px 16px;
|
||||
border: 1px solid var(--sg-border-strong);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
@@ -102,7 +97,7 @@ h1 {
|
||||
.hero-actions a.primary-action {
|
||||
border-color: var(--sg-primary);
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.hero-actions mat-icon {
|
||||
@@ -116,9 +111,9 @@ h1 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
align-self: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(199, 211, 232, 0.8);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-md);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.metrics div {
|
||||
@@ -159,10 +154,10 @@ h1 {
|
||||
gap: 10px;
|
||||
margin-top: 20px;
|
||||
padding: 14px 18px;
|
||||
border: 1px solid #f1c6cc;
|
||||
border: 1px solid var(--sg-error);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff4f5;
|
||||
color: #9c2637;
|
||||
background: var(--sg-error-soft);
|
||||
color: var(--sg-error);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -210,7 +205,7 @@ aside {
|
||||
transition: background 0.12s;
|
||||
|
||||
&:hover {
|
||||
background: #f6f9ff;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
@@ -229,8 +224,8 @@ aside {
|
||||
.count-badge {
|
||||
padding: 2px 7px;
|
||||
border-radius: 999px;
|
||||
background: #e8effe;
|
||||
color: #3b5bd6;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -275,6 +270,7 @@ aside {
|
||||
.section-title h2 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.section-title span {
|
||||
@@ -312,7 +308,7 @@ aside {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 50%;
|
||||
background: #e5ecfb;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
|
||||
@@ -101,8 +101,8 @@
|
||||
height: 9px;
|
||||
margin-right: 7px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(255, 255, 255, 0.85);
|
||||
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
|
||||
border: 1px solid var(--sg-color-mix-base);
|
||||
box-shadow: 0 0 0 1px var(--sg-border-strong);
|
||||
}
|
||||
|
||||
.node-header {
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
.content {
|
||||
--topic-border: color-mix(in srgb, hsl(var(--topic-color)) 72%, #ffffff);
|
||||
--topic-background: color-mix(in srgb, hsl(var(--topic-color)) 8%, #ffffff);
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-background: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
.pie-chart-holder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
border: 1px solid #d7e4ff;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 16px;
|
||||
padding: 1.25rem;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
min-height: clamp(420px, 48vh, 580px);
|
||||
@@ -20,7 +20,7 @@
|
||||
.pie-chart-title {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--sg-text);
|
||||
margin: 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
@@ -28,7 +28,7 @@
|
||||
.pie-chart-subtext {
|
||||
display: block;
|
||||
font-size: 0.75rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
@@ -50,14 +50,14 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
background: var(--sg-card-bg);
|
||||
border-radius: 16px;
|
||||
z-index: 10;
|
||||
gap: 0.75rem;
|
||||
|
||||
.pie-loader-text {
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
+27
-24
@@ -2,6 +2,7 @@ import {
|
||||
Component,
|
||||
input,
|
||||
computed,
|
||||
inject,
|
||||
ChangeDetectionStrategy,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
@@ -12,6 +13,7 @@ import {
|
||||
topicHierarchyColor,
|
||||
TopicColorVariant,
|
||||
} from '../../../resolvers/utils/topic-colors';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
|
||||
import { MatProgressSpinner } from '@angular/material/progress-spinner';
|
||||
|
||||
@@ -23,6 +25,8 @@ import { MatProgressSpinner } from '@angular/material/progress-spinner';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class UniPieChartComponent {
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
readonly data = input<TrendResponse | null>(null);
|
||||
readonly entityId = input<string | null>(null);
|
||||
readonly entityName = input<string | null>(null);
|
||||
@@ -31,7 +35,6 @@ export class UniPieChartComponent {
|
||||
readonly getTopicColor =
|
||||
input<(topic: string, variant?: TopicColorVariant) => string>();
|
||||
|
||||
// Inputs for direct rendering (useful for overall top 10 topics chart)
|
||||
readonly titleText = input<string | null>(null);
|
||||
readonly pieData = input<{ value: number; name: string }[] | null>(null);
|
||||
readonly loading = input<boolean>(false);
|
||||
@@ -54,39 +57,38 @@ export class UniPieChartComponent {
|
||||
|
||||
private resolveTopicColorTokens(topic: string) {
|
||||
if (topic === 'Andere Themen') {
|
||||
return { color: 'hsl(214, 20%, 93%)', border: 'hsl(214, 20%, 80%)' };
|
||||
return { color: 'hsl(214, 20%, 45%)', border: 'hsl(214, 20%, 35%)' };
|
||||
}
|
||||
const customResolver = this.getTopicColor();
|
||||
const bgColor = customResolver
|
||||
? customResolver(topic, 'bg')
|
||||
: topicHierarchyColor({ name: topic }, 'bg');
|
||||
const border = customResolver
|
||||
? customResolver(topic, 'border')
|
||||
: topicHierarchyColor({ name: topic }, 'border');
|
||||
return { color: bgColor, border };
|
||||
const color = customResolver
|
||||
? customResolver(topic, 'base')
|
||||
: topicHierarchyColor({ name: topic }, 'base');
|
||||
return { color, border: color };
|
||||
}
|
||||
|
||||
readonly chartOptions = computed<EChartsOption>(() => {
|
||||
// 1. Check loading state
|
||||
const textColor = this.chartTheme.colors().text;
|
||||
const tooltipBg = this.chartTheme.colors().tooltipBg;
|
||||
const tooltipBorder = this.chartTheme.colors().tooltipBorder;
|
||||
|
||||
if (this.loading()) {
|
||||
return {
|
||||
title: {
|
||||
text: 'Lade Daten...',
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
textStyle: { color: '#6b7280', fontSize: 13 },
|
||||
textStyle: { color: textColor, fontSize: 13 },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
// 2. Check error state
|
||||
if (this.error()) {
|
||||
return {
|
||||
title: {
|
||||
text: 'Fehler beim Laden',
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
textStyle: { color: '#ef4444', fontSize: 13 },
|
||||
textStyle: { color: 'var(--sg-error)', fontSize: 13 },
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -96,7 +98,6 @@ export class UniPieChartComponent {
|
||||
|
||||
let pieDataList: any[] = [];
|
||||
|
||||
// 3. If direct pieData input is provided, use it
|
||||
const directData = this.pieData();
|
||||
if (directData !== null) {
|
||||
pieDataList = directData.map((item) => {
|
||||
@@ -107,20 +108,18 @@ export class UniPieChartComponent {
|
||||
itemStyle: {
|
||||
color: tokens.color,
|
||||
opacity: 0.95,
|
||||
borderColor: tokens.border,
|
||||
borderWidth: 1.5,
|
||||
borderColor: this.chartTheme.colors().cardBg,
|
||||
borderWidth: 2,
|
||||
},
|
||||
};
|
||||
});
|
||||
} else {
|
||||
// Otherwise, filter and extract from TrendResponse
|
||||
const trendData = this.data();
|
||||
const entityIdVal = this.entityId();
|
||||
if (!trendData || !entityIdVal) {
|
||||
return {};
|
||||
}
|
||||
|
||||
// Find the series for the selected entity (resilient matching)
|
||||
const series = trendData.series.find((s) => {
|
||||
const sId = s.entity_id;
|
||||
const targetId = entityIdVal;
|
||||
@@ -138,7 +137,7 @@ export class UniPieChartComponent {
|
||||
text: 'Keine Daten vorhanden',
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
textStyle: { color: '#6b7280', fontSize: 13 },
|
||||
textStyle: { color: textColor, fontSize: 13 },
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -174,8 +173,8 @@ export class UniPieChartComponent {
|
||||
itemStyle: {
|
||||
color: tokens.color,
|
||||
opacity: 0.95,
|
||||
borderColor: tokens.border,
|
||||
borderWidth: 1.5,
|
||||
borderColor: this.chartTheme.colors().cardBg,
|
||||
borderWidth: 2,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -188,7 +187,7 @@ export class UniPieChartComponent {
|
||||
text: `Keine Daten im Zeitraum ${startYr} - ${endYr}`,
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
textStyle: { color: '#6b7280', fontSize: 13 },
|
||||
textStyle: { color: textColor, fontSize: 13 },
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -196,6 +195,9 @@ export class UniPieChartComponent {
|
||||
return {
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
backgroundColor: tooltipBg,
|
||||
borderColor: tooltipBorder,
|
||||
textStyle: { color: textColor },
|
||||
formatter: '{b}: <strong>{c}</strong> ({d}%)',
|
||||
},
|
||||
legend: {
|
||||
@@ -210,7 +212,7 @@ export class UniPieChartComponent {
|
||||
avoidLabelOverlap: true,
|
||||
itemStyle: {
|
||||
borderRadius: 6,
|
||||
borderColor: '#fff',
|
||||
borderColor: 'transparent',
|
||||
borderWidth: 2,
|
||||
},
|
||||
label: {
|
||||
@@ -219,7 +221,7 @@ export class UniPieChartComponent {
|
||||
fontSize: 10,
|
||||
fontWeight: 500,
|
||||
formatter: '{b}: {d}%',
|
||||
color: '#374151',
|
||||
color: textColor,
|
||||
},
|
||||
labelLine: {
|
||||
show: true,
|
||||
@@ -239,6 +241,7 @@ export class UniPieChartComponent {
|
||||
show: true,
|
||||
fontSize: 11,
|
||||
fontWeight: 'bold',
|
||||
color: textColor,
|
||||
},
|
||||
},
|
||||
data: pieDataList,
|
||||
|
||||
+6
-1
@@ -9,7 +9,12 @@
|
||||
<div class="no-data-msg">
|
||||
<div class="icon">
|
||||
<mat-icon
|
||||
style="font-size: 48px; width: 48px; height: 48px; color: #9ca3af"
|
||||
style="
|
||||
font-size: 48px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
color: var(--sg-text-soft);
|
||||
"
|
||||
>bar_chart</mat-icon
|
||||
>
|
||||
</div>
|
||||
|
||||
+6
-7
@@ -3,8 +3,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 450px;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
backdrop-filter: blur(10px);
|
||||
background: var(--sg-card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
@@ -21,11 +20,11 @@
|
||||
justify-content: center;
|
||||
height: 380px;
|
||||
text-align: center;
|
||||
color: #4b5563;
|
||||
color: var(--sg-text-muted);
|
||||
padding: 24px;
|
||||
border: 2px dashed #e5e7eb;
|
||||
border: 2px dashed var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: rgba(249, 250, 251, 0.5);
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.icon {
|
||||
font-size: 48px;
|
||||
@@ -36,13 +35,13 @@
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
color: var(--sg-text);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 14px;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
max-width: 320px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
+55
-57
@@ -3,11 +3,13 @@ import {
|
||||
ChangeDetectionStrategy,
|
||||
input,
|
||||
computed,
|
||||
inject,
|
||||
} from '@angular/core';
|
||||
import { EChartsOption } from 'echarts';
|
||||
import { NgxEchartsDirective } from 'ngx-echarts';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TrendResponse, TrendSeries, TopicYearlyData } from '../../../api';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-uni-trend-chart',
|
||||
@@ -17,7 +19,8 @@ import { TrendResponse, TrendSeries, TopicYearlyData } from '../../../api';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class UniTrendChartComponent {
|
||||
// Input signals following Angular v21 standards
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
|
||||
readonly data = input<TrendResponse | null>(null);
|
||||
readonly mode = input<'normalized' | 'total' | 'cumulative'>('normalized');
|
||||
readonly activeTopic = input<string | null>(null);
|
||||
@@ -25,13 +28,17 @@ export class UniTrendChartComponent {
|
||||
readonly endYear = input<number>(2025);
|
||||
readonly getEntityColor = input<(id: string) => string>();
|
||||
|
||||
// Computed signal to automatically rebuild ECharts options when data or mode changes
|
||||
readonly chartOptions = computed<EChartsOption>(() => {
|
||||
const trendData = this.data();
|
||||
if (!trendData || !trendData.series || trendData.series.length === 0) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const textColor = this.chartTheme.colors().text;
|
||||
const splitLineColor = this.chartTheme.colors().splitLine;
|
||||
const tooltipBg = this.chartTheme.colors().tooltipBg;
|
||||
const tooltipBorder = this.chartTheme.colors().tooltipBorder;
|
||||
|
||||
const currentMode = this.mode();
|
||||
const startYr = this.startYear();
|
||||
const endYr = this.endYear();
|
||||
@@ -69,31 +76,29 @@ export class UniTrendChartComponent {
|
||||
|
||||
const series: any[] = [];
|
||||
const entityColors = [
|
||||
'#ec4899', // Pink
|
||||
'#3b82f6', // Blue
|
||||
'#10b981', // Emerald Green
|
||||
'#f59e0b', // Amber/Yellow
|
||||
'#8b5cf6', // Purple
|
||||
'#06b6d4', // Cyan
|
||||
'#6366f1', // Indigo
|
||||
'#ef4444', // Red
|
||||
'#14b8a6', // Teal
|
||||
'#f97316', // Orange
|
||||
'#d946ef', // Fuchsia
|
||||
'#84cc16', // Lime
|
||||
'#22c55e', // Green
|
||||
'#a855f7', // Purple/Fuchsia
|
||||
'#eab308', // Amber/Yellow Dark
|
||||
'#f43f5e', // Rose
|
||||
'#ec4899',
|
||||
'#3b82f6',
|
||||
'#10b981',
|
||||
'#f59e0b',
|
||||
'#8b5cf6',
|
||||
'#06b6d4',
|
||||
'#6366f1',
|
||||
'#ef4444',
|
||||
'#14b8a6',
|
||||
'#f97316',
|
||||
'#d946ef',
|
||||
'#84cc16',
|
||||
'#22c55e',
|
||||
'#a855f7',
|
||||
'#eab308',
|
||||
'#f43f5e',
|
||||
];
|
||||
const getFn = this.getEntityColor();
|
||||
|
||||
// Find index of first visible series for markLine zero baseline attachment
|
||||
const firstVisibleIdx = trendData.series.findIndex(
|
||||
(s) => (s as any).visible !== false,
|
||||
);
|
||||
|
||||
// Build series: Line in top grid, growth volume bars and S-Curve in bottom grid
|
||||
trendData.series.forEach((entity, entityIdx) => {
|
||||
const rawColor = getFn
|
||||
? getFn(entity.entity_id)
|
||||
@@ -107,7 +112,6 @@ export class UniTrendChartComponent {
|
||||
}
|
||||
const yrTopicData = entity.topic_data[selectedTopic] || [];
|
||||
|
||||
// 1. Add line series for the currently selected topic (placed in Grid 0)
|
||||
const lineData = years.map((year) => {
|
||||
const yrData = yrTopicData.find((y) => y.year === year);
|
||||
if (!yrData) return 0;
|
||||
@@ -140,15 +144,11 @@ export class UniTrendChartComponent {
|
||||
},
|
||||
});
|
||||
|
||||
// 2. Add YoY growth volume bars for the selected topic (placed in Grid 1)
|
||||
const bars = years.map((year) => {
|
||||
const yrData = yrTopicData.find((y) => y.year === year);
|
||||
const val = yrData ? yrData.raw : 0;
|
||||
|
||||
// Find previous year's raw count (even if previous year is outside the viewport years range!)
|
||||
const prevYrData = yrTopicData.find((y) => y.year === year - 1);
|
||||
const prevVal = prevYrData ? prevYrData.raw : 0;
|
||||
|
||||
return val - prevVal;
|
||||
});
|
||||
|
||||
@@ -169,7 +169,7 @@ export class UniTrendChartComponent {
|
||||
label: { show: false },
|
||||
lineStyle: {
|
||||
type: 'solid',
|
||||
color: '#374151',
|
||||
color: textColor,
|
||||
width: 1.5,
|
||||
},
|
||||
data: [{ yAxis: 0 }],
|
||||
@@ -192,21 +192,21 @@ export class UniTrendChartComponent {
|
||||
textStyle: {
|
||||
fontSize: 16,
|
||||
fontWeight: 600,
|
||||
color: '#1f2937',
|
||||
color: textColor,
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
enterable: true,
|
||||
backgroundColor: 'rgba(255, 255, 255, 0.98)',
|
||||
borderColor: '#e5e7eb',
|
||||
backgroundColor: tooltipBg,
|
||||
borderColor: tooltipBorder,
|
||||
borderWidth: 1,
|
||||
padding: 8,
|
||||
confine: true,
|
||||
extraCssText:
|
||||
'z-index: 9999; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border-radius: 8px;',
|
||||
textStyle: {
|
||||
color: '#374151',
|
||||
color: textColor,
|
||||
fontSize: 11,
|
||||
},
|
||||
formatter: (params: any) => {
|
||||
@@ -214,8 +214,8 @@ export class UniTrendChartComponent {
|
||||
const yearNum = parseInt(params[0].name, 10);
|
||||
|
||||
let res = `<div style="font-family: 'Inter', sans-serif; min-width: 380px; max-width: 500px; box-sizing: border-box;">`;
|
||||
res += `<strong style="font-size: 13px; color: #111827;">Jahr: ${yearNum}</strong>`;
|
||||
res += `<hr style="border: 0; border-top: 1px solid #e5e7eb; margin: 6px 0;"/>`;
|
||||
res += `<strong style="font-size: 13px; color: ${textColor};">Jahr: ${yearNum}</strong>`;
|
||||
res += `<hr style="border: 0; border-top: 1px solid ${splitLineColor}; margin: 6px 0;"/>`;
|
||||
res += `<div style="max-height: 280px; overflow-y: auto; padding-right: 6px;">`;
|
||||
|
||||
trendData.series.forEach((entity: TrendSeries, entityIdx: number) => {
|
||||
@@ -231,7 +231,6 @@ export class UniTrendChartComponent {
|
||||
}
|
||||
const yrTopicData = entity.topic_data[selectedTopic] || [];
|
||||
|
||||
// Recalculate cumulative sum map for this entity
|
||||
const cumulativeSumMap = new Map<number, number>();
|
||||
let runningSum = 0;
|
||||
trendData.years.forEach((yr) => {
|
||||
@@ -248,7 +247,6 @@ export class UniTrendChartComponent {
|
||||
const normVal = yrData.normalized.toFixed(2);
|
||||
const cumVal = cumulativeSumMap.get(yearNum) || 0;
|
||||
|
||||
// YoY growth
|
||||
const prevYrData = yrTopicData.find(
|
||||
(y) => y.year === yearNum - 1,
|
||||
);
|
||||
@@ -337,29 +335,29 @@ export class UniTrendChartComponent {
|
||||
res += `<div style="margin-bottom: 8px;">`;
|
||||
res += `<div style="display: flex; align-items: center; gap: 5px; margin-bottom: 2px;">`;
|
||||
res += `<span style="display:inline-block;border-radius:50%;width:8px;height:8px;background-color:${color};"></span>`;
|
||||
res += `<strong style="color: #111827; font-size: 11px;">${entity.entity_name}</strong>`;
|
||||
res += `<strong style="color: ${textColor}; font-size: 11px;">${entity.entity_name}</strong>`;
|
||||
res += `</div>`;
|
||||
|
||||
res += `<table style="width: calc(100% - 15px); border-collapse: collapse; font-size: 10px; color: #4b5563; margin-left: 13px;">`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Publikationen:</td><td style="text-align: right; font-weight: 600; color: #1f2937; padding-left: 10px;">${rawCount.toLocaleString()}${contributionStr}</td></tr>`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Normiert (0-1):</td><td style="text-align: right; font-weight: 600; color: #1f2937;">${normVal}</td></tr>`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Kumuliert:</td><td style="text-align: right; font-weight: 600; color: #1f2937;">${cumVal.toLocaleString()}</td></tr>`;
|
||||
res += `<table style="width: calc(100% - 15px); border-collapse: collapse; font-size: 10px; color: ${textColor}; margin-left: 13px;">`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Publikationen:</td><td style="text-align: right; font-weight: 600; color: ${textColor}; padding-left: 10px;">${rawCount.toLocaleString()}${contributionStr}</td></tr>`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Normiert (0-1):</td><td style="text-align: right; font-weight: 600; color: ${textColor};">${normVal}</td></tr>`;
|
||||
res += `<tr><td style="padding: 1px 0;">• Kumuliert:</td><td style="text-align: right; font-weight: 600; color: ${textColor};">${cumVal.toLocaleString()}</td></tr>`;
|
||||
|
||||
const yoySign = yoyGrowth > 0 ? '+' : '';
|
||||
const yoyColor =
|
||||
yoyGrowth > 0
|
||||
? '#10b981'
|
||||
? 'var(--sg-success)'
|
||||
: yoyGrowth < 0
|
||||
? '#ef4444'
|
||||
: '#6b7280';
|
||||
? 'var(--sg-error)'
|
||||
: textColor;
|
||||
res += `<tr><td style="padding: 1px 0;">• YoY Wachstum:</td><td style="text-align: right; font-weight: 600; color: ${yoyColor};">${yoySign}${yoyGrowth.toLocaleString()}</td></tr>`;
|
||||
res += `</table>`;
|
||||
res += `</div>`;
|
||||
}
|
||||
});
|
||||
|
||||
res += `</div>`; // closes scrollable div
|
||||
res += `</div>`; // closes main wrapper
|
||||
res += `</div>`;
|
||||
res += `</div>`;
|
||||
return res;
|
||||
},
|
||||
},
|
||||
@@ -368,7 +366,7 @@ export class UniTrendChartComponent {
|
||||
},
|
||||
axisPointer: {
|
||||
link: [{ xAxisIndex: 'all' }],
|
||||
label: { backgroundColor: '#777' },
|
||||
label: { backgroundColor: splitLineColor, color: textColor },
|
||||
},
|
||||
grid: [
|
||||
{
|
||||
@@ -389,8 +387,8 @@ export class UniTrendChartComponent {
|
||||
type: 'category',
|
||||
data: xAxisData,
|
||||
boundaryGap: false,
|
||||
axisLine: { onZero: false, lineStyle: { color: '#e5e7eb' } },
|
||||
axisLabel: { color: '#4b5563' },
|
||||
axisLine: { onZero: false, lineStyle: { color: splitLineColor } },
|
||||
axisLabel: { color: textColor },
|
||||
splitLine: { show: false },
|
||||
min: 'dataMin',
|
||||
max: 'dataMax',
|
||||
@@ -401,7 +399,7 @@ export class UniTrendChartComponent {
|
||||
gridIndex: 1,
|
||||
data: xAxisData,
|
||||
boundaryGap: false,
|
||||
axisLine: { onZero: false, lineStyle: { color: '#e5e7eb' } },
|
||||
axisLine: { onZero: false, lineStyle: { color: splitLineColor } },
|
||||
axisTick: { show: false },
|
||||
splitLine: { show: false },
|
||||
axisLabel: { show: false },
|
||||
@@ -417,13 +415,13 @@ export class UniTrendChartComponent {
|
||||
nameRotate: 90,
|
||||
nameGap: 50,
|
||||
nameTextStyle: {
|
||||
color: '#4b5563',
|
||||
color: textColor,
|
||||
padding: [0, 0, 8, 0],
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
axisLabel: { color: '#4b5563' },
|
||||
axisLine: { lineStyle: { color: '#e5e7eb' } },
|
||||
splitLine: { lineStyle: { color: '#f3f4f6' } },
|
||||
axisLabel: { color: textColor },
|
||||
axisLine: { lineStyle: { color: splitLineColor } },
|
||||
splitLine: { lineStyle: { color: splitLineColor } },
|
||||
},
|
||||
{
|
||||
scale: false,
|
||||
@@ -431,7 +429,7 @@ export class UniTrendChartComponent {
|
||||
splitNumber: 2,
|
||||
axisLabel: {
|
||||
show: true,
|
||||
color: '#6b7280',
|
||||
color: textColor,
|
||||
fontSize: 9,
|
||||
formatter: (value: number) => {
|
||||
return value > 0 ? `+${value}` : `${value}`;
|
||||
@@ -440,13 +438,13 @@ export class UniTrendChartComponent {
|
||||
axisLine: {
|
||||
show: true,
|
||||
onZero: true,
|
||||
lineStyle: { color: '#9ca3af', width: 1 },
|
||||
lineStyle: { color: splitLineColor, width: 1 },
|
||||
},
|
||||
axisTick: { show: false },
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: '#e5e7eb',
|
||||
color: splitLineColor,
|
||||
type: 'dashed',
|
||||
},
|
||||
},
|
||||
@@ -470,7 +468,7 @@ export class UniTrendChartComponent {
|
||||
xAxisIndex: [0, 1],
|
||||
bottom: 30,
|
||||
height: 15,
|
||||
borderColor: '#e5e7eb',
|
||||
borderColor: splitLineColor,
|
||||
fillerColor: 'rgba(236, 72, 153, 0.1)',
|
||||
handleIcon:
|
||||
'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
||||
@@ -480,7 +478,7 @@ export class UniTrendChartComponent {
|
||||
shadowBlur: 3,
|
||||
shadowColor: 'rgba(0, 0, 0, 0.2)',
|
||||
},
|
||||
textStyle: { color: '#4b5563' },
|
||||
textStyle: { color: textColor },
|
||||
},
|
||||
],
|
||||
series: series,
|
||||
|
||||
+5
-3
@@ -273,19 +273,21 @@
|
||||
margin-bottom: 16px;
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
color: #101a3d;
|
||||
color: var(--sg-text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
">
|
||||
<mat-icon style="color: #6366f1">account_tree</mat-icon>
|
||||
<mat-icon style="color: var(--sg-primary)"
|
||||
>account_tree</mat-icon
|
||||
>
|
||||
Themen-Hierarchie & Verteilung (Treemap)
|
||||
@if (selectedPieEntity()?.name || primaryInstitutionName()) {
|
||||
<span
|
||||
style="
|
||||
font-weight: 500;
|
||||
font-size: 0.95rem;
|
||||
color: #64708f;
|
||||
color: var(--sg-text-muted);
|
||||
">
|
||||
·
|
||||
{{ selectedPieEntity()?.name || primaryInstitutionName() }}
|
||||
|
||||
+29
-35
@@ -4,21 +4,16 @@
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
font-family:
|
||||
'Inter',
|
||||
system-ui,
|
||||
-apple-system,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
.strategy-toggles-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 12px;
|
||||
padding: 6px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
|
||||
button {
|
||||
padding: 0.45rem 0.9rem;
|
||||
@@ -26,7 +21,7 @@
|
||||
background: none;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
color: var(--sg-text-muted);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
@@ -41,8 +36,8 @@
|
||||
}
|
||||
|
||||
&:hover:not(.active):not([disabled]) {
|
||||
color: #0f172a;
|
||||
background: #f1f5f9;
|
||||
color: var(--sg-text);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&[disabled] {
|
||||
@@ -51,12 +46,10 @@
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: white;
|
||||
color: #2563eb;
|
||||
background: var(--sg-card-bg);
|
||||
color: var(--sg-primary);
|
||||
font-weight: 600;
|
||||
box-shadow:
|
||||
0 2px 4px rgba(0, 0, 0, 0.05),
|
||||
0 1px 2px rgba(0, 0, 0, 0.03);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,11 +68,11 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
background: white;
|
||||
background: var(--sg-card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem 1.25rem;
|
||||
border: 1px solid #e5e7eb;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -97,21 +90,21 @@
|
||||
.toggle-label {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: #4b5563;
|
||||
color: var(--sg-text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
mat-button-toggle-group {
|
||||
border: 1px solid #e2e8f0;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: #f8fafc;
|
||||
background: var(--sg-surface-muted);
|
||||
box-shadow: none;
|
||||
|
||||
mat-button-toggle {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: #475569;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
mat-icon {
|
||||
font-size: 16px;
|
||||
@@ -127,8 +120,8 @@
|
||||
}
|
||||
|
||||
.mat-button-toggle-checked {
|
||||
background-color: white !important;
|
||||
color: #2563eb !important;
|
||||
background-color: var(--sg-card-bg) !important;
|
||||
color: var(--sg-primary) !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
@@ -151,10 +144,10 @@
|
||||
|
||||
.chart-holder-card {
|
||||
position: relative;
|
||||
background: white;
|
||||
background: var(--sg-card-bg);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e5e7eb;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
border: 1px solid var(--sg-border);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
overflow: hidden;
|
||||
min-height: 450px;
|
||||
width: 100%;
|
||||
@@ -167,8 +160,8 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
background: var(--sg-surface-muted);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.loader-overlay {
|
||||
@@ -177,7 +170,8 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
background: var(--sg-card-bg);
|
||||
opacity: 0.85;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -188,7 +182,7 @@
|
||||
p {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: #3b82f6;
|
||||
color: var(--sg-primary);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@@ -227,10 +221,10 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 400px;
|
||||
background: white;
|
||||
background: var(--sg-card-bg);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e5e7eb;
|
||||
color: #9ca3af;
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-soft);
|
||||
gap: 0.75rem;
|
||||
|
||||
mat-icon {
|
||||
@@ -242,7 +236,7 @@
|
||||
p {
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 500;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,19 +75,17 @@ export function classificationSectionColor(
|
||||
(letter ? IPC_SECTION_HUES[letter] : undefined) ??
|
||||
stableHue(section ?? 'section');
|
||||
|
||||
return `hsl(${normalizeHue(hue)} ${FIELD_COLOR_SATURATION}% ${FIELD_COLOR_LIGHTNESS}%)`;
|
||||
return `hsl(${normalizeHue(hue)}, ${FIELD_COLOR_SATURATION}%, ${FIELD_COLOR_LIGHTNESS}%)`;
|
||||
}
|
||||
|
||||
export type TopicColorVariant = 'base' | 'bg' | 'border';
|
||||
export type TopicColorVariant = 'base';
|
||||
|
||||
export function topicHierarchyColor(
|
||||
topic: TopicHierarchyColorInput | undefined | null,
|
||||
variant: TopicColorVariant = 'base',
|
||||
_variant: TopicColorVariant = 'base',
|
||||
): string {
|
||||
if (!topic) {
|
||||
if (variant === 'bg') return 'hsl(214, 80%, 95%)';
|
||||
if (variant === 'border') return 'hsl(214, 60%, 85%)';
|
||||
return 'hsl(214 82% 42%)';
|
||||
return `hsl(214, ${FIELD_COLOR_SATURATION}%, ${FIELD_COLOR_LIGHTNESS}%)`;
|
||||
}
|
||||
|
||||
const fieldKey = normalizeColorKey(topic.field_name);
|
||||
@@ -107,13 +105,6 @@ export function topicHierarchyColor(
|
||||
stableHue(fallbackIdentity);
|
||||
const hue = normalizeHue(baseHue);
|
||||
|
||||
if (variant === 'bg') {
|
||||
return `hsl(${hue}, 75%, 80%)`;
|
||||
}
|
||||
if (variant === 'border') {
|
||||
return `hsl(${hue}, 60%, 65%)`;
|
||||
}
|
||||
|
||||
return `hsl(${hue}, ${FIELD_COLOR_SATURATION}%, ${FIELD_COLOR_LIGHTNESS}%)`;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
import { Injectable, computed, inject } from '@angular/core';
|
||||
import { ThemeService } from './theme.service';
|
||||
|
||||
export interface ChartThemeColors {
|
||||
textColor: string;
|
||||
mutedTextColor: string;
|
||||
gridLineColor: string;
|
||||
backgroundColor: string;
|
||||
tooltipBg: string;
|
||||
tooltipBorder: string;
|
||||
tooltipTextColor: string;
|
||||
labelColor: string;
|
||||
cardBg: string;
|
||||
text: string;
|
||||
splitLine: string;
|
||||
|
||||
// Semantic canvas palette tokens (evaluated hex strings for canvas context)
|
||||
primary: string;
|
||||
blueHighlight: string;
|
||||
warning: string;
|
||||
success: string;
|
||||
error: string;
|
||||
authorColors: string[];
|
||||
subfieldColors: string[];
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ChartThemeService {
|
||||
private theme = inject(ThemeService);
|
||||
|
||||
readonly isDark = this.theme.isDark;
|
||||
|
||||
/** Computed theme colors for ECharts options */
|
||||
readonly colors = computed<ChartThemeColors>(() => {
|
||||
const dark = this.theme.isDark();
|
||||
const textVal = dark ? '#e8edf8' : '#334155';
|
||||
const splitLineVal = dark ? '#283654' : '#e2e8f0';
|
||||
|
||||
return {
|
||||
textColor: textVal,
|
||||
text: textVal,
|
||||
mutedTextColor: dark ? '#9aa8c7' : '#64748b',
|
||||
gridLineColor: splitLineVal,
|
||||
splitLine: splitLineVal,
|
||||
backgroundColor: 'transparent',
|
||||
tooltipBg: dark ? '#1a2340' : '#ffffff',
|
||||
tooltipBorder: dark ? '#283654' : '#dde5f2',
|
||||
tooltipTextColor: textVal,
|
||||
labelColor: dark ? '#e8edf8' : '#ffffff',
|
||||
cardBg: dark ? '#131b2e' : '#ffffff',
|
||||
|
||||
primary: dark ? '#a78bfa' : '#7255d9',
|
||||
blueHighlight: dark ? '#60a5fa' : '#2563eb',
|
||||
warning: dark ? '#fbbf24' : '#d97706',
|
||||
success: dark ? '#34d399' : '#16a34a',
|
||||
error: dark ? '#f87171' : '#dc2626',
|
||||
|
||||
authorColors: dark
|
||||
? ['#60a5fa', '#fbbf24', '#34d399', '#c084fc']
|
||||
: ['#1565c0', '#e6550d', '#2ca02c', '#9467bd'],
|
||||
subfieldColors: dark
|
||||
? [
|
||||
'#60a5fa',
|
||||
'#34d399',
|
||||
'#fbbf24',
|
||||
'#c084fc',
|
||||
'#22d3ee',
|
||||
'#f472b6',
|
||||
'#a3e635',
|
||||
'#f59e0b',
|
||||
]
|
||||
: [
|
||||
'#2563eb',
|
||||
'#16a34a',
|
||||
'#d97706',
|
||||
'#7c3aed',
|
||||
'#0891b2',
|
||||
'#db2777',
|
||||
'#65a30d',
|
||||
'#b45309',
|
||||
],
|
||||
};
|
||||
});
|
||||
|
||||
/**
|
||||
* Resolves a CSS custom property string into a concrete computed color value
|
||||
*/
|
||||
resolveCssColor(variable: string, fallback: string = ''): string {
|
||||
if (typeof getComputedStyle !== 'function') {
|
||||
return fallback;
|
||||
}
|
||||
const val = getComputedStyle(document.documentElement)
|
||||
.getPropertyValue(variable)
|
||||
.trim();
|
||||
return val || fallback;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
import {
|
||||
Injectable,
|
||||
signal,
|
||||
effect,
|
||||
inject,
|
||||
DOCUMENT,
|
||||
RendererFactory2,
|
||||
computed,
|
||||
} from '@angular/core';
|
||||
|
||||
export type ThemeMode = 'light' | 'dark' | 'system';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ThemeService {
|
||||
private document = inject(DOCUMENT);
|
||||
private renderer = inject(RendererFactory2).createRenderer(null, null);
|
||||
|
||||
private readonly storageKey = 'sg-theme-mode';
|
||||
|
||||
/** Theme selection mode: 'light', 'dark', or 'system' */
|
||||
readonly mode = signal<ThemeMode>(this.readInitialMode());
|
||||
|
||||
/** Whether dark mode is active based on mode and system preferences */
|
||||
readonly isDark = signal<boolean>(false);
|
||||
|
||||
/** Label for current mode in UI */
|
||||
readonly currentModeLabel = computed(() => {
|
||||
switch (this.mode()) {
|
||||
case 'light':
|
||||
return 'Hell';
|
||||
case 'dark':
|
||||
return 'Dunkel';
|
||||
case 'system':
|
||||
return 'System';
|
||||
}
|
||||
});
|
||||
|
||||
/** Icon for current mode in UI */
|
||||
readonly currentModeIcon = computed(() => {
|
||||
switch (this.mode()) {
|
||||
case 'light':
|
||||
return 'light_mode';
|
||||
case 'dark':
|
||||
return 'dark_mode';
|
||||
case 'system':
|
||||
return 'desktop_windows';
|
||||
}
|
||||
});
|
||||
|
||||
constructor() {
|
||||
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
|
||||
const updateThemeState = () => {
|
||||
const currentMode = this.mode();
|
||||
localStorage.setItem(this.storageKey, currentMode);
|
||||
|
||||
const dark =
|
||||
currentMode === 'dark' ||
|
||||
(currentMode === 'system' && mediaQuery.matches);
|
||||
this.isDark.set(dark);
|
||||
|
||||
if (dark) {
|
||||
this.renderer.addClass(this.document.documentElement, 'dark-theme');
|
||||
} else {
|
||||
this.renderer.removeClass(this.document.documentElement, 'dark-theme');
|
||||
}
|
||||
};
|
||||
|
||||
effect(() => {
|
||||
updateThemeState();
|
||||
});
|
||||
|
||||
mediaQuery.addEventListener('change', () => {
|
||||
if (this.mode() === 'system') {
|
||||
updateThemeState();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
setTheme(mode: ThemeMode): void {
|
||||
this.mode.set(mode);
|
||||
}
|
||||
|
||||
cycleTheme(): void {
|
||||
const modes: ThemeMode[] = ['system', 'light', 'dark'];
|
||||
const currentIndex = modes.indexOf(this.mode());
|
||||
const nextIndex = (currentIndex + 1) % modes.length;
|
||||
this.setTheme(modes[nextIndex]);
|
||||
}
|
||||
|
||||
private readInitialMode(): ThemeMode {
|
||||
const stored = localStorage.getItem(this.storageKey);
|
||||
if (stored === 'light' || stored === 'dark' || stored === 'system') {
|
||||
return stored;
|
||||
}
|
||||
return 'system';
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--sg-text);
|
||||
|
||||
mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
:host.is-mini-size {
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
import { Component, computed, effect, inject, input, signal } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
effect,
|
||||
inject,
|
||||
input,
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
import { Institution } from '../../../api';
|
||||
import { PatentsService } from '../../../api/api/patents.service';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
@@ -16,7 +23,7 @@ import { DecimalPipe } from '@angular/common';
|
||||
MatDividerModule,
|
||||
MatIconModule,
|
||||
MatButtonModule,
|
||||
DecimalPipe
|
||||
DecimalPipe,
|
||||
],
|
||||
templateUrl: './app-institution-card.component.html',
|
||||
styleUrl: './app-institution-card.component.scss',
|
||||
@@ -49,11 +56,13 @@ export class AppInstitutionCardComponent {
|
||||
this.hasPatentsSignal.set(false);
|
||||
if (!id) return;
|
||||
|
||||
this.patentsApi.getOrgPatentsByInstitution(id, undefined, 0, 0).subscribe({
|
||||
next: (result) => {
|
||||
this.hasPatentsSignal.set((result.patent_count ?? 0) > 0);
|
||||
},
|
||||
});
|
||||
this.patentsApi
|
||||
.getOrgPatentsByInstitution(id, undefined, 0, 0)
|
||||
.subscribe({
|
||||
next: (result) => {
|
||||
this.hasPatentsSignal.set((result.patent_count ?? 0) > 0);
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--sg-text);
|
||||
|
||||
mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
:host.is-mini-size {
|
||||
|
||||
@@ -65,9 +65,9 @@ mat-toolbar.main {
|
||||
gap: 10px;
|
||||
min-height: 44px;
|
||||
padding: 6px 20px;
|
||||
background: #fff7ed;
|
||||
border-bottom: 1px solid #fed7aa;
|
||||
color: #9a3412;
|
||||
background: var(--sg-warning-soft);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
color: var(--sg-warning);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -175,10 +175,10 @@ mat-toolbar.main {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: white;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
z-index: 1000;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
|
||||
@@ -136,6 +136,16 @@
|
||||
|
||||
<div class="sidebar-actions">
|
||||
@if (collapsed()) {
|
||||
<button
|
||||
mat-icon-button
|
||||
class="utility-icon-button"
|
||||
type="button"
|
||||
(click)="themeService.cycleTheme()"
|
||||
[matTooltip]="'Design: ' + themeService.currentModeLabel()"
|
||||
matTooltipPosition="right"
|
||||
[attr.aria-label]="'Design: ' + themeService.currentModeLabel()">
|
||||
<mat-icon>{{ themeService.currentModeIcon() }}</mat-icon>
|
||||
</button>
|
||||
<button
|
||||
mat-icon-button
|
||||
class="utility-icon-button"
|
||||
@@ -147,6 +157,13 @@
|
||||
<mat-icon>logout</mat-icon>
|
||||
</button>
|
||||
} @else {
|
||||
<button
|
||||
class="utility-link"
|
||||
type="button"
|
||||
(click)="themeService.cycleTheme()">
|
||||
<mat-icon>{{ themeService.currentModeIcon() }}</mat-icon>
|
||||
<span>Design: {{ themeService.currentModeLabel() }}</span>
|
||||
</button>
|
||||
<button class="utility-link" type="button" (click)="onLogout()">
|
||||
<mat-icon>logout</mat-icon>
|
||||
<span>Abmelden</span>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 10px 8px;
|
||||
border: 2px solid rgba(0, 87, 255, 0.22);
|
||||
border: 2px solid var(--sg-border-strong);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@@ -205,7 +205,11 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #dce8ff, #ffffff);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--sg-primary-soft),
|
||||
var(--sg-card-bg)
|
||||
);
|
||||
color: var(--sg-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import { MatListModule } from '@angular/material/list';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { CredentialService } from '../../services/credential.service';
|
||||
import { ThemeService } from '../../services/theme.service';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ConfirmationDialogComponent } from '../confirmation-dialog/confirmation-dialog.component';
|
||||
@@ -218,6 +219,7 @@ export class AppMenuComponent {
|
||||
) {}
|
||||
|
||||
isNavigating = computed(() => !!this.router.currentNavigation());
|
||||
readonly themeService = inject(ThemeService);
|
||||
private readonly dialog = inject(MatDialog);
|
||||
|
||||
onLogout() {
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
height: 44px;
|
||||
align-self: center;
|
||||
padding: 0 18px;
|
||||
background: white;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 13px;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
:host {
|
||||
--topic-border: color-mix(in srgb, hsl(var(--topic-color)) 72%, #ffffff);
|
||||
--topic-background: color-mix(in srgb, hsl(var(--topic-color)) 8%, #ffffff);
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 72%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
--topic-background: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 8%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
|
||||
--mat-divider-color: var(--topic-border);
|
||||
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
.topic-chip {
|
||||
--topic-background: color-mix(in srgb, hsl(var(--topic-color)) 8%, #ffffff);
|
||||
--topic-border: color-mix(in srgb, hsl(var(--topic-color)) 72%, #ffffff);
|
||||
--topic-background: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 14%,
|
||||
var(--sg-surface-muted)
|
||||
);
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 55%,
|
||||
var(--sg-border)
|
||||
);
|
||||
|
||||
--mdc-chip-label-text-color: var(--sg-text);
|
||||
--mdc-chip-with-icon-icon-color: var(--sg-text-muted);
|
||||
|
||||
font-weight: 500;
|
||||
border: 1px solid var(--topic-border);
|
||||
@@ -8,6 +19,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
:host ::ng-deep .topic-chip .mat-mdc-chip-action,
|
||||
@@ -16,6 +28,10 @@
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
|
||||
:host ::ng-deep .topic-chip .mdc-evolution-chip__text-label {
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
:host.is-clickable {
|
||||
::ng-deep .mdc-evolution-chip__action {
|
||||
cursor: pointer;
|
||||
@@ -23,9 +39,13 @@
|
||||
}
|
||||
|
||||
:host.is-selected {
|
||||
--topic-border: color-mix(in srgb, hsl(var(--topic-color)) 72%, #ffffff);
|
||||
--topic-border: color-mix(
|
||||
in srgb,
|
||||
hsl(var(--topic-color)) 85%,
|
||||
var(--sg-text)
|
||||
);
|
||||
|
||||
border: 1px solid white;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
box-shadow: 0 0 0 2px var(--topic-border);
|
||||
}
|
||||
@@ -34,6 +54,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--sg-text);
|
||||
|
||||
mat-icon {
|
||||
color: color-mix(in srgb, hsl(var(--topic-color)) 75%, var(--sg-text));
|
||||
}
|
||||
}
|
||||
|
||||
:host.is-mini-size {
|
||||
|
||||
+10
-10
@@ -10,11 +10,11 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: white;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
box-sizing: border-box;
|
||||
margin-top: 0;
|
||||
width: 100%;
|
||||
@@ -28,7 +28,7 @@
|
||||
h3 {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
margin: 0 0 1rem 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
@@ -63,10 +63,10 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 50;
|
||||
background: white;
|
||||
border: 1px solid #e5e7eb;
|
||||
background: var(--sg-card-bg);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
margin-top: 4px;
|
||||
padding: 4px 0;
|
||||
list-style: none;
|
||||
@@ -85,17 +85,17 @@
|
||||
transition: background 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: #f3f4f6;
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
.hint {
|
||||
font-size: 0.65rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
[style.background]="
|
||||
'color-mix(in srgb, ' +
|
||||
getEntityColor()(auth.id) +
|
||||
' 8%, #ffffff)'
|
||||
' 8%, var(--sg-color-mix-base))'
|
||||
"
|
||||
[style.color]="getEntityColor()(auth.id)">
|
||||
<span
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
gap: 20px;
|
||||
background: white;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
margin-top: 0;
|
||||
@@ -35,7 +35,7 @@
|
||||
h3 {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: #07163d;
|
||||
color: var(--sg-text);
|
||||
margin: 0 0 1rem 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
@@ -71,10 +71,10 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 50;
|
||||
background: white;
|
||||
border: 1px solid #e5e7eb;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
margin-top: 4px;
|
||||
padding: 4px 0;
|
||||
list-style: none;
|
||||
@@ -93,17 +93,17 @@
|
||||
transition: background 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: #f3f4f6;
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
.hint {
|
||||
font-size: 0.65rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
@@ -116,10 +116,10 @@
|
||||
|
||||
.empty-list-info {
|
||||
font-size: 0.75rem;
|
||||
color: #9ca3af;
|
||||
color: var(--sg-text-soft);
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px dashed #e5e7eb;
|
||||
border: 1px dashed var(--sg-border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
@@ -139,7 +139,7 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.65rem;
|
||||
gap: 8px;
|
||||
@@ -192,12 +192,12 @@
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
background: var(--sg-option-hover);
|
||||
}
|
||||
|
||||
&.remove-btn:hover {
|
||||
color: #ef4444 !important;
|
||||
background: #fee2e2;
|
||||
color: var(--sg-error) !important;
|
||||
background: var(--sg-error-soft);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -225,28 +225,28 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 8px;
|
||||
background: #f9fafb;
|
||||
background: var(--sg-surface-muted);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: #f3f4f6;
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
|
||||
background: var(--sg-surface-soft);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
background: #f3f4f6;
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.add-icon {
|
||||
color: #3b82f6;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
@@ -261,7 +261,7 @@
|
||||
.name {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -269,7 +269,7 @@
|
||||
|
||||
.meta {
|
||||
font-size: 0.65rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
@@ -277,7 +277,7 @@
|
||||
|
||||
.no-suggestions-msg {
|
||||
font-size: 0.75rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 12px 0 0 0;
|
||||
}
|
||||
|
||||
@@ -286,15 +286,15 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 0.75rem;
|
||||
color: #6b7280;
|
||||
color: var(--sg-text-muted);
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.spinner-small {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #e5e7eb;
|
||||
border-top: 2px solid #3b82f6;
|
||||
border: 2px solid var(--sg-border);
|
||||
border-top: 2px solid var(--sg-blue-highlight);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
@@ -319,7 +319,7 @@
|
||||
padding: 2px 6px;
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
background: var(--sg-option-hover);
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
@@ -330,6 +330,6 @@
|
||||
|
||||
.active-pie {
|
||||
font-weight: 700 !important;
|
||||
background: rgba(59, 130, 246, 0.08) !important;
|
||||
background: var(--sg-primary-soft) !important;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@ export class AuthorSelectorComponent {
|
||||
readonly searchQuery = input<string>('');
|
||||
readonly searchResults = input<any[]>([]);
|
||||
readonly activeChartTopic = input<string>('');
|
||||
readonly getEntityColor = input<(id: string) => string>(() => '#9ca3af');
|
||||
readonly getEntityColor = input<(id: string) => string>(
|
||||
() => 'var(--sg-text-muted)',
|
||||
);
|
||||
readonly isVisible = input<(id: string) => boolean>(() => true);
|
||||
readonly selectedPieEntityId = input<string | null>(null);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
&.active {
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
border-color: var(--sg-primary);
|
||||
outline: none;
|
||||
box-shadow:
|
||||
@@ -60,14 +60,14 @@
|
||||
&.active {
|
||||
border-color: var(--sg-primary);
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
|
||||
&.active:hover,
|
||||
&.active:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.institution-icon {
|
||||
@@ -128,7 +128,7 @@
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
@@ -177,7 +177,7 @@
|
||||
// ------------------------
|
||||
|
||||
.empty-text {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
background: var(--sg-card-bg);
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.cards {
|
||||
@@ -40,5 +41,5 @@
|
||||
.no-results {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--sg-text-secondary);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
padding: 4px 12px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 7px;
|
||||
background: color-mix(in srgb, var(--chip-color) 12%, #ffffff);
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--chip-color) 12%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
color: var(--chip-color);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
@@ -17,6 +21,10 @@
|
||||
}
|
||||
|
||||
:host(.outlined) {
|
||||
border-color: color-mix(in srgb, var(--chip-color) 42%, #ffffff);
|
||||
background: #ffffff;
|
||||
border-color: color-mix(
|
||||
in srgb,
|
||||
var(--chip-color) 42%,
|
||||
var(--sg-color-mix-base)
|
||||
);
|
||||
background: var(--sg-surface);
|
||||
}
|
||||
|
||||
@@ -13,14 +13,14 @@ type ChipColor =
|
||||
| string;
|
||||
|
||||
const CHIP_COLORS: Record<string, string> = {
|
||||
primary: '#111827',
|
||||
secondary: '#64708f',
|
||||
success: '#22c55e',
|
||||
info: '#0ea5e9',
|
||||
warn: '#f97316',
|
||||
help: '#a855f7',
|
||||
danger: '#ef4444',
|
||||
contrast: '#101a3d',
|
||||
primary: 'var(--sg-text)',
|
||||
secondary: 'var(--sg-text-muted)',
|
||||
success: 'var(--sg-success)',
|
||||
info: 'var(--sg-blue-highlight)',
|
||||
warn: 'var(--sg-warning)',
|
||||
help: 'var(--sg-primary)',
|
||||
danger: 'var(--sg-error)',
|
||||
contrast: 'var(--sg-text)',
|
||||
};
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 200px;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
tr.detail-row {
|
||||
@@ -24,6 +24,6 @@ tr.detail-row {
|
||||
}
|
||||
|
||||
.element-row:hover {
|
||||
background: #f5f5f5;
|
||||
background: var(--sg-surface-soft);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
border-color: var(--sg-primary);
|
||||
outline: none;
|
||||
box-shadow:
|
||||
@@ -39,14 +39,14 @@
|
||||
&.active {
|
||||
border-color: var(--sg-primary);
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
|
||||
&.active:hover,
|
||||
&.active:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.institution-icon {
|
||||
@@ -107,7 +107,7 @@
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
@@ -156,7 +156,7 @@
|
||||
// ------------------------
|
||||
|
||||
.empty-text {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
border-color: var(--sg-primary);
|
||||
outline: none;
|
||||
box-shadow:
|
||||
@@ -39,14 +39,14 @@
|
||||
&.active {
|
||||
border-color: var(--sg-primary);
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
|
||||
&.active:hover,
|
||||
&.active:focus-visible {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
|
||||
.institution-icon {
|
||||
@@ -107,7 +107,7 @@
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: #fff;
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
@@ -156,7 +156,7 @@
|
||||
// ------------------------
|
||||
|
||||
.empty-text {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
@@ -226,7 +226,7 @@
|
||||
|
||||
&.active {
|
||||
box-shadow:
|
||||
0 0 0 1px #ffffff,
|
||||
0 0 0 1px var(--sg-background),
|
||||
0 0 0 3px var(--sg-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,12 +5,14 @@
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
position: relative;
|
||||
|
||||
.drop-zone-wrapper {
|
||||
border: 2px dashed #ccc;
|
||||
border: 2px dashed var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background-color: #f9f9f9;
|
||||
background-color: var(--sg-surface-soft);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.drop-zone {
|
||||
max-width: 100%;
|
||||
flex: 1;
|
||||
@@ -30,26 +32,26 @@
|
||||
font-size: 48px;
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
color: #1976d2;
|
||||
color: var(--sg-primary);
|
||||
margin-bottom: 12px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.drop-text {
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
color: var(--sg-text);
|
||||
margin-bottom: 8px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.file-info {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
&.drag-over {
|
||||
border-color: #1976d2;
|
||||
background-color: #e3f2fd;
|
||||
border-color: var(--sg-primary);
|
||||
background-color: var(--sg-primary-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +75,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Compact horizontal file strip
|
||||
.file-strip {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(90px, 2fr));
|
||||
@@ -88,7 +89,7 @@
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #ccc;
|
||||
background: var(--sg-border);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -97,7 +98,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Individual compact file chip
|
||||
.file-chip {
|
||||
flex: 0 0 auto;
|
||||
width: 90px;
|
||||
@@ -112,8 +112,8 @@
|
||||
height: 60px;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background-color: #eef1f4;
|
||||
border: 1px solid #e0e0e0;
|
||||
background-color: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -128,7 +128,7 @@
|
||||
font-size: 28px;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
color: #1976d2;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
.chip-overlay {
|
||||
@@ -138,7 +138,11 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--sg-surface-muted) 80%,
|
||||
transparent
|
||||
);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
|
||||
@@ -151,19 +155,19 @@
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 15px;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
color: #fff;
|
||||
color: var(--sg-background);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -178,12 +182,12 @@
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
border-radius: 2px;
|
||||
background-color: #e0e0e0;
|
||||
background-color: var(--sg-border);
|
||||
overflow: hidden;
|
||||
|
||||
.chip-progress-fill {
|
||||
height: 100%;
|
||||
background-color: #1976d2;
|
||||
background-color: var(--sg-primary);
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
}
|
||||
@@ -192,7 +196,7 @@
|
||||
width: 100%;
|
||||
font-size: 11px;
|
||||
line-height: 1.3;
|
||||
color: #333;
|
||||
color: var(--sg-text);
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -201,7 +205,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 600px) {
|
||||
.file-upload-container {
|
||||
gap: 10px;
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
[style.background]="
|
||||
'color-mix(in srgb, ' +
|
||||
getEntityColor()(inst.id) +
|
||||
' 8%, #ffffff)'
|
||||
' 8%, var(--sg-color-mix-base))'
|
||||
"
|
||||
[style.color]="getEntityColor()(inst.id)">
|
||||
<span
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user