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