@wow-two-beta/fe 0.0.49 → 0.0.51
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/dist/feedback/FeedbackBus.d.ts +154 -29
- package/dist/feedback/FeedbackBus.js +264 -27
- package/dist/feedback/FeedbackBus.js.map +1 -1
- package/dist/feedback/index.d.ts +1 -1
- package/dist/feedback/index.js +3 -1
- package/dist/foundation/dom/enums/ElementTag.d.ts +2 -0
- package/dist/foundation/dom/enums/ElementTag.js +3 -1
- package/dist/foundation/dom/enums/ElementTag.js.map +1 -1
- package/dist/index.js +404 -382
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/button/Button.variants.d.ts +12 -0
- package/dist/presentation/actions/button/Button.variants.js +18 -2
- package/dist/presentation/actions/button/Button.variants.js.map +1 -1
- package/dist/presentation/actions/button/Button.vue.d.ts +8 -1
- package/dist/presentation/actions/button/Button.vue.js +106 -58
- package/dist/presentation/actions/button/Button.vue.js.map +1 -1
- package/dist/presentation/actions/refreshButton/RefreshButton.vue.js.map +1 -1
- package/dist/presentation/display/badge/Badge.variants.d.ts +23 -1
- package/dist/presentation/display/badge/Badge.variants.js +18 -3
- package/dist/presentation/display/badge/Badge.variants.js.map +1 -1
- package/dist/presentation/display/badge/Badge.vue.d.ts +3 -0
- package/dist/presentation/display/badge/Badge.vue.js +10 -4
- package/dist/presentation/display/badge/Badge.vue.js.map +1 -1
- package/dist/presentation/display/carousel/Carousel.variants.d.ts +65 -0
- package/dist/presentation/display/carousel/Carousel.variants.js +56 -0
- package/dist/presentation/display/carousel/Carousel.variants.js.map +1 -0
- package/dist/presentation/display/carousel/Carousel.vue.d.ts +7 -0
- package/dist/presentation/display/carousel/Carousel.vue.js +7 -2
- package/dist/presentation/display/carousel/Carousel.vue.js.map +1 -1
- package/dist/presentation/display/carousel/CarouselContext.d.ts +10 -0
- package/dist/presentation/display/carousel/CarouselContext.js.map +1 -1
- package/dist/presentation/display/carousel/CarouselNext.vue.d.ts +6 -2
- package/dist/presentation/display/carousel/CarouselNext.vue.js +12 -4
- package/dist/presentation/display/carousel/CarouselNext.vue.js.map +1 -1
- package/dist/presentation/display/carousel/CarouselPrev.vue.d.ts +6 -2
- package/dist/presentation/display/carousel/CarouselPrev.vue.js +12 -4
- package/dist/presentation/display/carousel/CarouselPrev.vue.js.map +1 -1
- package/dist/presentation/display/carousel/CarouselViewport.vue.d.ts +13 -2
- package/dist/presentation/display/carousel/CarouselViewport.vue.js +54 -2
- package/dist/presentation/display/carousel/CarouselViewport.vue.js.map +1 -1
- package/dist/presentation/display/carousel/index.d.ts +1 -0
- package/dist/presentation/display/index.d.ts +1 -0
- package/dist/presentation/display/index.js +120 -108
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/display/mediaCard/MediaCard.vue.d.ts +41 -0
- package/dist/presentation/display/mediaCard/MediaCard.vue.js +108 -0
- package/dist/presentation/display/mediaCard/MediaCard.vue.js.map +1 -0
- package/dist/presentation/display/mediaCard/MediaCard2.vue.js +5 -0
- package/dist/presentation/display/mediaCard/MediaCard2.vue.js.map +1 -0
- package/dist/presentation/display/mediaCard/index.d.ts +1 -0
- package/dist/presentation/display/metaInlineText/MetaInlineItem.vue.d.ts +37 -0
- package/dist/presentation/display/metaInlineText/MetaInlineItem.vue.js +72 -0
- package/dist/presentation/display/metaInlineText/MetaInlineItem.vue.js.map +1 -0
- package/dist/presentation/display/metaInlineText/MetaInlineItem2.vue.js +7 -0
- package/dist/presentation/display/metaInlineText/MetaInlineItem2.vue.js.map +1 -0
- package/dist/presentation/display/metaInlineText/index.d.ts +1 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.d.ts +18 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.js +120 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.js.map +1 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton2.vue.js +5 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton2.vue.js.map +1 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.d.ts +11 -6
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.js +255 -61
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.js.map +1 -1
- package/dist/presentation/display/notificationCenterGroup/{NotificationItem.vue.d.ts → NotificationCenterGroupItem.vue.d.ts} +13 -12
- package/dist/presentation/display/notificationCenterGroup/{NotificationItem.vue.js → NotificationCenterGroupItem.vue.js} +81 -58
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem.vue.js.map +1 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem2.vue.js +5 -0
- package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem2.vue.js.map +1 -0
- package/dist/presentation/display/notificationCenterGroup/index.d.ts +6 -1
- package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.d.ts +1 -9
- package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.js +165 -20
- package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.js.map +1 -1
- package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.d.ts +7 -0
- package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.js +56 -0
- package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.js.map +1 -0
- package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton2.vue.js +5 -0
- package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton2.vue.js.map +1 -0
- package/dist/presentation/feedback/index.js +9 -1
- package/dist/presentation/feedback/index.js.map +1 -1
- package/dist/presentation/feedback/toast/Toast.vue.d.ts +34 -8
- package/dist/presentation/feedback/toast/Toast.vue.js +290 -85
- package/dist/presentation/feedback/toast/Toast.vue.js.map +1 -1
- package/dist/presentation/feedback/toast/ToastContent.vue.d.ts +25 -0
- package/dist/presentation/feedback/toast/ToastContent.vue.js +78 -0
- package/dist/presentation/feedback/toast/ToastContent.vue.js.map +1 -0
- package/dist/presentation/feedback/toast/ToastContent2.vue.js +5 -0
- package/dist/presentation/feedback/toast/ToastContent2.vue.js.map +1 -0
- package/dist/presentation/feedback/toast/ToastRunningProgress.vue.d.ts +15 -0
- package/dist/presentation/feedback/toast/ToastRunningProgress.vue.js +88 -0
- package/dist/presentation/feedback/toast/ToastRunningProgress.vue.js.map +1 -0
- package/dist/presentation/feedback/toast/ToastRunningProgress2.vue.js +5 -0
- package/dist/presentation/feedback/toast/ToastRunningProgress2.vue.js.map +1 -0
- package/dist/presentation/feedback/toast/ToastSurface.d.ts +8 -0
- package/dist/presentation/feedback/toast/ToastSurface.js +10 -0
- package/dist/presentation/feedback/toast/ToastSurface.js.map +1 -0
- package/dist/presentation/feedback/toast/index.d.ts +1 -0
- package/dist/presentation/feedback/toastHost/ToastContent.d.ts +3 -0
- package/dist/presentation/feedback/toastHost/ToastEntry.d.ts +12 -0
- package/dist/presentation/feedback/toastHost/ToastFocusExtensions.d.ts +2 -0
- package/dist/presentation/feedback/toastHost/ToastFocusExtensions.js +11 -0
- package/dist/presentation/feedback/toastHost/ToastFocusExtensions.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastGroup.d.ts +8 -0
- package/dist/presentation/feedback/toastHost/ToastGroupLatest.d.ts +10 -0
- package/dist/presentation/feedback/toastHost/ToastHost.vue.d.ts +55 -110
- package/dist/presentation/feedback/toastHost/ToastHost.vue.js +394 -399
- package/dist/presentation/feedback/toastHost/ToastHost.vue.js.map +1 -1
- package/dist/presentation/feedback/toastHost/ToastHost2.vue.js +4 -5
- package/dist/presentation/feedback/toastHost/ToastHostStore.d.ts +37 -0
- package/dist/presentation/feedback/toastHost/ToastHostStore.js +98 -0
- package/dist/presentation/feedback/toastHost/ToastHostStore.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastHostStyles.d.ts +34 -0
- package/dist/presentation/feedback/toastHost/ToastHostStyles.js +44 -0
- package/dist/presentation/feedback/toastHost/ToastHostStyles.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastNode.d.ts +3 -0
- package/dist/presentation/feedback/toastHost/ToastOptions.d.ts +72 -0
- package/dist/presentation/feedback/toastHost/ToastProgress.vue.d.ts +11 -0
- package/dist/presentation/feedback/toastHost/ToastProgress.vue.js +44 -0
- package/dist/presentation/feedback/toastHost/ToastProgress.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastProgress2.vue.js +5 -0
- package/dist/presentation/feedback/toastHost/ToastProgress2.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastPromiseOptions.d.ts +12 -0
- package/dist/presentation/feedback/toastHost/ToastRing.vue.d.ts +14 -0
- package/dist/presentation/feedback/toastHost/ToastRing.vue.js +65 -0
- package/dist/presentation/feedback/toastHost/ToastRing.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastRing2.vue.js +5 -0
- package/dist/presentation/feedback/toastHost/ToastRing2.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastSeconds.vue.d.ts +9 -0
- package/dist/presentation/feedback/toastHost/ToastSeconds.vue.js +56 -0
- package/dist/presentation/feedback/toastHost/ToastSeconds.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastSeconds2.vue.js +5 -0
- package/dist/presentation/feedback/toastHost/ToastSeconds2.vue.js.map +1 -0
- package/dist/presentation/feedback/toastHost/ToastSeverity.d.ts +3 -0
- package/dist/presentation/feedback/toastHost/UseResolvedToasts.d.ts +27 -0
- package/dist/presentation/feedback/toastHost/UseResolvedToasts.js +34 -0
- package/dist/presentation/feedback/toastHost/UseResolvedToasts.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastAnnouncer.d.ts +14 -0
- package/dist/presentation/feedback/toastHost/UseToastAnnouncer.js +106 -0
- package/dist/presentation/feedback/toastHost/UseToastAnnouncer.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastCapacity.d.ts +34 -0
- package/dist/presentation/feedback/toastHost/UseToastCapacity.js +128 -0
- package/dist/presentation/feedback/toastHost/UseToastCapacity.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastClock.d.ts +44 -0
- package/dist/presentation/feedback/toastHost/UseToastClock.js +134 -0
- package/dist/presentation/feedback/toastHost/UseToastClock.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastCountdown.d.ts +26 -0
- package/dist/presentation/feedback/toastHost/UseToastCountdown.js +23 -0
- package/dist/presentation/feedback/toastHost/UseToastCountdown.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastEntries.d.ts +4 -0
- package/dist/presentation/feedback/toastHost/UseToastEntries.js +17 -0
- package/dist/presentation/feedback/toastHost/UseToastEntries.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastExits.d.ts +11 -0
- package/dist/presentation/feedback/toastHost/UseToastExits.js +52 -0
- package/dist/presentation/feedback/toastHost/UseToastExits.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastGroupMotion.d.ts +43 -0
- package/dist/presentation/feedback/toastHost/UseToastGroupMotion.js +173 -0
- package/dist/presentation/feedback/toastHost/UseToastGroupMotion.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastHost.d.ts +10 -0
- package/dist/presentation/feedback/toastHost/UseToastHost.js +14 -0
- package/dist/presentation/feedback/toastHost/UseToastHost.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastHotkey.d.ts +20 -0
- package/dist/presentation/feedback/toastHost/UseToastHotkey.js +66 -0
- package/dist/presentation/feedback/toastHost/UseToastHotkey.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastPins.d.ts +26 -0
- package/dist/presentation/feedback/toastHost/UseToastPins.js +35 -0
- package/dist/presentation/feedback/toastHost/UseToastPins.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastStackMotion.d.ts +27 -0
- package/dist/presentation/feedback/toastHost/UseToastStackMotion.js +96 -0
- package/dist/presentation/feedback/toastHost/UseToastStackMotion.js.map +1 -0
- package/dist/presentation/feedback/toastHost/UseToastSwipe.d.ts +19 -0
- package/dist/presentation/feedback/toastHost/UseToastSwipe.js +173 -0
- package/dist/presentation/feedback/toastHost/UseToastSwipe.js.map +1 -0
- package/dist/presentation/feedback/toastHost/index.d.ts +8 -1
- package/dist/presentation/feedback/toastHost/index.js +7 -1
- package/dist/presentation/feedback/toastHost/index.js.map +1 -1
- package/dist/presentation/feedback/toastHost/styles.css +14 -2
- package/dist/presentation/layout/grid/Grid.variants.d.ts +7 -0
- package/dist/presentation/layout/grid/Grid.variants.js +4 -0
- package/dist/presentation/layout/grid/Grid.variants.js.map +1 -1
- package/dist/presentation/layout/grid/Grid.vue.d.ts +5 -0
- package/dist/presentation/layout/grid/Grid.vue.js +16 -4
- package/dist/presentation/layout/grid/Grid.vue.js.map +1 -1
- package/dist/presentation/layout/grid/index.d.ts +1 -1
- package/dist/presentation/layout/index.js +3 -1
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +1 -1
- package/dist/presentation/overlays/hoverCard/HoverCard.vue.d.ts +1 -1
- package/dist/presentation/overlays/popover/PopoverContent.vue.js +4 -4
- package/dist/presentation/overlays/popover/PopoverContent.vue.js.map +1 -1
- package/dist/presentation/overlays/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/presentation/overlays/tooltip/Tooltip.vue.js +8 -9
- package/dist/presentation/overlays/tooltip/Tooltip.vue.js.map +1 -1
- package/package.json +1 -1
- package/dist/presentation/display/notificationCenterGroup/NotificationItem.vue.js.map +0 -1
- package/dist/presentation/display/notificationCenterGroup/NotificationItem2.vue.js +0 -5
- package/dist/presentation/display/notificationCenterGroup/NotificationItem2.vue.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastContent2.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NoticeProgress } from '../../../feedback';
|
|
2
|
+
import { Severity } from '../../../foundation/styles';
|
|
3
|
+
/** Defines props for the running operation's progress bar. */
|
|
4
|
+
export interface ToastRunningProgressProps {
|
|
5
|
+
/** The running operation's progress. Omit `value` for indeterminate; `max` defaults to 1. */
|
|
6
|
+
readonly progress: NoticeProgress;
|
|
7
|
+
/** The severity palette of the fill. Default `neutral`. */
|
|
8
|
+
readonly severity?: Severity;
|
|
9
|
+
/** Draws the thinner bar of compact cards and group rows. */
|
|
10
|
+
readonly isCompact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import('vue').DefineComponent<ToastRunningProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToastRunningProgressProps> & Readonly<{}>, {
|
|
13
|
+
readonly severity: Severity;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, useId, computed, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, unref, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { AriaAttribute } from "../../../foundation/dom/enums/AriaAttribute.js";
|
|
3
|
+
import { useLocale } from "../../../foundation/i18n/providers/LocaleContext.js";
|
|
4
|
+
import { cn } from "../../../foundation/styles/Cn.js";
|
|
5
|
+
import { Severity } from "../../../foundation/styles/enums/Severity.js";
|
|
6
|
+
const _hoisted_1 = ["data-toast-running-mode", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-label", "aria-describedby"];
|
|
7
|
+
const _hoisted_2 = ["id"];
|
|
8
|
+
const FillClasses = {
|
|
9
|
+
[Severity.Neutral]: "bg-primary",
|
|
10
|
+
[Severity.Info]: "bg-info",
|
|
11
|
+
[Severity.Success]: "bg-success",
|
|
12
|
+
[Severity.Warning]: "bg-warning",
|
|
13
|
+
[Severity.Danger]: "bg-destructive"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...{ name: "ToastRunningProgress", inheritAttrs: false },
|
|
17
|
+
__name: "ToastRunningProgress",
|
|
18
|
+
props: {
|
|
19
|
+
progress: {},
|
|
20
|
+
severity: { default: Severity.Neutral },
|
|
21
|
+
isCompact: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const attrs = useAttrs();
|
|
26
|
+
const locale = useLocale();
|
|
27
|
+
const labelId = useId();
|
|
28
|
+
const labelledby = computed(() => attrs[AriaAttribute.LabelledBy]);
|
|
29
|
+
const rest = computed(() => {
|
|
30
|
+
const { class: _class, [AriaAttribute.LabelledBy]: _labelledby, ...others } = attrs;
|
|
31
|
+
return others;
|
|
32
|
+
});
|
|
33
|
+
const rootClasses = computed(() => cn("min-w-0", attrs.class));
|
|
34
|
+
const max = computed(() => {
|
|
35
|
+
const value = props.progress.max;
|
|
36
|
+
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : 1;
|
|
37
|
+
});
|
|
38
|
+
const now = computed(() => {
|
|
39
|
+
const value = props.progress.value;
|
|
40
|
+
return typeof value === "number" && !Number.isNaN(value) ? Math.min(max.value, Math.max(0, value)) : void 0;
|
|
41
|
+
});
|
|
42
|
+
const percent = computed(() => now.value === void 0 ? void 0 : now.value / max.value * 100);
|
|
43
|
+
const label = computed(() => props.progress.label || void 0);
|
|
44
|
+
const fallbackName = computed(() => label.value ?? locale.t("Toast.progress", void 0, "Progress"));
|
|
45
|
+
const trackClasses = computed(
|
|
46
|
+
() => cn("relative w-full overflow-hidden rounded-full bg-foreground/15", props.isCompact ? "h-0.5" : "h-1")
|
|
47
|
+
);
|
|
48
|
+
const fillClasses = computed(
|
|
49
|
+
() => cn(
|
|
50
|
+
"h-full rounded-full",
|
|
51
|
+
FillClasses[props.severity],
|
|
52
|
+
percent.value === void 0 ? "w-1/3 motion-safe:animate-[indeterminate_1.4s_ease-in-out_infinite]" : "motion-safe:transition-[width] motion-safe:duration-300 motion-safe:ease-out"
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createElementBlock("div", mergeProps({ "data-toast-running": "" }, rest.value, { class: rootClasses.value }), [
|
|
57
|
+
createElementVNode("div", {
|
|
58
|
+
role: "progressbar",
|
|
59
|
+
"data-toast-running-bar": "",
|
|
60
|
+
"data-toast-running-mode": percent.value === void 0 ? "indeterminate" : "determinate",
|
|
61
|
+
"aria-valuemin": 0,
|
|
62
|
+
"aria-valuemax": max.value,
|
|
63
|
+
"aria-valuenow": now.value,
|
|
64
|
+
"aria-labelledby": labelledby.value,
|
|
65
|
+
"aria-label": labelledby.value ? void 0 : fallbackName.value,
|
|
66
|
+
"aria-describedby": labelledby.value && label.value ? unref(labelId) : void 0,
|
|
67
|
+
class: normalizeClass(trackClasses.value)
|
|
68
|
+
}, [
|
|
69
|
+
createElementVNode("div", {
|
|
70
|
+
"data-toast-running-fill": "",
|
|
71
|
+
class: normalizeClass(fillClasses.value),
|
|
72
|
+
style: normalizeStyle(percent.value === void 0 ? void 0 : { width: `${percent.value}%` })
|
|
73
|
+
}, null, 6)
|
|
74
|
+
], 10, _hoisted_1),
|
|
75
|
+
label.value ? (openBlock(), createElementBlock("div", {
|
|
76
|
+
key: 0,
|
|
77
|
+
id: unref(labelId),
|
|
78
|
+
"data-toast-running-label": "",
|
|
79
|
+
class: "mt-1 text-xs text-muted-foreground"
|
|
80
|
+
}, toDisplayString(label.value), 9, _hoisted_2)) : createCommentVNode("", true)
|
|
81
|
+
], 16);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
_sfc_main as default
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=ToastRunningProgress.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastRunningProgress.vue.js","sources":["../../../../src/presentation/feedback/toast/ToastRunningProgress.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { NoticeProgress } from '../../../feedback';\nimport { cn, Severity } from '../../../foundation/styles';\n\n/** Defines props for the running operation's progress bar. */\nexport interface ToastRunningProgressProps {\n /** The running operation's progress. Omit `value` for indeterminate; `max` defaults to 1. */\n readonly progress: NoticeProgress;\n\n /** The severity palette of the fill. Default `neutral`. */\n readonly severity?: Severity;\n\n /** Draws the thinner bar of compact cards and group rows. */\n readonly isCompact?: boolean;\n}\n\n/** @internal The fill colour per severity; the neutral bar uses the brand primary. */\nconst FillClasses: Record<Severity, string> = {\n [Severity.Neutral]: 'bg-primary',\n [Severity.Info]: 'bg-info',\n [Severity.Success]: 'bg-success',\n [Severity.Warning]: 'bg-warning',\n [Severity.Danger]: 'bg-destructive',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useId } from 'vue';\n\nimport { AriaAttribute } from '../../../foundation/dom';\nimport { useLocale } from '../../../foundation/i18n';\n\n/**\n * Renders the progress of a running operation as a slim bar with an optional step label under it. Name the bar\n * with `aria-labelledby`; without it, `progress.label` does.\n */\ndefineOptions({ name: 'ToastRunningProgress', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToastRunningProgressProps>(), { severity: Severity.Neutral });\n\nconst attrs = useAttrs();\nconst locale = useLocale();\nconst labelId = useId();\n\n/** The id of the element that names the bar — the toast's title. */\nconst labelledby = computed(() => attrs[AriaAttribute.LabelledBy] as string | undefined);\n\n/** The fallthrough attributes minus `class` and the one relocated to the bar. */\nconst rest = computed(() => {\n const { class: _class, [AriaAttribute.LabelledBy]: _labelledby, ...others } = attrs;\n return others;\n});\n\nconst rootClasses = computed(() => cn('min-w-0', attrs.class as string | undefined));\n\n/** The usable maximum — 1 when absent, zero, negative or not finite. */\nconst max = computed(() => {\n const value = props.progress.max;\n return typeof value === 'number' && Number.isFinite(value) && value > 0 ? value : 1;\n});\n\n/** The value kept inside 0–`max`; `undefined` (or `NaN`) is indeterminate. */\nconst now = computed(() => {\n const value = props.progress.value;\n return typeof value === 'number' && !Number.isNaN(value) ? Math.min(max.value, Math.max(0, value)) : undefined;\n});\n\nconst percent = computed(() => (now.value === undefined ? undefined : (now.value / max.value) * 100));\nconst label = computed(() => props.progress.label || undefined);\nconst fallbackName = computed(() => label.value ?? locale.t('Toast.progress', undefined, 'Progress'));\n\nconst trackClasses = computed(() =>\n cn('relative w-full overflow-hidden rounded-full bg-foreground/15', props.isCompact ? 'h-0.5' : 'h-1'),\n);\n\n/** The fill's classes; reduced motion keeps the indeterminate fill still, at a third of the track. */\nconst fillClasses = computed(() =>\n cn(\n 'h-full rounded-full',\n FillClasses[props.severity],\n percent.value === undefined\n ? 'w-1/3 motion-safe:animate-[indeterminate_1.4s_ease-in-out_infinite]'\n : 'motion-safe:transition-[width] motion-safe:duration-300 motion-safe:ease-out',\n ),\n);\n</script>\n\n<template>\n <div data-toast-running v-bind=\"rest\" :class=\"rootClasses\">\n <div\n role=\"progressbar\"\n data-toast-running-bar\n :data-toast-running-mode=\"percent === undefined ? 'indeterminate' : 'determinate'\"\n :aria-valuemin=\"0\"\n :aria-valuemax=\"max\"\n :aria-valuenow=\"now\"\n :aria-labelledby=\"labelledby\"\n :aria-label=\"labelledby ? undefined : fallbackName\"\n :aria-describedby=\"labelledby && label ? labelId : undefined\"\n :class=\"trackClasses\"\n >\n <div\n data-toast-running-fill\n :class=\"fillClasses\"\n :style=\"percent === undefined ? undefined : { width: `${percent}%` }\"\n />\n </div>\n <div v-if=\"label\" :id=\"labelId\" data-toast-running-label class=\"mt-1 text-xs text-muted-foreground\">\n {{ label }}\n </div>\n </div>\n</template>\n"],"names":["_createElementBlock","_mergeProps","_createElementVNode","_unref"],"mappings":";;;;;;;AAiBA,MAAM,cAAwC;AAAA,EAC5C,CAAC,SAAS,OAAO,GAAG;AAAA,EACpB,CAAC,SAAS,IAAI,GAAG;AAAA,EACjB,CAAC,SAAS,OAAO,GAAG;AAAA,EACpB,CAAC,SAAS,OAAO,GAAG;AAAA,EACpB,CAAC,SAAS,MAAM,GAAG;AACrB;;;;;;;;;;AAeA,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAA;AACd,UAAM,SAAS,UAAA;AACf,UAAM,UAAU,MAAA;AAGhB,UAAM,aAAa,SAAS,MAAM,MAAM,cAAc,UAAU,CAAuB;AAGvF,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,CAAC,cAAc,UAAU,GAAG,aAAa,GAAG,OAAA,IAAW;AAC9E,aAAO;AAAA,IACT,CAAC;AAED,UAAM,cAAc,SAAS,MAAM,GAAG,WAAW,MAAM,KAA2B,CAAC;AAGnF,UAAM,MAAM,SAAS,MAAM;AACzB,YAAM,QAAQ,MAAM,SAAS;AAC7B,aAAO,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,KAAK,QAAQ,IAAI,QAAQ;AAAA,IACpF,CAAC;AAGD,UAAM,MAAM,SAAS,MAAM;AACzB,YAAM,QAAQ,MAAM,SAAS;AAC7B,aAAO,OAAO,UAAU,YAAY,CAAC,OAAO,MAAM,KAAK,IAAI,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,GAAG,KAAK,CAAC,IAAI;AAAA,IACvG,CAAC;AAED,UAAM,UAAU,SAAS,MAAO,IAAI,UAAU,SAAY,SAAa,IAAI,QAAQ,IAAI,QAAS,GAAI;AACpG,UAAM,QAAQ,SAAS,MAAM,MAAM,SAAS,SAAS,MAAS;AAC9D,UAAM,eAAe,SAAS,MAAM,MAAM,SAAS,OAAO,EAAE,kBAAkB,QAAW,UAAU,CAAC;AAEpG,UAAM,eAAe;AAAA,MAAS,MAC5B,GAAG,iEAAiE,MAAM,YAAY,UAAU,KAAK;AAAA,IAAA;AAIvG,UAAM,cAAc;AAAA,MAAS,MAC3B;AAAA,QACE;AAAA,QACA,YAAY,MAAM,QAAQ;AAAA,QAC1B,QAAQ,UAAU,SACd,wEACA;AAAA,MAAA;AAAA,IACN;;0BAKAA,mBAsBM,OAtBNC,WAsBM,EAtBD,sBAAA,GAAA,GAA2B,KAAA,OAAI,EAAG,OAAO,YAAA,MAAA,CAAW,GAAA;AAAA,QACvDC,mBAiBM,OAAA;AAAA,UAhBJ,MAAK;AAAA,UACL,0BAAA;AAAA,UACC,2BAAyB,QAAA,UAAY,SAAS,kBAAA;AAAA,UAC9C,iBAAe;AAAA,UACf,iBAAe,IAAA;AAAA,UACf,iBAAe,IAAA;AAAA,UACf,mBAAiB,WAAA;AAAA,UACjB,cAAY,WAAA,QAAa,SAAY,aAAA;AAAA,UACrC,oBAAkB,WAAA,SAAc,cAAQC,MAAA,OAAA,IAAU;AAAA,UAClD,sBAAO,aAAA,KAAY;AAAA,QAAA;UAEpBD,mBAIE,OAAA;AAAA,YAHA,2BAAA;AAAA,YACC,sBAAO,YAAA,KAAW;AAAA,YAClB,sBAAO,QAAA,UAAY,SAAY,qBAAwB,QAAA,KAAO,IAAA,CAAA;AAAA,UAAA;;QAGxD,MAAA,sBAAXF,mBAEM,OAAA;AAAA;UAFa,IAAIG,MAAA,OAAA;AAAA,UAAS,4BAAA;AAAA,UAAyB,OAAM;AAAA,QAAA,mBAC1D,MAAA,KAAK,GAAA,GAAA,UAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastRunningProgress2.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Defines the material a toast card is painted with. */
|
|
2
|
+
export declare const ToastSurface: {
|
|
3
|
+
/** Refers to the opaque popover fill. */
|
|
4
|
+
readonly Solid: "solid";
|
|
5
|
+
/** Refers to the translucent menu glass, which falls back to an opaque fill under reduced transparency. */
|
|
6
|
+
readonly Glass: "glass";
|
|
7
|
+
};
|
|
8
|
+
export type ToastSurface = (typeof ToastSurface)[keyof typeof ToastSurface];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const ToastSurface = {
|
|
2
|
+
/** Refers to the opaque popover fill. */
|
|
3
|
+
Solid: "solid",
|
|
4
|
+
/** Refers to the translucent menu glass, which falls back to an opaque fill under reduced transparency. */
|
|
5
|
+
Glass: "glass"
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
ToastSurface
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ToastSurface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastSurface.js","sources":["../../../../src/presentation/feedback/toast/ToastSurface.ts"],"sourcesContent":["/** Defines the material a toast card is painted with. */\nexport const ToastSurface = {\n /** Refers to the opaque popover fill. */\n Solid: 'solid',\n /** Refers to the translucent menu glass, which falls back to an opaque fill under reduced transparency. */\n Glass: 'glass',\n} as const;\n\nexport type ToastSurface = (typeof ToastSurface)[keyof typeof ToastSurface];\n"],"names":[],"mappings":"AACO,MAAM,eAAe;AAAA;AAAA,EAE1B,OAAO;AAAA;AAAA,EAEP,OAAO;AACT;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToastOptions } from './ToastOptions';
|
|
2
|
+
/** Represents a toast as the store holds it — the caller's options plus its identity and delivery order. */
|
|
3
|
+
export interface ToastEntry extends ToastOptions {
|
|
4
|
+
/** The toast's identity, assigned by the store. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** The epoch milliseconds when the toast was first shown. */
|
|
7
|
+
createdAtMs: number;
|
|
8
|
+
/** Delivery order, including while the toast is exiting. */
|
|
9
|
+
sequence: number;
|
|
10
|
+
/** Bumped on every `update` / dedup so the viewport can reset that toast's auto-dismiss timer. */
|
|
11
|
+
nonce: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastFocusExtensions.js","sources":["../../../../src/presentation/feedback/toastHost/ToastFocusExtensions.ts"],"sourcesContent":["/** Reports whether an element's focus shows its ring — the keyboard's focus, as opposed to a pointer's. */\nexport function isFocusVisible(element: Element | null): boolean {\n try {\n return element?.matches(':focus-visible') ?? false;\n } catch {\n // An engine without the selector cannot tell the two apart; keep the pointer behaviour.\n return false;\n }\n}\n"],"names":[],"mappings":"AACO,SAAS,eAAe,SAAkC;AAC/D,MAAI;AACF,WAAO,SAAS,QAAQ,gBAAgB,KAAK;AAAA,EAC/C,QAAQ;AAEN,WAAO;AAAA,EACT;AACF;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToastGroupLatest } from './ToastGroupLatest';
|
|
2
|
+
/** Represents the live notices a single toast stands for. */
|
|
3
|
+
export interface ToastGroup {
|
|
4
|
+
/** The number of live notices in the group. */
|
|
5
|
+
readonly count: number;
|
|
6
|
+
/** The newest notice, previewed while the group merges. */
|
|
7
|
+
readonly latest: ToastGroupLatest;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToastSeverity } from './ToastSeverity';
|
|
2
|
+
/** Represents the newest notice of a toast's group, as a plain-text preview. */
|
|
3
|
+
export interface ToastGroupLatest {
|
|
4
|
+
/** The newest notice's title, when it is plain text. */
|
|
5
|
+
readonly title?: string;
|
|
6
|
+
/** The newest notice's description, when it is plain text. */
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
/** The newest notice's severity. */
|
|
9
|
+
readonly severity?: ToastSeverity;
|
|
10
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NoticePriority } from '../../../feedback';
|
|
2
2
|
import { OverlayPosition } from '../../../foundation/styles';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export type ToastSeverity = NonNullable<ToastSimpleVariants['severity']>;
|
|
3
|
+
import { ToastSurface } from '../toast/ToastSurface';
|
|
4
|
+
import { ToastSeverity } from './ToastSeverity';
|
|
6
5
|
/** Defines how a toast shows the time left before it dismisses itself. */
|
|
7
6
|
export declare const ToastTimer: {
|
|
8
7
|
/** Refers to no countdown — the toast still expires on time. */
|
|
@@ -11,110 +10,44 @@ export declare const ToastTimer: {
|
|
|
11
10
|
readonly Bar: "bar";
|
|
12
11
|
/** Refers to a ring draining beside the close button. */
|
|
13
12
|
readonly Ring: "ring";
|
|
13
|
+
/** Refers to a ring around the close button, with a dim arc for elapsed time. */
|
|
14
|
+
readonly CloseRing: "closeRing";
|
|
14
15
|
/** Refers to the whole seconds left, counted beside the close button. */
|
|
15
16
|
readonly Seconds: "seconds";
|
|
16
17
|
};
|
|
17
18
|
export type ToastTimer = (typeof ToastTimer)[keyof typeof ToastTimer];
|
|
18
|
-
/**
|
|
19
|
-
export declare const
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
action?: ToastNode;
|
|
37
|
-
/**
|
|
38
|
-
* Sends a one-click report of the failure this toast shows; the toast renders a Report action that walks
|
|
39
|
-
* sending → reported (with the reference) → retry on failure. Pairs with `/reporting`'s `capture(error).send`.
|
|
40
|
-
*/
|
|
41
|
-
report?: ReportSend;
|
|
42
|
-
/** Shows the severity's own glyph when no `icon` is given. Default: the ToastHost's `showSeverityIcon`. */
|
|
43
|
-
showSeverityIcon?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Fully custom body — replaces the default `Toast` chrome (icon/title/description/close).
|
|
46
|
-
* Still animates + auto-dismisses; the content owns its close via the returned id.
|
|
47
|
-
*/
|
|
48
|
-
content?: ToastNode;
|
|
49
|
-
/**
|
|
50
|
-
* Fired when the toast is removed — auto-dismiss, close button, `dismiss(id)`, or `dismissAll()`.
|
|
51
|
-
* Not fired on a dedup-update. For undo cleanup / analytics.
|
|
52
|
-
*/
|
|
53
|
-
onDismiss?: () => void;
|
|
54
|
-
/** Deletes an explicitly retained notification; omitted for transient toasts. */
|
|
55
|
-
onDelete?: () => void;
|
|
56
|
-
/**
|
|
57
|
-
* Dedup key — a `toast` whose `key` is already showing updates that toast in place,
|
|
58
|
-
* refreshing its timer instead of stacking a duplicate.
|
|
59
|
-
*/
|
|
60
|
-
key?: string;
|
|
61
|
-
/** How this toast shows its time left. Default: the ToastHost's `timer`. */
|
|
62
|
-
timer?: ToastTimer;
|
|
63
|
-
/**
|
|
64
|
-
* Shows or hides this toast's countdown bar.
|
|
65
|
-
* @deprecated Use `timer` — `ToastTimer.Bar` or `ToastTimer.None`.
|
|
66
|
-
*/
|
|
67
|
-
progress?: boolean;
|
|
68
|
-
}
|
|
69
|
-
/** Content for a `toastHost.promise` phase — a title string, or a full partial options object. */
|
|
70
|
-
export type ToastContent = string | Partial<ToastOptions>;
|
|
71
|
-
/**
|
|
72
|
-
* Options for `toastHost.promise` — loading / success / error content
|
|
73
|
-
* (success + error may be a fn of the settled value).
|
|
74
|
-
*/
|
|
75
|
-
export interface ToastPromiseOptions<T> {
|
|
76
|
-
loading: ToastContent;
|
|
77
|
-
success: ToastContent | ((value: T) => ToastContent);
|
|
78
|
-
error: ToastContent | ((err: unknown) => ToastContent);
|
|
79
|
-
/** Auto-dismiss (ms) for the settled toast; defaults to the ToastHost's `defaultDuration`. */
|
|
80
|
-
duration?: number;
|
|
81
|
-
}
|
|
82
|
-
interface ToastEntry extends ToastOptions {
|
|
83
|
-
id: string;
|
|
84
|
-
/** Bumped on every `update` / dedup so the viewport can reset that toast's auto-dismiss timer. */
|
|
85
|
-
nonce: number;
|
|
86
|
-
}
|
|
87
|
-
type Listener = (toasts: ReadonlyArray<ToastEntry>) => void;
|
|
88
|
-
declare class ToastHostStore {
|
|
89
|
-
private items;
|
|
90
|
-
private listeners;
|
|
91
|
-
private idSeq;
|
|
92
|
-
toast(opts: ToastOptions): string;
|
|
93
|
-
/** Merges a patch into an existing toast (content + severity + duration), refreshing its timer. */
|
|
94
|
-
update(id: string, patch: Partial<ToastOptions>): void;
|
|
95
|
-
/** Shows a sticky loading toast; returns the full content-update and promise settlement chain. */
|
|
96
|
-
promise<T>(promise: Promise<T>, opts: ToastPromiseOptions<T>): Promise<T>;
|
|
97
|
-
dismiss(id: string): void;
|
|
98
|
-
dismissAll(): void;
|
|
99
|
-
subscribe(fn: Listener): () => void;
|
|
100
|
-
private emit;
|
|
101
|
-
}
|
|
102
|
-
export declare const toastHost: ToastHostStore;
|
|
103
|
-
/**
|
|
104
|
-
* The imperative toast API, bound to the app-wide store. A plain object — the
|
|
105
|
-
* store is a module singleton, so there is nothing per-instance to memoize.
|
|
106
|
-
*/
|
|
107
|
-
export declare function useToastHost(): {
|
|
108
|
-
toast: (opts: ToastOptions) => string;
|
|
109
|
-
update: (id: string, patch: Partial<ToastOptions>) => void;
|
|
110
|
-
promise: <T>(promise: Promise<T>, opts: ToastPromiseOptions<T>) => Promise<T>;
|
|
111
|
-
dismiss: (id: string) => void;
|
|
112
|
-
dismissAll: () => void;
|
|
19
|
+
/** Defines the entry and exit motion of a toast stack. */
|
|
20
|
+
export declare const ToastMotion: {
|
|
21
|
+
/** Refers to a horizontal slide in from the side of the selected corner. */
|
|
22
|
+
readonly SideSlide: "sideSlide";
|
|
23
|
+
/** Refers to a short move toward the selected top or bottom edge. */
|
|
24
|
+
readonly ShortSlide: "shortSlide";
|
|
25
|
+
/** Refers to a move by the card's height toward the selected top or bottom edge. */
|
|
26
|
+
readonly EdgeSlide: "edgeSlide";
|
|
27
|
+
/** Refers to a move toward the edge while scaling to full size. */
|
|
28
|
+
readonly SlideAndSettle: "slideAndSettle";
|
|
29
|
+
};
|
|
30
|
+
export type ToastMotion = (typeof ToastMotion)[keyof typeof ToastMotion];
|
|
31
|
+
/** Defines how a group shows a new arrival. */
|
|
32
|
+
export declare const ToastGroupMotion: {
|
|
33
|
+
/** Refers to a preview that passes over the stack and merges into its group. */
|
|
34
|
+
readonly Card: "card";
|
|
35
|
+
/** Refers to an in-place update whose count briefly glows. */
|
|
36
|
+
readonly Highlight: "highlight";
|
|
113
37
|
};
|
|
38
|
+
export type ToastGroupMotion = (typeof ToastGroupMotion)[keyof typeof ToastGroupMotion];
|
|
39
|
+
/** Defines props for the toast viewport. */
|
|
114
40
|
export interface ToastHostProps {
|
|
115
|
-
/**
|
|
41
|
+
/** The corner or centered edge the stack grows from. Defaults to top-right. */
|
|
116
42
|
readonly position?: OverlayPosition;
|
|
43
|
+
/** The entry and exit motion of the cards. Defaults to `ToastMotion.SideSlide`. */
|
|
44
|
+
readonly motion?: ToastMotion;
|
|
45
|
+
/** The motion a group shows for a new arrival. Defaults to `ToastGroupMotion.Highlight`. */
|
|
46
|
+
readonly groupMotion?: ToastGroupMotion;
|
|
47
|
+
/** The maximum number of cards shown at rest, subject to viewport height. Default 5. */
|
|
117
48
|
readonly max?: number;
|
|
49
|
+
/** The time cards take to slide together after an exit, in ms. Default 200. Set to 0 for an instant reflow. */
|
|
50
|
+
readonly moveDuration?: number;
|
|
118
51
|
/**
|
|
119
52
|
* The auto-dismiss delay in ms for a severity missing from `durations`; per-toast `duration` overrides.
|
|
120
53
|
* Default 5000. `Infinity` to disable.
|
|
@@ -125,32 +58,44 @@ export interface ToastHostProps {
|
|
|
125
58
|
* back to `defaultDuration`. Default `DefaultToastDurations` — errors stay 8 seconds. Replaces, never merges.
|
|
126
59
|
*/
|
|
127
60
|
readonly durations?: Readonly<Partial<Record<ToastSeverity, number>>>;
|
|
61
|
+
/** The display lifetime in ms per priority; unclassified notices count as Normal. */
|
|
62
|
+
readonly priorityDurations?: Readonly<Partial<Record<NoticePriority, number>>>;
|
|
63
|
+
/** The switch for holding the expiry clocks while the stack is hovered or focused. Default `true`. */
|
|
128
64
|
readonly canPauseOnHover?: boolean;
|
|
65
|
+
/** The default for showing Pin on timed cards; a toast's `canPin` overrides. Default `true`. */
|
|
66
|
+
readonly canPin?: boolean;
|
|
67
|
+
/** The space between cards, in px. Default 8. */
|
|
129
68
|
readonly gap?: number;
|
|
130
69
|
/**
|
|
131
|
-
*
|
|
132
|
-
* the expiry timer and restarts
|
|
133
|
-
*
|
|
134
|
-
* seconds. Default `ToastTimer.None`.
|
|
70
|
+
* The display each auto-dismissing toast shows its time left in; a toast's `timer` overrides. Every display
|
|
71
|
+
* pauses with the expiry timer and restarts on update. Pinned, sticky and running toasts show none. Reduced
|
|
72
|
+
* motion drops bars and rings. Custom `content` uses a bar for any visible timer. Default `ToastTimer.None`.
|
|
135
73
|
*/
|
|
136
74
|
readonly timer?: ToastTimer;
|
|
75
|
+
/** The switch for each severity's glyph on toasts given no `icon`; a toast's `showSeverityIcon` overrides. */
|
|
76
|
+
readonly showSeverityIcon?: boolean;
|
|
77
|
+
/** The card material; a toast's `surface` overrides. Default `ToastSurface.Solid`. */
|
|
78
|
+
readonly surface?: ToastSurface;
|
|
137
79
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
80
|
+
* The key that moves focus to the card nearest the anchor, or `false` for none; Escape returns it. The stack's
|
|
81
|
+
* name includes it. Default `'F8'`.
|
|
140
82
|
*/
|
|
141
|
-
readonly
|
|
142
|
-
/** Shows each severity's glyph on toasts given no `icon`; a toast's `showSeverityIcon` overrides. Default `true`. */
|
|
143
|
-
readonly showSeverityIcon?: boolean;
|
|
83
|
+
readonly hotkey?: string | false;
|
|
144
84
|
}
|
|
145
85
|
declare const _default: import('vue').DefineComponent<ToastHostProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToastHostProps> & Readonly<{}>, {
|
|
146
86
|
readonly position: OverlayPosition;
|
|
87
|
+
readonly surface: ToastSurface;
|
|
147
88
|
readonly max: number;
|
|
148
89
|
readonly gap: number;
|
|
149
90
|
readonly canPauseOnHover: boolean;
|
|
91
|
+
readonly canPin: boolean;
|
|
150
92
|
readonly timer: ToastTimer;
|
|
151
93
|
readonly showSeverityIcon: boolean;
|
|
94
|
+
readonly hotkey: string | false;
|
|
95
|
+
readonly motion: ToastMotion;
|
|
96
|
+
readonly groupMotion: ToastGroupMotion;
|
|
97
|
+
readonly moveDuration: number;
|
|
152
98
|
readonly defaultDuration: number;
|
|
153
99
|
readonly durations: Readonly<Partial<Record<ToastSeverity, number>>>;
|
|
154
|
-
readonly showProgress: boolean;
|
|
155
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
156
101
|
export default _default;
|