@prefabs.tech/vue3-tanstack-table 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PrefabsTechVue3TanstackTable.es.js +882 -873
- package/dist/PrefabsTechVue3TanstackTable.umd.js +4 -4
- package/dist/src/components/FilesTable/Index.vue.d.ts.map +1 -1
- package/dist/src/components/Table.vue.d.ts.map +1 -1
- package/dist/src/components/TableBody.vue.d.ts.map +1 -1
- package/dist/src/components/TableDataActions.vue.d.ts.map +1 -1
- package/dist/src/utils.d.ts +2 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Q, h as
|
|
2
|
-
import { DebouncedInput as
|
|
3
|
-
import { SelectInput as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as Q, h as Y, isRef as Jt, shallowRef as Zt, watch as Ct, ref as K, watchEffect as en, unref as C, computed as B, createElementBlock as y, openBlock as S, createCommentVNode as D, createElementVNode as A, toDisplayString as N, Fragment as H, renderList as z, createVNode as M, createBlock as E, withCtx as G, normalizeClass as ce, normalizeStyle as oe, mergeProps as te, resolveDynamicComponent as yt, createTextVNode as tn, renderSlot as J, createSlots as Rt } from "vue";
|
|
2
|
+
import { DebouncedInput as Ft, ButtonElement as Z, formatDateTime as nn, formatDate as on, Tooltip as rn, Dropdown as ln, ConfirmationModal as sn, Popup as an, SortableList as un, getStorage as dn, LoadingIcon as cn, FilesList as gn } from "@prefabs.tech/vue3-ui";
|
|
3
|
+
import { SelectInput as fn, DatePicker as pn, NumberInput as et, Checkbox as ke } from "@prefabs.tech/vue3-form";
|
|
4
|
+
const bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Re = (e, o, t, n = "") => {
|
|
5
5
|
const i = e.split(":");
|
|
6
6
|
if (e.slice(0, 1) === "@") {
|
|
7
7
|
if (i.length < 2 || i.length > 3)
|
|
@@ -39,7 +39,7 @@ const Pt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Re = (e, o, t, n = "") => {
|
|
|
39
39
|
return null;
|
|
40
40
|
}, Se = (e, o) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
41
41
|
// Check name: cannot be empty
|
|
42
|
-
((o && e.prefix === "" || e.prefix) && e.name) : !1,
|
|
42
|
+
((o && e.prefix === "" || e.prefix) && e.name) : !1, Pt = Object.freeze(
|
|
43
43
|
{
|
|
44
44
|
left: 0,
|
|
45
45
|
top: 0,
|
|
@@ -51,26 +51,26 @@ const Pt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Re = (e, o, t, n = "") => {
|
|
|
51
51
|
vFlip: !1,
|
|
52
52
|
hFlip: !1
|
|
53
53
|
}), Fe = Object.freeze({
|
|
54
|
-
|
|
54
|
+
...Pt,
|
|
55
55
|
...ye
|
|
56
|
-
}),
|
|
56
|
+
}), Te = Object.freeze({
|
|
57
57
|
...Fe,
|
|
58
58
|
body: "",
|
|
59
59
|
hidden: !1
|
|
60
60
|
});
|
|
61
|
-
function
|
|
61
|
+
function mn(e, o) {
|
|
62
62
|
const t = {};
|
|
63
63
|
!e.hFlip != !o.hFlip && (t.hFlip = !0), !e.vFlip != !o.vFlip && (t.vFlip = !0);
|
|
64
64
|
const n = ((e.rotate || 0) + (o.rotate || 0)) % 4;
|
|
65
65
|
return n && (t.rotate = n), t;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
69
|
-
for (const n in
|
|
67
|
+
function tt(e, o) {
|
|
68
|
+
const t = mn(e, o);
|
|
69
|
+
for (const n in Te)
|
|
70
70
|
n in ye ? n in e && !(n in t) && (t[n] = ye[n]) : n in o ? t[n] = o[n] : n in e && (t[n] = e[n]);
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function hn(e, o) {
|
|
74
74
|
const t = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
75
75
|
function r(l) {
|
|
76
76
|
if (t[l])
|
|
@@ -84,36 +84,36 @@ function mn(e, o) {
|
|
|
84
84
|
}
|
|
85
85
|
return Object.keys(t).concat(Object.keys(n)).forEach(r), i;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function vn(e, o, t) {
|
|
88
88
|
const n = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
89
89
|
let r = {};
|
|
90
90
|
function l(s) {
|
|
91
|
-
r =
|
|
91
|
+
r = tt(
|
|
92
92
|
n[s] || i[s],
|
|
93
93
|
r
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
return l(o), t.forEach(l),
|
|
96
|
+
return l(o), t.forEach(l), tt(e, r);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function $t(e, o) {
|
|
99
99
|
const t = [];
|
|
100
100
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
101
101
|
return t;
|
|
102
102
|
e.not_found instanceof Array && e.not_found.forEach((i) => {
|
|
103
103
|
o(i, null), t.push(i);
|
|
104
104
|
});
|
|
105
|
-
const n =
|
|
105
|
+
const n = hn(e);
|
|
106
106
|
for (const i in n) {
|
|
107
107
|
const r = n[i];
|
|
108
|
-
r && (o(i,
|
|
108
|
+
r && (o(i, vn(e, i, r)), t.push(i));
|
|
109
109
|
}
|
|
110
110
|
return t;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Sn = {
|
|
113
113
|
provider: "",
|
|
114
114
|
aliases: {},
|
|
115
115
|
not_found: {},
|
|
116
|
-
|
|
116
|
+
...Pt
|
|
117
117
|
};
|
|
118
118
|
function Pe(e, o) {
|
|
119
119
|
for (const t in o)
|
|
@@ -121,11 +121,11 @@ function Pe(e, o) {
|
|
|
121
121
|
return !1;
|
|
122
122
|
return !0;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function It(e) {
|
|
125
125
|
if (typeof e != "object" || e === null)
|
|
126
126
|
return null;
|
|
127
127
|
const o = e;
|
|
128
|
-
if (typeof o.prefix != "string" || !e.icons || typeof e.icons != "object" || !Pe(e,
|
|
128
|
+
if (typeof o.prefix != "string" || !e.icons || typeof e.icons != "object" || !Pe(e, Sn))
|
|
129
129
|
return null;
|
|
130
130
|
const t = o.icons;
|
|
131
131
|
for (const i in t) {
|
|
@@ -136,7 +136,7 @@ function xt(e) {
|
|
|
136
136
|
typeof r.body != "string" || // Check other props
|
|
137
137
|
!Pe(
|
|
138
138
|
r,
|
|
139
|
-
|
|
139
|
+
Te
|
|
140
140
|
)
|
|
141
141
|
)
|
|
142
142
|
return null;
|
|
@@ -150,15 +150,15 @@ function xt(e) {
|
|
|
150
150
|
typeof l != "string" || !t[l] && !n[l] || // Check other props
|
|
151
151
|
!Pe(
|
|
152
152
|
r,
|
|
153
|
-
|
|
153
|
+
Te
|
|
154
154
|
)
|
|
155
155
|
)
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
158
|
return o;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
160
|
+
const nt = /* @__PURE__ */ Object.create(null);
|
|
161
|
+
function wn(e, o) {
|
|
162
162
|
return {
|
|
163
163
|
provider: e,
|
|
164
164
|
prefix: o,
|
|
@@ -167,15 +167,15 @@ function Sn(e, o) {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
function ie(e, o) {
|
|
170
|
-
const t =
|
|
171
|
-
return t[o] || (t[o] =
|
|
170
|
+
const t = nt[e] || (nt[e] = /* @__PURE__ */ Object.create(null));
|
|
171
|
+
return t[o] || (t[o] = wn(e, o));
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
173
|
+
function xt(e, o) {
|
|
174
|
+
return It(o) ? $t(o, (t, n) => {
|
|
175
175
|
n ? e.icons[t] = n : e.missing.add(t);
|
|
176
176
|
}) : [];
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Cn(e, o, t) {
|
|
179
179
|
try {
|
|
180
180
|
if (typeof t.body == "string")
|
|
181
181
|
return e.icons[o] = { ...t }, !0;
|
|
@@ -184,30 +184,30 @@ function wn(e, o, t) {
|
|
|
184
184
|
return !1;
|
|
185
185
|
}
|
|
186
186
|
let ge = !1;
|
|
187
|
-
function
|
|
187
|
+
function At(e) {
|
|
188
188
|
return typeof e == "boolean" && (ge = e), ge;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function yn(e) {
|
|
191
191
|
const o = typeof e == "string" ? Re(e, !0, ge) : e;
|
|
192
192
|
if (o) {
|
|
193
193
|
const t = ie(o.provider, o.prefix), n = o.name;
|
|
194
194
|
return t.icons[n] || (t.missing.has(n) ? null : void 0);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Rn(e, o) {
|
|
198
198
|
const t = Re(e, !0, ge);
|
|
199
199
|
if (!t)
|
|
200
200
|
return !1;
|
|
201
201
|
const n = ie(t.provider, t.prefix);
|
|
202
|
-
return o ?
|
|
202
|
+
return o ? Cn(n, t.name, o) : (n.missing.add(t.name), !0);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Fn(e, o) {
|
|
205
205
|
if (typeof e != "object")
|
|
206
206
|
return !1;
|
|
207
207
|
if (typeof o != "string" && (o = e.provider || ""), ge && !o && !e.prefix) {
|
|
208
208
|
let i = !1;
|
|
209
|
-
return
|
|
210
|
-
|
|
209
|
+
return It(e) && (e.prefix = "", $t(e, (r, l) => {
|
|
210
|
+
Rn(r, l) && (i = !0);
|
|
211
211
|
})), i;
|
|
212
212
|
}
|
|
213
213
|
const t = e.prefix;
|
|
@@ -217,29 +217,29 @@ function Rn(e, o) {
|
|
|
217
217
|
}))
|
|
218
218
|
return !1;
|
|
219
219
|
const n = ie(o, t);
|
|
220
|
-
return !!
|
|
220
|
+
return !!xt(n, e);
|
|
221
221
|
}
|
|
222
222
|
const Dt = Object.freeze({
|
|
223
223
|
width: null,
|
|
224
224
|
height: null
|
|
225
|
-
}),
|
|
225
|
+
}), Vt = Object.freeze({
|
|
226
226
|
// Dimensions
|
|
227
227
|
...Dt,
|
|
228
228
|
// Transformations
|
|
229
229
|
...ye
|
|
230
|
-
}),
|
|
231
|
-
function
|
|
230
|
+
}), bn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Pn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
231
|
+
function ot(e, o, t) {
|
|
232
232
|
if (o === 1)
|
|
233
233
|
return e;
|
|
234
234
|
if (t = t || 100, typeof e == "number")
|
|
235
235
|
return Math.ceil(e * o * t) / t;
|
|
236
236
|
if (typeof e != "string")
|
|
237
237
|
return e;
|
|
238
|
-
const n = e.split(
|
|
238
|
+
const n = e.split(bn);
|
|
239
239
|
if (n === null || !n.length)
|
|
240
240
|
return e;
|
|
241
241
|
const i = [];
|
|
242
|
-
let r = n.shift(), l =
|
|
242
|
+
let r = n.shift(), l = Pn.test(r);
|
|
243
243
|
for (; ; ) {
|
|
244
244
|
if (l) {
|
|
245
245
|
const s = parseFloat(r);
|
|
@@ -251,7 +251,7 @@ function it(e, o, t) {
|
|
|
251
251
|
l = !l;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function $n(e, o = "defs") {
|
|
255
255
|
let t = "";
|
|
256
256
|
const n = e.indexOf("<" + o);
|
|
257
257
|
for (; n >= 0; ) {
|
|
@@ -268,20 +268,20 @@ function Pn(e, o = "defs") {
|
|
|
268
268
|
content: e
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function In(e, o) {
|
|
272
272
|
return e ? "<defs>" + e + "</defs>" + o : o;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const n =
|
|
276
|
-
return
|
|
274
|
+
function xn(e, o, t) {
|
|
275
|
+
const n = $n(e);
|
|
276
|
+
return In(n.defs, o + n.content + t);
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
function
|
|
278
|
+
const An = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
279
|
+
function Dn(e, o) {
|
|
280
280
|
const t = {
|
|
281
281
|
...Fe,
|
|
282
282
|
...e
|
|
283
283
|
}, n = {
|
|
284
|
-
...
|
|
284
|
+
...Vt,
|
|
285
285
|
...o
|
|
286
286
|
}, i = {
|
|
287
287
|
left: t.left,
|
|
@@ -291,11 +291,11 @@ function An(e, o) {
|
|
|
291
291
|
};
|
|
292
292
|
let r = t.body;
|
|
293
293
|
[t, n].forEach((m) => {
|
|
294
|
-
const h = [], R = m.hFlip,
|
|
294
|
+
const h = [], R = m.hFlip, $ = m.vFlip;
|
|
295
295
|
let P = m.rotate;
|
|
296
|
-
R ?
|
|
296
|
+
R ? $ ? P += 2 : (h.push(
|
|
297
297
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
|
298
|
-
), h.push("scale(-1 1)"), i.top = i.left = 0) :
|
|
298
|
+
), h.push("scale(-1 1)"), i.top = i.left = 0) : $ && (h.push(
|
|
299
299
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
|
300
300
|
), h.push("scale(1 -1)"), i.top = i.left = 0);
|
|
301
301
|
let _;
|
|
@@ -316,29 +316,29 @@ function An(e, o) {
|
|
|
316
316
|
);
|
|
317
317
|
break;
|
|
318
318
|
}
|
|
319
|
-
P % 2 === 1 && (i.left !== i.top && (_ = i.left, i.left = i.top, i.top = _), i.width !== i.height && (_ = i.width, i.width = i.height, i.height = _)), h.length && (r =
|
|
319
|
+
P % 2 === 1 && (i.left !== i.top && (_ = i.left, i.left = i.top, i.top = _), i.width !== i.height && (_ = i.width, i.width = i.height, i.height = _)), h.length && (r = xn(
|
|
320
320
|
r,
|
|
321
321
|
'<g transform="' + h.join(" ") + '">',
|
|
322
322
|
"</g>"
|
|
323
323
|
));
|
|
324
324
|
});
|
|
325
325
|
const l = n.width, s = n.height, a = i.width, u = i.height;
|
|
326
|
-
let
|
|
327
|
-
l === null ? (f = s === null ? "1em" : s === "auto" ? u : s,
|
|
328
|
-
const
|
|
329
|
-
|
|
326
|
+
let g, f;
|
|
327
|
+
l === null ? (f = s === null ? "1em" : s === "auto" ? u : s, g = ot(f, a / u)) : (g = l === "auto" ? a : l, f = s === null ? ot(g, u / a) : s === "auto" ? u : s);
|
|
328
|
+
const c = {}, d = (m, h) => {
|
|
329
|
+
An(h) || (c[m] = h.toString());
|
|
330
330
|
};
|
|
331
|
-
d("width",
|
|
331
|
+
d("width", g), d("height", f);
|
|
332
332
|
const p = [i.left, i.top, a, u];
|
|
333
|
-
return
|
|
334
|
-
attributes:
|
|
333
|
+
return c.viewBox = p.join(" "), {
|
|
334
|
+
attributes: c,
|
|
335
335
|
viewBox: p,
|
|
336
336
|
body: r
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
const Vn = /\sid="(\S+)"/g,
|
|
340
|
-
let
|
|
341
|
-
function
|
|
339
|
+
const Vn = /\sid="(\S+)"/g, _n = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
340
|
+
let Mn = 0;
|
|
341
|
+
function En(e, o = _n) {
|
|
342
342
|
const t = [];
|
|
343
343
|
let n;
|
|
344
344
|
for (; n = Vn.exec(e); )
|
|
@@ -347,7 +347,7 @@ function Mn(e, o = Dn) {
|
|
|
347
347
|
return e;
|
|
348
348
|
const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
349
349
|
return t.forEach((r) => {
|
|
350
|
-
const l = typeof o == "function" ? o(r) : o + (
|
|
350
|
+
const l = typeof o == "function" ? o(r) : o + (Mn++).toString(), s = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
351
351
|
e = e.replace(
|
|
352
352
|
// Allowed characters before id: [#;"]
|
|
353
353
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -356,14 +356,14 @@ function Mn(e, o = Dn) {
|
|
|
356
356
|
);
|
|
357
357
|
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
|
358
358
|
}
|
|
359
|
-
const
|
|
360
|
-
function
|
|
361
|
-
|
|
359
|
+
const He = /* @__PURE__ */ Object.create(null);
|
|
360
|
+
function Ln(e, o) {
|
|
361
|
+
He[e] = o;
|
|
362
362
|
}
|
|
363
363
|
function Oe(e) {
|
|
364
|
-
return
|
|
364
|
+
return He[e] || He[""];
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ue(e) {
|
|
367
367
|
let o;
|
|
368
368
|
if (typeof e.resources == "string")
|
|
369
369
|
o = [e.resources];
|
|
@@ -388,23 +388,23 @@ function We(e) {
|
|
|
388
388
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
const
|
|
391
|
+
const We = /* @__PURE__ */ Object.create(null), re = [
|
|
392
392
|
"https://api.simplesvg.com",
|
|
393
393
|
"https://api.unisvg.com"
|
|
394
394
|
], we = [];
|
|
395
395
|
for (; re.length > 0; )
|
|
396
396
|
re.length === 1 || Math.random() > 0.5 ? we.push(re.shift()) : we.push(re.pop());
|
|
397
|
-
|
|
397
|
+
We[""] = Ue({
|
|
398
398
|
resources: ["https://api.iconify.design"].concat(we)
|
|
399
399
|
});
|
|
400
|
-
function
|
|
401
|
-
const t =
|
|
402
|
-
return t === null ? !1 : (
|
|
400
|
+
function kn(e, o) {
|
|
401
|
+
const t = Ue(o);
|
|
402
|
+
return t === null ? !1 : (We[e] = t, !0);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return
|
|
404
|
+
function Qe(e) {
|
|
405
|
+
return We[e];
|
|
406
406
|
}
|
|
407
|
-
const
|
|
407
|
+
const Tn = () => {
|
|
408
408
|
let e;
|
|
409
409
|
try {
|
|
410
410
|
if (e = fetch, typeof e == "function")
|
|
@@ -412,9 +412,9 @@ const kn = () => {
|
|
|
412
412
|
} catch {
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
let
|
|
416
|
-
function
|
|
417
|
-
const t =
|
|
415
|
+
let it = Tn();
|
|
416
|
+
function Hn(e, o) {
|
|
417
|
+
const t = Qe(e);
|
|
418
418
|
if (!t)
|
|
419
419
|
return 0;
|
|
420
420
|
let n;
|
|
@@ -430,11 +430,11 @@ function Tn(e, o) {
|
|
|
430
430
|
}
|
|
431
431
|
return n;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function On(e) {
|
|
434
434
|
return e === 404;
|
|
435
435
|
}
|
|
436
436
|
const Bn = (e, o, t) => {
|
|
437
|
-
const n = [], i =
|
|
437
|
+
const n = [], i = Hn(e, o), r = "icons";
|
|
438
438
|
let l = {
|
|
439
439
|
type: r,
|
|
440
440
|
provider: e,
|
|
@@ -450,20 +450,20 @@ const Bn = (e, o, t) => {
|
|
|
450
450
|
}, s = a.length), l.icons.push(a);
|
|
451
451
|
}), n.push(l), n;
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function Gn(e) {
|
|
454
454
|
if (typeof e == "string") {
|
|
455
|
-
const o =
|
|
455
|
+
const o = Qe(e);
|
|
456
456
|
if (o)
|
|
457
457
|
return o.path;
|
|
458
458
|
}
|
|
459
459
|
return "/";
|
|
460
460
|
}
|
|
461
|
-
const
|
|
462
|
-
if (!
|
|
461
|
+
const zn = (e, o, t) => {
|
|
462
|
+
if (!it) {
|
|
463
463
|
t("abort", 424);
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
|
-
let n =
|
|
466
|
+
let n = Gn(o.provider);
|
|
467
467
|
switch (o.type) {
|
|
468
468
|
case "icons": {
|
|
469
469
|
const r = o.prefix, s = o.icons.join(","), a = new URLSearchParams({
|
|
@@ -482,11 +482,11 @@ const Gn = (e, o, t) => {
|
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
484
484
|
let i = 503;
|
|
485
|
-
|
|
485
|
+
it(e + n).then((r) => {
|
|
486
486
|
const l = r.status;
|
|
487
487
|
if (l !== 200) {
|
|
488
488
|
setTimeout(() => {
|
|
489
|
-
t(
|
|
489
|
+
t(On(l) ? "abort" : "next", l);
|
|
490
490
|
});
|
|
491
491
|
return;
|
|
492
492
|
}
|
|
@@ -504,11 +504,11 @@ const Gn = (e, o, t) => {
|
|
|
504
504
|
}).catch(() => {
|
|
505
505
|
t("next", i);
|
|
506
506
|
});
|
|
507
|
-
},
|
|
507
|
+
}, Nn = {
|
|
508
508
|
prepare: Bn,
|
|
509
|
-
send:
|
|
509
|
+
send: zn
|
|
510
510
|
};
|
|
511
|
-
function
|
|
511
|
+
function jn(e) {
|
|
512
512
|
const o = {
|
|
513
513
|
loaded: [],
|
|
514
514
|
missing: [],
|
|
@@ -525,23 +525,23 @@ function Nn(e) {
|
|
|
525
525
|
return;
|
|
526
526
|
n = i;
|
|
527
527
|
const r = i.provider, l = i.prefix, s = i.name, a = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), u = a[l] || (a[l] = ie(r, l));
|
|
528
|
-
let
|
|
529
|
-
s in u.icons ?
|
|
528
|
+
let g;
|
|
529
|
+
s in u.icons ? g = o.loaded : l === "" || u.missing.has(s) ? g = o.missing : g = o.pending;
|
|
530
530
|
const f = {
|
|
531
531
|
provider: r,
|
|
532
532
|
prefix: l,
|
|
533
533
|
name: s
|
|
534
534
|
};
|
|
535
|
-
|
|
535
|
+
g.push(f);
|
|
536
536
|
}), o;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function _t(e, o) {
|
|
539
539
|
e.forEach((t) => {
|
|
540
540
|
const n = t.loaderCallbacks;
|
|
541
541
|
n && (t.loaderCallbacks = n.filter((i) => i.id !== o));
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function qn(e) {
|
|
545
545
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
546
546
|
e.pendingCallbacksFlag = !1;
|
|
547
547
|
const o = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -570,7 +570,7 @@ function jn(e) {
|
|
|
570
570
|
else
|
|
571
571
|
return t = !0, !0;
|
|
572
572
|
return !1;
|
|
573
|
-
}), l.pending.length !== s && (t ||
|
|
573
|
+
}), l.pending.length !== s && (t || _t([e], r.id), r.callback(
|
|
574
574
|
l.loaded.slice(0),
|
|
575
575
|
l.missing.slice(0),
|
|
576
576
|
l.pending.slice(0),
|
|
@@ -579,9 +579,9 @@ function jn(e) {
|
|
|
579
579
|
});
|
|
580
580
|
}));
|
|
581
581
|
}
|
|
582
|
-
let
|
|
583
|
-
function
|
|
584
|
-
const n =
|
|
582
|
+
let Kn = 0;
|
|
583
|
+
function Un(e, o, t) {
|
|
584
|
+
const n = Kn++, i = _t.bind(null, t, n);
|
|
585
585
|
if (!o.pending.length)
|
|
586
586
|
return i;
|
|
587
587
|
const r = {
|
|
@@ -594,14 +594,14 @@ function Kn(e, o, t) {
|
|
|
594
594
|
(l.loaderCallbacks || (l.loaderCallbacks = [])).push(r);
|
|
595
595
|
}), i;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Wn(e, o = !0, t = !1) {
|
|
598
598
|
const n = [];
|
|
599
599
|
return e.forEach((i) => {
|
|
600
600
|
const r = typeof i == "string" ? Re(i, o, t) : i;
|
|
601
601
|
r && n.push(r);
|
|
602
602
|
}), n;
|
|
603
603
|
}
|
|
604
|
-
var
|
|
604
|
+
var Qn = {
|
|
605
605
|
resources: [],
|
|
606
606
|
index: 0,
|
|
607
607
|
timeout: 2e3,
|
|
@@ -609,31 +609,31 @@ var Wn = {
|
|
|
609
609
|
random: !1,
|
|
610
610
|
dataAfterTimeout: !1
|
|
611
611
|
};
|
|
612
|
-
function
|
|
612
|
+
function Xn(e, o, t, n) {
|
|
613
613
|
const i = e.resources.length, r = e.random ? Math.floor(Math.random() * i) : e.index;
|
|
614
614
|
let l;
|
|
615
615
|
if (e.random) {
|
|
616
616
|
let w = e.resources.slice(0);
|
|
617
617
|
for (l = []; w.length > 1; ) {
|
|
618
|
-
const
|
|
619
|
-
l.push(w[
|
|
618
|
+
const I = Math.floor(Math.random() * w.length);
|
|
619
|
+
l.push(w[I]), w = w.slice(0, I).concat(w.slice(I + 1));
|
|
620
620
|
}
|
|
621
621
|
l = l.concat(w);
|
|
622
622
|
} else
|
|
623
623
|
l = e.resources.slice(r).concat(e.resources.slice(0, r));
|
|
624
624
|
const s = Date.now();
|
|
625
|
-
let a = "pending", u = 0,
|
|
625
|
+
let a = "pending", u = 0, g, f = null, c = [], d = [];
|
|
626
626
|
typeof n == "function" && d.push(n);
|
|
627
627
|
function p() {
|
|
628
628
|
f && (clearTimeout(f), f = null);
|
|
629
629
|
}
|
|
630
630
|
function m() {
|
|
631
|
-
a === "pending" && (a = "aborted"), p(),
|
|
631
|
+
a === "pending" && (a = "aborted"), p(), c.forEach((w) => {
|
|
632
632
|
w.status === "pending" && (w.status = "aborted");
|
|
633
|
-
}),
|
|
633
|
+
}), c = [];
|
|
634
634
|
}
|
|
635
|
-
function h(w,
|
|
636
|
-
|
|
635
|
+
function h(w, I) {
|
|
636
|
+
I && (d = []), typeof w == "function" && d.push(w);
|
|
637
637
|
}
|
|
638
638
|
function R() {
|
|
639
639
|
return {
|
|
@@ -641,24 +641,24 @@ function Qn(e, o, t, n) {
|
|
|
641
641
|
payload: o,
|
|
642
642
|
status: a,
|
|
643
643
|
queriesSent: u,
|
|
644
|
-
queriesPending:
|
|
644
|
+
queriesPending: c.length,
|
|
645
645
|
subscribe: h,
|
|
646
646
|
abort: m
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function $() {
|
|
650
650
|
a = "failed", d.forEach((w) => {
|
|
651
|
-
w(void 0,
|
|
651
|
+
w(void 0, g);
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
function P() {
|
|
655
|
-
|
|
655
|
+
c.forEach((w) => {
|
|
656
656
|
w.status === "pending" && (w.status = "aborted");
|
|
657
|
-
}),
|
|
657
|
+
}), c = [];
|
|
658
658
|
}
|
|
659
|
-
function _(w,
|
|
660
|
-
const L =
|
|
661
|
-
switch (
|
|
659
|
+
function _(w, I, V) {
|
|
660
|
+
const L = I !== "success";
|
|
661
|
+
switch (c = c.filter((k) => k !== w), a) {
|
|
662
662
|
case "pending":
|
|
663
663
|
break;
|
|
664
664
|
case "failed":
|
|
@@ -668,12 +668,12 @@ function Qn(e, o, t, n) {
|
|
|
668
668
|
default:
|
|
669
669
|
return;
|
|
670
670
|
}
|
|
671
|
-
if (
|
|
672
|
-
|
|
671
|
+
if (I === "abort") {
|
|
672
|
+
g = V, $();
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
if (L) {
|
|
676
|
-
|
|
676
|
+
g = V, c.length || (l.length ? v() : $());
|
|
677
677
|
return;
|
|
678
678
|
}
|
|
679
679
|
if (p(), P(), !e.random) {
|
|
@@ -681,7 +681,7 @@ function Qn(e, o, t, n) {
|
|
|
681
681
|
k !== -1 && k !== e.index && (e.index = k);
|
|
682
682
|
}
|
|
683
683
|
a = "completed", d.forEach((k) => {
|
|
684
|
-
k(
|
|
684
|
+
k(V);
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
function v() {
|
|
@@ -690,29 +690,29 @@ function Qn(e, o, t, n) {
|
|
|
690
690
|
p();
|
|
691
691
|
const w = l.shift();
|
|
692
692
|
if (w === void 0) {
|
|
693
|
-
if (
|
|
693
|
+
if (c.length) {
|
|
694
694
|
f = setTimeout(() => {
|
|
695
|
-
p(), a === "pending" && (P(),
|
|
695
|
+
p(), a === "pending" && (P(), $());
|
|
696
696
|
}, e.timeout);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
|
|
699
|
+
$();
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
const
|
|
702
|
+
const I = {
|
|
703
703
|
status: "pending",
|
|
704
704
|
resource: w,
|
|
705
|
-
callback: (
|
|
706
|
-
_(
|
|
705
|
+
callback: (V, L) => {
|
|
706
|
+
_(I, V, L);
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
|
|
709
|
+
c.push(I), u++, f = setTimeout(v, e.rotate), t(w, o, I.callback);
|
|
710
710
|
}
|
|
711
711
|
return setTimeout(v), R;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Mt(e) {
|
|
714
714
|
const o = {
|
|
715
|
-
...
|
|
715
|
+
...Qn,
|
|
716
716
|
...e
|
|
717
717
|
};
|
|
718
718
|
let t = [];
|
|
@@ -720,15 +720,15 @@ function Et(e) {
|
|
|
720
720
|
t = t.filter((s) => s().status === "pending");
|
|
721
721
|
}
|
|
722
722
|
function i(s, a, u) {
|
|
723
|
-
const
|
|
723
|
+
const g = Xn(
|
|
724
724
|
o,
|
|
725
725
|
s,
|
|
726
726
|
a,
|
|
727
|
-
(f,
|
|
728
|
-
n(), u && u(f,
|
|
727
|
+
(f, c) => {
|
|
728
|
+
n(), u && u(f, c);
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
return t.push(
|
|
731
|
+
return t.push(g), g;
|
|
732
732
|
}
|
|
733
733
|
function r(s) {
|
|
734
734
|
return t.find((a) => s(a)) || null;
|
|
@@ -743,15 +743,15 @@ function Et(e) {
|
|
|
743
743
|
cleanup: n
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function rt() {
|
|
747
747
|
}
|
|
748
748
|
const $e = /* @__PURE__ */ Object.create(null);
|
|
749
|
-
function
|
|
749
|
+
function Yn(e) {
|
|
750
750
|
if (!$e[e]) {
|
|
751
|
-
const o =
|
|
751
|
+
const o = Qe(e);
|
|
752
752
|
if (!o)
|
|
753
753
|
return;
|
|
754
|
-
const t =
|
|
754
|
+
const t = Mt(o), n = {
|
|
755
755
|
config: o,
|
|
756
756
|
redundancy: t
|
|
757
757
|
};
|
|
@@ -759,36 +759,36 @@ function Xn(e) {
|
|
|
759
759
|
}
|
|
760
760
|
return $e[e];
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Jn(e, o, t) {
|
|
763
763
|
let n, i;
|
|
764
764
|
if (typeof e == "string") {
|
|
765
765
|
const r = Oe(e);
|
|
766
766
|
if (!r)
|
|
767
|
-
return t(void 0, 424),
|
|
767
|
+
return t(void 0, 424), rt;
|
|
768
768
|
i = r.send;
|
|
769
|
-
const l =
|
|
769
|
+
const l = Yn(e);
|
|
770
770
|
l && (n = l.redundancy);
|
|
771
771
|
} else {
|
|
772
|
-
const r =
|
|
772
|
+
const r = Ue(e);
|
|
773
773
|
if (r) {
|
|
774
|
-
n =
|
|
774
|
+
n = Mt(r);
|
|
775
775
|
const l = e.resources ? e.resources[0] : "", s = Oe(l);
|
|
776
776
|
s && (i = s.send);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
return !n || !i ? (t(void 0, 424),
|
|
779
|
+
return !n || !i ? (t(void 0, 424), rt) : n.query(o, i, t)().abort;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function lt() {
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Zn(e) {
|
|
784
784
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
785
|
-
e.iconsLoaderFlag = !1,
|
|
785
|
+
e.iconsLoaderFlag = !1, qn(e);
|
|
786
786
|
}));
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function eo(e) {
|
|
789
789
|
const o = [], t = [];
|
|
790
790
|
return e.forEach((n) => {
|
|
791
|
-
(n.match(
|
|
791
|
+
(n.match(bt) ? o : t).push(n);
|
|
792
792
|
}), {
|
|
793
793
|
valid: o,
|
|
794
794
|
invalid: t
|
|
@@ -803,23 +803,23 @@ function le(e, o, t) {
|
|
|
803
803
|
}
|
|
804
804
|
if (t && typeof t == "object")
|
|
805
805
|
try {
|
|
806
|
-
if (!
|
|
806
|
+
if (!xt(e, t).length) {
|
|
807
807
|
n();
|
|
808
808
|
return;
|
|
809
809
|
}
|
|
810
810
|
} catch (i) {
|
|
811
811
|
console.error(i);
|
|
812
812
|
}
|
|
813
|
-
n(),
|
|
813
|
+
n(), Zn(e);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function st(e, o) {
|
|
816
816
|
e instanceof Promise ? e.then((t) => {
|
|
817
817
|
o(t);
|
|
818
818
|
}).catch(() => {
|
|
819
819
|
o(null);
|
|
820
820
|
}) : o(e);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function to(e, o) {
|
|
823
823
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(o).sort() : e.iconsToLoad = o, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
824
824
|
e.iconsQueueFlag = !1;
|
|
825
825
|
const { provider: t, prefix: n } = e, i = e.iconsToLoad;
|
|
@@ -827,46 +827,46 @@ function eo(e, o) {
|
|
|
827
827
|
return;
|
|
828
828
|
const r = e.loadIcon;
|
|
829
829
|
if (e.loadIcons && (i.length > 1 || !r)) {
|
|
830
|
-
|
|
830
|
+
st(
|
|
831
831
|
e.loadIcons(i, n, t),
|
|
832
|
-
(
|
|
833
|
-
le(e, i,
|
|
832
|
+
(g) => {
|
|
833
|
+
le(e, i, g);
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
if (r) {
|
|
839
|
-
i.forEach((
|
|
840
|
-
const f = r(
|
|
841
|
-
|
|
842
|
-
const d =
|
|
839
|
+
i.forEach((g) => {
|
|
840
|
+
const f = r(g, n, t);
|
|
841
|
+
st(f, (c) => {
|
|
842
|
+
const d = c ? {
|
|
843
843
|
prefix: n,
|
|
844
844
|
icons: {
|
|
845
|
-
[
|
|
845
|
+
[g]: c
|
|
846
846
|
}
|
|
847
847
|
} : null;
|
|
848
|
-
le(e, [
|
|
848
|
+
le(e, [g], d);
|
|
849
849
|
});
|
|
850
850
|
});
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
|
-
const { valid: l, invalid: s } =
|
|
853
|
+
const { valid: l, invalid: s } = eo(i);
|
|
854
854
|
if (s.length && le(e, s, null), !l.length)
|
|
855
855
|
return;
|
|
856
|
-
const a = n.match(
|
|
856
|
+
const a = n.match(bt) ? Oe(t) : null;
|
|
857
857
|
if (!a) {
|
|
858
858
|
le(e, l, null);
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
|
-
a.prepare(t, n, l).forEach((
|
|
862
|
-
|
|
863
|
-
le(e,
|
|
861
|
+
a.prepare(t, n, l).forEach((g) => {
|
|
862
|
+
Jn(t, g, (f) => {
|
|
863
|
+
le(e, g.icons, f);
|
|
864
864
|
});
|
|
865
865
|
});
|
|
866
866
|
}));
|
|
867
867
|
}
|
|
868
|
-
const
|
|
869
|
-
const t =
|
|
868
|
+
const no = (e, o) => {
|
|
869
|
+
const t = Wn(e, !0, At()), n = jn(t);
|
|
870
870
|
if (!n.pending.length) {
|
|
871
871
|
let a = !0;
|
|
872
872
|
return o && setTimeout(() => {
|
|
@@ -874,7 +874,7 @@ const to = (e, o) => {
|
|
|
874
874
|
n.loaded,
|
|
875
875
|
n.missing,
|
|
876
876
|
n.pending,
|
|
877
|
-
|
|
877
|
+
lt
|
|
878
878
|
);
|
|
879
879
|
}), () => {
|
|
880
880
|
a = !1;
|
|
@@ -883,21 +883,21 @@ const to = (e, o) => {
|
|
|
883
883
|
const i = /* @__PURE__ */ Object.create(null), r = [];
|
|
884
884
|
let l, s;
|
|
885
885
|
return n.pending.forEach((a) => {
|
|
886
|
-
const { provider: u, prefix:
|
|
887
|
-
if (
|
|
886
|
+
const { provider: u, prefix: g } = a;
|
|
887
|
+
if (g === s && u === l)
|
|
888
888
|
return;
|
|
889
|
-
l = u, s =
|
|
889
|
+
l = u, s = g, r.push(ie(u, g));
|
|
890
890
|
const f = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
|
|
891
|
-
f[
|
|
891
|
+
f[g] || (f[g] = []);
|
|
892
892
|
}), n.pending.forEach((a) => {
|
|
893
|
-
const { provider: u, prefix:
|
|
894
|
-
d.has(f) || (d.add(f), i[u][
|
|
893
|
+
const { provider: u, prefix: g, name: f } = a, c = ie(u, g), d = c.pendingIcons || (c.pendingIcons = /* @__PURE__ */ new Set());
|
|
894
|
+
d.has(f) || (d.add(f), i[u][g].push(f));
|
|
895
895
|
}), r.forEach((a) => {
|
|
896
896
|
const u = i[a.provider][a.prefix];
|
|
897
|
-
u.length &&
|
|
898
|
-
}), o ?
|
|
897
|
+
u.length && to(a, u);
|
|
898
|
+
}), o ? Un(o, n, r) : lt;
|
|
899
899
|
};
|
|
900
|
-
function
|
|
900
|
+
function oo(e, o) {
|
|
901
901
|
const t = {
|
|
902
902
|
...e
|
|
903
903
|
};
|
|
@@ -907,9 +907,9 @@ function no(e, o) {
|
|
|
907
907
|
}
|
|
908
908
|
return t;
|
|
909
909
|
}
|
|
910
|
-
const
|
|
911
|
-
function
|
|
912
|
-
o.split(
|
|
910
|
+
const io = /[\s,]+/;
|
|
911
|
+
function ro(e, o) {
|
|
912
|
+
o.split(io).forEach((t) => {
|
|
913
913
|
switch (t.trim()) {
|
|
914
914
|
case "horizontal":
|
|
915
915
|
e.hFlip = !0;
|
|
@@ -920,7 +920,7 @@ function io(e, o) {
|
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function lo(e, o = 0) {
|
|
924
924
|
const t = e.replace(/^-?[0-9.]*/, "");
|
|
925
925
|
function n(i) {
|
|
926
926
|
for (; i < 0; )
|
|
@@ -946,59 +946,59 @@ function ro(e, o = 0) {
|
|
|
946
946
|
}
|
|
947
947
|
return o;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function so(e, o) {
|
|
950
950
|
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
951
951
|
for (const n in o)
|
|
952
952
|
t += " " + n + '="' + o[n] + '"';
|
|
953
953
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
954
954
|
}
|
|
955
|
-
function so(e) {
|
|
956
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
957
|
-
}
|
|
958
955
|
function ao(e) {
|
|
959
|
-
return "
|
|
956
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
960
957
|
}
|
|
961
958
|
function uo(e) {
|
|
962
|
-
return
|
|
959
|
+
return "data:image/svg+xml," + ao(e);
|
|
960
|
+
}
|
|
961
|
+
function co(e) {
|
|
962
|
+
return 'url("' + uo(e) + '")';
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
...
|
|
964
|
+
const at = {
|
|
965
|
+
...Vt,
|
|
966
966
|
inline: !1
|
|
967
|
-
},
|
|
967
|
+
}, go = {
|
|
968
968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
969
969
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
970
970
|
"aria-hidden": !0,
|
|
971
971
|
role: "img"
|
|
972
|
-
},
|
|
972
|
+
}, fo = {
|
|
973
973
|
display: "inline-block"
|
|
974
|
-
},
|
|
974
|
+
}, Be = {
|
|
975
975
|
backgroundColor: "currentColor"
|
|
976
|
-
},
|
|
976
|
+
}, Et = {
|
|
977
977
|
backgroundColor: "transparent"
|
|
978
|
-
},
|
|
978
|
+
}, ut = {
|
|
979
979
|
Image: "var(--svg)",
|
|
980
980
|
Repeat: "no-repeat",
|
|
981
981
|
Size: "100% 100%"
|
|
982
982
|
}, dt = {
|
|
983
|
-
webkitMask:
|
|
984
|
-
mask:
|
|
985
|
-
background:
|
|
983
|
+
webkitMask: Be,
|
|
984
|
+
mask: Be,
|
|
985
|
+
background: Et
|
|
986
986
|
};
|
|
987
987
|
for (const e in dt) {
|
|
988
988
|
const o = dt[e];
|
|
989
|
-
for (const t in
|
|
990
|
-
o[e + t] =
|
|
989
|
+
for (const t in ut)
|
|
990
|
+
o[e + t] = ut[t];
|
|
991
991
|
}
|
|
992
992
|
const Ce = {};
|
|
993
993
|
["horizontal", "vertical"].forEach((e) => {
|
|
994
994
|
const o = e.slice(0, 1) + "Flip";
|
|
995
995
|
Ce[e + "-flip"] = o, Ce[e.slice(0, 1) + "-flip"] = o, Ce[e + "Flip"] = o;
|
|
996
996
|
});
|
|
997
|
-
function
|
|
997
|
+
function ct(e) {
|
|
998
998
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
999
999
|
}
|
|
1000
|
-
const
|
|
1001
|
-
const t =
|
|
1000
|
+
const gt = (e, o) => {
|
|
1001
|
+
const t = oo(at, o), n = { ...go }, i = o.mode || "svg", r = {}, l = o.style, s = typeof l == "object" && !(l instanceof Array) ? l : {};
|
|
1002
1002
|
for (let m in o) {
|
|
1003
1003
|
const h = o[m];
|
|
1004
1004
|
if (h !== void 0)
|
|
@@ -1018,7 +1018,7 @@ const ft = (e, o) => {
|
|
|
1018
1018
|
break;
|
|
1019
1019
|
// Flip as string: 'horizontal,vertical'
|
|
1020
1020
|
case "flip":
|
|
1021
|
-
typeof h == "string" &&
|
|
1021
|
+
typeof h == "string" && ro(t, h);
|
|
1022
1022
|
break;
|
|
1023
1023
|
// Color: override style
|
|
1024
1024
|
case "color":
|
|
@@ -1026,7 +1026,7 @@ const ft = (e, o) => {
|
|
|
1026
1026
|
break;
|
|
1027
1027
|
// Rotation as string
|
|
1028
1028
|
case "rotate":
|
|
1029
|
-
typeof h == "string" ? t[m] =
|
|
1029
|
+
typeof h == "string" ? t[m] = lo(h) : typeof h == "number" && (t[m] = h);
|
|
1030
1030
|
break;
|
|
1031
1031
|
// Remove aria-hidden
|
|
1032
1032
|
case "ariaHidden":
|
|
@@ -1035,36 +1035,36 @@ const ft = (e, o) => {
|
|
|
1035
1035
|
break;
|
|
1036
1036
|
default: {
|
|
1037
1037
|
const R = Ce[m];
|
|
1038
|
-
R ? (h === !0 || h === "true" || h === 1) && (t[R] = !0) :
|
|
1038
|
+
R ? (h === !0 || h === "true" || h === 1) && (t[R] = !0) : at[m] === void 0 && (n[m] = h);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
const a =
|
|
1042
|
+
const a = Dn(e, t), u = a.attributes;
|
|
1043
1043
|
if (t.inline && (r.verticalAlign = "-0.125em"), i === "svg") {
|
|
1044
1044
|
n.style = {
|
|
1045
1045
|
...r,
|
|
1046
1046
|
...s
|
|
1047
1047
|
}, Object.assign(n, u);
|
|
1048
1048
|
let m = 0, h = o.id;
|
|
1049
|
-
return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML =
|
|
1049
|
+
return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML = En(a.body, h ? () => h + "ID" + m++ : "iconifyVue"), Y("svg", n);
|
|
1050
1050
|
}
|
|
1051
|
-
const { body:
|
|
1051
|
+
const { body: g, width: f, height: c } = e, d = i === "mask" || (i === "bg" ? !1 : g.indexOf("currentColor") !== -1), p = so(g, {
|
|
1052
1052
|
...u,
|
|
1053
1053
|
width: f + "",
|
|
1054
|
-
height:
|
|
1054
|
+
height: c + ""
|
|
1055
1055
|
});
|
|
1056
1056
|
return n.style = {
|
|
1057
1057
|
...r,
|
|
1058
|
-
"--svg":
|
|
1059
|
-
width:
|
|
1060
|
-
height:
|
|
1061
|
-
...
|
|
1062
|
-
...d ?
|
|
1058
|
+
"--svg": co(p),
|
|
1059
|
+
width: ct(u.width),
|
|
1060
|
+
height: ct(u.height),
|
|
1061
|
+
...fo,
|
|
1062
|
+
...d ? Be : Et,
|
|
1063
1063
|
...s
|
|
1064
|
-
},
|
|
1064
|
+
}, Y("span", n);
|
|
1065
1065
|
};
|
|
1066
|
-
|
|
1067
|
-
|
|
1066
|
+
At(!0);
|
|
1067
|
+
Ln("", Nn);
|
|
1068
1068
|
if (typeof document < "u" && typeof window < "u") {
|
|
1069
1069
|
const e = window;
|
|
1070
1070
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1074,7 +1074,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1074
1074
|
// Check if item is an object and not null/array
|
|
1075
1075
|
(typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
|
|
1076
1076
|
typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
|
|
1077
|
-
!
|
|
1077
|
+
!Fn(n)) && console.error(t);
|
|
1078
1078
|
} catch {
|
|
1079
1079
|
console.error(t);
|
|
1080
1080
|
}
|
|
@@ -1089,14 +1089,14 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1089
1089
|
const i = o[t];
|
|
1090
1090
|
if (typeof i != "object" || !i || i.resources === void 0)
|
|
1091
1091
|
continue;
|
|
1092
|
-
|
|
1092
|
+
kn(t, i) || console.error(n);
|
|
1093
1093
|
} catch {
|
|
1094
1094
|
console.error(n);
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1099
|
+
const po = {
|
|
1100
1100
|
...Fe,
|
|
1101
1101
|
body: ""
|
|
1102
1102
|
}, j = Q({
|
|
@@ -1134,11 +1134,11 @@ const fo = {
|
|
|
1134
1134
|
let n;
|
|
1135
1135
|
if (typeof e != "string" || (n = Re(e, !1, !0)) === null)
|
|
1136
1136
|
return this.abortLoading(), null;
|
|
1137
|
-
let i =
|
|
1137
|
+
let i = yn(n);
|
|
1138
1138
|
if (!i)
|
|
1139
1139
|
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
|
|
1140
1140
|
name: e,
|
|
1141
|
-
abort:
|
|
1141
|
+
abort: no([n], () => {
|
|
1142
1142
|
this.counter++;
|
|
1143
1143
|
})
|
|
1144
1144
|
})), null;
|
|
@@ -1156,12 +1156,12 @@ const fo = {
|
|
|
1156
1156
|
this.counter;
|
|
1157
1157
|
const e = this.$attrs, o = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
|
|
1158
1158
|
if (!o)
|
|
1159
|
-
return
|
|
1159
|
+
return gt(po, e);
|
|
1160
1160
|
let t = e;
|
|
1161
1161
|
return o.classes && (t = {
|
|
1162
1162
|
...e,
|
|
1163
1163
|
class: (typeof e.class == "string" ? e.class + " " : "") + o.classes.join(" ")
|
|
1164
|
-
}),
|
|
1164
|
+
}), gt({
|
|
1165
1165
|
...Fe,
|
|
1166
1166
|
...o.data
|
|
1167
1167
|
}, t);
|
|
@@ -1177,7 +1177,7 @@ const fo = {
|
|
|
1177
1177
|
*
|
|
1178
1178
|
* @license MIT
|
|
1179
1179
|
*/
|
|
1180
|
-
function
|
|
1180
|
+
function mo() {
|
|
1181
1181
|
return {
|
|
1182
1182
|
accessor: (e, o) => typeof e == "function" ? {
|
|
1183
1183
|
...o,
|
|
@@ -1204,10 +1204,10 @@ function q(e, o) {
|
|
|
1204
1204
|
function be(e) {
|
|
1205
1205
|
return e instanceof Function;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function ho(e) {
|
|
1208
1208
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function vo(e, o) {
|
|
1211
1211
|
const t = [], n = (i) => {
|
|
1212
1212
|
i.forEach((r) => {
|
|
1213
1213
|
t.push(r);
|
|
@@ -1223,20 +1223,20 @@ function F(e, o, t) {
|
|
|
1223
1223
|
let l;
|
|
1224
1224
|
t.key && t.debug && (l = Date.now());
|
|
1225
1225
|
const s = e(r);
|
|
1226
|
-
if (!(s.length !== n.length || s.some((
|
|
1226
|
+
if (!(s.length !== n.length || s.some((g, f) => n[f] !== g)))
|
|
1227
1227
|
return i;
|
|
1228
1228
|
n = s;
|
|
1229
1229
|
let u;
|
|
1230
1230
|
if (t.key && t.debug && (u = Date.now()), i = o(...s), t == null || t.onChange == null || t.onChange(i), t.key && t.debug && t != null && t.debug()) {
|
|
1231
|
-
const
|
|
1231
|
+
const g = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - u) * 100) / 100, c = f / 16, d = (p, m) => {
|
|
1232
1232
|
for (p = String(p); p.length < m; )
|
|
1233
1233
|
p = " " + p;
|
|
1234
1234
|
return p;
|
|
1235
1235
|
};
|
|
1236
|
-
console.info(`%c⏱ ${d(f, 5)} /${d(
|
|
1236
|
+
console.info(`%c⏱ ${d(f, 5)} /${d(g, 5)} ms`, `
|
|
1237
1237
|
font-size: .6rem;
|
|
1238
1238
|
font-weight: bold;
|
|
1239
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
1239
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * c, 120))}deg 100% 31%);`, t?.key);
|
|
1240
1240
|
}
|
|
1241
1241
|
return i;
|
|
1242
1242
|
};
|
|
@@ -1251,7 +1251,7 @@ function b(e, o, t, n) {
|
|
|
1251
1251
|
onChange: n
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function So(e, o, t, n) {
|
|
1255
1255
|
const i = () => {
|
|
1256
1256
|
var l;
|
|
1257
1257
|
return (l = r.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -1274,48 +1274,48 @@ function vo(e, o, t, n) {
|
|
|
1274
1274
|
l.createCell == null || l.createCell(r, t, o, e);
|
|
1275
1275
|
}, {}), r;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function wo(e, o, t, n) {
|
|
1278
1278
|
var i, r;
|
|
1279
1279
|
const s = {
|
|
1280
1280
|
...e._getDefaultColumnDef(),
|
|
1281
1281
|
...o
|
|
1282
1282
|
}, a = s.accessorKey;
|
|
1283
|
-
let u = (i = (r = s.id) != null ? r : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? i : typeof s.header == "string" ? s.header : void 0,
|
|
1284
|
-
if (s.accessorFn ?
|
|
1285
|
-
let d =
|
|
1283
|
+
let u = (i = (r = s.id) != null ? r : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? i : typeof s.header == "string" ? s.header : void 0, g;
|
|
1284
|
+
if (s.accessorFn ? g = s.accessorFn : a && (a.includes(".") ? g = (c) => {
|
|
1285
|
+
let d = c;
|
|
1286
1286
|
for (const m of a.split(".")) {
|
|
1287
1287
|
var p;
|
|
1288
1288
|
d = (p = d) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && d === void 0 && console.warn(`"${m}" in deeply nested key "${a}" returned undefined.`);
|
|
1289
1289
|
}
|
|
1290
1290
|
return d;
|
|
1291
|
-
} :
|
|
1291
|
+
} : g = (c) => c[s.accessorKey]), !u)
|
|
1292
1292
|
throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
1293
1293
|
let f = {
|
|
1294
1294
|
id: `${String(u)}`,
|
|
1295
|
-
accessorFn:
|
|
1295
|
+
accessorFn: g,
|
|
1296
1296
|
parent: n,
|
|
1297
1297
|
depth: t,
|
|
1298
1298
|
columnDef: s,
|
|
1299
1299
|
columns: [],
|
|
1300
1300
|
getFlatColumns: F(() => [!0], () => {
|
|
1301
|
-
var
|
|
1302
|
-
return [f, ...(
|
|
1301
|
+
var c;
|
|
1302
|
+
return [f, ...(c = f.columns) == null ? void 0 : c.flatMap((d) => d.getFlatColumns())];
|
|
1303
1303
|
}, b(e.options, "debugColumns", "column.getFlatColumns")),
|
|
1304
|
-
getLeafColumns: F(() => [e._getOrderColumnsFn()], (
|
|
1304
|
+
getLeafColumns: F(() => [e._getOrderColumnsFn()], (c) => {
|
|
1305
1305
|
var d;
|
|
1306
1306
|
if ((d = f.columns) != null && d.length) {
|
|
1307
1307
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
1308
|
-
return
|
|
1308
|
+
return c(p);
|
|
1309
1309
|
}
|
|
1310
1310
|
return [f];
|
|
1311
1311
|
}, b(e.options, "debugColumns", "column.getLeafColumns"))
|
|
1312
1312
|
};
|
|
1313
|
-
for (const
|
|
1314
|
-
|
|
1313
|
+
for (const c of e._features)
|
|
1314
|
+
c.createColumn == null || c.createColumn(f, e);
|
|
1315
1315
|
return f;
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1318
|
-
function
|
|
1317
|
+
const O = "debugHeaders";
|
|
1318
|
+
function ft(e, o, t) {
|
|
1319
1319
|
var n;
|
|
1320
1320
|
let r = {
|
|
1321
1321
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -1344,59 +1344,59 @@ function pt(e, o, t) {
|
|
|
1344
1344
|
l.createHeader == null || l.createHeader(r, e);
|
|
1345
1345
|
}), r;
|
|
1346
1346
|
}
|
|
1347
|
-
const
|
|
1347
|
+
const Co = {
|
|
1348
1348
|
createTable: (e) => {
|
|
1349
1349
|
e.getHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => {
|
|
1350
1350
|
var r, l;
|
|
1351
|
-
const s = (r = n?.map((f) => t.find((
|
|
1351
|
+
const s = (r = n?.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? r : [], a = (l = i?.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? l : [], u = t.filter((f) => !(n != null && n.includes(f.id)) && !(i != null && i.includes(f.id)));
|
|
1352
1352
|
return pe(o, [...s, ...u, ...a], e);
|
|
1353
|
-
}, b(e.options,
|
|
1353
|
+
}, b(e.options, O, "getHeaderGroups")), e.getCenterHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => (t = t.filter((r) => !(n != null && n.includes(r.id)) && !(i != null && i.includes(r.id))), pe(o, t, e, "center")), b(e.options, O, "getCenterHeaderGroups")), e.getLeftHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
1354
1354
|
var i;
|
|
1355
1355
|
const r = (i = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1356
1356
|
return pe(o, r, e, "left");
|
|
1357
|
-
}, b(e.options,
|
|
1357
|
+
}, b(e.options, O, "getLeftHeaderGroups")), e.getRightHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
1358
1358
|
var i;
|
|
1359
1359
|
const r = (i = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1360
1360
|
return pe(o, r, e, "right");
|
|
1361
|
-
}, b(e.options,
|
|
1361
|
+
}, b(e.options, O, "getRightHeaderGroups")), e.getFooterGroups = F(() => [e.getHeaderGroups()], (o) => [...o].reverse(), b(e.options, O, "getFooterGroups")), e.getLeftFooterGroups = F(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), b(e.options, O, "getLeftFooterGroups")), e.getCenterFooterGroups = F(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), b(e.options, O, "getCenterFooterGroups")), e.getRightFooterGroups = F(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), b(e.options, O, "getRightFooterGroups")), e.getFlatHeaders = F(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), b(e.options, O, "getFlatHeaders")), e.getLeftFlatHeaders = F(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), b(e.options, O, "getLeftFlatHeaders")), e.getCenterFlatHeaders = F(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), b(e.options, O, "getCenterFlatHeaders")), e.getRightFlatHeaders = F(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), b(e.options, O, "getRightFlatHeaders")), e.getCenterLeafHeaders = F(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
1362
1362
|
var n;
|
|
1363
1363
|
return !((n = t.subHeaders) != null && n.length);
|
|
1364
|
-
}), b(e.options,
|
|
1364
|
+
}), b(e.options, O, "getCenterLeafHeaders")), e.getLeftLeafHeaders = F(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
1365
1365
|
var n;
|
|
1366
1366
|
return !((n = t.subHeaders) != null && n.length);
|
|
1367
|
-
}), b(e.options,
|
|
1367
|
+
}), b(e.options, O, "getLeftLeafHeaders")), e.getRightLeafHeaders = F(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
1368
1368
|
var n;
|
|
1369
1369
|
return !((n = t.subHeaders) != null && n.length);
|
|
1370
|
-
}), b(e.options,
|
|
1370
|
+
}), b(e.options, O, "getRightLeafHeaders")), e.getLeafHeaders = F(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
1371
1371
|
var i, r, l, s, a, u;
|
|
1372
|
-
return [...(i = (r = o[0]) == null ? void 0 : r.headers) != null ? i : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(a = (u = n[0]) == null ? void 0 : u.headers) != null ? a : []].map((
|
|
1373
|
-
}, b(e.options,
|
|
1372
|
+
return [...(i = (r = o[0]) == null ? void 0 : r.headers) != null ? i : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(a = (u = n[0]) == null ? void 0 : u.headers) != null ? a : []].map((g) => g.getLeafHeaders()).flat();
|
|
1373
|
+
}, b(e.options, O, "getLeafHeaders"));
|
|
1374
1374
|
}
|
|
1375
1375
|
};
|
|
1376
1376
|
function pe(e, o, t, n) {
|
|
1377
1377
|
var i, r;
|
|
1378
1378
|
let l = 0;
|
|
1379
|
-
const s = function(
|
|
1380
|
-
d === void 0 && (d = 1), l = Math.max(l, d),
|
|
1379
|
+
const s = function(c, d) {
|
|
1380
|
+
d === void 0 && (d = 1), l = Math.max(l, d), c.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
1381
1381
|
var m;
|
|
1382
1382
|
(m = p.columns) != null && m.length && s(p.columns, d + 1);
|
|
1383
1383
|
}, 0);
|
|
1384
1384
|
};
|
|
1385
1385
|
s(e);
|
|
1386
1386
|
let a = [];
|
|
1387
|
-
const u = (
|
|
1387
|
+
const u = (c, d) => {
|
|
1388
1388
|
const p = {
|
|
1389
1389
|
depth: d,
|
|
1390
1390
|
id: [n, `${d}`].filter(Boolean).join("_"),
|
|
1391
1391
|
headers: []
|
|
1392
1392
|
}, m = [];
|
|
1393
|
-
|
|
1394
|
-
const R = [...m].reverse()[0],
|
|
1393
|
+
c.forEach((h) => {
|
|
1394
|
+
const R = [...m].reverse()[0], $ = h.column.depth === p.depth;
|
|
1395
1395
|
let P, _ = !1;
|
|
1396
|
-
if (
|
|
1396
|
+
if ($ && h.column.parent ? P = h.column.parent : (P = h.column, _ = !0), R && R?.column === P)
|
|
1397
1397
|
R.subHeaders.push(h);
|
|
1398
1398
|
else {
|
|
1399
|
-
const v =
|
|
1399
|
+
const v = ft(t, P, {
|
|
1400
1400
|
id: [n, d, P.id, h?.id].filter(Boolean).join("_"),
|
|
1401
1401
|
isPlaceholder: _,
|
|
1402
1402
|
placeholderId: _ ? `${m.filter((w) => w.column === P).length}` : void 0,
|
|
@@ -1407,12 +1407,12 @@ function pe(e, o, t, n) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
p.headers.push(h), h.headerGroup = p;
|
|
1409
1409
|
}), a.push(p), d > 0 && u(m, d - 1);
|
|
1410
|
-
},
|
|
1410
|
+
}, g = o.map((c, d) => ft(t, c, {
|
|
1411
1411
|
depth: l,
|
|
1412
1412
|
index: d
|
|
1413
1413
|
}));
|
|
1414
|
-
u(
|
|
1415
|
-
const f = (
|
|
1414
|
+
u(g, l - 1), a.reverse();
|
|
1415
|
+
const f = (c) => c.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
1416
1416
|
let m = 0, h = 0, R = [0];
|
|
1417
1417
|
p.subHeaders && p.subHeaders.length ? (R = [], f(p.subHeaders).forEach((P) => {
|
|
1418
1418
|
let {
|
|
@@ -1421,15 +1421,15 @@ function pe(e, o, t, n) {
|
|
|
1421
1421
|
} = P;
|
|
1422
1422
|
m += _, R.push(v);
|
|
1423
1423
|
})) : m = 1;
|
|
1424
|
-
const
|
|
1425
|
-
return h = h +
|
|
1424
|
+
const $ = Math.min(...R);
|
|
1425
|
+
return h = h + $, p.colSpan = m, p.rowSpan = h, {
|
|
1426
1426
|
colSpan: m,
|
|
1427
1427
|
rowSpan: h
|
|
1428
1428
|
};
|
|
1429
1429
|
});
|
|
1430
1430
|
return f((i = (r = a[0]) == null ? void 0 : r.headers) != null ? i : []), a;
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1432
|
+
const Xe = (e, o, t, n, i, r, l) => {
|
|
1433
1433
|
let s = {
|
|
1434
1434
|
id: o,
|
|
1435
1435
|
index: n,
|
|
@@ -1457,73 +1457,73 @@ const Ye = (e, o, t, n, i, r, l) => {
|
|
|
1457
1457
|
return (u = s.getValue(a)) != null ? u : e.options.renderFallbackValue;
|
|
1458
1458
|
},
|
|
1459
1459
|
subRows: [],
|
|
1460
|
-
getLeafRows: () =>
|
|
1460
|
+
getLeafRows: () => vo(s.subRows, (a) => a.subRows),
|
|
1461
1461
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
1462
1462
|
getParentRows: () => {
|
|
1463
1463
|
let a = [], u = s;
|
|
1464
1464
|
for (; ; ) {
|
|
1465
|
-
const
|
|
1466
|
-
if (!
|
|
1467
|
-
a.push(
|
|
1465
|
+
const g = u.getParentRow();
|
|
1466
|
+
if (!g) break;
|
|
1467
|
+
a.push(g), u = g;
|
|
1468
1468
|
}
|
|
1469
1469
|
return a.reverse();
|
|
1470
1470
|
},
|
|
1471
|
-
getAllCells: F(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
1472
|
-
_getAllCellsByColumnId: F(() => [s.getAllCells()], (a) => a.reduce((u,
|
|
1471
|
+
getAllCells: F(() => [e.getAllLeafColumns()], (a) => a.map((u) => So(e, s, u, u.id)), b(e.options, "debugRows", "getAllCells")),
|
|
1472
|
+
_getAllCellsByColumnId: F(() => [s.getAllCells()], (a) => a.reduce((u, g) => (u[g.column.id] = g, u), {}), b(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
1473
1473
|
};
|
|
1474
1474
|
for (let a = 0; a < e._features.length; a++) {
|
|
1475
1475
|
const u = e._features[a];
|
|
1476
1476
|
u == null || u.createRow == null || u.createRow(s, e);
|
|
1477
1477
|
}
|
|
1478
1478
|
return s;
|
|
1479
|
-
},
|
|
1479
|
+
}, yo = {
|
|
1480
1480
|
createColumn: (e, o) => {
|
|
1481
1481
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
1482
1482
|
if (e._getFacetedMinMaxValues)
|
|
1483
1483
|
return e._getFacetedMinMaxValues();
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
},
|
|
1486
|
+
}, Lt = (e, o, t) => {
|
|
1487
1487
|
var n, i;
|
|
1488
1488
|
const r = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
1489
1489
|
return !!(!((i = e.getValue(o)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(r));
|
|
1490
1490
|
};
|
|
1491
|
-
|
|
1492
|
-
const
|
|
1491
|
+
Lt.autoRemove = (e) => W(e);
|
|
1492
|
+
const kt = (e, o, t) => {
|
|
1493
1493
|
var n;
|
|
1494
1494
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
1495
1495
|
};
|
|
1496
|
-
|
|
1497
|
-
const
|
|
1496
|
+
kt.autoRemove = (e) => W(e);
|
|
1497
|
+
const Tt = (e, o, t) => {
|
|
1498
1498
|
var n;
|
|
1499
1499
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
|
1500
1500
|
};
|
|
1501
|
-
|
|
1502
|
-
const
|
|
1501
|
+
Tt.autoRemove = (e) => W(e);
|
|
1502
|
+
const Ht = (e, o, t) => {
|
|
1503
1503
|
var n;
|
|
1504
1504
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
1505
1505
|
};
|
|
1506
|
-
|
|
1506
|
+
Ht.autoRemove = (e) => W(e);
|
|
1507
1507
|
const Ot = (e, o, t) => !t.some((n) => {
|
|
1508
1508
|
var i;
|
|
1509
1509
|
return !((i = e.getValue(o)) != null && i.includes(n));
|
|
1510
1510
|
});
|
|
1511
1511
|
Ot.autoRemove = (e) => W(e) || !(e != null && e.length);
|
|
1512
|
-
const
|
|
1512
|
+
const Bt = (e, o, t) => t.some((n) => {
|
|
1513
1513
|
var i;
|
|
1514
1514
|
return (i = e.getValue(o)) == null ? void 0 : i.includes(n);
|
|
1515
1515
|
});
|
|
1516
|
-
|
|
1517
|
-
const
|
|
1516
|
+
Bt.autoRemove = (e) => W(e) || !(e != null && e.length);
|
|
1517
|
+
const Gt = (e, o, t) => e.getValue(o) === t;
|
|
1518
|
+
Gt.autoRemove = (e) => W(e);
|
|
1519
|
+
const zt = (e, o, t) => e.getValue(o) == t;
|
|
1518
1520
|
zt.autoRemove = (e) => W(e);
|
|
1519
|
-
const
|
|
1520
|
-
Nt.autoRemove = (e) => W(e);
|
|
1521
|
-
const Je = (e, o, t) => {
|
|
1521
|
+
const Ye = (e, o, t) => {
|
|
1522
1522
|
let [n, i] = t;
|
|
1523
1523
|
const r = e.getValue(o);
|
|
1524
1524
|
return r >= n && r <= i;
|
|
1525
1525
|
};
|
|
1526
|
-
|
|
1526
|
+
Ye.resolveFilterValue = (e) => {
|
|
1527
1527
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, i = typeof t != "number" ? parseFloat(t) : t, r = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(i) ? 1 / 0 : i;
|
|
1528
1528
|
if (r > l) {
|
|
1529
1529
|
const s = r;
|
|
@@ -1531,22 +1531,22 @@ Je.resolveFilterValue = (e) => {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
return [r, l];
|
|
1533
1533
|
};
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1536
|
-
includesString:
|
|
1537
|
-
includesStringSensitive:
|
|
1538
|
-
equalsString:
|
|
1539
|
-
arrIncludes:
|
|
1534
|
+
Ye.autoRemove = (e) => W(e) || W(e[0]) && W(e[1]);
|
|
1535
|
+
const X = {
|
|
1536
|
+
includesString: Lt,
|
|
1537
|
+
includesStringSensitive: kt,
|
|
1538
|
+
equalsString: Tt,
|
|
1539
|
+
arrIncludes: Ht,
|
|
1540
1540
|
arrIncludesAll: Ot,
|
|
1541
|
-
arrIncludesSome:
|
|
1542
|
-
equals:
|
|
1543
|
-
weakEquals:
|
|
1544
|
-
inNumberRange:
|
|
1541
|
+
arrIncludesSome: Bt,
|
|
1542
|
+
equals: Gt,
|
|
1543
|
+
weakEquals: zt,
|
|
1544
|
+
inNumberRange: Ye
|
|
1545
1545
|
};
|
|
1546
1546
|
function W(e) {
|
|
1547
1547
|
return e == null || e === "";
|
|
1548
1548
|
}
|
|
1549
|
-
const
|
|
1549
|
+
const Ro = {
|
|
1550
1550
|
getDefaultColumnDef: () => ({
|
|
1551
1551
|
filterFn: "auto"
|
|
1552
1552
|
}),
|
|
@@ -1562,12 +1562,12 @@ const yo = {
|
|
|
1562
1562
|
createColumn: (e, o) => {
|
|
1563
1563
|
e.getAutoFilterFn = () => {
|
|
1564
1564
|
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
1565
|
-
return typeof n == "string" ?
|
|
1565
|
+
return typeof n == "string" ? X.includesString : typeof n == "number" ? X.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? X.equals : Array.isArray(n) ? X.arrIncludes : X.weakEquals;
|
|
1566
1566
|
}, e.getFilterFn = () => {
|
|
1567
1567
|
var t, n;
|
|
1568
1568
|
return be(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1569
1569
|
// @ts-ignore
|
|
1570
|
-
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t :
|
|
1570
|
+
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : X[e.columnDef.filterFn]
|
|
1571
1571
|
);
|
|
1572
1572
|
}, e.getCanFilter = () => {
|
|
1573
1573
|
var t, n, i;
|
|
@@ -1580,10 +1580,10 @@ const yo = {
|
|
|
1580
1580
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((i) => i.id === e.id)) != null ? t : -1;
|
|
1581
1581
|
}, e.setFilterValue = (t) => {
|
|
1582
1582
|
o.setColumnFilters((n) => {
|
|
1583
|
-
const i = e.getFilterFn(), r = n?.find((
|
|
1584
|
-
if (
|
|
1583
|
+
const i = e.getFilterFn(), r = n?.find((g) => g.id === e.id), l = ee(t, r ? r.value : void 0);
|
|
1584
|
+
if (pt(i, l, e)) {
|
|
1585
1585
|
var s;
|
|
1586
|
-
return (s = n?.filter((
|
|
1586
|
+
return (s = n?.filter((g) => g.id !== e.id)) != null ? s : [];
|
|
1587
1587
|
}
|
|
1588
1588
|
const a = {
|
|
1589
1589
|
id: e.id,
|
|
@@ -1591,7 +1591,7 @@ const yo = {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
if (r) {
|
|
1593
1593
|
var u;
|
|
1594
|
-
return (u = n?.map((
|
|
1594
|
+
return (u = n?.map((g) => g.id === e.id ? a : g)) != null ? u : [];
|
|
1595
1595
|
}
|
|
1596
1596
|
return n != null && n.length ? [...n, a] : [a];
|
|
1597
1597
|
});
|
|
@@ -1608,7 +1608,7 @@ const yo = {
|
|
|
1608
1608
|
const s = t.find((a) => a.id === l.id);
|
|
1609
1609
|
if (s) {
|
|
1610
1610
|
const a = s.getFilterFn();
|
|
1611
|
-
if (
|
|
1611
|
+
if (pt(a, l.value, s))
|
|
1612
1612
|
return !1;
|
|
1613
1613
|
}
|
|
1614
1614
|
return !0;
|
|
@@ -1621,57 +1621,57 @@ const yo = {
|
|
|
1621
1621
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
1622
1622
|
}
|
|
1623
1623
|
};
|
|
1624
|
-
function
|
|
1624
|
+
function pt(e, o, t) {
|
|
1625
1625
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
1626
1626
|
}
|
|
1627
|
-
const
|
|
1627
|
+
const Fo = (e, o, t) => t.reduce((n, i) => {
|
|
1628
1628
|
const r = i.getValue(e);
|
|
1629
1629
|
return n + (typeof r == "number" ? r : 0);
|
|
1630
|
-
}, 0),
|
|
1630
|
+
}, 0), bo = (e, o, t) => {
|
|
1631
1631
|
let n;
|
|
1632
1632
|
return t.forEach((i) => {
|
|
1633
1633
|
const r = i.getValue(e);
|
|
1634
1634
|
r != null && (n > r || n === void 0 && r >= r) && (n = r);
|
|
1635
1635
|
}), n;
|
|
1636
|
-
},
|
|
1636
|
+
}, Po = (e, o, t) => {
|
|
1637
1637
|
let n;
|
|
1638
1638
|
return t.forEach((i) => {
|
|
1639
1639
|
const r = i.getValue(e);
|
|
1640
1640
|
r != null && (n < r || n === void 0 && r >= r) && (n = r);
|
|
1641
1641
|
}), n;
|
|
1642
|
-
},
|
|
1642
|
+
}, $o = (e, o, t) => {
|
|
1643
1643
|
let n, i;
|
|
1644
1644
|
return t.forEach((r) => {
|
|
1645
1645
|
const l = r.getValue(e);
|
|
1646
1646
|
l != null && (n === void 0 ? l >= l && (n = i = l) : (n > l && (n = l), i < l && (i = l)));
|
|
1647
1647
|
}), [n, i];
|
|
1648
|
-
},
|
|
1648
|
+
}, Io = (e, o) => {
|
|
1649
1649
|
let t = 0, n = 0;
|
|
1650
1650
|
if (o.forEach((i) => {
|
|
1651
1651
|
let r = i.getValue(e);
|
|
1652
1652
|
r != null && (r = +r) >= r && (++t, n += r);
|
|
1653
1653
|
}), t) return n / t;
|
|
1654
|
-
},
|
|
1654
|
+
}, xo = (e, o) => {
|
|
1655
1655
|
if (!o.length)
|
|
1656
1656
|
return;
|
|
1657
1657
|
const t = o.map((r) => r.getValue(e));
|
|
1658
|
-
if (!
|
|
1658
|
+
if (!ho(t))
|
|
1659
1659
|
return;
|
|
1660
1660
|
if (t.length === 1)
|
|
1661
1661
|
return t[0];
|
|
1662
1662
|
const n = Math.floor(t.length / 2), i = t.sort((r, l) => r - l);
|
|
1663
1663
|
return t.length % 2 !== 0 ? i[n] : (i[n - 1] + i[n]) / 2;
|
|
1664
|
-
},
|
|
1665
|
-
sum:
|
|
1666
|
-
min:
|
|
1667
|
-
max:
|
|
1668
|
-
extent:
|
|
1669
|
-
mean:
|
|
1670
|
-
median:
|
|
1671
|
-
unique:
|
|
1672
|
-
uniqueCount:
|
|
1664
|
+
}, Ao = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Do = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Vo = (e, o) => o.length, Ie = {
|
|
1665
|
+
sum: Fo,
|
|
1666
|
+
min: bo,
|
|
1667
|
+
max: Po,
|
|
1668
|
+
extent: $o,
|
|
1669
|
+
mean: Io,
|
|
1670
|
+
median: xo,
|
|
1671
|
+
unique: Ao,
|
|
1672
|
+
uniqueCount: Do,
|
|
1673
1673
|
count: Vo
|
|
1674
|
-
},
|
|
1674
|
+
}, _o = {
|
|
1675
1675
|
getDefaultColumnDef: () => ({
|
|
1676
1676
|
aggregatedCell: (e) => {
|
|
1677
1677
|
var o, t;
|
|
@@ -1738,13 +1738,13 @@ const Ro = (e, o, t) => t.reduce((n, i) => {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
|
-
function
|
|
1741
|
+
function Mo(e, o, t) {
|
|
1742
1742
|
if (!(o != null && o.length) || !t)
|
|
1743
1743
|
return e;
|
|
1744
1744
|
const n = e.filter((r) => !o.includes(r.id));
|
|
1745
1745
|
return t === "remove" ? n : [...o.map((r) => e.find((l) => l.id === r)).filter(Boolean), ...n];
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const Eo = {
|
|
1748
1748
|
getInitialState: (e) => ({
|
|
1749
1749
|
columnOrder: [],
|
|
1750
1750
|
...e
|
|
@@ -1773,18 +1773,18 @@ const Mo = {
|
|
|
1773
1773
|
else {
|
|
1774
1774
|
const l = [...o], s = [...i];
|
|
1775
1775
|
for (; s.length && l.length; ) {
|
|
1776
|
-
const a = l.shift(), u = s.findIndex((
|
|
1776
|
+
const a = l.shift(), u = s.findIndex((g) => g.id === a);
|
|
1777
1777
|
u > -1 && r.push(s.splice(u, 1)[0]);
|
|
1778
1778
|
}
|
|
1779
1779
|
r = [...r, ...s];
|
|
1780
1780
|
}
|
|
1781
|
-
return
|
|
1781
|
+
return Mo(r, t, n);
|
|
1782
1782
|
}, b(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1783
1783
|
}
|
|
1784
1784
|
}, xe = () => ({
|
|
1785
1785
|
left: [],
|
|
1786
1786
|
right: []
|
|
1787
|
-
}),
|
|
1787
|
+
}), Lo = {
|
|
1788
1788
|
getInitialState: (e) => ({
|
|
1789
1789
|
columnPinning: xe(),
|
|
1790
1790
|
...e
|
|
@@ -1805,10 +1805,10 @@ const Mo = {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
if (t === "left") {
|
|
1808
|
-
var u,
|
|
1808
|
+
var u, g;
|
|
1809
1809
|
return {
|
|
1810
1810
|
left: [...((u = i?.left) != null ? u : []).filter((f) => !(n != null && n.includes(f))), ...n],
|
|
1811
|
-
right: ((
|
|
1811
|
+
right: ((g = i?.right) != null ? g : []).filter((f) => !(n != null && n.includes(f)))
|
|
1812
1812
|
};
|
|
1813
1813
|
}
|
|
1814
1814
|
return {
|
|
@@ -1871,7 +1871,7 @@ const Mo = {
|
|
|
1871
1871
|
deltaPercentage: null,
|
|
1872
1872
|
isResizingColumn: !1,
|
|
1873
1873
|
columnSizingStart: []
|
|
1874
|
-
}),
|
|
1874
|
+
}), ko = {
|
|
1875
1875
|
getDefaultColumnDef: () => me,
|
|
1876
1876
|
getInitialState: (e) => ({
|
|
1877
1877
|
columnSizing: {},
|
|
@@ -1923,27 +1923,27 @@ const Mo = {
|
|
|
1923
1923
|
}, e.getResizeHandler = (t) => {
|
|
1924
1924
|
const n = o.getColumn(e.column.id), i = n?.getCanResize();
|
|
1925
1925
|
return (r) => {
|
|
1926
|
-
if (!n || !i || (r.persist == null || r.persist(),
|
|
1926
|
+
if (!n || !i || (r.persist == null || r.persist(), De(r) && r.touches && r.touches.length > 1))
|
|
1927
1927
|
return;
|
|
1928
|
-
const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], a =
|
|
1929
|
-
typeof
|
|
1928
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], a = De(r) ? Math.round(r.touches[0].clientX) : r.clientX, u = {}, g = (R, $) => {
|
|
1929
|
+
typeof $ == "number" && (o.setColumnSizingInfo((P) => {
|
|
1930
1930
|
var _, v;
|
|
1931
|
-
const w = o.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
1931
|
+
const w = o.options.columnResizeDirection === "rtl" ? -1 : 1, I = ($ - ((_ = P?.startOffset) != null ? _ : 0)) * w, V = Math.max(I / ((v = P?.startSize) != null ? v : 0), -0.999999);
|
|
1932
1932
|
return P.columnSizingStart.forEach((L) => {
|
|
1933
1933
|
let [k, U] = L;
|
|
1934
|
-
u[k] = Math.round(Math.max(U + U *
|
|
1934
|
+
u[k] = Math.round(Math.max(U + U * V, 0) * 100) / 100;
|
|
1935
1935
|
}), {
|
|
1936
1936
|
...P,
|
|
1937
|
-
deltaOffset:
|
|
1938
|
-
deltaPercentage:
|
|
1937
|
+
deltaOffset: I,
|
|
1938
|
+
deltaPercentage: V
|
|
1939
1939
|
};
|
|
1940
1940
|
}), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((P) => ({
|
|
1941
1941
|
...P,
|
|
1942
1942
|
...u
|
|
1943
1943
|
})));
|
|
1944
|
-
}, f = (R) =>
|
|
1945
|
-
|
|
1946
|
-
|
|
1944
|
+
}, f = (R) => g("move", R), c = (R) => {
|
|
1945
|
+
g("end", R), o.setColumnSizingInfo(($) => ({
|
|
1946
|
+
...$,
|
|
1947
1947
|
isResizingColumn: !1,
|
|
1948
1948
|
startOffset: null,
|
|
1949
1949
|
startSize: null,
|
|
@@ -1954,18 +1954,18 @@ const Mo = {
|
|
|
1954
1954
|
}, d = t || typeof document < "u" ? document : null, p = {
|
|
1955
1955
|
moveHandler: (R) => f(R.clientX),
|
|
1956
1956
|
upHandler: (R) => {
|
|
1957
|
-
d?.removeEventListener("mousemove", p.moveHandler), d?.removeEventListener("mouseup", p.upHandler),
|
|
1957
|
+
d?.removeEventListener("mousemove", p.moveHandler), d?.removeEventListener("mouseup", p.upHandler), c(R.clientX);
|
|
1958
1958
|
}
|
|
1959
1959
|
}, m = {
|
|
1960
1960
|
moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), f(R.touches[0].clientX), !1),
|
|
1961
1961
|
upHandler: (R) => {
|
|
1962
|
-
var
|
|
1963
|
-
d?.removeEventListener("touchmove", m.moveHandler), d?.removeEventListener("touchend", m.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()),
|
|
1962
|
+
var $;
|
|
1963
|
+
d?.removeEventListener("touchmove", m.moveHandler), d?.removeEventListener("touchend", m.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), c(($ = R.touches[0]) == null ? void 0 : $.clientX);
|
|
1964
1964
|
}
|
|
1965
|
-
}, h =
|
|
1965
|
+
}, h = To() ? {
|
|
1966
1966
|
passive: !1
|
|
1967
1967
|
} : !1;
|
|
1968
|
-
|
|
1968
|
+
De(r) ? (d?.addEventListener("touchmove", m.moveHandler, h), d?.addEventListener("touchend", m.upHandler, h)) : (d?.addEventListener("mousemove", p.moveHandler, h), d?.addEventListener("mouseup", p.upHandler, h)), o.setColumnSizingInfo((R) => ({
|
|
1969
1969
|
...R,
|
|
1970
1970
|
startOffset: a,
|
|
1971
1971
|
startSize: l,
|
|
@@ -2000,7 +2000,7 @@ const Mo = {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
2002
|
let he = null;
|
|
2003
|
-
function
|
|
2003
|
+
function To() {
|
|
2004
2004
|
if (typeof he == "boolean") return he;
|
|
2005
2005
|
let e = !1;
|
|
2006
2006
|
try {
|
|
@@ -2016,10 +2016,10 @@ function ko() {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
return he = e, he;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function De(e) {
|
|
2020
2020
|
return e.type === "touchstart";
|
|
2021
2021
|
}
|
|
2022
|
-
const
|
|
2022
|
+
const Ho = {
|
|
2023
2023
|
getInitialState: (e) => ({
|
|
2024
2024
|
columnVisibility: {},
|
|
2025
2025
|
...e
|
|
@@ -2067,7 +2067,7 @@ const To = {
|
|
|
2067
2067
|
function ue(e, o) {
|
|
2068
2068
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
2069
2069
|
}
|
|
2070
|
-
const
|
|
2070
|
+
const Oo = {
|
|
2071
2071
|
createTable: (e) => {
|
|
2072
2072
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
2073
2073
|
if (e._getGlobalFacetedMinMaxValues)
|
|
@@ -2095,19 +2095,19 @@ const Ho = {
|
|
|
2095
2095
|
};
|
|
2096
2096
|
},
|
|
2097
2097
|
createTable: (e) => {
|
|
2098
|
-
e.getGlobalAutoFilterFn = () =>
|
|
2098
|
+
e.getGlobalAutoFilterFn = () => X.includesString, e.getGlobalFilterFn = () => {
|
|
2099
2099
|
var o, t;
|
|
2100
2100
|
const {
|
|
2101
2101
|
globalFilterFn: n
|
|
2102
2102
|
} = e.options;
|
|
2103
|
-
return be(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o :
|
|
2103
|
+
return be(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : X[n];
|
|
2104
2104
|
}, e.setGlobalFilter = (o) => {
|
|
2105
2105
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
2106
2106
|
}, e.resetGlobalFilter = (o) => {
|
|
2107
2107
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
|
-
},
|
|
2110
|
+
}, Go = {
|
|
2111
2111
|
getInitialState: (e) => ({
|
|
2112
2112
|
expanded: {},
|
|
2113
2113
|
...e
|
|
@@ -2194,14 +2194,14 @@ const Ho = {
|
|
|
2194
2194
|
};
|
|
2195
2195
|
};
|
|
2196
2196
|
}
|
|
2197
|
-
},
|
|
2198
|
-
pageIndex:
|
|
2199
|
-
pageSize:
|
|
2200
|
-
}),
|
|
2197
|
+
}, Ge = 0, ze = 10, Ve = () => ({
|
|
2198
|
+
pageIndex: Ge,
|
|
2199
|
+
pageSize: ze
|
|
2200
|
+
}), zo = {
|
|
2201
2201
|
getInitialState: (e) => ({
|
|
2202
2202
|
...e,
|
|
2203
2203
|
pagination: {
|
|
2204
|
-
...
|
|
2204
|
+
...Ve(),
|
|
2205
2205
|
...e?.pagination
|
|
2206
2206
|
}
|
|
2207
2207
|
}),
|
|
@@ -2229,7 +2229,7 @@ const Ho = {
|
|
|
2229
2229
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(i);
|
|
2230
2230
|
}, e.resetPagination = (n) => {
|
|
2231
2231
|
var i;
|
|
2232
|
-
e.setPagination(n ?
|
|
2232
|
+
e.setPagination(n ? Ve() : (i = e.initialState.pagination) != null ? i : Ve());
|
|
2233
2233
|
}, e.setPageIndex = (n) => {
|
|
2234
2234
|
e.setPagination((i) => {
|
|
2235
2235
|
let r = ee(n, i.pageIndex);
|
|
@@ -2241,10 +2241,10 @@ const Ho = {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
}, e.resetPageIndex = (n) => {
|
|
2243
2243
|
var i, r;
|
|
2244
|
-
e.setPageIndex(n ?
|
|
2244
|
+
e.setPageIndex(n ? Ge : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : Ge);
|
|
2245
2245
|
}, e.resetPageSize = (n) => {
|
|
2246
2246
|
var i, r;
|
|
2247
|
-
e.setPageSize(n ?
|
|
2247
|
+
e.setPageSize(n ? ze : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : ze);
|
|
2248
2248
|
}, e.setPageSize = (n) => {
|
|
2249
2249
|
e.setPagination((i) => {
|
|
2250
2250
|
const r = Math.max(1, ee(n, i.pageSize)), l = i.pageSize * i.pageIndex, s = Math.floor(l / r);
|
|
@@ -2280,7 +2280,7 @@ const Ho = {
|
|
|
2280
2280
|
}, _e = () => ({
|
|
2281
2281
|
top: [],
|
|
2282
2282
|
bottom: []
|
|
2283
|
-
}),
|
|
2283
|
+
}), No = {
|
|
2284
2284
|
getInitialState: (e) => ({
|
|
2285
2285
|
rowPinning: _e(),
|
|
2286
2286
|
...e
|
|
@@ -2302,12 +2302,12 @@ const Ho = {
|
|
|
2302
2302
|
return u;
|
|
2303
2303
|
}) : [], s = /* @__PURE__ */ new Set([...l, e.id, ...r]);
|
|
2304
2304
|
o.setRowPinning((a) => {
|
|
2305
|
-
var u,
|
|
2305
|
+
var u, g;
|
|
2306
2306
|
if (t === "bottom") {
|
|
2307
|
-
var f,
|
|
2307
|
+
var f, c;
|
|
2308
2308
|
return {
|
|
2309
2309
|
top: ((f = a?.top) != null ? f : []).filter((m) => !(s != null && s.has(m))),
|
|
2310
|
-
bottom: [...((
|
|
2310
|
+
bottom: [...((c = a?.bottom) != null ? c : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)]
|
|
2311
2311
|
};
|
|
2312
2312
|
}
|
|
2313
2313
|
if (t === "top") {
|
|
@@ -2319,7 +2319,7 @@ const Ho = {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
return {
|
|
2321
2321
|
top: ((u = a?.top) != null ? u : []).filter((m) => !(s != null && s.has(m))),
|
|
2322
|
-
bottom: ((
|
|
2322
|
+
bottom: ((g = a?.bottom) != null ? g : []).filter((m) => !(s != null && s.has(m)))
|
|
2323
2323
|
};
|
|
2324
2324
|
});
|
|
2325
2325
|
}, e.getCanPin = () => {
|
|
@@ -2381,7 +2381,7 @@ const Ho = {
|
|
|
2381
2381
|
return o.filter((r) => !i.has(r.id));
|
|
2382
2382
|
}, b(e.options, "debugRows", "getCenterRows"));
|
|
2383
2383
|
}
|
|
2384
|
-
},
|
|
2384
|
+
}, jo = {
|
|
2385
2385
|
getInitialState: (e) => ({
|
|
2386
2386
|
rowSelection: {},
|
|
2387
2387
|
...e
|
|
@@ -2416,7 +2416,7 @@ const Ho = {
|
|
|
2416
2416
|
...t
|
|
2417
2417
|
};
|
|
2418
2418
|
return e.getRowModel().rows.forEach((r) => {
|
|
2419
|
-
|
|
2419
|
+
Ne(i, r.id, n, !0, e);
|
|
2420
2420
|
}), i;
|
|
2421
2421
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = F(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Me(e, t) : {
|
|
2422
2422
|
rows: [],
|
|
@@ -2465,23 +2465,23 @@ const Ho = {
|
|
|
2465
2465
|
const s = {
|
|
2466
2466
|
...r
|
|
2467
2467
|
};
|
|
2468
|
-
return
|
|
2468
|
+
return Ne(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
|
|
2469
2469
|
});
|
|
2470
2470
|
}, e.getIsSelected = () => {
|
|
2471
2471
|
const {
|
|
2472
2472
|
rowSelection: t
|
|
2473
2473
|
} = o.getState();
|
|
2474
|
-
return
|
|
2474
|
+
return Je(e, t);
|
|
2475
2475
|
}, e.getIsSomeSelected = () => {
|
|
2476
2476
|
const {
|
|
2477
2477
|
rowSelection: t
|
|
2478
2478
|
} = o.getState();
|
|
2479
|
-
return
|
|
2479
|
+
return je(e, t) === "some";
|
|
2480
2480
|
}, e.getIsAllSubRowsSelected = () => {
|
|
2481
2481
|
const {
|
|
2482
2482
|
rowSelection: t
|
|
2483
2483
|
} = o.getState();
|
|
2484
|
-
return
|
|
2484
|
+
return je(e, t) === "all";
|
|
2485
2485
|
}, e.getCanSelect = () => {
|
|
2486
2486
|
var t;
|
|
2487
2487
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -2499,20 +2499,20 @@ const Ho = {
|
|
|
2499
2499
|
};
|
|
2500
2500
|
};
|
|
2501
2501
|
}
|
|
2502
|
-
},
|
|
2502
|
+
}, Ne = (e, o, t, n, i) => {
|
|
2503
2503
|
var r;
|
|
2504
2504
|
const l = i.getRow(o, !0);
|
|
2505
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) =>
|
|
2505
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Ne(e, s.id, t, n, i));
|
|
2506
2506
|
};
|
|
2507
2507
|
function Me(e, o) {
|
|
2508
2508
|
const t = e.getState().rowSelection, n = [], i = {}, r = function(l, s) {
|
|
2509
2509
|
return l.map((a) => {
|
|
2510
2510
|
var u;
|
|
2511
|
-
const
|
|
2512
|
-
if (
|
|
2511
|
+
const g = Je(a, t);
|
|
2512
|
+
if (g && (n.push(a), i[a.id] = a), (u = a.subRows) != null && u.length && (a = {
|
|
2513
2513
|
...a,
|
|
2514
2514
|
subRows: r(a.subRows)
|
|
2515
|
-
}),
|
|
2515
|
+
}), g)
|
|
2516
2516
|
return a;
|
|
2517
2517
|
}).filter(Boolean);
|
|
2518
2518
|
};
|
|
@@ -2522,33 +2522,33 @@ function Me(e, o) {
|
|
|
2522
2522
|
rowsById: i
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function Je(e, o) {
|
|
2526
2526
|
var t;
|
|
2527
2527
|
return (t = o[e.id]) != null ? t : !1;
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2529
|
+
function je(e, o, t) {
|
|
2530
2530
|
var n;
|
|
2531
2531
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
2532
2532
|
let i = !0, r = !1;
|
|
2533
2533
|
return e.subRows.forEach((l) => {
|
|
2534
|
-
if (!(r && !i) && (l.getCanSelect() && (
|
|
2535
|
-
const s =
|
|
2534
|
+
if (!(r && !i) && (l.getCanSelect() && (Je(l, o) ? r = !0 : i = !1), l.subRows && l.subRows.length)) {
|
|
2535
|
+
const s = je(l, o);
|
|
2536
2536
|
s === "all" ? r = !0 : (s === "some" && (r = !0), i = !1);
|
|
2537
2537
|
}
|
|
2538
2538
|
}), i ? "all" : r ? "some" : !1;
|
|
2539
2539
|
}
|
|
2540
|
-
const
|
|
2540
|
+
const qe = /([0-9]+)/gm, qo = (e, o, t) => Nt(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Ko = (e, o, t) => Nt(ne(e.getValue(t)), ne(o.getValue(t))), Uo = (e, o, t) => Ze(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Wo = (e, o, t) => Ze(ne(e.getValue(t)), ne(o.getValue(t))), Qo = (e, o, t) => {
|
|
2541
2541
|
const n = e.getValue(t), i = o.getValue(t);
|
|
2542
2542
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
2543
|
-
},
|
|
2544
|
-
function
|
|
2543
|
+
}, Xo = (e, o, t) => Ze(e.getValue(t), o.getValue(t));
|
|
2544
|
+
function Ze(e, o) {
|
|
2545
2545
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
2546
2546
|
}
|
|
2547
2547
|
function ne(e) {
|
|
2548
2548
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const t = e.split(
|
|
2550
|
+
function Nt(e, o) {
|
|
2551
|
+
const t = e.split(qe).filter(Boolean), n = o.split(qe).filter(Boolean);
|
|
2552
2552
|
for (; t.length && n.length; ) {
|
|
2553
2553
|
const i = t.shift(), r = n.shift(), l = parseInt(i, 10), s = parseInt(r, 10), a = [l, s].sort();
|
|
2554
2554
|
if (isNaN(a[0])) {
|
|
@@ -2568,13 +2568,13 @@ function jt(e, o) {
|
|
|
2568
2568
|
return t.length - n.length;
|
|
2569
2569
|
}
|
|
2570
2570
|
const se = {
|
|
2571
|
-
alphanumeric:
|
|
2572
|
-
alphanumericCaseSensitive:
|
|
2573
|
-
text:
|
|
2574
|
-
textCaseSensitive:
|
|
2575
|
-
datetime:
|
|
2576
|
-
basic:
|
|
2577
|
-
},
|
|
2571
|
+
alphanumeric: qo,
|
|
2572
|
+
alphanumericCaseSensitive: Ko,
|
|
2573
|
+
text: Uo,
|
|
2574
|
+
textCaseSensitive: Wo,
|
|
2575
|
+
datetime: Qo,
|
|
2576
|
+
basic: Xo
|
|
2577
|
+
}, Yo = {
|
|
2578
2578
|
getInitialState: (e) => ({
|
|
2579
2579
|
sorting: [],
|
|
2580
2580
|
...e
|
|
@@ -2595,7 +2595,7 @@ const se = {
|
|
|
2595
2595
|
const r = i?.getValue(e.id);
|
|
2596
2596
|
if (Object.prototype.toString.call(r) === "[object Date]")
|
|
2597
2597
|
return se.datetime;
|
|
2598
|
-
if (typeof r == "string" && (n = !0, r.split(
|
|
2598
|
+
if (typeof r == "string" && (n = !0, r.split(qe).length > 1))
|
|
2599
2599
|
return se.alphanumeric;
|
|
2600
2600
|
}
|
|
2601
2601
|
return n ? se.text : se.basic;
|
|
@@ -2611,17 +2611,17 @@ const se = {
|
|
|
2611
2611
|
const i = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
|
|
2612
2612
|
o.setSorting((l) => {
|
|
2613
2613
|
const s = l?.find((d) => d.id === e.id), a = l?.findIndex((d) => d.id === e.id);
|
|
2614
|
-
let u = [],
|
|
2615
|
-
if (l != null && l.length && e.getCanMultiSort() && n ? s ?
|
|
2616
|
-
var
|
|
2614
|
+
let u = [], g, f = r ? t : i === "desc";
|
|
2615
|
+
if (l != null && l.length && e.getCanMultiSort() && n ? s ? g = "toggle" : g = "add" : l != null && l.length && a !== l.length - 1 ? g = "replace" : s ? g = "toggle" : g = "replace", g === "toggle" && (r || i || (g = "remove")), g === "add") {
|
|
2616
|
+
var c;
|
|
2617
2617
|
u = [...l, {
|
|
2618
2618
|
id: e.id,
|
|
2619
2619
|
desc: f
|
|
2620
|
-
}], u.splice(0, u.length - ((
|
|
2621
|
-
} else
|
|
2620
|
+
}], u.splice(0, u.length - ((c = o.options.maxMultiSortColCount) != null ? c : Number.MAX_SAFE_INTEGER));
|
|
2621
|
+
} else g === "toggle" ? u = l.map((d) => d.id === e.id ? {
|
|
2622
2622
|
...d,
|
|
2623
2623
|
desc: f
|
|
2624
|
-
} : d) :
|
|
2624
|
+
} : d) : g === "remove" ? u = l.filter((d) => d.id !== e.id) : u = [{
|
|
2625
2625
|
id: e.id,
|
|
2626
2626
|
desc: f
|
|
2627
2627
|
}];
|
|
@@ -2663,47 +2663,47 @@ const se = {
|
|
|
2663
2663
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
2664
2664
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
2665
2665
|
}
|
|
2666
|
-
},
|
|
2667
|
-
wo,
|
|
2668
|
-
To,
|
|
2669
|
-
Mo,
|
|
2670
|
-
Eo,
|
|
2666
|
+
}, Jo = [
|
|
2671
2667
|
Co,
|
|
2672
|
-
yo,
|
|
2673
2668
|
Ho,
|
|
2669
|
+
Eo,
|
|
2670
|
+
Lo,
|
|
2671
|
+
yo,
|
|
2672
|
+
Ro,
|
|
2673
|
+
Oo,
|
|
2674
2674
|
//depends on ColumnFaceting
|
|
2675
2675
|
Bo,
|
|
2676
2676
|
//depends on ColumnFiltering
|
|
2677
|
-
|
|
2678
|
-
|
|
2677
|
+
Yo,
|
|
2678
|
+
_o,
|
|
2679
2679
|
//depends on RowSorting
|
|
2680
|
-
Oo,
|
|
2681
2680
|
Go,
|
|
2682
2681
|
zo,
|
|
2683
2682
|
No,
|
|
2684
|
-
|
|
2683
|
+
jo,
|
|
2684
|
+
ko
|
|
2685
2685
|
];
|
|
2686
|
-
function
|
|
2686
|
+
function Zo(e) {
|
|
2687
2687
|
var o, t;
|
|
2688
2688
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
2689
|
-
const n = [...
|
|
2689
|
+
const n = [...Jo, ...(o = e._features) != null ? o : []];
|
|
2690
2690
|
let i = {
|
|
2691
2691
|
_features: n
|
|
2692
2692
|
};
|
|
2693
|
-
const r = i._features.reduce((
|
|
2693
|
+
const r = i._features.reduce((c, d) => Object.assign(c, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(i)), {}), l = (c) => i.options.mergeOptions ? i.options.mergeOptions(r, c) : {
|
|
2694
2694
|
...r,
|
|
2695
|
-
...
|
|
2695
|
+
...c
|
|
2696
2696
|
};
|
|
2697
2697
|
let a = {
|
|
2698
2698
|
...{},
|
|
2699
2699
|
...(t = e.initialState) != null ? t : {}
|
|
2700
2700
|
};
|
|
2701
|
-
i._features.forEach((
|
|
2701
|
+
i._features.forEach((c) => {
|
|
2702
2702
|
var d;
|
|
2703
|
-
a = (d =
|
|
2703
|
+
a = (d = c.getInitialState == null ? void 0 : c.getInitialState(a)) != null ? d : a;
|
|
2704
2704
|
});
|
|
2705
2705
|
const u = [];
|
|
2706
|
-
let
|
|
2706
|
+
let g = !1;
|
|
2707
2707
|
const f = {
|
|
2708
2708
|
_features: n,
|
|
2709
2709
|
options: {
|
|
@@ -2711,11 +2711,11 @@ function Jo(e) {
|
|
|
2711
2711
|
...e
|
|
2712
2712
|
},
|
|
2713
2713
|
initialState: a,
|
|
2714
|
-
_queue: (
|
|
2715
|
-
u.push(
|
|
2714
|
+
_queue: (c) => {
|
|
2715
|
+
u.push(c), g || (g = !0, Promise.resolve().then(() => {
|
|
2716
2716
|
for (; u.length; )
|
|
2717
2717
|
u.shift()();
|
|
2718
|
-
|
|
2718
|
+
g = !1;
|
|
2719
2719
|
}).catch((d) => setTimeout(() => {
|
|
2720
2720
|
throw d;
|
|
2721
2721
|
})));
|
|
@@ -2723,32 +2723,32 @@ function Jo(e) {
|
|
|
2723
2723
|
reset: () => {
|
|
2724
2724
|
i.setState(i.initialState);
|
|
2725
2725
|
},
|
|
2726
|
-
setOptions: (
|
|
2727
|
-
const d = ee(
|
|
2726
|
+
setOptions: (c) => {
|
|
2727
|
+
const d = ee(c, i.options);
|
|
2728
2728
|
i.options = l(d);
|
|
2729
2729
|
},
|
|
2730
2730
|
getState: () => i.options.state,
|
|
2731
|
-
setState: (
|
|
2732
|
-
i.options.onStateChange == null || i.options.onStateChange(
|
|
2731
|
+
setState: (c) => {
|
|
2732
|
+
i.options.onStateChange == null || i.options.onStateChange(c);
|
|
2733
2733
|
},
|
|
2734
|
-
_getRowId: (
|
|
2734
|
+
_getRowId: (c, d, p) => {
|
|
2735
2735
|
var m;
|
|
2736
|
-
return (m = i.options.getRowId == null ? void 0 : i.options.getRowId(
|
|
2736
|
+
return (m = i.options.getRowId == null ? void 0 : i.options.getRowId(c, d, p)) != null ? m : `${p ? [p.id, d].join(".") : d}`;
|
|
2737
2737
|
},
|
|
2738
2738
|
getCoreRowModel: () => (i._getCoreRowModel || (i._getCoreRowModel = i.options.getCoreRowModel(i)), i._getCoreRowModel()),
|
|
2739
2739
|
// The final calls start at the bottom of the model,
|
|
2740
2740
|
// expanded rows, which then work their way up
|
|
2741
2741
|
getRowModel: () => i.getPaginationRowModel(),
|
|
2742
2742
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2743
|
-
getRow: (
|
|
2744
|
-
let p = (d ? i.getPrePaginationRowModel() : i.getRowModel()).rowsById[
|
|
2745
|
-
if (!p && (p = i.getCoreRowModel().rowsById[
|
|
2746
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${
|
|
2743
|
+
getRow: (c, d) => {
|
|
2744
|
+
let p = (d ? i.getPrePaginationRowModel() : i.getRowModel()).rowsById[c];
|
|
2745
|
+
if (!p && (p = i.getCoreRowModel().rowsById[c], !p))
|
|
2746
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${c}`) : new Error();
|
|
2747
2747
|
return p;
|
|
2748
2748
|
},
|
|
2749
|
-
_getDefaultColumnDef: F(() => [i.options.defaultColumn], (
|
|
2749
|
+
_getDefaultColumnDef: F(() => [i.options.defaultColumn], (c) => {
|
|
2750
2750
|
var d;
|
|
2751
|
-
return
|
|
2751
|
+
return c = (d = c) != null ? d : {}, {
|
|
2752
2752
|
header: (p) => {
|
|
2753
2753
|
const m = p.header.column.columnDef;
|
|
2754
2754
|
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
@@ -2759,38 +2759,38 @@ function Jo(e) {
|
|
|
2759
2759
|
return (m = (h = p.renderValue()) == null || h.toString == null ? void 0 : h.toString()) != null ? m : null;
|
|
2760
2760
|
},
|
|
2761
2761
|
...i._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
2762
|
-
...
|
|
2762
|
+
...c
|
|
2763
2763
|
};
|
|
2764
2764
|
}, b(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2765
2765
|
_getColumnDefs: () => i.options.columns,
|
|
2766
|
-
getAllColumns: F(() => [i._getColumnDefs()], (
|
|
2766
|
+
getAllColumns: F(() => [i._getColumnDefs()], (c) => {
|
|
2767
2767
|
const d = function(p, m, h) {
|
|
2768
2768
|
return h === void 0 && (h = 0), p.map((R) => {
|
|
2769
|
-
const
|
|
2770
|
-
return
|
|
2769
|
+
const $ = wo(i, R, h, m), P = R;
|
|
2770
|
+
return $.columns = P.columns ? d(P.columns, $, h + 1) : [], $;
|
|
2771
2771
|
});
|
|
2772
2772
|
};
|
|
2773
|
-
return d(
|
|
2773
|
+
return d(c);
|
|
2774
2774
|
}, b(e, "debugColumns", "getAllColumns")),
|
|
2775
|
-
getAllFlatColumns: F(() => [i.getAllColumns()], (
|
|
2776
|
-
_getAllFlatColumnsById: F(() => [i.getAllFlatColumns()], (
|
|
2777
|
-
getAllLeafColumns: F(() => [i.getAllColumns(), i._getOrderColumnsFn()], (
|
|
2778
|
-
let p =
|
|
2775
|
+
getAllFlatColumns: F(() => [i.getAllColumns()], (c) => c.flatMap((d) => d.getFlatColumns()), b(e, "debugColumns", "getAllFlatColumns")),
|
|
2776
|
+
_getAllFlatColumnsById: F(() => [i.getAllFlatColumns()], (c) => c.reduce((d, p) => (d[p.id] = p, d), {}), b(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2777
|
+
getAllLeafColumns: F(() => [i.getAllColumns(), i._getOrderColumnsFn()], (c, d) => {
|
|
2778
|
+
let p = c.flatMap((m) => m.getLeafColumns());
|
|
2779
2779
|
return d(p);
|
|
2780
2780
|
}, b(e, "debugColumns", "getAllLeafColumns")),
|
|
2781
|
-
getColumn: (
|
|
2782
|
-
const d = i._getAllFlatColumnsById()[
|
|
2783
|
-
return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${
|
|
2781
|
+
getColumn: (c) => {
|
|
2782
|
+
const d = i._getAllFlatColumnsById()[c];
|
|
2783
|
+
return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${c}' does not exist.`), d;
|
|
2784
2784
|
}
|
|
2785
2785
|
};
|
|
2786
2786
|
Object.assign(i, f);
|
|
2787
|
-
for (let
|
|
2788
|
-
const d = i._features[
|
|
2787
|
+
for (let c = 0; c < i._features.length; c++) {
|
|
2788
|
+
const d = i._features[c];
|
|
2789
2789
|
d == null || d.createTable == null || d.createTable(i);
|
|
2790
2790
|
}
|
|
2791
2791
|
return i;
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function jt() {
|
|
2794
2794
|
return (e) => F(() => [e.options.data], (o) => {
|
|
2795
2795
|
const t = {
|
|
2796
2796
|
rows: [],
|
|
@@ -2800,10 +2800,10 @@ function qt() {
|
|
|
2800
2800
|
r === void 0 && (r = 0);
|
|
2801
2801
|
const s = [];
|
|
2802
2802
|
for (let u = 0; u < i.length; u++) {
|
|
2803
|
-
const
|
|
2804
|
-
if (t.flatRows.push(
|
|
2803
|
+
const g = Xe(e, e._getRowId(i[u], u, l), i[u], u, r, void 0, l?.id);
|
|
2804
|
+
if (t.flatRows.push(g), t.rowsById[g.id] = g, s.push(g), e.options.getSubRows) {
|
|
2805
2805
|
var a;
|
|
2806
|
-
|
|
2806
|
+
g.originalSubRows = e.options.getSubRows(i[u], u), (a = g.originalSubRows) != null && a.length && (g.subRows = n(g.originalSubRows, r + 1, g));
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
return s;
|
|
@@ -2811,7 +2811,7 @@ function qt() {
|
|
|
2811
2811
|
return t.rows = n(o), t;
|
|
2812
2812
|
}, b(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function ei(e) {
|
|
2815
2815
|
const o = [], t = (n) => {
|
|
2816
2816
|
var i;
|
|
2817
2817
|
o.push(n), (i = n.subRows) != null && i.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2822,31 +2822,31 @@ function Zo(e) {
|
|
|
2822
2822
|
rowsById: e.rowsById
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
2825
|
-
function ei(e, o, t) {
|
|
2826
|
-
return t.options.filterFromLeafRows ? ti(e, o, t) : ni(e, o, t);
|
|
2827
|
-
}
|
|
2828
2825
|
function ti(e, o, t) {
|
|
2826
|
+
return t.options.filterFromLeafRows ? ni(e, o, t) : oi(e, o, t);
|
|
2827
|
+
}
|
|
2828
|
+
function ni(e, o, t) {
|
|
2829
2829
|
var n;
|
|
2830
2830
|
const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(a, u) {
|
|
2831
2831
|
u === void 0 && (u = 0);
|
|
2832
|
-
const
|
|
2833
|
-
for (let
|
|
2832
|
+
const g = [];
|
|
2833
|
+
for (let c = 0; c < a.length; c++) {
|
|
2834
2834
|
var f;
|
|
2835
|
-
let d = a[
|
|
2836
|
-
const p =
|
|
2835
|
+
let d = a[c];
|
|
2836
|
+
const p = Xe(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
|
|
2837
2837
|
if (p.columnFilters = d.columnFilters, (f = d.subRows) != null && f.length && u < l) {
|
|
2838
2838
|
if (p.subRows = s(d.subRows, u + 1), d = p, o(d) && !p.subRows.length) {
|
|
2839
|
-
|
|
2839
|
+
g.push(d), r[d.id] = d, i.push(d);
|
|
2840
2840
|
continue;
|
|
2841
2841
|
}
|
|
2842
2842
|
if (o(d) || p.subRows.length) {
|
|
2843
|
-
|
|
2843
|
+
g.push(d), r[d.id] = d, i.push(d);
|
|
2844
2844
|
continue;
|
|
2845
2845
|
}
|
|
2846
2846
|
} else
|
|
2847
|
-
d = p, o(d) && (
|
|
2847
|
+
d = p, o(d) && (g.push(d), r[d.id] = d, i.push(d));
|
|
2848
2848
|
}
|
|
2849
|
-
return
|
|
2849
|
+
return g;
|
|
2850
2850
|
};
|
|
2851
2851
|
return {
|
|
2852
2852
|
rows: s(e),
|
|
@@ -2854,23 +2854,23 @@ function ti(e, o, t) {
|
|
|
2854
2854
|
rowsById: r
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function oi(e, o, t) {
|
|
2858
2858
|
var n;
|
|
2859
2859
|
const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(a, u) {
|
|
2860
2860
|
u === void 0 && (u = 0);
|
|
2861
|
-
const
|
|
2862
|
-
for (let
|
|
2863
|
-
let d = a[
|
|
2861
|
+
const g = [];
|
|
2862
|
+
for (let c = 0; c < a.length; c++) {
|
|
2863
|
+
let d = a[c];
|
|
2864
2864
|
if (o(d)) {
|
|
2865
2865
|
var f;
|
|
2866
2866
|
if ((f = d.subRows) != null && f.length && u < l) {
|
|
2867
|
-
const m =
|
|
2867
|
+
const m = Xe(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
|
|
2868
2868
|
m.subRows = s(d.subRows, u + 1), d = m;
|
|
2869
2869
|
}
|
|
2870
|
-
|
|
2870
|
+
g.push(d), i.push(d), r[d.id] = d;
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
|
-
return
|
|
2873
|
+
return g;
|
|
2874
2874
|
};
|
|
2875
2875
|
return {
|
|
2876
2876
|
rows: s(e),
|
|
@@ -2878,17 +2878,17 @@ function ni(e, o, t) {
|
|
|
2878
2878
|
rowsById: r
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
|
-
function
|
|
2881
|
+
function qt() {
|
|
2882
2882
|
return (e) => F(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2883
2883
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2884
|
-
for (let
|
|
2885
|
-
o.flatRows[
|
|
2884
|
+
for (let c = 0; c < o.flatRows.length; c++)
|
|
2885
|
+
o.flatRows[c].columnFilters = {}, o.flatRows[c].columnFiltersMeta = {};
|
|
2886
2886
|
return o;
|
|
2887
2887
|
}
|
|
2888
2888
|
const i = [], r = [];
|
|
2889
|
-
(t ?? []).forEach((
|
|
2889
|
+
(t ?? []).forEach((c) => {
|
|
2890
2890
|
var d;
|
|
2891
|
-
const p = e.getColumn(
|
|
2891
|
+
const p = e.getColumn(c.id);
|
|
2892
2892
|
if (!p)
|
|
2893
2893
|
return;
|
|
2894
2894
|
const m = p.getFilterFn();
|
|
@@ -2897,23 +2897,23 @@ function Kt() {
|
|
|
2897
2897
|
return;
|
|
2898
2898
|
}
|
|
2899
2899
|
i.push({
|
|
2900
|
-
id:
|
|
2900
|
+
id: c.id,
|
|
2901
2901
|
filterFn: m,
|
|
2902
|
-
resolvedValue: (d = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(
|
|
2902
|
+
resolvedValue: (d = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(c.value)) != null ? d : c.value
|
|
2903
2903
|
});
|
|
2904
2904
|
});
|
|
2905
|
-
const l = (t ?? []).map((
|
|
2906
|
-
n && s && a.length && (l.push("__global__"), a.forEach((
|
|
2905
|
+
const l = (t ?? []).map((c) => c.id), s = e.getGlobalFilterFn(), a = e.getAllLeafColumns().filter((c) => c.getCanGlobalFilter());
|
|
2906
|
+
n && s && a.length && (l.push("__global__"), a.forEach((c) => {
|
|
2907
2907
|
var d;
|
|
2908
2908
|
r.push({
|
|
2909
|
-
id:
|
|
2909
|
+
id: c.id,
|
|
2910
2910
|
filterFn: s,
|
|
2911
2911
|
resolvedValue: (d = s.resolveFilterValue == null ? void 0 : s.resolveFilterValue(n)) != null ? d : n
|
|
2912
2912
|
});
|
|
2913
2913
|
}));
|
|
2914
|
-
let u,
|
|
2915
|
-
for (let
|
|
2916
|
-
const d = o.flatRows[
|
|
2914
|
+
let u, g;
|
|
2915
|
+
for (let c = 0; c < o.flatRows.length; c++) {
|
|
2916
|
+
const d = o.flatRows[c];
|
|
2917
2917
|
if (d.columnFilters = {}, i.length)
|
|
2918
2918
|
for (let p = 0; p < i.length; p++) {
|
|
2919
2919
|
u = i[p];
|
|
@@ -2924,9 +2924,9 @@ function Kt() {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
if (r.length) {
|
|
2926
2926
|
for (let p = 0; p < r.length; p++) {
|
|
2927
|
-
|
|
2928
|
-
const m =
|
|
2929
|
-
if (
|
|
2927
|
+
g = r[p];
|
|
2928
|
+
const m = g.id;
|
|
2929
|
+
if (g.filterFn(d, m, g.resolvedValue, (h) => {
|
|
2930
2930
|
d.columnFiltersMeta[m] = h;
|
|
2931
2931
|
})) {
|
|
2932
2932
|
d.columnFilters.__global__ = !0;
|
|
@@ -2936,16 +2936,16 @@ function Kt() {
|
|
|
2936
2936
|
d.columnFilters.__global__ !== !0 && (d.columnFilters.__global__ = !1);
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
|
-
const f = (
|
|
2939
|
+
const f = (c) => {
|
|
2940
2940
|
for (let d = 0; d < l.length; d++)
|
|
2941
|
-
if (
|
|
2941
|
+
if (c.columnFilters[l[d]] === !1)
|
|
2942
2942
|
return !1;
|
|
2943
2943
|
return !0;
|
|
2944
2944
|
};
|
|
2945
|
-
return
|
|
2945
|
+
return ti(o.rows, f, e);
|
|
2946
2946
|
}, b(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function Kt(e) {
|
|
2949
2949
|
return (o) => F(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2950
2950
|
if (!n.rows.length)
|
|
2951
2951
|
return n;
|
|
@@ -2958,25 +2958,25 @@ function Ut(e) {
|
|
|
2958
2958
|
flatRows: s,
|
|
2959
2959
|
rowsById: a
|
|
2960
2960
|
} = n;
|
|
2961
|
-
const u = i * r,
|
|
2962
|
-
l = l.slice(u,
|
|
2961
|
+
const u = i * r, g = u + i;
|
|
2962
|
+
l = l.slice(u, g);
|
|
2963
2963
|
let f;
|
|
2964
2964
|
o.options.paginateExpandedRows ? f = {
|
|
2965
2965
|
rows: l,
|
|
2966
2966
|
flatRows: s,
|
|
2967
2967
|
rowsById: a
|
|
2968
|
-
} : f =
|
|
2968
|
+
} : f = ei({
|
|
2969
2969
|
rows: l,
|
|
2970
2970
|
flatRows: s,
|
|
2971
2971
|
rowsById: a
|
|
2972
2972
|
}), f.flatRows = [];
|
|
2973
|
-
const
|
|
2974
|
-
f.flatRows.push(d), d.subRows.length && d.subRows.forEach(
|
|
2973
|
+
const c = (d) => {
|
|
2974
|
+
f.flatRows.push(d), d.subRows.length && d.subRows.forEach(c);
|
|
2975
2975
|
};
|
|
2976
|
-
return f.rows.forEach(
|
|
2976
|
+
return f.rows.forEach(c), f;
|
|
2977
2977
|
}, b(o.options, "debugTable", "getPaginationRowModel"));
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2979
|
+
function Ut() {
|
|
2980
2980
|
return (e) => F(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2981
2981
|
if (!t.rows.length || !(o != null && o.length))
|
|
2982
2982
|
return t;
|
|
@@ -2993,29 +2993,29 @@ function Wt() {
|
|
|
2993
2993
|
});
|
|
2994
2994
|
});
|
|
2995
2995
|
const s = (a) => {
|
|
2996
|
-
const u = a.map((
|
|
2997
|
-
...
|
|
2996
|
+
const u = a.map((g) => ({
|
|
2997
|
+
...g
|
|
2998
2998
|
}));
|
|
2999
|
-
return u.sort((
|
|
2999
|
+
return u.sort((g, f) => {
|
|
3000
3000
|
for (let d = 0; d < r.length; d += 1) {
|
|
3001
|
-
var
|
|
3002
|
-
const p = r[d], m = l[p.id], h = m.sortUndefined, R = (
|
|
3003
|
-
let
|
|
3001
|
+
var c;
|
|
3002
|
+
const p = r[d], m = l[p.id], h = m.sortUndefined, R = (c = p?.desc) != null ? c : !1;
|
|
3003
|
+
let $ = 0;
|
|
3004
3004
|
if (h) {
|
|
3005
|
-
const P =
|
|
3005
|
+
const P = g.getValue(p.id), _ = f.getValue(p.id), v = P === void 0, w = _ === void 0;
|
|
3006
3006
|
if (v || w) {
|
|
3007
3007
|
if (h === "first") return v ? -1 : 1;
|
|
3008
3008
|
if (h === "last") return v ? 1 : -1;
|
|
3009
|
-
|
|
3009
|
+
$ = v && w ? 0 : v ? h : -h;
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
if (
|
|
3013
|
-
return R && (
|
|
3012
|
+
if ($ === 0 && ($ = m.sortingFn(g, f, p.id)), $ !== 0)
|
|
3013
|
+
return R && ($ *= -1), m.invertSorting && ($ *= -1), $;
|
|
3014
3014
|
}
|
|
3015
|
-
return
|
|
3016
|
-
}), u.forEach((
|
|
3015
|
+
return g.index - f.index;
|
|
3016
|
+
}), u.forEach((g) => {
|
|
3017
3017
|
var f;
|
|
3018
|
-
i.push(
|
|
3018
|
+
i.push(g), (f = g.subRows) != null && f.length && (g.subRows = s(g.subRows));
|
|
3019
3019
|
}), u;
|
|
3020
3020
|
};
|
|
3021
3021
|
return {
|
|
@@ -3038,9 +3038,9 @@ function Wt() {
|
|
|
3038
3038
|
function ve() {
|
|
3039
3039
|
return !0;
|
|
3040
3040
|
}
|
|
3041
|
-
const
|
|
3041
|
+
const ii = Symbol("merge-proxy"), ri = {
|
|
3042
3042
|
get(e, o, t) {
|
|
3043
|
-
return o ===
|
|
3043
|
+
return o === ii ? t : e.get(o);
|
|
3044
3044
|
},
|
|
3045
3045
|
has(e, o) {
|
|
3046
3046
|
return e.has(o);
|
|
@@ -3085,18 +3085,18 @@ function ae() {
|
|
|
3085
3085
|
for (let i = 0; i < o.length; i++) n.push(...Object.keys(Ee(o[i])));
|
|
3086
3086
|
return [...Array.from(new Set(n))];
|
|
3087
3087
|
}
|
|
3088
|
-
},
|
|
3088
|
+
}, ri);
|
|
3089
3089
|
}
|
|
3090
3090
|
const fe = Q({
|
|
3091
3091
|
props: ["render", "props"],
|
|
3092
|
-
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ?
|
|
3092
|
+
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? Y(e.render, e.props) : e.render
|
|
3093
3093
|
});
|
|
3094
|
-
function
|
|
3094
|
+
function mt(e) {
|
|
3095
3095
|
return ae(e, {
|
|
3096
3096
|
data: C(e.data)
|
|
3097
3097
|
});
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function Wt(e) {
|
|
3100
3100
|
const o = Jt(e.data), t = ae({
|
|
3101
3101
|
state: {},
|
|
3102
3102
|
// Dummy state
|
|
@@ -3110,10 +3110,10 @@ function Qt(e) {
|
|
|
3110
3110
|
...l
|
|
3111
3111
|
} : ae(r, l);
|
|
3112
3112
|
}
|
|
3113
|
-
}, o ?
|
|
3113
|
+
}, o ? mt(e) : e), n = Zo(t);
|
|
3114
3114
|
if (o) {
|
|
3115
3115
|
const r = Zt(e.data);
|
|
3116
|
-
|
|
3116
|
+
Ct(r, () => {
|
|
3117
3117
|
n.setState((l) => ({
|
|
3118
3118
|
...l,
|
|
3119
3119
|
data: r.value
|
|
@@ -3129,7 +3129,7 @@ function Qt(e) {
|
|
|
3129
3129
|
const s = new Proxy({}, {
|
|
3130
3130
|
get: (a, u) => i.value[u]
|
|
3131
3131
|
});
|
|
3132
|
-
return ae(r, o ?
|
|
3132
|
+
return ae(r, o ? mt(e) : e, {
|
|
3133
3133
|
// merge the initialState and `options.state`
|
|
3134
3134
|
// create a new proxy on each `setOptions` call
|
|
3135
3135
|
// and get the value from state on each property access
|
|
@@ -3144,19 +3144,19 @@ function Qt(e) {
|
|
|
3144
3144
|
}), n;
|
|
3145
3145
|
}
|
|
3146
3146
|
var x = /* @__PURE__ */ ((e) => (e.BETWEEN = "between", e.CONTAINS = "contains", e.ENDS_WITH = "endsWith", e.EQUALS = "equals", e.GREATER_THAN = "greaterThan", e.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", e.IN = "in", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.IS_NOT_NULL = "isNotNull", e.IS_NULL = "isNull", e.LESS_THAN = "lessThan", e.LESS_THAN_OR_EQUAL = "lessThanOrEqual", e.LIKE = "like", e.NOT_BETWEEN = "notBetween", e.NOT_EQUAL = "notEqual", e.NOT_IN = "notIn", e.NOT_LIKE = "notLike", e.STARTS_WITH = "startsWith", e))(x || {}), T = /* @__PURE__ */ ((e) => (e.BETWEEN = "bt", e.CONTAINS = "ct", e.EMPTY = "empty", e.ENDS_WITH = "ew", e.EQUALS = "eq", e.GREATER_THAN = "gt", e.GREATER_THAN_OR_EQUAL = "gte", e.IN = "in", e.LESS_THAN = "lt", e.LESS_THAN_OR_EQUAL = "lte", e.LIKE = "like", e.NULL = "null", e.STARTS_WITH = "sw", e))(T || {});
|
|
3147
|
-
const
|
|
3147
|
+
const li = { class: "pagination" }, si = {
|
|
3148
3148
|
key: 0,
|
|
3149
3149
|
class: "items-per-page-control"
|
|
3150
|
-
},
|
|
3150
|
+
}, ai = ["value"], ui = ["value"], di = {
|
|
3151
3151
|
key: 1,
|
|
3152
3152
|
class: "page-input-control"
|
|
3153
3153
|
}, ci = {
|
|
3154
3154
|
key: 2,
|
|
3155
3155
|
class: "pagination-buttons-wrapper"
|
|
3156
|
-
},
|
|
3156
|
+
}, gi = { key: 0 }, fi = { key: 1 }, pi = { key: 1 }, mi = { key: 3 }, hi = {
|
|
3157
3157
|
name: "TablePagination"
|
|
3158
|
-
},
|
|
3159
|
-
...
|
|
3158
|
+
}, vi = /* @__PURE__ */ Q({
|
|
3159
|
+
...hi,
|
|
3160
3160
|
props: {
|
|
3161
3161
|
currentPage: {
|
|
3162
3162
|
required: !0,
|
|
@@ -3211,22 +3211,22 @@ const ri = { class: "pagination" }, li = {
|
|
|
3211
3211
|
setup(e, { emit: o }) {
|
|
3212
3212
|
const t = e, n = o, i = K(
|
|
3213
3213
|
t.defaultItemsPerPage || t.itemsPerPageOptions[0]
|
|
3214
|
-
), r =
|
|
3214
|
+
), r = B(
|
|
3215
3215
|
() => Math.ceil(t.totalItems / i.value)
|
|
3216
|
-
), l =
|
|
3217
|
-
() => Array.from({ length: r.value }, (u,
|
|
3216
|
+
), l = B(
|
|
3217
|
+
() => Array.from({ length: r.value }, (u, g) => g + 1)
|
|
3218
3218
|
), s = (u) => {
|
|
3219
|
-
const
|
|
3219
|
+
const g = parseInt(
|
|
3220
3220
|
u.target.value,
|
|
3221
3221
|
10
|
|
3222
3222
|
);
|
|
3223
|
-
i.value =
|
|
3223
|
+
i.value = g, n("update:itemsPerPage", i.value);
|
|
3224
3224
|
}, a = (u) => {
|
|
3225
|
-
const
|
|
3226
|
-
!isNaN(
|
|
3225
|
+
const g = parseInt(u.toString(), 10) - 1;
|
|
3226
|
+
!isNaN(g) && g >= 0 && g < r.value && n("update:currentPage", g);
|
|
3227
3227
|
};
|
|
3228
|
-
return (u,
|
|
3229
|
-
e.showItemsPerPageControl ? (S(), y("div",
|
|
3228
|
+
return (u, g) => (S(), y("div", li, [
|
|
3229
|
+
e.showItemsPerPageControl ? (S(), y("div", si, [
|
|
3230
3230
|
A("span", null, N(e.itemsPerPageControlLabel), 1),
|
|
3231
3231
|
A("select", {
|
|
3232
3232
|
value: i.value,
|
|
@@ -3235,87 +3235,96 @@ const ri = { class: "pagination" }, li = {
|
|
|
3235
3235
|
(S(!0), y(H, null, z(e.itemsPerPageOptions, (f) => (S(), y("option", {
|
|
3236
3236
|
key: `items-per-page-option-${f}`,
|
|
3237
3237
|
value: f
|
|
3238
|
-
}, N(f), 9,
|
|
3239
|
-
], 40,
|
|
3240
|
-
])) :
|
|
3241
|
-
r.value > 1 && e.showPageInput ? (S(), y("div",
|
|
3238
|
+
}, N(f), 9, ui))), 128))
|
|
3239
|
+
], 40, ai)
|
|
3240
|
+
])) : D("", !0),
|
|
3241
|
+
r.value > 1 && e.showPageInput ? (S(), y("div", di, [
|
|
3242
3242
|
A("span", null, N(e.pageInputLabel), 1),
|
|
3243
|
-
M(C(
|
|
3243
|
+
M(C(Ft), {
|
|
3244
3244
|
type: "number",
|
|
3245
3245
|
"debounce-time": e.inputDebounceTime,
|
|
3246
3246
|
"onUpdate:modelValue": a
|
|
3247
3247
|
}, null, 8, ["debounce-time"])
|
|
3248
|
-
])) :
|
|
3248
|
+
])) : D("", !0),
|
|
3249
3249
|
r.value > 1 ? (S(), y("div", ci, [
|
|
3250
|
-
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div",
|
|
3250
|
+
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div", gi, [
|
|
3251
3251
|
e.showFirstLastButtons ? (S(), E(C(Z), {
|
|
3252
3252
|
key: 0,
|
|
3253
3253
|
disabled: !(e.currentPage > 0),
|
|
3254
3254
|
class: "first-page",
|
|
3255
3255
|
size: "small",
|
|
3256
|
-
onClick:
|
|
3256
|
+
onClick: g[0] || (g[0] = (f) => u.$emit("update:currentPage", 0))
|
|
3257
3257
|
}, {
|
|
3258
|
-
iconLeft:
|
|
3258
|
+
iconLeft: G(() => [
|
|
3259
3259
|
M(C(j), { icon: "prime:angle-double-left" })
|
|
3260
3260
|
]),
|
|
3261
3261
|
_: 1
|
|
3262
|
-
}, 8, ["disabled"])) :
|
|
3262
|
+
}, 8, ["disabled"])) : D("", !0),
|
|
3263
3263
|
e.showPreviousNextButtons ? (S(), E(C(Z), {
|
|
3264
3264
|
key: 1,
|
|
3265
3265
|
disabled: !(e.currentPage > 0),
|
|
3266
3266
|
class: "previous-page",
|
|
3267
3267
|
size: "small",
|
|
3268
|
-
onClick:
|
|
3268
|
+
onClick: g[1] || (g[1] = (f) => u.$emit("update:currentPage", e.currentPage - 1))
|
|
3269
3269
|
}, {
|
|
3270
|
-
iconLeft:
|
|
3270
|
+
iconLeft: G(() => [
|
|
3271
3271
|
M(C(j), { icon: "prime:angle-left" })
|
|
3272
3272
|
]),
|
|
3273
3273
|
_: 1
|
|
3274
|
-
}, 8, ["disabled"])) :
|
|
3275
|
-
])) :
|
|
3274
|
+
}, 8, ["disabled"])) : D("", !0)
|
|
3275
|
+
])) : D("", !0),
|
|
3276
3276
|
A("div", null, [
|
|
3277
3277
|
e.showPageButtons ? (S(!0), y(H, { key: 0 }, z(l.value, (f) => (S(), E(C(Z), {
|
|
3278
3278
|
key: `page-button-${f}`,
|
|
3279
|
-
class:
|
|
3279
|
+
class: ce(`page-button ${f === e.currentPage + 1 ? "active" : ""}`),
|
|
3280
3280
|
label: `${f}`,
|
|
3281
3281
|
size: "small",
|
|
3282
|
-
onClick: (
|
|
3283
|
-
}, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), y("span",
|
|
3282
|
+
onClick: (c) => u.$emit("update:currentPage", f - 1)
|
|
3283
|
+
}, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), y("span", fi, N(`${e.currentPage + 1} / ${r.value}`), 1))
|
|
3284
3284
|
]),
|
|
3285
|
-
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div",
|
|
3285
|
+
e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div", pi, [
|
|
3286
3286
|
e.showPreviousNextButtons ? (S(), E(C(Z), {
|
|
3287
3287
|
key: 0,
|
|
3288
3288
|
disabled: !(e.currentPage < r.value - 1),
|
|
3289
3289
|
class: "next-page",
|
|
3290
3290
|
size: "small",
|
|
3291
|
-
onClick:
|
|
3291
|
+
onClick: g[2] || (g[2] = (f) => u.$emit("update:currentPage", e.currentPage + 1))
|
|
3292
3292
|
}, {
|
|
3293
|
-
iconLeft:
|
|
3293
|
+
iconLeft: G(() => [
|
|
3294
3294
|
M(C(j), { icon: "prime:angle-right" })
|
|
3295
3295
|
]),
|
|
3296
3296
|
_: 1
|
|
3297
|
-
}, 8, ["disabled"])) :
|
|
3297
|
+
}, 8, ["disabled"])) : D("", !0),
|
|
3298
3298
|
e.showFirstLastButtons ? (S(), E(C(Z), {
|
|
3299
3299
|
key: 1,
|
|
3300
3300
|
disabled: !(e.currentPage < r.value - 1),
|
|
3301
3301
|
class: "last-page",
|
|
3302
3302
|
size: "small",
|
|
3303
|
-
onClick:
|
|
3303
|
+
onClick: g[3] || (g[3] = (f) => u.$emit("update:currentPage", r.value - 1))
|
|
3304
3304
|
}, {
|
|
3305
|
-
iconLeft:
|
|
3305
|
+
iconLeft: G(() => [
|
|
3306
3306
|
M(C(j), { icon: "prime:angle-double-right" })
|
|
3307
3307
|
]),
|
|
3308
3308
|
_: 1
|
|
3309
|
-
}, 8, ["disabled"])) :
|
|
3310
|
-
])) :
|
|
3311
|
-
])) : (S(), y("span",
|
|
3309
|
+
}, 8, ["disabled"])) : D("", !0)
|
|
3310
|
+
])) : D("", !0)
|
|
3311
|
+
])) : (S(), y("span", mi, N(`${e.currentPage + 1} / ${r.value}`), 1))
|
|
3312
3312
|
]));
|
|
3313
3313
|
}
|
|
3314
|
-
}), Le = 0,
|
|
3314
|
+
}), Le = 0, Si = [10, 20, 30], wi = 10, Qt = "table", Xt = {
|
|
3315
|
+
day: "2-digit",
|
|
3316
|
+
month: "2-digit",
|
|
3317
|
+
year: "numeric"
|
|
3318
|
+
}, Ci = {
|
|
3319
|
+
...Xt,
|
|
3320
|
+
hour: "2-digit",
|
|
3321
|
+
minute: "2-digit",
|
|
3322
|
+
hour12: !1
|
|
3323
|
+
}, ht = ({
|
|
3315
3324
|
value: e,
|
|
3316
3325
|
locale: o = "en-GB",
|
|
3317
3326
|
formatOptions: t
|
|
3318
|
-
}) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(o, t).format(e),
|
|
3327
|
+
}) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(o, t).format(e), yi = (e, o, t) => on(e, o, t ?? Xt), Ri = (e, o, t) => nn(e, o, t ?? Ci), de = (e) => {
|
|
3319
3328
|
switch (e) {
|
|
3320
3329
|
case x.CONTAINS:
|
|
3321
3330
|
return { operator: T.CONTAINS };
|
|
@@ -3358,7 +3367,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
3358
3367
|
default:
|
|
3359
3368
|
throw new Error(`Unhandled filter function: ${e}`);
|
|
3360
3369
|
}
|
|
3361
|
-
},
|
|
3370
|
+
}, vt = (e) => {
|
|
3362
3371
|
switch (e) {
|
|
3363
3372
|
case !1:
|
|
3364
3373
|
return "ASC";
|
|
@@ -3367,48 +3376,48 @@ const ri = { class: "pagination" }, li = {
|
|
|
3367
3376
|
default:
|
|
3368
3377
|
return "";
|
|
3369
3378
|
}
|
|
3370
|
-
},
|
|
3379
|
+
}, Ke = ({
|
|
3371
3380
|
align: e,
|
|
3372
3381
|
dataType: o
|
|
3373
|
-
}) => e || (o == "other" ? "center" : o == "number" || o == "currency" ? "right" : "left"),
|
|
3382
|
+
}) => e || (o == "other" ? "center" : o == "number" || o == "currency" ? "right" : "left"), St = (e) => {
|
|
3374
3383
|
const o = e.value.filter(
|
|
3375
3384
|
(t) => Yt(t)
|
|
3376
3385
|
);
|
|
3377
3386
|
return o.length < 1 ? null : e.filterFn === x.BETWEEN ? o.length > 1 ? {
|
|
3378
3387
|
key: e.id,
|
|
3379
|
-
...
|
|
3388
|
+
...de(e.filterFn),
|
|
3380
3389
|
value: o.slice(0, 2).join(",")
|
|
3381
|
-
} : null : e.filterFn && !
|
|
3390
|
+
} : null : e.filterFn && !Pi(e.filterFn) ? {
|
|
3382
3391
|
key: e.id,
|
|
3383
|
-
...
|
|
3392
|
+
...de(e.filterFn),
|
|
3384
3393
|
value: o[0]
|
|
3385
3394
|
} : {
|
|
3386
3395
|
key: e.id,
|
|
3387
|
-
...
|
|
3396
|
+
...de(e.filterFn || x.IN),
|
|
3388
3397
|
value: o.join(",")
|
|
3389
3398
|
};
|
|
3390
|
-
},
|
|
3399
|
+
}, Fi = (e, o, t) => {
|
|
3391
3400
|
const n = () => {
|
|
3392
3401
|
if (!o || o.length === 0) return null;
|
|
3393
|
-
const s = o.filter((a) => Array.isArray(a.value) ? a.value.filter((
|
|
3394
|
-
return s.length === 0 ? null : s.length === 1 ? Array.isArray(s[0].value) ?
|
|
3402
|
+
const s = o.filter((a) => Array.isArray(a.value) ? a.value.filter((g) => Yt(g)).length > 0 : typeof a.value == "string" ? a.value.trim() !== "" : a.value != null);
|
|
3403
|
+
return s.length === 0 ? null : s.length === 1 ? Array.isArray(s[0].value) ? St(s[0]) : {
|
|
3395
3404
|
key: s[0].id,
|
|
3396
|
-
...
|
|
3405
|
+
...de(s[0].filterFn || x.CONTAINS),
|
|
3397
3406
|
value: String(s[0].value)
|
|
3398
3407
|
} : {
|
|
3399
|
-
AND: s.map((a) => Array.isArray(a.value) ?
|
|
3408
|
+
AND: s.map((a) => Array.isArray(a.value) ? St(a) : {
|
|
3400
3409
|
key: a.id,
|
|
3401
|
-
...
|
|
3410
|
+
...de(a.filterFn || x.CONTAINS),
|
|
3402
3411
|
value: String(a.value)
|
|
3403
3412
|
})
|
|
3404
3413
|
};
|
|
3405
3414
|
}, i = () => !t || t && Object.keys(t).length === 0 ? null : t.pageSize, r = () => !t || t && Object.keys(t).length === 0 ? null : t.pageIndex * t.pageSize, l = () => !e || e.length === 0 ? null : e.length > 1 ? e.map((s) => ({
|
|
3406
3415
|
key: s.id,
|
|
3407
|
-
direction:
|
|
3416
|
+
direction: vt(s.desc)
|
|
3408
3417
|
})) : [
|
|
3409
3418
|
{
|
|
3410
3419
|
key: e[0].id,
|
|
3411
|
-
direction:
|
|
3420
|
+
direction: vt(e[0].desc)
|
|
3412
3421
|
}
|
|
3413
3422
|
];
|
|
3414
3423
|
return {
|
|
@@ -3417,29 +3426,29 @@ const ri = { class: "pagination" }, li = {
|
|
|
3417
3426
|
sort: l(),
|
|
3418
3427
|
offset: r()
|
|
3419
3428
|
};
|
|
3420
|
-
},
|
|
3429
|
+
}, bi = (e, o) => {
|
|
3421
3430
|
try {
|
|
3422
|
-
const t = o.getItem(`${
|
|
3431
|
+
const t = o.getItem(`${Qt}-${e}`);
|
|
3423
3432
|
return t && JSON.parse(t);
|
|
3424
3433
|
} catch (t) {
|
|
3425
3434
|
console.log("[Dz table] Could not restore table state", t);
|
|
3426
3435
|
}
|
|
3427
3436
|
return null;
|
|
3428
|
-
},
|
|
3437
|
+
}, wt = (e, o, t) => {
|
|
3429
3438
|
try {
|
|
3430
|
-
t.setItem(`${
|
|
3439
|
+
t.setItem(`${Qt}-${e}`, JSON.stringify(o));
|
|
3431
3440
|
} catch (n) {
|
|
3432
3441
|
console.log("[Dz table] Could not store table state", n);
|
|
3433
3442
|
}
|
|
3434
|
-
},
|
|
3443
|
+
}, Pi = (e) => [
|
|
3435
3444
|
x.IN,
|
|
3436
3445
|
x.NOT_IN,
|
|
3437
3446
|
x.BETWEEN,
|
|
3438
3447
|
x.NOT_BETWEEN
|
|
3439
|
-
].includes(e), Yt = (e) => e != null,
|
|
3448
|
+
].includes(e), Yt = (e) => e != null, $i = ["data-id", "data-selected"], Ii = ["data-label", "data-align"], xi = { key: 1 }, Ai = ["colspan"], Di = {
|
|
3440
3449
|
name: "TableBody"
|
|
3441
|
-
},
|
|
3442
|
-
|
|
3450
|
+
}, Vi = /* @__PURE__ */ Q({
|
|
3451
|
+
...Di,
|
|
3443
3452
|
props: {
|
|
3444
3453
|
customFormatters: {
|
|
3445
3454
|
default: () => ({}),
|
|
@@ -3465,28 +3474,28 @@ const ri = { class: "pagination" }, li = {
|
|
|
3465
3474
|
return {
|
|
3466
3475
|
props: r,
|
|
3467
3476
|
render: (() => {
|
|
3468
|
-
const
|
|
3477
|
+
const g = {
|
|
3469
3478
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3470
|
-
number: (
|
|
3471
|
-
value: Number(
|
|
3479
|
+
number: (c) => ht({
|
|
3480
|
+
value: Number(c),
|
|
3472
3481
|
locale: s?.locale ?? o.locale,
|
|
3473
3482
|
formatOptions: s?.formatOptions
|
|
3474
3483
|
}),
|
|
3475
3484
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3476
|
-
date: (
|
|
3477
|
-
|
|
3485
|
+
date: (c) => yi(
|
|
3486
|
+
c,
|
|
3478
3487
|
l?.locale ?? o.locale,
|
|
3479
3488
|
l?.formatOptions
|
|
3480
3489
|
),
|
|
3481
3490
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3482
|
-
datetime: (
|
|
3483
|
-
|
|
3491
|
+
datetime: (c) => Ri(
|
|
3492
|
+
c,
|
|
3484
3493
|
l?.locale ?? o.locale,
|
|
3485
3494
|
l?.formatOptions
|
|
3486
3495
|
),
|
|
3487
3496
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3488
|
-
currency: (
|
|
3489
|
-
value: Number(
|
|
3497
|
+
currency: (c) => ht({
|
|
3498
|
+
value: Number(c),
|
|
3490
3499
|
locale: s?.locale ?? o.locale,
|
|
3491
3500
|
formatOptions: {
|
|
3492
3501
|
style: "currency",
|
|
@@ -3496,7 +3505,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
3496
3505
|
}),
|
|
3497
3506
|
...o.customFormatters
|
|
3498
3507
|
}, f = i.column.columnDef.dataType || "text";
|
|
3499
|
-
return
|
|
3508
|
+
return g?.[f]?.(r.getValue()) || a;
|
|
3500
3509
|
})()
|
|
3501
3510
|
};
|
|
3502
3511
|
}, n = (i) => {
|
|
@@ -3511,9 +3520,9 @@ const ri = { class: "pagination" }, li = {
|
|
|
3511
3520
|
}, [
|
|
3512
3521
|
(S(!0), y(H, null, z(l.getVisibleCells(), (s) => (S(), y("td", {
|
|
3513
3522
|
key: `table-data-${l.id}-${s.id}`,
|
|
3514
|
-
class:
|
|
3523
|
+
class: ce([s.column.id ? `cell-${s.column.id}` : ""]),
|
|
3515
3524
|
"data-label": s.column.id,
|
|
3516
|
-
"data-align": C(
|
|
3525
|
+
"data-align": C(Ke)({
|
|
3517
3526
|
align: s.column.columnDef.align,
|
|
3518
3527
|
dataType: s.column.columnDef.dataType
|
|
3519
3528
|
}),
|
|
@@ -3523,16 +3532,16 @@ const ri = { class: "pagination" }, li = {
|
|
|
3523
3532
|
minWidth: s.column.columnDef.minWidth
|
|
3524
3533
|
})
|
|
3525
3534
|
}, [
|
|
3526
|
-
s.column.columnDef.tooltip ? (S(), E(C(
|
|
3535
|
+
s.column.columnDef.tooltip ? (S(), E(C(rn), te({
|
|
3527
3536
|
key: 0,
|
|
3528
3537
|
ref_for: !0
|
|
3529
3538
|
}, s.column.columnDef.tooltipOptions), {
|
|
3530
|
-
content:
|
|
3531
|
-
typeof s.column.columnDef.tooltip == "function" && typeof n(s) != "string" ? (S(), E(
|
|
3539
|
+
content: G(() => [
|
|
3540
|
+
typeof s.column.columnDef.tooltip == "function" && typeof n(s) != "string" ? (S(), E(yt(n(s)), { key: 0 })) : (S(), y(H, { key: 1 }, [
|
|
3532
3541
|
tn(N(n(s)), 1)
|
|
3533
3542
|
], 64))
|
|
3534
3543
|
]),
|
|
3535
|
-
default:
|
|
3544
|
+
default: G(() => [
|
|
3536
3545
|
M(C(fe), te({ ref_for: !0 }, t(s)), null, 16)
|
|
3537
3546
|
]),
|
|
3538
3547
|
_: 2
|
|
@@ -3540,22 +3549,22 @@ const ri = { class: "pagination" }, li = {
|
|
|
3540
3549
|
key: 1,
|
|
3541
3550
|
ref_for: !0
|
|
3542
3551
|
}, t(s)), null, 16))
|
|
3543
|
-
], 14,
|
|
3544
|
-
], 8,
|
|
3552
|
+
], 14, Ii))), 128))
|
|
3553
|
+
], 8, $i))), 128)) : (S(), y("tr", xi, [
|
|
3545
3554
|
A("td", {
|
|
3546
3555
|
colspan: e.table.getAllColumns()?.length,
|
|
3547
3556
|
class: "empty-table"
|
|
3548
|
-
}, N(e.emptyTableMessage), 9,
|
|
3557
|
+
}, N(e.emptyTableMessage), 9, Ai)
|
|
3549
3558
|
]))
|
|
3550
3559
|
]));
|
|
3551
3560
|
}
|
|
3552
|
-
}),
|
|
3561
|
+
}), _i = {
|
|
3553
3562
|
key: 0,
|
|
3554
3563
|
class: "data-actions"
|
|
3555
|
-
},
|
|
3564
|
+
}, Mi = {
|
|
3556
3565
|
name: "TableDataActions"
|
|
3557
|
-
},
|
|
3558
|
-
...
|
|
3566
|
+
}, Ei = /* @__PURE__ */ Q({
|
|
3567
|
+
...Mi,
|
|
3559
3568
|
props: {
|
|
3560
3569
|
actions: {
|
|
3561
3570
|
type: Array,
|
|
@@ -3576,41 +3585,45 @@ const ri = { class: "pagination" }, li = {
|
|
|
3576
3585
|
mode: {
|
|
3577
3586
|
default: void 0,
|
|
3578
3587
|
type: String,
|
|
3579
|
-
validator: (e) => ["buttons", "
|
|
3588
|
+
validator: (e) => ["auto", "buttons", "dropdown"].includes(e)
|
|
3580
3589
|
}
|
|
3581
3590
|
},
|
|
3582
3591
|
emits: ["action:select"],
|
|
3583
3592
|
setup(e, { emit: o }) {
|
|
3584
|
-
const t = e, n = o, i = K(!1), r = K(), l =
|
|
3593
|
+
const t = e, n = o, i = K(!1), r = K(), l = B(
|
|
3585
3594
|
() => t.actions.map((c) => ({
|
|
3586
3595
|
...c,
|
|
3587
3596
|
display: typeof c.display == "function" ? c.display(t.data) : c.display ?? !0,
|
|
3588
3597
|
disabled: typeof c.disabled == "function" ? c.disabled(t.data) : c.disabled
|
|
3589
3598
|
})).filter((c) => c.display)
|
|
3590
|
-
), s =
|
|
3599
|
+
), s = B(
|
|
3591
3600
|
() => (typeof t.displayActions == "function" ? t.displayActions(t.data) : t.displayActions) && l.value?.length
|
|
3592
|
-
), a = (
|
|
3601
|
+
), a = B(
|
|
3602
|
+
() => l.value?.length && t.mode === "buttons" || t.mode === "auto" && l.value?.length <= t.autoModeCount
|
|
3603
|
+
), u = B(
|
|
3604
|
+
() => l.value?.length && t.mode === "dropdown" || t.mode === "auto" && l.value?.length > t.autoModeCount
|
|
3605
|
+
), g = () => {
|
|
3593
3606
|
i.value = !1, n("action:select", r.value);
|
|
3594
|
-
},
|
|
3607
|
+
}, f = (c) => {
|
|
3595
3608
|
r.value = c, c?.requireConfirmationModal ? i.value = !0 : n("action:select", r.value);
|
|
3596
3609
|
};
|
|
3597
|
-
return (c,
|
|
3598
|
-
|
|
3599
|
-
key: `mode-button-${
|
|
3600
|
-
class:
|
|
3601
|
-
disabled:
|
|
3602
|
-
"icon-left":
|
|
3603
|
-
label:
|
|
3604
|
-
title:
|
|
3610
|
+
return (c, d) => s.value ? (S(), y("div", _i, [
|
|
3611
|
+
a.value ? (S(!0), y(H, { key: 0 }, z(l.value, (p, m) => (S(), E(C(Z), te({ ref_for: !0 }, p, {
|
|
3612
|
+
key: `mode-button-${m}`,
|
|
3613
|
+
class: p.class,
|
|
3614
|
+
disabled: p.disabled,
|
|
3615
|
+
"icon-left": p.icon,
|
|
3616
|
+
label: p.icon ? "" : p.label,
|
|
3617
|
+
title: p.label,
|
|
3605
3618
|
rounded: "",
|
|
3606
3619
|
variant: "textOnly",
|
|
3607
|
-
onClick: (
|
|
3608
|
-
}), null, 16, ["class", "disabled", "icon-left", "label", "title", "onClick"]))), 128)) :
|
|
3620
|
+
onClick: (h) => f(p)
|
|
3621
|
+
}), null, 16, ["class", "disabled", "icon-left", "label", "title", "onClick"]))), 128)) : u.value ? (S(), E(C(ln), {
|
|
3609
3622
|
key: 1,
|
|
3610
3623
|
menu: l.value,
|
|
3611
|
-
onSelect:
|
|
3624
|
+
onSelect: f
|
|
3612
3625
|
}, {
|
|
3613
|
-
default:
|
|
3626
|
+
default: G(() => [
|
|
3614
3627
|
J(c.$slots, "trigger", {}, () => [
|
|
3615
3628
|
M(C(j), {
|
|
3616
3629
|
icon: "prime:cog",
|
|
@@ -3619,72 +3632,72 @@ const ri = { class: "pagination" }, li = {
|
|
|
3619
3632
|
])
|
|
3620
3633
|
]),
|
|
3621
3634
|
_: 3
|
|
3622
|
-
}, 8, ["menu"])) :
|
|
3635
|
+
}, 8, ["menu"])) : D("", !0),
|
|
3623
3636
|
J(c.$slots, "confirmationModal", {}, () => [
|
|
3624
|
-
i.value ? (S(), E(C(
|
|
3637
|
+
i.value ? (S(), E(C(sn), {
|
|
3625
3638
|
key: 0,
|
|
3626
|
-
"onOn:close":
|
|
3627
|
-
"onOn:confirm":
|
|
3628
|
-
},
|
|
3639
|
+
"onOn:close": d[0] || (d[0] = (p) => i.value = !1),
|
|
3640
|
+
"onOn:confirm": g
|
|
3641
|
+
}, Rt({ _: 2 }, [
|
|
3629
3642
|
r.value?.confirmationOptions?.header ? {
|
|
3630
3643
|
name: "header",
|
|
3631
|
-
fn:
|
|
3644
|
+
fn: G(() => [
|
|
3632
3645
|
A("p", null, N(r.value?.confirmationOptions?.header), 1)
|
|
3633
3646
|
]),
|
|
3634
3647
|
key: "0"
|
|
3635
3648
|
} : void 0,
|
|
3636
3649
|
r.value?.confirmationOptions?.body ? {
|
|
3637
3650
|
name: "body",
|
|
3638
|
-
fn:
|
|
3651
|
+
fn: G(() => [
|
|
3639
3652
|
A("p", null, N(r.value?.confirmationOptions?.body), 1)
|
|
3640
3653
|
]),
|
|
3641
3654
|
key: "1"
|
|
3642
3655
|
} : void 0,
|
|
3643
3656
|
r.value?.confirmationOptions?.footer ? {
|
|
3644
3657
|
name: "footer",
|
|
3645
|
-
fn:
|
|
3658
|
+
fn: G(() => [
|
|
3646
3659
|
A("p", null, N(r.value?.confirmationOptions?.footer), 1)
|
|
3647
3660
|
]),
|
|
3648
3661
|
key: "2"
|
|
3649
3662
|
} : void 0
|
|
3650
|
-
]), 1024)) :
|
|
3663
|
+
]), 1024)) : D("", !0)
|
|
3651
3664
|
])
|
|
3652
|
-
])) :
|
|
3665
|
+
])) : D("", !0);
|
|
3653
3666
|
}
|
|
3654
|
-
}),
|
|
3667
|
+
}), Li = ["colSpan", "data-align", "onClick"], ki = {
|
|
3655
3668
|
key: 0,
|
|
3656
3669
|
class: "sort-state"
|
|
3657
|
-
},
|
|
3670
|
+
}, Ti = {
|
|
3658
3671
|
key: 0,
|
|
3659
3672
|
class: "sort-icon",
|
|
3660
3673
|
height: "16",
|
|
3661
3674
|
viewBox: "0 0 24 24",
|
|
3662
3675
|
width: "16",
|
|
3663
3676
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3664
|
-
},
|
|
3677
|
+
}, Hi = {
|
|
3665
3678
|
key: 0,
|
|
3666
3679
|
class: "sort-icon",
|
|
3667
3680
|
height: "16",
|
|
3668
3681
|
viewBox: "0 0 24 24",
|
|
3669
3682
|
width: "16",
|
|
3670
3683
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3671
|
-
},
|
|
3684
|
+
}, Oi = {
|
|
3672
3685
|
key: 1,
|
|
3673
3686
|
class: "sort-icon",
|
|
3674
3687
|
height: "16",
|
|
3675
3688
|
viewBox: "0 0 24 24",
|
|
3676
3689
|
width: "16",
|
|
3677
3690
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3678
|
-
},
|
|
3691
|
+
}, Bi = {
|
|
3679
3692
|
key: 0,
|
|
3680
3693
|
class: "header-row filters"
|
|
3681
|
-
},
|
|
3694
|
+
}, Gi = ["data-align"], zi = {
|
|
3682
3695
|
key: 3,
|
|
3683
3696
|
class: "number-range-filter"
|
|
3684
|
-
},
|
|
3697
|
+
}, Ni = {
|
|
3685
3698
|
name: "TableHeader"
|
|
3686
|
-
},
|
|
3687
|
-
...
|
|
3699
|
+
}, ji = /* @__PURE__ */ Q({
|
|
3700
|
+
...Ni,
|
|
3688
3701
|
props: {
|
|
3689
3702
|
highlightActiveColumn: Boolean,
|
|
3690
3703
|
inputDebounceTime: {
|
|
@@ -3702,15 +3715,15 @@ const ri = { class: "pagination" }, li = {
|
|
|
3702
3715
|
},
|
|
3703
3716
|
setup(e) {
|
|
3704
3717
|
const o = e, t = (l) => o.highlightActiveColumn && (l.getIsSorted() === "asc" || l.getIsSorted() === "desc" || l.getIsFiltered()) ? "highlight" : "", n = (l) => l.getFilterValue(), i = (l) => l?.length ? l.map((s, a) => {
|
|
3705
|
-
const u = String(s.getDate()).padStart(2, "0"),
|
|
3706
|
-
return `${s.getFullYear()}-${
|
|
3718
|
+
const u = String(s.getDate()).padStart(2, "0"), g = String(s.getMonth() + 1).padStart(2, "0"), f = a === 0 ? "00:00:00" : "23:59:59";
|
|
3719
|
+
return `${s.getFullYear()}-${g}-${u} ${f}`;
|
|
3707
3720
|
}).filter((s) => s !== null) : null, r = (l, s, a) => {
|
|
3708
|
-
const u = l.getFilterValue(),
|
|
3709
|
-
|
|
3710
|
-
const f =
|
|
3711
|
-
(
|
|
3721
|
+
const u = l.getFilterValue(), g = Array.isArray(u) ? [...u] : [void 0, void 0];
|
|
3722
|
+
g[s] = a !== void 0 ? Number(a) : void 0;
|
|
3723
|
+
const f = g.some(
|
|
3724
|
+
(c) => c !== void 0
|
|
3712
3725
|
);
|
|
3713
|
-
l.setFilterValue(f ?
|
|
3726
|
+
l.setFilterValue(f ? g : []);
|
|
3714
3727
|
};
|
|
3715
3728
|
return (l, s) => (S(), y("thead", null, [
|
|
3716
3729
|
(S(!0), y(H, null, z(e.table.getHeaderGroups(), (a) => (S(), y("tr", {
|
|
@@ -3719,13 +3732,13 @@ const ri = { class: "pagination" }, li = {
|
|
|
3719
3732
|
}, [
|
|
3720
3733
|
(S(!0), y(H, null, z(a.headers, (u) => (S(), y("th", {
|
|
3721
3734
|
key: `table-header-${u.id}`,
|
|
3722
|
-
class:
|
|
3735
|
+
class: ce([
|
|
3723
3736
|
t(u.column),
|
|
3724
3737
|
`column-${u.id}`,
|
|
3725
3738
|
u.column.columnDef.enableSorting ? "sortable" : ""
|
|
3726
3739
|
]),
|
|
3727
3740
|
colSpan: u.colSpan,
|
|
3728
|
-
"data-align": C(
|
|
3741
|
+
"data-align": C(Ke)({
|
|
3729
3742
|
align: u.column.columnDef.align,
|
|
3730
3743
|
dataType: u.column.columnDef.dataType
|
|
3731
3744
|
}),
|
|
@@ -3734,47 +3747,47 @@ const ri = { class: "pagination" }, li = {
|
|
|
3734
3747
|
maxWidth: u.column.columnDef.maxWidth,
|
|
3735
3748
|
minWidth: u.column.columnDef.minWidth
|
|
3736
3749
|
}),
|
|
3737
|
-
onClick: (
|
|
3750
|
+
onClick: (g) => u.column.getCanSort() ? u.column.getToggleSortingHandler()?.(g) : null
|
|
3738
3751
|
}, [
|
|
3739
|
-
u.isPlaceholder ?
|
|
3752
|
+
u.isPlaceholder ? D("", !0) : (S(), y(H, { key: 0 }, [
|
|
3740
3753
|
M(C(fe), {
|
|
3741
3754
|
props: u.getContext(),
|
|
3742
3755
|
render: u.column.columnDef.header
|
|
3743
3756
|
}, null, 8, ["props", "render"]),
|
|
3744
|
-
u.column.columnDef.enableSorting ? (S(), y("span",
|
|
3745
|
-
!u.column.getIsSorted() && u.column.getCanSort() ? (S(), y("svg",
|
|
3757
|
+
u.column.columnDef.enableSorting ? (S(), y("span", ki, [
|
|
3758
|
+
!u.column.getIsSorted() && u.column.getCanSort() ? (S(), y("svg", Ti, s[0] || (s[0] = [
|
|
3746
3759
|
A("path", {
|
|
3747
3760
|
d: "M18 10.75H6a.74.74 0 0 1-.69-.46a.75.75 0 0 1 .16-.82l6-6a.75.75 0 0 1 1.06 0l6 6a.75.75 0 0 1 .16.82a.74.74 0 0 1-.69.46M7.81 9.25h8.38L12 5.06ZM12 20.75a.74.74 0 0 1-.53-.22l-6-6a.75.75 0 0 1-.16-.82a.74.74 0 0 1 .69-.46h12a.74.74 0 0 1 .69.46a.75.75 0 0 1-.16.82l-6 6a.74.74 0 0 1-.53.22m-4.19-6L12 18.94l4.19-4.19Z",
|
|
3748
3761
|
fill: "currentColor"
|
|
3749
3762
|
}, null, -1)
|
|
3750
|
-
]))) :
|
|
3763
|
+
]))) : D("", !0),
|
|
3751
3764
|
u.column.getIsSorted() && u.column.getCanSort() ? (S(), y(H, { key: 1 }, [
|
|
3752
|
-
u.column.getIsSorted() === "asc" ? (S(), y("svg",
|
|
3765
|
+
u.column.getIsSorted() === "asc" ? (S(), y("svg", Hi, s[1] || (s[1] = [
|
|
3753
3766
|
A("path", {
|
|
3754
3767
|
d: "M12.53 7.97a.75.75 0 0 0-1.06 0l-7 7A.75.75 0 0 0 5 16.25h14a.75.75 0 0 0 .53-1.28z",
|
|
3755
3768
|
fill: "currentColor"
|
|
3756
3769
|
}, null, -1)
|
|
3757
|
-
]))) : (S(), y("svg",
|
|
3770
|
+
]))) : (S(), y("svg", Oi, s[2] || (s[2] = [
|
|
3758
3771
|
A("path", {
|
|
3759
3772
|
d: "M5 7.75a.75.75 0 0 0-.53 1.28l7 7a.75.75 0 0 0 1.06 0l7-7A.75.75 0 0 0 19 7.75z",
|
|
3760
3773
|
fill: "currentColor"
|
|
3761
3774
|
}, null, -1)
|
|
3762
3775
|
])))
|
|
3763
|
-
], 64)) :
|
|
3764
|
-
])) :
|
|
3776
|
+
], 64)) : D("", !0)
|
|
3777
|
+
])) : D("", !0)
|
|
3765
3778
|
], 64))
|
|
3766
|
-
], 14,
|
|
3779
|
+
], 14, Li))), 128))
|
|
3767
3780
|
]))), 128)),
|
|
3768
|
-
e.isFilterRowVisible ? (S(), y("tr",
|
|
3781
|
+
e.isFilterRowVisible ? (S(), y("tr", Bi, [
|
|
3769
3782
|
(S(!0), y(H, null, z(e.table.getVisibleLeafColumns(), (a) => (S(), y("th", {
|
|
3770
3783
|
key: `table-filter-${a.id}`,
|
|
3771
|
-
class:
|
|
3784
|
+
class: ce([
|
|
3772
3785
|
t(a),
|
|
3773
3786
|
a.id ? `column-${a.id}` : "",
|
|
3774
3787
|
a.columnDef.className || "",
|
|
3775
3788
|
a.getCanFilter() ? `filter ${a.columnDef.meta?.filterVariant}` : ""
|
|
3776
3789
|
]),
|
|
3777
|
-
"data-align": C(
|
|
3790
|
+
"data-align": C(Ke)({
|
|
3778
3791
|
align: a.columnDef.align,
|
|
3779
3792
|
dataType: a.columnDef.dataType
|
|
3780
3793
|
}),
|
|
@@ -3785,7 +3798,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
3785
3798
|
})
|
|
3786
3799
|
}, [
|
|
3787
3800
|
a.getCanFilter() ? (S(), y(H, { key: 0 }, [
|
|
3788
|
-
a.columnDef.customFilterComponent ? (S(), E(
|
|
3801
|
+
a.columnDef.customFilterComponent ? (S(), E(yt(a.columnDef.customFilterComponent(a)), { key: 0 })) : a.columnDef.meta?.filterVariant === "multiselect" || a.columnDef.meta?.filterVariant === "select" ? (S(), E(C(fn), {
|
|
3789
3802
|
key: 1,
|
|
3790
3803
|
"model-value": n(a),
|
|
3791
3804
|
options: a.columnDef.meta?.filterOptions || [],
|
|
@@ -3794,7 +3807,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
3794
3807
|
multiple: a.columnDef.meta?.filterVariant === "multiselect",
|
|
3795
3808
|
"enable-tooltip": "",
|
|
3796
3809
|
"onUpdate:modelValue": (u) => a.setFilterValue(u)
|
|
3797
|
-
}, null, 8, ["model-value", "options", "placeholder", "name", "multiple", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "dateRange" ? (S(), E(C(
|
|
3810
|
+
}, null, 8, ["model-value", "options", "placeholder", "name", "multiple", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "dateRange" ? (S(), E(C(pn), {
|
|
3798
3811
|
key: 2,
|
|
3799
3812
|
"model-value": n(a),
|
|
3800
3813
|
placeholder: a.columnDef.filterPlaceholder,
|
|
@@ -3802,20 +3815,20 @@ const ri = { class: "pagination" }, li = {
|
|
|
3802
3815
|
range: "",
|
|
3803
3816
|
teleport: "",
|
|
3804
3817
|
"onUpdate:modelValue": (u) => a.setFilterValue(i(u))
|
|
3805
|
-
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "range" ? (S(), y("div",
|
|
3806
|
-
M(C(
|
|
3818
|
+
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "range" ? (S(), y("div", zi, [
|
|
3819
|
+
M(C(et), {
|
|
3807
3820
|
"model-value": Array.isArray(n(a)) && n(a)[0] !== null ? Number(n(a)[0]) : void 0,
|
|
3808
3821
|
placeholder: a.columnDef.filterPlaceholder?.split(",")[0],
|
|
3809
3822
|
name: "`range-${column.columnDef.accessorKey}-start`",
|
|
3810
3823
|
"onUpdate:modelValue": (u) => r(a, 0, u)
|
|
3811
3824
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
3812
|
-
M(C(
|
|
3825
|
+
M(C(et), {
|
|
3813
3826
|
"model-value": Array.isArray(n(a)) && n(a)[1] !== null ? Number(n(a)[1]) : void 0,
|
|
3814
3827
|
placeholder: a.columnDef.filterPlaceholder?.split(",")[1] ?? a.columnDef.filterPlaceholder,
|
|
3815
3828
|
name: "`range-${column.columnDef.accessorKey}-end`",
|
|
3816
3829
|
"onUpdate:modelValue": (u) => r(a, 1, u)
|
|
3817
3830
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
3818
|
-
])) : (S(), E(C(
|
|
3831
|
+
])) : (S(), E(C(Ft), {
|
|
3819
3832
|
key: 4,
|
|
3820
3833
|
id: `input-filter-${a.id}`,
|
|
3821
3834
|
"debounce-time": e.inputDebounceTime,
|
|
@@ -3823,15 +3836,15 @@ const ri = { class: "pagination" }, li = {
|
|
|
3823
3836
|
placeholder: a.columnDef.filterPlaceholder,
|
|
3824
3837
|
"onUpdate:modelValue": (u) => a.setFilterValue(u)
|
|
3825
3838
|
}, null, 8, ["id", "debounce-time", "model-value", "placeholder", "onUpdate:modelValue"]))
|
|
3826
|
-
], 64)) :
|
|
3827
|
-
], 14,
|
|
3828
|
-
])) :
|
|
3839
|
+
], 64)) : D("", !0)
|
|
3840
|
+
], 14, Gi))), 128))
|
|
3841
|
+
])) : D("", !0)
|
|
3829
3842
|
]));
|
|
3830
3843
|
}
|
|
3831
|
-
}),
|
|
3844
|
+
}), qi = { class: "toolbar" }, Ki = {
|
|
3832
3845
|
name: "TableToolbar"
|
|
3833
|
-
},
|
|
3834
|
-
...
|
|
3846
|
+
}, Ui = /* @__PURE__ */ Q({
|
|
3847
|
+
...Ki,
|
|
3835
3848
|
props: {
|
|
3836
3849
|
columnActionButtonLabel: {
|
|
3837
3850
|
default: "Columns",
|
|
@@ -3852,14 +3865,14 @@ const ri = { class: "pagination" }, li = {
|
|
|
3852
3865
|
},
|
|
3853
3866
|
emits: ["on:drag", "on:reset"],
|
|
3854
3867
|
setup(e, { emit: o }) {
|
|
3855
|
-
const t = e, n = o, i =
|
|
3868
|
+
const t = e, n = o, i = B(
|
|
3856
3869
|
() => t.table.getAllLeafColumns().filter((l) => l.id !== "select" && l.id !== "actions").map((l, s) => ({
|
|
3857
3870
|
id: s,
|
|
3858
3871
|
data: l,
|
|
3859
3872
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3860
3873
|
render: (a) => {
|
|
3861
3874
|
let u = a.columnDef.header;
|
|
3862
|
-
return typeof a.columnDef.header == "function" && (u = a.columnDef.header()),
|
|
3875
|
+
return typeof a.columnDef.header == "function" && (u = a.columnDef.header()), Y(ke, {
|
|
3863
3876
|
label: u,
|
|
3864
3877
|
modelValue: a.getIsVisible(),
|
|
3865
3878
|
name: a.columnDef.accessorKey,
|
|
@@ -3875,25 +3888,25 @@ const ri = { class: "pagination" }, li = {
|
|
|
3875
3888
|
];
|
|
3876
3889
|
n("on:drag", s);
|
|
3877
3890
|
};
|
|
3878
|
-
return (l, s) => (S(), y("div",
|
|
3891
|
+
return (l, s) => (S(), y("div", qi, [
|
|
3879
3892
|
e.showResetButton ? (S(), E(C(Z), {
|
|
3880
3893
|
key: 0,
|
|
3881
3894
|
label: e.resetButtonLabel,
|
|
3882
3895
|
variant: "outlined",
|
|
3883
3896
|
severity: "secondary",
|
|
3884
3897
|
onClick: s[0] || (s[0] = (a) => l.$emit("on:reset"))
|
|
3885
|
-
}, null, 8, ["label"])) :
|
|
3886
|
-
e.showColumnAction ? (S(), E(C(
|
|
3898
|
+
}, null, 8, ["label"])) : D("", !0),
|
|
3899
|
+
e.showColumnAction ? (S(), E(C(an), {
|
|
3887
3900
|
key: 1,
|
|
3888
3901
|
position: "bottom"
|
|
3889
3902
|
}, {
|
|
3890
|
-
content:
|
|
3891
|
-
M(C(
|
|
3903
|
+
content: G(() => [
|
|
3904
|
+
M(C(un), {
|
|
3892
3905
|
list: i.value,
|
|
3893
3906
|
onOnDrag: r
|
|
3894
3907
|
}, null, 8, ["list"])
|
|
3895
3908
|
]),
|
|
3896
|
-
default:
|
|
3909
|
+
default: G(() => [
|
|
3897
3910
|
M(C(Z), {
|
|
3898
3911
|
label: e.columnActionButtonLabel,
|
|
3899
3912
|
variant: "outlined",
|
|
@@ -3901,22 +3914,22 @@ const ri = { class: "pagination" }, li = {
|
|
|
3901
3914
|
}, null, 8, ["label"])
|
|
3902
3915
|
]),
|
|
3903
3916
|
_: 1
|
|
3904
|
-
})) :
|
|
3917
|
+
})) : D("", !0),
|
|
3905
3918
|
J(l.$slots, "default")
|
|
3906
3919
|
]));
|
|
3907
3920
|
}
|
|
3908
|
-
}),
|
|
3921
|
+
}), Wi = ["id"], Qi = {
|
|
3909
3922
|
key: 0,
|
|
3910
3923
|
class: "loading-overlay"
|
|
3911
|
-
},
|
|
3924
|
+
}, Xi = ["data-align"], Yi = { class: "table-wrapper" }, Ji = { key: 0 }, Zi = {
|
|
3912
3925
|
name: "DataTable"
|
|
3913
|
-
},
|
|
3914
|
-
...
|
|
3926
|
+
}, er = /* @__PURE__ */ Q({
|
|
3927
|
+
...Zi,
|
|
3915
3928
|
props: {
|
|
3916
3929
|
actionsMode: {
|
|
3917
3930
|
default: "auto",
|
|
3918
3931
|
type: String,
|
|
3919
|
-
validator: (e) => ["auto", "buttons", "
|
|
3932
|
+
validator: (e) => ["auto", "buttons", "dropdown"].includes(e)
|
|
3920
3933
|
},
|
|
3921
3934
|
autoModeCount: {
|
|
3922
3935
|
default: 1,
|
|
@@ -4004,11 +4017,11 @@ const ri = { class: "pagination" }, li = {
|
|
|
4004
4017
|
type: String
|
|
4005
4018
|
},
|
|
4006
4019
|
rowPerPage: {
|
|
4007
|
-
default:
|
|
4020
|
+
default: wi,
|
|
4008
4021
|
type: Number
|
|
4009
4022
|
},
|
|
4010
4023
|
rowPerPageOptions: {
|
|
4011
|
-
default: () =>
|
|
4024
|
+
default: () => Si,
|
|
4012
4025
|
type: Array
|
|
4013
4026
|
},
|
|
4014
4027
|
showColumnAction: Boolean,
|
|
@@ -4039,20 +4052,20 @@ const ri = { class: "pagination" }, li = {
|
|
|
4039
4052
|
const t = e, n = o, i = [], r = K(t.initialFilters), l = K([]), s = K({}), a = K({
|
|
4040
4053
|
pageIndex: Le,
|
|
4041
4054
|
pageSize: t.paginated ? t.rowPerPage : t.data.length
|
|
4042
|
-
}), u = K({}),
|
|
4055
|
+
}), u = K({}), g = K(t.initialSorting), f = B(() => t.columnsData.some((v) => v.enableColumnFilter)), c = B(() => ({
|
|
4043
4056
|
columnFilters: r.value,
|
|
4044
4057
|
columnOrder: l.value,
|
|
4045
4058
|
columnVisibility: s.value,
|
|
4046
4059
|
pagination: a.value,
|
|
4047
|
-
sorting:
|
|
4048
|
-
})), d =
|
|
4049
|
-
() =>
|
|
4050
|
-
), p =
|
|
4060
|
+
sorting: g.value
|
|
4061
|
+
})), d = B(
|
|
4062
|
+
() => dn(t.persistStateStorage)
|
|
4063
|
+
), p = B(
|
|
4051
4064
|
() => t.isServerTable ? t.totalRecords : h.value.getFilteredRowModel().rows?.length
|
|
4052
|
-
), m =
|
|
4065
|
+
), m = B(
|
|
4053
4066
|
() => h.value.getSelectedRowModel().rows.map((v) => v.original)
|
|
4054
|
-
), h =
|
|
4055
|
-
() =>
|
|
4067
|
+
), h = B(
|
|
4068
|
+
() => Wt({
|
|
4056
4069
|
columns: i,
|
|
4057
4070
|
state: {
|
|
4058
4071
|
columnFilters: r.value,
|
|
@@ -4061,7 +4074,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4061
4074
|
pagination: a.value,
|
|
4062
4075
|
rowSelection: u.value,
|
|
4063
4076
|
get sorting() {
|
|
4064
|
-
return
|
|
4077
|
+
return g.value;
|
|
4065
4078
|
}
|
|
4066
4079
|
},
|
|
4067
4080
|
onColumnFiltersChange: (v) => {
|
|
@@ -4071,20 +4084,20 @@ const ri = { class: "pagination" }, li = {
|
|
|
4071
4084
|
) || !t.visibleColumns.length)
|
|
4072
4085
|
).map((w) => {
|
|
4073
4086
|
if (w.meta?.filterVariant === "range") {
|
|
4074
|
-
const
|
|
4087
|
+
const I = r.value.find(
|
|
4075
4088
|
(U) => U?.id === w.accessorKey
|
|
4076
|
-
)?.value, [
|
|
4077
|
-
return k &&
|
|
4089
|
+
)?.value, [V, L] = I || [], k = w.meta?.serverFilterFn || (typeof V == "number" && typeof L == "number" && V <= L ? x.BETWEEN : typeof V == "number" && !L ? x.GREATER_THAN_OR_EQUAL : typeof L == "number" ? x.LESS_THAN_OR_EQUAL : null);
|
|
4090
|
+
return k && I?.length ? {
|
|
4078
4091
|
filterFn: k,
|
|
4079
4092
|
id: w.accessorKey,
|
|
4080
|
-
value:
|
|
4093
|
+
value: I
|
|
4081
4094
|
} : void 0;
|
|
4082
4095
|
} else
|
|
4083
4096
|
return {
|
|
4084
4097
|
filterFn: w?.meta?.serverFilterFn,
|
|
4085
4098
|
id: w.accessorKey,
|
|
4086
4099
|
value: r.value.find(
|
|
4087
|
-
(
|
|
4100
|
+
(I) => I.id === w.accessorKey
|
|
4088
4101
|
)?.value
|
|
4089
4102
|
};
|
|
4090
4103
|
}).filter(Boolean), R());
|
|
@@ -4099,48 +4112,48 @@ const ri = { class: "pagination" }, li = {
|
|
|
4099
4112
|
u.value = typeof v == "function" ? v(u.value) : v, n("change:rowSelection", m.value);
|
|
4100
4113
|
},
|
|
4101
4114
|
onSortingChange: (v) => {
|
|
4102
|
-
|
|
4115
|
+
g.value = typeof v == "function" ? v(g.value) : v, t.isServerTable && R();
|
|
4103
4116
|
},
|
|
4104
4117
|
columnResizeMode: "onChange",
|
|
4105
4118
|
data: t.data,
|
|
4106
4119
|
enableSortingRemoval: t.enableSortingRemoval,
|
|
4107
|
-
getCoreRowModel:
|
|
4108
|
-
getFilteredRowModel:
|
|
4109
|
-
getPaginationRowModel:
|
|
4110
|
-
getSortedRowModel:
|
|
4120
|
+
getCoreRowModel: jt(),
|
|
4121
|
+
getFilteredRowModel: qt(),
|
|
4122
|
+
getPaginationRowModel: Kt(),
|
|
4123
|
+
getSortedRowModel: Ut(),
|
|
4111
4124
|
manualFiltering: t.isServerTable,
|
|
4112
4125
|
manualSorting: t.isServerTable,
|
|
4113
4126
|
manualPagination: t.isServerTable,
|
|
4114
4127
|
...t.tableOptions
|
|
4115
4128
|
})
|
|
4116
4129
|
);
|
|
4117
|
-
|
|
4118
|
-
[r, l, s, a,
|
|
4130
|
+
Ct(
|
|
4131
|
+
[r, l, s, a, g],
|
|
4119
4132
|
() => {
|
|
4120
|
-
t.persistState && t.id &&
|
|
4133
|
+
t.persistState && t.id && wt(t.id, c.value, d.value);
|
|
4121
4134
|
}
|
|
4122
4135
|
);
|
|
4123
4136
|
const R = () => {
|
|
4124
|
-
const v =
|
|
4125
|
-
|
|
4137
|
+
const v = Fi(
|
|
4138
|
+
g.value,
|
|
4126
4139
|
r.value,
|
|
4127
4140
|
a.value
|
|
4128
4141
|
);
|
|
4129
4142
|
n("update:request", v);
|
|
4130
|
-
},
|
|
4143
|
+
}, $ = () => {
|
|
4131
4144
|
r.value = t.initialFilters, l.value = [], s.value = {}, a.value = {
|
|
4132
4145
|
pageIndex: Le,
|
|
4133
4146
|
pageSize: t.paginated ? t.rowPerPage : t.data.length
|
|
4134
|
-
},
|
|
4147
|
+
}, g.value = t.initialSorting;
|
|
4135
4148
|
}, P = () => {
|
|
4136
4149
|
if (t.enableRowSelection && i.push({
|
|
4137
4150
|
accessorKey: "select",
|
|
4138
|
-
header: ({ table: v }) =>
|
|
4151
|
+
header: ({ table: v }) => Y(ke, {
|
|
4139
4152
|
"aria-label": "Select all",
|
|
4140
4153
|
modelValue: v.getIsAllPageRowsSelected(),
|
|
4141
4154
|
"onUpdate:modelValue": () => v.toggleAllPageRowsSelected(!v.getIsAllPageRowsSelected())
|
|
4142
4155
|
}),
|
|
4143
|
-
cell: ({ row: v }) =>
|
|
4156
|
+
cell: ({ row: v }) => Y(ke, {
|
|
4144
4157
|
"aria-label": "Select row",
|
|
4145
4158
|
modelValue: v.getIsSelected(),
|
|
4146
4159
|
"onUpdate:modelValue": () => v.toggleSelected(!v.getIsSelected())
|
|
@@ -4149,68 +4162,64 @@ const ri = { class: "pagination" }, li = {
|
|
|
4149
4162
|
enableColumnFilter: !1,
|
|
4150
4163
|
enableSorting: !1
|
|
4151
4164
|
}), t.columnsData.forEach((v) => {
|
|
4152
|
-
t.visibleColumns.length && !t.visibleColumns.includes(String(v.accessorKey ?? v.id)) || (v.meta?.filterVariant === "multiselect" && !v.filterFn ? v.filterFn = (w,
|
|
4153
|
-
if (
|
|
4154
|
-
const L = new Date(
|
|
4165
|
+
t.visibleColumns.length && !t.visibleColumns.includes(String(v.accessorKey ?? v.id)) || (v.meta?.filterVariant === "multiselect" && !v.filterFn ? v.filterFn = (w, I, V) => !V || V.length === 0 ? w : V.some((L) => w.getValue(I) == L) : v.meta?.filterVariant === "select" && !v.filterFn ? v.filterFn = (w, I, V) => V === void 0 || V.length === 0 ? !0 : String(V) === String(w.getValue(I)) : v.meta?.filterVariant === "dateRange" && !v.filterFn ? v.filterFn = (w, I, V) => {
|
|
4166
|
+
if (V?.length) {
|
|
4167
|
+
const L = new Date(V[1]).setHours(23, 59, 59, 999), k = new Date(w.getValue(I)), U = new Date(V[0]).setHours(0, 0, 0, 0);
|
|
4155
4168
|
return k.getTime() >= U && k.getTime() <= L;
|
|
4156
4169
|
}
|
|
4157
4170
|
return !0;
|
|
4158
|
-
} : v.meta?.filterVariant === "range" && (v.filterFn = (w,
|
|
4159
|
-
if (!Array.isArray(
|
|
4171
|
+
} : v.meta?.filterVariant === "range" && (v.filterFn = (w, I, V) => {
|
|
4172
|
+
if (!Array.isArray(V))
|
|
4160
4173
|
return !0;
|
|
4161
|
-
const [L, k] =
|
|
4174
|
+
const [L, k] = V, U = w.getValue(I);
|
|
4162
4175
|
return L && k ? U >= L && U <= k : L ? U >= L : k ? U <= k : !0;
|
|
4163
4176
|
}), i.push({
|
|
4164
4177
|
...v,
|
|
4165
4178
|
enableColumnFilter: v.enableColumnFilter ?? !1,
|
|
4166
4179
|
enableSorting: v.enableSorting ?? !1
|
|
4167
4180
|
}));
|
|
4168
|
-
}), t.dataActionMenu?.length
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
action: $?.key || $?.label,
|
|
4188
|
-
data: w.original
|
|
4189
|
-
})
|
|
4181
|
+
}), t.dataActionMenu?.length && i.push({
|
|
4182
|
+
accessorKey: "actions",
|
|
4183
|
+
align: "center",
|
|
4184
|
+
enableColumnFilter: !1,
|
|
4185
|
+
enableSorting: !1,
|
|
4186
|
+
header: () => Y(j, {
|
|
4187
|
+
icon: "prime:cog",
|
|
4188
|
+
width: "24"
|
|
4189
|
+
}),
|
|
4190
|
+
cell: ({ row: v }) => Y(Ei, {
|
|
4191
|
+
actions: t.dataActionMenu,
|
|
4192
|
+
autoModeCount: t.autoModeCount,
|
|
4193
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4194
|
+
data: v.original,
|
|
4195
|
+
displayActions: t.displayActions,
|
|
4196
|
+
mode: t.actionsMode,
|
|
4197
|
+
"onAction:select": (w) => n("action:select", {
|
|
4198
|
+
action: w?.key || w?.label,
|
|
4199
|
+
data: v.original
|
|
4190
4200
|
})
|
|
4191
|
-
})
|
|
4192
|
-
}
|
|
4193
|
-
if (t.persistState && !t.id)
|
|
4201
|
+
})
|
|
4202
|
+
}), t.persistState && !t.id)
|
|
4194
4203
|
throw new Error('Id is required when prop "persistState" is true');
|
|
4195
4204
|
_(), t.isServerTable && R();
|
|
4196
4205
|
}, _ = () => {
|
|
4197
4206
|
if (!t.persistState || !t.id)
|
|
4198
4207
|
return;
|
|
4199
|
-
const v =
|
|
4200
|
-
v && (r.value = v.columnFilters, l.value = v.columnOrder, s.value = v.columnVisibility,
|
|
4208
|
+
const v = bi(t.id, d.value);
|
|
4209
|
+
v && (r.value = v.columnFilters, l.value = v.columnOrder, s.value = v.columnVisibility, g.value = v.sorting, t.rowPerPageOptions.includes(v.pagination.pageSize) && (a.value = v.pagination)), wt(t.id, c.value, d.value);
|
|
4201
4210
|
};
|
|
4202
4211
|
return P(), (v, w) => (S(), y("div", {
|
|
4203
4212
|
id: e.id,
|
|
4204
4213
|
class: "table-container"
|
|
4205
4214
|
}, [
|
|
4206
|
-
e.isLoading ? (S(), y("div",
|
|
4215
|
+
e.isLoading ? (S(), y("div", Qi, [
|
|
4207
4216
|
M(C(cn), { class: "loading-icon" })
|
|
4208
|
-
])) :
|
|
4217
|
+
])) : D("", !0),
|
|
4209
4218
|
e.titleInfo ? (S(), y("span", {
|
|
4210
4219
|
key: 1,
|
|
4211
4220
|
"data-align": e.titleInfo.align || "center"
|
|
4212
|
-
}, N(e.titleInfo.text), 9,
|
|
4213
|
-
e.showColumnAction || e.showResetButton || v.$slots.toolbar ? (S(), E(
|
|
4221
|
+
}, N(e.titleInfo.text), 9, Xi)) : D("", !0),
|
|
4222
|
+
e.showColumnAction || e.showResetButton || v.$slots.toolbar ? (S(), E(Ui, {
|
|
4214
4223
|
key: 2,
|
|
4215
4224
|
"column-action-button-label": e.columnActionButtonLabel,
|
|
4216
4225
|
"has-actions-column": !!e.dataActionMenu.length,
|
|
@@ -4219,37 +4228,37 @@ const ri = { class: "pagination" }, li = {
|
|
|
4219
4228
|
"show-column-action": e.showColumnAction,
|
|
4220
4229
|
"show-reset-button": e.showResetButton,
|
|
4221
4230
|
table: h.value,
|
|
4222
|
-
"onOn:reset":
|
|
4223
|
-
"onOn:drag": w[0] || (w[0] = (
|
|
4231
|
+
"onOn:reset": $,
|
|
4232
|
+
"onOn:drag": w[0] || (w[0] = (I) => l.value = I)
|
|
4224
4233
|
}, {
|
|
4225
|
-
default:
|
|
4234
|
+
default: G(() => [
|
|
4226
4235
|
J(v.$slots, "toolbar")
|
|
4227
4236
|
]),
|
|
4228
4237
|
_: 3
|
|
4229
|
-
}, 8, ["column-action-button-label", "has-actions-column", "has-selection-column", "reset-button-label", "show-column-action", "show-reset-button", "table"])) :
|
|
4230
|
-
A("div",
|
|
4238
|
+
}, 8, ["column-action-button-label", "has-actions-column", "has-selection-column", "reset-button-label", "show-column-action", "show-reset-button", "table"])) : D("", !0),
|
|
4239
|
+
A("div", Yi, [
|
|
4231
4240
|
A("table", {
|
|
4232
4241
|
style: oe(`width: ${h.value.getCenterTotalSize()}`)
|
|
4233
4242
|
}, [
|
|
4234
|
-
M(
|
|
4243
|
+
M(ji, {
|
|
4235
4244
|
"highlight-active-column": e.highlightActiveHeaderColumn,
|
|
4236
4245
|
"input-debounce-time": e.inputDebounceTime,
|
|
4237
4246
|
"is-filter-row-visible": f.value,
|
|
4238
4247
|
table: h.value
|
|
4239
4248
|
}, null, 8, ["highlight-active-column", "input-debounce-time", "is-filter-row-visible", "table"]),
|
|
4240
|
-
M(
|
|
4249
|
+
M(Vi, {
|
|
4241
4250
|
"custom-formatters": e.customFormatters,
|
|
4242
4251
|
"empty-table-message": e.emptyTableMessage,
|
|
4243
4252
|
locale: e.locale,
|
|
4244
4253
|
table: h.value
|
|
4245
4254
|
}, null, 8, ["custom-formatters", "empty-table-message", "locale", "table"]),
|
|
4246
|
-
v.$slots.footer ? (S(), y("tfoot",
|
|
4255
|
+
v.$slots.footer ? (S(), y("tfoot", Ji, [
|
|
4247
4256
|
J(v.$slots, "footer")
|
|
4248
|
-
])) :
|
|
4257
|
+
])) : D("", !0)
|
|
4249
4258
|
], 4)
|
|
4250
4259
|
]),
|
|
4251
4260
|
(e.isServerTable || e.paginated) && p.value > 0 ? J(v.$slots, "pagination", { key: 3 }, () => [
|
|
4252
|
-
M(
|
|
4261
|
+
M(vi, te(e.paginationOptions, {
|
|
4253
4262
|
"current-page": a.value.pageIndex,
|
|
4254
4263
|
"default-items-per-page": a.value.pageSize,
|
|
4255
4264
|
"items-per-page-options": e.rowPerPageOptions,
|
|
@@ -4257,13 +4266,13 @@ const ri = { class: "pagination" }, li = {
|
|
|
4257
4266
|
"onUpdate:currentPage": h.value.setPageIndex,
|
|
4258
4267
|
"onUpdate:itemsPerPage": h.value.setPageSize
|
|
4259
4268
|
}), null, 16, ["current-page", "default-items-per-page", "items-per-page-options", "total-items", "onUpdate:currentPage", "onUpdate:itemsPerPage"])
|
|
4260
|
-
]) :
|
|
4261
|
-
], 8,
|
|
4269
|
+
]) : D("", !0)
|
|
4270
|
+
], 8, Wi));
|
|
4262
4271
|
}
|
|
4263
|
-
}),
|
|
4272
|
+
}), tr = {
|
|
4264
4273
|
name: "FilesTable"
|
|
4265
|
-
},
|
|
4266
|
-
...
|
|
4274
|
+
}, nr = /* @__PURE__ */ Q({
|
|
4275
|
+
...tr,
|
|
4267
4276
|
props: {
|
|
4268
4277
|
archiveFile: Boolean,
|
|
4269
4278
|
columnsData: {
|
|
@@ -4358,19 +4367,19 @@ const ri = { class: "pagination" }, li = {
|
|
|
4358
4367
|
},
|
|
4359
4368
|
{
|
|
4360
4369
|
accessorKey: "uploadedBy",
|
|
4361
|
-
cell: ({ row: { original: u } }) => u.uploadedBy ? u.uploadedBy.givenName || u.uploadedBy.lastName ? `${u.uploadedBy.givenName || ""} ${u.uploadedBy.lastName || ""}` : u.uploadedBy.email :
|
|
4370
|
+
cell: ({ row: { original: u } }) => u.uploadedBy ? u.uploadedBy.givenName || u.uploadedBy.lastName ? `${u.uploadedBy.givenName || ""} ${u.uploadedBy.lastName || ""}` : u.uploadedBy.email : Y("code", {}, "—"),
|
|
4362
4371
|
enableColumnFilter: !t.isServerTable,
|
|
4363
4372
|
enableSorting: !t.isServerTable,
|
|
4364
|
-
filterFn: (u,
|
|
4365
|
-
const
|
|
4366
|
-
return !f || f.length === 0 ? !0 : `${
|
|
4373
|
+
filterFn: (u, g, f) => {
|
|
4374
|
+
const c = u.getValue(g);
|
|
4375
|
+
return !f || f.length === 0 ? !0 : `${c.givenName || ""} ${c.lastName || ""}`.trim().toLowerCase().includes(f.toLowerCase()) || (c.email?.toLowerCase().includes(f.toLowerCase()) ?? !1);
|
|
4367
4376
|
},
|
|
4368
4377
|
filterPlaceholder: "Name",
|
|
4369
4378
|
header: "Uploaded by"
|
|
4370
4379
|
},
|
|
4371
4380
|
{
|
|
4372
4381
|
accessorKey: "uploadedAt",
|
|
4373
|
-
|
|
4382
|
+
dataType: "datetime",
|
|
4374
4383
|
enableColumnFilter: !0,
|
|
4375
4384
|
enableSorting: !0,
|
|
4376
4385
|
filterPlaceholder: "Date range",
|
|
@@ -4393,7 +4402,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4393
4402
|
},
|
|
4394
4403
|
{
|
|
4395
4404
|
accessorKey: "lastDownloadedAt",
|
|
4396
|
-
|
|
4405
|
+
dataType: "datetime",
|
|
4397
4406
|
enableColumnFilter: !0,
|
|
4398
4407
|
enableSorting: !0,
|
|
4399
4408
|
filterPlaceholder: "Date range",
|
|
@@ -4403,7 +4412,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4403
4412
|
serverFilterFn: "between"
|
|
4404
4413
|
}
|
|
4405
4414
|
}
|
|
4406
|
-
], r =
|
|
4415
|
+
], r = B(() => {
|
|
4407
4416
|
const u = [];
|
|
4408
4417
|
return t.archiveFile && u.push({
|
|
4409
4418
|
confirmationOptions: {
|
|
@@ -4441,16 +4450,16 @@ const ri = { class: "pagination" }, li = {
|
|
|
4441
4450
|
key: "delete",
|
|
4442
4451
|
requireConfirmationModal: !0
|
|
4443
4452
|
}), u;
|
|
4444
|
-
}), l =
|
|
4453
|
+
}), l = B(() => [
|
|
4445
4454
|
...i.map((u) => {
|
|
4446
|
-
const
|
|
4455
|
+
const g = t.columnsData.find(
|
|
4447
4456
|
(f) => f.accessorKey === u.accessorKey
|
|
4448
4457
|
);
|
|
4449
|
-
return
|
|
4458
|
+
return g ? { ...u, ...g } : u;
|
|
4450
4459
|
}),
|
|
4451
4460
|
...t.columnsData.filter(
|
|
4452
4461
|
(u) => !i.some(
|
|
4453
|
-
(
|
|
4462
|
+
(g) => g.accessorKey === u.accessorKey
|
|
4454
4463
|
)
|
|
4455
4464
|
)
|
|
4456
4465
|
]), s = (u) => {
|
|
@@ -4477,7 +4486,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4477
4486
|
}, a = (u) => {
|
|
4478
4487
|
n("update:request", u);
|
|
4479
4488
|
};
|
|
4480
|
-
return (u,
|
|
4489
|
+
return (u, g) => (S(), E(er, te(e.tableOptions, {
|
|
4481
4490
|
id: e.id,
|
|
4482
4491
|
"columns-data": l.value,
|
|
4483
4492
|
data: e.files,
|
|
@@ -4494,34 +4503,34 @@ const ri = { class: "pagination" }, li = {
|
|
|
4494
4503
|
class: "table-files",
|
|
4495
4504
|
"onAction:select": s,
|
|
4496
4505
|
"onUpdate:request": a
|
|
4497
|
-
}),
|
|
4506
|
+
}), Rt({ _: 2 }, [
|
|
4498
4507
|
u.$slots.toolbar ? {
|
|
4499
4508
|
name: "toolbar",
|
|
4500
|
-
fn:
|
|
4509
|
+
fn: G(() => [
|
|
4501
4510
|
J(u.$slots, "toolbar")
|
|
4502
4511
|
]),
|
|
4503
4512
|
key: "0"
|
|
4504
4513
|
} : void 0,
|
|
4505
4514
|
u.$slots.footer ? {
|
|
4506
4515
|
name: "footer",
|
|
4507
|
-
fn:
|
|
4516
|
+
fn: G(() => [
|
|
4508
4517
|
J(u.$slots, "footer")
|
|
4509
4518
|
]),
|
|
4510
4519
|
key: "1"
|
|
4511
4520
|
} : void 0,
|
|
4512
4521
|
u.$slots.pagination ? {
|
|
4513
4522
|
name: "pagination",
|
|
4514
|
-
fn:
|
|
4523
|
+
fn: G(() => [
|
|
4515
4524
|
J(u.$slots, "pagination")
|
|
4516
4525
|
]),
|
|
4517
4526
|
key: "2"
|
|
4518
4527
|
} : void 0
|
|
4519
4528
|
]), 1040, ["id", "columns-data", "data", "data-action-menu", "empty-table-message", "initial-sorting", "is-loading", "is-server-table", "locale", "persist-state", "persist-state-storage", "total-records", "visible-columns"]));
|
|
4520
4529
|
}
|
|
4521
|
-
}),
|
|
4530
|
+
}), or = {
|
|
4522
4531
|
name: "FilesPresentation"
|
|
4523
|
-
},
|
|
4524
|
-
...
|
|
4532
|
+
}, Pr = /* @__PURE__ */ Q({
|
|
4533
|
+
...or,
|
|
4525
4534
|
props: {
|
|
4526
4535
|
actionButtonsVisibility: {
|
|
4527
4536
|
default: () => ({
|
|
@@ -4584,7 +4593,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4584
4593
|
"action:view"
|
|
4585
4594
|
],
|
|
4586
4595
|
setup(e, { emit: o }) {
|
|
4587
|
-
const t = e, n = o, i =
|
|
4596
|
+
const t = e, n = o, i = B(() => Object.fromEntries(
|
|
4588
4597
|
[
|
|
4589
4598
|
"actions",
|
|
4590
4599
|
"description",
|
|
@@ -4607,7 +4616,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4607
4616
|
break;
|
|
4608
4617
|
}
|
|
4609
4618
|
};
|
|
4610
|
-
return (l, s) => e.presentation === "list" ? (S(), E(C(
|
|
4619
|
+
return (l, s) => e.presentation === "list" ? (S(), E(C(gn), te({ key: 0 }, e.listProps, {
|
|
4611
4620
|
"action-buttons-visibility": e.actionButtonsVisibility,
|
|
4612
4621
|
files: e.files,
|
|
4613
4622
|
"file-detail-visibility": i.value,
|
|
@@ -4619,7 +4628,7 @@ const ri = { class: "pagination" }, li = {
|
|
|
4619
4628
|
"onAction:edit": s[3] || (s[3] = (a) => r("edit", a)),
|
|
4620
4629
|
"onAction:share": s[4] || (s[4] = (a) => r("share", a)),
|
|
4621
4630
|
"onAction:view": s[5] || (s[5] = (a) => r("view", a))
|
|
4622
|
-
}), null, 16, ["action-buttons-visibility", "files", "file-detail-visibility", "locale", "messages"])) : (S(), E(
|
|
4631
|
+
}), null, 16, ["action-buttons-visibility", "files", "file-detail-visibility", "locale", "messages"])) : (S(), E(nr, te({ key: 1 }, e.tableProps, {
|
|
4623
4632
|
"archive-file": e.actionButtonsVisibility.archive,
|
|
4624
4633
|
"delete-file": e.actionButtonsVisibility.delete,
|
|
4625
4634
|
"download-file": e.actionButtonsVisibility.download,
|
|
@@ -4638,13 +4647,13 @@ const ri = { class: "pagination" }, li = {
|
|
|
4638
4647
|
"onAction:view": s[11] || (s[11] = (a) => r("view", a))
|
|
4639
4648
|
}), null, 16, ["archive-file", "delete-file", "download-file", "edit-description", "files", "locale", "messages", "share-file", "view-file", "visible-columns"]));
|
|
4640
4649
|
}
|
|
4641
|
-
}),
|
|
4650
|
+
}), ir = { class: "table-wrapper" }, rr = {
|
|
4642
4651
|
key: 0,
|
|
4643
4652
|
class: "toggle-wrap"
|
|
4644
|
-
},
|
|
4653
|
+
}, lr = ["colSpan", "onClick"], sr = { key: 0 }, ar = ["data-label"], ur = { class: "page-navigation-container" }, dr = { class: "page-indicators-selection-container" }, cr = { class: "page-number-indicators" }, gr = { class: "go-to-page-container" }, fr = ["value", "max"], pr = ["value"], mr = ["value"], hr = { class: "page-navigation-buttons-container" }, vr = ["disabled"], Sr = ["disabled"], wr = ["disabled"], Cr = ["disabled"], yr = {
|
|
4645
4654
|
name: "TanstackTable"
|
|
4646
|
-
},
|
|
4647
|
-
...
|
|
4655
|
+
}, $r = /* @__PURE__ */ Q({
|
|
4656
|
+
...yr,
|
|
4648
4657
|
props: {
|
|
4649
4658
|
columnsData: {
|
|
4650
4659
|
type: Array,
|
|
@@ -4660,48 +4669,48 @@ const ri = { class: "pagination" }, li = {
|
|
|
4660
4669
|
}
|
|
4661
4670
|
},
|
|
4662
4671
|
setup(e) {
|
|
4663
|
-
const o = e, t =
|
|
4664
|
-
o.columnsData.forEach((
|
|
4672
|
+
const o = e, t = mo(), n = [];
|
|
4673
|
+
o.columnsData.forEach((g) => {
|
|
4665
4674
|
const f = t.accessor(
|
|
4666
|
-
|
|
4675
|
+
g.accessorKey,
|
|
4667
4676
|
{
|
|
4668
|
-
header: () =>
|
|
4669
|
-
footer: (
|
|
4670
|
-
enableSorting:
|
|
4677
|
+
header: () => g.header,
|
|
4678
|
+
footer: (c) => c.column.id,
|
|
4679
|
+
enableSorting: g.sort !== void 0 ? g.sort : !1
|
|
4671
4680
|
}
|
|
4672
4681
|
);
|
|
4673
4682
|
n.push(f);
|
|
4674
4683
|
});
|
|
4675
|
-
const i = K([]), r =
|
|
4684
|
+
const i = K([]), r = Wt({
|
|
4676
4685
|
columns: n,
|
|
4677
4686
|
state: {
|
|
4678
4687
|
get sorting() {
|
|
4679
4688
|
return i.value;
|
|
4680
4689
|
}
|
|
4681
4690
|
},
|
|
4682
|
-
onSortingChange: (
|
|
4683
|
-
i.value = typeof
|
|
4691
|
+
onSortingChange: (g) => {
|
|
4692
|
+
i.value = typeof g == "function" ? g(i.value) : g;
|
|
4684
4693
|
},
|
|
4685
4694
|
columnResizeMode: "onChange",
|
|
4686
4695
|
data: o.rows,
|
|
4687
|
-
getCoreRowModel:
|
|
4688
|
-
getFilteredRowModel:
|
|
4689
|
-
getPaginationRowModel:
|
|
4690
|
-
getSortedRowModel:
|
|
4696
|
+
getCoreRowModel: jt(),
|
|
4697
|
+
getFilteredRowModel: qt(),
|
|
4698
|
+
getPaginationRowModel: Kt(),
|
|
4699
|
+
getSortedRowModel: Ut()
|
|
4691
4700
|
}), l = K(!1), s = () => {
|
|
4692
4701
|
l.value = !l.value;
|
|
4693
|
-
}, a = (
|
|
4694
|
-
const f =
|
|
4695
|
-
r.setPageIndex(
|
|
4696
|
-
}, u = (
|
|
4697
|
-
const f =
|
|
4698
|
-
r.setPageSize(
|
|
4702
|
+
}, a = (g) => {
|
|
4703
|
+
const f = g.target, c = f.value ? Number(f.value) - 1 : 0;
|
|
4704
|
+
r.setPageIndex(c);
|
|
4705
|
+
}, u = (g) => {
|
|
4706
|
+
const f = g.target, c = f.value ? Number(f.value) : 10;
|
|
4707
|
+
r.setPageSize(c);
|
|
4699
4708
|
};
|
|
4700
|
-
return (
|
|
4709
|
+
return (g, f) => (S(), y("div", ir, [
|
|
4701
4710
|
A("table", {
|
|
4702
4711
|
style: oe(`width: ${C(r).getCenterTotalSize()}`)
|
|
4703
4712
|
}, [
|
|
4704
|
-
o.enableToggle ? (S(), y("div",
|
|
4713
|
+
o.enableToggle ? (S(), y("div", rr, [
|
|
4705
4714
|
A("button", {
|
|
4706
4715
|
class: "table-toggle",
|
|
4707
4716
|
onClick: s
|
|
@@ -4711,25 +4720,25 @@ const ri = { class: "pagination" }, li = {
|
|
|
4711
4720
|
class: "toggle-icon"
|
|
4712
4721
|
})
|
|
4713
4722
|
])
|
|
4714
|
-
])) :
|
|
4723
|
+
])) : D("", !0),
|
|
4715
4724
|
A("colgroup", null, [
|
|
4716
|
-
(S(!0), y(H, null, z(o.columnsData, (
|
|
4717
|
-
key:
|
|
4718
|
-
style: oe(`width: ${
|
|
4725
|
+
(S(!0), y(H, null, z(o.columnsData, (c) => (S(), y("col", {
|
|
4726
|
+
key: c.accessorKey,
|
|
4727
|
+
style: oe(`width: ${c.size}px`)
|
|
4719
4728
|
}, null, 4))), 128))
|
|
4720
4729
|
]),
|
|
4721
4730
|
A("thead", {
|
|
4722
|
-
class:
|
|
4731
|
+
class: ce({ expand: l.value })
|
|
4723
4732
|
}, [
|
|
4724
|
-
(S(!0), y(H, null, z(C(r).getHeaderGroups(), (
|
|
4725
|
-
key:
|
|
4733
|
+
(S(!0), y(H, null, z(C(r).getHeaderGroups(), (c) => (S(), y("tr", {
|
|
4734
|
+
key: c.id
|
|
4726
4735
|
}, [
|
|
4727
|
-
(S(!0), y(H, null, z(
|
|
4736
|
+
(S(!0), y(H, null, z(c.headers, (d) => (S(), y("th", {
|
|
4728
4737
|
key: d.id,
|
|
4729
4738
|
colSpan: d.colSpan,
|
|
4730
4739
|
onClick: (p) => d.column.getCanSort() ? d.column.getToggleSortingHandler()?.(p) : null
|
|
4731
4740
|
}, [
|
|
4732
|
-
d.isPlaceholder ?
|
|
4741
|
+
d.isPlaceholder ? D("", !0) : (S(), y("div", sr, [
|
|
4733
4742
|
M(C(fe), {
|
|
4734
4743
|
props: d.getContext(),
|
|
4735
4744
|
render: d.column.columnDef.header
|
|
@@ -4738,21 +4747,21 @@ const ri = { class: "pagination" }, li = {
|
|
|
4738
4747
|
key: 0,
|
|
4739
4748
|
icon: "ri:arrow-up-down-line",
|
|
4740
4749
|
class: "sort-icon"
|
|
4741
|
-
})) :
|
|
4750
|
+
})) : D("", !0),
|
|
4742
4751
|
d.column.getIsSorted() && d.column.getCanSort() ? (S(), E(C(j), {
|
|
4743
4752
|
key: 1,
|
|
4744
4753
|
icon: d.column.getIsSorted() === "asc" ? "mdi:arrow-up" : "mdi:arrow-down",
|
|
4745
4754
|
class: "sort-icon"
|
|
4746
|
-
}, null, 8, ["icon"])) :
|
|
4755
|
+
}, null, 8, ["icon"])) : D("", !0)
|
|
4747
4756
|
]))
|
|
4748
|
-
], 8,
|
|
4757
|
+
], 8, lr))), 128))
|
|
4749
4758
|
]))), 128))
|
|
4750
4759
|
], 2),
|
|
4751
4760
|
A("tbody", null, [
|
|
4752
|
-
(S(!0), y(H, null, z(C(r).getRowModel().rows, (
|
|
4753
|
-
key:
|
|
4761
|
+
(S(!0), y(H, null, z(C(r).getRowModel().rows, (c) => (S(), y("tr", {
|
|
4762
|
+
key: c.id
|
|
4754
4763
|
}, [
|
|
4755
|
-
(S(!0), y(H, null, z(
|
|
4764
|
+
(S(!0), y(H, null, z(c.getVisibleCells(), (d) => (S(), y("td", {
|
|
4756
4765
|
key: d.id,
|
|
4757
4766
|
"data-label": d.column.id
|
|
4758
4767
|
}, [
|
|
@@ -4760,84 +4769,84 @@ const ri = { class: "pagination" }, li = {
|
|
|
4760
4769
|
props: d.getContext(),
|
|
4761
4770
|
render: d.column.columnDef.cell
|
|
4762
4771
|
}, null, 8, ["props", "render"])
|
|
4763
|
-
], 8,
|
|
4772
|
+
], 8, ar))), 128))
|
|
4764
4773
|
]))), 128))
|
|
4765
4774
|
])
|
|
4766
4775
|
], 4),
|
|
4767
|
-
A("div",
|
|
4768
|
-
A("div",
|
|
4769
|
-
A("span",
|
|
4770
|
-
A("span",
|
|
4776
|
+
A("div", ur, [
|
|
4777
|
+
A("div", dr, [
|
|
4778
|
+
A("span", cr, N(C(r).getState().pagination.pageIndex + 1) + " of " + N(C(r).getPageCount()), 1),
|
|
4779
|
+
A("span", gr, [
|
|
4771
4780
|
f[6] || (f[6] = A("span", { class: "go-to-page-text" }, " Go to page: ", -1)),
|
|
4772
4781
|
A("input", {
|
|
4773
4782
|
class: "page-input",
|
|
4774
4783
|
type: "number",
|
|
4775
4784
|
value: C(r).getState().pagination.pageIndex + 1,
|
|
4776
4785
|
max: C(r).getPageCount(),
|
|
4777
|
-
onInput: f[0] || (f[0] = (
|
|
4778
|
-
}, null, 40,
|
|
4786
|
+
onInput: f[0] || (f[0] = (c) => a(c))
|
|
4787
|
+
}, null, 40, fr)
|
|
4779
4788
|
]),
|
|
4780
4789
|
A("select", {
|
|
4781
4790
|
value: C(r).getState().pagination.pageSize,
|
|
4782
|
-
onChange: f[1] || (f[1] = (
|
|
4791
|
+
onChange: f[1] || (f[1] = (c) => u(c))
|
|
4783
4792
|
}, [
|
|
4784
|
-
(S(), y(H, null, z([10, 20, 30, 40, 50], (
|
|
4785
|
-
key:
|
|
4786
|
-
value:
|
|
4787
|
-
}, " Show " + N(
|
|
4788
|
-
], 40,
|
|
4793
|
+
(S(), y(H, null, z([10, 20, 30, 40, 50], (c) => A("option", {
|
|
4794
|
+
key: c,
|
|
4795
|
+
value: c
|
|
4796
|
+
}, " Show " + N(c), 9, mr)), 64))
|
|
4797
|
+
], 40, pr)
|
|
4789
4798
|
]),
|
|
4790
|
-
A("div",
|
|
4799
|
+
A("div", hr, [
|
|
4791
4800
|
A("button", {
|
|
4792
4801
|
class: "page-navigation-button",
|
|
4793
4802
|
disabled: !C(r).getCanPreviousPage(),
|
|
4794
|
-
onClick: f[2] || (f[2] = (
|
|
4803
|
+
onClick: f[2] || (f[2] = (c) => C(r).setPageIndex(0))
|
|
4795
4804
|
}, [
|
|
4796
4805
|
M(C(j), {
|
|
4797
4806
|
icon: "material-symbols:keyboard-double-arrow-left-rounded",
|
|
4798
4807
|
class: "navigation-button-icon"
|
|
4799
4808
|
})
|
|
4800
|
-
], 8,
|
|
4809
|
+
], 8, vr),
|
|
4801
4810
|
A("button", {
|
|
4802
4811
|
class: "page-navigation-button",
|
|
4803
4812
|
disabled: !C(r).getCanPreviousPage(),
|
|
4804
|
-
onClick: f[3] || (f[3] = (
|
|
4813
|
+
onClick: f[3] || (f[3] = (c) => C(r).previousPage())
|
|
4805
4814
|
}, [
|
|
4806
4815
|
M(C(j), {
|
|
4807
4816
|
icon: "material-symbols:arrow-back-ios-new-rounded",
|
|
4808
4817
|
class: "navigation-button-icon"
|
|
4809
4818
|
})
|
|
4810
|
-
], 8,
|
|
4819
|
+
], 8, Sr),
|
|
4811
4820
|
A("button", {
|
|
4812
4821
|
class: "page-navigation-button",
|
|
4813
4822
|
disabled: !C(r).getCanNextPage(),
|
|
4814
|
-
onClick: f[4] || (f[4] = (
|
|
4823
|
+
onClick: f[4] || (f[4] = (c) => C(r).nextPage())
|
|
4815
4824
|
}, [
|
|
4816
4825
|
M(C(j), {
|
|
4817
4826
|
icon: "material-symbols:arrow-forward-ios-rounded",
|
|
4818
4827
|
class: "navigation-button-icon"
|
|
4819
4828
|
})
|
|
4820
|
-
], 8,
|
|
4829
|
+
], 8, wr),
|
|
4821
4830
|
A("button", {
|
|
4822
4831
|
class: "page-navigation-button",
|
|
4823
4832
|
disabled: !C(r).getCanNextPage(),
|
|
4824
|
-
onClick: f[5] || (f[5] = (
|
|
4833
|
+
onClick: f[5] || (f[5] = (c) => C(r).setPageIndex(C(r).getPageCount() - 1))
|
|
4825
4834
|
}, [
|
|
4826
4835
|
M(C(j), {
|
|
4827
4836
|
icon: "material-symbols:keyboard-double-arrow-right-rounded",
|
|
4828
4837
|
class: "navigation-button-icon"
|
|
4829
4838
|
})
|
|
4830
|
-
], 8,
|
|
4839
|
+
], 8, Cr)
|
|
4831
4840
|
])
|
|
4832
4841
|
])
|
|
4833
4842
|
]));
|
|
4834
4843
|
}
|
|
4835
4844
|
});
|
|
4836
4845
|
export {
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4846
|
+
Pr as FilesPresentation,
|
|
4847
|
+
nr as FilesTable,
|
|
4848
|
+
er as Table,
|
|
4849
|
+
Vi as TableBody,
|
|
4850
|
+
ji as TableHeader,
|
|
4851
|
+
$r as TanstackTable
|
|
4843
4852
|
};
|