@4sh/ui-kit 0.15.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 (220) hide show
  1. package/README.fr.md +18 -10
  2. package/README.md +18 -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 -953
  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 -2039
  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 -130
  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 -246
  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 -291
  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 -194
  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 -131
  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 +723 -596
  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 +313 -2
  143. package/mcp/data/text-search-docs.json +177 -17
  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/styles/utils/_mixins.scss +11 -0
  150. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  151. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  152. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  153. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  154. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  155. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  156. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
  157. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  158. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  159. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  160. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  161. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  162. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  163. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  164. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  165. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
  166. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
  167. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
  168. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  169. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
  170. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  171. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  172. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  173. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  174. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  175. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  176. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  177. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  178. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  179. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
  180. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  181. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  182. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  183. package/types/4sh-ui-kit-forms.d.ts +291 -186
  184. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  185. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  186. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  187. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  188. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  189. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  190. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  191. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  192. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  193. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  194. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  195. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  196. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  197. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  198. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  199. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  200. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  201. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  202. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  203. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  204. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  205. package/types/4sh-ui-kit-motion.d.ts +117 -67
  206. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  207. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  208. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  209. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  210. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  211. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  212. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  213. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  214. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  215. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  216. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  217. package/types/4sh-ui-kit-theming.d.ts +27 -29
  218. package/types/4sh-ui-kit-types.d.ts +6 -5
  219. package/types/4sh-ui-kit.d.ts +4 -3
  220. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,11 +1,13 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ElementRef } from '@angular/core';
3
- import { ConnectedPosition, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { ElementRef } from "@angular/core";
6
+ import { ConnectedOverlayPositionChange, ConnectedPosition } from "@angular/cdk/overlay";
5
7
  /** Preferred side of the trigger the panel is displayed on (drives the arrow). */
6
- type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';
8
+ export type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';
7
9
  /** Accepted shapes for the anchor passed to `show` / `toggle`. */
8
- type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;
10
+ export type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;
9
11
  /**
10
12
  * ui-popover — headless floating panel anchored to a trigger.
11
13
  *
@@ -38,88 +40,144 @@ type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;
38
40
  * <ui-popover #op ariaLabel="Détails">…</ui-popover>
39
41
  * ```
40
42
  */
41
- declare class UiPopover {
42
- /** Hide the panel when a click lands outside it (and outside the trigger). */
43
- dismissable: _angular_core.InputSignalWithTransform<boolean, unknown>;
44
- /** Preferred side of the trigger; the overlay flips it when space is lacking. */
45
- position: _angular_core.InputSignal<PopoverPosition>;
46
- /** Render the arrow pointing back to the trigger. */
47
- showArrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
48
- /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */
49
- modal: _angular_core.InputSignalWithTransform<boolean, unknown>;
50
- /** ARIA role of the panel. */
51
- role: _angular_core.InputSignal<string>;
52
- /** Accessible name of the panel (recommended). */
53
- ariaLabel: _angular_core.InputSignal<string | undefined>;
54
- /** Id of an external element naming the panel. */
55
- ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
56
- /** Move focus into the panel when it opens. */
57
- focusOnShow: _angular_core.InputSignalWithTransform<boolean, unknown>;
58
- /** Close the panel when `Escape` is pressed. */
59
- closeOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
60
- /** Animate the panel entrance (reduced-motion / `data-motion="off"` always win). */
61
- motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
62
- /** Extra class(es) applied to the panel (scoped custom styling). */
63
- styleClass: _angular_core.InputSignal<string | undefined>;
64
- /** Emitted after the panel becomes visible. */
65
- shown: _angular_core.OutputEmitterRef<void>;
66
- /** Emitted after the panel is hidden. */
67
- hidden: _angular_core.OutputEmitterRef<void>;
68
- /** @ignore */
69
- private readonly doc;
70
- /** @ignore Panel root (only present while open — queried after the overlay attaches). */
71
- private readonly panel;
72
- /** @ignore Panel visibility. */
73
- private readonly _open;
74
- /** Read-only open state (for host bindings / conditional logic). */
75
- readonly visible: _angular_core.Signal<boolean>;
76
- /** @ignore Element the overlay is anchored to. */
77
- protected readonly origin: _angular_core.WritableSignal<HTMLElement | null>;
78
- /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */
79
- protected readonly side: _angular_core.WritableSignal<PopoverPosition>;
80
- /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */
81
- protected readonly panelId: string;
82
- /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */
83
- private targetEl;
84
- constructor();
85
- /**
86
- * Show the panel anchored to `target` (or the event's `currentTarget`).
87
- * @param event Browser event whose `currentTarget` is used as a fallback anchor.
88
- * @param target Explicit anchor element (kept anchored to it).
89
- */
90
- show(event?: Event, target?: PopoverTarget): void;
91
- /** Hide the panel; returns focus to the trigger when focus was inside it. */
92
- hide(): void;
93
- /** Toggle the panel, anchoring it like {@link show} when it opens. */
94
- toggle(event?: Event, target?: PopoverTarget): void;
95
- /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
96
- protected readonly positions: _angular_core.Signal<ConnectedPosition[]>;
97
- /** @ignore */
98
- protected readonly panelClasses: _angular_core.Signal<string>;
99
- /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */
100
- protected onPositionChange(change: ConnectedOverlayPositionChange): void;
101
- /** @ignore A click outside the panel closes it — unless it lands on the trigger,
102
- * whose own handler owns the toggle (avoids close-then-reopen races). */
103
- protected onOutsideClick(event: MouseEvent): void;
104
- /** @ignore */
105
- protected onEscape(event: Event): void;
106
- /** @ignore */
107
- private resolveTarget;
108
- /** @ignore */
109
- private resolveEventTarget;
110
- /** @ignore Reflect the open relationship on the trigger. */
111
- private applyTriggerAria;
112
- /** @ignore */
113
- private clearTriggerAria;
114
- /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.
115
- * The overlay attaches after change detection: retry over macrotasks
116
- * (NOT rAF — it never fires in throttled/background tabs). */
117
- private queueFocus;
118
- /** @ignore */
119
- private focusFirst;
120
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiPopover, never>;
121
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiPopover, "ui-popover", never, { "dismissable": { "alias": "dismissable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "showArrow": { "alias": "showArrow"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "focusOnShow": { "alias": "focusOnShow"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; }, never, ["*"], true, never>;
122
- }
123
-
124
- export { UiPopover };
125
- export type { PopoverPosition, PopoverTarget };
43
+ export declare class UiPopover {
44
+ /** Hide the panel when a click lands outside it (and outside the trigger). */
45
+ dismissable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
46
+ /** Preferred side of the trigger; the overlay flips it when space is lacking. */
47
+ position: import("@angular/core").InputSignal<PopoverPosition>;
48
+ /** Render the arrow pointing back to the trigger. */
49
+ showArrow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
50
+ /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */
51
+ modal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
52
+ /** ARIA role of the panel. */
53
+ role: import("@angular/core").InputSignal<string>;
54
+ /** Accessible name of the panel (recommended). */
55
+ ariaLabel: import("@angular/core").InputSignal<string | undefined>;
56
+ /** Id of an external element naming the panel. */
57
+ ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
58
+ /** Move focus into the panel when it opens. */
59
+ focusOnShow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
60
+ /** Close the panel when `Escape` is pressed. */
61
+ closeOnEscape: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
62
+ /** Animate the panel entrance (reduced-motion / `data-motion="off"` always win). */
63
+ motion: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
64
+ /** Extra class(es) applied to the panel (scoped custom styling). */
65
+ styleClass: import("@angular/core").InputSignal<string | undefined>;
66
+ /** Emitted after the panel becomes visible. */
67
+ shown: import("@angular/core").OutputEmitterRef<void>;
68
+ /** Emitted after the panel is hidden. */
69
+ hidden: import("@angular/core").OutputEmitterRef<void>;
70
+ /** @ignore */
71
+ private readonly doc;
72
+ /** @ignore Panel root (only present while open — queried after the overlay attaches). */
73
+ private readonly panel;
74
+ /** @ignore Panel visibility. */
75
+ private readonly _open;
76
+ /** Read-only open state (for host bindings / conditional logic). */
77
+ readonly visible: import("@angular/core").Signal<boolean>;
78
+ /** @ignore Element the overlay is anchored to. */
79
+ protected readonly origin: import("@angular/core").WritableSignal<HTMLElement | null>;
80
+ /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */
81
+ protected readonly side: import("@angular/core").WritableSignal<PopoverPosition>;
82
+ /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */
83
+ protected readonly panelId: string;
84
+ /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */
85
+ private targetEl;
86
+ constructor();
87
+ /**
88
+ * Show the panel anchored to `target` (or the event's `currentTarget`).
89
+ * @param event Browser event whose `currentTarget` is used as a fallback anchor.
90
+ * @param target Explicit anchor element (kept anchored to it).
91
+ */
92
+ show(event?: Event, target?: PopoverTarget): void;
93
+ /** Hide the panel; returns focus to the trigger when focus was inside it. */
94
+ hide(): void;
95
+ /** Toggle the panel, anchoring it like {@link show} when it opens. */
96
+ toggle(event?: Event, target?: PopoverTarget): void;
97
+ /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
98
+ protected readonly positions: import("@angular/core").Signal<ConnectedPosition[]>;
99
+ /** @ignore */
100
+ protected readonly panelClasses: import("@angular/core").Signal<string>;
101
+ /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */
102
+ protected onPositionChange(change: ConnectedOverlayPositionChange): void;
103
+ /** @ignore A click outside the panel closes it — unless it lands on the trigger,
104
+ * whose own handler owns the toggle (avoids close-then-reopen races). */
105
+ protected onOutsideClick(event: MouseEvent): void;
106
+ /** @ignore */
107
+ protected onEscape(event: Event): void;
108
+ /** @ignore */
109
+ private resolveTarget;
110
+ /** @ignore */
111
+ private resolveEventTarget;
112
+ /** @ignore Reflect the open relationship on the trigger. */
113
+ private applyTriggerAria;
114
+ /** @ignore */
115
+ private clearTriggerAria;
116
+ /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.
117
+ * The overlay attaches after change detection: retry over macrotasks
118
+ * (NOT rAF — it never fires in throttled/background tabs). */
119
+ private queueFocus;
120
+ /** @ignore */
121
+ private focusFirst;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiPopover, never>;
123
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiPopover, "ui-popover", never, {
124
+ "dismissable": {
125
+ "alias": "dismissable";
126
+ "required": false;
127
+ "isSignal": true;
128
+ };
129
+ "position": {
130
+ "alias": "position";
131
+ "required": false;
132
+ "isSignal": true;
133
+ };
134
+ "showArrow": {
135
+ "alias": "showArrow";
136
+ "required": false;
137
+ "isSignal": true;
138
+ };
139
+ "modal": {
140
+ "alias": "modal";
141
+ "required": false;
142
+ "isSignal": true;
143
+ };
144
+ "role": {
145
+ "alias": "role";
146
+ "required": false;
147
+ "isSignal": true;
148
+ };
149
+ "ariaLabel": {
150
+ "alias": "ariaLabel";
151
+ "required": false;
152
+ "isSignal": true;
153
+ };
154
+ "ariaLabelledBy": {
155
+ "alias": "ariaLabelledBy";
156
+ "required": false;
157
+ "isSignal": true;
158
+ };
159
+ "focusOnShow": {
160
+ "alias": "focusOnShow";
161
+ "required": false;
162
+ "isSignal": true;
163
+ };
164
+ "closeOnEscape": {
165
+ "alias": "closeOnEscape";
166
+ "required": false;
167
+ "isSignal": true;
168
+ };
169
+ "motion": {
170
+ "alias": "motion";
171
+ "required": false;
172
+ "isSignal": true;
173
+ };
174
+ "styleClass": {
175
+ "alias": "styleClass";
176
+ "required": false;
177
+ "isSignal": true;
178
+ };
179
+ }, {
180
+ "shown": "shown";
181
+ "hidden": "hidden";
182
+ }, never, ["*"], true, never>;
183
+ }
@@ -1,5 +1,7 @@
1
- import * as _angular_core from '@angular/core';
2
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
3
5
  /**
4
6
  * Built-in motion presets. Each maps to a pair of global CSS classes
5
7
  * (`ui-motion-<preset>-enter` / `ui-motion-<preset>-leave`) defined in
@@ -13,13 +15,13 @@ import * as _angular_core from '@angular/core';
13
15
  * - `zoom` — scale + fade (modals, dialogs, popovers).
14
16
  * - `collapse` — grid-row height + fade (accordions, panels; needs a grid wrapper).
15
17
  */
16
- type UiMotionPreset = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'zoom' | 'collapse';
18
+ export type UiMotionPreset = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'zoom' | 'collapse';
17
19
  /** All preset keys, in declaration order (handy for stories/docs). */
18
- declare const UI_MOTION_PRESETS: readonly UiMotionPreset[];
20
+ export declare const UI_MOTION_PRESETS: readonly UiMotionPreset[];
19
21
  /** CSS class to bind to `animate.enter` for a preset. */
20
- declare const motionEnterClass: (preset: UiMotionPreset) => string;
22
+ export declare const motionEnterClass: (preset: UiMotionPreset) => string;
21
23
  /** CSS class to bind to `animate.leave` for a preset. */
22
- declare const motionLeaveClass: (preset: UiMotionPreset) => string;
24
+ export declare const motionLeaveClass: (preset: UiMotionPreset) => string;
23
25
  /**
24
26
  * uiMotion — ergonomic wiring for the motion system on a conditionally
25
27
  * rendered element (`@if`, `@for`, control-flow insert/remove).
@@ -48,64 +50,112 @@ declare const motionLeaveClass: (preset: UiMotionPreset) => string;
48
50
  * [animate.enter]="m.enter()" [animate.leave]="m.leave()">…</div>
49
51
  * ```
50
52
  */
51
- declare class UiMotion {
52
- /** Motion preset (enter/leave pair). */
53
- preset: _angular_core.InputSignal<UiMotionPreset>;
54
- /** Override the duration for this element (e.g. `"120ms"`). */
55
- motionDuration: _angular_core.InputSignal<string | undefined>;
56
- /** Override the delay before the animation starts (e.g. `"40ms"`). */
57
- motionDelay: _angular_core.InputSignal<string | undefined>;
58
- /** Override both enter and leave easing (CSS timing function). */
59
- motionEasing: _angular_core.InputSignal<string | undefined>;
60
- /** Override only the enter easing (falls back to `motionEasing`). */
61
- motionEnterEasing: _angular_core.InputSignal<string | undefined>;
62
- /** Override only the leave easing (falls back to `motionEasing`). */
63
- motionLeaveEasing: _angular_core.InputSignal<string | undefined>;
64
- /** Override the slide offset for the directional presets (e.g. `"12px"`). */
65
- motionDistance: _angular_core.InputSignal<string | undefined>;
66
- /** Override the start/end scale for the `zoom` preset (e.g. `0.9`). */
67
- motionScale: _angular_core.InputSignal<string | number | undefined>;
68
- /** Disable motion for this element (renders/removes with no animation). */
69
- motionDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
70
- /**
71
- * Play the enter preset through a class the directive applies itself, instead
72
- * of binding `animate.enter` in the template — the preset classes are plain
73
- * CSS animations, they need no framework hook to run once on insertion.
74
- *
75
- * **Mandatory for anything rendered in a CDK overlay** (dropdown panels,
76
- * menus, popovers). `animate.enter` registers the node in Angular's animation
77
- * queue, and that queue is unwound through the injector when the node goes
78
- * away; if the application is torn down while the overlay is still attached,
79
- * the unwind throws (`NG0205`) in the middle of the teardown and everything
80
- * after it is skipped — including the overlay's own `dispose()`. The panel
81
- * then stays in the document, detached from its anchor, in the top-left
82
- * corner of whatever renders next. No queue, no orphan.
83
- *
84
- * Leave it off for content inserted by `@if` / `@for` in a normal view, where
85
- * `animate.enter` also buys the leave animation.
86
- */
87
- motionOnInsert: _angular_core.InputSignalWithTransform<boolean, unknown>;
88
- /** Class to bind to `animate.enter` (empty when disabled → instant appear). */
89
- readonly enter: _angular_core.Signal<string>;
90
- /** Class to bind to `animate.leave` (empty when disabled → instant removal). */
91
- readonly leave: _angular_core.Signal<string>;
92
- /** @ignore Enter class applied by the directive in `motionOnInsert` mode. */
93
- protected readonly _insertClass: _angular_core.Signal<string>;
94
- /** @ignore */
95
- protected readonly _duration: _angular_core.Signal<string | null>;
96
- /** @ignore */
97
- protected readonly _delay: _angular_core.Signal<string | null>;
98
- /** @ignore */
99
- protected readonly _enterEasing: _angular_core.Signal<string | null>;
100
- /** @ignore */
101
- protected readonly _leaveEasing: _angular_core.Signal<string | null>;
102
- /** @ignore */
103
- protected readonly _distance: _angular_core.Signal<string | null>;
104
- /** @ignore */
105
- protected readonly _scale: _angular_core.Signal<string | null>;
106
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiMotion, never>;
107
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiMotion, "[uiMotion]", ["uiMotion"], { "preset": { "alias": "uiMotion"; "required": true; "isSignal": true; }; "motionDuration": { "alias": "motionDuration"; "required": false; "isSignal": true; }; "motionDelay": { "alias": "motionDelay"; "required": false; "isSignal": true; }; "motionEasing": { "alias": "motionEasing"; "required": false; "isSignal": true; }; "motionEnterEasing": { "alias": "motionEnterEasing"; "required": false; "isSignal": true; }; "motionLeaveEasing": { "alias": "motionLeaveEasing"; "required": false; "isSignal": true; }; "motionDistance": { "alias": "motionDistance"; "required": false; "isSignal": true; }; "motionScale": { "alias": "motionScale"; "required": false; "isSignal": true; }; "motionDisabled": { "alias": "motionDisabled"; "required": false; "isSignal": true; }; "motionOnInsert": { "alias": "motionOnInsert"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
108
- }
109
-
110
- export { UI_MOTION_PRESETS, UiMotion, motionEnterClass, motionLeaveClass };
111
- export type { UiMotionPreset };
53
+ export declare class UiMotion {
54
+ /** Motion preset (enter/leave pair). */
55
+ preset: import("@angular/core").InputSignal<UiMotionPreset>;
56
+ /** Override the duration for this element (e.g. `"120ms"`). */
57
+ motionDuration: import("@angular/core").InputSignal<string | undefined>;
58
+ /** Override the delay before the animation starts (e.g. `"40ms"`). */
59
+ motionDelay: import("@angular/core").InputSignal<string | undefined>;
60
+ /** Override both enter and leave easing (CSS timing function). */
61
+ motionEasing: import("@angular/core").InputSignal<string | undefined>;
62
+ /** Override only the enter easing (falls back to `motionEasing`). */
63
+ motionEnterEasing: import("@angular/core").InputSignal<string | undefined>;
64
+ /** Override only the leave easing (falls back to `motionEasing`). */
65
+ motionLeaveEasing: import("@angular/core").InputSignal<string | undefined>;
66
+ /** Override the slide offset for the directional presets (e.g. `"12px"`). */
67
+ motionDistance: import("@angular/core").InputSignal<string | undefined>;
68
+ /** Override the start/end scale for the `zoom` preset (e.g. `0.9`). */
69
+ motionScale: import("@angular/core").InputSignal<string | number | undefined>;
70
+ /** Disable motion for this element (renders/removes with no animation). */
71
+ motionDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
72
+ /**
73
+ * Play the enter preset through a class the directive applies itself, instead
74
+ * of binding `animate.enter` in the template — the preset classes are plain
75
+ * CSS animations, they need no framework hook to run once on insertion.
76
+ *
77
+ * **Mandatory for anything rendered in a CDK overlay** (dropdown panels,
78
+ * menus, popovers). `animate.enter` registers the node in Angular's animation
79
+ * queue, and that queue is unwound through the injector when the node goes
80
+ * away; if the application is torn down while the overlay is still attached,
81
+ * the unwind throws (`NG0205`) in the middle of the teardown and everything
82
+ * after it is skipped — including the overlay's own `dispose()`. The panel
83
+ * then stays in the document, detached from its anchor, in the top-left
84
+ * corner of whatever renders next. No queue, no orphan.
85
+ *
86
+ * Leave it off for content inserted by `@if` / `@for` in a normal view, where
87
+ * `animate.enter` also buys the leave animation.
88
+ */
89
+ motionOnInsert: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
90
+ /** Class to bind to `animate.enter` (empty when disabled → instant appear). */
91
+ readonly enter: import("@angular/core").Signal<string>;
92
+ /** Class to bind to `animate.leave` (empty when disabled → instant removal). */
93
+ readonly leave: import("@angular/core").Signal<string>;
94
+ /** @ignore Enter class applied by the directive in `motionOnInsert` mode. */
95
+ protected readonly _insertClass: import("@angular/core").Signal<string>;
96
+ /** @ignore */
97
+ protected readonly _duration: import("@angular/core").Signal<string | null>;
98
+ /** @ignore */
99
+ protected readonly _delay: import("@angular/core").Signal<string | null>;
100
+ /** @ignore */
101
+ protected readonly _enterEasing: import("@angular/core").Signal<string | null>;
102
+ /** @ignore */
103
+ protected readonly _leaveEasing: import("@angular/core").Signal<string | null>;
104
+ /** @ignore */
105
+ protected readonly _distance: import("@angular/core").Signal<string | null>;
106
+ /** @ignore */
107
+ protected readonly _scale: import("@angular/core").Signal<string | null>;
108
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiMotion, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiMotion, "[uiMotion]", ["uiMotion"], {
110
+ "preset": {
111
+ "alias": "uiMotion";
112
+ "required": true;
113
+ "isSignal": true;
114
+ };
115
+ "motionDuration": {
116
+ "alias": "motionDuration";
117
+ "required": false;
118
+ "isSignal": true;
119
+ };
120
+ "motionDelay": {
121
+ "alias": "motionDelay";
122
+ "required": false;
123
+ "isSignal": true;
124
+ };
125
+ "motionEasing": {
126
+ "alias": "motionEasing";
127
+ "required": false;
128
+ "isSignal": true;
129
+ };
130
+ "motionEnterEasing": {
131
+ "alias": "motionEnterEasing";
132
+ "required": false;
133
+ "isSignal": true;
134
+ };
135
+ "motionLeaveEasing": {
136
+ "alias": "motionLeaveEasing";
137
+ "required": false;
138
+ "isSignal": true;
139
+ };
140
+ "motionDistance": {
141
+ "alias": "motionDistance";
142
+ "required": false;
143
+ "isSignal": true;
144
+ };
145
+ "motionScale": {
146
+ "alias": "motionScale";
147
+ "required": false;
148
+ "isSignal": true;
149
+ };
150
+ "motionDisabled": {
151
+ "alias": "motionDisabled";
152
+ "required": false;
153
+ "isSignal": true;
154
+ };
155
+ "motionOnInsert": {
156
+ "alias": "motionOnInsert";
157
+ "required": false;
158
+ "isSignal": true;
159
+ };
160
+ }, {}, never, never, true, never>;
161
+ }