vlite3 0.7.14 → 0.8.1
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/components/Accordion/Accordion.vue.js +35 -22
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionContent.vue2.js +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
- package/components/Breadcrumb/Breadcrumb.vue2.js +44 -44
- package/components/Carousel/Carousel.vue.js +1 -1
- package/components/Carousel/Carousel.vue2.js +3 -3
- package/components/ColorPicker/ColorPicker.vue.js +16 -15
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataList/DataList.vue.js +53 -50
- package/components/DataTable/DataTable.vue.js +185 -173
- package/components/DatePicker.vue.js +3 -2
- package/components/DateRangePicker.vue.js +26 -25
- package/components/Dropdown/Dropdown.vue.js +20 -20
- package/components/Dropdown/DropdownMenu.vue.js +5 -256
- package/components/Dropdown/DropdownMenu.vue2.js +256 -2
- package/components/FilePicker/FilePicker.vue.js +16 -16
- package/components/FileTree/FileTree.vue.js +5 -147
- package/components/FileTree/FileTree.vue2.js +164 -2
- package/components/FileTree/FileTreeNode.vue.js +89 -84
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +102 -97
- package/components/Form/Form.vue.d.ts +0 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +137 -133
- package/components/Form/FormField.vue.d.ts +3 -0
- package/components/Form/FormField.vue.js +85 -82
- package/components/Form/FormFields.vue.d.ts +2 -0
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +96 -81
- package/components/Form/composables/useForm.d.ts +2 -0
- package/components/Form/composables/useForm.js +113 -107
- package/components/IconPicker.vue.js +3 -2
- package/components/ImportData/ImportData.vue.js +157 -142
- package/components/ImportData/ImportStep1.vue.d.ts +6 -0
- package/components/ImportData/ImportStep1.vue.js +69 -61
- package/components/ImportData/ImportStep2.vue.js +5 -97
- package/components/ImportData/ImportStep2.vue2.js +105 -2
- package/components/List/List.vue.js +205 -180
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +82 -96
- package/components/MultiSelect/MultiSelect.vue.js +7 -7
- package/components/Navbar/Navbar.vue.js +12 -12
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +25 -23
- package/components/PermissionMatrix/PermissionEditorList.vue.js +1 -1
- package/components/PermissionMatrix/PermissionEditorList.vue2.js +84 -75
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.d.ts +4 -1
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +1 -1
- package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +130 -112
- package/components/PermissionMatrix/PermissionMatrix.vue.js +2 -2
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +161 -138
- package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
- package/components/Screen/Screen.vue.js +169 -166
- package/components/Screen/ScreenFilter.vue.js +3 -2
- package/components/SidePanel.vue.js +5 -146
- package/components/SidePanel.vue2.js +146 -2
- package/components/SidebarMenu/SidebarMenuItem.vue.js +26 -25
- package/components/Timeline/Timeline.vue.js +62 -57
- package/components/ToastNotification.vue.js +2 -2
- package/components/ToastNotification.vue2.js +103 -88
- package/components/Workbook/Sheet.vue.js +3 -2
- package/components/Workbook/Workbook.vue.js +5 -152
- package/components/Workbook/Workbook.vue2.js +166 -2
- package/package.json +1 -1
- package/style.css +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as C, shallowRef as y, watch as u, computed as b, openBlock as f, createElementBlock as m, normalizeClass as z, renderSlot as s, Fragment as B, renderList as $, withMemo as k, createVNode as x, createSlots as M, withCtx as v, mergeProps as g } from "vue";
|
|
2
|
+
import A from "./AccordionItem.vue.js";
|
|
3
|
+
const E = /* @__PURE__ */ C({
|
|
4
4
|
__name: "Accordion",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -23,44 +23,55 @@ const S = /* @__PURE__ */ y({
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue", "change"],
|
|
25
25
|
setup(a, { emit: h }) {
|
|
26
|
-
const l = a, c = h, t =
|
|
27
|
-
|
|
26
|
+
const l = a, c = h, t = y([]), d = (e) => Array.isArray(e) ? e : typeof e == "string" && e ? [e] : [];
|
|
27
|
+
u(
|
|
28
28
|
() => l.modelValue,
|
|
29
29
|
(e) => {
|
|
30
|
-
t.value =
|
|
30
|
+
t.value = d(e);
|
|
31
31
|
},
|
|
32
32
|
{ immediate: !0 }
|
|
33
|
-
),
|
|
33
|
+
), u(
|
|
34
34
|
() => l.defaultValue,
|
|
35
35
|
(e) => {
|
|
36
|
-
!l.modelValue && e && (t.value =
|
|
36
|
+
!l.modelValue && e && (t.value = d(e));
|
|
37
37
|
},
|
|
38
38
|
{ immediate: !0 }
|
|
39
39
|
);
|
|
40
|
-
const
|
|
40
|
+
const r = (e) => {
|
|
41
41
|
if (l.disabled) return;
|
|
42
42
|
const i = t.value.includes(e);
|
|
43
43
|
l.allowMultiple ? i ? t.value = t.value.filter((n) => n !== e) : t.value = [...t.value, e] : i ? t.value = [] : t.value = [e], V();
|
|
44
44
|
}, V = () => {
|
|
45
45
|
const e = l.allowMultiple ? t.value : t.value[0] || "";
|
|
46
46
|
c("update:modelValue", e), c("change", e);
|
|
47
|
-
},
|
|
47
|
+
}, w = b(() => {
|
|
48
48
|
const e = ["w-full", l.class];
|
|
49
49
|
return l.attached && (e.push("rounded-lg overflow-hidden"), (l.variant === "outline" || l.variant === "default" || l.variant === "solid") && e.push("border")), e.join(" ");
|
|
50
50
|
});
|
|
51
|
-
return (e, i) => (
|
|
52
|
-
class:
|
|
51
|
+
return (e, i) => (f(), m("div", {
|
|
52
|
+
class: z(w.value)
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
|
|
54
|
+
s(e.$slots, "default", {}, () => [
|
|
55
|
+
(f(!0), m(B, null, $(a.items, (n, I) => k([
|
|
56
|
+
n,
|
|
57
|
+
t.value.includes(n.id),
|
|
58
|
+
a.variant,
|
|
59
|
+
a.size,
|
|
60
|
+
a.attached,
|
|
61
|
+
a.disabled,
|
|
62
|
+
a.showIndex,
|
|
63
|
+
a.openIcon,
|
|
64
|
+
a.closeIcon,
|
|
65
|
+
a.iconVariant,
|
|
66
|
+
a.activeIconVariant
|
|
67
|
+
], () => x(A, {
|
|
57
68
|
item: n,
|
|
58
69
|
"is-open": t.value.includes(n.id),
|
|
59
70
|
variant: a.variant,
|
|
60
71
|
size: a.size,
|
|
61
72
|
attached: a.attached,
|
|
62
73
|
disabled: a.disabled,
|
|
63
|
-
index:
|
|
74
|
+
index: I + 1,
|
|
64
75
|
"show-index": a.showIndex,
|
|
65
76
|
"open-icon": a.openIcon,
|
|
66
77
|
"close-icon": a.closeIcon,
|
|
@@ -69,27 +80,29 @@ const S = /* @__PURE__ */ y({
|
|
|
69
80
|
"trigger-class": a.triggerClass,
|
|
70
81
|
"content-class": a.contentClass,
|
|
71
82
|
"item-class": a.itemClass,
|
|
72
|
-
onToggle:
|
|
73
|
-
},
|
|
83
|
+
onToggle: r
|
|
84
|
+
}, M({ _: 2 }, [
|
|
74
85
|
e.$slots.trigger ? {
|
|
75
86
|
name: "trigger",
|
|
76
87
|
fn: v((o) => [
|
|
77
|
-
|
|
88
|
+
s(e.$slots, "trigger", g({ ref_for: !0 }, o))
|
|
78
89
|
]),
|
|
79
90
|
key: "0"
|
|
80
91
|
} : void 0,
|
|
81
92
|
e.$slots.content ? {
|
|
82
93
|
name: "content",
|
|
83
94
|
fn: v((o) => [
|
|
84
|
-
|
|
95
|
+
s(e.$slots, "content", g({ ref_for: !0 }, o, { close: r }))
|
|
85
96
|
]),
|
|
86
97
|
key: "1"
|
|
87
98
|
} : void 0
|
|
88
|
-
]), 1032, ["item", "is-open", "variant", "size", "attached", "disabled", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "trigger-class", "content-class", "item-class"])
|
|
99
|
+
]), 1032, ["item", "is-open", "variant", "size", "attached", "disabled", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "trigger-class", "content-class", "item-class"]), {
|
|
100
|
+
key: n.id
|
|
101
|
+
}, 0)), 128))
|
|
89
102
|
])
|
|
90
103
|
], 2));
|
|
91
104
|
}
|
|
92
105
|
});
|
|
93
106
|
export {
|
|
94
|
-
|
|
107
|
+
E as default
|
|
95
108
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AccordionContent.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0075dffb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, openBlock as h, createBlock as f, Transition as m, withCtx as p, createElementVNode as n, normalizeClass as u, renderSlot as v } from "vue";
|
|
2
|
-
const _ = { class: "overflow-hidden text-sm transition-all duration-300 ease-in-out" }, E = /* @__PURE__ */ d({
|
|
2
|
+
const _ = { class: "overflow-hidden text-sm transition-all duration-300 ease-in-out content-wrapper" }, E = /* @__PURE__ */ d({
|
|
3
3
|
__name: "AccordionContent",
|
|
4
4
|
props: {
|
|
5
5
|
class: { default: "" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Breadcrumb.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4ca31ff0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as M, computed as i, openBlock as m, createElementBlock as o, normalizeClass as p, createElementVNode as n, Fragment as b, renderList as N, withMemo as v, toDisplayString as h, createCommentVNode as g, createVNode as S, mergeProps as V, renderSlot as E } from "vue";
|
|
2
|
+
import O from "./BreadcrumbItem.vue.js";
|
|
3
|
+
const j = { class: "breadcrumb-list" }, D = {
|
|
4
4
|
class: "breadcrumb-separator",
|
|
5
5
|
"aria-hidden": "true"
|
|
6
|
-
},
|
|
6
|
+
}, P = /* @__PURE__ */ B({
|
|
7
7
|
__name: "Breadcrumb",
|
|
8
8
|
props: {
|
|
9
9
|
items: {},
|
|
@@ -14,82 +14,82 @@ const O = { class: "breadcrumb-list" }, _ = {
|
|
|
14
14
|
class: { default: "" }
|
|
15
15
|
},
|
|
16
16
|
emits: ["item-click"],
|
|
17
|
-
setup(
|
|
18
|
-
const e =
|
|
17
|
+
setup(s, { emit: k }) {
|
|
18
|
+
const e = s, x = k, f = M(!0), u = i(() => !e.maxItems || !e.items ? !1 : e.items.length > e.maxItems && f.value), c = i(() => {
|
|
19
19
|
if (!e.items) return [];
|
|
20
|
-
if (!
|
|
21
|
-
const t = e.maxItems,
|
|
22
|
-
return [e.items[0], ...e.items.slice(-
|
|
23
|
-
}),
|
|
24
|
-
function
|
|
25
|
-
|
|
20
|
+
if (!u.value) return e.items;
|
|
21
|
+
const t = e.maxItems, a = Math.max(t - 1, 1);
|
|
22
|
+
return [e.items[0], ...e.items.slice(-a)];
|
|
23
|
+
}), C = i(() => u.value ? 1 : -1);
|
|
24
|
+
function z() {
|
|
25
|
+
f.value = !1;
|
|
26
26
|
}
|
|
27
27
|
function I(t) {
|
|
28
|
-
if (!e.items || !
|
|
29
|
-
const
|
|
30
|
-
return t === 0 ? 0 :
|
|
28
|
+
if (!e.items || !u.value) return t;
|
|
29
|
+
const a = e.maxItems, l = Math.max(a - 1, 1), r = e.items.length - l;
|
|
30
|
+
return t === 0 ? 0 : r + (t - 1);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
32
|
+
function w(t) {
|
|
33
|
+
x("item-click", { item: t.item, index: I(t.index) });
|
|
34
34
|
}
|
|
35
|
-
const y =
|
|
35
|
+
const y = i(() => {
|
|
36
36
|
const t = {
|
|
37
37
|
default: "breadcrumb--default",
|
|
38
38
|
contained: "breadcrumb--contained",
|
|
39
39
|
pills: "breadcrumb--pills",
|
|
40
40
|
arrow: "breadcrumb--arrow"
|
|
41
|
-
},
|
|
41
|
+
}, a = {
|
|
42
42
|
sm: "breadcrumb--sm",
|
|
43
43
|
md: "breadcrumb--md",
|
|
44
44
|
lg: "breadcrumb--lg"
|
|
45
45
|
};
|
|
46
|
-
return ["breadcrumb", t[e.variant],
|
|
47
|
-
}),
|
|
46
|
+
return ["breadcrumb", t[e.variant], a[e.size], e.class].filter(Boolean).join(" ");
|
|
47
|
+
}), d = i(() => ({
|
|
48
48
|
slash: "/",
|
|
49
49
|
chevron: "›",
|
|
50
50
|
dot: "·",
|
|
51
51
|
arrow: "→"
|
|
52
52
|
})[e.separator] || "›");
|
|
53
|
-
return (t,
|
|
53
|
+
return (t, a) => (m(), o("nav", {
|
|
54
54
|
class: p(y.value),
|
|
55
55
|
"aria-label": "Breadcrumb"
|
|
56
56
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
key:
|
|
57
|
+
n("ol", j, [
|
|
58
|
+
s.items && s.items.length ? (m(!0), o(b, { key: 0 }, N(c.value, (l, r) => (m(), o(b, {
|
|
59
|
+
key: l.label + r
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
r > 0 ? v([d.value, e.separator], () => (m(), o("li", {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: p(["breadcrumb-separator", (e.separator == "chevron" || e?.separator === "dot") && "text-fs-3!"]),
|
|
64
64
|
"aria-hidden": "true"
|
|
65
65
|
}, [
|
|
66
|
-
|
|
67
|
-
], 2)) :
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
n("span", null, h(d.value), 1)
|
|
67
|
+
], 2)), a, 0) : g("", !0),
|
|
68
|
+
r === C.value ? (m(), o(b, { key: 1 }, [
|
|
69
|
+
n("li", D, [
|
|
70
|
+
n("span", null, h(d.value), 1)
|
|
71
71
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
n("li", { class: "breadcrumb-ellipsis" }, [
|
|
73
|
+
n("button", {
|
|
74
74
|
type: "button",
|
|
75
75
|
class: "breadcrumb-ellipsis-btn",
|
|
76
76
|
"aria-label": "Show all breadcrumb items",
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: z
|
|
78
78
|
}, " … ")
|
|
79
79
|
])
|
|
80
|
-
], 64)) :
|
|
81
|
-
|
|
82
|
-
size:
|
|
83
|
-
variant:
|
|
84
|
-
"is-current":
|
|
85
|
-
"item-index":
|
|
86
|
-
onItemClick:
|
|
87
|
-
}), null, 16, ["size", "variant", "is-current", "item-index"])
|
|
88
|
-
], 64))), 128)) :
|
|
80
|
+
], 64)) : g("", !0),
|
|
81
|
+
v([l, s.size, s.variant, r === c.value.length - 1], () => S(O, V({ ref_for: !0 }, l, {
|
|
82
|
+
size: s.size,
|
|
83
|
+
variant: s.variant,
|
|
84
|
+
"is-current": r === c.value.length - 1,
|
|
85
|
+
"item-index": r,
|
|
86
|
+
onItemClick: w
|
|
87
|
+
}), null, 16, ["size", "variant", "is-current", "item-index"]), a, 1)
|
|
88
|
+
], 64))), 128)) : E(t.$slots, "default", { key: 1 }, void 0, !0)
|
|
89
89
|
])
|
|
90
90
|
], 2));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
P as default
|
|
95
95
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Carousel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4034dab4"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as g,
|
|
1
|
+
import { defineComponent as g, shallowRef as f, openBlock as p, createElementBlock as m, createVNode as c, unref as v, mergeProps as P, createSlots as h, renderList as y, withCtx as S, renderSlot as x, normalizeProps as B, guardReactiveProps as N } from "vue";
|
|
2
2
|
import _ from "vue-carousel-lite";
|
|
3
3
|
import "vue-carousel-lite/style.css";
|
|
4
|
-
const
|
|
4
|
+
const w = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
|
|
5
5
|
__name: "Carousel",
|
|
6
6
|
props: {
|
|
7
7
|
data: { default: () => [] },
|
|
@@ -45,7 +45,7 @@ const T = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
|
|
|
45
45
|
goPrevPage: (e) => {
|
|
46
46
|
o.value?.goPrevPage(e);
|
|
47
47
|
}
|
|
48
|
-
}), (e, t) => (p(), m("div",
|
|
48
|
+
}), (e, t) => (p(), m("div", w, [
|
|
49
49
|
c(v(_), P({
|
|
50
50
|
ref_key: "carouselRef",
|
|
51
51
|
ref: o
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as
|
|
1
|
+
import { defineComponent as z, ref as p, watch as i, openBlock as a, createBlock as f, unref as v, withCtx as u, createElementBlock as h, createVNode as m, createCommentVNode as c, createElementVNode as $, mergeProps as w } from "vue";
|
|
2
2
|
import B from "../Dropdown/Dropdown.vue.js";
|
|
3
3
|
import "@iconify/vue";
|
|
4
4
|
import O from "../Input.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "../../core/config.js";
|
|
7
|
+
/* empty css */
|
|
7
8
|
import y from "../Button.vue.js";
|
|
8
9
|
import E from "./ColorIro.vue.js";
|
|
9
10
|
/* empty css */
|
|
@@ -14,7 +15,7 @@ const I = {
|
|
|
14
15
|
}, N = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "flex items-center gap-1.5 w-full"
|
|
17
|
-
}, D = { class: "w-32" },
|
|
18
|
+
}, D = { class: "w-32" }, L = /* @__PURE__ */ z({
|
|
18
19
|
__name: "ColorPicker",
|
|
19
20
|
props: {
|
|
20
21
|
modelValue: { default: "#000000" },
|
|
@@ -26,7 +27,7 @@ const I = {
|
|
|
26
27
|
},
|
|
27
28
|
emits: ["update:modelValue", "change"],
|
|
28
29
|
setup(o, { emit: V }) {
|
|
29
|
-
const
|
|
30
|
+
const r = o, d = V, n = p(!1), t = p(r.modelValue || "#000000"), { isSupported: b, open: g, sRGBHex: k } = P();
|
|
30
31
|
i(k, (e) => {
|
|
31
32
|
e && (t.value = e);
|
|
32
33
|
});
|
|
@@ -38,12 +39,12 @@ const I = {
|
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
i(
|
|
41
|
-
() =>
|
|
42
|
+
() => r.modelValue,
|
|
42
43
|
(e) => {
|
|
43
44
|
e && e !== t.value && (t.value = e);
|
|
44
45
|
}
|
|
45
46
|
), i(t, (e) => {
|
|
46
|
-
/^#([0-9A-F]{3,8})$/i.test(e) && e !==
|
|
47
|
+
/^#([0-9A-F]{3,8})$/i.test(e) && e !== r.modelValue && (d("update:modelValue", e), d("change", e));
|
|
47
48
|
});
|
|
48
49
|
const C = (e) => {
|
|
49
50
|
t.value = e;
|
|
@@ -55,11 +56,11 @@ const I = {
|
|
|
55
56
|
offset: [0, 8],
|
|
56
57
|
searchable: !1,
|
|
57
58
|
"close-on-select": !1,
|
|
58
|
-
onOnOpen: l[1] || (l[1] = (s) =>
|
|
59
|
-
onOnClose: l[2] || (l[2] = (s) =>
|
|
59
|
+
onOnOpen: l[1] || (l[1] = (s) => n.value = !0),
|
|
60
|
+
onOnClose: l[2] || (l[2] = (s) => n.value = !1)
|
|
60
61
|
}, {
|
|
61
62
|
trigger: u(({ isOpen: s }) => [
|
|
62
|
-
|
|
63
|
+
m(y, w({
|
|
63
64
|
style: { backgroundColor: o.modelValue }
|
|
64
65
|
}, {
|
|
65
66
|
rounded: "full",
|
|
@@ -70,8 +71,8 @@ const I = {
|
|
|
70
71
|
}), null, 16, ["style"])
|
|
71
72
|
]),
|
|
72
73
|
default: u(() => [
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
n.value ? (a(), h("div", I, [
|
|
75
|
+
m(E, {
|
|
75
76
|
color: o.modelValue,
|
|
76
77
|
"show-header": !1,
|
|
77
78
|
size: o.size,
|
|
@@ -86,9 +87,9 @@ const I = {
|
|
|
86
87
|
variant: "outline",
|
|
87
88
|
size: "sm",
|
|
88
89
|
class: "px-2 shrink-0"
|
|
89
|
-
})) :
|
|
90
|
+
})) : c("", !0),
|
|
90
91
|
$("div", D, [
|
|
91
|
-
|
|
92
|
+
m(O, {
|
|
92
93
|
modelValue: t.value,
|
|
93
94
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
|
|
94
95
|
size: "sm",
|
|
@@ -98,16 +99,16 @@ const I = {
|
|
|
98
99
|
"input-class": "font-mono text-xs uppercase "
|
|
99
100
|
}, null, 8, ["modelValue"])
|
|
100
101
|
])
|
|
101
|
-
])) :
|
|
102
|
+
])) : c("", !0)
|
|
102
103
|
]),
|
|
103
104
|
_: 1
|
|
104
105
|
}, 8, ["color", "size"])
|
|
105
|
-
])) :
|
|
106
|
+
])) : c("", !0)
|
|
106
107
|
]),
|
|
107
108
|
_: 1
|
|
108
109
|
}, 8, ["disabled", "position"]));
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
L as default
|
|
113
114
|
};
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3.5 border-b border-border/60 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as x, ref as z, computed as m, markRaw as P, watch as y, openBlock as n, createElementBlock as l, normalizeClass as p, Fragment as I, renderList as k, renderSlot as g, withMemo as v, createBlock as h, resolveDynamicComponent as w, createVNode as T, unref as C, mergeProps as $, createCommentVNode as B } from "vue";
|
|
2
|
+
import E from "../Pagination/Pagination.vue.js";
|
|
3
|
+
import F from "../Empty/Empty.vue.js";
|
|
4
|
+
const M = { class: "flex flex-col w-full" }, O = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "h-48 rounded-lg bg-gray-200 animate-pulse w-full"
|
|
7
|
-
},
|
|
7
|
+
}, R = {
|
|
8
8
|
key: 3,
|
|
9
9
|
class: "mt-8 w-full"
|
|
10
|
-
},
|
|
10
|
+
}, A = /* @__PURE__ */ x({
|
|
11
11
|
__name: "DataList",
|
|
12
12
|
props: {
|
|
13
13
|
data: { default: () => [] },
|
|
@@ -34,84 +34,87 @@ const z = { class: "flex flex-col w-full" }, E = {
|
|
|
34
34
|
delete: {}
|
|
35
35
|
},
|
|
36
36
|
emits: ["change"],
|
|
37
|
-
setup(e, { emit:
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
()
|
|
37
|
+
setup(e, { emit: N }) {
|
|
38
|
+
const a = e, D = N, i = z(a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10), d = m(() => a.item ? P(a.item) : void 0), u = m(() => {
|
|
39
|
+
const t = a.skeleton || a.skelton;
|
|
40
|
+
return t ? P(t) : void 0;
|
|
41
|
+
});
|
|
42
|
+
y(
|
|
43
|
+
() => a.pageInfo?.itemsPerPage,
|
|
41
44
|
(t) => {
|
|
42
|
-
t !== void 0 && (
|
|
45
|
+
t !== void 0 && (i.value = t);
|
|
43
46
|
}
|
|
44
|
-
),
|
|
45
|
-
() =>
|
|
47
|
+
), y(
|
|
48
|
+
() => a.paginationProps?.itemsPerPage,
|
|
46
49
|
(t) => {
|
|
47
|
-
t !== void 0 && (
|
|
50
|
+
t !== void 0 && (i.value = t);
|
|
48
51
|
}
|
|
49
52
|
);
|
|
50
|
-
let
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
let c = null;
|
|
54
|
+
const f = (t, s) => {
|
|
55
|
+
c && clearTimeout(c), c = setTimeout(() => {
|
|
56
|
+
D("change", { page: t, limit: s });
|
|
54
57
|
}, 10);
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
58
|
+
}, b = (t) => {
|
|
59
|
+
f(t, i.value);
|
|
60
|
+
}, L = (t) => {
|
|
61
|
+
i.value = t, f(a.pageInfo?.currentPage || 1, t);
|
|
59
62
|
};
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
return (t,
|
|
63
|
-
e.loading ? (
|
|
63
|
+
m(() => a.pageInfo?.currentPage || 1);
|
|
64
|
+
const S = m(() => a.pageInfo?.totalPages || 1);
|
|
65
|
+
return (t, s) => (n(), l("div", M, [
|
|
66
|
+
e.loading ? (n(), l("div", {
|
|
64
67
|
key: 0,
|
|
65
|
-
class:
|
|
68
|
+
class: p(e.className)
|
|
66
69
|
}, [
|
|
67
|
-
(
|
|
68
|
-
key: "skeleton-" +
|
|
69
|
-
index:
|
|
70
|
+
(n(), l(I, null, k(8, (o) => g(t.$slots, "skeleton", {
|
|
71
|
+
key: "skeleton-" + o,
|
|
72
|
+
index: o
|
|
70
73
|
}, () => [
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
g(t.$slots, "skelton", { index: o }, () => [
|
|
75
|
+
u.value ? v([o], () => (n(), h(w(u.value), { key: 0 })), s, 0) : (n(), l("div", O))
|
|
73
76
|
])
|
|
74
77
|
])), 64))
|
|
75
|
-
], 2)) : !e.data || e.data.length === 0 ?
|
|
76
|
-
|
|
78
|
+
], 2)) : !e.data || e.data.length === 0 ? g(t.$slots, "empty", { key: 1 }, () => [
|
|
79
|
+
T(C(F), {
|
|
77
80
|
title: e.emptyTitle,
|
|
78
81
|
titleI18n: e.emptyTitleI18n,
|
|
79
82
|
description: e.emptyDescription,
|
|
80
83
|
descriptionI18n: e.emptyDescriptionI18n,
|
|
81
84
|
icon: e.emptyIcon
|
|
82
85
|
}, null, 8, ["title", "titleI18n", "description", "descriptionI18n", "icon"])
|
|
83
|
-
]) : (
|
|
86
|
+
]) : (n(), l("div", {
|
|
84
87
|
key: 2,
|
|
85
|
-
class:
|
|
88
|
+
class: p(e.className)
|
|
86
89
|
}, [
|
|
87
|
-
(
|
|
88
|
-
key:
|
|
89
|
-
item:
|
|
90
|
+
(n(!0), l(I, null, k(e.data, (o, r) => g(t.$slots, "item", {
|
|
91
|
+
key: r,
|
|
92
|
+
item: o,
|
|
90
93
|
data: e.data,
|
|
91
|
-
index:
|
|
94
|
+
index: r
|
|
92
95
|
}, () => [
|
|
93
|
-
|
|
96
|
+
d.value ? v([o, r], () => (n(), h(w(d.value), $({
|
|
94
97
|
key: 0,
|
|
95
|
-
item:
|
|
98
|
+
item: o,
|
|
96
99
|
data: e.data,
|
|
97
|
-
index:
|
|
98
|
-
}, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])) :
|
|
100
|
+
index: r
|
|
101
|
+
}, { ref_for: !0 }, e.itemProps), null, 16, ["item", "data", "index"])), s, 1) : B("", !0)
|
|
99
102
|
])), 128))
|
|
100
103
|
], 2)),
|
|
101
|
-
e.showPagination && e.pageInfo &&
|
|
102
|
-
|
|
104
|
+
e.showPagination && e.pageInfo && S.value > 1 ? (n(), l("div", R, [
|
|
105
|
+
T(C(E), $({
|
|
103
106
|
"current-page": e.pageInfo?.currentPage,
|
|
104
107
|
"total-pages": e.pageInfo?.totalPages,
|
|
105
108
|
"total-items": e.pageInfo?.totalItems,
|
|
106
109
|
navType: "icon"
|
|
107
110
|
}, e.paginationProps, {
|
|
108
|
-
onChange:
|
|
109
|
-
"onUpdate:itemsPerPage":
|
|
111
|
+
onChange: b,
|
|
112
|
+
"onUpdate:itemsPerPage": L
|
|
110
113
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
111
|
-
])) :
|
|
114
|
+
])) : B("", !0)
|
|
112
115
|
]));
|
|
113
116
|
}
|
|
114
117
|
});
|
|
115
118
|
export {
|
|
116
|
-
|
|
119
|
+
A as default
|
|
117
120
|
};
|