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