@ianicdev/datatables2 0.12.1 → 0.12.3
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/{Comparison-DtpUZsrU.cjs → Comparison-DfuUL_lg.cjs} +1 -1
- package/dist/{Comparison-IcnZYHnn.js → Comparison-N8osVfYi.js} +1 -1
- package/dist/{Datepicker-tAQpdCVA.cjs → Datepicker-BslEdGY7.cjs} +1 -1
- package/dist/{Datepicker-BKJGzszq.js → Datepicker-oT5XkfSQ.js} +2 -2
- package/dist/{Options-th4F06rr.cjs → Options-CFrdbv20.cjs} +1 -1
- package/dist/{Options-DZWZnKMZ.js → Options-DPbrIuPG.js} +3 -3
- package/dist/{RefreshTable-CnvdYMek.cjs → RefreshTable-BeE3CtGX.cjs} +1 -1
- package/dist/{RefreshTable-D4ifMTa_.js → RefreshTable-D_D2kU4p.js} +1 -1
- package/dist/{Search-BkQ1aZEe.js → Search-CT-0ryQ2.js} +2 -2
- package/dist/{Search-B9HBH338.cjs → Search-CsUDdcHB.cjs} +1 -1
- package/dist/Table-C1EHZ-02.cjs +1 -0
- package/dist/Table-D37Ds0_m.js +61 -0
- package/dist/{TableServer-DSAcYBTM.js → TableServer-B1DM8v28.js} +833 -830
- package/dist/TableServer-DrOd38-9.cjs +20 -0
- package/dist/{cellRender-BBnDEG_7.js → cellRender-13NfTsx3.js} +564 -544
- package/dist/{cellRender-8D0QBLeC.cjs → cellRender-C8IKwdOs.cjs} +1 -1
- package/dist/{dataTables-C0Ygb6M3.cjs → dataTables-BTH4IL4O.cjs} +1 -1
- package/dist/{dataTables-B691de3Y.js → dataTables-D9mO6lla.js} +4 -4
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-DwBno3e_.js → index-B3-wvk9W.js} +2 -2
- package/dist/{index-H3lKuAD2.js → index-BT5V7cMT.js} +2 -2
- package/dist/{index-CX6NrL8T.cjs → index-C-af6ZNv.cjs} +1 -1
- package/dist/{index-GgkpPHGm.cjs → index-C_cE1ziZ.cjs} +1 -1
- package/dist/{index-CPLpre1I.js → index-CnR_HISW.js} +1 -1
- package/dist/{index-D4MrgePs.cjs → index-DL2-mlif.cjs} +1 -1
- package/dist/{index-C9x5Z2bI.js → index-DrPUD68m.js} +412 -409
- package/dist/{index-BiBUa6-_.cjs → index-nEr64nuZ.cjs} +1 -1
- package/dist/{useColumns-CTrxq_by.js → useColumns-1ARLTmLZ.js} +5 -5
- package/dist/{useColumns-Cgjt48Pi.cjs → useColumns-CsjK1ckM.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Table-CGFEU1ml.cjs +0 -1
- package/dist/Table-CUFIrlzk.js +0 -59
- package/dist/TableServer-Ccn3CM5P.cjs +0 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { toRef as _, provide as ee, toRaw as
|
|
2
|
-
import { aQ as
|
|
3
|
-
import { V as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
return Object.keys(e).filter((n) =>
|
|
1
|
+
import { toRef as _, provide as ee, toRaw as se, inject as Y, ref as q, computed as D, toValue as j, watch as ne, shallowRef as fe, onBeforeUpdate as Tt, createVNode as k, normalizeStyle as Ce, normalizeClass as K, createElementVNode as x, mergeProps as E, nextTick as ke, watchEffect as _t, capitalize as Bt, Fragment as Q, createTextVNode as Ee, withModifiers as oe, toDisplayString as Ot, toRefs as Et, defineComponent as At, h as Lt } from "vue";
|
|
2
|
+
import { aQ as Nt, a8 as Rt, E as X, p as B, aR as ve, ad as ze, v as qe, c as Pe, a4 as J, aS as $t, y as te, aT as ie, aU as Ht, g as M, u as Gt, s as Fe, b as me, t as Ie, f as jt, aV as ue, h as z, aL as U, aW as Ae, k as A, w as Mt, x as Te, n as Ue, N as Wt, Q as Kt, T as Qe, U as re, q as Xe, W as zt, a7 as _e, aX as qt, ak as $, aY as Ut, al as Qt, o as Be, ag as Xt, Y as Ye, aj as Yt, i as Le, X as we, af as De, A as Zt, ap as de, ax as Jt, Z as ea, B as ta, a2 as aa } from "./dataTables-D9mO6lla.js";
|
|
3
|
+
import { V as Ze, b as na, c as ge, e as la, m as ra, u as sa, d as Ne, a as oa } from "./index-DrPUD68m.js";
|
|
4
|
+
import ce from "moment";
|
|
5
|
+
function Re(e, t, a) {
|
|
6
|
+
return Object.keys(e).filter((n) => Nt(n) && n.endsWith(t)).reduce((n, l) => (n[l.slice(0, -t.length)] = (r) => Rt(e[l], r, a(r)), n), {});
|
|
7
7
|
}
|
|
8
8
|
const ia = B({
|
|
9
9
|
expandOnClick: Boolean,
|
|
@@ -12,22 +12,22 @@ const ia = B({
|
|
|
12
12
|
type: Array,
|
|
13
13
|
default: () => []
|
|
14
14
|
}
|
|
15
|
-
}, "DataTable-expand"),
|
|
15
|
+
}, "DataTable-expand"), Je = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
|
|
16
16
|
function ua(e) {
|
|
17
17
|
const t = _(() => e.expandOnClick), a = X(e, "expanded", e.expanded, (c) => new Set(c), (c) => [...c.values()]);
|
|
18
18
|
function n(c, d) {
|
|
19
|
-
const
|
|
19
|
+
const v = new Set(a.value), m = se(c.value);
|
|
20
20
|
if (d)
|
|
21
|
-
|
|
21
|
+
v.add(m);
|
|
22
22
|
else {
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const h = [...a.value].find((s) => se(s) === m);
|
|
24
|
+
v.delete(h);
|
|
25
25
|
}
|
|
26
|
-
a.value =
|
|
26
|
+
a.value = v;
|
|
27
27
|
}
|
|
28
28
|
function l(c) {
|
|
29
|
-
const d =
|
|
30
|
-
return [...a.value].some((
|
|
29
|
+
const d = se(c.value);
|
|
30
|
+
return [...a.value].some((v) => se(v) === d);
|
|
31
31
|
}
|
|
32
32
|
function r(c) {
|
|
33
33
|
n(c, !l(c));
|
|
@@ -39,10 +39,10 @@ function ua(e) {
|
|
|
39
39
|
isExpanded: l,
|
|
40
40
|
toggleExpand: r
|
|
41
41
|
};
|
|
42
|
-
return ee(
|
|
42
|
+
return ee(Je, o), o;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const e = Y(
|
|
44
|
+
function et() {
|
|
45
|
+
const e = Y(Je);
|
|
46
46
|
if (!e) throw new Error("foo");
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
@@ -51,7 +51,7 @@ const da = B({
|
|
|
51
51
|
type: Array,
|
|
52
52
|
default: () => []
|
|
53
53
|
}
|
|
54
|
-
}, "DataTable-group"),
|
|
54
|
+
}, "DataTable-group"), tt = /* @__PURE__ */ Symbol.for("vuetify:data-table-group");
|
|
55
55
|
function ca(e) {
|
|
56
56
|
return {
|
|
57
57
|
groupBy: X(e, "groupBy")
|
|
@@ -62,7 +62,7 @@ function fa(e) {
|
|
|
62
62
|
disableSort: t,
|
|
63
63
|
groupBy: a,
|
|
64
64
|
sortBy: n
|
|
65
|
-
} = e, l =
|
|
65
|
+
} = e, l = q(/* @__PURE__ */ new Set()), r = D(() => a.value.map((m) => ({
|
|
66
66
|
...m,
|
|
67
67
|
order: m.order ?? !1
|
|
68
68
|
})).concat(t?.value ? [] : n.value));
|
|
@@ -70,21 +70,21 @@ function fa(e) {
|
|
|
70
70
|
return l.value.has(m.id);
|
|
71
71
|
}
|
|
72
72
|
function c(m) {
|
|
73
|
-
const
|
|
74
|
-
o(m) ?
|
|
73
|
+
const h = new Set(l.value);
|
|
74
|
+
o(m) ? h.delete(m.id) : h.add(m.id), l.value = h;
|
|
75
75
|
}
|
|
76
76
|
function d(m) {
|
|
77
|
-
function
|
|
77
|
+
function h(s) {
|
|
78
78
|
const i = [];
|
|
79
79
|
for (const b of s.items)
|
|
80
|
-
"type" in b && b.type === "group" ? i.push(...
|
|
80
|
+
"type" in b && b.type === "group" ? i.push(...h(b)) : i.push(b);
|
|
81
81
|
return [...new Set(i)];
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return h({
|
|
84
84
|
items: m
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const v = {
|
|
88
88
|
sortByWithGroups: r,
|
|
89
89
|
toggleGroup: c,
|
|
90
90
|
opened: l,
|
|
@@ -92,49 +92,49 @@ function fa(e) {
|
|
|
92
92
|
extractRows: d,
|
|
93
93
|
isGroupOpen: o
|
|
94
94
|
};
|
|
95
|
-
return ee(
|
|
95
|
+
return ee(tt, v), v;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const e = Y(
|
|
97
|
+
function at() {
|
|
98
|
+
const e = Y(tt);
|
|
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 n of e) {
|
|
106
|
-
const l =
|
|
106
|
+
const l = ve(n.raw, t);
|
|
107
107
|
a.has(l) || a.set(l, []), a.get(l).push(n);
|
|
108
108
|
}
|
|
109
109
|
return a;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function nt(e, t) {
|
|
112
112
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
|
|
113
113
|
if (!t.length) return [];
|
|
114
|
-
const l =
|
|
114
|
+
const l = va(e, t[0]), r = [], o = t.slice(1);
|
|
115
115
|
return l.forEach((c, d) => {
|
|
116
|
-
const
|
|
116
|
+
const v = t[0], m = `${n}_${v}_${d}`;
|
|
117
117
|
r.push({
|
|
118
118
|
depth: a,
|
|
119
119
|
id: m,
|
|
120
|
-
key:
|
|
120
|
+
key: v,
|
|
121
121
|
value: d,
|
|
122
|
-
items: o.length ?
|
|
122
|
+
items: o.length ? nt(c, o, a + 1, m) : c,
|
|
123
123
|
type: "group"
|
|
124
124
|
});
|
|
125
125
|
}), r;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function lt(e, t, a) {
|
|
128
128
|
const n = [];
|
|
129
129
|
for (const l of e)
|
|
130
|
-
"type" in l && l.type === "group" ? (l.value != null && n.push(l), (t.has(l.id) || l.value == null) && (n.push(...
|
|
130
|
+
"type" in l && l.type === "group" ? (l.value != null && n.push(l), (t.has(l.id) || l.value == null) && (n.push(...lt(l.items, t, a)), a && n.push({
|
|
131
131
|
...l,
|
|
132
132
|
type: "group-summary"
|
|
133
133
|
}))) : n.push(l);
|
|
134
134
|
return n;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const l = D(() => t.value.length ?
|
|
136
|
+
function ga(e, t, a, n) {
|
|
137
|
+
const l = D(() => t.value.length ? nt(j(e), t.value.map((o) => o.key)) : []), r = D(() => t.value.length ? lt(l.value, a.value, j(n)) : j(e));
|
|
138
138
|
return {
|
|
139
139
|
groups: l,
|
|
140
140
|
flatItems: r
|
|
@@ -148,7 +148,7 @@ function ma(e) {
|
|
|
148
148
|
groupBy: l,
|
|
149
149
|
search: r
|
|
150
150
|
} = e;
|
|
151
|
-
const o =
|
|
151
|
+
const o = ze("VDataTable"), c = () => ({
|
|
152
152
|
page: t.value,
|
|
153
153
|
itemsPerPage: a.value,
|
|
154
154
|
sortBy: n.value,
|
|
@@ -156,8 +156,8 @@ function ma(e) {
|
|
|
156
156
|
search: r.value
|
|
157
157
|
});
|
|
158
158
|
let d = null;
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
ne(c, (v) => {
|
|
160
|
+
qe(d, v) || (d && d.search !== v.search && (t.value = 1), o.emit("update:options", v), d = v);
|
|
161
161
|
}, {
|
|
162
162
|
deep: !0,
|
|
163
163
|
immediate: !0
|
|
@@ -176,7 +176,7 @@ const ba = B({
|
|
|
176
176
|
type: String,
|
|
177
177
|
default: "any"
|
|
178
178
|
}
|
|
179
|
-
}, "DataTable-paginate"),
|
|
179
|
+
}, "DataTable-paginate"), rt = /* @__PURE__ */ Symbol.for("vuetify:data-table-pagination");
|
|
180
180
|
function ya(e) {
|
|
181
181
|
const t = X(e, "page", void 0, (n) => Number(n ?? 1)), a = X(e, "itemsPerPage", void 0, (n) => Number(n ?? 10));
|
|
182
182
|
return {
|
|
@@ -190,22 +190,22 @@ function ha(e) {
|
|
|
190
190
|
itemsPerPage: a,
|
|
191
191
|
itemsLength: n
|
|
192
192
|
} = e, l = D(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = D(() => a.value === -1 ? n.value : Math.min(n.value, l.value + a.value)), o = D(() => a.value === -1 || n.value === 0 ? 1 : Math.ceil(n.value / a.value));
|
|
193
|
-
|
|
193
|
+
ne([t, o], () => {
|
|
194
194
|
t.value > o.value && (t.value = o.value);
|
|
195
195
|
});
|
|
196
196
|
function c(s) {
|
|
197
197
|
a.value = s, t.value = 1;
|
|
198
198
|
}
|
|
199
199
|
function d() {
|
|
200
|
-
t.value =
|
|
200
|
+
t.value = Pe(t.value + 1, 1, o.value);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
t.value =
|
|
202
|
+
function v() {
|
|
203
|
+
t.value = Pe(t.value - 1, 1, o.value);
|
|
204
204
|
}
|
|
205
205
|
function m(s) {
|
|
206
|
-
t.value =
|
|
206
|
+
t.value = Pe(s, 1, o.value);
|
|
207
207
|
}
|
|
208
|
-
const
|
|
208
|
+
const h = {
|
|
209
209
|
page: t,
|
|
210
210
|
itemsPerPage: a,
|
|
211
211
|
startIndex: l,
|
|
@@ -213,25 +213,25 @@ function ha(e) {
|
|
|
213
213
|
pageCount: o,
|
|
214
214
|
itemsLength: n,
|
|
215
215
|
nextPage: d,
|
|
216
|
-
prevPage:
|
|
216
|
+
prevPage: v,
|
|
217
217
|
setPage: m,
|
|
218
218
|
setItemsPerPage: c
|
|
219
219
|
};
|
|
220
|
-
return ee(
|
|
220
|
+
return ee(rt, h), h;
|
|
221
221
|
}
|
|
222
222
|
function pa() {
|
|
223
|
-
const e = Y(
|
|
223
|
+
const e = Y(rt);
|
|
224
224
|
if (!e) throw new Error("Missing pagination!");
|
|
225
225
|
return e;
|
|
226
226
|
}
|
|
227
227
|
function xa(e) {
|
|
228
|
-
const t =
|
|
228
|
+
const t = ze("usePaginatedItems"), {
|
|
229
229
|
items: a,
|
|
230
230
|
startIndex: n,
|
|
231
231
|
stopIndex: l,
|
|
232
232
|
itemsPerPage: r
|
|
233
233
|
} = e, o = D(() => r.value <= 0 ? j(a) : j(a).slice(n.value, l.value));
|
|
234
|
-
return
|
|
234
|
+
return ne(o, (c) => {
|
|
235
235
|
t.emit("update:currentItems", c);
|
|
236
236
|
}, {
|
|
237
237
|
immediate: !0
|
|
@@ -266,15 +266,15 @@ function Sa(e) {
|
|
|
266
266
|
} = n(t), {
|
|
267
267
|
paginatedItems: c,
|
|
268
268
|
pageCount: d,
|
|
269
|
-
setItemsPerPage:
|
|
269
|
+
setItemsPerPage: v
|
|
270
270
|
} = a(o), m = D(() => {
|
|
271
271
|
if (!c.value.length) return [];
|
|
272
|
-
const
|
|
273
|
-
return r.value.slice(i,
|
|
272
|
+
const h = c.value.at(0).id, s = c.value.at(-1).id, i = r.value.findIndex((u) => u.type === "group" && u.id === h), b = r.value.findIndex((u) => u.type === "group" && u.id === s), f = r.value.findIndex((u, I) => I > b && u.type === "group" && u.depth === 0);
|
|
273
|
+
return r.value.slice(i, f === -1 ? void 0 : f);
|
|
274
274
|
});
|
|
275
275
|
return {
|
|
276
276
|
pageCount: d,
|
|
277
|
-
setItemsPerPage:
|
|
277
|
+
setItemsPerPage: v,
|
|
278
278
|
paginatedItems: m
|
|
279
279
|
};
|
|
280
280
|
}
|
|
@@ -310,7 +310,7 @@ const Pa = {
|
|
|
310
310
|
} = e;
|
|
311
311
|
return t;
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, st = {
|
|
314
314
|
showSelectAll: !0,
|
|
315
315
|
allSelected: (e) => {
|
|
316
316
|
let {
|
|
@@ -334,7 +334,7 @@ const Pa = {
|
|
|
334
334
|
currentPage: a,
|
|
335
335
|
selected: n
|
|
336
336
|
} = e;
|
|
337
|
-
return
|
|
337
|
+
return st.select({
|
|
338
338
|
items: a,
|
|
339
339
|
value: t,
|
|
340
340
|
selected: n
|
|
@@ -376,16 +376,16 @@ const Pa = {
|
|
|
376
376
|
default: () => []
|
|
377
377
|
},
|
|
378
378
|
valueComparator: Function
|
|
379
|
-
}, "DataTable-select"),
|
|
379
|
+
}, "DataTable-select"), ot = /* @__PURE__ */ Symbol.for("vuetify:data-table-selection");
|
|
380
380
|
function Ia(e, t) {
|
|
381
381
|
let {
|
|
382
382
|
allItems: a,
|
|
383
383
|
currentPage: n
|
|
384
384
|
} = t;
|
|
385
|
-
const l = X(e, "modelValue", e.modelValue, (
|
|
386
|
-
const
|
|
387
|
-
return
|
|
388
|
-
}, (
|
|
385
|
+
const l = X(e, "modelValue", e.modelValue, (y) => {
|
|
386
|
+
const w = e.valueComparator;
|
|
387
|
+
return w ? new Set(J(y).map((C) => a.value.find((P) => w(C, P.value))?.value ?? C)) : new Set(J(y).map((C) => $t(C) ? a.value.find((P) => C === P.value)?.value ?? C : a.value.find((P) => qe(C, P.value))?.value ?? C));
|
|
388
|
+
}, (y) => [...y.values()]), r = D(() => a.value.filter((y) => y.selectable)), o = D(() => j(n).filter((y) => y.selectable)), c = D(() => {
|
|
389
389
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
390
390
|
switch (e.selectStrategy) {
|
|
391
391
|
case "single":
|
|
@@ -393,63 +393,63 @@ function Ia(e, t) {
|
|
|
393
393
|
case "all":
|
|
394
394
|
return wa;
|
|
395
395
|
default:
|
|
396
|
-
return
|
|
396
|
+
return st;
|
|
397
397
|
}
|
|
398
|
-
}), d =
|
|
399
|
-
function
|
|
400
|
-
return J(
|
|
398
|
+
}), d = fe(null);
|
|
399
|
+
function v(y) {
|
|
400
|
+
return J(y).every((w) => l.value.has(w.value));
|
|
401
401
|
}
|
|
402
|
-
function m(
|
|
403
|
-
return J(
|
|
402
|
+
function m(y) {
|
|
403
|
+
return J(y).some((w) => l.value.has(w.value));
|
|
404
404
|
}
|
|
405
|
-
function y
|
|
405
|
+
function h(y, w) {
|
|
406
406
|
const C = c.value.select({
|
|
407
|
-
items:
|
|
408
|
-
value:
|
|
407
|
+
items: y,
|
|
408
|
+
value: w,
|
|
409
409
|
selected: new Set(l.value)
|
|
410
410
|
});
|
|
411
411
|
l.value = C;
|
|
412
412
|
}
|
|
413
|
-
function s(
|
|
414
|
-
const
|
|
415
|
-
if (
|
|
416
|
-
const [H, S] = [d.value,
|
|
417
|
-
|
|
413
|
+
function s(y, w, C) {
|
|
414
|
+
const P = [], R = j(n);
|
|
415
|
+
if (w = w ?? R.findIndex((H) => H.value === y.value), e.selectStrategy !== "single" && C?.shiftKey && d.value !== null) {
|
|
416
|
+
const [H, S] = [d.value, w].sort((p, g) => p - g);
|
|
417
|
+
P.push(...R.slice(H, S + 1).filter((p) => p.selectable));
|
|
418
418
|
} else
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
P.push(y), d.value = w;
|
|
420
|
+
h(P, !v([y]));
|
|
421
421
|
}
|
|
422
|
-
function i(
|
|
423
|
-
const
|
|
424
|
-
value:
|
|
422
|
+
function i(y) {
|
|
423
|
+
const w = c.value.selectAll({
|
|
424
|
+
value: y,
|
|
425
425
|
allItems: r.value,
|
|
426
426
|
currentPage: o.value,
|
|
427
427
|
selected: new Set(l.value)
|
|
428
428
|
});
|
|
429
|
-
l.value =
|
|
429
|
+
l.value = w;
|
|
430
430
|
}
|
|
431
|
-
const b = D(() => l.value.size > 0),
|
|
432
|
-
const
|
|
431
|
+
const b = D(() => l.value.size > 0), f = D(() => {
|
|
432
|
+
const y = c.value.allSelected({
|
|
433
433
|
allItems: r.value,
|
|
434
434
|
currentPage: o.value
|
|
435
435
|
});
|
|
436
|
-
return !!
|
|
437
|
-
}), u = _(() => c.value.showSelectAll),
|
|
436
|
+
return !!y.length && v(y);
|
|
437
|
+
}), u = _(() => c.value.showSelectAll), I = {
|
|
438
438
|
toggleSelect: s,
|
|
439
|
-
select:
|
|
439
|
+
select: h,
|
|
440
440
|
selectAll: i,
|
|
441
|
-
isSelected:
|
|
441
|
+
isSelected: v,
|
|
442
442
|
isSomeSelected: m,
|
|
443
443
|
someSelected: b,
|
|
444
|
-
allSelected:
|
|
444
|
+
allSelected: f,
|
|
445
445
|
showSelectAll: u,
|
|
446
446
|
lastSelectedIndex: d,
|
|
447
447
|
selectStrategy: c
|
|
448
448
|
};
|
|
449
|
-
return ee(
|
|
449
|
+
return ee(ot, I), I;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
const e = Y(
|
|
451
|
+
function be() {
|
|
452
|
+
const e = Y(ot);
|
|
453
453
|
if (!e) throw new Error("Missing selection!");
|
|
454
454
|
return e;
|
|
455
455
|
}
|
|
@@ -469,7 +469,7 @@ const Da = B({
|
|
|
469
469
|
default: !1
|
|
470
470
|
},
|
|
471
471
|
mustSort: Boolean
|
|
472
|
-
}, "DataTable-sort"),
|
|
472
|
+
}, "DataTable-sort"), it = /* @__PURE__ */ Symbol.for("vuetify:data-table-sort");
|
|
473
473
|
function Va(e) {
|
|
474
474
|
const t = _(() => e.initialSortOrder), a = X(e, "sortBy"), n = _(() => e.mustSort), l = _(() => e.multiSort);
|
|
475
475
|
return {
|
|
@@ -479,8 +479,8 @@ function Va(e) {
|
|
|
479
479
|
mustSort: n
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
if (
|
|
482
|
+
function Ca(e, t) {
|
|
483
|
+
if (!Ht(e))
|
|
484
484
|
return {
|
|
485
485
|
active: !!e
|
|
486
486
|
};
|
|
@@ -494,52 +494,52 @@ function Fa(e, t) {
|
|
|
494
494
|
mode: r ? n === "append" ? "prepend" : "append" : n
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Fa(e) {
|
|
498
498
|
const {
|
|
499
499
|
initialSortOrder: t,
|
|
500
500
|
sortBy: a,
|
|
501
501
|
mustSort: n,
|
|
502
502
|
multiSort: l,
|
|
503
503
|
page: r
|
|
504
|
-
} = e, o = function(
|
|
505
|
-
let
|
|
506
|
-
if (
|
|
504
|
+
} = e, o = function(v, m) {
|
|
505
|
+
let h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
506
|
+
if (v.key == null) return;
|
|
507
507
|
let s = a.value.map((u) => ({
|
|
508
508
|
...u
|
|
509
509
|
})) ?? [];
|
|
510
|
-
const i = s.find((u) => u.key ===
|
|
510
|
+
const i = s.find((u) => u.key === v.key), b = t.value, f = t.value === "desc" ? "asc" : "desc";
|
|
511
511
|
if (i)
|
|
512
|
-
i.order ===
|
|
512
|
+
i.order === f ? h || n.value && s.length === 1 ? i.order = t.value : s = s.filter((u) => u.key !== v.key) : i.order = f;
|
|
513
513
|
else {
|
|
514
514
|
const {
|
|
515
515
|
active: u,
|
|
516
|
-
mode:
|
|
517
|
-
} =
|
|
518
|
-
u ?
|
|
519
|
-
key:
|
|
516
|
+
mode: I
|
|
517
|
+
} = Ca(l.value, m);
|
|
518
|
+
u ? I === "prepend" ? s.unshift({
|
|
519
|
+
key: v.key,
|
|
520
520
|
order: b
|
|
521
521
|
}) : s.push({
|
|
522
|
-
key:
|
|
522
|
+
key: v.key,
|
|
523
523
|
order: b
|
|
524
524
|
}) : s = [{
|
|
525
|
-
key:
|
|
525
|
+
key: v.key,
|
|
526
526
|
order: b
|
|
527
527
|
}];
|
|
528
528
|
}
|
|
529
529
|
a.value = s, r && (r.value = 1);
|
|
530
530
|
};
|
|
531
|
-
function c(
|
|
532
|
-
return !!a.value.find((m) => m.key ===
|
|
531
|
+
function c(v) {
|
|
532
|
+
return !!a.value.find((m) => m.key === v.key);
|
|
533
533
|
}
|
|
534
534
|
const d = {
|
|
535
535
|
sortBy: a,
|
|
536
536
|
toggleSort: o,
|
|
537
537
|
isSorted: c
|
|
538
538
|
};
|
|
539
|
-
return ee(
|
|
539
|
+
return ee(it, d), d;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
const e = Y(
|
|
541
|
+
function ut() {
|
|
542
|
+
const e = Y(it);
|
|
543
543
|
if (!e) throw new Error("Missing sort!");
|
|
544
544
|
return e;
|
|
545
545
|
}
|
|
@@ -563,22 +563,22 @@ function _a(e, t, a, n) {
|
|
|
563
563
|
});
|
|
564
564
|
return e.map((o) => [o, n?.transform ? n.transform(o) : o]).sort((o, c) => {
|
|
565
565
|
for (let d = 0; d < t.length; d++) {
|
|
566
|
-
let
|
|
567
|
-
const m = t[d].key,
|
|
568
|
-
if (
|
|
569
|
-
let s =
|
|
570
|
-
if (
|
|
571
|
-
const u = n.sortRawFunctions[m](b,
|
|
566
|
+
let v = !1;
|
|
567
|
+
const m = t[d].key, h = t[d].order ?? "asc";
|
|
568
|
+
if (h === !1) continue;
|
|
569
|
+
let s = ve(o[1], m), i = ve(c[1], m), b = o[0].raw, f = c[0].raw;
|
|
570
|
+
if (h === "desc" && ([s, i] = [i, s], [b, f] = [f, b]), n?.sortRawFunctions?.[m]) {
|
|
571
|
+
const u = n.sortRawFunctions[m](b, f);
|
|
572
572
|
if (u == null) continue;
|
|
573
|
-
if (
|
|
573
|
+
if (v = !0, u) return u;
|
|
574
574
|
}
|
|
575
575
|
if (n?.sortFunctions?.[m]) {
|
|
576
576
|
const u = n.sortFunctions[m](s, i);
|
|
577
577
|
if (u == null) continue;
|
|
578
|
-
if (
|
|
578
|
+
if (v = !0, u) return u;
|
|
579
579
|
}
|
|
580
|
-
if (!
|
|
581
|
-
return
|
|
580
|
+
if (!v && (s instanceof Date && i instanceof Date && (s = s.getTime(), i = i.getTime()), [s, i] = [s, i].map((u) => u != null ? u.toString().toLocaleLowerCase() : u), s !== i))
|
|
581
|
+
return ie(s) && ie(i) ? 0 : ie(s) ? -1 : ie(i) ? 1 : !isNaN(s) && !isNaN(i) ? Number(s) - Number(i) : l.compare(s, i);
|
|
582
582
|
}
|
|
583
583
|
return 0;
|
|
584
584
|
}).map((o) => {
|
|
@@ -587,8 +587,8 @@ function _a(e, t, a, n) {
|
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
function Ba() {
|
|
590
|
-
const e =
|
|
591
|
-
|
|
590
|
+
const e = q([]);
|
|
591
|
+
Tt(() => e.value = []);
|
|
592
592
|
function t(a, n) {
|
|
593
593
|
e.value[n] = a;
|
|
594
594
|
}
|
|
@@ -663,20 +663,20 @@ const Oa = B({
|
|
|
663
663
|
default: "..."
|
|
664
664
|
},
|
|
665
665
|
showFirstLastPage: Boolean,
|
|
666
|
-
...
|
|
666
|
+
...zt(),
|
|
667
|
+
...Xe(),
|
|
668
|
+
...re(),
|
|
667
669
|
...Qe(),
|
|
668
|
-
...
|
|
669
|
-
...Ue(),
|
|
670
|
+
...Kt(),
|
|
670
671
|
...Wt(),
|
|
671
|
-
...
|
|
672
|
-
...qe({
|
|
672
|
+
...Ue({
|
|
673
673
|
tag: "nav"
|
|
674
674
|
}),
|
|
675
|
-
...
|
|
676
|
-
...
|
|
675
|
+
...Te(),
|
|
676
|
+
...Mt({
|
|
677
677
|
variant: "text"
|
|
678
678
|
})
|
|
679
|
-
}, "VPagination"),
|
|
679
|
+
}, "VPagination"), $e = M()({
|
|
680
680
|
name: "VPagination",
|
|
681
681
|
props: Oa(),
|
|
682
682
|
emits: {
|
|
@@ -696,31 +696,31 @@ const Oa = B({
|
|
|
696
696
|
n: o
|
|
697
697
|
} = te(), {
|
|
698
698
|
isRtl: c
|
|
699
|
-
} =
|
|
699
|
+
} = Gt(), {
|
|
700
700
|
themeClasses: d
|
|
701
701
|
} = Fe(e), {
|
|
702
|
-
width:
|
|
703
|
-
} =
|
|
704
|
-
|
|
702
|
+
width: v
|
|
703
|
+
} = me(), m = fe(-1);
|
|
704
|
+
Ie(void 0, {
|
|
705
705
|
scoped: !0
|
|
706
706
|
});
|
|
707
707
|
const {
|
|
708
|
-
resizeRef:
|
|
709
|
-
} =
|
|
708
|
+
resizeRef: h
|
|
709
|
+
} = jt((S) => {
|
|
710
710
|
if (!S.length) return;
|
|
711
711
|
const {
|
|
712
712
|
target: p,
|
|
713
|
-
contentRect:
|
|
713
|
+
contentRect: g
|
|
714
714
|
} = S[0], F = p.querySelector(".v-pagination__list > *");
|
|
715
715
|
if (!F) return;
|
|
716
|
-
const V =
|
|
717
|
-
m.value =
|
|
718
|
-
}), s = D(() => parseInt(e.length, 10)), i = D(() => parseInt(e.start, 10)), b = D(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value :
|
|
719
|
-
function
|
|
720
|
-
const
|
|
716
|
+
const V = g.width, T = F.offsetWidth + parseFloat(getComputedStyle(F).marginRight) * 2;
|
|
717
|
+
m.value = f(V, T);
|
|
718
|
+
}), s = D(() => parseInt(e.length, 10)), i = D(() => parseInt(e.start, 10)), b = D(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : f(v.value, 58));
|
|
719
|
+
function f(S, p) {
|
|
720
|
+
const g = e.showFirstLastPage ? 5 : 3;
|
|
721
721
|
return Math.max(0, Math.floor(
|
|
722
722
|
// Round to two decimal places to avoid floating point errors
|
|
723
|
-
Number(((S - p *
|
|
723
|
+
Number(((S - p * g) / p).toFixed(2))
|
|
724
724
|
));
|
|
725
725
|
}
|
|
726
726
|
const u = D(() => {
|
|
@@ -728,26 +728,26 @@ const Oa = B({
|
|
|
728
728
|
if (b.value <= 0) return [];
|
|
729
729
|
if (b.value === 1) return [l.value];
|
|
730
730
|
if (s.value <= b.value)
|
|
731
|
-
return
|
|
732
|
-
const S = b.value % 2 === 0, p = S ? b.value / 2 : Math.floor(b.value / 2),
|
|
733
|
-
if (
|
|
734
|
-
return [...
|
|
731
|
+
return ue(s.value, i.value);
|
|
732
|
+
const S = b.value % 2 === 0, p = S ? b.value / 2 : Math.floor(b.value / 2), g = S ? p : p + 1, F = s.value - p;
|
|
733
|
+
if (g - l.value >= 0)
|
|
734
|
+
return [...ue(Math.max(1, b.value - 1), i.value), e.ellipsis, s.value];
|
|
735
735
|
if (l.value - F >= (S ? 1 : 0)) {
|
|
736
736
|
const V = b.value - 1, T = s.value - V + i.value;
|
|
737
|
-
return [i.value, e.ellipsis, ...
|
|
737
|
+
return [i.value, e.ellipsis, ...ue(V, T)];
|
|
738
738
|
} else {
|
|
739
739
|
const V = Math.max(1, b.value - 2), T = V === 1 ? l.value : l.value - Math.ceil(V / 2) + i.value;
|
|
740
|
-
return [i.value, e.ellipsis, ...
|
|
740
|
+
return [i.value, e.ellipsis, ...ue(V, T), e.ellipsis, s.value];
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
|
-
function
|
|
744
|
-
S.preventDefault(), l.value = p,
|
|
743
|
+
function I(S, p, g) {
|
|
744
|
+
S.preventDefault(), l.value = p, g && n(g, p);
|
|
745
745
|
}
|
|
746
746
|
const {
|
|
747
|
-
refs:
|
|
748
|
-
updateRef:
|
|
747
|
+
refs: y,
|
|
748
|
+
updateRef: w
|
|
749
749
|
} = Ba();
|
|
750
|
-
|
|
750
|
+
Ie({
|
|
751
751
|
VPaginationBtn: {
|
|
752
752
|
color: _(() => e.color),
|
|
753
753
|
border: _(() => e.border),
|
|
@@ -759,14 +759,14 @@ const Oa = B({
|
|
|
759
759
|
}
|
|
760
760
|
});
|
|
761
761
|
const C = D(() => u.value.map((S, p) => {
|
|
762
|
-
const
|
|
762
|
+
const g = (F) => w(F, p);
|
|
763
763
|
if (typeof S == "string")
|
|
764
764
|
return {
|
|
765
765
|
isActive: !1,
|
|
766
766
|
key: `ellipsis-${p}`,
|
|
767
767
|
page: S,
|
|
768
768
|
props: {
|
|
769
|
-
ref:
|
|
769
|
+
ref: g,
|
|
770
770
|
ellipsis: !0,
|
|
771
771
|
icon: !0,
|
|
772
772
|
disabled: !0
|
|
@@ -779,44 +779,44 @@ const Oa = B({
|
|
|
779
779
|
key: S,
|
|
780
780
|
page: o(S),
|
|
781
781
|
props: {
|
|
782
|
-
ref:
|
|
782
|
+
ref: g,
|
|
783
783
|
ellipsis: !1,
|
|
784
784
|
icon: !0,
|
|
785
785
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
786
786
|
color: F ? e.activeColor : e.color,
|
|
787
787
|
"aria-current": F,
|
|
788
788
|
"aria-label": r(F ? e.currentPageAriaLabel : e.pageAriaLabel, S),
|
|
789
|
-
onClick: (V) =>
|
|
789
|
+
onClick: (V) => I(V, S)
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
})),
|
|
793
|
+
})), P = D(() => {
|
|
794
794
|
const S = !!e.disabled || l.value <= i.value, p = !!e.disabled || l.value >= i.value + s.value - 1;
|
|
795
795
|
return {
|
|
796
796
|
first: e.showFirstLastPage ? {
|
|
797
797
|
icon: c.value ? e.lastIcon : e.firstIcon,
|
|
798
|
-
onClick: (
|
|
798
|
+
onClick: (g) => I(g, i.value, "first"),
|
|
799
799
|
disabled: S,
|
|
800
800
|
"aria-label": r(e.firstAriaLabel),
|
|
801
801
|
"aria-disabled": S
|
|
802
802
|
} : void 0,
|
|
803
803
|
prev: {
|
|
804
804
|
icon: c.value ? e.nextIcon : e.prevIcon,
|
|
805
|
-
onClick: (
|
|
805
|
+
onClick: (g) => I(g, l.value - 1, "prev"),
|
|
806
806
|
disabled: S,
|
|
807
807
|
"aria-label": r(e.previousAriaLabel),
|
|
808
808
|
"aria-disabled": S
|
|
809
809
|
},
|
|
810
810
|
next: {
|
|
811
811
|
icon: c.value ? e.prevIcon : e.nextIcon,
|
|
812
|
-
onClick: (
|
|
812
|
+
onClick: (g) => I(g, l.value + 1, "next"),
|
|
813
813
|
disabled: p,
|
|
814
814
|
"aria-label": r(e.nextAriaLabel),
|
|
815
815
|
"aria-disabled": p
|
|
816
816
|
},
|
|
817
817
|
last: e.showFirstLastPage ? {
|
|
818
818
|
icon: c.value ? e.firstIcon : e.lastIcon,
|
|
819
|
-
onClick: (
|
|
819
|
+
onClick: (g) => I(g, i.value + s.value - 1, "last"),
|
|
820
820
|
disabled: p,
|
|
821
821
|
"aria-label": r(e.lastAriaLabel),
|
|
822
822
|
"aria-disabled": p
|
|
@@ -825,15 +825,15 @@ const Oa = B({
|
|
|
825
825
|
});
|
|
826
826
|
function R() {
|
|
827
827
|
const S = l.value - i.value;
|
|
828
|
-
|
|
828
|
+
y.value[S]?.$el.focus();
|
|
829
829
|
}
|
|
830
830
|
function H(S) {
|
|
831
|
-
S.key ===
|
|
831
|
+
S.key === Ae.left && !e.disabled && l.value > Number(e.start) ? (l.value = l.value - 1, ke(R)) : S.key === Ae.right && !e.disabled && l.value < i.value + s.value - 1 && (l.value = l.value + 1, ke(R));
|
|
832
832
|
}
|
|
833
|
-
return
|
|
834
|
-
ref:
|
|
835
|
-
class:
|
|
836
|
-
style:
|
|
833
|
+
return z(() => k(e.tag, {
|
|
834
|
+
ref: h,
|
|
835
|
+
class: K(["v-pagination", d.value, e.class]),
|
|
836
|
+
style: Ce(e.style),
|
|
837
837
|
role: "navigation",
|
|
838
838
|
"aria-label": r(e.ariaLabel),
|
|
839
839
|
onKeydown: H,
|
|
@@ -845,17 +845,17 @@ const Oa = B({
|
|
|
845
845
|
key: "first",
|
|
846
846
|
class: "v-pagination__first",
|
|
847
847
|
"data-test": "v-pagination-first"
|
|
848
|
-
}, [a.first ? a.first(
|
|
848
|
+
}, [a.first ? a.first(P.value.first) : k(U, E({
|
|
849
849
|
_as: "VPaginationBtn"
|
|
850
|
-
},
|
|
850
|
+
}, P.value.first), null)]), x("li", {
|
|
851
851
|
key: "prev",
|
|
852
852
|
class: "v-pagination__prev",
|
|
853
853
|
"data-test": "v-pagination-prev"
|
|
854
|
-
}, [a.prev ? a.prev(
|
|
854
|
+
}, [a.prev ? a.prev(P.value.prev) : k(U, E({
|
|
855
855
|
_as: "VPaginationBtn"
|
|
856
|
-
},
|
|
856
|
+
}, P.value.prev), null)]), C.value.map((S, p) => x("li", {
|
|
857
857
|
key: S.key,
|
|
858
|
-
class:
|
|
858
|
+
class: K(["v-pagination__item", {
|
|
859
859
|
"v-pagination__item--is-active": S.isActive
|
|
860
860
|
}]),
|
|
861
861
|
"data-test": "v-pagination-item"
|
|
@@ -867,18 +867,18 @@ const Oa = B({
|
|
|
867
867
|
key: "next",
|
|
868
868
|
class: "v-pagination__next",
|
|
869
869
|
"data-test": "v-pagination-next"
|
|
870
|
-
}, [a.next ? a.next(
|
|
870
|
+
}, [a.next ? a.next(P.value.next) : k(U, E({
|
|
871
871
|
_as: "VPaginationBtn"
|
|
872
|
-
},
|
|
872
|
+
}, P.value.next), null)]), e.showFirstLastPage && x("li", {
|
|
873
873
|
key: "last",
|
|
874
874
|
class: "v-pagination__last",
|
|
875
875
|
"data-test": "v-pagination-last"
|
|
876
|
-
}, [a.last ? a.last(
|
|
876
|
+
}, [a.last ? a.last(P.value.last) : k(U, E({
|
|
877
877
|
_as: "VPaginationBtn"
|
|
878
|
-
},
|
|
878
|
+
}, P.value.last), null)])])]
|
|
879
879
|
})), {};
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), dt = B({
|
|
882
882
|
color: String,
|
|
883
883
|
prevIcon: {
|
|
884
884
|
type: A,
|
|
@@ -940,9 +940,9 @@ const Oa = B({
|
|
|
940
940
|
}]
|
|
941
941
|
},
|
|
942
942
|
showCurrentPage: Boolean
|
|
943
|
-
}, "VDataTableFooter"),
|
|
943
|
+
}, "VDataTableFooter"), He = M()({
|
|
944
944
|
name: "VDataTableFooter",
|
|
945
|
-
props:
|
|
945
|
+
props: dt(),
|
|
946
946
|
setup(e, t) {
|
|
947
947
|
let {
|
|
948
948
|
slots: a
|
|
@@ -955,25 +955,25 @@ const Oa = B({
|
|
|
955
955
|
startIndex: o,
|
|
956
956
|
stopIndex: c,
|
|
957
957
|
itemsLength: d,
|
|
958
|
-
itemsPerPage:
|
|
958
|
+
itemsPerPage: v,
|
|
959
959
|
setItemsPerPage: m
|
|
960
|
-
} = pa(),
|
|
960
|
+
} = pa(), h = D(() => e.itemsPerPageOptions.map((s) => typeof s == "number" ? {
|
|
961
961
|
value: s,
|
|
962
962
|
title: s === -1 ? n("$vuetify.dataFooter.itemsPerPageAll") : String(s)
|
|
963
963
|
} : {
|
|
964
964
|
...s,
|
|
965
965
|
title: isNaN(Number(s.title)) ? n(s.title) : s.title
|
|
966
966
|
}));
|
|
967
|
-
return
|
|
968
|
-
const s =
|
|
967
|
+
return z(() => {
|
|
968
|
+
const s = $e.filterProps(e);
|
|
969
969
|
return x("div", {
|
|
970
970
|
class: "v-data-table-footer"
|
|
971
971
|
}, [a.prepend?.(), x("div", {
|
|
972
972
|
class: "v-data-table-footer__items-per-page"
|
|
973
|
-
}, [x("span", null, [n(e.itemsPerPageText)]), k(
|
|
974
|
-
items:
|
|
973
|
+
}, [x("span", null, [n(e.itemsPerPageText)]), k(Ze, {
|
|
974
|
+
items: h.value,
|
|
975
975
|
itemColor: e.color,
|
|
976
|
-
modelValue:
|
|
976
|
+
modelValue: v.value,
|
|
977
977
|
"onUpdate:modelValue": (i) => m(Number(i)),
|
|
978
978
|
density: "compact",
|
|
979
979
|
variant: "outlined",
|
|
@@ -983,7 +983,7 @@ const Oa = B({
|
|
|
983
983
|
class: "v-data-table-footer__info"
|
|
984
984
|
}, [x("div", null, [n(e.pageText, d.value ? o.value + 1 : 0, c.value, d.value)])]), x("div", {
|
|
985
985
|
class: "v-data-table-footer__pagination"
|
|
986
|
-
}, [k(
|
|
986
|
+
}, [k($e, E({
|
|
987
987
|
modelValue: l.value,
|
|
988
988
|
"onUpdate:modelValue": (i) => l.value = i,
|
|
989
989
|
density: "comfortable",
|
|
@@ -996,10 +996,10 @@ const Oa = B({
|
|
|
996
996
|
showFirstLastPage: !0,
|
|
997
997
|
totalVisible: e.showCurrentPage ? 1 : 0,
|
|
998
998
|
variant: "plain"
|
|
999
|
-
},
|
|
999
|
+
}, _e(s, ["color"])), null)])]);
|
|
1000
1000
|
}), {};
|
|
1001
1001
|
}
|
|
1002
|
-
}),
|
|
1002
|
+
}), le = qt({
|
|
1003
1003
|
align: {
|
|
1004
1004
|
type: String,
|
|
1005
1005
|
default: "start"
|
|
@@ -1026,7 +1026,7 @@ const Oa = B({
|
|
|
1026
1026
|
} = t;
|
|
1027
1027
|
const n = e.tag ?? "td", l = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
|
|
1028
1028
|
return k(n, {
|
|
1029
|
-
class:
|
|
1029
|
+
class: K(["v-data-table__td", {
|
|
1030
1030
|
"v-data-table-column--fixed": l === "start",
|
|
1031
1031
|
"v-data-table-column--fixed-end": l === "end",
|
|
1032
1032
|
"v-data-table-column--last-fixed": e.lastFixed,
|
|
@@ -1048,11 +1048,11 @@ const Oa = B({
|
|
|
1048
1048
|
});
|
|
1049
1049
|
}), Ea = B({
|
|
1050
1050
|
headers: Array
|
|
1051
|
-
}, "DataTable-header"),
|
|
1051
|
+
}, "DataTable-header"), ct = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), ft = {
|
|
1052
1052
|
title: "",
|
|
1053
1053
|
sortable: !1
|
|
1054
1054
|
}, Aa = {
|
|
1055
|
-
...
|
|
1055
|
+
...ft,
|
|
1056
1056
|
width: 48
|
|
1057
1057
|
};
|
|
1058
1058
|
function La() {
|
|
@@ -1088,30 +1088,30 @@ function La() {
|
|
|
1088
1088
|
dequeue: () => t.shift()
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Ve(e) {
|
|
1092
1092
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1093
1093
|
if (!e.children)
|
|
1094
1094
|
t.push(e);
|
|
1095
1095
|
else
|
|
1096
1096
|
for (const a of e.children)
|
|
1097
|
-
|
|
1097
|
+
Ve(a, t);
|
|
1098
1098
|
return t;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function vt(e) {
|
|
1101
1101
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();
|
|
1102
1102
|
for (const a of e)
|
|
1103
|
-
a.key && t.add(a.key), a.children &&
|
|
1103
|
+
a.key && t.add(a.key), a.children && vt(a.children, t);
|
|
1104
1104
|
return t;
|
|
1105
1105
|
}
|
|
1106
1106
|
function Na(e) {
|
|
1107
1107
|
if (e.key) {
|
|
1108
|
-
if (e.key === "data-table-group") return
|
|
1108
|
+
if (e.key === "data-table-group") return ft;
|
|
1109
1109
|
if (["data-table-expand", "data-table-select"].includes(e.key)) return Aa;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Oe(e) {
|
|
1113
1113
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1114
|
-
return e.children ? Math.max(t, ...e.children.map((a) =>
|
|
1114
|
+
return e.children ? Math.max(t, ...e.children.map((a) => Oe(a, t + 1))) : t;
|
|
1115
1115
|
}
|
|
1116
1116
|
function Ra(e) {
|
|
1117
1117
|
let t = !1;
|
|
@@ -1127,7 +1127,7 @@ function Ra(e) {
|
|
|
1127
1127
|
for (let d = 0; d < r.children.length; d++)
|
|
1128
1128
|
a(r.children[d], o, o);
|
|
1129
1129
|
else
|
|
1130
|
-
!t && o === "start" ? r.lastFixed = !0 : !t && o === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ?
|
|
1130
|
+
!t && o === "start" ? r.lastFixed = !0 : !t && o === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? Ut(`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;
|
|
1131
1131
|
else if (r.children)
|
|
1132
1132
|
if (o === "start")
|
|
1133
1133
|
for (let d = r.children.length - 1; d >= 0; d--)
|
|
@@ -1147,7 +1147,7 @@ function Ra(e) {
|
|
|
1147
1147
|
n = gt(e[r], n);
|
|
1148
1148
|
let l = 0;
|
|
1149
1149
|
for (let r = e.length - 1; r >= 0; r--)
|
|
1150
|
-
l =
|
|
1150
|
+
l = mt(e[r], l);
|
|
1151
1151
|
}
|
|
1152
1152
|
function gt(e) {
|
|
1153
1153
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
@@ -1159,13 +1159,13 @@ function gt(e) {
|
|
|
1159
1159
|
} else e.fixed && e.fixed !== "end" && (e.fixedOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1160
1160
|
return t;
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function mt(e) {
|
|
1163
1163
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1164
1164
|
if (!e) return t;
|
|
1165
1165
|
if (e.children) {
|
|
1166
1166
|
e.fixedEndOffset = t;
|
|
1167
1167
|
for (const a of e.children)
|
|
1168
|
-
t =
|
|
1168
|
+
t = mt(a, t);
|
|
1169
1169
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1170
1170
|
return t;
|
|
1171
1171
|
}
|
|
@@ -1179,28 +1179,28 @@ function $a(e, t) {
|
|
|
1179
1179
|
let d = 1;
|
|
1180
1180
|
for (; o > 0; ) {
|
|
1181
1181
|
const {
|
|
1182
|
-
element:
|
|
1182
|
+
element: v,
|
|
1183
1183
|
priority: m
|
|
1184
|
-
} = l.dequeue(),
|
|
1184
|
+
} = l.dequeue(), h = t - n - Oe(v);
|
|
1185
1185
|
if (c.push({
|
|
1186
|
-
...
|
|
1187
|
-
rowspan:
|
|
1188
|
-
colspan:
|
|
1189
|
-
}),
|
|
1190
|
-
for (const s of
|
|
1186
|
+
...v,
|
|
1187
|
+
rowspan: h ?? 1,
|
|
1188
|
+
colspan: v.children ? Ve(v).length : 1
|
|
1189
|
+
}), v.children)
|
|
1190
|
+
for (const s of v.children) {
|
|
1191
1191
|
const i = m % 1 + d / Math.pow(10, n + 2);
|
|
1192
|
-
l.enqueue(s, n +
|
|
1192
|
+
l.enqueue(s, n + h + i);
|
|
1193
1193
|
}
|
|
1194
1194
|
d += 1, o -= 1;
|
|
1195
1195
|
}
|
|
1196
1196
|
n += 1, a.push(c);
|
|
1197
1197
|
}
|
|
1198
1198
|
return {
|
|
1199
|
-
columns: e.map((o) =>
|
|
1199
|
+
columns: e.map((o) => Ve(o)).flat(),
|
|
1200
1200
|
headers: a
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function bt(e) {
|
|
1204
1204
|
const t = [];
|
|
1205
1205
|
for (const a of e) {
|
|
1206
1206
|
const n = {
|
|
@@ -1211,34 +1211,34 @@ function mt(e) {
|
|
|
1211
1211
|
key: l,
|
|
1212
1212
|
value: r,
|
|
1213
1213
|
sortable: n.sortable ?? (n.key != null || !!n.sort),
|
|
1214
|
-
children: n.children ?
|
|
1214
|
+
children: n.children ? bt(n.children) : void 0
|
|
1215
1215
|
};
|
|
1216
1216
|
t.push(o);
|
|
1217
1217
|
}
|
|
1218
1218
|
return t;
|
|
1219
1219
|
}
|
|
1220
1220
|
function Ha(e, t) {
|
|
1221
|
-
const a =
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1224
|
-
key:
|
|
1225
|
-
title:
|
|
1226
|
-
}))).slice(), m =
|
|
1227
|
-
t?.groupBy?.value.length && !m.has("data-table-group") &&
|
|
1221
|
+
const a = q([]), n = q([]), l = q({}), r = q({}), o = q({});
|
|
1222
|
+
_t(() => {
|
|
1223
|
+
const v = (e.headers || Object.keys(e.items[0] ?? {}).map((f) => ({
|
|
1224
|
+
key: f,
|
|
1225
|
+
title: Bt(f)
|
|
1226
|
+
}))).slice(), m = vt(v);
|
|
1227
|
+
t?.groupBy?.value.length && !m.has("data-table-group") && v.unshift({
|
|
1228
1228
|
key: "data-table-group",
|
|
1229
1229
|
title: "Group"
|
|
1230
|
-
}), t?.showSelect?.value && !m.has("data-table-select") &&
|
|
1230
|
+
}), t?.showSelect?.value && !m.has("data-table-select") && v.unshift({
|
|
1231
1231
|
key: "data-table-select"
|
|
1232
|
-
}), t?.showExpand?.value && !m.has("data-table-expand") &&
|
|
1232
|
+
}), t?.showExpand?.value && !m.has("data-table-expand") && v.push({
|
|
1233
1233
|
key: "data-table-expand"
|
|
1234
1234
|
});
|
|
1235
|
-
const
|
|
1236
|
-
Ra(
|
|
1237
|
-
const s = Math.max(...
|
|
1235
|
+
const h = bt(v);
|
|
1236
|
+
Ra(h);
|
|
1237
|
+
const s = Math.max(...h.map((f) => Oe(f))) + 1, i = $a(h, s);
|
|
1238
1238
|
a.value = i.headers, n.value = i.columns;
|
|
1239
1239
|
const b = i.headers.flat(1);
|
|
1240
|
-
for (const
|
|
1241
|
-
|
|
1240
|
+
for (const f of b)
|
|
1241
|
+
f.key && (f.sortable && (f.sort && (l.value[f.key] = f.sort), f.sortRaw && (r.value[f.key] = f.sortRaw)), f.filter && (o.value[f.key] = f.filter));
|
|
1242
1242
|
});
|
|
1243
1243
|
const c = {
|
|
1244
1244
|
headers: a,
|
|
@@ -1247,14 +1247,14 @@ function Ha(e, t) {
|
|
|
1247
1247
|
sortRawFunctions: r,
|
|
1248
1248
|
filterFunctions: o
|
|
1249
1249
|
};
|
|
1250
|
-
return ee(
|
|
1250
|
+
return ee(ct, c), c;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1253
|
-
const e = Y(
|
|
1252
|
+
function ye() {
|
|
1253
|
+
const e = Y(ct);
|
|
1254
1254
|
if (!e) throw new Error("Missing headers!");
|
|
1255
1255
|
return e;
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1257
|
+
const yt = B({
|
|
1258
1258
|
color: String,
|
|
1259
1259
|
disableSort: Boolean,
|
|
1260
1260
|
fixedHeader: Boolean,
|
|
@@ -1277,12 +1277,12 @@ const bt = B({
|
|
|
1277
1277
|
},
|
|
1278
1278
|
/** @deprecated */
|
|
1279
1279
|
sticky: Boolean,
|
|
1280
|
-
...
|
|
1281
|
-
...
|
|
1282
|
-
...
|
|
1283
|
-
}, "VDataTableHeaders"),
|
|
1280
|
+
...re(),
|
|
1281
|
+
...Be(),
|
|
1282
|
+
...Qt()
|
|
1283
|
+
}, "VDataTableHeaders"), Ge = M()({
|
|
1284
1284
|
name: "VDataTableHeaders",
|
|
1285
|
-
props:
|
|
1285
|
+
props: yt(),
|
|
1286
1286
|
setup(e, t) {
|
|
1287
1287
|
let {
|
|
1288
1288
|
slots: a
|
|
@@ -1293,29 +1293,29 @@ const bt = B({
|
|
|
1293
1293
|
toggleSort: l,
|
|
1294
1294
|
sortBy: r,
|
|
1295
1295
|
isSorted: o
|
|
1296
|
-
} =
|
|
1296
|
+
} = ut(), {
|
|
1297
1297
|
someSelected: c,
|
|
1298
1298
|
allSelected: d,
|
|
1299
|
-
selectAll:
|
|
1299
|
+
selectAll: v,
|
|
1300
1300
|
showSelectAll: m
|
|
1301
|
-
} = me(), {
|
|
1302
|
-
columns: y,
|
|
1303
|
-
headers: s
|
|
1304
1301
|
} = be(), {
|
|
1302
|
+
columns: h,
|
|
1303
|
+
headers: s
|
|
1304
|
+
} = ye(), {
|
|
1305
1305
|
loaderClasses: i
|
|
1306
|
-
} =
|
|
1307
|
-
function b(p,
|
|
1306
|
+
} = Xt(e);
|
|
1307
|
+
function b(p, g) {
|
|
1308
1308
|
if (!(e.sticky || e.fixedHeader) && !p.fixed) return;
|
|
1309
1309
|
const F = typeof p.fixed == "string" ? p.fixed : p.fixed ? "start" : "none";
|
|
1310
1310
|
return {
|
|
1311
1311
|
position: "sticky",
|
|
1312
1312
|
left: F === "start" ? $(p.fixedOffset) : void 0,
|
|
1313
1313
|
right: F === "end" ? $(p.fixedEndOffset) : void 0,
|
|
1314
|
-
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${
|
|
1314
|
+
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
|
|
1315
1315
|
};
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
p.key === "Enter" && !e.disableSort && l(
|
|
1317
|
+
function f(p, g) {
|
|
1318
|
+
p.key === "Enter" && !e.disableSort && l(g, p);
|
|
1319
1319
|
}
|
|
1320
1320
|
function u(p) {
|
|
1321
1321
|
switch (r.value.find((F) => F.key === p.key)?.order) {
|
|
@@ -1328,60 +1328,60 @@ const bt = B({
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
const {
|
|
1331
|
-
backgroundColorClasses:
|
|
1332
|
-
backgroundColorStyles:
|
|
1333
|
-
} =
|
|
1334
|
-
displayClasses:
|
|
1331
|
+
backgroundColorClasses: I,
|
|
1332
|
+
backgroundColorStyles: y
|
|
1333
|
+
} = Ye(() => e.color), {
|
|
1334
|
+
displayClasses: w,
|
|
1335
1335
|
mobile: C
|
|
1336
|
-
} =
|
|
1336
|
+
} = me(e), P = D(() => ({
|
|
1337
1337
|
headers: s.value,
|
|
1338
|
-
columns:
|
|
1338
|
+
columns: h.value,
|
|
1339
1339
|
toggleSort: l,
|
|
1340
1340
|
isSorted: o,
|
|
1341
1341
|
sortBy: r.value,
|
|
1342
1342
|
someSelected: c.value,
|
|
1343
1343
|
allSelected: d.value,
|
|
1344
|
-
selectAll:
|
|
1344
|
+
selectAll: v,
|
|
1345
1345
|
getSortIcon: u
|
|
1346
1346
|
})), R = D(() => ["v-data-table__th", {
|
|
1347
1347
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1348
|
-
},
|
|
1348
|
+
}, w.value, i.value]), H = (p) => {
|
|
1349
1349
|
let {
|
|
1350
|
-
column:
|
|
1350
|
+
column: g,
|
|
1351
1351
|
x: F,
|
|
1352
1352
|
y: V
|
|
1353
1353
|
} = p;
|
|
1354
|
-
const T =
|
|
1355
|
-
return k(
|
|
1354
|
+
const T = g.key === "data-table-select" || g.key === "data-table-expand", L = g.key === "data-table-group" && g.width === 0 && !g.title, Z = E(e.headerProps ?? {}, g.headerProps ?? {});
|
|
1355
|
+
return k(le, E({
|
|
1356
1356
|
tag: "th",
|
|
1357
|
-
align:
|
|
1357
|
+
align: g.align,
|
|
1358
1358
|
class: [{
|
|
1359
|
-
"v-data-table__th--sortable":
|
|
1360
|
-
"v-data-table__th--sorted": o(
|
|
1361
|
-
"v-data-table__th--fixed":
|
|
1359
|
+
"v-data-table__th--sortable": g.sortable && !e.disableSort,
|
|
1360
|
+
"v-data-table__th--sorted": o(g),
|
|
1361
|
+
"v-data-table__th--fixed": g.fixed
|
|
1362
1362
|
}, ...R.value],
|
|
1363
1363
|
style: {
|
|
1364
|
-
width: $(
|
|
1365
|
-
minWidth: $(
|
|
1366
|
-
maxWidth: $(
|
|
1367
|
-
...b(
|
|
1364
|
+
width: $(g.width),
|
|
1365
|
+
minWidth: $(g.minWidth),
|
|
1366
|
+
maxWidth: $(g.maxWidth),
|
|
1367
|
+
...b(g, V)
|
|
1368
1368
|
},
|
|
1369
|
-
colspan:
|
|
1370
|
-
rowspan:
|
|
1371
|
-
fixed:
|
|
1372
|
-
nowrap:
|
|
1373
|
-
lastFixed:
|
|
1374
|
-
firstFixedEnd:
|
|
1369
|
+
colspan: g.colspan,
|
|
1370
|
+
rowspan: g.rowspan,
|
|
1371
|
+
fixed: g.fixed,
|
|
1372
|
+
nowrap: g.nowrap,
|
|
1373
|
+
lastFixed: g.lastFixed,
|
|
1374
|
+
firstFixedEnd: g.firstFixedEnd,
|
|
1375
1375
|
noPadding: T,
|
|
1376
1376
|
empty: L,
|
|
1377
|
-
tabindex:
|
|
1378
|
-
onClick:
|
|
1379
|
-
onKeydown:
|
|
1377
|
+
tabindex: g.sortable ? 0 : void 0,
|
|
1378
|
+
onClick: g.sortable ? (O) => l(g, O) : void 0,
|
|
1379
|
+
onKeydown: g.sortable ? (O) => f(O, g) : void 0
|
|
1380
1380
|
}, Z), {
|
|
1381
1381
|
default: () => {
|
|
1382
|
-
const O = `header.${
|
|
1383
|
-
column:
|
|
1384
|
-
selectAll:
|
|
1382
|
+
const O = `header.${g.key}`, W = {
|
|
1383
|
+
column: g,
|
|
1384
|
+
selectAll: v,
|
|
1385
1385
|
isSorted: o,
|
|
1386
1386
|
toggleSort: l,
|
|
1387
1387
|
sortBy: r.value,
|
|
@@ -1389,27 +1389,27 @@ const bt = B({
|
|
|
1389
1389
|
allSelected: d.value,
|
|
1390
1390
|
getSortIcon: u
|
|
1391
1391
|
};
|
|
1392
|
-
return a[O] ? a[O](W) : L ? "" :
|
|
1392
|
+
return a[O] ? a[O](W) : L ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(W) ?? (m.value && k(ge, {
|
|
1393
1393
|
color: e.color,
|
|
1394
1394
|
density: e.density,
|
|
1395
1395
|
modelValue: d.value,
|
|
1396
1396
|
indeterminate: c.value && !d.value,
|
|
1397
|
-
"onUpdate:modelValue":
|
|
1397
|
+
"onUpdate:modelValue": v
|
|
1398
1398
|
}, null)) : x("div", {
|
|
1399
1399
|
class: "v-data-table-header__content"
|
|
1400
|
-
}, [x("span", null, [
|
|
1400
|
+
}, [x("span", null, [g.title]), g.sortable && !e.disableSort && k(Le, {
|
|
1401
1401
|
key: "icon",
|
|
1402
1402
|
class: "v-data-table-header__sort-icon",
|
|
1403
|
-
icon: u(
|
|
1404
|
-
}, null), e.multiSort && o(
|
|
1403
|
+
icon: u(g)
|
|
1404
|
+
}, null), e.multiSort && o(g) && x("div", {
|
|
1405
1405
|
key: "badge",
|
|
1406
|
-
class:
|
|
1407
|
-
style:
|
|
1408
|
-
}, [r.value.findIndex((ae) => ae.key ===
|
|
1406
|
+
class: K(["v-data-table-header__sort-badge", ...I.value]),
|
|
1407
|
+
style: Ce(y.value)
|
|
1408
|
+
}, [r.value.findIndex((ae) => ae.key === g.key) + 1])]);
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
}, S = () => {
|
|
1412
|
-
const p = D(() =>
|
|
1412
|
+
const p = D(() => h.value.filter((V) => V?.sortable && !e.disableSort)), g = h.value.find((V) => V.key === "data-table-select"), F = D({
|
|
1413
1413
|
get: () => p.value.filter((V) => {
|
|
1414
1414
|
let {
|
|
1415
1415
|
key: T
|
|
@@ -1423,7 +1423,7 @@ const bt = B({
|
|
|
1423
1423
|
key: W
|
|
1424
1424
|
} = O;
|
|
1425
1425
|
return !L.includes(W);
|
|
1426
|
-
}).forEach((O) => l(O)),
|
|
1426
|
+
}).forEach((O) => l(O)), ke(() => r.value = r.value.filter((O) => {
|
|
1427
1427
|
let {
|
|
1428
1428
|
key: W
|
|
1429
1429
|
} = O;
|
|
@@ -1431,14 +1431,14 @@ const bt = B({
|
|
|
1431
1431
|
}));
|
|
1432
1432
|
}
|
|
1433
1433
|
});
|
|
1434
|
-
return k(
|
|
1434
|
+
return k(le, E({
|
|
1435
1435
|
tag: "th",
|
|
1436
1436
|
class: [...R.value],
|
|
1437
1437
|
colspan: s.value.length + 1
|
|
1438
1438
|
}, e.headerProps), {
|
|
1439
1439
|
default: () => [x("div", {
|
|
1440
1440
|
class: "v-data-table-header__content"
|
|
1441
|
-
}, [k(
|
|
1441
|
+
}, [k(Ze, {
|
|
1442
1442
|
modelValue: F.value,
|
|
1443
1443
|
"onUpdate:modelValue": (V) => F.value = V,
|
|
1444
1444
|
chips: !0,
|
|
@@ -1453,25 +1453,25 @@ const bt = B({
|
|
|
1453
1453
|
returnObject: !0,
|
|
1454
1454
|
"onClick:clear": () => r.value = []
|
|
1455
1455
|
}, {
|
|
1456
|
-
append:
|
|
1456
|
+
append: g ? () => k(ge, {
|
|
1457
1457
|
color: e.color,
|
|
1458
1458
|
density: "compact",
|
|
1459
1459
|
modelValue: d.value,
|
|
1460
1460
|
indeterminate: c.value && !d.value,
|
|
1461
|
-
"onUpdate:modelValue": () =>
|
|
1461
|
+
"onUpdate:modelValue": () => v(!d.value)
|
|
1462
1462
|
}, null) : void 0,
|
|
1463
1463
|
chip: (V) => {
|
|
1464
1464
|
let {
|
|
1465
1465
|
item: T
|
|
1466
1466
|
} = V;
|
|
1467
|
-
return k(
|
|
1467
|
+
return k(na, {
|
|
1468
1468
|
onClick: T.raw.sortable ? () => l(T.raw, void 0, !0) : void 0,
|
|
1469
1469
|
onMousedown: (L) => {
|
|
1470
1470
|
L.preventDefault(), L.stopPropagation();
|
|
1471
1471
|
}
|
|
1472
1472
|
}, {
|
|
1473
|
-
default: () => [T.title, k(
|
|
1474
|
-
class:
|
|
1473
|
+
default: () => [T.title, k(Le, {
|
|
1474
|
+
class: K(["v-data-table__td-sort-icon", o(T.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1475
1475
|
icon: u(T.raw),
|
|
1476
1476
|
size: "small"
|
|
1477
1477
|
}, null)]
|
|
@@ -1480,15 +1480,15 @@ const bt = B({
|
|
|
1480
1480
|
})])]
|
|
1481
1481
|
});
|
|
1482
1482
|
};
|
|
1483
|
-
|
|
1483
|
+
z(() => C.value ? x("tr", null, [k(S, null, null)]) : x(Q, null, [a.headers ? a.headers(P.value) : s.value.map((p, g) => x("tr", null, [p.map((F, V) => k(H, {
|
|
1484
1484
|
column: F,
|
|
1485
1485
|
x: V,
|
|
1486
|
-
y:
|
|
1486
|
+
y: g
|
|
1487
1487
|
}, null))])), e.loading && x("tr", {
|
|
1488
1488
|
class: "v-data-table-progress"
|
|
1489
1489
|
}, [x("th", {
|
|
1490
|
-
colspan:
|
|
1491
|
-
}, [k(
|
|
1490
|
+
colspan: h.value.length
|
|
1491
|
+
}, [k(Yt, {
|
|
1492
1492
|
name: "v-data-table-progress",
|
|
1493
1493
|
absolute: !0,
|
|
1494
1494
|
active: !0,
|
|
@@ -1498,7 +1498,7 @@ const bt = B({
|
|
|
1498
1498
|
default: a.loader
|
|
1499
1499
|
})])])]));
|
|
1500
1500
|
}
|
|
1501
|
-
}),
|
|
1501
|
+
}), ht = B({
|
|
1502
1502
|
item: {
|
|
1503
1503
|
type: Object,
|
|
1504
1504
|
required: !0
|
|
@@ -1511,10 +1511,10 @@ const bt = B({
|
|
|
1511
1511
|
type: A,
|
|
1512
1512
|
default: "$tableGroupExpand"
|
|
1513
1513
|
},
|
|
1514
|
-
...
|
|
1514
|
+
...re()
|
|
1515
1515
|
}, "VDataTableGroupHeaderRow"), Ga = M()({
|
|
1516
1516
|
name: "VDataTableGroupHeaderRow",
|
|
1517
|
-
props:
|
|
1517
|
+
props: ht(),
|
|
1518
1518
|
setup(e, t) {
|
|
1519
1519
|
let {
|
|
1520
1520
|
slots: a
|
|
@@ -1523,19 +1523,19 @@ const bt = B({
|
|
|
1523
1523
|
isGroupOpen: n,
|
|
1524
1524
|
toggleGroup: l,
|
|
1525
1525
|
extractRows: r
|
|
1526
|
-
} =
|
|
1526
|
+
} = at(), {
|
|
1527
1527
|
isSelected: o,
|
|
1528
1528
|
isSomeSelected: c,
|
|
1529
1529
|
select: d
|
|
1530
|
-
} =
|
|
1531
|
-
columns:
|
|
1532
|
-
} =
|
|
1530
|
+
} = be(), {
|
|
1531
|
+
columns: v
|
|
1532
|
+
} = ye(), m = D(() => r([e.item])), h = _(() => v.value.length - (v.value.some((s) => s.key === "data-table-select") ? 1 : 0));
|
|
1533
1533
|
return () => x("tr", {
|
|
1534
1534
|
class: "v-data-table-group-header-row",
|
|
1535
1535
|
style: {
|
|
1536
1536
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
1537
1537
|
}
|
|
1538
|
-
}, [
|
|
1538
|
+
}, [v.value.map((s) => {
|
|
1539
1539
|
if (s.key === "data-table-group") {
|
|
1540
1540
|
const i = n(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => l(e.item);
|
|
1541
1541
|
return a["data-table-group"]?.({
|
|
@@ -1545,34 +1545,34 @@ const bt = B({
|
|
|
1545
1545
|
icon: i,
|
|
1546
1546
|
onClick: b
|
|
1547
1547
|
}
|
|
1548
|
-
}) ?? k(
|
|
1548
|
+
}) ?? k(le, {
|
|
1549
1549
|
class: "v-data-table-group-header-row__column",
|
|
1550
|
-
colspan:
|
|
1550
|
+
colspan: h.value
|
|
1551
1551
|
}, {
|
|
1552
1552
|
default: () => [k(U, {
|
|
1553
1553
|
size: "small",
|
|
1554
1554
|
variant: "text",
|
|
1555
1555
|
icon: i,
|
|
1556
1556
|
onClick: b
|
|
1557
|
-
}, null), x("span", null, [e.item.value]), x("span", null, [
|
|
1557
|
+
}, null), x("span", null, [e.item.value]), x("span", null, [Ee("("), m.value.length, Ee(")")])]
|
|
1558
1558
|
});
|
|
1559
1559
|
} else if (s.key === "data-table-select") {
|
|
1560
|
-
const i = m.value.filter((
|
|
1560
|
+
const i = m.value.filter((I) => I.selectable), b = i.length > 0 && o(i), f = c(i) && !b, u = (I) => d(i, I);
|
|
1561
1561
|
return a["data-table-select"]?.({
|
|
1562
1562
|
props: {
|
|
1563
1563
|
modelValue: b,
|
|
1564
|
-
indeterminate:
|
|
1564
|
+
indeterminate: f,
|
|
1565
1565
|
"onUpdate:modelValue": u
|
|
1566
1566
|
}
|
|
1567
|
-
}) ?? k(
|
|
1567
|
+
}) ?? k(le, {
|
|
1568
1568
|
class: "v-data-table__td--select-row",
|
|
1569
1569
|
noPadding: !0
|
|
1570
1570
|
}, {
|
|
1571
|
-
default: () => [k(
|
|
1571
|
+
default: () => [k(ge, {
|
|
1572
1572
|
density: e.density,
|
|
1573
1573
|
disabled: i.length === 0,
|
|
1574
1574
|
modelValue: b,
|
|
1575
|
-
indeterminate:
|
|
1575
|
+
indeterminate: f,
|
|
1576
1576
|
"onUpdate:modelValue": u
|
|
1577
1577
|
}, null)]
|
|
1578
1578
|
});
|
|
@@ -1580,7 +1580,7 @@ const bt = B({
|
|
|
1580
1580
|
return "";
|
|
1581
1581
|
})]);
|
|
1582
1582
|
}
|
|
1583
|
-
}),
|
|
1583
|
+
}), pt = B({
|
|
1584
1584
|
color: String,
|
|
1585
1585
|
index: Number,
|
|
1586
1586
|
item: Object,
|
|
@@ -1593,14 +1593,14 @@ const bt = B({
|
|
|
1593
1593
|
type: A,
|
|
1594
1594
|
default: "$expand"
|
|
1595
1595
|
},
|
|
1596
|
-
onClick:
|
|
1597
|
-
onContextmenu:
|
|
1598
|
-
onDblclick:
|
|
1599
|
-
...
|
|
1600
|
-
...
|
|
1596
|
+
onClick: we(),
|
|
1597
|
+
onContextmenu: we(),
|
|
1598
|
+
onDblclick: we(),
|
|
1599
|
+
...re(),
|
|
1600
|
+
...Be()
|
|
1601
1601
|
}, "VDataTableRow"), ja = M()({
|
|
1602
1602
|
name: "VDataTableRow",
|
|
1603
|
-
props:
|
|
1603
|
+
props: pt(),
|
|
1604
1604
|
setup(e, t) {
|
|
1605
1605
|
let {
|
|
1606
1606
|
slots: a
|
|
@@ -1608,43 +1608,43 @@ const bt = B({
|
|
|
1608
1608
|
const {
|
|
1609
1609
|
displayClasses: n,
|
|
1610
1610
|
mobile: l
|
|
1611
|
-
} =
|
|
1611
|
+
} = me(e, "v-data-table__tr"), {
|
|
1612
1612
|
isSelected: r,
|
|
1613
1613
|
toggleSelect: o,
|
|
1614
1614
|
someSelected: c,
|
|
1615
1615
|
allSelected: d,
|
|
1616
|
-
selectAll:
|
|
1617
|
-
} =
|
|
1616
|
+
selectAll: v
|
|
1617
|
+
} = be(), {
|
|
1618
1618
|
isExpanded: m,
|
|
1619
|
-
toggleExpand:
|
|
1620
|
-
} =
|
|
1619
|
+
toggleExpand: h
|
|
1620
|
+
} = et(), {
|
|
1621
1621
|
toggleSort: s,
|
|
1622
1622
|
sortBy: i,
|
|
1623
1623
|
isSorted: b
|
|
1624
|
-
} =
|
|
1625
|
-
columns:
|
|
1626
|
-
} =
|
|
1627
|
-
|
|
1628
|
-
class:
|
|
1624
|
+
} = ut(), {
|
|
1625
|
+
columns: f
|
|
1626
|
+
} = ye();
|
|
1627
|
+
z(() => x("tr", {
|
|
1628
|
+
class: K(["v-data-table__tr", {
|
|
1629
1629
|
"v-data-table__tr--clickable": !!(e.onClick || e.onContextmenu || e.onDblclick)
|
|
1630
1630
|
}, n.value]),
|
|
1631
1631
|
onClick: e.onClick,
|
|
1632
1632
|
onContextmenu: e.onContextmenu,
|
|
1633
1633
|
onDblclick: e.onDblclick
|
|
1634
|
-
}, [e.item &&
|
|
1635
|
-
const
|
|
1634
|
+
}, [e.item && f.value.map((u, I) => {
|
|
1635
|
+
const y = e.item, w = `item.${u.key}`, C = `header.${u.key}`, P = {
|
|
1636
1636
|
index: e.index,
|
|
1637
|
-
item:
|
|
1638
|
-
internalItem:
|
|
1639
|
-
value:
|
|
1637
|
+
item: y.raw,
|
|
1638
|
+
internalItem: y,
|
|
1639
|
+
value: ve(y.columns, u.key),
|
|
1640
1640
|
column: u,
|
|
1641
1641
|
isSelected: r,
|
|
1642
1642
|
toggleSelect: o,
|
|
1643
1643
|
isExpanded: m,
|
|
1644
|
-
toggleExpand:
|
|
1644
|
+
toggleExpand: h
|
|
1645
1645
|
}, R = {
|
|
1646
1646
|
column: u,
|
|
1647
|
-
selectAll:
|
|
1647
|
+
selectAll: v,
|
|
1648
1648
|
isSorted: b,
|
|
1649
1649
|
toggleSort: s,
|
|
1650
1650
|
sortBy: i.value,
|
|
@@ -1652,18 +1652,18 @@ const bt = B({
|
|
|
1652
1652
|
allSelected: d.value,
|
|
1653
1653
|
getSortIcon: () => ""
|
|
1654
1654
|
}, H = typeof e.cellProps == "function" ? e.cellProps({
|
|
1655
|
-
index:
|
|
1656
|
-
item:
|
|
1657
|
-
internalItem:
|
|
1658
|
-
value:
|
|
1655
|
+
index: P.index,
|
|
1656
|
+
item: P.item,
|
|
1657
|
+
internalItem: P.internalItem,
|
|
1658
|
+
value: P.value,
|
|
1659
1659
|
column: u
|
|
1660
1660
|
}) : e.cellProps, S = typeof u.cellProps == "function" ? u.cellProps({
|
|
1661
|
-
index:
|
|
1662
|
-
item:
|
|
1663
|
-
internalItem:
|
|
1664
|
-
value:
|
|
1665
|
-
}) : u.cellProps, p = u.key === "data-table-select" || u.key === "data-table-expand",
|
|
1666
|
-
return k(
|
|
1661
|
+
index: P.index,
|
|
1662
|
+
item: P.item,
|
|
1663
|
+
internalItem: P.internalItem,
|
|
1664
|
+
value: P.value
|
|
1665
|
+
}) : u.cellProps, p = u.key === "data-table-select" || u.key === "data-table-expand", g = u.key === "data-table-group" && u.width === 0 && !u.title;
|
|
1666
|
+
return k(le, E({
|
|
1667
1667
|
align: u.align,
|
|
1668
1668
|
indent: u.indent,
|
|
1669
1669
|
class: {
|
|
@@ -1677,54 +1677,54 @@ const bt = B({
|
|
|
1677
1677
|
firstFixedEnd: u.firstFixedEnd,
|
|
1678
1678
|
maxWidth: l.value ? void 0 : u.maxWidth,
|
|
1679
1679
|
noPadding: p,
|
|
1680
|
-
empty:
|
|
1680
|
+
empty: g,
|
|
1681
1681
|
nowrap: u.nowrap,
|
|
1682
1682
|
width: l.value ? void 0 : u.width
|
|
1683
1683
|
}, H, S), {
|
|
1684
1684
|
default: () => {
|
|
1685
1685
|
if (u.key === "data-table-select")
|
|
1686
1686
|
return a["item.data-table-select"]?.({
|
|
1687
|
-
...
|
|
1687
|
+
...P,
|
|
1688
1688
|
props: {
|
|
1689
1689
|
color: e.color,
|
|
1690
|
-
disabled: !
|
|
1691
|
-
modelValue: r([
|
|
1692
|
-
onClick:
|
|
1690
|
+
disabled: !y.selectable,
|
|
1691
|
+
modelValue: r([y]),
|
|
1692
|
+
onClick: oe(() => o(y), ["stop"])
|
|
1693
1693
|
}
|
|
1694
|
-
}) ?? k(
|
|
1694
|
+
}) ?? k(ge, {
|
|
1695
1695
|
color: e.color,
|
|
1696
|
-
disabled: !
|
|
1696
|
+
disabled: !y.selectable,
|
|
1697
1697
|
density: e.density,
|
|
1698
|
-
modelValue: r([
|
|
1699
|
-
onClick:
|
|
1698
|
+
modelValue: r([y]),
|
|
1699
|
+
onClick: oe((V) => o(y, e.index, V), ["stop"])
|
|
1700
1700
|
}, null);
|
|
1701
1701
|
if (u.key === "data-table-expand")
|
|
1702
1702
|
return a["item.data-table-expand"]?.({
|
|
1703
|
-
...
|
|
1703
|
+
...P,
|
|
1704
1704
|
props: {
|
|
1705
|
-
icon: m(
|
|
1705
|
+
icon: m(y) ? e.collapseIcon : e.expandIcon,
|
|
1706
1706
|
size: "small",
|
|
1707
1707
|
variant: "text",
|
|
1708
|
-
onClick:
|
|
1708
|
+
onClick: oe(() => h(y), ["stop"])
|
|
1709
1709
|
}
|
|
1710
1710
|
}) ?? k(U, {
|
|
1711
|
-
icon: m(
|
|
1711
|
+
icon: m(y) ? e.collapseIcon : e.expandIcon,
|
|
1712
1712
|
size: "small",
|
|
1713
1713
|
variant: "text",
|
|
1714
|
-
onClick:
|
|
1714
|
+
onClick: oe(() => h(y), ["stop"])
|
|
1715
1715
|
}, null);
|
|
1716
|
-
if (a[
|
|
1717
|
-
const F =
|
|
1716
|
+
if (a[w] && !l.value) return a[w](P);
|
|
1717
|
+
const F = Ot(P.value);
|
|
1718
1718
|
return l.value ? x(Q, null, [x("div", {
|
|
1719
1719
|
class: "v-data-table__td-title"
|
|
1720
1720
|
}, [a[C]?.(R) ?? u.title]), x("div", {
|
|
1721
1721
|
class: "v-data-table__td-value"
|
|
1722
|
-
}, [a[
|
|
1722
|
+
}, [a[w]?.(P) ?? F])]) : F;
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
})]));
|
|
1726
1726
|
}
|
|
1727
|
-
}),
|
|
1727
|
+
}), xt = B({
|
|
1728
1728
|
color: String,
|
|
1729
1729
|
loading: [Boolean, String],
|
|
1730
1730
|
loadingText: {
|
|
@@ -1742,13 +1742,13 @@ const bt = B({
|
|
|
1742
1742
|
},
|
|
1743
1743
|
rowProps: [Object, Function],
|
|
1744
1744
|
cellProps: [Object, Function],
|
|
1745
|
-
...
|
|
1746
|
-
...
|
|
1747
|
-
...
|
|
1748
|
-
}, "VDataTableRows"),
|
|
1745
|
+
...De(pt(), ["collapseIcon", "expandIcon", "density"]),
|
|
1746
|
+
...De(ht(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
|
|
1747
|
+
...Be()
|
|
1748
|
+
}, "VDataTableRows"), je = M()({
|
|
1749
1749
|
name: "VDataTableRows",
|
|
1750
1750
|
inheritAttrs: !1,
|
|
1751
|
-
props:
|
|
1751
|
+
props: xt(),
|
|
1752
1752
|
setup(e, t) {
|
|
1753
1753
|
let {
|
|
1754
1754
|
attrs: a,
|
|
@@ -1756,23 +1756,23 @@ const bt = B({
|
|
|
1756
1756
|
} = t;
|
|
1757
1757
|
const {
|
|
1758
1758
|
columns: l
|
|
1759
|
-
} =
|
|
1759
|
+
} = ye(), {
|
|
1760
1760
|
expandOnClick: r,
|
|
1761
1761
|
toggleExpand: o,
|
|
1762
1762
|
isExpanded: c
|
|
1763
|
-
} =
|
|
1763
|
+
} = et(), {
|
|
1764
1764
|
isSelected: d,
|
|
1765
|
-
toggleSelect:
|
|
1766
|
-
} =
|
|
1765
|
+
toggleSelect: v
|
|
1766
|
+
} = be(), {
|
|
1767
1767
|
toggleGroup: m,
|
|
1768
|
-
isGroupOpen:
|
|
1769
|
-
} =
|
|
1768
|
+
isGroupOpen: h
|
|
1769
|
+
} = at(), {
|
|
1770
1770
|
t: s
|
|
1771
1771
|
} = te(), {
|
|
1772
1772
|
mobile: i
|
|
1773
|
-
} =
|
|
1774
|
-
return
|
|
1775
|
-
const b =
|
|
1773
|
+
} = me(e);
|
|
1774
|
+
return z(() => {
|
|
1775
|
+
const b = De(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
1776
1776
|
return e.loading && (!e.items.length || n.loading) ? x("tr", {
|
|
1777
1777
|
class: "v-data-table-rows-loading",
|
|
1778
1778
|
key: "loading"
|
|
@@ -1783,70 +1783,70 @@ const bt = B({
|
|
|
1783
1783
|
key: "no-data"
|
|
1784
1784
|
}, [x("td", {
|
|
1785
1785
|
colspan: l.value.length
|
|
1786
|
-
}, [n["no-data"]?.() ?? s(e.noDataText)])]) : x(Q, null, [e.items.map((
|
|
1787
|
-
if (
|
|
1788
|
-
const
|
|
1786
|
+
}, [n["no-data"]?.() ?? s(e.noDataText)])]) : x(Q, null, [e.items.map((f, u) => {
|
|
1787
|
+
if (f.type === "group") {
|
|
1788
|
+
const w = {
|
|
1789
1789
|
index: u,
|
|
1790
|
-
item:
|
|
1790
|
+
item: f,
|
|
1791
1791
|
columns: l.value,
|
|
1792
1792
|
isExpanded: c,
|
|
1793
1793
|
toggleExpand: o,
|
|
1794
1794
|
isSelected: d,
|
|
1795
|
-
toggleSelect:
|
|
1795
|
+
toggleSelect: v,
|
|
1796
1796
|
toggleGroup: m,
|
|
1797
|
-
isGroupOpen:
|
|
1797
|
+
isGroupOpen: h
|
|
1798
1798
|
};
|
|
1799
|
-
return n["group-header"] ? n["group-header"](
|
|
1800
|
-
key: `group-header_${
|
|
1801
|
-
item:
|
|
1802
|
-
},
|
|
1799
|
+
return n["group-header"] ? n["group-header"](w) : k(Ga, E({
|
|
1800
|
+
key: `group-header_${f.id}`,
|
|
1801
|
+
item: f
|
|
1802
|
+
}, Re(a, ":groupHeader", () => w), b), n);
|
|
1803
1803
|
}
|
|
1804
|
-
if (
|
|
1805
|
-
const
|
|
1804
|
+
if (f.type === "group-summary") {
|
|
1805
|
+
const w = {
|
|
1806
1806
|
index: u,
|
|
1807
|
-
item:
|
|
1807
|
+
item: f,
|
|
1808
1808
|
columns: l.value,
|
|
1809
1809
|
toggleGroup: m
|
|
1810
1810
|
};
|
|
1811
|
-
return n["group-summary"]?.(
|
|
1811
|
+
return n["group-summary"]?.(w) ?? "";
|
|
1812
1812
|
}
|
|
1813
|
-
const
|
|
1814
|
-
index:
|
|
1815
|
-
item:
|
|
1816
|
-
internalItem:
|
|
1813
|
+
const I = {
|
|
1814
|
+
index: f.virtualIndex ?? u,
|
|
1815
|
+
item: f.raw,
|
|
1816
|
+
internalItem: f,
|
|
1817
1817
|
columns: l.value,
|
|
1818
1818
|
isExpanded: c,
|
|
1819
1819
|
toggleExpand: o,
|
|
1820
1820
|
isSelected: d,
|
|
1821
|
-
toggleSelect:
|
|
1822
|
-
},
|
|
1823
|
-
...
|
|
1821
|
+
toggleSelect: v
|
|
1822
|
+
}, y = {
|
|
1823
|
+
...I,
|
|
1824
1824
|
props: E({
|
|
1825
|
-
key: `item_${
|
|
1825
|
+
key: `item_${f.key ?? f.index}`,
|
|
1826
1826
|
onClick: r.value ? () => {
|
|
1827
|
-
o(
|
|
1827
|
+
o(f);
|
|
1828
1828
|
} : void 0,
|
|
1829
1829
|
index: u,
|
|
1830
|
-
item:
|
|
1830
|
+
item: f,
|
|
1831
1831
|
color: e.color,
|
|
1832
1832
|
cellProps: e.cellProps,
|
|
1833
1833
|
collapseIcon: e.collapseIcon,
|
|
1834
1834
|
expandIcon: e.expandIcon,
|
|
1835
1835
|
density: e.density,
|
|
1836
1836
|
mobile: i.value
|
|
1837
|
-
},
|
|
1838
|
-
item:
|
|
1839
|
-
index:
|
|
1840
|
-
internalItem:
|
|
1837
|
+
}, Re(a, ":row", () => I), typeof e.rowProps == "function" ? e.rowProps({
|
|
1838
|
+
item: I.item,
|
|
1839
|
+
index: I.index,
|
|
1840
|
+
internalItem: I.internalItem
|
|
1841
1841
|
}) : e.rowProps)
|
|
1842
1842
|
};
|
|
1843
1843
|
return x(Q, {
|
|
1844
|
-
key:
|
|
1845
|
-
}, [n.item ? n.item(
|
|
1844
|
+
key: y.props.key
|
|
1845
|
+
}, [n.item ? n.item(y) : k(ja, y.props, n), c(f) && n["expanded-row"]?.(I)]);
|
|
1846
1846
|
})]);
|
|
1847
1847
|
}), {};
|
|
1848
1848
|
}
|
|
1849
|
-
}),
|
|
1849
|
+
}), St = B({
|
|
1850
1850
|
fixedHeader: Boolean,
|
|
1851
1851
|
fixedFooter: Boolean,
|
|
1852
1852
|
height: [Number, String],
|
|
@@ -1856,13 +1856,13 @@ const bt = B({
|
|
|
1856
1856
|
default: null,
|
|
1857
1857
|
validator: (e) => ["even", "odd"].includes(e)
|
|
1858
1858
|
},
|
|
1859
|
-
...
|
|
1860
|
-
...
|
|
1861
|
-
...
|
|
1862
|
-
...
|
|
1863
|
-
}, "VTable"),
|
|
1859
|
+
...Xe(),
|
|
1860
|
+
...re(),
|
|
1861
|
+
...Ue(),
|
|
1862
|
+
...Te()
|
|
1863
|
+
}, "VTable"), Me = M()({
|
|
1864
1864
|
name: "VTable",
|
|
1865
|
-
props:
|
|
1865
|
+
props: St(),
|
|
1866
1866
|
setup(e, t) {
|
|
1867
1867
|
let {
|
|
1868
1868
|
slots: a,
|
|
@@ -1872,9 +1872,9 @@ const bt = B({
|
|
|
1872
1872
|
themeClasses: l
|
|
1873
1873
|
} = Fe(e), {
|
|
1874
1874
|
densityClasses: r
|
|
1875
|
-
} =
|
|
1876
|
-
return
|
|
1877
|
-
class:
|
|
1875
|
+
} = Zt(e);
|
|
1876
|
+
return z(() => k(e.tag, {
|
|
1877
|
+
class: K(["v-table", {
|
|
1878
1878
|
"v-table--fixed-height": !!e.height,
|
|
1879
1879
|
"v-table--fixed-header": e.fixedHeader,
|
|
1880
1880
|
"v-table--fixed-footer": e.fixedFooter,
|
|
@@ -1884,7 +1884,7 @@ const bt = B({
|
|
|
1884
1884
|
"v-table--striped-even": e.striped === "even",
|
|
1885
1885
|
"v-table--striped-odd": e.striped === "odd"
|
|
1886
1886
|
}, l.value, r.value, e.class]),
|
|
1887
|
-
style:
|
|
1887
|
+
style: Ce(e.style)
|
|
1888
1888
|
}, {
|
|
1889
1889
|
default: () => [a.top?.(), a.default ? x("div", {
|
|
1890
1890
|
class: "v-table__wrapper",
|
|
@@ -1912,10 +1912,10 @@ const bt = B({
|
|
|
1912
1912
|
returnObject: Boolean
|
|
1913
1913
|
}, "DataTable-items");
|
|
1914
1914
|
function Wa(e, t, a, n) {
|
|
1915
|
-
const l = e.returnObject ? t :
|
|
1915
|
+
const l = e.returnObject ? t : de(t, e.itemValue), r = de(t, e.itemSelectable, !0), o = n.reduce((c, d) => (d.key != null && (c[d.key] = de(t, d.value)), c), {});
|
|
1916
1916
|
return {
|
|
1917
1917
|
type: "item",
|
|
1918
|
-
key: e.returnObject ?
|
|
1918
|
+
key: e.returnObject ? de(t, e.itemValue) : l,
|
|
1919
1919
|
index: a,
|
|
1920
1920
|
value: l,
|
|
1921
1921
|
selectable: r,
|
|
@@ -1932,7 +1932,7 @@ function za(e, t) {
|
|
|
1932
1932
|
};
|
|
1933
1933
|
}
|
|
1934
1934
|
const qa = B({
|
|
1935
|
-
...
|
|
1935
|
+
...xt(),
|
|
1936
1936
|
hideDefaultBody: Boolean,
|
|
1937
1937
|
hideDefaultFooter: Boolean,
|
|
1938
1938
|
hideDefaultHeader: Boolean,
|
|
@@ -1944,13 +1944,13 @@ const qa = B({
|
|
|
1944
1944
|
...Ma(),
|
|
1945
1945
|
...ka(),
|
|
1946
1946
|
...Da(),
|
|
1947
|
-
...
|
|
1948
|
-
...
|
|
1947
|
+
..._e(yt(), ["multiSort", "initialSortOrder"]),
|
|
1948
|
+
...St()
|
|
1949
1949
|
}, "DataTable"), Ua = B({
|
|
1950
1950
|
...ba(),
|
|
1951
1951
|
...qa(),
|
|
1952
|
-
...
|
|
1953
|
-
...
|
|
1952
|
+
...ra(),
|
|
1953
|
+
...dt()
|
|
1954
1954
|
}, "VDataTable"), nn = M()({
|
|
1955
1955
|
name: "VDataTable",
|
|
1956
1956
|
props: Ua(),
|
|
@@ -1977,37 +1977,37 @@ const qa = B({
|
|
|
1977
1977
|
multiSort: c,
|
|
1978
1978
|
mustSort: d
|
|
1979
1979
|
} = Va(e), {
|
|
1980
|
-
page:
|
|
1980
|
+
page: v,
|
|
1981
1981
|
itemsPerPage: m
|
|
1982
1982
|
} = ya(e), {
|
|
1983
|
-
disableSort:
|
|
1984
|
-
} =
|
|
1983
|
+
disableSort: h
|
|
1984
|
+
} = Et(e), {
|
|
1985
1985
|
columns: s,
|
|
1986
1986
|
headers: i,
|
|
1987
1987
|
sortFunctions: b,
|
|
1988
|
-
sortRawFunctions:
|
|
1988
|
+
sortRawFunctions: f,
|
|
1989
1989
|
filterFunctions: u
|
|
1990
1990
|
} = Ha(e, {
|
|
1991
1991
|
groupBy: l,
|
|
1992
1992
|
showSelect: _(() => e.showSelect),
|
|
1993
1993
|
showExpand: _(() => e.showExpand)
|
|
1994
1994
|
}), {
|
|
1995
|
-
items:
|
|
1996
|
-
} = za(e, s),
|
|
1997
|
-
filteredItems:
|
|
1998
|
-
} =
|
|
1995
|
+
items: I
|
|
1996
|
+
} = za(e, s), y = _(() => e.search), {
|
|
1997
|
+
filteredItems: w
|
|
1998
|
+
} = la(e, I, y, {
|
|
1999
1999
|
transform: (N) => N.columns,
|
|
2000
2000
|
customKeyFilter: u
|
|
2001
2001
|
}), {
|
|
2002
2002
|
toggleSort: C
|
|
2003
|
-
} =
|
|
2003
|
+
} = Fa({
|
|
2004
2004
|
initialSortOrder: r,
|
|
2005
2005
|
sortBy: o,
|
|
2006
2006
|
multiSort: c,
|
|
2007
2007
|
mustSort: d,
|
|
2008
|
-
page:
|
|
2008
|
+
page: v
|
|
2009
2009
|
}), {
|
|
2010
|
-
sortByWithGroups:
|
|
2010
|
+
sortByWithGroups: P,
|
|
2011
2011
|
opened: R,
|
|
2012
2012
|
extractRows: H,
|
|
2013
2013
|
isGroupOpen: S,
|
|
@@ -2015,69 +2015,69 @@ const qa = B({
|
|
|
2015
2015
|
} = fa({
|
|
2016
2016
|
groupBy: l,
|
|
2017
2017
|
sortBy: o,
|
|
2018
|
-
disableSort:
|
|
2018
|
+
disableSort: h
|
|
2019
2019
|
}), {
|
|
2020
|
-
sortedItems:
|
|
2021
|
-
} = Ta(e,
|
|
2020
|
+
sortedItems: g
|
|
2021
|
+
} = Ta(e, w, P, {
|
|
2022
2022
|
transform: (N) => ({
|
|
2023
2023
|
...N.raw,
|
|
2024
2024
|
...N.columns
|
|
2025
2025
|
}),
|
|
2026
2026
|
sortFunctions: b,
|
|
2027
|
-
sortRawFunctions:
|
|
2027
|
+
sortRawFunctions: f
|
|
2028
2028
|
}), F = D(() => e.pageBy === "auto" ? e.groupBy.length ? "group" : "item" : e.pageBy), {
|
|
2029
2029
|
pageCount: V,
|
|
2030
2030
|
setItemsPerPage: T,
|
|
2031
2031
|
paginatedItems: L
|
|
2032
2032
|
} = Sa({
|
|
2033
2033
|
pageBy: F,
|
|
2034
|
-
sortedItems:
|
|
2034
|
+
sortedItems: g,
|
|
2035
2035
|
paginate: (N) => {
|
|
2036
|
-
const
|
|
2037
|
-
startIndex:
|
|
2038
|
-
stopIndex:
|
|
2039
|
-
pageCount:
|
|
2040
|
-
setItemsPerPage:
|
|
2036
|
+
const pe = D(() => j(N).length), {
|
|
2037
|
+
startIndex: xe,
|
|
2038
|
+
stopIndex: Se,
|
|
2039
|
+
pageCount: Vt,
|
|
2040
|
+
setItemsPerPage: Ct
|
|
2041
2041
|
} = ha({
|
|
2042
|
-
page:
|
|
2042
|
+
page: v,
|
|
2043
2043
|
itemsPerPage: m,
|
|
2044
|
-
itemsLength:
|
|
2044
|
+
itemsLength: pe
|
|
2045
2045
|
}), {
|
|
2046
2046
|
paginatedItems: Ft
|
|
2047
2047
|
} = xa({
|
|
2048
2048
|
items: N,
|
|
2049
|
-
startIndex:
|
|
2050
|
-
stopIndex:
|
|
2049
|
+
startIndex: xe,
|
|
2050
|
+
stopIndex: Se,
|
|
2051
2051
|
itemsPerPage: m
|
|
2052
2052
|
});
|
|
2053
2053
|
return {
|
|
2054
2054
|
paginatedItems: Ft,
|
|
2055
|
-
pageCount:
|
|
2056
|
-
setItemsPerPage:
|
|
2055
|
+
pageCount: Vt,
|
|
2056
|
+
setItemsPerPage: Ct
|
|
2057
2057
|
};
|
|
2058
2058
|
},
|
|
2059
|
-
group: (N) =>
|
|
2059
|
+
group: (N) => ga(N, l, R, () => !!n["group-summary"])
|
|
2060
2060
|
}), Z = D(() => H(L.value)), {
|
|
2061
2061
|
isSelected: O,
|
|
2062
2062
|
select: W,
|
|
2063
2063
|
selectAll: ae,
|
|
2064
|
-
toggleSelect:
|
|
2065
|
-
someSelected:
|
|
2066
|
-
allSelected:
|
|
2064
|
+
toggleSelect: Pt,
|
|
2065
|
+
someSelected: wt,
|
|
2066
|
+
allSelected: kt
|
|
2067
2067
|
} = Ia(e, {
|
|
2068
|
-
allItems:
|
|
2068
|
+
allItems: I,
|
|
2069
2069
|
currentPage: Z
|
|
2070
2070
|
}), {
|
|
2071
|
-
isExpanded:
|
|
2072
|
-
toggleExpand:
|
|
2071
|
+
isExpanded: It,
|
|
2072
|
+
toggleExpand: Dt
|
|
2073
2073
|
} = ua(e);
|
|
2074
2074
|
ma({
|
|
2075
|
-
page:
|
|
2075
|
+
page: v,
|
|
2076
2076
|
itemsPerPage: m,
|
|
2077
2077
|
sortBy: o,
|
|
2078
2078
|
groupBy: l,
|
|
2079
|
-
search:
|
|
2080
|
-
}),
|
|
2079
|
+
search: y
|
|
2080
|
+
}), Ie({
|
|
2081
2081
|
VDataTableRows: {
|
|
2082
2082
|
hideNoData: _(() => e.hideNoData),
|
|
2083
2083
|
noDataText: _(() => e.noDataText),
|
|
@@ -2086,20 +2086,20 @@ const qa = B({
|
|
|
2086
2086
|
}
|
|
2087
2087
|
});
|
|
2088
2088
|
const G = D(() => ({
|
|
2089
|
-
page:
|
|
2089
|
+
page: v.value,
|
|
2090
2090
|
itemsPerPage: m.value,
|
|
2091
2091
|
sortBy: o.value,
|
|
2092
2092
|
pageCount: V.value,
|
|
2093
2093
|
toggleSort: C,
|
|
2094
2094
|
setItemsPerPage: T,
|
|
2095
|
-
someSelected:
|
|
2096
|
-
allSelected:
|
|
2095
|
+
someSelected: wt.value,
|
|
2096
|
+
allSelected: kt.value,
|
|
2097
2097
|
isSelected: O,
|
|
2098
2098
|
select: W,
|
|
2099
2099
|
selectAll: ae,
|
|
2100
|
-
toggleSelect:
|
|
2101
|
-
isExpanded:
|
|
2102
|
-
toggleExpand:
|
|
2100
|
+
toggleSelect: Pt,
|
|
2101
|
+
isExpanded: It,
|
|
2102
|
+
toggleExpand: Dt,
|
|
2103
2103
|
isGroupOpen: S,
|
|
2104
2104
|
toggleGroup: p,
|
|
2105
2105
|
items: Z.value.map((N) => N.raw),
|
|
@@ -2108,26 +2108,26 @@ const qa = B({
|
|
|
2108
2108
|
columns: s.value,
|
|
2109
2109
|
headers: i.value
|
|
2110
2110
|
}));
|
|
2111
|
-
return
|
|
2112
|
-
const N =
|
|
2113
|
-
return k(
|
|
2111
|
+
return z(() => {
|
|
2112
|
+
const N = He.filterProps(e), pe = Ge.filterProps(_e(e, ["multiSort"])), xe = je.filterProps(e), Se = Me.filterProps(e);
|
|
2113
|
+
return k(Me, E({
|
|
2114
2114
|
class: ["v-data-table", {
|
|
2115
2115
|
"v-data-table--show-select": e.showSelect,
|
|
2116
2116
|
"v-data-table--loading": e.loading
|
|
2117
2117
|
}, e.class],
|
|
2118
2118
|
style: e.style
|
|
2119
|
-
},
|
|
2119
|
+
}, Se, {
|
|
2120
2120
|
fixedHeader: e.fixedHeader || e.sticky
|
|
2121
2121
|
}), {
|
|
2122
2122
|
top: () => n.top?.(G.value),
|
|
2123
2123
|
default: () => n.default ? n.default(G.value) : x(Q, null, [n.colgroup?.(G.value), !e.hideDefaultHeader && x("thead", {
|
|
2124
2124
|
key: "thead"
|
|
2125
|
-
}, [k(
|
|
2125
|
+
}, [k(Ge, E(pe, {
|
|
2126
2126
|
multiSort: !!e.multiSort
|
|
2127
|
-
}), n)]), n.thead?.(G.value), !e.hideDefaultBody && x("tbody", null, [n["body.prepend"]?.(G.value), n.body ? n.body(G.value) : k(
|
|
2127
|
+
}), n)]), n.thead?.(G.value), !e.hideDefaultBody && x("tbody", null, [n["body.prepend"]?.(G.value), n.body ? n.body(G.value) : k(je, E(a, xe, {
|
|
2128
2128
|
items: L.value
|
|
2129
2129
|
}), n), n["body.append"]?.(G.value)]), n.tbody?.(G.value), n.tfoot?.(G.value)]),
|
|
2130
|
-
bottom: () => n.bottom ? n.bottom(G.value) : !e.hideDefaultFooter && x(Q, null, [k(
|
|
2130
|
+
bottom: () => n.bottom ? n.bottom(G.value) : !e.hideDefaultFooter && x(Q, null, [k(Jt, null, null), k(He, N, {
|
|
2131
2131
|
prepend: n["footer.prepend"]
|
|
2132
2132
|
})])
|
|
2133
2133
|
});
|
|
@@ -2169,28 +2169,28 @@ const qa = B({
|
|
|
2169
2169
|
function Xa(e) {
|
|
2170
2170
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2171
2171
|
return x("div", {
|
|
2172
|
-
class:
|
|
2172
|
+
class: K(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
|
|
2173
2173
|
}, [t]);
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function We(e) {
|
|
2176
2176
|
const [t, a] = e.split("@");
|
|
2177
2177
|
return Array.from({
|
|
2178
2178
|
length: a
|
|
2179
|
-
}).map(() =>
|
|
2179
|
+
}).map(() => he(t));
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2181
|
+
function he(e) {
|
|
2182
2182
|
let t = [];
|
|
2183
2183
|
if (!e) return t;
|
|
2184
2184
|
const a = Qa[e];
|
|
2185
2185
|
if (e !== a) {
|
|
2186
|
-
if (e.includes(",")) return
|
|
2187
|
-
if (e.includes("@")) return
|
|
2188
|
-
a.includes(",") ? t =
|
|
2186
|
+
if (e.includes(",")) return Ke(e);
|
|
2187
|
+
if (e.includes("@")) return We(e);
|
|
2188
|
+
a.includes(",") ? t = Ke(a) : a.includes("@") ? t = We(a) : a && t.push(he(a));
|
|
2189
2189
|
}
|
|
2190
2190
|
return [Xa(e, t)];
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return e.replace(/\s/g, "").split(",").map(
|
|
2192
|
+
function Ke(e) {
|
|
2193
|
+
return e.replace(/\s/g, "").split(",").map(he);
|
|
2194
2194
|
}
|
|
2195
2195
|
const Ya = B({
|
|
2196
2196
|
boilerplate: Boolean,
|
|
@@ -2204,9 +2204,9 @@ const Ya = B({
|
|
|
2204
2204
|
type: [String, Array],
|
|
2205
2205
|
default: "ossein"
|
|
2206
2206
|
},
|
|
2207
|
-
...
|
|
2208
|
-
...
|
|
2209
|
-
...
|
|
2207
|
+
...aa(),
|
|
2208
|
+
...Qe(),
|
|
2209
|
+
...Te()
|
|
2210
2210
|
}, "VSkeletonLoader"), ln = M()({
|
|
2211
2211
|
name: "VSkeletonLoader",
|
|
2212
2212
|
inheritAttrs: !1,
|
|
@@ -2219,22 +2219,22 @@ const Ya = B({
|
|
|
2219
2219
|
const {
|
|
2220
2220
|
backgroundColorClasses: l,
|
|
2221
2221
|
backgroundColorStyles: r
|
|
2222
|
-
} =
|
|
2222
|
+
} = Ye(() => e.color), {
|
|
2223
2223
|
dimensionStyles: o
|
|
2224
|
-
} = Jt(e), {
|
|
2225
|
-
elevationClasses: c
|
|
2226
2224
|
} = ea(e), {
|
|
2225
|
+
elevationClasses: c
|
|
2226
|
+
} = ta(e), {
|
|
2227
2227
|
themeClasses: d
|
|
2228
2228
|
} = Fe(e), {
|
|
2229
|
-
t:
|
|
2230
|
-
} = te(), m = D(() =>
|
|
2231
|
-
return
|
|
2232
|
-
const
|
|
2229
|
+
t: v
|
|
2230
|
+
} = te(), m = D(() => he(J(e.type).join(",")));
|
|
2231
|
+
return z(() => {
|
|
2232
|
+
const h = !n.default || e.loading, s = e.boilerplate || !h ? {} : {
|
|
2233
2233
|
ariaLive: "polite",
|
|
2234
|
-
ariaLabel:
|
|
2234
|
+
ariaLabel: v(e.loadingText),
|
|
2235
2235
|
role: "alert"
|
|
2236
2236
|
};
|
|
2237
|
-
return
|
|
2237
|
+
return h ? x("div", E({
|
|
2238
2238
|
class: ["v-skeleton-loader", {
|
|
2239
2239
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2240
2240
|
}, d.value, l.value, c.value],
|
|
@@ -2260,29 +2260,16 @@ function Za(e, t, a) {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
function rn() {
|
|
2263
|
-
const { advancedFiltersState: e, hardFiltersState: t } =
|
|
2264
|
-
let s = n.value;
|
|
2265
|
-
if (!s) return s;
|
|
2266
|
-
const i = d(e.value, t.value);
|
|
2267
|
-
return !i || Object.keys(i).length === 0 || Object.keys(i).forEach((b) => {
|
|
2268
|
-
const { value: g, comparison: u = "=" } = i[b];
|
|
2269
|
-
if (!g) return;
|
|
2270
|
-
const P = y(a.headers, b);
|
|
2271
|
-
P && (s = s.filter((h) => {
|
|
2272
|
-
const I = m(h, b, P);
|
|
2273
|
-
return P.advancedFilter?.customFilterFn && typeof P.advancedFilter.customFilterFn == "function" ? P.advancedFilter.customFilterFn({ value: I, filterValue: g, filterComparison: u, header: P, item: h }) : c(I, g, u, P);
|
|
2274
|
-
}));
|
|
2275
|
-
}), s;
|
|
2276
|
-
});
|
|
2263
|
+
const { advancedFiltersState: e, hardFiltersState: t } = sa(), a = Y("table_props"), n = fe(), l = fe();
|
|
2277
2264
|
function r(s, i) {
|
|
2278
|
-
const b = Array.isArray(i) ? i : [i],
|
|
2279
|
-
return
|
|
2265
|
+
const b = Array.isArray(i) ? i : [i], f = ce(b[0]).startOf("day").isSameOrBefore(ce(s).format()), u = ce(b[b.length - 1]).endOf("day").isSameOrAfter(ce(s).format());
|
|
2266
|
+
return f && u;
|
|
2280
2267
|
}
|
|
2281
2268
|
function o(s, i) {
|
|
2282
2269
|
return Array.isArray(i) ? i.map((b) => b.toString().toLowerCase()).includes(s.toString().toLowerCase()) : s?.toString().toLowerCase().includes(i.toString().toLowerCase());
|
|
2283
2270
|
}
|
|
2284
|
-
function c(s, i, b,
|
|
2285
|
-
switch (
|
|
2271
|
+
function c(s, i, b, f) {
|
|
2272
|
+
switch (f.advancedFilter?.component) {
|
|
2286
2273
|
case "datepicker":
|
|
2287
2274
|
return r(s, i);
|
|
2288
2275
|
case "comparison":
|
|
@@ -2292,23 +2279,56 @@ function rn() {
|
|
|
2292
2279
|
}
|
|
2293
2280
|
}
|
|
2294
2281
|
function d(s, i) {
|
|
2295
|
-
const b = Object.values(i).filter((
|
|
2282
|
+
const b = Object.values(i).filter((f) => f.args).map((f) => f.args).reduce((f, u) => ({ ...f, ...u }), {});
|
|
2296
2283
|
return { ...s, ...b };
|
|
2297
2284
|
}
|
|
2298
|
-
function
|
|
2299
|
-
return i.split(".").reduce((b,
|
|
2285
|
+
function v(s, i) {
|
|
2286
|
+
return i.split(".").reduce((b, f) => b && b[f], s);
|
|
2300
2287
|
}
|
|
2301
2288
|
function m(s, i, b) {
|
|
2302
|
-
const
|
|
2303
|
-
return typeof u == "function" && (
|
|
2289
|
+
const f = Ne(s), u = b.advancedFilter?.filterReturnValue;
|
|
2290
|
+
return typeof u == "function" && (f[i] = u({
|
|
2304
2291
|
value: s[i],
|
|
2305
2292
|
item: s
|
|
2306
|
-
})), f
|
|
2293
|
+
})), v(f, i);
|
|
2307
2294
|
}
|
|
2308
|
-
function
|
|
2295
|
+
function h(s, i) {
|
|
2309
2296
|
return s.find((b) => (b.advancedFilter?.key ?? b.key) === i);
|
|
2310
2297
|
}
|
|
2311
|
-
return
|
|
2298
|
+
return ne(
|
|
2299
|
+
() => [n.value, e.value, t.value],
|
|
2300
|
+
() => {
|
|
2301
|
+
const s = Ne(n.value);
|
|
2302
|
+
if (!s?.length) {
|
|
2303
|
+
l.value = s;
|
|
2304
|
+
return;
|
|
2305
|
+
}
|
|
2306
|
+
const i = d(e.value, t.value);
|
|
2307
|
+
if (!i) {
|
|
2308
|
+
l.value = s;
|
|
2309
|
+
return;
|
|
2310
|
+
}
|
|
2311
|
+
const b = Object.entries(i).reduce((f, [u, I]) => {
|
|
2312
|
+
const { value: y, comparison: w = "=" } = I;
|
|
2313
|
+
if (!y) return f;
|
|
2314
|
+
const C = h(a.headers, u);
|
|
2315
|
+
if (!C) return f;
|
|
2316
|
+
const P = typeof C.advancedFilter?.customFilterFn == "function" ? C.advancedFilter.customFilterFn : null;
|
|
2317
|
+
return f.push({ key: u, filterValue: y, filterComparison: w, header: C, customFilterFn: P }), f;
|
|
2318
|
+
}, []);
|
|
2319
|
+
if (!b.length) {
|
|
2320
|
+
l.value = s;
|
|
2321
|
+
return;
|
|
2322
|
+
}
|
|
2323
|
+
l.value = s.filter(
|
|
2324
|
+
(f) => b.every(({ key: u, filterValue: I, filterComparison: y, header: w, customFilterFn: C }) => {
|
|
2325
|
+
const P = m(f, u, w);
|
|
2326
|
+
return C ? C({ value: P, filterValue: I, filterComparison: y, header: w, item: f }) : c(P, I, y, w);
|
|
2327
|
+
})
|
|
2328
|
+
);
|
|
2329
|
+
},
|
|
2330
|
+
{ immediate: !0, deep: !0 }
|
|
2331
|
+
), ne(
|
|
2312
2332
|
() => a.data,
|
|
2313
2333
|
(s, i) => {
|
|
2314
2334
|
oa(s ?? [], i ?? []) || (n.value = s);
|
|
@@ -2316,7 +2336,7 @@ function rn() {
|
|
|
2316
2336
|
{ deep: !0, immediate: !0 }
|
|
2317
2337
|
), { tableData: n, filteredData: l };
|
|
2318
2338
|
}
|
|
2319
|
-
const sn =
|
|
2339
|
+
const sn = At({
|
|
2320
2340
|
props: {
|
|
2321
2341
|
render: {
|
|
2322
2342
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2333,7 +2353,7 @@ const sn = Et({
|
|
|
2333
2353
|
},
|
|
2334
2354
|
setup: (e) => () => {
|
|
2335
2355
|
const t = { ...e.props, ...e.params };
|
|
2336
|
-
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ?
|
|
2356
|
+
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? Lt(e.render, t) : e.render;
|
|
2337
2357
|
}
|
|
2338
2358
|
});
|
|
2339
2359
|
export {
|
|
@@ -2347,17 +2367,17 @@ export {
|
|
|
2347
2367
|
za as f,
|
|
2348
2368
|
fa as g,
|
|
2349
2369
|
ha as h,
|
|
2350
|
-
|
|
2370
|
+
ga as i,
|
|
2351
2371
|
Ia as j,
|
|
2352
2372
|
ua as k,
|
|
2353
2373
|
ma as l,
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2374
|
+
dt as m,
|
|
2375
|
+
qa as n,
|
|
2376
|
+
ba as o,
|
|
2377
|
+
Fa as p,
|
|
2378
|
+
He as q,
|
|
2379
|
+
Ge as r,
|
|
2380
|
+
je as s,
|
|
2381
|
+
Me as t,
|
|
2362
2382
|
rn as u
|
|
2363
2383
|
};
|