@aeris-ui/core 22.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +189 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-badge.mjs +163 -0
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button.mjs +246 -0
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-card.mjs +134 -0
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chart.mjs +296 -0
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chip.mjs +200 -0
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +508 -0
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-divider.mjs +51 -0
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-glass.mjs +35 -0
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menu.mjs +796 -0
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-message.mjs +225 -0
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-panel.mjs +352 -0
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-password.mjs +479 -0
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-popover.mjs +535 -0
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-rating.mjs +385 -0
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1134 -0
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-slider.mjs +724 -0
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-table.mjs +1580 -0
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theming.mjs +150 -0
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toast.mjs +422 -0
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree.mjs +962 -0
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
- package/fesm2022/aeris-ui-core.mjs +360 -0
- package/fesm2022/aeris-ui-core.mjs.map +1 -0
- package/package.json +432 -0
- package/schematics/aeris-setup.schema.json +52 -0
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/schema.json +64 -0
- package/schematics/runtime/package.json +3 -0
- package/schematics/runtime/schematics/ng-add/index.js +13 -0
- package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/options.js +338 -0
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/schema.js +3 -0
- package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color.js +263 -0
- package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
- package/schematics/runtime/theme-builder/public-api.js +17 -0
- package/schematics/runtime/theme-builder/public-api.js.map +1 -0
- package/styles/_index.scss +1 -0
- package/styles/_tokens.scss +13 -0
- package/styles/aeris.css +555 -0
- package/styles/controls.css +169 -0
- package/tools/aeris-theme.mjs +149 -0
- package/tools/aeris-theme.schema.json +143 -0
- package/types/aeris-ui-core-accordion.d.ts +101 -0
- package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
- package/types/aeris-ui-core-auto-complete.d.ts +154 -0
- package/types/aeris-ui-core-auto-focus.d.ts +17 -0
- package/types/aeris-ui-core-avatar.d.ts +44 -0
- package/types/aeris-ui-core-badge.d.ts +48 -0
- package/types/aeris-ui-core-block-ui.d.ts +28 -0
- package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
- package/types/aeris-ui-core-button-group.d.ts +17 -0
- package/types/aeris-ui-core-button.d.ts +71 -0
- package/types/aeris-ui-core-card.d.ts +43 -0
- package/types/aeris-ui-core-carousel.d.ts +126 -0
- package/types/aeris-ui-core-cascade-select.d.ts +130 -0
- package/types/aeris-ui-core-chart.d.ts +92 -0
- package/types/aeris-ui-core-checkbox.d.ts +55 -0
- package/types/aeris-ui-core-chip.d.ts +56 -0
- package/types/aeris-ui-core-class-names.d.ts +21 -0
- package/types/aeris-ui-core-color-picker.d.ts +149 -0
- package/types/aeris-ui-core-compare.d.ts +109 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
- package/types/aeris-ui-core-context-menu.d.ts +156 -0
- package/types/aeris-ui-core-date-picker.d.ts +226 -0
- package/types/aeris-ui-core-dialog.d.ts +124 -0
- package/types/aeris-ui-core-divider.d.ts +21 -0
- package/types/aeris-ui-core-drawer.d.ts +119 -0
- package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
- package/types/aeris-ui-core-editor.d.ts +130 -0
- package/types/aeris-ui-core-file-upload.d.ts +199 -0
- package/types/aeris-ui-core-filter-service.d.ts +54 -0
- package/types/aeris-ui-core-fluid.d.ts +10 -0
- package/types/aeris-ui-core-focus-trap.d.ts +32 -0
- package/types/aeris-ui-core-galleria.d.ts +273 -0
- package/types/aeris-ui-core-glass.d.ts +17 -0
- package/types/aeris-ui-core-icon-field.d.ts +36 -0
- package/types/aeris-ui-core-inplace.d.ts +68 -0
- package/types/aeris-ui-core-input-group.d.ts +38 -0
- package/types/aeris-ui-core-input-mask.d.ts +73 -0
- package/types/aeris-ui-core-input-number.d.ts +87 -0
- package/types/aeris-ui-core-input-otp.d.ts +88 -0
- package/types/aeris-ui-core-input-text.d.ts +63 -0
- package/types/aeris-ui-core-key-filter.d.ts +41 -0
- package/types/aeris-ui-core-mega-menu.d.ts +130 -0
- package/types/aeris-ui-core-menu.d.ts +182 -0
- package/types/aeris-ui-core-menubar.d.ts +145 -0
- package/types/aeris-ui-core-message.d.ts +65 -0
- package/types/aeris-ui-core-meter-group.d.ts +100 -0
- package/types/aeris-ui-core-multi-select.d.ts +193 -0
- package/types/aeris-ui-core-order-list.d.ts +73 -0
- package/types/aeris-ui-core-organization-chart.d.ts +85 -0
- package/types/aeris-ui-core-paginator.d.ts +39 -0
- package/types/aeris-ui-core-panel.d.ts +85 -0
- package/types/aeris-ui-core-password.d.ts +110 -0
- package/types/aeris-ui-core-pick-list.d.ts +193 -0
- package/types/aeris-ui-core-popover.d.ts +112 -0
- package/types/aeris-ui-core-progress-bar.d.ts +81 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
- package/types/aeris-ui-core-radio-button.d.ts +51 -0
- package/types/aeris-ui-core-rating.d.ts +80 -0
- package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
- package/types/aeris-ui-core-scroll-top.d.ts +29 -0
- package/types/aeris-ui-core-select.d.ts +223 -0
- package/types/aeris-ui-core-skeleton.d.ts +18 -0
- package/types/aeris-ui-core-slider.d.ts +117 -0
- package/types/aeris-ui-core-speed-dial.d.ts +119 -0
- package/types/aeris-ui-core-split-button.d.ts +122 -0
- package/types/aeris-ui-core-splitter.d.ts +113 -0
- package/types/aeris-ui-core-stepper.d.ts +99 -0
- package/types/aeris-ui-core-style-class.d.ts +73 -0
- package/types/aeris-ui-core-table.d.ts +333 -0
- package/types/aeris-ui-core-tabs.d.ts +82 -0
- package/types/aeris-ui-core-textarea.d.ts +80 -0
- package/types/aeris-ui-core-theme-builder.d.ts +499 -0
- package/types/aeris-ui-core-theming.d.ts +47 -0
- package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
- package/types/aeris-ui-core-timeline.d.ts +80 -0
- package/types/aeris-ui-core-toast.d.ts +127 -0
- package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
- package/types/aeris-ui-core-toolbar.d.ts +47 -0
- package/types/aeris-ui-core-tooltip.d.ts +92 -0
- package/types/aeris-ui-core-tree-select.d.ts +187 -0
- package/types/aeris-ui-core-tree-table.d.ts +311 -0
- package/types/aeris-ui-core-tree.d.ts +179 -0
- package/types/aeris-ui-core.d.ts +85 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, signal, Service, contentChild, input, numberAttribute, booleanAttribute, output, computed, effect, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AerisToastEventStream {
|
|
6
|
+
listeners = new Set();
|
|
7
|
+
subscribe(next) {
|
|
8
|
+
this.listeners.add(next);
|
|
9
|
+
return {
|
|
10
|
+
unsubscribe: () => {
|
|
11
|
+
this.listeners.delete(next);
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
next(event) {
|
|
16
|
+
for (const listener of [...this.listeners])
|
|
17
|
+
listener(event);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class AerisToastContentTemplate {
|
|
21
|
+
template = inject(TemplateRef);
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToastContentTemplate, isStandalone: true, selector: "ng-template[aerisToastContent]", ngImport: i0 });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastContentTemplate, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{ selector: 'ng-template[aerisToastContent]' }]
|
|
28
|
+
}] });
|
|
29
|
+
class AerisToastIconTemplate {
|
|
30
|
+
template = inject(TemplateRef);
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastIconTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToastIconTemplate, isStandalone: true, selector: "ng-template[aerisToastIcon]", ngImport: i0 });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastIconTemplate, decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{ selector: 'ng-template[aerisToastIcon]' }]
|
|
37
|
+
}] });
|
|
38
|
+
let nextToastId = 0;
|
|
39
|
+
class AerisToastService {
|
|
40
|
+
store = signal([], /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []));
|
|
42
|
+
timers = new Map();
|
|
43
|
+
closedStream = new AerisToastEventStream();
|
|
44
|
+
messages = this.store.asReadonly();
|
|
45
|
+
closed = this.closedStream;
|
|
46
|
+
show(message) {
|
|
47
|
+
const resolved = this.resolveMessage(message);
|
|
48
|
+
this.store.update((messages) => [...messages.filter((item) => item.id !== resolved.id), resolved]);
|
|
49
|
+
this.clearTimer(resolved.id);
|
|
50
|
+
this.schedule(resolved);
|
|
51
|
+
return resolved;
|
|
52
|
+
}
|
|
53
|
+
showAll(messages) {
|
|
54
|
+
return messages.map((message) => this.show(message));
|
|
55
|
+
}
|
|
56
|
+
remove(id, reason = 'api') {
|
|
57
|
+
const message = this.store().find((item) => item.id === id);
|
|
58
|
+
if (!message)
|
|
59
|
+
return;
|
|
60
|
+
this.store.update((messages) => messages.filter((item) => item.id !== id));
|
|
61
|
+
this.clearTimer(id);
|
|
62
|
+
this.closedStream.next({ message, reason });
|
|
63
|
+
}
|
|
64
|
+
clear(group = '') {
|
|
65
|
+
const targets = this.store().filter((message) => message.group === group);
|
|
66
|
+
for (const message of targets)
|
|
67
|
+
this.remove(message.id, 'clear');
|
|
68
|
+
}
|
|
69
|
+
clearAll() {
|
|
70
|
+
const targets = this.store();
|
|
71
|
+
for (const message of targets)
|
|
72
|
+
this.remove(message.id, 'clear');
|
|
73
|
+
}
|
|
74
|
+
pause(id) {
|
|
75
|
+
const timer = this.timers.get(id);
|
|
76
|
+
if (!timer || timer.paused || !timer.handle)
|
|
77
|
+
return;
|
|
78
|
+
globalThis.clearTimeout(timer.handle);
|
|
79
|
+
timer.handle = null;
|
|
80
|
+
timer.remaining = Math.max(0, timer.remaining - (Date.now() - timer.startedAt));
|
|
81
|
+
timer.paused = true;
|
|
82
|
+
}
|
|
83
|
+
resume(id) {
|
|
84
|
+
const timer = this.timers.get(id);
|
|
85
|
+
if (!timer || !timer.paused)
|
|
86
|
+
return;
|
|
87
|
+
timer.paused = false;
|
|
88
|
+
timer.startedAt = Date.now();
|
|
89
|
+
timer.handle = globalThis.setTimeout(() => this.remove(id, 'timeout'), timer.remaining);
|
|
90
|
+
}
|
|
91
|
+
schedule(message) {
|
|
92
|
+
if (message.sticky || message.life <= 0)
|
|
93
|
+
return;
|
|
94
|
+
this.timers.set(message.id, {
|
|
95
|
+
message,
|
|
96
|
+
handle: globalThis.setTimeout(() => this.remove(message.id, 'timeout'), message.life),
|
|
97
|
+
startedAt: Date.now(),
|
|
98
|
+
remaining: message.life,
|
|
99
|
+
paused: false,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
clearTimer(id) {
|
|
103
|
+
const timer = this.timers.get(id);
|
|
104
|
+
if (timer?.handle)
|
|
105
|
+
globalThis.clearTimeout(timer.handle);
|
|
106
|
+
this.timers.delete(id);
|
|
107
|
+
}
|
|
108
|
+
resolveMessage(input) {
|
|
109
|
+
const severity = input.severity ?? 'info';
|
|
110
|
+
const role = input.role ?? (severity === 'error' || severity === 'warning' ? 'alert' : 'status');
|
|
111
|
+
return {
|
|
112
|
+
id: input.id ?? `aeris-toast-${++nextToastId}`,
|
|
113
|
+
group: input.group ?? '',
|
|
114
|
+
severity,
|
|
115
|
+
summary: input.summary ?? '',
|
|
116
|
+
detail: input.detail ?? '',
|
|
117
|
+
life: input.life ?? 5000,
|
|
118
|
+
sticky: input.sticky ?? false,
|
|
119
|
+
closable: input.closable ?? true,
|
|
120
|
+
data: input.data,
|
|
121
|
+
ariaLabel: input.ariaLabel ?? '',
|
|
122
|
+
ariaLive: input.ariaLive ?? (role === 'alert' ? 'assertive' : 'polite'),
|
|
123
|
+
role,
|
|
124
|
+
createdAt: Date.now(),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
128
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService });
|
|
129
|
+
}
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToastService, decorators: [{
|
|
131
|
+
type: Service
|
|
132
|
+
}] });
|
|
133
|
+
class AerisToast {
|
|
134
|
+
toastService = inject(AerisToastService);
|
|
135
|
+
contentTemplate = contentChild(AerisToastContentTemplate, /* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
137
|
+
iconTemplate = contentChild(AerisToastIconTemplate, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []));
|
|
139
|
+
position = input('top-right', /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
141
|
+
group = input('', /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
143
|
+
mode = input('stacked', /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
145
|
+
visibleCount = input(4, { ...(ngDevMode ? { debugName: "visibleCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
146
|
+
limit = input(undefined, { ...(ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
147
|
+
newestOnTop = input(true, { ...(ngDevMode ? { debugName: "newestOnTop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
148
|
+
pauseOnHover = input(true, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
149
|
+
showClose = input(true, { ...(ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
150
|
+
ariaLabel = input('Notifications', /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
152
|
+
closeAriaLabel = input('Close notification', /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
154
|
+
closed = output();
|
|
155
|
+
stackHovered = signal(false, /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "stackHovered" }] : /* istanbul ignore next */ []));
|
|
157
|
+
orderedMessages = computed(() => {
|
|
158
|
+
const group = this.group();
|
|
159
|
+
const filtered = this.toastService.messages().filter((message) => message.group === group);
|
|
160
|
+
return this.newestOnTop() ? [...filtered].reverse() : filtered;
|
|
161
|
+
}, /* @ts-ignore */
|
|
162
|
+
...(ngDevMode ? [{ debugName: "orderedMessages" }] : /* istanbul ignore next */ []));
|
|
163
|
+
effectiveVisibleCount = computed(() => {
|
|
164
|
+
const limit = this.limit();
|
|
165
|
+
const visibleCount = this.visibleCount();
|
|
166
|
+
const count = typeof limit === 'number' && Number.isFinite(limit)
|
|
167
|
+
? limit
|
|
168
|
+
: typeof visibleCount === 'number' && Number.isFinite(visibleCount)
|
|
169
|
+
? visibleCount
|
|
170
|
+
: 4;
|
|
171
|
+
return Number.isFinite(count) && count > 0 ? Math.floor(count) : 4;
|
|
172
|
+
}, /* @ts-ignore */
|
|
173
|
+
...(ngDevMode ? [{ debugName: "effectiveVisibleCount" }] : /* istanbul ignore next */ []));
|
|
174
|
+
visibleMessages = computed(() => this.orderedMessages().slice(0, this.effectiveVisibleCount()), /* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [{ debugName: "visibleMessages" }] : /* istanbul ignore next */ []));
|
|
176
|
+
hiddenCount = computed(() => Math.max(0, this.orderedMessages().length - this.visibleMessages().length), /* @ts-ignore */
|
|
177
|
+
...(ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []));
|
|
178
|
+
visibleStackSize = computed(() => `${this.visibleMessages().length}`, /* @ts-ignore */
|
|
179
|
+
...(ngDevMode ? [{ debugName: "visibleStackSize" }] : /* istanbul ignore next */ []));
|
|
180
|
+
visibleStack = computed(() => {
|
|
181
|
+
const messages = this.visibleMessages();
|
|
182
|
+
return messages.map((message, stackIndex) => ({
|
|
183
|
+
message,
|
|
184
|
+
stackIndex,
|
|
185
|
+
stackIndexValue: `${stackIndex}`,
|
|
186
|
+
stackSizeValue: `${messages.length}`,
|
|
187
|
+
stackOpacityValue: `${Math.max(0.64, 1 - stackIndex * 0.12)}`,
|
|
188
|
+
stackScaleValue: `${Math.max(0.9, 1 - stackIndex * 0.025)}`,
|
|
189
|
+
stackOffsetValue: `${stackIndex * 0.08}rem`,
|
|
190
|
+
stackOffsetInverseValue: `${stackIndex * -0.08}rem`,
|
|
191
|
+
primary: stackIndex === 0,
|
|
192
|
+
}));
|
|
193
|
+
}, /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "visibleStack" }] : /* istanbul ignore next */ []));
|
|
195
|
+
templateContexts = computed(() => {
|
|
196
|
+
const contexts = {};
|
|
197
|
+
for (const message of this.visibleMessages()) {
|
|
198
|
+
contexts[message.id] = {
|
|
199
|
+
$implicit: message,
|
|
200
|
+
message,
|
|
201
|
+
close: () => this.close(message),
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
return contexts;
|
|
205
|
+
}, /* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [{ debugName: "templateContexts" }] : /* istanbul ignore next */ []));
|
|
207
|
+
constructor() {
|
|
208
|
+
effect((onCleanup) => {
|
|
209
|
+
const group = this.group();
|
|
210
|
+
const subscription = this.toastService.closed.subscribe((event) => {
|
|
211
|
+
if (event.message.group !== group)
|
|
212
|
+
return;
|
|
213
|
+
this.closed.emit(event);
|
|
214
|
+
});
|
|
215
|
+
onCleanup(() => subscription.unsubscribe());
|
|
216
|
+
});
|
|
217
|
+
effect(() => {
|
|
218
|
+
const visibleIds = new Set(this.visibleMessages().map((message) => message.id));
|
|
219
|
+
const pauseVisible = this.stackHovered() && this.pauseOnHover();
|
|
220
|
+
for (const message of this.orderedMessages()) {
|
|
221
|
+
if (visibleIds.has(message.id) && !pauseVisible) {
|
|
222
|
+
this.toastService.resume(message.id);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
this.toastService.pause(message.id);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
close(message) {
|
|
231
|
+
this.toastService.remove(message.id, 'close-button');
|
|
232
|
+
}
|
|
233
|
+
pauseVisible() {
|
|
234
|
+
this.stackHovered.set(true);
|
|
235
|
+
if (!this.pauseOnHover())
|
|
236
|
+
return;
|
|
237
|
+
for (const message of this.visibleMessages())
|
|
238
|
+
this.toastService.pause(message.id);
|
|
239
|
+
}
|
|
240
|
+
resumeVisible() {
|
|
241
|
+
this.stackHovered.set(false);
|
|
242
|
+
if (!this.pauseOnHover())
|
|
243
|
+
return;
|
|
244
|
+
for (const message of this.visibleMessages())
|
|
245
|
+
this.toastService.resume(message.id);
|
|
246
|
+
}
|
|
247
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
248
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisToast, isStandalone: true, selector: "aeris-toast", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, visibleCount: { classPropertyName: "visibleCount", publicName: "visibleCount", isSignal: true, isRequired: false, transformFunction: null }, limit: { classPropertyName: "limit", publicName: "limit", isSignal: true, isRequired: false, transformFunction: null }, newestOnTop: { classPropertyName: "newestOnTop", publicName: "newestOnTop", isSignal: true, isRequired: false, transformFunction: null }, pauseOnHover: { classPropertyName: "pauseOnHover", publicName: "pauseOnHover", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.data-position": "position()" }, classAttribute: "aeris-toast" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: AerisToastContentTemplate, descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: AerisToastIconTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
249
|
+
@if (visibleStack().length > 0) {
|
|
250
|
+
<section
|
|
251
|
+
class="aeris-toast__region"
|
|
252
|
+
[attr.aria-label]="ariaLabel()"
|
|
253
|
+
[attr.data-position]="position()"
|
|
254
|
+
[attr.data-mode]="mode()"
|
|
255
|
+
[attr.data-newest-on-top]="newestOnTop() || null"
|
|
256
|
+
[attr.data-overflow]="hiddenCount() > 0 || null"
|
|
257
|
+
[style.--aeris-toast-stack-size]="visibleStackSize()"
|
|
258
|
+
(pointerenter)="pauseVisible()"
|
|
259
|
+
(pointerleave)="resumeVisible()"
|
|
260
|
+
(focusin)="pauseVisible()"
|
|
261
|
+
(focusout)="resumeVisible()"
|
|
262
|
+
>
|
|
263
|
+
@for (item of visibleStack(); track item.message.id) {
|
|
264
|
+
<article
|
|
265
|
+
class="aeris-toast__message"
|
|
266
|
+
[attr.data-severity]="item.message.severity"
|
|
267
|
+
[attr.data-stack-index]="item.stackIndex"
|
|
268
|
+
[attr.data-primary]="item.primary || null"
|
|
269
|
+
[attr.role]="item.message.role"
|
|
270
|
+
[attr.aria-live]="item.message.ariaLive"
|
|
271
|
+
aria-atomic="true"
|
|
272
|
+
[attr.aria-label]="item.message.ariaLabel || null"
|
|
273
|
+
[style.--aeris-toast-stack-index]="item.stackIndexValue"
|
|
274
|
+
[style.--aeris-toast-stack-size]="item.stackSizeValue"
|
|
275
|
+
[style.--aeris-toast-stack-opacity]="item.stackOpacityValue"
|
|
276
|
+
[style.--aeris-toast-stack-scale]="item.stackScaleValue"
|
|
277
|
+
[style.--aeris-toast-stack-offset]="item.stackOffsetValue"
|
|
278
|
+
[style.--aeris-toast-stack-offset-inverse]="item.stackOffsetInverseValue"
|
|
279
|
+
>
|
|
280
|
+
<div class="aeris-toast__icon" aria-hidden="true">
|
|
281
|
+
@if (iconTemplate(); as icon) {
|
|
282
|
+
<ng-container
|
|
283
|
+
[ngTemplateOutlet]="icon.template"
|
|
284
|
+
[ngTemplateOutletContext]="templateContexts()[item.message.id]"
|
|
285
|
+
/>
|
|
286
|
+
} @else {
|
|
287
|
+
<span class="aeris-toast__default-icon"></span>
|
|
288
|
+
}
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
<div class="aeris-toast__content">
|
|
292
|
+
@if (contentTemplate(); as content) {
|
|
293
|
+
<ng-container
|
|
294
|
+
[ngTemplateOutlet]="content.template"
|
|
295
|
+
[ngTemplateOutletContext]="templateContexts()[item.message.id]"
|
|
296
|
+
/>
|
|
297
|
+
} @else {
|
|
298
|
+
@if (item.message.summary) {
|
|
299
|
+
<p class="aeris-toast__summary">{{ item.message.summary }}</p>
|
|
300
|
+
}
|
|
301
|
+
@if (item.message.detail) {
|
|
302
|
+
<p class="aeris-toast__detail">{{ item.message.detail }}</p>
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
@if (item.message.closable && showClose()) {
|
|
308
|
+
<button
|
|
309
|
+
type="button"
|
|
310
|
+
class="aeris-toast__close"
|
|
311
|
+
[attr.aria-label]="closeAriaLabel()"
|
|
312
|
+
(click)="close(item.message)"
|
|
313
|
+
>
|
|
314
|
+
<span aria-hidden="true"></span>
|
|
315
|
+
</button>
|
|
316
|
+
}
|
|
317
|
+
</article>
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@if (hiddenCount() > 0) {
|
|
321
|
+
<span class="aeris-toast__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
|
|
322
|
+
}
|
|
323
|
+
</section>
|
|
324
|
+
}
|
|
325
|
+
`, isInline: true, styles: [":host{display:contents}.aeris-toast__region{position:fixed;z-index:var(--aeris-z-toast, 1200);width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);display:flex;flex-direction:column;pointer-events:auto}.aeris-toast__region[data-position^=top]{top:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position^=bottom]{bottom:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=left]{left:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=right]{right:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:50%;transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:50%;transform:translate(-50%,-50%)}.aeris-toast__region[data-position^=bottom]{flex-direction:column-reverse}.aeris-toast__region[data-mode=expanded],.aeris-toast__region[data-mode=stacked]:hover,.aeris-toast__region[data-mode=stacked]:focus-within{gap:var(--aeris-toast-gap, .75rem)}.aeris-toast__region[data-mode=stacked]{--_stack-peek: var(--aeris-toast-stack-peek, .55rem);--_stack-card-height: var(--aeris-toast-stack-card-height, 2.75rem)}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]){max-height:var(--_stack-card-height);margin-top:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);overflow:hidden;opacity:var(--aeris-toast-stack-opacity, .88);transform:translateY(var(--aeris-toast-stack-offset, .08rem)) scale(var(--aeris-toast-stack-scale, .975));pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__icon,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__content,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__close{opacity:0;transition:opacity .12s ease}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-mode=expanded] .aeris-toast__message{max-height:var(--aeris-toast-expanded-message-max-height, 18rem);margin-top:0;opacity:1;transform:none;pointer-events:auto}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__close{opacity:1}.aeris-toast__region[data-position^=bottom][data-mode=stacked] .aeris-toast__message:not([data-primary]){margin-top:0;margin-bottom:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);transform:translateY(var(--aeris-toast-stack-offset-inverse, -.08rem)) scale(var(--aeris-toast-stack-scale, .975))}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__message{margin-bottom:0;transform:none}.aeris-toast__message{--_accent: var(--aeris-primary, #879566);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));max-height:var(--aeris-toast-expanded-message-max-height, 18rem);min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;border:1px solid var(--aeris-border, #deddd7);border-left:.25rem solid var(--_accent);border-radius:var(--aeris-radius-md, .75rem);background:linear-gradient(90deg,var(--_accent-soft),transparent 32%),color-mix(in srgb,var(--aeris-surface, #fff) 96%,transparent);color:var(--aeris-text, #222222);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));pointer-events:auto;transition:max-height .21s cubic-bezier(.2,0,0,1),margin .16s ease,opacity .16s ease,transform .21s cubic-bezier(.2,0,0,1),box-shadow .16s ease,border-color .16s ease}.aeris-toast__message:hover,.aeris-toast__message:focus-within{border-color:color-mix(in srgb,var(--_accent) 28%,var(--aeris-border, #deddd7));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #222222) 10%,transparent)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=error]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral],.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{position:relative;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:block;border:2px solid currentColor;border-radius:999px}.aeris-toast__default-icon:before,.aeris-toast__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-toast__default-icon:before{width:.125rem;height:.4375rem;top:.5rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__default-icon:after{width:.15625rem;height:.15625rem;top:.25rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{border-color:transparent}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:before{width:.625rem;height:.3125rem;top:.375rem;left:.3125rem;border:0 solid currentColor;border-left-width:2px;border-bottom-width:2px;border-radius:0;background:transparent;transform:rotate(-45deg)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:after{display:none}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before,.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{width:.6875rem;height:.125rem;top:50%;left:50%;border-radius:999px}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--aeris-text, #222222);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--aeris-text-2, #555555);font-size:.8125rem;line-height:1.5}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-sm, .5rem);background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-toast__close:hover{background:color-mix(in srgb,var(--aeris-text, #222222) 8%,transparent);color:var(--aeris-text, #222222)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{z-index:calc(var(--aeris-toast-stack-size, 1) + 1);align-self:center;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;margin-top:.35rem;padding:0 .35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 1px 2px rgba(31, 35, 27, .06));font-size:.6875rem;font-weight:800;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{margin-top:0;margin-bottom:.35rem}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-mode=expanded] .aeris-toast__overflow{margin-top:0;opacity:.8}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__overflow{margin-bottom:0}@media(max-width:36rem){.aeris-toast__region{width:calc(100vw - 1rem)}.aeris-toast__region[data-position]{right:.5rem;left:.5rem;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:.5rem}.aeris-toast__region[data-position^=bottom]{bottom:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-toast__message,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
326
|
+
}
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToast, decorators: [{
|
|
328
|
+
type: Component,
|
|
329
|
+
args: [{ selector: 'aeris-toast', imports: [NgTemplateOutlet], template: `
|
|
330
|
+
@if (visibleStack().length > 0) {
|
|
331
|
+
<section
|
|
332
|
+
class="aeris-toast__region"
|
|
333
|
+
[attr.aria-label]="ariaLabel()"
|
|
334
|
+
[attr.data-position]="position()"
|
|
335
|
+
[attr.data-mode]="mode()"
|
|
336
|
+
[attr.data-newest-on-top]="newestOnTop() || null"
|
|
337
|
+
[attr.data-overflow]="hiddenCount() > 0 || null"
|
|
338
|
+
[style.--aeris-toast-stack-size]="visibleStackSize()"
|
|
339
|
+
(pointerenter)="pauseVisible()"
|
|
340
|
+
(pointerleave)="resumeVisible()"
|
|
341
|
+
(focusin)="pauseVisible()"
|
|
342
|
+
(focusout)="resumeVisible()"
|
|
343
|
+
>
|
|
344
|
+
@for (item of visibleStack(); track item.message.id) {
|
|
345
|
+
<article
|
|
346
|
+
class="aeris-toast__message"
|
|
347
|
+
[attr.data-severity]="item.message.severity"
|
|
348
|
+
[attr.data-stack-index]="item.stackIndex"
|
|
349
|
+
[attr.data-primary]="item.primary || null"
|
|
350
|
+
[attr.role]="item.message.role"
|
|
351
|
+
[attr.aria-live]="item.message.ariaLive"
|
|
352
|
+
aria-atomic="true"
|
|
353
|
+
[attr.aria-label]="item.message.ariaLabel || null"
|
|
354
|
+
[style.--aeris-toast-stack-index]="item.stackIndexValue"
|
|
355
|
+
[style.--aeris-toast-stack-size]="item.stackSizeValue"
|
|
356
|
+
[style.--aeris-toast-stack-opacity]="item.stackOpacityValue"
|
|
357
|
+
[style.--aeris-toast-stack-scale]="item.stackScaleValue"
|
|
358
|
+
[style.--aeris-toast-stack-offset]="item.stackOffsetValue"
|
|
359
|
+
[style.--aeris-toast-stack-offset-inverse]="item.stackOffsetInverseValue"
|
|
360
|
+
>
|
|
361
|
+
<div class="aeris-toast__icon" aria-hidden="true">
|
|
362
|
+
@if (iconTemplate(); as icon) {
|
|
363
|
+
<ng-container
|
|
364
|
+
[ngTemplateOutlet]="icon.template"
|
|
365
|
+
[ngTemplateOutletContext]="templateContexts()[item.message.id]"
|
|
366
|
+
/>
|
|
367
|
+
} @else {
|
|
368
|
+
<span class="aeris-toast__default-icon"></span>
|
|
369
|
+
}
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
<div class="aeris-toast__content">
|
|
373
|
+
@if (contentTemplate(); as content) {
|
|
374
|
+
<ng-container
|
|
375
|
+
[ngTemplateOutlet]="content.template"
|
|
376
|
+
[ngTemplateOutletContext]="templateContexts()[item.message.id]"
|
|
377
|
+
/>
|
|
378
|
+
} @else {
|
|
379
|
+
@if (item.message.summary) {
|
|
380
|
+
<p class="aeris-toast__summary">{{ item.message.summary }}</p>
|
|
381
|
+
}
|
|
382
|
+
@if (item.message.detail) {
|
|
383
|
+
<p class="aeris-toast__detail">{{ item.message.detail }}</p>
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
@if (item.message.closable && showClose()) {
|
|
389
|
+
<button
|
|
390
|
+
type="button"
|
|
391
|
+
class="aeris-toast__close"
|
|
392
|
+
[attr.aria-label]="closeAriaLabel()"
|
|
393
|
+
(click)="close(item.message)"
|
|
394
|
+
>
|
|
395
|
+
<span aria-hidden="true"></span>
|
|
396
|
+
</button>
|
|
397
|
+
}
|
|
398
|
+
</article>
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@if (hiddenCount() > 0) {
|
|
402
|
+
<span class="aeris-toast__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
|
|
403
|
+
}
|
|
404
|
+
</section>
|
|
405
|
+
}
|
|
406
|
+
`, host: {
|
|
407
|
+
class: 'aeris-toast',
|
|
408
|
+
'[attr.data-position]': 'position()',
|
|
409
|
+
}, styles: [":host{display:contents}.aeris-toast__region{position:fixed;z-index:var(--aeris-z-toast, 1200);width:min(var(--aeris-toast-width, 24rem),100vw - 2rem);display:flex;flex-direction:column;pointer-events:auto}.aeris-toast__region[data-position^=top]{top:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position^=bottom]{bottom:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=left]{left:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=right]{right:var(--aeris-toast-offset, 1rem)}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:50%;transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:50%;transform:translate(-50%,-50%)}.aeris-toast__region[data-position^=bottom]{flex-direction:column-reverse}.aeris-toast__region[data-mode=expanded],.aeris-toast__region[data-mode=stacked]:hover,.aeris-toast__region[data-mode=stacked]:focus-within{gap:var(--aeris-toast-gap, .75rem)}.aeris-toast__region[data-mode=stacked]{--_stack-peek: var(--aeris-toast-stack-peek, .55rem);--_stack-card-height: var(--aeris-toast-stack-card-height, 2.75rem)}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]){max-height:var(--_stack-card-height);margin-top:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);overflow:hidden;opacity:var(--aeris-toast-stack-opacity, .88);transform:translateY(var(--aeris-toast-stack-offset, .08rem)) scale(var(--aeris-toast-stack-scale, .975));pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__icon,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__content,.aeris-toast__region[data-mode=stacked] .aeris-toast__message:not([data-primary]) .aeris-toast__close{opacity:0;transition:opacity .12s ease}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-mode=expanded] .aeris-toast__message{max-height:var(--aeris-toast-expanded-message-max-height, 18rem);margin-top:0;opacity:1;transform:none;pointer-events:auto}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__message .aeris-toast__close,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__icon,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__content,.aeris-toast__region[data-mode=expanded] .aeris-toast__message .aeris-toast__close{opacity:1}.aeris-toast__region[data-position^=bottom][data-mode=stacked] .aeris-toast__message:not([data-primary]){margin-top:0;margin-bottom:calc((var(--_stack-card-height) - var(--_stack-peek)) * -1);transform:translateY(var(--aeris-toast-stack-offset-inverse, -.08rem)) scale(var(--aeris-toast-stack-scale, .975))}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__message,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__message{margin-bottom:0;transform:none}.aeris-toast__message{--_accent: var(--aeris-primary, #879566);--_accent-soft: color-mix(in srgb, var(--_accent) 14%, transparent);--_icon-color: var(--_accent);position:relative;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));max-height:var(--aeris-toast-expanded-message-max-height, 18rem);min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;border:1px solid var(--aeris-border, #deddd7);border-left:.25rem solid var(--_accent);border-radius:var(--aeris-radius-md, .75rem);background:linear-gradient(90deg,var(--_accent-soft),transparent 32%),color-mix(in srgb,var(--aeris-surface, #fff) 96%,transparent);color:var(--aeris-text, #222222);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));pointer-events:auto;transition:max-height .21s cubic-bezier(.2,0,0,1),margin .16s ease,opacity .16s ease,transform .21s cubic-bezier(.2,0,0,1),box-shadow .16s ease,border-color .16s ease}.aeris-toast__message:hover,.aeris-toast__message:focus-within{border-color:color-mix(in srgb,var(--_accent) 28%,var(--aeris-border, #deddd7));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #222222) 10%,transparent)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=error]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral],.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-text-2, #555555)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #222222)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{position:relative;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:block;border:2px solid currentColor;border-radius:999px}.aeris-toast__default-icon:before,.aeris-toast__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-toast__default-icon:before{width:.125rem;height:.4375rem;top:.5rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__default-icon:after{width:.15625rem;height:.15625rem;top:.25rem;left:50%;border-radius:999px;transform:translate(-50%)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{border-color:transparent}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:before{width:.625rem;height:.3125rem;top:.375rem;left:.3125rem;border:0 solid currentColor;border-left-width:2px;border-bottom-width:2px;border-radius:0;background:transparent;transform:rotate(-45deg)}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon:after{display:none}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before,.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{width:.6875rem;height:.125rem;top:50%;left:50%;border-radius:999px}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}.aeris-toast__message[data-severity=error] .aeris-toast__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--aeris-text, #222222);font-size:.875rem;font-weight:800;line-height:1.35}.aeris-toast__detail{color:var(--aeris-text-2, #555555);font-size:.8125rem;line-height:1.5}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-sm, .5rem);background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-toast__close:hover{background:color-mix(in srgb,var(--aeris-text, #222222) 8%,transparent);color:var(--aeris-text, #222222)}.aeris-toast__close:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:2px}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{z-index:calc(var(--aeris-toast-stack-size, 1) + 1);align-self:center;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;margin-top:.35rem;padding:0 .35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 1px 2px rgba(31, 35, 27, .06));font-size:.6875rem;font-weight:800;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{margin-top:0;margin-bottom:.35rem}.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-mode=expanded] .aeris-toast__overflow{margin-top:0;opacity:.8}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__overflow,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__overflow{margin-bottom:0}@media(max-width:36rem){.aeris-toast__region{width:calc(100vw - 1rem)}.aeris-toast__region[data-position]{right:.5rem;left:.5rem;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:.5rem}.aeris-toast__region[data-position^=bottom]{bottom:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-toast__message,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"] }]
|
|
410
|
+
}], ctorParameters: () => [], propDecorators: { contentTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisToastContentTemplate), { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisToastIconTemplate), { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], visibleCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleCount", required: false }] }], limit: [{ type: i0.Input, args: [{ isSignal: true, alias: "limit", required: false }] }], newestOnTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "newestOnTop", required: false }] }], pauseOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseOnHover", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
411
|
+
const AerisToastModule = [
|
|
412
|
+
AerisToast,
|
|
413
|
+
AerisToastContentTemplate,
|
|
414
|
+
AerisToastIconTemplate,
|
|
415
|
+
];
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Generated bundle index. Do not edit.
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
export { AerisToast, AerisToastContentTemplate, AerisToastIconTemplate, AerisToastModule, AerisToastService };
|
|
422
|
+
//# sourceMappingURL=aeris-ui-core-toast.mjs.map
|
|
@@ -0,0 +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 Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n Service,\n signal,\n} from '@angular/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'\n | 'success'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'secondary'\n | 'contrast';\n\nexport type AerisToastMode = 'stacked' | 'expanded';\nexport type AerisToastCloseReason = 'timeout' | 'close-button' | '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 stackOpacityValue: string;\n readonly stackScaleValue: string;\n readonly stackOffsetValue: string;\n readonly stackOffsetInverseValue: string;\n readonly primary: 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) => [...messages.filter((item) => item.id !== resolved.id), resolved]);\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 return messages.map((message) => this.show(message));\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 for (const message of targets) this.remove(message.id, 'clear');\n }\n\n clearAll(): void {\n const targets = this.store();\n for (const message of targets) this.remove(message.id, '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 resolveMessage<TData>(input: AerisToastMessageInput<TData>): AerisToastMessage<TData> {\n const severity = input.severity ?? 'info';\n const role = 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 @if (visibleStack().length > 0) {\n <section\n class=\"aeris-toast__region\"\n [attr.aria-label]=\"ariaLabel()\"\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 <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 [style.--aeris-toast-stack-index]=\"item.stackIndexValue\"\n [style.--aeris-toast-stack-size]=\"item.stackSizeValue\"\n [style.--aeris-toast-stack-opacity]=\"item.stackOpacityValue\"\n [style.--aeris-toast-stack-scale]=\"item.stackScaleValue\"\n [style.--aeris-toast-stack-offset]=\"item.stackOffsetValue\"\n [style.--aeris-toast-stack-offset-inverse]=\"item.stackOffsetInverseValue\"\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 </article>\n }\n\n @if (hiddenCount() > 0) {\n <span class=\"aeris-toast__overflow\" aria-hidden=\"true\">+{{ hiddenCount() }}</span>\n }\n </section>\n }\n `,\n styleUrl: './aeris-toast.scss',\n host: {\n class: 'aeris-toast',\n '[attr.data-position]': 'position()',\n },\n})\nexport class AerisToast {\n private readonly toastService = inject(AerisToastService);\n protected readonly contentTemplate = contentChild(AerisToastContentTemplate);\n protected readonly iconTemplate = contentChild(AerisToastIconTemplate);\n\n readonly position = input<AerisToastPosition>('top-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 ariaLabel = input('Notifications');\n readonly closeAriaLabel = input('Close notification');\n\n readonly closed = output<AerisToastCloseEvent>();\n private readonly stackHovered = signal(false);\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\n protected readonly visibleStack = computed<readonly AerisToastStackItem[]>(() => {\n const messages = this.visibleMessages();\n return messages.map((message, stackIndex) => ({\n message,\n stackIndex,\n stackIndexValue: `${stackIndex}`,\n stackSizeValue: `${messages.length}`,\n stackOpacityValue: `${Math.max(0.64, 1 - stackIndex * 0.12)}`,\n stackScaleValue: `${Math.max(0.9, 1 - stackIndex * 0.025)}`,\n stackOffsetValue: `${stackIndex * 0.08}rem`,\n stackOffsetInverseValue: `${stackIndex * -0.08}rem`,\n primary: stackIndex === 0,\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 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 pauseVisible = this.stackHovered() && this.pauseOnHover();\n\n for (const message of this.orderedMessages()) {\n if (visibleIds.has(message.id) && !pauseVisible) {\n this.toastService.resume(message.id);\n } else {\n this.toastService.pause(message.id);\n }\n }\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 for (const message of this.visibleMessages()) this.toastService.resume(message.id);\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":";;;;AA8GA,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,yBA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