vlite3 1.5.5 → 1.5.6
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/README.md +34 -0
- package/VLiteIconsVite.d.ts +36 -0
- package/components/AppShell/AppShell.vue.d.ts +1 -1
- package/components/AppShell/AppShellLayoutDashboard.vue.js +3 -2
- package/components/AppShell/AppShellLayoutDock.vue.js +3 -2
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +28 -27
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +3 -2
- package/components/AsyncSelect/createAsyncSelect.d.ts +4 -4
- package/components/AsyncSelect/createAsyncSelect.js +3 -2
- package/components/BackButton.vue.d.ts +1 -1
- package/components/CategoryManager/CategoryManager.vue2.js +16 -16
- package/components/CategoryManager/CategoryNode.vue.js +16 -16
- package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
- package/components/Chart/BarChart.vue.d.ts +1 -1
- package/components/Chart/GanttChart.vue.d.ts +1 -1
- package/components/Chart/LineChart.vue.d.ts +1 -1
- package/components/Chart/TimelineChart.vue.d.ts +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/ConfirmationModal.vue.d.ts +4 -0
- package/components/ConfirmationModal.vue.js +47 -39
- package/components/DataTable/DataTable.vue.js +319 -294
- package/components/DataTable/DataTableRow.vue.d.ts +2 -0
- package/components/DataTable/DataTableRow.vue.js +2 -2
- package/components/DataTable/DataTableRow.vue2.js +57 -54
- package/components/DataTable/types.d.ts +2 -0
- package/components/DatePicker.vue.js +5 -4
- package/components/Empty/Empty.vue.js +3 -2
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/Form/Form.vue2.js +44 -43
- package/components/Form/FormField.vue.js +24 -24
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/Icon.vue.d.ts +3 -2
- package/components/Icon.vue.js +22 -12
- package/components/IconPicker.vue.js +5 -133
- package/components/IconPicker.vue2.js +218 -2
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/ImportData/ImportStep2.vue.js +3 -2
- package/components/Kanban/KanbanBoard.vue2.js +4 -2
- package/components/List/utils.js +5 -4
- package/components/Masonry/Masonry.vue2.js +14 -13
- package/components/Navbar/Navbar.vue.d.ts +1 -1
- package/components/Price/Price.vue.js +13 -12
- package/components/Rating/Rating.vue.js +2 -2
- package/components/Rating/Rating.vue2.js +41 -41
- package/components/Rating/ReviewSummary.vue.js +20 -20
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +7 -5
- package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
- package/components/Stats/StatItem.vue.js +3 -2
- package/components/StatusChip/StatusChip.vue.js +6 -5
- package/components/Workbook/Sheet.vue.js +11 -11
- package/core/config.d.ts +28 -0
- package/core/config.js +23 -21
- package/core/index.js +18 -17
- package/icons/IconRegistry.d.ts +38 -0
- package/icons/IconRegistry.js +166 -0
- package/icons/IconTypes.d.ts +37 -0
- package/index.d.ts +2 -0
- package/index.js +473 -457
- package/package.json +15 -3
- package/style.css +1 -1
- package/types/config.type.d.ts +8 -1
- package/utils/functions.js +44 -43
- package/utils/index.d.ts +1 -0
- package/vite.d.ts +6 -0
- package/vite.js +223 -0
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBreakpoints as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useDataTableTree as
|
|
10
|
-
import { getStackedVisibleHeaders as
|
|
11
|
-
import { $t as
|
|
12
|
-
import { SCREEN_CONTEXT_KEY as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as Ue, computed as r, inject as Ke, toRef as fe, ref as O, watch as V, shallowRef as Oe, onUnmounted as He, openBlock as i, createElementBlock as d, createElementVNode as f, normalizeClass as C, Fragment as I, renderList as x, createCommentVNode as E, unref as o, isMemoSame as _, createBlock as ee, createSlots as H, withCtx as Y, renderSlot as $, mergeProps as te, createVNode as F, normalizeStyle as le } from "vue";
|
|
2
|
+
import { useBreakpoints as Ye, breakpointsTailwind as Xe } from "@vueuse/core";
|
|
3
|
+
import qe from "../CheckBox.vue.js";
|
|
4
|
+
import Ge from "../ConfirmationModal.vue.js";
|
|
5
|
+
import Je from "../Pagination/Pagination.vue.js";
|
|
6
|
+
import ge from "../Empty/Empty.vue.js";
|
|
7
|
+
import Qe from "./DataTableHeader.vue.js";
|
|
8
|
+
import he from "./DataTableRow.vue.js";
|
|
9
|
+
import { useDataTableTree as Ze } from "./useDataTableTree.js";
|
|
10
|
+
import { getStackedVisibleHeaders as _e } from "./dataTableHeaders.js";
|
|
11
|
+
import { $t as z } from "../../utils/i18n.js";
|
|
12
|
+
import { SCREEN_CONTEXT_KEY as et } from "./types.js";
|
|
13
|
+
const tt = { class: "space-y-6.5" }, lt = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "w-full min-w-0 space-y-3"
|
|
16
|
-
},
|
|
16
|
+
}, nt = { class: "flex items-center gap-2 px-3 py-3 border-b" }, st = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "h-4 w-4 rounded-[4px] bg-muted animate-pulse"
|
|
19
|
-
},
|
|
19
|
+
}, at = { class: "flex flex-col gap-2.5 px-3 py-3" }, ot = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "border rounded-lg bg-background"
|
|
22
|
-
},
|
|
22
|
+
}, it = { key: 0 }, dt = {
|
|
23
23
|
key: 0,
|
|
24
24
|
style: { width: "40px" }
|
|
25
|
-
},
|
|
25
|
+
}, rt = { class: "hover:bg-transparent" }, ct = {
|
|
26
26
|
key: 0,
|
|
27
27
|
scope: "col",
|
|
28
28
|
class: "w-[40px] px-0 text-center font-medium text-muted-foreground",
|
|
29
29
|
style: { width: "40px" }
|
|
30
|
-
},
|
|
30
|
+
}, ut = { class: "flex items-center justify-center" }, mt = { class: "[&_tr:last-child]:border-0" }, vt = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "w-[48px] px-0 py-4 align-middle text-center",
|
|
33
33
|
style: { width: "48px" }
|
|
34
|
-
},
|
|
34
|
+
}, ft = { key: 2 }, gt = ["colspan"], ht = { key: 0 }, Dt = /* @__PURE__ */ Ue({
|
|
35
35
|
__name: "DataTable",
|
|
36
36
|
props: {
|
|
37
37
|
rows: { default: () => [] },
|
|
@@ -40,6 +40,7 @@ const Qe = { class: "space-y-6.5" }, Ze = {
|
|
|
40
40
|
keyField: { default: "auto" },
|
|
41
41
|
loading: { type: Boolean, default: !1 },
|
|
42
42
|
hideSelectable: { type: Boolean, default: !1 },
|
|
43
|
+
isRowSelectable: {},
|
|
43
44
|
emptyTitle: {},
|
|
44
45
|
emptyTitleI18n: {},
|
|
45
46
|
emptyDescription: {},
|
|
@@ -71,300 +72,321 @@ const Qe = { class: "space-y-6.5" }, Ze = {
|
|
|
71
72
|
responsive: { type: Boolean, default: !0 }
|
|
72
73
|
},
|
|
73
74
|
emits: ["change", "select", "rowClick", "update:itemsPerPage", "update:selectedRows", "delete", "expand"],
|
|
74
|
-
setup(n, { emit:
|
|
75
|
-
const
|
|
75
|
+
setup(n, { emit: be }) {
|
|
76
|
+
const we = (e, l) => {
|
|
76
77
|
if (!(!e || !l))
|
|
77
|
-
return l.includes(".") ? l.split(".").reduce((t,
|
|
78
|
-
},
|
|
78
|
+
return l.includes(".") ? l.split(".").reduce((t, a) => t?.[a], e) : e[l];
|
|
79
|
+
}, w = (e, l) => we(e, l), ye = (e, l) => {
|
|
79
80
|
const t = ["id", "_id"];
|
|
80
81
|
if (l && l !== "auto") return l;
|
|
81
82
|
if (e && e.length > 0) {
|
|
82
|
-
for (const
|
|
83
|
-
if (
|
|
83
|
+
for (const a of t)
|
|
84
|
+
if (a in e[0]) return a;
|
|
84
85
|
}
|
|
85
86
|
return "_id";
|
|
86
|
-
},
|
|
87
|
-
isTreeMode:
|
|
88
|
-
flattenVisibleRows:
|
|
89
|
-
allLoadedRows:
|
|
90
|
-
findParentId:
|
|
91
|
-
isExpandable:
|
|
92
|
-
isExpanded:
|
|
93
|
-
isLoading:
|
|
94
|
-
collectDescendantIds:
|
|
95
|
-
toggleExpand:
|
|
96
|
-
pruneStaleTreeState:
|
|
97
|
-
getChildren:
|
|
98
|
-
} =
|
|
99
|
-
rows:
|
|
100
|
-
keyField:
|
|
101
|
-
loadChildren:
|
|
102
|
-
getRowId:
|
|
103
|
-
onExpand: (e) =>
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
),
|
|
107
|
-
|
|
108
|
-
() =>
|
|
87
|
+
}, pe = (e) => e.sortKey || e.field, s = n, ke = Ye(Xe).smaller("md"), X = r(() => s.responsive && ke.value), xe = r(() => _e(s.headers)), P = be, q = Ke(et, null), p = r(() => s.hideSelectable ? !1 : q ? q.forceSelectable : !0), g = r(() => ye(s.rows, s.keyField)), y = (e) => s.isRowSelectable?.(e) !== !1, M = (e) => p.value && y(e), {
|
|
88
|
+
isTreeMode: h,
|
|
89
|
+
flattenVisibleRows: L,
|
|
90
|
+
allLoadedRows: S,
|
|
91
|
+
findParentId: ne,
|
|
92
|
+
isExpandable: A,
|
|
93
|
+
isExpanded: N,
|
|
94
|
+
isLoading: j,
|
|
95
|
+
collectDescendantIds: se,
|
|
96
|
+
toggleExpand: ae,
|
|
97
|
+
pruneStaleTreeState: Se,
|
|
98
|
+
getChildren: oe
|
|
99
|
+
} = Ze({
|
|
100
|
+
rows: fe(s, "rows"),
|
|
101
|
+
keyField: g,
|
|
102
|
+
loadChildren: fe(s, "loadChildren"),
|
|
103
|
+
getRowId: w,
|
|
104
|
+
onExpand: (e) => P("expand", e)
|
|
105
|
+
}), T = O({ field: "", order: "" }), R = O(
|
|
106
|
+
s.pageInfo?.itemsPerPage || s.paginationProps?.itemsPerPage || 10
|
|
107
|
+
), D = O(s.pageInfo?.currentPage || 1), U = O(!1), ie = r(() => s.loading);
|
|
108
|
+
V(
|
|
109
|
+
() => s.pageInfo?.itemsPerPage,
|
|
109
110
|
(e) => {
|
|
110
|
-
e !== void 0 && (
|
|
111
|
+
e !== void 0 && (R.value = e);
|
|
111
112
|
}
|
|
112
|
-
),
|
|
113
|
-
() =>
|
|
113
|
+
), V(
|
|
114
|
+
() => s.paginationProps?.itemsPerPage,
|
|
114
115
|
(e) => {
|
|
115
|
-
e !== void 0 && (
|
|
116
|
+
e !== void 0 && (R.value = e);
|
|
116
117
|
}
|
|
117
|
-
),
|
|
118
|
-
() =>
|
|
118
|
+
), V(
|
|
119
|
+
() => s.pageInfo?.currentPage,
|
|
119
120
|
(e) => {
|
|
120
|
-
e && (
|
|
121
|
+
e && (D.value = e);
|
|
121
122
|
}
|
|
122
123
|
);
|
|
123
|
-
const c =
|
|
124
|
-
|
|
125
|
-
() =>
|
|
124
|
+
const c = Oe(/* @__PURE__ */ new Set());
|
|
125
|
+
V(
|
|
126
|
+
() => s.selectedRows,
|
|
126
127
|
(e) => {
|
|
127
|
-
const l = new Set(
|
|
128
|
+
const l = new Set(
|
|
129
|
+
(e || []).filter(y).map((t) => w(t, g.value))
|
|
130
|
+
);
|
|
128
131
|
(l.size !== c.value.size || [...l].some((t) => !c.value.has(t))) && (c.value = l);
|
|
129
132
|
},
|
|
130
133
|
{ immediate: !0 }
|
|
131
134
|
);
|
|
132
|
-
const
|
|
133
|
-
if (!
|
|
135
|
+
const W = r(() => {
|
|
136
|
+
if (!h.value) return s.rows.filter(y);
|
|
134
137
|
const e = [], l = (t) => {
|
|
135
|
-
for (const
|
|
136
|
-
e.push(
|
|
137
|
-
for (const
|
|
138
|
+
for (const a of t) {
|
|
139
|
+
y(a) && e.push(a);
|
|
140
|
+
for (const u of oe(a)) l([u]);
|
|
138
141
|
}
|
|
139
142
|
};
|
|
140
|
-
return l(
|
|
141
|
-
}),
|
|
142
|
-
const e =
|
|
143
|
-
return e.length > 0 && e.every((l) => c.value.has(
|
|
144
|
-
}),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
return l(s.rows), e;
|
|
144
|
+
}), G = r(() => {
|
|
145
|
+
const e = W.value;
|
|
146
|
+
return e.length > 0 && e.every((l) => c.value.has(w(l, g.value)));
|
|
147
|
+
}), Ce = r(() => W.value.length > 0), Ie = r(
|
|
148
|
+
() => W.value.filter(
|
|
149
|
+
(e) => c.value.has(w(e, g.value))
|
|
150
|
+
).length
|
|
151
|
+
), de = r(
|
|
152
|
+
() => Ie.value > 0 && !G.value
|
|
153
|
+
), Pe = r(() => {
|
|
154
|
+
const e = new Map(S.value);
|
|
155
|
+
return (s.selectedRows || []).forEach((l) => e.set(w(l, g.value), l)), s.rows.forEach((l) => e.set(w(l, g.value), l)), Array.from(c.value).map((l) => e.get(l)).filter(Boolean);
|
|
156
|
+
}), Te = (e) => {
|
|
157
|
+
if (!h.value) return !1;
|
|
158
|
+
const l = se(e).filter((a) => {
|
|
159
|
+
const u = S.value.get(a);
|
|
160
|
+
return u && y(u);
|
|
161
|
+
});
|
|
150
162
|
if (!l.length) return !1;
|
|
151
163
|
let t = 0;
|
|
152
|
-
for (const
|
|
153
|
-
c.value.has(
|
|
164
|
+
for (const a of l)
|
|
165
|
+
c.value.has(a) && t++;
|
|
154
166
|
return t > 0 && t < l.length;
|
|
155
|
-
},
|
|
167
|
+
}, K = r(() => {
|
|
156
168
|
const e = /* @__PURE__ */ new Set();
|
|
157
|
-
if (!
|
|
158
|
-
for (const l of
|
|
159
|
-
|
|
169
|
+
if (!h.value) return e;
|
|
170
|
+
for (const l of L.value)
|
|
171
|
+
Te(l.row) && e.add(l.id);
|
|
160
172
|
return e;
|
|
161
|
-
}),
|
|
162
|
-
let t =
|
|
173
|
+
}), Be = (e, l) => {
|
|
174
|
+
let t = ne(e);
|
|
163
175
|
for (; t != null; ) {
|
|
164
|
-
const
|
|
165
|
-
if (!
|
|
166
|
-
const
|
|
167
|
-
|
|
176
|
+
const a = S.value.get(t);
|
|
177
|
+
if (!a) break;
|
|
178
|
+
const u = oe(a).filter(y).map((v) => w(v, g.value)), m = u.length > 0 && u.every((v) => l.has(v));
|
|
179
|
+
y(a) && m ? l.add(t) : l.delete(t), t = ne(t);
|
|
168
180
|
}
|
|
169
|
-
},
|
|
181
|
+
}, Re = (e) => {
|
|
170
182
|
const l = new Set(c.value);
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
e ? l.add(
|
|
174
|
-
}), c.value = l,
|
|
175
|
-
},
|
|
176
|
-
const l =
|
|
177
|
-
if (
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
W.value.forEach((t) => {
|
|
184
|
+
const a = w(t, g.value);
|
|
185
|
+
e ? l.add(a) : l.delete(a);
|
|
186
|
+
}), c.value = l, J();
|
|
187
|
+
}, re = (e) => {
|
|
188
|
+
const l = S.value.get(e) || s.rows.find((u) => w(u, g.value) === e);
|
|
189
|
+
if (!l || !y(l)) return;
|
|
190
|
+
const t = new Set(c.value), a = !t.has(e);
|
|
191
|
+
if (h.value) {
|
|
192
|
+
const u = S.value.get(e);
|
|
193
|
+
if (u) {
|
|
194
|
+
const m = (v, k) => {
|
|
195
|
+
const b = S.value.get(v);
|
|
196
|
+
!b || !y(b) || (k ? t.add(v) : t.delete(v));
|
|
182
197
|
};
|
|
183
|
-
|
|
198
|
+
m(e, a), se(u).forEach((v) => m(v, a)), Be(e, t), c.value = t, J();
|
|
184
199
|
return;
|
|
185
200
|
}
|
|
186
201
|
}
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
const e = /* @__PURE__ */ new Set(), l = [], t = (
|
|
190
|
-
const
|
|
191
|
-
c.value.has(
|
|
202
|
+
t.has(e) ? t.delete(e) : t.add(e), c.value = t, J();
|
|
203
|
+
}, J = () => {
|
|
204
|
+
const e = /* @__PURE__ */ new Set(), l = [], t = (a) => {
|
|
205
|
+
const u = w(a, g.value);
|
|
206
|
+
c.value.has(u) && !e.has(u) && (l.push(a), e.add(u));
|
|
192
207
|
};
|
|
193
|
-
|
|
208
|
+
W.value.forEach(t), (s.selectedRows || []).forEach(t), P("select", {
|
|
194
209
|
selected: l,
|
|
195
|
-
all:
|
|
196
|
-
indeterminate:
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
199
|
-
const l =
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
},
|
|
206
|
-
|
|
210
|
+
all: G.value,
|
|
211
|
+
indeterminate: de.value
|
|
212
|
+
}), P("update:selectedRows", l);
|
|
213
|
+
}, De = (e) => {
|
|
214
|
+
const l = s.headers.find((a) => a.field === e), t = l ? pe(l) : e;
|
|
215
|
+
T.value.field === t ? T.value.order = T.value.order === "asc" ? "desc" : "asc" : (T.value.field = t, T.value.order = "asc"), D.value = 1, Q();
|
|
216
|
+
}, Ee = (e) => {
|
|
217
|
+
D.value = e, Q();
|
|
218
|
+
}, $e = (e) => {
|
|
219
|
+
R.value = e, D.value = 1, P("update:itemsPerPage", e), Q();
|
|
220
|
+
}, ce = (e) => P("rowClick", e), ze = () => {
|
|
221
|
+
P("delete", Pe.value), U.value = !1;
|
|
207
222
|
};
|
|
208
|
-
let
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
|
|
223
|
+
let B = null;
|
|
224
|
+
const Q = () => {
|
|
225
|
+
B && clearTimeout(B), B = setTimeout(() => {
|
|
226
|
+
B = null;
|
|
212
227
|
const e = {
|
|
213
|
-
pagination: { page:
|
|
214
|
-
sort: { ...
|
|
228
|
+
pagination: { page: D.value, limit: R.value },
|
|
229
|
+
sort: { ...T.value },
|
|
215
230
|
filter: {}
|
|
216
231
|
};
|
|
217
|
-
|
|
232
|
+
P("change", e), q?.onTableChange?.(e);
|
|
218
233
|
}, 10);
|
|
219
234
|
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}),
|
|
223
|
-
() =>
|
|
235
|
+
He(() => {
|
|
236
|
+
B && (clearTimeout(B), B = null);
|
|
237
|
+
}), V(
|
|
238
|
+
() => s.rows,
|
|
224
239
|
() => {
|
|
225
|
-
|
|
226
|
-
const e = new Set(
|
|
227
|
-
(
|
|
228
|
-
e.add(
|
|
229
|
-
}), c.value = new Set(
|
|
240
|
+
Se();
|
|
241
|
+
const e = new Set(S.value.keys());
|
|
242
|
+
(s.selectedRows || []).forEach((l) => {
|
|
243
|
+
y(l) && e.add(w(l, g.value));
|
|
244
|
+
}), c.value = new Set(
|
|
245
|
+
[...c.value].filter((l) => {
|
|
246
|
+
const t = S.value.get(l);
|
|
247
|
+
return e.has(l) && (!t || y(t));
|
|
248
|
+
})
|
|
249
|
+
);
|
|
230
250
|
}
|
|
231
251
|
);
|
|
232
|
-
const
|
|
233
|
-
const e =
|
|
252
|
+
const Le = r(() => {
|
|
253
|
+
const e = s.variant === "raised", l = s.rounded ? e ? "rounded-lg" : "rounded" : "rounded-none";
|
|
234
254
|
return [
|
|
235
255
|
"w-full flex flex-col",
|
|
236
256
|
e ? `bg-background shadow-sm p-2 ${l}` : `bg-background ${l}`,
|
|
237
|
-
|
|
257
|
+
X.value ? "overflow-visible" : "overflow-hidden",
|
|
238
258
|
// Outer border stays on desktop table; stacked cards carry their own borders.
|
|
239
|
-
|
|
240
|
-
|
|
259
|
+
s.bordered && !X.value ? "border border-border" : "",
|
|
260
|
+
s.class
|
|
241
261
|
].join(" ");
|
|
242
|
-
}),
|
|
243
|
-
const e =
|
|
262
|
+
}), We = r(() => {
|
|
263
|
+
const e = s.cellBordered ? "[&_thead_th]:border-border [&_tbody_td]:border-border [&_tbody_th]:border-border [&_thead_th:not(:last-child)]:border-r [&_tbody_td:not(:last-child)]:border-r [&_tbody_th:not(:last-child)]:border-r [&_tbody_tr:not(:last-child)>td]:border-b [&_tbody_tr:not(:last-child)>th]:border-b" : "";
|
|
244
264
|
return [
|
|
245
265
|
"w-full caption-bottom -text-fs-1",
|
|
246
|
-
|
|
266
|
+
h.value ? "table-fixed" : "",
|
|
247
267
|
e,
|
|
248
|
-
|
|
268
|
+
s.tableClass
|
|
249
269
|
].join(" ");
|
|
250
|
-
}),
|
|
270
|
+
}), Ve = (e) => {
|
|
251
271
|
const l = {};
|
|
252
|
-
return e.width && !/(?:^|\s|:)w-/.test(e.width) && (l.width = e.width), e.minWidth && !/(?:^|\s|:)min-w-/.test(e.minWidth) && (
|
|
253
|
-
},
|
|
272
|
+
return e.width && !/(?:^|\s|:)w-/.test(e.width) && (l.width = e.width), e.minWidth && !/(?:^|\s|:)min-w-/.test(e.minWidth) && (h.value && !l.width ? l.width = e.minWidth : l.minWidth = e.minWidth), l;
|
|
273
|
+
}, Fe = (e) => {
|
|
254
274
|
const l = {};
|
|
255
275
|
return e.width && !/(?:^|\s|:)w-/.test(e.width) ? l.width = e.width : e.minWidth && !/(?:^|\s|:)min-w-/.test(e.minWidth) && (l.width = e.minWidth), l;
|
|
256
|
-
},
|
|
276
|
+
}, ue = (e) => {
|
|
257
277
|
const l = [];
|
|
258
278
|
return e.width && /(?:^|\s|:)w-/.test(e.width) && l.push(e.width), e.minWidth && /(?:^|\s|:)min-w-/.test(e.minWidth) && l.push(e.minWidth), l.join(" ");
|
|
259
|
-
},
|
|
260
|
-
() =>
|
|
261
|
-
),
|
|
262
|
-
() =>
|
|
263
|
-
),
|
|
264
|
-
const e =
|
|
279
|
+
}, me = r(
|
|
280
|
+
() => s.emptyTitleI18n ? z(s.emptyTitleI18n) : s.emptyTitle
|
|
281
|
+
), ve = r(
|
|
282
|
+
() => s.emptyDescriptionI18n ? z(s.emptyDescriptionI18n) : s.emptyDescription
|
|
283
|
+
), Me = r(() => {
|
|
284
|
+
const e = z("vlite.dataTable.confirmDeleteTitle");
|
|
265
285
|
return e !== "vlite.dataTable.confirmDeleteTitle" ? e : "Confirm Deletion";
|
|
266
|
-
}),
|
|
267
|
-
const e =
|
|
286
|
+
}), Ae = r(() => {
|
|
287
|
+
const e = z("vlite.dataTable.confirmDeleteDesc");
|
|
268
288
|
return e !== "vlite.dataTable.confirmDeleteDesc" ? e : "Are you sure you want to delete the selected items?";
|
|
269
|
-
}),
|
|
270
|
-
const e =
|
|
289
|
+
}), Ne = r(() => {
|
|
290
|
+
const e = z("vlite.dataTable.deleteBtn");
|
|
271
291
|
return e !== "vlite.dataTable.deleteBtn" ? e : "Delete";
|
|
272
|
-
}),
|
|
273
|
-
const e =
|
|
292
|
+
}), je = r(() => {
|
|
293
|
+
const e = z("vlite.dataTable.cancelBtn");
|
|
274
294
|
return e !== "vlite.dataTable.cancelBtn" ? e : "Cancel";
|
|
275
295
|
});
|
|
276
|
-
return (e, l) => (i(), d("div",
|
|
277
|
-
|
|
278
|
-
class:
|
|
296
|
+
return (e, l) => (i(), d("div", tt, [
|
|
297
|
+
f("div", {
|
|
298
|
+
class: C(Le.value)
|
|
279
299
|
}, [
|
|
280
|
-
|
|
281
|
-
|
|
300
|
+
X.value ? (i(), d("div", lt, [
|
|
301
|
+
ie.value ? (i(!0), d(I, { key: 0 }, x(Math.min(R.value, 15), (t) => (i(), d("div", {
|
|
282
302
|
key: "skeleton-card-" + t,
|
|
283
303
|
class: "border rounded-lg overflow-hidden bg-background"
|
|
284
304
|
}, [
|
|
285
|
-
|
|
286
|
-
p.value ? (i(), d("div",
|
|
287
|
-
l[8] || (l[8] =
|
|
305
|
+
f("div", nt, [
|
|
306
|
+
p.value ? (i(), d("div", st)) : E("", !0),
|
|
307
|
+
l[8] || (l[8] = f("div", { class: "h-4 flex-1 rounded-md bg-muted animate-pulse" }, null, -1))
|
|
288
308
|
]),
|
|
289
|
-
|
|
290
|
-
(i(!0), d(
|
|
291
|
-
key:
|
|
309
|
+
f("div", at, [
|
|
310
|
+
(i(!0), d(I, null, x(xe.value.slice(1, 4), (a) => (i(), d("div", {
|
|
311
|
+
key: a.field,
|
|
292
312
|
class: "flex items-center justify-between gap-3"
|
|
293
313
|
}, [...l[9] || (l[9] = [
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
f("div", { class: "h-2.5 w-14 rounded bg-muted animate-pulse" }, null, -1),
|
|
315
|
+
f("div", { class: "h-4 w-20 rounded-md bg-muted animate-pulse" }, null, -1)
|
|
296
316
|
])]))), 128))
|
|
297
317
|
])
|
|
298
|
-
]))), 128)) : o(
|
|
299
|
-
const
|
|
318
|
+
]))), 128)) : o(L).length > 0 ? (i(!0), d(I, { key: 1 }, x(o(L), (t, a, u, m) => {
|
|
319
|
+
const v = [
|
|
300
320
|
t.row,
|
|
301
321
|
c.value.has(t.id),
|
|
302
|
-
|
|
322
|
+
K.value.has(t.id),
|
|
303
323
|
p.value,
|
|
324
|
+
M(t.row),
|
|
304
325
|
n.compact,
|
|
305
326
|
n.size,
|
|
306
327
|
n.striped,
|
|
307
328
|
n.hoverable,
|
|
308
329
|
n.cellBordered,
|
|
309
|
-
o(
|
|
330
|
+
o(h),
|
|
310
331
|
t.depth,
|
|
311
332
|
t.isLastSibling,
|
|
312
333
|
t.ancestorLastFlags,
|
|
313
|
-
o(
|
|
314
|
-
o(
|
|
315
|
-
o(
|
|
334
|
+
o(N)(t.id),
|
|
335
|
+
o(j)(t.id),
|
|
336
|
+
o(A)(t.row),
|
|
316
337
|
n.treeIndent,
|
|
317
338
|
!0
|
|
318
339
|
];
|
|
319
|
-
if (
|
|
320
|
-
const k = (i(),
|
|
340
|
+
if (m && m.key === t.id && _(m, v)) return m;
|
|
341
|
+
const k = (i(), ee(he, {
|
|
321
342
|
key: t.id,
|
|
322
343
|
stacked: "",
|
|
323
344
|
row: t.row,
|
|
324
345
|
headers: n.headers,
|
|
325
346
|
index: t.index,
|
|
326
|
-
"key-field":
|
|
347
|
+
"key-field": g.value,
|
|
327
348
|
selectable: p.value,
|
|
349
|
+
"selection-disabled": !M(t.row),
|
|
328
350
|
"is-selected": c.value.has(t.id),
|
|
329
|
-
"is-indeterminate":
|
|
351
|
+
"is-indeterminate": K.value.has(t.id),
|
|
330
352
|
hoverable: n.hoverable,
|
|
331
353
|
striped: n.striped,
|
|
332
354
|
compact: n.compact,
|
|
333
355
|
size: n.size,
|
|
334
356
|
"cell-bordered": n.cellBordered,
|
|
335
|
-
"tree-mode": o(
|
|
357
|
+
"tree-mode": o(h),
|
|
336
358
|
depth: t.depth,
|
|
337
359
|
"tree-indent": n.treeIndent,
|
|
338
|
-
expandable: o(
|
|
339
|
-
expanded: o(
|
|
340
|
-
"tree-loading": o(
|
|
360
|
+
expandable: o(A)(t.row),
|
|
361
|
+
expanded: o(N)(t.id),
|
|
362
|
+
"tree-loading": o(j)(t.id),
|
|
341
363
|
"is-last-sibling": t.isLastSibling,
|
|
342
364
|
"ancestor-last-flags": t.ancestorLastFlags,
|
|
343
|
-
onSelect:
|
|
344
|
-
onRowClick:
|
|
345
|
-
onToggleExpand: (b) => o(
|
|
346
|
-
},
|
|
347
|
-
|
|
365
|
+
onSelect: re,
|
|
366
|
+
onRowClick: ce,
|
|
367
|
+
onToggleExpand: (b) => o(ae)(t.row, t.depth)
|
|
368
|
+
}, H({ _: 2 }, [
|
|
369
|
+
x(n.headers, (b) => ({
|
|
348
370
|
name: b.field,
|
|
349
|
-
fn:
|
|
350
|
-
|
|
371
|
+
fn: Y((Z) => [
|
|
372
|
+
$(e.$slots, b.field, te({ ref_for: !0 }, Z))
|
|
351
373
|
])
|
|
352
374
|
}))
|
|
353
|
-
]), 1032, ["row", "headers", "index", "key-field", "selectable", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "onToggleExpand"]));
|
|
354
|
-
return k.memo =
|
|
355
|
-
}, l, 0), 128)) : (i(), d("div",
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
title:
|
|
359
|
-
description:
|
|
375
|
+
]), 1032, ["row", "headers", "index", "key-field", "selectable", "selection-disabled", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "onToggleExpand"]));
|
|
376
|
+
return k.memo = v, k;
|
|
377
|
+
}, l, 0), 128)) : (i(), d("div", ot, [
|
|
378
|
+
$(e.$slots, "empty", {}, () => [
|
|
379
|
+
F(o(ge), {
|
|
380
|
+
title: me.value,
|
|
381
|
+
description: ve.value,
|
|
360
382
|
icon: n.emptyIcon,
|
|
361
383
|
variant: "variant12",
|
|
362
384
|
class: "bg-transparent! py-8!"
|
|
363
|
-
},
|
|
385
|
+
}, H({ _: 2 }, [
|
|
364
386
|
e.$slots["empty-action"] ? {
|
|
365
387
|
name: "action",
|
|
366
|
-
fn:
|
|
367
|
-
|
|
388
|
+
fn: Y(() => [
|
|
389
|
+
$(e.$slots, "empty-action")
|
|
368
390
|
]),
|
|
369
391
|
key: "0"
|
|
370
392
|
} : void 0
|
|
@@ -373,191 +395,194 @@ const Qe = { class: "space-y-6.5" }, Ze = {
|
|
|
373
395
|
]))
|
|
374
396
|
])) : (i(), d("div", {
|
|
375
397
|
key: 1,
|
|
376
|
-
class:
|
|
398
|
+
class: C(["w-full overflow-x-auto", o(h) ? "overflow-y-visible" : "overflow-y-hidden"])
|
|
377
399
|
}, [
|
|
378
|
-
|
|
379
|
-
class:
|
|
400
|
+
f("table", {
|
|
401
|
+
class: C([We.value, "data-table"])
|
|
380
402
|
}, [
|
|
381
|
-
o(
|
|
382
|
-
p.value ? (i(), d("col",
|
|
383
|
-
(i(!0), d(
|
|
403
|
+
o(h) ? (i(), d("colgroup", it, [
|
|
404
|
+
p.value ? (i(), d("col", dt)) : E("", !0),
|
|
405
|
+
(i(!0), d(I, null, x(n.headers, (t) => (i(), d("col", {
|
|
384
406
|
key: "col-" + t.field,
|
|
385
|
-
class:
|
|
386
|
-
style:
|
|
407
|
+
class: C(ue(t)),
|
|
408
|
+
style: le(Fe(t))
|
|
387
409
|
}, null, 6))), 128))
|
|
388
|
-
])) :
|
|
389
|
-
|
|
390
|
-
class:
|
|
410
|
+
])) : E("", !0),
|
|
411
|
+
f("thead", {
|
|
412
|
+
class: C([
|
|
391
413
|
"[&_tr]:border-b [&_tr]:border-border",
|
|
392
414
|
n.headerVariant === "minimal" ? "bg-transparent" : "bg-accent",
|
|
393
415
|
n.variant === "raised" && n.rounded ? "[&_th:first-child]:rounded-tl-lg [&_th:last-child]:rounded-tr-lg" : ""
|
|
394
416
|
])
|
|
395
417
|
}, [
|
|
396
|
-
|
|
397
|
-
p.value ? (i(), d("th",
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
"model-value":
|
|
401
|
-
indeterminate:
|
|
418
|
+
f("tr", rt, [
|
|
419
|
+
p.value ? (i(), d("th", ct, [
|
|
420
|
+
f("div", ut, [
|
|
421
|
+
F(qe, {
|
|
422
|
+
"model-value": G.value,
|
|
423
|
+
indeterminate: de.value,
|
|
424
|
+
disabled: !Ce.value,
|
|
402
425
|
size: "xs",
|
|
403
|
-
"onUpdate:modelValue":
|
|
404
|
-
}, null, 8, ["model-value", "indeterminate"])
|
|
426
|
+
"onUpdate:modelValue": Re
|
|
427
|
+
}, null, 8, ["model-value", "indeterminate", "disabled"])
|
|
405
428
|
])
|
|
406
|
-
])) :
|
|
407
|
-
(i(!0), d(
|
|
429
|
+
])) : E("", !0),
|
|
430
|
+
(i(!0), d(I, null, x(n.headers, (t) => (i(), ee(Qe, {
|
|
408
431
|
key: t.field,
|
|
409
432
|
header: t,
|
|
410
|
-
"sort-config":
|
|
433
|
+
"sort-config": T.value,
|
|
411
434
|
compact: n.compact,
|
|
412
435
|
size: n.size,
|
|
413
436
|
"table-sortable": n.sortable,
|
|
414
437
|
"cell-bordered": n.cellBordered,
|
|
415
|
-
onSort:
|
|
416
|
-
class:
|
|
438
|
+
onSort: De,
|
|
439
|
+
class: C([
|
|
417
440
|
n.cellBordered ? "" : "last:pr-5!",
|
|
418
|
-
|
|
419
|
-
o(
|
|
441
|
+
ue(t),
|
|
442
|
+
o(h) ? "min-w-0! max-w-none!" : ""
|
|
420
443
|
]),
|
|
421
|
-
style:
|
|
444
|
+
style: le(Ve(t))
|
|
422
445
|
}, null, 8, ["header", "sort-config", "compact", "size", "table-sortable", "cell-bordered", "class", "style"]))), 128))
|
|
423
446
|
])
|
|
424
447
|
], 2),
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
448
|
+
f("tbody", mt, [
|
|
449
|
+
ie.value ? (i(!0), d(I, { key: 0 }, x(Math.min(R.value, 15), (t, a, u, m) => {
|
|
450
|
+
const v = [];
|
|
451
|
+
if (m && m.key === "skeleton-" + t && _(m, v)) return m;
|
|
429
452
|
const k = (i(), d("tr", {
|
|
430
453
|
key: "skeleton-" + t,
|
|
431
454
|
class: "border-b border-border/70 bg-background transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
|
|
432
455
|
}, [
|
|
433
|
-
p.value ? (i(), d("td",
|
|
434
|
-
|
|
435
|
-
|
|
456
|
+
p.value ? (i(), d("td", vt, [...l[10] || (l[10] = [
|
|
457
|
+
f("div", { class: "flex items-center justify-center" }, [
|
|
458
|
+
f("div", { class: "h-4 w-4 rounded-[4px] bg-muted/50 animate-pulse" })
|
|
436
459
|
], -1)
|
|
437
|
-
])])) :
|
|
438
|
-
(i(!0), d(
|
|
460
|
+
])])) : E("", !0),
|
|
461
|
+
(i(!0), d(I, null, x(n.headers, (b) => (i(), d("td", {
|
|
439
462
|
key: b.field,
|
|
440
|
-
class:
|
|
463
|
+
class: C(["align-middle", [
|
|
441
464
|
b.hideOnMobile ? "hidden md:table-cell" : "",
|
|
442
465
|
n.cellBordered ? "px-5! py-3!" : "p-5! last:pr-6!"
|
|
443
466
|
]])
|
|
444
467
|
}, [
|
|
445
|
-
|
|
468
|
+
f("div", {
|
|
446
469
|
class: "rounded-md bg-muted/50 animate-pulse h-4",
|
|
447
|
-
style:
|
|
470
|
+
style: le({ width: `${50 + Math.random() * 40}%` })
|
|
448
471
|
}, null, 4)
|
|
449
472
|
], 2))), 128))
|
|
450
473
|
]));
|
|
451
|
-
return k.memo =
|
|
452
|
-
}, l, 2), 128)) : o(
|
|
453
|
-
const
|
|
474
|
+
return k.memo = v, k;
|
|
475
|
+
}, l, 2), 128)) : o(L).length > 0 ? (i(!0), d(I, { key: 1 }, x(o(L), (t, a, u, m) => {
|
|
476
|
+
const v = [
|
|
454
477
|
t.row,
|
|
455
478
|
c.value.has(t.id),
|
|
456
|
-
|
|
479
|
+
K.value.has(t.id),
|
|
457
480
|
p.value,
|
|
481
|
+
M(t.row),
|
|
458
482
|
n.compact,
|
|
459
483
|
n.size,
|
|
460
484
|
n.striped,
|
|
461
485
|
n.hoverable,
|
|
462
486
|
n.cellBordered,
|
|
463
|
-
o(
|
|
487
|
+
o(h),
|
|
464
488
|
t.depth,
|
|
465
489
|
t.isLastSibling,
|
|
466
490
|
t.ancestorLastFlags,
|
|
467
|
-
o(
|
|
468
|
-
o(
|
|
469
|
-
o(
|
|
491
|
+
o(N)(t.id),
|
|
492
|
+
o(j)(t.id),
|
|
493
|
+
o(A)(t.row),
|
|
470
494
|
n.treeIndent,
|
|
471
495
|
!1
|
|
472
496
|
];
|
|
473
|
-
if (
|
|
474
|
-
const k = (i(),
|
|
497
|
+
if (m && m.key === t.id && _(m, v)) return m;
|
|
498
|
+
const k = (i(), ee(he, {
|
|
475
499
|
key: t.id,
|
|
476
500
|
row: t.row,
|
|
477
501
|
headers: n.headers,
|
|
478
502
|
index: t.index,
|
|
479
|
-
"key-field":
|
|
503
|
+
"key-field": g.value,
|
|
480
504
|
selectable: p.value,
|
|
505
|
+
"selection-disabled": !M(t.row),
|
|
481
506
|
"is-selected": c.value.has(t.id),
|
|
482
|
-
"is-indeterminate":
|
|
507
|
+
"is-indeterminate": K.value.has(t.id),
|
|
483
508
|
hoverable: n.hoverable,
|
|
484
509
|
striped: n.striped,
|
|
485
510
|
compact: n.compact,
|
|
486
511
|
size: n.size,
|
|
487
512
|
"cell-bordered": n.cellBordered,
|
|
488
|
-
"tree-mode": o(
|
|
513
|
+
"tree-mode": o(h),
|
|
489
514
|
depth: t.depth,
|
|
490
515
|
"tree-indent": n.treeIndent,
|
|
491
|
-
expandable: o(
|
|
492
|
-
expanded: o(
|
|
493
|
-
"tree-loading": o(
|
|
516
|
+
expandable: o(A)(t.row),
|
|
517
|
+
expanded: o(N)(t.id),
|
|
518
|
+
"tree-loading": o(j)(t.id),
|
|
494
519
|
"is-last-sibling": t.isLastSibling,
|
|
495
520
|
"ancestor-last-flags": t.ancestorLastFlags,
|
|
496
|
-
onSelect:
|
|
497
|
-
onRowClick:
|
|
498
|
-
onToggleExpand: (b) => o(
|
|
499
|
-
class:
|
|
500
|
-
},
|
|
501
|
-
|
|
521
|
+
onSelect: re,
|
|
522
|
+
onRowClick: ce,
|
|
523
|
+
onToggleExpand: (b) => o(ae)(t.row, t.depth),
|
|
524
|
+
class: C(n.cellBordered ? "" : "[&_td:last-child]:pr-5!")
|
|
525
|
+
}, H({ _: 2 }, [
|
|
526
|
+
x(n.headers, (b) => ({
|
|
502
527
|
name: b.field,
|
|
503
|
-
fn:
|
|
504
|
-
|
|
528
|
+
fn: Y((Z) => [
|
|
529
|
+
$(e.$slots, b.field, te({ ref_for: !0 }, Z))
|
|
505
530
|
])
|
|
506
531
|
}))
|
|
507
|
-
]), 1032, ["row", "headers", "index", "key-field", "selectable", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "onToggleExpand", "class"]));
|
|
508
|
-
return k.memo =
|
|
509
|
-
}, l, 4), 128)) : (i(), d("tr",
|
|
510
|
-
|
|
532
|
+
]), 1032, ["row", "headers", "index", "key-field", "selectable", "selection-disabled", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "onToggleExpand", "class"]));
|
|
533
|
+
return k.memo = v, k;
|
|
534
|
+
}, l, 4), 128)) : (i(), d("tr", ft, [
|
|
535
|
+
f("td", {
|
|
511
536
|
colspan: p.value ? n.headers.length + 1 : n.headers.length,
|
|
512
537
|
class: "align-middle hover:bg-transparent"
|
|
513
538
|
}, [
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
title:
|
|
517
|
-
description:
|
|
539
|
+
$(e.$slots, "empty", {}, () => [
|
|
540
|
+
F(o(ge), {
|
|
541
|
+
title: me.value,
|
|
542
|
+
description: ve.value,
|
|
518
543
|
icon: n.emptyIcon,
|
|
519
544
|
variant: "variant12",
|
|
520
545
|
class: "bg-transparent! py-8!"
|
|
521
|
-
},
|
|
546
|
+
}, H({ _: 2 }, [
|
|
522
547
|
e.$slots["empty-action"] ? {
|
|
523
548
|
name: "action",
|
|
524
|
-
fn:
|
|
525
|
-
|
|
549
|
+
fn: Y(() => [
|
|
550
|
+
$(e.$slots, "empty-action")
|
|
526
551
|
]),
|
|
527
552
|
key: "0"
|
|
528
553
|
} : void 0
|
|
529
554
|
]), 1032, ["title", "description", "icon"])
|
|
530
555
|
])
|
|
531
|
-
], 8,
|
|
556
|
+
], 8, gt)
|
|
532
557
|
]))
|
|
533
558
|
])
|
|
534
559
|
], 2)
|
|
535
560
|
], 2))
|
|
536
561
|
], 2),
|
|
537
|
-
n.showPagination && n.pageInfo && n.pageInfo.totalPages > 1 ? (i(), d("div",
|
|
538
|
-
|
|
539
|
-
"current-page":
|
|
562
|
+
n.showPagination && n.pageInfo && n.pageInfo.totalPages > 1 ? (i(), d("div", ht, [
|
|
563
|
+
F(o(Je), te({
|
|
564
|
+
"current-page": D.value,
|
|
540
565
|
"total-pages": n.pageInfo.totalPages,
|
|
541
566
|
"total-items": n.pageInfo.totalItems
|
|
542
567
|
}, n.paginationProps, {
|
|
543
|
-
onChange:
|
|
544
|
-
"onUpdate:itemsPerPage":
|
|
568
|
+
onChange: Ee,
|
|
569
|
+
"onUpdate:itemsPerPage": $e
|
|
545
570
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
546
|
-
])) :
|
|
547
|
-
|
|
548
|
-
show:
|
|
549
|
-
"onUpdate:show": l[6] || (l[6] = (t) =>
|
|
550
|
-
title:
|
|
551
|
-
description:
|
|
552
|
-
"confirm-text":
|
|
553
|
-
"cancel-text":
|
|
571
|
+
])) : E("", !0),
|
|
572
|
+
F(Ge, {
|
|
573
|
+
show: U.value,
|
|
574
|
+
"onUpdate:show": l[6] || (l[6] = (t) => U.value = t),
|
|
575
|
+
title: Me.value,
|
|
576
|
+
description: Ae.value,
|
|
577
|
+
"confirm-text": Ne.value,
|
|
578
|
+
"cancel-text": je.value,
|
|
554
579
|
variant: "danger",
|
|
555
|
-
onConfirm:
|
|
556
|
-
onCancel: l[7] || (l[7] = (t) =>
|
|
580
|
+
onConfirm: ze,
|
|
581
|
+
onCancel: l[7] || (l[7] = (t) => U.value = !1)
|
|
557
582
|
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text"])
|
|
558
583
|
]));
|
|
559
584
|
}
|
|
560
585
|
});
|
|
561
586
|
export {
|
|
562
|
-
|
|
587
|
+
Dt as default
|
|
563
588
|
};
|