@4sh/ui-kit 0.16.0 → 0.17.1

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,312 +1,523 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, inject, DOCUMENT, viewChild, signal, computed, isDevMode, effect, ElementRef, Component } from '@angular/core';
3
- import * as i1 from '@angular/cdk/overlay';
4
- import { OverlayModule } from '@angular/cdk/overlay';
5
- import * as i2 from '@angular/cdk/a11y';
6
- import { A11yModule } from '@angular/cdk/a11y';
7
- import { UiMotion } from '@4sh/ui-kit/motion';
8
- import { closeOnNavigation } from '@4sh/ui-kit/overlay';
9
-
10
- /** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DOCUMENT, ElementRef, booleanAttribute, computed, effect, inject, input, isDevMode, output, signal, viewChild } from "@angular/core";
3
+ import * as i1 from "@angular/cdk/overlay";
4
+ import { OverlayModule } from "@angular/cdk/overlay";
5
+ import * as i2 from "@angular/cdk/a11y";
6
+ import { A11yModule } from "@angular/cdk/a11y";
7
+ import { UiMotion } from "@4sh/ui-kit/motion";
8
+ import { closeOnNavigation } from "@4sh/ui-kit/overlay";
11
9
  const ARROW_GAP = 8;
12
- /** Focusable descendants used to move focus into the panel on open. */
13
10
  const FOCUSABLE_SELECTOR = [
14
- 'a[href]',
15
- 'button:not([disabled])',
16
- 'input:not([disabled])',
17
- 'select:not([disabled])',
18
- 'textarea:not([disabled])',
19
- '[tabindex]:not([tabindex="-1"])',
20
- ].join(',');
21
- /** Process-wide counter for unique panel ids (aria-controls wiring). */
11
+ "a[href]",
12
+ "button:not([disabled])",
13
+ "input:not([disabled])",
14
+ "select:not([disabled])",
15
+ "textarea:not([disabled])",
16
+ "[tabindex]:not([tabindex=\"-1\"])"
17
+ ].join(",");
22
18
  let nextId = 0;
23
- /**
24
- * ui-popover — headless floating panel anchored to a trigger.
25
- *
26
- * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)
27
- * rendered in a CDK connected overlay, driven imperatively through the public
28
- * `show` / `hide` / `toggle` methods. The consumer keeps a template reference
29
- * variable on the popover and wires a trigger to it; the panel holds arbitrary
30
- * projected content.
31
- *
32
- * Built for accessibility: `role="dialog"`, non-modal WAI-ARIA pattern by
33
- * default (no `aria-modal`, focus not trapped — see the `modal` input to opt
34
- * into a blocking dialog with `aria-modal` + a permanent focus trap via
35
- * `@angular/cdk/a11y`), the first focusable element (or an element carrying
36
- * `autofocus`) focused on open, `Escape` to close and return focus to the
37
- * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.
38
- *
39
- * Positioning, viewport flipping and scroll re-alignment are delegated to the
40
- * CDK connected overlay (no manual geometry); the arrow follows the effective
41
- * side.
42
- *
43
- * @example
44
- * ```html
45
- * <!-- Basic: the trigger's click event carries the anchor -->
46
- * <ui-button label="Détails" (buttonClick)="op.toggle($event)" />
47
- * <ui-popover #op ariaLabel="Détails du produit">…</ui-popover>
48
- *
49
- * <!-- Controlled: pass the trigger element as the second argument -->
50
- * <span #anchor>Ancre</span>
51
- * <ui-button label="Ouvrir" (buttonClick)="op.show($event, anchor)" />
52
- * <ui-popover #op ariaLabel="Détails">…</ui-popover>
53
- * ```
54
- */
55
- class UiPopover {
56
- constructor() {
57
- /** Hide the panel when a click lands outside it (and outside the trigger). */
58
- this.dismissable = input(true, { ...(ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
59
- /** Preferred side of the trigger; the overlay flips it when space is lacking. */
60
- this.position = input('bottom', /* @ts-ignore */
61
- ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
62
- /** Render the arrow pointing back to the trigger. */
63
- this.showArrow = input(true, { ...(ngDevMode ? { debugName: "showArrow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
64
- /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */
65
- this.modal = input(false, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
66
- /** ARIA role of the panel. */
67
- this.role = input('dialog', /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
69
- /** Accessible name of the panel (recommended). */
70
- this.ariaLabel = input(/* @ts-ignore */
71
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
72
- /** Id of an external element naming the panel. */
73
- this.ariaLabelledBy = input(/* @ts-ignore */
74
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
75
- /** Move focus into the panel when it opens. */
76
- this.focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
77
- /** Close the panel when `Escape` is pressed. */
78
- this.closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
79
- /** Animate the panel entrance (reduced-motion / `data-motion="off"` always win). */
80
- this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
81
- /** Extra class(es) applied to the panel (scoped custom styling). */
82
- this.styleClass = input(/* @ts-ignore */
83
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
84
- /** Emitted after the panel becomes visible. */
85
- this.shown = output();
86
- /** Emitted after the panel is hidden. */
87
- this.hidden = output();
88
- /** @ignore */
89
- this.doc = inject(DOCUMENT);
90
- /** @ignore Panel root (only present while open — queried after the overlay attaches). */
91
- this.panel = viewChild('panel', /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []));
93
- /** @ignore Panel visibility. */
94
- this._open = signal(false, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []));
96
- /** Read-only open state (for host bindings / conditional logic). */
97
- this.visible = this._open.asReadonly();
98
- /** @ignore Element the overlay is anchored to. */
99
- this.origin = signal(null, /* @ts-ignore */
100
- ...(ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []));
101
- /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */
102
- this.side = signal('bottom', /* @ts-ignore */
103
- ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
104
- /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */
105
- this.panelId = `ui-popover-${nextId++}`;
106
- /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */
107
- this.targetEl = null;
108
- // --- Positioning ----------------------------------------------------------
109
- /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
110
- this.positions = computed(() => {
111
- const top = {
112
- originX: 'center',
113
- originY: 'top',
114
- overlayX: 'center',
115
- overlayY: 'bottom',
116
- offsetY: -ARROW_GAP,
117
- };
118
- const bottom = {
119
- originX: 'center',
120
- originY: 'bottom',
121
- overlayX: 'center',
122
- overlayY: 'top',
123
- offsetY: ARROW_GAP,
124
- };
125
- const left = {
126
- originX: 'start',
127
- originY: 'center',
128
- overlayX: 'end',
129
- overlayY: 'center',
130
- offsetX: -ARROW_GAP,
131
- };
132
- const right = {
133
- originX: 'end',
134
- originY: 'center',
135
- overlayX: 'start',
136
- overlayY: 'center',
137
- offsetX: ARROW_GAP,
138
- };
139
- const order = {
140
- top: [top, bottom, right, left],
141
- bottom: [bottom, top, right, left],
142
- left: [left, right, top, bottom],
143
- right: [right, left, top, bottom],
144
- };
145
- return order[this.position()];
146
- }, /* @ts-ignore */
147
- ...(ngDevMode ? [{ debugName: "positions" }] : /* istanbul ignore next */ []));
148
- /** @ignore */
149
- this.panelClasses = computed(() => {
150
- const c = ['ui-popover', `_${this.side()}`];
151
- if (!this.showArrow())
152
- c.push('_no-arrow');
153
- const extra = this.styleClass();
154
- if (extra)
155
- c.push(extra);
156
- return c.join(' ');
157
- }, /* @ts-ignore */
158
- ...(ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []));
159
- // A popover declared in an app shell outlives the routed view: dismiss it
160
- // rather than carrying it over to the next page.
161
- closeOnNavigation(() => this.hide());
162
- // A11y safeguard: an open dialog must have an accessible name.
163
- if (isDevMode()) {
164
- effect(() => {
165
- if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {
166
- console.warn('[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.');
167
- }
168
- });
169
- }
170
- }
171
- // --- Public API ---------------------------------------------------------
172
- /**
173
- * Show the panel anchored to `target` (or the event's `currentTarget`).
174
- * @param event Browser event whose `currentTarget` is used as a fallback anchor.
175
- * @param target Explicit anchor element (kept anchored to it).
176
- */
177
- show(event, target) {
178
- const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);
179
- if (!anchor)
180
- return;
181
- event?.stopPropagation();
182
- this.targetEl = anchor;
183
- this.origin.set(anchor);
184
- if (!this._open()) {
185
- this._open.set(true);
186
- this.applyTriggerAria(anchor);
187
- this.shown.emit();
188
- }
189
- if (this.focusOnShow())
190
- this.queueFocus();
191
- }
192
- /** Hide the panel; returns focus to the trigger when focus was inside it. */
193
- hide() {
194
- if (!this._open())
195
- return;
196
- const panelEl = this.panel()?.nativeElement;
197
- const active = this.doc.activeElement;
198
- const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);
199
- this._open.set(false);
200
- this.clearTriggerAria();
201
- if (focusWasInside)
202
- this.targetEl?.focus();
203
- this.hidden.emit();
204
- }
205
- /** Toggle the panel, anchoring it like {@link show} when it opens. */
206
- toggle(event, target) {
207
- this._open() ? this.hide() : this.show(event, target);
208
- }
209
- /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */
210
- onPositionChange(change) {
211
- // The trigger can be gone while the popover lives on (its page was
212
- // destroyed): re-positioning on a detached anchor measures 0×0 and would
213
- // snap the panel to the top-left corner.
214
- if (this.targetEl && !this.targetEl.isConnected) {
215
- this.hide();
216
- return;
217
- }
218
- const pair = change.connectionPair;
219
- if (pair.overlayY === 'bottom')
220
- this.side.set('top');
221
- else if (pair.overlayY === 'top' && pair.originY === 'bottom')
222
- this.side.set('bottom');
223
- else if (pair.overlayX === 'end')
224
- this.side.set('left');
225
- else if (pair.overlayX === 'start' && pair.originX === 'end')
226
- this.side.set('right');
227
- else
228
- this.side.set(this.position());
229
- }
230
- // --- Interactions ---------------------------------------------------------
231
- /** @ignore A click outside the panel closes it — unless it lands on the trigger,
232
- * whose own handler owns the toggle (avoids close-then-reopen races). */
233
- onOutsideClick(event) {
234
- if (!this.dismissable())
235
- return;
236
- const target = event.target;
237
- if (target instanceof Node && this.targetEl?.contains(target))
238
- return;
239
- this.hide();
240
- }
241
- /** @ignore */
242
- onEscape(event) {
243
- if (!this.closeOnEscape())
244
- return;
245
- event.stopPropagation();
246
- this.hide();
247
- }
248
- // --- Internals ------------------------------------------------------------
249
- /** @ignore */
250
- resolveTarget(target) {
251
- if (!target)
252
- return null;
253
- return target instanceof ElementRef ? target.nativeElement : target;
254
- }
255
- /** @ignore */
256
- resolveEventTarget(event) {
257
- const el = event?.currentTarget ?? event?.target;
258
- return el instanceof HTMLElement ? el : null;
259
- }
260
- /** @ignore Reflect the open relationship on the trigger. */
261
- applyTriggerAria(el) {
262
- el.setAttribute('aria-expanded', 'true');
263
- el.setAttribute('aria-controls', this.panelId);
264
- }
265
- /** @ignore */
266
- clearTriggerAria() {
267
- const el = this.targetEl;
268
- if (!el)
269
- return;
270
- el.setAttribute('aria-expanded', 'false');
271
- el.removeAttribute('aria-controls');
272
- }
273
- /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.
274
- * The overlay attaches after change detection: retry over macrotasks
275
- * (NOT rAF — it never fires in throttled/background tabs). */
276
- queueFocus(attempts = 20) {
277
- setTimeout(() => {
278
- const panelEl = this.panel()?.nativeElement;
279
- if (panelEl)
280
- this.focusFirst(panelEl);
281
- else if (attempts > 0)
282
- this.queueFocus(attempts - 1);
283
- });
284
- }
285
- /** @ignore */
286
- focusFirst(panelEl) {
287
- const auto = panelEl.querySelector('[autofocus]');
288
- if (auto) {
289
- auto.focus();
290
- return;
291
- }
292
- const focusable = panelEl.querySelector(FOCUSABLE_SELECTOR);
293
- (focusable ?? panelEl).focus();
294
- }
295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
296
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiPopover, isStandalone: true, selector: "ui-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shown: "shown", hidden: "hidden" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
297
- }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiPopover, decorators: [{
299
- type: Component,
300
- args: [{ selector: 'ui-popover', imports: [OverlayModule, A11yModule, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
301
- }], ctorParameters: () => [], propDecorators: { dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
302
-
303
- /*
304
- * Public API Surface of ui-kit/ui-popover
305
- */
306
-
307
- /**
308
- * Generated bundle index. Do not edit.
309
- */
310
-
19
+ var UiPopover = class UiPopover {
20
+ constructor() {
21
+ this.dismissable = input(true, {
22
+ ...ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ this.position = input("bottom", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
26
+ this.showArrow = input(true, {
27
+ ...ngDevMode ? { debugName: "showArrow" } : /* istanbul ignore next */ {},
28
+ transform: booleanAttribute
29
+ });
30
+ this.modal = input(false, {
31
+ ...ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {},
32
+ transform: booleanAttribute
33
+ });
34
+ this.role = input("dialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
35
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
36
+ this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
37
+ this.focusOnShow = input(true, {
38
+ ...ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {},
39
+ transform: booleanAttribute
40
+ });
41
+ this.closeOnEscape = input(true, {
42
+ ...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
43
+ transform: booleanAttribute
44
+ });
45
+ this.motion = input(true, {
46
+ ...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
47
+ transform: booleanAttribute
48
+ });
49
+ this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
50
+ this.shown = output();
51
+ this.hidden = output();
52
+ this.doc = inject(DOCUMENT);
53
+ this.panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
54
+ this._open = signal(false, ...ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []);
55
+ this.visible = this._open.asReadonly();
56
+ this.origin = signal(null, ...ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []);
57
+ this.side = signal("bottom", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
58
+ this.panelId = `ui-popover-${nextId++}`;
59
+ this.targetEl = null;
60
+ this.positions = computed(() => {
61
+ const top = {
62
+ originX: "center",
63
+ originY: "top",
64
+ overlayX: "center",
65
+ overlayY: "bottom",
66
+ offsetY: -8
67
+ };
68
+ const bottom = {
69
+ originX: "center",
70
+ originY: "bottom",
71
+ overlayX: "center",
72
+ overlayY: "top",
73
+ offsetY: ARROW_GAP
74
+ };
75
+ const left = {
76
+ originX: "start",
77
+ originY: "center",
78
+ overlayX: "end",
79
+ overlayY: "center",
80
+ offsetX: -8
81
+ };
82
+ const right = {
83
+ originX: "end",
84
+ originY: "center",
85
+ overlayX: "start",
86
+ overlayY: "center",
87
+ offsetX: ARROW_GAP
88
+ };
89
+ return {
90
+ top: [
91
+ top,
92
+ bottom,
93
+ right,
94
+ left
95
+ ],
96
+ bottom: [
97
+ bottom,
98
+ top,
99
+ right,
100
+ left
101
+ ],
102
+ left: [
103
+ left,
104
+ right,
105
+ top,
106
+ bottom
107
+ ],
108
+ right: [
109
+ right,
110
+ left,
111
+ top,
112
+ bottom
113
+ ]
114
+ }[this.position()];
115
+ }, ...ngDevMode ? [{ debugName: "positions" }] : /* istanbul ignore next */ []);
116
+ this.panelClasses = computed(() => {
117
+ const c = ["ui-popover", `_${this.side()}`];
118
+ if (!this.showArrow()) c.push("_no-arrow");
119
+ const extra = this.styleClass();
120
+ if (extra) c.push(extra);
121
+ return c.join(" ");
122
+ }, ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
123
+ closeOnNavigation(() => this.hide());
124
+ if (isDevMode()) effect(() => {
125
+ if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) console.warn("[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.");
126
+ });
127
+ }
128
+ show(event, target) {
129
+ const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);
130
+ if (!anchor) return;
131
+ event?.stopPropagation();
132
+ this.targetEl = anchor;
133
+ this.origin.set(anchor);
134
+ if (!this._open()) {
135
+ this._open.set(true);
136
+ this.applyTriggerAria(anchor);
137
+ this.shown.emit();
138
+ }
139
+ if (this.focusOnShow()) this.queueFocus();
140
+ }
141
+ hide() {
142
+ if (!this._open()) return;
143
+ const panelEl = this.panel()?.nativeElement;
144
+ const active = this.doc.activeElement;
145
+ const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);
146
+ this._open.set(false);
147
+ this.clearTriggerAria();
148
+ if (focusWasInside) this.targetEl?.focus();
149
+ this.hidden.emit();
150
+ }
151
+ toggle(event, target) {
152
+ this._open() ? this.hide() : this.show(event, target);
153
+ }
154
+ onPositionChange(change) {
155
+ if (this.targetEl && !this.targetEl.isConnected) {
156
+ this.hide();
157
+ return;
158
+ }
159
+ const pair = change.connectionPair;
160
+ if (pair.overlayY === "bottom") this.side.set("top");
161
+ else if (pair.overlayY === "top" && pair.originY === "bottom") this.side.set("bottom");
162
+ else if (pair.overlayX === "end") this.side.set("left");
163
+ else if (pair.overlayX === "start" && pair.originX === "end") this.side.set("right");
164
+ else this.side.set(this.position());
165
+ }
166
+ onOutsideClick(event) {
167
+ if (!this.dismissable()) return;
168
+ const target = event.target;
169
+ if (target instanceof Node && this.targetEl?.contains(target)) return;
170
+ this.hide();
171
+ }
172
+ onEscape(event) {
173
+ if (!this.closeOnEscape()) return;
174
+ event.stopPropagation();
175
+ this.hide();
176
+ }
177
+ resolveTarget(target) {
178
+ if (!target) return null;
179
+ return target instanceof ElementRef ? target.nativeElement : target;
180
+ }
181
+ resolveEventTarget(event) {
182
+ const el = event?.currentTarget ?? event?.target;
183
+ return el instanceof HTMLElement ? el : null;
184
+ }
185
+ applyTriggerAria(el) {
186
+ el.setAttribute("aria-expanded", "true");
187
+ el.setAttribute("aria-controls", this.panelId);
188
+ }
189
+ clearTriggerAria() {
190
+ const el = this.targetEl;
191
+ if (!el) return;
192
+ el.setAttribute("aria-expanded", "false");
193
+ el.removeAttribute("aria-controls");
194
+ }
195
+ queueFocus(attempts = 20) {
196
+ setTimeout(() => {
197
+ const panelEl = this.panel()?.nativeElement;
198
+ if (panelEl) this.focusFirst(panelEl);
199
+ else if (attempts > 0) this.queueFocus(attempts - 1);
200
+ });
201
+ }
202
+ focusFirst(panelEl) {
203
+ const auto = panelEl.querySelector("[autofocus]");
204
+ if (auto) {
205
+ auto.focus();
206
+ return;
207
+ }
208
+ (panelEl.querySelector(FOCUSABLE_SELECTOR) ?? panelEl).focus();
209
+ }
210
+ static {
211
+ this.ɵfac = i0.ɵɵngDeclareFactory({
212
+ minVersion: "12.0.0",
213
+ version: "22.3.0",
214
+ ngImport: i0,
215
+ type: UiPopover,
216
+ deps: [],
217
+ target: i0.ɵɵFactoryTarget.Component
218
+ });
219
+ }
220
+ static {
221
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
222
+ minVersion: "17.0.0",
223
+ version: "22.3.0",
224
+ type: UiPopover,
225
+ isStandalone: true,
226
+ selector: "ui-popover",
227
+ inputs: {
228
+ dismissable: {
229
+ classPropertyName: "dismissable",
230
+ publicName: "dismissable",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
235
+ position: {
236
+ classPropertyName: "position",
237
+ publicName: "position",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ },
242
+ showArrow: {
243
+ classPropertyName: "showArrow",
244
+ publicName: "showArrow",
245
+ isSignal: true,
246
+ isRequired: false,
247
+ transformFunction: null
248
+ },
249
+ modal: {
250
+ classPropertyName: "modal",
251
+ publicName: "modal",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ },
256
+ role: {
257
+ classPropertyName: "role",
258
+ publicName: "role",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ },
263
+ ariaLabel: {
264
+ classPropertyName: "ariaLabel",
265
+ publicName: "ariaLabel",
266
+ isSignal: true,
267
+ isRequired: false,
268
+ transformFunction: null
269
+ },
270
+ ariaLabelledBy: {
271
+ classPropertyName: "ariaLabelledBy",
272
+ publicName: "ariaLabelledBy",
273
+ isSignal: true,
274
+ isRequired: false,
275
+ transformFunction: null
276
+ },
277
+ focusOnShow: {
278
+ classPropertyName: "focusOnShow",
279
+ publicName: "focusOnShow",
280
+ isSignal: true,
281
+ isRequired: false,
282
+ transformFunction: null
283
+ },
284
+ closeOnEscape: {
285
+ classPropertyName: "closeOnEscape",
286
+ publicName: "closeOnEscape",
287
+ isSignal: true,
288
+ isRequired: false,
289
+ transformFunction: null
290
+ },
291
+ motion: {
292
+ classPropertyName: "motion",
293
+ publicName: "motion",
294
+ isSignal: true,
295
+ isRequired: false,
296
+ transformFunction: null
297
+ },
298
+ styleClass: {
299
+ classPropertyName: "styleClass",
300
+ publicName: "styleClass",
301
+ isSignal: true,
302
+ isRequired: false,
303
+ transformFunction: null
304
+ }
305
+ },
306
+ outputs: {
307
+ shown: "shown",
308
+ hidden: "hidden"
309
+ },
310
+ viewQueries: [{
311
+ propertyName: "panel",
312
+ first: true,
313
+ predicate: ["panel"],
314
+ descendants: true,
315
+ isSignal: true
316
+ }],
317
+ ngImport: i0,
318
+ template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n",
319
+ styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"],
320
+ dependencies: [
321
+ {
322
+ kind: "ngmodule",
323
+ type: OverlayModule
324
+ },
325
+ {
326
+ kind: "directive",
327
+ type: i1.CdkConnectedOverlay,
328
+ selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
329
+ inputs: [
330
+ "cdkConnectedOverlayOrigin",
331
+ "cdkConnectedOverlayPositions",
332
+ "cdkConnectedOverlayPositionStrategy",
333
+ "cdkConnectedOverlayOffsetX",
334
+ "cdkConnectedOverlayOffsetY",
335
+ "cdkConnectedOverlayWidth",
336
+ "cdkConnectedOverlayHeight",
337
+ "cdkConnectedOverlayMinWidth",
338
+ "cdkConnectedOverlayMinHeight",
339
+ "cdkConnectedOverlayBackdropClass",
340
+ "cdkConnectedOverlayPanelClass",
341
+ "cdkConnectedOverlayViewportMargin",
342
+ "cdkConnectedOverlayScrollStrategy",
343
+ "cdkConnectedOverlayOpen",
344
+ "cdkConnectedOverlayDisableClose",
345
+ "cdkConnectedOverlayTransformOriginOn",
346
+ "cdkConnectedOverlayHasBackdrop",
347
+ "cdkConnectedOverlayLockPosition",
348
+ "cdkConnectedOverlayFlexibleDimensions",
349
+ "cdkConnectedOverlayGrowAfterOpen",
350
+ "cdkConnectedOverlayPush",
351
+ "cdkConnectedOverlayDisposeOnNavigation",
352
+ "cdkConnectedOverlayUsePopover",
353
+ "cdkConnectedOverlayMatchWidth",
354
+ "cdkConnectedOverlay"
355
+ ],
356
+ outputs: [
357
+ "backdropClick",
358
+ "positionChange",
359
+ "attach",
360
+ "detach",
361
+ "overlayKeydown",
362
+ "overlayOutsideClick"
363
+ ],
364
+ exportAs: ["cdkConnectedOverlay"]
365
+ },
366
+ {
367
+ kind: "ngmodule",
368
+ type: A11yModule
369
+ },
370
+ {
371
+ kind: "directive",
372
+ type: i2.CdkTrapFocus,
373
+ selector: "[cdkTrapFocus]",
374
+ inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
375
+ exportAs: ["cdkTrapFocus"]
376
+ },
377
+ {
378
+ kind: "directive",
379
+ type: UiMotion,
380
+ selector: "[uiMotion]",
381
+ inputs: [
382
+ "uiMotion",
383
+ "motionDuration",
384
+ "motionDelay",
385
+ "motionEasing",
386
+ "motionEnterEasing",
387
+ "motionLeaveEasing",
388
+ "motionDistance",
389
+ "motionScale",
390
+ "motionDisabled",
391
+ "motionOnInsert"
392
+ ],
393
+ exportAs: ["uiMotion"]
394
+ }
395
+ ]
396
+ });
397
+ }
398
+ };
399
+ i0.ɵɵngDeclareClassMetadata({
400
+ minVersion: "12.0.0",
401
+ version: "22.3.0",
402
+ ngImport: i0,
403
+ type: UiPopover,
404
+ decorators: [{
405
+ type: Component,
406
+ args: [{
407
+ selector: "ui-popover",
408
+ imports: [
409
+ OverlayModule,
410
+ A11yModule,
411
+ UiMotion
412
+ ],
413
+ template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n",
414
+ styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"]
415
+ }]
416
+ }],
417
+ ctorParameters: () => [],
418
+ propDecorators: {
419
+ dismissable: [{
420
+ type: i0.Input,
421
+ args: [{
422
+ isSignal: true,
423
+ alias: "dismissable",
424
+ required: false
425
+ }]
426
+ }],
427
+ position: [{
428
+ type: i0.Input,
429
+ args: [{
430
+ isSignal: true,
431
+ alias: "position",
432
+ required: false
433
+ }]
434
+ }],
435
+ showArrow: [{
436
+ type: i0.Input,
437
+ args: [{
438
+ isSignal: true,
439
+ alias: "showArrow",
440
+ required: false
441
+ }]
442
+ }],
443
+ modal: [{
444
+ type: i0.Input,
445
+ args: [{
446
+ isSignal: true,
447
+ alias: "modal",
448
+ required: false
449
+ }]
450
+ }],
451
+ role: [{
452
+ type: i0.Input,
453
+ args: [{
454
+ isSignal: true,
455
+ alias: "role",
456
+ required: false
457
+ }]
458
+ }],
459
+ ariaLabel: [{
460
+ type: i0.Input,
461
+ args: [{
462
+ isSignal: true,
463
+ alias: "ariaLabel",
464
+ required: false
465
+ }]
466
+ }],
467
+ ariaLabelledBy: [{
468
+ type: i0.Input,
469
+ args: [{
470
+ isSignal: true,
471
+ alias: "ariaLabelledBy",
472
+ required: false
473
+ }]
474
+ }],
475
+ focusOnShow: [{
476
+ type: i0.Input,
477
+ args: [{
478
+ isSignal: true,
479
+ alias: "focusOnShow",
480
+ required: false
481
+ }]
482
+ }],
483
+ closeOnEscape: [{
484
+ type: i0.Input,
485
+ args: [{
486
+ isSignal: true,
487
+ alias: "closeOnEscape",
488
+ required: false
489
+ }]
490
+ }],
491
+ motion: [{
492
+ type: i0.Input,
493
+ args: [{
494
+ isSignal: true,
495
+ alias: "motion",
496
+ required: false
497
+ }]
498
+ }],
499
+ styleClass: [{
500
+ type: i0.Input,
501
+ args: [{
502
+ isSignal: true,
503
+ alias: "styleClass",
504
+ required: false
505
+ }]
506
+ }],
507
+ shown: [{
508
+ type: i0.Output,
509
+ args: ["shown"]
510
+ }],
511
+ hidden: [{
512
+ type: i0.Output,
513
+ args: ["hidden"]
514
+ }],
515
+ panel: [{
516
+ type: i0.ViewChild,
517
+ args: ["panel", { isSignal: true }]
518
+ }]
519
+ }
520
+ });
311
521
  export { UiPopover };
312
- //# sourceMappingURL=4sh-ui-kit-layout-ui-popover.mjs.map
522
+
523
+ //# sourceMappingURL=4sh-ui-kit-layout-ui-popover.mjs.map