@ianicdev/datatables2 0.9.2 → 0.9.4
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-5FUNk8-6.cjs → Columns-BL_4Jqyl.cjs} +1 -1
- package/dist/{Columns-lW5ifpVY.js → Columns-mQNRLCMn.js} +1 -1
- package/dist/{Comparison-B_jdQPdW.cjs → Comparison-BTt2Gsbx.cjs} +1 -1
- package/dist/{Comparison-OWm3KG63.js → Comparison-C3Oc0iUv.js} +1 -1
- package/dist/{Datepicker-D0Yzqhky.js → Datepicker-CSObpE6k.js} +195 -198
- package/dist/{Datepicker-BDXMvB6Q.cjs → Datepicker-D_bJVhKh.cjs} +1 -1
- package/dist/{Download-Dv6nv_kh.js → Download-Do85P8bU.js} +1 -1
- package/dist/{Download-DZv0Co50.cjs → Download-xmx2x3ON.cjs} +1 -1
- package/dist/{Options-Dmq3tFGa.cjs → Options-D86pWD5r.cjs} +1 -1
- package/dist/{Options-CvAQ7vuJ.js → Options-vUwkDsBY.js} +1 -1
- package/dist/{RefreshTable-DQt3K_wT.cjs → RefreshTable-DkEppv71.cjs} +1 -1
- package/dist/{RefreshTable-vbz6jP_l.js → RefreshTable-DxSynzpY.js} +2 -2
- package/dist/{Search-w6O09lLl.cjs → Search-D8Esc1iG.cjs} +1 -1
- package/dist/{Search-KNaJ43Yv.js → Search-DC4wl9bE.js} +2 -2
- package/dist/{Table-P3KDor2k.js → Table-CZ4Omr5V.js} +2 -2
- package/dist/{Table-Bfa_XCKK.cjs → Table-DSX8aNPW.cjs} +1 -1
- package/dist/{TableServer-CraUFndq.cjs → TableServer-BDHt1QSO.cjs} +1 -1
- package/dist/{TableServer-C7VVLhRY.js → TableServer-DD-RnSy8.js} +3 -3
- package/dist/{cellRender-BSERCH_s.js → cellRender-CR73ZE5s.js} +500 -494
- package/dist/cellRender-LsrMs5H5.cjs +1 -0
- package/dist/{dataTables-oPwexOUF.cjs → dataTables-C0AALvNm.cjs} +1 -1
- package/dist/{dataTables-DqHE-hm9.js → dataTables-Cc8Vb8Gw.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/index-7Ub-WdbS.cjs +1 -0
- package/dist/{index-Wzi3PVax.cjs → index-Cq3HppH1.cjs} +1 -1
- package/dist/{index-FhbzpwmS.js → index-DCi3bxbO.js} +209 -209
- package/dist/{index-BjboPrMg.js → index-DXihgWj-.js} +1 -1
- package/package.json +1 -1
- package/dist/cellRender-AyOlbHkM.cjs +0 -1
- package/dist/index-BwtJBnu1.cjs +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { aQ as
|
|
3
|
-
import { V as
|
|
1
|
+
import { shallowRef as ue, computed as F, unref as q, watchEffect as je, toRef as C, provide as Y, toRaw as ne, inject as Q, ref as j, toValue as Tt, watch as ce, onBeforeUpdate as Ct, createVNode as k, 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 { aQ as Et, U as Rt, p as _, N as z, aA as ee, K as J, aR as de, _ as Ge, J as Ke, af as ye, aS as Nt, T as Z, aT as se, g as $, a0 as $t, h as Ie, aj as fe, a as Se, al as Mt, aU 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, aV as Be, aW as Wt, ax as A, aX as zt, o as Ut, P as Je, L as Jt, D as Qt, ao as Ve, d as Oe, H as pe, a1 as Pe, k as Xt, aa as Yt, l as Zt, n as qt, F as ea } from "./dataTables-Cc8Vb8Gw.js";
|
|
3
|
+
import { V as Qe, a as ta, b as De, u as aa, d as la } from "./index-DCi3bxbO.js";
|
|
4
|
+
import ie from "moment";
|
|
4
5
|
function Le(e, t, a) {
|
|
5
|
-
return Object.keys(e).filter((l) =>
|
|
6
|
+
return Object.keys(e).filter((l) => Et(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Rt(e[n], r, a(r)), l), {});
|
|
6
7
|
}
|
|
7
|
-
const
|
|
8
|
+
const na = (e, t, a) => {
|
|
8
9
|
if (e == null || t == null) return -1;
|
|
9
10
|
if (!t.length) return 0;
|
|
10
11
|
e = e.toString().toLocaleLowerCase(), t = t.toString().toLocaleLowerCase();
|
|
@@ -14,11 +15,11 @@ const la = (e, t, a) => {
|
|
|
14
15
|
l.push([n, n + t.length]), n = e.indexOf(t, n + t.length);
|
|
15
16
|
return l.length ? l : -1;
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function xe(e, t) {
|
|
18
19
|
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
19
20
|
return typeof e == "number" ? [[e, e + t.length]] : Array.isArray(e[0]) ? e : [e];
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const ra = _({
|
|
22
23
|
customFilter: Function,
|
|
23
24
|
customKeyFilter: Object,
|
|
24
25
|
filterKeys: [Array, String],
|
|
@@ -28,13 +29,13 @@ const na = _({
|
|
|
28
29
|
},
|
|
29
30
|
noFilter: Boolean
|
|
30
31
|
}, "filter");
|
|
31
|
-
function
|
|
32
|
-
const l = [], n = a?.default ??
|
|
32
|
+
function sa(e, t, a) {
|
|
33
|
+
const l = [], n = a?.default ?? na, r = a?.filterKeys ? z(a.filterKeys) : !1, o = Object.keys(a?.customKeyFilter ?? {}).length;
|
|
33
34
|
if (!e?.length) return l;
|
|
34
35
|
let u = null;
|
|
35
36
|
e: for (let s = 0; s < e.length; s++) {
|
|
36
|
-
const [i,
|
|
37
|
-
let
|
|
37
|
+
const [i, c = i] = z(e[s]), m = {}, d = {};
|
|
38
|
+
let f = -1;
|
|
38
39
|
if ((t || o > 0) && !a?.noFilter) {
|
|
39
40
|
let y = !1;
|
|
40
41
|
if (typeof i == "object") {
|
|
@@ -46,17 +47,17 @@ function ra(e, t, a) {
|
|
|
46
47
|
};
|
|
47
48
|
continue;
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
-
y =
|
|
51
|
-
for (const h of
|
|
52
|
-
const I = ee(
|
|
53
|
-
if (
|
|
54
|
-
D ? m[h] =
|
|
50
|
+
const V = r || Object.keys(c);
|
|
51
|
+
y = V.length === o;
|
|
52
|
+
for (const h of V) {
|
|
53
|
+
const I = ee(c, h), D = a?.customKeyFilter?.[h];
|
|
54
|
+
if (f = D ? D(I, t, i) : n(I, t, i), f !== -1 && f !== !1)
|
|
55
|
+
D ? m[h] = xe(f, t) : d[h] = xe(f, t);
|
|
55
56
|
else if (a?.filterMode === "every")
|
|
56
57
|
continue e;
|
|
57
58
|
}
|
|
58
59
|
} else
|
|
59
|
-
|
|
60
|
+
f = n(i, t, i), f !== -1 && f !== !1 && (d.title = xe(f, t));
|
|
60
61
|
const b = Object.keys(d).length, v = Object.keys(m).length;
|
|
61
62
|
if (!b && !v || a?.filterMode === "union" && v !== o && !b || a?.filterMode === "intersection" && (v !== o || !b && o > 0 && !y)) continue;
|
|
62
63
|
}
|
|
@@ -70,10 +71,10 @@ function ra(e, t, a) {
|
|
|
70
71
|
}
|
|
71
72
|
return l;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
const n =
|
|
75
|
-
|
|
76
|
-
const s = typeof a == "function" ? a() : q(a), i = typeof s != "string" && typeof s != "number" ? "" : String(s),
|
|
74
|
+
function oa(e, t, a, l) {
|
|
75
|
+
const n = ue([]), r = ue(/* @__PURE__ */ new Map()), o = F(() => l?.transform ? q(t).map((s) => [s, l.transform(s)]) : q(t));
|
|
76
|
+
je(() => {
|
|
77
|
+
const s = typeof a == "function" ? a() : q(a), i = typeof s != "string" && typeof s != "number" ? "" : String(s), c = sa(o.value, i, {
|
|
77
78
|
customKeyFilter: {
|
|
78
79
|
...e.customKeyFilter,
|
|
79
80
|
...q(l?.customKeyFilter)
|
|
@@ -82,15 +83,15 @@ function sa(e, t, a, l) {
|
|
|
82
83
|
filterKeys: e.filterKeys,
|
|
83
84
|
filterMode: e.filterMode,
|
|
84
85
|
noFilter: e.noFilter
|
|
85
|
-
}), m = q(t), d = [],
|
|
86
|
-
|
|
86
|
+
}), m = q(t), d = [], f = /* @__PURE__ */ new Map();
|
|
87
|
+
c.forEach((y) => {
|
|
87
88
|
let {
|
|
88
89
|
index: b,
|
|
89
90
|
matches: v
|
|
90
91
|
} = y;
|
|
91
|
-
const
|
|
92
|
-
d.push(
|
|
93
|
-
}), n.value = d, r.value =
|
|
92
|
+
const V = m[b];
|
|
93
|
+
d.push(V), f.set(V.value, v);
|
|
94
|
+
}), n.value = d, r.value = f;
|
|
94
95
|
});
|
|
95
96
|
function u(s) {
|
|
96
97
|
return r.value.get(s.value);
|
|
@@ -101,22 +102,22 @@ function sa(e, t, a, l) {
|
|
|
101
102
|
getMatches: u
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
|
-
const
|
|
105
|
+
const ia = _({
|
|
105
106
|
expandOnClick: Boolean,
|
|
106
107
|
showExpand: Boolean,
|
|
107
108
|
expanded: {
|
|
108
109
|
type: Array,
|
|
109
110
|
default: () => []
|
|
110
111
|
}
|
|
111
|
-
}, "DataTable-expand"),
|
|
112
|
-
function
|
|
112
|
+
}, "DataTable-expand"), Xe = Symbol.for("vuetify:datatable:expanded");
|
|
113
|
+
function ua(e) {
|
|
113
114
|
const t = C(() => e.expandOnClick), a = J(e, "expanded", e.expanded, (u) => new Set(u), (u) => [...u.values()]);
|
|
114
115
|
function l(u, s) {
|
|
115
|
-
const i = new Set(a.value),
|
|
116
|
+
const i = new Set(a.value), c = ne(u.value);
|
|
116
117
|
if (s)
|
|
117
|
-
i.add(
|
|
118
|
+
i.add(c);
|
|
118
119
|
else {
|
|
119
|
-
const m = [...a.value].find((d) => ne(d) ===
|
|
120
|
+
const m = [...a.value].find((d) => ne(d) === c);
|
|
120
121
|
i.delete(m);
|
|
121
122
|
}
|
|
122
123
|
a.value = i;
|
|
@@ -135,49 +136,49 @@ function ia(e) {
|
|
|
135
136
|
isExpanded: n,
|
|
136
137
|
toggleExpand: r
|
|
137
138
|
};
|
|
138
|
-
return Y(
|
|
139
|
+
return Y(Xe, o), o;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
const e = Q(
|
|
141
|
+
function Ye() {
|
|
142
|
+
const e = Q(Xe);
|
|
142
143
|
if (!e) throw new Error("foo");
|
|
143
144
|
return e;
|
|
144
145
|
}
|
|
145
|
-
const
|
|
146
|
+
const da = _({
|
|
146
147
|
groupBy: {
|
|
147
148
|
type: Array,
|
|
148
149
|
default: () => []
|
|
149
150
|
}
|
|
150
|
-
}, "DataTable-group"),
|
|
151
|
-
function
|
|
151
|
+
}, "DataTable-group"), Ze = Symbol.for("vuetify:data-table-group");
|
|
152
|
+
function ca(e) {
|
|
152
153
|
return {
|
|
153
154
|
groupBy: J(e, "groupBy")
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function fa(e) {
|
|
157
158
|
const {
|
|
158
159
|
disableSort: t,
|
|
159
160
|
groupBy: a,
|
|
160
161
|
sortBy: l
|
|
161
|
-
} = e, n = j(/* @__PURE__ */ new Set()), r =
|
|
162
|
-
...
|
|
163
|
-
order:
|
|
162
|
+
} = e, n = j(/* @__PURE__ */ new Set()), r = F(() => a.value.map((c) => ({
|
|
163
|
+
...c,
|
|
164
|
+
order: c.order ?? !1
|
|
164
165
|
})).concat(t?.value ? [] : l.value));
|
|
165
|
-
function o(
|
|
166
|
-
return n.value.has(
|
|
166
|
+
function o(c) {
|
|
167
|
+
return n.value.has(c.id);
|
|
167
168
|
}
|
|
168
|
-
function u(
|
|
169
|
+
function u(c) {
|
|
169
170
|
const m = new Set(n.value);
|
|
170
|
-
o(
|
|
171
|
+
o(c) ? m.delete(c.id) : m.add(c.id), n.value = m;
|
|
171
172
|
}
|
|
172
|
-
function s(
|
|
173
|
+
function s(c) {
|
|
173
174
|
function m(d) {
|
|
174
|
-
const
|
|
175
|
+
const f = [];
|
|
175
176
|
for (const y of d.items)
|
|
176
|
-
"type" in y && y.type === "group" ?
|
|
177
|
-
return [...new Set(
|
|
177
|
+
"type" in y && y.type === "group" ? f.push(...m(y)) : f.push(y);
|
|
178
|
+
return [...new Set(f)];
|
|
178
179
|
}
|
|
179
180
|
return m({
|
|
180
|
-
items:
|
|
181
|
+
items: c
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
184
|
const i = {
|
|
@@ -188,57 +189,57 @@ function ca(e) {
|
|
|
188
189
|
extractRows: s,
|
|
189
190
|
isGroupOpen: o
|
|
190
191
|
};
|
|
191
|
-
return Y(
|
|
192
|
+
return Y(Ze, i), i;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
const e = Q(
|
|
194
|
+
function qe() {
|
|
195
|
+
const e = Q(Ze);
|
|
195
196
|
if (!e) throw new Error("Missing group!");
|
|
196
197
|
return e;
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
+
function va(e, t) {
|
|
199
200
|
if (!e.length) return [];
|
|
200
201
|
const a = /* @__PURE__ */ new Map();
|
|
201
202
|
for (const l of e) {
|
|
202
|
-
const n =
|
|
203
|
+
const n = de(l.raw, t);
|
|
203
204
|
a.has(n) || a.set(n, []), a.get(n).push(l);
|
|
204
205
|
}
|
|
205
206
|
return a;
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function et(e, t) {
|
|
208
209
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
|
|
209
210
|
if (!t.length) return [];
|
|
210
|
-
const n =
|
|
211
|
+
const n = va(e, t[0]), r = [], o = t.slice(1);
|
|
211
212
|
return n.forEach((u, s) => {
|
|
212
|
-
const i = t[0],
|
|
213
|
+
const i = t[0], c = `${l}_${i}_${s}`;
|
|
213
214
|
r.push({
|
|
214
215
|
depth: a,
|
|
215
|
-
id:
|
|
216
|
+
id: c,
|
|
216
217
|
key: i,
|
|
217
218
|
value: s,
|
|
218
|
-
items: o.length ?
|
|
219
|
+
items: o.length ? et(u, o, a + 1, c) : u,
|
|
219
220
|
type: "group"
|
|
220
221
|
});
|
|
221
222
|
}), r;
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function tt(e, t, a) {
|
|
224
225
|
const l = [];
|
|
225
226
|
for (const n of e)
|
|
226
|
-
"type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...
|
|
227
|
+
"type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...tt(n.items, t, a)), a && l.push({
|
|
227
228
|
...n,
|
|
228
229
|
type: "group-summary"
|
|
229
230
|
}))) : l.push(n);
|
|
230
231
|
return l;
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
+
function ga(e, t, a, l) {
|
|
233
234
|
return {
|
|
234
|
-
flatItems:
|
|
235
|
+
flatItems: F(() => {
|
|
235
236
|
if (!t.value.length) return e.value;
|
|
236
|
-
const r =
|
|
237
|
-
return
|
|
237
|
+
const r = et(e.value, t.value.map((o) => o.key));
|
|
238
|
+
return tt(r, a.value, Tt(l));
|
|
238
239
|
})
|
|
239
240
|
};
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function ma(e) {
|
|
242
243
|
let {
|
|
243
244
|
page: t,
|
|
244
245
|
itemsPerPage: a,
|
|
@@ -246,7 +247,7 @@ function ga(e) {
|
|
|
246
247
|
groupBy: n,
|
|
247
248
|
search: r
|
|
248
249
|
} = e;
|
|
249
|
-
const o =
|
|
250
|
+
const o = Ge("VDataTable"), u = () => ({
|
|
250
251
|
page: t.value,
|
|
251
252
|
itemsPerPage: a.value,
|
|
252
253
|
sortBy: l.value,
|
|
@@ -254,14 +255,14 @@ function ga(e) {
|
|
|
254
255
|
search: r.value
|
|
255
256
|
});
|
|
256
257
|
let s = null;
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
ce(u, (i) => {
|
|
259
|
+
Ke(s, i) || (s && s.search !== i.search && (t.value = 1), o.emit("update:options", i), s = i);
|
|
259
260
|
}, {
|
|
260
261
|
deep: !0,
|
|
261
262
|
immediate: !0
|
|
262
263
|
});
|
|
263
264
|
}
|
|
264
|
-
const
|
|
265
|
+
const ba = _({
|
|
265
266
|
page: {
|
|
266
267
|
type: [Number, String],
|
|
267
268
|
default: 1
|
|
@@ -270,34 +271,34 @@ const ma = _({
|
|
|
270
271
|
type: [Number, String],
|
|
271
272
|
default: 10
|
|
272
273
|
}
|
|
273
|
-
}, "DataTable-paginate"),
|
|
274
|
-
function
|
|
274
|
+
}, "DataTable-paginate"), at = Symbol.for("vuetify:data-table-pagination");
|
|
275
|
+
function ha(e) {
|
|
275
276
|
const t = J(e, "page", void 0, (l) => Number(l ?? 1)), a = J(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
|
|
276
277
|
return {
|
|
277
278
|
page: t,
|
|
278
279
|
itemsPerPage: a
|
|
279
280
|
};
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function ya(e) {
|
|
282
283
|
const {
|
|
283
284
|
page: t,
|
|
284
285
|
itemsPerPage: a,
|
|
285
286
|
itemsLength: l
|
|
286
|
-
} = e, n =
|
|
287
|
-
|
|
287
|
+
} = e, n = F(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = F(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), o = F(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
|
|
288
|
+
ce([t, o], () => {
|
|
288
289
|
t.value > o.value && (t.value = o.value);
|
|
289
290
|
});
|
|
290
291
|
function u(d) {
|
|
291
292
|
a.value = d, t.value = 1;
|
|
292
293
|
}
|
|
293
294
|
function s() {
|
|
294
|
-
t.value =
|
|
295
|
+
t.value = ye(t.value + 1, 1, o.value);
|
|
295
296
|
}
|
|
296
297
|
function i() {
|
|
297
|
-
t.value =
|
|
298
|
+
t.value = ye(t.value - 1, 1, o.value);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
t.value =
|
|
300
|
+
function c(d) {
|
|
301
|
+
t.value = ye(d, 1, o.value);
|
|
301
302
|
}
|
|
302
303
|
const m = {
|
|
303
304
|
page: t,
|
|
@@ -308,24 +309,24 @@ function ha(e) {
|
|
|
308
309
|
itemsLength: l,
|
|
309
310
|
nextPage: s,
|
|
310
311
|
prevPage: i,
|
|
311
|
-
setPage:
|
|
312
|
+
setPage: c,
|
|
312
313
|
setItemsPerPage: u
|
|
313
314
|
};
|
|
314
|
-
return Y(
|
|
315
|
+
return Y(at, m), m;
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
-
const e = Q(
|
|
317
|
+
function pa() {
|
|
318
|
+
const e = Q(at);
|
|
318
319
|
if (!e) throw new Error("Missing pagination!");
|
|
319
320
|
return e;
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
-
const t =
|
|
322
|
+
function xa(e) {
|
|
323
|
+
const t = Ge("usePaginatedItems"), {
|
|
323
324
|
items: a,
|
|
324
325
|
startIndex: l,
|
|
325
326
|
stopIndex: n,
|
|
326
327
|
itemsPerPage: r
|
|
327
|
-
} = e, o =
|
|
328
|
-
return
|
|
328
|
+
} = e, o = F(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
|
|
329
|
+
return ce(o, (u) => {
|
|
329
330
|
t.emit("update:currentItems", u);
|
|
330
331
|
}, {
|
|
331
332
|
immediate: !0
|
|
@@ -333,7 +334,7 @@ function pa(e) {
|
|
|
333
334
|
paginatedItems: o
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
|
-
const
|
|
337
|
+
const Sa = {
|
|
337
338
|
showSelectAll: !1,
|
|
338
339
|
allSelected: () => [],
|
|
339
340
|
select: (e) => {
|
|
@@ -349,7 +350,7 @@ const xa = {
|
|
|
349
350
|
} = e;
|
|
350
351
|
return t;
|
|
351
352
|
}
|
|
352
|
-
},
|
|
353
|
+
}, lt = {
|
|
353
354
|
showSelectAll: !0,
|
|
354
355
|
allSelected: (e) => {
|
|
355
356
|
let {
|
|
@@ -373,13 +374,13 @@ const xa = {
|
|
|
373
374
|
currentPage: a,
|
|
374
375
|
selected: l
|
|
375
376
|
} = e;
|
|
376
|
-
return
|
|
377
|
+
return lt.select({
|
|
377
378
|
items: a,
|
|
378
379
|
value: t,
|
|
379
380
|
selected: l
|
|
380
381
|
});
|
|
381
382
|
}
|
|
382
|
-
},
|
|
383
|
+
}, Pa = {
|
|
383
384
|
showSelectAll: !0,
|
|
384
385
|
allSelected: (e) => {
|
|
385
386
|
let {
|
|
@@ -404,7 +405,7 @@ const xa = {
|
|
|
404
405
|
} = e;
|
|
405
406
|
return new Set(t ? a.map((l) => l.value) : []);
|
|
406
407
|
}
|
|
407
|
-
},
|
|
408
|
+
}, wa = _({
|
|
408
409
|
showSelect: Boolean,
|
|
409
410
|
selectStrategy: {
|
|
410
411
|
type: [String, Object],
|
|
@@ -415,31 +416,31 @@ const xa = {
|
|
|
415
416
|
default: () => []
|
|
416
417
|
},
|
|
417
418
|
valueComparator: Function
|
|
418
|
-
}, "DataTable-select"),
|
|
419
|
-
function
|
|
419
|
+
}, "DataTable-select"), nt = Symbol.for("vuetify:data-table-selection");
|
|
420
|
+
function ka(e, t) {
|
|
420
421
|
let {
|
|
421
422
|
allItems: a,
|
|
422
423
|
currentPage: l
|
|
423
424
|
} = t;
|
|
424
425
|
const n = J(e, "modelValue", e.modelValue, (h) => {
|
|
425
426
|
const I = e.valueComparator;
|
|
426
|
-
return I ? new Set(z(h).map((D) => a.value.find((P) => I(D, P.value))?.value ?? D)) : new Set(z(h).map((D) => Nt(D) ? a.value.find((P) => D === P.value)?.value ?? D : a.value.find((P) =>
|
|
427
|
-
}, (h) => [...h.values()]), r =
|
|
427
|
+
return I ? new Set(z(h).map((D) => a.value.find((P) => I(D, P.value))?.value ?? D)) : new Set(z(h).map((D) => Nt(D) ? a.value.find((P) => D === P.value)?.value ?? D : a.value.find((P) => Ke(D, P.value))?.value ?? D));
|
|
428
|
+
}, (h) => [...h.values()]), r = F(() => a.value.filter((h) => h.selectable)), o = F(() => l.value.filter((h) => h.selectable)), u = F(() => {
|
|
428
429
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
429
430
|
switch (e.selectStrategy) {
|
|
430
431
|
case "single":
|
|
431
|
-
return xa;
|
|
432
|
-
case "all":
|
|
433
432
|
return Sa;
|
|
433
|
+
case "all":
|
|
434
|
+
return Pa;
|
|
434
435
|
case "page":
|
|
435
436
|
default:
|
|
436
|
-
return
|
|
437
|
+
return lt;
|
|
437
438
|
}
|
|
438
|
-
}), s =
|
|
439
|
+
}), s = ue(null);
|
|
439
440
|
function i(h) {
|
|
440
441
|
return z(h).every((I) => n.value.has(I.value));
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
+
function c(h) {
|
|
443
444
|
return z(h).some((I) => n.value.has(I.value));
|
|
444
445
|
}
|
|
445
446
|
function m(h, I) {
|
|
@@ -452,14 +453,14 @@ function wa(e, t) {
|
|
|
452
453
|
}
|
|
453
454
|
function d(h, I, D) {
|
|
454
455
|
const P = [];
|
|
455
|
-
if (I = I ?? l.value.findIndex((
|
|
456
|
-
const [
|
|
457
|
-
P.push(...l.value.slice(
|
|
456
|
+
if (I = I ?? l.value.findIndex((L) => L.value === h.value), e.selectStrategy !== "single" && D?.shiftKey && s.value !== null) {
|
|
457
|
+
const [L, R] = [s.value, I].sort((p, x) => p - x);
|
|
458
|
+
P.push(...l.value.slice(L, R + 1).filter((p) => p.selectable));
|
|
458
459
|
} else
|
|
459
460
|
P.push(h), s.value = I;
|
|
460
461
|
m(P, !i([h]));
|
|
461
462
|
}
|
|
462
|
-
function
|
|
463
|
+
function f(h) {
|
|
463
464
|
const I = u.value.selectAll({
|
|
464
465
|
value: h,
|
|
465
466
|
allItems: r.value,
|
|
@@ -468,32 +469,32 @@ function wa(e, t) {
|
|
|
468
469
|
});
|
|
469
470
|
n.value = I;
|
|
470
471
|
}
|
|
471
|
-
const y =
|
|
472
|
+
const y = F(() => n.value.size > 0), b = F(() => {
|
|
472
473
|
const h = u.value.allSelected({
|
|
473
474
|
allItems: r.value,
|
|
474
475
|
currentPage: o.value
|
|
475
476
|
});
|
|
476
477
|
return !!h.length && i(h);
|
|
477
|
-
}), v = C(() => u.value.showSelectAll),
|
|
478
|
+
}), v = C(() => u.value.showSelectAll), V = {
|
|
478
479
|
toggleSelect: d,
|
|
479
480
|
select: m,
|
|
480
|
-
selectAll:
|
|
481
|
+
selectAll: f,
|
|
481
482
|
isSelected: i,
|
|
482
|
-
isSomeSelected:
|
|
483
|
+
isSomeSelected: c,
|
|
483
484
|
someSelected: y,
|
|
484
485
|
allSelected: b,
|
|
485
486
|
showSelectAll: v,
|
|
486
487
|
lastSelectedIndex: s,
|
|
487
488
|
selectStrategy: u
|
|
488
489
|
};
|
|
489
|
-
return Y(
|
|
490
|
+
return Y(nt, V), V;
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
-
const e = Q(
|
|
492
|
+
function ve() {
|
|
493
|
+
const e = Q(nt);
|
|
493
494
|
if (!e) throw new Error("Missing selection!");
|
|
494
495
|
return e;
|
|
495
496
|
}
|
|
496
|
-
const
|
|
497
|
+
const Ia = _({
|
|
497
498
|
sortBy: {
|
|
498
499
|
type: Array,
|
|
499
500
|
default: () => []
|
|
@@ -501,8 +502,8 @@ const ka = _({
|
|
|
501
502
|
customKeySort: Object,
|
|
502
503
|
multiSort: Boolean,
|
|
503
504
|
mustSort: Boolean
|
|
504
|
-
}, "DataTable-sort"),
|
|
505
|
-
function
|
|
505
|
+
}, "DataTable-sort"), rt = Symbol.for("vuetify:data-table-sort");
|
|
506
|
+
function Fa(e) {
|
|
506
507
|
const t = J(e, "sortBy"), a = C(() => e.mustSort), l = C(() => e.multiSort);
|
|
507
508
|
return {
|
|
508
509
|
sortBy: t,
|
|
@@ -521,8 +522,8 @@ function Va(e) {
|
|
|
521
522
|
let i = t.value.map((m) => ({
|
|
522
523
|
...m
|
|
523
524
|
})) ?? [];
|
|
524
|
-
const
|
|
525
|
-
|
|
525
|
+
const c = i.find((m) => m.key === s.key);
|
|
526
|
+
c ? c.order === "desc" ? a.value && i.length === 1 ? c.order = "asc" : i = i.filter((m) => m.key !== s.key) : c.order = "desc" : l.value ? i.push({
|
|
526
527
|
key: s.key,
|
|
527
528
|
order: "asc"
|
|
528
529
|
}) : i = [{
|
|
@@ -538,17 +539,17 @@ function Va(e) {
|
|
|
538
539
|
toggleSort: r,
|
|
539
540
|
isSorted: o
|
|
540
541
|
};
|
|
541
|
-
return Y(
|
|
542
|
+
return Y(rt, u), u;
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
-
const e = Q(
|
|
544
|
+
function st() {
|
|
545
|
+
const e = Q(rt);
|
|
545
546
|
if (!e) throw new Error("Missing sort!");
|
|
546
547
|
return e;
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function Da(e, t, a, l) {
|
|
549
550
|
const n = Z();
|
|
550
551
|
return {
|
|
551
|
-
sortedItems:
|
|
552
|
+
sortedItems: F(() => a.value.length ? Ta(t.value, a.value, n.current.value, {
|
|
552
553
|
transform: l?.transform,
|
|
553
554
|
sortFunctions: {
|
|
554
555
|
...e.customKeySort,
|
|
@@ -558,7 +559,7 @@ function Fa(e, t, a, l) {
|
|
|
558
559
|
}) : t.value)
|
|
559
560
|
};
|
|
560
561
|
}
|
|
561
|
-
function
|
|
562
|
+
function Ta(e, t, a, l) {
|
|
562
563
|
const n = new Intl.Collator(a, {
|
|
563
564
|
sensitivity: "accent",
|
|
564
565
|
usage: "sort"
|
|
@@ -566,21 +567,21 @@ function Da(e, t, a, l) {
|
|
|
566
567
|
return e.map((o) => [o, l?.transform ? l.transform(o) : o]).sort((o, u) => {
|
|
567
568
|
for (let s = 0; s < t.length; s++) {
|
|
568
569
|
let i = !1;
|
|
569
|
-
const
|
|
570
|
+
const c = t[s].key, m = t[s].order ?? "asc";
|
|
570
571
|
if (m === !1) continue;
|
|
571
|
-
let d =
|
|
572
|
-
if (m === "desc" && ([d,
|
|
573
|
-
const v = l.sortRawFunctions[
|
|
572
|
+
let d = de(o[1], c), f = de(u[1], c), y = o[0].raw, b = u[0].raw;
|
|
573
|
+
if (m === "desc" && ([d, f] = [f, d], [y, b] = [b, y]), l?.sortRawFunctions?.[c]) {
|
|
574
|
+
const v = l.sortRawFunctions[c](y, b);
|
|
574
575
|
if (v == null) continue;
|
|
575
576
|
if (i = !0, v) return v;
|
|
576
577
|
}
|
|
577
|
-
if (l?.sortFunctions?.[
|
|
578
|
-
const v = l.sortFunctions[
|
|
578
|
+
if (l?.sortFunctions?.[c]) {
|
|
579
|
+
const v = l.sortFunctions[c](d, f);
|
|
579
580
|
if (v == null) continue;
|
|
580
581
|
if (i = !0, v) return v;
|
|
581
582
|
}
|
|
582
|
-
if (!i && (d instanceof Date &&
|
|
583
|
-
return se(d) && se(
|
|
583
|
+
if (!i && (d instanceof Date && f instanceof Date && (d = d.getTime(), f = f.getTime()), [d, f] = [d, f].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), d !== f))
|
|
584
|
+
return se(d) && se(f) ? 0 : se(d) ? -1 : se(f) ? 1 : !isNaN(d) && !isNaN(f) ? Number(d) - Number(f) : n.compare(d, f);
|
|
584
585
|
}
|
|
585
586
|
return 0;
|
|
586
587
|
}).map((o) => {
|
|
@@ -588,9 +589,9 @@ function Da(e, t, a, l) {
|
|
|
588
589
|
return u;
|
|
589
590
|
});
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
+
function Ca() {
|
|
592
593
|
const e = j([]);
|
|
593
|
-
|
|
594
|
+
Ct(() => e.value = []);
|
|
594
595
|
function t(a, l) {
|
|
595
596
|
e.value[l] = a;
|
|
596
597
|
}
|
|
@@ -599,7 +600,7 @@ function Ta() {
|
|
|
599
600
|
updateRef: t
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
const
|
|
603
|
+
const _a = _({
|
|
603
604
|
activeColor: String,
|
|
604
605
|
start: {
|
|
605
606
|
type: [Number, String],
|
|
@@ -617,19 +618,19 @@ const Ca = _({
|
|
|
617
618
|
},
|
|
618
619
|
totalVisible: [Number, String],
|
|
619
620
|
firstIcon: {
|
|
620
|
-
type:
|
|
621
|
+
type: O,
|
|
621
622
|
default: "$first"
|
|
622
623
|
},
|
|
623
624
|
prevIcon: {
|
|
624
|
-
type:
|
|
625
|
+
type: O,
|
|
625
626
|
default: "$prev"
|
|
626
627
|
},
|
|
627
628
|
nextIcon: {
|
|
628
|
-
type:
|
|
629
|
+
type: O,
|
|
629
630
|
default: "$next"
|
|
630
631
|
},
|
|
631
632
|
lastIcon: {
|
|
632
|
-
type:
|
|
633
|
+
type: O,
|
|
633
634
|
default: "$last"
|
|
634
635
|
},
|
|
635
636
|
ariaLabel: {
|
|
@@ -665,22 +666,22 @@ const Ca = _({
|
|
|
665
666
|
default: "..."
|
|
666
667
|
},
|
|
667
668
|
showFirstLastPage: Boolean,
|
|
668
|
-
...
|
|
669
|
-
...
|
|
669
|
+
...Kt(),
|
|
670
|
+
...Ue(),
|
|
670
671
|
...ae(),
|
|
671
|
-
...
|
|
672
|
+
...ze(),
|
|
673
|
+
...Gt(),
|
|
672
674
|
...jt(),
|
|
673
|
-
...
|
|
674
|
-
...Ke({
|
|
675
|
+
...We({
|
|
675
676
|
tag: "nav"
|
|
676
677
|
}),
|
|
677
|
-
...
|
|
678
|
-
...
|
|
678
|
+
...Fe(),
|
|
679
|
+
...Ht({
|
|
679
680
|
variant: "text"
|
|
680
681
|
})
|
|
681
|
-
}, "VPagination"),
|
|
682
|
+
}, "VPagination"), Ae = $()({
|
|
682
683
|
name: "VPagination",
|
|
683
|
-
props:
|
|
684
|
+
props: _a(),
|
|
684
685
|
emits: {
|
|
685
686
|
"update:modelValue": (e) => !0,
|
|
686
687
|
first: (e) => !0,
|
|
@@ -698,26 +699,26 @@ const Ca = _({
|
|
|
698
699
|
n: o
|
|
699
700
|
} = Z(), {
|
|
700
701
|
isRtl: u
|
|
701
|
-
} =
|
|
702
|
+
} = $t(), {
|
|
702
703
|
themeClasses: s
|
|
703
|
-
} =
|
|
704
|
+
} = Ie(e), {
|
|
704
705
|
width: i
|
|
705
|
-
} =
|
|
706
|
-
|
|
706
|
+
} = fe(), c = ue(-1);
|
|
707
|
+
Se(void 0, {
|
|
707
708
|
scoped: !0
|
|
708
709
|
});
|
|
709
710
|
const {
|
|
710
711
|
resizeRef: m
|
|
711
|
-
} =
|
|
712
|
+
} = Mt((p) => {
|
|
712
713
|
if (!p.length) return;
|
|
713
714
|
const {
|
|
714
715
|
target: x,
|
|
715
716
|
contentRect: g
|
|
716
717
|
} = p[0], w = x.querySelector(".v-pagination__list > *");
|
|
717
718
|
if (!w) return;
|
|
718
|
-
const T = g.width,
|
|
719
|
-
|
|
720
|
-
}), d =
|
|
719
|
+
const T = g.width, N = w.offsetWidth + parseFloat(getComputedStyle(w).marginRight) * 2;
|
|
720
|
+
c.value = b(T, N);
|
|
721
|
+
}), d = F(() => parseInt(e.length, 10)), f = F(() => parseInt(e.start, 10)), y = F(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : c.value >= 0 ? c.value : b(i.value, 58));
|
|
721
722
|
function b(p, x) {
|
|
722
723
|
const g = e.showFirstLastPage ? 5 : 3;
|
|
723
724
|
return Math.max(0, Math.floor(
|
|
@@ -725,31 +726,31 @@ const Ca = _({
|
|
|
725
726
|
Number(((p - x * g) / x).toFixed(2))
|
|
726
727
|
));
|
|
727
728
|
}
|
|
728
|
-
const v =
|
|
729
|
+
const v = F(() => {
|
|
729
730
|
if (d.value <= 0 || isNaN(d.value) || d.value > Number.MAX_SAFE_INTEGER) return [];
|
|
730
731
|
if (y.value <= 0) return [];
|
|
731
732
|
if (y.value === 1) return [n.value];
|
|
732
733
|
if (d.value <= y.value)
|
|
733
|
-
return oe(d.value,
|
|
734
|
+
return oe(d.value, f.value);
|
|
734
735
|
const p = y.value % 2 === 0, x = p ? y.value / 2 : Math.floor(y.value / 2), g = p ? x : x + 1, w = d.value - x;
|
|
735
736
|
if (g - n.value >= 0)
|
|
736
|
-
return [...oe(Math.max(1, y.value - 1),
|
|
737
|
+
return [...oe(Math.max(1, y.value - 1), f.value), e.ellipsis, d.value];
|
|
737
738
|
if (n.value - w >= (p ? 1 : 0)) {
|
|
738
|
-
const T = y.value - 1,
|
|
739
|
-
return [
|
|
739
|
+
const T = y.value - 1, N = d.value - T + f.value;
|
|
740
|
+
return [f.value, e.ellipsis, ...oe(T, N)];
|
|
740
741
|
} else {
|
|
741
|
-
const T = Math.max(1, y.value - 2),
|
|
742
|
-
return [
|
|
742
|
+
const T = Math.max(1, y.value - 2), N = T === 1 ? n.value : n.value - Math.ceil(T / 2) + f.value;
|
|
743
|
+
return [f.value, e.ellipsis, ...oe(T, N), e.ellipsis, d.value];
|
|
743
744
|
}
|
|
744
745
|
});
|
|
745
|
-
function
|
|
746
|
+
function V(p, x, g) {
|
|
746
747
|
p.preventDefault(), n.value = x, g && l(g, x);
|
|
747
748
|
}
|
|
748
749
|
const {
|
|
749
750
|
refs: h,
|
|
750
751
|
updateRef: I
|
|
751
|
-
} =
|
|
752
|
-
|
|
752
|
+
} = Ca();
|
|
753
|
+
Se({
|
|
753
754
|
VPaginationBtn: {
|
|
754
755
|
color: C(() => e.color),
|
|
755
756
|
border: C(() => e.border),
|
|
@@ -760,7 +761,7 @@ const Ca = _({
|
|
|
760
761
|
elevation: C(() => e.elevation)
|
|
761
762
|
}
|
|
762
763
|
});
|
|
763
|
-
const D =
|
|
764
|
+
const D = F(() => v.value.map((p, x) => {
|
|
764
765
|
const g = (w) => I(w, x);
|
|
765
766
|
if (typeof p == "string")
|
|
766
767
|
return {
|
|
@@ -788,57 +789,57 @@ const Ca = _({
|
|
|
788
789
|
color: w ? e.activeColor : e.color,
|
|
789
790
|
"aria-current": w,
|
|
790
791
|
"aria-label": r(w ? e.currentPageAriaLabel : e.pageAriaLabel, p),
|
|
791
|
-
onClick: (T) =>
|
|
792
|
+
onClick: (T) => V(T, p)
|
|
792
793
|
}
|
|
793
794
|
};
|
|
794
795
|
}
|
|
795
|
-
})), P =
|
|
796
|
-
const p = !!e.disabled || n.value <=
|
|
796
|
+
})), P = F(() => {
|
|
797
|
+
const p = !!e.disabled || n.value <= f.value, x = !!e.disabled || n.value >= f.value + d.value - 1;
|
|
797
798
|
return {
|
|
798
799
|
first: e.showFirstLastPage ? {
|
|
799
800
|
icon: u.value ? e.lastIcon : e.firstIcon,
|
|
800
|
-
onClick: (g) =>
|
|
801
|
+
onClick: (g) => V(g, f.value, "first"),
|
|
801
802
|
disabled: p,
|
|
802
803
|
"aria-label": r(e.firstAriaLabel),
|
|
803
804
|
"aria-disabled": p
|
|
804
805
|
} : void 0,
|
|
805
806
|
prev: {
|
|
806
807
|
icon: u.value ? e.nextIcon : e.prevIcon,
|
|
807
|
-
onClick: (g) =>
|
|
808
|
+
onClick: (g) => V(g, n.value - 1, "prev"),
|
|
808
809
|
disabled: p,
|
|
809
810
|
"aria-label": r(e.previousAriaLabel),
|
|
810
811
|
"aria-disabled": p
|
|
811
812
|
},
|
|
812
813
|
next: {
|
|
813
814
|
icon: u.value ? e.prevIcon : e.nextIcon,
|
|
814
|
-
onClick: (g) =>
|
|
815
|
+
onClick: (g) => V(g, n.value + 1, "next"),
|
|
815
816
|
disabled: x,
|
|
816
817
|
"aria-label": r(e.nextAriaLabel),
|
|
817
818
|
"aria-disabled": x
|
|
818
819
|
},
|
|
819
820
|
last: e.showFirstLastPage ? {
|
|
820
821
|
icon: u.value ? e.firstIcon : e.lastIcon,
|
|
821
|
-
onClick: (g) =>
|
|
822
|
+
onClick: (g) => V(g, f.value + d.value - 1, "last"),
|
|
822
823
|
disabled: x,
|
|
823
824
|
"aria-label": r(e.lastAriaLabel),
|
|
824
825
|
"aria-disabled": x
|
|
825
826
|
} : void 0
|
|
826
827
|
};
|
|
827
828
|
});
|
|
828
|
-
function
|
|
829
|
-
const p = n.value -
|
|
829
|
+
function L() {
|
|
830
|
+
const p = n.value - f.value;
|
|
830
831
|
h.value[p]?.$el.focus();
|
|
831
832
|
}
|
|
832
|
-
function
|
|
833
|
-
p.key ===
|
|
833
|
+
function R(p) {
|
|
834
|
+
p.key === Be.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Ce(L)) : p.key === Be.right && !e.disabled && n.value < f.value + d.value - 1 && (n.value = n.value + 1, Ce(L));
|
|
834
835
|
}
|
|
835
836
|
return K(() => k(e.tag, {
|
|
836
837
|
ref: m,
|
|
837
838
|
class: G(["v-pagination", s.value, e.class]),
|
|
838
|
-
style:
|
|
839
|
+
style: ke(e.style),
|
|
839
840
|
role: "navigation",
|
|
840
841
|
"aria-label": r(e.ariaLabel),
|
|
841
|
-
onKeydown:
|
|
842
|
+
onKeydown: R,
|
|
842
843
|
"data-test": "v-pagination-root"
|
|
843
844
|
}, {
|
|
844
845
|
default: () => [S("ul", {
|
|
@@ -880,21 +881,21 @@ const Ca = _({
|
|
|
880
881
|
}, P.value.last), null)])])]
|
|
881
882
|
})), {};
|
|
882
883
|
}
|
|
883
|
-
}),
|
|
884
|
+
}), ot = _({
|
|
884
885
|
prevIcon: {
|
|
885
|
-
type:
|
|
886
|
+
type: O,
|
|
886
887
|
default: "$prev"
|
|
887
888
|
},
|
|
888
889
|
nextIcon: {
|
|
889
|
-
type:
|
|
890
|
+
type: O,
|
|
890
891
|
default: "$next"
|
|
891
892
|
},
|
|
892
893
|
firstIcon: {
|
|
893
|
-
type:
|
|
894
|
+
type: O,
|
|
894
895
|
default: "$first"
|
|
895
896
|
},
|
|
896
897
|
lastIcon: {
|
|
897
|
-
type:
|
|
898
|
+
type: O,
|
|
898
899
|
default: "$last"
|
|
899
900
|
},
|
|
900
901
|
itemsPerPageText: {
|
|
@@ -941,9 +942,9 @@ const Ca = _({
|
|
|
941
942
|
}]
|
|
942
943
|
},
|
|
943
944
|
showCurrentPage: Boolean
|
|
944
|
-
}, "VDataTableFooter"),
|
|
945
|
+
}, "VDataTableFooter"), Ee = $()({
|
|
945
946
|
name: "VDataTableFooter",
|
|
946
|
-
props:
|
|
947
|
+
props: ot(),
|
|
947
948
|
setup(e, t) {
|
|
948
949
|
let {
|
|
949
950
|
slots: a
|
|
@@ -957,8 +958,8 @@ const Ca = _({
|
|
|
957
958
|
stopIndex: u,
|
|
958
959
|
itemsLength: s,
|
|
959
960
|
itemsPerPage: i,
|
|
960
|
-
setItemsPerPage:
|
|
961
|
-
} =
|
|
961
|
+
setItemsPerPage: c
|
|
962
|
+
} = pa(), m = F(() => e.itemsPerPageOptions.map((d) => typeof d == "number" ? {
|
|
962
963
|
value: d,
|
|
963
964
|
title: d === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(d)
|
|
964
965
|
} : {
|
|
@@ -966,17 +967,17 @@ const Ca = _({
|
|
|
966
967
|
title: isNaN(Number(d.title)) ? l(d.title) : d.title
|
|
967
968
|
}));
|
|
968
969
|
return K(() => {
|
|
969
|
-
const d =
|
|
970
|
+
const d = Ae.filterProps(e);
|
|
970
971
|
return S("div", {
|
|
971
972
|
class: "v-data-table-footer"
|
|
972
973
|
}, [a.prepend?.(), S("div", {
|
|
973
974
|
class: "v-data-table-footer__items-per-page"
|
|
974
975
|
}, [S("span", {
|
|
975
976
|
"aria-label": l(e.itemsPerPageText)
|
|
976
|
-
}, [l(e.itemsPerPageText)]), k(
|
|
977
|
+
}, [l(e.itemsPerPageText)]), k(Qe, {
|
|
977
978
|
items: m.value,
|
|
978
979
|
modelValue: i.value,
|
|
979
|
-
"onUpdate:modelValue": (
|
|
980
|
+
"onUpdate:modelValue": (f) => c(Number(f)),
|
|
980
981
|
density: "compact",
|
|
981
982
|
variant: "outlined",
|
|
982
983
|
hideDetails: !0
|
|
@@ -984,9 +985,9 @@ const Ca = _({
|
|
|
984
985
|
class: "v-data-table-footer__info"
|
|
985
986
|
}, [S("div", null, [l(e.pageText, s.value ? o.value + 1 : 0, u.value, s.value)])]), S("div", {
|
|
986
987
|
class: "v-data-table-footer__pagination"
|
|
987
|
-
}, [k(
|
|
988
|
+
}, [k(Ae, B({
|
|
988
989
|
modelValue: n.value,
|
|
989
|
-
"onUpdate:modelValue": (
|
|
990
|
+
"onUpdate:modelValue": (f) => n.value = f,
|
|
990
991
|
density: "comfortable",
|
|
991
992
|
firstAriaLabel: e.firstPageLabel,
|
|
992
993
|
lastAriaLabel: e.lastPageLabel,
|
|
@@ -1000,7 +1001,7 @@ const Ca = _({
|
|
|
1000
1001
|
}, d), null)])]);
|
|
1001
1002
|
}), {};
|
|
1002
1003
|
}
|
|
1003
|
-
}), te =
|
|
1004
|
+
}), te = Wt({
|
|
1004
1005
|
align: {
|
|
1005
1006
|
type: String,
|
|
1006
1007
|
default: "start"
|
|
@@ -1047,13 +1048,13 @@ const Ca = _({
|
|
|
1047
1048
|
}, {
|
|
1048
1049
|
default: () => [a.default?.()]
|
|
1049
1050
|
});
|
|
1050
|
-
}),
|
|
1051
|
+
}), Ba = _({
|
|
1051
1052
|
headers: Array
|
|
1052
|
-
}, "DataTable-header"),
|
|
1053
|
+
}, "DataTable-header"), it = Symbol.for("vuetify:data-table-headers"), ut = {
|
|
1053
1054
|
title: "",
|
|
1054
1055
|
sortable: !1
|
|
1055
|
-
},
|
|
1056
|
-
...
|
|
1056
|
+
}, Oa = {
|
|
1057
|
+
...ut,
|
|
1057
1058
|
width: 48
|
|
1058
1059
|
};
|
|
1059
1060
|
function La() {
|
|
@@ -1089,32 +1090,32 @@ function La() {
|
|
|
1089
1090
|
dequeue: () => t.shift()
|
|
1090
1091
|
};
|
|
1091
1092
|
}
|
|
1092
|
-
function
|
|
1093
|
+
function we(e) {
|
|
1093
1094
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1094
1095
|
if (!e.children)
|
|
1095
1096
|
t.push(e);
|
|
1096
1097
|
else
|
|
1097
1098
|
for (const a of e.children)
|
|
1098
|
-
|
|
1099
|
+
we(a, t);
|
|
1099
1100
|
return t;
|
|
1100
1101
|
}
|
|
1101
|
-
function
|
|
1102
|
+
function dt(e) {
|
|
1102
1103
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();
|
|
1103
1104
|
for (const a of e)
|
|
1104
|
-
a.key && t.add(a.key), a.children &&
|
|
1105
|
+
a.key && t.add(a.key), a.children && dt(a.children, t);
|
|
1105
1106
|
return t;
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
+
function Aa(e) {
|
|
1108
1109
|
if (e.key) {
|
|
1109
|
-
if (e.key === "data-table-group") return
|
|
1110
|
-
if (["data-table-expand", "data-table-select"].includes(e.key)) return
|
|
1110
|
+
if (e.key === "data-table-group") return ut;
|
|
1111
|
+
if (["data-table-expand", "data-table-select"].includes(e.key)) return Oa;
|
|
1111
1112
|
}
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function Te(e) {
|
|
1114
1115
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1115
|
-
return e.children ? Math.max(t, ...e.children.map((a) =>
|
|
1116
|
+
return e.children ? Math.max(t, ...e.children.map((a) => Te(a, t + 1))) : t;
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
+
function Ea(e) {
|
|
1118
1119
|
let t = !1;
|
|
1119
1120
|
function a(r, o) {
|
|
1120
1121
|
let u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
@@ -1128,7 +1129,7 @@ function Aa(e) {
|
|
|
1128
1129
|
for (let s = 0; s < r.children.length; s++)
|
|
1129
1130
|
a(r.children[s], o, o);
|
|
1130
1131
|
else
|
|
1131
|
-
!t && o === "start" ? r.lastFixed = !0 : !t && o === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ?
|
|
1132
|
+
!t && o === "start" ? r.lastFixed = !0 : !t && o === "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;
|
|
1132
1133
|
else if (r.children)
|
|
1133
1134
|
if (o === "start")
|
|
1134
1135
|
for (let s = r.children.length - 1; s >= 0; s--)
|
|
@@ -1145,32 +1146,32 @@ function Aa(e) {
|
|
|
1145
1146
|
a(e[r], "end");
|
|
1146
1147
|
let l = 0;
|
|
1147
1148
|
for (let r = 0; r < e.length; r++)
|
|
1148
|
-
l =
|
|
1149
|
+
l = ct(e[r], l);
|
|
1149
1150
|
let n = 0;
|
|
1150
1151
|
for (let r = e.length - 1; r >= 0; r--)
|
|
1151
|
-
n =
|
|
1152
|
+
n = ft(e[r], n);
|
|
1152
1153
|
}
|
|
1153
|
-
function
|
|
1154
|
+
function ct(e) {
|
|
1154
1155
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1155
1156
|
if (!e) return t;
|
|
1156
1157
|
if (e.children) {
|
|
1157
1158
|
e.fixedOffset = t;
|
|
1158
1159
|
for (const a of e.children)
|
|
1159
|
-
t =
|
|
1160
|
+
t = ct(a, t);
|
|
1160
1161
|
} else e.fixed && e.fixed !== "end" && (e.fixedOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1161
1162
|
return t;
|
|
1162
1163
|
}
|
|
1163
|
-
function
|
|
1164
|
+
function ft(e) {
|
|
1164
1165
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1165
1166
|
if (!e) return t;
|
|
1166
1167
|
if (e.children) {
|
|
1167
1168
|
e.fixedEndOffset = t;
|
|
1168
1169
|
for (const a of e.children)
|
|
1169
|
-
t =
|
|
1170
|
+
t = ft(a, t);
|
|
1170
1171
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1171
1172
|
return t;
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
+
function Ra(e, t) {
|
|
1174
1175
|
const a = [];
|
|
1175
1176
|
let l = 0;
|
|
1176
1177
|
const n = La(e);
|
|
@@ -1181,38 +1182,38 @@ function Ea(e, t) {
|
|
|
1181
1182
|
for (; o > 0; ) {
|
|
1182
1183
|
const {
|
|
1183
1184
|
element: i,
|
|
1184
|
-
priority:
|
|
1185
|
-
} = n.dequeue(), m = t - l -
|
|
1185
|
+
priority: c
|
|
1186
|
+
} = n.dequeue(), m = t - l - Te(i);
|
|
1186
1187
|
if (u.push({
|
|
1187
1188
|
...i,
|
|
1188
1189
|
rowspan: m ?? 1,
|
|
1189
|
-
colspan: i.children ?
|
|
1190
|
+
colspan: i.children ? we(i).length : 1
|
|
1190
1191
|
}), i.children)
|
|
1191
1192
|
for (const d of i.children) {
|
|
1192
|
-
const
|
|
1193
|
-
n.enqueue(d, l + m +
|
|
1193
|
+
const f = c % 1 + s / Math.pow(10, l + 2);
|
|
1194
|
+
n.enqueue(d, l + m + f);
|
|
1194
1195
|
}
|
|
1195
1196
|
s += 1, o -= 1;
|
|
1196
1197
|
}
|
|
1197
1198
|
l += 1, a.push(u);
|
|
1198
1199
|
}
|
|
1199
1200
|
return {
|
|
1200
|
-
columns: e.map((o) =>
|
|
1201
|
+
columns: e.map((o) => we(o)).flat(),
|
|
1201
1202
|
headers: a
|
|
1202
1203
|
};
|
|
1203
1204
|
}
|
|
1204
|
-
function
|
|
1205
|
+
function vt(e) {
|
|
1205
1206
|
const t = [];
|
|
1206
1207
|
for (const a of e) {
|
|
1207
1208
|
const l = {
|
|
1208
|
-
...
|
|
1209
|
+
...Aa(a),
|
|
1209
1210
|
...a
|
|
1210
1211
|
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, o = {
|
|
1211
1212
|
...l,
|
|
1212
1213
|
key: n,
|
|
1213
1214
|
value: r,
|
|
1214
1215
|
sortable: l.sortable ?? (l.key != null || !!l.sort),
|
|
1215
|
-
children: l.children ?
|
|
1216
|
+
children: l.children ? vt(l.children) : void 0
|
|
1216
1217
|
};
|
|
1217
1218
|
t.push(o);
|
|
1218
1219
|
}
|
|
@@ -1220,24 +1221,24 @@ function ft(e) {
|
|
|
1220
1221
|
}
|
|
1221
1222
|
function Na(e, t) {
|
|
1222
1223
|
const a = j([]), l = j([]), n = j({}), r = j({}), o = j({});
|
|
1223
|
-
|
|
1224
|
+
je(() => {
|
|
1224
1225
|
const i = (e.headers || Object.keys(e.items[0] ?? {}).map((b) => ({
|
|
1225
1226
|
key: b,
|
|
1226
|
-
title:
|
|
1227
|
-
}))).slice(),
|
|
1228
|
-
t?.groupBy?.value.length && !
|
|
1227
|
+
title: _t(b)
|
|
1228
|
+
}))).slice(), c = dt(i);
|
|
1229
|
+
t?.groupBy?.value.length && !c.has("data-table-group") && i.unshift({
|
|
1229
1230
|
key: "data-table-group",
|
|
1230
1231
|
title: "Group"
|
|
1231
|
-
}), t?.showSelect?.value && !
|
|
1232
|
+
}), t?.showSelect?.value && !c.has("data-table-select") && i.unshift({
|
|
1232
1233
|
key: "data-table-select"
|
|
1233
|
-
}), t?.showExpand?.value && !
|
|
1234
|
+
}), t?.showExpand?.value && !c.has("data-table-expand") && i.push({
|
|
1234
1235
|
key: "data-table-expand"
|
|
1235
1236
|
});
|
|
1236
|
-
const m =
|
|
1237
|
-
|
|
1238
|
-
const d = Math.max(...m.map((b) =>
|
|
1239
|
-
a.value =
|
|
1240
|
-
const y =
|
|
1237
|
+
const m = vt(i);
|
|
1238
|
+
Ea(m);
|
|
1239
|
+
const d = Math.max(...m.map((b) => Te(b))) + 1, f = Ra(m, d);
|
|
1240
|
+
a.value = f.headers, l.value = f.columns;
|
|
1241
|
+
const y = f.headers.flat(1);
|
|
1241
1242
|
for (const b of y)
|
|
1242
1243
|
b.key && (b.sortable && (b.sort && (n.value[b.key] = b.sort), b.sortRaw && (r.value[b.key] = b.sortRaw)), b.filter && (o.value[b.key] = b.filter));
|
|
1243
1244
|
});
|
|
@@ -1248,24 +1249,24 @@ function Na(e, t) {
|
|
|
1248
1249
|
sortRawFunctions: r,
|
|
1249
1250
|
filterFunctions: o
|
|
1250
1251
|
};
|
|
1251
|
-
return Y(
|
|
1252
|
+
return Y(it, u), u;
|
|
1252
1253
|
}
|
|
1253
|
-
function
|
|
1254
|
-
const e = Q(
|
|
1254
|
+
function ge() {
|
|
1255
|
+
const e = Q(it);
|
|
1255
1256
|
if (!e) throw new Error("Missing headers!");
|
|
1256
1257
|
return e;
|
|
1257
1258
|
}
|
|
1258
|
-
const
|
|
1259
|
+
const gt = _({
|
|
1259
1260
|
color: String,
|
|
1260
1261
|
disableSort: Boolean,
|
|
1261
1262
|
fixedHeader: Boolean,
|
|
1262
1263
|
multiSort: Boolean,
|
|
1263
1264
|
sortAscIcon: {
|
|
1264
|
-
type:
|
|
1265
|
+
type: O,
|
|
1265
1266
|
default: "$sortAsc"
|
|
1266
1267
|
},
|
|
1267
1268
|
sortDescIcon: {
|
|
1268
|
-
type:
|
|
1269
|
+
type: O,
|
|
1269
1270
|
default: "$sortDesc"
|
|
1270
1271
|
},
|
|
1271
1272
|
headerProps: {
|
|
@@ -1275,10 +1276,10 @@ const vt = _({
|
|
|
1275
1276
|
sticky: Boolean,
|
|
1276
1277
|
...ae(),
|
|
1277
1278
|
...Ve(),
|
|
1278
|
-
...
|
|
1279
|
-
}, "VDataTableHeaders"),
|
|
1279
|
+
...Qt()
|
|
1280
|
+
}, "VDataTableHeaders"), Re = $()({
|
|
1280
1281
|
name: "VDataTableHeaders",
|
|
1281
|
-
props:
|
|
1282
|
+
props: gt(),
|
|
1282
1283
|
setup(e, t) {
|
|
1283
1284
|
let {
|
|
1284
1285
|
slots: a
|
|
@@ -1289,17 +1290,17 @@ const vt = _({
|
|
|
1289
1290
|
toggleSort: n,
|
|
1290
1291
|
sortBy: r,
|
|
1291
1292
|
isSorted: o
|
|
1292
|
-
} =
|
|
1293
|
+
} = st(), {
|
|
1293
1294
|
someSelected: u,
|
|
1294
1295
|
allSelected: s,
|
|
1295
1296
|
selectAll: i,
|
|
1296
|
-
showSelectAll:
|
|
1297
|
-
} =
|
|
1297
|
+
showSelectAll: c
|
|
1298
|
+
} = ve(), {
|
|
1298
1299
|
columns: m,
|
|
1299
1300
|
headers: d
|
|
1300
|
-
} =
|
|
1301
|
-
loaderClasses:
|
|
1302
|
-
} =
|
|
1301
|
+
} = ge(), {
|
|
1302
|
+
loaderClasses: f
|
|
1303
|
+
} = Ut(e);
|
|
1303
1304
|
function y(x, g) {
|
|
1304
1305
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1305
1306
|
const w = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
@@ -1318,12 +1319,12 @@ const vt = _({
|
|
|
1318
1319
|
return g ? g.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
|
|
1319
1320
|
}
|
|
1320
1321
|
const {
|
|
1321
|
-
backgroundColorClasses:
|
|
1322
|
+
backgroundColorClasses: V,
|
|
1322
1323
|
backgroundColorStyles: h
|
|
1323
|
-
} =
|
|
1324
|
+
} = Je(() => e.color), {
|
|
1324
1325
|
displayClasses: I,
|
|
1325
1326
|
mobile: D
|
|
1326
|
-
} =
|
|
1327
|
+
} = fe(e), P = F(() => ({
|
|
1327
1328
|
headers: d.value,
|
|
1328
1329
|
columns: m.value,
|
|
1329
1330
|
toggleSort: n,
|
|
@@ -1333,15 +1334,15 @@ const vt = _({
|
|
|
1333
1334
|
allSelected: s.value,
|
|
1334
1335
|
selectAll: i,
|
|
1335
1336
|
getSortIcon: v
|
|
1336
|
-
})),
|
|
1337
|
+
})), L = F(() => ["v-data-table__th", {
|
|
1337
1338
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1338
|
-
}, I.value,
|
|
1339
|
+
}, I.value, f.value]), R = (x) => {
|
|
1339
1340
|
let {
|
|
1340
1341
|
column: g,
|
|
1341
1342
|
x: w,
|
|
1342
1343
|
y: T
|
|
1343
1344
|
} = x;
|
|
1344
|
-
const
|
|
1345
|
+
const N = g.key === "data-table-select" || g.key === "data-table-expand", le = g.key === "data-table-group" && g.width === 0 && !g.title, be = B(e.headerProps ?? {}, g.headerProps ?? {});
|
|
1345
1346
|
return k(te, B({
|
|
1346
1347
|
tag: "th",
|
|
1347
1348
|
align: g.align,
|
|
@@ -1349,7 +1350,7 @@ const vt = _({
|
|
|
1349
1350
|
"v-data-table__th--sortable": g.sortable && !e.disableSort,
|
|
1350
1351
|
"v-data-table__th--sorted": o(g),
|
|
1351
1352
|
"v-data-table__th--fixed": g.fixed
|
|
1352
|
-
}, ...
|
|
1353
|
+
}, ...L.value],
|
|
1353
1354
|
style: {
|
|
1354
1355
|
width: A(g.width),
|
|
1355
1356
|
minWidth: A(g.minWidth),
|
|
@@ -1362,12 +1363,12 @@ const vt = _({
|
|
|
1362
1363
|
nowrap: g.nowrap,
|
|
1363
1364
|
lastFixed: g.lastFixed,
|
|
1364
1365
|
firstFixedEnd: g.firstFixedEnd,
|
|
1365
|
-
noPadding:
|
|
1366
|
+
noPadding: N,
|
|
1366
1367
|
empty: le,
|
|
1367
1368
|
tabindex: g.sortable ? 0 : void 0,
|
|
1368
1369
|
onClick: g.sortable ? () => n(g) : void 0,
|
|
1369
1370
|
onKeydown: g.sortable ? (M) => b(M, g) : void 0
|
|
1370
|
-
},
|
|
1371
|
+
}, be), {
|
|
1371
1372
|
default: () => {
|
|
1372
1373
|
const M = `header.${g.key}`, X = {
|
|
1373
1374
|
column: g,
|
|
@@ -1379,37 +1380,37 @@ const vt = _({
|
|
|
1379
1380
|
allSelected: s.value,
|
|
1380
1381
|
getSortIcon: v
|
|
1381
1382
|
};
|
|
1382
|
-
return a[M] ? a[M](X) : le ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (
|
|
1383
|
+
return a[M] ? a[M](X) : le ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (c.value && k(De, {
|
|
1383
1384
|
density: e.density,
|
|
1384
1385
|
modelValue: s.value,
|
|
1385
1386
|
indeterminate: u.value && !s.value,
|
|
1386
1387
|
"onUpdate:modelValue": i
|
|
1387
1388
|
}, null)) : S("div", {
|
|
1388
1389
|
class: "v-data-table-header__content"
|
|
1389
|
-
}, [S("span", null, [g.title]), g.sortable && !e.disableSort && k(
|
|
1390
|
+
}, [S("span", null, [g.title]), g.sortable && !e.disableSort && k(Oe, {
|
|
1390
1391
|
key: "icon",
|
|
1391
1392
|
class: "v-data-table-header__sort-icon",
|
|
1392
1393
|
icon: v(g)
|
|
1393
1394
|
}, null), e.multiSort && o(g) && S("div", {
|
|
1394
1395
|
key: "badge",
|
|
1395
|
-
class: G(["v-data-table-header__sort-badge", ...
|
|
1396
|
-
style:
|
|
1397
|
-
}, [r.value.findIndex((
|
|
1396
|
+
class: G(["v-data-table-header__sort-badge", ...V.value]),
|
|
1397
|
+
style: ke(h.value)
|
|
1398
|
+
}, [r.value.findIndex((he) => he.key === g.key) + 1])]);
|
|
1398
1399
|
}
|
|
1399
1400
|
});
|
|
1400
1401
|
}, p = () => {
|
|
1401
|
-
const x =
|
|
1402
|
+
const x = F(() => m.value.filter((w) => w?.sortable && !e.disableSort)), g = F(() => {
|
|
1402
1403
|
if (m.value.find((T) => T.key === "data-table-select") != null)
|
|
1403
1404
|
return s.value ? "$checkboxOn" : u.value ? "$checkboxIndeterminate" : "$checkboxOff";
|
|
1404
1405
|
});
|
|
1405
1406
|
return k(te, B({
|
|
1406
1407
|
tag: "th",
|
|
1407
|
-
class: [...
|
|
1408
|
+
class: [...L.value],
|
|
1408
1409
|
colspan: d.value.length + 1
|
|
1409
1410
|
}, e.headerProps), {
|
|
1410
1411
|
default: () => [S("div", {
|
|
1411
1412
|
class: "v-data-table-header__content"
|
|
1412
|
-
}, [k(
|
|
1413
|
+
}, [k(Qe, {
|
|
1413
1414
|
chips: !0,
|
|
1414
1415
|
class: "v-data-table__td-sort-select",
|
|
1415
1416
|
clearable: !0,
|
|
@@ -1422,13 +1423,13 @@ const vt = _({
|
|
|
1422
1423
|
appendIcon: g.value,
|
|
1423
1424
|
"onClick:append": () => i(!s.value)
|
|
1424
1425
|
}, {
|
|
1425
|
-
chip: (w) => k(
|
|
1426
|
+
chip: (w) => k(ta, {
|
|
1426
1427
|
onClick: w.item.raw?.sortable ? () => n(w.item.raw) : void 0,
|
|
1427
1428
|
onMousedown: (T) => {
|
|
1428
1429
|
T.preventDefault(), T.stopPropagation();
|
|
1429
1430
|
}
|
|
1430
1431
|
}, {
|
|
1431
|
-
default: () => [w.item.title, k(
|
|
1432
|
+
default: () => [w.item.title, k(Oe, {
|
|
1432
1433
|
class: G(["v-data-table__td-sort-icon", o(w.item.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1433
1434
|
icon: v(w.item.raw),
|
|
1434
1435
|
size: "small"
|
|
@@ -1437,7 +1438,7 @@ const vt = _({
|
|
|
1437
1438
|
})])]
|
|
1438
1439
|
});
|
|
1439
1440
|
};
|
|
1440
|
-
K(() => D.value ? S("tr", null, [k(p, null, null)]) : S(U, null, [a.headers ? a.headers(P.value) : d.value.map((x, g) => S("tr", null, [x.map((w, T) => k(
|
|
1441
|
+
K(() => D.value ? S("tr", null, [k(p, null, null)]) : S(U, null, [a.headers ? a.headers(P.value) : d.value.map((x, g) => S("tr", null, [x.map((w, T) => k(R, {
|
|
1441
1442
|
column: w,
|
|
1442
1443
|
x: T,
|
|
1443
1444
|
y: g
|
|
@@ -1445,7 +1446,7 @@ const vt = _({
|
|
|
1445
1446
|
class: "v-data-table-progress"
|
|
1446
1447
|
}, [S("th", {
|
|
1447
1448
|
colspan: m.value.length
|
|
1448
|
-
}, [k(
|
|
1449
|
+
}, [k(Jt, {
|
|
1449
1450
|
name: "v-data-table-progress",
|
|
1450
1451
|
absolute: !0,
|
|
1451
1452
|
active: !0,
|
|
@@ -1455,23 +1456,23 @@ const vt = _({
|
|
|
1455
1456
|
default: a.loader
|
|
1456
1457
|
})])])]));
|
|
1457
1458
|
}
|
|
1458
|
-
}),
|
|
1459
|
+
}), mt = _({
|
|
1459
1460
|
item: {
|
|
1460
1461
|
type: Object,
|
|
1461
1462
|
required: !0
|
|
1462
1463
|
},
|
|
1463
1464
|
groupCollapseIcon: {
|
|
1464
|
-
type:
|
|
1465
|
+
type: O,
|
|
1465
1466
|
default: "$tableGroupCollapse"
|
|
1466
1467
|
},
|
|
1467
1468
|
groupExpandIcon: {
|
|
1468
|
-
type:
|
|
1469
|
+
type: O,
|
|
1469
1470
|
default: "$tableGroupExpand"
|
|
1470
1471
|
},
|
|
1471
1472
|
...ae()
|
|
1472
|
-
}, "VDataTableGroupHeaderRow"),
|
|
1473
|
+
}, "VDataTableGroupHeaderRow"), $a = $()({
|
|
1473
1474
|
name: "VDataTableGroupHeaderRow",
|
|
1474
|
-
props:
|
|
1475
|
+
props: mt(),
|
|
1475
1476
|
setup(e, t) {
|
|
1476
1477
|
let {
|
|
1477
1478
|
slots: a
|
|
@@ -1480,13 +1481,13 @@ const vt = _({
|
|
|
1480
1481
|
isGroupOpen: l,
|
|
1481
1482
|
toggleGroup: n,
|
|
1482
1483
|
extractRows: r
|
|
1483
|
-
} =
|
|
1484
|
+
} = qe(), {
|
|
1484
1485
|
isSelected: o,
|
|
1485
1486
|
isSomeSelected: u,
|
|
1486
1487
|
select: s
|
|
1487
|
-
} =
|
|
1488
|
+
} = ve(), {
|
|
1488
1489
|
columns: i
|
|
1489
|
-
} =
|
|
1490
|
+
} = ge(), c = F(() => r([e.item])), m = C(() => i.value.length - (i.value.some((d) => d.key === "data-table-select") ? 1 : 0));
|
|
1490
1491
|
return () => S("tr", {
|
|
1491
1492
|
class: "v-data-table-group-header-row",
|
|
1492
1493
|
style: {
|
|
@@ -1494,12 +1495,12 @@ const vt = _({
|
|
|
1494
1495
|
}
|
|
1495
1496
|
}, [i.value.map((d) => {
|
|
1496
1497
|
if (d.key === "data-table-group") {
|
|
1497
|
-
const
|
|
1498
|
+
const f = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, y = () => n(e.item);
|
|
1498
1499
|
return a["data-table-group"]?.({
|
|
1499
1500
|
item: e.item,
|
|
1500
|
-
count:
|
|
1501
|
+
count: c.value.length,
|
|
1501
1502
|
props: {
|
|
1502
|
-
icon:
|
|
1503
|
+
icon: f,
|
|
1503
1504
|
onClick: y
|
|
1504
1505
|
}
|
|
1505
1506
|
}) ?? k(te, {
|
|
@@ -1509,15 +1510,15 @@ const vt = _({
|
|
|
1509
1510
|
default: () => [k(W, {
|
|
1510
1511
|
size: "small",
|
|
1511
1512
|
variant: "text",
|
|
1512
|
-
icon:
|
|
1513
|
+
icon: f,
|
|
1513
1514
|
onClick: y
|
|
1514
|
-
}, null), S("span", null, [e.item.value]), S("span", null, [
|
|
1515
|
+
}, null), S("span", null, [e.item.value]), S("span", null, [_e("("), c.value.length, _e(")")])]
|
|
1515
1516
|
});
|
|
1516
1517
|
} else if (d.key === "data-table-select") {
|
|
1517
|
-
const
|
|
1518
|
+
const f = o(c.value), y = u(c.value) && !f, b = (v) => s(c.value, v);
|
|
1518
1519
|
return a["data-table-select"]?.({
|
|
1519
1520
|
props: {
|
|
1520
|
-
modelValue:
|
|
1521
|
+
modelValue: f,
|
|
1521
1522
|
indeterminate: y,
|
|
1522
1523
|
"onUpdate:modelValue": b
|
|
1523
1524
|
}
|
|
@@ -1525,9 +1526,9 @@ const vt = _({
|
|
|
1525
1526
|
class: "v-data-table__td--select-row",
|
|
1526
1527
|
noPadding: !0
|
|
1527
1528
|
}, {
|
|
1528
|
-
default: () => [k(
|
|
1529
|
+
default: () => [k(De, {
|
|
1529
1530
|
density: e.density,
|
|
1530
|
-
modelValue:
|
|
1531
|
+
modelValue: f,
|
|
1531
1532
|
indeterminate: y,
|
|
1532
1533
|
"onUpdate:modelValue": b
|
|
1533
1534
|
}, null)]
|
|
@@ -1536,26 +1537,26 @@ const vt = _({
|
|
|
1536
1537
|
return "";
|
|
1537
1538
|
})]);
|
|
1538
1539
|
}
|
|
1539
|
-
}),
|
|
1540
|
+
}), bt = _({
|
|
1540
1541
|
index: Number,
|
|
1541
1542
|
item: Object,
|
|
1542
1543
|
cellProps: [Object, Function],
|
|
1543
1544
|
collapseIcon: {
|
|
1544
|
-
type:
|
|
1545
|
+
type: O,
|
|
1545
1546
|
default: "$collapse"
|
|
1546
1547
|
},
|
|
1547
1548
|
expandIcon: {
|
|
1548
|
-
type:
|
|
1549
|
+
type: O,
|
|
1549
1550
|
default: "$expand"
|
|
1550
1551
|
},
|
|
1551
|
-
onClick:
|
|
1552
|
-
onContextmenu:
|
|
1553
|
-
onDblclick:
|
|
1552
|
+
onClick: pe(),
|
|
1553
|
+
onContextmenu: pe(),
|
|
1554
|
+
onDblclick: pe(),
|
|
1554
1555
|
...ae(),
|
|
1555
1556
|
...Ve()
|
|
1556
|
-
}, "VDataTableRow"),
|
|
1557
|
+
}, "VDataTableRow"), Ma = $()({
|
|
1557
1558
|
name: "VDataTableRow",
|
|
1558
|
-
props:
|
|
1559
|
+
props: bt(),
|
|
1559
1560
|
setup(e, t) {
|
|
1560
1561
|
let {
|
|
1561
1562
|
slots: a
|
|
@@ -1563,22 +1564,22 @@ const vt = _({
|
|
|
1563
1564
|
const {
|
|
1564
1565
|
displayClasses: l,
|
|
1565
1566
|
mobile: n
|
|
1566
|
-
} =
|
|
1567
|
+
} = fe(e, "v-data-table__tr"), {
|
|
1567
1568
|
isSelected: r,
|
|
1568
1569
|
toggleSelect: o,
|
|
1569
1570
|
someSelected: u,
|
|
1570
1571
|
allSelected: s,
|
|
1571
1572
|
selectAll: i
|
|
1572
|
-
} =
|
|
1573
|
-
isExpanded:
|
|
1573
|
+
} = ve(), {
|
|
1574
|
+
isExpanded: c,
|
|
1574
1575
|
toggleExpand: m
|
|
1575
|
-
} =
|
|
1576
|
+
} = Ye(), {
|
|
1576
1577
|
toggleSort: d,
|
|
1577
|
-
sortBy:
|
|
1578
|
+
sortBy: f,
|
|
1578
1579
|
isSorted: y
|
|
1579
|
-
} =
|
|
1580
|
+
} = st(), {
|
|
1580
1581
|
columns: b
|
|
1581
|
-
} =
|
|
1582
|
+
} = ge();
|
|
1582
1583
|
K(() => S("tr", {
|
|
1583
1584
|
class: G(["v-data-table__tr", {
|
|
1584
1585
|
"v-data-table__tr--clickable": !!(e.onClick || e.onContextmenu || e.onDblclick)
|
|
@@ -1586,27 +1587,27 @@ const vt = _({
|
|
|
1586
1587
|
onClick: e.onClick,
|
|
1587
1588
|
onContextmenu: e.onContextmenu,
|
|
1588
1589
|
onDblclick: e.onDblclick
|
|
1589
|
-
}, [e.item && b.value.map((v,
|
|
1590
|
+
}, [e.item && b.value.map((v, V) => {
|
|
1590
1591
|
const h = e.item, I = `item.${v.key}`, D = `header.${v.key}`, P = {
|
|
1591
1592
|
index: e.index,
|
|
1592
1593
|
item: h.raw,
|
|
1593
1594
|
internalItem: h,
|
|
1594
|
-
value:
|
|
1595
|
+
value: de(h.columns, v.key),
|
|
1595
1596
|
column: v,
|
|
1596
1597
|
isSelected: r,
|
|
1597
1598
|
toggleSelect: o,
|
|
1598
|
-
isExpanded:
|
|
1599
|
+
isExpanded: c,
|
|
1599
1600
|
toggleExpand: m
|
|
1600
|
-
},
|
|
1601
|
+
}, L = {
|
|
1601
1602
|
column: v,
|
|
1602
1603
|
selectAll: i,
|
|
1603
1604
|
isSorted: y,
|
|
1604
1605
|
toggleSort: d,
|
|
1605
|
-
sortBy:
|
|
1606
|
+
sortBy: f.value,
|
|
1606
1607
|
someSelected: u.value,
|
|
1607
1608
|
allSelected: s.value,
|
|
1608
1609
|
getSortIcon: () => ""
|
|
1609
|
-
},
|
|
1610
|
+
}, R = typeof e.cellProps == "function" ? e.cellProps({
|
|
1610
1611
|
index: P.index,
|
|
1611
1612
|
item: P.item,
|
|
1612
1613
|
internalItem: P.internalItem,
|
|
@@ -1635,7 +1636,7 @@ const vt = _({
|
|
|
1635
1636
|
empty: g,
|
|
1636
1637
|
nowrap: v.nowrap,
|
|
1637
1638
|
width: n.value ? void 0 : v.width
|
|
1638
|
-
},
|
|
1639
|
+
}, R, p), {
|
|
1639
1640
|
default: () => {
|
|
1640
1641
|
if (v.key === "data-table-select")
|
|
1641
1642
|
return a["item.data-table-select"]?.({
|
|
@@ -1645,7 +1646,7 @@ const vt = _({
|
|
|
1645
1646
|
modelValue: r([h]),
|
|
1646
1647
|
onClick: re(() => o(h), ["stop"])
|
|
1647
1648
|
}
|
|
1648
|
-
}) ?? k(
|
|
1649
|
+
}) ?? k(De, {
|
|
1649
1650
|
disabled: !h.selectable,
|
|
1650
1651
|
density: e.density,
|
|
1651
1652
|
modelValue: r([h]),
|
|
@@ -1655,29 +1656,29 @@ const vt = _({
|
|
|
1655
1656
|
return a["item.data-table-expand"]?.({
|
|
1656
1657
|
...P,
|
|
1657
1658
|
props: {
|
|
1658
|
-
icon:
|
|
1659
|
+
icon: c(h) ? e.collapseIcon : e.expandIcon,
|
|
1659
1660
|
size: "small",
|
|
1660
1661
|
variant: "text",
|
|
1661
1662
|
onClick: re(() => m(h), ["stop"])
|
|
1662
1663
|
}
|
|
1663
1664
|
}) ?? k(W, {
|
|
1664
|
-
icon:
|
|
1665
|
+
icon: c(h) ? e.collapseIcon : e.expandIcon,
|
|
1665
1666
|
size: "small",
|
|
1666
1667
|
variant: "text",
|
|
1667
1668
|
onClick: re(() => m(h), ["stop"])
|
|
1668
1669
|
}, null);
|
|
1669
1670
|
if (a[I] && !n.value) return a[I](P);
|
|
1670
|
-
const w =
|
|
1671
|
+
const w = Bt(P.value);
|
|
1671
1672
|
return n.value ? S(U, null, [S("div", {
|
|
1672
1673
|
class: "v-data-table__td-title"
|
|
1673
|
-
}, [a[D]?.(
|
|
1674
|
+
}, [a[D]?.(L) ?? v.title]), S("div", {
|
|
1674
1675
|
class: "v-data-table__td-value"
|
|
1675
1676
|
}, [a[I]?.(P) ?? w])]) : w;
|
|
1676
1677
|
}
|
|
1677
1678
|
});
|
|
1678
1679
|
})]));
|
|
1679
1680
|
}
|
|
1680
|
-
}),
|
|
1681
|
+
}), ht = _({
|
|
1681
1682
|
loading: [Boolean, String],
|
|
1682
1683
|
loadingText: {
|
|
1683
1684
|
type: String,
|
|
@@ -1694,13 +1695,13 @@ const vt = _({
|
|
|
1694
1695
|
},
|
|
1695
1696
|
rowProps: [Object, Function],
|
|
1696
1697
|
cellProps: [Object, Function],
|
|
1697
|
-
...
|
|
1698
|
-
...
|
|
1698
|
+
...Pe(bt(), ["collapseIcon", "expandIcon", "density"]),
|
|
1699
|
+
...Pe(mt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
|
|
1699
1700
|
...Ve()
|
|
1700
1701
|
}, "VDataTableRows"), Ne = $()({
|
|
1701
1702
|
name: "VDataTableRows",
|
|
1702
1703
|
inheritAttrs: !1,
|
|
1703
|
-
props:
|
|
1704
|
+
props: ht(),
|
|
1704
1705
|
setup(e, t) {
|
|
1705
1706
|
let {
|
|
1706
1707
|
attrs: a,
|
|
@@ -1708,23 +1709,23 @@ const vt = _({
|
|
|
1708
1709
|
} = t;
|
|
1709
1710
|
const {
|
|
1710
1711
|
columns: n
|
|
1711
|
-
} =
|
|
1712
|
+
} = ge(), {
|
|
1712
1713
|
expandOnClick: r,
|
|
1713
1714
|
toggleExpand: o,
|
|
1714
1715
|
isExpanded: u
|
|
1715
|
-
} =
|
|
1716
|
+
} = Ye(), {
|
|
1716
1717
|
isSelected: s,
|
|
1717
1718
|
toggleSelect: i
|
|
1718
|
-
} =
|
|
1719
|
-
toggleGroup:
|
|
1719
|
+
} = ve(), {
|
|
1720
|
+
toggleGroup: c,
|
|
1720
1721
|
isGroupOpen: m
|
|
1721
|
-
} =
|
|
1722
|
+
} = qe(), {
|
|
1722
1723
|
t: d
|
|
1723
1724
|
} = Z(), {
|
|
1724
|
-
mobile:
|
|
1725
|
-
} =
|
|
1725
|
+
mobile: f
|
|
1726
|
+
} = fe(e);
|
|
1726
1727
|
return K(() => {
|
|
1727
|
-
const y =
|
|
1728
|
+
const y = Pe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
1728
1729
|
return e.loading && (!e.items.length || l.loading) ? S("tr", {
|
|
1729
1730
|
class: "v-data-table-rows-loading",
|
|
1730
1731
|
key: "loading"
|
|
@@ -1745,10 +1746,10 @@ const vt = _({
|
|
|
1745
1746
|
toggleExpand: o,
|
|
1746
1747
|
isSelected: s,
|
|
1747
1748
|
toggleSelect: i,
|
|
1748
|
-
toggleGroup:
|
|
1749
|
+
toggleGroup: c,
|
|
1749
1750
|
isGroupOpen: m
|
|
1750
1751
|
};
|
|
1751
|
-
return l["group-header"] ? l["group-header"](I) : k(
|
|
1752
|
+
return l["group-header"] ? l["group-header"](I) : k($a, B({
|
|
1752
1753
|
key: `group-header_${b.id}`,
|
|
1753
1754
|
item: b
|
|
1754
1755
|
}, Le(a, ":groupHeader", () => I), y), l);
|
|
@@ -1758,11 +1759,11 @@ const vt = _({
|
|
|
1758
1759
|
index: v,
|
|
1759
1760
|
item: b,
|
|
1760
1761
|
columns: n.value,
|
|
1761
|
-
toggleGroup:
|
|
1762
|
+
toggleGroup: c
|
|
1762
1763
|
};
|
|
1763
1764
|
return l["group-summary"]?.(I) ?? "";
|
|
1764
1765
|
}
|
|
1765
|
-
const
|
|
1766
|
+
const V = {
|
|
1766
1767
|
index: v,
|
|
1767
1768
|
item: b.raw,
|
|
1768
1769
|
internalItem: b,
|
|
@@ -1772,7 +1773,7 @@ const vt = _({
|
|
|
1772
1773
|
isSelected: s,
|
|
1773
1774
|
toggleSelect: i
|
|
1774
1775
|
}, h = {
|
|
1775
|
-
...
|
|
1776
|
+
...V,
|
|
1776
1777
|
props: B({
|
|
1777
1778
|
key: `item_${b.key ?? b.index}`,
|
|
1778
1779
|
onClick: r.value ? () => {
|
|
@@ -1784,20 +1785,20 @@ const vt = _({
|
|
|
1784
1785
|
collapseIcon: e.collapseIcon,
|
|
1785
1786
|
expandIcon: e.expandIcon,
|
|
1786
1787
|
density: e.density,
|
|
1787
|
-
mobile:
|
|
1788
|
-
}, Le(a, ":row", () =>
|
|
1789
|
-
item:
|
|
1790
|
-
index:
|
|
1791
|
-
internalItem:
|
|
1788
|
+
mobile: f.value
|
|
1789
|
+
}, Le(a, ":row", () => V), typeof e.rowProps == "function" ? e.rowProps({
|
|
1790
|
+
item: V.item,
|
|
1791
|
+
index: V.index,
|
|
1792
|
+
internalItem: V.internalItem
|
|
1792
1793
|
}) : e.rowProps)
|
|
1793
1794
|
};
|
|
1794
1795
|
return S(U, {
|
|
1795
1796
|
key: h.props.key
|
|
1796
|
-
}, [l.item ? l.item(h) : k(
|
|
1797
|
+
}, [l.item ? l.item(h) : k(Ma, h.props, l), u(b) && l["expanded-row"]?.(V)]);
|
|
1797
1798
|
})]);
|
|
1798
1799
|
}), {};
|
|
1799
1800
|
}
|
|
1800
|
-
}),
|
|
1801
|
+
}), yt = _({
|
|
1801
1802
|
fixedHeader: Boolean,
|
|
1802
1803
|
fixedFooter: Boolean,
|
|
1803
1804
|
height: [Number, String],
|
|
@@ -1807,13 +1808,13 @@ const vt = _({
|
|
|
1807
1808
|
default: null,
|
|
1808
1809
|
validator: (e) => ["even", "odd"].includes(e)
|
|
1809
1810
|
},
|
|
1810
|
-
...
|
|
1811
|
+
...Ue(),
|
|
1811
1812
|
...ae(),
|
|
1812
|
-
...
|
|
1813
|
-
...
|
|
1814
|
-
}, "VTable"),
|
|
1813
|
+
...We(),
|
|
1814
|
+
...Fe()
|
|
1815
|
+
}, "VTable"), $e = $()({
|
|
1815
1816
|
name: "VTable",
|
|
1816
|
-
props:
|
|
1817
|
+
props: yt(),
|
|
1817
1818
|
setup(e, t) {
|
|
1818
1819
|
let {
|
|
1819
1820
|
slots: a,
|
|
@@ -1821,9 +1822,9 @@ const vt = _({
|
|
|
1821
1822
|
} = t;
|
|
1822
1823
|
const {
|
|
1823
1824
|
themeClasses: n
|
|
1824
|
-
} =
|
|
1825
|
+
} = Ie(e), {
|
|
1825
1826
|
densityClasses: r
|
|
1826
|
-
} =
|
|
1827
|
+
} = Xt(e);
|
|
1827
1828
|
return K(() => k(e.tag, {
|
|
1828
1829
|
class: G(["v-table", {
|
|
1829
1830
|
"v-table--fixed-height": !!e.height,
|
|
@@ -1835,7 +1836,7 @@ const vt = _({
|
|
|
1835
1836
|
"v-table--striped-even": e.striped === "even",
|
|
1836
1837
|
"v-table--striped-odd": e.striped === "odd"
|
|
1837
1838
|
}, n.value, r.value, e.class]),
|
|
1838
|
-
style:
|
|
1839
|
+
style: ke(e.style)
|
|
1839
1840
|
}, {
|
|
1840
1841
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1841
1842
|
class: "v-table__wrapper",
|
|
@@ -1845,7 +1846,7 @@ const vt = _({
|
|
|
1845
1846
|
}, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
|
|
1846
1847
|
})), {};
|
|
1847
1848
|
}
|
|
1848
|
-
}),
|
|
1849
|
+
}), Ha = _({
|
|
1849
1850
|
items: {
|
|
1850
1851
|
type: Array,
|
|
1851
1852
|
default: () => []
|
|
@@ -1862,7 +1863,7 @@ const vt = _({
|
|
|
1862
1863
|
cellProps: [Object, Function],
|
|
1863
1864
|
returnObject: Boolean
|
|
1864
1865
|
}, "DataTable-items");
|
|
1865
|
-
function
|
|
1866
|
+
function ja(e, t, a, l) {
|
|
1866
1867
|
const n = e.returnObject ? t : ee(t, e.itemValue), r = ee(t, e.itemSelectable, !0), o = l.reduce((u, s) => (s.key != null && (u[s.key] = ee(t, s.value)), u), {});
|
|
1867
1868
|
return {
|
|
1868
1869
|
type: "item",
|
|
@@ -1874,37 +1875,37 @@ function Ha(e, t, a, l) {
|
|
|
1874
1875
|
raw: t
|
|
1875
1876
|
};
|
|
1876
1877
|
}
|
|
1877
|
-
function
|
|
1878
|
-
return t.map((l, n) =>
|
|
1878
|
+
function Ga(e, t, a) {
|
|
1879
|
+
return t.map((l, n) => ja(e, l, n, a));
|
|
1879
1880
|
}
|
|
1880
|
-
function
|
|
1881
|
+
function Ka(e, t) {
|
|
1881
1882
|
return {
|
|
1882
|
-
items:
|
|
1883
|
+
items: F(() => Ga(e, e.items, t.value))
|
|
1883
1884
|
};
|
|
1884
1885
|
}
|
|
1885
|
-
const
|
|
1886
|
-
...
|
|
1886
|
+
const Wa = _({
|
|
1887
|
+
...ht(),
|
|
1887
1888
|
hideDefaultBody: Boolean,
|
|
1888
1889
|
hideDefaultFooter: Boolean,
|
|
1889
1890
|
hideDefaultHeader: Boolean,
|
|
1890
1891
|
width: [String, Number],
|
|
1891
1892
|
search: String,
|
|
1892
|
-
...
|
|
1893
|
-
...
|
|
1894
|
-
...
|
|
1895
|
-
...
|
|
1896
|
-
...
|
|
1897
|
-
...
|
|
1898
|
-
...
|
|
1899
|
-
...
|
|
1900
|
-
}, "DataTable"),
|
|
1901
|
-
...
|
|
1902
|
-
...
|
|
1903
|
-
...
|
|
1904
|
-
...
|
|
1905
|
-
}, "VDataTable"),
|
|
1893
|
+
...ia(),
|
|
1894
|
+
...da(),
|
|
1895
|
+
...Ba(),
|
|
1896
|
+
...Ha(),
|
|
1897
|
+
...wa(),
|
|
1898
|
+
...Ia(),
|
|
1899
|
+
...gt(),
|
|
1900
|
+
...yt()
|
|
1901
|
+
}, "DataTable"), za = _({
|
|
1902
|
+
...ba(),
|
|
1903
|
+
...Wa(),
|
|
1904
|
+
...ra(),
|
|
1905
|
+
...ot()
|
|
1906
|
+
}, "VDataTable"), tl = $()({
|
|
1906
1907
|
name: "VDataTable",
|
|
1907
|
-
props:
|
|
1908
|
+
props: za(),
|
|
1908
1909
|
emits: {
|
|
1909
1910
|
"update:modelValue": (e) => !0,
|
|
1910
1911
|
"update:page": (e) => !0,
|
|
@@ -1922,19 +1923,19 @@ const Ka = _({
|
|
|
1922
1923
|
} = t;
|
|
1923
1924
|
const {
|
|
1924
1925
|
groupBy: n
|
|
1925
|
-
} =
|
|
1926
|
+
} = ca(e), {
|
|
1926
1927
|
sortBy: r,
|
|
1927
1928
|
multiSort: o,
|
|
1928
1929
|
mustSort: u
|
|
1929
|
-
} =
|
|
1930
|
+
} = Fa(e), {
|
|
1930
1931
|
page: s,
|
|
1931
1932
|
itemsPerPage: i
|
|
1932
|
-
} =
|
|
1933
|
-
disableSort:
|
|
1934
|
-
} =
|
|
1933
|
+
} = ha(e), {
|
|
1934
|
+
disableSort: c
|
|
1935
|
+
} = Ot(e), {
|
|
1935
1936
|
columns: m,
|
|
1936
1937
|
headers: d,
|
|
1937
|
-
sortFunctions:
|
|
1938
|
+
sortFunctions: f,
|
|
1938
1939
|
sortRawFunctions: y,
|
|
1939
1940
|
filterFunctions: b
|
|
1940
1941
|
} = Na(e, {
|
|
@@ -1943,9 +1944,9 @@ const Ka = _({
|
|
|
1943
1944
|
showExpand: C(() => e.showExpand)
|
|
1944
1945
|
}), {
|
|
1945
1946
|
items: v
|
|
1946
|
-
} =
|
|
1947
|
+
} = Ka(e, m), V = C(() => e.search), {
|
|
1947
1948
|
filteredItems: h
|
|
1948
|
-
} =
|
|
1949
|
+
} = oa(e, v, V, {
|
|
1949
1950
|
transform: (H) => H.columns,
|
|
1950
1951
|
customKeyFilter: b
|
|
1951
1952
|
}), {
|
|
@@ -1958,61 +1959,61 @@ const Ka = _({
|
|
|
1958
1959
|
}), {
|
|
1959
1960
|
sortByWithGroups: D,
|
|
1960
1961
|
opened: P,
|
|
1961
|
-
extractRows:
|
|
1962
|
-
isGroupOpen:
|
|
1962
|
+
extractRows: L,
|
|
1963
|
+
isGroupOpen: R,
|
|
1963
1964
|
toggleGroup: p
|
|
1964
|
-
} =
|
|
1965
|
+
} = fa({
|
|
1965
1966
|
groupBy: n,
|
|
1966
1967
|
sortBy: r,
|
|
1967
|
-
disableSort:
|
|
1968
|
+
disableSort: c
|
|
1968
1969
|
}), {
|
|
1969
1970
|
sortedItems: x
|
|
1970
|
-
} =
|
|
1971
|
+
} = Da(e, h, D, {
|
|
1971
1972
|
transform: (H) => ({
|
|
1972
1973
|
...H.raw,
|
|
1973
1974
|
...H.columns
|
|
1974
1975
|
}),
|
|
1975
|
-
sortFunctions:
|
|
1976
|
+
sortFunctions: f,
|
|
1976
1977
|
sortRawFunctions: y
|
|
1977
1978
|
}), {
|
|
1978
1979
|
flatItems: g
|
|
1979
|
-
} =
|
|
1980
|
+
} = ga(x, n, P, () => !!l["group-summary"]), w = F(() => g.value.length), {
|
|
1980
1981
|
startIndex: T,
|
|
1981
|
-
stopIndex:
|
|
1982
|
+
stopIndex: N,
|
|
1982
1983
|
pageCount: le,
|
|
1983
|
-
setItemsPerPage:
|
|
1984
|
-
} =
|
|
1984
|
+
setItemsPerPage: be
|
|
1985
|
+
} = ya({
|
|
1985
1986
|
page: s,
|
|
1986
1987
|
itemsPerPage: i,
|
|
1987
1988
|
itemsLength: w
|
|
1988
1989
|
}), {
|
|
1989
1990
|
paginatedItems: M
|
|
1990
|
-
} =
|
|
1991
|
+
} = xa({
|
|
1991
1992
|
items: g,
|
|
1992
1993
|
startIndex: T,
|
|
1993
|
-
stopIndex:
|
|
1994
|
+
stopIndex: N,
|
|
1994
1995
|
itemsPerPage: i
|
|
1995
|
-
}), X =
|
|
1996
|
-
isSelected:
|
|
1997
|
-
select:
|
|
1998
|
-
selectAll:
|
|
1999
|
-
toggleSelect:
|
|
2000
|
-
someSelected:
|
|
2001
|
-
allSelected:
|
|
2002
|
-
} =
|
|
1996
|
+
}), X = F(() => L(M.value)), {
|
|
1997
|
+
isSelected: he,
|
|
1998
|
+
select: pt,
|
|
1999
|
+
selectAll: xt,
|
|
2000
|
+
toggleSelect: St,
|
|
2001
|
+
someSelected: Pt,
|
|
2002
|
+
allSelected: wt
|
|
2003
|
+
} = ka(e, {
|
|
2003
2004
|
allItems: v,
|
|
2004
2005
|
currentPage: X
|
|
2005
2006
|
}), {
|
|
2006
|
-
isExpanded:
|
|
2007
|
-
toggleExpand:
|
|
2008
|
-
} =
|
|
2009
|
-
|
|
2007
|
+
isExpanded: kt,
|
|
2008
|
+
toggleExpand: It
|
|
2009
|
+
} = ua(e);
|
|
2010
|
+
ma({
|
|
2010
2011
|
page: s,
|
|
2011
2012
|
itemsPerPage: i,
|
|
2012
2013
|
sortBy: r,
|
|
2013
2014
|
groupBy: n,
|
|
2014
|
-
search:
|
|
2015
|
-
}),
|
|
2015
|
+
search: V
|
|
2016
|
+
}), Se({
|
|
2016
2017
|
VDataTableRows: {
|
|
2017
2018
|
hideNoData: C(() => e.hideNoData),
|
|
2018
2019
|
noDataText: C(() => e.noDataText),
|
|
@@ -2020,22 +2021,22 @@ const Ka = _({
|
|
|
2020
2021
|
loadingText: C(() => e.loadingText)
|
|
2021
2022
|
}
|
|
2022
2023
|
});
|
|
2023
|
-
const E =
|
|
2024
|
+
const E = F(() => ({
|
|
2024
2025
|
page: s.value,
|
|
2025
2026
|
itemsPerPage: i.value,
|
|
2026
2027
|
sortBy: r.value,
|
|
2027
2028
|
pageCount: le.value,
|
|
2028
2029
|
toggleSort: I,
|
|
2029
|
-
setItemsPerPage:
|
|
2030
|
-
someSelected:
|
|
2031
|
-
allSelected:
|
|
2032
|
-
isSelected:
|
|
2033
|
-
select:
|
|
2034
|
-
selectAll:
|
|
2035
|
-
toggleSelect:
|
|
2036
|
-
isExpanded:
|
|
2037
|
-
toggleExpand:
|
|
2038
|
-
isGroupOpen:
|
|
2030
|
+
setItemsPerPage: be,
|
|
2031
|
+
someSelected: Pt.value,
|
|
2032
|
+
allSelected: wt.value,
|
|
2033
|
+
isSelected: he,
|
|
2034
|
+
select: pt,
|
|
2035
|
+
selectAll: xt,
|
|
2036
|
+
toggleSelect: St,
|
|
2037
|
+
isExpanded: kt,
|
|
2038
|
+
toggleExpand: It,
|
|
2039
|
+
isGroupOpen: R,
|
|
2039
2040
|
toggleGroup: p,
|
|
2040
2041
|
items: X.value.map((H) => H.raw),
|
|
2041
2042
|
internalItems: X.value,
|
|
@@ -2044,29 +2045,29 @@ const Ka = _({
|
|
|
2044
2045
|
headers: d.value
|
|
2045
2046
|
}));
|
|
2046
2047
|
return K(() => {
|
|
2047
|
-
const H =
|
|
2048
|
-
return k(
|
|
2048
|
+
const H = Ee.filterProps(e), Ft = Re.filterProps(e), Vt = Ne.filterProps(e), Dt = $e.filterProps(e);
|
|
2049
|
+
return k($e, B({
|
|
2049
2050
|
class: ["v-data-table", {
|
|
2050
2051
|
"v-data-table--show-select": e.showSelect,
|
|
2051
2052
|
"v-data-table--loading": e.loading
|
|
2052
2053
|
}, e.class],
|
|
2053
2054
|
style: e.style
|
|
2054
|
-
},
|
|
2055
|
+
}, Dt, {
|
|
2055
2056
|
fixedHeader: e.fixedHeader || e.sticky
|
|
2056
2057
|
}), {
|
|
2057
2058
|
top: () => l.top?.(E.value),
|
|
2058
2059
|
default: () => l.default ? l.default(E.value) : S(U, null, [l.colgroup?.(E.value), !e.hideDefaultHeader && S("thead", {
|
|
2059
2060
|
key: "thead"
|
|
2060
|
-
}, [k(
|
|
2061
|
+
}, [k(Re, Ft, l)]), l.thead?.(E.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(E.value), l.body ? l.body(E.value) : k(Ne, B(a, Vt, {
|
|
2061
2062
|
items: M.value
|
|
2062
2063
|
}), l), l["body.append"]?.(E.value)]), l.tbody?.(E.value), l.tfoot?.(E.value)]),
|
|
2063
|
-
bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [k(
|
|
2064
|
+
bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [k(Yt, null, null), k(Ee, H, {
|
|
2064
2065
|
prepend: l["footer.prepend"]
|
|
2065
2066
|
})])
|
|
2066
2067
|
});
|
|
2067
2068
|
}), {};
|
|
2068
2069
|
}
|
|
2069
|
-
}),
|
|
2070
|
+
}), Ua = {
|
|
2070
2071
|
actions: "button@2",
|
|
2071
2072
|
article: "heading, paragraph",
|
|
2072
2073
|
avatar: "avatar",
|
|
@@ -2099,33 +2100,33 @@ const Ka = _({
|
|
|
2099
2100
|
"table-tfoot": "text@2, avatar@2",
|
|
2100
2101
|
text: "text"
|
|
2101
2102
|
};
|
|
2102
|
-
function
|
|
2103
|
+
function Ja(e) {
|
|
2103
2104
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2104
2105
|
return S("div", {
|
|
2105
2106
|
class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
|
|
2106
2107
|
}, [t]);
|
|
2107
2108
|
}
|
|
2108
|
-
function
|
|
2109
|
+
function Me(e) {
|
|
2109
2110
|
const [t, a] = e.split("@");
|
|
2110
2111
|
return Array.from({
|
|
2111
2112
|
length: a
|
|
2112
|
-
}).map(() =>
|
|
2113
|
+
}).map(() => me(t));
|
|
2113
2114
|
}
|
|
2114
|
-
function
|
|
2115
|
+
function me(e) {
|
|
2115
2116
|
let t = [];
|
|
2116
2117
|
if (!e) return t;
|
|
2117
|
-
const a =
|
|
2118
|
+
const a = Ua[e];
|
|
2118
2119
|
if (e !== a) {
|
|
2119
|
-
if (e.includes(",")) return
|
|
2120
|
-
if (e.includes("@")) return
|
|
2121
|
-
a.includes(",") ? t =
|
|
2120
|
+
if (e.includes(",")) return He(e);
|
|
2121
|
+
if (e.includes("@")) return Me(e);
|
|
2122
|
+
a.includes(",") ? t = He(a) : a.includes("@") ? t = Me(a) : a && t.push(me(a));
|
|
2122
2123
|
}
|
|
2123
|
-
return [
|
|
2124
|
+
return [Ja(e, t)];
|
|
2124
2125
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return e.replace(/\s/g, "").split(",").map(
|
|
2126
|
+
function He(e) {
|
|
2127
|
+
return e.replace(/\s/g, "").split(",").map(me);
|
|
2127
2128
|
}
|
|
2128
|
-
const
|
|
2129
|
+
const Qa = _({
|
|
2129
2130
|
boilerplate: Boolean,
|
|
2130
2131
|
color: String,
|
|
2131
2132
|
loading: Boolean,
|
|
@@ -2137,13 +2138,13 @@ const Ja = _({
|
|
|
2137
2138
|
type: [String, Array],
|
|
2138
2139
|
default: "ossein"
|
|
2139
2140
|
},
|
|
2140
|
-
...
|
|
2141
|
-
...
|
|
2142
|
-
...
|
|
2143
|
-
}, "VSkeletonLoader"),
|
|
2141
|
+
...ea(),
|
|
2142
|
+
...ze(),
|
|
2143
|
+
...Fe()
|
|
2144
|
+
}, "VSkeletonLoader"), al = $()({
|
|
2144
2145
|
name: "VSkeletonLoader",
|
|
2145
2146
|
inheritAttrs: !1,
|
|
2146
|
-
props:
|
|
2147
|
+
props: Qa(),
|
|
2147
2148
|
setup(e, t) {
|
|
2148
2149
|
let {
|
|
2149
2150
|
attrs: a,
|
|
@@ -2152,15 +2153,15 @@ const Ja = _({
|
|
|
2152
2153
|
const {
|
|
2153
2154
|
backgroundColorClasses: n,
|
|
2154
2155
|
backgroundColorStyles: r
|
|
2155
|
-
} =
|
|
2156
|
+
} = Je(() => e.color), {
|
|
2156
2157
|
dimensionStyles: o
|
|
2157
|
-
} = Yt(e), {
|
|
2158
|
-
elevationClasses: u
|
|
2159
2158
|
} = Zt(e), {
|
|
2159
|
+
elevationClasses: u
|
|
2160
|
+
} = qt(e), {
|
|
2160
2161
|
themeClasses: s
|
|
2161
|
-
} =
|
|
2162
|
+
} = Ie(e), {
|
|
2162
2163
|
t: i
|
|
2163
|
-
} = Z(),
|
|
2164
|
+
} = Z(), c = F(() => me(z(e.type).join(",")));
|
|
2164
2165
|
return K(() => {
|
|
2165
2166
|
const m = !l.default || e.loading, d = e.boilerplate || !m ? {} : {
|
|
2166
2167
|
ariaLive: "polite",
|
|
@@ -2172,11 +2173,11 @@ const Ja = _({
|
|
|
2172
2173
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2173
2174
|
}, s.value, n.value, u.value],
|
|
2174
2175
|
style: [r.value, o.value]
|
|
2175
|
-
}, d, a), [
|
|
2176
|
+
}, d, a), [c.value]) : S(U, null, [l.default?.()]);
|
|
2176
2177
|
}), {};
|
|
2177
2178
|
}
|
|
2178
2179
|
});
|
|
2179
|
-
function
|
|
2180
|
+
function Xa(e, t, a) {
|
|
2180
2181
|
switch (a) {
|
|
2181
2182
|
case ">":
|
|
2182
2183
|
return e > t;
|
|
@@ -2192,37 +2193,42 @@ function Qa(e, t, a) {
|
|
|
2192
2193
|
throw new Error(`Invalid operator: ${a}`);
|
|
2193
2194
|
}
|
|
2194
2195
|
}
|
|
2195
|
-
function
|
|
2196
|
-
const { advancedFiltersState: e, hardFiltersState: t } =
|
|
2197
|
-
const
|
|
2198
|
-
let
|
|
2199
|
-
return
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
const
|
|
2203
|
-
let
|
|
2204
|
-
Object.hasOwn(
|
|
2205
|
-
value:
|
|
2206
|
-
item:
|
|
2196
|
+
function ll() {
|
|
2197
|
+
const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"), l = j(), n = F(() => {
|
|
2198
|
+
const o = Object.values(t.value).filter((i) => i.args).map((i) => i.args).reduce((i, c) => ({ ...i, ...c }), {}), u = { ...e.value, ...o };
|
|
2199
|
+
let s = l.value;
|
|
2200
|
+
return u && Object.keys(u).forEach((i) => {
|
|
2201
|
+
const c = u[i].value, m = u[i]?.comparison ?? "=";
|
|
2202
|
+
c && (s = s.filter((d) => {
|
|
2203
|
+
const f = a.headers.find((v) => (v.advancedFilter?.key ?? v.key) === i);
|
|
2204
|
+
let y = la(d);
|
|
2205
|
+
Object.hasOwn(f, "filterReturnValue") && typeof f.filterReturnValue == "function" && (y[i] = f.filterReturnValue({
|
|
2206
|
+
value: d[i],
|
|
2207
|
+
item: d
|
|
2207
2208
|
}));
|
|
2208
|
-
let
|
|
2209
|
-
if (
|
|
2210
|
-
return
|
|
2211
|
-
if (typeof
|
|
2212
|
-
return
|
|
2209
|
+
let b = i.split(".").reduce((v, V) => v && v[V], y);
|
|
2210
|
+
if (f.advancedFilter?.component === "datepicker")
|
|
2211
|
+
return r(b, c);
|
|
2212
|
+
if (typeof b == "number")
|
|
2213
|
+
return Xa(b, c, m);
|
|
2214
|
+
if (typeof b == "string")
|
|
2215
|
+
return Array.isArray(c) ? c.map((v) => v.toLowerCase()).includes(b.toLowerCase()) : b?.toLowerCase().includes(c.toLowerCase());
|
|
2213
2216
|
}));
|
|
2214
|
-
}),
|
|
2215
|
-
})
|
|
2216
|
-
|
|
2217
|
+
}), s;
|
|
2218
|
+
}), r = (o, u) => {
|
|
2219
|
+
const s = Array.isArray(u) ? u : [u];
|
|
2220
|
+
return ie(s[0]).startOf("day").isSameOrBefore(ie(o).format()) && ie(s[s.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
|
|
2221
|
+
};
|
|
2222
|
+
return ce(
|
|
2217
2223
|
() => a.data,
|
|
2218
|
-
async (
|
|
2219
|
-
const
|
|
2220
|
-
JSON.stringify(
|
|
2224
|
+
async (o, u) => {
|
|
2225
|
+
const s = o ?? [], i = u ?? [];
|
|
2226
|
+
JSON.stringify(s) !== JSON.stringify(i) && (l.value = o);
|
|
2221
2227
|
},
|
|
2222
2228
|
{ deep: !0, immediate: !0 }
|
|
2223
2229
|
), { tableData: l, filteredData: n };
|
|
2224
2230
|
}
|
|
2225
|
-
const
|
|
2231
|
+
const nl = Lt({
|
|
2226
2232
|
props: {
|
|
2227
2233
|
render: {
|
|
2228
2234
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2239,31 +2245,31 @@ const al = Lt({
|
|
|
2239
2245
|
},
|
|
2240
2246
|
setup: (e) => () => {
|
|
2241
2247
|
const t = { ...e.props, ...e.params };
|
|
2242
|
-
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ?
|
|
2248
|
+
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? At(e.render, t) : e.render;
|
|
2243
2249
|
}
|
|
2244
2250
|
});
|
|
2245
2251
|
export {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
+
nl as C,
|
|
2253
|
+
tl as V,
|
|
2254
|
+
al as a,
|
|
2255
|
+
Fa as b,
|
|
2256
|
+
ca as c,
|
|
2257
|
+
ha as d,
|
|
2252
2258
|
Na as e,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2259
|
+
Ka as f,
|
|
2260
|
+
fa as g,
|
|
2261
|
+
ya as h,
|
|
2262
|
+
ga as i,
|
|
2263
|
+
ka as j,
|
|
2264
|
+
ua as k,
|
|
2265
|
+
ma as l,
|
|
2266
|
+
Ee as m,
|
|
2267
|
+
Re as n,
|
|
2262
2268
|
Ne as o,
|
|
2263
2269
|
Va as p,
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2270
|
+
$e as q,
|
|
2271
|
+
ot as r,
|
|
2272
|
+
Wa as s,
|
|
2273
|
+
ba as t,
|
|
2274
|
+
ll as u
|
|
2269
2275
|
};
|