Cinq tracés (spike, threshold, anomaly, outage, sensor) dessinés en trait sur currentColor, dimensionnés par font-size comme ev-brand. Décoratif par défaut (aria-hidden), rôle image et libellé accessible quand `label` est fourni. Aucune bibliothèque : la CSP du reverse proxy interdit les scripts tiers, pas le SVG inline.
15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
import { Component, input } from '@angular/core';
|
|
|
|
export type IconName = 'spike' | 'threshold' | 'anomaly' | 'outage' | 'sensor';
|
|
|
|
@Component({
|
|
selector: 'ev-icon',
|
|
standalone: true,
|
|
templateUrl: './icon.html',
|
|
styleUrl: './icon.scss',
|
|
})
|
|
export class Icon {
|
|
name = input.required<IconName>();
|
|
label = input<string | null>(null);
|
|
}
|