vlite3 0.7.14 → 0.7.15
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/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +18 -17
- 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/Form/CustomFields.vue.js +1 -1
- 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 +20 -20
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +90 -78
- package/components/IconPicker.vue.js +3 -2
- package/components/ImportData/ImportStep2.vue.js +10 -9
- 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/PermissionMatrix/PermissionEditorList.vue.js +1 -1
- package/components/PermissionMatrix/PermissionEditorList.vue2.js +84 -75
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
- package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +122 -107
- 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 +4 -3
- package/components/SidePanel.vue.js +5 -146
- package/components/SidePanel.vue2.js +146 -2
- package/components/SidebarMenu/SidebarMenuItem.vue.js +26 -25
- package/components/Workbook/Sheet.vue.js +3 -2
- package/package.json +1 -1
- package/style.css +1 -1
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
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
|
-
import E from "./ColorIro.
|
|
9
|
-
/* empty css
|
|
9
|
+
import E from "./ColorIro.vue2.js";
|
|
10
|
+
/* empty css */
|
|
10
11
|
import { useEyeDropper as P } from "@vueuse/core";
|
|
11
12
|
const I = {
|
|
12
13
|
key: 0,
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|