@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,605 +1,1020 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, model, input, booleanAttribute, numberAttribute, output, contentChild, viewChild, inject, Injector, PLATFORM_ID, signal, computed, effect, untracked, isDevMode, DestroyRef, afterNextRender, Component } from '@angular/core';
3
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
4
- import * as i1 from '@angular/cdk/a11y';
5
- import { A11yModule } from '@angular/cdk/a11y';
6
- import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
7
- import { lockBodyScroll, unlockBodyScroll } from '@4sh/ui-kit/overlay';
8
-
9
- /** The preset detents, for the runtime discrimination `height` needs. */
10
- const HEIGHT_PRESETS = ['auto', 'half', 'full'];
11
- /** Base stacking level, mirroring `$sheet-z-index` in the SCSS. */
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, Directive, Injector, PLATFORM_ID, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, isDevMode, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
3
+ import { DOCUMENT, isPlatformBrowser } from "@angular/common";
4
+ import * as i1 from "@angular/cdk/a11y";
5
+ import { A11yModule } from "@angular/cdk/a11y";
6
+ import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
7
+ import { lockBodyScroll, unlockBodyScroll } from "@4sh/ui-kit/overlay";
8
+ const HEIGHT_PRESETS = [
9
+ "auto",
10
+ "half",
11
+ "full"
12
+ ];
12
13
  const SHEET_BASE_Z_INDEX = 1100;
13
- /** Fallback settle delay when the transition duration cannot be read (ms). */
14
14
  const SETTLE_FALLBACK_MS = 320;
15
- /** Margin added to the measured duration before the settle fallback fires (ms). */
16
15
  const SETTLE_MARGIN_MS = 60;
17
- /** Interactive descendants that must keep their own gesture instead of starting a drag. */
18
- const INTERACTIVE = 'button, a[href], input, select, textarea, [role="button"], [contenteditable]';
19
- /** The handle itself is interactive in snapping mode, yet it IS the grab affordance. */
20
- const HANDLE_CLASS = 'ui-bottom-sheet-handle';
21
- /** Process-wide sequence so `autoZIndex` layers a later sheet above earlier ones. */
16
+ const INTERACTIVE = "button, a[href], input, select, textarea, [role=\"button\"], [contenteditable]";
17
+ const HANDLE_CLASS = "ui-bottom-sheet-handle";
22
18
  let zIndexSeq = 0;
23
- /** Process-wide unique id source (aria wiring). */
24
19
  let nextUid = 0;
25
- /**
26
- * Slot markers routing projected content to a region. No behaviour: the sheet
27
- * only queries their presence. Each accepts the kebab attribute and the kit's
28
- * camelCase alias (`uiBottomSheetHeader`).
29
- */
30
- /** Header region: title and/or close button. Stays pinned above the scrolling body. */
31
- class UiBottomSheetHeader {
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiBottomSheetHeader, isStandalone: true, selector: "[uiBottomSheetHeader], [ui-bottom-sheet-header]", ngImport: i0 }); }
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetHeader, decorators: [{
36
- type: Directive,
37
- args: [{ selector: '[uiBottomSheetHeader], [ui-bottom-sheet-header]' }]
38
- }] });
39
- /** Main region. Scrolls natively when the content overflows the sheet. */
40
- class UiBottomSheetContent {
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiBottomSheetContent, isStandalone: true, selector: "[uiBottomSheetContent], [ui-bottom-sheet-content]", ngImport: i0 }); }
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetContent, decorators: [{
45
- type: Directive,
46
- args: [{ selector: '[uiBottomSheetContent], [ui-bottom-sheet-content]' }]
47
- }] });
48
- /** Footer region: actions. Stays pinned below the scrolling body. */
49
- class UiBottomSheetFooter {
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
51
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiBottomSheetFooter, isStandalone: true, selector: "[uiBottomSheetFooter], [ui-bottom-sheet-footer]", ngImport: i0 }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheetFooter, decorators: [{
54
- type: Directive,
55
- args: [{ selector: '[uiBottomSheetFooter], [ui-bottom-sheet-footer]' }]
56
- }] });
57
- /**
58
- * ui-bottom-sheet: headless, mobile-first panel that slides up from the bottom
59
- * edge, driven by the two-way `visible` model.
60
- *
61
- * Enter/leave are CSS transitions on `transform`, which is what lets the
62
- * drag-to-close gesture flow straight into the closing animation. Content goes
63
- * into three projected regions laid out as a flex column, so header and footer
64
- * stay put while the body scrolls. See the MDX page for the full contract.
65
- *
66
- * @example
67
- * ```html
68
- * <ui-button label="Rechercher" (buttonClick)="open.set(true)" />
69
- * <ui-bottom-sheet [(visible)]="open" height="half" autoFocusElement="#q">
70
- * <h2 ui-bottom-sheet-header>Recherche</h2>
71
- * <div ui-bottom-sheet-content><ui-input id="q" /></div>
72
- * </ui-bottom-sheet>
73
- * ```
74
- */
75
- class UiBottomSheet {
76
- constructor() {
77
- /** Open state (two-way). Toggling it drives the enter/leave animation. */
78
- this.visible = model(false, /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
80
- /**
81
- * Opening height: `'auto'` (hugs the content, capped), `'half'` (half the
82
- * screen), `'full'` (the whole screen) or any CSS length (`'70vh'`, `'400px'`).
83
- */
84
- this.height = input('auto', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
86
- /** Show the backdrop (dim + capture), which is also what makes the sheet modal. */
87
- this.hasBackdrop = input(true, { ...(ngDevMode ? { debugName: "hasBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
88
- /** Close when the backdrop is clicked. */
89
- this.closeOnOverlayClick = input(true, { ...(ngDevMode ? { debugName: "closeOnOverlayClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
90
- /** Close the sheet when `Escape` is pressed. */
91
- this.closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
92
- /** Block background scroll while the sheet is open. */
93
- this.blockScroll = input(true, { ...(ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
94
- /** Close the sheet by dragging it down (touch, mouse, pen). */
95
- this.enableDragToClose = input(true, { ...(ngDevMode ? { debugName: "enableDragToClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
96
- /** Distance to drag before the release closes the sheet (px). */
97
- this.dragThreshold = input(96, { ...(ngDevMode ? { debugName: "dragThreshold" } : /* istanbul ignore next */ {}), transform: numberAttribute });
98
- /**
99
- * Let the user drag a `'half'` sheet up to `'full'` (and back down again).
100
- * The detent change is the only motion that touches `height`.
101
- */
102
- this.enableSnapping = input(false, { ...(ngDevMode ? { debugName: "enableSnapping" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
103
- /** Show the grab handle at the top of the sheet. */
104
- this.showHandle = input(true, { ...(ngDevMode ? { debugName: "showHandle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
105
- /** Trap Tab focus inside the sheet while it is open. */
106
- this.trapFocus = input(true, { ...(ngDevMode ? { debugName: "trapFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
107
- /** Move focus into the sheet when it opens (restored on close). */
108
- this.focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
109
- /** CSS selector of the element to focus on opening (e.g. `'#searchInput'`). */
110
- this.autoFocusElement = input(null, /* @ts-ignore */
111
- ...(ngDevMode ? [{ debugName: "autoFocusElement" }] : /* istanbul ignore next */ []));
112
- /** Simple header text (ignored when a header slot is projected). */
113
- this.header = input(/* @ts-ignore */
114
- ...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
115
- /** Show the close (×) button in the header region. Off by default, as in the design. */
116
- this.closable = input(false, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
117
- /** FontAwesome name of the close button icon. */
118
- this.closeIcon = input('xmark', /* @ts-ignore */
119
- ...(ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []));
120
- /** Accessible name of the close button. */
121
- this.closeAriaLabel = input('Fermer', /* @ts-ignore */
122
- ...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
123
- /** Accessible name of the handle when it is operable (`enableSnapping`). */
124
- this.handleAriaLabel = input('Redimensionner le panneau', /* @ts-ignore */
125
- ...(ngDevMode ? [{ debugName: "handleAriaLabel" }] : /* istanbul ignore next */ []));
126
- /** ARIA role of the sheet surface. */
127
- this.role = input('dialog', /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
129
- /** Accessible name when there is no visible header to reference. */
130
- this.ariaLabel = input(/* @ts-ignore */
131
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
132
- /** Id of an external element naming the sheet (overrides the header title). */
133
- this.ariaLabelledBy = input(/* @ts-ignore */
134
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
135
- /** Reserve the OS inset at the bottom of the screen (home indicator, gesture bar). */
136
- this.safeArea = input(true, { ...(ngDevMode ? { debugName: "safeArea" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
137
- /**
138
- * Scope the sheet to the nearest positioned ancestor (`position: absolute`)
139
- * instead of the viewport, and skip the body scroll lock. Detents become
140
- * fractions of that container.
141
- */
142
- this.contained = input(false, { ...(ngDevMode ? { debugName: "contained" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
143
- /** Disable the open/close animation for this sheet. */
144
- this.motionDisabled = input(false, { ...(ngDevMode ? { debugName: "motionDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
145
- /** Extra class(es) merged onto the sheet surface. */
146
- this.styleClass = input(/* @ts-ignore */
147
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
148
- /** Layer this sheet above earlier overlays automatically. */
149
- this.autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
150
- /** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */
151
- this.baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
152
- /** Emitted at the end of the opening animation. */
153
- this.opened = output();
154
- /** Emitted at the end of the closing animation. */
155
- this.closed = output();
156
- /** @ignore */
157
- this.headerSlot = contentChild(UiBottomSheetHeader, /* @ts-ignore */
158
- ...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
159
- /** @ignore */
160
- this.contentSlot = contentChild(UiBottomSheetContent, /* @ts-ignore */
161
- ...(ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []));
162
- /** @ignore */
163
- this.footerSlot = contentChild(UiBottomSheetFooter, /* @ts-ignore */
164
- ...(ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []));
165
- /** @ignore */
166
- this.positionerRef = viewChild('positioner', /* @ts-ignore */
167
- ...(ngDevMode ? [{ debugName: "positionerRef" }] : /* istanbul ignore next */ []));
168
- /** @ignore */
169
- this.panelRef = viewChild('panel', /* @ts-ignore */
170
- ...(ngDevMode ? [{ debugName: "panelRef" }] : /* istanbul ignore next */ []));
171
- /** @ignore */
172
- this.document = inject(DOCUMENT);
173
- /** @ignore */
174
- this.injector = inject(Injector);
175
- /** @ignore */
176
- this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
177
- /** @ignore Per-instance layering rank for `autoZIndex`. */
178
- this.zSeq = ++zIndexSeq;
179
- /** @ignore */
180
- this.uid = `ui-bottom-sheet-${nextUid++}`;
181
- /** @ignore */
182
- this.titleId = `${this.uid}-title`;
183
- // --- Internal state --------------------------------------------------
184
- // `mounted` keeps the node in the DOM while the leave transition plays;
185
- // `atRest` is the position the panel transitions towards.
186
- /** @ignore */
187
- this.mounted = signal(false, /* @ts-ignore */
188
- ...(ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []));
189
- /** @ignore */
190
- this.atRest = signal(false, /* @ts-ignore */
191
- ...(ngDevMode ? [{ debugName: "atRest" }] : /* istanbul ignore next */ []));
192
- /** @ignore Live drag distance, downwards only (px). */
193
- this.dragOffset = signal(0, /* @ts-ignore */
194
- ...(ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []));
195
- /** @ignore Live height while dragging a snapping sheet upwards (px). */
196
- this.dragHeight = signal(null, /* @ts-ignore */
197
- ...(ngDevMode ? [{ debugName: "dragHeight" }] : /* istanbul ignore next */ []));
198
- /** @ignore */
199
- this.dragging = signal(false, /* @ts-ignore */
200
- ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
201
- /** @ignore The `'half'` sheet is currently snapped to `'full'`. */
202
- this.snapped = signal(false, /* @ts-ignore */
203
- ...(ngDevMode ? [{ debugName: "snapped" }] : /* istanbul ignore next */ []));
204
- /** @ignore */
205
- this.locked = false;
206
- /** @ignore Transition currently awaited, if any. */
207
- this.pending = null;
208
- /** @ignore */
209
- this.settleTimer = null;
210
- /** @ignore */
211
- this.focusTimer = null;
212
- /** @ignore */
213
- this.dragPointerId = null;
214
- /** @ignore */
215
- this.dragStartY = 0;
216
- /** @ignore Panel height when the drag started (px), for the upward clamp. */
217
- this.dragStartHeight = 0;
218
- /** @ignore Effective stacking level. */
219
- this.zIndex = computed(() => {
220
- const base = this.baseZIndex();
221
- if (this.autoZIndex())
222
- return SHEET_BASE_Z_INDEX + base + this.zSeq;
223
- return base > 0 ? base : SHEET_BASE_Z_INDEX;
224
- }, /* @ts-ignore */
225
- ...(ngDevMode ? [{ debugName: "zIndex" }] : /* istanbul ignore next */ []));
226
- /** @ignore The `'half'` detent can grow to `'full'` on a drag. */
227
- this.canSnap = computed(() => this.enableSnapping() && this.height() === 'half', /* @ts-ignore */
228
- ...(ngDevMode ? [{ debugName: "canSnap" }] : /* istanbul ignore next */ []));
229
- /** @ignore A gesture on the drag area does something. */
230
- this.dragEnabled = computed(() => this.enableDragToClose() || this.canSnap(), /* @ts-ignore */
231
- ...(ngDevMode ? [{ debugName: "dragEnabled" }] : /* istanbul ignore next */ []));
232
- /** @ignore Detent in force, once snapping is taken into account. */
233
- this.effectiveHeight = computed(() => this.canSnap() && this.snapped() ? 'full' : this.height(), /* @ts-ignore */
234
- ...(ngDevMode ? [{ debugName: "effectiveHeight" }] : /* istanbul ignore next */ []));
235
- /** @ignore Preset detent, or `null` for a free-form CSS length. */
236
- this.heightPreset = computed(() => {
237
- const h = this.effectiveHeight();
238
- return HEIGHT_PRESETS.includes(h) ? h : null;
239
- }, /* @ts-ignore */
240
- ...(ngDevMode ? [{ debugName: "heightPreset" }] : /* istanbul ignore next */ []));
241
- /**
242
- * @ignore Height written inline: the live drag height, else the free-form
243
- * value. A preset resolves through its class so the SCSS hook stays in charge.
244
- */
245
- this.inlineHeight = computed(() => {
246
- const drag = this.dragHeight();
247
- if (drag !== null)
248
- return `${drag}px`;
249
- return this.heightPreset() ? null : this.effectiveHeight();
250
- }, /* @ts-ignore */
251
- ...(ngDevMode ? [{ debugName: "inlineHeight" }] : /* istanbul ignore next */ []));
252
- /** @ignore Sheet position: off-screen, dragged, or at rest. */
253
- this.panelTransform = computed(() => {
254
- if (!this.atRest())
255
- return 'translateY(100%)';
256
- const offset = this.dragOffset();
257
- return offset > 0 ? `translateY(${offset}px)` : 'translateY(0)';
258
- }, /* @ts-ignore */
259
- ...(ngDevMode ? [{ debugName: "panelTransform" }] : /* istanbul ignore next */ []));
260
- /** @ignore */
261
- this.panelClasses = computed(() => {
262
- const classes = ['ui-bottom-sheet'];
263
- const preset = this.heightPreset();
264
- if (preset)
265
- classes.push(`_${preset}`);
266
- if (this.contained())
267
- classes.push('_contained');
268
- if (this.safeArea() && !this.contained())
269
- classes.push('_safe-area');
270
- if (this.dragging())
271
- classes.push('_dragging');
272
- if (this.motionDisabled())
273
- classes.push('_no-motion');
274
- const extra = this.styleClass();
275
- if (extra)
276
- classes.push(extra);
277
- return classes.join(' ');
278
- }, /* @ts-ignore */
279
- ...(ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []));
280
- /** @ignore A title is available, from the slot or the string shorthand. */
281
- this.hasTitle = computed(() => !!this.headerSlot() || !!this.header(), /* @ts-ignore */
282
- ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
283
- /** @ignore The header region is rendered at all. */
284
- this.hasHeaderRegion = computed(() => this.hasTitle() || this.closable(), /* @ts-ignore */
285
- ...(ngDevMode ? [{ debugName: "hasHeaderRegion" }] : /* istanbul ignore next */ []));
286
- /** @ignore The `header` string is the title source (a slot takes precedence). */
287
- this.showHeaderString = computed(() => !this.headerSlot() && !!this.header(), /* @ts-ignore */
288
- ...(ngDevMode ? [{ debugName: "showHeaderString" }] : /* istanbul ignore next */ []));
289
- /** @ignore Id of the element naming the sheet (header title, or an external id). */
290
- this.labelledBy = computed(() => this.ariaLabelledBy() ?? (this.hasTitle() ? this.titleId : null), /* @ts-ignore */
291
- ...(ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []));
292
- /** @ignore Fallback accessible name when nothing is referenced. */
293
- this.resolvedAriaLabel = computed(() => this.labelledBy() ? null : this.ariaLabel(), /* @ts-ignore */
294
- ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
295
- let wasVisible = false;
296
- effect(() => {
297
- const v = this.visible();
298
- untracked(() => {
299
- if (v && !wasVisible) {
300
- wasVisible = true;
301
- this.beginOpen();
302
- }
303
- else if (!v && wasVisible) {
304
- wasVisible = false;
305
- this.beginClose();
306
- }
307
- });
308
- });
309
- // A11y safeguard: a dialog must have an accessible name.
310
- if (isDevMode()) {
311
- effect(() => {
312
- if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) {
313
- console.warn('[ui-bottom-sheet] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.');
314
- }
315
- });
316
- }
317
- inject(DestroyRef).onDestroy(() => {
318
- this.clearSettle();
319
- this.clearFocus();
320
- this.releaseLock();
321
- });
322
- }
323
- /** Open the sheet. */
324
- open() {
325
- this.visible.set(true);
326
- }
327
- /** Close the sheet. */
328
- close() {
329
- this.visible.set(false);
330
- }
331
- /** Toggle the sheet. */
332
- toggle() {
333
- this.visible.update((v) => !v);
334
- }
335
- /** Move focus onto the sheet surface. */
336
- focus() {
337
- this.panelRef()?.nativeElement.focus({ preventScroll: true });
338
- }
339
- // --- Open / close lifecycle ------------------------------------------
340
- /** @ignore Mount off-screen, then transition to the rest position. */
341
- beginOpen() {
342
- this.clearSettle();
343
- this.snapped.set(false);
344
- this.dragOffset.set(0);
345
- this.dragHeight.set(null);
346
- this.dragging.set(false);
347
- this.mounted.set(true);
348
- if (!this.isBrowser) {
349
- this.atRest.set(true);
350
- return;
351
- }
352
- if (this.blockScroll() && !this.contained() && !this.locked) {
353
- lockBodyScroll(this.document);
354
- this.locked = true;
355
- }
356
- afterNextRender(() => {
357
- // Flush the off-screen position so the class swap below interpolates
358
- // instead of jumping. A layout read is enough, and unlike a rAF it also
359
- // runs in a throttled tab.
360
- void this.positionerRef()?.nativeElement.offsetHeight;
361
- this.atRest.set(true);
362
- this.awaitTransition('open');
363
- this.applyAutoFocus();
364
- }, { injector: this.injector });
365
- }
366
- /** @ignore Transition back off-screen, then unmount. */
367
- beginClose() {
368
- if (!this.mounted())
369
- return;
370
- this.clearSettle();
371
- this.clearFocus();
372
- this.endDrag();
373
- this.dragOffset.set(0);
374
- this.dragHeight.set(null);
375
- this.atRest.set(false);
376
- this.awaitTransition('close');
377
- }
378
- /**
379
- * @ignore Wait for the panel transition to end. `transitionend` is the accurate
380
- * signal, but it never fires when the duration is zero (motion off, reduced
381
- * motion) or while the tab is hidden, hence the measured fallback timer.
382
- */
383
- awaitTransition(phase) {
384
- this.pending = phase;
385
- if (!this.isBrowser) {
386
- this.settle(phase);
387
- return;
388
- }
389
- this.settleTimer = setTimeout(() => this.settle(phase), this.transitionMs() + SETTLE_MARGIN_MS);
390
- }
391
- /** @ignore Resolved transition duration of the panel (ms). */
392
- transitionMs() {
393
- const el = this.positionerRef()?.nativeElement;
394
- const view = this.document.defaultView;
395
- if (!el || !view)
396
- return SETTLE_FALLBACK_MS;
397
- const raw = view.getComputedStyle(el).transitionDuration.split(',')[0]?.trim() ?? '';
398
- const value = Number.parseFloat(raw);
399
- if (Number.isNaN(value))
400
- return SETTLE_FALLBACK_MS;
401
- return raw.endsWith('ms') ? value : value * 1000;
402
- }
403
- /** @ignore */
404
- onTransitionEnd(event) {
405
- if (event.propertyName !== 'transform')
406
- return;
407
- if (event.target !== this.positionerRef()?.nativeElement)
408
- return;
409
- if (this.pending)
410
- this.settle(this.pending);
411
- }
412
- /** @ignore End of an open/close transition: emit, and unmount on close. */
413
- settle(phase) {
414
- if (this.pending !== phase)
415
- return;
416
- this.clearSettle();
417
- if (phase === 'open') {
418
- this.opened.emit();
419
- }
420
- else {
421
- this.mounted.set(false);
422
- this.releaseLock();
423
- this.closed.emit();
424
- }
425
- }
426
- /** @ignore */
427
- clearSettle() {
428
- this.pending = null;
429
- if (this.settleTimer !== null) {
430
- clearTimeout(this.settleTimer);
431
- this.settleTimer = null;
432
- }
433
- }
434
- /** @ignore */
435
- releaseLock() {
436
- if (this.locked) {
437
- unlockBodyScroll(this.document);
438
- this.locked = false;
439
- }
440
- }
441
- // --- Focus -----------------------------------------------------------
442
- /**
443
- * @ignore Focus the `autoFocusElement` target once it exists. The CDK focus
444
- * trap captures first (which is what restores focus on close), so this runs
445
- * after it and wins. Retried a few times because the target is often projected
446
- * content that renders a tick later; `setTimeout` rather than a rAF, which
447
- * never fires in a throttled tab.
448
- */
449
- applyAutoFocus() {
450
- const selector = this.autoFocusElement();
451
- if (!selector || !this.focusOnShow())
452
- return;
453
- let attempts = 0;
454
- const tryFocus = () => {
455
- const target = this.panelRef()?.nativeElement.querySelector(selector);
456
- if (target) {
457
- target.focus({ preventScroll: true });
458
- this.focusTimer = null;
459
- return;
460
- }
461
- if (++attempts >= 5) {
462
- this.focusTimer = null;
463
- if (isDevMode()) {
464
- console.warn(`[ui-bottom-sheet] autoFocusElement "${selector}" matched nothing.`);
465
- }
466
- return;
467
- }
468
- this.focusTimer = setTimeout(tryFocus, 16);
469
- };
470
- this.focusTimer = setTimeout(tryFocus, 0);
471
- }
472
- /** @ignore */
473
- clearFocus() {
474
- if (this.focusTimer !== null) {
475
- clearTimeout(this.focusTimer);
476
- this.focusTimer = null;
477
- }
478
- }
479
- // --- Keyboard --------------------------------------------------------
480
- /** @ignore Escape-to-close. Only swallowed when it actually closes, so a
481
- * parent overlay still sees the key otherwise. */
482
- onKeydown(event) {
483
- if (event.key === 'Escape' && this.closeOnEscape()) {
484
- event.stopPropagation();
485
- this.close();
486
- }
487
- }
488
- /** @ignore Keyboard equivalent of the snap gesture (the handle is a button). */
489
- onHandleKeydown(event) {
490
- if (!this.canSnap())
491
- return;
492
- switch (event.key) {
493
- case 'ArrowUp':
494
- this.snapped.set(true);
495
- break;
496
- case 'ArrowDown':
497
- this.snapped.set(false);
498
- break;
499
- case 'Enter':
500
- case ' ':
501
- this.snapped.update((s) => !s);
502
- break;
503
- default:
504
- return;
505
- }
506
- event.preventDefault();
507
- }
508
- // --- Overlay ---------------------------------------------------------
509
- /** @ignore Backdrop click dismiss (backdrop target only). */
510
- onScrimPointerDown(event) {
511
- if (!this.closeOnOverlayClick())
512
- return;
513
- if (event.target === event.currentTarget)
514
- this.close();
515
- }
516
- // --- Drag gesture (touch / mouse / pen) ------------------------------
517
- /** @ignore */
518
- onDragPointerDown(event) {
519
- if (!this.dragEnabled() || this.dragPointerId !== null)
520
- return;
521
- if (event.pointerType === 'mouse' && event.button !== 0)
522
- return;
523
- // A control inside the drag area keeps its own gesture (close button, link…),
524
- // except the handle, which is a button in snapping mode.
525
- const control = event.target?.closest(INTERACTIVE);
526
- if (control && !control.classList.contains(HANDLE_CLASS))
527
- return;
528
- const host = event.currentTarget;
529
- this.dragPointerId = event.pointerId;
530
- this.dragStartY = event.clientY;
531
- this.dragStartHeight = this.panelRef()?.nativeElement.offsetHeight ?? 0;
532
- this.dragging.set(true);
533
- host.setPointerCapture(event.pointerId);
534
- }
535
- /** @ignore */
536
- onDragPointerMove(event) {
537
- if (event.pointerId !== this.dragPointerId)
538
- return;
539
- const delta = event.clientY - this.dragStartY;
540
- if (delta >= 0) {
541
- // Downwards: translate the sheet, the cheap property.
542
- this.dragHeight.set(null);
543
- this.dragOffset.set(this.enableDragToClose() ? delta : 0);
544
- return;
545
- }
546
- // Upwards: only a snapping sheet reacts, by growing towards `full`.
547
- this.dragOffset.set(0);
548
- if (!this.canSnap() || this.snapped())
549
- return;
550
- const ceiling = this.viewportHeight();
551
- this.dragHeight.set(Math.min(ceiling, this.dragStartHeight - delta));
552
- }
553
- /** @ignore Release: past the threshold the gesture commits, otherwise it springs back. */
554
- onDragPointerUp(event) {
555
- if (event.pointerId !== this.dragPointerId)
556
- return;
557
- const offset = this.dragOffset();
558
- const grown = (this.dragHeight() ?? this.dragStartHeight) - this.dragStartHeight;
559
- const threshold = Math.max(1, this.dragThreshold());
560
- this.endDrag();
561
- this.dragOffset.set(0);
562
- this.dragHeight.set(null);
563
- if (grown >= threshold) {
564
- this.snapped.set(true);
565
- }
566
- else if (offset >= threshold) {
567
- // From `full`, a snapping sheet steps back to `half` before closing.
568
- if (this.canSnap() && this.snapped())
569
- this.snapped.set(false);
570
- else if (this.enableDragToClose())
571
- this.close();
572
- }
573
- }
574
- /** @ignore */
575
- endDrag() {
576
- this.dragPointerId = null;
577
- this.dragging.set(false);
578
- }
579
- /** @ignore Ceiling of the upward drag: the viewport, or the container when `contained`. */
580
- viewportHeight() {
581
- if (this.contained()) {
582
- const parent = this.positionerRef()?.nativeElement.parentElement;
583
- if (parent)
584
- return parent.clientHeight;
585
- }
586
- return this.document.defaultView?.innerHeight ?? this.dragStartHeight;
587
- }
588
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheet, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
589
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiBottomSheet, isStandalone: true, selector: "ui-bottom-sheet", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnOverlayClick: { classPropertyName: "closeOnOverlayClick", publicName: "closeOnOverlayClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, enableDragToClose: { classPropertyName: "enableDragToClose", publicName: "enableDragToClose", isSignal: true, isRequired: false, transformFunction: null }, dragThreshold: { classPropertyName: "dragThreshold", publicName: "dragThreshold", isSignal: true, isRequired: false, transformFunction: null }, enableSnapping: { classPropertyName: "enableSnapping", publicName: "enableSnapping", isSignal: true, isRequired: false, transformFunction: null }, showHandle: { classPropertyName: "showHandle", publicName: "showHandle", isSignal: true, isRequired: false, transformFunction: null }, trapFocus: { classPropertyName: "trapFocus", publicName: "trapFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, autoFocusElement: { classPropertyName: "autoFocusElement", publicName: "autoFocusElement", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, handleAriaLabel: { classPropertyName: "handleAriaLabel", publicName: "handleAriaLabel", 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 }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", opened: "opened", closed: "closed" }, queries: [{ propertyName: "headerSlot", first: true, predicate: UiBottomSheetHeader, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: UiBottomSheetContent, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiBottomSheetFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "positionerRef", first: true, predicate: ["positioner"], descendants: true, isSignal: true }, { propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
590
- }
591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiBottomSheet, decorators: [{
592
- type: Component,
593
- args: [{ selector: 'ui-bottom-sheet', imports: [A11yModule, UiIcon], template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"] }]
594
- }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }], closeOnOverlayClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOverlayClick", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], enableDragToClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableDragToClose", required: false }] }], dragThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragThreshold", required: false }] }], enableSnapping: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableSnapping", required: false }] }], showHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHandle", required: false }] }], trapFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "trapFocus", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], autoFocusElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocusElement", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], handleAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "handleAriaLabel", 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 }] }], safeArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "safeArea", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], motionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionDisabled", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetHeader), { isSignal: true }] }], contentSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetContent), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetFooter), { isSignal: true }] }], positionerRef: [{ type: i0.ViewChild, args: ['positioner', { isSignal: true }] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
595
-
596
- /*
597
- * Public API Surface of ui-kit/ui-bottom-sheet
598
- */
599
-
600
- /**
601
- * Generated bundle index. Do not edit.
602
- */
603
-
20
+ var UiBottomSheetHeader = class UiBottomSheetHeader {
21
+ static {
22
+ this.ɵfac = i0.ɵɵngDeclareFactory({
23
+ minVersion: "12.0.0",
24
+ version: "22.3.0",
25
+ ngImport: i0,
26
+ type: UiBottomSheetHeader,
27
+ deps: [],
28
+ target: i0.ɵɵFactoryTarget.Directive
29
+ });
30
+ }
31
+ static {
32
+ this.ɵdir = i0.ɵɵngDeclareDirective({
33
+ minVersion: "14.0.0",
34
+ version: "22.3.0",
35
+ type: UiBottomSheetHeader,
36
+ isStandalone: true,
37
+ selector: "[uiBottomSheetHeader], [ui-bottom-sheet-header]",
38
+ ngImport: i0
39
+ });
40
+ }
41
+ };
42
+ i0.ɵɵngDeclareClassMetadata({
43
+ minVersion: "12.0.0",
44
+ version: "22.3.0",
45
+ ngImport: i0,
46
+ type: UiBottomSheetHeader,
47
+ decorators: [{
48
+ type: Directive,
49
+ args: [{ selector: "[uiBottomSheetHeader], [ui-bottom-sheet-header]" }]
50
+ }]
51
+ });
52
+ var UiBottomSheetContent = class UiBottomSheetContent {
53
+ static {
54
+ this.ɵfac = i0.ɵɵngDeclareFactory({
55
+ minVersion: "12.0.0",
56
+ version: "22.3.0",
57
+ ngImport: i0,
58
+ type: UiBottomSheetContent,
59
+ deps: [],
60
+ target: i0.ɵɵFactoryTarget.Directive
61
+ });
62
+ }
63
+ static {
64
+ this.ɵdir = i0.ɵɵngDeclareDirective({
65
+ minVersion: "14.0.0",
66
+ version: "22.3.0",
67
+ type: UiBottomSheetContent,
68
+ isStandalone: true,
69
+ selector: "[uiBottomSheetContent], [ui-bottom-sheet-content]",
70
+ ngImport: i0
71
+ });
72
+ }
73
+ };
74
+ i0.ɵɵngDeclareClassMetadata({
75
+ minVersion: "12.0.0",
76
+ version: "22.3.0",
77
+ ngImport: i0,
78
+ type: UiBottomSheetContent,
79
+ decorators: [{
80
+ type: Directive,
81
+ args: [{ selector: "[uiBottomSheetContent], [ui-bottom-sheet-content]" }]
82
+ }]
83
+ });
84
+ var UiBottomSheetFooter = class UiBottomSheetFooter {
85
+ static {
86
+ this.ɵfac = i0.ɵɵngDeclareFactory({
87
+ minVersion: "12.0.0",
88
+ version: "22.3.0",
89
+ ngImport: i0,
90
+ type: UiBottomSheetFooter,
91
+ deps: [],
92
+ target: i0.ɵɵFactoryTarget.Directive
93
+ });
94
+ }
95
+ static {
96
+ this.ɵdir = i0.ɵɵngDeclareDirective({
97
+ minVersion: "14.0.0",
98
+ version: "22.3.0",
99
+ type: UiBottomSheetFooter,
100
+ isStandalone: true,
101
+ selector: "[uiBottomSheetFooter], [ui-bottom-sheet-footer]",
102
+ ngImport: i0
103
+ });
104
+ }
105
+ };
106
+ i0.ɵɵngDeclareClassMetadata({
107
+ minVersion: "12.0.0",
108
+ version: "22.3.0",
109
+ ngImport: i0,
110
+ type: UiBottomSheetFooter,
111
+ decorators: [{
112
+ type: Directive,
113
+ args: [{ selector: "[uiBottomSheetFooter], [ui-bottom-sheet-footer]" }]
114
+ }]
115
+ });
116
+ var UiBottomSheet = class UiBottomSheet {
117
+ constructor() {
118
+ this.visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
119
+ this.height = input("auto", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
120
+ this.hasBackdrop = input(true, {
121
+ ...ngDevMode ? { debugName: "hasBackdrop" } : /* istanbul ignore next */ {},
122
+ transform: booleanAttribute
123
+ });
124
+ this.closeOnOverlayClick = input(true, {
125
+ ...ngDevMode ? { debugName: "closeOnOverlayClick" } : /* istanbul ignore next */ {},
126
+ transform: booleanAttribute
127
+ });
128
+ this.closeOnEscape = input(true, {
129
+ ...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
130
+ transform: booleanAttribute
131
+ });
132
+ this.blockScroll = input(true, {
133
+ ...ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {},
134
+ transform: booleanAttribute
135
+ });
136
+ this.enableDragToClose = input(true, {
137
+ ...ngDevMode ? { debugName: "enableDragToClose" } : /* istanbul ignore next */ {},
138
+ transform: booleanAttribute
139
+ });
140
+ this.dragThreshold = input(96, {
141
+ ...ngDevMode ? { debugName: "dragThreshold" } : /* istanbul ignore next */ {},
142
+ transform: numberAttribute
143
+ });
144
+ this.enableSnapping = input(false, {
145
+ ...ngDevMode ? { debugName: "enableSnapping" } : /* istanbul ignore next */ {},
146
+ transform: booleanAttribute
147
+ });
148
+ this.showHandle = input(true, {
149
+ ...ngDevMode ? { debugName: "showHandle" } : /* istanbul ignore next */ {},
150
+ transform: booleanAttribute
151
+ });
152
+ this.trapFocus = input(true, {
153
+ ...ngDevMode ? { debugName: "trapFocus" } : /* istanbul ignore next */ {},
154
+ transform: booleanAttribute
155
+ });
156
+ this.focusOnShow = input(true, {
157
+ ...ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {},
158
+ transform: booleanAttribute
159
+ });
160
+ this.autoFocusElement = input(null, ...ngDevMode ? [{ debugName: "autoFocusElement" }] : /* istanbul ignore next */ []);
161
+ this.header = input(...ngDevMode ? [void 0, { debugName: "header" }] : /* istanbul ignore next */ []);
162
+ this.closable = input(false, {
163
+ ...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
164
+ transform: booleanAttribute
165
+ });
166
+ this.closeIcon = input("xmark", ...ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []);
167
+ this.closeAriaLabel = input("Fermer", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
168
+ this.handleAriaLabel = input("Redimensionner le panneau", ...ngDevMode ? [{ debugName: "handleAriaLabel" }] : /* istanbul ignore next */ []);
169
+ this.role = input("dialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
170
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
171
+ this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
172
+ this.safeArea = input(true, {
173
+ ...ngDevMode ? { debugName: "safeArea" } : /* istanbul ignore next */ {},
174
+ transform: booleanAttribute
175
+ });
176
+ this.contained = input(false, {
177
+ ...ngDevMode ? { debugName: "contained" } : /* istanbul ignore next */ {},
178
+ transform: booleanAttribute
179
+ });
180
+ this.motionDisabled = input(false, {
181
+ ...ngDevMode ? { debugName: "motionDisabled" } : /* istanbul ignore next */ {},
182
+ transform: booleanAttribute
183
+ });
184
+ this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
185
+ this.autoZIndex = input(true, {
186
+ ...ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {},
187
+ transform: booleanAttribute
188
+ });
189
+ this.baseZIndex = input(0, {
190
+ ...ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {},
191
+ transform: numberAttribute
192
+ });
193
+ this.opened = output();
194
+ this.closed = output();
195
+ this.headerSlot = contentChild(UiBottomSheetHeader, ...ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []);
196
+ this.contentSlot = contentChild(UiBottomSheetContent, ...ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []);
197
+ this.footerSlot = contentChild(UiBottomSheetFooter, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
198
+ this.positionerRef = viewChild("positioner", ...ngDevMode ? [{ debugName: "positionerRef" }] : /* istanbul ignore next */ []);
199
+ this.panelRef = viewChild("panel", ...ngDevMode ? [{ debugName: "panelRef" }] : /* istanbul ignore next */ []);
200
+ this.document = inject(DOCUMENT);
201
+ this.injector = inject(Injector);
202
+ this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
203
+ this.zSeq = ++zIndexSeq;
204
+ this.uid = `ui-bottom-sheet-${nextUid++}`;
205
+ this.titleId = `${this.uid}-title`;
206
+ this.mounted = signal(false, ...ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []);
207
+ this.atRest = signal(false, ...ngDevMode ? [{ debugName: "atRest" }] : /* istanbul ignore next */ []);
208
+ this.dragOffset = signal(0, ...ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []);
209
+ this.dragHeight = signal(null, ...ngDevMode ? [{ debugName: "dragHeight" }] : /* istanbul ignore next */ []);
210
+ this.dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
211
+ this.snapped = signal(false, ...ngDevMode ? [{ debugName: "snapped" }] : /* istanbul ignore next */ []);
212
+ this.locked = false;
213
+ this.pending = null;
214
+ this.settleTimer = null;
215
+ this.focusTimer = null;
216
+ this.dragPointerId = null;
217
+ this.dragStartY = 0;
218
+ this.dragStartHeight = 0;
219
+ this.zIndex = computed(() => {
220
+ const base = this.baseZIndex();
221
+ if (this.autoZIndex()) return SHEET_BASE_Z_INDEX + base + this.zSeq;
222
+ return base > 0 ? base : SHEET_BASE_Z_INDEX;
223
+ }, ...ngDevMode ? [{ debugName: "zIndex" }] : /* istanbul ignore next */ []);
224
+ this.canSnap = computed(() => this.enableSnapping() && this.height() === "half", ...ngDevMode ? [{ debugName: "canSnap" }] : /* istanbul ignore next */ []);
225
+ this.dragEnabled = computed(() => this.enableDragToClose() || this.canSnap(), ...ngDevMode ? [{ debugName: "dragEnabled" }] : /* istanbul ignore next */ []);
226
+ this.effectiveHeight = computed(() => this.canSnap() && this.snapped() ? "full" : this.height(), ...ngDevMode ? [{ debugName: "effectiveHeight" }] : /* istanbul ignore next */ []);
227
+ this.heightPreset = computed(() => {
228
+ const h = this.effectiveHeight();
229
+ return HEIGHT_PRESETS.includes(h) ? h : null;
230
+ }, ...ngDevMode ? [{ debugName: "heightPreset" }] : /* istanbul ignore next */ []);
231
+ this.inlineHeight = computed(() => {
232
+ const drag = this.dragHeight();
233
+ if (drag !== null) return `${drag}px`;
234
+ return this.heightPreset() ? null : this.effectiveHeight();
235
+ }, ...ngDevMode ? [{ debugName: "inlineHeight" }] : /* istanbul ignore next */ []);
236
+ this.panelTransform = computed(() => {
237
+ if (!this.atRest()) return "translateY(100%)";
238
+ const offset = this.dragOffset();
239
+ return offset > 0 ? `translateY(${offset}px)` : "translateY(0)";
240
+ }, ...ngDevMode ? [{ debugName: "panelTransform" }] : /* istanbul ignore next */ []);
241
+ this.panelClasses = computed(() => {
242
+ const classes = ["ui-bottom-sheet"];
243
+ const preset = this.heightPreset();
244
+ if (preset) classes.push(`_${preset}`);
245
+ if (this.contained()) classes.push("_contained");
246
+ if (this.safeArea() && !this.contained()) classes.push("_safe-area");
247
+ if (this.dragging()) classes.push("_dragging");
248
+ if (this.motionDisabled()) classes.push("_no-motion");
249
+ const extra = this.styleClass();
250
+ if (extra) classes.push(extra);
251
+ return classes.join(" ");
252
+ }, ...ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []);
253
+ this.hasTitle = computed(() => !!this.headerSlot() || !!this.header(), ...ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []);
254
+ this.hasHeaderRegion = computed(() => this.hasTitle() || this.closable(), ...ngDevMode ? [{ debugName: "hasHeaderRegion" }] : /* istanbul ignore next */ []);
255
+ this.showHeaderString = computed(() => !this.headerSlot() && !!this.header(), ...ngDevMode ? [{ debugName: "showHeaderString" }] : /* istanbul ignore next */ []);
256
+ this.labelledBy = computed(() => this.ariaLabelledBy() ?? (this.hasTitle() ? this.titleId : null), ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
257
+ this.resolvedAriaLabel = computed(() => this.labelledBy() ? null : this.ariaLabel(), ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
258
+ let wasVisible = false;
259
+ effect(() => {
260
+ const v = this.visible();
261
+ untracked(() => {
262
+ if (v && !wasVisible) {
263
+ wasVisible = true;
264
+ this.beginOpen();
265
+ } else if (!v && wasVisible) {
266
+ wasVisible = false;
267
+ this.beginClose();
268
+ }
269
+ });
270
+ });
271
+ if (isDevMode()) effect(() => {
272
+ if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) console.warn("[ui-bottom-sheet] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.");
273
+ });
274
+ inject(DestroyRef).onDestroy(() => {
275
+ this.clearSettle();
276
+ this.clearFocus();
277
+ this.releaseLock();
278
+ });
279
+ }
280
+ open() {
281
+ this.visible.set(true);
282
+ }
283
+ close() {
284
+ this.visible.set(false);
285
+ }
286
+ toggle() {
287
+ this.visible.update((v) => !v);
288
+ }
289
+ focus() {
290
+ this.panelRef()?.nativeElement.focus({ preventScroll: true });
291
+ }
292
+ beginOpen() {
293
+ this.clearSettle();
294
+ this.snapped.set(false);
295
+ this.dragOffset.set(0);
296
+ this.dragHeight.set(null);
297
+ this.dragging.set(false);
298
+ this.mounted.set(true);
299
+ if (!this.isBrowser) {
300
+ this.atRest.set(true);
301
+ return;
302
+ }
303
+ if (this.blockScroll() && !this.contained() && !this.locked) {
304
+ lockBodyScroll(this.document);
305
+ this.locked = true;
306
+ }
307
+ afterNextRender(() => {
308
+ this.positionerRef()?.nativeElement.offsetHeight;
309
+ this.atRest.set(true);
310
+ this.awaitTransition("open");
311
+ this.applyAutoFocus();
312
+ }, { injector: this.injector });
313
+ }
314
+ beginClose() {
315
+ if (!this.mounted()) return;
316
+ this.clearSettle();
317
+ this.clearFocus();
318
+ this.endDrag();
319
+ this.dragOffset.set(0);
320
+ this.dragHeight.set(null);
321
+ this.atRest.set(false);
322
+ this.awaitTransition("close");
323
+ }
324
+ awaitTransition(phase) {
325
+ this.pending = phase;
326
+ if (!this.isBrowser) {
327
+ this.settle(phase);
328
+ return;
329
+ }
330
+ this.settleTimer = setTimeout(() => this.settle(phase), this.transitionMs() + SETTLE_MARGIN_MS);
331
+ }
332
+ transitionMs() {
333
+ const el = this.positionerRef()?.nativeElement;
334
+ const view = this.document.defaultView;
335
+ if (!el || !view) return SETTLE_FALLBACK_MS;
336
+ const raw = view.getComputedStyle(el).transitionDuration.split(",")[0]?.trim() ?? "";
337
+ const value = Number.parseFloat(raw);
338
+ if (Number.isNaN(value)) return SETTLE_FALLBACK_MS;
339
+ return raw.endsWith("ms") ? value : value * 1e3;
340
+ }
341
+ onTransitionEnd(event) {
342
+ if (event.propertyName !== "transform") return;
343
+ if (event.target !== this.positionerRef()?.nativeElement) return;
344
+ if (this.pending) this.settle(this.pending);
345
+ }
346
+ settle(phase) {
347
+ if (this.pending !== phase) return;
348
+ this.clearSettle();
349
+ if (phase === "open") this.opened.emit();
350
+ else {
351
+ this.mounted.set(false);
352
+ this.releaseLock();
353
+ this.closed.emit();
354
+ }
355
+ }
356
+ clearSettle() {
357
+ this.pending = null;
358
+ if (this.settleTimer !== null) {
359
+ clearTimeout(this.settleTimer);
360
+ this.settleTimer = null;
361
+ }
362
+ }
363
+ releaseLock() {
364
+ if (this.locked) {
365
+ unlockBodyScroll(this.document);
366
+ this.locked = false;
367
+ }
368
+ }
369
+ applyAutoFocus() {
370
+ const selector = this.autoFocusElement();
371
+ if (!selector || !this.focusOnShow()) return;
372
+ let attempts = 0;
373
+ const tryFocus = () => {
374
+ const target = this.panelRef()?.nativeElement.querySelector(selector);
375
+ if (target) {
376
+ target.focus({ preventScroll: true });
377
+ this.focusTimer = null;
378
+ return;
379
+ }
380
+ if (++attempts >= 5) {
381
+ this.focusTimer = null;
382
+ if (isDevMode()) console.warn(`[ui-bottom-sheet] autoFocusElement "${selector}" matched nothing.`);
383
+ return;
384
+ }
385
+ this.focusTimer = setTimeout(tryFocus, 16);
386
+ };
387
+ this.focusTimer = setTimeout(tryFocus, 0);
388
+ }
389
+ clearFocus() {
390
+ if (this.focusTimer !== null) {
391
+ clearTimeout(this.focusTimer);
392
+ this.focusTimer = null;
393
+ }
394
+ }
395
+ onKeydown(event) {
396
+ if (event.key === "Escape" && this.closeOnEscape()) {
397
+ event.stopPropagation();
398
+ this.close();
399
+ }
400
+ }
401
+ onHandleKeydown(event) {
402
+ if (!this.canSnap()) return;
403
+ switch (event.key) {
404
+ case "ArrowUp":
405
+ this.snapped.set(true);
406
+ break;
407
+ case "ArrowDown":
408
+ this.snapped.set(false);
409
+ break;
410
+ case "Enter":
411
+ case " ":
412
+ this.snapped.update((s) => !s);
413
+ break;
414
+ default: return;
415
+ }
416
+ event.preventDefault();
417
+ }
418
+ onScrimPointerDown(event) {
419
+ if (!this.closeOnOverlayClick()) return;
420
+ if (event.target === event.currentTarget) this.close();
421
+ }
422
+ onDragPointerDown(event) {
423
+ if (!this.dragEnabled() || this.dragPointerId !== null) return;
424
+ if (event.pointerType === "mouse" && event.button !== 0) return;
425
+ const control = event.target?.closest(INTERACTIVE);
426
+ if (control && !control.classList.contains(HANDLE_CLASS)) return;
427
+ const host = event.currentTarget;
428
+ this.dragPointerId = event.pointerId;
429
+ this.dragStartY = event.clientY;
430
+ this.dragStartHeight = this.panelRef()?.nativeElement.offsetHeight ?? 0;
431
+ this.dragging.set(true);
432
+ host.setPointerCapture(event.pointerId);
433
+ }
434
+ onDragPointerMove(event) {
435
+ if (event.pointerId !== this.dragPointerId) return;
436
+ const delta = event.clientY - this.dragStartY;
437
+ if (delta >= 0) {
438
+ this.dragHeight.set(null);
439
+ this.dragOffset.set(this.enableDragToClose() ? delta : 0);
440
+ return;
441
+ }
442
+ this.dragOffset.set(0);
443
+ if (!this.canSnap() || this.snapped()) return;
444
+ const ceiling = this.viewportHeight();
445
+ this.dragHeight.set(Math.min(ceiling, this.dragStartHeight - delta));
446
+ }
447
+ onDragPointerUp(event) {
448
+ if (event.pointerId !== this.dragPointerId) return;
449
+ const offset = this.dragOffset();
450
+ const grown = (this.dragHeight() ?? this.dragStartHeight) - this.dragStartHeight;
451
+ const threshold = Math.max(1, this.dragThreshold());
452
+ this.endDrag();
453
+ this.dragOffset.set(0);
454
+ this.dragHeight.set(null);
455
+ if (grown >= threshold) this.snapped.set(true);
456
+ else if (offset >= threshold) {
457
+ if (this.canSnap() && this.snapped()) this.snapped.set(false);
458
+ else if (this.enableDragToClose()) this.close();
459
+ }
460
+ }
461
+ endDrag() {
462
+ this.dragPointerId = null;
463
+ this.dragging.set(false);
464
+ }
465
+ viewportHeight() {
466
+ if (this.contained()) {
467
+ const parent = this.positionerRef()?.nativeElement.parentElement;
468
+ if (parent) return parent.clientHeight;
469
+ }
470
+ return this.document.defaultView?.innerHeight ?? this.dragStartHeight;
471
+ }
472
+ static {
473
+ this.ɵfac = i0.ɵɵngDeclareFactory({
474
+ minVersion: "12.0.0",
475
+ version: "22.3.0",
476
+ ngImport: i0,
477
+ type: UiBottomSheet,
478
+ deps: [],
479
+ target: i0.ɵɵFactoryTarget.Component
480
+ });
481
+ }
482
+ static {
483
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
484
+ minVersion: "17.0.0",
485
+ version: "22.3.0",
486
+ type: UiBottomSheet,
487
+ isStandalone: true,
488
+ selector: "ui-bottom-sheet",
489
+ inputs: {
490
+ visible: {
491
+ classPropertyName: "visible",
492
+ publicName: "visible",
493
+ isSignal: true,
494
+ isRequired: false,
495
+ transformFunction: null
496
+ },
497
+ height: {
498
+ classPropertyName: "height",
499
+ publicName: "height",
500
+ isSignal: true,
501
+ isRequired: false,
502
+ transformFunction: null
503
+ },
504
+ hasBackdrop: {
505
+ classPropertyName: "hasBackdrop",
506
+ publicName: "hasBackdrop",
507
+ isSignal: true,
508
+ isRequired: false,
509
+ transformFunction: null
510
+ },
511
+ closeOnOverlayClick: {
512
+ classPropertyName: "closeOnOverlayClick",
513
+ publicName: "closeOnOverlayClick",
514
+ isSignal: true,
515
+ isRequired: false,
516
+ transformFunction: null
517
+ },
518
+ closeOnEscape: {
519
+ classPropertyName: "closeOnEscape",
520
+ publicName: "closeOnEscape",
521
+ isSignal: true,
522
+ isRequired: false,
523
+ transformFunction: null
524
+ },
525
+ blockScroll: {
526
+ classPropertyName: "blockScroll",
527
+ publicName: "blockScroll",
528
+ isSignal: true,
529
+ isRequired: false,
530
+ transformFunction: null
531
+ },
532
+ enableDragToClose: {
533
+ classPropertyName: "enableDragToClose",
534
+ publicName: "enableDragToClose",
535
+ isSignal: true,
536
+ isRequired: false,
537
+ transformFunction: null
538
+ },
539
+ dragThreshold: {
540
+ classPropertyName: "dragThreshold",
541
+ publicName: "dragThreshold",
542
+ isSignal: true,
543
+ isRequired: false,
544
+ transformFunction: null
545
+ },
546
+ enableSnapping: {
547
+ classPropertyName: "enableSnapping",
548
+ publicName: "enableSnapping",
549
+ isSignal: true,
550
+ isRequired: false,
551
+ transformFunction: null
552
+ },
553
+ showHandle: {
554
+ classPropertyName: "showHandle",
555
+ publicName: "showHandle",
556
+ isSignal: true,
557
+ isRequired: false,
558
+ transformFunction: null
559
+ },
560
+ trapFocus: {
561
+ classPropertyName: "trapFocus",
562
+ publicName: "trapFocus",
563
+ isSignal: true,
564
+ isRequired: false,
565
+ transformFunction: null
566
+ },
567
+ focusOnShow: {
568
+ classPropertyName: "focusOnShow",
569
+ publicName: "focusOnShow",
570
+ isSignal: true,
571
+ isRequired: false,
572
+ transformFunction: null
573
+ },
574
+ autoFocusElement: {
575
+ classPropertyName: "autoFocusElement",
576
+ publicName: "autoFocusElement",
577
+ isSignal: true,
578
+ isRequired: false,
579
+ transformFunction: null
580
+ },
581
+ header: {
582
+ classPropertyName: "header",
583
+ publicName: "header",
584
+ isSignal: true,
585
+ isRequired: false,
586
+ transformFunction: null
587
+ },
588
+ closable: {
589
+ classPropertyName: "closable",
590
+ publicName: "closable",
591
+ isSignal: true,
592
+ isRequired: false,
593
+ transformFunction: null
594
+ },
595
+ closeIcon: {
596
+ classPropertyName: "closeIcon",
597
+ publicName: "closeIcon",
598
+ isSignal: true,
599
+ isRequired: false,
600
+ transformFunction: null
601
+ },
602
+ closeAriaLabel: {
603
+ classPropertyName: "closeAriaLabel",
604
+ publicName: "closeAriaLabel",
605
+ isSignal: true,
606
+ isRequired: false,
607
+ transformFunction: null
608
+ },
609
+ handleAriaLabel: {
610
+ classPropertyName: "handleAriaLabel",
611
+ publicName: "handleAriaLabel",
612
+ isSignal: true,
613
+ isRequired: false,
614
+ transformFunction: null
615
+ },
616
+ role: {
617
+ classPropertyName: "role",
618
+ publicName: "role",
619
+ isSignal: true,
620
+ isRequired: false,
621
+ transformFunction: null
622
+ },
623
+ ariaLabel: {
624
+ classPropertyName: "ariaLabel",
625
+ publicName: "ariaLabel",
626
+ isSignal: true,
627
+ isRequired: false,
628
+ transformFunction: null
629
+ },
630
+ ariaLabelledBy: {
631
+ classPropertyName: "ariaLabelledBy",
632
+ publicName: "ariaLabelledBy",
633
+ isSignal: true,
634
+ isRequired: false,
635
+ transformFunction: null
636
+ },
637
+ safeArea: {
638
+ classPropertyName: "safeArea",
639
+ publicName: "safeArea",
640
+ isSignal: true,
641
+ isRequired: false,
642
+ transformFunction: null
643
+ },
644
+ contained: {
645
+ classPropertyName: "contained",
646
+ publicName: "contained",
647
+ isSignal: true,
648
+ isRequired: false,
649
+ transformFunction: null
650
+ },
651
+ motionDisabled: {
652
+ classPropertyName: "motionDisabled",
653
+ publicName: "motionDisabled",
654
+ isSignal: true,
655
+ isRequired: false,
656
+ transformFunction: null
657
+ },
658
+ styleClass: {
659
+ classPropertyName: "styleClass",
660
+ publicName: "styleClass",
661
+ isSignal: true,
662
+ isRequired: false,
663
+ transformFunction: null
664
+ },
665
+ autoZIndex: {
666
+ classPropertyName: "autoZIndex",
667
+ publicName: "autoZIndex",
668
+ isSignal: true,
669
+ isRequired: false,
670
+ transformFunction: null
671
+ },
672
+ baseZIndex: {
673
+ classPropertyName: "baseZIndex",
674
+ publicName: "baseZIndex",
675
+ isSignal: true,
676
+ isRequired: false,
677
+ transformFunction: null
678
+ }
679
+ },
680
+ outputs: {
681
+ visible: "visibleChange",
682
+ opened: "opened",
683
+ closed: "closed"
684
+ },
685
+ queries: [
686
+ {
687
+ propertyName: "headerSlot",
688
+ first: true,
689
+ predicate: UiBottomSheetHeader,
690
+ descendants: true,
691
+ isSignal: true
692
+ },
693
+ {
694
+ propertyName: "contentSlot",
695
+ first: true,
696
+ predicate: UiBottomSheetContent,
697
+ descendants: true,
698
+ isSignal: true
699
+ },
700
+ {
701
+ propertyName: "footerSlot",
702
+ first: true,
703
+ predicate: UiBottomSheetFooter,
704
+ descendants: true,
705
+ isSignal: true
706
+ }
707
+ ],
708
+ viewQueries: [{
709
+ propertyName: "positionerRef",
710
+ first: true,
711
+ predicate: ["positioner"],
712
+ descendants: true,
713
+ isSignal: true
714
+ }, {
715
+ propertyName: "panelRef",
716
+ first: true,
717
+ predicate: ["panel"],
718
+ descendants: true,
719
+ isSignal: true
720
+ }],
721
+ ngImport: i0,
722
+ template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n",
723
+ styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"],
724
+ dependencies: [
725
+ {
726
+ kind: "ngmodule",
727
+ type: A11yModule
728
+ },
729
+ {
730
+ kind: "directive",
731
+ type: i1.CdkTrapFocus,
732
+ selector: "[cdkTrapFocus]",
733
+ inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
734
+ exportAs: ["cdkTrapFocus"]
735
+ },
736
+ {
737
+ kind: "component",
738
+ type: UiIcon,
739
+ selector: "ui-icon",
740
+ inputs: [
741
+ "name",
742
+ "size",
743
+ "type",
744
+ "family",
745
+ "decorative",
746
+ "ariaLabel"
747
+ ]
748
+ }
749
+ ]
750
+ });
751
+ }
752
+ };
753
+ i0.ɵɵngDeclareClassMetadata({
754
+ minVersion: "12.0.0",
755
+ version: "22.3.0",
756
+ ngImport: i0,
757
+ type: UiBottomSheet,
758
+ decorators: [{
759
+ type: Component,
760
+ args: [{
761
+ selector: "ui-bottom-sheet",
762
+ imports: [A11yModule, UiIcon],
763
+ template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n",
764
+ styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"]
765
+ }]
766
+ }],
767
+ ctorParameters: () => [],
768
+ propDecorators: {
769
+ visible: [{
770
+ type: i0.Input,
771
+ args: [{
772
+ isSignal: true,
773
+ alias: "visible",
774
+ required: false
775
+ }]
776
+ }, {
777
+ type: i0.Output,
778
+ args: ["visibleChange"]
779
+ }],
780
+ height: [{
781
+ type: i0.Input,
782
+ args: [{
783
+ isSignal: true,
784
+ alias: "height",
785
+ required: false
786
+ }]
787
+ }],
788
+ hasBackdrop: [{
789
+ type: i0.Input,
790
+ args: [{
791
+ isSignal: true,
792
+ alias: "hasBackdrop",
793
+ required: false
794
+ }]
795
+ }],
796
+ closeOnOverlayClick: [{
797
+ type: i0.Input,
798
+ args: [{
799
+ isSignal: true,
800
+ alias: "closeOnOverlayClick",
801
+ required: false
802
+ }]
803
+ }],
804
+ closeOnEscape: [{
805
+ type: i0.Input,
806
+ args: [{
807
+ isSignal: true,
808
+ alias: "closeOnEscape",
809
+ required: false
810
+ }]
811
+ }],
812
+ blockScroll: [{
813
+ type: i0.Input,
814
+ args: [{
815
+ isSignal: true,
816
+ alias: "blockScroll",
817
+ required: false
818
+ }]
819
+ }],
820
+ enableDragToClose: [{
821
+ type: i0.Input,
822
+ args: [{
823
+ isSignal: true,
824
+ alias: "enableDragToClose",
825
+ required: false
826
+ }]
827
+ }],
828
+ dragThreshold: [{
829
+ type: i0.Input,
830
+ args: [{
831
+ isSignal: true,
832
+ alias: "dragThreshold",
833
+ required: false
834
+ }]
835
+ }],
836
+ enableSnapping: [{
837
+ type: i0.Input,
838
+ args: [{
839
+ isSignal: true,
840
+ alias: "enableSnapping",
841
+ required: false
842
+ }]
843
+ }],
844
+ showHandle: [{
845
+ type: i0.Input,
846
+ args: [{
847
+ isSignal: true,
848
+ alias: "showHandle",
849
+ required: false
850
+ }]
851
+ }],
852
+ trapFocus: [{
853
+ type: i0.Input,
854
+ args: [{
855
+ isSignal: true,
856
+ alias: "trapFocus",
857
+ required: false
858
+ }]
859
+ }],
860
+ focusOnShow: [{
861
+ type: i0.Input,
862
+ args: [{
863
+ isSignal: true,
864
+ alias: "focusOnShow",
865
+ required: false
866
+ }]
867
+ }],
868
+ autoFocusElement: [{
869
+ type: i0.Input,
870
+ args: [{
871
+ isSignal: true,
872
+ alias: "autoFocusElement",
873
+ required: false
874
+ }]
875
+ }],
876
+ header: [{
877
+ type: i0.Input,
878
+ args: [{
879
+ isSignal: true,
880
+ alias: "header",
881
+ required: false
882
+ }]
883
+ }],
884
+ closable: [{
885
+ type: i0.Input,
886
+ args: [{
887
+ isSignal: true,
888
+ alias: "closable",
889
+ required: false
890
+ }]
891
+ }],
892
+ closeIcon: [{
893
+ type: i0.Input,
894
+ args: [{
895
+ isSignal: true,
896
+ alias: "closeIcon",
897
+ required: false
898
+ }]
899
+ }],
900
+ closeAriaLabel: [{
901
+ type: i0.Input,
902
+ args: [{
903
+ isSignal: true,
904
+ alias: "closeAriaLabel",
905
+ required: false
906
+ }]
907
+ }],
908
+ handleAriaLabel: [{
909
+ type: i0.Input,
910
+ args: [{
911
+ isSignal: true,
912
+ alias: "handleAriaLabel",
913
+ required: false
914
+ }]
915
+ }],
916
+ role: [{
917
+ type: i0.Input,
918
+ args: [{
919
+ isSignal: true,
920
+ alias: "role",
921
+ required: false
922
+ }]
923
+ }],
924
+ ariaLabel: [{
925
+ type: i0.Input,
926
+ args: [{
927
+ isSignal: true,
928
+ alias: "ariaLabel",
929
+ required: false
930
+ }]
931
+ }],
932
+ ariaLabelledBy: [{
933
+ type: i0.Input,
934
+ args: [{
935
+ isSignal: true,
936
+ alias: "ariaLabelledBy",
937
+ required: false
938
+ }]
939
+ }],
940
+ safeArea: [{
941
+ type: i0.Input,
942
+ args: [{
943
+ isSignal: true,
944
+ alias: "safeArea",
945
+ required: false
946
+ }]
947
+ }],
948
+ contained: [{
949
+ type: i0.Input,
950
+ args: [{
951
+ isSignal: true,
952
+ alias: "contained",
953
+ required: false
954
+ }]
955
+ }],
956
+ motionDisabled: [{
957
+ type: i0.Input,
958
+ args: [{
959
+ isSignal: true,
960
+ alias: "motionDisabled",
961
+ required: false
962
+ }]
963
+ }],
964
+ styleClass: [{
965
+ type: i0.Input,
966
+ args: [{
967
+ isSignal: true,
968
+ alias: "styleClass",
969
+ required: false
970
+ }]
971
+ }],
972
+ autoZIndex: [{
973
+ type: i0.Input,
974
+ args: [{
975
+ isSignal: true,
976
+ alias: "autoZIndex",
977
+ required: false
978
+ }]
979
+ }],
980
+ baseZIndex: [{
981
+ type: i0.Input,
982
+ args: [{
983
+ isSignal: true,
984
+ alias: "baseZIndex",
985
+ required: false
986
+ }]
987
+ }],
988
+ opened: [{
989
+ type: i0.Output,
990
+ args: ["opened"]
991
+ }],
992
+ closed: [{
993
+ type: i0.Output,
994
+ args: ["closed"]
995
+ }],
996
+ headerSlot: [{
997
+ type: i0.ContentChild,
998
+ args: [i0.forwardRef(() => UiBottomSheetHeader), { isSignal: true }]
999
+ }],
1000
+ contentSlot: [{
1001
+ type: i0.ContentChild,
1002
+ args: [i0.forwardRef(() => UiBottomSheetContent), { isSignal: true }]
1003
+ }],
1004
+ footerSlot: [{
1005
+ type: i0.ContentChild,
1006
+ args: [i0.forwardRef(() => UiBottomSheetFooter), { isSignal: true }]
1007
+ }],
1008
+ positionerRef: [{
1009
+ type: i0.ViewChild,
1010
+ args: ["positioner", { isSignal: true }]
1011
+ }],
1012
+ panelRef: [{
1013
+ type: i0.ViewChild,
1014
+ args: ["panel", { isSignal: true }]
1015
+ }]
1016
+ }
1017
+ });
604
1018
  export { UiBottomSheet, UiBottomSheetContent, UiBottomSheetFooter, UiBottomSheetHeader };
605
- //# sourceMappingURL=4sh-ui-kit-layout-ui-bottom-sheet.mjs.map
1019
+
1020
+ //# sourceMappingURL=4sh-ui-kit-layout-ui-bottom-sheet.mjs.map