@ulu/frontend-vue 0.6.18 → 0.6.19
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/mcp-data.json +4786 -4786
- package/dist/plugins/toast/UluToast.vue.js +26 -26
- package/lib/plugins/toast/UluToast.vue +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as f, createElementBlock as a, openBlock as
|
|
1
|
+
import { computed as f, createElementBlock as a, openBlock as o, normalizeClass as e, createCommentVNode as n, createElementVNode as r, renderSlot as m, createBlock as B, toDisplayString as d, Fragment as g, renderList as S, createVNode as h, nextTick as E } from "vue";
|
|
2
2
|
import v from "../../components/elements/UluIcon.vue.js";
|
|
3
3
|
import { mergeClassLookups as L } from "../../utils/props.js";
|
|
4
4
|
const $ = ["onClick"], T = {
|
|
@@ -23,16 +23,16 @@ const $ = ["onClick"], T = {
|
|
|
23
23
|
actions: "type-small-x",
|
|
24
24
|
action: "button button--small button--outline",
|
|
25
25
|
closeButton: "button button--icon button--transparent"
|
|
26
|
-
},
|
|
26
|
+
}, u = t, s = f(() => L(
|
|
27
27
|
k,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
u.classes,
|
|
29
|
+
u.toast?.classes
|
|
30
30
|
)), y = (l, c) => {
|
|
31
|
-
|
|
32
|
-
c(l,
|
|
31
|
+
u.toast.close(), E(() => {
|
|
32
|
+
c(l, u.toast, c);
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
return (l, c) => (
|
|
35
|
+
return (l, c) => (o(), a("div", {
|
|
36
36
|
class: e(["toast", [
|
|
37
37
|
{
|
|
38
38
|
"toast--persistent": !t.toast.duration
|
|
@@ -40,52 +40,52 @@ const $ = ["onClick"], T = {
|
|
|
40
40
|
t.toast?.class
|
|
41
41
|
]])
|
|
42
42
|
}, [
|
|
43
|
-
t.toast.icon || l.$slots.icon ? (
|
|
43
|
+
t.toast.icon || l.$slots.icon ? (o(), a("div", {
|
|
44
44
|
key: 0,
|
|
45
|
-
class: e(["toast__icon",
|
|
45
|
+
class: e(["toast__icon", s.value.icon])
|
|
46
46
|
}, [
|
|
47
47
|
m(l.$slots, "icon", { toast: t.toast }, () => [
|
|
48
|
-
t.toast.icon ? (
|
|
48
|
+
t.toast.icon ? (o(), B(v, {
|
|
49
49
|
key: 0,
|
|
50
50
|
icon: t.toast.icon
|
|
51
51
|
}, null, 8, ["icon"])) : n("", !0)
|
|
52
52
|
])
|
|
53
53
|
], 2)) : n("", !0),
|
|
54
54
|
r("div", {
|
|
55
|
-
class: e(["toast__content",
|
|
55
|
+
class: e(["toast__content", s.value.content])
|
|
56
56
|
}, [
|
|
57
57
|
m(l.$slots, "content", { toast: t.toast }, () => [
|
|
58
|
-
t.toast.title ? (
|
|
58
|
+
t.toast.title ? (o(), a("div", {
|
|
59
59
|
key: 0,
|
|
60
|
-
class: e(["toast__header",
|
|
60
|
+
class: e(["toast__header", s.value.header])
|
|
61
61
|
}, [
|
|
62
62
|
r("strong", {
|
|
63
|
-
class: e(["toast__title",
|
|
63
|
+
class: e(["toast__title", s.value.title])
|
|
64
64
|
}, d(t.toast.title), 3),
|
|
65
|
-
t.toast.date ? (
|
|
65
|
+
t.toast.date ? (o(), a("span", {
|
|
66
66
|
key: 0,
|
|
67
|
-
class: e(["toast__date",
|
|
67
|
+
class: e(["toast__date", s.value.date])
|
|
68
68
|
}, d(t.toast.date), 3)) : n("", !0)
|
|
69
69
|
], 2)) : n("", !0),
|
|
70
|
-
t.toast.description ? (
|
|
70
|
+
t.toast.description ? (o(), a("div", {
|
|
71
71
|
key: 1,
|
|
72
|
-
class: e(["toast__body",
|
|
72
|
+
class: e(["toast__body", s.value.body])
|
|
73
73
|
}, d(t.toast.description), 3)) : n("", !0)
|
|
74
74
|
])
|
|
75
75
|
], 2),
|
|
76
|
-
t.toast.actions?.length ? (
|
|
76
|
+
t.toast.actions?.length ? (o(), a("div", {
|
|
77
77
|
key: 1,
|
|
78
|
-
class: e(["toast__actions",
|
|
78
|
+
class: e(["toast__actions", s.value.actions])
|
|
79
79
|
}, [
|
|
80
|
-
(
|
|
80
|
+
(o(!0), a(g, null, S(t.toast.actions, (i, b) => (o(), a("button", {
|
|
81
81
|
key: b,
|
|
82
|
-
class: e(["toast__action",
|
|
83
|
-
onClick: (C) => y(C,
|
|
84
|
-
}, d(
|
|
82
|
+
class: e(["toast__action", [s.value.action, i.class]]),
|
|
83
|
+
onClick: (C) => y(C, i)
|
|
84
|
+
}, d(i.label), 11, $))), 128))
|
|
85
85
|
], 2)) : n("", !0),
|
|
86
86
|
r("button", {
|
|
87
|
-
class: e(["toast__close",
|
|
88
|
-
onClick: c[0] || (c[0] = (...
|
|
87
|
+
class: e(["toast__close", s.value.closeButton]),
|
|
88
|
+
onClick: c[0] || (c[0] = (...i) => t.toast.close && t.toast.close(...i))
|
|
89
89
|
}, [
|
|
90
90
|
h(v, { icon: "type:close" })
|
|
91
91
|
], 2)
|
package/package.json
CHANGED