@vtable-guild/vtable-guild 2.0.4 → 2.0.5
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/css/index.css +97 -0
- package/css/presets/antdv.css +179 -0
- package/css/presets/element-plus.css +191 -0
- package/css/tokens.css +34 -0
- package/css/transitions.css +21 -0
- package/dist/css/tokens.css +5 -4
- package/dist/index.d.ts +12 -12
- package/dist/index.mjs +911 -908
- package/package.json +13 -12
package/dist/index.mjs
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { reactive as ft, inject as he, computed as S, unref as St, defineComponent as J, ref as M, watch as ae, nextTick as Ye, onMounted as Xe, onBeforeUnmount as $e, createVNode as d, Fragment as $t, Teleport as zt, Transition as Ct, h as
|
|
2
|
-
var $
|
|
3
|
-
const t = [],
|
|
4
|
-
if (!
|
|
5
|
-
if (Array.isArray(
|
|
6
|
-
for (let a = 0, s =
|
|
1
|
+
import { reactive as ft, inject as he, computed as S, unref as St, defineComponent as J, ref as M, watch as ae, nextTick as Ye, onMounted as Xe, onBeforeUnmount as $e, createVNode as d, Fragment as $t, Teleport as zt, Transition as Ct, h as rt, provide as Pt, shallowRef as Ae, cloneVNode as Br, isVNode as vt, onUnmounted as mt, markRaw as jr, toRaw as Pr, mergeProps as me, Comment as Nr, resolveDynamicComponent as _o, getCurrentInstance as Fr, createBlock as Vr, openBlock as Hr, createSlots as Kr, withCtx as Be, renderSlot as je, normalizeProps as Je, guardReactiveProps as Qe } from "vue";
|
|
2
|
+
var $r = /\s+/g, Wr = (e) => typeof e != "string" || !e ? e : e.replace($r, " ").trim(), kt = (...e) => {
|
|
3
|
+
const t = [], o = (r) => {
|
|
4
|
+
if (!r && r !== 0 && r !== 0n) return;
|
|
5
|
+
if (Array.isArray(r)) {
|
|
6
|
+
for (let a = 0, s = r.length; a < s; a++) o(r[a]);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
const l = typeof
|
|
9
|
+
const l = typeof r;
|
|
10
10
|
if (l === "string" || l === "number" || l === "bigint") {
|
|
11
|
-
if (l === "number" &&
|
|
12
|
-
t.push(String(
|
|
11
|
+
if (l === "number" && r !== r) return;
|
|
12
|
+
t.push(String(r));
|
|
13
13
|
} else if (l === "object") {
|
|
14
|
-
const a = Object.keys(
|
|
14
|
+
const a = Object.keys(r);
|
|
15
15
|
for (let s = 0, n = a.length; s < n; s++) {
|
|
16
16
|
const i = a[s];
|
|
17
|
-
|
|
17
|
+
r[i] && t.push(i);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
for (let
|
|
22
|
-
const a = e[
|
|
23
|
-
a != null &&
|
|
21
|
+
for (let r = 0, l = e.length; r < l; r++) {
|
|
22
|
+
const a = e[r];
|
|
23
|
+
a != null && o(a);
|
|
24
24
|
}
|
|
25
|
-
return t.length > 0 ?
|
|
26
|
-
},
|
|
25
|
+
return t.length > 0 ? Wr(t.join(" ")) : void 0;
|
|
26
|
+
}, to = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, Se = (e) => {
|
|
27
27
|
if (!e || typeof e != "object") return !0;
|
|
28
28
|
for (const t in e) return !1;
|
|
29
29
|
return !0;
|
|
30
|
-
},
|
|
30
|
+
}, qr = (e, t) => {
|
|
31
31
|
if (e === t) return !0;
|
|
32
32
|
if (!e || !t) return !1;
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
for (let l = 0; l <
|
|
36
|
-
const a =
|
|
37
|
-
if (!
|
|
33
|
+
const o = Object.keys(e), r = Object.keys(t);
|
|
34
|
+
if (o.length !== r.length) return !1;
|
|
35
|
+
for (let l = 0; l < o.length; l++) {
|
|
36
|
+
const a = o[l];
|
|
37
|
+
if (!r.includes(a) || e[a] !== t[a]) return !1;
|
|
38
38
|
}
|
|
39
39
|
return !0;
|
|
40
|
-
},
|
|
41
|
-
for (const
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(t,
|
|
43
|
-
const
|
|
44
|
-
|
|
40
|
+
}, Gr = (e, t) => {
|
|
41
|
+
for (const o in t)
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(t, o)) {
|
|
43
|
+
const r = t[o];
|
|
44
|
+
o in e ? e[o] = kt(e[o], r) : e[o] = r;
|
|
45
45
|
}
|
|
46
46
|
return e;
|
|
47
|
-
},
|
|
48
|
-
for (let
|
|
49
|
-
const
|
|
50
|
-
Array.isArray(
|
|
47
|
+
}, Lo = (e, t) => {
|
|
48
|
+
for (let o = 0; o < e.length; o++) {
|
|
49
|
+
const r = e[o];
|
|
50
|
+
Array.isArray(r) ? Lo(r, t) : r && t.push(r);
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, Mo = (...e) => {
|
|
53
53
|
const t = [];
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
for (let
|
|
57
|
-
t[
|
|
58
|
-
return
|
|
54
|
+
Lo(e, t);
|
|
55
|
+
const o = [];
|
|
56
|
+
for (let r = 0; r < t.length; r++)
|
|
57
|
+
t[r] && o.push(t[r]);
|
|
58
|
+
return o;
|
|
59
59
|
}, Nt = (e, t) => {
|
|
60
|
-
const
|
|
61
|
-
for (const
|
|
62
|
-
const l = e[
|
|
63
|
-
if (
|
|
64
|
-
const a = t[
|
|
65
|
-
Array.isArray(l) || Array.isArray(a) ? r
|
|
60
|
+
const o = {};
|
|
61
|
+
for (const r in e) {
|
|
62
|
+
const l = e[r];
|
|
63
|
+
if (r in t) {
|
|
64
|
+
const a = t[r];
|
|
65
|
+
Array.isArray(l) || Array.isArray(a) ? o[r] = Mo(a, l) : typeof l == "object" && typeof a == "object" && l && a ? o[r] = Nt(l, a) : o[r] = a + " " + l;
|
|
66
66
|
} else
|
|
67
|
-
r
|
|
67
|
+
o[r] = l;
|
|
68
68
|
}
|
|
69
|
-
for (const
|
|
70
|
-
|
|
71
|
-
return
|
|
72
|
-
},
|
|
69
|
+
for (const r in t)
|
|
70
|
+
r in e || (o[r] = t[r]);
|
|
71
|
+
return o;
|
|
72
|
+
}, Yr = {
|
|
73
73
|
twMerge: !0,
|
|
74
74
|
twMergeConfig: {}
|
|
75
75
|
};
|
|
76
|
-
function
|
|
77
|
-
let e = null, t = {},
|
|
76
|
+
function Xr() {
|
|
77
|
+
let e = null, t = {}, o = !1;
|
|
78
78
|
return {
|
|
79
79
|
get cachedTwMerge() {
|
|
80
80
|
return e;
|
|
81
81
|
},
|
|
82
|
-
set cachedTwMerge(
|
|
83
|
-
e =
|
|
82
|
+
set cachedTwMerge(r) {
|
|
83
|
+
e = r;
|
|
84
84
|
},
|
|
85
85
|
get cachedTwMergeConfig() {
|
|
86
86
|
return t;
|
|
87
87
|
},
|
|
88
|
-
set cachedTwMergeConfig(
|
|
89
|
-
t =
|
|
88
|
+
set cachedTwMergeConfig(r) {
|
|
89
|
+
t = r;
|
|
90
90
|
},
|
|
91
91
|
get didTwMergeConfigChange() {
|
|
92
|
-
return
|
|
92
|
+
return o;
|
|
93
93
|
},
|
|
94
|
-
set didTwMergeConfigChange(
|
|
95
|
-
|
|
94
|
+
set didTwMergeConfigChange(r) {
|
|
95
|
+
o = r;
|
|
96
96
|
},
|
|
97
97
|
reset() {
|
|
98
|
-
e = null, t = {},
|
|
98
|
+
e = null, t = {}, o = !1;
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
var Ne =
|
|
103
|
-
const t = (
|
|
102
|
+
var Ne = Xr(), Ur = (e) => {
|
|
103
|
+
const t = (r, l) => {
|
|
104
104
|
const {
|
|
105
105
|
extend: a = null,
|
|
106
106
|
slots: s = {},
|
|
@@ -108,16 +108,16 @@ var Ne = Xo(), Uo = (e) => {
|
|
|
108
108
|
compoundVariants: i = [],
|
|
109
109
|
compoundSlots: v = [],
|
|
110
110
|
defaultVariants: f = {}
|
|
111
|
-
} =
|
|
112
|
-
!Se(u.twMergeConfig) && !
|
|
111
|
+
} = r, u = { ...Yr, ...l }, c = a?.base ? kt(a.base, r?.base) : r?.base, m = a?.variants && !Se(a.variants) ? Nt(n, a.variants) : n, h = a?.defaultVariants && !Se(a.defaultVariants) ? { ...a.defaultVariants, ...f } : f;
|
|
112
|
+
!Se(u.twMergeConfig) && !qr(u.twMergeConfig, Ne.cachedTwMergeConfig) && (Ne.didTwMergeConfigChange = !0, Ne.cachedTwMergeConfig = u.twMergeConfig);
|
|
113
113
|
const b = Se(a?.slots), x = Se(s) ? {} : {
|
|
114
114
|
// add "base" to the slots object
|
|
115
|
-
base: kt(
|
|
115
|
+
base: kt(r?.base, b && a?.base),
|
|
116
116
|
...s
|
|
117
|
-
}, k = b ? x :
|
|
117
|
+
}, k = b ? x : Gr(
|
|
118
118
|
{ ...a?.slots },
|
|
119
|
-
Se(x) ? { base:
|
|
120
|
-
), C = Se(a?.compoundVariants) ? i :
|
|
119
|
+
Se(x) ? { base: r?.base } : x
|
|
120
|
+
), C = Se(a?.compoundVariants) ? i : Mo(a?.compoundVariants, i), T = (w) => {
|
|
121
121
|
if (Se(m) && Se(s) && b)
|
|
122
122
|
return e(c, w?.class, w?.className)(u);
|
|
123
123
|
if (C && !Array.isArray(C))
|
|
@@ -134,10 +134,10 @@ var Ne = Xo(), Uo = (e) => {
|
|
|
134
134
|
return null;
|
|
135
135
|
const A = Y?.[K] ?? w?.[K];
|
|
136
136
|
if (A === null) return null;
|
|
137
|
-
const y =
|
|
137
|
+
const y = to(A);
|
|
138
138
|
if (typeof y == "object")
|
|
139
139
|
return null;
|
|
140
|
-
const R = h?.[K], I = y ??
|
|
140
|
+
const R = h?.[K], I = y ?? to(R);
|
|
141
141
|
return g[I || "false"];
|
|
142
142
|
}, E = () => {
|
|
143
143
|
if (!m) return null;
|
|
@@ -270,52 +270,52 @@ var Ne = Xo(), Uo = (e) => {
|
|
|
270
270
|
};
|
|
271
271
|
return {
|
|
272
272
|
tv: t,
|
|
273
|
-
createTV: (
|
|
273
|
+
createTV: (r) => (l, a) => t(l, a ? Nt(r, a) : r)
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
|
-
const
|
|
277
|
-
const
|
|
278
|
-
for (let
|
|
279
|
-
r
|
|
280
|
-
for (let
|
|
281
|
-
|
|
282
|
-
return
|
|
283
|
-
},
|
|
276
|
+
const Zr = (e, t) => {
|
|
277
|
+
const o = new Array(e.length + t.length);
|
|
278
|
+
for (let r = 0; r < e.length; r++)
|
|
279
|
+
o[r] = e[r];
|
|
280
|
+
for (let r = 0; r < t.length; r++)
|
|
281
|
+
o[e.length + r] = t[r];
|
|
282
|
+
return o;
|
|
283
|
+
}, Jr = (e, t) => ({
|
|
284
284
|
classGroupId: e,
|
|
285
285
|
validator: t
|
|
286
|
-
}),
|
|
286
|
+
}), Oo = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
287
287
|
nextPart: e,
|
|
288
288
|
validators: t,
|
|
289
|
-
classGroupId:
|
|
290
|
-
}), Tt = "-",
|
|
291
|
-
const t =
|
|
292
|
-
conflictingClassGroups:
|
|
293
|
-
conflictingClassGroupModifiers:
|
|
289
|
+
classGroupId: o
|
|
290
|
+
}), Tt = "-", oo = [], Qr = "arbitrary..", el = (e) => {
|
|
291
|
+
const t = ol(e), {
|
|
292
|
+
conflictingClassGroups: o,
|
|
293
|
+
conflictingClassGroupModifiers: r
|
|
294
294
|
} = e;
|
|
295
295
|
return {
|
|
296
296
|
getClassGroupId: (s) => {
|
|
297
297
|
if (s.startsWith("[") && s.endsWith("]"))
|
|
298
298
|
return tl(s);
|
|
299
299
|
const n = s.split(Tt), i = n[0] === "" && n.length > 1 ? 1 : 0;
|
|
300
|
-
return
|
|
300
|
+
return Bo(n, i, t);
|
|
301
301
|
},
|
|
302
302
|
getConflictingClassGroupIds: (s, n) => {
|
|
303
303
|
if (n) {
|
|
304
|
-
const i =
|
|
305
|
-
return i ? v ?
|
|
304
|
+
const i = r[s], v = o[s];
|
|
305
|
+
return i ? v ? Zr(v, i) : i : v || oo;
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return o[s] || oo;
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Bo = (e, t, o) => {
|
|
311
311
|
if (e.length - t === 0)
|
|
312
|
-
return
|
|
313
|
-
const l = e[t], a =
|
|
312
|
+
return o.classGroupId;
|
|
313
|
+
const l = e[t], a = o.nextPart.get(l);
|
|
314
314
|
if (a) {
|
|
315
|
-
const v =
|
|
315
|
+
const v = Bo(e, t + 1, a);
|
|
316
316
|
if (v) return v;
|
|
317
317
|
}
|
|
318
|
-
const s =
|
|
318
|
+
const s = o.validators;
|
|
319
319
|
if (s === null)
|
|
320
320
|
return;
|
|
321
321
|
const n = t === 0 ? e.join(Tt) : e.slice(t).join(Tt), i = s.length;
|
|
@@ -325,61 +325,61 @@ const Zo = (e, t) => {
|
|
|
325
325
|
return f.classGroupId;
|
|
326
326
|
}
|
|
327
327
|
}, tl = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
328
|
-
const t = e.slice(1, -1),
|
|
329
|
-
return
|
|
330
|
-
})(),
|
|
328
|
+
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
329
|
+
return r ? Qr + r : void 0;
|
|
330
|
+
})(), ol = (e) => {
|
|
331
331
|
const {
|
|
332
332
|
theme: t,
|
|
333
|
-
classGroups:
|
|
333
|
+
classGroups: o
|
|
334
334
|
} = e;
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
const
|
|
338
|
-
for (const
|
|
339
|
-
const l = e[
|
|
340
|
-
Wt(l,
|
|
335
|
+
return rl(o, t);
|
|
336
|
+
}, rl = (e, t) => {
|
|
337
|
+
const o = Oo();
|
|
338
|
+
for (const r in e) {
|
|
339
|
+
const l = e[r];
|
|
340
|
+
Wt(l, o, r, t);
|
|
341
341
|
}
|
|
342
|
-
return
|
|
343
|
-
}, Wt = (e, t,
|
|
342
|
+
return o;
|
|
343
|
+
}, Wt = (e, t, o, r) => {
|
|
344
344
|
const l = e.length;
|
|
345
345
|
for (let a = 0; a < l; a++) {
|
|
346
346
|
const s = e[a];
|
|
347
|
-
ll(s, t,
|
|
347
|
+
ll(s, t, o, r);
|
|
348
348
|
}
|
|
349
|
-
}, ll = (e, t,
|
|
349
|
+
}, ll = (e, t, o, r) => {
|
|
350
350
|
if (typeof e == "string") {
|
|
351
|
-
nl(e, t,
|
|
351
|
+
nl(e, t, o);
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
354
|
if (typeof e == "function") {
|
|
355
|
-
al(e, t,
|
|
355
|
+
al(e, t, o, r);
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
|
-
sl(e, t,
|
|
359
|
-
}, nl = (e, t,
|
|
360
|
-
const
|
|
361
|
-
|
|
362
|
-
}, al = (e, t,
|
|
358
|
+
sl(e, t, o, r);
|
|
359
|
+
}, nl = (e, t, o) => {
|
|
360
|
+
const r = e === "" ? t : jo(t, e);
|
|
361
|
+
r.classGroupId = o;
|
|
362
|
+
}, al = (e, t, o, r) => {
|
|
363
363
|
if (il(e)) {
|
|
364
|
-
Wt(e(
|
|
364
|
+
Wt(e(r), t, o, r);
|
|
365
365
|
return;
|
|
366
366
|
}
|
|
367
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
368
|
-
}, sl = (e, t,
|
|
367
|
+
t.validators === null && (t.validators = []), t.validators.push(Jr(o, e));
|
|
368
|
+
}, sl = (e, t, o, r) => {
|
|
369
369
|
const l = Object.entries(e), a = l.length;
|
|
370
370
|
for (let s = 0; s < a; s++) {
|
|
371
371
|
const [n, i] = l[s];
|
|
372
|
-
Wt(i,
|
|
372
|
+
Wt(i, jo(t, n), o, r);
|
|
373
373
|
}
|
|
374
|
-
},
|
|
375
|
-
let
|
|
376
|
-
const
|
|
374
|
+
}, jo = (e, t) => {
|
|
375
|
+
let o = e;
|
|
376
|
+
const r = t.split(Tt), l = r.length;
|
|
377
377
|
for (let a = 0; a < l; a++) {
|
|
378
|
-
const s =
|
|
379
|
-
let n =
|
|
380
|
-
n || (n =
|
|
378
|
+
const s = r[a];
|
|
379
|
+
let n = o.nextPart.get(s);
|
|
380
|
+
n || (n = Oo(), o.nextPart.set(s, n)), o = n;
|
|
381
381
|
}
|
|
382
|
-
return
|
|
382
|
+
return o;
|
|
383
383
|
}, il = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, cl = (e) => {
|
|
384
384
|
if (e < 1)
|
|
385
385
|
return {
|
|
@@ -388,41 +388,41 @@ const Zo = (e, t) => {
|
|
|
388
388
|
set: () => {
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
|
-
let t = 0,
|
|
391
|
+
let t = 0, o = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
392
392
|
const l = (a, s) => {
|
|
393
|
-
|
|
393
|
+
o[a] = s, t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ Object.create(null));
|
|
394
394
|
};
|
|
395
395
|
return {
|
|
396
396
|
get(a) {
|
|
397
|
-
let s =
|
|
397
|
+
let s = o[a];
|
|
398
398
|
if (s !== void 0)
|
|
399
399
|
return s;
|
|
400
|
-
if ((s =
|
|
400
|
+
if ((s = r[a]) !== void 0)
|
|
401
401
|
return l(a, s), s;
|
|
402
402
|
},
|
|
403
403
|
set(a, s) {
|
|
404
|
-
a in
|
|
404
|
+
a in o ? o[a] = s : l(a, s);
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
-
}, Ft = "!",
|
|
407
|
+
}, Ft = "!", ro = ":", dl = [], lo = (e, t, o, r, l) => ({
|
|
408
408
|
modifiers: e,
|
|
409
409
|
hasImportantModifier: t,
|
|
410
|
-
baseClassName:
|
|
411
|
-
maybePostfixModifierPosition:
|
|
410
|
+
baseClassName: o,
|
|
411
|
+
maybePostfixModifierPosition: r,
|
|
412
412
|
isExternal: l
|
|
413
413
|
}), ul = (e) => {
|
|
414
414
|
const {
|
|
415
415
|
prefix: t,
|
|
416
|
-
experimentalParseClassName:
|
|
416
|
+
experimentalParseClassName: o
|
|
417
417
|
} = e;
|
|
418
|
-
let
|
|
418
|
+
let r = (l) => {
|
|
419
419
|
const a = [];
|
|
420
420
|
let s = 0, n = 0, i = 0, v;
|
|
421
421
|
const f = l.length;
|
|
422
422
|
for (let b = 0; b < f; b++) {
|
|
423
423
|
const x = l[b];
|
|
424
424
|
if (s === 0 && n === 0) {
|
|
425
|
-
if (x ===
|
|
425
|
+
if (x === ro) {
|
|
426
426
|
a.push(l.slice(i, b)), i = b + 1;
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
@@ -443,32 +443,32 @@ const Zo = (e, t) => {
|
|
|
443
443
|
u.startsWith(Ft) && (c = u.slice(1), m = !0)
|
|
444
444
|
);
|
|
445
445
|
const h = v && v > i ? v - i : void 0;
|
|
446
|
-
return
|
|
446
|
+
return lo(a, m, c, h);
|
|
447
447
|
};
|
|
448
448
|
if (t) {
|
|
449
|
-
const l = t +
|
|
450
|
-
|
|
449
|
+
const l = t + ro, a = r;
|
|
450
|
+
r = (s) => s.startsWith(l) ? a(s.slice(l.length)) : lo(dl, !1, s, void 0, !0);
|
|
451
451
|
}
|
|
452
|
-
if (
|
|
453
|
-
const l =
|
|
454
|
-
|
|
452
|
+
if (o) {
|
|
453
|
+
const l = r;
|
|
454
|
+
r = (a) => o({
|
|
455
455
|
className: a,
|
|
456
456
|
parseClassName: l
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return r;
|
|
460
460
|
}, fl = (e) => {
|
|
461
461
|
const t = /* @__PURE__ */ new Map();
|
|
462
|
-
return e.orderSensitiveModifiers.forEach((
|
|
463
|
-
t.set(
|
|
464
|
-
}), (
|
|
465
|
-
const
|
|
462
|
+
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
463
|
+
t.set(o, 1e6 + r);
|
|
464
|
+
}), (o) => {
|
|
465
|
+
const r = [];
|
|
466
466
|
let l = [];
|
|
467
|
-
for (let a = 0; a <
|
|
468
|
-
const s =
|
|
469
|
-
n || i ? (l.length > 0 && (l.sort(),
|
|
467
|
+
for (let a = 0; a < o.length; a++) {
|
|
468
|
+
const s = o[a], n = s[0] === "[", i = t.has(s);
|
|
469
|
+
n || i ? (l.length > 0 && (l.sort(), r.push(...l), l = []), r.push(s)) : l.push(s);
|
|
470
470
|
}
|
|
471
|
-
return l.length > 0 && (l.sort(),
|
|
471
|
+
return l.length > 0 && (l.sort(), r.push(...l)), r;
|
|
472
472
|
};
|
|
473
473
|
}, vl = (e) => ({
|
|
474
474
|
cache: cl(e.cacheSize),
|
|
@@ -477,8 +477,8 @@ const Zo = (e, t) => {
|
|
|
477
477
|
...el(e)
|
|
478
478
|
}), ml = /\s+/, hl = (e, t) => {
|
|
479
479
|
const {
|
|
480
|
-
parseClassName:
|
|
481
|
-
getClassGroupId:
|
|
480
|
+
parseClassName: o,
|
|
481
|
+
getClassGroupId: r,
|
|
482
482
|
getConflictingClassGroupIds: l,
|
|
483
483
|
sortModifiers: a
|
|
484
484
|
} = t, s = [], n = e.trim().split(ml);
|
|
@@ -490,18 +490,18 @@ const Zo = (e, t) => {
|
|
|
490
490
|
hasImportantModifier: m,
|
|
491
491
|
baseClassName: h,
|
|
492
492
|
maybePostfixModifierPosition: b
|
|
493
|
-
} =
|
|
493
|
+
} = o(f);
|
|
494
494
|
if (u) {
|
|
495
495
|
i = f + (i.length > 0 ? " " + i : i);
|
|
496
496
|
continue;
|
|
497
497
|
}
|
|
498
|
-
let x = !!b, k =
|
|
498
|
+
let x = !!b, k = r(x ? h.substring(0, b) : h);
|
|
499
499
|
if (!k) {
|
|
500
500
|
if (!x) {
|
|
501
501
|
i = f + (i.length > 0 ? " " + i : i);
|
|
502
502
|
continue;
|
|
503
503
|
}
|
|
504
|
-
if (k =
|
|
504
|
+
if (k = r(h), !k) {
|
|
505
505
|
i = f + (i.length > 0 ? " " + i : i);
|
|
506
506
|
continue;
|
|
507
507
|
}
|
|
@@ -520,46 +520,46 @@ const Zo = (e, t) => {
|
|
|
520
520
|
}
|
|
521
521
|
return i;
|
|
522
522
|
}, pl = (...e) => {
|
|
523
|
-
let t = 0,
|
|
523
|
+
let t = 0, o, r, l = "";
|
|
524
524
|
for (; t < e.length; )
|
|
525
|
-
(
|
|
525
|
+
(o = e[t++]) && (r = Po(o)) && (l && (l += " "), l += r);
|
|
526
526
|
return l;
|
|
527
|
-
},
|
|
527
|
+
}, Po = (e) => {
|
|
528
528
|
if (typeof e == "string")
|
|
529
529
|
return e;
|
|
530
|
-
let t,
|
|
531
|
-
for (let
|
|
532
|
-
e[
|
|
533
|
-
return
|
|
530
|
+
let t, o = "";
|
|
531
|
+
for (let r = 0; r < e.length; r++)
|
|
532
|
+
e[r] && (t = Po(e[r])) && (o && (o += " "), o += t);
|
|
533
|
+
return o;
|
|
534
534
|
}, Vt = (e, ...t) => {
|
|
535
|
-
let
|
|
535
|
+
let o, r, l, a;
|
|
536
536
|
const s = (i) => {
|
|
537
537
|
const v = t.reduce((f, u) => u(f), e());
|
|
538
|
-
return
|
|
538
|
+
return o = vl(v), r = o.cache.get, l = o.cache.set, a = n, n(i);
|
|
539
539
|
}, n = (i) => {
|
|
540
|
-
const v =
|
|
540
|
+
const v = r(i);
|
|
541
541
|
if (v)
|
|
542
542
|
return v;
|
|
543
|
-
const f = hl(i,
|
|
543
|
+
const f = hl(i, o);
|
|
544
544
|
return l(i, f), f;
|
|
545
545
|
};
|
|
546
546
|
return a = s, (...i) => a(pl(...i));
|
|
547
547
|
}, bl = [], ve = (e) => {
|
|
548
|
-
const t = (
|
|
548
|
+
const t = (o) => o[e] || bl;
|
|
549
549
|
return t.isThemeGetter = !0, t;
|
|
550
|
-
},
|
|
550
|
+
}, No = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, gl = /^\d+\/\d+$/, yl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xl = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Sl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, et = (e) => gl.test(e), oe = (e) => !!e && !Number.isNaN(Number(e)), He = (e) => !!e && Number.isInteger(Number(e)), _t = (e) => e.endsWith("%") && oe(e.slice(0, -1)), Pe = (e) => yl.test(e), kl = () => !0, Tl = (e) => (
|
|
551
551
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
552
552
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
553
553
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
554
554
|
xl.test(e) && !wl.test(e)
|
|
555
|
-
),
|
|
556
|
-
const
|
|
557
|
-
return
|
|
558
|
-
}, at = (e, t,
|
|
559
|
-
const
|
|
560
|
-
return
|
|
561
|
-
},
|
|
562
|
-
const e = ve("color"), t = ve("font"),
|
|
555
|
+
), Vo = () => !1, Il = (e) => Sl.test(e), Rl = (e) => Cl.test(e), El = (e) => !V(e) && !H(e), zl = (e) => nt(e, $o, Vo), V = (e) => No.test(e), Ge = (e) => nt(e, Wo, Tl), Lt = (e) => nt(e, Ml, oe), no = (e) => nt(e, Ho, Vo), Dl = (e) => nt(e, Ko, Rl), pt = (e) => nt(e, qo, Il), H = (e) => Fo.test(e), it = (e) => at(e, Wo), Al = (e) => at(e, Ol), ao = (e) => at(e, Ho), _l = (e) => at(e, $o), Ll = (e) => at(e, Ko), bt = (e) => at(e, qo, !0), nt = (e, t, o) => {
|
|
556
|
+
const r = No.exec(e);
|
|
557
|
+
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
558
|
+
}, at = (e, t, o = !1) => {
|
|
559
|
+
const r = Fo.exec(e);
|
|
560
|
+
return r ? r[1] ? t(r[1]) : o : !1;
|
|
561
|
+
}, Ho = (e) => e === "position" || e === "percentage", Ko = (e) => e === "image" || e === "url", $o = (e) => e === "length" || e === "size" || e === "bg-size", Wo = (e) => e === "length", Ml = (e) => e === "number", Ol = (e) => e === "family-name", qo = (e) => e === "shadow", Ht = () => {
|
|
562
|
+
const e = ve("color"), t = ve("font"), o = ve("text"), r = ve("font-weight"), l = ve("tracking"), a = ve("leading"), s = ve("breakpoint"), n = ve("container"), i = ve("spacing"), v = ve("radius"), f = ve("shadow"), u = ve("inset-shadow"), c = ve("text-shadow"), m = ve("drop-shadow"), h = ve("blur"), b = ve("perspective"), x = ve("aspect"), k = ve("ease"), C = ve("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], p = () => [
|
|
563
563
|
"center",
|
|
564
564
|
"top",
|
|
565
565
|
"bottom",
|
|
@@ -579,7 +579,7 @@ const Zo = (e, t) => {
|
|
|
579
579
|
"left-bottom"
|
|
580
580
|
], w = () => [...p(), H, V], D = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], z = () => [H, V, i], L = () => [et, "full", "auto", ...z()], $ = () => [He, "none", "subgrid", H, V], G = () => ["auto", {
|
|
581
581
|
span: ["full", He, H, V]
|
|
582
|
-
}, He, H, V], U = () => [He, "auto", H, V], Q = () => ["auto", "min", "max", "fr", H, V], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...z()], Y = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], g = () => [e, H, V], A = () => [...p(),
|
|
582
|
+
}, He, H, V], U = () => [He, "auto", H, V], Q = () => ["auto", "min", "max", "fr", H, V], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...z()], Y = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], g = () => [e, H, V], A = () => [...p(), ao, no, {
|
|
583
583
|
position: [H, V]
|
|
584
584
|
}], y = () => ["no-repeat", {
|
|
585
585
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -593,14 +593,14 @@ const Zo = (e, t) => {
|
|
|
593
593
|
v,
|
|
594
594
|
H,
|
|
595
595
|
V
|
|
596
|
-
], P = () => ["",
|
|
596
|
+
], P = () => ["", oe, it, Ge], le = () => ["solid", "dashed", "dotted", "double"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => [oe, _t, ao, no], se = () => [
|
|
597
597
|
// Deprecated since Tailwind CSS v4.0.0
|
|
598
598
|
"",
|
|
599
599
|
"none",
|
|
600
600
|
h,
|
|
601
601
|
H,
|
|
602
602
|
V
|
|
603
|
-
], pe = () => ["none",
|
|
603
|
+
], pe = () => ["none", oe, H, V], ue = () => ["none", oe, H, V], O = () => [oe, H, V], ee = () => [et, "full", ...z()];
|
|
604
604
|
return {
|
|
605
605
|
cacheSize: 500,
|
|
606
606
|
theme: {
|
|
@@ -619,7 +619,7 @@ const Zo = (e, t) => {
|
|
|
619
619
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
620
620
|
radius: [Pe],
|
|
621
621
|
shadow: [Pe],
|
|
622
|
-
spacing: ["px",
|
|
622
|
+
spacing: ["px", oe],
|
|
623
623
|
text: [Pe],
|
|
624
624
|
"text-shadow": [Pe],
|
|
625
625
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -646,7 +646,7 @@ const Zo = (e, t) => {
|
|
|
646
646
|
* @see https://tailwindcss.com/docs/columns
|
|
647
647
|
*/
|
|
648
648
|
columns: [{
|
|
649
|
-
columns: [
|
|
649
|
+
columns: [oe, V, H, n]
|
|
650
650
|
}],
|
|
651
651
|
/**
|
|
652
652
|
* Break After
|
|
@@ -877,21 +877,21 @@ const Zo = (e, t) => {
|
|
|
877
877
|
* @see https://tailwindcss.com/docs/flex
|
|
878
878
|
*/
|
|
879
879
|
flex: [{
|
|
880
|
-
flex: [
|
|
880
|
+
flex: [oe, et, "auto", "initial", "none", V]
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Flex Grow
|
|
884
884
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
885
885
|
*/
|
|
886
886
|
grow: [{
|
|
887
|
-
grow: ["",
|
|
887
|
+
grow: ["", oe, H, V]
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Flex Shrink
|
|
891
891
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
892
892
|
*/
|
|
893
893
|
shrink: [{
|
|
894
|
-
shrink: ["",
|
|
894
|
+
shrink: ["", oe, H, V]
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Order
|
|
@@ -1293,7 +1293,7 @@ const Zo = (e, t) => {
|
|
|
1293
1293
|
* @see https://tailwindcss.com/docs/font-size
|
|
1294
1294
|
*/
|
|
1295
1295
|
"font-size": [{
|
|
1296
|
-
text: ["base",
|
|
1296
|
+
text: ["base", o, it, Ge]
|
|
1297
1297
|
}],
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Font Smoothing
|
|
@@ -1310,7 +1310,7 @@ const Zo = (e, t) => {
|
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1311
1311
|
*/
|
|
1312
1312
|
"font-weight": [{
|
|
1313
|
-
font: [
|
|
1313
|
+
font: [r, H, Lt]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Font Stretch
|
|
@@ -1368,7 +1368,7 @@ const Zo = (e, t) => {
|
|
|
1368
1368
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1369
1369
|
*/
|
|
1370
1370
|
"line-clamp": [{
|
|
1371
|
-
"line-clamp": [
|
|
1371
|
+
"line-clamp": [oe, "none", H, Lt]
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Line Height
|
|
@@ -1441,7 +1441,7 @@ const Zo = (e, t) => {
|
|
|
1441
1441
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1442
1442
|
*/
|
|
1443
1443
|
"text-decoration-thickness": [{
|
|
1444
|
-
decoration: [
|
|
1444
|
+
decoration: [oe, "from-font", "auto", H, Ge]
|
|
1445
1445
|
}],
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Text Decoration Color
|
|
@@ -1455,7 +1455,7 @@ const Zo = (e, t) => {
|
|
|
1455
1455
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1456
1456
|
*/
|
|
1457
1457
|
"underline-offset": [{
|
|
1458
|
-
"underline-offset": [
|
|
1458
|
+
"underline-offset": [oe, "auto", H, V]
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Text Transform
|
|
@@ -1921,14 +1921,14 @@ const Zo = (e, t) => {
|
|
|
1921
1921
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1922
1922
|
*/
|
|
1923
1923
|
"outline-offset": [{
|
|
1924
|
-
"outline-offset": [
|
|
1924
|
+
"outline-offset": [oe, H, V]
|
|
1925
1925
|
}],
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Outline Width
|
|
1928
1928
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1929
1929
|
*/
|
|
1930
1930
|
"outline-w": [{
|
|
1931
|
-
outline: ["",
|
|
1931
|
+
outline: ["", oe, it, Ge]
|
|
1932
1932
|
}],
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Outline Color
|
|
@@ -2003,7 +2003,7 @@ const Zo = (e, t) => {
|
|
|
2003
2003
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2004
2004
|
*/
|
|
2005
2005
|
"ring-offset-w": [{
|
|
2006
|
-
"ring-offset": [
|
|
2006
|
+
"ring-offset": [oe, Ge]
|
|
2007
2007
|
}],
|
|
2008
2008
|
/**
|
|
2009
2009
|
* Ring Offset Color
|
|
@@ -2047,7 +2047,7 @@ const Zo = (e, t) => {
|
|
|
2047
2047
|
* @see https://tailwindcss.com/docs/opacity
|
|
2048
2048
|
*/
|
|
2049
2049
|
opacity: [{
|
|
2050
|
-
opacity: [
|
|
2050
|
+
opacity: [oe, H, V]
|
|
2051
2051
|
}],
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Mix Blend Mode
|
|
@@ -2082,7 +2082,7 @@ const Zo = (e, t) => {
|
|
|
2082
2082
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2083
2083
|
*/
|
|
2084
2084
|
"mask-image-linear-pos": [{
|
|
2085
|
-
"mask-linear": [
|
|
2085
|
+
"mask-linear": [oe]
|
|
2086
2086
|
}],
|
|
2087
2087
|
"mask-image-linear-from-pos": [{
|
|
2088
2088
|
"mask-linear-from": Z()
|
|
@@ -2196,7 +2196,7 @@ const Zo = (e, t) => {
|
|
|
2196
2196
|
"mask-radial-at": p()
|
|
2197
2197
|
}],
|
|
2198
2198
|
"mask-image-conic-pos": [{
|
|
2199
|
-
"mask-conic": [
|
|
2199
|
+
"mask-conic": [oe]
|
|
2200
2200
|
}],
|
|
2201
2201
|
"mask-image-conic-from-pos": [{
|
|
2202
2202
|
"mask-conic-from": Z()
|
|
@@ -2287,14 +2287,14 @@ const Zo = (e, t) => {
|
|
|
2287
2287
|
* @see https://tailwindcss.com/docs/brightness
|
|
2288
2288
|
*/
|
|
2289
2289
|
brightness: [{
|
|
2290
|
-
brightness: [
|
|
2290
|
+
brightness: [oe, H, V]
|
|
2291
2291
|
}],
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Contrast
|
|
2294
2294
|
* @see https://tailwindcss.com/docs/contrast
|
|
2295
2295
|
*/
|
|
2296
2296
|
contrast: [{
|
|
2297
|
-
contrast: [
|
|
2297
|
+
contrast: [oe, H, V]
|
|
2298
2298
|
}],
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Drop Shadow
|
|
@@ -2322,35 +2322,35 @@ const Zo = (e, t) => {
|
|
|
2322
2322
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2323
2323
|
*/
|
|
2324
2324
|
grayscale: [{
|
|
2325
|
-
grayscale: ["",
|
|
2325
|
+
grayscale: ["", oe, H, V]
|
|
2326
2326
|
}],
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Hue Rotate
|
|
2329
2329
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2330
2330
|
*/
|
|
2331
2331
|
"hue-rotate": [{
|
|
2332
|
-
"hue-rotate": [
|
|
2332
|
+
"hue-rotate": [oe, H, V]
|
|
2333
2333
|
}],
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Invert
|
|
2336
2336
|
* @see https://tailwindcss.com/docs/invert
|
|
2337
2337
|
*/
|
|
2338
2338
|
invert: [{
|
|
2339
|
-
invert: ["",
|
|
2339
|
+
invert: ["", oe, H, V]
|
|
2340
2340
|
}],
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Saturate
|
|
2343
2343
|
* @see https://tailwindcss.com/docs/saturate
|
|
2344
2344
|
*/
|
|
2345
2345
|
saturate: [{
|
|
2346
|
-
saturate: [
|
|
2346
|
+
saturate: [oe, H, V]
|
|
2347
2347
|
}],
|
|
2348
2348
|
/**
|
|
2349
2349
|
* Sepia
|
|
2350
2350
|
* @see https://tailwindcss.com/docs/sepia
|
|
2351
2351
|
*/
|
|
2352
2352
|
sepia: [{
|
|
2353
|
-
sepia: ["",
|
|
2353
|
+
sepia: ["", oe, H, V]
|
|
2354
2354
|
}],
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Backdrop Filter
|
|
@@ -2377,56 +2377,56 @@ const Zo = (e, t) => {
|
|
|
2377
2377
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2378
2378
|
*/
|
|
2379
2379
|
"backdrop-brightness": [{
|
|
2380
|
-
"backdrop-brightness": [
|
|
2380
|
+
"backdrop-brightness": [oe, H, V]
|
|
2381
2381
|
}],
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Backdrop Contrast
|
|
2384
2384
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2385
2385
|
*/
|
|
2386
2386
|
"backdrop-contrast": [{
|
|
2387
|
-
"backdrop-contrast": [
|
|
2387
|
+
"backdrop-contrast": [oe, H, V]
|
|
2388
2388
|
}],
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Backdrop Grayscale
|
|
2391
2391
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2392
2392
|
*/
|
|
2393
2393
|
"backdrop-grayscale": [{
|
|
2394
|
-
"backdrop-grayscale": ["",
|
|
2394
|
+
"backdrop-grayscale": ["", oe, H, V]
|
|
2395
2395
|
}],
|
|
2396
2396
|
/**
|
|
2397
2397
|
* Backdrop Hue Rotate
|
|
2398
2398
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2399
2399
|
*/
|
|
2400
2400
|
"backdrop-hue-rotate": [{
|
|
2401
|
-
"backdrop-hue-rotate": [
|
|
2401
|
+
"backdrop-hue-rotate": [oe, H, V]
|
|
2402
2402
|
}],
|
|
2403
2403
|
/**
|
|
2404
2404
|
* Backdrop Invert
|
|
2405
2405
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2406
2406
|
*/
|
|
2407
2407
|
"backdrop-invert": [{
|
|
2408
|
-
"backdrop-invert": ["",
|
|
2408
|
+
"backdrop-invert": ["", oe, H, V]
|
|
2409
2409
|
}],
|
|
2410
2410
|
/**
|
|
2411
2411
|
* Backdrop Opacity
|
|
2412
2412
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2413
2413
|
*/
|
|
2414
2414
|
"backdrop-opacity": [{
|
|
2415
|
-
"backdrop-opacity": [
|
|
2415
|
+
"backdrop-opacity": [oe, H, V]
|
|
2416
2416
|
}],
|
|
2417
2417
|
/**
|
|
2418
2418
|
* Backdrop Saturate
|
|
2419
2419
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2420
2420
|
*/
|
|
2421
2421
|
"backdrop-saturate": [{
|
|
2422
|
-
"backdrop-saturate": [
|
|
2422
|
+
"backdrop-saturate": [oe, H, V]
|
|
2423
2423
|
}],
|
|
2424
2424
|
/**
|
|
2425
2425
|
* Backdrop Sepia
|
|
2426
2426
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2427
2427
|
*/
|
|
2428
2428
|
"backdrop-sepia": [{
|
|
2429
|
-
"backdrop-sepia": ["",
|
|
2429
|
+
"backdrop-sepia": ["", oe, H, V]
|
|
2430
2430
|
}],
|
|
2431
2431
|
// --------------
|
|
2432
2432
|
// --- Tables ---
|
|
@@ -2495,7 +2495,7 @@ const Zo = (e, t) => {
|
|
|
2495
2495
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2496
2496
|
*/
|
|
2497
2497
|
duration: [{
|
|
2498
|
-
duration: [
|
|
2498
|
+
duration: [oe, "initial", H, V]
|
|
2499
2499
|
}],
|
|
2500
2500
|
/**
|
|
2501
2501
|
* Transition Timing Function
|
|
@@ -2509,7 +2509,7 @@ const Zo = (e, t) => {
|
|
|
2509
2509
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2510
2510
|
*/
|
|
2511
2511
|
delay: [{
|
|
2512
|
-
delay: [
|
|
2512
|
+
delay: [oe, H, V]
|
|
2513
2513
|
}],
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Animation
|
|
@@ -2953,7 +2953,7 @@ const Zo = (e, t) => {
|
|
|
2953
2953
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2954
2954
|
*/
|
|
2955
2955
|
"stroke-w": [{
|
|
2956
|
-
stroke: [
|
|
2956
|
+
stroke: [oe, it, Ge, Lt]
|
|
2957
2957
|
}],
|
|
2958
2958
|
/**
|
|
2959
2959
|
* Stroke
|
|
@@ -3030,23 +3030,23 @@ const Zo = (e, t) => {
|
|
|
3030
3030
|
};
|
|
3031
3031
|
}, Bl = (e, {
|
|
3032
3032
|
cacheSize: t,
|
|
3033
|
-
prefix:
|
|
3034
|
-
experimentalParseClassName:
|
|
3033
|
+
prefix: o,
|
|
3034
|
+
experimentalParseClassName: r,
|
|
3035
3035
|
extend: l = {},
|
|
3036
3036
|
override: a = {}
|
|
3037
|
-
}) => (ct(e, "cacheSize", t), ct(e, "prefix",
|
|
3038
|
-
|
|
3037
|
+
}) => (ct(e, "cacheSize", t), ct(e, "prefix", o), ct(e, "experimentalParseClassName", r), gt(e.theme, a.theme), gt(e.classGroups, a.classGroups), gt(e.conflictingClassGroups, a.conflictingClassGroups), gt(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ct(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), yt(e.theme, l.theme), yt(e.classGroups, l.classGroups), yt(e.conflictingClassGroups, l.conflictingClassGroups), yt(e.conflictingClassGroupModifiers, l.conflictingClassGroupModifiers), Go(e, l, "orderSensitiveModifiers"), e), ct = (e, t, o) => {
|
|
3038
|
+
o !== void 0 && (e[t] = o);
|
|
3039
3039
|
}, gt = (e, t) => {
|
|
3040
3040
|
if (t)
|
|
3041
|
-
for (const
|
|
3042
|
-
ct(e,
|
|
3041
|
+
for (const o in t)
|
|
3042
|
+
ct(e, o, t[o]);
|
|
3043
3043
|
}, yt = (e, t) => {
|
|
3044
3044
|
if (t)
|
|
3045
|
-
for (const
|
|
3046
|
-
|
|
3047
|
-
},
|
|
3048
|
-
const
|
|
3049
|
-
|
|
3045
|
+
for (const o in t)
|
|
3046
|
+
Go(e, t, o);
|
|
3047
|
+
}, Go = (e, t, o) => {
|
|
3048
|
+
const r = t[o];
|
|
3049
|
+
r !== void 0 && (e[o] = e[o] ? e[o].concat(r) : r);
|
|
3050
3050
|
}, jl = (e, ...t) => typeof e == "function" ? Vt(Ht, e, ...t) : Vt(() => Bl(Ht(), e), ...t), Pl = /* @__PURE__ */ Vt(Ht);
|
|
3051
3051
|
var Nl = (e) => Se(e) ? Pl : jl({
|
|
3052
3052
|
...e,
|
|
@@ -3057,10 +3057,10 @@ var Nl = (e) => Se(e) ? Pl : jl({
|
|
|
3057
3057
|
conflictingClassGroups: e.conflictingClassGroups,
|
|
3058
3058
|
...e.extend
|
|
3059
3059
|
}
|
|
3060
|
-
}),
|
|
3061
|
-
const
|
|
3062
|
-
return !
|
|
3063
|
-
}, ce = (...e) =>
|
|
3060
|
+
}), Yo = (e, t) => {
|
|
3061
|
+
const o = kt(e);
|
|
3062
|
+
return !o || !(t?.twMerge ?? !0) ? o : ((!Ne.cachedTwMerge || Ne.didTwMergeConfigChange) && (Ne.didTwMergeConfigChange = !1, Ne.cachedTwMerge = Nl(Ne.cachedTwMergeConfig)), Ne.cachedTwMerge(o) || void 0);
|
|
3063
|
+
}, ce = (...e) => Yo(e, {}), Fl = (...e) => (t) => Yo(e, t), { createTV: Vl } = Ur(Fl);
|
|
3064
3064
|
const Hl = Vl({
|
|
3065
3065
|
twMerge: !0,
|
|
3066
3066
|
twMergeConfig: {
|
|
@@ -3108,28 +3108,28 @@ function Kl(e) {
|
|
|
3108
3108
|
function Oa(e = {}) {
|
|
3109
3109
|
return {
|
|
3110
3110
|
install(t) {
|
|
3111
|
-
const
|
|
3111
|
+
const o = ft({
|
|
3112
3112
|
themePreset: e.themePreset ?? "antdv",
|
|
3113
3113
|
theme: e.theme ?? {},
|
|
3114
3114
|
locale: e.locale ?? "zh-CN",
|
|
3115
3115
|
locales: e.locales ?? {},
|
|
3116
3116
|
localeOverrides: e.localeOverrides ?? {}
|
|
3117
3117
|
});
|
|
3118
|
-
t.provide(lt,
|
|
3118
|
+
t.provide(lt, o), Kl(o.themePreset);
|
|
3119
3119
|
}
|
|
3120
3120
|
};
|
|
3121
3121
|
}
|
|
3122
|
-
function Ue(e, t,
|
|
3123
|
-
const
|
|
3124
|
-
const s = St(t), n =
|
|
3122
|
+
function Ue(e, t, o) {
|
|
3123
|
+
const r = he(lt, null), l = S(() => {
|
|
3124
|
+
const s = St(t), n = r?.theme?.[e], i = Ke(s, n), v = Hl(i), f = {};
|
|
3125
3125
|
if (i.variants)
|
|
3126
3126
|
for (const u of Object.keys(i.variants))
|
|
3127
|
-
u in
|
|
3127
|
+
u in o && o[u] !== void 0 && (f[u] = o[u]);
|
|
3128
3128
|
return v(f);
|
|
3129
3129
|
}), a = {};
|
|
3130
3130
|
for (const s of Object.keys(St(t).slots))
|
|
3131
3131
|
a[s] = () => {
|
|
3132
|
-
const n = l.value, i = typeof n[s] == "function" ? n[s]() : n[s] ?? "", f = (
|
|
3132
|
+
const n = l.value, i = typeof n[s] == "function" ? n[s]() : n[s] ?? "", f = (o.ui ?? {})[s] ?? "", u = s === "root" ? o.class ?? "" : "";
|
|
3133
3133
|
return ce(i, f, u) ?? "";
|
|
3134
3134
|
};
|
|
3135
3135
|
return {
|
|
@@ -3164,21 +3164,21 @@ function Ke(e, t) {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
function $l(e, t) {
|
|
3166
3166
|
if (!t) return e;
|
|
3167
|
-
const
|
|
3168
|
-
for (const [
|
|
3169
|
-
r
|
|
3170
|
-
return
|
|
3167
|
+
const o = { ...e };
|
|
3168
|
+
for (const [r, l] of Object.entries(t))
|
|
3169
|
+
o[r] = r in e ? ce(e[r], l) ?? "" : l;
|
|
3170
|
+
return o;
|
|
3171
3171
|
}
|
|
3172
3172
|
function Wl(e, t) {
|
|
3173
3173
|
if (!e && !t) return;
|
|
3174
3174
|
if (!e) return t;
|
|
3175
3175
|
if (!t) return e;
|
|
3176
|
-
const
|
|
3177
|
-
for (const [
|
|
3178
|
-
if (!(
|
|
3179
|
-
r
|
|
3176
|
+
const o = { ...e };
|
|
3177
|
+
for (const [r, l] of Object.entries(t))
|
|
3178
|
+
if (!(r in o))
|
|
3179
|
+
o[r] = l;
|
|
3180
3180
|
else {
|
|
3181
|
-
const s = { ...r
|
|
3181
|
+
const s = { ...o[r] };
|
|
3182
3182
|
for (const [n, i] of Object.entries(l))
|
|
3183
3183
|
if (!(n in s))
|
|
3184
3184
|
s[n] = i;
|
|
@@ -3194,26 +3194,26 @@ function Wl(e, t) {
|
|
|
3194
3194
|
} else
|
|
3195
3195
|
s[n] = i;
|
|
3196
3196
|
}
|
|
3197
|
-
r
|
|
3197
|
+
o[r] = s;
|
|
3198
3198
|
}
|
|
3199
|
-
return
|
|
3199
|
+
return o;
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function so(e) {
|
|
3202
3202
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3203
3203
|
}
|
|
3204
3204
|
function tt(e, t) {
|
|
3205
3205
|
if (!t) return { ...e };
|
|
3206
|
-
const
|
|
3207
|
-
for (const [
|
|
3206
|
+
const o = { ...e };
|
|
3207
|
+
for (const [r, l] of Object.entries(t)) {
|
|
3208
3208
|
if (l === void 0) continue;
|
|
3209
|
-
const a = r
|
|
3210
|
-
if (
|
|
3211
|
-
r
|
|
3209
|
+
const a = o[r];
|
|
3210
|
+
if (so(a) && so(l)) {
|
|
3211
|
+
o[r] = tt(a, l);
|
|
3212
3212
|
continue;
|
|
3213
3213
|
}
|
|
3214
|
-
r
|
|
3214
|
+
o[r] = l;
|
|
3215
3215
|
}
|
|
3216
|
-
return
|
|
3216
|
+
return o;
|
|
3217
3217
|
}
|
|
3218
3218
|
const ql = {
|
|
3219
3219
|
slots: {
|
|
@@ -3223,7 +3223,7 @@ const ql = {
|
|
|
3223
3223
|
arrowInner: "absolute w-0 h-0"
|
|
3224
3224
|
},
|
|
3225
3225
|
defaultVariants: {}
|
|
3226
|
-
},
|
|
3226
|
+
}, Xo = /* @__PURE__ */ J({
|
|
3227
3227
|
name: "VTooltip",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
title: {
|
|
@@ -3275,8 +3275,8 @@ const ql = {
|
|
|
3275
3275
|
slots: t
|
|
3276
3276
|
}) {
|
|
3277
3277
|
const {
|
|
3278
|
-
slots:
|
|
3279
|
-
} = Ue("tooltip", ql, e),
|
|
3278
|
+
slots: o
|
|
3279
|
+
} = Ue("tooltip", ql, e), r = M(null), l = M(null), a = M(!1);
|
|
3280
3280
|
let s = null, n = null;
|
|
3281
3281
|
const i = S(() => e.open !== void 0), v = S(() => i.value ? e.open : a.value), f = M({
|
|
3282
3282
|
top: 0,
|
|
@@ -3284,7 +3284,7 @@ const ql = {
|
|
|
3284
3284
|
});
|
|
3285
3285
|
let u = null;
|
|
3286
3286
|
function c() {
|
|
3287
|
-
const E =
|
|
3287
|
+
const E = r.value, z = l.value;
|
|
3288
3288
|
if (!E || !z) return;
|
|
3289
3289
|
const L = E.getBoundingClientRect(), $ = z.getBoundingClientRect(), G = window.scrollX, U = window.scrollY;
|
|
3290
3290
|
let Q = 0, K = 0;
|
|
@@ -3478,7 +3478,7 @@ const ql = {
|
|
|
3478
3478
|
if (E == null)
|
|
3479
3479
|
return t.default?.();
|
|
3480
3480
|
const z = d("span", {
|
|
3481
|
-
ref:
|
|
3481
|
+
ref: r,
|
|
3482
3482
|
onMouseenter: k,
|
|
3483
3483
|
onMouseleave: C,
|
|
3484
3484
|
style: e.block ? {
|
|
@@ -3514,16 +3514,16 @@ const ql = {
|
|
|
3514
3514
|
pointerEvents: "none"
|
|
3515
3515
|
}
|
|
3516
3516
|
}, [d("div", {
|
|
3517
|
-
class:
|
|
3517
|
+
class: o.content(),
|
|
3518
3518
|
style: L
|
|
3519
3519
|
}, [E, e.arrow && d("div", {
|
|
3520
|
-
class:
|
|
3520
|
+
class: o.arrow(),
|
|
3521
3521
|
style: T.value
|
|
3522
3522
|
}, [d("div", {
|
|
3523
|
-
class:
|
|
3523
|
+
class: o.arrowOuter(),
|
|
3524
3524
|
style: p.value
|
|
3525
3525
|
}, null), d("div", {
|
|
3526
|
-
class:
|
|
3526
|
+
class: o.arrowInner(),
|
|
3527
3527
|
style: w.value
|
|
3528
3528
|
}, null)])])])]
|
|
3529
3529
|
})]
|
|
@@ -3587,9 +3587,9 @@ const ql = {
|
|
|
3587
3587
|
emit: t
|
|
3588
3588
|
}) {
|
|
3589
3589
|
const {
|
|
3590
|
-
slots:
|
|
3590
|
+
slots: o
|
|
3591
3591
|
} = Ue("checkbox", Gl, e);
|
|
3592
|
-
function
|
|
3592
|
+
function r(l) {
|
|
3593
3593
|
if (e.disabled) return;
|
|
3594
3594
|
const a = !e.checked;
|
|
3595
3595
|
t("update:checked", a), t("change", a, l);
|
|
@@ -3598,14 +3598,14 @@ const ql = {
|
|
|
3598
3598
|
role: "checkbox",
|
|
3599
3599
|
"aria-checked": e.indeterminate ? "mixed" : e.checked,
|
|
3600
3600
|
"aria-disabled": e.disabled,
|
|
3601
|
-
class:
|
|
3602
|
-
onClick:
|
|
3601
|
+
class: o.root(),
|
|
3602
|
+
onClick: r
|
|
3603
3603
|
}, [e.checked && d("span", {
|
|
3604
3604
|
"aria-hidden": "true",
|
|
3605
|
-
class:
|
|
3605
|
+
class: o.checkMark()
|
|
3606
3606
|
}, null), e.indeterminate && !e.checked && d("span", {
|
|
3607
3607
|
"aria-hidden": "true",
|
|
3608
|
-
class:
|
|
3608
|
+
class: o.indeterminateMark()
|
|
3609
3609
|
}, null)]);
|
|
3610
3610
|
}
|
|
3611
3611
|
}), Yl = {
|
|
@@ -3630,7 +3630,7 @@ const ql = {
|
|
|
3630
3630
|
checked: !1,
|
|
3631
3631
|
disabled: !1
|
|
3632
3632
|
}
|
|
3633
|
-
},
|
|
3633
|
+
}, Uo = /* @__PURE__ */ J({
|
|
3634
3634
|
name: "VRadio",
|
|
3635
3635
|
props: {
|
|
3636
3636
|
checked: {
|
|
@@ -3655,20 +3655,20 @@ const ql = {
|
|
|
3655
3655
|
emit: t
|
|
3656
3656
|
}) {
|
|
3657
3657
|
const {
|
|
3658
|
-
slots:
|
|
3658
|
+
slots: o
|
|
3659
3659
|
} = Ue("radio", Yl, e);
|
|
3660
|
-
function
|
|
3660
|
+
function r(l) {
|
|
3661
3661
|
e.disabled || e.checked || (t("update:checked", !0), t("change", !0, l));
|
|
3662
3662
|
}
|
|
3663
3663
|
return () => d("span", {
|
|
3664
3664
|
role: "radio",
|
|
3665
3665
|
"aria-checked": e.checked,
|
|
3666
3666
|
"aria-disabled": e.disabled,
|
|
3667
|
-
class:
|
|
3668
|
-
onClick:
|
|
3667
|
+
class: o.root(),
|
|
3668
|
+
onClick: r
|
|
3669
3669
|
}, [d("span", {
|
|
3670
3670
|
"aria-hidden": "true",
|
|
3671
|
-
class:
|
|
3671
|
+
class: o.dot()
|
|
3672
3672
|
}, null)]);
|
|
3673
3673
|
}
|
|
3674
3674
|
}), Xl = {
|
|
@@ -3732,7 +3732,7 @@ const ql = {
|
|
|
3732
3732
|
size: "md",
|
|
3733
3733
|
disabled: !1
|
|
3734
3734
|
}
|
|
3735
|
-
},
|
|
3735
|
+
}, io = /* @__PURE__ */ J({
|
|
3736
3736
|
name: "VButton",
|
|
3737
3737
|
props: {
|
|
3738
3738
|
type: {
|
|
@@ -3759,19 +3759,19 @@ const ql = {
|
|
|
3759
3759
|
emits: ["click"],
|
|
3760
3760
|
setup(e, {
|
|
3761
3761
|
emit: t,
|
|
3762
|
-
slots:
|
|
3762
|
+
slots: o
|
|
3763
3763
|
}) {
|
|
3764
3764
|
const {
|
|
3765
|
-
slots:
|
|
3765
|
+
slots: r
|
|
3766
3766
|
} = Ue("button", Xl, e);
|
|
3767
3767
|
function l(a) {
|
|
3768
3768
|
e.disabled || t("click", a);
|
|
3769
3769
|
}
|
|
3770
3770
|
return () => d("button", {
|
|
3771
|
-
class:
|
|
3771
|
+
class: r.root(),
|
|
3772
3772
|
disabled: e.disabled,
|
|
3773
3773
|
onClick: l
|
|
3774
|
-
}, [
|
|
3774
|
+
}, [o.default?.()]);
|
|
3775
3775
|
}
|
|
3776
3776
|
}), Ul = {
|
|
3777
3777
|
slots: {
|
|
@@ -3830,9 +3830,9 @@ const ql = {
|
|
|
3830
3830
|
emit: t
|
|
3831
3831
|
}) {
|
|
3832
3832
|
const {
|
|
3833
|
-
slots:
|
|
3833
|
+
slots: o
|
|
3834
3834
|
} = Ue("input", Ul, e);
|
|
3835
|
-
function
|
|
3835
|
+
function r(a) {
|
|
3836
3836
|
const s = a.target.value;
|
|
3837
3837
|
t("update:value", s), t("change", s);
|
|
3838
3838
|
}
|
|
@@ -3840,18 +3840,18 @@ const ql = {
|
|
|
3840
3840
|
a.key === "Enter" && t("pressEnter", a);
|
|
3841
3841
|
}
|
|
3842
3842
|
return () => d("input", {
|
|
3843
|
-
class: [
|
|
3843
|
+
class: [o.root(), e.inputClass],
|
|
3844
3844
|
type: "text",
|
|
3845
3845
|
value: e.value,
|
|
3846
3846
|
placeholder: e.placeholder,
|
|
3847
3847
|
disabled: e.disabled,
|
|
3848
|
-
onInput:
|
|
3848
|
+
onInput: r,
|
|
3849
3849
|
onKeydown: l
|
|
3850
3850
|
}, null);
|
|
3851
3851
|
}
|
|
3852
3852
|
});
|
|
3853
|
-
function Jl(e, t,
|
|
3854
|
-
const
|
|
3853
|
+
function Jl(e, t, o) {
|
|
3854
|
+
const r = M(0), l = M(0), a = M(!1), s = M(0), n = M(0), i = M(!1);
|
|
3855
3855
|
let v = null;
|
|
3856
3856
|
function f() {
|
|
3857
3857
|
const m = e.value;
|
|
@@ -3859,15 +3859,15 @@ function Jl(e, t, r) {
|
|
|
3859
3859
|
const { clientHeight: h, scrollHeight: b, clientWidth: x, scrollWidth: k, scrollTop: C, scrollLeft: T } = m;
|
|
3860
3860
|
if (b > h) {
|
|
3861
3861
|
a.value = !0;
|
|
3862
|
-
const p = h, w = Math.max(
|
|
3863
|
-
|
|
3862
|
+
const p = h, w = Math.max(o.minSize, p * (h / b));
|
|
3863
|
+
r.value = w;
|
|
3864
3864
|
const D = b - h;
|
|
3865
3865
|
l.value = D > 0 ? C / D * (p - w) : 0;
|
|
3866
3866
|
} else
|
|
3867
|
-
a.value = !1,
|
|
3867
|
+
a.value = !1, r.value = 0, l.value = 0;
|
|
3868
3868
|
if (k > x) {
|
|
3869
3869
|
i.value = !0;
|
|
3870
|
-
const p = x, w = Math.max(
|
|
3870
|
+
const p = x, w = Math.max(o.minSize, p * (x / k));
|
|
3871
3871
|
s.value = w;
|
|
3872
3872
|
const D = k - x;
|
|
3873
3873
|
n.value = D > 0 ? T / D * (p - w) : 0;
|
|
@@ -3881,7 +3881,7 @@ function Jl(e, t, r) {
|
|
|
3881
3881
|
v?.disconnect(), v = null;
|
|
3882
3882
|
});
|
|
3883
3883
|
const u = S(() => ({
|
|
3884
|
-
thumbSize:
|
|
3884
|
+
thumbSize: r,
|
|
3885
3885
|
thumbOffset: l,
|
|
3886
3886
|
visible: a
|
|
3887
3887
|
})), c = S(() => ({
|
|
@@ -3893,7 +3893,7 @@ function Jl(e, t, r) {
|
|
|
3893
3893
|
vertical: u,
|
|
3894
3894
|
horizontal: c,
|
|
3895
3895
|
update: f,
|
|
3896
|
-
verticalThumbSize:
|
|
3896
|
+
verticalThumbSize: r,
|
|
3897
3897
|
verticalThumbOffset: l,
|
|
3898
3898
|
verticalVisible: a,
|
|
3899
3899
|
horizontalThumbSize: s,
|
|
@@ -3901,7 +3901,7 @@ function Jl(e, t, r) {
|
|
|
3901
3901
|
horizontalVisible: i
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
|
-
const
|
|
3904
|
+
const co = /* @__PURE__ */ J({
|
|
3905
3905
|
name: "ScrollbarBar",
|
|
3906
3906
|
props: {
|
|
3907
3907
|
vertical: {
|
|
@@ -3941,26 +3941,26 @@ const cr = /* @__PURE__ */ J({
|
|
|
3941
3941
|
setup(e, {
|
|
3942
3942
|
emit: t
|
|
3943
3943
|
}) {
|
|
3944
|
-
const
|
|
3944
|
+
const o = M(null), r = M(!1), l = M(!1);
|
|
3945
3945
|
let a = 0;
|
|
3946
3946
|
function s(c) {
|
|
3947
|
-
c.preventDefault(), c.stopPropagation(),
|
|
3947
|
+
c.preventDefault(), c.stopPropagation(), r.value = !0, a = (e.vertical ? c.clientY : c.clientX) - e.thumbOffset, document.addEventListener("mousemove", n), document.addEventListener("mouseup", i), document.onselectstart = () => !1;
|
|
3948
3948
|
}
|
|
3949
3949
|
function n(c) {
|
|
3950
|
-
if (!
|
|
3951
|
-
const h =
|
|
3950
|
+
if (!r.value || !o.value) return;
|
|
3951
|
+
const h = o.value.getBoundingClientRect(), b = e.vertical ? h.height : h.width, k = (e.vertical ? c.clientY : c.clientX) - a, C = b - e.thumbSize, T = Math.max(0, Math.min(k, C)), p = C > 0 ? T / C : 0;
|
|
3952
3952
|
t("scroll", {
|
|
3953
3953
|
ratio: p,
|
|
3954
3954
|
vertical: e.vertical
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function i() {
|
|
3958
|
-
|
|
3958
|
+
r.value = !1, document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", i), document.onselectstart = null;
|
|
3959
3959
|
}
|
|
3960
3960
|
function v(c) {
|
|
3961
|
-
if (c.target ===
|
|
3961
|
+
if (c.target === o.value) {
|
|
3962
3962
|
c.preventDefault();
|
|
3963
|
-
const h =
|
|
3963
|
+
const h = o.value.getBoundingClientRect(), b = e.vertical ? h.height : h.width, k = (e.vertical ? c.clientY - h.top : c.clientX - h.left) - e.thumbSize / 2, C = b - e.thumbSize, T = Math.max(0, Math.min(k, C)), p = C > 0 ? T / C : 0;
|
|
3964
3964
|
t("scroll", {
|
|
3965
3965
|
ratio: p,
|
|
3966
3966
|
vertical: e.vertical
|
|
@@ -3976,7 +3976,7 @@ const cr = /* @__PURE__ */ J({
|
|
|
3976
3976
|
return $e(() => {
|
|
3977
3977
|
document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", i), document.onselectstart = null;
|
|
3978
3978
|
}), () => {
|
|
3979
|
-
const c = e.always || e.visible || l.value ||
|
|
3979
|
+
const c = e.always || e.visible || l.value || r.value, m = e.vertical ? {
|
|
3980
3980
|
height: `${e.thumbSize}px`,
|
|
3981
3981
|
transform: `translateY(${e.thumbOffset}px)`
|
|
3982
3982
|
} : {
|
|
@@ -3984,7 +3984,7 @@ const cr = /* @__PURE__ */ J({
|
|
|
3984
3984
|
transform: `translateX(${e.thumbOffset}px)`
|
|
3985
3985
|
};
|
|
3986
3986
|
return d("div", {
|
|
3987
|
-
ref:
|
|
3987
|
+
ref: o,
|
|
3988
3988
|
class: [e.trackClass, e.trackDirectionClass],
|
|
3989
3989
|
style: c ? {
|
|
3990
3990
|
opacity: 1
|
|
@@ -4070,8 +4070,8 @@ const It = /* @__PURE__ */ J({
|
|
|
4070
4070
|
emits: ["scroll"],
|
|
4071
4071
|
setup(e, {
|
|
4072
4072
|
emit: t,
|
|
4073
|
-
slots:
|
|
4074
|
-
expose:
|
|
4073
|
+
slots: o,
|
|
4074
|
+
expose: r
|
|
4075
4075
|
}) {
|
|
4076
4076
|
const {
|
|
4077
4077
|
slots: l
|
|
@@ -4115,7 +4115,7 @@ const It = /* @__PURE__ */ J({
|
|
|
4115
4115
|
function T(p) {
|
|
4116
4116
|
a.value && (a.value.scrollLeft = p);
|
|
4117
4117
|
}
|
|
4118
|
-
return
|
|
4118
|
+
return r({
|
|
4119
4119
|
update: h,
|
|
4120
4120
|
scrollTo: k,
|
|
4121
4121
|
setScrollTop: C,
|
|
@@ -4126,11 +4126,11 @@ const It = /* @__PURE__ */ J({
|
|
|
4126
4126
|
e.height && (p.height = Mt(e.height)), e.maxHeight && (p.maxHeight = Mt(e.maxHeight));
|
|
4127
4127
|
const w = {};
|
|
4128
4128
|
e.maxHeight && (w.maxHeight = Mt(e.maxHeight));
|
|
4129
|
-
const D =
|
|
4129
|
+
const D = rt(e.tag, {
|
|
4130
4130
|
ref: s,
|
|
4131
4131
|
class: [l.view(), e.viewClass],
|
|
4132
4132
|
style: e.viewStyle
|
|
4133
|
-
},
|
|
4133
|
+
}, o.default?.());
|
|
4134
4134
|
return d("div", {
|
|
4135
4135
|
class: l.root(),
|
|
4136
4136
|
style: p,
|
|
@@ -4145,7 +4145,7 @@ const It = /* @__PURE__ */ J({
|
|
|
4145
4145
|
class: [l.wrap(), e.wrapClass, e.native ? "" : "scrollbar-none"],
|
|
4146
4146
|
style: [w, e.wrapStyle ?? {}],
|
|
4147
4147
|
onScroll: b
|
|
4148
|
-
}, [D]), !e.native && f.value && d(
|
|
4148
|
+
}, [D]), !e.native && f.value && d(co, {
|
|
4149
4149
|
vertical: !0,
|
|
4150
4150
|
thumbSize: i.value,
|
|
4151
4151
|
thumbOffset: v.value,
|
|
@@ -4155,7 +4155,7 @@ const It = /* @__PURE__ */ J({
|
|
|
4155
4155
|
trackDirectionClass: l.trackVertical(),
|
|
4156
4156
|
thumbClass: l.thumb(),
|
|
4157
4157
|
onScroll: x
|
|
4158
|
-
}, null), !e.native && m.value && d(
|
|
4158
|
+
}, null), !e.native && m.value && d(co, {
|
|
4159
4159
|
vertical: !1,
|
|
4160
4160
|
thumbSize: u.value,
|
|
4161
4161
|
thumbOffset: c.value,
|
|
@@ -4191,8 +4191,8 @@ const It = /* @__PURE__ */ J({
|
|
|
4191
4191
|
setup(e, {
|
|
4192
4192
|
slots: t
|
|
4193
4193
|
}) {
|
|
4194
|
-
const
|
|
4195
|
-
const n =
|
|
4194
|
+
const o = he(lt, null), r = S(() => {
|
|
4195
|
+
const n = o?.theme ?? {}, i = e.theme ?? {};
|
|
4196
4196
|
if (!Object.keys(i).length) return n;
|
|
4197
4197
|
const v = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(i)]), f = {};
|
|
4198
4198
|
for (const u of v) {
|
|
@@ -4201,17 +4201,17 @@ const It = /* @__PURE__ */ J({
|
|
|
4201
4201
|
}
|
|
4202
4202
|
return f;
|
|
4203
4203
|
}), l = S(() => ({
|
|
4204
|
-
...
|
|
4204
|
+
...o?.locales ?? {},
|
|
4205
4205
|
...e.locales ?? {}
|
|
4206
|
-
})), a = S(() => tt(
|
|
4206
|
+
})), a = S(() => tt(o?.localeOverrides ?? {}, e.localeOverrides)), s = ft({
|
|
4207
4207
|
get themePreset() {
|
|
4208
|
-
return
|
|
4208
|
+
return o?.themePreset ?? "antdv";
|
|
4209
4209
|
},
|
|
4210
4210
|
get theme() {
|
|
4211
|
-
return
|
|
4211
|
+
return r.value;
|
|
4212
4212
|
},
|
|
4213
4213
|
get locale() {
|
|
4214
|
-
return e.locale ??
|
|
4214
|
+
return e.locale ?? o?.locale ?? "zh-CN";
|
|
4215
4215
|
},
|
|
4216
4216
|
get locales() {
|
|
4217
4217
|
return l.value;
|
|
@@ -4238,12 +4238,12 @@ const It = /* @__PURE__ */ J({
|
|
|
4238
4238
|
setup(e, {
|
|
4239
4239
|
slots: t
|
|
4240
4240
|
}) {
|
|
4241
|
-
let
|
|
4241
|
+
let o = null, r = null;
|
|
4242
4242
|
const l = (a) => {
|
|
4243
|
-
|
|
4243
|
+
r !== a && (o && r && o.unobserve(r), r = a, a && (o || (o = new ResizeObserver((s) => {
|
|
4244
4244
|
const n = s[0];
|
|
4245
4245
|
n && n.target.offsetHeight && e.onInnerResize && e.onInnerResize();
|
|
4246
|
-
})),
|
|
4246
|
+
})), o.observe(a)));
|
|
4247
4247
|
};
|
|
4248
4248
|
return () => {
|
|
4249
4249
|
let a = {}, s = {
|
|
@@ -4276,7 +4276,7 @@ const It = /* @__PURE__ */ J({
|
|
|
4276
4276
|
function tn(e) {
|
|
4277
4277
|
return e.filter((t) => t != null && typeof t != "boolean");
|
|
4278
4278
|
}
|
|
4279
|
-
const
|
|
4279
|
+
const on = /* @__PURE__ */ J({
|
|
4280
4280
|
name: "VirtualItem",
|
|
4281
4281
|
props: {
|
|
4282
4282
|
setRef: {
|
|
@@ -4287,43 +4287,43 @@ const rn = /* @__PURE__ */ J({
|
|
|
4287
4287
|
setup(e, {
|
|
4288
4288
|
slots: t
|
|
4289
4289
|
}) {
|
|
4290
|
-
const
|
|
4291
|
-
|
|
4290
|
+
const o = Ae(null), r = (l) => {
|
|
4291
|
+
o.value !== l && (o.value = l, e.setRef(l));
|
|
4292
4292
|
};
|
|
4293
4293
|
return () => {
|
|
4294
4294
|
const l = tn(t.default?.() ?? [])[0];
|
|
4295
|
-
return l ?
|
|
4296
|
-
ref:
|
|
4295
|
+
return l ? Br(l, {
|
|
4296
|
+
ref: r
|
|
4297
4297
|
}) : null;
|
|
4298
4298
|
};
|
|
4299
4299
|
}
|
|
4300
4300
|
});
|
|
4301
|
-
function
|
|
4301
|
+
function rn(e) {
|
|
4302
4302
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !vt(e);
|
|
4303
4303
|
}
|
|
4304
|
-
function ln(e, t,
|
|
4305
|
-
return S(() => e.value.slice(t.value,
|
|
4304
|
+
function ln(e, t, o, r, l, a, s, { getKey: n }) {
|
|
4305
|
+
return S(() => e.value.slice(t.value, o.value + 1).map((i, v) => {
|
|
4306
4306
|
const f = s(i, t.value + v, {
|
|
4307
|
-
style: { width: `${
|
|
4307
|
+
style: { width: `${r.value}px` },
|
|
4308
4308
|
offsetX: l.value
|
|
4309
4309
|
}), u = n(i);
|
|
4310
4310
|
return d(
|
|
4311
|
-
|
|
4311
|
+
on,
|
|
4312
4312
|
{ key: u, setRef: (c) => a(i, c) },
|
|
4313
|
-
|
|
4313
|
+
rn(f) ? f : { default: () => [f] }
|
|
4314
4314
|
);
|
|
4315
4315
|
}));
|
|
4316
4316
|
}
|
|
4317
|
-
function nn(e, t,
|
|
4318
|
-
const
|
|
4317
|
+
function nn(e, t, o) {
|
|
4318
|
+
const r = e.length, l = t.length;
|
|
4319
4319
|
let a, s;
|
|
4320
|
-
if (
|
|
4321
|
-
|
|
4320
|
+
if (r === 0 && l === 0) return null;
|
|
4321
|
+
r < l ? (a = e, s = t) : (a = t, s = e);
|
|
4322
4322
|
const n = { __EMPTY_ITEM__: !0 };
|
|
4323
4323
|
function i(u) {
|
|
4324
|
-
return u !== void 0 ?
|
|
4324
|
+
return u !== void 0 ? o(u) : n;
|
|
4325
4325
|
}
|
|
4326
|
-
let v = null, f = Math.abs(
|
|
4326
|
+
let v = null, f = Math.abs(r - l) !== 1;
|
|
4327
4327
|
for (let u = 0; u < s.length; u += 1) {
|
|
4328
4328
|
const c = i(a[u]);
|
|
4329
4329
|
if (c !== i(s[u])) {
|
|
@@ -4333,19 +4333,19 @@ function nn(e, t, r) {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
return v === null ? null : { index: v, multiple: f };
|
|
4335
4335
|
}
|
|
4336
|
-
function an(e, t,
|
|
4337
|
-
const
|
|
4336
|
+
function an(e, t, o) {
|
|
4337
|
+
const r = Ae(e.value), l = Ae();
|
|
4338
4338
|
return ae(
|
|
4339
4339
|
e,
|
|
4340
4340
|
(a) => {
|
|
4341
|
-
const s = nn(
|
|
4342
|
-
s?.index !== void 0 && (l.value = a[s.index]),
|
|
4341
|
+
const s = nn(r.value || [], e.value || [], t);
|
|
4342
|
+
s?.index !== void 0 && (l.value = a[s.index]), r.value = a;
|
|
4343
4343
|
},
|
|
4344
4344
|
{ immediate: !0 }
|
|
4345
4345
|
), l;
|
|
4346
4346
|
}
|
|
4347
|
-
const
|
|
4348
|
-
function sn(e, t,
|
|
4347
|
+
const uo = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent);
|
|
4348
|
+
function sn(e, t, o, r) {
|
|
4349
4349
|
const l = M(!1);
|
|
4350
4350
|
let a = null;
|
|
4351
4351
|
function s() {
|
|
@@ -4354,17 +4354,17 @@ function sn(e, t, r, o) {
|
|
|
4354
4354
|
}, 50);
|
|
4355
4355
|
}
|
|
4356
4356
|
return (n, i, v = !1) => {
|
|
4357
|
-
const f = n ? i < 0 &&
|
|
4357
|
+
const f = n ? i < 0 && o.value || i > 0 && r.value : i < 0 && e.value || i > 0 && t.value;
|
|
4358
4358
|
return v && f ? (a && clearTimeout(a), l.value = !1) : (!f || l.value) && s(), !l.value && f;
|
|
4359
4359
|
};
|
|
4360
4360
|
}
|
|
4361
|
-
function cn(e, t,
|
|
4361
|
+
function cn(e, t, o, r, l, a, s) {
|
|
4362
4362
|
const n = M(0);
|
|
4363
4363
|
let i = null;
|
|
4364
4364
|
const v = M(null), f = M(!1), u = sn(
|
|
4365
4365
|
t,
|
|
4366
|
-
r,
|
|
4367
4366
|
o,
|
|
4367
|
+
r,
|
|
4368
4368
|
l
|
|
4369
4369
|
);
|
|
4370
4370
|
function c(C, T) {
|
|
@@ -4372,13 +4372,13 @@ function cn(e, t, r, o, l, a, s) {
|
|
|
4372
4372
|
const p = C;
|
|
4373
4373
|
if (!p._virtualHandled) p._virtualHandled = !0;
|
|
4374
4374
|
else return;
|
|
4375
|
-
n.value += T, v.value = T,
|
|
4375
|
+
n.value += T, v.value = T, uo || C.preventDefault(), i = requestAnimationFrame(() => {
|
|
4376
4376
|
const w = f.value ? 10 : 1;
|
|
4377
4377
|
s(n.value * w, !1), n.value = 0;
|
|
4378
4378
|
});
|
|
4379
4379
|
}
|
|
4380
4380
|
function m(C, T) {
|
|
4381
|
-
s(T, !0),
|
|
4381
|
+
s(T, !0), uo || C.preventDefault();
|
|
4382
4382
|
}
|
|
4383
4383
|
const h = M(null);
|
|
4384
4384
|
let b = null;
|
|
@@ -4400,9 +4400,9 @@ function cn(e, t, r, o, l, a, s) {
|
|
|
4400
4400
|
i && cancelAnimationFrame(i), b && cancelAnimationFrame(b);
|
|
4401
4401
|
}), [x, k];
|
|
4402
4402
|
}
|
|
4403
|
-
function dn(e, t,
|
|
4403
|
+
function dn(e, t, o, r) {
|
|
4404
4404
|
let l = /* @__PURE__ */ new Map(), a = [];
|
|
4405
|
-
return ae([e, () =>
|
|
4405
|
+
return ae([e, () => o.id.value, r], () => {
|
|
4406
4406
|
l = /* @__PURE__ */ new Map(), a = [];
|
|
4407
4407
|
}), (n, i = n) => {
|
|
4408
4408
|
let v = l.get(n), f = l.get(i);
|
|
@@ -4411,7 +4411,7 @@ function dn(e, t, r, o) {
|
|
|
4411
4411
|
for (let c = a.length; c < u; c += 1) {
|
|
4412
4412
|
const m = e.value[c], h = t(m);
|
|
4413
4413
|
l.set(h, c);
|
|
4414
|
-
const b =
|
|
4414
|
+
const b = o.get(h) ?? r.value ?? 0;
|
|
4415
4415
|
if (a[c] = (a[c - 1] || 0) + b, h === n && (v = c), h === i && (f = c), v !== void 0 && f !== void 0) break;
|
|
4416
4416
|
}
|
|
4417
4417
|
}
|
|
@@ -4428,8 +4428,8 @@ class un {
|
|
|
4428
4428
|
constructor() {
|
|
4429
4429
|
this.maps = /* @__PURE__ */ Object.create(null);
|
|
4430
4430
|
}
|
|
4431
|
-
set(t,
|
|
4432
|
-
this.diffRecords.set(t, this.maps[t]), this.maps[t] =
|
|
4431
|
+
set(t, o) {
|
|
4432
|
+
this.diffRecords.set(t, this.maps[t]), this.maps[t] = o, this.id.value += 1;
|
|
4433
4433
|
}
|
|
4434
4434
|
get(t) {
|
|
4435
4435
|
return this.maps[t];
|
|
@@ -4441,15 +4441,15 @@ class un {
|
|
|
4441
4441
|
return this.diffRecords;
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function fo(e) {
|
|
4445
4445
|
const t = parseFloat(e);
|
|
4446
4446
|
return isNaN(t) ? 0 : t;
|
|
4447
4447
|
}
|
|
4448
|
-
function
|
|
4448
|
+
function vo(e) {
|
|
4449
4449
|
return e instanceof HTMLElement ? e : e?.$el instanceof HTMLElement ? e.$el : null;
|
|
4450
4450
|
}
|
|
4451
|
-
function fn(e, t,
|
|
4452
|
-
const
|
|
4451
|
+
function fn(e, t, o) {
|
|
4452
|
+
const r = M(0), l = M(/* @__PURE__ */ new Map()), a = jr(new un()), s = M(0), n = /* @__PURE__ */ new Map(), i = typeof window < "u" && "ResizeObserver" in window ? new window.ResizeObserver(() => {
|
|
4453
4453
|
f();
|
|
4454
4454
|
}) : null;
|
|
4455
4455
|
function v() {
|
|
@@ -4460,12 +4460,12 @@ function fn(e, t, r) {
|
|
|
4460
4460
|
const m = () => {
|
|
4461
4461
|
let h = !1;
|
|
4462
4462
|
l.value.forEach((b, x) => {
|
|
4463
|
-
const k =
|
|
4463
|
+
const k = vo(b);
|
|
4464
4464
|
if (k && k.offsetParent) {
|
|
4465
|
-
const { offsetHeight: C } = k, { marginTop: T, marginBottom: p } = getComputedStyle(k), w =
|
|
4465
|
+
const { offsetHeight: C } = k, { marginTop: T, marginBottom: p } = getComputedStyle(k), w = fo(T), D = fo(p), E = C + w + D;
|
|
4466
4466
|
a.get(x) !== E && (a.set(x, E), h = !0);
|
|
4467
4467
|
}
|
|
4468
|
-
}), h && (
|
|
4468
|
+
}), h && (r.value += 1);
|
|
4469
4469
|
};
|
|
4470
4470
|
if (c)
|
|
4471
4471
|
m();
|
|
@@ -4483,38 +4483,38 @@ function fn(e, t, r) {
|
|
|
4483
4483
|
const x = n.get(h);
|
|
4484
4484
|
if (x && i && (i.unobserve(x), n.delete(h)), m) {
|
|
4485
4485
|
l.value.set(h, m), f();
|
|
4486
|
-
const k =
|
|
4486
|
+
const k = vo(m);
|
|
4487
4487
|
k && k.nodeType === 1 && i && (i.observe(k), n.set(h, k));
|
|
4488
4488
|
} else
|
|
4489
4489
|
l.value.delete(h);
|
|
4490
4490
|
}
|
|
4491
4491
|
return mt(() => {
|
|
4492
4492
|
v(), i?.disconnect?.(), n.clear();
|
|
4493
|
-
}), [u, f, a,
|
|
4493
|
+
}), [u, f, a, r];
|
|
4494
4494
|
}
|
|
4495
|
-
const
|
|
4496
|
-
function vn(e, t,
|
|
4497
|
-
const
|
|
4495
|
+
const mo = 14 / 15;
|
|
4496
|
+
function vn(e, t, o) {
|
|
4497
|
+
const r = M(!1), l = M(0), a = M(0);
|
|
4498
4498
|
let s = null, n = null, i = null;
|
|
4499
4499
|
const v = (b) => {
|
|
4500
|
-
if (
|
|
4500
|
+
if (r.value) {
|
|
4501
4501
|
const x = Math.ceil(b.touches[0].pageX), k = Math.ceil(b.touches[0].pageY);
|
|
4502
4502
|
let C = l.value - x, T = a.value - k;
|
|
4503
4503
|
const p = Math.abs(C) > Math.abs(T);
|
|
4504
4504
|
p ? l.value = x : a.value = k;
|
|
4505
|
-
const w =
|
|
4505
|
+
const w = o(p, p ? C : T, !1, b);
|
|
4506
4506
|
w && b.preventDefault(), n && clearInterval(n), w && (n = setInterval(() => {
|
|
4507
|
-
p ? C *=
|
|
4507
|
+
p ? C *= mo : T *= mo;
|
|
4508
4508
|
const D = Math.floor(p ? C : T);
|
|
4509
|
-
(!
|
|
4509
|
+
(!o(p, D, !0) || Math.abs(D) <= 0.1) && n && clearInterval(n);
|
|
4510
4510
|
}, 16));
|
|
4511
4511
|
}
|
|
4512
4512
|
}, f = () => {
|
|
4513
4513
|
s && (s.removeEventListener("touchmove", v), s.removeEventListener("touchend", u), s = null);
|
|
4514
4514
|
}, u = () => {
|
|
4515
|
-
|
|
4515
|
+
r.value = !1, f();
|
|
4516
4516
|
}, c = (b) => {
|
|
4517
|
-
f(), b.touches.length === 1 && !
|
|
4517
|
+
f(), b.touches.length === 1 && !r.value && (r.value = !0, l.value = Math.ceil(b.touches[0].pageX), a.value = Math.ceil(b.touches[0].pageY), s = b.target, s.addEventListener("touchmove", v, { passive: !1 }), s.addEventListener("touchend", u, { passive: !0 }));
|
|
4518
4518
|
}, m = () => {
|
|
4519
4519
|
i && (i.removeEventListener("touchstart", c), i = null);
|
|
4520
4520
|
}, h = () => {
|
|
@@ -4528,19 +4528,19 @@ function vn(e, t, r) {
|
|
|
4528
4528
|
{ immediate: !0 }
|
|
4529
4529
|
);
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function ho(e) {
|
|
4532
4532
|
return Math.floor(e ** 0.5);
|
|
4533
4533
|
}
|
|
4534
4534
|
function mn(e, t) {
|
|
4535
4535
|
return ("touches" in e ? e.touches[0] : e).pageY - window.scrollY;
|
|
4536
4536
|
}
|
|
4537
|
-
function hn(e, t,
|
|
4538
|
-
let
|
|
4537
|
+
function hn(e, t, o) {
|
|
4538
|
+
let r = null, l = null, a = !1, s = null, n = 0;
|
|
4539
4539
|
const i = () => {
|
|
4540
4540
|
s !== null && (cancelAnimationFrame(s), s = null);
|
|
4541
4541
|
}, v = () => {
|
|
4542
4542
|
i(), s = requestAnimationFrame(() => {
|
|
4543
|
-
|
|
4543
|
+
o(n), v();
|
|
4544
4544
|
});
|
|
4545
4545
|
}, f = () => {
|
|
4546
4546
|
a = !1, i();
|
|
@@ -4549,28 +4549,28 @@ function hn(e, t, r) {
|
|
|
4549
4549
|
const b = h;
|
|
4550
4550
|
b._virtualHandled || (b._virtualHandled = !0, a = !0);
|
|
4551
4551
|
}, c = (h) => {
|
|
4552
|
-
if (a &&
|
|
4553
|
-
const b = mn(h), { top: x, bottom: k } =
|
|
4554
|
-
b <= x ? (n = -
|
|
4552
|
+
if (a && r) {
|
|
4553
|
+
const b = mn(h), { top: x, bottom: k } = r.getBoundingClientRect();
|
|
4554
|
+
b <= x ? (n = -ho(x - b), v()) : b >= k ? (n = ho(b - k), v()) : i();
|
|
4555
4555
|
}
|
|
4556
4556
|
}, m = () => {
|
|
4557
|
-
|
|
4557
|
+
r && (r.removeEventListener("mousedown", u), r = null), l && (l.removeEventListener("mouseup", f), l.removeEventListener("mousemove", c), l.removeEventListener("dragend", f), l = null), f();
|
|
4558
4558
|
};
|
|
4559
4559
|
mt(m), ae(
|
|
4560
4560
|
[e, t],
|
|
4561
4561
|
([h, b]) => {
|
|
4562
|
-
h && b ? (
|
|
4562
|
+
h && b ? (r = b, l = b.ownerDocument, r.addEventListener("mousedown", u), l.addEventListener("mouseup", f), l.addEventListener("mousemove", c), l.addEventListener("dragend", f)) : m();
|
|
4563
4563
|
},
|
|
4564
4564
|
{ immediate: !0 }
|
|
4565
4565
|
);
|
|
4566
4566
|
}
|
|
4567
4567
|
const pn = 10;
|
|
4568
|
-
function bn(e, t,
|
|
4568
|
+
function bn(e, t, o, r, l, a, s, n) {
|
|
4569
4569
|
const i = Ae(null), v = () => {
|
|
4570
4570
|
let u = 0;
|
|
4571
4571
|
for (let c = 0; c < t.value.length; c += 1) {
|
|
4572
|
-
const m = l(t.value[c]), h =
|
|
4573
|
-
u += h === void 0 ?
|
|
4572
|
+
const m = l(t.value[c]), h = o.get(m);
|
|
4573
|
+
u += h === void 0 ? r.value ?? 0 : h;
|
|
4574
4574
|
}
|
|
4575
4575
|
return u;
|
|
4576
4576
|
};
|
|
@@ -4592,12 +4592,12 @@ function bn(e, t, r, o, l, a, s, n) {
|
|
|
4592
4592
|
for (let L = 0; L <= E; L += 1) {
|
|
4593
4593
|
const $ = l(t.value[L]);
|
|
4594
4594
|
w = p;
|
|
4595
|
-
const G =
|
|
4596
|
-
D = w + (G === void 0 ?
|
|
4595
|
+
const G = o.get($);
|
|
4596
|
+
D = w + (G === void 0 ? r.value ?? 0 : G), p = D;
|
|
4597
4597
|
}
|
|
4598
4598
|
let z = T === "top" ? h : b - h;
|
|
4599
4599
|
for (let L = E; L >= 0; L -= 1) {
|
|
4600
|
-
const $ = l(t.value[L]), G =
|
|
4600
|
+
const $ = l(t.value[L]), G = o.get($);
|
|
4601
4601
|
if (G === void 0) {
|
|
4602
4602
|
x = !0;
|
|
4603
4603
|
break;
|
|
@@ -4648,10 +4648,10 @@ function bn(e, t, r, o, l, a, s, n) {
|
|
|
4648
4648
|
}
|
|
4649
4649
|
}, v];
|
|
4650
4650
|
}
|
|
4651
|
-
function
|
|
4651
|
+
function po(e, t) {
|
|
4652
4652
|
return ("touches" in e ? e.touches[0] : e)[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
|
|
4653
4653
|
}
|
|
4654
|
-
const
|
|
4654
|
+
const bo = /* @__PURE__ */ J({
|
|
4655
4655
|
name: "VirtualScrollBar",
|
|
4656
4656
|
props: {
|
|
4657
4657
|
prefixCls: {
|
|
@@ -4714,22 +4714,22 @@ const pr = /* @__PURE__ */ J({
|
|
|
4714
4714
|
setup(e, {
|
|
4715
4715
|
expose: t
|
|
4716
4716
|
}) {
|
|
4717
|
-
const
|
|
4717
|
+
const o = M(!1), r = M(!1), l = M(null), a = M(null), s = S(() => !e.rtl), n = Ae(), i = Ae(), v = M(e.showScrollBar === !0 || e.showScrollBar === "optional");
|
|
4718
4718
|
let f = null;
|
|
4719
4719
|
const u = () => {
|
|
4720
4720
|
e.showScrollBar === !0 || e.showScrollBar === !1 || e.showScrollBar === "hover" || (f && clearTimeout(f), v.value = !0, f = setTimeout(() => {
|
|
4721
4721
|
v.value = !1;
|
|
4722
4722
|
}, 3e3));
|
|
4723
|
-
}, c = S(() => e.showScrollBar === !0 ? !0 : e.showScrollBar === !1 ? !1 : e.showScrollBar === "hover" ? e.active ||
|
|
4723
|
+
}, c = S(() => e.showScrollBar === !0 ? !0 : e.showScrollBar === !1 ? !1 : e.showScrollBar === "hover" ? e.active || o.value : v.value || o.value), m = S(() => e.scrollRange - e.containerSize || 0), h = S(() => e.containerSize - e.spinSize || 0), b = S(() => e.scrollOffset === 0 || m.value === 0 ? 0 : e.scrollOffset / m.value * h.value), x = Ae({
|
|
4724
4724
|
top: b.value,
|
|
4725
|
-
dragging:
|
|
4725
|
+
dragging: o.value,
|
|
4726
4726
|
pageY: l.value,
|
|
4727
4727
|
startTop: a.value
|
|
4728
4728
|
});
|
|
4729
|
-
ae([b,
|
|
4729
|
+
ae([b, o, l, a], () => {
|
|
4730
4730
|
x.value = {
|
|
4731
4731
|
top: b.value,
|
|
4732
|
-
dragging:
|
|
4732
|
+
dragging: o.value,
|
|
4733
4733
|
pageY: l.value,
|
|
4734
4734
|
startTop: a.value
|
|
4735
4735
|
};
|
|
@@ -4737,7 +4737,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4737
4737
|
const k = (T) => {
|
|
4738
4738
|
T.stopPropagation(), T.preventDefault();
|
|
4739
4739
|
}, C = (T) => {
|
|
4740
|
-
|
|
4740
|
+
o.value = !0, l.value = po(T, e.horizontal || !1), a.value = x.value.top, e.onStartMove?.(), T.stopPropagation(), T.preventDefault();
|
|
4741
4741
|
};
|
|
4742
4742
|
return Xe(() => {
|
|
4743
4743
|
const T = (D) => {
|
|
@@ -4750,7 +4750,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4750
4750
|
}), mt(() => {
|
|
4751
4751
|
p.removeEventListener("touchstart", T), w.removeEventListener("touchstart", C);
|
|
4752
4752
|
}));
|
|
4753
|
-
}), ae(
|
|
4753
|
+
}), ae(o, (T, p, w) => {
|
|
4754
4754
|
if (T) {
|
|
4755
4755
|
let D = null;
|
|
4756
4756
|
const E = (L) => {
|
|
@@ -4762,7 +4762,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4762
4762
|
D !== null && cancelAnimationFrame(D);
|
|
4763
4763
|
const Q = n.value.getBoundingClientRect(), K = e.containerSize / (e.horizontal ? Q.width : Q.height);
|
|
4764
4764
|
if ($) {
|
|
4765
|
-
const N = (
|
|
4765
|
+
const N = (po(L, e.horizontal || !1) - (G || 0)) * K;
|
|
4766
4766
|
let F = U || 0;
|
|
4767
4767
|
!s.value && e.horizontal ? F -= N : F += N;
|
|
4768
4768
|
const Y = m.value, g = h.value, A = g ? F / g : 0;
|
|
@@ -4772,7 +4772,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4772
4772
|
});
|
|
4773
4773
|
}
|
|
4774
4774
|
}, z = () => {
|
|
4775
|
-
|
|
4775
|
+
o.value = !1, e.onStopMove();
|
|
4776
4776
|
};
|
|
4777
4777
|
window.addEventListener("mousemove", E, {
|
|
4778
4778
|
passive: !0
|
|
@@ -4796,7 +4796,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4796
4796
|
const {
|
|
4797
4797
|
prefixCls: T,
|
|
4798
4798
|
horizontal: p
|
|
4799
|
-
} = e, w = `${T}-scrollbar`, D =
|
|
4799
|
+
} = e, w = `${T}-scrollbar`, D = r.value || o.value, E = {
|
|
4800
4800
|
position: "absolute",
|
|
4801
4801
|
opacity: c.value ? 1 : 0,
|
|
4802
4802
|
pointerEvents: c.value ? void 0 : "none",
|
|
@@ -4843,7 +4843,7 @@ const pr = /* @__PURE__ */ J({
|
|
|
4843
4843
|
}, [d("div", {
|
|
4844
4844
|
ref: i,
|
|
4845
4845
|
class: [`${w}-thumb`, {
|
|
4846
|
-
[`${w}-thumb-moving`]:
|
|
4846
|
+
[`${w}-thumb-moving`]: o.value
|
|
4847
4847
|
}],
|
|
4848
4848
|
style: {
|
|
4849
4849
|
...z,
|
|
@@ -4851,27 +4851,27 @@ const pr = /* @__PURE__ */ J({
|
|
|
4851
4851
|
},
|
|
4852
4852
|
onMousedown: C,
|
|
4853
4853
|
onMouseenter: () => {
|
|
4854
|
-
|
|
4854
|
+
r.value = !0;
|
|
4855
4855
|
},
|
|
4856
4856
|
onMouseleave: () => {
|
|
4857
|
-
|
|
4857
|
+
r.value = !1;
|
|
4858
4858
|
}
|
|
4859
4859
|
})]);
|
|
4860
4860
|
};
|
|
4861
4861
|
}
|
|
4862
4862
|
}), gn = 20;
|
|
4863
|
-
function
|
|
4864
|
-
let
|
|
4865
|
-
return isNaN(
|
|
4863
|
+
function go(e = 0, t = 0) {
|
|
4864
|
+
let o = e / t * e;
|
|
4865
|
+
return isNaN(o) && (o = 0), o = Math.max(o, gn), Math.floor(o);
|
|
4866
4866
|
}
|
|
4867
|
-
const
|
|
4867
|
+
const yo = [], yn = {
|
|
4868
4868
|
overflowY: "auto",
|
|
4869
4869
|
overflowAnchor: "none"
|
|
4870
4870
|
};
|
|
4871
4871
|
function xn(e) {
|
|
4872
4872
|
const t = {};
|
|
4873
|
-
for (const
|
|
4874
|
-
|
|
4873
|
+
for (const o of Object.keys(e))
|
|
4874
|
+
o.startsWith("on") || (t[o] = e[o]);
|
|
4875
4875
|
return t;
|
|
4876
4876
|
}
|
|
4877
4877
|
const wn = /* @__PURE__ */ J({
|
|
@@ -4920,8 +4920,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
4920
4920
|
inheritAttrs: !1,
|
|
4921
4921
|
setup(e, {
|
|
4922
4922
|
expose: t,
|
|
4923
|
-
attrs:
|
|
4924
|
-
slots:
|
|
4923
|
+
attrs: o,
|
|
4924
|
+
slots: r
|
|
4925
4925
|
}) {
|
|
4926
4926
|
const l = S(() => e.itemHeight);
|
|
4927
4927
|
let a = e.itemKey;
|
|
@@ -4931,9 +4931,9 @@ const wn = /* @__PURE__ */ J({
|
|
|
4931
4931
|
const s = (j) => {
|
|
4932
4932
|
const W = a;
|
|
4933
4933
|
return typeof W == "function" ? W(j) : j?.[W];
|
|
4934
|
-
}, [n, i, v, f] = fn(s), u = Ae(e?.data ||
|
|
4934
|
+
}, [n, i, v, f] = fn(s), u = Ae(e?.data || yo);
|
|
4935
4935
|
ae(() => e.data, () => {
|
|
4936
|
-
u.value = e?.data ||
|
|
4936
|
+
u.value = e?.data || yo;
|
|
4937
4937
|
});
|
|
4938
4938
|
const c = S(() => !!(e.virtual !== !1 && e.height && e.itemHeight)), m = S(() => {
|
|
4939
4939
|
const j = u.value;
|
|
@@ -4942,7 +4942,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
4942
4942
|
function K(j) {
|
|
4943
4943
|
let W;
|
|
4944
4944
|
typeof j == "function" ? W = j(p.value) : W = j;
|
|
4945
|
-
const
|
|
4945
|
+
const re = $.value - e.height, ie = Math.max(0, Math.min(W, re || 0));
|
|
4946
4946
|
h.value && (h.value.scrollTop = ie), p.value = ie;
|
|
4947
4947
|
}
|
|
4948
4948
|
ae([m, c, p, u, f, () => e.height], () => {
|
|
@@ -4957,20 +4957,20 @@ const wn = /* @__PURE__ */ J({
|
|
|
4957
4957
|
const {
|
|
4958
4958
|
itemHeight: j,
|
|
4959
4959
|
height: W
|
|
4960
|
-
} = e,
|
|
4961
|
-
if (!
|
|
4960
|
+
} = e, re = u.value.length;
|
|
4961
|
+
if (!re) {
|
|
4962
4962
|
$.value = 0, G.value = 0, U.value = -1, Q.value = 0;
|
|
4963
4963
|
return;
|
|
4964
4964
|
}
|
|
4965
4965
|
if (St(v.id) === 0) {
|
|
4966
4966
|
const ye = j, ke = W, Te = Math.max(0, Math.floor(p.value / ye)), _e = Te * ye;
|
|
4967
4967
|
let ze = Te + Math.ceil(ke / ye);
|
|
4968
|
-
ze = Math.min(ze + 1,
|
|
4968
|
+
ze = Math.min(ze + 1, re - 1), $.value = re * ye, G.value = Te, U.value = ze, Q.value = _e;
|
|
4969
4969
|
return;
|
|
4970
4970
|
}
|
|
4971
4971
|
let ie = 0, Ee, Me, te;
|
|
4972
|
-
const Ce =
|
|
4973
|
-
for (let ye = 0; ye <
|
|
4972
|
+
const Ce = Pr(u.value), We = p.value;
|
|
4973
|
+
for (let ye = 0; ye < re; ye += 1) {
|
|
4974
4974
|
const ke = Ce[ye], Te = s(ke), _e = v.get(Te), ze = ie + (_e === void 0 ? j : _e);
|
|
4975
4975
|
ze >= We && Ee === void 0 && (Ee = ye, Me = ie), ze > We + W && te === void 0 && (te = ye), ie = ze;
|
|
4976
4976
|
}
|
|
@@ -4980,8 +4980,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
4980
4980
|
}), ae($, () => {
|
|
4981
4981
|
const j = v.getRecord();
|
|
4982
4982
|
if (j.size === 1) {
|
|
4983
|
-
const W = Array.from(j.keys())[0],
|
|
4984
|
-
if (ie &&
|
|
4983
|
+
const W = Array.from(j.keys())[0], re = j.get(W), ie = u.value[G.value];
|
|
4984
|
+
if (ie && re === void 0 && s(ie) === W) {
|
|
4985
4985
|
const Ee = v.get(W) - e.itemHeight;
|
|
4986
4986
|
K((Me) => Me + Ee);
|
|
4987
4987
|
}
|
|
@@ -4999,9 +4999,9 @@ const wn = /* @__PURE__ */ J({
|
|
|
4999
4999
|
let F = null, Y = null;
|
|
5000
5000
|
const g = (j) => {
|
|
5001
5001
|
Y !== j && (F && Y && F.unobserve(Y), Y = j, j && (F || (F = new ResizeObserver((W) => {
|
|
5002
|
-
const
|
|
5003
|
-
if (
|
|
5004
|
-
const ie =
|
|
5002
|
+
const re = W[0];
|
|
5003
|
+
if (re) {
|
|
5004
|
+
const ie = re.target;
|
|
5005
5005
|
N.value = {
|
|
5006
5006
|
width: ie.offsetWidth,
|
|
5007
5007
|
height: ie.offsetHeight
|
|
@@ -5023,21 +5023,21 @@ const wn = /* @__PURE__ */ J({
|
|
|
5023
5023
|
C.value?.delayHidden(), T.value?.delayHidden();
|
|
5024
5024
|
}, [ue] = cn(m, P, le, q, Z, _.value > 0, (j, W) => {
|
|
5025
5025
|
if (W) {
|
|
5026
|
-
const
|
|
5027
|
-
w.value =
|
|
5028
|
-
x: A.value ? -
|
|
5026
|
+
const re = se(A.value ? w.value - j : w.value + j);
|
|
5027
|
+
w.value = re, I({
|
|
5028
|
+
x: A.value ? -re : re
|
|
5029
5029
|
});
|
|
5030
5030
|
} else
|
|
5031
|
-
K((
|
|
5031
|
+
K((re) => re + j);
|
|
5032
5032
|
});
|
|
5033
5033
|
vn(m, h, (j, W) => {
|
|
5034
5034
|
if (j) {
|
|
5035
|
-
const
|
|
5036
|
-
return w.value =
|
|
5037
|
-
x: A.value ? -
|
|
5035
|
+
const re = se(A.value ? w.value - W : w.value + W);
|
|
5036
|
+
return w.value = re, I({
|
|
5037
|
+
x: A.value ? -re : re
|
|
5038
5038
|
}), !0;
|
|
5039
5039
|
} else
|
|
5040
|
-
return K((
|
|
5040
|
+
return K((re) => re + W), !0;
|
|
5041
5041
|
}), hn(m, h, (j) => {
|
|
5042
5042
|
K((W) => W + j);
|
|
5043
5043
|
});
|
|
@@ -5051,11 +5051,11 @@ const wn = /* @__PURE__ */ J({
|
|
|
5051
5051
|
D.value = !1;
|
|
5052
5052
|
};
|
|
5053
5053
|
an(u, s), ae([() => e.height, $, m, () => N.value.height], () => {
|
|
5054
|
-
m.value && e.height && $.value && (E.value =
|
|
5054
|
+
m.value && e.height && $.value && (E.value = go(N.value.height, $.value));
|
|
5055
5055
|
}, {
|
|
5056
5056
|
immediate: !0
|
|
5057
5057
|
}), ae([() => N.value.width, L], () => {
|
|
5058
|
-
m.value && L.value && (z.value =
|
|
5058
|
+
m.value && L.value && (z.value = go(N.value.width, L.value));
|
|
5059
5059
|
}, {
|
|
5060
5060
|
immediate: !0
|
|
5061
5061
|
}), ae(() => e.scrollWidth, (j) => {
|
|
@@ -5068,7 +5068,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5068
5068
|
!c.value || !m.value ? p.value = W : W !== p.value && K(W), e.onScroll?.(j), I();
|
|
5069
5069
|
}
|
|
5070
5070
|
const [ne, fe] = bn(h, u, v, l, s, () => i(!0), (j) => {
|
|
5071
|
-
const W = fe(),
|
|
5071
|
+
const W = fe(), re = Math.max($.value, W) - e.height, ie = Math.max(0, Math.min(j, re || 0));
|
|
5072
5072
|
h.value && (h.value.scrollTop = ie), p.value = ie;
|
|
5073
5073
|
}, pe);
|
|
5074
5074
|
t({
|
|
@@ -5076,8 +5076,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
5076
5076
|
getScrollInfo: y,
|
|
5077
5077
|
getHorizontalRange: () => _.value,
|
|
5078
5078
|
scrollTo: (j) => {
|
|
5079
|
-
function W(
|
|
5080
|
-
return
|
|
5079
|
+
function W(re) {
|
|
5080
|
+
return re && typeof re == "object" && ("left" in re || "top" in re);
|
|
5081
5081
|
}
|
|
5082
5082
|
W(j) ? (j.left !== void 0 && (w.value = se(j.left)), ne(j.top)) : ne(j);
|
|
5083
5083
|
}
|
|
@@ -5089,10 +5089,10 @@ const wn = /* @__PURE__ */ J({
|
|
|
5089
5089
|
}, {
|
|
5090
5090
|
flush: "post"
|
|
5091
5091
|
});
|
|
5092
|
-
const De = dn(u, s, v, l), Re = ln(u, G, U, L, w, n, (j, W,
|
|
5092
|
+
const De = dn(u, s, v, l), Re = ln(u, G, U, L, w, n, (j, W, re) => r.default?.({
|
|
5093
5093
|
item: j,
|
|
5094
5094
|
index: W,
|
|
5095
|
-
...
|
|
5095
|
+
...re
|
|
5096
5096
|
}), {
|
|
5097
5097
|
getKey: s
|
|
5098
5098
|
});
|
|
@@ -5107,25 +5107,25 @@ const wn = /* @__PURE__ */ J({
|
|
|
5107
5107
|
offsetY: Q.value || 0,
|
|
5108
5108
|
rtl: A.value,
|
|
5109
5109
|
getSize: De
|
|
5110
|
-
}),
|
|
5110
|
+
}), re = e.component;
|
|
5111
5111
|
return d("div", {
|
|
5112
5112
|
ref: x,
|
|
5113
|
-
...xn(
|
|
5113
|
+
...xn(o),
|
|
5114
5114
|
style: {
|
|
5115
5115
|
position: "relative",
|
|
5116
|
-
...
|
|
5116
|
+
...o.style
|
|
5117
5117
|
},
|
|
5118
5118
|
dir: A.value ? "rtl" : void 0,
|
|
5119
5119
|
class: [e.prefixCls, {
|
|
5120
5120
|
[`${e.prefixCls}-rtl`]: A.value
|
|
5121
|
-
},
|
|
5121
|
+
}, o.class],
|
|
5122
5122
|
onMouseenter: () => {
|
|
5123
5123
|
k.value = !0;
|
|
5124
5124
|
},
|
|
5125
5125
|
onMouseleave: () => {
|
|
5126
5126
|
k.value = !1;
|
|
5127
5127
|
}
|
|
5128
|
-
}, [d(
|
|
5128
|
+
}, [d(re, {
|
|
5129
5129
|
class: `${e.prefixCls}-holder`,
|
|
5130
5130
|
style: j,
|
|
5131
5131
|
ref: (ie) => {
|
|
@@ -5149,7 +5149,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5149
5149
|
}, {
|
|
5150
5150
|
default: () => [Re.value]
|
|
5151
5151
|
})]
|
|
5152
|
-
}), m.value && $.value > (e.height || 0) && d(
|
|
5152
|
+
}), m.value && $.value > (e.height || 0) && d(bo, {
|
|
5153
5153
|
ref: C,
|
|
5154
5154
|
prefixCls: e.prefixCls,
|
|
5155
5155
|
scrollOffset: p.value,
|
|
@@ -5164,7 +5164,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5164
5164
|
showScrollBar: e.showScrollBar,
|
|
5165
5165
|
style: e.styles?.verticalScrollBar,
|
|
5166
5166
|
thumbStyle: e.styles?.verticalScrollBarThumb
|
|
5167
|
-
}), m.value && L.value > N.value.width && d(
|
|
5167
|
+
}), m.value && L.value > N.value.width && d(bo, {
|
|
5168
5168
|
ref: T,
|
|
5169
5169
|
prefixCls: e.prefixCls,
|
|
5170
5170
|
scrollOffset: w.value,
|
|
@@ -5187,7 +5187,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5187
5187
|
left: "text-left",
|
|
5188
5188
|
center: "text-center",
|
|
5189
5189
|
right: "text-right"
|
|
5190
|
-
},
|
|
5190
|
+
}, Zo = {
|
|
5191
5191
|
slots: {
|
|
5192
5192
|
root: [
|
|
5193
5193
|
"relative w-full",
|
|
@@ -5198,7 +5198,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5198
5198
|
wrapper: "w-full overflow-auto",
|
|
5199
5199
|
table: [
|
|
5200
5200
|
"w-full border-separate border-spacing-0",
|
|
5201
|
-
"bg-[var(--vtg-table-bg)]",
|
|
5201
|
+
"bg-[color:var(--vtg-table-bg)]",
|
|
5202
5202
|
"text-[color:var(--vtg-table-text-color)]"
|
|
5203
5203
|
].join(" "),
|
|
5204
5204
|
thead: "",
|
|
@@ -5209,20 +5209,20 @@ const wn = /* @__PURE__ */ J({
|
|
|
5209
5209
|
groupedHeaderTd: "",
|
|
5210
5210
|
th: [
|
|
5211
5211
|
"relative text-left font-semibold",
|
|
5212
|
-
"bg-[var(--vtg-table-header-bg)]",
|
|
5212
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5213
5213
|
"text-[color:var(--vtg-table-header-color)]",
|
|
5214
|
-
"border-b border-[var(--vtg-table-border-color)]",
|
|
5214
|
+
"border-b border-[color:var(--vtg-table-border-color)]",
|
|
5215
5215
|
// 表头 cell 间分割线(::before 伪元素)
|
|
5216
5216
|
"before:absolute before:end-0 before:top-1/2 before:-translate-y-1/2",
|
|
5217
5217
|
"before:block before:w-px before:h-[1.6em]",
|
|
5218
|
-
"before:bg-[var(--vtg-table-header-split-color)]",
|
|
5218
|
+
"before:bg-[color:var(--vtg-table-header-split-color)]",
|
|
5219
5219
|
"last:before:bg-transparent"
|
|
5220
5220
|
].join(" "),
|
|
5221
5221
|
td: [
|
|
5222
5222
|
"align-middle",
|
|
5223
|
-
"bg-[var(--vtg-table-bg)]",
|
|
5223
|
+
"bg-[color:var(--vtg-table-bg)]",
|
|
5224
5224
|
"text-[color:var(--vtg-table-text-color)]",
|
|
5225
|
-
"border-b border-[var(--vtg-table-border-color)]"
|
|
5225
|
+
"border-b border-[color:var(--vtg-table-border-color)]"
|
|
5226
5226
|
].join(" "),
|
|
5227
5227
|
empty: "text-center text-[color:var(--color-text-disabled)]",
|
|
5228
5228
|
loading: [
|
|
@@ -5233,7 +5233,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5233
5233
|
headerCellInner: "flex items-center",
|
|
5234
5234
|
bodyCellEllipsis: "block min-w-0 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
5235
5235
|
// ---- 排序相关 ----
|
|
5236
|
-
thSortable: "cursor-pointer select-none hover:bg-[var(--vtg-table-header-sort-hover-bg)]",
|
|
5236
|
+
thSortable: "cursor-pointer select-none hover:bg-[color:var(--vtg-table-header-sort-hover-bg)]",
|
|
5237
5237
|
sortButton: "inline-flex flex-col items-center justify-center text-xs leading-none ml-1",
|
|
5238
5238
|
sortIconDown: "-mt-[0.225em]",
|
|
5239
5239
|
sortAreaOuter: "flex flex-auto min-w-0",
|
|
@@ -5295,8 +5295,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
5295
5295
|
// ---- 加载状态相关 ----
|
|
5296
5296
|
loadingSpinner: "inline-flex items-center justify-center text-[length:20px] leading-none text-[color:var(--color-primary)]",
|
|
5297
5297
|
// ---- 行选中背景 ----
|
|
5298
|
-
tdSelected: "bg-[var(--vtg-table-row-selected-bg)]",
|
|
5299
|
-
tdSelectedHover: "group-hover/row:bg-[var(--vtg-table-row-selected-hover-bg)]",
|
|
5298
|
+
tdSelected: "bg-[color:var(--vtg-table-row-selected-bg)]",
|
|
5299
|
+
tdSelectedHover: "group-hover/row:bg-[color:var(--vtg-table-row-selected-hover-bg)]",
|
|
5300
5300
|
// ---- 选择下拉相关 ----
|
|
5301
5301
|
selectionDropdown: [
|
|
5302
5302
|
"rounded-[6px] bg-[color:var(--color-surface)]",
|
|
@@ -5309,19 +5309,21 @@ const wn = /* @__PURE__ */ J({
|
|
|
5309
5309
|
selectionDropdownItem: "flex items-center cursor-pointer px-3 py-[5px] rounded-sm hover:bg-[color:var(--color-control-item-hover-bg)]",
|
|
5310
5310
|
selectionExtra: "inline-flex items-center justify-center cursor-pointer ml-0.5 text-[10px] text-[color:var(--color-sorter-icon)] hover:text-[color:var(--color-primary)] transition-colors",
|
|
5311
5311
|
// ---- 标题/页脚/摘要行 ----
|
|
5312
|
-
title: [
|
|
5313
|
-
"
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5312
|
+
title: [
|
|
5313
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5314
|
+
"text-[color:var(--vtg-table-text-color)]"
|
|
5315
|
+
].join(" "),
|
|
5316
|
+
footer: [
|
|
5317
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5318
|
+
"text-[color:var(--vtg-table-text-color)]"
|
|
5319
|
+
].join(" "),
|
|
5318
5320
|
summary: "",
|
|
5319
|
-
summaryRow: "bg-[var(--vtg-table-header-bg)]",
|
|
5321
|
+
summaryRow: "bg-[color:var(--vtg-table-header-bg)]",
|
|
5320
5322
|
summaryCell: [
|
|
5321
5323
|
"font-semibold",
|
|
5322
|
-
"bg-[var(--vtg-table-header-bg)]",
|
|
5324
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5323
5325
|
"text-[color:var(--vtg-table-text-color)]",
|
|
5324
|
-
"border-b border-[var(--vtg-table-border-color)]"
|
|
5326
|
+
"border-b border-[color:var(--vtg-table-border-color)]"
|
|
5325
5327
|
].join(" "),
|
|
5326
5328
|
// ---- 固定列/固定表头 ----
|
|
5327
5329
|
headerWrapper: "overflow-hidden",
|
|
@@ -5351,8 +5353,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
5351
5353
|
expandIcon: [
|
|
5352
5354
|
"relative inline-flex h-[17px] w-[17px] shrink-0 items-center justify-center",
|
|
5353
5355
|
"origin-center scale-[0.941176] p-0 leading-[17px]",
|
|
5354
|
-
"rounded-[6px] border border-[var(--vtg-table-border-color,#d9d9d9)]",
|
|
5355
|
-
"bg-[var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)]",
|
|
5356
|
+
"rounded-[6px] border border-[color:var(--vtg-table-border-color,#d9d9d9)]",
|
|
5357
|
+
"bg-[color:var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)]",
|
|
5356
5358
|
"cursor-pointer align-sub select-none transition-[border-color,background-color,color] duration-200",
|
|
5357
5359
|
"hover:border-[color:var(--color-primary)] hover:text-[color:var(--color-primary)]",
|
|
5358
5360
|
"focus:border-[color:var(--color-primary)] focus:text-[color:var(--color-primary)]",
|
|
@@ -5373,8 +5375,8 @@ const wn = /* @__PURE__ */ J({
|
|
|
5373
5375
|
treeExpandIcon: [
|
|
5374
5376
|
"relative me-2 inline-flex h-[17px] w-[17px] shrink-0 items-center justify-center",
|
|
5375
5377
|
"origin-center scale-[0.941176] p-0 leading-[17px]",
|
|
5376
|
-
"rounded-[6px] border border-[var(--vtg-table-border-color,#d9d9d9)]",
|
|
5377
|
-
"bg-[var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)]",
|
|
5378
|
+
"rounded-[6px] border border-[color:var(--vtg-table-border-color,#d9d9d9)]",
|
|
5379
|
+
"bg-[color:var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)]",
|
|
5378
5380
|
"cursor-pointer align-sub select-none transition-[border-color,background-color,color] duration-200",
|
|
5379
5381
|
"hover:border-[color:var(--color-primary)] hover:text-[color:var(--color-primary)]",
|
|
5380
5382
|
"focus:border-[color:var(--color-primary)] focus:text-[color:var(--color-primary)]",
|
|
@@ -5393,7 +5395,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5393
5395
|
treeExpandIconSymbolExpanded: "",
|
|
5394
5396
|
treeExpandIconSymbolCollapsed: "",
|
|
5395
5397
|
expandedRow: "",
|
|
5396
|
-
expandedRowCell: "bg-[var(--vtg-table-expanded-row-bg,#fafafa)]",
|
|
5398
|
+
expandedRowCell: "bg-[color:var(--vtg-table-expanded-row-bg,#fafafa)]",
|
|
5397
5399
|
// ---- 列拖拽调整宽度 ----
|
|
5398
5400
|
resizeHandle: ""
|
|
5399
5401
|
},
|
|
@@ -5405,14 +5407,14 @@ const wn = /* @__PURE__ */ J({
|
|
|
5405
5407
|
},
|
|
5406
5408
|
bordered: {
|
|
5407
5409
|
true: {
|
|
5408
|
-
root: "border border-[var(--vtg-table-border-color)] rounded-[8px] overflow-hidden",
|
|
5410
|
+
root: "border border-[color:var(--vtg-table-border-color)] rounded-[8px] overflow-hidden",
|
|
5409
5411
|
table: "",
|
|
5410
|
-
th: "border-r border-[var(--vtg-table-border-color)] last:border-r-0 before:hidden",
|
|
5411
|
-
td: "border-r border-[var(--vtg-table-border-color)] last:border-r-0",
|
|
5412
|
+
th: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0 before:hidden",
|
|
5413
|
+
td: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0",
|
|
5412
5414
|
tbody: "[&>tr:last-child>td]:border-b-0",
|
|
5413
|
-
title: "border-b border-[var(--vtg-table-border-color)]",
|
|
5414
|
-
footer: "border-t border-[var(--vtg-table-border-color)]",
|
|
5415
|
-
summaryCell: "border-r border-[var(--vtg-table-border-color)] last:border-r-0"
|
|
5415
|
+
title: "border-b border-[color:var(--vtg-table-border-color)]",
|
|
5416
|
+
footer: "border-t border-[color:var(--vtg-table-border-color)]",
|
|
5417
|
+
summaryCell: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0"
|
|
5416
5418
|
}
|
|
5417
5419
|
},
|
|
5418
5420
|
striped: {
|
|
@@ -5422,7 +5424,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5422
5424
|
},
|
|
5423
5425
|
hoverable: {
|
|
5424
5426
|
true: {
|
|
5425
|
-
td: "group-hover/row:bg-[var(--vtg-table-row-hover-bg)]"
|
|
5427
|
+
td: "group-hover/row:bg-[color:var(--vtg-table-row-hover-bg)]"
|
|
5426
5428
|
}
|
|
5427
5429
|
},
|
|
5428
5430
|
loading: {
|
|
@@ -5454,7 +5456,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5454
5456
|
striped: !1,
|
|
5455
5457
|
hoverable: !0
|
|
5456
5458
|
}
|
|
5457
|
-
},
|
|
5459
|
+
}, Jo = {
|
|
5458
5460
|
slots: {
|
|
5459
5461
|
root: "inline-flex items-center justify-center border font-normal transition-all duration-200 ease-[cubic-bezier(0.645,0.045,0.355,1)] leading-[1.5714] cursor-pointer",
|
|
5460
5462
|
inner: ""
|
|
@@ -5520,7 +5522,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5520
5522
|
size: "md",
|
|
5521
5523
|
disabled: !1
|
|
5522
5524
|
}
|
|
5523
|
-
},
|
|
5525
|
+
}, Qo = {
|
|
5524
5526
|
slots: {
|
|
5525
5527
|
root: [
|
|
5526
5528
|
"relative inline-flex items-center justify-center",
|
|
@@ -5567,7 +5569,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5567
5569
|
indeterminate: !1,
|
|
5568
5570
|
disabled: !1
|
|
5569
5571
|
}
|
|
5570
|
-
},
|
|
5572
|
+
}, er = {
|
|
5571
5573
|
slots: {
|
|
5572
5574
|
root: [
|
|
5573
5575
|
"inline-flex items-center justify-center",
|
|
@@ -5597,7 +5599,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5597
5599
|
checked: !1,
|
|
5598
5600
|
disabled: !1
|
|
5599
5601
|
}
|
|
5600
|
-
},
|
|
5602
|
+
}, tr = {
|
|
5601
5603
|
slots: {
|
|
5602
5604
|
root: [
|
|
5603
5605
|
"w-full box-border",
|
|
@@ -5633,7 +5635,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5633
5635
|
bare: !1,
|
|
5634
5636
|
disabled: !1
|
|
5635
5637
|
}
|
|
5636
|
-
},
|
|
5638
|
+
}, or = {
|
|
5637
5639
|
slots: {
|
|
5638
5640
|
content: [
|
|
5639
5641
|
"text-white max-w-[250px] break-words relative",
|
|
@@ -5649,7 +5651,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5649
5651
|
arrowInner: "absolute inset-0 w-0 h-0"
|
|
5650
5652
|
},
|
|
5651
5653
|
defaultVariants: {}
|
|
5652
|
-
},
|
|
5654
|
+
}, rr = {
|
|
5653
5655
|
slots: {
|
|
5654
5656
|
root: "group relative overflow-hidden",
|
|
5655
5657
|
wrap: "overflow-auto scrollbar-none h-full",
|
|
@@ -5667,7 +5669,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5667
5669
|
].join(" ")
|
|
5668
5670
|
},
|
|
5669
5671
|
defaultVariants: {}
|
|
5670
|
-
},
|
|
5672
|
+
}, xo = {
|
|
5671
5673
|
header: {
|
|
5672
5674
|
sortTriggerAsc: "点击升序",
|
|
5673
5675
|
sortTriggerDesc: "点击降序",
|
|
@@ -5728,30 +5730,30 @@ const wn = /* @__PURE__ */ J({
|
|
|
5728
5730
|
wrapper: "w-full overflow-auto",
|
|
5729
5731
|
table: [
|
|
5730
5732
|
"w-full border-separate border-spacing-0",
|
|
5731
|
-
"bg-[var(--vtg-table-bg)]",
|
|
5733
|
+
"bg-[color:var(--vtg-table-bg)]",
|
|
5732
5734
|
"text-[color:var(--vtg-table-text-color)]"
|
|
5733
5735
|
].join(" "),
|
|
5734
5736
|
thead: "",
|
|
5735
5737
|
tbody: "",
|
|
5736
5738
|
tr: "group/row transition-colors",
|
|
5737
|
-
groupedHeaderTable: "border border-[var(--vtg-table-border-color)]",
|
|
5739
|
+
groupedHeaderTable: "border border-[color:var(--vtg-table-border-color)]",
|
|
5738
5740
|
groupedHeaderTh: [
|
|
5739
|
-
"border-r border-[var(--vtg-table-border-color)] last:border-r-0",
|
|
5741
|
+
"border-r border-[color:var(--vtg-table-border-color)] last:border-r-0",
|
|
5740
5742
|
"bg-[color:var(--color-surface-hover)]"
|
|
5741
5743
|
].join(" "),
|
|
5742
|
-
groupedHeaderTd: "border-r border-[var(--vtg-table-border-color)] last:border-r-0",
|
|
5744
|
+
groupedHeaderTd: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0",
|
|
5743
5745
|
th: [
|
|
5744
5746
|
"relative text-left font-semibold",
|
|
5745
|
-
"bg-[var(--vtg-table-header-bg)]",
|
|
5747
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5746
5748
|
"text-[color:var(--vtg-table-header-color)]",
|
|
5747
|
-
"border-b border-[var(--vtg-table-border-color)]"
|
|
5749
|
+
"border-b border-[color:var(--vtg-table-border-color)]"
|
|
5748
5750
|
// Element Plus: 无表头分割线
|
|
5749
5751
|
].join(" "),
|
|
5750
5752
|
td: [
|
|
5751
5753
|
"align-middle",
|
|
5752
|
-
"bg-[var(--vtg-table-bg)]",
|
|
5754
|
+
"bg-[color:var(--vtg-table-bg)]",
|
|
5753
5755
|
"text-[color:var(--vtg-table-text-color)]",
|
|
5754
|
-
"border-b border-[var(--vtg-table-border-color)]"
|
|
5756
|
+
"border-b border-[color:var(--vtg-table-border-color)]"
|
|
5755
5757
|
].join(" "),
|
|
5756
5758
|
empty: "py-5 text-center text-[color:var(--color-muted)]",
|
|
5757
5759
|
loading: [
|
|
@@ -5822,20 +5824,21 @@ const wn = /* @__PURE__ */ J({
|
|
|
5822
5824
|
selectionExtra: "inline-flex items-center justify-center cursor-pointer ml-1 text-xs text-[color:var(--color-muted)] hover:text-[color:var(--color-primary)] transition-colors",
|
|
5823
5825
|
// ---- 标题/页脚/摘要行 ----
|
|
5824
5826
|
title: [
|
|
5825
|
-
"bg-[var(--vtg-table-header-bg)]",
|
|
5827
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5826
5828
|
"text-[color:var(--vtg-table-text-color)]",
|
|
5827
5829
|
"font-medium"
|
|
5828
5830
|
].join(" "),
|
|
5829
|
-
footer: [
|
|
5830
|
-
"
|
|
5831
|
-
|
|
5831
|
+
footer: [
|
|
5832
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5833
|
+
"text-[color:var(--vtg-table-text-color)]"
|
|
5834
|
+
].join(" "),
|
|
5832
5835
|
summary: "",
|
|
5833
|
-
summaryRow: "bg-[var(--vtg-table-header-bg)]",
|
|
5836
|
+
summaryRow: "bg-[color:var(--vtg-table-header-bg)]",
|
|
5834
5837
|
summaryCell: [
|
|
5835
5838
|
"font-medium",
|
|
5836
|
-
"bg-[var(--vtg-table-header-bg)]",
|
|
5839
|
+
"bg-[color:var(--vtg-table-header-bg)]",
|
|
5837
5840
|
"text-[color:var(--vtg-table-text-color)]",
|
|
5838
|
-
"border-b border-[var(--vtg-table-border-color)]"
|
|
5841
|
+
"border-b border-[color:var(--vtg-table-border-color)]"
|
|
5839
5842
|
].join(" "),
|
|
5840
5843
|
// ---- 固定列/固定表头 ----
|
|
5841
5844
|
headerWrapper: "overflow-hidden",
|
|
@@ -5873,7 +5876,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5873
5876
|
treeExpandIconSymbolExpanded: "rotate-90",
|
|
5874
5877
|
treeExpandIconSymbolCollapsed: "rotate-0",
|
|
5875
5878
|
expandedRow: "",
|
|
5876
|
-
expandedRowCell: "bg-[var(--vtg-table-expanded-row-bg,#fafafa)]",
|
|
5879
|
+
expandedRowCell: "bg-[color:var(--vtg-table-expanded-row-bg,#fafafa)]",
|
|
5877
5880
|
// ---- 列拖拽调整宽度 ----
|
|
5878
5881
|
resizeHandle: ""
|
|
5879
5882
|
},
|
|
@@ -5885,24 +5888,24 @@ const wn = /* @__PURE__ */ J({
|
|
|
5885
5888
|
},
|
|
5886
5889
|
bordered: {
|
|
5887
5890
|
true: {
|
|
5888
|
-
root: "border border-[var(--vtg-table-border-color)] overflow-hidden",
|
|
5891
|
+
root: "border border-[color:var(--vtg-table-border-color)] overflow-hidden",
|
|
5889
5892
|
table: "",
|
|
5890
|
-
th: "border-r border-[var(--vtg-table-border-color)] last:border-r-0",
|
|
5891
|
-
td: "border-r border-[var(--vtg-table-border-color)] last:border-r-0",
|
|
5893
|
+
th: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0",
|
|
5894
|
+
td: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0",
|
|
5892
5895
|
tbody: "[&>tr:last-child>td]:border-b-0",
|
|
5893
|
-
title: "border-b border-[var(--vtg-table-border-color)]",
|
|
5894
|
-
footer: "border-t border-[var(--vtg-table-border-color)]",
|
|
5895
|
-
summaryCell: "border-r border-[var(--vtg-table-border-color)] last:border-r-0"
|
|
5896
|
+
title: "border-b border-[color:var(--vtg-table-border-color)]",
|
|
5897
|
+
footer: "border-t border-[color:var(--vtg-table-border-color)]",
|
|
5898
|
+
summaryCell: "border-r border-[color:var(--vtg-table-border-color)] last:border-r-0"
|
|
5896
5899
|
}
|
|
5897
5900
|
},
|
|
5898
5901
|
striped: {
|
|
5899
5902
|
true: {
|
|
5900
|
-
td: "group-even/row:bg-[var(--vtg-table-row-striped-bg)]"
|
|
5903
|
+
td: "group-even/row:bg-[color:var(--vtg-table-row-striped-bg)]"
|
|
5901
5904
|
}
|
|
5902
5905
|
},
|
|
5903
5906
|
hoverable: {
|
|
5904
5907
|
true: {
|
|
5905
|
-
td: "group-hover/row:bg-[var(--vtg-table-row-hover-bg)]"
|
|
5908
|
+
td: "group-hover/row:bg-[color:var(--vtg-table-row-hover-bg)]"
|
|
5906
5909
|
}
|
|
5907
5910
|
}
|
|
5908
5911
|
},
|
|
@@ -5929,7 +5932,7 @@ const wn = /* @__PURE__ */ J({
|
|
|
5929
5932
|
striped: !1,
|
|
5930
5933
|
hoverable: !0
|
|
5931
5934
|
}
|
|
5932
|
-
},
|
|
5935
|
+
}, wo = {
|
|
5933
5936
|
header: {
|
|
5934
5937
|
sortTriggerAsc: "点击升序",
|
|
5935
5938
|
sortTriggerDesc: "点击降序",
|
|
@@ -6206,18 +6209,18 @@ const wn = /* @__PURE__ */ J({
|
|
|
6206
6209
|
].join(" ")
|
|
6207
6210
|
},
|
|
6208
6211
|
defaultVariants: {}
|
|
6209
|
-
},
|
|
6212
|
+
}, So = {
|
|
6210
6213
|
antdv: {
|
|
6211
|
-
table:
|
|
6212
|
-
button:
|
|
6213
|
-
checkbox:
|
|
6214
|
-
radio:
|
|
6215
|
-
input:
|
|
6216
|
-
tooltip:
|
|
6217
|
-
scrollbar:
|
|
6218
|
-
tableLocale:
|
|
6214
|
+
table: Zo,
|
|
6215
|
+
button: Jo,
|
|
6216
|
+
checkbox: Qo,
|
|
6217
|
+
radio: er,
|
|
6218
|
+
input: tr,
|
|
6219
|
+
tooltip: or,
|
|
6220
|
+
scrollbar: rr,
|
|
6221
|
+
tableLocale: xo,
|
|
6219
6222
|
locales: {
|
|
6220
|
-
"zh-CN": { table:
|
|
6223
|
+
"zh-CN": { table: xo },
|
|
6221
6224
|
"en-US": { table: Sn }
|
|
6222
6225
|
}
|
|
6223
6226
|
},
|
|
@@ -6229,36 +6232,36 @@ const wn = /* @__PURE__ */ J({
|
|
|
6229
6232
|
input: En,
|
|
6230
6233
|
tooltip: zn,
|
|
6231
6234
|
scrollbar: Dn,
|
|
6232
|
-
tableLocale:
|
|
6235
|
+
tableLocale: wo,
|
|
6233
6236
|
locales: {
|
|
6234
|
-
"zh-CN": { table:
|
|
6237
|
+
"zh-CN": { table: wo },
|
|
6235
6238
|
"en-US": { table: kn }
|
|
6236
6239
|
}
|
|
6237
6240
|
}
|
|
6238
6241
|
};
|
|
6239
6242
|
function Le(e = "antdv") {
|
|
6240
|
-
return
|
|
6243
|
+
return So[e] ?? So.antdv;
|
|
6241
6244
|
}
|
|
6242
6245
|
function An(e = "antdv") {
|
|
6243
6246
|
return Le(e).table;
|
|
6244
6247
|
}
|
|
6245
6248
|
function _n(e = "antdv") {
|
|
6246
|
-
return Le(e).button ??
|
|
6249
|
+
return Le(e).button ?? Jo;
|
|
6247
6250
|
}
|
|
6248
6251
|
function Ln(e = "antdv") {
|
|
6249
|
-
return Le(e).checkbox ??
|
|
6252
|
+
return Le(e).checkbox ?? Qo;
|
|
6250
6253
|
}
|
|
6251
6254
|
function Mn(e = "antdv") {
|
|
6252
|
-
return Le(e).radio ??
|
|
6255
|
+
return Le(e).radio ?? er;
|
|
6253
6256
|
}
|
|
6254
6257
|
function On(e = "antdv") {
|
|
6255
|
-
return Le(e).input ??
|
|
6258
|
+
return Le(e).input ?? tr;
|
|
6256
6259
|
}
|
|
6257
6260
|
function Bn(e = "antdv") {
|
|
6258
|
-
return Le(e).tooltip ??
|
|
6261
|
+
return Le(e).tooltip ?? or;
|
|
6259
6262
|
}
|
|
6260
6263
|
function jn(e = "antdv") {
|
|
6261
|
-
return Le(e).scrollbar ??
|
|
6264
|
+
return Le(e).scrollbar ?? rr;
|
|
6262
6265
|
}
|
|
6263
6266
|
function Pn(e = "antdv") {
|
|
6264
6267
|
return Le(e).tableLocale;
|
|
@@ -6269,30 +6272,30 @@ function Nn(e = "antdv", t = "zh-CN") {
|
|
|
6269
6272
|
function ja(e = "antdv", t = "zh-CN") {
|
|
6270
6273
|
return Le(e).locales[t];
|
|
6271
6274
|
}
|
|
6272
|
-
function
|
|
6275
|
+
function lr(e) {
|
|
6273
6276
|
return !!e && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
6274
6277
|
}
|
|
6275
|
-
function
|
|
6278
|
+
function nr(e) {
|
|
6276
6279
|
const t = [];
|
|
6277
|
-
for (const
|
|
6278
|
-
if (
|
|
6279
|
-
t.push(...
|
|
6280
|
+
for (const o of e) {
|
|
6281
|
+
if (lr(o)) {
|
|
6282
|
+
t.push(...nr(o.children));
|
|
6280
6283
|
continue;
|
|
6281
6284
|
}
|
|
6282
|
-
t.push(
|
|
6285
|
+
t.push(o);
|
|
6283
6286
|
}
|
|
6284
6287
|
return t;
|
|
6285
6288
|
}
|
|
6286
6289
|
function Fn(e) {
|
|
6287
6290
|
const t = [];
|
|
6288
|
-
function
|
|
6291
|
+
function o(l, a, s = 0) {
|
|
6289
6292
|
t[s] = t[s] || [];
|
|
6290
6293
|
let n = a;
|
|
6291
6294
|
return l.filter(Boolean).map((i) => {
|
|
6292
|
-
const v = !
|
|
6295
|
+
const v = !lr(i) || i.children.length === 0;
|
|
6293
6296
|
let f = v ? [i] : [], u = 1;
|
|
6294
6297
|
if (!v) {
|
|
6295
|
-
const c =
|
|
6298
|
+
const c = o(i.children, n, s + 1);
|
|
6296
6299
|
f = c.flatMap((m) => m.leafColumns), u = c.reduce((m, h) => m + h.colSpan, 0);
|
|
6297
6300
|
}
|
|
6298
6301
|
return "colSpan" in i && typeof i.colSpan == "number" && (u = i.colSpan), t[s].push({
|
|
@@ -6310,40 +6313,40 @@ function Fn(e) {
|
|
|
6310
6313
|
};
|
|
6311
6314
|
});
|
|
6312
6315
|
}
|
|
6313
|
-
|
|
6314
|
-
const
|
|
6316
|
+
o(e, 0);
|
|
6317
|
+
const r = t.length;
|
|
6315
6318
|
return t.forEach((l, a) => {
|
|
6316
6319
|
l.forEach((s) => {
|
|
6317
|
-
s.isLeaf && (s.rowSpan =
|
|
6320
|
+
s.isLeaf && (s.rowSpan = r - a);
|
|
6318
6321
|
});
|
|
6319
6322
|
}), t;
|
|
6320
6323
|
}
|
|
6321
6324
|
function Rt(e, t) {
|
|
6322
6325
|
if (t == null || t === "") return;
|
|
6323
|
-
const
|
|
6324
|
-
let
|
|
6325
|
-
for (const l of
|
|
6326
|
-
if (
|
|
6327
|
-
|
|
6326
|
+
const o = Array.isArray(t) ? t : [t];
|
|
6327
|
+
let r = e;
|
|
6328
|
+
for (const l of o) {
|
|
6329
|
+
if (r == null) return;
|
|
6330
|
+
r = r[String(l)];
|
|
6328
6331
|
}
|
|
6329
|
-
return
|
|
6332
|
+
return r;
|
|
6330
6333
|
}
|
|
6331
|
-
function
|
|
6332
|
-
const t = S(() =>
|
|
6334
|
+
function Co(e) {
|
|
6335
|
+
const t = S(() => nr(e())), o = S(() => Fn(e()));
|
|
6333
6336
|
return {
|
|
6334
6337
|
leafColumns: t,
|
|
6335
|
-
headerRows:
|
|
6338
|
+
headerRows: o
|
|
6336
6339
|
};
|
|
6337
6340
|
}
|
|
6338
|
-
function
|
|
6341
|
+
function ar(e) {
|
|
6339
6342
|
if (!(!e || typeof e != "object" || typeof e == "function"))
|
|
6340
6343
|
return e;
|
|
6341
6344
|
}
|
|
6342
6345
|
function Ot(e) {
|
|
6343
|
-
const t =
|
|
6346
|
+
const t = ar(e.sorter)?.multiple;
|
|
6344
6347
|
return typeof t == "number" && Number.isFinite(t) ? t : !1;
|
|
6345
6348
|
}
|
|
6346
|
-
function
|
|
6349
|
+
function ko(e) {
|
|
6347
6350
|
return {
|
|
6348
6351
|
column: e.column,
|
|
6349
6352
|
columnKey: e.columnKey,
|
|
@@ -6363,14 +6366,14 @@ function Hn(e, t) {
|
|
|
6363
6366
|
return e.sortDirections ?? t ?? ["ascend", "descend"];
|
|
6364
6367
|
}
|
|
6365
6368
|
function Kn(e, t) {
|
|
6366
|
-
const
|
|
6367
|
-
return
|
|
6369
|
+
const o = t.indexOf(e);
|
|
6370
|
+
return o === -1 ? t[0] ?? null : o >= t.length - 1 ? null : t[o + 1];
|
|
6368
6371
|
}
|
|
6369
6372
|
function $n(e, t) {
|
|
6370
6373
|
return Number(t.multiplePriority) - Number(e.multiplePriority);
|
|
6371
6374
|
}
|
|
6372
6375
|
function Wn(e) {
|
|
6373
|
-
const { columns: t, tableSortDirections:
|
|
6376
|
+
const { columns: t, tableSortDirections: o, onSorterChange: r } = e, l = ft({}), a = /* @__PURE__ */ new Set();
|
|
6374
6377
|
function s() {
|
|
6375
6378
|
const p = /* @__PURE__ */ new Set();
|
|
6376
6379
|
t().forEach((w) => {
|
|
@@ -6415,7 +6418,7 @@ function Wn(e) {
|
|
|
6415
6418
|
columnKey: void 0,
|
|
6416
6419
|
order: null,
|
|
6417
6420
|
field: void 0
|
|
6418
|
-
} : p.length === 1 ?
|
|
6421
|
+
} : p.length === 1 ? ko(p[0]) : p.map(ko);
|
|
6419
6422
|
}
|
|
6420
6423
|
function u(p) {
|
|
6421
6424
|
return s(), i(p);
|
|
@@ -6432,19 +6435,19 @@ function Wn(e) {
|
|
|
6432
6435
|
s();
|
|
6433
6436
|
const w = be(p);
|
|
6434
6437
|
if (w === void 0) return;
|
|
6435
|
-
const D = u(p), E = Hn(p,
|
|
6438
|
+
const D = u(p), E = Hn(p, o?.()), z = Kn(D, E), L = Ot(p);
|
|
6436
6439
|
n(p) || (L === !1 ? c() : c((G) => Ot(G) === !1), z ? l[String(w)] = z : delete l[String(w)]);
|
|
6437
6440
|
const $ = v({
|
|
6438
6441
|
columnKey: w,
|
|
6439
6442
|
order: z
|
|
6440
6443
|
});
|
|
6441
|
-
|
|
6444
|
+
r?.(f($));
|
|
6442
6445
|
}
|
|
6443
6446
|
function h(p) {
|
|
6444
6447
|
if (!p.sorter) return null;
|
|
6445
6448
|
if (typeof p.sorter == "function")
|
|
6446
6449
|
return p.sorter;
|
|
6447
|
-
const w =
|
|
6450
|
+
const w = ar(p.sorter);
|
|
6448
6451
|
return w?.compare ? w.compare : (D, E) => Vn(Rt(D, p.dataIndex), Rt(E, p.dataIndex));
|
|
6449
6452
|
}
|
|
6450
6453
|
const b = S(() => v()), x = S(() => b.value[0] ?? {
|
|
@@ -6490,10 +6493,10 @@ function Wn(e) {
|
|
|
6490
6493
|
};
|
|
6491
6494
|
}
|
|
6492
6495
|
function qn(e) {
|
|
6493
|
-
const { columns: t, onFilterChange:
|
|
6496
|
+
const { columns: t, onFilterChange: o } = e, r = ft({});
|
|
6494
6497
|
for (const c of t()) {
|
|
6495
6498
|
const m = be(c);
|
|
6496
|
-
m !== void 0 && c.defaultFilteredValue && (
|
|
6499
|
+
m !== void 0 && c.defaultFilteredValue && (r[String(m)] = [...c.defaultFilteredValue]);
|
|
6497
6500
|
}
|
|
6498
6501
|
function l(c) {
|
|
6499
6502
|
return c.filteredValue !== void 0;
|
|
@@ -6502,7 +6505,7 @@ function qn(e) {
|
|
|
6502
6505
|
if (l(c))
|
|
6503
6506
|
return c.filteredValue ?? [];
|
|
6504
6507
|
const m = be(c);
|
|
6505
|
-
return m === void 0 ? [] :
|
|
6508
|
+
return m === void 0 ? [] : r[String(m)] ?? [];
|
|
6506
6509
|
}
|
|
6507
6510
|
function s(c) {
|
|
6508
6511
|
return [...c];
|
|
@@ -6519,7 +6522,7 @@ function qn(e) {
|
|
|
6519
6522
|
}
|
|
6520
6523
|
function i(c, m) {
|
|
6521
6524
|
const h = be(c);
|
|
6522
|
-
h !== void 0 && (l(c) || (m.length === 0 ? delete
|
|
6525
|
+
h !== void 0 && (l(c) || (m.length === 0 ? delete r[String(h)] : r[String(h)] = [...m]), o?.(n(c, m)));
|
|
6523
6526
|
}
|
|
6524
6527
|
function v(c) {
|
|
6525
6528
|
c.filterResetToDefaultFilteredValue && c.defaultFilteredValue ? i(c, [...c.defaultFilteredValue]) : i(c, []);
|
|
@@ -6548,11 +6551,11 @@ function qn(e) {
|
|
|
6548
6551
|
};
|
|
6549
6552
|
}
|
|
6550
6553
|
function Gn(e) {
|
|
6551
|
-
const { data: t, childrenColumnName:
|
|
6554
|
+
const { data: t, childrenColumnName: o, getRowKey: r } = e, l = [];
|
|
6552
6555
|
let a = 0;
|
|
6553
6556
|
function s(n, i, v) {
|
|
6554
6557
|
n.forEach((f) => {
|
|
6555
|
-
const u = a, c =
|
|
6558
|
+
const u = a, c = r(f, u), m = f[o];
|
|
6556
6559
|
if (l.push({
|
|
6557
6560
|
key: c,
|
|
6558
6561
|
record: f,
|
|
@@ -6569,7 +6572,7 @@ function Gn(e) {
|
|
|
6569
6572
|
return s(t, 0), l;
|
|
6570
6573
|
}
|
|
6571
6574
|
function Yn(e) {
|
|
6572
|
-
const { rowSelection: t, getRowKey:
|
|
6575
|
+
const { rowSelection: t, getRowKey: o, data: r, visibleData: l, childrenColumnName: a, onSelectionChange: s } = e, n = M(/* @__PURE__ */ new Set()), i = M(!1), v = M(null);
|
|
6573
6576
|
ae(
|
|
6574
6577
|
() => t()?.defaultSelectedRowKeys,
|
|
6575
6578
|
(g) => {
|
|
@@ -6582,9 +6585,9 @@ function Yn(e) {
|
|
|
6582
6585
|
}
|
|
6583
6586
|
const u = S(
|
|
6584
6587
|
() => Gn({
|
|
6585
|
-
data:
|
|
6588
|
+
data: r(),
|
|
6586
6589
|
childrenColumnName: a?.() ?? "children",
|
|
6587
|
-
getRowKey:
|
|
6590
|
+
getRowKey: o
|
|
6588
6591
|
})
|
|
6589
6592
|
), c = S(() => {
|
|
6590
6593
|
const g = /* @__PURE__ */ new Map();
|
|
@@ -6634,7 +6637,7 @@ function Yn(e) {
|
|
|
6634
6637
|
return u.value.filter((A) => g.has(A.key)).map((A) => A.record);
|
|
6635
6638
|
}
|
|
6636
6639
|
function p() {
|
|
6637
|
-
return l().map((g, A) => c.value.get(
|
|
6640
|
+
return l().map((g, A) => c.value.get(o(g, A)) ?? null).filter((g) => g !== null);
|
|
6638
6641
|
}
|
|
6639
6642
|
function w() {
|
|
6640
6643
|
return p().filter((g) => !h(g.record));
|
|
@@ -6643,7 +6646,7 @@ function Yn(e) {
|
|
|
6643
6646
|
return u.value.filter((g) => !h(g.record));
|
|
6644
6647
|
}
|
|
6645
6648
|
function E(g, A) {
|
|
6646
|
-
const y =
|
|
6649
|
+
const y = o(g, A), R = C(y), I = h(g);
|
|
6647
6650
|
if (t()?.checkStrictly !== !1)
|
|
6648
6651
|
return {
|
|
6649
6652
|
checked: R,
|
|
@@ -6688,7 +6691,7 @@ function Yn(e) {
|
|
|
6688
6691
|
function $(g, A, y) {
|
|
6689
6692
|
const R = t();
|
|
6690
6693
|
if (!R) return;
|
|
6691
|
-
const I =
|
|
6694
|
+
const I = o(g, A), _ = !C(I);
|
|
6692
6695
|
if (R.type !== "radio" && y?.shiftKey && v.value !== null && t()?.checkStrictly !== !1) {
|
|
6693
6696
|
const le = w(), q = le.findIndex((se) => se.key === I), Z = le.findIndex(
|
|
6694
6697
|
(se) => se.key === v.value
|
|
@@ -6713,7 +6716,7 @@ function Yn(e) {
|
|
|
6713
6716
|
function G(g, A) {
|
|
6714
6717
|
const y = t();
|
|
6715
6718
|
if (!y) return;
|
|
6716
|
-
const R =
|
|
6719
|
+
const R = o(g, A), I = !C(R), _ = new Set(k.value);
|
|
6717
6720
|
L(R, _, I, []), z(_), y.onSelect?.(g, I, T(_)), v.value = R;
|
|
6718
6721
|
}
|
|
6719
6722
|
function U(g, A, y) {
|
|
@@ -6770,26 +6773,26 @@ function Yn(e) {
|
|
|
6770
6773
|
getChangeableRowKeys: Y
|
|
6771
6774
|
};
|
|
6772
6775
|
}
|
|
6773
|
-
function
|
|
6776
|
+
function To(e, t) {
|
|
6774
6777
|
return be(e) ?? t;
|
|
6775
6778
|
}
|
|
6776
6779
|
function Xn(e) {
|
|
6777
|
-
const t = M(null),
|
|
6778
|
-
atStart:
|
|
6779
|
-
atEnd:
|
|
6780
|
+
const t = M(null), o = M(null), r = M(0), l = M(0), a = S(() => ({
|
|
6781
|
+
atStart: r.value <= 0,
|
|
6782
|
+
atEnd: r.value >= l.value - 1
|
|
6780
6783
|
}));
|
|
6781
6784
|
function s(f, u) {
|
|
6782
|
-
|
|
6785
|
+
r.value = f, typeof u == "number" && (l.value = Math.max(0, u)), t.value && (t.value.scrollLeft = f);
|
|
6783
6786
|
}
|
|
6784
6787
|
function n(f) {
|
|
6785
|
-
const u =
|
|
6788
|
+
const u = o.value;
|
|
6786
6789
|
s(f.scrollLeft, u ? u.scrollWidth - u.clientWidth : l.value);
|
|
6787
6790
|
}
|
|
6788
6791
|
function i() {
|
|
6789
|
-
const f =
|
|
6792
|
+
const f = o.value;
|
|
6790
6793
|
f && s(f.scrollLeft, f.scrollWidth - f.clientWidth);
|
|
6791
6794
|
}
|
|
6792
|
-
ae(
|
|
6795
|
+
ae(o, () => {
|
|
6793
6796
|
Ye(i);
|
|
6794
6797
|
});
|
|
6795
6798
|
const v = S(() => {
|
|
@@ -6800,7 +6803,7 @@ function Xn(e) {
|
|
|
6800
6803
|
for (let x = 0; x < f.length; x++) {
|
|
6801
6804
|
const k = f[x];
|
|
6802
6805
|
if (k.fixed !== "left") continue;
|
|
6803
|
-
const C =
|
|
6806
|
+
const C = To(k, x), T = typeof k.width == "number" ? k.width : parseInt(String(k.width) || "0", 10);
|
|
6804
6807
|
u.set(C, {
|
|
6805
6808
|
left: c,
|
|
6806
6809
|
isLastLeft: x === m
|
|
@@ -6815,7 +6818,7 @@ function Xn(e) {
|
|
|
6815
6818
|
for (let x = f.length - 1; x >= 0; x--) {
|
|
6816
6819
|
const k = f[x];
|
|
6817
6820
|
if (k.fixed !== "right") continue;
|
|
6818
|
-
const C =
|
|
6821
|
+
const C = To(k, x), T = typeof k.width == "number" ? k.width : parseInt(String(k.width) || "0", 10);
|
|
6819
6822
|
u.set(C, {
|
|
6820
6823
|
right: h,
|
|
6821
6824
|
isFirstRight: x === b
|
|
@@ -6825,7 +6828,7 @@ function Xn(e) {
|
|
|
6825
6828
|
});
|
|
6826
6829
|
return {
|
|
6827
6830
|
headerWrapRef: t,
|
|
6828
|
-
bodyWrapRef:
|
|
6831
|
+
bodyWrapRef: o,
|
|
6829
6832
|
scrollState: a,
|
|
6830
6833
|
handleBodyScroll: n,
|
|
6831
6834
|
fixedOffsets: v,
|
|
@@ -6835,18 +6838,18 @@ function Xn(e) {
|
|
|
6835
6838
|
}
|
|
6836
6839
|
function Un(e) {
|
|
6837
6840
|
const t = M([]);
|
|
6838
|
-
let
|
|
6841
|
+
let o = !1;
|
|
6839
6842
|
ae(
|
|
6840
6843
|
() => e.expandable(),
|
|
6841
6844
|
(n) => {
|
|
6842
|
-
|
|
6845
|
+
o || !n || (o = !0, n.defaultExpandAllRows ? t.value = e.data().map((i, v) => e.getRowKey(i, v)) : n.defaultExpandedRowKeys && (t.value = [...n.defaultExpandedRowKeys]));
|
|
6843
6846
|
},
|
|
6844
6847
|
{ immediate: !0 }
|
|
6845
6848
|
);
|
|
6846
|
-
const
|
|
6849
|
+
const r = S(() => e.expandable()?.expandedRowKeys !== void 0), l = S(() => {
|
|
6847
6850
|
const n = e.expandable();
|
|
6848
6851
|
if (!n) return /* @__PURE__ */ new Set();
|
|
6849
|
-
const i =
|
|
6852
|
+
const i = r.value ? n.expandedRowKeys : t.value;
|
|
6850
6853
|
return new Set(i);
|
|
6851
6854
|
});
|
|
6852
6855
|
function a(n) {
|
|
@@ -6856,7 +6859,7 @@ function Un(e) {
|
|
|
6856
6859
|
const v = e.expandable();
|
|
6857
6860
|
if (!v) return;
|
|
6858
6861
|
const f = e.getRowKey(n, i), u = !a(f);
|
|
6859
|
-
|
|
6862
|
+
r.value || (u ? t.value = [...t.value, f] : t.value = t.value.filter((m) => m !== f)), v.onExpand?.(u, n);
|
|
6860
6863
|
const c = u ? [...l.value, f] : [...l.value].filter((m) => m !== f);
|
|
6861
6864
|
v.onExpandedRowsChange?.(c);
|
|
6862
6865
|
}
|
|
@@ -6867,25 +6870,25 @@ function Un(e) {
|
|
|
6867
6870
|
};
|
|
6868
6871
|
}
|
|
6869
6872
|
function Zn(e) {
|
|
6870
|
-
const t = ft({}),
|
|
6871
|
-
let
|
|
6873
|
+
const t = ft({}), o = M(!1);
|
|
6874
|
+
let r = null, l = "", a = 0, s = 0;
|
|
6872
6875
|
function n(u) {
|
|
6873
|
-
if (!
|
|
6876
|
+
if (!r) return;
|
|
6874
6877
|
const c = u.clientX - a;
|
|
6875
6878
|
let m = s + c;
|
|
6876
|
-
const h =
|
|
6879
|
+
const h = r.minWidth ?? 50, b = r.maxWidth;
|
|
6877
6880
|
m = Math.max(h, m), b !== void 0 && (m = Math.min(b, m)), t[l] = m;
|
|
6878
6881
|
}
|
|
6879
6882
|
function i(u) {
|
|
6880
|
-
if (!
|
|
6881
|
-
const c =
|
|
6883
|
+
if (!r) return;
|
|
6884
|
+
const c = r, m = t[l];
|
|
6882
6885
|
v(), e.onResizeColumn?.(c, m);
|
|
6883
6886
|
}
|
|
6884
6887
|
function v() {
|
|
6885
|
-
document.removeEventListener("pointermove", n), document.removeEventListener("pointerup", i), document.body.style.cursor = "", document.body.style.userSelect = "",
|
|
6888
|
+
document.removeEventListener("pointermove", n), document.removeEventListener("pointerup", i), document.body.style.cursor = "", document.body.style.userSelect = "", o.value = !1, r = null;
|
|
6886
6889
|
}
|
|
6887
6890
|
function f(u, c, m) {
|
|
6888
|
-
m.preventDefault(), m.stopPropagation(),
|
|
6891
|
+
m.preventDefault(), m.stopPropagation(), r = u;
|
|
6889
6892
|
const h = be(u) ?? String(c);
|
|
6890
6893
|
l = String(h), a = m.clientX;
|
|
6891
6894
|
const b = t[l];
|
|
@@ -6895,12 +6898,12 @@ function Zn(e) {
|
|
|
6895
6898
|
const x = u.width;
|
|
6896
6899
|
s = typeof x == "number" ? x : parseInt(String(x) || "100", 10);
|
|
6897
6900
|
}
|
|
6898
|
-
|
|
6901
|
+
o.value = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("pointermove", n), document.addEventListener("pointerup", i);
|
|
6899
6902
|
}
|
|
6900
6903
|
return $e(v), {
|
|
6901
6904
|
columnWidths: t,
|
|
6902
6905
|
startResize: f,
|
|
6903
|
-
isResizing:
|
|
6906
|
+
isResizing: o
|
|
6904
6907
|
};
|
|
6905
6908
|
}
|
|
6906
6909
|
const Jn = {
|
|
@@ -6909,17 +6912,17 @@ const Jn = {
|
|
|
6909
6912
|
lg: 55
|
|
6910
6913
|
};
|
|
6911
6914
|
function Qn(e) {
|
|
6912
|
-
const t = S(() => !!e.virtual() && !!e.scrollY()),
|
|
6915
|
+
const t = S(() => !!e.virtual() && !!e.scrollY()), o = S(() => {
|
|
6913
6916
|
const l = e.size() ?? "md";
|
|
6914
6917
|
return Jn[l] ?? 47;
|
|
6915
|
-
}),
|
|
6918
|
+
}), r = S(() => {
|
|
6916
6919
|
const l = e.scrollY();
|
|
6917
6920
|
return typeof l == "number" ? l : typeof l == "string" && parseInt(l, 10) || 400;
|
|
6918
6921
|
});
|
|
6919
|
-
return { enabled: t, itemHeight:
|
|
6922
|
+
return { enabled: t, itemHeight: o, listHeight: r };
|
|
6920
6923
|
}
|
|
6921
6924
|
function ea(e) {
|
|
6922
|
-
const t = S(() => e.childrenColumnName?.() ?? "children"),
|
|
6925
|
+
const t = S(() => e.childrenColumnName?.() ?? "children"), o = S(() => e.indentSize?.() ?? 15), r = S(() => {
|
|
6923
6926
|
const f = t.value;
|
|
6924
6927
|
return e.data().some(
|
|
6925
6928
|
(u) => Array.isArray(u[f]) && u[f].length > 0
|
|
@@ -6970,7 +6973,7 @@ function ea(e) {
|
|
|
6970
6973
|
return {
|
|
6971
6974
|
flattenData: S(() => {
|
|
6972
6975
|
const f = e.data();
|
|
6973
|
-
if (!
|
|
6976
|
+
if (!r.value)
|
|
6974
6977
|
return f.map((b) => ({
|
|
6975
6978
|
record: b,
|
|
6976
6979
|
level: 0,
|
|
@@ -6992,11 +6995,11 @@ function ea(e) {
|
|
|
6992
6995
|
}
|
|
6993
6996
|
return h(f, 0), c;
|
|
6994
6997
|
}),
|
|
6995
|
-
isTreeData:
|
|
6998
|
+
isTreeData: r,
|
|
6996
6999
|
toggleTreeExpand: i,
|
|
6997
7000
|
isTreeExpanded: n,
|
|
6998
7001
|
expandedKeys: l,
|
|
6999
|
-
indentSize:
|
|
7002
|
+
indentSize: o
|
|
7000
7003
|
};
|
|
7001
7004
|
}
|
|
7002
7005
|
const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */ J({
|
|
@@ -7015,7 +7018,7 @@ const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */
|
|
|
7015
7018
|
d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"
|
|
7016
7019
|
}, null)]);
|
|
7017
7020
|
}
|
|
7018
|
-
}),
|
|
7021
|
+
}), sr = /* @__PURE__ */ J({
|
|
7019
7022
|
name: "CaretDownIcon",
|
|
7020
7023
|
inheritAttrs: !0,
|
|
7021
7024
|
setup(e, {
|
|
@@ -7031,7 +7034,7 @@ const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */
|
|
|
7031
7034
|
d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"
|
|
7032
7035
|
}, null)]);
|
|
7033
7036
|
}
|
|
7034
|
-
}),
|
|
7037
|
+
}), oa = /* @__PURE__ */ J({
|
|
7035
7038
|
name: "FilterFilledIcon",
|
|
7036
7039
|
inheritAttrs: !0,
|
|
7037
7040
|
setup(e, {
|
|
@@ -7047,7 +7050,7 @@ const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */
|
|
|
7047
7050
|
d: "M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"
|
|
7048
7051
|
}, null)]);
|
|
7049
7052
|
}
|
|
7050
|
-
}),
|
|
7053
|
+
}), ra = /* @__PURE__ */ J({
|
|
7051
7054
|
name: "SearchIcon",
|
|
7052
7055
|
inheritAttrs: !0,
|
|
7053
7056
|
setup(e, {
|
|
@@ -7203,8 +7206,8 @@ const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */
|
|
|
7203
7206
|
}), ut = {
|
|
7204
7207
|
antdv: {
|
|
7205
7208
|
sortAscIcon: ta,
|
|
7206
|
-
sortDescIcon:
|
|
7207
|
-
filterIcon:
|
|
7209
|
+
sortDescIcon: sr,
|
|
7210
|
+
filterIcon: oa,
|
|
7208
7211
|
filterSingleSelectMode: "radio",
|
|
7209
7212
|
showSorterTooltip: !0,
|
|
7210
7213
|
emptyIcon: sa,
|
|
@@ -7222,11 +7225,11 @@ const ge = /* @__PURE__ */ Symbol("vtable-table-context"), ta = /* @__PURE__ */
|
|
|
7222
7225
|
function ua(e = "antdv") {
|
|
7223
7226
|
return ut[e] ?? ut.antdv;
|
|
7224
7227
|
}
|
|
7225
|
-
const
|
|
7228
|
+
const ir = "SELECT_ALL", cr = "SELECT_INVERT", dr = "SELECT_NONE";
|
|
7226
7229
|
function Et(e) {
|
|
7227
|
-
return e == null || typeof e == "boolean" ? !1 : Array.isArray(e) ? e.some(Et) : typeof e == "object" && "type" in e ? e.type ===
|
|
7230
|
+
return e == null || typeof e == "boolean" ? !1 : Array.isArray(e) ? e.some(Et) : typeof e == "object" && "type" in e ? e.type === Nr ? !1 : e.type === $t ? Et(e.children) : !0 : !0;
|
|
7228
7231
|
}
|
|
7229
|
-
function
|
|
7232
|
+
function ur(e) {
|
|
7230
7233
|
return Array.isArray(e) ? e.some(Et) ? e : null : Et(e) ? e : null;
|
|
7231
7234
|
}
|
|
7232
7235
|
function fa(e) {
|
|
@@ -7236,20 +7239,20 @@ function fa(e) {
|
|
|
7236
7239
|
return String(e);
|
|
7237
7240
|
}
|
|
7238
7241
|
}
|
|
7239
|
-
function
|
|
7242
|
+
function fr(e) {
|
|
7240
7243
|
return !!e && typeof e == "object" && !Array.isArray(e) && !vt(e);
|
|
7241
7244
|
}
|
|
7242
7245
|
function dt(e, t) {
|
|
7243
|
-
const
|
|
7244
|
-
if (typeof
|
|
7245
|
-
return
|
|
7246
|
+
const o = e?.[t] ?? e?.[t.toLowerCase()];
|
|
7247
|
+
if (typeof o == "number" && Number.isFinite(o))
|
|
7248
|
+
return o;
|
|
7246
7249
|
}
|
|
7247
7250
|
function xt(e) {
|
|
7248
7251
|
if (!e) return {};
|
|
7249
7252
|
const {
|
|
7250
7253
|
class: t,
|
|
7251
|
-
className:
|
|
7252
|
-
style:
|
|
7254
|
+
className: o,
|
|
7255
|
+
style: r,
|
|
7253
7256
|
colSpan: l,
|
|
7254
7257
|
rowSpan: a,
|
|
7255
7258
|
colspan: s,
|
|
@@ -7258,32 +7261,32 @@ function xt(e) {
|
|
|
7258
7261
|
} = e;
|
|
7259
7262
|
return i;
|
|
7260
7263
|
}
|
|
7261
|
-
function
|
|
7262
|
-
const { text: t, record:
|
|
7264
|
+
function vr(e) {
|
|
7265
|
+
const { text: t, record: o, rowIndex: r, column: l, bodyCell: a, transformCellText: s } = e, n = l.customCell?.(o, r, l), i = s ? s({
|
|
7263
7266
|
text: t,
|
|
7264
7267
|
column: l,
|
|
7265
|
-
record:
|
|
7266
|
-
index:
|
|
7268
|
+
record: o,
|
|
7269
|
+
index: r
|
|
7267
7270
|
}) : t;
|
|
7268
7271
|
let v = i ?? "", f;
|
|
7269
7272
|
if (l.customRender) {
|
|
7270
7273
|
const m = l.customRender({
|
|
7271
7274
|
text: i,
|
|
7272
7275
|
value: i,
|
|
7273
|
-
record:
|
|
7274
|
-
index:
|
|
7275
|
-
renderIndex:
|
|
7276
|
+
record: o,
|
|
7277
|
+
index: r,
|
|
7278
|
+
renderIndex: r,
|
|
7276
7279
|
column: l
|
|
7277
7280
|
});
|
|
7278
|
-
|
|
7281
|
+
fr(m) ? (v = m.children, f = m.props) : v = m;
|
|
7279
7282
|
} else if (a) {
|
|
7280
7283
|
const m = a({
|
|
7281
7284
|
text: i,
|
|
7282
|
-
record:
|
|
7283
|
-
index:
|
|
7285
|
+
record: o,
|
|
7286
|
+
index: r,
|
|
7284
7287
|
column: l
|
|
7285
7288
|
});
|
|
7286
|
-
|
|
7289
|
+
ur(m) !== null && (v = m);
|
|
7287
7290
|
}
|
|
7288
7291
|
const u = dt(f, "colSpan") ?? dt(n, "colSpan"), c = dt(f, "rowSpan") ?? dt(n, "rowSpan");
|
|
7289
7292
|
return {
|
|
@@ -7312,9 +7315,9 @@ const va = /* @__PURE__ */ J({
|
|
|
7312
7315
|
return () => d("span", {
|
|
7313
7316
|
class: [t.subThemeSlots?.value.sortButton, e.sortButtonClass],
|
|
7314
7317
|
"aria-hidden": "true"
|
|
7315
|
-
}, [
|
|
7318
|
+
}, [rt((t.presetConfig?.value ?? ut.antdv).sortAscIcon, {
|
|
7316
7319
|
class: e.sortOrder === "ascend" ? "text-[color:var(--color-primary)]" : "text-[color:var(--color-sorter-icon)]"
|
|
7317
|
-
}),
|
|
7320
|
+
}), rt((t.presetConfig?.value ?? ut.antdv).sortDescIcon, {
|
|
7318
7321
|
class: [t.subThemeSlots?.value.sortIconDown, e.sortOrder === "descend" ? "text-[color:var(--color-primary)]" : "text-[color:var(--color-sorter-icon)]"]
|
|
7319
7322
|
})]);
|
|
7320
7323
|
}
|
|
@@ -7330,27 +7333,27 @@ const va = /* @__PURE__ */ J({
|
|
|
7330
7333
|
setup(e, {
|
|
7331
7334
|
emit: t
|
|
7332
7335
|
}) {
|
|
7333
|
-
const
|
|
7334
|
-
function
|
|
7336
|
+
const o = he(ge, {});
|
|
7337
|
+
function r(l) {
|
|
7335
7338
|
l.stopPropagation(), t("click", l);
|
|
7336
7339
|
}
|
|
7337
7340
|
return () => d("span", {
|
|
7338
|
-
class: [
|
|
7339
|
-
onClick:
|
|
7341
|
+
class: [o.subThemeSlots?.value.filterIcon, e.active ? "text-[color:var(--color-primary)]" : "text-[color:var(--color-filter-icon)]"],
|
|
7342
|
+
onClick: r,
|
|
7340
7343
|
role: "button",
|
|
7341
|
-
"aria-label":
|
|
7342
|
-
}, [
|
|
7344
|
+
"aria-label": o.locale?.value.header.filterTriggerAriaLabel ?? "筛选"
|
|
7345
|
+
}, [rt((o.presetConfig?.value ?? ut.antdv).filterIcon)]);
|
|
7343
7346
|
}
|
|
7344
7347
|
});
|
|
7345
7348
|
function wt(e) {
|
|
7346
7349
|
const t = [];
|
|
7347
|
-
for (const
|
|
7348
|
-
t.push(
|
|
7350
|
+
for (const o of e)
|
|
7351
|
+
t.push(o.value), o.children?.length && t.push(...wt(o.children));
|
|
7349
7352
|
return t;
|
|
7350
7353
|
}
|
|
7351
|
-
function
|
|
7352
|
-
for (const
|
|
7353
|
-
|
|
7354
|
+
function mr(e, t) {
|
|
7355
|
+
for (const o of e)
|
|
7356
|
+
o.children?.length && (mr(o.children, t), o.children.every((l) => t.has(l.value)) ? t.add(o.value) : t.delete(o.value));
|
|
7354
7357
|
}
|
|
7355
7358
|
const ha = /* @__PURE__ */ J({
|
|
7356
7359
|
name: "FilterDropdown",
|
|
@@ -7396,7 +7399,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7396
7399
|
setup(e, {
|
|
7397
7400
|
emit: t
|
|
7398
7401
|
}) {
|
|
7399
|
-
const
|
|
7402
|
+
const o = he(ge, {}), r = M([...e.selectedKeys]), l = M(null), a = M(""), s = M(/* @__PURE__ */ new Set());
|
|
7400
7403
|
Xe(() => {
|
|
7401
7404
|
if (e.expandedKeys)
|
|
7402
7405
|
s.value = new Set(e.expandedKeys);
|
|
@@ -7443,7 +7446,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7443
7446
|
y.style.cssText = "";
|
|
7444
7447
|
}
|
|
7445
7448
|
ae(() => e.selectedKeys, (y) => {
|
|
7446
|
-
|
|
7449
|
+
r.value = [...y];
|
|
7447
7450
|
});
|
|
7448
7451
|
function b(y, R) {
|
|
7449
7452
|
return typeof e.filterSearch == "function" ? e.filterSearch(R, y) : y.text.toLowerCase().includes(R.toLowerCase());
|
|
@@ -7463,42 +7466,42 @@ const ha = /* @__PURE__ */ J({
|
|
|
7463
7466
|
} else b(_, R) && I.push(_);
|
|
7464
7467
|
return I;
|
|
7465
7468
|
}
|
|
7466
|
-
const C = S(() => !e.filterSearch || !a.value ? e.filters : e.filterMode === "tree" ? k(e.filters, a.value) : x(e.filters, a.value)), T = S(() =>
|
|
7469
|
+
const C = S(() => !e.filterSearch || !a.value ? e.filters : e.filterMode === "tree" ? k(e.filters, a.value) : x(e.filters, a.value)), T = S(() => o.presetConfig?.value.filterSingleSelectMode === "highlight"), p = S(() => o.locale?.value.filterDropdown), w = S(() => C.value.length > 0), D = S(() => !!e.filterSearch && a.value.trim().length > 0 && !w.value);
|
|
7467
7470
|
function E(y) {
|
|
7468
|
-
return
|
|
7471
|
+
return r.value.includes(y);
|
|
7469
7472
|
}
|
|
7470
7473
|
function z(y, R) {
|
|
7471
7474
|
if (e.multiple) {
|
|
7472
7475
|
if (e.filterMode === "tree" && R) {
|
|
7473
|
-
const I = new Set(
|
|
7476
|
+
const I = new Set(r.value);
|
|
7474
7477
|
if (!!R.children?.length) {
|
|
7475
7478
|
const P = wt([R]);
|
|
7476
7479
|
P.every((q) => I.has(q)) ? P.forEach((q) => I.delete(q)) : P.forEach((q) => I.add(q));
|
|
7477
7480
|
} else
|
|
7478
7481
|
I.has(y) ? I.delete(y) : I.add(y);
|
|
7479
|
-
|
|
7482
|
+
mr(e.filters, I), r.value = Array.from(I);
|
|
7480
7483
|
} else {
|
|
7481
|
-
const I =
|
|
7482
|
-
I > -1 ?
|
|
7484
|
+
const I = r.value.indexOf(y);
|
|
7485
|
+
I > -1 ? r.value.splice(I, 1) : r.value.push(y);
|
|
7483
7486
|
}
|
|
7484
7487
|
return;
|
|
7485
7488
|
}
|
|
7486
|
-
E(y) || (
|
|
7489
|
+
E(y) || (r.value = [y]);
|
|
7487
7490
|
}
|
|
7488
7491
|
function L() {
|
|
7489
|
-
t("confirm", [...
|
|
7492
|
+
t("confirm", [...r.value]);
|
|
7490
7493
|
}
|
|
7491
7494
|
function $() {
|
|
7492
|
-
|
|
7495
|
+
r.value = [], t("reset");
|
|
7493
7496
|
}
|
|
7494
7497
|
const G = S(() => e.filterMode === "tree" && e.multiple), U = S(() => G.value ? wt(C.value) : []), Q = S(() => {
|
|
7495
7498
|
const y = U.value.length;
|
|
7496
7499
|
if (y === 0) return "none";
|
|
7497
|
-
const R = U.value.filter((I) =>
|
|
7500
|
+
const R = U.value.filter((I) => r.value.includes(I)).length;
|
|
7498
7501
|
return R === 0 ? "none" : R === y ? "all" : "partial";
|
|
7499
7502
|
});
|
|
7500
7503
|
function K() {
|
|
7501
|
-
Q.value === "all" ?
|
|
7504
|
+
Q.value === "all" ? r.value = [] : r.value = [...U.value];
|
|
7502
7505
|
}
|
|
7503
7506
|
function N(y) {
|
|
7504
7507
|
e.visible && l.value && !l.value.contains(y.target) && t("close");
|
|
@@ -7517,7 +7520,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7517
7520
|
return e.multiple ? d(Kt, {
|
|
7518
7521
|
checked: y,
|
|
7519
7522
|
indeterminate: R
|
|
7520
|
-
}, null) : T.value ? null : d(
|
|
7523
|
+
}, null) : T.value ? null : d(Uo, {
|
|
7521
7524
|
checked: y
|
|
7522
7525
|
}, null);
|
|
7523
7526
|
}
|
|
@@ -7525,19 +7528,19 @@ const ha = /* @__PURE__ */ J({
|
|
|
7525
7528
|
const I = E(y.value), _ = !!y.children?.length, P = i(y.value), le = !e.multiple && T.value;
|
|
7526
7529
|
let q = !1;
|
|
7527
7530
|
if (G.value && _) {
|
|
7528
|
-
const de = wt(y.children).some((Ie) =>
|
|
7531
|
+
const de = wt(y.children).some((Ie) => r.value.includes(Ie));
|
|
7529
7532
|
q = !I && de;
|
|
7530
7533
|
}
|
|
7531
7534
|
const Z = () => _ ? d("span", {
|
|
7532
|
-
class: [
|
|
7535
|
+
class: [o.subThemeSlots?.value.filterDropdownSwitcher, P ? o.subThemeSlots?.value.filterDropdownSwitcherExpanded : o.subThemeSlots?.value.filterDropdownSwitcherCollapsed],
|
|
7533
7536
|
onClick: (ee) => {
|
|
7534
7537
|
ee.stopPropagation(), n(y.value);
|
|
7535
7538
|
},
|
|
7536
7539
|
"aria-label": P ? "Collapse" : "Expand"
|
|
7537
|
-
}, [d(
|
|
7538
|
-
class: [
|
|
7540
|
+
}, [d(sr, null, null)]) : d("span", {
|
|
7541
|
+
class: [o.subThemeSlots?.value.filterDropdownSwitcher, o.subThemeSlots?.value.filterDropdownSwitcherNoop],
|
|
7539
7542
|
"aria-hidden": "true"
|
|
7540
|
-
}, null), se = e.filterMode === "tree", pe = se ?
|
|
7543
|
+
}, null), se = e.filterMode === "tree", pe = se ? o.subThemeSlots?.value.filterDropdownTreeItem : o.subThemeSlots?.value.filterDropdownItem, ue = se ? o.subThemeSlots?.value.filterDropdownTreeContentWrapper : o.subThemeSlots?.value.filterDropdownContentWrapper, O = se ? {
|
|
7541
7544
|
paddingLeft: `calc(var(--vtg-table-filter-tree-indent-size, 24px) * ${R})`
|
|
7542
7545
|
} : void 0;
|
|
7543
7546
|
return se ? d("li", {
|
|
@@ -7548,7 +7551,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7548
7551
|
}, [d(Z, null, null), d("span", {
|
|
7549
7552
|
class: "mt-1 mr-2 shrink-0"
|
|
7550
7553
|
}, [Y(I, q)]), d("div", {
|
|
7551
|
-
class: [ue, I ?
|
|
7554
|
+
class: [ue, I ? o.subThemeSlots?.value.filterDropdownTreeItemSelected : o.subThemeSlots?.value.filterDropdownItemHover]
|
|
7552
7555
|
}, [d("span", {
|
|
7553
7556
|
class: "text-[color:var(--color-on-surface)]"
|
|
7554
7557
|
}, [y.text])])]) : d("li", {
|
|
@@ -7557,7 +7560,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7557
7560
|
"aria-checked": le ? I : void 0,
|
|
7558
7561
|
class: [pe, !e.multiple && T.value && "gap-0"]
|
|
7559
7562
|
}, [d("div", {
|
|
7560
|
-
class: [ue, I ?
|
|
7563
|
+
class: [ue, I ? o.subThemeSlots?.value.filterDropdownItemSelected : o.subThemeSlots?.value.filterDropdownItemHover],
|
|
7561
7564
|
onClick: () => z(y.value, y)
|
|
7562
7565
|
}, [Y(I, q), d("span", {
|
|
7563
7566
|
class: "text-[color:var(--color-on-surface)]"
|
|
@@ -7584,7 +7587,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7584
7587
|
return () => {
|
|
7585
7588
|
const {
|
|
7586
7589
|
anchorRect: y
|
|
7587
|
-
} = e, R = 150, I = e.popupContainer, _ = e.filterMode === "tree", P = _ ?
|
|
7590
|
+
} = e, R = 150, I = e.popupContainer, _ = e.filterMode === "tree", P = _ ? o.subThemeSlots?.value.filterDropdownTreeList : o.subThemeSlots?.value.filterDropdownList, le = _ ? o.subThemeSlots?.value.filterDropdownTreeContentWrapper : o.subThemeSlots?.value.filterDropdownContentWrapper, q = {
|
|
7588
7591
|
zIndex: "1050"
|
|
7589
7592
|
};
|
|
7590
7593
|
if (typeof I == "string" || typeof document < "u" && I === document.body) {
|
|
@@ -7602,28 +7605,28 @@ const ha = /* @__PURE__ */ J({
|
|
|
7602
7605
|
}, {
|
|
7603
7606
|
default: () => [e.visible && d("div", {
|
|
7604
7607
|
ref: l,
|
|
7605
|
-
class:
|
|
7608
|
+
class: o.subThemeSlots?.value.filterDropdown,
|
|
7606
7609
|
style: q
|
|
7607
7610
|
}, [e.filterSearch && d("div", {
|
|
7608
|
-
class:
|
|
7611
|
+
class: o.subThemeSlots?.value.filterDropdownSearch
|
|
7609
7612
|
}, [d("div", {
|
|
7610
|
-
class:
|
|
7613
|
+
class: o.subThemeSlots?.value.filterDropdownSearchField
|
|
7611
7614
|
}, [d("span", {
|
|
7612
|
-
class:
|
|
7615
|
+
class: o.subThemeSlots?.value.filterDropdownSearchIcon,
|
|
7613
7616
|
"aria-hidden": "true"
|
|
7614
|
-
}, [d(
|
|
7617
|
+
}, [d(ra, null, null)]), d(Zl, {
|
|
7615
7618
|
bare: !0,
|
|
7616
7619
|
value: a.value,
|
|
7617
7620
|
placeholder: p.value?.searchPlaceholder ?? "在筛选项中搜索",
|
|
7618
|
-
inputClass:
|
|
7621
|
+
inputClass: o.subThemeSlots?.value.filterDropdownSearchInput,
|
|
7619
7622
|
"onUpdate:value": (Z) => {
|
|
7620
7623
|
a.value = Z;
|
|
7621
7624
|
}
|
|
7622
7625
|
}, null)])]), _ ? d("div", {
|
|
7623
|
-
class:
|
|
7626
|
+
class: o.subThemeSlots?.value.filterDropdownTreeWrapper
|
|
7624
7627
|
}, [G.value && d("div", {
|
|
7625
7628
|
key: "__vtg_select_all__",
|
|
7626
|
-
class:
|
|
7629
|
+
class: o.subThemeSlots?.value.filterDropdownTreeCheckAll,
|
|
7627
7630
|
onClick: K
|
|
7628
7631
|
}, [d("span", {
|
|
7629
7632
|
class: "mt-1 mr-2 shrink-0"
|
|
@@ -7631,7 +7634,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7631
7634
|
checked: Q.value === "all",
|
|
7632
7635
|
indeterminate: Q.value === "partial"
|
|
7633
7636
|
}, null)]), d("div", {
|
|
7634
|
-
class: [le, Q.value === "all" ?
|
|
7637
|
+
class: [le, Q.value === "all" ? o.subThemeSlots?.value.filterDropdownTreeItemSelected : o.subThemeSlots?.value.filterDropdownItemHover]
|
|
7635
7638
|
}, [d("span", {
|
|
7636
7639
|
class: "text-[color:var(--color-on-surface)]"
|
|
7637
7640
|
}, [p.value?.selectAllText ?? "全选"])])]), d(It, {
|
|
@@ -7640,7 +7643,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7640
7643
|
default: () => [d("ul", {
|
|
7641
7644
|
class: P
|
|
7642
7645
|
}, [A(C.value), D.value && d("li", {
|
|
7643
|
-
class:
|
|
7646
|
+
class: o.subThemeSlots?.value.filterDropdownListEmpty
|
|
7644
7647
|
}, [p.value?.emptyText ?? "Not Found"])])]
|
|
7645
7648
|
})]) : d(It, {
|
|
7646
7649
|
maxHeight: "264px"
|
|
@@ -7649,18 +7652,18 @@ const ha = /* @__PURE__ */ J({
|
|
|
7649
7652
|
role: !e.multiple && T.value ? "radiogroup" : void 0,
|
|
7650
7653
|
class: P
|
|
7651
7654
|
}, [A(C.value), D.value && d("li", {
|
|
7652
|
-
class:
|
|
7655
|
+
class: o.subThemeSlots?.value.filterDropdownListEmpty
|
|
7653
7656
|
}, [p.value?.emptyText ?? "Not Found"])])]
|
|
7654
7657
|
}), d("div", {
|
|
7655
|
-
class:
|
|
7656
|
-
}, [d(
|
|
7658
|
+
class: o.subThemeSlots?.value.filterDropdownActions
|
|
7659
|
+
}, [d(io, {
|
|
7657
7660
|
type: "link",
|
|
7658
7661
|
size: "sm",
|
|
7659
|
-
disabled:
|
|
7662
|
+
disabled: r.value.length === 0,
|
|
7660
7663
|
onClick: $
|
|
7661
7664
|
}, {
|
|
7662
7665
|
default: () => [p.value?.resetText ?? "重置"]
|
|
7663
|
-
}), d(
|
|
7666
|
+
}), d(io, {
|
|
7664
7667
|
type: "primary",
|
|
7665
7668
|
size: "sm",
|
|
7666
7669
|
onClick: L
|
|
@@ -7671,7 +7674,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7671
7674
|
});
|
|
7672
7675
|
};
|
|
7673
7676
|
}
|
|
7674
|
-
}),
|
|
7677
|
+
}), hr = /* @__PURE__ */ J({
|
|
7675
7678
|
name: "SelectionCheckbox",
|
|
7676
7679
|
props: {
|
|
7677
7680
|
checked: {
|
|
@@ -7695,7 +7698,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7695
7698
|
checked: e.checked,
|
|
7696
7699
|
indeterminate: e.indeterminate,
|
|
7697
7700
|
disabled: e.disabled,
|
|
7698
|
-
onChange: (
|
|
7701
|
+
onChange: (o, r) => t("change", o, r)
|
|
7699
7702
|
}, null);
|
|
7700
7703
|
}
|
|
7701
7704
|
}), pa = /* @__PURE__ */ J({
|
|
@@ -7722,9 +7725,9 @@ const ha = /* @__PURE__ */ J({
|
|
|
7722
7725
|
setup(e, {
|
|
7723
7726
|
emit: t
|
|
7724
7727
|
}) {
|
|
7725
|
-
const
|
|
7728
|
+
const o = he(ge, {}), r = M(null);
|
|
7726
7729
|
function l(s) {
|
|
7727
|
-
e.visible &&
|
|
7730
|
+
e.visible && r.value && !r.value.contains(s.target) && t("close");
|
|
7728
7731
|
}
|
|
7729
7732
|
Xe(() => {
|
|
7730
7733
|
Ye(() => {
|
|
@@ -7734,7 +7737,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7734
7737
|
document.removeEventListener("mousedown", l);
|
|
7735
7738
|
});
|
|
7736
7739
|
function a(s) {
|
|
7737
|
-
const n =
|
|
7740
|
+
const n = o.getChangeableRowKeys?.() ?? [];
|
|
7738
7741
|
s.onSelect?.(n), t("select", s.key), t("close");
|
|
7739
7742
|
}
|
|
7740
7743
|
return () => {
|
|
@@ -7757,8 +7760,8 @@ const ha = /* @__PURE__ */ J({
|
|
|
7757
7760
|
name: "vtg-dropdown"
|
|
7758
7761
|
}, {
|
|
7759
7762
|
default: () => [e.visible && d("div", {
|
|
7760
|
-
ref:
|
|
7761
|
-
class:
|
|
7763
|
+
ref: r,
|
|
7764
|
+
class: o.subThemeSlots?.value.selectionDropdown,
|
|
7762
7765
|
style: v,
|
|
7763
7766
|
onMouseenter: () => t("mouseenter"),
|
|
7764
7767
|
onMouseleave: () => t("mouseleave")
|
|
@@ -7766,7 +7769,7 @@ const ha = /* @__PURE__ */ J({
|
|
|
7766
7769
|
class: "m-0 list-none p-0"
|
|
7767
7770
|
}, [e.items.map((f) => d("li", {
|
|
7768
7771
|
key: f.key,
|
|
7769
|
-
class:
|
|
7772
|
+
class: o.subThemeSlots?.value.selectionDropdownItem,
|
|
7770
7773
|
onClick: () => a(f)
|
|
7771
7774
|
}, [f.text]))])])]
|
|
7772
7775
|
})]
|
|
@@ -7787,12 +7790,12 @@ const ha = /* @__PURE__ */ J({
|
|
|
7787
7790
|
},
|
|
7788
7791
|
setup(e) {
|
|
7789
7792
|
const t = he(ge, {});
|
|
7790
|
-
function r
|
|
7791
|
-
t.startResize?.(e.column, e.colIndex,
|
|
7793
|
+
function o(r) {
|
|
7794
|
+
t.startResize?.(e.column, e.colIndex, r);
|
|
7792
7795
|
}
|
|
7793
7796
|
return () => d("span", {
|
|
7794
|
-
class: ["absolute right-0 top-0 bottom-0 w-[5px] z-[3]", "cursor-col-resize select-none", "after:absolute after:right-[2px] after:top-[25%] after:bottom-[25%] after:w-px", "after:bg-transparent hover:after:bg-[var(--color-primary,#1677ff)]", "after:transition-colors", t.subThemeSlots?.value.resizeHandle].join(" "),
|
|
7795
|
-
onPointerdown:
|
|
7797
|
+
class: ["absolute right-0 top-0 bottom-0 w-[5px] z-[3]", "cursor-col-resize select-none", "after:absolute after:right-[2px] after:top-[25%] after:bottom-[25%] after:w-px", "after:bg-transparent hover:after:bg-[color:var(--color-primary,#1677ff)]", "after:transition-colors", t.subThemeSlots?.value.resizeHandle].join(" "),
|
|
7798
|
+
onPointerdown: o
|
|
7796
7799
|
}, null);
|
|
7797
7800
|
}
|
|
7798
7801
|
});
|
|
@@ -7806,17 +7809,17 @@ function ya(e) {
|
|
|
7806
7809
|
function Bt(e, t) {
|
|
7807
7810
|
return !t || typeof document > "u" ? "body" : e.getPopupContainer?.(t) ?? document.body;
|
|
7808
7811
|
}
|
|
7809
|
-
function xa(e, t,
|
|
7810
|
-
const
|
|
7812
|
+
function xa(e, t, o) {
|
|
7813
|
+
const r = typeof window > "u" ? 0 : window.innerWidth;
|
|
7811
7814
|
if (typeof t == "string" || typeof document < "u" && t === document.body) {
|
|
7812
|
-
const n = e.left +
|
|
7815
|
+
const n = e.left + o > r, i = {
|
|
7813
7816
|
position: "fixed",
|
|
7814
7817
|
top: `${e.bottom + 4}px`,
|
|
7815
7818
|
zIndex: "1050"
|
|
7816
7819
|
};
|
|
7817
|
-
return n ? i.right = `${
|
|
7820
|
+
return n ? i.right = `${r - e.right}px` : i.left = `${e.left}px`, i;
|
|
7818
7821
|
}
|
|
7819
|
-
const l = t.getBoundingClientRect(), a = e.left - l.left +
|
|
7822
|
+
const l = t.getBoundingClientRect(), a = e.left - l.left + o > t.clientWidth, s = {
|
|
7820
7823
|
position: "absolute",
|
|
7821
7824
|
top: `${e.bottom - l.top + t.scrollTop + 4}px`,
|
|
7822
7825
|
zIndex: "1050"
|
|
@@ -7844,21 +7847,21 @@ const wa = /* @__PURE__ */ J({
|
|
|
7844
7847
|
}
|
|
7845
7848
|
},
|
|
7846
7849
|
setup(e) {
|
|
7847
|
-
const t = he(ge, {}),
|
|
7850
|
+
const t = he(ge, {}), o = S(() => e.cell.isLeaf ? e.cell.column : null), r = S(() => e.cell.column.customHeaderCell?.(e.cell.column, e.index, o.value ?? void 0)), l = S(() => dt(r.value, "colSpan") ?? e.cell.colSpan), a = S(() => e.cell.rowSpan), s = S(() => {
|
|
7848
7851
|
const {
|
|
7849
7852
|
onClick: O,
|
|
7850
7853
|
...ee
|
|
7851
|
-
} = xt(
|
|
7854
|
+
} = xt(r.value);
|
|
7852
7855
|
return ee;
|
|
7853
|
-
}), n = S(() =>
|
|
7854
|
-
const O =
|
|
7856
|
+
}), n = S(() => o.value?.sorter ? t.getSortOrder?.(o.value) ?? null : null), i = S(() => !!o.value?.sorter), v = S(() => !o.value || !i.value ? !1 : o.value.showSorterTooltip ?? t.showSorterTooltip?.value ?? !0), f = S(() => {
|
|
7857
|
+
const O = o.value;
|
|
7855
7858
|
return O ? (O.filters?.length ?? 0) > 0 || !!O.customFilterDropdown || !!O.filterDropdown : !1;
|
|
7856
|
-
}), u = S(() => !
|
|
7857
|
-
const O =
|
|
7859
|
+
}), u = S(() => !o.value || !f.value ? [] : t.getFilteredValue?.(o.value) ?? []), c = S(() => {
|
|
7860
|
+
const O = o.value;
|
|
7858
7861
|
return O ? O.filtered !== void 0 ? O.filtered : u.value.length > 0 : !1;
|
|
7859
|
-
}), m = S(() =>
|
|
7862
|
+
}), m = S(() => o.value?.filterDropdownOpen !== void 0), h = M(!1), b = S(() => m.value ? o.value?.filterDropdownOpen ?? !1 : h.value);
|
|
7860
7863
|
function x(O) {
|
|
7861
|
-
m.value || (h.value = O),
|
|
7864
|
+
m.value || (h.value = O), o.value?.onFilterDropdownOpenChange?.(O);
|
|
7862
7865
|
}
|
|
7863
7866
|
const k = M(null), C = M(null);
|
|
7864
7867
|
function T() {
|
|
@@ -7868,7 +7871,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
7868
7871
|
C.value && !C.value.contains(O.target) && !k.value?.contains(O.target) && x(!1);
|
|
7869
7872
|
}
|
|
7870
7873
|
const w = S(() => {
|
|
7871
|
-
const O =
|
|
7874
|
+
const O = o.value;
|
|
7872
7875
|
return O ? !!O.filterDropdown || !!O.customFilterDropdown && !!t.customFilterDropdown : !1;
|
|
7873
7876
|
});
|
|
7874
7877
|
ae(b, (O) => {
|
|
@@ -7893,10 +7896,10 @@ const wa = /* @__PURE__ */ J({
|
|
|
7893
7896
|
immediate: !0
|
|
7894
7897
|
});
|
|
7895
7898
|
function L(O) {
|
|
7896
|
-
|
|
7899
|
+
o.value && (t.confirmFilter?.(o.value, O), x(!1));
|
|
7897
7900
|
}
|
|
7898
7901
|
function $() {
|
|
7899
|
-
|
|
7902
|
+
o.value && (t.resetFilter?.(o.value), x(!1));
|
|
7900
7903
|
}
|
|
7901
7904
|
function G() {
|
|
7902
7905
|
x(!1);
|
|
@@ -7932,7 +7935,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
7932
7935
|
return !O || ee || e.cell.isLeaf ? "" : "before:hidden border-b-0";
|
|
7933
7936
|
}), F = S(() => {
|
|
7934
7937
|
const O = t.leafColumnCount?.value ?? 0;
|
|
7935
|
-
return O > 0 && e.cell.colEnd < O - 1 ? t.bordered?.value ?? !1 ? "last:border-r last:border-[var(--vtg-table-border-color)]" : "last:before:bg-[var(--vtg-table-header-split-color)]" : "";
|
|
7938
|
+
return O > 0 && e.cell.colEnd < O - 1 ? t.bordered?.value ?? !1 ? "last:border-r last:border-[color:var(--vtg-table-border-color)]" : "last:before:bg-[color:var(--vtg-table-header-split-color)]" : "";
|
|
7936
7939
|
}), Y = S(() => t.getColumnTitle?.(e.cell.column) ?? e.cell.column.title ?? ""), g = S(() => {
|
|
7937
7940
|
if (t.headerCell) {
|
|
7938
7941
|
const O = t.headerCell({
|
|
@@ -7940,20 +7943,20 @@ const wa = /* @__PURE__ */ J({
|
|
|
7940
7943
|
column: e.cell.column,
|
|
7941
7944
|
index: e.index
|
|
7942
7945
|
});
|
|
7943
|
-
if (
|
|
7946
|
+
if (ur(O) !== null)
|
|
7944
7947
|
return O;
|
|
7945
7948
|
}
|
|
7946
7949
|
return Y.value;
|
|
7947
7950
|
}), A = S(() => {
|
|
7948
7951
|
const O = e.cell.column.align ? qt[e.cell.column.align] : "", ee = i.value ? t.subThemeSlots?.value.thSortable : "";
|
|
7949
|
-
return ce(e.thClass, O, ee, N.value, e.cell.column.className,
|
|
7952
|
+
return ce(e.thClass, O, ee, N.value, e.cell.column.className, r.value?.class, r.value?.className, K.value, F.value);
|
|
7950
7953
|
}), y = S(() => {
|
|
7951
7954
|
const O = {};
|
|
7952
|
-
if (
|
|
7953
|
-
const ne = t.columnWidths?.[String(be(
|
|
7955
|
+
if (o.value) {
|
|
7956
|
+
const ne = t.columnWidths?.[String(be(o.value) ?? e.cell.colStart)] ?? o.value.width;
|
|
7954
7957
|
ne && (O.width = typeof ne == "number" ? `${ne}px` : ne);
|
|
7955
7958
|
}
|
|
7956
|
-
const ee =
|
|
7959
|
+
const ee = r.value?.style, de = Q.value;
|
|
7957
7960
|
return {
|
|
7958
7961
|
...O,
|
|
7959
7962
|
...de ?? {},
|
|
@@ -7985,15 +7988,15 @@ const wa = /* @__PURE__ */ J({
|
|
|
7985
7988
|
}
|
|
7986
7989
|
const pe = M(!1);
|
|
7987
7990
|
function ue(O) {
|
|
7988
|
-
const ee =
|
|
7989
|
-
typeof ee == "function" && ee(O),
|
|
7991
|
+
const ee = r.value?.onClick;
|
|
7992
|
+
typeof ee == "function" && ee(O), o.value && i.value && t.toggleSortOrder?.(o.value);
|
|
7990
7993
|
}
|
|
7991
7994
|
return () => {
|
|
7992
7995
|
if (l.value === 0 || a.value === 0)
|
|
7993
7996
|
return null;
|
|
7994
7997
|
const O = l.value !== 1 ? l.value : void 0, ee = a.value !== 1 ? a.value : void 0;
|
|
7995
|
-
if (
|
|
7996
|
-
const te = t.rowSelection?.(), Ce = te?.type === "radio", We = te?.hideSelectAll === !0, ye = te?.selections !== void 0 && te.selections !== !1, ke = t.locale?.value, Te = te?.columnTitle, _e = Te !== void 0, ze = ce(e.thClass, _e ? "text-center before:hidden" : "text-center before:hidden leading-[0]",
|
|
7998
|
+
if (o.value?.key === "__vtg_selection__") {
|
|
7999
|
+
const te = t.rowSelection?.(), Ce = te?.type === "radio", We = te?.hideSelectAll === !0, ye = te?.selections !== void 0 && te.selections !== !1, ke = t.locale?.value, Te = te?.columnTitle, _e = Te !== void 0, ze = ce(e.thClass, _e ? "text-center before:hidden" : "text-center before:hidden leading-[0]", o.value.className, r.value?.class, r.value?.className, K.value), ht = y.value;
|
|
7997
8000
|
let st = [];
|
|
7998
8001
|
if (ye && (te?.selections === !0 ? st = [{
|
|
7999
8002
|
key: "__vtg_select_all__",
|
|
@@ -8007,15 +8010,15 @@ const wa = /* @__PURE__ */ J({
|
|
|
8007
8010
|
key: "__vtg_select_none__",
|
|
8008
8011
|
text: ke?.selection?.selectNone ?? "清空所有",
|
|
8009
8012
|
onSelect: () => t.clearSelection?.()
|
|
8010
|
-
}] : Array.isArray(te?.selections) && (st = te.selections.map((Oe) => Oe ===
|
|
8013
|
+
}] : Array.isArray(te?.selections) && (st = te.selections.map((Oe) => Oe === ir ? {
|
|
8011
8014
|
key: "__vtg_select_all__",
|
|
8012
8015
|
text: ke?.selection?.selectAll ?? "全选当页",
|
|
8013
8016
|
onSelect: () => t.toggleAll?.(!0)
|
|
8014
|
-
} : Oe ===
|
|
8017
|
+
} : Oe === cr ? {
|
|
8015
8018
|
key: "__vtg_select_invert__",
|
|
8016
8019
|
text: ke?.selection?.selectInvert ?? "反选当页",
|
|
8017
8020
|
onSelect: () => t.invertSelection?.()
|
|
8018
|
-
} : Oe ===
|
|
8021
|
+
} : Oe === dr ? {
|
|
8019
8022
|
key: "__vtg_select_none__",
|
|
8020
8023
|
text: ke?.selection?.selectNone ?? "清空所有",
|
|
8021
8024
|
onSelect: () => t.clearSelection?.()
|
|
@@ -8038,7 +8041,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8038
8041
|
onClick: ue
|
|
8039
8042
|
}), [We ? Te : d("span", {
|
|
8040
8043
|
class: "inline-flex items-center justify-center relative"
|
|
8041
|
-
}, [d(
|
|
8044
|
+
}, [d(hr, {
|
|
8042
8045
|
checked: Ze === "all",
|
|
8043
8046
|
indeterminate: Ze === "partial",
|
|
8044
8047
|
onChange: (Oe) => t.toggleAll?.(Oe)
|
|
@@ -8059,7 +8062,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8059
8062
|
onMouseleave: q
|
|
8060
8063
|
}, null)]);
|
|
8061
8064
|
}
|
|
8062
|
-
const de = t.locale?.value, Ie = n.value === null ? de?.header.sortTriggerAsc ?? "点击升序" : n.value === "ascend" ? de?.header.sortTriggerDesc ?? "点击降序" : de?.header.cancelSort ?? "取消排序", ne =
|
|
8065
|
+
const de = t.locale?.value, Ie = n.value === null ? de?.header.sortTriggerAsc ?? "点击升序" : n.value === "ascend" ? de?.header.sortTriggerDesc ?? "点击降序" : de?.header.cancelSort ?? "取消排序", ne = o.value, fe = t.subThemeSlots?.value.sortAreaWrapper, De = t.subThemeSlots?.value.sortAreaTitle, Re = d("span", {
|
|
8063
8066
|
class: fe
|
|
8064
8067
|
}, [d("span", {
|
|
8065
8068
|
class: De
|
|
@@ -8073,7 +8076,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8073
8076
|
onMouseleave: () => {
|
|
8074
8077
|
pe.value = !1;
|
|
8075
8078
|
}
|
|
8076
|
-
}, [d(
|
|
8079
|
+
}, [d(Xo, {
|
|
8077
8080
|
block: !0,
|
|
8078
8081
|
title: Ie,
|
|
8079
8082
|
placement: "top",
|
|
@@ -8082,7 +8085,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8082
8085
|
default: () => [Re]
|
|
8083
8086
|
})]) : d("span", {
|
|
8084
8087
|
class: j
|
|
8085
|
-
}, [Re]),
|
|
8088
|
+
}, [Re]), re = ne && (ne.filterIcon ? d("span", {
|
|
8086
8089
|
class: t.subThemeSlots?.value.filterIconWrapper,
|
|
8087
8090
|
ref: k,
|
|
8088
8091
|
onMousedown: (te) => te.stopPropagation(),
|
|
@@ -8165,16 +8168,16 @@ const wa = /* @__PURE__ */ J({
|
|
|
8165
8168
|
colspan: O,
|
|
8166
8169
|
rowspan: ee,
|
|
8167
8170
|
onClick: ue,
|
|
8168
|
-
"aria-sort":
|
|
8171
|
+
"aria-sort": o.value ? ya(n.value) : void 0
|
|
8169
8172
|
}), [d("span", {
|
|
8170
8173
|
class: ce("flex items-center", e.headerCellInnerClass)
|
|
8171
|
-
}, [W, f.value &&
|
|
8172
|
-
column:
|
|
8174
|
+
}, [W, f.value && re]), f.value && Me, o.value?.resizable && d(ba, {
|
|
8175
|
+
column: o.value,
|
|
8173
8176
|
colIndex: e.cell.colStart
|
|
8174
8177
|
}, null)]);
|
|
8175
8178
|
};
|
|
8176
8179
|
}
|
|
8177
|
-
}),
|
|
8180
|
+
}), Io = /* @__PURE__ */ J({
|
|
8178
8181
|
name: "TableHeader",
|
|
8179
8182
|
props: {
|
|
8180
8183
|
rows: {
|
|
@@ -8202,15 +8205,15 @@ const wa = /* @__PURE__ */ J({
|
|
|
8202
8205
|
const t = he(ge, {});
|
|
8203
8206
|
return () => d("thead", {
|
|
8204
8207
|
class: e.theadClass
|
|
8205
|
-
}, [e.rows.map((
|
|
8206
|
-
const l =
|
|
8208
|
+
}, [e.rows.map((o, r) => {
|
|
8209
|
+
const l = o.map((s) => s.column), a = t.getHeaderRowProps?.(l, r);
|
|
8207
8210
|
return d("tr", me({
|
|
8208
|
-
key: `header-row-${
|
|
8211
|
+
key: `header-row-${r}`
|
|
8209
8212
|
}, a, {
|
|
8210
8213
|
class: [e.rowClass, a?.class, a?.className],
|
|
8211
8214
|
style: a?.style
|
|
8212
|
-
}), [
|
|
8213
|
-
key: `${String(s.column.key ?? s.column.title ?? n)}-${
|
|
8215
|
+
}), [o.map((s, n) => d(wa, {
|
|
8216
|
+
key: `${String(s.column.key ?? s.column.title ?? n)}-${r}-${n}`,
|
|
8214
8217
|
cell: s,
|
|
8215
8218
|
index: n,
|
|
8216
8219
|
thClass: e.thClass,
|
|
@@ -8218,7 +8221,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8218
8221
|
}, null))]);
|
|
8219
8222
|
})]);
|
|
8220
8223
|
}
|
|
8221
|
-
}),
|
|
8224
|
+
}), pr = /* @__PURE__ */ J({
|
|
8222
8225
|
name: "TableRow",
|
|
8223
8226
|
props: {
|
|
8224
8227
|
rowClass: {
|
|
@@ -8235,16 +8238,16 @@ const wa = /* @__PURE__ */ J({
|
|
|
8235
8238
|
},
|
|
8236
8239
|
setup(e, {
|
|
8237
8240
|
slots: t,
|
|
8238
|
-
emit:
|
|
8241
|
+
emit: o
|
|
8239
8242
|
}) {
|
|
8240
|
-
function
|
|
8243
|
+
function r(l) {
|
|
8241
8244
|
const a = e.rowProps?.onClick;
|
|
8242
|
-
typeof a == "function" && a(l),
|
|
8245
|
+
typeof a == "function" && a(l), o("click", l);
|
|
8243
8246
|
}
|
|
8244
8247
|
return () => d("tr", me(e.rowProps, {
|
|
8245
8248
|
class: [e.rowClass, e.rowProps?.class, e.rowProps?.className],
|
|
8246
8249
|
style: e.rowProps?.style,
|
|
8247
|
-
onClick:
|
|
8250
|
+
onClick: r
|
|
8248
8251
|
}), [t.default?.()]);
|
|
8249
8252
|
}
|
|
8250
8253
|
}), Sa = /* @__PURE__ */ J({
|
|
@@ -8263,10 +8266,10 @@ const wa = /* @__PURE__ */ J({
|
|
|
8263
8266
|
setup(e, {
|
|
8264
8267
|
emit: t
|
|
8265
8268
|
}) {
|
|
8266
|
-
return () => d(
|
|
8269
|
+
return () => d(Uo, {
|
|
8267
8270
|
checked: e.checked,
|
|
8268
8271
|
disabled: e.disabled,
|
|
8269
|
-
onChange: (
|
|
8272
|
+
onChange: (o, r) => t("change", r)
|
|
8270
8273
|
}, null);
|
|
8271
8274
|
}
|
|
8272
8275
|
}), jt = /* @__PURE__ */ J({
|
|
@@ -8291,12 +8294,12 @@ const wa = /* @__PURE__ */ J({
|
|
|
8291
8294
|
setup(e, {
|
|
8292
8295
|
emit: t
|
|
8293
8296
|
}) {
|
|
8294
|
-
const
|
|
8295
|
-
function
|
|
8297
|
+
const o = he(ge, {});
|
|
8298
|
+
function r(l) {
|
|
8296
8299
|
l.stopPropagation(), t("click", l);
|
|
8297
8300
|
}
|
|
8298
8301
|
return () => {
|
|
8299
|
-
const l =
|
|
8302
|
+
const l = o.subThemeSlots?.value, a = e.variant === "tree", s = a ? l?.treeExpandIcon : l?.expandIcon, n = a ? l?.treeExpandIconExpanded : l?.expandIconExpanded, i = a ? l?.treeExpandIconCollapsed : l?.expandIconCollapsed, v = a ? l?.treeExpandIconSpaced : l?.expandIconSpaced, f = a ? l?.treeExpandIconDisabled : l?.expandIconDisabled, u = a ? l?.treeExpandIconSymbol : l?.expandIconSymbol, c = a ? l?.treeExpandIconSymbolExpanded : l?.expandIconSymbolExpanded, m = a ? l?.treeExpandIconSymbolCollapsed : l?.expandIconSymbolCollapsed, h = a ? "relative inline-flex h-5 w-5 shrink-0 items-center justify-center align-middle text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200" : "relative inline-flex h-[17px] w-[17px] shrink-0 items-center justify-center align-middle border border-[color:var(--vtg-table-border-color,#d9d9d9)] bg-[color:var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200", b = "inline-flex items-center justify-center transition-transform duration-200 [&>svg]:h-[1em] [&>svg]:w-[1em]", x = a ? "me-2 w-5 invisible" : "invisible", k = ce(h, s, !e.expandable && x, !e.expandable && v, e.expandable && (e.expanded ? n : i), !e.expandable && f), C = ce(b, u, e.expandable && (e.expanded ? c : m)), T = d("span", {
|
|
8300
8303
|
class: C,
|
|
8301
8304
|
"aria-hidden": "true"
|
|
8302
8305
|
}, [d("svg", {
|
|
@@ -8312,7 +8315,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8312
8315
|
return e.expandable ? d("button", {
|
|
8313
8316
|
type: "button",
|
|
8314
8317
|
class: k,
|
|
8315
|
-
onClick:
|
|
8318
|
+
onClick: r,
|
|
8316
8319
|
"aria-expanded": e.expanded,
|
|
8317
8320
|
"aria-label": e.expanded ? "Collapse row" : "Expand row"
|
|
8318
8321
|
}, [T]) : d("span", {
|
|
@@ -8321,7 +8324,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8321
8324
|
}, [T]);
|
|
8322
8325
|
};
|
|
8323
8326
|
}
|
|
8324
|
-
}),
|
|
8327
|
+
}), br = /* @__PURE__ */ J({
|
|
8325
8328
|
name: "TableCell",
|
|
8326
8329
|
props: {
|
|
8327
8330
|
record: {
|
|
@@ -8354,7 +8357,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8354
8357
|
}
|
|
8355
8358
|
},
|
|
8356
8359
|
setup(e) {
|
|
8357
|
-
const t = he(ge, {}),
|
|
8360
|
+
const t = he(ge, {}), o = M(null), r = M(!1), l = S(() => e.resolvedCell ?? vr({
|
|
8358
8361
|
text: Rt(e.record, e.column.dataIndex),
|
|
8359
8362
|
record: e.record,
|
|
8360
8363
|
rowIndex: e.rowIndex,
|
|
@@ -8414,11 +8417,11 @@ const wa = /* @__PURE__ */ J({
|
|
|
8414
8417
|
};
|
|
8415
8418
|
}
|
|
8416
8419
|
function x() {
|
|
8417
|
-
const C =
|
|
8418
|
-
|
|
8420
|
+
const C = o.value, T = l.value.tooltipText;
|
|
8421
|
+
r.value = !!(C && T && (C.scrollWidth > C.clientWidth || C.scrollHeight > C.clientHeight));
|
|
8419
8422
|
}
|
|
8420
8423
|
function k() {
|
|
8421
|
-
|
|
8424
|
+
r.value = !1;
|
|
8422
8425
|
}
|
|
8423
8426
|
return () => {
|
|
8424
8427
|
if (l.value.colSpan === 0 || l.value.rowSpan === 0)
|
|
@@ -8429,7 +8432,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8429
8432
|
checked: i.value.checked,
|
|
8430
8433
|
disabled: i.value.disabled,
|
|
8431
8434
|
onChange: (F) => t.toggleRow?.(e.record, e.rowIndex, F)
|
|
8432
|
-
}, null) : d(
|
|
8435
|
+
}, null) : d(hr, {
|
|
8433
8436
|
checked: i.value.checked,
|
|
8434
8437
|
indeterminate: i.value.indeterminate,
|
|
8435
8438
|
disabled: i.value.disabled,
|
|
@@ -8438,7 +8441,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8438
8441
|
let U = G, Q;
|
|
8439
8442
|
if (L?.renderCell) {
|
|
8440
8443
|
const F = L.renderCell(i.value.checked, e.record, e.rowIndex, G);
|
|
8441
|
-
|
|
8444
|
+
fr(F) ? (U = F.children, Q = F.props) : U = F;
|
|
8442
8445
|
}
|
|
8443
8446
|
const K = !!L?.renderCell, N = ce(e.tdClass, K ? "text-center" : "text-center leading-[0]", e.column.className, Q?.class, Q?.className, v.value && t.subThemeSlots?.value && ce(t.subThemeSlots.value.tdSelected, t.subThemeSlots.value.tdSelectedHover), n.value);
|
|
8444
8447
|
return d("td", me(xt(Q), {
|
|
@@ -8490,14 +8493,14 @@ const wa = /* @__PURE__ */ J({
|
|
|
8490
8493
|
expanded: !1,
|
|
8491
8494
|
expandable: !1,
|
|
8492
8495
|
variant: "tree"
|
|
8493
|
-
}, null) : null, z = e.column.ellipsis ? d(
|
|
8496
|
+
}, null) : null, z = e.column.ellipsis ? d(Xo, {
|
|
8494
8497
|
block: !0,
|
|
8495
8498
|
title: l.value.tooltipText,
|
|
8496
8499
|
placement: "top",
|
|
8497
|
-
open:
|
|
8500
|
+
open: r.value
|
|
8498
8501
|
}, {
|
|
8499
8502
|
default: () => [d("div", {
|
|
8500
|
-
ref:
|
|
8503
|
+
ref: o,
|
|
8501
8504
|
class: e.bodyCellEllipsisClass,
|
|
8502
8505
|
onMouseenter: x,
|
|
8503
8506
|
onMouseleave: k
|
|
@@ -8511,7 +8514,7 @@ const wa = /* @__PURE__ */ J({
|
|
|
8511
8514
|
}), [D, E, z]);
|
|
8512
8515
|
};
|
|
8513
8516
|
}
|
|
8514
|
-
}),
|
|
8517
|
+
}), gr = /* @__PURE__ */ J({
|
|
8515
8518
|
name: "TableEmpty",
|
|
8516
8519
|
props: {
|
|
8517
8520
|
colSpan: {
|
|
@@ -8530,24 +8533,24 @@ const wa = /* @__PURE__ */ J({
|
|
|
8530
8533
|
setup(e) {
|
|
8531
8534
|
const t = he(ge, {});
|
|
8532
8535
|
return () => {
|
|
8533
|
-
const
|
|
8536
|
+
const o = t.subThemeSlots?.value, r = t.presetConfig?.value;
|
|
8534
8537
|
return d("tr", null, [d("td", {
|
|
8535
8538
|
class: [e.tdClass, e.emptyClass],
|
|
8536
8539
|
colspan: e.colSpan
|
|
8537
8540
|
}, [t.empty ? t.empty() : d("div", {
|
|
8538
|
-
class:
|
|
8539
|
-
}, [
|
|
8540
|
-
class:
|
|
8541
|
-
}, [
|
|
8542
|
-
class:
|
|
8541
|
+
class: o?.emptyWrapper
|
|
8542
|
+
}, [r?.emptyIcon && d("div", {
|
|
8543
|
+
class: o?.emptyIcon
|
|
8544
|
+
}, [rt(_o(r.emptyIcon))]), d("p", {
|
|
8545
|
+
class: o?.emptyText
|
|
8543
8546
|
}, [t.locale?.value.empty.text ?? "暂无数据"])])])]);
|
|
8544
8547
|
};
|
|
8545
8548
|
}
|
|
8546
8549
|
});
|
|
8547
|
-
function
|
|
8550
|
+
function Ro(e) {
|
|
8548
8551
|
return Number.isFinite(e) ? e <= 0 ? 0 : Math.floor(e) : 1;
|
|
8549
8552
|
}
|
|
8550
|
-
const
|
|
8553
|
+
const Eo = /* @__PURE__ */ J({
|
|
8551
8554
|
name: "TableBody",
|
|
8552
8555
|
props: {
|
|
8553
8556
|
dataSource: {
|
|
@@ -8585,24 +8588,24 @@ const Rr = /* @__PURE__ */ J({
|
|
|
8585
8588
|
},
|
|
8586
8589
|
setup(e) {
|
|
8587
8590
|
const t = he(ge, {});
|
|
8588
|
-
function
|
|
8591
|
+
function o(l, a) {
|
|
8589
8592
|
return typeof e.rowKey == "function" ? e.rowKey(l) : typeof e.rowKey == "string" && e.rowKey in l ? l[e.rowKey] : a;
|
|
8590
8593
|
}
|
|
8591
|
-
const
|
|
8594
|
+
const r = S(() => {
|
|
8592
8595
|
const l = /* @__PURE__ */ new Set();
|
|
8593
8596
|
return e.dataSource.map((a, s) => {
|
|
8594
8597
|
const n = [];
|
|
8595
8598
|
return e.columns.forEach((i, v) => {
|
|
8596
8599
|
const f = `${s}:${v}`;
|
|
8597
8600
|
if (l.has(f)) return;
|
|
8598
|
-
const u =
|
|
8601
|
+
const u = vr({
|
|
8599
8602
|
text: Rt(a, i.dataIndex),
|
|
8600
8603
|
record: a,
|
|
8601
8604
|
rowIndex: s,
|
|
8602
8605
|
column: i,
|
|
8603
8606
|
bodyCell: t.bodyCell,
|
|
8604
8607
|
transformCellText: t.transformCellText
|
|
8605
|
-
}), c =
|
|
8608
|
+
}), c = Ro(u.colSpan), m = Ro(u.rowSpan);
|
|
8606
8609
|
if (c === 0 || m === 0) return;
|
|
8607
8610
|
const h = Math.min(e.dataSource.length, s + m), b = Math.min(e.columns.length, v + c);
|
|
8608
8611
|
for (let x = s; x < h; x += 1)
|
|
@@ -8623,16 +8626,16 @@ const Rr = /* @__PURE__ */ J({
|
|
|
8623
8626
|
return () => d("tbody", {
|
|
8624
8627
|
class: e.tbodyClass
|
|
8625
8628
|
}, [e.dataSource.length > 0 ? e.dataSource.map((l, a) => {
|
|
8626
|
-
const s =
|
|
8629
|
+
const s = o(l, a), n = t.expandable?.(), i = t.isExpanded?.(s) ?? !1, v = n?.expandRowByClick ?? !1, f = t.isRowExpandable?.(l) ?? !1, c = t.treeFlattenData?.value?.find((k) => k.record === l)?.level ?? 0, m = t.getRowClassName?.(l, a), h = t.getRowProps?.(l, a), b = typeof n?.expandedRowClassName == "function" ? n.expandedRowClassName(l, a, c) : n?.expandedRowClassName, x = v ? () => {
|
|
8627
8630
|
f && t.toggleExpand?.(l, a);
|
|
8628
8631
|
} : void 0;
|
|
8629
|
-
return [d(
|
|
8632
|
+
return [d(pr, {
|
|
8630
8633
|
key: s,
|
|
8631
8634
|
rowClass: ce(e.rowClass, m) ?? "",
|
|
8632
8635
|
rowProps: h,
|
|
8633
8636
|
onClick: x
|
|
8634
8637
|
}, {
|
|
8635
|
-
default: () => [
|
|
8638
|
+
default: () => [r.value[a]?.map((k) => d(br, {
|
|
8636
8639
|
key: k.column.key ?? String(k.column.dataIndex ?? k.colIndex),
|
|
8637
8640
|
record: l,
|
|
8638
8641
|
rowIndex: a,
|
|
@@ -8649,13 +8652,13 @@ const Rr = /* @__PURE__ */ J({
|
|
|
8649
8652
|
colspan: e.columns.length,
|
|
8650
8653
|
class: ce(e.tdClass, t.subThemeSlots?.value.expandedRowCell)
|
|
8651
8654
|
}, [n.expandedRowRender(l, a, 0, !0)])])];
|
|
8652
|
-
}) : d(
|
|
8655
|
+
}) : d(gr, {
|
|
8653
8656
|
colSpan: e.columns.length || 1,
|
|
8654
8657
|
emptyClass: e.emptyClass,
|
|
8655
8658
|
tdClass: e.tdClass
|
|
8656
8659
|
}, null)]);
|
|
8657
8660
|
}
|
|
8658
|
-
}),
|
|
8661
|
+
}), ot = /* @__PURE__ */ J({
|
|
8659
8662
|
name: "ColGroup",
|
|
8660
8663
|
props: {
|
|
8661
8664
|
columns: {
|
|
@@ -8664,13 +8667,13 @@ const Rr = /* @__PURE__ */ J({
|
|
|
8664
8667
|
}
|
|
8665
8668
|
},
|
|
8666
8669
|
setup(e) {
|
|
8667
|
-
return () => d("colgroup", null, [e.columns.map((t,
|
|
8668
|
-
const
|
|
8669
|
-
width: typeof
|
|
8670
|
-
minWidth: typeof
|
|
8670
|
+
return () => d("colgroup", null, [e.columns.map((t, o) => {
|
|
8671
|
+
const r = t.width, l = r ? {
|
|
8672
|
+
width: typeof r == "number" ? `${r}px` : r,
|
|
8673
|
+
minWidth: typeof r == "number" ? `${r}px` : r
|
|
8671
8674
|
} : void 0;
|
|
8672
8675
|
return d("col", {
|
|
8673
|
-
key: t.key ?? String(t.dataIndex ??
|
|
8676
|
+
key: t.key ?? String(t.dataIndex ?? o),
|
|
8674
8677
|
style: l
|
|
8675
8678
|
}, null);
|
|
8676
8679
|
})]);
|
|
@@ -8741,11 +8744,11 @@ const ka = /* @__PURE__ */ J({
|
|
|
8741
8744
|
}
|
|
8742
8745
|
},
|
|
8743
8746
|
setup(e) {
|
|
8744
|
-
const t = he(ge, {}),
|
|
8745
|
-
function
|
|
8747
|
+
const t = he(ge, {}), o = M();
|
|
8748
|
+
function r(s) {
|
|
8746
8749
|
e.onVirtualScroll?.({
|
|
8747
8750
|
...s,
|
|
8748
|
-
maxX:
|
|
8751
|
+
maxX: o.value?.getHorizontalRange() ?? 0
|
|
8749
8752
|
});
|
|
8750
8753
|
}
|
|
8751
8754
|
function l(s, n) {
|
|
@@ -8755,21 +8758,21 @@ const ka = /* @__PURE__ */ J({
|
|
|
8755
8758
|
const n = e.dataSource.indexOf(s);
|
|
8756
8759
|
return l(s, n >= 0 ? n : 0);
|
|
8757
8760
|
}
|
|
8758
|
-
return ae(() =>
|
|
8761
|
+
return ae(() => o.value, (s) => {
|
|
8759
8762
|
if (s) {
|
|
8760
8763
|
const n = s.getScrollInfo();
|
|
8761
|
-
|
|
8764
|
+
r(n);
|
|
8762
8765
|
}
|
|
8763
8766
|
}), () => {
|
|
8764
8767
|
if (e.dataSource.length === 0)
|
|
8765
8768
|
return d("table", {
|
|
8766
8769
|
class: e.tableClass,
|
|
8767
8770
|
style: e.tableStyle
|
|
8768
|
-
}, [d(
|
|
8771
|
+
}, [d(ot, {
|
|
8769
8772
|
columns: e.columns
|
|
8770
8773
|
}, null), d("tbody", {
|
|
8771
8774
|
class: e.tbodyClass
|
|
8772
|
-
}, [d(
|
|
8775
|
+
}, [d(gr, {
|
|
8773
8776
|
colSpan: e.columns.length || 1,
|
|
8774
8777
|
emptyClass: e.emptyClass,
|
|
8775
8778
|
tdClass: e.tdClass
|
|
@@ -8780,14 +8783,14 @@ const ka = /* @__PURE__ */ J({
|
|
|
8780
8783
|
s += i || 0;
|
|
8781
8784
|
}
|
|
8782
8785
|
return d(wn, {
|
|
8783
|
-
ref:
|
|
8786
|
+
ref: o,
|
|
8784
8787
|
data: e.dataSource,
|
|
8785
8788
|
height: e.height,
|
|
8786
8789
|
itemHeight: e.itemHeight,
|
|
8787
8790
|
itemKey: a,
|
|
8788
8791
|
scrollWidth: s || void 0,
|
|
8789
8792
|
fullHeight: !1,
|
|
8790
|
-
onVirtualScroll:
|
|
8793
|
+
onVirtualScroll: r,
|
|
8791
8794
|
showScrollBar: e.showScrollBar,
|
|
8792
8795
|
style: {
|
|
8793
8796
|
overflow: "hidden"
|
|
@@ -8807,16 +8810,16 @@ const ka = /* @__PURE__ */ J({
|
|
|
8807
8810
|
...e.tableStyle,
|
|
8808
8811
|
tableLayout: "fixed"
|
|
8809
8812
|
}
|
|
8810
|
-
}, [d(
|
|
8813
|
+
}, [d(ot, {
|
|
8811
8814
|
columns: e.columns
|
|
8812
8815
|
}, null), d("tbody", {
|
|
8813
8816
|
class: e.tbodyClass
|
|
8814
|
-
}, [d(
|
|
8817
|
+
}, [d(pr, {
|
|
8815
8818
|
key: c,
|
|
8816
8819
|
rowClass: ce(e.rowClass, k) ?? "",
|
|
8817
8820
|
rowProps: C,
|
|
8818
8821
|
onClick: D
|
|
8819
|
-
}, Ca(v = e.columns.map((E, z) => d(
|
|
8822
|
+
}, Ca(v = e.columns.map((E, z) => d(br, {
|
|
8820
8823
|
key: E.key ?? String(E.dataIndex ?? z),
|
|
8821
8824
|
record: n,
|
|
8822
8825
|
rowIndex: u,
|
|
@@ -8837,7 +8840,7 @@ const ka = /* @__PURE__ */ J({
|
|
|
8837
8840
|
});
|
|
8838
8841
|
};
|
|
8839
8842
|
}
|
|
8840
|
-
}),
|
|
8843
|
+
}), zo = /* @__PURE__ */ J({
|
|
8841
8844
|
name: "TableLoading",
|
|
8842
8845
|
props: {
|
|
8843
8846
|
loadingClass: {
|
|
@@ -8848,47 +8851,47 @@ const ka = /* @__PURE__ */ J({
|
|
|
8848
8851
|
setup(e, {
|
|
8849
8852
|
slots: t
|
|
8850
8853
|
}) {
|
|
8851
|
-
const
|
|
8854
|
+
const o = he(ge, {});
|
|
8852
8855
|
return () => {
|
|
8853
|
-
const
|
|
8856
|
+
const r = o.subThemeSlots?.value, l = o.presetConfig?.value, a = t.default?.();
|
|
8854
8857
|
return a ? d("div", {
|
|
8855
8858
|
class: e.loadingClass
|
|
8856
8859
|
}, [a]) : d("div", {
|
|
8857
8860
|
class: e.loadingClass
|
|
8858
8861
|
}, [l?.loadingIcon && d("div", {
|
|
8859
|
-
class:
|
|
8860
|
-
}, [
|
|
8862
|
+
class: r?.loadingSpinner
|
|
8863
|
+
}, [rt(_o(l.loadingIcon))])]);
|
|
8861
8864
|
};
|
|
8862
8865
|
}
|
|
8863
8866
|
});
|
|
8864
|
-
function
|
|
8867
|
+
function Do(e) {
|
|
8865
8868
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !vt(e);
|
|
8866
8869
|
}
|
|
8867
8870
|
const Ta = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
|
|
8868
|
-
function
|
|
8871
|
+
function Ao() {
|
|
8869
8872
|
if (typeof window > "u")
|
|
8870
8873
|
return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
|
|
8871
8874
|
const e = window.innerWidth, t = /* @__PURE__ */ new Set();
|
|
8872
|
-
return Ta.forEach(([
|
|
8873
|
-
if (
|
|
8875
|
+
return Ta.forEach(([o, r]) => {
|
|
8876
|
+
if (o === "xs") {
|
|
8874
8877
|
e < 576 && t.add("xs");
|
|
8875
8878
|
return;
|
|
8876
8879
|
}
|
|
8877
|
-
e >=
|
|
8880
|
+
e >= r && t.add(o);
|
|
8878
8881
|
}), t;
|
|
8879
8882
|
}
|
|
8880
|
-
function
|
|
8881
|
-
return e.reduce((
|
|
8882
|
-
if (
|
|
8883
|
-
return
|
|
8884
|
-
if ("children" in
|
|
8885
|
-
const l =
|
|
8886
|
-
return l.length === 0 ||
|
|
8887
|
-
...
|
|
8883
|
+
function yr(e, t) {
|
|
8884
|
+
return e.reduce((o, r) => {
|
|
8885
|
+
if (r.responsive?.length && !r.responsive.some((l) => t.has(l)))
|
|
8886
|
+
return o;
|
|
8887
|
+
if ("children" in r && Array.isArray(r.children)) {
|
|
8888
|
+
const l = yr(r.children, t);
|
|
8889
|
+
return l.length === 0 || o.push({
|
|
8890
|
+
...r,
|
|
8888
8891
|
children: l
|
|
8889
|
-
}),
|
|
8892
|
+
}), o;
|
|
8890
8893
|
}
|
|
8891
|
-
return
|
|
8894
|
+
return o.push(r), o;
|
|
8892
8895
|
}, []);
|
|
8893
8896
|
}
|
|
8894
8897
|
const Ia = /* @__PURE__ */ J({
|
|
@@ -9040,16 +9043,16 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9040
9043
|
}
|
|
9041
9044
|
},
|
|
9042
9045
|
emits: {
|
|
9043
|
-
change: (e, t,
|
|
9046
|
+
change: (e, t, o) => !0,
|
|
9044
9047
|
resizeColumn: (e, t) => !0
|
|
9045
9048
|
},
|
|
9046
9049
|
slots: Object,
|
|
9047
9050
|
setup(e, {
|
|
9048
9051
|
slots: t,
|
|
9049
|
-
emit:
|
|
9052
|
+
emit: o
|
|
9050
9053
|
}) {
|
|
9051
|
-
const
|
|
9052
|
-
const B =
|
|
9054
|
+
const r = he(lt, null), l = S(() => r?.themePreset ?? "antdv"), a = S(() => {
|
|
9055
|
+
const B = r?.theme ?? {}, X = l.value;
|
|
9053
9056
|
return {
|
|
9054
9057
|
...B,
|
|
9055
9058
|
button: Ke(_n(X), B.button),
|
|
@@ -9068,35 +9071,35 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9068
9071
|
return a.value;
|
|
9069
9072
|
},
|
|
9070
9073
|
get locale() {
|
|
9071
|
-
return
|
|
9074
|
+
return r?.locale ?? "zh-CN";
|
|
9072
9075
|
},
|
|
9073
9076
|
get locales() {
|
|
9074
|
-
return
|
|
9077
|
+
return r?.locales ?? {};
|
|
9075
9078
|
},
|
|
9076
9079
|
get localeOverrides() {
|
|
9077
|
-
return
|
|
9080
|
+
return r?.localeOverrides ?? {};
|
|
9078
9081
|
}
|
|
9079
9082
|
});
|
|
9080
|
-
const s = S(() => An(l.value) ??
|
|
9083
|
+
const s = S(() => An(l.value) ?? Zo), {
|
|
9081
9084
|
slots: n
|
|
9082
|
-
} = Ue("table", s, e), i = S(() => e.locale ??
|
|
9083
|
-
...
|
|
9085
|
+
} = Ue("table", s, e), i = S(() => e.locale ?? r?.locale ?? "zh-CN"), v = S(() => ({
|
|
9086
|
+
...r?.locales ?? {},
|
|
9084
9087
|
...e.locales ?? {}
|
|
9085
9088
|
})), f = S(() => {
|
|
9086
9089
|
const B = Pn(l.value), X = Nn(l.value, i.value), xe = v.value[i.value]?.table, we = tt(tt(B, X), xe);
|
|
9087
|
-
return tt(we, tt(
|
|
9088
|
-
}), u = M(
|
|
9090
|
+
return tt(we, tt(r?.localeOverrides?.table ?? {}, e.localeOverrides));
|
|
9091
|
+
}), u = M(Ao());
|
|
9089
9092
|
function c() {
|
|
9090
|
-
u.value =
|
|
9093
|
+
u.value = Ao();
|
|
9091
9094
|
}
|
|
9092
9095
|
Xe(() => {
|
|
9093
9096
|
c(), window.addEventListener("resize", c);
|
|
9094
9097
|
}), $e(() => {
|
|
9095
9098
|
window.removeEventListener("resize", c);
|
|
9096
9099
|
});
|
|
9097
|
-
const m = S(() =>
|
|
9100
|
+
const m = S(() => yr(e.columns, u.value)), h = S(() => e.sticky === !0 ? {} : typeof e.sticky == "object" ? e.sticky : void 0), {
|
|
9098
9101
|
leafColumns: b
|
|
9099
|
-
} =
|
|
9102
|
+
} = Co(() => m.value), {
|
|
9100
9103
|
getSortOrder: x,
|
|
9101
9104
|
toggleSortOrder: k,
|
|
9102
9105
|
sortData: C,
|
|
@@ -9108,7 +9111,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9108
9111
|
tableSortDirections: () => e.sortDirections,
|
|
9109
9112
|
onSorterChange(B) {
|
|
9110
9113
|
const X = G();
|
|
9111
|
-
|
|
9114
|
+
o("change", L(), B, {
|
|
9112
9115
|
action: "sort",
|
|
9113
9116
|
currentDataSource: X
|
|
9114
9117
|
});
|
|
@@ -9123,7 +9126,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9123
9126
|
columns: () => b.value,
|
|
9124
9127
|
onFilterChange(B) {
|
|
9125
9128
|
const X = G();
|
|
9126
|
-
|
|
9129
|
+
o("change", B, p.value, {
|
|
9127
9130
|
action: "filter",
|
|
9128
9131
|
currentDataSource: X
|
|
9129
9132
|
});
|
|
@@ -9170,7 +9173,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9170
9173
|
visibleData: () => A.value,
|
|
9171
9174
|
childrenColumnName: () => e.childrenColumnName,
|
|
9172
9175
|
onSelectionChange() {
|
|
9173
|
-
|
|
9176
|
+
o("change", L(), p.value, {
|
|
9174
9177
|
action: "select",
|
|
9175
9178
|
currentDataSource: A.value
|
|
9176
9179
|
});
|
|
@@ -9214,10 +9217,10 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9214
9217
|
}), {
|
|
9215
9218
|
leafColumns: fe,
|
|
9216
9219
|
headerRows: De
|
|
9217
|
-
} =
|
|
9220
|
+
} = Co(() => ne.value), Re = S(() => De.value.length > 1), {
|
|
9218
9221
|
headerWrapRef: j,
|
|
9219
9222
|
bodyWrapRef: W,
|
|
9220
|
-
scrollState:
|
|
9223
|
+
scrollState: re,
|
|
9221
9224
|
handleBodyScroll: ie,
|
|
9222
9225
|
fixedOffsets: Ee,
|
|
9223
9226
|
syncHorizontalScroll: Me
|
|
@@ -9246,9 +9249,9 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9246
9249
|
table: n.groupedHeaderTable(),
|
|
9247
9250
|
th: n.groupedHeaderTh(),
|
|
9248
9251
|
td: n.groupedHeaderTd()
|
|
9249
|
-
}), qe = S(() => ce(n.table(), Ze.value.table) ?? ""), Oe = S(() => ce(n.th(), Ze.value.th) ?? ""), Dt = S(() => ce(n.td(), Ze.value.td) ?? ""),
|
|
9252
|
+
}), qe = S(() => ce(n.table(), Ze.value.table) ?? ""), Oe = S(() => ce(n.th(), Ze.value.th) ?? ""), Dt = S(() => ce(n.td(), Ze.value.td) ?? ""), Sr = M(!1);
|
|
9250
9253
|
ae([_e, st], ([B, X]) => {
|
|
9251
|
-
!B || !X ||
|
|
9254
|
+
!B || !X || Sr.value;
|
|
9252
9255
|
}, {
|
|
9253
9256
|
immediate: !0
|
|
9254
9257
|
});
|
|
@@ -9259,27 +9262,27 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9259
9262
|
B && (W.value = B);
|
|
9260
9263
|
});
|
|
9261
9264
|
const {
|
|
9262
|
-
columnWidths:
|
|
9263
|
-
startResize:
|
|
9264
|
-
isResizing:
|
|
9265
|
+
columnWidths: Cr,
|
|
9266
|
+
startResize: kr,
|
|
9267
|
+
isResizing: Tr
|
|
9265
9268
|
} = Zn({
|
|
9266
9269
|
onResizeColumn(B, X) {
|
|
9267
|
-
|
|
9270
|
+
o("resizeColumn", B, X);
|
|
9268
9271
|
}
|
|
9269
9272
|
});
|
|
9270
|
-
function
|
|
9273
|
+
function Ir(B) {
|
|
9271
9274
|
return N.value ? K.value.find((X) => X.record === B)?.level ?? 0 : 0;
|
|
9272
9275
|
}
|
|
9273
|
-
function
|
|
9274
|
-
return e.rowClassName ? typeof e.rowClassName == "function" ? e.rowClassName(B, X,
|
|
9276
|
+
function Rr(B, X) {
|
|
9277
|
+
return e.rowClassName ? typeof e.rowClassName == "function" ? e.rowClassName(B, X, Ir(B)) : e.rowClassName : "";
|
|
9275
9278
|
}
|
|
9276
|
-
function
|
|
9279
|
+
function Er(B, X) {
|
|
9277
9280
|
return e.customRow?.(B, X);
|
|
9278
9281
|
}
|
|
9279
|
-
function
|
|
9282
|
+
function zr(B, X) {
|
|
9280
9283
|
return e.customHeaderRow?.(B, X);
|
|
9281
9284
|
}
|
|
9282
|
-
function
|
|
9285
|
+
function Dr(B) {
|
|
9283
9286
|
if (typeof B.title != "function")
|
|
9284
9287
|
return B.title ?? "";
|
|
9285
9288
|
const X = B, xe = w.value.filter((we) => !!we.column);
|
|
@@ -9293,7 +9296,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9293
9296
|
const Xt = {
|
|
9294
9297
|
width: "100%",
|
|
9295
9298
|
minWidth: "100%"
|
|
9296
|
-
},
|
|
9299
|
+
}, Ar = S(() => ({
|
|
9297
9300
|
thSortable: n.thSortable(),
|
|
9298
9301
|
sortButton: n.sortButton(),
|
|
9299
9302
|
sortIconDown: n.sortIconDown(),
|
|
@@ -9376,7 +9379,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9376
9379
|
customFilterDropdown: t.customFilterDropdown,
|
|
9377
9380
|
customFilterIcon: t.customFilterIcon,
|
|
9378
9381
|
showSorterTooltip: S(() => e.showSorterTooltip ?? Ut.value.showSorterTooltip),
|
|
9379
|
-
subThemeSlots:
|
|
9382
|
+
subThemeSlots: Ar,
|
|
9380
9383
|
presetConfig: Ut,
|
|
9381
9384
|
themePreset: l,
|
|
9382
9385
|
localeName: i,
|
|
@@ -9393,24 +9396,24 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9393
9396
|
clearSelection: Z,
|
|
9394
9397
|
getChangeableRowKeys: se,
|
|
9395
9398
|
fixedOffsets: Ee,
|
|
9396
|
-
scrollState:
|
|
9399
|
+
scrollState: re,
|
|
9397
9400
|
leafColumnCount: S(() => fe.value.length),
|
|
9398
9401
|
bordered: S(() => e.bordered),
|
|
9399
9402
|
tableLayout: ke,
|
|
9400
9403
|
sticky: S(() => e.sticky),
|
|
9401
|
-
getRowProps:
|
|
9402
|
-
getRowClassName:
|
|
9403
|
-
getHeaderRowProps:
|
|
9404
|
-
getColumnTitle:
|
|
9404
|
+
getRowProps: Er,
|
|
9405
|
+
getRowClassName: Rr,
|
|
9406
|
+
getHeaderRowProps: zr,
|
|
9407
|
+
getColumnTitle: Dr,
|
|
9405
9408
|
getPopupContainer: e.getPopupContainer,
|
|
9406
9409
|
transformCellText: e.transformCellText,
|
|
9407
9410
|
expandable: () => e.expandable,
|
|
9408
9411
|
isExpanded: pe,
|
|
9409
9412
|
toggleExpand: ee,
|
|
9410
9413
|
isRowExpandable: O,
|
|
9411
|
-
columnWidths:
|
|
9412
|
-
startResize:
|
|
9413
|
-
isResizing: () =>
|
|
9414
|
+
columnWidths: Cr,
|
|
9415
|
+
startResize: kr,
|
|
9416
|
+
isResizing: () => Tr.value,
|
|
9414
9417
|
displayColumns: S(() => fe.value),
|
|
9415
9418
|
registerSummaryFixed: (B) => {
|
|
9416
9419
|
Zt.value = B;
|
|
@@ -9430,15 +9433,15 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9430
9433
|
tableLayout: ke.value
|
|
9431
9434
|
};
|
|
9432
9435
|
Fe?.x ? (Ve.width = typeof Fe.x == "number" ? `${Fe.x}px` : Fe.x, Ve.minWidth = "100%") : Ve.width = ye.value ? "max-content" : "100%";
|
|
9433
|
-
const Qt = e.loading && (t.loading ? d(
|
|
9436
|
+
const Qt = e.loading && (t.loading ? d(zo, {
|
|
9434
9437
|
loadingClass: n.loading()
|
|
9435
|
-
},
|
|
9438
|
+
}, Do(B = t.loading()) ? B : {
|
|
9436
9439
|
default: () => [B]
|
|
9437
|
-
}) : d(
|
|
9440
|
+
}) : d(zo, {
|
|
9438
9441
|
loadingClass: n.loading()
|
|
9439
9442
|
}, null));
|
|
9440
9443
|
if (te.value) {
|
|
9441
|
-
const
|
|
9444
|
+
const _r = e.showHeader !== !1 ? d("div", {
|
|
9442
9445
|
ref: j,
|
|
9443
9446
|
class: n.headerWrapper(),
|
|
9444
9447
|
style: Te.value
|
|
@@ -9447,15 +9450,15 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9447
9450
|
}, [d("table", {
|
|
9448
9451
|
class: qe.value,
|
|
9449
9452
|
style: Ve
|
|
9450
|
-
}, [d(
|
|
9453
|
+
}, [d(ot, {
|
|
9451
9454
|
columns: fe.value
|
|
9452
|
-
}, null), d(
|
|
9455
|
+
}, null), d(Io, {
|
|
9453
9456
|
rows: De.value,
|
|
9454
9457
|
theadClass: n.thead(),
|
|
9455
9458
|
rowClass: n.tr(),
|
|
9456
9459
|
thClass: Oe.value,
|
|
9457
9460
|
headerCellInnerClass: n.headerCellInner()
|
|
9458
|
-
}, null)])])]) : null,
|
|
9461
|
+
}, null)])])]) : null, Lr = _e.value ? d(ka, {
|
|
9459
9462
|
dataSource: A.value,
|
|
9460
9463
|
columns: fe.value,
|
|
9461
9464
|
tbodyClass: n.tbody(),
|
|
@@ -9469,10 +9472,10 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9469
9472
|
height: ht.value,
|
|
9470
9473
|
itemHeight: ze.value,
|
|
9471
9474
|
showScrollBar: "hover",
|
|
9472
|
-
onVirtualScroll: (
|
|
9473
|
-
Me(
|
|
9475
|
+
onVirtualScroll: (eo) => {
|
|
9476
|
+
Me(eo.x, eo.maxX);
|
|
9474
9477
|
}
|
|
9475
|
-
}, null) : null,
|
|
9478
|
+
}, null) : null, Mr = _e.value ? null : d(It, {
|
|
9476
9479
|
ref: Gt,
|
|
9477
9480
|
maxHeight: Fe?.y !== void 0 ? typeof Fe.y == "number" ? Fe.y : String(Fe.y) : void 0,
|
|
9478
9481
|
wrapClass: n.bodyWrapper(),
|
|
@@ -9482,9 +9485,9 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9482
9485
|
default: () => [d("table", {
|
|
9483
9486
|
class: qe.value,
|
|
9484
9487
|
style: Ve
|
|
9485
|
-
}, [d(
|
|
9488
|
+
}, [d(ot, {
|
|
9486
9489
|
columns: fe.value
|
|
9487
|
-
}, null), d(
|
|
9490
|
+
}, null), d(Eo, {
|
|
9488
9491
|
dataSource: A.value,
|
|
9489
9492
|
columns: fe.value,
|
|
9490
9493
|
tbodyClass: n.tbody(),
|
|
@@ -9496,7 +9499,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9496
9499
|
}, null), we && !Jt && d("tfoot", {
|
|
9497
9500
|
class: n.summary()
|
|
9498
9501
|
}, [we])])]
|
|
9499
|
-
}),
|
|
9502
|
+
}), Or = we && Jt ? d("div", {
|
|
9500
9503
|
class: n.headerWrapper(),
|
|
9501
9504
|
style: {
|
|
9502
9505
|
position: "sticky",
|
|
@@ -9509,7 +9512,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9509
9512
|
}, [d("table", {
|
|
9510
9513
|
class: qe.value,
|
|
9511
9514
|
style: Ve
|
|
9512
|
-
}, [d(
|
|
9515
|
+
}, [d(ot, {
|
|
9513
9516
|
columns: fe.value
|
|
9514
9517
|
}, null), d("tfoot", {
|
|
9515
9518
|
class: n.summary()
|
|
@@ -9520,22 +9523,22 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9520
9523
|
class: n.title()
|
|
9521
9524
|
}, [X]), d("div", {
|
|
9522
9525
|
class: ce(n.wrapper(), h.value && "overflow-clip")
|
|
9523
|
-
}, [
|
|
9526
|
+
}, [_r, Lr, Mr, Or, Qt]), xe && d("div", {
|
|
9524
9527
|
class: n.footer()
|
|
9525
9528
|
}, [xe])]);
|
|
9526
9529
|
}
|
|
9527
9530
|
const At = d($t, null, [d("table", {
|
|
9528
9531
|
class: qe.value,
|
|
9529
9532
|
style: Ve
|
|
9530
|
-
}, [d(
|
|
9533
|
+
}, [d(ot, {
|
|
9531
9534
|
columns: fe.value
|
|
9532
|
-
}, null), e.showHeader !== !1 && d(
|
|
9535
|
+
}, null), e.showHeader !== !1 && d(Io, {
|
|
9533
9536
|
rows: De.value,
|
|
9534
9537
|
theadClass: n.thead(),
|
|
9535
9538
|
rowClass: n.tr(),
|
|
9536
9539
|
thClass: Oe.value,
|
|
9537
9540
|
headerCellInnerClass: n.headerCellInner()
|
|
9538
|
-
}, null), d(
|
|
9541
|
+
}, null), d(Eo, {
|
|
9539
9542
|
dataSource: A.value,
|
|
9540
9543
|
columns: fe.value,
|
|
9541
9544
|
tbodyClass: n.tbody(),
|
|
@@ -9556,7 +9559,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9556
9559
|
wrapClass: n.wrapper(),
|
|
9557
9560
|
viewStyle: Xt,
|
|
9558
9561
|
onScroll: ie
|
|
9559
|
-
},
|
|
9562
|
+
}, Do(At) ? At : {
|
|
9560
9563
|
default: () => [At]
|
|
9561
9564
|
}), xe && d("div", {
|
|
9562
9565
|
class: n.footer()
|
|
@@ -9606,15 +9609,15 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9606
9609
|
},
|
|
9607
9610
|
emits: ["change", "resizeColumn"],
|
|
9608
9611
|
setup(e, { emit: t }) {
|
|
9609
|
-
const
|
|
9612
|
+
const o = t, r = Fr();
|
|
9610
9613
|
function l() {
|
|
9611
9614
|
const c = {};
|
|
9612
|
-
for (const [m, h] of Object.entries(
|
|
9615
|
+
for (const [m, h] of Object.entries(r?.vnode.props ?? {}))
|
|
9613
9616
|
m !== "onChange" && m !== "onResizeColumn" && (c[m] = h);
|
|
9614
9617
|
return c;
|
|
9615
9618
|
}
|
|
9616
9619
|
function a(c, m, h) {
|
|
9617
|
-
|
|
9620
|
+
o(
|
|
9618
9621
|
"change",
|
|
9619
9622
|
c,
|
|
9620
9623
|
m,
|
|
@@ -9622,7 +9625,7 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9622
9625
|
);
|
|
9623
9626
|
}
|
|
9624
9627
|
function s(c, m) {
|
|
9625
|
-
|
|
9628
|
+
o("resizeColumn", c, m);
|
|
9626
9629
|
}
|
|
9627
9630
|
function n(c) {
|
|
9628
9631
|
return c;
|
|
@@ -9639,10 +9642,10 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9639
9642
|
function u(c) {
|
|
9640
9643
|
return c;
|
|
9641
9644
|
}
|
|
9642
|
-
return (c, m) => (
|
|
9645
|
+
return (c, m) => (Hr(), Vr(St(Ia), me(l(), {
|
|
9643
9646
|
onChange: a,
|
|
9644
9647
|
onResizeColumn: s
|
|
9645
|
-
}),
|
|
9648
|
+
}), Kr({ _: 2 }, [
|
|
9646
9649
|
c.$slots.bodyCell ? {
|
|
9647
9650
|
name: "bodyCell",
|
|
9648
9651
|
fn: Be((h) => [
|
|
@@ -9708,20 +9711,20 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9708
9711
|
} : void 0
|
|
9709
9712
|
]), 1040));
|
|
9710
9713
|
}
|
|
9711
|
-
}),
|
|
9714
|
+
}), xr = /* @__PURE__ */ J({
|
|
9712
9715
|
name: "VTableSummaryRow",
|
|
9713
9716
|
setup(e, {
|
|
9714
9717
|
slots: t
|
|
9715
9718
|
}) {
|
|
9716
|
-
const
|
|
9719
|
+
const o = he(ge, {});
|
|
9717
9720
|
return () => {
|
|
9718
|
-
const
|
|
9721
|
+
const r = o.subThemeSlots?.value;
|
|
9719
9722
|
return d("tr", {
|
|
9720
|
-
class:
|
|
9723
|
+
class: r?.summaryRow ?? ""
|
|
9721
9724
|
}, [t.default?.()]);
|
|
9722
9725
|
};
|
|
9723
9726
|
}
|
|
9724
|
-
}),
|
|
9727
|
+
}), wr = /* @__PURE__ */ J({
|
|
9725
9728
|
name: "VTableSummaryCell",
|
|
9726
9729
|
props: {
|
|
9727
9730
|
index: {
|
|
@@ -9744,15 +9747,15 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9744
9747
|
setup(e, {
|
|
9745
9748
|
slots: t
|
|
9746
9749
|
}) {
|
|
9747
|
-
const
|
|
9748
|
-
const i =
|
|
9750
|
+
const o = he(ge, {}), r = S(() => {
|
|
9751
|
+
const i = o.displayColumns?.value;
|
|
9749
9752
|
if (!i) return null;
|
|
9750
9753
|
const v = i[e.index];
|
|
9751
9754
|
if (!v?.fixed) return null;
|
|
9752
9755
|
const f = be(v) ?? e.index;
|
|
9753
|
-
return
|
|
9756
|
+
return o.fixedOffsets?.value?.get(f) ?? null;
|
|
9754
9757
|
}), l = S(() => {
|
|
9755
|
-
const i =
|
|
9758
|
+
const i = r.value;
|
|
9756
9759
|
if (!i) return;
|
|
9757
9760
|
const v = {
|
|
9758
9761
|
position: "sticky",
|
|
@@ -9760,17 +9763,17 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9760
9763
|
};
|
|
9761
9764
|
return i.left !== void 0 && (v.left = `${i.left}px`), i.right !== void 0 && (v.right = `${i.right}px`), v;
|
|
9762
9765
|
}), a = S(() => {
|
|
9763
|
-
const i =
|
|
9766
|
+
const i = r.value;
|
|
9764
9767
|
if (!i) return "";
|
|
9765
|
-
const v =
|
|
9768
|
+
const v = o.subThemeSlots?.value;
|
|
9766
9769
|
if (!v) return "";
|
|
9767
|
-
const f = [], u =
|
|
9770
|
+
const f = [], u = o.scrollState?.value?.atStart ?? !0, c = o.scrollState?.value?.atEnd ?? !0;
|
|
9768
9771
|
return i.isLastLeft && !u && f.push(v.fixedShadowLeft), i.isFirstRight && !c && f.push(v.fixedShadowRight), f.join(" ");
|
|
9769
9772
|
}), s = S(() => {
|
|
9770
|
-
const i =
|
|
9773
|
+
const i = o.subThemeSlots?.value, v = e.align ? qt[e.align] : "";
|
|
9771
9774
|
return ce(i?.summaryCell ?? "", v, a.value);
|
|
9772
9775
|
}), n = S(() => {
|
|
9773
|
-
const i =
|
|
9776
|
+
const i = o.displayColumns?.value;
|
|
9774
9777
|
if (!i) return l.value;
|
|
9775
9778
|
const v = i[e.index], f = {};
|
|
9776
9779
|
return v?.width && (f.width = typeof v.width == "number" ? `${v.width}px` : String(v.width)), {
|
|
@@ -9799,28 +9802,28 @@ const Ia = /* @__PURE__ */ J({
|
|
|
9799
9802
|
setup(e, {
|
|
9800
9803
|
slots: t
|
|
9801
9804
|
}) {
|
|
9802
|
-
const
|
|
9803
|
-
return ae(() => e.fixed, (
|
|
9804
|
-
|
|
9805
|
+
const o = he(ge, {});
|
|
9806
|
+
return ae(() => e.fixed, (r) => {
|
|
9807
|
+
o.registerSummaryFixed?.(r ?? !1);
|
|
9805
9808
|
}, {
|
|
9806
9809
|
immediate: !0
|
|
9807
9810
|
}), () => t.default?.();
|
|
9808
9811
|
}
|
|
9809
9812
|
}), za = Object.assign(Ea, {
|
|
9810
|
-
Row:
|
|
9811
|
-
Cell:
|
|
9812
|
-
}), Pa = Object.assign(Ra, { SELECTION_ALL:
|
|
9813
|
+
Row: xr,
|
|
9814
|
+
Cell: wr
|
|
9815
|
+
}), Pa = Object.assign(Ra, { SELECTION_ALL: ir, SELECTION_INVERT: cr, SELECTION_NONE: dr }), Na = za, Fa = xr, Va = wr;
|
|
9813
9816
|
export {
|
|
9814
|
-
|
|
9817
|
+
io as Button,
|
|
9815
9818
|
Kt as Checkbox,
|
|
9816
9819
|
Zl as Input,
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9820
|
+
Uo as Radio,
|
|
9821
|
+
ir as SELECTION_ALL,
|
|
9822
|
+
cr as SELECTION_INVERT,
|
|
9823
|
+
dr as SELECTION_NONE,
|
|
9821
9824
|
It as Scrollbar,
|
|
9822
9825
|
qt as TABLE_ALIGN_CLASSES,
|
|
9823
|
-
|
|
9826
|
+
Xo as Tooltip,
|
|
9824
9827
|
lt as VTABLE_GUILD_INJECTION_KEY,
|
|
9825
9828
|
Pa as VTable,
|
|
9826
9829
|
Ba as VTableGuildConfigProvider,
|
|
@@ -9828,18 +9831,18 @@ export {
|
|
|
9828
9831
|
Va as VTableSummaryCell,
|
|
9829
9832
|
Fa as VTableSummaryRow,
|
|
9830
9833
|
wn as VirtualList,
|
|
9831
|
-
|
|
9832
|
-
|
|
9834
|
+
Jo as buttonTheme,
|
|
9835
|
+
Qo as checkboxTheme,
|
|
9833
9836
|
ce as cn,
|
|
9834
9837
|
Oa as createVTableGuild,
|
|
9835
9838
|
Rt as getByDataIndex,
|
|
9836
|
-
|
|
9839
|
+
tr as inputTheme,
|
|
9837
9840
|
tt as mergeDeep,
|
|
9838
9841
|
Ke as mergeThemeConfigs,
|
|
9839
9842
|
La as optionalBoolProp,
|
|
9840
9843
|
Aa as optionalProp,
|
|
9841
9844
|
Ma as optionalStringProp,
|
|
9842
|
-
|
|
9845
|
+
er as radioTheme,
|
|
9843
9846
|
_a as requiredProp,
|
|
9844
9847
|
ja as resolveBuiltInLocale,
|
|
9845
9848
|
Nn as resolveBuiltInTableLocale,
|
|
@@ -9852,11 +9855,11 @@ export {
|
|
|
9852
9855
|
An as resolveTableThemePreset,
|
|
9853
9856
|
Le as resolveThemePreset,
|
|
9854
9857
|
Bn as resolveTooltipThemePreset,
|
|
9855
|
-
|
|
9858
|
+
rr as scrollbarTheme,
|
|
9856
9859
|
Kl as syncDocumentPresetAttr,
|
|
9857
|
-
|
|
9858
|
-
|
|
9860
|
+
Zo as tableTheme,
|
|
9861
|
+
or as tooltipTheme,
|
|
9859
9862
|
Hl as tv,
|
|
9860
|
-
|
|
9863
|
+
Co as useColumns,
|
|
9861
9864
|
Ue as useTheme
|
|
9862
9865
|
};
|