@4sh/ui-kit 0.2.0 → 0.3.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 (120) hide show
  1. package/README.fr.md +162 -55
  2. package/README.md +157 -54
  3. package/collection.json +2 -13
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +2 -2
  5. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
  7. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +2 -2
  9. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  10. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +48 -8
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +2 -2
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +9 -3
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +4 -5
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +2 -2
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +43 -5
  35. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
  37. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
  39. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
  41. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
  43. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
  45. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
  47. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
  49. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  51. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
  55. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
  57. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +2 -2
  59. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +2 -2
  61. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
  63. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  65. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +2 -2
  67. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +2 -2
  69. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
  71. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  72. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +2 -2
  73. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +2 -2
  75. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +2 -2
  77. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  78. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +2 -2
  79. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  80. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
  81. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  82. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +4 -4
  83. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  84. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  85. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  86. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +3 -3
  87. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  88. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
  89. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
  91. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +2 -2
  93. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  95. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
  97. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  98. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
  99. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +6 -6
  101. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +4 -4
  103. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +2 -2
  105. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  107. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  108. package/package.json +1 -4
  109. package/schematics/index.cjs +34 -59
  110. package/styles/component-vars.scss +953 -0
  111. package/styles/generated/_tokens-semantics.scss +36 -0
  112. package/styles/settings/_ui-config.scss +54 -44
  113. package/styles.css +1 -1
  114. package/types/4sh-ui-kit-base-ui-icon.d.ts +35 -4
  115. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +6 -1
  116. package/types/4sh-ui-kit-forms-ui-input.d.ts +33 -2
  117. package/types/4sh-ui-kit-layout-ui-card.d.ts +1 -1
  118. package/schematics/schema-add.json +0 -19
  119. package/schematics/schema-ng-add.json +0 -13
  120. package/schematics/schema-update.json +0 -13
@@ -58,11 +58,11 @@ class UiSeparator {
58
58
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
59
59
  }
60
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(--stroke-default);--_style: solid;display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box}.ui-separator._dashed{--_style: dashed}.ui-separator._small{--_thickness: 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(--size-typography-text-default);line-height:1;white-space:nowrap}.ui-separator._small .ui-separator-label{font-size: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"] }); }
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"] }); }
62
62
  }
63
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSeparator, decorators: [{
64
64
  type: Component,
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(--stroke-default);--_style: solid;display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box}.ui-separator._dashed{--_style: dashed}.ui-separator._small{--_thickness: 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(--size-typography-text-default);line-height:1;white-space:nowrap}.ui-separator._small .ui-separator-label{font-size: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"] }]
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 }] }] } });
67
67
 
68
68
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-separator.mjs","sources":["../../../projects/ui-kit/informative/ui-separator/src/lib/ui-separator.ts","../../../projects/ui-kit/informative/ui-separator/src/lib/ui-separator.html","../../../projects/ui-kit/informative/ui-separator/src/public-api.ts","../../../projects/ui-kit/informative/ui-separator/src/4sh-ui-kit-informative-ui-separator.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\nexport type SeparatorOrientation = 'horizontal' | 'vertical';\nexport type SeparatorVariant = 'solid' | 'dashed';\nexport type SeparatorSize = 'default' | 'small';\nexport type SeparatorLabelAlign = 'start' | 'center' | 'end';\n\n/**\n * ui-separator — visual + semantic divider between content.\n *\n * Headless: renders a `role=\"separator\"` element whose rule(s) come from CSS/tokens.\n * A `label` (optional) turns it into a labelled divider; `labelAlign` places the text at\n * the start, center or end of the line. The line style is driven by `variant` (solid/dashed)\n * and its thickness by `size` (default 2px / small 1px).\n */\n@Component({\n selector: 'ui-separator',\n templateUrl: './ui-separator.html',\n styleUrl: './ui-separator.scss',\n})\nexport class UiSeparator {\n /** Optional text label (turns the rule into a labelled divider). */\n label = input<string>();\n /** Orientation of the rule (maps to the Figma `Axe` property). */\n orientation = input<SeparatorOrientation>('horizontal');\n /** Line style (maps to the Figma `Type`: Default → solid, Dashed → dashed). */\n variant = input<SeparatorVariant>('solid');\n /** Line thickness (default 2px, small 1px). */\n size = input<SeparatorSize>('default');\n /** Label placement along the line (maps to Figma `Label Align`: Default/Middle/End). */\n labelAlign = input<SeparatorLabelAlign>('start');\n /** Accessible name override (defaults to `label` when present). */\n ariaLabel = input<string>();\n\n /** @ignore A label is provided. */\n protected readonly hasLabel = computed(() => {\n const l = this.label();\n return l !== undefined && l !== null && l.length > 0;\n });\n\n /** @ignore A line segment precedes the label (center/end alignment). */\n protected readonly lineBeforeLabel = computed(\n () => this.labelAlign() === 'center' || this.labelAlign() === 'end',\n );\n\n /** @ignore A line segment follows the label (center/start alignment). */\n protected readonly lineAfterLabel = computed(\n () => this.labelAlign() === 'center' || this.labelAlign() === 'start',\n );\n\n /** @ignore Accessible name: explicit override, else the visible label. */\n protected readonly accessibleName = computed(() => this.ariaLabel() ?? this.label() ?? null);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-separator', `_${this.orientation()}`];\n if (this.variant() !== 'solid') c.push(`_${this.variant()}`);\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.hasLabel()) c.push('_labelled');\n return c.join(' ');\n });\n}\n","<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","/*\n * Public API Surface of ui-kit/ui-separator\n */\n\nexport * from './lib/ui-separator';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAOA;;;;;;;AAOG;MAMU,WAAW,CAAA;AALxB,IAAA,WAAA,GAAA;;AAOE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAuB,YAAY;wFAAC;;QAEvD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAmB,OAAO;oFAAC;;QAE1C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,SAAS;iFAAC;;QAEtC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAsB,OAAO;uFAAC;;AAEhD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AAC1C,YAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;AACtB,YAAA,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC;QACtD,CAAC;qFAAC;;AAGiB,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAC3C,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,KAAK;4FACpE;;AAGkB,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAC1C,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,OAAO;2FACtE;;AAGkB,QAA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AEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-separator.mjs","sources":["../../../projects/ui-kit/informative/ui-separator/src/lib/ui-separator.ts","../../../projects/ui-kit/informative/ui-separator/src/lib/ui-separator.html","../../../projects/ui-kit/informative/ui-separator/src/public-api.ts","../../../projects/ui-kit/informative/ui-separator/src/4sh-ui-kit-informative-ui-separator.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\nexport type SeparatorOrientation = 'horizontal' | 'vertical';\nexport type SeparatorVariant = 'solid' | 'dashed';\nexport type SeparatorSize = 'default' | 'small';\nexport type SeparatorLabelAlign = 'start' | 'center' | 'end';\n\n/**\n * ui-separator — visual + semantic divider between content.\n *\n * Headless: renders a `role=\"separator\"` element whose rule(s) come from CSS/tokens.\n * A `label` (optional) turns it into a labelled divider; `labelAlign` places the text at\n * the start, center or end of the line. The line style is driven by `variant` (solid/dashed)\n * and its thickness by `size` (default 2px / small 1px).\n */\n@Component({\n selector: 'ui-separator',\n templateUrl: './ui-separator.html',\n styleUrl: './ui-separator.scss',\n})\nexport class UiSeparator {\n /** Optional text label (turns the rule into a labelled divider). */\n label = input<string>();\n /** Orientation of the rule (maps to the Figma `Axe` property). */\n orientation = input<SeparatorOrientation>('horizontal');\n /** Line style (maps to the Figma `Type`: Default → solid, Dashed → dashed). */\n variant = input<SeparatorVariant>('solid');\n /** Line thickness (default 2px, small 1px). */\n size = input<SeparatorSize>('default');\n /** Label placement along the line (maps to Figma `Label Align`: Default/Middle/End). */\n labelAlign = input<SeparatorLabelAlign>('start');\n /** Accessible name override (defaults to `label` when present). */\n ariaLabel = input<string>();\n\n /** @ignore A label is provided. */\n protected readonly hasLabel = computed(() => {\n const l = this.label();\n return l !== undefined && l !== null && l.length > 0;\n });\n\n /** @ignore A line segment precedes the label (center/end alignment). */\n protected readonly lineBeforeLabel = computed(\n () => this.labelAlign() === 'center' || this.labelAlign() === 'end',\n );\n\n /** @ignore A line segment follows the label (center/start alignment). */\n protected readonly lineAfterLabel = computed(\n () => this.labelAlign() === 'center' || this.labelAlign() === 'start',\n );\n\n /** @ignore Accessible name: explicit override, else the visible label. */\n protected readonly accessibleName = computed(() => this.ariaLabel() ?? this.label() ?? null);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-separator', `_${this.orientation()}`];\n if (this.variant() !== 'solid') c.push(`_${this.variant()}`);\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.hasLabel()) c.push('_labelled');\n return c.join(' ');\n });\n}\n","<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","/*\n * Public API Surface of ui-kit/ui-separator\n */\n\nexport * from './lib/ui-separator';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAOA;;;;;;;AAOG;MAMU,WAAW,CAAA;AALxB,IAAA,WAAA,GAAA;;AAOE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAuB,YAAY;wFAAC;;QAEvD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAmB,OAAO;oFAAC;;QAE1C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,SAAS;iFAAC;;QAEtC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAsB,OAAO;uFAAC;;AAEhD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AAC1C,YAAA,MAAM,CAA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EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,o1BCpBxB,yhBAkBA,EAAA,MAAA,EAAA,CAAA,+/BAAA,CAAA,EAAA,CAAA,CAAA;;2FDEa,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;+BACE,cAAc,EAAA,QAAA,EAAA,yhBAAA,EAAA,MAAA,EAAA,CAAA,+/BAAA,CAAA,EAAA;;;AEhB1B;;AAEG;;ACFH;;AAEG;;;;"}
@@ -60,13 +60,13 @@ class UiSkeleton {
60
60
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
61
61
  }
62
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, 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:14rem;height:1.25rem;border-radius:var(--radius-xl)}.ui-skeleton._circle{width:6.25rem;height:6.25rem;border-radius:var(--radius-full)}.ui-skeleton._rectangle{width:6.25rem;height:6.25rem;border-radius:var(--radius-default)}.ui-skeleton._circle{aspect-ratio:1/1}.ui-skeleton._text._small{height:.75rem}.ui-skeleton._circle._small,.ui-skeleton._rectangle._small{width:4rem;height: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){--ui-skeleton-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"] }); }
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"] }); }
64
64
  }
65
65
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSkeleton, decorators: [{
66
66
  type: Component,
67
67
  args: [{ selector: 'ui-skeleton', host: {
68
68
  '[attr.aria-hidden]': 'true',
69
- }, 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, 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:14rem;height:1.25rem;border-radius:var(--radius-xl)}.ui-skeleton._circle{width:6.25rem;height:6.25rem;border-radius:var(--radius-full)}.ui-skeleton._rectangle{width:6.25rem;height:6.25rem;border-radius:var(--radius-default)}.ui-skeleton._circle{aspect-ratio:1/1}.ui-skeleton._text._small{height:.75rem}.ui-skeleton._circle._small,.ui-skeleton._rectangle._small{width:4rem;height: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){--ui-skeleton-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"] }]
69
+ }, 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"] }]
70
70
  }], propDecorators: { shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], borderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadius", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }] } });
71
71
 
72
72
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-skeleton.mjs","sources":["../../../projects/ui-kit/informative/ui-skeleton/src/lib/ui-skeleton.ts","../../../projects/ui-kit/informative/ui-skeleton/src/lib/ui-skeleton.html","../../../projects/ui-kit/informative/ui-skeleton/src/public-api.ts","../../../projects/ui-kit/informative/ui-skeleton/src/4sh-ui-kit-informative-ui-skeleton.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\n/** Visual shape of the placeholder. */\nexport type UiSkeletonShape = 'text' | 'circle' | 'rectangle';\n/** Size preset (per-shape default dimensions). */\nexport type UiSkeletonSize = 'default' | 'small';\n/** Loading animation style. */\nexport type UiSkeletonAnimation = 'wave' | 'pulse' | 'none';\n\n/**\n * ui-skeleton — a placeholder shown in place of content while it loads.\n *\n * Renders a single token-colored box whose shape and dimensions come from\n * design tokens. Three shapes (`text`, `circle`, `rectangle`) ship with\n * sensible default sizes; `width` / `height` / `borderRadius` override any of\n * them with a raw CSS value for bespoke layouts (cards, grids, lists, tables).\n *\n * The background color is exposed through the `--ui-skeleton-background` custom\n * property (and the sweeping reflection tint through `--ui-skeleton-shine`) for\n * one-off theming.\n *\n * Accessible: the host is `aria-hidden` so screen readers skip it (loading is a\n * purely visual state); group several skeletons under a container carrying\n * `aria-busy=\"true\"` to announce the loading region. Motion honours the OS\n * reduced-motion preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-skeleton',\n templateUrl: './ui-skeleton.html',\n styleUrl: './ui-skeleton.scss',\n host: {\n '[attr.aria-hidden]': 'true',\n },\n})\nexport class UiSkeleton {\n /** Shape of the placeholder. */\n shape = input<UiSkeletonShape>('text');\n /** Size preset (per-shape default dimensions). */\n size = input<UiSkeletonSize>('default');\n /** Raw CSS width, overriding the shape default (e.g. \"100%\", \"10rem\"). */\n width = input<string>();\n /** Raw CSS height, overriding the shape default (e.g. \"1rem\", \"50px\"). */\n height = input<string>();\n /** Raw CSS border-radius, overriding the shape default. */\n borderRadius = input<string>();\n /** Loading animation (base is `wave` — a reflection sweeping across the box). */\n animation = input<UiSkeletonAnimation>('wave');\n\n /** @ignore Inline style overrides (win over the token-driven defaults). */\n protected readonly boxStyle = computed(() => ({\n width: this.width() ?? null,\n height: this.height() ?? null,\n 'border-radius': this.borderRadius() ?? null,\n }));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-skeleton', `_${this.shape()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n const anim = this.animation();\n if (anim === 'pulse') c.push('_pulse');\n else if (anim === 'none') c.push('_static');\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [style]=\"boxStyle()\"></div>\n","/*\n * Public API Surface of ui-kit/ui-skeleton\n */\n\nexport * from './lib/ui-skeleton';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AASA;;;;;;;;;;;;;;;;AAgBG;MASU,UAAU,CAAA;AARvB,IAAA,WAAA,GAAA;;QAUE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,MAAM;kFAAC;;QAEtC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAiB,SAAS;iFAAC;;AAEvC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAU;;QAE9B,IAAA,CAAA,SAAS,GAAG,KA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,EAAA,UAAA,EAAA,CAAA;kBARtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,IAAA,EAGjB;AACJ,wBAAA,oBAAoB,EAAE,MAAM;AAC7B,qBAAA,EAAA,QAAA,EAAA,4DAAA,EAAA,MAAA,EAAA,CAAA,g8CAAA,CAAA,EAAA;;;AEhCH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-skeleton.mjs","sources":["../../../projects/ui-kit/informative/ui-skeleton/src/lib/ui-skeleton.ts","../../../projects/ui-kit/informative/ui-skeleton/src/lib/ui-skeleton.html","../../../projects/ui-kit/informative/ui-skeleton/src/public-api.ts","../../../projects/ui-kit/informative/ui-skeleton/src/4sh-ui-kit-informative-ui-skeleton.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\n\n/** Visual shape of the placeholder. */\nexport type UiSkeletonShape = 'text' | 'circle' | 'rectangle';\n/** Size preset (per-shape default dimensions). */\nexport type UiSkeletonSize = 'default' | 'small';\n/** Loading animation style. */\nexport type UiSkeletonAnimation = 'wave' | 'pulse' | 'none';\n\n/**\n * ui-skeleton — a placeholder shown in place of content while it loads.\n *\n * Renders a single token-colored box whose shape and dimensions come from\n * design tokens. Three shapes (`text`, `circle`, `rectangle`) ship with\n * sensible default sizes; `width` / `height` / `borderRadius` override any of\n * them with a raw CSS value for bespoke layouts (cards, grids, lists, tables).\n *\n * The background color is exposed through the `--ui-skeleton-background` custom\n * property (and the sweeping reflection tint through `--ui-skeleton-shine`) for\n * one-off theming.\n *\n * Accessible: the host is `aria-hidden` so screen readers skip it (loading is a\n * purely visual state); group several skeletons under a container carrying\n * `aria-busy=\"true\"` to announce the loading region. Motion honours the OS\n * reduced-motion preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-skeleton',\n templateUrl: './ui-skeleton.html',\n styleUrl: './ui-skeleton.scss',\n host: {\n '[attr.aria-hidden]': 'true',\n },\n})\nexport class UiSkeleton {\n /** Shape of the placeholder. */\n shape = input<UiSkeletonShape>('text');\n /** Size preset (per-shape default dimensions). */\n size = input<UiSkeletonSize>('default');\n /** Raw CSS width, overriding the shape default (e.g. \"100%\", \"10rem\"). */\n width = input<string>();\n /** Raw CSS height, overriding the shape default (e.g. \"1rem\", \"50px\"). */\n height = input<string>();\n /** Raw CSS border-radius, overriding the shape default. */\n borderRadius = input<string>();\n /** Loading animation (base is `wave` — a reflection sweeping across the box). */\n animation = input<UiSkeletonAnimation>('wave');\n\n /** @ignore Inline style overrides (win over the token-driven defaults). */\n protected readonly boxStyle = computed(() => ({\n width: this.width() ?? null,\n height: this.height() ?? null,\n 'border-radius': this.borderRadius() ?? null,\n }));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-skeleton', `_${this.shape()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n const anim = this.animation();\n if (anim === 'pulse') c.push('_pulse');\n else if (anim === 'none') c.push('_static');\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [style]=\"boxStyle()\"></div>\n","/*\n * Public API Surface of ui-kit/ui-skeleton\n */\n\nexport * from './lib/ui-skeleton';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AASA;;;;;;;;;;;;;;;;AAgBG;MASU,UAAU,CAAA;AARvB,IAAA,WAAA,GAAA;;QAUE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,MAAM;kFAAC;;QAEtC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAiB,SAAS;iFAAC;;AAEvC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAU;;QAE9B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAsB,MAAM;sFAAC;;AAG3B,QAAA,IAAA,CAA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,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,IAAA,EAGjB;AACJ,wBAAA,oBAAoB,EAAE,MAAM;AAC7B,qBAAA,EAAA,QAAA,EAAA,4DAAA,EAAA,MAAA,EAAA,CAAA,u9DAAA,CAAA,EAAA;;;AEhCH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -111,13 +111,13 @@ class UiSpinner {
111
111
  });
112
112
  }
113
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, 1.25rem);height:var(--ui-spinner-size, 1.25rem)}.ui-spinner._small .ui-spinner-label{font-size: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(--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"] }] }); }
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"] }] }); }
115
115
  }
116
116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", 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()',
120
- }, 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, 1.25rem);height:var(--ui-spinner-size, 1.25rem)}.ui-spinner._small .ui-spinner-label{font-size: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(--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"] }]
120
+ }, 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"] }]
121
121
  }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], spinnerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinnerTemplate", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], imageAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageAlt", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }] } });
122
122
 
123
123
  /*
@@ -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;;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,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,MAAM;iFAAC;;QAE5B,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,MAAM;8FAAC;AAEzC;;;AAGG;QACH,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,CAAC;kFAAC;;QAGG,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,IAAI;oFAAC;;AAkBtB,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAA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AAA,EAAA,QAAA,ECjCtB,0oCAyCA,EAAA,MAAA,EAAA,CAAA,65DAAA,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,65DAAA,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>(() => (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;;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,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,MAAM;iFAAC;;QAE5B,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,MAAM;8FAAC;AAEzC;;;AAGG;QACH,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,CAAC;kFAAC;;QAGG,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,IAAI;oFAAC;;AAkBtB,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAc,MAAK;YACvD,IAAI,IAAI,CAAC,eAAe,EAAE;AAAE,gBAAA,OAAO,UAAU;YAC7C,IAAI,IAAI,CAAC,KAAK,EAAE;AAAE,gBAAA,OAAO,OAAO;YAChC,IAAI,IAAI,CAAC,IAAI,EAAE;AAAE,gBAAA,OAAO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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;;;;"}
@@ -65,11 +65,11 @@ class UiTag {
65
65
  }
66
66
  }
67
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(--units-sm);border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--size-components-2xs);min-width:var(--size-components-2xs);gap:var(--units-sm);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(--radius-sm)}.ui-tag._small{height:22px;min-width:22px;gap:var(--units-xs);font-size: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"] }] }); }
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"] }] }); }
69
69
  }
70
70
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTag, decorators: [{
71
71
  type: Component,
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(--units-sm);border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:var(--size-components-2xs);min-width:var(--size-components-2xs);gap:var(--units-sm);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(--radius-sm)}.ui-tag._small{height:22px;min-width:22px;gap:var(--units-xs);font-size: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"] }]
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 }] }] } });
74
74
 
75
75
  /*
@@ -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,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AAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,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,EC5BlB,wYAWA,EAAA,MAAA,EAAA,CAAA,okFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDaY,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,okFAAA,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 {\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,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AA,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;;;AExBnB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -108,7 +108,7 @@ class UiToast {
108
108
  this.closed.emit(event);
109
109
  }
110
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(--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"] }] }); }
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"] }] }); }
112
112
  }
113
113
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiToast, decorators: [{
114
114
  type: Component,
@@ -116,7 +116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
116
116
  // Hug content by default; the container makes it fill the region in banner mode.
117
117
  '[style.display]': "'inline-flex'",
118
118
  '[style.maxWidth]': "'100%'",
119
- }, 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(--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"] }]
119
+ }, 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"] }]
120
120
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
121
121
 
122
122
  /** Process-wide counter guaranteeing unique auto-generated toast ids. */
@@ -405,11 +405,11 @@ class UiToastContainer {
405
405
  return () => this.dismiss(message);
406
406
  }
407
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:1100;display:flex;flex-direction:column;gap:var(--units-sm);width:min(22.5rem,100vw - var(--units-lg) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(30rem,100vw - 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(--units-lg);left:var(--units-lg)}.ui-toast-region._top-right{top:var(--units-lg);right:var(--units-lg)}.ui-toast-region._top-center{top:var(--units-lg);left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--units-lg);left:var(--units-lg)}.ui-toast-region._bottom-right{bottom:var(--units-lg);right:var(--units-lg)}.ui-toast-region._bottom-center{bottom: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"] }] }); }
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"] }] }); }
409
409
  }
410
410
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", 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:1100;display:flex;flex-direction:column;gap:var(--units-sm);width:min(22.5rem,100vw - var(--units-lg) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(30rem,100vw - 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(--units-lg);left:var(--units-lg)}.ui-toast-region._top-right{top:var(--units-lg);right:var(--units-lg)}.ui-toast-region._top-center{top:var(--units-lg);left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--units-lg);left:var(--units-lg)}.ui-toast-region._bottom-right{bottom:var(--units-lg);right:var(--units-lg)}.ui-toast-region._bottom-center{bottom: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\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"] }]
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
  /*