@ngstarter-ui/components 22.3.6 → 22.4.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 (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1,387 +1,683 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ChangeDetectorRef, EventEmitter, ChangeDetectionStrategy, Component, Injector, Injectable, input, Directive } from '@angular/core';
3
- import { Subject, filter, take } from 'rxjs';
4
- import * as i1 from '@angular/cdk/dialog';
5
- import { CdkDialogContainer, DialogModule, Dialog as Dialog$1 } from '@angular/cdk/dialog';
6
- import { filter as filter$1, take as take$1 } from 'rxjs/operators';
7
- import { Button } from '@ngstarter-ui/components/button';
8
- import { Icon } from '@ngstarter-ui/components/icon';
9
-
10
- class DialogConfig {
11
- data = null;
12
- width = '';
13
- height = '';
14
- minWidth;
15
- minHeight;
16
- maxWidth;
17
- maxHeight;
18
- hasBackdrop = true;
19
- backdropClass = 'ngs-dialog-backdrop';
20
- panelClass = '';
21
- disableClose = false;
22
- autoFocus = 'first-tabbable';
23
- restoreFocus = true;
24
- ariaDescribedBy = null;
25
- ariaLabelledBy = null;
26
- ariaLabel = null;
27
- role = 'dialog';
28
- closeOnNavigation = true;
29
- showCloseButton = false;
30
- }
31
- const DIALOG_DATA = new InjectionToken('DialogData');
32
- const DIALOG_DEFAULT_OPTIONS = new InjectionToken('DialogConfig');
33
-
34
- class DialogRef {
35
- _afterClosed = new Subject();
36
- _afterOpened = new Subject();
37
- _backdropClick = new Subject();
38
- _keydownEvents = new Subject();
39
- componentInstance = null;
40
- disableClose;
41
- /** @internal */
42
- _cdkRef;
43
- /** @internal */
44
- _container;
45
- _isClosing = false;
46
- close(dialogResult) {
47
- if (this._isClosing) {
48
- return;
49
- }
50
- this._isClosing = true;
51
- if (this._container && this._cdkRef) {
52
- // Start exit animation for the container
53
- this._container._startExitAnimation();
54
- // Start exit animation for the backdrop
55
- const overlayRef = this._cdkRef.overlayRef;
56
- const backdropElement = overlayRef.backdropElement;
57
- if (backdropElement) {
58
- // Remove both classes that could be forcing opacity: 1
59
- backdropElement.classList.remove('ngs-dialog-backdrop-showing');
60
- backdropElement.classList.remove('cdk-overlay-backdrop-showing');
61
- }
62
- // Wait for the container animation to finish before destroying the overlay
63
- this._container._animationStateChanged
64
- .pipe(filter((event) => event.phaseName === 'done' && event.toState === 'exit'), take(1))
65
- .subscribe(() => {
66
- this._finishClose(dialogResult);
67
- });
68
- // Fallback in case transitionend never fires (e.g. if opacity was already 0 or style didn't apply)
69
- setTimeout(() => {
70
- if (this._isClosing && this._cdkRef) {
71
- this._finishClose(dialogResult);
72
- }
73
- }, 250);
74
- return;
75
- }
76
- this._finishClose(dialogResult);
77
- }
78
- _finishClose(dialogResult) {
79
- if (this._cdkRef) {
80
- const cdkRef = this._cdkRef;
81
- this._cdkRef = null;
82
- cdkRef.close(dialogResult);
83
- }
84
- this._afterClosed.next(dialogResult);
85
- this._afterClosed.complete();
86
- this._afterOpened.complete();
87
- this._backdropClick.complete();
88
- this._keydownEvents.complete();
89
- }
90
- afterClosed() {
91
- return this._afterClosed.asObservable();
92
- }
93
- afterOpened() {
94
- return this._afterOpened.asObservable();
95
- }
96
- backdropClick() {
97
- return this._backdropClick.asObservable();
98
- }
99
- keydownEvents() {
100
- return this._keydownEvents.asObservable();
101
- }
102
- __fireAfterOpened() {
103
- this._afterOpened.next();
104
- }
105
- __fireBackdropClick(event) {
106
- this._backdropClick.next(event);
107
- }
108
- __fireKeydownEvent(event) {
109
- this._keydownEvents.next(event);
110
- }
111
- }
112
-
113
- class DialogContainer extends CdkDialogContainer {
114
- _cdr = inject(ChangeDetectorRef);
115
- _closeHandler;
116
- get showCloseButton() {
117
- return Boolean(this._config.showCloseButton);
118
- }
119
- /** State of the dialog animation. */
120
- _animationState = 'void';
121
- /** Emits when an animation state changes. */
122
- _animationStateChanged = new EventEmitter();
123
- ngOnInit() {
124
- const config = this._config;
125
- if (config) {
126
- const element = this._elementRef.nativeElement;
127
- if (config.maxWidth) {
128
- element.style.setProperty('--ngs-dialog-container-max-width', this._formatValue(config.maxWidth));
129
- }
130
- if (config.minWidth) {
131
- element.style.setProperty('--ngs-dialog-container-min-width', this._formatValue(config.minWidth));
132
- }
133
- if (config.width) {
134
- element.style.setProperty('--ngs-dialog-container-max-width', 'none');
135
- }
136
- }
137
- }
138
- _formatValue(value) {
139
- return typeof value === 'number' ? `${value}px` : value;
140
- }
141
- _onTransitionEnd(event) {
142
- if (event.propertyName === 'opacity' && event.target === event.currentTarget) {
143
- this._animationStateChanged.emit({
144
- fromState: this._animationState === 'enter' ? 'void' : 'enter',
145
- toState: this._animationState,
146
- totalTime: 150,
147
- phaseName: 'done',
148
- });
149
- }
150
- }
151
- /** Starts the dialog enter animation. */
152
- _startEnterAnimation() {
153
- this._animationState = 'enter';
154
- this._cdr.markForCheck();
155
- }
156
- /** Starts the dialog exit animation. */
157
- _startExitAnimation() {
158
- this._animationState = 'exit';
159
- this._cdr.markForCheck();
160
- }
161
- _setCloseHandler(handler) {
162
- this._closeHandler = handler;
163
- }
164
- close() {
165
- this._closeHandler?.();
166
- }
167
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
168
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: DialogContainer, isStandalone: true, selector: "ngs-dialog-container", host: { listeners: { "transitionend": "_onTransitionEnd($event)" }, properties: { "class.ngs-dialog-container-enter": "_animationState === \"enter\"", "class.ngs-dialog-container-exit": "_animationState === \"exit\"" }, classAttribute: "ngs-dialog-container" }, exportAs: ["ngsDialogContainer"], usesInheritance: true, ngImport: i0, template: "@if (showCloseButton) {\n <span class=\"close\">\n <button type=\"button\" ngsIconButton aria-label=\"Close dialog\" (click)=\"close()\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </span>\n}\n<ng-template cdkPortalOutlet />\n", styles: [":host{background:var(--ngs-dialog-background, var(--ngs-dialog-bg));color:var(--ngs-dialog-color, var(--ngs-color-on-surface));border-radius:var(--ngs-dialog-border-radius, var(--ngs-dialog-radius));box-shadow:var(--ngs-dialog-box-shadow, var(--ngs-dialog-shadow));max-width:var(--ngs-dialog-container-max-width, 560px);min-width:var(--ngs-dialog-container-min-width, 280px);width:100%;height:100%;max-height:inherit;min-height:inherit;box-sizing:border-box;outline:0;overflow:hidden;margin:auto;opacity:0;transform:scale(.8);position:relative;display:flex;flex-direction:column}:host.ngs-dialog-container-enter{opacity:1;transform:scale(1);transition:opacity linear .15s,transform .2s cubic-bezier(0,0,.2,1)}:host.ngs-dialog-container-exit{opacity:0}:host .close:empty{display:none}:host .close{width:max-content!important;height:max-content!important;position:absolute;right:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 2)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "directive", type: i1.ɵɵCdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
169
- }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogContainer, decorators: [{
171
- type: Component,
172
- args: [{ selector: 'ngs-dialog-container', exportAs: 'ngsDialogContainer', imports: [
173
- DialogModule,
174
- Button,
175
- Icon,
176
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
177
- 'class': 'ngs-dialog-container',
178
- '[class.ngs-dialog-container-enter]': '_animationState === "enter"',
179
- '[class.ngs-dialog-container-exit]': '_animationState === "exit"',
180
- '(transitionend)': '_onTransitionEnd($event)',
181
- }, template: "@if (showCloseButton) {\n <span class=\"close\">\n <button type=\"button\" ngsIconButton aria-label=\"Close dialog\" (click)=\"close()\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </span>\n}\n<ng-template cdkPortalOutlet />\n", styles: [":host{background:var(--ngs-dialog-background, var(--ngs-dialog-bg));color:var(--ngs-dialog-color, var(--ngs-color-on-surface));border-radius:var(--ngs-dialog-border-radius, var(--ngs-dialog-radius));box-shadow:var(--ngs-dialog-box-shadow, var(--ngs-dialog-shadow));max-width:var(--ngs-dialog-container-max-width, 560px);min-width:var(--ngs-dialog-container-min-width, 280px);width:100%;height:100%;max-height:inherit;min-height:inherit;box-sizing:border-box;outline:0;overflow:hidden;margin:auto;opacity:0;transform:scale(.8);position:relative;display:flex;flex-direction:column}:host.ngs-dialog-container-enter{opacity:1;transform:scale(1);transition:opacity linear .15s,transform .2s cubic-bezier(0,0,.2,1)}:host.ngs-dialog-container-exit{opacity:0}:host .close:empty{display:none}:host .close{width:max-content!important;height:max-content!important;position:absolute;right:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 2)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
182
- }] });
183
-
184
- class Dialog {
185
- _cdkDialog = inject(Dialog$1);
186
- _injector = inject(Injector);
187
- _defaultOptions = inject(DIALOG_DEFAULT_OPTIONS, { optional: true });
188
- open(componentOrTemplateRef, config) {
189
- const dialogRef = new DialogRef();
190
- const mergedConfig = { ...new DialogConfig(), ...this._defaultOptions, ...config };
191
- // Set default maxWidth if not specified and no width is set
192
- if (!mergedConfig.maxWidth && !mergedConfig.width) {
193
- mergedConfig.maxWidth = 560;
194
- }
195
- // Set default minWidth if not specified
196
- if (!mergedConfig.minWidth) {
197
- mergedConfig.minWidth = 280;
198
- }
199
- let container;
200
- const cdkConfig = {
201
- ...mergedConfig,
202
- container: DialogContainer,
203
- panelClass: this._buildPanelClass(mergedConfig?.panelClass),
204
- backdropClass: this._buildBackdropClass(mergedConfig?.backdropClass),
205
- providers: (ref, config, _container) => {
206
- container = _container;
207
- dialogRef._container = _container;
208
- return [
209
- { provide: DialogRef, useValue: dialogRef },
210
- { provide: DIALOG_DATA, useValue: config?.data }
211
- ];
212
- }
213
- };
214
- const cdkRef = this._cdkDialog.open(componentOrTemplateRef, cdkConfig);
215
- dialogRef.disableClose = mergedConfig?.disableClose;
216
- dialogRef._cdkRef = cdkRef;
217
- if (container) {
218
- container._setCloseHandler(() => dialogRef.close());
219
- container._animationStateChanged
220
- .pipe(filter$1((event) => event.phaseName === 'done' && event.toState === 'enter'), take$1(1))
221
- .subscribe(() => {
222
- dialogRef.__fireAfterOpened();
223
- });
224
- // Use double rAF to ensure the browser has rendered the initial state (opacity: 0)
225
- // before we trigger the transition to opacity: 1.
226
- requestAnimationFrame(() => {
227
- requestAnimationFrame(() => {
228
- if (container) {
229
- container._startEnterAnimation();
230
- }
231
- const overlayRef = cdkRef.overlayRef;
232
- if (overlayRef.backdropElement) {
233
- overlayRef.backdropElement.classList.add('ngs-dialog-backdrop-showing');
234
- }
235
- });
236
- });
237
- }
238
- cdkRef.closed.subscribe(result => {
239
- if (dialogRef._cdkRef) {
240
- dialogRef._cdkRef = null;
241
- dialogRef.close(result);
242
- }
243
- });
244
- cdkRef.backdropClick.subscribe(event => {
245
- dialogRef.__fireBackdropClick(event);
246
- if (!dialogRef.disableClose) {
247
- dialogRef.close();
248
- }
249
- });
250
- cdkRef.keydownEvents.subscribe(event => {
251
- dialogRef.__fireKeydownEvent(event);
252
- if (event.key === 'Escape' && !dialogRef.disableClose) {
253
- dialogRef.close();
254
- }
255
- });
256
- return dialogRef;
257
- }
258
- close(dialogRef, result) {
259
- dialogRef.close(result);
260
- }
261
- closeAll() {
262
- this._cdkDialog.closeAll();
263
- }
264
- _buildPanelClass(panelClass) {
265
- const classes = ['ngs-dialog-panel', 'overflow-hidden', 'flex', 'flex-col'];
266
- if (Array.isArray(panelClass)) {
267
- classes.push(...panelClass);
268
- }
269
- else if (panelClass) {
270
- classes.push(panelClass);
271
- }
272
- return classes;
273
- }
274
- _buildBackdropClass(backdropClass) {
275
- const classes = ['ngs-dialog-backdrop'];
276
- if (Array.isArray(backdropClass)) {
277
- classes.push(...backdropClass);
278
- }
279
- else if (backdropClass) {
280
- classes.push(backdropClass);
281
- }
282
- return classes;
283
- }
284
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
285
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Dialog, providedIn: 'root' });
286
- }
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Dialog, decorators: [{
288
- type: Injectable,
289
- args: [{
290
- providedIn: 'root'
291
- }]
292
- }] });
293
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, EventEmitter, Injectable, InjectionToken, Injector, inject, input } from "@angular/core";
3
+ import { Icon } from "@ngstarter-ui/components/icon";
4
+ import { Button } from "@ngstarter-ui/components/button";
5
+ import { Subject, filter, take } from "rxjs";
6
+ import * as i1 from "@angular/cdk/dialog";
7
+ import { CdkDialogContainer, Dialog as Dialog$1, DialogModule } from "@angular/cdk/dialog";
8
+ import { filter as filter$1, take as take$1 } from "rxjs/operators";
9
+ var DialogConfig = class {
10
+ data = null;
11
+ width = "";
12
+ height = "";
13
+ minWidth;
14
+ minHeight;
15
+ maxWidth;
16
+ maxHeight;
17
+ hasBackdrop = true;
18
+ backdropClass = "ngs-dialog-backdrop";
19
+ panelClass = "";
20
+ disableClose = false;
21
+ autoFocus = "first-tabbable";
22
+ restoreFocus = true;
23
+ ariaDescribedBy = null;
24
+ ariaLabelledBy = null;
25
+ ariaLabel = null;
26
+ role = "dialog";
27
+ closeOnNavigation = true;
28
+ showCloseButton = false;
29
+ };
30
+ const DIALOG_DATA = new InjectionToken("DialogData");
31
+ const DIALOG_DEFAULT_OPTIONS = new InjectionToken("DialogConfig");
32
+ var DialogRef = class {
33
+ _afterClosed = new Subject();
34
+ _afterOpened = new Subject();
35
+ _backdropClick = new Subject();
36
+ _keydownEvents = new Subject();
37
+ componentInstance = null;
38
+ disableClose;
39
+ _cdkRef;
40
+ _container;
41
+ _isClosing = false;
42
+ close(dialogResult) {
43
+ if (this._isClosing) return;
44
+ this._isClosing = true;
45
+ if (this._container && this._cdkRef) {
46
+ this._container._startExitAnimation();
47
+ const backdropElement = this._cdkRef.overlayRef.backdropElement;
48
+ if (backdropElement) {
49
+ backdropElement.classList.remove("ngs-dialog-backdrop-showing");
50
+ backdropElement.classList.remove("cdk-overlay-backdrop-showing");
51
+ }
52
+ this._container._animationStateChanged.pipe(filter((event) => event.phaseName === "done" && event.toState === "exit"), take(1)).subscribe(() => {
53
+ this._finishClose(dialogResult);
54
+ });
55
+ setTimeout(() => {
56
+ if (this._isClosing && this._cdkRef) this._finishClose(dialogResult);
57
+ }, 250);
58
+ return;
59
+ }
60
+ this._finishClose(dialogResult);
61
+ }
62
+ _finishClose(dialogResult) {
63
+ if (this._cdkRef) {
64
+ const cdkRef = this._cdkRef;
65
+ this._cdkRef = null;
66
+ cdkRef.close(dialogResult);
67
+ }
68
+ this._afterClosed.next(dialogResult);
69
+ this._afterClosed.complete();
70
+ this._afterOpened.complete();
71
+ this._backdropClick.complete();
72
+ this._keydownEvents.complete();
73
+ }
74
+ afterClosed() {
75
+ return this._afterClosed.asObservable();
76
+ }
77
+ afterOpened() {
78
+ return this._afterOpened.asObservable();
79
+ }
80
+ backdropClick() {
81
+ return this._backdropClick.asObservable();
82
+ }
83
+ keydownEvents() {
84
+ return this._keydownEvents.asObservable();
85
+ }
86
+ __fireAfterOpened() {
87
+ this._afterOpened.next();
88
+ }
89
+ __fireBackdropClick(event) {
90
+ this._backdropClick.next(event);
91
+ }
92
+ __fireKeydownEvent(event) {
93
+ this._keydownEvents.next(event);
94
+ }
95
+ };
96
+ var DialogContainer = class DialogContainer extends CdkDialogContainer {
97
+ _cdr = inject(ChangeDetectorRef);
98
+ _closeHandler;
99
+ get showCloseButton() {
100
+ return Boolean(this._config.showCloseButton);
101
+ }
102
+ _animationState = "void";
103
+ _animationStateChanged = new EventEmitter();
104
+ ngOnInit() {
105
+ const config = this._config;
106
+ if (config) {
107
+ const element = this._elementRef.nativeElement;
108
+ if (config.maxWidth) element.style.setProperty("--ngs-dialog-container-max-width", this._formatValue(config.maxWidth));
109
+ if (config.minWidth) element.style.setProperty("--ngs-dialog-container-min-width", this._formatValue(config.minWidth));
110
+ if (config.width) element.style.setProperty("--ngs-dialog-container-max-width", "none");
111
+ }
112
+ }
113
+ _formatValue(value) {
114
+ return typeof value === "number" ? `${value}px` : value;
115
+ }
116
+ _onTransitionEnd(event) {
117
+ if (event.propertyName === "opacity" && event.target === event.currentTarget) this._animationStateChanged.emit({
118
+ fromState: this._animationState === "enter" ? "void" : "enter",
119
+ toState: this._animationState,
120
+ totalTime: 150,
121
+ phaseName: "done"
122
+ });
123
+ }
124
+ _startEnterAnimation() {
125
+ this._animationState = "enter";
126
+ this._cdr.markForCheck();
127
+ }
128
+ _startExitAnimation() {
129
+ this._animationState = "exit";
130
+ this._cdr.markForCheck();
131
+ }
132
+ _setCloseHandler(handler) {
133
+ this._closeHandler = handler;
134
+ }
135
+ close() {
136
+ this._closeHandler?.();
137
+ }
138
+ static ɵfac = i0.ɵɵngDeclareFactory({
139
+ minVersion: "12.0.0",
140
+ version: "22.3.0",
141
+ ngImport: i0,
142
+ type: DialogContainer,
143
+ deps: null,
144
+ target: i0.ɵɵFactoryTarget.Component
145
+ });
146
+ static ɵcmp = i0.ɵɵngDeclareComponent({
147
+ minVersion: "17.0.0",
148
+ version: "22.3.0",
149
+ type: DialogContainer,
150
+ isStandalone: true,
151
+ selector: "ngs-dialog-container",
152
+ host: {
153
+ listeners: { "transitionend": "_onTransitionEnd($event)" },
154
+ properties: {
155
+ "class.ngs-dialog-container-enter": "_animationState === \"enter\"",
156
+ "class.ngs-dialog-container-exit": "_animationState === \"exit\""
157
+ },
158
+ classAttribute: "ngs-dialog-container"
159
+ },
160
+ exportAs: ["ngsDialogContainer"],
161
+ usesInheritance: true,
162
+ ngImport: i0,
163
+ template: "@if (showCloseButton) {\n <span class=\"close\">\n <button type=\"button\" ngsIconButton aria-label=\"Close dialog\" (click)=\"close()\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </span>\n}\n<ng-template cdkPortalOutlet />\n",
164
+ styles: [":host{background:var(--ngs-dialog-background, var(--ngs-dialog-bg));color:var(--ngs-dialog-color, var(--ngs-color-on-surface));border-radius:var(--ngs-dialog-border-radius, var(--ngs-dialog-radius));box-shadow:var(--ngs-dialog-box-shadow, var(--ngs-dialog-shadow));max-width:var(--ngs-dialog-container-max-width, 560px);min-width:var(--ngs-dialog-container-min-width, 280px);width:100%;height:100%;max-height:inherit;min-height:inherit;box-sizing:border-box;outline:0;overflow:hidden;margin:auto;opacity:0;transform:scale(.8);position:relative;display:flex;flex-direction:column}:host.ngs-dialog-container-enter{opacity:1;transform:scale(1);transition:opacity linear .15s,transform .2s cubic-bezier(0,0,.2,1)}:host.ngs-dialog-container-exit{opacity:0}:host .close:empty{display:none}:host .close{width:max-content!important;height:max-content!important;position:absolute;right:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 2)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
165
+ dependencies: [
166
+ {
167
+ kind: "ngmodule",
168
+ type: DialogModule
169
+ },
170
+ {
171
+ kind: "directive",
172
+ type: i1.ɵɵCdkPortalOutlet,
173
+ selector: "[cdkPortalOutlet]",
174
+ inputs: ["cdkPortalOutlet"],
175
+ outputs: ["attached"],
176
+ exportAs: ["cdkPortalOutlet"]
177
+ },
178
+ {
179
+ kind: "component",
180
+ type: Button,
181
+ selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
182
+ inputs: [
183
+ "ngsButton",
184
+ "ngsIconButton",
185
+ "loading",
186
+ "disabled",
187
+ "disabledInteractive",
188
+ "disableRipple",
189
+ "reverse",
190
+ "fullWidth",
191
+ "hideTextOnMobile"
192
+ ],
193
+ exportAs: ["ngsButton"]
194
+ },
195
+ {
196
+ kind: "component",
197
+ type: Icon,
198
+ selector: "ngs-icon",
199
+ inputs: ["name"],
200
+ exportAs: ["ngsIcon"]
201
+ }
202
+ ],
203
+ changeDetection: i0.ChangeDetectionStrategy.Eager
204
+ });
205
+ };
206
+ i0.ɵɵngDeclareClassMetadata({
207
+ minVersion: "12.0.0",
208
+ version: "22.3.0",
209
+ ngImport: i0,
210
+ type: DialogContainer,
211
+ decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: "ngs-dialog-container",
215
+ exportAs: "ngsDialogContainer",
216
+ imports: [
217
+ DialogModule,
218
+ Button,
219
+ Icon
220
+ ],
221
+ changeDetection: ChangeDetectionStrategy.Eager,
222
+ host: {
223
+ "class": "ngs-dialog-container",
224
+ "[class.ngs-dialog-container-enter]": "_animationState === \"enter\"",
225
+ "[class.ngs-dialog-container-exit]": "_animationState === \"exit\"",
226
+ "(transitionend)": "_onTransitionEnd($event)"
227
+ },
228
+ template: "@if (showCloseButton) {\n <span class=\"close\">\n <button type=\"button\" ngsIconButton aria-label=\"Close dialog\" (click)=\"close()\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </span>\n}\n<ng-template cdkPortalOutlet />\n",
229
+ styles: [":host{background:var(--ngs-dialog-background, var(--ngs-dialog-bg));color:var(--ngs-dialog-color, var(--ngs-color-on-surface));border-radius:var(--ngs-dialog-border-radius, var(--ngs-dialog-radius));box-shadow:var(--ngs-dialog-box-shadow, var(--ngs-dialog-shadow));max-width:var(--ngs-dialog-container-max-width, 560px);min-width:var(--ngs-dialog-container-min-width, 280px);width:100%;height:100%;max-height:inherit;min-height:inherit;box-sizing:border-box;outline:0;overflow:hidden;margin:auto;opacity:0;transform:scale(.8);position:relative;display:flex;flex-direction:column}:host.ngs-dialog-container-enter{opacity:1;transform:scale(1);transition:opacity linear .15s,transform .2s cubic-bezier(0,0,.2,1)}:host.ngs-dialog-container-exit{opacity:0}:host .close:empty{display:none}:host .close{width:max-content!important;height:max-content!important;position:absolute;right:calc(var(--spacing, .25rem) * 2);top:calc(var(--spacing, .25rem) * 2)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
230
+ }]
231
+ }]
232
+ });
233
+ var Dialog = class Dialog {
234
+ _cdkDialog = inject(Dialog$1);
235
+ _injector = inject(Injector);
236
+ _defaultOptions = inject(DIALOG_DEFAULT_OPTIONS, { optional: true });
237
+ open(componentOrTemplateRef, config) {
238
+ const dialogRef = new DialogRef();
239
+ const mergedConfig = {
240
+ ...new DialogConfig(),
241
+ ...this._defaultOptions,
242
+ ...config
243
+ };
244
+ if (!mergedConfig.maxWidth && !mergedConfig.width) mergedConfig.maxWidth = 560;
245
+ if (!mergedConfig.minWidth) mergedConfig.minWidth = 280;
246
+ let container;
247
+ const cdkConfig = {
248
+ ...mergedConfig,
249
+ container: DialogContainer,
250
+ panelClass: this._buildPanelClass(mergedConfig?.panelClass),
251
+ backdropClass: this._buildBackdropClass(mergedConfig?.backdropClass),
252
+ providers: (ref, config, _container) => {
253
+ container = _container;
254
+ dialogRef._container = _container;
255
+ return [{
256
+ provide: DialogRef,
257
+ useValue: dialogRef
258
+ }, {
259
+ provide: DIALOG_DATA,
260
+ useValue: config?.data
261
+ }];
262
+ }
263
+ };
264
+ const cdkRef = this._cdkDialog.open(componentOrTemplateRef, cdkConfig);
265
+ dialogRef.disableClose = mergedConfig?.disableClose;
266
+ dialogRef._cdkRef = cdkRef;
267
+ if (container) {
268
+ container._setCloseHandler(() => dialogRef.close());
269
+ container._animationStateChanged.pipe(filter$1((event) => event.phaseName === "done" && event.toState === "enter"), take$1(1)).subscribe(() => {
270
+ dialogRef.__fireAfterOpened();
271
+ });
272
+ requestAnimationFrame(() => {
273
+ requestAnimationFrame(() => {
274
+ if (container) container._startEnterAnimation();
275
+ const overlayRef = cdkRef.overlayRef;
276
+ if (overlayRef.backdropElement) overlayRef.backdropElement.classList.add("ngs-dialog-backdrop-showing");
277
+ });
278
+ });
279
+ }
280
+ cdkRef.closed.subscribe((result) => {
281
+ if (dialogRef._cdkRef) {
282
+ dialogRef._cdkRef = null;
283
+ dialogRef.close(result);
284
+ }
285
+ });
286
+ cdkRef.backdropClick.subscribe((event) => {
287
+ dialogRef.__fireBackdropClick(event);
288
+ if (!dialogRef.disableClose) dialogRef.close();
289
+ });
290
+ cdkRef.keydownEvents.subscribe((event) => {
291
+ dialogRef.__fireKeydownEvent(event);
292
+ if (event.key === "Escape" && !dialogRef.disableClose) dialogRef.close();
293
+ });
294
+ return dialogRef;
295
+ }
296
+ close(dialogRef, result) {
297
+ dialogRef.close(result);
298
+ }
299
+ closeAll() {
300
+ this._cdkDialog.closeAll();
301
+ }
302
+ _buildPanelClass(panelClass) {
303
+ const classes = [
304
+ "ngs-dialog-panel",
305
+ "overflow-hidden",
306
+ "flex",
307
+ "flex-col"
308
+ ];
309
+ if (Array.isArray(panelClass)) classes.push(...panelClass);
310
+ else if (panelClass) classes.push(panelClass);
311
+ return classes;
312
+ }
313
+ _buildBackdropClass(backdropClass) {
314
+ const classes = ["ngs-dialog-backdrop"];
315
+ if (Array.isArray(backdropClass)) classes.push(...backdropClass);
316
+ else if (backdropClass) classes.push(backdropClass);
317
+ return classes;
318
+ }
319
+ static ɵfac = i0.ɵɵngDeclareFactory({
320
+ minVersion: "12.0.0",
321
+ version: "22.3.0",
322
+ ngImport: i0,
323
+ type: Dialog,
324
+ deps: [],
325
+ target: i0.ɵɵFactoryTarget.Injectable
326
+ });
327
+ static ɵprov = i0.ɵɵngDeclareInjectable({
328
+ minVersion: "12.0.0",
329
+ version: "22.3.0",
330
+ ngImport: i0,
331
+ type: Dialog,
332
+ providedIn: "root"
333
+ });
334
+ };
335
+ i0.ɵɵngDeclareClassMetadata({
336
+ minVersion: "12.0.0",
337
+ version: "22.3.0",
338
+ ngImport: i0,
339
+ type: Dialog,
340
+ decorators: [{
341
+ type: Injectable,
342
+ args: [{ providedIn: "root" }]
343
+ }]
344
+ });
294
345
  let nextUniqueId = 0;
295
- class DialogTitle {
296
- _dialogRef = inject(DialogRef, { optional: true });
297
- id = input(`ngs-dialog-title-${nextUniqueId++}`, /* @ts-ignore */
298
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
299
- ngOnInit() {
300
- if (this._dialogRef && !this._dialogRef.disableClose) {
301
- // Logic for ARIA if needed
302
- }
303
- }
304
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Component });
305
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: DialogTitle, isStandalone: true, selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "id": "id()" }, classAttribute: "ngs-dialog-title" }, exportAs: ["ngsDialogTitle"], ngImport: i0, template: '<ng-content/>', isInline: true, styles: [":host{display:block;font-size:var(--ngs-dialog-title-font-size);font-weight:var(--ngs-dialog-title-font-weight);padding:var(--ngs-dialog-headline-padding, var(--ngs-dialog-header-padding));flex:none}:host:before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
306
- }
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogTitle, decorators: [{
308
- type: Component,
309
- args: [{ selector: 'ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]', exportAs: 'ngsDialogTitle', template: '<ng-content/>', changeDetection: ChangeDetectionStrategy.Eager, host: {
310
- 'class': 'ngs-dialog-title',
311
- '[id]': 'id()',
312
- }, styles: [":host{display:block;font-size:var(--ngs-dialog-title-font-size);font-weight:var(--ngs-dialog-title-font-weight);padding:var(--ngs-dialog-headline-padding, var(--ngs-dialog-header-padding));flex:none}:host:before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
313
- }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
314
-
315
- class DialogContent {
316
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
317
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: DialogContent, isStandalone: true, selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]", host: { classAttribute: "ngs-dialog-content" }, ngImport: i0, template: '<ng-content/>', isInline: true, styles: [":host{display:block;margin:0;padding:var(--ngs-dialog-with-content-padding, calc(var(--spacing, .25rem) * 5) calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 6));overflow:auto;-webkit-overflow-scrolling:touch;flex-grow:1}@media(min-height:640px){:host{max-height:65vh}}:host-context(ngs-dialog-container:has(.ngs-dialog-title)){padding-top:0}:host-context(ngs-dialog-container:has(.ngs-dialog-actions)){padding-bottom:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
318
- }
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogContent, decorators: [{
320
- type: Component,
321
- args: [{ selector: 'ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]', template: '<ng-content/>', changeDetection: ChangeDetectionStrategy.Eager, host: {
322
- 'class': 'ngs-dialog-content'
323
- }, styles: [":host{display:block;margin:0;padding:var(--ngs-dialog-with-content-padding, calc(var(--spacing, .25rem) * 5) calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 6));overflow:auto;-webkit-overflow-scrolling:touch;flex-grow:1}@media(min-height:640px){:host{max-height:65vh}}:host-context(ngs-dialog-container:has(.ngs-dialog-title)){padding-top:0}:host-context(ngs-dialog-container:has(.ngs-dialog-actions)){padding-bottom:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
324
- }] });
325
-
326
- class DialogActions {
327
- align = input('end', /* @ts-ignore */
328
- ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
329
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
330
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: DialogActions, isStandalone: true, selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.ngs-dialog-actions-align-center": "align() === \"center\"", "class.ngs-dialog-actions-align-end": "align() === \"end\"" }, classAttribute: "ngs-dialog-actions" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{--ngs-dialog-actions-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--ngs-dialog-actions-gap: calc(var(--spacing, .25rem) * 3);display:flex;flex-wrap:wrap;min-height:var(--ngs-control-height-lg);align-items:center;box-sizing:content-box;gap:var(--ngs-dialog-actions-gap);padding:var(--ngs-dialog-actions-padding);flex:none}:host.ngs-dialog-actions-align-center{justify-content:center}:host.ngs-dialog-actions-align-end{justify-content:flex-end}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
331
- }
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogActions, decorators: [{
333
- type: Component,
334
- args: [{ selector: 'ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]', template: '<ng-content />', changeDetection: ChangeDetectionStrategy.Eager, host: {
335
- 'class': 'ngs-dialog-actions',
336
- '[class.ngs-dialog-actions-align-center]': 'align() === "center"',
337
- '[class.ngs-dialog-actions-align-end]': 'align() === "end"',
338
- }, styles: [":host{--ngs-dialog-actions-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--ngs-dialog-actions-gap: calc(var(--spacing, .25rem) * 3);display:flex;flex-wrap:wrap;min-height:var(--ngs-control-height-lg);align-items:center;box-sizing:content-box;gap:var(--ngs-dialog-actions-gap);padding:var(--ngs-dialog-actions-padding);flex:none}:host.ngs-dialog-actions-align-center{justify-content:center}:host.ngs-dialog-actions-align-end{justify-content:flex-end}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
339
- }], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
340
-
341
- class DialogClose {
342
- dialogResult = input(undefined, { ...(ngDevMode ? { debugName: "dialogResult" } : /* istanbul ignore next */ {}), alias: 'ngs-dialog-close' });
343
- _dialogResult = input(undefined, { ...(ngDevMode ? { debugName: "_dialogResult" } : /* istanbul ignore next */ {}), alias: 'ngsDialogClose' });
344
- ariaLabel = input(null, /* @ts-ignore */
345
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
346
- type = input('button', /* @ts-ignore */
347
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
348
- _dialogRef = inject(DialogRef, { optional: true });
349
- _dialog = inject(Dialog);
350
- _onClick() {
351
- if (this._dialogRef) {
352
- this._dialog.close(this._dialogRef, this.dialogResult() || this._dialogResult());
353
- }
354
- }
355
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
356
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: DialogClose, isStandalone: true, selector: "[ngs-dialog-close],[ngsDialogClose]", inputs: { dialogResult: { classPropertyName: "dialogResult", publicName: "ngs-dialog-close", isSignal: true, isRequired: false, transformFunction: null }, _dialogResult: { classPropertyName: "_dialogResult", publicName: "ngsDialogClose", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_onClick()" }, properties: { "attr.aria-label": "ariaLabel() || null", "attr.type": "type()" } }, exportAs: ["ngsDialogClose"], ngImport: i0 });
357
- }
358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogClose, decorators: [{
359
- type: Directive,
360
- args: [{
361
- selector: '[ngs-dialog-close],[ngsDialogClose]',
362
- exportAs: 'ngsDialogClose',
363
- host: {
364
- '[attr.aria-label]': 'ariaLabel() || null',
365
- '[attr.type]': 'type()',
366
- '(click)': '_onClick()',
367
- }
368
- }]
369
- }], propDecorators: { dialogResult: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngs-dialog-close", required: false }] }], _dialogResult: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsDialogClose", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
370
-
371
- class DialogHeader {
372
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
373
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: DialogHeader, isStandalone: true, selector: "ngs-dialog-header", host: { classAttribute: "ngs-dialog-header" }, exportAs: ["ngsDialogHeader"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{display:block;flex:none;padding:var(--ngs-dialog-header-padding)}\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
374
- }
375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DialogHeader, decorators: [{
376
- type: Component,
377
- args: [{ selector: 'ngs-dialog-header', exportAs: 'ngsDialogHeader', imports: [], changeDetection: ChangeDetectionStrategy.Eager, host: {
378
- 'class': 'ngs-dialog-header',
379
- }, template: "<ng-content/>\n", styles: [":host{display:block;flex:none;padding:var(--ngs-dialog-header-padding)}\n"] }]
380
- }] });
381
-
382
- /**
383
- * Generated bundle index. Do not edit.
384
- */
385
-
346
+ var DialogTitle = class DialogTitle {
347
+ _dialogRef = inject(DialogRef, { optional: true });
348
+ id = input(`ngs-dialog-title-${nextUniqueId++}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
349
+ ngOnInit() {
350
+ if (this._dialogRef && !this._dialogRef.disableClose) {}
351
+ }
352
+ static ɵfac = i0.ɵɵngDeclareFactory({
353
+ minVersion: "12.0.0",
354
+ version: "22.3.0",
355
+ ngImport: i0,
356
+ type: DialogTitle,
357
+ deps: [],
358
+ target: i0.ɵɵFactoryTarget.Component
359
+ });
360
+ static ɵcmp = i0.ɵɵngDeclareComponent({
361
+ minVersion: "17.1.0",
362
+ version: "22.3.0",
363
+ type: DialogTitle,
364
+ isStandalone: true,
365
+ selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]",
366
+ inputs: { id: {
367
+ classPropertyName: "id",
368
+ publicName: "id",
369
+ isSignal: true,
370
+ isRequired: false,
371
+ transformFunction: null
372
+ } },
373
+ host: {
374
+ properties: { "id": "id()" },
375
+ classAttribute: "ngs-dialog-title"
376
+ },
377
+ exportAs: ["ngsDialogTitle"],
378
+ ngImport: i0,
379
+ template: "<ng-content/>",
380
+ isInline: true,
381
+ styles: [":host{display:block;font-size:var(--ngs-dialog-title-font-size);font-weight:var(--ngs-dialog-title-font-weight);padding:var(--ngs-dialog-headline-padding, var(--ngs-dialog-header-padding));flex:none}:host:before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
382
+ changeDetection: i0.ChangeDetectionStrategy.Eager
383
+ });
384
+ };
385
+ i0.ɵɵngDeclareClassMetadata({
386
+ minVersion: "12.0.0",
387
+ version: "22.3.0",
388
+ ngImport: i0,
389
+ type: DialogTitle,
390
+ decorators: [{
391
+ type: Component,
392
+ args: [{
393
+ selector: "ngs-dialog-title, [ngs-dialog-title], [ngsDialogTitle]",
394
+ exportAs: "ngsDialogTitle",
395
+ template: "<ng-content/>",
396
+ changeDetection: ChangeDetectionStrategy.Eager,
397
+ host: {
398
+ "class": "ngs-dialog-title",
399
+ "[id]": "id()"
400
+ },
401
+ styles: [":host{display:block;font-size:var(--ngs-dialog-title-font-size);font-weight:var(--ngs-dialog-title-font-weight);padding:var(--ngs-dialog-headline-padding, var(--ngs-dialog-header-padding));flex:none}:host:before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
402
+ }]
403
+ }],
404
+ propDecorators: { id: [{
405
+ type: i0.Input,
406
+ args: [{
407
+ isSignal: true,
408
+ alias: "id",
409
+ required: false
410
+ }]
411
+ }] }
412
+ });
413
+ var DialogContent = class DialogContent {
414
+ static ɵfac = i0.ɵɵngDeclareFactory({
415
+ minVersion: "12.0.0",
416
+ version: "22.3.0",
417
+ ngImport: i0,
418
+ type: DialogContent,
419
+ deps: [],
420
+ target: i0.ɵɵFactoryTarget.Component
421
+ });
422
+ static ɵcmp = i0.ɵɵngDeclareComponent({
423
+ minVersion: "14.0.0",
424
+ version: "22.3.0",
425
+ type: DialogContent,
426
+ isStandalone: true,
427
+ selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]",
428
+ host: { classAttribute: "ngs-dialog-content" },
429
+ ngImport: i0,
430
+ template: "<ng-content/>",
431
+ isInline: true,
432
+ styles: [":host{display:block;margin:0;padding:var(--ngs-dialog-with-content-padding, calc(var(--spacing, .25rem) * 5) calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 6));overflow:auto;-webkit-overflow-scrolling:touch;flex-grow:1}@media(min-height:640px){:host{max-height:65vh}}:host-context(ngs-dialog-container:has(.ngs-dialog-title)){padding-top:0}:host-context(ngs-dialog-container:has(.ngs-dialog-actions)){padding-bottom:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
433
+ changeDetection: i0.ChangeDetectionStrategy.Eager
434
+ });
435
+ };
436
+ i0.ɵɵngDeclareClassMetadata({
437
+ minVersion: "12.0.0",
438
+ version: "22.3.0",
439
+ ngImport: i0,
440
+ type: DialogContent,
441
+ decorators: [{
442
+ type: Component,
443
+ args: [{
444
+ selector: "ngs-dialog-content,[ngs-dialog-content],[ngsDialogContent]",
445
+ template: "<ng-content/>",
446
+ changeDetection: ChangeDetectionStrategy.Eager,
447
+ host: { "class": "ngs-dialog-content" },
448
+ styles: [":host{display:block;margin:0;padding:var(--ngs-dialog-with-content-padding, calc(var(--spacing, .25rem) * 5) calc(var(--spacing, .25rem) * 6) calc(var(--spacing, .25rem) * 6));overflow:auto;-webkit-overflow-scrolling:touch;flex-grow:1}@media(min-height:640px){:host{max-height:65vh}}:host-context(ngs-dialog-container:has(.ngs-dialog-title)){padding-top:0}:host-context(ngs-dialog-container:has(.ngs-dialog-actions)){padding-bottom:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
449
+ }]
450
+ }]
451
+ });
452
+ var DialogActions = class DialogActions {
453
+ align = input("end", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
454
+ static ɵfac = i0.ɵɵngDeclareFactory({
455
+ minVersion: "12.0.0",
456
+ version: "22.3.0",
457
+ ngImport: i0,
458
+ type: DialogActions,
459
+ deps: [],
460
+ target: i0.ɵɵFactoryTarget.Component
461
+ });
462
+ static ɵcmp = i0.ɵɵngDeclareComponent({
463
+ minVersion: "17.1.0",
464
+ version: "22.3.0",
465
+ type: DialogActions,
466
+ isStandalone: true,
467
+ selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]",
468
+ inputs: { align: {
469
+ classPropertyName: "align",
470
+ publicName: "align",
471
+ isSignal: true,
472
+ isRequired: false,
473
+ transformFunction: null
474
+ } },
475
+ host: {
476
+ properties: {
477
+ "class.ngs-dialog-actions-align-center": "align() === \"center\"",
478
+ "class.ngs-dialog-actions-align-end": "align() === \"end\""
479
+ },
480
+ classAttribute: "ngs-dialog-actions"
481
+ },
482
+ ngImport: i0,
483
+ template: "<ng-content />",
484
+ isInline: true,
485
+ styles: [":host{--ngs-dialog-actions-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--ngs-dialog-actions-gap: calc(var(--spacing, .25rem) * 3);display:flex;flex-wrap:wrap;min-height:var(--ngs-control-height-lg);align-items:center;box-sizing:content-box;gap:var(--ngs-dialog-actions-gap);padding:var(--ngs-dialog-actions-padding);flex:none}:host.ngs-dialog-actions-align-center{justify-content:center}:host.ngs-dialog-actions-align-end{justify-content:flex-end}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
486
+ changeDetection: i0.ChangeDetectionStrategy.Eager
487
+ });
488
+ };
489
+ i0.ɵɵngDeclareClassMetadata({
490
+ minVersion: "12.0.0",
491
+ version: "22.3.0",
492
+ ngImport: i0,
493
+ type: DialogActions,
494
+ decorators: [{
495
+ type: Component,
496
+ args: [{
497
+ selector: "ngs-dialog-actions, [ngs-dialog-actions], [ngsDialogActions]",
498
+ template: "<ng-content />",
499
+ changeDetection: ChangeDetectionStrategy.Eager,
500
+ host: {
501
+ "class": "ngs-dialog-actions",
502
+ "[class.ngs-dialog-actions-align-center]": "align() === \"center\"",
503
+ "[class.ngs-dialog-actions-align-end]": "align() === \"end\""
504
+ },
505
+ styles: [":host{--ngs-dialog-actions-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--ngs-dialog-actions-gap: calc(var(--spacing, .25rem) * 3);display:flex;flex-wrap:wrap;min-height:var(--ngs-control-height-lg);align-items:center;box-sizing:content-box;gap:var(--ngs-dialog-actions-gap);padding:var(--ngs-dialog-actions-padding);flex:none}:host.ngs-dialog-actions-align-center{justify-content:center}:host.ngs-dialog-actions-align-end{justify-content:flex-end}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
506
+ }]
507
+ }],
508
+ propDecorators: { align: [{
509
+ type: i0.Input,
510
+ args: [{
511
+ isSignal: true,
512
+ alias: "align",
513
+ required: false
514
+ }]
515
+ }] }
516
+ });
517
+ var DialogClose = class DialogClose {
518
+ dialogResult = input(void 0, {
519
+ ...ngDevMode ? { debugName: "dialogResult" } : /* istanbul ignore next */ {},
520
+ alias: "ngs-dialog-close"
521
+ });
522
+ _dialogResult = input(void 0, {
523
+ ...ngDevMode ? { debugName: "_dialogResult" } : /* istanbul ignore next */ {},
524
+ alias: "ngsDialogClose"
525
+ });
526
+ ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
527
+ type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
528
+ _dialogRef = inject(DialogRef, { optional: true });
529
+ _dialog = inject(Dialog);
530
+ _onClick() {
531
+ if (this._dialogRef) this._dialog.close(this._dialogRef, this.dialogResult() || this._dialogResult());
532
+ }
533
+ static ɵfac = i0.ɵɵngDeclareFactory({
534
+ minVersion: "12.0.0",
535
+ version: "22.3.0",
536
+ ngImport: i0,
537
+ type: DialogClose,
538
+ deps: [],
539
+ target: i0.ɵɵFactoryTarget.Directive
540
+ });
541
+ static ɵdir = i0.ɵɵngDeclareDirective({
542
+ minVersion: "17.1.0",
543
+ version: "22.3.0",
544
+ type: DialogClose,
545
+ isStandalone: true,
546
+ selector: "[ngs-dialog-close],[ngsDialogClose]",
547
+ inputs: {
548
+ dialogResult: {
549
+ classPropertyName: "dialogResult",
550
+ publicName: "ngs-dialog-close",
551
+ isSignal: true,
552
+ isRequired: false,
553
+ transformFunction: null
554
+ },
555
+ _dialogResult: {
556
+ classPropertyName: "_dialogResult",
557
+ publicName: "ngsDialogClose",
558
+ isSignal: true,
559
+ isRequired: false,
560
+ transformFunction: null
561
+ },
562
+ ariaLabel: {
563
+ classPropertyName: "ariaLabel",
564
+ publicName: "ariaLabel",
565
+ isSignal: true,
566
+ isRequired: false,
567
+ transformFunction: null
568
+ },
569
+ type: {
570
+ classPropertyName: "type",
571
+ publicName: "type",
572
+ isSignal: true,
573
+ isRequired: false,
574
+ transformFunction: null
575
+ }
576
+ },
577
+ host: {
578
+ listeners: { "click": "_onClick()" },
579
+ properties: {
580
+ "attr.aria-label": "ariaLabel() || null",
581
+ "attr.type": "type()"
582
+ }
583
+ },
584
+ exportAs: ["ngsDialogClose"],
585
+ ngImport: i0
586
+ });
587
+ };
588
+ i0.ɵɵngDeclareClassMetadata({
589
+ minVersion: "12.0.0",
590
+ version: "22.3.0",
591
+ ngImport: i0,
592
+ type: DialogClose,
593
+ decorators: [{
594
+ type: Directive,
595
+ args: [{
596
+ selector: "[ngs-dialog-close],[ngsDialogClose]",
597
+ exportAs: "ngsDialogClose",
598
+ host: {
599
+ "[attr.aria-label]": "ariaLabel() || null",
600
+ "[attr.type]": "type()",
601
+ "(click)": "_onClick()"
602
+ }
603
+ }]
604
+ }],
605
+ propDecorators: {
606
+ dialogResult: [{
607
+ type: i0.Input,
608
+ args: [{
609
+ isSignal: true,
610
+ alias: "ngs-dialog-close",
611
+ required: false
612
+ }]
613
+ }],
614
+ _dialogResult: [{
615
+ type: i0.Input,
616
+ args: [{
617
+ isSignal: true,
618
+ alias: "ngsDialogClose",
619
+ required: false
620
+ }]
621
+ }],
622
+ ariaLabel: [{
623
+ type: i0.Input,
624
+ args: [{
625
+ isSignal: true,
626
+ alias: "ariaLabel",
627
+ required: false
628
+ }]
629
+ }],
630
+ type: [{
631
+ type: i0.Input,
632
+ args: [{
633
+ isSignal: true,
634
+ alias: "type",
635
+ required: false
636
+ }]
637
+ }]
638
+ }
639
+ });
640
+ var DialogHeader = class DialogHeader {
641
+ static ɵfac = i0.ɵɵngDeclareFactory({
642
+ minVersion: "12.0.0",
643
+ version: "22.3.0",
644
+ ngImport: i0,
645
+ type: DialogHeader,
646
+ deps: [],
647
+ target: i0.ɵɵFactoryTarget.Component
648
+ });
649
+ static ɵcmp = i0.ɵɵngDeclareComponent({
650
+ minVersion: "14.0.0",
651
+ version: "22.3.0",
652
+ type: DialogHeader,
653
+ isStandalone: true,
654
+ selector: "ngs-dialog-header",
655
+ host: { classAttribute: "ngs-dialog-header" },
656
+ exportAs: ["ngsDialogHeader"],
657
+ ngImport: i0,
658
+ template: "<ng-content/>\n",
659
+ styles: [":host{display:block;flex:none;padding:var(--ngs-dialog-header-padding)}\n"],
660
+ changeDetection: i0.ChangeDetectionStrategy.Eager
661
+ });
662
+ };
663
+ i0.ɵɵngDeclareClassMetadata({
664
+ minVersion: "12.0.0",
665
+ version: "22.3.0",
666
+ ngImport: i0,
667
+ type: DialogHeader,
668
+ decorators: [{
669
+ type: Component,
670
+ args: [{
671
+ selector: "ngs-dialog-header",
672
+ exportAs: "ngsDialogHeader",
673
+ imports: [],
674
+ changeDetection: ChangeDetectionStrategy.Eager,
675
+ host: { "class": "ngs-dialog-header" },
676
+ template: "<ng-content/>\n",
677
+ styles: [":host{display:block;flex:none;padding:var(--ngs-dialog-header-padding)}\n"]
678
+ }]
679
+ }]
680
+ });
386
681
  export { DIALOG_DATA, DIALOG_DEFAULT_OPTIONS, Dialog, DialogActions, DialogClose, DialogConfig, DialogContainer, DialogContent, DialogHeader, DialogRef, DialogTitle };
387
- //# sourceMappingURL=ngstarter-ui-components-dialog.mjs.map
682
+
683
+ //# sourceMappingURL=ngstarter-ui-components-dialog.mjs.map