ic-angular-uikit 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-angular-uikit.mjs","names":["i1.UiFieldValidation","i1.UiFieldValidation","i1.UiFieldValidation","i1.UiFieldValidation","i1.UiFieldValidation","i1.UiFieldValidation","i1.UiFieldValidation"],"sources":["../../../projects/ic-angular-uikit/src/lib/core/season.ts","../../../projects/ic-angular-uikit/src/lib/core/theme.ts","../../../projects/ic-angular-uikit/src/lib/icon/icon-sets.ts","../../../projects/ic-angular-uikit/src/lib/icon/icon.ts","../../../projects/ic-angular-uikit/src/lib/button/button.ts","../../../projects/ic-angular-uikit/src/lib/badge/badge.ts","../../../projects/ic-angular-uikit/src/lib/card/card.ts","../../../projects/ic-angular-uikit/src/lib/alert/alert.ts","../../../projects/ic-angular-uikit/src/lib/core/id.ts","../../../projects/ic-angular-uikit/src/lib/validation/field-message.ts","../../../projects/ic-angular-uikit/src/lib/validation/messages.ts","../../../projects/ic-angular-uikit/src/lib/validation/field-validation.ts","../../../projects/ic-angular-uikit/src/lib/switch/switch.ts","../../../projects/ic-angular-uikit/src/lib/core/a11y.ts","../../../projects/ic-angular-uikit/src/lib/text-field/text-field.ts","../../../projects/ic-angular-uikit/src/lib/tabs/tabs.ts","../../../projects/ic-angular-uikit/src/lib/dialog/dialog.ts","../../../projects/ic-angular-uikit/src/lib/checkbox/checkbox.ts","../../../projects/ic-angular-uikit/src/lib/select/select.ts","../../../projects/ic-angular-uikit/src/lib/select/select.html","../../../projects/ic-angular-uikit/src/lib/table/table-filter.ts","../../../projects/ic-angular-uikit/src/lib/table/table.ts","../../../projects/ic-angular-uikit/src/lib/table/table.html","../../../projects/ic-angular-uikit/src/lib/textarea/textarea.ts","../../../projects/ic-angular-uikit/src/lib/radio-group/radio-group.ts","../../../projects/ic-angular-uikit/src/lib/ribbon/ribbon.ts","../../../projects/ic-angular-uikit/src/lib/file-upload/file-utils.ts","../../../projects/ic-angular-uikit/src/lib/file-upload/file-upload.ts","../../../projects/ic-angular-uikit/src/lib/file-upload/file-upload.html","../../../projects/ic-angular-uikit/src/lib/layout/sidebar.ts","../../../projects/ic-angular-uikit/src/lib/layout/layout.ts","../../../projects/ic-angular-uikit/src/lib/menu/menu-host.ts","../../../projects/ic-angular-uikit/src/lib/menu/menu.ts","../../../projects/ic-angular-uikit/src/lib/app-bar/app-bar.ts","../../../projects/ic-angular-uikit/src/lib/toolbar/toolbar.ts","../../../projects/ic-angular-uikit/src/lib/jumbotron/jumbotron.ts","../../../projects/ic-angular-uikit/src/lib/carousel/carousel.ts","../../../projects/ic-angular-uikit/src/lib/dashboard/dashboard-layout.ts","../../../projects/ic-angular-uikit/src/lib/dashboard/widget.ts","../../../projects/ic-angular-uikit/src/lib/dashboard/dashboard.ts","../../../projects/ic-angular-uikit/src/lib/org-chart/org-model.ts","../../../projects/ic-angular-uikit/src/lib/org-chart/org-chart.ts","../../../projects/ic-angular-uikit/src/lib/org-chart/org-chart.html","../../../projects/ic-angular-uikit/src/lib/season-effects/season-effects.ts","../../../projects/ic-angular-uikit/src/lib/season-effects/season-effects.html"],"sourcesContent":["/** Saison. */\nexport type UiSeason = 'winter' | 'spring' | 'summer' | 'autumn';\n\n/** Noms français des saisons. */\nexport const UI_SEASON_LABELS: Record<UiSeason, string> = {\n winter: 'Hiver',\n spring: 'Printemps',\n summer: 'Été',\n autumn: 'Automne',\n};\n\n/**\n * Saison d'une date, d'après les dates astronomiques usuelles (printemps le 20 mars, été le 21 juin,\n * automne le 22 septembre, hiver le 21 décembre). Dans l'hémisphère sud, les saisons sont inversées.\n */\nexport function seasonOf(date: Date, hemisphere: 'north' | 'south' = 'north'): UiSeason {\n const day = (date.getMonth() + 1) * 100 + date.getDate(); // 3 mars → 303\n let season: UiSeason;\n if (day >= 1221 || day < 320) season = 'winter';\n else if (day < 621) season = 'spring';\n else if (day < 922) season = 'summer';\n else season = 'autumn';\n if (hemisphere === 'south') {\n const opposite: Record<UiSeason, UiSeason> = { winter: 'summer', summer: 'winter', spring: 'autumn', autumn: 'spring' };\n season = opposite[season];\n }\n return season;\n}\n","import {\n DOCUMENT,\n EnvironmentProviders,\n Injectable,\n InjectionToken,\n computed,\n effect,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n signal,\n DestroyRef,\n} from '@angular/core';\nimport { UiSeason, seasonOf } from './season';\n\n/**\n * Thèmes fournis par la librairie. `season-light` et `season-dark` changent de couleurs selon la saison\n * (date du jour). Un thème personnalisé peut être ajouté via `UiKitConfig.themes`.\n */\nexport type UiBuiltInTheme = 'light' | 'dark' | 'season-light' | 'season-dark';\n\n/** Préférence de thème : un thème concret, ou `system` pour suivre `prefers-color-scheme`. */\nexport type UiThemePreference = string;\n\nexport interface UiKitConfig {\n /** Préférence appliquée quand aucune n'est mémorisée. Défaut : `system`. */\n defaultTheme?: UiThemePreference;\n /** Liste des thèmes disponibles (pour les sélecteurs). Défaut : `['light', 'dark']`. */\n themes?: readonly string[];\n /**\n * Clé localStorage où mémoriser la préférence (simple préférence d'affichage, jamais de donnée personnelle).\n * `null` désactive la persistance. Défaut : `ic-angular-uikit-theme`.\n */\n storageKey?: string | null;\n /** Hémisphère pour le calcul des saisons (thèmes `season-*`). Défaut : `north`. */\n hemisphere?: 'north' | 'south';\n /**\n * Animations saisonnières (neige, feuilles, soleil, fleurs) des thèmes `season-*` :\n * `auto` les active sauf si l'utilisateur a demandé moins d'animations (`prefers-reduced-motion`). Défaut : `auto`.\n */\n seasonEffects?: 'auto' | boolean;\n}\n\nexport const UI_KIT_CONFIG = new InjectionToken<Required<UiKitConfig>>('UI_KIT_CONFIG', {\n providedIn: 'root',\n factory: () => ({\n defaultTheme: 'system',\n themes: ['light', 'dark', 'season-light', 'season-dark'],\n storageKey: 'ic-angular-uikit-theme',\n hemisphere: 'north',\n seasonEffects: 'auto',\n }),\n});\n\n/**\n * Pilote le thème global de l'application : pose `data-ui-theme` sur `<html>`,\n * suit `prefers-color-scheme` en mode `system` et mémorise la préférence.\n *\n * Pour thémer seulement une zone, posez directement l'attribut `data-ui-theme=\"dark\"` sur un élément.\n */\n@Injectable({ providedIn: 'root' })\nexport class ThemeService {\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(UI_KIT_CONFIG);\n private readonly window = this.document.defaultView;\n private readonly media = this.window?.matchMedia?.('(prefers-color-scheme: dark)') ?? null;\n private readonly systemDark = signal(this.media?.matches ?? false);\n\n /** Thèmes disponibles (hors `system`). */\n readonly themes: readonly string[] = this.config.themes;\n\n /** Préférence courante (`light`, `dark`, `system` ou un thème personnalisé). */\n readonly preference = signal<UiThemePreference>(this.readStoredPreference() ?? this.config.defaultTheme);\n\n /** Thème réellement appliqué (jamais `system`). */\n readonly theme = computed(() => {\n const preference = this.preference();\n if (preference === 'system') {\n return this.systemDark() ? 'dark' : 'light';\n }\n return preference;\n });\n\n /** `true` si le thème appliqué est sombre (`dark`, `season-dark`, ou tout thème nommé `…-dark`). */\n readonly isDark = computed(() => this.theme() === 'dark' || this.theme().endsWith('-dark'));\n\n /** `true` si un thème saisonnier est appliqué. */\n readonly isSeasonal = computed(() => this.theme().startsWith('season-'));\n\n private readonly now = signal(new Date());\n private readonly seasonOverride = signal<UiSeason | null>(null);\n /** Saison courante (date du jour, ou saison forcée par `previewSeason()`). */\n readonly season = computed<UiSeason>(() => this.seasonOverride() ?? seasonOf(this.now(), this.config.hemisphere));\n\n private readonly reducedMotion = this.window?.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false;\n /** Animations saisonnières actives (choix mémorisé ; par défaut, désactivées si l'utilisateur réduit les animations). */\n readonly seasonEffects = signal<boolean>(this.readStoredEffects() ?? (this.config.seasonEffects === 'auto' ? !this.reducedMotion : this.config.seasonEffects));\n\n constructor() {\n this.media?.addEventListener('change', (event) => this.systemDark.set(event.matches));\n effect(() => {\n const root = this.document.documentElement;\n root.setAttribute('data-ui-theme', this.theme());\n if (this.isSeasonal()) root.setAttribute('data-ui-season', this.season());\n else root.removeAttribute('data-ui-season');\n });\n // La saison peut changer pendant que l'application reste ouverte : on revérifie toutes les heures.\n const timer = this.window?.setInterval(() => this.now.set(new Date()), 60 * 60 * 1000);\n inject(DestroyRef).onDestroy(() => this.window?.clearInterval(timer));\n }\n\n /** Force une saison (démonstration, tests) ; `null` revient à la date du jour. */\n previewSeason(season: UiSeason | null): void {\n this.seasonOverride.set(season);\n }\n\n /** Active ou met en pause les animations saisonnières (choix mémorisé). */\n setSeasonEffects(enabled: boolean): void {\n this.seasonEffects.set(enabled);\n try {\n this.storage()?.setItem(`${this.config.storageKey}-effects`, enabled ? 'on' : 'off');\n } catch {\n // stockage indisponible : le choix reste en mémoire.\n }\n }\n\n /** Change la préférence de thème et la mémorise si la persistance est active. */\n setTheme(preference: UiThemePreference): void {\n this.preference.set(preference);\n this.writeStoredPreference(preference);\n }\n\n /** Bascule entre clair et sombre (à partir du thème appliqué ; reste saisonnier si on l'est). */\n toggle(): void {\n const prefix = this.isSeasonal() ? 'season-' : '';\n this.setTheme(prefix + (this.isDark() ? 'light' : 'dark'));\n }\n\n private storage(): Storage | null {\n if (!this.config.storageKey) {\n return null;\n }\n try {\n return this.window?.localStorage ?? null;\n } catch {\n return null;\n }\n }\n\n private readStoredEffects(): boolean | null {\n try {\n const value = this.storage()?.getItem(`${this.config.storageKey}-effects`);\n return value === 'on' ? true : value === 'off' ? false : null;\n } catch {\n return null;\n }\n }\n\n private readStoredPreference(): string | null {\n try {\n const value = this.storage()?.getItem(this.config.storageKey ?? '') ?? null;\n return value && (value === 'system' || this.config.themes.includes(value)) ? value : null;\n } catch {\n return null;\n }\n }\n\n private writeStoredPreference(value: string): void {\n try {\n this.storage()?.setItem(this.config.storageKey ?? '', value);\n } catch {\n // stockage indisponible (navigation privée, quota) : la préférence reste en mémoire.\n }\n }\n}\n\n/**\n * Configure IC Angular UiKit et applique le thème dès le démarrage.\n *\n * ```ts\n * bootstrapApplication(App, { providers: [provideUiKit({ defaultTheme: 'system' })] });\n * ```\n */\nexport function provideUiKit(config: UiKitConfig = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: UI_KIT_CONFIG,\n useValue: {\n defaultTheme: config.defaultTheme ?? 'system',\n themes: config.themes ?? ['light', 'dark', 'season-light', 'season-dark'],\n storageKey: config.storageKey === undefined ? 'ic-angular-uikit-theme' : config.storageKey,\n hemisphere: config.hemisphere ?? 'north',\n seasonEffects: config.seasonEffects ?? 'auto',\n },\n },\n provideEnvironmentInitializer(() => inject(ThemeService)),\n ]);\n}\n","import { InjectionToken, Provider, inject } from '@angular/core';\n\n/** Nœud SVG : `[balise, attributs, enfants?]` (format de Lucide, réutilisable pour vos icônes). */\nexport type UiSvgNode = readonly [tag: string, attrs: Readonly<Record<string, string | number | undefined>>, children?: readonly UiSvgNode[]];\n\n/** Icône vectorielle décrite par des données (jamais par du HTML). */\nexport interface UiSvgIcon {\n /** `viewBox` du SVG, ex. `0 0 24 24`. */\n viewBox: string;\n /** Formes de l'icône. */\n nodes: readonly UiSvgNode[];\n /** Attributs de présentation appliqués à l'élément `<svg>` (ex. `{ fill: 'none', stroke: 'currentColor' }`). */\n attrs?: Readonly<Record<string, string | number>>;\n}\n\n/** Jeu d'icônes fourni par une police (Font Awesome, Material Symbols, Bootstrap Icons…). */\nexport interface UiFontIconSet {\n kind: 'font';\n /** Préfixe utilisé dans `name=\"préfixe:icône\"`. */\n name: string;\n /** Classes CSS à poser sur l'élément de l'icône. */\n classes: (icon: string) => string;\n /** Police à ligatures (Material) : le nom de l'icône est écrit en texte dans l'élément. */\n ligature?: boolean;\n}\n\n/** Jeu d'icônes SVG (Font Awesome SVG, Lucide, icônes maison…). */\nexport interface UiSvgIconSet {\n kind: 'svg';\n /** Préfixe utilisé dans `name=\"préfixe:icône\"`. */\n name: string;\n /** Icônes par nom (kebab-case conseillé : `arrow-right`). */\n icons: Readonly<Record<string, UiSvgIcon>>;\n}\n\nexport type UiIconSet = UiFontIconSet | UiSvgIconSet;\n\n/** Icône résolue, prête à être rendue. */\nexport type UiResolvedIcon =\n | { kind: 'font'; classes: string; ligature: string | null }\n | { kind: 'svg'; icon: UiSvgIcon }\n | { kind: 'missing'; name: string };\n\nexport interface UiIconOptions {\n /** Jeu utilisé quand le nom n'a pas de préfixe (`name=\"home\"`). */\n defaultSet?: string;\n}\n\n/**\n * Registre des jeux d'icônes. Chaque `provideUiIcons()` crée un niveau qui complète le niveau parent :\n * l'application déclare ses jeux, un composant peut en ajouter pour lui seul.\n */\nexport class UiIconRegistry {\n private readonly sets = new Map<string, UiIconSet>();\n\n constructor(\n sets: readonly UiIconSet[],\n private readonly options: UiIconOptions,\n private readonly parent: UiIconRegistry | null,\n ) {\n for (const set of sets) {\n this.sets.set(set.name, set);\n }\n }\n\n /** Jeu par défaut (celui de ce niveau, sinon celui du parent). */\n get defaultSet(): string | undefined {\n return this.options.defaultSet ?? this.parent?.defaultSet;\n }\n\n /** Cherche un jeu à ce niveau puis dans les niveaux parents. */\n getSet(name: string): UiIconSet | undefined {\n return this.sets.get(name) ?? this.parent?.getSet(name);\n }\n\n /** Résout `préfixe:icône` (ou `icône` avec le jeu par défaut). */\n resolve(fullName: string): UiResolvedIcon {\n const separator = fullName.indexOf(':');\n const setName = separator >= 0 ? fullName.slice(0, separator) : this.defaultSet;\n const icon = separator >= 0 ? fullName.slice(separator + 1) : fullName;\n const set = setName ? this.getSet(setName) : undefined;\n if (!set || !icon) {\n return { kind: 'missing', name: fullName };\n }\n if (set.kind === 'font') {\n return { kind: 'font', classes: set.classes(icon), ligature: set.ligature ? icon : null };\n }\n const svg = set.icons[icon];\n return svg ? { kind: 'svg', icon: svg } : { kind: 'missing', name: fullName };\n }\n}\n\n/** Registre vide utilisé quand aucun `provideUiIcons()` n'est déclaré. */\nexport const UI_ICON_REGISTRY_ROOT = new InjectionToken<UiIconRegistry>('UI_ICON_REGISTRY_ROOT', {\n providedIn: 'root',\n factory: () => new UiIconRegistry([], {}, null),\n});\n\n/**\n * Déclare des jeux d'icônes, pour toute l'application (`app.config.ts`) ou pour un composant (`providers`).\n *\n * ```ts\n * provideUiIcons([fontAwesomeFont(), materialSymbols(), lucideIcons({ Search, Bell })], { defaultSet: 'lucide' })\n * ```\n */\nexport function provideUiIcons(sets: readonly UiIconSet[] | readonly (UiIconSet | readonly UiIconSet[])[], options: UiIconOptions = {}): Provider {\n const flat = (sets as readonly (UiIconSet | readonly UiIconSet[])[]).flat() as UiIconSet[];\n return {\n provide: UiIconRegistry,\n useFactory: () => new UiIconRegistry(flat, options, inject(UiIconRegistry, { skipSelf: true, optional: true }) ?? inject(UI_ICON_REGISTRY_ROOT)),\n };\n}\n\n// ---------------------------------------------------------------------------\n// Adaptateurs pour les principales librairies (aucune dépendance : vous installez celle de votre choix).\n// ---------------------------------------------------------------------------\n\n/**\n * Font Awesome en police (`@fortawesome/fontawesome-free`, CSS `all.min.css` dans angular.json).\n * Crée les jeux `fa` / `fas` (solid), `far` (regular) et `fab` (brands) : `fa:house`, `far:heart`, `fab:github`.\n */\nexport function fontAwesomeFont(): UiFontIconSet[] {\n const set = (name: string, style: string): UiFontIconSet => ({ kind: 'font', name, classes: (icon) => `${style} fa-${icon}` });\n return [set('fa', 'fa-solid'), set('fas', 'fa-solid'), set('far', 'fa-regular'), set('fab', 'fa-brands')];\n}\n\n/** Définition d'icône Font Awesome SVG (`faHouse` de `@fortawesome/free-solid-svg-icons`…). */\nexport interface UiFontAwesomeDefinition {\n iconName: string;\n icon: readonly [width: number, height: number, ligatures: readonly unknown[], unicode: string, path: string | readonly string[]];\n}\n\n/**\n * Font Awesome en SVG, importé icône par icône (seules les icônes utilisées sont dans le bundle).\n * `fontAwesomeSvg([faHouse, faUser])` → `fa:house`, `fa:user`.\n */\nexport function fontAwesomeSvg(definitions: readonly UiFontAwesomeDefinition[], name = 'fa'): UiSvgIconSet {\n const icons: Record<string, UiSvgIcon> = {};\n for (const def of definitions) {\n const [width, height, , , path] = def.icon;\n const paths = typeof path === 'string' ? [path] : path;\n icons[def.iconName] = {\n viewBox: `0 0 ${width} ${height}`,\n attrs: { fill: 'currentColor' },\n // Duotone : deux chemins, le premier (secondaire) atténué.\n nodes: paths.map((d, i): UiSvgNode => ['path', paths.length > 1 && i === 0 ? { d, opacity: 0.4 } : { d }]),\n };\n }\n return { kind: 'svg', name, icons };\n}\n\n/**\n * Google Material Symbols en police variable (`material-symbols`, CSS `outlined.css` dans angular.json).\n * `material:home`. Remplissage : `--ui-icon-fill: 1` sur l'icône.\n */\nexport function materialSymbols(options: { style?: 'outlined' | 'rounded' | 'sharp'; name?: string } = {}): UiFontIconSet {\n const style = options.style ?? 'outlined';\n return { kind: 'font', name: options.name ?? 'material', classes: () => `material-symbols-${style} ui-icon--material`, ligature: true };\n}\n\n/** Google Material Icons « classique » en police (`material-icons`). `mi:home`. */\nexport function materialIcons(options: { variant?: '' | 'outlined' | 'round' | 'sharp' | 'two-tone'; name?: string } = {}): UiFontIconSet {\n const cls = options.variant ? `material-icons-${options.variant}` : 'material-icons';\n return { kind: 'font', name: options.name ?? 'mi', classes: () => cls, ligature: true };\n}\n\n/** Bootstrap Icons en police (`bootstrap-icons`, CSS `font/bootstrap-icons.min.css`). `bi:house`. */\nexport function bootstrapIcons(name = 'bi'): UiFontIconSet {\n return { kind: 'font', name, classes: (icon) => `bi bi-${icon}` };\n}\n\n/** Nœuds d'une icône Lucide (`import { Search } from 'lucide'`). */\nexport type UiLucideIconNode = readonly (readonly [tag: string, attrs: Readonly<Record<string, string | number | undefined>>])[];\n\n/**\n * Lucide en SVG, importé icône par icône : `lucideIcons({ Search, ArrowRight })` → `lucide:search`, `lucide:arrow-right`.\n */\nexport function lucideIcons(icons: Readonly<Record<string, UiLucideIconNode>>, name = 'lucide'): UiSvgIconSet {\n const result: Record<string, UiSvgIcon> = {};\n for (const [key, nodes] of Object.entries(icons)) {\n result[toKebab(key)] = {\n viewBox: '0 0 24 24',\n attrs: { fill: 'none', stroke: 'currentColor', 'stroke-width': 2, 'stroke-linecap': 'round', 'stroke-linejoin': 'round' },\n nodes,\n };\n }\n return { kind: 'svg', name, icons: result };\n}\n\n/**\n * Icônes SVG maison. Une chaîne est un chemin `d` dans un viewBox `0 0 24 24` rempli en `currentColor`.\n * `svgIcons({ logo: 'M12 2 2 22h20Z' }, 'app')` → `app:logo`.\n */\nexport function svgIcons(icons: Readonly<Record<string, UiSvgIcon | string>>, name = 'custom'): UiSvgIconSet {\n const result: Record<string, UiSvgIcon> = {};\n for (const [key, icon] of Object.entries(icons)) {\n result[key] = typeof icon === 'string' ? { viewBox: '0 0 24 24', attrs: { fill: 'currentColor' }, nodes: [['path', { d: icon }]] } : icon;\n }\n return { kind: 'svg', name, icons: result };\n}\n\n/**\n * N'importe quelle police d'icônes à classes (Remix Icon, Tabler webfont, Ionicons…).\n * `fontIcons('ri', (icon) => 'ri-' + icon)` → `ri:home-line`.\n */\nexport function fontIcons(name: string, classes: (icon: string) => string, ligature = false): UiFontIconSet {\n return { kind: 'font', name, classes, ligature };\n}\n\nfunction toKebab(value: string): string {\n return value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Za-z])([0-9])/g, '$1-$2')\n .toLowerCase();\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Renderer2,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n viewChild,\n} from '@angular/core';\nimport { UI_ICON_REGISTRY_ROOT, UiIconRegistry, UiSvgNode } from './icon-sets';\n\n/** Balises et attributs SVG autorisés : uniquement de la géométrie et de la présentation (pas de script, lien ni style). */\nconst SVG_TAGS = new Set(['g', 'path', 'circle', 'ellipse', 'line', 'polyline', 'polygon', 'rect']);\nconst SVG_ATTRS = new Set([\n 'd', 'cx', 'cy', 'r', 'rx', 'ry', 'x', 'y', 'x1', 'x2', 'y1', 'y2', 'width', 'height', 'points', 'transform',\n 'fill', 'fill-rule', 'fill-opacity', 'clip-rule', 'opacity', 'stroke', 'stroke-width', 'stroke-linecap',\n 'stroke-linejoin', 'stroke-miterlimit', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-opacity', 'pathLength',\n]);\n\nconst SIZES: Record<string, string> = { xs: '0.75em', sm: '0.875em', md: '1em', lg: '1.25em', xl: '1.5em', '2x': '2em', '3x': '3em' };\n\n/**\n * Icône issue d'un jeu déclaré avec `provideUiIcons()` : Font Awesome, Material Symbols, Bootstrap Icons, Lucide,\n * icônes SVG maison… `name` vaut `préfixe:icône` (`fa:house`, `material:home`, `lucide:search`).\n *\n * L'icône prend la taille et la couleur du texte (`1em`, `currentColor`). Décorative par défaut (`aria-hidden`) ;\n * renseignez `label` si elle porte seule une information.\n *\n * @cssprop --ui-icon-fill - Material Symbols : `1` pour la version pleine (défaut `0`).\n * @cssprop --ui-icon-weight - Material Symbols : graisse de 100 à 700 (défaut `400`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-icon',\n '[style.font-size]': 'fontSize()',\n '[attr.role]': 'label() ? \"img\" : null',\n '[attr.aria-label]': 'label() || null',\n '[attr.aria-hidden]': 'label() ? null : \"true\"',\n },\n template: `\n @switch (resolved().kind) {\n @case ('font') {\n <i class=\"ui-icon__font\" [class]=\"fontClasses()\">{{ ligature() }}</i>\n }\n @case ('svg') {\n <svg #svg class=\"ui-icon__svg\" focusable=\"false\" [attr.viewBox]=\"viewBox()\"></svg>\n }\n @default {\n <span class=\"ui-icon__missing\"></span>\n }\n }\n `,\n styles: `\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n vertical-align: -0.125em;\n color: inherit;\n }\n :host > .ui-icon__font {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1em;\n height: 1em;\n font-size: 1em;\n line-height: 1;\n font-style: normal;\n }\n /* Material Symbols : axes de la police variable pilotables par variables CSS. */\n :host > .ui-icon--material {\n font-variation-settings: 'FILL' var(--ui-icon-fill, 0), 'wght' var(--ui-icon-weight, 400), 'GRAD' 0, 'opsz' 24;\n overflow: hidden;\n }\n :host > .ui-icon__svg { width: 100%; height: 100%; overflow: visible; }\n :host > .ui-icon__missing { width: 0.8em; height: 0.8em; border: 1px dashed currentColor; border-radius: 2px; opacity: 0.5; }\n `,\n})\nexport class UiIcon {\n /** Icône à afficher : `préfixe:nom` (`fa:house`, `material:home`, `lucide:search`, `bi:house`), ou `nom` avec le jeu par défaut. */\n readonly name = input.required<string>();\n /** Nom accessible : rend l'icône significative (`role=\"img\"`). Sans label, elle est décorative et ignorée des lecteurs d'écran. */\n readonly label = input<string>();\n /** Taille : `xs`, `sm`, `md`, `lg`, `xl`, `2x`, `3x` ou toute longueur CSS (`24px`, `1.5rem`). Par défaut, la taille du texte. */\n readonly size = input<string>();\n\n private readonly registry = inject(UiIconRegistry, { optional: true }) ?? inject(UI_ICON_REGISTRY_ROOT);\n private readonly renderer = inject(Renderer2);\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly svgRef = viewChild<ElementRef<SVGSVGElement>>('svg');\n\n protected readonly resolved = computed(() => this.registry.resolve(this.name()));\n protected readonly fontSize = computed(() => {\n const size = this.size();\n return size ? (SIZES[size] ?? size) : null;\n });\n protected readonly fontClasses = computed(() => {\n const icon = this.resolved();\n return icon.kind === 'font' ? `ui-icon__font ${icon.classes}` : '';\n });\n protected readonly ligature = computed(() => {\n const icon = this.resolved();\n return icon.kind === 'font' ? icon.ligature : null;\n });\n protected readonly viewBox = computed(() => {\n const icon = this.resolved();\n return icon.kind === 'svg' ? icon.icon.viewBox : null;\n });\n\n constructor() {\n effect(() => {\n const icon = this.resolved();\n const svg = this.svgRef()?.nativeElement;\n if (icon.kind === 'missing' && isDevMode()) {\n console.warn(`[ic-angular-uikit] Icône introuvable : « ${icon.name} ». Déclarez son jeu avec provideUiIcons().`, this.host);\n }\n if (!svg || icon.kind !== 'svg') {\n return;\n }\n for (const child of Array.from(svg.childNodes)) {\n this.renderer.removeChild(svg, child);\n }\n for (const [key, value] of Object.entries(icon.icon.attrs ?? {})) {\n this.setAttr(svg, key, value);\n }\n for (const node of icon.icon.nodes) {\n this.append(svg, node);\n }\n });\n }\n\n private append(parent: Element, [tag, attrs, children]: UiSvgNode): void {\n if (!SVG_TAGS.has(tag)) {\n return;\n }\n const el = this.renderer.createElement(tag, 'svg') as Element;\n for (const [key, value] of Object.entries(attrs)) {\n this.setAttr(el, key, value);\n }\n for (const child of children ?? []) {\n this.append(el, child);\n }\n this.renderer.appendChild(parent, el);\n }\n\n private setAttr(el: Element, key: string, value: string | number | undefined): void {\n if (value !== undefined && SVG_ATTRS.has(key)) {\n this.renderer.setAttribute(el, key, String(value));\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { UiSize } from '../core/types';\nimport { UiIcon } from '../icon/icon';\n\nexport type UiButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'success' | 'warning' | 'danger';\n\n/**\n * Bouton d'action. S'applique sur un `<button>` ou un `<a>` natif pour garder la sémantique,\n * le focus clavier et les événements natifs (`(click)`).\n *\n * @slot default - Libellé du bouton.\n * @slot [uiButtonIcon] - Icône placée avant le libellé (ou utilisez l'input `icon`).\n * @slot [uiButtonIconEnd] - Icône placée après le libellé.\n * @cssprop --ui-button-radius - Rayon des coins (défaut : `--ui-radius-md`).\n * @cssprop --ui-button-font-weight - Graisse du libellé (défaut : `--ui-font-weight-medium`).\n * @category Actions\n */\n@Component({\n // Sélecteur d'attribut volontaire : on garde le <button>/<a> natif (sémantique, focus, formulaires).\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'button[uiButton], a[uiButton]',\n imports: [UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-button',\n '[class]': '\"ui-button--\" + variant() + \" ui-button--\" + size()',\n '[class.ui-button--block]': 'block()',\n '[class.ui-button--loading]': 'loading()',\n '[class.ui-button--icon-only]': 'iconOnly()',\n '[attr.aria-busy]': 'loading() || null',\n '[attr.aria-disabled]': 'loading() || null',\n },\n template: `\n @if (loading()) {\n <span class=\"ui-button__spinner\" aria-hidden=\"true\"></span>\n }\n @if (icon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n <ng-content select=\"[uiButtonIcon]\" />\n <span class=\"ui-button__label\"><ng-content /></span>\n <ng-content select=\"[uiButtonIconEnd]\" />\n @if (iconEnd(); as name) {\n <ui-icon [name]=\"name\" />\n }\n `,\n styleUrl: './button.css',\n})\nexport class UiButton {\n /**\n * Style visuel du bouton : `primary`, `secondary`, `outline`, `ghost`, ou une couleur sémantique\n * `success` (validation), `warning` (action à risque), `danger` (action destructrice).\n */\n readonly variant = input<UiButtonVariant>('primary');\n /** Taille du bouton. */\n readonly size = input<UiSize>('md');\n /** Affiche un indicateur de chargement et bloque les clics (`aria-busy`). */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Occupe toute la largeur disponible. */\n readonly block = input(false, { transform: booleanAttribute });\n /** Icône avant le libellé : `préfixe:nom` d'un jeu déclaré avec `provideUiIcons()` (`fa:plus`, `material:add`…). */\n readonly icon = input<string>();\n /** Icône après le libellé. */\n readonly iconEnd = input<string>();\n /** Bouton carré ne contenant qu'une icône (pensez à `aria-label`). */\n readonly iconOnly = input(false, { transform: booleanAttribute });\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { UiTone } from '../core/types';\nimport { UiIcon } from '../icon/icon';\n\nexport type UiBadgeAppearance = 'soft' | 'solid' | 'outline';\n\n/**\n * Petite étiquette de statut ou de compteur.\n *\n * @slot default - Texte du badge.\n * @slot [uiBadgeIcon] - Icône placée avant le texte.\n * @category Affichage\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-badge',\n '[class]': '\"ui-badge--\" + tone() + \" ui-badge--\" + appearance()',\n '[class.ui-badge--pill]': 'pill()',\n },\n template: `\n @if (dot()) {\n <span class=\"ui-badge__dot\" aria-hidden=\"true\"></span>\n }\n @if (icon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n <ng-content select=\"[uiBadgeIcon]\" />\n <ng-content />\n `,\n styles: `\n :host {\n --_bg: var(--ui-color-primary-subtle);\n --_fg: var(--ui-color-primary-text);\n --_border: transparent;\n display: inline-flex;\n align-items: center;\n gap: var(--ui-space-1);\n padding: 0.125rem var(--ui-space-2);\n border: 1px solid var(--_border);\n border-radius: var(--ui-radius-sm);\n background: var(--_bg);\n color: var(--_fg);\n font-size: var(--ui-font-size-xs);\n font-weight: var(--ui-font-weight-medium);\n line-height: 1.4;\n white-space: nowrap;\n vertical-align: middle;\n }\n :host(.ui-badge--pill) { border-radius: var(--ui-radius-full); padding-inline: var(--ui-space-3); }\n .ui-badge__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }\n\n :host(.ui-badge--neutral) { --_bg: var(--ui-color-neutral-subtle); --_fg: var(--ui-color-neutral-text); }\n :host(.ui-badge--success) { --_bg: var(--ui-color-success-subtle); --_fg: var(--ui-color-success-text); }\n :host(.ui-badge--warning) { --_bg: var(--ui-color-warning-subtle); --_fg: var(--ui-color-warning-text); }\n :host(.ui-badge--danger) { --_bg: var(--ui-color-danger-subtle); --_fg: var(--ui-color-danger-text); }\n\n :host(.ui-badge--solid) { --_fg: var(--ui-color-on-primary); --_bg: var(--ui-color-primary); }\n :host(.ui-badge--solid.ui-badge--neutral) { --_bg: var(--ui-color-neutral); --_fg: var(--ui-color-on-neutral); }\n :host(.ui-badge--solid.ui-badge--success) { --_bg: var(--ui-color-success); --_fg: var(--ui-color-on-success); }\n :host(.ui-badge--solid.ui-badge--warning) { --_bg: var(--ui-color-warning); --_fg: var(--ui-color-on-warning); }\n :host(.ui-badge--solid.ui-badge--danger) { --_bg: var(--ui-color-danger); --_fg: var(--ui-color-on-danger); }\n\n :host(.ui-badge--outline) { --_bg: transparent; --_border: currentColor; }\n `,\n})\nexport class UiBadge {\n /** Couleur sémantique. */\n readonly tone = input<UiTone>('primary');\n /** Remplissage : atténué, plein ou contour. */\n readonly appearance = input<UiBadgeAppearance>('soft');\n /** Coins entièrement arrondis. */\n readonly pill = input(false, { transform: booleanAttribute });\n /** Icône avant le texte (`préfixe:nom`, voir `provideUiIcons()`). */\n readonly icon = input<string>();\n /** Affiche une pastille de statut avant le texte. */\n readonly dot = input(false, { transform: booleanAttribute });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n inject,\n input,\n isDevMode,\n} from '@angular/core';\n\nexport type UiCardAppearance = 'elevated' | 'outlined' | 'filled';\n\n/** Marque l'en-tête d'une carte (`<header uiCardHeader>`). */\n@Directive({ selector: '[uiCardHeader]', host: { class: 'ui-card__header' } })\nexport class UiCardHeader {}\n\n/**\n * Marque le média pleine largeur d'une carte (image, vidéo…).\n * Une image doit avoir un `alt` : une description utile, ou `alt=\"\"` si elle est purement décorative.\n */\n@Directive({ selector: '[uiCardMedia]', host: { class: 'ui-card__media' } })\nexport class UiCardMedia {\n constructor() {\n if (isDevMode()) {\n const el = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n afterNextRender(() => {\n if (el.tagName === 'IMG' && !el.hasAttribute('alt')) {\n console.warn('[ic-angular-uikit] <img uiCardMedia> sans attribut alt : décrivez l’image, ou alt=\"\" si elle est décorative.', el);\n }\n });\n }\n }\n}\n\n/** Marque le pied d'une carte, typiquement des actions (`<footer uiCardFooter>`). */\n@Directive({ selector: '[uiCardFooter]', host: { class: 'ui-card__footer' } })\nexport class UiCardFooter {}\n\n/**\n * Conteneur de contenu structuré en zones optionnelles : média, en-tête, corps, pied.\n * Chaque zone est un emplacement de projection, vous gardez la main sur le balisage.\n *\n * @slot [uiCardMedia] - Média affiché bord à bord en haut de la carte.\n * @slot [uiCardHeader] - En-tête (titre, sous-titre, actions secondaires).\n * @slot default - Corps de la carte.\n * @slot [uiCardFooter] - Pied, aligné à droite par défaut.\n * @slot ui-ribbon - Ruban dans un coin de la carte.\n *\n * Avec `orientation=\"horizontal\"`, le média passe à gauche du contenu quand la carte fait au moins 32rem de large ;\n * plus étroite (colonne, mobile), elle s'empile à nouveau. La règle dépend de la largeur de la carte, pas de l'écran.\n * Une carte sans média reste sur une colonne.\n *\n * @cssprop --ui-card-padding - Marge intérieure des zones (défaut : `--ui-space-5`).\n * @cssprop --ui-card-media-width - Largeur du média en disposition horizontale (défaut : `minmax(10rem, 40%)`).\n * @cssprop --ui-card-radius - Rayon des coins (défaut : `--ui-radius-lg`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-card',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-card',\n '[class]': '\"ui-card--\" + appearance()',\n '[class.ui-card--interactive]': 'interactive()',\n '[class.ui-card--horizontal]': 'orientation() === \"horizontal\"',\n },\n template: `\n <ng-content select=\"ui-ribbon\" />\n <div class=\"ui-card__layout\">\n <ng-content select=\"[uiCardMedia]\" />\n <ng-content select=\"[uiCardHeader]\" />\n <div class=\"ui-card__body\"><ng-content /></div>\n <ng-content select=\"[uiCardFooter]\" />\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n styles: `\n .ui-card {\n --_pad: var(--ui-card-padding, var(--ui-space-5));\n /* La carte est son propre conteneur : sa mise en page suit sa largeur, pas celle de l'écran. */\n container: ui-card / inline-size;\n position: relative;\n display: block;\n overflow: hidden;\n border: 1px solid transparent;\n border-radius: var(--ui-card-radius, var(--ui-radius-lg));\n background: var(--ui-color-surface);\n color: var(--ui-color-text);\n }\n .ui-card--elevated { box-shadow: var(--ui-shadow-md); border-color: var(--ui-color-border); }\n .ui-card--outlined { border-color: var(--ui-color-border); }\n .ui-card--filled { background: var(--ui-color-surface-sunken); }\n .ui-card--interactive {\n cursor: pointer;\n transition: box-shadow var(--ui-duration-normal) var(--ui-easing), transform var(--ui-duration-normal) var(--ui-easing);\n }\n .ui-card--interactive:hover { box-shadow: var(--ui-shadow-lg); transform: translateY(-2px); }\n .ui-card--interactive:focus-visible { outline: 2px solid var(--ui-color-focus-ring); outline-offset: 2px; }\n\n .ui-card__layout { display: flex; flex-direction: column; height: 100%; }\n .ui-card__layout > .ui-card__body { padding: var(--_pad); flex: 1; }\n .ui-card__layout > .ui-card__header { padding: var(--_pad) var(--_pad) 0; }\n .ui-card__layout > .ui-card__header + .ui-card__body { padding-top: var(--ui-space-3); }\n .ui-card__layout > .ui-card__media { width: 100%; box-sizing: border-box; }\n /* Médias natifs : bloc rempli sans déformation. Un conteneur (div) garde la mise en page choisie par l'auteur. */\n .ui-card__layout > .ui-card__media:is(img, video, picture, svg) { display: block; object-fit: cover; }\n .ui-card__layout > .ui-card__footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--ui-space-2);\n padding: var(--ui-space-3) var(--_pad);\n border-top: 1px solid var(--ui-color-border);\n }\n\n /* Disposition horizontale : seulement si la carte est assez large ET a un média (pas de colonne vide). */\n @container ui-card (width >= 32rem) {\n .ui-card--horizontal > .ui-card__layout:has(> .ui-card__media) {\n display: grid;\n grid-template-columns: var(--ui-card-media-width, minmax(10rem, 40%)) minmax(0, 1fr);\n grid-template-rows: auto 1fr auto;\n }\n .ui-card--horizontal > .ui-card__layout:has(> .ui-card__media) > .ui-card__media {\n grid-column: 1;\n grid-row: 1 / span 3;\n height: 100%;\n min-height: 100%;\n aspect-ratio: auto;\n }\n .ui-card--horizontal > .ui-card__layout:has(> .ui-card__media) > .ui-card__header { grid-column: 2; grid-row: 1; }\n .ui-card--horizontal > .ui-card__layout:has(> .ui-card__media) > .ui-card__body { grid-column: 2; grid-row: 2; }\n .ui-card--horizontal > .ui-card__layout:has(> .ui-card__media) > .ui-card__footer { grid-column: 2; grid-row: 3; }\n }\n `,\n})\nexport class UiCard {\n /** Rendu de la carte : ombre, contour ou fond teinté. */\n readonly appearance = input<UiCardAppearance>('elevated');\n /** Disposition : contenu sous le média (`vertical`) ou à côté (`horizontal`, si la carte est assez large). */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n /** Ajoute un effet de survol (à combiner avec un `tabindex` et un `(click)`). */\n readonly interactive = input(false, { transform: booleanAttribute });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '../icon/icon';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n contentChild,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nexport type UiAlertTone = 'info' | 'success' | 'warning' | 'danger';\n\n/** Contexte passé au template d'icône `ng-template uiAlertIcon`. */\nexport interface UiAlertIconContext {\n /** Ton de l'alerte. */\n $implicit: UiAlertTone;\n}\n\n/**\n * Remplace l'icône par défaut d'une alerte.\n *\n * ```html\n * <ng-template uiAlertIcon let-tone>…</ng-template>\n * ```\n */\n@Directive({ selector: 'ng-template[uiAlertIcon]' })\nexport class UiAlertIcon {\n readonly template = inject<TemplateRef<UiAlertIconContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_dir: UiAlertIcon, _ctx: unknown): _ctx is UiAlertIconContext {\n return true;\n }\n}\n\n/** Zone d'actions d'une alerte (boutons, liens). */\n@Directive({\n selector: '[uiAlertActions]',\n host: { class: 'ui-alert__actions', style: 'display:flex;flex-wrap:wrap;gap:var(--ui-space-2);margin-top:var(--ui-space-3)' },\n})\nexport class UiAlertActions {}\n\n/**\n * Message contextuel (information, succès, avertissement, erreur), éventuellement refermable.\n *\n * @slot default - Contenu du message.\n * @slot ng-template[uiAlertIcon] - Template remplaçant l'icône ; reçoit le ton en contexte (`let-tone`).\n * @slot [uiAlertActions] - Actions affichées sous le message.\n * @category Retours & superpositions\n */\n@Component({\n selector: 'ui-alert',\n imports: [NgTemplateOutlet, UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"ui-alert ui-alert--\" + tone()',\n '[attr.role]': 'tone() === \"danger\" || tone() === \"warning\" ? \"alert\" : \"status\"',\n '[hidden]': 'isDismissed()',\n },\n template: `\n @if (!hideIcon()) {\n <span class=\"ui-alert__icon\" aria-hidden=\"true\">\n @if (iconTemplate(); as custom) {\n <ng-container *ngTemplateOutlet=\"custom.template; context: { $implicit: tone() }\" />\n } @else if (icon(); as name) {\n <ui-icon class=\"ui-alert__ui-icon\" [name]=\"name\" />\n } @else {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n @switch (tone()) {\n @case ('success') { <path d=\"M20 6 9 17l-5-5\" /> }\n @case ('warning') { <path d=\"M12 9v4M12 17h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z\" /> }\n @case ('danger') { <circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m15 9-6 6M9 9l6 6\" /> }\n @default { <circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 16v-4M12 8h.01\" /> }\n }\n </svg>\n }\n </span>\n }\n <div class=\"ui-alert__content\">\n @if (title()) {\n <p class=\"ui-alert__title\">{{ title() }}</p>\n }\n <div class=\"ui-alert__message\"><ng-content /></div>\n <ng-content select=\"[uiAlertActions]\" />\n </div>\n @if (dismissible()) {\n <button type=\"button\" class=\"ui-alert__close\" [attr.aria-label]=\"dismissLabel()\" (click)=\"dismiss()\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n </button>\n }\n `,\n styleUrl: './alert.css',\n})\nexport class UiAlert {\n /** Ton sémantique (définit la couleur, l'icône et le rôle ARIA). */\n readonly tone = input<UiAlertTone>('info');\n /** Titre optionnel affiché en gras au-dessus du message. */\n readonly title = input<string>();\n /** Affiche un bouton de fermeture. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Libellé accessible du bouton de fermeture. */\n readonly dismissLabel = input('Fermer');\n /** Icône d'un jeu déclaré avec `provideUiIcons()`, à la place de l'icône par défaut du ton. */\n readonly icon = input<string>();\n /** Masque l'icône. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Masque automatiquement l'alerte quand elle est fermée.\n * Passez `false` pour gérer vous-même l'affichage via `(dismissed)`.\n */\n readonly autoHide = input(true, { transform: booleanAttribute });\n\n /** Émis quand l'utilisateur ferme l'alerte. */\n readonly dismissed = output<void>();\n\n protected readonly iconTemplate = contentChild(UiAlertIcon);\n protected readonly isDismissed = signal(false);\n\n /** Ferme l'alerte par programme (émet `dismissed`). */\n dismiss(): void {\n if (this.autoHide()) {\n this.isDismissed.set(true);\n }\n this.dismissed.emit();\n }\n\n /** Réaffiche une alerte fermée. */\n show(): void {\n this.isDismissed.set(false);\n }\n}\n","let nextId = 0;\n\n/**\n * Génère un identifiant DOM unique et stable (compteur, pas d'aléatoire).\n * @internal\n */\nexport function uniqueId(prefix: string): string {\n nextId += 1;\n return `${prefix}-${nextId}`;\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { UiFieldState } from './field-validation';\n\n/**\n * Ligne de message sous un champ : erreur, attente, succès ou aide, avec compteur optionnel.\n * La zone de texte est une région `aria-live` : les erreurs qui apparaissent sont annoncées.\n * @internal\n */\n@Component({\n selector: 'ui-field-message',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': '\"ui-field-message ui-field-message--\" + state().status' },\n template: `\n <p class=\"ui-field-message__line\" [id]=\"messageId()\" [hidden]=\"!state().message && !hint() && !counter()\">\n <span class=\"ui-field-message__text\" aria-live=\"polite\">\n @if (state().message; as message) {\n <svg class=\"ui-field-message__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n @switch (state().status) {\n @case ('invalid') { <circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 8v4M12 16h.01\" /> }\n @case ('valid') { <circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m8 12 3 3 5-6\" /> }\n @default { <path d=\"M21 12a9 9 0 1 1-6.2-8.6\" class=\"ui-field-message__spin\" /> }\n }\n </svg>\n {{ message }}\n } @else {\n {{ hint() }}\n }\n </span>\n @if (counter()) {\n <span class=\"ui-field-message__counter\">{{ counter() }}</span>\n }\n </p>\n `,\n styles: `\n :host { display: block; font-size: var(--ui-font-size-xs); color: var(--ui-color-text-muted); }\n .ui-field-message__line { display: flex; justify-content: space-between; gap: var(--ui-space-2); margin: 0; }\n .ui-field-message__line[hidden] { display: none; }\n .ui-field-message__text { display: inline-flex; align-items: flex-start; gap: var(--ui-space-1); }\n .ui-field-message__icon { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.15em; }\n .ui-field-message__counter { margin-left: auto; font-variant-numeric: tabular-nums; }\n :host(.ui-field-message--invalid) .ui-field-message__text { color: var(--ui-color-danger-text); }\n :host(.ui-field-message--valid) .ui-field-message__text { color: var(--ui-color-success-text); }\n :host(.ui-field-message--pending) .ui-field-message__text { color: var(--ui-color-text-muted); }\n .ui-field-message__spin { transform-origin: center; animation: ui-field-spin 0.8s linear infinite; }\n @keyframes ui-field-spin { to { transform: rotate(360deg); } }\n `,\n})\nexport class UiFieldMessage {\n readonly messageId = input.required<string>();\n readonly state = input.required<UiFieldState>();\n readonly hint = input<string>();\n readonly counter = input<string | null>(null);\n}\n","import { InjectionToken, Provider, inject } from '@angular/core';\nimport { AbstractControl, ValidationErrors } from '@angular/forms';\n\n/** Valeur associée à une clé d'erreur (ex. `{ requiredLength: 8, actualLength: 3 }` pour `minlength`). */\nexport type UiValidationErrorValue = ValidationErrors[string];\n\n/** Contexte passé aux messages sous forme de fonction. */\nexport interface UiErrorContext {\n /** Libellé du champ, s'il en a un. */\n label?: string;\n /** Contrôle Angular validé. */\n control: AbstractControl | null;\n}\n\n/**\n * Un message d'erreur : texte avec paramètres `{nom}` remplacés par les propriétés de l'erreur\n * (`'Au moins {requiredLength} caractères'`) et `{label}`, ou fonction pour un contrôle total.\n */\nexport type UiErrorMessage = string | ((error: UiValidationErrorValue, context: UiErrorContext) => string);\n\n/** Messages indexés par clé d'erreur (`required`, `email`, `minlength`, `pattern`, clés de vos validateurs…). */\nexport type UiErrorMessages = Record<string, UiErrorMessage>;\n\n/**\n * Quand afficher les erreurs :\n * - `touched` : après que le champ a été quitté, ou après la soumission du formulaire (défaut) ;\n * - `dirty` : dès la première modification, ou après la soumission ;\n * - `submitted` : seulement après la soumission du formulaire parent ;\n * - `immediate` : tout de suite.\n */\nexport type UiShowErrorsWhen = 'touched' | 'dirty' | 'submitted' | 'immediate';\n\nexport interface UiValidationConfig {\n /** Messages par clé d'erreur ; complètent ou remplacent les messages par défaut. */\n messages?: UiErrorMessages;\n /** Moment d'affichage des erreurs. Défaut : `touched`. */\n showErrorsWhen?: UiShowErrorsWhen;\n /** Affiche l'état « valide » (bordure verte) une fois le champ modifié et valide. Défaut : `false`. */\n showSuccess?: boolean;\n /** Message affiché pendant une validation asynchrone. Défaut : `Vérification…`. */\n pendingMessage?: string;\n /** Message quand aucune règle ne correspond à l'erreur. Défaut : `Valeur invalide.` */\n fallbackMessage?: string;\n}\n\n/** Messages par défaut (français) des validateurs Angular. */\nexport const UI_DEFAULT_ERROR_MESSAGES: UiErrorMessages = {\n required: 'Ce champ est obligatoire.',\n email: 'Saisissez une adresse e-mail valide.',\n minlength: 'Au moins {requiredLength} caractères ({actualLength} actuellement).',\n maxlength: 'Au plus {requiredLength} caractères ({actualLength} actuellement).',\n min: 'La valeur minimale est {min}.',\n max: 'La valeur maximale est {max}.',\n pattern: 'Le format est invalide.',\n};\n\nconst DEFAULT_CONFIG: Required<UiValidationConfig> = {\n messages: UI_DEFAULT_ERROR_MESSAGES,\n showErrorsWhen: 'touched',\n showSuccess: false,\n pendingMessage: 'Vérification…',\n fallbackMessage: 'Valeur invalide.',\n};\n\nexport const UI_VALIDATION_CONFIG = new InjectionToken<Required<UiValidationConfig>>('UI_VALIDATION_CONFIG', {\n providedIn: 'root',\n factory: () => DEFAULT_CONFIG,\n});\n\n/**\n * Personnalise la validation des champs ui-kit : messages, moment d'affichage, état « valide ».\n * Utilisable dans `bootstrapApplication` (toute l'application) ou dans les `providers` d'un composant\n * (ce formulaire seulement) : la configuration se fusionne avec celle du niveau supérieur.\n *\n * ```ts\n * provideUiValidation({\n * messages: { required: 'Obligatoire', minlength: '{requiredLength} caractères minimum' },\n * showErrorsWhen: 'submitted',\n * })\n * ```\n */\nexport function provideUiValidation(config: UiValidationConfig): Provider {\n return {\n provide: UI_VALIDATION_CONFIG,\n useFactory: () => {\n const parent = inject(UI_VALIDATION_CONFIG, { skipSelf: true, optional: true }) ?? DEFAULT_CONFIG;\n return { ...parent, ...config, messages: { ...parent.messages, ...config.messages } };\n },\n };\n}\n\n/** Remplace `{nom}` par la propriété correspondante de l'erreur (ou `{label}`). */\nexport function formatErrorMessage(message: UiErrorMessage, error: UiValidationErrorValue, context: UiErrorContext): string {\n if (typeof message === 'function') {\n return message(error, context);\n }\n return message.replace(/\\{(\\w+)\\}/g, (match, key: string) => {\n if (key === 'label') return context.label ?? match;\n const value = error !== null && typeof error === 'object' ? (error as Record<string, unknown>)[key] : undefined;\n return value === undefined || value === null ? match : String(value);\n });\n}\n","import {\n AfterContentInit,\n DestroyRef,\n Directive,\n DoCheck,\n Signal,\n computed,\n inject,\n input,\n booleanAttribute,\n signal,\n} from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, FormGroupDirective, NgControl, NgForm, Validators } from '@angular/forms';\nimport { Subscription, merge } from 'rxjs';\nimport {\n UI_VALIDATION_CONFIG,\n UiErrorMessages,\n UiShowErrorsWhen,\n formatErrorMessage,\n} from './messages';\n\n/** État visuel d'un champ. */\nexport interface UiFieldState {\n /** `invalid` (erreur affichée), `pending` (validation asynchrone), `valid` (succès affiché) ou `none`. */\n status: 'none' | 'invalid' | 'pending' | 'valid';\n /** Message à afficher, s'il y en a un. */\n message: string | null;\n /** Clé de l'erreur affichée (`required`, `minlength`…), ou `manual` pour l'input `error`. */\n errorKey: string | null;\n}\n\nconst NONE: UiFieldState = { status: 'none', message: null, errorKey: null };\n\n/**\n * Validation graphique partagée par tous les champs de formulaire de la librairie\n * (`ui-text-field`, `ui-textarea`, `ui-select`, `ui-checkbox`, `ui-radio-group`, `ui-switch`).\n * Ses entrées sont disponibles directement sur ces composants.\n *\n * Elle lit le contrôle Angular attaché au champ (`formControlName`, `[formControl]`, `ngModel`) :\n * erreurs, état touché / modifié, soumission du formulaire parent et validation asynchrone.\n * Le message affiché est choisi dans cet ordre : `errorMessages` du champ, propriété `message` fournie par\n * le validateur (`{ clé: { message: '…' } }`), messages de `provideUiValidation`, messages par défaut.\n */\n@Directive({ selector: '[uiFieldValidation]' })\nexport class UiFieldValidation implements DoCheck, AfterContentInit {\n /** Message d'erreur imposé : prioritaire sur la validation du contrôle (utile sans formulaire Angular). */\n readonly error = input<string | null>();\n /** Messages propres à ce champ, par clé d'erreur (`{ pattern: 'Format attendu : AA-123' }`). */\n readonly errorMessages = input<UiErrorMessages>();\n /** Moment d'affichage des erreurs pour ce champ (sinon : configuration globale, `touched` par défaut). */\n readonly showErrorsWhen = input<UiShowErrorsWhen>();\n /** Affiche l'état « valide » (bordure et message verts) une fois le champ modifié et valide. */\n readonly showSuccess = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (v: unknown) => (v === undefined ? undefined : booleanAttribute(v)),\n });\n /** Message affiché dans l'état « valide » (aucun par défaut, seule la bordure change). */\n readonly successMessage = input<string>();\n\n private readonly config = inject(UI_VALIDATION_CONFIG);\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly parentForm = inject(FormGroupDirective, { optional: true }) ?? inject(NgForm, { optional: true });\n private readonly version = signal(0);\n private subscribed: AbstractControl | null = null;\n private subscription: Subscription | null = null;\n private label: Signal<string | undefined> = signal(undefined);\n private componentMessages: UiErrorMessages = {};\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.subscription?.unsubscribe());\n }\n\n /**\n * Branche le composant hôte comme `ControlValueAccessor` du contrôle Angular.\n * @internal\n */\n attach(accessor: ControlValueAccessor, options: { label?: Signal<string | undefined>; messages?: UiErrorMessages } = {}): void {\n if (this.ngControl) {\n this.ngControl.valueAccessor = accessor;\n }\n this.label = options.label ?? this.label;\n this.componentMessages = options.messages ?? {};\n }\n\n /** Contrôle Angular attaché, `null` si le champ est utilisé sans formulaire. */\n get control(): AbstractControl | null {\n return this.ngControl?.control ?? null;\n }\n\n /** `true` si le contrôle porte `Validators.required` ou `Validators.requiredTrue`. */\n readonly required = computed(() => {\n this.version();\n const control = this.control;\n return !!control && (control.hasValidator(Validators.required) || control.hasValidator(Validators.requiredTrue));\n });\n\n /** État visuel courant (erreur, attente, valide) et message associé. */\n readonly state = computed<UiFieldState>(() => {\n this.version();\n const manual = this.error();\n if (manual) {\n return { status: 'invalid', message: manual, errorKey: 'manual' };\n }\n const control = this.control;\n if (!control) {\n return NONE;\n }\n if (control.pending) {\n return { status: 'pending', message: this.config.pendingMessage, errorKey: null };\n }\n const submitted = !!this.parentForm?.submitted;\n if (control.invalid && this.shouldShowErrors(control, submitted)) {\n return this.errorState(control);\n }\n const showSuccess = this.showSuccess() ?? this.config.showSuccess;\n if (showSuccess && control.valid && control.enabled && (control.dirty || submitted)) {\n return { status: 'valid', message: this.successMessage() ?? null, errorKey: null };\n }\n return NONE;\n });\n\n ngDoCheck(): void {\n // Le contrôle peut changer ([formControl] remplacé) ou n'être créé qu'après l'hôte (formControlName).\n if (this.control !== this.subscribed) {\n this.connect();\n }\n }\n\n ngAfterContentInit(): void {\n this.connect();\n }\n\n private connect(): void {\n const control = this.control;\n if (control === this.subscribed) {\n return;\n }\n this.subscription?.unsubscribe();\n this.subscribed = control;\n if (control) {\n const sources = [control.events];\n if (this.parentForm) {\n sources.push(this.parentForm.form.events);\n }\n this.subscription = merge(...sources).subscribe(() => this.version.update((v) => v + 1));\n }\n this.version.update((v) => v + 1);\n }\n\n private shouldShowErrors(control: AbstractControl, submitted: boolean): boolean {\n switch (this.showErrorsWhen() ?? this.config.showErrorsWhen) {\n case 'immediate':\n return true;\n case 'submitted':\n return submitted;\n case 'dirty':\n return control.dirty || submitted;\n default:\n return control.touched || submitted;\n }\n }\n\n private errorState(control: AbstractControl): UiFieldState {\n const errors = control.errors ?? {};\n const key = Object.keys(errors)[0];\n if (!key) {\n return { status: 'invalid', message: this.config.fallbackMessage, errorKey: null };\n }\n const error = errors[key];\n const context = { label: this.label(), control };\n const own = this.errorMessages()?.[key];\n const fromValidator = error !== null && typeof error === 'object' && typeof error.message === 'string' ? (error.message as string) : null;\n const template = own ?? fromValidator ?? this.componentMessages[key] ?? this.config.messages[key] ?? this.config.fallbackMessage;\n return { status: 'invalid', message: formatErrorMessage(template, error, context), errorKey: key };\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\n/**\n * Interrupteur on/off. Utilisable en liaison bidirectionnelle (`[(checked)]`)\n * ou avec les formulaires Angular (`formControl`, `ngModel`).\n *\n * @slot default - Libellé de l'interrupteur (cliquable).\n * @cssprop --ui-switch-on-color - Couleur de la piste activée (défaut : `--ui-color-primary`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-switch',\n imports: [UiFieldMessage],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-switch ui-switch--\" + size()',\n '[class.ui-switch--disabled]': 'isDisabled()',\n '[class.ui-switch--invalid]': 'validation.state().status === \"invalid\"',\n '[class.ui-switch--label-start]': 'labelPosition() === \"start\"',\n },\n template: `\n <button\n type=\"button\"\n role=\"switch\"\n class=\"ui-switch__track\"\n [id]=\"inputId\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"(description() ? descriptionId + ' ' : '') + messageId\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid' || null\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n (blur)=\"onTouched()\"\n >\n <span class=\"ui-switch__thumb\"></span>\n </button>\n <span class=\"ui-switch__text\">\n <label class=\"ui-switch__label\" [id]=\"labelId\" [for]=\"inputId\"><ng-content /></label>\n @if (description()) {\n <span class=\"ui-switch__description\" [id]=\"descriptionId\">{{ description() }}</span>\n }\n <ui-field-message [messageId]=\"messageId\" [state]=\"validation.state()\" />\n </span>\n `,\n styleUrl: './switch.css',\n})\nexport class UiSwitch implements ControlValueAccessor {\n /** État de l'interrupteur (liaison bidirectionnelle `[(checked)]`). */\n readonly checked = model(false);\n /** Désactive l'interrupteur. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Taille. */\n readonly size = input<UiSize>('md');\n /** Position du libellé par rapport à l'interrupteur. */\n readonly labelPosition = input<'start' | 'end'>('end');\n /** Texte d'aide affiché sous le libellé (relié par `aria-describedby`). */\n readonly description = input<string>();\n\n /** Émis à chaque changement provoqué par l'utilisateur, avec le nouvel état. */\n readonly changed = output<boolean>();\n\n protected readonly inputId = uniqueId('ui-switch');\n protected readonly labelId = `${this.inputId}-label`;\n protected readonly descriptionId = `${this.inputId}-description`;\n protected readonly messageId = `${this.inputId}-message`;\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n constructor() {\n this.validation.attach(this, { messages: { required: 'Cette option doit être activée.' } });\n }\n\n private onChange: (value: boolean) => void = () => undefined;\n protected onTouched: () => void = () => undefined;\n\n /** Inverse l'état (sans effet si désactivé). */\n toggle(): void {\n if (this.isDisabled()) {\n return;\n }\n const next = !this.checked();\n this.checked.set(next);\n this.onChange(next);\n this.changed.emit(next);\n }\n\n writeValue(value: unknown): void {\n this.checked.set(Boolean(value));\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","import { ElementRef, afterNextRender, inject, isDevMode } from '@angular/core';\n\n/**\n * En développement, avertit si un champ n'a aucun nom accessible (ni `label`, ni `ariaLabel`, ni `aria-labelledby`).\n * Un placeholder ne remplace pas un libellé : les lecteurs d'écran l'ignorent souvent.\n * @internal\n */\nexport function warnIfUnlabelled(component: string, hasName: () => boolean): void {\n if (!isDevMode()) {\n return;\n }\n const host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n afterNextRender(() => {\n if (!hasName() && !host.hasAttribute('aria-labelledby')) {\n console.warn(\n `[ic-angular-uikit] <${component}> sans libellé : renseignez \\`label\\` (ou \\`ariaLabel\\` si le libellé visible est ailleurs). ` +\n 'Un placeholder ne remplace pas un libellé.',\n host,\n );\n }\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiIcon } from '../icon/icon';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\nexport type UiTextFieldType = 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number' | 'date' | 'datetime-local' | 'time';\n\n/** Contenu affiché au début du champ (icône, unité…). */\n@Directive({ selector: '[uiPrefix]', host: { class: 'ui-text-field__affix' } })\nexport class UiPrefix {}\n\n/** Contenu affiché à la fin du champ (icône, unité, bouton…). */\n@Directive({ selector: '[uiSuffix]', host: { class: 'ui-text-field__affix' } })\nexport class UiSuffix {}\n\n/**\n * Champ de saisie avec libellé, aide, message d'erreur et zones préfixe / suffixe.\n * Utilisable avec `[(value)]` ou les formulaires Angular (`formControl`, `ngModel`).\n *\n * @slot [uiPrefix] - Contenu affiché au début du champ.\n * @slot [uiSuffix] - Contenu affiché à la fin du champ.\n * @cssprop --ui-field-radius - Rayon des coins, commun à tous les champs (défaut : `--ui-radius-md`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-text-field',\n imports: [UiFieldMessage, UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-field ui-text-field ui-field--\" + size()',\n '[class.ui-field--invalid]': 'validation.state().status === \"invalid\"',\n '[class.ui-field--valid]': 'validation.state().status === \"valid\"',\n '[class.ui-field--pending]': 'validation.state().status === \"pending\"',\n '[class.ui-field--disabled]': 'isDisabled()',\n '[class.ui-field--focused]': 'focused()',\n '[class.ui-text-field--clearable]': 'clearable()',\n },\n template: `\n @if (label()) {\n <label class=\"ui-field__label\" [for]=\"inputId\">\n {{ label() }}\n @if (isRequired()) {\n <span class=\"ui-field__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n }\n <div class=\"ui-field__control\">\n @if (prefixIcon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n <ng-content select=\"[uiPrefix]\" />\n <input\n #input\n class=\"ui-text-field__input\"\n [id]=\"inputId\"\n [type]=\"type()\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"isRequired()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid'\"\n [attr.aria-describedby]=\"messageId\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n (input)=\"onInput($event)\"\n (focus)=\"setFocused(true)\"\n (blur)=\"setFocused(false)\"\n />\n @if (clearable() && value() && !isDisabled() && !readonly()) {\n <button type=\"button\" class=\"ui-text-field__clear\" [attr.aria-label]=\"clearLabel()\" (click)=\"clear()\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n </button>\n }\n <ng-content select=\"[uiSuffix]\" />\n @if (suffixIcon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n @if (validation.state().status === 'valid') {\n <svg class=\"ui-field__status-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n }\n </div>\n <ui-field-message [messageId]=\"messageId\" [state]=\"validation.state()\" [hint]=\"hint()\" [counter]=\"counterText()\" />\n `,\n styleUrls: ['../core/field.css', './text-field.css'],\n})\nexport class UiTextField implements ControlValueAccessor {\n /** Valeur du champ (liaison bidirectionnelle `[(value)]`). */\n readonly value = model('');\n /** Libellé affiché au-dessus du champ. */\n readonly label = input<string>();\n /** Nom accessible quand aucun `label` visible n'est affiché (ex. champ de recherche dans une barre d'outils). */\n readonly ariaLabel = input<string>();\n /** Type HTML de l'input. */\n readonly type = input<UiTextFieldType>('text');\n /** Texte indicatif affiché quand le champ est vide. */\n readonly placeholder = input('');\n /** Texte d'aide sous le champ. */\n readonly hint = input<string>();\n /** Taille. */\n readonly size = input<UiSize>('md');\n /** Champ obligatoire (ajoute un astérisque et l'attribut `required`). */\n readonly required = input(false, { transform: booleanAttribute });\n /** Désactive le champ. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Lecture seule. */\n readonly readonly = input(false, { transform: booleanAttribute });\n /** Affiche un bouton pour vider le champ. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Libellé accessible du bouton d'effacement. */\n readonly clearLabel = input('Effacer');\n /** Longueur maximale ; affiche un compteur de caractères. */\n readonly maxLength = input<number | undefined, number | string | null | undefined>(undefined, {\n transform: (v: unknown) => (v === undefined || v === null || v === '' ? undefined : numberAttribute(v)),\n });\n /** Icône décorative au début du champ (`préfixe:nom`, voir `provideUiIcons()`). */\n readonly prefixIcon = input<string>();\n /** Icône décorative à la fin du champ. */\n readonly suffixIcon = input<string>();\n /** Valeur de l'attribut HTML `autocomplete`. */\n readonly autocomplete = input<string>();\n\n /** Émis quand le champ est vidé via le bouton d'effacement. */\n readonly cleared = output<void>();\n /** Émis quand le champ gagne (`true`) ou perd (`false`) le focus. */\n readonly focusChange = output<boolean>();\n\n protected readonly inputId = uniqueId('ui-text-field');\n protected readonly messageId = `${this.inputId}-message`;\n protected readonly focused = signal(false);\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n private readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n /** Obligatoire via l'input `required` ou un validateur `Validators.required` sur le contrôle. */\n protected readonly isRequired = computed(() => this.required() || this.validation.required());\n protected readonly counterText = computed(() => {\n const max = this.maxLength();\n return max ? `${this.value().length} / ${max}` : null;\n });\n\n constructor() {\n this.validation.attach(this, { label: this.label });\n warnIfUnlabelled('ui-text-field', () => !!(this.label() || this.ariaLabel()));\n }\n\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n /** Donne le focus au champ. */\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n /** Vide le champ, émet `cleared` et redonne le focus. */\n clear(): void {\n this.updateValue('');\n this.cleared.emit();\n this.focus();\n }\n\n protected onInput(event: Event): void {\n this.updateValue((event.target as HTMLInputElement).value);\n }\n\n protected setFocused(focused: boolean): void {\n this.focused.set(focused);\n this.focusChange.emit(focused);\n if (!focused) {\n this.onTouched();\n }\n }\n\n private updateValue(value: string): void {\n this.value.set(value);\n this.onChange(value);\n }\n\n writeValue(value: unknown): void {\n this.value.set(value === null || value === undefined ? '' : String(value));\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n inject,\n input,\n model,\n output,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UiIcon } from '../icon/icon';\n\n/**\n * Libellé riche d'un onglet.\n *\n * ```html\n * <ui-tab><ng-template uiTabLabel>Messages <ui-badge>4</ui-badge></ng-template>…</ui-tab>\n * ```\n */\n@Directive({ selector: 'ng-template[uiTabLabel]' })\nexport class UiTabLabel {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * Contenu chargé paresseusement : il n'est créé qu'à la première activation de l'onglet.\n *\n * ```html\n * <ui-tab label=\"Stats\"><ng-template uiTabContent><app-heavy-chart /></ng-template></ui-tab>\n * ```\n */\n@Directive({ selector: 'ng-template[uiTabContent]' })\nexport class UiTabContent {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * Un onglet de `ui-tabs`.\n *\n * @slot default - Contenu du panneau (créé immédiatement).\n * @slot ng-template[uiTabLabel] - Libellé riche, remplace `label`.\n * @slot ng-template[uiTabContent] - Contenu paresseux, créé à la première activation.\n */\n@Component({\n selector: 'ui-tab',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-template #body><ng-content /></ng-template>`,\n})\nexport class UiTab {\n /** Libellé texte de l'onglet. */\n readonly label = input('');\n /** Icône avant le libellé (`préfixe:nom`, voir `provideUiIcons()`). */\n readonly icon = input<string>();\n /** Désactive l'onglet. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** @internal */\n readonly labelTemplate = contentChild(UiTabLabel);\n /** @internal */\n readonly lazyContent = contentChild(UiTabContent);\n /** @internal */\n readonly bodyTemplate = viewChild.required<TemplateRef<unknown>>('body');\n /** @internal */\n readonly contentTemplate = computed(() => this.lazyContent()?.template ?? this.bodyTemplate());\n}\n\n/** Payload de l'événement `tabChange`. */\nexport interface UiTabChange {\n /** Index du nouvel onglet actif. */\n index: number;\n /** Index de l'onglet précédemment actif. */\n previousIndex: number;\n /** Onglet devenu actif. */\n tab: UiTab;\n}\n\nexport type UiTabsAppearance = 'line' | 'pills';\n\n/**\n * Navigation par onglets accessible (motif ARIA « tabs » : flèches, Origine, Fin).\n *\n * Avec `orientation=\"vertical\"`, la liste d'onglets passe à gauche du panneau (flèches haut / bas) quand le composant\n * fait au moins 30rem de large ; plus étroit, il revient à des onglets horizontaux. La règle dépend de la largeur du\n * composant, pas de l'écran.\n *\n * @slot ui-tab - Les onglets.\n * @cssprop --ui-tabs-list-width - Largeur de la liste en disposition verticale (défaut : `minmax(10rem, max-content)`).\n * @category Navigation\n */\n@Component({\n selector: 'ui-tabs',\n imports: [NgTemplateOutlet, UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"ui-tabs ui-tabs--\" + appearance()',\n '[class.ui-tabs--stretch]': 'stretch() && orientation() === \"horizontal\"',\n '[class.ui-tabs--vertical]': 'orientation() === \"vertical\"',\n },\n template: `\n <div class=\"ui-tabs__layout\">\n <!-- Le clavier est délégué : keydown remonte depuis l'onglet focalisé (tabindex itinérant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-orientation]=\"orientation()\"\n (keydown)=\"onKeydown($event)\"\n >\n @for (tab of tabs(); track tab; let i = $index) {\n <button\n #tabButton\n type=\"button\"\n role=\"tab\"\n class=\"ui-tabs__tab\"\n [id]=\"baseId + '-tab-' + i\"\n [class.ui-tabs__tab--active]=\"i === activeIndex()\"\n [attr.aria-selected]=\"i === activeIndex()\"\n [attr.aria-controls]=\"baseId + '-panel-' + i\"\n [tabIndex]=\"i === activeIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select(i)\"\n >\n @if (tab.labelTemplate(); as custom) {\n <ng-container *ngTemplateOutlet=\"custom.template\" />\n } @else {\n @if (tab.icon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n {{ tab.label() }}\n }\n </button>\n }\n </div>\n @for (tab of tabs(); track tab; let i = $index) {\n @if (i === activeIndex()) {\n <div\n class=\"ui-tabs__panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"baseId + '-panel-' + i\"\n [attr.aria-labelledby]=\"baseId + '-tab-' + i\"\n >\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate()\" />\n </div>\n }\n }\n </div>\n `,\n styleUrl: './tabs.css',\n})\nexport class UiTabs {\n /** Index de l'onglet actif (liaison bidirectionnelle `[(selectedIndex)]`). */\n readonly selectedIndex = model(0);\n /** Style des onglets. */\n readonly appearance = input<UiTabsAppearance>('line');\n /** Onglets au-dessus du panneau (`horizontal`) ou à sa gauche (`vertical`, si la place le permet). */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n /** Les onglets se partagent toute la largeur (disposition horizontale uniquement). */\n readonly stretch = input(false, { transform: booleanAttribute });\n /** Libellé accessible de la liste d'onglets. */\n readonly ariaLabel = input<string>();\n\n /** Émis quand l'utilisateur change d'onglet. */\n readonly tabChange = output<UiTabChange>();\n\n protected readonly tabs = contentChildren(UiTab);\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('tabButton');\n protected readonly baseId = uniqueId('ui-tabs');\n\n /** Index réellement affiché (borné au nombre d'onglets). */\n protected readonly activeIndex = computed(() => {\n const count = this.tabs().length;\n return count === 0 ? -1 : Math.min(Math.max(this.selectedIndex(), 0), count - 1);\n });\n\n /** Active l'onglet d'index donné (ignoré s'il est désactivé ou inexistant). */\n select(index: number): void {\n const tab = this.tabs()[index];\n const previousIndex = this.activeIndex();\n if (!tab || tab.disabled() || index === previousIndex) {\n return;\n }\n this.selectedIndex.set(index);\n this.tabChange.emit({ index, previousIndex, tab });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const tabs = this.tabs();\n const enabled = tabs.map((tab, i) => (tab.disabled() ? -1 : i)).filter((i) => i >= 0);\n if (enabled.length === 0) {\n return;\n }\n const position = enabled.indexOf(this.activeIndex());\n let target: number | undefined;\n // En vertical : haut / bas (motif ARIA), plus gauche / droite pour le repli horizontal sur petite largeur.\n const vertical = this.orientation() === 'vertical';\n const next = event.key === 'ArrowRight' || (vertical && event.key === 'ArrowDown');\n const previous = event.key === 'ArrowLeft' || (vertical && event.key === 'ArrowUp');\n switch (true) {\n case next:\n target = enabled[(position + 1) % enabled.length];\n break;\n case previous:\n target = enabled[(position - 1 + enabled.length) % enabled.length];\n break;\n case event.key === 'Home':\n target = enabled[0];\n break;\n case event.key === 'End':\n target = enabled[enabled.length - 1];\n break;\n default:\n return;\n }\n event.preventDefault();\n if (target !== undefined) {\n this.select(target);\n this.buttons()[target]?.nativeElement.focus();\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n booleanAttribute,\n effect,\n input,\n model,\n output,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\n\n/** Origine de la fermeture d'un dialogue. */\nexport type UiDialogCloseReason = 'escape' | 'backdrop' | 'close-button' | 'programmatic';\n\nexport type UiDialogSize = 'sm' | 'md' | 'lg';\n\n/** En-tête personnalisé d'un dialogue (remplace `title`). */\n@Directive({ selector: '[uiDialogHeader]', host: { class: 'ui-dialog__custom-header' } })\nexport class UiDialogHeader {}\n\n/** Pied d'un dialogue, typiquement les boutons d'action. */\n@Directive({\n selector: '[uiDialogFooter]',\n host: {\n class: 'ui-dialog__footer',\n style: 'display:flex;justify-content:flex-end;gap:var(--ui-space-2);padding:var(--ui-space-4) var(--ui-space-5);border-top:1px solid var(--ui-color-border)',\n },\n})\nexport class UiDialogFooter {}\n\n/**\n * Fenêtre modale basée sur l'élément natif `<dialog>` (focus piégé, touche Échap,\n * restauration du focus et couche supérieure gérés par le navigateur).\n *\n * @slot default - Corps du dialogue.\n * @slot [uiDialogHeader] - En-tête personnalisé, remplace `title`.\n * @slot [uiDialogFooter] - Pied (boutons d'action).\n * @cssprop --ui-dialog-width - Largeur maximale (sinon déterminée par `size`).\n * @category Retours & superpositions\n */\n@Component({\n selector: 'ui-dialog',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <!-- Le clic sur le fond (::backdrop) ferme le dialogue ; au clavier, Échap fait de même via l'événement natif cancel. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <dialog\n #dialog\n class=\"ui-dialog\"\n [class]=\"'ui-dialog--' + size()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (cancel)=\"onCancel($event)\"\n (close)=\"onNativeClose()\"\n (mousedown)=\"pressedOnBackdrop = $event.target === dialog\"\n (click)=\"onClick($event)\"\n >\n <div class=\"ui-dialog__surface\">\n <ng-content select=\"[uiDialogHeader]\" />\n @if (title() || showClose()) {\n <header class=\"ui-dialog__header\">\n @if (title()) {\n <h2 class=\"ui-dialog__title\" [id]=\"titleId\">{{ title() }}</h2>\n }\n @if (showClose()) {\n <button type=\"button\" class=\"ui-dialog__close\" [attr.aria-label]=\"closeLabel()\" (click)=\"close('close-button')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n </button>\n }\n </header>\n }\n <div class=\"ui-dialog__body\"><ng-content /></div>\n <ng-content select=\"[uiDialogFooter]\" />\n </div>\n </dialog>\n `,\n styleUrl: './dialog.css',\n})\nexport class UiDialog {\n /** Ouvre / ferme le dialogue (liaison bidirectionnelle `[(open)]`). */\n readonly open = model(false);\n /** Titre affiché dans l'en-tête et utilisé comme nom accessible. */\n readonly title = input<string>();\n /** Largeur du dialogue. */\n readonly size = input<UiDialogSize>('md');\n /** Ferme le dialogue au clic sur le fond. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** Ferme le dialogue avec la touche Échap. */\n readonly closeOnEscape = input(true, { transform: booleanAttribute });\n /** Affiche le bouton de fermeture dans l'en-tête. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Libellé accessible du bouton de fermeture. */\n readonly closeLabel = input('Fermer');\n\n /** Émis à l'ouverture du dialogue. */\n readonly opened = output<void>();\n /** Émis à la fermeture, avec son origine. */\n readonly closed = output<UiDialogCloseReason>();\n\n protected readonly titleId = uniqueId('ui-dialog-title');\n protected pressedOnBackdrop = false;\n private readonly dialogRef = viewChild.required<ElementRef<HTMLDialogElement>>('dialog');\n private pendingReason: UiDialogCloseReason = 'programmatic';\n\n constructor() {\n effect(() => {\n const shouldOpen = this.open();\n const dialog = this.dialogRef().nativeElement;\n untracked(() => {\n if (shouldOpen && !dialog.open) {\n dialog.showModal();\n this.opened.emit();\n } else if (!shouldOpen && dialog.open) {\n dialog.close();\n }\n });\n });\n }\n\n /** Ouvre le dialogue. */\n show(): void {\n this.open.set(true);\n }\n\n /** Ferme le dialogue (émet `closed` avec la raison donnée). */\n close(reason: UiDialogCloseReason = 'programmatic'): void {\n this.pendingReason = reason;\n this.dialogRef().nativeElement.close();\n }\n\n protected onCancel(event: Event): void {\n event.preventDefault();\n if (this.closeOnEscape()) {\n this.close('escape');\n }\n }\n\n protected onClick(event: MouseEvent): void {\n const backdropClick = event.target === this.dialogRef().nativeElement && this.pressedOnBackdrop;\n this.pressedOnBackdrop = false;\n if (backdropClick && this.closeOnBackdrop()) {\n this.close('backdrop');\n }\n }\n\n protected onNativeClose(): void {\n const reason = this.pendingReason;\n this.pendingReason = 'programmatic';\n if (this.open()) {\n this.open.set(false);\n }\n this.closed.emit(reason);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\n/**\n * Case à cocher basée sur `<input type=\"checkbox\">` natif (clavier, formulaires, lecteurs d'écran),\n * avec état indéterminé (ex. « tout sélectionner » partiel).\n * Utilisable avec `[(checked)]` ou les formulaires Angular (`formControl`, `ngModel`).\n *\n * @slot default - Libellé (cliquable).\n * @cssprop --ui-checkbox-color - Couleur de la case cochée (défaut : `--ui-color-primary`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-checkbox',\n imports: [UiFieldMessage],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-checkbox ui-checkbox--\" + size()',\n '[class.ui-checkbox--disabled]': 'isDisabled()',\n '[class.ui-checkbox--invalid]': 'validation.state().status === \"invalid\"',\n },\n template: `\n <label class=\"ui-checkbox__row\">\n <input\n type=\"checkbox\"\n class=\"ui-checkbox__input\"\n [id]=\"inputId\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"isDisabled()\"\n [required]=\"isRequired()\"\n [attr.name]=\"name() ?? null\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid' || null\"\n [attr.aria-describedby]=\"(description() ? descriptionId + ' ' : '') + messageId\"\n (change)=\"onToggle($event)\"\n (blur)=\"onTouched()\"\n />\n <span class=\"ui-checkbox__text\">\n <span class=\"ui-checkbox__label\"><ng-content /></span>\n @if (description()) {\n <span class=\"ui-checkbox__description\" [id]=\"descriptionId\">{{ description() }}</span>\n }\n </span>\n </label>\n <ui-field-message class=\"ui-checkbox__message\" [messageId]=\"messageId\" [state]=\"validation.state()\" />\n `,\n styleUrl: './checkbox.css',\n})\nexport class UiCheckbox implements ControlValueAccessor {\n /** État coché (liaison bidirectionnelle `[(checked)]`). */\n readonly checked = model(false);\n /** État indéterminé (liaison `[(indeterminate)]`) ; il est levé dès que l'utilisateur clique. */\n readonly indeterminate = model(false);\n /** Désactive la case. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Case obligatoire (attribut `required`, ex. acceptation des conditions). */\n readonly required = input(false, { transform: booleanAttribute });\n /** Taille. */\n readonly size = input<UiSize>('md');\n /** Texte d'aide sous le libellé (relié par `aria-describedby`). */\n readonly description = input<string>();\n /** Attribut `name` de l'input (soumission de formulaire HTML classique). */\n readonly name = input<string>();\n\n /** Émis à chaque changement provoqué par l'utilisateur, avec le nouvel état. */\n readonly changed = output<boolean>();\n\n protected readonly inputId = uniqueId('ui-checkbox');\n protected readonly descriptionId = `${this.inputId}-description`;\n protected readonly messageId = `${this.inputId}-message`;\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n protected readonly isRequired = computed(() => this.required() || this.validation.required());\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n constructor() {\n // Validators.required / requiredTrue sur une case : message adapté.\n this.validation.attach(this, { messages: { required: 'Cette case doit être cochée.' } });\n }\n\n private onChange: (value: boolean) => void = () => undefined;\n protected onTouched: () => void = () => undefined;\n\n /** Inverse l'état (sans effet si désactivée). */\n toggle(): void {\n if (!this.isDisabled()) {\n this.update(!this.checked());\n }\n }\n\n protected onToggle(event: Event): void {\n this.update((event.target as HTMLInputElement).checked);\n }\n\n private update(checked: boolean): void {\n this.indeterminate.set(false);\n this.checked.set(checked);\n this.onChange(checked);\n this.changed.emit(checked);\n }\n\n writeValue(value: unknown): void {\n this.checked.set(Boolean(value));\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiIcon } from '../icon/icon';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\n/** Une option de `ui-select`. */\nexport interface UiSelectOption<T = unknown> {\n /** Valeur émise quand l'option est choisie (peut être un objet). */\n value: T;\n /** Texte de l'option, toujours affiché (et seul affiché si le navigateur ne gère pas les options riches). */\n label: string;\n /** Option non sélectionnable. */\n disabled?: boolean;\n /**\n * Nom du groupe (`<optgroup>`). Les options d'un même groupe sont rassemblées, les groupes apparaissent\n * dans l'ordre de leur première option et les options sans groupe forment un bloc sans titre.\n */\n group?: string;\n}\n\n/** Contexte du template d'option `ng-template uiSelectOption`. */\nexport interface UiSelectOptionContext<T> {\n /** L'option (`let-option`). */\n $implicit: UiSelectOption<T>;\n /** `true` si l'option est sélectionnée (`let-selected=\"selected\"`). */\n selected: boolean;\n}\n\n/**\n * Contenu riche d'une option (icône, description…), affiché dans la liste déroulante.\n *\n * ```html\n * <ng-template uiSelectOption let-option>…</ng-template>\n * ```\n * Pris en charge par les navigateurs qui gèrent `appearance: base-select` ; ailleurs, seul `label` est affiché.\n */\n@Directive({ selector: 'ng-template[uiSelectOption]' })\nexport class UiSelectOptionTemplate<T> {\n /** Options du select, uniquement pour typer le contexte (`[uiSelectOptionOf]=\"options\"`). */\n readonly uiSelectOptionOf = input<readonly UiSelectOption<T>[]>();\n readonly template = inject<TemplateRef<UiSelectOptionContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(_dir: UiSelectOptionTemplate<T>, _ctx: unknown): _ctx is UiSelectOptionContext<T> {\n return true;\n }\n}\n\ninterface OptionGroup<T> {\n label: string | null;\n items: { option: UiSelectOption<T>; index: number }[];\n}\n\n/**\n * Liste déroulante basée sur le `<select>` natif (clavier, lecteurs d'écran, sélecteur mobile et formulaires\n * gérés par le navigateur), stylée avec `appearance: base-select` là où c'est possible.\n * Les valeurs peuvent être de n'importe quel type, y compris des objets (voir `compareWith`).\n *\n * @slot ng-template[uiSelectOption] - Contenu riche des options ; contexte `let-option`, `selected`.\n * @cssprop --ui-field-radius - Rayon des coins, commun à tous les champs (défaut : `--ui-radius-md`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-select',\n imports: [NgTemplateOutlet, UiFieldMessage, UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-field ui-select ui-field--\" + size()',\n '[class.ui-field--invalid]': 'validation.state().status === \"invalid\"',\n '[class.ui-field--valid]': 'validation.state().status === \"valid\"',\n '[class.ui-field--pending]': 'validation.state().status === \"pending\"',\n '[class.ui-field--disabled]': 'isDisabled()',\n '[class.ui-field--focused]': 'focused()',\n },\n templateUrl: './select.html',\n styleUrls: ['../core/field.css', './select.css'],\n})\nexport class UiSelect<T> implements ControlValueAccessor {\n /** Valeur sélectionnée, `null` si aucune (liaison bidirectionnelle `[(value)]`). */\n readonly value = model<T | null>(null);\n /** Options proposées. */\n readonly options = input.required<readonly UiSelectOption<T>[]>();\n /** Libellé affiché au-dessus du champ. */\n readonly label = input<string>();\n /** Nom accessible quand aucun `label` visible n'est affiché (ex. champ de recherche dans une barre d'outils). */\n readonly ariaLabel = input<string>();\n /** Texte affiché quand aucune option n'est choisie. */\n readonly placeholder = input('Sélectionner…');\n /** Texte d'aide sous le champ. */\n readonly hint = input<string>();\n /** Taille. */\n readonly size = input<UiSize>('md');\n /** Champ obligatoire : le placeholder ne peut plus être re-sélectionné. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Désactive le champ. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Icône décorative au début du champ (`préfixe:nom`, voir `provideUiIcons()`). */\n readonly icon = input<string>();\n /** Attribut `name` du `<select>` (soumission de formulaire HTML classique). */\n readonly name = input<string>();\n /** Égalité entre deux valeurs (utile pour des objets venant d'une API). */\n readonly compareWith = input<(a: T | null, b: T | null) => boolean>(Object.is);\n\n /** Émis quand l'utilisateur choisit une option (`null` s'il revient au placeholder). */\n readonly selectionChange = output<UiSelectOption<T> | null>();\n /** Émis quand le champ gagne (`true`) ou perd (`false`) le focus. */\n readonly focusChange = output<boolean>();\n\n protected readonly optionTemplate = contentChild(UiSelectOptionTemplate);\n protected readonly inputId = uniqueId('ui-select');\n protected readonly messageId = `${this.inputId}-message`;\n protected readonly focused = signal(false);\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n private readonly selectRef = viewChild.required<ElementRef<HTMLSelectElement>>('select');\n\n /** Index de l'option sélectionnée dans `options`, -1 si aucune. */\n protected readonly selectedIndex = computed(() => {\n const value = this.value();\n const compare = this.compareWith();\n return value === null ? -1 : this.options().findIndex((o) => compare(o.value, value));\n });\n\n /** Options regroupées (ordre d'apparition conservé). */\n protected readonly groups = computed(() => {\n const groups: OptionGroup<T>[] = [];\n this.options().forEach((option, index) => {\n const label = option.group ?? null;\n let group = groups.find((g) => g.label === label);\n if (!group) {\n group = { label, items: [] };\n groups.push(group);\n }\n group.items.push({ option, index });\n });\n return groups;\n });\n\n /** Option sélectionnée, `null` si aucune. */\n readonly selectedOption = computed(() => this.options()[this.selectedIndex()] ?? null);\n\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n /** Obligatoire via l'input `required` ou un validateur `Validators.required` sur le contrôle. */\n protected readonly isRequired = computed(() => this.required() || this.validation.required());\n\n constructor() {\n this.validation.attach(this, { label: this.label });\n warnIfUnlabelled('ui-select', () => !!(this.label() || this.ariaLabel()));\n }\n\n private onChange: (value: T | null) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n /** Donne le focus au champ. */\n focus(): void {\n this.selectRef().nativeElement.focus();\n }\n\n protected onSelect(event: Event): void {\n const raw = (event.target as HTMLSelectElement).value;\n const option = raw === '' ? null : (this.options()[Number(raw)] ?? null);\n const value = option ? option.value : null;\n this.value.set(value);\n this.onChange(value);\n this.selectionChange.emit(option);\n }\n\n protected setFocused(focused: boolean): void {\n this.focused.set(focused);\n this.focusChange.emit(focused);\n if (!focused) {\n this.onTouched();\n }\n }\n\n writeValue(value: unknown): void {\n this.value.set((value ?? null) as T | null);\n }\n\n registerOnChange(fn: (value: T | null) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","@if (label()) {\n <label class=\"ui-field__label\" [for]=\"inputId\">\n {{ label() }}\n @if (isRequired()) {\n <span class=\"ui-field__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n<div class=\"ui-field__control ui-select__control\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-select__icon\" [name]=\"name\" />\n }\n <select\n #select\n class=\"ui-select__native\"\n [id]=\"inputId\"\n [attr.name]=\"name() ?? null\"\n [disabled]=\"isDisabled()\"\n [required]=\"isRequired()\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid'\"\n [attr.aria-describedby]=\"messageId\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n (change)=\"onSelect($event)\"\n (focus)=\"setFocused(true)\"\n (blur)=\"setFocused(false)\"\n >\n <option class=\"ui-select__placeholder\" value=\"\" [disabled]=\"isRequired()\" [selected]=\"selectedIndex() === -1\">\n {{ placeholder() }}\n </option>\n @for (group of groups(); track group.label) {\n @if (group.label) {\n <optgroup [label]=\"group.label\">\n @for (item of group.items; track item.index) {\n <ng-container *ngTemplateOutlet=\"optionTpl; context: { $implicit: item }\" />\n }\n </optgroup>\n } @else {\n @for (item of group.items; track item.index) {\n <ng-container *ngTemplateOutlet=\"optionTpl; context: { $implicit: item }\" />\n }\n }\n }\n </select>\n @if (validation.state().status === 'valid') {\n <svg class=\"ui-field__status-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n }\n <svg class=\"ui-select__arrow\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n</div>\n<ui-field-message [messageId]=\"messageId\" [state]=\"validation.state()\" [hint]=\"hint()\" />\n\n<ng-template #optionTpl let-item>\n <option class=\"ui-select__option\" [value]=\"item.index\" [disabled]=\"!!item.option.disabled\" [selected]=\"item.index === selectedIndex()\">\n @if (optionTemplate(); as custom) {\n <ng-container *ngTemplateOutlet=\"custom.template; context: { $implicit: item.option, selected: item.index === selectedIndex() }\" />\n } @else {\n {{ item.option.label }}\n }\n </option>\n</ng-template>\n","/** Opérateurs des filtres texte. */\nexport type UiTextOperator = 'contains' | 'notContains' | 'equals' | 'notEquals' | 'startsWith' | 'endsWith' | 'empty' | 'notEmpty';\n/** Opérateurs des filtres nombre. */\nexport type UiNumberOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'empty' | 'notEmpty';\n/** Opérateurs des filtres date (dont des périodes relatives à aujourd'hui). */\nexport type UiDateOperator =\n | 'between'\n | 'on'\n | 'before'\n | 'after'\n | 'today'\n | 'last7'\n | 'last30'\n | 'thisMonth'\n | 'thisYear'\n | 'empty'\n | 'notEmpty';\nexport type UiFilterOperator = UiTextOperator | UiNumberOperator | UiDateOperator;\n\n/** Filtre d'une colonne de `ui-table`. */\nexport type UiTableFilter =\n /**\n * Texte. Simple : « contient ». Avancé (`advanced: true` ou `operators`) : choix de l'opérateur\n * (commence par, finit par, égal à…).\n */\n | { type: 'text'; placeholder?: string; advanced?: boolean; operators?: readonly UiTextOperator[] }\n /** Liste de choix ; sans `options`, elles sont déduites des valeurs de la colonne. */\n | { type: 'select'; options?: readonly { value: unknown; label: string }[]; placeholder?: string }\n /** Nombre. Simple : bornes min / max. Avancé : =, ≠, >, ≥, <, ≤, entre, vide. */\n | { type: 'number'; advanced?: boolean; operators?: readonly UiNumberOperator[] }\n /** Date. Simple : entre deux dates. Avancé : le, avant, après, aujourd'hui, 7 / 30 derniers jours, ce mois-ci… */\n | { type: 'date'; advanced?: boolean; operators?: readonly UiDateOperator[] }\n /** Oui / non. */\n | { type: 'boolean'; trueLabel?: string; falseLabel?: string };\n\n/** Valeur d'un filtre `number` simple. */\nexport interface UiTableRange {\n min?: number | null;\n max?: number | null;\n}\n\n/**\n * Condition d'un filtre avancé (ou d'un filtre date) : opérateur et valeur(s).\n * `between` utilise `value` (début / min) et `to` (fin / max) ; les dates sont au format `AAAA-MM-JJ`.\n */\nexport interface UiTableCondition {\n op: UiFilterOperator;\n value?: string | number | null;\n to?: string | number | null;\n}\n\n/** Valeurs des filtres, par clé de colonne (texte, valeur choisie, `UiTableRange`, `UiTableCondition`, booléen). */\nexport type UiTableFilters = Readonly<Record<string, unknown>>;\n\n/** Libellés français des opérateurs. */\nexport const UI_FILTER_OPERATOR_LABELS: Record<UiFilterOperator, string> = {\n contains: 'Contient',\n notContains: 'Ne contient pas',\n equals: 'Égal à',\n notEquals: 'Différent de',\n startsWith: 'Commence par',\n endsWith: 'Finit par',\n empty: 'Est vide',\n notEmpty: \"N'est pas vide\",\n eq: '=',\n neq: '≠',\n gt: '>',\n gte: '≥',\n lt: '<',\n lte: '≤',\n between: 'Entre',\n on: 'Le',\n before: 'Avant le',\n after: 'Après le',\n today: \"Aujourd'hui\",\n last7: '7 derniers jours',\n last30: '30 derniers jours',\n thisMonth: 'Ce mois-ci',\n thisYear: 'Cette année',\n};\n\n/** Opérateurs disponibles par type de filtre (ordre d'affichage). */\nexport const UI_FILTER_OPERATORS = {\n text: ['contains', 'notContains', 'equals', 'notEquals', 'startsWith', 'endsWith', 'empty', 'notEmpty'],\n number: ['eq', 'neq', 'gt', 'gte', 'lt', 'lte', 'between', 'empty', 'notEmpty'],\n date: ['between', 'on', 'before', 'after', 'today', 'last7', 'last30', 'thisMonth', 'thisYear', 'empty', 'notEmpty'],\n} as const satisfies Record<'text' | 'number' | 'date', readonly UiFilterOperator[]>;\n\n/** Opérateurs sans valeur à saisir. */\nconst NO_VALUE: ReadonlySet<UiFilterOperator> = new Set(['empty', 'notEmpty', 'today', 'last7', 'last30', 'thisMonth', 'thisYear']);\n\n/** L'opérateur demande-t-il une valeur (`between` : deux) ? */\nexport function operatorArity(op: UiFilterOperator): 0 | 1 | 2 {\n return NO_VALUE.has(op) ? 0 : op === 'between' ? 2 : 1;\n}\n\n/** Normalise un texte pour une comparaison insensible à la casse et aux accents. */\nexport function normalizeText(text: string): string {\n return text.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase().trim();\n}\n\n/** Texte affiché pour une valeur de cellule. */\nexport function displayValue(value: unknown): string {\n if (value === null || value === undefined) return '';\n if (value instanceof Date) return value.toLocaleDateString();\n return String(value);\n}\n\n/** Jour local `AAAA-MM-JJ` d'une date (`Date`, chaîne ISO ou timestamp), `null` si invalide. */\nexport function toDayKey(value: unknown): string | null {\n if (value === null || value === undefined || value === '') return null;\n let date: Date;\n if (value instanceof Date) date = value;\n else if (typeof value === 'number') date = new Date(value);\n else if (typeof value === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(value)) return value; // déjà un jour\n else if (typeof value === 'string') date = new Date(value);\n else return null;\n if (isNaN(date.getTime())) return null;\n const pad = (n: number) => String(n).padStart(2, '0');\n return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;\n}\n\nfunction shiftDays(day: Date, days: number): Date {\n const copy = new Date(day.getFullYear(), day.getMonth(), day.getDate());\n copy.setDate(copy.getDate() + days);\n return copy;\n}\n\nfunction isCondition(value: unknown): value is UiTableCondition {\n return typeof value === 'object' && value !== null && 'op' in value;\n}\n\nfunction hasValue(v: unknown): boolean {\n return v !== null && v !== undefined && v !== '' && !(typeof v === 'number' && !isFinite(v));\n}\n\n/** Un filtre est-il actif ? */\nexport function isFilterActive(value: unknown): boolean {\n if (value === null || value === undefined || value === '') return false;\n if (isCondition(value)) {\n const arity = operatorArity(value.op);\n return arity === 0 || hasValue(value.value) || (arity === 2 && hasValue(value.to));\n }\n if (typeof value === 'object' && !(value instanceof Date)) {\n const range = value as UiTableRange;\n if ('min' in range || 'max' in range) return isFinite(range.min ?? NaN) || isFinite(range.max ?? NaN);\n }\n return true;\n}\n\nfunction isEmptyCell(cell: unknown): boolean {\n return cell === null || cell === undefined || (typeof cell === 'string' && cell.trim() === '');\n}\n\nfunction matchText(cell: unknown, condition: UiTableCondition): boolean {\n const text = normalizeText(displayValue(cell));\n const v = normalizeText(String(condition.value ?? ''));\n switch (condition.op) {\n case 'contains': return text.includes(v);\n case 'notContains': return !text.includes(v);\n case 'equals': return text === v;\n case 'notEquals': return text !== v;\n case 'startsWith': return text.startsWith(v);\n case 'endsWith': return text.endsWith(v);\n default: return true;\n }\n}\n\nfunction matchNumber(cell: unknown, condition: UiTableCondition): boolean {\n const n = typeof cell === 'number' ? cell : Number(cell);\n if (isEmptyCell(cell) || !isFinite(n)) return false;\n const v = Number(condition.value);\n const to = Number(condition.to);\n switch (condition.op) {\n case 'eq': return n === v;\n case 'neq': return n !== v;\n case 'gt': return n > v;\n case 'gte': return n >= v;\n case 'lt': return n < v;\n case 'lte': return n <= v;\n case 'between': return (!hasValue(condition.value) || n >= v) && (!hasValue(condition.to) || n <= to);\n default: return true;\n }\n}\n\nfunction matchDate(cell: unknown, condition: UiTableCondition, now: Date): boolean {\n const day = toDayKey(cell);\n if (!day) return false;\n const today = toDayKey(now) as string;\n const from = toDayKey(condition.value);\n const to = toDayKey(condition.to);\n switch (condition.op) {\n case 'on': return !from || day === from;\n case 'before': return !from || day < from;\n case 'after': return !from || day > from;\n case 'between': return (!from || day >= from) && (!to || day <= to);\n case 'today': return day === today;\n case 'last7': return day <= today && day >= (toDayKey(shiftDays(now, -6)) as string);\n case 'last30': return day <= today && day >= (toDayKey(shiftDays(now, -29)) as string);\n case 'thisMonth': return day.slice(0, 7) === today.slice(0, 7);\n case 'thisYear': return day.slice(0, 4) === today.slice(0, 4);\n default: return true;\n }\n}\n\n/**\n * La valeur d'une cellule satisfait-elle le filtre ? Accepte les valeurs simples (texte = « contient »,\n * `{ min, max }` = « entre ») et les conditions avancées `{ op, value, to }`.\n */\nexport function matchesFilter(filter: UiTableFilter, cell: unknown, filterValue: unknown, now: Date = new Date()): boolean {\n if (!isFilterActive(filterValue)) return true;\n if (isCondition(filterValue)) {\n if (filterValue.op === 'empty') return isEmptyCell(cell);\n if (filterValue.op === 'notEmpty') return !isEmptyCell(cell);\n }\n switch (filter.type) {\n case 'text':\n return matchText(cell, isCondition(filterValue) ? filterValue : { op: 'contains', value: String(filterValue) });\n case 'select':\n // Options fournies : comparaison des valeurs ; options déduites : comparaison des textes affichés.\n return filter.options ? Object.is(cell, filterValue) || cell === filterValue : displayValue(cell) === filterValue;\n case 'number': {\n if (isCondition(filterValue)) return matchNumber(cell, filterValue);\n const range = filterValue as UiTableRange;\n return matchNumber(cell, { op: 'between', value: range.min ?? null, to: range.max ?? null });\n }\n case 'date':\n return matchDate(cell, isCondition(filterValue) ? filterValue : { op: 'on', value: String(filterValue) }, now);\n case 'boolean':\n return Boolean(cell) === filterValue;\n }\n}\n\n/** Tous les mots de la recherche figurent-ils dans le texte ? */\nexport function matchesSearch(text: string, search: string): boolean {\n const words = normalizeText(search).split(/\\s+/).filter(Boolean);\n if (!words.length) return true;\n const haystack = normalizeText(text);\n return words.every((word) => haystack.includes(word));\n}\n\n/** Valeurs distinctes (texte affiché), triées, pour un filtre `select` sans options. */\nexport function distinctOptions(values: readonly unknown[]): { value: string; label: string }[] {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n return [...new Set(values.map(displayValue).filter((v) => v !== ''))].sort(collator.compare).map((v) => ({ value: v, label: v }));\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { UiCheckbox } from '../checkbox/checkbox';\nimport { UiSelect } from '../select/select';\nimport { UiPrefix, UiTextField } from '../text-field/text-field';\nimport {\n UI_FILTER_OPERATORS,\n UI_FILTER_OPERATOR_LABELS,\n UiFilterOperator,\n UiTableCondition,\n UiTableFilter,\n UiTableFilters,\n UiTableRange,\n displayValue,\n operatorArity,\n distinctOptions,\n isFilterActive,\n matchesFilter,\n matchesSearch,\n} from './table-filter';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n inject,\n input,\n model,\n output,\n signal,\n ElementRef,\n DestroyRef,\n Injector,\n afterNextRender,\n effect,\n untracked,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\n\n/** Définition d'une colonne de `ui-table`. */\nexport interface UiTableColumn<T = unknown> {\n /** Identifiant de la colonne ; sert aussi de propriété lue sur la ligne si `value` est absent. */\n key: string;\n /** Libellé de l'en-tête. */\n header: string;\n /** Autorise le tri sur cette colonne. */\n sortable?: boolean;\n /** Alignement du contenu (utilisez `end` pour les nombres). */\n align?: 'start' | 'center' | 'end';\n /** Largeur CSS de la colonne (`'8rem'`, `'20%'`…). */\n width?: string;\n /** Accesseur de valeur, utilisé pour l'affichage par défaut, le tri, la recherche et les filtres. */\n value?: (row: T) => unknown;\n /** Filtre de la colonne (avec l'option `filterable` de la table). */\n filter?: UiTableFilter;\n /** Filtrage sur mesure : remplace la règle du type de filtre. */\n filterMatch?: (value: unknown, filterValue: unknown, row: T) => boolean;\n /** Prise en compte par la recherche globale (défaut : `true`). */\n searchable?: boolean;\n /** Peut être masquée avec l'option `columnToggle` (défaut : `true`). */\n hideable?: boolean;\n /** Masquée au départ (tant que `hiddenColumns` n'est pas fourni). */\n hidden?: boolean;\n}\n\nexport type UiSortDirection = 'asc' | 'desc';\n\n/** État de tri de `ui-table`. */\nexport interface UiTableSort {\n /** Colonne triée. */\n key: string;\n /** Sens du tri. */\n direction: UiSortDirection;\n}\n\n/** Payload de l'événement `rowClick`. */\nexport interface UiTableRowEvent<T = unknown> {\n /** Ligne cliquée. */\n row: T;\n /** Index de la ligne dans l'affichage trié et filtré, toutes pages confondues. */\n index: number;\n}\n\n/** Taille de page : un nombre de lignes, ou `'auto'` (autant de lignes que la hauteur disponible le permet, sans défilement). */\nexport type UiTablePageSize = number | 'auto';\n\n/** Payload de l'événement `paginationChange`. */\nexport interface UiTablePage {\n /** Page affichée (à partir de 1). */\n page: number;\n /** Nombre de lignes par page (la taille calculée en mode `'auto'`). */\n pageSize: number;\n}\n\n/** Contexte des templates de cellule. */\nexport interface UiCellContext<T> {\n /** Ligne (`let-row`). */\n $implicit: T;\n /** Valeur de la cellule (`let-value=\"value\"`). */\n value: unknown;\n /** Index de la ligne dans l'affichage trié et filtré, toutes pages confondues (`let-i=\"index\"`). */\n index: number;\n /** Colonne (`let-column=\"column\"`). */\n column: UiTableColumn<T>;\n}\n\n/** Contexte des templates d'en-tête. */\nexport interface UiHeaderContext<T> {\n /** Colonne (`let-column`). */\n $implicit: UiTableColumn<T>;\n}\n\n/**\n * Template de cellule pour une colonne.\n *\n * ```html\n * <ng-template uiCell=\"status\" [uiCellOf]=\"users\" let-user let-value=\"value\">…</ng-template>\n * ```\n * `uiCellOf` est facultatif et ne sert qu'à typer `let-user`.\n */\n@Directive({ selector: 'ng-template[uiCell]' })\nexport class UiCell<T> {\n /** Clé de la colonne ciblée. */\n readonly uiCell = input.required<string>();\n /** Données de la table, uniquement pour typer le contexte du template. */\n readonly uiCellOf = input<readonly T[]>();\n readonly template = inject<TemplateRef<UiCellContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(_dir: UiCell<T>, _ctx: unknown): _ctx is UiCellContext<T> {\n return true;\n }\n}\n\n/** Template d'en-tête pour une colonne (`<ng-template uiHeader=\"name\" let-column>`). */\n@Directive({ selector: 'ng-template[uiHeader]' })\nexport class UiHeader {\n /** Clé de la colonne ciblée. */\n readonly uiHeader = input.required<string>();\n readonly template = inject<TemplateRef<UiHeaderContext<unknown>>>(TemplateRef);\n\n static ngTemplateContextGuard(_dir: UiHeader, _ctx: unknown): _ctx is UiHeaderContext<unknown> {\n return true;\n }\n}\n\n/** Contenu affiché quand la table est vide (`<ng-template uiTableEmpty>`). */\n@Directive({ selector: 'ng-template[uiTableEmpty]' })\nexport class UiTableEmpty {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * Table de données avec colonnes déclaratives, tri et templates de cellule.\n *\n * @slot ng-template[uiCell] - Template de cellule d'une colonne ; contexte `UiCellContext` (`let-row`, `value`, `index`, `column`).\n * @slot ng-template[uiHeader] - Template d'en-tête d'une colonne ; contexte `let-column`.\n * @slot ng-template[uiTableEmpty] - Contenu affiché quand `data` est vide.\n * @slot ui-ribbon - Ruban dans un coin de la table.\n * @slot [uiTableToolbar] - Contenu ajouté à la barre d'outils (boutons d'action…).\n * @cssprop --ui-table-row-height - Hauteur minimale des lignes.\n * @category Affichage\n */\n@Component({\n selector: 'ui-table',\n imports: [NgTemplateOutlet, UiTextField, UiPrefix, UiSelect, UiCheckbox],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-table',\n '(document:click)': 'onDocumentClick($event)',\n '[class.ui-table--striped]': 'striped()',\n '[class.ui-table--dense]': 'dense()',\n '[class.ui-table--sticky]': 'stickyHeader()',\n '[class.ui-table--clickable]': 'clickableRows()',\n '[class.ui-table--auto-size]': \"paginated() && pageSize() === 'auto'\",\n },\n templateUrl: './table.html',\n styleUrl: './table.css',\n})\nexport class UiTable<T> {\n /** Lignes à afficher. */\n readonly data = input<readonly T[]>([]);\n /** Colonnes à afficher, dans l'ordre. */\n readonly columns = input.required<readonly UiTableColumn<T>[]>();\n /** Tri courant, `null` si aucun. Liaison bidirectionnelle `[(sort)]` ; `(sortChange)` est émis à chaque clic de tri. */\n readonly sort = model<UiTableSort | null>(null);\n /** Tri géré par le parent (côté serveur) : la table émet `sortChange` sans réordonner `data`. */\n readonly manualSort = input(false, { transform: booleanAttribute });\n /** Fonction d'identité des lignes pour le suivi du DOM (défaut : la ligne elle-même). */\n readonly trackBy = input<(row: T, index: number) => unknown>((row) => row);\n /** Alterne la couleur de fond des lignes. */\n readonly striped = input(false, { transform: booleanAttribute });\n /** Réduit la hauteur des lignes. */\n readonly dense = input(false, { transform: booleanAttribute });\n /** Garde l'en-tête visible au défilement (donnez une hauteur à la table). */\n readonly stickyHeader = input(false, { transform: booleanAttribute });\n /** Rend les lignes cliquables et focusables (émet `rowClick`). */\n readonly clickableRows = input(false, { transform: booleanAttribute });\n /** Légende accessible de la table. */\n readonly caption = input<string>();\n /** Nom accessible de la zone défilante quand il n'y a pas de `caption` (la zone est focalisable pour défiler au clavier). */\n readonly regionLabel = input('Tableau');\n /** Texte affiché quand la table est vide et qu'aucun template `uiTableEmpty` n'est fourni. */\n readonly emptyText = input('Aucune donnée');\n\n /** Affiche un champ de recherche portant sur toutes les colonnes visibles. */\n readonly searchable = input(false, { transform: booleanAttribute });\n /** Texte de recherche (liaison bidirectionnelle `[(search)]`). */\n readonly search = model('');\n /** Texte indicatif du champ de recherche. */\n readonly searchPlaceholder = input('Rechercher…');\n /** Affiche une ligne de filtres sous les en-têtes, pour les colonnes qui déclarent un `filter`. */\n readonly filterable = input(false, { transform: booleanAttribute });\n /** Valeurs des filtres par clé de colonne (liaison bidirectionnelle `[(filters)]`). */\n readonly filters = model<UiTableFilters>({});\n /** Affiche le bouton « Colonnes » pour masquer / afficher des colonnes. */\n readonly columnToggle = input(false, { transform: booleanAttribute });\n /** Clés des colonnes masquées (liaison `[(hiddenColumns)]`) ; `null` : celles marquées `hidden`. */\n readonly hiddenColumns = model<readonly string[] | null>(null);\n /** Filtrage géré par le parent (côté serveur) : la table émet recherche et filtres sans filtrer `data`. */\n readonly manualFilter = input(false, { transform: booleanAttribute });\n\n /** Permet de réordonner les colonnes : glisser-déposer des en-têtes, ou boutons Monter / Descendre du menu « Colonnes ». */\n readonly reorderable = input(false, { transform: booleanAttribute });\n /** Ordre des colonnes par clé (liaison `[(columnOrder)]`) ; `null` : ordre de `columns`. Les clés inconnues sont ignorées, les colonnes absentes ajoutées à la fin. */\n readonly columnOrder = model<readonly string[] | null>(null);\n\n /** Découpe les lignes en pages et affiche la barre de pagination. */\n readonly paginated = input(false, { transform: booleanAttribute });\n /** Page affichée, à partir de 1 (liaison `[(page)]`). Revient à 1 quand la recherche, les filtres ou le tri changent. */\n readonly page = model(1);\n /**\n * Lignes par page (liaison `[(pageSize)]`). `'auto'` : autant de lignes que possible sans faire défiler\n * le conteneur défilant de la table (ou la fenêtre) ; recalculé au redimensionnement.\n */\n readonly pageSize = model<UiTablePageSize>(10);\n /** Choix proposés dans la liste « Lignes par page » (`'auto'` inclus) ; liste vide : pas de sélecteur. */\n readonly pageSizeOptions = input<readonly UiTablePageSize[]>([10, 25, 50, 100, 'auto']);\n /** Pagination gérée par le parent (côté serveur) : `data` contient déjà la page ; fournissez `totalItems`. */\n readonly manualPagination = input(false, { transform: booleanAttribute });\n /** Nombre total de lignes côté serveur (avec `manualPagination`). */\n readonly totalItems = input<number | null>(null);\n\n /** Émis au clic (ou Entrée) sur une ligne, si `clickableRows`. */\n readonly rowClick = output<UiTableRowEvent<T>>();\n /** Émis quand la page ou la taille de page effective change (y compris le premier calcul en mode `'auto'`). */\n readonly paginationChange = output<UiTablePage>();\n\n private readonly cellDefs = contentChildren(UiCell);\n private readonly headerDefs = contentChildren(UiHeader);\n protected readonly emptyDef = contentChild(UiTableEmpty);\n\n protected readonly cellTemplates = computed(\n () => new Map(this.cellDefs().map((def) => [def.uiCell(), def.template as TemplateRef<UiCellContext<T>>])),\n );\n protected readonly headerTemplates = computed(() => new Map(this.headerDefs().map((def) => [def.uiHeader(), def.template])));\n\n protected readonly baseId = uniqueId('ui-table');\n protected readonly columnsMenuOpen = signal(false);\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n\n /** Colonnes masquées (choix de l'utilisateur, sinon colonnes marquées `hidden`). */\n protected readonly hiddenKeys = computed(\n () => new Set(this.hiddenColumns() ?? this.columns().filter((c) => c.hidden).map((c) => c.key)),\n );\n /** Colonnes dans l'ordre choisi (`columnOrder`), masquées comprises. */\n protected readonly orderedColumns = computed(() => {\n const columns = this.columns();\n const order = this.columnOrder();\n if (!order) return columns;\n const byKey = new Map(columns.map((c) => [c.key, c]));\n const ordered = order.flatMap((key) => {\n const column = byKey.get(key);\n byKey.delete(key);\n return column ? [column] : [];\n });\n return [...ordered, ...byKey.values()];\n });\n /** Colonnes affichées. */\n protected readonly visibleColumns = computed(() => this.orderedColumns().filter((c) => !this.hiddenKeys().has(c.key)));\n protected readonly hasFilters = computed(() => this.filterable() && this.visibleColumns().some((c) => c.filter));\n protected readonly hasColumnsMenu = computed(() => this.columnToggle() || this.reorderable());\n protected readonly hasToolbar = computed(() => this.searchable() || this.hasColumnsMenu());\n /** Ordre modifié par rapport à `columns`. */\n protected readonly isReordered = computed(() => this.orderedColumns().some((c, i) => c !== this.columns()[i]));\n /** Colonne en cours de glisser-déposer. */\n protected readonly dragKey = signal<string | null>(null);\n protected readonly dropKey = signal<string | null>(null);\n /** Message lu par les lecteurs d'écran après un déplacement de colonne. */\n protected readonly announcement = signal('');\n\n /** Opérateurs proposés par colonne (filtres avancés). */\n protected readonly operatorOptions = computed(() => {\n const map = new Map<string, { value: UiFilterOperator; label: string }[]>();\n for (const column of this.columns()) {\n const filter = column.filter;\n if (filter && (filter.type === 'text' || filter.type === 'number' || filter.type === 'date')) {\n const ops = (filter.operators ?? UI_FILTER_OPERATORS[filter.type]) as readonly UiFilterOperator[];\n map.set(column.key, ops.map((op) => ({ value: op, label: UI_FILTER_OPERATOR_LABELS[op] })));\n }\n }\n return map;\n });\n protected readonly operatorArity = operatorArity;\n\n /** Options des filtres `select` sans options fournies : valeurs distinctes de la colonne. */\n protected readonly filterOptions = computed(() => {\n const map = new Map<string, readonly { value: unknown; label: string }[]>();\n for (const column of this.columns()) {\n if (column.filter?.type === 'select') {\n map.set(column.key, column.filter.options ?? distinctOptions(this.data().map((row) => this.valueOf(row, column))));\n }\n }\n return map;\n });\n\n /** Recherche ou filtre actif. */\n readonly filtering = computed(\n () => this.search().trim() !== '' || Object.entries(this.filters()).some(([key, value]) => this.columns().some((c) => c.key === key) && isFilterActive(value)),\n );\n\n /** Lignes après recherche et filtres (avant tri). */\n protected readonly filteredRows = computed(() => {\n const data = this.data();\n if (this.manualFilter() || !this.filtering()) return data;\n const search = this.search();\n const filters = this.filters();\n const searchColumns = this.visibleColumns().filter((c) => c.searchable !== false);\n const filterColumns = this.columns().filter((c) => c.filter && isFilterActive(filters[c.key]));\n return data.filter((row) => {\n for (const column of filterColumns) {\n const value = this.valueOf(row, column);\n const filterValue = filters[column.key];\n const ok = column.filterMatch ? column.filterMatch(value, filterValue, row) : matchesFilter(column.filter as UiTableFilter, value, filterValue);\n if (!ok) return false;\n }\n return matchesSearch(searchColumns.map((c) => displayValue(this.valueOf(row, c))).join(' '), search);\n });\n });\n\n /** Lignes affichées : filtrées puis triées. */\n protected readonly rows = computed(() => {\n const data = this.filteredRows();\n const sort = this.sort();\n if (!sort || this.manualSort()) {\n return data;\n }\n const column = this.columns().find((c) => c.key === sort.key);\n if (!column) {\n return data;\n }\n const factor = sort.direction === 'asc' ? 1 : -1;\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n return [...data].sort((a, b) => factor * compare(this.valueOf(a, column), this.valueOf(b, column), collator));\n });\n\n /** Nombre de lignes calculé pour `pageSize = 'auto'`. */\n protected readonly autoSize = signal(10);\n /** Taille de page effective. */\n readonly effectivePageSize = computed(() => {\n const size = this.pageSize();\n return size === 'auto' ? this.autoSize() : Math.max(1, Math.floor(size) || 1);\n });\n /** Nombre total de lignes à paginer. */\n protected readonly totalCount = computed(() => (this.manualPagination() ? (this.totalItems() ?? this.data().length) : this.rows().length));\n /** Nombre de pages (au moins 1). */\n readonly pageCount = computed(() => Math.max(1, Math.ceil(this.totalCount() / this.effectivePageSize())));\n /** Page affichée, ramenée dans les bornes. */\n readonly currentPage = computed(() => Math.min(Math.max(1, Math.floor(this.page()) || 1), this.pageCount()));\n /** Index (0) de la première ligne de la page. */\n protected readonly pageStart = computed(() => (this.paginated() ? (this.currentPage() - 1) * this.effectivePageSize() : 0));\n /** Index (exclusif) de la dernière ligne de la page. */\n protected readonly pageEnd = computed(() => Math.min(this.pageStart() + this.effectivePageSize(), this.totalCount()));\n /** Lignes de la page affichée. */\n protected readonly pagedRows = computed(() => {\n const rows = this.rows();\n if (!this.paginated() || this.manualPagination()) return rows;\n const start = this.pageStart();\n return rows.slice(start, start + this.effectivePageSize());\n });\n /** Numéros de page affichés, `0` pour une ellipse (première, dernière, et voisines de la page courante). */\n protected readonly pageItems = computed(() => {\n const count = this.pageCount();\n const current = this.currentPage();\n const pages = new Set([1, count, current - 1, current, current + 1].filter((p) => p >= 1 && p <= count));\n if (current <= 3) [2, 3, 4].forEach((p) => p <= count && pages.add(p));\n if (current >= count - 2) [count - 1, count - 2, count - 3].forEach((p) => p >= 1 && pages.add(p));\n const sorted = [...pages].sort((a, b) => a - b);\n return sorted.flatMap((p, i) => (i > 0 && p - sorted[i - 1] > 1 ? [0, p] : [p]));\n });\n protected readonly pageSizeChoices = computed(() =>\n this.pageSizeOptions().map((size) => ({ value: size, label: size === 'auto' ? `Auto (${this.autoSize()})` : String(size) })),\n );\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n\n constructor() {\n // Retour à la première page quand le jeu de lignes change (recherche, filtres, tri).\n let first = true;\n effect(() => {\n this.search();\n this.filters();\n this.sort();\n if (first) {\n first = false;\n return;\n }\n untracked(() => this.page() !== 1 && this.page.set(1));\n });\n\n let last = '';\n effect(() => {\n if (!this.paginated()) return;\n const state = { page: this.currentPage(), pageSize: this.effectivePageSize() };\n const key = `${state.page}/${state.pageSize}`;\n if (key !== last) {\n last = key;\n untracked(() => this.paginationChange.emit(state));\n }\n });\n\n afterNextRender(() => this.observeSize());\n // Nouvelles lignes affichées (données, page, colonnes) : leur hauteur peut changer.\n effect(() => {\n this.pagedRows();\n this.visibleColumns();\n if (this.paginated() && this.pageSize() === 'auto') queueMicrotask(() => this.measure());\n });\n }\n\n /** Va à une page (bornée). */\n goToPage(page: number): void {\n this.page.set(Math.min(Math.max(1, page), this.pageCount()));\n }\n\n /** Change la taille de page en gardant visible la première ligne de la page courante. */\n setPageSize(size: UiTablePageSize | null): void {\n if (size === null) return;\n const firstRow = this.pageStart();\n this.pageSize.set(size);\n this.page.set(Math.floor(firstRow / this.effectivePageSize()) + 1);\n }\n\n /** Déplace une colonne de `delta` positions (au clavier : boutons Monter / Descendre). */\n moveColumn(key: string, delta: number): void {\n const keys = this.orderedColumns().map((c) => c.key);\n const from = keys.indexOf(key);\n const to = Math.min(Math.max(0, from + delta), keys.length - 1);\n if (from < 0 || from === to) return;\n keys.splice(to, 0, ...keys.splice(from, 1));\n this.columnOrder.set(keys);\n this.announceMove(key, to);\n }\n\n /** Place la colonne `key` à la position de `target` (glisser-déposer). */\n moveColumnTo(key: string, target: string): void {\n const keys = this.orderedColumns().map((c) => c.key);\n const from = keys.indexOf(key);\n const to = keys.indexOf(target);\n if (from < 0 || to < 0 || from === to) return;\n keys.splice(to, 0, ...keys.splice(from, 1));\n this.columnOrder.set(keys);\n this.announceMove(key, to);\n }\n\n /** Rétablit l'ordre de `columns`. */\n resetColumnOrder(): void {\n this.columnOrder.set(null);\n this.announcement.set('Ordre des colonnes réinitialisé');\n }\n\n private announceMove(key: string, index: number): void {\n const column = this.columns().find((c) => c.key === key);\n this.announcement.set(`${column?.header ?? key} : position ${index + 1} sur ${this.columns().length}`);\n }\n\n /** Bouton Monter / Descendre : garde le focus sur la colonne déplacée (son élément est déplacé dans le DOM). */\n protected onMoveClick(column: UiTableColumn<T>, delta: number): void {\n this.moveColumn(column.key, delta);\n const index = this.orderedColumns().indexOf(column);\n const last = this.orderedColumns().length - 1;\n const dir = (delta < 0 && index > 0) || (delta > 0 && index === last) ? 'up' : 'down';\n afterNextRender(\n () => (this.host.querySelector(`[data-move=\"${CSS.escape(column.key)}-${dir}\"]`) as HTMLElement | null)?.focus(),\n { injector: this.injector },\n );\n }\n\n\n protected onDragStart(event: DragEvent, column: UiTableColumn<T>): void {\n if (!this.reorderable()) return;\n this.dragKey.set(column.key);\n event.dataTransfer?.setData('text/plain', column.key);\n if (event.dataTransfer) event.dataTransfer.effectAllowed = 'move';\n }\n\n protected onDragOver(event: DragEvent, column: UiTableColumn<T>): void {\n const dragged = this.dragKey();\n if (!dragged) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n this.dropKey.set(dragged === column.key ? null : column.key);\n }\n\n protected onDrop(event: DragEvent, column: UiTableColumn<T>): void {\n const dragged = this.dragKey();\n if (!dragged) return;\n event.preventDefault();\n this.moveColumnTo(dragged, column.key);\n this.onDragEnd();\n }\n\n protected onDragEnd(): void {\n this.dragKey.set(null);\n this.dropKey.set(null);\n }\n\n /** Observe la taille de la table et de son conteneur défilant pour le mode `'auto'`. */\n private observeSize(): void {\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => this.measure());\n observer.observe(this.host);\n const container = scrollParent(this.host);\n if (container) observer.observe(container);\n const onResize = () => this.measure();\n window.addEventListener('resize', onResize);\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n window.removeEventListener('resize', onResize);\n });\n }\n\n /**\n * Calcule le nombre de lignes qui tiennent sans défilement : hauteur visible du conteneur défilant\n * (ou de la fenêtre) sous le haut de la table, moins l'en-tête, les filtres, la barre d'outils et la pagination.\n */\n private measure(): void {\n if (!this.paginated() || this.pageSize() !== 'auto' || !this.host.isConnected) return;\n const tbody = this.host.querySelector('tbody');\n const rows = this.host.querySelectorAll<HTMLElement>('tbody > .ui-table__row');\n if (!tbody || !rows.length) return;\n let rowHeight = 0;\n rows.forEach((row) => (rowHeight = Math.max(rowHeight, row.getBoundingClientRect().height)));\n if (rowHeight <= 0) return;\n const hostRect = this.host.getBoundingClientRect();\n const chrome = hostRect.height - tbody.getBoundingClientRect().height;\n const container = scrollParent(this.host);\n let available: number;\n if (container) {\n const style = getComputedStyle(container);\n const box = container.getBoundingClientRect();\n const top = hostRect.top - box.top - container.clientTop + container.scrollTop;\n const height = container.clientHeight - parseFloat(style.paddingBottom || '0');\n available = height - top;\n // Table placée bas dans un long conteneur : on vise la hauteur visible entière.\n if (available < rowHeight * 3 + chrome) available = height - parseFloat(style.paddingTop || '0');\n } else {\n const top = hostRect.top + window.scrollY;\n available = window.innerHeight - top;\n if (available < rowHeight * 3 + chrome) available = window.innerHeight;\n }\n const size = Math.max(1, Math.floor((available - chrome - 1) / rowHeight));\n if (size !== this.autoSize()) this.autoSize.set(size);\n }\n\n /** Valeur d'une cellule (accesseur `value` ou propriété `key`). */\n valueOf(row: T, column: UiTableColumn<T>): unknown {\n return column.value ? column.value(row) : (row as Record<string, unknown>)[column.key];\n }\n\n /** Cycle de tri d'une colonne : ascendant → descendant → aucun. */\n toggleSort(column: UiTableColumn<T>): void {\n if (!column.sortable) {\n return;\n }\n const current = this.sort();\n let next: UiTableSort | null;\n if (current?.key !== column.key) {\n next = { key: column.key, direction: 'asc' };\n } else if (current.direction === 'asc') {\n next = { key: column.key, direction: 'desc' };\n } else {\n next = null;\n }\n this.sort.set(next);\n }\n\n protected ariaSort(column: UiTableColumn<T>): string | null {\n if (!column.sortable) {\n return null;\n }\n const sort = this.sort();\n if (sort?.key !== column.key) {\n return 'none';\n }\n return sort.direction === 'asc' ? 'ascending' : 'descending';\n }\n\n protected onRowActivate(row: T, index: number): void {\n if (this.clickableRows()) {\n this.rowClick.emit({ row, index });\n }\n }\n\n /** Modifie la valeur d'un filtre (`null` ou vide : filtre retiré). */\n setFilter(key: string, value: unknown): void {\n const others = Object.entries(this.filters()).filter(([k]) => k !== key);\n // Une condition avancée est conservée même sans valeur : l'opérateur choisi ne doit pas être perdu\n // avant la saisie (elle ne filtre qu'une fois active).\n const keep = isFilterActive(value) || (typeof value === 'object' && value !== null && 'op' in value);\n this.filters.set(Object.fromEntries(keep ? [...others, [key, value]] : others));\n }\n\n /** Efface la recherche et tous les filtres. */\n resetFilters(): void {\n this.search.set('');\n this.filters.set({});\n }\n\n /** Affiche ou masque une colonne (au moins une colonne reste visible). */\n toggleColumn(key: string, visible: boolean): void {\n const hidden = new Set(this.hiddenKeys());\n if (visible) hidden.delete(key);\n else if (this.visibleColumns().length > 1) hidden.add(key);\n this.hiddenColumns.set(this.columns().map((c) => c.key).filter((k) => hidden.has(k)));\n }\n\n /** Filtre avec choix de l'opérateur. */\n protected isAdvanced(filter: UiTableFilter): boolean {\n return (filter.type === 'text' || filter.type === 'number' || filter.type === 'date') && (!!filter.advanced || !!filter.operators?.length);\n }\n\n /** Condition courante d'une colonne (valeur simple convertie, ou opérateur par défaut). */\n protected conditionOf(column: UiTableColumn<T>): UiTableCondition {\n const current = this.filters()[column.key];\n if (typeof current === 'object' && current !== null && 'op' in current) return current as UiTableCondition;\n const filter = column.filter;\n const ops = this.operatorOptions().get(column.key) ?? [];\n if (filter?.type === 'number') {\n const range = (current as UiTableRange | undefined) ?? {};\n const op = this.isAdvanced(filter) ? (ops[0]?.value ?? 'between') : 'between';\n return { op, value: range.min ?? null, to: range.max ?? null };\n }\n if (filter?.type === 'date') return { op: this.isAdvanced(filter) ? (ops[0]?.value ?? 'between') : 'between', value: null, to: null };\n return { op: ops[0]?.value ?? 'contains', value: typeof current === 'string' ? current : null };\n }\n\n protected setOperator(column: UiTableColumn<T>, op: UiFilterOperator | null): void {\n const current = this.conditionOf(column);\n this.setFilter(column.key, { ...current, op: op ?? this.operatorOptions().get(column.key)?.[0]?.value ?? current.op });\n }\n\n protected setConditionValue(column: UiTableColumn<T>, field: 'value' | 'to', text: string): void {\n const parsed = column.filter?.type === 'number' ? (text.trim() === '' || !isFinite(Number(text)) ? null : Number(text)) : text === '' ? null : text;\n this.setFilter(column.key, { ...this.conditionOf(column), [field]: parsed });\n }\n\n protected conditionText(column: UiTableColumn<T>, field: 'value' | 'to'): string {\n const value = this.conditionOf(column)[field];\n return value === null || value === undefined ? '' : String(value);\n }\n\n /** Nom d'ancre CSS unique de la ligne d'un filtre (identifiant CSS valide). */\n protected anchorName(column: UiTableColumn<T>): string {\n return `--${this.baseId}-${column.key}`.replace(/[^a-zA-Z0-9_-]/g, '_');\n }\n\n protected operatorLabel(op: UiFilterOperator): string {\n return UI_FILTER_OPERATOR_LABELS[op];\n }\n\n /** Symbole court de l'opérateur, affiché devant la valeur (le libellé complet est dans le nom accessible). */\n protected operatorSymbol(op: UiFilterOperator): string {\n const symbols: Partial<Record<UiFilterOperator, string>> = {\n contains: '∋', notContains: '∌', equals: '=', notEquals: '≠', startsWith: 'a…', endsWith: '…a',\n eq: '=', neq: '≠', gt: '>', gte: '≥', lt: '<', lte: '≤', on: '=', before: '<', after: '>',\n };\n return symbols[op] ?? '';\n }\n\n protected defaultOperator(column: UiTableColumn<T>): UiFilterOperator {\n const filter = column.filter;\n if (filter && !this.isAdvanced(filter)) return filter.type === 'text' ? 'contains' : 'between';\n return this.operatorOptions().get(column.key)?.[0]?.value ?? 'contains';\n }\n\n protected isFilterActive(column: UiTableColumn<T>): boolean {\n return isFilterActive(this.filters()[column.key]);\n }\n\n /** Résumé d'un filtre à deux valeurs ou sans valeur (« 10 → 20 », « 7 derniers jours »). */\n protected summaryText(column: UiTableColumn<T>): string {\n const cond = this.conditionOf(column);\n const arity = operatorArity(cond.op);\n if (arity === 0) return UI_FILTER_OPERATOR_LABELS[cond.op];\n const format = (v: string | number | null | undefined) => {\n if (v === null || v === undefined || v === '') return '…';\n if (column.filter?.type === 'date' && typeof v === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(v)) {\n // Format compact (« 1 oct. ») ; l'année seulement si ce n'est pas l'année en cours.\n const date = new Date(v + 'T00:00:00');\n const sameYear = date.getFullYear() === new Date().getFullYear();\n return date.toLocaleDateString(undefined, sameYear ? { day: 'numeric', month: 'short' } : { day: 'numeric', month: 'short', year: 'numeric' });\n }\n return String(v);\n };\n if (!isFilterActive(cond)) return column.filter?.type === 'date' ? 'Toutes les dates' : 'Tous';\n return `${format(cond.value)} → ${format(cond.to)}`;\n }\n\n protected inputType(filter: UiTableFilter): 'text' | 'number' | 'date' {\n return filter.type === 'number' ? 'number' : filter.type === 'date' ? 'date' : 'text';\n }\n\n protected booleanOptions(filter: UiTableFilter): { value: boolean; label: string }[] {\n return filter.type === 'boolean' ? [{ value: true, label: filter.trueLabel ?? 'Oui' }, { value: false, label: filter.falseLabel ?? 'Non' }] : [];\n }\n\n protected filterPlaceholder(filter: UiTableFilter): string {\n return (filter.type === 'text' || filter.type === 'select') && filter.placeholder ? filter.placeholder : filter.type === 'text' ? 'Filtrer…' : 'Tous';\n }\n\n protected canHide(column: UiTableColumn<T>): boolean {\n return column.hideable !== false && !(this.visibleColumns().length === 1 && !this.hiddenKeys().has(column.key));\n }\n\n protected onDocumentClick(event: MouseEvent): void {\n if (!this.columnsMenuOpen()) return;\n const menu = this.host.querySelector('.ui-table__columns');\n if (menu && !menu.contains(event.target as Node)) this.columnsMenuOpen.set(false);\n }\n\n protected onColumnsKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.columnsMenuOpen()) {\n event.stopPropagation();\n this.columnsMenuOpen.set(false);\n (this.host.querySelector('.ui-table__columns-button') as HTMLElement | null)?.focus();\n }\n }\n\n protected display(value: unknown): string {\n return value === null || value === undefined ? '' : String(value);\n }\n}\n\n/** Premier ancêtre qui défile verticalement (`null` : la fenêtre). */\nfunction scrollParent(element: HTMLElement): HTMLElement | null {\n for (let node = element.parentElement; node && node !== document.body && node !== document.documentElement; node = node.parentElement) {\n const overflow = getComputedStyle(node).overflowY;\n if (overflow === 'auto' || overflow === 'scroll' || overflow === 'overlay') return node;\n }\n return null;\n}\n\nfunction compare(a: unknown, b: unknown, collator: Intl.Collator): number {\n if (a === b) return 0;\n if (a === null || a === undefined) return 1;\n if (b === null || b === undefined) return -1;\n if (typeof a === 'number' && typeof b === 'number') return a - b;\n if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();\n return collator.compare(String(a), String(b));\n}\n","<ng-content select=\"ui-ribbon\" />\n\n@if (hasToolbar() || filtering()) {\n <div class=\"ui-table__toolbar\">\n @if (searchable()) {\n <ui-text-field\n class=\"ui-table__search\"\n type=\"search\"\n size=\"sm\"\n clearable\n autocomplete=\"off\"\n [ariaLabel]=\"'Rechercher dans ' + (caption() || regionLabel())\"\n [placeholder]=\"searchPlaceholder()\"\n [(value)]=\"search\"\n >\n <svg uiPrefix class=\"ui-table__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />\n </svg>\n </ui-text-field>\n }\n <span class=\"ui-table__count\" aria-live=\"polite\">\n @if (filtering() && !manualFilter()) {\n {{ rows().length }} sur {{ data().length }} ligne{{ data().length > 1 ? 's' : '' }}\n }\n </span>\n @if (filtering()) {\n <button type=\"button\" class=\"ui-table__tool\" (click)=\"resetFilters()\">Réinitialiser</button>\n }\n <ng-content select=\"[uiTableToolbar]\" />\n @if (hasColumnsMenu()) {\n <!-- Échap délégué : il remonte du bouton ou d'un contrôle du menu (éléments focalisables). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-table__columns\" (keydown)=\"onColumnsKeydown($event)\">\n <button\n type=\"button\"\n class=\"ui-table__tool ui-table__columns-button\"\n [attr.aria-expanded]=\"columnsMenuOpen()\"\n [attr.aria-controls]=\"baseId + '-columns'\"\n (click)=\"columnsMenuOpen.set(!columnsMenuOpen())\"\n >\n <svg class=\"ui-table__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M9 4v16M15 4v16\" />\n </svg>\n Colonnes\n @if (columnToggle() && hiddenKeys().size) {\n <span class=\"ui-table__badge\">{{ hiddenKeys().size }} masquée{{ hiddenKeys().size > 1 ? 's' : '' }}</span>\n }\n </button>\n @if (columnsMenuOpen()) {\n <div\n class=\"ui-table__columns-panel\"\n role=\"group\"\n [id]=\"baseId + '-columns'\"\n [attr.aria-label]=\"columnToggle() ? 'Colonnes affichées' : 'Ordre des colonnes'\"\n >\n @for (column of orderedColumns(); track column.key; let first = $first, last = $last) {\n <div\n class=\"ui-table__col\"\n [class.ui-table__col--drag]=\"dragKey() === column.key\"\n [class.ui-table__col--drop]=\"dropKey() === column.key\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n (dragstart)=\"onDragStart($event, column)\"\n (dragover)=\"onDragOver($event, column)\"\n (drop)=\"onDrop($event, column)\"\n (dragend)=\"onDragEnd()\"\n >\n @if (reorderable()) {\n <svg class=\"ui-table__grip\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"6\" r=\"1.5\" /><circle cx=\"15\" cy=\"6\" r=\"1.5\" /><circle cx=\"9\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"15\" cy=\"12\" r=\"1.5\" /><circle cx=\"9\" cy=\"18\" r=\"1.5\" /><circle cx=\"15\" cy=\"18\" r=\"1.5\" />\n </svg>\n }\n @if (columnToggle()) {\n <ui-checkbox\n size=\"sm\"\n [checked]=\"!hiddenKeys().has(column.key)\"\n [disabled]=\"!canHide(column)\"\n (changed)=\"toggleColumn(column.key, $event)\"\n >{{ column.header }}</ui-checkbox>\n } @else {\n <span class=\"ui-table__col-label\">{{ column.header }}</span>\n }\n @if (reorderable()) {\n <span class=\"ui-table__moves\">\n <button\n type=\"button\"\n class=\"ui-table__move\"\n [attr.data-move]=\"column.key + '-up'\"\n [disabled]=\"first\"\n [attr.aria-label]=\"'Monter ' + column.header\"\n [title]=\"'Monter ' + column.header\"\n (click)=\"onMoveClick(column, -1)\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m6 15 6-6 6 6\" /></svg>\n </button>\n <button\n type=\"button\"\n class=\"ui-table__move\"\n [attr.data-move]=\"column.key + '-down'\"\n [disabled]=\"last\"\n [attr.aria-label]=\"'Descendre ' + column.header\"\n [title]=\"'Descendre ' + column.header\"\n (click)=\"onMoveClick(column, 1)\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\" /></svg>\n </button>\n </span>\n }\n </div>\n }\n @if (reorderable() && isReordered()) {\n <button type=\"button\" class=\"ui-table__tool ui-table__col-reset\" (click)=\"resetColumnOrder()\">Réinitialiser l'ordre</button>\n }\n </div>\n }\n </div>\n }\n </div>\n}\n\n<div class=\"ui-table__scroller\" tabindex=\"0\" role=\"region\" [attr.aria-label]=\"caption() || regionLabel()\">\n <table class=\"ui-table__table\">\n @if (caption()) {\n <caption class=\"ui-table__caption\">{{ caption() }}</caption>\n }\n <thead>\n <tr>\n @for (column of visibleColumns(); track column.key) {\n <th\n scope=\"col\"\n class=\"ui-table__th\"\n [class]=\"'ui-table__cell--' + (column.align ?? 'start')\"\n [style.width]=\"column.width ?? null\"\n [attr.aria-sort]=\"ariaSort(column)\"\n [class.ui-table__th--draggable]=\"reorderable()\"\n [class.ui-table__th--drag]=\"dragKey() === column.key\"\n [class.ui-table__th--drop]=\"dropKey() === column.key\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n (dragstart)=\"onDragStart($event, column)\"\n (dragover)=\"onDragOver($event, column)\"\n (drop)=\"onDrop($event, column)\"\n (dragend)=\"onDragEnd()\"\n >\n @if (column.sortable) {\n <button type=\"button\" class=\"ui-table__sort\" (click)=\"toggleSort(column)\">\n <ng-container *ngTemplateOutlet=\"headerContent; context: { $implicit: column }\" />\n <svg class=\"ui-table__sort-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n @if (sort()?.key !== column.key) {\n <path d=\"m7 9 5-5 5 5M7 15l5 5 5-5\" />\n } @else if (sort()?.direction === 'asc') {\n <path d=\"m7 14 5-5 5 5\" />\n } @else {\n <path d=\"m7 10 5 5 5-5\" />\n }\n </svg>\n </button>\n } @else {\n <ng-container *ngTemplateOutlet=\"headerContent; context: { $implicit: column }\" />\n }\n </th>\n }\n </tr>\n @if (hasFilters()) {\n <tr class=\"ui-table__filters\">\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ui-table__filter\">\n @if (column.filter; as filter) {\n @switch (filter.type) {\n @case ('select') {\n <ui-select\n size=\"sm\"\n [ariaLabel]=\"'Filtrer ' + column.header\"\n [placeholder]=\"filterPlaceholder(filter)\"\n [options]=\"filterOptions().get(column.key) ?? []\"\n [value]=\"filters()[column.key] ?? null\"\n (valueChange)=\"setFilter(column.key, $event)\"\n />\n }\n @case ('boolean') {\n <ui-select\n size=\"sm\"\n [ariaLabel]=\"'Filtrer ' + column.header\"\n placeholder=\"Tous\"\n [options]=\"booleanOptions(filter)\"\n [value]=\"$any(filters()[column.key]) ?? null\"\n (valueChange)=\"setFilter(column.key, $event)\"\n />\n }\n @default {\n @if (filter.type === 'text' && !isAdvanced(filter)) {\n <ui-text-field\n size=\"sm\"\n type=\"search\"\n autocomplete=\"off\"\n [ariaLabel]=\"'Filtrer ' + column.header\"\n [placeholder]=\"filterPlaceholder(filter)\"\n [value]=\"$any(filters()[column.key]) ?? ''\"\n (valueChange)=\"setFilter(column.key, $event)\"\n />\n } @else {\n <!-- Une seule ligne : un champ (ou un résumé) + un bouton qui ouvre les réglages (popover natif). -->\n @let cond = conditionOf(column);\n @let arity = operatorArity(cond.op);\n @let popId = baseId + '-filter-' + column.key;\n <!-- Ancre explicite sur la ligne (toujours présente) : le résumé qui ouvre la fenêtre peut\n disparaître quand l'opérateur change ; une ancre implicite serait alors perdue. -->\n <div class=\"ui-table__fline\" [style.anchor-name]=\"anchorName(column)\">\n @if (arity === 1) {\n <ui-text-field\n size=\"sm\"\n autocomplete=\"off\"\n [type]=\"inputType(filter)\"\n [ariaLabel]=\"'Filtrer ' + column.header + ' (' + operatorLabel(cond.op) + ')'\"\n [placeholder]=\"filter.type === 'text' ? operatorLabel(cond.op) + '…' : ''\"\n [value]=\"conditionText(column, 'value')\"\n (valueChange)=\"setConditionValue(column, 'value', $event)\"\n >\n @if (isAdvanced(filter)) {\n <span uiPrefix class=\"ui-table__op\" aria-hidden=\"true\">{{ operatorSymbol(cond.op) }}</span>\n }\n </ui-text-field>\n } @else {\n <button\n type=\"button\"\n class=\"ui-table__fsummary\"\n [class.ui-table__fsummary--empty]=\"!isFilterActive(column)\"\n [attr.popovertarget]=\"popId\"\n [attr.aria-label]=\"'Filtre ' + column.header + ' : ' + summaryText(column) + '. Modifier'\"\n >\n {{ summaryText(column) }}\n </button>\n }\n @if (isAdvanced(filter) || arity === 2) {\n <button\n type=\"button\"\n class=\"ui-table__fbtn\"\n [class.ui-table__fbtn--custom]=\"cond.op !== defaultOperator(column)\"\n [attr.popovertarget]=\"popId\"\n [attr.aria-label]=\"'Réglages du filtre ' + column.header + ' (' + operatorLabel(cond.op) + ')'\"\n [title]=\"'Réglages du filtre : ' + operatorLabel(cond.op)\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0\" /><circle cx=\"16\" cy=\"6\" r=\"2\" /><circle cx=\"10\" cy=\"12\" r=\"2\" /><circle cx=\"18\" cy=\"18\" r=\"2\" />\n </svg>\n </button>\n }\n </div>\n <div\n class=\"ui-table__fpop\"\n popover=\"auto\"\n role=\"dialog\"\n [id]=\"popId\"\n [style.position-anchor]=\"anchorName(column)\"\n [attr.aria-label]=\"'Réglages du filtre ' + column.header\"\n >\n @if (isAdvanced(filter)) {\n <ui-select\n size=\"sm\"\n label=\"Condition\"\n [options]=\"operatorOptions().get(column.key) ?? []\"\n [value]=\"cond.op\"\n (valueChange)=\"setOperator(column, $event)\"\n />\n }\n @if (arity === 1) {\n <ui-text-field\n size=\"sm\"\n autocomplete=\"off\"\n [type]=\"inputType(filter)\"\n [label]=\"filter.type === 'date' ? 'Date' : 'Valeur'\"\n [value]=\"conditionText(column, 'value')\"\n (valueChange)=\"setConditionValue(column, 'value', $event)\"\n />\n } @else if (arity === 2) {\n <div class=\"ui-table__range\">\n <ui-text-field\n size=\"sm\"\n [type]=\"inputType(filter)\"\n [label]=\"filter.type === 'date' ? 'Du' : 'Minimum'\"\n [value]=\"conditionText(column, 'value')\"\n (valueChange)=\"setConditionValue(column, 'value', $event)\"\n />\n <ui-text-field\n size=\"sm\"\n [type]=\"inputType(filter)\"\n [label]=\"filter.type === 'date' ? 'Au' : 'Maximum'\"\n [value]=\"conditionText(column, 'to')\"\n (valueChange)=\"setConditionValue(column, 'to', $event)\"\n />\n </div>\n }\n <div class=\"ui-table__fpop-actions\">\n <button type=\"button\" class=\"ui-table__tool\" (click)=\"setFilter(column.key, null)\">Effacer</button>\n <button type=\"button\" class=\"ui-table__tool\" [attr.popovertarget]=\"popId\" popovertargetaction=\"hide\">Fermer</button>\n </div>\n </div>\n }\n }\n }\n }\n </td>\n }\n </tr>\n }\n </thead>\n <tbody>\n @for (row of pagedRows(); track trackBy()(row, $index); let j = $index) {\n @let i = pageStart() + j;\n <tr\n class=\"ui-table__row\"\n [attr.tabindex]=\"clickableRows() ? 0 : null\"\n (click)=\"onRowActivate(row, i)\"\n (keydown.enter)=\"onRowActivate(row, i)\"\n >\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ui-table__td\" [class]=\"'ui-table__cell--' + (column.align ?? 'start')\">\n @if (cellTemplates().get(column.key); as cell) {\n <ng-container\n *ngTemplateOutlet=\"cell; context: { $implicit: row, value: valueOf(row, column), index: i, column: column }\"\n />\n } @else {\n {{ display(valueOf(row, column)) }}\n }\n </td>\n }\n </tr>\n } @empty {\n <tr>\n <td class=\"ui-table__empty\" [attr.colspan]=\"visibleColumns().length\">\n @if (filtering() && data().length) {\n Aucune ligne ne correspond à la recherche ou aux filtres.\n <button type=\"button\" class=\"ui-table__tool ui-table__tool--inline\" (click)=\"resetFilters()\">Réinitialiser</button>\n } @else if (emptyDef(); as empty) {\n <ng-container *ngTemplateOutlet=\"empty.template\" />\n } @else {\n {{ emptyText() }}\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n</div>\n\n@if (paginated()) {\n <nav class=\"ui-table__pager\" [attr.aria-label]=\"'Pagination : ' + (caption() || regionLabel())\">\n <span class=\"ui-table__prange\" aria-live=\"polite\">\n @if (totalCount()) {\n {{ pageStart() + 1 }}–{{ pageEnd() }} sur {{ totalCount() }}\n } @else {\n 0 ligne\n }\n </span>\n @if (pageSizeOptions().length) {\n <span class=\"ui-table__psize\">\n <span aria-hidden=\"true\">Lignes par page</span>\n <ui-select\n size=\"sm\"\n required\n ariaLabel=\"Lignes par page\"\n [options]=\"pageSizeChoices()\"\n [value]=\"pageSize()\"\n (valueChange)=\"setPageSize($event)\"\n />\n </span>\n }\n <span class=\"ui-table__pages\">\n <button type=\"button\" class=\"ui-table__page ui-table__page--nav\" aria-label=\"Première page\" title=\"Première page\" [disabled]=\"currentPage() === 1\" (click)=\"goToPage(1)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m17 18-6-6 6-6M7 6v12\" /></svg>\n </button>\n <button type=\"button\" class=\"ui-table__page ui-table__page--nav\" aria-label=\"Page précédente\" title=\"Page précédente\" [disabled]=\"currentPage() === 1\" (click)=\"goToPage(currentPage() - 1)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m15 18-6-6 6-6\" /></svg>\n </button>\n @for (item of pageItems(); track $index) {\n @if (item === 0) {\n <span class=\"ui-table__gap\" aria-hidden=\"true\">…</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-table__page\"\n [class.ui-table__page--current]=\"item === currentPage()\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n [attr.aria-label]=\"'Page ' + item\"\n (click)=\"goToPage(item)\"\n >{{ item }}</button>\n }\n }\n <button type=\"button\" class=\"ui-table__page ui-table__page--nav\" aria-label=\"Page suivante\" title=\"Page suivante\" [disabled]=\"currentPage() === pageCount()\" (click)=\"goToPage(currentPage() + 1)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m9 18 6-6-6-6\" /></svg>\n </button>\n <button type=\"button\" class=\"ui-table__page ui-table__page--nav\" aria-label=\"Dernière page\" title=\"Dernière page\" [disabled]=\"currentPage() === pageCount()\" (click)=\"goToPage(pageCount())\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"m7 18 6-6-6-6M17 6v12\" /></svg>\n </button>\n </span>\n </nav>\n}\n\n<span class=\"ui-table__sr\" aria-live=\"polite\">{{ announcement() }}</span>\n\n<ng-template #headerContent let-column>\n @if (headerTemplates().get(column.key); as header) {\n <ng-container *ngTemplateOutlet=\"header; context: { $implicit: column }\" />\n } @else {\n {{ column.header }}\n }\n</ng-template>\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\nconst optionalNumber = (v: unknown) => (v === undefined || v === null || v === '' ? undefined : numberAttribute(v));\n\n/**\n * Zone de texte multiligne avec libellé, aide, erreur et compteur. Avec `autoResize`, elle grandit\n * avec son contenu entre `rows` et `maxRows` lignes (`field-sizing: content` ; hauteur fixe dans les navigateurs qui ne le gèrent pas).\n * Utilisable avec `[(value)]` ou les formulaires Angular (`formControl`, `ngModel`).\n *\n * @cssprop --ui-field-radius - Rayon des coins, commun à tous les champs (défaut : `--ui-radius-md`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-textarea',\n imports: [UiFieldMessage],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-field ui-textarea ui-field--\" + size()',\n '[class.ui-field--invalid]': 'validation.state().status === \"invalid\"',\n '[class.ui-field--valid]': 'validation.state().status === \"valid\"',\n '[class.ui-field--pending]': 'validation.state().status === \"pending\"',\n '[class.ui-field--disabled]': 'isDisabled()',\n '[class.ui-field--focused]': 'focused()',\n '[class.ui-textarea--auto]': 'autoResize()',\n '[style.--_rows]': 'rows()',\n '[style.--_max-rows]': 'maxRows() ?? null',\n },\n template: `\n @if (label()) {\n <label class=\"ui-field__label\" [for]=\"inputId\">\n {{ label() }}\n @if (isRequired()) {\n <span class=\"ui-field__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n }\n <div class=\"ui-field__control ui-textarea__control\">\n <textarea\n #textarea\n class=\"ui-textarea__input\"\n [id]=\"inputId\"\n [value]=\"value()\"\n [rows]=\"rows()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"isRequired()\"\n [style.resize]=\"autoResize() ? 'none' : resize()\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid'\"\n [attr.aria-describedby]=\"messageId\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n (input)=\"onInput($event)\"\n (focus)=\"setFocused(true)\"\n (blur)=\"setFocused(false)\"\n ></textarea>\n @if (validation.state().status === 'valid') {\n <svg class=\"ui-field__status-icon ui-textarea__status\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n }\n </div>\n <ui-field-message [messageId]=\"messageId\" [state]=\"validation.state()\" [hint]=\"hint()\" [counter]=\"counterText()\" />\n `,\n styleUrls: ['../core/field.css', './textarea.css'],\n})\nexport class UiTextarea implements ControlValueAccessor {\n /** Texte saisi (liaison bidirectionnelle `[(value)]`). */\n readonly value = model('');\n /** Libellé affiché au-dessus du champ. */\n readonly label = input<string>();\n /** Nom accessible quand aucun `label` visible n'est affiché (ex. champ de recherche dans une barre d'outils). */\n readonly ariaLabel = input<string>();\n /** Texte indicatif affiché quand le champ est vide. */\n readonly placeholder = input('');\n /** Texte d'aide sous le champ. */\n readonly hint = input<string>();\n /** Taille du texte. */\n readonly size = input<UiSize>('md');\n /** Nombre de lignes visibles (hauteur minimale si `autoResize`). */\n readonly rows = input(3, { transform: numberAttribute });\n /** Hauteur maximale en lignes quand `autoResize` est actif ; au-delà, une barre de défilement apparaît. */\n readonly maxRows = input<number | undefined, number | string | null | undefined>(undefined, { transform: optionalNumber });\n /** La hauteur suit le contenu. */\n readonly autoResize = input(false, { transform: booleanAttribute });\n /** Redimensionnement manuel autorisé (ignoré si `autoResize`). */\n readonly resize = input<'vertical' | 'none'>('vertical');\n /** Champ obligatoire (astérisque et attribut `required`). */\n readonly required = input(false, { transform: booleanAttribute });\n /** Désactive le champ. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Lecture seule. */\n readonly readonly = input(false, { transform: booleanAttribute });\n /** Longueur maximale ; affiche un compteur de caractères. */\n readonly maxLength = input<number | undefined, number | string | null | undefined>(undefined, { transform: optionalNumber });\n\n /** Émis quand le champ gagne (`true`) ou perd (`false`) le focus. */\n readonly focusChange = output<boolean>();\n\n protected readonly inputId = uniqueId('ui-textarea');\n protected readonly messageId = `${this.inputId}-message`;\n protected readonly focused = signal(false);\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n private readonly textareaRef = viewChild.required<ElementRef<HTMLTextAreaElement>>('textarea');\n\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n /** Obligatoire via l'input `required` ou un validateur `Validators.required` sur le contrôle. */\n protected readonly isRequired = computed(() => this.required() || this.validation.required());\n protected readonly counterText = computed(() => {\n const max = this.maxLength();\n return max ? `${this.value().length} / ${max}` : null;\n });\n\n constructor() {\n this.validation.attach(this, { label: this.label });\n warnIfUnlabelled('ui-textarea', () => !!(this.label() || this.ariaLabel()));\n }\n\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n /** Donne le focus au champ. */\n focus(): void {\n this.textareaRef().nativeElement.focus();\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLTextAreaElement).value;\n this.value.set(value);\n this.onChange(value);\n }\n\n protected setFocused(focused: boolean): void {\n this.focused.set(focused);\n this.focusChange.emit(focused);\n if (!focused) {\n this.onTouched();\n }\n }\n\n writeValue(value: unknown): void {\n this.value.set(value === null || value === undefined ? '' : String(value));\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\nimport { UiSize } from '../core/types';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\n\n/**\n * Groupe de boutons radio : un seul choix parmi plusieurs. Rendu dans un `<fieldset>` avec sa légende ;\n * les flèches du clavier déplacent la sélection (comportement natif). Les valeurs peuvent être de n'importe quel type.\n * Utilisable avec `[(value)]` ou les formulaires Angular (`formControl`, `ngModel`).\n *\n * @slot ui-radio - Les options du groupe.\n * @cssprop --ui-radio-color - Couleur de l'option choisie (défaut : `--ui-color-primary`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-radio-group',\n imports: [UiFieldMessage],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-radio-group ui-radio-group--\" + size() + \" ui-radio-group--\" + orientation()',\n '[class.ui-radio-group--invalid]': 'invalid()',\n },\n template: `\n <fieldset class=\"ui-radio-group__fieldset\" [disabled]=\"isDisabled()\" [attr.aria-describedby]=\"messageId\" [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\">\n @if (label()) {\n <legend class=\"ui-radio-group__legend\">\n {{ label() }}\n @if (isRequired()) {\n <span class=\"ui-radio-group__required\" aria-hidden=\"true\">*</span>\n }\n </legend>\n }\n <div class=\"ui-radio-group__options\" role=\"presentation\"><ng-content /></div>\n </fieldset>\n <ui-field-message class=\"ui-radio-group__message\" [messageId]=\"messageId\" [state]=\"validation.state()\" [hint]=\"hint()\" />\n `,\n styleUrl: './radio-group.css',\n})\nexport class UiRadioGroup<T = unknown> implements ControlValueAccessor {\n /** Valeur de l'option choisie, `null` si aucune (liaison bidirectionnelle `[(value)]`). */\n readonly value = model<T | null>(null);\n /** Légende du groupe (nom accessible). */\n readonly label = input<string>();\n /** Nom accessible quand aucune légende visible n'est affichée. */\n readonly ariaLabel = input<string>();\n /** Disposition des options. */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n /** Taille. */\n readonly size = input<UiSize>('md');\n /** Texte d'aide sous le groupe. */\n readonly hint = input<string>();\n /** Choix obligatoire (astérisque et attribut `required`). */\n readonly required = input(false, { transform: booleanAttribute });\n /** Désactive tout le groupe. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Attribut `name` partagé par les radios (généré si absent). */\n readonly name = input<string>();\n /** Égalité entre deux valeurs (utile pour des objets venant d'une API). */\n readonly compareWith = input<(a: T | null, b: T | null) => boolean>(Object.is);\n\n /** Émis quand l'utilisateur choisit une option. */\n readonly selectionChange = output<T>();\n\n /** @internal */\n readonly messageId = uniqueId('ui-radio-group-message');\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n /** @internal */\n readonly isRequired = computed(() => this.required() || this.validation.required());\n /** @internal */\n readonly invalid = computed(() => this.validation.state().status === 'invalid');\n private readonly generatedName = uniqueId('ui-radio-group');\n private readonly formDisabled = signal(false);\n /** @internal */\n readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n /** @internal */\n readonly groupName = computed(() => this.name() ?? this.generatedName);\n\n constructor() {\n this.validation.attach(this, { label: this.label, messages: { required: 'Choisissez une option.' } });\n warnIfUnlabelled('ui-radio-group', () => !!(this.label() || this.ariaLabel()));\n }\n\n private onChange: (value: T | null) => void = () => undefined;\n /** @internal */\n onTouched: () => void = () => undefined;\n\n /** @internal */\n isSelected(value: T): boolean {\n const current = this.value();\n return current !== null && this.compareWith()(current, value);\n }\n\n /** Sélectionne une valeur comme si l'utilisateur l'avait choisie. */\n select(value: T): void {\n this.value.set(value);\n this.onChange(value);\n this.selectionChange.emit(value);\n }\n\n writeValue(value: unknown): void {\n this.value.set((value ?? null) as T | null);\n }\n\n registerOnChange(fn: (value: T | null) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n\n/**\n * Une option de `ui-radio-group`.\n *\n * @slot default - Libellé (cliquable).\n */\n@Component({\n selector: 'ui-radio',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-radio',\n '[class.ui-radio--disabled]': 'isDisabled()',\n },\n template: `\n <label class=\"ui-radio__row\">\n <input\n type=\"radio\"\n class=\"ui-radio__input\"\n [name]=\"group.groupName()\"\n [checked]=\"group.isSelected(value())\"\n [disabled]=\"isDisabled()\"\n [required]=\"group.isRequired()\"\n [attr.aria-invalid]=\"group.invalid() || null\"\n [attr.aria-describedby]=\"(description() ? descriptionId + ' ' : '') + group.messageId\"\n (change)=\"group.select(value())\"\n (blur)=\"group.onTouched()\"\n />\n <span class=\"ui-radio__text\">\n <span class=\"ui-radio__label\"><ng-content /></span>\n @if (description()) {\n <span class=\"ui-radio__description\" [id]=\"descriptionId\">{{ description() }}</span>\n }\n </span>\n </label>\n `,\n styleUrl: './radio.css',\n})\nexport class UiRadio<T = unknown> {\n /** Valeur transmise au groupe quand l'option est choisie. */\n readonly value = input.required<T>();\n /** Désactive cette option. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Texte d'aide sous le libellé. */\n readonly description = input<string>();\n\n protected readonly group = inject<UiRadioGroup<T>>(UiRadioGroup);\n protected readonly descriptionId = uniqueId('ui-radio-description');\n protected readonly isDisabled = computed(() => this.disabled() || this.group.isDisabled());\n}\n","import { ChangeDetectionStrategy, Component, Directive, input } from '@angular/core';\nimport { UiSize, UiTone } from '../core/types';\nimport { UiIcon } from '../icon/icon';\n\nexport type UiRibbonCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';\n\n/**\n * Rend un élément quelconque capable d'accueillir un `ui-ribbon` (lui donne `position: relative`).\n * Inutile sur `ui-card` et `ui-table`, qui le gèrent déjà.\n */\n@Directive({ selector: '[uiRibbonContainer]', host: { style: 'position: relative' } })\nexport class UiRibbonContainer {}\n\n/**\n * Ruban en diagonale posé dans un coin d'une carte, d'une table ou de tout élément `uiRibbonContainer`\n * (« Nouveau », « Promo », « Bêta »…). Il découpe lui-même son débordement et laisse passer les clics ;\n * son texte reste lu par les lecteurs d'écran. Laissez le coin choisi libre de contenu important\n * (titre, bouton) : la bande le recouvre.\n *\n * @slot default - Texte du ruban (court : un ou deux mots).\n * @cssprop --ui-ribbon-size - Côté du carré occupé dans le coin (défaut selon `size` : 5rem, 6.5rem, 8rem).\n * @category Affichage\n */\n@Component({\n selector: 'ui-ribbon',\n imports: [UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"ui-ribbon ui-ribbon--\" + corner() + \" ui-ribbon--\" + tone() + \" ui-ribbon--\" + size()',\n },\n template: `\n <span class=\"ui-ribbon__band\">\n @if (icon(); as name) {\n <ui-icon [name]=\"name\" />\n }\n <span class=\"ui-ribbon__text\"><ng-content /></span>\n </span>\n `,\n styleUrl: './ribbon.css',\n})\nexport class UiRibbon {\n /** Coin où placer le ruban. */\n readonly corner = input<UiRibbonCorner>('top-right');\n /** Couleur sémantique (texte et fond contrastés dans les deux thèmes). */\n readonly tone = input<UiTone>('primary');\n /** Taille du ruban. */\n readonly size = input<UiSize>('md');\n /** Icône avant le texte (`préfixe:nom`, voir `provideUiIcons()`). */\n readonly icon = input<string>();\n}\n","/** Taille : nombre d'octets, ou texte avec unité (`'500 Ko'`, `'5 MB'`, `'1,5 Go'`). */\nexport type UiFileSize = number | string;\n\nconst UNITS: Record<string, number> = {\n b: 1, o: 1, octet: 1, octets: 1,\n kb: 1024, ko: 1024, k: 1024,\n mb: 1024 ** 2, mo: 1024 ** 2, m: 1024 ** 2,\n gb: 1024 ** 3, go: 1024 ** 3, g: 1024 ** 3,\n};\n\n/** Convertit une taille (`5 * 1024 * 1024`, `'5 Mo'`, `'500KB'`) en octets ; `undefined` si absente ou invalide. */\nexport function parseFileSize(size: UiFileSize | null | undefined): number | undefined {\n if (size === null || size === undefined || size === '') return undefined;\n if (typeof size === 'number') return Number.isFinite(size) && size >= 0 ? size : undefined;\n const match = /^\\s*([\\d.,]+)\\s*([a-zA-Z]*)\\s*$/.exec(size);\n if (!match) return undefined;\n const value = Number(match[1].replace(',', '.'));\n const unit = UNITS[(match[2] || 'o').toLowerCase()];\n return Number.isFinite(value) && unit ? Math.round(value * unit) : undefined;\n}\n\n/** Affiche une taille en unités françaises : `1,5 Mo`, `820 Ko`, `12 o`. */\nexport function formatFileSize(bytes: number): string {\n const units = ['o', 'Ko', 'Mo', 'Go'];\n let value = bytes;\n let i = 0;\n while (value >= 1024 && i < units.length - 1) {\n value /= 1024;\n i += 1;\n }\n const digits = i === 0 || value >= 10 ? 0 : 1;\n return `${new Intl.NumberFormat('fr-FR', { maximumFractionDigits: digits }).format(value)} ${units[i]}`;\n}\n\n/** Jetons d'un attribut `accept` (`'image/*, .pdf'` → `['image/*', '.pdf']`). */\nexport function acceptTokens(accept: string | null | undefined): string[] {\n return (accept ?? '')\n .split(',')\n .map((t) => t.trim().toLowerCase())\n .filter(Boolean);\n}\n\n/** Vérifie un fichier contre `accept` : extensions (`.pdf`), types MIME (`application/pdf`) et familles (`image/*`). */\nexport function matchesAccept(file: File, accept: string | null | undefined): boolean {\n const tokens = acceptTokens(accept);\n if (!tokens.length) return true;\n const name = file.name.toLowerCase();\n const type = (file.type || '').toLowerCase();\n return tokens.some((token) => {\n if (token.startsWith('.')) return name.endsWith(token);\n if (token.endsWith('/*')) return !!type && type.startsWith(token.slice(0, -1));\n return type === token;\n });\n}\n\nconst FAMILY_LABELS: Record<string, string> = { image: 'images', video: 'vidéos', audio: 'fichiers audio', text: 'fichiers texte' };\n\n/** Description lisible de `accept` : `'image/*,.pdf'` → `images ou PDF`. */\nexport function describeAccept(accept: string | null | undefined): string {\n const labels = acceptTokens(accept).map((token) => {\n if (token.startsWith('.')) return token.slice(1).toUpperCase();\n if (token.endsWith('/*')) return FAMILY_LABELS[token.slice(0, -2)] ?? token;\n const sub = token.split('/')[1] ?? token;\n return sub.replace(/^x-/, '').split(/[.+-]/).pop()?.toUpperCase() ?? token;\n });\n const unique = [...new Set(labels)];\n return unique.length <= 1 ? (unique[0] ?? '') : `${unique.slice(0, -1).join(', ')} ou ${unique[unique.length - 1]}`;\n}\n","import { HttpEvent, HttpEventType } from '@angular/common/http';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\nimport { UiErrorMessage, formatErrorMessage } from '../validation/messages';\nimport { UiFieldMessage } from '../validation/field-message';\nimport { UiFieldValidation } from '../validation/field-validation';\nimport { UiFileSize, describeAccept, formatFileSize, matchesAccept, parseFileSize } from './file-utils';\n\n/** Raison du refus d'un fichier. */\nexport type UiFileRejectionReason = 'fileType' | 'maxFileSize' | 'minFileSize' | 'maxFiles' | 'maxTotalSize';\n\n/** Fichier refusé à la sélection. */\nexport interface UiFileRejection {\n file: File;\n reason: UiFileRejectionReason;\n /** Message affiché (personnalisable avec `rejectionMessages`). */\n message: string;\n}\n\n/** État d'envoi d'un fichier. */\nexport type UiFileStatus = 'ready' | 'uploading' | 'done' | 'error';\n\n/** Fichier sélectionné et son état. */\nexport interface UiFileItem {\n id: string;\n file: File;\n status: UiFileStatus;\n /** Progression de l'envoi, de 0 à 100. */\n progress: number;\n /** Aperçu (`data:` URL) pour les images PNG, JPEG, GIF et WebP. */\n preview?: string;\n error?: string;\n /** Réponse du serveur une fois l'envoi terminé. */\n response?: unknown;\n}\n\n/**\n * Fonction d'envoi d'un fichier. Elle renvoie un Observable de progression : soit les événements de `HttpClient`\n * (`reportProgress: true, observe: 'events'`), soit des pourcentages (0 à 100). La fin de l'Observable vaut succès.\n */\nexport type UiFileUploader = (file: File) => Observable<HttpEvent<unknown> | number>;\n\n/** Payload de `(uploaded)`. */\nexport interface UiFileUploaded {\n file: File;\n response: unknown;\n}\n\n/** Payload de `(uploadFailed)`. */\nexport interface UiFileUploadFailed {\n file: File;\n error: unknown;\n}\n\nconst DEFAULT_REJECTIONS: Record<UiFileRejectionReason, UiErrorMessage> = {\n fileType: '« {name} » : type de fichier non autorisé (attendu : {accept}).',\n maxFileSize: '« {name} » ({size}) dépasse la taille maximale de {max}.',\n minFileSize: '« {name} » ({size}) est trop petit : minimum {min}.',\n maxFiles: '« {name} » n’a pas été ajouté : {maxFiles} fichier(s) au maximum.',\n maxTotalSize: '« {name} » n’a pas été ajouté : la taille totale est limitée à {maxTotal}.',\n};\n\nconst PREVIEWABLE = /^image\\/(png|jpe?g|gif|webp)$/;\n\n/**\n * Sélection et envoi de fichiers, en champ (`mode=\"field\"`) ou en zone de glisser-déposer (`mode=\"dropzone\"`).\n * Nombre de fichiers, tailles minimale / maximale / totale et types (`accept`) sont vérifiés à la sélection :\n * les fichiers refusés sont listés avec la raison. Avec `[upload]`, chaque fichier est envoyé avec sa progression.\n *\n * Utilisable avec `[(files)]` ou les formulaires Angular (valeur : `File[]`, compatible `Validators.required`).\n *\n * Sécurité : ces contrôles améliorent l'expérience mais ne protègent rien. Le serveur doit revérifier le type réel\n * (contenu du fichier), la taille, renommer le fichier et le stocker hors de la racine web.\n *\n * @cssprop --ui-file-upload-min-height - Hauteur minimale de la zone de dépôt (défaut : `9rem`).\n * @category Formulaires\n */\n@Component({\n selector: 'ui-file-upload',\n imports: [UiFieldMessage],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: UiFieldValidation,\n inputs: ['error', 'errorMessages', 'showErrorsWhen', 'showSuccess', 'successMessage'],\n },\n ],\n host: {\n '[class]': '\"ui-field ui-file-upload ui-field--md ui-file-upload--\" + mode()',\n '[class.ui-field--invalid]': 'validation.state().status === \"invalid\"',\n '[class.ui-field--valid]': 'validation.state().status === \"valid\"',\n '[class.ui-field--disabled]': 'isDisabled()',\n '[class.ui-field--focused]': 'focused()',\n '[class.ui-file-upload--dragging]': 'dragging()',\n },\n templateUrl: './file-upload.html',\n styleUrls: ['../core/field.css', './file-upload.css'],\n})\nexport class UiFileUpload implements ControlValueAccessor {\n /** Fichiers retenus (liaison bidirectionnelle `[(files)]`). */\n readonly files = model<File[]>([]);\n /** Libellé du champ. */\n readonly label = input<string>();\n /** Nom accessible quand aucun `label` visible n'est affiché. */\n readonly ariaLabel = input<string>();\n /** Présentation : champ avec bouton, ou zone de glisser-déposer. */\n readonly mode = input<'field' | 'dropzone'>('dropzone');\n /** Types acceptés, comme l'attribut HTML `accept` : `'image/*,.pdf'`. Vérifié aussi pour les fichiers déposés. */\n readonly accept = input<string>('');\n /** Texte décrivant les types acceptés (sinon déduit de `accept` : « images ou PDF »). */\n readonly acceptLabel = input<string>();\n /** Nombre maximal de fichiers. À 1, une nouvelle sélection remplace le fichier courant. */\n readonly maxFiles = input(1, { transform: numberAttribute });\n /** Taille maximale par fichier (`5 * 1024 * 1024`, `'5 Mo'`). */\n readonly maxFileSize = input<UiFileSize>();\n /** Taille minimale par fichier (ex. `'1 Ko'` pour écarter les fichiers vides). */\n readonly minFileSize = input<UiFileSize>();\n /** Taille cumulée maximale de tous les fichiers. */\n readonly maxTotalSize = input<UiFileSize>();\n /** Texte d'aide ; les contraintes (types, tailles, nombre) sont ajoutées automatiquement. */\n readonly hint = input<string>();\n /** Masque le rappel automatique des contraintes. */\n readonly hideConstraints = input(false, { transform: booleanAttribute });\n /** Affiche une vignette pour les images. */\n readonly showPreview = input(true, { transform: booleanAttribute });\n /** Champ obligatoire (astérisque et attribut `required`). */\n readonly required = input(false, { transform: booleanAttribute });\n /** Désactive le champ. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Messages de refus par raison (`fileType`, `maxFileSize`, `minFileSize`, `maxFiles`, `maxTotalSize`). Paramètres : `{name}`, `{size}`, `{max}`, `{min}`, `{maxFiles}`, `{maxTotal}`, `{accept}`. */\n readonly rejectionMessages = input<Partial<Record<UiFileRejectionReason, UiErrorMessage>>>();\n /** Fonction d'envoi ; sans elle, le composant ne fait que la sélection. */\n readonly upload = input<UiFileUploader>();\n /** Envoie chaque fichier dès qu'il est ajouté (sinon, appelez `uploadAll()`). */\n readonly autoUpload = input(true, { transform: booleanAttribute });\n\n /** Émis quand des fichiers sont refusés à la sélection. */\n readonly rejected = output<UiFileRejection[]>();\n /** Émis quand un fichier est retiré par l'utilisateur. */\n readonly removed = output<File>();\n /** Émis à la fin de l'envoi d'un fichier. */\n readonly uploaded = output<UiFileUploaded>();\n /** Émis quand l'envoi d'un fichier échoue. */\n readonly uploadFailed = output<UiFileUploadFailed>();\n\n /** @internal */\n protected readonly validation = inject(UiFieldValidation);\n protected readonly inputId = uniqueId('ui-file-upload');\n protected readonly messageId = `${this.inputId}-message`;\n protected readonly constraintsId = `${this.inputId}-constraints`;\n protected readonly focused = signal(false);\n protected readonly dragging = signal(false);\n /** Fichiers et état d'envoi. */\n readonly items = signal<UiFileItem[]>([]);\n /** Refus de la dernière sélection. */\n readonly rejections = signal<UiFileRejection[]>([]);\n protected readonly announcement = signal('');\n\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly isRequired = computed(() => this.required() || this.validation.required());\n protected readonly multiple = computed(() => this.maxFiles() !== 1);\n /** Limite atteinte : on ne peut plus ajouter (sauf en mode remplacement, maxFiles = 1). */\n protected readonly full = computed(() => this.multiple() && this.items().length >= this.maxFiles());\n protected readonly totalSize = computed(() => this.items().reduce((sum, item) => sum + item.file.size, 0));\n\n /** Rappel des contraintes : « Images ou PDF · 5 Mo max par fichier · 3 fichiers max ». */\n protected readonly constraints = computed(() => {\n const parts: string[] = [];\n const types = this.acceptLabel() ?? describeAccept(this.accept());\n if (types) parts.push(types.charAt(0).toUpperCase() + types.slice(1));\n const max = parseFileSize(this.maxFileSize());\n const min = parseFileSize(this.minFileSize());\n const total = parseFileSize(this.maxTotalSize());\n if (max !== undefined) parts.push(`${formatFileSize(max)} max par fichier`);\n if (min !== undefined) parts.push(`${formatFileSize(min)} min`);\n if (total !== undefined) parts.push(`${formatFileSize(total)} au total`);\n if (this.multiple()) parts.push(`${this.maxFiles()} fichiers max`);\n return parts.join(' · ');\n });\n\n protected readonly summary = computed(() => {\n const items = this.items();\n if (!items.length) return 'Aucun fichier sélectionné';\n return items.length === 1 ? items[0].file.name : `${items.length} fichiers (${formatFileSize(this.totalSize())})`;\n });\n\n private readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n private readonly subscriptions = new Map<string, Subscription>();\n private dragDepth = 0;\n private onChange: (value: File[]) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n constructor() {\n this.validation.attach(this, { label: this.label });\n warnIfUnlabelled('ui-file-upload', () => !!(this.label() || this.ariaLabel()));\n inject(DestroyRef).onDestroy(() => this.subscriptions.forEach((s) => s.unsubscribe()));\n }\n\n /** Ouvre le sélecteur de fichiers du navigateur. */\n open(): void {\n if (!this.isDisabled()) this.inputRef().nativeElement.click();\n }\n\n /** Ajoute des fichiers comme si l'utilisateur les avait choisis (contrôles compris). */\n addFiles(files: FileList | readonly File[]): void {\n if (this.isDisabled()) return;\n const incoming = Array.from(files);\n const replace = !this.multiple();\n let current = replace ? [] : [...this.items()];\n const rejections: UiFileRejection[] = [];\n const accepted: UiFileItem[] = [];\n const max = parseFileSize(this.maxFileSize());\n const min = parseFileSize(this.minFileSize());\n const maxTotal = parseFileSize(this.maxTotalSize());\n let total = current.reduce((sum, item) => sum + item.file.size, 0);\n\n for (const file of replace ? incoming.slice(0, 1) : incoming) {\n let reason: UiFileRejectionReason | null = null;\n if (!matchesAccept(file, this.accept())) reason = 'fileType';\n else if (max !== undefined && file.size > max) reason = 'maxFileSize';\n else if (min !== undefined && file.size < min) reason = 'minFileSize';\n else if (current.length + accepted.length >= this.maxFiles()) reason = 'maxFiles';\n else if (maxTotal !== undefined && total + file.size > maxTotal) reason = 'maxTotalSize';\n if (reason) {\n rejections.push({ file, reason, message: this.rejectionMessage(reason, file) });\n } else {\n total += file.size;\n accepted.push({ id: uniqueId('ui-file'), file, status: 'ready', progress: 0 });\n }\n }\n if (replace && accepted.length) {\n this.items().forEach((item) => this.cancel(item.id));\n current = [];\n }\n if (replace && incoming.length > 1) {\n rejections.push(...incoming.slice(1).map((file) => ({ file, reason: 'maxFiles' as const, message: this.rejectionMessage('maxFiles', file) })));\n }\n\n this.rejections.set(rejections);\n if (rejections.length) this.rejected.emit(rejections);\n if (accepted.length) {\n this.setItems([...current, ...accepted]);\n accepted.forEach((item) => this.loadPreview(item));\n if (this.upload() && this.autoUpload()) accepted.forEach((item) => this.startUpload(item.id));\n }\n this.announce(accepted.length, rejections.length);\n this.onTouched();\n }\n\n /** Retire un fichier (annule son envoi éventuel). */\n remove(id: string): void {\n const item = this.items().find((i) => i.id === id);\n if (!item) return;\n this.cancel(id);\n this.setItems(this.items().filter((i) => i.id !== id));\n this.removed.emit(item.file);\n this.announcement.set(`${item.file.name} retiré.`);\n }\n\n /** Retire tous les fichiers. */\n clear(): void {\n this.items().forEach((item) => this.cancel(item.id));\n this.setItems([]);\n this.rejections.set([]);\n }\n\n /** Envoie tous les fichiers prêts ou en erreur. */\n uploadAll(): void {\n this.items()\n .filter((item) => item.status === 'ready' || item.status === 'error')\n .forEach((item) => this.startUpload(item.id));\n }\n\n /** Relance l'envoi d'un fichier en erreur. */\n retry(id: string): void {\n this.startUpload(id);\n }\n\n /** Image illisible : on revient à l'icône générique. */\n protected dropPreview(id: string): void {\n this.patch(id, { preview: undefined });\n }\n\n protected dismissRejections(): void {\n this.rejections.set([]);\n }\n\n protected onInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n if (input.files?.length) this.addFiles(input.files);\n input.value = ''; // permet de re-sélectionner le même fichier\n }\n\n protected onDragEnter(event: DragEvent): void {\n if (!this.acceptsDrag(event)) return;\n event.preventDefault();\n this.dragDepth += 1;\n this.dragging.set(true);\n }\n\n protected onDragOver(event: DragEvent): void {\n if (!this.acceptsDrag(event)) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy';\n }\n\n protected onDragLeave(): void {\n this.dragDepth = Math.max(0, this.dragDepth - 1);\n if (this.dragDepth === 0) this.dragging.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n if (!this.acceptsDrag(event)) return;\n event.preventDefault();\n this.dragDepth = 0;\n this.dragging.set(false);\n if (event.dataTransfer?.files.length) this.addFiles(event.dataTransfer.files);\n }\n\n protected setFocused(focused: boolean): void {\n this.focused.set(focused);\n if (!focused) this.onTouched();\n }\n\n protected size(bytes: number): string {\n return formatFileSize(bytes);\n }\n\n protected isImage(file: File): boolean {\n return file.type.startsWith('image/');\n }\n\n private acceptsDrag(event: DragEvent): boolean {\n return !this.isDisabled() && !this.full() && !!event.dataTransfer?.types.includes('Files');\n }\n\n private rejectionMessage(reason: UiFileRejectionReason, file: File): string {\n const template = this.rejectionMessages()?.[reason] ?? DEFAULT_REJECTIONS[reason];\n const max = parseFileSize(this.maxFileSize());\n const min = parseFileSize(this.minFileSize());\n const total = parseFileSize(this.maxTotalSize());\n const params = {\n name: file.name,\n size: formatFileSize(file.size),\n max: max !== undefined ? formatFileSize(max) : '',\n min: min !== undefined ? formatFileSize(min) : '',\n maxTotal: total !== undefined ? formatFileSize(total) : '',\n maxFiles: this.maxFiles(),\n accept: this.acceptLabel() ?? describeAccept(this.accept()),\n };\n return formatErrorMessage(template, params, { label: this.label(), control: this.validation.control });\n }\n\n private setItems(items: UiFileItem[]): void {\n this.items.set(items);\n const files = items.map((item) => item.file);\n this.files.set(files);\n this.onChange(files);\n }\n\n private patch(id: string, changes: Partial<UiFileItem>): void {\n this.items.update((items) => items.map((item) => (item.id === id ? { ...item, ...changes } : item)));\n }\n\n private loadPreview(item: UiFileItem): void {\n if (!this.showPreview() || !PREVIEWABLE.test(item.file.type) || item.file.size > 10 * 1024 * 1024) return;\n // data: URL (et non blob:) : autorisée par la CSP img-src 'self' data:, et acceptée par le sanitizer d'Angular.\n const reader = new FileReader();\n reader.onload = () => {\n if (typeof reader.result === 'string') this.patch(item.id, { preview: reader.result });\n };\n reader.readAsDataURL(item.file);\n }\n\n private startUpload(id: string): void {\n const uploader = this.upload();\n const item = this.items().find((i) => i.id === id);\n if (!uploader || !item) return;\n this.cancel(id);\n this.patch(id, { status: 'uploading', progress: 0, error: undefined });\n let response: unknown;\n const subscription = uploader(item.file).subscribe({\n next: (event) => {\n if (typeof event === 'number') {\n this.patch(id, { progress: Math.max(0, Math.min(100, Math.round(event))) });\n } else if (event.type === HttpEventType.UploadProgress) {\n this.patch(id, { progress: event.total ? Math.round((100 * event.loaded) / event.total) : 0 });\n } else if (event.type === HttpEventType.Response) {\n response = event.body;\n }\n },\n error: (error: unknown) => {\n this.subscriptions.delete(id);\n this.patch(id, { status: 'error', error: 'Échec de l’envoi.' });\n this.uploadFailed.emit({ file: item.file, error });\n this.announcement.set(`Échec de l’envoi de ${item.file.name}.`);\n },\n complete: () => {\n this.subscriptions.delete(id);\n this.patch(id, { status: 'done', progress: 100, response });\n this.uploaded.emit({ file: item.file, response });\n this.announcement.set(`${item.file.name} envoyé.`);\n },\n });\n if (!subscription.closed) this.subscriptions.set(id, subscription);\n }\n\n private cancel(id: string): void {\n this.subscriptions.get(id)?.unsubscribe();\n this.subscriptions.delete(id);\n }\n\n private announce(added: number, refused: number): void {\n const parts: string[] = [];\n if (added) parts.push(`${added} fichier${added > 1 ? 's' : ''} ajouté${added > 1 ? 's' : ''}`);\n if (refused) parts.push(`${refused} refusé${refused > 1 ? 's' : ''}`);\n if (parts.length) this.announcement.set(parts.join(', ') + '.');\n }\n\n writeValue(value: unknown): void {\n const files = Array.isArray(value) ? (value.filter((f) => f instanceof File) as File[]) : [];\n untracked(() => {\n const existing = this.items();\n this.items.set(files.map((file) => existing.find((i) => i.file === file) ?? { id: uniqueId('ui-file'), file, status: 'ready', progress: 0 }));\n this.files.set(files);\n if (!files.length) this.rejections.set([]);\n });\n }\n\n registerOnChange(fn: (value: File[]) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","@if (label()) {\n <label class=\"ui-field__label\" [for]=\"inputId\">\n {{ label() }}\n @if (isRequired()) {\n <span class=\"ui-field__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n\n<!-- Input natif conservé (clavier, lecteurs d'écran, formulaires) mais masqué visuellement. -->\n<input\n #input\n type=\"file\"\n class=\"ui-file-upload__input\"\n [id]=\"inputId\"\n [accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled() || full()\"\n [required]=\"isRequired() && !items().length\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n [attr.aria-invalid]=\"validation.state().status === 'invalid'\"\n [attr.aria-describedby]=\"constraintsId + ' ' + messageId\"\n (change)=\"onInputChange($event)\"\n (focus)=\"setFocused(true)\"\n (blur)=\"setFocused(false)\"\n/>\n\n@if (mode() === 'dropzone') {\n <!-- Le dépôt complète le bouton natif : la zone entière ouvre aussi le sélecteur (label for). -->\n <label\n class=\"ui-file-upload__zone\"\n [for]=\"inputId\"\n [class.ui-file-upload__zone--full]=\"full()\"\n (dragenter)=\"onDragEnter($event)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n >\n <svg class=\"ui-file-upload__zone-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n @if (dragging()) {\n <path d=\"M12 3v12M7 10l5 5 5-5M5 21h14\" />\n } @else {\n <path d=\"M12 15V3M7 8l5-5 5 5M5 21h14\" />\n }\n </svg>\n <span class=\"ui-file-upload__zone-text\">\n @if (full()) {\n Limite de {{ maxFiles() }} fichiers atteinte\n } @else if (dragging()) {\n Déposez {{ multiple() ? 'les fichiers' : 'le fichier' }} ici\n } @else {\n Glissez-déposez {{ multiple() ? 'vos fichiers' : 'un fichier' }} ici ou <span class=\"ui-file-upload__link\">parcourez</span>\n }\n </span>\n @if (!hideConstraints() && constraints()) {\n <span class=\"ui-file-upload__constraints\" [id]=\"constraintsId\">{{ constraints() }}</span>\n }\n </label>\n} @else {\n <div class=\"ui-field__control ui-file-upload__control\">\n <label class=\"ui-file-upload__browse\" [for]=\"inputId\" [class.ui-file-upload__browse--disabled]=\"isDisabled() || full()\">Parcourir…</label>\n <span class=\"ui-file-upload__summary\" [class.ui-file-upload__summary--empty]=\"!items().length\">{{ summary() }}</span>\n @if (items().length && !isDisabled()) {\n <button type=\"button\" class=\"ui-file-upload__action\" (click)=\"clear()\" [attr.aria-label]=\"items().length > 1 ? 'Retirer tous les fichiers' : 'Retirer ' + items()[0].file.name\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M18 6 6 18M6 6l12 12\" /></svg>\n </button>\n }\n </div>\n @if (!hideConstraints() && constraints()) {\n <span class=\"ui-file-upload__constraints ui-file-upload__constraints--field\" [id]=\"constraintsId\">{{ constraints() }}</span>\n }\n}\n\n@if (items().length && (multiple() || mode() === 'dropzone' || upload())) {\n <ul class=\"ui-file-upload__list\" aria-label=\"Fichiers sélectionnés\">\n @for (item of items(); track item.id) {\n <li class=\"ui-file-upload__item\" [class]=\"'ui-file-upload__item ui-file-upload__item--' + item.status\">\n @if (item.preview) {\n <img class=\"ui-file-upload__thumb\" [src]=\"item.preview\" alt=\"\" (error)=\"dropPreview(item.id)\" />\n } @else {\n <svg class=\"ui-file-upload__thumb ui-file-upload__thumb--icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n @if (isImage(item.file)) {\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21\" />\n } @else {\n <path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9Z\" /><path d=\"M14 3v6h6\" />\n }\n </svg>\n }\n <span class=\"ui-file-upload__meta\">\n <span class=\"ui-file-upload__name\" [title]=\"item.file.name\">{{ item.file.name }}</span>\n <span class=\"ui-file-upload__detail\">\n {{ size(item.file.size) }}\n @switch (item.status) {\n @case ('uploading') { · envoi {{ item.progress }} % }\n @case ('done') { · <span class=\"ui-file-upload__ok\">✓ envoyé</span> }\n @case ('error') { · <span class=\"ui-file-upload__ko\">⚠ {{ item.error }}</span> }\n }\n </span>\n @if (item.status === 'uploading') {\n <span\n class=\"ui-file-upload__progress\"\n role=\"progressbar\"\n [attr.aria-label]=\"'Envoi de ' + item.file.name\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"item.progress\"\n >\n <span class=\"ui-file-upload__bar\" [style.width.%]=\"item.progress\"></span>\n </span>\n }\n </span>\n @if (item.status === 'error') {\n <button type=\"button\" class=\"ui-file-upload__action\" (click)=\"retry(item.id)\" [attr.aria-label]=\"'Réessayer l’envoi de ' + item.file.name\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M3 12a9 9 0 0 1 15.5-6.2L21 8M21 3v5h-5M21 12a9 9 0 0 1-15.5 6.2L3 16M3 21v-5h5\" />\n </svg>\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-file-upload__action\"\n [disabled]=\"isDisabled()\"\n (click)=\"remove(item.id)\"\n [attr.aria-label]=\"(item.status === 'uploading' ? 'Annuler et retirer ' : 'Retirer ') + item.file.name\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M18 6 6 18M6 6l12 12\" /></svg>\n </button>\n </li>\n }\n </ul>\n}\n\n@if (rejections().length) {\n <div class=\"ui-file-upload__rejections\" role=\"alert\">\n <ul>\n @for (rejection of rejections(); track $index) {\n <li>\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 8v4M12 16h.01\" /></svg>\n {{ rejection.message }}\n </li>\n }\n </ul>\n <button type=\"button\" class=\"ui-file-upload__dismiss\" (click)=\"dismissRejections()\">Masquer</button>\n </div>\n}\n\n<ui-field-message [messageId]=\"messageId\" [state]=\"validation.state()\" [hint]=\"hint()\" />\n<p class=\"ui-file-upload__live\" aria-live=\"polite\">{{ announcement() }}</p>\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n untracked,\n viewChild,\n Injector,\n DOCUMENT,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UiLayout } from './layout';\n\n/** État d'une colonne : déployée, réduite aux icônes (rail) ou masquée. */\nexport type UiSidebarState = 'open' | 'rail' | 'closed';\n\n/** Comportement : toujours visible, pousse le contenu, ou glisse au-dessus. */\nexport type UiSidebarMode = 'static' | 'push' | 'over';\n\n/**\n * Colonne latérale d'un `ui-layout`, à gauche ou à droite.\n *\n * - `mode=\"static\"` : toujours visible (seule la réduction en rail est possible) ;\n * - `mode=\"push\"` : se replie en poussant / libérant le contenu ;\n * - `mode=\"over\"` : se déploie au-dessus du contenu.\n *\n * Repli vers un rail d'icônes (`collapseTo=\"rail\"`) ou masquage complet (`collapseTo=\"closed\"`).\n * Largeur fixe, ou ajustable à la souris et au clavier avec `resizable`. Sous le `breakpoint` du layout,\n * la colonne devient un tiroir : voile, Échap pour fermer, focus déplacé dans le tiroir puis restitué.\n *\n * @slot default - Contenu de la colonne (souvent un `ui-menu`).\n * @slot [uiSidebarHeader] - Haut de colonne (logo, titre).\n * @slot [uiSidebarFooter] - Bas de colonne (profil, réglages).\n * @cssprop --ui-sidebar-bg - Fond de la colonne (défaut : `--ui-color-surface`).\n * @category Mise en page\n */\n@Component({\n selector: 'ui-sidebar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"ui-sidebar ui-sidebar--\" + position() + \" ui-sidebar--\" + effectiveState()',\n '[class.ui-sidebar--overlay]': 'overlayOpen()',\n '[class.ui-sidebar--resizing]': 'resizing()',\n '[style.--_occupied.px]': 'occupiedWidth()',\n '[style.--_panel.px]': 'panelWidth()',\n },\n template: `\n @if (overlayOpen()) {\n <div class=\"ui-sidebar__scrim\" aria-hidden=\"true\" (click)=\"close()\"></div>\n }\n <div\n #panel\n class=\"ui-sidebar__panel\"\n tabindex=\"-1\"\n [id]=\"panelId\"\n [attr.role]=\"ariaLabel() ? 'region' : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n (keydown.escape)=\"onEscape($event)\"\n >\n <ng-content select=\"[uiSidebarHeader]\" />\n <div class=\"ui-sidebar__content\"><ng-content /></div>\n <ng-content select=\"[uiSidebarFooter]\" />\n @if (canResize()) {\n <div\n class=\"ui-sidebar__resizer\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Redimensionner ' + (ariaLabel() ?? 'la colonne')\"\n [attr.aria-valuenow]=\"width()\"\n [attr.aria-valuemin]=\"minWidth()\"\n [attr.aria-valuemax]=\"maxWidth()\"\n (pointerdown)=\"startResize($event)\"\n (keydown)=\"onResizeKey($event)\"\n ></div>\n }\n </div>\n `,\n styleUrl: './sidebar.css',\n})\nexport class UiSidebar {\n /** Côté de la colonne. */\n readonly position = input<'left' | 'right'>('left');\n /** Comportement : `static`, `push` (pousse le contenu) ou `over` (au-dessus du contenu). */\n readonly mode = input<UiSidebarMode>('push');\n /** État : `open`, `rail` (icônes seules) ou `closed` (liaison `[(state)]`). */\n readonly state = model<UiSidebarState>('open');\n /** État atteint par `toggle()` quand la colonne se replie : rail d'icônes ou masquage complet. */\n readonly collapseTo = input<'rail' | 'closed'>('closed');\n /** Largeur déployée en pixels (liaison `[(width)]`, mise à jour par le redimensionnement). */\n readonly width = model(256);\n /** Largeur du rail en pixels. */\n readonly railWidth = input(64, { transform: numberAttribute });\n /** Largeur ajustable par l'utilisateur (poignée sur le bord intérieur, flèches au clavier). */\n readonly resizable = input(false, { transform: booleanAttribute });\n /** Largeur minimale (px) en redimensionnement. */\n readonly minWidth = input(180, { transform: numberAttribute });\n /** Largeur maximale (px) en redimensionnement. */\n readonly maxWidth = input(480, { transform: numberAttribute });\n /** Nom accessible de la colonne (en fait une région nommée). */\n readonly ariaLabel = input<string>();\n\n private readonly layout = inject(UiLayout, { optional: true });\n private readonly injector = inject(Injector);\n private readonly document = inject(DOCUMENT);\n private readonly panel = viewChild.required<ElementRef<HTMLElement>>('panel');\n /** Identifiant du panneau (pour `aria-controls`). */\n readonly panelId = uniqueId('ui-sidebar');\n /** Tiroir mobile ouvert (indépendant de l'état desktop, conservé). */\n private readonly drawerOpen = signal(false);\n protected readonly resizing = signal(false);\n private returnFocus: HTMLElement | null = null;\n\n /** Le layout est en mode mobile. */\n readonly isMobile = computed(() => this.layout?.isMobile() ?? false);\n\n /** État réellement appliqué (mobile : tiroir ouvert / fermé ; static : jamais masquée). */\n readonly effectiveState = computed<UiSidebarState>(() => {\n if (this.isMobile()) return this.drawerOpen() ? 'open' : 'closed';\n const state = this.state();\n return this.mode() === 'static' && state === 'closed' ? 'open' : state;\n });\n\n /** Colonne réduite aux icônes. */\n readonly isRail = computed(() => this.effectiveState() === 'rail');\n /** Colonne déployée. */\n readonly expanded = computed(() => this.effectiveState() === 'open');\n /** Déployée au-dessus du contenu (tiroir mobile ou mode `over`). */\n readonly overlayOpen = computed(() => this.expanded() && (this.isMobile() || this.mode() === 'over'));\n\n protected readonly canResize = computed(() => this.resizable() && this.expanded() && !this.isMobile());\n\n /** Place réservée dans la mise en page (le panneau peut être plus large en mode `over`). */\n protected readonly occupiedWidth = computed(() => {\n if (this.isMobile()) return 0;\n const state = this.effectiveState();\n if (state === 'closed') return 0;\n if (state === 'rail') return this.railWidth();\n return this.mode() === 'over' ? (this.collapseTo() === 'rail' ? this.railWidth() : 0) : this.width();\n });\n\n protected readonly panelWidth = computed(() => (this.isRail() ? this.railWidth() : this.width()));\n\n constructor() {\n // Ouverture en superposition : focus dans le panneau ; fermeture : focus rendu à l'élément d'origine.\n effect(() => {\n const overlay = this.overlayOpen();\n untracked(() => {\n if (overlay) {\n const active = this.document.activeElement;\n this.returnFocus = active instanceof HTMLElement ? active : null;\n afterNextRender(() => this.panel().nativeElement.focus({ preventScroll: true }), { injector: this.injector });\n } else if (this.returnFocus) {\n const target = this.returnFocus;\n this.returnFocus = null;\n const active = this.document.activeElement;\n if (this.panel().nativeElement.contains(active) || active === this.document.body) {\n target.focus({ preventScroll: true });\n }\n }\n });\n });\n // Passage en mobile : le tiroir démarre fermé.\n effect(() => {\n if (this.isMobile()) untracked(() => this.drawerOpen.set(false));\n });\n }\n\n /** Déploie la colonne. */\n open(): void {\n if (this.isMobile()) this.drawerOpen.set(true);\n else this.state.set('open');\n }\n\n /** Replie la colonne vers `collapseTo` (ferme le tiroir sur mobile). */\n close(): void {\n if (this.isMobile()) this.drawerOpen.set(false);\n else if (this.mode() !== 'static' || this.collapseTo() === 'rail') this.state.set(this.collapseTo());\n }\n\n /** Réduit la colonne aux icônes. */\n rail(): void {\n if (!this.isMobile()) this.state.set('rail');\n }\n\n /** Masque complètement la colonne (sauf `mode=\"static\"`). */\n hide(): void {\n if (this.isMobile()) this.drawerOpen.set(false);\n else if (this.mode() !== 'static') this.state.set('closed');\n }\n\n /** Bascule entre déployée et repliée. */\n toggle(): void {\n if (this.expanded()) this.close();\n else this.open();\n }\n\n protected onEscape(event: Event): void {\n if (this.overlayOpen()) {\n event.stopPropagation();\n this.close();\n }\n }\n\n protected startResize(event: PointerEvent): void {\n if (event.button !== 0) return;\n event.preventDefault();\n const handle = event.currentTarget as HTMLElement;\n handle.setPointerCapture(event.pointerId);\n const panel = this.panel().nativeElement.getBoundingClientRect();\n const left = this.position() === 'left';\n this.resizing.set(true);\n const move = (e: PointerEvent) => this.setWidth(left ? e.clientX - panel.left : panel.right - e.clientX);\n const stop = () => {\n this.resizing.set(false);\n handle.removeEventListener('pointermove', move);\n handle.removeEventListener('pointerup', stop);\n handle.removeEventListener('pointercancel', stop);\n };\n handle.addEventListener('pointermove', move);\n handle.addEventListener('pointerup', stop);\n handle.addEventListener('pointercancel', stop);\n }\n\n protected onResizeKey(event: KeyboardEvent): void {\n const step = event.shiftKey ? 64 : 16;\n const grow = this.position() === 'left' ? 'ArrowRight' : 'ArrowLeft';\n const shrink = this.position() === 'left' ? 'ArrowLeft' : 'ArrowRight';\n const changes: Record<string, number> = {\n [grow]: this.width() + step,\n [shrink]: this.width() - step,\n Home: this.minWidth(),\n End: this.maxWidth(),\n };\n if (event.key in changes) {\n event.preventDefault();\n this.setWidth(changes[event.key]);\n }\n }\n\n private setWidth(width: number): void {\n this.width.set(Math.round(Math.min(this.maxWidth(), Math.max(this.minWidth(), width))));\n }\n}\n\n/** Contenu du haut de colonne (`<div uiSidebarHeader>`). */\n@Directive({\n selector: '[uiSidebarHeader]',\n host: { class: 'ui-sidebar__header', style: 'display:flex;align-items:center;gap:var(--ui-space-2);min-height:3.5rem;padding:0 var(--ui-space-3);flex:none' },\n})\nexport class UiSidebarHeader {}\n\n/** Contenu du bas de colonne (`<div uiSidebarFooter>`). */\n@Directive({\n selector: '[uiSidebarFooter]',\n host: { class: 'ui-sidebar__footer', style: 'display:flex;flex-direction:column;gap:var(--ui-space-1);padding:var(--ui-space-2);border-top:1px solid var(--ui-color-border);flex:none' },\n})\nexport class UiSidebarFooter {}\n\n/**\n * Bouton qui déploie / replie une colonne et expose son état (`aria-expanded`, `aria-controls`).\n *\n * ```html\n * <button uiButton iconOnly icon=\"lucide:menu\" aria-label=\"Menu\" [uiSidebarToggle]=\"nav\"></button>\n * <ui-sidebar #nav>…</ui-sidebar>\n * ```\n */\n@Directive({\n selector: '[uiSidebarToggle]',\n host: {\n '(click)': 'sidebar().toggle()',\n '[attr.aria-expanded]': 'sidebar().expanded()',\n '[attr.aria-controls]': 'sidebar().panelId',\n },\n})\nexport class UiSidebarToggle {\n /** Colonne pilotée. */\n readonly sidebar = input.required<UiSidebar>({ alias: 'uiSidebarToggle' });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n inject,\n input,\n numberAttribute,\n signal,\n} from '@angular/core';\nimport { UiSidebar } from './sidebar';\n\n/** En-tête du layout, sur toute la largeur (`<header uiLayoutHeader>`). */\n@Directive({\n selector: '[uiLayoutHeader]',\n host: {\n class: 'ui-layout__header',\n style:\n 'display:flex;align-items:center;gap:var(--ui-space-3);min-height:3.5rem;padding:0 var(--ui-space-4);border-bottom:1px solid var(--ui-color-border);background:var(--ui-color-surface);position:relative;z-index:3',\n },\n})\nexport class UiLayoutHeader {}\n\n/** Pied du layout, sur toute la largeur (`<footer uiLayoutFooter>`). */\n@Directive({\n selector: '[uiLayoutFooter]',\n host: {\n class: 'ui-layout__footer',\n style:\n 'display:flex;align-items:center;gap:var(--ui-space-3);min-height:2.75rem;padding:0 var(--ui-space-4);border-top:1px solid var(--ui-color-border);background:var(--ui-color-surface);font-size:var(--ui-font-size-sm);color:var(--ui-color-text-muted)',\n },\n})\nexport class UiLayoutFooter {}\n\n/**\n * Structure de page sur toute la hauteur : en-tête et pied facultatifs, colonnes `ui-sidebar` à gauche\n * et / ou à droite, et une zone de contenu qui défile seule, en largeur fixe centrée ou pleine largeur.\n *\n * Sous `breakpoint` (largeur du layout, pas de l'écran), les colonnes deviennent des tiroirs au-dessus du contenu ;\n * pendant qu'un tiroir est ouvert, le contenu est rendu inactif (`inert`).\n *\n * @slot [uiLayoutHeader] - En-tête sur toute la largeur.\n * @slot ui-app-bar - Barre d'application, placée comme l'en-tête (au-dessus des colonnes).\n * @slot ui-sidebar - Colonnes latérales (gauche, droite ou les deux).\n * @slot default - Contenu de la page.\n * @slot [uiLayoutFooter] - Pied sur toute la largeur.\n * @cssprop --ui-layout-content-max - Largeur maximale du contenu en mode `fixed` (défaut : `72rem`).\n * @cssprop --ui-layout-gutter - Marge autour du contenu (défaut : `--ui-space-6`, `--ui-space-4` sur mobile).\n * @category Mise en page\n */\n@Component({\n selector: 'ui-layout',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-layout',\n '[class.ui-layout--fullscreen]': 'fullscreen()',\n '[class.ui-layout--mobile]': 'isMobile()',\n },\n template: `\n <ng-content select=\"[uiLayoutHeader], ui-app-bar\" />\n <div class=\"ui-layout__body\">\n <ng-content select=\"ui-sidebar\" />\n <div\n class=\"ui-layout__main\"\n [attr.role]=\"landmarks() ? 'main' : 'region'\"\n [attr.aria-label]=\"landmarks() ? null : contentLabel()\"\n [attr.inert]=\"overlayOpen() ? '' : null\"\n tabindex=\"0\"\n >\n <div class=\"ui-layout__content\" [class.ui-layout__content--fixed]=\"content() === 'fixed'\">\n <ng-content />\n </div>\n </div>\n </div>\n <ng-content select=\"[uiLayoutFooter]\" />\n `,\n styleUrl: './layout.css',\n})\nexport class UiLayout {\n /** Occupe toute la hauteur de l'écran (`100dvh`). Sinon, la hauteur du parent. */\n readonly fullscreen = input(true, { transform: booleanAttribute });\n /** Largeur du contenu : `fixed` (centrée, limitée à `--ui-layout-content-max`) ou `full`. */\n readonly content = input<'fixed' | 'full'>('full');\n /** Largeur du layout (px) sous laquelle les colonnes deviennent des tiroirs mobiles. */\n readonly breakpoint = input(768, { transform: numberAttribute });\n /** Ajoute le rôle `main` à la zone de contenu (désactivez-le si la page a déjà un `<main>`). */\n readonly landmarks = input(true, { transform: booleanAttribute });\n /** Nom de la zone de contenu quand `landmarks` est désactivé (région nommée). */\n readonly contentLabel = input('Contenu');\n\n private readonly sidebars = contentChildren(forwardRef(() => UiSidebar));\n private readonly width = signal<number | null>(null);\n\n /** `true` quand le layout est plus étroit que `breakpoint`. */\n readonly isMobile = computed(() => {\n const width = this.width();\n return width !== null && width < this.breakpoint();\n });\n\n /** Une colonne est ouverte au-dessus du contenu (tiroir mobile ou mode `over`). */\n readonly overlayOpen = computed(() => this.sidebars().some((sidebar) => sidebar.overlayOpen()));\n\n constructor() {\n const host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n const destroyRef = inject(DestroyRef);\n // Largeur nulle (conteneur masqué, onglet inactif…) = pas encore mesurable : on ne bascule pas en mobile.\n const measure = (width: number) => {\n if (width > 0) this.width.set(width);\n };\n afterNextRender(() => {\n measure(host.getBoundingClientRect().width);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => measure(entry.contentRect.width));\n observer.observe(host);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /** @internal Largeur forcée (tests). */\n setWidthForTesting(width: number): void {\n this.width.set(width);\n }\n}\n","import { InjectionToken, Signal } from '@angular/core';\n\n/**\n * Conteneur capable de replier les menus horizontaux (barre d'application en mode compact).\n * Fourni par `ui-app-bar` ; lu par `ui-menu`, qui passe alors en vertical.\n * @internal\n */\nexport const UI_MENU_HOST = new InjectionToken<{ readonly compact: Signal<boolean> }>('UI_MENU_HOST');\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n effect,\n inject,\n Signal,\n input,\n model,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UiIcon } from '../icon/icon';\nimport { UiSidebar } from '../layout/sidebar';\nimport { UI_MENU_HOST } from './menu-host';\n\n/** Disposition d'un menu : liste verticale (colonne, tiroir) ou barre horizontale (en-tête). */\nexport type UiMenuOrientation = 'vertical' | 'horizontal';\n\n/** Position d'un sous-menu flottant : sous son bouton ou à côté. `auto` choisit selon le contexte. */\nexport type UiSubmenuPlacement = 'auto' | 'below' | 'side';\n\nconst ITEM_SELECTOR = '.ui-menu-item, .ui-submenu__trigger';\n\n/** Sous-menus par élément hôte (navigation clavier déléguée). */\nconst SUBMENUS = new WeakMap<Element, UiSubmenu>();\n\n/** Popover ouvert (faux si l'API popover n'existe pas : vieux navigateur, environnement de test). */\nfunction popoverOpen(panel: HTMLElement): boolean {\n try {\n return panel.matches(':popover-open');\n } catch {\n return false;\n }\n}\n\n/** L'élément est un popover utilisable. */\nfunction canPopover(panel: HTMLElement): boolean {\n return panel.hasAttribute('popover') && typeof panel.showPopover === 'function';\n}\n\nconst supportsAnchor = (): boolean => typeof CSS !== 'undefined' && !!CSS.supports?.('position-area: block-end');\n\n/**\n * Menu de navigation (landmark `navigation`), vertical ou horizontal, sur plusieurs niveaux avec `ui-submenu`.\n *\n * - **Vertical** (colonne, tiroir) : les sous-menus se déplient sur place, en accordéon. Dans une `ui-sidebar`\n * réduite en rail, seuls les icônes restent et les sous-menus s'ouvrent à côté de la colonne.\n * - **Horizontal** (en-tête, `ui-app-bar`) : le premier niveau s'ouvre sous l'élément, les niveaux suivants à côté.\n * Dans une `ui-app-bar` repliée (petite largeur), le menu repasse en vertical.\n *\n * Clavier : flèches entre les éléments du niveau (gauche / droite en horizontal, haut / bas en vertical), Origine / Fin,\n * flèche vers le sous-menu pour l'ouvrir, flèche inverse ou Échap pour le refermer. La touche Tab parcourt les liens\n * normalement (motif « disclosure navigation » : pas de rôles `menu`, adaptés aux applications de bureau).\n *\n * @slot default - Éléments `uiMenuItem`, sous-menus `ui-submenu` et groupes `ui-menu-group`.\n * @cssprop --ui-menu-color - Couleur du texte des éléments (défaut : `--ui-color-text-muted`).\n * @cssprop --ui-menu-active-bg - Fond de l'élément courant (défaut : `--ui-color-primary-subtle`).\n * @cssprop --ui-menu-active-color - Texte de l'élément courant (défaut : `--ui-color-primary-text`).\n * @cssprop --ui-menu-indicator - Barre de l'élément courant (défaut : `--ui-color-primary`).\n * @category Navigation\n */\n@Component({\n selector: 'ui-menu',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-menu',\n '[class.ui-menu--vertical]': '!horizontal()',\n '[class.ui-menu--horizontal]': 'horizontal()',\n '[class.ui-menu--rail]': 'rail()',\n '[attr.role]': 'landmark() ? \"navigation\" : \"group\"',\n '[attr.aria-label]': 'ariaLabel()',\n '(keydown)': 'onKeydown($event)',\n },\n template: `<ng-content />`,\n styles: `\n :host { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n :host(.ui-menu--horizontal) { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: var(--ui-space-1); }\n `,\n})\nexport class UiMenu {\n /** Nom du menu pour les lecteurs d'écran (« Navigation principale »…). */\n readonly ariaLabel = input('Menu');\n /** Disposition : `vertical` (défaut) ou `horizontal`. */\n readonly orientation = input<UiMenuOrientation>('vertical');\n /** Ouvre aussi les sous-menus flottants au survol (le clic et le clavier fonctionnent toujours). */\n readonly openOnHover = input(false, { transform: booleanAttribute });\n /** Landmark `navigation`. Désactivez-le pour un menu d'actions ou s'il est déjà dans un `<nav>` (rôle `group`). */\n readonly landmark = input(true, { transform: booleanAttribute });\n\n private readonly sidebar = inject(UiSidebar, { optional: true });\n private readonly menuHost = inject(UI_MENU_HOST, { optional: true });\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n /** Le menu est dans la zone de navigation d'une `ui-app-bar` (pas dans ses actions). */\n private readonly inCollapsibleNav = signal(false);\n\n /** Disposition appliquée (verticale dans une barre d'application repliée). */\n readonly effectiveOrientation = computed<UiMenuOrientation>(() =>\n this.inCollapsibleNav() && this.menuHost?.compact() ? 'vertical' : this.orientation(),\n );\n /** @internal */\n readonly horizontal = computed(() => this.effectiveOrientation() === 'horizontal');\n /** @internal Colonne réduite en rail : icônes seules, sous-menus à côté. */\n readonly rail = computed(() => !this.horizontal() && (this.sidebar?.isRail() ?? false));\n\n constructor() {\n if (this.menuHost) {\n afterNextRender(() => this.inCollapsibleNav.set(!!this.host.parentElement?.closest('.ui-app-bar__nav')));\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (handleMenuKeydown(event, this.host, this.horizontal(), true)) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n}\n\n/**\n * Groupe d'éléments de menu avec un titre. En rail, le titre laisse place à un séparateur.\n *\n * @slot default - Éléments `uiMenuItem` et sous-menus `ui-submenu`.\n */\n@Component({\n selector: 'ui-menu-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n '[attr.aria-labelledby]': 'labelId',\n class: 'ui-menu-group',\n '[class.ui-menu-group--rail]': 'rail()',\n },\n template: `\n <span class=\"ui-menu-group__label\" [id]=\"labelId\">{{ label() }}</span>\n <ng-content />\n `,\n styles: `\n :host { display: flex; flex-direction: column; gap: 2px; margin-top: var(--ui-space-3); }\n :host > .ui-menu-group__label {\n padding: var(--ui-space-1) var(--ui-space-3);\n font-size: var(--ui-font-size-xs);\n font-weight: var(--ui-font-weight-bold);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--ui-color-text-subtle);\n white-space: nowrap;\n overflow: hidden;\n }\n /* Rail : titre masqué visuellement (toujours nom du groupe), remplacé par un trait. */\n :host(.ui-menu-group--rail) > .ui-menu-group__label {\n height: 1px;\n margin: var(--ui-space-2) var(--ui-space-3);\n padding: 0;\n background: var(--ui-color-border);\n color: transparent;\n }\n `,\n})\nexport class UiMenuGroup {\n /** Titre du groupe. */\n readonly label = input.required<string>();\n protected readonly labelId = uniqueId('ui-menu-group');\n private readonly menu = inject(UiMenu, { optional: true });\n private readonly submenu = inject(forwardSubmenu(), { optional: true });\n private readonly sidebar = inject(UiSidebar, { optional: true });\n protected readonly rail = computed(() => !this.submenu && (this.menu ? this.menu.rail() : (this.sidebar?.isRail() ?? false)));\n}\n\n/**\n * Sous-menu : un bouton qui déplie une liste d'éléments, imbricable sur autant de niveaux que nécessaire.\n *\n * Dans un `ui-menu` vertical, il se déplie sur place (et s'ouvre tout seul s'il contient la page courante) ;\n * dans un menu horizontal, un rail ou utilisé seul (bouton de menu dans une `ui-toolbar`), il s'ouvre en panneau\n * flottant (popover natif : couche supérieure, clic extérieur et Échap). Le bouton porte `aria-expanded` et indique\n * quand la page courante est dans le sous-menu.\n *\n * ```html\n * <ui-submenu label=\"Produits\" icon=\"lucide:box\">\n * <a uiMenuItem routerLink=\"/produits/nouveautes\">Nouveautés</a>\n * <ui-submenu label=\"Catalogue\">…</ui-submenu>\n * </ui-submenu>\n * ```\n *\n * @slot default - Éléments `uiMenuItem`, sous-menus `ui-submenu` et groupes `ui-menu-group`.\n * @slot [uiMenuBadge] - Compteur affiché sur le bouton du sous-menu.\n */\n@Component({\n selector: 'ui-submenu',\n imports: [UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-submenu',\n '[class.ui-submenu--inline]': '!flyout()',\n '[class.ui-submenu--flyout]': 'flyout()',\n '[class.ui-submenu--below]': 'flyout() && resolvedPlacement() === \"below\"',\n '[class.ui-submenu--side]': 'flyout() && resolvedPlacement() === \"side\"',\n '[class.ui-submenu--top]': 'isTop()',\n '[class.ui-submenu--rail]': 'rail()',\n '[class.ui-submenu--standalone]': 'standalone',\n '[class.ui-submenu--open]': 'expanded()',\n '[class.ui-submenu--current]': 'hasActive() && (flyout() || !expanded())',\n '(mouseenter)': 'onHover(true)',\n '(mouseleave)': 'onHover(false)',\n '(keydown)': 'onHostKeydown($event)',\n },\n template: `\n <button\n #trigger\n type=\"button\"\n class=\"ui-submenu__trigger\"\n [id]=\"triggerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"panelId\"\n [attr.popovertarget]=\"flyout() ? panelId : null\"\n [attr.title]=\"rail() ? label() : null\"\n [style.anchor-name]=\"anchorName\"\n (click)=\"onTriggerClick()\"\n >\n @if (icon(); as name) {\n <ui-icon class=\"ui-submenu__icon\" [name]=\"name\" />\n } @else if (rail()) {\n <span class=\"ui-submenu__initial\" aria-hidden=\"true\">{{ label().charAt(0) }}</span>\n }\n <span class=\"ui-submenu__label\">{{ label() }}</span>\n <span class=\"ui-submenu__badge\"><ng-content select=\"[uiMenuBadge]\" /></span>\n <svg class=\"ui-submenu__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"m9 6 6 6-6 6\" />\n </svg>\n </button>\n <div\n #panel\n class=\"ui-submenu__panel\"\n role=\"group\"\n [id]=\"panelId\"\n [class.ui-submenu__panel--flyout]=\"flyout()\"\n [attr.aria-labelledby]=\"triggerId\"\n [attr.popover]=\"flyout() ? 'auto' : null\"\n [hidden]=\"!flyout() && !expanded()\"\n [style.position-anchor]=\"anchorName\"\n (toggle)=\"onToggle($event)\"\n (keydown.escape)=\"onEscape($event)\"\n >\n <ng-content />\n </div>\n `,\n styleUrl: './submenu.css',\n})\nexport class UiSubmenu {\n /** Libellé du bouton. */\n readonly label = input.required<string>();\n /** Icône (`préfixe:nom`, voir `provideUiIcons()`) : indispensable pour un affichage en rail lisible. */\n readonly icon = input<string>();\n /** Désactive le sous-menu. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Sous-menu ouvert (liaison bidirectionnelle `[(expanded)]`). */\n readonly expanded = model(false);\n /** Position du panneau flottant : `auto` (sous le bouton au premier niveau d'un menu horizontal, à côté sinon). */\n readonly placement = input<UiSubmenuPlacement>('auto');\n\n private readonly menu = inject(UiMenu, { optional: true });\n private readonly parent = inject(UiSubmenu, { optional: true, skipSelf: true });\n private readonly injector = inject(Injector);\n private readonly document = inject(DOCUMENT);\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly triggerRef = viewChild.required<ElementRef<HTMLButtonElement>>('trigger');\n private readonly panelRef = viewChild.required<ElementRef<HTMLElement>>('panel');\n\n protected readonly triggerId = uniqueId('ui-submenu');\n protected readonly panelId = `${this.triggerId}-panel`;\n protected readonly anchorName = `--${this.triggerId}`;\n /** Bouton de menu autonome (hors `ui-menu`) : apparence de bouton, clavier propre. */\n protected readonly standalone = !this.menu && !this.parent;\n /** Niveau d'imbrication (0 = premier niveau). */\n readonly depth: number = this.parent ? this.parent.depth + 1 : 0;\n /** Le sous-menu contient l'élément courant (`aria-current=\"page\"`, `.is-active`, `active`). */\n readonly hasActive = signal(false);\n /** Dans une `ui-toolbar` verticale (panneau à côté plutôt que dessous). */\n private readonly inVerticalToolbar = signal(false);\n private hoverTimer: ReturnType<typeof setTimeout> | undefined;\n private removeFallbackListeners: (() => void) | null = null;\n\n /** Panneau flottant (popover) plutôt que dépliage sur place. */\n readonly flyout: Signal<boolean> = computed((): boolean => {\n if (this.parent) return this.parent.flyout();\n return !this.menu || this.menu.horizontal() || this.menu.rail();\n });\n /** @internal Premier niveau d'un menu horizontal. */\n readonly isTop = computed(() => !this.parent && !!this.menu?.horizontal());\n protected readonly rail = computed(() => !this.parent && !!this.menu?.rail());\n /** @internal Position appliquée. */\n readonly resolvedPlacement = computed<'below' | 'side'>(() => {\n const wanted = this.placement();\n if (wanted !== 'auto') return wanted;\n if (this.parent) return 'side';\n if (this.menu) return this.menu.horizontal() ? 'below' : 'side';\n return this.inVerticalToolbar() ? 'side' : 'below';\n });\n\n constructor() {\n SUBMENUS.set(this.host, this);\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n this.inVerticalToolbar.set(!!this.host.closest('[role=\"toolbar\"][aria-orientation=\"vertical\"]'));\n const panel = this.panelRef().nativeElement;\n const check = () =>\n this.hasActive.set(!!panel.querySelector('[aria-current=\"page\"], .is-active, .ui-menu-item--active'));\n check();\n if (typeof MutationObserver === 'undefined') return;\n const observer = new MutationObserver(check);\n observer.observe(panel, { subtree: true, childList: true, attributes: true, attributeFilter: ['aria-current', 'class'] });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n destroyRef.onDestroy(() => {\n clearTimeout(this.hoverTimer);\n this.removeFallbackListeners?.();\n });\n\n // Dépliage sur place : s'ouvre quand il contient (ou vient à contenir) la page courante.\n let hadActive = false;\n effect(() => {\n const active = this.hasActive();\n if (active && !hadActive && !this.flyout()) untracked(() => this.expanded.set(true));\n hadActive = active;\n });\n\n // Changement de mode (barre repliée, rail…) : on repart fermé pour ne pas ouvrir un panneau flottant à l'improviste.\n let wasFlyout: boolean | undefined;\n effect(() => {\n const flyout = this.flyout();\n if (wasFlyout !== undefined && wasFlyout !== flyout) untracked(() => this.expanded.set(false));\n wasFlyout = flyout;\n });\n\n // `[(expanded)]` piloté de l'extérieur → état du popover.\n afterRenderEffect(() => {\n const wanted = this.expanded();\n if (!this.flyout()) return;\n untracked(() => {\n const panel = this.panelRef().nativeElement;\n if (!canPopover(panel)) return;\n const open = popoverOpen(panel);\n if (wanted && !open) panel.showPopover();\n else if (!wanted && open) panel.hidePopover();\n });\n });\n }\n\n /** Ouvre le sous-menu ; `focus` place le focus sur son premier ou dernier élément. */\n open(focus?: 'first' | 'last'): void {\n if (this.disabled()) return;\n const panel = this.panelRef().nativeElement;\n if (this.flyout() && canPopover(panel)) {\n if (!popoverOpen(panel)) panel.showPopover();\n } else {\n this.expanded.set(true);\n }\n if (focus) afterNextRender(() => this.focusItem(focus), { injector: this.injector });\n }\n\n /** Ferme le sous-menu (et ses sous-menus) ; `restoreFocus` remet le focus sur son bouton. */\n close(restoreFocus = false): void {\n const panel = this.panelRef().nativeElement;\n if (this.flyout() && popoverOpen(panel)) panel.hidePopover();\n this.expanded.set(false);\n if (restoreFocus) this.focusTrigger();\n }\n\n /** Ouvre ou ferme le sous-menu. */\n toggle(): void {\n if (this.expanded()) this.close();\n else this.open();\n }\n\n /** @internal */\n focusTrigger(): void {\n this.triggerRef().nativeElement.focus({ preventScroll: true });\n }\n\n /** @internal */\n focusItem(which: 'first' | 'last'): void {\n const items = levelItems(this.panelRef().nativeElement);\n (which === 'first' ? items[0] : items.at(-1))?.focus();\n }\n\n /** @internal Bouton du sous-menu. */\n get triggerElement(): HTMLElement {\n return this.triggerRef().nativeElement;\n }\n\n /** @internal Ferme toute la cascade de panneaux flottants (après le choix d'un élément). */\n closeCascade(): void {\n if (this.flyout()) this.flyoutRoot().close();\n }\n\n private flyoutRoot(): UiSubmenu {\n return this.parent?.flyout() ? this.parent.flyoutRoot() : this;\n }\n\n protected onTriggerClick(): void {\n // En panneau flottant, `popovertarget` gère l'ouverture (et le clic qui referme un panneau déjà ouvert).\n if (!this.flyout()) this.expanded.update((open) => !open);\n }\n\n protected onToggle(event: Event): void {\n const open = (event as ToggleEvent).newState === 'open';\n this.expanded.set(open);\n if (open) {\n this.placeWithoutAnchorSupport();\n return;\n }\n this.removeFallbackListeners?.();\n // Fermeture alors que le focus était dans le panneau (Échap, élément choisi, clic dans le vide) : retour au bouton.\n const active = this.document.activeElement;\n if (!active || active === this.document.body || this.panelRef().nativeElement.contains(active)) {\n this.focusTrigger();\n }\n }\n\n protected onEscape(event: Event): void {\n if (!this.flyout() || !this.expanded()) return;\n event.preventDefault();\n event.stopPropagation();\n this.close(true);\n }\n\n protected onHover(enter: boolean): void {\n if (!this.flyout() || this.disabled() || !this.menu?.openOnHover()) return;\n clearTimeout(this.hoverTimer);\n this.hoverTimer = setTimeout(() => (enter ? this.open() : this.close()), enter ? 120 : 300);\n }\n\n protected onHostKeydown(event: KeyboardEvent): void {\n // Sous-menu autonome (bouton de menu) : il gère lui-même le clavier de sa cascade.\n if (!this.standalone) return;\n if (handleMenuKeydown(event, this.host, this.resolvedPlacement() === 'below', false)) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Sans ancrage CSS : position calculée à l'ouverture, panneau refermé au défilement / redimensionnement. */\n private placeWithoutAnchorSupport(): void {\n if (supportsAnchor()) return;\n const view = this.document.defaultView;\n if (!view) return;\n const panel = this.panelRef().nativeElement;\n const anchor = this.triggerRef().nativeElement.getBoundingClientRect();\n const box = panel.getBoundingClientRect();\n const margin = 8;\n let top: number;\n let left: number;\n if (this.resolvedPlacement() === 'below') {\n top = anchor.bottom + 4;\n left = Math.min(anchor.left, view.innerWidth - box.width - margin);\n if (top + box.height > view.innerHeight && anchor.top - box.height > margin) top = anchor.top - box.height - 4;\n } else {\n left = anchor.right + 2;\n if (left + box.width > view.innerWidth) left = anchor.left - box.width - 2;\n top = Math.min(anchor.top - 4, view.innerHeight - box.height - margin);\n }\n Object.assign(panel.style, {\n inset: 'auto',\n margin: '0',\n top: `${Math.max(margin, top)}px`,\n left: `${Math.max(margin, left)}px`,\n });\n const dismiss = (event: Event) => {\n if (!(event.target instanceof Node && panel.contains(event.target))) this.close();\n };\n view.addEventListener('scroll', dismiss, true);\n view.addEventListener('resize', dismiss);\n this.removeFallbackListeners = () => {\n view.removeEventListener('scroll', dismiss, true);\n view.removeEventListener('resize', dismiss);\n this.removeFallbackListeners = null;\n };\n }\n}\n\n/** Référence différée (UiMenuGroup est déclaré avant UiSubmenu). */\nfunction forwardSubmenu(): typeof UiSubmenu {\n return UiSubmenu;\n}\n\n/**\n * Élément de menu, sur un lien ou un bouton natif (`<a uiMenuItem routerLink=\"/\">`).\n * Avec le routeur : `routerLinkActive=\"is-active\" ariaCurrentWhenActive=\"page\"`, ou l'input `active`.\n * En rail, le libellé est masqué visuellement (toujours lu par les lecteurs d'écran) et affiché en infobulle ;\n * sans icône, l'initiale du libellé est affichée. Choisir un élément d'un panneau flottant referme la cascade.\n *\n * @slot default - Libellé.\n * @slot [uiMenuBadge] - Compteur ou badge en fin de ligne (masqué en rail).\n */\n@Component({\n // Sélecteur d'attribut volontaire : on garde le lien / bouton natif (navigation, clavier, routeur).\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'a[uiMenuItem], button[uiMenuItem]',\n imports: [UiIcon],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-menu-item',\n '[class.ui-menu-item--active]': 'active()',\n '[class.ui-menu-item--rail]': 'rail()',\n '[class.ui-menu-item--top]': 'top()',\n '[attr.aria-current]': 'active() ? \"page\" : null',\n '[attr.title]': 'rail() ? text() : null',\n '(click)': 'onClick()',\n },\n template: `\n @if (icon(); as name) {\n <ui-icon class=\"ui-menu-item__icon\" [name]=\"name\" />\n } @else if (rail()) {\n <span class=\"ui-menu-item__initial\" aria-hidden=\"true\">{{ text().charAt(0) }}</span>\n }\n <span class=\"ui-menu-item__label\"><ng-content /></span>\n <span class=\"ui-menu-item__badge\"><ng-content select=\"[uiMenuBadge]\" /></span>\n `,\n styleUrl: './menu-item.css',\n})\nexport class UiMenuItem {\n /** Icône (`préfixe:nom`, voir `provideUiIcons()`) : indispensable pour un affichage en rail lisible. */\n readonly icon = input<string>();\n /** Élément courant (`aria-current=\"page\"`). Inutile avec `routerLinkActive` + `ariaCurrentWhenActive`. */\n readonly active = input(false, { transform: booleanAttribute });\n\n private readonly sidebar = inject(UiSidebar, { optional: true });\n private readonly menu = inject(UiMenu, { optional: true });\n private readonly submenu = inject(UiSubmenu, { optional: true });\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n protected readonly rail = computed(() => !this.submenu && (this.menu ? this.menu.rail() : (this.sidebar?.isRail() ?? false)));\n /** Premier niveau d'un menu horizontal (indicateur sous l'élément). */\n protected readonly top = computed(() => !this.submenu && !!this.menu?.horizontal());\n protected readonly text = signal('');\n\n constructor() {\n afterNextRender(() => {\n this.text.set(this.host.querySelector('.ui-menu-item__label')?.textContent?.trim() ?? '');\n });\n }\n\n protected onClick(): void {\n this.submenu?.closeCascade();\n }\n}\n\n/** Éléments navigables d'un niveau : ceux du conteneur, hors panneaux flottants imbriqués et sous-menus repliés. */\nfunction levelItems(container: HTMLElement): HTMLElement[] {\n return Array.from(container.querySelectorAll<HTMLElement>(ITEM_SELECTOR)).filter((el) => {\n const flyPanel = el.parentElement?.closest('.ui-submenu__panel--flyout');\n if (flyPanel && flyPanel !== container && container.contains(flyPanel)) return false;\n const hidden = el.closest('[hidden]');\n if (hidden && container.contains(hidden)) return false;\n return !(el as HTMLButtonElement).disabled && el.getAttribute('aria-disabled') !== 'true';\n });\n}\n\n/**\n * Clavier d'un menu (délégué depuis sa racine). Renvoie `true` si la touche a été traitée.\n * `navigateRoot` = les flèches parcourent le premier niveau (faux pour un bouton de menu autonome, qui laisse\n * ces touches à la barre d'outils qui le contient).\n */\nfunction handleMenuKeydown(event: KeyboardEvent, root: HTMLElement, rootHorizontal: boolean, navigateRoot: boolean): boolean {\n if (event.altKey || event.ctrlKey || event.metaKey) return false;\n const target = event.target as HTMLElement;\n if (!target.matches?.(ITEM_SELECTOR)) return false;\n\n const panel = target.parentElement?.closest<HTMLElement>('.ui-submenu__panel--flyout');\n const container = panel && root.contains(panel) ? panel : root;\n const horizontal = container === root && rootHorizontal;\n const rtl = getComputedStyle(container).direction === 'rtl';\n const [left, right] = rtl ? ['ArrowRight', 'ArrowLeft'] : ['ArrowLeft', 'ArrowRight'];\n const next = horizontal ? right : 'ArrowDown';\n const previous = horizontal ? left : 'ArrowUp';\n const enter = horizontal ? 'ArrowDown' : right;\n const leave = horizontal ? null : left;\n const key = event.key;\n\n if (container === root && !navigateRoot && [next, previous, 'Home', 'End'].includes(key)) return false;\n\n const items = levelItems(container);\n const index = items.indexOf(target);\n switch (key) {\n case next:\n items[(index + 1) % items.length]?.focus();\n return true;\n case previous:\n items[(index - 1 + items.length) % items.length]?.focus();\n return true;\n case 'Home':\n items[0]?.focus();\n return true;\n case 'End':\n items.at(-1)?.focus();\n return true;\n }\n\n const submenu = target.classList.contains('ui-submenu__trigger') && target.parentElement ? SUBMENUS.get(target.parentElement) : undefined;\n if (submenu && !submenu.disabled()) {\n if (key === enter) {\n if (submenu.flyout() || !submenu.expanded()) submenu.open('first');\n else submenu.focusItem('first');\n return true;\n }\n if (horizontal && key === 'ArrowUp') {\n submenu.open('last');\n return true;\n }\n if (key === leave && !submenu.flyout() && submenu.expanded()) {\n submenu.close();\n return true;\n }\n }\n\n if (container !== root && container.parentElement) {\n const owner = SUBMENUS.get(container.parentElement);\n // Panneau sous un élément de la barre : gauche / droite passent au voisin de la barre (comme une barre de menus).\n if (owner?.isTop() && (key === leave || (key === enter && !submenu))) {\n owner.close();\n const tops = levelItems(root);\n const position = tops.indexOf(owner.triggerElement);\n tops[(position + (key === leave ? -1 : 1) + tops.length) % tops.length]?.focus();\n return true;\n }\n if (owner && key === leave) {\n owner.close(true);\n return true;\n }\n } else if (key === leave) {\n // Dans un sous-menu déplié sur place : retour au bouton parent.\n const inlinePanel = target.parentElement?.closest<HTMLElement>('.ui-submenu__panel');\n const owner = inlinePanel && root.contains(inlinePanel) && inlinePanel.parentElement ? SUBMENUS.get(inlinePanel.parentElement) : undefined;\n if (owner) {\n owner.focusTrigger();\n return true;\n }\n }\n return false;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n forwardRef,\n effect,\n inject,\n input,\n numberAttribute,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UI_MENU_HOST } from '../menu/menu-host';\n\n/** Couleur de la barre : surface neutre ou couleur principale du thème. */\nexport type UiAppBarColor = 'surface' | 'primary';\n\n/** Début de la barre : logo, nom de l'application, bouton de colonne (`<a uiAppBarStart routerLink=\"/\">`). */\n@Directive({ selector: '[uiAppBarStart]', host: { class: 'ui-app-bar__slot-start' } })\nexport class UiAppBarStart {}\n\n/** Fin de la barre : actions, recherche, profil (`<div uiAppBarEnd>`). Toujours visible, même repliée. */\n@Directive({ selector: '[uiAppBarEnd]', host: { class: 'ui-app-bar__slot-end' } })\nexport class UiAppBarEnd {}\n\n/**\n * Barre d'application : marque au début, navigation (souvent un `ui-menu orientation=\"horizontal\"`), actions à la fin.\n *\n * Elle s'intègre dans un `ui-layout` (placée directement dedans, elle prend la place de l'en-tête, au-dessus des\n * colonnes) ou en haut de n'importe quelle page (`sticky` pour rester visible au défilement).\n *\n * Sous `breakpoint` (largeur de la barre, pas de l'écran), la navigation se replie derrière un bouton ☰\n * (`aria-expanded`) et s'affiche dans un panneau sous la barre ; les menus qu'elle contient passent en vertical,\n * leurs sous-menus se dépliant sur place. Échap, un clic à l'extérieur ou le choix d'un lien referment le panneau.\n *\n * @slot [uiAppBarStart] - Début de la barre (logo, titre, bouton de colonne).\n * @slot default - Navigation : repliée derrière le bouton ☰ sur petite largeur.\n * @slot [uiAppBarEnd] - Fin de la barre (actions, profil), toujours visible.\n * @cssprop --ui-app-bar-height - Hauteur minimale (défaut : `3.5rem`).\n * @cssprop --ui-app-bar-padding - Marge intérieure horizontale (défaut : `--ui-space-4`).\n * @cssprop --ui-app-bar-z - Niveau d'empilement, pour passer au-dessus du contenu (défaut : `3`).\n * @category Mise en page\n */\n@Component({\n selector: 'ui-app-bar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // Encapsulation désactivée (classes préfixées ui-app-bar) : la couleur `primary` doit rétablir les couleurs\n // d'origine dans les panneaux flottants et champs projetés, rendus par d'autres composants.\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: UI_MENU_HOST, useExisting: forwardRef(() => UiAppBar) }],\n host: {\n class: 'ui-app-bar',\n '[class.ui-app-bar--primary]': 'color() === \"primary\"',\n '[class.ui-app-bar--elevated]': 'elevated()',\n '[class.ui-app-bar--sticky]': 'sticky()',\n '[class.ui-app-bar--compact]': 'compact()',\n '[attr.role]': 'landmark() ? \"banner\" : null',\n '(document:pointerdown)': 'onDocumentPointerDown($event)',\n },\n template: `\n <div class=\"ui-app-bar__bar\">\n <div class=\"ui-app-bar__start\"><ng-content select=\"[uiAppBarStart]\" /></div>\n @if (compact() && hasNav()) {\n <button\n #toggle\n type=\"button\"\n class=\"ui-app-bar__toggle\"\n [attr.aria-expanded]=\"navOpen()\"\n [attr.aria-controls]=\"navId\"\n [attr.aria-label]=\"menuLabel()\"\n (click)=\"toggleNav()\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n @if (navOpen()) {\n <path d=\"M18 6 6 18M6 6l12 12\" />\n } @else {\n <path d=\"M4 7h16M4 12h16M4 17h16\" />\n }\n </svg>\n </button>\n }\n <!-- Clics délégués depuis les liens et boutons du menu (fermeture du panneau replié). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #nav\n class=\"ui-app-bar__nav\"\n [id]=\"navId\"\n [class.ui-app-bar__nav--panel]=\"compact()\"\n [hidden]=\"compact() && !navOpen()\"\n (click)=\"onNavClick($event)\"\n (keydown.escape)=\"onNavEscape()\"\n >\n <ng-content />\n </div>\n <div class=\"ui-app-bar__end\"><ng-content select=\"[uiAppBarEnd]\" /></div>\n </div>\n `,\n styleUrl: './app-bar.css',\n})\nexport class UiAppBar {\n /** Couleur de fond : `surface` (défaut) ou `primary`. */\n readonly color = input<UiAppBarColor>('surface');\n /** Ombre portée au lieu du filet inférieur. */\n readonly elevated = input(false, { transform: booleanAttribute });\n /** Reste collée en haut de la zone qui défile (`position: sticky`). Inutile dans un `ui-layout`. */\n readonly sticky = input(false, { transform: booleanAttribute });\n /** Largeur de la barre (px) sous laquelle la navigation se replie derrière le bouton ☰ (`0` : jamais). */\n readonly breakpoint = input(768, { transform: numberAttribute });\n /** Nom accessible du bouton ☰. */\n readonly menuLabel = input('Menu');\n /** Rôle `banner` (en-tête du site). Désactivez-le si la page en a déjà un ou si la barre est dans une section. */\n readonly landmark = input(true, { transform: booleanAttribute });\n\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly navRef = viewChild.required<ElementRef<HTMLElement>>('nav');\n private readonly toggleRef = viewChild<ElementRef<HTMLButtonElement>>('toggle');\n private readonly width = signal<number | null>(null);\n protected readonly navId = uniqueId('ui-app-bar-nav');\n /** La zone de navigation a un contenu (sinon, pas de bouton ☰). */\n protected readonly hasNav = signal(false);\n\n /** `true` quand la barre est plus étroite que `breakpoint` : navigation repliée. */\n readonly compact = computed(() => {\n const width = this.width();\n return width !== null && width < this.breakpoint();\n });\n\n /** Panneau de navigation ouvert (mode replié). */\n readonly navOpen = signal(false);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n // Largeur nulle (conteneur masqué) = pas encore mesurable : on ne replie pas.\n const measure = (width: number) => {\n if (width > 0) this.width.set(width);\n this.hasNav.set(this.navRef().nativeElement.childElementCount > 0);\n };\n afterNextRender(() => {\n measure(this.host.getBoundingClientRect().width);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => measure(entry.contentRect.width));\n observer.observe(this.host);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n effect(() => {\n if (!this.compact()) untracked(() => this.navOpen.set(false));\n });\n }\n\n /** Ouvre le panneau de navigation (mode replié). */\n openNav(): void {\n if (this.compact()) this.navOpen.set(true);\n }\n\n /** Ferme le panneau de navigation ; `restoreFocus` remet le focus sur le bouton ☰. */\n closeNav(restoreFocus = false): void {\n this.navOpen.set(false);\n if (restoreFocus) this.toggleRef()?.nativeElement.focus();\n }\n\n /** Ouvre ou ferme le panneau de navigation. */\n toggleNav(): void {\n if (this.navOpen()) this.closeNav();\n else this.openNav();\n }\n\n /** @internal Largeur forcée (tests). */\n setWidthForTesting(width: number): void {\n this.width.set(width);\n }\n\n protected onNavClick(event: Event): void {\n if (!this.navOpen()) return;\n // Un lien ou une action choisi ferme le panneau ; pas le bouton d'un sous-menu.\n const target = event.target instanceof Element ? event.target.closest('a[href], .ui-menu-item') : null;\n if (target) this.closeNav();\n }\n\n protected onNavEscape(): void {\n if (this.navOpen()) this.closeNav(true);\n }\n\n protected onDocumentPointerDown(event: Event): void {\n if (this.navOpen() && event.target instanceof Node && !this.host.contains(event.target)) this.closeNav();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { warnIfUnlabelled } from '../core/a11y';\n\n/** Apparence de la barre d'outils. */\nexport type UiToolbarAppearance = 'plain' | 'outlined' | 'filled';\n\nconst FOCUSABLE = 'button, a[href], input:not([type=\"hidden\"]), select, textarea, [tabindex]';\n/** Types d'input qui n'utilisent pas les flèches : parcourus par la barre d'outils. */\nconst ARROW_FREE_INPUTS = new Set(['button', 'checkbox', 'submit', 'reset', 'image', 'color', 'file']);\n\n/**\n * Barre d'outils accessible (motif ARIA « toolbar ») : un seul arrêt de tabulation, puis les flèches parcourent\n * les commandes (gauche / droite, ou haut / bas en vertical ; Origine / Fin). La dernière commande utilisée garde\n * le focus au retour dans la barre.\n *\n * Les champs qui ont besoin des flèches (texte, liste, boutons radio, curseur) restent atteignables avec Tab et\n * gardent leurs flèches. Les commandes des sous-menus (`ui-submenu`) ont leur propre clavier.\n *\n * @slot default - Boutons, `ui-submenu`, groupes `uiToolbarGroup`, `ui-toolbar-separator`, `ui-toolbar-spacer`, champs.\n * @cssprop --ui-toolbar-gap - Espace entre les commandes (défaut : `--ui-space-1`).\n * @category Actions\n */\n@Component({\n selector: 'ui-toolbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'toolbar',\n class: 'ui-toolbar',\n '[class.ui-toolbar--vertical]': 'orientation() === \"vertical\"',\n '[class.ui-toolbar--outlined]': 'appearance() === \"outlined\"',\n '[class.ui-toolbar--filled]': 'appearance() === \"filled\"',\n '[class.ui-toolbar--nowrap]': '!wrap()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-orientation]': 'orientation()',\n '(keydown)': 'onKeydown($event)',\n '(focusin)': 'onFocusin($event)',\n },\n template: `<ng-content />`,\n styleUrl: './toolbar.css',\n})\nexport class UiToolbar {\n /** Nom accessible, obligatoire (« Mise en forme », « Actions sur la sélection »…). */\n readonly ariaLabel = input<string>();\n /** Disposition : `horizontal` (défaut) ou `vertical`. */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n /** Apparence : `plain` (sans fond), `outlined` (bordure) ou `filled` (fond). */\n readonly appearance = input<UiToolbarAppearance>('plain');\n /** Passe à la ligne quand la place manque (sinon : défilement horizontal). */\n readonly wrap = input(true, { transform: booleanAttribute });\n\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n /** Éléments dont la barre gère le `tabindex`. */\n private readonly managed = new WeakSet<HTMLElement>();\n private current: HTMLElement | null = null;\n private refreshQueued = false;\n\n constructor() {\n warnIfUnlabelled('ui-toolbar', () => !!this.ariaLabel());\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n this.refresh();\n if (typeof MutationObserver === 'undefined') return;\n const observer = new MutationObserver(() => this.queueRefresh());\n observer.observe(this.host, { subtree: true, childList: true, attributes: true, attributeFilter: ['disabled', 'hidden'] });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /** Commandes parcourues aux flèches, dans l'ordre du document. */\n private items(): HTMLElement[] {\n return Array.from(this.host.querySelectorAll<HTMLElement>(FOCUSABLE)).filter((el) => this.isItem(el));\n }\n\n private isItem(el: HTMLElement): boolean {\n if (el.closest('ui-toolbar') !== this.host) return false;\n // Contenu des panneaux (sous-menus, popovers) et des menus : clavier propre.\n const nested = el.closest('[popover], dialog, .ui-submenu__panel, ui-menu, [hidden]');\n if (nested && this.host.contains(nested)) return false;\n if (usesArrows(el)) return false;\n if ((el as HTMLButtonElement).disabled) return false;\n if (el.tabIndex < 0 && !this.managed.has(el)) return false;\n return true;\n }\n\n private queueRefresh(): void {\n if (this.refreshQueued) return;\n this.refreshQueued = true;\n queueMicrotask(() => {\n this.refreshQueued = false;\n this.refresh();\n });\n }\n\n /** Tabindex itinérant : 0 sur la commande courante, -1 sur les autres. */\n private refresh(): void {\n const items = this.items();\n if (!this.current || !items.includes(this.current)) this.current = items[0] ?? null;\n for (const item of items) {\n this.managed.add(item);\n item.tabIndex = item === this.current ? 0 : -1;\n }\n }\n\n protected onFocusin(event: FocusEvent): void {\n const target = event.target as HTMLElement;\n if (target !== this.current && this.isItem(target)) {\n this.current = target;\n this.refresh();\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return;\n const target = event.target as HTMLElement;\n if (!this.isItem(target)) return;\n const vertical = this.orientation() === 'vertical';\n const rtl = getComputedStyle(this.host).direction === 'rtl';\n const next = vertical ? 'ArrowDown' : rtl ? 'ArrowLeft' : 'ArrowRight';\n const previous = vertical ? 'ArrowUp' : rtl ? 'ArrowRight' : 'ArrowLeft';\n const items = this.items();\n const index = items.indexOf(target);\n let destination: HTMLElement | undefined;\n switch (event.key) {\n case next:\n destination = items[(index + 1) % items.length];\n break;\n case previous:\n destination = items[(index - 1 + items.length) % items.length];\n break;\n case 'Home':\n destination = items[0];\n break;\n case 'End':\n destination = items.at(-1);\n break;\n default:\n return;\n }\n event.preventDefault();\n if (destination) {\n this.current = destination;\n this.refresh();\n destination.focus();\n }\n }\n}\n\n/** Champs qui ont besoin des flèches (saisie, liste, radio, curseur…) : exclus du parcours. */\nfunction usesArrows(el: HTMLElement): boolean {\n if (el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement || el.isContentEditable) return true;\n if (el instanceof HTMLInputElement) return !ARROW_FREE_INPUTS.has(el.type);\n const role = el.getAttribute('role');\n return role === 'slider' || role === 'spinbutton' || role === 'radio' || role === 'textbox' || role === 'combobox';\n}\n\n/**\n * Groupe de commandes liées, nommé pour les lecteurs d'écran (`<div uiToolbarGroup=\"Alignement\">`).\n */\n@Directive({\n selector: '[uiToolbarGroup]',\n host: {\n role: 'group',\n class: 'ui-toolbar-group',\n '[attr.aria-label]': 'label() || null',\n style: 'display:flex;flex-direction:inherit;align-items:center;gap:2px',\n },\n})\nexport class UiToolbarGroup {\n /** Nom du groupe. */\n readonly label = input('', { alias: 'uiToolbarGroup' });\n}\n\n/** Séparateur entre deux groupes de commandes (rôle `separator`, perpendiculaire à la barre). */\n@Component({\n selector: 'ui-toolbar-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'separator',\n class: 'ui-toolbar-separator',\n '[attr.aria-orientation]': 'vertical() ? \"horizontal\" : \"vertical\"',\n '[class.ui-toolbar-separator--horizontal]': 'vertical()',\n },\n template: ``,\n styles: `\n :host { flex: none; align-self: stretch; width: 1px; margin: var(--ui-space-1) var(--ui-space-1); background: var(--ui-color-border-strong); }\n :host(.ui-toolbar-separator--horizontal) { width: auto; height: 1px; margin: var(--ui-space-1) 0; }\n `,\n})\nexport class UiToolbarSeparator {\n private readonly toolbar = inject(UiToolbar, { optional: true });\n protected readonly vertical = computed(() => this.toolbar?.orientation() === 'vertical');\n}\n\n/** Espace flexible : repousse les commandes suivantes au bout de la barre. */\n@Component({\n selector: 'ui-toolbar-spacer',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { 'aria-hidden': 'true', class: 'ui-toolbar-spacer', style: 'flex:1 1 0;min-width:0' },\n template: ``,\n})\nexport class UiToolbarSpacer {}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n isDevMode,\n numberAttribute,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\n\n/** Fond de la section. Avec une image de fond (`uiJumbotronBackground`), le texte passe en clair sur un voile. */\nexport type UiJumbotronTone = 'surface' | 'sunken' | 'primary' | 'gradient';\n\n/** Hauteur : marges verticales croissantes, ou toute la hauteur de l'écran (`screen`). */\nexport type UiJumbotronSize = 'sm' | 'md' | 'lg' | 'screen';\n\n/** Niveau du titre généré par l'input `heading`. */\nexport type UiHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\n/** Avertit (en développement) si une image projetée n'a pas d'attribut `alt`. */\nfunction warnMissingAlt(slot: string, advice: string): void {\n if (!isDevMode()) return;\n const el = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n afterNextRender(() => {\n const img = el.tagName === 'IMG' ? el : el.querySelector('img');\n if (img && !img.hasAttribute('alt')) console.warn(`[ic-angular-uikit] <img ${slot}> sans attribut alt : ${advice}`, img);\n });\n}\n\n/** Petit texte au-dessus du titre (catégorie, nouveauté) : `<p uiJumbotronEyebrow>`. */\n@Directive({ selector: '[uiJumbotronEyebrow]', host: { class: 'ui-jumbotron__eyebrow' } })\nexport class UiJumbotronEyebrow {}\n\n/**\n * Titre riche, à la place de l'input `heading` : `<h1 uiJumbotronTitle>Bienvenue <em>chez nous</em></h1>`.\n * Il reçoit un identifiant qui nomme la section.\n */\n@Directive({ selector: '[uiJumbotronTitle]', host: { class: 'ui-jumbotron__title', '[id]': 'id' } })\nexport class UiJumbotronTitle {\n /** @internal */\n readonly id = uniqueId('ui-jumbotron-title');\n}\n\n/** Boutons d'action (`<div uiJumbotronActions>`). */\n@Directive({ selector: '[uiJumbotronActions]', host: { class: 'ui-jumbotron__actions' } })\nexport class UiJumbotronActions {}\n\n/**\n * Illustration (image, vidéo, composant) à côté du texte sur grand écran, dessous sur petit écran.\n * Une image doit avoir un `alt` : une description utile, ou `alt=\"\"` si elle est décorative.\n */\n@Directive({ selector: '[uiJumbotronMedia]', host: { class: 'ui-jumbotron__media' } })\nexport class UiJumbotronMedia {\n constructor() {\n warnMissingAlt('uiJumbotronMedia', 'décrivez l’image, ou alt=\"\" si elle est décorative.');\n }\n}\n\n/**\n * Image de fond couvrant toute la section (`<img uiJumbotronBackground src=\"…\" alt=\"\">`).\n * Décorative en général (`alt=\"\"`) ; pour l'image principale de la page, ajoutez `fetchpriority=\"high\"`.\n */\n@Directive({ selector: '[uiJumbotronBackground]', host: { class: 'ui-jumbotron__bg' } })\nexport class UiJumbotronBackground {\n constructor() {\n warnMissingAlt('uiJumbotronBackground', 'ajoutez alt=\"\" (image décorative) ou une description.');\n }\n}\n\n/**\n * Grande section d'accroche pour les pages d'accueil : surtitre, titre, texte d'introduction, actions,\n * et au choix une illustration à côté du texte ou une image de fond.\n *\n * Le titre nomme la section (landmark `region`). Typographie fluide, calculée sur la largeur du composant.\n * Avec une image de fond, un voile sombre (`overlay`, 0,55 par défaut) garantit un contraste suffisant pour\n * le texte blanc quelle que soit l'image ; en dessous de 0,55, vérifiez le contraste.\n *\n * @slot default - Contenu libre sous l'introduction (liste d'arguments, formulaire d'inscription…).\n * @slot [uiJumbotronEyebrow] - Surtitre riche, à la place de `eyebrow`.\n * @slot [uiJumbotronTitle] - Titre riche, à la place de `heading`.\n * @slot [uiJumbotronActions] - Boutons d'action.\n * @slot [uiJumbotronMedia] - Illustration à côté du texte (ou dessous sur petite largeur).\n * @slot [uiJumbotronBackground] - Image de fond couvrante.\n * @cssprop --ui-jumbotron-max - Largeur maximale du contenu (défaut : `72rem`).\n * @cssprop --ui-jumbotron-gutter - Marge latérale (défaut : `--ui-space-6`).\n * @cssprop --ui-jumbotron-radius - Rayon des coins (défaut : `0`, pleine largeur).\n * @cssprop --ui-jumbotron-bg - Fond personnalisé (couleur, dégradé), prioritaire sur `tone`.\n * @category Mise en page\n */\n@Component({\n selector: 'ui-jumbotron',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // Encapsulation désactivée (classes préfixées ui-jumbotron) : le composant met en forme le contenu projeté.\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ui-jumbotron',\n '[class.ui-jumbotron--surface]': 'tone() === \"surface\"',\n '[class.ui-jumbotron--sunken]': 'tone() === \"sunken\"',\n '[class.ui-jumbotron--primary]': 'tone() === \"primary\"',\n '[class.ui-jumbotron--gradient]': 'tone() === \"gradient\"',\n '[class.ui-jumbotron--sm]': 'size() === \"sm\"',\n '[class.ui-jumbotron--md]': 'size() === \"md\"',\n '[class.ui-jumbotron--lg]': 'size() === \"lg\"',\n '[class.ui-jumbotron--screen]': 'size() === \"screen\"',\n '[class.ui-jumbotron--center]': 'align() === \"center\"',\n '[class.ui-jumbotron--split]': '!!media()',\n '[class.ui-jumbotron--media-start]': 'mediaPosition() === \"start\"',\n '[class.ui-jumbotron--image]': '!!background()',\n '[class.ui-jumbotron--on-color]': '!!background() || tone() === \"primary\" || tone() === \"gradient\"',\n '[attr.role]': 'landmark() && labelId() ? \"region\" : null',\n '[attr.aria-labelledby]': 'landmark() ? labelId() : null',\n '[style.--_overlay]': 'overlayOpacity()',\n },\n template: `\n <ng-content select=\"[uiJumbotronBackground]\" />\n @if (background()) {\n <div class=\"ui-jumbotron__overlay\" aria-hidden=\"true\"></div>\n }\n <div class=\"ui-jumbotron__inner\">\n <div class=\"ui-jumbotron__content\">\n <ng-content select=\"[uiJumbotronEyebrow]\" />\n @if (eyebrow()) {\n <p class=\"ui-jumbotron__eyebrow\">{{ eyebrow() }}</p>\n }\n <ng-content select=\"[uiJumbotronTitle]\" />\n @if (heading()) {\n @switch (headingLevel()) {\n @case (1) { <h1 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h1> }\n @case (2) { <h2 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h2> }\n @case (3) { <h3 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h3> }\n @case (4) { <h4 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h4> }\n @case (5) { <h5 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h5> }\n @default { <h6 class=\"ui-jumbotron__title\" [id]=\"headingId\">{{ heading() }}</h6> }\n }\n }\n @if (lead()) {\n <p class=\"ui-jumbotron__lead\">{{ lead() }}</p>\n }\n <ng-content />\n <ng-content select=\"[uiJumbotronActions]\" />\n </div>\n <ng-content select=\"[uiJumbotronMedia]\" />\n </div>\n `,\n styleUrl: './jumbotron.css',\n})\nexport class UiJumbotron {\n /** Titre (texte simple). Pour un titre riche, utilisez `[uiJumbotronTitle]`. */\n readonly heading = input<string>();\n /** Niveau du titre : `1` pour l'accroche principale d'une page, `2` pour une section suivante. */\n readonly headingLevel = input<UiHeadingLevel, unknown>(1, {\n transform: (v: unknown) => Math.min(6, Math.max(1, Math.round(numberAttribute(v, 1)))) as UiHeadingLevel,\n });\n /** Surtitre (petit texte au-dessus du titre). */\n readonly eyebrow = input<string>();\n /** Texte d'introduction sous le titre. */\n readonly lead = input<string>();\n /** Fond : `surface`, `sunken`, `primary` ou `gradient` (ignoré sous une image de fond). */\n readonly tone = input<UiJumbotronTone>('sunken');\n /** Hauteur : `sm`, `md`, `lg` ou `screen` (toute la hauteur de l'écran). */\n readonly size = input<UiJumbotronSize>('md');\n /** Alignement du texte : `start` ou `center`. */\n readonly align = input<'start' | 'center'>('start');\n /** Côté de l'illustration sur grand écran. */\n readonly mediaPosition = input<'start' | 'end'>('end');\n /** Opacité du voile sur l'image de fond (0 à 0,9 ; 0,55 garantit le contraste du texte blanc). */\n readonly overlay = input(0.55, { transform: numberAttribute });\n /** Landmark `region` nommé par le titre. Désactivez-le pour une section secondaire ou une diapositive. */\n readonly landmark = input(true, { transform: booleanAttribute });\n\n protected readonly media = contentChild(UiJumbotronMedia);\n protected readonly background = contentChild(UiJumbotronBackground);\n private readonly titleSlot = contentChild(UiJumbotronTitle);\n protected readonly headingId = uniqueId('ui-jumbotron-heading');\n\n /** Identifiant du titre qui nomme la section. */\n protected readonly labelId = computed(() => this.titleSlot()?.id ?? (this.heading() ? this.headingId : null));\n protected readonly overlayOpacity = computed(() => {\n const value = this.overlay();\n return Number.isFinite(value) ? Math.min(0.9, Math.max(0, value)) : 0.55;\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { warnIfUnlabelled } from '../core/a11y';\nimport { uniqueId } from '../core/id';\n\n/** Position des flèches : sur les bords des diapositives, sous le carrousel, ou aucune. */\nexport type UiCarouselControls = 'overlay' | 'below' | 'none';\n\n/** Payload de l'événement `slideChange`. */\nexport interface UiCarouselChange {\n /** Nouvelle position. */\n index: number;\n /** Position précédente. */\n previousIndex: number;\n /** Origine du changement. */\n source: 'user' | 'autoplay';\n}\n\n/**\n * Une diapositive de `ui-carousel` (rôle `group`, annoncée « diapositive n sur N »).\n * Les diapositives hors de la vue sont inertes : ni focus, ni lecture par les lecteurs d'écran.\n *\n * @slot default - Contenu de la diapositive (image, carte, `ui-jumbotron`…).\n */\n@Component({\n selector: 'ui-carousel-slide',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n 'aria-roledescription': 'diapositive',\n class: 'ui-carousel-slide',\n '[attr.aria-label]': 'accessibleName()',\n '[attr.inert]': 'hidden() ? \"\" : null',\n },\n template: `<ng-content />`,\n styles: `\n :host {\n box-sizing: border-box;\n flex: 0 0 max(\n min(var(--ui-carousel-min-slide, 0px), 100%),\n calc((100% - (var(--ui-carousel-per-view, 1) - 1) * var(--ui-carousel-gap, var(--ui-space-4))) / var(--ui-carousel-per-view, 1))\n );\n min-width: 0;\n scroll-snap-align: start;\n }\n `,\n})\nexport class UiCarouselSlide {\n /** Titre de la diapositive, ajouté à son nom accessible (« Offre d'été — 2 sur 5 »). */\n readonly label = input<string>();\n\n /** @internal */\n readonly element = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n /** @internal */\n readonly position = signal(0);\n /** @internal */\n readonly total = signal(0);\n /** @internal */\n readonly hidden = signal(false);\n\n protected readonly accessibleName = computed(() => {\n const where = `${this.position() + 1} sur ${this.total()}`;\n const label = this.label();\n return label ? `${label} — ${where}` : where;\n });\n}\n\n/**\n * Carrousel accessible (motif ARIA « carousel ») pour les pages d'accueil : une ou plusieurs diapositives visibles,\n * défilement au doigt, au pavé tactile et à la molette (défilement natif avec aimantation), flèches, pastilles.\n *\n * - **Clavier** : flèches gauche / droite, Origine / Fin sur la zone des diapositives (focalisable), boutons.\n * - **Défilement automatique** (`autoplay`) : bouton Pause / Lecture toujours visible ; arrêt au survol, et arrêt\n * définitif dès qu'un élément du carrousel reçoit le focus ; désactivé d'office si l'utilisateur a demandé\n * à réduire les animations. La position est annoncée aux lecteurs d'écran hors défilement automatique.\n * - **Plusieurs diapositives** : `slidesPerView` (décimal pour laisser deviner la suivante) et\n * `--ui-carousel-min-slide` pour ne jamais descendre sous une largeur lisible.\n *\n * @slot ui-carousel-slide - Les diapositives.\n * @cssprop --ui-carousel-gap - Espace entre les diapositives (défaut : `--ui-space-4`).\n * @cssprop --ui-carousel-min-slide - Largeur minimale d'une diapositive (défaut : `0px`).\n * @cssprop --ui-carousel-radius - Rayon des coins de la zone des diapositives (défaut : `--ui-radius-lg`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-carousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'region',\n 'aria-roledescription': 'carrousel',\n class: 'ui-carousel',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[style.--ui-carousel-per-view]': 'perView()',\n '(mouseenter)': 'hovered.set(true)',\n '(mouseleave)': 'hovered.set(false)',\n '(focusin)': 'onFocusIn()',\n },\n template: `\n <div class=\"ui-carousel__viewport\">\n <div\n #track\n class=\"ui-carousel__track\"\n [id]=\"trackId\"\n role=\"group\"\n tabindex=\"0\"\n [attr.aria-label]=\"trackLabel()\"\n (keydown)=\"onTrackKeydown($event)\"\n (scroll)=\"onScroll()\"\n (scrollend)=\"onScrollEnd()\"\n >\n <ng-content select=\"ui-carousel-slide\" />\n </div>\n @if (controls() === 'overlay' && hasSeveral()) {\n <ng-container [ngTemplateOutlet]=\"previousButton\" />\n <ng-container [ngTemplateOutlet]=\"nextButton\" />\n }\n </div>\n\n @if (hasSeveral() && (autoplayEnabled() || indicators() || controls() === 'below')) {\n <div class=\"ui-carousel__footer\">\n @if (autoplayEnabled()) {\n <button type=\"button\" class=\"ui-carousel__play\" (click)=\"togglePlay()\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n @if (userPaused()) {\n <path d=\"M8 5.5v13l11-6.5z\" />\n } @else {\n <path d=\"M7 5h3.5v14H7zM13.5 5H17v14h-3.5z\" />\n }\n </svg>\n {{ userPaused() ? playLabel() : pauseLabel() }}\n </button>\n }\n @if (controls() === 'below') {\n <ng-container [ngTemplateOutlet]=\"previousButton\" />\n }\n @if (indicators()) {\n <div class=\"ui-carousel__dots\" role=\"group\" [attr.aria-label]=\"indicatorsLabel()\">\n @for (dot of dots(); track dot) {\n <button\n type=\"button\"\n class=\"ui-carousel__dot\"\n [attr.aria-label]=\"'Diapositive ' + (dot + 1)\"\n [attr.aria-current]=\"dot === current() ? 'true' : null\"\n (click)=\"goTo(dot)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n }\n @if (controls() === 'below') {\n <ng-container [ngTemplateOutlet]=\"nextButton\" />\n }\n </div>\n }\n\n <p class=\"ui-carousel__status\" aria-live=\"polite\" aria-atomic=\"true\">{{ status() }}</p>\n\n <ng-template #previousButton>\n <button\n type=\"button\"\n class=\"ui-carousel__arrow ui-carousel__arrow--previous\"\n [class.ui-carousel__arrow--overlay]=\"controls() === 'overlay'\"\n [attr.aria-label]=\"previousLabel()\"\n [attr.aria-disabled]=\"!canPrevious() ? 'true' : null\"\n [attr.aria-controls]=\"trackId\"\n (click)=\"previous()\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m15 6-6 6 6 6\" /></svg>\n </button>\n </ng-template>\n <ng-template #nextButton>\n <button\n type=\"button\"\n class=\"ui-carousel__arrow ui-carousel__arrow--next\"\n [class.ui-carousel__arrow--overlay]=\"controls() === 'overlay'\"\n [attr.aria-label]=\"nextLabel()\"\n [attr.aria-disabled]=\"!canNext() ? 'true' : null\"\n [attr.aria-controls]=\"trackId\"\n (click)=\"next()\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\" /></svg>\n </button>\n </ng-template>\n `,\n styleUrl: './carousel.css',\n imports: [NgTemplateOutlet],\n})\nexport class UiCarousel {\n /** Nom accessible, obligatoire (« Nos offres », « Témoignages »…). */\n readonly ariaLabel = input<string>();\n /** Position courante (liaison bidirectionnelle `[(index)]`). */\n readonly index = model(0);\n /** Diapositives visibles à la fois (décimal possible : `1.2` laisse deviner la suivante). */\n readonly slidesPerView = input(1, { transform: numberAttribute });\n /** Revient au début après la dernière diapositive (et inversement). */\n readonly loop = input(false, { transform: booleanAttribute });\n /** Défilement automatique : intervalle en millisecondes (`0` = désactivé ; 5000 ou plus conseillé). */\n readonly autoplay = input(0, { transform: numberAttribute });\n /** Flèches : `overlay` (sur les bords), `below` (sous le carrousel) ou `none`. */\n readonly controls = input<UiCarouselControls>('overlay');\n /** Pastilles de position sous le carrousel. */\n readonly indicators = input(true, { transform: booleanAttribute });\n /** Libellé du bouton précédent. */\n readonly previousLabel = input('Diapositive précédente');\n /** Libellé du bouton suivant. */\n readonly nextLabel = input('Diapositive suivante');\n /** Libellé du bouton qui arrête le défilement automatique. */\n readonly pauseLabel = input('Pause');\n /** Libellé du bouton qui relance le défilement automatique. */\n readonly playLabel = input('Lecture');\n /** Nom du groupe de pastilles. */\n readonly indicatorsLabel = input('Choisir une diapositive');\n\n /** Émis quand la position change (action de l'utilisateur ou défilement automatique). */\n readonly slideChange = output<UiCarouselChange>();\n\n protected readonly slides = contentChildren(UiCarouselSlide);\n private readonly trackRef = viewChild.required<ElementRef<HTMLElement>>('track');\n private readonly document = inject(DOCUMENT);\n protected readonly trackId = uniqueId('ui-carousel-track');\n\n /** Diapositives entièrement visibles, mesuré (dépend de la largeur et de `--ui-carousel-min-slide`). */\n private readonly visibleCount = signal(1);\n protected readonly hovered = signal(false);\n /** Arrêt voulu par l'utilisateur (bouton, focus) ou par `prefers-reduced-motion`. */\n protected readonly userPaused = signal(false);\n private readonly pageHidden = signal(false);\n /** Position réellement affichée (mise à jour par le défilement). */\n private shownIndex = -1;\n private programmaticTimer: ReturnType<typeof setTimeout> | undefined;\n private programmatic = false;\n private scrollFrame = 0;\n\n protected readonly perView = computed(() => {\n const value = this.slidesPerView();\n return Number.isFinite(value) && value > 0 ? value : 1;\n });\n /** Nombre de positions possibles (la dernière montre les dernières diapositives). */\n readonly positions = computed(() => Math.max(1, this.slides().length - this.visibleCount() + 1));\n /** Position courante, bornée. */\n readonly current = computed(() => Math.min(Math.max(0, Math.round(this.index())), this.positions() - 1));\n protected readonly hasSeveral = computed(() => this.positions() > 1);\n protected readonly dots = computed(() => Array.from({ length: this.positions() }, (_, i) => i));\n protected readonly canPrevious = computed(() => this.loop() || this.current() > 0);\n protected readonly canNext = computed(() => this.loop() || this.current() < this.positions() - 1);\n protected readonly autoplayEnabled = computed(() => this.autoplay() > 0);\n /** Le défilement automatique tourne. */\n readonly playing = computed(\n () => this.autoplayEnabled() && this.hasSeveral() && !this.userPaused() && !this.hovered() && !this.pageHidden(),\n );\n protected readonly trackLabel = computed(() => `Diapositives${this.ariaLabel() ? ` : ${this.ariaLabel()}` : ''}`);\n /** Annonce de la position (silencieuse pendant le défilement automatique). */\n protected readonly status = computed(() => {\n if (this.playing() || !this.hasSeveral()) return '';\n const slide = this.slides()[this.current()];\n const label = slide?.label();\n return `Diapositive ${this.current() + 1} sur ${this.positions()}${label ? ` : ${label}` : ''}`;\n });\n\n constructor() {\n warnIfUnlabelled('ui-carousel', () => !!this.ariaLabel());\n const destroyRef = inject(DestroyRef);\n const view = this.document.defaultView;\n if (view?.matchMedia?.('(prefers-reduced-motion: reduce)').matches) this.userPaused.set(true);\n\n // Numérotation et visibilité des diapositives.\n effect(() => {\n const slides = this.slides();\n const first = this.current();\n const count = this.visibleCount();\n untracked(() =>\n slides.forEach((slide, i) => {\n slide.position.set(i);\n slide.total.set(slides.length);\n slide.hidden.set(i < first || i >= first + count);\n }),\n );\n });\n\n // Largeur : nombre de diapositives visibles, puis réalignement sur la position courante.\n afterNextRender(() => {\n const track = this.trackRef().nativeElement;\n this.measure();\n this.scrollToIndex(this.current(), false);\n const onVisibility = () => this.pageHidden.set(this.document.visibilityState === 'hidden');\n this.document.addEventListener('visibilitychange', onVisibility);\n destroyRef.onDestroy(() => this.document.removeEventListener('visibilitychange', onVisibility));\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => {\n this.measure();\n this.scrollToIndex(this.current(), false);\n });\n observer.observe(track);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n\n // Position modifiée par le code (`[(index)]`, boutons) : défilement jusqu'à elle.\n afterRenderEffect(() => {\n const target = this.current();\n untracked(() => {\n if (target !== this.shownIndex) this.scrollToIndex(target, this.shownIndex !== -1);\n });\n });\n\n // Défilement automatique.\n effect((onCleanup) => {\n if (!this.playing()) return;\n const timer = setInterval(() => this.step(1, 'autoplay'), Math.max(1000, this.autoplay()));\n onCleanup(() => clearInterval(timer));\n });\n\n destroyRef.onDestroy(() => {\n clearTimeout(this.programmaticTimer);\n if (this.scrollFrame) cancelAnimationFrame(this.scrollFrame);\n });\n }\n\n /** Va à la position donnée. */\n goTo(index: number): void {\n this.setIndex(index, 'user');\n }\n\n /** Diapositive suivante (revient au début avec `loop`). */\n next(): void {\n this.step(1, 'user');\n }\n\n /** Diapositive précédente (va à la fin avec `loop`). */\n previous(): void {\n this.step(-1, 'user');\n }\n\n /** Lance le défilement automatique. */\n play(): void {\n this.userPaused.set(false);\n }\n\n /** Arrête le défilement automatique. */\n pause(): void {\n this.userPaused.set(true);\n }\n\n protected togglePlay(): void {\n this.userPaused.update((paused) => !paused);\n }\n\n protected onFocusIn(): void {\n // Motif ARIA : le focus dans le carrousel arrête la rotation, qui ne reprend que par le bouton Lecture.\n if (this.autoplayEnabled() && !this.userPaused()) this.userPaused.set(true);\n }\n\n protected onTrackKeydown(event: KeyboardEvent): void {\n if (event.target !== event.currentTarget) return;\n const rtl = getComputedStyle(this.trackRef().nativeElement).direction === 'rtl';\n const actions: Record<string, () => void> = {\n [rtl ? 'ArrowRight' : 'ArrowLeft']: () => this.previous(),\n [rtl ? 'ArrowLeft' : 'ArrowRight']: () => this.next(),\n Home: () => this.goTo(0),\n End: () => this.goTo(this.positions() - 1),\n };\n const action = actions[event.key];\n if (action) {\n event.preventDefault();\n action();\n }\n }\n\n protected onScroll(): void {\n if (this.programmatic || this.scrollFrame) return;\n this.scrollFrame = requestAnimationFrame(() => {\n this.scrollFrame = 0;\n if (!this.programmatic) this.syncFromScroll();\n });\n }\n\n protected onScrollEnd(): void {\n this.endProgrammatic();\n this.syncFromScroll();\n }\n\n /** Position réellement affichée → `index` (glissement au doigt, ou défilement arrêté avant la cible). */\n private syncFromScroll(): void {\n if (this.trackRef().nativeElement.clientWidth === 0) return;\n const nearest = Math.min(this.nearestIndex(), this.positions() - 1);\n if (nearest === this.shownIndex && nearest === this.current()) return;\n const previousIndex = this.current();\n this.shownIndex = nearest;\n this.index.set(nearest);\n if (nearest !== previousIndex) this.slideChange.emit({ index: nearest, previousIndex, source: 'user' });\n }\n\n private step(delta: 1 | -1, source: 'user' | 'autoplay'): void {\n const last = this.positions() - 1;\n let target = this.current() + delta;\n if (target > last) target = this.loop() || source === 'autoplay' ? 0 : last;\n if (target < 0) target = this.loop() ? last : 0;\n this.setIndex(target, source);\n }\n\n private setIndex(index: number, source: 'user' | 'autoplay'): void {\n const target = Math.min(Math.max(0, Math.round(index)), this.positions() - 1);\n const previousIndex = this.current();\n if (target === previousIndex) return;\n this.index.set(target);\n this.slideChange.emit({ index: target, previousIndex, source });\n }\n\n private measure(): void {\n const track = this.trackRef().nativeElement;\n const first = this.slides()[0]?.element;\n if (!first || track.clientWidth === 0) return;\n const gap = parseFloat(getComputedStyle(track).columnGap) || 0;\n const width = first.getBoundingClientRect().width;\n if (width <= 0) return;\n this.visibleCount.set(Math.max(1, Math.floor((track.clientWidth + gap + 1) / (width + gap))));\n }\n\n /** Diapositive dont le bord de début est le plus proche de celui de la zone visible. */\n private nearestIndex(): number {\n const track = this.trackRef().nativeElement;\n const rtl = getComputedStyle(track).direction === 'rtl';\n const box = track.getBoundingClientRect();\n let best = 0;\n let bestDistance = Infinity;\n this.slides().forEach((slide, i) => {\n const rect = slide.element.getBoundingClientRect();\n const distance = Math.abs(rtl ? rect.right - box.right : rect.left - box.left);\n if (distance < bestDistance) {\n bestDistance = distance;\n best = i;\n }\n });\n return best;\n }\n\n private scrollToIndex(index: number, smooth: boolean): void {\n const track = this.trackRef().nativeElement;\n const slide = this.slides()[index]?.element;\n this.shownIndex = index;\n if (!slide || track.clientWidth === 0) return;\n const rtl = getComputedStyle(track).direction === 'rtl';\n const box = track.getBoundingClientRect();\n const rect = slide.getBoundingClientRect();\n const delta = rtl ? rect.right - box.right : rect.left - box.left;\n if (Math.abs(delta) < 1) return;\n const reduced = this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n this.programmatic = true;\n clearTimeout(this.programmaticTimer);\n // Repli si `scrollend` n'est pas émis (navigateur ancien, défilement interrompu).\n this.programmaticTimer = setTimeout(() => this.endProgrammatic(), 900);\n if (typeof track.scrollBy === 'function') {\n track.scrollBy({ left: delta, behavior: smooth && !reduced ? 'smooth' : 'auto' });\n }\n if (!smooth || reduced) this.endProgrammatic();\n }\n\n private endProgrammatic(): void {\n clearTimeout(this.programmaticTimer);\n this.programmatic = false;\n }\n}\n","/**\n * Logique pure de la grille du tableau de bord : collisions, tassement, place libre, validation des données\n * reçues d'un serveur. Sans dépendance à Angular (testable et réutilisable côté serveur Node).\n */\n\n/** Configuration propre à un widget (JSON sérialisable). */\nexport type UiWidgetConfig = Record<string, unknown>;\n\n/** Un widget placé sur la grille. */\nexport interface UiDashboardItem<C extends object = UiWidgetConfig> {\n /** Identifiant unique dans le tableau de bord (`[A-Za-z0-9_-]`, 64 caractères max). */\n id: string;\n /** Type de widget (clé d'une `UiWidgetDefinition`). */\n type: string;\n /** Colonne de départ (0 = première). */\n x: number;\n /** Ligne de départ (0 = première). */\n y: number;\n /** Largeur en colonnes. */\n w: number;\n /** Hauteur en lignes. */\n h: number;\n /** Titre choisi par l'utilisateur (sinon celui de la définition). */\n title?: string;\n /** Réglages du widget. */\n config?: Partial<C>;\n}\n\n/** Disposition sérialisable, à enregistrer telle quelle côté serveur. */\nexport interface UiDashboardLayout {\n /** Version du format (pour migrer plus tard). */\n version: 1;\n /** Nombre de colonnes de la grille. */\n columns: number;\n /** Widgets placés. */\n items: UiDashboardItem[];\n}\n\n/** Bornes de taille d'un type de widget. */\nexport interface UiWidgetSizeLimits {\n minW?: number;\n minH?: number;\n maxW?: number;\n maxH?: number;\n}\n\ntype Box = Pick<UiDashboardItem, 'x' | 'y' | 'w' | 'h'>;\n\n/** Les deux rectangles se chevauchent. */\nexport function itemsOverlap(a: Box, b: Box): boolean {\n return a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h;\n}\n\n/** Ordre de lecture : ligne puis colonne (sert aussi d'ordre du DOM, donc de tabulation). */\nexport function sortByPosition<T extends Box>(items: readonly T[]): T[] {\n return [...items].sort((a, b) => a.y - b.y || a.x - b.x);\n}\n\n/** Borne la taille et la position d'un élément dans la grille. */\nexport function clampItem<T extends UiDashboardItem>(item: T, columns: number, limits: UiWidgetSizeLimits = {}): T {\n const int = (v: number, fallback: number) => (Number.isFinite(v) ? Math.round(v) : fallback);\n const maxW = Math.min(columns, Math.max(1, limits.maxW ?? columns));\n const minW = Math.min(maxW, Math.max(1, limits.minW ?? 1));\n const maxH = Math.max(1, limits.maxH ?? 50);\n const minH = Math.min(maxH, Math.max(1, limits.minH ?? 1));\n const w = Math.min(maxW, Math.max(minW, int(item.w, minW)));\n const h = Math.min(maxH, Math.max(minH, int(item.h, minH)));\n const x = Math.min(columns - w, Math.max(0, int(item.x, 0)));\n const y = Math.max(0, int(item.y, 0));\n return { ...item, x, y, w, h };\n}\n\n/**\n * Place `anchorId` à sa position et pousse vers le bas les éléments qu'il recouvre (en cascade),\n * puis tasse la grille vers le haut si `compact`.\n */\nexport function resolveLayout<T extends UiDashboardItem>(items: readonly T[], anchorId: string | null, compact = true): T[] {\n const anchor = anchorId ? items.find((item) => item.id === anchorId) : undefined;\n const placed: T[] = anchor ? [anchor] : [];\n for (const item of sortByPosition(items.filter((i) => i !== anchor))) {\n let y = item.y;\n for (;;) {\n const blockers = placed.filter((p) => itemsOverlap({ ...item, y }, p));\n if (blockers.length === 0) break;\n y = Math.max(...blockers.map((p) => p.y + p.h));\n }\n placed.push({ ...item, y });\n }\n return compact ? compactLayout(placed) : sortByPosition(placed);\n}\n\n/** Remonte chaque élément aussi haut que possible (gravité verticale), sans changer les colonnes. */\nexport function compactLayout<T extends UiDashboardItem>(items: readonly T[]): T[] {\n const done: T[] = [];\n for (const item of sortByPosition(items)) {\n let y = item.y;\n while (y > 0 && !done.some((p) => itemsOverlap({ ...item, y: y - 1 }, p))) y--;\n done.push({ ...item, y });\n }\n return sortByPosition(done);\n}\n\n/** Déplace / redimensionne un élément et réorganise les autres. */\nexport function moveItem<T extends UiDashboardItem>(\n items: readonly T[],\n id: string,\n change: Partial<Box>,\n columns: number,\n limits: UiWidgetSizeLimits = {},\n compact = true,\n): T[] {\n const next = items.map((item) => (item.id === id ? clampItem({ ...item, ...change }, columns, limits) : item));\n return resolveLayout(next, id, compact);\n}\n\n/** Première place libre (de haut en bas, de gauche à droite) pour un élément de `w × h`. */\nexport function findFreeSpot(items: readonly Box[], w: number, h: number, columns: number): { x: number; y: number } {\n const width = Math.min(Math.max(1, w), columns);\n for (let y = 0; ; y++) {\n for (let x = 0; x <= columns - width; x++) {\n if (!items.some((item) => itemsOverlap({ x, y, w: width, h }, item))) return { x, y };\n }\n }\n}\n\nconst ID = /^[A-Za-z0-9_-]{1,64}$/;\n\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;\n}\n\n/** Options de `sanitizeDashboardLayout`. */\nexport interface UiDashboardSanitizeOptions {\n /** Nombre de colonnes de la grille. */\n columns: number;\n /**\n * Types de widgets connus et leurs bornes de taille (les autres sont écartés) : objet `{ type: bornes }`,\n * ou directement la liste des `UiWidgetDefinition`.\n */\n types: Readonly<Record<string, UiWidgetSizeLimits>> | readonly (UiWidgetSizeLimits & { type: string })[];\n /** Nombre maximal de widgets (défaut : 50). */\n maxItems?: number;\n}\n\n/**\n * Valide une disposition venue de l'extérieur (serveur, stockage) : objet `UiDashboardLayout` ou tableau d'éléments.\n * Écarte les éléments invalides ou de type inconnu, les doublons, le surplus ; borne tailles et positions ;\n * ne garde que des réglages « objet simple » ; résout les chevauchements. Ne lève jamais d'exception.\n */\nexport function sanitizeDashboardLayout(raw: unknown, options: UiDashboardSanitizeOptions): UiDashboardItem[] {\n const types: Readonly<Record<string, UiWidgetSizeLimits>> = Array.isArray(options.types)\n ? Object.fromEntries((options.types as readonly (UiWidgetSizeLimits & { type: string })[]).map((d) => [d.type, d]))\n : (options.types as Readonly<Record<string, UiWidgetSizeLimits>>);\n const list = Array.isArray(raw) ? raw : isPlainObject(raw) && Array.isArray(raw['items']) ? raw['items'] : [];\n const seen = new Set<string>();\n const items: UiDashboardItem[] = [];\n for (const entry of list) {\n if (items.length >= (options.maxItems ?? 50)) break;\n if (!isPlainObject(entry)) continue;\n const { id, type, x, y, w, h, title, config } = entry;\n if (typeof id !== 'string' || !ID.test(id) || seen.has(id)) continue;\n if (typeof type !== 'string' || !Object.prototype.hasOwnProperty.call(types, type)) continue;\n if (![x, y, w, h].every((n) => typeof n === 'number' && Number.isFinite(n))) continue;\n seen.add(id);\n const item: UiDashboardItem = clampItem({ id, type, x: x as number, y: y as number, w: w as number, h: h as number }, options.columns, types[type]);\n if (typeof title === 'string' && title.trim()) item.title = title.trim().slice(0, 120);\n if (isPlainObject(config)) item.config = config;\n items.push(item);\n }\n return resolveLayout(items, null);\n}\n","import { DestroyRef, Directive, Signal, TemplateRef, Type, computed, inject, signal } from '@angular/core';\nimport { UiDashboardItem, UiWidgetConfig, UiWidgetSizeLimits } from './dashboard-layout';\n\n/** Déclaration d'un type de widget, à fournir au tableau de bord (`[widgets]`). */\nexport interface UiWidgetDefinition<C extends object = UiWidgetConfig> extends UiWidgetSizeLimits {\n /** Clé unique du type, enregistrée dans la disposition (`[A-Za-z0-9_-]`). */\n type: string;\n /** Titre par défaut, aussi affiché dans le catalogue. */\n title: string;\n /** Description du catalogue. */\n description?: string;\n /** Icône du catalogue (`préfixe:nom`). */\n icon?: string;\n /** Catégorie du catalogue (tiroir de la colonne « Personnaliser »). Sans catégorie : « Autres ». */\n category?: string;\n /** Composant du widget : il déclare ses faces avec `uiWidgetFront`, `uiWidgetBack`, `uiWidgetSettings`. */\n component: Type<unknown>;\n /** Taille à l'ajout, en colonnes × lignes. */\n defaultSize: { w: number; h: number };\n /** Réglages initiaux (fusionnés avec ceux enregistrés). */\n defaultConfig?: C;\n /** Titre par défaut calculé d'après les réglages (ex. nom de l'indicateur affiché), si l'utilisateur n'en a pas choisi. */\n titleFor?(config: C): string;\n /** Nombre maximal d'exemplaires sur un même tableau de bord. */\n maxInstances?: number;\n}\n\n/** Présentation d'une catégorie du catalogue (ordre, icône, description). */\nexport interface UiWidgetCategory {\n /** Nom de la catégorie, identique à `UiWidgetDefinition.category`. */\n name: string;\n /** Icône du tiroir. */\n icon?: string;\n /** Courte description, sous le nom. */\n description?: string;\n}\n\n/** Face d'un widget. */\nexport type UiWidgetFace = 'front' | 'back' | 'settings';\n\n/**\n * Pont entre le tableau de bord et le composant d'un widget : lecture de sa disposition et de ses réglages,\n * mise à jour des réglages, retournement. Obtenu dans le widget avec `injectUiWidgetContext<MaConfig>()`.\n */\nexport class UiWidgetContext<C extends object = UiWidgetConfig> {\n /** @internal */\n readonly templates = {\n front: signal<TemplateRef<unknown> | null>(null),\n back: signal<TemplateRef<unknown> | null>(null),\n settings: signal<TemplateRef<unknown> | null>(null),\n };\n\n /** Réglages courants : `defaultConfig` de la définition, complétés par ceux de l'utilisateur. */\n readonly config: Signal<C>;\n /** Taille courante en colonnes × lignes (pour adapter l'affichage). */\n readonly size: Signal<{ w: number; h: number }>;\n /** Titre affiché. */\n readonly title: Signal<string>;\n\n constructor(\n /** Identifiant de l'élément dans le tableau de bord. */\n readonly id: string,\n /** Élément de la disposition. */\n readonly item: Signal<UiDashboardItem<C> | UiDashboardItem>,\n /** Définition du type de widget. */\n readonly definition: UiWidgetDefinition<C>,\n /** Le widget montre son verso. */\n readonly flipped: Signal<boolean>,\n /** Le tableau de bord est en mode personnalisation. */\n readonly editing: Signal<boolean>,\n private readonly host: {\n updateItem(id: string, change: Partial<UiDashboardItem>): void;\n setFlipped(id: string, flipped: boolean): void;\n },\n ) {\n this.config = computed(() => ({ ...(definition.defaultConfig ?? {}), ...(this.item().config ?? {}) }) as C);\n this.size = computed(() => ({ w: this.item().w, h: this.item().h }));\n this.title = computed(() => this.item().title || definition.titleFor?.(this.config()) || definition.title);\n }\n\n /** Fusionne des réglages et enregistre la disposition (`layoutChange`). */\n updateConfig(patch: Partial<C>): void {\n this.host.updateItem(this.id, { config: { ...(this.item().config ?? {}), ...patch } as UiWidgetConfig });\n }\n\n /** Remplace tous les réglages. */\n setConfig(config: Partial<C>): void {\n this.host.updateItem(this.id, { config: { ...config } as UiWidgetConfig });\n }\n\n /** Retourne le widget (verso / recto), ou force une face. */\n flip(toBack?: boolean): void {\n this.host.setFlipped(this.id, toBack ?? !this.flipped());\n }\n\n /** @internal */\n register(face: UiWidgetFace, template: TemplateRef<unknown> | null): void {\n this.templates[face].set(template);\n }\n}\n\n/** Contexte du widget courant (à appeler dans le constructeur ou un initialiseur de champ du composant de widget). */\nexport function injectUiWidgetContext<C extends object = UiWidgetConfig>(): UiWidgetContext<C> {\n return inject(UiWidgetContext) as unknown as UiWidgetContext<C>;\n}\n\nfunction registerFace(face: UiWidgetFace): void {\n const context = inject(UiWidgetContext);\n context.register(face, inject(TemplateRef));\n inject(DestroyRef).onDestroy(() => context.register(face, null));\n}\n\n/** Recto du widget (obligatoire) : `<ng-template uiWidgetFront>…</ng-template>`. */\n@Directive({ selector: 'ng-template[uiWidgetFront]' })\nexport class UiWidgetFront {\n constructor() {\n registerFace('front');\n }\n}\n\n/** Verso du widget (facultatif : sans verso, pas de bouton « Retourner ») : `<ng-template uiWidgetBack>`. */\n@Directive({ selector: 'ng-template[uiWidgetBack]' })\nexport class UiWidgetBack {\n constructor() {\n registerFace('back');\n }\n}\n\n/** Réglages du widget, affichés dans la colonne « Personnaliser » : `<ng-template uiWidgetSettings>`. */\n@Directive({ selector: 'ng-template[uiWidgetSettings]' })\nexport class UiWidgetSettings {\n constructor() {\n registerFace('settings');\n }\n}\n","import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n Signal,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UiButton } from '../button/button';\nimport { UiIcon } from '../icon/icon';\nimport { UiSelect, UiSelectOption } from '../select/select';\nimport { UiTextField } from '../text-field/text-field';\nimport {\n UiDashboardItem,\n UiDashboardLayout,\n clampItem,\n findFreeSpot,\n moveItem,\n resolveLayout,\n sortByPosition,\n} from './dashboard-layout';\nimport { UiWidgetCategory, UiWidgetContext, UiWidgetDefinition } from './widget';\n\n/** Contenu ajouté à la barre au-dessus de la grille (`<div uiDashboardToolbar>`) : titre, état de l'enregistrement… */\n@Directive({ selector: '[uiDashboardToolbar]', host: { class: 'ui-dashboard__toolbar-slot' } })\nexport class UiDashboardToolbar {}\n\n/** Réglages généraux ajoutés en bas de la colonne « Personnaliser » (`<section uiDashboardConfig>`). */\n@Directive({ selector: '[uiDashboardConfig]', host: { class: 'ui-dashboard__config-slot' } })\nexport class UiDashboardConfig {}\n\n/** Élément affiché : disposition + définition + contexte du widget. */\ninterface Entry {\n item: UiDashboardItem;\n definition: UiWidgetDefinition<object>;\n context: UiWidgetContext<object>;\n injector: Injector;\n column: string;\n row: string;\n}\n\ntype DragMode = 'move' | 'resize';\n\n/**\n * Cadre d'un widget : en-tête (poignée, titre, retourner, configurer, retirer), faces recto / verso, poignée de taille.\n * Interne au tableau de bord.\n */\n@Component({\n selector: 'ui-dashboard-widget',\n imports: [NgTemplateOutlet, NgComponentOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-dashboard-widget',\n '[style.grid-column]': 'entry().column',\n '[style.grid-row]': 'entry().row',\n '[attr.data-widget-id]': 'entry().item.id',\n },\n template: `\n @let ctx = entry().context;\n @let title = ctx.title();\n @let back = ctx.templates.back();\n <article\n class=\"ui-widget\"\n [attr.aria-labelledby]=\"titleId\"\n [class.ui-widget--flipped]=\"ctx.flipped()\"\n [class.ui-widget--selected]=\"selected()\"\n [class.ui-widget--dragging]=\"dragging()\"\n >\n <header class=\"ui-widget__header\">\n @if (canEdit()) {\n <button\n type=\"button\"\n class=\"ui-widget__handle ui-widget__move\"\n data-handle=\"move\"\n [attr.aria-label]=\"'Déplacer ' + title\"\n [attr.aria-describedby]=\"helpId()\"\n (pointerdown)=\"dashboard.startPointer($event, ctx.id, 'move')\"\n (keydown)=\"dashboard.onHandleKey($event, ctx.id, 'move')\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"6\" r=\"1.6\" /><circle cx=\"15\" cy=\"6\" r=\"1.6\" /><circle cx=\"9\" cy=\"12\" r=\"1.6\" />\n <circle cx=\"15\" cy=\"12\" r=\"1.6\" /><circle cx=\"9\" cy=\"18\" r=\"1.6\" /><circle cx=\"15\" cy=\"18\" r=\"1.6\" />\n </svg>\n </button>\n }\n <span class=\"ui-widget__title\" role=\"heading\" [attr.aria-level]=\"headingLevel()\" [id]=\"titleId\">{{ title }}</span>\n <div class=\"ui-widget__actions\">\n @if (back) {\n <button\n type=\"button\"\n class=\"ui-widget__action\"\n [attr.aria-label]=\"(ctx.flipped() ? 'Afficher le recto de ' : 'Afficher le verso de ') + title\"\n [attr.aria-pressed]=\"ctx.flipped()\"\n (click)=\"ctx.flip()\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M3 12a9 9 0 0 1 15.5-6.2L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-15.5 6.2L3 16\" /><path d=\"M3 21v-5h5\" />\n </svg>\n </button>\n }\n @if (ctx.templates.settings() || dashboard.editing()) {\n <button\n type=\"button\"\n class=\"ui-widget__action\"\n [attr.aria-label]=\"'Configurer ' + title\"\n [attr.aria-expanded]=\"selected() && dashboard.editing()\"\n [attr.aria-controls]=\"dashboard.editing() ? dashboard.configId : null\"\n (click)=\"dashboard.configure(ctx.id)\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0\" /><circle cx=\"16\" cy=\"6\" r=\"2\" /><circle cx=\"10\" cy=\"12\" r=\"2\" /><circle cx=\"18\" cy=\"18\" r=\"2\" />\n </svg>\n </button>\n }\n @if (dashboard.editing()) {\n <button type=\"button\" class=\"ui-widget__action ui-widget__remove\" [attr.aria-label]=\"'Retirer ' + title\" (click)=\"dashboard.removeWidget(ctx.id)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M18 6 6 18M6 6l12 12\" /></svg>\n </button>\n }\n </div>\n </header>\n\n <div class=\"ui-widget__flipper\">\n <div\n class=\"ui-widget__face ui-widget__face--front\"\n [attr.inert]=\"back && ctx.flipped() ? '' : null\"\n [attr.tabindex]=\"scrollable().front ? 0 : null\"\n [attr.role]=\"scrollable().front ? 'group' : null\"\n [attr.aria-label]=\"scrollable().front ? title + (back ? ' (recto)' : '') : null\"\n >\n @if (ctx.templates.front(); as front) {\n <ng-container [ngTemplateOutlet]=\"front\" />\n }\n </div>\n @if (back) {\n <div\n class=\"ui-widget__face ui-widget__face--back\"\n [attr.inert]=\"ctx.flipped() ? null : ''\"\n [attr.tabindex]=\"scrollable().back ? 0 : null\"\n [attr.role]=\"scrollable().back ? 'group' : null\"\n [attr.aria-label]=\"scrollable().back ? title + ' (verso)' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"back\" />\n </div>\n }\n </div>\n\n @if (canEdit()) {\n <button\n type=\"button\"\n class=\"ui-widget__handle ui-widget__resize\"\n data-handle=\"resize\"\n [attr.aria-label]=\"'Redimensionner ' + title + ' (' + entry().item.w + ' × ' + entry().item.h + ')'\"\n [attr.aria-describedby]=\"helpId()\"\n (pointerdown)=\"dashboard.startPointer($event, ctx.id, 'resize')\"\n (keydown)=\"dashboard.onHandleKey($event, ctx.id, 'resize')\"\n >\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M20 10v10H10M20 20 9 9\" /></svg>\n </button>\n }\n <!-- Instance du composant de widget : il ne rend rien lui-même, ses faces sont affichées ci-dessus. -->\n <div hidden><ng-container *ngComponentOutlet=\"entry().definition.component; injector: entry().injector\" /></div>\n </article>\n `,\n styleUrl: './widget.css',\n})\nclass UiDashboardWidgetFrame {\n readonly entry = input.required<Entry>();\n readonly selected = input(false);\n readonly dragging = input(false);\n readonly canEdit = input(false);\n readonly headingLevel = input(3);\n readonly helpId = input('');\n protected readonly dashboard = inject(UiDashboard);\n protected readonly titleId = uniqueId('ui-widget-title');\n /** Faces dont le contenu déborde : focalisables pour défiler au clavier. */\n protected readonly scrollable = signal({ front: false, back: false });\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (typeof ResizeObserver === 'undefined') return;\n const check = () => {\n const overflows = (selector: string) => {\n const face = this.host.querySelector<HTMLElement>(selector);\n return !!face && face.scrollHeight > face.clientHeight + 1;\n };\n const next = { front: overflows('.ui-widget__face--front'), back: overflows('.ui-widget__face--back') };\n const current = this.scrollable();\n if (next.front !== current.front || next.back !== current.back) this.scrollable.set(next);\n };\n // Taille du widget ou de son contenu modifiée → nouveau calcul.\n const observer = new ResizeObserver(check);\n const observeFaces = () => this.host.querySelectorAll('.ui-widget__face, .ui-widget__face > *').forEach((el) => observer.observe(el));\n observeFaces();\n const mutations = new MutationObserver(() => {\n observeFaces();\n check();\n });\n mutations.observe(this.host, { childList: true, subtree: true });\n destroyRef.onDestroy(() => {\n observer.disconnect();\n mutations.disconnect();\n });\n });\n }\n}\n\n/**\n * Tableau de bord personnalisable : widgets sur une grille, déplaçables et redimensionnables, à deux faces\n * (recto / verso, comme une carte qu'on retourne), avec une colonne « Personnaliser » à droite pour régler le widget\n * sélectionné et en ajouter d'autres.\n *\n * - **Disposition** : `[(items)]` (positions en colonnes × lignes) ; `layoutChange` émet une `UiDashboardLayout`\n * sérialisable à chaque modification de l'utilisateur, à enregistrer côté serveur. Valider les données relues avec\n * `sanitizeDashboardLayout()`.\n * - **Personnalisation** (`[(editing)]`) : poignées de déplacement et de taille, à la souris, au doigt ou au clavier\n * (flèches sur les poignées, Échap pour annuler un glisser). Les autres widgets se poussent puis la grille se tasse.\n * - **Widgets** : un composant Angular par type (`UiWidgetDefinition.component`), qui déclare ses faces avec\n * `uiWidgetFront`, `uiWidgetBack` (facultatif) et `uiWidgetSettings` (facultatif), et lit / modifie ses réglages\n * avec `injectUiWidgetContext()`.\n * - **Petite largeur** (sous `breakpoint`, largeur du composant) : une colonne dans l'ordre de lecture, disposition\n * conservée ; déplacement et redimensionnement désactivés.\n *\n * @slot [uiDashboardToolbar] - Contenu de la barre au-dessus de la grille (titre, état de l'enregistrement).\n * @slot [uiDashboardConfig] - Réglages généraux en bas de la colonne « Personnaliser ».\n * @cssprop --ui-dashboard-config-width - Largeur de la colonne « Personnaliser » (défaut : `18rem`).\n * @cssprop --ui-widget-bg - Fond des widgets (défaut : `--ui-color-surface`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-dashboard',\n imports: [UiDashboardWidgetFrame, NgTemplateOutlet, UiButton, UiIcon, UiTextField, UiSelect],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ui-dashboard',\n '[class.ui-dashboard--editing]': 'editing()',\n '[class.ui-dashboard--narrow]': 'narrow()',\n '[class.ui-dashboard--dragging]': '!!drag()',\n '[attr.role]': '\"region\"',\n '[attr.aria-label]': 'ariaLabel()',\n },\n template: `\n <div class=\"ui-dashboard__toolbar\">\n <ng-content select=\"[uiDashboardToolbar]\" />\n <button\n uiButton\n type=\"button\"\n size=\"sm\"\n class=\"ui-dashboard__customize\"\n [variant]=\"editing() ? 'primary' : 'outline'\"\n [icon]=\"editing() ? undefined : customizeIcon()\"\n [attr.aria-pressed]=\"editing()\"\n [attr.aria-controls]=\"editing() ? configId : null\"\n (click)=\"toggleEditing()\"\n >\n {{ editing() ? doneLabel() : customizeLabel() }}\n </button>\n </div>\n\n <div class=\"ui-dashboard__body\">\n <div\n #grid\n class=\"ui-dashboard__grid\"\n [style.--_columns]=\"narrow() ? 1 : columns()\"\n [style.--_row]=\"rowHeight() + 'px'\"\n [style.--_gap]=\"gap() + 'px'\"\n >\n @for (entry of entries(); track entry.item.id) {\n <ui-dashboard-widget\n [entry]=\"entry\"\n [selected]=\"selectedId() === entry.item.id\"\n [dragging]=\"drag()?.id === entry.item.id\"\n [canEdit]=\"editing() && !narrow()\"\n [headingLevel]=\"headingLevel() + 1\"\n [helpId]=\"helpId\"\n />\n } @empty {\n <div class=\"ui-dashboard__empty\">\n <p>{{ emptyLabel() }}</p>\n @if (!editing() && widgets().length) {\n <button uiButton type=\"button\" variant=\"outline\" size=\"sm\" icon=\"lucide:plus\" (click)=\"editing.set(true)\">Ajouter un widget</button>\n }\n </div>\n }\n </div>\n\n @if (editing()) {\n <section class=\"ui-dashboard__config\" [id]=\"configId\" [attr.aria-labelledby]=\"configId + '-title'\">\n <div class=\"ui-dashboard__config-head\">\n <span class=\"ui-dashboard__config-title\" role=\"heading\" [attr.aria-level]=\"headingLevel()\" [id]=\"configId + '-title'\">{{ customizeLabel() }}</span>\n <button type=\"button\" class=\"ui-dashboard__close\" [attr.aria-label]=\"'Fermer : ' + customizeLabel()\" (click)=\"toggleEditing()\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M18 6 6 18M6 6l12 12\" /></svg>\n </button>\n </div>\n\n @if (selectedEntry(); as selected) {\n <section class=\"ui-dashboard__section\" [attr.aria-labelledby]=\"configId + '-widget'\">\n <span #widgetHeading class=\"ui-dashboard__section-title\" role=\"heading\" tabindex=\"-1\" [attr.aria-level]=\"headingLevel() + 1\" [id]=\"configId + '-widget'\">\n {{ selected.context.title() }}\n </span>\n <ui-text-field\n label=\"Titre\"\n size=\"sm\"\n [placeholder]=\"selected.definition.title\"\n [value]=\"selected.item.title ?? ''\"\n (valueChange)=\"setTitle(selected.item.id, $event)\"\n />\n <div class=\"ui-dashboard__size\">\n <ui-select label=\"Largeur\" size=\"sm\" [options]=\"widthOptions(selected)\" [value]=\"selected.item.w\" (valueChange)=\"resize(selected.item.id, $event, null)\" />\n <ui-select label=\"Hauteur\" size=\"sm\" [options]=\"heightOptions(selected)\" [value]=\"selected.item.h\" (valueChange)=\"resize(selected.item.id, null, $event)\" />\n </div>\n @if (selected.context.templates.settings(); as settings) {\n <div class=\"ui-dashboard__widget-settings\">\n <ng-container [ngTemplateOutlet]=\"settings\" />\n </div>\n }\n <button uiButton type=\"button\" variant=\"ghost\" size=\"sm\" icon=\"lucide:trash-2\" (click)=\"removeWidget(selected.item.id)\">\n Retirer ce widget\n </button>\n </section>\n }\n\n <section class=\"ui-dashboard__section\" [attr.aria-labelledby]=\"configId + '-catalog'\">\n <span class=\"ui-dashboard__section-title\" role=\"heading\" [attr.aria-level]=\"headingLevel() + 1\" [id]=\"configId + '-catalog'\">Ajouter un widget</span>\n @let groups = catalogGroups();\n @if (groups.length === 1 && !groups[0].named) {\n <ng-container [ngTemplateOutlet]=\"catalogList\" [ngTemplateOutletContext]=\"{ $implicit: groups[0].widgets }\" />\n } @else {\n <!-- Tiroirs : <details> natifs (clavier, état ouvert / fermé annoncé), un seul ouvert en mode accordéon. -->\n <div class=\"ui-dashboard__drawers\">\n @for (group of groups; track group.name) {\n <details class=\"ui-dashboard__drawer\" [open]=\"openCategories().has(group.name)\" (toggle)=\"onCategoryToggle(group.name, $event)\">\n <summary class=\"ui-dashboard__drawer-summary\">\n @if (group.icon) {\n <ui-icon class=\"ui-dashboard__drawer-icon\" [name]=\"group.icon\" />\n }\n <span class=\"ui-dashboard__drawer-text\">\n <span class=\"ui-dashboard__drawer-name\">{{ group.label }}</span>\n @if (group.description) {\n <span class=\"ui-dashboard__drawer-description\">{{ group.description }}</span>\n }\n </span>\n <span class=\"ui-dashboard__drawer-count\">{{ group.widgets.length }}<span class=\"ui-dashboard__sr\"> widget{{ group.widgets.length > 1 ? 's' : '' }}</span></span>\n <svg class=\"ui-dashboard__drawer-chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 6 6 6-6 6\" /></svg>\n </summary>\n <div class=\"ui-dashboard__drawer-body\">\n <ng-container [ngTemplateOutlet]=\"catalogList\" [ngTemplateOutletContext]=\"{ $implicit: group.widgets }\" />\n </div>\n </details>\n }\n </div>\n }\n </section>\n <ng-template #catalogList let-widgets>\n <ul class=\"ui-dashboard__catalog\">\n @for (definition of asDefinitions(widgets); track definition.type) {\n @let full = isFull(definition);\n <li class=\"ui-dashboard__catalog-item\">\n @if (definition.icon) {\n <ui-icon class=\"ui-dashboard__catalog-icon\" [name]=\"definition.icon\" />\n }\n <span class=\"ui-dashboard__catalog-text\">\n <strong>{{ definition.title }}</strong>\n @if (definition.description) {\n <span>{{ definition.description }}</span>\n }\n @if (full) {\n <span>Déjà sur le tableau de bord.</span>\n }\n </span>\n <button\n uiButton\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n iconOnly\n icon=\"lucide:plus\"\n [attr.aria-label]=\"'Ajouter ' + definition.title\"\n [disabled]=\"full\"\n (click)=\"addWidget(definition.type)\"\n ></button>\n </li>\n }\n </ul>\n </ng-template>\n <ng-content select=\"[uiDashboardConfig]\" />\n </section>\n }\n </div>\n\n <p class=\"ui-dashboard__sr\" [id]=\"helpId\">\n Flèches : déplacer d'une case (poignée de déplacement) ou changer la taille (poignée de taille). Échap : annuler un glisser.\n </p>\n <p class=\"ui-dashboard__sr\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n `,\n styleUrl: './dashboard.css',\n})\nexport class UiDashboard {\n /** Types de widgets disponibles (catalogue). */\n readonly widgets = input<readonly UiWidgetDefinition<object>[]>([]);\n /**\n * Ordre et présentation des catégories du catalogue (icône, description). Les catégories non listées suivent,\n * dans l'ordre d'apparition ; les widgets sans catégorie sont rangés dans « Autres ».\n */\n readonly widgetCategories = input<readonly UiWidgetCategory[]>([]);\n /** Tiroirs du catalogue en accordéon : ouvrir une catégorie referme les autres. */\n readonly catalogAccordion = input(true, { transform: booleanAttribute });\n /** Nom de la catégorie des widgets qui n'en déclarent pas. */\n readonly otherCategoryLabel = input('Autres');\n /** Widgets placés (liaison bidirectionnelle `[(items)]`). */\n readonly items = model<UiDashboardItem[]>([]);\n /** Mode personnalisation : poignées et colonne « Personnaliser » (liaison `[(editing)]`). */\n readonly editing = model(false);\n /** Widget sélectionné dans la colonne « Personnaliser » (liaison `[(selectedId)]`). */\n readonly selectedId = model<string | null>(null);\n /** Nombre de colonnes de la grille. */\n readonly columns = input(12, { transform: numberAttribute });\n /** Hauteur d'une ligne de grille, en pixels. */\n readonly rowHeight = input(88, { transform: numberAttribute });\n /** Espace entre widgets, en pixels. */\n readonly gap = input(16, { transform: numberAttribute });\n /** Remonte les widgets dans les espaces libres (gravité verticale). */\n readonly compact = input(true, { transform: booleanAttribute });\n /** Largeur du composant (px) sous laquelle les widgets s'empilent sur une colonne (disposition conservée). */\n readonly breakpoint = input(640, { transform: numberAttribute });\n /** Niveau de titre de la colonne « Personnaliser » ; les titres des widgets sont au niveau suivant. */\n readonly headingLevel = input(2, { transform: numberAttribute });\n /** Nom accessible du tableau de bord. */\n readonly ariaLabel = input('Tableau de bord');\n /** Libellé du bouton de personnalisation (et titre de la colonne). */\n readonly customizeLabel = input('Personnaliser');\n /** Icône du bouton de personnalisation. */\n readonly customizeIcon = input<string | undefined>('lucide:settings');\n /** Libellé du bouton qui termine la personnalisation. */\n readonly doneLabel = input('Terminer');\n /** Message quand aucun widget n'est placé. */\n readonly emptyLabel = input('Aucun widget pour le moment.');\n\n /** Émis après chaque modification de l'utilisateur (déplacement, taille, ajout, retrait, réglages, titre). */\n readonly layoutChange = output<UiDashboardLayout>();\n\n private readonly injector = inject(Injector);\n private readonly document = inject(DOCUMENT);\n private readonly gridRef = viewChild.required<ElementRef<HTMLElement>>('grid');\n private readonly widgetHeading = viewChild<ElementRef<HTMLElement>>('widgetHeading');\n /** @internal */\n readonly configId = uniqueId('ui-dashboard-config');\n protected readonly helpId = `${this.configId}-help`;\n protected readonly announcement = signal('');\n private readonly width = signal<number | null>(null);\n private readonly flipped = signal<ReadonlySet<string>>(new Set());\n /** Glisser en cours. */\n protected readonly drag = signal<{ id: string; mode: DragMode } | null>(null);\n /** Disposition provisoire pendant un glisser. */\n private readonly preview = signal<UiDashboardItem[] | null>(null);\n private readonly contexts = new Map<string, { context: UiWidgetContext<object>; injector: Injector }>();\n\n /** `true` sous `breakpoint` : une seule colonne, édition de la disposition désactivée. */\n readonly narrow = computed(() => {\n const width = this.width();\n return width !== null && width < this.breakpoint();\n });\n\n private readonly definitions = computed(() => new Map(this.widgets().map((d) => [d.type, d])));\n\n /** Disposition normalisée (bornée, sans chevauchement) : base de toutes les opérations. */\n private readonly layout = computed(() => {\n const columns = this.columns();\n const known = this.items()\n .filter((item) => this.definitions().has(item.type))\n .map((item) => clampItem(item, columns, this.definitions().get(item.type)));\n return resolveLayout(known, null, this.compact());\n });\n\n protected readonly entries = computed<Entry[]>(() => {\n const narrow = this.narrow();\n const committed = this.layout();\n // Pendant un glisser, l'ordre du DOM ne bouge pas (déplacer l'élément ferait perdre la capture du pointeur) :\n // seules les positions viennent de la disposition provisoire.\n const preview = new Map((this.preview() ?? []).map((item) => [item.id, item]));\n for (const id of [...this.contexts.keys()]) if (!committed.some((item) => item.id === id)) this.contexts.delete(id);\n return sortByPosition(committed).map((committedItem) => {\n const item = preview.get(committedItem.id) ?? committedItem;\n const definition = this.definitions().get(item.type) as UiWidgetDefinition<object>;\n const { context, injector } = this.contextFor(item.id, definition);\n return {\n item,\n definition,\n context,\n injector,\n column: narrow ? '1 / -1' : `${item.x + 1} / span ${item.w}`,\n row: narrow ? `auto / span ${item.h}` : `${item.y + 1} / span ${item.h}`,\n };\n });\n });\n\n /** Catalogue regroupé par catégorie, dans l'ordre de `widgetCategories` puis d'apparition ; « Autres » en dernier. */\n protected readonly catalogGroups = computed(() => {\n const byName = new Map<string, UiWidgetDefinition<object>[]>();\n for (const definition of this.widgets()) {\n const name = definition.category?.trim() ?? '';\n const list = byName.get(name) ?? [];\n list.push(definition);\n byName.set(name, list);\n }\n const known = this.widgetCategories();\n const names = [\n ...known.map((c) => c.name).filter((name) => byName.has(name)),\n ...[...byName.keys()].filter((name) => name && !known.some((c) => c.name === name)),\n ...(byName.has('') ? [''] : []),\n ];\n return names.map((name) => {\n const meta = known.find((c) => c.name === name);\n return {\n name,\n named: name !== '',\n label: name || this.otherCategoryLabel(),\n icon: meta?.icon,\n description: meta?.description,\n widgets: byName.get(name) ?? [],\n };\n });\n });\n\n /** Tiroirs ouverts choisis par l'utilisateur (par défaut : le premier). */\n private readonly openedCategories = signal<ReadonlySet<string> | null>(null);\n protected readonly openCategories = computed<ReadonlySet<string>>(\n () => this.openedCategories() ?? new Set(this.catalogGroups().slice(0, 1).map((g) => g.name)),\n );\n\n protected readonly selectedEntry = computed(() => this.entries().find((e) => e.item.id === this.selectedId()) ?? null);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n // Largeur du composant (pas de la grille, qui rétrécit quand la colonne « Personnaliser » s'ouvre).\n const host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n afterNextRender(() => {\n const measure = (w: number) => {\n if (w > 0) this.width.set(w);\n };\n measure(host.getBoundingClientRect().width);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => measure(entry.contentRect.width));\n observer.observe(host);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n if (isDevMode()) {\n afterNextRender(() => {\n const unknown = this.items().filter((item) => !this.definitions().has(item.type)).map((item) => item.type);\n if (unknown.length) console.warn(`[ic-angular-uikit] ui-dashboard : types de widgets inconnus ignorés : ${[...new Set(unknown)].join(', ')}`);\n });\n }\n }\n\n /** Disposition sérialisable courante. */\n getLayout(): UiDashboardLayout {\n return { version: 1, columns: this.columns(), items: this.layout().map((item) => ({ ...item })) };\n }\n\n /** Ajoute un widget à la première place libre et le sélectionne. Renvoie son identifiant (ou `null`). */\n addWidget(type: string): string | null {\n const definition = this.definitions().get(type);\n if (!definition || this.isFull(definition)) return null;\n const columns = this.columns();\n const base = clampItem({ id: '', type, x: 0, y: 0, ...definition.defaultSize }, columns, definition);\n const spot = findFreeSpot(this.layout(), base.w, base.h, columns);\n const id = `${type.slice(0, 40)}-${randomId()}`;\n const item: UiDashboardItem = { ...base, ...spot, id };\n this.commit(resolveLayout([...this.layout(), item], id, this.compact()));\n this.selectedId.set(id);\n this.announce(`${definition.title} ajouté.`);\n afterNextRender(\n () => this.gridRef().nativeElement.querySelector(`[data-widget-id=\"${id}\"]`)?.scrollIntoView({ block: 'nearest', behavior: 'smooth' }),\n { injector: this.injector },\n );\n return id;\n }\n\n /** Retire un widget. */\n removeWidget(id: string): void {\n const entries = this.entries();\n const index = entries.findIndex((e) => e.item.id === id);\n if (index < 0) return;\n const title = entries[index].context.title();\n const focusWasInside = this.gridRef().nativeElement.querySelector(`[data-widget-id=\"${id}\"]`)?.contains(this.document.activeElement);\n this.commit(resolveLayout(this.layout().filter((item) => item.id !== id), null, this.compact()));\n if (this.selectedId() === id) this.selectedId.set(null);\n this.announce(`${title} retiré.`);\n // Le bouton cliqué disparaît : focus sur le widget voisin, sinon sur le bouton de personnalisation.\n if (focusWasInside || this.document.activeElement === this.document.body) {\n const neighbour = entries[index + 1] ?? entries[index - 1];\n afterNextRender(\n () => {\n const host = this.gridRef().nativeElement.parentElement?.parentElement;\n const target = neighbour\n ? this.gridRef().nativeElement.querySelector<HTMLElement>(`[data-widget-id=\"${neighbour.item.id}\"] .ui-widget__move, [data-widget-id=\"${neighbour.item.id}\"] button`)\n : host?.querySelector<HTMLElement>('.ui-dashboard__customize');\n target?.focus();\n },\n { injector: this.injector },\n );\n }\n }\n\n /** Ouvre la colonne « Personnaliser » sur un widget. */\n configure(id: string): void {\n this.selectedId.set(id);\n this.editing.set(true);\n afterNextRender(() => this.widgetHeading()?.nativeElement.focus(), { injector: this.injector });\n }\n\n /** Bascule le mode personnalisation. */\n toggleEditing(): void {\n this.editing.update((editing) => !editing);\n if (!this.editing()) this.cancelDrag();\n }\n\n /** @internal */\n isFull(definition: UiWidgetDefinition<object>): boolean {\n return definition.maxInstances !== undefined && this.layout().filter((i) => i.type === definition.type).length >= definition.maxInstances;\n }\n\n /** @internal Mise à jour d'un élément (réglages, titre) sans changer la disposition. */\n updateItem(id: string, change: Partial<UiDashboardItem>): void {\n this.commit(this.layout().map((item) => (item.id === id ? { ...item, ...change, id } : item)), false);\n }\n\n /** @internal */\n setFlipped(id: string, flipped: boolean): void {\n this.flipped.update((set) => {\n const next = new Set(set);\n if (flipped) next.add(id);\n else next.delete(id);\n return next;\n });\n }\n\n protected onCategoryToggle(name: string, event: Event): void {\n const open = (event.target as HTMLDetailsElement).open;\n const current = this.openCategories();\n if (open === current.has(name)) return;\n if (open) this.openedCategories.set(this.catalogAccordion() ? new Set([name]) : new Set([...current, name]));\n else this.openedCategories.set(new Set([...current].filter((n) => n !== name)));\n }\n\n protected asDefinitions(value: unknown): UiWidgetDefinition<object>[] {\n return value as UiWidgetDefinition<object>[];\n }\n\n protected setTitle(id: string, title: string): void {\n const trimmed = title.trim().slice(0, 120);\n this.updateItem(id, { title: trimmed || undefined });\n }\n\n protected resize(id: string, w: number | null, h: number | null): void {\n const item = this.layout().find((i) => i.id === id);\n if (!item) return;\n this.commit(moveItem(this.layout(), id, { w: w ?? item.w, h: h ?? item.h }, this.columns(), this.definitions().get(item.type), this.compact()));\n }\n\n protected widthOptions(entry: Entry): UiSelectOption<number>[] {\n const max = Math.min(this.columns(), entry.definition.maxW ?? this.columns());\n const min = Math.min(max, entry.definition.minW ?? 1);\n return range(min, max).map((n) => ({ value: n, label: `${n} colonne${n > 1 ? 's' : ''} sur ${this.columns()}` }));\n }\n\n protected heightOptions(entry: Entry): UiSelectOption<number>[] {\n const max = entry.definition.maxH ?? Math.max(8, entry.item.h);\n const min = Math.min(max, entry.definition.minH ?? 1);\n return range(min, max).map((n) => ({ value: n, label: `${n} ligne${n > 1 ? 's' : ''}` }));\n }\n\n /** @internal Glisser à la souris / au doigt depuis une poignée. */\n startPointer(event: PointerEvent, id: string, mode: DragMode): void {\n if (event.button !== 0 || !this.editing() || this.narrow()) return;\n const origin = this.layout().find((item) => item.id === id);\n if (!origin) return;\n event.preventDefault();\n const handle = event.currentTarget as HTMLElement;\n handle.setPointerCapture(event.pointerId);\n handle.focus({ preventScroll: true });\n const grid = this.gridRef().nativeElement;\n const style = getComputedStyle(grid);\n const gap = parseFloat(style.columnGap) || 0;\n const columns = this.columns();\n const stepX = (grid.clientWidth - gap * (columns - 1)) / columns + gap;\n const stepY = this.rowHeight() + gap;\n const rtl = style.direction === 'rtl';\n const startX = event.clientX;\n const startY = event.clientY;\n const limits = this.definitions().get(origin.type);\n this.drag.set({ id, mode });\n this.selectedId.set(id);\n\n const move = (e: PointerEvent) => {\n const dx = Math.round(((rtl ? -1 : 1) * (e.clientX - startX)) / stepX);\n const dy = Math.round((e.clientY - startY) / stepY);\n const change = mode === 'move' ? { x: origin.x + dx, y: origin.y + dy } : { w: origin.w + dx, h: origin.h + dy };\n this.preview.set(moveItem(this.layout(), id, change, columns, limits, this.compact()));\n // Défilement de la page près des bords (le pointeur capturé ne fait pas défiler).\n const view = this.document.defaultView;\n if (view) {\n if (e.clientY > view.innerHeight - 48) view.scrollBy(0, 16);\n else if (e.clientY < 48) view.scrollBy(0, -16);\n }\n };\n const end = (e: PointerEvent) => {\n handle.removeEventListener('pointermove', move);\n handle.removeEventListener('pointerup', end);\n handle.removeEventListener('pointercancel', end);\n handle.removeEventListener('lostpointercapture', end);\n if (!this.drag()) return; // déjà annulé (Échap)\n const preview = this.preview();\n // Capture perdue sans pointerup (élément retiré, fenêtre quittée) : on garde la dernière position vue.\n if (e.type !== 'pointercancel' && preview) this.commit(preview);\n this.preview.set(null);\n this.drag.set(null);\n this.announcePosition(id, mode);\n };\n handle.addEventListener('pointermove', move);\n handle.addEventListener('pointerup', end);\n handle.addEventListener('pointercancel', end);\n handle.addEventListener('lostpointercapture', end);\n }\n\n /** @internal Clavier sur les poignées : flèches = une case ; Échap annule un glisser. */\n onHandleKey(event: KeyboardEvent, id: string, mode: DragMode): void {\n if (event.key === 'Escape' && this.drag()) {\n event.preventDefault();\n this.cancelDrag();\n return;\n }\n const rtl = getComputedStyle(event.currentTarget as HTMLElement).direction === 'rtl';\n const deltas: Record<string, [number, number]> = {\n ArrowLeft: [rtl ? 1 : -1, 0],\n ArrowRight: [rtl ? -1 : 1, 0],\n ArrowUp: [0, -1],\n ArrowDown: [0, 1],\n };\n const delta = deltas[event.key];\n const item = this.layout().find((i) => i.id === id);\n if (!delta || !item || this.drag()) return;\n event.preventDefault();\n const [dx, dy] = delta;\n const change = mode === 'move' ? { x: item.x + dx, y: item.y + dy } : { w: item.w + dx, h: item.h + dy };\n this.commit(moveItem(this.layout(), id, change, this.columns(), this.definitions().get(item.type), this.compact()));\n this.announcePosition(id, mode);\n }\n\n private cancelDrag(): void {\n if (!this.drag()) return;\n this.preview.set(null);\n this.drag.set(null);\n this.announce('Déplacement annulé.');\n }\n\n private announcePosition(id: string, mode: DragMode): void {\n const entry = this.entries().find((e) => e.item.id === id);\n if (!entry) return;\n const { x, y, w, h } = entry.item;\n this.announce(\n mode === 'move'\n ? `${entry.context.title()} : colonne ${x + 1}, ligne ${y + 1}.`\n : `${entry.context.title()} : ${w} colonne${w > 1 ? 's' : ''} de large, ${h} ligne${h > 1 ? 's' : ''} de haut.`,\n );\n }\n\n private announce(message: string): void {\n // Même message deux fois de suite : on le modifie pour qu'il soit relu.\n this.announcement.set(this.announcement() === message ? `${message} ` : message);\n }\n\n /** Enregistre une nouvelle disposition (ordre du DOM = ordre de lecture) et notifie. */\n private commit(items: UiDashboardItem[], relayout = true): void {\n const active = this.document.activeElement as HTMLElement | null;\n const grid = this.gridRef().nativeElement;\n const next = relayout ? sortByPosition(items) : items;\n this.items.set(next);\n this.layoutChange.emit({ version: 1, columns: this.columns(), items: next.map((item) => ({ ...item })) });\n // Réordonner le DOM fait perdre le focus à l'élément déplacé : on le lui rend.\n if (active && grid.contains(active)) {\n afterNextRender(\n () => {\n if (this.document.activeElement !== active && active.isConnected) active.focus({ preventScroll: true });\n },\n { injector: this.injector },\n );\n }\n }\n\n private contextFor(id: string, definition: UiWidgetDefinition<object>): { context: UiWidgetContext<object>; injector: Injector } {\n const cached = this.contexts.get(id);\n if (cached && cached.context.definition === definition) return cached;\n // Dernière valeur connue conservée : le widget peut encore lire son état pendant sa destruction.\n let last: UiDashboardItem | undefined;\n const item: Signal<UiDashboardItem> = computed(() => {\n const found = (this.preview() ?? this.layout()).find((i) => i.id === id);\n if (found) last = found;\n return (found ?? last) as UiDashboardItem;\n });\n const context = new UiWidgetContext<object>(id, item, definition, computed(() => this.flipped().has(id)), this.editing, this);\n const injector = Injector.create({ providers: [{ provide: UiWidgetContext, useValue: context }], parent: this.injector });\n const created = { context, injector };\n this.contexts.set(id, created);\n return created;\n }\n}\n\nfunction range(min: number, max: number): number[] {\n return Array.from({ length: Math.max(0, max - min + 1) }, (_, i) => min + i);\n}\n\n/** Identifiant aléatoire court (crypto, pas Math.random). */\nfunction randomId(): string {\n const bytes = new Uint8Array(6);\n crypto.getRandomValues(bytes);\n return Array.from(bytes, (b) => b.toString(16).padStart(2, '0')).join('');\n}\n","import { UiTone } from '../core/types';\n\n/** Une personne dans une unité. */\nexport interface UiOrgPerson {\n id: string;\n name: string;\n /** Fonction affichée sous le nom. */\n title?: string;\n /** Responsable de l'unité (affiché en tête de carte). */\n head?: boolean;\n /** URL de la photo (sinon initiales). Elle doit être autorisée par la CSP (`img-src`). */\n photo?: string;\n /** Données libres, disponibles dans les templates. */\n data?: unknown;\n}\n\n/**\n * Relation d'une unité avec son parent :\n * - `hierarchical` : sous le parent, trait plein (défaut) ;\n * - `attached` : rattachée sur le côté du parent (secrétariat, assistant, cellule d'appui) ;\n * - `transverse` : lien fonctionnel, placée sous le parent mais reliée en pointillés.\n */\nexport type UiOrgRelation = 'hierarchical' | 'attached' | 'transverse';\n\n/** Une unité d'organisation. */\nexport interface UiOrgUnit {\n id: string;\n name: string;\n /** Unité parente (absente pour une racine). */\n parentId?: string | null;\n relation?: UiOrgRelation;\n /** Côté d'une unité rattachée (`attached`) ; par défaut, alternance gauche / droite. */\n side?: 'left' | 'right';\n /** Code ou sigle affiché à côté du nom (« DRH »). */\n code?: string;\n /** Couleur d'accent de la carte. */\n tone?: UiTone;\n people?: readonly UiOrgPerson[];\n /** Données libres, disponibles dans les templates. */\n data?: unknown;\n}\n\n/** Lien transverse libre entre deux unités (pointillés), ex. relation fonctionnelle ou projet commun. */\nexport interface UiOrgLink {\n from: string;\n to: string;\n label?: string;\n}\n\n/** Nœud calculé de l'organigramme. */\nexport interface UiOrgNode {\n unit: UiOrgUnit;\n depth: number;\n /** Enfants hiérarchiques et transverses, sous l'unité. */\n children: UiOrgNode[];\n /** Unités rattachées, de part et d'autre du trait vertical. */\n staffLeft: UiOrgNode[];\n staffRight: UiOrgNode[];\n /** Nombre total d'unités descendantes (pour « Déplier (12) »). */\n descendants: number;\n}\n\n/**\n * Construit l'arbre à partir d'une liste plate d'unités. Les parents inconnus et les cycles sont ignorés\n * (l'unité devient une racine) et signalés dans `warnings`.\n */\nexport function buildOrgTree(units: readonly UiOrgUnit[]): { roots: UiOrgNode[]; warnings: string[] } {\n const warnings: string[] = [];\n const byId = new Map<string, UiOrgUnit>();\n for (const unit of units) {\n if (byId.has(unit.id)) warnings.push(`Identifiant en double : « ${unit.id} ».`);\n byId.set(unit.id, unit);\n }\n const parentOf = (unit: UiOrgUnit): string | null => {\n const parent = unit.parentId ?? null;\n if (parent === null) return null;\n if (!byId.has(parent)) {\n warnings.push(`Parent inconnu « ${parent} » pour « ${unit.id} » : affichée comme racine.`);\n return null;\n }\n // Détection de cycle : on remonte la chaîne des parents.\n const seen = new Set([unit.id]);\n let current: string | null = parent;\n while (current) {\n if (seen.has(current)) {\n warnings.push(`Cycle détecté autour de « ${unit.id} » : affichée comme racine.`);\n return null;\n }\n seen.add(current);\n current = byId.get(current)?.parentId ?? null;\n if (current && !byId.has(current)) break;\n }\n return parent;\n };\n\n const childrenOf = new Map<string | null, UiOrgUnit[]>();\n for (const unit of byId.values()) {\n const parent = parentOf(unit);\n const list = childrenOf.get(parent) ?? [];\n list.push(unit);\n childrenOf.set(parent, list);\n }\n\n const build = (unit: UiOrgUnit, depth: number): UiOrgNode => {\n const node: UiOrgNode = { unit, depth, children: [], staffLeft: [], staffRight: [], descendants: 0 };\n let alternate = 0;\n for (const child of childrenOf.get(unit.id) ?? []) {\n const childNode = build(child, depth + 1);\n node.descendants += 1 + childNode.descendants;\n if ((child.relation ?? 'hierarchical') === 'attached') {\n const side = child.side ?? (alternate++ % 2 === 0 ? 'left' : 'right');\n (side === 'left' ? node.staffLeft : node.staffRight).push(childNode);\n } else {\n node.children.push(childNode);\n }\n }\n return node;\n };\n\n return { roots: (childrenOf.get(null) ?? []).map((unit) => build(unit, 0)), warnings };\n}\n\n/** Initiales d'un nom (« Ada Lovelace » → « AL »). */\nexport function initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n const letters = parts.length > 1 ? parts[0][0] + parts[parts.length - 1][0] : (parts[0] ?? '?').slice(0, 2);\n return letters.toUpperCase();\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '../core/id';\nimport { UiOrgLink, UiOrgNode, UiOrgPerson, UiOrgUnit, buildOrgTree, initials } from './org-model';\n\n/** Contexte du template de carte `ng-template uiOrgUnit`. */\nexport interface UiOrgUnitContext {\n $implicit: UiOrgUnit;\n node: UiOrgNode;\n}\n\n/** Contexte du template de personne `ng-template uiOrgPerson`. */\nexport interface UiOrgPersonContext {\n $implicit: UiOrgPerson;\n unit: UiOrgUnit;\n}\n\n/** Remplace le contenu des cartes d'unité (`<ng-template uiOrgUnit let-unit>`). */\n@Directive({ selector: 'ng-template[uiOrgUnit]' })\nexport class UiOrgUnitTemplate {\n readonly template = inject<TemplateRef<UiOrgUnitContext>>(TemplateRef);\n static ngTemplateContextGuard(_dir: UiOrgUnitTemplate, _ctx: unknown): _ctx is UiOrgUnitContext {\n return true;\n }\n}\n\n/** Remplace l'affichage d'une personne (`<ng-template uiOrgPerson let-person let-unit=\"unit\">`). */\n@Directive({ selector: 'ng-template[uiOrgPerson]' })\nexport class UiOrgPersonTemplate {\n readonly template = inject<TemplateRef<UiOrgPersonContext>>(TemplateRef);\n static ngTemplateContextGuard(_dir: UiOrgPersonTemplate, _ctx: unknown): _ctx is UiOrgPersonContext {\n return true;\n }\n}\n\n/** Payload de `(personSelect)`. */\nexport interface UiOrgPersonSelect {\n person: UiOrgPerson;\n unit: UiOrgUnit;\n}\n\ninterface DrawnLink {\n key: string;\n d: string;\n label?: string;\n x: number;\n y: number;\n}\n\nconst RELATION_LABELS = { attached: 'Rattaché', transverse: 'Fonctionnel' } as const;\n\n/**\n * Organigramme construit à partir d'une liste plate d'unités (`parentId`), chacune pouvant contenir des personnes.\n * Trois relations : hiérarchique (sous le parent), rattachée (`attached`, sur le côté : secrétariat, assistant)\n * et transverse (`transverse`, lien fonctionnel en pointillés), plus des liens transverses libres (`links`).\n *\n * Unités repliables, zoom, sélection d'une unité ou d'une personne, cartes et personnes personnalisables par\n * `ng-template`. Sous `breakpoint` (largeur du composant), l'arbre devient une liste indentée. La structure est\n * faite de listes imbriquées ; chaque relation est aussi écrite en texte (les traits sont décoratifs).\n *\n * @slot ng-template[uiOrgUnit] - Contenu des cartes d'unité ; contexte `let-unit`, `node`.\n * @slot ng-template[uiOrgPerson] - Affichage d'une personne ; contexte `let-person`, `unit`.\n * @cssprop --ui-org-card-width - Largeur des cartes (défaut : `15rem`).\n * @cssprop --ui-org-line - Couleur des traits (défaut : `--ui-color-border-control`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-org-chart',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"ui-org ui-org--\" + (isList() ? \"list\" : \"tree\")',\n },\n templateUrl: './org-chart.html',\n styleUrl: './org-chart.css',\n})\nexport class UiOrgChart {\n /** Unités (liste plate, reliées par `parentId`). */\n readonly units = input.required<readonly UiOrgUnit[]>();\n /** Liens transverses libres entre unités (pointillés). */\n readonly links = input<readonly UiOrgLink[]>([]);\n /** Nom accessible de l'organigramme. */\n readonly ariaLabel = input('Organigramme');\n /** Présentation : arbre, liste indentée, ou automatique selon la largeur. */\n readonly layout = input<'auto' | 'tree' | 'list'>('auto');\n /** Largeur (px) sous laquelle `layout=\"auto\"` passe en liste. */\n readonly breakpoint = input(640, { transform: numberAttribute });\n /** Profondeur dépliée au départ (`Infinity` : tout). */\n readonly initialDepth = input(Infinity, { transform: numberAttribute });\n /** Nombre de personnes affichées par carte avant « + N ». */\n readonly maxPeople = input(4, { transform: numberAttribute });\n /** Unité sélectionnée (liaison bidirectionnelle `[(selectedId)]`). */\n readonly selectedId = model<string | null>(null);\n /** Les unités sont cliquables (sélection, `unitSelect`). */\n readonly selectable = input(true, { transform: booleanAttribute });\n /** Les personnes sont cliquables (`personSelect`). */\n readonly peopleSelectable = input(false, { transform: booleanAttribute });\n /** Affiche la barre d'outils (zoom, tout déplier / replier). */\n readonly toolbar = input(true, { transform: booleanAttribute });\n\n /** Émis au clic sur une unité. */\n readonly unitSelect = output<UiOrgUnit>();\n /** Émis au clic sur une personne (si `peopleSelectable`). */\n readonly personSelect = output<UiOrgPersonSelect>();\n\n protected readonly unitTemplate = contentChild(UiOrgUnitTemplate);\n protected readonly personTemplate = contentChild(UiOrgPersonTemplate);\n protected readonly baseId = uniqueId('ui-org');\n protected readonly initials = initials;\n\n private readonly tree = computed(() => buildOrgTree(this.units()));\n protected readonly roots = computed(() => this.tree().roots);\n /** Unités repliées (identifiants). */\n readonly collapsed = signal<ReadonlySet<string>>(new Set());\n /** Cartes dont toutes les personnes sont affichées. */\n protected readonly peopleExpanded = signal<ReadonlySet<string>>(new Set());\n /** Niveau de zoom (0,4 à 1,5). */\n readonly zoom = signal(1);\n protected readonly links$ = signal<DrawnLink[]>([]);\n protected readonly canvasSize = signal({ width: 0, height: 0 });\n\n private readonly width = signal<number | null>(null);\n /** Présentation en liste (choisie, ou automatique sous `breakpoint`). */\n readonly isList = computed(() => {\n const layout = this.layout();\n if (layout !== 'auto') return layout === 'list';\n const width = this.width();\n return width !== null && width < this.breakpoint();\n });\n\n /** Liens transverses lisibles en texte, par unité (pour les lecteurs d'écran et le mode liste). */\n protected readonly linksByUnit = computed(() => {\n const names = new Map(this.units().map((u) => [u.id, u.name]));\n const map = new Map<string, string[]>();\n for (const link of this.links()) {\n if (!names.has(link.from) || !names.has(link.to)) continue;\n const suffix = link.label ? ` (${link.label})` : '';\n map.set(link.from, [...(map.get(link.from) ?? []), `${names.get(link.to)}${suffix}`]);\n map.set(link.to, [...(map.get(link.to) ?? []), `${names.get(link.from)}${suffix}`]);\n }\n return map;\n });\n\n private readonly host = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly canvas = viewChild<ElementRef<HTMLElement>>('canvas');\n private readonly injector = inject(Injector);\n\n constructor() {\n // Profondeur initiale : on replie les unités au-delà.\n effect(() => {\n const depth = this.initialDepth();\n const roots = this.roots();\n untracked(() => {\n const ids = new Set<string>();\n const walk = (node: UiOrgNode) => {\n if (node.depth >= depth && this.hasSubtree(node)) ids.add(node.unit.id);\n [...node.children, ...node.staffLeft, ...node.staffRight].forEach(walk);\n };\n roots.forEach(walk);\n this.collapsed.set(ids);\n });\n });\n effect(() => {\n const warnings = this.tree().warnings;\n if (warnings.length && isDevMode()) console.warn('[ic-angular-uikit] ui-org-chart :', warnings.join(' '));\n });\n // Redessine les liens transverses quand la structure, le repli, le zoom ou la présentation changent.\n effect(() => {\n this.roots();\n this.collapsed();\n this.peopleExpanded();\n this.zoom();\n this.links();\n this.isList();\n untracked(() => afterNextRender(() => this.drawLinks(), { injector: this.injector }));\n });\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n this.measure();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => {\n this.measure();\n this.drawLinks();\n });\n observer.observe(this.host);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /** Replie ou déplie une unité. */\n toggle(id: string): void {\n this.collapsed.update((set) => {\n const next = new Set(set);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return next;\n });\n }\n\n /** Déplie toutes les unités. */\n expandAll(): void {\n this.collapsed.set(new Set());\n }\n\n /** Replie tout sous les racines. */\n collapseAll(): void {\n this.collapsed.set(new Set(this.roots().filter((n) => this.hasSubtree(n)).map((n) => n.unit.id)));\n }\n\n /** Modifie le zoom (borné entre 40 % et 150 %). */\n setZoom(value: number): void {\n this.zoom.set(Math.round(Math.min(1.5, Math.max(0.4, value)) * 10) / 10);\n }\n\n protected relationLabel(unit: UiOrgUnit): string {\n return unit.relation === 'attached' || unit.relation === 'transverse' ? RELATION_LABELS[unit.relation] : '';\n }\n\n protected hasSubtree(node: UiOrgNode): boolean {\n return node.children.length + node.staffLeft.length + node.staffRight.length > 0;\n }\n\n protected isCollapsed(id: string): boolean {\n return this.collapsed().has(id);\n }\n\n protected select(unit: UiOrgUnit): void {\n this.selectedId.set(unit.id);\n this.unitSelect.emit(unit);\n }\n\n protected selectPerson(person: UiOrgPerson, unit: UiOrgUnit): void {\n this.personSelect.emit({ person, unit });\n }\n\n protected heads(unit: UiOrgUnit): readonly UiOrgPerson[] {\n return (unit.people ?? []).filter((p) => p.head);\n }\n\n protected members(unit: UiOrgUnit): readonly UiOrgPerson[] {\n const members = (unit.people ?? []).filter((p) => !p.head);\n return this.peopleExpanded().has(unit.id) ? members : members.slice(0, this.maxPeople());\n }\n\n protected hiddenMembers(unit: UiOrgUnit): number {\n if (this.peopleExpanded().has(unit.id)) return 0;\n return Math.max(0, (unit.people ?? []).filter((p) => !p.head).length - this.maxPeople());\n }\n\n protected showAllPeople(id: string): void {\n this.peopleExpanded.update((set) => new Set(set).add(id));\n }\n\n protected childrenId(id: string): string {\n return `${this.baseId}-${id}-children`;\n }\n\n private measure(): void {\n const width = this.host.getBoundingClientRect().width;\n if (width > 0) this.width.set(width);\n }\n\n /** Calcule les tracés des liens transverses entre cartes visibles (coordonnées du canevas, hors zoom). */\n private drawLinks(): void {\n const canvas = this.canvas()?.nativeElement;\n if (!canvas || this.isList()) {\n this.links$.set([]);\n return;\n }\n const zoom = this.zoom();\n const origin = canvas.getBoundingClientRect();\n this.canvasSize.set({ width: canvas.scrollWidth, height: canvas.scrollHeight });\n const rectOf = (id: string) => {\n const el = canvas.querySelector<HTMLElement>(`[data-org-unit=\"${CSS.escape(id)}\"]`);\n if (!el) return null;\n const r = el.getBoundingClientRect();\n return { left: (r.left - origin.left) / zoom, top: (r.top - origin.top) / zoom, width: r.width / zoom, height: r.height / zoom };\n };\n const drawn: DrawnLink[] = [];\n for (const link of this.links()) {\n const a = rectOf(link.from);\n const b = rectOf(link.to);\n if (!a || !b) continue;\n // Bords les plus proches : côtés si les cartes sont côte à côte, sinon haut / bas.\n const ax = a.left + a.width / 2;\n const bx = b.left + b.width / 2;\n const sideBySide = Math.abs(a.top - b.top) < Math.max(a.height, b.height);\n let x1: number, y1: number, x2: number, y2: number, d: string;\n if (sideBySide) {\n const leftFirst = ax < bx;\n x1 = leftFirst ? a.left + a.width : a.left;\n x2 = leftFirst ? b.left : b.left + b.width;\n y1 = a.top + a.height / 2;\n y2 = b.top + b.height / 2;\n const bend = (x2 - x1) / 2;\n d = `M${x1},${y1} C${x1 + bend},${y1} ${x2 - bend},${y2} ${x2},${y2}`;\n } else {\n const aboveFirst = a.top < b.top;\n x1 = ax;\n x2 = bx;\n y1 = aboveFirst ? a.top + a.height : a.top;\n y2 = aboveFirst ? b.top : b.top + b.height;\n const bend = (y2 - y1) / 2;\n d = `M${x1},${y1} C${x1},${y1 + bend} ${x2},${y2 - bend} ${x2},${y2}`;\n }\n drawn.push({ key: `${link.from}->${link.to}`, d, label: link.label, x: (x1 + x2) / 2, y: (y1 + y2) / 2 });\n }\n this.links$.set(drawn);\n }\n}\n","@if (toolbar()) {\n <div class=\"ui-org__toolbar\" role=\"toolbar\" [attr.aria-label]=\"ariaLabel() + ' : affichage'\">\n @if (!isList()) {\n <button type=\"button\" class=\"ui-org__tool\" (click)=\"setZoom(zoom() - 0.1)\" [disabled]=\"zoom() <= 0.4\" aria-label=\"Dézoomer\">\n <span aria-hidden=\"true\">−</span>\n </button>\n <button type=\"button\" class=\"ui-org__tool ui-org__tool--text\" (click)=\"setZoom(1)\" aria-label=\"Zoom à 100 %\">{{ (zoom() * 100).toFixed(0) }} %</button>\n <button type=\"button\" class=\"ui-org__tool\" (click)=\"setZoom(zoom() + 0.1)\" [disabled]=\"zoom() >= 1.5\" aria-label=\"Zoomer\">\n <span aria-hidden=\"true\">+</span>\n </button>\n <span class=\"ui-org__sep\" aria-hidden=\"true\"></span>\n }\n <button type=\"button\" class=\"ui-org__tool ui-org__tool--text\" (click)=\"expandAll()\">Tout déplier</button>\n <button type=\"button\" class=\"ui-org__tool ui-org__tool--text\" (click)=\"collapseAll()\">Tout replier</button>\n </div>\n}\n\n<div class=\"ui-org__viewport\" tabindex=\"0\" role=\"region\" [attr.aria-label]=\"ariaLabel()\">\n <div #canvas class=\"ui-org__canvas\" [style.zoom]=\"isList() ? null : zoom()\">\n @if (links$().length) {\n <!-- Traits sous les cartes (masqués par elles), libellés au-dessus. -->\n <svg class=\"ui-org__links\" aria-hidden=\"true\" [attr.width]=\"canvasSize().width\" [attr.height]=\"canvasSize().height\">\n @for (link of links$(); track link.key) {\n <path class=\"ui-org__link\" [attr.d]=\"link.d\" />\n }\n </svg>\n <svg class=\"ui-org__links ui-org__links--labels\" aria-hidden=\"true\" [attr.width]=\"canvasSize().width\" [attr.height]=\"canvasSize().height\">\n @for (link of links$(); track link.key) {\n @if (link.label) {\n <text class=\"ui-org__link-label\" [attr.x]=\"link.x\" [attr.y]=\"link.y\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ link.label }}</text>\n }\n }\n </svg>\n }\n <ul class=\"ui-org__level ui-org__level--root\">\n @for (node of roots(); track node.unit.id) {\n <ng-container *ngTemplateOutlet=\"nodeTpl; context: { $implicit: node }\" />\n }\n </ul>\n </div>\n</div>\n\n<ng-template #nodeTpl let-node>\n <li class=\"ui-org__node\" [class.ui-org__node--transverse]=\"node.unit.relation === 'transverse'\" [class.ui-org__node--attached]=\"node.unit.relation === 'attached'\">\n <span class=\"ui-org__stem\" aria-hidden=\"true\"></span>\n <ng-container *ngTemplateOutlet=\"cardTpl; context: { $implicit: node }\" />\n\n @if (!isCollapsed(node.unit.id)) {\n @if (node.staffLeft.length || node.staffRight.length) {\n <div class=\"ui-org__staff\">\n <ul class=\"ui-org__level ui-org__level--staff ui-org__level--left\" [attr.aria-label]=\"'Rattachés à ' + node.unit.name\">\n @for (child of node.staffLeft; track child.unit.id) {\n <ng-container *ngTemplateOutlet=\"nodeTpl; context: { $implicit: child }\" />\n }\n </ul>\n <span class=\"ui-org__staff-stem\" [class.ui-org__staff-stem--end]=\"!node.children.length\" aria-hidden=\"true\"></span>\n <ul class=\"ui-org__level ui-org__level--staff ui-org__level--right\" [attr.aria-label]=\"'Rattachés à ' + node.unit.name\">\n @for (child of node.staffRight; track child.unit.id) {\n <ng-container *ngTemplateOutlet=\"nodeTpl; context: { $implicit: child }\" />\n }\n </ul>\n </div>\n }\n @if (node.children.length) {\n <span class=\"ui-org__down\" aria-hidden=\"true\"></span>\n <ul class=\"ui-org__level\" [id]=\"childrenId(node.unit.id)\" [attr.aria-label]=\"'Unités de ' + node.unit.name\">\n @for (child of node.children; track child.unit.id) {\n <ng-container *ngTemplateOutlet=\"nodeTpl; context: { $implicit: child }\" />\n }\n </ul>\n }\n }\n </li>\n</ng-template>\n\n<ng-template #cardTpl let-node>\n <div\n class=\"ui-org__card\"\n [attr.data-org-unit]=\"node.unit.id\"\n [class]=\"'ui-org__card ui-org__card--' + (node.unit.tone ?? 'primary')\"\n [class.ui-org__card--selected]=\"selectedId() === node.unit.id\"\n >\n @if (unitTemplate(); as custom) {\n <ng-container *ngTemplateOutlet=\"custom.template; context: { $implicit: node.unit, node: node }\" />\n } @else {\n <div class=\"ui-org__head\">\n @if (selectable()) {\n <button type=\"button\" class=\"ui-org__name\" [attr.aria-pressed]=\"selectedId() === node.unit.id\" (click)=\"select(node.unit)\">\n {{ node.unit.name }}\n </button>\n } @else {\n <span class=\"ui-org__name\">{{ node.unit.name }}</span>\n }\n @if (node.unit.code) {\n <span class=\"ui-org__code\">{{ node.unit.code }}</span>\n }\n </div>\n @if (node.unit.relation === 'attached' || node.unit.relation === 'transverse') {\n <span class=\"ui-org__relation\">{{ relationLabel(node.unit) }}</span>\n }\n @if (linksByUnit().get(node.unit.id); as linked) {\n <span class=\"ui-org__linked\">↔ {{ linked.join(', ') }}</span>\n }\n @if (heads(node.unit).length || members(node.unit).length) {\n <ul class=\"ui-org__people\">\n @for (person of heads(node.unit); track person.id) {\n <li class=\"ui-org__person ui-org__person--head\">\n <ng-container *ngTemplateOutlet=\"personTpl; context: { $implicit: person, unit: node.unit }\" />\n </li>\n }\n @for (person of members(node.unit); track person.id) {\n <li class=\"ui-org__person\">\n <ng-container *ngTemplateOutlet=\"personTpl; context: { $implicit: person, unit: node.unit }\" />\n </li>\n }\n </ul>\n }\n @if (hiddenMembers(node.unit); as hidden) {\n <button type=\"button\" class=\"ui-org__more\" (click)=\"showAllPeople(node.unit.id)\">\n + {{ hidden }} autre{{ hidden > 1 ? 's' : '' }}<span class=\"ui-org__sr\"> dans {{ node.unit.name }}</span>\n </button>\n }\n }\n @if (hasSubtree(node)) {\n <button\n type=\"button\"\n class=\"ui-org__toggle\"\n [attr.aria-expanded]=\"!isCollapsed(node.unit.id)\"\n [attr.aria-controls]=\"node.children.length ? childrenId(node.unit.id) : null\"\n [attr.aria-label]=\"(isCollapsed(node.unit.id) ? 'Déplier ' : 'Replier ') + node.unit.name + ' (' + node.descendants + ' unités)'\"\n (click)=\"toggle(node.unit.id)\"\n >\n @if (isCollapsed(node.unit.id)) {\n <span aria-hidden=\"true\">+{{ node.descendants }}</span>\n } @else {\n <span aria-hidden=\"true\">−</span>\n }\n </button>\n }\n </div>\n</ng-template>\n\n<ng-template #personTpl let-person let-unit=\"unit\">\n @if (personTemplate(); as custom) {\n <ng-container *ngTemplateOutlet=\"custom.template; context: { $implicit: person, unit: unit }\" />\n } @else {\n @if (peopleSelectable()) {\n <button type=\"button\" class=\"ui-org__person-body\" (click)=\"selectPerson(person, unit)\">\n <ng-container *ngTemplateOutlet=\"personBody; context: { $implicit: person }\" />\n </button>\n } @else {\n <span class=\"ui-org__person-body\">\n <ng-container *ngTemplateOutlet=\"personBody; context: { $implicit: person }\" />\n </span>\n }\n }\n</ng-template>\n\n<ng-template #personBody let-person>\n @if (person.photo) {\n <img class=\"ui-org__avatar\" [src]=\"person.photo\" alt=\"\" />\n } @else {\n <span class=\"ui-org__avatar\" aria-hidden=\"true\">{{ initials(person.name) }}</span>\n }\n <span class=\"ui-org__who\">\n <span class=\"ui-org__person-name\">{{ person.name }}</span>\n @if (person.title || person.head) {\n <span class=\"ui-org__person-title\">\n @if (person.head) {\n <span class=\"ui-org__head-tag\">Responsable</span>\n }\n {{ person.title }}\n </span>\n }\n </span>\n</ng-template>\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { UI_SEASON_LABELS, UiSeason } from '../core/season';\nimport { ThemeService } from '../core/theme';\n\ninterface Particle {\n id: number;\n x: number; // position horizontale (%)\n y: number; // position verticale (%) — étoiles\n size: number; // px\n duration: number; // s\n delay: number; // s\n drift: number; // px\n color: string;\n height: number; // fleurs : hauteur de tige (px)\n}\n\nconst COUNTS = { low: 14, medium: 26, high: 44 } as const;\nconst LEAF_COLORS = ['#b45309', '#c2410c', '#a16207', '#9a3412', '#d97706', '#7c2d12'];\n/** Automne sombre (forêt & terracotta) : feuillage roux et rouge, sans jaune ni brun. */\nconst LEAF_COLORS_DARK = ['#ef8354', '#e2582c', '#c2410c', '#dc2626', '#f97316', '#b91c1c'];\nconst FLOWER_COLORS = ['#f472b6', '#facc15', '#c084fc', '#fb7185', '#ffffff', '#60a5fa'];\n\n/** Générateur pseudo-aléatoire déterministe (mulberry32) : décor reproductible, sans Math.random. */\nfunction prng(seed: number): () => number {\n let a = seed;\n return () => {\n a = (a + 0x6d2b79f5) | 0;\n let t = Math.imul(a ^ (a >>> 15), 1 | a);\n t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n };\n}\n\n/**\n * Animations des thèmes saisonniers : neige en hiver, fleurs qui poussent au printemps, soleil en été,\n * feuilles qui tombent en automne. À placer une fois, à la racine de l'application. Rien n'est affiché\n * si le thème n'est pas `season-light` ou `season-dark`.\n *\n * Décor purement visuel : ignoré des lecteurs d'écran, il laisse passer les clics. Un bouton permet de mettre\n * les animations en pause (WCAG 2.2.2), choix mémorisé ; elles sont désactivées par défaut si l'utilisateur a\n * demandé moins d'animations (`prefers-reduced-motion`), et figées dans ce cas même si on les réactive.\n *\n * @cssprop --ui-season-effects-z - Niveau d'empilement de la couche (défaut : `900`).\n * @category Affichage\n */\n@Component({\n selector: 'ui-season-effects',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './season-effects.html',\n styleUrl: './season-effects.css',\n})\nexport class UiSeasonEffects {\n /** Densité des particules. */\n readonly intensity = input<'low' | 'medium' | 'high'>('medium');\n /** Coin du bouton pause / reprise (choisissez un coin sans commande fixe de votre application). */\n readonly controlPosition = input<'bottom-right' | 'bottom-left'>('bottom-right');\n /** Affiche le bouton pause / reprise. */\n readonly showControl = input(true, { transform: booleanAttribute });\n /** Occupe la fenêtre (`fixed`) ou seulement son conteneur positionné (`absolute`). */\n readonly contained = input(false, { transform: booleanAttribute });\n\n /** Saison à afficher (sinon celle de `ThemeService`, d'après la date). */\n readonly season = input<UiSeason>();\n /** Variante du décor (l'été sombre est une nuit étoilée) ; par défaut, celle du thème courant. */\n readonly mode = input<'light' | 'dark'>();\n /** Affiche le décor même si le thème courant n'est pas saisonnier (démonstrations, zones d'accueil). */\n readonly force = input(false, { transform: booleanAttribute });\n\n protected readonly theme = inject(ThemeService);\n protected readonly currentSeason = computed(() => this.season() ?? this.theme.season());\n protected readonly dark = computed(() => (this.mode() ?? (this.theme.isDark() ? 'dark' : 'light')) === 'dark');\n /** Nuit d'été : étoiles et croissant de lune à la place du soleil. */\n protected readonly night = computed(() => this.currentSeason() === 'summer' && this.dark());\n protected readonly label = computed(() => (this.night() ? 'Nuit d’été' : UI_SEASON_LABELS[this.currentSeason()]));\n protected readonly visible = computed(() => this.force() || this.theme.isSeasonal());\n protected readonly active = computed(() => this.visible() && this.theme.seasonEffects());\n\n /** Particules de la saison courante (positions reproductibles). */\n protected readonly particles = computed<Particle[]>(() => {\n const season = this.currentSeason();\n const random = prng({ winter: 11, spring: 23, summer: 37, autumn: 53 }[season]);\n const night = this.night();\n const count = night ? COUNTS[this.intensity()] * 2 : season === 'spring' ? Math.round(COUNTS[this.intensity()] * 0.6) : season === 'summer' ? 10 : COUNTS[this.intensity()];\n return Array.from({ length: count }, (_, id) => {\n const colors = season === 'spring' ? FLOWER_COLORS : this.dark() ? LEAF_COLORS_DARK : LEAF_COLORS;\n return {\n id,\n x: Math.round(random() * 1000) / 10,\n y: Math.round(random() * 1000) / 10,\n size: season === 'winter' ? 3 + random() * 6 : season === 'autumn' ? 14 + random() * 12 : 10 + random() * 8,\n duration: season === 'winter' ? 9 + random() * 10 : season === 'autumn' ? 10 + random() * 9 : 5 + random() * 6,\n delay: -random() * 18,\n drift: (random() - 0.5) * (season === 'autumn' ? 220 : 90),\n color: colors[Math.floor(random() * colors.length)],\n height: 30 + random() * 70,\n };\n });\n });\n\n protected toggle(): void {\n this.theme.setSeasonEffects(!this.theme.seasonEffects());\n }\n}\n","@if (visible()) {\n @if (active()) {\n <div class=\"fx\" [class]=\"'fx fx--' + currentSeason()\" [class.fx--contained]=\"contained()\" aria-hidden=\"true\">\n @switch (currentSeason()) {\n @case ('winter') {\n @for (p of particles(); track p.id) {\n <span\n class=\"flake\"\n [style.left.%]=\"p.x\"\n [style.width.px]=\"p.size\"\n [style.height.px]=\"p.size\"\n [style.--d.s]=\"p.duration\"\n [style.--delay.s]=\"p.delay\"\n [style.--drift.px]=\"p.drift\"\n ></span>\n }\n }\n @case ('autumn') {\n @for (p of particles(); track p.id) {\n <span class=\"leaf\" [style.left.%]=\"p.x\" [style.--d.s]=\"p.duration\" [style.--delay.s]=\"p.delay\" [style.--drift.px]=\"p.drift\">\n <svg [attr.width]=\"p.size\" [attr.height]=\"p.size\" viewBox=\"0 0 24 24\">\n <path [attr.fill]=\"p.color\" d=\"M12 2c3 3 7 4 9 9-2 6-7 9-9 11-2-2-7-5-9-11 2-5 6-6 9-9Z\" />\n <path d=\"M12 4v18M12 10l-4 3M12 14l4-3\" stroke=\"rgb(0 0 0 / 0.25)\" stroke-width=\"1\" fill=\"none\" />\n </svg>\n </span>\n }\n }\n @case ('summer') {\n @if (night()) {\n <!-- Nuit d'été : étoiles qui scintillent, étoile filante, croissant de lune -->\n @for (p of particles(); track p.id) {\n @if (p.id % 6 === 0) {\n <svg class=\"star star--sparkle\" [style.left.%]=\"p.x\" [style.top.%]=\"p.y\" [style.--d.s]=\"p.duration / 3\" [style.--delay.s]=\"p.delay / 3\" [attr.width]=\"p.size\" [attr.height]=\"p.size\" viewBox=\"0 0 24 24\">\n <path d=\"M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0Z\" />\n </svg>\n } @else {\n <span class=\"star\" [style.left.%]=\"p.x\" [style.top.%]=\"p.y\" [style.--d.s]=\"p.duration / 3\" [style.--delay.s]=\"p.delay / 3\" [style.width.px]=\"1 + (p.id % 3)\" [style.height.px]=\"1 + (p.id % 3)\"></span>\n }\n }\n <span class=\"shooting\"></span>\n <div class=\"moon\">\n <svg viewBox=\"0 0 120 120\">\n <path class=\"moon__body\" d=\"M78 16a46 46 0 1 0 26 66A38 38 0 1 1 78 16Z\" />\n </svg>\n </div>\n } @else {\n <div class=\"sun\">\n <svg viewBox=\"0 0 200 200\">\n <g class=\"rays\">\n @for (i of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; track i) {\n <rect x=\"96\" y=\"6\" width=\"8\" height=\"34\" rx=\"4\" [attr.transform]=\"'rotate(' + i * 30 + ' 100 100)'\" />\n }\n </g>\n <circle class=\"core\" cx=\"100\" cy=\"100\" r=\"46\" />\n </svg>\n </div>\n @for (p of particles(); track p.id) {\n <span class=\"glint\" [style.left.%]=\"p.x\" [style.--d.s]=\"p.duration\" [style.--delay.s]=\"p.delay\"></span>\n }\n }\n }\n @case ('spring') {\n @for (p of particles(); track p.id) {\n <span class=\"flower\" [style.left.%]=\"p.x\" [style.--h.px]=\"p.height\" [style.--delay.s]=\"-p.delay / 6\" [style.--d.s]=\"p.duration\">\n <svg class=\"stem\" [attr.height]=\"p.height\" width=\"12\" [attr.viewBox]=\"'0 0 12 ' + p.height\" preserveAspectRatio=\"none\">\n <path [attr.d]=\"'M6 ' + p.height + ' Q2 ' + p.height / 2 + ' 6 0'\" />\n <path class=\"leaf-s\" [attr.d]=\"'M6 ' + p.height * 0.6 + ' q5 -6 6 -2 q-3 3 -6 2Z'\" />\n </svg>\n <svg class=\"bloom\" [attr.width]=\"p.size * 2\" [attr.height]=\"p.size * 2\" viewBox=\"0 0 24 24\">\n @for (a of [0, 72, 144, 216, 288]; track a) {\n <ellipse cx=\"12\" cy=\"6.5\" rx=\"3.6\" ry=\"5.5\" [attr.fill]=\"p.color\" [attr.transform]=\"'rotate(' + a + ' 12 12)'\" />\n }\n <circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"#f59e0b\" />\n </svg>\n </span>\n }\n }\n }\n </div>\n }\n @if (showControl()) {\n <button\n type=\"button\"\n class=\"fx-control\"\n [class.fx-control--contained]=\"contained()\"\n [class.fx-control--left]=\"controlPosition() === 'bottom-left'\"\n [attr.aria-pressed]=\"theme.seasonEffects()\"\n (click)=\"toggle()\"\n >\n <span aria-hidden=\"true\">{{ theme.seasonEffects() ? '❚❚' : '▶' }}</span>\n Animations « {{ label() }} »\n </button>\n }\n}\n"],"mappings":";;;;;;AAIA,MAAa,mBAA6C;CACxD,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;AACT;AAMD,SAAgB,SAAS,MAAY,aAAgC,SAAO;CAC1E,MAAM,OAAO,KAAK,SAAQ,IAAK,KAAK,MAAM,KAAK,QAAO;CACtD,IAAI;CACJ,IAAI,OAAO,QAAQ,MAAM,KAAK,SAAS;MAClC,IAAI,MAAM,KAAK,SAAS;MACxB,IAAI,MAAM,KAAK,SAAS;MACxB,SAAS;CACd,IAAI,eAAe,SAEjB,SAAS;EADsC,QAAQ;EAA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