@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,266 +1,770 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, signal, Service, contentChild, input, numberAttribute, booleanAttribute, output, computed, effect, Component } from '@angular/core';
4
-
5
- class AerisToastEventStream {
6
- listeners = new Set();
7
- subscribe(next) {
8
- this.listeners.add(next);
9
- return {
10
- unsubscribe: () => {
11
- this.listeners.delete(next);
12
- },
13
- };
14
- }
15
- next(event) {
16
- for (const listener of [...this.listeners])
17
- listener(event);
18
- }
19
- }
20
- class AerisToastContentTemplate {
21
- template = inject(TemplateRef);
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToastContentTemplate, isStandalone: true, selector: "ng-template[aerisToastContent]", ngImport: i0 });
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastContentTemplate, decorators: [{
26
- type: Directive,
27
- args: [{ selector: 'ng-template[aerisToastContent]' }]
28
- }] });
29
- class AerisToastIconTemplate {
30
- template = inject(TemplateRef);
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToastIconTemplate, isStandalone: true, selector: "ng-template[aerisToastIcon]", ngImport: i0 });
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastIconTemplate, decorators: [{
35
- type: Directive,
36
- args: [{ selector: 'ng-template[aerisToastIcon]' }]
37
- }] });
1
+ import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, DestroyRef, Directive, Service, TemplateRef, booleanAttribute, computed, contentChild, effect, inject, input, numberAttribute, output, signal, viewChild, viewChildren } from "@angular/core";
4
+ import { aerisInternalCreateFrameScheduler, aerisInternalObserveViewport, ɵAerisIcon } from "@aeris-ui/core";
5
+ var AerisToastEventStream = class {
6
+ listeners = /* @__PURE__ */ new Set();
7
+ subscribe(next) {
8
+ this.listeners.add(next);
9
+ return { unsubscribe: () => {
10
+ this.listeners.delete(next);
11
+ } };
12
+ }
13
+ next(event) {
14
+ for (const listener of [...this.listeners]) listener(event);
15
+ }
16
+ };
17
+ var AerisToastContentTemplate = class AerisToastContentTemplate {
18
+ template = inject(TemplateRef);
19
+ static ɵfac = i0.ɵɵngDeclareFactory({
20
+ minVersion: "12.0.0",
21
+ version: "22.2.3",
22
+ ngImport: i0,
23
+ type: AerisToastContentTemplate,
24
+ deps: [],
25
+ target: i0.ɵɵFactoryTarget.Directive
26
+ });
27
+ static ɵdir = i0.ɵɵngDeclareDirective({
28
+ minVersion: "14.0.0",
29
+ version: "22.2.3",
30
+ type: AerisToastContentTemplate,
31
+ isStandalone: true,
32
+ selector: "ng-template[aerisToastContent]",
33
+ ngImport: i0
34
+ });
35
+ };
36
+ i0.ɵɵngDeclareClassMetadata({
37
+ minVersion: "12.0.0",
38
+ version: "22.2.3",
39
+ ngImport: i0,
40
+ type: AerisToastContentTemplate,
41
+ decorators: [{
42
+ type: Directive,
43
+ args: [{ selector: "ng-template[aerisToastContent]" }]
44
+ }]
45
+ });
46
+ var AerisToastIconTemplate = class AerisToastIconTemplate {
47
+ template = inject(TemplateRef);
48
+ static ɵfac = i0.ɵɵngDeclareFactory({
49
+ minVersion: "12.0.0",
50
+ version: "22.2.3",
51
+ ngImport: i0,
52
+ type: AerisToastIconTemplate,
53
+ deps: [],
54
+ target: i0.ɵɵFactoryTarget.Directive
55
+ });
56
+ static ɵdir = i0.ɵɵngDeclareDirective({
57
+ minVersion: "14.0.0",
58
+ version: "22.2.3",
59
+ type: AerisToastIconTemplate,
60
+ isStandalone: true,
61
+ selector: "ng-template[aerisToastIcon]",
62
+ ngImport: i0
63
+ });
64
+ };
65
+ i0.ɵɵngDeclareClassMetadata({
66
+ minVersion: "12.0.0",
67
+ version: "22.2.3",
68
+ ngImport: i0,
69
+ type: AerisToastIconTemplate,
70
+ decorators: [{
71
+ type: Directive,
72
+ args: [{ selector: "ng-template[aerisToastIcon]" }]
73
+ }]
74
+ });
38
75
  let nextToastId = 0;
39
- class AerisToastService {
40
- store = signal([], /* @ts-ignore */
41
- ...(ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []));
42
- timers = new Map();
43
- closedStream = new AerisToastEventStream();
44
- messages = this.store.asReadonly();
45
- closed = this.closedStream;
46
- show(message) {
47
- const resolved = this.resolveMessage(message);
48
- this.store.update((messages) => [...messages.filter((item) => item.id !== resolved.id), resolved]);
49
- this.clearTimer(resolved.id);
50
- this.schedule(resolved);
51
- return resolved;
52
- }
53
- showAll(messages) {
54
- return messages.map((message) => this.show(message));
55
- }
56
- remove(id, reason = 'api') {
57
- const message = this.store().find((item) => item.id === id);
58
- if (!message)
59
- return;
60
- this.store.update((messages) => messages.filter((item) => item.id !== id));
61
- this.clearTimer(id);
62
- this.closedStream.next({ message, reason });
63
- }
64
- clear(group = '') {
65
- const targets = this.store().filter((message) => message.group === group);
66
- for (const message of targets)
67
- this.remove(message.id, 'clear');
68
- }
69
- clearAll() {
70
- const targets = this.store();
71
- for (const message of targets)
72
- this.remove(message.id, 'clear');
73
- }
74
- pause(id) {
75
- const timer = this.timers.get(id);
76
- if (!timer || timer.paused || !timer.handle)
77
- return;
78
- globalThis.clearTimeout(timer.handle);
79
- timer.handle = null;
80
- timer.remaining = Math.max(0, timer.remaining - (Date.now() - timer.startedAt));
81
- timer.paused = true;
82
- }
83
- resume(id) {
84
- const timer = this.timers.get(id);
85
- if (!timer || !timer.paused)
86
- return;
87
- timer.paused = false;
88
- timer.startedAt = Date.now();
89
- timer.handle = globalThis.setTimeout(() => this.remove(id, 'timeout'), timer.remaining);
90
- }
91
- schedule(message) {
92
- if (message.sticky || message.life <= 0)
93
- return;
94
- this.timers.set(message.id, {
95
- message,
96
- handle: globalThis.setTimeout(() => this.remove(message.id, 'timeout'), message.life),
97
- startedAt: Date.now(),
98
- remaining: message.life,
99
- paused: false,
100
- });
101
- }
102
- clearTimer(id) {
103
- const timer = this.timers.get(id);
104
- if (timer?.handle)
105
- globalThis.clearTimeout(timer.handle);
106
- this.timers.delete(id);
107
- }
108
- resolveMessage(input) {
109
- const severity = input.severity ?? 'info';
110
- const role = input.role ?? (severity === 'error' || severity === 'warning' ? 'alert' : 'status');
111
- return {
112
- id: input.id ?? `aeris-toast-${++nextToastId}`,
113
- group: input.group ?? '',
114
- severity,
115
- summary: input.summary ?? '',
116
- detail: input.detail ?? '',
117
- life: input.life ?? 5000,
118
- sticky: input.sticky ?? false,
119
- closable: input.closable ?? true,
120
- data: input.data,
121
- ariaLabel: input.ariaLabel ?? '',
122
- ariaLive: input.ariaLive ?? (role === 'alert' ? 'assertive' : 'polite'),
123
- role,
124
- createdAt: Date.now(),
125
- };
126
- }
127
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService, deps: [], target: i0.ɵɵFactoryTarget.Service });
128
- static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService });
129
- }
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService, decorators: [{
131
- type: Service
132
- }] });
133
- class AerisToast {
134
- toastService = inject(AerisToastService);
135
- contentTemplate = contentChild(AerisToastContentTemplate, /* @ts-ignore */
136
- ...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
137
- iconTemplate = contentChild(AerisToastIconTemplate, /* @ts-ignore */
138
- ...(ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []));
139
- position = input('top-right', /* @ts-ignore */
140
- ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
141
- group = input('', /* @ts-ignore */
142
- ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
143
- mode = input('stacked', /* @ts-ignore */
144
- ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
145
- visibleCount = input(4, { ...(ngDevMode ? { debugName: "visibleCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
146
- limit = input(undefined, { ...(ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
147
- newestOnTop = input(true, { ...(ngDevMode ? { debugName: "newestOnTop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
148
- pauseOnHover = input(true, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
149
- showClose = input(true, { ...(ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
150
- ariaLabel = input('Notifications', /* @ts-ignore */
151
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
152
- closeAriaLabel = input('Close notification', /* @ts-ignore */
153
- ...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
154
- closed = output();
155
- stackHovered = signal(false, /* @ts-ignore */
156
- ...(ngDevMode ? [{ debugName: "stackHovered" }] : /* istanbul ignore next */ []));
157
- orderedMessages = computed(() => {
158
- const group = this.group();
159
- const filtered = this.toastService.messages().filter((message) => message.group === group);
160
- return this.newestOnTop() ? [...filtered].reverse() : filtered;
161
- }, /* @ts-ignore */
162
- ...(ngDevMode ? [{ debugName: "orderedMessages" }] : /* istanbul ignore next */ []));
163
- effectiveVisibleCount = computed(() => {
164
- const limit = this.limit();
165
- const visibleCount = this.visibleCount();
166
- const count = typeof limit === 'number' && Number.isFinite(limit)
167
- ? limit
168
- : typeof visibleCount === 'number' && Number.isFinite(visibleCount)
169
- ? visibleCount
170
- : 4;
171
- return Number.isFinite(count) && count > 0 ? Math.floor(count) : 4;
172
- }, /* @ts-ignore */
173
- ...(ngDevMode ? [{ debugName: "effectiveVisibleCount" }] : /* istanbul ignore next */ []));
174
- visibleMessages = computed(() => this.orderedMessages().slice(0, this.effectiveVisibleCount()), /* @ts-ignore */
175
- ...(ngDevMode ? [{ debugName: "visibleMessages" }] : /* istanbul ignore next */ []));
176
- hiddenCount = computed(() => Math.max(0, this.orderedMessages().length - this.visibleMessages().length), /* @ts-ignore */
177
- ...(ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []));
178
- visibleStackSize = computed(() => `${this.visibleMessages().length}`, /* @ts-ignore */
179
- ...(ngDevMode ? [{ debugName: "visibleStackSize" }] : /* istanbul ignore next */ []));
180
- visibleStack = computed(() => {
181
- const messages = this.visibleMessages();
182
- return messages.map((message, stackIndex) => ({
183
- message,
184
- stackIndex,
185
- stackIndexValue: `${stackIndex}`,
186
- stackSizeValue: `${messages.length}`,
187
- stackOpacityValue: `${Math.max(0.64, 1 - stackIndex * 0.12)}`,
188
- stackScaleValue: `${Math.max(0.9, 1 - stackIndex * 0.025)}`,
189
- stackOffsetValue: `${stackIndex * 0.08}rem`,
190
- stackOffsetInverseValue: `${stackIndex * -0.08}rem`,
191
- primary: stackIndex === 0,
192
- }));
193
- }, /* @ts-ignore */
194
- ...(ngDevMode ? [{ debugName: "visibleStack" }] : /* istanbul ignore next */ []));
195
- templateContexts = computed(() => {
196
- const contexts = {};
197
- for (const message of this.visibleMessages()) {
198
- contexts[message.id] = {
199
- $implicit: message,
200
- message,
201
- close: () => this.close(message),
202
- };
203
- }
204
- return contexts;
205
- }, /* @ts-ignore */
206
- ...(ngDevMode ? [{ debugName: "templateContexts" }] : /* istanbul ignore next */ []));
207
- constructor() {
208
- effect((onCleanup) => {
209
- const group = this.group();
210
- const subscription = this.toastService.closed.subscribe((event) => {
211
- if (event.message.group !== group)
212
- return;
213
- this.closed.emit(event);
214
- });
215
- onCleanup(() => subscription.unsubscribe());
216
- });
217
- effect(() => {
218
- const visibleIds = new Set(this.visibleMessages().map((message) => message.id));
219
- const pauseVisible = this.stackHovered() && this.pauseOnHover();
220
- for (const message of this.orderedMessages()) {
221
- if (visibleIds.has(message.id) && !pauseVisible) {
222
- this.toastService.resume(message.id);
223
- }
224
- else {
225
- this.toastService.pause(message.id);
226
- }
227
- }
228
- });
229
- }
230
- close(message) {
231
- this.toastService.remove(message.id, 'close-button');
232
- }
233
- pauseVisible() {
234
- this.stackHovered.set(true);
235
- if (!this.pauseOnHover())
236
- return;
237
- for (const message of this.visibleMessages())
238
- this.toastService.pause(message.id);
239
- }
240
- resumeVisible() {
241
- this.stackHovered.set(false);
242
- if (!this.pauseOnHover())
243
- return;
244
- for (const message of this.visibleMessages())
245
- this.toastService.resume(message.id);
246
- }
247
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
248
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisToast, isStandalone: true, selector: "aeris-toast", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, visibleCount: { classPropertyName: "visibleCount", publicName: "visibleCount", isSignal: true, isRequired: false, transformFunction: null }, limit: { classPropertyName: "limit", publicName: "limit", isSignal: true, isRequired: false, transformFunction: null }, newestOnTop: { classPropertyName: "newestOnTop", publicName: "newestOnTop", isSignal: true, isRequired: false, transformFunction: null }, pauseOnHover: { classPropertyName: "pauseOnHover", publicName: "pauseOnHover", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.data-position": "position()" }, classAttribute: "aeris-toast" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: AerisToastContentTemplate, descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: AerisToastIconTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
249
- @if (visibleStack().length > 0) {
250
- <section
251
- class="aeris-toast__region"
252
- [attr.aria-label]="ariaLabel()"
253
- [attr.data-position]="position()"
254
- [attr.data-mode]="mode()"
255
- [attr.data-newest-on-top]="newestOnTop() || null"
256
- [attr.data-overflow]="hiddenCount() > 0 || null"
257
- [style.--aeris-toast-stack-size]="visibleStackSize()"
258
- (pointerenter)="pauseVisible()"
259
- (pointerleave)="resumeVisible()"
260
- (focusin)="pauseVisible()"
261
- (focusout)="resumeVisible()"
262
- >
263
- @for (item of visibleStack(); track item.message.id) {
76
+ var AerisToastService = class AerisToastService {
77
+ store = signal([], ...ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []);
78
+ timers = /* @__PURE__ */ new Map();
79
+ closedStream = new AerisToastEventStream();
80
+ messages = this.store.asReadonly();
81
+ closed = this.closedStream;
82
+ show(message) {
83
+ const resolved = this.resolveMessage(message);
84
+ this.store.update((messages) => [...messages.filter((item) => item.id !== resolved.id), resolved]);
85
+ this.clearTimer(resolved.id);
86
+ this.schedule(resolved);
87
+ return resolved;
88
+ }
89
+ showAll(messages) {
90
+ const resolved = messages.map((message) => this.resolveMessage(message));
91
+ const resolvedIds = new Set(resolved.map((message) => message.id));
92
+ this.store.update((current) => [...current.filter((message) => !resolvedIds.has(message.id)), ...resolved]);
93
+ for (const message of resolved) {
94
+ this.clearTimer(message.id);
95
+ this.schedule(message);
96
+ }
97
+ return resolved;
98
+ }
99
+ remove(id, reason = "api") {
100
+ const message = this.store().find((item) => item.id === id);
101
+ if (!message) return;
102
+ this.store.update((messages) => messages.filter((item) => item.id !== id));
103
+ this.clearTimer(id);
104
+ this.closedStream.next({
105
+ message,
106
+ reason
107
+ });
108
+ }
109
+ clear(group = "") {
110
+ const targets = this.store().filter((message) => message.group === group);
111
+ this.removeMany(targets, "clear");
112
+ }
113
+ clearAll() {
114
+ this.removeMany(this.store(), "clear");
115
+ }
116
+ pause(id) {
117
+ const timer = this.timers.get(id);
118
+ if (!timer || timer.paused || !timer.handle) return;
119
+ globalThis.clearTimeout(timer.handle);
120
+ timer.handle = null;
121
+ timer.remaining = Math.max(0, timer.remaining - (Date.now() - timer.startedAt));
122
+ timer.paused = true;
123
+ }
124
+ resume(id) {
125
+ const timer = this.timers.get(id);
126
+ if (!timer || !timer.paused) return;
127
+ timer.paused = false;
128
+ timer.startedAt = Date.now();
129
+ timer.handle = globalThis.setTimeout(() => this.remove(id, "timeout"), timer.remaining);
130
+ }
131
+ schedule(message) {
132
+ if (message.sticky || message.life <= 0) return;
133
+ this.timers.set(message.id, {
134
+ message,
135
+ handle: globalThis.setTimeout(() => this.remove(message.id, "timeout"), message.life),
136
+ startedAt: Date.now(),
137
+ remaining: message.life,
138
+ paused: false
139
+ });
140
+ }
141
+ clearTimer(id) {
142
+ const timer = this.timers.get(id);
143
+ if (timer?.handle) globalThis.clearTimeout(timer.handle);
144
+ this.timers.delete(id);
145
+ }
146
+ removeMany(targets, reason) {
147
+ if (targets.length === 0) return;
148
+ const targetIds = new Set(targets.map((message) => message.id));
149
+ this.store.update((messages) => messages.filter((message) => !targetIds.has(message.id)));
150
+ for (const message of targets) {
151
+ this.clearTimer(message.id);
152
+ this.closedStream.next({
153
+ message,
154
+ reason
155
+ });
156
+ }
157
+ }
158
+ resolveMessage(input) {
159
+ const severity = input.severity ?? "neutral";
160
+ const role = input.role ?? (severity === "danger" || severity === "warning" ? "alert" : "status");
161
+ return {
162
+ id: input.id ?? `aeris-toast-${++nextToastId}`,
163
+ group: input.group ?? "",
164
+ severity,
165
+ summary: input.summary ?? "",
166
+ detail: input.detail ?? "",
167
+ life: input.life ?? 5e3,
168
+ sticky: input.sticky ?? false,
169
+ closable: input.closable ?? true,
170
+ data: input.data,
171
+ ariaLabel: input.ariaLabel ?? "",
172
+ ariaLive: input.ariaLive ?? (role === "alert" ? "assertive" : "polite"),
173
+ role,
174
+ createdAt: Date.now()
175
+ };
176
+ }
177
+ static ɵfac = i0.ɵɵngDeclareFactory({
178
+ minVersion: "12.0.0",
179
+ version: "22.2.3",
180
+ ngImport: i0,
181
+ type: AerisToastService,
182
+ deps: [],
183
+ target: i0.ɵɵFactoryTarget.Service
184
+ });
185
+ static ɵprov = i0.ɵɵngDeclareService({
186
+ minVersion: "22.0.0",
187
+ version: "22.2.3",
188
+ ngImport: i0,
189
+ type: AerisToastService
190
+ });
191
+ };
192
+ i0.ɵɵngDeclareClassMetadata({
193
+ minVersion: "12.0.0",
194
+ version: "22.2.3",
195
+ ngImport: i0,
196
+ type: AerisToastService,
197
+ decorators: [{ type: Service }]
198
+ });
199
+ var AerisToast = class AerisToast {
200
+ closeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []);
201
+ toastRegion = viewChild("toastRegion", ...ngDevMode ? [{ debugName: "toastRegion" }] : /* istanbul ignore next */ []);
202
+ static fallbackHeight = 72;
203
+ static swipeRemovalDelay = 550;
204
+ static reverseCancelThreshold = 10;
205
+ static minimumDragThreshold = 1;
206
+ toastService = inject(AerisToastService);
207
+ destroyRef = inject(DestroyRef);
208
+ messageElements = viewChildren("toastMessage", ...ngDevMode ? [{ debugName: "messageElements" }] : /* istanbul ignore next */ []);
209
+ measuredHeights = signal({}, ...ngDevMode ? [{ debugName: "measuredHeights" }] : /* istanbul ignore next */ []);
210
+ swipeVisuals = signal({}, ...ngDevMode ? [{ debugName: "swipeVisuals" }] : /* istanbul ignore next */ []);
211
+ swipeCleanupTimers = /* @__PURE__ */ new Map();
212
+ pendingSwipeRemovals = /* @__PURE__ */ new Map();
213
+ measureFrame = aerisInternalCreateFrameScheduler(() => this.measureMessages());
214
+ swipeFrame = aerisInternalCreateFrameScheduler(() => this.flushSwipeVisual());
215
+ swipeSession = null;
216
+ contentTemplate = contentChild(AerisToastContentTemplate, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
217
+ iconTemplate = contentChild(AerisToastIconTemplate, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
218
+ position = input("bottom-right", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
219
+ group = input("", ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
220
+ mode = input("stacked", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
221
+ visibleCount = input(4, {
222
+ ...ngDevMode ? { debugName: "visibleCount" } : /* istanbul ignore next */ {},
223
+ transform: numberAttribute
224
+ });
225
+ limit = input(void 0, {
226
+ ...ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {},
227
+ transform: numberAttribute
228
+ });
229
+ newestOnTop = input(true, {
230
+ ...ngDevMode ? { debugName: "newestOnTop" } : /* istanbul ignore next */ {},
231
+ transform: booleanAttribute
232
+ });
233
+ pauseOnHover = input(true, {
234
+ ...ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {},
235
+ transform: booleanAttribute
236
+ });
237
+ showIcon = input(true, {
238
+ ...ngDevMode ? { debugName: "showIcon" } : /* istanbul ignore next */ {},
239
+ transform: booleanAttribute
240
+ });
241
+ showClose = input(true, {
242
+ ...ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {},
243
+ transform: booleanAttribute
244
+ });
245
+ swipeDirection = input(["down", "right"], ...ngDevMode ? [{ debugName: "swipeDirection" }] : /* istanbul ignore next */ []);
246
+ swipeThreshold = input(40, {
247
+ ...ngDevMode ? { debugName: "swipeThreshold" } : /* istanbul ignore next */ {},
248
+ transform: numberAttribute
249
+ });
250
+ ariaLabel = input("Notifications", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
251
+ closeAriaLabel = input("Close notification", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
252
+ closed = output();
253
+ stackHovered = signal(false, ...ngDevMode ? [{ debugName: "stackHovered" }] : /* istanbul ignore next */ []);
254
+ touchExpanded = signal(false, ...ngDevMode ? [{ debugName: "touchExpanded" }] : /* istanbul ignore next */ []);
255
+ presentationMode = computed(() => this.mode() === "expanded" || this.touchExpanded() ? "expanded" : "stacked", ...ngDevMode ? [{ debugName: "presentationMode" }] : /* istanbul ignore next */ []);
256
+ interactionPaused = computed(() => this.pauseOnHover() && (this.stackHovered() || this.touchExpanded()), ...ngDevMode ? [{ debugName: "interactionPaused" }] : /* istanbul ignore next */ []);
257
+ resolvedSwipeDirections = computed(() => {
258
+ const value = this.swipeDirection();
259
+ return [...new Set(Array.isArray(value) ? value : [value])].filter((direction) => direction === "up" || direction === "down" || direction === "left" || direction === "right");
260
+ }, ...ngDevMode ? [{ debugName: "resolvedSwipeDirections" }] : /* istanbul ignore next */ []);
261
+ resolvedSwipeThreshold = computed(() => {
262
+ const threshold = this.swipeThreshold();
263
+ return Number.isFinite(threshold) && threshold >= 0 ? threshold : 40;
264
+ }, ...ngDevMode ? [{ debugName: "resolvedSwipeThreshold" }] : /* istanbul ignore next */ []);
265
+ orderedMessages = computed(() => {
266
+ const group = this.group();
267
+ const filtered = this.toastService.messages().filter((message) => message.group === group);
268
+ return this.newestOnTop() ? [...filtered].reverse() : filtered;
269
+ }, ...ngDevMode ? [{ debugName: "orderedMessages" }] : /* istanbul ignore next */ []);
270
+ effectiveVisibleCount = computed(() => {
271
+ const limit = this.limit();
272
+ const visibleCount = this.visibleCount();
273
+ const count = typeof limit === "number" && Number.isFinite(limit) ? limit : typeof visibleCount === "number" && Number.isFinite(visibleCount) ? visibleCount : 4;
274
+ return Number.isFinite(count) && count > 0 ? Math.floor(count) : 4;
275
+ }, ...ngDevMode ? [{ debugName: "effectiveVisibleCount" }] : /* istanbul ignore next */ []);
276
+ visibleMessages = computed(() => this.orderedMessages().slice(0, this.effectiveVisibleCount()), ...ngDevMode ? [{ debugName: "visibleMessages" }] : /* istanbul ignore next */ []);
277
+ hiddenCount = computed(() => Math.max(0, this.orderedMessages().length - this.visibleMessages().length), ...ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []);
278
+ visibleStackSize = computed(() => `${this.visibleMessages().length}`, ...ngDevMode ? [{ debugName: "visibleStackSize" }] : /* istanbul ignore next */ []);
279
+ hasVisibleMessages = computed(() => this.visibleMessages().length > 0, ...ngDevMode ? [{ debugName: "hasVisibleMessages" }] : /* istanbul ignore next */ []);
280
+ stackWidthLocked = signal(false, ...ngDevMode ? [{ debugName: "stackWidthLocked" }] : /* istanbul ignore next */ []);
281
+ visibleStack = computed(() => {
282
+ const messages = this.visibleMessages();
283
+ const heights = this.measuredHeights();
284
+ const swipeVisuals = this.swipeVisuals();
285
+ const frontHeight = messages[0] ? heights[messages[0].id] ?? AerisToast.fallbackHeight : AerisToast.fallbackHeight;
286
+ let heightOffset = 0;
287
+ return messages.map((message, stackIndex) => {
288
+ const height = heights[message.id] ?? AerisToast.fallbackHeight;
289
+ const swipe = swipeVisuals[message.id];
290
+ const item = {
291
+ message,
292
+ stackIndex,
293
+ stackIndexValue: `${stackIndex}`,
294
+ stackSizeValue: `${messages.length}`,
295
+ heightValue: `${height}px`,
296
+ frontHeightValue: `${frontHeight}px`,
297
+ heightOffsetValue: `${heightOffset}px`,
298
+ primary: stackIndex === 0,
299
+ swipeXValue: `${swipe?.x ?? 0}px`,
300
+ swipeYValue: `${swipe?.y ?? 0}px`,
301
+ swipeDirection: swipe?.direction,
302
+ swiping: swipe?.phase === "dragging",
303
+ swipeDismissing: swipe?.phase === "dismissing"
304
+ };
305
+ heightOffset += height;
306
+ return item;
307
+ });
308
+ }, ...ngDevMode ? [{ debugName: "visibleStack" }] : /* istanbul ignore next */ []);
309
+ templateContexts = computed(() => {
310
+ const contexts = {};
311
+ for (const message of this.visibleMessages()) contexts[message.id] = {
312
+ $implicit: message,
313
+ message,
314
+ close: () => this.close(message)
315
+ };
316
+ return contexts;
317
+ }, ...ngDevMode ? [{ debugName: "templateContexts" }] : /* istanbul ignore next */ []);
318
+ constructor() {
319
+ const document = inject(DOCUMENT);
320
+ effect((onCleanup) => {
321
+ const region = this.toastRegion()?.nativeElement;
322
+ if (region && this.hasVisibleMessages()) onCleanup(aerisInternalObserveViewport(region, document));
323
+ });
324
+ effect(() => {
325
+ const visibleCount = this.visibleMessages().length;
326
+ if (visibleCount > 1) this.stackWidthLocked.set(true);
327
+ else if (visibleCount === 0) {
328
+ this.stackWidthLocked.set(false);
329
+ this.touchExpanded.set(false);
330
+ }
331
+ });
332
+ effect((onCleanup) => {
333
+ const elements = this.messageElements().map((element) => element.nativeElement);
334
+ this.measureFrame.schedule();
335
+ if (typeof globalThis.ResizeObserver !== "function") return;
336
+ const observer = new ResizeObserver(() => this.measureFrame.schedule());
337
+ for (const element of elements) observer.observe(element);
338
+ onCleanup(() => {
339
+ observer.disconnect();
340
+ this.measureFrame.cancel();
341
+ });
342
+ });
343
+ effect((onCleanup) => {
344
+ const group = this.group();
345
+ const subscription = this.toastService.closed.subscribe((event) => {
346
+ if (event.message.group !== group) return;
347
+ this.closed.emit(event);
348
+ });
349
+ onCleanup(() => subscription.unsubscribe());
350
+ });
351
+ effect(() => {
352
+ const visibleIds = new Set(this.visibleMessages().map((message) => message.id));
353
+ const gestureIds = new Set(Object.keys(this.swipeVisuals()));
354
+ const pauseVisible = this.interactionPaused();
355
+ for (const message of this.orderedMessages()) if (visibleIds.has(message.id) && !pauseVisible && !gestureIds.has(message.id)) this.toastService.resume(message.id);
356
+ else this.toastService.pause(message.id);
357
+ });
358
+ this.destroyRef.onDestroy(() => {
359
+ this.measureFrame.cancel();
360
+ this.swipeFrame.cancel();
361
+ for (const cancel of this.pendingSwipeRemovals.values()) cancel();
362
+ for (const timer of this.swipeCleanupTimers.values()) globalThis.clearTimeout(timer);
363
+ this.pendingSwipeRemovals.clear();
364
+ this.swipeCleanupTimers.clear();
365
+ this.swipeSession = null;
366
+ });
367
+ }
368
+ close(message) {
369
+ this.toastService.remove(message.id, "close-button");
370
+ }
371
+ pauseVisible() {
372
+ this.stackHovered.set(true);
373
+ if (!this.pauseOnHover()) return;
374
+ for (const message of this.visibleMessages()) this.toastService.pause(message.id);
375
+ }
376
+ resumeVisible() {
377
+ this.stackHovered.set(false);
378
+ if (!this.pauseOnHover() || this.touchExpanded()) return;
379
+ const gestureIds = new Set(Object.keys(this.swipeVisuals()));
380
+ for (const message of this.visibleMessages()) if (!gestureIds.has(message.id)) this.toastService.resume(message.id);
381
+ }
382
+ handlePointerDown(event, message) {
383
+ if (!(event.pointerType === "touch" && this.mode() === "stacked") && this.resolvedSwipeDirections().length === 0 || this.swipeSession) return;
384
+ if (event.pointerType === "mouse" && event.button !== 0) return;
385
+ if (event.target?.closest("button,a,input,textarea,select,[role=\"button\"],[data-aeris-toast-swipe-ignore]")) return;
386
+ event.currentTarget.setPointerCapture?.(event.pointerId);
387
+ this.toastService.pause(message.id);
388
+ this.swipeSession = {
389
+ message,
390
+ pointerId: event.pointerId,
391
+ pointerType: event.pointerType,
392
+ tapStartX: event.clientX,
393
+ tapStartY: event.clientY,
394
+ tapMoved: false,
395
+ startX: event.clientX,
396
+ startY: event.clientY,
397
+ lastX: event.clientX,
398
+ lastY: event.clientY,
399
+ baselineX: event.clientX,
400
+ baselineY: event.clientY,
401
+ deltaX: 0,
402
+ deltaY: 0,
403
+ visualX: 0,
404
+ visualY: 0,
405
+ firstMove: true,
406
+ realSwipe: false,
407
+ lockedAxis: null,
408
+ intendedDirection: void 0,
409
+ maxDisplacement: 0,
410
+ cancelled: false
411
+ };
412
+ this.setSwipeVisual(message.id, {
413
+ x: 0,
414
+ y: 0,
415
+ direction: void 0,
416
+ phase: "dragging"
417
+ });
418
+ }
419
+ handlePointerMove(event) {
420
+ const session = this.swipeSession;
421
+ if (!session || event.pointerId !== session.pointerId) return;
422
+ this.trackTapMovement(session, event);
423
+ if (this.resolvedSwipeDirections().length === 0) return;
424
+ event.preventDefault();
425
+ this.updateSwipeSession(session, event.clientX, event.clientY);
426
+ this.swipeFrame.schedule();
427
+ }
428
+ handlePointerEnd(event) {
429
+ const session = this.swipeSession;
430
+ if (!session || event.pointerId !== session.pointerId) return;
431
+ this.trackTapMovement(session, event);
432
+ const target = event.currentTarget;
433
+ if (target.hasPointerCapture?.(event.pointerId)) target.releasePointerCapture(event.pointerId);
434
+ this.swipeFrame.cancel();
435
+ if (!session.firstMove) this.updateSwipeSession(session, event.clientX, event.clientY);
436
+ this.flushSwipeVisual();
437
+ const dismissDirection = event.type === "pointercancel" || session.cancelled ? void 0 : this.resolvedSwipeDirections().find((direction) => this.swipeDisplacement(direction, session.deltaX, session.deltaY) > this.resolvedSwipeThreshold());
438
+ this.swipeSession = null;
439
+ if (dismissDirection) {
440
+ this.setSwipeVisual(session.message.id, {
441
+ x: session.visualX,
442
+ y: session.visualY,
443
+ direction: dismissDirection,
444
+ phase: "dismissing"
445
+ });
446
+ this.scheduleSwipeRemoval(session.message);
447
+ return;
448
+ }
449
+ this.removeSwipeVisual(session.message.id);
450
+ if (event.type === "pointerup" && session.pointerType === "touch" && !session.tapMoved && this.mode() === "stacked") this.touchExpanded.update((expanded) => !expanded);
451
+ if (!this.interactionPaused()) this.toastService.resume(session.message.id);
452
+ }
453
+ trackTapMovement(session, event) {
454
+ if (Math.hypot(event.clientX - session.tapStartX, event.clientY - session.tapStartY) > 8) session.tapMoved = true;
455
+ }
456
+ measureMessages() {
457
+ const measurements = {};
458
+ for (const reference of this.messageElements()) {
459
+ const element = reference.nativeElement;
460
+ const id = element.dataset["toastId"];
461
+ if (!id) continue;
462
+ const contentHeight = Math.max(element.scrollHeight, element.getBoundingClientRect().height);
463
+ if (contentHeight > 0) measurements[id] = Math.ceil(contentHeight + 2);
464
+ }
465
+ this.measuredHeights.update((current) => {
466
+ const ids = Object.keys(measurements);
467
+ return ids.length === Object.keys(current).length && ids.every((id) => current[id] === measurements[id]) ? current : measurements;
468
+ });
469
+ }
470
+ updateSwipeSession(session, clientX, clientY) {
471
+ if (session.firstMove) {
472
+ session.startX = clientX;
473
+ session.startY = clientY;
474
+ session.lastX = clientX;
475
+ session.lastY = clientY;
476
+ session.baselineX = clientX;
477
+ session.baselineY = clientY;
478
+ session.firstMove = false;
479
+ return;
480
+ }
481
+ const movementX = clientX - session.lastX;
482
+ const movementY = clientY - session.lastY;
483
+ session.lastX = clientX;
484
+ session.lastY = clientY;
485
+ if (movementY < 0 && clientY > session.baselineY || movementY > 0 && clientY < session.baselineY) session.baselineY = clientY;
486
+ if (movementX < 0 && clientX > session.baselineX || movementX > 0 && clientX < session.baselineX) session.baselineX = clientX;
487
+ const deltaX = clientX - session.startX;
488
+ const deltaY = clientY - session.startY;
489
+ session.deltaX = deltaX;
490
+ session.deltaY = deltaY;
491
+ const directions = this.resolvedSwipeDirections();
492
+ const hasHorizontal = directions.includes("left") || directions.includes("right");
493
+ const hasVertical = directions.includes("up") || directions.includes("down");
494
+ if (!session.realSwipe) {
495
+ if (Math.hypot(deltaX, deltaY) >= AerisToast.minimumDragThreshold) {
496
+ session.realSwipe = true;
497
+ if (hasHorizontal && hasVertical) session.lockedAxis = Math.abs(deltaX) > Math.abs(deltaY) ? "horizontal" : "vertical";
498
+ }
499
+ }
500
+ if (!session.intendedDirection) {
501
+ const candidate = this.swipeCandidate(session.lockedAxis, deltaX, deltaY);
502
+ if (candidate && directions.includes(candidate)) {
503
+ session.intendedDirection = candidate;
504
+ session.maxDisplacement = this.swipeDisplacement(candidate, deltaX, deltaY);
505
+ }
506
+ } else {
507
+ const cancelDeltaX = clientX - session.baselineX;
508
+ const cancelDeltaY = clientY - session.baselineY;
509
+ const currentDisplacement = this.swipeDisplacement(session.intendedDirection, cancelDeltaX, cancelDeltaY);
510
+ const displacement = this.swipeDisplacement(session.intendedDirection, deltaX, deltaY);
511
+ session.maxDisplacement = Math.max(session.maxDisplacement, displacement);
512
+ if (currentDisplacement > this.resolvedSwipeThreshold()) session.cancelled = false;
513
+ else if (!this.hasOppositeSwipeDirection(session.intendedDirection, directions) && session.maxDisplacement - currentDisplacement >= AerisToast.reverseCancelThreshold) session.cancelled = true;
514
+ }
515
+ const dampedX = this.dampedSwipeDelta(deltaX, "left", "right", directions);
516
+ const dampedY = this.dampedSwipeDelta(deltaY, "up", "down", directions);
517
+ session.visualX = session.lockedAxis !== "vertical" && hasHorizontal ? dampedX : 0;
518
+ session.visualY = session.lockedAxis !== "horizontal" && hasVertical ? dampedY : 0;
519
+ }
520
+ flushSwipeVisual() {
521
+ const session = this.swipeSession;
522
+ if (!session) return;
523
+ this.setSwipeVisual(session.message.id, {
524
+ x: session.visualX,
525
+ y: session.visualY,
526
+ direction: session.cancelled ? void 0 : session.intendedDirection,
527
+ phase: "dragging"
528
+ });
529
+ }
530
+ setSwipeVisual(id, visual) {
531
+ this.swipeVisuals.update((current) => ({
532
+ ...current,
533
+ [id]: visual
534
+ }));
535
+ }
536
+ removeSwipeVisual(id) {
537
+ this.swipeVisuals.update((current) => {
538
+ if (!(id in current)) return current;
539
+ const next = { ...current };
540
+ delete next[id];
541
+ return next;
542
+ });
543
+ }
544
+ scheduleSwipeRemoval(message) {
545
+ this.pendingSwipeRemovals.get(message.id)?.();
546
+ const remove = () => {
547
+ this.pendingSwipeRemovals.delete(message.id);
548
+ this.toastService.remove(message.id, "swipe");
549
+ const cleanup = globalThis.setTimeout(() => {
550
+ this.swipeCleanupTimers.delete(message.id);
551
+ this.removeSwipeVisual(message.id);
552
+ }, AerisToast.swipeRemovalDelay);
553
+ this.swipeCleanupTimers.set(message.id, cleanup);
554
+ };
555
+ if (typeof globalThis.requestAnimationFrame === "function") {
556
+ const frame = globalThis.requestAnimationFrame(remove);
557
+ this.pendingSwipeRemovals.set(message.id, () => globalThis.cancelAnimationFrame?.(frame));
558
+ } else {
559
+ const timer = globalThis.setTimeout(remove, 0);
560
+ this.pendingSwipeRemovals.set(message.id, () => globalThis.clearTimeout(timer));
561
+ }
562
+ }
563
+ swipeCandidate(lockedAxis, deltaX, deltaY) {
564
+ if (lockedAxis === "vertical") return deltaY > 0 ? "down" : deltaY < 0 ? "up" : void 0;
565
+ if (lockedAxis === "horizontal") return deltaX > 0 ? "right" : deltaX < 0 ? "left" : void 0;
566
+ if (Math.abs(deltaX) >= Math.abs(deltaY)) return deltaX > 0 ? "right" : deltaX < 0 ? "left" : void 0;
567
+ return deltaY > 0 ? "down" : deltaY < 0 ? "up" : void 0;
568
+ }
569
+ swipeDisplacement(direction, deltaX, deltaY) {
570
+ if (direction === "right") return deltaX;
571
+ if (direction === "left") return -deltaX;
572
+ if (direction === "down") return deltaY;
573
+ return -deltaY;
574
+ }
575
+ dampedSwipeDelta(delta, negativeDirection, positiveDirection, directions) {
576
+ if (!(delta > 0 && !directions.includes(positiveDirection) || delta < 0 && !directions.includes(negativeDirection))) return delta;
577
+ return Math.sign(delta) * Math.sqrt(Math.abs(delta));
578
+ }
579
+ hasOppositeSwipeDirection(direction, directions) {
580
+ if (direction === "left") return directions.includes("right");
581
+ if (direction === "right") return directions.includes("left");
582
+ if (direction === "up") return directions.includes("down");
583
+ return directions.includes("up");
584
+ }
585
+ static ɵfac = i0.ɵɵngDeclareFactory({
586
+ minVersion: "12.0.0",
587
+ version: "22.2.3",
588
+ ngImport: i0,
589
+ type: AerisToast,
590
+ deps: [],
591
+ target: i0.ɵɵFactoryTarget.Component
592
+ });
593
+ static ɵcmp = i0.ɵɵngDeclareComponent({
594
+ minVersion: "17.0.0",
595
+ version: "22.2.3",
596
+ type: AerisToast,
597
+ isStandalone: true,
598
+ selector: "aeris-toast",
599
+ inputs: {
600
+ closeIconTemplate: {
601
+ classPropertyName: "closeIconTemplate",
602
+ publicName: "closeIconTemplate",
603
+ isSignal: true,
604
+ isRequired: false,
605
+ transformFunction: null
606
+ },
607
+ position: {
608
+ classPropertyName: "position",
609
+ publicName: "position",
610
+ isSignal: true,
611
+ isRequired: false,
612
+ transformFunction: null
613
+ },
614
+ group: {
615
+ classPropertyName: "group",
616
+ publicName: "group",
617
+ isSignal: true,
618
+ isRequired: false,
619
+ transformFunction: null
620
+ },
621
+ mode: {
622
+ classPropertyName: "mode",
623
+ publicName: "mode",
624
+ isSignal: true,
625
+ isRequired: false,
626
+ transformFunction: null
627
+ },
628
+ visibleCount: {
629
+ classPropertyName: "visibleCount",
630
+ publicName: "visibleCount",
631
+ isSignal: true,
632
+ isRequired: false,
633
+ transformFunction: null
634
+ },
635
+ limit: {
636
+ classPropertyName: "limit",
637
+ publicName: "limit",
638
+ isSignal: true,
639
+ isRequired: false,
640
+ transformFunction: null
641
+ },
642
+ newestOnTop: {
643
+ classPropertyName: "newestOnTop",
644
+ publicName: "newestOnTop",
645
+ isSignal: true,
646
+ isRequired: false,
647
+ transformFunction: null
648
+ },
649
+ pauseOnHover: {
650
+ classPropertyName: "pauseOnHover",
651
+ publicName: "pauseOnHover",
652
+ isSignal: true,
653
+ isRequired: false,
654
+ transformFunction: null
655
+ },
656
+ showIcon: {
657
+ classPropertyName: "showIcon",
658
+ publicName: "showIcon",
659
+ isSignal: true,
660
+ isRequired: false,
661
+ transformFunction: null
662
+ },
663
+ showClose: {
664
+ classPropertyName: "showClose",
665
+ publicName: "showClose",
666
+ isSignal: true,
667
+ isRequired: false,
668
+ transformFunction: null
669
+ },
670
+ swipeDirection: {
671
+ classPropertyName: "swipeDirection",
672
+ publicName: "swipeDirection",
673
+ isSignal: true,
674
+ isRequired: false,
675
+ transformFunction: null
676
+ },
677
+ swipeThreshold: {
678
+ classPropertyName: "swipeThreshold",
679
+ publicName: "swipeThreshold",
680
+ isSignal: true,
681
+ isRequired: false,
682
+ transformFunction: null
683
+ },
684
+ ariaLabel: {
685
+ classPropertyName: "ariaLabel",
686
+ publicName: "ariaLabel",
687
+ isSignal: true,
688
+ isRequired: false,
689
+ transformFunction: null
690
+ },
691
+ closeAriaLabel: {
692
+ classPropertyName: "closeAriaLabel",
693
+ publicName: "closeAriaLabel",
694
+ isSignal: true,
695
+ isRequired: false,
696
+ transformFunction: null
697
+ }
698
+ },
699
+ outputs: { closed: "closed" },
700
+ host: {
701
+ properties: { "attr.data-position": "position()" },
702
+ classAttribute: "aeris-toast"
703
+ },
704
+ queries: [{
705
+ propertyName: "contentTemplate",
706
+ first: true,
707
+ predicate: AerisToastContentTemplate,
708
+ descendants: true,
709
+ isSignal: true
710
+ }, {
711
+ propertyName: "iconTemplate",
712
+ first: true,
713
+ predicate: AerisToastIconTemplate,
714
+ descendants: true,
715
+ isSignal: true
716
+ }],
717
+ viewQueries: [{
718
+ propertyName: "toastRegion",
719
+ first: true,
720
+ predicate: ["toastRegion"],
721
+ descendants: true,
722
+ isSignal: true
723
+ }, {
724
+ propertyName: "messageElements",
725
+ predicate: ["toastMessage"],
726
+ descendants: true,
727
+ isSignal: true
728
+ }],
729
+ ngImport: i0,
730
+ template: `
731
+ <section
732
+ #toastRegion
733
+ class="aeris-toast__region"
734
+ [attr.aria-label]="hasVisibleMessages() ? ariaLabel() : null"
735
+ [attr.data-empty]="!hasVisibleMessages() || null"
736
+ [attr.data-position]="position()"
737
+ [attr.data-mode]="presentationMode()"
738
+ [attr.data-newest-on-top]="newestOnTop() || null"
739
+ [attr.data-overflow]="hiddenCount() > 0 || null"
740
+ [attr.data-stack-width]="stackWidthLocked() || null"
741
+ [style.--aeris-toast-stack-size]="visibleStackSize()"
742
+ (pointerenter)="pauseVisible()"
743
+ (pointerleave)="resumeVisible()"
744
+ (focusin)="pauseVisible()"
745
+ (focusout)="resumeVisible()"
746
+ >
747
+ @for (item of visibleStack(); track item.message.id) {
748
+ <div
749
+ class="aeris-toast__item"
750
+ [attr.data-stack-index]="item.stackIndex"
751
+ [attr.data-primary]="item.primary || null"
752
+ [attr.data-swiping]="item.swiping || null"
753
+ [attr.data-swipe-direction]="item.swipeDirection || null"
754
+ [attr.data-swipe-dismissing]="item.swipeDismissing || null"
755
+ [style.--aeris-toast-stack-index]="item.stackIndexValue"
756
+ [style.--aeris-toast-stack-size]="item.stackSizeValue"
757
+ [style.--aeris-toast-height]="item.heightValue"
758
+ [style.--aeris-toast-front-height]="item.frontHeightValue"
759
+ [style.--aeris-toast-height-offset]="item.heightOffsetValue"
760
+ [style.--aeris-toast-swipe-x]="item.swipeXValue"
761
+ [style.--aeris-toast-swipe-y]="item.swipeYValue"
762
+ animate.leave="aeris-toast__item--leaving"
763
+ (pointerdown)="handlePointerDown($event, item.message)"
764
+ (pointermove)="handlePointerMove($event)"
765
+ (pointerup)="handlePointerEnd($event)"
766
+ (pointercancel)="handlePointerEnd($event)"
767
+ >
264
768
  <article
265
769
  class="aeris-toast__message"
266
770
  [attr.data-severity]="item.message.severity"
@@ -270,78 +774,145 @@ class AerisToast {
270
774
  [attr.aria-live]="item.message.ariaLive"
271
775
  aria-atomic="true"
272
776
  [attr.aria-label]="item.message.ariaLabel || null"
273
- [style.--aeris-toast-stack-index]="item.stackIndexValue"
274
- [style.--aeris-toast-stack-size]="item.stackSizeValue"
275
- [style.--aeris-toast-stack-opacity]="item.stackOpacityValue"
276
- [style.--aeris-toast-stack-scale]="item.stackScaleValue"
277
- [style.--aeris-toast-stack-offset]="item.stackOffsetValue"
278
- [style.--aeris-toast-stack-offset-inverse]="item.stackOffsetInverseValue"
279
777
  >
280
- <div class="aeris-toast__icon" aria-hidden="true">
281
- @if (iconTemplate(); as icon) {
282
- <ng-container
283
- [ngTemplateOutlet]="icon.template"
284
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
285
- />
286
- } @else {
287
- <span class="aeris-toast__default-icon"></span>
778
+ <div
779
+ #toastMessage
780
+ class="aeris-toast__body"
781
+ [attr.data-behind]="!item.primary || null"
782
+ [attr.data-icon-hidden]="!showIcon() || null"
783
+ [attr.data-has-summary]="item.message.summary ? true : null"
784
+ [attr.data-custom-content]="contentTemplate() ? true : null"
785
+ [attr.data-toast-id]="item.message.id"
786
+ >
787
+ @if (showIcon()) {
788
+ <div class="aeris-toast__icon" aria-hidden="true">
789
+ @if (iconTemplate(); as icon) {
790
+ <ng-container
791
+ [ngTemplateOutlet]="icon.template"
792
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
793
+ />
794
+ } @else {
795
+ <span class="aeris-toast__default-icon"></span>
796
+ }
797
+ </div>
288
798
  }
289
- </div>
290
799
 
291
- <div class="aeris-toast__content">
292
- @if (contentTemplate(); as content) {
293
- <ng-container
294
- [ngTemplateOutlet]="content.template"
295
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
296
- />
297
- } @else {
298
- @if (item.message.summary) {
299
- <p class="aeris-toast__summary">{{ item.message.summary }}</p>
300
- }
301
- @if (item.message.detail) {
302
- <p class="aeris-toast__detail">{{ item.message.detail }}</p>
800
+ <div class="aeris-toast__content">
801
+ @if (contentTemplate(); as content) {
802
+ <ng-container
803
+ [ngTemplateOutlet]="content.template"
804
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
805
+ />
806
+ } @else {
807
+ @if (item.message.summary) {
808
+ <p class="aeris-toast__summary">{{ item.message.summary }}</p>
809
+ }
810
+ @if (item.message.detail) {
811
+ <p class="aeris-toast__detail">{{ item.message.detail }}</p>
812
+ }
303
813
  }
814
+ </div>
815
+
816
+ @if (item.message.closable && showClose()) {
817
+ <button
818
+ type="button"
819
+ class="aeris-toast__close"
820
+ [attr.aria-label]="closeAriaLabel()"
821
+ (click)="close(item.message)"
822
+ >
823
+ @if (closeIconTemplate(); as customIcon) {
824
+ <span aria-hidden="true" data-aeris-custom-icon
825
+ ><ng-container [ngTemplateOutlet]="customIcon"
826
+ /></span>
827
+ } @else {
828
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
829
+ }
830
+ </button>
304
831
  }
305
832
  </div>
306
-
307
- @if (item.message.closable && showClose()) {
308
- <button
309
- type="button"
310
- class="aeris-toast__close"
311
- [attr.aria-label]="closeAriaLabel()"
312
- (click)="close(item.message)"
313
- >
314
- <span aria-hidden="true"></span>
315
- </button>
316
- }
317
833
  </article>
318
- }
834
+ </div>
835
+ }
319
836
 
320
- @if (hiddenCount() > 0) {
321
- <span class="aeris-toast__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
322
- }
323
- </section>
324
- }
325
- `, isInline: true, styles: [":host{display:contents}.aeris-toast__region{position:fixed;z-index:var(--aeris-z-toast, 1200);width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);display:flex;flex-direction:column;pointer-events:auto}.aeris-toast__region[data-position^=top]{top:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position^=bottom]{bottom:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=left]{left:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=right]{right:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:50%;transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:50%;transform:translate(-50%,-50%)}.aeris-toast__region[data-position^=bottom]{flex-direction:column-reverse}.aeris-toast__region[data-mode=expanded],.aeris-toast__region[data-mode=stacked]:hover,.aeris-toast__region[data-mode=stacked]:focus-within{gap:var(--aeris-toast-gap, .75rem)}.aeris-toast__region[data-mode=stacked]{--_stack-peek: var(--aeris-toast-stack-peek, .55rem);--_stack-card-height: var(--aeris-toast-stack-card-height, 2.75rem)}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]){max-height:var(--_stack-card-height);margin-top:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);overflow:hidden;opacity:var(--aeris-toast-stack-opacity, .88);transform:translateY(var(--aeris-toast-stack-offset, .08rem)) scale(var(--aeris-toast-stack-scale, .975));pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__icon,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__content,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__close{opacity:0;transition:opacity .12s ease}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-mode=expanded] .aeris-toast__message{max-height:var(--aeris-toast-expanded-message-max-height, 18rem);margin-top:0;opacity:1;transform:none;pointer-events:auto}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__close{opacity:1}.aeris-toast__region[data-position^=bottom][data-mode=stacked] .aeris-toast__message:not([data-primary]){margin-top:0;margin-bottom:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);transform:translateY(var(--aeris-toast-stack-offset-inverse, -.08rem)) scale(var(--aeris-toast-stack-scale, .975))}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__message{margin-bottom:0;transform:none}.aeris-toast__message{--_accent: var(--aeris-primary, #879566);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));max-height:var(--aeris-toast-expanded-message-max-height, 18rem);min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;border:1px solid var(--aeris-border, #deddd7);border-left:.25rem solid var(--_accent);border-radius:var(--aeris-radius-md, .75rem);background:linear-gradient(90deg,var(--_accent-soft),transparent 32%),color-mix(in srgb,var(--aeris-surface, #fff) 96%,transparent);color:var(--aeris-text, #222222);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));pointer-events:auto;transition:max-height .21s cubic-bezier(.2,0,0,1),margin .16s ease,opacity .16s ease,transform .21s cubic-bezier(.2,0,0,1),box-shadow .16s ease,border-color .16s ease}.aeris-toast__message:hover,.aeris-toast__message:focus-within{border-color:color-mix(in srgb,var(--_accent) 28%,var(--aeris-border, #deddd7));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #222222) 10%,transparent)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=error]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral],.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{position:relative;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:block;border:2px solid currentColor;border-radius:999px}.aeris-toast__default-icon:before,.aeris-toast__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-toast__default-icon:before{width:.125rem;height:.4375rem;top:.5rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__default-icon:after{width:.15625rem;height:.15625rem;top:.25rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{border-color:transparent}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:before{width:.625rem;height:.3125rem;top:.375rem;left:.3125rem;border:0 solid currentColor;border-left-width:2px;border-bottom-width:2px;border-radius:0;background:transparent;transform:rotate(-45deg)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:after{display:none}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before,.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{width:.6875rem;height:.125rem;top:50%;left:50%;border-radius:999px}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--aeris-text, #222222);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--aeris-text-2, #555555);font-size:.8125rem;line-height:1.5}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-sm, .5rem);background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-toast__close:hover{background:color-mix(in srgb,var(--aeris-text, #222222) 8%,transparent);color:var(--aeris-text, #222222)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{z-index:calc(var(--aeris-toast-stack-size, 1) + 1);align-self:center;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;margin-top:.35rem;padding:0 .35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 1px 2px rgba(31, 35, 27, .06));font-size:.6875rem;font-weight:800;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{margin-top:0;margin-bottom:.35rem}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-mode=expanded] .aeris-toast__overflow{margin-top:0;opacity:.8}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__overflow{margin-bottom:0}@media(max-width:36rem){.aeris-toast__region{width:calc(100vw - 1rem)}.aeris-toast__region[data-position]{right:.5rem;left:.5rem;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:.5rem}.aeris-toast__region[data-position^=bottom]{bottom:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-toast__message,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
326
- }
327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToast, decorators: [{
328
- type: Component,
329
- args: [{ selector: 'aeris-toast', imports: [NgTemplateOutlet], template: `
330
- @if (visibleStack().length > 0) {
331
- <section
332
- class="aeris-toast__region"
333
- [attr.aria-label]="ariaLabel()"
334
- [attr.data-position]="position()"
335
- [attr.data-mode]="mode()"
336
- [attr.data-newest-on-top]="newestOnTop() || null"
337
- [attr.data-overflow]="hiddenCount() > 0 || null"
338
- [style.--aeris-toast-stack-size]="visibleStackSize()"
339
- (pointerenter)="pauseVisible()"
340
- (pointerleave)="resumeVisible()"
341
- (focusin)="pauseVisible()"
342
- (focusout)="resumeVisible()"
343
- >
344
- @for (item of visibleStack(); track item.message.id) {
837
+ @if (hiddenCount() > 0) {
838
+ <span
839
+ class="aeris-toast__overflow"
840
+ aria-hidden="true"
841
+ animate.enter="aeris-toast__overflow--entering"
842
+ animate.leave="aeris-toast__overflow--leaving"
843
+ >
844
+ +{{ hiddenCount() }}
845
+ </span>
846
+ }
847
+ </section>
848
+ `,
849
+ isInline: true,
850
+ styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}.aeris-toast__region[data-position$=left] .aeris-toast__item{justify-content:flex-start}.aeris-toast__region[data-position$=right] .aeris-toast__item{justify-content:flex-end}.aeris-toast__region[data-position$=center] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{justify-content:center}.aeris-toast__item:after{position:absolute;inset-inline:0;top:100%;height:calc(var(--_stack-gap) + 1px);content:\"\"}.aeris-toast__region[data-position^=top] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek)) + (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );top:0;transform-origin:top center}.aeris-toast__region[data-position^=bottom] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek) * -1) - (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );bottom:0;transform-origin:bottom center}.aeris-toast__region[data-mode=stacked] .aeris-toast__item:not([data-primary]){pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__body[data-behind]{opacity:0}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition:none}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) + 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) - 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"],
851
+ dependencies: [{
852
+ kind: "component",
853
+ type: ɵAerisIcon,
854
+ selector: "span[aerisInternalIcon]",
855
+ inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
856
+ }, {
857
+ kind: "directive",
858
+ type: NgTemplateOutlet,
859
+ selector: "[ngTemplateOutlet]",
860
+ inputs: [
861
+ "ngTemplateOutletContext",
862
+ "ngTemplateOutlet",
863
+ "ngTemplateOutletInjector"
864
+ ]
865
+ }]
866
+ });
867
+ };
868
+ i0.ɵɵngDeclareClassMetadata({
869
+ minVersion: "12.0.0",
870
+ version: "22.2.3",
871
+ ngImport: i0,
872
+ type: AerisToast,
873
+ decorators: [{
874
+ type: Component,
875
+ args: [{
876
+ selector: "aeris-toast",
877
+ imports: [ɵAerisIcon, NgTemplateOutlet],
878
+ template: `
879
+ <section
880
+ #toastRegion
881
+ class="aeris-toast__region"
882
+ [attr.aria-label]="hasVisibleMessages() ? ariaLabel() : null"
883
+ [attr.data-empty]="!hasVisibleMessages() || null"
884
+ [attr.data-position]="position()"
885
+ [attr.data-mode]="presentationMode()"
886
+ [attr.data-newest-on-top]="newestOnTop() || null"
887
+ [attr.data-overflow]="hiddenCount() > 0 || null"
888
+ [attr.data-stack-width]="stackWidthLocked() || null"
889
+ [style.--aeris-toast-stack-size]="visibleStackSize()"
890
+ (pointerenter)="pauseVisible()"
891
+ (pointerleave)="resumeVisible()"
892
+ (focusin)="pauseVisible()"
893
+ (focusout)="resumeVisible()"
894
+ >
895
+ @for (item of visibleStack(); track item.message.id) {
896
+ <div
897
+ class="aeris-toast__item"
898
+ [attr.data-stack-index]="item.stackIndex"
899
+ [attr.data-primary]="item.primary || null"
900
+ [attr.data-swiping]="item.swiping || null"
901
+ [attr.data-swipe-direction]="item.swipeDirection || null"
902
+ [attr.data-swipe-dismissing]="item.swipeDismissing || null"
903
+ [style.--aeris-toast-stack-index]="item.stackIndexValue"
904
+ [style.--aeris-toast-stack-size]="item.stackSizeValue"
905
+ [style.--aeris-toast-height]="item.heightValue"
906
+ [style.--aeris-toast-front-height]="item.frontHeightValue"
907
+ [style.--aeris-toast-height-offset]="item.heightOffsetValue"
908
+ [style.--aeris-toast-swipe-x]="item.swipeXValue"
909
+ [style.--aeris-toast-swipe-y]="item.swipeYValue"
910
+ animate.leave="aeris-toast__item--leaving"
911
+ (pointerdown)="handlePointerDown($event, item.message)"
912
+ (pointermove)="handlePointerMove($event)"
913
+ (pointerup)="handlePointerEnd($event)"
914
+ (pointercancel)="handlePointerEnd($event)"
915
+ >
345
916
  <article
346
917
  class="aeris-toast__message"
347
918
  [attr.data-severity]="item.message.severity"
@@ -351,72 +922,226 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
351
922
  [attr.aria-live]="item.message.ariaLive"
352
923
  aria-atomic="true"
353
924
  [attr.aria-label]="item.message.ariaLabel || null"
354
- [style.--aeris-toast-stack-index]="item.stackIndexValue"
355
- [style.--aeris-toast-stack-size]="item.stackSizeValue"
356
- [style.--aeris-toast-stack-opacity]="item.stackOpacityValue"
357
- [style.--aeris-toast-stack-scale]="item.stackScaleValue"
358
- [style.--aeris-toast-stack-offset]="item.stackOffsetValue"
359
- [style.--aeris-toast-stack-offset-inverse]="item.stackOffsetInverseValue"
360
925
  >
361
- <div class="aeris-toast__icon" aria-hidden="true">
362
- @if (iconTemplate(); as icon) {
363
- <ng-container
364
- [ngTemplateOutlet]="icon.template"
365
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
366
- />
367
- } @else {
368
- <span class="aeris-toast__default-icon"></span>
926
+ <div
927
+ #toastMessage
928
+ class="aeris-toast__body"
929
+ [attr.data-behind]="!item.primary || null"
930
+ [attr.data-icon-hidden]="!showIcon() || null"
931
+ [attr.data-has-summary]="item.message.summary ? true : null"
932
+ [attr.data-custom-content]="contentTemplate() ? true : null"
933
+ [attr.data-toast-id]="item.message.id"
934
+ >
935
+ @if (showIcon()) {
936
+ <div class="aeris-toast__icon" aria-hidden="true">
937
+ @if (iconTemplate(); as icon) {
938
+ <ng-container
939
+ [ngTemplateOutlet]="icon.template"
940
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
941
+ />
942
+ } @else {
943
+ <span class="aeris-toast__default-icon"></span>
944
+ }
945
+ </div>
369
946
  }
370
- </div>
371
947
 
372
- <div class="aeris-toast__content">
373
- @if (contentTemplate(); as content) {
374
- <ng-container
375
- [ngTemplateOutlet]="content.template"
376
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
377
- />
378
- } @else {
379
- @if (item.message.summary) {
380
- <p class="aeris-toast__summary">{{ item.message.summary }}</p>
381
- }
382
- @if (item.message.detail) {
383
- <p class="aeris-toast__detail">{{ item.message.detail }}</p>
948
+ <div class="aeris-toast__content">
949
+ @if (contentTemplate(); as content) {
950
+ <ng-container
951
+ [ngTemplateOutlet]="content.template"
952
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
953
+ />
954
+ } @else {
955
+ @if (item.message.summary) {
956
+ <p class="aeris-toast__summary">{{ item.message.summary }}</p>
957
+ }
958
+ @if (item.message.detail) {
959
+ <p class="aeris-toast__detail">{{ item.message.detail }}</p>
960
+ }
384
961
  }
962
+ </div>
963
+
964
+ @if (item.message.closable && showClose()) {
965
+ <button
966
+ type="button"
967
+ class="aeris-toast__close"
968
+ [attr.aria-label]="closeAriaLabel()"
969
+ (click)="close(item.message)"
970
+ >
971
+ @if (closeIconTemplate(); as customIcon) {
972
+ <span aria-hidden="true" data-aeris-custom-icon
973
+ ><ng-container [ngTemplateOutlet]="customIcon"
974
+ /></span>
975
+ } @else {
976
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
977
+ }
978
+ </button>
385
979
  }
386
980
  </div>
387
-
388
- @if (item.message.closable && showClose()) {
389
- <button
390
- type="button"
391
- class="aeris-toast__close"
392
- [attr.aria-label]="closeAriaLabel()"
393
- (click)="close(item.message)"
394
- >
395
- <span aria-hidden="true"></span>
396
- </button>
397
- }
398
981
  </article>
399
- }
982
+ </div>
983
+ }
400
984
 
401
- @if (hiddenCount() > 0) {
402
- <span class="aeris-toast__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
403
- }
404
- </section>
405
- }
406
- `, host: {
407
- class: 'aeris-toast',
408
- '[attr.data-position]': 'position()',
409
- }, styles: [":host{display:contents}.aeris-toast__region{position:fixed;z-index:var(--aeris-z-toast, 1200);width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);display:flex;flex-direction:column;pointer-events:auto}.aeris-toast__region[data-position^=top]{top:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position^=bottom]{bottom:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=left]{left:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=right]{right:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:50%;transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:50%;transform:translate(-50%,-50%)}.aeris-toast__region[data-position^=bottom]{flex-direction:column-reverse}.aeris-toast__region[data-mode=expanded],.aeris-toast__region[data-mode=stacked]:hover,.aeris-toast__region[data-mode=stacked]:focus-within{gap:var(--aeris-toast-gap, .75rem)}.aeris-toast__region[data-mode=stacked]{--_stack-peek: var(--aeris-toast-stack-peek, .55rem);--_stack-card-height: var(--aeris-toast-stack-card-height, 2.75rem)}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]){max-height:var(--_stack-card-height);margin-top:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);overflow:hidden;opacity:var(--aeris-toast-stack-opacity, .88);transform:translateY(var(--aeris-toast-stack-offset, .08rem)) scale(var(--aeris-toast-stack-scale, .975));pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__icon,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__content,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__close{opacity:0;transition:opacity .12s ease}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-mode=expanded] .aeris-toast__message{max-height:var(--aeris-toast-expanded-message-max-height, 18rem);margin-top:0;opacity:1;transform:none;pointer-events:auto}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__close{opacity:1}.aeris-toast__region[data-position^=bottom][data-mode=stacked] .aeris-toast__message:not([data-primary]){margin-top:0;margin-bottom:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);transform:translateY(var(--aeris-toast-stack-offset-inverse, -.08rem)) scale(var(--aeris-toast-stack-scale, .975))}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__message{margin-bottom:0;transform:none}.aeris-toast__message{--_accent: var(--aeris-primary, #879566);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));max-height:var(--aeris-toast-expanded-message-max-height, 18rem);min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;border:1px solid var(--aeris-border, #deddd7);border-left:.25rem solid var(--_accent);border-radius:var(--aeris-radius-md, .75rem);background:linear-gradient(90deg,var(--_accent-soft),transparent 32%),color-mix(in srgb,var(--aeris-surface, #fff) 96%,transparent);color:var(--aeris-text, #222222);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));pointer-events:auto;transition:max-height .21s cubic-bezier(.2,0,0,1),margin .16s ease,opacity .16s ease,transform .21s cubic-bezier(.2,0,0,1),box-shadow .16s ease,border-color .16s ease}.aeris-toast__message:hover,.aeris-toast__message:focus-within{border-color:color-mix(in srgb,var(--_accent) 28%,var(--aeris-border, #deddd7));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #222222) 10%,transparent)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=error]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral],.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{position:relative;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:block;border:2px solid currentColor;border-radius:999px}.aeris-toast__default-icon:before,.aeris-toast__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-toast__default-icon:before{width:.125rem;height:.4375rem;top:.5rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__default-icon:after{width:.15625rem;height:.15625rem;top:.25rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{border-color:transparent}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:before{width:.625rem;height:.3125rem;top:.375rem;left:.3125rem;border:0 solid currentColor;border-left-width:2px;border-bottom-width:2px;border-radius:0;background:transparent;transform:rotate(-45deg)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:after{display:none}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before,.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{width:.6875rem;height:.125rem;top:50%;left:50%;border-radius:999px}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--aeris-text, #222222);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--aeris-text-2, #555555);font-size:.8125rem;line-height:1.5}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-sm, .5rem);background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-toast__close:hover{background:color-mix(in srgb,var(--aeris-text, #222222) 8%,transparent);color:var(--aeris-text, #222222)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{z-index:calc(var(--aeris-toast-stack-size, 1) + 1);align-self:center;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;margin-top:.35rem;padding:0 .35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 1px 2px rgba(31, 35, 27, .06));font-size:.6875rem;font-weight:800;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{margin-top:0;margin-bottom:.35rem}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-mode=expanded] .aeris-toast__overflow{margin-top:0;opacity:.8}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__overflow{margin-bottom:0}@media(max-width:36rem){.aeris-toast__region{width:calc(100vw - 1rem)}.aeris-toast__region[data-position]{right:.5rem;left:.5rem;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:.5rem}.aeris-toast__region[data-position^=bottom]{bottom:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-toast__message,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"] }]
410
- }], ctorParameters: () => [], propDecorators: { contentTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisToastContentTemplate), { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisToastIconTemplate), { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], visibleCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleCount", required: false }] }], limit: [{ type: i0.Input, args: [{ isSignal: true, alias: "limit", required: false }] }], newestOnTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "newestOnTop", required: false }] }], pauseOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseOnHover", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
985
+ @if (hiddenCount() > 0) {
986
+ <span
987
+ class="aeris-toast__overflow"
988
+ aria-hidden="true"
989
+ animate.enter="aeris-toast__overflow--entering"
990
+ animate.leave="aeris-toast__overflow--leaving"
991
+ >
992
+ +{{ hiddenCount() }}
993
+ </span>
994
+ }
995
+ </section>
996
+ `,
997
+ host: {
998
+ class: "aeris-toast",
999
+ "[attr.data-position]": "position()"
1000
+ },
1001
+ styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}.aeris-toast__region[data-position$=left] .aeris-toast__item{justify-content:flex-start}.aeris-toast__region[data-position$=right] .aeris-toast__item{justify-content:flex-end}.aeris-toast__region[data-position$=center] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{justify-content:center}.aeris-toast__item:after{position:absolute;inset-inline:0;top:100%;height:calc(var(--_stack-gap) + 1px);content:\"\"}.aeris-toast__region[data-position^=top] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek)) + (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );top:0;transform-origin:top center}.aeris-toast__region[data-position^=bottom] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek) * -1) - (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );bottom:0;transform-origin:bottom center}.aeris-toast__region[data-mode=stacked] .aeris-toast__item:not([data-primary]){pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__body[data-behind]{opacity:0}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition:none}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) + 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) - 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"]
1002
+ }]
1003
+ }],
1004
+ ctorParameters: () => [],
1005
+ propDecorators: {
1006
+ closeIconTemplate: [{
1007
+ type: i0.Input,
1008
+ args: [{
1009
+ isSignal: true,
1010
+ alias: "closeIconTemplate",
1011
+ required: false
1012
+ }]
1013
+ }],
1014
+ toastRegion: [{
1015
+ type: i0.ViewChild,
1016
+ args: ["toastRegion", { isSignal: true }]
1017
+ }],
1018
+ messageElements: [{
1019
+ type: i0.ViewChildren,
1020
+ args: ["toastMessage", { isSignal: true }]
1021
+ }],
1022
+ contentTemplate: [{
1023
+ type: i0.ContentChild,
1024
+ args: [i0.forwardRef(() => AerisToastContentTemplate), { isSignal: true }]
1025
+ }],
1026
+ iconTemplate: [{
1027
+ type: i0.ContentChild,
1028
+ args: [i0.forwardRef(() => AerisToastIconTemplate), { isSignal: true }]
1029
+ }],
1030
+ position: [{
1031
+ type: i0.Input,
1032
+ args: [{
1033
+ isSignal: true,
1034
+ alias: "position",
1035
+ required: false
1036
+ }]
1037
+ }],
1038
+ group: [{
1039
+ type: i0.Input,
1040
+ args: [{
1041
+ isSignal: true,
1042
+ alias: "group",
1043
+ required: false
1044
+ }]
1045
+ }],
1046
+ mode: [{
1047
+ type: i0.Input,
1048
+ args: [{
1049
+ isSignal: true,
1050
+ alias: "mode",
1051
+ required: false
1052
+ }]
1053
+ }],
1054
+ visibleCount: [{
1055
+ type: i0.Input,
1056
+ args: [{
1057
+ isSignal: true,
1058
+ alias: "visibleCount",
1059
+ required: false
1060
+ }]
1061
+ }],
1062
+ limit: [{
1063
+ type: i0.Input,
1064
+ args: [{
1065
+ isSignal: true,
1066
+ alias: "limit",
1067
+ required: false
1068
+ }]
1069
+ }],
1070
+ newestOnTop: [{
1071
+ type: i0.Input,
1072
+ args: [{
1073
+ isSignal: true,
1074
+ alias: "newestOnTop",
1075
+ required: false
1076
+ }]
1077
+ }],
1078
+ pauseOnHover: [{
1079
+ type: i0.Input,
1080
+ args: [{
1081
+ isSignal: true,
1082
+ alias: "pauseOnHover",
1083
+ required: false
1084
+ }]
1085
+ }],
1086
+ showIcon: [{
1087
+ type: i0.Input,
1088
+ args: [{
1089
+ isSignal: true,
1090
+ alias: "showIcon",
1091
+ required: false
1092
+ }]
1093
+ }],
1094
+ showClose: [{
1095
+ type: i0.Input,
1096
+ args: [{
1097
+ isSignal: true,
1098
+ alias: "showClose",
1099
+ required: false
1100
+ }]
1101
+ }],
1102
+ swipeDirection: [{
1103
+ type: i0.Input,
1104
+ args: [{
1105
+ isSignal: true,
1106
+ alias: "swipeDirection",
1107
+ required: false
1108
+ }]
1109
+ }],
1110
+ swipeThreshold: [{
1111
+ type: i0.Input,
1112
+ args: [{
1113
+ isSignal: true,
1114
+ alias: "swipeThreshold",
1115
+ required: false
1116
+ }]
1117
+ }],
1118
+ ariaLabel: [{
1119
+ type: i0.Input,
1120
+ args: [{
1121
+ isSignal: true,
1122
+ alias: "ariaLabel",
1123
+ required: false
1124
+ }]
1125
+ }],
1126
+ closeAriaLabel: [{
1127
+ type: i0.Input,
1128
+ args: [{
1129
+ isSignal: true,
1130
+ alias: "closeAriaLabel",
1131
+ required: false
1132
+ }]
1133
+ }],
1134
+ closed: [{
1135
+ type: i0.Output,
1136
+ args: ["closed"]
1137
+ }]
1138
+ }
1139
+ });
411
1140
  const AerisToastModule = [
412
- AerisToast,
413
- AerisToastContentTemplate,
414
- AerisToastIconTemplate,
1141
+ AerisToast,
1142
+ AerisToastContentTemplate,
1143
+ AerisToastIconTemplate
415
1144
  ];
416
-
417
- /**
418
- * Generated bundle index. Do not edit.
419
- */
420
-
421
1145
  export { AerisToast, AerisToastContentTemplate, AerisToastIconTemplate, AerisToastModule, AerisToastService };
422
- //# sourceMappingURL=aeris-ui-core-toast.mjs.map
1146
+
1147
+ //# sourceMappingURL=aeris-ui-core-toast.mjs.map