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