@4sh/ui-kit 0.8.0 → 0.9.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.
Files changed (134) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +9 -6
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
  19. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  35. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
  37. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
  39. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  41. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
  47. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
  49. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
  51. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
  53. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
  55. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
  57. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
  58. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
  59. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
  61. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
  63. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
  64. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
  66. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  68. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
  71. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  72. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
  73. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
  75. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
  77. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  78. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  79. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  80. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
  81. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  82. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
  83. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  84. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  85. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  86. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
  88. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  90. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
  92. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
  94. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
  95. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
  96. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
  98. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
  100. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
  102. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  104. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
  105. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
  107. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  108. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  109. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
  110. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +11 -11
  112. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
  114. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
  116. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
  118. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
  119. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  120. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
  121. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  122. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  123. package/mcp/data/text-search-docs.json +311 -61
  124. package/mcp/data/ui-config.json +26059 -12458
  125. package/mcp/package.json +1 -1
  126. package/package.json +9 -1
  127. package/styles/component-vars.scss +1402 -721
  128. package/styles/settings/_ui-config.scss +45 -2
  129. package/styles/utils/_mixins.scss +32 -30
  130. package/styles/utils/_overlay.scss +1 -1
  131. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
  132. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
  133. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
  134. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-actions-ui-button.mjs","sources":["../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.ts","../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.html","../../../projects/ui-kit/actions/ui-button/src/public-api.ts","../../../projects/ui-kit/actions/ui-button/src/4sh-ui-kit-actions-ui-button.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonSize = 'default' | 'small';\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost';\n/** Luminosité du fond sur lequel le bouton est posé (voir l'input `onColor`). */\nexport type ButtonOnColor = 'dark' | 'light';\nexport type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';\nexport type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;\n\n@Component({\n selector: 'ui-button',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-button.html',\n styleUrl: './ui-button.scss',\n host: {\n '[style.display]': \"expanded() ? 'flex' : 'inline-flex'\",\n '[style.width]': \"expanded() ? '100%' : null\",\n },\n})\nexport class UiButton {\n label = input<string>();\n ariaLabel = input<string>();\n type = input<ButtonType>('button');\n level = input<UiLevel>('high');\n variant = input<ButtonVariant>('filled');\n /**\n * À renseigner **uniquement** quand le bouton est posé sur un fond de couleur\n * (bandeau, carte teintée, image) : indique la luminosité de ce fond, et le\n * bouton épingle son chrome en conséquence — `'dark'` ⇒ blanc, `'light'` ⇒\n * sombre. Orthogonal à `level` et `variant`. Volontairement **insensible au\n * thème** : un bandeau violet reste violet en clair comme en sombre.\n */\n onColor = input<ButtonOnColor | null>(null);\n size = input<ButtonSize>('default');\n icon = input<string>();\n iconPos = input<ButtonIconPos>('left');\n iconOnly = input(false, { transform: booleanAttribute });\n loading = input(false, { transform: booleanAttribute });\n loadingIcon = input<string>('circle-notch');\n expanded = input(false, { transform: booleanAttribute });\n rounded = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n tabindex = input<number>();\n buttonProps = input<ButtonNativeProps>();\n iconTemplate = input<TemplateRef<unknown>>();\n loadingIconTemplate = input<TemplateRef<unknown>>();\n\n // --- Link mode (polymorphic host) ------------------------------------\n // When `href` or `routerLink` is set, the host renders a real <a> styled\n // as a button — preserving native anchor behavior (Cmd/Ctrl+click, middle\n // click, \"open/copy link\"…). No JS-router navigation in a click handler.\n /** External / plain URL. Presence switches the host to an <a>. */\n href = input<string>();\n /** Angular router target. Presence switches the host to an <a> (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Only applies in link mode. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Triggered on click (never if disabled or loading). */\n buttonClick = output<MouseEvent>();\n /** Fired when the button receives focus. */\n buttonFocus = output<FocusEvent>();\n /** Fired when the button loses focus. */\n buttonBlur = output<FocusEvent>();\n\n /** @ignore Host element (either the <button> or the <a>). */\n private readonly hostEl = viewChild.required<ElementRef<HTMLElement>>('host');\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Content actually rendered via <ng-content> (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detection of rendered content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n\n // Pass additional native attributes (buttonProps) to the host element.\n afterRenderEffect(() => {\n const props = this.buttonProps();\n if (!props) return;\n const el = this.hostEl().nativeElement;\n for (const [key, value] of Object.entries(props)) {\n if (value === null || value === undefined || value === false) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value === true ? '' : String(value));\n }\n }\n });\n\n // A11y safeguard: An icon-only button must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-button] Icon-only button has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore An icon (or its template) is available. */\n protected readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n\n /** @ignore Visible text content (label or displayed content). */\n protected readonly hasVisibleText = computed(() => !!this.label() || this.hasProjectedContent());\n\n /** @ignore The icon appears before the content (left/top) or after it (right/bottom). */\n protected readonly iconBefore = computed(() => {\n const pos = this.iconPos();\n return pos === 'left' || pos === 'top';\n });\n\n /** @ignore Icon-only mode: forced, or inferred (icon only, with no visible text). */\n protected readonly isIconOnly = computed(() => {\n if (this.iconOnly()) return true;\n const pos = this.iconPos();\n if (pos === 'top' || pos === 'bottom') return false;\n return !this.hasVisibleText() && this.hasIcon();\n });\n\n /** @ignore Accessible name: explicit; otherwise, the label is hidden as “icon-only”; otherwise, the text is visible. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore Host renders an <a> (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Anchor rel: explicit, or a safe default for target=\"_blank\". */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.target() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Anchor tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'filled') c.push(`_${this.variant()}`);\n if (this.onColor()) c.push(`_on-${this.onColor()}`);\n if (this.expanded()) c.push('_expanded');\n if (this.rounded()) c.push('_rounded');\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.loading()) c.push('_loading');\n if (this.isLink() && this.disabled()) c.push('_disabled');\n const pos = this.iconPos();\n if (pos === 'top') c.push('_icon-top');\n else if (pos === 'bottom') c.push('_icon-bottom');\n return c.join(' ');\n });\n\n /** Sets the focus on the button (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n return;\n }\n this.buttonClick.emit(event);\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #host\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n\n <!-- Always rendered: `hasProjectedContent` is detected from this very element, so gating it on\n `isIconOnly()` (which itself derives from that detection) made projected-only content\n undetectable — and silently dropped. Collapsed by `.ui-button-content:empty` when unused. -->\n <span class=\"ui-button-content\" #contentWrap>\n @if (label() && !isIconOnly()) {\n <span class=\"ui-button-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n</ng-template>\n\n<ng-template #iconSlot>\n @if (loading()) {\n @if (loadingIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <i\n class=\"ui-button-icon ui-button-icon-loading fa-solid fa-{{ loadingIcon() }} fa-spin\"\n aria-hidden=\"true\"\n ></i>\n }\n } @else if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else if (icon()) {\n <ui-icon class=\"ui-button-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-button\n */\n\nexport * from './lib/ui-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsCa,QAAQ,CAAA;AAyDnB,IAAA,WAAA,GAAA;AAxDA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAC3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,QAAQ;iFAAC;QAClC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,MAAM;kFAAC;QAC9B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,QAAQ;oFAAC;AACxC;;;;;;AAMG;QACH,IAAA,CAAA,OAAO,GAAG,KAAK,CAAuB,IAAI;oFAAC;QAC3C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;AACnC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;QACtB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,MAAM;oFAAC;QACtC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACxD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,E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,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,QAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,qEAEV,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3FjF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-actions-ui-button.mjs","sources":["../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.ts","../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.html","../../../projects/ui-kit/actions/ui-button/src/public-api.ts","../../../projects/ui-kit/actions/ui-button/src/4sh-ui-kit-actions-ui-button.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonSize = 'default' | 'small';\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost';\n/** Luminosité du fond sur lequel le bouton est posé (voir l'input `onColor`). */\nexport type ButtonOnColor = 'dark' | 'light';\nexport type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';\nexport type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;\n\n@Component({\n selector: 'ui-button',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-button.html',\n styleUrl: './ui-button.scss',\n host: {\n '[style.display]': \"expanded() ? 'flex' : 'inline-flex'\",\n '[style.width]': \"expanded() ? '100%' : null\",\n },\n})\nexport class UiButton {\n label = input<string>();\n ariaLabel = input<string>();\n type = input<ButtonType>('button');\n level = input<UiLevel>('high');\n variant = input<ButtonVariant>('filled');\n /**\n * À renseigner **uniquement** quand le bouton est posé sur un fond de couleur\n * (bandeau, carte teintée, image) : indique la luminosité de ce fond, et le\n * bouton épingle son chrome en conséquence — `'dark'` ⇒ blanc, `'light'` ⇒\n * sombre. Orthogonal à `level` et `variant`. Volontairement **insensible au\n * thème** : un bandeau violet reste violet en clair comme en sombre.\n */\n onColor = input<ButtonOnColor | null>(null);\n size = input<ButtonSize>('default');\n icon = input<string>();\n iconPos = input<ButtonIconPos>('left');\n iconOnly = input(false, { transform: booleanAttribute });\n loading = input(false, { transform: booleanAttribute });\n loadingIcon = input<string>('circle-notch');\n expanded = input(false, { transform: booleanAttribute });\n rounded = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n tabindex = input<number>();\n buttonProps = input<ButtonNativeProps>();\n iconTemplate = input<TemplateRef<unknown>>();\n loadingIconTemplate = input<TemplateRef<unknown>>();\n\n // --- Link mode (polymorphic host) ------------------------------------\n // When `href` or `routerLink` is set, the host renders a real <a> styled\n // as a button — preserving native anchor behavior (Cmd/Ctrl+click, middle\n // click, \"open/copy link\"…). No JS-router navigation in a click handler.\n /** External / plain URL. Presence switches the host to an <a>. */\n href = input<string>();\n /** Angular router target. Presence switches the host to an <a> (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Only applies in link mode. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Triggered on click (never if disabled or loading). */\n buttonClick = output<MouseEvent>();\n /** Fired when the button receives focus. */\n buttonFocus = output<FocusEvent>();\n /** Fired when the button loses focus. */\n buttonBlur = output<FocusEvent>();\n\n /** @ignore Host element (either the <button> or the <a>). */\n private readonly hostEl = viewChild.required<ElementRef<HTMLElement>>('host');\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Content actually rendered via <ng-content> (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detection of rendered content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n\n // Pass additional native attributes (buttonProps) to the host element.\n afterRenderEffect(() => {\n const props = this.buttonProps();\n if (!props) return;\n const el = this.hostEl().nativeElement;\n for (const [key, value] of Object.entries(props)) {\n if (value === null || value === undefined || value === false) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value === true ? '' : String(value));\n }\n }\n });\n\n // A11y safeguard: An icon-only button must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-button] Icon-only button has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore An icon (or its template) is available. */\n protected readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n\n /** @ignore Visible text content (label or displayed content). */\n protected readonly hasVisibleText = computed(() => !!this.label() || this.hasProjectedContent());\n\n /** @ignore The icon appears before the content (left/top) or after it (right/bottom). */\n protected readonly iconBefore = computed(() => {\n const pos = this.iconPos();\n return pos === 'left' || pos === 'top';\n });\n\n /** @ignore Icon-only mode: forced, or inferred (icon only, with no visible text). */\n protected readonly isIconOnly = computed(() => {\n if (this.iconOnly()) return true;\n const pos = this.iconPos();\n if (pos === 'top' || pos === 'bottom') return false;\n return !this.hasVisibleText() && this.hasIcon();\n });\n\n /** @ignore Accessible name: explicit; otherwise, the label is hidden as “icon-only”; otherwise, the text is visible. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore Host renders an <a> (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Anchor rel: explicit, or a safe default for target=\"_blank\". */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.target() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Anchor tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'filled') c.push(`_${this.variant()}`);\n if (this.onColor()) c.push(`_on-${this.onColor()}`);\n if (this.expanded()) c.push('_expanded');\n if (this.rounded()) c.push('_rounded');\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.loading()) c.push('_loading');\n if (this.isLink() && this.disabled()) c.push('_disabled');\n const pos = this.iconPos();\n if (pos === 'top') c.push('_icon-top');\n else if (pos === 'bottom') c.push('_icon-bottom');\n return c.join(' ');\n });\n\n /** Sets the focus on the button (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n return;\n }\n this.buttonClick.emit(event);\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #host\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n\n <!-- Always rendered: `hasProjectedContent` is detected from this very element, so gating it on\n `isIconOnly()` (which itself derives from that detection) made projected-only content\n undetectable — and silently dropped. Collapsed by `.ui-button-content:empty` when unused. -->\n <span class=\"ui-button-content\" #contentWrap>\n @if (label() && !isIconOnly()) {\n <span class=\"ui-button-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n</ng-template>\n\n<ng-template #iconSlot>\n @if (loading()) {\n @if (loadingIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <i\n class=\"ui-button-icon ui-button-icon-loading fa-solid fa-{{ loadingIcon() }} fa-spin\"\n aria-hidden=\"true\"\n ></i>\n }\n } @else if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else if (icon()) {\n <ui-icon class=\"ui-button-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-button\n */\n\nexport * from './lib/ui-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsCa,QAAQ,CAAA;AAyDnB,IAAA,WAAA,GAAA;AAxDA,QAAA,IAA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EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,qEAEV,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3FjF;;AAEG;;ACFH;;AAEG;;"}
@@ -127,12 +127,12 @@ class UiLink {
127
127
  }
128
128
  this.linkClick.emit(event);
129
129
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--actions-low-content-default);text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--actions-low-content-hover);text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--actions-low-content-focused);text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-low-content-focused)}.ui-link:active:not(._disabled){color:var(--actions-low-content-pressed)}.ui-link._disabled{color:var(--actions-low-content-disabled);text-decoration-color:var(--actions-low-content-disabled);cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
132
132
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiLink, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiLink, decorators: [{
134
134
  type: Component,
135
- args: [{ selector: 'ui-link', imports: [UiIcon, RouterLink, NgTemplateOutlet], host: { '[style.display]': "'inline-flex'" }, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--actions-low-content-default);text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--actions-low-content-hover);text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--actions-low-content-focused);text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-low-content-focused)}.ui-link:active:not(._disabled){color:var(--actions-low-content-pressed)}.ui-link._disabled{color:var(--actions-low-content-disabled);text-decoration-color:var(--actions-low-content-disabled);cursor:not-allowed;pointer-events:none}\n"] }]
135
+ args: [{ selector: 'ui-link', imports: [UiIcon, RouterLink, NgTemplateOutlet], host: { '[style.display]': "'inline-flex'" }, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--ui-link-gap, var(--units-sm));font-family:var(--ui-link-font-family, var(--fontfamily-base));font-weight:var(--ui-link-weight, var(--weight-bold));font-size:var(--ui-link-font-size, var(--size-typography-text-default));line-height:1.4;color:var(--ui-link-color, var(--actions-low-content-default));text-decoration:none;text-decoration-thickness:var(--ui-link-underline-thickness, from-font);text-underline-offset:var(--ui-link-underline-offset, .15em);border-radius:var(--ui-link-radius, var(--radius-2xs));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),text-decoration-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--ui-link-font-size-small, var(--size-typography-text-md))}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--ui-link-color-hover, var(--actions-low-content-hover));text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--ui-link-color-focus, var(--actions-low-content-focused));text-decoration:underline;box-shadow:0 0 0 var(--ui-link-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-link-color-focus, var(--actions-low-content-focused))}.ui-link:active:not(._disabled){color:var(--ui-link-color-pressed, var(--actions-low-content-pressed))}.ui-link._disabled{color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));text-decoration-color:var(--ui-link-color-disabled, var(--actions-low-content-disabled));cursor:not-allowed;pointer-events:none}\n"] }]
136
136
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], external: [{ type: i0.Input, args: [{ isSignal: true, alias: "external", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], ariaCurrent: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCurrent", required: false }] }], linkClick: [{ type: i0.Output, args: ["linkClick"] }], linkFocus: [{ type: i0.Output, args: ["linkFocus"] }], linkBlur: [{ type: i0.Output, args: ["linkBlur"] }], hostEl: [{ type: i0.ViewChild, args: ['host', { isSignal: true }] }] } });
137
137
 
138
138
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-actions-ui-link.mjs","sources":["../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.ts","../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.html","../../../projects/ui-kit/actions/ui-link/src/public-api.ts","../../../projects/ui-kit/actions/ui-link/src/4sh-ui-kit-actions-ui-link.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type LinkSize = 'default' | 'small';\n\n/**\n * ui-link — inline textual link (renders a real <a>), for prose / navigation.\n *\n * Choose by semantics, not appearance:\n * • Something that NAVIGATES (URL/route) → this component, or `ui-button`\n * with `href`/`routerLink` when it must look like a button.\n * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.\n *\n * Accepts a plain `href` (external) or a `routerLink` (internal navigation).\n * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.\n */\n@Component({\n selector: 'ui-link',\n imports: [UiIcon, RouterLink, NgTemplateOutlet],\n templateUrl: './ui-link.html',\n styleUrl: './ui-link.scss',\n host: { '[style.display]': \"'inline-flex'\" },\n})\nexport class UiLink {\n /** Visible link text (optional when using projected content or icon-only). */\n label = input<string>();\n ariaLabel = input<string>();\n size = input<LinkSize>('default');\n\n // --- Destination -----------------------------------------------------\n /** External / plain URL. */\n href = input<string>();\n /** Angular router target (internal navigation, uses RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" for external links. */\n rel = input<string>();\n /** Convenience for external links: sets target=\"_blank\" + a safe rel. */\n external = input(false, { transform: booleanAttribute });\n\n // --- Icons (presence-based, same as ui-button) -----------------------\n /** FontAwesome icon name shown before the text. */\n iconLeft = input<string>();\n /** FontAwesome icon name shown after the text. */\n iconRight = input<string>();\n\n disabled = input(false, { transform: booleanAttribute });\n tabindex = input<number>();\n /** aria-current exposed on the anchor (e.g. \"page\" for the current breadcrumb item). */\n ariaCurrent = input<string>();\n\n /** Emitted on click (never when disabled). Navigation stays native. */\n linkClick = output<MouseEvent>();\n /** Fired when the link receives focus. */\n linkFocus = output<FocusEvent>();\n /** Fired when the link loses focus. */\n linkBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly hostEl = viewChild.required<ElementRef<HTMLAnchorElement>>('host');\n\n constructor() {\n // A11y safeguard: an icon-only link must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-link] Icon-only link has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size follows the text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore No visible text but at least one icon → icon-only. */\n protected readonly isIconOnly = computed(\n () => !this.label() && (!!this.iconLeft() || !!this.iconRight()),\n );\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Effective anchor target (external forces _blank). */\n protected readonly computedTarget = computed(\n () => this.target() ?? (this.external() ? '_blank' : null),\n );\n\n /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.computedTarget() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore Accessible name: explicit, or the label when icon-only. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-link'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n /** Sets the focus on the link (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n return;\n }\n this.linkClick.emit(event);\n }\n}\n","@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-link\n */\n\nexport * from './lib/ui-link';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,MAAM,CAAA;AAuCjB,IAAA,WAAA,GAAA;;AArCA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAC3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;;AAIjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAsB;;AAExC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;AAIxD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAE3B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACxD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAG7B,IAAA,CAAA,SAAS,GAAG,MAAM,EAAc;;QAEhC,IAAA,CAAA,SAAS,GAAG,MAAM,EAAc;;QAEhC,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAc;;AAGd,QAAA,IAAA,CAAA,MAAM,GAAG,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A,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,07DCnCnB,ohDAoDA,EAAA,MAAA,EAAA,CAAA,+sDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDtBY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,kPAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKnC,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EACV,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,+sDAAA,CAAA,EAAA;28CAuCgC,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExEpF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-actions-ui-link.mjs","sources":["../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.ts","../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.html","../../../projects/ui-kit/actions/ui-link/src/public-api.ts","../../../projects/ui-kit/actions/ui-link/src/4sh-ui-kit-actions-ui-link.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type LinkSize = 'default' | 'small';\n\n/**\n * ui-link — inline textual link (renders a real <a>), for prose / navigation.\n *\n * Choose by semantics, not appearance:\n * • Something that NAVIGATES (URL/route) → this component, or `ui-button`\n * with `href`/`routerLink` when it must look like a button.\n * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.\n *\n * Accepts a plain `href` (external) or a `routerLink` (internal navigation).\n * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.\n */\n@Component({\n selector: 'ui-link',\n imports: [UiIcon, RouterLink, NgTemplateOutlet],\n templateUrl: './ui-link.html',\n styleUrl: './ui-link.scss',\n host: { '[style.display]': \"'inline-flex'\" },\n})\nexport class UiLink {\n /** Visible link text (optional when using projected content or icon-only). */\n label = input<string>();\n ariaLabel = input<string>();\n size = input<LinkSize>('default');\n\n // --- Destination -----------------------------------------------------\n /** External / plain URL. */\n href = input<string>();\n /** Angular router target (internal navigation, uses RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" for external links. */\n rel = input<string>();\n /** Convenience for external links: sets target=\"_blank\" + a safe rel. */\n external = input(false, { transform: booleanAttribute });\n\n // --- Icons (presence-based, same as ui-button) -----------------------\n /** FontAwesome icon name shown before the text. */\n iconLeft = input<string>();\n /** FontAwesome icon name shown after the text. */\n iconRight = input<string>();\n\n disabled = input(false, { transform: booleanAttribute });\n tabindex = input<number>();\n /** aria-current exposed on the anchor (e.g. \"page\" for the current breadcrumb item). */\n ariaCurrent = input<string>();\n\n /** Emitted on click (never when disabled). Navigation stays native. */\n linkClick = output<MouseEvent>();\n /** Fired when the link receives focus. */\n linkFocus = output<FocusEvent>();\n /** Fired when the link loses focus. */\n linkBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly hostEl = viewChild.required<ElementRef<HTMLAnchorElement>>('host');\n\n constructor() {\n // A11y safeguard: an icon-only link must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-link] Icon-only link has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size follows the text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore No visible text but at least one icon → icon-only. */\n protected readonly isIconOnly = computed(\n () => !this.label() && (!!this.iconLeft() || !!this.iconRight()),\n );\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Effective anchor target (external forces _blank). */\n protected readonly computedTarget = computed(\n () => this.target() ?? (this.external() ? '_blank' : null),\n );\n\n /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.computedTarget() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() =>\n this.disabled() ? -1 : (this.tabindex() ?? null),\n );\n\n /** @ignore Accessible name: explicit, or the label when icon-only. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-link'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n /** Sets the focus on the link (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n return;\n }\n this.linkClick.emit(event);\n }\n}\n","@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-link\n */\n\nexport * from './lib/ui-link';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,MAAM,CAAA;AAuCjB,IAAA,WAAA,GAAA;;AArCA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK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,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,kPAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKnC,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EACV,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,w8DAAA,CAAA,EAAA;28CAuCgC,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExEpF;;AAEG;;ACFH;;AAEG;;"}
@@ -419,10 +419,10 @@ class UiSpeedDial {
419
419
  queueFocusTabStop() {
420
420
  setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));
421
421
  }
422
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSpeedDial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
423
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiSpeedDial, isStandalone: true, selector: "ui-speed-dial", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, itemLevel: { classPropertyName: "itemLevel", publicName: "itemLevel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, rotateAnimation: { classPropertyName: "rotateAnimation", publicName: "rotateAnimation", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showTooltips: { classPropertyName: "showTooltips", publicName: "showTooltips", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", triggerClick: "triggerClick", opened: "opened", closed: "closed", itemClick: "itemClick" }, viewQueries: [{ propertyName: "triggerEl", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "actionEls", predicate: ["actionBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: UiTooltip, selector: "[uiTooltip]", inputs: ["uiTooltip", "tooltipPosition", "fitContent", "tooltipEvent", "tooltipDisabled", "showDelay", "hideDelay", "escape", "tooltipStyleClass", "autoHide", "hideOnEscape", "life", "showOnEllipsis", "positionTop", "positionLeft", "tooltipContext"], outputs: ["tooltipShow", "tooltipHide"], exportAs: ["uiTooltip"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
422
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiSpeedDial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
423
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiSpeedDial, isStandalone: true, selector: "ui-speed-dial", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, itemLevel: { classPropertyName: "itemLevel", publicName: "itemLevel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, rotateAnimation: { classPropertyName: "rotateAnimation", publicName: "rotateAnimation", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showTooltips: { classPropertyName: "showTooltips", publicName: "showTooltips", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", triggerClick: "triggerClick", opened: "opened", closed: "closed", itemClick: "itemClick" }, viewQueries: [{ propertyName: "triggerEl", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "actionEls", predicate: ["actionBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: UiTooltip, selector: "[uiTooltip]", inputs: ["uiTooltip", "tooltipPosition", "fitContent", "tooltipEvent", "tooltipDisabled", "showDelay", "hideDelay", "escape", "tooltipStyleClass", "autoHide", "hideOnEscape", "life", "showOnEllipsis", "positionTop", "positionLeft", "tooltipContext"], outputs: ["tooltipShow", "tooltipHide"], exportAs: ["uiTooltip"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
424
424
  }
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSpeedDial, decorators: [{
425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiSpeedDial, decorators: [{
426
426
  type: Component,
427
427
  args: [{ selector: 'ui-speed-dial', imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion], template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"] }]
428
428
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], itemLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemLevel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], rotateAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateAnimation", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], hideOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnClickOutside", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showTooltips: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltips", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], triggerClick: [{ type: i0.Output, args: ["triggerClick"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], triggerEl: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], actionEls: [{ type: i0.ViewChildren, args: ['actionBtn', { isSignal: true }] }] } });
@@ -45,10 +45,10 @@ class UiIconFamilyScope {
45
45
  this.uiIconFamily = input(/* @ts-ignore */
46
46
  ...(ngDevMode ? [undefined, { debugName: "uiIconFamily" }] : /* istanbul ignore next */ []));
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiIconFamilyScope, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
49
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiIconFamilyScope, isStandalone: true, selector: "[uiIconFamily]", inputs: { uiIconFamily: { classPropertyName: "uiIconFamily", publicName: "uiIconFamily", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiIconFamilyScope, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
49
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiIconFamilyScope, isStandalone: true, selector: "[uiIconFamily]", inputs: { uiIconFamily: { classPropertyName: "uiIconFamily", publicName: "uiIconFamily", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiIconFamilyScope, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiIconFamilyScope, decorators: [{
52
52
  type: Directive,
53
53
  args: [{
54
54
  selector: '[uiIconFamily]',
@@ -118,10 +118,10 @@ class UiIcon {
118
118
  }
119
119
  });
120
120
  }
121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
122
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.2", type: UiIcon, isStandalone: true, selector: "ui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, family: { classPropertyName: "family", publicName: "family", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n >{{ content() }}</i\n>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-icon-min-size, 1em);min-height:var(--ui-icon-min-size, 1em);aspect-ratio:var(--ui-icon-aspect-ratio, 1);color:inherit;font-size:var(--ui-icon-size, var(--_scale))}.ui-icon._sm{--_scale: var(--ui-icon-size-sm, var(--size-typography-icon-sm))}.ui-icon._md{--_scale: var(--ui-icon-size-md, var(--size-typography-icon-md))}.ui-icon._default{--_scale: var(--ui-icon-size-default, var(--size-typography-icon-default))}.ui-icon._lg{--_scale: var(--ui-icon-size-lg, var(--size-typography-icon-lg))}.ui-icon._xl{--_scale: var(--ui-icon-size-xl, var(--size-typography-icon-xl))}\n"] }); }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
122
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: UiIcon, isStandalone: true, selector: "ui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, family: { classPropertyName: "family", publicName: "family", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n >{{ content() }}</i\n>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-icon-min-size, 1em);min-height:var(--ui-icon-min-size, 1em);aspect-ratio:var(--ui-icon-aspect-ratio, 1);color:inherit;font-size:var(--ui-icon-size, var(--_scale))}.ui-icon._sm{--_scale: var(--ui-icon-size-sm, var(--size-typography-icon-sm))}.ui-icon._md{--_scale: var(--ui-icon-size-md, var(--size-typography-icon-md))}.ui-icon._default{--_scale: var(--ui-icon-size-default, var(--size-typography-icon-default))}.ui-icon._lg{--_scale: var(--ui-icon-size-lg, var(--size-typography-icon-lg))}.ui-icon._xl{--_scale: var(--ui-icon-size-xl, var(--size-typography-icon-xl))}\n"] }); }
123
123
  }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiIcon, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiIcon, decorators: [{
125
125
  type: Component,
126
126
  args: [{ selector: 'ui-icon', template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n >{{ content() }}</i\n>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-icon-min-size, 1em);min-height:var(--ui-icon-min-size, 1em);aspect-ratio:var(--ui-icon-aspect-ratio, 1);color:inherit;font-size:var(--ui-icon-size, var(--_scale))}.ui-icon._sm{--_scale: var(--ui-icon-size-sm, var(--size-typography-icon-sm))}.ui-icon._md{--_scale: var(--ui-icon-size-md, var(--size-typography-icon-md))}.ui-icon._default{--_scale: var(--ui-icon-size-default, var(--size-typography-icon-default))}.ui-icon._lg{--_scale: var(--ui-icon-size-lg, var(--size-typography-icon-lg))}.ui-icon._xl{--_scale: var(--ui-icon-size-xl, var(--size-typography-icon-xl))}\n"] }]
127
127
  }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], family: [{ type: i0.Input, args: [{ isSignal: true, alias: "family", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
@@ -285,12 +285,12 @@ class UiImage {
285
285
  }
286
286
  return '';
287
287
  }
288
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
289
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadFailed: "loadFailed" }, ngImport: i0, template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--global-background-muted);color:var(--global-text-muted)}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
288
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
289
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadFailed: "loadFailed" }, ngImport: i0, template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--ui-image-placeholder-surface, var(--global-background-muted));color:var(--ui-image-placeholder-color, var(--global-text-muted))}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
290
290
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiImage, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiImage, decorators: [{
292
292
  type: Component,
293
- args: [{ selector: 'ui-image', imports: [NgOptimizedImage, UiIcon], template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--global-background-muted);color:var(--global-text-muted)}\n"] }]
293
+ args: [{ selector: 'ui-image', imports: [NgOptimizedImage, UiIcon], template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--ui-image-placeholder-surface, var(--global-background-muted));color:var(--ui-image-placeholder-color, var(--global-text-muted))}\n"] }]
294
294
  }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], fallback: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallback", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthUnit", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], heightUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightUnit", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], loadFailed: [{ type: i0.Output, args: ["loadFailed"] }] } });
295
295
 
296
296
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-base-ui-image.mjs","sources":["../../../projects/ui-kit/base/ui-image/src/lib/ui-image-svg.ts","../../../projects/ui-kit/base/ui-image/src/lib/ui-image.ts","../../../projects/ui-kit/base/ui-image/src/lib/ui-image.html","../../../projects/ui-kit/base/ui-image/src/public-api.ts","../../../projects/ui-kit/base/ui-image/src/4sh-ui-kit-base-ui-image.ts"],"sourcesContent":["/**\n * Assainissement des SVG inlinés par `ui-image`.\n *\n * Angular's HTML sanitizer strips `<svg>` wholesale, so inlining an SVG — which\n * is what lets the asset inherit `currentColor` and the theme's CSS — has no\n * choice but to go through `bypassSecurityTrustHtml()`. That bypass is only\n * defensible if the markup has already been scrubbed here, which is the single\n * reason this file exists. See `docs/SECURITY-PRACTICES.md`.\n *\n * The threat model is not \"the kit's own assets\": it is a project serving\n * `assets/img/` from a CDN, or letting a client drop its own logo in a brand\n * folder (white-label). In both cases the SVG is markup of unknown origin\n * rendered into the application's own origin.\n */\n\n/**\n * Tags dropped WITH their content — unwrapping them would put their body in the\n * document as text, or leave the vector intact.\n *\n * `foreignObject` re-opens the whole HTML namespace inside the SVG, and the SMIL\n * elements (`animate`, `set`…) can retarget an attribute *after* this scrub ran.\n */\nconst VOIDED_TAGS =\n 'script, foreignObject, iframe, object, embed, animate, animateTransform, animateMotion, set, handler';\n\n/** Attributes carrying a reference — the only ones allowed to name a target. */\nconst REF_ATTRS = new Set(['href', 'xlink:href', 'src']);\n\n/** A reference either stays inside the document, or navigates over http(s). */\nconst ALLOWED_REF_PROTOCOLS = ['http:', 'https:'];\n\n/**\n * Strips from an SVG everything that can execute or fetch, and returns the\n * scrubbed markup.\n *\n * Parsing happens inside a detached `<template>`: its content is inert, so\n * nothing runs and nothing is fetched while we inspect it. Returns `''` when\n * there is no DOM to parse with (SSR) — failing closed, since un-scrubbed\n * markup must never reach the bypass.\n */\nexport function sanitizeInlineSvg(raw: string): string {\n if (typeof document === 'undefined') return '';\n\n const template = document.createElement('template');\n /* eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : on\n écrit DANS un `<template>` détaché, dont le contenu est inerte — rien ne\n s'exécute et rien n'est chargé. C'est l'étape de PARSING du scrub, pas une\n injection dans le document. Registre : docs/SECURITY-PRACTICES.md. */\n template.innerHTML = raw;\n\n for (const el of Array.from(template.content.querySelectorAll(VOIDED_TAGS))) el.remove();\n\n for (const el of Array.from(template.content.querySelectorAll('*'))) {\n for (const attr of Array.from(el.attributes)) {\n const name = attr.name.toLowerCase();\n // Every event handler, whatever the element it sits on.\n if (name.startsWith('on')) {\n el.removeAttributeNode(attr);\n continue;\n }\n if (REF_ATTRS.has(name) && !isSafeRef(attr.value)) el.removeAttributeNode(attr);\n }\n }\n\n return template.innerHTML;\n}\n\n/** @internal Rejects `javascript:`, `data:` and the other non-navigational schemes. */\nfunction isSafeRef(value: string): boolean {\n const ref = value.trim();\n // `<use href=\"#icon\">` — a same-document reference names no external target.\n if (ref.startsWith('#')) return true;\n try {\n return ALLOWED_REF_PROTOCOLS.includes(new URL(ref, document.baseURI).protocol);\n } catch {\n return false;\n }\n}\n","import {\n Component,\n computed,\n effect,\n inject,\n InjectionToken,\n input,\n isDevMode,\n linkedSignal,\n output,\n Provider,\n} from '@angular/core';\nimport { NgOptimizedImage } from '@angular/common';\nimport { httpResource } from '@angular/common/http';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ThemeService } from '@4sh/ui-kit/theming';\nimport { BrandService } from '@4sh/ui-kit/theming';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { sanitizeInlineSvg } from './ui-image-svg';\n\ninterface ModeMap {\n base?: string;\n light?: string;\n dark?: string;\n}\ntype ThemeMap = Record<string, ModeMap>;\n/** filename → { brand|'common' → { base|light|dark → extension } }. */\nexport type UiImageAssetsMap = Record<string, ThemeMap>;\n\n/**\n * Map of the LOCAL assets available to `ui-image` (its `name` input).\n *\n * The kit cannot know a project's assets, so the map is injected rather than\n * bundled: generate it in your app (see the `generate:assets` script in the\n * starter, which writes `src/assets/assets-map.json`) and provide it with\n * `provideUiImageAssets()`. Without it, `name` resolves to nothing and the\n * component falls back to its placeholder — `src` (remote URLs) still works.\n */\nexport const UI_IMAGE_ASSETS = new InjectionToken<UiImageAssetsMap>('UI_IMAGE_ASSETS');\n\n/**\n * Registers the local asset map consumed by `ui-image`.\n *\n * ```ts\n * import assetsMap from './assets/assets-map.json';\n * providers: [provideUiImageAssets(assetsMap)]\n * ```\n */\nexport function provideUiImageAssets(map: UiImageAssetsMap): Provider {\n return { provide: UI_IMAGE_ASSETS, useValue: map };\n}\n\n/**\n * Cross-instance memoization: the same resolved URL is fetched once (logos\n * repeated across the app).\n *\n * Holds the **scrubbed** markup, never the raw response — nothing that skipped\n * `sanitizeInlineSvg()` may ever be read back out of here.\n */\nconst SVG_CACHE = new Map<string, string>();\n\n/**\n * ui-image — theme/brand-aware image.\n *\n * Two sources: `name` (local asset key resolved through `assets-map.json`,\n * theme/brand variants) or `src` (remote/absolute URL — takes precedence).\n * Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS — after\n * being scrubbed by `sanitizeInlineSvg()`; remote URLs always render through\n * `<img [ngSrc]>` (never inlined).\n * On load failure the `fallback` local asset is shown, then a token-styled\n * placeholder if the fallback also fails (or none is provided).\n */\n@Component({\n selector: 'ui-image',\n templateUrl: './ui-image.html',\n styleUrl: './ui-image.scss',\n imports: [NgOptimizedImage, UiIcon],\n})\nexport class UiImage {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly assetsMap = inject(UI_IMAGE_ASSETS, { optional: true }) ?? {};\n private readonly themeService = inject(ThemeService);\n private readonly brandService = inject(BrandService);\n\n /** Local asset key in `assets-map.json` (theme/brand-aware resolution). */\n name = input<string>();\n /** Remote/absolute URL, rendered via `NgOptimizedImage` — takes precedence over `name`. */\n src = input<string>();\n /** Local asset name (`assets-map.json` key) displayed when the main image fails to load. */\n fallback = input<string>();\n priority = input(false);\n fill = input(false);\n width = input<string | number>();\n widthUnit = input<string>();\n height = input<string | number>();\n heightUnit = input<string>();\n alt = input<string>();\n\n /** Emitted with the failed URL when an image fails to load. */\n loadFailed = output<string>();\n\n protected readonly isRemote = computed(() => !!this.src());\n /** Inline SVG is reserved for LOCAL assets — a remote `.svg` renders through `<img>` (no XSS surface). */\n protected readonly isInlineSvg = computed(\n () => !this.isRemote() && !!this.name()?.toLowerCase().endsWith('.svg'),\n );\n\n protected readonly localSrc = computed(() => this.resolveLocal(this.name()));\n protected readonly fallbackSrc = computed(() => this.resolveLocal(this.fallback()));\n protected readonly primarySrc = computed(() => this.src() || this.localSrc());\n\n // Failure flags auto-reset when their source URL changes (theme/brand/src swap → automatic retry).\n private readonly primaryImgFailed = linkedSignal({\n source: this.primarySrc,\n computation: () => false,\n });\n private readonly fallbackImgFailed = linkedSignal({\n source: this.fallbackSrc,\n computation: () => false,\n });\n\n private readonly svgResource = httpResource.text(() => {\n if (!this.isInlineSvg()) return undefined;\n const url = this.localSrc();\n return !url || SVG_CACHE.has(url) ? undefined : url;\n });\n\n /**\n * The inlined SVG, scrubbed then trusted.\n *\n * FSHSP-177 — this is the kit's ONLY `bypassSecurityTrust*()`. It is not\n * avoidable: Angular's HTML sanitizer strips `<svg>` wholesale, so passing the\n * asset through `sanitize(SecurityContext.HTML, …)` would render nothing, and\n * inlining is the whole point (the asset inherits `currentColor` and the\n * theme's CSS — an `<img>` cannot). What makes the bypass defensible is that\n * the markup went through `sanitizeInlineSvg()` first: scripts, `foreignObject`,\n * SMIL, event handlers and non-navigational references are already gone.\n * Justified in `docs/SECURITY-PRACTICES.md`.\n */\n protected readonly svgContent = computed<SafeHtml | null>(() => {\n if (!this.isInlineSvg()) return null;\n const url = this.localSrc();\n if (!url) return null;\n const safe =\n SVG_CACHE.get(url) ??\n (this.svgResource.hasValue() ? sanitizeInlineSvg(this.svgResource.value()) : undefined);\n /* eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE :\n seul bypass du kit. Inévitable (l'assainisseur d'Angular supprime `<svg>`\n en entier) et sûr parce que `sanitizeInlineSvg()` a déjà retiré scripts,\n foreignObject, SMIL, gestionnaires d'événements et références non\n navigationnelles. Registre : docs/SECURITY-PRACTICES.md. */\n return safe === undefined ? null : this.sanitizer.bypassSecurityTrustHtml(safe);\n });\n\n protected readonly primaryFailed = computed(() =>\n this.isInlineSvg() ? this.svgResource.status() === 'error' : this.primaryImgFailed(),\n );\n protected readonly showFallback = computed(\n () => this.primaryFailed() && !!this.fallbackSrc() && !this.fallbackImgFailed(),\n );\n protected readonly showPlaceholder = computed(\n () =>\n !this.primarySrc() ||\n (this.primaryFailed() && (!this.fallbackSrc() || this.fallbackImgFailed())),\n );\n protected readonly displayedSrc = computed(() =>\n this.showFallback() ? this.fallbackSrc() : this.primarySrc(),\n );\n\n protected readonly cssWidth = computed(() =>\n this.width() != null ? `${this.width()}${this.widthUnit() || 'px'}` : null,\n );\n protected readonly cssHeight = computed(() =>\n this.height() != null ? `${this.height()}${this.heightUnit() || 'px'}` : null,\n );\n\n constructor() {\n // Side effect only: populate the module-level SVG cache once a fetch\n // resolves. Scrubbed on the way in — the cache is read straight into the\n // bypass, so it must never hold a raw response.\n effect(() => {\n if (!this.isInlineSvg()) return;\n const url = this.localSrc();\n if (url && this.svgResource.hasValue())\n SVG_CACHE.set(url, sanitizeInlineSvg(this.svgResource.value()));\n });\n if (isDevMode()) {\n effect(() => {\n if (this.src() && this.name()) {\n console.warn('[ui-image] `src` and `name` are both set — `src` takes precedence.');\n }\n if (!this.src() && !this.name()) {\n console.warn(\n '[ui-image] Neither `src` nor `name` is set — the placeholder is displayed.',\n );\n }\n });\n }\n }\n\n protected onImgError(): void {\n const failed = this.displayedSrc();\n if (this.showFallback()) this.fallbackImgFailed.set(true);\n else this.primaryImgFailed.set(true);\n if (failed) this.loadFailed.emit(failed);\n }\n\n private resolveLocal(filename: string | undefined): string {\n if (!filename) return '';\n const mode = this.themeService.currentMode();\n const brand = this.brandService.currentBrand();\n\n const fileEntry = this.assetsMap[filename];\n if (!fileEntry) return '';\n\n if (fileEntry[brand]) {\n const path = this.resolvePath(brand, fileEntry[brand], mode, filename);\n if (path) return path;\n }\n\n if (fileEntry['common']) {\n return this.buildPath('common', fileEntry['common'], mode, filename);\n }\n\n return '';\n }\n\n private resolvePath(\n themeFolder: string,\n variants: ModeMap,\n currentMode: 'light' | 'dark',\n filename: string,\n ): string | null {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeFolder}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeFolder}/${type}/${filename}`;\n }\n\n return null;\n }\n\n private buildPath(\n themeName: string,\n variants: ModeMap,\n currentMode: 'light' | 'dark',\n filename: string,\n ): string {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeName}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeName}/${type}/${filename}`;\n }\n\n return '';\n }\n}\n","@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFIÉE (FSHSP-177) : le SVG local est inliné pour hériter du CSS\n (currentColor, thème) — un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis passée à bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser à l'intérieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n","/*\n * Public API Surface of ui-kit/ui-image\n */\n\nexport * from './lib/ui-image';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAEH;;;;;;AAMG;AACH,MAAM,WAAW,GACf,sGAAsG;AAExG;AACA,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAExD;AACA,MAAM,qBAAqB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC;AAEjD;;;;;;;;AAQG;AACG,SAAU,iBAAiB,CAAC,GAAW,EAAA;IAC3C,IAAI,OAAO,QAAQ,KAAK,WAAW;AAAE,QAAA,OAAO,EAAE;IAE9C,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa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A,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,GAAA,EAAA,EAAA,iBAAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9EpB,44CAwCA,EAAA,MAAA,EAAA,CAAA,wkBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDoCY,gBAAgB,4PAAE,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAEvB,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EAGX,CAAC,gBAAgB,EAAE,MAAM,CAAC,EAAA,QAAA,EAAA,44CAAA,EAAA,MAAA,EAAA,CAAA,wkBAAA,CAAA,EAAA;;;AE5ErC;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-base-ui-image.mjs","sources":["../../../projects/ui-kit/base/ui-image/src/lib/ui-image-svg.ts","../../../projects/ui-kit/base/ui-image/src/lib/ui-image.ts","../../../projects/ui-kit/base/ui-image/src/lib/ui-image.html","../../../projects/ui-kit/base/ui-image/src/public-api.ts","../../../projects/ui-kit/base/ui-image/src/4sh-ui-kit-base-ui-image.ts"],"sourcesContent":["/**\n * Assainissement des SVG inlinés par `ui-image`.\n *\n * Angular's HTML sanitizer strips `<svg>` wholesale, so inlining an SVG — which\n * is what lets the asset inherit `currentColor` and the theme's CSS — has no\n * choice but to go through `bypassSecurityTrustHtml()`. That bypass is only\n * defensible if the markup has already been scrubbed here, which is the single\n * reason this file exists. See `docs/SECURITY-PRACTICES.md`.\n *\n * The threat model is not \"the kit's own assets\": it is a project serving\n * `assets/img/` from a CDN, or letting a client drop its own logo in a brand\n * folder (white-label). In both cases the SVG is markup of unknown origin\n * rendered into the application's own origin.\n */\n\n/**\n * Tags dropped WITH their content — unwrapping them would put their body in the\n * document as text, or leave the vector intact.\n *\n * `foreignObject` re-opens the whole HTML namespace inside the SVG, and the SMIL\n * elements (`animate`, `set`…) can retarget an attribute *after* this scrub ran.\n */\nconst VOIDED_TAGS =\n 'script, foreignObject, iframe, object, embed, animate, animateTransform, animateMotion, set, handler';\n\n/** Attributes carrying a reference — the only ones allowed to name a target. */\nconst REF_ATTRS = new Set(['href', 'xlink:href', 'src']);\n\n/** A reference either stays inside the document, or navigates over http(s). */\nconst ALLOWED_REF_PROTOCOLS = ['http:', 'https:'];\n\n/**\n * Strips from an SVG everything that can execute or fetch, and returns the\n * scrubbed markup.\n *\n * Parsing happens inside a detached `<template>`: its content is inert, so\n * nothing runs and nothing is fetched while we inspect it. Returns `''` when\n * there is no DOM to parse with (SSR) — failing closed, since un-scrubbed\n * markup must never reach the bypass.\n */\nexport function sanitizeInlineSvg(raw: string): string {\n if (typeof document === 'undefined') return '';\n\n const template = document.createElement('template');\n /* eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : on\n écrit DANS un `<template>` détaché, dont le contenu est inerte — rien ne\n s'exécute et rien n'est chargé. C'est l'étape de PARSING du scrub, pas une\n injection dans le document. Registre : docs/SECURITY-PRACTICES.md. */\n template.innerHTML = raw;\n\n for (const el of Array.from(template.content.querySelectorAll(VOIDED_TAGS))) el.remove();\n\n for (const el of Array.from(template.content.querySelectorAll('*'))) {\n for (const attr of Array.from(el.attributes)) {\n const name = attr.name.toLowerCase();\n // Every event handler, whatever the element it sits on.\n if (name.startsWith('on')) {\n el.removeAttributeNode(attr);\n continue;\n }\n if (REF_ATTRS.has(name) && !isSafeRef(attr.value)) el.removeAttributeNode(attr);\n }\n }\n\n return template.innerHTML;\n}\n\n/** @internal Rejects `javascript:`, `data:` and the other non-navigational schemes. */\nfunction isSafeRef(value: string): boolean {\n const ref = value.trim();\n // `<use href=\"#icon\">` — a same-document reference names no external target.\n if (ref.startsWith('#')) return true;\n try {\n return ALLOWED_REF_PROTOCOLS.includes(new URL(ref, document.baseURI).protocol);\n } catch {\n return false;\n }\n}\n","import {\n Component,\n computed,\n effect,\n inject,\n InjectionToken,\n input,\n isDevMode,\n linkedSignal,\n output,\n Provider,\n} from '@angular/core';\nimport { NgOptimizedImage } from '@angular/common';\nimport { httpResource } from '@angular/common/http';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ThemeService } from '@4sh/ui-kit/theming';\nimport { BrandService } from '@4sh/ui-kit/theming';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { sanitizeInlineSvg } from './ui-image-svg';\n\ninterface ModeMap {\n base?: string;\n light?: string;\n dark?: string;\n}\ntype ThemeMap = Record<string, ModeMap>;\n/** filename → { brand|'common' → { base|light|dark → extension } }. */\nexport type UiImageAssetsMap = Record<string, ThemeMap>;\n\n/**\n * Map of the LOCAL assets available to `ui-image` (its `name` input).\n *\n * The kit cannot know a project's assets, so the map is injected rather than\n * bundled: generate it in your app (see the `generate:assets` script in the\n * starter, which writes `src/assets/assets-map.json`) and provide it with\n * `provideUiImageAssets()`. Without it, `name` resolves to nothing and the\n * component falls back to its placeholder — `src` (remote URLs) still works.\n */\nexport const UI_IMAGE_ASSETS = new InjectionToken<UiImageAssetsMap>('UI_IMAGE_ASSETS');\n\n/**\n * Registers the local asset map consumed by `ui-image`.\n *\n * ```ts\n * import assetsMap from './assets/assets-map.json';\n * providers: [provideUiImageAssets(assetsMap)]\n * ```\n */\nexport function provideUiImageAssets(map: UiImageAssetsMap): Provider {\n return { provide: UI_IMAGE_ASSETS, useValue: map };\n}\n\n/**\n * Cross-instance memoization: the same resolved URL is fetched once (logos\n * repeated across the app).\n *\n * Holds the **scrubbed** markup, never the raw response — nothing that skipped\n * `sanitizeInlineSvg()` may ever be read back out of here.\n */\nconst SVG_CACHE = new Map<string, string>();\n\n/**\n * ui-image — theme/brand-aware image.\n *\n * Two sources: `name` (local asset key resolved through `assets-map.json`,\n * theme/brand variants) or `src` (remote/absolute URL — takes precedence).\n * Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS — after\n * being scrubbed by `sanitizeInlineSvg()`; remote URLs always render through\n * `<img [ngSrc]>` (never inlined).\n * On load failure the `fallback` local asset is shown, then a token-styled\n * placeholder if the fallback also fails (or none is provided).\n */\n@Component({\n selector: 'ui-image',\n templateUrl: './ui-image.html',\n styleUrl: './ui-image.scss',\n imports: [NgOptimizedImage, UiIcon],\n})\nexport class UiImage {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly assetsMap = inject(UI_IMAGE_ASSETS, { optional: true }) ?? {};\n private readonly themeService = inject(ThemeService);\n private readonly brandService = inject(BrandService);\n\n /** Local asset key in `assets-map.json` (theme/brand-aware resolution). */\n name = input<string>();\n /** Remote/absolute URL, rendered via `NgOptimizedImage` — takes precedence over `name`. */\n src = input<string>();\n /** Local asset name (`assets-map.json` key) displayed when the main image fails to load. */\n fallback = input<string>();\n priority = input(false);\n fill = input(false);\n width = input<string | number>();\n widthUnit = input<string>();\n height = input<string | number>();\n heightUnit = input<string>();\n alt = input<string>();\n\n /** Emitted with the failed URL when an image fails to load. */\n loadFailed = output<string>();\n\n protected readonly isRemote = computed(() => !!this.src());\n /** Inline SVG is reserved for LOCAL assets — a remote `.svg` renders through `<img>` (no XSS surface). */\n protected readonly isInlineSvg = computed(\n () => !this.isRemote() && !!this.name()?.toLowerCase().endsWith('.svg'),\n );\n\n protected readonly localSrc = computed(() => this.resolveLocal(this.name()));\n protected readonly fallbackSrc = computed(() => this.resolveLocal(this.fallback()));\n protected readonly primarySrc = computed(() => this.src() || this.localSrc());\n\n // Failure flags auto-reset when their source URL changes (theme/brand/src swap → automatic retry).\n private readonly primaryImgFailed = linkedSignal({\n source: this.primarySrc,\n computation: () => false,\n });\n private readonly fallbackImgFailed = linkedSignal({\n source: this.fallbackSrc,\n computation: () => false,\n });\n\n private readonly svgResource = httpResource.text(() => {\n if (!this.isInlineSvg()) return undefined;\n const url = this.localSrc();\n return !url || SVG_CACHE.has(url) ? undefined : url;\n });\n\n /**\n * The inlined SVG, scrubbed then trusted.\n *\n * FSHSP-177 — this is the kit's ONLY `bypassSecurityTrust*()`. It is not\n * avoidable: Angular's HTML sanitizer strips `<svg>` wholesale, so passing the\n * asset through `sanitize(SecurityContext.HTML, …)` would render nothing, and\n * inlining is the whole point (the asset inherits `currentColor` and the\n * theme's CSS — an `<img>` cannot). What makes the bypass defensible is that\n * the markup went through `sanitizeInlineSvg()` first: scripts, `foreignObject`,\n * SMIL, event handlers and non-navigational references are already gone.\n * Justified in `docs/SECURITY-PRACTICES.md`.\n */\n protected readonly svgContent = computed<SafeHtml | null>(() => {\n if (!this.isInlineSvg()) return null;\n const url = this.localSrc();\n if (!url) return null;\n const safe =\n SVG_CACHE.get(url) ??\n (this.svgResource.hasValue() ? sanitizeInlineSvg(this.svgResource.value()) : undefined);\n /* eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE :\n seul bypass du kit. Inévitable (l'assainisseur d'Angular supprime `<svg>`\n en entier) et sûr parce que `sanitizeInlineSvg()` a déjà retiré scripts,\n foreignObject, SMIL, gestionnaires d'événements et références non\n navigationnelles. Registre : docs/SECURITY-PRACTICES.md. */\n return safe === undefined ? null : this.sanitizer.bypassSecurityTrustHtml(safe);\n });\n\n protected readonly primaryFailed = computed(() =>\n this.isInlineSvg() ? this.svgResource.status() === 'error' : this.primaryImgFailed(),\n );\n protected readonly showFallback = computed(\n () => this.primaryFailed() && !!this.fallbackSrc() && !this.fallbackImgFailed(),\n );\n protected readonly showPlaceholder = computed(\n () =>\n !this.primarySrc() ||\n (this.primaryFailed() && (!this.fallbackSrc() || this.fallbackImgFailed())),\n );\n protected readonly displayedSrc = computed(() =>\n this.showFallback() ? this.fallbackSrc() : this.primarySrc(),\n );\n\n protected readonly cssWidth = computed(() =>\n this.width() != null ? `${this.width()}${this.widthUnit() || 'px'}` : null,\n );\n protected readonly cssHeight = computed(() =>\n this.height() != null ? `${this.height()}${this.heightUnit() || 'px'}` : null,\n );\n\n constructor() {\n // Side effect only: populate the module-level SVG cache once a fetch\n // resolves. Scrubbed on the way in — the cache is read straight into the\n // bypass, so it must never hold a raw response.\n effect(() => {\n if (!this.isInlineSvg()) return;\n const url = this.localSrc();\n if (url && this.svgResource.hasValue())\n SVG_CACHE.set(url, sanitizeInlineSvg(this.svgResource.value()));\n });\n if (isDevMode()) {\n effect(() => {\n if (this.src() && this.name()) {\n console.warn('[ui-image] `src` and `name` are both set — `src` takes precedence.');\n }\n if (!this.src() && !this.name()) {\n console.warn(\n '[ui-image] Neither `src` nor `name` is set — the placeholder is displayed.',\n );\n }\n });\n }\n }\n\n protected onImgError(): void {\n const failed = this.displayedSrc();\n if (this.showFallback()) this.fallbackImgFailed.set(true);\n else this.primaryImgFailed.set(true);\n if (failed) this.loadFailed.emit(failed);\n }\n\n private resolveLocal(filename: string | undefined): string {\n if (!filename) return '';\n const mode = this.themeService.currentMode();\n const brand = this.brandService.currentBrand();\n\n const fileEntry = this.assetsMap[filename];\n if (!fileEntry) return '';\n\n if (fileEntry[brand]) {\n const path = this.resolvePath(brand, fileEntry[brand], mode, filename);\n if (path) return path;\n }\n\n if (fileEntry['common']) {\n return this.buildPath('common', fileEntry['common'], mode, filename);\n }\n\n return '';\n }\n\n private resolvePath(\n themeFolder: string,\n variants: ModeMap,\n currentMode: 'light' | 'dark',\n filename: string,\n ): string | null {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeFolder}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeFolder}/${type}/${filename}`;\n }\n\n return null;\n }\n\n private buildPath(\n themeName: string,\n variants: ModeMap,\n currentMode: 'light' | 'dark',\n filename: string,\n ): string {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeName}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeName}/${type}/${filename}`;\n }\n\n return '';\n }\n}\n","@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFIÉE (FSHSP-177) : le SVG local est inliné pour hériter du CSS\n (currentColor, thème) — un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis passée à bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser à l'intérieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n","/*\n * Public API Surface of ui-kit/ui-image\n */\n\nexport * from './lib/ui-image';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAEH;;;;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