@4sh/ui-kit 0.4.0 → 0.6.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 (111) hide show
  1. package/README.fr.md +73 -60
  2. package/README.md +72 -59
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +4 -4
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -6
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +7 -7
  10. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +11 -8
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +32 -12
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +51 -15
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
  19. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +13 -9
  21. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +6 -6
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +8 -4
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +24 -9
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  32. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +3 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  35. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -8
  37. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -8
  39. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +11 -6
  41. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +29 -15
  43. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +8 -9
  45. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +13 -6
  47. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +6 -4
  49. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms.mjs +16 -16
  51. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
  53. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
  55. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  56. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
  57. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
  58. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
  59. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
  61. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
  62. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +5 -4
  65. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
  67. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  68. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  72. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  73. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +30 -14
  75. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +43 -17
  77. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  78. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
  79. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  80. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
  81. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  82. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +23 -7
  83. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  84. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  85. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  86. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +10 -5
  87. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  88. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  89. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +79 -14
  91. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +15 -13
  93. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +29 -21
  95. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
  97. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  98. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
  99. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +55 -42
  101. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-theming.mjs +7 -7
  103. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  104. package/mcp/LICENSE +201 -0
  105. package/mcp/data/text-search-docs.json +7046 -0
  106. package/mcp/data/ui-config.json +16960 -0
  107. package/mcp/index.js +33018 -0
  108. package/mcp/package.json +18 -0
  109. package/package.json +10 -4
  110. package/schematics/index.cjs +28 -18
  111. package/types/4sh-ui-kit-layout-ui-card.d.ts +13 -1
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-read-only.mjs","sources":["../../../projects/ui-kit/informative/ui-read-only/src/lib/ui-read-only.ts","../../../projects/ui-kit/informative/ui-read-only/src/lib/ui-read-only.html","../../../projects/ui-kit/informative/ui-read-only/src/public-api.ts","../../../projects/ui-kit/informative/ui-read-only/src/4sh-ui-kit-informative-ui-read-only.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n input,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiLabel } from '@4sh/ui-kit/forms/ui-label';\n\nexport type ReadOnlySize = 'default' | 'small';\nexport type ReadOnlyLayout = 'vertical' | 'horizontal' | 'grid';\nexport type ReadOnlyAlign = 'left' | 'right';\n\n/**\n * ui-read-only — displays a labelled value in read-only mode.\n */\n@Component({\n selector: 'ui-read-only',\n imports: [NgTemplateOutlet, UiLabel],\n templateUrl: './ui-read-only.html',\n styleUrl: './ui-read-only.scss',\n host: {\n '[style.display]': \"inline() ? 'inline-block' : 'block'\",\n },\n})\nexport class UiReadOnly {\n /** Field label (plain string — i18n is the caller's responsibility). Rendered via `ui-label`. */\n label = input<string>();\n /** Shows the required marker (*) on the label — for parity with a required field. */\n required = input(false, { transform: booleanAttribute });\n /** Fully custom label markup, replacing the default `ui-label` (escape hatch). */\n labelTemplate = input<TemplateRef<unknown>>();\n /** Displayed value. Ignored when content is projected. */\n value = input<string | number | null | undefined>();\n /** Shown (muted) when the value is null / undefined / empty. */\n fallback = input<string>('—');\n /**\n * Accessible text announced in place of the `fallback` symbol when the value\n * is empty (e.g. \"Non renseigné\"). The visual `fallback` stays decorative.\n */\n emptyLabel = input<string>();\n /** Stacked (`vertical`), side-by-side (`horizontal`), or grid-driven (`grid`). */\n layout = input<ReadOnlyLayout>('vertical');\n /** Text/label size. */\n size = input<ReadOnlySize>('default');\n /** Label text alignment (horizontal layout only). */\n labelAlign = input<ReadOnlyAlign>('left');\n /** Label column width in horizontal layout (any CSS length, e.g. `160px`, `30%`). Unset = hug content. */\n labelWidth = input<string>();\n /** Preserve line breaks in the value (`white-space: pre-line`). */\n multiline = input(false, { transform: booleanAttribute });\n /** Hug content and flow inline instead of filling the container. */\n inline = input(false, { transform: booleanAttribute });\n /**\n * Adapt the layout to sit alongside form fields\n */\n matchField = input(false, { transform: booleanAttribute });\n\n // --- Layout passthrough (grid / utility systems) ---------------------\n // Classes forwarded verbatim onto the row / label cell / value cell, so any\n // grid or utility system drives the layout (e.g. Gridaflex `flex-x` on the\n // row + `cell phone-24 desktop-auto` on the cells). Additive in every layout.\n /** Extra classes on the row (`<dl>`), e.g. a grid row class like `flex-x`. */\n rowClass = input<string>();\n /** Extra classes on the label cell (`<dt>`), e.g. `cell phone-24 desktop-auto`. */\n labelClass = input<string>();\n /** Extra classes on the value cell (`<dd>`), e.g. `cell phone-24 desktop-auto`. */\n valueClass = input<string>();\n\n /** @ignore Wrapper around <ng-content>, used to detect projected content. */\n private readonly projectedWrap = viewChild<ElementRef<HTMLElement>>('projectedWrap');\n /** @ignore Rich value was projected via <ng-content>. */\n protected readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detect projected content once (SSR-safe, browser only) — mirrors ui-button.\n afterNextRender(() => {\n const el = this.projectedWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) => n.nodeType === Node.ELEMENT_NODE || (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n }\n\n /** @ignore A label is provided (drives the <dl>/<dt>/<dd> vs plain markup). */\n protected readonly hasLabel = computed(() => !!this.label() || !!this.labelTemplate());\n\n /** @ignore Displayed value, or the fallback when empty. */\n protected readonly displayValue = computed(() => {\n const v = this.value();\n if (v === null || v === undefined || v === '') return this.fallback();\n return String(v);\n });\n\n /** @ignore The displayed value is the fallback placeholder (styled muted). */\n protected readonly isFallback = computed(() => {\n const v = this.value();\n return v === null || v === undefined || v === '';\n });\n\n /** @ignore Root (row) classes: base + modifiers + passthrough `rowClass`. */\n protected readonly rootClasses = computed(() => {\n const c = ['ui-read-only'];\n const layout = this.layout();\n if (layout === 'horizontal') c.push('_horizontal');\n else if (layout === 'grid') c.push('_grid');\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.labelAlign() === 'right') c.push('_label-right');\n if (this.matchField()) c.push('_match-field');\n const extra = this.rowClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Label-cell classes: base + passthrough `labelClass`. */\n protected readonly labelClasses = computed(() => {\n const extra = this.labelClass();\n return extra ? `ui-read-only-label ${extra}` : 'ui-read-only-label';\n });\n\n /** @ignore Value-cell classes: base + passthrough `valueClass`. */\n protected readonly valueCellClasses = computed(() => {\n const extra = this.valueClass();\n return extra ? `ui-read-only-value-cell ${extra}` : 'ui-read-only-value-cell';\n });\n}\n","@if (hasLabel()) {\n <dl [class]=\"rootClasses()\" [style.--ui-read-only-label-width]=\"labelWidth()\">\n <dt [class]=\"labelClasses()\">\n @if (labelTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-label [label]=\"label()!\" [size]=\"size()\" [required]=\"required()\" />\n }\n </dt>\n <dd [class]=\"valueCellClasses()\">\n <ng-container [ngTemplateOutlet]=\"valueBlock\" />\n </dd>\n </dl>\n} @else {\n <!-- No label → no <dl> (a <dd> without a <dt> would be invalid markup). -->\n <div [class]=\"rootClasses()\">\n <div [class]=\"valueCellClasses()\">\n <ng-container [ngTemplateOutlet]=\"valueBlock\" />\n </div>\n </div>\n}\n\n<ng-template #valueBlock>\n <!-- Projected rich value (badge, link…). Wrapper is measured after render. -->\n <span #projectedWrap class=\"ui-read-only-projected\"><ng-content /></span>\n\n @if (!hasProjectedContent()) {\n @if (isFallback() && emptyLabel()) {\n <!-- Empty: show the fallback symbol visually, announce meaningful text. -->\n <span class=\"ui-read-only-value _fallback\" [class._multiline]=\"multiline()\">\n <span aria-hidden=\"true\">{{ displayValue() }}</span>\n <span class=\"ui-read-only-sr\">{{ emptyLabel() }}</span>\n </span>\n } @else {\n <span\n class=\"ui-read-only-value\"\n [class._fallback]=\"isFallback()\"\n [class._multiline]=\"multiline()\"\n >{{ displayValue() }}</span\n >\n }\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-read-only\n */\n\nexport * from './lib/ui-read-only';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkBA;;AAEG;MAUU,UAAU,CAAA;AAiDrB,IAAA,WAAA,GAAA;;AA/CA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;qGAAwB;;AAE7C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAsC;;QAEnD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;AAC7B;;;AAGG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAE5B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAiB,UAAU;mFAAC;;QAE1C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAe,SAAS;iFAAC;;Q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BAAgB,oJAAE,OAAO,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,KAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOxB,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,WACf,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAA,IAAA,EAG9B;AACJ,wBAAA,iBAAiB,EAAE,qCAAqC;AACzD,qBAAA,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,2qDAAA,CAAA,EAAA;6mDA+CmE,eAAe,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3ErF;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-read-only.mjs","sources":["../../../projects/ui-kit/informative/ui-read-only/src/lib/ui-read-only.ts","../../../projects/ui-kit/informative/ui-read-only/src/lib/ui-read-only.html","../../../projects/ui-kit/informative/ui-read-only/src/public-api.ts","../../../projects/ui-kit/informative/ui-read-only/src/4sh-ui-kit-informative-ui-read-only.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n input,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiLabel } from '@4sh/ui-kit/forms/ui-label';\n\nexport type ReadOnlySize = 'default' | 'small';\nexport type ReadOnlyLayout = 'vertical' | 'horizontal' | 'grid';\nexport type ReadOnlyAlign = 'left' | 'right';\n\n/**\n * ui-read-only — displays a labelled value in read-only mode.\n */\n@Component({\n selector: 'ui-read-only',\n imports: [NgTemplateOutlet, UiLabel],\n templateUrl: './ui-read-only.html',\n styleUrl: './ui-read-only.scss',\n host: {\n '[style.display]': \"inline() ? 'inline-block' : 'block'\",\n },\n})\nexport class UiReadOnly {\n /** Field label (plain string — i18n is the caller's responsibility). Rendered via `ui-label`. */\n label = input<string>();\n /** Shows the required marker (*) on the label — for parity with a required field. */\n required = input(false, { transform: booleanAttribute });\n /** Fully custom label markup, replacing the default `ui-label` (escape hatch). */\n labelTemplate = input<TemplateRef<unknown>>();\n /** Displayed value. Ignored when content is projected. */\n value = input<string | number | null | undefined>();\n /** Shown (muted) when the value is null / undefined / empty. */\n fallback = input<string>('—');\n /**\n * Accessible text announced in place of the `fallback` symbol when the value\n * is empty (e.g. \"Non renseigné\"). The visual `fallback` stays decorative.\n */\n emptyLabel = input<string>();\n /** Stacked (`vertical`), side-by-side (`horizontal`), or grid-driven (`grid`). */\n layout = input<ReadOnlyLayout>('vertical');\n /** Text/label size. */\n size = input<ReadOnlySize>('default');\n /** Label text alignment (horizontal layout only). */\n labelAlign = input<ReadOnlyAlign>('left');\n /** Label column width in horizontal layout (any CSS length, e.g. `160px`, `30%`). Unset = hug content. */\n labelWidth = input<string>();\n /** Preserve line breaks in the value (`white-space: pre-line`). */\n multiline = input(false, { transform: booleanAttribute });\n /** Hug content and flow inline instead of filling the container. */\n inline = input(false, { transform: booleanAttribute });\n /**\n * Adapt the layout to sit alongside form fields\n */\n matchField = input(false, { transform: booleanAttribute });\n\n // --- Layout passthrough (grid / utility systems) ---------------------\n // Classes forwarded verbatim onto the row / label cell / value cell, so any\n // grid or utility system drives the layout (e.g. Gridaflex `flex-x` on the\n // row + `cell phone-24 desktop-auto` on the cells). Additive in every layout.\n /** Extra classes on the row (`<dl>`), e.g. a grid row class like `flex-x`. */\n rowClass = input<string>();\n /** Extra classes on the label cell (`<dt>`), e.g. `cell phone-24 desktop-auto`. */\n labelClass = input<string>();\n /** Extra classes on the value cell (`<dd>`), e.g. `cell phone-24 desktop-auto`. */\n valueClass = input<string>();\n\n /** @ignore Wrapper around <ng-content>, used to detect projected content. */\n private readonly projectedWrap = viewChild<ElementRef<HTMLElement>>('projectedWrap');\n /** @ignore Rich value was projected via <ng-content>. */\n protected readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detect projected content once (SSR-safe, browser only) — mirrors ui-button.\n afterNextRender(() => {\n const el = this.projectedWrap()?.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\n /** @ignore A label is provided (drives the <dl>/<dt>/<dd> vs plain markup). */\n protected readonly hasLabel = computed(() => !!this.label() || !!this.labelTemplate());\n\n /** @ignore Displayed value, or the fallback when empty. */\n protected readonly displayValue = computed(() => {\n const v = this.value();\n if (v === null || v === undefined || v === '') return this.fallback();\n return String(v);\n });\n\n /** @ignore The displayed value is the fallback placeholder (styled muted). */\n protected readonly isFallback = computed(() => {\n const v = this.value();\n return v === null || v === undefined || v === '';\n });\n\n /** @ignore Root (row) classes: base + modifiers + passthrough `rowClass`. */\n protected readonly rootClasses = computed(() => {\n const c = ['ui-read-only'];\n const layout = this.layout();\n if (layout === 'horizontal') c.push('_horizontal');\n else if (layout === 'grid') c.push('_grid');\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.labelAlign() === 'right') c.push('_label-right');\n if (this.matchField()) c.push('_match-field');\n const extra = this.rowClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Label-cell classes: base + passthrough `labelClass`. */\n protected readonly labelClasses = computed(() => {\n const extra = this.labelClass();\n return extra ? `ui-read-only-label ${extra}` : 'ui-read-only-label';\n });\n\n /** @ignore Value-cell classes: base + passthrough `valueClass`. */\n protected readonly valueCellClasses = computed(() => {\n const extra = this.valueClass();\n return extra ? `ui-read-only-value-cell ${extra}` : 'ui-read-only-value-cell';\n });\n}\n","@if (hasLabel()) {\n <dl [class]=\"rootClasses()\" [style.--ui-read-only-label-width]=\"labelWidth()\">\n <dt [class]=\"labelClasses()\">\n @if (labelTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-label [label]=\"label()!\" [size]=\"size()\" [required]=\"required()\" />\n }\n </dt>\n <dd [class]=\"valueCellClasses()\">\n <ng-container [ngTemplateOutlet]=\"valueBlock\" />\n </dd>\n </dl>\n} @else {\n <!-- No label → no <dl> (a <dd> without a <dt> would be invalid markup). -->\n <div [class]=\"rootClasses()\">\n <div [class]=\"valueCellClasses()\">\n <ng-container [ngTemplateOutlet]=\"valueBlock\" />\n </div>\n </div>\n}\n\n<ng-template #valueBlock>\n <!-- Projected rich value (badge, link…). Wrapper is measured after render. -->\n <span #projectedWrap class=\"ui-read-only-projected\"><ng-content /></span>\n\n @if (!hasProjectedContent()) {\n @if (isFallback() && emptyLabel()) {\n <!-- Empty: show the fallback symbol visually, announce meaningful text. -->\n <span class=\"ui-read-only-value _fallback\" [class._multiline]=\"multiline()\">\n <span aria-hidden=\"true\">{{ displayValue() }}</span>\n <span class=\"ui-read-only-sr\">{{ emptyLabel() }}</span>\n </span>\n } @else {\n <span\n class=\"ui-read-only-value\"\n [class._fallback]=\"isFallback()\"\n [class._multiline]=\"multiline()\"\n >{{ displayValue() }}</span\n >\n }\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-read-only\n */\n\nexport * from './lib/ui-read-only';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkBA;;AAEG;MAUU,UAAU,CAAA;AAiDrB,IAAA,WAAA,GAAA;;AA/CA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;qGAAwB;;AAE7C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAsC;;QAEnD,IAAA,CAAA,QAA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A,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BvB,ohDA2CA,EAAA,MAAA,EAAA,CAAA,2qDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDpBY,gBAAgB,oJAAE,OAAO,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,KAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOxB,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,WACf,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAA,IAAA,EAG9B;AACJ,wBAAA,iBAAiB,EAAE,qCAAqC;AACzD,qBAAA,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,2qDAAA,CAAA,EAAA;6mDA+CmE,eAAe,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3ErF;;AAEG;;ACFH;;AAEG;;;;"}
@@ -57,10 +57,10 @@ class UiSeparator {
57
57
  }, /* @ts-ignore */
58
58
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
59
59
  }
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiSeparator, isStandalone: true, selector: "ui-separator", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", 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 }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"classes()\"\n role=\"separator\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"accessibleName()\"\n>\n @if (hasLabel()) {\n @if (lineBeforeLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-separator-label\">{{ label() }}</span>\n @if (lineAfterLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n } @else {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n</div>\n", styles: [".ui-separator{--_thickness: var(--ui-separator-stroke-width, var(--stroke-default));--_style: solid;display:flex;align-items:center;gap:var(--ui-separator-gap, var(--units-sm));box-sizing:border-box}.ui-separator._dashed{--_style: dashed}.ui-separator._small{--_thickness: var(--ui-separator-stroke-width-small, var(--stroke-sm))}.ui-separator-line{flex:1 1 auto;border:0 var(--_style) var(--global-border-default)}.ui-separator-label{flex:0 0 auto;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--ui-separator-font-size, var(--size-typography-text-default));line-height:1;white-space:nowrap}.ui-separator._small .ui-separator-label{font-size:var(--ui-separator-font-size-small, var(--size-typography-text-md))}.ui-separator._horizontal{width:100%}.ui-separator._horizontal .ui-separator-line{border-top-width:var(--_thickness)}.ui-separator._vertical{flex-direction:column;align-self:stretch;height:100%}.ui-separator._vertical .ui-separator-line{border-left-width:var(--_thickness)}\n"] }); }
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiSeparator, isStandalone: true, selector: "ui-separator", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", 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 }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"classes()\"\n role=\"separator\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"accessibleName()\"\n>\n @if (hasLabel()) {\n @if (lineBeforeLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-separator-label\">{{ label() }}</span>\n @if (lineAfterLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n } @else {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n</div>\n", styles: [".ui-separator{--_thickness: var(--ui-separator-stroke-width, var(--stroke-default));--_style: solid;display:flex;align-items:center;gap:var(--ui-separator-gap, var(--units-sm));box-sizing:border-box}.ui-separator._dashed{--_style: dashed}.ui-separator._small{--_thickness: var(--ui-separator-stroke-width-small, var(--stroke-sm))}.ui-separator-line{flex:1 1 auto;border:0 var(--_style) var(--global-border-default)}.ui-separator-label{flex:0 0 auto;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--ui-separator-font-size, var(--size-typography-text-default));line-height:1;white-space:nowrap}.ui-separator._small .ui-separator-label{font-size:var(--ui-separator-font-size-small, var(--size-typography-text-md))}.ui-separator._horizontal{width:100%}.ui-separator._horizontal .ui-separator-line{border-top-width:var(--_thickness)}.ui-separator._vertical{flex-direction:column;align-self:stretch;height:100%}.ui-separator._vertical .ui-separator-line{border-left-width:var(--_thickness)}\n"] }); }
62
62
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSeparator, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSeparator, decorators: [{
64
64
  type: Component,
65
65
  args: [{ selector: 'ui-separator', template: "<div\n [class]=\"classes()\"\n role=\"separator\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-label]=\"accessibleName()\"\n>\n @if (hasLabel()) {\n @if (lineBeforeLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-separator-label\">{{ label() }}</span>\n @if (lineAfterLabel()) {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n } @else {\n <span class=\"ui-separator-line\" aria-hidden=\"true\"></span>\n }\n</div>\n", styles: [".ui-separator{--_thickness: var(--ui-separator-stroke-width, var(--stroke-default));--_style: solid;display:flex;align-items:center;gap:var(--ui-separator-gap, var(--units-sm));box-sizing:border-box}.ui-separator._dashed{--_style: dashed}.ui-separator._small{--_thickness: var(--ui-separator-stroke-width-small, var(--stroke-sm))}.ui-separator-line{flex:1 1 auto;border:0 var(--_style) var(--global-border-default)}.ui-separator-label{flex:0 0 auto;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--ui-separator-font-size, var(--size-typography-text-default));line-height:1;white-space:nowrap}.ui-separator._small .ui-separator-label{font-size:var(--ui-separator-font-size-small, var(--size-typography-text-md))}.ui-separator._horizontal{width:100%}.ui-separator._horizontal .ui-separator-line{border-top-width:var(--_thickness)}.ui-separator._vertical{flex-direction:column;align-self:stretch;height:100%}.ui-separator._vertical .ui-separator-line{border-left-width:var(--_thickness)}\n"] }]
66
66
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], labelAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelAlign", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
@@ -59,10 +59,10 @@ class UiSkeleton {
59
59
  }, /* @ts-ignore */
60
60
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
61
61
  }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.1", type: UiSkeleton, isStandalone: true, selector: "ui-skeleton", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-hidden": "true" } }, ngImport: i0, template: "<div [class]=\"classes()\" [style]=\"boxStyle()\"></div>\n", styles: [":host{display:contents}.ui-skeleton{display:block;flex:none;position:relative;overflow:hidden;background-color:var(--ui-skeleton-background, var(--global-background-muted))}.ui-skeleton:after{content:\"\";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent 0%,var(--ui-skeleton-shine, var(--_shine, rgba(255, 255, 255, .6))) 50%,transparent 100%);will-change:transform;animation:ui-skeleton-wave 1.6s ease-in-out infinite}.ui-skeleton._text{width:var(--ui-skeleton-text-width, 14rem);height:var(--ui-skeleton-text-height, 1.25rem);border-radius:var(--ui-skeleton-text-radius, var(--radius-xl))}.ui-skeleton._circle{width:var(--ui-skeleton-circle-width, 6.25rem);height:var(--ui-skeleton-circle-height, 6.25rem);border-radius:var(--ui-skeleton-circle-radius, var(--radius-full))}.ui-skeleton._rectangle{width:var(--ui-skeleton-rectangle-width, 6.25rem);height:var(--ui-skeleton-rectangle-height, 6.25rem);border-radius:var(--ui-skeleton-rectangle-radius, var(--radius-default))}.ui-skeleton._circle{aspect-ratio:1/1}.ui-skeleton._text._small{height:var(--ui-skeleton-text-height-small, .75rem)}.ui-skeleton._circle._small{width:var(--ui-skeleton-circle-width-small, 4rem);height:var(--ui-skeleton-circle-height-small, 4rem)}.ui-skeleton._rectangle._small{width:var(--ui-skeleton-rectangle-width-small, 4rem);height:var(--ui-skeleton-rectangle-height-small, 4rem)}.ui-skeleton._pulse{animation:ui-skeleton-pulse 1.5s ease-in-out infinite}.ui-skeleton._pulse:after{content:none}.ui-skeleton._static:after{content:none}:host-context([data-theme=dark]),:host-context(.dark){--_shine: rgba(255, 255, 255, .09)}@keyframes ui-skeleton-pulse{50%{opacity:.45}}@keyframes ui-skeleton-wave{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.ui-skeleton{animation:none}.ui-skeleton:after{animation:none;opacity:0}}:host-context([data-motion=off]) .ui-skeleton{animation:none}:host-context([data-motion=off]) .ui-skeleton:after{animation:none;opacity:0}\n"] }); }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.2", type: UiSkeleton, isStandalone: true, selector: "ui-skeleton", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-hidden": "true" } }, ngImport: i0, template: "<div [class]=\"classes()\" [style]=\"boxStyle()\"></div>\n", styles: [":host{display:contents}.ui-skeleton{display:block;flex:none;position:relative;overflow:hidden;background-color:var(--ui-skeleton-background, var(--global-background-muted))}.ui-skeleton:after{content:\"\";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent 0%,var(--ui-skeleton-shine, var(--_shine, rgba(255, 255, 255, .6))) 50%,transparent 100%);will-change:transform;animation:ui-skeleton-wave 1.6s ease-in-out infinite}.ui-skeleton._text{width:var(--ui-skeleton-text-width, 14rem);height:var(--ui-skeleton-text-height, 1.25rem);border-radius:var(--ui-skeleton-text-radius, var(--radius-xl))}.ui-skeleton._circle{width:var(--ui-skeleton-circle-width, 6.25rem);height:var(--ui-skeleton-circle-height, 6.25rem);border-radius:var(--ui-skeleton-circle-radius, var(--radius-full))}.ui-skeleton._rectangle{width:var(--ui-skeleton-rectangle-width, 6.25rem);height:var(--ui-skeleton-rectangle-height, 6.25rem);border-radius:var(--ui-skeleton-rectangle-radius, var(--radius-default))}.ui-skeleton._circle{aspect-ratio:1/1}.ui-skeleton._text._small{height:var(--ui-skeleton-text-height-small, .75rem)}.ui-skeleton._circle._small{width:var(--ui-skeleton-circle-width-small, 4rem);height:var(--ui-skeleton-circle-height-small, 4rem)}.ui-skeleton._rectangle._small{width:var(--ui-skeleton-rectangle-width-small, 4rem);height:var(--ui-skeleton-rectangle-height-small, 4rem)}.ui-skeleton._pulse{animation:ui-skeleton-pulse 1.5s ease-in-out infinite}.ui-skeleton._pulse:after{content:none}.ui-skeleton._static:after{content:none}:host-context([data-theme=dark]),:host-context(.dark){--_shine: rgba(255, 255, 255, .09)}@keyframes ui-skeleton-pulse{50%{opacity:.45}}@keyframes ui-skeleton-wave{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.ui-skeleton{animation:none}.ui-skeleton:after{animation:none;opacity:0}}:host-context([data-motion=off]) .ui-skeleton{animation:none}:host-context([data-motion=off]) .ui-skeleton:after{animation:none;opacity:0}\n"] }); }
64
64
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSkeleton, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSkeleton, decorators: [{
66
66
  type: Component,
67
67
  args: [{ selector: 'ui-skeleton', host: {
68
68
  '[attr.aria-hidden]': 'true',
@@ -75,7 +75,7 @@ class UiSpinner {
75
75
  }, /* @ts-ignore */
76
76
  ...(ngDevMode ? [{ debugName: "markKind" }] : /* istanbul ignore next */ []));
77
77
  /** @ignore Icon size matching the spinner box (default → xl, small → default). */
78
- this.iconSize = computed(() => (this.size() === 'small' ? 'default' : 'xl'), /* @ts-ignore */
78
+ this.iconSize = computed(() => this.size() === 'small' ? 'default' : 'xl', /* @ts-ignore */
79
79
  ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
80
80
  /** @ignore Accessible name: explicit, else the visible label reads on its own, else a default. */
81
81
  this.rootAriaLabel = computed(() => {
@@ -110,10 +110,10 @@ class UiSpinner {
110
110
  }
111
111
  });
112
112
  }
113
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
114
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiSpinner, isStandalone: true, selector: "ui-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, spinnerTemplate: { classPropertyName: "spinnerTemplate", publicName: "spinnerTemplate", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, imageAlt: { classPropertyName: "imageAlt", publicName: "imageAlt", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--ui-spinner-duration": "animationDuration()" } }, ngImport: i0, template: "@if (visible()) {\n <div\n [class]=\"classes()\"\n role=\"status\"\n aria-live=\"polite\"\n [attr.aria-busy]=\"true\"\n [attr.aria-label]=\"rootAriaLabel()\"\n >\n <span class=\"ui-spinner-mark\" aria-hidden=\"true\">\n @switch (markKind()) {\n @case ('template') {\n <ng-container [ngTemplateOutlet]=\"spinnerTemplate()!\" />\n }\n @case ('image') {\n <img class=\"ui-spinner-image\" [src]=\"image()!\" [alt]=\"imageAlt()\" />\n }\n @case ('icon') {\n <span class=\"ui-spinner-spin\">\n <ui-icon [name]=\"icon()!\" [size]=\"iconSize()\" />\n </span>\n }\n @default {\n <svg class=\"ui-spinner-svg\" viewBox=\"0 0 50 50\">\n <circle\n class=\"ui-spinner-circle\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n [attr.fill]=\"fill()\"\n [attr.stroke-width]=\"strokeWidth()\"\n />\n </svg>\n }\n }\n </span>\n\n @if (label(); as text) {\n <span class=\"ui-spinner-label\">{{ text }}</span>\n }\n </div>\n}\n", styles: [".ui-spinner{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--units-sm);color:var(--ui-spinner-color, var(--informative-highlightlow-content-default))}.ui-spinner._horizontal{flex-direction:row}.ui-spinner-mark{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-spinner-size, 2rem);height:var(--ui-spinner-size, 2rem);line-height:0}.ui-spinner._small .ui-spinner-mark{width:var(--ui-spinner-size-small, 1.25rem);height:var(--ui-spinner-size-small, 1.25rem)}.ui-spinner._small .ui-spinner-label{font-size:var(--ui-spinner-font-size-small, var(--size-typography-text-sm))}.ui-spinner-svg{width:100%;height:100%;transform-origin:center;animation:ui-spinner-rotate var(--ui-spinner-duration, 1.2s) linear infinite}.ui-spinner-circle{stroke:currentColor;stroke-linecap:round;transform-origin:center;animation:ui-spinner-dash calc(var(--ui-spinner-duration, 1.2s) * 1.25) ease-in-out infinite}.ui-spinner-spin{display:inline-flex;transform-origin:center;animation:ui-spinner-rotate var(--ui-spinner-duration, 1.2s) linear infinite}.ui-spinner-image{width:100%;height:100%;object-fit:contain}.ui-spinner-label{color:var(--global-text-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--ui-spinner-font-size, var(--size-typography-text-md));line-height:1.2;white-space:nowrap}@keyframes ui-spinner-rotate{to{transform:rotate(360deg)}}@keyframes ui-spinner-dash{0%{stroke-dasharray:1,125;stroke-dashoffset:0}50%{stroke-dasharray:90,125;stroke-dashoffset:-30}to{stroke-dasharray:90,125;stroke-dashoffset:-124}}@media(prefers-reduced-motion:reduce){.ui-spinner .ui-spinner-svg,.ui-spinner .ui-spinner-spin{animation:none}.ui-spinner .ui-spinner-circle{animation:none;stroke-dasharray:none;opacity:.65}}:root[data-motion=off] .ui-spinner .ui-spinner-svg,:root[data-motion=off] .ui-spinner .ui-spinner-spin{animation:none}:root[data-motion=off] .ui-spinner .ui-spinner-circle{animation:none;stroke-dasharray:none;opacity:.65}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
114
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiSpinner, isStandalone: true, selector: "ui-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, spinnerTemplate: { classPropertyName: "spinnerTemplate", publicName: "spinnerTemplate", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, imageAlt: { classPropertyName: "imageAlt", publicName: "imageAlt", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--ui-spinner-duration": "animationDuration()" } }, ngImport: i0, template: "@if (visible()) {\n <div\n [class]=\"classes()\"\n role=\"status\"\n aria-live=\"polite\"\n [attr.aria-busy]=\"true\"\n [attr.aria-label]=\"rootAriaLabel()\"\n >\n <span class=\"ui-spinner-mark\" aria-hidden=\"true\">\n @switch (markKind()) {\n @case ('template') {\n <ng-container [ngTemplateOutlet]=\"spinnerTemplate()!\" />\n }\n @case ('image') {\n <img class=\"ui-spinner-image\" [src]=\"image()!\" [alt]=\"imageAlt()\" />\n }\n @case ('icon') {\n <span class=\"ui-spinner-spin\">\n <ui-icon [name]=\"icon()!\" [size]=\"iconSize()\" />\n </span>\n }\n @default {\n <svg class=\"ui-spinner-svg\" viewBox=\"0 0 50 50\">\n <circle\n class=\"ui-spinner-circle\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n [attr.fill]=\"fill()\"\n [attr.stroke-width]=\"strokeWidth()\"\n />\n </svg>\n }\n }\n </span>\n\n @if (label(); as text) {\n <span class=\"ui-spinner-label\">{{ text }}</span>\n }\n </div>\n}\n", styles: [".ui-spinner{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--units-sm);color:var(--ui-spinner-color, var(--informative-highlightlow-content-default))}.ui-spinner._horizontal{flex-direction:row}.ui-spinner-mark{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-spinner-size, 2rem);height:var(--ui-spinner-size, 2rem);line-height:0}.ui-spinner._small .ui-spinner-mark{width:var(--ui-spinner-size-small, 1.25rem);height:var(--ui-spinner-size-small, 1.25rem)}.ui-spinner._small .ui-spinner-label{font-size:var(--ui-spinner-font-size-small, var(--size-typography-text-sm))}.ui-spinner-svg{width:100%;height:100%;transform-origin:center;animation:ui-spinner-rotate var(--ui-spinner-duration, 1.2s) linear infinite}.ui-spinner-circle{stroke:currentColor;stroke-linecap:round;transform-origin:center;animation:ui-spinner-dash calc(var(--ui-spinner-duration, 1.2s) * 1.25) ease-in-out infinite}.ui-spinner-spin{display:inline-flex;transform-origin:center;animation:ui-spinner-rotate var(--ui-spinner-duration, 1.2s) linear infinite}.ui-spinner-image{width:100%;height:100%;object-fit:contain}.ui-spinner-label{color:var(--global-text-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--ui-spinner-font-size, var(--size-typography-text-md));line-height:1.2;white-space:nowrap}@keyframes ui-spinner-rotate{to{transform:rotate(360deg)}}@keyframes ui-spinner-dash{0%{stroke-dasharray:1,125;stroke-dashoffset:0}50%{stroke-dasharray:90,125;stroke-dashoffset:-30}to{stroke-dasharray:90,125;stroke-dashoffset:-124}}@media(prefers-reduced-motion:reduce){.ui-spinner .ui-spinner-svg,.ui-spinner .ui-spinner-spin{animation:none}.ui-spinner .ui-spinner-circle{animation:none;stroke-dasharray:none;opacity:.65}}:root[data-motion=off] .ui-spinner .ui-spinner-svg,:root[data-motion=off] .ui-spinner .ui-spinner-spin{animation:none}:root[data-motion=off] .ui-spinner .ui-spinner-circle{animation:none;stroke-dasharray:none;opacity:.65}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
115
115
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSpinner, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiSpinner, decorators: [{
117
117
  type: Component,
118
118
  args: [{ selector: 'ui-spinner', imports: [UiIcon, NgTemplateOutlet], host: {
119
119
  '[style.--ui-spinner-duration]': 'animationDuration()',
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-spinner.mjs","sources":["../../../projects/ui-kit/informative/ui-spinner/src/lib/ui-spinner.ts","../../../projects/ui-kit/informative/ui-spinner/src/lib/ui-spinner.html","../../../projects/ui-kit/informative/ui-spinner/src/public-api.ts","../../../projects/ui-kit/informative/ui-spinner/src/4sh-ui-kit-informative-ui-spinner.ts"],"sourcesContent":["import { Component, computed, effect, input, signal, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\nexport type UiSpinnerSize = 'default' | 'small';\nexport type UiSpinnerOrientation = 'vertical' | 'horizontal';\n\n/** How the animated mark is rendered (derived from which input is set). */\ntype SpinnerMark = 'template' | 'image' | 'icon' | 'svg';\n\n/**\n * ui-spinner — indeterminate loading indicator (headless).\n *\n * Renders a smooth, token-colored circular spinner by default. The animated\n * mark is fully swappable, in priority order:\n * 1. `spinnerTemplate` — any custom content (TemplateRef)\n * 2. `image` — an image URL (e.g. an animated GIF/SVG loader)\n * 3. `icon` — a FontAwesome icon name (rotated by the component)\n * 4. default — a built-in SVG circle (tunable stroke/fill/duration)\n *\n * Accessible: the root is a `role=\"status\"` live region with an accessible\n * name; the mark is decorative (`aria-hidden`). Motion honours the OS\n * reduced-motion preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-spinner',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-spinner.html',\n styleUrl: './ui-spinner.scss',\n host: {\n '[style.--ui-spinner-duration]': 'animationDuration()',\n },\n})\nexport class UiSpinner {\n /** Size preset (also override the raw box via the `--ui-spinner-size` CSS var). */\n size = input<UiSpinnerSize>('default');\n /** Layout of the mark relative to the label (only relevant when `label` is set). */\n orientation = input<UiSpinnerOrientation>('vertical');\n /** Optional visible loading text, rendered inside the live region. */\n label = input<string>();\n /** Accessible name. Falls back to the visible `label`, then to \"Chargement\". */\n ariaLabel = input<string>();\n\n // --- Swappable mark (priority: template > image > icon > default SVG) ---\n /** Custom mark content; takes precedence over every other mark source. */\n spinnerTemplate = input<TemplateRef<unknown>>();\n /** Image URL used as the mark (shown as-is — carries its own motion). */\n image = input<string>();\n /** Alt text for the image mark (empty = decorative, the default). */\n imageAlt = input<string>('');\n /** FontAwesome icon name used as the mark (rotated by the component). */\n icon = input<string>();\n\n // --- Default SVG circle tuning (ignored by the other marks) ----------\n /** Stroke width of the default circle, in the 0–50 viewBox scale. */\n strokeWidth = input<string | number>(4);\n /** Fill of the default circle (`none` = ring only). */\n fill = input<string>('none');\n /** Duration of one rotation (any CSS time), shared with the icon mark. */\n animationDuration = input<string>('1.2s');\n\n /**\n * Grace delay before the spinner appears, in ms. Prevents a flash of the\n * loader for waits shorter than the delay (a common loading UX best practice).\n */\n delay = input(0);\n\n /** @ignore Visible once the grace delay (if any) has elapsed. */\n protected readonly visible = signal(true);\n\n constructor() {\n // Grace delay: hide until the timer fires. setTimeout (not rAF) so it still\n // resolves in a throttled/background tab. Cleaned up on re-run / destroy.\n effect((onCleanup) => {\n const ms = this.delay();\n if (ms > 0) {\n this.visible.set(false);\n const id = setTimeout(() => this.visible.set(true), ms);\n onCleanup(() => clearTimeout(id));\n } else {\n this.visible.set(true);\n }\n });\n }\n\n /** @ignore Which mark to render. */\n protected readonly markKind = computed<SpinnerMark>(() => {\n if (this.spinnerTemplate()) return 'template';\n if (this.image()) return 'image';\n if (this.icon()) return 'icon';\n return 'svg';\n });\n\n /** @ignore Icon size matching the spinner box (default → xl, small → default). */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'default' : 'xl'));\n\n /** @ignore Accessible name: explicit, else the visible label reads on its own, else a default. */\n protected readonly rootAriaLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.label()) return null; // visible text is announced by the live region\n return 'Chargement';\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-spinner'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.orientation() === 'horizontal') c.push('_horizontal');\n return c.join(' ');\n });\n}\n","@if (visible()) {\n <div\n [class]=\"classes()\"\n role=\"status\"\n aria-live=\"polite\"\n [attr.aria-busy]=\"true\"\n [attr.aria-label]=\"rootAriaLabel()\"\n >\n <span class=\"ui-spinner-mark\" aria-hidden=\"true\">\n @switch (markKind()) {\n @case ('template') {\n <ng-container [ngTemplateOutlet]=\"spinnerTemplate()!\" />\n }\n @case ('image') {\n <img class=\"ui-spinner-image\" [src]=\"image()!\" [alt]=\"imageAlt()\" />\n }\n @case ('icon') {\n <span class=\"ui-spinner-spin\">\n <ui-icon [name]=\"icon()!\" [size]=\"iconSize()\" />\n </span>\n }\n @default {\n <svg class=\"ui-spinner-svg\" viewBox=\"0 0 50 50\">\n <circle\n class=\"ui-spinner-circle\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n [attr.fill]=\"fill()\"\n [attr.stroke-width]=\"strokeWidth()\"\n />\n </svg>\n }\n }\n </span>\n\n @if (label(); as text) {\n <span class=\"ui-spinner-label\">{{ text }}</span>\n }\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-spinner\n */\n\nexport * from './lib/ui-spinner';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAUA;;;;;;;;;;;;;AAaG;MAUU,SAAS,CAAA;AAqCpB,IAAA,WAAA,GAAA;;QAnCA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,SAAS;iFAAC;;QAEtC,IAAA,CAAA,WAAW,GAAG,KAAK,CAAuB,UAAU;wFAAC;;AAErD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;;AAI3B,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAwB;;AAE/C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;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,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,6BAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjCtB,0oCAyCA,EAAA,MAAA,EAAA,CAAA,y+DAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDfY,MAAM,2HAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOvB,SAAS,EAAA,UAAA,EAAA,CAAA;kBATrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAG7B;AACJ,wBAAA,+BAA+B,EAAE,qBAAqB;AACvD,qBAAA,EAAA,QAAA,EAAA,0oCAAA,EAAA,MAAA,EAAA,CAAA,y+DAAA,CAAA,EAAA;;;AE/BH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-spinner.mjs","sources":["../../../projects/ui-kit/informative/ui-spinner/src/lib/ui-spinner.ts","../../../projects/ui-kit/informative/ui-spinner/src/lib/ui-spinner.html","../../../projects/ui-kit/informative/ui-spinner/src/public-api.ts","../../../projects/ui-kit/informative/ui-spinner/src/4sh-ui-kit-informative-ui-spinner.ts"],"sourcesContent":["import { Component, computed, effect, input, signal, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\nexport type UiSpinnerSize = 'default' | 'small';\nexport type UiSpinnerOrientation = 'vertical' | 'horizontal';\n\n/** How the animated mark is rendered (derived from which input is set). */\ntype SpinnerMark = 'template' | 'image' | 'icon' | 'svg';\n\n/**\n * ui-spinner — indeterminate loading indicator (headless).\n *\n * Renders a smooth, token-colored circular spinner by default. The animated\n * mark is fully swappable, in priority order:\n * 1. `spinnerTemplate` — any custom content (TemplateRef)\n * 2. `image` — an image URL (e.g. an animated GIF/SVG loader)\n * 3. `icon` — a FontAwesome icon name (rotated by the component)\n * 4. default — a built-in SVG circle (tunable stroke/fill/duration)\n *\n * Accessible: the root is a `role=\"status\"` live region with an accessible\n * name; the mark is decorative (`aria-hidden`). Motion honours the OS\n * reduced-motion preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-spinner',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-spinner.html',\n styleUrl: './ui-spinner.scss',\n host: {\n '[style.--ui-spinner-duration]': 'animationDuration()',\n },\n})\nexport class UiSpinner {\n /** Size preset (also override the raw box via the `--ui-spinner-size` CSS var). */\n size = input<UiSpinnerSize>('default');\n /** Layout of the mark relative to the label (only relevant when `label` is set). */\n orientation = input<UiSpinnerOrientation>('vertical');\n /** Optional visible loading text, rendered inside the live region. */\n label = input<string>();\n /** Accessible name. Falls back to the visible `label`, then to \"Chargement\". */\n ariaLabel = input<string>();\n\n // --- Swappable mark (priority: template > image > icon > default SVG) ---\n /** Custom mark content; takes precedence over every other mark source. */\n spinnerTemplate = input<TemplateRef<unknown>>();\n /** Image URL used as the mark (shown as-is — carries its own motion). */\n image = input<string>();\n /** Alt text for the image mark (empty = decorative, the default). */\n imageAlt = input<string>('');\n /** FontAwesome icon name used as the mark (rotated by the component). */\n icon = input<string>();\n\n // --- Default SVG circle tuning (ignored by the other marks) ----------\n /** Stroke width of the default circle, in the 0–50 viewBox scale. */\n strokeWidth = input<string | number>(4);\n /** Fill of the default circle (`none` = ring only). */\n fill = input<string>('none');\n /** Duration of one rotation (any CSS time), shared with the icon mark. */\n animationDuration = input<string>('1.2s');\n\n /**\n * Grace delay before the spinner appears, in ms. Prevents a flash of the\n * loader for waits shorter than the delay (a common loading UX best practice).\n */\n delay = input(0);\n\n /** @ignore Visible once the grace delay (if any) has elapsed. */\n protected readonly visible = signal(true);\n\n constructor() {\n // Grace delay: hide until the timer fires. setTimeout (not rAF) so it still\n // resolves in a throttled/background tab. Cleaned up on re-run / destroy.\n effect((onCleanup) => {\n const ms = this.delay();\n if (ms > 0) {\n this.visible.set(false);\n const id = setTimeout(() => this.visible.set(true), ms);\n onCleanup(() => clearTimeout(id));\n } else {\n this.visible.set(true);\n }\n });\n }\n\n /** @ignore Which mark to render. */\n protected readonly markKind = computed<SpinnerMark>(() => {\n if (this.spinnerTemplate()) return 'template';\n if (this.image()) return 'image';\n if (this.icon()) return 'icon';\n return 'svg';\n });\n\n /** @ignore Icon size matching the spinner box (default → xl, small → default). */\n protected readonly iconSize = computed<UiIconSize>(() =>\n this.size() === 'small' ? 'default' : 'xl',\n );\n\n /** @ignore Accessible name: explicit, else the visible label reads on its own, else a default. */\n protected readonly rootAriaLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.label()) return null; // visible text is announced by the live region\n return 'Chargement';\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-spinner'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.orientation() === 'horizontal') c.push('_horizontal');\n return c.join(' ');\n });\n}\n","@if (visible()) {\n <div\n [class]=\"classes()\"\n role=\"status\"\n aria-live=\"polite\"\n [attr.aria-busy]=\"true\"\n [attr.aria-label]=\"rootAriaLabel()\"\n >\n <span class=\"ui-spinner-mark\" aria-hidden=\"true\">\n @switch (markKind()) {\n @case ('template') {\n <ng-container [ngTemplateOutlet]=\"spinnerTemplate()!\" />\n }\n @case ('image') {\n <img class=\"ui-spinner-image\" [src]=\"image()!\" [alt]=\"imageAlt()\" />\n }\n @case ('icon') {\n <span class=\"ui-spinner-spin\">\n <ui-icon [name]=\"icon()!\" [size]=\"iconSize()\" />\n </span>\n }\n @default {\n <svg class=\"ui-spinner-svg\" viewBox=\"0 0 50 50\">\n <circle\n class=\"ui-spinner-circle\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n [attr.fill]=\"fill()\"\n [attr.stroke-width]=\"strokeWidth()\"\n />\n </svg>\n }\n }\n </span>\n\n @if (label(); as text) {\n <span class=\"ui-spinner-label\">{{ text }}</span>\n }\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-spinner\n */\n\nexport * from './lib/ui-spinner';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAUA;;;;;;;;;;;;;AAaG;MAUU,SAAS,CAAA;AAqCpB,IAAA,WAAA,GAAA;;QAnCA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,SAAS;iFAAC;;QAEtC,IAAA,CAAA,WAAW,GAAG,KAAK,CAAuB,UAAU;wFAAC;;AAErD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;;AAI3B,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAwB;;AAE/C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE;qFAAC;;AAE5B,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;;QAItB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAkB,CAAC;wFAAC;;QAEvC,I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AAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,6BAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjCtB,0oCAyCA,EAAA,MAAA,EAAA,CAAA,y+DAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDfY,MAAM,2HAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOvB,SAAS,EAAA,UAAA,EAAA,CAAA;kBATrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAG7B;AACJ,wBAAA,+BAA+B,EAAE,qBAAqB;AACvD,qBAAA,EAAA,QAAA,EAAA,0oCAAA,EAAA,MAAA,EAAA,CAAA,y+DAAA,CAAA,EAAA;;;AE/BH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -64,10 +64,10 @@ class UiTag {
64
64
  });
65
65
  }
66
66
  }
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiTag, isStandalone: true, selector: "ui-tag", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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 }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n", styles: [".ui-tag{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--ui-tag-padding-x, var(--units-sm));border:var(--ui-tag-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-tag-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--ui-tag-height, var(--size-components-2xs));min-width:var(--ui-tag-height, var(--size-components-2xs));gap:var(--ui-tag-gap, var(--units-sm));font-size:var(--ui-tag-font-size, var(--size-typography-text-default))}.ui-tag-icon{line-height:0;flex:none}.ui-tag-label{display:inline-block}.ui-tag._square{border-radius:var(--ui-tag-radius-square, var(--radius-sm))}.ui-tag._small{height:var(--ui-tag-height-small, 22px);min-width:var(--ui-tag-height-small, 22px);gap:var(--ui-tag-gap-small, var(--units-xs));font-size:var(--ui-tag-font-size-small, var(--size-typography-text-md))}.ui-tag._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-tag._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-tag._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-tag._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-tag._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-tag._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-tag._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-tag._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-tag._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-tag._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
67
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiTag, isStandalone: true, selector: "ui-tag", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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 }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n", styles: [".ui-tag{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--ui-tag-padding-x, var(--units-sm));border:var(--ui-tag-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-tag-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--ui-tag-height, var(--size-components-2xs));min-width:var(--ui-tag-height, var(--size-components-2xs));gap:var(--ui-tag-gap, var(--units-sm));font-size:var(--ui-tag-font-size, var(--size-typography-text-default))}.ui-tag-icon{line-height:0;flex:none}.ui-tag-label{display:inline-block}.ui-tag._square{border-radius:var(--ui-tag-radius-square, var(--radius-sm))}.ui-tag._small{height:var(--ui-tag-height-small, 22px);min-width:var(--ui-tag-height-small, 22px);gap:var(--ui-tag-gap-small, var(--units-xs));font-size:var(--ui-tag-font-size-small, var(--size-typography-text-md))}.ui-tag._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-tag._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-tag._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-tag._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-tag._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-tag._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-tag._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-tag._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-tag._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-tag._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTag, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTag, decorators: [{
71
71
  type: Component,
72
72
  args: [{ selector: 'ui-tag', imports: [UiIcon], template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n", styles: [".ui-tag{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--ui-tag-padding-x, var(--units-sm));border:var(--ui-tag-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-tag-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--ui-tag-height, var(--size-components-2xs));min-width:var(--ui-tag-height, var(--size-components-2xs));gap:var(--ui-tag-gap, var(--units-sm));font-size:var(--ui-tag-font-size, var(--size-typography-text-default))}.ui-tag-icon{line-height:0;flex:none}.ui-tag-label{display:inline-block}.ui-tag._square{border-radius:var(--ui-tag-radius-square, var(--radius-sm))}.ui-tag._small{height:var(--ui-tag-height-small, 22px);min-width:var(--ui-tag-height-small, 22px);gap:var(--ui-tag-gap-small, var(--units-xs));font-size:var(--ui-tag-font-size-small, var(--size-typography-text-md))}.ui-tag._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-tag._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-tag._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-tag._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-tag._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-tag._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-tag._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-tag._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-tag._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-tag._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
73
73
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-tag.mjs","sources":["../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.ts","../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.html","../../../projects/ui-kit/informative/ui-tag/src/public-api.ts","../../../projects/ui-kit/informative/ui-tag/src/4sh-ui-kit-informative-ui-tag.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n} from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type TagSize = 'default' | 'small';\n\n/**\n * ui-tag — informative label / status pill.\n *\n * design system: `level` × `subLevel` (informative color families) instead of a\n * flat `severity`, an optional icon on each side, and a pill/square shape.\n *\n * Fully token-driven (like `ui-badge`) — the color families are the built-in\n * customization surface; no per-component CSS hooks.\n */\n@Component({\n selector: 'ui-tag',\n imports: [UiIcon],\n templateUrl: './ui-tag.html',\n styleUrl: './ui-tag.scss',\n})\nexport class UiTag {\n /** Text content of the tag. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Size. */\n size = input<TagSize>('default');\n /** FontAwesome name of the leading icon (optional). */\n iconLeft = input<string>();\n /** FontAwesome name of the trailing icon (optional). */\n iconRight = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Accessible name (recommended when the tag has no textual label). */\n ariaLabel = input<string>();\n\n constructor() {\n // A11y safeguard: an icon-only tag needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore At least one icon and no label. */\n protected readonly isIconOnly = computed(\n () => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(),\n );\n\n /** @ignore Icon size derived from the tag size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-tag\n */\n\nexport * from './lib/ui-tag';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAaA;;;;;;;;AAQG;MAOU,KAAK,CAAA;AAkBhB,IAAA,WAAA,GAAA;;AAhBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAU,SAAS;iFAAC;;AAEhC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEtD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAcR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,MAAM;qFAAC;;QAGjD,IAAA,CAAA,UAAU,GAAG,QAAQ,CACtC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;uFACpE;;QAGkB,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAa,OAAO,IAAI,CAAC,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,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,KAAK,EAAA,UAAA,EAAA,CAAA;kBANjB,SAAS;+BACE,QAAQ,EAAA,OAAA,EACT,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,wYAAA,EAAA,MAAA,EAAA,CAAA,o3FAAA,CAAA,EAAA;;;AExBnB;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-tag.mjs","sources":["../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.ts","../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.html","../../../projects/ui-kit/informative/ui-tag/src/public-api.ts","../../../projects/ui-kit/informative/ui-tag/src/4sh-ui-kit-informative-ui-tag.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type TagSize = 'default' | 'small';\n\n/**\n * ui-tag — informative label / status pill.\n *\n * design system: `level` × `subLevel` (informative color families) instead of a\n * flat `severity`, an optional icon on each side, and a pill/square shape.\n *\n * Fully token-driven (like `ui-badge`) — the color families are the built-in\n * customization surface; no per-component CSS hooks.\n */\n@Component({\n selector: 'ui-tag',\n imports: [UiIcon],\n templateUrl: './ui-tag.html',\n styleUrl: './ui-tag.scss',\n})\nexport class UiTag {\n /** Text content of the tag. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Size. */\n size = input<TagSize>('default');\n /** FontAwesome name of the leading icon (optional). */\n iconLeft = input<string>();\n /** FontAwesome name of the trailing icon (optional). */\n iconRight = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Accessible name (recommended when the tag has no textual label). */\n ariaLabel = input<string>();\n\n constructor() {\n // A11y safeguard: an icon-only tag needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore At least one icon and no label. */\n protected readonly isIconOnly = computed(\n () => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(),\n );\n\n /** @ignore Icon size derived from the tag size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-tag\n */\n\nexport * from './lib/ui-tag';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;;;;;;;AAQG;MAOU,KAAK,CAAA;AAkBhB,IAAA,WAAA,GAAA;;AAhBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAU,SAAS;iFAAC;;AAEhC,QAAA,IAAA,CA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A,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBlB,wYAWA,EAAA,MAAA,EAAA,CAAA,o3FAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMY,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;;2FAIL,KAAK,EAAA,UAAA,EAAA,CAAA;kBANjB,SAAS;+BACE,QAAQ,EAAA,OAAA,EACT,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,wYAAA,EAAA,MAAA,EAAA,CAAA,o3FAAA,CAAA,EAAA;;;AEjBnB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -107,10 +107,10 @@ class UiToast {
107
107
  onClose(event) {
108
108
  this.closed.emit(event);
109
109
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToast, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
111
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiToast, isStandalone: true, selector: "ui-toast", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "'inline-flex'", "style.maxWidth": "'100%'" } }, ngImport: i0, template: "<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n", styles: [".ui-toast{display:inline-flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:auto;max-width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base)}.ui-toast._expanded{display:flex;width:100%}.ui-toast-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-toast-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-toast-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);font-size:var(--size-typography-title-sm);line-height:1.3;overflow-wrap:break-word}.ui-toast-text{font-weight:var(--weight-light);font-size:var(--size-typography-text-md);line-height:1.3;overflow-wrap:break-word}.ui-toast-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-toast-close:hover{opacity:1}.ui-toast-close:focus-visible{outline:var(--ui-toast-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-toast-close{transition-duration:.01ms}}:root[data-motion=off] .ui-toast-close{transition-duration:.01ms}.ui-toast._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-toast._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-toast._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-toast._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-toast._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-toast._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-toast._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-toast._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-toast._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-toast._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToast, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
111
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiToast, isStandalone: true, selector: "ui-toast", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "'inline-flex'", "style.maxWidth": "'100%'" } }, ngImport: i0, template: "<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n", styles: [".ui-toast{display:inline-flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:auto;max-width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base)}.ui-toast._expanded{display:flex;width:100%}.ui-toast-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-toast-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-toast-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);font-size:var(--size-typography-title-sm);line-height:1.3;overflow-wrap:break-word}.ui-toast-text{font-weight:var(--weight-light);font-size:var(--size-typography-text-md);line-height:1.3;overflow-wrap:break-word}.ui-toast-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-toast-close:hover{opacity:1}.ui-toast-close:focus-visible{outline:var(--ui-toast-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-toast-close{transition-duration:.01ms}}:root[data-motion=off] .ui-toast-close{transition-duration:.01ms}.ui-toast._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-toast._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-toast._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-toast._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-toast._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-toast._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-toast._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-toast._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-toast._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-toast._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
112
112
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToast, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToast, decorators: [{
114
114
  type: Component,
115
115
  args: [{ selector: 'ui-toast', imports: [UiIcon], host: {
116
116
  // Hug content by default; the container makes it fill the region in banner mode.
@@ -175,10 +175,10 @@ class UiToastService {
175
175
  remove(id) {
176
176
  this._messages.update((list) => list.filter((m) => m.id !== id));
177
177
  }
178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToastService, providedIn: 'root' }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToastService, providedIn: 'root' }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToastService, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToastService, decorators: [{
182
182
  type: Injectable,
183
183
  args: [{ providedIn: 'root' }]
184
184
  }] });
@@ -404,12 +404,12 @@ class UiToastContainer {
404
404
  closeFn(message) {
405
405
  return () => this.dismiss(message);
406
406
  }
407
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToastContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
408
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiToastContainer, isStandalone: true, selector: "ui-toast-container", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, stackVisibleLimit: { classPropertyName: "stackVisibleLimit", publicName: "stackVisibleLimit", isSignal: true, isRequired: false, transformFunction: null }, stackGap: { classPropertyName: "stackGap", publicName: "stackGap", isSignal: true, isRequired: false, transformFunction: null }, preventDuplicates: { classPropertyName: "preventDuplicates", publicName: "preventDuplicates", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"regionClass()\"\n [style.z-index]=\"zIndex()\"\n [style.gap.px]=\"stackGap() ?? null\"\n>\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\" />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: UiToast, selector: "ui-toast", inputs: ["title", "text", "level", "subLevel", "icon", "closable", "closeIcon", "closeAriaLabel", "expanded", "styleClass"], outputs: ["closed"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
407
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToastContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
408
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiToastContainer, isStandalone: true, selector: "ui-toast-container", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, stackVisibleLimit: { classPropertyName: "stackVisibleLimit", publicName: "stackVisibleLimit", isSignal: true, isRequired: false, transformFunction: null }, stackGap: { classPropertyName: "stackGap", publicName: "stackGap", isSignal: true, isRequired: false, transformFunction: null }, preventDuplicates: { classPropertyName: "preventDuplicates", publicName: "preventDuplicates", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: UiToast, selector: "ui-toast", inputs: ["title", "text", "level", "subLevel", "icon", "closable", "closeIcon", "closeAriaLabel", "expanded", "styleClass"], outputs: ["closed"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
409
409
  }
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToastContainer, decorators: [{
410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiToastContainer, decorators: [{
411
411
  type: Component,
412
- args: [{ selector: 'ui-toast-container', imports: [UiToast, UiMotion, NgTemplateOutlet], template: "<div\n [class]=\"regionClass()\"\n [style.z-index]=\"zIndex()\"\n [style.gap.px]=\"stackGap() ?? null\"\n>\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\" />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"] }]
412
+ args: [{ selector: 'ui-toast-container', imports: [UiToast, UiMotion, NgTemplateOutlet], template: "<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"] }]
413
413
  }], ctorParameters: () => [], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], motionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionDisabled", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], stackVisibleLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackVisibleLimit", required: false }] }], stackGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackGap", required: false }] }], preventDuplicates: [{ type: i0.Input, args: [{ isSignal: true, alias: "preventDuplicates", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }] } });
414
414
 
415
415
  /*