@ianicdev/datatables2 0.10.2 → 0.10.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-CPCKKIx3.cjs +1 -0
- package/dist/{Columns-pBvbnYlf.js → Columns-ZxF5CuL6.js} +7 -7
- package/dist/{Comparison-DRfZKR1Q.js → Comparison-CMTDEfUJ.js} +6 -6
- package/dist/{Comparison--anN00Qz.cjs → Comparison-DfPeTvCT.cjs} +1 -1
- package/dist/{Datepicker-DVl_NGDU.js → Datepicker-BLYCUwKH.js} +2 -2
- package/dist/{Datepicker-Bo4pQ0Ky.cjs → Datepicker-CbsULJsG.cjs} +1 -1
- package/dist/{Download-BsS86MB6.js → Download-CBodg9GI.js} +2 -2
- package/dist/{Download-Cn0vLJdo.cjs → Download-CjD4NWhV.cjs} +1 -1
- package/dist/{Options-DCQAU-J6.js → Options-BHx4o8aa.js} +7 -7
- package/dist/Options-e0hJOpF8.cjs +1 -0
- package/dist/RefreshTable-CyPWCK3e.cjs +1 -0
- package/dist/{RefreshTable-CJghSR2x.js → RefreshTable-DlG8UH4c.js} +6 -6
- package/dist/Search-D4UmoZpS.cjs +1 -0
- package/dist/{Search-btos05iH.js → Search-DDRz2N_S.js} +10 -10
- package/dist/Table-ACmKFpAk.cjs +1 -0
- package/dist/Table-QxreAQB1.js +63 -0
- package/dist/TableServer-BQUFKBeQ.js +3925 -0
- package/dist/TableServer-pRzLKhVw.cjs +20 -0
- package/dist/{cellRender-D_-HT--u.js → cellRender-B3IOPLJf.js} +854 -951
- package/dist/cellRender-CA6S9KvF.cjs +1 -0
- package/dist/{dataTables-CnvsuROu.cjs → dataTables-BbXv6am2.cjs} +3 -3
- package/dist/{dataTables-4_0nZg-y.js → dataTables-Be-U1RVV.js} +141 -132
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/index-5WIEduUN.js +81 -0
- package/dist/index-BAxGZLuh.js +4533 -0
- package/dist/index-CDteNa2i.cjs +1 -0
- package/dist/index-m_LBTAkz.cjs +1 -0
- package/package.json +1 -1
- package/dist/Columns-YRc6N3N3.cjs +0 -1
- package/dist/Options-C07MvEiF.cjs +0 -1
- package/dist/RefreshTable-A1eCYmwb.cjs +0 -1
- package/dist/Search-Ctr2CVNw.cjs +0 -1
- package/dist/Table-BPOv1XC0.cjs +0 -1
- package/dist/Table-BtvvPIo_.js +0 -66
- package/dist/TableServer-BPveUKR2.js +0 -3929
- package/dist/TableServer-LBPwG9Z1.cjs +0 -20
- package/dist/cellRender-DM-C_7Lj.cjs +0 -1
- package/dist/index-B0N3w8xu.cjs +0 -1
- package/dist/index-ByfcZypn.js +0 -79
- package/dist/index-CHiQ3XrO.cjs +0 -1
- package/dist/index-D-1LWR3S.js +0 -4090
|
@@ -1,245 +1,148 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { V as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
return Object.keys(e).filter((l) =>
|
|
1
|
+
import { toRef as T, provide as Q, toRaw as le, inject as U, ref as M, computed as V, toValue as Ft, watch as ce, shallowRef as He, onBeforeUpdate as Tt, createVNode as w, normalizeStyle as Pe, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Fe, watchEffect as Ct, capitalize as _t, Fragment as z, createTextVNode as Te, withModifiers as ne, toDisplayString as Bt, toRefs as Ot, defineComponent as At, h as Et } from "vue";
|
|
2
|
+
import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as X, aT as re, aU as $t, g as $, a0 as Ht, h as we, ah as fe, a as pe, aj as jt, aV as oe, u as K, a7 as W, x as Mt, y as ke, m as Ge, as as Gt, A as Kt, E as Ke, f as te, b as We, G as Wt, I as O, aW as Ce, S as Ie, aX as zt, ax as E, aY as qt, o as Ut, P as ze, L as Jt, D as Qt, an as De, d as _e, H as ye, a1 as xe, k as Xt, aA as se, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-Be-U1RVV.js";
|
|
3
|
+
import { V as qe, a as aa, b as de, c as la, m as na, u as ra, d as oa } from "./index-BAxGZLuh.js";
|
|
4
|
+
import ie from "moment";
|
|
5
|
+
function Be(e, t, a) {
|
|
6
|
+
return Object.keys(e).filter((l) => Lt(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Nt(e[n], r, a(r)), l), {});
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
if (e == null || t == null) return -1;
|
|
10
|
-
if (!t.length) return 0;
|
|
11
|
-
e = e.toString().toLocaleLowerCase(), t = t.toString().toLocaleLowerCase();
|
|
12
|
-
const l = [];
|
|
13
|
-
let n = e.indexOf(t);
|
|
14
|
-
for (; ~n; )
|
|
15
|
-
l.push([n, n + t.length]), n = e.indexOf(t, n + t.length);
|
|
16
|
-
return l.length ? l : -1;
|
|
17
|
-
};
|
|
18
|
-
function Se(e, t) {
|
|
19
|
-
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
20
|
-
return typeof e == "number" ? [[e, e + t.length]] : Array.isArray(e[0]) ? e : [e];
|
|
21
|
-
}
|
|
22
|
-
const ia = _({
|
|
23
|
-
customFilter: Function,
|
|
24
|
-
customKeyFilter: Object,
|
|
25
|
-
filterKeys: [Array, String],
|
|
26
|
-
filterMode: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "intersection"
|
|
29
|
-
},
|
|
30
|
-
noFilter: Boolean
|
|
31
|
-
}, "filter");
|
|
32
|
-
function ua(e, t, a) {
|
|
33
|
-
const l = [], n = a?.default ?? oa, r = a?.filterKeys ? z(a.filterKeys) : !1, i = Object.keys(a?.customKeyFilter ?? {}).length;
|
|
34
|
-
if (!e?.length) return l;
|
|
35
|
-
let f = null;
|
|
36
|
-
e: for (let u = 0; u < e.length; u++) {
|
|
37
|
-
const [d, m = d] = z(e[u]), h = {}, s = {};
|
|
38
|
-
let o = -1;
|
|
39
|
-
if ((t || i > 0) && !a?.noFilter) {
|
|
40
|
-
let b = !1;
|
|
41
|
-
if (typeof d == "object") {
|
|
42
|
-
if (d.type === "divider" || d.type === "subheader") {
|
|
43
|
-
f?.type === "divider" && d.type === "subheader" && l.push(f), f = {
|
|
44
|
-
index: u,
|
|
45
|
-
matches: {},
|
|
46
|
-
type: d.type
|
|
47
|
-
};
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
const w = r || Object.keys(m);
|
|
51
|
-
b = w.length === i;
|
|
52
|
-
for (const y of w) {
|
|
53
|
-
const P = te(m, y), V = a?.customKeyFilter?.[y];
|
|
54
|
-
if (o = V ? V(P, t, d) : n(P, t, d), o !== -1 && o !== !1)
|
|
55
|
-
V ? h[y] = Se(o, t) : s[y] = Se(o, t);
|
|
56
|
-
else if (a?.filterMode === "every")
|
|
57
|
-
continue e;
|
|
58
|
-
}
|
|
59
|
-
} else
|
|
60
|
-
o = n(d, t, d), o !== -1 && o !== !1 && (s.title = Se(o, t));
|
|
61
|
-
const c = Object.keys(s).length, v = Object.keys(h).length;
|
|
62
|
-
if (!c && !v || a?.filterMode === "union" && v !== i && !c || a?.filterMode === "intersection" && (v !== i || !c && i > 0 && !b)) continue;
|
|
63
|
-
}
|
|
64
|
-
f && (l.push(f), f = null), l.push({
|
|
65
|
-
index: u,
|
|
66
|
-
matches: {
|
|
67
|
-
...s,
|
|
68
|
-
...h
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
return l;
|
|
73
|
-
}
|
|
74
|
-
function da(e, t, a, l) {
|
|
75
|
-
const n = de([]), r = de(/* @__PURE__ */ new Map()), i = F(() => l?.transform ? ee(t).map((u) => [u, l.transform(u)]) : ee(t));
|
|
76
|
-
Ke(() => {
|
|
77
|
-
const u = typeof a == "function" ? a() : ee(a), d = typeof u != "string" && typeof u != "number" ? "" : String(u), m = ua(i.value, d, {
|
|
78
|
-
customKeyFilter: {
|
|
79
|
-
...e.customKeyFilter,
|
|
80
|
-
...ee(l?.customKeyFilter)
|
|
81
|
-
},
|
|
82
|
-
default: e.customFilter,
|
|
83
|
-
filterKeys: e.filterKeys,
|
|
84
|
-
filterMode: e.filterMode,
|
|
85
|
-
noFilter: e.noFilter
|
|
86
|
-
}), h = ee(t), s = [], o = /* @__PURE__ */ new Map();
|
|
87
|
-
m.forEach((b) => {
|
|
88
|
-
let {
|
|
89
|
-
index: c,
|
|
90
|
-
matches: v
|
|
91
|
-
} = b;
|
|
92
|
-
const w = h[c];
|
|
93
|
-
s.push(w), o.set(w.value, v);
|
|
94
|
-
}), n.value = s, r.value = o;
|
|
95
|
-
});
|
|
96
|
-
function f(u) {
|
|
97
|
-
return r.value.get(u.value);
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
filteredItems: n,
|
|
101
|
-
filteredMatches: r,
|
|
102
|
-
getMatches: f
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
const ca = _({
|
|
8
|
+
const sa = _({
|
|
106
9
|
expandOnClick: Boolean,
|
|
107
10
|
showExpand: Boolean,
|
|
108
11
|
expanded: {
|
|
109
12
|
type: Array,
|
|
110
13
|
default: () => []
|
|
111
14
|
}
|
|
112
|
-
}, "DataTable-expand"),
|
|
113
|
-
function
|
|
114
|
-
const t = T(() => e.expandOnClick), a =
|
|
115
|
-
function l(
|
|
116
|
-
const
|
|
15
|
+
}, "DataTable-expand"), Ue = Symbol.for("vuetify:datatable:expanded");
|
|
16
|
+
function ia(e) {
|
|
17
|
+
const t = T(() => e.expandOnClick), a = q(e, "expanded", e.expanded, (v) => new Set(v), (v) => [...v.values()]);
|
|
18
|
+
function l(v, u) {
|
|
19
|
+
const c = new Set(a.value), m = le(v.value);
|
|
117
20
|
if (u)
|
|
118
|
-
|
|
21
|
+
c.add(m);
|
|
119
22
|
else {
|
|
120
|
-
const h = [...a.value].find((
|
|
121
|
-
|
|
23
|
+
const h = [...a.value].find((o) => le(o) === m);
|
|
24
|
+
c.delete(h);
|
|
122
25
|
}
|
|
123
|
-
a.value =
|
|
26
|
+
a.value = c;
|
|
124
27
|
}
|
|
125
|
-
function n(
|
|
126
|
-
const u =
|
|
127
|
-
return [...a.value].some((
|
|
28
|
+
function n(v) {
|
|
29
|
+
const u = le(v.value);
|
|
30
|
+
return [...a.value].some((c) => le(c) === u);
|
|
128
31
|
}
|
|
129
|
-
function r(
|
|
130
|
-
l(
|
|
32
|
+
function r(v) {
|
|
33
|
+
l(v, !n(v));
|
|
131
34
|
}
|
|
132
|
-
const
|
|
35
|
+
const s = {
|
|
133
36
|
expand: l,
|
|
134
37
|
expanded: a,
|
|
135
38
|
expandOnClick: t,
|
|
136
39
|
isExpanded: n,
|
|
137
40
|
toggleExpand: r
|
|
138
41
|
};
|
|
139
|
-
return
|
|
42
|
+
return Q(Ue, s), s;
|
|
140
43
|
}
|
|
141
|
-
function
|
|
142
|
-
const e =
|
|
44
|
+
function Je() {
|
|
45
|
+
const e = U(Ue);
|
|
143
46
|
if (!e) throw new Error("foo");
|
|
144
47
|
return e;
|
|
145
48
|
}
|
|
146
|
-
const
|
|
49
|
+
const ua = _({
|
|
147
50
|
groupBy: {
|
|
148
51
|
type: Array,
|
|
149
52
|
default: () => []
|
|
150
53
|
}
|
|
151
|
-
}, "DataTable-group"),
|
|
152
|
-
function
|
|
54
|
+
}, "DataTable-group"), Qe = Symbol.for("vuetify:data-table-group");
|
|
55
|
+
function da(e) {
|
|
153
56
|
return {
|
|
154
|
-
groupBy:
|
|
57
|
+
groupBy: q(e, "groupBy")
|
|
155
58
|
};
|
|
156
59
|
}
|
|
157
|
-
function
|
|
60
|
+
function ca(e) {
|
|
158
61
|
const {
|
|
159
62
|
disableSort: t,
|
|
160
63
|
groupBy: a,
|
|
161
64
|
sortBy: l
|
|
162
|
-
} = e, n =
|
|
65
|
+
} = e, n = M(/* @__PURE__ */ new Set()), r = V(() => a.value.map((m) => ({
|
|
163
66
|
...m,
|
|
164
67
|
order: m.order ?? !1
|
|
165
68
|
})).concat(t?.value ? [] : l.value));
|
|
166
|
-
function
|
|
69
|
+
function s(m) {
|
|
167
70
|
return n.value.has(m.id);
|
|
168
71
|
}
|
|
169
|
-
function
|
|
72
|
+
function v(m) {
|
|
170
73
|
const h = new Set(n.value);
|
|
171
|
-
|
|
74
|
+
s(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
|
|
172
75
|
}
|
|
173
76
|
function u(m) {
|
|
174
|
-
function h(
|
|
175
|
-
const
|
|
176
|
-
for (const b of
|
|
177
|
-
"type" in b && b.type === "group" ?
|
|
178
|
-
return [...new Set(
|
|
77
|
+
function h(o) {
|
|
78
|
+
const i = [];
|
|
79
|
+
for (const b of o.items)
|
|
80
|
+
"type" in b && b.type === "group" ? i.push(...h(b)) : i.push(b);
|
|
81
|
+
return [...new Set(i)];
|
|
179
82
|
}
|
|
180
83
|
return h({
|
|
181
84
|
items: m
|
|
182
85
|
});
|
|
183
86
|
}
|
|
184
|
-
const
|
|
87
|
+
const c = {
|
|
185
88
|
sortByWithGroups: r,
|
|
186
|
-
toggleGroup:
|
|
89
|
+
toggleGroup: v,
|
|
187
90
|
opened: n,
|
|
188
91
|
groupBy: a,
|
|
189
92
|
extractRows: u,
|
|
190
|
-
isGroupOpen:
|
|
93
|
+
isGroupOpen: s
|
|
191
94
|
};
|
|
192
|
-
return
|
|
95
|
+
return Q(Qe, c), c;
|
|
193
96
|
}
|
|
194
|
-
function
|
|
195
|
-
const e =
|
|
97
|
+
function Xe() {
|
|
98
|
+
const e = U(Qe);
|
|
196
99
|
if (!e) throw new Error("Missing group!");
|
|
197
100
|
return e;
|
|
198
101
|
}
|
|
199
|
-
function
|
|
102
|
+
function fa(e, t) {
|
|
200
103
|
if (!e.length) return [];
|
|
201
104
|
const a = /* @__PURE__ */ new Map();
|
|
202
105
|
for (const l of e) {
|
|
203
|
-
const n =
|
|
106
|
+
const n = ue(l.raw, t);
|
|
204
107
|
a.has(n) || a.set(n, []), a.get(n).push(l);
|
|
205
108
|
}
|
|
206
109
|
return a;
|
|
207
110
|
}
|
|
208
|
-
function
|
|
111
|
+
function Ye(e, t) {
|
|
209
112
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
|
|
210
113
|
if (!t.length) return [];
|
|
211
|
-
const n =
|
|
212
|
-
return n.forEach((
|
|
213
|
-
const
|
|
114
|
+
const n = fa(e, t[0]), r = [], s = t.slice(1);
|
|
115
|
+
return n.forEach((v, u) => {
|
|
116
|
+
const c = t[0], m = `${l}_${c}_${u}`;
|
|
214
117
|
r.push({
|
|
215
118
|
depth: a,
|
|
216
119
|
id: m,
|
|
217
|
-
key:
|
|
120
|
+
key: c,
|
|
218
121
|
value: u,
|
|
219
|
-
items:
|
|
122
|
+
items: s.length ? Ye(v, s, a + 1, m) : v,
|
|
220
123
|
type: "group"
|
|
221
124
|
});
|
|
222
125
|
}), r;
|
|
223
126
|
}
|
|
224
|
-
function
|
|
127
|
+
function Ze(e, t, a) {
|
|
225
128
|
const l = [];
|
|
226
129
|
for (const n of e)
|
|
227
|
-
"type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...
|
|
130
|
+
"type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...Ze(n.items, t, a)), a && l.push({
|
|
228
131
|
...n,
|
|
229
132
|
type: "group-summary"
|
|
230
133
|
}))) : l.push(n);
|
|
231
134
|
return l;
|
|
232
135
|
}
|
|
233
|
-
function
|
|
136
|
+
function va(e, t, a, l) {
|
|
234
137
|
return {
|
|
235
|
-
flatItems:
|
|
138
|
+
flatItems: V(() => {
|
|
236
139
|
if (!t.value.length) return e.value;
|
|
237
|
-
const r =
|
|
238
|
-
return
|
|
140
|
+
const r = Ye(e.value, t.value.map((s) => s.key));
|
|
141
|
+
return Ze(r, a.value, Ft(l));
|
|
239
142
|
})
|
|
240
143
|
};
|
|
241
144
|
}
|
|
242
|
-
function
|
|
145
|
+
function ga(e) {
|
|
243
146
|
let {
|
|
244
147
|
page: t,
|
|
245
148
|
itemsPerPage: a,
|
|
@@ -247,7 +150,7 @@ function ya(e) {
|
|
|
247
150
|
groupBy: n,
|
|
248
151
|
search: r
|
|
249
152
|
} = e;
|
|
250
|
-
const
|
|
153
|
+
const s = je("VDataTable"), v = () => ({
|
|
251
154
|
page: t.value,
|
|
252
155
|
itemsPerPage: a.value,
|
|
253
156
|
sortBy: l.value,
|
|
@@ -255,14 +158,14 @@ function ya(e) {
|
|
|
255
158
|
search: r.value
|
|
256
159
|
});
|
|
257
160
|
let u = null;
|
|
258
|
-
|
|
259
|
-
|
|
161
|
+
ce(v, (c) => {
|
|
162
|
+
Me(u, c) || (u && u.search !== c.search && (t.value = 1), s.emit("update:options", c), u = c);
|
|
260
163
|
}, {
|
|
261
164
|
deep: !0,
|
|
262
165
|
immediate: !0
|
|
263
166
|
});
|
|
264
167
|
}
|
|
265
|
-
const
|
|
168
|
+
const ma = _({
|
|
266
169
|
page: {
|
|
267
170
|
type: [Number, String],
|
|
268
171
|
default: 1
|
|
@@ -271,70 +174,70 @@ const pa = _({
|
|
|
271
174
|
type: [Number, String],
|
|
272
175
|
default: 10
|
|
273
176
|
}
|
|
274
|
-
}, "DataTable-paginate"),
|
|
275
|
-
function
|
|
276
|
-
const t =
|
|
177
|
+
}, "DataTable-paginate"), et = Symbol.for("vuetify:data-table-pagination");
|
|
178
|
+
function ba(e) {
|
|
179
|
+
const t = q(e, "page", void 0, (l) => Number(l ?? 1)), a = q(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
|
|
277
180
|
return {
|
|
278
181
|
page: t,
|
|
279
182
|
itemsPerPage: a
|
|
280
183
|
};
|
|
281
184
|
}
|
|
282
|
-
function
|
|
185
|
+
function ha(e) {
|
|
283
186
|
const {
|
|
284
187
|
page: t,
|
|
285
188
|
itemsPerPage: a,
|
|
286
189
|
itemsLength: l
|
|
287
|
-
} = e, n =
|
|
288
|
-
|
|
289
|
-
t.value >
|
|
190
|
+
} = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), s = V(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
|
|
191
|
+
ce([t, s], () => {
|
|
192
|
+
t.value > s.value && (t.value = s.value);
|
|
290
193
|
});
|
|
291
|
-
function
|
|
292
|
-
a.value =
|
|
194
|
+
function v(o) {
|
|
195
|
+
a.value = o, t.value = 1;
|
|
293
196
|
}
|
|
294
197
|
function u() {
|
|
295
|
-
t.value =
|
|
198
|
+
t.value = he(t.value + 1, 1, s.value);
|
|
296
199
|
}
|
|
297
|
-
function
|
|
298
|
-
t.value =
|
|
200
|
+
function c() {
|
|
201
|
+
t.value = he(t.value - 1, 1, s.value);
|
|
299
202
|
}
|
|
300
|
-
function m(
|
|
301
|
-
t.value =
|
|
203
|
+
function m(o) {
|
|
204
|
+
t.value = he(o, 1, s.value);
|
|
302
205
|
}
|
|
303
206
|
const h = {
|
|
304
207
|
page: t,
|
|
305
208
|
itemsPerPage: a,
|
|
306
209
|
startIndex: n,
|
|
307
210
|
stopIndex: r,
|
|
308
|
-
pageCount:
|
|
211
|
+
pageCount: s,
|
|
309
212
|
itemsLength: l,
|
|
310
213
|
nextPage: u,
|
|
311
|
-
prevPage:
|
|
214
|
+
prevPage: c,
|
|
312
215
|
setPage: m,
|
|
313
|
-
setItemsPerPage:
|
|
216
|
+
setItemsPerPage: v
|
|
314
217
|
};
|
|
315
|
-
return
|
|
218
|
+
return Q(et, h), h;
|
|
316
219
|
}
|
|
317
|
-
function
|
|
318
|
-
const e =
|
|
220
|
+
function ya() {
|
|
221
|
+
const e = U(et);
|
|
319
222
|
if (!e) throw new Error("Missing pagination!");
|
|
320
223
|
return e;
|
|
321
224
|
}
|
|
322
|
-
function
|
|
323
|
-
const t =
|
|
225
|
+
function pa(e) {
|
|
226
|
+
const t = je("usePaginatedItems"), {
|
|
324
227
|
items: a,
|
|
325
228
|
startIndex: l,
|
|
326
229
|
stopIndex: n,
|
|
327
230
|
itemsPerPage: r
|
|
328
|
-
} = e,
|
|
329
|
-
return
|
|
330
|
-
t.emit("update:currentItems",
|
|
231
|
+
} = e, s = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
|
|
232
|
+
return ce(s, (v) => {
|
|
233
|
+
t.emit("update:currentItems", v);
|
|
331
234
|
}, {
|
|
332
235
|
immediate: !0
|
|
333
236
|
}), {
|
|
334
|
-
paginatedItems:
|
|
237
|
+
paginatedItems: s
|
|
335
238
|
};
|
|
336
239
|
}
|
|
337
|
-
const
|
|
240
|
+
const xa = {
|
|
338
241
|
showSelectAll: !1,
|
|
339
242
|
allSelected: () => [],
|
|
340
243
|
select: (e) => {
|
|
@@ -350,7 +253,7 @@ const wa = {
|
|
|
350
253
|
} = e;
|
|
351
254
|
return t;
|
|
352
255
|
}
|
|
353
|
-
},
|
|
256
|
+
}, tt = {
|
|
354
257
|
showSelectAll: !0,
|
|
355
258
|
allSelected: (e) => {
|
|
356
259
|
let {
|
|
@@ -374,13 +277,13 @@ const wa = {
|
|
|
374
277
|
currentPage: a,
|
|
375
278
|
selected: l
|
|
376
279
|
} = e;
|
|
377
|
-
return
|
|
280
|
+
return tt.select({
|
|
378
281
|
items: a,
|
|
379
282
|
value: t,
|
|
380
283
|
selected: l
|
|
381
284
|
});
|
|
382
285
|
}
|
|
383
|
-
},
|
|
286
|
+
}, Sa = {
|
|
384
287
|
showSelectAll: !0,
|
|
385
288
|
allSelected: (e) => {
|
|
386
289
|
let {
|
|
@@ -405,7 +308,7 @@ const wa = {
|
|
|
405
308
|
} = e;
|
|
406
309
|
return new Set(t ? a.map((l) => l.value) : []);
|
|
407
310
|
}
|
|
408
|
-
},
|
|
311
|
+
}, Pa = _({
|
|
409
312
|
showSelect: Boolean,
|
|
410
313
|
selectStrategy: {
|
|
411
314
|
type: [String, Object],
|
|
@@ -416,85 +319,85 @@ const wa = {
|
|
|
416
319
|
default: () => []
|
|
417
320
|
},
|
|
418
321
|
valueComparator: Function
|
|
419
|
-
}, "DataTable-select"),
|
|
420
|
-
function
|
|
322
|
+
}, "DataTable-select"), at = Symbol.for("vuetify:data-table-selection");
|
|
323
|
+
function wa(e, t) {
|
|
421
324
|
let {
|
|
422
325
|
allItems: a,
|
|
423
326
|
currentPage: l
|
|
424
327
|
} = t;
|
|
425
|
-
const n =
|
|
426
|
-
const
|
|
427
|
-
return
|
|
428
|
-
}, (y) => [...y.values()]), r =
|
|
328
|
+
const n = q(e, "modelValue", e.modelValue, (y) => {
|
|
329
|
+
const k = e.valueComparator;
|
|
330
|
+
return k ? new Set(Z(y).map((F) => a.value.find((P) => k(F, P.value))?.value ?? F)) : new Set(Z(y).map((F) => Rt(F) ? a.value.find((P) => F === P.value)?.value ?? F : a.value.find((P) => Me(F, P.value))?.value ?? F));
|
|
331
|
+
}, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)), s = V(() => l.value.filter((y) => y.selectable)), v = V(() => {
|
|
429
332
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
430
333
|
switch (e.selectStrategy) {
|
|
431
334
|
case "single":
|
|
432
|
-
return
|
|
335
|
+
return xa;
|
|
433
336
|
case "all":
|
|
434
|
-
return
|
|
337
|
+
return Sa;
|
|
435
338
|
case "page":
|
|
436
339
|
default:
|
|
437
|
-
return
|
|
340
|
+
return tt;
|
|
438
341
|
}
|
|
439
|
-
}), u =
|
|
440
|
-
function
|
|
441
|
-
return
|
|
342
|
+
}), u = He(null);
|
|
343
|
+
function c(y) {
|
|
344
|
+
return Z(y).every((k) => n.value.has(k.value));
|
|
442
345
|
}
|
|
443
346
|
function m(y) {
|
|
444
|
-
return
|
|
347
|
+
return Z(y).some((k) => n.value.has(k.value));
|
|
445
348
|
}
|
|
446
|
-
function h(y,
|
|
447
|
-
const
|
|
349
|
+
function h(y, k) {
|
|
350
|
+
const F = v.value.select({
|
|
448
351
|
items: y,
|
|
449
|
-
value:
|
|
352
|
+
value: k,
|
|
450
353
|
selected: new Set(n.value)
|
|
451
354
|
});
|
|
452
|
-
n.value =
|
|
355
|
+
n.value = F;
|
|
453
356
|
}
|
|
454
|
-
function
|
|
455
|
-
const
|
|
456
|
-
if (
|
|
457
|
-
const [
|
|
458
|
-
|
|
357
|
+
function o(y, k, F) {
|
|
358
|
+
const P = [];
|
|
359
|
+
if (k = k ?? l.value.findIndex((A) => A.value === y.value), e.selectStrategy !== "single" && F?.shiftKey && u.value !== null) {
|
|
360
|
+
const [A, N] = [u.value, k].sort((p, x) => p - x);
|
|
361
|
+
P.push(...l.value.slice(A, N + 1).filter((p) => p.selectable));
|
|
459
362
|
} else
|
|
460
|
-
|
|
461
|
-
h(
|
|
363
|
+
P.push(y), u.value = k;
|
|
364
|
+
h(P, !c([y]));
|
|
462
365
|
}
|
|
463
|
-
function
|
|
464
|
-
const
|
|
366
|
+
function i(y) {
|
|
367
|
+
const k = v.value.selectAll({
|
|
465
368
|
value: y,
|
|
466
369
|
allItems: r.value,
|
|
467
|
-
currentPage:
|
|
370
|
+
currentPage: s.value,
|
|
468
371
|
selected: new Set(n.value)
|
|
469
372
|
});
|
|
470
|
-
n.value =
|
|
373
|
+
n.value = k;
|
|
471
374
|
}
|
|
472
|
-
const b =
|
|
473
|
-
const y =
|
|
375
|
+
const b = V(() => n.value.size > 0), d = V(() => {
|
|
376
|
+
const y = v.value.allSelected({
|
|
474
377
|
allItems: r.value,
|
|
475
|
-
currentPage:
|
|
378
|
+
currentPage: s.value
|
|
476
379
|
});
|
|
477
|
-
return !!y.length &&
|
|
478
|
-
}),
|
|
479
|
-
toggleSelect:
|
|
380
|
+
return !!y.length && c(y);
|
|
381
|
+
}), g = T(() => v.value.showSelectAll), I = {
|
|
382
|
+
toggleSelect: o,
|
|
480
383
|
select: h,
|
|
481
|
-
selectAll:
|
|
482
|
-
isSelected:
|
|
384
|
+
selectAll: i,
|
|
385
|
+
isSelected: c,
|
|
483
386
|
isSomeSelected: m,
|
|
484
387
|
someSelected: b,
|
|
485
|
-
allSelected:
|
|
486
|
-
showSelectAll:
|
|
388
|
+
allSelected: d,
|
|
389
|
+
showSelectAll: g,
|
|
487
390
|
lastSelectedIndex: u,
|
|
488
|
-
selectStrategy:
|
|
391
|
+
selectStrategy: v
|
|
489
392
|
};
|
|
490
|
-
return
|
|
393
|
+
return Q(at, I), I;
|
|
491
394
|
}
|
|
492
|
-
function
|
|
493
|
-
const e =
|
|
395
|
+
function ve() {
|
|
396
|
+
const e = U(at);
|
|
494
397
|
if (!e) throw new Error("Missing selection!");
|
|
495
398
|
return e;
|
|
496
399
|
}
|
|
497
|
-
const
|
|
400
|
+
const ka = _({
|
|
498
401
|
initialSortOrder: {
|
|
499
402
|
type: String,
|
|
500
403
|
default: "asc",
|
|
@@ -510,9 +413,9 @@ const Va = _({
|
|
|
510
413
|
default: !1
|
|
511
414
|
},
|
|
512
415
|
mustSort: Boolean
|
|
513
|
-
}, "DataTable-sort"),
|
|
514
|
-
function
|
|
515
|
-
const t = T(() => e.initialSortOrder), a =
|
|
416
|
+
}, "DataTable-sort"), lt = Symbol.for("vuetify:data-table-sort");
|
|
417
|
+
function Ia(e) {
|
|
418
|
+
const t = T(() => e.initialSortOrder), a = q(e, "sortBy"), l = T(() => e.mustSort), n = T(() => e.multiSort);
|
|
516
419
|
return {
|
|
517
420
|
initialSortOrder: t,
|
|
518
421
|
sortBy: a,
|
|
@@ -520,8 +423,8 @@ function Ta(e) {
|
|
|
520
423
|
mustSort: l
|
|
521
424
|
};
|
|
522
425
|
}
|
|
523
|
-
function
|
|
524
|
-
if (
|
|
426
|
+
function Da(e, t) {
|
|
427
|
+
if (!$t(e))
|
|
525
428
|
return {
|
|
526
429
|
active: !!e
|
|
527
430
|
};
|
|
@@ -535,58 +438,58 @@ function Ca(e, t) {
|
|
|
535
438
|
mode: r ? l === "append" ? "prepend" : "append" : l
|
|
536
439
|
};
|
|
537
440
|
}
|
|
538
|
-
function
|
|
441
|
+
function Va(e) {
|
|
539
442
|
const {
|
|
540
443
|
initialSortOrder: t,
|
|
541
444
|
sortBy: a,
|
|
542
445
|
mustSort: l,
|
|
543
446
|
multiSort: n,
|
|
544
447
|
page: r
|
|
545
|
-
} = e,
|
|
546
|
-
if (
|
|
547
|
-
let h = a.value.map((
|
|
548
|
-
...
|
|
448
|
+
} = e, s = (c, m) => {
|
|
449
|
+
if (c.key == null) return;
|
|
450
|
+
let h = a.value.map((d) => ({
|
|
451
|
+
...d
|
|
549
452
|
})) ?? [];
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
552
|
-
|
|
453
|
+
const o = h.find((d) => d.key === c.key), i = t.value, b = t.value === "desc" ? "asc" : "desc";
|
|
454
|
+
if (o)
|
|
455
|
+
o.order === b ? l.value && h.length === 1 ? o.order = t.value : h = h.filter((d) => d.key !== c.key) : o.order = b;
|
|
553
456
|
else {
|
|
554
457
|
const {
|
|
555
|
-
active:
|
|
556
|
-
mode:
|
|
557
|
-
} =
|
|
558
|
-
|
|
559
|
-
key:
|
|
560
|
-
order:
|
|
458
|
+
active: d,
|
|
459
|
+
mode: g
|
|
460
|
+
} = Da(n.value, m);
|
|
461
|
+
d ? g === "prepend" ? h.unshift({
|
|
462
|
+
key: c.key,
|
|
463
|
+
order: i
|
|
561
464
|
}) : h.push({
|
|
562
|
-
key:
|
|
563
|
-
order:
|
|
465
|
+
key: c.key,
|
|
466
|
+
order: i
|
|
564
467
|
}) : h = [{
|
|
565
|
-
key:
|
|
566
|
-
order:
|
|
468
|
+
key: c.key,
|
|
469
|
+
order: i
|
|
567
470
|
}];
|
|
568
471
|
}
|
|
569
472
|
a.value = h, r && (r.value = 1);
|
|
570
473
|
};
|
|
571
|
-
function
|
|
572
|
-
return !!a.value.find((m) => m.key ===
|
|
474
|
+
function v(c) {
|
|
475
|
+
return !!a.value.find((m) => m.key === c.key);
|
|
573
476
|
}
|
|
574
477
|
const u = {
|
|
575
478
|
sortBy: a,
|
|
576
|
-
toggleSort:
|
|
577
|
-
isSorted:
|
|
479
|
+
toggleSort: s,
|
|
480
|
+
isSorted: v
|
|
578
481
|
};
|
|
579
|
-
return
|
|
482
|
+
return Q(lt, u), u;
|
|
580
483
|
}
|
|
581
|
-
function
|
|
582
|
-
const e =
|
|
484
|
+
function nt() {
|
|
485
|
+
const e = U(lt);
|
|
583
486
|
if (!e) throw new Error("Missing sort!");
|
|
584
487
|
return e;
|
|
585
488
|
}
|
|
586
|
-
function
|
|
587
|
-
const n =
|
|
489
|
+
function Fa(e, t, a, l) {
|
|
490
|
+
const n = X();
|
|
588
491
|
return {
|
|
589
|
-
sortedItems:
|
|
492
|
+
sortedItems: V(() => a.value.length ? Ta(t.value, a.value, n.current.value, {
|
|
590
493
|
transform: l?.transform,
|
|
591
494
|
sortFunctions: {
|
|
592
495
|
...e.customKeySort,
|
|
@@ -596,39 +499,39 @@ function Oa(e, t, a, l) {
|
|
|
596
499
|
}) : t.value)
|
|
597
500
|
};
|
|
598
501
|
}
|
|
599
|
-
function
|
|
502
|
+
function Ta(e, t, a, l) {
|
|
600
503
|
const n = new Intl.Collator(a, {
|
|
601
504
|
sensitivity: "accent",
|
|
602
505
|
usage: "sort"
|
|
603
506
|
});
|
|
604
|
-
return e.map((
|
|
507
|
+
return e.map((s) => [s, l?.transform ? l.transform(s) : s]).sort((s, v) => {
|
|
605
508
|
for (let u = 0; u < t.length; u++) {
|
|
606
|
-
let
|
|
509
|
+
let c = !1;
|
|
607
510
|
const m = t[u].key, h = t[u].order ?? "asc";
|
|
608
511
|
if (h === !1) continue;
|
|
609
|
-
let
|
|
610
|
-
if (h === "desc" && ([
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
613
|
-
if (
|
|
512
|
+
let o = ue(s[1], m), i = ue(v[1], m), b = s[0].raw, d = v[0].raw;
|
|
513
|
+
if (h === "desc" && ([o, i] = [i, o], [b, d] = [d, b]), l?.sortRawFunctions?.[m]) {
|
|
514
|
+
const g = l.sortRawFunctions[m](b, d);
|
|
515
|
+
if (g == null) continue;
|
|
516
|
+
if (c = !0, g) return g;
|
|
614
517
|
}
|
|
615
518
|
if (l?.sortFunctions?.[m]) {
|
|
616
|
-
const
|
|
617
|
-
if (
|
|
618
|
-
if (
|
|
519
|
+
const g = l.sortFunctions[m](o, i);
|
|
520
|
+
if (g == null) continue;
|
|
521
|
+
if (c = !0, g) return g;
|
|
619
522
|
}
|
|
620
|
-
if (!
|
|
621
|
-
return
|
|
523
|
+
if (!c && (o instanceof Date && i instanceof Date && (o = o.getTime(), i = i.getTime()), [o, i] = [o, i].map((g) => g != null ? g.toString().toLocaleLowerCase() : g), o !== i))
|
|
524
|
+
return re(o) && re(i) ? 0 : re(o) ? -1 : re(i) ? 1 : !isNaN(o) && !isNaN(i) ? Number(o) - Number(i) : n.compare(o, i);
|
|
622
525
|
}
|
|
623
526
|
return 0;
|
|
624
|
-
}).map((
|
|
625
|
-
let [
|
|
626
|
-
return
|
|
527
|
+
}).map((s) => {
|
|
528
|
+
let [v] = s;
|
|
529
|
+
return v;
|
|
627
530
|
});
|
|
628
531
|
}
|
|
629
|
-
function
|
|
630
|
-
const e =
|
|
631
|
-
|
|
532
|
+
function Ca() {
|
|
533
|
+
const e = M([]);
|
|
534
|
+
Tt(() => e.value = []);
|
|
632
535
|
function t(a, l) {
|
|
633
536
|
e.value[l] = a;
|
|
634
537
|
}
|
|
@@ -637,7 +540,7 @@ function La() {
|
|
|
637
540
|
updateRef: t
|
|
638
541
|
};
|
|
639
542
|
}
|
|
640
|
-
const
|
|
543
|
+
const _a = _({
|
|
641
544
|
activeColor: String,
|
|
642
545
|
start: {
|
|
643
546
|
type: [Number, String],
|
|
@@ -655,19 +558,19 @@ const Aa = _({
|
|
|
655
558
|
},
|
|
656
559
|
totalVisible: [Number, String],
|
|
657
560
|
firstIcon: {
|
|
658
|
-
type:
|
|
561
|
+
type: O,
|
|
659
562
|
default: "$first"
|
|
660
563
|
},
|
|
661
564
|
prevIcon: {
|
|
662
|
-
type:
|
|
565
|
+
type: O,
|
|
663
566
|
default: "$prev"
|
|
664
567
|
},
|
|
665
568
|
nextIcon: {
|
|
666
|
-
type:
|
|
569
|
+
type: O,
|
|
667
570
|
default: "$next"
|
|
668
571
|
},
|
|
669
572
|
lastIcon: {
|
|
670
|
-
type:
|
|
573
|
+
type: O,
|
|
671
574
|
default: "$last"
|
|
672
575
|
},
|
|
673
576
|
ariaLabel: {
|
|
@@ -703,22 +606,22 @@ const Aa = _({
|
|
|
703
606
|
default: "..."
|
|
704
607
|
},
|
|
705
608
|
showFirstLastPage: Boolean,
|
|
706
|
-
...Ut(),
|
|
707
|
-
...Je(),
|
|
708
|
-
...le(),
|
|
709
|
-
...Ue(),
|
|
710
|
-
...zt(),
|
|
711
609
|
...Wt(),
|
|
712
|
-
...
|
|
610
|
+
...We(),
|
|
611
|
+
...te(),
|
|
612
|
+
...Ke(),
|
|
613
|
+
...Kt(),
|
|
614
|
+
...Gt(),
|
|
615
|
+
...Ge({
|
|
713
616
|
tag: "nav"
|
|
714
617
|
}),
|
|
715
|
-
...
|
|
716
|
-
...
|
|
618
|
+
...ke(),
|
|
619
|
+
...Mt({
|
|
717
620
|
variant: "text"
|
|
718
621
|
})
|
|
719
|
-
}, "VPagination"),
|
|
622
|
+
}, "VPagination"), Oe = $()({
|
|
720
623
|
name: "VPagination",
|
|
721
|
-
props:
|
|
624
|
+
props: _a(),
|
|
722
625
|
emits: {
|
|
723
626
|
"update:modelValue": (e) => !0,
|
|
724
627
|
first: (e) => !0,
|
|
@@ -731,63 +634,63 @@ const Aa = _({
|
|
|
731
634
|
slots: a,
|
|
732
635
|
emit: l
|
|
733
636
|
} = t;
|
|
734
|
-
const n =
|
|
637
|
+
const n = q(e, "modelValue"), {
|
|
735
638
|
t: r,
|
|
736
|
-
n:
|
|
737
|
-
} =
|
|
738
|
-
isRtl:
|
|
639
|
+
n: s
|
|
640
|
+
} = X(), {
|
|
641
|
+
isRtl: v
|
|
739
642
|
} = Ht(), {
|
|
740
643
|
themeClasses: u
|
|
741
|
-
} =
|
|
742
|
-
width:
|
|
743
|
-
} =
|
|
744
|
-
|
|
644
|
+
} = we(e), {
|
|
645
|
+
width: c
|
|
646
|
+
} = fe(), m = He(-1);
|
|
647
|
+
pe(void 0, {
|
|
745
648
|
scoped: !0
|
|
746
649
|
});
|
|
747
650
|
const {
|
|
748
651
|
resizeRef: h
|
|
749
|
-
} =
|
|
652
|
+
} = jt((p) => {
|
|
750
653
|
if (!p.length) return;
|
|
751
654
|
const {
|
|
752
655
|
target: x,
|
|
753
|
-
contentRect:
|
|
656
|
+
contentRect: f
|
|
754
657
|
} = p[0], D = x.querySelector(".v-pagination__list > *");
|
|
755
658
|
if (!D) return;
|
|
756
|
-
const C =
|
|
757
|
-
m.value =
|
|
758
|
-
}),
|
|
759
|
-
function
|
|
760
|
-
const
|
|
659
|
+
const C = f.width, R = D.offsetWidth + parseFloat(getComputedStyle(D).marginRight) * 2;
|
|
660
|
+
m.value = d(C, R);
|
|
661
|
+
}), o = V(() => parseInt(e.length, 10)), i = V(() => parseInt(e.start, 10)), b = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : d(c.value, 58));
|
|
662
|
+
function d(p, x) {
|
|
663
|
+
const f = e.showFirstLastPage ? 5 : 3;
|
|
761
664
|
return Math.max(0, Math.floor(
|
|
762
665
|
// Round to two decimal places to avoid floating point errors
|
|
763
|
-
Number(((p - x *
|
|
666
|
+
Number(((p - x * f) / x).toFixed(2))
|
|
764
667
|
));
|
|
765
668
|
}
|
|
766
|
-
const
|
|
767
|
-
if (
|
|
669
|
+
const g = V(() => {
|
|
670
|
+
if (o.value <= 0 || isNaN(o.value) || o.value > Number.MAX_SAFE_INTEGER) return [];
|
|
768
671
|
if (b.value <= 0) return [];
|
|
769
672
|
if (b.value === 1) return [n.value];
|
|
770
|
-
if (
|
|
771
|
-
return
|
|
772
|
-
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2),
|
|
773
|
-
if (
|
|
774
|
-
return [...
|
|
673
|
+
if (o.value <= b.value)
|
|
674
|
+
return oe(o.value, i.value);
|
|
675
|
+
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), f = p ? x : x + 1, D = o.value - x;
|
|
676
|
+
if (f - n.value >= 0)
|
|
677
|
+
return [...oe(Math.max(1, b.value - 1), i.value), e.ellipsis, o.value];
|
|
775
678
|
if (n.value - D >= (p ? 1 : 0)) {
|
|
776
|
-
const C = b.value - 1, R =
|
|
777
|
-
return [
|
|
679
|
+
const C = b.value - 1, R = o.value - C + i.value;
|
|
680
|
+
return [i.value, e.ellipsis, ...oe(C, R)];
|
|
778
681
|
} else {
|
|
779
|
-
const C = Math.max(1, b.value - 2), R = C === 1 ? n.value : n.value - Math.ceil(C / 2) +
|
|
780
|
-
return [
|
|
682
|
+
const C = Math.max(1, b.value - 2), R = C === 1 ? n.value : n.value - Math.ceil(C / 2) + i.value;
|
|
683
|
+
return [i.value, e.ellipsis, ...oe(C, R), e.ellipsis, o.value];
|
|
781
684
|
}
|
|
782
685
|
});
|
|
783
|
-
function
|
|
784
|
-
p.preventDefault(), n.value = x,
|
|
686
|
+
function I(p, x, f) {
|
|
687
|
+
p.preventDefault(), n.value = x, f && l(f, x);
|
|
785
688
|
}
|
|
786
689
|
const {
|
|
787
690
|
refs: y,
|
|
788
|
-
updateRef:
|
|
789
|
-
} =
|
|
790
|
-
|
|
691
|
+
updateRef: k
|
|
692
|
+
} = Ca();
|
|
693
|
+
pe({
|
|
791
694
|
VPaginationBtn: {
|
|
792
695
|
color: T(() => e.color),
|
|
793
696
|
border: T(() => e.border),
|
|
@@ -798,15 +701,15 @@ const Aa = _({
|
|
|
798
701
|
elevation: T(() => e.elevation)
|
|
799
702
|
}
|
|
800
703
|
});
|
|
801
|
-
const
|
|
802
|
-
const
|
|
704
|
+
const F = V(() => g.value.map((p, x) => {
|
|
705
|
+
const f = (D) => k(D, x);
|
|
803
706
|
if (typeof p == "string")
|
|
804
707
|
return {
|
|
805
708
|
isActive: !1,
|
|
806
709
|
key: `ellipsis-${x}`,
|
|
807
710
|
page: p,
|
|
808
711
|
props: {
|
|
809
|
-
ref:
|
|
712
|
+
ref: f,
|
|
810
713
|
ellipsis: !0,
|
|
811
714
|
icon: !0,
|
|
812
715
|
disabled: !0
|
|
@@ -817,63 +720,63 @@ const Aa = _({
|
|
|
817
720
|
return {
|
|
818
721
|
isActive: D,
|
|
819
722
|
key: p,
|
|
820
|
-
page:
|
|
723
|
+
page: s(p),
|
|
821
724
|
props: {
|
|
822
|
-
ref:
|
|
725
|
+
ref: f,
|
|
823
726
|
ellipsis: !1,
|
|
824
727
|
icon: !0,
|
|
825
728
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
826
729
|
color: D ? e.activeColor : e.color,
|
|
827
730
|
"aria-current": D,
|
|
828
731
|
"aria-label": r(D ? e.currentPageAriaLabel : e.pageAriaLabel, p),
|
|
829
|
-
onClick: (C) =>
|
|
732
|
+
onClick: (C) => I(C, p)
|
|
830
733
|
}
|
|
831
734
|
};
|
|
832
735
|
}
|
|
833
|
-
})),
|
|
834
|
-
const p = !!e.disabled || n.value <=
|
|
736
|
+
})), P = V(() => {
|
|
737
|
+
const p = !!e.disabled || n.value <= i.value, x = !!e.disabled || n.value >= i.value + o.value - 1;
|
|
835
738
|
return {
|
|
836
739
|
first: e.showFirstLastPage ? {
|
|
837
|
-
icon:
|
|
838
|
-
onClick: (
|
|
740
|
+
icon: v.value ? e.lastIcon : e.firstIcon,
|
|
741
|
+
onClick: (f) => I(f, i.value, "first"),
|
|
839
742
|
disabled: p,
|
|
840
743
|
"aria-label": r(e.firstAriaLabel),
|
|
841
744
|
"aria-disabled": p
|
|
842
745
|
} : void 0,
|
|
843
746
|
prev: {
|
|
844
|
-
icon:
|
|
845
|
-
onClick: (
|
|
747
|
+
icon: v.value ? e.nextIcon : e.prevIcon,
|
|
748
|
+
onClick: (f) => I(f, n.value - 1, "prev"),
|
|
846
749
|
disabled: p,
|
|
847
750
|
"aria-label": r(e.previousAriaLabel),
|
|
848
751
|
"aria-disabled": p
|
|
849
752
|
},
|
|
850
753
|
next: {
|
|
851
|
-
icon:
|
|
852
|
-
onClick: (
|
|
754
|
+
icon: v.value ? e.prevIcon : e.nextIcon,
|
|
755
|
+
onClick: (f) => I(f, n.value + 1, "next"),
|
|
853
756
|
disabled: x,
|
|
854
757
|
"aria-label": r(e.nextAriaLabel),
|
|
855
758
|
"aria-disabled": x
|
|
856
759
|
},
|
|
857
760
|
last: e.showFirstLastPage ? {
|
|
858
|
-
icon:
|
|
859
|
-
onClick: (
|
|
761
|
+
icon: v.value ? e.firstIcon : e.lastIcon,
|
|
762
|
+
onClick: (f) => I(f, i.value + o.value - 1, "last"),
|
|
860
763
|
disabled: x,
|
|
861
764
|
"aria-label": r(e.lastAriaLabel),
|
|
862
765
|
"aria-disabled": x
|
|
863
766
|
} : void 0
|
|
864
767
|
};
|
|
865
768
|
});
|
|
866
|
-
function
|
|
867
|
-
const p = n.value -
|
|
769
|
+
function A() {
|
|
770
|
+
const p = n.value - i.value;
|
|
868
771
|
y.value[p]?.$el.focus();
|
|
869
772
|
}
|
|
870
773
|
function N(p) {
|
|
871
|
-
p.key ===
|
|
774
|
+
p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(A)) : p.key === Ce.right && !e.disabled && n.value < i.value + o.value - 1 && (n.value = n.value + 1, Fe(A));
|
|
872
775
|
}
|
|
873
|
-
return
|
|
776
|
+
return K(() => w(e.tag, {
|
|
874
777
|
ref: h,
|
|
875
|
-
class:
|
|
876
|
-
style:
|
|
778
|
+
class: G(["v-pagination", u.value, e.class]),
|
|
779
|
+
style: Pe(e.style),
|
|
877
780
|
role: "navigation",
|
|
878
781
|
"aria-label": r(e.ariaLabel),
|
|
879
782
|
onKeydown: N,
|
|
@@ -885,21 +788,21 @@ const Aa = _({
|
|
|
885
788
|
key: "first",
|
|
886
789
|
class: "v-pagination__first",
|
|
887
790
|
"data-test": "v-pagination-first"
|
|
888
|
-
}, [a.first ? a.first(
|
|
791
|
+
}, [a.first ? a.first(P.value.first) : w(W, B({
|
|
889
792
|
_as: "VPaginationBtn"
|
|
890
|
-
},
|
|
793
|
+
}, P.value.first), null)]), S("li", {
|
|
891
794
|
key: "prev",
|
|
892
795
|
class: "v-pagination__prev",
|
|
893
796
|
"data-test": "v-pagination-prev"
|
|
894
|
-
}, [a.prev ? a.prev(
|
|
797
|
+
}, [a.prev ? a.prev(P.value.prev) : w(W, B({
|
|
895
798
|
_as: "VPaginationBtn"
|
|
896
|
-
},
|
|
799
|
+
}, P.value.prev), null)]), F.value.map((p, x) => S("li", {
|
|
897
800
|
key: p.key,
|
|
898
|
-
class:
|
|
801
|
+
class: G(["v-pagination__item", {
|
|
899
802
|
"v-pagination__item--is-active": p.isActive
|
|
900
803
|
}]),
|
|
901
804
|
"data-test": "v-pagination-item"
|
|
902
|
-
}, [a.item ? a.item(p) :
|
|
805
|
+
}, [a.item ? a.item(p) : w(W, B({
|
|
903
806
|
_as: "VPaginationBtn"
|
|
904
807
|
}, p.props), {
|
|
905
808
|
default: () => [p.page]
|
|
@@ -907,33 +810,33 @@ const Aa = _({
|
|
|
907
810
|
key: "next",
|
|
908
811
|
class: "v-pagination__next",
|
|
909
812
|
"data-test": "v-pagination-next"
|
|
910
|
-
}, [a.next ? a.next(
|
|
813
|
+
}, [a.next ? a.next(P.value.next) : w(W, B({
|
|
911
814
|
_as: "VPaginationBtn"
|
|
912
|
-
},
|
|
815
|
+
}, P.value.next), null)]), e.showFirstLastPage && S("li", {
|
|
913
816
|
key: "last",
|
|
914
817
|
class: "v-pagination__last",
|
|
915
818
|
"data-test": "v-pagination-last"
|
|
916
|
-
}, [a.last ? a.last(
|
|
819
|
+
}, [a.last ? a.last(P.value.last) : w(W, B({
|
|
917
820
|
_as: "VPaginationBtn"
|
|
918
|
-
},
|
|
821
|
+
}, P.value.last), null)])])]
|
|
919
822
|
})), {};
|
|
920
823
|
}
|
|
921
|
-
}),
|
|
824
|
+
}), rt = _({
|
|
922
825
|
color: String,
|
|
923
826
|
prevIcon: {
|
|
924
|
-
type:
|
|
827
|
+
type: O,
|
|
925
828
|
default: "$prev"
|
|
926
829
|
},
|
|
927
830
|
nextIcon: {
|
|
928
|
-
type:
|
|
831
|
+
type: O,
|
|
929
832
|
default: "$next"
|
|
930
833
|
},
|
|
931
834
|
firstIcon: {
|
|
932
|
-
type:
|
|
835
|
+
type: O,
|
|
933
836
|
default: "$first"
|
|
934
837
|
},
|
|
935
838
|
lastIcon: {
|
|
936
|
-
type:
|
|
839
|
+
type: O,
|
|
937
840
|
default: "$last"
|
|
938
841
|
},
|
|
939
842
|
itemsPerPageText: {
|
|
@@ -980,53 +883,53 @@ const Aa = _({
|
|
|
980
883
|
}]
|
|
981
884
|
},
|
|
982
885
|
showCurrentPage: Boolean
|
|
983
|
-
}, "VDataTableFooter"),
|
|
886
|
+
}, "VDataTableFooter"), Ae = $()({
|
|
984
887
|
name: "VDataTableFooter",
|
|
985
|
-
props:
|
|
888
|
+
props: rt(),
|
|
986
889
|
setup(e, t) {
|
|
987
890
|
let {
|
|
988
891
|
slots: a
|
|
989
892
|
} = t;
|
|
990
893
|
const {
|
|
991
894
|
t: l
|
|
992
|
-
} =
|
|
895
|
+
} = X(), {
|
|
993
896
|
page: n,
|
|
994
897
|
pageCount: r,
|
|
995
|
-
startIndex:
|
|
996
|
-
stopIndex:
|
|
898
|
+
startIndex: s,
|
|
899
|
+
stopIndex: v,
|
|
997
900
|
itemsLength: u,
|
|
998
|
-
itemsPerPage:
|
|
901
|
+
itemsPerPage: c,
|
|
999
902
|
setItemsPerPage: m
|
|
1000
|
-
} =
|
|
1001
|
-
value:
|
|
1002
|
-
title:
|
|
903
|
+
} = ya(), h = V(() => e.itemsPerPageOptions.map((o) => typeof o == "number" ? {
|
|
904
|
+
value: o,
|
|
905
|
+
title: o === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(o)
|
|
1003
906
|
} : {
|
|
1004
|
-
...
|
|
1005
|
-
title: isNaN(Number(
|
|
907
|
+
...o,
|
|
908
|
+
title: isNaN(Number(o.title)) ? l(o.title) : o.title
|
|
1006
909
|
}));
|
|
1007
|
-
return
|
|
1008
|
-
const
|
|
910
|
+
return K(() => {
|
|
911
|
+
const o = Oe.filterProps(e);
|
|
1009
912
|
return S("div", {
|
|
1010
913
|
class: "v-data-table-footer"
|
|
1011
914
|
}, [a.prepend?.(), S("div", {
|
|
1012
915
|
class: "v-data-table-footer__items-per-page"
|
|
1013
916
|
}, [S("span", {
|
|
1014
917
|
"aria-label": l(e.itemsPerPageText)
|
|
1015
|
-
}, [l(e.itemsPerPageText)]),
|
|
918
|
+
}, [l(e.itemsPerPageText)]), w(qe, {
|
|
1016
919
|
items: h.value,
|
|
1017
920
|
itemColor: e.color,
|
|
1018
|
-
modelValue:
|
|
1019
|
-
"onUpdate:modelValue": (
|
|
921
|
+
modelValue: c.value,
|
|
922
|
+
"onUpdate:modelValue": (i) => m(Number(i)),
|
|
1020
923
|
density: "compact",
|
|
1021
924
|
variant: "outlined",
|
|
1022
925
|
hideDetails: !0
|
|
1023
926
|
}, null)]), S("div", {
|
|
1024
927
|
class: "v-data-table-footer__info"
|
|
1025
|
-
}, [S("div", null, [l(e.pageText, u.value ?
|
|
928
|
+
}, [S("div", null, [l(e.pageText, u.value ? s.value + 1 : 0, v.value, u.value)])]), S("div", {
|
|
1026
929
|
class: "v-data-table-footer__pagination"
|
|
1027
|
-
}, [
|
|
930
|
+
}, [w(Oe, B({
|
|
1028
931
|
modelValue: n.value,
|
|
1029
|
-
"onUpdate:modelValue": (
|
|
932
|
+
"onUpdate:modelValue": (i) => n.value = i,
|
|
1030
933
|
density: "comfortable",
|
|
1031
934
|
firstAriaLabel: e.firstPageLabel,
|
|
1032
935
|
lastAriaLabel: e.lastPageLabel,
|
|
@@ -1037,10 +940,10 @@ const Aa = _({
|
|
|
1037
940
|
showFirstLastPage: !0,
|
|
1038
941
|
totalVisible: e.showCurrentPage ? 1 : 0,
|
|
1039
942
|
variant: "plain"
|
|
1040
|
-
},
|
|
943
|
+
}, Ie(o, ["color"])), null)])]);
|
|
1041
944
|
}), {};
|
|
1042
945
|
}
|
|
1043
|
-
}),
|
|
946
|
+
}), ee = zt({
|
|
1044
947
|
align: {
|
|
1045
948
|
type: String,
|
|
1046
949
|
default: "start"
|
|
@@ -1066,8 +969,8 @@ const Aa = _({
|
|
|
1066
969
|
slots: a
|
|
1067
970
|
} = t;
|
|
1068
971
|
const l = e.tag ?? "td", n = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
|
|
1069
|
-
return
|
|
1070
|
-
class:
|
|
972
|
+
return w(l, {
|
|
973
|
+
class: G(["v-data-table__td", {
|
|
1071
974
|
"v-data-table-column--fixed": n === "start",
|
|
1072
975
|
"v-data-table-column--fixed-end": n === "end",
|
|
1073
976
|
"v-data-table-column--last-fixed": e.lastFixed,
|
|
@@ -1077,26 +980,26 @@ const Aa = _({
|
|
|
1077
980
|
"v-data-table-column--empty": e.empty
|
|
1078
981
|
}, `v-data-table-column--align-${e.align}`]),
|
|
1079
982
|
style: {
|
|
1080
|
-
height:
|
|
1081
|
-
width:
|
|
1082
|
-
maxWidth:
|
|
1083
|
-
left: n === "start" ?
|
|
1084
|
-
right: n === "end" ?
|
|
1085
|
-
paddingInlineStart: e.indent ?
|
|
983
|
+
height: E(e.height),
|
|
984
|
+
width: E(e.width),
|
|
985
|
+
maxWidth: E(e.maxWidth),
|
|
986
|
+
left: n === "start" ? E(e.fixedOffset || null) : void 0,
|
|
987
|
+
right: n === "end" ? E(e.fixedEndOffset || null) : void 0,
|
|
988
|
+
paddingInlineStart: e.indent ? E(e.indent) : void 0
|
|
1086
989
|
}
|
|
1087
990
|
}, {
|
|
1088
991
|
default: () => [a.default?.()]
|
|
1089
992
|
});
|
|
1090
|
-
}),
|
|
993
|
+
}), Ba = _({
|
|
1091
994
|
headers: Array
|
|
1092
|
-
}, "DataTable-header"),
|
|
995
|
+
}, "DataTable-header"), ot = Symbol.for("vuetify:data-table-headers"), st = {
|
|
1093
996
|
title: "",
|
|
1094
997
|
sortable: !1
|
|
1095
|
-
},
|
|
1096
|
-
...
|
|
998
|
+
}, Oa = {
|
|
999
|
+
...st,
|
|
1097
1000
|
width: 48
|
|
1098
1001
|
};
|
|
1099
|
-
function
|
|
1002
|
+
function Aa() {
|
|
1100
1003
|
const t = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).map((a) => ({
|
|
1101
1004
|
element: a,
|
|
1102
1005
|
priority: 0
|
|
@@ -1129,53 +1032,53 @@ function Ra() {
|
|
|
1129
1032
|
dequeue: () => t.shift()
|
|
1130
1033
|
};
|
|
1131
1034
|
}
|
|
1132
|
-
function
|
|
1035
|
+
function Se(e) {
|
|
1133
1036
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1134
1037
|
if (!e.children)
|
|
1135
1038
|
t.push(e);
|
|
1136
1039
|
else
|
|
1137
1040
|
for (const a of e.children)
|
|
1138
|
-
|
|
1041
|
+
Se(a, t);
|
|
1139
1042
|
return t;
|
|
1140
1043
|
}
|
|
1141
|
-
function
|
|
1044
|
+
function it(e) {
|
|
1142
1045
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();
|
|
1143
1046
|
for (const a of e)
|
|
1144
|
-
a.key && t.add(a.key), a.children &&
|
|
1047
|
+
a.key && t.add(a.key), a.children && it(a.children, t);
|
|
1145
1048
|
return t;
|
|
1146
1049
|
}
|
|
1147
|
-
function
|
|
1050
|
+
function Ea(e) {
|
|
1148
1051
|
if (e.key) {
|
|
1149
|
-
if (e.key === "data-table-group") return
|
|
1150
|
-
if (["data-table-expand", "data-table-select"].includes(e.key)) return
|
|
1052
|
+
if (e.key === "data-table-group") return st;
|
|
1053
|
+
if (["data-table-expand", "data-table-select"].includes(e.key)) return Oa;
|
|
1151
1054
|
}
|
|
1152
1055
|
}
|
|
1153
|
-
function
|
|
1056
|
+
function Ve(e) {
|
|
1154
1057
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1155
|
-
return e.children ? Math.max(t, ...e.children.map((a) =>
|
|
1058
|
+
return e.children ? Math.max(t, ...e.children.map((a) => Ve(a, t + 1))) : t;
|
|
1156
1059
|
}
|
|
1157
|
-
function
|
|
1060
|
+
function La(e) {
|
|
1158
1061
|
let t = !1;
|
|
1159
|
-
function a(r,
|
|
1160
|
-
let
|
|
1062
|
+
function a(r, s) {
|
|
1063
|
+
let v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
1161
1064
|
if (r)
|
|
1162
|
-
if (
|
|
1065
|
+
if (v !== "none" && (r.fixed = v), r.fixed === !0 && (r.fixed = "start"), r.fixed === s)
|
|
1163
1066
|
if (r.children)
|
|
1164
|
-
if (
|
|
1067
|
+
if (s === "start")
|
|
1165
1068
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1166
|
-
a(r.children[u],
|
|
1069
|
+
a(r.children[u], s, s);
|
|
1167
1070
|
else
|
|
1168
1071
|
for (let u = 0; u < r.children.length; u++)
|
|
1169
|
-
a(r.children[u],
|
|
1072
|
+
a(r.children[u], s, s);
|
|
1170
1073
|
else
|
|
1171
|
-
!t &&
|
|
1074
|
+
!t && s === "start" ? r.lastFixed = !0 : !t && s === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? qt(`Multiple fixed columns should have a static width (key: ${r.key})`) : r.minWidth = Math.max(Number(r.width) || 0, Number(r.minWidth) || 0), t = !0;
|
|
1172
1075
|
else if (r.children)
|
|
1173
|
-
if (
|
|
1076
|
+
if (s === "start")
|
|
1174
1077
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1175
|
-
a(r.children[u],
|
|
1078
|
+
a(r.children[u], s);
|
|
1176
1079
|
else
|
|
1177
1080
|
for (let u = 0; u < r.children.length; u++)
|
|
1178
|
-
a(r.children[u],
|
|
1081
|
+
a(r.children[u], s);
|
|
1179
1082
|
else
|
|
1180
1083
|
t = !1;
|
|
1181
1084
|
}
|
|
@@ -1185,127 +1088,127 @@ function Ma(e) {
|
|
|
1185
1088
|
a(e[r], "end");
|
|
1186
1089
|
let l = 0;
|
|
1187
1090
|
for (let r = 0; r < e.length; r++)
|
|
1188
|
-
l =
|
|
1091
|
+
l = ut(e[r], l);
|
|
1189
1092
|
let n = 0;
|
|
1190
1093
|
for (let r = e.length - 1; r >= 0; r--)
|
|
1191
|
-
n =
|
|
1094
|
+
n = dt(e[r], n);
|
|
1192
1095
|
}
|
|
1193
|
-
function
|
|
1096
|
+
function ut(e) {
|
|
1194
1097
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1195
1098
|
if (!e) return t;
|
|
1196
1099
|
if (e.children) {
|
|
1197
1100
|
e.fixedOffset = t;
|
|
1198
1101
|
for (const a of e.children)
|
|
1199
|
-
t =
|
|
1102
|
+
t = ut(a, t);
|
|
1200
1103
|
} else e.fixed && e.fixed !== "end" && (e.fixedOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1201
1104
|
return t;
|
|
1202
1105
|
}
|
|
1203
|
-
function
|
|
1106
|
+
function dt(e) {
|
|
1204
1107
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1205
1108
|
if (!e) return t;
|
|
1206
1109
|
if (e.children) {
|
|
1207
1110
|
e.fixedEndOffset = t;
|
|
1208
1111
|
for (const a of e.children)
|
|
1209
|
-
t =
|
|
1112
|
+
t = dt(a, t);
|
|
1210
1113
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1211
1114
|
return t;
|
|
1212
1115
|
}
|
|
1213
|
-
function
|
|
1116
|
+
function Na(e, t) {
|
|
1214
1117
|
const a = [];
|
|
1215
1118
|
let l = 0;
|
|
1216
|
-
const n =
|
|
1119
|
+
const n = Aa(e);
|
|
1217
1120
|
for (; n.size() > 0; ) {
|
|
1218
|
-
let
|
|
1219
|
-
const
|
|
1121
|
+
let s = n.count();
|
|
1122
|
+
const v = [];
|
|
1220
1123
|
let u = 1;
|
|
1221
|
-
for (;
|
|
1124
|
+
for (; s > 0; ) {
|
|
1222
1125
|
const {
|
|
1223
|
-
element:
|
|
1126
|
+
element: c,
|
|
1224
1127
|
priority: m
|
|
1225
|
-
} = n.dequeue(), h = t - l -
|
|
1226
|
-
if (
|
|
1227
|
-
...
|
|
1128
|
+
} = n.dequeue(), h = t - l - Ve(c);
|
|
1129
|
+
if (v.push({
|
|
1130
|
+
...c,
|
|
1228
1131
|
rowspan: h ?? 1,
|
|
1229
|
-
colspan:
|
|
1230
|
-
}),
|
|
1231
|
-
for (const
|
|
1232
|
-
const
|
|
1233
|
-
n.enqueue(
|
|
1132
|
+
colspan: c.children ? Se(c).length : 1
|
|
1133
|
+
}), c.children)
|
|
1134
|
+
for (const o of c.children) {
|
|
1135
|
+
const i = m % 1 + u / Math.pow(10, l + 2);
|
|
1136
|
+
n.enqueue(o, l + h + i);
|
|
1234
1137
|
}
|
|
1235
|
-
u += 1,
|
|
1138
|
+
u += 1, s -= 1;
|
|
1236
1139
|
}
|
|
1237
|
-
l += 1, a.push(
|
|
1140
|
+
l += 1, a.push(v);
|
|
1238
1141
|
}
|
|
1239
1142
|
return {
|
|
1240
|
-
columns: e.map((
|
|
1143
|
+
columns: e.map((s) => Se(s)).flat(),
|
|
1241
1144
|
headers: a
|
|
1242
1145
|
};
|
|
1243
1146
|
}
|
|
1244
|
-
function
|
|
1147
|
+
function ct(e) {
|
|
1245
1148
|
const t = [];
|
|
1246
1149
|
for (const a of e) {
|
|
1247
1150
|
const l = {
|
|
1248
|
-
|
|
1151
|
+
...Ea(a),
|
|
1249
1152
|
...a
|
|
1250
|
-
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null,
|
|
1153
|
+
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, s = {
|
|
1251
1154
|
...l,
|
|
1252
1155
|
key: n,
|
|
1253
1156
|
value: r,
|
|
1254
1157
|
sortable: l.sortable ?? (l.key != null || !!l.sort),
|
|
1255
|
-
children: l.children ?
|
|
1158
|
+
children: l.children ? ct(l.children) : void 0
|
|
1256
1159
|
};
|
|
1257
|
-
t.push(
|
|
1160
|
+
t.push(s);
|
|
1258
1161
|
}
|
|
1259
1162
|
return t;
|
|
1260
1163
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const a =
|
|
1263
|
-
|
|
1264
|
-
const
|
|
1265
|
-
key:
|
|
1266
|
-
title:
|
|
1267
|
-
}))).slice(), m =
|
|
1268
|
-
t?.groupBy?.value.length && !m.has("data-table-group") &&
|
|
1164
|
+
function Ra(e, t) {
|
|
1165
|
+
const a = M([]), l = M([]), n = M({}), r = M({}), s = M({});
|
|
1166
|
+
Ct(() => {
|
|
1167
|
+
const c = (e.headers || Object.keys(e.items[0] ?? {}).map((d) => ({
|
|
1168
|
+
key: d,
|
|
1169
|
+
title: _t(d)
|
|
1170
|
+
}))).slice(), m = it(c);
|
|
1171
|
+
t?.groupBy?.value.length && !m.has("data-table-group") && c.unshift({
|
|
1269
1172
|
key: "data-table-group",
|
|
1270
1173
|
title: "Group"
|
|
1271
|
-
}), t?.showSelect?.value && !m.has("data-table-select") &&
|
|
1174
|
+
}), t?.showSelect?.value && !m.has("data-table-select") && c.unshift({
|
|
1272
1175
|
key: "data-table-select"
|
|
1273
|
-
}), t?.showExpand?.value && !m.has("data-table-expand") &&
|
|
1176
|
+
}), t?.showExpand?.value && !m.has("data-table-expand") && c.push({
|
|
1274
1177
|
key: "data-table-expand"
|
|
1275
1178
|
});
|
|
1276
|
-
const h =
|
|
1277
|
-
|
|
1278
|
-
const
|
|
1279
|
-
a.value =
|
|
1280
|
-
const b =
|
|
1281
|
-
for (const
|
|
1282
|
-
|
|
1179
|
+
const h = ct(c);
|
|
1180
|
+
La(h);
|
|
1181
|
+
const o = Math.max(...h.map((d) => Ve(d))) + 1, i = Na(h, o);
|
|
1182
|
+
a.value = i.headers, l.value = i.columns;
|
|
1183
|
+
const b = i.headers.flat(1);
|
|
1184
|
+
for (const d of b)
|
|
1185
|
+
d.key && (d.sortable && (d.sort && (n.value[d.key] = d.sort), d.sortRaw && (r.value[d.key] = d.sortRaw)), d.filter && (s.value[d.key] = d.filter));
|
|
1283
1186
|
});
|
|
1284
|
-
const
|
|
1187
|
+
const v = {
|
|
1285
1188
|
headers: a,
|
|
1286
1189
|
columns: l,
|
|
1287
1190
|
sortFunctions: n,
|
|
1288
1191
|
sortRawFunctions: r,
|
|
1289
|
-
filterFunctions:
|
|
1192
|
+
filterFunctions: s
|
|
1290
1193
|
};
|
|
1291
|
-
return
|
|
1194
|
+
return Q(ot, v), v;
|
|
1292
1195
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const e =
|
|
1196
|
+
function ge() {
|
|
1197
|
+
const e = U(ot);
|
|
1295
1198
|
if (!e) throw new Error("Missing headers!");
|
|
1296
1199
|
return e;
|
|
1297
1200
|
}
|
|
1298
|
-
const
|
|
1201
|
+
const ft = _({
|
|
1299
1202
|
color: String,
|
|
1300
1203
|
disableSort: Boolean,
|
|
1301
1204
|
fixedHeader: Boolean,
|
|
1302
1205
|
multiSort: Boolean,
|
|
1303
1206
|
sortAscIcon: {
|
|
1304
|
-
type:
|
|
1207
|
+
type: O,
|
|
1305
1208
|
default: "$sortAsc"
|
|
1306
1209
|
},
|
|
1307
1210
|
sortDescIcon: {
|
|
1308
|
-
type:
|
|
1211
|
+
type: O,
|
|
1309
1212
|
default: "$sortDesc"
|
|
1310
1213
|
},
|
|
1311
1214
|
headerProps: {
|
|
@@ -1313,141 +1216,141 @@ const mt = _({
|
|
|
1313
1216
|
},
|
|
1314
1217
|
/** @deprecated */
|
|
1315
1218
|
sticky: Boolean,
|
|
1316
|
-
...
|
|
1317
|
-
...
|
|
1318
|
-
...
|
|
1319
|
-
}, "VDataTableHeaders"),
|
|
1219
|
+
...te(),
|
|
1220
|
+
...De(),
|
|
1221
|
+
...Qt()
|
|
1222
|
+
}, "VDataTableHeaders"), Ee = $()({
|
|
1320
1223
|
name: "VDataTableHeaders",
|
|
1321
|
-
props:
|
|
1224
|
+
props: ft(),
|
|
1322
1225
|
setup(e, t) {
|
|
1323
1226
|
let {
|
|
1324
1227
|
slots: a
|
|
1325
1228
|
} = t;
|
|
1326
1229
|
const {
|
|
1327
1230
|
t: l
|
|
1328
|
-
} =
|
|
1231
|
+
} = X(), {
|
|
1329
1232
|
toggleSort: n,
|
|
1330
1233
|
sortBy: r,
|
|
1331
|
-
isSorted:
|
|
1332
|
-
} =
|
|
1333
|
-
someSelected:
|
|
1234
|
+
isSorted: s
|
|
1235
|
+
} = nt(), {
|
|
1236
|
+
someSelected: v,
|
|
1334
1237
|
allSelected: u,
|
|
1335
|
-
selectAll:
|
|
1238
|
+
selectAll: c,
|
|
1336
1239
|
showSelectAll: m
|
|
1337
|
-
} =
|
|
1240
|
+
} = ve(), {
|
|
1338
1241
|
columns: h,
|
|
1339
|
-
headers:
|
|
1340
|
-
} =
|
|
1341
|
-
loaderClasses:
|
|
1342
|
-
} =
|
|
1343
|
-
function b(x,
|
|
1242
|
+
headers: o
|
|
1243
|
+
} = ge(), {
|
|
1244
|
+
loaderClasses: i
|
|
1245
|
+
} = Ut(e);
|
|
1246
|
+
function b(x, f) {
|
|
1344
1247
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1345
1248
|
const D = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1346
1249
|
return {
|
|
1347
1250
|
position: "sticky",
|
|
1348
|
-
left: D === "start" ?
|
|
1349
|
-
right: D === "end" ?
|
|
1350
|
-
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${
|
|
1251
|
+
left: D === "start" ? E(x.fixedOffset) : void 0,
|
|
1252
|
+
right: D === "end" ? E(x.fixedEndOffset) : void 0,
|
|
1253
|
+
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${f})` : void 0
|
|
1351
1254
|
};
|
|
1352
1255
|
}
|
|
1353
|
-
function
|
|
1354
|
-
x.key === "Enter" && !e.disableSort && n(
|
|
1256
|
+
function d(x, f) {
|
|
1257
|
+
x.key === "Enter" && !e.disableSort && n(f, x);
|
|
1355
1258
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1259
|
+
function g(x) {
|
|
1260
|
+
const f = r.value.find((D) => D.key === x.key);
|
|
1261
|
+
return f ? f.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
|
|
1359
1262
|
}
|
|
1360
1263
|
const {
|
|
1361
|
-
backgroundColorClasses:
|
|
1264
|
+
backgroundColorClasses: I,
|
|
1362
1265
|
backgroundColorStyles: y
|
|
1363
|
-
} =
|
|
1364
|
-
displayClasses:
|
|
1365
|
-
mobile:
|
|
1366
|
-
} =
|
|
1367
|
-
headers:
|
|
1266
|
+
} = ze(() => e.color), {
|
|
1267
|
+
displayClasses: k,
|
|
1268
|
+
mobile: F
|
|
1269
|
+
} = fe(e), P = V(() => ({
|
|
1270
|
+
headers: o.value,
|
|
1368
1271
|
columns: h.value,
|
|
1369
1272
|
toggleSort: n,
|
|
1370
|
-
isSorted:
|
|
1273
|
+
isSorted: s,
|
|
1371
1274
|
sortBy: r.value,
|
|
1372
|
-
someSelected:
|
|
1275
|
+
someSelected: v.value,
|
|
1373
1276
|
allSelected: u.value,
|
|
1374
|
-
selectAll:
|
|
1375
|
-
getSortIcon:
|
|
1376
|
-
})),
|
|
1277
|
+
selectAll: c,
|
|
1278
|
+
getSortIcon: g
|
|
1279
|
+
})), A = V(() => ["v-data-table__th", {
|
|
1377
1280
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1378
|
-
},
|
|
1281
|
+
}, k.value, i.value]), N = (x) => {
|
|
1379
1282
|
let {
|
|
1380
|
-
column:
|
|
1283
|
+
column: f,
|
|
1381
1284
|
x: D,
|
|
1382
1285
|
y: C
|
|
1383
1286
|
} = x;
|
|
1384
|
-
const R =
|
|
1385
|
-
return
|
|
1287
|
+
const R = f.key === "data-table-select" || f.key === "data-table-expand", ae = f.key === "data-table-group" && f.width === 0 && !f.title, be = B(e.headerProps ?? {}, f.headerProps ?? {});
|
|
1288
|
+
return w(ee, B({
|
|
1386
1289
|
tag: "th",
|
|
1387
|
-
align:
|
|
1290
|
+
align: f.align,
|
|
1388
1291
|
class: [{
|
|
1389
|
-
"v-data-table__th--sortable":
|
|
1390
|
-
"v-data-table__th--sorted":
|
|
1391
|
-
"v-data-table__th--fixed":
|
|
1392
|
-
}, ...
|
|
1292
|
+
"v-data-table__th--sortable": f.sortable && !e.disableSort,
|
|
1293
|
+
"v-data-table__th--sorted": s(f),
|
|
1294
|
+
"v-data-table__th--fixed": f.fixed
|
|
1295
|
+
}, ...A.value],
|
|
1393
1296
|
style: {
|
|
1394
|
-
width:
|
|
1395
|
-
minWidth:
|
|
1396
|
-
maxWidth:
|
|
1397
|
-
...b(
|
|
1297
|
+
width: E(f.width),
|
|
1298
|
+
minWidth: E(f.minWidth),
|
|
1299
|
+
maxWidth: E(f.maxWidth),
|
|
1300
|
+
...b(f, C)
|
|
1398
1301
|
},
|
|
1399
|
-
colspan:
|
|
1400
|
-
rowspan:
|
|
1401
|
-
fixed:
|
|
1402
|
-
nowrap:
|
|
1403
|
-
lastFixed:
|
|
1404
|
-
firstFixedEnd:
|
|
1302
|
+
colspan: f.colspan,
|
|
1303
|
+
rowspan: f.rowspan,
|
|
1304
|
+
fixed: f.fixed,
|
|
1305
|
+
nowrap: f.nowrap,
|
|
1306
|
+
lastFixed: f.lastFixed,
|
|
1307
|
+
firstFixedEnd: f.firstFixedEnd,
|
|
1405
1308
|
noPadding: R,
|
|
1406
|
-
empty:
|
|
1407
|
-
tabindex:
|
|
1408
|
-
onClick:
|
|
1409
|
-
onKeydown:
|
|
1410
|
-
},
|
|
1309
|
+
empty: ae,
|
|
1310
|
+
tabindex: f.sortable ? 0 : void 0,
|
|
1311
|
+
onClick: f.sortable ? (H) => n(f, H) : void 0,
|
|
1312
|
+
onKeydown: f.sortable ? (H) => d(H, f) : void 0
|
|
1313
|
+
}, be), {
|
|
1411
1314
|
default: () => {
|
|
1412
|
-
const
|
|
1413
|
-
column:
|
|
1414
|
-
selectAll:
|
|
1415
|
-
isSorted:
|
|
1315
|
+
const H = `header.${f.key}`, J = {
|
|
1316
|
+
column: f,
|
|
1317
|
+
selectAll: c,
|
|
1318
|
+
isSorted: s,
|
|
1416
1319
|
toggleSort: n,
|
|
1417
1320
|
sortBy: r.value,
|
|
1418
|
-
someSelected:
|
|
1321
|
+
someSelected: v.value,
|
|
1419
1322
|
allSelected: u.value,
|
|
1420
|
-
getSortIcon:
|
|
1323
|
+
getSortIcon: g
|
|
1421
1324
|
};
|
|
1422
|
-
return a[
|
|
1325
|
+
return a[H] ? a[H](J) : ae ? "" : f.key === "data-table-select" ? a["header.data-table-select"]?.(J) ?? (m.value && w(de, {
|
|
1423
1326
|
color: e.color,
|
|
1424
1327
|
density: e.density,
|
|
1425
1328
|
modelValue: u.value,
|
|
1426
|
-
indeterminate:
|
|
1427
|
-
"onUpdate:modelValue":
|
|
1329
|
+
indeterminate: v.value && !u.value,
|
|
1330
|
+
"onUpdate:modelValue": c
|
|
1428
1331
|
}, null)) : S("div", {
|
|
1429
1332
|
class: "v-data-table-header__content"
|
|
1430
|
-
}, [S("span", null, [
|
|
1333
|
+
}, [S("span", null, [f.title]), f.sortable && !e.disableSort && w(_e, {
|
|
1431
1334
|
key: "icon",
|
|
1432
1335
|
class: "v-data-table-header__sort-icon",
|
|
1433
|
-
icon:
|
|
1434
|
-
}, null), e.multiSort &&
|
|
1336
|
+
icon: g(f)
|
|
1337
|
+
}, null), e.multiSort && s(f) && S("div", {
|
|
1435
1338
|
key: "badge",
|
|
1436
|
-
class:
|
|
1437
|
-
style:
|
|
1438
|
-
}, [r.value.findIndex((
|
|
1339
|
+
class: G(["v-data-table-header__sort-badge", ...I.value]),
|
|
1340
|
+
style: Pe(y.value)
|
|
1341
|
+
}, [r.value.findIndex((Y) => Y.key === f.key) + 1])]);
|
|
1439
1342
|
}
|
|
1440
1343
|
});
|
|
1441
1344
|
}, p = () => {
|
|
1442
|
-
const x =
|
|
1443
|
-
return
|
|
1345
|
+
const x = V(() => h.value.filter((f) => f?.sortable && !e.disableSort));
|
|
1346
|
+
return w(ee, B({
|
|
1444
1347
|
tag: "th",
|
|
1445
|
-
class: [...
|
|
1446
|
-
colspan:
|
|
1348
|
+
class: [...A.value],
|
|
1349
|
+
colspan: o.value.length + 1
|
|
1447
1350
|
}, e.headerProps), {
|
|
1448
1351
|
default: () => [S("div", {
|
|
1449
1352
|
class: "v-data-table-header__content"
|
|
1450
|
-
}, [
|
|
1353
|
+
}, [w(qe, {
|
|
1451
1354
|
chips: !0,
|
|
1452
1355
|
color: e.color,
|
|
1453
1356
|
class: "v-data-table__td-sort-select",
|
|
@@ -1458,39 +1361,39 @@ const mt = _({
|
|
|
1458
1361
|
multiple: e.multiSort,
|
|
1459
1362
|
variant: "underlined",
|
|
1460
1363
|
"onClick:clear": () => r.value = [],
|
|
1461
|
-
"onClick:append": () =>
|
|
1364
|
+
"onClick:append": () => c(!u.value)
|
|
1462
1365
|
}, {
|
|
1463
|
-
append: () =>
|
|
1366
|
+
append: () => w(de, {
|
|
1464
1367
|
color: e.color,
|
|
1465
1368
|
density: "compact",
|
|
1466
1369
|
modelValue: u.value,
|
|
1467
|
-
indeterminate:
|
|
1468
|
-
"onUpdate:modelValue":
|
|
1370
|
+
indeterminate: v.value && !u.value,
|
|
1371
|
+
"onUpdate:modelValue": c
|
|
1469
1372
|
}, null),
|
|
1470
|
-
chip: (
|
|
1471
|
-
onClick:
|
|
1373
|
+
chip: (f) => w(aa, {
|
|
1374
|
+
onClick: f.item.raw?.sortable ? () => n(f.item.raw) : void 0,
|
|
1472
1375
|
onMousedown: (D) => {
|
|
1473
1376
|
D.preventDefault(), D.stopPropagation();
|
|
1474
1377
|
}
|
|
1475
1378
|
}, {
|
|
1476
|
-
default: () => [
|
|
1477
|
-
class:
|
|
1478
|
-
icon:
|
|
1379
|
+
default: () => [f.item.title, w(_e, {
|
|
1380
|
+
class: G(["v-data-table__td-sort-icon", s(f.item.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1381
|
+
icon: g(f.item.raw),
|
|
1479
1382
|
size: "small"
|
|
1480
1383
|
}, null)]
|
|
1481
1384
|
})
|
|
1482
1385
|
})])]
|
|
1483
1386
|
});
|
|
1484
1387
|
};
|
|
1485
|
-
|
|
1388
|
+
K(() => F.value ? S("tr", null, [w(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) : o.value.map((x, f) => S("tr", null, [x.map((D, C) => w(N, {
|
|
1486
1389
|
column: D,
|
|
1487
1390
|
x: C,
|
|
1488
|
-
y:
|
|
1391
|
+
y: f
|
|
1489
1392
|
}, null))])), e.loading && S("tr", {
|
|
1490
1393
|
class: "v-data-table-progress"
|
|
1491
1394
|
}, [S("th", {
|
|
1492
1395
|
colspan: h.value.length
|
|
1493
|
-
}, [
|
|
1396
|
+
}, [w(Jt, {
|
|
1494
1397
|
name: "v-data-table-progress",
|
|
1495
1398
|
absolute: !0,
|
|
1496
1399
|
active: !0,
|
|
@@ -1500,23 +1403,23 @@ const mt = _({
|
|
|
1500
1403
|
default: a.loader
|
|
1501
1404
|
})])])]));
|
|
1502
1405
|
}
|
|
1503
|
-
}),
|
|
1406
|
+
}), vt = _({
|
|
1504
1407
|
item: {
|
|
1505
1408
|
type: Object,
|
|
1506
1409
|
required: !0
|
|
1507
1410
|
},
|
|
1508
1411
|
groupCollapseIcon: {
|
|
1509
|
-
type:
|
|
1412
|
+
type: O,
|
|
1510
1413
|
default: "$tableGroupCollapse"
|
|
1511
1414
|
},
|
|
1512
1415
|
groupExpandIcon: {
|
|
1513
|
-
type:
|
|
1416
|
+
type: O,
|
|
1514
1417
|
default: "$tableGroupExpand"
|
|
1515
1418
|
},
|
|
1516
|
-
...
|
|
1517
|
-
}, "VDataTableGroupHeaderRow"),
|
|
1419
|
+
...te()
|
|
1420
|
+
}, "VDataTableGroupHeaderRow"), $a = $()({
|
|
1518
1421
|
name: "VDataTableGroupHeaderRow",
|
|
1519
|
-
props:
|
|
1422
|
+
props: vt(),
|
|
1520
1423
|
setup(e, t) {
|
|
1521
1424
|
let {
|
|
1522
1425
|
slots: a
|
|
@@ -1525,83 +1428,83 @@ const mt = _({
|
|
|
1525
1428
|
isGroupOpen: l,
|
|
1526
1429
|
toggleGroup: n,
|
|
1527
1430
|
extractRows: r
|
|
1528
|
-
} =
|
|
1529
|
-
isSelected:
|
|
1530
|
-
isSomeSelected:
|
|
1431
|
+
} = Xe(), {
|
|
1432
|
+
isSelected: s,
|
|
1433
|
+
isSomeSelected: v,
|
|
1531
1434
|
select: u
|
|
1532
|
-
} =
|
|
1533
|
-
columns:
|
|
1534
|
-
} =
|
|
1435
|
+
} = ve(), {
|
|
1436
|
+
columns: c
|
|
1437
|
+
} = ge(), m = V(() => r([e.item])), h = T(() => c.value.length - (c.value.some((o) => o.key === "data-table-select") ? 1 : 0));
|
|
1535
1438
|
return () => S("tr", {
|
|
1536
1439
|
class: "v-data-table-group-header-row",
|
|
1537
1440
|
style: {
|
|
1538
1441
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
1539
1442
|
}
|
|
1540
|
-
}, [
|
|
1541
|
-
if (
|
|
1542
|
-
const
|
|
1443
|
+
}, [c.value.map((o) => {
|
|
1444
|
+
if (o.key === "data-table-group") {
|
|
1445
|
+
const i = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
|
|
1543
1446
|
return a["data-table-group"]?.({
|
|
1544
1447
|
item: e.item,
|
|
1545
1448
|
count: m.value.length,
|
|
1546
1449
|
props: {
|
|
1547
|
-
icon:
|
|
1450
|
+
icon: i,
|
|
1548
1451
|
onClick: b
|
|
1549
1452
|
}
|
|
1550
|
-
}) ??
|
|
1453
|
+
}) ?? w(ee, {
|
|
1551
1454
|
class: "v-data-table-group-header-row__column",
|
|
1552
1455
|
colspan: h.value
|
|
1553
1456
|
}, {
|
|
1554
|
-
default: () => [
|
|
1457
|
+
default: () => [w(W, {
|
|
1555
1458
|
size: "small",
|
|
1556
1459
|
variant: "text",
|
|
1557
|
-
icon:
|
|
1460
|
+
icon: i,
|
|
1558
1461
|
onClick: b
|
|
1559
|
-
}, null), S("span", null, [e.item.value]), S("span", null, [
|
|
1462
|
+
}, null), S("span", null, [e.item.value]), S("span", null, [Te("("), m.value.length, Te(")")])]
|
|
1560
1463
|
});
|
|
1561
|
-
} else if (
|
|
1562
|
-
const
|
|
1464
|
+
} else if (o.key === "data-table-select") {
|
|
1465
|
+
const i = s(m.value), b = v(m.value) && !i, d = (g) => u(m.value, g);
|
|
1563
1466
|
return a["data-table-select"]?.({
|
|
1564
1467
|
props: {
|
|
1565
|
-
modelValue:
|
|
1468
|
+
modelValue: i,
|
|
1566
1469
|
indeterminate: b,
|
|
1567
|
-
"onUpdate:modelValue":
|
|
1470
|
+
"onUpdate:modelValue": d
|
|
1568
1471
|
}
|
|
1569
|
-
}) ??
|
|
1472
|
+
}) ?? w(ee, {
|
|
1570
1473
|
class: "v-data-table__td--select-row",
|
|
1571
1474
|
noPadding: !0
|
|
1572
1475
|
}, {
|
|
1573
|
-
default: () => [
|
|
1476
|
+
default: () => [w(de, {
|
|
1574
1477
|
density: e.density,
|
|
1575
|
-
modelValue:
|
|
1478
|
+
modelValue: i,
|
|
1576
1479
|
indeterminate: b,
|
|
1577
|
-
"onUpdate:modelValue":
|
|
1480
|
+
"onUpdate:modelValue": d
|
|
1578
1481
|
}, null)]
|
|
1579
1482
|
});
|
|
1580
1483
|
}
|
|
1581
1484
|
return "";
|
|
1582
1485
|
})]);
|
|
1583
1486
|
}
|
|
1584
|
-
}),
|
|
1487
|
+
}), gt = _({
|
|
1585
1488
|
color: String,
|
|
1586
1489
|
index: Number,
|
|
1587
1490
|
item: Object,
|
|
1588
1491
|
cellProps: [Object, Function],
|
|
1589
1492
|
collapseIcon: {
|
|
1590
|
-
type:
|
|
1493
|
+
type: O,
|
|
1591
1494
|
default: "$collapse"
|
|
1592
1495
|
},
|
|
1593
1496
|
expandIcon: {
|
|
1594
|
-
type:
|
|
1497
|
+
type: O,
|
|
1595
1498
|
default: "$expand"
|
|
1596
1499
|
},
|
|
1597
|
-
onClick:
|
|
1598
|
-
onContextmenu:
|
|
1599
|
-
onDblclick:
|
|
1600
|
-
...
|
|
1601
|
-
...
|
|
1602
|
-
}, "VDataTableRow"),
|
|
1500
|
+
onClick: ye(),
|
|
1501
|
+
onContextmenu: ye(),
|
|
1502
|
+
onDblclick: ye(),
|
|
1503
|
+
...te(),
|
|
1504
|
+
...De()
|
|
1505
|
+
}, "VDataTableRow"), Ha = $()({
|
|
1603
1506
|
name: "VDataTableRow",
|
|
1604
|
-
props:
|
|
1507
|
+
props: gt(),
|
|
1605
1508
|
setup(e, t) {
|
|
1606
1509
|
let {
|
|
1607
1510
|
slots: a
|
|
@@ -1609,123 +1512,123 @@ const mt = _({
|
|
|
1609
1512
|
const {
|
|
1610
1513
|
displayClasses: l,
|
|
1611
1514
|
mobile: n
|
|
1612
|
-
} =
|
|
1515
|
+
} = fe(e, "v-data-table__tr"), {
|
|
1613
1516
|
isSelected: r,
|
|
1614
|
-
toggleSelect:
|
|
1615
|
-
someSelected:
|
|
1517
|
+
toggleSelect: s,
|
|
1518
|
+
someSelected: v,
|
|
1616
1519
|
allSelected: u,
|
|
1617
|
-
selectAll:
|
|
1618
|
-
} =
|
|
1520
|
+
selectAll: c
|
|
1521
|
+
} = ve(), {
|
|
1619
1522
|
isExpanded: m,
|
|
1620
1523
|
toggleExpand: h
|
|
1621
|
-
} =
|
|
1622
|
-
toggleSort:
|
|
1623
|
-
sortBy:
|
|
1524
|
+
} = Je(), {
|
|
1525
|
+
toggleSort: o,
|
|
1526
|
+
sortBy: i,
|
|
1624
1527
|
isSorted: b
|
|
1625
|
-
} =
|
|
1626
|
-
columns:
|
|
1627
|
-
} =
|
|
1628
|
-
|
|
1629
|
-
class:
|
|
1528
|
+
} = nt(), {
|
|
1529
|
+
columns: d
|
|
1530
|
+
} = ge();
|
|
1531
|
+
K(() => S("tr", {
|
|
1532
|
+
class: G(["v-data-table__tr", {
|
|
1630
1533
|
"v-data-table__tr--clickable": !!(e.onClick || e.onContextmenu || e.onDblclick)
|
|
1631
1534
|
}, l.value]),
|
|
1632
1535
|
onClick: e.onClick,
|
|
1633
1536
|
onContextmenu: e.onContextmenu,
|
|
1634
1537
|
onDblclick: e.onDblclick
|
|
1635
|
-
}, [e.item &&
|
|
1636
|
-
const y = e.item,
|
|
1538
|
+
}, [e.item && d.value.map((g, I) => {
|
|
1539
|
+
const y = e.item, k = `item.${g.key}`, F = `header.${g.key}`, P = {
|
|
1637
1540
|
index: e.index,
|
|
1638
1541
|
item: y.raw,
|
|
1639
1542
|
internalItem: y,
|
|
1640
|
-
value:
|
|
1641
|
-
column:
|
|
1543
|
+
value: ue(y.columns, g.key),
|
|
1544
|
+
column: g,
|
|
1642
1545
|
isSelected: r,
|
|
1643
|
-
toggleSelect:
|
|
1546
|
+
toggleSelect: s,
|
|
1644
1547
|
isExpanded: m,
|
|
1645
1548
|
toggleExpand: h
|
|
1646
|
-
},
|
|
1647
|
-
column:
|
|
1648
|
-
selectAll:
|
|
1549
|
+
}, A = {
|
|
1550
|
+
column: g,
|
|
1551
|
+
selectAll: c,
|
|
1649
1552
|
isSorted: b,
|
|
1650
|
-
toggleSort:
|
|
1651
|
-
sortBy:
|
|
1652
|
-
someSelected:
|
|
1553
|
+
toggleSort: o,
|
|
1554
|
+
sortBy: i.value,
|
|
1555
|
+
someSelected: v.value,
|
|
1653
1556
|
allSelected: u.value,
|
|
1654
1557
|
getSortIcon: () => ""
|
|
1655
1558
|
}, N = typeof e.cellProps == "function" ? e.cellProps({
|
|
1656
|
-
index:
|
|
1657
|
-
item:
|
|
1658
|
-
internalItem:
|
|
1659
|
-
value:
|
|
1660
|
-
column:
|
|
1661
|
-
}) : e.cellProps, p = typeof
|
|
1662
|
-
index:
|
|
1663
|
-
item:
|
|
1664
|
-
internalItem:
|
|
1665
|
-
value:
|
|
1666
|
-
}) :
|
|
1667
|
-
return
|
|
1668
|
-
align:
|
|
1669
|
-
indent:
|
|
1559
|
+
index: P.index,
|
|
1560
|
+
item: P.item,
|
|
1561
|
+
internalItem: P.internalItem,
|
|
1562
|
+
value: P.value,
|
|
1563
|
+
column: g
|
|
1564
|
+
}) : e.cellProps, p = typeof g.cellProps == "function" ? g.cellProps({
|
|
1565
|
+
index: P.index,
|
|
1566
|
+
item: P.item,
|
|
1567
|
+
internalItem: P.internalItem,
|
|
1568
|
+
value: P.value
|
|
1569
|
+
}) : g.cellProps, x = g.key === "data-table-select" || g.key === "data-table-expand", f = g.key === "data-table-group" && g.width === 0 && !g.title;
|
|
1570
|
+
return w(ee, B({
|
|
1571
|
+
align: g.align,
|
|
1572
|
+
indent: g.intent,
|
|
1670
1573
|
class: {
|
|
1671
|
-
"v-data-table__td--expanded-row":
|
|
1672
|
-
"v-data-table__td--select-row":
|
|
1574
|
+
"v-data-table__td--expanded-row": g.key === "data-table-expand",
|
|
1575
|
+
"v-data-table__td--select-row": g.key === "data-table-select"
|
|
1673
1576
|
},
|
|
1674
|
-
fixed:
|
|
1675
|
-
fixedOffset:
|
|
1676
|
-
fixedEndOffset:
|
|
1677
|
-
lastFixed:
|
|
1678
|
-
firstFixedEnd:
|
|
1679
|
-
maxWidth: n.value ? void 0 :
|
|
1577
|
+
fixed: g.fixed,
|
|
1578
|
+
fixedOffset: g.fixedOffset,
|
|
1579
|
+
fixedEndOffset: g.fixedEndOffset,
|
|
1580
|
+
lastFixed: g.lastFixed,
|
|
1581
|
+
firstFixedEnd: g.firstFixedEnd,
|
|
1582
|
+
maxWidth: n.value ? void 0 : g.maxWidth,
|
|
1680
1583
|
noPadding: x,
|
|
1681
|
-
empty:
|
|
1682
|
-
nowrap:
|
|
1683
|
-
width: n.value ? void 0 :
|
|
1584
|
+
empty: f,
|
|
1585
|
+
nowrap: g.nowrap,
|
|
1586
|
+
width: n.value ? void 0 : g.width
|
|
1684
1587
|
}, N, p), {
|
|
1685
1588
|
default: () => {
|
|
1686
|
-
if (
|
|
1589
|
+
if (g.key === "data-table-select")
|
|
1687
1590
|
return a["item.data-table-select"]?.({
|
|
1688
|
-
...
|
|
1591
|
+
...P,
|
|
1689
1592
|
props: {
|
|
1690
1593
|
color: e.color,
|
|
1691
1594
|
disabled: !y.selectable,
|
|
1692
1595
|
modelValue: r([y]),
|
|
1693
|
-
onClick:
|
|
1596
|
+
onClick: ne(() => s(y), ["stop"])
|
|
1694
1597
|
}
|
|
1695
|
-
}) ??
|
|
1598
|
+
}) ?? w(de, {
|
|
1696
1599
|
color: e.color,
|
|
1697
1600
|
disabled: !y.selectable,
|
|
1698
1601
|
density: e.density,
|
|
1699
1602
|
modelValue: r([y]),
|
|
1700
|
-
onClick:
|
|
1603
|
+
onClick: ne((C) => s(y, e.index, C), ["stop"])
|
|
1701
1604
|
}, null);
|
|
1702
|
-
if (
|
|
1605
|
+
if (g.key === "data-table-expand")
|
|
1703
1606
|
return a["item.data-table-expand"]?.({
|
|
1704
|
-
...
|
|
1607
|
+
...P,
|
|
1705
1608
|
props: {
|
|
1706
1609
|
icon: m(y) ? e.collapseIcon : e.expandIcon,
|
|
1707
1610
|
size: "small",
|
|
1708
1611
|
variant: "text",
|
|
1709
|
-
onClick:
|
|
1612
|
+
onClick: ne(() => h(y), ["stop"])
|
|
1710
1613
|
}
|
|
1711
|
-
}) ??
|
|
1614
|
+
}) ?? w(W, {
|
|
1712
1615
|
icon: m(y) ? e.collapseIcon : e.expandIcon,
|
|
1713
1616
|
size: "small",
|
|
1714
1617
|
variant: "text",
|
|
1715
|
-
onClick:
|
|
1618
|
+
onClick: ne(() => h(y), ["stop"])
|
|
1716
1619
|
}, null);
|
|
1717
|
-
if (a[
|
|
1718
|
-
const D =
|
|
1719
|
-
return n.value ? S(
|
|
1620
|
+
if (a[k] && !n.value) return a[k](P);
|
|
1621
|
+
const D = Bt(P.value);
|
|
1622
|
+
return n.value ? S(z, null, [S("div", {
|
|
1720
1623
|
class: "v-data-table__td-title"
|
|
1721
|
-
}, [a[
|
|
1624
|
+
}, [a[F]?.(A) ?? g.title]), S("div", {
|
|
1722
1625
|
class: "v-data-table__td-value"
|
|
1723
|
-
}, [a[
|
|
1626
|
+
}, [a[k]?.(P) ?? D])]) : D;
|
|
1724
1627
|
}
|
|
1725
1628
|
});
|
|
1726
1629
|
})]));
|
|
1727
1630
|
}
|
|
1728
|
-
}),
|
|
1631
|
+
}), mt = _({
|
|
1729
1632
|
color: String,
|
|
1730
1633
|
loading: [Boolean, String],
|
|
1731
1634
|
loadingText: {
|
|
@@ -1743,13 +1646,13 @@ const mt = _({
|
|
|
1743
1646
|
},
|
|
1744
1647
|
rowProps: [Object, Function],
|
|
1745
1648
|
cellProps: [Object, Function],
|
|
1746
|
-
...
|
|
1747
|
-
...
|
|
1748
|
-
...
|
|
1749
|
-
}, "VDataTableRows"),
|
|
1649
|
+
...xe(gt(), ["collapseIcon", "expandIcon", "density"]),
|
|
1650
|
+
...xe(vt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
|
|
1651
|
+
...De()
|
|
1652
|
+
}, "VDataTableRows"), Le = $()({
|
|
1750
1653
|
name: "VDataTableRows",
|
|
1751
1654
|
inheritAttrs: !1,
|
|
1752
|
-
props:
|
|
1655
|
+
props: mt(),
|
|
1753
1656
|
setup(e, t) {
|
|
1754
1657
|
let {
|
|
1755
1658
|
attrs: a,
|
|
@@ -1757,97 +1660,97 @@ const mt = _({
|
|
|
1757
1660
|
} = t;
|
|
1758
1661
|
const {
|
|
1759
1662
|
columns: n
|
|
1760
|
-
} =
|
|
1663
|
+
} = ge(), {
|
|
1761
1664
|
expandOnClick: r,
|
|
1762
|
-
toggleExpand:
|
|
1763
|
-
isExpanded:
|
|
1764
|
-
} =
|
|
1665
|
+
toggleExpand: s,
|
|
1666
|
+
isExpanded: v
|
|
1667
|
+
} = Je(), {
|
|
1765
1668
|
isSelected: u,
|
|
1766
|
-
toggleSelect:
|
|
1767
|
-
} =
|
|
1669
|
+
toggleSelect: c
|
|
1670
|
+
} = ve(), {
|
|
1768
1671
|
toggleGroup: m,
|
|
1769
1672
|
isGroupOpen: h
|
|
1770
|
-
} =
|
|
1771
|
-
t:
|
|
1772
|
-
} =
|
|
1773
|
-
mobile:
|
|
1774
|
-
} =
|
|
1775
|
-
return
|
|
1776
|
-
const b =
|
|
1673
|
+
} = Xe(), {
|
|
1674
|
+
t: o
|
|
1675
|
+
} = X(), {
|
|
1676
|
+
mobile: i
|
|
1677
|
+
} = fe(e);
|
|
1678
|
+
return K(() => {
|
|
1679
|
+
const b = xe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
1777
1680
|
return e.loading && (!e.items.length || l.loading) ? S("tr", {
|
|
1778
1681
|
class: "v-data-table-rows-loading",
|
|
1779
1682
|
key: "loading"
|
|
1780
1683
|
}, [S("td", {
|
|
1781
1684
|
colspan: n.value.length
|
|
1782
|
-
}, [l.loading?.() ??
|
|
1685
|
+
}, [l.loading?.() ?? o(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
|
|
1783
1686
|
class: "v-data-table-rows-no-data",
|
|
1784
1687
|
key: "no-data"
|
|
1785
1688
|
}, [S("td", {
|
|
1786
1689
|
colspan: n.value.length
|
|
1787
|
-
}, [l["no-data"]?.() ??
|
|
1788
|
-
if (
|
|
1789
|
-
const
|
|
1790
|
-
index:
|
|
1791
|
-
item:
|
|
1690
|
+
}, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d, g) => {
|
|
1691
|
+
if (d.type === "group") {
|
|
1692
|
+
const k = {
|
|
1693
|
+
index: g,
|
|
1694
|
+
item: d,
|
|
1792
1695
|
columns: n.value,
|
|
1793
|
-
isExpanded:
|
|
1794
|
-
toggleExpand:
|
|
1696
|
+
isExpanded: v,
|
|
1697
|
+
toggleExpand: s,
|
|
1795
1698
|
isSelected: u,
|
|
1796
|
-
toggleSelect:
|
|
1699
|
+
toggleSelect: c,
|
|
1797
1700
|
toggleGroup: m,
|
|
1798
1701
|
isGroupOpen: h
|
|
1799
1702
|
};
|
|
1800
|
-
return l["group-header"] ? l["group-header"](
|
|
1801
|
-
key: `group-header_${
|
|
1802
|
-
item:
|
|
1803
|
-
},
|
|
1703
|
+
return l["group-header"] ? l["group-header"](k) : w($a, B({
|
|
1704
|
+
key: `group-header_${d.id}`,
|
|
1705
|
+
item: d
|
|
1706
|
+
}, Be(a, ":groupHeader", () => k), b), l);
|
|
1804
1707
|
}
|
|
1805
|
-
if (
|
|
1806
|
-
const
|
|
1807
|
-
index:
|
|
1808
|
-
item:
|
|
1708
|
+
if (d.type === "group-summary") {
|
|
1709
|
+
const k = {
|
|
1710
|
+
index: g,
|
|
1711
|
+
item: d,
|
|
1809
1712
|
columns: n.value,
|
|
1810
1713
|
toggleGroup: m
|
|
1811
1714
|
};
|
|
1812
|
-
return l["group-summary"]?.(
|
|
1715
|
+
return l["group-summary"]?.(k) ?? "";
|
|
1813
1716
|
}
|
|
1814
|
-
const
|
|
1815
|
-
index:
|
|
1816
|
-
item:
|
|
1817
|
-
internalItem:
|
|
1717
|
+
const I = {
|
|
1718
|
+
index: g,
|
|
1719
|
+
item: d.raw,
|
|
1720
|
+
internalItem: d,
|
|
1818
1721
|
columns: n.value,
|
|
1819
|
-
isExpanded:
|
|
1820
|
-
toggleExpand:
|
|
1722
|
+
isExpanded: v,
|
|
1723
|
+
toggleExpand: s,
|
|
1821
1724
|
isSelected: u,
|
|
1822
|
-
toggleSelect:
|
|
1725
|
+
toggleSelect: c
|
|
1823
1726
|
}, y = {
|
|
1824
|
-
...
|
|
1825
|
-
props:
|
|
1826
|
-
key: `item_${
|
|
1727
|
+
...I,
|
|
1728
|
+
props: B({
|
|
1729
|
+
key: `item_${d.key ?? d.index}`,
|
|
1827
1730
|
onClick: r.value ? () => {
|
|
1828
|
-
|
|
1731
|
+
s(d);
|
|
1829
1732
|
} : void 0,
|
|
1830
|
-
index:
|
|
1831
|
-
item:
|
|
1733
|
+
index: g,
|
|
1734
|
+
item: d,
|
|
1832
1735
|
color: e.color,
|
|
1833
1736
|
cellProps: e.cellProps,
|
|
1834
1737
|
collapseIcon: e.collapseIcon,
|
|
1835
1738
|
expandIcon: e.expandIcon,
|
|
1836
1739
|
density: e.density,
|
|
1837
|
-
mobile:
|
|
1838
|
-
},
|
|
1839
|
-
item:
|
|
1840
|
-
index:
|
|
1841
|
-
internalItem:
|
|
1740
|
+
mobile: i.value
|
|
1741
|
+
}, Be(a, ":row", () => I), typeof e.rowProps == "function" ? e.rowProps({
|
|
1742
|
+
item: I.item,
|
|
1743
|
+
index: I.index,
|
|
1744
|
+
internalItem: I.internalItem
|
|
1842
1745
|
}) : e.rowProps)
|
|
1843
1746
|
};
|
|
1844
|
-
return S(
|
|
1747
|
+
return S(z, {
|
|
1845
1748
|
key: y.props.key
|
|
1846
|
-
}, [l.item ? l.item(y) :
|
|
1749
|
+
}, [l.item ? l.item(y) : w(Ha, y.props, l), v(d) && l["expanded-row"]?.(I)]);
|
|
1847
1750
|
})]);
|
|
1848
1751
|
}), {};
|
|
1849
1752
|
}
|
|
1850
|
-
}),
|
|
1753
|
+
}), bt = _({
|
|
1851
1754
|
fixedHeader: Boolean,
|
|
1852
1755
|
fixedFooter: Boolean,
|
|
1853
1756
|
height: [Number, String],
|
|
@@ -1857,13 +1760,13 @@ const mt = _({
|
|
|
1857
1760
|
default: null,
|
|
1858
1761
|
validator: (e) => ["even", "odd"].includes(e)
|
|
1859
1762
|
},
|
|
1860
|
-
...
|
|
1861
|
-
...
|
|
1862
|
-
...
|
|
1863
|
-
...
|
|
1864
|
-
}, "VTable"),
|
|
1763
|
+
...We(),
|
|
1764
|
+
...te(),
|
|
1765
|
+
...Ge(),
|
|
1766
|
+
...ke()
|
|
1767
|
+
}, "VTable"), Ne = $()({
|
|
1865
1768
|
name: "VTable",
|
|
1866
|
-
props:
|
|
1769
|
+
props: bt(),
|
|
1867
1770
|
setup(e, t) {
|
|
1868
1771
|
let {
|
|
1869
1772
|
slots: a,
|
|
@@ -1871,11 +1774,11 @@ const mt = _({
|
|
|
1871
1774
|
} = t;
|
|
1872
1775
|
const {
|
|
1873
1776
|
themeClasses: n
|
|
1874
|
-
} =
|
|
1777
|
+
} = we(e), {
|
|
1875
1778
|
densityClasses: r
|
|
1876
|
-
} =
|
|
1877
|
-
return
|
|
1878
|
-
class:
|
|
1779
|
+
} = Xt(e);
|
|
1780
|
+
return K(() => w(e.tag, {
|
|
1781
|
+
class: G(["v-table", {
|
|
1879
1782
|
"v-table--fixed-height": !!e.height,
|
|
1880
1783
|
"v-table--fixed-header": e.fixedHeader,
|
|
1881
1784
|
"v-table--fixed-footer": e.fixedFooter,
|
|
@@ -1885,17 +1788,17 @@ const mt = _({
|
|
|
1885
1788
|
"v-table--striped-even": e.striped === "even",
|
|
1886
1789
|
"v-table--striped-odd": e.striped === "odd"
|
|
1887
1790
|
}, n.value, r.value, e.class]),
|
|
1888
|
-
style:
|
|
1791
|
+
style: Pe(e.style)
|
|
1889
1792
|
}, {
|
|
1890
1793
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1891
1794
|
class: "v-table__wrapper",
|
|
1892
1795
|
style: {
|
|
1893
|
-
height:
|
|
1796
|
+
height: E(e.height)
|
|
1894
1797
|
}
|
|
1895
1798
|
}, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
|
|
1896
1799
|
})), {};
|
|
1897
1800
|
}
|
|
1898
|
-
}),
|
|
1801
|
+
}), ja = _({
|
|
1899
1802
|
items: {
|
|
1900
1803
|
type: Array,
|
|
1901
1804
|
default: () => []
|
|
@@ -1912,49 +1815,49 @@ const mt = _({
|
|
|
1912
1815
|
cellProps: [Object, Function],
|
|
1913
1816
|
returnObject: Boolean
|
|
1914
1817
|
}, "DataTable-items");
|
|
1915
|
-
function
|
|
1916
|
-
const n = e.returnObject ? t :
|
|
1818
|
+
function Ma(e, t, a, l) {
|
|
1819
|
+
const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0), s = l.reduce((v, u) => (u.key != null && (v[u.key] = se(t, u.value)), v), {});
|
|
1917
1820
|
return {
|
|
1918
1821
|
type: "item",
|
|
1919
|
-
key: e.returnObject ?
|
|
1822
|
+
key: e.returnObject ? se(t, e.itemValue) : n,
|
|
1920
1823
|
index: a,
|
|
1921
1824
|
value: n,
|
|
1922
1825
|
selectable: r,
|
|
1923
|
-
columns:
|
|
1826
|
+
columns: s,
|
|
1924
1827
|
raw: t
|
|
1925
1828
|
};
|
|
1926
1829
|
}
|
|
1927
|
-
function
|
|
1928
|
-
return t.map((l, n) =>
|
|
1830
|
+
function Ga(e, t, a) {
|
|
1831
|
+
return t.map((l, n) => Ma(e, l, n, a));
|
|
1929
1832
|
}
|
|
1930
|
-
function
|
|
1833
|
+
function Ka(e, t) {
|
|
1931
1834
|
return {
|
|
1932
|
-
items:
|
|
1835
|
+
items: V(() => Ga(e, e.items, t.value))
|
|
1933
1836
|
};
|
|
1934
1837
|
}
|
|
1935
|
-
const
|
|
1936
|
-
...
|
|
1838
|
+
const Wa = _({
|
|
1839
|
+
...mt(),
|
|
1937
1840
|
hideDefaultBody: Boolean,
|
|
1938
1841
|
hideDefaultFooter: Boolean,
|
|
1939
1842
|
hideDefaultHeader: Boolean,
|
|
1940
1843
|
width: [String, Number],
|
|
1941
1844
|
search: String,
|
|
1942
|
-
...
|
|
1943
|
-
...
|
|
1944
|
-
...
|
|
1845
|
+
...sa(),
|
|
1846
|
+
...ua(),
|
|
1847
|
+
...Ba(),
|
|
1848
|
+
...ja(),
|
|
1849
|
+
...Pa(),
|
|
1850
|
+
...ka(),
|
|
1851
|
+
...Ie(ft(), ["multiSort"]),
|
|
1852
|
+
...bt()
|
|
1853
|
+
}, "DataTable"), za = _({
|
|
1854
|
+
...ma(),
|
|
1945
1855
|
...Wa(),
|
|
1946
|
-
...
|
|
1947
|
-
...
|
|
1948
|
-
|
|
1949
|
-
...pt()
|
|
1950
|
-
}, "DataTable"), Xa = _({
|
|
1951
|
-
...pa(),
|
|
1952
|
-
...Qa(),
|
|
1953
|
-
...ia(),
|
|
1954
|
-
...it()
|
|
1955
|
-
}, "VDataTable"), rl = $()({
|
|
1856
|
+
...na(),
|
|
1857
|
+
...rt()
|
|
1858
|
+
}, "VDataTable"), tl = $()({
|
|
1956
1859
|
name: "VDataTable",
|
|
1957
|
-
props:
|
|
1860
|
+
props: za(),
|
|
1958
1861
|
emits: {
|
|
1959
1862
|
"update:modelValue": (e) => !0,
|
|
1960
1863
|
"update:page": (e) => !0,
|
|
@@ -1972,99 +1875,99 @@ const Qa = _({
|
|
|
1972
1875
|
} = t;
|
|
1973
1876
|
const {
|
|
1974
1877
|
groupBy: n
|
|
1975
|
-
} =
|
|
1878
|
+
} = da(e), {
|
|
1976
1879
|
initialSortOrder: r,
|
|
1977
|
-
sortBy:
|
|
1978
|
-
multiSort:
|
|
1880
|
+
sortBy: s,
|
|
1881
|
+
multiSort: v,
|
|
1979
1882
|
mustSort: u
|
|
1980
|
-
} =
|
|
1981
|
-
page:
|
|
1883
|
+
} = Ia(e), {
|
|
1884
|
+
page: c,
|
|
1982
1885
|
itemsPerPage: m
|
|
1983
|
-
} =
|
|
1886
|
+
} = ba(e), {
|
|
1984
1887
|
disableSort: h
|
|
1985
|
-
} =
|
|
1986
|
-
columns:
|
|
1987
|
-
headers:
|
|
1888
|
+
} = Ot(e), {
|
|
1889
|
+
columns: o,
|
|
1890
|
+
headers: i,
|
|
1988
1891
|
sortFunctions: b,
|
|
1989
|
-
sortRawFunctions:
|
|
1990
|
-
filterFunctions:
|
|
1991
|
-
} =
|
|
1892
|
+
sortRawFunctions: d,
|
|
1893
|
+
filterFunctions: g
|
|
1894
|
+
} = Ra(e, {
|
|
1992
1895
|
groupBy: n,
|
|
1993
1896
|
showSelect: T(() => e.showSelect),
|
|
1994
1897
|
showExpand: T(() => e.showExpand)
|
|
1995
1898
|
}), {
|
|
1996
|
-
items:
|
|
1997
|
-
} =
|
|
1998
|
-
filteredItems:
|
|
1999
|
-
} =
|
|
1899
|
+
items: I
|
|
1900
|
+
} = Ka(e, o), y = T(() => e.search), {
|
|
1901
|
+
filteredItems: k
|
|
1902
|
+
} = la(e, I, y, {
|
|
2000
1903
|
transform: (j) => j.columns,
|
|
2001
|
-
customKeyFilter:
|
|
1904
|
+
customKeyFilter: g
|
|
2002
1905
|
}), {
|
|
2003
|
-
toggleSort:
|
|
2004
|
-
} =
|
|
1906
|
+
toggleSort: F
|
|
1907
|
+
} = Va({
|
|
2005
1908
|
initialSortOrder: r,
|
|
2006
|
-
sortBy:
|
|
2007
|
-
multiSort:
|
|
1909
|
+
sortBy: s,
|
|
1910
|
+
multiSort: v,
|
|
2008
1911
|
mustSort: u,
|
|
2009
|
-
page:
|
|
1912
|
+
page: c
|
|
2010
1913
|
}), {
|
|
2011
|
-
sortByWithGroups:
|
|
2012
|
-
opened:
|
|
1914
|
+
sortByWithGroups: P,
|
|
1915
|
+
opened: A,
|
|
2013
1916
|
extractRows: N,
|
|
2014
1917
|
isGroupOpen: p,
|
|
2015
1918
|
toggleGroup: x
|
|
2016
|
-
} =
|
|
1919
|
+
} = ca({
|
|
2017
1920
|
groupBy: n,
|
|
2018
|
-
sortBy:
|
|
1921
|
+
sortBy: s,
|
|
2019
1922
|
disableSort: h
|
|
2020
1923
|
}), {
|
|
2021
|
-
sortedItems:
|
|
2022
|
-
} =
|
|
1924
|
+
sortedItems: f
|
|
1925
|
+
} = Fa(e, k, P, {
|
|
2023
1926
|
transform: (j) => ({
|
|
2024
1927
|
...j.raw,
|
|
2025
1928
|
...j.columns
|
|
2026
1929
|
}),
|
|
2027
1930
|
sortFunctions: b,
|
|
2028
|
-
sortRawFunctions:
|
|
1931
|
+
sortRawFunctions: d
|
|
2029
1932
|
}), {
|
|
2030
1933
|
flatItems: D
|
|
2031
|
-
} =
|
|
1934
|
+
} = va(f, n, A, () => !!l["group-summary"]), C = V(() => D.value.length), {
|
|
2032
1935
|
startIndex: R,
|
|
2033
|
-
stopIndex:
|
|
2034
|
-
pageCount:
|
|
2035
|
-
setItemsPerPage:
|
|
2036
|
-
} =
|
|
2037
|
-
page:
|
|
1936
|
+
stopIndex: ae,
|
|
1937
|
+
pageCount: be,
|
|
1938
|
+
setItemsPerPage: H
|
|
1939
|
+
} = ha({
|
|
1940
|
+
page: c,
|
|
2038
1941
|
itemsPerPage: m,
|
|
2039
1942
|
itemsLength: C
|
|
2040
1943
|
}), {
|
|
2041
|
-
paginatedItems:
|
|
2042
|
-
} =
|
|
1944
|
+
paginatedItems: J
|
|
1945
|
+
} = pa({
|
|
2043
1946
|
items: D,
|
|
2044
1947
|
startIndex: R,
|
|
2045
|
-
stopIndex:
|
|
1948
|
+
stopIndex: ae,
|
|
2046
1949
|
itemsPerPage: m
|
|
2047
|
-
}),
|
|
2048
|
-
isSelected:
|
|
2049
|
-
select:
|
|
2050
|
-
selectAll:
|
|
2051
|
-
toggleSelect:
|
|
2052
|
-
someSelected:
|
|
2053
|
-
allSelected:
|
|
2054
|
-
} =
|
|
2055
|
-
allItems:
|
|
2056
|
-
currentPage:
|
|
1950
|
+
}), Y = V(() => N(J.value)), {
|
|
1951
|
+
isSelected: ht,
|
|
1952
|
+
select: yt,
|
|
1953
|
+
selectAll: pt,
|
|
1954
|
+
toggleSelect: xt,
|
|
1955
|
+
someSelected: St,
|
|
1956
|
+
allSelected: Pt
|
|
1957
|
+
} = wa(e, {
|
|
1958
|
+
allItems: I,
|
|
1959
|
+
currentPage: Y
|
|
2057
1960
|
}), {
|
|
2058
|
-
isExpanded:
|
|
2059
|
-
toggleExpand:
|
|
2060
|
-
} =
|
|
2061
|
-
|
|
2062
|
-
page:
|
|
1961
|
+
isExpanded: wt,
|
|
1962
|
+
toggleExpand: kt
|
|
1963
|
+
} = ia(e);
|
|
1964
|
+
ga({
|
|
1965
|
+
page: c,
|
|
2063
1966
|
itemsPerPage: m,
|
|
2064
|
-
sortBy:
|
|
1967
|
+
sortBy: s,
|
|
2065
1968
|
groupBy: n,
|
|
2066
1969
|
search: y
|
|
2067
|
-
}),
|
|
1970
|
+
}), pe({
|
|
2068
1971
|
VDataTableRows: {
|
|
2069
1972
|
hideNoData: T(() => e.hideNoData),
|
|
2070
1973
|
noDataText: T(() => e.noDataText),
|
|
@@ -2072,55 +1975,55 @@ const Qa = _({
|
|
|
2072
1975
|
loadingText: T(() => e.loadingText)
|
|
2073
1976
|
}
|
|
2074
1977
|
});
|
|
2075
|
-
const
|
|
2076
|
-
page:
|
|
1978
|
+
const L = V(() => ({
|
|
1979
|
+
page: c.value,
|
|
2077
1980
|
itemsPerPage: m.value,
|
|
2078
|
-
sortBy:
|
|
2079
|
-
pageCount:
|
|
2080
|
-
toggleSort:
|
|
2081
|
-
setItemsPerPage:
|
|
2082
|
-
someSelected:
|
|
2083
|
-
allSelected:
|
|
2084
|
-
isSelected:
|
|
2085
|
-
select:
|
|
2086
|
-
selectAll:
|
|
2087
|
-
toggleSelect:
|
|
2088
|
-
isExpanded:
|
|
2089
|
-
toggleExpand:
|
|
1981
|
+
sortBy: s.value,
|
|
1982
|
+
pageCount: be.value,
|
|
1983
|
+
toggleSort: F,
|
|
1984
|
+
setItemsPerPage: H,
|
|
1985
|
+
someSelected: St.value,
|
|
1986
|
+
allSelected: Pt.value,
|
|
1987
|
+
isSelected: ht,
|
|
1988
|
+
select: yt,
|
|
1989
|
+
selectAll: pt,
|
|
1990
|
+
toggleSelect: xt,
|
|
1991
|
+
isExpanded: wt,
|
|
1992
|
+
toggleExpand: kt,
|
|
2090
1993
|
isGroupOpen: p,
|
|
2091
1994
|
toggleGroup: x,
|
|
2092
|
-
items:
|
|
2093
|
-
internalItems:
|
|
2094
|
-
groupedItems:
|
|
2095
|
-
columns:
|
|
2096
|
-
headers:
|
|
1995
|
+
items: Y.value.map((j) => j.raw),
|
|
1996
|
+
internalItems: Y.value,
|
|
1997
|
+
groupedItems: J.value,
|
|
1998
|
+
columns: o.value,
|
|
1999
|
+
headers: i.value
|
|
2097
2000
|
}));
|
|
2098
|
-
return
|
|
2099
|
-
const j =
|
|
2100
|
-
return
|
|
2001
|
+
return K(() => {
|
|
2002
|
+
const j = Ae.filterProps(e), It = Ee.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
|
|
2003
|
+
return w(Ne, B({
|
|
2101
2004
|
class: ["v-data-table", {
|
|
2102
2005
|
"v-data-table--show-select": e.showSelect,
|
|
2103
2006
|
"v-data-table--loading": e.loading
|
|
2104
2007
|
}, e.class],
|
|
2105
2008
|
style: e.style
|
|
2106
|
-
},
|
|
2009
|
+
}, Vt, {
|
|
2107
2010
|
fixedHeader: e.fixedHeader || e.sticky
|
|
2108
2011
|
}), {
|
|
2109
|
-
top: () => l.top?.(
|
|
2110
|
-
default: () => l.default ? l.default(
|
|
2012
|
+
top: () => l.top?.(L.value),
|
|
2013
|
+
default: () => l.default ? l.default(L.value) : S(z, null, [l.colgroup?.(L.value), !e.hideDefaultHeader && S("thead", {
|
|
2111
2014
|
key: "thead"
|
|
2112
|
-
}, [
|
|
2015
|
+
}, [w(Ee, B(It, {
|
|
2113
2016
|
multiSort: !!e.multiSort
|
|
2114
|
-
}), l)]), l.thead?.(
|
|
2115
|
-
items:
|
|
2116
|
-
}), l), l["body.append"]?.(
|
|
2117
|
-
bottom: () => l.bottom ? l.bottom(
|
|
2017
|
+
}), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) : w(Le, B(a, Dt, {
|
|
2018
|
+
items: J.value
|
|
2019
|
+
}), l), l["body.append"]?.(L.value)]), l.tbody?.(L.value), l.tfoot?.(L.value)]),
|
|
2020
|
+
bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [w(Yt, null, null), w(Ae, j, {
|
|
2118
2021
|
prepend: l["footer.prepend"]
|
|
2119
2022
|
})])
|
|
2120
2023
|
});
|
|
2121
2024
|
}), {};
|
|
2122
2025
|
}
|
|
2123
|
-
}),
|
|
2026
|
+
}), qa = {
|
|
2124
2027
|
actions: "button@2",
|
|
2125
2028
|
article: "heading, paragraph",
|
|
2126
2029
|
avatar: "avatar",
|
|
@@ -2153,33 +2056,33 @@ const Qa = _({
|
|
|
2153
2056
|
"table-tfoot": "text@2, avatar@2",
|
|
2154
2057
|
text: "text"
|
|
2155
2058
|
};
|
|
2156
|
-
function
|
|
2059
|
+
function Ua(e) {
|
|
2157
2060
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2158
2061
|
return S("div", {
|
|
2159
|
-
class:
|
|
2062
|
+
class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
|
|
2160
2063
|
}, [t]);
|
|
2161
2064
|
}
|
|
2162
|
-
function
|
|
2065
|
+
function Re(e) {
|
|
2163
2066
|
const [t, a] = e.split("@");
|
|
2164
2067
|
return Array.from({
|
|
2165
2068
|
length: a
|
|
2166
|
-
}).map(() =>
|
|
2069
|
+
}).map(() => me(t));
|
|
2167
2070
|
}
|
|
2168
|
-
function
|
|
2071
|
+
function me(e) {
|
|
2169
2072
|
let t = [];
|
|
2170
2073
|
if (!e) return t;
|
|
2171
|
-
const a =
|
|
2074
|
+
const a = qa[e];
|
|
2172
2075
|
if (e !== a) {
|
|
2173
|
-
if (e.includes(",")) return
|
|
2174
|
-
if (e.includes("@")) return
|
|
2175
|
-
a.includes(",") ? t =
|
|
2076
|
+
if (e.includes(",")) return $e(e);
|
|
2077
|
+
if (e.includes("@")) return Re(e);
|
|
2078
|
+
a.includes(",") ? t = $e(a) : a.includes("@") ? t = Re(a) : a && t.push(me(a));
|
|
2176
2079
|
}
|
|
2177
|
-
return [
|
|
2080
|
+
return [Ua(e, t)];
|
|
2178
2081
|
}
|
|
2179
|
-
function
|
|
2180
|
-
return e.replace(/\s/g, "").split(",").map(
|
|
2082
|
+
function $e(e) {
|
|
2083
|
+
return e.replace(/\s/g, "").split(",").map(me);
|
|
2181
2084
|
}
|
|
2182
|
-
const
|
|
2085
|
+
const Ja = _({
|
|
2183
2086
|
boilerplate: Boolean,
|
|
2184
2087
|
color: String,
|
|
2185
2088
|
loading: Boolean,
|
|
@@ -2191,13 +2094,13 @@ const qa = _({
|
|
|
2191
2094
|
type: [String, Array],
|
|
2192
2095
|
default: "ossein"
|
|
2193
2096
|
},
|
|
2194
|
-
...
|
|
2195
|
-
...
|
|
2196
|
-
...
|
|
2197
|
-
}, "VSkeletonLoader"),
|
|
2097
|
+
...ta(),
|
|
2098
|
+
...Ke(),
|
|
2099
|
+
...ke()
|
|
2100
|
+
}, "VSkeletonLoader"), al = $()({
|
|
2198
2101
|
name: "VSkeletonLoader",
|
|
2199
2102
|
inheritAttrs: !1,
|
|
2200
|
-
props:
|
|
2103
|
+
props: Ja(),
|
|
2201
2104
|
setup(e, t) {
|
|
2202
2105
|
let {
|
|
2203
2106
|
attrs: a,
|
|
@@ -2206,31 +2109,31 @@ const qa = _({
|
|
|
2206
2109
|
const {
|
|
2207
2110
|
backgroundColorClasses: n,
|
|
2208
2111
|
backgroundColorStyles: r
|
|
2209
|
-
} =
|
|
2210
|
-
dimensionStyles:
|
|
2211
|
-
} =
|
|
2212
|
-
elevationClasses:
|
|
2213
|
-
} =
|
|
2112
|
+
} = ze(() => e.color), {
|
|
2113
|
+
dimensionStyles: s
|
|
2114
|
+
} = Zt(e), {
|
|
2115
|
+
elevationClasses: v
|
|
2116
|
+
} = ea(e), {
|
|
2214
2117
|
themeClasses: u
|
|
2215
|
-
} =
|
|
2216
|
-
t:
|
|
2217
|
-
} =
|
|
2218
|
-
return
|
|
2219
|
-
const h = !l.default || e.loading,
|
|
2118
|
+
} = we(e), {
|
|
2119
|
+
t: c
|
|
2120
|
+
} = X(), m = V(() => me(Z(e.type).join(",")));
|
|
2121
|
+
return K(() => {
|
|
2122
|
+
const h = !l.default || e.loading, o = e.boilerplate || !h ? {} : {
|
|
2220
2123
|
ariaLive: "polite",
|
|
2221
|
-
ariaLabel:
|
|
2124
|
+
ariaLabel: c(e.loadingText),
|
|
2222
2125
|
role: "alert"
|
|
2223
2126
|
};
|
|
2224
|
-
return h ? S("div",
|
|
2127
|
+
return h ? S("div", B({
|
|
2225
2128
|
class: ["v-skeleton-loader", {
|
|
2226
2129
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2227
|
-
}, u.value, n.value,
|
|
2228
|
-
style: [r.value,
|
|
2229
|
-
},
|
|
2130
|
+
}, u.value, n.value, v.value],
|
|
2131
|
+
style: [r.value, s.value]
|
|
2132
|
+
}, o, a), [m.value]) : S(z, null, [l.default?.()]);
|
|
2230
2133
|
}), {};
|
|
2231
2134
|
}
|
|
2232
2135
|
});
|
|
2233
|
-
function
|
|
2136
|
+
function Qa(e, t, a) {
|
|
2234
2137
|
switch (a) {
|
|
2235
2138
|
case ">":
|
|
2236
2139
|
return e > t;
|
|
@@ -2246,65 +2149,65 @@ function el(e, t, a) {
|
|
|
2246
2149
|
throw new Error(`Invalid operator: ${a}`);
|
|
2247
2150
|
}
|
|
2248
2151
|
}
|
|
2249
|
-
function
|
|
2250
|
-
const { advancedFiltersState: e, hardFiltersState: t } = ra(), a =
|
|
2251
|
-
let
|
|
2252
|
-
if (!
|
|
2253
|
-
const
|
|
2254
|
-
return !
|
|
2255
|
-
const { value:
|
|
2256
|
-
if (!
|
|
2257
|
-
const
|
|
2258
|
-
|
|
2259
|
-
const
|
|
2260
|
-
return
|
|
2152
|
+
function ll() {
|
|
2153
|
+
const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = U("table_props"), l = M(), n = V(() => {
|
|
2154
|
+
let o = l.value;
|
|
2155
|
+
if (!o) return o;
|
|
2156
|
+
const i = u(e.value, t.value);
|
|
2157
|
+
return !i || Object.keys(i).length === 0 || Object.keys(i).forEach((b) => {
|
|
2158
|
+
const { value: d, comparison: g = "=" } = i[b];
|
|
2159
|
+
if (!d) return;
|
|
2160
|
+
const I = h(a.headers, b);
|
|
2161
|
+
I && (o = o.filter((y) => {
|
|
2162
|
+
const k = m(y, b, I);
|
|
2163
|
+
return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value: k, filterValue: d, filterComparison: g, header: I, item: y }) : v(k, d, g, I);
|
|
2261
2164
|
}));
|
|
2262
|
-
}),
|
|
2165
|
+
}), o;
|
|
2263
2166
|
});
|
|
2264
|
-
function r(
|
|
2265
|
-
const b = Array.isArray(
|
|
2266
|
-
return
|
|
2167
|
+
function r(o, i) {
|
|
2168
|
+
const b = Array.isArray(i) ? i : [i], d = ie(b[0]).startOf("day").isSameOrBefore(ie(o).format()), g = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
|
|
2169
|
+
return d && g;
|
|
2267
2170
|
}
|
|
2268
|
-
function
|
|
2269
|
-
return Array.isArray(
|
|
2171
|
+
function s(o, i) {
|
|
2172
|
+
return Array.isArray(i) ? i.map((b) => b.toString().toLowerCase()).includes(o.toString().toLowerCase()) : o?.toString().toLowerCase().includes(i.toString().toLowerCase());
|
|
2270
2173
|
}
|
|
2271
|
-
function
|
|
2272
|
-
switch (
|
|
2174
|
+
function v(o, i, b, d) {
|
|
2175
|
+
switch (d.advancedFilter?.component) {
|
|
2273
2176
|
case "datepicker":
|
|
2274
|
-
return r(
|
|
2177
|
+
return r(o, i);
|
|
2275
2178
|
case "comparison":
|
|
2276
|
-
return
|
|
2179
|
+
return Qa(Number(o), Number(i), b);
|
|
2277
2180
|
default:
|
|
2278
|
-
return
|
|
2181
|
+
return s(o, i);
|
|
2279
2182
|
}
|
|
2280
2183
|
}
|
|
2281
|
-
function u(
|
|
2282
|
-
const b = Object.values(
|
|
2283
|
-
return { ...
|
|
2184
|
+
function u(o, i) {
|
|
2185
|
+
const b = Object.values(i).filter((d) => d.args).map((d) => d.args).reduce((d, g) => ({ ...d, ...g }), {});
|
|
2186
|
+
return { ...o, ...b };
|
|
2284
2187
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
2188
|
+
function c(o, i) {
|
|
2189
|
+
return i.split(".").reduce((b, d) => b && b[d], o);
|
|
2287
2190
|
}
|
|
2288
|
-
function m(
|
|
2289
|
-
const
|
|
2290
|
-
return Object.hasOwn(b, "filterReturnValue") && typeof b.filterReturnValue == "function" && (
|
|
2291
|
-
value:
|
|
2292
|
-
item:
|
|
2293
|
-
})), d
|
|
2191
|
+
function m(o, i, b) {
|
|
2192
|
+
const d = oa(o);
|
|
2193
|
+
return Object.hasOwn(b, "filterReturnValue") && typeof b.filterReturnValue == "function" && (d[i] = b.filterReturnValue({
|
|
2194
|
+
value: o[i],
|
|
2195
|
+
item: o
|
|
2196
|
+
})), c(d, i);
|
|
2294
2197
|
}
|
|
2295
|
-
function h(
|
|
2296
|
-
return
|
|
2198
|
+
function h(o, i) {
|
|
2199
|
+
return o.find((b) => (b.advancedFilter?.key ?? b.key) === i);
|
|
2297
2200
|
}
|
|
2298
|
-
return
|
|
2201
|
+
return ce(
|
|
2299
2202
|
() => a.data,
|
|
2300
|
-
(
|
|
2301
|
-
const b =
|
|
2302
|
-
JSON.stringify(b) !== JSON.stringify(
|
|
2203
|
+
(o, i) => {
|
|
2204
|
+
const b = o ?? [], d = i ?? [];
|
|
2205
|
+
JSON.stringify(b) !== JSON.stringify(d) && (l.value = o);
|
|
2303
2206
|
},
|
|
2304
2207
|
{ deep: !0, immediate: !0 }
|
|
2305
2208
|
), { tableData: l, filteredData: n };
|
|
2306
2209
|
}
|
|
2307
|
-
const
|
|
2210
|
+
const nl = At({
|
|
2308
2211
|
props: {
|
|
2309
2212
|
render: {
|
|
2310
2213
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2321,31 +2224,31 @@ const il = Et({
|
|
|
2321
2224
|
},
|
|
2322
2225
|
setup: (e) => () => {
|
|
2323
2226
|
const t = { ...e.props, ...e.params };
|
|
2324
|
-
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ?
|
|
2227
|
+
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? Et(e.render, t) : e.render;
|
|
2325
2228
|
}
|
|
2326
2229
|
});
|
|
2327
2230
|
export {
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2231
|
+
nl as C,
|
|
2232
|
+
tl as V,
|
|
2233
|
+
al as a,
|
|
2234
|
+
Ia as b,
|
|
2235
|
+
da as c,
|
|
2236
|
+
ba as d,
|
|
2237
|
+
Ra as e,
|
|
2238
|
+
Ka as f,
|
|
2239
|
+
ca as g,
|
|
2240
|
+
ha as h,
|
|
2241
|
+
va as i,
|
|
2242
|
+
wa as j,
|
|
2243
|
+
ia as k,
|
|
2244
|
+
ga as l,
|
|
2245
|
+
Ae as m,
|
|
2246
|
+
Ee as n,
|
|
2247
|
+
Le as o,
|
|
2248
|
+
Va as p,
|
|
2249
|
+
Ne as q,
|
|
2250
|
+
rt as r,
|
|
2251
|
+
Wa as s,
|
|
2252
|
+
ma as t,
|
|
2253
|
+
ll as u
|
|
2351
2254
|
};
|