@ianicdev/datatables2 0.10.7 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Columns-BQBgwIE4.cjs → Columns-W_jSwaNc.cjs} +1 -1
- package/dist/{Columns-CeOoSZPT.js → Columns-dl3eMPe2.js} +1 -1
- package/dist/{Comparison-w8X0sSEz.js → Comparison-ChMG_TLF.js} +7 -7
- package/dist/{Comparison-TwSFYOo8.cjs → Comparison-Cz2qINPo.cjs} +1 -1
- package/dist/{Datepicker-DZj1h3YE.js → Datepicker-CHMHJOq1.js} +452 -448
- package/dist/Datepicker-DHZwRCiL.cjs +2 -0
- package/dist/{Download-h5jMMWzV.js → Download-DhsPo8yJ.js} +2 -2
- package/dist/{Download-CtOrEQa0.cjs → Download-kq1kmD5M.cjs} +1 -1
- package/dist/{Options-DgUkT0h1.cjs → Options-BNWiVRrF.cjs} +1 -1
- package/dist/{Options-Cf8cNif9.js → Options-DwiLD_hO.js} +1 -1
- package/dist/{RefreshTable-B5qFMtYy.js → RefreshTable-Cq6mrqWi.js} +2 -2
- package/dist/{RefreshTable-CyPzzQ1S.cjs → RefreshTable-OLZf9tHE.cjs} +1 -1
- package/dist/{Search--1ntexbx.js → Search-C5Nj3AJd.js} +2 -2
- package/dist/{Search-YN4Jt4eC.cjs → Search-DsKhSX_l.cjs} +1 -1
- package/dist/{Table-WgtgmVfz.cjs → Table-BnieRooB.cjs} +1 -1
- package/dist/{Table-5pQ_bwxC.js → Table-dk0Au7Sd.js} +3 -3
- package/dist/{TableServer-Bewaghu8.js → TableServer-B1QsOkJ2.js} +1324 -1319
- package/dist/TableServer-CW6o1KQR.cjs +20 -0
- package/dist/{cellRender-kbJfFjXc.cjs → cellRender-DGXXI6zI.cjs} +1 -1
- package/dist/{cellRender-Cy88VFEF.js → cellRender-n1kqNyoy.js} +289 -290
- package/dist/dataTables-BMvhNk0d.cjs +4 -0
- package/dist/{dataTables-ej1IEGzo.js → dataTables-RDdW6ocQ.js} +283 -277
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-EmvtFwx8.cjs → index-CXga_1To.cjs} +1 -1
- package/dist/index-DIHxM6eL.cjs +1 -0
- package/dist/{index-DfPhvU77.js → index-Doqj_5F5.js} +811 -785
- package/dist/{index-C3S1kkaI.js → index-Xn9pmgz0.js} +11 -11
- package/dist/{index.es-BtDW7HTQ.cjs → index.es-BCJd8pS0.cjs} +1 -1
- package/dist/{index.es-Bv6Mb9BC.js → index.es-CtLP1GTc.js} +1 -1
- package/dist/{jspdf-D9i2dan7.js → jspdf-3qJBK9tP.js} +6 -6
- package/dist/{jspdf-BsORS480.cjs → jspdf-DyYqWhF9.cjs} +4 -4
- package/package.json +10 -10
- package/dist/Datepicker-Bfg7S8gY.cjs +0 -2
- package/dist/TableServer-7AzrveN2.cjs +0 -20
- package/dist/dataTables-z7fPX2Wi.cjs +0 -4
- package/dist/index-CiJ4XY6g.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { toRef as C, provide 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
|
|
3
|
-
import { V as qe,
|
|
1
|
+
import { toRef as C, provide as X, toRaw as le, inject as U, ref as M, computed as V, toValue as Ft, watch as ce, shallowRef as He, onBeforeUpdate as Tt, createVNode as k, normalizeStyle as Pe, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Fe, watchEffect as Ct, capitalize as _t, Fragment as z, createTextVNode as Te, withModifiers as ne, toDisplayString as Bt, toRefs as Ot, defineComponent as Et, h as At } from "vue";
|
|
2
|
+
import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as J, aT as re, aU as $t, g as $, a0 as Ht, h as we, ah as fe, a as pe, aj as jt, aV as oe, u as K, a7 as W, x as Mt, y as ke, m as Ge, as as Gt, A as Kt, E as Ke, f as te, b as We, G as Wt, I as O, aW as Ce, S as Ie, aX as zt, ax as A, aY as qt, o as Ut, P as ze, L as Qt, D as Xt, an as De, d as _e, H as ye, a1 as xe, k as Jt, aA as se, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-RDdW6ocQ.js";
|
|
3
|
+
import { V as qe, b as aa, c as de, e as la, m as na, u as ra, d as oa, a as sa } from "./index-Doqj_5F5.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 ia = _({
|
|
9
9
|
expandOnClick: Boolean,
|
|
10
10
|
showExpand: Boolean,
|
|
11
11
|
expanded: {
|
|
@@ -13,14 +13,14 @@ const oa = _({
|
|
|
13
13
|
default: () => []
|
|
14
14
|
}
|
|
15
15
|
}, "DataTable-expand"), Ue = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
|
|
16
|
-
function
|
|
16
|
+
function ua(e) {
|
|
17
17
|
const t = C(() => e.expandOnClick), a = q(e, "expanded", e.expanded, (f) => new Set(f), (f) => [...f.values()]);
|
|
18
18
|
function l(f, u) {
|
|
19
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((o) => le(o) === m);
|
|
24
24
|
c.delete(h);
|
|
25
25
|
}
|
|
26
26
|
a.value = c;
|
|
@@ -39,25 +39,25 @@ function ia(e) {
|
|
|
39
39
|
isExpanded: n,
|
|
40
40
|
toggleExpand: r
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return X(Ue, i), i;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Qe() {
|
|
45
45
|
const e = U(Ue);
|
|
46
46
|
if (!e) throw new Error("foo");
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const da = _({
|
|
50
50
|
groupBy: {
|
|
51
51
|
type: Array,
|
|
52
52
|
default: () => []
|
|
53
53
|
}
|
|
54
|
-
}, "DataTable-group"),
|
|
55
|
-
function
|
|
54
|
+
}, "DataTable-group"), Xe = /* @__PURE__ */ Symbol.for("vuetify:data-table-group");
|
|
55
|
+
function ca(e) {
|
|
56
56
|
return {
|
|
57
57
|
groupBy: q(e, "groupBy")
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function fa(e) {
|
|
61
61
|
const {
|
|
62
62
|
disableSort: t,
|
|
63
63
|
groupBy: a,
|
|
@@ -74,11 +74,11 @@ function ca(e) {
|
|
|
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(o) {
|
|
78
|
+
const s = [];
|
|
79
|
+
for (const b of o.items)
|
|
80
|
+
"type" in b && b.type === "group" ? s.push(...h(b)) : s.push(b);
|
|
81
|
+
return [...new Set(s)];
|
|
82
82
|
}
|
|
83
83
|
return h({
|
|
84
84
|
items: m
|
|
@@ -92,14 +92,14 @@ function ca(e) {
|
|
|
92
92
|
extractRows: u,
|
|
93
93
|
isGroupOpen: i
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return X(Xe, c), c;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const e = U(
|
|
97
|
+
function Je() {
|
|
98
|
+
const e = U(Xe);
|
|
99
99
|
if (!e) throw new Error("Missing group!");
|
|
100
100
|
return e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function va(e, t) {
|
|
103
103
|
if (!e.length) return [];
|
|
104
104
|
const a = /* @__PURE__ */ new Map();
|
|
105
105
|
for (const l of e) {
|
|
@@ -111,7 +111,7 @@ 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 =
|
|
114
|
+
const n = va(e, t[0]), r = [], i = t.slice(1);
|
|
115
115
|
return n.forEach((f, u) => {
|
|
116
116
|
const c = t[0], m = `${l}_${c}_${u}`;
|
|
117
117
|
r.push({
|
|
@@ -133,7 +133,7 @@ function Ze(e, t, a) {
|
|
|
133
133
|
}))) : l.push(n);
|
|
134
134
|
return l;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ga(e, t, a, l) {
|
|
137
137
|
return {
|
|
138
138
|
flatItems: V(() => {
|
|
139
139
|
if (!t.value.length) return e.value;
|
|
@@ -142,7 +142,7 @@ function va(e, t, a, l) {
|
|
|
142
142
|
})
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ma(e) {
|
|
146
146
|
let {
|
|
147
147
|
page: t,
|
|
148
148
|
itemsPerPage: a,
|
|
@@ -165,7 +165,7 @@ function ga(e) {
|
|
|
165
165
|
immediate: !0
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const ba = _({
|
|
169
169
|
page: {
|
|
170
170
|
type: [Number, String],
|
|
171
171
|
default: 1
|
|
@@ -175,14 +175,14 @@ const ma = _({
|
|
|
175
175
|
default: 10
|
|
176
176
|
}
|
|
177
177
|
}, "DataTable-paginate"), et = /* @__PURE__ */ Symbol.for("vuetify:data-table-pagination");
|
|
178
|
-
function
|
|
178
|
+
function ha(e) {
|
|
179
179
|
const t = q(e, "page", void 0, (l) => Number(l ?? 1)), a = q(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
|
|
180
180
|
return {
|
|
181
181
|
page: t,
|
|
182
182
|
itemsPerPage: a
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ya(e) {
|
|
186
186
|
const {
|
|
187
187
|
page: t,
|
|
188
188
|
itemsPerPage: a,
|
|
@@ -191,8 +191,8 @@ function ha(e) {
|
|
|
191
191
|
ce([t, i], () => {
|
|
192
192
|
t.value > i.value && (t.value = i.value);
|
|
193
193
|
});
|
|
194
|
-
function f(
|
|
195
|
-
a.value =
|
|
194
|
+
function f(o) {
|
|
195
|
+
a.value = o, t.value = 1;
|
|
196
196
|
}
|
|
197
197
|
function u() {
|
|
198
198
|
t.value = he(t.value + 1, 1, i.value);
|
|
@@ -200,8 +200,8 @@ function ha(e) {
|
|
|
200
200
|
function c() {
|
|
201
201
|
t.value = he(t.value - 1, 1, i.value);
|
|
202
202
|
}
|
|
203
|
-
function m(
|
|
204
|
-
t.value = he(
|
|
203
|
+
function m(o) {
|
|
204
|
+
t.value = he(o, 1, i.value);
|
|
205
205
|
}
|
|
206
206
|
const h = {
|
|
207
207
|
page: t,
|
|
@@ -215,14 +215,14 @@ function ha(e) {
|
|
|
215
215
|
setPage: m,
|
|
216
216
|
setItemsPerPage: f
|
|
217
217
|
};
|
|
218
|
-
return
|
|
218
|
+
return X(et, h), h;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function pa() {
|
|
221
221
|
const e = U(et);
|
|
222
222
|
if (!e) throw new Error("Missing pagination!");
|
|
223
223
|
return e;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function xa(e) {
|
|
226
226
|
const t = je("usePaginatedItems"), {
|
|
227
227
|
items: a,
|
|
228
228
|
startIndex: l,
|
|
@@ -237,7 +237,7 @@ function pa(e) {
|
|
|
237
237
|
paginatedItems: i
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const Sa = {
|
|
241
241
|
showSelectAll: !1,
|
|
242
242
|
allSelected: () => [],
|
|
243
243
|
select: (e) => {
|
|
@@ -283,7 +283,7 @@ const xa = {
|
|
|
283
283
|
selected: l
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
},
|
|
286
|
+
}, Pa = {
|
|
287
287
|
showSelectAll: !0,
|
|
288
288
|
allSelected: (e) => {
|
|
289
289
|
let {
|
|
@@ -308,7 +308,7 @@ const xa = {
|
|
|
308
308
|
} = e;
|
|
309
309
|
return new Set(t ? a.map((l) => l.value) : []);
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, wa = _({
|
|
312
312
|
showSelect: Boolean,
|
|
313
313
|
selectStrategy: {
|
|
314
314
|
type: [String, Object],
|
|
@@ -320,7 +320,7 @@ const xa = {
|
|
|
320
320
|
},
|
|
321
321
|
valueComparator: Function
|
|
322
322
|
}, "DataTable-select"), at = /* @__PURE__ */ Symbol.for("vuetify:data-table-selection");
|
|
323
|
-
function
|
|
323
|
+
function ka(e, t) {
|
|
324
324
|
let {
|
|
325
325
|
allItems: a,
|
|
326
326
|
currentPage: l
|
|
@@ -332,9 +332,9 @@ function wa(e, t) {
|
|
|
332
332
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
333
333
|
switch (e.selectStrategy) {
|
|
334
334
|
case "single":
|
|
335
|
-
return xa;
|
|
336
|
-
case "all":
|
|
337
335
|
return Sa;
|
|
336
|
+
case "all":
|
|
337
|
+
return Pa;
|
|
338
338
|
default:
|
|
339
339
|
return tt;
|
|
340
340
|
}
|
|
@@ -353,16 +353,16 @@ function wa(e, t) {
|
|
|
353
353
|
});
|
|
354
354
|
n.value = T;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function o(y, D, T) {
|
|
357
357
|
const P = [];
|
|
358
|
-
if (D = D ?? l.value.findIndex((
|
|
359
|
-
const [
|
|
360
|
-
P.push(...l.value.slice(
|
|
358
|
+
if (D = D ?? l.value.findIndex((E) => E.value === y.value), e.selectStrategy !== "single" && T?.shiftKey && u.value !== null) {
|
|
359
|
+
const [E, N] = [u.value, D].sort((p, x) => p - x);
|
|
360
|
+
P.push(...l.value.slice(E, N + 1).filter((p) => p.selectable));
|
|
361
361
|
} else
|
|
362
362
|
P.push(y), u.value = D;
|
|
363
363
|
h(P, !c([y]));
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function s(y) {
|
|
366
366
|
const D = f.value.selectAll({
|
|
367
367
|
value: y,
|
|
368
368
|
allItems: r.value,
|
|
@@ -378,9 +378,9 @@ function wa(e, t) {
|
|
|
378
378
|
});
|
|
379
379
|
return !!y.length && c(y);
|
|
380
380
|
}), v = C(() => f.value.showSelectAll), I = {
|
|
381
|
-
toggleSelect:
|
|
381
|
+
toggleSelect: o,
|
|
382
382
|
select: h,
|
|
383
|
-
selectAll:
|
|
383
|
+
selectAll: s,
|
|
384
384
|
isSelected: c,
|
|
385
385
|
isSomeSelected: m,
|
|
386
386
|
someSelected: b,
|
|
@@ -389,14 +389,14 @@ function wa(e, t) {
|
|
|
389
389
|
lastSelectedIndex: u,
|
|
390
390
|
selectStrategy: f
|
|
391
391
|
};
|
|
392
|
-
return
|
|
392
|
+
return X(at, I), I;
|
|
393
393
|
}
|
|
394
394
|
function ve() {
|
|
395
395
|
const e = U(at);
|
|
396
396
|
if (!e) throw new Error("Missing selection!");
|
|
397
397
|
return e;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const Ia = _({
|
|
400
400
|
initialSortOrder: {
|
|
401
401
|
type: String,
|
|
402
402
|
default: "asc",
|
|
@@ -413,7 +413,7 @@ const ka = _({
|
|
|
413
413
|
},
|
|
414
414
|
mustSort: Boolean
|
|
415
415
|
}, "DataTable-sort"), lt = /* @__PURE__ */ Symbol.for("vuetify:data-table-sort");
|
|
416
|
-
function
|
|
416
|
+
function Da(e) {
|
|
417
417
|
const t = C(() => e.initialSortOrder), a = q(e, "sortBy"), l = C(() => e.mustSort), n = C(() => e.multiSort);
|
|
418
418
|
return {
|
|
419
419
|
initialSortOrder: t,
|
|
@@ -422,7 +422,7 @@ function Ia(e) {
|
|
|
422
422
|
mustSort: l
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Va(e, t) {
|
|
426
426
|
if (!$t(e))
|
|
427
427
|
return {
|
|
428
428
|
active: !!e
|
|
@@ -437,7 +437,7 @@ function Da(e, t) {
|
|
|
437
437
|
mode: r ? l === "append" ? "prepend" : "append" : l
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Fa(e) {
|
|
441
441
|
const {
|
|
442
442
|
initialSortOrder: t,
|
|
443
443
|
sortBy: a,
|
|
@@ -449,23 +449,23 @@ function Va(e) {
|
|
|
449
449
|
let h = a.value.map((d) => ({
|
|
450
450
|
...d
|
|
451
451
|
})) ?? [];
|
|
452
|
-
const
|
|
453
|
-
if (
|
|
454
|
-
|
|
452
|
+
const o = h.find((d) => d.key === c.key), s = t.value, b = t.value === "desc" ? "asc" : "desc";
|
|
453
|
+
if (o)
|
|
454
|
+
o.order === b ? l.value && h.length === 1 ? o.order = t.value : h = h.filter((d) => d.key !== c.key) : o.order = b;
|
|
455
455
|
else {
|
|
456
456
|
const {
|
|
457
457
|
active: d,
|
|
458
458
|
mode: v
|
|
459
|
-
} =
|
|
459
|
+
} = Va(n.value, m);
|
|
460
460
|
d ? v === "prepend" ? h.unshift({
|
|
461
461
|
key: c.key,
|
|
462
|
-
order:
|
|
462
|
+
order: s
|
|
463
463
|
}) : h.push({
|
|
464
464
|
key: c.key,
|
|
465
|
-
order:
|
|
465
|
+
order: s
|
|
466
466
|
}) : h = [{
|
|
467
467
|
key: c.key,
|
|
468
|
-
order:
|
|
468
|
+
order: s
|
|
469
469
|
}];
|
|
470
470
|
}
|
|
471
471
|
a.value = h, r && (r.value = 1);
|
|
@@ -478,17 +478,17 @@ function Va(e) {
|
|
|
478
478
|
toggleSort: i,
|
|
479
479
|
isSorted: f
|
|
480
480
|
};
|
|
481
|
-
return
|
|
481
|
+
return X(lt, u), u;
|
|
482
482
|
}
|
|
483
483
|
function nt() {
|
|
484
484
|
const e = U(lt);
|
|
485
485
|
if (!e) throw new Error("Missing sort!");
|
|
486
486
|
return e;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
const n =
|
|
488
|
+
function Ta(e, t, a, l) {
|
|
489
|
+
const n = J();
|
|
490
490
|
return {
|
|
491
|
-
sortedItems: V(() => a.value.length ?
|
|
491
|
+
sortedItems: V(() => a.value.length ? Ca(t.value, a.value, n.current.value, {
|
|
492
492
|
transform: l?.transform,
|
|
493
493
|
sortFunctions: {
|
|
494
494
|
...e.customKeySort,
|
|
@@ -498,7 +498,7 @@ function Fa(e, t, a, l) {
|
|
|
498
498
|
}) : t.value)
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Ca(e, t, a, l) {
|
|
502
502
|
const n = new Intl.Collator(a, {
|
|
503
503
|
sensitivity: "accent",
|
|
504
504
|
usage: "sort"
|
|
@@ -508,19 +508,19 @@ function Ta(e, t, a, l) {
|
|
|
508
508
|
let c = !1;
|
|
509
509
|
const m = t[u].key, h = t[u].order ?? "asc";
|
|
510
510
|
if (h === !1) continue;
|
|
511
|
-
let
|
|
512
|
-
if (h === "desc" && ([
|
|
511
|
+
let o = ue(i[1], m), s = ue(f[1], m), b = i[0].raw, d = f[0].raw;
|
|
512
|
+
if (h === "desc" && ([o, s] = [s, o], [b, d] = [d, b]), l?.sortRawFunctions?.[m]) {
|
|
513
513
|
const v = l.sortRawFunctions[m](b, d);
|
|
514
514
|
if (v == null) continue;
|
|
515
515
|
if (c = !0, v) return v;
|
|
516
516
|
}
|
|
517
517
|
if (l?.sortFunctions?.[m]) {
|
|
518
|
-
const v = l.sortFunctions[m](
|
|
518
|
+
const v = l.sortFunctions[m](o, s);
|
|
519
519
|
if (v == null) continue;
|
|
520
520
|
if (c = !0, v) return v;
|
|
521
521
|
}
|
|
522
|
-
if (!c && (
|
|
523
|
-
return re(
|
|
522
|
+
if (!c && (o instanceof Date && s instanceof Date && (o = o.getTime(), s = s.getTime()), [o, s] = [o, s].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), o !== s))
|
|
523
|
+
return re(o) && re(s) ? 0 : re(o) ? -1 : re(s) ? 1 : !isNaN(o) && !isNaN(s) ? Number(o) - Number(s) : n.compare(o, s);
|
|
524
524
|
}
|
|
525
525
|
return 0;
|
|
526
526
|
}).map((i) => {
|
|
@@ -528,7 +528,7 @@ function Ta(e, t, a, l) {
|
|
|
528
528
|
return f;
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function _a() {
|
|
532
532
|
const e = M([]);
|
|
533
533
|
Tt(() => e.value = []);
|
|
534
534
|
function t(a, l) {
|
|
@@ -539,7 +539,7 @@ function Ca() {
|
|
|
539
539
|
updateRef: t
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const Ba = _({
|
|
543
543
|
activeColor: String,
|
|
544
544
|
start: {
|
|
545
545
|
type: [Number, String],
|
|
@@ -620,7 +620,7 @@ const _a = _({
|
|
|
620
620
|
})
|
|
621
621
|
}, "VPagination"), Oe = $()({
|
|
622
622
|
name: "VPagination",
|
|
623
|
-
props:
|
|
623
|
+
props: Ba(),
|
|
624
624
|
emits: {
|
|
625
625
|
"update:modelValue": (e) => !0,
|
|
626
626
|
first: (e) => !0,
|
|
@@ -636,7 +636,7 @@ const _a = _({
|
|
|
636
636
|
const n = q(e, "modelValue"), {
|
|
637
637
|
t: r,
|
|
638
638
|
n: i
|
|
639
|
-
} =
|
|
639
|
+
} = J(), {
|
|
640
640
|
isRtl: f
|
|
641
641
|
} = Ht(), {
|
|
642
642
|
themeClasses: u
|
|
@@ -657,7 +657,7 @@ const _a = _({
|
|
|
657
657
|
if (!w) return;
|
|
658
658
|
const F = g.width, R = w.offsetWidth + parseFloat(getComputedStyle(w).marginRight) * 2;
|
|
659
659
|
m.value = d(F, R);
|
|
660
|
-
}),
|
|
660
|
+
}), o = V(() => parseInt(e.length, 10)), s = V(() => parseInt(e.start, 10)), b = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : d(c.value, 58));
|
|
661
661
|
function d(p, x) {
|
|
662
662
|
const g = e.showFirstLastPage ? 5 : 3;
|
|
663
663
|
return Math.max(0, Math.floor(
|
|
@@ -666,20 +666,20 @@ const _a = _({
|
|
|
666
666
|
));
|
|
667
667
|
}
|
|
668
668
|
const v = V(() => {
|
|
669
|
-
if (
|
|
669
|
+
if (o.value <= 0 || isNaN(o.value) || o.value > Number.MAX_SAFE_INTEGER) return [];
|
|
670
670
|
if (b.value <= 0) return [];
|
|
671
671
|
if (b.value === 1) return [n.value];
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
674
|
-
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, w =
|
|
672
|
+
if (o.value <= b.value)
|
|
673
|
+
return oe(o.value, s.value);
|
|
674
|
+
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, w = o.value - x;
|
|
675
675
|
if (g - n.value >= 0)
|
|
676
|
-
return [...
|
|
676
|
+
return [...oe(Math.max(1, b.value - 1), s.value), e.ellipsis, o.value];
|
|
677
677
|
if (n.value - w >= (p ? 1 : 0)) {
|
|
678
|
-
const F = b.value - 1, R =
|
|
679
|
-
return [
|
|
678
|
+
const F = b.value - 1, R = o.value - F + s.value;
|
|
679
|
+
return [s.value, e.ellipsis, ...oe(F, R)];
|
|
680
680
|
} else {
|
|
681
|
-
const F = Math.max(1, b.value - 2), R = F === 1 ? n.value : n.value - Math.ceil(F / 2) +
|
|
682
|
-
return [
|
|
681
|
+
const F = Math.max(1, b.value - 2), R = F === 1 ? n.value : n.value - Math.ceil(F / 2) + s.value;
|
|
682
|
+
return [s.value, e.ellipsis, ...oe(F, R), e.ellipsis, o.value];
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
685
|
function I(p, x, g) {
|
|
@@ -688,7 +688,7 @@ const _a = _({
|
|
|
688
688
|
const {
|
|
689
689
|
refs: y,
|
|
690
690
|
updateRef: D
|
|
691
|
-
} =
|
|
691
|
+
} = _a();
|
|
692
692
|
pe({
|
|
693
693
|
VPaginationBtn: {
|
|
694
694
|
color: C(() => e.color),
|
|
@@ -733,11 +733,11 @@ const _a = _({
|
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
})), P = V(() => {
|
|
736
|
-
const p = !!e.disabled || n.value <=
|
|
736
|
+
const p = !!e.disabled || n.value <= s.value, x = !!e.disabled || n.value >= s.value + o.value - 1;
|
|
737
737
|
return {
|
|
738
738
|
first: e.showFirstLastPage ? {
|
|
739
739
|
icon: f.value ? e.lastIcon : e.firstIcon,
|
|
740
|
-
onClick: (g) => I(g,
|
|
740
|
+
onClick: (g) => I(g, s.value, "first"),
|
|
741
741
|
disabled: p,
|
|
742
742
|
"aria-label": r(e.firstAriaLabel),
|
|
743
743
|
"aria-disabled": p
|
|
@@ -758,19 +758,19 @@ const _a = _({
|
|
|
758
758
|
},
|
|
759
759
|
last: e.showFirstLastPage ? {
|
|
760
760
|
icon: f.value ? e.firstIcon : e.lastIcon,
|
|
761
|
-
onClick: (g) => I(g,
|
|
761
|
+
onClick: (g) => I(g, s.value + o.value - 1, "last"),
|
|
762
762
|
disabled: x,
|
|
763
763
|
"aria-label": r(e.lastAriaLabel),
|
|
764
764
|
"aria-disabled": x
|
|
765
765
|
} : void 0
|
|
766
766
|
};
|
|
767
767
|
});
|
|
768
|
-
function
|
|
769
|
-
const p = n.value -
|
|
768
|
+
function E() {
|
|
769
|
+
const p = n.value - s.value;
|
|
770
770
|
y.value[p]?.$el.focus();
|
|
771
771
|
}
|
|
772
772
|
function N(p) {
|
|
773
|
-
p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(
|
|
773
|
+
p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(E)) : p.key === Ce.right && !e.disabled && n.value < s.value + o.value - 1 && (n.value = n.value + 1, Fe(E));
|
|
774
774
|
}
|
|
775
775
|
return K(() => k(e.tag, {
|
|
776
776
|
ref: h,
|
|
@@ -882,7 +882,7 @@ const _a = _({
|
|
|
882
882
|
}]
|
|
883
883
|
},
|
|
884
884
|
showCurrentPage: Boolean
|
|
885
|
-
}, "VDataTableFooter"),
|
|
885
|
+
}, "VDataTableFooter"), Ee = $()({
|
|
886
886
|
name: "VDataTableFooter",
|
|
887
887
|
props: rt(),
|
|
888
888
|
setup(e, t) {
|
|
@@ -891,7 +891,7 @@ const _a = _({
|
|
|
891
891
|
} = t;
|
|
892
892
|
const {
|
|
893
893
|
t: l
|
|
894
|
-
} =
|
|
894
|
+
} = J(), {
|
|
895
895
|
page: n,
|
|
896
896
|
pageCount: r,
|
|
897
897
|
startIndex: i,
|
|
@@ -899,15 +899,15 @@ const _a = _({
|
|
|
899
899
|
itemsLength: u,
|
|
900
900
|
itemsPerPage: c,
|
|
901
901
|
setItemsPerPage: m
|
|
902
|
-
} =
|
|
903
|
-
value:
|
|
904
|
-
title:
|
|
902
|
+
} = pa(), h = V(() => e.itemsPerPageOptions.map((o) => typeof o == "number" ? {
|
|
903
|
+
value: o,
|
|
904
|
+
title: o === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(o)
|
|
905
905
|
} : {
|
|
906
|
-
...
|
|
907
|
-
title: isNaN(Number(
|
|
906
|
+
...o,
|
|
907
|
+
title: isNaN(Number(o.title)) ? l(o.title) : o.title
|
|
908
908
|
}));
|
|
909
909
|
return K(() => {
|
|
910
|
-
const
|
|
910
|
+
const o = Oe.filterProps(e);
|
|
911
911
|
return S("div", {
|
|
912
912
|
class: "v-data-table-footer"
|
|
913
913
|
}, [a.prepend?.(), S("div", {
|
|
@@ -916,7 +916,7 @@ const _a = _({
|
|
|
916
916
|
items: h.value,
|
|
917
917
|
itemColor: e.color,
|
|
918
918
|
modelValue: c.value,
|
|
919
|
-
"onUpdate:modelValue": (
|
|
919
|
+
"onUpdate:modelValue": (s) => m(Number(s)),
|
|
920
920
|
density: "compact",
|
|
921
921
|
variant: "outlined",
|
|
922
922
|
"aria-label": l(e.itemsPerPageText),
|
|
@@ -927,7 +927,7 @@ const _a = _({
|
|
|
927
927
|
class: "v-data-table-footer__pagination"
|
|
928
928
|
}, [k(Oe, B({
|
|
929
929
|
modelValue: n.value,
|
|
930
|
-
"onUpdate:modelValue": (
|
|
930
|
+
"onUpdate:modelValue": (s) => n.value = s,
|
|
931
931
|
density: "comfortable",
|
|
932
932
|
firstAriaLabel: e.firstPageLabel,
|
|
933
933
|
lastAriaLabel: e.lastPageLabel,
|
|
@@ -938,7 +938,7 @@ const _a = _({
|
|
|
938
938
|
showFirstLastPage: !0,
|
|
939
939
|
totalVisible: e.showCurrentPage ? 1 : 0,
|
|
940
940
|
variant: "plain"
|
|
941
|
-
}, Ie(
|
|
941
|
+
}, Ie(o, ["color"])), null)])]);
|
|
942
942
|
}), {};
|
|
943
943
|
}
|
|
944
944
|
}), ee = zt({
|
|
@@ -978,23 +978,23 @@ const _a = _({
|
|
|
978
978
|
"v-data-table-column--empty": e.empty
|
|
979
979
|
}, `v-data-table-column--align-${e.align}`]),
|
|
980
980
|
style: {
|
|
981
|
-
height:
|
|
982
|
-
width:
|
|
983
|
-
maxWidth:
|
|
984
|
-
left: n === "start" ?
|
|
985
|
-
right: n === "end" ?
|
|
986
|
-
paddingInlineStart: e.indent ?
|
|
981
|
+
height: A(e.height),
|
|
982
|
+
width: A(e.width),
|
|
983
|
+
maxWidth: A(e.maxWidth),
|
|
984
|
+
left: n === "start" ? A(e.fixedOffset || null) : void 0,
|
|
985
|
+
right: n === "end" ? A(e.fixedEndOffset || null) : void 0,
|
|
986
|
+
paddingInlineStart: e.indent ? A(e.indent) : void 0
|
|
987
987
|
}
|
|
988
988
|
}, {
|
|
989
989
|
default: () => [a.default?.()]
|
|
990
990
|
});
|
|
991
|
-
}),
|
|
991
|
+
}), Oa = _({
|
|
992
992
|
headers: Array
|
|
993
|
-
}, "DataTable-header"),
|
|
993
|
+
}, "DataTable-header"), ot = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), st = {
|
|
994
994
|
title: "",
|
|
995
995
|
sortable: !1
|
|
996
|
-
},
|
|
997
|
-
...
|
|
996
|
+
}, Ea = {
|
|
997
|
+
...st,
|
|
998
998
|
width: 48
|
|
999
999
|
};
|
|
1000
1000
|
function Aa() {
|
|
@@ -1045,17 +1045,17 @@ function it(e) {
|
|
|
1045
1045
|
a.key && t.add(a.key), a.children && it(a.children, t);
|
|
1046
1046
|
return t;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function La(e) {
|
|
1049
1049
|
if (e.key) {
|
|
1050
|
-
if (e.key === "data-table-group") return
|
|
1051
|
-
if (["data-table-expand", "data-table-select"].includes(e.key)) return
|
|
1050
|
+
if (e.key === "data-table-group") return st;
|
|
1051
|
+
if (["data-table-expand", "data-table-select"].includes(e.key)) return Ea;
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
function Ve(e) {
|
|
1055
1055
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1056
1056
|
return e.children ? Math.max(t, ...e.children.map((a) => Ve(a, t + 1))) : t;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Na(e) {
|
|
1059
1059
|
let t = !1;
|
|
1060
1060
|
function a(r, i) {
|
|
1061
1061
|
let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
@@ -1111,7 +1111,7 @@ function dt(e) {
|
|
|
1111
1111
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1112
1112
|
return t;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Ra(e, t) {
|
|
1115
1115
|
const a = [];
|
|
1116
1116
|
let l = 0;
|
|
1117
1117
|
const n = Aa(e);
|
|
@@ -1129,9 +1129,9 @@ function Na(e, t) {
|
|
|
1129
1129
|
rowspan: h ?? 1,
|
|
1130
1130
|
colspan: c.children ? Se(c).length : 1
|
|
1131
1131
|
}), c.children)
|
|
1132
|
-
for (const
|
|
1133
|
-
const
|
|
1134
|
-
n.enqueue(
|
|
1132
|
+
for (const o of c.children) {
|
|
1133
|
+
const s = m % 1 + u / Math.pow(10, l + 2);
|
|
1134
|
+
n.enqueue(o, l + h + s);
|
|
1135
1135
|
}
|
|
1136
1136
|
u += 1, i -= 1;
|
|
1137
1137
|
}
|
|
@@ -1146,7 +1146,7 @@ function ct(e) {
|
|
|
1146
1146
|
const t = [];
|
|
1147
1147
|
for (const a of e) {
|
|
1148
1148
|
const l = {
|
|
1149
|
-
...
|
|
1149
|
+
...La(a),
|
|
1150
1150
|
...a
|
|
1151
1151
|
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, i = {
|
|
1152
1152
|
...l,
|
|
@@ -1159,7 +1159,7 @@ function ct(e) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
return t;
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function $a(e, t) {
|
|
1163
1163
|
const a = M([]), l = M([]), n = M({}), r = M({}), i = M({});
|
|
1164
1164
|
Ct(() => {
|
|
1165
1165
|
const c = (e.headers || Object.keys(e.items[0] ?? {}).map((d) => ({
|
|
@@ -1175,10 +1175,10 @@ function Ra(e, t) {
|
|
|
1175
1175
|
key: "data-table-expand"
|
|
1176
1176
|
});
|
|
1177
1177
|
const h = ct(c);
|
|
1178
|
-
|
|
1179
|
-
const
|
|
1180
|
-
a.value =
|
|
1181
|
-
const b =
|
|
1178
|
+
Na(h);
|
|
1179
|
+
const o = Math.max(...h.map((d) => Ve(d))) + 1, s = Ra(h, o);
|
|
1180
|
+
a.value = s.headers, l.value = s.columns;
|
|
1181
|
+
const b = s.headers.flat(1);
|
|
1182
1182
|
for (const d of b)
|
|
1183
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));
|
|
1184
1184
|
});
|
|
@@ -1189,10 +1189,10 @@ function Ra(e, t) {
|
|
|
1189
1189
|
sortRawFunctions: r,
|
|
1190
1190
|
filterFunctions: i
|
|
1191
1191
|
};
|
|
1192
|
-
return
|
|
1192
|
+
return X(ot, f), f;
|
|
1193
1193
|
}
|
|
1194
1194
|
function ge() {
|
|
1195
|
-
const e = U(
|
|
1195
|
+
const e = U(ot);
|
|
1196
1196
|
if (!e) throw new Error("Missing headers!");
|
|
1197
1197
|
return e;
|
|
1198
1198
|
}
|
|
@@ -1217,8 +1217,8 @@ const ft = _({
|
|
|
1217
1217
|
sticky: Boolean,
|
|
1218
1218
|
...te(),
|
|
1219
1219
|
...De(),
|
|
1220
|
-
...
|
|
1221
|
-
}, "VDataTableHeaders"),
|
|
1220
|
+
...Xt()
|
|
1221
|
+
}, "VDataTableHeaders"), Ae = $()({
|
|
1222
1222
|
name: "VDataTableHeaders",
|
|
1223
1223
|
props: ft(),
|
|
1224
1224
|
setup(e, t) {
|
|
@@ -1227,7 +1227,7 @@ const ft = _({
|
|
|
1227
1227
|
} = t;
|
|
1228
1228
|
const {
|
|
1229
1229
|
t: l
|
|
1230
|
-
} =
|
|
1230
|
+
} = J(), {
|
|
1231
1231
|
toggleSort: n,
|
|
1232
1232
|
sortBy: r,
|
|
1233
1233
|
isSorted: i
|
|
@@ -1238,17 +1238,17 @@ const ft = _({
|
|
|
1238
1238
|
showSelectAll: m
|
|
1239
1239
|
} = ve(), {
|
|
1240
1240
|
columns: h,
|
|
1241
|
-
headers:
|
|
1241
|
+
headers: o
|
|
1242
1242
|
} = ge(), {
|
|
1243
|
-
loaderClasses:
|
|
1243
|
+
loaderClasses: s
|
|
1244
1244
|
} = Ut(e);
|
|
1245
1245
|
function b(x, g) {
|
|
1246
1246
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1247
1247
|
const w = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1248
1248
|
return {
|
|
1249
1249
|
position: "sticky",
|
|
1250
|
-
left: w === "start" ?
|
|
1251
|
-
right: w === "end" ?
|
|
1250
|
+
left: w === "start" ? A(x.fixedOffset) : void 0,
|
|
1251
|
+
right: w === "end" ? A(x.fixedEndOffset) : void 0,
|
|
1252
1252
|
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
@@ -1266,7 +1266,7 @@ const ft = _({
|
|
|
1266
1266
|
displayClasses: D,
|
|
1267
1267
|
mobile: T
|
|
1268
1268
|
} = fe(e), P = V(() => ({
|
|
1269
|
-
headers:
|
|
1269
|
+
headers: o.value,
|
|
1270
1270
|
columns: h.value,
|
|
1271
1271
|
toggleSort: n,
|
|
1272
1272
|
isSorted: i,
|
|
@@ -1275,9 +1275,9 @@ const ft = _({
|
|
|
1275
1275
|
allSelected: u.value,
|
|
1276
1276
|
selectAll: c,
|
|
1277
1277
|
getSortIcon: v
|
|
1278
|
-
})),
|
|
1278
|
+
})), E = V(() => ["v-data-table__th", {
|
|
1279
1279
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1280
|
-
}, D.value,
|
|
1280
|
+
}, D.value, s.value]), N = (x) => {
|
|
1281
1281
|
let {
|
|
1282
1282
|
column: g,
|
|
1283
1283
|
x: w,
|
|
@@ -1291,11 +1291,11 @@ const ft = _({
|
|
|
1291
1291
|
"v-data-table__th--sortable": g.sortable && !e.disableSort,
|
|
1292
1292
|
"v-data-table__th--sorted": i(g),
|
|
1293
1293
|
"v-data-table__th--fixed": g.fixed
|
|
1294
|
-
}, ...
|
|
1294
|
+
}, ...E.value],
|
|
1295
1295
|
style: {
|
|
1296
|
-
width:
|
|
1297
|
-
minWidth:
|
|
1298
|
-
maxWidth:
|
|
1296
|
+
width: A(g.width),
|
|
1297
|
+
minWidth: A(g.minWidth),
|
|
1298
|
+
maxWidth: A(g.maxWidth),
|
|
1299
1299
|
...b(g, F)
|
|
1300
1300
|
},
|
|
1301
1301
|
colspan: g.colspan,
|
|
@@ -1311,7 +1311,7 @@ const ft = _({
|
|
|
1311
1311
|
onKeydown: g.sortable ? (H) => d(H, g) : void 0
|
|
1312
1312
|
}, be), {
|
|
1313
1313
|
default: () => {
|
|
1314
|
-
const H = `header.${g.key}`,
|
|
1314
|
+
const H = `header.${g.key}`, Q = {
|
|
1315
1315
|
column: g,
|
|
1316
1316
|
selectAll: c,
|
|
1317
1317
|
isSorted: i,
|
|
@@ -1321,7 +1321,7 @@ const ft = _({
|
|
|
1321
1321
|
allSelected: u.value,
|
|
1322
1322
|
getSortIcon: v
|
|
1323
1323
|
};
|
|
1324
|
-
return a[H] ? a[H](
|
|
1324
|
+
return a[H] ? a[H](Q) : ae ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(Q) ?? (m.value && k(de, {
|
|
1325
1325
|
color: e.color,
|
|
1326
1326
|
density: e.density,
|
|
1327
1327
|
modelValue: u.value,
|
|
@@ -1344,8 +1344,8 @@ const ft = _({
|
|
|
1344
1344
|
const x = V(() => h.value.filter((w) => w?.sortable && !e.disableSort)), g = h.value.find((w) => w.key === "data-table-select");
|
|
1345
1345
|
return k(ee, B({
|
|
1346
1346
|
tag: "th",
|
|
1347
|
-
class: [...
|
|
1348
|
-
colspan:
|
|
1347
|
+
class: [...E.value],
|
|
1348
|
+
colspan: o.value.length + 1
|
|
1349
1349
|
}, e.headerProps), {
|
|
1350
1350
|
default: () => [S("div", {
|
|
1351
1351
|
class: "v-data-table-header__content"
|
|
@@ -1383,7 +1383,7 @@ const ft = _({
|
|
|
1383
1383
|
})])]
|
|
1384
1384
|
});
|
|
1385
1385
|
};
|
|
1386
|
-
K(() => T.value ? S("tr", null, [k(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) :
|
|
1386
|
+
K(() => T.value ? S("tr", null, [k(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) : o.value.map((x, g) => S("tr", null, [x.map((w, F) => k(N, {
|
|
1387
1387
|
column: w,
|
|
1388
1388
|
x: F,
|
|
1389
1389
|
y: g
|
|
@@ -1391,7 +1391,7 @@ const ft = _({
|
|
|
1391
1391
|
class: "v-data-table-progress"
|
|
1392
1392
|
}, [S("th", {
|
|
1393
1393
|
colspan: h.value.length
|
|
1394
|
-
}, [k(
|
|
1394
|
+
}, [k(Qt, {
|
|
1395
1395
|
name: "v-data-table-progress",
|
|
1396
1396
|
absolute: !0,
|
|
1397
1397
|
active: !0,
|
|
@@ -1415,7 +1415,7 @@ const ft = _({
|
|
|
1415
1415
|
default: "$tableGroupExpand"
|
|
1416
1416
|
},
|
|
1417
1417
|
...te()
|
|
1418
|
-
}, "VDataTableGroupHeaderRow"),
|
|
1418
|
+
}, "VDataTableGroupHeaderRow"), Ha = $()({
|
|
1419
1419
|
name: "VDataTableGroupHeaderRow",
|
|
1420
1420
|
props: vt(),
|
|
1421
1421
|
setup(e, t) {
|
|
@@ -1426,26 +1426,26 @@ const ft = _({
|
|
|
1426
1426
|
isGroupOpen: l,
|
|
1427
1427
|
toggleGroup: n,
|
|
1428
1428
|
extractRows: r
|
|
1429
|
-
} =
|
|
1429
|
+
} = Je(), {
|
|
1430
1430
|
isSelected: i,
|
|
1431
1431
|
isSomeSelected: f,
|
|
1432
1432
|
select: u
|
|
1433
1433
|
} = ve(), {
|
|
1434
1434
|
columns: c
|
|
1435
|
-
} = ge(), m = V(() => r([e.item])), h = C(() => c.value.length - (c.value.some((
|
|
1435
|
+
} = ge(), m = V(() => r([e.item])), h = C(() => c.value.length - (c.value.some((o) => o.key === "data-table-select") ? 1 : 0));
|
|
1436
1436
|
return () => S("tr", {
|
|
1437
1437
|
class: "v-data-table-group-header-row",
|
|
1438
1438
|
style: {
|
|
1439
1439
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
1440
1440
|
}
|
|
1441
|
-
}, [c.value.map((
|
|
1442
|
-
if (
|
|
1443
|
-
const
|
|
1441
|
+
}, [c.value.map((o) => {
|
|
1442
|
+
if (o.key === "data-table-group") {
|
|
1443
|
+
const s = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
|
|
1444
1444
|
return a["data-table-group"]?.({
|
|
1445
1445
|
item: e.item,
|
|
1446
1446
|
count: m.value.length,
|
|
1447
1447
|
props: {
|
|
1448
|
-
icon:
|
|
1448
|
+
icon: s,
|
|
1449
1449
|
onClick: b
|
|
1450
1450
|
}
|
|
1451
1451
|
}) ?? k(ee, {
|
|
@@ -1455,12 +1455,12 @@ const ft = _({
|
|
|
1455
1455
|
default: () => [k(W, {
|
|
1456
1456
|
size: "small",
|
|
1457
1457
|
variant: "text",
|
|
1458
|
-
icon:
|
|
1458
|
+
icon: s,
|
|
1459
1459
|
onClick: b
|
|
1460
1460
|
}, null), S("span", null, [e.item.value]), S("span", null, [Te("("), m.value.length, Te(")")])]
|
|
1461
1461
|
});
|
|
1462
|
-
} else if (
|
|
1463
|
-
const
|
|
1462
|
+
} else if (o.key === "data-table-select") {
|
|
1463
|
+
const s = m.value.filter((I) => I.selectable), b = s.length > 0 && i(s), d = f(s) && !b, v = (I) => u(s, I);
|
|
1464
1464
|
return a["data-table-select"]?.({
|
|
1465
1465
|
props: {
|
|
1466
1466
|
modelValue: b,
|
|
@@ -1473,7 +1473,7 @@ const ft = _({
|
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: () => [k(de, {
|
|
1475
1475
|
density: e.density,
|
|
1476
|
-
disabled:
|
|
1476
|
+
disabled: s.length === 0,
|
|
1477
1477
|
modelValue: b,
|
|
1478
1478
|
indeterminate: d,
|
|
1479
1479
|
"onUpdate:modelValue": v
|
|
@@ -1501,7 +1501,7 @@ const ft = _({
|
|
|
1501
1501
|
onDblclick: ye(),
|
|
1502
1502
|
...te(),
|
|
1503
1503
|
...De()
|
|
1504
|
-
}, "VDataTableRow"),
|
|
1504
|
+
}, "VDataTableRow"), ja = $()({
|
|
1505
1505
|
name: "VDataTableRow",
|
|
1506
1506
|
props: gt(),
|
|
1507
1507
|
setup(e, t) {
|
|
@@ -1520,9 +1520,9 @@ const ft = _({
|
|
|
1520
1520
|
} = ve(), {
|
|
1521
1521
|
isExpanded: m,
|
|
1522
1522
|
toggleExpand: h
|
|
1523
|
-
} =
|
|
1524
|
-
toggleSort:
|
|
1525
|
-
sortBy:
|
|
1523
|
+
} = Qe(), {
|
|
1524
|
+
toggleSort: o,
|
|
1525
|
+
sortBy: s,
|
|
1526
1526
|
isSorted: b
|
|
1527
1527
|
} = nt(), {
|
|
1528
1528
|
columns: d
|
|
@@ -1545,12 +1545,12 @@ const ft = _({
|
|
|
1545
1545
|
toggleSelect: i,
|
|
1546
1546
|
isExpanded: m,
|
|
1547
1547
|
toggleExpand: h
|
|
1548
|
-
},
|
|
1548
|
+
}, E = {
|
|
1549
1549
|
column: v,
|
|
1550
1550
|
selectAll: c,
|
|
1551
1551
|
isSorted: b,
|
|
1552
|
-
toggleSort:
|
|
1553
|
-
sortBy:
|
|
1552
|
+
toggleSort: o,
|
|
1553
|
+
sortBy: s.value,
|
|
1554
1554
|
someSelected: f.value,
|
|
1555
1555
|
allSelected: u.value,
|
|
1556
1556
|
getSortIcon: () => ""
|
|
@@ -1620,7 +1620,7 @@ const ft = _({
|
|
|
1620
1620
|
const w = Bt(P.value);
|
|
1621
1621
|
return n.value ? S(z, null, [S("div", {
|
|
1622
1622
|
class: "v-data-table__td-title"
|
|
1623
|
-
}, [a[T]?.(
|
|
1623
|
+
}, [a[T]?.(E) ?? v.title]), S("div", {
|
|
1624
1624
|
class: "v-data-table__td-value"
|
|
1625
1625
|
}, [a[D]?.(P) ?? w])]) : w;
|
|
1626
1626
|
}
|
|
@@ -1663,16 +1663,16 @@ const ft = _({
|
|
|
1663
1663
|
expandOnClick: r,
|
|
1664
1664
|
toggleExpand: i,
|
|
1665
1665
|
isExpanded: f
|
|
1666
|
-
} =
|
|
1666
|
+
} = Qe(), {
|
|
1667
1667
|
isSelected: u,
|
|
1668
1668
|
toggleSelect: c
|
|
1669
1669
|
} = ve(), {
|
|
1670
1670
|
toggleGroup: m,
|
|
1671
1671
|
isGroupOpen: h
|
|
1672
|
-
} =
|
|
1673
|
-
t:
|
|
1674
|
-
} =
|
|
1675
|
-
mobile:
|
|
1672
|
+
} = Je(), {
|
|
1673
|
+
t: o
|
|
1674
|
+
} = J(), {
|
|
1675
|
+
mobile: s
|
|
1676
1676
|
} = fe(e);
|
|
1677
1677
|
return K(() => {
|
|
1678
1678
|
const b = xe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
@@ -1681,12 +1681,12 @@ const ft = _({
|
|
|
1681
1681
|
key: "loading"
|
|
1682
1682
|
}, [S("td", {
|
|
1683
1683
|
colspan: n.value.length
|
|
1684
|
-
}, [l.loading?.() ??
|
|
1684
|
+
}, [l.loading?.() ?? o(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
|
|
1685
1685
|
class: "v-data-table-rows-no-data",
|
|
1686
1686
|
key: "no-data"
|
|
1687
1687
|
}, [S("td", {
|
|
1688
1688
|
colspan: n.value.length
|
|
1689
|
-
}, [l["no-data"]?.() ??
|
|
1689
|
+
}, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d, v) => {
|
|
1690
1690
|
if (d.type === "group") {
|
|
1691
1691
|
const D = {
|
|
1692
1692
|
index: v,
|
|
@@ -1699,7 +1699,7 @@ const ft = _({
|
|
|
1699
1699
|
toggleGroup: m,
|
|
1700
1700
|
isGroupOpen: h
|
|
1701
1701
|
};
|
|
1702
|
-
return l["group-header"] ? l["group-header"](D) : k(
|
|
1702
|
+
return l["group-header"] ? l["group-header"](D) : k(Ha, B({
|
|
1703
1703
|
key: `group-header_${d.id}`,
|
|
1704
1704
|
item: d
|
|
1705
1705
|
}, Be(a, ":groupHeader", () => D), b), l);
|
|
@@ -1714,7 +1714,7 @@ const ft = _({
|
|
|
1714
1714
|
return l["group-summary"]?.(D) ?? "";
|
|
1715
1715
|
}
|
|
1716
1716
|
const I = {
|
|
1717
|
-
index: v,
|
|
1717
|
+
index: d.virtualIndex ?? v,
|
|
1718
1718
|
item: d.raw,
|
|
1719
1719
|
internalItem: d,
|
|
1720
1720
|
columns: n.value,
|
|
@@ -1736,7 +1736,7 @@ const ft = _({
|
|
|
1736
1736
|
collapseIcon: e.collapseIcon,
|
|
1737
1737
|
expandIcon: e.expandIcon,
|
|
1738
1738
|
density: e.density,
|
|
1739
|
-
mobile:
|
|
1739
|
+
mobile: s.value
|
|
1740
1740
|
}, Be(a, ":row", () => I), typeof e.rowProps == "function" ? e.rowProps({
|
|
1741
1741
|
item: I.item,
|
|
1742
1742
|
index: I.index,
|
|
@@ -1745,7 +1745,7 @@ const ft = _({
|
|
|
1745
1745
|
};
|
|
1746
1746
|
return S(z, {
|
|
1747
1747
|
key: y.props.key
|
|
1748
|
-
}, [l.item ? l.item(y) : k(
|
|
1748
|
+
}, [l.item ? l.item(y) : k(ja, y.props, l), f(d) && l["expanded-row"]?.(I)]);
|
|
1749
1749
|
})]);
|
|
1750
1750
|
}), {};
|
|
1751
1751
|
}
|
|
@@ -1775,7 +1775,7 @@ const ft = _({
|
|
|
1775
1775
|
themeClasses: n
|
|
1776
1776
|
} = we(e), {
|
|
1777
1777
|
densityClasses: r
|
|
1778
|
-
} =
|
|
1778
|
+
} = Jt(e);
|
|
1779
1779
|
return K(() => k(e.tag, {
|
|
1780
1780
|
class: G(["v-table", {
|
|
1781
1781
|
"v-table--fixed-height": !!e.height,
|
|
@@ -1792,12 +1792,12 @@ const ft = _({
|
|
|
1792
1792
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1793
1793
|
class: "v-table__wrapper",
|
|
1794
1794
|
style: {
|
|
1795
|
-
height:
|
|
1795
|
+
height: A(e.height)
|
|
1796
1796
|
}
|
|
1797
1797
|
}, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
|
|
1798
1798
|
})), {};
|
|
1799
1799
|
}
|
|
1800
|
-
}),
|
|
1800
|
+
}), Ma = _({
|
|
1801
1801
|
items: {
|
|
1802
1802
|
type: Array,
|
|
1803
1803
|
default: () => []
|
|
@@ -1814,11 +1814,11 @@ const ft = _({
|
|
|
1814
1814
|
cellProps: [Object, Function],
|
|
1815
1815
|
returnObject: Boolean
|
|
1816
1816
|
}, "DataTable-items");
|
|
1817
|
-
function
|
|
1818
|
-
const n = e.returnObject ? t :
|
|
1817
|
+
function Ga(e, t, a, l) {
|
|
1818
|
+
const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0), i = l.reduce((f, u) => (u.key != null && (f[u.key] = se(t, u.value)), f), {});
|
|
1819
1819
|
return {
|
|
1820
1820
|
type: "item",
|
|
1821
|
-
key: e.returnObject ?
|
|
1821
|
+
key: e.returnObject ? se(t, e.itemValue) : n,
|
|
1822
1822
|
index: a,
|
|
1823
1823
|
value: n,
|
|
1824
1824
|
selectable: r,
|
|
@@ -1826,37 +1826,37 @@ function Ma(e, t, a, l) {
|
|
|
1826
1826
|
raw: t
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1830
|
-
return t.map((l, n) =>
|
|
1829
|
+
function Ka(e, t, a) {
|
|
1830
|
+
return t.map((l, n) => Ga(e, l, n, a));
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function Wa(e, t) {
|
|
1833
1833
|
return {
|
|
1834
|
-
items: V(() =>
|
|
1834
|
+
items: V(() => Ka(e, e.items, t.value))
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
|
-
const
|
|
1837
|
+
const za = _({
|
|
1838
1838
|
...mt(),
|
|
1839
1839
|
hideDefaultBody: Boolean,
|
|
1840
1840
|
hideDefaultFooter: Boolean,
|
|
1841
1841
|
hideDefaultHeader: Boolean,
|
|
1842
1842
|
width: [String, Number],
|
|
1843
1843
|
search: String,
|
|
1844
|
-
...
|
|
1845
|
-
...
|
|
1846
|
-
...
|
|
1847
|
-
...
|
|
1848
|
-
...
|
|
1849
|
-
...
|
|
1844
|
+
...ia(),
|
|
1845
|
+
...da(),
|
|
1846
|
+
...Oa(),
|
|
1847
|
+
...Ma(),
|
|
1848
|
+
...wa(),
|
|
1849
|
+
...Ia(),
|
|
1850
1850
|
...Ie(ft(), ["multiSort", "initialSortOrder"]),
|
|
1851
1851
|
...bt()
|
|
1852
|
-
}, "DataTable"),
|
|
1853
|
-
...
|
|
1854
|
-
...
|
|
1852
|
+
}, "DataTable"), qa = _({
|
|
1853
|
+
...ba(),
|
|
1854
|
+
...za(),
|
|
1855
1855
|
...na(),
|
|
1856
1856
|
...rt()
|
|
1857
|
-
}, "VDataTable"),
|
|
1857
|
+
}, "VDataTable"), al = $()({
|
|
1858
1858
|
name: "VDataTable",
|
|
1859
|
-
props:
|
|
1859
|
+
props: qa(),
|
|
1860
1860
|
emits: {
|
|
1861
1861
|
"update:modelValue": (e) => !0,
|
|
1862
1862
|
"update:page": (e) => !0,
|
|
@@ -1874,36 +1874,36 @@ const Wa = _({
|
|
|
1874
1874
|
} = t;
|
|
1875
1875
|
const {
|
|
1876
1876
|
groupBy: n
|
|
1877
|
-
} =
|
|
1877
|
+
} = ca(e), {
|
|
1878
1878
|
initialSortOrder: r,
|
|
1879
1879
|
sortBy: i,
|
|
1880
1880
|
multiSort: f,
|
|
1881
1881
|
mustSort: u
|
|
1882
|
-
} =
|
|
1882
|
+
} = Da(e), {
|
|
1883
1883
|
page: c,
|
|
1884
1884
|
itemsPerPage: m
|
|
1885
|
-
} =
|
|
1885
|
+
} = ha(e), {
|
|
1886
1886
|
disableSort: h
|
|
1887
1887
|
} = Ot(e), {
|
|
1888
|
-
columns:
|
|
1889
|
-
headers:
|
|
1888
|
+
columns: o,
|
|
1889
|
+
headers: s,
|
|
1890
1890
|
sortFunctions: b,
|
|
1891
1891
|
sortRawFunctions: d,
|
|
1892
1892
|
filterFunctions: v
|
|
1893
|
-
} =
|
|
1893
|
+
} = $a(e, {
|
|
1894
1894
|
groupBy: n,
|
|
1895
1895
|
showSelect: C(() => e.showSelect),
|
|
1896
1896
|
showExpand: C(() => e.showExpand)
|
|
1897
1897
|
}), {
|
|
1898
1898
|
items: I
|
|
1899
|
-
} =
|
|
1899
|
+
} = Wa(e, o), y = C(() => e.search), {
|
|
1900
1900
|
filteredItems: D
|
|
1901
1901
|
} = la(e, I, y, {
|
|
1902
1902
|
transform: (j) => j.columns,
|
|
1903
1903
|
customKeyFilter: v
|
|
1904
1904
|
}), {
|
|
1905
1905
|
toggleSort: T
|
|
1906
|
-
} =
|
|
1906
|
+
} = Fa({
|
|
1907
1907
|
initialSortOrder: r,
|
|
1908
1908
|
sortBy: i,
|
|
1909
1909
|
multiSort: f,
|
|
@@ -1911,17 +1911,17 @@ const Wa = _({
|
|
|
1911
1911
|
page: c
|
|
1912
1912
|
}), {
|
|
1913
1913
|
sortByWithGroups: P,
|
|
1914
|
-
opened:
|
|
1914
|
+
opened: E,
|
|
1915
1915
|
extractRows: N,
|
|
1916
1916
|
isGroupOpen: p,
|
|
1917
1917
|
toggleGroup: x
|
|
1918
|
-
} =
|
|
1918
|
+
} = fa({
|
|
1919
1919
|
groupBy: n,
|
|
1920
1920
|
sortBy: i,
|
|
1921
1921
|
disableSort: h
|
|
1922
1922
|
}), {
|
|
1923
1923
|
sortedItems: g
|
|
1924
|
-
} =
|
|
1924
|
+
} = Ta(e, D, P, {
|
|
1925
1925
|
transform: (j) => ({
|
|
1926
1926
|
...j.raw,
|
|
1927
1927
|
...j.columns
|
|
@@ -1930,37 +1930,37 @@ const Wa = _({
|
|
|
1930
1930
|
sortRawFunctions: d
|
|
1931
1931
|
}), {
|
|
1932
1932
|
flatItems: w
|
|
1933
|
-
} =
|
|
1933
|
+
} = ga(g, n, E, () => !!l["group-summary"]), F = V(() => w.value.length), {
|
|
1934
1934
|
startIndex: R,
|
|
1935
1935
|
stopIndex: ae,
|
|
1936
1936
|
pageCount: be,
|
|
1937
1937
|
setItemsPerPage: H
|
|
1938
|
-
} =
|
|
1938
|
+
} = ya({
|
|
1939
1939
|
page: c,
|
|
1940
1940
|
itemsPerPage: m,
|
|
1941
1941
|
itemsLength: F
|
|
1942
1942
|
}), {
|
|
1943
|
-
paginatedItems:
|
|
1944
|
-
} =
|
|
1943
|
+
paginatedItems: Q
|
|
1944
|
+
} = xa({
|
|
1945
1945
|
items: w,
|
|
1946
1946
|
startIndex: R,
|
|
1947
1947
|
stopIndex: ae,
|
|
1948
1948
|
itemsPerPage: m
|
|
1949
|
-
}), Y = V(() => N(
|
|
1949
|
+
}), Y = V(() => N(Q.value)), {
|
|
1950
1950
|
isSelected: ht,
|
|
1951
1951
|
select: yt,
|
|
1952
1952
|
selectAll: pt,
|
|
1953
1953
|
toggleSelect: xt,
|
|
1954
1954
|
someSelected: St,
|
|
1955
1955
|
allSelected: Pt
|
|
1956
|
-
} =
|
|
1956
|
+
} = ka(e, {
|
|
1957
1957
|
allItems: I,
|
|
1958
1958
|
currentPage: Y
|
|
1959
1959
|
}), {
|
|
1960
1960
|
isExpanded: wt,
|
|
1961
1961
|
toggleExpand: kt
|
|
1962
|
-
} =
|
|
1963
|
-
|
|
1962
|
+
} = ua(e);
|
|
1963
|
+
ma({
|
|
1964
1964
|
page: c,
|
|
1965
1965
|
itemsPerPage: m,
|
|
1966
1966
|
sortBy: i,
|
|
@@ -1993,12 +1993,12 @@ const Wa = _({
|
|
|
1993
1993
|
toggleGroup: x,
|
|
1994
1994
|
items: Y.value.map((j) => j.raw),
|
|
1995
1995
|
internalItems: Y.value,
|
|
1996
|
-
groupedItems:
|
|
1997
|
-
columns:
|
|
1998
|
-
headers:
|
|
1996
|
+
groupedItems: Q.value,
|
|
1997
|
+
columns: o.value,
|
|
1998
|
+
headers: s.value
|
|
1999
1999
|
}));
|
|
2000
2000
|
return K(() => {
|
|
2001
|
-
const j =
|
|
2001
|
+
const j = Ee.filterProps(e), It = Ae.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
|
|
2002
2002
|
return k(Ne, B({
|
|
2003
2003
|
class: ["v-data-table", {
|
|
2004
2004
|
"v-data-table--show-select": e.showSelect,
|
|
@@ -2011,18 +2011,18 @@ const Wa = _({
|
|
|
2011
2011
|
top: () => l.top?.(L.value),
|
|
2012
2012
|
default: () => l.default ? l.default(L.value) : S(z, null, [l.colgroup?.(L.value), !e.hideDefaultHeader && S("thead", {
|
|
2013
2013
|
key: "thead"
|
|
2014
|
-
}, [k(
|
|
2014
|
+
}, [k(Ae, B(It, {
|
|
2015
2015
|
multiSort: !!e.multiSort
|
|
2016
2016
|
}), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) : k(Le, B(a, Dt, {
|
|
2017
|
-
items:
|
|
2017
|
+
items: Q.value
|
|
2018
2018
|
}), l), l["body.append"]?.(L.value)]), l.tbody?.(L.value), l.tfoot?.(L.value)]),
|
|
2019
|
-
bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [k(Yt, null, null), k(
|
|
2019
|
+
bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [k(Yt, null, null), k(Ee, j, {
|
|
2020
2020
|
prepend: l["footer.prepend"]
|
|
2021
2021
|
})])
|
|
2022
2022
|
});
|
|
2023
2023
|
}), {};
|
|
2024
2024
|
}
|
|
2025
|
-
}),
|
|
2025
|
+
}), Ua = {
|
|
2026
2026
|
actions: "button@2",
|
|
2027
2027
|
article: "heading, paragraph",
|
|
2028
2028
|
avatar: "avatar",
|
|
@@ -2055,7 +2055,7 @@ const Wa = _({
|
|
|
2055
2055
|
"table-tfoot": "text@2, avatar@2",
|
|
2056
2056
|
text: "text"
|
|
2057
2057
|
};
|
|
2058
|
-
function
|
|
2058
|
+
function Qa(e) {
|
|
2059
2059
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2060
2060
|
return S("div", {
|
|
2061
2061
|
class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
|
|
@@ -2070,18 +2070,18 @@ function Re(e) {
|
|
|
2070
2070
|
function me(e) {
|
|
2071
2071
|
let t = [];
|
|
2072
2072
|
if (!e) return t;
|
|
2073
|
-
const a =
|
|
2073
|
+
const a = Ua[e];
|
|
2074
2074
|
if (e !== a) {
|
|
2075
2075
|
if (e.includes(",")) return $e(e);
|
|
2076
2076
|
if (e.includes("@")) return Re(e);
|
|
2077
2077
|
a.includes(",") ? t = $e(a) : a.includes("@") ? t = Re(a) : a && t.push(me(a));
|
|
2078
2078
|
}
|
|
2079
|
-
return [
|
|
2079
|
+
return [Qa(e, t)];
|
|
2080
2080
|
}
|
|
2081
2081
|
function $e(e) {
|
|
2082
2082
|
return e.replace(/\s/g, "").split(",").map(me);
|
|
2083
2083
|
}
|
|
2084
|
-
const
|
|
2084
|
+
const Xa = _({
|
|
2085
2085
|
boilerplate: Boolean,
|
|
2086
2086
|
color: String,
|
|
2087
2087
|
loading: Boolean,
|
|
@@ -2096,10 +2096,10 @@ const Ja = _({
|
|
|
2096
2096
|
...ta(),
|
|
2097
2097
|
...Ke(),
|
|
2098
2098
|
...ke()
|
|
2099
|
-
}, "VSkeletonLoader"),
|
|
2099
|
+
}, "VSkeletonLoader"), ll = $()({
|
|
2100
2100
|
name: "VSkeletonLoader",
|
|
2101
2101
|
inheritAttrs: !1,
|
|
2102
|
-
props:
|
|
2102
|
+
props: Xa(),
|
|
2103
2103
|
setup(e, t) {
|
|
2104
2104
|
let {
|
|
2105
2105
|
attrs: a,
|
|
@@ -2116,9 +2116,9 @@ const Ja = _({
|
|
|
2116
2116
|
themeClasses: u
|
|
2117
2117
|
} = we(e), {
|
|
2118
2118
|
t: c
|
|
2119
|
-
} =
|
|
2119
|
+
} = J(), m = V(() => me(Z(e.type).join(",")));
|
|
2120
2120
|
return K(() => {
|
|
2121
|
-
const h = !l.default || e.loading,
|
|
2121
|
+
const h = !l.default || e.loading, o = e.boilerplate || !h ? {} : {
|
|
2122
2122
|
ariaLive: "polite",
|
|
2123
2123
|
ariaLabel: c(e.loadingText),
|
|
2124
2124
|
role: "alert"
|
|
@@ -2128,11 +2128,11 @@ const Ja = _({
|
|
|
2128
2128
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2129
2129
|
}, u.value, n.value, f.value],
|
|
2130
2130
|
style: [r.value, i.value]
|
|
2131
|
-
},
|
|
2131
|
+
}, o, a), [m.value]) : S(z, null, [l.default?.()]);
|
|
2132
2132
|
}), {};
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
|
-
function
|
|
2135
|
+
function Ja(e, t, a) {
|
|
2136
2136
|
switch (a) {
|
|
2137
2137
|
case ">":
|
|
2138
2138
|
return e > t;
|
|
@@ -2148,65 +2148,64 @@ function Qa(e, t, a) {
|
|
|
2148
2148
|
throw new Error(`Invalid operator: ${a}`);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function nl() {
|
|
2152
2152
|
const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = U("table_props"), l = M(), n = V(() => {
|
|
2153
|
-
let
|
|
2154
|
-
if (!
|
|
2155
|
-
const
|
|
2156
|
-
return !
|
|
2157
|
-
const { value: d, comparison: v = "=" } =
|
|
2153
|
+
let o = l.value;
|
|
2154
|
+
if (!o) return o;
|
|
2155
|
+
const s = u(e.value, t.value);
|
|
2156
|
+
return !s || Object.keys(s).length === 0 || Object.keys(s).forEach((b) => {
|
|
2157
|
+
const { value: d, comparison: v = "=" } = s[b];
|
|
2158
2158
|
if (!d) return;
|
|
2159
2159
|
const I = h(a.headers, b);
|
|
2160
|
-
I && (
|
|
2160
|
+
I && (o = o.filter((y) => {
|
|
2161
2161
|
const D = m(y, b, I);
|
|
2162
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);
|
|
2163
2163
|
}));
|
|
2164
|
-
}),
|
|
2164
|
+
}), o;
|
|
2165
2165
|
});
|
|
2166
|
-
function r(
|
|
2167
|
-
const b = Array.isArray(
|
|
2166
|
+
function r(o, s) {
|
|
2167
|
+
const b = Array.isArray(s) ? s : [s], d = ie(b[0]).startOf("day").isSameOrBefore(ie(o).format()), v = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
|
|
2168
2168
|
return d && v;
|
|
2169
2169
|
}
|
|
2170
|
-
function i(
|
|
2171
|
-
return Array.isArray(
|
|
2170
|
+
function i(o, s) {
|
|
2171
|
+
return Array.isArray(s) ? s.map((b) => b.toString().toLowerCase()).includes(o.toString().toLowerCase()) : o?.toString().toLowerCase().includes(s.toString().toLowerCase());
|
|
2172
2172
|
}
|
|
2173
|
-
function f(
|
|
2173
|
+
function f(o, s, b, d) {
|
|
2174
2174
|
switch (d.advancedFilter?.component) {
|
|
2175
2175
|
case "datepicker":
|
|
2176
|
-
return r(
|
|
2176
|
+
return r(o, s);
|
|
2177
2177
|
case "comparison":
|
|
2178
|
-
return
|
|
2178
|
+
return Ja(Number(o), Number(s), b);
|
|
2179
2179
|
default:
|
|
2180
|
-
return i(
|
|
2180
|
+
return i(o, s);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
function u(
|
|
2184
|
-
const b = Object.values(
|
|
2185
|
-
return { ...
|
|
2183
|
+
function u(o, s) {
|
|
2184
|
+
const b = Object.values(s).filter((d) => d.args).map((d) => d.args).reduce((d, v) => ({ ...d, ...v }), {});
|
|
2185
|
+
return { ...o, ...b };
|
|
2186
2186
|
}
|
|
2187
|
-
function c(
|
|
2188
|
-
return
|
|
2187
|
+
function c(o, s) {
|
|
2188
|
+
return s.split(".").reduce((b, d) => b && b[d], o);
|
|
2189
2189
|
}
|
|
2190
|
-
function m(
|
|
2191
|
-
const d =
|
|
2192
|
-
return typeof v == "function" && (d[
|
|
2193
|
-
value: s
|
|
2194
|
-
item:
|
|
2195
|
-
})), c(d,
|
|
2190
|
+
function m(o, s, b) {
|
|
2191
|
+
const d = oa(o), v = b.advancedFilter?.filterReturnValue;
|
|
2192
|
+
return typeof v == "function" && (d[s] = v({
|
|
2193
|
+
value: o[s],
|
|
2194
|
+
item: o
|
|
2195
|
+
})), c(d, s);
|
|
2196
2196
|
}
|
|
2197
|
-
function h(
|
|
2198
|
-
return
|
|
2197
|
+
function h(o, s) {
|
|
2198
|
+
return o.find((b) => (b.advancedFilter?.key ?? b.key) === s);
|
|
2199
2199
|
}
|
|
2200
2200
|
return ce(
|
|
2201
2201
|
() => a.data,
|
|
2202
|
-
(
|
|
2203
|
-
|
|
2204
|
-
JSON.stringify(b) !== JSON.stringify(d) && (l.value = s);
|
|
2202
|
+
(o, s) => {
|
|
2203
|
+
sa(o ?? [], s ?? []) || (l.value = o);
|
|
2205
2204
|
},
|
|
2206
2205
|
{ deep: !0, immediate: !0 }
|
|
2207
2206
|
), { tableData: l, filteredData: n };
|
|
2208
2207
|
}
|
|
2209
|
-
const
|
|
2208
|
+
const rl = Et({
|
|
2210
2209
|
props: {
|
|
2211
2210
|
render: {
|
|
2212
2211
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2223,31 +2222,31 @@ const nl = At({
|
|
|
2223
2222
|
},
|
|
2224
2223
|
setup: (e) => () => {
|
|
2225
2224
|
const t = { ...e.props, ...e.params };
|
|
2226
|
-
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ?
|
|
2225
|
+
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? At(e.render, t) : e.render;
|
|
2227
2226
|
}
|
|
2228
2227
|
});
|
|
2229
2228
|
export {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2229
|
+
rl as C,
|
|
2230
|
+
al as V,
|
|
2231
|
+
ll as a,
|
|
2232
|
+
Da as b,
|
|
2233
|
+
ca as c,
|
|
2234
|
+
ha as d,
|
|
2235
|
+
$a as e,
|
|
2236
|
+
Wa as f,
|
|
2237
|
+
fa as g,
|
|
2238
|
+
ya as h,
|
|
2239
|
+
ga as i,
|
|
2240
|
+
ka as j,
|
|
2241
|
+
ua as k,
|
|
2242
|
+
ma as l,
|
|
2243
|
+
Ee as m,
|
|
2244
|
+
Ae as n,
|
|
2246
2245
|
Le as o,
|
|
2247
|
-
|
|
2246
|
+
Fa as p,
|
|
2248
2247
|
Ne as q,
|
|
2249
2248
|
rt as r,
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2249
|
+
za as s,
|
|
2250
|
+
ba as t,
|
|
2251
|
+
nl as u
|
|
2253
2252
|
};
|