@4sh/ui-kit 0.16.0 → 0.17.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 (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,160 +1,338 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, DestroyRef, input, booleanAttribute, numberAttribute, output, signal, computed, afterNextRender, Component } from '@angular/core';
3
- import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
4
-
5
- /**
6
- * Default leading icon per semantic level (FontAwesome names, from the Figma
7
- * source). Overridable per instance through the `icon` input.
8
- */
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, afterNextRender, booleanAttribute, computed, inject, input, numberAttribute, output, signal } from "@angular/core";
3
+ import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
9
4
  const UI_ALERT_DEFAULT_ICONS = {
10
- default: 'info-circle',
11
- highlight: 'info-circle',
12
- success: 'check',
13
- warning: 'warning',
14
- error: 'times',
5
+ default: "info-circle",
6
+ highlight: "info-circle",
7
+ success: "check",
8
+ warning: "warning",
9
+ error: "times"
15
10
  };
16
-
17
- /**
18
- * ui-alert — inline message for informational, success, warning or error feedback.
19
- *
20
- * Headless & fully token-driven (the `informative` category): surface, content
21
- * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma
22
- * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`
23
- * in the content region for custom bodies or action buttons.
24
- *
25
- * The root carries `role="alert"` (implicit `aria-live="assertive"` +
26
- * `aria-atomic="true"`), so screen readers announce it as soon as it appears —
27
- * ideal for form validation summaries or transient status banners. Set `life`
28
- * to auto-dismiss after a delay; the alert hides itself and emits `closed`.
29
- *
30
- * Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`
31
- * is a plain inline block — drop it in the page flow, a form, or a `@for` loop.
32
- *
33
- * @example
34
- * ```html
35
- * <ui-alert level="error" title="Erreur" text="Le formulaire est invalide." />
36
- * <ui-alert level="success" text="Enregistré." [life]="4000" (closed)="onClose()" />
37
- * ```
38
- */
39
- class UiAlert {
40
- constructor() {
41
- this.destroyRef = inject(DestroyRef);
42
- /** Bold heading line. */
43
- this.title = input(/* @ts-ignore */
44
- ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
45
- /** Supporting body line. */
46
- this.text = input(/* @ts-ignore */
47
- ...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
48
- /** Semantic level — colours + default icon. */
49
- this.level = input('default', /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
51
- /** Hierarchical intensity (`high` = solid, `low` = subtle). */
52
- this.subLevel = input('high', /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
54
- /** Rendered scale (`default` | `large`). */
55
- this.size = input('default', /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
57
- /**
58
- * Leading icon: a FontAwesome name to override the level default, `false`
59
- * to hide it, or `true` (default) for the level's default icon.
60
- */
61
- this.icon = input(true, /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
63
- /** Show the dismiss button (default `true`). */
64
- this.closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
65
- /** FontAwesome name of the dismiss icon. */
66
- this.closeIcon = input('times-circle', /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []));
68
- /** Accessible label of the dismiss button. */
69
- this.closeAriaLabel = input('Fermer', /* @ts-ignore */
70
- ...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
71
- /** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */
72
- this.life = input(0, { ...(ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {}), transform: numberAttribute });
73
- /** Accessible label of the alert region (screen readers). */
74
- this.ariaLabel = input(/* @ts-ignore */
75
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
76
- /** id of the element labelling the alert region. */
77
- this.ariaLabelledBy = input(/* @ts-ignore */
78
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
79
- /** Extra class(es) merged onto the alert root. */
80
- this.styleClass = input(/* @ts-ignore */
81
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
82
- /** Emitted when the alert is dismissed (close button or `life` expiry). */
83
- this.closed = output();
84
- /** @ignore Hidden after a dismiss so the close button works standalone. */
85
- this.dismissed = signal(false, /* @ts-ignore */
86
- ...(ngDevMode ? [{ debugName: "dismissed" }] : /* istanbul ignore next */ []));
87
- /** @ignore Resolved leading icon name (null when hidden). */
88
- this.iconName = computed(() => {
89
- const icon = this.icon();
90
- if (icon === false)
91
- return null;
92
- if (typeof icon === 'string')
93
- return icon;
94
- return UI_ALERT_DEFAULT_ICONS[this.level()];
95
- }, /* @ts-ignore */
96
- ...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
97
- /** @ignore Leading icon size follows the alert size (Figma). */
98
- this.iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'), /* @ts-ignore */
99
- ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
100
- /** @ignore Dismiss icon size follows the alert size (Figma). */
101
- this.closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'), /* @ts-ignore */
102
- ...(ngDevMode ? [{ debugName: "closeIconSize" }] : /* istanbul ignore next */ []));
103
- /** @ignore Alert has only a title (no text, no projected content). */
104
- this.isTitleOnly = computed(() => !!this.title() && !this.text(), /* @ts-ignore */
105
- ...(ngDevMode ? [{ debugName: "isTitleOnly" }] : /* istanbul ignore next */ []));
106
- /** @ignore */
107
- this.classes = computed(() => {
108
- const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];
109
- if (this.size() !== 'default')
110
- c.push(`_${this.size()}`);
111
- if (this.isTitleOnly())
112
- c.push('_title-only');
113
- const sc = this.styleClass();
114
- if (sc)
115
- c.push(sc);
116
- return c.join(' ');
117
- }, /* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
119
- // Auto-dismiss timer (browser only). setTimeout — not rAF — so it still
120
- // fires in a throttled/background tab. Cleared if destroyed first.
121
- afterNextRender(() => {
122
- const life = this.life();
123
- if (life > 0) {
124
- const id = setTimeout(() => this.dismiss(), life);
125
- this.destroyRef.onDestroy(() => clearTimeout(id));
126
- }
127
- });
128
- }
129
- /** @ignore */
130
- onClose() {
131
- this.dismiss();
132
- }
133
- /** @ignore Hide the alert and notify the parent. */
134
- dismiss() {
135
- if (this.dismissed())
136
- return;
137
- this.dismissed.set(true);
138
- this.closed.emit();
139
- }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiAlert, isStandalone: true, selector: "ui-alert", 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 }, size: { classPropertyName: "size", publicName: "size", 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 }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "dismissed() ? 'none' : 'block'", "style.width": "'100%'" } }, ngImport: i0, template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n", styles: [".ui-alert{display:flex;align-items:var(--ui-alert-align, flex-start);gap:var(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--ui-alert-text-font-size, var(--size-typography-text-md))}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;align-self:var(--ui-alert-icon-align, auto);padding-top:var(--ui-alert-icon-padding-top, var(--units-2xs));line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-weight, var(--weight-light));line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-alert-close-align, auto);justify-content:center;padding:0;border:0;border-radius:var(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-opacity, .7);transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-offset, .125rem);opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, var(--size-typography-text-lg))}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
142
- }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiAlert, decorators: [{
144
- type: Component,
145
- args: [{ selector: 'ui-alert', imports: [UiIcon], host: {
146
- '[style.display]': "dismissed() ? 'none' : 'block'",
147
- '[style.width]': "'100%'",
148
- }, template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n", styles: [".ui-alert{display:flex;align-items:var(--ui-alert-align, flex-start);gap:var(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--ui-alert-text-font-size, var(--size-typography-text-md))}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;align-self:var(--ui-alert-icon-align, auto);padding-top:var(--ui-alert-icon-padding-top, var(--units-2xs));line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-weight, var(--weight-light));line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-alert-close-align, auto);justify-content:center;padding:0;border:0;border-radius:var(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-opacity, .7);transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-offset, .125rem);opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, var(--size-typography-text-lg))}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"] }]
149
- }], ctorParameters: () => [], 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", 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 }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
150
-
151
- /*
152
- * Public API Surface of ui-kit/ui-alert
153
- */
154
-
155
- /**
156
- * Generated bundle index. Do not edit.
157
- */
158
-
11
+ var UiAlert = class UiAlert {
12
+ constructor() {
13
+ this.destroyRef = inject(DestroyRef);
14
+ this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
15
+ this.text = input(...ngDevMode ? [void 0, { debugName: "text" }] : /* istanbul ignore next */ []);
16
+ this.level = input("default", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
17
+ this.subLevel = input("high", ...ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []);
18
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
19
+ this.icon = input(true, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
20
+ this.closable = input(true, {
21
+ ...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
22
+ transform: booleanAttribute
23
+ });
24
+ this.closeIcon = input("times-circle", ...ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []);
25
+ this.closeAriaLabel = input("Fermer", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
26
+ this.life = input(0, {
27
+ ...ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {},
28
+ transform: numberAttribute
29
+ });
30
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
31
+ this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
32
+ this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
33
+ this.closed = output();
34
+ this.dismissed = signal(false, ...ngDevMode ? [{ debugName: "dismissed" }] : /* istanbul ignore next */ []);
35
+ this.iconName = computed(() => {
36
+ const icon = this.icon();
37
+ if (icon === false) return null;
38
+ if (typeof icon === "string") return icon;
39
+ return UI_ALERT_DEFAULT_ICONS[this.level()];
40
+ }, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
41
+ this.iconSize = computed(() => this.size() === "large" ? "default" : "md", ...ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []);
42
+ this.closeIconSize = computed(() => this.size() === "large" ? "md" : "sm", ...ngDevMode ? [{ debugName: "closeIconSize" }] : /* istanbul ignore next */ []);
43
+ this.isTitleOnly = computed(() => !!this.title() && !this.text(), ...ngDevMode ? [{ debugName: "isTitleOnly" }] : /* istanbul ignore next */ []);
44
+ this.classes = computed(() => {
45
+ const c = [
46
+ "ui-alert",
47
+ `_${this.level()}`,
48
+ `_${this.subLevel()}`
49
+ ];
50
+ if (this.size() !== "default") c.push(`_${this.size()}`);
51
+ if (this.isTitleOnly()) c.push("_title-only");
52
+ const sc = this.styleClass();
53
+ if (sc) c.push(sc);
54
+ return c.join(" ");
55
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
56
+ afterNextRender(() => {
57
+ const life = this.life();
58
+ if (life > 0) {
59
+ const id = setTimeout(() => this.dismiss(), life);
60
+ this.destroyRef.onDestroy(() => clearTimeout(id));
61
+ }
62
+ });
63
+ }
64
+ onClose() {
65
+ this.dismiss();
66
+ }
67
+ dismiss() {
68
+ if (this.dismissed()) return;
69
+ this.dismissed.set(true);
70
+ this.closed.emit();
71
+ }
72
+ static {
73
+ this.ɵfac = i0.ɵɵngDeclareFactory({
74
+ minVersion: "12.0.0",
75
+ version: "22.3.0",
76
+ ngImport: i0,
77
+ type: UiAlert,
78
+ deps: [],
79
+ target: i0.ɵɵFactoryTarget.Component
80
+ });
81
+ }
82
+ static {
83
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
84
+ minVersion: "17.0.0",
85
+ version: "22.3.0",
86
+ type: UiAlert,
87
+ isStandalone: true,
88
+ selector: "ui-alert",
89
+ inputs: {
90
+ title: {
91
+ classPropertyName: "title",
92
+ publicName: "title",
93
+ isSignal: true,
94
+ isRequired: false,
95
+ transformFunction: null
96
+ },
97
+ text: {
98
+ classPropertyName: "text",
99
+ publicName: "text",
100
+ isSignal: true,
101
+ isRequired: false,
102
+ transformFunction: null
103
+ },
104
+ level: {
105
+ classPropertyName: "level",
106
+ publicName: "level",
107
+ isSignal: true,
108
+ isRequired: false,
109
+ transformFunction: null
110
+ },
111
+ subLevel: {
112
+ classPropertyName: "subLevel",
113
+ publicName: "subLevel",
114
+ isSignal: true,
115
+ isRequired: false,
116
+ transformFunction: null
117
+ },
118
+ size: {
119
+ classPropertyName: "size",
120
+ publicName: "size",
121
+ isSignal: true,
122
+ isRequired: false,
123
+ transformFunction: null
124
+ },
125
+ icon: {
126
+ classPropertyName: "icon",
127
+ publicName: "icon",
128
+ isSignal: true,
129
+ isRequired: false,
130
+ transformFunction: null
131
+ },
132
+ closable: {
133
+ classPropertyName: "closable",
134
+ publicName: "closable",
135
+ isSignal: true,
136
+ isRequired: false,
137
+ transformFunction: null
138
+ },
139
+ closeIcon: {
140
+ classPropertyName: "closeIcon",
141
+ publicName: "closeIcon",
142
+ isSignal: true,
143
+ isRequired: false,
144
+ transformFunction: null
145
+ },
146
+ closeAriaLabel: {
147
+ classPropertyName: "closeAriaLabel",
148
+ publicName: "closeAriaLabel",
149
+ isSignal: true,
150
+ isRequired: false,
151
+ transformFunction: null
152
+ },
153
+ life: {
154
+ classPropertyName: "life",
155
+ publicName: "life",
156
+ isSignal: true,
157
+ isRequired: false,
158
+ transformFunction: null
159
+ },
160
+ ariaLabel: {
161
+ classPropertyName: "ariaLabel",
162
+ publicName: "ariaLabel",
163
+ isSignal: true,
164
+ isRequired: false,
165
+ transformFunction: null
166
+ },
167
+ ariaLabelledBy: {
168
+ classPropertyName: "ariaLabelledBy",
169
+ publicName: "ariaLabelledBy",
170
+ isSignal: true,
171
+ isRequired: false,
172
+ transformFunction: null
173
+ },
174
+ styleClass: {
175
+ classPropertyName: "styleClass",
176
+ publicName: "styleClass",
177
+ isSignal: true,
178
+ isRequired: false,
179
+ transformFunction: null
180
+ }
181
+ },
182
+ outputs: { closed: "closed" },
183
+ host: { properties: {
184
+ "style.display": "dismissed() ? 'none' : 'block'",
185
+ "style.width": "'100%'"
186
+ } },
187
+ ngImport: i0,
188
+ template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n",
189
+ styles: [".ui-alert{display:flex;align-items:var(--ui-alert-align, flex-start);gap:var(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--ui-alert-text-font-size, var(--size-typography-text-md))}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;align-self:var(--ui-alert-icon-align, auto);padding-top:var(--ui-alert-icon-padding-top, var(--units-2xs));line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-weight, var(--weight-light));line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-alert-close-align, auto);justify-content:center;padding:0;border:0;border-radius:var(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-opacity, .7);transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-offset, .125rem);opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, var(--size-typography-text-lg))}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"],
190
+ dependencies: [{
191
+ kind: "component",
192
+ type: UiIcon,
193
+ selector: "ui-icon",
194
+ inputs: [
195
+ "name",
196
+ "size",
197
+ "type",
198
+ "family",
199
+ "decorative",
200
+ "ariaLabel"
201
+ ]
202
+ }]
203
+ });
204
+ }
205
+ };
206
+ i0.ɵɵngDeclareClassMetadata({
207
+ minVersion: "12.0.0",
208
+ version: "22.3.0",
209
+ ngImport: i0,
210
+ type: UiAlert,
211
+ decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: "ui-alert",
215
+ imports: [UiIcon],
216
+ host: {
217
+ "[style.display]": "dismissed() ? 'none' : 'block'",
218
+ "[style.width]": "'100%'"
219
+ },
220
+ template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n",
221
+ styles: [".ui-alert{display:flex;align-items:var(--ui-alert-align, flex-start);gap:var(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--ui-alert-text-font-size, var(--size-typography-text-md))}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;align-self:var(--ui-alert-icon-align, auto);padding-top:var(--ui-alert-icon-padding-top, var(--units-2xs));line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-weight, var(--weight-light));line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-alert-close-align, auto);justify-content:center;padding:0;border:0;border-radius:var(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-opacity, .7);transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-offset, .125rem);opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, var(--size-typography-text-lg))}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"]
222
+ }]
223
+ }],
224
+ ctorParameters: () => [],
225
+ propDecorators: {
226
+ title: [{
227
+ type: i0.Input,
228
+ args: [{
229
+ isSignal: true,
230
+ alias: "title",
231
+ required: false
232
+ }]
233
+ }],
234
+ text: [{
235
+ type: i0.Input,
236
+ args: [{
237
+ isSignal: true,
238
+ alias: "text",
239
+ required: false
240
+ }]
241
+ }],
242
+ level: [{
243
+ type: i0.Input,
244
+ args: [{
245
+ isSignal: true,
246
+ alias: "level",
247
+ required: false
248
+ }]
249
+ }],
250
+ subLevel: [{
251
+ type: i0.Input,
252
+ args: [{
253
+ isSignal: true,
254
+ alias: "subLevel",
255
+ required: false
256
+ }]
257
+ }],
258
+ size: [{
259
+ type: i0.Input,
260
+ args: [{
261
+ isSignal: true,
262
+ alias: "size",
263
+ required: false
264
+ }]
265
+ }],
266
+ icon: [{
267
+ type: i0.Input,
268
+ args: [{
269
+ isSignal: true,
270
+ alias: "icon",
271
+ required: false
272
+ }]
273
+ }],
274
+ closable: [{
275
+ type: i0.Input,
276
+ args: [{
277
+ isSignal: true,
278
+ alias: "closable",
279
+ required: false
280
+ }]
281
+ }],
282
+ closeIcon: [{
283
+ type: i0.Input,
284
+ args: [{
285
+ isSignal: true,
286
+ alias: "closeIcon",
287
+ required: false
288
+ }]
289
+ }],
290
+ closeAriaLabel: [{
291
+ type: i0.Input,
292
+ args: [{
293
+ isSignal: true,
294
+ alias: "closeAriaLabel",
295
+ required: false
296
+ }]
297
+ }],
298
+ life: [{
299
+ type: i0.Input,
300
+ args: [{
301
+ isSignal: true,
302
+ alias: "life",
303
+ required: false
304
+ }]
305
+ }],
306
+ ariaLabel: [{
307
+ type: i0.Input,
308
+ args: [{
309
+ isSignal: true,
310
+ alias: "ariaLabel",
311
+ required: false
312
+ }]
313
+ }],
314
+ ariaLabelledBy: [{
315
+ type: i0.Input,
316
+ args: [{
317
+ isSignal: true,
318
+ alias: "ariaLabelledBy",
319
+ required: false
320
+ }]
321
+ }],
322
+ styleClass: [{
323
+ type: i0.Input,
324
+ args: [{
325
+ isSignal: true,
326
+ alias: "styleClass",
327
+ required: false
328
+ }]
329
+ }],
330
+ closed: [{
331
+ type: i0.Output,
332
+ args: ["closed"]
333
+ }]
334
+ }
335
+ });
159
336
  export { UI_ALERT_DEFAULT_ICONS, UiAlert };
160
- //# sourceMappingURL=4sh-ui-kit-informative-ui-alert.mjs.map
337
+
338
+ //# sourceMappingURL=4sh-ui-kit-informative-ui-alert.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-alert.mjs","sources":["../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.types.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.html","../../../projects/ui-kit/informative/ui-alert/src/public-api.ts","../../../projects/ui-kit/informative/ui-alert/src/4sh-ui-kit-informative-ui-alert.ts"],"sourcesContent":["import { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\n/** Rendered scale of an alert. `default` = base, `large` = comfortable. */\nexport type UiAlertSize = 'default' | 'large';\n\n/**\n * Default leading icon per semantic level (FontAwesome names, from the Figma\n * source). Overridable per instance through the `icon` input.\n */\nexport const UI_ALERT_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_ALERT_DEFAULT_ICONS, UiAlertSize } from './ui-alert.types';\n\n/**\n * ui-alert — inline message for informational, success, warning or error feedback.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * The root carries `role=\"alert\"` (implicit `aria-live=\"assertive\"` +\n * `aria-atomic=\"true\"`), so screen readers announce it as soon as it appears —\n * ideal for form validation summaries or transient status banners. Set `life`\n * to auto-dismiss after a delay; the alert hides itself and emits `closed`.\n *\n * Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`\n * is a plain inline block — drop it in the page flow, a form, or a `@for` loop.\n *\n * @example\n * ```html\n * <ui-alert level=\"error\" title=\"Erreur\" text=\"Le formulaire est invalide.\" />\n * <ui-alert level=\"success\" text=\"Enregistré.\" [life]=\"4000\" (closed)=\"onClose()\" />\n * ```\n */\n@Component({\n selector: 'ui-alert',\n imports: [UiIcon],\n templateUrl: './ui-alert.html',\n styleUrl: './ui-alert.scss',\n host: {\n '[style.display]': \"dismissed() ? 'none' : 'block'\",\n '[style.width]': \"'100%'\",\n },\n})\nexport class UiAlert {\n private readonly destroyRef = inject(DestroyRef);\n\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Rendered scale (`default` | `large`). */\n size = input<UiAlertSize>('default');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */\n life = input(0, { transform: numberAttribute });\n /** Accessible label of the alert region (screen readers). */\n ariaLabel = input<string>();\n /** id of the element labelling the alert region. */\n ariaLabelledBy = input<string>();\n /** Extra class(es) merged onto the alert root. */\n styleClass = input<string>();\n\n /** Emitted when the alert is dismissed (close button or `life` expiry). */\n closed = output<void>();\n\n /** @ignore Hidden after a dismiss so the close button works standalone. */\n protected readonly dismissed = signal(false);\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_ALERT_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore Leading icon size follows the alert size (Figma). */\n protected readonly iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'));\n\n /** @ignore Dismiss icon size follows the alert size (Figma). */\n protected readonly closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'));\n\n /** @ignore Alert has only a title (no text, no projected content). */\n protected readonly isTitleOnly = computed(() => !!this.title() && !this.text());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isTitleOnly()) c.push('_title-only');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n constructor() {\n // Auto-dismiss timer (browser only). setTimeout — not rAF — so it still\n // fires in a throttled/background tab. Cleared if destroyed first.\n afterNextRender(() => {\n const life = this.life();\n if (life > 0) {\n const id = setTimeout(() => this.dismiss(), life);\n this.destroyRef.onDestroy(() => clearTimeout(id));\n }\n });\n }\n\n /** @ignore */\n protected onClose(): void {\n this.dismiss();\n }\n\n /** @ignore Hide the alert and notify the parent. */\n private dismiss(): void {\n if (this.dismissed()) return;\n this.dismissed.set(true);\n this.closed.emit();\n }\n}\n","@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-alert\n */\n\nexport * from './lib/ui-alert';\nexport * from './lib/ui-alert.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAKA;;;AAGG;AACI,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;ACEhB;;;;;;;;;;;;;;;;;;;;;AAqBG;MAWU,OAAO,CAAA;AAkElB,IAAA,WAAA,GAAA;AAjEiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;AAGhD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAc,SAAS;iFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAEpC,IAAA,CAA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A,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAQL,OAAO,EAAA,UAAA,EAAA,CAAA;kBAVnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,IAAA,EAGX;AACJ,wBAAA,iBAAiB,EAAE,gCAAgC;AACnD,wBAAA,eAAe,EAAE,QAAQ;AAC1B,qBAAA,EAAA,QAAA,EAAA,44BAAA,EAAA,MAAA,EAAA,CAAA,29KAAA,CAAA,EAAA;;;AE9CH;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-alert.mjs","names":[],"sources":["../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.types.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.html"],"sourcesContent":["import { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\n/** Rendered scale of an alert. `default` = base, `large` = comfortable. */\nexport type UiAlertSize = 'default' | 'large';\n\n/**\n * Default leading icon per semantic level (FontAwesome names, from the Figma\n * source). Overridable per instance through the `icon` input.\n */\nexport const UI_ALERT_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_ALERT_DEFAULT_ICONS, UiAlertSize } from './ui-alert.types';\n\n/**\n * ui-alert — inline message for informational, success, warning or error feedback.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * The root carries `role=\"alert\"` (implicit `aria-live=\"assertive\"` +\n * `aria-atomic=\"true\"`), so screen readers announce it as soon as it appears —\n * ideal for form validation summaries or transient status banners. Set `life`\n * to auto-dismiss after a delay; the alert hides itself and emits `closed`.\n *\n * Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`\n * is a plain inline block — drop it in the page flow, a form, or a `@for` loop.\n *\n * @example\n * ```html\n * <ui-alert level=\"error\" title=\"Erreur\" text=\"Le formulaire est invalide.\" />\n * <ui-alert level=\"success\" text=\"Enregistré.\" [life]=\"4000\" (closed)=\"onClose()\" />\n * ```\n */\n@Component({\n selector: 'ui-alert',\n imports: [UiIcon],\n templateUrl: './ui-alert.html',\n styleUrl: './ui-alert.scss',\n host: {\n '[style.display]': \"dismissed() ? 'none' : 'block'\",\n '[style.width]': \"'100%'\",\n },\n})\nexport class UiAlert {\n private readonly destroyRef = inject(DestroyRef);\n\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Rendered scale (`default` | `large`). */\n size = input<UiAlertSize>('default');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */\n life = input(0, { transform: numberAttribute });\n /** Accessible label of the alert region (screen readers). */\n ariaLabel = input<string>();\n /** id of the element labelling the alert region. */\n ariaLabelledBy = input<string>();\n /** Extra class(es) merged onto the alert root. */\n styleClass = input<string>();\n\n /** Emitted when the alert is dismissed (close button or `life` expiry). */\n closed = output<void>();\n\n /** @ignore Hidden after a dismiss so the close button works standalone. */\n protected readonly dismissed = signal(false);\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_ALERT_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore Leading icon size follows the alert size (Figma). */\n protected readonly iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'));\n\n /** @ignore Dismiss icon size follows the alert size (Figma). */\n protected readonly closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'));\n\n /** @ignore Alert has only a title (no text, no projected content). */\n protected readonly isTitleOnly = computed(() => !!this.title() && !this.text());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isTitleOnly()) c.push('_title-only');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n constructor() {\n // Auto-dismiss timer (browser only). setTimeout — not rAF — so it still\n // fires in a throttled/background tab. Cleared if destroyed first.\n afterNextRender(() => {\n const life = this.life();\n if (life > 0) {\n const id = setTimeout(() => this.dismiss(), life);\n this.destroyRef.onDestroy(() => clearTimeout(id));\n }\n });\n }\n\n /** @ignore */\n protected onClose(): void {\n this.dismiss();\n }\n\n /** @ignore Hide the alert and notify the parent. */\n private dismiss(): void {\n if (this.dismissed()) return;\n this.dismissed.set(true);\n this.closed.emit();\n }\n}\n","@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n"],"mappings":";;;AASA,MAAa,yBAA0D;CACrE,SAAS;CACT,WAAW;CACX,SAAS;CACT,SAAS;CACT,OAAO;AACR;ACiCD,IAAa,UAAb,MAAa,QAAO;CAkElB,cAAA;EAjEiB,KAAA,aAAa,OAAO,UAAU;EAG/C,KAAA,QAAQ,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEvB,KAAA,OAAO,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAEtB,KAAA,QAAQ,MAAuB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEzC,KAAA,WAAW,MAAkB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEpC,KAAA,OAAO,MAAmB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAKpC,KAAA,OAAO,MAAwB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAEpC,KAAA,WAAW,MAAM,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAEpD,KAAA,YAAY,MAAc,gBAAe,GAAA,YAAA,CAAA,EAAA,WA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