@ianicdev/datatables2 0.9.8 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Columns-CFTmfPVc.cjs → Columns-BaARuW1m.cjs} +1 -1
- package/dist/{Columns-BXnSYd-i.js → Columns-CPYUVLvE.js} +1 -1
- package/dist/{Comparison-DSQomYKQ.js → Comparison-BiPlTpXM.js} +1 -1
- package/dist/{Comparison-CsnTMSkc.cjs → Comparison-DDhGIBui.cjs} +1 -1
- package/dist/{Datepicker-CiF0Gxqc.cjs → Datepicker-CzJ1wZmm.cjs} +1 -1
- package/dist/{Datepicker-7fiEL_BV.js → Datepicker-KGlOP9ck.js} +49 -49
- package/dist/{Download-DX9SdTyQ.cjs → Download-DZqwXPMb.cjs} +1 -1
- package/dist/{Download-RW-UTi1O.js → Download-FGUE_z5x.js} +1 -1
- package/dist/{Options-C3aIEmMs.cjs → Options-B-Vq57w_.cjs} +1 -1
- package/dist/{Options-CaeA8ORW.js → Options-CAwRqQpx.js} +1 -1
- package/dist/{RefreshTable-j-7zIKGb.cjs → RefreshTable-C-UPC-U5.cjs} +1 -1
- package/dist/{RefreshTable-BehJANLx.js → RefreshTable-DyLlkCOt.js} +2 -2
- package/dist/{Search-o9eqRs1B.js → Search-DBOrKgEi.js} +2 -2
- package/dist/{Search-DvlmBsKA.cjs → Search-Tks4mpaH.cjs} +1 -1
- package/dist/{Table-6mEJ8qhC.cjs → Table-DYDzb63V.cjs} +1 -1
- package/dist/{Table-CXOhgI5B.js → Table-P8c-sRdr.js} +2 -2
- package/dist/{TableServer-DhZMDgpd.js → TableServer--svcmINA.js} +3 -3
- package/dist/{TableServer-CZXfhWDA.cjs → TableServer-ftB17VAQ.cjs} +1 -1
- package/dist/{cellRender-BD6GhuU1.js → cellRender-BPzg8pfq.js} +176 -161
- package/dist/{cellRender-Cbcrdo1U.cjs → cellRender-DpRXHxxv.cjs} +1 -1
- package/dist/{dataTables-BXxLOWGn.js → dataTables-CPrc2H_E.js} +21 -22
- package/dist/{dataTables-D1Puzwqz.cjs → dataTables-CxQh692H.cjs} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/index-BTfw-D-T.cjs +1 -0
- package/dist/{index-BhIfR6t-.js → index-BW-yzY3p.js} +1470 -1653
- package/dist/{index-t1-Qu-Ll.js → index-CXBiVM0n.js} +1 -1
- package/dist/{index-B7LcHjzm.cjs → index-Dn353bZ1.cjs} +1 -1
- package/package.json +3 -3
- package/dist/index-Cjbs9C1X.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { shallowRef as ue, computed as
|
|
2
|
-
import {
|
|
3
|
-
import { V as Qe, a as ta, b as De, u as aa, d as la } from "./index-
|
|
1
|
+
import { shallowRef as ue, computed as V, unref as q, watchEffect as je, toRef as C, provide as Y, toRaw as ne, inject as Q, ref as j, toValue as Tt, watch as ce, onBeforeUpdate as Ct, createVNode as w, normalizeStyle as we, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Ce, capitalize as _t, Fragment as U, createTextVNode as _e, withModifiers as re, toDisplayString as Bt, toRefs as Ot, defineComponent as Lt, h as At } from "vue";
|
|
2
|
+
import { aP as Et, U as Nt, p as _, N as z, aA as ee, K as J, aQ as de, _ as Ge, J as Ke, af as ye, aR as Rt, T as Z, aS as se, g as $, a0 as $t, h as Ie, aj as fe, a as Se, al as Mt, aT as oe, u as K, a9 as W, x as Ht, y as Fe, m as We, as as jt, A as Gt, E as ze, f as ae, b as Ue, G as Kt, I as O, aU as Be, aV as Wt, ax as A, aW as zt, o as Ut, P as Je, L as Jt, D as Qt, ao as Ve, d as Oe, H as pe, a1 as Pe, k as Xt, aa as Yt, l as Zt, n as qt, F as ea } from "./dataTables-CPrc2H_E.js";
|
|
3
|
+
import { V as Qe, a as ta, b as De, u as aa, d as la } from "./index-BW-yzY3p.js";
|
|
4
4
|
import ie from "moment";
|
|
5
5
|
function Le(e, t, a) {
|
|
6
|
-
return Object.keys(e).filter((l) => Et(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) =>
|
|
6
|
+
return Object.keys(e).filter((l) => Et(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Nt(e[n], r, a(r)), l), {});
|
|
7
7
|
}
|
|
8
8
|
const na = (e, t, a) => {
|
|
9
9
|
if (e == null || t == null) return -1;
|
|
@@ -47,9 +47,9 @@ function sa(e, t, a) {
|
|
|
47
47
|
};
|
|
48
48
|
continue;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
y =
|
|
52
|
-
for (const h of
|
|
50
|
+
const F = r || Object.keys(c);
|
|
51
|
+
y = F.length === i;
|
|
52
|
+
for (const h of F) {
|
|
53
53
|
const I = ee(c, h), D = a?.customKeyFilter?.[h];
|
|
54
54
|
if (f = D ? D(I, t, o) : n(I, t, o), f !== -1 && f !== !1)
|
|
55
55
|
D ? m[h] = xe(f, t) : d[h] = xe(f, t);
|
|
@@ -72,7 +72,7 @@ function sa(e, t, a) {
|
|
|
72
72
|
return l;
|
|
73
73
|
}
|
|
74
74
|
function oa(e, t, a, l) {
|
|
75
|
-
const n = ue([]), r = ue(/* @__PURE__ */ new Map()), i =
|
|
75
|
+
const n = ue([]), r = ue(/* @__PURE__ */ new Map()), i = V(() => l?.transform ? q(t).map((s) => [s, l.transform(s)]) : q(t));
|
|
76
76
|
je(() => {
|
|
77
77
|
const s = typeof a == "function" ? a() : q(a), o = typeof s != "string" && typeof s != "number" ? "" : String(s), c = sa(i.value, o, {
|
|
78
78
|
customKeyFilter: {
|
|
@@ -89,8 +89,8 @@ function oa(e, t, a, l) {
|
|
|
89
89
|
index: b,
|
|
90
90
|
matches: v
|
|
91
91
|
} = y;
|
|
92
|
-
const
|
|
93
|
-
d.push(
|
|
92
|
+
const F = m[b];
|
|
93
|
+
d.push(F), f.set(F.value, v);
|
|
94
94
|
}), n.value = d, r.value = f;
|
|
95
95
|
});
|
|
96
96
|
function u(s) {
|
|
@@ -159,7 +159,7 @@ function fa(e) {
|
|
|
159
159
|
disableSort: t,
|
|
160
160
|
groupBy: a,
|
|
161
161
|
sortBy: l
|
|
162
|
-
} = e, n = j(/* @__PURE__ */ new Set()), r =
|
|
162
|
+
} = e, n = j(/* @__PURE__ */ new Set()), r = V(() => a.value.map((c) => ({
|
|
163
163
|
...c,
|
|
164
164
|
order: c.order ?? !1
|
|
165
165
|
})).concat(t?.value ? [] : l.value));
|
|
@@ -232,7 +232,7 @@ function tt(e, t, a) {
|
|
|
232
232
|
}
|
|
233
233
|
function ga(e, t, a, l) {
|
|
234
234
|
return {
|
|
235
|
-
flatItems:
|
|
235
|
+
flatItems: V(() => {
|
|
236
236
|
if (!t.value.length) return e.value;
|
|
237
237
|
const r = et(e.value, t.value.map((i) => i.key));
|
|
238
238
|
return tt(r, a.value, Tt(l));
|
|
@@ -284,7 +284,7 @@ function ya(e) {
|
|
|
284
284
|
page: t,
|
|
285
285
|
itemsPerPage: a,
|
|
286
286
|
itemsLength: l
|
|
287
|
-
} = e, n =
|
|
287
|
+
} = 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));
|
|
288
288
|
ce([t, i], () => {
|
|
289
289
|
t.value > i.value && (t.value = i.value);
|
|
290
290
|
});
|
|
@@ -325,7 +325,7 @@ function xa(e) {
|
|
|
325
325
|
startIndex: l,
|
|
326
326
|
stopIndex: n,
|
|
327
327
|
itemsPerPage: r
|
|
328
|
-
} = e, i =
|
|
328
|
+
} = e, i = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
|
|
329
329
|
return ce(i, (u) => {
|
|
330
330
|
t.emit("update:currentItems", u);
|
|
331
331
|
}, {
|
|
@@ -405,7 +405,7 @@ const Sa = {
|
|
|
405
405
|
} = e;
|
|
406
406
|
return new Set(t ? a.map((l) => l.value) : []);
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, ka = _({
|
|
409
409
|
showSelect: Boolean,
|
|
410
410
|
selectStrategy: {
|
|
411
411
|
type: [String, Object],
|
|
@@ -417,15 +417,15 @@ const Sa = {
|
|
|
417
417
|
},
|
|
418
418
|
valueComparator: Function
|
|
419
419
|
}, "DataTable-select"), nt = Symbol.for("vuetify:data-table-selection");
|
|
420
|
-
function
|
|
420
|
+
function wa(e, t) {
|
|
421
421
|
let {
|
|
422
422
|
allItems: a,
|
|
423
423
|
currentPage: l
|
|
424
424
|
} = t;
|
|
425
425
|
const n = J(e, "modelValue", e.modelValue, (h) => {
|
|
426
426
|
const I = e.valueComparator;
|
|
427
|
-
return I ? new Set(z(h).map((D) => a.value.find((P) => I(D, P.value))?.value ?? D)) : new Set(z(h).map((D) =>
|
|
428
|
-
}, (h) => [...h.values()]), r =
|
|
427
|
+
return I ? new Set(z(h).map((D) => a.value.find((P) => I(D, P.value))?.value ?? D)) : new Set(z(h).map((D) => Rt(D) ? a.value.find((P) => D === P.value)?.value ?? D : a.value.find((P) => Ke(D, P.value))?.value ?? D));
|
|
428
|
+
}, (h) => [...h.values()]), r = V(() => a.value.filter((h) => h.selectable)), i = V(() => l.value.filter((h) => h.selectable)), u = V(() => {
|
|
429
429
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
430
430
|
switch (e.selectStrategy) {
|
|
431
431
|
case "single":
|
|
@@ -454,8 +454,8 @@ function ka(e, t) {
|
|
|
454
454
|
function d(h, I, D) {
|
|
455
455
|
const P = [];
|
|
456
456
|
if (I = I ?? l.value.findIndex((L) => L.value === h.value), e.selectStrategy !== "single" && D?.shiftKey && s.value !== null) {
|
|
457
|
-
const [L,
|
|
458
|
-
P.push(...l.value.slice(L,
|
|
457
|
+
const [L, N] = [s.value, I].sort((p, x) => p - x);
|
|
458
|
+
P.push(...l.value.slice(L, N + 1).filter((p) => p.selectable));
|
|
459
459
|
} else
|
|
460
460
|
P.push(h), s.value = I;
|
|
461
461
|
m(P, !o([h]));
|
|
@@ -469,13 +469,13 @@ function ka(e, t) {
|
|
|
469
469
|
});
|
|
470
470
|
n.value = I;
|
|
471
471
|
}
|
|
472
|
-
const y =
|
|
472
|
+
const y = V(() => n.value.size > 0), b = V(() => {
|
|
473
473
|
const h = u.value.allSelected({
|
|
474
474
|
allItems: r.value,
|
|
475
475
|
currentPage: i.value
|
|
476
476
|
});
|
|
477
477
|
return !!h.length && o(h);
|
|
478
|
-
}), v = C(() => u.value.showSelectAll),
|
|
478
|
+
}), v = C(() => u.value.showSelectAll), F = {
|
|
479
479
|
toggleSelect: d,
|
|
480
480
|
select: m,
|
|
481
481
|
selectAll: f,
|
|
@@ -487,7 +487,7 @@ function ka(e, t) {
|
|
|
487
487
|
lastSelectedIndex: s,
|
|
488
488
|
selectStrategy: u
|
|
489
489
|
};
|
|
490
|
-
return Y(nt,
|
|
490
|
+
return Y(nt, F), F;
|
|
491
491
|
}
|
|
492
492
|
function ve() {
|
|
493
493
|
const e = Q(nt);
|
|
@@ -549,7 +549,7 @@ function st() {
|
|
|
549
549
|
function Da(e, t, a, l) {
|
|
550
550
|
const n = Z();
|
|
551
551
|
return {
|
|
552
|
-
sortedItems:
|
|
552
|
+
sortedItems: V(() => a.value.length ? Ta(t.value, a.value, n.current.value, {
|
|
553
553
|
transform: l?.transform,
|
|
554
554
|
sortFunctions: {
|
|
555
555
|
...e.customKeySort,
|
|
@@ -714,11 +714,11 @@ const _a = _({
|
|
|
714
714
|
const {
|
|
715
715
|
target: x,
|
|
716
716
|
contentRect: g
|
|
717
|
-
} = p[0],
|
|
718
|
-
if (!
|
|
719
|
-
const T = g.width,
|
|
720
|
-
c.value = b(T,
|
|
721
|
-
}), d =
|
|
717
|
+
} = p[0], k = x.querySelector(".v-pagination__list > *");
|
|
718
|
+
if (!k) return;
|
|
719
|
+
const T = g.width, R = k.offsetWidth + parseFloat(getComputedStyle(k).marginRight) * 2;
|
|
720
|
+
c.value = b(T, R);
|
|
721
|
+
}), d = V(() => parseInt(e.length, 10)), f = V(() => parseInt(e.start, 10)), y = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : c.value >= 0 ? c.value : b(o.value, 58));
|
|
722
722
|
function b(p, x) {
|
|
723
723
|
const g = e.showFirstLastPage ? 5 : 3;
|
|
724
724
|
return Math.max(0, Math.floor(
|
|
@@ -726,24 +726,24 @@ const _a = _({
|
|
|
726
726
|
Number(((p - x * g) / x).toFixed(2))
|
|
727
727
|
));
|
|
728
728
|
}
|
|
729
|
-
const v =
|
|
729
|
+
const v = V(() => {
|
|
730
730
|
if (d.value <= 0 || isNaN(d.value) || d.value > Number.MAX_SAFE_INTEGER) return [];
|
|
731
731
|
if (y.value <= 0) return [];
|
|
732
732
|
if (y.value === 1) return [n.value];
|
|
733
733
|
if (d.value <= y.value)
|
|
734
734
|
return oe(d.value, f.value);
|
|
735
|
-
const p = y.value % 2 === 0, x = p ? y.value / 2 : Math.floor(y.value / 2), g = p ? x : x + 1,
|
|
735
|
+
const p = y.value % 2 === 0, x = p ? y.value / 2 : Math.floor(y.value / 2), g = p ? x : x + 1, k = d.value - x;
|
|
736
736
|
if (g - n.value >= 0)
|
|
737
737
|
return [...oe(Math.max(1, y.value - 1), f.value), e.ellipsis, d.value];
|
|
738
|
-
if (n.value -
|
|
739
|
-
const T = y.value - 1,
|
|
740
|
-
return [f.value, e.ellipsis, ...oe(T,
|
|
738
|
+
if (n.value - k >= (p ? 1 : 0)) {
|
|
739
|
+
const T = y.value - 1, R = d.value - T + f.value;
|
|
740
|
+
return [f.value, e.ellipsis, ...oe(T, R)];
|
|
741
741
|
} else {
|
|
742
|
-
const T = Math.max(1, y.value - 2),
|
|
743
|
-
return [f.value, e.ellipsis, ...oe(T,
|
|
742
|
+
const T = Math.max(1, y.value - 2), R = T === 1 ? n.value : n.value - Math.ceil(T / 2) + f.value;
|
|
743
|
+
return [f.value, e.ellipsis, ...oe(T, R), e.ellipsis, d.value];
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
function
|
|
746
|
+
function F(p, x, g) {
|
|
747
747
|
p.preventDefault(), n.value = x, g && l(g, x);
|
|
748
748
|
}
|
|
749
749
|
const {
|
|
@@ -761,8 +761,8 @@ const _a = _({
|
|
|
761
761
|
elevation: C(() => e.elevation)
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const D =
|
|
765
|
-
const g = (
|
|
764
|
+
const D = V(() => v.value.map((p, x) => {
|
|
765
|
+
const g = (k) => I(k, x);
|
|
766
766
|
if (typeof p == "string")
|
|
767
767
|
return {
|
|
768
768
|
isActive: !1,
|
|
@@ -776,9 +776,9 @@ const _a = _({
|
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
{
|
|
779
|
-
const
|
|
779
|
+
const k = p === n.value;
|
|
780
780
|
return {
|
|
781
|
-
isActive:
|
|
781
|
+
isActive: k,
|
|
782
782
|
key: p,
|
|
783
783
|
page: i(p),
|
|
784
784
|
props: {
|
|
@@ -786,40 +786,40 @@ const _a = _({
|
|
|
786
786
|
ellipsis: !1,
|
|
787
787
|
icon: !0,
|
|
788
788
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
789
|
-
color:
|
|
790
|
-
"aria-current":
|
|
791
|
-
"aria-label": r(
|
|
792
|
-
onClick: (T) =>
|
|
789
|
+
color: k ? e.activeColor : e.color,
|
|
790
|
+
"aria-current": k,
|
|
791
|
+
"aria-label": r(k ? e.currentPageAriaLabel : e.pageAriaLabel, p),
|
|
792
|
+
onClick: (T) => F(T, p)
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
})), P =
|
|
796
|
+
})), P = V(() => {
|
|
797
797
|
const p = !!e.disabled || n.value <= f.value, x = !!e.disabled || n.value >= f.value + d.value - 1;
|
|
798
798
|
return {
|
|
799
799
|
first: e.showFirstLastPage ? {
|
|
800
800
|
icon: u.value ? e.lastIcon : e.firstIcon,
|
|
801
|
-
onClick: (g) =>
|
|
801
|
+
onClick: (g) => F(g, f.value, "first"),
|
|
802
802
|
disabled: p,
|
|
803
803
|
"aria-label": r(e.firstAriaLabel),
|
|
804
804
|
"aria-disabled": p
|
|
805
805
|
} : void 0,
|
|
806
806
|
prev: {
|
|
807
807
|
icon: u.value ? e.nextIcon : e.prevIcon,
|
|
808
|
-
onClick: (g) =>
|
|
808
|
+
onClick: (g) => F(g, n.value - 1, "prev"),
|
|
809
809
|
disabled: p,
|
|
810
810
|
"aria-label": r(e.previousAriaLabel),
|
|
811
811
|
"aria-disabled": p
|
|
812
812
|
},
|
|
813
813
|
next: {
|
|
814
814
|
icon: u.value ? e.prevIcon : e.nextIcon,
|
|
815
|
-
onClick: (g) =>
|
|
815
|
+
onClick: (g) => F(g, n.value + 1, "next"),
|
|
816
816
|
disabled: x,
|
|
817
817
|
"aria-label": r(e.nextAriaLabel),
|
|
818
818
|
"aria-disabled": x
|
|
819
819
|
},
|
|
820
820
|
last: e.showFirstLastPage ? {
|
|
821
821
|
icon: u.value ? e.firstIcon : e.lastIcon,
|
|
822
|
-
onClick: (g) =>
|
|
822
|
+
onClick: (g) => F(g, f.value + d.value - 1, "last"),
|
|
823
823
|
disabled: x,
|
|
824
824
|
"aria-label": r(e.lastAriaLabel),
|
|
825
825
|
"aria-disabled": x
|
|
@@ -830,16 +830,16 @@ const _a = _({
|
|
|
830
830
|
const p = n.value - f.value;
|
|
831
831
|
h.value[p]?.$el.focus();
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function N(p) {
|
|
834
834
|
p.key === Be.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Ce(L)) : p.key === Be.right && !e.disabled && n.value < f.value + d.value - 1 && (n.value = n.value + 1, Ce(L));
|
|
835
835
|
}
|
|
836
|
-
return K(() =>
|
|
836
|
+
return K(() => w(e.tag, {
|
|
837
837
|
ref: m,
|
|
838
838
|
class: G(["v-pagination", s.value, e.class]),
|
|
839
|
-
style:
|
|
839
|
+
style: we(e.style),
|
|
840
840
|
role: "navigation",
|
|
841
841
|
"aria-label": r(e.ariaLabel),
|
|
842
|
-
onKeydown:
|
|
842
|
+
onKeydown: N,
|
|
843
843
|
"data-test": "v-pagination-root"
|
|
844
844
|
}, {
|
|
845
845
|
default: () => [S("ul", {
|
|
@@ -848,13 +848,13 @@ const _a = _({
|
|
|
848
848
|
key: "first",
|
|
849
849
|
class: "v-pagination__first",
|
|
850
850
|
"data-test": "v-pagination-first"
|
|
851
|
-
}, [a.first ? a.first(P.value.first) :
|
|
851
|
+
}, [a.first ? a.first(P.value.first) : w(W, B({
|
|
852
852
|
_as: "VPaginationBtn"
|
|
853
853
|
}, P.value.first), null)]), S("li", {
|
|
854
854
|
key: "prev",
|
|
855
855
|
class: "v-pagination__prev",
|
|
856
856
|
"data-test": "v-pagination-prev"
|
|
857
|
-
}, [a.prev ? a.prev(P.value.prev) :
|
|
857
|
+
}, [a.prev ? a.prev(P.value.prev) : w(W, B({
|
|
858
858
|
_as: "VPaginationBtn"
|
|
859
859
|
}, P.value.prev), null)]), D.value.map((p, x) => S("li", {
|
|
860
860
|
key: p.key,
|
|
@@ -862,7 +862,7 @@ const _a = _({
|
|
|
862
862
|
"v-pagination__item--is-active": p.isActive
|
|
863
863
|
}]),
|
|
864
864
|
"data-test": "v-pagination-item"
|
|
865
|
-
}, [a.item ? a.item(p) :
|
|
865
|
+
}, [a.item ? a.item(p) : w(W, B({
|
|
866
866
|
_as: "VPaginationBtn"
|
|
867
867
|
}, p.props), {
|
|
868
868
|
default: () => [p.page]
|
|
@@ -870,13 +870,13 @@ const _a = _({
|
|
|
870
870
|
key: "next",
|
|
871
871
|
class: "v-pagination__next",
|
|
872
872
|
"data-test": "v-pagination-next"
|
|
873
|
-
}, [a.next ? a.next(P.value.next) :
|
|
873
|
+
}, [a.next ? a.next(P.value.next) : w(W, B({
|
|
874
874
|
_as: "VPaginationBtn"
|
|
875
875
|
}, P.value.next), null)]), e.showFirstLastPage && S("li", {
|
|
876
876
|
key: "last",
|
|
877
877
|
class: "v-pagination__last",
|
|
878
878
|
"data-test": "v-pagination-last"
|
|
879
|
-
}, [a.last ? a.last(P.value.last) :
|
|
879
|
+
}, [a.last ? a.last(P.value.last) : w(W, B({
|
|
880
880
|
_as: "VPaginationBtn"
|
|
881
881
|
}, P.value.last), null)])])]
|
|
882
882
|
})), {};
|
|
@@ -959,7 +959,7 @@ const _a = _({
|
|
|
959
959
|
itemsLength: s,
|
|
960
960
|
itemsPerPage: o,
|
|
961
961
|
setItemsPerPage: c
|
|
962
|
-
} = pa(), m =
|
|
962
|
+
} = pa(), m = V(() => e.itemsPerPageOptions.map((d) => typeof d == "number" ? {
|
|
963
963
|
value: d,
|
|
964
964
|
title: d === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(d)
|
|
965
965
|
} : {
|
|
@@ -974,7 +974,7 @@ const _a = _({
|
|
|
974
974
|
class: "v-data-table-footer__items-per-page"
|
|
975
975
|
}, [S("span", {
|
|
976
976
|
"aria-label": l(e.itemsPerPageText)
|
|
977
|
-
}, [l(e.itemsPerPageText)]),
|
|
977
|
+
}, [l(e.itemsPerPageText)]), w(Qe, {
|
|
978
978
|
items: m.value,
|
|
979
979
|
modelValue: o.value,
|
|
980
980
|
"onUpdate:modelValue": (f) => c(Number(f)),
|
|
@@ -985,7 +985,7 @@ const _a = _({
|
|
|
985
985
|
class: "v-data-table-footer__info"
|
|
986
986
|
}, [S("div", null, [l(e.pageText, s.value ? i.value + 1 : 0, u.value, s.value)])]), S("div", {
|
|
987
987
|
class: "v-data-table-footer__pagination"
|
|
988
|
-
}, [
|
|
988
|
+
}, [w(Ae, B({
|
|
989
989
|
modelValue: n.value,
|
|
990
990
|
"onUpdate:modelValue": (f) => n.value = f,
|
|
991
991
|
density: "comfortable",
|
|
@@ -1027,7 +1027,7 @@ const _a = _({
|
|
|
1027
1027
|
slots: a
|
|
1028
1028
|
} = t;
|
|
1029
1029
|
const l = e.tag ?? "td", n = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
|
|
1030
|
-
return
|
|
1030
|
+
return w(l, {
|
|
1031
1031
|
class: G(["v-data-table__td", {
|
|
1032
1032
|
"v-data-table-column--fixed": n === "start",
|
|
1033
1033
|
"v-data-table-column--fixed-end": n === "end",
|
|
@@ -1090,13 +1090,13 @@ function La() {
|
|
|
1090
1090
|
dequeue: () => t.shift()
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function ke(e) {
|
|
1094
1094
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1095
1095
|
if (!e.children)
|
|
1096
1096
|
t.push(e);
|
|
1097
1097
|
else
|
|
1098
1098
|
for (const a of e.children)
|
|
1099
|
-
|
|
1099
|
+
ke(a, t);
|
|
1100
1100
|
return t;
|
|
1101
1101
|
}
|
|
1102
1102
|
function dt(e) {
|
|
@@ -1171,7 +1171,7 @@ function ft(e) {
|
|
|
1171
1171
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1172
1172
|
return t;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Na(e, t) {
|
|
1175
1175
|
const a = [];
|
|
1176
1176
|
let l = 0;
|
|
1177
1177
|
const n = La(e);
|
|
@@ -1187,7 +1187,7 @@ function Ra(e, t) {
|
|
|
1187
1187
|
if (u.push({
|
|
1188
1188
|
...o,
|
|
1189
1189
|
rowspan: m ?? 1,
|
|
1190
|
-
colspan: o.children ?
|
|
1190
|
+
colspan: o.children ? ke(o).length : 1
|
|
1191
1191
|
}), o.children)
|
|
1192
1192
|
for (const d of o.children) {
|
|
1193
1193
|
const f = c % 1 + s / Math.pow(10, l + 2);
|
|
@@ -1198,7 +1198,7 @@ function Ra(e, t) {
|
|
|
1198
1198
|
l += 1, a.push(u);
|
|
1199
1199
|
}
|
|
1200
1200
|
return {
|
|
1201
|
-
columns: e.map((i) =>
|
|
1201
|
+
columns: e.map((i) => ke(i)).flat(),
|
|
1202
1202
|
headers: a
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
@@ -1219,7 +1219,7 @@ function vt(e) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
return t;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Ra(e, t) {
|
|
1223
1223
|
const a = j([]), l = j([]), n = j({}), r = j({}), i = j({});
|
|
1224
1224
|
je(() => {
|
|
1225
1225
|
const o = (e.headers || Object.keys(e.items[0] ?? {}).map((b) => ({
|
|
@@ -1236,7 +1236,7 @@ function Na(e, t) {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
const m = vt(o);
|
|
1238
1238
|
Ea(m);
|
|
1239
|
-
const d = Math.max(...m.map((b) => Te(b))) + 1, f =
|
|
1239
|
+
const d = Math.max(...m.map((b) => Te(b))) + 1, f = Na(m, d);
|
|
1240
1240
|
a.value = f.headers, l.value = f.columns;
|
|
1241
1241
|
const y = f.headers.flat(1);
|
|
1242
1242
|
for (const b of y)
|
|
@@ -1277,7 +1277,7 @@ const gt = _({
|
|
|
1277
1277
|
...ae(),
|
|
1278
1278
|
...Ve(),
|
|
1279
1279
|
...Qt()
|
|
1280
|
-
}, "VDataTableHeaders"),
|
|
1280
|
+
}, "VDataTableHeaders"), Ne = $()({
|
|
1281
1281
|
name: "VDataTableHeaders",
|
|
1282
1282
|
props: gt(),
|
|
1283
1283
|
setup(e, t) {
|
|
@@ -1303,11 +1303,11 @@ const gt = _({
|
|
|
1303
1303
|
} = Ut(e);
|
|
1304
1304
|
function y(x, g) {
|
|
1305
1305
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1306
|
-
const
|
|
1306
|
+
const k = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1307
1307
|
return {
|
|
1308
1308
|
position: "sticky",
|
|
1309
|
-
left:
|
|
1310
|
-
right:
|
|
1309
|
+
left: k === "start" ? A(x.fixedOffset) : void 0,
|
|
1310
|
+
right: k === "end" ? A(x.fixedEndOffset) : void 0,
|
|
1311
1311
|
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
@@ -1315,16 +1315,16 @@ const gt = _({
|
|
|
1315
1315
|
x.key === "Enter" && !e.disableSort && n(g);
|
|
1316
1316
|
}
|
|
1317
1317
|
function v(x) {
|
|
1318
|
-
const g = r.value.find((
|
|
1318
|
+
const g = r.value.find((k) => k.key === x.key);
|
|
1319
1319
|
return g ? g.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
|
|
1320
1320
|
}
|
|
1321
1321
|
const {
|
|
1322
|
-
backgroundColorClasses:
|
|
1322
|
+
backgroundColorClasses: F,
|
|
1323
1323
|
backgroundColorStyles: h
|
|
1324
1324
|
} = Je(() => e.color), {
|
|
1325
1325
|
displayClasses: I,
|
|
1326
1326
|
mobile: D
|
|
1327
|
-
} = fe(e), P =
|
|
1327
|
+
} = fe(e), P = V(() => ({
|
|
1328
1328
|
headers: d.value,
|
|
1329
1329
|
columns: m.value,
|
|
1330
1330
|
toggleSort: n,
|
|
@@ -1334,16 +1334,16 @@ const gt = _({
|
|
|
1334
1334
|
allSelected: s.value,
|
|
1335
1335
|
selectAll: o,
|
|
1336
1336
|
getSortIcon: v
|
|
1337
|
-
})), L =
|
|
1337
|
+
})), L = V(() => ["v-data-table__th", {
|
|
1338
1338
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1339
|
-
}, I.value, f.value]),
|
|
1339
|
+
}, I.value, f.value]), N = (x) => {
|
|
1340
1340
|
let {
|
|
1341
1341
|
column: g,
|
|
1342
|
-
x:
|
|
1342
|
+
x: k,
|
|
1343
1343
|
y: T
|
|
1344
1344
|
} = x;
|
|
1345
|
-
const
|
|
1346
|
-
return
|
|
1345
|
+
const R = g.key === "data-table-select" || g.key === "data-table-expand", le = g.key === "data-table-group" && g.width === 0 && !g.title, be = B(e.headerProps ?? {}, g.headerProps ?? {});
|
|
1346
|
+
return w(te, B({
|
|
1347
1347
|
tag: "th",
|
|
1348
1348
|
align: g.align,
|
|
1349
1349
|
class: [{
|
|
@@ -1363,7 +1363,7 @@ const gt = _({
|
|
|
1363
1363
|
nowrap: g.nowrap,
|
|
1364
1364
|
lastFixed: g.lastFixed,
|
|
1365
1365
|
firstFixedEnd: g.firstFixedEnd,
|
|
1366
|
-
noPadding:
|
|
1366
|
+
noPadding: R,
|
|
1367
1367
|
empty: le,
|
|
1368
1368
|
tabindex: g.sortable ? 0 : void 0,
|
|
1369
1369
|
onClick: g.sortable ? () => n(g) : void 0,
|
|
@@ -1380,37 +1380,37 @@ const gt = _({
|
|
|
1380
1380
|
allSelected: s.value,
|
|
1381
1381
|
getSortIcon: v
|
|
1382
1382
|
};
|
|
1383
|
-
return a[M] ? a[M](X) : le ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (c.value &&
|
|
1383
|
+
return a[M] ? a[M](X) : le ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (c.value && w(De, {
|
|
1384
1384
|
density: e.density,
|
|
1385
1385
|
modelValue: s.value,
|
|
1386
1386
|
indeterminate: u.value && !s.value,
|
|
1387
1387
|
"onUpdate:modelValue": o
|
|
1388
1388
|
}, null)) : S("div", {
|
|
1389
1389
|
class: "v-data-table-header__content"
|
|
1390
|
-
}, [S("span", null, [g.title]), g.sortable && !e.disableSort &&
|
|
1390
|
+
}, [S("span", null, [g.title]), g.sortable && !e.disableSort && w(Oe, {
|
|
1391
1391
|
key: "icon",
|
|
1392
1392
|
class: "v-data-table-header__sort-icon",
|
|
1393
1393
|
icon: v(g)
|
|
1394
1394
|
}, null), e.multiSort && i(g) && S("div", {
|
|
1395
1395
|
key: "badge",
|
|
1396
|
-
class: G(["v-data-table-header__sort-badge", ...
|
|
1397
|
-
style:
|
|
1396
|
+
class: G(["v-data-table-header__sort-badge", ...F.value]),
|
|
1397
|
+
style: we(h.value)
|
|
1398
1398
|
}, [r.value.findIndex((he) => he.key === g.key) + 1])]);
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}, p = () => {
|
|
1402
|
-
const x =
|
|
1402
|
+
const x = V(() => m.value.filter((k) => k?.sortable && !e.disableSort)), g = V(() => {
|
|
1403
1403
|
if (m.value.find((T) => T.key === "data-table-select") != null)
|
|
1404
1404
|
return s.value ? "$checkboxOn" : u.value ? "$checkboxIndeterminate" : "$checkboxOff";
|
|
1405
1405
|
});
|
|
1406
|
-
return
|
|
1406
|
+
return w(te, B({
|
|
1407
1407
|
tag: "th",
|
|
1408
1408
|
class: [...L.value],
|
|
1409
1409
|
colspan: d.value.length + 1
|
|
1410
1410
|
}, e.headerProps), {
|
|
1411
1411
|
default: () => [S("div", {
|
|
1412
1412
|
class: "v-data-table-header__content"
|
|
1413
|
-
}, [
|
|
1413
|
+
}, [w(Qe, {
|
|
1414
1414
|
chips: !0,
|
|
1415
1415
|
class: "v-data-table__td-sort-select",
|
|
1416
1416
|
clearable: !0,
|
|
@@ -1423,30 +1423,30 @@ const gt = _({
|
|
|
1423
1423
|
appendIcon: g.value,
|
|
1424
1424
|
"onClick:append": () => o(!s.value)
|
|
1425
1425
|
}, {
|
|
1426
|
-
chip: (
|
|
1427
|
-
onClick:
|
|
1426
|
+
chip: (k) => w(ta, {
|
|
1427
|
+
onClick: k.item.raw?.sortable ? () => n(k.item.raw) : void 0,
|
|
1428
1428
|
onMousedown: (T) => {
|
|
1429
1429
|
T.preventDefault(), T.stopPropagation();
|
|
1430
1430
|
}
|
|
1431
1431
|
}, {
|
|
1432
|
-
default: () => [
|
|
1433
|
-
class: G(["v-data-table__td-sort-icon", i(
|
|
1434
|
-
icon: v(
|
|
1432
|
+
default: () => [k.item.title, w(Oe, {
|
|
1433
|
+
class: G(["v-data-table__td-sort-icon", i(k.item.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1434
|
+
icon: v(k.item.raw),
|
|
1435
1435
|
size: "small"
|
|
1436
1436
|
}, null)]
|
|
1437
1437
|
})
|
|
1438
1438
|
})])]
|
|
1439
1439
|
});
|
|
1440
1440
|
};
|
|
1441
|
-
K(() => D.value ? S("tr", null, [
|
|
1442
|
-
column:
|
|
1441
|
+
K(() => D.value ? S("tr", null, [w(p, null, null)]) : S(U, null, [a.headers ? a.headers(P.value) : d.value.map((x, g) => S("tr", null, [x.map((k, T) => w(N, {
|
|
1442
|
+
column: k,
|
|
1443
1443
|
x: T,
|
|
1444
1444
|
y: g
|
|
1445
1445
|
}, null))])), e.loading && S("tr", {
|
|
1446
1446
|
class: "v-data-table-progress"
|
|
1447
1447
|
}, [S("th", {
|
|
1448
1448
|
colspan: m.value.length
|
|
1449
|
-
}, [
|
|
1449
|
+
}, [w(Jt, {
|
|
1450
1450
|
name: "v-data-table-progress",
|
|
1451
1451
|
absolute: !0,
|
|
1452
1452
|
active: !0,
|
|
@@ -1487,7 +1487,7 @@ const gt = _({
|
|
|
1487
1487
|
select: s
|
|
1488
1488
|
} = ve(), {
|
|
1489
1489
|
columns: o
|
|
1490
|
-
} = ge(), c =
|
|
1490
|
+
} = ge(), c = V(() => r([e.item])), m = C(() => o.value.length - (o.value.some((d) => d.key === "data-table-select") ? 1 : 0));
|
|
1491
1491
|
return () => S("tr", {
|
|
1492
1492
|
class: "v-data-table-group-header-row",
|
|
1493
1493
|
style: {
|
|
@@ -1503,11 +1503,11 @@ const gt = _({
|
|
|
1503
1503
|
icon: f,
|
|
1504
1504
|
onClick: y
|
|
1505
1505
|
}
|
|
1506
|
-
}) ??
|
|
1506
|
+
}) ?? w(te, {
|
|
1507
1507
|
class: "v-data-table-group-header-row__column",
|
|
1508
1508
|
colspan: m.value
|
|
1509
1509
|
}, {
|
|
1510
|
-
default: () => [
|
|
1510
|
+
default: () => [w(W, {
|
|
1511
1511
|
size: "small",
|
|
1512
1512
|
variant: "text",
|
|
1513
1513
|
icon: f,
|
|
@@ -1522,11 +1522,11 @@ const gt = _({
|
|
|
1522
1522
|
indeterminate: y,
|
|
1523
1523
|
"onUpdate:modelValue": b
|
|
1524
1524
|
}
|
|
1525
|
-
}) ??
|
|
1525
|
+
}) ?? w(te, {
|
|
1526
1526
|
class: "v-data-table__td--select-row",
|
|
1527
1527
|
noPadding: !0
|
|
1528
1528
|
}, {
|
|
1529
|
-
default: () => [
|
|
1529
|
+
default: () => [w(De, {
|
|
1530
1530
|
density: e.density,
|
|
1531
1531
|
modelValue: f,
|
|
1532
1532
|
indeterminate: y,
|
|
@@ -1587,7 +1587,7 @@ const gt = _({
|
|
|
1587
1587
|
onClick: e.onClick,
|
|
1588
1588
|
onContextmenu: e.onContextmenu,
|
|
1589
1589
|
onDblclick: e.onDblclick
|
|
1590
|
-
}, [e.item && b.value.map((v,
|
|
1590
|
+
}, [e.item && b.value.map((v, F) => {
|
|
1591
1591
|
const h = e.item, I = `item.${v.key}`, D = `header.${v.key}`, P = {
|
|
1592
1592
|
index: e.index,
|
|
1593
1593
|
item: h.raw,
|
|
@@ -1607,7 +1607,7 @@ const gt = _({
|
|
|
1607
1607
|
someSelected: u.value,
|
|
1608
1608
|
allSelected: s.value,
|
|
1609
1609
|
getSortIcon: () => ""
|
|
1610
|
-
},
|
|
1610
|
+
}, N = typeof e.cellProps == "function" ? e.cellProps({
|
|
1611
1611
|
index: P.index,
|
|
1612
1612
|
item: P.item,
|
|
1613
1613
|
internalItem: P.internalItem,
|
|
@@ -1619,7 +1619,7 @@ const gt = _({
|
|
|
1619
1619
|
internalItem: P.internalItem,
|
|
1620
1620
|
value: P.value
|
|
1621
1621
|
}) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand", g = v.key === "data-table-group" && v.width === 0 && !v.title;
|
|
1622
|
-
return
|
|
1622
|
+
return w(te, B({
|
|
1623
1623
|
align: v.align,
|
|
1624
1624
|
indent: v.intent,
|
|
1625
1625
|
class: {
|
|
@@ -1636,7 +1636,7 @@ const gt = _({
|
|
|
1636
1636
|
empty: g,
|
|
1637
1637
|
nowrap: v.nowrap,
|
|
1638
1638
|
width: n.value ? void 0 : v.width
|
|
1639
|
-
},
|
|
1639
|
+
}, N, p), {
|
|
1640
1640
|
default: () => {
|
|
1641
1641
|
if (v.key === "data-table-select")
|
|
1642
1642
|
return a["item.data-table-select"]?.({
|
|
@@ -1646,7 +1646,7 @@ const gt = _({
|
|
|
1646
1646
|
modelValue: r([h]),
|
|
1647
1647
|
onClick: re(() => i(h), ["stop"])
|
|
1648
1648
|
}
|
|
1649
|
-
}) ??
|
|
1649
|
+
}) ?? w(De, {
|
|
1650
1650
|
disabled: !h.selectable,
|
|
1651
1651
|
density: e.density,
|
|
1652
1652
|
modelValue: r([h]),
|
|
@@ -1661,19 +1661,19 @@ const gt = _({
|
|
|
1661
1661
|
variant: "text",
|
|
1662
1662
|
onClick: re(() => m(h), ["stop"])
|
|
1663
1663
|
}
|
|
1664
|
-
}) ??
|
|
1664
|
+
}) ?? w(W, {
|
|
1665
1665
|
icon: c(h) ? e.collapseIcon : e.expandIcon,
|
|
1666
1666
|
size: "small",
|
|
1667
1667
|
variant: "text",
|
|
1668
1668
|
onClick: re(() => m(h), ["stop"])
|
|
1669
1669
|
}, null);
|
|
1670
1670
|
if (a[I] && !n.value) return a[I](P);
|
|
1671
|
-
const
|
|
1671
|
+
const k = Bt(P.value);
|
|
1672
1672
|
return n.value ? S(U, null, [S("div", {
|
|
1673
1673
|
class: "v-data-table__td-title"
|
|
1674
1674
|
}, [a[D]?.(L) ?? v.title]), S("div", {
|
|
1675
1675
|
class: "v-data-table__td-value"
|
|
1676
|
-
}, [a[I]?.(P) ??
|
|
1676
|
+
}, [a[I]?.(P) ?? k])]) : k;
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
1679
|
})]));
|
|
@@ -1698,7 +1698,7 @@ const gt = _({
|
|
|
1698
1698
|
...Pe(bt(), ["collapseIcon", "expandIcon", "density"]),
|
|
1699
1699
|
...Pe(mt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
|
|
1700
1700
|
...Ve()
|
|
1701
|
-
}, "VDataTableRows"),
|
|
1701
|
+
}, "VDataTableRows"), Re = $()({
|
|
1702
1702
|
name: "VDataTableRows",
|
|
1703
1703
|
inheritAttrs: !1,
|
|
1704
1704
|
props: ht(),
|
|
@@ -1749,7 +1749,7 @@ const gt = _({
|
|
|
1749
1749
|
toggleGroup: c,
|
|
1750
1750
|
isGroupOpen: m
|
|
1751
1751
|
};
|
|
1752
|
-
return l["group-header"] ? l["group-header"](I) :
|
|
1752
|
+
return l["group-header"] ? l["group-header"](I) : w($a, B({
|
|
1753
1753
|
key: `group-header_${b.id}`,
|
|
1754
1754
|
item: b
|
|
1755
1755
|
}, Le(a, ":groupHeader", () => I), y), l);
|
|
@@ -1763,7 +1763,7 @@ const gt = _({
|
|
|
1763
1763
|
};
|
|
1764
1764
|
return l["group-summary"]?.(I) ?? "";
|
|
1765
1765
|
}
|
|
1766
|
-
const
|
|
1766
|
+
const F = {
|
|
1767
1767
|
index: v,
|
|
1768
1768
|
item: b.raw,
|
|
1769
1769
|
internalItem: b,
|
|
@@ -1773,7 +1773,7 @@ const gt = _({
|
|
|
1773
1773
|
isSelected: s,
|
|
1774
1774
|
toggleSelect: o
|
|
1775
1775
|
}, h = {
|
|
1776
|
-
...
|
|
1776
|
+
...F,
|
|
1777
1777
|
props: B({
|
|
1778
1778
|
key: `item_${b.key ?? b.index}`,
|
|
1779
1779
|
onClick: r.value ? () => {
|
|
@@ -1786,15 +1786,15 @@ const gt = _({
|
|
|
1786
1786
|
expandIcon: e.expandIcon,
|
|
1787
1787
|
density: e.density,
|
|
1788
1788
|
mobile: f.value
|
|
1789
|
-
}, Le(a, ":row", () =>
|
|
1790
|
-
item:
|
|
1791
|
-
index:
|
|
1792
|
-
internalItem:
|
|
1789
|
+
}, Le(a, ":row", () => F), typeof e.rowProps == "function" ? e.rowProps({
|
|
1790
|
+
item: F.item,
|
|
1791
|
+
index: F.index,
|
|
1792
|
+
internalItem: F.internalItem
|
|
1793
1793
|
}) : e.rowProps)
|
|
1794
1794
|
};
|
|
1795
1795
|
return S(U, {
|
|
1796
1796
|
key: h.props.key
|
|
1797
|
-
}, [l.item ? l.item(h) :
|
|
1797
|
+
}, [l.item ? l.item(h) : w(Ma, h.props, l), u(b) && l["expanded-row"]?.(F)]);
|
|
1798
1798
|
})]);
|
|
1799
1799
|
}), {};
|
|
1800
1800
|
}
|
|
@@ -1825,7 +1825,7 @@ const gt = _({
|
|
|
1825
1825
|
} = Ie(e), {
|
|
1826
1826
|
densityClasses: r
|
|
1827
1827
|
} = Xt(e);
|
|
1828
|
-
return K(() =>
|
|
1828
|
+
return K(() => w(e.tag, {
|
|
1829
1829
|
class: G(["v-table", {
|
|
1830
1830
|
"v-table--fixed-height": !!e.height,
|
|
1831
1831
|
"v-table--fixed-header": e.fixedHeader,
|
|
@@ -1836,7 +1836,7 @@ const gt = _({
|
|
|
1836
1836
|
"v-table--striped-even": e.striped === "even",
|
|
1837
1837
|
"v-table--striped-odd": e.striped === "odd"
|
|
1838
1838
|
}, n.value, r.value, e.class]),
|
|
1839
|
-
style:
|
|
1839
|
+
style: we(e.style)
|
|
1840
1840
|
}, {
|
|
1841
1841
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1842
1842
|
class: "v-table__wrapper",
|
|
@@ -1880,7 +1880,7 @@ function Ga(e, t, a) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
function Ka(e, t) {
|
|
1882
1882
|
return {
|
|
1883
|
-
items:
|
|
1883
|
+
items: V(() => Ga(e, e.items, t.value))
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
1886
|
const Wa = _({
|
|
@@ -1894,7 +1894,7 @@ const Wa = _({
|
|
|
1894
1894
|
...da(),
|
|
1895
1895
|
...Ba(),
|
|
1896
1896
|
...Ha(),
|
|
1897
|
-
...
|
|
1897
|
+
...ka(),
|
|
1898
1898
|
...Ia(),
|
|
1899
1899
|
...gt(),
|
|
1900
1900
|
...yt()
|
|
@@ -1938,15 +1938,15 @@ const Wa = _({
|
|
|
1938
1938
|
sortFunctions: f,
|
|
1939
1939
|
sortRawFunctions: y,
|
|
1940
1940
|
filterFunctions: b
|
|
1941
|
-
} =
|
|
1941
|
+
} = Ra(e, {
|
|
1942
1942
|
groupBy: n,
|
|
1943
1943
|
showSelect: C(() => e.showSelect),
|
|
1944
1944
|
showExpand: C(() => e.showExpand)
|
|
1945
1945
|
}), {
|
|
1946
1946
|
items: v
|
|
1947
|
-
} = Ka(e, m),
|
|
1947
|
+
} = Ka(e, m), F = C(() => e.search), {
|
|
1948
1948
|
filteredItems: h
|
|
1949
|
-
} = oa(e, v,
|
|
1949
|
+
} = oa(e, v, F, {
|
|
1950
1950
|
transform: (H) => H.columns,
|
|
1951
1951
|
customKeyFilter: b
|
|
1952
1952
|
}), {
|
|
@@ -1960,7 +1960,7 @@ const Wa = _({
|
|
|
1960
1960
|
sortByWithGroups: D,
|
|
1961
1961
|
opened: P,
|
|
1962
1962
|
extractRows: L,
|
|
1963
|
-
isGroupOpen:
|
|
1963
|
+
isGroupOpen: N,
|
|
1964
1964
|
toggleGroup: p
|
|
1965
1965
|
} = fa({
|
|
1966
1966
|
groupBy: n,
|
|
@@ -1977,34 +1977,34 @@ const Wa = _({
|
|
|
1977
1977
|
sortRawFunctions: y
|
|
1978
1978
|
}), {
|
|
1979
1979
|
flatItems: g
|
|
1980
|
-
} = ga(x, n, P, () => !!l["group-summary"]),
|
|
1980
|
+
} = ga(x, n, P, () => !!l["group-summary"]), k = V(() => g.value.length), {
|
|
1981
1981
|
startIndex: T,
|
|
1982
|
-
stopIndex:
|
|
1982
|
+
stopIndex: R,
|
|
1983
1983
|
pageCount: le,
|
|
1984
1984
|
setItemsPerPage: be
|
|
1985
1985
|
} = ya({
|
|
1986
1986
|
page: s,
|
|
1987
1987
|
itemsPerPage: o,
|
|
1988
|
-
itemsLength:
|
|
1988
|
+
itemsLength: k
|
|
1989
1989
|
}), {
|
|
1990
1990
|
paginatedItems: M
|
|
1991
1991
|
} = xa({
|
|
1992
1992
|
items: g,
|
|
1993
1993
|
startIndex: T,
|
|
1994
|
-
stopIndex:
|
|
1994
|
+
stopIndex: R,
|
|
1995
1995
|
itemsPerPage: o
|
|
1996
|
-
}), X =
|
|
1996
|
+
}), X = V(() => L(M.value)), {
|
|
1997
1997
|
isSelected: he,
|
|
1998
1998
|
select: pt,
|
|
1999
1999
|
selectAll: xt,
|
|
2000
2000
|
toggleSelect: St,
|
|
2001
2001
|
someSelected: Pt,
|
|
2002
|
-
allSelected:
|
|
2003
|
-
} =
|
|
2002
|
+
allSelected: kt
|
|
2003
|
+
} = wa(e, {
|
|
2004
2004
|
allItems: v,
|
|
2005
2005
|
currentPage: X
|
|
2006
2006
|
}), {
|
|
2007
|
-
isExpanded:
|
|
2007
|
+
isExpanded: wt,
|
|
2008
2008
|
toggleExpand: It
|
|
2009
2009
|
} = ua(e);
|
|
2010
2010
|
ma({
|
|
@@ -2012,7 +2012,7 @@ const Wa = _({
|
|
|
2012
2012
|
itemsPerPage: o,
|
|
2013
2013
|
sortBy: r,
|
|
2014
2014
|
groupBy: n,
|
|
2015
|
-
search:
|
|
2015
|
+
search: F
|
|
2016
2016
|
}), Se({
|
|
2017
2017
|
VDataTableRows: {
|
|
2018
2018
|
hideNoData: C(() => e.hideNoData),
|
|
@@ -2021,7 +2021,7 @@ const Wa = _({
|
|
|
2021
2021
|
loadingText: C(() => e.loadingText)
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
|
-
const E =
|
|
2024
|
+
const E = V(() => ({
|
|
2025
2025
|
page: s.value,
|
|
2026
2026
|
itemsPerPage: o.value,
|
|
2027
2027
|
sortBy: r.value,
|
|
@@ -2029,14 +2029,14 @@ const Wa = _({
|
|
|
2029
2029
|
toggleSort: I,
|
|
2030
2030
|
setItemsPerPage: be,
|
|
2031
2031
|
someSelected: Pt.value,
|
|
2032
|
-
allSelected:
|
|
2032
|
+
allSelected: kt.value,
|
|
2033
2033
|
isSelected: he,
|
|
2034
2034
|
select: pt,
|
|
2035
2035
|
selectAll: xt,
|
|
2036
2036
|
toggleSelect: St,
|
|
2037
|
-
isExpanded:
|
|
2037
|
+
isExpanded: wt,
|
|
2038
2038
|
toggleExpand: It,
|
|
2039
|
-
isGroupOpen:
|
|
2039
|
+
isGroupOpen: N,
|
|
2040
2040
|
toggleGroup: p,
|
|
2041
2041
|
items: X.value.map((H) => H.raw),
|
|
2042
2042
|
internalItems: X.value,
|
|
@@ -2045,8 +2045,8 @@ const Wa = _({
|
|
|
2045
2045
|
headers: d.value
|
|
2046
2046
|
}));
|
|
2047
2047
|
return K(() => {
|
|
2048
|
-
const H = Ee.filterProps(e), Ft =
|
|
2049
|
-
return
|
|
2048
|
+
const H = Ee.filterProps(e), Ft = Ne.filterProps(e), Vt = Re.filterProps(e), Dt = $e.filterProps(e);
|
|
2049
|
+
return w($e, B({
|
|
2050
2050
|
class: ["v-data-table", {
|
|
2051
2051
|
"v-data-table--show-select": e.showSelect,
|
|
2052
2052
|
"v-data-table--loading": e.loading
|
|
@@ -2058,10 +2058,10 @@ const Wa = _({
|
|
|
2058
2058
|
top: () => l.top?.(E.value),
|
|
2059
2059
|
default: () => l.default ? l.default(E.value) : S(U, null, [l.colgroup?.(E.value), !e.hideDefaultHeader && S("thead", {
|
|
2060
2060
|
key: "thead"
|
|
2061
|
-
}, [
|
|
2061
|
+
}, [w(Ne, Ft, l)]), l.thead?.(E.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(E.value), l.body ? l.body(E.value) : w(Re, B(a, Vt, {
|
|
2062
2062
|
items: M.value
|
|
2063
2063
|
}), l), l["body.append"]?.(E.value)]), l.tbody?.(E.value), l.tfoot?.(E.value)]),
|
|
2064
|
-
bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [
|
|
2064
|
+
bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [w(Yt, null, null), w(Ee, H, {
|
|
2065
2065
|
prepend: l["footer.prepend"]
|
|
2066
2066
|
})])
|
|
2067
2067
|
});
|
|
@@ -2161,7 +2161,7 @@ const Qa = _({
|
|
|
2161
2161
|
themeClasses: s
|
|
2162
2162
|
} = Ie(e), {
|
|
2163
2163
|
t: o
|
|
2164
|
-
} = Z(), c =
|
|
2164
|
+
} = Z(), c = V(() => me(z(e.type).join(",")));
|
|
2165
2165
|
return K(() => {
|
|
2166
2166
|
const m = !l.default || e.loading, d = e.boilerplate || !m ? {} : {
|
|
2167
2167
|
ariaLive: "polite",
|
|
@@ -2194,21 +2194,36 @@ function Xa(e, t, a) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
2196
|
function ll() {
|
|
2197
|
-
const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"), l = j(), n =
|
|
2197
|
+
const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"), l = j(), n = V(() => {
|
|
2198
2198
|
const i = Object.values(t.value).filter((o) => o.args).map((o) => o.args).reduce((o, c) => ({ ...o, ...c }), {}), u = { ...e.value, ...i };
|
|
2199
2199
|
let s = l.value;
|
|
2200
2200
|
return !u || Object.keys(u).length === 0 || Object.keys(u).forEach((o) => {
|
|
2201
|
-
const c = u[o].value, m = u[o]?.comparison ?? "=";
|
|
2202
|
-
c && (s = s.filter((
|
|
2203
|
-
|
|
2204
|
-
if (!
|
|
2205
|
-
let
|
|
2206
|
-
Object.hasOwn(
|
|
2207
|
-
value:
|
|
2208
|
-
item:
|
|
2201
|
+
const c = u[o].value, m = u[o]?.comparison ?? "=", d = a.headers.find((f) => (f.advancedFilter?.key ?? f.key) === o);
|
|
2202
|
+
c && (s = s.filter((f) => {
|
|
2203
|
+
let y = !0;
|
|
2204
|
+
if (!d) return y;
|
|
2205
|
+
let b = la(f);
|
|
2206
|
+
Object.hasOwn(d, "filterReturnValue") && typeof d.filterReturnValue == "function" && (b[o] = d.filterReturnValue({
|
|
2207
|
+
value: f[o],
|
|
2208
|
+
item: f
|
|
2209
2209
|
}));
|
|
2210
|
-
let
|
|
2211
|
-
|
|
2210
|
+
let v = o.split(".").reduce((F, h) => F && F[h], b);
|
|
2211
|
+
switch (console.log(v), d.advancedFilter?.component) {
|
|
2212
|
+
case "datepicker":
|
|
2213
|
+
y = r(v, c);
|
|
2214
|
+
break;
|
|
2215
|
+
case "comparison":
|
|
2216
|
+
y = Xa(
|
|
2217
|
+
Number(v),
|
|
2218
|
+
Number(c),
|
|
2219
|
+
m
|
|
2220
|
+
);
|
|
2221
|
+
break;
|
|
2222
|
+
default:
|
|
2223
|
+
Array.isArray(c) ? y = c.map((F) => F.toString().toLowerCase()).includes(v.toString().toLowerCase()) : y = v?.toString().toLowerCase().includes(c.toString().toLowerCase());
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
return y;
|
|
2212
2227
|
}));
|
|
2213
2228
|
}), s;
|
|
2214
2229
|
}), r = (i, u) => {
|
|
@@ -2251,17 +2266,17 @@ export {
|
|
|
2251
2266
|
Fa as b,
|
|
2252
2267
|
ca as c,
|
|
2253
2268
|
ha as d,
|
|
2254
|
-
|
|
2269
|
+
Ra as e,
|
|
2255
2270
|
Ka as f,
|
|
2256
2271
|
fa as g,
|
|
2257
2272
|
ya as h,
|
|
2258
2273
|
ga as i,
|
|
2259
|
-
|
|
2274
|
+
wa as j,
|
|
2260
2275
|
ua as k,
|
|
2261
2276
|
ma as l,
|
|
2262
2277
|
Ee as m,
|
|
2263
|
-
|
|
2264
|
-
|
|
2278
|
+
Ne as n,
|
|
2279
|
+
Re as o,
|
|
2265
2280
|
Va as p,
|
|
2266
2281
|
$e as q,
|
|
2267
2282
|
ot as r,
|