adverich-kun-ui 0.1.366 → 0.1.368
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/KunAutocomplete/src/composables/useAutocomplete.js +41 -40
- package/dist/components/KunDialog/src/components/KunDialog.vue.js +112 -2
- package/dist/components/KunListItem/src/components/KunListItem.vue.js +63 -59
- package/dist/components/KunTable/src/components/KunTableFilter.vue.js +1 -1
- package/dist/index.js +70 -70
- package/package.json +1 -1
- package/dist/components/KunDialog/src/components/KunDialog.vue2.js +0 -114
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ref as o, computed as M, watch as H, nextTick as F } from "vue";
|
|
2
|
-
import { isArray as j, isObject as
|
|
3
|
-
function U(t,
|
|
4
|
-
const l = o(null), d = o(null), y = o(null), f = o(!1), v = o(""), N = (e, n) => n.split(".").reduce((u, r) => u && u[r] !== void 0 ? u[r] : null, e),
|
|
5
|
-
function
|
|
2
|
+
import { isArray as j, isObject as h, fullCopy as L } from "../../../../utils/utils.js";
|
|
3
|
+
function U(t, x, i, s) {
|
|
4
|
+
const l = o(null), d = o(null), y = o(null), f = o(!1), v = o(""), N = (e, n) => n.split(".").reduce((u, r) => u && u[r] !== void 0 ? u[r] : null, e), B = M(() => l.value ? j(l.value) ? l.value.length ? O(l.value, t.itemTitle, "hasDefault") : t.placeholderText : h(l.value) ? O(l.value, t.itemTitle, "hasDefault") : l.value.toString() : s.value.length ? t.placeholderText : t.textNoItems), R = M(() => t.itemText.includes(",") ? t.itemText.split(",") : t.itemText);
|
|
5
|
+
function O(e, n, u) {
|
|
6
6
|
var r;
|
|
7
|
-
if (
|
|
7
|
+
if (h(e)) {
|
|
8
8
|
if (n) {
|
|
9
9
|
if (j(n))
|
|
10
|
-
return n.map((
|
|
10
|
+
return n.map((c) => e[c] ?? "No definido").join(" - ");
|
|
11
11
|
if (n.includes(","))
|
|
12
|
-
return n.split(",").map((
|
|
12
|
+
return n.split(",").map((c) => e[c]).join(" - ");
|
|
13
13
|
if (n.includes(".")) {
|
|
14
|
-
const
|
|
14
|
+
const c = n.split(".");
|
|
15
15
|
let a = e;
|
|
16
|
-
for (const
|
|
17
|
-
a = a[
|
|
16
|
+
for (const b of c)
|
|
17
|
+
a = a[b];
|
|
18
18
|
return a;
|
|
19
19
|
}
|
|
20
20
|
return !t.returnObject && typeof e[n] == "number" || e[n] !== void 0 && e[n] !== null ? e[n].toString() : "";
|
|
@@ -22,30 +22,30 @@ function U(t, h, c, s) {
|
|
|
22
22
|
if (u)
|
|
23
23
|
return Object.values(e)[0];
|
|
24
24
|
}
|
|
25
|
-
return j(e) ? t.returnObject ? e.map((
|
|
25
|
+
return j(e) ? t.returnObject ? e.map((c) => c[n]).join(" - ") : e.map((c) => c).join(" - ") : u && typeof e != "number" ? e.includes(",") ? e.split(",") : e : ((r = e == null ? void 0 : e.toString) == null ? void 0 : r.call(e)) ?? "";
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function V(e) {
|
|
28
28
|
try {
|
|
29
29
|
let n = null;
|
|
30
30
|
if (l.value = L(e), !t.multiple)
|
|
31
|
-
t.returnObject ? n = e :
|
|
31
|
+
t.returnObject ? n = e : h(e) ? t.itemValue ? n = e[t.itemValue] : n = Object.values(e)[0] : n = e, f.value = !1, g();
|
|
32
32
|
else if (S(e))
|
|
33
|
-
e &&
|
|
33
|
+
e && I(e);
|
|
34
34
|
else {
|
|
35
|
-
const u = t.returnObject ? e :
|
|
36
|
-
n = [...
|
|
35
|
+
const u = t.returnObject ? e : h(e) ? t.itemValue ? e[t.itemValue] : Object.values(e)[0] : e;
|
|
36
|
+
n = [...i.value || [], u];
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
i.value === n ? x("update:modelValue", n) : i.value = n, x("selectedItem", l.value);
|
|
39
39
|
} catch (n) {
|
|
40
40
|
console.log(n);
|
|
41
41
|
} finally {
|
|
42
42
|
F(() => {
|
|
43
|
-
|
|
43
|
+
T();
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
H(
|
|
48
|
-
[() =>
|
|
48
|
+
[() => i.value, () => s.value],
|
|
49
49
|
([e]) => {
|
|
50
50
|
const n = C(e);
|
|
51
51
|
JSON.stringify(l.value) !== JSON.stringify(n) && (l.value = n);
|
|
@@ -58,23 +58,24 @@ function U(t, h, c, s) {
|
|
|
58
58
|
) ?? e;
|
|
59
59
|
}
|
|
60
60
|
function S(e) {
|
|
61
|
-
return
|
|
61
|
+
return i.value === null ? !1 : e ? i.value.some(
|
|
62
62
|
(n) => t.returnObject ? n[t.itemValue] === e[t.itemValue] : n === e[t.itemValue]
|
|
63
63
|
) : !0;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let n =
|
|
65
|
+
function I(e) {
|
|
66
|
+
let n = [...i.value];
|
|
67
67
|
if (t.returnObject) {
|
|
68
|
-
const u = n.
|
|
69
|
-
(
|
|
70
|
-
)
|
|
71
|
-
n.splice(
|
|
68
|
+
const u = n.findIndex(
|
|
69
|
+
(r) => r[t.itemValue] === e[t.itemValue]
|
|
70
|
+
);
|
|
71
|
+
u !== -1 && n.splice(u, 1);
|
|
72
72
|
} else {
|
|
73
73
|
const u = n.indexOf(e[t.itemValue]);
|
|
74
|
-
n.splice(u, 1);
|
|
74
|
+
u !== -1 && n.splice(u, 1);
|
|
75
75
|
}
|
|
76
|
+
i.value = n;
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function T(e) {
|
|
78
79
|
t.clearSearchOnSelect && (v.value = ""), t.clearOnSelect && w(), t.focusOnSelect && g();
|
|
79
80
|
}
|
|
80
81
|
function A() {
|
|
@@ -101,20 +102,20 @@ function U(t, h, c, s) {
|
|
|
101
102
|
var r;
|
|
102
103
|
const u = (r = d.value) == null ? void 0 : r.inputField;
|
|
103
104
|
if (u) {
|
|
104
|
-
const
|
|
105
|
-
u.value =
|
|
105
|
+
const c = u.selectionStart, a = u.selectionEnd, b = u.value, E = e.key.length === 1 ? e.key : "";
|
|
106
|
+
u.value = b.slice(0, c) + E + b.slice(a), u.selectionStart = u.selectionEnd = c + E.length, u.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
106
107
|
}
|
|
107
108
|
}));
|
|
108
109
|
}
|
|
109
110
|
function q() {
|
|
110
|
-
f.value = !1,
|
|
111
|
+
f.value = !1, x("createItem");
|
|
111
112
|
}
|
|
112
113
|
function z(e) {
|
|
113
|
-
let n =
|
|
114
|
-
|
|
114
|
+
let n = i.value.indexOf(e);
|
|
115
|
+
i.value.splice(n, 1);
|
|
115
116
|
}
|
|
116
117
|
function w() {
|
|
117
|
-
console.log(
|
|
118
|
+
console.log(i.value), v.value !== "" && (v.value = ""), i.value !== null && (i.value = null), l.value !== null && (l.value = null);
|
|
118
119
|
}
|
|
119
120
|
function G(e) {
|
|
120
121
|
return !!e.disabled;
|
|
@@ -126,13 +127,13 @@ function U(t, h, c, s) {
|
|
|
126
127
|
menuModel: f,
|
|
127
128
|
search: v,
|
|
128
129
|
getItemText: N,
|
|
129
|
-
placeholder:
|
|
130
|
-
textArr:
|
|
131
|
-
itemToString:
|
|
132
|
-
getSelectedItem:
|
|
130
|
+
placeholder: B,
|
|
131
|
+
textArr: R,
|
|
132
|
+
itemToString: O,
|
|
133
|
+
getSelectedItem: V,
|
|
133
134
|
checkIfValueExist: S,
|
|
134
|
-
removeFromArray:
|
|
135
|
-
lightReset:
|
|
135
|
+
removeFromArray: I,
|
|
136
|
+
lightReset: T,
|
|
136
137
|
openMenu: A,
|
|
137
138
|
closeMenu: D,
|
|
138
139
|
toggleMenu: J,
|
|
@@ -1,4 +1,114 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { watch as x, onMounted as f, onBeforeUnmount as C, onUnmounted as S, createBlock as m, openBlock as a, Teleport as k, createVNode as o, Transition as u, withCtx as n, createElementBlock as P, createCommentVNode as h, mergeProps as B, renderSlot as V } from "vue";
|
|
2
|
+
import E from "./KunDialogOverlay.vue2.js";
|
|
3
|
+
import H from "./KunDialogContent.vue.js";
|
|
4
|
+
const W = "fixed inset-0 z-250 flex", N = {
|
|
5
|
+
__name: "KunDialog",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: Boolean,
|
|
8
|
+
overlay: { type: Boolean, default: !0 },
|
|
9
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
10
|
+
scrollable: { type: Boolean, default: !1 },
|
|
11
|
+
persistent: { type: Boolean, default: !1 },
|
|
12
|
+
dialogClass: { type: String, default: "" },
|
|
13
|
+
xPosition: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "center",
|
|
16
|
+
// 'start' | 'center' | 'end'
|
|
17
|
+
validator: (e) => ["start", "center", "end"].includes(e)
|
|
18
|
+
},
|
|
19
|
+
yPosition: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "center",
|
|
22
|
+
// 'start' | 'center' | 'end'
|
|
23
|
+
validator: (e) => ["top", "center", "bottom"].includes(e)
|
|
24
|
+
},
|
|
25
|
+
contentClass: { type: String, default: "" },
|
|
26
|
+
bgColor: { type: String, default: "bg-slate-100 dark:bg-slate-900" },
|
|
27
|
+
minHeight: { type: String, default: "h-fit" },
|
|
28
|
+
height: { type: String, default: "h-fit" },
|
|
29
|
+
maxHeight: { type: String, default: "max-h-[100vh]" },
|
|
30
|
+
minWidth: { type: String, default: "min-w-1/3" },
|
|
31
|
+
width: { type: String, default: "w-full" },
|
|
32
|
+
maxWidth: { type: String, default: "max-w-full" }
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(e, { emit: y }) {
|
|
36
|
+
const t = e, i = y, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", b = [W, t.dialogClass, g, p, w], s = () => {
|
|
37
|
+
t.persistent || i("update:modelValue", !1);
|
|
38
|
+
}, v = () => {
|
|
39
|
+
s();
|
|
40
|
+
}, r = () => {
|
|
41
|
+
document.body.style.overflow = "hidden";
|
|
42
|
+
}, d = () => {
|
|
43
|
+
document.body.style.overflow = "";
|
|
44
|
+
};
|
|
45
|
+
x(() => t.modelValue, (l) => {
|
|
46
|
+
l && !t.fullscreen ? r() : d();
|
|
47
|
+
}), f(() => {
|
|
48
|
+
t.modelValue && !t.fullscreen && r();
|
|
49
|
+
}), C(() => {
|
|
50
|
+
d();
|
|
51
|
+
});
|
|
52
|
+
function c(l) {
|
|
53
|
+
l.stopPropagation(), l.key === "Escape" && (t.persistent || i("update:modelValue", !1));
|
|
54
|
+
}
|
|
55
|
+
return f(() => {
|
|
56
|
+
window.addEventListener("keydown", c);
|
|
57
|
+
}), S(() => {
|
|
58
|
+
window.removeEventListener("keydown", c);
|
|
59
|
+
}), (l, $) => (a(), m(k, { to: "body" }, [
|
|
60
|
+
o(u, {
|
|
61
|
+
name: "fade",
|
|
62
|
+
appear: ""
|
|
63
|
+
}, {
|
|
64
|
+
default: n(() => [
|
|
65
|
+
e.modelValue ? (a(), P("div", B({
|
|
66
|
+
key: 0,
|
|
67
|
+
class: b
|
|
68
|
+
}, l.$attrs), [
|
|
69
|
+
e.overlay ? (a(), m(E, {
|
|
70
|
+
key: 0,
|
|
71
|
+
persistent: e.persistent,
|
|
72
|
+
onClick: v
|
|
73
|
+
}, null, 8, ["persistent"])) : h("", !0),
|
|
74
|
+
o(u, {
|
|
75
|
+
name: "scale",
|
|
76
|
+
"enter-active-class": "transition transform ease-out duration-300",
|
|
77
|
+
"enter-from-class": "opacity-0 scale-95",
|
|
78
|
+
"enter-to-class": "opacity-100 scale-100",
|
|
79
|
+
"leave-active-class": "transition transform ease-in duration-200",
|
|
80
|
+
"leave-from-class": "opacity-100 scale-100",
|
|
81
|
+
"leave-to-class": "opacity-0 scale-95"
|
|
82
|
+
}, {
|
|
83
|
+
default: n(() => [
|
|
84
|
+
o(H, {
|
|
85
|
+
fullscreen: e.fullscreen,
|
|
86
|
+
scrollable: e.scrollable,
|
|
87
|
+
"min-width": e.minWidth,
|
|
88
|
+
width: e.width,
|
|
89
|
+
"max-width": e.maxWidth,
|
|
90
|
+
"min-height": e.minHeight,
|
|
91
|
+
height: e.height,
|
|
92
|
+
"max-height": e.maxHeight,
|
|
93
|
+
"bg-color": e.bgColor,
|
|
94
|
+
"content-class": e.contentClass,
|
|
95
|
+
onClose: s
|
|
96
|
+
}, {
|
|
97
|
+
default: n(() => [
|
|
98
|
+
V(l.$slots, "default")
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "min-height", "height", "max-height", "bg-color", "content-class"])
|
|
102
|
+
]),
|
|
103
|
+
_: 3
|
|
104
|
+
})
|
|
105
|
+
], 16)) : h("", !0)
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
})
|
|
109
|
+
]));
|
|
110
|
+
}
|
|
111
|
+
};
|
|
2
112
|
export {
|
|
3
|
-
|
|
113
|
+
N as default
|
|
4
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAttrs as H, computed as r, ref as J, inject as R, getCurrentInstance as Q, onMounted as T, onBeforeUnmount as W, createBlock as
|
|
1
|
+
import { useAttrs as H, computed as r, ref as J, inject as R, getCurrentInstance as Q, onMounted as T, onBeforeUnmount as W, createBlock as u, openBlock as a, unref as X, withCtx as $, resolveDynamicComponent as v, mergeProps as C, withKeys as L, withModifiers as P, createElementVNode as I, createElementBlock as l, createCommentVNode as s, renderSlot as o, normalizeClass as i, toDisplayString as S } from "vue";
|
|
2
2
|
import M from "../../../KunIcon/src/components/KunIcon.vue.js";
|
|
3
3
|
import { RouterLink as Y } from "vue-router";
|
|
4
4
|
const Z = { class: "flex w-full items-center" }, _ = {
|
|
@@ -7,7 +7,7 @@ const Z = { class: "flex w-full items-center" }, _ = {
|
|
|
7
7
|
}, ee = ["src"], te = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "shrink-0 flex items-center gap-2 ms-3"
|
|
10
|
-
}, ne = ["src"],
|
|
10
|
+
}, ne = ["src"], ae = { class: "flex w-full items-center" }, le = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "shrink-0 flex items-center gap-2 me-2"
|
|
13
13
|
}, se = ["src"], re = {
|
|
@@ -54,7 +54,7 @@ const Z = { class: "flex w-full items-center" }, _ = {
|
|
|
54
54
|
const B = H(), x = r(() => B.class), j = r(() => {
|
|
55
55
|
const { class: n, ...m } = B;
|
|
56
56
|
return m;
|
|
57
|
-
}), t = e, G = D, f = J(null), g = R("registerListItemRef", null),
|
|
57
|
+
}), t = e, G = D, f = J(null), g = R("registerListItemRef", null), c = R("kunListContext", null), E = r(() => {
|
|
58
58
|
var n;
|
|
59
59
|
return t.id ? t.id : `kun-list-item-${((n = Q()) == null ? void 0 : n.uid) ?? Math.random().toString(36).slice(2, 7)}`;
|
|
60
60
|
});
|
|
@@ -63,16 +63,20 @@ const Z = { class: "flex w-full items-center" }, _ = {
|
|
|
63
63
|
}), W(() => {
|
|
64
64
|
g && g(null);
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const b = (n) => typeof n == "object" || typeof n == "function", K = r(() => !!(t.prependIcon || t.prependAvatar)), N = r(() => !!(t.appendIcon || t.appendAvatar)), w = r(() => {
|
|
67
67
|
var n;
|
|
68
|
-
return ((n =
|
|
69
|
-
}),
|
|
70
|
-
function
|
|
71
|
-
var p,
|
|
68
|
+
return ((n = c == null ? void 0 : c.isSelected) == null ? void 0 : n.call(c, t.value)) ?? !1;
|
|
69
|
+
}), A = r(() => t.active), V = r(() => !!t.to);
|
|
70
|
+
function k(n, m = null) {
|
|
71
|
+
var p, h;
|
|
72
72
|
if (t.disabled) return;
|
|
73
|
-
G("click", n)
|
|
73
|
+
if (G("click", n), (n.ctrlKey || n.metaKey) && t.to) {
|
|
74
|
+
const y = typeof t.to == "string" ? t.to : t.to.path;
|
|
75
|
+
window.open(y, "_blank");
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
74
78
|
const d = ((p = f.value) == null ? void 0 : p.$el) ?? f.value;
|
|
75
|
-
d != null && d.dispatchEvent && d.dispatchEvent(new CustomEvent("select", { detail: t.value, bubbles: !0 })),
|
|
79
|
+
d != null && d.dispatchEvent && d.dispatchEvent(new CustomEvent("select", { detail: t.value, bubbles: !0 })), c && t.selectable && t.value !== null && ((h = c.toggleItem) == null || h.call(c, t.value), d != null && d.dispatchEvent && d.dispatchEvent(new CustomEvent("selected", { detail: t.value, bubbles: !0 }))), m && m(n);
|
|
76
80
|
}
|
|
77
81
|
const z = r(() => {
|
|
78
82
|
switch (t.variant) {
|
|
@@ -110,78 +114,78 @@ const Z = { class: "flex w-full items-center" }, _ = {
|
|
|
110
114
|
{
|
|
111
115
|
"cursor-not-allowed opacity-50": t.disabled,
|
|
112
116
|
[`cursor-pointer ${t.hoverBg}`]: t.selectable && !t.disabled,
|
|
113
|
-
[t.activeClass]:
|
|
117
|
+
[t.activeClass]: w.value || A.value,
|
|
114
118
|
"px-4": !t.noGutters
|
|
115
119
|
},
|
|
116
120
|
t.containerClass
|
|
117
121
|
]);
|
|
118
|
-
return (n, m) => V.value ? (
|
|
122
|
+
return (n, m) => V.value ? (a(), u(X(Y), {
|
|
119
123
|
key: 0,
|
|
120
124
|
to: e.to,
|
|
121
125
|
replace: e.replace,
|
|
122
126
|
custom: !0
|
|
123
127
|
}, {
|
|
124
|
-
default: $(({ href: d, navigate: p, isActive:
|
|
125
|
-
(
|
|
128
|
+
default: $(({ href: d, navigate: p, isActive: h }) => [
|
|
129
|
+
(a(), u(v(e.tag), C({
|
|
126
130
|
id: E.value,
|
|
127
131
|
ref_key: "liRef",
|
|
128
132
|
ref: f,
|
|
129
133
|
href: d,
|
|
130
134
|
role: "option",
|
|
131
|
-
"aria-selected":
|
|
135
|
+
"aria-selected": w.value || A.value || h,
|
|
132
136
|
"aria-disabled": e.disabled,
|
|
133
137
|
tabindex: "-1",
|
|
134
138
|
class: O.value,
|
|
135
|
-
onClick: (
|
|
136
|
-
onKeydown: L(P((
|
|
139
|
+
onClick: (y) => k(y, p),
|
|
140
|
+
onKeydown: L(P((y) => k(y, p), ["prevent"]), ["enter"])
|
|
137
141
|
}, n.$attrs), {
|
|
138
142
|
default: $(() => [
|
|
139
|
-
|
|
140
|
-
K.value || n.$slots.prepend ? (
|
|
141
|
-
|
|
142
|
-
e.prependAvatar ? (
|
|
143
|
+
I("div", Z, [
|
|
144
|
+
K.value || n.$slots.prepend ? (a(), l("div", _, [
|
|
145
|
+
o(n.$slots, "prepend", {}, () => [
|
|
146
|
+
e.prependAvatar ? (a(), l("img", {
|
|
143
147
|
key: 0,
|
|
144
148
|
src: e.prependAvatar,
|
|
145
149
|
class: i(["rounded-full", e.prependClass])
|
|
146
|
-
}, null, 10, ee)) :
|
|
150
|
+
}, null, 10, ee)) : b(e.prependIcon) ? (a(), u(v(e.prependIcon), {
|
|
147
151
|
key: 1,
|
|
148
152
|
class: i(e.prependClass)
|
|
149
|
-
}, null, 8, ["class"])) : typeof e.prependIcon == "string" ? (
|
|
153
|
+
}, null, 8, ["class"])) : typeof e.prependIcon == "string" ? (a(), u(M, {
|
|
150
154
|
key: 2,
|
|
151
155
|
icon: e.prependIcon,
|
|
152
156
|
class: i(e.prependClass)
|
|
153
157
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
154
158
|
])
|
|
155
159
|
])) : s("", !0),
|
|
156
|
-
|
|
160
|
+
I("div", C({
|
|
157
161
|
class: ["flex flex-col min-w-0 flex-1", x.value]
|
|
158
162
|
}, j.value), [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
e.title ? (
|
|
163
|
+
o(n.$slots, "default", {}, () => [
|
|
164
|
+
o(n.$slots, "title", {}, () => [
|
|
165
|
+
e.title ? (a(), l("div", {
|
|
162
166
|
key: 0,
|
|
163
167
|
class: i(["truncate", e.titleClass])
|
|
164
|
-
},
|
|
168
|
+
}, S(e.title), 3)) : s("", !0)
|
|
165
169
|
]),
|
|
166
|
-
|
|
167
|
-
e.subtitle ? (
|
|
170
|
+
o(n.$slots, "subtitle", {}, () => [
|
|
171
|
+
e.subtitle ? (a(), l("div", {
|
|
168
172
|
key: 0,
|
|
169
173
|
class: i(["truncate", e.subtitleClass])
|
|
170
|
-
},
|
|
174
|
+
}, S(e.subtitle), 3)) : s("", !0)
|
|
171
175
|
])
|
|
172
176
|
])
|
|
173
177
|
], 16),
|
|
174
|
-
N.value ? (
|
|
175
|
-
|
|
176
|
-
e.appendAvatar ? (
|
|
178
|
+
N.value ? (a(), l("div", te, [
|
|
179
|
+
o(n.$slots, "append", {}, () => [
|
|
180
|
+
e.appendAvatar ? (a(), l("img", {
|
|
177
181
|
key: 0,
|
|
178
182
|
src: e.appendAvatar,
|
|
179
183
|
class: "w-8 h-8 rounded-full"
|
|
180
184
|
}, null, 8, ne)) : s("", !0),
|
|
181
|
-
|
|
185
|
+
b(e.appendIcon) ? (a(), u(v(e.appendIcon), {
|
|
182
186
|
key: 1,
|
|
183
187
|
class: "w-5 h-5"
|
|
184
|
-
})) : e.appendIcon ? (
|
|
188
|
+
})) : e.appendIcon ? (a(), l("i", {
|
|
185
189
|
key: 2,
|
|
186
190
|
class: i([e.appendClass, "text-xl leading-none"])
|
|
187
191
|
}, null, 2)) : s("", !0)
|
|
@@ -193,66 +197,66 @@ const Z = { class: "flex w-full items-center" }, _ = {
|
|
|
193
197
|
}, 1040, ["id", "href", "aria-selected", "aria-disabled", "class", "onClick", "onKeydown"]))
|
|
194
198
|
]),
|
|
195
199
|
_: 3
|
|
196
|
-
}, 8, ["to", "replace"])) : (
|
|
200
|
+
}, 8, ["to", "replace"])) : (a(), u(v(e.tag), C({
|
|
197
201
|
key: 1,
|
|
198
202
|
id: E.value,
|
|
199
203
|
ref_key: "liRef",
|
|
200
204
|
ref: f,
|
|
201
205
|
role: "option",
|
|
202
|
-
"aria-selected":
|
|
206
|
+
"aria-selected": w.value || A.value,
|
|
203
207
|
"aria-disabled": e.disabled,
|
|
204
208
|
tabindex: "-1",
|
|
205
209
|
class: [O.value],
|
|
206
|
-
onClick:
|
|
207
|
-
onKeydown: L(P(
|
|
210
|
+
onClick: k,
|
|
211
|
+
onKeydown: L(P(k, ["prevent"]), ["enter"])
|
|
208
212
|
}, n.$attrs), {
|
|
209
213
|
default: $(() => [
|
|
210
|
-
|
|
211
|
-
K.value || n.$slots.prepend ? (
|
|
212
|
-
|
|
213
|
-
e.prependAvatar ? (
|
|
214
|
+
I("div", ae, [
|
|
215
|
+
K.value || n.$slots.prepend ? (a(), l("div", le, [
|
|
216
|
+
o(n.$slots, "prepend", {}, () => [
|
|
217
|
+
e.prependAvatar ? (a(), l("img", {
|
|
214
218
|
key: 0,
|
|
215
219
|
src: e.prependAvatar,
|
|
216
220
|
class: i(["rounded-full", e.prependClass])
|
|
217
|
-
}, null, 10, se)) :
|
|
221
|
+
}, null, 10, se)) : b(e.prependIcon) ? (a(), u(v(e.prependIcon), {
|
|
218
222
|
key: 1,
|
|
219
223
|
class: i(e.prependClass)
|
|
220
|
-
}, null, 8, ["class"])) : typeof e.prependIcon == "string" ? (
|
|
224
|
+
}, null, 8, ["class"])) : typeof e.prependIcon == "string" ? (a(), u(M, {
|
|
221
225
|
key: 2,
|
|
222
226
|
icon: e.prependIcon,
|
|
223
227
|
class: i(e.prependClass)
|
|
224
228
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
225
229
|
])
|
|
226
230
|
])) : s("", !0),
|
|
227
|
-
|
|
231
|
+
I("div", C({
|
|
228
232
|
class: ["flex flex-col min-w-0 flex-1", x.value]
|
|
229
233
|
}, j.value), [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
e.title ? (
|
|
234
|
+
o(n.$slots, "default", {}, () => [
|
|
235
|
+
o(n.$slots, "title", {}, () => [
|
|
236
|
+
e.title ? (a(), l("div", {
|
|
233
237
|
key: 0,
|
|
234
238
|
class: i(["truncate", e.titleClass])
|
|
235
|
-
},
|
|
239
|
+
}, S(e.title), 3)) : s("", !0)
|
|
236
240
|
]),
|
|
237
|
-
|
|
238
|
-
e.subtitle ? (
|
|
241
|
+
o(n.$slots, "subtitle", {}, () => [
|
|
242
|
+
e.subtitle ? (a(), l("div", {
|
|
239
243
|
key: 0,
|
|
240
244
|
class: i(["truncate", e.subtitleClass])
|
|
241
|
-
},
|
|
245
|
+
}, S(e.subtitle), 3)) : s("", !0)
|
|
242
246
|
])
|
|
243
247
|
])
|
|
244
248
|
], 16),
|
|
245
|
-
N.value ? (
|
|
246
|
-
|
|
247
|
-
e.appendAvatar ? (
|
|
249
|
+
N.value ? (a(), l("div", re, [
|
|
250
|
+
o(n.$slots, "append", {}, () => [
|
|
251
|
+
e.appendAvatar ? (a(), l("img", {
|
|
248
252
|
key: 0,
|
|
249
253
|
src: e.appendAvatar,
|
|
250
254
|
class: "w-8 h-8 rounded-full"
|
|
251
255
|
}, null, 8, ie)) : s("", !0),
|
|
252
|
-
|
|
256
|
+
b(e.appendIcon) ? (a(), u(v(e.appendIcon), {
|
|
253
257
|
key: 1,
|
|
254
258
|
class: "w-5 h-5"
|
|
255
|
-
})) : e.appendIcon ? (
|
|
259
|
+
})) : e.appendIcon ? (a(), l("i", {
|
|
256
260
|
key: 2,
|
|
257
261
|
class: i([e.appendIcon, "text-xl leading-none"])
|
|
258
262
|
}, null, 2)) : s("", !0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as k, ref as g, onMounted as C, createBlock as x, createCommentVNode as $, openBlock as d, withCtx as l, createElementVNode as c, createVNode as o, createElementBlock as N, Fragment as b, renderList as h, createTextVNode as V } from "vue";
|
|
2
|
-
import z from "../../../KunDialog/src/components/KunDialog.
|
|
2
|
+
import z from "../../../KunDialog/src/components/KunDialog.vue.js";
|
|
3
3
|
import B from "../../../KunRow/src/components/KunRow.vue.js";
|
|
4
4
|
import j from "../../../KunCol/src/components/KunCol.vue.js";
|
|
5
5
|
import w from "../../../KunAutocomplete/src/components/KunAutocomplete.vue.js";
|
package/dist/index.js
CHANGED
|
@@ -35,66 +35,67 @@ import { default as an } from "./components/KunContainer/src/components/KunConta
|
|
|
35
35
|
import * as A from "./components/KunCurrency/src/components/KunCurrency.vue.js";
|
|
36
36
|
import { default as ln } from "./components/KunCurrency/src/components/KunCurrency.vue.js";
|
|
37
37
|
import * as F from "./components/KunDialog/src/components/KunDialog.vue.js";
|
|
38
|
+
import { default as dn } from "./components/KunDialog/src/components/KunDialog.vue.js";
|
|
38
39
|
import * as g from "./components/KunDialog/src/components/KunDialogContent.vue.js";
|
|
39
40
|
import * as R from "./components/KunDialog/src/components/KunDialogOverlay.vue.js";
|
|
40
41
|
import * as h from "./components/KunDivider/src/components/KunDivider.vue.js";
|
|
41
|
-
import { default as
|
|
42
|
+
import { default as Tn } from "./components/KunDivider/src/components/KunDivider.vue.js";
|
|
42
43
|
import * as D from "./components/KunDrawer/src/components/KunDrawer.vue.js";
|
|
43
|
-
import { default as
|
|
44
|
+
import { default as xn } from "./components/KunDrawer/src/components/KunDrawer.vue.js";
|
|
44
45
|
import * as w from "./components/KunFileInput/src/components/KunFileInput.vue.js";
|
|
45
|
-
import { default as
|
|
46
|
+
import { default as In } from "./components/KunFileInput/src/components/KunFileInput.vue.js";
|
|
46
47
|
import * as M from "./components/KunForm/src/components/KunForm.vue.js";
|
|
47
|
-
import { default as
|
|
48
|
+
import { default as Sn } from "./components/KunForm/src/components/KunForm.vue.js";
|
|
48
49
|
import * as B from "./components/KunIcon/src/components/KunIcon.vue.js";
|
|
49
|
-
import { default as
|
|
50
|
+
import { default as Fn } from "./components/KunIcon/src/components/KunIcon.vue.js";
|
|
50
51
|
import * as G from "./components/KunInfiniteScroll/src/components/KunInfiniteScroll.vue.js";
|
|
51
|
-
import { default as
|
|
52
|
+
import { default as Rn } from "./components/KunInfiniteScroll/src/components/KunInfiniteScroll.vue.js";
|
|
52
53
|
import * as y from "./components/KunList/src/components/KunList.vue.js";
|
|
53
|
-
import { default as
|
|
54
|
+
import { default as Dn } from "./components/KunList/src/components/KunList.vue.js";
|
|
54
55
|
import * as V from "./components/KunListGroup/src/components/KunListGroup.vue.js";
|
|
55
|
-
import { default as
|
|
56
|
+
import { default as Mn } from "./components/KunListGroup/src/components/KunListGroup.vue.js";
|
|
56
57
|
import * as O from "./components/KunListImg/src/components/KunListImg.vue.js";
|
|
57
|
-
import { default as
|
|
58
|
+
import { default as Gn } from "./components/KunListImg/src/components/KunListImg.vue.js";
|
|
58
59
|
import * as N from "./components/KunListItem/src/components/KunListItem.vue.js";
|
|
59
|
-
import { default as
|
|
60
|
+
import { default as Vn } from "./components/KunListItem/src/components/KunListItem.vue.js";
|
|
60
61
|
import * as k from "./components/KunListItemAction/src/components/KunListItemAction.vue.js";
|
|
61
|
-
import { default as
|
|
62
|
+
import { default as Nn } from "./components/KunListItemAction/src/components/KunListItemAction.vue.js";
|
|
62
63
|
import * as j from "./components/KunListItemAvatar/src/components/KunListItemAvatar.vue.js";
|
|
63
|
-
import { default as
|
|
64
|
+
import { default as jn } from "./components/KunListItemAvatar/src/components/KunListItemAvatar.vue.js";
|
|
64
65
|
import * as H from "./components/KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js";
|
|
65
|
-
import { default as
|
|
66
|
+
import { default as Wn } from "./components/KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js";
|
|
66
67
|
import * as W from "./components/KunListItemText/src/components/KunListItemText.vue.js";
|
|
67
|
-
import { default as
|
|
68
|
+
import { default as _n } from "./components/KunListItemText/src/components/KunListItemText.vue.js";
|
|
68
69
|
import * as E from "./components/KunListItemTitle/src/components/KunListItemTitle.vue.js";
|
|
69
|
-
import { default as
|
|
70
|
+
import { default as zn } from "./components/KunListItemTitle/src/components/KunListItemTitle.vue.js";
|
|
70
71
|
import * as _ from "./components/KunListSubheader/src/components/KunListSubheader.vue.js";
|
|
71
|
-
import { default as
|
|
72
|
+
import { default as Pn } from "./components/KunListSubheader/src/components/KunListSubheader.vue.js";
|
|
72
73
|
import * as q from "./components/KunLoaderCircular/src/components/KunLoaderCircular.vue.js";
|
|
73
|
-
import { default as
|
|
74
|
+
import { default as Un } from "./components/KunLoaderCircular/src/components/KunLoaderCircular.vue.js";
|
|
74
75
|
import * as z from "./components/KunMenu/src/components/KunMenu.vue.js";
|
|
75
|
-
import { default as
|
|
76
|
+
import { default as Yn } from "./components/KunMenu/src/components/KunMenu.vue.js";
|
|
76
77
|
import * as J from "./components/KunModalFooter/src/components/KunModalFooter.vue.js";
|
|
77
|
-
import { default as
|
|
78
|
+
import { default as $n } from "./components/KunModalFooter/src/components/KunModalFooter.vue.js";
|
|
78
79
|
import * as P from "./components/KunModalFooter/src/components/KunMultipleModalFooter.vue.js";
|
|
79
80
|
import * as Q from "./components/KunNumberField/src/components/KunNumberField.vue.js";
|
|
80
|
-
import { default as
|
|
81
|
+
import { default as ne } from "./components/KunNumberField/src/components/KunNumberField.vue.js";
|
|
81
82
|
import * as U from "./components/KunRadio/src/components/KunRadio.vue.js";
|
|
82
|
-
import { default as
|
|
83
|
+
import { default as te } from "./components/KunRadio/src/components/KunRadio.vue.js";
|
|
83
84
|
import * as X from "./components/KunRadioGroup/src/components/KunRadioGroup.vue.js";
|
|
84
|
-
import { default as
|
|
85
|
+
import { default as ue } from "./components/KunRadioGroup/src/components/KunRadioGroup.vue.js";
|
|
85
86
|
import * as Y from "./components/KunRelationMatrix/src/components/KunRelationMatrix.vue.js";
|
|
86
|
-
import { default as
|
|
87
|
+
import { default as me } from "./components/KunRelationMatrix/src/components/KunRelationMatrix.vue.js";
|
|
87
88
|
import * as Z from "./components/KunRow/src/components/KunRow.vue.js";
|
|
88
|
-
import { default as
|
|
89
|
+
import { default as ce } from "./components/KunRow/src/components/KunRow.vue.js";
|
|
89
90
|
import * as $ from "./components/KunSlider/src/components/KunSlider.vue.js";
|
|
90
|
-
import { default as
|
|
91
|
+
import { default as Ke } from "./components/KunSlider/src/components/KunSlider.vue.js";
|
|
91
92
|
import * as oo from "./components/KunSlider/src/components/KunThumb.vue.js";
|
|
92
93
|
import * as no from "./components/KunSpacer/src/components/KunSpacer.vue.js";
|
|
93
|
-
import { default as
|
|
94
|
+
import { default as le } from "./components/KunSpacer/src/components/KunSpacer.vue.js";
|
|
94
95
|
import * as eo from "./components/KunSwitch/src/components/KunSwitch.vue.js";
|
|
95
|
-
import { default as
|
|
96
|
+
import { default as de } from "./components/KunSwitch/src/components/KunSwitch.vue.js";
|
|
96
97
|
import * as to from "./components/KunTable/src/components/KunTable.vue.js";
|
|
97
|
-
import { default as
|
|
98
|
+
import { default as Te } from "./components/KunTable/src/components/KunTable.vue.js";
|
|
98
99
|
import * as ro from "./components/KunTable/src/components/KunTableFilter.vue.js";
|
|
99
100
|
import * as uo from "./components/KunTable/src/components/KunTableFooter.vue.js";
|
|
100
101
|
import * as so from "./components/KunTable/src/components/KunTableHeaders.vue.js";
|
|
@@ -106,22 +107,21 @@ import * as Ko from "./components/KunTable/src/components/KunTableVirtual.vue.js
|
|
|
106
107
|
import * as io from "./components/KunTabs/src/components/KunTab.vue.js";
|
|
107
108
|
import * as lo from "./components/KunTabs/src/components/KunTabWindow.vue.js";
|
|
108
109
|
import * as fo from "./components/KunTabs/src/components/KunTabs.vue.js";
|
|
109
|
-
import { default as
|
|
110
|
+
import { default as xe } from "./components/KunTabs/src/components/KunTabs.vue.js";
|
|
110
111
|
import * as vo from "./components/KunTextField/src/components/KunTextField.vue.js";
|
|
111
|
-
import { default as
|
|
112
|
+
import { default as Ie } from "./components/KunTextField/src/components/KunTextField.vue.js";
|
|
112
113
|
import * as To from "./components/KunTextarea/src/components/KunTextarea.vue.js";
|
|
113
|
-
import { default as
|
|
114
|
+
import { default as Se } from "./components/KunTextarea/src/components/KunTextarea.vue.js";
|
|
114
115
|
import * as bo from "./components/KunToolbar/src/components/KunToolbar.vue.js";
|
|
115
|
-
import { default as
|
|
116
|
+
import { default as Fe } from "./components/KunToolbar/src/components/KunToolbar.vue.js";
|
|
116
117
|
import * as xo from "./components/KunToolbar/src/components/KunToolbarItems.vue.js";
|
|
117
118
|
import * as Co from "./components/KunToolbar/src/components/KunToolbarTitle.vue.js";
|
|
118
119
|
import * as Io from "./components/KunTooltip/src/components/KunTooltip.vue.js";
|
|
119
|
-
import { default as
|
|
120
|
+
import { default as Re } from "./components/KunTooltip/src/components/KunTooltip.vue.js";
|
|
120
121
|
import * as Lo from "./components/KunVirtualScroller/src/components/KunVirtualScroller.vue.js";
|
|
121
|
-
import { default as
|
|
122
|
+
import { default as De } from "./components/KunVirtualScroller/src/components/KunVirtualScroller.vue.js";
|
|
122
123
|
import { defineAsyncComponent as So } from "vue";
|
|
123
124
|
/* empty css */
|
|
124
|
-
import { default as De } from "./components/KunDialog/src/components/KunDialog.vue2.js";
|
|
125
125
|
const Ao = /* @__PURE__ */ Object.assign({ "./components/KunAlert/src/components/KunAlert.vue": () => import("./components/KunAlert/src/components/KunAlert.vue.js"), "./components/KunAppbar/src/components/KunAppbar.vue": () => import("./components/KunAppbar/src/components/KunAppbar.vue.js"), "./components/KunAppbarTitle/src/components/KunAppbarTitle.vue": () => import("./components/KunAppbarTitle/src/components/KunAppbarTitle.vue.js"), "./components/KunAutocomplete/src/components/KunAutocomplete.vue": () => import("./components/KunAutocomplete/src/components/KunAutocomplete.vue.js"), "./components/KunAvatar/src/components/KunAvatar.vue": () => import("./components/KunAvatar/src/components/KunAvatar.vue.js"), "./components/KunBadge/src/components/KunBadge.vue": () => import("./components/KunBadge/src/components/KunBadge.vue.js"), "./components/KunBtn/src/components/KunBtn.vue": () => import("./components/KunBtn/src/components/KunBtn.vue.js"), "./components/KunCard/src/components/KunCard.vue": () => import("./components/KunCard/src/components/KunCard.vue.js"), "./components/KunCardActions/src/components/KunCardActions.vue": () => import("./components/KunCardActions/src/components/KunCardActions.vue.js"), "./components/KunCardItem/src/components/KunCardItem.vue": () => import("./components/KunCardItem/src/components/KunCardItem.vue.js"), "./components/KunCardSubtitle/src/components/KunCardSubtitle.vue": () => import("./components/KunCardSubtitle/src/components/KunCardSubtitle.vue.js"), "./components/KunCardText/src/components/KunCardText.vue": () => import("./components/KunCardText/src/components/KunCardText.vue.js"), "./components/KunCardTitle/src/components/KunCardTitle.vue": () => import("./components/KunCardTitle/src/components/KunCardTitle.vue.js"), "./components/KunCheckbox/src/components/KunCheckbox.vue": () => import("./components/KunCheckbox/src/components/KunCheckbox.vue.js"), "./components/KunChip/src/components/KunChip.vue": () => import("./components/KunChip/src/components/KunChip.vue.js"), "./components/KunCol/src/components/KunCol.vue": () => import("./components/KunCol/src/components/KunCol.vue.js"), "./components/KunContainer/src/components/KunContainer.vue": () => import("./components/KunContainer/src/components/KunContainer.vue.js"), "./components/KunCurrency/src/components/KunCurrency.vue": () => import("./components/KunCurrency/src/components/KunCurrency.vue.js"), "./components/KunDialog/src/components/KunDialog.vue": () => import("./components/KunDialog/src/components/KunDialog.vue.js"), "./components/KunDialog/src/components/KunDialogContent.vue": () => import("./components/KunDialog/src/components/KunDialogContent.vue.js"), "./components/KunDialog/src/components/KunDialogOverlay.vue": () => import("./components/KunDialog/src/components/KunDialogOverlay.vue.js"), "./components/KunDivider/src/components/KunDivider.vue": () => import("./components/KunDivider/src/components/KunDivider.vue.js"), "./components/KunDrawer/src/components/KunDrawer.vue": () => import("./components/KunDrawer/src/components/KunDrawer.vue.js"), "./components/KunFileInput/src/components/KunFileInput.vue": () => import("./components/KunFileInput/src/components/KunFileInput.vue.js"), "./components/KunForm/src/components/KunForm.vue": () => import("./components/KunForm/src/components/KunForm.vue.js"), "./components/KunIcon/src/components/KunIcon.vue": () => import("./components/KunIcon/src/components/KunIcon.vue.js"), "./components/KunInfiniteScroll/src/components/KunInfiniteScroll.vue": () => import("./components/KunInfiniteScroll/src/components/KunInfiniteScroll.vue.js"), "./components/KunList/src/components/KunList.vue": () => import("./components/KunList/src/components/KunList.vue.js"), "./components/KunListGroup/src/components/KunListGroup.vue": () => import("./components/KunListGroup/src/components/KunListGroup.vue.js"), "./components/KunListImg/src/components/KunListImg.vue": () => import("./components/KunListImg/src/components/KunListImg.vue.js"), "./components/KunListItem/src/components/KunListItem.vue": () => import("./components/KunListItem/src/components/KunListItem.vue.js"), "./components/KunListItemAction/src/components/KunListItemAction.vue": () => import("./components/KunListItemAction/src/components/KunListItemAction.vue.js"), "./components/KunListItemAvatar/src/components/KunListItemAvatar.vue": () => import("./components/KunListItemAvatar/src/components/KunListItemAvatar.vue.js"), "./components/KunListItemSubtitle/src/components/KunListItemSubtitle.vue": () => import("./components/KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js"), "./components/KunListItemText/src/components/KunListItemText.vue": () => import("./components/KunListItemText/src/components/KunListItemText.vue.js"), "./components/KunListItemTitle/src/components/KunListItemTitle.vue": () => import("./components/KunListItemTitle/src/components/KunListItemTitle.vue.js"), "./components/KunListSubheader/src/components/KunListSubheader.vue": () => import("./components/KunListSubheader/src/components/KunListSubheader.vue.js"), "./components/KunLoaderCircular/src/components/KunLoaderCircular.vue": () => import("./components/KunLoaderCircular/src/components/KunLoaderCircular.vue.js"), "./components/KunMenu/src/components/KunMenu.vue": () => import("./components/KunMenu/src/components/KunMenu.vue.js"), "./components/KunModalFooter/src/components/KunModalFooter.vue": () => import("./components/KunModalFooter/src/components/KunModalFooter.vue.js"), "./components/KunModalFooter/src/components/KunMultipleModalFooter.vue": () => import("./components/KunModalFooter/src/components/KunMultipleModalFooter.vue.js"), "./components/KunNumberField/src/components/KunNumberField.vue": () => import("./components/KunNumberField/src/components/KunNumberField.vue.js"), "./components/KunRadio/src/components/KunRadio.vue": () => import("./components/KunRadio/src/components/KunRadio.vue.js"), "./components/KunRadioGroup/src/components/KunRadioGroup.vue": () => import("./components/KunRadioGroup/src/components/KunRadioGroup.vue.js"), "./components/KunRelationMatrix/src/components/KunRelationMatrix.vue": () => import("./components/KunRelationMatrix/src/components/KunRelationMatrix.vue.js"), "./components/KunRow/src/components/KunRow.vue": () => import("./components/KunRow/src/components/KunRow.vue.js"), "./components/KunSlider/src/components/KunSlider.vue": () => import("./components/KunSlider/src/components/KunSlider.vue.js"), "./components/KunSlider/src/components/KunThumb.vue": () => import("./components/KunSlider/src/components/KunThumb.vue.js"), "./components/KunSpacer/src/components/KunSpacer.vue": () => import("./components/KunSpacer/src/components/KunSpacer.vue.js"), "./components/KunSwitch/src/components/KunSwitch.vue": () => import("./components/KunSwitch/src/components/KunSwitch.vue.js"), "./components/KunTable/src/components/KunTable.vue": () => import("./components/KunTable/src/components/KunTable.vue.js"), "./components/KunTable/src/components/KunTableFilter.vue": () => import("./components/KunTable/src/components/KunTableFilter.vue.js"), "./components/KunTable/src/components/KunTableFooter.vue": () => import("./components/KunTable/src/components/KunTableFooter.vue.js"), "./components/KunTable/src/components/KunTableHeaders.vue": () => import("./components/KunTable/src/components/KunTableHeaders.vue.js"), "./components/KunTable/src/components/KunTableIterator.vue": () => import("./components/KunTable/src/components/KunTableIterator.vue.js"), "./components/KunTable/src/components/KunTableIterators.vue": () => import("./components/KunTable/src/components/KunTableIterators.vue.js"), "./components/KunTable/src/components/KunTableRow.vue": () => import("./components/KunTable/src/components/KunTableRow.vue.js"), "./components/KunTable/src/components/KunTableRows.vue": () => import("./components/KunTable/src/components/KunTableRows.vue.js"), "./components/KunTable/src/components/KunTableVirtual.vue": () => import("./components/KunTable/src/components/KunTableVirtual.vue.js"), "./components/KunTabs/src/components/KunTab.vue": () => import("./components/KunTabs/src/components/KunTab.vue.js"), "./components/KunTabs/src/components/KunTabWindow.vue": () => import("./components/KunTabs/src/components/KunTabWindow.vue.js"), "./components/KunTabs/src/components/KunTabs.vue": () => import("./components/KunTabs/src/components/KunTabs.vue.js"), "./components/KunTextField/src/components/KunTextField.vue": () => import("./components/KunTextField/src/components/KunTextField.vue.js"), "./components/KunTextarea/src/components/KunTextarea.vue": () => import("./components/KunTextarea/src/components/KunTextarea.vue.js"), "./components/KunToolbar/src/components/KunToolbar.vue": () => import("./components/KunToolbar/src/components/KunToolbar.vue.js"), "./components/KunToolbar/src/components/KunToolbarItems.vue": () => import("./components/KunToolbar/src/components/KunToolbarItems.vue.js"), "./components/KunToolbar/src/components/KunToolbarTitle.vue": () => import("./components/KunToolbar/src/components/KunToolbarTitle.vue.js"), "./components/KunTooltip/src/components/KunTooltip.vue": () => import("./components/KunTooltip/src/components/KunTooltip.vue.js"), "./components/KunVirtualScroller/src/components/KunVirtualScroller.vue": () => import("./components/KunVirtualScroller/src/components/KunVirtualScroller.vue.js") });
|
|
126
126
|
function t(o) {
|
|
127
127
|
return o.split("/").at(-1).replace(".vue", "");
|
|
@@ -158,41 +158,41 @@ export {
|
|
|
158
158
|
pn as KunCol,
|
|
159
159
|
an as KunContainer,
|
|
160
160
|
ln as KunCurrency,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
161
|
+
dn as KunDialog,
|
|
162
|
+
Tn as KunDivider,
|
|
163
|
+
xn as KunDrawer,
|
|
164
|
+
In as KunFileInput,
|
|
165
|
+
Sn as KunForm,
|
|
166
|
+
Fn as KunIcon,
|
|
167
|
+
Rn as KunInfiniteScroll,
|
|
168
|
+
Dn as KunList,
|
|
169
|
+
Mn as KunListGroup,
|
|
170
|
+
Gn as KunListImg,
|
|
171
|
+
Vn as KunListItem,
|
|
172
|
+
Nn as KunListItemAction,
|
|
173
|
+
jn as KunListItemAvatar,
|
|
174
|
+
Wn as KunListItemSubtitle,
|
|
175
|
+
_n as KunListItemText,
|
|
176
|
+
zn as KunListItemTitle,
|
|
177
|
+
Pn as KunListSubheader,
|
|
178
|
+
Un as KunLoaderCircular,
|
|
179
|
+
Yn as KunMenu,
|
|
180
|
+
$n as KunModalFooter,
|
|
181
|
+
ne as KunNumberField,
|
|
182
|
+
te as KunRadio,
|
|
183
|
+
ue as KunRadioGroup,
|
|
184
|
+
me as KunRelationMatrix,
|
|
185
|
+
ce as KunRow,
|
|
186
|
+
Ke as KunSlider,
|
|
187
|
+
le as KunSpacer,
|
|
188
|
+
de as KunSwitch,
|
|
189
|
+
Te as KunTable,
|
|
190
|
+
xe as KunTabs,
|
|
191
|
+
Ie as KunTextField,
|
|
192
|
+
Se as KunTextarea,
|
|
193
|
+
Fe as KunToolbar,
|
|
194
|
+
Re as KunTooltip,
|
|
195
|
+
De as KunVirtualScroller,
|
|
196
196
|
Fo as components,
|
|
197
197
|
Do as default,
|
|
198
198
|
go as install
|
package/package.json
CHANGED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, watch as C, onMounted as f, onBeforeUnmount as S, onUnmounted as k, createBlock as m, openBlock as a, Teleport as P, createVNode as o, Transition as u, withCtx as n, createElementBlock as B, createCommentVNode as h, mergeProps as V, renderSlot as E } from "vue";
|
|
2
|
-
import H from "./KunDialogOverlay.vue2.js";
|
|
3
|
-
import W from "./KunDialogContent.vue.js";
|
|
4
|
-
const $ = "fixed inset-0 z-250 flex", T = /* @__PURE__ */ x({
|
|
5
|
-
__name: "KunDialog",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: Boolean,
|
|
8
|
-
overlay: { type: Boolean, default: !0 },
|
|
9
|
-
fullscreen: { type: Boolean, default: !1 },
|
|
10
|
-
scrollable: { type: Boolean, default: !1 },
|
|
11
|
-
persistent: { type: Boolean, default: !1 },
|
|
12
|
-
dialogClass: { type: String, default: "" },
|
|
13
|
-
xPosition: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "center",
|
|
16
|
-
// 'start' | 'center' | 'end'
|
|
17
|
-
validator: (e) => ["start", "center", "end"].includes(e)
|
|
18
|
-
},
|
|
19
|
-
yPosition: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "center",
|
|
22
|
-
// 'start' | 'center' | 'end'
|
|
23
|
-
validator: (e) => ["top", "center", "bottom"].includes(e)
|
|
24
|
-
},
|
|
25
|
-
contentClass: { type: String, default: "" },
|
|
26
|
-
bgColor: { type: String, default: "bg-slate-100 dark:bg-slate-900" },
|
|
27
|
-
minHeight: { type: String, default: "h-fit" },
|
|
28
|
-
height: { type: String, default: "h-fit" },
|
|
29
|
-
maxHeight: { type: String, default: "max-h-[100vh]" },
|
|
30
|
-
minWidth: { type: String, default: "min-w-1/3" },
|
|
31
|
-
width: { type: String, default: "w-full" },
|
|
32
|
-
maxWidth: { type: String, default: "max-w-full" }
|
|
33
|
-
},
|
|
34
|
-
emits: ["update:modelValue"],
|
|
35
|
-
setup(e, { emit: y }) {
|
|
36
|
-
const t = e, i = y, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", b = [$, t.dialogClass, g, p, w], s = () => {
|
|
37
|
-
t.persistent || i("update:modelValue", !1);
|
|
38
|
-
}, v = () => {
|
|
39
|
-
s();
|
|
40
|
-
}, r = () => {
|
|
41
|
-
document.body.style.overflow = "hidden";
|
|
42
|
-
}, d = () => {
|
|
43
|
-
document.body.style.overflow = "";
|
|
44
|
-
};
|
|
45
|
-
C(() => t.modelValue, (l) => {
|
|
46
|
-
l && !t.fullscreen ? r() : d();
|
|
47
|
-
}), f(() => {
|
|
48
|
-
t.modelValue && !t.fullscreen && r();
|
|
49
|
-
}), S(() => {
|
|
50
|
-
d();
|
|
51
|
-
});
|
|
52
|
-
function c(l) {
|
|
53
|
-
l.stopPropagation(), l.key === "Escape" && (t.persistent || i("update:modelValue", !1));
|
|
54
|
-
}
|
|
55
|
-
return f(() => {
|
|
56
|
-
window.addEventListener("keydown", c);
|
|
57
|
-
}), k(() => {
|
|
58
|
-
window.removeEventListener("keydown", c);
|
|
59
|
-
}), (l, D) => (a(), m(P, { to: "body" }, [
|
|
60
|
-
o(u, {
|
|
61
|
-
name: "fade",
|
|
62
|
-
appear: ""
|
|
63
|
-
}, {
|
|
64
|
-
default: n(() => [
|
|
65
|
-
e.modelValue ? (a(), B("div", V({
|
|
66
|
-
key: 0,
|
|
67
|
-
class: b
|
|
68
|
-
}, l.$attrs), [
|
|
69
|
-
e.overlay ? (a(), m(H, {
|
|
70
|
-
key: 0,
|
|
71
|
-
persistent: e.persistent,
|
|
72
|
-
onClick: v
|
|
73
|
-
}, null, 8, ["persistent"])) : h("", !0),
|
|
74
|
-
o(u, {
|
|
75
|
-
name: "scale",
|
|
76
|
-
"enter-active-class": "transition transform ease-out duration-300",
|
|
77
|
-
"enter-from-class": "opacity-0 scale-95",
|
|
78
|
-
"enter-to-class": "opacity-100 scale-100",
|
|
79
|
-
"leave-active-class": "transition transform ease-in duration-200",
|
|
80
|
-
"leave-from-class": "opacity-100 scale-100",
|
|
81
|
-
"leave-to-class": "opacity-0 scale-95"
|
|
82
|
-
}, {
|
|
83
|
-
default: n(() => [
|
|
84
|
-
o(W, {
|
|
85
|
-
fullscreen: e.fullscreen,
|
|
86
|
-
scrollable: e.scrollable,
|
|
87
|
-
"min-width": e.minWidth,
|
|
88
|
-
width: e.width,
|
|
89
|
-
"max-width": e.maxWidth,
|
|
90
|
-
"min-height": e.minHeight,
|
|
91
|
-
height: e.height,
|
|
92
|
-
"max-height": e.maxHeight,
|
|
93
|
-
"bg-color": e.bgColor,
|
|
94
|
-
"content-class": e.contentClass,
|
|
95
|
-
onClose: s
|
|
96
|
-
}, {
|
|
97
|
-
default: n(() => [
|
|
98
|
-
E(l.$slots, "default")
|
|
99
|
-
]),
|
|
100
|
-
_: 3
|
|
101
|
-
}, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "min-height", "height", "max-height", "bg-color", "content-class"])
|
|
102
|
-
]),
|
|
103
|
-
_: 3
|
|
104
|
-
})
|
|
105
|
-
], 16)) : h("", !0)
|
|
106
|
-
]),
|
|
107
|
-
_: 3
|
|
108
|
-
})
|
|
109
|
-
]));
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
T as default
|
|
114
|
-
};
|