@ianicdev/datatables2 0.10.6 → 0.10.8
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-BNLjDwAl.cjs → Columns-Dd9SfqmJ.cjs} +1 -1
- package/dist/{Columns--EhzKJV3.js → Columns-QO7YU0eZ.js} +1 -1
- package/dist/{Comparison-DMqunDhb.js → Comparison-ClrNRg-V.js} +6 -6
- package/dist/{Comparison-DBF0E27s.cjs → Comparison-DCWQz5X9.cjs} +1 -1
- package/dist/Datepicker-BHbZnWHu.cjs +2 -0
- package/dist/Datepicker-Du8AggGn.js +1425 -0
- package/dist/{Download-Y-QC-KIB.cjs → Download-B2JKkFCz.cjs} +1 -1
- package/dist/{Download-CRJDmReD.js → Download-CIp1YVEq.js} +3 -3
- package/dist/{Options-DMKsbXSj.js → Options-BPCUGErN.js} +1 -1
- package/dist/{Options-CN0OjNlD.cjs → Options-DiRnomZy.cjs} +1 -1
- package/dist/{RefreshTable-CefzM07a.js → RefreshTable-B13C6sLc.js} +2 -2
- package/dist/{RefreshTable-CvDVCIEq.cjs → RefreshTable-CwHf3COZ.cjs} +1 -1
- package/dist/{Search-DOLfmfAx.js → Search-BHVyo0uz.js} +2 -2
- package/dist/{Search-DciGQPJD.cjs → Search-CVhqyw6f.cjs} +1 -1
- package/dist/{Table-C8PPf5h-.cjs → Table-C2P9cYl_.cjs} +1 -1
- package/dist/{Table-BbH9gyVI.js → Table-DoG07zNZ.js} +3 -3
- package/dist/{TableServer-_BIBoBr0.js → TableServer-BDcY2nQz.js} +1324 -1319
- package/dist/TableServer-CeJMxSCa.cjs +20 -0
- package/dist/{cellRender-Cc2BuKK6.js → cellRender-BRFdMQzg.js} +549 -551
- package/dist/cellRender-DZ5qL5RV.cjs +1 -0
- package/dist/dataTables-CmM1RF0K.cjs +4 -0
- package/dist/{dataTables-sTblyiQt.js → dataTables-DRiNyKEv.js} +1385 -1388
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
- package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
- package/dist/index-Bz4Guf4c.cjs +1 -0
- package/dist/index-D9tMlHlC.js +5891 -0
- package/dist/{index-XHj8Ffjf.cjs → index-DD_T-n8-.cjs} +1 -1
- package/dist/{index-DH0TEy1G.js → index-DqBI0sCe.js} +11 -11
- package/dist/{index.es-BH0LP-1n.cjs → index.es-BtDW7HTQ.cjs} +1 -1
- package/dist/{index.es-C0t9o23l.js → index.es-Bv6Mb9BC.js} +2 -2
- package/dist/{jspdf-CZAMs0JY.cjs → jspdf-BsORS480.cjs} +2 -2
- package/dist/{jspdf-DbVrl9ga.js → jspdf-D9i2dan7.js} +2 -2
- package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
- package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
- package/package.json +13 -13
- package/dist/Datepicker-DSIbxyvl.cjs +0 -2
- package/dist/Datepicker-DTHZOdYd.js +0 -1411
- package/dist/TableServer--L2K6EH_.cjs +0 -20
- package/dist/cellRender-BPm3BB9S.cjs +0 -1
- package/dist/dataTables-C-WYkByZ.cjs +0 -4
- package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
- package/dist/index-DUKjDmN_.js +0 -4575
- package/dist/index-Ddgg9-AG.cjs +0 -1
- package/dist/sortablejs-C0WJhxmJ.js +0 -1254
- package/dist/sortablejs-Da6TYh39.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { toRef as
|
|
2
|
-
import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as
|
|
3
|
-
import { V as qe,
|
|
1
|
+
import { toRef as C, provide as X, toRaw as le, inject as U, ref as M, computed as V, toValue as Ft, watch as ce, shallowRef as He, onBeforeUpdate as Tt, createVNode as k, normalizeStyle as Pe, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Fe, watchEffect as Ct, capitalize as _t, Fragment as z, createTextVNode as Te, withModifiers as ne, toDisplayString as Bt, toRefs as Ot, defineComponent as Et, h as At } from "vue";
|
|
2
|
+
import { aQ as Lt, U as Nt, K as q, p as _, aR as ue, _ as je, J as Me, ad as he, N as Z, aS as Rt, T as J, aT as re, aU as $t, g as $, a0 as Ht, h as we, ah as fe, a as pe, aj as jt, aV as oe, u as K, a7 as W, x as Mt, y as ke, m as Ge, as as Gt, A as Kt, E as Ke, f as te, b as We, G as Wt, I as O, aW as Ce, S as Ie, aX as zt, ax as A, aY as qt, o as Ut, P as ze, L as Qt, D as Xt, an as De, d as _e, H as ye, a1 as xe, k as Jt, aA as se, a8 as Yt, l as Zt, n as ea, F as ta } from "./dataTables-DRiNyKEv.js";
|
|
3
|
+
import { V as qe, b as aa, c as de, e as la, m as na, u as ra, d as oa, a as sa } from "./index-D9tMlHlC.js";
|
|
4
4
|
import ie from "moment";
|
|
5
5
|
function Be(e, t, a) {
|
|
6
6
|
return Object.keys(e).filter((l) => Lt(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Nt(e[n], r, a(r)), l), {});
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const ia = _({
|
|
9
9
|
expandOnClick: Boolean,
|
|
10
10
|
showExpand: Boolean,
|
|
11
11
|
expanded: {
|
|
12
12
|
type: Array,
|
|
13
13
|
default: () => []
|
|
14
14
|
}
|
|
15
|
-
}, "DataTable-expand"), Ue = Symbol.for("vuetify:datatable:expanded");
|
|
16
|
-
function
|
|
17
|
-
const t =
|
|
18
|
-
function l(
|
|
19
|
-
const c = new Set(a.value), m = le(
|
|
15
|
+
}, "DataTable-expand"), Ue = /* @__PURE__ */ Symbol.for("vuetify:datatable:expanded");
|
|
16
|
+
function ua(e) {
|
|
17
|
+
const t = C(() => e.expandOnClick), a = q(e, "expanded", e.expanded, (f) => new Set(f), (f) => [...f.values()]);
|
|
18
|
+
function l(f, u) {
|
|
19
|
+
const c = new Set(a.value), m = le(f.value);
|
|
20
20
|
if (u)
|
|
21
21
|
c.add(m);
|
|
22
22
|
else {
|
|
@@ -25,39 +25,39 @@ function ia(e) {
|
|
|
25
25
|
}
|
|
26
26
|
a.value = c;
|
|
27
27
|
}
|
|
28
|
-
function n(
|
|
29
|
-
const u = le(
|
|
28
|
+
function n(f) {
|
|
29
|
+
const u = le(f.value);
|
|
30
30
|
return [...a.value].some((c) => le(c) === u);
|
|
31
31
|
}
|
|
32
|
-
function r(
|
|
33
|
-
l(
|
|
32
|
+
function r(f) {
|
|
33
|
+
l(f, !n(f));
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const i = {
|
|
36
36
|
expand: l,
|
|
37
37
|
expanded: a,
|
|
38
38
|
expandOnClick: t,
|
|
39
39
|
isExpanded: n,
|
|
40
40
|
toggleExpand: r
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return X(Ue, i), i;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Qe() {
|
|
45
45
|
const e = U(Ue);
|
|
46
46
|
if (!e) throw new Error("foo");
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const da = _({
|
|
50
50
|
groupBy: {
|
|
51
51
|
type: Array,
|
|
52
52
|
default: () => []
|
|
53
53
|
}
|
|
54
|
-
}, "DataTable-group"),
|
|
55
|
-
function
|
|
54
|
+
}, "DataTable-group"), Xe = /* @__PURE__ */ Symbol.for("vuetify:data-table-group");
|
|
55
|
+
function ca(e) {
|
|
56
56
|
return {
|
|
57
57
|
groupBy: q(e, "groupBy")
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function fa(e) {
|
|
61
61
|
const {
|
|
62
62
|
disableSort: t,
|
|
63
63
|
groupBy: a,
|
|
@@ -66,19 +66,19 @@ function ca(e) {
|
|
|
66
66
|
...m,
|
|
67
67
|
order: m.order ?? !1
|
|
68
68
|
})).concat(t?.value ? [] : l.value));
|
|
69
|
-
function
|
|
69
|
+
function i(m) {
|
|
70
70
|
return n.value.has(m.id);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function f(m) {
|
|
73
73
|
const h = new Set(n.value);
|
|
74
|
-
|
|
74
|
+
i(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
|
|
75
75
|
}
|
|
76
76
|
function u(m) {
|
|
77
77
|
function h(o) {
|
|
78
|
-
const
|
|
78
|
+
const s = [];
|
|
79
79
|
for (const b of o.items)
|
|
80
|
-
"type" in b && b.type === "group" ?
|
|
81
|
-
return [...new Set(
|
|
80
|
+
"type" in b && b.type === "group" ? s.push(...h(b)) : s.push(b);
|
|
81
|
+
return [...new Set(s)];
|
|
82
82
|
}
|
|
83
83
|
return h({
|
|
84
84
|
items: m
|
|
@@ -86,20 +86,20 @@ function ca(e) {
|
|
|
86
86
|
}
|
|
87
87
|
const c = {
|
|
88
88
|
sortByWithGroups: r,
|
|
89
|
-
toggleGroup:
|
|
89
|
+
toggleGroup: f,
|
|
90
90
|
opened: n,
|
|
91
91
|
groupBy: a,
|
|
92
92
|
extractRows: u,
|
|
93
|
-
isGroupOpen:
|
|
93
|
+
isGroupOpen: i
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return X(Xe, c), c;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const e = U(
|
|
97
|
+
function Je() {
|
|
98
|
+
const e = U(Xe);
|
|
99
99
|
if (!e) throw new Error("Missing group!");
|
|
100
100
|
return e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function va(e, t) {
|
|
103
103
|
if (!e.length) return [];
|
|
104
104
|
const a = /* @__PURE__ */ new Map();
|
|
105
105
|
for (const l of e) {
|
|
@@ -111,15 +111,15 @@ function fa(e, t) {
|
|
|
111
111
|
function Ye(e, t) {
|
|
112
112
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
|
|
113
113
|
if (!t.length) return [];
|
|
114
|
-
const n =
|
|
115
|
-
return n.forEach((
|
|
114
|
+
const n = va(e, t[0]), r = [], i = t.slice(1);
|
|
115
|
+
return n.forEach((f, u) => {
|
|
116
116
|
const c = t[0], m = `${l}_${c}_${u}`;
|
|
117
117
|
r.push({
|
|
118
118
|
depth: a,
|
|
119
119
|
id: m,
|
|
120
120
|
key: c,
|
|
121
121
|
value: u,
|
|
122
|
-
items:
|
|
122
|
+
items: i.length ? Ye(f, i, a + 1, m) : f,
|
|
123
123
|
type: "group"
|
|
124
124
|
});
|
|
125
125
|
}), r;
|
|
@@ -133,16 +133,16 @@ function Ze(e, t, a) {
|
|
|
133
133
|
}))) : l.push(n);
|
|
134
134
|
return l;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ga(e, t, a, l) {
|
|
137
137
|
return {
|
|
138
138
|
flatItems: V(() => {
|
|
139
139
|
if (!t.value.length) return e.value;
|
|
140
|
-
const r = Ye(e.value, t.value.map((
|
|
140
|
+
const r = Ye(e.value, t.value.map((i) => i.key));
|
|
141
141
|
return Ze(r, a.value, Ft(l));
|
|
142
142
|
})
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ma(e) {
|
|
146
146
|
let {
|
|
147
147
|
page: t,
|
|
148
148
|
itemsPerPage: a,
|
|
@@ -150,7 +150,7 @@ function ga(e) {
|
|
|
150
150
|
groupBy: n,
|
|
151
151
|
search: r
|
|
152
152
|
} = e;
|
|
153
|
-
const
|
|
153
|
+
const i = je("VDataTable"), f = () => ({
|
|
154
154
|
page: t.value,
|
|
155
155
|
itemsPerPage: a.value,
|
|
156
156
|
sortBy: l.value,
|
|
@@ -158,14 +158,14 @@ function ga(e) {
|
|
|
158
158
|
search: r.value
|
|
159
159
|
});
|
|
160
160
|
let u = null;
|
|
161
|
-
ce(
|
|
162
|
-
Me(u, c) || (u && u.search !== c.search && (t.value = 1),
|
|
161
|
+
ce(f, (c) => {
|
|
162
|
+
Me(u, c) || (u && u.search !== c.search && (t.value = 1), i.emit("update:options", c), u = c);
|
|
163
163
|
}, {
|
|
164
164
|
deep: !0,
|
|
165
165
|
immediate: !0
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const ba = _({
|
|
169
169
|
page: {
|
|
170
170
|
type: [Number, String],
|
|
171
171
|
default: 1
|
|
@@ -174,70 +174,70 @@ const ma = _({
|
|
|
174
174
|
type: [Number, String],
|
|
175
175
|
default: 10
|
|
176
176
|
}
|
|
177
|
-
}, "DataTable-paginate"), et = Symbol.for("vuetify:data-table-pagination");
|
|
178
|
-
function
|
|
177
|
+
}, "DataTable-paginate"), et = /* @__PURE__ */ Symbol.for("vuetify:data-table-pagination");
|
|
178
|
+
function ha(e) {
|
|
179
179
|
const t = q(e, "page", void 0, (l) => Number(l ?? 1)), a = q(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
|
|
180
180
|
return {
|
|
181
181
|
page: t,
|
|
182
182
|
itemsPerPage: a
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ya(e) {
|
|
186
186
|
const {
|
|
187
187
|
page: t,
|
|
188
188
|
itemsPerPage: a,
|
|
189
189
|
itemsLength: l
|
|
190
|
-
} = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)),
|
|
191
|
-
ce([t,
|
|
192
|
-
t.value >
|
|
190
|
+
} = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), i = V(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
|
|
191
|
+
ce([t, i], () => {
|
|
192
|
+
t.value > i.value && (t.value = i.value);
|
|
193
193
|
});
|
|
194
|
-
function
|
|
194
|
+
function f(o) {
|
|
195
195
|
a.value = o, t.value = 1;
|
|
196
196
|
}
|
|
197
197
|
function u() {
|
|
198
|
-
t.value = he(t.value + 1, 1,
|
|
198
|
+
t.value = he(t.value + 1, 1, i.value);
|
|
199
199
|
}
|
|
200
200
|
function c() {
|
|
201
|
-
t.value = he(t.value - 1, 1,
|
|
201
|
+
t.value = he(t.value - 1, 1, i.value);
|
|
202
202
|
}
|
|
203
203
|
function m(o) {
|
|
204
|
-
t.value = he(o, 1,
|
|
204
|
+
t.value = he(o, 1, i.value);
|
|
205
205
|
}
|
|
206
206
|
const h = {
|
|
207
207
|
page: t,
|
|
208
208
|
itemsPerPage: a,
|
|
209
209
|
startIndex: n,
|
|
210
210
|
stopIndex: r,
|
|
211
|
-
pageCount:
|
|
211
|
+
pageCount: i,
|
|
212
212
|
itemsLength: l,
|
|
213
213
|
nextPage: u,
|
|
214
214
|
prevPage: c,
|
|
215
215
|
setPage: m,
|
|
216
|
-
setItemsPerPage:
|
|
216
|
+
setItemsPerPage: f
|
|
217
217
|
};
|
|
218
|
-
return
|
|
218
|
+
return X(et, h), h;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function pa() {
|
|
221
221
|
const e = U(et);
|
|
222
222
|
if (!e) throw new Error("Missing pagination!");
|
|
223
223
|
return e;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function xa(e) {
|
|
226
226
|
const t = je("usePaginatedItems"), {
|
|
227
227
|
items: a,
|
|
228
228
|
startIndex: l,
|
|
229
229
|
stopIndex: n,
|
|
230
230
|
itemsPerPage: r
|
|
231
|
-
} = e,
|
|
232
|
-
return ce(
|
|
233
|
-
t.emit("update:currentItems",
|
|
231
|
+
} = e, i = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
|
|
232
|
+
return ce(i, (f) => {
|
|
233
|
+
t.emit("update:currentItems", f);
|
|
234
234
|
}, {
|
|
235
235
|
immediate: !0
|
|
236
236
|
}), {
|
|
237
|
-
paginatedItems:
|
|
237
|
+
paginatedItems: i
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const Sa = {
|
|
241
241
|
showSelectAll: !1,
|
|
242
242
|
allSelected: () => [],
|
|
243
243
|
select: (e) => {
|
|
@@ -283,7 +283,7 @@ const xa = {
|
|
|
283
283
|
selected: l
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
},
|
|
286
|
+
}, Pa = {
|
|
287
287
|
showSelectAll: !0,
|
|
288
288
|
allSelected: (e) => {
|
|
289
289
|
let {
|
|
@@ -308,7 +308,7 @@ const xa = {
|
|
|
308
308
|
} = e;
|
|
309
309
|
return new Set(t ? a.map((l) => l.value) : []);
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, wa = _({
|
|
312
312
|
showSelect: Boolean,
|
|
313
313
|
selectStrategy: {
|
|
314
314
|
type: [String, Object],
|
|
@@ -319,85 +319,84 @@ const xa = {
|
|
|
319
319
|
default: () => []
|
|
320
320
|
},
|
|
321
321
|
valueComparator: Function
|
|
322
|
-
}, "DataTable-select"), at = Symbol.for("vuetify:data-table-selection");
|
|
323
|
-
function
|
|
322
|
+
}, "DataTable-select"), at = /* @__PURE__ */ Symbol.for("vuetify:data-table-selection");
|
|
323
|
+
function ka(e, t) {
|
|
324
324
|
let {
|
|
325
325
|
allItems: a,
|
|
326
326
|
currentPage: l
|
|
327
327
|
} = t;
|
|
328
328
|
const n = q(e, "modelValue", e.modelValue, (y) => {
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
}, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)),
|
|
329
|
+
const D = e.valueComparator;
|
|
330
|
+
return D ? new Set(Z(y).map((T) => a.value.find((P) => D(T, P.value))?.value ?? T)) : new Set(Z(y).map((T) => Rt(T) ? a.value.find((P) => T === P.value)?.value ?? T : a.value.find((P) => Me(T, P.value))?.value ?? T));
|
|
331
|
+
}, (y) => [...y.values()]), r = V(() => a.value.filter((y) => y.selectable)), i = V(() => l.value.filter((y) => y.selectable)), f = V(() => {
|
|
332
332
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
333
333
|
switch (e.selectStrategy) {
|
|
334
334
|
case "single":
|
|
335
|
-
return xa;
|
|
336
|
-
case "all":
|
|
337
335
|
return Sa;
|
|
338
|
-
case "
|
|
336
|
+
case "all":
|
|
337
|
+
return Pa;
|
|
339
338
|
default:
|
|
340
339
|
return tt;
|
|
341
340
|
}
|
|
342
341
|
}), u = He(null);
|
|
343
342
|
function c(y) {
|
|
344
|
-
return Z(y).every((
|
|
343
|
+
return Z(y).every((D) => n.value.has(D.value));
|
|
345
344
|
}
|
|
346
345
|
function m(y) {
|
|
347
|
-
return Z(y).some((
|
|
346
|
+
return Z(y).some((D) => n.value.has(D.value));
|
|
348
347
|
}
|
|
349
|
-
function h(y,
|
|
350
|
-
const
|
|
348
|
+
function h(y, D) {
|
|
349
|
+
const T = f.value.select({
|
|
351
350
|
items: y,
|
|
352
|
-
value:
|
|
351
|
+
value: D,
|
|
353
352
|
selected: new Set(n.value)
|
|
354
353
|
});
|
|
355
|
-
n.value =
|
|
354
|
+
n.value = T;
|
|
356
355
|
}
|
|
357
|
-
function o(y,
|
|
356
|
+
function o(y, D, T) {
|
|
358
357
|
const P = [];
|
|
359
|
-
if (
|
|
360
|
-
const [
|
|
361
|
-
P.push(...l.value.slice(
|
|
358
|
+
if (D = D ?? l.value.findIndex((E) => E.value === y.value), e.selectStrategy !== "single" && T?.shiftKey && u.value !== null) {
|
|
359
|
+
const [E, N] = [u.value, D].sort((p, x) => p - x);
|
|
360
|
+
P.push(...l.value.slice(E, N + 1).filter((p) => p.selectable));
|
|
362
361
|
} else
|
|
363
|
-
P.push(y), u.value =
|
|
362
|
+
P.push(y), u.value = D;
|
|
364
363
|
h(P, !c([y]));
|
|
365
364
|
}
|
|
366
|
-
function
|
|
367
|
-
const
|
|
365
|
+
function s(y) {
|
|
366
|
+
const D = f.value.selectAll({
|
|
368
367
|
value: y,
|
|
369
368
|
allItems: r.value,
|
|
370
|
-
currentPage:
|
|
369
|
+
currentPage: i.value,
|
|
371
370
|
selected: new Set(n.value)
|
|
372
371
|
});
|
|
373
|
-
n.value =
|
|
372
|
+
n.value = D;
|
|
374
373
|
}
|
|
375
374
|
const b = V(() => n.value.size > 0), d = V(() => {
|
|
376
|
-
const y =
|
|
375
|
+
const y = f.value.allSelected({
|
|
377
376
|
allItems: r.value,
|
|
378
|
-
currentPage:
|
|
377
|
+
currentPage: i.value
|
|
379
378
|
});
|
|
380
379
|
return !!y.length && c(y);
|
|
381
|
-
}),
|
|
380
|
+
}), v = C(() => f.value.showSelectAll), I = {
|
|
382
381
|
toggleSelect: o,
|
|
383
382
|
select: h,
|
|
384
|
-
selectAll:
|
|
383
|
+
selectAll: s,
|
|
385
384
|
isSelected: c,
|
|
386
385
|
isSomeSelected: m,
|
|
387
386
|
someSelected: b,
|
|
388
387
|
allSelected: d,
|
|
389
|
-
showSelectAll:
|
|
388
|
+
showSelectAll: v,
|
|
390
389
|
lastSelectedIndex: u,
|
|
391
|
-
selectStrategy:
|
|
390
|
+
selectStrategy: f
|
|
392
391
|
};
|
|
393
|
-
return
|
|
392
|
+
return X(at, I), I;
|
|
394
393
|
}
|
|
395
394
|
function ve() {
|
|
396
395
|
const e = U(at);
|
|
397
396
|
if (!e) throw new Error("Missing selection!");
|
|
398
397
|
return e;
|
|
399
398
|
}
|
|
400
|
-
const
|
|
399
|
+
const Ia = _({
|
|
401
400
|
initialSortOrder: {
|
|
402
401
|
type: String,
|
|
403
402
|
default: "asc",
|
|
@@ -413,9 +412,9 @@ const ka = _({
|
|
|
413
412
|
default: !1
|
|
414
413
|
},
|
|
415
414
|
mustSort: Boolean
|
|
416
|
-
}, "DataTable-sort"), lt = Symbol.for("vuetify:data-table-sort");
|
|
417
|
-
function
|
|
418
|
-
const t =
|
|
415
|
+
}, "DataTable-sort"), lt = /* @__PURE__ */ Symbol.for("vuetify:data-table-sort");
|
|
416
|
+
function Da(e) {
|
|
417
|
+
const t = C(() => e.initialSortOrder), a = q(e, "sortBy"), l = C(() => e.mustSort), n = C(() => e.multiSort);
|
|
419
418
|
return {
|
|
420
419
|
initialSortOrder: t,
|
|
421
420
|
sortBy: a,
|
|
@@ -423,7 +422,7 @@ function Ia(e) {
|
|
|
423
422
|
mustSort: l
|
|
424
423
|
};
|
|
425
424
|
}
|
|
426
|
-
function
|
|
425
|
+
function Va(e, t) {
|
|
427
426
|
if (!$t(e))
|
|
428
427
|
return {
|
|
429
428
|
active: !!e
|
|
@@ -438,58 +437,58 @@ function Da(e, t) {
|
|
|
438
437
|
mode: r ? l === "append" ? "prepend" : "append" : l
|
|
439
438
|
};
|
|
440
439
|
}
|
|
441
|
-
function
|
|
440
|
+
function Fa(e) {
|
|
442
441
|
const {
|
|
443
442
|
initialSortOrder: t,
|
|
444
443
|
sortBy: a,
|
|
445
444
|
mustSort: l,
|
|
446
445
|
multiSort: n,
|
|
447
446
|
page: r
|
|
448
|
-
} = e,
|
|
447
|
+
} = e, i = (c, m) => {
|
|
449
448
|
if (c.key == null) return;
|
|
450
449
|
let h = a.value.map((d) => ({
|
|
451
450
|
...d
|
|
452
451
|
})) ?? [];
|
|
453
|
-
const o = h.find((d) => d.key === c.key),
|
|
452
|
+
const o = h.find((d) => d.key === c.key), s = t.value, b = t.value === "desc" ? "asc" : "desc";
|
|
454
453
|
if (o)
|
|
455
454
|
o.order === b ? l.value && h.length === 1 ? o.order = t.value : h = h.filter((d) => d.key !== c.key) : o.order = b;
|
|
456
455
|
else {
|
|
457
456
|
const {
|
|
458
457
|
active: d,
|
|
459
|
-
mode:
|
|
460
|
-
} =
|
|
461
|
-
d ?
|
|
458
|
+
mode: v
|
|
459
|
+
} = Va(n.value, m);
|
|
460
|
+
d ? v === "prepend" ? h.unshift({
|
|
462
461
|
key: c.key,
|
|
463
|
-
order:
|
|
462
|
+
order: s
|
|
464
463
|
}) : h.push({
|
|
465
464
|
key: c.key,
|
|
466
|
-
order:
|
|
465
|
+
order: s
|
|
467
466
|
}) : h = [{
|
|
468
467
|
key: c.key,
|
|
469
|
-
order:
|
|
468
|
+
order: s
|
|
470
469
|
}];
|
|
471
470
|
}
|
|
472
471
|
a.value = h, r && (r.value = 1);
|
|
473
472
|
};
|
|
474
|
-
function
|
|
473
|
+
function f(c) {
|
|
475
474
|
return !!a.value.find((m) => m.key === c.key);
|
|
476
475
|
}
|
|
477
476
|
const u = {
|
|
478
477
|
sortBy: a,
|
|
479
|
-
toggleSort:
|
|
480
|
-
isSorted:
|
|
478
|
+
toggleSort: i,
|
|
479
|
+
isSorted: f
|
|
481
480
|
};
|
|
482
|
-
return
|
|
481
|
+
return X(lt, u), u;
|
|
483
482
|
}
|
|
484
483
|
function nt() {
|
|
485
484
|
const e = U(lt);
|
|
486
485
|
if (!e) throw new Error("Missing sort!");
|
|
487
486
|
return e;
|
|
488
487
|
}
|
|
489
|
-
function
|
|
490
|
-
const n =
|
|
488
|
+
function Ta(e, t, a, l) {
|
|
489
|
+
const n = J();
|
|
491
490
|
return {
|
|
492
|
-
sortedItems: V(() => a.value.length ?
|
|
491
|
+
sortedItems: V(() => a.value.length ? Ca(t.value, a.value, n.current.value, {
|
|
493
492
|
transform: l?.transform,
|
|
494
493
|
sortFunctions: {
|
|
495
494
|
...e.customKeySort,
|
|
@@ -499,37 +498,37 @@ function Fa(e, t, a, l) {
|
|
|
499
498
|
}) : t.value)
|
|
500
499
|
};
|
|
501
500
|
}
|
|
502
|
-
function
|
|
501
|
+
function Ca(e, t, a, l) {
|
|
503
502
|
const n = new Intl.Collator(a, {
|
|
504
503
|
sensitivity: "accent",
|
|
505
504
|
usage: "sort"
|
|
506
505
|
});
|
|
507
|
-
return e.map((
|
|
506
|
+
return e.map((i) => [i, l?.transform ? l.transform(i) : i]).sort((i, f) => {
|
|
508
507
|
for (let u = 0; u < t.length; u++) {
|
|
509
508
|
let c = !1;
|
|
510
509
|
const m = t[u].key, h = t[u].order ?? "asc";
|
|
511
510
|
if (h === !1) continue;
|
|
512
|
-
let o = ue(
|
|
513
|
-
if (h === "desc" && ([o,
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
516
|
-
if (c = !0,
|
|
511
|
+
let o = ue(i[1], m), s = ue(f[1], m), b = i[0].raw, d = f[0].raw;
|
|
512
|
+
if (h === "desc" && ([o, s] = [s, o], [b, d] = [d, b]), l?.sortRawFunctions?.[m]) {
|
|
513
|
+
const v = l.sortRawFunctions[m](b, d);
|
|
514
|
+
if (v == null) continue;
|
|
515
|
+
if (c = !0, v) return v;
|
|
517
516
|
}
|
|
518
517
|
if (l?.sortFunctions?.[m]) {
|
|
519
|
-
const
|
|
520
|
-
if (
|
|
521
|
-
if (c = !0,
|
|
518
|
+
const v = l.sortFunctions[m](o, s);
|
|
519
|
+
if (v == null) continue;
|
|
520
|
+
if (c = !0, v) return v;
|
|
522
521
|
}
|
|
523
|
-
if (!c && (o instanceof Date &&
|
|
524
|
-
return re(o) && re(
|
|
522
|
+
if (!c && (o instanceof Date && s instanceof Date && (o = o.getTime(), s = s.getTime()), [o, s] = [o, s].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), o !== s))
|
|
523
|
+
return re(o) && re(s) ? 0 : re(o) ? -1 : re(s) ? 1 : !isNaN(o) && !isNaN(s) ? Number(o) - Number(s) : n.compare(o, s);
|
|
525
524
|
}
|
|
526
525
|
return 0;
|
|
527
|
-
}).map((
|
|
528
|
-
let [
|
|
529
|
-
return
|
|
526
|
+
}).map((i) => {
|
|
527
|
+
let [f] = i;
|
|
528
|
+
return f;
|
|
530
529
|
});
|
|
531
530
|
}
|
|
532
|
-
function
|
|
531
|
+
function _a() {
|
|
533
532
|
const e = M([]);
|
|
534
533
|
Tt(() => e.value = []);
|
|
535
534
|
function t(a, l) {
|
|
@@ -540,7 +539,7 @@ function Ca() {
|
|
|
540
539
|
updateRef: t
|
|
541
540
|
};
|
|
542
541
|
}
|
|
543
|
-
const
|
|
542
|
+
const Ba = _({
|
|
544
543
|
activeColor: String,
|
|
545
544
|
start: {
|
|
546
545
|
type: [Number, String],
|
|
@@ -621,7 +620,7 @@ const _a = _({
|
|
|
621
620
|
})
|
|
622
621
|
}, "VPagination"), Oe = $()({
|
|
623
622
|
name: "VPagination",
|
|
624
|
-
props:
|
|
623
|
+
props: Ba(),
|
|
625
624
|
emits: {
|
|
626
625
|
"update:modelValue": (e) => !0,
|
|
627
626
|
first: (e) => !0,
|
|
@@ -636,9 +635,9 @@ const _a = _({
|
|
|
636
635
|
} = t;
|
|
637
636
|
const n = q(e, "modelValue"), {
|
|
638
637
|
t: r,
|
|
639
|
-
n:
|
|
640
|
-
} =
|
|
641
|
-
isRtl:
|
|
638
|
+
n: i
|
|
639
|
+
} = J(), {
|
|
640
|
+
isRtl: f
|
|
642
641
|
} = Ht(), {
|
|
643
642
|
themeClasses: u
|
|
644
643
|
} = we(e), {
|
|
@@ -653,127 +652,127 @@ const _a = _({
|
|
|
653
652
|
if (!p.length) return;
|
|
654
653
|
const {
|
|
655
654
|
target: x,
|
|
656
|
-
contentRect:
|
|
657
|
-
} = p[0],
|
|
658
|
-
if (!
|
|
659
|
-
const
|
|
660
|
-
m.value = d(
|
|
661
|
-
}), o = V(() => parseInt(e.length, 10)),
|
|
655
|
+
contentRect: g
|
|
656
|
+
} = p[0], w = x.querySelector(".v-pagination__list > *");
|
|
657
|
+
if (!w) return;
|
|
658
|
+
const F = g.width, R = w.offsetWidth + parseFloat(getComputedStyle(w).marginRight) * 2;
|
|
659
|
+
m.value = d(F, R);
|
|
660
|
+
}), o = V(() => parseInt(e.length, 10)), s = V(() => parseInt(e.start, 10)), b = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : d(c.value, 58));
|
|
662
661
|
function d(p, x) {
|
|
663
|
-
const
|
|
662
|
+
const g = e.showFirstLastPage ? 5 : 3;
|
|
664
663
|
return Math.max(0, Math.floor(
|
|
665
664
|
// Round to two decimal places to avoid floating point errors
|
|
666
|
-
Number(((p - x *
|
|
665
|
+
Number(((p - x * g) / x).toFixed(2))
|
|
667
666
|
));
|
|
668
667
|
}
|
|
669
|
-
const
|
|
668
|
+
const v = V(() => {
|
|
670
669
|
if (o.value <= 0 || isNaN(o.value) || o.value > Number.MAX_SAFE_INTEGER) return [];
|
|
671
670
|
if (b.value <= 0) return [];
|
|
672
671
|
if (b.value === 1) return [n.value];
|
|
673
672
|
if (o.value <= b.value)
|
|
674
|
-
return oe(o.value,
|
|
675
|
-
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2),
|
|
676
|
-
if (
|
|
677
|
-
return [...oe(Math.max(1, b.value - 1),
|
|
678
|
-
if (n.value -
|
|
679
|
-
const
|
|
680
|
-
return [
|
|
673
|
+
return oe(o.value, s.value);
|
|
674
|
+
const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, w = o.value - x;
|
|
675
|
+
if (g - n.value >= 0)
|
|
676
|
+
return [...oe(Math.max(1, b.value - 1), s.value), e.ellipsis, o.value];
|
|
677
|
+
if (n.value - w >= (p ? 1 : 0)) {
|
|
678
|
+
const F = b.value - 1, R = o.value - F + s.value;
|
|
679
|
+
return [s.value, e.ellipsis, ...oe(F, R)];
|
|
681
680
|
} else {
|
|
682
|
-
const
|
|
683
|
-
return [
|
|
681
|
+
const F = Math.max(1, b.value - 2), R = F === 1 ? n.value : n.value - Math.ceil(F / 2) + s.value;
|
|
682
|
+
return [s.value, e.ellipsis, ...oe(F, R), e.ellipsis, o.value];
|
|
684
683
|
}
|
|
685
684
|
});
|
|
686
|
-
function I(p, x,
|
|
687
|
-
p.preventDefault(), n.value = x,
|
|
685
|
+
function I(p, x, g) {
|
|
686
|
+
p.preventDefault(), n.value = x, g && l(g, x);
|
|
688
687
|
}
|
|
689
688
|
const {
|
|
690
689
|
refs: y,
|
|
691
|
-
updateRef:
|
|
692
|
-
} =
|
|
690
|
+
updateRef: D
|
|
691
|
+
} = _a();
|
|
693
692
|
pe({
|
|
694
693
|
VPaginationBtn: {
|
|
695
|
-
color:
|
|
696
|
-
border:
|
|
697
|
-
density:
|
|
698
|
-
size:
|
|
699
|
-
variant:
|
|
700
|
-
rounded:
|
|
701
|
-
elevation:
|
|
694
|
+
color: C(() => e.color),
|
|
695
|
+
border: C(() => e.border),
|
|
696
|
+
density: C(() => e.density),
|
|
697
|
+
size: C(() => e.size),
|
|
698
|
+
variant: C(() => e.variant),
|
|
699
|
+
rounded: C(() => e.rounded),
|
|
700
|
+
elevation: C(() => e.elevation)
|
|
702
701
|
}
|
|
703
702
|
});
|
|
704
|
-
const
|
|
705
|
-
const
|
|
703
|
+
const T = V(() => v.value.map((p, x) => {
|
|
704
|
+
const g = (w) => D(w, x);
|
|
706
705
|
if (typeof p == "string")
|
|
707
706
|
return {
|
|
708
707
|
isActive: !1,
|
|
709
708
|
key: `ellipsis-${x}`,
|
|
710
709
|
page: p,
|
|
711
710
|
props: {
|
|
712
|
-
ref:
|
|
711
|
+
ref: g,
|
|
713
712
|
ellipsis: !0,
|
|
714
713
|
icon: !0,
|
|
715
714
|
disabled: !0
|
|
716
715
|
}
|
|
717
716
|
};
|
|
718
717
|
{
|
|
719
|
-
const
|
|
718
|
+
const w = p === n.value;
|
|
720
719
|
return {
|
|
721
|
-
isActive:
|
|
720
|
+
isActive: w,
|
|
722
721
|
key: p,
|
|
723
|
-
page:
|
|
722
|
+
page: i(p),
|
|
724
723
|
props: {
|
|
725
|
-
ref:
|
|
724
|
+
ref: g,
|
|
726
725
|
ellipsis: !1,
|
|
727
726
|
icon: !0,
|
|
728
727
|
disabled: !!e.disabled || Number(e.length) < 2,
|
|
729
|
-
color:
|
|
730
|
-
"aria-current":
|
|
731
|
-
"aria-label": r(
|
|
732
|
-
onClick: (
|
|
728
|
+
color: w ? e.activeColor : e.color,
|
|
729
|
+
"aria-current": w,
|
|
730
|
+
"aria-label": r(w ? e.currentPageAriaLabel : e.pageAriaLabel, p),
|
|
731
|
+
onClick: (F) => I(F, p)
|
|
733
732
|
}
|
|
734
733
|
};
|
|
735
734
|
}
|
|
736
735
|
})), P = V(() => {
|
|
737
|
-
const p = !!e.disabled || n.value <=
|
|
736
|
+
const p = !!e.disabled || n.value <= s.value, x = !!e.disabled || n.value >= s.value + o.value - 1;
|
|
738
737
|
return {
|
|
739
738
|
first: e.showFirstLastPage ? {
|
|
740
|
-
icon:
|
|
741
|
-
onClick: (
|
|
739
|
+
icon: f.value ? e.lastIcon : e.firstIcon,
|
|
740
|
+
onClick: (g) => I(g, s.value, "first"),
|
|
742
741
|
disabled: p,
|
|
743
742
|
"aria-label": r(e.firstAriaLabel),
|
|
744
743
|
"aria-disabled": p
|
|
745
744
|
} : void 0,
|
|
746
745
|
prev: {
|
|
747
|
-
icon:
|
|
748
|
-
onClick: (
|
|
746
|
+
icon: f.value ? e.nextIcon : e.prevIcon,
|
|
747
|
+
onClick: (g) => I(g, n.value - 1, "prev"),
|
|
749
748
|
disabled: p,
|
|
750
749
|
"aria-label": r(e.previousAriaLabel),
|
|
751
750
|
"aria-disabled": p
|
|
752
751
|
},
|
|
753
752
|
next: {
|
|
754
|
-
icon:
|
|
755
|
-
onClick: (
|
|
753
|
+
icon: f.value ? e.prevIcon : e.nextIcon,
|
|
754
|
+
onClick: (g) => I(g, n.value + 1, "next"),
|
|
756
755
|
disabled: x,
|
|
757
756
|
"aria-label": r(e.nextAriaLabel),
|
|
758
757
|
"aria-disabled": x
|
|
759
758
|
},
|
|
760
759
|
last: e.showFirstLastPage ? {
|
|
761
|
-
icon:
|
|
762
|
-
onClick: (
|
|
760
|
+
icon: f.value ? e.firstIcon : e.lastIcon,
|
|
761
|
+
onClick: (g) => I(g, s.value + o.value - 1, "last"),
|
|
763
762
|
disabled: x,
|
|
764
763
|
"aria-label": r(e.lastAriaLabel),
|
|
765
764
|
"aria-disabled": x
|
|
766
765
|
} : void 0
|
|
767
766
|
};
|
|
768
767
|
});
|
|
769
|
-
function
|
|
770
|
-
const p = n.value -
|
|
768
|
+
function E() {
|
|
769
|
+
const p = n.value - s.value;
|
|
771
770
|
y.value[p]?.$el.focus();
|
|
772
771
|
}
|
|
773
772
|
function N(p) {
|
|
774
|
-
p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(
|
|
773
|
+
p.key === Ce.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Fe(E)) : p.key === Ce.right && !e.disabled && n.value < s.value + o.value - 1 && (n.value = n.value + 1, Fe(E));
|
|
775
774
|
}
|
|
776
|
-
return K(() =>
|
|
775
|
+
return K(() => k(e.tag, {
|
|
777
776
|
ref: h,
|
|
778
777
|
class: G(["v-pagination", u.value, e.class]),
|
|
779
778
|
style: Pe(e.style),
|
|
@@ -788,21 +787,21 @@ const _a = _({
|
|
|
788
787
|
key: "first",
|
|
789
788
|
class: "v-pagination__first",
|
|
790
789
|
"data-test": "v-pagination-first"
|
|
791
|
-
}, [a.first ? a.first(P.value.first) :
|
|
790
|
+
}, [a.first ? a.first(P.value.first) : k(W, B({
|
|
792
791
|
_as: "VPaginationBtn"
|
|
793
792
|
}, P.value.first), null)]), S("li", {
|
|
794
793
|
key: "prev",
|
|
795
794
|
class: "v-pagination__prev",
|
|
796
795
|
"data-test": "v-pagination-prev"
|
|
797
|
-
}, [a.prev ? a.prev(P.value.prev) :
|
|
796
|
+
}, [a.prev ? a.prev(P.value.prev) : k(W, B({
|
|
798
797
|
_as: "VPaginationBtn"
|
|
799
|
-
}, P.value.prev), null)]),
|
|
798
|
+
}, P.value.prev), null)]), T.value.map((p, x) => S("li", {
|
|
800
799
|
key: p.key,
|
|
801
800
|
class: G(["v-pagination__item", {
|
|
802
801
|
"v-pagination__item--is-active": p.isActive
|
|
803
802
|
}]),
|
|
804
803
|
"data-test": "v-pagination-item"
|
|
805
|
-
}, [a.item ? a.item(p) :
|
|
804
|
+
}, [a.item ? a.item(p) : k(W, B({
|
|
806
805
|
_as: "VPaginationBtn"
|
|
807
806
|
}, p.props), {
|
|
808
807
|
default: () => [p.page]
|
|
@@ -810,13 +809,13 @@ const _a = _({
|
|
|
810
809
|
key: "next",
|
|
811
810
|
class: "v-pagination__next",
|
|
812
811
|
"data-test": "v-pagination-next"
|
|
813
|
-
}, [a.next ? a.next(P.value.next) :
|
|
812
|
+
}, [a.next ? a.next(P.value.next) : k(W, B({
|
|
814
813
|
_as: "VPaginationBtn"
|
|
815
814
|
}, P.value.next), null)]), e.showFirstLastPage && S("li", {
|
|
816
815
|
key: "last",
|
|
817
816
|
class: "v-pagination__last",
|
|
818
817
|
"data-test": "v-pagination-last"
|
|
819
|
-
}, [a.last ? a.last(P.value.last) :
|
|
818
|
+
}, [a.last ? a.last(P.value.last) : k(W, B({
|
|
820
819
|
_as: "VPaginationBtn"
|
|
821
820
|
}, P.value.last), null)])])]
|
|
822
821
|
})), {};
|
|
@@ -883,7 +882,7 @@ const _a = _({
|
|
|
883
882
|
}]
|
|
884
883
|
},
|
|
885
884
|
showCurrentPage: Boolean
|
|
886
|
-
}, "VDataTableFooter"),
|
|
885
|
+
}, "VDataTableFooter"), Ee = $()({
|
|
887
886
|
name: "VDataTableFooter",
|
|
888
887
|
props: rt(),
|
|
889
888
|
setup(e, t) {
|
|
@@ -892,15 +891,15 @@ const _a = _({
|
|
|
892
891
|
} = t;
|
|
893
892
|
const {
|
|
894
893
|
t: l
|
|
895
|
-
} =
|
|
894
|
+
} = J(), {
|
|
896
895
|
page: n,
|
|
897
896
|
pageCount: r,
|
|
898
|
-
startIndex:
|
|
899
|
-
stopIndex:
|
|
897
|
+
startIndex: i,
|
|
898
|
+
stopIndex: f,
|
|
900
899
|
itemsLength: u,
|
|
901
900
|
itemsPerPage: c,
|
|
902
901
|
setItemsPerPage: m
|
|
903
|
-
} =
|
|
902
|
+
} = pa(), h = V(() => e.itemsPerPageOptions.map((o) => typeof o == "number" ? {
|
|
904
903
|
value: o,
|
|
905
904
|
title: o === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(o)
|
|
906
905
|
} : {
|
|
@@ -913,23 +912,22 @@ const _a = _({
|
|
|
913
912
|
class: "v-data-table-footer"
|
|
914
913
|
}, [a.prepend?.(), S("div", {
|
|
915
914
|
class: "v-data-table-footer__items-per-page"
|
|
916
|
-
}, [S("span", {
|
|
917
|
-
"aria-label": l(e.itemsPerPageText)
|
|
918
|
-
}, [l(e.itemsPerPageText)]), w(qe, {
|
|
915
|
+
}, [S("span", null, [l(e.itemsPerPageText)]), k(qe, {
|
|
919
916
|
items: h.value,
|
|
920
917
|
itemColor: e.color,
|
|
921
918
|
modelValue: c.value,
|
|
922
|
-
"onUpdate:modelValue": (
|
|
919
|
+
"onUpdate:modelValue": (s) => m(Number(s)),
|
|
923
920
|
density: "compact",
|
|
924
921
|
variant: "outlined",
|
|
922
|
+
"aria-label": l(e.itemsPerPageText),
|
|
925
923
|
hideDetails: !0
|
|
926
924
|
}, null)]), S("div", {
|
|
927
925
|
class: "v-data-table-footer__info"
|
|
928
|
-
}, [S("div", null, [l(e.pageText, u.value ?
|
|
926
|
+
}, [S("div", null, [l(e.pageText, u.value ? i.value + 1 : 0, f.value, u.value)])]), S("div", {
|
|
929
927
|
class: "v-data-table-footer__pagination"
|
|
930
|
-
}, [
|
|
928
|
+
}, [k(Oe, B({
|
|
931
929
|
modelValue: n.value,
|
|
932
|
-
"onUpdate:modelValue": (
|
|
930
|
+
"onUpdate:modelValue": (s) => n.value = s,
|
|
933
931
|
density: "comfortable",
|
|
934
932
|
firstAriaLabel: e.firstPageLabel,
|
|
935
933
|
lastAriaLabel: e.lastPageLabel,
|
|
@@ -969,7 +967,7 @@ const _a = _({
|
|
|
969
967
|
slots: a
|
|
970
968
|
} = t;
|
|
971
969
|
const l = e.tag ?? "td", n = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
|
|
972
|
-
return
|
|
970
|
+
return k(l, {
|
|
973
971
|
class: G(["v-data-table__td", {
|
|
974
972
|
"v-data-table-column--fixed": n === "start",
|
|
975
973
|
"v-data-table-column--fixed-end": n === "end",
|
|
@@ -980,22 +978,22 @@ const _a = _({
|
|
|
980
978
|
"v-data-table-column--empty": e.empty
|
|
981
979
|
}, `v-data-table-column--align-${e.align}`]),
|
|
982
980
|
style: {
|
|
983
|
-
height:
|
|
984
|
-
width:
|
|
985
|
-
maxWidth:
|
|
986
|
-
left: n === "start" ?
|
|
987
|
-
right: n === "end" ?
|
|
988
|
-
paddingInlineStart: e.indent ?
|
|
981
|
+
height: A(e.height),
|
|
982
|
+
width: A(e.width),
|
|
983
|
+
maxWidth: A(e.maxWidth),
|
|
984
|
+
left: n === "start" ? A(e.fixedOffset || null) : void 0,
|
|
985
|
+
right: n === "end" ? A(e.fixedEndOffset || null) : void 0,
|
|
986
|
+
paddingInlineStart: e.indent ? A(e.indent) : void 0
|
|
989
987
|
}
|
|
990
988
|
}, {
|
|
991
989
|
default: () => [a.default?.()]
|
|
992
990
|
});
|
|
993
|
-
}),
|
|
991
|
+
}), Oa = _({
|
|
994
992
|
headers: Array
|
|
995
|
-
}, "DataTable-header"), ot = Symbol.for("vuetify:data-table-headers"), st = {
|
|
993
|
+
}, "DataTable-header"), ot = /* @__PURE__ */ Symbol.for("vuetify:data-table-headers"), st = {
|
|
996
994
|
title: "",
|
|
997
995
|
sortable: !1
|
|
998
|
-
},
|
|
996
|
+
}, Ea = {
|
|
999
997
|
...st,
|
|
1000
998
|
width: 48
|
|
1001
999
|
};
|
|
@@ -1047,38 +1045,38 @@ function it(e) {
|
|
|
1047
1045
|
a.key && t.add(a.key), a.children && it(a.children, t);
|
|
1048
1046
|
return t;
|
|
1049
1047
|
}
|
|
1050
|
-
function
|
|
1048
|
+
function La(e) {
|
|
1051
1049
|
if (e.key) {
|
|
1052
1050
|
if (e.key === "data-table-group") return st;
|
|
1053
|
-
if (["data-table-expand", "data-table-select"].includes(e.key)) return
|
|
1051
|
+
if (["data-table-expand", "data-table-select"].includes(e.key)) return Ea;
|
|
1054
1052
|
}
|
|
1055
1053
|
}
|
|
1056
1054
|
function Ve(e) {
|
|
1057
1055
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1058
1056
|
return e.children ? Math.max(t, ...e.children.map((a) => Ve(a, t + 1))) : t;
|
|
1059
1057
|
}
|
|
1060
|
-
function
|
|
1058
|
+
function Na(e) {
|
|
1061
1059
|
let t = !1;
|
|
1062
|
-
function a(r,
|
|
1063
|
-
let
|
|
1060
|
+
function a(r, i) {
|
|
1061
|
+
let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
|
|
1064
1062
|
if (r)
|
|
1065
|
-
if (
|
|
1063
|
+
if (f !== "none" && (r.fixed = f), r.fixed === !0 && (r.fixed = "start"), r.fixed === i)
|
|
1066
1064
|
if (r.children)
|
|
1067
|
-
if (
|
|
1065
|
+
if (i === "start")
|
|
1068
1066
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1069
|
-
a(r.children[u],
|
|
1067
|
+
a(r.children[u], i, i);
|
|
1070
1068
|
else
|
|
1071
1069
|
for (let u = 0; u < r.children.length; u++)
|
|
1072
|
-
a(r.children[u],
|
|
1070
|
+
a(r.children[u], i, i);
|
|
1073
1071
|
else
|
|
1074
|
-
!t &&
|
|
1072
|
+
!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;
|
|
1075
1073
|
else if (r.children)
|
|
1076
|
-
if (
|
|
1074
|
+
if (i === "start")
|
|
1077
1075
|
for (let u = r.children.length - 1; u >= 0; u--)
|
|
1078
|
-
a(r.children[u],
|
|
1076
|
+
a(r.children[u], i);
|
|
1079
1077
|
else
|
|
1080
1078
|
for (let u = 0; u < r.children.length; u++)
|
|
1081
|
-
a(r.children[u],
|
|
1079
|
+
a(r.children[u], i);
|
|
1082
1080
|
else
|
|
1083
1081
|
t = !1;
|
|
1084
1082
|
}
|
|
@@ -1113,34 +1111,34 @@ function dt(e) {
|
|
|
1113
1111
|
} else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
|
|
1114
1112
|
return t;
|
|
1115
1113
|
}
|
|
1116
|
-
function
|
|
1114
|
+
function Ra(e, t) {
|
|
1117
1115
|
const a = [];
|
|
1118
1116
|
let l = 0;
|
|
1119
1117
|
const n = Aa(e);
|
|
1120
1118
|
for (; n.size() > 0; ) {
|
|
1121
|
-
let
|
|
1122
|
-
const
|
|
1119
|
+
let i = n.count();
|
|
1120
|
+
const f = [];
|
|
1123
1121
|
let u = 1;
|
|
1124
|
-
for (;
|
|
1122
|
+
for (; i > 0; ) {
|
|
1125
1123
|
const {
|
|
1126
1124
|
element: c,
|
|
1127
1125
|
priority: m
|
|
1128
1126
|
} = n.dequeue(), h = t - l - Ve(c);
|
|
1129
|
-
if (
|
|
1127
|
+
if (f.push({
|
|
1130
1128
|
...c,
|
|
1131
1129
|
rowspan: h ?? 1,
|
|
1132
1130
|
colspan: c.children ? Se(c).length : 1
|
|
1133
1131
|
}), c.children)
|
|
1134
1132
|
for (const o of c.children) {
|
|
1135
|
-
const
|
|
1136
|
-
n.enqueue(o, l + h +
|
|
1133
|
+
const s = m % 1 + u / Math.pow(10, l + 2);
|
|
1134
|
+
n.enqueue(o, l + h + s);
|
|
1137
1135
|
}
|
|
1138
|
-
u += 1,
|
|
1136
|
+
u += 1, i -= 1;
|
|
1139
1137
|
}
|
|
1140
|
-
l += 1, a.push(
|
|
1138
|
+
l += 1, a.push(f);
|
|
1141
1139
|
}
|
|
1142
1140
|
return {
|
|
1143
|
-
columns: e.map((
|
|
1141
|
+
columns: e.map((i) => Se(i)).flat(),
|
|
1144
1142
|
headers: a
|
|
1145
1143
|
};
|
|
1146
1144
|
}
|
|
@@ -1148,21 +1146,21 @@ function ct(e) {
|
|
|
1148
1146
|
const t = [];
|
|
1149
1147
|
for (const a of e) {
|
|
1150
1148
|
const l = {
|
|
1151
|
-
...
|
|
1149
|
+
...La(a),
|
|
1152
1150
|
...a
|
|
1153
|
-
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null,
|
|
1151
|
+
}, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, i = {
|
|
1154
1152
|
...l,
|
|
1155
1153
|
key: n,
|
|
1156
1154
|
value: r,
|
|
1157
1155
|
sortable: l.sortable ?? (l.key != null || !!l.sort),
|
|
1158
1156
|
children: l.children ? ct(l.children) : void 0
|
|
1159
1157
|
};
|
|
1160
|
-
t.push(
|
|
1158
|
+
t.push(i);
|
|
1161
1159
|
}
|
|
1162
1160
|
return t;
|
|
1163
1161
|
}
|
|
1164
|
-
function
|
|
1165
|
-
const a = M([]), l = M([]), n = M({}), r = M({}),
|
|
1162
|
+
function $a(e, t) {
|
|
1163
|
+
const a = M([]), l = M([]), n = M({}), r = M({}), i = M({});
|
|
1166
1164
|
Ct(() => {
|
|
1167
1165
|
const c = (e.headers || Object.keys(e.items[0] ?? {}).map((d) => ({
|
|
1168
1166
|
key: d,
|
|
@@ -1177,21 +1175,21 @@ function Ra(e, t) {
|
|
|
1177
1175
|
key: "data-table-expand"
|
|
1178
1176
|
});
|
|
1179
1177
|
const h = ct(c);
|
|
1180
|
-
|
|
1181
|
-
const o = Math.max(...h.map((d) => Ve(d))) + 1,
|
|
1182
|
-
a.value =
|
|
1183
|
-
const b =
|
|
1178
|
+
Na(h);
|
|
1179
|
+
const o = Math.max(...h.map((d) => Ve(d))) + 1, s = Ra(h, o);
|
|
1180
|
+
a.value = s.headers, l.value = s.columns;
|
|
1181
|
+
const b = s.headers.flat(1);
|
|
1184
1182
|
for (const d of b)
|
|
1185
|
-
d.key && (d.sortable && (d.sort && (n.value[d.key] = d.sort), d.sortRaw && (r.value[d.key] = d.sortRaw)), d.filter && (
|
|
1183
|
+
d.key && (d.sortable && (d.sort && (n.value[d.key] = d.sort), d.sortRaw && (r.value[d.key] = d.sortRaw)), d.filter && (i.value[d.key] = d.filter));
|
|
1186
1184
|
});
|
|
1187
|
-
const
|
|
1185
|
+
const f = {
|
|
1188
1186
|
headers: a,
|
|
1189
1187
|
columns: l,
|
|
1190
1188
|
sortFunctions: n,
|
|
1191
1189
|
sortRawFunctions: r,
|
|
1192
|
-
filterFunctions:
|
|
1190
|
+
filterFunctions: i
|
|
1193
1191
|
};
|
|
1194
|
-
return
|
|
1192
|
+
return X(ot, f), f;
|
|
1195
1193
|
}
|
|
1196
1194
|
function ge() {
|
|
1197
1195
|
const e = U(ot);
|
|
@@ -1203,6 +1201,7 @@ const ft = _({
|
|
|
1203
1201
|
disableSort: Boolean,
|
|
1204
1202
|
fixedHeader: Boolean,
|
|
1205
1203
|
multiSort: Boolean,
|
|
1204
|
+
initialSortOrder: String,
|
|
1206
1205
|
sortAscIcon: {
|
|
1207
1206
|
type: O,
|
|
1208
1207
|
default: "$sortAsc"
|
|
@@ -1218,8 +1217,8 @@ const ft = _({
|
|
|
1218
1217
|
sticky: Boolean,
|
|
1219
1218
|
...te(),
|
|
1220
1219
|
...De(),
|
|
1221
|
-
...
|
|
1222
|
-
}, "VDataTableHeaders"),
|
|
1220
|
+
...Xt()
|
|
1221
|
+
}, "VDataTableHeaders"), Ae = $()({
|
|
1223
1222
|
name: "VDataTableHeaders",
|
|
1224
1223
|
props: ft(),
|
|
1225
1224
|
setup(e, t) {
|
|
@@ -1228,12 +1227,12 @@ const ft = _({
|
|
|
1228
1227
|
} = t;
|
|
1229
1228
|
const {
|
|
1230
1229
|
t: l
|
|
1231
|
-
} =
|
|
1230
|
+
} = J(), {
|
|
1232
1231
|
toggleSort: n,
|
|
1233
1232
|
sortBy: r,
|
|
1234
|
-
isSorted:
|
|
1233
|
+
isSorted: i
|
|
1235
1234
|
} = nt(), {
|
|
1236
|
-
someSelected:
|
|
1235
|
+
someSelected: f,
|
|
1237
1236
|
allSelected: u,
|
|
1238
1237
|
selectAll: c,
|
|
1239
1238
|
showSelectAll: m
|
|
@@ -1241,116 +1240,116 @@ const ft = _({
|
|
|
1241
1240
|
columns: h,
|
|
1242
1241
|
headers: o
|
|
1243
1242
|
} = ge(), {
|
|
1244
|
-
loaderClasses:
|
|
1243
|
+
loaderClasses: s
|
|
1245
1244
|
} = Ut(e);
|
|
1246
|
-
function b(x,
|
|
1245
|
+
function b(x, g) {
|
|
1247
1246
|
if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
|
|
1248
|
-
const
|
|
1247
|
+
const w = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
|
|
1249
1248
|
return {
|
|
1250
1249
|
position: "sticky",
|
|
1251
|
-
left:
|
|
1252
|
-
right:
|
|
1253
|
-
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${
|
|
1250
|
+
left: w === "start" ? A(x.fixedOffset) : void 0,
|
|
1251
|
+
right: w === "end" ? A(x.fixedEndOffset) : void 0,
|
|
1252
|
+
top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
|
|
1254
1253
|
};
|
|
1255
1254
|
}
|
|
1256
|
-
function d(x,
|
|
1257
|
-
x.key === "Enter" && !e.disableSort && n(
|
|
1255
|
+
function d(x, g) {
|
|
1256
|
+
x.key === "Enter" && !e.disableSort && n(g, x);
|
|
1258
1257
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const
|
|
1261
|
-
return
|
|
1258
|
+
function v(x) {
|
|
1259
|
+
const g = r.value.find((w) => w.key === x.key);
|
|
1260
|
+
return !g && e.initialSortOrder === "asc" || g?.order === "asc" ? e.sortAscIcon : e.sortDescIcon;
|
|
1262
1261
|
}
|
|
1263
1262
|
const {
|
|
1264
1263
|
backgroundColorClasses: I,
|
|
1265
1264
|
backgroundColorStyles: y
|
|
1266
1265
|
} = ze(() => e.color), {
|
|
1267
|
-
displayClasses:
|
|
1268
|
-
mobile:
|
|
1266
|
+
displayClasses: D,
|
|
1267
|
+
mobile: T
|
|
1269
1268
|
} = fe(e), P = V(() => ({
|
|
1270
1269
|
headers: o.value,
|
|
1271
1270
|
columns: h.value,
|
|
1272
1271
|
toggleSort: n,
|
|
1273
|
-
isSorted:
|
|
1272
|
+
isSorted: i,
|
|
1274
1273
|
sortBy: r.value,
|
|
1275
|
-
someSelected:
|
|
1274
|
+
someSelected: f.value,
|
|
1276
1275
|
allSelected: u.value,
|
|
1277
1276
|
selectAll: c,
|
|
1278
|
-
getSortIcon:
|
|
1279
|
-
})),
|
|
1277
|
+
getSortIcon: v
|
|
1278
|
+
})), E = V(() => ["v-data-table__th", {
|
|
1280
1279
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
1281
|
-
},
|
|
1280
|
+
}, D.value, s.value]), N = (x) => {
|
|
1282
1281
|
let {
|
|
1283
|
-
column:
|
|
1284
|
-
x:
|
|
1285
|
-
y:
|
|
1282
|
+
column: g,
|
|
1283
|
+
x: w,
|
|
1284
|
+
y: F
|
|
1286
1285
|
} = x;
|
|
1287
|
-
const R =
|
|
1288
|
-
return
|
|
1286
|
+
const R = g.key === "data-table-select" || g.key === "data-table-expand", ae = g.key === "data-table-group" && g.width === 0 && !g.title, be = B(e.headerProps ?? {}, g.headerProps ?? {});
|
|
1287
|
+
return k(ee, B({
|
|
1289
1288
|
tag: "th",
|
|
1290
|
-
align:
|
|
1289
|
+
align: g.align,
|
|
1291
1290
|
class: [{
|
|
1292
|
-
"v-data-table__th--sortable":
|
|
1293
|
-
"v-data-table__th--sorted":
|
|
1294
|
-
"v-data-table__th--fixed":
|
|
1295
|
-
}, ...
|
|
1291
|
+
"v-data-table__th--sortable": g.sortable && !e.disableSort,
|
|
1292
|
+
"v-data-table__th--sorted": i(g),
|
|
1293
|
+
"v-data-table__th--fixed": g.fixed
|
|
1294
|
+
}, ...E.value],
|
|
1296
1295
|
style: {
|
|
1297
|
-
width:
|
|
1298
|
-
minWidth:
|
|
1299
|
-
maxWidth:
|
|
1300
|
-
...b(
|
|
1296
|
+
width: A(g.width),
|
|
1297
|
+
minWidth: A(g.minWidth),
|
|
1298
|
+
maxWidth: A(g.maxWidth),
|
|
1299
|
+
...b(g, F)
|
|
1301
1300
|
},
|
|
1302
|
-
colspan:
|
|
1303
|
-
rowspan:
|
|
1304
|
-
fixed:
|
|
1305
|
-
nowrap:
|
|
1306
|
-
lastFixed:
|
|
1307
|
-
firstFixedEnd:
|
|
1301
|
+
colspan: g.colspan,
|
|
1302
|
+
rowspan: g.rowspan,
|
|
1303
|
+
fixed: g.fixed,
|
|
1304
|
+
nowrap: g.nowrap,
|
|
1305
|
+
lastFixed: g.lastFixed,
|
|
1306
|
+
firstFixedEnd: g.firstFixedEnd,
|
|
1308
1307
|
noPadding: R,
|
|
1309
1308
|
empty: ae,
|
|
1310
|
-
tabindex:
|
|
1311
|
-
onClick:
|
|
1312
|
-
onKeydown:
|
|
1309
|
+
tabindex: g.sortable ? 0 : void 0,
|
|
1310
|
+
onClick: g.sortable ? (H) => n(g, H) : void 0,
|
|
1311
|
+
onKeydown: g.sortable ? (H) => d(H, g) : void 0
|
|
1313
1312
|
}, be), {
|
|
1314
1313
|
default: () => {
|
|
1315
|
-
const H = `header.${
|
|
1316
|
-
column:
|
|
1314
|
+
const H = `header.${g.key}`, Q = {
|
|
1315
|
+
column: g,
|
|
1317
1316
|
selectAll: c,
|
|
1318
|
-
isSorted:
|
|
1317
|
+
isSorted: i,
|
|
1319
1318
|
toggleSort: n,
|
|
1320
1319
|
sortBy: r.value,
|
|
1321
|
-
someSelected:
|
|
1320
|
+
someSelected: f.value,
|
|
1322
1321
|
allSelected: u.value,
|
|
1323
|
-
getSortIcon:
|
|
1322
|
+
getSortIcon: v
|
|
1324
1323
|
};
|
|
1325
|
-
return a[H] ? a[H](
|
|
1324
|
+
return a[H] ? a[H](Q) : ae ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(Q) ?? (m.value && k(de, {
|
|
1326
1325
|
color: e.color,
|
|
1327
1326
|
density: e.density,
|
|
1328
1327
|
modelValue: u.value,
|
|
1329
|
-
indeterminate:
|
|
1328
|
+
indeterminate: f.value && !u.value,
|
|
1330
1329
|
"onUpdate:modelValue": c
|
|
1331
1330
|
}, null)) : S("div", {
|
|
1332
1331
|
class: "v-data-table-header__content"
|
|
1333
|
-
}, [S("span", null, [
|
|
1332
|
+
}, [S("span", null, [g.title]), g.sortable && !e.disableSort && k(_e, {
|
|
1334
1333
|
key: "icon",
|
|
1335
1334
|
class: "v-data-table-header__sort-icon",
|
|
1336
|
-
icon: g
|
|
1337
|
-
}, null), e.multiSort &&
|
|
1335
|
+
icon: v(g)
|
|
1336
|
+
}, null), e.multiSort && i(g) && S("div", {
|
|
1338
1337
|
key: "badge",
|
|
1339
1338
|
class: G(["v-data-table-header__sort-badge", ...I.value]),
|
|
1340
1339
|
style: Pe(y.value)
|
|
1341
|
-
}, [r.value.findIndex((Y) => Y.key ===
|
|
1340
|
+
}, [r.value.findIndex((Y) => Y.key === g.key) + 1])]);
|
|
1342
1341
|
}
|
|
1343
1342
|
});
|
|
1344
1343
|
}, p = () => {
|
|
1345
|
-
const x = V(() => h.value.filter((
|
|
1346
|
-
return
|
|
1344
|
+
const x = V(() => h.value.filter((w) => w?.sortable && !e.disableSort)), g = h.value.find((w) => w.key === "data-table-select");
|
|
1345
|
+
return k(ee, B({
|
|
1347
1346
|
tag: "th",
|
|
1348
|
-
class: [...
|
|
1347
|
+
class: [...E.value],
|
|
1349
1348
|
colspan: o.value.length + 1
|
|
1350
1349
|
}, e.headerProps), {
|
|
1351
1350
|
default: () => [S("div", {
|
|
1352
1351
|
class: "v-data-table-header__content"
|
|
1353
|
-
}, [
|
|
1352
|
+
}, [k(qe, {
|
|
1354
1353
|
chips: !0,
|
|
1355
1354
|
color: e.color,
|
|
1356
1355
|
class: "v-data-table__td-sort-select",
|
|
@@ -1360,40 +1359,39 @@ const ft = _({
|
|
|
1360
1359
|
label: l("$vuetify.dataTable.sortBy"),
|
|
1361
1360
|
multiple: e.multiSort,
|
|
1362
1361
|
variant: "underlined",
|
|
1363
|
-
"onClick:clear": () => r.value = []
|
|
1364
|
-
"onClick:append": () => c(!u.value)
|
|
1362
|
+
"onClick:clear": () => r.value = []
|
|
1365
1363
|
}, {
|
|
1366
|
-
append: () =>
|
|
1364
|
+
append: g ? () => k(de, {
|
|
1367
1365
|
color: e.color,
|
|
1368
1366
|
density: "compact",
|
|
1369
1367
|
modelValue: u.value,
|
|
1370
|
-
indeterminate:
|
|
1371
|
-
"onUpdate:modelValue": c
|
|
1372
|
-
}, null),
|
|
1373
|
-
chip: (
|
|
1374
|
-
onClick:
|
|
1375
|
-
onMousedown: (
|
|
1376
|
-
|
|
1368
|
+
indeterminate: f.value && !u.value,
|
|
1369
|
+
"onUpdate:modelValue": () => c(!u.value)
|
|
1370
|
+
}, null) : void 0,
|
|
1371
|
+
chip: (w) => k(aa, {
|
|
1372
|
+
onClick: w.item.raw?.sortable ? () => n(w.item.raw) : void 0,
|
|
1373
|
+
onMousedown: (F) => {
|
|
1374
|
+
F.preventDefault(), F.stopPropagation();
|
|
1377
1375
|
}
|
|
1378
1376
|
}, {
|
|
1379
|
-
default: () => [
|
|
1380
|
-
class: G(["v-data-table__td-sort-icon",
|
|
1381
|
-
icon:
|
|
1377
|
+
default: () => [w.item.title, k(_e, {
|
|
1378
|
+
class: G(["v-data-table__td-sort-icon", i(w.item.raw) && "v-data-table__td-sort-icon-active"]),
|
|
1379
|
+
icon: v(w.item.raw),
|
|
1382
1380
|
size: "small"
|
|
1383
1381
|
}, null)]
|
|
1384
1382
|
})
|
|
1385
1383
|
})])]
|
|
1386
1384
|
});
|
|
1387
1385
|
};
|
|
1388
|
-
K(() =>
|
|
1389
|
-
column:
|
|
1390
|
-
x:
|
|
1391
|
-
y:
|
|
1386
|
+
K(() => T.value ? S("tr", null, [k(p, null, null)]) : S(z, null, [a.headers ? a.headers(P.value) : o.value.map((x, g) => S("tr", null, [x.map((w, F) => k(N, {
|
|
1387
|
+
column: w,
|
|
1388
|
+
x: F,
|
|
1389
|
+
y: g
|
|
1392
1390
|
}, null))])), e.loading && S("tr", {
|
|
1393
1391
|
class: "v-data-table-progress"
|
|
1394
1392
|
}, [S("th", {
|
|
1395
1393
|
colspan: h.value.length
|
|
1396
|
-
}, [
|
|
1394
|
+
}, [k(Qt, {
|
|
1397
1395
|
name: "v-data-table-progress",
|
|
1398
1396
|
absolute: !0,
|
|
1399
1397
|
active: !0,
|
|
@@ -1417,7 +1415,7 @@ const ft = _({
|
|
|
1417
1415
|
default: "$tableGroupExpand"
|
|
1418
1416
|
},
|
|
1419
1417
|
...te()
|
|
1420
|
-
}, "VDataTableGroupHeaderRow"),
|
|
1418
|
+
}, "VDataTableGroupHeaderRow"), Ha = $()({
|
|
1421
1419
|
name: "VDataTableGroupHeaderRow",
|
|
1422
1420
|
props: vt(),
|
|
1423
1421
|
setup(e, t) {
|
|
@@ -1428,13 +1426,13 @@ const ft = _({
|
|
|
1428
1426
|
isGroupOpen: l,
|
|
1429
1427
|
toggleGroup: n,
|
|
1430
1428
|
extractRows: r
|
|
1431
|
-
} =
|
|
1432
|
-
isSelected:
|
|
1433
|
-
isSomeSelected:
|
|
1429
|
+
} = Je(), {
|
|
1430
|
+
isSelected: i,
|
|
1431
|
+
isSomeSelected: f,
|
|
1434
1432
|
select: u
|
|
1435
1433
|
} = ve(), {
|
|
1436
1434
|
columns: c
|
|
1437
|
-
} = ge(), m = V(() => r([e.item])), h =
|
|
1435
|
+
} = ge(), m = V(() => r([e.item])), h = C(() => c.value.length - (c.value.some((o) => o.key === "data-table-select") ? 1 : 0));
|
|
1438
1436
|
return () => S("tr", {
|
|
1439
1437
|
class: "v-data-table-group-header-row",
|
|
1440
1438
|
style: {
|
|
@@ -1442,42 +1440,43 @@ const ft = _({
|
|
|
1442
1440
|
}
|
|
1443
1441
|
}, [c.value.map((o) => {
|
|
1444
1442
|
if (o.key === "data-table-group") {
|
|
1445
|
-
const
|
|
1443
|
+
const s = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
|
|
1446
1444
|
return a["data-table-group"]?.({
|
|
1447
1445
|
item: e.item,
|
|
1448
1446
|
count: m.value.length,
|
|
1449
1447
|
props: {
|
|
1450
|
-
icon:
|
|
1448
|
+
icon: s,
|
|
1451
1449
|
onClick: b
|
|
1452
1450
|
}
|
|
1453
|
-
}) ??
|
|
1451
|
+
}) ?? k(ee, {
|
|
1454
1452
|
class: "v-data-table-group-header-row__column",
|
|
1455
1453
|
colspan: h.value
|
|
1456
1454
|
}, {
|
|
1457
|
-
default: () => [
|
|
1455
|
+
default: () => [k(W, {
|
|
1458
1456
|
size: "small",
|
|
1459
1457
|
variant: "text",
|
|
1460
|
-
icon:
|
|
1458
|
+
icon: s,
|
|
1461
1459
|
onClick: b
|
|
1462
1460
|
}, null), S("span", null, [e.item.value]), S("span", null, [Te("("), m.value.length, Te(")")])]
|
|
1463
1461
|
});
|
|
1464
1462
|
} else if (o.key === "data-table-select") {
|
|
1465
|
-
const
|
|
1463
|
+
const s = m.value.filter((I) => I.selectable), b = s.length > 0 && i(s), d = f(s) && !b, v = (I) => u(s, I);
|
|
1466
1464
|
return a["data-table-select"]?.({
|
|
1467
1465
|
props: {
|
|
1468
|
-
modelValue:
|
|
1469
|
-
indeterminate:
|
|
1470
|
-
"onUpdate:modelValue":
|
|
1466
|
+
modelValue: b,
|
|
1467
|
+
indeterminate: d,
|
|
1468
|
+
"onUpdate:modelValue": v
|
|
1471
1469
|
}
|
|
1472
|
-
}) ??
|
|
1470
|
+
}) ?? k(ee, {
|
|
1473
1471
|
class: "v-data-table__td--select-row",
|
|
1474
1472
|
noPadding: !0
|
|
1475
1473
|
}, {
|
|
1476
|
-
default: () => [
|
|
1474
|
+
default: () => [k(de, {
|
|
1477
1475
|
density: e.density,
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1476
|
+
disabled: s.length === 0,
|
|
1477
|
+
modelValue: b,
|
|
1478
|
+
indeterminate: d,
|
|
1479
|
+
"onUpdate:modelValue": v
|
|
1481
1480
|
}, null)]
|
|
1482
1481
|
});
|
|
1483
1482
|
}
|
|
@@ -1502,7 +1501,7 @@ const ft = _({
|
|
|
1502
1501
|
onDblclick: ye(),
|
|
1503
1502
|
...te(),
|
|
1504
1503
|
...De()
|
|
1505
|
-
}, "VDataTableRow"),
|
|
1504
|
+
}, "VDataTableRow"), ja = $()({
|
|
1506
1505
|
name: "VDataTableRow",
|
|
1507
1506
|
props: gt(),
|
|
1508
1507
|
setup(e, t) {
|
|
@@ -1514,16 +1513,16 @@ const ft = _({
|
|
|
1514
1513
|
mobile: n
|
|
1515
1514
|
} = fe(e, "v-data-table__tr"), {
|
|
1516
1515
|
isSelected: r,
|
|
1517
|
-
toggleSelect:
|
|
1518
|
-
someSelected:
|
|
1516
|
+
toggleSelect: i,
|
|
1517
|
+
someSelected: f,
|
|
1519
1518
|
allSelected: u,
|
|
1520
1519
|
selectAll: c
|
|
1521
1520
|
} = ve(), {
|
|
1522
1521
|
isExpanded: m,
|
|
1523
1522
|
toggleExpand: h
|
|
1524
|
-
} =
|
|
1523
|
+
} = Qe(), {
|
|
1525
1524
|
toggleSort: o,
|
|
1526
|
-
sortBy:
|
|
1525
|
+
sortBy: s,
|
|
1527
1526
|
isSorted: b
|
|
1528
1527
|
} = nt(), {
|
|
1529
1528
|
columns: d
|
|
@@ -1535,24 +1534,24 @@ const ft = _({
|
|
|
1535
1534
|
onClick: e.onClick,
|
|
1536
1535
|
onContextmenu: e.onContextmenu,
|
|
1537
1536
|
onDblclick: e.onDblclick
|
|
1538
|
-
}, [e.item && d.value.map((
|
|
1539
|
-
const y = e.item,
|
|
1537
|
+
}, [e.item && d.value.map((v, I) => {
|
|
1538
|
+
const y = e.item, D = `item.${v.key}`, T = `header.${v.key}`, P = {
|
|
1540
1539
|
index: e.index,
|
|
1541
1540
|
item: y.raw,
|
|
1542
1541
|
internalItem: y,
|
|
1543
|
-
value: ue(y.columns,
|
|
1544
|
-
column:
|
|
1542
|
+
value: ue(y.columns, v.key),
|
|
1543
|
+
column: v,
|
|
1545
1544
|
isSelected: r,
|
|
1546
|
-
toggleSelect:
|
|
1545
|
+
toggleSelect: i,
|
|
1547
1546
|
isExpanded: m,
|
|
1548
1547
|
toggleExpand: h
|
|
1549
|
-
},
|
|
1550
|
-
column:
|
|
1548
|
+
}, E = {
|
|
1549
|
+
column: v,
|
|
1551
1550
|
selectAll: c,
|
|
1552
1551
|
isSorted: b,
|
|
1553
1552
|
toggleSort: o,
|
|
1554
|
-
sortBy:
|
|
1555
|
-
someSelected:
|
|
1553
|
+
sortBy: s.value,
|
|
1554
|
+
someSelected: f.value,
|
|
1556
1555
|
allSelected: u.value,
|
|
1557
1556
|
getSortIcon: () => ""
|
|
1558
1557
|
}, N = typeof e.cellProps == "function" ? e.cellProps({
|
|
@@ -1560,49 +1559,49 @@ const ft = _({
|
|
|
1560
1559
|
item: P.item,
|
|
1561
1560
|
internalItem: P.internalItem,
|
|
1562
1561
|
value: P.value,
|
|
1563
|
-
column:
|
|
1564
|
-
}) : e.cellProps, p = typeof
|
|
1562
|
+
column: v
|
|
1563
|
+
}) : e.cellProps, p = typeof v.cellProps == "function" ? v.cellProps({
|
|
1565
1564
|
index: P.index,
|
|
1566
1565
|
item: P.item,
|
|
1567
1566
|
internalItem: P.internalItem,
|
|
1568
1567
|
value: P.value
|
|
1569
|
-
}) :
|
|
1570
|
-
return
|
|
1571
|
-
align:
|
|
1572
|
-
indent:
|
|
1568
|
+
}) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand", g = v.key === "data-table-group" && v.width === 0 && !v.title;
|
|
1569
|
+
return k(ee, B({
|
|
1570
|
+
align: v.align,
|
|
1571
|
+
indent: v.indent,
|
|
1573
1572
|
class: {
|
|
1574
|
-
"v-data-table__td--expanded-row":
|
|
1575
|
-
"v-data-table__td--select-row":
|
|
1573
|
+
"v-data-table__td--expanded-row": v.key === "data-table-expand",
|
|
1574
|
+
"v-data-table__td--select-row": v.key === "data-table-select"
|
|
1576
1575
|
},
|
|
1577
|
-
fixed:
|
|
1578
|
-
fixedOffset:
|
|
1579
|
-
fixedEndOffset:
|
|
1580
|
-
lastFixed:
|
|
1581
|
-
firstFixedEnd:
|
|
1582
|
-
maxWidth: n.value ? void 0 :
|
|
1576
|
+
fixed: v.fixed,
|
|
1577
|
+
fixedOffset: v.fixedOffset,
|
|
1578
|
+
fixedEndOffset: v.fixedEndOffset,
|
|
1579
|
+
lastFixed: v.lastFixed,
|
|
1580
|
+
firstFixedEnd: v.firstFixedEnd,
|
|
1581
|
+
maxWidth: n.value ? void 0 : v.maxWidth,
|
|
1583
1582
|
noPadding: x,
|
|
1584
|
-
empty:
|
|
1585
|
-
nowrap:
|
|
1586
|
-
width: n.value ? void 0 :
|
|
1583
|
+
empty: g,
|
|
1584
|
+
nowrap: v.nowrap,
|
|
1585
|
+
width: n.value ? void 0 : v.width
|
|
1587
1586
|
}, N, p), {
|
|
1588
1587
|
default: () => {
|
|
1589
|
-
if (
|
|
1588
|
+
if (v.key === "data-table-select")
|
|
1590
1589
|
return a["item.data-table-select"]?.({
|
|
1591
1590
|
...P,
|
|
1592
1591
|
props: {
|
|
1593
1592
|
color: e.color,
|
|
1594
1593
|
disabled: !y.selectable,
|
|
1595
1594
|
modelValue: r([y]),
|
|
1596
|
-
onClick: ne(() =>
|
|
1595
|
+
onClick: ne(() => i(y), ["stop"])
|
|
1597
1596
|
}
|
|
1598
|
-
}) ??
|
|
1597
|
+
}) ?? k(de, {
|
|
1599
1598
|
color: e.color,
|
|
1600
1599
|
disabled: !y.selectable,
|
|
1601
1600
|
density: e.density,
|
|
1602
1601
|
modelValue: r([y]),
|
|
1603
|
-
onClick: ne((
|
|
1602
|
+
onClick: ne((F) => i(y, e.index, F), ["stop"])
|
|
1604
1603
|
}, null);
|
|
1605
|
-
if (
|
|
1604
|
+
if (v.key === "data-table-expand")
|
|
1606
1605
|
return a["item.data-table-expand"]?.({
|
|
1607
1606
|
...P,
|
|
1608
1607
|
props: {
|
|
@@ -1611,19 +1610,19 @@ const ft = _({
|
|
|
1611
1610
|
variant: "text",
|
|
1612
1611
|
onClick: ne(() => h(y), ["stop"])
|
|
1613
1612
|
}
|
|
1614
|
-
}) ??
|
|
1613
|
+
}) ?? k(W, {
|
|
1615
1614
|
icon: m(y) ? e.collapseIcon : e.expandIcon,
|
|
1616
1615
|
size: "small",
|
|
1617
1616
|
variant: "text",
|
|
1618
1617
|
onClick: ne(() => h(y), ["stop"])
|
|
1619
1618
|
}, null);
|
|
1620
|
-
if (a[
|
|
1621
|
-
const
|
|
1619
|
+
if (a[D] && !n.value) return a[D](P);
|
|
1620
|
+
const w = Bt(P.value);
|
|
1622
1621
|
return n.value ? S(z, null, [S("div", {
|
|
1623
1622
|
class: "v-data-table__td-title"
|
|
1624
|
-
}, [a[
|
|
1623
|
+
}, [a[T]?.(E) ?? v.title]), S("div", {
|
|
1625
1624
|
class: "v-data-table__td-value"
|
|
1626
|
-
}, [a[
|
|
1625
|
+
}, [a[D]?.(P) ?? w])]) : w;
|
|
1627
1626
|
}
|
|
1628
1627
|
});
|
|
1629
1628
|
})]));
|
|
@@ -1662,18 +1661,18 @@ const ft = _({
|
|
|
1662
1661
|
columns: n
|
|
1663
1662
|
} = ge(), {
|
|
1664
1663
|
expandOnClick: r,
|
|
1665
|
-
toggleExpand:
|
|
1666
|
-
isExpanded:
|
|
1667
|
-
} =
|
|
1664
|
+
toggleExpand: i,
|
|
1665
|
+
isExpanded: f
|
|
1666
|
+
} = Qe(), {
|
|
1668
1667
|
isSelected: u,
|
|
1669
1668
|
toggleSelect: c
|
|
1670
1669
|
} = ve(), {
|
|
1671
1670
|
toggleGroup: m,
|
|
1672
1671
|
isGroupOpen: h
|
|
1673
|
-
} =
|
|
1672
|
+
} = Je(), {
|
|
1674
1673
|
t: o
|
|
1675
|
-
} =
|
|
1676
|
-
mobile:
|
|
1674
|
+
} = J(), {
|
|
1675
|
+
mobile: s
|
|
1677
1676
|
} = fe(e);
|
|
1678
1677
|
return K(() => {
|
|
1679
1678
|
const b = xe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
|
|
@@ -1687,40 +1686,40 @@ const ft = _({
|
|
|
1687
1686
|
key: "no-data"
|
|
1688
1687
|
}, [S("td", {
|
|
1689
1688
|
colspan: n.value.length
|
|
1690
|
-
}, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d,
|
|
1689
|
+
}, [l["no-data"]?.() ?? o(e.noDataText)])]) : S(z, null, [e.items.map((d, v) => {
|
|
1691
1690
|
if (d.type === "group") {
|
|
1692
|
-
const
|
|
1693
|
-
index:
|
|
1691
|
+
const D = {
|
|
1692
|
+
index: v,
|
|
1694
1693
|
item: d,
|
|
1695
1694
|
columns: n.value,
|
|
1696
|
-
isExpanded:
|
|
1697
|
-
toggleExpand:
|
|
1695
|
+
isExpanded: f,
|
|
1696
|
+
toggleExpand: i,
|
|
1698
1697
|
isSelected: u,
|
|
1699
1698
|
toggleSelect: c,
|
|
1700
1699
|
toggleGroup: m,
|
|
1701
1700
|
isGroupOpen: h
|
|
1702
1701
|
};
|
|
1703
|
-
return l["group-header"] ? l["group-header"](
|
|
1702
|
+
return l["group-header"] ? l["group-header"](D) : k(Ha, B({
|
|
1704
1703
|
key: `group-header_${d.id}`,
|
|
1705
1704
|
item: d
|
|
1706
|
-
}, Be(a, ":groupHeader", () =>
|
|
1705
|
+
}, Be(a, ":groupHeader", () => D), b), l);
|
|
1707
1706
|
}
|
|
1708
1707
|
if (d.type === "group-summary") {
|
|
1709
|
-
const
|
|
1710
|
-
index:
|
|
1708
|
+
const D = {
|
|
1709
|
+
index: v,
|
|
1711
1710
|
item: d,
|
|
1712
1711
|
columns: n.value,
|
|
1713
1712
|
toggleGroup: m
|
|
1714
1713
|
};
|
|
1715
|
-
return l["group-summary"]?.(
|
|
1714
|
+
return l["group-summary"]?.(D) ?? "";
|
|
1716
1715
|
}
|
|
1717
1716
|
const I = {
|
|
1718
|
-
index:
|
|
1717
|
+
index: v,
|
|
1719
1718
|
item: d.raw,
|
|
1720
1719
|
internalItem: d,
|
|
1721
1720
|
columns: n.value,
|
|
1722
|
-
isExpanded:
|
|
1723
|
-
toggleExpand:
|
|
1721
|
+
isExpanded: f,
|
|
1722
|
+
toggleExpand: i,
|
|
1724
1723
|
isSelected: u,
|
|
1725
1724
|
toggleSelect: c
|
|
1726
1725
|
}, y = {
|
|
@@ -1728,16 +1727,16 @@ const ft = _({
|
|
|
1728
1727
|
props: B({
|
|
1729
1728
|
key: `item_${d.key ?? d.index}`,
|
|
1730
1729
|
onClick: r.value ? () => {
|
|
1731
|
-
|
|
1730
|
+
i(d);
|
|
1732
1731
|
} : void 0,
|
|
1733
|
-
index:
|
|
1732
|
+
index: v,
|
|
1734
1733
|
item: d,
|
|
1735
1734
|
color: e.color,
|
|
1736
1735
|
cellProps: e.cellProps,
|
|
1737
1736
|
collapseIcon: e.collapseIcon,
|
|
1738
1737
|
expandIcon: e.expandIcon,
|
|
1739
1738
|
density: e.density,
|
|
1740
|
-
mobile:
|
|
1739
|
+
mobile: s.value
|
|
1741
1740
|
}, Be(a, ":row", () => I), typeof e.rowProps == "function" ? e.rowProps({
|
|
1742
1741
|
item: I.item,
|
|
1743
1742
|
index: I.index,
|
|
@@ -1746,7 +1745,7 @@ const ft = _({
|
|
|
1746
1745
|
};
|
|
1747
1746
|
return S(z, {
|
|
1748
1747
|
key: y.props.key
|
|
1749
|
-
}, [l.item ? l.item(y) :
|
|
1748
|
+
}, [l.item ? l.item(y) : k(ja, y.props, l), f(d) && l["expanded-row"]?.(I)]);
|
|
1750
1749
|
})]);
|
|
1751
1750
|
}), {};
|
|
1752
1751
|
}
|
|
@@ -1776,8 +1775,8 @@ const ft = _({
|
|
|
1776
1775
|
themeClasses: n
|
|
1777
1776
|
} = we(e), {
|
|
1778
1777
|
densityClasses: r
|
|
1779
|
-
} =
|
|
1780
|
-
return K(() =>
|
|
1778
|
+
} = Jt(e);
|
|
1779
|
+
return K(() => k(e.tag, {
|
|
1781
1780
|
class: G(["v-table", {
|
|
1782
1781
|
"v-table--fixed-height": !!e.height,
|
|
1783
1782
|
"v-table--fixed-header": e.fixedHeader,
|
|
@@ -1793,12 +1792,12 @@ const ft = _({
|
|
|
1793
1792
|
default: () => [a.top?.(), a.default ? S("div", {
|
|
1794
1793
|
class: "v-table__wrapper",
|
|
1795
1794
|
style: {
|
|
1796
|
-
height:
|
|
1795
|
+
height: A(e.height)
|
|
1797
1796
|
}
|
|
1798
1797
|
}, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
|
|
1799
1798
|
})), {};
|
|
1800
1799
|
}
|
|
1801
|
-
}),
|
|
1800
|
+
}), Ma = _({
|
|
1802
1801
|
items: {
|
|
1803
1802
|
type: Array,
|
|
1804
1803
|
default: () => []
|
|
@@ -1815,49 +1814,49 @@ const ft = _({
|
|
|
1815
1814
|
cellProps: [Object, Function],
|
|
1816
1815
|
returnObject: Boolean
|
|
1817
1816
|
}, "DataTable-items");
|
|
1818
|
-
function
|
|
1819
|
-
const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0),
|
|
1817
|
+
function Ga(e, t, a, l) {
|
|
1818
|
+
const n = e.returnObject ? t : se(t, e.itemValue), r = se(t, e.itemSelectable, !0), i = l.reduce((f, u) => (u.key != null && (f[u.key] = se(t, u.value)), f), {});
|
|
1820
1819
|
return {
|
|
1821
1820
|
type: "item",
|
|
1822
1821
|
key: e.returnObject ? se(t, e.itemValue) : n,
|
|
1823
1822
|
index: a,
|
|
1824
1823
|
value: n,
|
|
1825
1824
|
selectable: r,
|
|
1826
|
-
columns:
|
|
1825
|
+
columns: i,
|
|
1827
1826
|
raw: t
|
|
1828
1827
|
};
|
|
1829
1828
|
}
|
|
1830
|
-
function
|
|
1831
|
-
return t.map((l, n) =>
|
|
1829
|
+
function Ka(e, t, a) {
|
|
1830
|
+
return t.map((l, n) => Ga(e, l, n, a));
|
|
1832
1831
|
}
|
|
1833
|
-
function
|
|
1832
|
+
function Wa(e, t) {
|
|
1834
1833
|
return {
|
|
1835
|
-
items: V(() =>
|
|
1834
|
+
items: V(() => Ka(e, e.items, t.value))
|
|
1836
1835
|
};
|
|
1837
1836
|
}
|
|
1838
|
-
const
|
|
1837
|
+
const za = _({
|
|
1839
1838
|
...mt(),
|
|
1840
1839
|
hideDefaultBody: Boolean,
|
|
1841
1840
|
hideDefaultFooter: Boolean,
|
|
1842
1841
|
hideDefaultHeader: Boolean,
|
|
1843
1842
|
width: [String, Number],
|
|
1844
1843
|
search: String,
|
|
1845
|
-
...
|
|
1846
|
-
...
|
|
1847
|
-
...
|
|
1848
|
-
...
|
|
1849
|
-
...
|
|
1850
|
-
...
|
|
1851
|
-
...Ie(ft(), ["multiSort"]),
|
|
1844
|
+
...ia(),
|
|
1845
|
+
...da(),
|
|
1846
|
+
...Oa(),
|
|
1847
|
+
...Ma(),
|
|
1848
|
+
...wa(),
|
|
1849
|
+
...Ia(),
|
|
1850
|
+
...Ie(ft(), ["multiSort", "initialSortOrder"]),
|
|
1852
1851
|
...bt()
|
|
1853
|
-
}, "DataTable"),
|
|
1854
|
-
...
|
|
1855
|
-
...
|
|
1852
|
+
}, "DataTable"), qa = _({
|
|
1853
|
+
...ba(),
|
|
1854
|
+
...za(),
|
|
1856
1855
|
...na(),
|
|
1857
1856
|
...rt()
|
|
1858
|
-
}, "VDataTable"),
|
|
1857
|
+
}, "VDataTable"), al = $()({
|
|
1859
1858
|
name: "VDataTable",
|
|
1860
|
-
props:
|
|
1859
|
+
props: qa(),
|
|
1861
1860
|
emits: {
|
|
1862
1861
|
"update:modelValue": (e) => !0,
|
|
1863
1862
|
"update:page": (e) => !0,
|
|
@@ -1875,54 +1874,54 @@ const Wa = _({
|
|
|
1875
1874
|
} = t;
|
|
1876
1875
|
const {
|
|
1877
1876
|
groupBy: n
|
|
1878
|
-
} =
|
|
1877
|
+
} = ca(e), {
|
|
1879
1878
|
initialSortOrder: r,
|
|
1880
|
-
sortBy:
|
|
1881
|
-
multiSort:
|
|
1879
|
+
sortBy: i,
|
|
1880
|
+
multiSort: f,
|
|
1882
1881
|
mustSort: u
|
|
1883
|
-
} =
|
|
1882
|
+
} = Da(e), {
|
|
1884
1883
|
page: c,
|
|
1885
1884
|
itemsPerPage: m
|
|
1886
|
-
} =
|
|
1885
|
+
} = ha(e), {
|
|
1887
1886
|
disableSort: h
|
|
1888
1887
|
} = Ot(e), {
|
|
1889
1888
|
columns: o,
|
|
1890
|
-
headers:
|
|
1889
|
+
headers: s,
|
|
1891
1890
|
sortFunctions: b,
|
|
1892
1891
|
sortRawFunctions: d,
|
|
1893
|
-
filterFunctions:
|
|
1894
|
-
} =
|
|
1892
|
+
filterFunctions: v
|
|
1893
|
+
} = $a(e, {
|
|
1895
1894
|
groupBy: n,
|
|
1896
|
-
showSelect:
|
|
1897
|
-
showExpand:
|
|
1895
|
+
showSelect: C(() => e.showSelect),
|
|
1896
|
+
showExpand: C(() => e.showExpand)
|
|
1898
1897
|
}), {
|
|
1899
1898
|
items: I
|
|
1900
|
-
} =
|
|
1901
|
-
filteredItems:
|
|
1899
|
+
} = Wa(e, o), y = C(() => e.search), {
|
|
1900
|
+
filteredItems: D
|
|
1902
1901
|
} = la(e, I, y, {
|
|
1903
1902
|
transform: (j) => j.columns,
|
|
1904
|
-
customKeyFilter:
|
|
1903
|
+
customKeyFilter: v
|
|
1905
1904
|
}), {
|
|
1906
|
-
toggleSort:
|
|
1907
|
-
} =
|
|
1905
|
+
toggleSort: T
|
|
1906
|
+
} = Fa({
|
|
1908
1907
|
initialSortOrder: r,
|
|
1909
|
-
sortBy:
|
|
1910
|
-
multiSort:
|
|
1908
|
+
sortBy: i,
|
|
1909
|
+
multiSort: f,
|
|
1911
1910
|
mustSort: u,
|
|
1912
1911
|
page: c
|
|
1913
1912
|
}), {
|
|
1914
1913
|
sortByWithGroups: P,
|
|
1915
|
-
opened:
|
|
1914
|
+
opened: E,
|
|
1916
1915
|
extractRows: N,
|
|
1917
1916
|
isGroupOpen: p,
|
|
1918
1917
|
toggleGroup: x
|
|
1919
|
-
} =
|
|
1918
|
+
} = fa({
|
|
1920
1919
|
groupBy: n,
|
|
1921
|
-
sortBy:
|
|
1920
|
+
sortBy: i,
|
|
1922
1921
|
disableSort: h
|
|
1923
1922
|
}), {
|
|
1924
|
-
sortedItems:
|
|
1925
|
-
} =
|
|
1923
|
+
sortedItems: g
|
|
1924
|
+
} = Ta(e, D, P, {
|
|
1926
1925
|
transform: (j) => ({
|
|
1927
1926
|
...j.raw,
|
|
1928
1927
|
...j.columns
|
|
@@ -1930,57 +1929,57 @@ const Wa = _({
|
|
|
1930
1929
|
sortFunctions: b,
|
|
1931
1930
|
sortRawFunctions: d
|
|
1932
1931
|
}), {
|
|
1933
|
-
flatItems:
|
|
1934
|
-
} =
|
|
1932
|
+
flatItems: w
|
|
1933
|
+
} = ga(g, n, E, () => !!l["group-summary"]), F = V(() => w.value.length), {
|
|
1935
1934
|
startIndex: R,
|
|
1936
1935
|
stopIndex: ae,
|
|
1937
1936
|
pageCount: be,
|
|
1938
1937
|
setItemsPerPage: H
|
|
1939
|
-
} =
|
|
1938
|
+
} = ya({
|
|
1940
1939
|
page: c,
|
|
1941
1940
|
itemsPerPage: m,
|
|
1942
|
-
itemsLength:
|
|
1941
|
+
itemsLength: F
|
|
1943
1942
|
}), {
|
|
1944
|
-
paginatedItems:
|
|
1945
|
-
} =
|
|
1946
|
-
items:
|
|
1943
|
+
paginatedItems: Q
|
|
1944
|
+
} = xa({
|
|
1945
|
+
items: w,
|
|
1947
1946
|
startIndex: R,
|
|
1948
1947
|
stopIndex: ae,
|
|
1949
1948
|
itemsPerPage: m
|
|
1950
|
-
}), Y = V(() => N(
|
|
1949
|
+
}), Y = V(() => N(Q.value)), {
|
|
1951
1950
|
isSelected: ht,
|
|
1952
1951
|
select: yt,
|
|
1953
1952
|
selectAll: pt,
|
|
1954
1953
|
toggleSelect: xt,
|
|
1955
1954
|
someSelected: St,
|
|
1956
1955
|
allSelected: Pt
|
|
1957
|
-
} =
|
|
1956
|
+
} = ka(e, {
|
|
1958
1957
|
allItems: I,
|
|
1959
1958
|
currentPage: Y
|
|
1960
1959
|
}), {
|
|
1961
1960
|
isExpanded: wt,
|
|
1962
1961
|
toggleExpand: kt
|
|
1963
|
-
} =
|
|
1964
|
-
|
|
1962
|
+
} = ua(e);
|
|
1963
|
+
ma({
|
|
1965
1964
|
page: c,
|
|
1966
1965
|
itemsPerPage: m,
|
|
1967
|
-
sortBy:
|
|
1966
|
+
sortBy: i,
|
|
1968
1967
|
groupBy: n,
|
|
1969
1968
|
search: y
|
|
1970
1969
|
}), pe({
|
|
1971
1970
|
VDataTableRows: {
|
|
1972
|
-
hideNoData:
|
|
1973
|
-
noDataText:
|
|
1974
|
-
loading:
|
|
1975
|
-
loadingText:
|
|
1971
|
+
hideNoData: C(() => e.hideNoData),
|
|
1972
|
+
noDataText: C(() => e.noDataText),
|
|
1973
|
+
loading: C(() => e.loading),
|
|
1974
|
+
loadingText: C(() => e.loadingText)
|
|
1976
1975
|
}
|
|
1977
1976
|
});
|
|
1978
1977
|
const L = V(() => ({
|
|
1979
1978
|
page: c.value,
|
|
1980
1979
|
itemsPerPage: m.value,
|
|
1981
|
-
sortBy:
|
|
1980
|
+
sortBy: i.value,
|
|
1982
1981
|
pageCount: be.value,
|
|
1983
|
-
toggleSort:
|
|
1982
|
+
toggleSort: T,
|
|
1984
1983
|
setItemsPerPage: H,
|
|
1985
1984
|
someSelected: St.value,
|
|
1986
1985
|
allSelected: Pt.value,
|
|
@@ -1994,13 +1993,13 @@ const Wa = _({
|
|
|
1994
1993
|
toggleGroup: x,
|
|
1995
1994
|
items: Y.value.map((j) => j.raw),
|
|
1996
1995
|
internalItems: Y.value,
|
|
1997
|
-
groupedItems:
|
|
1996
|
+
groupedItems: Q.value,
|
|
1998
1997
|
columns: o.value,
|
|
1999
|
-
headers:
|
|
1998
|
+
headers: s.value
|
|
2000
1999
|
}));
|
|
2001
2000
|
return K(() => {
|
|
2002
|
-
const j =
|
|
2003
|
-
return
|
|
2001
|
+
const j = Ee.filterProps(e), It = Ae.filterProps(Ie(e, ["multiSort"])), Dt = Le.filterProps(e), Vt = Ne.filterProps(e);
|
|
2002
|
+
return k(Ne, B({
|
|
2004
2003
|
class: ["v-data-table", {
|
|
2005
2004
|
"v-data-table--show-select": e.showSelect,
|
|
2006
2005
|
"v-data-table--loading": e.loading
|
|
@@ -2012,18 +2011,18 @@ const Wa = _({
|
|
|
2012
2011
|
top: () => l.top?.(L.value),
|
|
2013
2012
|
default: () => l.default ? l.default(L.value) : S(z, null, [l.colgroup?.(L.value), !e.hideDefaultHeader && S("thead", {
|
|
2014
2013
|
key: "thead"
|
|
2015
|
-
}, [
|
|
2014
|
+
}, [k(Ae, B(It, {
|
|
2016
2015
|
multiSort: !!e.multiSort
|
|
2017
|
-
}), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) :
|
|
2018
|
-
items:
|
|
2016
|
+
}), l)]), l.thead?.(L.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(L.value), l.body ? l.body(L.value) : k(Le, B(a, Dt, {
|
|
2017
|
+
items: Q.value
|
|
2019
2018
|
}), l), l["body.append"]?.(L.value)]), l.tbody?.(L.value), l.tfoot?.(L.value)]),
|
|
2020
|
-
bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [
|
|
2019
|
+
bottom: () => l.bottom ? l.bottom(L.value) : !e.hideDefaultFooter && S(z, null, [k(Yt, null, null), k(Ee, j, {
|
|
2021
2020
|
prepend: l["footer.prepend"]
|
|
2022
2021
|
})])
|
|
2023
2022
|
});
|
|
2024
2023
|
}), {};
|
|
2025
2024
|
}
|
|
2026
|
-
}),
|
|
2025
|
+
}), Ua = {
|
|
2027
2026
|
actions: "button@2",
|
|
2028
2027
|
article: "heading, paragraph",
|
|
2029
2028
|
avatar: "avatar",
|
|
@@ -2056,7 +2055,7 @@ const Wa = _({
|
|
|
2056
2055
|
"table-tfoot": "text@2, avatar@2",
|
|
2057
2056
|
text: "text"
|
|
2058
2057
|
};
|
|
2059
|
-
function
|
|
2058
|
+
function Qa(e) {
|
|
2060
2059
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2061
2060
|
return S("div", {
|
|
2062
2061
|
class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
|
|
@@ -2071,18 +2070,18 @@ function Re(e) {
|
|
|
2071
2070
|
function me(e) {
|
|
2072
2071
|
let t = [];
|
|
2073
2072
|
if (!e) return t;
|
|
2074
|
-
const a =
|
|
2073
|
+
const a = Ua[e];
|
|
2075
2074
|
if (e !== a) {
|
|
2076
2075
|
if (e.includes(",")) return $e(e);
|
|
2077
2076
|
if (e.includes("@")) return Re(e);
|
|
2078
2077
|
a.includes(",") ? t = $e(a) : a.includes("@") ? t = Re(a) : a && t.push(me(a));
|
|
2079
2078
|
}
|
|
2080
|
-
return [
|
|
2079
|
+
return [Qa(e, t)];
|
|
2081
2080
|
}
|
|
2082
2081
|
function $e(e) {
|
|
2083
2082
|
return e.replace(/\s/g, "").split(",").map(me);
|
|
2084
2083
|
}
|
|
2085
|
-
const
|
|
2084
|
+
const Xa = _({
|
|
2086
2085
|
boilerplate: Boolean,
|
|
2087
2086
|
color: String,
|
|
2088
2087
|
loading: Boolean,
|
|
@@ -2097,10 +2096,10 @@ const Ja = _({
|
|
|
2097
2096
|
...ta(),
|
|
2098
2097
|
...Ke(),
|
|
2099
2098
|
...ke()
|
|
2100
|
-
}, "VSkeletonLoader"),
|
|
2099
|
+
}, "VSkeletonLoader"), ll = $()({
|
|
2101
2100
|
name: "VSkeletonLoader",
|
|
2102
2101
|
inheritAttrs: !1,
|
|
2103
|
-
props:
|
|
2102
|
+
props: Xa(),
|
|
2104
2103
|
setup(e, t) {
|
|
2105
2104
|
let {
|
|
2106
2105
|
attrs: a,
|
|
@@ -2110,14 +2109,14 @@ const Ja = _({
|
|
|
2110
2109
|
backgroundColorClasses: n,
|
|
2111
2110
|
backgroundColorStyles: r
|
|
2112
2111
|
} = ze(() => e.color), {
|
|
2113
|
-
dimensionStyles:
|
|
2112
|
+
dimensionStyles: i
|
|
2114
2113
|
} = Zt(e), {
|
|
2115
|
-
elevationClasses:
|
|
2114
|
+
elevationClasses: f
|
|
2116
2115
|
} = ea(e), {
|
|
2117
2116
|
themeClasses: u
|
|
2118
2117
|
} = we(e), {
|
|
2119
2118
|
t: c
|
|
2120
|
-
} =
|
|
2119
|
+
} = J(), m = V(() => me(Z(e.type).join(",")));
|
|
2121
2120
|
return K(() => {
|
|
2122
2121
|
const h = !l.default || e.loading, o = e.boilerplate || !h ? {} : {
|
|
2123
2122
|
ariaLive: "polite",
|
|
@@ -2127,13 +2126,13 @@ const Ja = _({
|
|
|
2127
2126
|
return h ? S("div", B({
|
|
2128
2127
|
class: ["v-skeleton-loader", {
|
|
2129
2128
|
"v-skeleton-loader--boilerplate": e.boilerplate
|
|
2130
|
-
}, u.value, n.value,
|
|
2131
|
-
style: [r.value,
|
|
2129
|
+
}, u.value, n.value, f.value],
|
|
2130
|
+
style: [r.value, i.value]
|
|
2132
2131
|
}, o, a), [m.value]) : S(z, null, [l.default?.()]);
|
|
2133
2132
|
}), {};
|
|
2134
2133
|
}
|
|
2135
2134
|
});
|
|
2136
|
-
function
|
|
2135
|
+
function Ja(e, t, a) {
|
|
2137
2136
|
switch (a) {
|
|
2138
2137
|
case ">":
|
|
2139
2138
|
return e > t;
|
|
@@ -2149,65 +2148,64 @@ function Qa(e, t, a) {
|
|
|
2149
2148
|
throw new Error(`Invalid operator: ${a}`);
|
|
2150
2149
|
}
|
|
2151
2150
|
}
|
|
2152
|
-
function
|
|
2151
|
+
function nl() {
|
|
2153
2152
|
const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = U("table_props"), l = M(), n = V(() => {
|
|
2154
2153
|
let o = l.value;
|
|
2155
2154
|
if (!o) return o;
|
|
2156
|
-
const
|
|
2157
|
-
return !
|
|
2158
|
-
const { value: d, comparison:
|
|
2155
|
+
const s = u(e.value, t.value);
|
|
2156
|
+
return !s || Object.keys(s).length === 0 || Object.keys(s).forEach((b) => {
|
|
2157
|
+
const { value: d, comparison: v = "=" } = s[b];
|
|
2159
2158
|
if (!d) return;
|
|
2160
2159
|
const I = h(a.headers, b);
|
|
2161
2160
|
I && (o = o.filter((y) => {
|
|
2162
|
-
const
|
|
2163
|
-
return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value:
|
|
2161
|
+
const D = m(y, b, I);
|
|
2162
|
+
return I.advancedFilter?.customFilterFn && typeof I.advancedFilter.customFilterFn == "function" ? I.advancedFilter.customFilterFn({ value: D, filterValue: d, filterComparison: v, header: I, item: y }) : f(D, d, v, I);
|
|
2164
2163
|
}));
|
|
2165
2164
|
}), o;
|
|
2166
2165
|
});
|
|
2167
|
-
function r(o,
|
|
2168
|
-
const b = Array.isArray(
|
|
2169
|
-
return d &&
|
|
2166
|
+
function r(o, s) {
|
|
2167
|
+
const b = Array.isArray(s) ? s : [s], d = ie(b[0]).startOf("day").isSameOrBefore(ie(o).format()), v = ie(b[b.length - 1]).endOf("day").isSameOrAfter(ie(o).format());
|
|
2168
|
+
return d && v;
|
|
2170
2169
|
}
|
|
2171
|
-
function
|
|
2172
|
-
return Array.isArray(
|
|
2170
|
+
function i(o, s) {
|
|
2171
|
+
return Array.isArray(s) ? s.map((b) => b.toString().toLowerCase()).includes(o.toString().toLowerCase()) : o?.toString().toLowerCase().includes(s.toString().toLowerCase());
|
|
2173
2172
|
}
|
|
2174
|
-
function
|
|
2173
|
+
function f(o, s, b, d) {
|
|
2175
2174
|
switch (d.advancedFilter?.component) {
|
|
2176
2175
|
case "datepicker":
|
|
2177
|
-
return r(o,
|
|
2176
|
+
return r(o, s);
|
|
2178
2177
|
case "comparison":
|
|
2179
|
-
return
|
|
2178
|
+
return Ja(Number(o), Number(s), b);
|
|
2180
2179
|
default:
|
|
2181
|
-
return
|
|
2180
|
+
return i(o, s);
|
|
2182
2181
|
}
|
|
2183
2182
|
}
|
|
2184
|
-
function u(o,
|
|
2185
|
-
const b = Object.values(
|
|
2183
|
+
function u(o, s) {
|
|
2184
|
+
const b = Object.values(s).filter((d) => d.args).map((d) => d.args).reduce((d, v) => ({ ...d, ...v }), {});
|
|
2186
2185
|
return { ...o, ...b };
|
|
2187
2186
|
}
|
|
2188
|
-
function c(o,
|
|
2189
|
-
return
|
|
2187
|
+
function c(o, s) {
|
|
2188
|
+
return s.split(".").reduce((b, d) => b && b[d], o);
|
|
2190
2189
|
}
|
|
2191
|
-
function m(o,
|
|
2192
|
-
const d = oa(o);
|
|
2193
|
-
return
|
|
2194
|
-
value: o[
|
|
2190
|
+
function m(o, s, b) {
|
|
2191
|
+
const d = oa(o), v = b.advancedFilter?.filterReturnValue;
|
|
2192
|
+
return typeof v == "function" && (d[s] = v({
|
|
2193
|
+
value: o[s],
|
|
2195
2194
|
item: o
|
|
2196
|
-
})), c(d,
|
|
2195
|
+
})), c(d, s);
|
|
2197
2196
|
}
|
|
2198
|
-
function h(o,
|
|
2199
|
-
return o.find((b) => (b.advancedFilter?.key ?? b.key) ===
|
|
2197
|
+
function h(o, s) {
|
|
2198
|
+
return o.find((b) => (b.advancedFilter?.key ?? b.key) === s);
|
|
2200
2199
|
}
|
|
2201
2200
|
return ce(
|
|
2202
2201
|
() => a.data,
|
|
2203
|
-
(o,
|
|
2204
|
-
|
|
2205
|
-
JSON.stringify(b) !== JSON.stringify(d) && (l.value = o);
|
|
2202
|
+
(o, s) => {
|
|
2203
|
+
sa(o ?? [], s ?? []) || (l.value = o);
|
|
2206
2204
|
},
|
|
2207
2205
|
{ deep: !0, immediate: !0 }
|
|
2208
2206
|
), { tableData: l, filteredData: n };
|
|
2209
2207
|
}
|
|
2210
|
-
const
|
|
2208
|
+
const rl = Et({
|
|
2211
2209
|
props: {
|
|
2212
2210
|
render: {
|
|
2213
2211
|
type: [Function, Object, String, Number, Date],
|
|
@@ -2224,31 +2222,31 @@ const nl = At({
|
|
|
2224
2222
|
},
|
|
2225
2223
|
setup: (e) => () => {
|
|
2226
2224
|
const t = { ...e.props, ...e.params };
|
|
2227
|
-
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ?
|
|
2225
|
+
return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? At(e.render, t) : e.render;
|
|
2228
2226
|
}
|
|
2229
2227
|
});
|
|
2230
2228
|
export {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2229
|
+
rl as C,
|
|
2230
|
+
al as V,
|
|
2231
|
+
ll as a,
|
|
2232
|
+
Da as b,
|
|
2233
|
+
ca as c,
|
|
2234
|
+
ha as d,
|
|
2235
|
+
$a as e,
|
|
2236
|
+
Wa as f,
|
|
2237
|
+
fa as g,
|
|
2238
|
+
ya as h,
|
|
2239
|
+
ga as i,
|
|
2240
|
+
ka as j,
|
|
2241
|
+
ua as k,
|
|
2242
|
+
ma as l,
|
|
2243
|
+
Ee as m,
|
|
2244
|
+
Ae as n,
|
|
2247
2245
|
Le as o,
|
|
2248
|
-
|
|
2246
|
+
Fa as p,
|
|
2249
2247
|
Ne as q,
|
|
2250
2248
|
rt as r,
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2249
|
+
za as s,
|
|
2250
|
+
ba as t,
|
|
2251
|
+
nl as u
|
|
2254
2252
|
};
|