@aeris-ui/core 22.0.0-alpha.11 → 22.0.0-alpha.13
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/README.md +3 -3
- package/fesm2022/aeris-ui-core-accordion.mjs +14 -14
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +21 -20
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
- package/fesm2022/aeris-ui-core-button-forms.mjs +3 -3
- package/fesm2022/aeris-ui-core-button-group.mjs +6 -6
- package/fesm2022/aeris-ui-core-button.mjs +9 -9
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
- package/fesm2022/aeris-ui-core-cascade-select.mjs +17 -14
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +3 -3
- package/fesm2022/aeris-ui-core-checkbox.mjs +3 -3
- package/fesm2022/aeris-ui-core-chip.mjs +12 -12
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +3 -3
- package/fesm2022/aeris-ui-core-color-picker.mjs +6 -4
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +18 -18
- package/fesm2022/aeris-ui-core-compare.mjs +12 -12
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +53 -26
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +54 -27
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +7 -7
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs} +4 -4
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map} +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +528 -151
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +16 -16
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +16 -16
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +27 -14
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +5 -5
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +35 -35
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
- package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-otp.mjs +19 -8
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
- package/fesm2022/aeris-ui-core-kbd.mjs +9 -9
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-listbox.mjs +15 -15
- package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
- package/fesm2022/aeris-ui-core-menu.mjs +16 -16
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +12 -12
- package/fesm2022/aeris-ui-core-message.mjs +9 -9
- package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-multi-select.mjs +36 -24
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +25 -25
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-organization-chart.mjs +117 -50
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +7 -5
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +15 -15
- package/fesm2022/aeris-ui-core-password.mjs +13 -13
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-popover.mjs +16 -16
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
- package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
- package/fesm2022/aeris-ui-core-rating.mjs +15 -5
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
- package/fesm2022/aeris-ui-core-select-native.mjs +3 -3
- package/fesm2022/aeris-ui-core-select.mjs +41 -39
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +24 -24
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +23 -12
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
- package/fesm2022/aeris-ui-core-split-button.mjs +7 -7
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
- package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +21 -21
- package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
- package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +3 -3
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +7 -7
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
- package/fesm2022/aeris-ui-core-toast.mjs +69 -46
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +30 -30
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +37 -26
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +18 -18
- package/fesm2022/aeris-ui-core-tree.mjs +12 -12
- package/fesm2022/aeris-ui-core.mjs +40 -17
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/aeris-ui-core-code-block.d.ts +0 -4
- package/types/aeris-ui-core-confirm-dialog.d.ts +2 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +2 -0
- package/types/aeris-ui-core-date-picker.d.ts +5 -44
- package/types/aeris-ui-core-drawer.d.ts +0 -6
- package/types/aeris-ui-core-dynamic-dialog.d.ts +1 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -2
- package/types/aeris-ui-core-toast.d.ts +4 -2
- package/types/aeris-ui-core-tree-select.d.ts +1 -0
- package/types/aeris-ui-core.d.ts +4 -3
|
@@ -4,21 +4,31 @@ import { Component, DestroyRef, Directive, Service, TemplateRef, booleanAttribut
|
|
|
4
4
|
import { aerisInternalCreateFrameScheduler, aerisInternalObserveViewport, ɵAerisIcon } from "@aeris-ui/core";
|
|
5
5
|
var AerisToastEventStream = class {
|
|
6
6
|
listeners = /* @__PURE__ */ new Set();
|
|
7
|
+
completed = false;
|
|
7
8
|
subscribe(next) {
|
|
9
|
+
if (this.completed) return { unsubscribe: () => void 0 };
|
|
8
10
|
this.listeners.add(next);
|
|
9
11
|
return { unsubscribe: () => {
|
|
10
12
|
this.listeners.delete(next);
|
|
11
13
|
} };
|
|
12
14
|
}
|
|
13
15
|
next(event) {
|
|
14
|
-
|
|
16
|
+
if (this.completed) return;
|
|
17
|
+
for (const listener of [...this.listeners]) {
|
|
18
|
+
if (this.completed) break;
|
|
19
|
+
listener(event);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
complete() {
|
|
23
|
+
this.completed = true;
|
|
24
|
+
this.listeners.clear();
|
|
15
25
|
}
|
|
16
26
|
};
|
|
17
27
|
var AerisToastContentTemplate = class AerisToastContentTemplate {
|
|
18
28
|
template = inject(TemplateRef);
|
|
19
29
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
30
|
minVersion: "12.0.0",
|
|
21
|
-
version: "22.2.
|
|
31
|
+
version: "22.2.4",
|
|
22
32
|
ngImport: i0,
|
|
23
33
|
type: AerisToastContentTemplate,
|
|
24
34
|
deps: [],
|
|
@@ -26,7 +36,7 @@ var AerisToastContentTemplate = class AerisToastContentTemplate {
|
|
|
26
36
|
});
|
|
27
37
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
38
|
minVersion: "14.0.0",
|
|
29
|
-
version: "22.2.
|
|
39
|
+
version: "22.2.4",
|
|
30
40
|
type: AerisToastContentTemplate,
|
|
31
41
|
isStandalone: true,
|
|
32
42
|
selector: "ng-template[aerisToastContent]",
|
|
@@ -35,7 +45,7 @@ var AerisToastContentTemplate = class AerisToastContentTemplate {
|
|
|
35
45
|
};
|
|
36
46
|
i0.ɵɵngDeclareClassMetadata({
|
|
37
47
|
minVersion: "12.0.0",
|
|
38
|
-
version: "22.2.
|
|
48
|
+
version: "22.2.4",
|
|
39
49
|
ngImport: i0,
|
|
40
50
|
type: AerisToastContentTemplate,
|
|
41
51
|
decorators: [{
|
|
@@ -47,7 +57,7 @@ var AerisToastIconTemplate = class AerisToastIconTemplate {
|
|
|
47
57
|
template = inject(TemplateRef);
|
|
48
58
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
49
59
|
minVersion: "12.0.0",
|
|
50
|
-
version: "22.2.
|
|
60
|
+
version: "22.2.4",
|
|
51
61
|
ngImport: i0,
|
|
52
62
|
type: AerisToastIconTemplate,
|
|
53
63
|
deps: [],
|
|
@@ -55,7 +65,7 @@ var AerisToastIconTemplate = class AerisToastIconTemplate {
|
|
|
55
65
|
});
|
|
56
66
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
57
67
|
minVersion: "14.0.0",
|
|
58
|
-
version: "22.2.
|
|
68
|
+
version: "22.2.4",
|
|
59
69
|
type: AerisToastIconTemplate,
|
|
60
70
|
isStandalone: true,
|
|
61
71
|
selector: "ng-template[aerisToastIcon]",
|
|
@@ -64,7 +74,7 @@ var AerisToastIconTemplate = class AerisToastIconTemplate {
|
|
|
64
74
|
};
|
|
65
75
|
i0.ɵɵngDeclareClassMetadata({
|
|
66
76
|
minVersion: "12.0.0",
|
|
67
|
-
version: "22.2.
|
|
77
|
+
version: "22.2.4",
|
|
68
78
|
ngImport: i0,
|
|
69
79
|
type: AerisToastIconTemplate,
|
|
70
80
|
decorators: [{
|
|
@@ -74,22 +84,38 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
74
84
|
});
|
|
75
85
|
let nextToastId = 0;
|
|
76
86
|
var AerisToastService = class AerisToastService {
|
|
87
|
+
destroyRef = inject(DestroyRef);
|
|
77
88
|
store = signal([], ...ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []);
|
|
78
89
|
timers = /* @__PURE__ */ new Map();
|
|
79
90
|
closedStream = new AerisToastEventStream();
|
|
80
91
|
messages = this.store.asReadonly();
|
|
81
92
|
closed = this.closedStream;
|
|
93
|
+
constructor() {
|
|
94
|
+
this.destroyRef.onDestroy(() => {
|
|
95
|
+
for (const id of this.timers.keys()) this.clearTimer(id);
|
|
96
|
+
this.closedStream.complete();
|
|
97
|
+
this.store.set([]);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
82
100
|
show(message) {
|
|
83
101
|
const resolved = this.resolveMessage(message);
|
|
102
|
+
if (this.destroyRef.destroyed) return resolved;
|
|
84
103
|
this.store.update((messages) => [...messages.filter((item) => item.id !== resolved.id), resolved]);
|
|
85
104
|
this.clearTimer(resolved.id);
|
|
86
105
|
this.schedule(resolved);
|
|
87
106
|
return resolved;
|
|
88
107
|
}
|
|
89
108
|
showAll(messages) {
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
|
|
109
|
+
const batch = /* @__PURE__ */ new Map();
|
|
110
|
+
for (const message of messages) {
|
|
111
|
+
const resolved = this.resolveMessage(message);
|
|
112
|
+
batch.delete(resolved.id);
|
|
113
|
+
batch.set(resolved.id, resolved);
|
|
114
|
+
}
|
|
115
|
+
const resolved = [...batch.values()];
|
|
116
|
+
if (this.destroyRef.destroyed) return resolved;
|
|
117
|
+
if (!resolved.length) return resolved;
|
|
118
|
+
this.store.update((current) => [...current.filter((message) => !batch.has(message.id)), ...resolved]);
|
|
93
119
|
for (const message of resolved) {
|
|
94
120
|
this.clearTimer(message.id);
|
|
95
121
|
this.schedule(message);
|
|
@@ -129,7 +155,7 @@ var AerisToastService = class AerisToastService {
|
|
|
129
155
|
timer.handle = globalThis.setTimeout(() => this.remove(id, "timeout"), timer.remaining);
|
|
130
156
|
}
|
|
131
157
|
schedule(message) {
|
|
132
|
-
if (message.sticky || message.life <= 0) return;
|
|
158
|
+
if (this.destroyRef.destroyed || message.sticky || message.life <= 0) return;
|
|
133
159
|
this.timers.set(message.id, {
|
|
134
160
|
message,
|
|
135
161
|
handle: globalThis.setTimeout(() => this.remove(message.id, "timeout"), message.life),
|
|
@@ -176,7 +202,7 @@ var AerisToastService = class AerisToastService {
|
|
|
176
202
|
}
|
|
177
203
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
178
204
|
minVersion: "12.0.0",
|
|
179
|
-
version: "22.2.
|
|
205
|
+
version: "22.2.4",
|
|
180
206
|
ngImport: i0,
|
|
181
207
|
type: AerisToastService,
|
|
182
208
|
deps: [],
|
|
@@ -184,17 +210,18 @@ var AerisToastService = class AerisToastService {
|
|
|
184
210
|
});
|
|
185
211
|
static ɵprov = i0.ɵɵngDeclareService({
|
|
186
212
|
minVersion: "22.0.0",
|
|
187
|
-
version: "22.2.
|
|
213
|
+
version: "22.2.4",
|
|
188
214
|
ngImport: i0,
|
|
189
215
|
type: AerisToastService
|
|
190
216
|
});
|
|
191
217
|
};
|
|
192
218
|
i0.ɵɵngDeclareClassMetadata({
|
|
193
219
|
minVersion: "12.0.0",
|
|
194
|
-
version: "22.2.
|
|
220
|
+
version: "22.2.4",
|
|
195
221
|
ngImport: i0,
|
|
196
222
|
type: AerisToastService,
|
|
197
|
-
decorators: [{ type: Service }]
|
|
223
|
+
decorators: [{ type: Service }],
|
|
224
|
+
ctorParameters: () => []
|
|
198
225
|
});
|
|
199
226
|
var AerisToast = class AerisToast {
|
|
200
227
|
closeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
@@ -202,7 +229,7 @@ var AerisToast = class AerisToast {
|
|
|
202
229
|
static fallbackHeight = 72;
|
|
203
230
|
static swipeRemovalDelay = 550;
|
|
204
231
|
static reverseCancelThreshold = 10;
|
|
205
|
-
static minimumDragThreshold =
|
|
232
|
+
static minimumDragThreshold = 8;
|
|
206
233
|
toastService = inject(AerisToastService);
|
|
207
234
|
destroyRef = inject(DestroyRef);
|
|
208
235
|
messageElements = viewChildren("toastMessage", ...ngDevMode ? [{ debugName: "messageElements" }] : /* istanbul ignore next */ []);
|
|
@@ -368,12 +395,14 @@ var AerisToast = class AerisToast {
|
|
|
368
395
|
close(message) {
|
|
369
396
|
this.toastService.remove(message.id, "close-button");
|
|
370
397
|
}
|
|
371
|
-
pauseVisible() {
|
|
398
|
+
pauseVisible(event) {
|
|
399
|
+
if (event?.pointerType === "touch") return;
|
|
372
400
|
this.stackHovered.set(true);
|
|
373
401
|
if (!this.pauseOnHover()) return;
|
|
374
402
|
for (const message of this.visibleMessages()) this.toastService.pause(message.id);
|
|
375
403
|
}
|
|
376
|
-
resumeVisible() {
|
|
404
|
+
resumeVisible(event) {
|
|
405
|
+
if (event?.pointerType === "touch") return;
|
|
377
406
|
this.stackHovered.set(false);
|
|
378
407
|
if (!this.pauseOnHover() || this.touchExpanded()) return;
|
|
379
408
|
const gestureIds = new Set(Object.keys(this.swipeVisuals()));
|
|
@@ -402,7 +431,6 @@ var AerisToast = class AerisToast {
|
|
|
402
431
|
deltaY: 0,
|
|
403
432
|
visualX: 0,
|
|
404
433
|
visualY: 0,
|
|
405
|
-
firstMove: true,
|
|
406
434
|
realSwipe: false,
|
|
407
435
|
lockedAxis: null,
|
|
408
436
|
intendedDirection: void 0,
|
|
@@ -413,7 +441,7 @@ var AerisToast = class AerisToast {
|
|
|
413
441
|
x: 0,
|
|
414
442
|
y: 0,
|
|
415
443
|
direction: void 0,
|
|
416
|
-
phase: "
|
|
444
|
+
phase: "pending"
|
|
417
445
|
});
|
|
418
446
|
}
|
|
419
447
|
handlePointerMove(event) {
|
|
@@ -423,19 +451,21 @@ var AerisToast = class AerisToast {
|
|
|
423
451
|
if (this.resolvedSwipeDirections().length === 0) return;
|
|
424
452
|
event.preventDefault();
|
|
425
453
|
this.updateSwipeSession(session, event.clientX, event.clientY);
|
|
426
|
-
this.swipeFrame.schedule();
|
|
454
|
+
if (session.realSwipe) this.swipeFrame.schedule();
|
|
427
455
|
}
|
|
428
456
|
handlePointerEnd(event) {
|
|
429
457
|
const session = this.swipeSession;
|
|
430
458
|
if (!session || event.pointerId !== session.pointerId) return;
|
|
431
459
|
this.trackTapMovement(session, event);
|
|
432
|
-
const target = event.currentTarget;
|
|
433
|
-
if (target.hasPointerCapture?.(event.pointerId)) target.releasePointerCapture(event.pointerId);
|
|
434
460
|
this.swipeFrame.cancel();
|
|
435
|
-
if (
|
|
436
|
-
|
|
437
|
-
|
|
461
|
+
if (event.type === "pointerup") {
|
|
462
|
+
this.updateSwipeSession(session, event.clientX, event.clientY);
|
|
463
|
+
if (session.realSwipe) this.flushSwipeVisual();
|
|
464
|
+
}
|
|
465
|
+
const dismissDirection = event.type !== "pointerup" || session.cancelled ? void 0 : this.resolvedSwipeDirections().find((direction) => this.swipeDisplacement(direction, session.deltaX, session.deltaY) > this.resolvedSwipeThreshold());
|
|
438
466
|
this.swipeSession = null;
|
|
467
|
+
const target = event.currentTarget;
|
|
468
|
+
if (target.hasPointerCapture?.(event.pointerId)) target.releasePointerCapture(event.pointerId);
|
|
439
469
|
if (dismissDirection) {
|
|
440
470
|
this.setSwipeVisual(session.message.id, {
|
|
441
471
|
x: session.visualX,
|
|
@@ -447,7 +477,7 @@ var AerisToast = class AerisToast {
|
|
|
447
477
|
return;
|
|
448
478
|
}
|
|
449
479
|
this.removeSwipeVisual(session.message.id);
|
|
450
|
-
if (event.type === "pointerup" && session.pointerType === "touch" && !session.tapMoved && this.mode() === "stacked") this.touchExpanded.update((expanded) => !expanded);
|
|
480
|
+
if (event.type === "pointerup" && session.pointerType === "touch" && !session.tapMoved && !session.realSwipe && this.mode() === "stacked") this.touchExpanded.update((expanded) => !expanded);
|
|
451
481
|
if (!this.interactionPaused()) this.toastService.resume(session.message.id);
|
|
452
482
|
}
|
|
453
483
|
trackTapMovement(session, event) {
|
|
@@ -468,16 +498,6 @@ var AerisToast = class AerisToast {
|
|
|
468
498
|
});
|
|
469
499
|
}
|
|
470
500
|
updateSwipeSession(session, clientX, clientY) {
|
|
471
|
-
if (session.firstMove) {
|
|
472
|
-
session.startX = clientX;
|
|
473
|
-
session.startY = clientY;
|
|
474
|
-
session.lastX = clientX;
|
|
475
|
-
session.lastY = clientY;
|
|
476
|
-
session.baselineX = clientX;
|
|
477
|
-
session.baselineY = clientY;
|
|
478
|
-
session.firstMove = false;
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
501
|
const movementX = clientX - session.lastX;
|
|
482
502
|
const movementY = clientY - session.lastY;
|
|
483
503
|
session.lastX = clientX;
|
|
@@ -497,6 +517,7 @@ var AerisToast = class AerisToast {
|
|
|
497
517
|
if (hasHorizontal && hasVertical) session.lockedAxis = Math.abs(deltaX) > Math.abs(deltaY) ? "horizontal" : "vertical";
|
|
498
518
|
}
|
|
499
519
|
}
|
|
520
|
+
if (!session.realSwipe) return;
|
|
500
521
|
if (!session.intendedDirection) {
|
|
501
522
|
const candidate = this.swipeCandidate(session.lockedAxis, deltaX, deltaY);
|
|
502
523
|
if (candidate && directions.includes(candidate)) {
|
|
@@ -584,7 +605,7 @@ var AerisToast = class AerisToast {
|
|
|
584
605
|
}
|
|
585
606
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
586
607
|
minVersion: "12.0.0",
|
|
587
|
-
version: "22.2.
|
|
608
|
+
version: "22.2.4",
|
|
588
609
|
ngImport: i0,
|
|
589
610
|
type: AerisToast,
|
|
590
611
|
deps: [],
|
|
@@ -592,7 +613,7 @@ var AerisToast = class AerisToast {
|
|
|
592
613
|
});
|
|
593
614
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
594
615
|
minVersion: "17.0.0",
|
|
595
|
-
version: "22.2.
|
|
616
|
+
version: "22.2.4",
|
|
596
617
|
type: AerisToast,
|
|
597
618
|
isStandalone: true,
|
|
598
619
|
selector: "aeris-toast",
|
|
@@ -739,8 +760,8 @@ var AerisToast = class AerisToast {
|
|
|
739
760
|
[attr.data-overflow]="hiddenCount() > 0 || null"
|
|
740
761
|
[attr.data-stack-width]="stackWidthLocked() || null"
|
|
741
762
|
[style.--aeris-toast-stack-size]="visibleStackSize()"
|
|
742
|
-
(pointerenter)="pauseVisible()"
|
|
743
|
-
(pointerleave)="resumeVisible()"
|
|
763
|
+
(pointerenter)="pauseVisible($event)"
|
|
764
|
+
(pointerleave)="resumeVisible($event)"
|
|
744
765
|
(focusin)="pauseVisible()"
|
|
745
766
|
(focusout)="resumeVisible()"
|
|
746
767
|
>
|
|
@@ -764,6 +785,7 @@ var AerisToast = class AerisToast {
|
|
|
764
785
|
(pointermove)="handlePointerMove($event)"
|
|
765
786
|
(pointerup)="handlePointerEnd($event)"
|
|
766
787
|
(pointercancel)="handlePointerEnd($event)"
|
|
788
|
+
(lostpointercapture)="handlePointerEnd($event)"
|
|
767
789
|
>
|
|
768
790
|
<article
|
|
769
791
|
class="aeris-toast__message"
|
|
@@ -847,7 +869,7 @@ var AerisToast = class AerisToast {
|
|
|
847
869
|
</section>
|
|
848
870
|
`,
|
|
849
871
|
isInline: true,
|
|
850
|
-
styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}.aeris-toast__region[data-position$=left] .aeris-toast__item{justify-content:flex-start}.aeris-toast__region[data-position$=right] .aeris-toast__item{justify-content:flex-end}.aeris-toast__region[data-position$=center] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{justify-content:center}.aeris-toast__item:after{position:absolute;inset-inline:0;top:100%;height:calc(var(--_stack-gap) + 1px);content:\"\"}.aeris-toast__region[data-position^=top] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek)) + (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );top:0;transform-origin:top center}.aeris-toast__region[data-position^=bottom] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek) * -1) - (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );bottom:0;transform-origin:bottom center}.aeris-toast__region[data-mode=stacked] .aeris-toast__item:not([data-primary]){pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__body[data-behind]{opacity:0}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition:none}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) + 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) - 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"],
|
|
872
|
+
styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;translate:var(--aeris-toast-swipe-x, 0px) var(--aeris-toast-swipe-y, 0px);transform:translateY(var(--_active-y)) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),translate .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]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:has(:focus-visible) .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition-property:transform,opacity,height}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(150%) translateY(var(--_active-y)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(-150%) translateY(var(--_active-y)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translateY(calc(var(--_active-y) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translateY(calc(var(--_active-y) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"],
|
|
851
873
|
dependencies: [{
|
|
852
874
|
kind: "component",
|
|
853
875
|
type: ɵAerisIcon,
|
|
@@ -867,7 +889,7 @@ var AerisToast = class AerisToast {
|
|
|
867
889
|
};
|
|
868
890
|
i0.ɵɵngDeclareClassMetadata({
|
|
869
891
|
minVersion: "12.0.0",
|
|
870
|
-
version: "22.2.
|
|
892
|
+
version: "22.2.4",
|
|
871
893
|
ngImport: i0,
|
|
872
894
|
type: AerisToast,
|
|
873
895
|
decorators: [{
|
|
@@ -887,8 +909,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
887
909
|
[attr.data-overflow]="hiddenCount() > 0 || null"
|
|
888
910
|
[attr.data-stack-width]="stackWidthLocked() || null"
|
|
889
911
|
[style.--aeris-toast-stack-size]="visibleStackSize()"
|
|
890
|
-
(pointerenter)="pauseVisible()"
|
|
891
|
-
(pointerleave)="resumeVisible()"
|
|
912
|
+
(pointerenter)="pauseVisible($event)"
|
|
913
|
+
(pointerleave)="resumeVisible($event)"
|
|
892
914
|
(focusin)="pauseVisible()"
|
|
893
915
|
(focusout)="resumeVisible()"
|
|
894
916
|
>
|
|
@@ -912,6 +934,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
912
934
|
(pointermove)="handlePointerMove($event)"
|
|
913
935
|
(pointerup)="handlePointerEnd($event)"
|
|
914
936
|
(pointercancel)="handlePointerEnd($event)"
|
|
937
|
+
(lostpointercapture)="handlePointerEnd($event)"
|
|
915
938
|
>
|
|
916
939
|
<article
|
|
917
940
|
class="aeris-toast__message"
|
|
@@ -998,7 +1021,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
998
1021
|
class: "aeris-toast",
|
|
999
1022
|
"[attr.data-position]": "position()"
|
|
1000
1023
|
},
|
|
1001
|
-
styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}.aeris-toast__region[data-position$=left] .aeris-toast__item{justify-content:flex-start}.aeris-toast__region[data-position$=right] .aeris-toast__item{justify-content:flex-end}.aeris-toast__region[data-position$=center] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{justify-content:center}.aeris-toast__item:after{position:absolute;inset-inline:0;top:100%;height:calc(var(--_stack-gap) + 1px);content:\"\"}.aeris-toast__region[data-position^=top] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek)) + (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );top:0;transform-origin:top center}.aeris-toast__region[data-position^=bottom] .aeris-toast__item{--_rest-y: calc( (var(--aeris-toast-stack-index, 0) * var(--_stack-peek) * -1) - (var(--_stack-shrink) * var(--aeris-toast-front-height, 4.5rem)) );bottom:0;transform-origin:bottom center}.aeris-toast__region[data-mode=stacked] .aeris-toast__item:not([data-primary]){pointer-events:none}.aeris-toast__region[data-mode=stacked] .aeris-toast__body[data-behind]{opacity:0}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:focus-within .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:focus-within .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition:none}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) + 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(calc(var(--aeris-toast-swipe-x, 0px) - 150%)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px))) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translate(var(--aeris-toast-swipe-x, 0px)) translateY(calc(var(--_active-y) + var(--aeris-toast-swipe-y, 0px) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"]
|
|
1024
|
+
styles: [":host{display:contents}.aeris-toast__region{--_stack-gap: var(--aeris-toast-gap, .75rem);--_stack-peek: var(--aeris-toast-stack-peek, .75rem);--_edge-offset: var(--aeris-toast-offset, 1rem);position:fixed;z-index:var(--aeris-z-toast, 1200);isolation:isolate;width:min(var(--aeris-toast-width, 24rem),var(--_aeris-viewport-width, 100vw) - var(--_edge-offset) - var(--_edge-offset) - var(--aeris-safe-area-left, 0px) - var(--aeris-safe-area-right, 0px));height:0;pointer-events:none;outline:none}.aeris-toast__region[data-position^=top]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}.aeris-toast__region[data-position$=left]{left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px))}.aeris-toast__region[data-position$=right]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px))}.aeris-toast__region[data-position$=center],.aeris-toast__region[data-position=center]{left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);transform:translate(-50%)}.aeris-toast__region[data-position=center]{top:calc(var(--_aeris-viewport-top, 0px) + var(--_aeris-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%)}.aeris-toast__item{--_stack-scale: max(0, 1 - (var(--aeris-toast-stack-index, 0) * .1)) ;--_stack-shrink: calc(1 - var(--_stack-scale));--_rest-y: 0px;--_active-y: var(--_rest-y);--_active-scale: var(--_stack-scale);position:absolute;inset-inline:0;z-index:calc(var(--aeris-toast-stack-size, 1) - var(--aeris-toast-stack-index, 0));box-sizing:border-box;display:flex;height:var(--aeris-toast-front-height, var(--aeris-toast-height, 4.5rem));min-width:0;opacity:1;pointer-events:auto;will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none;translate:var(--aeris-toast-swipe-x, 0px) var(--aeris-toast-swipe-y, 0px);transform:translateY(var(--_active-y)) scale(var(--_active-scale));transition:transform .5s cubic-bezier(.22,1,.36,1),translate .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]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-mode=expanded] .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item{height:var(--aeris-toast-height, 4.5rem);pointer-events:auto}}.aeris-toast__region[data-position^=top][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position^=top][data-mode=expanded] .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=expanded] .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=top][data-mode=stacked]:hover .aeris-toast__item,.aeris-toast__region[data-position=center][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( var(--aeris-toast-height-offset, 0px) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap)) );--_active-scale: 1}}.aeris-toast__region[data-position^=bottom][data-mode=stacked]:has(:focus-visible) .aeris-toast__item,.aeris-toast__region[data-position^=bottom][data-mode=expanded] .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}@media(hover:hover){.aeris-toast__region[data-position^=bottom][data-mode=stacked]:hover .aeris-toast__item{--_active-y: calc( (var(--aeris-toast-height-offset, 0px) * -1) + (var(--aeris-toast-stack-index, 0) * var(--_stack-gap) * -1) );--_active-scale: 1}}.aeris-toast__region[data-mode=stacked]:has(:focus-visible) .aeris-toast__item .aeris-toast__body,.aeris-toast__region[data-mode=expanded] .aeris-toast__item .aeris-toast__body{opacity:1}@media(hover:hover){.aeris-toast__region[data-mode=stacked]:hover .aeris-toast__item .aeris-toast__body{opacity:1}}.aeris-toast__item[data-swiping]{cursor:grabbing;transition-property:transform,opacity,height}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=right],.aeris-toast__item--leaving[data-swipe-direction=right]{transform:translate(150%) translateY(var(--_active-y)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=left],.aeris-toast__item--leaving[data-swipe-direction=left]{transform:translate(-150%) translateY(var(--_active-y)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=down],.aeris-toast__item--leaving[data-swipe-direction=down]{transform:translateY(calc(var(--_active-y) + 150%)) scale(var(--_active-scale))}.aeris-toast__item[data-swipe-dismissing][data-swipe-direction=up],.aeris-toast__item--leaving[data-swipe-direction=up]{transform:translateY(calc(var(--_active-y) - 150%)) scale(var(--_active-scale))}.aeris-toast__region[data-position^=top] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item--leaving:not([data-swipe-direction]),.aeris-toast__region[data-position=center] .aeris-toast__item--leaving:not([data-swipe-direction]){transform:translateY(150%)}.aeris-toast__item--leaving{pointer-events:none}.aeris-toast__region[data-position=center] .aeris-toast__item:is([data-swipe-dismissing],.aeris-toast__item--leaving){opacity:0}@starting-style{.aeris-toast__region[data-position^=top] .aeris-toast__item{transform:translateY(-150%)}.aeris-toast__region[data-position^=bottom] .aeris-toast__item,.aeris-toast__region[data-position=center] .aeris-toast__item{transform:translateY(150%)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-toast__message{--_accent: var(--aeris-primary, #111111);--_icon-color: var(--_accent);--_toast-surface: color-mix( in srgb, var(--_accent) var(--aeris-toast-severity-tint, 9%), var(--aeris-surface, #fff) );--_toast-text: var(--aeris-text, #111111);--_toast-detail: var(--aeris-text-2, #454545);position:relative;box-sizing:border-box;width:fit-content;min-width:min(var(--aeris-toast-min-width, 12rem),100%);max-width:100%;height:100%;min-width:0;border:1px solid var(--aeris-toast-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-toast-background, var(--_toast-surface));color:var(--_toast-text);box-shadow:var(--aeris-shadow-lg, 0 18px 44px rgba(31, 35, 27, .14));overflow:hidden;pointer-events:auto;transition:box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__region[data-stack-width] .aeris-toast__message{width:100%}.aeris-toast__body{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.75rem;padding:.875rem .875rem .875rem 1rem;transition:opacity .25s cubic-bezier(.22,1,.36,1)}.aeris-toast__body[data-icon-hidden]{grid-template-columns:minmax(0,1fr) auto}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]){position:relative;min-height:3rem;grid-template-columns:minmax(0,1fr);align-items:center;padding:.5rem 3rem .5rem .875rem}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__content{text-align:start}.aeris-toast__body[data-icon-hidden]:not([data-has-summary]):not([data-custom-content]) .aeris-toast__close{position:absolute;top:50%;inset-inline-end:.5rem;margin:0;transform:translateY(-50%)}.aeris-toast__message:focus-within{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}@media(hover:hover){.aeris-toast__message:hover{border-color:var(--aeris-toast-border-color, var(--_accent));box-shadow:0 14px 34px color-mix(in srgb,var(--aeris-text, #111111) 10%,transparent)}}.aeris-toast__message[data-severity=primary]{--_accent: var(--aeris-primary, #111111)}.aeris-toast__message[data-severity=secondary]{--_accent: var(--aeris-secondary, #565656)}.aeris-toast__message[data-severity=success]{--_accent: var(--aeris-success, #6f8a68)}.aeris-toast__message[data-severity=info]{--_accent: var(--aeris-info, #6b8793)}.aeris-toast__message[data-severity=warning]{--_accent: var(--aeris-warning, #c38600)}.aeris-toast__message[data-severity=danger]{--_accent: var(--aeris-danger, #c81e2a)}.aeris-toast__message[data-severity=neutral]{--_accent: var(--aeris-text-2, #454545)}.aeris-toast__message[data-severity=contrast]{--_accent: var(--aeris-text, #111111);--_icon-color: var(--aeris-surface, #ffffff);--_toast-surface: var(--aeris-text, #111111);--_toast-text: var(--aeris-surface, #ffffff);--_toast-detail: var(--aeris-surface, #ffffff)}.aeris-toast__icon{width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);display:inline-grid;place-items:center;margin-top:.0625rem;color:var(--_icon-color)}.aeris-toast__default-icon{display:block;width:var(--aeris-toast-icon-size, 1.25rem);height:var(--aeris-toast-icon-size, 1.25rem);background:currentColor;-webkit-mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-info, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"M12 16v-4\"/%3E%3Cpath d=\"M12 8h.01\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-toast__message[data-severity=success] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-success, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m16 9-5.5 5.5L8 12\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=warning] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-warning, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/%3E%3Cpath d=\"M12 9v4\"/%3E%3Cpath d=\"M12 17h.01\"/%3E%3C/svg%3E'))}.aeris-toast__message[data-severity=danger] .aeris-toast__default-icon{-webkit-mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-danger, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Ccircle cx=\"12\" cy=\"12\" r=\"10\"/%3E%3Cpath d=\"m15 9-6 6\"/%3E%3Cpath d=\"m9 9 6 6\"/%3E%3C/svg%3E'))}.aeris-toast__content{min-width:0;display:grid;gap:.2rem}.aeris-toast__summary,.aeris-toast__detail{margin:0}.aeris-toast__summary{color:var(--_toast-text);font-size:var(--aeris-font-size-lg, .875rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-toast__detail{color:var(--_toast-detail);font-size:var(--aeris-font-size-md, .8125rem);line-height:var(--aeris-line-height-normal, 1.5)}.aeris-toast__close{width:2rem;height:2rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem 0 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_toast-detail);cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-toast__close:hover{background:color-mix(in srgb,var(--_toast-text) 10%,transparent);color:var(--_toast-text)}}.aeris-toast__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-toast__close span{width:.875rem;height:.875rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-toast__overflow{position:absolute;z-index:calc(var(--aeris-toast-stack-size, 1) + 1);left:50%;min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);box-shadow:0 0 0 2px var(--aeris-surface, #fff),var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);pointer-events:none;translate:-50% -50%;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-toast__overflow--entering{animation:aeris-toast-overflow-enter .26s cubic-bezier(.16,1,.3,1) both}.aeris-toast__overflow--leaving{animation:aeris-toast-overflow-leave var(--aeris-motion-normal, .15s) var(--aeris-ease-exit, ease-in) both}.aeris-toast__region[data-position^=top] .aeris-toast__overflow{top:0}.aeris-toast__region[data-position^=bottom] .aeris-toast__overflow{bottom:0;translate:-50% 50%}.aeris-toast__region[data-position=center] .aeris-toast__overflow{top:0}@keyframes aeris-toast-overflow-enter{0%{opacity:0;scale:.75}to{opacity:1;scale:1}}@keyframes aeris-toast-overflow-leave{to{opacity:0;scale:.8}}@media(max-width:36rem){.aeris-toast__region{--_edge-offset: var(--aeris-toast-mobile-offset, .5rem)}.aeris-toast__region[data-position]{right:calc(var(--_edge-offset) + var(--aeris-safe-area-right, 0px) + var(--_aeris-viewport-right, 0px));left:calc(var(--_edge-offset) + var(--aeris-safe-area-left, 0px) + var(--_aeris-viewport-left, 0px));width:auto;transform:none}.aeris-toast__region[data-position^=top],.aeris-toast__region[data-position=center]{top:calc(var(--_edge-offset) + var(--aeris-safe-area-top, 0px) + var(--_aeris-viewport-top, 0px))}.aeris-toast__region[data-position^=bottom]{bottom:calc(var(--_edge-offset) + var(--aeris-safe-area-bottom, 0px) + var(--_aeris-viewport-bottom, 0px))}}@media(prefers-reduced-motion:reduce){.aeris-toast__item--leaving,.aeris-toast__overflow--entering,.aeris-toast__overflow--leaving{animation-duration:1ms}.aeris-toast__item,.aeris-toast__message,.aeris-toast__body,.aeris-toast__overflow,.aeris-toast__icon,.aeris-toast__content,.aeris-toast__close{transition:none}}\n"]
|
|
1002
1025
|
}]
|
|
1003
1026
|
}],
|
|
1004
1027
|
ctorParameters: () => [],
|