@ianicdev/datatables2 0.10.6 → 0.10.8

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 (47) hide show
  1. package/dist/{Columns-BNLjDwAl.cjs → Columns-Dd9SfqmJ.cjs} +1 -1
  2. package/dist/{Columns--EhzKJV3.js → Columns-QO7YU0eZ.js} +1 -1
  3. package/dist/{Comparison-DMqunDhb.js → Comparison-ClrNRg-V.js} +6 -6
  4. package/dist/{Comparison-DBF0E27s.cjs → Comparison-DCWQz5X9.cjs} +1 -1
  5. package/dist/Datepicker-BHbZnWHu.cjs +2 -0
  6. package/dist/Datepicker-Du8AggGn.js +1425 -0
  7. package/dist/{Download-Y-QC-KIB.cjs → Download-B2JKkFCz.cjs} +1 -1
  8. package/dist/{Download-CRJDmReD.js → Download-CIp1YVEq.js} +3 -3
  9. package/dist/{Options-DMKsbXSj.js → Options-BPCUGErN.js} +1 -1
  10. package/dist/{Options-CN0OjNlD.cjs → Options-DiRnomZy.cjs} +1 -1
  11. package/dist/{RefreshTable-CefzM07a.js → RefreshTable-B13C6sLc.js} +2 -2
  12. package/dist/{RefreshTable-CvDVCIEq.cjs → RefreshTable-CwHf3COZ.cjs} +1 -1
  13. package/dist/{Search-DOLfmfAx.js → Search-BHVyo0uz.js} +2 -2
  14. package/dist/{Search-DciGQPJD.cjs → Search-CVhqyw6f.cjs} +1 -1
  15. package/dist/{Table-C8PPf5h-.cjs → Table-C2P9cYl_.cjs} +1 -1
  16. package/dist/{Table-BbH9gyVI.js → Table-DoG07zNZ.js} +3 -3
  17. package/dist/{TableServer-_BIBoBr0.js → TableServer-BDcY2nQz.js} +1324 -1319
  18. package/dist/TableServer-CeJMxSCa.cjs +20 -0
  19. package/dist/{cellRender-Cc2BuKK6.js → cellRender-BRFdMQzg.js} +549 -551
  20. package/dist/cellRender-DZ5qL5RV.cjs +1 -0
  21. package/dist/dataTables-CmM1RF0K.cjs +4 -0
  22. package/dist/{dataTables-sTblyiQt.js → dataTables-DRiNyKEv.js} +1385 -1388
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
  26. package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
  27. package/dist/index-Bz4Guf4c.cjs +1 -0
  28. package/dist/index-D9tMlHlC.js +5891 -0
  29. package/dist/{index-XHj8Ffjf.cjs → index-DD_T-n8-.cjs} +1 -1
  30. package/dist/{index-DH0TEy1G.js → index-DqBI0sCe.js} +11 -11
  31. package/dist/{index.es-BH0LP-1n.cjs → index.es-BtDW7HTQ.cjs} +1 -1
  32. package/dist/{index.es-C0t9o23l.js → index.es-Bv6Mb9BC.js} +2 -2
  33. package/dist/{jspdf-CZAMs0JY.cjs → jspdf-BsORS480.cjs} +2 -2
  34. package/dist/{jspdf-DbVrl9ga.js → jspdf-D9i2dan7.js} +2 -2
  35. package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
  36. package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
  37. package/package.json +13 -13
  38. package/dist/Datepicker-DSIbxyvl.cjs +0 -2
  39. package/dist/Datepicker-DTHZOdYd.js +0 -1411
  40. package/dist/TableServer--L2K6EH_.cjs +0 -20
  41. package/dist/cellRender-BPm3BB9S.cjs +0 -1
  42. package/dist/dataTables-C-WYkByZ.cjs +0 -4
  43. package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
  44. package/dist/index-DUKjDmN_.js +0 -4575
  45. package/dist/index-Ddgg9-AG.cjs +0 -1
  46. package/dist/sortablejs-C0WJhxmJ.js +0 -1254
  47. package/dist/sortablejs-Da6TYh39.cjs +0 -1
@@ -1,22 +1,22 @@
1
- import { toRef as T, provide as Q, toRaw as le, inject as U, ref as M, computed as V, toValue as Ft, watch as ce, shallowRef as He, onBeforeUpdate as Tt, createVNode as w, normalizeStyle as Pe, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Fe, watchEffect as Ct, capitalize as _t, Fragment as z, createTextVNode as Te, withModifiers as ne, toDisplayString as Bt, toRefs as Ot, defineComponent as At, h as Et } from "vue";
2
- import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as X, aT as re, aU as $t, g as $, a0 as Ht, h as we, ah as fe, a as pe, aj as jt, aV as oe, u as K, a7 as W, x as Mt, y as ke, m as Ge, as as Gt, A as Kt, E as Ke, f as te, b as We, G as Wt, I as O, aW as Ce, S as Ie, aX as zt, ax as E, aY as qt, o as Ut, P as ze, L as Jt, D as Qt, an as De, d as _e, H as ye, a1 as xe, k as Xt, aA as se, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-sTblyiQt.js";
3
- import { V as qe, a as aa, b as de, c as la, m as na, u as ra, d as oa } from "./index-DUKjDmN_.js";
1
+ import { toRef as C, provide as X, toRaw as le, inject as U, ref as M, computed as V, toValue as Ft, watch as ce, shallowRef as He, onBeforeUpdate as Tt, createVNode as k, normalizeStyle as Pe, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Fe, watchEffect as Ct, capitalize as _t, Fragment as z, createTextVNode as Te, withModifiers as ne, toDisplayString as Bt, toRefs as Ot, defineComponent as Et, h as At } from "vue";
2
+ import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as J, aT as re, aU as $t, g as $, a0 as Ht, h as we, ah as fe, a as pe, aj as jt, aV as oe, u as K, a7 as W, x as Mt, y as ke, m as Ge, as as Gt, A as Kt, E as Ke, f as te, b as We, G as Wt, I as O, aW as Ce, S as Ie, aX as zt, ax as A, aY as qt, o as Ut, P as ze, L as Qt, D as Xt, an as De, d as _e, H as ye, a1 as xe, k as Jt, aA as se, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-DRiNyKEv.js";
3
+ import { V as qe, b as aa, c as de, e as la, m as na, u as ra, d as oa, a as sa } from "./index-D9tMlHlC.js";
4
4
  import ie from "moment";
5
5
  function Be(e, t, a) {
6
6
  return Object.keys(e).filter((l) => Lt(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Nt(e[n], r, a(r)), l), {});
7
7
  }
8
- const sa = _({
8
+ const ia = _({
9
9
  expandOnClick: Boolean,
10
10
  showExpand: Boolean,
11
11
  expanded: {
12
12
  type: Array,
13
13
  default: () => []
14
14
  }
15
- }, "DataTable-expand"), Ue = Symbol.for("vuetify:datatable:expanded");
16
- function ia(e) {
17
- const t = T(() => e.expandOnClick), a = q(e, "expanded", e.expanded, (v) => new Set(v), (v) => [...v.values()]);
18
- function l(v, u) {
19
- const c = new Set(a.value), m = le(v.value);
15
+ }, "DataTable-expand"), Ue = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
16
+ function ua(e) {
17
+ const t = C(() => e.expandOnClick), a = q(e, "expanded", e.expanded, (f) => new Set(f), (f) => [...f.values()]);
18
+ function l(f, u) {
19
+ const c = new Set(a.value), m = le(f.value);
20
20
  if (u)
21
21
  c.add(m);
22
22
  else {
@@ -25,39 +25,39 @@ function ia(e) {
25
25
  }
26
26
  a.value = c;
27
27
  }
28
- function n(v) {
29
- const u = le(v.value);
28
+ function n(f) {
29
+ const u = le(f.value);
30
30
  return [...a.value].some((c) => le(c) === u);
31
31
  }
32
- function r(v) {
33
- l(v, !n(v));
32
+ function r(f) {
33
+ l(f, !n(f));
34
34
  }
35
- const s = {
35
+ const i = {
36
36
  expand: l,
37
37
  expanded: a,
38
38
  expandOnClick: t,
39
39
  isExpanded: n,
40
40
  toggleExpand: r
41
41
  };
42
- return Q(Ue, s), s;
42
+ return X(Ue, i), i;
43
43
  }
44
- function Je() {
44
+ function Qe() {
45
45
  const e = U(Ue);
46
46
  if (!e) throw new Error("foo");
47
47
  return e;
48
48
  }
49
- const ua = _({
49
+ const da = _({
50
50
  groupBy: {
51
51
  type: Array,
52
52
  default: () => []
53
53
  }
54
- }, "DataTable-group"), Qe = Symbol.for("vuetify:data-table-group");
55
- function da(e) {
54
+ }, "DataTable-group"), Xe = /* @__PURE__ */ Symbol.for("vuetify:data-table-group");
55
+ function ca(e) {
56
56
  return {
57
57
  groupBy: q(e, "groupBy")
58
58
  };
59
59
  }
60
- function ca(e) {
60
+ function fa(e) {
61
61
  const {
62
62
  disableSort: t,
63
63
  groupBy: a,
@@ -66,19 +66,19 @@ function ca(e) {
66
66
  ...m,
67
67
  order: m.order ?? !1
68
68
  })).concat(t?.value ? [] : l.value));
69
- function s(m) {
69
+ function i(m) {
70
70
  return n.value.has(m.id);
71
71
  }
72
- function v(m) {
72
+ function f(m) {
73
73
  const h = new Set(n.value);
74
- s(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
74
+ i(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
75
75
  }
76
76
  function u(m) {
77
77
  function h(o) {
78
- const i = [];
78
+ const s = [];
79
79
  for (const b of o.items)
80
- "type" in b && b.type === "group" ? i.push(...h(b)) : i.push(b);
81
- return [...new Set(i)];
80
+ "type" in b && b.type === "group" ? s.push(...h(b)) : s.push(b);
81
+ return [...new Set(s)];
82
82
  }
83
83
  return h({
84
84
  items: m
@@ -86,20 +86,20 @@ function ca(e) {
86
86
  }
87
87
  const c = {
88
88
  sortByWithGroups: r,
89
- toggleGroup: v,
89
+ toggleGroup: f,
90
90
  opened: n,
91
91
  groupBy: a,
92
92
  extractRows: u,
93
- isGroupOpen: s
93
+ isGroupOpen: i
94
94
  };
95
- return Q(Qe, c), c;
95
+ return X(Xe, c), c;
96
96
  }
97
- function Xe() {
98
- const e = U(Qe);
97
+ function Je() {
98
+ const e = U(Xe);
99
99
  if (!e) throw new Error("Missing group!");
100
100
  return e;
101
101
  }
102
- function fa(e, t) {
102
+ function va(e, t) {
103
103
  if (!e.length) return [];
104
104
  const a = /* @__PURE__ */ new Map();
105
105
  for (const l of e) {
@@ -111,15 +111,15 @@ function fa(e, t) {
111
111
  function Ye(e, t) {
112
112
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
113
113
  if (!t.length) return [];
114
- const n = fa(e, t[0]), r = [], s = t.slice(1);
115
- return n.forEach((v, u) => {
114
+ const n = va(e, t[0]), r = [], i = t.slice(1);
115
+ return n.forEach((f, u) => {
116
116
  const c = t[0], m = `${l}_${c}_${u}`;
117
117
  r.push({
118
118
  depth: a,
119
119
  id: m,
120
120
  key: c,
121
121
  value: u,
122
- items: s.length ? Ye(v, s, a + 1, m) : v,
122
+ items: i.length ? Ye(f, i, a + 1, m) : f,
123
123
  type: "group"
124
124
  });
125
125
  }), r;
@@ -133,16 +133,16 @@ function Ze(e, t, a) {
133
133
  }))) : l.push(n);
134
134
  return l;
135
135
  }
136
- function va(e, t, a, l) {
136
+ function ga(e, t, a, l) {
137
137
  return {
138
138
  flatItems: V(() => {
139
139
  if (!t.value.length) return e.value;
140
- const r = Ye(e.value, t.value.map((s) => s.key));
140
+ const r = Ye(e.value, t.value.map((i) => i.key));
141
141
  return Ze(r, a.value, Ft(l));
142
142
  })
143
143
  };
144
144
  }
145
- function ga(e) {
145
+ function ma(e) {
146
146
  let {
147
147
  page: t,
148
148
  itemsPerPage: a,
@@ -150,7 +150,7 @@ function ga(e) {
150
150
  groupBy: n,
151
151
  search: r
152
152
  } = e;
153
- const s = je("VDataTable"), v = () => ({
153
+ const i = je("VDataTable"), f = () => ({
154
154
  page: t.value,
155
155
  itemsPerPage: a.value,
156
156
  sortBy: l.value,
@@ -158,14 +158,14 @@ function ga(e) {
158
158
  search: r.value
159
159
  });
160
160
  let u = null;
161
- ce(v, (c) => {
162
- Me(u, c) || (u && u.search !== c.search && (t.value = 1), s.emit("update:options", c), u = c);
161
+ ce(f, (c) => {
162
+ Me(u, c) || (u && u.search !== c.search && (t.value = 1), i.emit("update:options", c), u = c);
163
163
  }, {
164
164
  deep: !0,
165
165
  immediate: !0
166
166
  });
167
167
  }
168
- const ma = _({
168
+ const ba = _({
169
169
  page: {
170
170
  type: [Number, String],
171
171
  default: 1
@@ -174,70 +174,70 @@ const ma = _({
174
174
  type: [Number, String],
175
175
  default: 10
176
176
  }
177
- }, "DataTable-paginate"), et = Symbol.for("vuetify:data-table-pagination");
178
- function ba(e) {
177
+ }, "DataTable-paginate"), et = /* @__PURE__ */ Symbol.for("vuetify:data-table-pagination");
178
+ function ha(e) {
179
179
  const t = q(e, "page", void 0, (l) => Number(l ?? 1)), a = q(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
180
180
  return {
181
181
  page: t,
182
182
  itemsPerPage: a
183
183
  };
184
184
  }
185
- function ha(e) {
185
+ function ya(e) {
186
186
  const {
187
187
  page: t,
188
188
  itemsPerPage: a,
189
189
  itemsLength: l
190
- } = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), s = V(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
191
- ce([t, s], () => {
192
- t.value > s.value && (t.value = s.value);
190
+ } = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), i = V(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
191
+ ce([t, i], () => {
192
+ t.value > i.value && (t.value = i.value);
193
193
  });
194
- function v(o) {
194
+ function f(o) {
195
195
  a.value = o, t.value = 1;
196
196
  }
197
197
  function u() {
198
- t.value = he(t.value + 1, 1, s.value);
198
+ t.value = he(t.value + 1, 1, i.value);
199
199
  }
200
200
  function c() {
201
- t.value = he(t.value - 1, 1, s.value);
201
+ t.value = he(t.value - 1, 1, i.value);
202
202
  }
203
203
  function m(o) {
204
- t.value = he(o, 1, s.value);
204
+ t.value = he(o, 1, i.value);
205
205
  }
206
206
  const h = {
207
207
  page: t,
208
208
  itemsPerPage: a,
209
209
  startIndex: n,
210
210
  stopIndex: r,
211
- pageCount: s,
211
+ pageCount: i,
212
212
  itemsLength: l,
213
213
  nextPage: u,
214
214
  prevPage: c,
215
215
  setPage: m,
216
- setItemsPerPage: v
216
+ setItemsPerPage: f
217
217
  };
218
- return Q(et, h), h;
218
+ return X(et, h), h;
219
219
  }
220
- function ya() {
220
+ function pa() {
221
221
  const e = U(et);
222
222
  if (!e) throw new Error("Missing pagination!");
223
223
  return e;
224
224
  }
225
- function pa(e) {
225
+ function xa(e) {
226
226
  const t = je("usePaginatedItems"), {
227
227
  items: a,
228
228
  startIndex: l,
229
229
  stopIndex: n,
230
230
  itemsPerPage: r
231
- } = e, s = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
232
- return ce(s, (v) => {
233
- t.emit("update:currentItems", v);
231
+ } = e, i = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
232
+ return ce(i, (f) => {
233
+ t.emit("update:currentItems", f);
234
234
  }, {
235
235
  immediate: !0
236
236
  }), {
237
- paginatedItems: s
237
+ paginatedItems: i
238
238
  };
239
239
  }
240
- const xa = {
240
+ const Sa = {
241
241
  showSelectAll: !1,
242
242
  allSelected: () => [],
243
243
  select: (e) => {
@@ -283,7 +283,7 @@ const xa = {
283
283
  selected: l
284
284
  });
285
285
  }
286
- }, Sa = {
286
+ }, Pa = {
287
287
  showSelectAll: !0,
288
288
  allSelected: (e) => {
289
289
  let {
@@ -308,7 +308,7 @@ const xa = {
308
308
  } = e;
309
309
  return new Set(t ? a.map((l) => l.value) : []);
310
310
  }
311
- }, Pa = _({
311
+ }, wa = _({
312
312
  showSelect: Boolean,
313
313
  selectStrategy: {
314
314
  type: [String, Object],
@@ -319,85 +319,84 @@ const xa = {
319
319
  default: () => []
320
320
  },
321
321
  valueComparator: Function
322
- }, "DataTable-select"), at = Symbol.for("vuetify:data-table-selection");
323
- function wa(e, t) {
322
+ }, "DataTable-select"), at = /* @__PURE__ */ Symbol.for("vuetify:data-table-selection");
323
+ function ka(e, t) {
324
324
  let {
325
325
  allItems: a,
326
326
  currentPage: l
327
327
  } = t;
328
328
  const n = q(e, "modelValue", e.modelValue, (y) => {
329
- const k = e.valueComparator;
330
- return k ? new Set(Z(y).map((F) => a.value.find((P) => k(F, P.value))?.value ?? F)) : new Set(Z(y).map((F) => Rt(F) ? a.value.find((P) => F === P.value)?.value ?? F : a.value.find((P) => Me(F, P.value))?.value ?? F));
331
- }, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)), s = V(() => l.value.filter((y) => y.selectable)), v = V(() => {
329
+ const D = e.valueComparator;
330
+ return D ? new Set(Z(y).map((T) => a.value.find((P) => D(T, P.value))?.value ?? T)) : new Set(Z(y).map((T) => Rt(T) ? a.value.find((P) => T === P.value)?.value ?? T : a.value.find((P) => Me(T, P.value))?.value ?? T));
331
+ }, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)), i = V(() => l.value.filter((y) => y.selectable)), f = V(() => {
332
332
  if (typeof e.selectStrategy == "object") return e.selectStrategy;
333
333
  switch (e.selectStrategy) {
334
334
  case "single":
335
- return xa;
336
- case "all":
337
335
  return Sa;
338
- case "page":
336
+ case "all":
337
+ return Pa;
339
338
  default:
340
339
  return tt;
341
340
  }
342
341
  }), u = He(null);
343
342
  function c(y) {
344
- return Z(y).every((k) => n.value.has(k.value));
343
+ return Z(y).every((D) => n.value.has(D.value));
345
344
  }
346
345
  function m(y) {
347
- return Z(y).some((k) => n.value.has(k.value));
346
+ return Z(y).some((D) => n.value.has(D.value));
348
347
  }
349
- function h(y, k) {
350
- const F = v.value.select({
348
+ function h(y, D) {
349
+ const T = f.value.select({
351
350
  items: y,
352
- value: k,
351
+ value: D,
353
352
  selected: new Set(n.value)
354
353
  });
355
- n.value = F;
354
+ n.value = T;
356
355
  }
357
- function o(y, k, F) {
356
+ function o(y, D, T) {
358
357
  const P = [];
359
- if (k = k ?? l.value.findIndex((A) => A.value === y.value), e.selectStrategy !== "single" && F?.shiftKey && u.value !== null) {
360
- const [A, N] = [u.value, k].sort((p, x) => p - x);
361
- P.push(...l.value.slice(A, N + 1).filter((p) => p.selectable));
358
+ if (D = D ?? l.value.findIndex((E) => E.value === y.value), e.selectStrategy !== "single" && T?.shiftKey && u.value !== null) {
359
+ const [E, N] = [u.value, D].sort((p, x) => p - x);
360
+ P.push(...l.value.slice(E, N + 1).filter((p) => p.selectable));
362
361
  } else
363
- P.push(y), u.value = k;
362
+ P.push(y), u.value = D;
364
363
  h(P, !c([y]));
365
364
  }
366
- function i(y) {
367
- const k = v.value.selectAll({
365
+ function s(y) {
366
+ const D = f.value.selectAll({
368
367
  value: y,
369
368
  allItems: r.value,
370
- currentPage: s.value,
369
+ currentPage: i.value,
371
370
  selected: new Set(n.value)
372
371
  });
373
- n.value = k;
372
+ n.value = D;
374
373
  }
375
374
  const b = V(() => n.value.size > 0), d = V(() => {
376
- const y = v.value.allSelected({
375
+ const y = f.value.allSelected({
377
376
  allItems: r.value,
378
- currentPage: s.value
377
+ currentPage: i.value
379
378
  });
380
379
  return !!y.length && c(y);
381
- }), g = T(() => v.value.showSelectAll), I = {
380
+ }), v = C(() => f.value.showSelectAll), I = {
382
381
  toggleSelect: o,
383
382
  select: h,
384
- selectAll: i,
383
+ selectAll: s,
385
384
  isSelected: c,
386
385
  isSomeSelected: m,
387
386
  someSelected: b,
388
387
  allSelected: d,
389
- showSelectAll: g,
388
+ showSelectAll: v,
390
389
  lastSelectedIndex: u,
391
- selectStrategy: v
390
+ selectStrategy: f
392
391
  };
393
- return Q(at, I), I;
392
+ return X(at, I), I;
394
393
  }
395
394
  function ve() {
396
395
  const e = U(at);
397
396
  if (!e) throw new Error("Missing selection!");
398
397
  return e;
399
398
  }
400
- const ka = _({
399
+ const Ia = _({
401
400
  initialSortOrder: {
402
401
  type: String,
403
402
  default: "asc",
@@ -413,9 +412,9 @@ const ka = _({
413
412
  default: !1
414
413
  },
415
414
  mustSort: Boolean
416
- }, "DataTable-sort"), lt = Symbol.for("vuetify:data-table-sort");
417
- function Ia(e) {
418
- const t = T(() => e.initialSortOrder), a = q(e, "sortBy"), l = T(() => e.mustSort), n = T(() => e.multiSort);
415
+ }, "DataTable-sort"), lt = /* @__PURE__ */ Symbol.for("vuetify:data-table-sort");
416
+ function Da(e) {
417
+ const t = C(() => e.initialSortOrder), a = q(e, "sortBy"), l = C(() => e.mustSort), n = C(() => e.multiSort);
419
418
  return {
420
419
  initialSortOrder: t,
421
420
  sortBy: a,
@@ -423,7 +422,7 @@ function Ia(e) {
423
422
  mustSort: l
424
423
  };
425
424
  }
426
- function Da(e, t) {
425
+ function Va(e, t) {
427
426
  if (!$t(e))
428
427
  return {
429
428
  active: !!e
@@ -438,58 +437,58 @@ function Da(e, t) {
438
437
  mode: r ? l === "append" ? "prepend" : "append" : l
439
438
  };
440
439
  }
441
- function Va(e) {
440
+ function Fa(e) {
442
441
  const {
443
442
  initialSortOrder: t,
444
443
  sortBy: a,
445
444
  mustSort: l,
446
445
  multiSort: n,
447
446
  page: r
448
- } = e, s = (c, m) => {
447
+ } = e, i = (c, m) => {
449
448
  if (c.key == null) return;
450
449
  let h = a.value.map((d) => ({
451
450
  ...d
452
451
  })) ?? [];
453
- const o = h.find((d) => d.key === c.key), i = t.value, b = t.value === "desc" ? "asc" : "desc";
452
+ const o = h.find((d) => d.key === c.key), s = t.value, b = t.value === "desc" ? "asc" : "desc";
454
453
  if (o)
455
454
  o.order === b ? l.value && h.length === 1 ? o.order = t.value : h = h.filter((d) => d.key !== c.key) : o.order = b;
456
455
  else {
457
456
  const {
458
457
  active: d,
459
- mode: g
460
- } = Da(n.value, m);
461
- d ? g === "prepend" ? h.unshift({
458
+ mode: v
459
+ } = Va(n.value, m);
460
+ d ? v === "prepend" ? h.unshift({
462
461
  key: c.key,
463
- order: i
462
+ order: s
464
463
  }) : h.push({
465
464
  key: c.key,
466
- order: i
465
+ order: s
467
466
  }) : h = [{
468
467
  key: c.key,
469
- order: i
468
+ order: s
470
469
  }];
471
470
  }
472
471
  a.value = h, r && (r.value = 1);
473
472
  };
474
- function v(c) {
473
+ function f(c) {
475
474
  return !!a.value.find((m) => m.key === c.key);
476
475
  }
477
476
  const u = {
478
477
  sortBy: a,
479
- toggleSort: s,
480
- isSorted: v
478
+ toggleSort: i,
479
+ isSorted: f
481
480
  };
482
- return Q(lt, u), u;
481
+ return X(lt, u), u;
483
482
  }
484
483
  function nt() {
485
484
  const e = U(lt);
486
485
  if (!e) throw new Error("Missing sort!");
487
486
  return e;
488
487
  }
489
- function Fa(e, t, a, l) {
490
- const n = X();
488
+ function Ta(e, t, a, l) {
489
+ const n = J();
491
490
  return {
492
- sortedItems: V(() => a.value.length ? Ta(t.value, a.value, n.current.value, {
491
+ sortedItems: V(() => a.value.length ? Ca(t.value, a.value, n.current.value, {
493
492
  transform: l?.transform,
494
493
  sortFunctions: {
495
494
  ...e.customKeySort,
@@ -499,37 +498,37 @@ function Fa(e, t, a, l) {
499
498
  }) : t.value)
500
499
  };
501
500
  }
502
- function Ta(e, t, a, l) {
501
+ function Ca(e, t, a, l) {
503
502
  const n = new Intl.Collator(a, {
504
503
  sensitivity: "accent",
505
504
  usage: "sort"
506
505
  });
507
- return e.map((s) => [s, l?.transform ? l.transform(s) : s]).sort((s, v) => {
506
+ return e.map((i) => [i, l?.transform ? l.transform(i) : i]).sort((i, f) => {
508
507
  for (let u = 0; u < t.length; u++) {
509
508
  let c = !1;
510
509
  const m = t[u].key, h = t[u].order ?? "asc";
511
510
  if (h === !1) continue;
512
- let o = ue(s[1], m), i = ue(v[1], m), b = s[0].raw, d = v[0].raw;
513
- if (h === "desc" && ([o, i] = [i, o], [b, d] = [d, b]), l?.sortRawFunctions?.[m]) {
514
- const g = l.sortRawFunctions[m](b, d);
515
- if (g == null) continue;
516
- if (c = !0, g) return g;
511
+ let o = ue(i[1], m), s = ue(f[1], m), b = i[0].raw, d = f[0].raw;
512
+ if (h === "desc" && ([o, s] = [s, o], [b, d] = [d, b]), l?.sortRawFunctions?.[m]) {
513
+ const v = l.sortRawFunctions[m](b, d);
514
+ if (v == null) continue;
515
+ if (c = !0, v) return v;
517
516
  }
518
517
  if (l?.sortFunctions?.[m]) {
519
- const g = l.sortFunctions[m](o, i);
520
- if (g == null) continue;
521
- if (c = !0, g) return g;
518
+ const v = l.sortFunctions[m](o, s);
519
+ if (v == null) continue;
520
+ if (c = !0, v) return v;
522
521
  }
523
- if (!c && (o instanceof Date && i instanceof Date && (o = o.getTime(), i = i.getTime()), [o, i] = [o, i].map((g) => g != null ? g.toString().toLocaleLowerCase() : g), o !== i))
524
- return re(o) && re(i) ? 0 : re(o) ? -1 : re(i) ? 1 : !isNaN(o) && !isNaN(i) ? Number(o) - Number(i) : n.compare(o, i);
522
+ if (!c && (o instanceof Date && s instanceof Date && (o = o.getTime(), s = s.getTime()), [o, s] = [o, s].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), o !== s))
523
+ return re(o) && re(s) ? 0 : re(o) ? -1 : re(s) ? 1 : !isNaN(o) && !isNaN(s) ? Number(o) - Number(s) : n.compare(o, s);
525
524
  }
526
525
  return 0;
527
- }).map((s) => {
528
- let [v] = s;
529
- return v;
526
+ }).map((i) => {
527
+ let [f] = i;
528
+ return f;
530
529
  });
531
530
  }
532
- function Ca() {
531
+ function _a() {
533
532
  const e = M([]);
534
533
  Tt(() => e.value = []);
535
534
  function t(a, l) {
@@ -540,7 +539,7 @@ function Ca() {
540
539
  updateRef: t
541
540
  };
542
541
  }
543
- const _a = _({
542
+ const Ba = _({
544
543
  activeColor: String,
545
544
  start: {
546
545
  type: [Number, String],
@@ -621,7 +620,7 @@ const _a = _({
621
620
  })
622
621
  }, "VPagination"), Oe = $()({
623
622
  name: "VPagination",
624
- props: _a(),
623
+ props: Ba(),
625
624
  emits: {
626
625
  "update:modelValue": (e) => !0,
627
626
  first: (e) => !0,
@@ -636,9 +635,9 @@ const _a = _({
636
635
  } = t;
637
636
  const n = q(e, "modelValue"), {
638
637
  t: r,
639
- n: s
640
- } = X(), {
641
- isRtl: v
638
+ n: i
639
+ } = J(), {
640
+ isRtl: f
642
641
  } = Ht(), {
643
642
  themeClasses: u
644
643
  } = we(e), {
@@ -653,127 +652,127 @@ const _a = _({
653
652
  if (!p.length) return;
654
653
  const {
655
654
  target: x,
656
- contentRect: f
657
- } = p[0], D = x.querySelector(".v-pagination__list > *");
658
- if (!D) return;
659
- const C = f.width, R = D.offsetWidth + parseFloat(getComputedStyle(D).marginRight) * 2;
660
- m.value = d(C, R);
661
- }), o = V(() => parseInt(e.length, 10)), i = V(() => parseInt(e.start, 10)), b = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : d(c.value, 58));
655
+ contentRect: g
656
+ } = p[0], w = x.querySelector(".v-pagination__list > *");
657
+ if (!w) return;
658
+ const F = g.width, R = w.offsetWidth + parseFloat(getComputedStyle(w).marginRight) * 2;
659
+ m.value = d(F, R);
660
+ }), o = V(() => parseInt(e.length, 10)), s = V(() => parseInt(e.start, 10)), b = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : d(c.value, 58));
662
661
  function d(p, x) {
663
- const f = e.showFirstLastPage ? 5 : 3;
662
+ const g = e.showFirstLastPage ? 5 : 3;
664
663
  return Math.max(0, Math.floor(
665
664
  // Round to two decimal places to avoid floating point errors
666
- Number(((p - x * f) / x).toFixed(2))
665
+ Number(((p - x * g) / x).toFixed(2))
667
666
  ));
668
667
  }
669
- const g = V(() => {
668
+ const v = V(() => {
670
669
  if (o.value <= 0 || isNaN(o.value) || o.value > Number.MAX_SAFE_INTEGER) return [];
671
670
  if (b.value <= 0) return [];
672
671
  if (b.value === 1) return [n.value];
673
672
  if (o.value <= b.value)
674
- return oe(o.value, i.value);
675
- const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), f = p ? x : x + 1, D = o.value - x;
676
- if (f - n.value >= 0)
677
- return [...oe(Math.max(1, b.value - 1), i.value), e.ellipsis, o.value];
678
- if (n.value - D >= (p ? 1 : 0)) {
679
- const C = b.value - 1, R = o.value - C + i.value;
680
- return [i.value, e.ellipsis, ...oe(C, R)];
673
+ return oe(o.value, s.value);
674
+ const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, w = o.value - x;
675
+ if (g - n.value >= 0)
676
+ return [...oe(Math.max(1, b.value - 1), s.value), e.ellipsis, o.value];
677
+ if (n.value - w >= (p ? 1 : 0)) {
678
+ const F = b.value - 1, R = o.value - F + s.value;
679
+ return [s.value, e.ellipsis, ...oe(F, R)];
681
680
  } else {
682
- const C = Math.max(1, b.value - 2), R = C === 1 ? n.value : n.value - Math.ceil(C / 2) + i.value;
683
- return [i.value, e.ellipsis, ...oe(C, R), e.ellipsis, o.value];
681
+ const F = Math.max(1, b.value - 2), R = F === 1 ? n.value : n.value - Math.ceil(F / 2) + s.value;
682
+ return [s.value, e.ellipsis, ...oe(F, R), e.ellipsis, o.value];
684
683
  }
685
684
  });
686
- function I(p, x, f) {
687
- p.preventDefault(), n.value = x, f && l(f, x);
685
+ function I(p, x, g) {
686
+ p.preventDefault(), n.value = x, g && l(g, x);
688
687
  }
689
688
  const {
690
689
  refs: y,
691
- updateRef: k
692
- } = Ca();
690
+ updateRef: D
691
+ } = _a();
693
692
  pe({
694
693
  VPaginationBtn: {
695
- color: T(() => e.color),
696
- border: T(() => e.border),
697
- density: T(() => e.density),
698
- size: T(() => e.size),
699
- variant: T(() => e.variant),
700
- rounded: T(() => e.rounded),
701
- elevation: T(() => e.elevation)
694
+ color: C(() => e.color),
695
+ border: C(() => e.border),
696
+ density: C(() => e.density),
697
+ size: C(() => e.size),
698
+ variant: C(() => e.variant),
699
+ rounded: C(() => e.rounded),
700
+ elevation: C(() => e.elevation)
702
701
  }
703
702
  });
704
- const F = V(() => g.value.map((p, x) => {
705
- const f = (D) => k(D, x);
703
+ const T = V(() => v.value.map((p, x) => {
704
+ const g = (w) => D(w, x);
706
705
  if (typeof p == "string")
707
706
  return {
708
707
  isActive: !1,
709
708
  key: `ellipsis-${x}`,
710
709
  page: p,
711
710
  props: {
712
- ref: f,
711
+ ref: g,
713
712
  ellipsis: !0,
714
713
  icon: !0,
715
714
  disabled: !0
716
715
  }
717
716
  };
718
717
  {
719
- const D = p === n.value;
718
+ const w = p === n.value;
720
719
  return {
721
- isActive: D,
720
+ isActive: w,
722
721
  key: p,
723
- page: s(p),
722
+ page: i(p),
724
723
  props: {
725
- ref: f,
724
+ ref: g,
726
725
  ellipsis: !1,
727
726
  icon: !0,
728
727
  disabled: !!e.disabled || Number(e.length) < 2,
729
- color: D ? e.activeColor : e.color,
730
- "aria-current": D,
731
- "aria-label": r(D ? e.currentPageAriaLabel : e.pageAriaLabel, p),
732
- onClick: (C) => I(C, p)
728
+ color: w ? e.activeColor : e.color,
729
+ "aria-current": w,
730
+ "aria-label": r(w ? e.currentPageAriaLabel : e.pageAriaLabel, p),
731
+ onClick: (F) => I(F, p)
733
732
  }
734
733
  };
735
734
  }
736
735
  })), P = V(() => {
737
- const p = !!e.disabled || n.value <= i.value, x = !!e.disabled || n.value >= i.value + o.value - 1;
736
+ const p = !!e.disabled || n.value <= s.value, x = !!e.disabled || n.value >= s.value + o.value - 1;
738
737
  return {
739
738
  first: e.showFirstLastPage ? {
740
- icon: v.value ? e.lastIcon : e.firstIcon,
741
- onClick: (f) => I(f, i.value, "first"),
739
+ icon: f.value ? e.lastIcon : e.firstIcon,
740
+ onClick: (g) => I(g, s.value, "first"),
742
741
  disabled: p,
743
742
  "aria-label": r(e.firstAriaLabel),
744
743
  "aria-disabled": p
745
744
  } : void 0,
746
745
  prev: {
747
- icon: v.value ? e.nextIcon : e.prevIcon,
748
- onClick: (f) => I(f, n.value - 1, "prev"),
746
+ icon: f.value ? e.nextIcon : e.prevIcon,
747
+ onClick: (g) => I(g, n.value - 1, "prev"),
749
748
  disabled: p,
750
749
  "aria-label": r(e.previousAriaLabel),
751
750
  "aria-disabled": p
752
751
  },
753
752
  next: {
754
- icon: v.value ? e.prevIcon : e.nextIcon,
755
- onClick: (f) => I(f, n.value + 1, "next"),
753
+ icon: f.value ? e.prevIcon : e.nextIcon,
754
+ onClick: (g) => I(g, n.value + 1, "next"),
756
755
  disabled: x,
757
756
  "aria-label": r(e.nextAriaLabel),
758
757
  "aria-disabled": x
759
758
  },
760
759
  last: e.showFirstLastPage ? {
761
- icon: v.value ? e.firstIcon : e.lastIcon,
762
- onClick: (f) => I(f, i.value + o.value - 1, "last"),
760
+ icon: f.value ? e.firstIcon : e.lastIcon,
761
+ onClick: (g) => I(g, s.value + o.value - 1, "last"),
763
762
  disabled: x,
764
763
  "aria-label": r(e.lastAriaLabel),
765
764
  "aria-disabled": x
766
765
  } : void 0
767
766
  };
768
767
  });
769
- function A() {
770
- const p = n.value - i.value;
768
+ function E() {
769
+ const p = n.value - s.value;
771
770
  y.value[p]?.$el.focus();
772
771
  }
773
772
  function N(p) {
774
- p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(A)) : p.key === Ce.right && !e.disabled && n.value < i.value + o.value - 1 && (n.value = n.value + 1, Fe(A));
773
+ p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(E)) : p.key === Ce.right && !e.disabled && n.value < s.value + o.value - 1 && (n.value = n.value + 1, Fe(E));
775
774
  }
776
- return K(() => w(e.tag, {
775
+ return K(() => k(e.tag, {
777
776
  ref: h,
778
777
  class: G(["v-pagination", u.value, e.class]),
779
778
  style: Pe(e.style),
@@ -788,21 +787,21 @@ const _a = _({
788
787
  key: "first",
789
788
  class: "v-pagination__first",
790
789
  "data-test": "v-pagination-first"
791
- }, [a.first ? a.first(P.value.first) : w(W, B({
790
+ }, [a.first ? a.first(P.value.first) : k(W, B({
792
791
  _as: "VPaginationBtn"
793
792
  }, P.value.first), null)]), S("li", {
794
793
  key: "prev",
795
794
  class: "v-pagination__prev",
796
795
  "data-test": "v-pagination-prev"
797
- }, [a.prev ? a.prev(P.value.prev) : w(W, B({
796
+ }, [a.prev ? a.prev(P.value.prev) : k(W, B({
798
797
  _as: "VPaginationBtn"
799
- }, P.value.prev), null)]), F.value.map((p, x) => S("li", {
798
+ }, P.value.prev), null)]), T.value.map((p, x) => S("li", {
800
799
  key: p.key,
801
800
  class: G(["v-pagination__item", {
802
801
  "v-pagination__item--is-active": p.isActive
803
802
  }]),
804
803
  "data-test": "v-pagination-item"
805
- }, [a.item ? a.item(p) : w(W, B({
804
+ }, [a.item ? a.item(p) : k(W, B({
806
805
  _as: "VPaginationBtn"
807
806
  }, p.props), {
808
807
  default: () => [p.page]
@@ -810,13 +809,13 @@ const _a = _({
810
809
  key: "next",
811
810
  class: "v-pagination__next",
812
811
  "data-test": "v-pagination-next"
813
- }, [a.next ? a.next(P.value.next) : w(W, B({
812
+ }, [a.next ? a.next(P.value.next) : k(W, B({
814
813
  _as: "VPaginationBtn"
815
814
  }, P.value.next), null)]), e.showFirstLastPage && S("li", {
816
815
  key: "last",
817
816
  class: "v-pagination__last",
818
817
  "data-test": "v-pagination-last"
819
- }, [a.last ? a.last(P.value.last) : w(W, B({
818
+ }, [a.last ? a.last(P.value.last) : k(W, B({
820
819
  _as: "VPaginationBtn"
821
820
  }, P.value.last), null)])])]
822
821
  })), {};
@@ -883,7 +882,7 @@ const _a = _({
883
882
  }]
884
883
  },
885
884
  showCurrentPage: Boolean
886
- }, "VDataTableFooter"), Ae = $()({
885
+ }, "VDataTableFooter"), Ee = $()({
887
886
  name: "VDataTableFooter",
888
887
  props: rt(),
889
888
  setup(e, t) {
@@ -892,15 +891,15 @@ const _a = _({
892
891
  } = t;
893
892
  const {
894
893
  t: l
895
- } = X(), {
894
+ } = J(), {
896
895
  page: n,
897
896
  pageCount: r,
898
- startIndex: s,
899
- stopIndex: v,
897
+ startIndex: i,
898
+ stopIndex: f,
900
899
  itemsLength: u,
901
900
  itemsPerPage: c,
902
901
  setItemsPerPage: m
903
- } = ya(), h = V(() => e.itemsPerPageOptions.map((o) => typeof o == "number" ? {
902
+ } = pa(), h = V(() => e.itemsPerPageOptions.map((o) => typeof o == "number" ? {
904
903
  value: o,
905
904
  title: o === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(o)
906
905
  } : {
@@ -913,23 +912,22 @@ const _a = _({
913
912
  class: "v-data-table-footer"
914
913
  }, [a.prepend?.(), S("div", {
915
914
  class: "v-data-table-footer__items-per-page"
916
- }, [S("span", {
917
- "aria-label": l(e.itemsPerPageText)
918
- }, [l(e.itemsPerPageText)]), w(qe, {
915
+ }, [S("span", null, [l(e.itemsPerPageText)]), k(qe, {
919
916
  items: h.value,
920
917
  itemColor: e.color,
921
918
  modelValue: c.value,
922
- "onUpdate:modelValue": (i) => m(Number(i)),
919
+ "onUpdate:modelValue": (s) => m(Number(s)),
923
920
  density: "compact",
924
921
  variant: "outlined",
922
+ "aria-label": l(e.itemsPerPageText),
925
923
  hideDetails: !0
926
924
  }, null)]), S("div", {
927
925
  class: "v-data-table-footer__info"
928
- }, [S("div", null, [l(e.pageText, u.value ? s.value + 1 : 0, v.value, u.value)])]), S("div", {
926
+ }, [S("div", null, [l(e.pageText, u.value ? i.value + 1 : 0, f.value, u.value)])]), S("div", {
929
927
  class: "v-data-table-footer__pagination"
930
- }, [w(Oe, B({
928
+ }, [k(Oe, B({
931
929
  modelValue: n.value,
932
- "onUpdate:modelValue": (i) => n.value = i,
930
+ "onUpdate:modelValue": (s) => n.value = s,
933
931
  density: "comfortable",
934
932
  firstAriaLabel: e.firstPageLabel,
935
933
  lastAriaLabel: e.lastPageLabel,
@@ -969,7 +967,7 @@ const _a = _({
969
967
  slots: a
970
968
  } = t;
971
969
  const l = e.tag ?? "td", n = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
972
- return w(l, {
970
+ return k(l, {
973
971
  class: G(["v-data-table__td", {
974
972
  "v-data-table-column--fixed": n === "start",
975
973
  "v-data-table-column--fixed-end": n === "end",
@@ -980,22 +978,22 @@ const _a = _({
980
978
  "v-data-table-column--empty": e.empty
981
979
  }, `v-data-table-column--align-${e.align}`]),
982
980
  style: {
983
- height: E(e.height),
984
- width: E(e.width),
985
- maxWidth: E(e.maxWidth),
986
- left: n === "start" ? E(e.fixedOffset || null) : void 0,
987
- right: n === "end" ? E(e.fixedEndOffset || null) : void 0,
988
- paddingInlineStart: e.indent ? E(e.indent) : void 0
981
+ height: A(e.height),
982
+ width: A(e.width),
983
+ maxWidth: A(e.maxWidth),
984
+ left: n === "start" ? A(e.fixedOffset || null) : void 0,
985
+ right: n === "end" ? A(e.fixedEndOffset || null) : void 0,
986
+ paddingInlineStart: e.indent ? A(e.indent) : void 0
989
987
  }
990
988
  }, {
991
989
  default: () => [a.default?.()]
992
990
  });
993
- }), Ba = _({
991
+ }), Oa = _({
994
992
  headers: Array
995
- }, "DataTable-header"), ot = Symbol.for("vuetify:data-table-headers"), st = {
993
+ }, "DataTable-header"), ot = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), st = {
996
994
  title: "",
997
995
  sortable: !1
998
- }, Oa = {
996
+ }, Ea = {
999
997
  ...st,
1000
998
  width: 48
1001
999
  };
@@ -1047,38 +1045,38 @@ function it(e) {
1047
1045
  a.key && t.add(a.key), a.children && it(a.children, t);
1048
1046
  return t;
1049
1047
  }
1050
- function Ea(e) {
1048
+ function La(e) {
1051
1049
  if (e.key) {
1052
1050
  if (e.key === "data-table-group") return st;
1053
- if (["data-table-expand", "data-table-select"].includes(e.key)) return Oa;
1051
+ if (["data-table-expand", "data-table-select"].includes(e.key)) return Ea;
1054
1052
  }
1055
1053
  }
1056
1054
  function Ve(e) {
1057
1055
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1058
1056
  return e.children ? Math.max(t, ...e.children.map((a) => Ve(a, t + 1))) : t;
1059
1057
  }
1060
- function La(e) {
1058
+ function Na(e) {
1061
1059
  let t = !1;
1062
- function a(r, s) {
1063
- let v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1060
+ function a(r, i) {
1061
+ let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1064
1062
  if (r)
1065
- if (v !== "none" && (r.fixed = v), r.fixed === !0 && (r.fixed = "start"), r.fixed === s)
1063
+ if (f !== "none" && (r.fixed = f), r.fixed === !0 && (r.fixed = "start"), r.fixed === i)
1066
1064
  if (r.children)
1067
- if (s === "start")
1065
+ if (i === "start")
1068
1066
  for (let u = r.children.length - 1; u >= 0; u--)
1069
- a(r.children[u], s, s);
1067
+ a(r.children[u], i, i);
1070
1068
  else
1071
1069
  for (let u = 0; u < r.children.length; u++)
1072
- a(r.children[u], s, s);
1070
+ a(r.children[u], i, i);
1073
1071
  else
1074
- !t && s === "start" ? r.lastFixed = !0 : !t && s === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? qt(`Multiple fixed columns should have a static width (key: ${r.key})`) : r.minWidth = Math.max(Number(r.width) || 0, Number(r.minWidth) || 0), t = !0;
1072
+ !t && i === "start" ? r.lastFixed = !0 : !t && i === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? qt(`Multiple fixed columns should have a static width (key: ${r.key})`) : r.minWidth = Math.max(Number(r.width) || 0, Number(r.minWidth) || 0), t = !0;
1075
1073
  else if (r.children)
1076
- if (s === "start")
1074
+ if (i === "start")
1077
1075
  for (let u = r.children.length - 1; u >= 0; u--)
1078
- a(r.children[u], s);
1076
+ a(r.children[u], i);
1079
1077
  else
1080
1078
  for (let u = 0; u < r.children.length; u++)
1081
- a(r.children[u], s);
1079
+ a(r.children[u], i);
1082
1080
  else
1083
1081
  t = !1;
1084
1082
  }
@@ -1113,34 +1111,34 @@ function dt(e) {
1113
1111
  } else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
1114
1112
  return t;
1115
1113
  }
1116
- function Na(e, t) {
1114
+ function Ra(e, t) {
1117
1115
  const a = [];
1118
1116
  let l = 0;
1119
1117
  const n = Aa(e);
1120
1118
  for (; n.size() > 0; ) {
1121
- let s = n.count();
1122
- const v = [];
1119
+ let i = n.count();
1120
+ const f = [];
1123
1121
  let u = 1;
1124
- for (; s > 0; ) {
1122
+ for (; i > 0; ) {
1125
1123
  const {
1126
1124
  element: c,
1127
1125
  priority: m
1128
1126
  } = n.dequeue(), h = t - l - Ve(c);
1129
- if (v.push({
1127
+ if (f.push({
1130
1128
  ...c,
1131
1129
  rowspan: h ?? 1,
1132
1130
  colspan: c.children ? Se(c).length : 1
1133
1131
  }), c.children)
1134
1132
  for (const o of c.children) {
1135
- const i = m % 1 + u / Math.pow(10, l + 2);
1136
- n.enqueue(o, l + h + i);
1133
+ const s = m % 1 + u / Math.pow(10, l + 2);
1134
+ n.enqueue(o, l + h + s);
1137
1135
  }
1138
- u += 1, s -= 1;
1136
+ u += 1, i -= 1;
1139
1137
  }
1140
- l += 1, a.push(v);
1138
+ l += 1, a.push(f);
1141
1139
  }
1142
1140
  return {
1143
- columns: e.map((s) => Se(s)).flat(),
1141
+ columns: e.map((i) => Se(i)).flat(),
1144
1142
  headers: a
1145
1143
  };
1146
1144
  }
@@ -1148,21 +1146,21 @@ function ct(e) {
1148
1146
  const t = [];
1149
1147
  for (const a of e) {
1150
1148
  const l = {
1151
- ...Ea(a),
1149
+ ...La(a),
1152
1150
  ...a
1153
- }, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, s = {
1151
+ }, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, i = {
1154
1152
  ...l,
1155
1153
  key: n,
1156
1154
  value: r,
1157
1155
  sortable: l.sortable ?? (l.key != null || !!l.sort),
1158
1156
  children: l.children ? ct(l.children) : void 0
1159
1157
  };
1160
- t.push(s);
1158
+ t.push(i);
1161
1159
  }
1162
1160
  return t;
1163
1161
  }
1164
- function Ra(e, t) {
1165
- const a = M([]), l = M([]), n = M({}), r = M({}), s = M({});
1162
+ function $a(e, t) {
1163
+ const a = M([]), l = M([]), n = M({}), r = M({}), i = M({});
1166
1164
  Ct(() => {
1167
1165
  const c = (e.headers || Object.keys(e.items[0] ?? {}).map((d) => ({
1168
1166
  key: d,
@@ -1177,21 +1175,21 @@ function Ra(e, t) {
1177
1175
  key: "data-table-expand"
1178
1176
  });
1179
1177
  const h = ct(c);
1180
- La(h);
1181
- const o = Math.max(...h.map((d) => Ve(d))) + 1, i = Na(h, o);
1182
- a.value = i.headers, l.value = i.columns;
1183
- const b = i.headers.flat(1);
1178
+ Na(h);
1179
+ const o = Math.max(...h.map((d) => Ve(d))) + 1, s = Ra(h, o);
1180
+ a.value = s.headers, l.value = s.columns;
1181
+ const b = s.headers.flat(1);
1184
1182
  for (const d of b)
1185
- d.key && (d.sortable && (d.sort && (n.value[d.key] = d.sort), d.sortRaw && (r.value[d.key] = d.sortRaw)), d.filter && (s.value[d.key] = d.filter));
1183
+ d.key && (d.sortable && (d.sort && (n.value[d.key] = d.sort), d.sortRaw && (r.value[d.key] = d.sortRaw)), d.filter && (i.value[d.key] = d.filter));
1186
1184
  });
1187
- const v = {
1185
+ const f = {
1188
1186
  headers: a,
1189
1187
  columns: l,
1190
1188
  sortFunctions: n,
1191
1189
  sortRawFunctions: r,
1192
- filterFunctions: s
1190
+ filterFunctions: i
1193
1191
  };
1194
- return Q(ot, v), v;
1192
+ return X(ot, f), f;
1195
1193
  }
1196
1194
  function ge() {
1197
1195
  const e = U(ot);
@@ -1203,6 +1201,7 @@ const ft = _({
1203
1201
  disableSort: Boolean,
1204
1202
  fixedHeader: Boolean,
1205
1203
  multiSort: Boolean,
1204
+ initialSortOrder: String,
1206
1205
  sortAscIcon: {
1207
1206
  type: O,
1208
1207
  default: "$sortAsc"
@@ -1218,8 +1217,8 @@ const ft = _({
1218
1217
  sticky: Boolean,
1219
1218
  ...te(),
1220
1219
  ...De(),
1221
- ...Qt()
1222
- }, "VDataTableHeaders"), Ee = $()({
1220
+ ...Xt()
1221
+ }, "VDataTableHeaders"), Ae = $()({
1223
1222
  name: "VDataTableHeaders",
1224
1223
  props: ft(),
1225
1224
  setup(e, t) {
@@ -1228,12 +1227,12 @@ const ft = _({
1228
1227
  } = t;
1229
1228
  const {
1230
1229
  t: l
1231
- } = X(), {
1230
+ } = J(), {
1232
1231
  toggleSort: n,
1233
1232
  sortBy: r,
1234
- isSorted: s
1233
+ isSorted: i
1235
1234
  } = nt(), {
1236
- someSelected: v,
1235
+ someSelected: f,
1237
1236
  allSelected: u,
1238
1237
  selectAll: c,
1239
1238
  showSelectAll: m
@@ -1241,116 +1240,116 @@ const ft = _({
1241
1240
  columns: h,
1242
1241
  headers: o
1243
1242
  } = ge(), {
1244
- loaderClasses: i
1243
+ loaderClasses: s
1245
1244
  } = Ut(e);
1246
- function b(x, f) {
1245
+ function b(x, g) {
1247
1246
  if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
1248
- const D = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
1247
+ const w = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
1249
1248
  return {
1250
1249
  position: "sticky",
1251
- left: D === "start" ? E(x.fixedOffset) : void 0,
1252
- right: D === "end" ? E(x.fixedEndOffset) : void 0,
1253
- top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${f})` : void 0
1250
+ left: w === "start" ? A(x.fixedOffset) : void 0,
1251
+ right: w === "end" ? A(x.fixedEndOffset) : void 0,
1252
+ top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
1254
1253
  };
1255
1254
  }
1256
- function d(x, f) {
1257
- x.key === "Enter" && !e.disableSort && n(f, x);
1255
+ function d(x, g) {
1256
+ x.key === "Enter" && !e.disableSort && n(g, x);
1258
1257
  }
1259
- function g(x) {
1260
- const f = r.value.find((D) => D.key === x.key);
1261
- return f ? f.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
1258
+ function v(x) {
1259
+ const g = r.value.find((w) => w.key === x.key);
1260
+ return !g && e.initialSortOrder === "asc" || g?.order === "asc" ? e.sortAscIcon : e.sortDescIcon;
1262
1261
  }
1263
1262
  const {
1264
1263
  backgroundColorClasses: I,
1265
1264
  backgroundColorStyles: y
1266
1265
  } = ze(() => e.color), {
1267
- displayClasses: k,
1268
- mobile: F
1266
+ displayClasses: D,
1267
+ mobile: T
1269
1268
  } = fe(e), P = V(() => ({
1270
1269
  headers: o.value,
1271
1270
  columns: h.value,
1272
1271
  toggleSort: n,
1273
- isSorted: s,
1272
+ isSorted: i,
1274
1273
  sortBy: r.value,
1275
- someSelected: v.value,
1274
+ someSelected: f.value,
1276
1275
  allSelected: u.value,
1277
1276
  selectAll: c,
1278
- getSortIcon: g
1279
- })), A = V(() => ["v-data-table__th", {
1277
+ getSortIcon: v
1278
+ })), E = V(() => ["v-data-table__th", {
1280
1279
  "v-data-table__th--sticky": e.sticky || e.fixedHeader
1281
- }, k.value, i.value]), N = (x) => {
1280
+ }, D.value, s.value]), N = (x) => {
1282
1281
  let {
1283
- column: f,
1284
- x: D,
1285
- y: C
1282
+ column: g,
1283
+ x: w,
1284
+ y: F
1286
1285
  } = x;
1287
- const R = f.key === "data-table-select" || f.key === "data-table-expand", ae = f.key === "data-table-group" && f.width === 0 && !f.title, be = B(e.headerProps ?? {}, f.headerProps ?? {});
1288
- return w(ee, B({
1286
+ const R = g.key === "data-table-select" || g.key === "data-table-expand", ae = g.key === "data-table-group" && g.width === 0 && !g.title, be = B(e.headerProps ?? {}, g.headerProps ?? {});
1287
+ return k(ee, B({
1289
1288
  tag: "th",
1290
- align: f.align,
1289
+ align: g.align,
1291
1290
  class: [{
1292
- "v-data-table__th--sortable": f.sortable && !e.disableSort,
1293
- "v-data-table__th--sorted": s(f),
1294
- "v-data-table__th--fixed": f.fixed
1295
- }, ...A.value],
1291
+ "v-data-table__th--sortable": g.sortable && !e.disableSort,
1292
+ "v-data-table__th--sorted": i(g),
1293
+ "v-data-table__th--fixed": g.fixed
1294
+ }, ...E.value],
1296
1295
  style: {
1297
- width: E(f.width),
1298
- minWidth: E(f.minWidth),
1299
- maxWidth: E(f.maxWidth),
1300
- ...b(f, C)
1296
+ width: A(g.width),
1297
+ minWidth: A(g.minWidth),
1298
+ maxWidth: A(g.maxWidth),
1299
+ ...b(g, F)
1301
1300
  },
1302
- colspan: f.colspan,
1303
- rowspan: f.rowspan,
1304
- fixed: f.fixed,
1305
- nowrap: f.nowrap,
1306
- lastFixed: f.lastFixed,
1307
- firstFixedEnd: f.firstFixedEnd,
1301
+ colspan: g.colspan,
1302
+ rowspan: g.rowspan,
1303
+ fixed: g.fixed,
1304
+ nowrap: g.nowrap,
1305
+ lastFixed: g.lastFixed,
1306
+ firstFixedEnd: g.firstFixedEnd,
1308
1307
  noPadding: R,
1309
1308
  empty: ae,
1310
- tabindex: f.sortable ? 0 : void 0,
1311
- onClick: f.sortable ? (H) => n(f, H) : void 0,
1312
- onKeydown: f.sortable ? (H) => d(H, f) : void 0
1309
+ tabindex: g.sortable ? 0 : void 0,
1310
+ onClick: g.sortable ? (H) => n(g, H) : void 0,
1311
+ onKeydown: g.sortable ? (H) => d(H, g) : void 0
1313
1312
  }, be), {
1314
1313
  default: () => {
1315
- const H = `header.${f.key}`, J = {
1316
- column: f,
1314
+ const H = `header.${g.key}`, Q = {
1315
+ column: g,
1317
1316
  selectAll: c,
1318
- isSorted: s,
1317
+ isSorted: i,
1319
1318
  toggleSort: n,
1320
1319
  sortBy: r.value,
1321
- someSelected: v.value,
1320
+ someSelected: f.value,
1322
1321
  allSelected: u.value,
1323
- getSortIcon: g
1322
+ getSortIcon: v
1324
1323
  };
1325
- return a[H] ? a[H](J) : ae ? "" : f.key === "data-table-select" ? a["header.data-table-select"]?.(J) ?? (m.value && w(de, {
1324
+ return a[H] ? a[H](Q) : ae ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(Q) ?? (m.value && k(de, {
1326
1325
  color: e.color,
1327
1326
  density: e.density,
1328
1327
  modelValue: u.value,
1329
- indeterminate: v.value && !u.value,
1328
+ indeterminate: f.value && !u.value,
1330
1329
  "onUpdate:modelValue": c
1331
1330
  }, null)) : S("div", {
1332
1331
  class: "v-data-table-header__content"
1333
- }, [S("span", null, [f.title]), f.sortable && !e.disableSort && w(_e, {
1332
+ }, [S("span", null, [g.title]), g.sortable && !e.disableSort && k(_e, {
1334
1333
  key: "icon",
1335
1334
  class: "v-data-table-header__sort-icon",
1336
- icon: g(f)
1337
- }, null), e.multiSort && s(f) && S("div", {
1335
+ icon: v(g)
1336
+ }, null), e.multiSort && i(g) && S("div", {
1338
1337
  key: "badge",
1339
1338
  class: G(["v-data-table-header__sort-badge", ...I.value]),
1340
1339
  style: Pe(y.value)
1341
- }, [r.value.findIndex((Y) => Y.key === f.key) + 1])]);
1340
+ }, [r.value.findIndex((Y) => Y.key === g.key) + 1])]);
1342
1341
  }
1343
1342
  });
1344
1343
  }, p = () => {
1345
- const x = V(() => h.value.filter((f) => f?.sortable && !e.disableSort));
1346
- return w(ee, B({
1344
+ const x = V(() => h.value.filter((w) => w?.sortable && !e.disableSort)), g = h.value.find((w) => w.key === "data-table-select");
1345
+ return k(ee, B({
1347
1346
  tag: "th",
1348
- class: [...A.value],
1347
+ class: [...E.value],
1349
1348
  colspan: o.value.length + 1
1350
1349
  }, e.headerProps), {
1351
1350
  default: () => [S("div", {
1352
1351
  class: "v-data-table-header__content"
1353
- }, [w(qe, {
1352
+ }, [k(qe, {
1354
1353
  chips: !0,
1355
1354
  color: e.color,
1356
1355
  class: "v-data-table__td-sort-select",
@@ -1360,40 +1359,39 @@ const ft = _({
1360
1359
  label: l("$vuetify.dataTable.sortBy"),
1361
1360
  multiple: e.multiSort,
1362
1361
  variant: "underlined",
1363
- "onClick:clear": () => r.value = [],
1364
- "onClick:append": () => c(!u.value)
1362
+ "onClick:clear": () => r.value = []
1365
1363
  }, {
1366
- append: () => w(de, {
1364
+ append: g ? () => k(de, {
1367
1365
  color: e.color,
1368
1366
  density: "compact",
1369
1367
  modelValue: u.value,
1370
- indeterminate: v.value && !u.value,
1371
- "onUpdate:modelValue": c
1372
- }, null),
1373
- chip: (f) => w(aa, {
1374
- onClick: f.item.raw?.sortable ? () => n(f.item.raw) : void 0,
1375
- onMousedown: (D) => {
1376
- D.preventDefault(), D.stopPropagation();
1368
+ indeterminate: f.value && !u.value,
1369
+ "onUpdate:modelValue": () => c(!u.value)
1370
+ }, null) : void 0,
1371
+ chip: (w) => k(aa, {
1372
+ onClick: w.item.raw?.sortable ? () => n(w.item.raw) : void 0,
1373
+ onMousedown: (F) => {
1374
+ F.preventDefault(), F.stopPropagation();
1377
1375
  }
1378
1376
  }, {
1379
- default: () => [f.item.title, w(_e, {
1380
- class: G(["v-data-table__td-sort-icon", s(f.item.raw) && "v-data-table__td-sort-icon-active"]),
1381
- icon: g(f.item.raw),
1377
+ default: () => [w.item.title, k(_e, {
1378
+ class: G(["v-data-table__td-sort-icon", i(w.item.raw) && "v-data-table__td-sort-icon-active"]),
1379
+ icon: v(w.item.raw),
1382
1380
  size: "small"
1383
1381
  }, null)]
1384
1382
  })
1385
1383
  })])]
1386
1384
  });
1387
1385
  };
1388
- K(() => F.value ? S("tr", null, [w(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) : o.value.map((x, f) => S("tr", null, [x.map((D, C) => w(N, {
1389
- column: D,
1390
- x: C,
1391
- y: f
1386
+ K(() => T.value ? S("tr", null, [k(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) : o.value.map((x, g) => S("tr", null, [x.map((w, F) => k(N, {
1387
+ column: w,
1388
+ x: F,
1389
+ y: g
1392
1390
  }, null))])), e.loading && S("tr", {
1393
1391
  class: "v-data-table-progress"
1394
1392
  }, [S("th", {
1395
1393
  colspan: h.value.length
1396
- }, [w(Jt, {
1394
+ }, [k(Qt, {
1397
1395
  name: "v-data-table-progress",
1398
1396
  absolute: !0,
1399
1397
  active: !0,
@@ -1417,7 +1415,7 @@ const ft = _({
1417
1415
  default: "$tableGroupExpand"
1418
1416
  },
1419
1417
  ...te()
1420
- }, "VDataTableGroupHeaderRow"), $a = $()({
1418
+ }, "VDataTableGroupHeaderRow"), Ha = $()({
1421
1419
  name: "VDataTableGroupHeaderRow",
1422
1420
  props: vt(),
1423
1421
  setup(e, t) {
@@ -1428,13 +1426,13 @@ const ft = _({
1428
1426
  isGroupOpen: l,
1429
1427
  toggleGroup: n,
1430
1428
  extractRows: r
1431
- } = Xe(), {
1432
- isSelected: s,
1433
- isSomeSelected: v,
1429
+ } = Je(), {
1430
+ isSelected: i,
1431
+ isSomeSelected: f,
1434
1432
  select: u
1435
1433
  } = ve(), {
1436
1434
  columns: c
1437
- } = ge(), m = V(() => r([e.item])), h = T(() => c.value.length - (c.value.some((o) => o.key === "data-table-select") ? 1 : 0));
1435
+ } = ge(), m = V(() => r([e.item])), h = C(() => c.value.length - (c.value.some((o) => o.key === "data-table-select") ? 1 : 0));
1438
1436
  return () => S("tr", {
1439
1437
  class: "v-data-table-group-header-row",
1440
1438
  style: {
@@ -1442,42 +1440,43 @@ const ft = _({
1442
1440
  }
1443
1441
  }, [c.value.map((o) => {
1444
1442
  if (o.key === "data-table-group") {
1445
- const i = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
1443
+ const s = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
1446
1444
  return a["data-table-group"]?.({
1447
1445
  item: e.item,
1448
1446
  count: m.value.length,
1449
1447
  props: {
1450
- icon: i,
1448
+ icon: s,
1451
1449
  onClick: b
1452
1450
  }
1453
- }) ?? w(ee, {
1451
+ }) ?? k(ee, {
1454
1452
  class: "v-data-table-group-header-row__column",
1455
1453
  colspan: h.value
1456
1454
  }, {
1457
- default: () => [w(W, {
1455
+ default: () => [k(W, {
1458
1456
  size: "small",
1459
1457
  variant: "text",
1460
- icon: i,
1458
+ icon: s,
1461
1459
  onClick: b
1462
1460
  }, null), S("span", null, [e.item.value]), S("span", null, [Te("("), m.value.length, Te(")")])]
1463
1461
  });
1464
1462
  } else if (o.key === "data-table-select") {
1465
- const i = s(m.value), b = v(m.value) && !i, d = (g) => u(m.value, g);
1463
+ const s = m.value.filter((I) => I.selectable), b = s.length > 0 && i(s), d = f(s) && !b, v = (I) => u(s, I);
1466
1464
  return a["data-table-select"]?.({
1467
1465
  props: {
1468
- modelValue: i,
1469
- indeterminate: b,
1470
- "onUpdate:modelValue": d
1466
+ modelValue: b,
1467
+ indeterminate: d,
1468
+ "onUpdate:modelValue": v
1471
1469
  }
1472
- }) ?? w(ee, {
1470
+ }) ?? k(ee, {
1473
1471
  class: "v-data-table__td--select-row",
1474
1472
  noPadding: !0
1475
1473
  }, {
1476
- default: () => [w(de, {
1474
+ default: () => [k(de, {
1477
1475
  density: e.density,
1478
- modelValue: i,
1479
- indeterminate: b,
1480
- "onUpdate:modelValue": d
1476
+ disabled: s.length === 0,
1477
+ modelValue: b,
1478
+ indeterminate: d,
1479
+ "onUpdate:modelValue": v
1481
1480
  }, null)]
1482
1481
  });
1483
1482
  }
@@ -1502,7 +1501,7 @@ const ft = _({
1502
1501
  onDblclick: ye(),
1503
1502
  ...te(),
1504
1503
  ...De()
1505
- }, "VDataTableRow"), Ha = $()({
1504
+ }, "VDataTableRow"), ja = $()({
1506
1505
  name: "VDataTableRow",
1507
1506
  props: gt(),
1508
1507
  setup(e, t) {
@@ -1514,16 +1513,16 @@ const ft = _({
1514
1513
  mobile: n
1515
1514
  } = fe(e, "v-data-table__tr"), {
1516
1515
  isSelected: r,
1517
- toggleSelect: s,
1518
- someSelected: v,
1516
+ toggleSelect: i,
1517
+ someSelected: f,
1519
1518
  allSelected: u,
1520
1519
  selectAll: c
1521
1520
  } = ve(), {
1522
1521
  isExpanded: m,
1523
1522
  toggleExpand: h
1524
- } = Je(), {
1523
+ } = Qe(), {
1525
1524
  toggleSort: o,
1526
- sortBy: i,
1525
+ sortBy: s,
1527
1526
  isSorted: b
1528
1527
  } = nt(), {
1529
1528
  columns: d
@@ -1535,24 +1534,24 @@ const ft = _({
1535
1534
  onClick: e.onClick,
1536
1535
  onContextmenu: e.onContextmenu,
1537
1536
  onDblclick: e.onDblclick
1538
- }, [e.item && d.value.map((g, I) => {
1539
- const y = e.item, k = `item.${g.key}`, F = `header.${g.key}`, P = {
1537
+ }, [e.item && d.value.map((v, I) => {
1538
+ const y = e.item, D = `item.${v.key}`, T = `header.${v.key}`, P = {
1540
1539
  index: e.index,
1541
1540
  item: y.raw,
1542
1541
  internalItem: y,
1543
- value: ue(y.columns, g.key),
1544
- column: g,
1542
+ value: ue(y.columns, v.key),
1543
+ column: v,
1545
1544
  isSelected: r,
1546
- toggleSelect: s,
1545
+ toggleSelect: i,
1547
1546
  isExpanded: m,
1548
1547
  toggleExpand: h
1549
- }, A = {
1550
- column: g,
1548
+ }, E = {
1549
+ column: v,
1551
1550
  selectAll: c,
1552
1551
  isSorted: b,
1553
1552
  toggleSort: o,
1554
- sortBy: i.value,
1555
- someSelected: v.value,
1553
+ sortBy: s.value,
1554
+ someSelected: f.value,
1556
1555
  allSelected: u.value,
1557
1556
  getSortIcon: () => ""
1558
1557
  }, N = typeof e.cellProps == "function" ? e.cellProps({
@@ -1560,49 +1559,49 @@ const ft = _({
1560
1559
  item: P.item,
1561
1560
  internalItem: P.internalItem,
1562
1561
  value: P.value,
1563
- column: g
1564
- }) : e.cellProps, p = typeof g.cellProps == "function" ? g.cellProps({
1562
+ column: v
1563
+ }) : e.cellProps, p = typeof v.cellProps == "function" ? v.cellProps({
1565
1564
  index: P.index,
1566
1565
  item: P.item,
1567
1566
  internalItem: P.internalItem,
1568
1567
  value: P.value
1569
- }) : g.cellProps, x = g.key === "data-table-select" || g.key === "data-table-expand", f = g.key === "data-table-group" && g.width === 0 && !g.title;
1570
- return w(ee, B({
1571
- align: g.align,
1572
- indent: g.intent,
1568
+ }) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand", g = v.key === "data-table-group" && v.width === 0 && !v.title;
1569
+ return k(ee, B({
1570
+ align: v.align,
1571
+ indent: v.indent,
1573
1572
  class: {
1574
- "v-data-table__td--expanded-row": g.key === "data-table-expand",
1575
- "v-data-table__td--select-row": g.key === "data-table-select"
1573
+ "v-data-table__td--expanded-row": v.key === "data-table-expand",
1574
+ "v-data-table__td--select-row": v.key === "data-table-select"
1576
1575
  },
1577
- fixed: g.fixed,
1578
- fixedOffset: g.fixedOffset,
1579
- fixedEndOffset: g.fixedEndOffset,
1580
- lastFixed: g.lastFixed,
1581
- firstFixedEnd: g.firstFixedEnd,
1582
- maxWidth: n.value ? void 0 : g.maxWidth,
1576
+ fixed: v.fixed,
1577
+ fixedOffset: v.fixedOffset,
1578
+ fixedEndOffset: v.fixedEndOffset,
1579
+ lastFixed: v.lastFixed,
1580
+ firstFixedEnd: v.firstFixedEnd,
1581
+ maxWidth: n.value ? void 0 : v.maxWidth,
1583
1582
  noPadding: x,
1584
- empty: f,
1585
- nowrap: g.nowrap,
1586
- width: n.value ? void 0 : g.width
1583
+ empty: g,
1584
+ nowrap: v.nowrap,
1585
+ width: n.value ? void 0 : v.width
1587
1586
  }, N, p), {
1588
1587
  default: () => {
1589
- if (g.key === "data-table-select")
1588
+ if (v.key === "data-table-select")
1590
1589
  return a["item.data-table-select"]?.({
1591
1590
  ...P,
1592
1591
  props: {
1593
1592
  color: e.color,
1594
1593
  disabled: !y.selectable,
1595
1594
  modelValue: r([y]),
1596
- onClick: ne(() => s(y), ["stop"])
1595
+ onClick: ne(() => i(y), ["stop"])
1597
1596
  }
1598
- }) ?? w(de, {
1597
+ }) ?? k(de, {
1599
1598
  color: e.color,
1600
1599
  disabled: !y.selectable,
1601
1600
  density: e.density,
1602
1601
  modelValue: r([y]),
1603
- onClick: ne((C) => s(y, e.index, C), ["stop"])
1602
+ onClick: ne((F) => i(y, e.index, F), ["stop"])
1604
1603
  }, null);
1605
- if (g.key === "data-table-expand")
1604
+ if (v.key === "data-table-expand")
1606
1605
  return a["item.data-table-expand"]?.({
1607
1606
  ...P,
1608
1607
  props: {
@@ -1611,19 +1610,19 @@ const ft = _({
1611
1610
  variant: "text",
1612
1611
  onClick: ne(() => h(y), ["stop"])
1613
1612
  }
1614
- }) ?? w(W, {
1613
+ }) ?? k(W, {
1615
1614
  icon: m(y) ? e.collapseIcon : e.expandIcon,
1616
1615
  size: "small",
1617
1616
  variant: "text",
1618
1617
  onClick: ne(() => h(y), ["stop"])
1619
1618
  }, null);
1620
- if (a[k] && !n.value) return a[k](P);
1621
- const D = Bt(P.value);
1619
+ if (a[D] && !n.value) return a[D](P);
1620
+ const w = Bt(P.value);
1622
1621
  return n.value ? S(z, null, [S("div", {
1623
1622
  class: "v-data-table__td-title"
1624
- }, [a[F]?.(A) ?? g.title]), S("div", {
1623
+ }, [a[T]?.(E) ?? v.title]), S("div", {
1625
1624
  class: "v-data-table__td-value"
1626
- }, [a[k]?.(P) ?? D])]) : D;
1625
+ }, [a[D]?.(P) ?? w])]) : w;
1627
1626
  }
1628
1627
  });
1629
1628
  })]));
@@ -1662,18 +1661,18 @@ const ft = _({
1662
1661
  columns: n
1663
1662
  } = ge(), {
1664
1663
  expandOnClick: r,
1665
- toggleExpand: s,
1666
- isExpanded: v
1667
- } = Je(), {
1664
+ toggleExpand: i,
1665
+ isExpanded: f
1666
+ } = Qe(), {
1668
1667
  isSelected: u,
1669
1668
  toggleSelect: c
1670
1669
  } = ve(), {
1671
1670
  toggleGroup: m,
1672
1671
  isGroupOpen: h
1673
- } = Xe(), {
1672
+ } = Je(), {
1674
1673
  t: o
1675
- } = X(), {
1676
- mobile: i
1674
+ } = J(), {
1675
+ mobile: s
1677
1676
  } = fe(e);
1678
1677
  return K(() => {
1679
1678
  const b = xe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
@@ -1687,40 +1686,40 @@ const ft = _({
1687
1686
  key: "no-data"
1688
1687
  }, [S("td", {
1689
1688
  colspan: n.value.length
1690
- }, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d, g) => {
1689
+ }, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d, v) => {
1691
1690
  if (d.type === "group") {
1692
- const k = {
1693
- index: g,
1691
+ const D = {
1692
+ index: v,
1694
1693
  item: d,
1695
1694
  columns: n.value,
1696
- isExpanded: v,
1697
- toggleExpand: s,
1695
+ isExpanded: f,
1696
+ toggleExpand: i,
1698
1697
  isSelected: u,
1699
1698
  toggleSelect: c,
1700
1699
  toggleGroup: m,
1701
1700
  isGroupOpen: h
1702
1701
  };
1703
- return l["group-header"] ? l["group-header"](k) : w($a, B({
1702
+ return l["group-header"] ? l["group-header"](D) : k(Ha, B({
1704
1703
  key: `group-header_${d.id}`,
1705
1704
  item: d
1706
- }, Be(a, ":groupHeader", () => k), b), l);
1705
+ }, Be(a, ":groupHeader", () => D), b), l);
1707
1706
  }
1708
1707
  if (d.type === "group-summary") {
1709
- const k = {
1710
- index: g,
1708
+ const D = {
1709
+ index: v,
1711
1710
  item: d,
1712
1711
  columns: n.value,
1713
1712
  toggleGroup: m
1714
1713
  };
1715
- return l["group-summary"]?.(k) ?? "";
1714
+ return l["group-summary"]?.(D) ?? "";
1716
1715
  }
1717
1716
  const I = {
1718
- index: g,
1717
+ index: v,
1719
1718
  item: d.raw,
1720
1719
  internalItem: d,
1721
1720
  columns: n.value,
1722
- isExpanded: v,
1723
- toggleExpand: s,
1721
+ isExpanded: f,
1722
+ toggleExpand: i,
1724
1723
  isSelected: u,
1725
1724
  toggleSelect: c
1726
1725
  }, y = {
@@ -1728,16 +1727,16 @@ const ft = _({
1728
1727
  props: B({
1729
1728
  key: `item_${d.key ?? d.index}`,
1730
1729
  onClick: r.value ? () => {
1731
- s(d);
1730
+ i(d);
1732
1731
  } : void 0,
1733
- index: g,
1732
+ index: v,
1734
1733
  item: d,
1735
1734
  color: e.color,
1736
1735
  cellProps: e.cellProps,
1737
1736
  collapseIcon: e.collapseIcon,
1738
1737
  expandIcon: e.expandIcon,
1739
1738
  density: e.density,
1740
- mobile: i.value
1739
+ mobile: s.value
1741
1740
  }, Be(a, ":row", () => I), typeof e.rowProps == "function" ? e.rowProps({
1742
1741
  item: I.item,
1743
1742
  index: I.index,
@@ -1746,7 +1745,7 @@ const ft = _({
1746
1745
  };
1747
1746
  return S(z, {
1748
1747
  key: y.props.key
1749
- }, [l.item ? l.item(y) : w(Ha, y.props, l), v(d) && l["expanded-row"]?.(I)]);
1748
+ }, [l.item ? l.item(y) : k(ja, y.props, l), f(d) && l["expanded-row"]?.(I)]);
1750
1749
  })]);
1751
1750
  }), {};
1752
1751
  }
@@ -1776,8 +1775,8 @@ const ft = _({
1776
1775
  themeClasses: n
1777
1776
  } = we(e), {
1778
1777
  densityClasses: r
1779
- } = Xt(e);
1780
- return K(() => w(e.tag, {
1778
+ } = Jt(e);
1779
+ return K(() => k(e.tag, {
1781
1780
  class: G(["v-table", {
1782
1781
  "v-table--fixed-height": !!e.height,
1783
1782
  "v-table--fixed-header": e.fixedHeader,
@@ -1793,12 +1792,12 @@ const ft = _({
1793
1792
  default: () => [a.top?.(), a.default ? S("div", {
1794
1793
  class: "v-table__wrapper",
1795
1794
  style: {
1796
- height: E(e.height)
1795
+ height: A(e.height)
1797
1796
  }
1798
1797
  }, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
1799
1798
  })), {};
1800
1799
  }
1801
- }), ja = _({
1800
+ }), Ma = _({
1802
1801
  items: {
1803
1802
  type: Array,
1804
1803
  default: () => []
@@ -1815,49 +1814,49 @@ const ft = _({
1815
1814
  cellProps: [Object, Function],
1816
1815
  returnObject: Boolean
1817
1816
  }, "DataTable-items");
1818
- function Ma(e, t, a, l) {
1819
- const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0), s = l.reduce((v, u) => (u.key != null && (v[u.key] = se(t, u.value)), v), {});
1817
+ function Ga(e, t, a, l) {
1818
+ const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0), i = l.reduce((f, u) => (u.key != null && (f[u.key] = se(t, u.value)), f), {});
1820
1819
  return {
1821
1820
  type: "item",
1822
1821
  key: e.returnObject ? se(t, e.itemValue) : n,
1823
1822
  index: a,
1824
1823
  value: n,
1825
1824
  selectable: r,
1826
- columns: s,
1825
+ columns: i,
1827
1826
  raw: t
1828
1827
  };
1829
1828
  }
1830
- function Ga(e, t, a) {
1831
- return t.map((l, n) => Ma(e, l, n, a));
1829
+ function Ka(e, t, a) {
1830
+ return t.map((l, n) => Ga(e, l, n, a));
1832
1831
  }
1833
- function Ka(e, t) {
1832
+ function Wa(e, t) {
1834
1833
  return {
1835
- items: V(() => Ga(e, e.items, t.value))
1834
+ items: V(() => Ka(e, e.items, t.value))
1836
1835
  };
1837
1836
  }
1838
- const Wa = _({
1837
+ const za = _({
1839
1838
  ...mt(),
1840
1839
  hideDefaultBody: Boolean,
1841
1840
  hideDefaultFooter: Boolean,
1842
1841
  hideDefaultHeader: Boolean,
1843
1842
  width: [String, Number],
1844
1843
  search: String,
1845
- ...sa(),
1846
- ...ua(),
1847
- ...Ba(),
1848
- ...ja(),
1849
- ...Pa(),
1850
- ...ka(),
1851
- ...Ie(ft(), ["multiSort"]),
1844
+ ...ia(),
1845
+ ...da(),
1846
+ ...Oa(),
1847
+ ...Ma(),
1848
+ ...wa(),
1849
+ ...Ia(),
1850
+ ...Ie(ft(), ["multiSort", "initialSortOrder"]),
1852
1851
  ...bt()
1853
- }, "DataTable"), za = _({
1854
- ...ma(),
1855
- ...Wa(),
1852
+ }, "DataTable"), qa = _({
1853
+ ...ba(),
1854
+ ...za(),
1856
1855
  ...na(),
1857
1856
  ...rt()
1858
- }, "VDataTable"), tl = $()({
1857
+ }, "VDataTable"), al = $()({
1859
1858
  name: "VDataTable",
1860
- props: za(),
1859
+ props: qa(),
1861
1860
  emits: {
1862
1861
  "update:modelValue": (e) => !0,
1863
1862
  "update:page": (e) => !0,
@@ -1875,54 +1874,54 @@ const Wa = _({
1875
1874
  } = t;
1876
1875
  const {
1877
1876
  groupBy: n
1878
- } = da(e), {
1877
+ } = ca(e), {
1879
1878
  initialSortOrder: r,
1880
- sortBy: s,
1881
- multiSort: v,
1879
+ sortBy: i,
1880
+ multiSort: f,
1882
1881
  mustSort: u
1883
- } = Ia(e), {
1882
+ } = Da(e), {
1884
1883
  page: c,
1885
1884
  itemsPerPage: m
1886
- } = ba(e), {
1885
+ } = ha(e), {
1887
1886
  disableSort: h
1888
1887
  } = Ot(e), {
1889
1888
  columns: o,
1890
- headers: i,
1889
+ headers: s,
1891
1890
  sortFunctions: b,
1892
1891
  sortRawFunctions: d,
1893
- filterFunctions: g
1894
- } = Ra(e, {
1892
+ filterFunctions: v
1893
+ } = $a(e, {
1895
1894
  groupBy: n,
1896
- showSelect: T(() => e.showSelect),
1897
- showExpand: T(() => e.showExpand)
1895
+ showSelect: C(() => e.showSelect),
1896
+ showExpand: C(() => e.showExpand)
1898
1897
  }), {
1899
1898
  items: I
1900
- } = Ka(e, o), y = T(() => e.search), {
1901
- filteredItems: k
1899
+ } = Wa(e, o), y = C(() => e.search), {
1900
+ filteredItems: D
1902
1901
  } = la(e, I, y, {
1903
1902
  transform: (j) => j.columns,
1904
- customKeyFilter: g
1903
+ customKeyFilter: v
1905
1904
  }), {
1906
- toggleSort: F
1907
- } = Va({
1905
+ toggleSort: T
1906
+ } = Fa({
1908
1907
  initialSortOrder: r,
1909
- sortBy: s,
1910
- multiSort: v,
1908
+ sortBy: i,
1909
+ multiSort: f,
1911
1910
  mustSort: u,
1912
1911
  page: c
1913
1912
  }), {
1914
1913
  sortByWithGroups: P,
1915
- opened: A,
1914
+ opened: E,
1916
1915
  extractRows: N,
1917
1916
  isGroupOpen: p,
1918
1917
  toggleGroup: x
1919
- } = ca({
1918
+ } = fa({
1920
1919
  groupBy: n,
1921
- sortBy: s,
1920
+ sortBy: i,
1922
1921
  disableSort: h
1923
1922
  }), {
1924
- sortedItems: f
1925
- } = Fa(e, k, P, {
1923
+ sortedItems: g
1924
+ } = Ta(e, D, P, {
1926
1925
  transform: (j) => ({
1927
1926
  ...j.raw,
1928
1927
  ...j.columns
@@ -1930,57 +1929,57 @@ const Wa = _({
1930
1929
  sortFunctions: b,
1931
1930
  sortRawFunctions: d
1932
1931
  }), {
1933
- flatItems: D
1934
- } = va(f, n, A, () => !!l["group-summary"]), C = V(() => D.value.length), {
1932
+ flatItems: w
1933
+ } = ga(g, n, E, () => !!l["group-summary"]), F = V(() => w.value.length), {
1935
1934
  startIndex: R,
1936
1935
  stopIndex: ae,
1937
1936
  pageCount: be,
1938
1937
  setItemsPerPage: H
1939
- } = ha({
1938
+ } = ya({
1940
1939
  page: c,
1941
1940
  itemsPerPage: m,
1942
- itemsLength: C
1941
+ itemsLength: F
1943
1942
  }), {
1944
- paginatedItems: J
1945
- } = pa({
1946
- items: D,
1943
+ paginatedItems: Q
1944
+ } = xa({
1945
+ items: w,
1947
1946
  startIndex: R,
1948
1947
  stopIndex: ae,
1949
1948
  itemsPerPage: m
1950
- }), Y = V(() => N(J.value)), {
1949
+ }), Y = V(() => N(Q.value)), {
1951
1950
  isSelected: ht,
1952
1951
  select: yt,
1953
1952
  selectAll: pt,
1954
1953
  toggleSelect: xt,
1955
1954
  someSelected: St,
1956
1955
  allSelected: Pt
1957
- } = wa(e, {
1956
+ } = ka(e, {
1958
1957
  allItems: I,
1959
1958
  currentPage: Y
1960
1959
  }), {
1961
1960
  isExpanded: wt,
1962
1961
  toggleExpand: kt
1963
- } = ia(e);
1964
- ga({
1962
+ } = ua(e);
1963
+ ma({
1965
1964
  page: c,
1966
1965
  itemsPerPage: m,
1967
- sortBy: s,
1966
+ sortBy: i,
1968
1967
  groupBy: n,
1969
1968
  search: y
1970
1969
  }), pe({
1971
1970
  VDataTableRows: {
1972
- hideNoData: T(() => e.hideNoData),
1973
- noDataText: T(() => e.noDataText),
1974
- loading: T(() => e.loading),
1975
- loadingText: T(() => e.loadingText)
1971
+ hideNoData: C(() => e.hideNoData),
1972
+ noDataText: C(() => e.noDataText),
1973
+ loading: C(() => e.loading),
1974
+ loadingText: C(() => e.loadingText)
1976
1975
  }
1977
1976
  });
1978
1977
  const L = V(() => ({
1979
1978
  page: c.value,
1980
1979
  itemsPerPage: m.value,
1981
- sortBy: s.value,
1980
+ sortBy: i.value,
1982
1981
  pageCount: be.value,
1983
- toggleSort: F,
1982
+ toggleSort: T,
1984
1983
  setItemsPerPage: H,
1985
1984
  someSelected: St.value,
1986
1985
  allSelected: Pt.value,
@@ -1994,13 +1993,13 @@ const Wa = _({
1994
1993
  toggleGroup: x,
1995
1994
  items: Y.value.map((j) => j.raw),
1996
1995
  internalItems: Y.value,
1997
- groupedItems: J.value,
1996
+ groupedItems: Q.value,
1998
1997
  columns: o.value,
1999
- headers: i.value
1998
+ headers: s.value
2000
1999
  }));
2001
2000
  return K(() => {
2002
- const j = Ae.filterProps(e), It = Ee.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
2003
- return w(Ne, B({
2001
+ const j = Ee.filterProps(e), It = Ae.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
2002
+ return k(Ne, B({
2004
2003
  class: ["v-data-table", {
2005
2004
  "v-data-table--show-select": e.showSelect,
2006
2005
  "v-data-table--loading": e.loading
@@ -2012,18 +2011,18 @@ const Wa = _({
2012
2011
  top: () => l.top?.(L.value),
2013
2012
  default: () => l.default ? l.default(L.value) : S(z, null, [l.colgroup?.(L.value), !e.hideDefaultHeader && S("thead", {
2014
2013
  key: "thead"
2015
- }, [w(Ee, B(It, {
2014
+ }, [k(Ae, B(It, {
2016
2015
  multiSort: !!e.multiSort
2017
- }), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) : w(Le, B(a, Dt, {
2018
- items: J.value
2016
+ }), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) : k(Le, B(a, Dt, {
2017
+ items: Q.value
2019
2018
  }), l), l["body.append"]?.(L.value)]), l.tbody?.(L.value), l.tfoot?.(L.value)]),
2020
- bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [w(Yt, null, null), w(Ae, j, {
2019
+ bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [k(Yt, null, null), k(Ee, j, {
2021
2020
  prepend: l["footer.prepend"]
2022
2021
  })])
2023
2022
  });
2024
2023
  }), {};
2025
2024
  }
2026
- }), qa = {
2025
+ }), Ua = {
2027
2026
  actions: "button@2",
2028
2027
  article: "heading, paragraph",
2029
2028
  avatar: "avatar",
@@ -2056,7 +2055,7 @@ const Wa = _({
2056
2055
  "table-tfoot": "text@2, avatar@2",
2057
2056
  text: "text"
2058
2057
  };
2059
- function Ua(e) {
2058
+ function Qa(e) {
2060
2059
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
2061
2060
  return S("div", {
2062
2061
  class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
@@ -2071,18 +2070,18 @@ function Re(e) {
2071
2070
  function me(e) {
2072
2071
  let t = [];
2073
2072
  if (!e) return t;
2074
- const a = qa[e];
2073
+ const a = Ua[e];
2075
2074
  if (e !== a) {
2076
2075
  if (e.includes(",")) return $e(e);
2077
2076
  if (e.includes("@")) return Re(e);
2078
2077
  a.includes(",") ? t = $e(a) : a.includes("@") ? t = Re(a) : a && t.push(me(a));
2079
2078
  }
2080
- return [Ua(e, t)];
2079
+ return [Qa(e, t)];
2081
2080
  }
2082
2081
  function $e(e) {
2083
2082
  return e.replace(/\s/g, "").split(",").map(me);
2084
2083
  }
2085
- const Ja = _({
2084
+ const Xa = _({
2086
2085
  boilerplate: Boolean,
2087
2086
  color: String,
2088
2087
  loading: Boolean,
@@ -2097,10 +2096,10 @@ const Ja = _({
2097
2096
  ...ta(),
2098
2097
  ...Ke(),
2099
2098
  ...ke()
2100
- }, "VSkeletonLoader"), al = $()({
2099
+ }, "VSkeletonLoader"), ll = $()({
2101
2100
  name: "VSkeletonLoader",
2102
2101
  inheritAttrs: !1,
2103
- props: Ja(),
2102
+ props: Xa(),
2104
2103
  setup(e, t) {
2105
2104
  let {
2106
2105
  attrs: a,
@@ -2110,14 +2109,14 @@ const Ja = _({
2110
2109
  backgroundColorClasses: n,
2111
2110
  backgroundColorStyles: r
2112
2111
  } = ze(() => e.color), {
2113
- dimensionStyles: s
2112
+ dimensionStyles: i
2114
2113
  } = Zt(e), {
2115
- elevationClasses: v
2114
+ elevationClasses: f
2116
2115
  } = ea(e), {
2117
2116
  themeClasses: u
2118
2117
  } = we(e), {
2119
2118
  t: c
2120
- } = X(), m = V(() => me(Z(e.type).join(",")));
2119
+ } = J(), m = V(() => me(Z(e.type).join(",")));
2121
2120
  return K(() => {
2122
2121
  const h = !l.default || e.loading, o = e.boilerplate || !h ? {} : {
2123
2122
  ariaLive: "polite",
@@ -2127,13 +2126,13 @@ const Ja = _({
2127
2126
  return h ? S("div", B({
2128
2127
  class: ["v-skeleton-loader", {
2129
2128
  "v-skeleton-loader--boilerplate": e.boilerplate
2130
- }, u.value, n.value, v.value],
2131
- style: [r.value, s.value]
2129
+ }, u.value, n.value, f.value],
2130
+ style: [r.value, i.value]
2132
2131
  }, o, a), [m.value]) : S(z, null, [l.default?.()]);
2133
2132
  }), {};
2134
2133
  }
2135
2134
  });
2136
- function Qa(e, t, a) {
2135
+ function Ja(e, t, a) {
2137
2136
  switch (a) {
2138
2137
  case ">":
2139
2138
  return e > t;
@@ -2149,65 +2148,64 @@ function Qa(e, t, a) {
2149
2148
  throw new Error(`Invalid operator: ${a}`);
2150
2149
  }
2151
2150
  }
2152
- function ll() {
2151
+ function nl() {
2153
2152
  const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = U("table_props"), l = M(), n = V(() => {
2154
2153
  let o = l.value;
2155
2154
  if (!o) return o;
2156
- const i = u(e.value, t.value);
2157
- return !i || Object.keys(i).length === 0 || Object.keys(i).forEach((b) => {
2158
- const { value: d, comparison: g = "=" } = i[b];
2155
+ const s = u(e.value, t.value);
2156
+ return !s || Object.keys(s).length === 0 || Object.keys(s).forEach((b) => {
2157
+ const { value: d, comparison: v = "=" } = s[b];
2159
2158
  if (!d) return;
2160
2159
  const I = h(a.headers, b);
2161
2160
  I && (o = o.filter((y) => {
2162
- const k = m(y, b, I);
2163
- return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value: k, filterValue: d, filterComparison: g, header: I, item: y }) : v(k, d, g, I);
2161
+ const D = m(y, b, I);
2162
+ return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value: D, filterValue: d, filterComparison: v, header: I, item: y }) : f(D, d, v, I);
2164
2163
  }));
2165
2164
  }), o;
2166
2165
  });
2167
- function r(o, i) {
2168
- const b = Array.isArray(i) ? i : [i], d = ie(b[0]).startOf("day").isSameOrBefore(ie(o).format()), g = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
2169
- return d && g;
2166
+ function r(o, s) {
2167
+ const b = Array.isArray(s) ? s : [s], d = ie(b[0]).startOf("day").isSameOrBefore(ie(o).format()), v = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
2168
+ return d && v;
2170
2169
  }
2171
- function s(o, i) {
2172
- return Array.isArray(i) ? i.map((b) => b.toString().toLowerCase()).includes(o.toString().toLowerCase()) : o?.toString().toLowerCase().includes(i.toString().toLowerCase());
2170
+ function i(o, s) {
2171
+ return Array.isArray(s) ? s.map((b) => b.toString().toLowerCase()).includes(o.toString().toLowerCase()) : o?.toString().toLowerCase().includes(s.toString().toLowerCase());
2173
2172
  }
2174
- function v(o, i, b, d) {
2173
+ function f(o, s, b, d) {
2175
2174
  switch (d.advancedFilter?.component) {
2176
2175
  case "datepicker":
2177
- return r(o, i);
2176
+ return r(o, s);
2178
2177
  case "comparison":
2179
- return Qa(Number(o), Number(i), b);
2178
+ return Ja(Number(o), Number(s), b);
2180
2179
  default:
2181
- return s(o, i);
2180
+ return i(o, s);
2182
2181
  }
2183
2182
  }
2184
- function u(o, i) {
2185
- const b = Object.values(i).filter((d) => d.args).map((d) => d.args).reduce((d, g) => ({ ...d, ...g }), {});
2183
+ function u(o, s) {
2184
+ const b = Object.values(s).filter((d) => d.args).map((d) => d.args).reduce((d, v) => ({ ...d, ...v }), {});
2186
2185
  return { ...o, ...b };
2187
2186
  }
2188
- function c(o, i) {
2189
- return i.split(".").reduce((b, d) => b && b[d], o);
2187
+ function c(o, s) {
2188
+ return s.split(".").reduce((b, d) => b && b[d], o);
2190
2189
  }
2191
- function m(o, i, b) {
2192
- const d = oa(o);
2193
- return Object.hasOwn(b, "filterReturnValue") && typeof b.filterReturnValue == "function" && (d[i] = b.filterReturnValue({
2194
- value: o[i],
2190
+ function m(o, s, b) {
2191
+ const d = oa(o), v = b.advancedFilter?.filterReturnValue;
2192
+ return typeof v == "function" && (d[s] = v({
2193
+ value: o[s],
2195
2194
  item: o
2196
- })), c(d, i);
2195
+ })), c(d, s);
2197
2196
  }
2198
- function h(o, i) {
2199
- return o.find((b) => (b.advancedFilter?.key ?? b.key) === i);
2197
+ function h(o, s) {
2198
+ return o.find((b) => (b.advancedFilter?.key ?? b.key) === s);
2200
2199
  }
2201
2200
  return ce(
2202
2201
  () => a.data,
2203
- (o, i) => {
2204
- const b = o ?? [], d = i ?? [];
2205
- JSON.stringify(b) !== JSON.stringify(d) && (l.value = o);
2202
+ (o, s) => {
2203
+ sa(o ?? [], s ?? []) || (l.value = o);
2206
2204
  },
2207
2205
  { deep: !0, immediate: !0 }
2208
2206
  ), { tableData: l, filteredData: n };
2209
2207
  }
2210
- const nl = At({
2208
+ const rl = Et({
2211
2209
  props: {
2212
2210
  render: {
2213
2211
  type: [Function, Object, String, Number, Date],
@@ -2224,31 +2222,31 @@ const nl = At({
2224
2222
  },
2225
2223
  setup: (e) => () => {
2226
2224
  const t = { ...e.props, ...e.params };
2227
- return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? Et(e.render, t) : e.render;
2225
+ return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? At(e.render, t) : e.render;
2228
2226
  }
2229
2227
  });
2230
2228
  export {
2231
- nl as C,
2232
- tl as V,
2233
- al as a,
2234
- Ia as b,
2235
- da as c,
2236
- ba as d,
2237
- Ra as e,
2238
- Ka as f,
2239
- ca as g,
2240
- ha as h,
2241
- va as i,
2242
- wa as j,
2243
- ia as k,
2244
- ga as l,
2245
- Ae as m,
2246
- Ee as n,
2229
+ rl as C,
2230
+ al as V,
2231
+ ll as a,
2232
+ Da as b,
2233
+ ca as c,
2234
+ ha as d,
2235
+ $a as e,
2236
+ Wa as f,
2237
+ fa as g,
2238
+ ya as h,
2239
+ ga as i,
2240
+ ka as j,
2241
+ ua as k,
2242
+ ma as l,
2243
+ Ee as m,
2244
+ Ae as n,
2247
2245
  Le as o,
2248
- Va as p,
2246
+ Fa as p,
2249
2247
  Ne as q,
2250
2248
  rt as r,
2251
- Wa as s,
2252
- ma as t,
2253
- ll as u
2249
+ za as s,
2250
+ ba as t,
2251
+ nl as u
2254
2252
  };