@ianicdev/datatables2 0.10.5 → 0.10.7

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 (51) hide show
  1. package/dist/{Columns-CPCKKIx3.cjs → Columns-BQBgwIE4.cjs} +1 -1
  2. package/dist/{Columns-ZxF5CuL6.js → Columns-CeOoSZPT.js} +1 -1
  3. package/dist/{Comparison-DfPeTvCT.cjs → Comparison-TwSFYOo8.cjs} +1 -1
  4. package/dist/{Comparison-CMTDEfUJ.js → Comparison-w8X0sSEz.js} +6 -6
  5. package/dist/Datepicker-Bfg7S8gY.cjs +2 -0
  6. package/dist/Datepicker-DZj1h3YE.js +1425 -0
  7. package/dist/{Download-CjD4NWhV.cjs → Download-CtOrEQa0.cjs} +1 -1
  8. package/dist/{Download-CBodg9GI.js → Download-h5jMMWzV.js} +3 -3
  9. package/dist/{Options-BHx4o8aa.js → Options-Cf8cNif9.js} +1 -1
  10. package/dist/{Options-e0hJOpF8.cjs → Options-DgUkT0h1.cjs} +1 -1
  11. package/dist/{RefreshTable-DlG8UH4c.js → RefreshTable-B5qFMtYy.js} +2 -2
  12. package/dist/{RefreshTable-CyPWCK3e.cjs → RefreshTable-CyPzzQ1S.cjs} +1 -1
  13. package/dist/{Search-DDRz2N_S.js → Search--1ntexbx.js} +2 -2
  14. package/dist/{Search-D4UmoZpS.cjs → Search-YN4Jt4eC.cjs} +1 -1
  15. package/dist/{Table-QxreAQB1.js → Table-5pQ_bwxC.js} +3 -3
  16. package/dist/{Table-ACmKFpAk.cjs → Table-WgtgmVfz.cjs} +1 -1
  17. package/dist/{TableServer-pRzLKhVw.cjs → TableServer-7AzrveN2.cjs} +1 -1
  18. package/dist/{TableServer-BQUFKBeQ.js → TableServer-Bewaghu8.js} +3 -3
  19. package/dist/{cellRender-B3IOPLJf.js → cellRender-Cy88VFEF.js} +451 -452
  20. package/dist/cellRender-kbJfFjXc.cjs +1 -0
  21. package/dist/{dataTables-Be-U1RVV.js → dataTables-ej1IEGzo.js} +1385 -1388
  22. package/dist/dataTables-z7fPX2Wi.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
  27. package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
  28. package/dist/{index-5WIEduUN.js → index-C3S1kkaI.js} +2 -2
  29. package/dist/index-CiJ4XY6g.cjs +1 -0
  30. package/dist/index-DfPhvU77.js +5865 -0
  31. package/dist/{index-CDteNa2i.cjs → index-EmvtFwx8.cjs} +1 -1
  32. package/dist/{index.es-Ciudu1vj.cjs → index.es-BtDW7HTQ.cjs} +1 -1
  33. package/dist/{index.es-eRsZ1LFr.js → index.es-Bv6Mb9BC.js} +2 -2
  34. package/dist/{jspdf-B3ZoDzKb.cjs → jspdf-BsORS480.cjs} +2 -2
  35. package/dist/{jspdf-ooxm5O8S.js → jspdf-D9i2dan7.js} +3 -3
  36. package/dist/purify.es-B-PIlM9I.js +552 -0
  37. package/dist/purify.es-B-_4ubwQ.cjs +2 -0
  38. package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
  39. package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
  40. package/package.json +14 -13
  41. package/dist/Datepicker-BLYCUwKH.js +0 -1411
  42. package/dist/Datepicker-CbsULJsG.cjs +0 -2
  43. package/dist/cellRender-CA6S9KvF.cjs +0 -1
  44. package/dist/dataTables-BbXv6am2.cjs +0 -4
  45. package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
  46. package/dist/index-BAxGZLuh.js +0 -4533
  47. package/dist/index-m_LBTAkz.cjs +0 -1
  48. package/dist/purify.es-BwLardii.js +0 -527
  49. package/dist/purify.es-ClceE12G.cjs +0 -2
  50. package/dist/sortablejs-C0WJhxmJ.js +0 -1254
  51. package/dist/sortablejs-Da6TYh39.cjs +0 -1
@@ -1,45 +1,45 @@
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-Be-U1RVV.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-BAxGZLuh.js";
1
+ import { toRef as C, 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 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 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 se, 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 oe, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-ej1IEGzo.js";
3
+ import { V as qe, a as aa, b as de, c as la, m as na, u as ra, d as sa } from "./index-DfPhvU77.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 oa = _({
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");
15
+ }, "DataTable-expand"), Ue = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
16
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);
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 {
23
- const h = [...a.value].find((o) => le(o) === m);
23
+ const h = [...a.value].find((s) => le(s) === m);
24
24
  c.delete(h);
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 Q(Ue, i), i;
43
43
  }
44
44
  function Je() {
45
45
  const e = U(Ue);
@@ -51,7 +51,7 @@ const ua = _({
51
51
  type: Array,
52
52
  default: () => []
53
53
  }
54
- }, "DataTable-group"), Qe = Symbol.for("vuetify:data-table-group");
54
+ }, "DataTable-group"), Qe = /* @__PURE__ */ Symbol.for("vuetify:data-table-group");
55
55
  function da(e) {
56
56
  return {
57
57
  groupBy: q(e, "groupBy")
@@ -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
- function h(o) {
78
- const i = [];
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)];
77
+ function h(s) {
78
+ const o = [];
79
+ for (const b of s.items)
80
+ "type" in b && b.type === "group" ? o.push(...h(b)) : o.push(b);
81
+ return [...new Set(o)];
82
82
  }
83
83
  return h({
84
84
  items: m
@@ -86,11 +86,11 @@ 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
95
  return Q(Qe, c), c;
96
96
  }
@@ -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 = fa(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;
@@ -137,7 +137,7 @@ function va(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
  };
@@ -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,8 +158,8 @@ 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
@@ -174,7 +174,7 @@ const ma = _({
174
174
  type: [Number, String],
175
175
  default: 10
176
176
  }
177
- }, "DataTable-paginate"), et = Symbol.for("vuetify:data-table-pagination");
177
+ }, "DataTable-paginate"), et = /* @__PURE__ */ Symbol.for("vuetify:data-table-pagination");
178
178
  function ba(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 {
@@ -187,33 +187,33 @@ function ha(e) {
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) {
195
- a.value = o, t.value = 1;
194
+ function f(s) {
195
+ a.value = s, 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
- function m(o) {
204
- t.value = he(o, 1, s.value);
203
+ function m(s) {
204
+ t.value = he(s, 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
218
  return Q(et, h), h;
219
219
  }
@@ -228,13 +228,13 @@ function pa(e) {
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
240
  const xa = {
@@ -319,76 +319,75 @@ const xa = {
319
319
  default: () => []
320
320
  },
321
321
  valueComparator: Function
322
- }, "DataTable-select"), at = Symbol.for("vuetify:data-table-selection");
322
+ }, "DataTable-select"), at = /* @__PURE__ */ Symbol.for("vuetify:data-table-selection");
323
323
  function wa(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
335
  return xa;
336
336
  case "all":
337
337
  return Sa;
338
- case "page":
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 s(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);
358
+ if (D = D ?? l.value.findIndex((A) => A.value === y.value), e.selectStrategy !== "single" && T?.shiftKey && u.value !== null) {
359
+ const [A, N] = [u.value, D].sort((p, x) => p - x);
361
360
  P.push(...l.value.slice(A, 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 o(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 = {
382
- toggleSelect: o,
380
+ }), v = C(() => f.value.showSelectAll), I = {
381
+ toggleSelect: s,
383
382
  select: h,
384
- selectAll: i,
383
+ selectAll: o,
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
392
  return Q(at, I), I;
394
393
  }
@@ -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");
415
+ }, "DataTable-sort"), lt = /* @__PURE__ */ Symbol.for("vuetify:data-table-sort");
417
416
  function Ia(e) {
418
- const t = T(() => e.initialSortOrder), a = q(e, "sortBy"), l = T(() => e.mustSort), n = T(() => e.multiSort);
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,
@@ -445,39 +444,39 @@ function Va(e) {
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";
454
- if (o)
455
- o.order === b ? l.value && h.length === 1 ? o.order = t.value : h = h.filter((d) => d.key !== c.key) : o.order = b;
452
+ const s = h.find((d) => d.key === c.key), o = t.value, b = t.value === "desc" ? "asc" : "desc";
453
+ if (s)
454
+ s.order === b ? l.value && h.length === 1 ? s.order = t.value : h = h.filter((d) => d.key !== c.key) : s.order = b;
456
455
  else {
457
456
  const {
458
457
  active: d,
459
- mode: g
458
+ mode: v
460
459
  } = Da(n.value, m);
461
- d ? g === "prepend" ? h.unshift({
460
+ d ? v === "prepend" ? h.unshift({
462
461
  key: c.key,
463
- order: i
462
+ order: o
464
463
  }) : h.push({
465
464
  key: c.key,
466
- order: i
465
+ order: o
467
466
  }) : h = [{
468
467
  key: c.key,
469
- order: i
468
+ order: o
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
481
  return Q(lt, u), u;
483
482
  }
@@ -504,29 +503,29 @@ function Ta(e, t, a, l) {
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 s = ue(i[1], m), o = ue(f[1], m), b = i[0].raw, d = f[0].raw;
512
+ if (h === "desc" && ([s, o] = [o, s], [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](s, o);
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 && (s instanceof Date && o instanceof Date && (s = s.getTime(), o = o.getTime()), [s, o] = [s, o].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), s !== o))
523
+ return re(s) && re(o) ? 0 : re(s) ? -1 : re(o) ? 1 : !isNaN(s) && !isNaN(o) ? Number(s) - Number(o) : n.compare(s, o);
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
531
  function Ca() {
@@ -636,9 +635,9 @@ const _a = _({
636
635
  } = t;
637
636
  const n = q(e, "modelValue"), {
638
637
  t: r,
639
- n: s
638
+ n: i
640
639
  } = X(), {
641
- isRtl: v
640
+ isRtl: f
642
641
  } = Ht(), {
643
642
  themeClasses: u
644
643
  } = we(e), {
@@ -653,113 +652,113 @@ 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
+ }), s = V(() => parseInt(e.length, 10)), o = 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(() => {
670
- if (o.value <= 0 || isNaN(o.value) || o.value > Number.MAX_SAFE_INTEGER) return [];
668
+ const v = V(() => {
669
+ if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER) return [];
671
670
  if (b.value <= 0) return [];
672
671
  if (b.value === 1) return [n.value];
673
- 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)];
672
+ if (s.value <= b.value)
673
+ return se(s.value, o.value);
674
+ const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, w = s.value - x;
675
+ if (g - n.value >= 0)
676
+ return [...se(Math.max(1, b.value - 1), o.value), e.ellipsis, s.value];
677
+ if (n.value - w >= (p ? 1 : 0)) {
678
+ const F = b.value - 1, R = s.value - F + o.value;
679
+ return [o.value, e.ellipsis, ...se(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) + o.value;
682
+ return [o.value, e.ellipsis, ...se(F, R), e.ellipsis, s.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
690
+ updateRef: D
692
691
  } = Ca();
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 <= o.value, x = !!e.disabled || n.value >= o.value + s.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, o.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, o.value + s.value - 1, "last"),
763
762
  disabled: x,
764
763
  "aria-label": r(e.lastAriaLabel),
765
764
  "aria-disabled": x
@@ -767,13 +766,13 @@ const _a = _({
767
766
  };
768
767
  });
769
768
  function A() {
770
- const p = n.value - i.value;
769
+ const p = n.value - o.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(A)) : p.key === Ce.right && !e.disabled && n.value < o.value + s.value - 1 && (n.value = n.value + 1, Fe(A));
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
  })), {};
@@ -895,41 +894,40 @@ const _a = _({
895
894
  } = X(), {
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" ? {
904
- value: o,
905
- title: o === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(o)
902
+ } = ya(), h = V(() => e.itemsPerPageOptions.map((s) => typeof s == "number" ? {
903
+ value: s,
904
+ title: s === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(s)
906
905
  } : {
907
- ...o,
908
- title: isNaN(Number(o.title)) ? l(o.title) : o.title
906
+ ...s,
907
+ title: isNaN(Number(s.title)) ? l(s.title) : s.title
909
908
  }));
910
909
  return K(() => {
911
- const o = Oe.filterProps(e);
910
+ const s = Oe.filterProps(e);
912
911
  return S("div", {
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": (o) => m(Number(o)),
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": (o) => n.value = o,
933
931
  density: "comfortable",
934
932
  firstAriaLabel: e.firstPageLabel,
935
933
  lastAriaLabel: e.lastPageLabel,
@@ -940,7 +938,7 @@ const _a = _({
940
938
  showFirstLastPage: !0,
941
939
  totalVisible: e.showCurrentPage ? 1 : 0,
942
940
  variant: "plain"
943
- }, Ie(o, ["color"])), null)])]);
941
+ }, Ie(s, ["color"])), null)])]);
944
942
  }), {};
945
943
  }
946
944
  }), ee = zt({
@@ -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",
@@ -992,11 +990,11 @@ const _a = _({
992
990
  });
993
991
  }), Ba = _({
994
992
  headers: Array
995
- }, "DataTable-header"), ot = Symbol.for("vuetify:data-table-headers"), st = {
993
+ }, "DataTable-header"), st = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), ot = {
996
994
  title: "",
997
995
  sortable: !1
998
996
  }, Oa = {
999
- ...st,
997
+ ...ot,
1000
998
  width: 48
1001
999
  };
1002
1000
  function Aa() {
@@ -1049,7 +1047,7 @@ function it(e) {
1049
1047
  }
1050
1048
  function Ea(e) {
1051
1049
  if (e.key) {
1052
- if (e.key === "data-table-group") return st;
1050
+ if (e.key === "data-table-group") return ot;
1053
1051
  if (["data-table-expand", "data-table-select"].includes(e.key)) return Oa;
1054
1052
  }
1055
1053
  }
@@ -1059,26 +1057,26 @@ function Ve(e) {
1059
1057
  }
1060
1058
  function La(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
  }
@@ -1118,29 +1116,29 @@ function Na(e, t) {
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
- for (const o of c.children) {
1135
- const i = m % 1 + u / Math.pow(10, l + 2);
1136
- n.enqueue(o, l + h + i);
1132
+ for (const s of c.children) {
1133
+ const o = m % 1 + u / Math.pow(10, l + 2);
1134
+ n.enqueue(s, l + h + o);
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
  }
@@ -1150,19 +1148,19 @@ function ct(e) {
1150
1148
  const l = {
1151
1149
  ...Ea(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
1162
  function Ra(e, t) {
1165
- const a = M([]), l = M([]), n = M({}), r = M({}), s = M({});
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,
@@ -1178,23 +1176,23 @@ function Ra(e, t) {
1178
1176
  });
1179
1177
  const h = ct(c);
1180
1178
  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);
1179
+ const s = Math.max(...h.map((d) => Ve(d))) + 1, o = Na(h, s);
1180
+ a.value = o.headers, l.value = o.columns;
1181
+ const b = o.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 Q(st, f), f;
1195
1193
  }
1196
1194
  function ge() {
1197
- const e = U(ot);
1195
+ const e = U(st);
1198
1196
  if (!e) throw new Error("Missing headers!");
1199
1197
  return e;
1200
1198
  }
@@ -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"
@@ -1231,126 +1230,126 @@ const ft = _({
1231
1230
  } = X(), {
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
1240
1239
  } = ve(), {
1241
1240
  columns: h,
1242
- headers: o
1241
+ headers: s
1243
1242
  } = ge(), {
1244
- loaderClasses: i
1243
+ loaderClasses: o
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" ? E(x.fixedOffset) : void 0,
1251
+ right: w === "end" ? E(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
- headers: o.value,
1269
+ headers: s.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
1277
+ getSortIcon: v
1279
1278
  })), A = 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, o.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
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
1295
1294
  }, ...A.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: E(g.width),
1297
+ minWidth: E(g.minWidth),
1298
+ maxWidth: E(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}`, J = {
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](J) : ae ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(J) ?? (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
1347
  class: [...A.value],
1349
- colspan: o.value.length + 1
1348
+ colspan: s.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) : s.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(Jt, {
1397
1395
  name: "v-data-table-progress",
1398
1396
  absolute: !0,
1399
1397
  active: !0,
@@ -1429,55 +1427,56 @@ const ft = _({
1429
1427
  toggleGroup: n,
1430
1428
  extractRows: r
1431
1429
  } = Xe(), {
1432
- isSelected: s,
1433
- isSomeSelected: v,
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((s) => s.key === "data-table-select") ? 1 : 0));
1438
1436
  return () => S("tr", {
1439
1437
  class: "v-data-table-group-header-row",
1440
1438
  style: {
1441
1439
  "--v-data-table-group-header-row-depth": e.item.depth
1442
1440
  }
1443
- }, [c.value.map((o) => {
1444
- if (o.key === "data-table-group") {
1445
- const i = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
1441
+ }, [c.value.map((s) => {
1442
+ if (s.key === "data-table-group") {
1443
+ const o = 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: o,
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: o,
1461
1459
  onClick: b
1462
1460
  }, null), S("span", null, [e.item.value]), S("span", null, [Te("("), m.value.length, Te(")")])]
1463
1461
  });
1464
- } else if (o.key === "data-table-select") {
1465
- const i = s(m.value), b = v(m.value) && !i, d = (g) => u(m.value, g);
1462
+ } else if (s.key === "data-table-select") {
1463
+ const o = m.value.filter((I) => I.selectable), b = o.length > 0 && i(o), d = f(o) && !b, v = (I) => u(o, 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: o.length === 0,
1477
+ modelValue: b,
1478
+ indeterminate: d,
1479
+ "onUpdate:modelValue": v
1481
1480
  }, null)]
1482
1481
  });
1483
1482
  }
@@ -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
1523
  } = Je(), {
1525
- toggleSort: o,
1526
- sortBy: i,
1524
+ toggleSort: s,
1525
+ sortBy: o,
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
1548
  }, A = {
1550
- column: g,
1549
+ column: v,
1551
1550
  selectAll: c,
1552
1551
  isSorted: b,
1553
- toggleSort: o,
1554
- sortBy: i.value,
1555
- someSelected: v.value,
1552
+ toggleSort: s,
1553
+ sortBy: o.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]?.(A) ?? 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,8 +1661,8 @@ const ft = _({
1662
1661
  columns: n
1663
1662
  } = ge(), {
1664
1663
  expandOnClick: r,
1665
- toggleExpand: s,
1666
- isExpanded: v
1664
+ toggleExpand: i,
1665
+ isExpanded: f
1667
1666
  } = Je(), {
1668
1667
  isSelected: u,
1669
1668
  toggleSelect: c
@@ -1671,9 +1670,9 @@ const ft = _({
1671
1670
  toggleGroup: m,
1672
1671
  isGroupOpen: h
1673
1672
  } = Xe(), {
1674
- t: o
1673
+ t: s
1675
1674
  } = X(), {
1676
- mobile: i
1675
+ mobile: o
1677
1676
  } = fe(e);
1678
1677
  return K(() => {
1679
1678
  const b = xe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
@@ -1682,45 +1681,45 @@ const ft = _({
1682
1681
  key: "loading"
1683
1682
  }, [S("td", {
1684
1683
  colspan: n.value.length
1685
- }, [l.loading?.() ?? o(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
1684
+ }, [l.loading?.() ?? s(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
1686
1685
  class: "v-data-table-rows-no-data",
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"]?.() ?? s(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($a, 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: o.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(Ha, y.props, l), f(d) && l["expanded-row"]?.(I)]);
1750
1749
  })]);
1751
1750
  }), {};
1752
1751
  }
@@ -1777,7 +1776,7 @@ const ft = _({
1777
1776
  } = we(e), {
1778
1777
  densityClasses: r
1779
1778
  } = Xt(e);
1780
- return K(() => w(e.tag, {
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,
@@ -1816,14 +1815,14 @@ const ft = _({
1816
1815
  returnObject: Boolean
1817
1816
  }, "DataTable-items");
1818
1817
  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), {});
1818
+ const n = e.returnObject ? t : oe(t, e.itemValue), r = oe(t, e.itemSelectable, !0), i = l.reduce((f, u) => (u.key != null && (f[u.key] = oe(t, u.value)), f), {});
1820
1819
  return {
1821
1820
  type: "item",
1822
- key: e.returnObject ? se(t, e.itemValue) : n,
1821
+ key: e.returnObject ? oe(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
  }
@@ -1842,13 +1841,13 @@ const Wa = _({
1842
1841
  hideDefaultHeader: Boolean,
1843
1842
  width: [String, Number],
1844
1843
  search: String,
1845
- ...sa(),
1844
+ ...oa(),
1846
1845
  ...ua(),
1847
1846
  ...Ba(),
1848
1847
  ...ja(),
1849
1848
  ...Pa(),
1850
1849
  ...ka(),
1851
- ...Ie(ft(), ["multiSort"]),
1850
+ ...Ie(ft(), ["multiSort", "initialSortOrder"]),
1852
1851
  ...bt()
1853
1852
  }, "DataTable"), za = _({
1854
1853
  ...ma(),
@@ -1877,8 +1876,8 @@ const Wa = _({
1877
1876
  groupBy: n
1878
1877
  } = da(e), {
1879
1878
  initialSortOrder: r,
1880
- sortBy: s,
1881
- multiSort: v,
1879
+ sortBy: i,
1880
+ multiSort: f,
1882
1881
  mustSort: u
1883
1882
  } = Ia(e), {
1884
1883
  page: c,
@@ -1886,28 +1885,28 @@ const Wa = _({
1886
1885
  } = ba(e), {
1887
1886
  disableSort: h
1888
1887
  } = Ot(e), {
1889
- columns: o,
1890
- headers: i,
1888
+ columns: s,
1889
+ headers: o,
1891
1890
  sortFunctions: b,
1892
1891
  sortRawFunctions: d,
1893
- filterFunctions: g
1892
+ filterFunctions: v
1894
1893
  } = Ra(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
+ } = Ka(e, s), 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
1905
+ toggleSort: T
1907
1906
  } = Va({
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
  }), {
@@ -1918,11 +1917,11 @@ const Wa = _({
1918
1917
  toggleGroup: x
1919
1918
  } = ca({
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
+ } = Fa(e, D, P, {
1926
1925
  transform: (j) => ({
1927
1926
  ...j.raw,
1928
1927
  ...j.columns
@@ -1930,8 +1929,8 @@ 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
+ } = va(g, n, A, () => !!l["group-summary"]), F = V(() => w.value.length), {
1935
1934
  startIndex: R,
1936
1935
  stopIndex: ae,
1937
1936
  pageCount: be,
@@ -1939,11 +1938,11 @@ const Wa = _({
1939
1938
  } = ha({
1940
1939
  page: c,
1941
1940
  itemsPerPage: m,
1942
- itemsLength: C
1941
+ itemsLength: F
1943
1942
  }), {
1944
1943
  paginatedItems: J
1945
1944
  } = pa({
1946
- items: D,
1945
+ items: w,
1947
1946
  startIndex: R,
1948
1947
  stopIndex: ae,
1949
1948
  itemsPerPage: m
@@ -1964,23 +1963,23 @@ const Wa = _({
1964
1963
  ga({
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,
@@ -1995,12 +1994,12 @@ const Wa = _({
1995
1994
  items: Y.value.map((j) => j.raw),
1996
1995
  internalItems: Y.value,
1997
1996
  groupedItems: J.value,
1998
- columns: o.value,
1999
- headers: i.value
1997
+ columns: s.value,
1998
+ headers: o.value
2000
1999
  }));
2001
2000
  return K(() => {
2002
2001
  const j = Ae.filterProps(e), It = Ee.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
2003
- return w(Ne, B({
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,12 +2011,12 @@ 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(Ee, 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, {
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, {
2018
2017
  items: J.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(Ae, j, {
2021
2020
  prepend: l["footer.prepend"]
2022
2021
  })])
2023
2022
  });
@@ -2110,16 +2109,16 @@ 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
2119
  } = X(), m = V(() => me(Z(e.type).join(",")));
2121
2120
  return K(() => {
2122
- const h = !l.default || e.loading, o = e.boilerplate || !h ? {} : {
2121
+ const h = !l.default || e.loading, s = e.boilerplate || !h ? {} : {
2123
2122
  ariaLive: "polite",
2124
2123
  ariaLabel: c(e.loadingText),
2125
2124
  role: "alert"
@@ -2127,9 +2126,9 @@ 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]
2132
- }, o, a), [m.value]) : S(z, null, [l.default?.()]);
2129
+ }, u.value, n.value, f.value],
2130
+ style: [r.value, i.value]
2131
+ }, s, a), [m.value]) : S(z, null, [l.default?.()]);
2133
2132
  }), {};
2134
2133
  }
2135
2134
  });
@@ -2151,58 +2150,58 @@ function Qa(e, t, a) {
2151
2150
  }
2152
2151
  function ll() {
2153
2152
  const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = U("table_props"), l = M(), n = V(() => {
2154
- let o = l.value;
2155
- 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];
2153
+ let s = l.value;
2154
+ if (!s) return s;
2155
+ const o = u(e.value, t.value);
2156
+ return !o || Object.keys(o).length === 0 || Object.keys(o).forEach((b) => {
2157
+ const { value: d, comparison: v = "=" } = o[b];
2159
2158
  if (!d) return;
2160
2159
  const I = h(a.headers, b);
2161
- 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);
2160
+ I && (s = s.filter((y) => {
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
- }), o;
2164
+ }), s;
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(s, o) {
2167
+ const b = Array.isArray(o) ? o : [o], d = ie(b[0]).startOf("day").isSameOrBefore(ie(s).format()), v = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(s).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(s, o) {
2171
+ return Array.isArray(o) ? o.map((b) => b.toString().toLowerCase()).includes(s.toString().toLowerCase()) : s?.toString().toLowerCase().includes(o.toString().toLowerCase());
2173
2172
  }
2174
- function v(o, i, b, d) {
2173
+ function f(s, o, b, d) {
2175
2174
  switch (d.advancedFilter?.component) {
2176
2175
  case "datepicker":
2177
- return r(o, i);
2176
+ return r(s, o);
2178
2177
  case "comparison":
2179
- return Qa(Number(o), Number(i), b);
2178
+ return Qa(Number(s), Number(o), b);
2180
2179
  default:
2181
- return s(o, i);
2180
+ return i(s, o);
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 }), {});
2186
- return { ...o, ...b };
2183
+ function u(s, o) {
2184
+ const b = Object.values(o).filter((d) => d.args).map((d) => d.args).reduce((d, v) => ({ ...d, ...v }), {});
2185
+ return { ...s, ...b };
2187
2186
  }
2188
- function c(o, i) {
2189
- return i.split(".").reduce((b, d) => b && b[d], o);
2187
+ function c(s, o) {
2188
+ return o.split(".").reduce((b, d) => b && b[d], s);
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],
2195
- item: o
2196
- })), c(d, i);
2190
+ function m(s, o, b) {
2191
+ const d = sa(s), v = b.advancedFilter?.filterReturnValue;
2192
+ return typeof v == "function" && (d[o] = v({
2193
+ value: s[o],
2194
+ item: s
2195
+ })), c(d, o);
2197
2196
  }
2198
- function h(o, i) {
2199
- return o.find((b) => (b.advancedFilter?.key ?? b.key) === i);
2197
+ function h(s, o) {
2198
+ return s.find((b) => (b.advancedFilter?.key ?? b.key) === o);
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
+ (s, o) => {
2203
+ const b = s ?? [], d = o ?? [];
2204
+ JSON.stringify(b) !== JSON.stringify(d) && (l.value = s);
2206
2205
  },
2207
2206
  { deep: !0, immediate: !0 }
2208
2207
  ), { tableData: l, filteredData: n };