@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11

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 (318) hide show
  1. package/README.md +232 -191
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  20. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
  22. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  23. package/fesm2022/aeris-ui-core-button.mjs +911 -137
  24. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  26. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  27. package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
  28. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
  30. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-chart.mjs +594 -262
  32. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
  34. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
  36. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  38. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  39. package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
  40. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
  42. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  44. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-compare.mjs +870 -338
  46. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
  48. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  49. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
  50. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
  52. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
  54. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
  56. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  57. package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
  58. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  60. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  61. package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
  62. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  63. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
  64. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
  66. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  67. package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
  68. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  69. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  70. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  71. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  72. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  74. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  76. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
  78. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  80. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  82. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
  84. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  86. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  87. package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
  88. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
  90. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  92. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
  94. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  96. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  98. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  100. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
  102. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
  104. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
  106. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-message.mjs +513 -147
  108. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
  110. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  111. package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
  112. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  114. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
  116. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
  118. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
  120. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-panel.mjs +602 -210
  122. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  123. package/fesm2022/aeris-ui-core-password.mjs +1046 -269
  124. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  125. package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
  126. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
  128. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
  130. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
  132. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
  134. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  135. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  136. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  138. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
  140. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  142. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-select.mjs +1984 -668
  144. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  146. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  148. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  150. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
  152. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
  154. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
  156. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
  158. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  160. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-table.mjs +2927 -923
  162. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
  164. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
  166. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
  168. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  170. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  171. package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
  172. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  173. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  174. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  175. package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
  176. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  177. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  178. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  179. package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
  180. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  181. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  182. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  183. package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
  184. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  185. package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
  186. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  187. package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
  188. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  189. package/fesm2022/aeris-ui-core.mjs +1601 -312
  190. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  191. package/package.json +48 -8
  192. package/schematics/ng-add/schema.json +1 -1
  193. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  194. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  195. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  196. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  197. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  198. package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
  199. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  200. package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
  201. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  202. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
  203. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  204. package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
  205. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  206. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
  207. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  208. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
  209. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  210. package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
  211. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  212. package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
  213. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  214. package/styles/_choice-card.scss +93 -0
  215. package/styles/_fallback-colors.scss +10 -0
  216. package/styles/_icon-artwork.scss +14 -0
  217. package/styles/_icon-template.scss +42 -0
  218. package/styles/_mobile.scss +16 -0
  219. package/styles/_selection-icons.scss +12 -0
  220. package/styles/_table-pinning.scss +119 -0
  221. package/styles/_tokens.scss +5 -5
  222. package/styles/aeris.css +447 -137
  223. package/styles/controls.css +205 -35
  224. package/tools/aeris-theme.mjs +4 -4
  225. package/tools/aeris-theme.schema.json +18 -13
  226. package/types/aeris-ui-core-accordion.d.ts +167 -93
  227. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  228. package/types/aeris-ui-core-auto-complete.d.ts +339 -140
  229. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  230. package/types/aeris-ui-core-avatar.d.ts +112 -42
  231. package/types/aeris-ui-core-badge.d.ts +160 -46
  232. package/types/aeris-ui-core-block-ui.d.ts +48 -27
  233. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  234. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  235. package/types/aeris-ui-core-button-group.d.ts +150 -16
  236. package/types/aeris-ui-core-button.d.ts +274 -67
  237. package/types/aeris-ui-core-card.d.ts +74 -37
  238. package/types/aeris-ui-core-carousel.d.ts +213 -117
  239. package/types/aeris-ui-core-cascade-select.d.ts +275 -123
  240. package/types/aeris-ui-core-chart.d.ts +150 -84
  241. package/types/aeris-ui-core-checkbox.d.ts +173 -54
  242. package/types/aeris-ui-core-chip.d.ts +316 -56
  243. package/types/aeris-ui-core-class-names.d.ts +22 -20
  244. package/types/aeris-ui-core-code-block.d.ts +201 -0
  245. package/types/aeris-ui-core-color-picker.d.ts +450 -143
  246. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  247. package/types/aeris-ui-core-compare.d.ts +230 -102
  248. package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
  249. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  250. package/types/aeris-ui-core-context-menu.d.ts +270 -146
  251. package/types/aeris-ui-core-date-picker.d.ts +594 -219
  252. package/types/aeris-ui-core-dialog.d.ts +301 -117
  253. package/types/aeris-ui-core-divider.d.ts +58 -20
  254. package/types/aeris-ui-core-drawer.d.ts +380 -112
  255. package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
  256. package/types/aeris-ui-core-editor.d.ts +257 -123
  257. package/types/aeris-ui-core-file-upload.d.ts +385 -197
  258. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  259. package/types/aeris-ui-core-fluid.d.ts +12 -9
  260. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  261. package/types/aeris-ui-core-form-field.d.ts +163 -0
  262. package/types/aeris-ui-core-galleria.d.ts +636 -256
  263. package/types/aeris-ui-core-glass.d.ts +24 -11
  264. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  265. package/types/aeris-ui-core-inplace.d.ts +129 -62
  266. package/types/aeris-ui-core-input-group.d.ts +84 -33
  267. package/types/aeris-ui-core-input-mask.d.ts +201 -69
  268. package/types/aeris-ui-core-input-number.d.ts +291 -87
  269. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  270. package/types/aeris-ui-core-input-text.d.ts +195 -60
  271. package/types/aeris-ui-core-kbd.d.ts +74 -0
  272. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  273. package/types/aeris-ui-core-listbox.d.ts +222 -0
  274. package/types/aeris-ui-core-mega-menu.d.ts +181 -121
  275. package/types/aeris-ui-core-menu.d.ts +283 -168
  276. package/types/aeris-ui-core-menubar.d.ts +289 -135
  277. package/types/aeris-ui-core-message.d.ts +138 -60
  278. package/types/aeris-ui-core-meter-group.d.ts +169 -90
  279. package/types/aeris-ui-core-multi-select.d.ts +469 -180
  280. package/types/aeris-ui-core-navbar.d.ts +208 -0
  281. package/types/aeris-ui-core-order-list.d.ts +168 -66
  282. package/types/aeris-ui-core-organization-chart.d.ts +139 -77
  283. package/types/aeris-ui-core-paginator.d.ts +129 -38
  284. package/types/aeris-ui-core-panel.d.ts +149 -78
  285. package/types/aeris-ui-core-password.d.ts +276 -102
  286. package/types/aeris-ui-core-pick-list.d.ts +428 -179
  287. package/types/aeris-ui-core-popover.d.ts +294 -105
  288. package/types/aeris-ui-core-progress-bar.d.ts +163 -73
  289. package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
  290. package/types/aeris-ui-core-radio-button.d.ts +146 -50
  291. package/types/aeris-ui-core-rating.d.ts +149 -76
  292. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  293. package/types/aeris-ui-core-scroll-top.d.ts +73 -29
  294. package/types/aeris-ui-core-select-native.d.ts +40 -0
  295. package/types/aeris-ui-core-select.d.ts +487 -217
  296. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  297. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  298. package/types/aeris-ui-core-slider.d.ts +270 -115
  299. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  300. package/types/aeris-ui-core-split-button.d.ts +267 -113
  301. package/types/aeris-ui-core-splitter.d.ts +224 -106
  302. package/types/aeris-ui-core-stepper.d.ts +184 -91
  303. package/types/aeris-ui-core-style-class.d.ts +141 -71
  304. package/types/aeris-ui-core-table.d.ts +729 -304
  305. package/types/aeris-ui-core-tabs.d.ts +193 -76
  306. package/types/aeris-ui-core-textarea.d.ts +271 -78
  307. package/types/aeris-ui-core-theme-builder.d.ts +220 -463
  308. package/types/aeris-ui-core-theming.d.ts +42 -45
  309. package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
  310. package/types/aeris-ui-core-timeline.d.ts +109 -71
  311. package/types/aeris-ui-core-toast.d.ts +231 -115
  312. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  313. package/types/aeris-ui-core-toolbar.d.ts +314 -47
  314. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  315. package/types/aeris-ui-core-tree-select.d.ts +394 -171
  316. package/types/aeris-ui-core-tree-table.d.ts +629 -288
  317. package/types/aeris-ui-core-tree.d.ts +294 -165
  318. package/types/aeris-ui-core.d.ts +338 -74
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-dynamic-dialog.mjs","sources":["../../../projects/aeris-ui/dynamic-dialog/aeris-dynamic-dialog.ts","../../../projects/aeris-ui/dynamic-dialog/aeris-ui-core-dynamic-dialog.ts"],"sourcesContent":["import { DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport {\n ApplicationRef,\n Component,\n ComponentRef,\n EmbeddedViewRef,\n EnvironmentInjector,\n InjectionToken,\n Injector,\n Service,\n Type,\n computed,\n createComponent,\n inject,\n input,\n linkedSignal,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport {\n AerisDialog,\n type AerisDialogCloseReason,\n type AerisDialogPosition,\n type AerisDialogSize,\n type AerisDialogVisibilityChangeEvent,\n} from '@aeris-ui/core/dialog';\n\nexport interface AerisDynamicDialogConfig<TData = unknown> {\n readonly header?: string;\n readonly data?: TData;\n readonly inputValues?: Record<string, unknown>;\n readonly modal?: boolean;\n readonly backdrop?: boolean;\n readonly backdropBlur?: boolean;\n readonly backdropBlurAmount?: string;\n readonly dismissibleMask?: boolean;\n readonly closeOnEscape?: boolean;\n readonly closable?: boolean;\n readonly maximizable?: boolean;\n readonly maximized?: boolean;\n readonly draggable?: boolean;\n readonly resizable?: boolean;\n readonly blockScroll?: boolean;\n readonly focusTrap?: boolean;\n readonly restoreFocus?: boolean;\n readonly autoFocus?: boolean;\n readonly initialFocus?: string;\n readonly position?: AerisDialogPosition;\n readonly size?: AerisDialogSize;\n readonly width?: string;\n readonly minWidth?: string;\n readonly maxWidth?: string;\n readonly height?: string;\n readonly maxHeight?: string;\n readonly mobileWidth?: string;\n readonly closeAriaLabel?: string;\n readonly ariaLabel?: string;\n readonly ariaLabelledBy?: string;\n readonly ariaDescribedBy?: string;\n}\n\nexport interface AerisDynamicDialogResolvedConfig<TData = unknown> {\n readonly header: string;\n readonly data: TData | undefined;\n readonly inputValues: Record<string, unknown>;\n readonly modal: boolean;\n readonly backdrop: boolean;\n readonly backdropBlur: boolean;\n readonly backdropBlurAmount: string;\n readonly dismissibleMask: boolean;\n readonly closeOnEscape: boolean;\n readonly closable: boolean;\n readonly maximizable: boolean;\n readonly maximized: boolean;\n readonly draggable: boolean;\n readonly resizable: boolean;\n readonly blockScroll: boolean;\n readonly focusTrap: boolean;\n readonly restoreFocus: boolean;\n readonly autoFocus: boolean;\n readonly initialFocus: string;\n readonly position: AerisDialogPosition;\n readonly size: AerisDialogSize;\n readonly width: string;\n readonly minWidth: string;\n readonly maxWidth: string;\n readonly height: string;\n readonly maxHeight: string;\n readonly mobileWidth: string;\n readonly closeAriaLabel: string;\n readonly ariaLabel: string;\n readonly ariaLabelledBy: string;\n readonly ariaDescribedBy: string;\n}\n\nexport interface AerisDynamicDialogShowEvent {\n readonly originalEvent: Event | null;\n}\n\nexport interface AerisDynamicDialogCloseEvent<TResult = unknown> {\n readonly originalEvent: Event | null;\n readonly reason: AerisDialogCloseReason;\n readonly result: TResult | undefined;\n}\n\nexport interface AerisDynamicDialogSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisDynamicDialogSubscribable<T> {\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription;\n}\n\nexport const AERIS_DYNAMIC_DIALOG_CONFIG = new InjectionToken<\n AerisDynamicDialogResolvedConfig\n>('AERIS_DYNAMIC_DIALOG_CONFIG');\n\nexport const AERIS_DYNAMIC_DIALOG_DATA = new InjectionToken<unknown>(\n 'AERIS_DYNAMIC_DIALOG_DATA',\n);\n\ninterface AerisDynamicDialogRefController<TResult> {\n readonly close: (result: TResult | undefined, originalEvent: Event | null) => void;\n readonly destroy: () => void;\n readonly focus: (options?: FocusOptions) => void;\n readonly maximize: () => void;\n readonly restore: () => void;\n readonly toggleMaximized: () => void;\n}\n\nclass AerisDynamicDialogEventStream<T> implements AerisDynamicDialogSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n private completed = false;\n\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription {\n if (this.completed) return { unsubscribe: () => undefined };\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n if (this.completed) return;\n for (const listener of [...this.listeners]) listener(event);\n }\n\n complete(): void {\n this.completed = true;\n this.listeners.clear();\n }\n}\n\nexport class AerisDynamicDialogRef<TResult = unknown> {\n private readonly closedStream = new AerisDynamicDialogEventStream<\n AerisDynamicDialogCloseEvent<TResult>\n >();\n private readonly shownStream = new AerisDynamicDialogEventStream<AerisDynamicDialogShowEvent>();\n private controller: AerisDynamicDialogRefController<TResult> | null = null;\n private closedOnce = false;\n\n readonly closed: AerisDynamicDialogSubscribable<AerisDynamicDialogCloseEvent<TResult>> =\n this.closedStream;\n readonly shown: AerisDynamicDialogSubscribable<AerisDynamicDialogShowEvent> = this.shownStream;\n\n close(result?: TResult, originalEvent: Event | null = null): void {\n if (this.closedOnce) return;\n this.controller?.close(result, originalEvent);\n }\n\n destroy(): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.controller?.destroy();\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n\n focus(options?: FocusOptions): void {\n this.controller?.focus(options);\n }\n\n maximize(): void {\n this.controller?.maximize();\n }\n\n restore(): void {\n this.controller?.restore();\n }\n\n toggleMaximized(): void {\n this.controller?.toggleMaximized();\n }\n\n attach(controller: AerisDynamicDialogRefController<TResult>): void {\n this.controller = controller;\n }\n\n notifyShown(event: AerisDynamicDialogShowEvent): void {\n if (this.closedOnce) return;\n this.shownStream.next(event);\n }\n\n notifyClosed(event: AerisDynamicDialogCloseEvent<TResult>): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.closedStream.next(event);\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n}\n\n@Component({\n selector: 'aeris-dynamic-dialog-host',\n imports: [AerisDialog, NgComponentOutlet],\n template: `\n <aeris-dialog\n #dialog\n [header]=\"settings().header\"\n [modal]=\"settings().modal\"\n [backdrop]=\"settings().backdrop\"\n [backdropBlur]=\"settings().backdropBlur\"\n [backdropBlurAmount]=\"settings().backdropBlurAmount\"\n [dismissibleMask]=\"settings().dismissibleMask\"\n [closeOnEscape]=\"settings().closeOnEscape\"\n [closable]=\"settings().closable\"\n [maximizable]=\"settings().maximizable\"\n [(maximized)]=\"maximized\"\n [draggable]=\"settings().draggable\"\n [resizable]=\"settings().resizable\"\n [blockScroll]=\"settings().blockScroll\"\n [focusTrap]=\"settings().focusTrap\"\n [restoreFocus]=\"settings().restoreFocus\"\n [autoFocus]=\"settings().autoFocus\"\n [initialFocus]=\"settings().initialFocus\"\n [position]=\"settings().position\"\n [size]=\"settings().size\"\n [width]=\"settings().width\"\n [minWidth]=\"settings().minWidth\"\n [maxWidth]=\"settings().maxWidth\"\n [height]=\"settings().height\"\n [maxHeight]=\"settings().maxHeight\"\n [mobileWidth]=\"settings().mobileWidth\"\n [closeAriaLabel]=\"settings().closeAriaLabel\"\n [ariaLabel]=\"settings().ariaLabel\"\n [ariaLabelledBy]=\"settings().ariaLabelledBy\"\n [ariaDescribedBy]=\"settings().ariaDescribedBy\"\n [visible]=\"visible()\"\n (shown)=\"handleShown($event)\"\n (hidden)=\"handleHidden($event)\"\n >\n <ng-container\n [ngComponentOutlet]=\"componentType()\"\n [ngComponentOutletInputs]=\"settings().inputValues\"\n [ngComponentOutletInjector]=\"contentInjector()\"\n />\n </aeris-dialog>\n `,\n host: {\n class: 'aeris-dynamic-dialog-host',\n },\n})\nexport class AerisDynamicDialogHost {\n readonly componentType = input.required<Type<unknown>>();\n readonly contentInjector = input.required<Injector>();\n readonly config = input.required<AerisDynamicDialogResolvedConfig>();\n readonly dialogRef = input.required<AerisDynamicDialogRef>();\n\n protected readonly dialog = viewChild<AerisDialog>('dialog');\n protected readonly visible = signal(true);\n protected readonly settings = computed(() => this.config());\n protected readonly maximized = linkedSignal(() => this.settings().maximized);\n private closeResult: unknown;\n\n closeWithResult(result: unknown, originalEvent: Event | null): void {\n this.closeResult = result;\n this.dialog()?.hide(originalEvent, 'api');\n }\n\n focus(options?: FocusOptions): void {\n this.dialog()?.focus(options);\n }\n\n maximize(): void {\n this.dialog()?.maximize();\n }\n\n restore(): void {\n this.dialog()?.restore();\n }\n\n toggleMaximized(): void {\n this.dialog()?.toggleMaximized();\n }\n\n protected handleShown(event: AerisDialogVisibilityChangeEvent): void {\n queueMicrotask(() => this.dialogRef().notifyShown({ originalEvent: event.originalEvent }));\n }\n\n protected handleHidden(event: AerisDialogVisibilityChangeEvent): void {\n this.visible.set(false);\n this.dialogRef().notifyClosed({\n originalEvent: event.originalEvent,\n reason: event.reason,\n result: this.closeResult,\n });\n }\n}\n\n@Service()\nexport class AerisDynamicDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly document = inject(DOCUMENT);\n private readonly environmentInjector = inject(EnvironmentInjector);\n private readonly activeRefs = new Set<AerisDynamicDialogRef<unknown>>();\n\n open<TComponent, TData = unknown, TResult = unknown>(\n componentType: Type<TComponent>,\n config: AerisDynamicDialogConfig<TData> = {},\n ): AerisDynamicDialogRef<TResult> {\n const resolvedConfig = this.resolveConfig(config);\n const ref = new AerisDynamicDialogRef<TResult>();\n const contentInjector = Injector.create({\n parent: this.environmentInjector,\n providers: [\n { provide: AerisDynamicDialogRef, useValue: ref },\n { provide: AERIS_DYNAMIC_DIALOG_CONFIG, useValue: resolvedConfig },\n { provide: AERIS_DYNAMIC_DIALOG_DATA, useValue: resolvedConfig.data },\n ],\n });\n const hostRef = createComponent(AerisDynamicDialogHost, {\n environmentInjector: this.environmentInjector,\n });\n const cleanup = (): void => {\n if (!this.activeRefs.delete(ref as AerisDynamicDialogRef<unknown>)) return;\n this.appRef.detachView(hostRef.hostView);\n hostRef.destroy();\n };\n\n ref.attach({\n close: (result, originalEvent) => {\n hostRef.instance.closeWithResult(result, originalEvent);\n hostRef.changeDetectorRef.detectChanges();\n },\n destroy: cleanup,\n focus: (options) => hostRef.instance.focus(options),\n maximize: () => hostRef.instance.maximize(),\n restore: () => hostRef.instance.restore(),\n toggleMaximized: () => hostRef.instance.toggleMaximized(),\n });\n ref.closed.subscribe(() => queueMicrotask(cleanup));\n this.activeRefs.add(ref as AerisDynamicDialogRef<unknown>);\n\n hostRef.setInput('componentType', componentType);\n hostRef.setInput('contentInjector', contentInjector);\n hostRef.setInput('config', resolvedConfig);\n hostRef.setInput('dialogRef', ref);\n this.appRef.attachView(hostRef.hostView);\n this.document.body.appendChild(this.rootNode(hostRef));\n hostRef.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n closeAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.close();\n }\n\n destroyAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.destroy();\n }\n\n private resolveConfig<TData>(\n config: AerisDynamicDialogConfig<TData>,\n ): AerisDynamicDialogResolvedConfig<TData> {\n return {\n header: config.header ?? '',\n data: config.data,\n inputValues: config.inputValues ?? {},\n modal: config.modal ?? true,\n backdrop: config.backdrop ?? true,\n backdropBlur: config.backdropBlur ?? true,\n backdropBlurAmount: config.backdropBlurAmount ?? '',\n dismissibleMask: config.dismissibleMask ?? false,\n closeOnEscape: config.closeOnEscape ?? true,\n closable: config.closable ?? true,\n maximizable: config.maximizable ?? false,\n maximized: config.maximized ?? false,\n draggable: config.draggable ?? false,\n resizable: config.resizable ?? false,\n blockScroll: config.blockScroll ?? true,\n focusTrap: config.focusTrap ?? true,\n restoreFocus: config.restoreFocus ?? true,\n autoFocus: config.autoFocus ?? true,\n initialFocus: config.initialFocus ?? '',\n position: config.position ?? 'center',\n size: config.size ?? 'md',\n width: config.width ?? '',\n minWidth: config.minWidth ?? '',\n maxWidth: config.maxWidth ?? '',\n height: config.height ?? '',\n maxHeight: config.maxHeight ?? '',\n mobileWidth: config.mobileWidth ?? '',\n closeAriaLabel: config.closeAriaLabel ?? 'Close dialog',\n ariaLabel: config.ariaLabel ?? '',\n ariaLabelledBy: config.ariaLabelledBy ?? '',\n ariaDescribedBy: config.ariaDescribedBy ?? '',\n };\n }\n\n private rootNode(hostRef: ComponentRef<AerisDynamicDialogHost>): Node {\n const [node] = (hostRef.hostView as EmbeddedViewRef<unknown>).rootNodes;\n return node instanceof Node ? node : this.document.createTextNode('');\n }\n}\n\nexport const AerisDynamicDialogModule = [AerisDynamicDialogHost] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAkHa,2BAA2B,GAAG,IAAI,cAAc,CAE3D,6BAA6B;MAElB,yBAAyB,GAAG,IAAI,cAAc,CACzD,2BAA2B;AAY7B,MAAM,6BAA6B,CAAA;AAChB,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;IAClD,SAAS,GAAG,KAAK;AAEzB,IAAA,SAAS,CAAC,IAAwB,EAAA;QAChC,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,EAAE;AAC3D,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAK;AAChB,gBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7B,CAAC;SACF;IACH;AAEA,IAAA,IAAI,CAAC,KAAQ,EAAA;QACX,IAAI,IAAI,CAAC,SAAS;YAAE;QACpB,KAAK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A;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;AA2GM,MAAM,wBAAwB,GAAG,CAAC,sBAAsB;;ACra/D;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-dynamic-dialog.mjs","names":[],"sources":["../../../projects/aeris-ui/dynamic-dialog/aeris-dynamic-dialog.ts"],"sourcesContent":["import { DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport {\n ApplicationRef,\n Component,\n TemplateRef,\n ComponentRef,\n EmbeddedViewRef,\n EnvironmentInjector,\n InjectionToken,\n Injector,\n Service,\n Type,\n computed,\n createComponent,\n inject,\n input,\n linkedSignal,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport {\n AerisDialog,\n type AerisDialogCloseReason,\n type AerisDialogTemplateContext,\n type AerisDialogPosition,\n type AerisDialogSize,\n type AerisDialogVisibilityChangeEvent,\n} from '@aeris-ui/core/dialog';\nimport type { AerisAppendTo } from '@aeris-ui/core';\n\nexport interface AerisDynamicDialogConfig<TData = unknown> {\n readonly header?: string;\n readonly appendTo?: AerisAppendTo;\n readonly data?: TData;\n readonly inputValues?: Record<string, unknown>;\n readonly modal?: boolean;\n readonly backdrop?: boolean;\n readonly backdropBlur?: boolean;\n readonly backdropBlurAmount?: string;\n readonly closeOnBackdropClick?: boolean;\n readonly closeOnEscape?: boolean;\n readonly closable?: boolean;\n readonly maximizeIconTemplate?: TemplateRef<AerisDialogTemplateContext>;\n readonly maximizable?: boolean;\n readonly maximized?: boolean;\n readonly draggable?: boolean;\n readonly resizable?: boolean;\n readonly blockScroll?: boolean;\n readonly focusTrap?: boolean;\n readonly restoreFocus?: boolean;\n readonly autoFocus?: boolean;\n readonly initialFocus?: string;\n readonly position?: AerisDialogPosition;\n readonly size?: AerisDialogSize;\n readonly width?: string;\n readonly minWidth?: string;\n readonly maxWidth?: string;\n readonly height?: string;\n readonly maxHeight?: string;\n readonly mobileWidth?: string;\n readonly closeIconTemplate?: TemplateRef<AerisDialogTemplateContext>;\n readonly closeAriaLabel?: string;\n readonly ariaLabel?: string;\n readonly ariaLabelledBy?: string;\n readonly ariaDescribedBy?: string;\n}\n\nexport interface AerisDynamicDialogResolvedConfig<TData = unknown> {\n readonly header: string;\n readonly appendTo: AerisAppendTo;\n readonly data: TData | undefined;\n readonly inputValues: Record<string, unknown>;\n readonly modal: boolean;\n readonly backdrop: boolean;\n readonly backdropBlur: boolean;\n readonly backdropBlurAmount: string;\n readonly closeOnBackdropClick: boolean;\n readonly closeOnEscape: boolean;\n readonly closable: boolean;\n readonly maximizeIconTemplate: TemplateRef<AerisDialogTemplateContext> | undefined;\n readonly maximizable: boolean;\n readonly maximized: boolean;\n readonly draggable: boolean;\n readonly resizable: boolean;\n readonly blockScroll: boolean;\n readonly focusTrap: boolean;\n readonly restoreFocus: boolean;\n readonly autoFocus: boolean;\n readonly initialFocus: string;\n readonly position: AerisDialogPosition;\n readonly size: AerisDialogSize;\n readonly width: string;\n readonly minWidth: string;\n readonly maxWidth: string;\n readonly height: string;\n readonly maxHeight: string;\n readonly mobileWidth: string;\n readonly closeIconTemplate: TemplateRef<AerisDialogTemplateContext> | undefined;\n readonly closeAriaLabel: string;\n readonly ariaLabel: string;\n readonly ariaLabelledBy: string;\n readonly ariaDescribedBy: string;\n}\n\nexport interface AerisDynamicDialogOpenEvent {\n readonly originalEvent: Event | null;\n}\n\nexport interface AerisDynamicDialogCloseEvent<TResult = unknown> {\n readonly originalEvent: Event | null;\n readonly reason: AerisDialogCloseReason;\n readonly result: TResult | undefined;\n}\n\nexport interface AerisDynamicDialogSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisDynamicDialogSubscribable<T> {\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription;\n}\n\nexport const AERIS_DYNAMIC_DIALOG_CONFIG = new InjectionToken<AerisDynamicDialogResolvedConfig>(\n 'AERIS_DYNAMIC_DIALOG_CONFIG',\n);\n\nexport const AERIS_DYNAMIC_DIALOG_DATA = new InjectionToken<unknown>('AERIS_DYNAMIC_DIALOG_DATA');\n\ninterface AerisDynamicDialogRefController<TResult> {\n readonly close: (result: TResult | undefined, originalEvent: Event | null) => void;\n readonly destroy: () => void;\n readonly focus: (options?: FocusOptions) => void;\n readonly maximize: () => void;\n readonly restore: () => void;\n readonly toggleMaximized: () => void;\n}\n\nclass AerisDynamicDialogEventStream<T> implements AerisDynamicDialogSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n private completed = false;\n\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription {\n if (this.completed) return { unsubscribe: () => undefined };\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n if (this.completed) return;\n for (const listener of [...this.listeners]) listener(event);\n }\n\n complete(): void {\n this.completed = true;\n this.listeners.clear();\n }\n}\n\nexport class AerisDynamicDialogRef<TResult = unknown> {\n private readonly closedStream = new AerisDynamicDialogEventStream<\n AerisDynamicDialogCloseEvent<TResult>\n >();\n private readonly openedStream = new AerisDynamicDialogEventStream<AerisDynamicDialogOpenEvent>();\n private controller: AerisDynamicDialogRefController<TResult> | null = null;\n private closedOnce = false;\n\n readonly closed: AerisDynamicDialogSubscribable<AerisDynamicDialogCloseEvent<TResult>> =\n this.closedStream;\n readonly opened: AerisDynamicDialogSubscribable<AerisDynamicDialogOpenEvent> = this.openedStream;\n\n close(result?: TResult, originalEvent: Event | null = null): void {\n if (this.closedOnce) return;\n this.controller?.close(result, originalEvent);\n }\n\n destroy(): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.controller?.destroy();\n this.closedStream.complete();\n this.openedStream.complete();\n this.controller = null;\n }\n\n focus(options?: FocusOptions): void {\n this.controller?.focus(options);\n }\n\n maximize(): void {\n this.controller?.maximize();\n }\n\n restore(): void {\n this.controller?.restore();\n }\n\n toggleMaximized(): void {\n this.controller?.toggleMaximized();\n }\n\n attach(controller: AerisDynamicDialogRefController<TResult>): void {\n this.controller = controller;\n }\n\n notifyOpened(event: AerisDynamicDialogOpenEvent): void {\n if (this.closedOnce) return;\n this.openedStream.next(event);\n }\n\n notifyClosed(event: AerisDynamicDialogCloseEvent<TResult>): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.closedStream.next(event);\n this.closedStream.complete();\n this.openedStream.complete();\n this.controller = null;\n }\n}\n\n@Component({\n selector: 'aeris-dynamic-dialog-host',\n imports: [AerisDialog, NgComponentOutlet],\n template: `\n <aeris-dialog\n #dialog\n [appendTo]=\"settings().appendTo\"\n [header]=\"settings().header\"\n [modal]=\"settings().modal\"\n [backdrop]=\"settings().backdrop\"\n [backdropBlur]=\"settings().backdropBlur\"\n [backdropBlurAmount]=\"settings().backdropBlurAmount\"\n [closeOnBackdropClick]=\"settings().closeOnBackdropClick\"\n [closeOnEscape]=\"settings().closeOnEscape\"\n [closable]=\"settings().closable\"\n [maximizeIconTemplate]=\"settings().maximizeIconTemplate\"\n [maximizable]=\"settings().maximizable\"\n [(maximized)]=\"maximized\"\n [draggable]=\"settings().draggable\"\n [resizable]=\"settings().resizable\"\n [blockScroll]=\"settings().blockScroll\"\n [focusTrap]=\"settings().focusTrap\"\n [restoreFocus]=\"settings().restoreFocus\"\n [autoFocus]=\"settings().autoFocus\"\n [initialFocus]=\"settings().initialFocus\"\n [position]=\"settings().position\"\n [size]=\"settings().size\"\n [width]=\"settings().width\"\n [minWidth]=\"settings().minWidth\"\n [maxWidth]=\"settings().maxWidth\"\n [height]=\"settings().height\"\n [maxHeight]=\"settings().maxHeight\"\n [mobileWidth]=\"settings().mobileWidth\"\n [closeIconTemplate]=\"settings().closeIconTemplate\"\n [closeAriaLabel]=\"settings().closeAriaLabel\"\n [ariaLabel]=\"settings().ariaLabel\"\n [ariaLabelledBy]=\"settings().ariaLabelledBy\"\n [ariaDescribedBy]=\"settings().ariaDescribedBy\"\n [visible]=\"visible()\"\n (opened)=\"handleOpened($event)\"\n (closed)=\"handleHidden($event)\"\n >\n <ng-container\n [ngComponentOutlet]=\"componentType()\"\n [ngComponentOutletInputs]=\"settings().inputValues\"\n [ngComponentOutletInjector]=\"contentInjector()\"\n />\n </aeris-dialog>\n `,\n host: {\n class: 'aeris-dynamic-dialog-host',\n },\n})\nexport class AerisDynamicDialogHost {\n readonly componentType = input.required<Type<unknown>>();\n readonly contentInjector = input.required<Injector>();\n readonly config = input.required<AerisDynamicDialogResolvedConfig>();\n readonly dialogRef = input.required<AerisDynamicDialogRef>();\n\n protected readonly dialog = viewChild<AerisDialog>('dialog');\n protected readonly visible = signal(true);\n protected readonly settings = computed(() => this.config());\n protected readonly maximized = linkedSignal(() => this.settings().maximized);\n private closeResult: unknown;\n\n closeWithResult(result: unknown, originalEvent: Event | null): void {\n this.closeResult = result;\n this.dialog()?.hide(originalEvent, 'api');\n }\n\n focus(options?: FocusOptions): void {\n this.dialog()?.focus(options);\n }\n\n maximize(): void {\n this.dialog()?.maximize();\n }\n\n restore(): void {\n this.dialog()?.restore();\n }\n\n toggleMaximized(): void {\n this.dialog()?.toggleMaximized();\n }\n\n protected handleOpened(event: AerisDialogVisibilityChangeEvent): void {\n queueMicrotask(() => this.dialogRef().notifyOpened({ originalEvent: event.originalEvent }));\n }\n\n protected handleHidden(event: AerisDialogVisibilityChangeEvent): void {\n this.visible.set(false);\n this.dialogRef().notifyClosed({\n originalEvent: event.originalEvent,\n reason: event.reason,\n result: this.closeResult,\n });\n }\n}\n\n@Service()\nexport class AerisDynamicDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly document = inject(DOCUMENT);\n private readonly environmentInjector = inject(EnvironmentInjector);\n private readonly activeRefs = new Set<AerisDynamicDialogRef<unknown>>();\n\n open<TComponent, TData = unknown, TResult = unknown>(\n componentType: Type<TComponent>,\n config: AerisDynamicDialogConfig<TData> = {},\n ): AerisDynamicDialogRef<TResult> {\n const resolvedConfig = this.resolveConfig(config);\n const ref = new AerisDynamicDialogRef<TResult>();\n const contentInjector = Injector.create({\n parent: this.environmentInjector,\n providers: [\n { provide: AerisDynamicDialogRef, useValue: ref },\n { provide: AERIS_DYNAMIC_DIALOG_CONFIG, useValue: resolvedConfig },\n { provide: AERIS_DYNAMIC_DIALOG_DATA, useValue: resolvedConfig.data },\n ],\n });\n const hostRef = createComponent(AerisDynamicDialogHost, {\n environmentInjector: this.environmentInjector,\n });\n const cleanup = (): void => {\n if (!this.activeRefs.delete(ref as AerisDynamicDialogRef<unknown>)) return;\n this.appRef.detachView(hostRef.hostView);\n hostRef.destroy();\n };\n\n ref.attach({\n close: (result, originalEvent) => {\n hostRef.instance.closeWithResult(result, originalEvent);\n hostRef.changeDetectorRef.detectChanges();\n },\n destroy: cleanup,\n focus: (options) => hostRef.instance.focus(options),\n maximize: () => hostRef.instance.maximize(),\n restore: () => hostRef.instance.restore(),\n toggleMaximized: () => hostRef.instance.toggleMaximized(),\n });\n ref.closed.subscribe(() => queueMicrotask(cleanup));\n this.activeRefs.add(ref as AerisDynamicDialogRef<unknown>);\n\n hostRef.setInput('componentType', componentType);\n hostRef.setInput('contentInjector', contentInjector);\n hostRef.setInput('config', resolvedConfig);\n hostRef.setInput('dialogRef', ref);\n this.appRef.attachView(hostRef.hostView);\n this.document.body.appendChild(this.rootNode(hostRef));\n hostRef.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n closeAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.close();\n }\n\n destroyAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.destroy();\n }\n\n private resolveConfig<TData>(\n config: AerisDynamicDialogConfig<TData>,\n ): AerisDynamicDialogResolvedConfig<TData> {\n return {\n header: config.header ?? '',\n appendTo: config.appendTo,\n data: config.data,\n inputValues: config.inputValues ?? {},\n modal: config.modal ?? true,\n backdrop: config.backdrop ?? true,\n backdropBlur: config.backdropBlur ?? true,\n backdropBlurAmount: config.backdropBlurAmount ?? '',\n closeOnBackdropClick: config.closeOnBackdropClick ?? false,\n closeOnEscape: config.closeOnEscape ?? true,\n closable: config.closable ?? true,\n maximizeIconTemplate: config.maximizeIconTemplate,\n maximizable: config.maximizable ?? false,\n maximized: config.maximized ?? false,\n draggable: config.draggable ?? false,\n resizable: config.resizable ?? false,\n blockScroll: config.blockScroll ?? true,\n focusTrap: config.focusTrap ?? true,\n restoreFocus: config.restoreFocus ?? true,\n autoFocus: config.autoFocus ?? true,\n initialFocus: config.initialFocus ?? '',\n position: config.position ?? 'center',\n size: config.size ?? 'md',\n width: config.width ?? '',\n minWidth: config.minWidth ?? '',\n maxWidth: config.maxWidth ?? '',\n height: config.height ?? '',\n maxHeight: config.maxHeight ?? '',\n mobileWidth: config.mobileWidth ?? '',\n closeIconTemplate: config.closeIconTemplate,\n closeAriaLabel: config.closeAriaLabel ?? 'Close dialog',\n ariaLabel: config.ariaLabel ?? '',\n ariaLabelledBy: config.ariaLabelledBy ?? '',\n ariaDescribedBy: config.ariaDescribedBy ?? '',\n };\n }\n\n private rootNode(hostRef: ComponentRef<AerisDynamicDialogHost>): Node {\n const [node] = (hostRef.hostView as EmbeddedViewRef<unknown>).rootNodes;\n return node instanceof Node ? node : this.document.createTextNode('');\n }\n}\n\nexport const AerisDynamicDialogModule = [AerisDynamicDialogHost] as const;\n"],"mappings":";;;;AA2HA,MAAa,8BAA8B,IAAI,eAC7C,6BAA6B;AAG/B,MAAa,4BAA4B,IAAI,eAAwB,2BAA2B;AAWhG,IAAM,gCAAN,MAAmC;CAChB,4BAAY,IAAI,IAAG;CAC5B,YAAY;CAEpB,UAAU,MAAwB;EAChC,IAAI,KAAK,WAAW,OAAO,EAAE,mBAAmB,OAAS;EACzD,KAAK,UAAU,IAAI,IAAI;EACvB,OAAO,EACL,mBAAkB;GAChB,KAAK,UAAU,OAAO,IAAI;EAC5B,EACD;CACH;CAEA,KAAK,OAAQ;EACX,IAAI,KAAK,WAAW;EACpB,KAAK,MAAM,YAAY,CAAC,GAAG,KAAK,SAAS,GAAG,SAAS,KAAK;CAC5D;CAEA,WAAQ;EACN,KAAK,YAAY;EACjB,KAAK,UAAU,MAAK;CACtB;AACD;AAED,IAA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