@ojiepermana/angular 22.1.14 → 22.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +8 -6
  2. package/SUPPORT.md +3 -3
  3. package/chart/README.md +1 -1
  4. package/component/README.md +2 -2
  5. package/component/calendar/README.md +3 -15
  6. package/component/drawer/README.md +1 -2
  7. package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
  8. package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
  9. package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
  10. package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
  11. package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
  12. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
  13. package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
  14. package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
  15. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
  16. package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
  17. package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
  18. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
  19. package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
  20. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
  21. package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
  22. package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
  23. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
  24. package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
  25. package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
  26. package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
  27. package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
  28. package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
  29. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
  30. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
  31. package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
  32. package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
  33. package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
  34. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
  35. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
  36. package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
  37. package/fesm2022/ojiepermana-angular-component-drawer.mjs +2 -5
  38. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
  39. package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
  40. package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
  41. package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
  42. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
  43. package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
  44. package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
  45. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
  46. package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
  47. package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
  48. package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
  49. package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
  50. package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
  51. package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
  52. package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
  53. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
  54. package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
  55. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
  56. package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
  57. package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
  58. package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
  59. package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
  60. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
  61. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
  62. package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
  63. package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
  64. package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
  65. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
  66. package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
  67. package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
  68. package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
  69. package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
  70. package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
  71. package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
  72. package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
  73. package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
  74. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
  75. package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
  76. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
  77. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
  78. package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
  79. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
  80. package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
  81. package/fesm2022/ojiepermana-angular-component.mjs +0 -10
  82. package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
  83. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
  84. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-BKCeWzml.mjs +129 -0
  85. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DFEJK2jD.mjs +811 -0
  86. package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-mpK9Ar08.mjs} +387 -183
  87. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BPgH7FJk.mjs +650 -0
  88. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-DMpYcD9t.mjs +662 -0
  89. package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-Basp5SIk.mjs +1228 -0
  90. package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-YUzHI9Pj.mjs +311 -0
  91. package/fesm2022/ojiepermana-angular-navigation-service.mjs +542 -724
  92. package/fesm2022/ojiepermana-angular-navigation-types.mjs +27 -56
  93. package/fesm2022/ojiepermana-angular-navigation.mjs +3052 -4
  94. package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
  95. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1115 -737
  96. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
  97. package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
  98. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1719 -552
  99. package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
  100. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
  101. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
  102. package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
  103. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
  104. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
  105. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
  106. package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
  107. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
  108. package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
  109. package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
  110. package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
  111. package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
  112. package/fesm2022/ojiepermana-angular.mjs +5 -24
  113. package/navigation/README.md +1 -1
  114. package/package.json +16 -12
  115. package/sdk/README.md +1 -1
  116. package/sdk/src/writer/index.js +2 -2
  117. package/theme/README.md +1 -1
  118. package/theme/layout/README.md +2 -4
  119. package/theme/page/README.md +50 -0
  120. package/theme/styles/README.md +10 -10
  121. package/theme/styles/css/base/prefers-dark.css +1 -1
  122. package/theme/styles/css/base/status.css +1 -1
  123. package/theme/styles/css/color/amber.css +1 -1
  124. package/theme/styles/css/color/blue.css +1 -1
  125. package/theme/styles/css/color/cyan.css +1 -1
  126. package/theme/styles/css/color/emerald.css +1 -1
  127. package/theme/styles/css/color/fuchsia.css +1 -1
  128. package/theme/styles/css/color/green.css +1 -1
  129. package/theme/styles/css/color/indigo.css +1 -1
  130. package/theme/styles/css/color/lime.css +1 -1
  131. package/theme/styles/css/color/orange.css +1 -1
  132. package/theme/styles/css/color/pink.css +1 -1
  133. package/theme/styles/css/color/purple.css +1 -1
  134. package/theme/styles/css/color/red.css +1 -1
  135. package/theme/styles/css/color/rose.css +1 -1
  136. package/theme/styles/css/color/sky.css +1 -1
  137. package/theme/styles/css/color/teal.css +1 -1
  138. package/theme/styles/css/color/violet.css +1 -1
  139. package/theme/styles/css/color/yellow.css +1 -1
  140. package/theme/styles/css/neutral/gray.css +1 -1
  141. package/theme/styles/css/neutral/mauve.css +1 -1
  142. package/theme/styles/css/neutral/mist.css +1 -1
  143. package/theme/styles/css/neutral/neutral.css +1 -1
  144. package/theme/styles/css/neutral/olive.css +1 -1
  145. package/theme/styles/css/neutral/slate.css +1 -1
  146. package/theme/styles/css/neutral/stone.css +1 -1
  147. package/theme/styles/css/neutral/taupe.css +1 -1
  148. package/theme/styles/css/neutral/zinc.css +1 -1
  149. package/types/ojiepermana-angular-chart-area.d.ts +126 -63
  150. package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
  151. package/types/ojiepermana-angular-chart-core.d.ts +409 -398
  152. package/types/ojiepermana-angular-chart-line.d.ts +141 -68
  153. package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
  154. package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
  155. package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
  156. package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
  157. package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
  158. package/types/ojiepermana-angular-chart.d.ts +3 -2
  159. package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
  160. package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
  161. package/types/ojiepermana-angular-component-alert.d.ts +69 -39
  162. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
  163. package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
  164. package/types/ojiepermana-angular-component-badge.d.ts +36 -24
  165. package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
  166. package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
  167. package/types/ojiepermana-angular-component-button.d.ts +44 -27
  168. package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
  169. package/types/ojiepermana-angular-component-card.d.ts +112 -63
  170. package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
  171. package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
  172. package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
  173. package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
  174. package/types/ojiepermana-angular-component-command.d.ts +206 -121
  175. package/types/ojiepermana-angular-component-composer.d.ts +184 -84
  176. package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
  177. package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
  178. package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
  179. package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
  180. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
  181. package/types/ojiepermana-angular-component-editor.d.ts +215 -117
  182. package/types/ojiepermana-angular-component-empty.d.ts +80 -45
  183. package/types/ojiepermana-angular-component-form.d.ts +185 -121
  184. package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
  185. package/types/ojiepermana-angular-component-icon.d.ts +87 -57
  186. package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
  187. package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
  188. package/types/ojiepermana-angular-component-input.d.ts +27 -17
  189. package/types/ojiepermana-angular-component-item.d.ts +160 -84
  190. package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
  191. package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
  192. package/types/ojiepermana-angular-component-label.d.ts +19 -11
  193. package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
  194. package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
  195. package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
  196. package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
  197. package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
  198. package/types/ojiepermana-angular-component-popover.d.ts +94 -64
  199. package/types/ojiepermana-angular-component-progress.d.ts +45 -17
  200. package/types/ojiepermana-angular-component-radio.d.ts +129 -53
  201. package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
  202. package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
  203. package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
  204. package/types/ojiepermana-angular-component-select.d.ts +94 -77
  205. package/types/ojiepermana-angular-component-separator.d.ts +26 -14
  206. package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
  207. package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
  208. package/types/ojiepermana-angular-component-slider.d.ts +140 -75
  209. package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
  210. package/types/ojiepermana-angular-component-switch.d.ts +97 -40
  211. package/types/ojiepermana-angular-component-table.d.ts +102 -50
  212. package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
  213. package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
  214. package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
  215. package/types/ojiepermana-angular-component-toast.d.ts +51 -55
  216. package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
  217. package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
  218. package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
  219. package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
  220. package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
  221. package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
  222. package/types/ojiepermana-angular-component-utils.d.ts +2 -2
  223. package/types/ojiepermana-angular-component.d.ts +1 -2
  224. package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
  225. package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
  226. package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
  227. package/types/ojiepermana-angular-navigation-types.d.ts +121 -125
  228. package/types/ojiepermana-angular-navigation.d.ts +663 -374
  229. package/types/ojiepermana-angular-sdk.d.ts +69 -71
  230. package/types/ojiepermana-angular-theme-component-settings.d.ts +115 -83
  231. package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
  232. package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
  233. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +399 -187
  234. package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
  235. package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
  236. package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
  237. package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
  238. package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
  239. package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
  240. package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
  241. package/types/ojiepermana-angular-theme-page.d.ts +7 -5
  242. package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
  243. package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
  244. package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
  245. package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
  246. package/types/ojiepermana-angular-theme.d.ts +1 -2
  247. package/types/ojiepermana-angular.d.ts +5 -5
  248. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-Be3IqzG4.mjs +0 -91
  249. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
  250. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
  251. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
  252. package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
@@ -1,93 +1,165 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, model, input, output, signal, computed, Component, effect, DestroyRef, ElementRef } from '@angular/core';
3
- import { cn, injectUniqueId } from '@ojiepermana/angular/component/utils/core';
4
- import * as i1 from '@ojiepermana/angular/component/utils/scale';
5
- import { ComponentScaleDirective } from '@ojiepermana/angular/component/utils/scale';
6
- import { DialogComponent } from '@ojiepermana/angular/component/dialog';
7
- import { buttonVariants } from '@ojiepermana/angular/component/button';
8
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, ElementRef, computed, effect, inject, input, model, output, signal } from "@angular/core";
3
+ import { cn, injectUniqueId } from "@ojiepermana/angular/component/utils/core";
4
+ import * as i1 from "@ojiepermana/angular/component/utils/scale";
5
+ import { ComponentScaleDirective } from "@ojiepermana/angular/component/utils/scale";
6
+ import { DialogComponent } from "@ojiepermana/angular/component/dialog";
7
+ import { buttonVariants } from "@ojiepermana/angular/component/button";
9
8
  const ALERT_DIALOG_SIZE_CLASSES = {
10
- default: 'sm:max-w-lg',
11
- sm: 'sm:max-w-sm',
9
+ default: "sm:max-w-lg",
10
+ sm: "sm:max-w-sm"
12
11
  };
13
- /**
14
- * Confirmation dialog with `role="alertdialog"`.
15
- *
16
- * For the accessible name/description to wire up automatically, project the
17
- * matching `AlertDialogTitle` / `AlertDialogDescription` parts (they register
18
- * their ids with this component). Plain `DialogTitle` / `DialogDescription` will
19
- * not auto-wire here — pass `aria-labelledby` / `aria-describedby` explicitly if
20
- * you use custom markup.
21
- */
22
- class AlertDialogComponent {
23
- componentScale = inject(ComponentScaleDirective);
24
- radius = this.componentScale.radius;
25
- density = this.componentScale.density;
26
- open = model(false, /* @ts-ignore */
27
- ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
28
- closeOnEscape = input(true, /* @ts-ignore */
29
- ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
30
- closeOnBackdropClick = input(false, /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []));
32
- /** Appearance of the area outside the surface. Defaults to a dimmed overlay. */
33
- backdrop = input('dim', /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []));
35
- showCloseButton = input(false, /* @ts-ignore */
36
- ...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
37
- closeButtonLabel = input('Close', /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "closeButtonLabel" }] : /* istanbul ignore next */ []));
39
- labelledBy = input(null, { ...(ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
40
- describedBy = input(null, { ...(ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
41
- /** ARIA role passed to the underlying dialog surface. `'alertdialog'` by default. */
42
- role = input('alertdialog', /* @ts-ignore */
43
- ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
44
- class = input('', /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
46
- openedChange = output();
47
- contentSize = signal('default', /* @ts-ignore */
48
- ...(ngDevMode ? [{ debugName: "contentSize" }] : /* istanbul ignore next */ []));
49
- registeredTitleId = signal(null, /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "registeredTitleId" }] : /* istanbul ignore next */ []));
51
- registeredDescriptionId = signal(null, /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "registeredDescriptionId" }] : /* istanbul ignore next */ []));
53
- resolvedSize = computed(() => this.contentSize(), /* @ts-ignore */
54
- ...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
55
- surfaceClasses = computed(() => cn(ALERT_DIALOG_SIZE_CLASSES[this.resolvedSize()], this.class()), /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []));
57
- /** Explicit `aria-labelledby` wins; otherwise a projected `AlertDialogTitle` supplies the id. */
58
- resolvedLabelledBy = computed(() => this.labelledBy() ?? this.registeredTitleId(), /* @ts-ignore */
59
- ...(ngDevMode ? [{ debugName: "resolvedLabelledBy" }] : /* istanbul ignore next */ []));
60
- /** Explicit `aria-describedby` wins; otherwise a projected `AlertDialogDescription` supplies the id. */
61
- resolvedDescribedBy = computed(() => this.describedBy() ?? this.registeredDescriptionId(), /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []));
63
- setContentSize(size) {
64
- this.contentSize.set(size);
65
- }
66
- /** Called by a projected `AlertDialogTitle` so default usage has an accessible name (AXE-safe). */
67
- registerTitleId(id) {
68
- this.registeredTitleId.set(id);
69
- }
70
- /** Cleared by an `AlertDialogTitle` on destroy so a reopened alert never points at a stale id. */
71
- unregisterTitleId(id) {
72
- if (this.registeredTitleId() === id) {
73
- this.registeredTitleId.set(null);
74
- }
75
- }
76
- /** Called by a projected `AlertDialogDescription`. */
77
- registerDescriptionId(id) {
78
- this.registeredDescriptionId.set(id);
79
- }
80
- /** Cleared by an `AlertDialogDescription` on destroy. */
81
- unregisterDescriptionId(id) {
82
- if (this.registeredDescriptionId() === id) {
83
- this.registeredDescriptionId.set(null);
84
- }
85
- }
86
- close() {
87
- this.open.set(false);
88
- }
89
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogComponent, isStandalone: true, selector: "AlertDialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, closeButtonLabel: { classPropertyName: "closeButtonLabel", publicName: "closeButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openedChange: "openedChange" }, host: { properties: { "attr.aria-labelledby": "null", "attr.aria-describedby": "null" } }, hostDirectives: [{ directive: i1.ComponentScaleDirective, inputs: ["radius", "radius", "density", "density"] }], ngImport: i0, template: `
12
+ var AlertDialogComponent = class AlertDialogComponent {
13
+ componentScale = inject(ComponentScaleDirective);
14
+ radius = this.componentScale.radius;
15
+ density = this.componentScale.density;
16
+ open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
17
+ closeOnEscape = input(true, ...ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []);
18
+ closeOnBackdropClick = input(false, ...ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []);
19
+ backdrop = input("dim", ...ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []);
20
+ showCloseButton = input(false, ...ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []);
21
+ closeButtonLabel = input("Close", ...ngDevMode ? [{ debugName: "closeButtonLabel" }] : /* istanbul ignore next */ []);
22
+ labelledBy = input(null, {
23
+ ...ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {},
24
+ alias: "aria-labelledby"
25
+ });
26
+ describedBy = input(null, {
27
+ ...ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {},
28
+ alias: "aria-describedby"
29
+ });
30
+ role = input("alertdialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
31
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
32
+ openedChange = output();
33
+ contentSize = signal("default", ...ngDevMode ? [{ debugName: "contentSize" }] : /* istanbul ignore next */ []);
34
+ registeredTitleId = signal(null, ...ngDevMode ? [{ debugName: "registeredTitleId" }] : /* istanbul ignore next */ []);
35
+ registeredDescriptionId = signal(null, ...ngDevMode ? [{ debugName: "registeredDescriptionId" }] : /* istanbul ignore next */ []);
36
+ resolvedSize = computed(() => this.contentSize(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
37
+ surfaceClasses = computed(() => cn(ALERT_DIALOG_SIZE_CLASSES[this.resolvedSize()], this.class()), ...ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []);
38
+ resolvedLabelledBy = computed(() => this.labelledBy() ?? this.registeredTitleId(), ...ngDevMode ? [{ debugName: "resolvedLabelledBy" }] : /* istanbul ignore next */ []);
39
+ resolvedDescribedBy = computed(() => this.describedBy() ?? this.registeredDescriptionId(), ...ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []);
40
+ setContentSize(size) {
41
+ this.contentSize.set(size);
42
+ }
43
+ registerTitleId(id) {
44
+ this.registeredTitleId.set(id);
45
+ }
46
+ unregisterTitleId(id) {
47
+ if (this.registeredTitleId() === id) this.registeredTitleId.set(null);
48
+ }
49
+ registerDescriptionId(id) {
50
+ this.registeredDescriptionId.set(id);
51
+ }
52
+ unregisterDescriptionId(id) {
53
+ if (this.registeredDescriptionId() === id) this.registeredDescriptionId.set(null);
54
+ }
55
+ close() {
56
+ this.open.set(false);
57
+ }
58
+ static ɵfac = i0.ɵɵngDeclareFactory({
59
+ minVersion: "12.0.0",
60
+ version: "22.2.0",
61
+ ngImport: i0,
62
+ type: AlertDialogComponent,
63
+ deps: [],
64
+ target: i0.ɵɵFactoryTarget.Component
65
+ });
66
+ static ɵcmp = i0.ɵɵngDeclareComponent({
67
+ minVersion: "17.1.0",
68
+ version: "22.2.0",
69
+ type: AlertDialogComponent,
70
+ isStandalone: true,
71
+ selector: "AlertDialog",
72
+ inputs: {
73
+ open: {
74
+ classPropertyName: "open",
75
+ publicName: "open",
76
+ isSignal: true,
77
+ isRequired: false,
78
+ transformFunction: null
79
+ },
80
+ closeOnEscape: {
81
+ classPropertyName: "closeOnEscape",
82
+ publicName: "closeOnEscape",
83
+ isSignal: true,
84
+ isRequired: false,
85
+ transformFunction: null
86
+ },
87
+ closeOnBackdropClick: {
88
+ classPropertyName: "closeOnBackdropClick",
89
+ publicName: "closeOnBackdropClick",
90
+ isSignal: true,
91
+ isRequired: false,
92
+ transformFunction: null
93
+ },
94
+ backdrop: {
95
+ classPropertyName: "backdrop",
96
+ publicName: "backdrop",
97
+ isSignal: true,
98
+ isRequired: false,
99
+ transformFunction: null
100
+ },
101
+ showCloseButton: {
102
+ classPropertyName: "showCloseButton",
103
+ publicName: "showCloseButton",
104
+ isSignal: true,
105
+ isRequired: false,
106
+ transformFunction: null
107
+ },
108
+ closeButtonLabel: {
109
+ classPropertyName: "closeButtonLabel",
110
+ publicName: "closeButtonLabel",
111
+ isSignal: true,
112
+ isRequired: false,
113
+ transformFunction: null
114
+ },
115
+ labelledBy: {
116
+ classPropertyName: "labelledBy",
117
+ publicName: "aria-labelledby",
118
+ isSignal: true,
119
+ isRequired: false,
120
+ transformFunction: null
121
+ },
122
+ describedBy: {
123
+ classPropertyName: "describedBy",
124
+ publicName: "aria-describedby",
125
+ isSignal: true,
126
+ isRequired: false,
127
+ transformFunction: null
128
+ },
129
+ role: {
130
+ classPropertyName: "role",
131
+ publicName: "role",
132
+ isSignal: true,
133
+ isRequired: false,
134
+ transformFunction: null
135
+ },
136
+ class: {
137
+ classPropertyName: "class",
138
+ publicName: "class",
139
+ isSignal: true,
140
+ isRequired: false,
141
+ transformFunction: null
142
+ }
143
+ },
144
+ outputs: {
145
+ open: "openChange",
146
+ openedChange: "openedChange"
147
+ },
148
+ host: { properties: {
149
+ "attr.aria-labelledby": "null",
150
+ "attr.aria-describedby": "null"
151
+ } },
152
+ hostDirectives: [{
153
+ directive: i1.ComponentScaleDirective,
154
+ inputs: [
155
+ "radius",
156
+ "radius",
157
+ "density",
158
+ "density"
159
+ ]
160
+ }],
161
+ ngImport: i0,
162
+ template: `
91
163
  <Dialog
92
164
  [(open)]="open"
93
165
  [role]="role()"
@@ -105,27 +177,47 @@ class AlertDialogComponent {
105
177
  >
106
178
  <ng-content />
107
179
  </Dialog>
108
- `, isInline: true, dependencies: [{ kind: "component", type: DialogComponent, selector: "Dialog", inputs: ["open", "closeOnEscape", "closeOnBackdropClick", "backdrop", "showCloseButton", "closeButtonLabel", "aria-labelledby", "aria-describedby", "role", "class"], outputs: ["openChange", "openedChange"] }] });
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogComponent, decorators: [{
111
- type: Component,
112
- args: [{
113
- selector: 'AlertDialog',
114
- hostDirectives: [
115
- {
116
- directive: ComponentScaleDirective,
117
- inputs: ['radius', 'density'],
118
- },
119
- ],
120
- // `<AlertDialog>` is a roleless host element; the consumer's
121
- // aria-labelledby/aria-describedby are re-applied on the inner dialog surface,
122
- // so strip them from the host (axe `aria-prohibited-attr`).
123
- host: {
124
- '[attr.aria-labelledby]': 'null',
125
- '[attr.aria-describedby]': 'null',
126
- },
127
- imports: [DialogComponent],
128
- template: `
180
+ `,
181
+ isInline: true,
182
+ dependencies: [{
183
+ kind: "component",
184
+ type: DialogComponent,
185
+ selector: "Dialog",
186
+ inputs: [
187
+ "open",
188
+ "closeOnEscape",
189
+ "closeOnBackdropClick",
190
+ "backdrop",
191
+ "showCloseButton",
192
+ "closeButtonLabel",
193
+ "aria-labelledby",
194
+ "aria-describedby",
195
+ "role",
196
+ "class"
197
+ ],
198
+ outputs: ["openChange", "openedChange"]
199
+ }]
200
+ });
201
+ };
202
+ i0.ɵɵngDeclareClassMetadata({
203
+ minVersion: "12.0.0",
204
+ version: "22.2.0",
205
+ ngImport: i0,
206
+ type: AlertDialogComponent,
207
+ decorators: [{
208
+ type: Component,
209
+ args: [{
210
+ selector: "AlertDialog",
211
+ hostDirectives: [{
212
+ directive: ComponentScaleDirective,
213
+ inputs: ["radius", "density"]
214
+ }],
215
+ host: {
216
+ "[attr.aria-labelledby]": "null",
217
+ "[attr.aria-describedby]": "null"
218
+ },
219
+ imports: [DialogComponent],
220
+ template: `
129
221
  <Dialog
130
222
  [(open)]="open"
131
223
  [role]="role()"
@@ -143,221 +235,767 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
143
235
  >
144
236
  <ng-content />
145
237
  </Dialog>
146
- `,
147
- }]
148
- }], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], closeButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonLabel", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
149
-
238
+ `
239
+ }]
240
+ }],
241
+ propDecorators: {
242
+ open: [{
243
+ type: i0.Input,
244
+ args: [{
245
+ isSignal: true,
246
+ alias: "open",
247
+ required: false
248
+ }]
249
+ }, {
250
+ type: i0.Output,
251
+ args: ["openChange"]
252
+ }],
253
+ closeOnEscape: [{
254
+ type: i0.Input,
255
+ args: [{
256
+ isSignal: true,
257
+ alias: "closeOnEscape",
258
+ required: false
259
+ }]
260
+ }],
261
+ closeOnBackdropClick: [{
262
+ type: i0.Input,
263
+ args: [{
264
+ isSignal: true,
265
+ alias: "closeOnBackdropClick",
266
+ required: false
267
+ }]
268
+ }],
269
+ backdrop: [{
270
+ type: i0.Input,
271
+ args: [{
272
+ isSignal: true,
273
+ alias: "backdrop",
274
+ required: false
275
+ }]
276
+ }],
277
+ showCloseButton: [{
278
+ type: i0.Input,
279
+ args: [{
280
+ isSignal: true,
281
+ alias: "showCloseButton",
282
+ required: false
283
+ }]
284
+ }],
285
+ closeButtonLabel: [{
286
+ type: i0.Input,
287
+ args: [{
288
+ isSignal: true,
289
+ alias: "closeButtonLabel",
290
+ required: false
291
+ }]
292
+ }],
293
+ labelledBy: [{
294
+ type: i0.Input,
295
+ args: [{
296
+ isSignal: true,
297
+ alias: "aria-labelledby",
298
+ required: false
299
+ }]
300
+ }],
301
+ describedBy: [{
302
+ type: i0.Input,
303
+ args: [{
304
+ isSignal: true,
305
+ alias: "aria-describedby",
306
+ required: false
307
+ }]
308
+ }],
309
+ role: [{
310
+ type: i0.Input,
311
+ args: [{
312
+ isSignal: true,
313
+ alias: "role",
314
+ required: false
315
+ }]
316
+ }],
317
+ class: [{
318
+ type: i0.Input,
319
+ args: [{
320
+ isSignal: true,
321
+ alias: "class",
322
+ required: false
323
+ }]
324
+ }],
325
+ openedChange: [{
326
+ type: i0.Output,
327
+ args: ["openedChange"]
328
+ }]
329
+ }
330
+ });
150
331
  const ALERT_DIALOG_MEDIA_SIZE_CLASSES = {
151
- default: 'h-12 w-12 [&_svg]:h-5 [&_svg]:w-5',
152
- sm: 'h-10 w-10 [&_svg]:h-4.5 [&_svg]:w-4.5',
332
+ default: "h-12 w-12 [&_svg]:h-5 [&_svg]:w-5",
333
+ sm: "h-10 w-10 [&_svg]:h-4.5 [&_svg]:w-4.5"
334
+ };
335
+ var AlertDialogContentComponent = class AlertDialogContentComponent {
336
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
337
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
338
+ alertDialog = inject(AlertDialogComponent, { optional: true });
339
+ classes = computed(() => cn("grid gap-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
340
+ constructor() {
341
+ effect(() => this.alertDialog?.setContentSize(this.size()));
342
+ }
343
+ static ɵfac = i0.ɵɵngDeclareFactory({
344
+ minVersion: "12.0.0",
345
+ version: "22.2.0",
346
+ ngImport: i0,
347
+ type: AlertDialogContentComponent,
348
+ deps: [],
349
+ target: i0.ɵɵFactoryTarget.Component
350
+ });
351
+ static ɵcmp = i0.ɵɵngDeclareComponent({
352
+ minVersion: "17.1.0",
353
+ version: "22.2.0",
354
+ type: AlertDialogContentComponent,
355
+ isStandalone: true,
356
+ selector: "AlertDialogContent",
357
+ inputs: {
358
+ size: {
359
+ classPropertyName: "size",
360
+ publicName: "size",
361
+ isSignal: true,
362
+ isRequired: false,
363
+ transformFunction: null
364
+ },
365
+ class: {
366
+ classPropertyName: "class",
367
+ publicName: "class",
368
+ isSignal: true,
369
+ isRequired: false,
370
+ transformFunction: null
371
+ }
372
+ },
373
+ host: { properties: {
374
+ "class": "classes()",
375
+ "attr.data-size": "size()"
376
+ } },
377
+ ngImport: i0,
378
+ template: `<ng-content />`,
379
+ isInline: true
380
+ });
381
+ };
382
+ i0.ɵɵngDeclareClassMetadata({
383
+ minVersion: "12.0.0",
384
+ version: "22.2.0",
385
+ ngImport: i0,
386
+ type: AlertDialogContentComponent,
387
+ decorators: [{
388
+ type: Component,
389
+ args: [{
390
+ selector: "AlertDialogContent",
391
+ host: {
392
+ "[class]": "classes()",
393
+ "[attr.data-size]": "size()"
394
+ },
395
+ template: `<ng-content />`
396
+ }]
397
+ }],
398
+ ctorParameters: () => [],
399
+ propDecorators: {
400
+ size: [{
401
+ type: i0.Input,
402
+ args: [{
403
+ isSignal: true,
404
+ alias: "size",
405
+ required: false
406
+ }]
407
+ }],
408
+ class: [{
409
+ type: i0.Input,
410
+ args: [{
411
+ isSignal: true,
412
+ alias: "class",
413
+ required: false
414
+ }]
415
+ }]
416
+ }
417
+ });
418
+ var AlertDialogHeaderComponent = class AlertDialogHeaderComponent {
419
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
420
+ classes = computed(() => cn("flex flex-col gap-2 text-center sm:text-left", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
421
+ static ɵfac = i0.ɵɵngDeclareFactory({
422
+ minVersion: "12.0.0",
423
+ version: "22.2.0",
424
+ ngImport: i0,
425
+ type: AlertDialogHeaderComponent,
426
+ deps: [],
427
+ target: i0.ɵɵFactoryTarget.Component
428
+ });
429
+ static ɵcmp = i0.ɵɵngDeclareComponent({
430
+ minVersion: "17.1.0",
431
+ version: "22.2.0",
432
+ type: AlertDialogHeaderComponent,
433
+ isStandalone: true,
434
+ selector: "AlertDialogHeader",
435
+ inputs: { class: {
436
+ classPropertyName: "class",
437
+ publicName: "class",
438
+ isSignal: true,
439
+ isRequired: false,
440
+ transformFunction: null
441
+ } },
442
+ host: { properties: { "class": "classes()" } },
443
+ ngImport: i0,
444
+ template: `<ng-content />`,
445
+ isInline: true
446
+ });
447
+ };
448
+ i0.ɵɵngDeclareClassMetadata({
449
+ minVersion: "12.0.0",
450
+ version: "22.2.0",
451
+ ngImport: i0,
452
+ type: AlertDialogHeaderComponent,
453
+ decorators: [{
454
+ type: Component,
455
+ args: [{
456
+ selector: "AlertDialogHeader",
457
+ host: { "[class]": "classes()" },
458
+ template: `<ng-content />`
459
+ }]
460
+ }],
461
+ propDecorators: { class: [{
462
+ type: i0.Input,
463
+ args: [{
464
+ isSignal: true,
465
+ alias: "class",
466
+ required: false
467
+ }]
468
+ }] }
469
+ });
470
+ var AlertDialogTitleComponent = class AlertDialogTitleComponent {
471
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
472
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
473
+ autoId = injectUniqueId("alert-dialog-title");
474
+ alertDialog = inject(AlertDialogComponent, { optional: true });
475
+ resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
476
+ classes = computed(() => cn("text-lg font-semibold leading-none tracking-tight", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
477
+ constructor() {
478
+ effect(() => this.alertDialog?.registerTitleId(this.resolvedId()));
479
+ inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterTitleId(this.resolvedId()));
480
+ }
481
+ static ɵfac = i0.ɵɵngDeclareFactory({
482
+ minVersion: "12.0.0",
483
+ version: "22.2.0",
484
+ ngImport: i0,
485
+ type: AlertDialogTitleComponent,
486
+ deps: [],
487
+ target: i0.ɵɵFactoryTarget.Component
488
+ });
489
+ static ɵcmp = i0.ɵɵngDeclareComponent({
490
+ minVersion: "17.1.0",
491
+ version: "22.2.0",
492
+ type: AlertDialogTitleComponent,
493
+ isStandalone: true,
494
+ selector: "AlertDialogTitle, h2[AlertDialogTitle]",
495
+ inputs: {
496
+ id: {
497
+ classPropertyName: "id",
498
+ publicName: "id",
499
+ isSignal: true,
500
+ isRequired: false,
501
+ transformFunction: null
502
+ },
503
+ class: {
504
+ classPropertyName: "class",
505
+ publicName: "class",
506
+ isSignal: true,
507
+ isRequired: false,
508
+ transformFunction: null
509
+ }
510
+ },
511
+ host: { properties: {
512
+ "class": "classes()",
513
+ "attr.id": "resolvedId()"
514
+ } },
515
+ ngImport: i0,
516
+ template: `<ng-content />`,
517
+ isInline: true
518
+ });
519
+ };
520
+ i0.ɵɵngDeclareClassMetadata({
521
+ minVersion: "12.0.0",
522
+ version: "22.2.0",
523
+ ngImport: i0,
524
+ type: AlertDialogTitleComponent,
525
+ decorators: [{
526
+ type: Component,
527
+ args: [{
528
+ selector: "AlertDialogTitle, h2[AlertDialogTitle]",
529
+ host: {
530
+ "[class]": "classes()",
531
+ "[attr.id]": "resolvedId()"
532
+ },
533
+ template: `<ng-content />`
534
+ }]
535
+ }],
536
+ ctorParameters: () => [],
537
+ propDecorators: {
538
+ id: [{
539
+ type: i0.Input,
540
+ args: [{
541
+ isSignal: true,
542
+ alias: "id",
543
+ required: false
544
+ }]
545
+ }],
546
+ class: [{
547
+ type: i0.Input,
548
+ args: [{
549
+ isSignal: true,
550
+ alias: "class",
551
+ required: false
552
+ }]
553
+ }]
554
+ }
555
+ });
556
+ var AlertDialogDescriptionComponent = class AlertDialogDescriptionComponent {
557
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
558
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
559
+ autoId = injectUniqueId("alert-dialog-description");
560
+ alertDialog = inject(AlertDialogComponent, { optional: true });
561
+ resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
562
+ classes = computed(() => cn("text-sm leading-6 text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
563
+ constructor() {
564
+ effect(() => this.alertDialog?.registerDescriptionId(this.resolvedId()));
565
+ inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterDescriptionId(this.resolvedId()));
566
+ }
567
+ static ɵfac = i0.ɵɵngDeclareFactory({
568
+ minVersion: "12.0.0",
569
+ version: "22.2.0",
570
+ ngImport: i0,
571
+ type: AlertDialogDescriptionComponent,
572
+ deps: [],
573
+ target: i0.ɵɵFactoryTarget.Component
574
+ });
575
+ static ɵcmp = i0.ɵɵngDeclareComponent({
576
+ minVersion: "17.1.0",
577
+ version: "22.2.0",
578
+ type: AlertDialogDescriptionComponent,
579
+ isStandalone: true,
580
+ selector: "AlertDialogDescription, p[AlertDialogDescription]",
581
+ inputs: {
582
+ id: {
583
+ classPropertyName: "id",
584
+ publicName: "id",
585
+ isSignal: true,
586
+ isRequired: false,
587
+ transformFunction: null
588
+ },
589
+ class: {
590
+ classPropertyName: "class",
591
+ publicName: "class",
592
+ isSignal: true,
593
+ isRequired: false,
594
+ transformFunction: null
595
+ }
596
+ },
597
+ host: { properties: {
598
+ "class": "classes()",
599
+ "attr.id": "resolvedId()"
600
+ } },
601
+ ngImport: i0,
602
+ template: `<ng-content />`,
603
+ isInline: true
604
+ });
605
+ };
606
+ i0.ɵɵngDeclareClassMetadata({
607
+ minVersion: "12.0.0",
608
+ version: "22.2.0",
609
+ ngImport: i0,
610
+ type: AlertDialogDescriptionComponent,
611
+ decorators: [{
612
+ type: Component,
613
+ args: [{
614
+ selector: "AlertDialogDescription, p[AlertDialogDescription]",
615
+ host: {
616
+ "[class]": "classes()",
617
+ "[attr.id]": "resolvedId()"
618
+ },
619
+ template: `<ng-content />`
620
+ }]
621
+ }],
622
+ ctorParameters: () => [],
623
+ propDecorators: {
624
+ id: [{
625
+ type: i0.Input,
626
+ args: [{
627
+ isSignal: true,
628
+ alias: "id",
629
+ required: false
630
+ }]
631
+ }],
632
+ class: [{
633
+ type: i0.Input,
634
+ args: [{
635
+ isSignal: true,
636
+ alias: "class",
637
+ required: false
638
+ }]
639
+ }]
640
+ }
641
+ });
642
+ var AlertDialogMediaComponent = class AlertDialogMediaComponent {
643
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
644
+ alertDialog = inject(AlertDialogComponent, { optional: true });
645
+ classes = computed(() => cn("mx-auto flex shrink-0 items-center justify-center rounded-full border border-border bg-muted/60 text-foreground sm:mx-0", ALERT_DIALOG_MEDIA_SIZE_CLASSES[this.alertDialog?.resolvedSize() ?? "default"], this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
646
+ static ɵfac = i0.ɵɵngDeclareFactory({
647
+ minVersion: "12.0.0",
648
+ version: "22.2.0",
649
+ ngImport: i0,
650
+ type: AlertDialogMediaComponent,
651
+ deps: [],
652
+ target: i0.ɵɵFactoryTarget.Component
653
+ });
654
+ static ɵcmp = i0.ɵɵngDeclareComponent({
655
+ minVersion: "17.1.0",
656
+ version: "22.2.0",
657
+ type: AlertDialogMediaComponent,
658
+ isStandalone: true,
659
+ selector: "AlertDialogMedia",
660
+ inputs: { class: {
661
+ classPropertyName: "class",
662
+ publicName: "class",
663
+ isSignal: true,
664
+ isRequired: false,
665
+ transformFunction: null
666
+ } },
667
+ host: { properties: { "class": "classes()" } },
668
+ ngImport: i0,
669
+ template: `<ng-content />`,
670
+ isInline: true
671
+ });
672
+ };
673
+ i0.ɵɵngDeclareClassMetadata({
674
+ minVersion: "12.0.0",
675
+ version: "22.2.0",
676
+ ngImport: i0,
677
+ type: AlertDialogMediaComponent,
678
+ decorators: [{
679
+ type: Component,
680
+ args: [{
681
+ selector: "AlertDialogMedia",
682
+ host: { "[class]": "classes()" },
683
+ template: `<ng-content />`
684
+ }]
685
+ }],
686
+ propDecorators: { class: [{
687
+ type: i0.Input,
688
+ args: [{
689
+ isSignal: true,
690
+ alias: "class",
691
+ required: false
692
+ }]
693
+ }] }
694
+ });
695
+ var AlertDialogFooterComponent = class AlertDialogFooterComponent {
696
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
697
+ classes = computed(() => cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
698
+ static ɵfac = i0.ɵɵngDeclareFactory({
699
+ minVersion: "12.0.0",
700
+ version: "22.2.0",
701
+ ngImport: i0,
702
+ type: AlertDialogFooterComponent,
703
+ deps: [],
704
+ target: i0.ɵɵFactoryTarget.Component
705
+ });
706
+ static ɵcmp = i0.ɵɵngDeclareComponent({
707
+ minVersion: "17.1.0",
708
+ version: "22.2.0",
709
+ type: AlertDialogFooterComponent,
710
+ isStandalone: true,
711
+ selector: "AlertDialogFooter",
712
+ inputs: { class: {
713
+ classPropertyName: "class",
714
+ publicName: "class",
715
+ isSignal: true,
716
+ isRequired: false,
717
+ transformFunction: null
718
+ } },
719
+ host: { properties: { "class": "classes()" } },
720
+ ngImport: i0,
721
+ template: `<ng-content />`,
722
+ isInline: true
723
+ });
724
+ };
725
+ i0.ɵɵngDeclareClassMetadata({
726
+ minVersion: "12.0.0",
727
+ version: "22.2.0",
728
+ ngImport: i0,
729
+ type: AlertDialogFooterComponent,
730
+ decorators: [{
731
+ type: Component,
732
+ args: [{
733
+ selector: "AlertDialogFooter",
734
+ host: { "[class]": "classes()" },
735
+ template: `<ng-content />`
736
+ }]
737
+ }],
738
+ propDecorators: { class: [{
739
+ type: i0.Input,
740
+ args: [{
741
+ isSignal: true,
742
+ alias: "class",
743
+ required: false
744
+ }]
745
+ }] }
746
+ });
747
+ var AlertDialogCancelComponent = class AlertDialogCancelComponent {
748
+ variant = input("outline", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
749
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
750
+ closeOnClick = input(true, ...ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []);
751
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
752
+ host = inject(ElementRef);
753
+ alertDialog = inject(AlertDialogComponent, { optional: true });
754
+ classes = computed(() => cn(buttonVariants({
755
+ variant: this.variant(),
756
+ size: this.size()
757
+ }), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
758
+ buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === "button" ? "button" : null, ...ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []);
759
+ handleClick() {
760
+ if (this.closeOnClick()) this.alertDialog?.close();
761
+ }
762
+ static ɵfac = i0.ɵɵngDeclareFactory({
763
+ minVersion: "12.0.0",
764
+ version: "22.2.0",
765
+ ngImport: i0,
766
+ type: AlertDialogCancelComponent,
767
+ deps: [],
768
+ target: i0.ɵɵFactoryTarget.Component
769
+ });
770
+ static ɵcmp = i0.ɵɵngDeclareComponent({
771
+ minVersion: "17.1.0",
772
+ version: "22.2.0",
773
+ type: AlertDialogCancelComponent,
774
+ isStandalone: true,
775
+ selector: "button[AlertDialogCancel], a[AlertDialogCancel]",
776
+ inputs: {
777
+ variant: {
778
+ classPropertyName: "variant",
779
+ publicName: "variant",
780
+ isSignal: true,
781
+ isRequired: false,
782
+ transformFunction: null
783
+ },
784
+ size: {
785
+ classPropertyName: "size",
786
+ publicName: "size",
787
+ isSignal: true,
788
+ isRequired: false,
789
+ transformFunction: null
790
+ },
791
+ closeOnClick: {
792
+ classPropertyName: "closeOnClick",
793
+ publicName: "closeOnClick",
794
+ isSignal: true,
795
+ isRequired: false,
796
+ transformFunction: null
797
+ },
798
+ class: {
799
+ classPropertyName: "class",
800
+ publicName: "class",
801
+ isSignal: true,
802
+ isRequired: false,
803
+ transformFunction: null
804
+ }
805
+ },
806
+ host: {
807
+ listeners: { "click": "handleClick()" },
808
+ properties: {
809
+ "class": "classes()",
810
+ "attr.data-size": "size()",
811
+ "attr.data-variant": "variant()",
812
+ "attr.type": "buttonType()"
813
+ }
814
+ },
815
+ ngImport: i0,
816
+ template: `<ng-content />`,
817
+ isInline: true
818
+ });
819
+ };
820
+ i0.ɵɵngDeclareClassMetadata({
821
+ minVersion: "12.0.0",
822
+ version: "22.2.0",
823
+ ngImport: i0,
824
+ type: AlertDialogCancelComponent,
825
+ decorators: [{
826
+ type: Component,
827
+ args: [{
828
+ selector: "button[AlertDialogCancel], a[AlertDialogCancel]",
829
+ host: {
830
+ "[class]": "classes()",
831
+ "[attr.data-size]": "size()",
832
+ "[attr.data-variant]": "variant()",
833
+ "[attr.type]": "buttonType()",
834
+ "(click)": "handleClick()"
835
+ },
836
+ template: `<ng-content />`
837
+ }]
838
+ }],
839
+ propDecorators: {
840
+ variant: [{
841
+ type: i0.Input,
842
+ args: [{
843
+ isSignal: true,
844
+ alias: "variant",
845
+ required: false
846
+ }]
847
+ }],
848
+ size: [{
849
+ type: i0.Input,
850
+ args: [{
851
+ isSignal: true,
852
+ alias: "size",
853
+ required: false
854
+ }]
855
+ }],
856
+ closeOnClick: [{
857
+ type: i0.Input,
858
+ args: [{
859
+ isSignal: true,
860
+ alias: "closeOnClick",
861
+ required: false
862
+ }]
863
+ }],
864
+ class: [{
865
+ type: i0.Input,
866
+ args: [{
867
+ isSignal: true,
868
+ alias: "class",
869
+ required: false
870
+ }]
871
+ }]
872
+ }
873
+ });
874
+ var AlertDialogActionComponent = class AlertDialogActionComponent {
875
+ variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
876
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
877
+ closeOnClick = input(true, ...ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []);
878
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
879
+ host = inject(ElementRef);
880
+ alertDialog = inject(AlertDialogComponent, { optional: true });
881
+ classes = computed(() => cn(buttonVariants({
882
+ variant: this.variant(),
883
+ size: this.size()
884
+ }), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
885
+ buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === "button" ? "button" : null, ...ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []);
886
+ handleClick() {
887
+ if (this.closeOnClick()) this.alertDialog?.close();
888
+ }
889
+ static ɵfac = i0.ɵɵngDeclareFactory({
890
+ minVersion: "12.0.0",
891
+ version: "22.2.0",
892
+ ngImport: i0,
893
+ type: AlertDialogActionComponent,
894
+ deps: [],
895
+ target: i0.ɵɵFactoryTarget.Component
896
+ });
897
+ static ɵcmp = i0.ɵɵngDeclareComponent({
898
+ minVersion: "17.1.0",
899
+ version: "22.2.0",
900
+ type: AlertDialogActionComponent,
901
+ isStandalone: true,
902
+ selector: "button[AlertDialogAction], a[AlertDialogAction]",
903
+ inputs: {
904
+ variant: {
905
+ classPropertyName: "variant",
906
+ publicName: "variant",
907
+ isSignal: true,
908
+ isRequired: false,
909
+ transformFunction: null
910
+ },
911
+ size: {
912
+ classPropertyName: "size",
913
+ publicName: "size",
914
+ isSignal: true,
915
+ isRequired: false,
916
+ transformFunction: null
917
+ },
918
+ closeOnClick: {
919
+ classPropertyName: "closeOnClick",
920
+ publicName: "closeOnClick",
921
+ isSignal: true,
922
+ isRequired: false,
923
+ transformFunction: null
924
+ },
925
+ class: {
926
+ classPropertyName: "class",
927
+ publicName: "class",
928
+ isSignal: true,
929
+ isRequired: false,
930
+ transformFunction: null
931
+ }
932
+ },
933
+ host: {
934
+ listeners: { "click": "handleClick()" },
935
+ properties: {
936
+ "class": "classes()",
937
+ "attr.data-size": "size()",
938
+ "attr.data-variant": "variant()",
939
+ "attr.type": "buttonType()"
940
+ }
941
+ },
942
+ ngImport: i0,
943
+ template: `<ng-content />`,
944
+ isInline: true
945
+ });
153
946
  };
154
- class AlertDialogContentComponent {
155
- size = input('default', /* @ts-ignore */
156
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
157
- class = input('', /* @ts-ignore */
158
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
159
- alertDialog = inject(AlertDialogComponent, { optional: true });
160
- classes = computed(() => cn('grid gap-4', this.class()), /* @ts-ignore */
161
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
162
- constructor() {
163
- effect(() => this.alertDialog?.setContentSize(this.size()));
164
- }
165
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
166
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogContentComponent, isStandalone: true, selector: "AlertDialogContent", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-size": "size()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
167
- }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogContentComponent, decorators: [{
169
- type: Component,
170
- args: [{
171
- selector: 'AlertDialogContent',
172
- host: {
173
- '[class]': 'classes()',
174
- '[attr.data-size]': 'size()',
175
- },
176
- template: `<ng-content />`,
177
- }]
178
- }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
179
- class AlertDialogHeaderComponent {
180
- class = input('', /* @ts-ignore */
181
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
182
- classes = computed(() => cn('flex flex-col gap-2 text-center sm:text-left', this.class()), /* @ts-ignore */
183
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
184
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
185
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogHeaderComponent, isStandalone: true, selector: "AlertDialogHeader", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
186
- }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogHeaderComponent, decorators: [{
188
- type: Component,
189
- args: [{
190
- selector: 'AlertDialogHeader',
191
- host: { '[class]': 'classes()' },
192
- template: `<ng-content />`,
193
- }]
194
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
195
- class AlertDialogTitleComponent {
196
- /** Explicit id override; when omitted a document-unique id is generated. */
197
- id = input(null, /* @ts-ignore */
198
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
199
- class = input('', /* @ts-ignore */
200
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
201
- autoId = injectUniqueId('alert-dialog-title');
202
- alertDialog = inject(AlertDialogComponent, { optional: true });
203
- /** The id rendered on the element, used by the parent alert dialog for aria-labelledby. */
204
- resolvedId = computed(() => this.id() ?? this.autoId, /* @ts-ignore */
205
- ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
206
- classes = computed(() => cn('text-lg font-semibold leading-none tracking-tight', this.class()), /* @ts-ignore */
207
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
208
- constructor() {
209
- effect(() => this.alertDialog?.registerTitleId(this.resolvedId()));
210
- inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterTitleId(this.resolvedId()));
211
- }
212
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
213
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogTitleComponent, isStandalone: true, selector: "AlertDialogTitle, h2[AlertDialogTitle]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
214
- }
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogTitleComponent, decorators: [{
216
- type: Component,
217
- args: [{
218
- selector: 'AlertDialogTitle, h2[AlertDialogTitle]',
219
- host: { '[class]': 'classes()', '[attr.id]': 'resolvedId()' },
220
- template: `<ng-content />`,
221
- }]
222
- }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
223
- class AlertDialogDescriptionComponent {
224
- /** Explicit id override; when omitted a document-unique id is generated. */
225
- id = input(null, /* @ts-ignore */
226
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
227
- class = input('', /* @ts-ignore */
228
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
229
- autoId = injectUniqueId('alert-dialog-description');
230
- alertDialog = inject(AlertDialogComponent, { optional: true });
231
- /** The id rendered on the element, used by the parent alert dialog for aria-describedby. */
232
- resolvedId = computed(() => this.id() ?? this.autoId, /* @ts-ignore */
233
- ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
234
- classes = computed(() => cn('text-sm leading-6 text-muted-foreground', this.class()), /* @ts-ignore */
235
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
236
- constructor() {
237
- effect(() => this.alertDialog?.registerDescriptionId(this.resolvedId()));
238
- inject(DestroyRef).onDestroy(() => this.alertDialog?.unregisterDescriptionId(this.resolvedId()));
239
- }
240
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
241
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogDescriptionComponent, isStandalone: true, selector: "AlertDialogDescription, p[AlertDialogDescription]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
242
- }
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogDescriptionComponent, decorators: [{
244
- type: Component,
245
- args: [{
246
- selector: 'AlertDialogDescription, p[AlertDialogDescription]',
247
- host: { '[class]': 'classes()', '[attr.id]': 'resolvedId()' },
248
- template: `<ng-content />`,
249
- }]
250
- }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
251
- class AlertDialogMediaComponent {
252
- class = input('', /* @ts-ignore */
253
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
254
- alertDialog = inject(AlertDialogComponent, { optional: true });
255
- classes = computed(() => cn('mx-auto flex shrink-0 items-center justify-center rounded-full border border-border bg-muted/60 text-foreground sm:mx-0', ALERT_DIALOG_MEDIA_SIZE_CLASSES[this.alertDialog?.resolvedSize() ?? 'default'], this.class()), /* @ts-ignore */
256
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
257
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogMediaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
258
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogMediaComponent, isStandalone: true, selector: "AlertDialogMedia", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
259
- }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogMediaComponent, decorators: [{
261
- type: Component,
262
- args: [{
263
- selector: 'AlertDialogMedia',
264
- host: { '[class]': 'classes()' },
265
- template: `<ng-content />`,
266
- }]
267
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
268
- class AlertDialogFooterComponent {
269
- class = input('', /* @ts-ignore */
270
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
271
- classes = computed(() => cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2', this.class()), /* @ts-ignore */
272
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
273
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
274
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogFooterComponent, isStandalone: true, selector: "AlertDialogFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
275
- }
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogFooterComponent, decorators: [{
277
- type: Component,
278
- args: [{
279
- selector: 'AlertDialogFooter',
280
- host: { '[class]': 'classes()' },
281
- template: `<ng-content />`,
282
- }]
283
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
284
- class AlertDialogCancelComponent {
285
- variant = input('outline', /* @ts-ignore */
286
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
287
- size = input('default', /* @ts-ignore */
288
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
289
- closeOnClick = input(true, /* @ts-ignore */
290
- ...(ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []));
291
- class = input('', /* @ts-ignore */
292
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
293
- host = inject(ElementRef);
294
- alertDialog = inject(AlertDialogComponent, { optional: true });
295
- classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), /* @ts-ignore */
296
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
297
- buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === 'button' ? 'button' : null, /* @ts-ignore */
298
- ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
299
- handleClick() {
300
- if (this.closeOnClick()) {
301
- this.alertDialog?.close();
302
- }
303
- }
304
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
305
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogCancelComponent, isStandalone: true, selector: "button[AlertDialogCancel], a[AlertDialogCancel]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick()" }, properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.type": "buttonType()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
306
- }
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogCancelComponent, decorators: [{
308
- type: Component,
309
- args: [{
310
- selector: 'button[AlertDialogCancel], a[AlertDialogCancel]',
311
- host: {
312
- '[class]': 'classes()',
313
- '[attr.data-size]': 'size()',
314
- '[attr.data-variant]': 'variant()',
315
- '[attr.type]': 'buttonType()',
316
- '(click)': 'handleClick()',
317
- },
318
- template: `<ng-content />`,
319
- }]
320
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClick", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
321
- class AlertDialogActionComponent {
322
- variant = input('default', /* @ts-ignore */
323
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
324
- size = input('default', /* @ts-ignore */
325
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
326
- closeOnClick = input(true, /* @ts-ignore */
327
- ...(ngDevMode ? [{ debugName: "closeOnClick" }] : /* istanbul ignore next */ []));
328
- class = input('', /* @ts-ignore */
329
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
330
- host = inject(ElementRef);
331
- alertDialog = inject(AlertDialogComponent, { optional: true });
332
- classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), /* @ts-ignore */
333
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
334
- buttonType = computed(() => this.host.nativeElement.tagName.toLowerCase() === 'button' ? 'button' : null, /* @ts-ignore */
335
- ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
336
- handleClick() {
337
- if (this.closeOnClick()) {
338
- this.alertDialog?.close();
339
- }
340
- }
341
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
342
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.6", type: AlertDialogActionComponent, isStandalone: true, selector: "button[AlertDialogAction], a[AlertDialogAction]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick()" }, properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.type": "buttonType()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
343
- }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AlertDialogActionComponent, decorators: [{
345
- type: Component,
346
- args: [{
347
- selector: 'button[AlertDialogAction], a[AlertDialogAction]',
348
- host: {
349
- '[class]': 'classes()',
350
- '[attr.data-size]': 'size()',
351
- '[attr.data-variant]': 'variant()',
352
- '[attr.type]': 'buttonType()',
353
- '(click)': 'handleClick()',
354
- },
355
- template: `<ng-content />`,
356
- }]
357
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClick", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
358
-
359
- /**
360
- * Generated bundle index. Do not edit.
361
- */
362
-
363
- export { AlertDialogActionComponent, AlertDialogCancelComponent, AlertDialogComponent, AlertDialogContentComponent, AlertDialogDescriptionComponent, AlertDialogFooterComponent, AlertDialogHeaderComponent, AlertDialogMediaComponent, AlertDialogTitleComponent };
947
+ i0.ɵɵngDeclareClassMetadata({
948
+ minVersion: "12.0.0",
949
+ version: "22.2.0",
950
+ ngImport: i0,
951
+ type: AlertDialogActionComponent,
952
+ decorators: [{
953
+ type: Component,
954
+ args: [{
955
+ selector: "button[AlertDialogAction], a[AlertDialogAction]",
956
+ host: {
957
+ "[class]": "classes()",
958
+ "[attr.data-size]": "size()",
959
+ "[attr.data-variant]": "variant()",
960
+ "[attr.type]": "buttonType()",
961
+ "(click)": "handleClick()"
962
+ },
963
+ template: `<ng-content />`
964
+ }]
965
+ }],
966
+ propDecorators: {
967
+ variant: [{
968
+ type: i0.Input,
969
+ args: [{
970
+ isSignal: true,
971
+ alias: "variant",
972
+ required: false
973
+ }]
974
+ }],
975
+ size: [{
976
+ type: i0.Input,
977
+ args: [{
978
+ isSignal: true,
979
+ alias: "size",
980
+ required: false
981
+ }]
982
+ }],
983
+ closeOnClick: [{
984
+ type: i0.Input,
985
+ args: [{
986
+ isSignal: true,
987
+ alias: "closeOnClick",
988
+ required: false
989
+ }]
990
+ }],
991
+ class: [{
992
+ type: i0.Input,
993
+ args: [{
994
+ isSignal: true,
995
+ alias: "class",
996
+ required: false
997
+ }]
998
+ }]
999
+ }
1000
+ });
1001
+ export { AlertDialogActionComponent, AlertDialogCancelComponent, AlertDialogComponent, AlertDialogContentComponent, AlertDialogDescriptionComponent, AlertDialogFooterComponent, AlertDialogHeaderComponent, AlertDialogMediaComponent, AlertDialogTitleComponent };