@ulu/frontend-vue 0.2.0-beta.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
- package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
- package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluDropdown.vue.js +22 -15
- package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
- package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluModal.vue.js +139 -191
- package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
- package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
- package/dist/components/elements/UluAlert.vue.d.ts +29 -144
- package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
- package/dist/components/elements/UluAlert.vue.js +39 -50
- package/dist/components/elements/UluBadge.vue.d.ts +6 -6
- package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
- package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
- package/dist/components/elements/UluBadgeStack.vue.js +12 -9
- package/dist/components/elements/UluButton.vue.d.ts +47 -177
- package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButton.vue.js +59 -72
- package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
- package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
- package/dist/components/elements/UluCallout.vue.d.ts +20 -25
- package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
- package/dist/components/elements/UluCallout.vue.js +11 -16
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
- package/dist/components/elements/UluCard.vue.d.ts +2 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluDefinitionList.vue.js +32 -28
- package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
- package/dist/components/elements/UluImage.vue.d.ts +14 -0
- package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
- package/dist/components/elements/UluImage.vue.js +53 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +14 -13
- package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
- package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
- package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluScrollSlider.vue.js +146 -0
- package/dist/components/elements/UluSlider.vue.d.ts +57 -0
- package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluSlider.vue.js +277 -0
- package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
- package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
- package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
- package/dist/components/layout/UluTitleRail.vue.js +51 -46
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
- package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
- package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenu.vue.js +85 -84
- package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
- package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenuStack.vue.js +26 -18
- package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
- package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluNavStrip.vue.js +43 -31
- package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
- package/dist/components/systems/facets/useFacets.d.ts +3 -0
- package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
- package/dist/components/systems/facets/useFacets.js +124 -112
- package/dist/components/systems/index.d.ts +0 -3
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
- package/dist/components/utils/UluAction.vue.d.ts +36 -0
- package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
- package/dist/components/utils/UluAction.vue.js +59 -0
- package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
- package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalText.vue.js +12 -14
- package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
- package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
- package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
- package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
- package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
- package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
- package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
- package/dist/composables/useModifiers.d.ts +20 -25
- package/dist/composables/useModifiers.d.ts.map +1 -1
- package/dist/index.js +206 -200
- package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
- package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
- package/dist/plugins/modals/index.js +6 -6
- package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
- package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
- package/dist/plugins/toast/UluToast.vue.js +68 -77
- package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
- package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
- package/dist/plugins/toast/defaults.d.ts +40 -35
- package/dist/plugins/toast/defaults.js +2 -2
- package/dist/plugins/toast/index.js +4 -4
- package/dist/plugins/toast/store.d.ts +40 -35
- package/dist/plugins/toast/store.d.ts.map +1 -1
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -0
- package/dist/utils/props.js +6 -0
- package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
- package/lib/components/collapsible/UluDropdown.vue +5 -1
- package/lib/components/collapsible/UluModal.vue +278 -298
- package/lib/components/collapsible/UluTabGroup.vue +21 -6
- package/lib/components/elements/UluAlert.vue +38 -51
- package/lib/components/elements/UluBadgeStack.vue +4 -1
- package/lib/components/elements/UluButton.vue +105 -129
- package/lib/components/elements/UluButtonVerbose.vue +67 -89
- package/lib/components/elements/UluCallout.vue +15 -19
- package/lib/components/elements/UluCaptionedFigure.vue +40 -0
- package/lib/components/elements/UluDefinitionList.vue +27 -6
- package/lib/components/elements/UluImage.vue +56 -0
- package/lib/components/elements/UluList.vue +1 -0
- package/lib/components/elements/UluOverflowScroller.vue +140 -0
- package/lib/components/elements/UluScrollSlider.vue +150 -0
- package/lib/components/elements/UluSlider.vue +488 -0
- package/lib/components/index.js +10 -0
- package/lib/components/layout/UluTitleRail.vue +55 -48
- package/lib/components/navigation/UluBreadcrumb.vue +29 -34
- package/lib/components/navigation/UluMenu.vue +60 -71
- package/lib/components/navigation/UluMenuStack.vue +6 -1
- package/lib/components/navigation/UluNavStrip.vue +43 -31
- package/lib/components/systems/facets/useFacets.js +33 -17
- package/lib/components/systems/index.js +0 -4
- package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
- package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
- package/lib/components/utils/UluAction.vue +81 -0
- package/lib/components/utils/UluConditionalText.vue +13 -16
- package/lib/components/utils/UluConditionalWrapper.vue +5 -1
- package/lib/components/utils/UluPlaceholderImage.vue +44 -46
- package/lib/components/utils/UluPlaceholderText.vue +10 -13
- package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
- package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
- package/lib/composables/useModifiers.js +21 -26
- package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
- package/lib/plugins/toast/UluToast.vue +28 -34
- package/lib/plugins/toast/UluToastDisplay.vue +9 -15
- package/lib/utils/props.js +8 -0
- package/package.json +9 -5
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
- package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
- package/lib/components/systems/slider/UluSlideShow.vue +0 -336
- package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
|
@@ -1,52 +1,27 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
content: string;
|
|
13
|
-
date: string;
|
|
14
|
-
actions: string;
|
|
15
|
-
action: string;
|
|
16
|
-
closeButton: string;
|
|
17
|
-
};
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
classes: Record<string, any>;
|
|
8
|
+
toast?: Record<string, any> | undefined;
|
|
9
|
+
$props: {
|
|
10
|
+
readonly classes?: Record<string, any> | undefined;
|
|
11
|
+
readonly toast?: Record<string, any> | undefined;
|
|
18
12
|
};
|
|
19
|
-
}>, {}, {}, {}, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
classes: {
|
|
30
|
-
type: ObjectConstructor;
|
|
31
|
-
default: () => {
|
|
32
|
-
content: string;
|
|
33
|
-
date: string;
|
|
34
|
-
actions: string;
|
|
35
|
-
action: string;
|
|
36
|
-
closeButton: string;
|
|
37
|
-
};
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
type __VLS_TemplateResult = {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
icon?(_: {
|
|
18
|
+
toast: Record<string, any> | undefined;
|
|
19
|
+
}): any;
|
|
20
|
+
content?(_: {
|
|
21
|
+
toast: Record<string, any> | undefined;
|
|
22
|
+
}): any;
|
|
38
23
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
UluIcon: import('vue').DefineComponent<{}, {
|
|
43
|
-
spaced: boolean;
|
|
44
|
-
icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
45
|
-
$props: {
|
|
46
|
-
readonly spaced?: boolean | undefined;
|
|
47
|
-
readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
48
|
-
};
|
|
49
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
51
|
-
export default _default;
|
|
24
|
+
refs: {};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
52
27
|
//# sourceMappingURL=UluToast.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;;
|
|
1
|
+
{"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;wBA6PqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;sPAQG"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name: "UluToast",
|
|
6
|
-
components: {
|
|
7
|
-
UluIcon: k
|
|
8
|
-
},
|
|
1
|
+
import { createElementBlock as a, openBlock as e, normalizeClass as s, createCommentVNode as o, createElementVNode as u, renderSlot as m, createBlock as f, toDisplayString as i, Fragment as v, renderList as B, createVNode as C, nextTick as g } from "vue";
|
|
2
|
+
import r from "../../components/elements/UluIcon.vue.js";
|
|
3
|
+
const h = ["onClick"], V = {
|
|
4
|
+
__name: "UluToast",
|
|
9
5
|
props: {
|
|
10
6
|
/**
|
|
11
7
|
* Toast configuration
|
|
@@ -25,77 +21,72 @@ const U = {
|
|
|
25
21
|
})
|
|
26
22
|
}
|
|
27
23
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
c(n, t, c);
|
|
24
|
+
setup(t) {
|
|
25
|
+
const d = t, y = (n, c) => {
|
|
26
|
+
d.toast.close(), g(() => {
|
|
27
|
+
c(n, d.toast, c);
|
|
33
28
|
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"toast--persistent": !t.toast.duration
|
|
43
|
-
},
|
|
44
|
-
t.toast?.class
|
|
45
|
-
]])
|
|
46
|
-
}, [
|
|
47
|
-
t.toast.icon || n.$slots.icon ? (e(), o("div", {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: s(["toast__icon", t.classes.icon])
|
|
29
|
+
};
|
|
30
|
+
return (n, c) => (e(), a("div", {
|
|
31
|
+
class: s(["toast", [
|
|
32
|
+
{
|
|
33
|
+
"toast--persistent": !t.toast.duration
|
|
34
|
+
},
|
|
35
|
+
t.toast?.class
|
|
36
|
+
]])
|
|
50
37
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
], 2)) : a("", !0),
|
|
58
|
-
d("div", {
|
|
59
|
-
class: s(["toast__content", t.classes.content])
|
|
60
|
-
}, [
|
|
61
|
-
_(n.$slots, "content", { toast: t.toast }, () => [
|
|
62
|
-
t.toast.title ? (e(), o("div", {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: s(["toast__header", t.classes.header])
|
|
65
|
-
}, [
|
|
66
|
-
d("strong", {
|
|
67
|
-
class: s(["toast__title", t.classes.title])
|
|
68
|
-
}, i(t.toast.title), 3),
|
|
69
|
-
t.toast.date ? (e(), o("span", {
|
|
38
|
+
t.toast.icon || n.$slots.icon ? (e(), a("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: s(["toast__icon", t.classes.icon])
|
|
41
|
+
}, [
|
|
42
|
+
m(n.$slots, "icon", { toast: t.toast }, () => [
|
|
43
|
+
t.toast.icon ? (e(), f(r, {
|
|
70
44
|
key: 0,
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
]
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
45
|
+
icon: t.toast.icon
|
|
46
|
+
}, null, 8, ["icon"])) : o("", !0)
|
|
47
|
+
])
|
|
48
|
+
], 2)) : o("", !0),
|
|
49
|
+
u("div", {
|
|
50
|
+
class: s(["toast__content", t.classes.content])
|
|
51
|
+
}, [
|
|
52
|
+
m(n.$slots, "content", { toast: t.toast }, () => [
|
|
53
|
+
t.toast.title ? (e(), a("div", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: s(["toast__header", t.classes.header])
|
|
56
|
+
}, [
|
|
57
|
+
u("strong", {
|
|
58
|
+
class: s(["toast__title", t.classes.title])
|
|
59
|
+
}, i(t.toast.title), 3),
|
|
60
|
+
t.toast.date ? (e(), a("span", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: s(["toast__date", t.classes.date])
|
|
63
|
+
}, i(t.toast.date), 3)) : o("", !0)
|
|
64
|
+
], 2)) : o("", !0),
|
|
65
|
+
t.toast.description ? (e(), a("div", {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: s(["toast__body", t.classes.body])
|
|
68
|
+
}, i(t.toast.description), 3)) : o("", !0)
|
|
69
|
+
])
|
|
70
|
+
], 2),
|
|
71
|
+
t.toast.actions?.length ? (e(), a("div", {
|
|
72
|
+
key: 1,
|
|
73
|
+
class: s(["toast__actions", t.classes.actions])
|
|
74
|
+
}, [
|
|
75
|
+
(e(!0), a(v, null, B(t.toast.actions, (l, k) => (e(), a("button", {
|
|
76
|
+
key: k,
|
|
77
|
+
class: s(["toast__action", t.classes.action]),
|
|
78
|
+
onClick: (b) => y(b, l)
|
|
79
|
+
}, i(l.label), 11, h))), 128))
|
|
80
|
+
], 2)) : o("", !0),
|
|
81
|
+
u("button", {
|
|
82
|
+
class: s(["toast__close", t.classes.closeButton]),
|
|
83
|
+
onClick: c[0] || (c[0] = (...l) => t.toast.close && t.toast.close(...l))
|
|
84
|
+
}, [
|
|
85
|
+
C(r, { icon: "type:close" })
|
|
86
|
+
], 2)
|
|
87
|
+
], 2));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
99
90
|
export {
|
|
100
|
-
|
|
91
|
+
V as default
|
|
101
92
|
};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
2
|
-
toasts: never[];
|
|
3
|
-
pluginOptions: {
|
|
4
|
-
teleportTo: string;
|
|
5
|
-
position: string[];
|
|
6
|
-
};
|
|
7
|
-
}, {
|
|
8
|
-
classes(): string[];
|
|
9
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
2
|
export default _default;
|
|
11
3
|
//# sourceMappingURL=UluToastDisplay.vue.d.ts.map
|
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { computed as i, createBlock as a, openBlock as e, Teleport as p, unref as s, createVNode as m, TransitionGroup as u, normalizeClass as _, withCtx as d, createElementBlock as f, Fragment as k, renderList as T, resolveDynamicComponent as g } from "vue";
|
|
2
|
+
import { store as v } from "./store.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
const h = {
|
|
5
|
+
__name: "UluToastDisplay",
|
|
6
|
+
setup(x) {
|
|
7
|
+
const { toasts: c, pluginOptions: o } = v, l = i(() => {
|
|
8
|
+
const { position: n } = o;
|
|
9
|
+
return n.map((r) => `toast-container--${r}`);
|
|
10
|
+
});
|
|
11
|
+
return (n, r) => (e(), a(p, {
|
|
12
|
+
to: s(o).teleportTo
|
|
13
|
+
}, [
|
|
14
|
+
m(u, {
|
|
15
|
+
class: _(["toast-container", l.value]),
|
|
16
|
+
name: "toast-animation",
|
|
17
|
+
tag: "div"
|
|
18
|
+
}, {
|
|
19
|
+
default: d(() => [
|
|
20
|
+
(e(!0), f(k, null, T(s(c), (t) => (e(), a(g(t.component), {
|
|
21
|
+
key: t.uid,
|
|
22
|
+
toast: t
|
|
23
|
+
}, null, 8, ["toast"]))), 128))
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["class"])
|
|
27
|
+
], 8, ["to"]));
|
|
16
28
|
}
|
|
17
29
|
};
|
|
18
|
-
function x(t, o, n, y, r, i) {
|
|
19
|
-
return e(), a(p, {
|
|
20
|
-
to: r.pluginOptions.teleportTo
|
|
21
|
-
}, [
|
|
22
|
-
c(m, {
|
|
23
|
-
class: u(["toast-container", i.classes]),
|
|
24
|
-
name: "toast-animation",
|
|
25
|
-
tag: "div"
|
|
26
|
-
}, {
|
|
27
|
-
default: d(() => [
|
|
28
|
-
(e(!0), f(_, null, g(r.toasts, (s) => (e(), a(C(s.component), {
|
|
29
|
-
key: s.uid,
|
|
30
|
-
toast: s
|
|
31
|
-
}, null, 8, ["toast"]))), 128))
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
}, 8, ["class"])
|
|
35
|
-
], 8, ["to"]);
|
|
36
|
-
}
|
|
37
|
-
const v = /* @__PURE__ */ T(k, [["render", x]]);
|
|
38
30
|
export {
|
|
39
|
-
|
|
31
|
+
h as default
|
|
40
32
|
};
|
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
namespace toastOptions {
|
|
3
|
-
let component: import("vue").Raw<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
actions: string;
|
|
11
|
-
action: string;
|
|
12
|
-
closeButton: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}>, {}, {}, {}, {
|
|
16
|
-
handleAction(event: any, action: any): void;
|
|
17
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
toast: ObjectConstructor;
|
|
19
|
-
classes: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
default: () => {
|
|
22
|
-
content: string;
|
|
23
|
-
date: string;
|
|
24
|
-
actions: string;
|
|
25
|
-
action: string;
|
|
26
|
-
closeButton: string;
|
|
3
|
+
let component: import("vue").Raw<{
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
5
|
+
classes: Record<string, any>;
|
|
6
|
+
toast?: Record<string, any> | undefined;
|
|
7
|
+
$props: {
|
|
8
|
+
readonly classes?: Record<string, any> | undefined;
|
|
9
|
+
readonly toast?: Record<string, any> | undefined;
|
|
27
10
|
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
19
|
+
classes: Record<string, any>;
|
|
20
|
+
toast?: Record<string, any> | undefined;
|
|
35
21
|
$props: {
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
22
|
+
readonly classes?: Record<string, any> | undefined;
|
|
23
|
+
readonly toast?: Record<string, any> | undefined;
|
|
38
24
|
};
|
|
39
|
-
}, {}, {}, {},
|
|
40
|
-
|
|
25
|
+
}, {}, {}, {}, {}>;
|
|
26
|
+
__isFragment?: never;
|
|
27
|
+
__isTeleport?: never;
|
|
28
|
+
__isSuspense?: never;
|
|
29
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
30
|
+
classes: Record<string, any>;
|
|
31
|
+
toast?: Record<string, any> | undefined;
|
|
32
|
+
$props: {
|
|
33
|
+
readonly classes?: Record<string, any> | undefined;
|
|
34
|
+
readonly toast?: Record<string, any> | undefined;
|
|
35
|
+
};
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
37
|
+
$slots: {
|
|
38
|
+
icon?(_: {
|
|
39
|
+
toast: Record<string, any> | undefined;
|
|
40
|
+
}): any;
|
|
41
|
+
content?(_: {
|
|
42
|
+
toast: Record<string, any> | undefined;
|
|
43
|
+
}): any;
|
|
44
|
+
};
|
|
45
|
+
})>;
|
|
41
46
|
let duration: number;
|
|
42
47
|
let actions: never[];
|
|
43
48
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { markRaw as o } from "vue";
|
|
2
2
|
import t from "./UluToast.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const p = {
|
|
4
4
|
toastOptions: {
|
|
5
5
|
/**
|
|
6
6
|
* Component used to render the toast in the display
|
|
@@ -25,5 +25,5 @@ const a = {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
p as default
|
|
29
29
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { store as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { store as i, api as s } from "./store.js";
|
|
2
|
+
import n from "./UluToast.vue.js";
|
|
3
|
+
import l from "./UluToastDisplay.vue.js";
|
|
4
4
|
function e(o, t = {}) {
|
|
5
|
-
|
|
5
|
+
i.setPluginOptions(t?.plugin), i.setToastOptions(t?.toast), o.component("UluToast", n), o.component("UluToastDisplay", l), o.config.globalProperties.$uluToast = s, o.provide("uluToast", s);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
e as default
|
|
@@ -8,44 +8,49 @@ export const store: {
|
|
|
8
8
|
position: string[];
|
|
9
9
|
};
|
|
10
10
|
toastOptions: {
|
|
11
|
-
component: import('vue').Raw<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
actions: string;
|
|
19
|
-
action: string;
|
|
20
|
-
closeButton: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}>, {}, {}, {}, {
|
|
24
|
-
handleAction(event: any, action: any): void;
|
|
25
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
-
toast: ObjectConstructor;
|
|
27
|
-
classes: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
default: () => {
|
|
30
|
-
content: string;
|
|
31
|
-
date: string;
|
|
32
|
-
actions: string;
|
|
33
|
-
action: string;
|
|
34
|
-
closeButton: string;
|
|
11
|
+
component: import('vue').Raw<{
|
|
12
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
13
|
+
classes: Record<string, any>;
|
|
14
|
+
toast?: Record<string, any> | undefined;
|
|
15
|
+
$props: {
|
|
16
|
+
readonly classes?: Record<string, any> | undefined;
|
|
17
|
+
readonly toast?: Record<string, any> | undefined;
|
|
35
18
|
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
27
|
+
classes: Record<string, any>;
|
|
28
|
+
toast?: Record<string, any> | undefined;
|
|
43
29
|
$props: {
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
30
|
+
readonly classes?: Record<string, any> | undefined;
|
|
31
|
+
readonly toast?: Record<string, any> | undefined;
|
|
46
32
|
};
|
|
47
|
-
}, {}, {}, {},
|
|
48
|
-
|
|
33
|
+
}, {}, {}, {}, {}>;
|
|
34
|
+
__isFragment?: never;
|
|
35
|
+
__isTeleport?: never;
|
|
36
|
+
__isSuspense?: never;
|
|
37
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
38
|
+
classes: Record<string, any>;
|
|
39
|
+
toast?: Record<string, any> | undefined;
|
|
40
|
+
$props: {
|
|
41
|
+
readonly classes?: Record<string, any> | undefined;
|
|
42
|
+
readonly toast?: Record<string, any> | undefined;
|
|
43
|
+
};
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
45
|
+
$slots: {
|
|
46
|
+
icon?(_: {
|
|
47
|
+
toast: Record<string, any> | undefined;
|
|
48
|
+
}): any;
|
|
49
|
+
content?(_: {
|
|
50
|
+
toast: Record<string, any> | undefined;
|
|
51
|
+
}): any;
|
|
52
|
+
};
|
|
53
|
+
})>;
|
|
49
54
|
duration: number;
|
|
50
55
|
actions: never[];
|
|
51
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/store.js"],"names":[],"mappings":"AAMA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/store.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBG;;IAMD;;;;OAIG;IACH,sBAHW,MAAM,OAYhB;IACD;;;OAGG;IACH,gCAKC;IACD;;OAEG;IACH,2BAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../lib/utils/props.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wDAEC"}
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
</slot>
|
|
12
12
|
</template>
|
|
13
13
|
<template #default>
|
|
14
|
-
<UluMenuStack :items="items"
|
|
14
|
+
<UluMenuStack :items="items">
|
|
15
|
+
<template v-for="(_, name) in $slots" #[name]="slotData">
|
|
16
|
+
<slot :name="name" v-bind="slotData" />
|
|
17
|
+
</template>
|
|
18
|
+
</UluMenuStack>
|
|
15
19
|
</template>
|
|
16
20
|
</UluPopover>
|
|
17
21
|
</template>
|