@ianicdev/datatables2 0.9.10 → 0.10.0
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-CPYUVLvE.js → Columns-BVivQbA1.js} +1 -1
- package/dist/{Columns-BaARuW1m.cjs → Columns-uuugU4i9.cjs} +1 -1
- package/dist/{Comparison-DDhGIBui.cjs → Comparison-BNSlLRqf.cjs} +1 -1
- package/dist/{Comparison-BiPlTpXM.js → Comparison-D6zByMKH.js} +1 -1
- package/dist/{Datepicker-CzJ1wZmm.cjs → Datepicker-B8PS_dQ1.cjs} +1 -1
- package/dist/{Datepicker-KGlOP9ck.js → Datepicker-DXbpHltW.js} +2 -2
- package/dist/{Download-FGUE_z5x.js → Download-BSWYh8Kp.js} +2 -2
- package/dist/{Download-DZqwXPMb.cjs → Download-CnCzctX1.cjs} +1 -1
- package/dist/{Options-CAwRqQpx.js → Options-1LMo1jYF.js} +1 -1
- package/dist/{Options-B-Vq57w_.cjs → Options-CB6BQtI-.cjs} +1 -1
- package/dist/{RefreshTable-DyLlkCOt.js → RefreshTable-DEXlcdI0.js} +2 -2
- package/dist/{RefreshTable-C-UPC-U5.cjs → RefreshTable-DIwWSpaJ.cjs} +1 -1
- package/dist/{Search-Tks4mpaH.cjs → Search-BNaYhckX.cjs} +1 -1
- package/dist/{Search-DBOrKgEi.js → Search-BsWYytSk.js} +2 -2
- package/dist/{Table-P8c-sRdr.js → Table-BMwdrPuC.js} +2 -2
- package/dist/{Table-DYDzb63V.cjs → Table-CGDzgkKx.cjs} +1 -1
- package/dist/{TableServer--svcmINA.js → TableServer-DaBF1vxr.js} +3 -3
- package/dist/{TableServer-ftB17VAQ.cjs → TableServer-ZDSaEYRy.cjs} +1 -1
- package/dist/{cellRender-BPzg8pfq.js → cellRender-BuLj_AFK.js} +825 -813
- package/dist/cellRender-CYGQmmZC.cjs +1 -0
- package/dist/{dataTables-CPrc2H_E.js → dataTables-CxEnAUfF.js} +1 -1
- package/dist/{dataTables-CxQh692H.cjs → dataTables-P7hOrFAn.cjs} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-CXBiVM0n.js → index-Bc0AtRk2.js} +1 -1
- package/dist/{index-BW-yzY3p.js → index-BjcvkMIS.js} +11 -11
- package/dist/{index-BTfw-D-T.cjs → index-DfTO4Zx6.cjs} +1 -1
- package/dist/{index-Dn353bZ1.cjs → index-VkGoAdXo.cjs} +1 -1
- package/dist/{index.es-DbLPWyn6.cjs → index.es-Ciudu1vj.cjs} +2 -2
- package/dist/{index.es-BXudRhtE.js → index.es-eRsZ1LFr.js} +10 -6
- package/dist/jspdf-B3ZoDzKb.cjs +79 -0
- package/dist/{jspdf-Dt---f5Z.js → jspdf-ooxm5O8S.js} +3905 -3893
- package/package.json +6 -6
- package/dist/cellRender-DpRXHxxv.cjs +0 -1
- package/dist/jspdf-DQdhUPLM.cjs +0 -79
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { shallowRef as ue, computed as
|
|
2
|
-
import { aP as Et, U as Nt, p as _, N as z, aA as ee, K as J, aQ as de, _ as Ge, J as Ke, af as ye, aR as Rt, T as Z, aS as se, g as $, a0 as $t, h as Ie, aj as fe, a as Se, al as Mt, aT as oe, u as K, a9 as W, x as Ht, y as Fe, m as We, as as jt, A as Gt, E as ze, f as ae, b as Ue, G as Kt, I as O, aU as Be, aV as Wt, ax as A, aW as zt, o as Ut, P as Je, L as Jt, D as Qt, ao as
|
|
3
|
-
import { V as Qe, a as ta, b as
|
|
1
|
+
import { shallowRef as ue, computed as D, unref as q, watchEffect as je, toRef as C, provide as Y, toRaw as le, inject as Q, ref as j, toValue as Tt, watch as ce, onBeforeUpdate as Ct, createVNode as F, normalizeStyle as ke, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Ce, capitalize as _t, Fragment as U, createTextVNode as _e, withModifiers as re, toDisplayString as Bt, toRefs as Ot, defineComponent as Lt, h as At } from "vue";
|
|
2
|
+
import { aP as Et, U as Nt, p as _, N as z, aA as ee, K as J, aQ as de, _ as Ge, J as Ke, af as ye, aR as Rt, T as Z, aS as se, g as $, a0 as $t, h as Ie, aj as fe, a as Se, al as Mt, aT as oe, u as K, a9 as W, x as Ht, y as Fe, m as We, as as jt, A as Gt, E as ze, f as ae, b as Ue, G as Kt, I as O, aU as Be, aV as Wt, ax as A, aW as zt, o as Ut, P as Je, L as Jt, D as Qt, ao as De, d as Oe, H as pe, a1 as Pe, k as Xt, aa as Yt, l as Zt, n as qt, F as ea } from "./dataTables-CxEnAUfF.js";
|
|
3
|
+
import { V as Qe, a as ta, b as Ve, u as aa, d as na } from "./index-BjcvkMIS.js";
|
|
4
4
|
import ie from "moment";
|
|
5
5
|
function Le(e, t, a) {
|
|
6
|
-
return Object.keys(e).filter((
|
|
6
|
+
return Object.keys(e).filter((n) => Et(n) && n.endsWith(t)).reduce((n, l) => (n[l.slice(0, -t.length)] = (r) => Nt(e[l], r, a(r)), n), {});
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const la = (e, t, a) => {
|
|
9
9
|
if (e == null || t == null) return -1;
|
|
10
10
|
if (!t.length) return 0;
|
|
11
11
|
e = e.toString().toLocaleLowerCase(), t = t.toString().toLocaleLowerCase();
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
for (; ~
|
|
15
|
-
|
|
16
|
-
return
|
|
12
|
+
const n = [];
|
|
13
|
+
let l = e.indexOf(t);
|
|
14
|
+
for (; ~l; )
|
|
15
|
+
n.push([l, l + t.length]), l = e.indexOf(t, l + t.length);
|
|
16
|
+
return n.length ? n : -1;
|
|
17
17
|
};
|
|
18
18
|
function xe(e, t) {
|
|
19
19
|
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
@@ -30,76 +30,76 @@ const ra = _({
|
|
|
30
30
|
noFilter: Boolean
|
|
31
31
|
}, "filter");
|
|
32
32
|
function sa(e, t, a) {
|
|
33
|
-
const
|
|
34
|
-
if (!e?.length) return
|
|
35
|
-
let
|
|
36
|
-
e: for (let
|
|
37
|
-
const [
|
|
38
|
-
let
|
|
39
|
-
if ((t ||
|
|
40
|
-
let
|
|
41
|
-
if (typeof
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
index:
|
|
33
|
+
const n = [], l = a?.default ?? la, r = a?.filterKeys ? z(a.filterKeys) : !1, u = Object.keys(a?.customKeyFilter ?? {}).length;
|
|
34
|
+
if (!e?.length) return n;
|
|
35
|
+
let c = null;
|
|
36
|
+
e: for (let o = 0; o < e.length; o++) {
|
|
37
|
+
const [d, g = d] = z(e[o]), h = {}, s = {};
|
|
38
|
+
let i = -1;
|
|
39
|
+
if ((t || u > 0) && !a?.noFilter) {
|
|
40
|
+
let b = !1;
|
|
41
|
+
if (typeof d == "object") {
|
|
42
|
+
if (d.type === "divider" || d.type === "subheader") {
|
|
43
|
+
c?.type === "divider" && d.type === "subheader" && n.push(c), c = {
|
|
44
|
+
index: o,
|
|
45
45
|
matches: {},
|
|
46
|
-
type:
|
|
46
|
+
type: d.type
|
|
47
47
|
};
|
|
48
48
|
continue;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
for (const
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
|
|
50
|
+
const k = r || Object.keys(g);
|
|
51
|
+
b = k.length === u;
|
|
52
|
+
for (const y of k) {
|
|
53
|
+
const P = ee(g, y), V = a?.customKeyFilter?.[y];
|
|
54
|
+
if (i = V ? V(P, t, d) : l(P, t, d), i !== -1 && i !== !1)
|
|
55
|
+
V ? h[y] = xe(i, t) : s[y] = xe(i, t);
|
|
56
56
|
else if (a?.filterMode === "every")
|
|
57
57
|
continue e;
|
|
58
58
|
}
|
|
59
59
|
} else
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
if (!
|
|
60
|
+
i = l(d, t, d), i !== -1 && i !== !1 && (s.title = xe(i, t));
|
|
61
|
+
const f = Object.keys(s).length, v = Object.keys(h).length;
|
|
62
|
+
if (!f && !v || a?.filterMode === "union" && v !== u && !f || a?.filterMode === "intersection" && (v !== u || !f && u > 0 && !b)) continue;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
index:
|
|
64
|
+
c && (n.push(c), c = null), n.push({
|
|
65
|
+
index: o,
|
|
66
66
|
matches: {
|
|
67
|
-
...
|
|
68
|
-
...
|
|
67
|
+
...s,
|
|
68
|
+
...h
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return n;
|
|
73
73
|
}
|
|
74
|
-
function oa(e, t, a,
|
|
75
|
-
const
|
|
74
|
+
function oa(e, t, a, n) {
|
|
75
|
+
const l = ue([]), r = ue(/* @__PURE__ */ new Map()), u = D(() => n?.transform ? q(t).map((o) => [o, n.transform(o)]) : q(t));
|
|
76
76
|
je(() => {
|
|
77
|
-
const
|
|
77
|
+
const o = typeof a == "function" ? a() : q(a), d = typeof o != "string" && typeof o != "number" ? "" : String(o), g = sa(u.value, d, {
|
|
78
78
|
customKeyFilter: {
|
|
79
79
|
...e.customKeyFilter,
|
|
80
|
-
...q(
|
|
80
|
+
...q(n?.customKeyFilter)
|
|
81
81
|
},
|
|
82
82
|
default: e.customFilter,
|
|
83
83
|
filterKeys: e.filterKeys,
|
|
84
84
|
filterMode: e.filterMode,
|
|
85
85
|
noFilter: e.noFilter
|
|
86
|
-
}),
|
|
87
|
-
|
|
86
|
+
}), h = q(t), s = [], i = /* @__PURE__ */ new Map();
|
|
87
|
+
g.forEach((b) => {
|
|
88
88
|
let {
|
|
89
|
-
index:
|
|
89
|
+
index: f,
|
|
90
90
|
matches: v
|
|
91
|
-
} =
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
}),
|
|
91
|
+
} = b;
|
|
92
|
+
const k = h[f];
|
|
93
|
+
s.push(k), i.set(k.value, v);
|
|
94
|
+
}), l.value = s, r.value = i;
|
|
95
95
|
});
|
|
96
|
-
function
|
|
97
|
-
return r.value.get(
|
|
96
|
+
function c(o) {
|
|
97
|
+
return r.value.get(o.value);
|
|
98
98
|
}
|
|
99
99
|
return {
|
|
100
|
-
filteredItems:
|
|
100
|
+
filteredItems: l,
|
|
101
101
|
filteredMatches: r,
|
|
102
|
-
getMatches:
|
|
102
|
+
getMatches: c
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
const ia = _({
|
|
@@ -111,32 +111,32 @@ const ia = _({
|
|
|
111
111
|
}
|
|
112
112
|
}, "DataTable-expand"), Xe = Symbol.for("vuetify:datatable:expanded");
|
|
113
113
|
function ua(e) {
|
|
114
|
-
const t = C(() => e.expandOnClick), a = J(e, "expanded", e.expanded, (
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
|
|
114
|
+
const t = C(() => e.expandOnClick), a = J(e, "expanded", e.expanded, (c) => new Set(c), (c) => [...c.values()]);
|
|
115
|
+
function n(c, o) {
|
|
116
|
+
const d = new Set(a.value), g = le(c.value);
|
|
117
|
+
if (o)
|
|
118
|
+
d.add(g);
|
|
119
119
|
else {
|
|
120
|
-
const
|
|
121
|
-
|
|
120
|
+
const h = [...a.value].find((s) => le(s) === g);
|
|
121
|
+
d.delete(h);
|
|
122
122
|
}
|
|
123
|
-
a.value =
|
|
123
|
+
a.value = d;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
return [...a.value].some((
|
|
125
|
+
function l(c) {
|
|
126
|
+
const o = le(c.value);
|
|
127
|
+
return [...a.value].some((d) => le(d) === o);
|
|
128
128
|
}
|
|
129
|
-
function r(
|
|
130
|
-
|
|
129
|
+
function r(c) {
|
|
130
|
+
n(c, !l(c));
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
expand:
|
|
132
|
+
const u = {
|
|
133
|
+
expand: n,
|
|
134
134
|
expanded: a,
|
|
135
135
|
expandOnClick: t,
|
|
136
|
-
isExpanded:
|
|
136
|
+
isExpanded: l,
|
|
137
137
|
toggleExpand: r
|
|
138
138
|
};
|
|
139
|
-
return Y(Xe,
|
|
139
|
+
return Y(Xe, u), u;
|
|
140
140
|
}
|
|
141
141
|
function Ye() {
|
|
142
142
|
const e = Q(Xe);
|
|
@@ -158,38 +158,38 @@ function fa(e) {
|
|
|
158
158
|
const {
|
|
159
159
|
disableSort: t,
|
|
160
160
|
groupBy: a,
|
|
161
|
-
sortBy:
|
|
162
|
-
} = e,
|
|
163
|
-
...
|
|
164
|
-
order:
|
|
165
|
-
})).concat(t?.value ? [] :
|
|
166
|
-
function
|
|
167
|
-
return
|
|
161
|
+
sortBy: n
|
|
162
|
+
} = e, l = j(/* @__PURE__ */ new Set()), r = D(() => a.value.map((g) => ({
|
|
163
|
+
...g,
|
|
164
|
+
order: g.order ?? !1
|
|
165
|
+
})).concat(t?.value ? [] : n.value));
|
|
166
|
+
function u(g) {
|
|
167
|
+
return l.value.has(g.id);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
const
|
|
171
|
-
|
|
169
|
+
function c(g) {
|
|
170
|
+
const h = new Set(l.value);
|
|
171
|
+
u(g) ? h.delete(g.id) : h.add(g.id), l.value = h;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
for (const
|
|
177
|
-
"type" in
|
|
178
|
-
return [...new Set(
|
|
173
|
+
function o(g) {
|
|
174
|
+
function h(s) {
|
|
175
|
+
const i = [];
|
|
176
|
+
for (const b of s.items)
|
|
177
|
+
"type" in b && b.type === "group" ? i.push(...h(b)) : i.push(b);
|
|
178
|
+
return [...new Set(i)];
|
|
179
179
|
}
|
|
180
|
-
return
|
|
181
|
-
items:
|
|
180
|
+
return h({
|
|
181
|
+
items: g
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const d = {
|
|
185
185
|
sortByWithGroups: r,
|
|
186
|
-
toggleGroup:
|
|
187
|
-
opened:
|
|
186
|
+
toggleGroup: c,
|
|
187
|
+
opened: l,
|
|
188
188
|
groupBy: a,
|
|
189
|
-
extractRows:
|
|
190
|
-
isGroupOpen:
|
|
189
|
+
extractRows: o,
|
|
190
|
+
isGroupOpen: u
|
|
191
191
|
};
|
|
192
|
-
return Y(Ze,
|
|
192
|
+
return Y(Ze, d), d;
|
|
193
193
|
}
|
|
194
194
|
function qe() {
|
|
195
195
|
const e = Q(Ze);
|
|
@@ -199,43 +199,43 @@ function qe() {
|
|
|
199
199
|
function va(e, t) {
|
|
200
200
|
if (!e.length) return [];
|
|
201
201
|
const a = /* @__PURE__ */ new Map();
|
|
202
|
-
for (const
|
|
203
|
-
const
|
|
204
|
-
a.has(
|
|
202
|
+
for (const n of e) {
|
|
203
|
+
const l = de(n.raw, t);
|
|
204
|
+
a.has(l) || a.set(l, []), a.get(l).push(n);
|
|
205
205
|
}
|
|
206
206
|
return a;
|
|
207
207
|
}
|
|
208
208
|
function et(e, t) {
|
|
209
|
-
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0,
|
|
209
|
+
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
|
|
210
210
|
if (!t.length) return [];
|
|
211
|
-
const
|
|
212
|
-
return
|
|
213
|
-
const
|
|
211
|
+
const l = va(e, t[0]), r = [], u = t.slice(1);
|
|
212
|
+
return l.forEach((c, o) => {
|
|
213
|
+
const d = t[0], g = `${n}_${d}_${o}`;
|
|
214
214
|
r.push({
|
|
215
215
|
depth: a,
|
|
216
|
-
id:
|
|
217
|
-
key:
|
|
218
|
-
value:
|
|
219
|
-
items:
|
|
216
|
+
id: g,
|
|
217
|
+
key: d,
|
|
218
|
+
value: o,
|
|
219
|
+
items: u.length ? et(c, u, a + 1, g) : c,
|
|
220
220
|
type: "group"
|
|
221
221
|
});
|
|
222
222
|
}), r;
|
|
223
223
|
}
|
|
224
224
|
function tt(e, t, a) {
|
|
225
|
-
const
|
|
226
|
-
for (const
|
|
227
|
-
"type" in
|
|
228
|
-
...
|
|
225
|
+
const n = [];
|
|
226
|
+
for (const l of e)
|
|
227
|
+
"type" in l && l.type === "group" ? (l.value != null && n.push(l), (t.has(l.id) || l.value == null) && (n.push(...tt(l.items, t, a)), a && n.push({
|
|
228
|
+
...l,
|
|
229
229
|
type: "group-summary"
|
|
230
|
-
}))) :
|
|
231
|
-
return
|
|
230
|
+
}))) : n.push(l);
|
|
231
|
+
return n;
|
|
232
232
|
}
|
|
233
|
-
function ga(e, t, a,
|
|
233
|
+
function ga(e, t, a, n) {
|
|
234
234
|
return {
|
|
235
|
-
flatItems:
|
|
235
|
+
flatItems: D(() => {
|
|
236
236
|
if (!t.value.length) return e.value;
|
|
237
|
-
const r = et(e.value, t.value.map((
|
|
238
|
-
return tt(r, a.value, Tt(
|
|
237
|
+
const r = et(e.value, t.value.map((u) => u.key));
|
|
238
|
+
return tt(r, a.value, Tt(n));
|
|
239
239
|
})
|
|
240
240
|
};
|
|
241
241
|
}
|
|
@@ -243,20 +243,20 @@ function ma(e) {
|
|
|
243
243
|
let {
|
|
244
244
|
page: t,
|
|
245
245
|
itemsPerPage: a,
|
|
246
|
-
sortBy:
|
|
247
|
-
groupBy:
|
|
246
|
+
sortBy: n,
|
|
247
|
+
groupBy: l,
|
|
248
248
|
search: r
|
|
249
249
|
} = e;
|
|
250
|
-
const
|
|
250
|
+
const u = Ge("VDataTable"), c = () => ({
|
|
251
251
|
page: t.value,
|
|
252
252
|
itemsPerPage: a.value,
|
|
253
|
-
sortBy:
|
|
254
|
-
groupBy:
|
|
253
|
+
sortBy: n.value,
|
|
254
|
+
groupBy: l.value,
|
|
255
255
|
search: r.value
|
|
256
256
|
});
|
|
257
|
-
let
|
|
258
|
-
ce(
|
|
259
|
-
Ke(
|
|
257
|
+
let o = null;
|
|
258
|
+
ce(c, (d) => {
|
|
259
|
+
Ke(o, d) || (o && o.search !== d.search && (t.value = 1), u.emit("update:options", d), o = d);
|
|
260
260
|
}, {
|
|
261
261
|
deep: !0,
|
|
262
262
|
immediate: !0
|
|
@@ -273,7 +273,7 @@ const ba = _({
|
|
|
273
273
|
}
|
|
274
274
|
}, "DataTable-paginate"), at = Symbol.for("vuetify:data-table-pagination");
|
|
275
275
|
function ha(e) {
|
|
276
|
-
const t = J(e, "page", void 0, (
|
|
276
|
+
const t = J(e, "page", void 0, (n) => Number(n ?? 1)), a = J(e, "itemsPerPage", void 0, (n) => Number(n ?? 10));
|
|
277
277
|
return {
|
|
278
278
|
page: t,
|
|
279
279
|
itemsPerPage: a
|
|
@@ -283,36 +283,36 @@ function ya(e) {
|
|
|
283
283
|
const {
|
|
284
284
|
page: t,
|
|
285
285
|
itemsPerPage: a,
|
|
286
|
-
itemsLength:
|
|
287
|
-
} = e,
|
|
288
|
-
ce([t,
|
|
289
|
-
t.value >
|
|
286
|
+
itemsLength: n
|
|
287
|
+
} = 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)), u = D(() => a.value === -1 || n.value === 0 ? 1 : Math.ceil(n.value / a.value));
|
|
288
|
+
ce([t, u], () => {
|
|
289
|
+
t.value > u.value && (t.value = u.value);
|
|
290
290
|
});
|
|
291
|
-
function
|
|
292
|
-
a.value =
|
|
293
|
-
}
|
|
294
|
-
function s() {
|
|
295
|
-
t.value = ye(t.value + 1, 1, i.value);
|
|
291
|
+
function c(s) {
|
|
292
|
+
a.value = s, t.value = 1;
|
|
296
293
|
}
|
|
297
294
|
function o() {
|
|
298
|
-
t.value = ye(t.value
|
|
295
|
+
t.value = ye(t.value + 1, 1, u.value);
|
|
296
|
+
}
|
|
297
|
+
function d() {
|
|
298
|
+
t.value = ye(t.value - 1, 1, u.value);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
t.value = ye(
|
|
300
|
+
function g(s) {
|
|
301
|
+
t.value = ye(s, 1, u.value);
|
|
302
302
|
}
|
|
303
|
-
const
|
|
303
|
+
const h = {
|
|
304
304
|
page: t,
|
|
305
305
|
itemsPerPage: a,
|
|
306
|
-
startIndex:
|
|
306
|
+
startIndex: l,
|
|
307
307
|
stopIndex: r,
|
|
308
|
-
pageCount:
|
|
309
|
-
itemsLength:
|
|
310
|
-
nextPage:
|
|
311
|
-
prevPage:
|
|
312
|
-
setPage:
|
|
313
|
-
setItemsPerPage:
|
|
308
|
+
pageCount: u,
|
|
309
|
+
itemsLength: n,
|
|
310
|
+
nextPage: o,
|
|
311
|
+
prevPage: d,
|
|
312
|
+
setPage: g,
|
|
313
|
+
setItemsPerPage: c
|
|
314
314
|
};
|
|
315
|
-
return Y(at,
|
|
315
|
+
return Y(at, h), h;
|
|
316
316
|
}
|
|
317
317
|
function pa() {
|
|
318
318
|
const e = Q(at);
|
|
@@ -322,16 +322,16 @@ function pa() {
|
|
|
322
322
|
function xa(e) {
|
|
323
323
|
const t = Ge("usePaginatedItems"), {
|
|
324
324
|
items: a,
|
|
325
|
-
startIndex:
|
|
326
|
-
stopIndex:
|
|
325
|
+
startIndex: n,
|
|
326
|
+
stopIndex: l,
|
|
327
327
|
itemsPerPage: r
|
|
328
|
-
} = e,
|
|
329
|
-
return ce(
|
|
330
|
-
t.emit("update:currentItems",
|
|
328
|
+
} = e, u = D(() => r.value <= 0 ? a.value : a.value.slice(n.value, l.value));
|
|
329
|
+
return ce(u, (c) => {
|
|
330
|
+
t.emit("update:currentItems", c);
|
|
331
331
|
}, {
|
|
332
332
|
immediate: !0
|
|
333
333
|
}), {
|
|
334
|
-
paginatedItems:
|
|
334
|
+
paginatedItems: u
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
const Sa = {
|
|
@@ -350,7 +350,7 @@ const Sa = {
|
|
|
350
350
|
} = e;
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, nt = {
|
|
354
354
|
showSelectAll: !0,
|
|
355
355
|
allSelected: (e) => {
|
|
356
356
|
let {
|
|
@@ -362,22 +362,22 @@ const Sa = {
|
|
|
362
362
|
let {
|
|
363
363
|
items: t,
|
|
364
364
|
value: a,
|
|
365
|
-
selected:
|
|
365
|
+
selected: n
|
|
366
366
|
} = e;
|
|
367
|
-
for (const
|
|
368
|
-
a ?
|
|
369
|
-
return
|
|
367
|
+
for (const l of t)
|
|
368
|
+
a ? n.add(l.value) : n.delete(l.value);
|
|
369
|
+
return n;
|
|
370
370
|
},
|
|
371
371
|
selectAll: (e) => {
|
|
372
372
|
let {
|
|
373
373
|
value: t,
|
|
374
374
|
currentPage: a,
|
|
375
|
-
selected:
|
|
375
|
+
selected: n
|
|
376
376
|
} = e;
|
|
377
|
-
return
|
|
377
|
+
return nt.select({
|
|
378
378
|
items: a,
|
|
379
379
|
value: t,
|
|
380
|
-
selected:
|
|
380
|
+
selected: n
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
}, Pa = {
|
|
@@ -392,20 +392,20 @@ const Sa = {
|
|
|
392
392
|
let {
|
|
393
393
|
items: t,
|
|
394
394
|
value: a,
|
|
395
|
-
selected:
|
|
395
|
+
selected: n
|
|
396
396
|
} = e;
|
|
397
|
-
for (const
|
|
398
|
-
a ?
|
|
399
|
-
return
|
|
397
|
+
for (const l of t)
|
|
398
|
+
a ? n.add(l.value) : n.delete(l.value);
|
|
399
|
+
return n;
|
|
400
400
|
},
|
|
401
401
|
selectAll: (e) => {
|
|
402
402
|
let {
|
|
403
403
|
value: t,
|
|
404
404
|
allItems: a
|
|
405
405
|
} = e;
|
|
406
|
-
return new Set(t ? a.map((
|
|
406
|
+
return new Set(t ? a.map((n) => n.value) : []);
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, wa = _({
|
|
409
409
|
showSelect: Boolean,
|
|
410
410
|
selectStrategy: {
|
|
411
411
|
type: [String, Object],
|
|
@@ -416,16 +416,16 @@ const Sa = {
|
|
|
416
416
|
default: () => []
|
|
417
417
|
},
|
|
418
418
|
valueComparator: Function
|
|
419
|
-
}, "DataTable-select"),
|
|
420
|
-
function
|
|
419
|
+
}, "DataTable-select"), lt = Symbol.for("vuetify:data-table-selection");
|
|
420
|
+
function ka(e, t) {
|
|
421
421
|
let {
|
|
422
422
|
allItems: a,
|
|
423
|
-
currentPage:
|
|
423
|
+
currentPage: n
|
|
424
424
|
} = t;
|
|
425
|
-
const
|
|
426
|
-
const
|
|
427
|
-
return
|
|
428
|
-
}, (
|
|
425
|
+
const l = J(e, "modelValue", e.modelValue, (y) => {
|
|
426
|
+
const P = e.valueComparator;
|
|
427
|
+
return P ? new Set(z(y).map((V) => a.value.find((w) => P(V, w.value))?.value ?? V)) : new Set(z(y).map((V) => Rt(V) ? a.value.find((w) => V === w.value)?.value ?? V : a.value.find((w) => Ke(V, w.value))?.value ?? V));
|
|
428
|
+
}, (y) => [...y.values()]), r = D(() => a.value.filter((y) => y.selectable)), u = D(() => n.value.filter((y) => y.selectable)), c = D(() => {
|
|
429
429
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
430
430
|
switch (e.selectStrategy) {
|
|
431
431
|
case "single":
|
|
@@ -434,63 +434,63 @@ function wa(e, t) {
|
|
|
434
434
|
return Pa;
|
|
435
435
|
case "page":
|
|
436
436
|
default:
|
|
437
|
-
return
|
|
437
|
+
return nt;
|
|
438
438
|
}
|
|
439
|
-
}),
|
|
440
|
-
function
|
|
441
|
-
return z(
|
|
439
|
+
}), o = ue(null);
|
|
440
|
+
function d(y) {
|
|
441
|
+
return z(y).every((P) => l.value.has(P.value));
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return z(
|
|
443
|
+
function g(y) {
|
|
444
|
+
return z(y).some((P) => l.value.has(P.value));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
const
|
|
448
|
-
items:
|
|
449
|
-
value:
|
|
450
|
-
selected: new Set(
|
|
446
|
+
function h(y, P) {
|
|
447
|
+
const V = c.value.select({
|
|
448
|
+
items: y,
|
|
449
|
+
value: P,
|
|
450
|
+
selected: new Set(l.value)
|
|
451
451
|
});
|
|
452
|
-
|
|
452
|
+
l.value = V;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
const
|
|
456
|
-
if (
|
|
457
|
-
const [L, N] = [
|
|
458
|
-
|
|
454
|
+
function s(y, P, V) {
|
|
455
|
+
const w = [];
|
|
456
|
+
if (P = P ?? n.value.findIndex((L) => L.value === y.value), e.selectStrategy !== "single" && V?.shiftKey && o.value !== null) {
|
|
457
|
+
const [L, N] = [o.value, P].sort((p, x) => p - x);
|
|
458
|
+
w.push(...n.value.slice(L, N + 1).filter((p) => p.selectable));
|
|
459
459
|
} else
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
w.push(y), o.value = P;
|
|
461
|
+
h(w, !d([y]));
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
const
|
|
465
|
-
value:
|
|
463
|
+
function i(y) {
|
|
464
|
+
const P = c.value.selectAll({
|
|
465
|
+
value: y,
|
|
466
466
|
allItems: r.value,
|
|
467
|
-
currentPage:
|
|
468
|
-
selected: new Set(
|
|
467
|
+
currentPage: u.value,
|
|
468
|
+
selected: new Set(l.value)
|
|
469
469
|
});
|
|
470
|
-
|
|
470
|
+
l.value = P;
|
|
471
471
|
}
|
|
472
|
-
const
|
|
473
|
-
const
|
|
472
|
+
const b = D(() => l.value.size > 0), f = D(() => {
|
|
473
|
+
const y = c.value.allSelected({
|
|
474
474
|
allItems: r.value,
|
|
475
|
-
currentPage:
|
|
475
|
+
currentPage: u.value
|
|
476
476
|
});
|
|
477
|
-
return !!
|
|
478
|
-
}), v = C(() =>
|
|
479
|
-
toggleSelect:
|
|
480
|
-
select:
|
|
481
|
-
selectAll:
|
|
482
|
-
isSelected:
|
|
483
|
-
isSomeSelected:
|
|
484
|
-
someSelected:
|
|
485
|
-
allSelected:
|
|
477
|
+
return !!y.length && d(y);
|
|
478
|
+
}), v = C(() => c.value.showSelectAll), k = {
|
|
479
|
+
toggleSelect: s,
|
|
480
|
+
select: h,
|
|
481
|
+
selectAll: i,
|
|
482
|
+
isSelected: d,
|
|
483
|
+
isSomeSelected: g,
|
|
484
|
+
someSelected: b,
|
|
485
|
+
allSelected: f,
|
|
486
486
|
showSelectAll: v,
|
|
487
|
-
lastSelectedIndex:
|
|
488
|
-
selectStrategy:
|
|
487
|
+
lastSelectedIndex: o,
|
|
488
|
+
selectStrategy: c
|
|
489
489
|
};
|
|
490
|
-
return Y(
|
|
490
|
+
return Y(lt, k), k;
|
|
491
491
|
}
|
|
492
492
|
function ve() {
|
|
493
|
-
const e = Q(
|
|
493
|
+
const e = Q(lt);
|
|
494
494
|
if (!e) throw new Error("Missing selection!");
|
|
495
495
|
return e;
|
|
496
496
|
}
|
|
@@ -504,96 +504,96 @@ const Ia = _({
|
|
|
504
504
|
mustSort: Boolean
|
|
505
505
|
}, "DataTable-sort"), rt = Symbol.for("vuetify:data-table-sort");
|
|
506
506
|
function Fa(e) {
|
|
507
|
-
const t = J(e, "sortBy"), a = C(() => e.mustSort),
|
|
507
|
+
const t = J(e, "sortBy"), a = C(() => e.mustSort), n = C(() => e.multiSort);
|
|
508
508
|
return {
|
|
509
509
|
sortBy: t,
|
|
510
510
|
mustSort: a,
|
|
511
|
-
multiSort:
|
|
511
|
+
multiSort: n
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Da(e) {
|
|
515
515
|
const {
|
|
516
516
|
sortBy: t,
|
|
517
517
|
mustSort: a,
|
|
518
|
-
multiSort:
|
|
519
|
-
page:
|
|
520
|
-
} = e, r = (
|
|
521
|
-
if (
|
|
522
|
-
let
|
|
523
|
-
...
|
|
518
|
+
multiSort: n,
|
|
519
|
+
page: l
|
|
520
|
+
} = e, r = (o) => {
|
|
521
|
+
if (o.key == null) return;
|
|
522
|
+
let d = t.value.map((h) => ({
|
|
523
|
+
...h
|
|
524
524
|
})) ?? [];
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
key:
|
|
525
|
+
const g = d.find((h) => h.key === o.key);
|
|
526
|
+
g ? g.order === "desc" ? a.value && d.length === 1 ? g.order = "asc" : d = d.filter((h) => h.key !== o.key) : g.order = "desc" : n.value ? d.push({
|
|
527
|
+
key: o.key,
|
|
528
528
|
order: "asc"
|
|
529
|
-
}) :
|
|
530
|
-
key:
|
|
529
|
+
}) : d = [{
|
|
530
|
+
key: o.key,
|
|
531
531
|
order: "asc"
|
|
532
|
-
}], t.value =
|
|
532
|
+
}], t.value = d, l && (l.value = 1);
|
|
533
533
|
};
|
|
534
|
-
function
|
|
535
|
-
return !!t.value.find((
|
|
534
|
+
function u(o) {
|
|
535
|
+
return !!t.value.find((d) => d.key === o.key);
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const c = {
|
|
538
538
|
sortBy: t,
|
|
539
539
|
toggleSort: r,
|
|
540
|
-
isSorted:
|
|
540
|
+
isSorted: u
|
|
541
541
|
};
|
|
542
|
-
return Y(rt,
|
|
542
|
+
return Y(rt, c), c;
|
|
543
543
|
}
|
|
544
544
|
function st() {
|
|
545
545
|
const e = Q(rt);
|
|
546
546
|
if (!e) throw new Error("Missing sort!");
|
|
547
547
|
return e;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
const
|
|
549
|
+
function Va(e, t, a, n) {
|
|
550
|
+
const l = Z();
|
|
551
551
|
return {
|
|
552
|
-
sortedItems:
|
|
553
|
-
transform:
|
|
552
|
+
sortedItems: D(() => a.value.length ? Ta(t.value, a.value, l.current.value, {
|
|
553
|
+
transform: n?.transform,
|
|
554
554
|
sortFunctions: {
|
|
555
555
|
...e.customKeySort,
|
|
556
|
-
...
|
|
556
|
+
...n?.sortFunctions?.value
|
|
557
557
|
},
|
|
558
|
-
sortRawFunctions:
|
|
558
|
+
sortRawFunctions: n?.sortRawFunctions?.value
|
|
559
559
|
}) : t.value)
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function Ta(e, t, a,
|
|
563
|
-
const
|
|
562
|
+
function Ta(e, t, a, n) {
|
|
563
|
+
const l = new Intl.Collator(a, {
|
|
564
564
|
sensitivity: "accent",
|
|
565
565
|
usage: "sort"
|
|
566
566
|
});
|
|
567
|
-
return e.map((
|
|
568
|
-
for (let
|
|
569
|
-
let
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
let
|
|
573
|
-
if (
|
|
574
|
-
const v =
|
|
567
|
+
return e.map((u) => [u, n?.transform ? n.transform(u) : u]).sort((u, c) => {
|
|
568
|
+
for (let o = 0; o < t.length; o++) {
|
|
569
|
+
let d = !1;
|
|
570
|
+
const g = t[o].key, h = t[o].order ?? "asc";
|
|
571
|
+
if (h === !1) continue;
|
|
572
|
+
let s = de(u[1], g), i = de(c[1], g), b = u[0].raw, f = c[0].raw;
|
|
573
|
+
if (h === "desc" && ([s, i] = [i, s], [b, f] = [f, b]), n?.sortRawFunctions?.[g]) {
|
|
574
|
+
const v = n.sortRawFunctions[g](b, f);
|
|
575
575
|
if (v == null) continue;
|
|
576
|
-
if (
|
|
576
|
+
if (d = !0, v) return v;
|
|
577
577
|
}
|
|
578
|
-
if (
|
|
579
|
-
const v =
|
|
578
|
+
if (n?.sortFunctions?.[g]) {
|
|
579
|
+
const v = n.sortFunctions[g](s, i);
|
|
580
580
|
if (v == null) continue;
|
|
581
|
-
if (
|
|
581
|
+
if (d = !0, v) return v;
|
|
582
582
|
}
|
|
583
|
-
if (!
|
|
584
|
-
return se(
|
|
583
|
+
if (!d && (s instanceof Date && i instanceof Date && (s = s.getTime(), i = i.getTime()), [s, i] = [s, i].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), s !== i))
|
|
584
|
+
return se(s) && se(i) ? 0 : se(s) ? -1 : se(i) ? 1 : !isNaN(s) && !isNaN(i) ? Number(s) - Number(i) : l.compare(s, i);
|
|
585
585
|
}
|
|
586
586
|
return 0;
|
|
587
|
-
}).map((
|
|
588
|
-
let [
|
|
589
|
-
return
|
|
587
|
+
}).map((u) => {
|
|
588
|
+
let [c] = u;
|
|
589
|
+
return c;
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
function Ca() {
|
|
593
593
|
const e = j([]);
|
|
594
594
|
Ct(() => e.value = []);
|
|
595
|
-
function t(a,
|
|
596
|
-
e.value[
|
|
595
|
+
function t(a, n) {
|
|
596
|
+
e.value[n] = a;
|
|
597
597
|
}
|
|
598
598
|
return {
|
|
599
599
|
refs: e,
|
|
@@ -692,63 +692,63 @@ const _a = _({
|
|
|
692
692
|
setup(e, t) {
|
|
693
693
|
let {
|
|
694
694
|
slots: a,
|
|
695
|
-
emit:
|
|
695
|
+
emit: n
|
|
696
696
|
} = t;
|
|
697
|
-
const
|
|
697
|
+
const l = J(e, "modelValue"), {
|
|
698
698
|
t: r,
|
|
699
|
-
n:
|
|
699
|
+
n: u
|
|
700
700
|
} = Z(), {
|
|
701
|
-
isRtl:
|
|
701
|
+
isRtl: c
|
|
702
702
|
} = $t(), {
|
|
703
|
-
themeClasses:
|
|
703
|
+
themeClasses: o
|
|
704
704
|
} = Ie(e), {
|
|
705
|
-
width:
|
|
706
|
-
} = fe(),
|
|
705
|
+
width: d
|
|
706
|
+
} = fe(), g = ue(-1);
|
|
707
707
|
Se(void 0, {
|
|
708
708
|
scoped: !0
|
|
709
709
|
});
|
|
710
710
|
const {
|
|
711
|
-
resizeRef:
|
|
711
|
+
resizeRef: h
|
|
712
712
|
} = Mt((p) => {
|
|
713
713
|
if (!p.length) return;
|
|
714
714
|
const {
|
|
715
715
|
target: x,
|
|
716
|
-
contentRect:
|
|
717
|
-
} = p[0],
|
|
718
|
-
if (!
|
|
719
|
-
const T =
|
|
720
|
-
|
|
721
|
-
}),
|
|
722
|
-
function
|
|
723
|
-
const
|
|
716
|
+
contentRect: m
|
|
717
|
+
} = p[0], I = x.querySelector(".v-pagination__list > *");
|
|
718
|
+
if (!I) return;
|
|
719
|
+
const T = m.width, R = I.offsetWidth + parseFloat(getComputedStyle(I).marginRight) * 2;
|
|
720
|
+
g.value = f(T, R);
|
|
721
|
+
}), s = D(() => parseInt(e.length, 10)), i = D(() => parseInt(e.start, 10)), b = D(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : g.value >= 0 ? g.value : f(d.value, 58));
|
|
722
|
+
function f(p, x) {
|
|
723
|
+
const m = e.showFirstLastPage ? 5 : 3;
|
|
724
724
|
return Math.max(0, Math.floor(
|
|
725
725
|
// Round to two decimal places to avoid floating point errors
|
|
726
|
-
Number(((p - x *
|
|
726
|
+
Number(((p - x * m) / x).toFixed(2))
|
|
727
727
|
));
|
|
728
728
|
}
|
|
729
|
-
const v =
|
|
730
|
-
if (
|
|
731
|
-
if (
|
|
732
|
-
if (
|
|
733
|
-
if (
|
|
734
|
-
return oe(
|
|
735
|
-
const p =
|
|
736
|
-
if (
|
|
737
|
-
return [...oe(Math.max(1,
|
|
738
|
-
if (
|
|
739
|
-
const T =
|
|
740
|
-
return [
|
|
729
|
+
const v = D(() => {
|
|
730
|
+
if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER) return [];
|
|
731
|
+
if (b.value <= 0) return [];
|
|
732
|
+
if (b.value === 1) return [l.value];
|
|
733
|
+
if (s.value <= b.value)
|
|
734
|
+
return oe(s.value, i.value);
|
|
735
|
+
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), m = p ? x : x + 1, I = s.value - x;
|
|
736
|
+
if (m - l.value >= 0)
|
|
737
|
+
return [...oe(Math.max(1, b.value - 1), i.value), e.ellipsis, s.value];
|
|
738
|
+
if (l.value - I >= (p ? 1 : 0)) {
|
|
739
|
+
const T = b.value - 1, R = s.value - T + i.value;
|
|
740
|
+
return [i.value, e.ellipsis, ...oe(T, R)];
|
|
741
741
|
} else {
|
|
742
|
-
const T = Math.max(1,
|
|
743
|
-
return [
|
|
742
|
+
const T = Math.max(1, b.value - 2), R = T === 1 ? l.value : l.value - Math.ceil(T / 2) + i.value;
|
|
743
|
+
return [i.value, e.ellipsis, ...oe(T, R), e.ellipsis, s.value];
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
function
|
|
747
|
-
p.preventDefault(),
|
|
746
|
+
function k(p, x, m) {
|
|
747
|
+
p.preventDefault(), l.value = x, m && n(m, x);
|
|
748
748
|
}
|
|
749
749
|
const {
|
|
750
|
-
refs:
|
|
751
|
-
updateRef:
|
|
750
|
+
refs: y,
|
|
751
|
+
updateRef: P
|
|
752
752
|
} = Ca();
|
|
753
753
|
Se({
|
|
754
754
|
VPaginationBtn: {
|
|
@@ -761,65 +761,65 @@ const _a = _({
|
|
|
761
761
|
elevation: C(() => e.elevation)
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const
|
|
765
|
-
const
|
|
764
|
+
const V = D(() => v.value.map((p, x) => {
|
|
765
|
+
const m = (I) => P(I, x);
|
|
766
766
|
if (typeof p == "string")
|
|
767
767
|
return {
|
|
768
768
|
isActive: !1,
|
|
769
769
|
key: `ellipsis-${x}`,
|
|
770
770
|
page: p,
|
|
771
771
|
props: {
|
|
772
|
-
ref:
|
|
772
|
+
ref: m,
|
|
773
773
|
ellipsis: !0,
|
|
774
774
|
icon: !0,
|
|
775
775
|
disabled: !0
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
{
|
|
779
|
-
const
|
|
779
|
+
const I = p === l.value;
|
|
780
780
|
return {
|
|
781
|
-
isActive:
|
|
781
|
+
isActive: I,
|
|
782
782
|
key: p,
|
|
783
|
-
page:
|
|
783
|
+
page: u(p),
|
|
784
784
|
props: {
|
|
785
|
-
ref:
|
|
785
|
+
ref: m,
|
|
786
786
|
ellipsis: !1,
|
|
787
787
|
icon: !0,
|
|
788
788
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
789
|
-
color:
|
|
790
|
-
"aria-current":
|
|
791
|
-
"aria-label": r(
|
|
792
|
-
onClick: (T) =>
|
|
789
|
+
color: I ? e.activeColor : e.color,
|
|
790
|
+
"aria-current": I,
|
|
791
|
+
"aria-label": r(I ? e.currentPageAriaLabel : e.pageAriaLabel, p),
|
|
792
|
+
onClick: (T) => k(T, p)
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
})),
|
|
797
|
-
const p = !!e.disabled ||
|
|
796
|
+
})), w = D(() => {
|
|
797
|
+
const p = !!e.disabled || l.value <= i.value, x = !!e.disabled || l.value >= i.value + s.value - 1;
|
|
798
798
|
return {
|
|
799
799
|
first: e.showFirstLastPage ? {
|
|
800
|
-
icon:
|
|
801
|
-
onClick: (
|
|
800
|
+
icon: c.value ? e.lastIcon : e.firstIcon,
|
|
801
|
+
onClick: (m) => k(m, i.value, "first"),
|
|
802
802
|
disabled: p,
|
|
803
803
|
"aria-label": r(e.firstAriaLabel),
|
|
804
804
|
"aria-disabled": p
|
|
805
805
|
} : void 0,
|
|
806
806
|
prev: {
|
|
807
|
-
icon:
|
|
808
|
-
onClick: (
|
|
807
|
+
icon: c.value ? e.nextIcon : e.prevIcon,
|
|
808
|
+
onClick: (m) => k(m, l.value - 1, "prev"),
|
|
809
809
|
disabled: p,
|
|
810
810
|
"aria-label": r(e.previousAriaLabel),
|
|
811
811
|
"aria-disabled": p
|
|
812
812
|
},
|
|
813
813
|
next: {
|
|
814
|
-
icon:
|
|
815
|
-
onClick: (
|
|
814
|
+
icon: c.value ? e.prevIcon : e.nextIcon,
|
|
815
|
+
onClick: (m) => k(m, l.value + 1, "next"),
|
|
816
816
|
disabled: x,
|
|
817
817
|
"aria-label": r(e.nextAriaLabel),
|
|
818
818
|
"aria-disabled": x
|
|
819
819
|
},
|
|
820
820
|
last: e.showFirstLastPage ? {
|
|
821
|
-
icon:
|
|
822
|
-
onClick: (
|
|
821
|
+
icon: c.value ? e.firstIcon : e.lastIcon,
|
|
822
|
+
onClick: (m) => k(m, i.value + s.value - 1, "last"),
|
|
823
823
|
disabled: x,
|
|
824
824
|
"aria-label": r(e.lastAriaLabel),
|
|
825
825
|
"aria-disabled": x
|
|
@@ -827,16 +827,16 @@ const _a = _({
|
|
|
827
827
|
};
|
|
828
828
|
});
|
|
829
829
|
function L() {
|
|
830
|
-
const p =
|
|
831
|
-
|
|
830
|
+
const p = l.value - i.value;
|
|
831
|
+
y.value[p]?.$el.focus();
|
|
832
832
|
}
|
|
833
833
|
function N(p) {
|
|
834
|
-
p.key === Be.left && !e.disabled &&
|
|
834
|
+
p.key === Be.left && !e.disabled && l.value > Number(e.start) ? (l.value = l.value - 1, Ce(L)) : p.key === Be.right && !e.disabled && l.value < i.value + s.value - 1 && (l.value = l.value + 1, Ce(L));
|
|
835
835
|
}
|
|
836
|
-
return K(() =>
|
|
837
|
-
ref:
|
|
838
|
-
class: G(["v-pagination",
|
|
839
|
-
style:
|
|
836
|
+
return K(() => F(e.tag, {
|
|
837
|
+
ref: h,
|
|
838
|
+
class: G(["v-pagination", o.value, e.class]),
|
|
839
|
+
style: ke(e.style),
|
|
840
840
|
role: "navigation",
|
|
841
841
|
"aria-label": r(e.ariaLabel),
|
|
842
842
|
onKeydown: N,
|
|
@@ -848,21 +848,21 @@ const _a = _({
|
|
|
848
848
|
key: "first",
|
|
849
849
|
class: "v-pagination__first",
|
|
850
850
|
"data-test": "v-pagination-first"
|
|
851
|
-
}, [a.first ? a.first(
|
|
851
|
+
}, [a.first ? a.first(w.value.first) : F(W, B({
|
|
852
852
|
_as: "VPaginationBtn"
|
|
853
|
-
},
|
|
853
|
+
}, w.value.first), null)]), S("li", {
|
|
854
854
|
key: "prev",
|
|
855
855
|
class: "v-pagination__prev",
|
|
856
856
|
"data-test": "v-pagination-prev"
|
|
857
|
-
}, [a.prev ? a.prev(
|
|
857
|
+
}, [a.prev ? a.prev(w.value.prev) : F(W, B({
|
|
858
858
|
_as: "VPaginationBtn"
|
|
859
|
-
},
|
|
859
|
+
}, w.value.prev), null)]), V.value.map((p, x) => S("li", {
|
|
860
860
|
key: p.key,
|
|
861
861
|
class: G(["v-pagination__item", {
|
|
862
862
|
"v-pagination__item--is-active": p.isActive
|
|
863
863
|
}]),
|
|
864
864
|
"data-test": "v-pagination-item"
|
|
865
|
-
}, [a.item ? a.item(p) :
|
|
865
|
+
}, [a.item ? a.item(p) : F(W, B({
|
|
866
866
|
_as: "VPaginationBtn"
|
|
867
867
|
}, p.props), {
|
|
868
868
|
default: () => [p.page]
|
|
@@ -870,15 +870,15 @@ const _a = _({
|
|
|
870
870
|
key: "next",
|
|
871
871
|
class: "v-pagination__next",
|
|
872
872
|
"data-test": "v-pagination-next"
|
|
873
|
-
}, [a.next ? a.next(
|
|
873
|
+
}, [a.next ? a.next(w.value.next) : F(W, B({
|
|
874
874
|
_as: "VPaginationBtn"
|
|
875
|
-
},
|
|
875
|
+
}, w.value.next), null)]), e.showFirstLastPage && S("li", {
|
|
876
876
|
key: "last",
|
|
877
877
|
class: "v-pagination__last",
|
|
878
878
|
"data-test": "v-pagination-last"
|
|
879
|
-
}, [a.last ? a.last(
|
|
879
|
+
}, [a.last ? a.last(w.value.last) : F(W, B({
|
|
880
880
|
_as: "VPaginationBtn"
|
|
881
|
-
},
|
|
881
|
+
}, w.value.last), null)])])]
|
|
882
882
|
})), {};
|
|
883
883
|
}
|
|
884
884
|
}), ot = _({
|
|
@@ -950,44 +950,44 @@ const _a = _({
|
|
|
950
950
|
slots: a
|
|
951
951
|
} = t;
|
|
952
952
|
const {
|
|
953
|
-
t:
|
|
953
|
+
t: n
|
|
954
954
|
} = Z(), {
|
|
955
|
-
page:
|
|
955
|
+
page: l,
|
|
956
956
|
pageCount: r,
|
|
957
|
-
startIndex:
|
|
958
|
-
stopIndex:
|
|
959
|
-
itemsLength:
|
|
960
|
-
itemsPerPage:
|
|
961
|
-
setItemsPerPage:
|
|
962
|
-
} = pa(),
|
|
963
|
-
value:
|
|
964
|
-
title:
|
|
957
|
+
startIndex: u,
|
|
958
|
+
stopIndex: c,
|
|
959
|
+
itemsLength: o,
|
|
960
|
+
itemsPerPage: d,
|
|
961
|
+
setItemsPerPage: g
|
|
962
|
+
} = pa(), h = D(() => e.itemsPerPageOptions.map((s) => typeof s == "number" ? {
|
|
963
|
+
value: s,
|
|
964
|
+
title: s === -1 ? n("$vuetify.dataFooter.itemsPerPageAll") : String(s)
|
|
965
965
|
} : {
|
|
966
|
-
...
|
|
967
|
-
title: isNaN(Number(
|
|
966
|
+
...s,
|
|
967
|
+
title: isNaN(Number(s.title)) ? n(s.title) : s.title
|
|
968
968
|
}));
|
|
969
969
|
return K(() => {
|
|
970
|
-
const
|
|
970
|
+
const s = Ae.filterProps(e);
|
|
971
971
|
return S("div", {
|
|
972
972
|
class: "v-data-table-footer"
|
|
973
973
|
}, [a.prepend?.(), S("div", {
|
|
974
974
|
class: "v-data-table-footer__items-per-page"
|
|
975
975
|
}, [S("span", {
|
|
976
|
-
"aria-label":
|
|
977
|
-
}, [
|
|
978
|
-
items:
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": (
|
|
976
|
+
"aria-label": n(e.itemsPerPageText)
|
|
977
|
+
}, [n(e.itemsPerPageText)]), F(Qe, {
|
|
978
|
+
items: h.value,
|
|
979
|
+
modelValue: d.value,
|
|
980
|
+
"onUpdate:modelValue": (i) => g(Number(i)),
|
|
981
981
|
density: "compact",
|
|
982
982
|
variant: "outlined",
|
|
983
983
|
hideDetails: !0
|
|
984
984
|
}, null)]), S("div", {
|
|
985
985
|
class: "v-data-table-footer__info"
|
|
986
|
-
}, [S("div", null, [
|
|
986
|
+
}, [S("div", null, [n(e.pageText, o.value ? u.value + 1 : 0, c.value, o.value)])]), S("div", {
|
|
987
987
|
class: "v-data-table-footer__pagination"
|
|
988
|
-
}, [
|
|
989
|
-
modelValue:
|
|
990
|
-
"onUpdate:modelValue": (
|
|
988
|
+
}, [F(Ae, B({
|
|
989
|
+
modelValue: l.value,
|
|
990
|
+
"onUpdate:modelValue": (i) => l.value = i,
|
|
991
991
|
density: "comfortable",
|
|
992
992
|
firstAriaLabel: e.firstPageLabel,
|
|
993
993
|
lastAriaLabel: e.lastPageLabel,
|
|
@@ -998,7 +998,7 @@ const _a = _({
|
|
|
998
998
|
showFirstLastPage: !0,
|
|
999
999
|
totalVisible: e.showCurrentPage ? 1 : 0,
|
|
1000
1000
|
variant: "plain"
|
|
1001
|
-
},
|
|
1001
|
+
}, s), null)])]);
|
|
1002
1002
|
}), {};
|
|
1003
1003
|
}
|
|
1004
1004
|
}), te = Wt({
|
|
@@ -1026,11 +1026,11 @@ const _a = _({
|
|
|
1026
1026
|
let {
|
|
1027
1027
|
slots: a
|
|
1028
1028
|
} = t;
|
|
1029
|
-
const
|
|
1030
|
-
return
|
|
1029
|
+
const n = e.tag ?? "td", l = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
|
|
1030
|
+
return F(n, {
|
|
1031
1031
|
class: G(["v-data-table__td", {
|
|
1032
|
-
"v-data-table-column--fixed":
|
|
1033
|
-
"v-data-table-column--fixed-end":
|
|
1032
|
+
"v-data-table-column--fixed": l === "start",
|
|
1033
|
+
"v-data-table-column--fixed-end": l === "end",
|
|
1034
1034
|
"v-data-table-column--last-fixed": e.lastFixed,
|
|
1035
1035
|
"v-data-table-column--first-fixed-end": e.firstFixedEnd,
|
|
1036
1036
|
"v-data-table-column--no-padding": e.noPadding,
|
|
@@ -1041,8 +1041,8 @@ const _a = _({
|
|
|
1041
1041
|
height: A(e.height),
|
|
1042
1042
|
width: A(e.width),
|
|
1043
1043
|
maxWidth: A(e.maxWidth),
|
|
1044
|
-
left:
|
|
1045
|
-
right:
|
|
1044
|
+
left: l === "start" ? A(e.fixedOffset || null) : void 0,
|
|
1045
|
+
right: l === "end" ? A(e.fixedEndOffset || null) : void 0,
|
|
1046
1046
|
paddingInlineStart: e.indent ? A(e.indent) : void 0
|
|
1047
1047
|
}
|
|
1048
1048
|
}, {
|
|
@@ -1063,40 +1063,40 @@ function La() {
|
|
|
1063
1063
|
priority: 0
|
|
1064
1064
|
}));
|
|
1065
1065
|
return {
|
|
1066
|
-
enqueue: (a,
|
|
1067
|
-
let
|
|
1066
|
+
enqueue: (a, n) => {
|
|
1067
|
+
let l = !1;
|
|
1068
1068
|
for (let r = 0; r < t.length; r++)
|
|
1069
|
-
if (t[r].priority >
|
|
1069
|
+
if (t[r].priority > n) {
|
|
1070
1070
|
t.splice(r, 0, {
|
|
1071
1071
|
element: a,
|
|
1072
|
-
priority:
|
|
1073
|
-
}),
|
|
1072
|
+
priority: n
|
|
1073
|
+
}), l = !0;
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1076
|
+
l || t.push({
|
|
1077
1077
|
element: a,
|
|
1078
|
-
priority:
|
|
1078
|
+
priority: n
|
|
1079
1079
|
});
|
|
1080
1080
|
},
|
|
1081
1081
|
size: () => t.length,
|
|
1082
1082
|
count: () => {
|
|
1083
1083
|
let a = 0;
|
|
1084
1084
|
if (!t.length) return 0;
|
|
1085
|
-
const
|
|
1086
|
-
for (let
|
|
1087
|
-
Math.floor(t[
|
|
1085
|
+
const n = Math.floor(t[0].priority);
|
|
1086
|
+
for (let l = 0; l < t.length; l++)
|
|
1087
|
+
Math.floor(t[l].priority) === n && (a += 1);
|
|
1088
1088
|
return a;
|
|
1089
1089
|
},
|
|
1090
1090
|
dequeue: () => t.shift()
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function we(e) {
|
|
1094
1094
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1095
1095
|
if (!e.children)
|
|
1096
1096
|
t.push(e);
|
|
1097
1097
|
else
|
|
1098
1098
|
for (const a of e.children)
|
|
1099
|
-
|
|
1099
|
+
we(a, t);
|
|
1100
1100
|
return t;
|
|
1101
1101
|
}
|
|
1102
1102
|
function dt(e) {
|
|
@@ -1117,26 +1117,26 @@ function Te(e) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
function Ea(e) {
|
|
1119
1119
|
let t = !1;
|
|
1120
|
-
function a(r,
|
|
1121
|
-
let
|
|
1120
|
+
function a(r, u) {
|
|
1121
|
+
let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
1122
1122
|
if (r)
|
|
1123
|
-
if (
|
|
1123
|
+
if (c !== "none" && (r.fixed = c), r.fixed === !0 && (r.fixed = "start"), r.fixed === u)
|
|
1124
1124
|
if (r.children)
|
|
1125
|
-
if (
|
|
1126
|
-
for (let
|
|
1127
|
-
a(r.children[
|
|
1125
|
+
if (u === "start")
|
|
1126
|
+
for (let o = r.children.length - 1; o >= 0; o--)
|
|
1127
|
+
a(r.children[o], u, u);
|
|
1128
1128
|
else
|
|
1129
|
-
for (let
|
|
1130
|
-
a(r.children[
|
|
1129
|
+
for (let o = 0; o < r.children.length; o++)
|
|
1130
|
+
a(r.children[o], u, u);
|
|
1131
1131
|
else
|
|
1132
|
-
!t &&
|
|
1132
|
+
!t && u === "start" ? r.lastFixed = !0 : !t && u === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? zt(`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;
|
|
1133
1133
|
else if (r.children)
|
|
1134
|
-
if (
|
|
1135
|
-
for (let
|
|
1136
|
-
a(r.children[
|
|
1134
|
+
if (u === "start")
|
|
1135
|
+
for (let o = r.children.length - 1; o >= 0; o--)
|
|
1136
|
+
a(r.children[o], u);
|
|
1137
1137
|
else
|
|
1138
|
-
for (let
|
|
1139
|
-
a(r.children[
|
|
1138
|
+
for (let o = 0; o < r.children.length; o++)
|
|
1139
|
+
a(r.children[o], u);
|
|
1140
1140
|
else
|
|
1141
1141
|
t = !1;
|
|
1142
1142
|
}
|
|
@@ -1144,12 +1144,12 @@ function Ea(e) {
|
|
|
1144
1144
|
a(e[r], "start");
|
|
1145
1145
|
for (let r = 0; r < e.length; r++)
|
|
1146
1146
|
a(e[r], "end");
|
|
1147
|
-
let l = 0;
|
|
1148
|
-
for (let r = 0; r < e.length; r++)
|
|
1149
|
-
l = ct(e[r], l);
|
|
1150
1147
|
let n = 0;
|
|
1148
|
+
for (let r = 0; r < e.length; r++)
|
|
1149
|
+
n = ct(e[r], n);
|
|
1150
|
+
let l = 0;
|
|
1151
1151
|
for (let r = e.length - 1; r >= 0; r--)
|
|
1152
|
-
|
|
1152
|
+
l = ft(e[r], l);
|
|
1153
1153
|
}
|
|
1154
1154
|
function ct(e) {
|
|
1155
1155
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
@@ -1173,83 +1173,83 @@ function ft(e) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
function Na(e, t) {
|
|
1175
1175
|
const a = [];
|
|
1176
|
-
let
|
|
1177
|
-
const
|
|
1178
|
-
for (;
|
|
1179
|
-
let
|
|
1180
|
-
const
|
|
1181
|
-
let
|
|
1182
|
-
for (;
|
|
1176
|
+
let n = 0;
|
|
1177
|
+
const l = La(e);
|
|
1178
|
+
for (; l.size() > 0; ) {
|
|
1179
|
+
let u = l.count();
|
|
1180
|
+
const c = [];
|
|
1181
|
+
let o = 1;
|
|
1182
|
+
for (; u > 0; ) {
|
|
1183
1183
|
const {
|
|
1184
|
-
element:
|
|
1185
|
-
priority:
|
|
1186
|
-
} =
|
|
1187
|
-
if (
|
|
1188
|
-
...
|
|
1189
|
-
rowspan:
|
|
1190
|
-
colspan:
|
|
1191
|
-
}),
|
|
1192
|
-
for (const
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1184
|
+
element: d,
|
|
1185
|
+
priority: g
|
|
1186
|
+
} = l.dequeue(), h = t - n - Te(d);
|
|
1187
|
+
if (c.push({
|
|
1188
|
+
...d,
|
|
1189
|
+
rowspan: h ?? 1,
|
|
1190
|
+
colspan: d.children ? we(d).length : 1
|
|
1191
|
+
}), d.children)
|
|
1192
|
+
for (const s of d.children) {
|
|
1193
|
+
const i = g % 1 + o / Math.pow(10, n + 2);
|
|
1194
|
+
l.enqueue(s, n + h + i);
|
|
1195
1195
|
}
|
|
1196
|
-
|
|
1196
|
+
o += 1, u -= 1;
|
|
1197
1197
|
}
|
|
1198
|
-
|
|
1198
|
+
n += 1, a.push(c);
|
|
1199
1199
|
}
|
|
1200
1200
|
return {
|
|
1201
|
-
columns: e.map((
|
|
1201
|
+
columns: e.map((u) => we(u)).flat(),
|
|
1202
1202
|
headers: a
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
1205
|
function vt(e) {
|
|
1206
1206
|
const t = [];
|
|
1207
1207
|
for (const a of e) {
|
|
1208
|
-
const
|
|
1208
|
+
const n = {
|
|
1209
1209
|
...Aa(a),
|
|
1210
1210
|
...a
|
|
1211
|
-
},
|
|
1212
|
-
...
|
|
1213
|
-
key:
|
|
1211
|
+
}, l = n.key ?? (typeof n.value == "string" ? n.value : null), r = n.value ?? l ?? null, u = {
|
|
1212
|
+
...n,
|
|
1213
|
+
key: l,
|
|
1214
1214
|
value: r,
|
|
1215
|
-
sortable:
|
|
1216
|
-
children:
|
|
1215
|
+
sortable: n.sortable ?? (n.key != null || !!n.sort),
|
|
1216
|
+
children: n.children ? vt(n.children) : void 0
|
|
1217
1217
|
};
|
|
1218
|
-
t.push(
|
|
1218
|
+
t.push(u);
|
|
1219
1219
|
}
|
|
1220
1220
|
return t;
|
|
1221
1221
|
}
|
|
1222
1222
|
function Ra(e, t) {
|
|
1223
|
-
const a = j([]),
|
|
1223
|
+
const a = j([]), n = j([]), l = j({}), r = j({}), u = j({});
|
|
1224
1224
|
je(() => {
|
|
1225
|
-
const
|
|
1226
|
-
key:
|
|
1227
|
-
title: _t(
|
|
1228
|
-
}))).slice(),
|
|
1229
|
-
t?.groupBy?.value.length && !
|
|
1225
|
+
const d = (e.headers || Object.keys(e.items[0] ?? {}).map((f) => ({
|
|
1226
|
+
key: f,
|
|
1227
|
+
title: _t(f)
|
|
1228
|
+
}))).slice(), g = dt(d);
|
|
1229
|
+
t?.groupBy?.value.length && !g.has("data-table-group") && d.unshift({
|
|
1230
1230
|
key: "data-table-group",
|
|
1231
1231
|
title: "Group"
|
|
1232
|
-
}), t?.showSelect?.value && !
|
|
1232
|
+
}), t?.showSelect?.value && !g.has("data-table-select") && d.unshift({
|
|
1233
1233
|
key: "data-table-select"
|
|
1234
|
-
}), t?.showExpand?.value && !
|
|
1234
|
+
}), t?.showExpand?.value && !g.has("data-table-expand") && d.push({
|
|
1235
1235
|
key: "data-table-expand"
|
|
1236
1236
|
});
|
|
1237
|
-
const
|
|
1238
|
-
Ea(
|
|
1239
|
-
const
|
|
1240
|
-
a.value =
|
|
1241
|
-
const
|
|
1242
|
-
for (const
|
|
1243
|
-
|
|
1237
|
+
const h = vt(d);
|
|
1238
|
+
Ea(h);
|
|
1239
|
+
const s = Math.max(...h.map((f) => Te(f))) + 1, i = Na(h, s);
|
|
1240
|
+
a.value = i.headers, n.value = i.columns;
|
|
1241
|
+
const b = i.headers.flat(1);
|
|
1242
|
+
for (const f of b)
|
|
1243
|
+
f.key && (f.sortable && (f.sort && (l.value[f.key] = f.sort), f.sortRaw && (r.value[f.key] = f.sortRaw)), f.filter && (u.value[f.key] = f.filter));
|
|
1244
1244
|
});
|
|
1245
|
-
const
|
|
1245
|
+
const c = {
|
|
1246
1246
|
headers: a,
|
|
1247
|
-
columns:
|
|
1248
|
-
sortFunctions:
|
|
1247
|
+
columns: n,
|
|
1248
|
+
sortFunctions: l,
|
|
1249
1249
|
sortRawFunctions: r,
|
|
1250
|
-
filterFunctions:
|
|
1250
|
+
filterFunctions: u
|
|
1251
1251
|
};
|
|
1252
|
-
return Y(it,
|
|
1252
|
+
return Y(it, c), c;
|
|
1253
1253
|
}
|
|
1254
1254
|
function ge() {
|
|
1255
1255
|
const e = Q(it);
|
|
@@ -1275,7 +1275,7 @@ const gt = _({
|
|
|
1275
1275
|
/** @deprecated */
|
|
1276
1276
|
sticky: Boolean,
|
|
1277
1277
|
...ae(),
|
|
1278
|
-
...
|
|
1278
|
+
...De(),
|
|
1279
1279
|
...Qt()
|
|
1280
1280
|
}, "VDataTableHeaders"), Ne = $()({
|
|
1281
1281
|
name: "VDataTableHeaders",
|
|
@@ -1285,168 +1285,168 @@ const gt = _({
|
|
|
1285
1285
|
slots: a
|
|
1286
1286
|
} = t;
|
|
1287
1287
|
const {
|
|
1288
|
-
t:
|
|
1288
|
+
t: n
|
|
1289
1289
|
} = Z(), {
|
|
1290
|
-
toggleSort:
|
|
1290
|
+
toggleSort: l,
|
|
1291
1291
|
sortBy: r,
|
|
1292
|
-
isSorted:
|
|
1292
|
+
isSorted: u
|
|
1293
1293
|
} = st(), {
|
|
1294
|
-
someSelected:
|
|
1295
|
-
allSelected:
|
|
1296
|
-
selectAll:
|
|
1297
|
-
showSelectAll:
|
|
1294
|
+
someSelected: c,
|
|
1295
|
+
allSelected: o,
|
|
1296
|
+
selectAll: d,
|
|
1297
|
+
showSelectAll: g
|
|
1298
1298
|
} = ve(), {
|
|
1299
|
-
columns:
|
|
1300
|
-
headers:
|
|
1299
|
+
columns: h,
|
|
1300
|
+
headers: s
|
|
1301
1301
|
} = ge(), {
|
|
1302
|
-
loaderClasses:
|
|
1302
|
+
loaderClasses: i
|
|
1303
1303
|
} = Ut(e);
|
|
1304
|
-
function
|
|
1304
|
+
function b(x, m) {
|
|
1305
1305
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1306
|
-
const
|
|
1306
|
+
const I = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1307
1307
|
return {
|
|
1308
1308
|
position: "sticky",
|
|
1309
|
-
left:
|
|
1310
|
-
right:
|
|
1311
|
-
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${
|
|
1309
|
+
left: I === "start" ? A(x.fixedOffset) : void 0,
|
|
1310
|
+
right: I === "end" ? A(x.fixedEndOffset) : void 0,
|
|
1311
|
+
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${m})` : void 0
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
x.key === "Enter" && !e.disableSort &&
|
|
1314
|
+
function f(x, m) {
|
|
1315
|
+
x.key === "Enter" && !e.disableSort && l(m);
|
|
1316
1316
|
}
|
|
1317
1317
|
function v(x) {
|
|
1318
|
-
const
|
|
1319
|
-
return
|
|
1318
|
+
const m = r.value.find((I) => I.key === x.key);
|
|
1319
|
+
return m ? m.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
|
|
1320
1320
|
}
|
|
1321
1321
|
const {
|
|
1322
|
-
backgroundColorClasses:
|
|
1323
|
-
backgroundColorStyles:
|
|
1322
|
+
backgroundColorClasses: k,
|
|
1323
|
+
backgroundColorStyles: y
|
|
1324
1324
|
} = Je(() => e.color), {
|
|
1325
|
-
displayClasses:
|
|
1326
|
-
mobile:
|
|
1327
|
-
} = fe(e),
|
|
1328
|
-
headers:
|
|
1329
|
-
columns:
|
|
1330
|
-
toggleSort:
|
|
1331
|
-
isSorted:
|
|
1325
|
+
displayClasses: P,
|
|
1326
|
+
mobile: V
|
|
1327
|
+
} = fe(e), w = D(() => ({
|
|
1328
|
+
headers: s.value,
|
|
1329
|
+
columns: h.value,
|
|
1330
|
+
toggleSort: l,
|
|
1331
|
+
isSorted: u,
|
|
1332
1332
|
sortBy: r.value,
|
|
1333
|
-
someSelected:
|
|
1334
|
-
allSelected:
|
|
1335
|
-
selectAll:
|
|
1333
|
+
someSelected: c.value,
|
|
1334
|
+
allSelected: o.value,
|
|
1335
|
+
selectAll: d,
|
|
1336
1336
|
getSortIcon: v
|
|
1337
|
-
})), L =
|
|
1337
|
+
})), L = D(() => ["v-data-table__th", {
|
|
1338
1338
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1339
|
-
},
|
|
1339
|
+
}, P.value, i.value]), N = (x) => {
|
|
1340
1340
|
let {
|
|
1341
|
-
column:
|
|
1342
|
-
x:
|
|
1341
|
+
column: m,
|
|
1342
|
+
x: I,
|
|
1343
1343
|
y: T
|
|
1344
1344
|
} = x;
|
|
1345
|
-
const R =
|
|
1346
|
-
return
|
|
1345
|
+
const R = m.key === "data-table-select" || m.key === "data-table-expand", ne = m.key === "data-table-group" && m.width === 0 && !m.title, be = B(e.headerProps ?? {}, m.headerProps ?? {});
|
|
1346
|
+
return F(te, B({
|
|
1347
1347
|
tag: "th",
|
|
1348
|
-
align:
|
|
1348
|
+
align: m.align,
|
|
1349
1349
|
class: [{
|
|
1350
|
-
"v-data-table__th--sortable":
|
|
1351
|
-
"v-data-table__th--sorted":
|
|
1352
|
-
"v-data-table__th--fixed":
|
|
1350
|
+
"v-data-table__th--sortable": m.sortable && !e.disableSort,
|
|
1351
|
+
"v-data-table__th--sorted": u(m),
|
|
1352
|
+
"v-data-table__th--fixed": m.fixed
|
|
1353
1353
|
}, ...L.value],
|
|
1354
1354
|
style: {
|
|
1355
|
-
width: A(
|
|
1356
|
-
minWidth: A(
|
|
1357
|
-
maxWidth: A(
|
|
1358
|
-
...
|
|
1355
|
+
width: A(m.width),
|
|
1356
|
+
minWidth: A(m.minWidth),
|
|
1357
|
+
maxWidth: A(m.maxWidth),
|
|
1358
|
+
...b(m, T)
|
|
1359
1359
|
},
|
|
1360
|
-
colspan:
|
|
1361
|
-
rowspan:
|
|
1362
|
-
fixed:
|
|
1363
|
-
nowrap:
|
|
1364
|
-
lastFixed:
|
|
1365
|
-
firstFixedEnd:
|
|
1360
|
+
colspan: m.colspan,
|
|
1361
|
+
rowspan: m.rowspan,
|
|
1362
|
+
fixed: m.fixed,
|
|
1363
|
+
nowrap: m.nowrap,
|
|
1364
|
+
lastFixed: m.lastFixed,
|
|
1365
|
+
firstFixedEnd: m.firstFixedEnd,
|
|
1366
1366
|
noPadding: R,
|
|
1367
|
-
empty:
|
|
1368
|
-
tabindex:
|
|
1369
|
-
onClick:
|
|
1370
|
-
onKeydown:
|
|
1367
|
+
empty: ne,
|
|
1368
|
+
tabindex: m.sortable ? 0 : void 0,
|
|
1369
|
+
onClick: m.sortable ? () => l(m) : void 0,
|
|
1370
|
+
onKeydown: m.sortable ? (M) => f(M, m) : void 0
|
|
1371
1371
|
}, be), {
|
|
1372
1372
|
default: () => {
|
|
1373
|
-
const M = `header.${
|
|
1374
|
-
column:
|
|
1375
|
-
selectAll:
|
|
1376
|
-
isSorted:
|
|
1377
|
-
toggleSort:
|
|
1373
|
+
const M = `header.${m.key}`, X = {
|
|
1374
|
+
column: m,
|
|
1375
|
+
selectAll: d,
|
|
1376
|
+
isSorted: u,
|
|
1377
|
+
toggleSort: l,
|
|
1378
1378
|
sortBy: r.value,
|
|
1379
|
-
someSelected:
|
|
1380
|
-
allSelected:
|
|
1379
|
+
someSelected: c.value,
|
|
1380
|
+
allSelected: o.value,
|
|
1381
1381
|
getSortIcon: v
|
|
1382
1382
|
};
|
|
1383
|
-
return a[M] ? a[M](X) :
|
|
1383
|
+
return a[M] ? a[M](X) : ne ? "" : m.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (g.value && F(Ve, {
|
|
1384
1384
|
density: e.density,
|
|
1385
|
-
modelValue:
|
|
1386
|
-
indeterminate:
|
|
1387
|
-
"onUpdate:modelValue":
|
|
1385
|
+
modelValue: o.value,
|
|
1386
|
+
indeterminate: c.value && !o.value,
|
|
1387
|
+
"onUpdate:modelValue": d
|
|
1388
1388
|
}, null)) : S("div", {
|
|
1389
1389
|
class: "v-data-table-header__content"
|
|
1390
|
-
}, [S("span", null, [
|
|
1390
|
+
}, [S("span", null, [m.title]), m.sortable && !e.disableSort && F(Oe, {
|
|
1391
1391
|
key: "icon",
|
|
1392
1392
|
class: "v-data-table-header__sort-icon",
|
|
1393
|
-
icon: v(
|
|
1394
|
-
}, null), e.multiSort &&
|
|
1393
|
+
icon: v(m)
|
|
1394
|
+
}, null), e.multiSort && u(m) && S("div", {
|
|
1395
1395
|
key: "badge",
|
|
1396
|
-
class: G(["v-data-table-header__sort-badge", ...
|
|
1397
|
-
style:
|
|
1398
|
-
}, [r.value.findIndex((he) => he.key ===
|
|
1396
|
+
class: G(["v-data-table-header__sort-badge", ...k.value]),
|
|
1397
|
+
style: ke(y.value)
|
|
1398
|
+
}, [r.value.findIndex((he) => he.key === m.key) + 1])]);
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}, p = () => {
|
|
1402
|
-
const x =
|
|
1403
|
-
if (
|
|
1404
|
-
return
|
|
1402
|
+
const x = D(() => h.value.filter((I) => I?.sortable && !e.disableSort)), m = D(() => {
|
|
1403
|
+
if (h.value.find((T) => T.key === "data-table-select") != null)
|
|
1404
|
+
return o.value ? "$checkboxOn" : c.value ? "$checkboxIndeterminate" : "$checkboxOff";
|
|
1405
1405
|
});
|
|
1406
|
-
return
|
|
1406
|
+
return F(te, B({
|
|
1407
1407
|
tag: "th",
|
|
1408
1408
|
class: [...L.value],
|
|
1409
|
-
colspan:
|
|
1409
|
+
colspan: s.value.length + 1
|
|
1410
1410
|
}, e.headerProps), {
|
|
1411
1411
|
default: () => [S("div", {
|
|
1412
1412
|
class: "v-data-table-header__content"
|
|
1413
|
-
}, [
|
|
1413
|
+
}, [F(Qe, {
|
|
1414
1414
|
chips: !0,
|
|
1415
1415
|
class: "v-data-table__td-sort-select",
|
|
1416
1416
|
clearable: !0,
|
|
1417
1417
|
density: "default",
|
|
1418
1418
|
items: x.value,
|
|
1419
|
-
label:
|
|
1419
|
+
label: n("$vuetify.dataTable.sortBy"),
|
|
1420
1420
|
multiple: e.multiSort,
|
|
1421
1421
|
variant: "underlined",
|
|
1422
1422
|
"onClick:clear": () => r.value = [],
|
|
1423
|
-
appendIcon:
|
|
1424
|
-
"onClick:append": () =>
|
|
1423
|
+
appendIcon: m.value,
|
|
1424
|
+
"onClick:append": () => d(!o.value)
|
|
1425
1425
|
}, {
|
|
1426
|
-
chip: (
|
|
1427
|
-
onClick:
|
|
1426
|
+
chip: (I) => F(ta, {
|
|
1427
|
+
onClick: I.item.raw?.sortable ? () => l(I.item.raw) : void 0,
|
|
1428
1428
|
onMousedown: (T) => {
|
|
1429
1429
|
T.preventDefault(), T.stopPropagation();
|
|
1430
1430
|
}
|
|
1431
1431
|
}, {
|
|
1432
|
-
default: () => [
|
|
1433
|
-
class: G(["v-data-table__td-sort-icon",
|
|
1434
|
-
icon: v(
|
|
1432
|
+
default: () => [I.item.title, F(Oe, {
|
|
1433
|
+
class: G(["v-data-table__td-sort-icon", u(I.item.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1434
|
+
icon: v(I.item.raw),
|
|
1435
1435
|
size: "small"
|
|
1436
1436
|
}, null)]
|
|
1437
1437
|
})
|
|
1438
1438
|
})])]
|
|
1439
1439
|
});
|
|
1440
1440
|
};
|
|
1441
|
-
K(() =>
|
|
1442
|
-
column:
|
|
1441
|
+
K(() => V.value ? S("tr", null, [F(p, null, null)]) : S(U, null, [a.headers ? a.headers(w.value) : s.value.map((x, m) => S("tr", null, [x.map((I, T) => F(N, {
|
|
1442
|
+
column: I,
|
|
1443
1443
|
x: T,
|
|
1444
|
-
y:
|
|
1444
|
+
y: m
|
|
1445
1445
|
}, null))])), e.loading && S("tr", {
|
|
1446
1446
|
class: "v-data-table-progress"
|
|
1447
1447
|
}, [S("th", {
|
|
1448
|
-
colspan:
|
|
1449
|
-
}, [
|
|
1448
|
+
colspan: h.value.length
|
|
1449
|
+
}, [F(Jt, {
|
|
1450
1450
|
name: "v-data-table-progress",
|
|
1451
1451
|
absolute: !0,
|
|
1452
1452
|
active: !0,
|
|
@@ -1478,59 +1478,59 @@ const gt = _({
|
|
|
1478
1478
|
slots: a
|
|
1479
1479
|
} = t;
|
|
1480
1480
|
const {
|
|
1481
|
-
isGroupOpen:
|
|
1482
|
-
toggleGroup:
|
|
1481
|
+
isGroupOpen: n,
|
|
1482
|
+
toggleGroup: l,
|
|
1483
1483
|
extractRows: r
|
|
1484
1484
|
} = qe(), {
|
|
1485
|
-
isSelected:
|
|
1486
|
-
isSomeSelected:
|
|
1487
|
-
select:
|
|
1485
|
+
isSelected: u,
|
|
1486
|
+
isSomeSelected: c,
|
|
1487
|
+
select: o
|
|
1488
1488
|
} = ve(), {
|
|
1489
|
-
columns:
|
|
1490
|
-
} = ge(),
|
|
1489
|
+
columns: d
|
|
1490
|
+
} = ge(), g = D(() => r([e.item])), h = C(() => d.value.length - (d.value.some((s) => s.key === "data-table-select") ? 1 : 0));
|
|
1491
1491
|
return () => S("tr", {
|
|
1492
1492
|
class: "v-data-table-group-header-row",
|
|
1493
1493
|
style: {
|
|
1494
1494
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
1495
1495
|
}
|
|
1496
|
-
}, [
|
|
1497
|
-
if (
|
|
1498
|
-
const
|
|
1496
|
+
}, [d.value.map((s) => {
|
|
1497
|
+
if (s.key === "data-table-group") {
|
|
1498
|
+
const i = n(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => l(e.item);
|
|
1499
1499
|
return a["data-table-group"]?.({
|
|
1500
1500
|
item: e.item,
|
|
1501
|
-
count:
|
|
1501
|
+
count: g.value.length,
|
|
1502
1502
|
props: {
|
|
1503
|
-
icon:
|
|
1504
|
-
onClick:
|
|
1503
|
+
icon: i,
|
|
1504
|
+
onClick: b
|
|
1505
1505
|
}
|
|
1506
|
-
}) ??
|
|
1506
|
+
}) ?? F(te, {
|
|
1507
1507
|
class: "v-data-table-group-header-row__column",
|
|
1508
|
-
colspan:
|
|
1508
|
+
colspan: h.value
|
|
1509
1509
|
}, {
|
|
1510
|
-
default: () => [
|
|
1510
|
+
default: () => [F(W, {
|
|
1511
1511
|
size: "small",
|
|
1512
1512
|
variant: "text",
|
|
1513
|
-
icon:
|
|
1514
|
-
onClick:
|
|
1515
|
-
}, null), S("span", null, [e.item.value]), S("span", null, [_e("("),
|
|
1513
|
+
icon: i,
|
|
1514
|
+
onClick: b
|
|
1515
|
+
}, null), S("span", null, [e.item.value]), S("span", null, [_e("("), g.value.length, _e(")")])]
|
|
1516
1516
|
});
|
|
1517
|
-
} else if (
|
|
1518
|
-
const
|
|
1517
|
+
} else if (s.key === "data-table-select") {
|
|
1518
|
+
const i = u(g.value), b = c(g.value) && !i, f = (v) => o(g.value, v);
|
|
1519
1519
|
return a["data-table-select"]?.({
|
|
1520
1520
|
props: {
|
|
1521
|
-
modelValue:
|
|
1522
|
-
indeterminate:
|
|
1523
|
-
"onUpdate:modelValue":
|
|
1521
|
+
modelValue: i,
|
|
1522
|
+
indeterminate: b,
|
|
1523
|
+
"onUpdate:modelValue": f
|
|
1524
1524
|
}
|
|
1525
|
-
}) ??
|
|
1525
|
+
}) ?? F(te, {
|
|
1526
1526
|
class: "v-data-table__td--select-row",
|
|
1527
1527
|
noPadding: !0
|
|
1528
1528
|
}, {
|
|
1529
|
-
default: () => [
|
|
1529
|
+
default: () => [F(Ve, {
|
|
1530
1530
|
density: e.density,
|
|
1531
|
-
modelValue:
|
|
1532
|
-
indeterminate:
|
|
1533
|
-
"onUpdate:modelValue":
|
|
1531
|
+
modelValue: i,
|
|
1532
|
+
indeterminate: b,
|
|
1533
|
+
"onUpdate:modelValue": f
|
|
1534
1534
|
}, null)]
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
@@ -1553,7 +1553,7 @@ const gt = _({
|
|
|
1553
1553
|
onContextmenu: pe(),
|
|
1554
1554
|
onDblclick: pe(),
|
|
1555
1555
|
...ae(),
|
|
1556
|
-
...
|
|
1556
|
+
...De()
|
|
1557
1557
|
}, "VDataTableRow"), Ma = $()({
|
|
1558
1558
|
name: "VDataTableRow",
|
|
1559
1559
|
props: bt(),
|
|
@@ -1562,64 +1562,64 @@ const gt = _({
|
|
|
1562
1562
|
slots: a
|
|
1563
1563
|
} = t;
|
|
1564
1564
|
const {
|
|
1565
|
-
displayClasses:
|
|
1566
|
-
mobile:
|
|
1565
|
+
displayClasses: n,
|
|
1566
|
+
mobile: l
|
|
1567
1567
|
} = fe(e, "v-data-table__tr"), {
|
|
1568
1568
|
isSelected: r,
|
|
1569
|
-
toggleSelect:
|
|
1570
|
-
someSelected:
|
|
1571
|
-
allSelected:
|
|
1572
|
-
selectAll:
|
|
1569
|
+
toggleSelect: u,
|
|
1570
|
+
someSelected: c,
|
|
1571
|
+
allSelected: o,
|
|
1572
|
+
selectAll: d
|
|
1573
1573
|
} = ve(), {
|
|
1574
|
-
isExpanded:
|
|
1575
|
-
toggleExpand:
|
|
1574
|
+
isExpanded: g,
|
|
1575
|
+
toggleExpand: h
|
|
1576
1576
|
} = Ye(), {
|
|
1577
|
-
toggleSort:
|
|
1578
|
-
sortBy:
|
|
1579
|
-
isSorted:
|
|
1577
|
+
toggleSort: s,
|
|
1578
|
+
sortBy: i,
|
|
1579
|
+
isSorted: b
|
|
1580
1580
|
} = st(), {
|
|
1581
|
-
columns:
|
|
1581
|
+
columns: f
|
|
1582
1582
|
} = ge();
|
|
1583
1583
|
K(() => S("tr", {
|
|
1584
1584
|
class: G(["v-data-table__tr", {
|
|
1585
1585
|
"v-data-table__tr--clickable": !!(e.onClick || e.onContextmenu || e.onDblclick)
|
|
1586
|
-
},
|
|
1586
|
+
}, n.value]),
|
|
1587
1587
|
onClick: e.onClick,
|
|
1588
1588
|
onContextmenu: e.onContextmenu,
|
|
1589
1589
|
onDblclick: e.onDblclick
|
|
1590
|
-
}, [e.item &&
|
|
1591
|
-
const
|
|
1590
|
+
}, [e.item && f.value.map((v, k) => {
|
|
1591
|
+
const y = e.item, P = `item.${v.key}`, V = `header.${v.key}`, w = {
|
|
1592
1592
|
index: e.index,
|
|
1593
|
-
item:
|
|
1594
|
-
internalItem:
|
|
1595
|
-
value: de(
|
|
1593
|
+
item: y.raw,
|
|
1594
|
+
internalItem: y,
|
|
1595
|
+
value: de(y.columns, v.key),
|
|
1596
1596
|
column: v,
|
|
1597
1597
|
isSelected: r,
|
|
1598
|
-
toggleSelect:
|
|
1599
|
-
isExpanded:
|
|
1600
|
-
toggleExpand:
|
|
1598
|
+
toggleSelect: u,
|
|
1599
|
+
isExpanded: g,
|
|
1600
|
+
toggleExpand: h
|
|
1601
1601
|
}, L = {
|
|
1602
1602
|
column: v,
|
|
1603
|
-
selectAll:
|
|
1604
|
-
isSorted:
|
|
1605
|
-
toggleSort:
|
|
1606
|
-
sortBy:
|
|
1607
|
-
someSelected:
|
|
1608
|
-
allSelected:
|
|
1603
|
+
selectAll: d,
|
|
1604
|
+
isSorted: b,
|
|
1605
|
+
toggleSort: s,
|
|
1606
|
+
sortBy: i.value,
|
|
1607
|
+
someSelected: c.value,
|
|
1608
|
+
allSelected: o.value,
|
|
1609
1609
|
getSortIcon: () => ""
|
|
1610
1610
|
}, N = typeof e.cellProps == "function" ? e.cellProps({
|
|
1611
|
-
index:
|
|
1612
|
-
item:
|
|
1613
|
-
internalItem:
|
|
1614
|
-
value:
|
|
1611
|
+
index: w.index,
|
|
1612
|
+
item: w.item,
|
|
1613
|
+
internalItem: w.internalItem,
|
|
1614
|
+
value: w.value,
|
|
1615
1615
|
column: v
|
|
1616
1616
|
}) : e.cellProps, p = typeof v.cellProps == "function" ? v.cellProps({
|
|
1617
|
-
index:
|
|
1618
|
-
item:
|
|
1619
|
-
internalItem:
|
|
1620
|
-
value:
|
|
1621
|
-
}) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand",
|
|
1622
|
-
return
|
|
1617
|
+
index: w.index,
|
|
1618
|
+
item: w.item,
|
|
1619
|
+
internalItem: w.internalItem,
|
|
1620
|
+
value: w.value
|
|
1621
|
+
}) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand", m = v.key === "data-table-group" && v.width === 0 && !v.title;
|
|
1622
|
+
return F(te, B({
|
|
1623
1623
|
align: v.align,
|
|
1624
1624
|
indent: v.intent,
|
|
1625
1625
|
class: {
|
|
@@ -1631,49 +1631,49 @@ const gt = _({
|
|
|
1631
1631
|
fixedEndOffset: v.fixedEndOffset,
|
|
1632
1632
|
lastFixed: v.lastFixed,
|
|
1633
1633
|
firstFixedEnd: v.firstFixedEnd,
|
|
1634
|
-
maxWidth:
|
|
1634
|
+
maxWidth: l.value ? void 0 : v.maxWidth,
|
|
1635
1635
|
noPadding: x,
|
|
1636
|
-
empty:
|
|
1636
|
+
empty: m,
|
|
1637
1637
|
nowrap: v.nowrap,
|
|
1638
|
-
width:
|
|
1638
|
+
width: l.value ? void 0 : v.width
|
|
1639
1639
|
}, N, p), {
|
|
1640
1640
|
default: () => {
|
|
1641
1641
|
if (v.key === "data-table-select")
|
|
1642
1642
|
return a["item.data-table-select"]?.({
|
|
1643
|
-
...
|
|
1643
|
+
...w,
|
|
1644
1644
|
props: {
|
|
1645
|
-
disabled: !
|
|
1646
|
-
modelValue: r([
|
|
1647
|
-
onClick: re(() =>
|
|
1645
|
+
disabled: !y.selectable,
|
|
1646
|
+
modelValue: r([y]),
|
|
1647
|
+
onClick: re(() => u(y), ["stop"])
|
|
1648
1648
|
}
|
|
1649
|
-
}) ??
|
|
1650
|
-
disabled: !
|
|
1649
|
+
}) ?? F(Ve, {
|
|
1650
|
+
disabled: !y.selectable,
|
|
1651
1651
|
density: e.density,
|
|
1652
|
-
modelValue: r([
|
|
1653
|
-
onClick: re((T) =>
|
|
1652
|
+
modelValue: r([y]),
|
|
1653
|
+
onClick: re((T) => u(y, e.index, T), ["stop"])
|
|
1654
1654
|
}, null);
|
|
1655
1655
|
if (v.key === "data-table-expand")
|
|
1656
1656
|
return a["item.data-table-expand"]?.({
|
|
1657
|
-
...
|
|
1657
|
+
...w,
|
|
1658
1658
|
props: {
|
|
1659
|
-
icon:
|
|
1659
|
+
icon: g(y) ? e.collapseIcon : e.expandIcon,
|
|
1660
1660
|
size: "small",
|
|
1661
1661
|
variant: "text",
|
|
1662
|
-
onClick: re(() =>
|
|
1662
|
+
onClick: re(() => h(y), ["stop"])
|
|
1663
1663
|
}
|
|
1664
|
-
}) ??
|
|
1665
|
-
icon:
|
|
1664
|
+
}) ?? F(W, {
|
|
1665
|
+
icon: g(y) ? e.collapseIcon : e.expandIcon,
|
|
1666
1666
|
size: "small",
|
|
1667
1667
|
variant: "text",
|
|
1668
|
-
onClick: re(() =>
|
|
1668
|
+
onClick: re(() => h(y), ["stop"])
|
|
1669
1669
|
}, null);
|
|
1670
|
-
if (a[
|
|
1671
|
-
const
|
|
1672
|
-
return
|
|
1670
|
+
if (a[P] && !l.value) return a[P](w);
|
|
1671
|
+
const I = Bt(w.value);
|
|
1672
|
+
return l.value ? S(U, null, [S("div", {
|
|
1673
1673
|
class: "v-data-table__td-title"
|
|
1674
|
-
}, [a[
|
|
1674
|
+
}, [a[V]?.(L) ?? v.title]), S("div", {
|
|
1675
1675
|
class: "v-data-table__td-value"
|
|
1676
|
-
}, [a[
|
|
1676
|
+
}, [a[P]?.(w) ?? I])]) : I;
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
1679
|
})]));
|
|
@@ -1697,7 +1697,7 @@ const gt = _({
|
|
|
1697
1697
|
cellProps: [Object, Function],
|
|
1698
1698
|
...Pe(bt(), ["collapseIcon", "expandIcon", "density"]),
|
|
1699
1699
|
...Pe(mt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
|
|
1700
|
-
...
|
|
1700
|
+
...De()
|
|
1701
1701
|
}, "VDataTableRows"), Re = $()({
|
|
1702
1702
|
name: "VDataTableRows",
|
|
1703
1703
|
inheritAttrs: !1,
|
|
@@ -1705,96 +1705,96 @@ const gt = _({
|
|
|
1705
1705
|
setup(e, t) {
|
|
1706
1706
|
let {
|
|
1707
1707
|
attrs: a,
|
|
1708
|
-
slots:
|
|
1708
|
+
slots: n
|
|
1709
1709
|
} = t;
|
|
1710
1710
|
const {
|
|
1711
|
-
columns:
|
|
1711
|
+
columns: l
|
|
1712
1712
|
} = ge(), {
|
|
1713
1713
|
expandOnClick: r,
|
|
1714
|
-
toggleExpand:
|
|
1715
|
-
isExpanded:
|
|
1714
|
+
toggleExpand: u,
|
|
1715
|
+
isExpanded: c
|
|
1716
1716
|
} = Ye(), {
|
|
1717
|
-
isSelected:
|
|
1718
|
-
toggleSelect:
|
|
1717
|
+
isSelected: o,
|
|
1718
|
+
toggleSelect: d
|
|
1719
1719
|
} = ve(), {
|
|
1720
|
-
toggleGroup:
|
|
1721
|
-
isGroupOpen:
|
|
1720
|
+
toggleGroup: g,
|
|
1721
|
+
isGroupOpen: h
|
|
1722
1722
|
} = qe(), {
|
|
1723
|
-
t:
|
|
1723
|
+
t: s
|
|
1724
1724
|
} = Z(), {
|
|
1725
|
-
mobile:
|
|
1725
|
+
mobile: i
|
|
1726
1726
|
} = fe(e);
|
|
1727
1727
|
return K(() => {
|
|
1728
|
-
const
|
|
1729
|
-
return e.loading && (!e.items.length ||
|
|
1728
|
+
const b = Pe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
1729
|
+
return e.loading && (!e.items.length || n.loading) ? S("tr", {
|
|
1730
1730
|
class: "v-data-table-rows-loading",
|
|
1731
1731
|
key: "loading"
|
|
1732
1732
|
}, [S("td", {
|
|
1733
|
-
colspan:
|
|
1734
|
-
}, [
|
|
1733
|
+
colspan: l.value.length
|
|
1734
|
+
}, [n.loading?.() ?? s(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
|
|
1735
1735
|
class: "v-data-table-rows-no-data",
|
|
1736
1736
|
key: "no-data"
|
|
1737
1737
|
}, [S("td", {
|
|
1738
|
-
colspan:
|
|
1739
|
-
}, [
|
|
1740
|
-
if (
|
|
1741
|
-
const
|
|
1738
|
+
colspan: l.value.length
|
|
1739
|
+
}, [n["no-data"]?.() ?? s(e.noDataText)])]) : S(U, null, [e.items.map((f, v) => {
|
|
1740
|
+
if (f.type === "group") {
|
|
1741
|
+
const P = {
|
|
1742
1742
|
index: v,
|
|
1743
|
-
item:
|
|
1744
|
-
columns:
|
|
1745
|
-
isExpanded:
|
|
1746
|
-
toggleExpand:
|
|
1747
|
-
isSelected:
|
|
1748
|
-
toggleSelect:
|
|
1749
|
-
toggleGroup:
|
|
1750
|
-
isGroupOpen:
|
|
1743
|
+
item: f,
|
|
1744
|
+
columns: l.value,
|
|
1745
|
+
isExpanded: c,
|
|
1746
|
+
toggleExpand: u,
|
|
1747
|
+
isSelected: o,
|
|
1748
|
+
toggleSelect: d,
|
|
1749
|
+
toggleGroup: g,
|
|
1750
|
+
isGroupOpen: h
|
|
1751
1751
|
};
|
|
1752
|
-
return
|
|
1753
|
-
key: `group-header_${
|
|
1754
|
-
item:
|
|
1755
|
-
}, Le(a, ":groupHeader", () =>
|
|
1752
|
+
return n["group-header"] ? n["group-header"](P) : F($a, B({
|
|
1753
|
+
key: `group-header_${f.id}`,
|
|
1754
|
+
item: f
|
|
1755
|
+
}, Le(a, ":groupHeader", () => P), b), n);
|
|
1756
1756
|
}
|
|
1757
|
-
if (
|
|
1758
|
-
const
|
|
1757
|
+
if (f.type === "group-summary") {
|
|
1758
|
+
const P = {
|
|
1759
1759
|
index: v,
|
|
1760
|
-
item:
|
|
1761
|
-
columns:
|
|
1762
|
-
toggleGroup:
|
|
1760
|
+
item: f,
|
|
1761
|
+
columns: l.value,
|
|
1762
|
+
toggleGroup: g
|
|
1763
1763
|
};
|
|
1764
|
-
return
|
|
1764
|
+
return n["group-summary"]?.(P) ?? "";
|
|
1765
1765
|
}
|
|
1766
|
-
const
|
|
1766
|
+
const k = {
|
|
1767
1767
|
index: v,
|
|
1768
|
-
item:
|
|
1769
|
-
internalItem:
|
|
1770
|
-
columns:
|
|
1771
|
-
isExpanded:
|
|
1772
|
-
toggleExpand:
|
|
1773
|
-
isSelected:
|
|
1774
|
-
toggleSelect:
|
|
1775
|
-
},
|
|
1776
|
-
...
|
|
1768
|
+
item: f.raw,
|
|
1769
|
+
internalItem: f,
|
|
1770
|
+
columns: l.value,
|
|
1771
|
+
isExpanded: c,
|
|
1772
|
+
toggleExpand: u,
|
|
1773
|
+
isSelected: o,
|
|
1774
|
+
toggleSelect: d
|
|
1775
|
+
}, y = {
|
|
1776
|
+
...k,
|
|
1777
1777
|
props: B({
|
|
1778
|
-
key: `item_${
|
|
1778
|
+
key: `item_${f.key ?? f.index}`,
|
|
1779
1779
|
onClick: r.value ? () => {
|
|
1780
|
-
|
|
1780
|
+
u(f);
|
|
1781
1781
|
} : void 0,
|
|
1782
1782
|
index: v,
|
|
1783
|
-
item:
|
|
1783
|
+
item: f,
|
|
1784
1784
|
cellProps: e.cellProps,
|
|
1785
1785
|
collapseIcon: e.collapseIcon,
|
|
1786
1786
|
expandIcon: e.expandIcon,
|
|
1787
1787
|
density: e.density,
|
|
1788
|
-
mobile:
|
|
1789
|
-
}, Le(a, ":row", () =>
|
|
1790
|
-
item:
|
|
1791
|
-
index:
|
|
1792
|
-
internalItem:
|
|
1788
|
+
mobile: i.value
|
|
1789
|
+
}, Le(a, ":row", () => k), typeof e.rowProps == "function" ? e.rowProps({
|
|
1790
|
+
item: k.item,
|
|
1791
|
+
index: k.index,
|
|
1792
|
+
internalItem: k.internalItem
|
|
1793
1793
|
}) : e.rowProps)
|
|
1794
1794
|
};
|
|
1795
1795
|
return S(U, {
|
|
1796
|
-
key:
|
|
1797
|
-
}, [
|
|
1796
|
+
key: y.props.key
|
|
1797
|
+
}, [n.item ? n.item(y) : F(Ma, y.props, n), c(f) && n["expanded-row"]?.(k)]);
|
|
1798
1798
|
})]);
|
|
1799
1799
|
}), {};
|
|
1800
1800
|
}
|
|
@@ -1818,14 +1818,14 @@ const gt = _({
|
|
|
1818
1818
|
setup(e, t) {
|
|
1819
1819
|
let {
|
|
1820
1820
|
slots: a,
|
|
1821
|
-
emit:
|
|
1821
|
+
emit: n
|
|
1822
1822
|
} = t;
|
|
1823
1823
|
const {
|
|
1824
|
-
themeClasses:
|
|
1824
|
+
themeClasses: l
|
|
1825
1825
|
} = Ie(e), {
|
|
1826
1826
|
densityClasses: r
|
|
1827
1827
|
} = Xt(e);
|
|
1828
|
-
return K(() =>
|
|
1828
|
+
return K(() => F(e.tag, {
|
|
1829
1829
|
class: G(["v-table", {
|
|
1830
1830
|
"v-table--fixed-height": !!e.height,
|
|
1831
1831
|
"v-table--fixed-header": e.fixedHeader,
|
|
@@ -1835,8 +1835,8 @@ const gt = _({
|
|
|
1835
1835
|
"v-table--hover": e.hover,
|
|
1836
1836
|
"v-table--striped-even": e.striped === "even",
|
|
1837
1837
|
"v-table--striped-odd": e.striped === "odd"
|
|
1838
|
-
},
|
|
1839
|
-
style:
|
|
1838
|
+
}, l.value, r.value, e.class]),
|
|
1839
|
+
style: ke(e.style)
|
|
1840
1840
|
}, {
|
|
1841
1841
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1842
1842
|
class: "v-table__wrapper",
|
|
@@ -1863,24 +1863,24 @@ const gt = _({
|
|
|
1863
1863
|
cellProps: [Object, Function],
|
|
1864
1864
|
returnObject: Boolean
|
|
1865
1865
|
}, "DataTable-items");
|
|
1866
|
-
function ja(e, t, a,
|
|
1867
|
-
const
|
|
1866
|
+
function ja(e, t, a, n) {
|
|
1867
|
+
const l = e.returnObject ? t : ee(t, e.itemValue), r = ee(t, e.itemSelectable, !0), u = n.reduce((c, o) => (o.key != null && (c[o.key] = ee(t, o.value)), c), {});
|
|
1868
1868
|
return {
|
|
1869
1869
|
type: "item",
|
|
1870
|
-
key: e.returnObject ? ee(t, e.itemValue) :
|
|
1870
|
+
key: e.returnObject ? ee(t, e.itemValue) : l,
|
|
1871
1871
|
index: a,
|
|
1872
|
-
value:
|
|
1872
|
+
value: l,
|
|
1873
1873
|
selectable: r,
|
|
1874
|
-
columns:
|
|
1874
|
+
columns: u,
|
|
1875
1875
|
raw: t
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
1878
|
function Ga(e, t, a) {
|
|
1879
|
-
return t.map((
|
|
1879
|
+
return t.map((n, l) => ja(e, n, l, a));
|
|
1880
1880
|
}
|
|
1881
1881
|
function Ka(e, t) {
|
|
1882
1882
|
return {
|
|
1883
|
-
items:
|
|
1883
|
+
items: D(() => Ga(e, e.items, t.value))
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
1886
|
const Wa = _({
|
|
@@ -1894,7 +1894,7 @@ const Wa = _({
|
|
|
1894
1894
|
...da(),
|
|
1895
1895
|
...Ba(),
|
|
1896
1896
|
...Ha(),
|
|
1897
|
-
...
|
|
1897
|
+
...wa(),
|
|
1898
1898
|
...Ia(),
|
|
1899
1899
|
...gt(),
|
|
1900
1900
|
...yt()
|
|
@@ -1903,7 +1903,7 @@ const Wa = _({
|
|
|
1903
1903
|
...Wa(),
|
|
1904
1904
|
...ra(),
|
|
1905
1905
|
...ot()
|
|
1906
|
-
}, "VDataTable"),
|
|
1906
|
+
}, "VDataTable"), tn = $()({
|
|
1907
1907
|
name: "VDataTable",
|
|
1908
1908
|
props: za(),
|
|
1909
1909
|
emits: {
|
|
@@ -1919,100 +1919,100 @@ const Wa = _({
|
|
|
1919
1919
|
setup(e, t) {
|
|
1920
1920
|
let {
|
|
1921
1921
|
attrs: a,
|
|
1922
|
-
slots:
|
|
1922
|
+
slots: n
|
|
1923
1923
|
} = t;
|
|
1924
1924
|
const {
|
|
1925
|
-
groupBy:
|
|
1925
|
+
groupBy: l
|
|
1926
1926
|
} = ca(e), {
|
|
1927
1927
|
sortBy: r,
|
|
1928
|
-
multiSort:
|
|
1929
|
-
mustSort:
|
|
1928
|
+
multiSort: u,
|
|
1929
|
+
mustSort: c
|
|
1930
1930
|
} = Fa(e), {
|
|
1931
|
-
page:
|
|
1932
|
-
itemsPerPage:
|
|
1931
|
+
page: o,
|
|
1932
|
+
itemsPerPage: d
|
|
1933
1933
|
} = ha(e), {
|
|
1934
|
-
disableSort:
|
|
1934
|
+
disableSort: g
|
|
1935
1935
|
} = Ot(e), {
|
|
1936
|
-
columns:
|
|
1937
|
-
headers:
|
|
1938
|
-
sortFunctions:
|
|
1939
|
-
sortRawFunctions:
|
|
1940
|
-
filterFunctions:
|
|
1936
|
+
columns: h,
|
|
1937
|
+
headers: s,
|
|
1938
|
+
sortFunctions: i,
|
|
1939
|
+
sortRawFunctions: b,
|
|
1940
|
+
filterFunctions: f
|
|
1941
1941
|
} = Ra(e, {
|
|
1942
|
-
groupBy:
|
|
1942
|
+
groupBy: l,
|
|
1943
1943
|
showSelect: C(() => e.showSelect),
|
|
1944
1944
|
showExpand: C(() => e.showExpand)
|
|
1945
1945
|
}), {
|
|
1946
1946
|
items: v
|
|
1947
|
-
} = Ka(e,
|
|
1948
|
-
filteredItems:
|
|
1949
|
-
} = oa(e, v,
|
|
1947
|
+
} = Ka(e, h), k = C(() => e.search), {
|
|
1948
|
+
filteredItems: y
|
|
1949
|
+
} = oa(e, v, k, {
|
|
1950
1950
|
transform: (H) => H.columns,
|
|
1951
|
-
customKeyFilter:
|
|
1951
|
+
customKeyFilter: f
|
|
1952
1952
|
}), {
|
|
1953
|
-
toggleSort:
|
|
1954
|
-
} =
|
|
1953
|
+
toggleSort: P
|
|
1954
|
+
} = Da({
|
|
1955
1955
|
sortBy: r,
|
|
1956
|
-
multiSort:
|
|
1957
|
-
mustSort:
|
|
1958
|
-
page:
|
|
1956
|
+
multiSort: u,
|
|
1957
|
+
mustSort: c,
|
|
1958
|
+
page: o
|
|
1959
1959
|
}), {
|
|
1960
|
-
sortByWithGroups:
|
|
1961
|
-
opened:
|
|
1960
|
+
sortByWithGroups: V,
|
|
1961
|
+
opened: w,
|
|
1962
1962
|
extractRows: L,
|
|
1963
1963
|
isGroupOpen: N,
|
|
1964
1964
|
toggleGroup: p
|
|
1965
1965
|
} = fa({
|
|
1966
|
-
groupBy:
|
|
1966
|
+
groupBy: l,
|
|
1967
1967
|
sortBy: r,
|
|
1968
|
-
disableSort:
|
|
1968
|
+
disableSort: g
|
|
1969
1969
|
}), {
|
|
1970
1970
|
sortedItems: x
|
|
1971
|
-
} =
|
|
1971
|
+
} = Va(e, y, V, {
|
|
1972
1972
|
transform: (H) => ({
|
|
1973
1973
|
...H.raw,
|
|
1974
1974
|
...H.columns
|
|
1975
1975
|
}),
|
|
1976
|
-
sortFunctions:
|
|
1977
|
-
sortRawFunctions:
|
|
1976
|
+
sortFunctions: i,
|
|
1977
|
+
sortRawFunctions: b
|
|
1978
1978
|
}), {
|
|
1979
|
-
flatItems:
|
|
1980
|
-
} = ga(x,
|
|
1979
|
+
flatItems: m
|
|
1980
|
+
} = ga(x, l, w, () => !!n["group-summary"]), I = D(() => m.value.length), {
|
|
1981
1981
|
startIndex: T,
|
|
1982
1982
|
stopIndex: R,
|
|
1983
|
-
pageCount:
|
|
1983
|
+
pageCount: ne,
|
|
1984
1984
|
setItemsPerPage: be
|
|
1985
1985
|
} = ya({
|
|
1986
|
-
page:
|
|
1987
|
-
itemsPerPage:
|
|
1988
|
-
itemsLength:
|
|
1986
|
+
page: o,
|
|
1987
|
+
itemsPerPage: d,
|
|
1988
|
+
itemsLength: I
|
|
1989
1989
|
}), {
|
|
1990
1990
|
paginatedItems: M
|
|
1991
1991
|
} = xa({
|
|
1992
|
-
items:
|
|
1992
|
+
items: m,
|
|
1993
1993
|
startIndex: T,
|
|
1994
1994
|
stopIndex: R,
|
|
1995
|
-
itemsPerPage:
|
|
1996
|
-
}), X =
|
|
1995
|
+
itemsPerPage: d
|
|
1996
|
+
}), X = D(() => L(M.value)), {
|
|
1997
1997
|
isSelected: he,
|
|
1998
1998
|
select: pt,
|
|
1999
1999
|
selectAll: xt,
|
|
2000
2000
|
toggleSelect: St,
|
|
2001
2001
|
someSelected: Pt,
|
|
2002
|
-
allSelected:
|
|
2003
|
-
} =
|
|
2002
|
+
allSelected: wt
|
|
2003
|
+
} = ka(e, {
|
|
2004
2004
|
allItems: v,
|
|
2005
2005
|
currentPage: X
|
|
2006
2006
|
}), {
|
|
2007
|
-
isExpanded:
|
|
2007
|
+
isExpanded: kt,
|
|
2008
2008
|
toggleExpand: It
|
|
2009
2009
|
} = ua(e);
|
|
2010
2010
|
ma({
|
|
2011
|
-
page:
|
|
2012
|
-
itemsPerPage:
|
|
2011
|
+
page: o,
|
|
2012
|
+
itemsPerPage: d,
|
|
2013
2013
|
sortBy: r,
|
|
2014
|
-
groupBy:
|
|
2015
|
-
search:
|
|
2014
|
+
groupBy: l,
|
|
2015
|
+
search: k
|
|
2016
2016
|
}), Se({
|
|
2017
2017
|
VDataTableRows: {
|
|
2018
2018
|
hideNoData: C(() => e.hideNoData),
|
|
@@ -2021,48 +2021,48 @@ const Wa = _({
|
|
|
2021
2021
|
loadingText: C(() => e.loadingText)
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
|
-
const E =
|
|
2025
|
-
page:
|
|
2026
|
-
itemsPerPage:
|
|
2024
|
+
const E = D(() => ({
|
|
2025
|
+
page: o.value,
|
|
2026
|
+
itemsPerPage: d.value,
|
|
2027
2027
|
sortBy: r.value,
|
|
2028
|
-
pageCount:
|
|
2029
|
-
toggleSort:
|
|
2028
|
+
pageCount: ne.value,
|
|
2029
|
+
toggleSort: P,
|
|
2030
2030
|
setItemsPerPage: be,
|
|
2031
2031
|
someSelected: Pt.value,
|
|
2032
|
-
allSelected:
|
|
2032
|
+
allSelected: wt.value,
|
|
2033
2033
|
isSelected: he,
|
|
2034
2034
|
select: pt,
|
|
2035
2035
|
selectAll: xt,
|
|
2036
2036
|
toggleSelect: St,
|
|
2037
|
-
isExpanded:
|
|
2037
|
+
isExpanded: kt,
|
|
2038
2038
|
toggleExpand: It,
|
|
2039
2039
|
isGroupOpen: N,
|
|
2040
2040
|
toggleGroup: p,
|
|
2041
2041
|
items: X.value.map((H) => H.raw),
|
|
2042
2042
|
internalItems: X.value,
|
|
2043
2043
|
groupedItems: M.value,
|
|
2044
|
-
columns:
|
|
2045
|
-
headers:
|
|
2044
|
+
columns: h.value,
|
|
2045
|
+
headers: s.value
|
|
2046
2046
|
}));
|
|
2047
2047
|
return K(() => {
|
|
2048
|
-
const H = Ee.filterProps(e), Ft = Ne.filterProps(e),
|
|
2049
|
-
return
|
|
2048
|
+
const H = Ee.filterProps(e), Ft = Ne.filterProps(e), Dt = Re.filterProps(e), Vt = $e.filterProps(e);
|
|
2049
|
+
return F($e, B({
|
|
2050
2050
|
class: ["v-data-table", {
|
|
2051
2051
|
"v-data-table--show-select": e.showSelect,
|
|
2052
2052
|
"v-data-table--loading": e.loading
|
|
2053
2053
|
}, e.class],
|
|
2054
2054
|
style: e.style
|
|
2055
|
-
},
|
|
2055
|
+
}, Vt, {
|
|
2056
2056
|
fixedHeader: e.fixedHeader || e.sticky
|
|
2057
2057
|
}), {
|
|
2058
|
-
top: () =>
|
|
2059
|
-
default: () =>
|
|
2058
|
+
top: () => n.top?.(E.value),
|
|
2059
|
+
default: () => n.default ? n.default(E.value) : S(U, null, [n.colgroup?.(E.value), !e.hideDefaultHeader && S("thead", {
|
|
2060
2060
|
key: "thead"
|
|
2061
|
-
}, [
|
|
2061
|
+
}, [F(Ne, Ft, n)]), n.thead?.(E.value), !e.hideDefaultBody && S("tbody", null, [n["body.prepend"]?.(E.value), n.body ? n.body(E.value) : F(Re, B(a, Dt, {
|
|
2062
2062
|
items: M.value
|
|
2063
|
-
}),
|
|
2064
|
-
bottom: () =>
|
|
2065
|
-
prepend:
|
|
2063
|
+
}), n), n["body.append"]?.(E.value)]), n.tbody?.(E.value), n.tfoot?.(E.value)]),
|
|
2064
|
+
bottom: () => n.bottom ? n.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [F(Yt, null, null), F(Ee, H, {
|
|
2065
|
+
prepend: n["footer.prepend"]
|
|
2066
2066
|
})])
|
|
2067
2067
|
});
|
|
2068
2068
|
}), {};
|
|
@@ -2141,39 +2141,39 @@ const Qa = _({
|
|
|
2141
2141
|
...ea(),
|
|
2142
2142
|
...ze(),
|
|
2143
2143
|
...Fe()
|
|
2144
|
-
}, "VSkeletonLoader"),
|
|
2144
|
+
}, "VSkeletonLoader"), an = $()({
|
|
2145
2145
|
name: "VSkeletonLoader",
|
|
2146
2146
|
inheritAttrs: !1,
|
|
2147
2147
|
props: Qa(),
|
|
2148
2148
|
setup(e, t) {
|
|
2149
2149
|
let {
|
|
2150
2150
|
attrs: a,
|
|
2151
|
-
slots:
|
|
2151
|
+
slots: n
|
|
2152
2152
|
} = t;
|
|
2153
2153
|
const {
|
|
2154
|
-
backgroundColorClasses:
|
|
2154
|
+
backgroundColorClasses: l,
|
|
2155
2155
|
backgroundColorStyles: r
|
|
2156
2156
|
} = Je(() => e.color), {
|
|
2157
|
-
dimensionStyles:
|
|
2157
|
+
dimensionStyles: u
|
|
2158
2158
|
} = Zt(e), {
|
|
2159
|
-
elevationClasses:
|
|
2159
|
+
elevationClasses: c
|
|
2160
2160
|
} = qt(e), {
|
|
2161
|
-
themeClasses:
|
|
2161
|
+
themeClasses: o
|
|
2162
2162
|
} = Ie(e), {
|
|
2163
|
-
t:
|
|
2164
|
-
} = Z(),
|
|
2163
|
+
t: d
|
|
2164
|
+
} = Z(), g = D(() => me(z(e.type).join(",")));
|
|
2165
2165
|
return K(() => {
|
|
2166
|
-
const
|
|
2166
|
+
const h = !n.default || e.loading, s = e.boilerplate || !h ? {} : {
|
|
2167
2167
|
ariaLive: "polite",
|
|
2168
|
-
ariaLabel:
|
|
2168
|
+
ariaLabel: d(e.loadingText),
|
|
2169
2169
|
role: "alert"
|
|
2170
2170
|
};
|
|
2171
|
-
return
|
|
2171
|
+
return h ? S("div", B({
|
|
2172
2172
|
class: ["v-skeleton-loader", {
|
|
2173
2173
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2174
|
-
},
|
|
2175
|
-
style: [r.value,
|
|
2176
|
-
},
|
|
2174
|
+
}, o.value, l.value, c.value],
|
|
2175
|
+
style: [r.value, u.value]
|
|
2176
|
+
}, s, a), [g.value]) : S(U, null, [n.default?.()]);
|
|
2177
2177
|
}), {};
|
|
2178
2178
|
}
|
|
2179
2179
|
});
|
|
@@ -2193,53 +2193,65 @@ function Xa(e, t, a) {
|
|
|
2193
2193
|
throw new Error(`Invalid operator: ${a}`);
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2197
|
-
const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"),
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
item: f
|
|
2209
|
-
}));
|
|
2210
|
-
let v = o.split(".").reduce((F, h) => F && F[h], b);
|
|
2211
|
-
switch (console.log(v), d.advancedFilter?.component) {
|
|
2212
|
-
case "datepicker":
|
|
2213
|
-
y = r(v, c);
|
|
2214
|
-
break;
|
|
2215
|
-
case "comparison":
|
|
2216
|
-
y = Xa(
|
|
2217
|
-
Number(v),
|
|
2218
|
-
Number(c),
|
|
2219
|
-
m
|
|
2220
|
-
);
|
|
2221
|
-
break;
|
|
2222
|
-
default:
|
|
2223
|
-
Array.isArray(c) ? y = c.map((F) => F.toString().toLowerCase()).includes(v.toString().toLowerCase()) : y = v?.toString().toLowerCase().includes(c.toString().toLowerCase());
|
|
2224
|
-
break;
|
|
2225
|
-
}
|
|
2226
|
-
return y;
|
|
2196
|
+
function nn() {
|
|
2197
|
+
const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"), n = j(), l = D(() => {
|
|
2198
|
+
let s = n.value;
|
|
2199
|
+
if (!s) return s;
|
|
2200
|
+
const i = o(e.value, t.value);
|
|
2201
|
+
return !i || Object.keys(i).length === 0 || Object.keys(i).forEach((b) => {
|
|
2202
|
+
const { value: f, comparison: v = "=" } = i[b];
|
|
2203
|
+
if (!f) return;
|
|
2204
|
+
const k = h(a.headers, b);
|
|
2205
|
+
k && (s = s.filter((y) => {
|
|
2206
|
+
const P = g(y, b, k);
|
|
2207
|
+
return k.advancedFilter?.customFilterFn && typeof k.advancedFilter.customFilterFn == "function" ? k.advancedFilter.customFilterFn({ value: P, filterValue: f, filterComparison: v, header: k, item: y }) : c(P, f, v, k);
|
|
2227
2208
|
}));
|
|
2228
2209
|
}), s;
|
|
2229
|
-
})
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2210
|
+
});
|
|
2211
|
+
function r(s, i) {
|
|
2212
|
+
const b = Array.isArray(i) ? i : [i], f = ie(b[0]).startOf("day").isSameOrBefore(ie(s).format()), v = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(s).format());
|
|
2213
|
+
return f && v;
|
|
2214
|
+
}
|
|
2215
|
+
function u(s, i) {
|
|
2216
|
+
return Array.isArray(i) ? i.map((b) => b.toString().toLowerCase()).includes(s.toString().toLowerCase()) : s?.toString().toLowerCase().includes(i.toString().toLowerCase());
|
|
2217
|
+
}
|
|
2218
|
+
function c(s, i, b, f) {
|
|
2219
|
+
switch (f.advancedFilter?.component) {
|
|
2220
|
+
case "datepicker":
|
|
2221
|
+
return r(s, i);
|
|
2222
|
+
case "comparison":
|
|
2223
|
+
return Xa(Number(s), Number(i), b);
|
|
2224
|
+
default:
|
|
2225
|
+
return u(s, i);
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
function o(s, i) {
|
|
2229
|
+
const b = Object.values(i).filter((f) => f.args).map((f) => f.args).reduce((f, v) => ({ ...f, ...v }), {});
|
|
2230
|
+
return { ...s, ...b };
|
|
2231
|
+
}
|
|
2232
|
+
function d(s, i) {
|
|
2233
|
+
return i.split(".").reduce((b, f) => b && b[f], s);
|
|
2234
|
+
}
|
|
2235
|
+
function g(s, i, b) {
|
|
2236
|
+
const f = na(s);
|
|
2237
|
+
return Object.hasOwn(b, "filterReturnValue") && typeof b.filterReturnValue == "function" && (f[i] = b.filterReturnValue({
|
|
2238
|
+
value: s[i],
|
|
2239
|
+
item: s
|
|
2240
|
+
})), d(f, i);
|
|
2241
|
+
}
|
|
2242
|
+
function h(s, i) {
|
|
2243
|
+
return s.find((b) => (b.advancedFilter?.key ?? b.key) === i);
|
|
2244
|
+
}
|
|
2233
2245
|
return ce(
|
|
2234
2246
|
() => a.data,
|
|
2235
|
-
|
|
2236
|
-
const
|
|
2237
|
-
JSON.stringify(
|
|
2247
|
+
(s, i) => {
|
|
2248
|
+
const b = s ?? [], f = i ?? [];
|
|
2249
|
+
JSON.stringify(b) !== JSON.stringify(f) && (n.value = s);
|
|
2238
2250
|
},
|
|
2239
2251
|
{ deep: !0, immediate: !0 }
|
|
2240
|
-
), { tableData:
|
|
2252
|
+
), { tableData: n, filteredData: l };
|
|
2241
2253
|
}
|
|
2242
|
-
const
|
|
2254
|
+
const ln = Lt({
|
|
2243
2255
|
props: {
|
|
2244
2256
|
render: {
|
|
2245
2257
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2260,9 +2272,9 @@ const nl = Lt({
|
|
|
2260
2272
|
}
|
|
2261
2273
|
});
|
|
2262
2274
|
export {
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2275
|
+
ln as C,
|
|
2276
|
+
tn as V,
|
|
2277
|
+
an as a,
|
|
2266
2278
|
Fa as b,
|
|
2267
2279
|
ca as c,
|
|
2268
2280
|
ha as d,
|
|
@@ -2271,16 +2283,16 @@ export {
|
|
|
2271
2283
|
fa as g,
|
|
2272
2284
|
ya as h,
|
|
2273
2285
|
ga as i,
|
|
2274
|
-
|
|
2286
|
+
ka as j,
|
|
2275
2287
|
ua as k,
|
|
2276
2288
|
ma as l,
|
|
2277
2289
|
Ee as m,
|
|
2278
2290
|
Ne as n,
|
|
2279
2291
|
Re as o,
|
|
2280
|
-
|
|
2292
|
+
Da as p,
|
|
2281
2293
|
$e as q,
|
|
2282
2294
|
ot as r,
|
|
2283
2295
|
Wa as s,
|
|
2284
2296
|
ba as t,
|
|
2285
|
-
|
|
2297
|
+
nn as u
|
|
2286
2298
|
};
|