@ianicdev/datatables2 0.10.6 → 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.
- package/dist/{Columns-BNLjDwAl.cjs → Columns-BQBgwIE4.cjs} +1 -1
- package/dist/{Columns--EhzKJV3.js → Columns-CeOoSZPT.js} +1 -1
- package/dist/{Comparison-DBF0E27s.cjs → Comparison-TwSFYOo8.cjs} +1 -1
- package/dist/{Comparison-DMqunDhb.js → Comparison-w8X0sSEz.js} +6 -6
- package/dist/Datepicker-Bfg7S8gY.cjs +2 -0
- package/dist/Datepicker-DZj1h3YE.js +1425 -0
- package/dist/{Download-Y-QC-KIB.cjs → Download-CtOrEQa0.cjs} +1 -1
- package/dist/{Download-CRJDmReD.js → Download-h5jMMWzV.js} +3 -3
- package/dist/{Options-DMKsbXSj.js → Options-Cf8cNif9.js} +1 -1
- package/dist/{Options-CN0OjNlD.cjs → Options-DgUkT0h1.cjs} +1 -1
- package/dist/{RefreshTable-CefzM07a.js → RefreshTable-B5qFMtYy.js} +2 -2
- package/dist/{RefreshTable-CvDVCIEq.cjs → RefreshTable-CyPzzQ1S.cjs} +1 -1
- package/dist/{Search-DOLfmfAx.js → Search--1ntexbx.js} +2 -2
- package/dist/{Search-DciGQPJD.cjs → Search-YN4Jt4eC.cjs} +1 -1
- package/dist/{Table-BbH9gyVI.js → Table-5pQ_bwxC.js} +3 -3
- package/dist/{Table-C8PPf5h-.cjs → Table-WgtgmVfz.cjs} +1 -1
- package/dist/{TableServer--L2K6EH_.cjs → TableServer-7AzrveN2.cjs} +1 -1
- package/dist/{TableServer-_BIBoBr0.js → TableServer-Bewaghu8.js} +3 -3
- package/dist/{cellRender-Cc2BuKK6.js → cellRender-Cy88VFEF.js} +451 -452
- package/dist/cellRender-kbJfFjXc.cjs +1 -0
- package/dist/{dataTables-sTblyiQt.js → dataTables-ej1IEGzo.js} +1385 -1388
- package/dist/dataTables-z7fPX2Wi.cjs +4 -0
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
- package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
- package/dist/{index-DH0TEy1G.js → index-C3S1kkaI.js} +2 -2
- package/dist/index-CiJ4XY6g.cjs +1 -0
- package/dist/index-DfPhvU77.js +5865 -0
- package/dist/{index-XHj8Ffjf.cjs → index-EmvtFwx8.cjs} +1 -1
- package/dist/{index.es-BH0LP-1n.cjs → index.es-BtDW7HTQ.cjs} +1 -1
- package/dist/{index.es-C0t9o23l.js → index.es-Bv6Mb9BC.js} +2 -2
- package/dist/{jspdf-CZAMs0JY.cjs → jspdf-BsORS480.cjs} +2 -2
- package/dist/{jspdf-DbVrl9ga.js → jspdf-D9i2dan7.js} +2 -2
- package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
- package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
- package/package.json +12 -12
- package/dist/Datepicker-DSIbxyvl.cjs +0 -2
- package/dist/Datepicker-DTHZOdYd.js +0 -1411
- package/dist/cellRender-BPm3BB9S.cjs +0 -1
- package/dist/dataTables-C-WYkByZ.cjs +0 -4
- package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
- package/dist/index-DUKjDmN_.js +0 -4575
- package/dist/index-Ddgg9-AG.cjs +0 -1
- package/dist/sortablejs-C0WJhxmJ.js +0 -1254
- package/dist/sortablejs-Da6TYh39.cjs +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { toRef as
|
|
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
|
|
3
|
-
import { V as qe, a as aa, b as de, c as la, m as na, u as ra, d as
|
|
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
|
|
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 =
|
|
18
|
-
function l(
|
|
19
|
-
const c = new Set(a.value), m = le(
|
|
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((
|
|
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(
|
|
29
|
-
const u = le(
|
|
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(
|
|
33
|
-
l(
|
|
32
|
+
function r(f) {
|
|
33
|
+
l(f, !n(f));
|
|
34
34
|
}
|
|
35
|
-
const
|
|
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,
|
|
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
|
|
69
|
+
function i(m) {
|
|
70
70
|
return n.value.has(m.id);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function f(m) {
|
|
73
73
|
const h = new Set(n.value);
|
|
74
|
-
|
|
74
|
+
i(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
|
|
75
75
|
}
|
|
76
76
|
function u(m) {
|
|
77
|
-
function h(
|
|
78
|
-
const
|
|
79
|
-
for (const b of
|
|
80
|
-
"type" in b && b.type === "group" ?
|
|
81
|
-
return [...new Set(
|
|
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:
|
|
89
|
+
toggleGroup: f,
|
|
90
90
|
opened: n,
|
|
91
91
|
groupBy: a,
|
|
92
92
|
extractRows: u,
|
|
93
|
-
isGroupOpen:
|
|
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 = [],
|
|
115
|
-
return n.forEach((
|
|
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:
|
|
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((
|
|
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
|
|
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(
|
|
162
|
-
Me(u, c) || (u && u.search !== c.search && (t.value = 1),
|
|
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)),
|
|
191
|
-
ce([t,
|
|
192
|
-
t.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
|
|
195
|
-
a.value =
|
|
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,
|
|
198
|
+
t.value = he(t.value + 1, 1, i.value);
|
|
199
199
|
}
|
|
200
200
|
function c() {
|
|
201
|
-
t.value = he(t.value - 1, 1,
|
|
201
|
+
t.value = he(t.value - 1, 1, i.value);
|
|
202
202
|
}
|
|
203
|
-
function m(
|
|
204
|
-
t.value = he(
|
|
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:
|
|
211
|
+
pageCount: i,
|
|
212
212
|
itemsLength: l,
|
|
213
213
|
nextPage: u,
|
|
214
214
|
prevPage: c,
|
|
215
215
|
setPage: m,
|
|
216
|
-
setItemsPerPage:
|
|
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,
|
|
232
|
-
return ce(
|
|
233
|
-
t.emit("update:currentItems",
|
|
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:
|
|
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
|
|
330
|
-
return
|
|
331
|
-
}, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)),
|
|
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((
|
|
343
|
+
return Z(y).every((D) => n.value.has(D.value));
|
|
345
344
|
}
|
|
346
345
|
function m(y) {
|
|
347
|
-
return Z(y).some((
|
|
346
|
+
return Z(y).some((D) => n.value.has(D.value));
|
|
348
347
|
}
|
|
349
|
-
function h(y,
|
|
350
|
-
const
|
|
348
|
+
function h(y, D) {
|
|
349
|
+
const T = f.value.select({
|
|
351
350
|
items: y,
|
|
352
|
-
value:
|
|
351
|
+
value: D,
|
|
353
352
|
selected: new Set(n.value)
|
|
354
353
|
});
|
|
355
|
-
n.value =
|
|
354
|
+
n.value = T;
|
|
356
355
|
}
|
|
357
|
-
function
|
|
356
|
+
function s(y, D, T) {
|
|
358
357
|
const P = [];
|
|
359
|
-
if (
|
|
360
|
-
const [A, N] = [u.value,
|
|
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 =
|
|
362
|
+
P.push(y), u.value = D;
|
|
364
363
|
h(P, !c([y]));
|
|
365
364
|
}
|
|
366
|
-
function
|
|
367
|
-
const
|
|
365
|
+
function o(y) {
|
|
366
|
+
const D = f.value.selectAll({
|
|
368
367
|
value: y,
|
|
369
368
|
allItems: r.value,
|
|
370
|
-
currentPage:
|
|
369
|
+
currentPage: i.value,
|
|
371
370
|
selected: new Set(n.value)
|
|
372
371
|
});
|
|
373
|
-
n.value =
|
|
372
|
+
n.value = D;
|
|
374
373
|
}
|
|
375
374
|
const b = V(() => n.value.size > 0), d = V(() => {
|
|
376
|
-
const y =
|
|
375
|
+
const y = f.value.allSelected({
|
|
377
376
|
allItems: r.value,
|
|
378
|
-
currentPage:
|
|
377
|
+
currentPage: i.value
|
|
379
378
|
});
|
|
380
379
|
return !!y.length && c(y);
|
|
381
|
-
}),
|
|
382
|
-
toggleSelect:
|
|
380
|
+
}), v = C(() => f.value.showSelectAll), I = {
|
|
381
|
+
toggleSelect: s,
|
|
383
382
|
select: h,
|
|
384
|
-
selectAll:
|
|
383
|
+
selectAll: o,
|
|
385
384
|
isSelected: c,
|
|
386
385
|
isSomeSelected: m,
|
|
387
386
|
someSelected: b,
|
|
388
387
|
allSelected: d,
|
|
389
|
-
showSelectAll:
|
|
388
|
+
showSelectAll: v,
|
|
390
389
|
lastSelectedIndex: u,
|
|
391
|
-
selectStrategy:
|
|
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 =
|
|
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,
|
|
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
|
|
454
|
-
if (
|
|
455
|
-
|
|
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:
|
|
458
|
+
mode: v
|
|
460
459
|
} = Da(n.value, m);
|
|
461
|
-
d ?
|
|
460
|
+
d ? v === "prepend" ? h.unshift({
|
|
462
461
|
key: c.key,
|
|
463
|
-
order:
|
|
462
|
+
order: o
|
|
464
463
|
}) : h.push({
|
|
465
464
|
key: c.key,
|
|
466
|
-
order:
|
|
465
|
+
order: o
|
|
467
466
|
}) : h = [{
|
|
468
467
|
key: c.key,
|
|
469
|
-
order:
|
|
468
|
+
order: o
|
|
470
469
|
}];
|
|
471
470
|
}
|
|
472
471
|
a.value = h, r && (r.value = 1);
|
|
473
472
|
};
|
|
474
|
-
function
|
|
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:
|
|
480
|
-
isSorted:
|
|
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((
|
|
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
|
|
513
|
-
if (h === "desc" && ([
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
516
|
-
if (c = !0,
|
|
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
|
|
520
|
-
if (
|
|
521
|
-
if (c = !0,
|
|
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 && (
|
|
524
|
-
return re(
|
|
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((
|
|
528
|
-
let [
|
|
529
|
-
return
|
|
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:
|
|
638
|
+
n: i
|
|
640
639
|
} = X(), {
|
|
641
|
-
isRtl:
|
|
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:
|
|
657
|
-
} = p[0],
|
|
658
|
-
if (!
|
|
659
|
-
const
|
|
660
|
-
m.value = d(
|
|
661
|
-
}),
|
|
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
|
|
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 *
|
|
665
|
+
Number(((p - x * g) / x).toFixed(2))
|
|
667
666
|
));
|
|
668
667
|
}
|
|
669
|
-
const
|
|
670
|
-
if (
|
|
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 (
|
|
674
|
-
return
|
|
675
|
-
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2),
|
|
676
|
-
if (
|
|
677
|
-
return [...
|
|
678
|
-
if (n.value -
|
|
679
|
-
const
|
|
680
|
-
return [
|
|
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
|
|
683
|
-
return [
|
|
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,
|
|
687
|
-
p.preventDefault(), n.value = 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:
|
|
690
|
+
updateRef: D
|
|
692
691
|
} = Ca();
|
|
693
692
|
pe({
|
|
694
693
|
VPaginationBtn: {
|
|
695
|
-
color:
|
|
696
|
-
border:
|
|
697
|
-
density:
|
|
698
|
-
size:
|
|
699
|
-
variant:
|
|
700
|
-
rounded:
|
|
701
|
-
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
|
|
705
|
-
const
|
|
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:
|
|
711
|
+
ref: g,
|
|
713
712
|
ellipsis: !0,
|
|
714
713
|
icon: !0,
|
|
715
714
|
disabled: !0
|
|
716
715
|
}
|
|
717
716
|
};
|
|
718
717
|
{
|
|
719
|
-
const
|
|
718
|
+
const w = p === n.value;
|
|
720
719
|
return {
|
|
721
|
-
isActive:
|
|
720
|
+
isActive: w,
|
|
722
721
|
key: p,
|
|
723
|
-
page:
|
|
722
|
+
page: i(p),
|
|
724
723
|
props: {
|
|
725
|
-
ref:
|
|
724
|
+
ref: g,
|
|
726
725
|
ellipsis: !1,
|
|
727
726
|
icon: !0,
|
|
728
727
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
729
|
-
color:
|
|
730
|
-
"aria-current":
|
|
731
|
-
"aria-label": r(
|
|
732
|
-
onClick: (
|
|
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 <=
|
|
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:
|
|
741
|
-
onClick: (
|
|
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:
|
|
748
|
-
onClick: (
|
|
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:
|
|
755
|
-
onClick: (
|
|
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:
|
|
762
|
-
onClick: (
|
|
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 -
|
|
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 <
|
|
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(() =>
|
|
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) :
|
|
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) :
|
|
796
|
+
}, [a.prev ? a.prev(P.value.prev) : k(W, B({
|
|
798
797
|
_as: "VPaginationBtn"
|
|
799
|
-
}, P.value.prev), null)]),
|
|
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) :
|
|
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) :
|
|
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) :
|
|
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:
|
|
899
|
-
stopIndex:
|
|
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((
|
|
904
|
-
value:
|
|
905
|
-
title:
|
|
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
|
-
...
|
|
908
|
-
title: isNaN(Number(
|
|
906
|
+
...s,
|
|
907
|
+
title: isNaN(Number(s.title)) ? l(s.title) : s.title
|
|
909
908
|
}));
|
|
910
909
|
return K(() => {
|
|
911
|
-
const
|
|
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": (
|
|
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 ?
|
|
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
|
-
}, [
|
|
928
|
+
}, [k(Oe, B({
|
|
931
929
|
modelValue: n.value,
|
|
932
|
-
"onUpdate:modelValue": (
|
|
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(
|
|
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
|
|
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"),
|
|
993
|
+
}, "DataTable-header"), st = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), ot = {
|
|
996
994
|
title: "",
|
|
997
995
|
sortable: !1
|
|
998
996
|
}, Oa = {
|
|
999
|
-
...
|
|
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
|
|
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,
|
|
1063
|
-
let
|
|
1060
|
+
function a(r, i) {
|
|
1061
|
+
let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
1064
1062
|
if (r)
|
|
1065
|
-
if (
|
|
1063
|
+
if (f !== "none" && (r.fixed = f), r.fixed === !0 && (r.fixed = "start"), r.fixed === i)
|
|
1066
1064
|
if (r.children)
|
|
1067
|
-
if (
|
|
1065
|
+
if (i === "start")
|
|
1068
1066
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1069
|
-
a(r.children[u],
|
|
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],
|
|
1070
|
+
a(r.children[u], i, i);
|
|
1073
1071
|
else
|
|
1074
|
-
!t &&
|
|
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 (
|
|
1074
|
+
if (i === "start")
|
|
1077
1075
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1078
|
-
a(r.children[u],
|
|
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],
|
|
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
|
|
1122
|
-
const
|
|
1119
|
+
let i = n.count();
|
|
1120
|
+
const f = [];
|
|
1123
1121
|
let u = 1;
|
|
1124
|
-
for (;
|
|
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 (
|
|
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
|
|
1135
|
-
const
|
|
1136
|
-
n.enqueue(
|
|
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,
|
|
1136
|
+
u += 1, i -= 1;
|
|
1139
1137
|
}
|
|
1140
|
-
l += 1, a.push(
|
|
1138
|
+
l += 1, a.push(f);
|
|
1141
1139
|
}
|
|
1142
1140
|
return {
|
|
1143
|
-
columns: e.map((
|
|
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,
|
|
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(
|
|
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({}),
|
|
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
|
|
1182
|
-
a.value =
|
|
1183
|
-
const b =
|
|
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 && (
|
|
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
|
|
1185
|
+
const f = {
|
|
1188
1186
|
headers: a,
|
|
1189
1187
|
columns: l,
|
|
1190
1188
|
sortFunctions: n,
|
|
1191
1189
|
sortRawFunctions: r,
|
|
1192
|
-
filterFunctions:
|
|
1190
|
+
filterFunctions: i
|
|
1193
1191
|
};
|
|
1194
|
-
return Q(
|
|
1192
|
+
return Q(st, f), f;
|
|
1195
1193
|
}
|
|
1196
1194
|
function ge() {
|
|
1197
|
-
const e = U(
|
|
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:
|
|
1233
|
+
isSorted: i
|
|
1235
1234
|
} = nt(), {
|
|
1236
|
-
someSelected:
|
|
1235
|
+
someSelected: f,
|
|
1237
1236
|
allSelected: u,
|
|
1238
1237
|
selectAll: c,
|
|
1239
1238
|
showSelectAll: m
|
|
1240
1239
|
} = ve(), {
|
|
1241
1240
|
columns: h,
|
|
1242
|
-
headers:
|
|
1241
|
+
headers: s
|
|
1243
1242
|
} = ge(), {
|
|
1244
|
-
loaderClasses:
|
|
1243
|
+
loaderClasses: o
|
|
1245
1244
|
} = Ut(e);
|
|
1246
|
-
function b(x,
|
|
1245
|
+
function b(x, g) {
|
|
1247
1246
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1248
|
-
const
|
|
1247
|
+
const w = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1249
1248
|
return {
|
|
1250
1249
|
position: "sticky",
|
|
1251
|
-
left:
|
|
1252
|
-
right:
|
|
1253
|
-
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${
|
|
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,
|
|
1257
|
-
x.key === "Enter" && !e.disableSort && n(
|
|
1255
|
+
function d(x, g) {
|
|
1256
|
+
x.key === "Enter" && !e.disableSort && n(g, x);
|
|
1258
1257
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const
|
|
1261
|
-
return
|
|
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:
|
|
1268
|
-
mobile:
|
|
1266
|
+
displayClasses: D,
|
|
1267
|
+
mobile: T
|
|
1269
1268
|
} = fe(e), P = V(() => ({
|
|
1270
|
-
headers:
|
|
1269
|
+
headers: s.value,
|
|
1271
1270
|
columns: h.value,
|
|
1272
1271
|
toggleSort: n,
|
|
1273
|
-
isSorted:
|
|
1272
|
+
isSorted: i,
|
|
1274
1273
|
sortBy: r.value,
|
|
1275
|
-
someSelected:
|
|
1274
|
+
someSelected: f.value,
|
|
1276
1275
|
allSelected: u.value,
|
|
1277
1276
|
selectAll: c,
|
|
1278
|
-
getSortIcon:
|
|
1277
|
+
getSortIcon: v
|
|
1279
1278
|
})), A = V(() => ["v-data-table__th", {
|
|
1280
1279
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1281
|
-
},
|
|
1280
|
+
}, D.value, o.value]), N = (x) => {
|
|
1282
1281
|
let {
|
|
1283
|
-
column:
|
|
1284
|
-
x:
|
|
1285
|
-
y:
|
|
1282
|
+
column: g,
|
|
1283
|
+
x: w,
|
|
1284
|
+
y: F
|
|
1286
1285
|
} = x;
|
|
1287
|
-
const R =
|
|
1288
|
-
return
|
|
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:
|
|
1289
|
+
align: g.align,
|
|
1291
1290
|
class: [{
|
|
1292
|
-
"v-data-table__th--sortable":
|
|
1293
|
-
"v-data-table__th--sorted":
|
|
1294
|
-
"v-data-table__th--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(
|
|
1298
|
-
minWidth: E(
|
|
1299
|
-
maxWidth: E(
|
|
1300
|
-
...b(
|
|
1296
|
+
width: E(g.width),
|
|
1297
|
+
minWidth: E(g.minWidth),
|
|
1298
|
+
maxWidth: E(g.maxWidth),
|
|
1299
|
+
...b(g, F)
|
|
1301
1300
|
},
|
|
1302
|
-
colspan:
|
|
1303
|
-
rowspan:
|
|
1304
|
-
fixed:
|
|
1305
|
-
nowrap:
|
|
1306
|
-
lastFixed:
|
|
1307
|
-
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:
|
|
1311
|
-
onClick:
|
|
1312
|
-
onKeydown:
|
|
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.${
|
|
1316
|
-
column:
|
|
1314
|
+
const H = `header.${g.key}`, J = {
|
|
1315
|
+
column: g,
|
|
1317
1316
|
selectAll: c,
|
|
1318
|
-
isSorted:
|
|
1317
|
+
isSorted: i,
|
|
1319
1318
|
toggleSort: n,
|
|
1320
1319
|
sortBy: r.value,
|
|
1321
|
-
someSelected:
|
|
1320
|
+
someSelected: f.value,
|
|
1322
1321
|
allSelected: u.value,
|
|
1323
|
-
getSortIcon:
|
|
1322
|
+
getSortIcon: v
|
|
1324
1323
|
};
|
|
1325
|
-
return a[H] ? a[H](J) : ae ? "" :
|
|
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:
|
|
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, [
|
|
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
|
|
1337
|
-
}, null), e.multiSort &&
|
|
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 ===
|
|
1340
|
+
}, [r.value.findIndex((Y) => Y.key === g.key) + 1])]);
|
|
1342
1341
|
}
|
|
1343
1342
|
});
|
|
1344
1343
|
}, p = () => {
|
|
1345
|
-
const x = V(() => h.value.filter((
|
|
1346
|
-
return
|
|
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:
|
|
1348
|
+
colspan: s.value.length + 1
|
|
1350
1349
|
}, e.headerProps), {
|
|
1351
1350
|
default: () => [S("div", {
|
|
1352
1351
|
class: "v-data-table-header__content"
|
|
1353
|
-
}, [
|
|
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: () =>
|
|
1364
|
+
append: g ? () => k(de, {
|
|
1367
1365
|
color: e.color,
|
|
1368
1366
|
density: "compact",
|
|
1369
1367
|
modelValue: u.value,
|
|
1370
|
-
indeterminate:
|
|
1371
|
-
"onUpdate:modelValue": c
|
|
1372
|
-
}, null),
|
|
1373
|
-
chip: (
|
|
1374
|
-
onClick:
|
|
1375
|
-
onMousedown: (
|
|
1376
|
-
|
|
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: () => [
|
|
1380
|
-
class: G(["v-data-table__td-sort-icon",
|
|
1381
|
-
icon:
|
|
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(() =>
|
|
1389
|
-
column:
|
|
1390
|
-
x:
|
|
1391
|
-
y:
|
|
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
|
-
}, [
|
|
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:
|
|
1433
|
-
isSomeSelected:
|
|
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 =
|
|
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((
|
|
1444
|
-
if (
|
|
1445
|
-
const
|
|
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:
|
|
1448
|
+
icon: o,
|
|
1451
1449
|
onClick: b
|
|
1452
1450
|
}
|
|
1453
|
-
}) ??
|
|
1451
|
+
}) ?? k(ee, {
|
|
1454
1452
|
class: "v-data-table-group-header-row__column",
|
|
1455
1453
|
colspan: h.value
|
|
1456
1454
|
}, {
|
|
1457
|
-
default: () => [
|
|
1455
|
+
default: () => [k(W, {
|
|
1458
1456
|
size: "small",
|
|
1459
1457
|
variant: "text",
|
|
1460
|
-
icon:
|
|
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 (
|
|
1465
|
-
const
|
|
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:
|
|
1469
|
-
indeterminate:
|
|
1470
|
-
"onUpdate:modelValue":
|
|
1466
|
+
modelValue: b,
|
|
1467
|
+
indeterminate: d,
|
|
1468
|
+
"onUpdate:modelValue": v
|
|
1471
1469
|
}
|
|
1472
|
-
}) ??
|
|
1470
|
+
}) ?? k(ee, {
|
|
1473
1471
|
class: "v-data-table__td--select-row",
|
|
1474
1472
|
noPadding: !0
|
|
1475
1473
|
}, {
|
|
1476
|
-
default: () => [
|
|
1474
|
+
default: () => [k(de, {
|
|
1477
1475
|
density: e.density,
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
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:
|
|
1518
|
-
someSelected:
|
|
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:
|
|
1526
|
-
sortBy:
|
|
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((
|
|
1539
|
-
const y = e.item,
|
|
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,
|
|
1544
|
-
column:
|
|
1542
|
+
value: ue(y.columns, v.key),
|
|
1543
|
+
column: v,
|
|
1545
1544
|
isSelected: r,
|
|
1546
|
-
toggleSelect:
|
|
1545
|
+
toggleSelect: i,
|
|
1547
1546
|
isExpanded: m,
|
|
1548
1547
|
toggleExpand: h
|
|
1549
1548
|
}, A = {
|
|
1550
|
-
column:
|
|
1549
|
+
column: v,
|
|
1551
1550
|
selectAll: c,
|
|
1552
1551
|
isSorted: b,
|
|
1553
|
-
toggleSort:
|
|
1554
|
-
sortBy:
|
|
1555
|
-
someSelected:
|
|
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:
|
|
1564
|
-
}) : e.cellProps, p = typeof
|
|
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
|
-
}) :
|
|
1570
|
-
return
|
|
1571
|
-
align:
|
|
1572
|
-
indent:
|
|
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":
|
|
1575
|
-
"v-data-table__td--select-row":
|
|
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:
|
|
1578
|
-
fixedOffset:
|
|
1579
|
-
fixedEndOffset:
|
|
1580
|
-
lastFixed:
|
|
1581
|
-
firstFixedEnd:
|
|
1582
|
-
maxWidth: n.value ? void 0 :
|
|
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:
|
|
1585
|
-
nowrap:
|
|
1586
|
-
width: n.value ? void 0 :
|
|
1583
|
+
empty: g,
|
|
1584
|
+
nowrap: v.nowrap,
|
|
1585
|
+
width: n.value ? void 0 : v.width
|
|
1587
1586
|
}, N, p), {
|
|
1588
1587
|
default: () => {
|
|
1589
|
-
if (
|
|
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(() =>
|
|
1595
|
+
onClick: ne(() => i(y), ["stop"])
|
|
1597
1596
|
}
|
|
1598
|
-
}) ??
|
|
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((
|
|
1602
|
+
onClick: ne((F) => i(y, e.index, F), ["stop"])
|
|
1604
1603
|
}, null);
|
|
1605
|
-
if (
|
|
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
|
-
}) ??
|
|
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[
|
|
1621
|
-
const
|
|
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[
|
|
1623
|
+
}, [a[T]?.(A) ?? v.title]), S("div", {
|
|
1625
1624
|
class: "v-data-table__td-value"
|
|
1626
|
-
}, [a[
|
|
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:
|
|
1666
|
-
isExpanded:
|
|
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:
|
|
1673
|
+
t: s
|
|
1675
1674
|
} = X(), {
|
|
1676
|
-
mobile:
|
|
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?.() ??
|
|
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"]?.() ??
|
|
1689
|
+
}, [l["no-data"]?.() ?? s(e.noDataText)])]) : S(z, null, [e.items.map((d, v) => {
|
|
1691
1690
|
if (d.type === "group") {
|
|
1692
|
-
const
|
|
1693
|
-
index:
|
|
1691
|
+
const D = {
|
|
1692
|
+
index: v,
|
|
1694
1693
|
item: d,
|
|
1695
1694
|
columns: n.value,
|
|
1696
|
-
isExpanded:
|
|
1697
|
-
toggleExpand:
|
|
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"](
|
|
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", () =>
|
|
1705
|
+
}, Be(a, ":groupHeader", () => D), b), l);
|
|
1707
1706
|
}
|
|
1708
1707
|
if (d.type === "group-summary") {
|
|
1709
|
-
const
|
|
1710
|
-
index:
|
|
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"]?.(
|
|
1714
|
+
return l["group-summary"]?.(D) ?? "";
|
|
1716
1715
|
}
|
|
1717
1716
|
const I = {
|
|
1718
|
-
index:
|
|
1717
|
+
index: v,
|
|
1719
1718
|
item: d.raw,
|
|
1720
1719
|
internalItem: d,
|
|
1721
1720
|
columns: n.value,
|
|
1722
|
-
isExpanded:
|
|
1723
|
-
toggleExpand:
|
|
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
|
-
|
|
1730
|
+
i(d);
|
|
1732
1731
|
} : void 0,
|
|
1733
|
-
index:
|
|
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:
|
|
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) :
|
|
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(() =>
|
|
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 :
|
|
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 ?
|
|
1821
|
+
key: e.returnObject ? oe(t, e.itemValue) : n,
|
|
1823
1822
|
index: a,
|
|
1824
1823
|
value: n,
|
|
1825
1824
|
selectable: r,
|
|
1826
|
-
columns:
|
|
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
|
-
...
|
|
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:
|
|
1881
|
-
multiSort:
|
|
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:
|
|
1890
|
-
headers:
|
|
1888
|
+
columns: s,
|
|
1889
|
+
headers: o,
|
|
1891
1890
|
sortFunctions: b,
|
|
1892
1891
|
sortRawFunctions: d,
|
|
1893
|
-
filterFunctions:
|
|
1892
|
+
filterFunctions: v
|
|
1894
1893
|
} = Ra(e, {
|
|
1895
1894
|
groupBy: n,
|
|
1896
|
-
showSelect:
|
|
1897
|
-
showExpand:
|
|
1895
|
+
showSelect: C(() => e.showSelect),
|
|
1896
|
+
showExpand: C(() => e.showExpand)
|
|
1898
1897
|
}), {
|
|
1899
1898
|
items: I
|
|
1900
|
-
} = Ka(e,
|
|
1901
|
-
filteredItems:
|
|
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:
|
|
1903
|
+
customKeyFilter: v
|
|
1905
1904
|
}), {
|
|
1906
|
-
toggleSort:
|
|
1905
|
+
toggleSort: T
|
|
1907
1906
|
} = Va({
|
|
1908
1907
|
initialSortOrder: r,
|
|
1909
|
-
sortBy:
|
|
1910
|
-
multiSort:
|
|
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:
|
|
1920
|
+
sortBy: i,
|
|
1922
1921
|
disableSort: h
|
|
1923
1922
|
}), {
|
|
1924
|
-
sortedItems:
|
|
1925
|
-
} = Fa(e,
|
|
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:
|
|
1934
|
-
} = va(
|
|
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:
|
|
1941
|
+
itemsLength: F
|
|
1943
1942
|
}), {
|
|
1944
1943
|
paginatedItems: J
|
|
1945
1944
|
} = pa({
|
|
1946
|
-
items:
|
|
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:
|
|
1966
|
+
sortBy: i,
|
|
1968
1967
|
groupBy: n,
|
|
1969
1968
|
search: y
|
|
1970
1969
|
}), pe({
|
|
1971
1970
|
VDataTableRows: {
|
|
1972
|
-
hideNoData:
|
|
1973
|
-
noDataText:
|
|
1974
|
-
loading:
|
|
1975
|
-
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:
|
|
1980
|
+
sortBy: i.value,
|
|
1982
1981
|
pageCount: be.value,
|
|
1983
|
-
toggleSort:
|
|
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:
|
|
1999
|
-
headers:
|
|
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
|
|
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
|
-
}, [
|
|
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) :
|
|
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, [
|
|
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:
|
|
2112
|
+
dimensionStyles: i
|
|
2114
2113
|
} = Zt(e), {
|
|
2115
|
-
elevationClasses:
|
|
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,
|
|
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,
|
|
2131
|
-
style: [r.value,
|
|
2132
|
-
},
|
|
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
|
|
2155
|
-
if (!
|
|
2156
|
-
const
|
|
2157
|
-
return !
|
|
2158
|
-
const { value: d, comparison:
|
|
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 && (
|
|
2162
|
-
const
|
|
2163
|
-
return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value:
|
|
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
|
-
}),
|
|
2164
|
+
}), s;
|
|
2166
2165
|
});
|
|
2167
|
-
function r(
|
|
2168
|
-
const b = Array.isArray(
|
|
2169
|
-
return d &&
|
|
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
|
|
2172
|
-
return Array.isArray(
|
|
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
|
|
2173
|
+
function f(s, o, b, d) {
|
|
2175
2174
|
switch (d.advancedFilter?.component) {
|
|
2176
2175
|
case "datepicker":
|
|
2177
|
-
return r(
|
|
2176
|
+
return r(s, o);
|
|
2178
2177
|
case "comparison":
|
|
2179
|
-
return Qa(Number(
|
|
2178
|
+
return Qa(Number(s), Number(o), b);
|
|
2180
2179
|
default:
|
|
2181
|
-
return s
|
|
2180
|
+
return i(s, o);
|
|
2182
2181
|
}
|
|
2183
2182
|
}
|
|
2184
|
-
function u(
|
|
2185
|
-
const b = Object.values(
|
|
2186
|
-
return { ...
|
|
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(
|
|
2189
|
-
return
|
|
2187
|
+
function c(s, o) {
|
|
2188
|
+
return o.split(".").reduce((b, d) => b && b[d], s);
|
|
2190
2189
|
}
|
|
2191
|
-
function m(
|
|
2192
|
-
const d =
|
|
2193
|
-
return
|
|
2194
|
-
value: o
|
|
2195
|
-
item:
|
|
2196
|
-
})), c(d,
|
|
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(
|
|
2199
|
-
return
|
|
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
|
-
(
|
|
2204
|
-
const b =
|
|
2205
|
-
JSON.stringify(b) !== JSON.stringify(d) && (l.value =
|
|
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 };
|