@ianicdev/datatables2 0.14.8 → 0.14.9

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 (33) hide show
  1. package/dist/{Comparison-lfW0QunT.js → Comparison-2mB_CJAw.js} +1 -1
  2. package/dist/{Comparison-DwKXwne8.cjs → Comparison-D0u8YtSa.cjs} +1 -1
  3. package/dist/{Datepicker-e0SWDuxR.cjs → Datepicker-1S6SWhhg.cjs} +1 -1
  4. package/dist/{Datepicker-BogPm3_X.js → Datepicker-DSepY5VS.js} +2 -2
  5. package/dist/{Options-DHdu1Cdb.cjs → Options-B0vro8dK.cjs} +1 -1
  6. package/dist/{Options-yfYAO6Lt.js → Options-B3YtCSz7.js} +3 -3
  7. package/dist/{RefreshTable-DcocbptD.cjs → RefreshTable-C0l2kvB6.cjs} +1 -1
  8. package/dist/{RefreshTable-an1RSzZc.js → RefreshTable-D1FNjZ75.js} +1 -1
  9. package/dist/{Search-ChKiEgwY.js → Search-CD02cbTm.js} +2 -2
  10. package/dist/{Search-hXXMqZ2z.cjs → Search-D1sKS_Ma.cjs} +1 -1
  11. package/dist/{Table-C9wAd-VR.cjs → Table-Bsf3w73K.cjs} +1 -1
  12. package/dist/{Table-D3FKF2eb.js → Table-Li-phVLY.js} +3 -3
  13. package/dist/{TableServer-CLETYFeE.js → TableServer-DmZ2ZGDM.js} +3 -3
  14. package/dist/{TableServer-CiAvDuUn.cjs → TableServer-k2MFZUSI.cjs} +1 -1
  15. package/dist/{TableVirtual-BHTA4oq4.js → TableVirtual-BWZxG6jZ.js} +3 -3
  16. package/dist/{TableVirtual-DavqyBuS.cjs → TableVirtual-D6JRj7AX.cjs} +1 -1
  17. package/dist/{cellRender-ye492JCt.js → cellRender-C8mrl4Qh.js} +202 -202
  18. package/dist/{cellRender-C2gtcMob.cjs → cellRender-iyZVSd7B.cjs} +1 -1
  19. package/dist/{dataTables-CFVPUpLZ.js → dataTables-DgFxMx-u.js} +1 -1
  20. package/dist/{dataTables-CvsWMp5L.cjs → dataTables-euZybjrx.cjs} +1 -1
  21. package/dist/datatables.cjs +1 -1
  22. package/dist/datatables.js +1 -1
  23. package/dist/{index-D90w-2Wa.cjs → index-BhQOf3D8.cjs} +1 -1
  24. package/dist/{index-DS_qItZk.cjs → index-BrWEiuDP.cjs} +1 -1
  25. package/dist/{index-DfZcxKky.js → index-CChTBNZY.js} +1 -1
  26. package/dist/{index-CGwFF4wj.js → index-CVrklzN0.js} +2 -2
  27. package/dist/{index-rZEY9YwQ.cjs → index-DBHprR3Q.cjs} +1 -1
  28. package/dist/{index-Cgko9f2U.js → index-DnoQGrgQ.js} +5 -5
  29. package/dist/{index-DeGuVQXT.js → index-DoIgQ3pZ.js} +2 -2
  30. package/dist/{index-Bmsu2HLG.cjs → index-PtGYSe01.cjs} +1 -1
  31. package/dist/{useColumns-Cxv8wyu2.js → useColumns-3ihFw5YS.js} +2 -2
  32. package/dist/{useColumns-cj3Rhiv-.cjs → useColumns-D0v2nKoB.cjs} +1 -1
  33. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { toRef as _, provide as ee, toRaw as se, inject as Y, ref as q, computed as D, toValue as M, watch as ne, shallowRef as fe, onBeforeUpdate as Ct, createVNode as k, normalizeStyle as Fe, normalizeClass as K, createElementVNode as x, mergeProps as E, nextTick as ke, watchEffect as _t, capitalize as Bt, Fragment as X, createTextVNode as Ee, withModifiers as oe, toDisplayString as Ot, toRefs as Et, defineComponent as At, h as Lt } from "vue";
2
- import { aR as Nt, a8 as Rt, E as Q, p as B, aS as ve, ad as ze, v as qe, c as Pe, a4 as J, aT as $t, y as te, aU as ie, aV as Ht, g as j, u as Gt, s as Te, b as me, t as Ie, f as Mt, aW as ue, h as z, aM as U, aX as Ae, k as A, w as jt, x as Ce, n as Ue, N as Wt, Q as Kt, T as Xe, U as re, q as Qe, W as zt, a7 as _e, aY as qt, al as $, aZ as Ut, am as Xt, o as Be, ag as Qt, Y as Ye, ak as Yt, i as Le, X as we, af as De, A as Zt, aq as de, ay as Jt, Z as ea, B as ta, a2 as aa } from "./dataTables-CFVPUpLZ.js";
3
- import { f as Ze, g as na, h as ge, a as la, m as ra, u as sa, d as Ne, e as oa } from "./index-Cgko9f2U.js";
1
+ import { toRef as _, provide as ee, toRaw as se, inject as Y, ref as q, computed as D, toValue as M, watch as ne, shallowRef as fe, onBeforeUpdate as Tt, createVNode as k, normalizeStyle as Ce, normalizeClass as K, createElementVNode as x, mergeProps as E, nextTick as ke, watchEffect as _t, capitalize as Bt, Fragment as X, createTextVNode as Ee, withModifiers as oe, toDisplayString as Ot, toRefs as Et, defineComponent as At, h as Lt } from "vue";
2
+ import { aR as Nt, a8 as Rt, E as Q, p as B, aS as ve, ad as ze, v as qe, c as Pe, a4 as J, aT as $t, y as te, aU as ie, aV as Ht, g as j, u as Gt, s as Fe, b as me, t as Ie, f as Mt, aW as ue, h as z, aM as U, aX as Ae, k as A, w as jt, x as Te, n as Ue, N as Wt, Q as Kt, T as Xe, U as re, q as Qe, W as zt, a7 as _e, aY as qt, al as $, aZ as Ut, am as Xt, o as Be, ag as Qt, Y as Ye, ak as Yt, i as Le, X as we, af as De, A as Zt, aq as de, ay as Jt, Z as ea, B as ta, a2 as aa } from "./dataTables-DgFxMx-u.js";
3
+ import { f as Ze, g as na, h as ge, a as la, m as ra, u as sa, d as Ne, e as oa } from "./index-DnoQGrgQ.js";
4
4
  import ce from "moment";
5
5
  function Re(e, t, a) {
6
6
  return Object.keys(e).filter((n) => Nt(n) && n.endsWith(t)).reduce((n, l) => (n[l.slice(0, -t.length)] = (r) => Rt(e[l], r, a(r)), n), {});
@@ -14,9 +14,9 @@ const ia = B({
14
14
  }
15
15
  }, "DataTable-expand"), Je = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
16
16
  function ua(e) {
17
- const t = _(() => e.expandOnClick), a = Q(e, "expanded", e.expanded, (f) => new Set(f), (f) => [...f.values()]);
18
- function n(f, d) {
19
- const v = new Set(a.value), m = se(f.value);
17
+ const t = _(() => e.expandOnClick), a = Q(e, "expanded", e.expanded, (c) => new Set(c), (c) => [...c.values()]);
18
+ function n(c, d) {
19
+ const v = new Set(a.value), m = se(c.value);
20
20
  if (d)
21
21
  v.add(m);
22
22
  else {
@@ -25,12 +25,12 @@ function ua(e) {
25
25
  }
26
26
  a.value = v;
27
27
  }
28
- function l(f) {
29
- const d = se(f.value);
28
+ function l(c) {
29
+ const d = se(c.value);
30
30
  return [...a.value].some((v) => se(v) === d);
31
31
  }
32
- function r(f) {
33
- n(f, !l(f));
32
+ function r(c) {
33
+ n(c, !l(c));
34
34
  }
35
35
  const o = {
36
36
  expand: n,
@@ -69,7 +69,7 @@ function fa(e) {
69
69
  function o(m) {
70
70
  return l.value.has(m.id);
71
71
  }
72
- function f(m) {
72
+ function c(m) {
73
73
  const h = new Set(l.value);
74
74
  o(m) ? h.delete(m.id) : h.add(m.id), l.value = h;
75
75
  }
@@ -86,7 +86,7 @@ function fa(e) {
86
86
  }
87
87
  const v = {
88
88
  sortByWithGroups: r,
89
- toggleGroup: f,
89
+ toggleGroup: c,
90
90
  opened: l,
91
91
  groupBy: a,
92
92
  extractRows: d,
@@ -112,14 +112,14 @@ function nt(e, t) {
112
112
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
113
113
  if (!t.length) return [];
114
114
  const l = va(e, t[0]), r = [], o = t.slice(1);
115
- return l.forEach((f, d) => {
115
+ return l.forEach((c, d) => {
116
116
  const v = t[0], m = `${n}_${v}_${d}`;
117
117
  r.push({
118
118
  depth: a,
119
119
  id: m,
120
120
  key: v,
121
121
  value: d,
122
- items: o.length ? nt(f, o, a + 1, m) : f,
122
+ items: o.length ? nt(c, o, a + 1, m) : c,
123
123
  type: "group"
124
124
  });
125
125
  }), r;
@@ -148,7 +148,7 @@ function ma(e) {
148
148
  groupBy: l,
149
149
  search: r
150
150
  } = e;
151
- const o = ze("VDataTable"), f = () => ({
151
+ const o = ze("VDataTable"), c = () => ({
152
152
  page: t.value,
153
153
  itemsPerPage: a.value,
154
154
  sortBy: n.value,
@@ -156,7 +156,7 @@ function ma(e) {
156
156
  search: r.value
157
157
  });
158
158
  let d = null;
159
- ne(f, (v) => {
159
+ ne(c, (v) => {
160
160
  qe(d, v) || (d && d.search !== v.search && (t.value = 1), o.emit("update:options", v), d = v);
161
161
  }, {
162
162
  deep: !0,
@@ -193,7 +193,7 @@ function ha(e) {
193
193
  ne([t, o], () => {
194
194
  t.value > o.value && (t.value = o.value);
195
195
  });
196
- function f(s) {
196
+ function c(s) {
197
197
  a.value = s, t.value = 1;
198
198
  }
199
199
  function d() {
@@ -215,7 +215,7 @@ function ha(e) {
215
215
  nextPage: d,
216
216
  prevPage: v,
217
217
  setPage: m,
218
- setItemsPerPage: f
218
+ setItemsPerPage: c
219
219
  };
220
220
  return ee(rt, h), h;
221
221
  }
@@ -231,8 +231,8 @@ function xa(e) {
231
231
  stopIndex: l,
232
232
  itemsPerPage: r
233
233
  } = e, o = D(() => r.value <= 0 ? M(a) : M(a).slice(n.value, l.value));
234
- return ne(o, (f) => {
235
- t.emit("update:currentItems", f);
234
+ return ne(o, (c) => {
235
+ t.emit("update:currentItems", c);
236
236
  }, {
237
237
  immediate: !0
238
238
  }), {
@@ -249,13 +249,13 @@ function Sa(e) {
249
249
  const {
250
250
  paginatedItems: r,
251
251
  pageCount: o,
252
- setItemsPerPage: f
252
+ setItemsPerPage: c
253
253
  } = a(t), {
254
254
  flatItems: d
255
255
  } = n(r);
256
256
  return {
257
257
  pageCount: o,
258
- setItemsPerPage: f,
258
+ setItemsPerPage: c,
259
259
  paginatedItems: d
260
260
  };
261
261
  }
@@ -264,13 +264,13 @@ function Sa(e) {
264
264
  flatItems: r,
265
265
  groups: o
266
266
  } = n(t), {
267
- paginatedItems: f,
267
+ paginatedItems: c,
268
268
  pageCount: d,
269
269
  setItemsPerPage: v
270
270
  } = a(o), m = D(() => {
271
- if (!f.value.length) return [];
272
- const h = f.value.at(0).id, s = f.value.at(-1).id, i = r.value.findIndex((u) => u.type === "group" && u.id === h), b = r.value.findIndex((u) => u.type === "group" && u.id === s), c = r.value.findIndex((u, I) => I > b && u.type === "group" && u.depth === 0);
273
- return r.value.slice(i, c === -1 ? void 0 : c);
271
+ if (!c.value.length) return [];
272
+ const h = c.value.at(0).id, s = c.value.at(-1).id, i = r.value.findIndex((u) => u.type === "group" && u.id === h), b = r.value.findIndex((u) => u.type === "group" && u.id === s), f = r.value.findIndex((u, I) => I > b && u.type === "group" && u.depth === 0);
273
+ return r.value.slice(i, f === -1 ? void 0 : f);
274
274
  });
275
275
  return {
276
276
  pageCount: d,
@@ -283,11 +283,11 @@ function Sa(e) {
283
283
  flatItems: r
284
284
  } = n(t), {
285
285
  paginatedItems: o,
286
- pageCount: f,
286
+ pageCount: c,
287
287
  setItemsPerPage: d
288
288
  } = a(r);
289
289
  return {
290
- pageCount: f,
290
+ pageCount: c,
291
291
  setItemsPerPage: d,
292
292
  paginatedItems: o
293
293
  };
@@ -384,8 +384,8 @@ function Ia(e, t) {
384
384
  } = t;
385
385
  const l = Q(e, "modelValue", e.modelValue, (y) => {
386
386
  const w = e.valueComparator;
387
- return w ? new Set(J(y).map((F) => a.value.find((P) => w(F, P.value))?.value ?? F)) : new Set(J(y).map((F) => $t(F) ? a.value.find((P) => F === P.value)?.value ?? F : a.value.find((P) => qe(F, P.value))?.value ?? F));
388
- }, (y) => [...y.values()]), r = D(() => a.value.filter((y) => y.selectable)), o = D(() => M(n).filter((y) => y.selectable)), f = D(() => {
387
+ return w ? new Set(J(y).map((C) => a.value.find((P) => w(C, P.value))?.value ?? C)) : new Set(J(y).map((C) => $t(C) ? a.value.find((P) => C === P.value)?.value ?? C : a.value.find((P) => qe(C, P.value))?.value ?? C));
388
+ }, (y) => [...y.values()]), r = D(() => a.value.filter((y) => y.selectable)), o = D(() => M(n).filter((y) => y.selectable)), c = D(() => {
389
389
  if (typeof e.selectStrategy == "object") return e.selectStrategy;
390
390
  switch (e.selectStrategy) {
391
391
  case "single":
@@ -403,16 +403,16 @@ function Ia(e, t) {
403
403
  return J(y).some((w) => l.value.has(w.value));
404
404
  }
405
405
  function h(y, w) {
406
- const F = f.value.select({
406
+ const C = c.value.select({
407
407
  items: y,
408
408
  value: w,
409
409
  selected: new Set(l.value)
410
410
  });
411
- l.value = F;
411
+ l.value = C;
412
412
  }
413
- function s(y, w, F) {
413
+ function s(y, w, C) {
414
414
  const P = [], R = M(n);
415
- if (w = w ?? R.findIndex((H) => H.value === y.value), e.selectStrategy !== "single" && F?.shiftKey && d.value !== null) {
415
+ if (w = w ?? R.findIndex((H) => H.value === y.value), e.selectStrategy !== "single" && C?.shiftKey && d.value !== null) {
416
416
  const [H, S] = [d.value, w].sort((p, g) => p - g);
417
417
  P.push(...R.slice(H, S + 1).filter((p) => p.selectable));
418
418
  } else
@@ -420,7 +420,7 @@ function Ia(e, t) {
420
420
  h(P, !v([y]));
421
421
  }
422
422
  function i(y) {
423
- const w = f.value.selectAll({
423
+ const w = c.value.selectAll({
424
424
  value: y,
425
425
  allItems: r.value,
426
426
  currentPage: o.value,
@@ -428,23 +428,23 @@ function Ia(e, t) {
428
428
  });
429
429
  l.value = w;
430
430
  }
431
- const b = D(() => l.value.size > 0), c = D(() => {
432
- const y = f.value.allSelected({
431
+ const b = D(() => l.value.size > 0), f = D(() => {
432
+ const y = c.value.allSelected({
433
433
  allItems: r.value,
434
434
  currentPage: o.value
435
435
  });
436
436
  return !!y.length && v(y);
437
- }), u = _(() => f.value.showSelectAll), I = {
437
+ }), u = _(() => c.value.showSelectAll), I = {
438
438
  toggleSelect: s,
439
439
  select: h,
440
440
  selectAll: i,
441
441
  isSelected: v,
442
442
  isSomeSelected: m,
443
443
  someSelected: b,
444
- allSelected: c,
444
+ allSelected: f,
445
445
  showSelectAll: u,
446
446
  lastSelectedIndex: d,
447
- selectStrategy: f
447
+ selectStrategy: c
448
448
  };
449
449
  return ee(ot, I), I;
450
450
  }
@@ -479,7 +479,7 @@ function Va(e) {
479
479
  mustSort: n
480
480
  };
481
481
  }
482
- function Fa(e, t) {
482
+ function Ca(e, t) {
483
483
  if (!Ht(e))
484
484
  return {
485
485
  active: !!e
@@ -494,7 +494,7 @@ function Fa(e, t) {
494
494
  mode: r ? n === "append" ? "prepend" : "append" : n
495
495
  };
496
496
  }
497
- function Ta(e) {
497
+ function Fa(e) {
498
498
  const {
499
499
  initialSortOrder: t,
500
500
  sortBy: a,
@@ -507,14 +507,14 @@ function Ta(e) {
507
507
  let s = a.value.map((u) => ({
508
508
  ...u
509
509
  })) ?? [];
510
- const i = s.find((u) => u.key === v.key), b = t.value, c = t.value === "desc" ? "asc" : "desc";
510
+ const i = s.find((u) => u.key === v.key), b = t.value, f = t.value === "desc" ? "asc" : "desc";
511
511
  if (i)
512
- i.order === c ? h || n.value && s.length === 1 ? i.order = t.value : s = s.filter((u) => u.key !== v.key) : i.order = c;
512
+ i.order === f ? h || n.value && s.length === 1 ? i.order = t.value : s = s.filter((u) => u.key !== v.key) : i.order = f;
513
513
  else {
514
514
  const {
515
515
  active: u,
516
516
  mode: I
517
- } = Fa(l.value, m);
517
+ } = Ca(l.value, m);
518
518
  u ? I === "prepend" ? s.unshift({
519
519
  key: v.key,
520
520
  order: b
@@ -528,13 +528,13 @@ function Ta(e) {
528
528
  }
529
529
  a.value = s, r && (r.value = 1);
530
530
  };
531
- function f(v) {
531
+ function c(v) {
532
532
  return !!a.value.find((m) => m.key === v.key);
533
533
  }
534
534
  const d = {
535
535
  sortBy: a,
536
536
  toggleSort: o,
537
- isSorted: f
537
+ isSorted: c
538
538
  };
539
539
  return ee(it, d), d;
540
540
  }
@@ -543,7 +543,7 @@ function ut() {
543
543
  if (!e) throw new Error("Missing sort!");
544
544
  return e;
545
545
  }
546
- function Ca(e, t, a, n) {
546
+ function Ta(e, t, a, n) {
547
547
  const l = te();
548
548
  return {
549
549
  sortedItems: D(() => a.value.length ? _a(t.value, a.value, l.current.value, {
@@ -561,14 +561,14 @@ function _a(e, t, a, n) {
561
561
  sensitivity: "accent",
562
562
  usage: "sort"
563
563
  });
564
- return e.map((o) => [o, n?.transform ? n.transform(o) : o]).sort((o, f) => {
564
+ return e.map((o) => [o, n?.transform ? n.transform(o) : o]).sort((o, c) => {
565
565
  for (let d = 0; d < t.length; d++) {
566
566
  let v = !1;
567
567
  const m = t[d].key, h = t[d].order ?? "asc";
568
568
  if (h === !1) continue;
569
- let s = ve(o[1], m), i = ve(f[1], m), b = o[0].raw, c = f[0].raw;
570
- if (h === "desc" && ([s, i] = [i, s], [b, c] = [c, b]), n?.sortRawFunctions?.[m]) {
571
- const u = n.sortRawFunctions[m](b, c);
569
+ let s = ve(o[1], m), i = ve(c[1], m), b = o[0].raw, f = c[0].raw;
570
+ if (h === "desc" && ([s, i] = [i, s], [b, f] = [f, b]), n?.sortRawFunctions?.[m]) {
571
+ const u = n.sortRawFunctions[m](b, f);
572
572
  if (u == null) continue;
573
573
  if (v = !0, u) return u;
574
574
  }
@@ -582,13 +582,13 @@ function _a(e, t, a, n) {
582
582
  }
583
583
  return 0;
584
584
  }).map((o) => {
585
- let [f] = o;
586
- return f;
585
+ let [c] = o;
586
+ return c;
587
587
  });
588
588
  }
589
589
  function Ba() {
590
590
  const e = q([]);
591
- Ct(() => e.value = []);
591
+ Tt(() => e.value = []);
592
592
  function t(a, n) {
593
593
  e.value[n] = a;
594
594
  }
@@ -672,7 +672,7 @@ const Oa = B({
672
672
  ...Ue({
673
673
  tag: "nav"
674
674
  }),
675
- ...Ce(),
675
+ ...Te(),
676
676
  ...jt({
677
677
  variant: "text"
678
678
  })
@@ -695,10 +695,10 @@ const Oa = B({
695
695
  t: r,
696
696
  n: o
697
697
  } = te(), {
698
- isRtl: f
698
+ isRtl: c
699
699
  } = Gt(), {
700
700
  themeClasses: d
701
- } = Te(e), {
701
+ } = Fe(e), {
702
702
  width: v
703
703
  } = me(), m = fe(-1);
704
704
  Ie(void 0, {
@@ -711,12 +711,12 @@ const Oa = B({
711
711
  const {
712
712
  target: p,
713
713
  contentRect: g
714
- } = S[0], T = p.querySelector(".v-pagination__list > *");
715
- if (!T) return;
716
- const V = g.width, C = T.offsetWidth + parseFloat(getComputedStyle(T).marginRight) * 2;
717
- m.value = c(V, C);
718
- }), s = D(() => parseInt(e.length, 10)), i = D(() => parseInt(e.start, 10)), b = D(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : c(v.value, 58));
719
- function c(S, p) {
714
+ } = S[0], F = p.querySelector(".v-pagination__list > *");
715
+ if (!F) return;
716
+ const V = g.width, T = F.offsetWidth + parseFloat(getComputedStyle(F).marginRight) * 2;
717
+ m.value = f(V, T);
718
+ }), s = D(() => parseInt(e.length, 10)), i = D(() => parseInt(e.start, 10)), b = D(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : f(v.value, 58));
719
+ function f(S, p) {
720
720
  const g = e.showFirstLastPage ? 5 : 3;
721
721
  return Math.max(0, Math.floor(
722
722
  // Round to two decimal places to avoid floating point errors
@@ -729,15 +729,15 @@ const Oa = B({
729
729
  if (b.value === 1) return [l.value];
730
730
  if (s.value <= b.value)
731
731
  return ue(s.value, i.value);
732
- const S = b.value % 2 === 0, p = S ? b.value / 2 : Math.floor(b.value / 2), g = S ? p : p + 1, T = s.value - p;
732
+ const S = b.value % 2 === 0, p = S ? b.value / 2 : Math.floor(b.value / 2), g = S ? p : p + 1, F = s.value - p;
733
733
  if (g - l.value >= 0)
734
734
  return [...ue(Math.max(1, b.value - 1), i.value), e.ellipsis, s.value];
735
- if (l.value - T >= (S ? 1 : 0)) {
736
- const V = b.value - 1, C = s.value - V + i.value;
737
- return [i.value, e.ellipsis, ...ue(V, C)];
735
+ if (l.value - F >= (S ? 1 : 0)) {
736
+ const V = b.value - 1, T = s.value - V + i.value;
737
+ return [i.value, e.ellipsis, ...ue(V, T)];
738
738
  } else {
739
- const V = Math.max(1, b.value - 2), C = V === 1 ? l.value : l.value - Math.ceil(V / 2) + i.value;
740
- return [i.value, e.ellipsis, ...ue(V, C), e.ellipsis, s.value];
739
+ const V = Math.max(1, b.value - 2), T = V === 1 ? l.value : l.value - Math.ceil(V / 2) + i.value;
740
+ return [i.value, e.ellipsis, ...ue(V, T), e.ellipsis, s.value];
741
741
  }
742
742
  });
743
743
  function I(S, p, g) {
@@ -758,8 +758,8 @@ const Oa = B({
758
758
  elevation: _(() => e.elevation)
759
759
  }
760
760
  });
761
- const F = D(() => u.value.map((S, p) => {
762
- const g = (T) => w(T, p);
761
+ const C = D(() => u.value.map((S, p) => {
762
+ const g = (F) => w(F, p);
763
763
  if (typeof S == "string")
764
764
  return {
765
765
  isActive: !1,
@@ -773,9 +773,9 @@ const Oa = B({
773
773
  }
774
774
  };
775
775
  {
776
- const T = S === l.value;
776
+ const F = S === l.value;
777
777
  return {
778
- isActive: T,
778
+ isActive: F,
779
779
  key: S,
780
780
  page: o(S),
781
781
  props: {
@@ -783,9 +783,9 @@ const Oa = B({
783
783
  ellipsis: !1,
784
784
  icon: !0,
785
785
  disabled: !!e.disabled || Number(e.length) < 2,
786
- color: T ? e.activeColor : e.color,
787
- "aria-current": T,
788
- "aria-label": r(T ? e.currentPageAriaLabel : e.pageAriaLabel, S),
786
+ color: F ? e.activeColor : e.color,
787
+ "aria-current": F,
788
+ "aria-label": r(F ? e.currentPageAriaLabel : e.pageAriaLabel, S),
789
789
  onClick: (V) => I(V, S)
790
790
  }
791
791
  };
@@ -794,28 +794,28 @@ const Oa = B({
794
794
  const S = !!e.disabled || l.value <= i.value, p = !!e.disabled || l.value >= i.value + s.value - 1;
795
795
  return {
796
796
  first: e.showFirstLastPage ? {
797
- icon: f.value ? e.lastIcon : e.firstIcon,
797
+ icon: c.value ? e.lastIcon : e.firstIcon,
798
798
  onClick: (g) => I(g, i.value, "first"),
799
799
  disabled: S,
800
800
  "aria-label": r(e.firstAriaLabel),
801
801
  "aria-disabled": S
802
802
  } : void 0,
803
803
  prev: {
804
- icon: f.value ? e.nextIcon : e.prevIcon,
804
+ icon: c.value ? e.nextIcon : e.prevIcon,
805
805
  onClick: (g) => I(g, l.value - 1, "prev"),
806
806
  disabled: S,
807
807
  "aria-label": r(e.previousAriaLabel),
808
808
  "aria-disabled": S
809
809
  },
810
810
  next: {
811
- icon: f.value ? e.prevIcon : e.nextIcon,
811
+ icon: c.value ? e.prevIcon : e.nextIcon,
812
812
  onClick: (g) => I(g, l.value + 1, "next"),
813
813
  disabled: p,
814
814
  "aria-label": r(e.nextAriaLabel),
815
815
  "aria-disabled": p
816
816
  },
817
817
  last: e.showFirstLastPage ? {
818
- icon: f.value ? e.firstIcon : e.lastIcon,
818
+ icon: c.value ? e.firstIcon : e.lastIcon,
819
819
  onClick: (g) => I(g, i.value + s.value - 1, "last"),
820
820
  disabled: p,
821
821
  "aria-label": r(e.lastAriaLabel),
@@ -833,7 +833,7 @@ const Oa = B({
833
833
  return z(() => k(e.tag, {
834
834
  ref: h,
835
835
  class: K(["v-pagination", d.value, e.class]),
836
- style: Fe(e.style),
836
+ style: Ce(e.style),
837
837
  role: "navigation",
838
838
  "aria-label": r(e.ariaLabel),
839
839
  onKeydown: H,
@@ -853,7 +853,7 @@ const Oa = B({
853
853
  "data-test": "v-pagination-prev"
854
854
  }, [a.prev ? a.prev(P.value.prev) : k(U, E({
855
855
  _as: "VPaginationBtn"
856
- }, P.value.prev), null)]), F.value.map((S, p) => x("li", {
856
+ }, P.value.prev), null)]), C.value.map((S, p) => x("li", {
857
857
  key: S.key,
858
858
  class: K(["v-pagination__item", {
859
859
  "v-pagination__item--is-active": S.isActive
@@ -953,7 +953,7 @@ const Oa = B({
953
953
  page: l,
954
954
  pageCount: r,
955
955
  startIndex: o,
956
- stopIndex: f,
956
+ stopIndex: c,
957
957
  itemsLength: d,
958
958
  itemsPerPage: v,
959
959
  setItemsPerPage: m
@@ -981,7 +981,7 @@ const Oa = B({
981
981
  hideDetails: !0
982
982
  }, null)]), x("div", {
983
983
  class: "v-data-table-footer__info"
984
- }, [x("div", null, [n(e.pageText, d.value ? o.value + 1 : 0, f.value, d.value)])]), x("div", {
984
+ }, [x("div", null, [n(e.pageText, d.value ? o.value + 1 : 0, c.value, d.value)])]), x("div", {
985
985
  class: "v-data-table-footer__pagination"
986
986
  }, [k($e, E({
987
987
  modelValue: l.value,
@@ -1116,9 +1116,9 @@ function Oe(e) {
1116
1116
  function Ra(e) {
1117
1117
  let t = !1;
1118
1118
  function a(r, o) {
1119
- let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1119
+ let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1120
1120
  if (r)
1121
- if (f !== "none" && (r.fixed = f), r.fixed === !0 && (r.fixed = "start"), r.fixed === o)
1121
+ if (c !== "none" && (r.fixed = c), r.fixed === !0 && (r.fixed = "start"), r.fixed === o)
1122
1122
  if (r.children)
1123
1123
  if (o === "start")
1124
1124
  for (let d = r.children.length - 1; d >= 0; d--)
@@ -1175,14 +1175,14 @@ function $a(e, t) {
1175
1175
  const l = La(e);
1176
1176
  for (; l.size() > 0; ) {
1177
1177
  let o = l.count();
1178
- const f = [];
1178
+ const c = [];
1179
1179
  let d = 1;
1180
1180
  for (; o > 0; ) {
1181
1181
  const {
1182
1182
  element: v,
1183
1183
  priority: m
1184
1184
  } = l.dequeue(), h = t - n - Oe(v);
1185
- if (f.push({
1185
+ if (c.push({
1186
1186
  ...v,
1187
1187
  rowspan: h ?? 1,
1188
1188
  colspan: v.children ? Ve(v).length : 1
@@ -1193,7 +1193,7 @@ function $a(e, t) {
1193
1193
  }
1194
1194
  d += 1, o -= 1;
1195
1195
  }
1196
- n += 1, a.push(f);
1196
+ n += 1, a.push(c);
1197
1197
  }
1198
1198
  return {
1199
1199
  columns: e.map((o) => Ve(o)).flat(),
@@ -1220,9 +1220,9 @@ function bt(e) {
1220
1220
  function Ha(e, t) {
1221
1221
  const a = q([]), n = q([]), l = q({}), r = q({}), o = q({});
1222
1222
  _t(() => {
1223
- const v = (e.headers || Object.keys(e.items[0] ?? {}).map((c) => ({
1224
- key: c,
1225
- title: Bt(c)
1223
+ const v = (e.headers || Object.keys(e.items[0] ?? {}).map((f) => ({
1224
+ key: f,
1225
+ title: Bt(f)
1226
1226
  }))).slice(), m = vt(v);
1227
1227
  t?.groupBy?.value.length && !m.has("data-table-group") && v.unshift({
1228
1228
  key: "data-table-group",
@@ -1234,20 +1234,20 @@ function Ha(e, t) {
1234
1234
  });
1235
1235
  const h = bt(v);
1236
1236
  Ra(h);
1237
- const s = Math.max(...h.map((c) => Oe(c))) + 1, i = $a(h, s);
1237
+ const s = Math.max(...h.map((f) => Oe(f))) + 1, i = $a(h, s);
1238
1238
  a.value = i.headers, n.value = i.columns;
1239
1239
  const b = i.headers.flat(1);
1240
- for (const c of b)
1241
- c.key && (c.sortable && (c.sort && (l.value[c.key] = c.sort), c.sortRaw && (r.value[c.key] = c.sortRaw)), c.filter && (o.value[c.key] = c.filter));
1240
+ for (const f of b)
1241
+ f.key && (f.sortable && (f.sort && (l.value[f.key] = f.sort), f.sortRaw && (r.value[f.key] = f.sortRaw)), f.filter && (o.value[f.key] = f.filter));
1242
1242
  });
1243
- const f = {
1243
+ const c = {
1244
1244
  headers: a,
1245
1245
  columns: n,
1246
1246
  sortFunctions: l,
1247
1247
  sortRawFunctions: r,
1248
1248
  filterFunctions: o
1249
1249
  };
1250
- return ee(ct, f), f;
1250
+ return ee(ct, c), c;
1251
1251
  }
1252
1252
  function ye() {
1253
1253
  const e = Y(ct);
@@ -1294,7 +1294,7 @@ const yt = B({
1294
1294
  sortBy: r,
1295
1295
  isSorted: o
1296
1296
  } = ut(), {
1297
- someSelected: f,
1297
+ someSelected: c,
1298
1298
  allSelected: d,
1299
1299
  selectAll: v,
1300
1300
  showSelectAll: m
@@ -1306,19 +1306,19 @@ const yt = B({
1306
1306
  } = Qt(e);
1307
1307
  function b(p, g) {
1308
1308
  if (!(e.sticky || e.fixedHeader) && !p.fixed) return;
1309
- const T = typeof p.fixed == "string" ? p.fixed : p.fixed ? "start" : "none";
1309
+ const F = typeof p.fixed == "string" ? p.fixed : p.fixed ? "start" : "none";
1310
1310
  return {
1311
1311
  position: "sticky",
1312
- left: T === "start" ? $(p.fixedOffset) : void 0,
1313
- right: T === "end" ? $(p.fixedEndOffset) : void 0,
1312
+ left: F === "start" ? $(p.fixedOffset) : void 0,
1313
+ right: F === "end" ? $(p.fixedEndOffset) : void 0,
1314
1314
  top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
1315
1315
  };
1316
1316
  }
1317
- function c(p, g) {
1317
+ function f(p, g) {
1318
1318
  p.key === "Enter" && !e.disableSort && l(g, p);
1319
1319
  }
1320
1320
  function u(p) {
1321
- switch (r.value.find((T) => T.key === p.key)?.order) {
1321
+ switch (r.value.find((F) => F.key === p.key)?.order) {
1322
1322
  case "asc":
1323
1323
  return e.sortAscIcon;
1324
1324
  case "desc":
@@ -1332,14 +1332,14 @@ const yt = B({
1332
1332
  backgroundColorStyles: y
1333
1333
  } = Ye(() => e.color), {
1334
1334
  displayClasses: w,
1335
- mobile: F
1335
+ mobile: C
1336
1336
  } = me(e), P = D(() => ({
1337
1337
  headers: s.value,
1338
1338
  columns: h.value,
1339
1339
  toggleSort: l,
1340
1340
  isSorted: o,
1341
1341
  sortBy: r.value,
1342
- someSelected: f.value,
1342
+ someSelected: c.value,
1343
1343
  allSelected: d.value,
1344
1344
  selectAll: v,
1345
1345
  getSortIcon: u
@@ -1348,10 +1348,10 @@ const yt = B({
1348
1348
  }, w.value, i.value]), H = (p) => {
1349
1349
  let {
1350
1350
  column: g,
1351
- x: T,
1351
+ x: F,
1352
1352
  y: V
1353
1353
  } = p;
1354
- const C = g.key === "data-table-select" || g.key === "data-table-expand", L = g.key === "data-table-group" && g.width === 0 && !g.title, Z = E(e.headerProps ?? {}, g.headerProps ?? {});
1354
+ const T = g.key === "data-table-select" || g.key === "data-table-expand", L = g.key === "data-table-group" && g.width === 0 && !g.title, Z = E(e.headerProps ?? {}, g.headerProps ?? {});
1355
1355
  return k(le, E({
1356
1356
  tag: "th",
1357
1357
  align: g.align,
@@ -1372,11 +1372,11 @@ const yt = B({
1372
1372
  nowrap: g.nowrap,
1373
1373
  lastFixed: g.lastFixed,
1374
1374
  firstFixedEnd: g.firstFixedEnd,
1375
- noPadding: C,
1375
+ noPadding: T,
1376
1376
  empty: L,
1377
1377
  tabindex: g.sortable ? 0 : void 0,
1378
1378
  onClick: g.sortable ? (O) => l(g, O) : void 0,
1379
- onKeydown: g.sortable ? (O) => c(O, g) : void 0
1379
+ onKeydown: g.sortable ? (O) => f(O, g) : void 0
1380
1380
  }, Z), {
1381
1381
  default: () => {
1382
1382
  const O = `header.${g.key}`, W = {
@@ -1385,7 +1385,7 @@ const yt = B({
1385
1385
  isSorted: o,
1386
1386
  toggleSort: l,
1387
1387
  sortBy: r.value,
1388
- someSelected: f.value,
1388
+ someSelected: c.value,
1389
1389
  allSelected: d.value,
1390
1390
  getSortIcon: u
1391
1391
  };
@@ -1393,7 +1393,7 @@ const yt = B({
1393
1393
  color: e.color,
1394
1394
  density: e.density,
1395
1395
  modelValue: d.value,
1396
- indeterminate: f.value && !d.value,
1396
+ indeterminate: c.value && !d.value,
1397
1397
  "onUpdate:modelValue": v
1398
1398
  }, null)) : x("div", {
1399
1399
  class: "v-data-table-header__content"
@@ -1404,21 +1404,21 @@ const yt = B({
1404
1404
  }, null), e.multiSort && o(g) && x("div", {
1405
1405
  key: "badge",
1406
1406
  class: K(["v-data-table-header__sort-badge", ...I.value]),
1407
- style: Fe(y.value)
1407
+ style: Ce(y.value)
1408
1408
  }, [r.value.findIndex((ae) => ae.key === g.key) + 1])]);
1409
1409
  }
1410
1410
  });
1411
1411
  }, S = () => {
1412
- const p = D(() => h.value.filter((V) => V?.sortable && !e.disableSort)), g = h.value.find((V) => V.key === "data-table-select"), T = D({
1412
+ const p = D(() => h.value.filter((V) => V?.sortable && !e.disableSort)), g = h.value.find((V) => V.key === "data-table-select"), F = D({
1413
1413
  get: () => p.value.filter((V) => {
1414
1414
  let {
1415
- key: C
1415
+ key: T
1416
1416
  } = V;
1417
- return r.value.some((L) => L.key === C);
1417
+ return r.value.some((L) => L.key === T);
1418
1418
  }),
1419
1419
  set: (V) => {
1420
- const C = J(V), L = r.value.map((O) => O.key);
1421
- C.filter((O) => {
1420
+ const T = J(V), L = r.value.map((O) => O.key);
1421
+ T.filter((O) => {
1422
1422
  let {
1423
1423
  key: W
1424
1424
  } = O;
@@ -1427,7 +1427,7 @@ const yt = B({
1427
1427
  let {
1428
1428
  key: W
1429
1429
  } = O;
1430
- return C.some((ae) => ae.key === W);
1430
+ return T.some((ae) => ae.key === W);
1431
1431
  }));
1432
1432
  }
1433
1433
  });
@@ -1439,8 +1439,8 @@ const yt = B({
1439
1439
  default: () => [x("div", {
1440
1440
  class: "v-data-table-header__content"
1441
1441
  }, [k(Ze, {
1442
- modelValue: T.value,
1443
- "onUpdate:modelValue": (V) => T.value = V,
1442
+ modelValue: F.value,
1443
+ "onUpdate:modelValue": (V) => F.value = V,
1444
1444
  chips: !0,
1445
1445
  color: e.color,
1446
1446
  class: "v-data-table__td-sort-select",
@@ -1457,22 +1457,22 @@ const yt = B({
1457
1457
  color: e.color,
1458
1458
  density: "compact",
1459
1459
  modelValue: d.value,
1460
- indeterminate: f.value && !d.value,
1460
+ indeterminate: c.value && !d.value,
1461
1461
  "onUpdate:modelValue": () => v(!d.value)
1462
1462
  }, null) : void 0,
1463
1463
  chip: (V) => {
1464
1464
  let {
1465
- item: C
1465
+ item: T
1466
1466
  } = V;
1467
1467
  return k(na, {
1468
- onClick: C.raw.sortable ? () => l(C.raw, void 0, !0) : void 0,
1468
+ onClick: T.raw.sortable ? () => l(T.raw, void 0, !0) : void 0,
1469
1469
  onMousedown: (L) => {
1470
1470
  L.preventDefault(), L.stopPropagation();
1471
1471
  }
1472
1472
  }, {
1473
- default: () => [C.title, k(Le, {
1474
- class: K(["v-data-table__td-sort-icon", o(C.raw) && "v-data-table__td-sort-icon-active"]),
1475
- icon: u(C.raw),
1473
+ default: () => [T.title, k(Le, {
1474
+ class: K(["v-data-table__td-sort-icon", o(T.raw) && "v-data-table__td-sort-icon-active"]),
1475
+ icon: u(T.raw),
1476
1476
  size: "small"
1477
1477
  }, null)]
1478
1478
  });
@@ -1480,8 +1480,8 @@ const yt = B({
1480
1480
  })])]
1481
1481
  });
1482
1482
  };
1483
- z(() => F.value ? x("tr", null, [k(S, null, null)]) : x(X, null, [a.headers ? a.headers(P.value) : s.value.map((p, g) => x("tr", null, [p.map((T, V) => k(H, {
1484
- column: T,
1483
+ z(() => C.value ? x("tr", null, [k(S, null, null)]) : x(X, null, [a.headers ? a.headers(P.value) : s.value.map((p, g) => x("tr", null, [p.map((F, V) => k(H, {
1484
+ column: F,
1485
1485
  x: V,
1486
1486
  y: g
1487
1487
  }, null))])), e.loading && x("tr", {
@@ -1525,7 +1525,7 @@ const yt = B({
1525
1525
  extractRows: r
1526
1526
  } = at(), {
1527
1527
  isSelected: o,
1528
- isSomeSelected: f,
1528
+ isSomeSelected: c,
1529
1529
  select: d
1530
1530
  } = be(), {
1531
1531
  columns: v
@@ -1557,11 +1557,11 @@ const yt = B({
1557
1557
  }, null), x("span", null, [e.item.value]), x("span", null, [Ee("("), m.value.length, Ee(")")])]
1558
1558
  });
1559
1559
  } else if (s.key === "data-table-select") {
1560
- const i = m.value.filter((I) => I.selectable), b = i.length > 0 && o(i), c = f(i) && !b, u = (I) => d(i, I);
1560
+ const i = m.value.filter((I) => I.selectable), b = i.length > 0 && o(i), f = c(i) && !b, u = (I) => d(i, I);
1561
1561
  return a["data-table-select"]?.({
1562
1562
  props: {
1563
1563
  modelValue: b,
1564
- indeterminate: c,
1564
+ indeterminate: f,
1565
1565
  "onUpdate:modelValue": u
1566
1566
  }
1567
1567
  }) ?? k(le, {
@@ -1572,7 +1572,7 @@ const yt = B({
1572
1572
  density: e.density,
1573
1573
  disabled: i.length === 0,
1574
1574
  modelValue: b,
1575
- indeterminate: c,
1575
+ indeterminate: f,
1576
1576
  "onUpdate:modelValue": u
1577
1577
  }, null)]
1578
1578
  });
@@ -1611,7 +1611,7 @@ const yt = B({
1611
1611
  } = me(e, "v-data-table__tr"), {
1612
1612
  isSelected: r,
1613
1613
  toggleSelect: o,
1614
- someSelected: f,
1614
+ someSelected: c,
1615
1615
  allSelected: d,
1616
1616
  selectAll: v
1617
1617
  } = be(), {
@@ -1622,7 +1622,7 @@ const yt = B({
1622
1622
  sortBy: i,
1623
1623
  isSorted: b
1624
1624
  } = ut(), {
1625
- columns: c
1625
+ columns: f
1626
1626
  } = ye();
1627
1627
  z(() => x("tr", {
1628
1628
  class: K(["v-data-table__tr", {
@@ -1631,8 +1631,8 @@ const yt = B({
1631
1631
  onClick: e.onClick,
1632
1632
  onContextmenu: e.onContextmenu,
1633
1633
  onDblclick: e.onDblclick
1634
- }, [e.item && c.value.map((u, I) => {
1635
- const y = e.item, w = `item.${u.key}`, F = `header.${u.key}`, P = {
1634
+ }, [e.item && f.value.map((u, I) => {
1635
+ const y = e.item, w = `item.${u.key}`, C = `header.${u.key}`, P = {
1636
1636
  index: e.index,
1637
1637
  item: y.raw,
1638
1638
  internalItem: y,
@@ -1648,7 +1648,7 @@ const yt = B({
1648
1648
  isSorted: b,
1649
1649
  toggleSort: s,
1650
1650
  sortBy: i.value,
1651
- someSelected: f.value,
1651
+ someSelected: c.value,
1652
1652
  allSelected: d.value,
1653
1653
  getSortIcon: () => ""
1654
1654
  }, H = typeof e.cellProps == "function" ? e.cellProps({
@@ -1714,12 +1714,12 @@ const yt = B({
1714
1714
  onClick: oe(() => h(y), ["stop"])
1715
1715
  }, null);
1716
1716
  if (a[w] && !l.value) return a[w](P);
1717
- const T = Ot(P.value);
1717
+ const F = Ot(P.value);
1718
1718
  return l.value ? x(X, null, [x("div", {
1719
1719
  class: "v-data-table__td-title"
1720
- }, [a[F]?.(R) ?? u.title]), x("div", {
1720
+ }, [a[C]?.(R) ?? u.title]), x("div", {
1721
1721
  class: "v-data-table__td-value"
1722
- }, [a[w]?.(P) ?? T])]) : T;
1722
+ }, [a[w]?.(P) ?? F])]) : F;
1723
1723
  }
1724
1724
  });
1725
1725
  })]));
@@ -1759,7 +1759,7 @@ const yt = B({
1759
1759
  } = ye(), {
1760
1760
  expandOnClick: r,
1761
1761
  toggleExpand: o,
1762
- isExpanded: f
1762
+ isExpanded: c
1763
1763
  } = et(), {
1764
1764
  isSelected: d,
1765
1765
  toggleSelect: v
@@ -1783,13 +1783,13 @@ const yt = B({
1783
1783
  key: "no-data"
1784
1784
  }, [x("td", {
1785
1785
  colspan: l.value.length
1786
- }, [n["no-data"]?.() ?? s(e.noDataText)])]) : x(X, null, [e.items.map((c, u) => {
1787
- if (c.type === "group") {
1786
+ }, [n["no-data"]?.() ?? s(e.noDataText)])]) : x(X, null, [e.items.map((f, u) => {
1787
+ if (f.type === "group") {
1788
1788
  const w = {
1789
1789
  index: u,
1790
- item: c,
1790
+ item: f,
1791
1791
  columns: l.value,
1792
- isExpanded: f,
1792
+ isExpanded: c,
1793
1793
  toggleExpand: o,
1794
1794
  isSelected: d,
1795
1795
  toggleSelect: v,
@@ -1797,37 +1797,37 @@ const yt = B({
1797
1797
  isGroupOpen: h
1798
1798
  };
1799
1799
  return n["group-header"] ? n["group-header"](w) : k(Ga, E({
1800
- key: `group-header_${c.id}`,
1801
- item: c
1800
+ key: `group-header_${f.id}`,
1801
+ item: f
1802
1802
  }, Re(a, ":groupHeader", () => w), b), n);
1803
1803
  }
1804
- if (c.type === "group-summary") {
1804
+ if (f.type === "group-summary") {
1805
1805
  const w = {
1806
1806
  index: u,
1807
- item: c,
1807
+ item: f,
1808
1808
  columns: l.value,
1809
1809
  toggleGroup: m
1810
1810
  };
1811
1811
  return n["group-summary"]?.(w) ?? "";
1812
1812
  }
1813
1813
  const I = {
1814
- index: c.virtualIndex ?? u,
1815
- item: c.raw,
1816
- internalItem: c,
1814
+ index: f.virtualIndex ?? u,
1815
+ item: f.raw,
1816
+ internalItem: f,
1817
1817
  columns: l.value,
1818
- isExpanded: f,
1818
+ isExpanded: c,
1819
1819
  toggleExpand: o,
1820
1820
  isSelected: d,
1821
1821
  toggleSelect: v
1822
1822
  }, y = {
1823
1823
  ...I,
1824
1824
  props: E({
1825
- key: `item_${c.key ?? c.index}`,
1825
+ key: `item_${f.key ?? f.index}`,
1826
1826
  onClick: r.value ? () => {
1827
- o(c);
1827
+ o(f);
1828
1828
  } : void 0,
1829
1829
  index: u,
1830
- item: c,
1830
+ item: f,
1831
1831
  color: e.color,
1832
1832
  cellProps: e.cellProps,
1833
1833
  collapseIcon: e.collapseIcon,
@@ -1842,7 +1842,7 @@ const yt = B({
1842
1842
  };
1843
1843
  return x(X, {
1844
1844
  key: y.props.key
1845
- }, [n.item ? n.item(y) : k(Ma, y.props, n), f(c) && n["expanded-row"]?.(I)]);
1845
+ }, [n.item ? n.item(y) : k(Ma, y.props, n), c(f) && n["expanded-row"]?.(I)]);
1846
1846
  })]);
1847
1847
  }), {};
1848
1848
  }
@@ -1859,7 +1859,7 @@ const yt = B({
1859
1859
  ...Qe(),
1860
1860
  ...re(),
1861
1861
  ...Ue(),
1862
- ...Ce()
1862
+ ...Te()
1863
1863
  }, "VTable"), je = j()({
1864
1864
  name: "VTable",
1865
1865
  props: St(),
@@ -1870,7 +1870,7 @@ const yt = B({
1870
1870
  } = t;
1871
1871
  const {
1872
1872
  themeClasses: l
1873
- } = Te(e), {
1873
+ } = Fe(e), {
1874
1874
  densityClasses: r
1875
1875
  } = Zt(e);
1876
1876
  return z(() => k(e.tag, {
@@ -1884,7 +1884,7 @@ const yt = B({
1884
1884
  "v-table--striped-even": e.striped === "even",
1885
1885
  "v-table--striped-odd": e.striped === "odd"
1886
1886
  }, l.value, r.value, e.class]),
1887
- style: Fe(e.style)
1887
+ style: Ce(e.style)
1888
1888
  }, {
1889
1889
  default: () => [a.top?.(), a.default ? x("div", {
1890
1890
  class: "v-table__wrapper",
@@ -1912,7 +1912,7 @@ const yt = B({
1912
1912
  returnObject: Boolean
1913
1913
  }, "DataTable-items");
1914
1914
  function Wa(e, t, a, n) {
1915
- const l = e.returnObject ? t : de(t, e.itemValue), r = de(t, e.itemSelectable, !0), o = n.reduce((f, d) => (d.key != null && (f[d.key] = de(t, d.value)), f), {});
1915
+ const l = e.returnObject ? t : de(t, e.itemValue), r = de(t, e.itemSelectable, !0), o = n.reduce((c, d) => (d.key != null && (c[d.key] = de(t, d.value)), c), {});
1916
1916
  return {
1917
1917
  type: "item",
1918
1918
  key: e.returnObject ? de(t, e.itemValue) : l,
@@ -1974,7 +1974,7 @@ const qa = B({
1974
1974
  } = ca(e), {
1975
1975
  initialSortOrder: r,
1976
1976
  sortBy: o,
1977
- multiSort: f,
1977
+ multiSort: c,
1978
1978
  mustSort: d
1979
1979
  } = Va(e), {
1980
1980
  page: v,
@@ -1985,7 +1985,7 @@ const qa = B({
1985
1985
  columns: s,
1986
1986
  headers: i,
1987
1987
  sortFunctions: b,
1988
- sortRawFunctions: c,
1988
+ sortRawFunctions: f,
1989
1989
  filterFunctions: u
1990
1990
  } = Ha(e, {
1991
1991
  groupBy: l,
@@ -1999,11 +1999,11 @@ const qa = B({
1999
1999
  transform: (N) => N.columns,
2000
2000
  customKeyFilter: u
2001
2001
  }), {
2002
- toggleSort: F
2003
- } = Ta({
2002
+ toggleSort: C
2003
+ } = Fa({
2004
2004
  initialSortOrder: r,
2005
2005
  sortBy: o,
2006
- multiSort: f,
2006
+ multiSort: c,
2007
2007
  mustSort: d,
2008
2008
  page: v
2009
2009
  }), {
@@ -2018,32 +2018,32 @@ const qa = B({
2018
2018
  disableSort: h
2019
2019
  }), {
2020
2020
  sortedItems: g
2021
- } = Ca(e, w, P, {
2021
+ } = Ta(e, w, P, {
2022
2022
  transform: (N) => ({
2023
2023
  ...N.raw,
2024
2024
  ...N.columns
2025
2025
  }),
2026
2026
  sortFunctions: b,
2027
- sortRawFunctions: c
2028
- }), T = D(() => e.pageBy === "auto" ? e.groupBy.length ? "group" : "item" : e.pageBy), {
2027
+ sortRawFunctions: f
2028
+ }), F = D(() => e.pageBy === "auto" ? e.groupBy.length ? "group" : "item" : e.pageBy), {
2029
2029
  pageCount: V,
2030
- setItemsPerPage: C,
2030
+ setItemsPerPage: T,
2031
2031
  paginatedItems: L
2032
2032
  } = Sa({
2033
- pageBy: T,
2033
+ pageBy: F,
2034
2034
  sortedItems: g,
2035
2035
  paginate: (N) => {
2036
2036
  const pe = D(() => M(N).length), {
2037
2037
  startIndex: xe,
2038
2038
  stopIndex: Se,
2039
2039
  pageCount: Vt,
2040
- setItemsPerPage: Ft
2040
+ setItemsPerPage: Ct
2041
2041
  } = ha({
2042
2042
  page: v,
2043
2043
  itemsPerPage: m,
2044
2044
  itemsLength: pe
2045
2045
  }), {
2046
- paginatedItems: Tt
2046
+ paginatedItems: Ft
2047
2047
  } = xa({
2048
2048
  items: N,
2049
2049
  startIndex: xe,
@@ -2051,9 +2051,9 @@ const qa = B({
2051
2051
  itemsPerPage: m
2052
2052
  });
2053
2053
  return {
2054
- paginatedItems: Tt,
2054
+ paginatedItems: Ft,
2055
2055
  pageCount: Vt,
2056
- setItemsPerPage: Ft
2056
+ setItemsPerPage: Ct
2057
2057
  };
2058
2058
  },
2059
2059
  group: (N) => ga(N, l, R, () => !!n["group-summary"])
@@ -2090,8 +2090,8 @@ const qa = B({
2090
2090
  itemsPerPage: m.value,
2091
2091
  sortBy: o.value,
2092
2092
  pageCount: V.value,
2093
- toggleSort: F,
2094
- setItemsPerPage: C,
2093
+ toggleSort: C,
2094
+ setItemsPerPage: T,
2095
2095
  someSelected: wt.value,
2096
2096
  allSelected: kt.value,
2097
2097
  isSelected: O,
@@ -2206,7 +2206,7 @@ const Ya = B({
2206
2206
  },
2207
2207
  ...aa(),
2208
2208
  ...Xe(),
2209
- ...Ce()
2209
+ ...Te()
2210
2210
  }, "VSkeletonLoader"), ln = j()({
2211
2211
  name: "VSkeletonLoader",
2212
2212
  inheritAttrs: !1,
@@ -2222,10 +2222,10 @@ const Ya = B({
2222
2222
  } = Ye(() => e.color), {
2223
2223
  dimensionStyles: o
2224
2224
  } = ea(e), {
2225
- elevationClasses: f
2225
+ elevationClasses: c
2226
2226
  } = ta(e), {
2227
2227
  themeClasses: d
2228
- } = Te(e), {
2228
+ } = Fe(e), {
2229
2229
  t: v
2230
2230
  } = te(), m = D(() => he(J(e.type).join(",")));
2231
2231
  return z(() => {
@@ -2237,7 +2237,7 @@ const Ya = B({
2237
2237
  return h ? x("div", E({
2238
2238
  class: ["v-skeleton-loader", {
2239
2239
  "v-skeleton-loader--boilerplate": e.boilerplate
2240
- }, d.value, l.value, f.value],
2240
+ }, d.value, l.value, c.value],
2241
2241
  style: [r.value, o.value]
2242
2242
  }, s, a), [m.value]) : x(X, null, [n.default?.()]);
2243
2243
  }), {};
@@ -2262,14 +2262,14 @@ function Za(e, t, a) {
2262
2262
  function rn() {
2263
2263
  const { advancedFiltersState: e, hardFiltersState: t } = sa(), a = Y("table_props"), n = fe(), l = fe();
2264
2264
  function r(s, i) {
2265
- const b = Array.isArray(i) ? i : [i], c = ce(b[0]).startOf("day").isSameOrBefore(ce(s).format()), u = ce(b[b.length - 1]).endOf("day").isSameOrAfter(ce(s).format());
2266
- return c && u;
2265
+ const b = Array.isArray(i) ? i : [i], f = ce(b[0]).startOf("day").isSameOrBefore(ce(s).format()), u = ce(b[b.length - 1]).endOf("day").isSameOrAfter(ce(s).format());
2266
+ return f && u;
2267
2267
  }
2268
2268
  function o(s, i) {
2269
2269
  return Array.isArray(i) ? i.map((b) => b.toString().toLowerCase()).includes(s?.toString().toLowerCase()) : s?.toString().toLowerCase().includes(i.toString().toLowerCase());
2270
2270
  }
2271
- function f(s, i, b, c) {
2272
- switch (console.log(s, i, b, c), c.advancedFilter?.component) {
2271
+ function c(s, i, b, f) {
2272
+ switch (f.advancedFilter?.component) {
2273
2273
  case "datepicker":
2274
2274
  return r(s, i);
2275
2275
  case "comparison":
@@ -2279,18 +2279,18 @@ function rn() {
2279
2279
  }
2280
2280
  }
2281
2281
  function d(s, i) {
2282
- const b = Object.values(i).filter((c) => c.args).map((c) => c.args).reduce((c, u) => ({ ...c, ...u }), {});
2282
+ const b = Object.values(i).filter((f) => f.args).map((f) => f.args).reduce((f, u) => ({ ...f, ...u }), {});
2283
2283
  return { ...s, ...b };
2284
2284
  }
2285
2285
  function v(s, i) {
2286
- return i.split(".").reduce((b, c) => b && b[c], s);
2286
+ return i.split(".").reduce((b, f) => b && b[f], s);
2287
2287
  }
2288
2288
  function m(s, i, b) {
2289
- const c = Ne(s), u = b.advancedFilter?.filterReturnValue;
2290
- return typeof u == "function" && (c[i] = u({
2289
+ const f = Ne(s), u = b.advancedFilter?.filterReturnValue;
2290
+ return typeof u == "function" && (f[i] = u({
2291
2291
  value: s[i],
2292
2292
  item: s
2293
- })), v(c, i);
2293
+ })), v(f, i);
2294
2294
  }
2295
2295
  function h(s, i) {
2296
2296
  return s.find((b) => (b.advancedFilter?.key ?? b.key) === i);
@@ -2308,22 +2308,22 @@ function rn() {
2308
2308
  l.value = s;
2309
2309
  return;
2310
2310
  }
2311
- const b = Object.entries(i).reduce((c, [u, I]) => {
2311
+ const b = Object.entries(i).reduce((f, [u, I]) => {
2312
2312
  const { value: y, comparison: w = "=" } = I;
2313
- if (!y) return c;
2314
- const F = h(a.headers, u);
2315
- if (!F) return c;
2316
- const P = typeof F.advancedFilter?.customFilterFn == "function" ? F.advancedFilter.customFilterFn : null;
2317
- return c.push({ key: u, filterValue: y, filterComparison: w, header: F, customFilterFn: P }), c;
2313
+ if (!y) return f;
2314
+ const C = h(a.headers, u);
2315
+ if (!C) return f;
2316
+ const P = typeof C.advancedFilter?.customFilterFn == "function" ? C.advancedFilter.customFilterFn : null;
2317
+ return f.push({ key: u, filterValue: y, filterComparison: w, header: C, customFilterFn: P }), f;
2318
2318
  }, []);
2319
2319
  if (!b.length) {
2320
2320
  l.value = s;
2321
2321
  return;
2322
2322
  }
2323
2323
  l.value = s.filter(
2324
- (c) => b.every(({ key: u, filterValue: I, filterComparison: y, header: w, customFilterFn: F }) => {
2325
- const P = m(c, u, w);
2326
- return F ? F({ value: P, filterValue: I, filterComparison: y, header: w, item: c }) : f(P, I, y, w);
2324
+ (f) => b.every(({ key: u, filterValue: I, filterComparison: y, header: w, customFilterFn: C }) => {
2325
+ const P = m(f, u, w);
2326
+ return C ? C({ value: P, filterValue: I, filterComparison: y, header: w, item: f }) : c(P, I, y, w);
2327
2327
  })
2328
2328
  );
2329
2329
  },
@@ -2365,7 +2365,7 @@ export {
2365
2365
  Ha as d,
2366
2366
  za as e,
2367
2367
  fa as f,
2368
- Ca as g,
2368
+ Ta as g,
2369
2369
  ga as h,
2370
2370
  Ia as i,
2371
2371
  ua as j,
@@ -2374,7 +2374,7 @@ export {
2374
2374
  da as m,
2375
2375
  Ge as n,
2376
2376
  Me as o,
2377
- Ta as p,
2377
+ Fa as p,
2378
2378
  je as q,
2379
2379
  Ma as r,
2380
2380
  ya as s,