vlite3 0.7.13 → 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/Button.vue.js +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +18 -17
- package/components/{CommandPaletteContent.vue.d.ts → CommandPalette/CommandPaletteContent.vue.d.ts} +3 -3
- package/components/CommandPalette/CommandPaletteContent.vue.js +7 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +180 -0
- package/components/CommandPalette/CommandPaletteItem.vue.d.ts +15 -0
- package/components/CommandPalette/CommandPaletteItem.vue2.js +7 -0
- package/components/CommandPalette/CommandPaletteItem.vue3.js +60 -0
- package/components/CommandPalette/index.d.ts +5 -0
- package/components/CommandPalette/types.d.ts +40 -0
- package/components/CommandPalette/useCommandPaletteItems.d.ts +15 -0
- package/components/CommandPalette/useCommandPaletteItems.js +99 -0
- package/components/CommandPalette/useCommandPaletteNav.d.ts +13 -0
- package/components/CommandPalette/useCommandPaletteNav.js +49 -0
- 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/NavbarCommandPalette.vue.d.ts +7 -30
- package/components/NavbarCommandPalette.vue.js +40 -40
- 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/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/components/CommandPaletteContent.vue.js +0 -7
- package/components/CommandPaletteContent.vue2.js +0 -311
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -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
|
};
|