@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,16 +1,18 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
3
- import { UiMotionPreset } from '@4sh/ui-kit/motion';
4
- import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';
5
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { TemplateRef } from "@angular/core";
6
+ import { UiMotionPreset } from "@4sh/ui-kit/motion";
7
+ import { UiFeedbackLevel, UiSubLevel } from "@4sh/ui-kit/types";
6
8
  /** Unique identifier of a toast message (auto-generated when omitted). */
7
- type UiToastId = string | number;
9
+ export type UiToastId = string | number;
8
10
  /**
9
11
  * Where a {@link UiToastContainer} pins its stack in the viewport.
10
12
  */
11
- type UiToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center';
13
+ export type UiToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center';
12
14
  /** All positions, in declaration order (handy for stories/docs). */
13
- declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
15
+ export declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
14
16
  /**
15
17
  * A single toast message pushed through the {@link UiToastService}.
16
18
  *
@@ -18,45 +20,44 @@ declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
18
20
  * default resolved by the container.
19
21
  * remapped to this design system's semantic `level` / `subLevel` vocabulary.
20
22
  */
21
- interface UiToastMessage {
22
- /** Unique id. Auto-generated by the service when omitted. */
23
- id?: UiToastId;
24
- /** Routes the message to the container(s) sharing the same `key`. */
25
- key?: string;
26
- /** Semantic level (drives colours + default icon). */
27
- level?: UiFeedbackLevel;
28
- /** Hierarchical intensity (`high` = solid, `low` = subtle). */
29
- subLevel?: UiSubLevel;
30
- /** Bold heading line. */
31
- title?: string;
32
- /** Supporting body line. */
33
- text?: string;
34
- /**
35
- * Leading icon: a FontAwesome name to override the level default, `false`
36
- * to hide it, or omit / `true` for the level's default icon.
37
- */
38
- icon?: string | boolean;
39
- /** Show the dismiss button (default `true`). */
40
- closable?: boolean;
41
- /** Never auto-dismiss — the user must close it (default `false`). */
42
- sticky?: boolean;
43
- /** Auto-dismiss delay in ms. Falls back to the container `life`. */
44
- life?: number;
45
- /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */
46
- data?: unknown;
47
- /** Extra class(es) applied to the toast card for one-off styling. */
48
- styleClass?: string;
23
+ export interface UiToastMessage {
24
+ /** Unique id. Auto-generated by the service when omitted. */
25
+ id?: UiToastId;
26
+ /** Routes the message to the container(s) sharing the same `key`. */
27
+ key?: string;
28
+ /** Semantic level (drives colours + default icon). */
29
+ level?: UiFeedbackLevel;
30
+ /** Hierarchical intensity (`high` = solid, `low` = subtle). */
31
+ subLevel?: UiSubLevel;
32
+ /** Bold heading line. */
33
+ title?: string;
34
+ /** Supporting body line. */
35
+ text?: string;
36
+ /**
37
+ * Leading icon: a FontAwesome name to override the level default, `false`
38
+ * to hide it, or omit / `true` for the level's default icon.
39
+ */
40
+ icon?: string | boolean;
41
+ /** Show the dismiss button (default `true`). */
42
+ closable?: boolean;
43
+ /** Never auto-dismiss — the user must close it (default `false`). */
44
+ sticky?: boolean;
45
+ /** Auto-dismiss delay in ms. Falls back to the container `life`. */
46
+ life?: number;
47
+ /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */
48
+ data?: unknown;
49
+ /** Extra class(es) applied to the toast card for one-off styling. */
50
+ styleClass?: string;
49
51
  }
50
52
  /** Context object handed to a container's custom content `template`. */
51
- interface UiToastTemplateContext {
52
- /** The message being rendered. */
53
- $implicit: UiToastMessage;
54
- /** Dismisses this toast (same as clicking the close button). */
55
- closeFn: () => void;
53
+ export interface UiToastTemplateContext {
54
+ /** The message being rendered. */
55
+ $implicit: UiToastMessage;
56
+ /** Dismisses this toast (same as clicking the close button). */
57
+ closeFn: () => void;
56
58
  }
57
59
  /** Default leading icon per semantic level (FontAwesome names, from the Figma source). */
58
- declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
59
-
60
+ export declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
60
61
  /**
61
62
  * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}
62
63
  * messages as {@link UiToast} cards.
@@ -75,77 +76,147 @@ declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
75
76
  * <ui-toast-container position="top-right" [life]="4000" />
76
77
  * ```
77
78
  */
78
- declare class UiToastContainer {
79
- /** Only render messages whose `key` matches (omit to render key-less messages). */
80
- key: _angular_core.InputSignal<string | undefined>;
81
- /** Where the stack is pinned in the viewport. */
82
- position: _angular_core.InputSignal<UiToastPosition>;
83
- /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */
84
- life: _angular_core.InputSignalWithTransform<number, unknown>;
85
- /** Render toasts as full-width banners (fill the region width). */
86
- expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
87
- /** Motion preset override. Defaults to a per-position choice. */
88
- motion: _angular_core.InputSignal<UiMotionPreset | undefined>;
89
- /** Disable enter/leave animation for this stack. */
90
- motionDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
91
- /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */
92
- contained: _angular_core.InputSignalWithTransform<boolean, unknown>;
93
- /**
94
- * Custom content template rendered inside each card in place of `title`/`text`.
95
- * Context: `{ $implicit: message, closeFn }`.
96
- */
97
- template: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
98
- /** Extra class(es) merged onto the region root. */
99
- styleClass: _angular_core.InputSignal<string | undefined>;
100
- /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */
101
- stackVisibleLimit: _angular_core.InputSignalWithTransform<number, unknown>;
102
- /** Gap between stacked cards in px (overrides the `--units-sm` token default). */
103
- stackGap: _angular_core.InputSignal<number | undefined>;
104
- /** Skip a new toast whose content (level + title + text) matches a live one. */
105
- preventDuplicates: _angular_core.InputSignalWithTransform<boolean, unknown>;
106
- /** Automatically layer this stack above earlier ones (later container wins). */
107
- autoZIndex: _angular_core.InputSignalWithTransform<boolean, unknown>;
108
- /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */
109
- baseZIndex: _angular_core.InputSignalWithTransform<number, unknown>;
110
- /** @ignore */
111
- private readonly service;
112
- /** @ignore Per-instance layering rank for `autoZIndex`. */
113
- private readonly zSeq;
114
- /** @ignore */
115
- private readonly isBrowser;
116
- /** @ignore All live messages routed to this container (drives timers/dedup). */
117
- private readonly keyed;
118
- /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */
119
- protected readonly items: _angular_core.Signal<UiToastMessage[]>;
120
- /** @ignore Effective stacking level. */
121
- protected readonly zIndex: _angular_core.Signal<number>;
122
- /** @ignore Resolved enter/leave preset. */
123
- protected readonly motionPreset: _angular_core.Signal<UiMotionPreset>;
124
- /** @ignore */
125
- protected readonly regionClass: _angular_core.Signal<string>;
126
- /** @ignore Active timeout handles, keyed by message id. */
127
- private readonly timers;
128
- /** @ignore Remaining ms per message (survives hover pause). */
129
- private readonly remaining;
130
- /** @ignore Wall-clock start of the running countdown, per message. */
131
- private readonly startedAt;
132
- constructor();
133
- /** @ignore Start (or restart) a countdown of `ms` for a message. */
134
- private arm;
135
- /** @ignore Cancel and drop all timer bookkeeping for a message. */
136
- private forget;
137
- /** @ignore Pause the countdown on hover/focus (banks the remaining time). */
138
- protected pause(id: UiToastId | undefined): void;
139
- /** @ignore Resume a paused countdown when the pointer/focus leaves. */
140
- protected resume(id: UiToastId | undefined): void;
141
- /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */
142
- protected dismiss(message: UiToastMessage): void;
143
- /** @ignore Template-context factory: a bound close handler for one message. */
144
- protected closeFn(message: UiToastMessage): () => void;
145
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiToastContainer, never>;
146
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiToastContainer, "ui-toast-container", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "life": { "alias": "life"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "motionDisabled": { "alias": "motionDisabled"; "required": false; "isSignal": true; }; "contained": { "alias": "contained"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "stackVisibleLimit": { "alias": "stackVisibleLimit"; "required": false; "isSignal": true; }; "stackGap": { "alias": "stackGap"; "required": false; "isSignal": true; }; "preventDuplicates": { "alias": "preventDuplicates"; "required": false; "isSignal": true; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ export declare class UiToastContainer {
80
+ /** Only render messages whose `key` matches (omit to render key-less messages). */
81
+ key: import("@angular/core").InputSignal<string | undefined>;
82
+ /** Where the stack is pinned in the viewport. */
83
+ position: import("@angular/core").InputSignal<UiToastPosition>;
84
+ /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */
85
+ life: import("@angular/core").InputSignalWithTransform<number, unknown>;
86
+ /** Render toasts as full-width banners (fill the region width). */
87
+ expanded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
88
+ /** Motion preset override. Defaults to a per-position choice. */
89
+ motion: import("@angular/core").InputSignal<UiMotionPreset | undefined>;
90
+ /** Disable enter/leave animation for this stack. */
91
+ motionDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
92
+ /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */
93
+ contained: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
94
+ /**
95
+ * Custom content template rendered inside each card in place of `title`/`text`.
96
+ * Context: `{ $implicit: message, closeFn }`.
97
+ */
98
+ template: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
99
+ /** Extra class(es) merged onto the region root. */
100
+ styleClass: import("@angular/core").InputSignal<string | undefined>;
101
+ /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */
102
+ stackVisibleLimit: import("@angular/core").InputSignalWithTransform<number, unknown>;
103
+ /** Gap between stacked cards in px (overrides the `--units-sm` token default). */
104
+ stackGap: import("@angular/core").InputSignal<number | undefined>;
105
+ /** Skip a new toast whose content (level + title + text) matches a live one. */
106
+ preventDuplicates: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
107
+ /** Automatically layer this stack above earlier ones (later container wins). */
108
+ autoZIndex: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
109
+ /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */
110
+ baseZIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
111
+ /** @ignore */
112
+ private readonly service;
113
+ /** @ignore Per-instance layering rank for `autoZIndex`. */
114
+ private readonly zSeq;
115
+ /** @ignore */
116
+ private readonly isBrowser;
117
+ /** @ignore All live messages routed to this container (drives timers/dedup). */
118
+ private readonly keyed;
119
+ /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */
120
+ protected readonly items: import("@angular/core").Signal<UiToastMessage[]>;
121
+ /** @ignore Effective stacking level. */
122
+ protected readonly zIndex: import("@angular/core").Signal<number>;
123
+ /** @ignore Resolved enter/leave preset. */
124
+ protected readonly motionPreset: import("@angular/core").Signal<UiMotionPreset>;
125
+ /** @ignore */
126
+ protected readonly regionClass: import("@angular/core").Signal<string>;
127
+ /** @ignore Active timeout handles, keyed by message id. */
128
+ private readonly timers;
129
+ /** @ignore Remaining ms per message (survives hover pause). */
130
+ private readonly remaining;
131
+ /** @ignore Wall-clock start of the running countdown, per message. */
132
+ private readonly startedAt;
133
+ constructor();
134
+ /** @ignore Start (or restart) a countdown of `ms` for a message. */
135
+ private arm;
136
+ /** @ignore Cancel and drop all timer bookkeeping for a message. */
137
+ private forget;
138
+ /** @ignore Pause the countdown on hover/focus (banks the remaining time). */
139
+ protected pause(id: UiToastId | undefined): void;
140
+ /** @ignore Resume a paused countdown when the pointer/focus leaves. */
141
+ protected resume(id: UiToastId | undefined): void;
142
+ /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */
143
+ protected dismiss(message: UiToastMessage): void;
144
+ /** @ignore Template-context factory: a bound close handler for one message. */
145
+ protected closeFn(message: UiToastMessage): () => void;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiToastContainer, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiToastContainer, "ui-toast-container", never, {
148
+ "key": {
149
+ "alias": "key";
150
+ "required": false;
151
+ "isSignal": true;
152
+ };
153
+ "position": {
154
+ "alias": "position";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "life": {
159
+ "alias": "life";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "expanded": {
164
+ "alias": "expanded";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ "motion": {
169
+ "alias": "motion";
170
+ "required": false;
171
+ "isSignal": true;
172
+ };
173
+ "motionDisabled": {
174
+ "alias": "motionDisabled";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ "contained": {
179
+ "alias": "contained";
180
+ "required": false;
181
+ "isSignal": true;
182
+ };
183
+ "template": {
184
+ "alias": "template";
185
+ "required": false;
186
+ "isSignal": true;
187
+ };
188
+ "styleClass": {
189
+ "alias": "styleClass";
190
+ "required": false;
191
+ "isSignal": true;
192
+ };
193
+ "stackVisibleLimit": {
194
+ "alias": "stackVisibleLimit";
195
+ "required": false;
196
+ "isSignal": true;
197
+ };
198
+ "stackGap": {
199
+ "alias": "stackGap";
200
+ "required": false;
201
+ "isSignal": true;
202
+ };
203
+ "preventDuplicates": {
204
+ "alias": "preventDuplicates";
205
+ "required": false;
206
+ "isSignal": true;
207
+ };
208
+ "autoZIndex": {
209
+ "alias": "autoZIndex";
210
+ "required": false;
211
+ "isSignal": true;
212
+ };
213
+ "baseZIndex": {
214
+ "alias": "baseZIndex";
215
+ "required": false;
216
+ "isSignal": true;
217
+ };
218
+ }, {}, never, never, true, never>;
147
219
  }
148
-
149
220
  /**
150
221
  * ui-toast service — programmatic entry point to push and clear toasts.
151
222
  *
@@ -161,31 +232,30 @@ declare class UiToastContainer {
161
232
  * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });
162
233
  * ```
163
234
  */
164
- declare class UiToastService {
165
- /** @ignore Backing store of live messages. */
166
- private readonly _messages;
167
- /** Live messages, in insertion order (read-only). */
168
- readonly messages: _angular_core.Signal<UiToastMessage[]>;
169
- /** Total number of live messages across every key. */
170
- readonly count: _angular_core.Signal<number>;
171
- /**
172
- * Push a single message. Returns its (possibly generated) id so the caller
173
- * can dismiss it later (e.g. resolving a "loading" toast into a result).
174
- */
175
- add(message: UiToastMessage): UiToastId;
176
- /** Push several messages at once. Returns their ids, in order. */
177
- addAll(messages: UiToastMessage[]): UiToastId[];
178
- /**
179
- * Remove messages. With no argument, clears everything; with a `key`, clears
180
- * only the messages routed to that key.
181
- */
182
- clear(key?: string): void;
183
- /** Remove a single message by id (no-op if it is already gone). */
184
- remove(id: UiToastId): void;
185
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiToastService, never>;
186
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
235
+ export declare class UiToastService {
236
+ /** @ignore Backing store of live messages. */
237
+ private readonly _messages;
238
+ /** Live messages, in insertion order (read-only). */
239
+ readonly messages: import("@angular/core").Signal<UiToastMessage[]>;
240
+ /** Total number of live messages across every key. */
241
+ readonly count: import("@angular/core").Signal<number>;
242
+ /**
243
+ * Push a single message. Returns its (possibly generated) id so the caller
244
+ * can dismiss it later (e.g. resolving a "loading" toast into a result).
245
+ */
246
+ add(message: UiToastMessage): UiToastId;
247
+ /** Push several messages at once. Returns their ids, in order. */
248
+ addAll(messages: UiToastMessage[]): UiToastId[];
249
+ /**
250
+ * Remove messages. With no argument, clears everything; with a `key`, clears
251
+ * only the messages routed to that key.
252
+ */
253
+ clear(key?: string): void;
254
+ /** Remove a single message by id (no-op if it is already gone). */
255
+ remove(id: UiToastId): void;
256
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiToastService, never>;
257
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
187
258
  }
188
-
189
259
  /**
190
260
  * ui-toast — presentational notification card.
191
261
  *
@@ -202,46 +272,96 @@ declare class UiToastService {
202
272
  * <ui-toast level="success" title="Enregistré" text="Profil mis à jour." (closed)="…" />
203
273
  * ```
204
274
  */
205
- declare class UiToast {
206
- /** Bold heading line. */
207
- title: _angular_core.InputSignal<string | undefined>;
208
- /** Supporting body line. */
209
- text: _angular_core.InputSignal<string | undefined>;
210
- /** Semantic level — colours + default icon. */
211
- level: _angular_core.InputSignal<UiFeedbackLevel>;
212
- /** Hierarchical intensity (`high` = solid, `low` = subtle). */
213
- subLevel: _angular_core.InputSignal<UiSubLevel>;
214
- /**
215
- * Leading icon: a FontAwesome name to override the level default, `false`
216
- * to hide it, or `true` (default) for the level's default icon.
217
- */
218
- icon: _angular_core.InputSignal<string | boolean>;
219
- /** Show the dismiss button (default `true`). */
220
- closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
221
- /** FontAwesome name of the dismiss icon. */
222
- closeIcon: _angular_core.InputSignal<string>;
223
- /** Accessible label of the dismiss button. */
224
- closeAriaLabel: _angular_core.InputSignal<string>;
225
- /** Stretch the card to fill its region width (banner-style). */
226
- expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
227
- /** Extra class(es) merged onto the card root. */
228
- styleClass: _angular_core.InputSignal<string | undefined>;
229
- /** Emitted when the user clicks the dismiss button. */
230
- closed: _angular_core.OutputEmitterRef<MouseEvent>;
231
- /** @ignore Resolved leading icon name (null when hidden). */
232
- protected readonly iconName: _angular_core.Signal<string | null>;
233
- /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise
234
- * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */
235
- protected readonly role: _angular_core.Signal<"alert" | "status">;
236
- /** @ignore */
237
- protected readonly ariaLive: _angular_core.Signal<"assertive" | "polite">;
238
- /** @ignore */
239
- protected readonly classes: _angular_core.Signal<string>;
240
- /** @ignore */
241
- protected onClose(event: MouseEvent): void;
242
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiToast, never>;
243
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiToast, "ui-toast", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "subLevel": { "alias": "subLevel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeIcon": { "alias": "closeIcon"; "required": false; "isSignal": true; }; "closeAriaLabel": { "alias": "closeAriaLabel"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
244
- }
245
-
246
- export { UI_TOAST_DEFAULT_ICONS, UI_TOAST_POSITIONS, UiToast, UiToastContainer, UiToastService };
247
- export type { UiToastId, UiToastMessage, UiToastPosition, UiToastTemplateContext };
275
+ export declare class UiToast {
276
+ /** Bold heading line. */
277
+ title: import("@angular/core").InputSignal<string | undefined>;
278
+ /** Supporting body line. */
279
+ text: import("@angular/core").InputSignal<string | undefined>;
280
+ /** Semantic level — colours + default icon. */
281
+ level: import("@angular/core").InputSignal<UiFeedbackLevel>;
282
+ /** Hierarchical intensity (`high` = solid, `low` = subtle). */
283
+ subLevel: import("@angular/core").InputSignal<UiSubLevel>;
284
+ /**
285
+ * Leading icon: a FontAwesome name to override the level default, `false`
286
+ * to hide it, or `true` (default) for the level's default icon.
287
+ */
288
+ icon: import("@angular/core").InputSignal<string | boolean>;
289
+ /** Show the dismiss button (default `true`). */
290
+ closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
291
+ /** FontAwesome name of the dismiss icon. */
292
+ closeIcon: import("@angular/core").InputSignal<string>;
293
+ /** Accessible label of the dismiss button. */
294
+ closeAriaLabel: import("@angular/core").InputSignal<string>;
295
+ /** Stretch the card to fill its region width (banner-style). */
296
+ expanded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
297
+ /** Extra class(es) merged onto the card root. */
298
+ styleClass: import("@angular/core").InputSignal<string | undefined>;
299
+ /** Emitted when the user clicks the dismiss button. */
300
+ closed: import("@angular/core").OutputEmitterRef<MouseEvent>;
301
+ /** @ignore Resolved leading icon name (null when hidden). */
302
+ protected readonly iconName: import("@angular/core").Signal<string | null>;
303
+ /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise
304
+ * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */
305
+ protected readonly role: import("@angular/core").Signal<"alert" | "status">;
306
+ /** @ignore */
307
+ protected readonly ariaLive: import("@angular/core").Signal<"assertive" | "polite">;
308
+ /** @ignore */
309
+ protected readonly classes: import("@angular/core").Signal<string>;
310
+ /** @ignore */
311
+ protected onClose(event: MouseEvent): void;
312
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiToast, never>;
313
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiToast, "ui-toast", never, {
314
+ "title": {
315
+ "alias": "title";
316
+ "required": false;
317
+ "isSignal": true;
318
+ };
319
+ "text": {
320
+ "alias": "text";
321
+ "required": false;
322
+ "isSignal": true;
323
+ };
324
+ "level": {
325
+ "alias": "level";
326
+ "required": false;
327
+ "isSignal": true;
328
+ };
329
+ "subLevel": {
330
+ "alias": "subLevel";
331
+ "required": false;
332
+ "isSignal": true;
333
+ };
334
+ "icon": {
335
+ "alias": "icon";
336
+ "required": false;
337
+ "isSignal": true;
338
+ };
339
+ "closable": {
340
+ "alias": "closable";
341
+ "required": false;
342
+ "isSignal": true;
343
+ };
344
+ "closeIcon": {
345
+ "alias": "closeIcon";
346
+ "required": false;
347
+ "isSignal": true;
348
+ };
349
+ "closeAriaLabel": {
350
+ "alias": "closeAriaLabel";
351
+ "required": false;
352
+ "isSignal": true;
353
+ };
354
+ "expanded": {
355
+ "alias": "expanded";
356
+ "required": false;
357
+ "isSignal": true;
358
+ };
359
+ "styleClass": {
360
+ "alias": "styleClass";
361
+ "required": false;
362
+ "isSignal": true;
363
+ };
364
+ }, {
365
+ "closed": "closed";
366
+ }, never, ["*"], true, never>;
367
+ }