@aeris-ui/core 22.0.0-alpha.5 → 22.0.0-alpha.6

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 (184) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +55 -54
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +8 -8
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +36 -39
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +5 -5
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-color-picker.mjs +5 -19
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +12 -12
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +19 -19
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +18 -18
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +6 -6
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +302 -302
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +30 -24
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +30 -24
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +7 -7
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +3 -3
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +5 -5
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +77 -22
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +15 -15
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +14 -14
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +9 -9
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +30 -44
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +3 -3
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +16 -16
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +15 -15
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +5 -5
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +3 -3
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +74 -66
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +3 -3
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +18 -18
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-theming.mjs +3 -3
  150. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-tiered-menu.mjs +6 -6
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  154. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-toast.mjs +47 -36
  156. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-toggle-switch.mjs +5 -5
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  160. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
  162. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +88 -66
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +15 -15
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-tree.mjs +12 -12
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core.mjs +175 -49
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  171. package/package.json +1 -1
  172. package/styles/aeris.css +56 -0
  173. package/styles/controls.css +9 -2
  174. package/types/aeris-ui-core-auto-complete.d.ts +1 -0
  175. package/types/aeris-ui-core-cascade-select.d.ts +1 -0
  176. package/types/aeris-ui-core-date-picker.d.ts +2 -0
  177. package/types/aeris-ui-core-dialog.d.ts +5 -3
  178. package/types/aeris-ui-core-drawer.d.ts +5 -3
  179. package/types/aeris-ui-core-input-number.d.ts +2 -0
  180. package/types/aeris-ui-core-multi-select.d.ts +1 -0
  181. package/types/aeris-ui-core-select.d.ts +4 -1
  182. package/types/aeris-ui-core-toast.d.ts +3 -2
  183. package/types/aeris-ui-core-tree-select.d.ts +1 -0
  184. package/types/aeris-ui-core.d.ts +5 -1
@@ -20,19 +20,19 @@ class AerisToastEventStream {
20
20
  }
21
21
  class AerisToastContentTemplate {
22
22
  template = inject(TemplateRef);
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisToastContentTemplate, isStandalone: true, selector: "ng-template[aerisToastContent]", ngImport: i0 });
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: AerisToastContentTemplate, isStandalone: true, selector: "ng-template[aerisToastContent]", ngImport: i0 });
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastContentTemplate, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastContentTemplate, decorators: [{
27
27
  type: Directive,
28
28
  args: [{ selector: 'ng-template[aerisToastContent]' }]
29
29
  }] });
30
30
  class AerisToastIconTemplate {
31
31
  template = inject(TemplateRef);
32
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
33
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: AerisToastIconTemplate, isStandalone: true, selector: "ng-template[aerisToastIcon]", ngImport: i0 });
32
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
33
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: AerisToastIconTemplate, isStandalone: true, selector: "ng-template[aerisToastIcon]", ngImport: i0 });
34
34
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastIconTemplate, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastIconTemplate, decorators: [{
36
36
  type: Directive,
37
37
  args: [{ selector: 'ng-template[aerisToastIcon]' }]
38
38
  }] });
@@ -127,7 +127,7 @@ class AerisToastService {
127
127
  }
128
128
  }
129
129
  resolveMessage(input) {
130
- const severity = input.severity ?? 'info';
130
+ const severity = input.severity ?? 'neutral';
131
131
  const role = input.role ?? (severity === 'error' || severity === 'warning' ? 'alert' : 'status');
132
132
  return {
133
133
  id: input.id ?? `aeris-toast-${++nextToastId}`,
@@ -145,10 +145,10 @@ class AerisToastService {
145
145
  createdAt: Date.now(),
146
146
  };
147
147
  }
148
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastService, deps: [], target: i0.ɵɵFactoryTarget.Service });
149
- static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.3", ngImport: i0, type: AerisToastService });
148
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastService, deps: [], target: i0.ɵɵFactoryTarget.Service });
149
+ static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.4", ngImport: i0, type: AerisToastService });
150
150
  }
151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToastService, decorators: [{
151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToastService, decorators: [{
152
152
  type: Service
153
153
  }] });
154
154
  class AerisToast {
@@ -183,6 +183,7 @@ class AerisToast {
183
183
  limit = input(undefined, { ...(ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
184
184
  newestOnTop = input(true, { ...(ngDevMode ? { debugName: "newestOnTop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
185
185
  pauseOnHover = input(true, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
186
+ showIcon = input(true, { ...(ngDevMode ? { debugName: "showIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
186
187
  showClose = input(true, { ...(ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
187
188
  swipeDirection = input([
188
189
  'down',
@@ -583,8 +584,8 @@ class AerisToast {
583
584
  return directions.includes('down');
584
585
  return directions.includes('up');
585
586
  }
586
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
587
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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 }, swipeDirection: { classPropertyName: "swipeDirection", publicName: "swipeDirection", isSignal: true, isRequired: false, transformFunction: null }, swipeThreshold: { classPropertyName: "swipeThreshold", publicName: "swipeThreshold", 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 }], viewQueries: [{ propertyName: "messageElements", predicate: ["toastMessage"], descendants: true, isSignal: true }], ngImport: i0, template: `
587
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
588
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", 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 }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, swipeDirection: { classPropertyName: "swipeDirection", publicName: "swipeDirection", isSignal: true, isRequired: false, transformFunction: null }, swipeThreshold: { classPropertyName: "swipeThreshold", publicName: "swipeThreshold", 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 }], viewQueries: [{ propertyName: "messageElements", predicate: ["toastMessage"], descendants: true, isSignal: true }], ngImport: i0, template: `
588
589
  <section
589
590
  class="aeris-toast__region"
590
591
  [attr.aria-label]="hasVisibleMessages() ? ariaLabel() : null"
@@ -634,18 +635,23 @@ class AerisToast {
634
635
  #toastMessage
635
636
  class="aeris-toast__body"
636
637
  [attr.data-behind]="!item.primary || null"
638
+ [attr.data-icon-hidden]="!showIcon() || null"
639
+ [attr.data-has-summary]="item.message.summary ? true : null"
640
+ [attr.data-custom-content]="contentTemplate() ? true : null"
637
641
  [attr.data-toast-id]="item.message.id"
638
642
  >
639
- <div class="aeris-toast__icon" aria-hidden="true">
640
- @if (iconTemplate(); as icon) {
641
- <ng-container
642
- [ngTemplateOutlet]="icon.template"
643
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
644
- />
645
- } @else {
646
- <span class="aeris-toast__default-icon"></span>
647
- }
648
- </div>
643
+ @if (showIcon()) {
644
+ <div class="aeris-toast__icon" aria-hidden="true">
645
+ @if (iconTemplate(); as icon) {
646
+ <ng-container
647
+ [ngTemplateOutlet]="icon.template"
648
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
649
+ />
650
+ } @else {
651
+ <span class="aeris-toast__default-icon"></span>
652
+ }
653
+ </div>
654
+ }
649
655
 
650
656
  <div class="aeris-toast__content">
651
657
  @if (contentTemplate(); as content) {
@@ -689,9 +695,9 @@ class AerisToast {
689
695
  </span>
690
696
  }
691
697
  </section>
692
- `, isInline: true, styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);height:0;pointer-events:none;outline:none}.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__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;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__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]:hover .aeris-toast__item,.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}.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.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]:hover .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}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item,.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}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body,.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}.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%)}}.aeris-toast__message{--_accent: var(--aeris-primary, #5f6f36);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;box-sizing:border-box;width:100%;height:100%;min-width:0;border:1px solid var(--aeris-border);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));overflow:hidden;pointer-events:auto;transition:box-shadow .16s ease,border-color .16s ease}.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__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;transition:background-color .16s ease,color .16s ease}.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, #3b4729);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{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, #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;translate:-50% -50%;transition:opacity .15s ease,transform .15s 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 .16s 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{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__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"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
698
+ `, isInline: true, 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),100vw - var(--_edge-offset) - var(--_edge-offset) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + env(safe-area-inset-top,0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + env(safe-area-inset-bottom,0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + env(safe-area-inset-left,0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + env(safe-area-inset-right,0px))}.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__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]:hover .aeris-toast__item,.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}.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.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]:hover .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}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item,.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}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body,.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}.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%)}}.aeris-toast__message{--_accent: var(--aeris-primary, #5f6f36);--_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, #222222);--_toast-detail: var(--aeris-text-2, #555555);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-md, .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 .16s ease,border-color .16s ease}.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:hover,.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, #222222) 10%,transparent)}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #5f6f36)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #b75e26)}.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]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #222222);--_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{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(--_toast-text);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);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(--_toast-detail);cursor:pointer;transition:background-color .16s ease,color .16s ease}.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);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{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, #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;translate:-50% -50%;transition:opacity .15s ease,transform .15s 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 .16s 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) + env(safe-area-inset-right,0px));left:calc(var(--_edge-offset) + env(safe-area-inset-left,0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + env(safe-area-inset-top,0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + env(safe-area-inset-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"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
693
699
  }
694
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AerisToast, decorators: [{
700
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisToast, decorators: [{
695
701
  type: Component,
696
702
  args: [{ selector: 'aeris-toast', imports: [NgTemplateOutlet], template: `
697
703
  <section
@@ -743,18 +749,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
743
749
  #toastMessage
744
750
  class="aeris-toast__body"
745
751
  [attr.data-behind]="!item.primary || null"
752
+ [attr.data-icon-hidden]="!showIcon() || null"
753
+ [attr.data-has-summary]="item.message.summary ? true : null"
754
+ [attr.data-custom-content]="contentTemplate() ? true : null"
746
755
  [attr.data-toast-id]="item.message.id"
747
756
  >
748
- <div class="aeris-toast__icon" aria-hidden="true">
749
- @if (iconTemplate(); as icon) {
750
- <ng-container
751
- [ngTemplateOutlet]="icon.template"
752
- [ngTemplateOutletContext]="templateContexts()[item.message.id]"
753
- />
754
- } @else {
755
- <span class="aeris-toast__default-icon"></span>
756
- }
757
- </div>
757
+ @if (showIcon()) {
758
+ <div class="aeris-toast__icon" aria-hidden="true">
759
+ @if (iconTemplate(); as icon) {
760
+ <ng-container
761
+ [ngTemplateOutlet]="icon.template"
762
+ [ngTemplateOutletContext]="templateContexts()[item.message.id]"
763
+ />
764
+ } @else {
765
+ <span class="aeris-toast__default-icon"></span>
766
+ }
767
+ </div>
768
+ }
758
769
 
759
770
  <div class="aeris-toast__content">
760
771
  @if (contentTemplate(); as content) {
@@ -801,8 +812,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
801
812
  `, host: {
802
813
  class: 'aeris-toast',
803
814
  '[attr.data-position]': 'position()',
804
- }, styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);height:0;pointer-events:none;outline:none}.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__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;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__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]:hover .aeris-toast__item,.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}.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.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]:hover .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}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item,.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}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body,.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}.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%)}}.aeris-toast__message{--_accent: var(--aeris-primary, #5f6f36);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;box-sizing:border-box;width:100%;height:100%;min-width:0;border:1px solid var(--aeris-border);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));overflow:hidden;pointer-events:auto;transition:box-shadow .16s ease,border-color .16s ease}.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__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;transition:background-color .16s ease,color .16s ease}.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, #3b4729);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{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, #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;translate:-50% -50%;transition:opacity .15s ease,transform .15s 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 .16s 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{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__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"] }]
805
- }], ctorParameters: () => [], propDecorators: { messageElements: [{ type: i0.ViewChildren, args: ['toastMessage', { isSignal: true }] }], 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 }] }], swipeDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeDirection", required: false }] }], swipeThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeThreshold", 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"] }] } });
815
+ }, 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),100vw - var(--_edge-offset) - var(--_edge-offset) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + env(safe-area-inset-top,0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + env(safe-area-inset-bottom,0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + env(safe-area-inset-left,0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + env(safe-area-inset-right,0px))}.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__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]:hover .aeris-toast__item,.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}.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.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]:hover .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}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item,.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}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body,.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}.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%)}}.aeris-toast__message{--_accent: var(--aeris-primary, #5f6f36);--_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, #222222);--_toast-detail: var(--aeris-text-2, #555555);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-md, .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 .16s ease,border-color .16s ease}.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:hover,.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, #222222) 10%,transparent)}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #5f6f36)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #b75e26)}.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]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #222222);--_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{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(--_toast-text);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);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(--_toast-detail);cursor:pointer;transition:background-color .16s ease,color .16s ease}.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #3b4729);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{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, #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;translate:-50% -50%;transition:opacity .15s ease,transform .15s 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 .16s 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) + env(safe-area-inset-right,0px));left:calc(var(--_edge-offset) + env(safe-area-inset-left,0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + env(safe-area-inset-top,0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + env(safe-area-inset-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"] }]
816
+ }], ctorParameters: () => [], propDecorators: { messageElements: [{ type: i0.ViewChildren, args: ['toastMessage', { isSignal: true }] }], 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 }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], swipeDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeDirection", required: false }] }], swipeThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeThreshold", 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"] }] } });
806
817
  const AerisToastModule = [
807
818
  AerisToast,
808
819
  AerisToastContentTemplate,
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-toast.mjs","sources":["../../../projects/aeris-ui/toast/aeris-toast.ts","../../../projects/aeris-ui/toast/aeris-ui-core-toast.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n Service,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { aerisInternalCreateFrameScheduler } from '@aeris-ui/core';\n\nexport type AerisToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\nexport type AerisToastSeverity =\n 'info' | 'success' | 'warning' | 'error' | 'neutral' | 'secondary' | 'contrast';\n\nexport type AerisToastMode = 'stacked' | 'expanded';\nexport type AerisToastSwipeDirection = 'up' | 'down' | 'left' | 'right';\nexport type AerisToastCloseReason = 'timeout' | 'close-button' | 'swipe' | 'api' | 'clear';\nexport type AerisToastLive = 'polite' | 'assertive';\nexport type AerisToastRole = 'status' | 'alert';\n\nexport interface AerisToastMessageInput<TData = unknown> {\n readonly id?: string;\n readonly group?: string;\n readonly severity?: AerisToastSeverity;\n readonly summary?: string;\n readonly detail?: string;\n readonly life?: number;\n readonly sticky?: boolean;\n readonly closable?: boolean;\n readonly data?: TData;\n readonly ariaLabel?: string;\n readonly ariaLive?: AerisToastLive;\n readonly role?: AerisToastRole;\n}\n\nexport interface AerisToastMessage<TData = unknown> {\n readonly id: string;\n readonly group: string;\n readonly severity: AerisToastSeverity;\n readonly summary: string;\n readonly detail: string;\n readonly life: number;\n readonly sticky: boolean;\n readonly closable: boolean;\n readonly data: TData | undefined;\n readonly ariaLabel: string;\n readonly ariaLive: AerisToastLive;\n readonly role: AerisToastRole;\n readonly createdAt: number;\n}\n\nexport interface AerisToastCloseEvent<TData = unknown> {\n readonly message: AerisToastMessage<TData>;\n readonly reason: AerisToastCloseReason;\n}\n\nexport interface AerisToastSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisToastSubscribable<T> {\n subscribe(next: (event: T) => void): AerisToastSubscription;\n}\n\nexport interface AerisToastTemplateContext<TData = unknown> {\n readonly $implicit: AerisToastMessage<TData>;\n readonly message: AerisToastMessage<TData>;\n readonly close: () => void;\n}\n\ninterface AerisToastStackItem {\n readonly message: AerisToastMessage;\n readonly stackIndex: number;\n readonly stackIndexValue: string;\n readonly stackSizeValue: string;\n readonly heightValue: string;\n readonly frontHeightValue: string;\n readonly heightOffsetValue: string;\n readonly primary: boolean;\n readonly swipeXValue: string;\n readonly swipeYValue: string;\n readonly swipeDirection: AerisToastSwipeDirection | undefined;\n readonly swiping: boolean;\n readonly swipeDismissing: boolean;\n}\n\ninterface AerisToastSwipeVisual {\n readonly x: number;\n readonly y: number;\n readonly direction: AerisToastSwipeDirection | undefined;\n readonly phase: 'dragging' | 'dismissing';\n}\n\ninterface AerisToastSwipeSession {\n readonly message: AerisToastMessage;\n readonly pointerId: number;\n startX: number;\n startY: number;\n lastX: number;\n lastY: number;\n baselineX: number;\n baselineY: number;\n deltaX: number;\n deltaY: number;\n visualX: number;\n visualY: number;\n firstMove: boolean;\n realSwipe: boolean;\n lockedAxis: 'horizontal' | 'vertical' | null;\n intendedDirection: AerisToastSwipeDirection | undefined;\n maxDisplacement: number;\n cancelled: boolean;\n}\n\ninterface AerisToastTimer {\n readonly message: AerisToastMessage;\n handle: ReturnType<typeof setTimeout> | null;\n startedAt: number;\n remaining: number;\n paused: boolean;\n}\n\nclass AerisToastEventStream<T> implements AerisToastSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n\n subscribe(next: (event: T) => void): AerisToastSubscription {\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n for (const listener of [...this.listeners]) listener(event);\n }\n}\n\n@Directive({ selector: 'ng-template[aerisToastContent]' })\nexport class AerisToastContentTemplate {\n readonly template = inject<TemplateRef<AerisToastTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisToastIcon]' })\nexport class AerisToastIconTemplate {\n readonly template = inject<TemplateRef<AerisToastTemplateContext>>(TemplateRef);\n}\n\nlet nextToastId = 0;\n\n@Service()\nexport class AerisToastService {\n private readonly store = signal<readonly AerisToastMessage[]>([]);\n private readonly timers = new Map<string, AerisToastTimer>();\n private readonly closedStream = new AerisToastEventStream<AerisToastCloseEvent>();\n\n readonly messages = this.store.asReadonly();\n readonly closed: AerisToastSubscribable<AerisToastCloseEvent> = this.closedStream;\n\n show<TData = unknown>(message: AerisToastMessageInput<TData>): AerisToastMessage<TData> {\n const resolved = this.resolveMessage(message);\n this.store.update((messages) => [\n ...messages.filter((item) => item.id !== resolved.id),\n resolved,\n ]);\n this.clearTimer(resolved.id);\n this.schedule(resolved);\n return resolved;\n }\n\n showAll<TData = unknown>(\n messages: readonly AerisToastMessageInput<TData>[],\n ): readonly AerisToastMessage<TData>[] {\n const resolved = messages.map((message) => this.resolveMessage(message));\n const resolvedIds = new Set(resolved.map((message) => message.id));\n\n this.store.update((current) => [\n ...current.filter((message) => !resolvedIds.has(message.id)),\n ...resolved,\n ]);\n\n for (const message of resolved) {\n this.clearTimer(message.id);\n this.schedule(message);\n }\n\n return resolved;\n }\n\n remove(id: string, reason: AerisToastCloseReason = 'api'): void {\n const message = this.store().find((item) => item.id === id);\n if (!message) return;\n\n this.store.update((messages) => messages.filter((item) => item.id !== id));\n this.clearTimer(id);\n this.closedStream.next({ message, reason });\n }\n\n clear(group = ''): void {\n const targets = this.store().filter((message) => message.group === group);\n this.removeMany(targets, 'clear');\n }\n\n clearAll(): void {\n this.removeMany(this.store(), 'clear');\n }\n\n pause(id: string): void {\n const timer = this.timers.get(id);\n if (!timer || timer.paused || !timer.handle) return;\n\n globalThis.clearTimeout(timer.handle);\n timer.handle = null;\n timer.remaining = Math.max(0, timer.remaining - (Date.now() - timer.startedAt));\n timer.paused = true;\n }\n\n resume(id: string): void {\n const timer = this.timers.get(id);\n if (!timer || !timer.paused) return;\n\n timer.paused = false;\n timer.startedAt = Date.now();\n timer.handle = globalThis.setTimeout(() => this.remove(id, 'timeout'), timer.remaining);\n }\n\n private schedule(message: AerisToastMessage): void {\n if (message.sticky || message.life <= 0) return;\n\n this.timers.set(message.id, {\n message,\n handle: globalThis.setTimeout(() => this.remove(message.id, 'timeout'), message.life),\n startedAt: Date.now(),\n remaining: message.life,\n paused: false,\n });\n }\n\n private clearTimer(id: string): void {\n const timer = this.timers.get(id);\n if (timer?.handle) globalThis.clearTimeout(timer.handle);\n this.timers.delete(id);\n }\n\n private removeMany(targets: readonly AerisToastMessage[], reason: AerisToastCloseReason): void {\n if (targets.length === 0) return;\n const targetIds = new Set(targets.map((message) => message.id));\n this.store.update((messages) => messages.filter((message) => !targetIds.has(message.id)));\n\n for (const message of targets) {\n this.clearTimer(message.id);\n this.closedStream.next({ message, reason });\n }\n }\n\n private resolveMessage<TData>(input: AerisToastMessageInput<TData>): AerisToastMessage<TData> {\n const severity = input.severity ?? 'info';\n const role =\n input.role ?? (severity === 'error' || severity === 'warning' ? 'alert' : 'status');\n return {\n id: input.id ?? `aeris-toast-${++nextToastId}`,\n group: input.group ?? '',\n severity,\n summary: input.summary ?? '',\n detail: input.detail ?? '',\n life: input.life ?? 5000,\n sticky: input.sticky ?? false,\n closable: input.closable ?? true,\n data: input.data,\n ariaLabel: input.ariaLabel ?? '',\n ariaLive: input.ariaLive ?? (role === 'alert' ? 'assertive' : 'polite'),\n role,\n createdAt: Date.now(),\n };\n }\n}\n\n@Component({\n selector: 'aeris-toast',\n imports: [NgTemplateOutlet],\n template: `\n <section\n class=\"aeris-toast__region\"\n [attr.aria-label]=\"hasVisibleMessages() ? ariaLabel() : null\"\n [attr.data-empty]=\"!hasVisibleMessages() || null\"\n [attr.data-position]=\"position()\"\n [attr.data-mode]=\"mode()\"\n [attr.data-newest-on-top]=\"newestOnTop() || null\"\n [attr.data-overflow]=\"hiddenCount() > 0 || null\"\n [style.--aeris-toast-stack-size]=\"visibleStackSize()\"\n (pointerenter)=\"pauseVisible()\"\n (pointerleave)=\"resumeVisible()\"\n (focusin)=\"pauseVisible()\"\n (focusout)=\"resumeVisible()\"\n >\n @for (item of visibleStack(); track item.message.id) {\n <div\n class=\"aeris-toast__item\"\n [attr.data-stack-index]=\"item.stackIndex\"\n [attr.data-primary]=\"item.primary || null\"\n [attr.data-swiping]=\"item.swiping || null\"\n [attr.data-swipe-direction]=\"item.swipeDirection || null\"\n [attr.data-swipe-dismissing]=\"item.swipeDismissing || null\"\n [style.--aeris-toast-stack-index]=\"item.stackIndexValue\"\n [style.--aeris-toast-stack-size]=\"item.stackSizeValue\"\n [style.--aeris-toast-height]=\"item.heightValue\"\n [style.--aeris-toast-front-height]=\"item.frontHeightValue\"\n [style.--aeris-toast-height-offset]=\"item.heightOffsetValue\"\n [style.--aeris-toast-swipe-x]=\"item.swipeXValue\"\n [style.--aeris-toast-swipe-y]=\"item.swipeYValue\"\n animate.leave=\"aeris-toast__item--leaving\"\n (pointerdown)=\"handlePointerDown($event, item.message)\"\n (pointermove)=\"handlePointerMove($event)\"\n (pointerup)=\"handlePointerEnd($event)\"\n (pointercancel)=\"handlePointerEnd($event)\"\n >\n <article\n class=\"aeris-toast__message\"\n [attr.data-severity]=\"item.message.severity\"\n [attr.data-stack-index]=\"item.stackIndex\"\n [attr.data-primary]=\"item.primary || null\"\n [attr.role]=\"item.message.role\"\n [attr.aria-live]=\"item.message.ariaLive\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"item.message.ariaLabel || null\"\n >\n <div\n #toastMessage\n class=\"aeris-toast__body\"\n [attr.data-behind]=\"!item.primary || null\"\n [attr.data-toast-id]=\"item.message.id\"\n >\n <div class=\"aeris-toast__icon\" aria-hidden=\"true\">\n @if (iconTemplate(); as icon) {\n <ng-container\n [ngTemplateOutlet]=\"icon.template\"\n [ngTemplateOutletContext]=\"templateContexts()[item.message.id]\"\n />\n } @else {\n <span class=\"aeris-toast__default-icon\"></span>\n }\n </div>\n\n <div class=\"aeris-toast__content\">\n @if (contentTemplate(); as content) {\n <ng-container\n [ngTemplateOutlet]=\"content.template\"\n [ngTemplateOutletContext]=\"templateContexts()[item.message.id]\"\n />\n } @else {\n @if (item.message.summary) {\n <p class=\"aeris-toast__summary\">{{ item.message.summary }}</p>\n }\n @if (item.message.detail) {\n <p class=\"aeris-toast__detail\">{{ item.message.detail }}</p>\n }\n }\n </div>\n\n @if (item.message.closable && showClose()) {\n <button\n type=\"button\"\n class=\"aeris-toast__close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close(item.message)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n </article>\n </div>\n }\n\n @if (hiddenCount() > 0) {\n <span\n class=\"aeris-toast__overflow\"\n aria-hidden=\"true\"\n animate.enter=\"aeris-toast__overflow--entering\"\n animate.leave=\"aeris-toast__overflow--leaving\"\n >\n +{{ hiddenCount() }}\n </span>\n }\n </section>\n `,\n styleUrl: './aeris-toast.scss',\n host: {\n class: 'aeris-toast',\n '[attr.data-position]': 'position()',\n },\n})\nexport class AerisToast {\n private static readonly fallbackHeight = 72;\n private static readonly swipeRemovalDelay = 550;\n private static readonly reverseCancelThreshold = 10;\n private static readonly minimumDragThreshold = 1;\n private readonly toastService = inject(AerisToastService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly messageElements = viewChildren<ElementRef<HTMLElement>>('toastMessage');\n private readonly measuredHeights = signal<Readonly<Record<string, number>>>({});\n private readonly swipeVisuals = signal<Readonly<Record<string, AerisToastSwipeVisual>>>({});\n private readonly swipeCleanupTimers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly pendingSwipeRemovals = new Map<string, () => void>();\n private readonly measureFrame = aerisInternalCreateFrameScheduler(() => this.measureMessages());\n private readonly swipeFrame = aerisInternalCreateFrameScheduler(() => this.flushSwipeVisual());\n private swipeSession: AerisToastSwipeSession | null = null;\n protected readonly contentTemplate = contentChild(AerisToastContentTemplate);\n protected readonly iconTemplate = contentChild(AerisToastIconTemplate);\n\n readonly position = input<AerisToastPosition>('bottom-right');\n readonly group = input('');\n readonly mode = input<AerisToastMode>('stacked');\n readonly visibleCount = input(4, { transform: numberAttribute });\n readonly limit = input<number | undefined>(undefined, { transform: numberAttribute });\n readonly newestOnTop = input(true, { transform: booleanAttribute });\n readonly pauseOnHover = input(true, { transform: booleanAttribute });\n readonly showClose = input(true, { transform: booleanAttribute });\n readonly swipeDirection = input<AerisToastSwipeDirection | readonly AerisToastSwipeDirection[]>([\n 'down',\n 'right',\n ]);\n readonly swipeThreshold = input(40, { transform: numberAttribute });\n readonly ariaLabel = input('Notifications');\n readonly closeAriaLabel = input('Close notification');\n\n readonly closed = output<AerisToastCloseEvent>();\n private readonly stackHovered = signal(false);\n private readonly resolvedSwipeDirections = computed<readonly AerisToastSwipeDirection[]>(() => {\n const value = this.swipeDirection();\n const directions = Array.isArray(value) ? value : [value];\n return [...new Set(directions)].filter(\n (direction): direction is AerisToastSwipeDirection =>\n direction === 'up' || direction === 'down' || direction === 'left' || direction === 'right',\n );\n });\n private readonly resolvedSwipeThreshold = computed(() => {\n const threshold = this.swipeThreshold();\n return Number.isFinite(threshold) && threshold >= 0 ? threshold : 40;\n });\n\n protected readonly orderedMessages = computed(() => {\n const group = this.group();\n const filtered = this.toastService.messages().filter((message) => message.group === group);\n return this.newestOnTop() ? [...filtered].reverse() : filtered;\n });\n\n protected readonly effectiveVisibleCount = computed(() => {\n const limit = this.limit();\n const visibleCount = this.visibleCount();\n const count =\n typeof limit === 'number' && Number.isFinite(limit)\n ? limit\n : typeof visibleCount === 'number' && Number.isFinite(visibleCount)\n ? visibleCount\n : 4;\n return Number.isFinite(count) && count > 0 ? Math.floor(count) : 4;\n });\n\n protected readonly visibleMessages = computed(() =>\n this.orderedMessages().slice(0, this.effectiveVisibleCount()),\n );\n\n protected readonly hiddenCount = computed(() =>\n Math.max(0, this.orderedMessages().length - this.visibleMessages().length),\n );\n\n protected readonly visibleStackSize = computed(() => `${this.visibleMessages().length}`);\n protected readonly hasVisibleMessages = computed(() => this.visibleMessages().length > 0);\n\n protected readonly visibleStack = computed<readonly AerisToastStackItem[]>(() => {\n const messages = this.visibleMessages();\n const heights = this.measuredHeights();\n const swipeVisuals = this.swipeVisuals();\n const frontHeight = messages[0]\n ? (heights[messages[0].id] ?? AerisToast.fallbackHeight)\n : AerisToast.fallbackHeight;\n let heightOffset = 0;\n\n return messages.map((message, stackIndex) => {\n const height = heights[message.id] ?? AerisToast.fallbackHeight;\n const swipe = swipeVisuals[message.id];\n const item = {\n message,\n stackIndex,\n stackIndexValue: `${stackIndex}`,\n stackSizeValue: `${messages.length}`,\n heightValue: `${height}px`,\n frontHeightValue: `${frontHeight}px`,\n heightOffsetValue: `${heightOffset}px`,\n primary: stackIndex === 0,\n swipeXValue: `${swipe?.x ?? 0}px`,\n swipeYValue: `${swipe?.y ?? 0}px`,\n swipeDirection: swipe?.direction,\n swiping: swipe?.phase === 'dragging',\n swipeDismissing: swipe?.phase === 'dismissing',\n };\n heightOffset += height;\n return item;\n });\n });\n\n protected readonly templateContexts = computed(() => {\n const contexts: Record<string, AerisToastTemplateContext> = {};\n for (const message of this.visibleMessages()) {\n contexts[message.id] = {\n $implicit: message,\n message,\n close: () => this.close(message),\n };\n }\n return contexts;\n });\n\n constructor() {\n effect((onCleanup) => {\n const elements = this.messageElements().map((element) => element.nativeElement);\n this.measureFrame.schedule();\n\n if (typeof globalThis.ResizeObserver !== 'function') return;\n const observer = new ResizeObserver(() => this.measureFrame.schedule());\n for (const element of elements) observer.observe(element);\n onCleanup(() => {\n observer.disconnect();\n this.measureFrame.cancel();\n });\n });\n\n effect((onCleanup) => {\n const group = this.group();\n const subscription = this.toastService.closed.subscribe((event) => {\n if (event.message.group !== group) return;\n this.closed.emit(event);\n });\n onCleanup(() => subscription.unsubscribe());\n });\n\n effect(() => {\n const visibleIds = new Set(this.visibleMessages().map((message) => message.id));\n const gestureIds = new Set(Object.keys(this.swipeVisuals()));\n const pauseVisible = this.stackHovered() && this.pauseOnHover();\n\n for (const message of this.orderedMessages()) {\n if (visibleIds.has(message.id) && !pauseVisible && !gestureIds.has(message.id)) {\n this.toastService.resume(message.id);\n } else {\n this.toastService.pause(message.id);\n }\n }\n });\n\n this.destroyRef.onDestroy(() => {\n this.measureFrame.cancel();\n this.swipeFrame.cancel();\n for (const cancel of this.pendingSwipeRemovals.values()) cancel();\n for (const timer of this.swipeCleanupTimers.values()) globalThis.clearTimeout(timer);\n this.pendingSwipeRemovals.clear();\n this.swipeCleanupTimers.clear();\n this.swipeSession = null;\n });\n }\n\n protected close(message: AerisToastMessage): void {\n this.toastService.remove(message.id, 'close-button');\n }\n\n protected pauseVisible(): void {\n this.stackHovered.set(true);\n if (!this.pauseOnHover()) return;\n for (const message of this.visibleMessages()) this.toastService.pause(message.id);\n }\n\n protected resumeVisible(): void {\n this.stackHovered.set(false);\n if (!this.pauseOnHover()) return;\n const gestureIds = new Set(Object.keys(this.swipeVisuals()));\n for (const message of this.visibleMessages()) {\n if (!gestureIds.has(message.id)) this.toastService.resume(message.id);\n }\n }\n\n protected handlePointerDown(event: PointerEvent, message: AerisToastMessage): void {\n if (this.resolvedSwipeDirections().length === 0 || this.swipeSession) return;\n if (event.pointerType === 'mouse' && event.button !== 0) return;\n\n const target = event.target as Element | null;\n if (\n target?.closest(\n 'button,a,input,textarea,select,[role=\"button\"],[data-aeris-toast-swipe-ignore]',\n )\n ) {\n return;\n }\n\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.toastService.pause(message.id);\n this.swipeSession = {\n message,\n pointerId: event.pointerId,\n startX: event.clientX,\n startY: event.clientY,\n lastX: event.clientX,\n lastY: event.clientY,\n baselineX: event.clientX,\n baselineY: event.clientY,\n deltaX: 0,\n deltaY: 0,\n visualX: 0,\n visualY: 0,\n firstMove: true,\n realSwipe: false,\n lockedAxis: null,\n intendedDirection: undefined,\n maxDisplacement: 0,\n cancelled: false,\n };\n this.setSwipeVisual(message.id, {\n x: 0,\n y: 0,\n direction: undefined,\n phase: 'dragging',\n });\n }\n\n protected handlePointerMove(event: PointerEvent): void {\n const session = this.swipeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n event.preventDefault();\n this.updateSwipeSession(session, event.clientX, event.clientY);\n this.swipeFrame.schedule();\n }\n\n protected handlePointerEnd(event: PointerEvent): void {\n const session = this.swipeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n\n const target = event.currentTarget as HTMLElement;\n if (target.hasPointerCapture?.(event.pointerId)) target.releasePointerCapture(event.pointerId);\n\n this.swipeFrame.cancel();\n if (!session.firstMove) this.updateSwipeSession(session, event.clientX, event.clientY);\n this.flushSwipeVisual();\n\n const dismissDirection =\n event.type === 'pointercancel' || session.cancelled\n ? undefined\n : this.resolvedSwipeDirections().find(\n (direction) =>\n this.swipeDisplacement(direction, session.deltaX, session.deltaY) >\n this.resolvedSwipeThreshold(),\n );\n\n this.swipeSession = null;\n if (dismissDirection) {\n this.setSwipeVisual(session.message.id, {\n x: session.visualX,\n y: session.visualY,\n direction: dismissDirection,\n phase: 'dismissing',\n });\n this.scheduleSwipeRemoval(session.message);\n return;\n }\n\n this.removeSwipeVisual(session.message.id);\n if (!(this.stackHovered() && this.pauseOnHover())) {\n this.toastService.resume(session.message.id);\n }\n }\n\n private measureMessages(): void {\n const measurements: Record<string, number> = {};\n\n for (const reference of this.messageElements()) {\n const element = reference.nativeElement;\n const id = element.dataset['toastId'];\n if (!id) continue;\n\n const contentHeight = Math.max(element.scrollHeight, element.getBoundingClientRect().height);\n if (contentHeight > 0) measurements[id] = Math.ceil(contentHeight + 2);\n }\n\n this.measuredHeights.update((current) => {\n const ids = Object.keys(measurements);\n const unchanged =\n ids.length === Object.keys(current).length &&\n ids.every((id) => current[id] === measurements[id]);\n return unchanged ? current : measurements;\n });\n }\n\n private updateSwipeSession(\n session: AerisToastSwipeSession,\n clientX: number,\n clientY: number,\n ): void {\n if (session.firstMove) {\n session.startX = clientX;\n session.startY = clientY;\n session.lastX = clientX;\n session.lastY = clientY;\n session.baselineX = clientX;\n session.baselineY = clientY;\n session.firstMove = false;\n return;\n }\n\n const movementX = clientX - session.lastX;\n const movementY = clientY - session.lastY;\n session.lastX = clientX;\n session.lastY = clientY;\n\n if (\n (movementY < 0 && clientY > session.baselineY) ||\n (movementY > 0 && clientY < session.baselineY)\n ) {\n session.baselineY = clientY;\n }\n if (\n (movementX < 0 && clientX > session.baselineX) ||\n (movementX > 0 && clientX < session.baselineX)\n ) {\n session.baselineX = clientX;\n }\n\n const deltaX = clientX - session.startX;\n const deltaY = clientY - session.startY;\n session.deltaX = deltaX;\n session.deltaY = deltaY;\n\n const directions = this.resolvedSwipeDirections();\n const hasHorizontal = directions.includes('left') || directions.includes('right');\n const hasVertical = directions.includes('up') || directions.includes('down');\n\n if (!session.realSwipe) {\n const distance = Math.hypot(deltaX, deltaY);\n if (distance >= AerisToast.minimumDragThreshold) {\n session.realSwipe = true;\n if (hasHorizontal && hasVertical) {\n session.lockedAxis = Math.abs(deltaX) > Math.abs(deltaY) ? 'horizontal' : 'vertical';\n }\n }\n }\n\n if (!session.intendedDirection) {\n const candidate = this.swipeCandidate(session.lockedAxis, deltaX, deltaY);\n if (candidate && directions.includes(candidate)) {\n session.intendedDirection = candidate;\n session.maxDisplacement = this.swipeDisplacement(candidate, deltaX, deltaY);\n }\n } else {\n const cancelDeltaX = clientX - session.baselineX;\n const cancelDeltaY = clientY - session.baselineY;\n const currentDisplacement = this.swipeDisplacement(\n session.intendedDirection,\n cancelDeltaX,\n cancelDeltaY,\n );\n const displacement = this.swipeDisplacement(session.intendedDirection, deltaX, deltaY);\n session.maxDisplacement = Math.max(session.maxDisplacement, displacement);\n\n if (currentDisplacement > this.resolvedSwipeThreshold()) {\n session.cancelled = false;\n } else if (\n !this.hasOppositeSwipeDirection(session.intendedDirection, directions) &&\n session.maxDisplacement - currentDisplacement >= AerisToast.reverseCancelThreshold\n ) {\n session.cancelled = true;\n }\n }\n\n const dampedX = this.dampedSwipeDelta(deltaX, 'left', 'right', directions);\n const dampedY = this.dampedSwipeDelta(deltaY, 'up', 'down', directions);\n session.visualX = session.lockedAxis !== 'vertical' && hasHorizontal ? dampedX : 0;\n session.visualY = session.lockedAxis !== 'horizontal' && hasVertical ? dampedY : 0;\n }\n\n private flushSwipeVisual(): void {\n const session = this.swipeSession;\n if (!session) return;\n this.setSwipeVisual(session.message.id, {\n x: session.visualX,\n y: session.visualY,\n direction: session.cancelled ? undefined : session.intendedDirection,\n phase: 'dragging',\n });\n }\n\n private setSwipeVisual(id: string, visual: AerisToastSwipeVisual): void {\n this.swipeVisuals.update((current) => ({ ...current, [id]: visual }));\n }\n\n private removeSwipeVisual(id: string): void {\n this.swipeVisuals.update((current) => {\n if (!(id in current)) return current;\n const next = { ...current };\n delete next[id];\n return next;\n });\n }\n\n private scheduleSwipeRemoval(message: AerisToastMessage): void {\n this.pendingSwipeRemovals.get(message.id)?.();\n\n const remove = (): void => {\n this.pendingSwipeRemovals.delete(message.id);\n this.toastService.remove(message.id, 'swipe');\n const cleanup = globalThis.setTimeout(() => {\n this.swipeCleanupTimers.delete(message.id);\n this.removeSwipeVisual(message.id);\n }, AerisToast.swipeRemovalDelay);\n this.swipeCleanupTimers.set(message.id, cleanup);\n };\n\n if (typeof globalThis.requestAnimationFrame === 'function') {\n const frame = globalThis.requestAnimationFrame(remove);\n this.pendingSwipeRemovals.set(message.id, () => globalThis.cancelAnimationFrame?.(frame));\n } else {\n const timer = globalThis.setTimeout(remove, 0);\n this.pendingSwipeRemovals.set(message.id, () => globalThis.clearTimeout(timer));\n }\n }\n\n private swipeCandidate(\n lockedAxis: 'horizontal' | 'vertical' | null,\n deltaX: number,\n deltaY: number,\n ): AerisToastSwipeDirection | undefined {\n if (lockedAxis === 'vertical') return deltaY > 0 ? 'down' : deltaY < 0 ? 'up' : undefined;\n if (lockedAxis === 'horizontal') {\n return deltaX > 0 ? 'right' : deltaX < 0 ? 'left' : undefined;\n }\n if (Math.abs(deltaX) >= Math.abs(deltaY)) {\n return deltaX > 0 ? 'right' : deltaX < 0 ? 'left' : undefined;\n }\n return deltaY > 0 ? 'down' : deltaY < 0 ? 'up' : undefined;\n }\n\n private swipeDisplacement(\n direction: AerisToastSwipeDirection,\n deltaX: number,\n deltaY: number,\n ): number {\n if (direction === 'right') return deltaX;\n if (direction === 'left') return -deltaX;\n if (direction === 'down') return deltaY;\n return -deltaY;\n }\n\n private dampedSwipeDelta(\n delta: number,\n negativeDirection: AerisToastSwipeDirection,\n positiveDirection: AerisToastSwipeDirection,\n directions: readonly AerisToastSwipeDirection[],\n ): number {\n const unsupported =\n (delta > 0 && !directions.includes(positiveDirection)) ||\n (delta < 0 && !directions.includes(negativeDirection));\n if (!unsupported) return delta;\n return Math.sign(delta) * Math.sqrt(Math.abs(delta));\n }\n\n private hasOppositeSwipeDirection(\n direction: AerisToastSwipeDirection,\n directions: readonly AerisToastSwipeDirection[],\n ): boolean {\n if (direction === 'left') return directions.includes('right');\n if (direction === 'right') return directions.includes('left');\n if (direction === 'up') return directions.includes('down');\n return directions.includes('up');\n }\n}\n\nexport const AerisToastModule = [\n AerisToast,\n AerisToastContentTemplate,\n AerisToastIconTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AA6IA,MAAM,qBAAqB,CAAA;AACR,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;AAE1D,IAAA,SAAS,CAAC,IAAwB,EAAA;AAChC,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAK;AAChB,gBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7B,CAAC;SACF;IACH;AAEA,IAAA,IAAI,CAAC,KAAQ,EAAA;QACX,KAAK,MAAM,QAAQ,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YAAE,QAAQ,CAAC,KAAK,CAAC;IAC7D;AACD;MAGY,yBAAyB,CAAA;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAyC,WAAW,CAAC;uGADpE,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,SAAS;mBAAC,EAAE,QAAQ,EAAE,gCAAgC,EAAE;;MAM5C,sBAAsB,CAAA;AACxB,IAAA,QAAQ,GAAG,MAAM,CAAyC,WAAW,CAAC;uGADpE,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,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,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAidhE,MAAM,gBAAgB,GAAG;IAC9B,UAAU;IACV,yBAAyB;IACzB,sBAAsB;;;ACh4BxB;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-toast.mjs","sources":["../../../projects/aeris-ui/toast/aeris-toast.ts","../../../projects/aeris-ui/toast/aeris-ui-core-toast.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n Service,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { aerisInternalCreateFrameScheduler } from '@aeris-ui/core';\n\nexport type AerisToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\nexport type AerisToastSeverity =\n 'primary' | 'secondary' | 'contrast' | 'success' | 'info' | 'warning' | 'error' | 'neutral';\n\nexport type AerisToastMode = 'stacked' | 'expanded';\nexport type AerisToastSwipeDirection = 'up' | 'down' | 'left' | 'right';\nexport type AerisToastCloseReason = 'timeout' | 'close-button' | 'swipe' | 'api' | 'clear';\nexport type AerisToastLive = 'polite' | 'assertive';\nexport type AerisToastRole = 'status' | 'alert';\n\nexport interface AerisToastMessageInput<TData = unknown> {\n readonly id?: string;\n readonly group?: string;\n readonly severity?: AerisToastSeverity;\n readonly summary?: string;\n readonly detail?: string;\n readonly life?: number;\n readonly sticky?: boolean;\n readonly closable?: boolean;\n readonly data?: TData;\n readonly ariaLabel?: string;\n readonly ariaLive?: AerisToastLive;\n readonly role?: AerisToastRole;\n}\n\nexport interface AerisToastMessage<TData = unknown> {\n readonly id: string;\n readonly group: string;\n readonly severity: AerisToastSeverity;\n readonly summary: string;\n readonly detail: string;\n readonly life: number;\n readonly sticky: boolean;\n readonly closable: boolean;\n readonly data: TData | undefined;\n readonly ariaLabel: string;\n readonly ariaLive: AerisToastLive;\n readonly role: AerisToastRole;\n readonly createdAt: number;\n}\n\nexport interface AerisToastCloseEvent<TData = unknown> {\n readonly message: AerisToastMessage<TData>;\n readonly reason: AerisToastCloseReason;\n}\n\nexport interface AerisToastSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisToastSubscribable<T> {\n subscribe(next: (event: T) => void): AerisToastSubscription;\n}\n\nexport interface AerisToastTemplateContext<TData = unknown> {\n readonly $implicit: AerisToastMessage<TData>;\n readonly message: AerisToastMessage<TData>;\n readonly close: () => void;\n}\n\ninterface AerisToastStackItem {\n readonly message: AerisToastMessage;\n readonly stackIndex: number;\n readonly stackIndexValue: string;\n readonly stackSizeValue: string;\n readonly heightValue: string;\n readonly frontHeightValue: string;\n readonly heightOffsetValue: string;\n readonly primary: boolean;\n readonly swipeXValue: string;\n readonly swipeYValue: string;\n readonly swipeDirection: AerisToastSwipeDirection | undefined;\n readonly swiping: boolean;\n readonly swipeDismissing: boolean;\n}\n\ninterface AerisToastSwipeVisual {\n readonly x: number;\n readonly y: number;\n readonly direction: AerisToastSwipeDirection | undefined;\n readonly phase: 'dragging' | 'dismissing';\n}\n\ninterface AerisToastSwipeSession {\n readonly message: AerisToastMessage;\n readonly pointerId: number;\n startX: number;\n startY: number;\n lastX: number;\n lastY: number;\n baselineX: number;\n baselineY: number;\n deltaX: number;\n deltaY: number;\n visualX: number;\n visualY: number;\n firstMove: boolean;\n realSwipe: boolean;\n lockedAxis: 'horizontal' | 'vertical' | null;\n intendedDirection: AerisToastSwipeDirection | undefined;\n maxDisplacement: number;\n cancelled: boolean;\n}\n\ninterface AerisToastTimer {\n readonly message: AerisToastMessage;\n handle: ReturnType<typeof setTimeout> | null;\n startedAt: number;\n remaining: number;\n paused: boolean;\n}\n\nclass AerisToastEventStream<T> implements AerisToastSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n\n subscribe(next: (event: T) => void): AerisToastSubscription {\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n for (const listener of [...this.listeners]) listener(event);\n }\n}\n\n@Directive({ selector: 'ng-template[aerisToastContent]' })\nexport class AerisToastContentTemplate {\n readonly template = inject<TemplateRef<AerisToastTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisToastIcon]' })\nexport class AerisToastIconTemplate {\n readonly template = inject<TemplateRef<AerisToastTemplateContext>>(TemplateRef);\n}\n\nlet nextToastId = 0;\n\n@Service()\nexport class AerisToastService {\n private readonly store = signal<readonly AerisToastMessage[]>([]);\n private readonly timers = new Map<string, AerisToastTimer>();\n private readonly closedStream = new AerisToastEventStream<AerisToastCloseEvent>();\n\n readonly messages = this.store.asReadonly();\n readonly closed: AerisToastSubscribable<AerisToastCloseEvent> = this.closedStream;\n\n show<TData = unknown>(message: AerisToastMessageInput<TData>): AerisToastMessage<TData> {\n const resolved = this.resolveMessage(message);\n this.store.update((messages) => [\n ...messages.filter((item) => item.id !== resolved.id),\n resolved,\n ]);\n this.clearTimer(resolved.id);\n this.schedule(resolved);\n return resolved;\n }\n\n showAll<TData = unknown>(\n messages: readonly AerisToastMessageInput<TData>[],\n ): readonly AerisToastMessage<TData>[] {\n const resolved = messages.map((message) => this.resolveMessage(message));\n const resolvedIds = new Set(resolved.map((message) => message.id));\n\n this.store.update((current) => [\n ...current.filter((message) => !resolvedIds.has(message.id)),\n ...resolved,\n ]);\n\n for (const message of resolved) {\n this.clearTimer(message.id);\n this.schedule(message);\n }\n\n return resolved;\n }\n\n remove(id: string, reason: AerisToastCloseReason = 'api'): void {\n const message = this.store().find((item) => item.id === id);\n if (!message) return;\n\n this.store.update((messages) => messages.filter((item) => item.id !== id));\n this.clearTimer(id);\n this.closedStream.next({ message, reason });\n }\n\n clear(group = ''): void {\n const targets = this.store().filter((message) => message.group === group);\n this.removeMany(targets, 'clear');\n }\n\n clearAll(): void {\n this.removeMany(this.store(), 'clear');\n }\n\n pause(id: string): void {\n const timer = this.timers.get(id);\n if (!timer || timer.paused || !timer.handle) return;\n\n globalThis.clearTimeout(timer.handle);\n timer.handle = null;\n timer.remaining = Math.max(0, timer.remaining - (Date.now() - timer.startedAt));\n timer.paused = true;\n }\n\n resume(id: string): void {\n const timer = this.timers.get(id);\n if (!timer || !timer.paused) return;\n\n timer.paused = false;\n timer.startedAt = Date.now();\n timer.handle = globalThis.setTimeout(() => this.remove(id, 'timeout'), timer.remaining);\n }\n\n private schedule(message: AerisToastMessage): void {\n if (message.sticky || message.life <= 0) return;\n\n this.timers.set(message.id, {\n message,\n handle: globalThis.setTimeout(() => this.remove(message.id, 'timeout'), message.life),\n startedAt: Date.now(),\n remaining: message.life,\n paused: false,\n });\n }\n\n private clearTimer(id: string): void {\n const timer = this.timers.get(id);\n if (timer?.handle) globalThis.clearTimeout(timer.handle);\n this.timers.delete(id);\n }\n\n private removeMany(targets: readonly AerisToastMessage[], reason: AerisToastCloseReason): void {\n if (targets.length === 0) return;\n const targetIds = new Set(targets.map((message) => message.id));\n this.store.update((messages) => messages.filter((message) => !targetIds.has(message.id)));\n\n for (const message of targets) {\n this.clearTimer(message.id);\n this.closedStream.next({ message, reason });\n }\n }\n\n private resolveMessage<TData>(input: AerisToastMessageInput<TData>): AerisToastMessage<TData> {\n const severity = input.severity ?? 'neutral';\n const role =\n input.role ?? (severity === 'error' || severity === 'warning' ? 'alert' : 'status');\n return {\n id: input.id ?? `aeris-toast-${++nextToastId}`,\n group: input.group ?? '',\n severity,\n summary: input.summary ?? '',\n detail: input.detail ?? '',\n life: input.life ?? 5000,\n sticky: input.sticky ?? false,\n closable: input.closable ?? true,\n data: input.data,\n ariaLabel: input.ariaLabel ?? '',\n ariaLive: input.ariaLive ?? (role === 'alert' ? 'assertive' : 'polite'),\n role,\n createdAt: Date.now(),\n };\n }\n}\n\n@Component({\n selector: 'aeris-toast',\n imports: [NgTemplateOutlet],\n template: `\n <section\n class=\"aeris-toast__region\"\n [attr.aria-label]=\"hasVisibleMessages() ? ariaLabel() : null\"\n [attr.data-empty]=\"!hasVisibleMessages() || null\"\n [attr.data-position]=\"position()\"\n [attr.data-mode]=\"mode()\"\n [attr.data-newest-on-top]=\"newestOnTop() || null\"\n [attr.data-overflow]=\"hiddenCount() > 0 || null\"\n [style.--aeris-toast-stack-size]=\"visibleStackSize()\"\n (pointerenter)=\"pauseVisible()\"\n (pointerleave)=\"resumeVisible()\"\n (focusin)=\"pauseVisible()\"\n (focusout)=\"resumeVisible()\"\n >\n @for (item of visibleStack(); track item.message.id) {\n <div\n class=\"aeris-toast__item\"\n [attr.data-stack-index]=\"item.stackIndex\"\n [attr.data-primary]=\"item.primary || null\"\n [attr.data-swiping]=\"item.swiping || null\"\n [attr.data-swipe-direction]=\"item.swipeDirection || null\"\n [attr.data-swipe-dismissing]=\"item.swipeDismissing || null\"\n [style.--aeris-toast-stack-index]=\"item.stackIndexValue\"\n [style.--aeris-toast-stack-size]=\"item.stackSizeValue\"\n [style.--aeris-toast-height]=\"item.heightValue\"\n [style.--aeris-toast-front-height]=\"item.frontHeightValue\"\n [style.--aeris-toast-height-offset]=\"item.heightOffsetValue\"\n [style.--aeris-toast-swipe-x]=\"item.swipeXValue\"\n [style.--aeris-toast-swipe-y]=\"item.swipeYValue\"\n animate.leave=\"aeris-toast__item--leaving\"\n (pointerdown)=\"handlePointerDown($event, item.message)\"\n (pointermove)=\"handlePointerMove($event)\"\n (pointerup)=\"handlePointerEnd($event)\"\n (pointercancel)=\"handlePointerEnd($event)\"\n >\n <article\n class=\"aeris-toast__message\"\n [attr.data-severity]=\"item.message.severity\"\n [attr.data-stack-index]=\"item.stackIndex\"\n [attr.data-primary]=\"item.primary || null\"\n [attr.role]=\"item.message.role\"\n [attr.aria-live]=\"item.message.ariaLive\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"item.message.ariaLabel || null\"\n >\n <div\n #toastMessage\n class=\"aeris-toast__body\"\n [attr.data-behind]=\"!item.primary || null\"\n [attr.data-icon-hidden]=\"!showIcon() || null\"\n [attr.data-has-summary]=\"item.message.summary ? true : null\"\n [attr.data-custom-content]=\"contentTemplate() ? true : null\"\n [attr.data-toast-id]=\"item.message.id\"\n >\n @if (showIcon()) {\n <div class=\"aeris-toast__icon\" aria-hidden=\"true\">\n @if (iconTemplate(); as icon) {\n <ng-container\n [ngTemplateOutlet]=\"icon.template\"\n [ngTemplateOutletContext]=\"templateContexts()[item.message.id]\"\n />\n } @else {\n <span class=\"aeris-toast__default-icon\"></span>\n }\n </div>\n }\n\n <div class=\"aeris-toast__content\">\n @if (contentTemplate(); as content) {\n <ng-container\n [ngTemplateOutlet]=\"content.template\"\n [ngTemplateOutletContext]=\"templateContexts()[item.message.id]\"\n />\n } @else {\n @if (item.message.summary) {\n <p class=\"aeris-toast__summary\">{{ item.message.summary }}</p>\n }\n @if (item.message.detail) {\n <p class=\"aeris-toast__detail\">{{ item.message.detail }}</p>\n }\n }\n </div>\n\n @if (item.message.closable && showClose()) {\n <button\n type=\"button\"\n class=\"aeris-toast__close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close(item.message)\"\n >\n <span aria-hidden=\"true\"></span>\n </button>\n }\n </div>\n </article>\n </div>\n }\n\n @if (hiddenCount() > 0) {\n <span\n class=\"aeris-toast__overflow\"\n aria-hidden=\"true\"\n animate.enter=\"aeris-toast__overflow--entering\"\n animate.leave=\"aeris-toast__overflow--leaving\"\n >\n +{{ hiddenCount() }}\n </span>\n }\n </section>\n `,\n styleUrl: './aeris-toast.scss',\n host: {\n class: 'aeris-toast',\n '[attr.data-position]': 'position()',\n },\n})\nexport class AerisToast {\n private static readonly fallbackHeight = 72;\n private static readonly swipeRemovalDelay = 550;\n private static readonly reverseCancelThreshold = 10;\n private static readonly minimumDragThreshold = 1;\n private readonly toastService = inject(AerisToastService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly messageElements = viewChildren<ElementRef<HTMLElement>>('toastMessage');\n private readonly measuredHeights = signal<Readonly<Record<string, number>>>({});\n private readonly swipeVisuals = signal<Readonly<Record<string, AerisToastSwipeVisual>>>({});\n private readonly swipeCleanupTimers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly pendingSwipeRemovals = new Map<string, () => void>();\n private readonly measureFrame = aerisInternalCreateFrameScheduler(() => this.measureMessages());\n private readonly swipeFrame = aerisInternalCreateFrameScheduler(() => this.flushSwipeVisual());\n private swipeSession: AerisToastSwipeSession | null = null;\n protected readonly contentTemplate = contentChild(AerisToastContentTemplate);\n protected readonly iconTemplate = contentChild(AerisToastIconTemplate);\n\n readonly position = input<AerisToastPosition>('bottom-right');\n readonly group = input('');\n readonly mode = input<AerisToastMode>('stacked');\n readonly visibleCount = input(4, { transform: numberAttribute });\n readonly limit = input<number | undefined>(undefined, { transform: numberAttribute });\n readonly newestOnTop = input(true, { transform: booleanAttribute });\n readonly pauseOnHover = input(true, { transform: booleanAttribute });\n readonly showIcon = input(true, { transform: booleanAttribute });\n readonly showClose = input(true, { transform: booleanAttribute });\n readonly swipeDirection = input<AerisToastSwipeDirection | readonly AerisToastSwipeDirection[]>([\n 'down',\n 'right',\n ]);\n readonly swipeThreshold = input(40, { transform: numberAttribute });\n readonly ariaLabel = input('Notifications');\n readonly closeAriaLabel = input('Close notification');\n\n readonly closed = output<AerisToastCloseEvent>();\n private readonly stackHovered = signal(false);\n private readonly resolvedSwipeDirections = computed<readonly AerisToastSwipeDirection[]>(() => {\n const value = this.swipeDirection();\n const directions = Array.isArray(value) ? value : [value];\n return [...new Set(directions)].filter(\n (direction): direction is AerisToastSwipeDirection =>\n direction === 'up' || direction === 'down' || direction === 'left' || direction === 'right',\n );\n });\n private readonly resolvedSwipeThreshold = computed(() => {\n const threshold = this.swipeThreshold();\n return Number.isFinite(threshold) && threshold >= 0 ? threshold : 40;\n });\n\n protected readonly orderedMessages = computed(() => {\n const group = this.group();\n const filtered = this.toastService.messages().filter((message) => message.group === group);\n return this.newestOnTop() ? [...filtered].reverse() : filtered;\n });\n\n protected readonly effectiveVisibleCount = computed(() => {\n const limit = this.limit();\n const visibleCount = this.visibleCount();\n const count =\n typeof limit === 'number' && Number.isFinite(limit)\n ? limit\n : typeof visibleCount === 'number' && Number.isFinite(visibleCount)\n ? visibleCount\n : 4;\n return Number.isFinite(count) && count > 0 ? Math.floor(count) : 4;\n });\n\n protected readonly visibleMessages = computed(() =>\n this.orderedMessages().slice(0, this.effectiveVisibleCount()),\n );\n\n protected readonly hiddenCount = computed(() =>\n Math.max(0, this.orderedMessages().length - this.visibleMessages().length),\n );\n\n protected readonly visibleStackSize = computed(() => `${this.visibleMessages().length}`);\n protected readonly hasVisibleMessages = computed(() => this.visibleMessages().length > 0);\n\n protected readonly visibleStack = computed<readonly AerisToastStackItem[]>(() => {\n const messages = this.visibleMessages();\n const heights = this.measuredHeights();\n const swipeVisuals = this.swipeVisuals();\n const frontHeight = messages[0]\n ? (heights[messages[0].id] ?? AerisToast.fallbackHeight)\n : AerisToast.fallbackHeight;\n let heightOffset = 0;\n\n return messages.map((message, stackIndex) => {\n const height = heights[message.id] ?? AerisToast.fallbackHeight;\n const swipe = swipeVisuals[message.id];\n const item = {\n message,\n stackIndex,\n stackIndexValue: `${stackIndex}`,\n stackSizeValue: `${messages.length}`,\n heightValue: `${height}px`,\n frontHeightValue: `${frontHeight}px`,\n heightOffsetValue: `${heightOffset}px`,\n primary: stackIndex === 0,\n swipeXValue: `${swipe?.x ?? 0}px`,\n swipeYValue: `${swipe?.y ?? 0}px`,\n swipeDirection: swipe?.direction,\n swiping: swipe?.phase === 'dragging',\n swipeDismissing: swipe?.phase === 'dismissing',\n };\n heightOffset += height;\n return item;\n });\n });\n\n protected readonly templateContexts = computed(() => {\n const contexts: Record<string, AerisToastTemplateContext> = {};\n for (const message of this.visibleMessages()) {\n contexts[message.id] = {\n $implicit: message,\n message,\n close: () => this.close(message),\n };\n }\n return contexts;\n });\n\n constructor() {\n effect((onCleanup) => {\n const elements = this.messageElements().map((element) => element.nativeElement);\n this.measureFrame.schedule();\n\n if (typeof globalThis.ResizeObserver !== 'function') return;\n const observer = new ResizeObserver(() => this.measureFrame.schedule());\n for (const element of elements) observer.observe(element);\n onCleanup(() => {\n observer.disconnect();\n this.measureFrame.cancel();\n });\n });\n\n effect((onCleanup) => {\n const group = this.group();\n const subscription = this.toastService.closed.subscribe((event) => {\n if (event.message.group !== group) return;\n this.closed.emit(event);\n });\n onCleanup(() => subscription.unsubscribe());\n });\n\n effect(() => {\n const visibleIds = new Set(this.visibleMessages().map((message) => message.id));\n const gestureIds = new Set(Object.keys(this.swipeVisuals()));\n const pauseVisible = this.stackHovered() && this.pauseOnHover();\n\n for (const message of this.orderedMessages()) {\n if (visibleIds.has(message.id) && !pauseVisible && !gestureIds.has(message.id)) {\n this.toastService.resume(message.id);\n } else {\n this.toastService.pause(message.id);\n }\n }\n });\n\n this.destroyRef.onDestroy(() => {\n this.measureFrame.cancel();\n this.swipeFrame.cancel();\n for (const cancel of this.pendingSwipeRemovals.values()) cancel();\n for (const timer of this.swipeCleanupTimers.values()) globalThis.clearTimeout(timer);\n this.pendingSwipeRemovals.clear();\n this.swipeCleanupTimers.clear();\n this.swipeSession = null;\n });\n }\n\n protected close(message: AerisToastMessage): void {\n this.toastService.remove(message.id, 'close-button');\n }\n\n protected pauseVisible(): void {\n this.stackHovered.set(true);\n if (!this.pauseOnHover()) return;\n for (const message of this.visibleMessages()) this.toastService.pause(message.id);\n }\n\n protected resumeVisible(): void {\n this.stackHovered.set(false);\n if (!this.pauseOnHover()) return;\n const gestureIds = new Set(Object.keys(this.swipeVisuals()));\n for (const message of this.visibleMessages()) {\n if (!gestureIds.has(message.id)) this.toastService.resume(message.id);\n }\n }\n\n protected handlePointerDown(event: PointerEvent, message: AerisToastMessage): void {\n if (this.resolvedSwipeDirections().length === 0 || this.swipeSession) return;\n if (event.pointerType === 'mouse' && event.button !== 0) return;\n\n const target = event.target as Element | null;\n if (\n target?.closest(\n 'button,a,input,textarea,select,[role=\"button\"],[data-aeris-toast-swipe-ignore]',\n )\n ) {\n return;\n }\n\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.toastService.pause(message.id);\n this.swipeSession = {\n message,\n pointerId: event.pointerId,\n startX: event.clientX,\n startY: event.clientY,\n lastX: event.clientX,\n lastY: event.clientY,\n baselineX: event.clientX,\n baselineY: event.clientY,\n deltaX: 0,\n deltaY: 0,\n visualX: 0,\n visualY: 0,\n firstMove: true,\n realSwipe: false,\n lockedAxis: null,\n intendedDirection: undefined,\n maxDisplacement: 0,\n cancelled: false,\n };\n this.setSwipeVisual(message.id, {\n x: 0,\n y: 0,\n direction: undefined,\n phase: 'dragging',\n });\n }\n\n protected handlePointerMove(event: PointerEvent): void {\n const session = this.swipeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n event.preventDefault();\n this.updateSwipeSession(session, event.clientX, event.clientY);\n this.swipeFrame.schedule();\n }\n\n protected handlePointerEnd(event: PointerEvent): void {\n const session = this.swipeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n\n const target = event.currentTarget as HTMLElement;\n if (target.hasPointerCapture?.(event.pointerId)) target.releasePointerCapture(event.pointerId);\n\n this.swipeFrame.cancel();\n if (!session.firstMove) this.updateSwipeSession(session, event.clientX, event.clientY);\n this.flushSwipeVisual();\n\n const dismissDirection =\n event.type === 'pointercancel' || session.cancelled\n ? undefined\n : this.resolvedSwipeDirections().find(\n (direction) =>\n this.swipeDisplacement(direction, session.deltaX, session.deltaY) >\n this.resolvedSwipeThreshold(),\n );\n\n this.swipeSession = null;\n if (dismissDirection) {\n this.setSwipeVisual(session.message.id, {\n x: session.visualX,\n y: session.visualY,\n direction: dismissDirection,\n phase: 'dismissing',\n });\n this.scheduleSwipeRemoval(session.message);\n return;\n }\n\n this.removeSwipeVisual(session.message.id);\n if (!(this.stackHovered() && this.pauseOnHover())) {\n this.toastService.resume(session.message.id);\n }\n }\n\n private measureMessages(): void {\n const measurements: Record<string, number> = {};\n\n for (const reference of this.messageElements()) {\n const element = reference.nativeElement;\n const id = element.dataset['toastId'];\n if (!id) continue;\n\n const contentHeight = Math.max(element.scrollHeight, element.getBoundingClientRect().height);\n if (contentHeight > 0) measurements[id] = Math.ceil(contentHeight + 2);\n }\n\n this.measuredHeights.update((current) => {\n const ids = Object.keys(measurements);\n const unchanged =\n ids.length === Object.keys(current).length &&\n ids.every((id) => current[id] === measurements[id]);\n return unchanged ? current : measurements;\n });\n }\n\n private updateSwipeSession(\n session: AerisToastSwipeSession,\n clientX: number,\n clientY: number,\n ): void {\n if (session.firstMove) {\n session.startX = clientX;\n session.startY = clientY;\n session.lastX = clientX;\n session.lastY = clientY;\n session.baselineX = clientX;\n session.baselineY = clientY;\n session.firstMove = false;\n return;\n }\n\n const movementX = clientX - session.lastX;\n const movementY = clientY - session.lastY;\n session.lastX = clientX;\n session.lastY = clientY;\n\n if (\n (movementY < 0 && clientY > session.baselineY) ||\n (movementY > 0 && clientY < session.baselineY)\n ) {\n session.baselineY = clientY;\n }\n if (\n (movementX < 0 && clientX > session.baselineX) ||\n (movementX > 0 && clientX < session.baselineX)\n ) {\n session.baselineX = clientX;\n }\n\n const deltaX = clientX - session.startX;\n const deltaY = clientY - session.startY;\n session.deltaX = deltaX;\n session.deltaY = deltaY;\n\n const directions = this.resolvedSwipeDirections();\n const hasHorizontal = directions.includes('left') || directions.includes('right');\n const hasVertical = directions.includes('up') || directions.includes('down');\n\n if (!session.realSwipe) {\n const distance = Math.hypot(deltaX, deltaY);\n if (distance >= AerisToast.minimumDragThreshold) {\n session.realSwipe = true;\n if (hasHorizontal && hasVertical) {\n session.lockedAxis = Math.abs(deltaX) > Math.abs(deltaY) ? 'horizontal' : 'vertical';\n }\n }\n }\n\n if (!session.intendedDirection) {\n const candidate = this.swipeCandidate(session.lockedAxis, deltaX, deltaY);\n if (candidate && directions.includes(candidate)) {\n session.intendedDirection = candidate;\n session.maxDisplacement = this.swipeDisplacement(candidate, deltaX, deltaY);\n }\n } else {\n const cancelDeltaX = clientX - session.baselineX;\n const cancelDeltaY = clientY - session.baselineY;\n const currentDisplacement = this.swipeDisplacement(\n session.intendedDirection,\n cancelDeltaX,\n cancelDeltaY,\n );\n const displacement = this.swipeDisplacement(session.intendedDirection, deltaX, deltaY);\n session.maxDisplacement = Math.max(session.maxDisplacement, displacement);\n\n if (currentDisplacement > this.resolvedSwipeThreshold()) {\n session.cancelled = false;\n } else if (\n !this.hasOppositeSwipeDirection(session.intendedDirection, directions) &&\n session.maxDisplacement - currentDisplacement >= AerisToast.reverseCancelThreshold\n ) {\n session.cancelled = true;\n }\n }\n\n const dampedX = this.dampedSwipeDelta(deltaX, 'left', 'right', directions);\n const dampedY = this.dampedSwipeDelta(deltaY, 'up', 'down', directions);\n session.visualX = session.lockedAxis !== 'vertical' && hasHorizontal ? dampedX : 0;\n session.visualY = session.lockedAxis !== 'horizontal' && hasVertical ? dampedY : 0;\n }\n\n private flushSwipeVisual(): void {\n const session = this.swipeSession;\n if (!session) return;\n this.setSwipeVisual(session.message.id, {\n x: session.visualX,\n y: session.visualY,\n direction: session.cancelled ? undefined : session.intendedDirection,\n phase: 'dragging',\n });\n }\n\n private setSwipeVisual(id: string, visual: AerisToastSwipeVisual): void {\n this.swipeVisuals.update((current) => ({ ...current, [id]: visual }));\n }\n\n private removeSwipeVisual(id: string): void {\n this.swipeVisuals.update((current) => {\n if (!(id in current)) return current;\n const next = { ...current };\n delete next[id];\n return next;\n });\n }\n\n private scheduleSwipeRemoval(message: AerisToastMessage): void {\n this.pendingSwipeRemovals.get(message.id)?.();\n\n const remove = (): void => {\n this.pendingSwipeRemovals.delete(message.id);\n this.toastService.remove(message.id, 'swipe');\n const cleanup = globalThis.setTimeout(() => {\n this.swipeCleanupTimers.delete(message.id);\n this.removeSwipeVisual(message.id);\n }, AerisToast.swipeRemovalDelay);\n this.swipeCleanupTimers.set(message.id, cleanup);\n };\n\n if (typeof globalThis.requestAnimationFrame === 'function') {\n const frame = globalThis.requestAnimationFrame(remove);\n this.pendingSwipeRemovals.set(message.id, () => globalThis.cancelAnimationFrame?.(frame));\n } else {\n const timer = globalThis.setTimeout(remove, 0);\n this.pendingSwipeRemovals.set(message.id, () => globalThis.clearTimeout(timer));\n }\n }\n\n private swipeCandidate(\n lockedAxis: 'horizontal' | 'vertical' | null,\n deltaX: number,\n deltaY: number,\n ): AerisToastSwipeDirection | undefined {\n if (lockedAxis === 'vertical') return deltaY > 0 ? 'down' : deltaY < 0 ? 'up' : undefined;\n if (lockedAxis === 'horizontal') {\n return deltaX > 0 ? 'right' : deltaX < 0 ? 'left' : undefined;\n }\n if (Math.abs(deltaX) >= Math.abs(deltaY)) {\n return deltaX > 0 ? 'right' : deltaX < 0 ? 'left' : undefined;\n }\n return deltaY > 0 ? 'down' : deltaY < 0 ? 'up' : undefined;\n }\n\n private swipeDisplacement(\n direction: AerisToastSwipeDirection,\n deltaX: number,\n deltaY: number,\n ): number {\n if (direction === 'right') return deltaX;\n if (direction === 'left') return -deltaX;\n if (direction === 'down') return deltaY;\n return -deltaY;\n }\n\n private dampedSwipeDelta(\n delta: number,\n negativeDirection: AerisToastSwipeDirection,\n positiveDirection: AerisToastSwipeDirection,\n directions: readonly AerisToastSwipeDirection[],\n ): number {\n const unsupported =\n (delta > 0 && !directions.includes(positiveDirection)) ||\n (delta < 0 && !directions.includes(negativeDirection));\n if (!unsupported) return delta;\n return Math.sign(delta) * Math.sqrt(Math.abs(delta));\n }\n\n private hasOppositeSwipeDirection(\n direction: AerisToastSwipeDirection,\n directions: readonly AerisToastSwipeDirection[],\n ): boolean {\n if (direction === 'left') return directions.includes('right');\n if (direction === 'right') return directions.includes('left');\n if (direction === 'up') return directions.includes('down');\n return directions.includes('up');\n }\n}\n\nexport const AerisToastModule = [\n AerisToast,\n AerisToastContentTemplate,\n AerisToastIconTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AA6IA,MAAM,qBAAqB,CAAA;AACR,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;AAE1D,IAAA,SAAS,CAAC,IAAwB,EAAA;AAChC,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAK;AAChB,gBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7B,CAAC;SACF;IACH;AAEA,IAAA,IAAI,CAAC,KAAQ,EAAA;QACX,KAAK,MAAM,QAAQ,IAAI,C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