@vtable-guild/vtable-guild 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/index.d.ts +1 -1
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/index.full.mjs +771 -770
- package/dist/index.mjs +79 -78
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/Table.mjs +163 -163
- package/dist/table/src/components/TableCell.d.ts.map +1 -1
- package/dist/table/src/components/TableCell.mjs +1 -1
- package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/table/src/components/TableHeaderCell.mjs +1 -1
- package/dist/table/src/components/VTablePrebuiltCssMode.test.d.ts +2 -0
- package/dist/table/src/components/VTablePrebuiltCssMode.test.d.ts.map +1 -0
- package/dist/table/src/components/VTableSummaryCell.d.ts.map +1 -1
- package/dist/table/src/components/VTableSummaryCell.mjs +8 -8
- package/package.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Wt, inject as ue, computed as g, unref as
|
|
1
|
+
import { reactive as Wt, inject as ue, computed as g, unref as wt, defineComponent as le, ref as F, watch as ne, nextTick as rt, onMounted as Xe, onBeforeUnmount as De, createVNode as u, Fragment as io, Teleport as $t, Transition as Ot, h as ut, provide as oo, shallowRef as _e, cloneVNode as Cl, isVNode as St, onUnmounted as Ct, markRaw as kl, toRaw as Tl, onScopeDispose as Rl, Comment as Il, mergeProps as Ie, resolveDynamicComponent as nr, getCurrentInstance as El, createBlock as Dl, openBlock as zl, createSlots as Ml, withCtx as Fe, renderSlot as je, normalizeProps as st, guardReactiveProps as it } from "vue";
|
|
2
2
|
var Al = /\s+/g, _l = (e) => typeof e != "string" || !e ? e : e.replace(Al, " ").trim(), Lt = (...e) => {
|
|
3
3
|
const t = [], o = (r) => {
|
|
4
4
|
if (!r && r !== 0 && r !== 0n) return;
|
|
@@ -23,7 +23,7 @@ var Al = /\s+/g, _l = (e) => typeof e != "string" || !e ? e : e.replace(Al, " ")
|
|
|
23
23
|
n != null && o(n);
|
|
24
24
|
}
|
|
25
25
|
return t.length > 0 ? _l(t.join(" ")) : void 0;
|
|
26
|
-
},
|
|
26
|
+
}, Ro = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, we = (e) => {
|
|
27
27
|
if (!e || typeof e != "object") return !0;
|
|
28
28
|
for (const t in e) return !1;
|
|
29
29
|
return !0;
|
|
@@ -44,25 +44,25 @@ var Al = /\s+/g, _l = (e) => typeof e != "string" || !e ? e : e.replace(Al, " ")
|
|
|
44
44
|
o in e ? e[o] = Lt(e[o], r) : e[o] = r;
|
|
45
45
|
}
|
|
46
46
|
return e;
|
|
47
|
-
},
|
|
47
|
+
}, ar = (e, t) => {
|
|
48
48
|
for (let o = 0; o < e.length; o++) {
|
|
49
49
|
const r = e[o];
|
|
50
|
-
Array.isArray(r) ?
|
|
50
|
+
Array.isArray(r) ? ar(r, t) : r && t.push(r);
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, sr = (...e) => {
|
|
53
53
|
const t = [];
|
|
54
|
-
|
|
54
|
+
ar(e, t);
|
|
55
55
|
const o = [];
|
|
56
56
|
for (let r = 0; r < t.length; r++)
|
|
57
57
|
t[r] && o.push(t[r]);
|
|
58
58
|
return o;
|
|
59
|
-
},
|
|
59
|
+
}, ro = (e, t) => {
|
|
60
60
|
const o = {};
|
|
61
61
|
for (const r in e) {
|
|
62
62
|
const l = e[r];
|
|
63
63
|
if (r in t) {
|
|
64
64
|
const n = t[r];
|
|
65
|
-
Array.isArray(l) || Array.isArray(n) ? o[r] =
|
|
65
|
+
Array.isArray(l) || Array.isArray(n) ? o[r] = sr(n, l) : typeof l == "object" && typeof n == "object" && l && n ? o[r] = ro(l, n) : o[r] = n + " " + l;
|
|
66
66
|
} else
|
|
67
67
|
o[r] = l;
|
|
68
68
|
}
|
|
@@ -99,7 +99,7 @@ function Fl() {
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var Ne = Fl(), jl = (e) => {
|
|
103
103
|
const t = (r, l) => {
|
|
104
104
|
const {
|
|
105
105
|
extend: n = null,
|
|
@@ -108,8 +108,8 @@ var He = Fl(), jl = (e) => {
|
|
|
108
108
|
compoundVariants: d = [],
|
|
109
109
|
compoundSlots: a = [],
|
|
110
110
|
defaultVariants: v = {}
|
|
111
|
-
} = r, m = { ...Bl, ...l }, p = n?.base ? Lt(n.base, r?.base) : r?.base, c = n?.variants && !we(n.variants) ?
|
|
112
|
-
!we(m.twMergeConfig) && !Ol(m.twMergeConfig,
|
|
111
|
+
} = r, m = { ...Bl, ...l }, p = n?.base ? Lt(n.base, r?.base) : r?.base, c = n?.variants && !we(n.variants) ? ro(i, n.variants) : i, h = n?.defaultVariants && !we(n.defaultVariants) ? { ...n.defaultVariants, ...v } : v;
|
|
112
|
+
!we(m.twMergeConfig) && !Ol(m.twMergeConfig, Ne.cachedTwMergeConfig) && (Ne.didTwMergeConfigChange = !0, Ne.cachedTwMergeConfig = m.twMergeConfig);
|
|
113
113
|
const f = we(n?.slots), b = we(s) ? {} : {
|
|
114
114
|
// add "base" to the slots object
|
|
115
115
|
base: Lt(r?.base, f && n?.base),
|
|
@@ -117,7 +117,7 @@ var He = Fl(), jl = (e) => {
|
|
|
117
117
|
}, S = f ? b : Ll(
|
|
118
118
|
{ ...n?.slots },
|
|
119
119
|
we(b) ? { base: r?.base } : b
|
|
120
|
-
), I = we(n?.compoundVariants) ? d :
|
|
120
|
+
), I = we(n?.compoundVariants) ? d : sr(n?.compoundVariants, d), w = (E) => {
|
|
121
121
|
if (we(c) && we(s) && f)
|
|
122
122
|
return e(p, E?.class, E?.className)(m);
|
|
123
123
|
if (I && !Array.isArray(I))
|
|
@@ -134,10 +134,10 @@ var He = Fl(), jl = (e) => {
|
|
|
134
134
|
return null;
|
|
135
135
|
const z = Y?.[$] ?? E?.[$];
|
|
136
136
|
if (z === null) return null;
|
|
137
|
-
const x =
|
|
137
|
+
const x = Ro(z);
|
|
138
138
|
if (typeof x == "object")
|
|
139
139
|
return null;
|
|
140
|
-
const R = h?.[$], A = x ??
|
|
140
|
+
const R = h?.[$], A = x ?? Ro(R);
|
|
141
141
|
return M[A || "false"];
|
|
142
142
|
}, k = () => {
|
|
143
143
|
if (!c) return null;
|
|
@@ -270,7 +270,7 @@ var He = Fl(), jl = (e) => {
|
|
|
270
270
|
};
|
|
271
271
|
return {
|
|
272
272
|
tv: t,
|
|
273
|
-
createTV: (r) => (l, n) => t(l, n ?
|
|
273
|
+
createTV: (r) => (l, n) => t(l, n ? ro(r, n) : r)
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
const Hl = (e, t) => {
|
|
@@ -283,11 +283,11 @@ const Hl = (e, t) => {
|
|
|
283
283
|
}, Nl = (e, t) => ({
|
|
284
284
|
classGroupId: e,
|
|
285
285
|
validator: t
|
|
286
|
-
}),
|
|
286
|
+
}), ir = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
287
287
|
nextPart: e,
|
|
288
288
|
validators: t,
|
|
289
289
|
classGroupId: o
|
|
290
|
-
}), Bt = "-",
|
|
290
|
+
}), Bt = "-", Io = [], Pl = "arbitrary..", Vl = (e) => {
|
|
291
291
|
const t = Wl(e), {
|
|
292
292
|
conflictingClassGroups: o,
|
|
293
293
|
conflictingClassGroupModifiers: r
|
|
@@ -297,22 +297,22 @@ const Hl = (e, t) => {
|
|
|
297
297
|
if (s.startsWith("[") && s.endsWith("]"))
|
|
298
298
|
return Kl(s);
|
|
299
299
|
const i = s.split(Bt), d = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
300
|
-
return
|
|
300
|
+
return cr(i, d, t);
|
|
301
301
|
},
|
|
302
302
|
getConflictingClassGroupIds: (s, i) => {
|
|
303
303
|
if (i) {
|
|
304
304
|
const d = r[s], a = o[s];
|
|
305
|
-
return d ? a ? Hl(a, d) : d : a ||
|
|
305
|
+
return d ? a ? Hl(a, d) : d : a || Io;
|
|
306
306
|
}
|
|
307
|
-
return o[s] ||
|
|
307
|
+
return o[s] || Io;
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, cr = (e, t, o) => {
|
|
311
311
|
if (e.length - t === 0)
|
|
312
312
|
return o.classGroupId;
|
|
313
313
|
const l = e[t], n = o.nextPart.get(l);
|
|
314
314
|
if (n) {
|
|
315
|
-
const a =
|
|
315
|
+
const a = cr(e, t + 1, n);
|
|
316
316
|
if (a) return a;
|
|
317
317
|
}
|
|
318
318
|
const s = o.validators;
|
|
@@ -334,13 +334,13 @@ const Hl = (e, t) => {
|
|
|
334
334
|
} = e;
|
|
335
335
|
return $l(o, t);
|
|
336
336
|
}, $l = (e, t) => {
|
|
337
|
-
const o =
|
|
337
|
+
const o = ir();
|
|
338
338
|
for (const r in e) {
|
|
339
339
|
const l = e[r];
|
|
340
|
-
|
|
340
|
+
co(l, o, r, t);
|
|
341
341
|
}
|
|
342
342
|
return o;
|
|
343
|
-
},
|
|
343
|
+
}, co = (e, t, o, r) => {
|
|
344
344
|
const l = e.length;
|
|
345
345
|
for (let n = 0; n < l; n++) {
|
|
346
346
|
const s = e[n];
|
|
@@ -357,11 +357,11 @@ const Hl = (e, t) => {
|
|
|
357
357
|
}
|
|
358
358
|
Yl(e, t, o, r);
|
|
359
359
|
}, Gl = (e, t, o) => {
|
|
360
|
-
const r = e === "" ? t :
|
|
360
|
+
const r = e === "" ? t : dr(t, e);
|
|
361
361
|
r.classGroupId = o;
|
|
362
362
|
}, Xl = (e, t, o, r) => {
|
|
363
363
|
if (Ul(e)) {
|
|
364
|
-
|
|
364
|
+
co(e(r), t, o, r);
|
|
365
365
|
return;
|
|
366
366
|
}
|
|
367
367
|
t.validators === null && (t.validators = []), t.validators.push(Nl(o, e));
|
|
@@ -369,15 +369,15 @@ const Hl = (e, t) => {
|
|
|
369
369
|
const l = Object.entries(e), n = l.length;
|
|
370
370
|
for (let s = 0; s < n; s++) {
|
|
371
371
|
const [i, d] = l[s];
|
|
372
|
-
|
|
372
|
+
co(d, dr(t, i), o, r);
|
|
373
373
|
}
|
|
374
|
-
},
|
|
374
|
+
}, dr = (e, t) => {
|
|
375
375
|
let o = e;
|
|
376
376
|
const r = t.split(Bt), l = r.length;
|
|
377
377
|
for (let n = 0; n < l; n++) {
|
|
378
378
|
const s = r[n];
|
|
379
379
|
let i = o.nextPart.get(s);
|
|
380
|
-
i || (i =
|
|
380
|
+
i || (i = ir(), o.nextPart.set(s, i)), o = i;
|
|
381
381
|
}
|
|
382
382
|
return o;
|
|
383
383
|
}, Ul = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Zl = (e) => {
|
|
@@ -404,7 +404,7 @@ const Hl = (e, t) => {
|
|
|
404
404
|
n in o ? o[n] = s : l(n, s);
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
-
},
|
|
407
|
+
}, lo = "!", Eo = ":", Jl = [], Do = (e, t, o, r, l) => ({
|
|
408
408
|
modifiers: e,
|
|
409
409
|
hasImportantModifier: t,
|
|
410
410
|
baseClassName: o,
|
|
@@ -422,7 +422,7 @@ const Hl = (e, t) => {
|
|
|
422
422
|
for (let f = 0; f < v; f++) {
|
|
423
423
|
const b = l[f];
|
|
424
424
|
if (s === 0 && i === 0) {
|
|
425
|
-
if (b ===
|
|
425
|
+
if (b === Eo) {
|
|
426
426
|
n.push(l.slice(d, f)), d = f + 1;
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
@@ -435,19 +435,19 @@ const Hl = (e, t) => {
|
|
|
435
435
|
}
|
|
436
436
|
const m = n.length === 0 ? l : l.slice(d);
|
|
437
437
|
let p = m, c = !1;
|
|
438
|
-
m.endsWith(
|
|
438
|
+
m.endsWith(lo) ? (p = m.slice(0, -1), c = !0) : (
|
|
439
439
|
/**
|
|
440
440
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
441
441
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
442
442
|
*/
|
|
443
|
-
m.startsWith(
|
|
443
|
+
m.startsWith(lo) && (p = m.slice(1), c = !0)
|
|
444
444
|
);
|
|
445
445
|
const h = a && a > d ? a - d : void 0;
|
|
446
|
-
return
|
|
446
|
+
return Do(n, c, p, h);
|
|
447
447
|
};
|
|
448
448
|
if (t) {
|
|
449
|
-
const l = t +
|
|
450
|
-
r = (s) => s.startsWith(l) ? n(s.slice(l.length)) :
|
|
449
|
+
const l = t + Eo, n = r;
|
|
450
|
+
r = (s) => s.startsWith(l) ? n(s.slice(l.length)) : Do(Jl, !1, s, void 0, !0);
|
|
451
451
|
}
|
|
452
452
|
if (o) {
|
|
453
453
|
const l = r;
|
|
@@ -507,7 +507,7 @@ const Hl = (e, t) => {
|
|
|
507
507
|
}
|
|
508
508
|
b = !1;
|
|
509
509
|
}
|
|
510
|
-
const I = p.length === 0 ? "" : p.length === 1 ? p[0] : n(p).join(":"), w = c ? I +
|
|
510
|
+
const I = p.length === 0 ? "" : p.length === 1 ? p[0] : n(p).join(":"), w = c ? I + lo : I, O = w + S;
|
|
511
511
|
if (s.indexOf(O) > -1)
|
|
512
512
|
continue;
|
|
513
513
|
s.push(O);
|
|
@@ -522,16 +522,16 @@ const Hl = (e, t) => {
|
|
|
522
522
|
}, ln = (...e) => {
|
|
523
523
|
let t = 0, o, r, l = "";
|
|
524
524
|
for (; t < e.length; )
|
|
525
|
-
(o = e[t++]) && (r =
|
|
525
|
+
(o = e[t++]) && (r = ur(o)) && (l && (l += " "), l += r);
|
|
526
526
|
return l;
|
|
527
|
-
},
|
|
527
|
+
}, ur = (e) => {
|
|
528
528
|
if (typeof e == "string")
|
|
529
529
|
return e;
|
|
530
530
|
let t, o = "";
|
|
531
531
|
for (let r = 0; r < e.length; r++)
|
|
532
|
-
e[r] && (t =
|
|
532
|
+
e[r] && (t = ur(e[r])) && (o && (o += " "), o += t);
|
|
533
533
|
return o;
|
|
534
|
-
},
|
|
534
|
+
}, no = (e, ...t) => {
|
|
535
535
|
let o, r, l, n;
|
|
536
536
|
const s = (d) => {
|
|
537
537
|
const a = t.reduce((v, m) => m(v), e());
|
|
@@ -544,22 +544,22 @@ const Hl = (e, t) => {
|
|
|
544
544
|
return l(d, v), v;
|
|
545
545
|
};
|
|
546
546
|
return n = s, (...d) => n(ln(...d));
|
|
547
|
-
}, nn = [],
|
|
547
|
+
}, nn = [], he = (e) => {
|
|
548
548
|
const t = (o) => o[e] || nn;
|
|
549
549
|
return t.isThemeGetter = !0, t;
|
|
550
|
-
},
|
|
550
|
+
}, fr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, an = /^\d+\/\d+$/, sn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cn = /\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$/, dn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, un = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => an.test(e), oe = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => !!e && Number.isInteger(Number(e)), Ut = (e) => e.endsWith("%") && oe(e.slice(0, -1)), He = (e) => sn.test(e), vn = () => !0, mn = (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
|
cn.test(e) && !dn.test(e)
|
|
555
|
-
),
|
|
556
|
-
const r =
|
|
555
|
+
), mr = () => !1, hn = (e) => un.test(e), pn = (e) => fn.test(e), bn = (e) => !K(e) && !W(e), gn = (e) => ft(e, br, mr), K = (e) => fr.test(e), ot = (e) => ft(e, gr, mn), Zt = (e) => ft(e, Cn, oe), zo = (e) => ft(e, hr, mr), yn = (e) => ft(e, pr, pn), Et = (e) => ft(e, yr, hn), W = (e) => vr.test(e), bt = (e) => vt(e, gr), xn = (e) => vt(e, kn), Mo = (e) => vt(e, hr), wn = (e) => vt(e, br), Sn = (e) => vt(e, pr), Dt = (e) => vt(e, yr, !0), ft = (e, t, o) => {
|
|
556
|
+
const r = fr.exec(e);
|
|
557
557
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
558
|
-
},
|
|
559
|
-
const r =
|
|
558
|
+
}, vt = (e, t, o = !1) => {
|
|
559
|
+
const r = vr.exec(e);
|
|
560
560
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
561
|
-
},
|
|
562
|
-
const e =
|
|
561
|
+
}, hr = (e) => e === "position" || e === "percentage", pr = (e) => e === "image" || e === "url", br = (e) => e === "length" || e === "size" || e === "bg-size", gr = (e) => e === "length", Cn = (e) => e === "number", kn = (e) => e === "family-name", yr = (e) => e === "shadow", ao = () => {
|
|
562
|
+
const e = he("color"), t = he("font"), o = he("text"), r = he("font-weight"), l = he("tracking"), n = he("leading"), s = he("breakpoint"), i = he("container"), d = he("spacing"), a = he("radius"), v = he("shadow"), m = he("inset-shadow"), p = he("text-shadow"), c = he("drop-shadow"), h = he("blur"), f = he("perspective"), b = he("aspect"), S = he("ease"), I = he("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
563
563
|
"center",
|
|
564
564
|
"top",
|
|
565
565
|
"bottom",
|
|
@@ -577,15 +577,15 @@ const Hl = (e, t) => {
|
|
|
577
577
|
"bottom-left",
|
|
578
578
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
579
579
|
"left-bottom"
|
|
580
|
-
], E = () => [...O(), W, K], y = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], T = () => [W, K, d], C = () => [
|
|
581
|
-
span: ["full",
|
|
582
|
-
},
|
|
580
|
+
], E = () => [...O(), W, K], y = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], T = () => [W, K, d], C = () => [ct, "full", "auto", ...T()], D = () => [$e, "none", "subgrid", W, K], j = () => ["auto", {
|
|
581
|
+
span: ["full", $e, W, K]
|
|
582
|
+
}, $e, W, K], Z = () => [$e, "auto", W, K], ee = () => ["auto", "min", "max", "fr", W, K], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...T()], Y = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], M = () => [e, W, K], z = () => [...O(), Mo, zo, {
|
|
583
583
|
position: [W, K]
|
|
584
584
|
}], x = () => ["no-repeat", {
|
|
585
585
|
repeat: ["", "x", "y", "space", "round"]
|
|
586
586
|
}], R = () => ["auto", "cover", "contain", wn, gn, {
|
|
587
587
|
size: [W, K]
|
|
588
|
-
}], A = () => [
|
|
588
|
+
}], A = () => [Ut, bt, ot], _ = () => [
|
|
589
589
|
// Deprecated since Tailwind CSS v4.0.0
|
|
590
590
|
"",
|
|
591
591
|
"none",
|
|
@@ -593,35 +593,35 @@ const Hl = (e, t) => {
|
|
|
593
593
|
a,
|
|
594
594
|
W,
|
|
595
595
|
K
|
|
596
|
-
], H = () => ["", oe,
|
|
596
|
+
], H = () => ["", oe, bt, ot], N = () => ["solid", "dashed", "dotted", "double"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [oe, Ut, Mo, zo], se = () => [
|
|
597
597
|
// Deprecated since Tailwind CSS v4.0.0
|
|
598
598
|
"",
|
|
599
599
|
"none",
|
|
600
600
|
h,
|
|
601
601
|
W,
|
|
602
602
|
K
|
|
603
|
-
], ce = () => ["none", oe, W, K],
|
|
603
|
+
], ce = () => ["none", oe, W, K], me = () => ["none", oe, W, K], ye = () => [oe, W, K], de = () => [ct, "full", ...T()];
|
|
604
604
|
return {
|
|
605
605
|
cacheSize: 500,
|
|
606
606
|
theme: {
|
|
607
607
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
608
608
|
aspect: ["video"],
|
|
609
|
-
blur: [
|
|
610
|
-
breakpoint: [
|
|
609
|
+
blur: [He],
|
|
610
|
+
breakpoint: [He],
|
|
611
611
|
color: [vn],
|
|
612
|
-
container: [
|
|
613
|
-
"drop-shadow": [
|
|
612
|
+
container: [He],
|
|
613
|
+
"drop-shadow": [He],
|
|
614
614
|
ease: ["in", "out", "in-out"],
|
|
615
615
|
font: [bn],
|
|
616
616
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
617
|
-
"inset-shadow": [
|
|
617
|
+
"inset-shadow": [He],
|
|
618
618
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
619
619
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
620
|
-
radius: [
|
|
621
|
-
shadow: [
|
|
620
|
+
radius: [He],
|
|
621
|
+
shadow: [He],
|
|
622
622
|
spacing: ["px", oe],
|
|
623
|
-
text: [
|
|
624
|
-
"text-shadow": [
|
|
623
|
+
text: [He],
|
|
624
|
+
"text-shadow": [He],
|
|
625
625
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
626
626
|
},
|
|
627
627
|
classGroups: {
|
|
@@ -633,7 +633,7 @@ const Hl = (e, t) => {
|
|
|
633
633
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
634
634
|
*/
|
|
635
635
|
aspect: [{
|
|
636
|
-
aspect: ["auto", "square",
|
|
636
|
+
aspect: ["auto", "square", ct, K, W, b]
|
|
637
637
|
}],
|
|
638
638
|
/**
|
|
639
639
|
* Container
|
|
@@ -846,7 +846,7 @@ const Hl = (e, t) => {
|
|
|
846
846
|
* @see https://tailwindcss.com/docs/z-index
|
|
847
847
|
*/
|
|
848
848
|
z: [{
|
|
849
|
-
z: [
|
|
849
|
+
z: [$e, "auto", W, K]
|
|
850
850
|
}],
|
|
851
851
|
// ------------------------
|
|
852
852
|
// --- Flexbox and Grid ---
|
|
@@ -856,7 +856,7 @@ const Hl = (e, t) => {
|
|
|
856
856
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
857
857
|
*/
|
|
858
858
|
basis: [{
|
|
859
|
-
basis: [
|
|
859
|
+
basis: [ct, "full", "auto", i, ...T()]
|
|
860
860
|
}],
|
|
861
861
|
/**
|
|
862
862
|
* Flex Direction
|
|
@@ -877,7 +877,7 @@ const Hl = (e, t) => {
|
|
|
877
877
|
* @see https://tailwindcss.com/docs/flex
|
|
878
878
|
*/
|
|
879
879
|
flex: [{
|
|
880
|
-
flex: [oe,
|
|
880
|
+
flex: [oe, ct, "auto", "initial", "none", K]
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Flex Grow
|
|
@@ -898,7 +898,7 @@ const Hl = (e, t) => {
|
|
|
898
898
|
* @see https://tailwindcss.com/docs/order
|
|
899
899
|
*/
|
|
900
900
|
order: [{
|
|
901
|
-
order: [
|
|
901
|
+
order: [$e, "first", "last", "none", W, K]
|
|
902
902
|
}],
|
|
903
903
|
/**
|
|
904
904
|
* Grid Template Columns
|
|
@@ -1293,7 +1293,7 @@ const Hl = (e, t) => {
|
|
|
1293
1293
|
* @see https://tailwindcss.com/docs/font-size
|
|
1294
1294
|
*/
|
|
1295
1295
|
"font-size": [{
|
|
1296
|
-
text: ["base", o,
|
|
1296
|
+
text: ["base", o, bt, ot]
|
|
1297
1297
|
}],
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Font Smoothing
|
|
@@ -1310,14 +1310,14 @@ const Hl = (e, t) => {
|
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1311
1311
|
*/
|
|
1312
1312
|
"font-weight": [{
|
|
1313
|
-
font: [r, W,
|
|
1313
|
+
font: [r, W, Zt]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Font Stretch
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1318
1318
|
*/
|
|
1319
1319
|
"font-stretch": [{
|
|
1320
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1320
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ut, K]
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Font Family
|
|
@@ -1368,7 +1368,7 @@ const Hl = (e, t) => {
|
|
|
1368
1368
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1369
1369
|
*/
|
|
1370
1370
|
"line-clamp": [{
|
|
1371
|
-
"line-clamp": [oe, "none", W,
|
|
1371
|
+
"line-clamp": [oe, "none", W, Zt]
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Line Height
|
|
@@ -1576,9 +1576,9 @@ const Hl = (e, t) => {
|
|
|
1576
1576
|
bg: ["none", {
|
|
1577
1577
|
linear: [{
|
|
1578
1578
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1579
|
-
},
|
|
1579
|
+
}, $e, W, K],
|
|
1580
1580
|
radial: ["", W, K],
|
|
1581
|
-
conic: [
|
|
1581
|
+
conic: [$e, W, K]
|
|
1582
1582
|
}, Sn, yn]
|
|
1583
1583
|
}],
|
|
1584
1584
|
/**
|
|
@@ -1928,7 +1928,7 @@ const Hl = (e, t) => {
|
|
|
1928
1928
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1929
1929
|
*/
|
|
1930
1930
|
"outline-w": [{
|
|
1931
|
-
outline: ["", oe,
|
|
1931
|
+
outline: ["", oe, bt, ot]
|
|
1932
1932
|
}],
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Outline Color
|
|
@@ -2575,28 +2575,28 @@ const Hl = (e, t) => {
|
|
|
2575
2575
|
* @see https://tailwindcss.com/docs/scale
|
|
2576
2576
|
*/
|
|
2577
2577
|
scale: [{
|
|
2578
|
-
scale:
|
|
2578
|
+
scale: me()
|
|
2579
2579
|
}],
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Scale X
|
|
2582
2582
|
* @see https://tailwindcss.com/docs/scale
|
|
2583
2583
|
*/
|
|
2584
2584
|
"scale-x": [{
|
|
2585
|
-
"scale-x":
|
|
2585
|
+
"scale-x": me()
|
|
2586
2586
|
}],
|
|
2587
2587
|
/**
|
|
2588
2588
|
* Scale Y
|
|
2589
2589
|
* @see https://tailwindcss.com/docs/scale
|
|
2590
2590
|
*/
|
|
2591
2591
|
"scale-y": [{
|
|
2592
|
-
"scale-y":
|
|
2592
|
+
"scale-y": me()
|
|
2593
2593
|
}],
|
|
2594
2594
|
/**
|
|
2595
2595
|
* Scale Z
|
|
2596
2596
|
* @see https://tailwindcss.com/docs/scale
|
|
2597
2597
|
*/
|
|
2598
2598
|
"scale-z": [{
|
|
2599
|
-
"scale-z":
|
|
2599
|
+
"scale-z": me()
|
|
2600
2600
|
}],
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Scale 3D
|
|
@@ -2608,21 +2608,21 @@ const Hl = (e, t) => {
|
|
|
2608
2608
|
* @see https://tailwindcss.com/docs/skew
|
|
2609
2609
|
*/
|
|
2610
2610
|
skew: [{
|
|
2611
|
-
skew:
|
|
2611
|
+
skew: ye()
|
|
2612
2612
|
}],
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Skew X
|
|
2615
2615
|
* @see https://tailwindcss.com/docs/skew
|
|
2616
2616
|
*/
|
|
2617
2617
|
"skew-x": [{
|
|
2618
|
-
"skew-x":
|
|
2618
|
+
"skew-x": ye()
|
|
2619
2619
|
}],
|
|
2620
2620
|
/**
|
|
2621
2621
|
* Skew Y
|
|
2622
2622
|
* @see https://tailwindcss.com/docs/skew
|
|
2623
2623
|
*/
|
|
2624
2624
|
"skew-y": [{
|
|
2625
|
-
"skew-y":
|
|
2625
|
+
"skew-y": ye()
|
|
2626
2626
|
}],
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Transform
|
|
@@ -2953,7 +2953,7 @@ const Hl = (e, t) => {
|
|
|
2953
2953
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2954
2954
|
*/
|
|
2955
2955
|
"stroke-w": [{
|
|
2956
|
-
stroke: [oe,
|
|
2956
|
+
stroke: [oe, bt, ot, Zt]
|
|
2957
2957
|
}],
|
|
2958
2958
|
/**
|
|
2959
2959
|
* Stroke
|
|
@@ -3034,20 +3034,20 @@ const Hl = (e, t) => {
|
|
|
3034
3034
|
experimentalParseClassName: r,
|
|
3035
3035
|
extend: l = {},
|
|
3036
3036
|
override: n = {}
|
|
3037
|
-
}) => (
|
|
3037
|
+
}) => (gt(e, "cacheSize", t), gt(e, "prefix", o), gt(e, "experimentalParseClassName", r), zt(e.theme, n.theme), zt(e.classGroups, n.classGroups), zt(e.conflictingClassGroups, n.conflictingClassGroups), zt(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), gt(e, "orderSensitiveModifiers", n.orderSensitiveModifiers), Mt(e.theme, l.theme), Mt(e.classGroups, l.classGroups), Mt(e.conflictingClassGroups, l.conflictingClassGroups), Mt(e.conflictingClassGroupModifiers, l.conflictingClassGroupModifiers), xr(e, l, "orderSensitiveModifiers"), e), gt = (e, t, o) => {
|
|
3038
3038
|
o !== void 0 && (e[t] = o);
|
|
3039
3039
|
}, zt = (e, t) => {
|
|
3040
3040
|
if (t)
|
|
3041
3041
|
for (const o in t)
|
|
3042
|
-
|
|
3042
|
+
gt(e, o, t[o]);
|
|
3043
3043
|
}, Mt = (e, t) => {
|
|
3044
3044
|
if (t)
|
|
3045
3045
|
for (const o in t)
|
|
3046
|
-
|
|
3047
|
-
},
|
|
3046
|
+
xr(e, t, o);
|
|
3047
|
+
}, xr = (e, t, o) => {
|
|
3048
3048
|
const r = t[o];
|
|
3049
3049
|
r !== void 0 && (e[o] = e[o] ? e[o].concat(r) : r);
|
|
3050
|
-
}, Rn = (e, ...t) => typeof e == "function" ? ao
|
|
3050
|
+
}, Rn = (e, ...t) => typeof e == "function" ? no(ao, e, ...t) : no(() => Tn(ao(), e), ...t), In = /* @__PURE__ */ no(ao);
|
|
3051
3051
|
var En = (e) => we(e) ? In : Rn({
|
|
3052
3052
|
...e,
|
|
3053
3053
|
extend: {
|
|
@@ -3057,10 +3057,10 @@ var En = (e) => we(e) ? In : Rn({
|
|
|
3057
3057
|
conflictingClassGroups: e.conflictingClassGroups,
|
|
3058
3058
|
...e.extend
|
|
3059
3059
|
}
|
|
3060
|
-
}),
|
|
3060
|
+
}), wr = (e, t) => {
|
|
3061
3061
|
const o = Lt(e);
|
|
3062
|
-
return !o || !(t?.twMerge ?? !0) ? o : ((!
|
|
3063
|
-
}, re = (...e) =>
|
|
3062
|
+
return !o || !(t?.twMerge ?? !0) ? o : ((!Ne.cachedTwMerge || Ne.didTwMergeConfigChange) && (Ne.didTwMergeConfigChange = !1, Ne.cachedTwMerge = En(Ne.cachedTwMergeConfig)), Ne.cachedTwMerge(o) || void 0);
|
|
3063
|
+
}, re = (...e) => wr(e, {}), Dn = (...e) => (t) => wr(e, t), { createTV: zn } = jl(Dn);
|
|
3064
3064
|
const Mn = zn({
|
|
3065
3065
|
twMerge: !0,
|
|
3066
3066
|
twMergeConfig: {
|
|
@@ -3073,11 +3073,11 @@ const Mn = zn({
|
|
|
3073
3073
|
// shadow: [{ shadow: ['surface', 'elevated'] }],
|
|
3074
3074
|
// },
|
|
3075
3075
|
}
|
|
3076
|
-
}), Ft = "vtg",
|
|
3077
|
-
function
|
|
3076
|
+
}), Ft = "vtg", uo = "prebuilt";
|
|
3077
|
+
function kt(e) {
|
|
3078
3078
|
return (e ?? Ft).trim().replace(/-+$/, "") || Ft;
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3080
|
+
function Sr(e) {
|
|
3081
3081
|
const t = [];
|
|
3082
3082
|
let o = 0, r = 0, l = 0;
|
|
3083
3083
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3086,36 +3086,36 @@ function Cr(e) {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
return t.push(e.slice(l)), t;
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3090
|
-
return !e || e.startsWith("[") || e.startsWith(`${t}-`) || e.startsWith(`-${t}-`) ? e : e.startsWith("!") ? `!${
|
|
3089
|
+
function Cr(e, t) {
|
|
3090
|
+
return !e || e.startsWith("[") || e.startsWith(`${t}-`) || e.startsWith(`-${t}-`) ? e : e.startsWith("!") ? `!${Cr(e.slice(1), t)}` : e.startsWith("-") ? `-${t}-${e.slice(1)}` : `${t}-${e}`;
|
|
3091
3091
|
}
|
|
3092
3092
|
function An(e, t) {
|
|
3093
3093
|
return e.startsWith(`!${t}-`) ? `!${e.slice(t.length + 2)}` : e.startsWith(`-${t}-`) ? `-${e.slice(t.length + 2)}` : e.startsWith(`${t}-`) ? e.slice(t.length + 1) : e;
|
|
3094
3094
|
}
|
|
3095
3095
|
function _n(e, t) {
|
|
3096
|
-
const o =
|
|
3096
|
+
const o = Sr(e), r = o[o.length - 1] ?? "";
|
|
3097
3097
|
return r.startsWith(`${t}-`) || r.startsWith(`-${t}-`) || r.startsWith(`!${t}-`);
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3100
|
-
const o =
|
|
3099
|
+
function kr(e, t) {
|
|
3100
|
+
const o = Sr(e), r = o.pop() ?? "";
|
|
3101
3101
|
return o.push(t(r)), o.join(":");
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3104
|
-
if (t !==
|
|
3105
|
-
const r =
|
|
3106
|
-
return e.split(/\s+/).filter(Boolean).map((l) =>
|
|
3103
|
+
function Ge(e, t, o = Ft) {
|
|
3104
|
+
if (t !== uo || !e) return e;
|
|
3105
|
+
const r = kt(o);
|
|
3106
|
+
return e.split(/\s+/).filter(Boolean).map((l) => kr(l, (n) => Cr(n, r))).join(" ");
|
|
3107
3107
|
}
|
|
3108
3108
|
function On(e, t) {
|
|
3109
|
-
return e.split(/\s+/).filter(Boolean).map((o) =>
|
|
3109
|
+
return e.split(/\s+/).filter(Boolean).map((o) => kr(o, (r) => An(r, t))).join(" ");
|
|
3110
3110
|
}
|
|
3111
3111
|
function Ln(e, t, ...o) {
|
|
3112
|
-
if (e !==
|
|
3113
|
-
const r =
|
|
3112
|
+
if (e !== uo) return re(...o) ?? "";
|
|
3113
|
+
const r = kt(t), l = [], n = [];
|
|
3114
3114
|
for (const d of o)
|
|
3115
3115
|
if (d)
|
|
3116
3116
|
for (const a of d.split(/\s+/).filter(Boolean))
|
|
3117
3117
|
_n(a, r) ? l.push(a) : n.push(a);
|
|
3118
|
-
const s =
|
|
3118
|
+
const s = Ge(
|
|
3119
3119
|
re(On(l.join(" "), r)) ?? "",
|
|
3120
3120
|
e,
|
|
3121
3121
|
r
|
|
@@ -3123,7 +3123,7 @@ function Ln(e, t, ...o) {
|
|
|
3123
3123
|
return [s, i].filter(Boolean).join(" ");
|
|
3124
3124
|
}
|
|
3125
3125
|
function jt(e, t, o) {
|
|
3126
|
-
if (typeof e == "string") return
|
|
3126
|
+
if (typeof e == "string") return Ge(e, t, o);
|
|
3127
3127
|
if (Array.isArray(e)) return e.map((l) => jt(l, t, o));
|
|
3128
3128
|
if (!e || typeof e != "object") return e;
|
|
3129
3129
|
const r = {};
|
|
@@ -3131,13 +3131,13 @@ function jt(e, t, o) {
|
|
|
3131
3131
|
r[l] = jt(n, t, o);
|
|
3132
3132
|
return r;
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3134
|
+
function Ao(e, t, o) {
|
|
3135
3135
|
const r = { ...e };
|
|
3136
3136
|
return "class" in r && (r.class = jt(r.class, t, o)), r;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3139
|
-
if (t !==
|
|
3140
|
-
const r =
|
|
3138
|
+
function Tr(e, t, o = Ft) {
|
|
3139
|
+
if (t !== uo) return e;
|
|
3140
|
+
const r = kt(o), l = e.variants ? Object.fromEntries(
|
|
3141
3141
|
Object.entries(e.variants).map(([n, s]) => [
|
|
3142
3142
|
n,
|
|
3143
3143
|
Object.fromEntries(
|
|
@@ -3153,87 +3153,87 @@ function Bn(e, t, o = Ft) {
|
|
|
3153
3153
|
slots: Object.fromEntries(
|
|
3154
3154
|
Object.entries(e.slots ?? {}).map(([n, s]) => [
|
|
3155
3155
|
n,
|
|
3156
|
-
|
|
3156
|
+
Ge(s, t, r)
|
|
3157
3157
|
])
|
|
3158
3158
|
),
|
|
3159
3159
|
variants: l,
|
|
3160
3160
|
compoundVariants: e.compoundVariants?.map(
|
|
3161
|
-
(n) =>
|
|
3161
|
+
(n) => Ao(n, t, r)
|
|
3162
3162
|
),
|
|
3163
3163
|
compoundSlots: e.compoundSlots?.map(
|
|
3164
|
-
(n) =>
|
|
3164
|
+
(n) => Ao(n, t, r)
|
|
3165
3165
|
)
|
|
3166
3166
|
};
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function Fs(e) {
|
|
3169
3169
|
return {
|
|
3170
3170
|
type: [String, Number, Boolean, Object, Array, Function],
|
|
3171
3171
|
required: !1,
|
|
3172
3172
|
default: e
|
|
3173
3173
|
};
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function js() {
|
|
3176
3176
|
return {
|
|
3177
3177
|
type: [String, Number, Boolean, Object, Array, Function],
|
|
3178
3178
|
required: !0
|
|
3179
3179
|
};
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function Hs(e = !1) {
|
|
3182
3182
|
return {
|
|
3183
3183
|
type: Boolean,
|
|
3184
3184
|
required: !1,
|
|
3185
3185
|
default: e
|
|
3186
3186
|
};
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function Ns(e) {
|
|
3189
3189
|
return {
|
|
3190
3190
|
type: String,
|
|
3191
3191
|
required: !1,
|
|
3192
3192
|
default: e
|
|
3193
3193
|
};
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function Ps(e, t) {
|
|
3196
3196
|
}
|
|
3197
3197
|
const lt = /* @__PURE__ */ Symbol("vtable-guild");
|
|
3198
|
-
function
|
|
3198
|
+
function Bn(e) {
|
|
3199
3199
|
typeof document > "u" || document.documentElement.setAttribute("data-vtg-preset", e);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function Vs(e = {}) {
|
|
3202
3202
|
return {
|
|
3203
3203
|
install(t) {
|
|
3204
3204
|
const o = Wt({
|
|
3205
3205
|
themePreset: e.themePreset ?? "antdv",
|
|
3206
3206
|
cssMode: e.cssMode ?? "prebuilt",
|
|
3207
|
-
classPrefix:
|
|
3207
|
+
classPrefix: kt(e.classPrefix),
|
|
3208
3208
|
theme: e.theme ?? {},
|
|
3209
3209
|
locale: e.locale ?? "zh-CN",
|
|
3210
3210
|
locales: e.locales ?? {},
|
|
3211
3211
|
localeOverrides: e.localeOverrides ?? {},
|
|
3212
3212
|
compatClass: e.compatClass
|
|
3213
3213
|
});
|
|
3214
|
-
t.provide(lt, o),
|
|
3214
|
+
t.provide(lt, o), Bn(o.themePreset);
|
|
3215
3215
|
}
|
|
3216
3216
|
};
|
|
3217
3217
|
}
|
|
3218
3218
|
function nt(e, t, o, r) {
|
|
3219
3219
|
const l = ue(lt, null), n = g(() => l?.cssMode ?? "prebuilt"), s = g(() => l?.classPrefix ?? "vtg"), i = l?.compatClass ? r?.compatClasses : void 0, d = i ? g(() => {
|
|
3220
3220
|
const m = l?.theme?.[e], p = {
|
|
3221
|
-
...
|
|
3221
|
+
...wt(t).defaultVariants,
|
|
3222
3222
|
...m?.defaultVariants
|
|
3223
3223
|
};
|
|
3224
|
-
return
|
|
3224
|
+
return Fn(i, o, p);
|
|
3225
3225
|
}) : null, a = g(() => {
|
|
3226
|
-
const m =
|
|
3227
|
-
|
|
3226
|
+
const m = Tr(
|
|
3227
|
+
wt(t),
|
|
3228
3228
|
n.value,
|
|
3229
3229
|
s.value
|
|
3230
|
-
), p = l?.theme?.[e], c =
|
|
3230
|
+
), p = l?.theme?.[e], c = qe(m, p), h = Mn(c), f = {};
|
|
3231
3231
|
if (c.variants)
|
|
3232
3232
|
for (const b of Object.keys(c.variants))
|
|
3233
3233
|
b in o && o[b] !== void 0 && (f[b] = o[b]);
|
|
3234
3234
|
return h(f);
|
|
3235
3235
|
}), v = {};
|
|
3236
|
-
for (const m of Object.keys(
|
|
3236
|
+
for (const m of Object.keys(wt(t).slots))
|
|
3237
3237
|
v[m] = () => {
|
|
3238
3238
|
const p = a.value, c = typeof p[m] == "function" ? p[m]() : p[m] ?? "", f = (o.ui ?? {})[m] ?? "", b = m === "root" ? o.class ?? "" : "", S = Ln(n.value, s.value, c, f, b) ?? "", I = d?.value[m];
|
|
3239
3239
|
return I ? S ? `${I} ${S}` : I : S;
|
|
@@ -3242,7 +3242,7 @@ function nt(e, t, o, r) {
|
|
|
3242
3242
|
slots: v
|
|
3243
3243
|
};
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3245
|
+
function Fn(e, t, o) {
|
|
3246
3246
|
const r = {};
|
|
3247
3247
|
for (const [n, s] of Object.entries(e.slots ?? {}))
|
|
3248
3248
|
(r[n] ??= []).push(s);
|
|
@@ -3259,17 +3259,17 @@ function jn(e, t, o) {
|
|
|
3259
3259
|
l[n] = [...new Set(s.join(" ").split(/\s+/).filter(Boolean))].join(" ");
|
|
3260
3260
|
return l;
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function qe(e, t) {
|
|
3263
3263
|
return t ? {
|
|
3264
3264
|
// ---- slots: cn() 智能合并 ----
|
|
3265
3265
|
// 示例:base.th = 'px-4 text-left', override.th = 'px-6'
|
|
3266
3266
|
// → cn('px-4 text-left', 'px-6') → 'text-left px-6'
|
|
3267
|
-
slots:
|
|
3267
|
+
slots: jn(e.slots ?? {}, t.slots),
|
|
3268
3268
|
// ---- variants: 深合并 ----
|
|
3269
3269
|
// 示例:base.variants.size.small = { th: 'px-2' },
|
|
3270
3270
|
// override.variants.size.small = { th: 'px-3' }
|
|
3271
3271
|
// → { th: cn('px-2', 'px-3') } → { th: 'px-3' }
|
|
3272
|
-
variants:
|
|
3272
|
+
variants: Hn(e.variants, t.variants),
|
|
3273
3273
|
// ---- defaultVariants: 浅合并 ----
|
|
3274
3274
|
// 示例:base = { size: 'large', bordered: false },
|
|
3275
3275
|
// override = { size: 'small' }
|
|
@@ -3285,14 +3285,14 @@ function $e(e, t) {
|
|
|
3285
3285
|
compoundSlots: [...e.compoundSlots ?? [], ...t.compoundSlots ?? []]
|
|
3286
3286
|
} : e;
|
|
3287
3287
|
}
|
|
3288
|
-
function
|
|
3288
|
+
function jn(e, t) {
|
|
3289
3289
|
if (!t) return e;
|
|
3290
3290
|
const o = { ...e };
|
|
3291
3291
|
for (const [r, l] of Object.entries(t))
|
|
3292
3292
|
o[r] = r in e ? re(e[r], l) ?? "" : l;
|
|
3293
3293
|
return o;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function Hn(e, t) {
|
|
3296
3296
|
if (!e && !t) return;
|
|
3297
3297
|
if (!e) return t;
|
|
3298
3298
|
if (!t) return e;
|
|
@@ -3321,24 +3321,24 @@ function Nn(e, t) {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
return o;
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function _o(e) {
|
|
3325
3325
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function dt(e, t) {
|
|
3328
3328
|
if (!t) return { ...e };
|
|
3329
3329
|
const o = { ...e };
|
|
3330
3330
|
for (const [r, l] of Object.entries(t)) {
|
|
3331
3331
|
if (l === void 0) continue;
|
|
3332
3332
|
const n = o[r];
|
|
3333
|
-
if (
|
|
3334
|
-
o[r] =
|
|
3333
|
+
if (_o(n) && _o(l)) {
|
|
3334
|
+
o[r] = dt(n, l);
|
|
3335
3335
|
continue;
|
|
3336
3336
|
}
|
|
3337
3337
|
o[r] = l;
|
|
3338
3338
|
}
|
|
3339
3339
|
return o;
|
|
3340
3340
|
}
|
|
3341
|
-
const
|
|
3341
|
+
const Nn = {
|
|
3342
3342
|
slots: {
|
|
3343
3343
|
content: ["text-white max-w-[250px] break-words relative", "text-[length:var(--vtg-tooltip-font-size)]", "leading-[1.5715]", "bg-[color:var(--vtg-tooltip-bg)]", "rounded-[var(--vtg-tooltip-border-radius)]", "p-[var(--vtg-tooltip-padding)]", "shadow-[0_6px_16px_0_rgba(0,0,0,0.08),0_3px_6px_-4px_rgba(0,0,0,0.12),0_9px_28px_8px_rgba(0,0,0,0.05)]"].join(" "),
|
|
3344
3344
|
arrow: "absolute block pointer-events-none",
|
|
@@ -3399,7 +3399,7 @@ const Pn = {
|
|
|
3399
3399
|
}) {
|
|
3400
3400
|
const {
|
|
3401
3401
|
slots: o
|
|
3402
|
-
} = nt("tooltip",
|
|
3402
|
+
} = nt("tooltip", Nn, e), r = F(null), l = F(null), n = F(!1);
|
|
3403
3403
|
let s = null, i = null;
|
|
3404
3404
|
const d = g(() => e.open !== void 0), a = g(() => d.value ? e.open : n.value), v = F({
|
|
3405
3405
|
top: 0,
|
|
@@ -3459,7 +3459,7 @@ const Pn = {
|
|
|
3459
3459
|
k ? (h(), rt(() => c())) : f();
|
|
3460
3460
|
}), ne(() => e.placement, () => {
|
|
3461
3461
|
a.value && rt(() => c());
|
|
3462
|
-
}),
|
|
3462
|
+
}), Xe(() => {
|
|
3463
3463
|
a.value && (h(), rt(() => c()));
|
|
3464
3464
|
}), De(() => {
|
|
3465
3465
|
b(), f(), m !== null && (cancelAnimationFrame(m), m = null);
|
|
@@ -3615,7 +3615,7 @@ const Pn = {
|
|
|
3615
3615
|
background: e.color,
|
|
3616
3616
|
borderColor: e.color
|
|
3617
3617
|
} : void 0;
|
|
3618
|
-
return u(
|
|
3618
|
+
return u(io, null, [T, u($t, {
|
|
3619
3619
|
to: "body"
|
|
3620
3620
|
}, {
|
|
3621
3621
|
default: () => [u(Ot, {
|
|
@@ -3653,7 +3653,7 @@ const Pn = {
|
|
|
3653
3653
|
})]);
|
|
3654
3654
|
};
|
|
3655
3655
|
}
|
|
3656
|
-
}),
|
|
3656
|
+
}), Pn = {
|
|
3657
3657
|
slots: {
|
|
3658
3658
|
root: ["relative inline-flex items-center justify-center", "w-[var(--vtg-checkbox-size)] h-[var(--vtg-checkbox-size)]", "rounded-[var(--vtg-checkbox-border-radius)]", "border border-[color:var(--color-border,#d9d9d9)]", "bg-[color:var(--color-surface)]", "cursor-pointer transition-all duration-300 shrink-0", "hover:border-[color:var(--color-primary)]"].join(" "),
|
|
3659
3659
|
checkMark: ["pointer-events-none absolute box-border", "top-1/2 left-[22%]", "w-[5.71px] h-[9.14px]", "border-b-2 border-r-2 border-[color:var(--vtg-checkbox-check-color,#fff)]", "[transform:rotate(45deg)_translate(-50%,_-50%)]"].join(" "),
|
|
@@ -3681,7 +3681,7 @@ const Pn = {
|
|
|
3681
3681
|
indeterminate: !1,
|
|
3682
3682
|
disabled: !1
|
|
3683
3683
|
}
|
|
3684
|
-
},
|
|
3684
|
+
}, so = /* @__PURE__ */ le({
|
|
3685
3685
|
name: "VCheckbox",
|
|
3686
3686
|
props: {
|
|
3687
3687
|
checked: {
|
|
@@ -3711,7 +3711,7 @@ const Pn = {
|
|
|
3711
3711
|
}) {
|
|
3712
3712
|
const {
|
|
3713
3713
|
slots: o
|
|
3714
|
-
} = nt("checkbox",
|
|
3714
|
+
} = nt("checkbox", Pn, e);
|
|
3715
3715
|
function r(l) {
|
|
3716
3716
|
if (e.disabled) return;
|
|
3717
3717
|
const n = !e.checked;
|
|
@@ -3731,7 +3731,7 @@ const Pn = {
|
|
|
3731
3731
|
class: o.indeterminateMark()
|
|
3732
3732
|
}, null)]);
|
|
3733
3733
|
}
|
|
3734
|
-
}),
|
|
3734
|
+
}), Vn = {
|
|
3735
3735
|
slots: {
|
|
3736
3736
|
root: ["inline-flex items-center justify-center", "w-[var(--vtg-radio-size)] h-[var(--vtg-radio-size)]", "rounded-full", "border border-[length:var(--vtg-radio-border-width)] border-[color:var(--color-border,#d9d9d9)]", "bg-[color:var(--color-surface)]", "cursor-pointer transition-all duration-300 shrink-0", "hover:border-[color:var(--color-primary)]"].join(" "),
|
|
3737
3737
|
dot: "rounded-full w-[var(--vtg-radio-size)] h-[var(--vtg-radio-size)] transition-transform duration-300 ease-[cubic-bezier(0.78,0.14,0.15,0.86)]"
|
|
@@ -3779,7 +3779,7 @@ const Pn = {
|
|
|
3779
3779
|
}) {
|
|
3780
3780
|
const {
|
|
3781
3781
|
slots: o
|
|
3782
|
-
} = nt("radio",
|
|
3782
|
+
} = nt("radio", Vn, e);
|
|
3783
3783
|
function r(l) {
|
|
3784
3784
|
e.disabled || e.checked || (t("update:checked", !0), t("change", !0, l));
|
|
3785
3785
|
}
|
|
@@ -3794,7 +3794,7 @@ const Pn = {
|
|
|
3794
3794
|
class: o.dot()
|
|
3795
3795
|
}, null)]);
|
|
3796
3796
|
}
|
|
3797
|
-
}),
|
|
3797
|
+
}), Kn = {
|
|
3798
3798
|
slots: {
|
|
3799
3799
|
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",
|
|
3800
3800
|
inner: ""
|
|
@@ -3855,7 +3855,7 @@ const Pn = {
|
|
|
3855
3855
|
size: "md",
|
|
3856
3856
|
disabled: !1
|
|
3857
3857
|
}
|
|
3858
|
-
},
|
|
3858
|
+
}, Oo = /* @__PURE__ */ le({
|
|
3859
3859
|
name: "VButton",
|
|
3860
3860
|
props: {
|
|
3861
3861
|
type: {
|
|
@@ -3886,7 +3886,7 @@ const Pn = {
|
|
|
3886
3886
|
}) {
|
|
3887
3887
|
const {
|
|
3888
3888
|
slots: r
|
|
3889
|
-
} = nt("button",
|
|
3889
|
+
} = nt("button", Kn, e);
|
|
3890
3890
|
function l(n) {
|
|
3891
3891
|
e.disabled || t("click", n);
|
|
3892
3892
|
}
|
|
@@ -3896,7 +3896,7 @@ const Pn = {
|
|
|
3896
3896
|
onClick: l
|
|
3897
3897
|
}, [o.default?.()]);
|
|
3898
3898
|
}
|
|
3899
|
-
}),
|
|
3899
|
+
}), Wn = {
|
|
3900
3900
|
slots: {
|
|
3901
3901
|
root: ["w-full box-border", "rounded-[var(--vtg-input-border-radius)]", "h-[var(--vtg-input-height)]", "px-[var(--vtg-input-padding-inline)]", "text-[length:var(--vtg-input-font-size)]", "font-[family-name:var(--vtg-table-font-family)]", "leading-[var(--vtg-table-line-height)]", "bg-[color:var(--color-surface)]", "text-[color:var(--color-on-surface)]", "border border-[color:var(--color-border,#d9d9d9)]", "outline-none transition-all duration-200", "focus:border-[color:var(--color-primary)]", "focus:shadow-[0_0_0_2px_rgba(5,145,255,0.1)]", "placeholder:text-[color:var(--color-text-placeholder,rgba(0,0,0,0.25))]", "hover:border-[color:var(--color-primary-hover)]"].join(" ")
|
|
3902
3902
|
},
|
|
@@ -3916,7 +3916,7 @@ const Pn = {
|
|
|
3916
3916
|
bare: !1,
|
|
3917
3917
|
disabled: !1
|
|
3918
3918
|
}
|
|
3919
|
-
},
|
|
3919
|
+
}, $n = /* @__PURE__ */ le({
|
|
3920
3920
|
name: "VInput",
|
|
3921
3921
|
props: {
|
|
3922
3922
|
value: {
|
|
@@ -3954,7 +3954,7 @@ const Pn = {
|
|
|
3954
3954
|
}) {
|
|
3955
3955
|
const {
|
|
3956
3956
|
slots: o
|
|
3957
|
-
} = nt("input",
|
|
3957
|
+
} = nt("input", Wn, e);
|
|
3958
3958
|
function r(n) {
|
|
3959
3959
|
const s = n.target.value;
|
|
3960
3960
|
t("update:value", s), t("change", s);
|
|
@@ -3973,7 +3973,7 @@ const Pn = {
|
|
|
3973
3973
|
}, null);
|
|
3974
3974
|
}
|
|
3975
3975
|
});
|
|
3976
|
-
function
|
|
3976
|
+
function qn(e, t, o) {
|
|
3977
3977
|
const r = F(0), l = F(0), n = F(!1), s = F(0), i = F(0), d = F(!1);
|
|
3978
3978
|
let a = null;
|
|
3979
3979
|
function v() {
|
|
@@ -3997,7 +3997,7 @@ function Gn(e, t, o) {
|
|
|
3997
3997
|
} else
|
|
3998
3998
|
d.value = !1, s.value = 0, i.value = 0;
|
|
3999
3999
|
}
|
|
4000
|
-
|
|
4000
|
+
Xe(() => {
|
|
4001
4001
|
const c = e.value, h = t.value;
|
|
4002
4002
|
c && (a = new ResizeObserver(() => v()), a.observe(c), h && a.observe(h), v());
|
|
4003
4003
|
}), De(() => {
|
|
@@ -4024,7 +4024,7 @@ function Gn(e, t, o) {
|
|
|
4024
4024
|
horizontalVisible: d
|
|
4025
4025
|
};
|
|
4026
4026
|
}
|
|
4027
|
-
const
|
|
4027
|
+
const Lo = /* @__PURE__ */ le({
|
|
4028
4028
|
name: "ScrollbarBar",
|
|
4029
4029
|
props: {
|
|
4030
4030
|
vertical: {
|
|
@@ -4122,7 +4122,7 @@ const Bo = /* @__PURE__ */ le({
|
|
|
4122
4122
|
}, null)]);
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
|
-
}),
|
|
4125
|
+
}), Gn = {
|
|
4126
4126
|
slots: {
|
|
4127
4127
|
root: "group relative overflow-hidden",
|
|
4128
4128
|
wrap: "overflow-auto scrollbar-none h-full",
|
|
@@ -4134,7 +4134,7 @@ const Bo = /* @__PURE__ */ le({
|
|
|
4134
4134
|
},
|
|
4135
4135
|
defaultVariants: {}
|
|
4136
4136
|
};
|
|
4137
|
-
function
|
|
4137
|
+
function Jt(e) {
|
|
4138
4138
|
if (e !== void 0)
|
|
4139
4139
|
return typeof e == "number" ? `${e}px` : e;
|
|
4140
4140
|
}
|
|
@@ -4198,7 +4198,7 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4198
4198
|
}) {
|
|
4199
4199
|
const l = ue(lt, null), {
|
|
4200
4200
|
slots: n
|
|
4201
|
-
} = nt("scrollbar",
|
|
4201
|
+
} = nt("scrollbar", Gn, e), s = F(null), i = F(null), d = F(!1), {
|
|
4202
4202
|
verticalThumbSize: a,
|
|
4203
4203
|
verticalThumbOffset: v,
|
|
4204
4204
|
verticalVisible: m,
|
|
@@ -4206,7 +4206,7 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4206
4206
|
horizontalThumbOffset: c,
|
|
4207
4207
|
horizontalVisible: h,
|
|
4208
4208
|
update: f
|
|
4209
|
-
} =
|
|
4209
|
+
} = qn(s, i, {
|
|
4210
4210
|
minSize: e.minSize
|
|
4211
4211
|
});
|
|
4212
4212
|
function b() {
|
|
@@ -4246,10 +4246,10 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4246
4246
|
wrapRef: s
|
|
4247
4247
|
}), () => {
|
|
4248
4248
|
const E = {};
|
|
4249
|
-
e.height && (E.height =
|
|
4249
|
+
e.height && (E.height = Jt(e.height)), e.maxHeight && (E.maxHeight = Jt(e.maxHeight));
|
|
4250
4250
|
const y = {};
|
|
4251
|
-
e.maxHeight && (y.maxHeight =
|
|
4252
|
-
const k =
|
|
4251
|
+
e.maxHeight && (y.maxHeight = Jt(e.maxHeight));
|
|
4252
|
+
const k = ut(e.tag, {
|
|
4253
4253
|
ref: i,
|
|
4254
4254
|
class: [n.view(), e.viewClass],
|
|
4255
4255
|
style: e.viewStyle
|
|
@@ -4265,10 +4265,10 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4265
4265
|
}
|
|
4266
4266
|
}, [u("div", {
|
|
4267
4267
|
ref: s,
|
|
4268
|
-
class: [n.wrap(), e.wrapClass, e.native ? "" :
|
|
4268
|
+
class: [n.wrap(), e.wrapClass, e.native ? "" : Ge("scrollbar-none", l?.cssMode ?? "prebuilt", l?.classPrefix ?? "vtg")],
|
|
4269
4269
|
style: [y, e.wrapStyle ?? {}],
|
|
4270
4270
|
onScroll: b
|
|
4271
|
-
}, [k]), !e.native && m.value && u(
|
|
4271
|
+
}, [k]), !e.native && m.value && u(Lo, {
|
|
4272
4272
|
vertical: !0,
|
|
4273
4273
|
thumbSize: a.value,
|
|
4274
4274
|
thumbOffset: v.value,
|
|
@@ -4278,7 +4278,7 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4278
4278
|
trackDirectionClass: n.trackVertical(),
|
|
4279
4279
|
thumbClass: n.thumb(),
|
|
4280
4280
|
onScroll: S
|
|
4281
|
-
}, null), !e.native && h.value && u(
|
|
4281
|
+
}, null), !e.native && h.value && u(Lo, {
|
|
4282
4282
|
vertical: !1,
|
|
4283
4283
|
thumbSize: p.value,
|
|
4284
4284
|
thumbOffset: c.value,
|
|
@@ -4291,7 +4291,7 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4291
4291
|
}, null)]);
|
|
4292
4292
|
};
|
|
4293
4293
|
}
|
|
4294
|
-
}),
|
|
4294
|
+
}), Ks = /* @__PURE__ */ le({
|
|
4295
4295
|
name: "VTableGuildConfigProvider",
|
|
4296
4296
|
props: {
|
|
4297
4297
|
theme: {
|
|
@@ -4328,13 +4328,13 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4328
4328
|
const a = /* @__PURE__ */ new Set([...Object.keys(i), ...Object.keys(d)]), v = {};
|
|
4329
4329
|
for (const m of a) {
|
|
4330
4330
|
const p = i[m], c = d[m];
|
|
4331
|
-
v[m] = p && c ?
|
|
4331
|
+
v[m] = p && c ? qe(p, c) : c ?? p;
|
|
4332
4332
|
}
|
|
4333
4333
|
return v;
|
|
4334
4334
|
}), l = g(() => ({
|
|
4335
4335
|
...o?.locales ?? {},
|
|
4336
4336
|
...e.locales ?? {}
|
|
4337
|
-
})), n = g(() =>
|
|
4337
|
+
})), n = g(() => dt(o?.localeOverrides ?? {}, e.localeOverrides)), s = Wt({
|
|
4338
4338
|
get themePreset() {
|
|
4339
4339
|
return o?.themePreset ?? "antdv";
|
|
4340
4340
|
},
|
|
@@ -4342,7 +4342,7 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4342
4342
|
return e.cssMode ?? o?.cssMode ?? "prebuilt";
|
|
4343
4343
|
},
|
|
4344
4344
|
get classPrefix() {
|
|
4345
|
-
return
|
|
4345
|
+
return kt(e.classPrefix ?? o?.classPrefix);
|
|
4346
4346
|
},
|
|
4347
4347
|
get theme() {
|
|
4348
4348
|
return r.value;
|
|
@@ -4362,9 +4362,9 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4362
4362
|
return o?.compatClass;
|
|
4363
4363
|
}
|
|
4364
4364
|
});
|
|
4365
|
-
return
|
|
4365
|
+
return oo(lt, s), () => t.default?.();
|
|
4366
4366
|
}
|
|
4367
|
-
}),
|
|
4367
|
+
}), Xn = /* @__PURE__ */ le({
|
|
4368
4368
|
name: "VirtualFiller",
|
|
4369
4369
|
props: {
|
|
4370
4370
|
prefixCls: String,
|
|
@@ -4415,10 +4415,10 @@ const Ht = /* @__PURE__ */ le({
|
|
|
4415
4415
|
};
|
|
4416
4416
|
}
|
|
4417
4417
|
});
|
|
4418
|
-
function
|
|
4418
|
+
function Yn(e) {
|
|
4419
4419
|
return e.filter((t) => t != null && typeof t != "boolean");
|
|
4420
4420
|
}
|
|
4421
|
-
const
|
|
4421
|
+
const Un = /* @__PURE__ */ le({
|
|
4422
4422
|
name: "VirtualItem",
|
|
4423
4423
|
props: {
|
|
4424
4424
|
setRef: {
|
|
@@ -4429,28 +4429,28 @@ const Zn = /* @__PURE__ */ le({
|
|
|
4429
4429
|
setup(e, {
|
|
4430
4430
|
slots: t
|
|
4431
4431
|
}) {
|
|
4432
|
-
const o =
|
|
4432
|
+
const o = _e(null), r = (l) => {
|
|
4433
4433
|
o.value !== l && (o.value = l, e.setRef(l));
|
|
4434
4434
|
};
|
|
4435
4435
|
return () => {
|
|
4436
|
-
const l =
|
|
4436
|
+
const l = Yn(t.default?.() ?? [])[0];
|
|
4437
4437
|
return l ? Cl(l, {
|
|
4438
4438
|
ref: r
|
|
4439
4439
|
}) : null;
|
|
4440
4440
|
};
|
|
4441
4441
|
}
|
|
4442
4442
|
});
|
|
4443
|
-
function
|
|
4444
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
4443
|
+
function Zn(e) {
|
|
4444
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !St(e);
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4446
|
+
function Jn(e, t, o, r, l, n, s, { getKey: i }) {
|
|
4447
4447
|
return g(() => e.value.slice(t.value, o.value + 1).map((d, a) => {
|
|
4448
4448
|
const v = s(d, t.value + a, {
|
|
4449
4449
|
style: { width: `${r.value}px` },
|
|
4450
4450
|
offsetX: l.value
|
|
4451
4451
|
}), m = i(d);
|
|
4452
4452
|
return u(
|
|
4453
|
-
|
|
4453
|
+
Un,
|
|
4454
4454
|
{ key: m, setRef: (p) => n(d, p) },
|
|
4455
4455
|
// `renderFunc` 返回的已经是 VNode[],这里**不能再包一层数组**。
|
|
4456
4456
|
// 包成 [[VNode]] 之后 Vue 的 normalizeSlotValue 会把内层数组转成 Fragment,
|
|
@@ -4459,12 +4459,12 @@ function Qn(e, t, o, r, l, n, s, { getKey: i }) {
|
|
|
4459
4459
|
// useHeights.getElement() 拿到 Text 就返回 null,行高**永远测不到**:
|
|
4460
4460
|
// heights.id 恒为 0,可视区计算一直走估算分支,scrollHeight 恒等于
|
|
4461
4461
|
// 行数 × itemHeight。行实际比估算高时,末尾几行落在可滚动范围之外。
|
|
4462
|
-
|
|
4462
|
+
Zn(v) ? v : { default: () => v ?? [] }
|
|
4463
4463
|
);
|
|
4464
4464
|
}));
|
|
4465
4465
|
}
|
|
4466
|
-
const
|
|
4467
|
-
function
|
|
4466
|
+
const Bo = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent);
|
|
4467
|
+
function Qn(e, t, o, r) {
|
|
4468
4468
|
const l = F(!1);
|
|
4469
4469
|
let n = null;
|
|
4470
4470
|
function s() {
|
|
@@ -4477,10 +4477,10 @@ function ea(e, t, o, r) {
|
|
|
4477
4477
|
return a && v ? (n && clearTimeout(n), l.value = !1) : (!v || l.value) && s(), !l.value && v;
|
|
4478
4478
|
};
|
|
4479
4479
|
}
|
|
4480
|
-
function
|
|
4480
|
+
function ea(e, t, o, r, l, n, s) {
|
|
4481
4481
|
const i = F(0);
|
|
4482
4482
|
let d = null;
|
|
4483
|
-
const a = F(null), v = F(!1), m =
|
|
4483
|
+
const a = F(null), v = F(!1), m = Qn(
|
|
4484
4484
|
t,
|
|
4485
4485
|
o,
|
|
4486
4486
|
r,
|
|
@@ -4491,13 +4491,13 @@ function ta(e, t, o, r, l, n, s) {
|
|
|
4491
4491
|
const O = I;
|
|
4492
4492
|
if (!O._virtualHandled) O._virtualHandled = !0;
|
|
4493
4493
|
else return;
|
|
4494
|
-
i.value += w, a.value = w,
|
|
4494
|
+
i.value += w, a.value = w, Bo || I.preventDefault(), d = requestAnimationFrame(() => {
|
|
4495
4495
|
const E = v.value ? 10 : 1;
|
|
4496
4496
|
s(i.value * E, !1), i.value = 0;
|
|
4497
4497
|
});
|
|
4498
4498
|
}
|
|
4499
4499
|
function c(I, w) {
|
|
4500
|
-
s(w, !0),
|
|
4500
|
+
s(w, !0), Bo || I.preventDefault();
|
|
4501
4501
|
}
|
|
4502
4502
|
const h = F(null);
|
|
4503
4503
|
let f = null;
|
|
@@ -4515,11 +4515,11 @@ function ta(e, t, o, r, l, n, s) {
|
|
|
4515
4515
|
function S(I) {
|
|
4516
4516
|
e.value && (v.value = I.detail === a.value);
|
|
4517
4517
|
}
|
|
4518
|
-
return
|
|
4518
|
+
return Ct(() => {
|
|
4519
4519
|
d && cancelAnimationFrame(d), f && cancelAnimationFrame(f);
|
|
4520
4520
|
}), [b, S];
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function ta(e, t, o, r) {
|
|
4523
4523
|
let l = /* @__PURE__ */ new Map(), n = [];
|
|
4524
4524
|
return ne([e, () => o.id.value, r], () => {
|
|
4525
4525
|
l = /* @__PURE__ */ new Map(), n = [];
|
|
@@ -4540,9 +4540,9 @@ function oa(e, t, o, r) {
|
|
|
4540
4540
|
};
|
|
4541
4541
|
};
|
|
4542
4542
|
}
|
|
4543
|
-
class
|
|
4543
|
+
class oa {
|
|
4544
4544
|
maps;
|
|
4545
|
-
id =
|
|
4545
|
+
id = _e(0);
|
|
4546
4546
|
diffRecords = /* @__PURE__ */ new Map();
|
|
4547
4547
|
constructor() {
|
|
4548
4548
|
this.maps = /* @__PURE__ */ Object.create(null);
|
|
@@ -4560,19 +4560,19 @@ class ra {
|
|
|
4560
4560
|
return this.diffRecords;
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
|
-
function
|
|
4563
|
+
function Fo(e) {
|
|
4564
4564
|
const t = parseFloat(e);
|
|
4565
4565
|
return isNaN(t) ? 0 : t;
|
|
4566
4566
|
}
|
|
4567
|
-
function
|
|
4567
|
+
function jo(e) {
|
|
4568
4568
|
return e instanceof HTMLElement ? e : e?.$el instanceof HTMLElement ? e.$el : null;
|
|
4569
4569
|
}
|
|
4570
|
-
function
|
|
4570
|
+
function ra(e) {
|
|
4571
4571
|
const t = e.getBoundingClientRect();
|
|
4572
4572
|
return Math.abs(t.width - e.offsetWidth) > 1 ? e.offsetHeight : t.height;
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4575
|
-
const l = F(0), n = F(/* @__PURE__ */ new Map()), s = kl(new
|
|
4574
|
+
function la(e, t, o, r) {
|
|
4575
|
+
const l = F(0), n = F(/* @__PURE__ */ new Map()), s = kl(new oa()), i = F(0), d = /* @__PURE__ */ new Map(), a = () => r?.() === !0, v = !a() && typeof window < "u" && "ResizeObserver" in window ? new window.ResizeObserver(() => {
|
|
4576
4576
|
p();
|
|
4577
4577
|
}) : null;
|
|
4578
4578
|
function m() {
|
|
@@ -4584,9 +4584,9 @@ function na(e, t, o, r) {
|
|
|
4584
4584
|
const f = () => {
|
|
4585
4585
|
let b = !1;
|
|
4586
4586
|
n.value.forEach((S, I) => {
|
|
4587
|
-
const w =
|
|
4587
|
+
const w = jo(S);
|
|
4588
4588
|
if (w && w.offsetParent) {
|
|
4589
|
-
const { marginTop: O, marginBottom: E } = getComputedStyle(w), y =
|
|
4589
|
+
const { marginTop: O, marginBottom: E } = getComputedStyle(w), y = Fo(O), k = Fo(E), T = ra(w) + y + k;
|
|
4590
4590
|
T > 0 && s.get(I) !== T && (s.set(I, T), b = !0);
|
|
4591
4591
|
}
|
|
4592
4592
|
}), b && (l.value += 1);
|
|
@@ -4608,17 +4608,17 @@ function na(e, t, o, r) {
|
|
|
4608
4608
|
const I = d.get(b);
|
|
4609
4609
|
if (I && v && (v.unobserve(I), d.delete(b)), f) {
|
|
4610
4610
|
n.value.set(b, f), p();
|
|
4611
|
-
const w =
|
|
4611
|
+
const w = jo(f);
|
|
4612
4612
|
w && w.nodeType === 1 && v && (v.observe(w), d.set(b, w));
|
|
4613
4613
|
} else
|
|
4614
4614
|
n.value.delete(b);
|
|
4615
4615
|
}
|
|
4616
|
-
return
|
|
4616
|
+
return Ct(() => {
|
|
4617
4617
|
m(), v?.disconnect?.(), d.clear();
|
|
4618
4618
|
}), [c, p, s, l];
|
|
4619
4619
|
}
|
|
4620
|
-
const
|
|
4621
|
-
function
|
|
4620
|
+
const Ho = 14 / 15;
|
|
4621
|
+
function na(e, t, o) {
|
|
4622
4622
|
const r = F(!1), l = F(0), n = F(0);
|
|
4623
4623
|
let s = null, i = null, d = null;
|
|
4624
4624
|
const a = (f) => {
|
|
@@ -4629,7 +4629,7 @@ function aa(e, t, o) {
|
|
|
4629
4629
|
O ? l.value = b : n.value = S;
|
|
4630
4630
|
const E = o(O, O ? I : w, !1, f);
|
|
4631
4631
|
E && f.preventDefault(), i && clearInterval(i), E && (i = setInterval(() => {
|
|
4632
|
-
O ? I *=
|
|
4632
|
+
O ? I *= Ho : w *= Ho;
|
|
4633
4633
|
const y = Math.floor(O ? I : w);
|
|
4634
4634
|
(!o(O, y, !0) || Math.abs(y) <= 0.1) && i && clearInterval(i);
|
|
4635
4635
|
}, 16));
|
|
@@ -4645,7 +4645,7 @@ function aa(e, t, o) {
|
|
|
4645
4645
|
}, h = () => {
|
|
4646
4646
|
c(), v(), i && (clearInterval(i), i = null);
|
|
4647
4647
|
};
|
|
4648
|
-
|
|
4648
|
+
Ct(h), ne(
|
|
4649
4649
|
[e, t],
|
|
4650
4650
|
([f, b]) => {
|
|
4651
4651
|
f && b ? (d = b, b.addEventListener("touchstart", p, { passive: !0 })) : h();
|
|
@@ -4653,13 +4653,13 @@ function aa(e, t, o) {
|
|
|
4653
4653
|
{ immediate: !0 }
|
|
4654
4654
|
);
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function No(e) {
|
|
4657
4657
|
return Math.floor(e ** 0.5);
|
|
4658
4658
|
}
|
|
4659
|
-
function
|
|
4659
|
+
function aa(e, t) {
|
|
4660
4660
|
return ("touches" in e ? e.touches[0] : e).pageY - window.scrollY;
|
|
4661
4661
|
}
|
|
4662
|
-
function
|
|
4662
|
+
function sa(e, t, o) {
|
|
4663
4663
|
let r = null, l = null, n = !1, s = null, i = 0;
|
|
4664
4664
|
const d = () => {
|
|
4665
4665
|
s !== null && (cancelAnimationFrame(s), s = null);
|
|
@@ -4675,13 +4675,13 @@ function ia(e, t, o) {
|
|
|
4675
4675
|
f._virtualHandled || (f._virtualHandled = !0, n = !0);
|
|
4676
4676
|
}, p = (h) => {
|
|
4677
4677
|
if (n && r) {
|
|
4678
|
-
const f =
|
|
4679
|
-
f <= b ? (i = -
|
|
4678
|
+
const f = aa(h), { top: b, bottom: S } = r.getBoundingClientRect();
|
|
4679
|
+
f <= b ? (i = -No(b - f), a()) : f >= S ? (i = No(f - S), a()) : d();
|
|
4680
4680
|
}
|
|
4681
4681
|
}, c = () => {
|
|
4682
4682
|
r && (r.removeEventListener("mousedown", m), r = null), l && (l.removeEventListener("mouseup", v), l.removeEventListener("mousemove", p), l.removeEventListener("dragend", v), l = null), v();
|
|
4683
4683
|
};
|
|
4684
|
-
|
|
4684
|
+
Ct(c), ne(
|
|
4685
4685
|
[e, t],
|
|
4686
4686
|
([h, f]) => {
|
|
4687
4687
|
h && f ? (r = f, l = f.ownerDocument, r.addEventListener("mousedown", m), l.addEventListener("mouseup", v), l.addEventListener("mousemove", p), l.addEventListener("dragend", v)) : c();
|
|
@@ -4689,9 +4689,9 @@ function ia(e, t, o) {
|
|
|
4689
4689
|
{ immediate: !0 }
|
|
4690
4690
|
);
|
|
4691
4691
|
}
|
|
4692
|
-
const
|
|
4693
|
-
function
|
|
4694
|
-
const a =
|
|
4692
|
+
const ia = 10;
|
|
4693
|
+
function ca(e, t, o, r, l, n, s, i, d) {
|
|
4694
|
+
const a = _e(null), v = () => d?.() === !0, m = () => {
|
|
4695
4695
|
if (v()) return t.value.length * (r.value ?? 0);
|
|
4696
4696
|
let c = 0;
|
|
4697
4697
|
for (let h = 0; h < t.value.length; h += 1) {
|
|
@@ -4703,7 +4703,7 @@ function da(e, t, o, r, l, n, s, i, d) {
|
|
|
4703
4703
|
return ne(
|
|
4704
4704
|
a,
|
|
4705
4705
|
() => {
|
|
4706
|
-
if (a.value && a.value.times <
|
|
4706
|
+
if (a.value && a.value.times < ia) {
|
|
4707
4707
|
if (!e.value) {
|
|
4708
4708
|
a.value = { ...a.value };
|
|
4709
4709
|
return;
|
|
@@ -4780,10 +4780,10 @@ function da(e, t, o, r, l, n, s, i, d) {
|
|
|
4780
4780
|
}
|
|
4781
4781
|
}, m];
|
|
4782
4782
|
}
|
|
4783
|
-
function
|
|
4783
|
+
function Po(e, t) {
|
|
4784
4784
|
return ("touches" in e ? e.touches[0] : e)[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
|
|
4785
4785
|
}
|
|
4786
|
-
const
|
|
4786
|
+
const Vo = /* @__PURE__ */ le({
|
|
4787
4787
|
name: "VirtualScrollBar",
|
|
4788
4788
|
props: {
|
|
4789
4789
|
prefixCls: {
|
|
@@ -4846,13 +4846,13 @@ const Ko = /* @__PURE__ */ le({
|
|
|
4846
4846
|
setup(e, {
|
|
4847
4847
|
expose: t
|
|
4848
4848
|
}) {
|
|
4849
|
-
const o = F(!1), r = F(!1), l = F(null), n = F(null), s = g(() => !e.rtl), i =
|
|
4849
|
+
const o = F(!1), r = F(!1), l = F(null), n = F(null), s = g(() => !e.rtl), i = _e(), d = _e(), a = F(e.showScrollBar === !0 || e.showScrollBar === "optional");
|
|
4850
4850
|
let v = null;
|
|
4851
4851
|
const m = () => {
|
|
4852
4852
|
e.showScrollBar === !0 || e.showScrollBar === !1 || e.showScrollBar === "hover" || (v && clearTimeout(v), a.value = !0, v = setTimeout(() => {
|
|
4853
4853
|
a.value = !1;
|
|
4854
4854
|
}, 3e3));
|
|
4855
|
-
}, p = g(() => e.showScrollBar === !0 ? !0 : e.showScrollBar === !1 ? !1 : e.showScrollBar === "hover" ? e.active || o.value : a.value || o.value), c = g(() => e.scrollRange - e.containerSize || 0), h = g(() => e.containerSize - e.spinSize || 0), f = g(() => e.scrollOffset === 0 || c.value === 0 ? 0 : e.scrollOffset / c.value * h.value), b =
|
|
4855
|
+
}, p = g(() => e.showScrollBar === !0 ? !0 : e.showScrollBar === !1 ? !1 : e.showScrollBar === "hover" ? e.active || o.value : a.value || o.value), c = g(() => e.scrollRange - e.containerSize || 0), h = g(() => e.containerSize - e.spinSize || 0), f = g(() => e.scrollOffset === 0 || c.value === 0 ? 0 : e.scrollOffset / c.value * h.value), b = _e({
|
|
4856
4856
|
top: f.value,
|
|
4857
4857
|
dragging: o.value,
|
|
4858
4858
|
pageY: l.value,
|
|
@@ -4869,9 +4869,9 @@ const Ko = /* @__PURE__ */ le({
|
|
|
4869
4869
|
const S = (w) => {
|
|
4870
4870
|
w.stopPropagation(), w.preventDefault();
|
|
4871
4871
|
}, I = (w) => {
|
|
4872
|
-
o.value = !0, l.value =
|
|
4872
|
+
o.value = !0, l.value = Po(w, e.horizontal || !1), n.value = b.value.top, e.onStartMove?.(), w.stopPropagation(), w.preventDefault();
|
|
4873
4873
|
};
|
|
4874
|
-
return
|
|
4874
|
+
return Xe(() => {
|
|
4875
4875
|
const w = (y) => {
|
|
4876
4876
|
y.preventDefault();
|
|
4877
4877
|
}, O = i.value, E = d.value;
|
|
@@ -4879,7 +4879,7 @@ const Ko = /* @__PURE__ */ le({
|
|
|
4879
4879
|
passive: !1
|
|
4880
4880
|
}), E.addEventListener("touchstart", I, {
|
|
4881
4881
|
passive: !1
|
|
4882
|
-
}),
|
|
4882
|
+
}), Ct(() => {
|
|
4883
4883
|
O.removeEventListener("touchstart", w), E.removeEventListener("touchstart", I);
|
|
4884
4884
|
}));
|
|
4885
4885
|
}), ne(o, (w, O, E) => {
|
|
@@ -4894,7 +4894,7 @@ const Ko = /* @__PURE__ */ le({
|
|
|
4894
4894
|
y !== null && cancelAnimationFrame(y);
|
|
4895
4895
|
const ee = i.value.getBoundingClientRect(), $ = e.containerSize / (e.horizontal ? ee.width : ee.height);
|
|
4896
4896
|
if (D) {
|
|
4897
|
-
const V = (
|
|
4897
|
+
const V = (Po(C, e.horizontal || !1) - (j || 0)) * $;
|
|
4898
4898
|
let P = Z || 0;
|
|
4899
4899
|
!s.value && e.horizontal ? P -= V : P += V;
|
|
4900
4900
|
const Y = c.value, M = h.value, z = M ? P / M : 0;
|
|
@@ -4991,10 +4991,10 @@ const Ko = /* @__PURE__ */ le({
|
|
|
4991
4991
|
})]);
|
|
4992
4992
|
};
|
|
4993
4993
|
}
|
|
4994
|
-
}),
|
|
4995
|
-
function
|
|
4994
|
+
}), da = 20;
|
|
4995
|
+
function Ko(e = 0, t = 0) {
|
|
4996
4996
|
let o = e / t * e;
|
|
4997
|
-
return isNaN(o) && (o = 0), o = Math.max(o,
|
|
4997
|
+
return isNaN(o) && (o = 0), o = Math.max(o, da), Math.floor(o);
|
|
4998
4998
|
}
|
|
4999
4999
|
class Er {
|
|
5000
5000
|
/** prefix[i] = 第 0..i 项尺寸之和(即第 i 项的结束偏移)。 */
|
|
@@ -5047,17 +5047,17 @@ class Er {
|
|
|
5047
5047
|
return l;
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
|
-
const
|
|
5050
|
+
const Wo = [], ua = {
|
|
5051
5051
|
overflowY: "auto",
|
|
5052
5052
|
overflowAnchor: "none"
|
|
5053
5053
|
};
|
|
5054
|
-
function
|
|
5054
|
+
function fa(e) {
|
|
5055
5055
|
const t = {};
|
|
5056
5056
|
for (const o of Object.keys(e))
|
|
5057
5057
|
o.startsWith("on") || (t[o] = e[o]);
|
|
5058
5058
|
return t;
|
|
5059
5059
|
}
|
|
5060
|
-
function
|
|
5060
|
+
function va(e, t, o, r) {
|
|
5061
5061
|
let l = e.findIndex(o);
|
|
5062
5062
|
l >= t && (l = 0);
|
|
5063
5063
|
let n = e.findIndex(o + r + 1);
|
|
@@ -5068,7 +5068,7 @@ function ma(e, t, o, r) {
|
|
|
5068
5068
|
offset: e.offsetOf(l)
|
|
5069
5069
|
};
|
|
5070
5070
|
}
|
|
5071
|
-
const
|
|
5071
|
+
const ma = /* @__PURE__ */ le({
|
|
5072
5072
|
name: "VirtualList",
|
|
5073
5073
|
props: {
|
|
5074
5074
|
prefixCls: {
|
|
@@ -5129,14 +5129,14 @@ const ha = /* @__PURE__ */ le({
|
|
|
5129
5129
|
const s = (L) => {
|
|
5130
5130
|
const X = n;
|
|
5131
5131
|
return typeof X == "function" ? X(L) : L?.[X];
|
|
5132
|
-
}, [i, d, a, v] =
|
|
5132
|
+
}, [i, d, a, v] = la(s, void 0, void 0, () => e.disableHeightMeasure), m = _e(e?.data || Wo);
|
|
5133
5133
|
ne(() => e.data, () => {
|
|
5134
|
-
m.value = e?.data ||
|
|
5134
|
+
m.value = e?.data || Wo;
|
|
5135
5135
|
});
|
|
5136
5136
|
const p = g(() => !!(e.virtual !== !1 && e.height && e.itemHeight)), c = g(() => {
|
|
5137
5137
|
const L = m.value;
|
|
5138
5138
|
return p.value && L && (e.itemHeight * L.length > e.height || !!e.scrollWidth);
|
|
5139
|
-
}), h = F(), f = F(), b = F(), S = F(!1), I =
|
|
5139
|
+
}), h = F(), f = F(), b = F(), S = F(!1), I = _e(), w = _e(), O = F(0), E = F(0), y = F(!1), k = F(0), T = F(0), C = F(e.scrollWidth || 0), D = F(0), j = F(0), Z = F(0), ee = F(void 0);
|
|
5140
5140
|
function $(L) {
|
|
5141
5141
|
let X;
|
|
5142
5142
|
typeof L == "function" ? X = L(O.value) : X = L;
|
|
@@ -5148,8 +5148,8 @@ const ha = /* @__PURE__ */ le({
|
|
|
5148
5148
|
if (!te)
|
|
5149
5149
|
V.markAllDirty();
|
|
5150
5150
|
else {
|
|
5151
|
-
const [, , , Ce,
|
|
5152
|
-
L !== Ce ? V.markAllDirty() : X !==
|
|
5151
|
+
const [, , , Ce, Ve] = te;
|
|
5152
|
+
L !== Ce ? V.markAllDirty() : X !== Ve && V.markDirtyFrom(j.value);
|
|
5153
5153
|
}
|
|
5154
5154
|
if (!p.value) {
|
|
5155
5155
|
D.value = 0, j.value = 0, Z.value = m.value.length - 1, ee.value = void 0;
|
|
@@ -5162,20 +5162,20 @@ const ha = /* @__PURE__ */ le({
|
|
|
5162
5162
|
const {
|
|
5163
5163
|
itemHeight: J,
|
|
5164
5164
|
height: ie
|
|
5165
|
-
} = e,
|
|
5166
|
-
if (!
|
|
5165
|
+
} = e, be = m.value.length;
|
|
5166
|
+
if (!be) {
|
|
5167
5167
|
D.value = 0, j.value = 0, Z.value = -1, ee.value = 0;
|
|
5168
5168
|
return;
|
|
5169
5169
|
}
|
|
5170
|
-
if (
|
|
5171
|
-
const Ce = J,
|
|
5172
|
-
let
|
|
5173
|
-
|
|
5170
|
+
if (wt(a.id) === 0) {
|
|
5171
|
+
const Ce = J, Ve = ie, Me = Math.max(0, Math.floor(O.value / Ce)), Qe = Me * Ce;
|
|
5172
|
+
let et = Me + Math.ceil(Ve / Ce);
|
|
5173
|
+
et = Math.min(et + 1, be - 1), D.value = be * Ce, j.value = Me, Z.value = et, ee.value = Qe;
|
|
5174
5174
|
return;
|
|
5175
5175
|
}
|
|
5176
5176
|
const ke = Tl(m.value);
|
|
5177
|
-
V.sync(
|
|
5178
|
-
const ze =
|
|
5177
|
+
V.sync(be, (Ce) => a.get(s(ke[Ce])), J);
|
|
5178
|
+
const ze = va(V, be, O.value, ie);
|
|
5179
5179
|
D.value = ze.scrollHeight, j.value = ze.start, Z.value = ze.end, ee.value = ze.offset;
|
|
5180
5180
|
}, {
|
|
5181
5181
|
immediate: !0
|
|
@@ -5185,7 +5185,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5185
5185
|
const X = Array.from(L.keys())[0], te = L.get(X), J = m.value[j.value];
|
|
5186
5186
|
if (J && te === void 0 && s(J) === X) {
|
|
5187
5187
|
const ie = a.get(X) - e.itemHeight;
|
|
5188
|
-
$((
|
|
5188
|
+
$((be) => be + ie);
|
|
5189
5189
|
}
|
|
5190
5190
|
}
|
|
5191
5191
|
if (p.value && e.height) {
|
|
@@ -5225,9 +5225,9 @@ const ha = /* @__PURE__ */ le({
|
|
|
5225
5225
|
};
|
|
5226
5226
|
(A.value.x !== X.x || A.value.y !== X.y) && (e.onVirtualScroll(X), A.value = X);
|
|
5227
5227
|
}
|
|
5228
|
-
}, H = g(() => Math.max(0, (C.value || 0) - P.value.width)), N = g(() => O.value === 0), G = g(() => O.value + e.height >= D.value), U = g(() => E.value === 0), se = g(() => E.value >= H.value), ce = (L) => Math.max(0, Math.min(L, H.value)),
|
|
5228
|
+
}, H = g(() => Math.max(0, (C.value || 0) - P.value.width)), N = g(() => O.value === 0), G = g(() => O.value + e.height >= D.value), U = g(() => E.value === 0), se = g(() => E.value >= H.value), ce = (L) => Math.max(0, Math.min(L, H.value)), me = () => {
|
|
5229
5229
|
I.value?.delayHidden(), w.value?.delayHidden();
|
|
5230
|
-
}, [
|
|
5230
|
+
}, [ye] = ea(c, N, G, U, se, H.value > 0, (L, X) => {
|
|
5231
5231
|
if (X) {
|
|
5232
5232
|
const te = ce(x.value ? E.value - L : E.value + L);
|
|
5233
5233
|
E.value = te, _({
|
|
@@ -5236,7 +5236,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5236
5236
|
} else
|
|
5237
5237
|
$((te) => te + L);
|
|
5238
5238
|
});
|
|
5239
|
-
|
|
5239
|
+
na(c, h, (L, X) => {
|
|
5240
5240
|
if (L) {
|
|
5241
5241
|
const te = ce(x.value ? E.value - X : E.value + X);
|
|
5242
5242
|
return E.value = te, _({
|
|
@@ -5244,7 +5244,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5244
5244
|
}), !0;
|
|
5245
5245
|
} else
|
|
5246
5246
|
return $((te) => te + X), !0;
|
|
5247
|
-
}),
|
|
5247
|
+
}), sa(c, h, (L) => {
|
|
5248
5248
|
$((X) => X + L);
|
|
5249
5249
|
});
|
|
5250
5250
|
const de = (L, X) => {
|
|
@@ -5257,11 +5257,11 @@ const ha = /* @__PURE__ */ le({
|
|
|
5257
5257
|
y.value = !1;
|
|
5258
5258
|
};
|
|
5259
5259
|
ne([() => e.height, D, c, () => P.value.height], () => {
|
|
5260
|
-
c.value && e.height && D.value && (k.value =
|
|
5260
|
+
c.value && e.height && D.value && (k.value = Ko(P.value.height, D.value));
|
|
5261
5261
|
}, {
|
|
5262
5262
|
immediate: !0
|
|
5263
5263
|
}), ne([() => P.value.width, C], () => {
|
|
5264
|
-
c.value && C.value && (T.value =
|
|
5264
|
+
c.value && C.value && (T.value = Ko(P.value.width, C.value));
|
|
5265
5265
|
}, {
|
|
5266
5266
|
immediate: !0
|
|
5267
5267
|
}), ne(() => e.scrollWidth, (L) => {
|
|
@@ -5269,14 +5269,14 @@ const ha = /* @__PURE__ */ le({
|
|
|
5269
5269
|
}, {
|
|
5270
5270
|
immediate: !0
|
|
5271
5271
|
});
|
|
5272
|
-
function
|
|
5272
|
+
function Ue(L) {
|
|
5273
5273
|
const X = L.currentTarget.scrollTop;
|
|
5274
5274
|
!p.value || !c.value ? O.value = X : X !== O.value && $(X), e.onScroll?.(L), _();
|
|
5275
5275
|
}
|
|
5276
|
-
const [
|
|
5277
|
-
const X =
|
|
5276
|
+
const [Pe, Ze] = ca(h, m, a, l, s, () => d(!0), (L) => {
|
|
5277
|
+
const X = Ze(), te = Math.max(D.value, X) - e.height, J = Math.max(0, Math.min(L, te || 0));
|
|
5278
5278
|
h.value && (h.value.scrollTop = J), O.value = J;
|
|
5279
|
-
},
|
|
5279
|
+
}, me, () => e.disableHeightMeasure);
|
|
5280
5280
|
t({
|
|
5281
5281
|
nativeElement: b,
|
|
5282
5282
|
getScrollInfo: R,
|
|
@@ -5285,7 +5285,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5285
5285
|
function X(te) {
|
|
5286
5286
|
return te && typeof te == "object" && ("left" in te || "top" in te);
|
|
5287
5287
|
}
|
|
5288
|
-
X(L) ? (L.left !== void 0 && (E.value = ce(L.left)),
|
|
5288
|
+
X(L) ? (L.left !== void 0 && (E.value = ce(L.left)), Pe(L.top)) : Pe(L);
|
|
5289
5289
|
}
|
|
5290
5290
|
}), ne([j, Z, m], () => {
|
|
5291
5291
|
if (e.onVisibleChange) {
|
|
@@ -5295,7 +5295,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5295
5295
|
}, {
|
|
5296
5296
|
flush: "post"
|
|
5297
5297
|
});
|
|
5298
|
-
const
|
|
5298
|
+
const Je = ta(m, s, a, l), q = Jn(m, j, Z, C, E, i, (L, X, te) => r.default?.({
|
|
5299
5299
|
item: L,
|
|
5300
5300
|
index: X,
|
|
5301
5301
|
...te
|
|
@@ -5304,7 +5304,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5304
5304
|
});
|
|
5305
5305
|
return () => {
|
|
5306
5306
|
const L = {};
|
|
5307
|
-
e.height && (L[e.fullHeight ? "height" : "maxHeight"] = `${e.height}px`, Object.assign(L,
|
|
5307
|
+
e.height && (L[e.fullHeight ? "height" : "maxHeight"] = `${e.height}px`, Object.assign(L, ua), c.value && (L.overflowY = "hidden", H.value > 0 && (L.overflowX = "hidden"), y.value && (L.pointerEvents = "none")));
|
|
5308
5308
|
const X = e.extraRender?.({
|
|
5309
5309
|
start: j.value,
|
|
5310
5310
|
end: Z.value,
|
|
@@ -5312,11 +5312,11 @@ const ha = /* @__PURE__ */ le({
|
|
|
5312
5312
|
offsetX: E.value,
|
|
5313
5313
|
offsetY: ee.value || 0,
|
|
5314
5314
|
rtl: x.value,
|
|
5315
|
-
getSize:
|
|
5315
|
+
getSize: Je
|
|
5316
5316
|
}), te = e.component;
|
|
5317
5317
|
return u("div", {
|
|
5318
5318
|
ref: b,
|
|
5319
|
-
...
|
|
5319
|
+
...fa(o),
|
|
5320
5320
|
style: {
|
|
5321
5321
|
position: "relative",
|
|
5322
5322
|
...o.style
|
|
@@ -5337,11 +5337,11 @@ const ha = /* @__PURE__ */ le({
|
|
|
5337
5337
|
ref: (J) => {
|
|
5338
5338
|
h.value = J?.$el ?? J, z(J?.$el ?? J);
|
|
5339
5339
|
},
|
|
5340
|
-
onScroll:
|
|
5341
|
-
onWheel:
|
|
5342
|
-
onMouseenter:
|
|
5340
|
+
onScroll: Ue,
|
|
5341
|
+
onWheel: ye,
|
|
5342
|
+
onMouseenter: me
|
|
5343
5343
|
}, {
|
|
5344
|
-
default: () => [u(
|
|
5344
|
+
default: () => [u(Xn, {
|
|
5345
5345
|
prefixCls: e.prefixCls,
|
|
5346
5346
|
height: D.value,
|
|
5347
5347
|
offsetX: E.value,
|
|
@@ -5355,7 +5355,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5355
5355
|
}, {
|
|
5356
5356
|
default: () => [q.value]
|
|
5357
5357
|
})]
|
|
5358
|
-
}), c.value && D.value > (e.height || 0) && u(
|
|
5358
|
+
}), c.value && D.value > (e.height || 0) && u(Vo, {
|
|
5359
5359
|
ref: I,
|
|
5360
5360
|
prefixCls: e.prefixCls,
|
|
5361
5361
|
scrollOffset: O.value,
|
|
@@ -5370,7 +5370,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5370
5370
|
showScrollBar: e.showScrollBar,
|
|
5371
5371
|
style: e.styles?.verticalScrollBar,
|
|
5372
5372
|
thumbStyle: e.styles?.verticalScrollBarThumb
|
|
5373
|
-
}), c.value && C.value > P.value.width && u(
|
|
5373
|
+
}), c.value && C.value > P.value.width && u(Vo, {
|
|
5374
5374
|
ref: w,
|
|
5375
5375
|
prefixCls: e.prefixCls,
|
|
5376
5376
|
scrollOffset: E.value,
|
|
@@ -5389,7 +5389,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5389
5389
|
})]);
|
|
5390
5390
|
};
|
|
5391
5391
|
}
|
|
5392
|
-
}),
|
|
5392
|
+
}), fo = {
|
|
5393
5393
|
left: "text-left",
|
|
5394
5394
|
center: "text-center",
|
|
5395
5395
|
right: "text-right"
|
|
@@ -5885,7 +5885,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5885
5885
|
].join(" ")
|
|
5886
5886
|
},
|
|
5887
5887
|
defaultVariants: {}
|
|
5888
|
-
},
|
|
5888
|
+
}, $o = {
|
|
5889
5889
|
header: {
|
|
5890
5890
|
sortTriggerAsc: "点击升序",
|
|
5891
5891
|
sortTriggerDesc: "点击降序",
|
|
@@ -5910,7 +5910,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5910
5910
|
selectInvert: "反选当页",
|
|
5911
5911
|
selectNone: "清空所有"
|
|
5912
5912
|
}
|
|
5913
|
-
},
|
|
5913
|
+
}, ha = {
|
|
5914
5914
|
header: {
|
|
5915
5915
|
sortTriggerAsc: "Click to sort ascending",
|
|
5916
5916
|
sortTriggerDesc: "Click to sort descending",
|
|
@@ -5935,7 +5935,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
5935
5935
|
selectInvert: "Invert current page",
|
|
5936
5936
|
selectNone: "Clear all"
|
|
5937
5937
|
}
|
|
5938
|
-
},
|
|
5938
|
+
}, pa = {
|
|
5939
5939
|
slots: {
|
|
5940
5940
|
root: [
|
|
5941
5941
|
"relative w-full min-w-0",
|
|
@@ -6166,7 +6166,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6166
6166
|
striped: !1,
|
|
6167
6167
|
hoverable: !0
|
|
6168
6168
|
}
|
|
6169
|
-
},
|
|
6169
|
+
}, qo = {
|
|
6170
6170
|
header: {
|
|
6171
6171
|
sortTriggerAsc: "点击升序",
|
|
6172
6172
|
sortTriggerDesc: "点击降序",
|
|
@@ -6192,7 +6192,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6192
6192
|
selectInvert: "反选当页",
|
|
6193
6193
|
selectNone: "清空所有"
|
|
6194
6194
|
}
|
|
6195
|
-
},
|
|
6195
|
+
}, ba = {
|
|
6196
6196
|
header: {
|
|
6197
6197
|
sortTriggerAsc: "Sort ascending",
|
|
6198
6198
|
sortTriggerDesc: "Sort descending",
|
|
@@ -6217,7 +6217,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6217
6217
|
selectInvert: "Invert current page",
|
|
6218
6218
|
selectNone: "Clear all"
|
|
6219
6219
|
}
|
|
6220
|
-
},
|
|
6220
|
+
}, ga = {
|
|
6221
6221
|
slots: {
|
|
6222
6222
|
root: "inline-flex items-center justify-center border font-medium transition-all duration-100 leading-[1] cursor-pointer",
|
|
6223
6223
|
inner: ""
|
|
@@ -6283,7 +6283,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6283
6283
|
size: "md",
|
|
6284
6284
|
disabled: !1
|
|
6285
6285
|
}
|
|
6286
|
-
},
|
|
6286
|
+
}, ya = {
|
|
6287
6287
|
slots: {
|
|
6288
6288
|
root: [
|
|
6289
6289
|
"relative inline-flex items-center justify-center",
|
|
@@ -6344,7 +6344,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6344
6344
|
indeterminate: !1,
|
|
6345
6345
|
disabled: !1
|
|
6346
6346
|
}
|
|
6347
|
-
},
|
|
6347
|
+
}, xa = {
|
|
6348
6348
|
slots: {
|
|
6349
6349
|
root: [
|
|
6350
6350
|
"inline-flex items-center justify-center",
|
|
@@ -6374,7 +6374,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6374
6374
|
checked: !1,
|
|
6375
6375
|
disabled: !1
|
|
6376
6376
|
}
|
|
6377
|
-
},
|
|
6377
|
+
}, wa = {
|
|
6378
6378
|
slots: {
|
|
6379
6379
|
root: [
|
|
6380
6380
|
"w-full box-border",
|
|
@@ -6409,7 +6409,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6409
6409
|
bare: !1,
|
|
6410
6410
|
disabled: !1
|
|
6411
6411
|
}
|
|
6412
|
-
},
|
|
6412
|
+
}, Sa = {
|
|
6413
6413
|
slots: {
|
|
6414
6414
|
content: [
|
|
6415
6415
|
"text-white max-w-[250px] break-words relative",
|
|
@@ -6426,7 +6426,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6426
6426
|
arrowInner: "absolute inset-0 w-0 h-0"
|
|
6427
6427
|
},
|
|
6428
6428
|
defaultVariants: {}
|
|
6429
|
-
},
|
|
6429
|
+
}, Ca = {
|
|
6430
6430
|
slots: {
|
|
6431
6431
|
root: "group relative overflow-hidden",
|
|
6432
6432
|
wrap: "overflow-auto scrollbar-none h-full",
|
|
@@ -6444,7 +6444,7 @@ const ha = /* @__PURE__ */ le({
|
|
|
6444
6444
|
].join(" ")
|
|
6445
6445
|
},
|
|
6446
6446
|
defaultVariants: {}
|
|
6447
|
-
},
|
|
6447
|
+
}, Go = {
|
|
6448
6448
|
antdv: {
|
|
6449
6449
|
table: Dr,
|
|
6450
6450
|
button: zr,
|
|
@@ -6453,61 +6453,61 @@ const ha = /* @__PURE__ */ le({
|
|
|
6453
6453
|
input: _r,
|
|
6454
6454
|
tooltip: Or,
|
|
6455
6455
|
scrollbar: Lr,
|
|
6456
|
-
tableLocale:
|
|
6456
|
+
tableLocale: $o,
|
|
6457
6457
|
locales: {
|
|
6458
|
-
"zh-CN": { table:
|
|
6459
|
-
"en-US": { table:
|
|
6458
|
+
"zh-CN": { table: $o },
|
|
6459
|
+
"en-US": { table: ha }
|
|
6460
6460
|
}
|
|
6461
6461
|
},
|
|
6462
6462
|
"element-plus": {
|
|
6463
|
-
table:
|
|
6464
|
-
button:
|
|
6465
|
-
checkbox:
|
|
6466
|
-
radio:
|
|
6467
|
-
input:
|
|
6468
|
-
tooltip:
|
|
6469
|
-
scrollbar:
|
|
6470
|
-
tableLocale:
|
|
6463
|
+
table: pa,
|
|
6464
|
+
button: ga,
|
|
6465
|
+
checkbox: ya,
|
|
6466
|
+
radio: xa,
|
|
6467
|
+
input: wa,
|
|
6468
|
+
tooltip: Sa,
|
|
6469
|
+
scrollbar: Ca,
|
|
6470
|
+
tableLocale: qo,
|
|
6471
6471
|
locales: {
|
|
6472
|
-
"zh-CN": { table:
|
|
6473
|
-
"en-US": { table:
|
|
6472
|
+
"zh-CN": { table: qo },
|
|
6473
|
+
"en-US": { table: ba }
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
6476
|
};
|
|
6477
|
-
function
|
|
6478
|
-
return
|
|
6477
|
+
function Oe(e = "antdv") {
|
|
6478
|
+
return Go[e] ?? Go.antdv;
|
|
6479
|
+
}
|
|
6480
|
+
function ka(e = "antdv") {
|
|
6481
|
+
return Oe(e).table;
|
|
6479
6482
|
}
|
|
6480
6483
|
function Ta(e = "antdv") {
|
|
6481
|
-
return
|
|
6484
|
+
return Oe(e).button ?? zr;
|
|
6482
6485
|
}
|
|
6483
6486
|
function Ra(e = "antdv") {
|
|
6484
|
-
return
|
|
6487
|
+
return Oe(e).checkbox ?? Mr;
|
|
6485
6488
|
}
|
|
6486
6489
|
function Ia(e = "antdv") {
|
|
6487
|
-
return
|
|
6490
|
+
return Oe(e).radio ?? Ar;
|
|
6488
6491
|
}
|
|
6489
6492
|
function Ea(e = "antdv") {
|
|
6490
|
-
return
|
|
6493
|
+
return Oe(e).input ?? _r;
|
|
6491
6494
|
}
|
|
6492
6495
|
function Da(e = "antdv") {
|
|
6493
|
-
return
|
|
6496
|
+
return Oe(e).tooltip ?? Or;
|
|
6494
6497
|
}
|
|
6495
6498
|
function za(e = "antdv") {
|
|
6496
|
-
return
|
|
6499
|
+
return Oe(e).scrollbar ?? Lr;
|
|
6497
6500
|
}
|
|
6498
6501
|
function Ma(e = "antdv") {
|
|
6499
|
-
return
|
|
6502
|
+
return Oe(e).tableLocale;
|
|
6500
6503
|
}
|
|
6501
|
-
function Aa(e = "antdv") {
|
|
6502
|
-
return
|
|
6504
|
+
function Aa(e = "antdv", t = "zh-CN") {
|
|
6505
|
+
return Oe(e).locales[t]?.table;
|
|
6503
6506
|
}
|
|
6504
|
-
function
|
|
6505
|
-
return
|
|
6507
|
+
function Ws(e = "antdv", t = "zh-CN") {
|
|
6508
|
+
return Oe(e).locales[t];
|
|
6506
6509
|
}
|
|
6507
|
-
|
|
6508
|
-
return _e(e).locales[t];
|
|
6509
|
-
}
|
|
6510
|
-
const Oa = {
|
|
6510
|
+
const _a = {
|
|
6511
6511
|
slots: {
|
|
6512
6512
|
root: "ant-table-wrapper ant-table",
|
|
6513
6513
|
wrapper: "ant-table-container ant-table-content",
|
|
@@ -6564,7 +6564,7 @@ const Oa = {
|
|
|
6564
6564
|
function Br(e) {
|
|
6565
6565
|
return !!e && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
6566
6566
|
}
|
|
6567
|
-
function
|
|
6567
|
+
function ve(e) {
|
|
6568
6568
|
if (e.key !== void 0) return e.key;
|
|
6569
6569
|
if (e.dataIndex !== void 0)
|
|
6570
6570
|
return Array.isArray(e.dataIndex) ? e.dataIndex.join(".") : String(e.dataIndex);
|
|
@@ -6581,7 +6581,7 @@ function Fr(e) {
|
|
|
6581
6581
|
}
|
|
6582
6582
|
return t;
|
|
6583
6583
|
}
|
|
6584
|
-
function
|
|
6584
|
+
function Oa(e) {
|
|
6585
6585
|
const t = [];
|
|
6586
6586
|
let o = 0;
|
|
6587
6587
|
function r(n, s, i = 0) {
|
|
@@ -6631,8 +6631,8 @@ function Nt(e, t) {
|
|
|
6631
6631
|
}
|
|
6632
6632
|
return r;
|
|
6633
6633
|
}
|
|
6634
|
-
function
|
|
6635
|
-
const t = g(() => Fr(e())), o = g(() =>
|
|
6634
|
+
function Xo(e) {
|
|
6635
|
+
const t = g(() => Fr(e())), o = g(() => Oa(e()));
|
|
6636
6636
|
return {
|
|
6637
6637
|
leafColumns: t,
|
|
6638
6638
|
headerRows: o
|
|
@@ -6646,12 +6646,12 @@ function jr(e) {
|
|
|
6646
6646
|
function r(n, s) {
|
|
6647
6647
|
if (o(n))
|
|
6648
6648
|
return e.controlledValue(n) ?? s;
|
|
6649
|
-
const i =
|
|
6649
|
+
const i = ve(n);
|
|
6650
6650
|
return i === void 0 ? s : t[String(i)] ?? s;
|
|
6651
6651
|
}
|
|
6652
6652
|
function l(n, s) {
|
|
6653
6653
|
if (o(n)) return;
|
|
6654
|
-
const i =
|
|
6654
|
+
const i = ve(n);
|
|
6655
6655
|
i !== void 0 && (s === void 0 ? delete t[String(i)] : t[String(i)] = s);
|
|
6656
6656
|
}
|
|
6657
6657
|
return { innerState: t, isControlled: o, readValue: r, writeValue: l };
|
|
@@ -6660,11 +6660,11 @@ function Hr(e) {
|
|
|
6660
6660
|
if (!(!e || typeof e != "object" || typeof e == "function"))
|
|
6661
6661
|
return e;
|
|
6662
6662
|
}
|
|
6663
|
-
function
|
|
6663
|
+
function Qt(e) {
|
|
6664
6664
|
const t = Hr(e.sorter)?.multiple;
|
|
6665
6665
|
return typeof t == "number" && Number.isFinite(t) ? t : !1;
|
|
6666
6666
|
}
|
|
6667
|
-
function
|
|
6667
|
+
function Yo(e) {
|
|
6668
6668
|
return {
|
|
6669
6669
|
column: e.column,
|
|
6670
6670
|
columnKey: e.columnKey,
|
|
@@ -6672,21 +6672,21 @@ function Uo(e) {
|
|
|
6672
6672
|
field: e.column?.dataIndex
|
|
6673
6673
|
};
|
|
6674
6674
|
}
|
|
6675
|
-
function
|
|
6675
|
+
function La(e, t) {
|
|
6676
6676
|
return typeof e == "number" && typeof t == "number" ? e - t : String(e ?? "").localeCompare(String(t ?? ""));
|
|
6677
6677
|
}
|
|
6678
|
-
function
|
|
6678
|
+
function Ba(e, t) {
|
|
6679
6679
|
const o = e.sortDirections ?? t;
|
|
6680
6680
|
return o && o.length > 0 ? o : ["ascend", "descend"];
|
|
6681
6681
|
}
|
|
6682
|
-
function
|
|
6682
|
+
function Fa(e, t) {
|
|
6683
6683
|
const o = t.indexOf(e);
|
|
6684
6684
|
return o === -1 ? t[0] ?? null : o >= t.length - 1 ? null : t[o + 1];
|
|
6685
6685
|
}
|
|
6686
|
-
function
|
|
6686
|
+
function ja(e, t) {
|
|
6687
6687
|
return Number(t.multiplePriority) - Number(e.multiplePriority);
|
|
6688
6688
|
}
|
|
6689
|
-
function
|
|
6689
|
+
function Ha(e) {
|
|
6690
6690
|
const { columns: t, tableSortDirections: o, onSorterChange: r } = e, {
|
|
6691
6691
|
innerState: l,
|
|
6692
6692
|
isControlled: n,
|
|
@@ -6699,7 +6699,7 @@ function Na(e) {
|
|
|
6699
6699
|
const y = /* @__PURE__ */ new Set();
|
|
6700
6700
|
t().forEach((k) => {
|
|
6701
6701
|
if (!k.sorter) return;
|
|
6702
|
-
const T =
|
|
6702
|
+
const T = ve(k);
|
|
6703
6703
|
if (T === void 0) return;
|
|
6704
6704
|
const C = String(T);
|
|
6705
6705
|
y.add(C), k.sortOrder === void 0 && (d.has(C) || (d.add(C), k.defaultSortOrder && (l[C] = k.defaultSortOrder)));
|
|
@@ -6712,24 +6712,24 @@ function Na(e) {
|
|
|
6712
6712
|
deep: !0
|
|
6713
6713
|
});
|
|
6714
6714
|
function v(y) {
|
|
6715
|
-
return
|
|
6715
|
+
return ve(y) === void 0 ? null : s(y, null);
|
|
6716
6716
|
}
|
|
6717
6717
|
function m(y) {
|
|
6718
6718
|
const k = [];
|
|
6719
6719
|
t().forEach((C) => {
|
|
6720
6720
|
if (!C.sorter) return;
|
|
6721
|
-
const D =
|
|
6721
|
+
const D = ve(C);
|
|
6722
6722
|
if (D === void 0) return;
|
|
6723
6723
|
const j = y && String(D) === String(y.columnKey) ? y.order : v(C);
|
|
6724
6724
|
j && k.push({
|
|
6725
6725
|
columnKey: D,
|
|
6726
6726
|
order: j,
|
|
6727
6727
|
column: C,
|
|
6728
|
-
multiplePriority:
|
|
6728
|
+
multiplePriority: Qt(C)
|
|
6729
6729
|
});
|
|
6730
6730
|
});
|
|
6731
6731
|
const T = k.filter((C) => C.multiplePriority === !1);
|
|
6732
|
-
return T.length > 0 ? [T[T.length - 1]] : k.sort(
|
|
6732
|
+
return T.length > 0 ? [T[T.length - 1]] : k.sort(ja);
|
|
6733
6733
|
}
|
|
6734
6734
|
function p(y) {
|
|
6735
6735
|
return y.length === 0 ? {
|
|
@@ -6737,7 +6737,7 @@ function Na(e) {
|
|
|
6737
6737
|
columnKey: void 0,
|
|
6738
6738
|
order: null,
|
|
6739
6739
|
field: void 0
|
|
6740
|
-
} : y.length === 1 ?
|
|
6740
|
+
} : y.length === 1 ? Yo(y[0]) : y.map(Yo);
|
|
6741
6741
|
}
|
|
6742
6742
|
function c(y) {
|
|
6743
6743
|
return v(y);
|
|
@@ -6745,16 +6745,16 @@ function Na(e) {
|
|
|
6745
6745
|
function h(y) {
|
|
6746
6746
|
t().forEach((k) => {
|
|
6747
6747
|
if (!k.sorter || n(k)) return;
|
|
6748
|
-
const T =
|
|
6748
|
+
const T = ve(k);
|
|
6749
6749
|
T !== void 0 && (y && !y(k) || delete l[String(T)]);
|
|
6750
6750
|
});
|
|
6751
6751
|
}
|
|
6752
6752
|
function f(y) {
|
|
6753
6753
|
if (!y.sorter) return;
|
|
6754
|
-
const k =
|
|
6754
|
+
const k = ve(y);
|
|
6755
6755
|
if (k === void 0) return;
|
|
6756
|
-
const T = c(y), C =
|
|
6757
|
-
n(y) || (j === !1 ? h() : h((ee) =>
|
|
6756
|
+
const T = c(y), C = Ba(y, o?.()), D = Fa(T, C), j = Qt(y);
|
|
6757
|
+
n(y) || (j === !1 ? h() : h((ee) => Qt(ee) === !1), i(y, D ?? void 0));
|
|
6758
6758
|
const Z = m({
|
|
6759
6759
|
columnKey: k,
|
|
6760
6760
|
order: D
|
|
@@ -6766,7 +6766,7 @@ function Na(e) {
|
|
|
6766
6766
|
if (typeof y.sorter == "function")
|
|
6767
6767
|
return y.sorter;
|
|
6768
6768
|
const k = Hr(y.sorter);
|
|
6769
|
-
return k?.compare ? k.compare : (T, C) =>
|
|
6769
|
+
return k?.compare ? k.compare : (T, C) => La(Nt(T, y.dataIndex), Nt(C, y.dataIndex));
|
|
6770
6770
|
}
|
|
6771
6771
|
const S = g(() => m()), I = g(() => S.value[0] ?? {
|
|
6772
6772
|
columnKey: void 0,
|
|
@@ -6810,7 +6810,7 @@ function Na(e) {
|
|
|
6810
6810
|
sortData: E
|
|
6811
6811
|
};
|
|
6812
6812
|
}
|
|
6813
|
-
function
|
|
6813
|
+
function Na(e) {
|
|
6814
6814
|
const { columns: t, onFilterChange: o } = e, {
|
|
6815
6815
|
innerState: r,
|
|
6816
6816
|
readValue: l,
|
|
@@ -6819,7 +6819,7 @@ function Pa(e) {
|
|
|
6819
6819
|
controlledValue: (h) => h.filteredValue
|
|
6820
6820
|
});
|
|
6821
6821
|
for (const h of t()) {
|
|
6822
|
-
const f =
|
|
6822
|
+
const f = ve(h);
|
|
6823
6823
|
f !== void 0 && h.defaultFilteredValue && (r[String(f)] = [...h.defaultFilteredValue]);
|
|
6824
6824
|
}
|
|
6825
6825
|
function s(h) {
|
|
@@ -6838,9 +6838,9 @@ function Pa(e) {
|
|
|
6838
6838
|
return h;
|
|
6839
6839
|
});
|
|
6840
6840
|
function a(h, f) {
|
|
6841
|
-
const b = {}, S = h ?
|
|
6841
|
+
const b = {}, S = h ? ve(h) : void 0;
|
|
6842
6842
|
for (const I of t()) {
|
|
6843
|
-
const w =
|
|
6843
|
+
const w = ve(I);
|
|
6844
6844
|
if (w === void 0) continue;
|
|
6845
6845
|
const O = S !== void 0 && String(w) === String(S) && f !== void 0 ? i(f) : s(I);
|
|
6846
6846
|
b[String(w)] = O.length > 0 ? O : null;
|
|
@@ -6848,7 +6848,7 @@ function Pa(e) {
|
|
|
6848
6848
|
return b;
|
|
6849
6849
|
}
|
|
6850
6850
|
function v(h, f) {
|
|
6851
|
-
|
|
6851
|
+
ve(h) !== void 0 && (n(h, f.length === 0 ? void 0 : [...f]), o?.(a(h, f)));
|
|
6852
6852
|
}
|
|
6853
6853
|
function m(h) {
|
|
6854
6854
|
h.filterResetToDefaultFilteredValue && h.defaultFilteredValue ? v(h, [...h.defaultFilteredValue]) : v(h, []);
|
|
@@ -6872,7 +6872,7 @@ function Pa(e) {
|
|
|
6872
6872
|
filterData: c
|
|
6873
6873
|
};
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function Pa(e) {
|
|
6876
6876
|
const { data: t, childrenColumnName: o, getRowKey: r } = e, l = [];
|
|
6877
6877
|
let n = 0;
|
|
6878
6878
|
function s(i, d, a) {
|
|
@@ -6890,17 +6890,17 @@ function Va(e) {
|
|
|
6890
6890
|
}
|
|
6891
6891
|
return s(t, 0), l;
|
|
6892
6892
|
}
|
|
6893
|
-
const
|
|
6894
|
-
function
|
|
6893
|
+
const Va = Object.freeze([]);
|
|
6894
|
+
function Ka(e) {
|
|
6895
6895
|
return e.data.map((t, o) => ({
|
|
6896
6896
|
key: e.getRowKey(t, o),
|
|
6897
6897
|
record: t,
|
|
6898
6898
|
index: o,
|
|
6899
6899
|
level: 0,
|
|
6900
|
-
childrenKeys:
|
|
6900
|
+
childrenKeys: Va
|
|
6901
6901
|
}));
|
|
6902
6902
|
}
|
|
6903
|
-
function
|
|
6903
|
+
function Wa(e) {
|
|
6904
6904
|
const { rowSelection: t, getRowKey: o, data: r, visibleData: l, childrenColumnName: n, onSelectionChange: s } = e, i = F(/* @__PURE__ */ new Set()), d = F(!1), a = F(null);
|
|
6905
6905
|
ne(
|
|
6906
6906
|
() => t()?.defaultSelectedRowKeys,
|
|
@@ -6912,11 +6912,11 @@ function $a(e) {
|
|
|
6912
6912
|
function v() {
|
|
6913
6913
|
return t()?.selectedRowKeys !== void 0;
|
|
6914
6914
|
}
|
|
6915
|
-
const m = g(() => t()?.checkStrictly === !1), p = g(() => t() ? m.value ?
|
|
6915
|
+
const m = g(() => t()?.checkStrictly === !1), p = g(() => t() ? m.value ? Pa({
|
|
6916
6916
|
data: r(),
|
|
6917
6917
|
childrenColumnName: n?.() ?? "children",
|
|
6918
6918
|
getRowKey: o
|
|
6919
|
-
}) :
|
|
6919
|
+
}) : Ka({
|
|
6920
6920
|
data: r(),
|
|
6921
6921
|
getRowKey: o
|
|
6922
6922
|
}) : []), c = g(() => {
|
|
@@ -7033,14 +7033,14 @@ function $a(e) {
|
|
|
7033
7033
|
if (!_) return;
|
|
7034
7034
|
const H = o(x, R), N = !O(H);
|
|
7035
7035
|
if (_.type !== "radio" && A?.shiftKey && a.value !== null && t()?.checkStrictly !== !1) {
|
|
7036
|
-
const U = k(), se = U.findIndex((
|
|
7037
|
-
(
|
|
7036
|
+
const U = k(), se = U.findIndex((me) => me.key === H), ce = U.findIndex(
|
|
7037
|
+
(me) => me.key === a.value
|
|
7038
7038
|
);
|
|
7039
7039
|
if (se !== -1 && ce !== -1) {
|
|
7040
|
-
const [
|
|
7041
|
-
U.slice(
|
|
7042
|
-
const
|
|
7043
|
-
N ? de.add(Se.key) : de.delete(Se.key),
|
|
7040
|
+
const [me, ye] = se > ce ? [ce, se] : [se, ce], de = new Set(w.value), Ee = [];
|
|
7041
|
+
U.slice(me, ye + 1).forEach((Se) => {
|
|
7042
|
+
const Ue = de.has(Se.key);
|
|
7043
|
+
N ? de.add(Se.key) : de.delete(Se.key), Ue !== N && Ee.push(Se.record);
|
|
7044
7044
|
}), D(de), _.onSelectMultiple?.(N, E(de), Ee), a.value = H;
|
|
7045
7045
|
return;
|
|
7046
7046
|
}
|
|
@@ -7113,10 +7113,10 @@ function $a(e) {
|
|
|
7113
7113
|
getChangeableRowKeys: z
|
|
7114
7114
|
};
|
|
7115
7115
|
}
|
|
7116
|
-
function
|
|
7117
|
-
return
|
|
7116
|
+
function Uo(e, t) {
|
|
7117
|
+
return ve(e) ?? t;
|
|
7118
7118
|
}
|
|
7119
|
-
function
|
|
7119
|
+
function $a(e) {
|
|
7120
7120
|
const t = F(null), o = F(null), r = F(0), l = F(0), n = {
|
|
7121
7121
|
atStart: g(() => r.value <= 0),
|
|
7122
7122
|
atEnd: g(() => r.value >= l.value - 1)
|
|
@@ -7143,7 +7143,7 @@ function qa(e) {
|
|
|
7143
7143
|
for (let b = 0; b < v.length; b++) {
|
|
7144
7144
|
const S = v[b];
|
|
7145
7145
|
if (S.fixed !== "left") continue;
|
|
7146
|
-
const I =
|
|
7146
|
+
const I = Uo(S, b), w = typeof S.width == "number" ? S.width : parseInt(String(S.width) || "0", 10);
|
|
7147
7147
|
m.set(I, {
|
|
7148
7148
|
left: p,
|
|
7149
7149
|
isLastLeft: b === c
|
|
@@ -7158,7 +7158,7 @@ function qa(e) {
|
|
|
7158
7158
|
for (let b = v.length - 1; b >= 0; b--) {
|
|
7159
7159
|
const S = v[b];
|
|
7160
7160
|
if (S.fixed !== "right") continue;
|
|
7161
|
-
const I =
|
|
7161
|
+
const I = Uo(S, b), w = typeof S.width == "number" ? S.width : parseInt(String(S.width) || "0", 10);
|
|
7162
7162
|
m.set(I, {
|
|
7163
7163
|
right: h,
|
|
7164
7164
|
isFirstRight: b === f
|
|
@@ -7176,7 +7176,7 @@ function qa(e) {
|
|
|
7176
7176
|
syncHorizontalScroll: s
|
|
7177
7177
|
};
|
|
7178
7178
|
}
|
|
7179
|
-
const
|
|
7179
|
+
const pe = /* @__PURE__ */ Symbol("vtable-table-context");
|
|
7180
7180
|
function Nr(e, t, o, r) {
|
|
7181
7181
|
const l = e.compatClass;
|
|
7182
7182
|
if (!l) return "";
|
|
@@ -7186,13 +7186,13 @@ function Nr(e, t, o, r) {
|
|
|
7186
7186
|
function Pr(e, t) {
|
|
7187
7187
|
return e.compatClass?.(`expanded-row-level-${t + 1}`) ?? "";
|
|
7188
7188
|
}
|
|
7189
|
-
function
|
|
7189
|
+
function qa(e, t) {
|
|
7190
7190
|
const o = e.compatClass;
|
|
7191
7191
|
if (!o || !t) return "";
|
|
7192
7192
|
const r = [];
|
|
7193
7193
|
return t.left !== void 0 && (r.push(o("cell-fix-left")), t.left === 0 && r.push(o("cell-fix-left-first")), t.isLastLeft && r.push(o("cell-fix-left-last"))), t.right !== void 0 && (r.push(o("cell-fix-right")), t.isFirstRight && r.push(o("cell-fix-right-first")), t.right === 0 && r.push(o("cell-fix-right-last"))), e.sticky?.value && r.push(o("cell-fix-sticky")), r.join(" ");
|
|
7194
7194
|
}
|
|
7195
|
-
function
|
|
7195
|
+
function Ga(e) {
|
|
7196
7196
|
const t = e.compatClass;
|
|
7197
7197
|
if (!t) return "";
|
|
7198
7198
|
const o = [], r = e.fixedOffsets?.value;
|
|
@@ -7203,8 +7203,8 @@ function Xa(e) {
|
|
|
7203
7203
|
}
|
|
7204
7204
|
return l && o.push(t("has-fix-left")), n && o.push(t("has-fix-right")), e.fixedColumn && o.push(t("fixed-column")), e.empty && o.push(t("empty")), e.fixedHeader && o.push(t("fixed-header")), e.horizontalScroll && o.push(t("scroll-horizontal")), e.layoutFixed && o.push(t("layout-fixed")), e.scrollState && (e.scrollState.atStart.value || o.push(t("ping-left")), e.scrollState.atEnd.value || o.push(t("ping-right"))), o.join(" ");
|
|
7205
7205
|
}
|
|
7206
|
-
function
|
|
7207
|
-
const t = ue(
|
|
7206
|
+
function vo(e) {
|
|
7207
|
+
const t = ue(pe, {}), o = g(() => {
|
|
7208
7208
|
const l = e.fixedInfo();
|
|
7209
7209
|
if (!l) return;
|
|
7210
7210
|
const n = { position: "sticky", zIndex: "2" };
|
|
@@ -7212,14 +7212,14 @@ function mo(e) {
|
|
|
7212
7212
|
}), r = g(() => {
|
|
7213
7213
|
const l = e.fixedInfo();
|
|
7214
7214
|
if (!l) return "";
|
|
7215
|
-
const n =
|
|
7215
|
+
const n = qa(t, l), s = t.subThemeSlots;
|
|
7216
7216
|
if (!s) return n;
|
|
7217
7217
|
const i = [], d = t.scrollState?.atStart.value ?? !0, a = t.scrollState?.atEnd.value ?? !0;
|
|
7218
7218
|
return l.isLastLeft && !d && i.push(s.fixedShadowLeft()), l.isFirstRight && !a && i.push(s.fixedShadowRight()), n && i.push(n), i.join(" ");
|
|
7219
7219
|
});
|
|
7220
7220
|
return { fixedStyle: o, fixedClass: r };
|
|
7221
7221
|
}
|
|
7222
|
-
function
|
|
7222
|
+
function Xa(e) {
|
|
7223
7223
|
const t = F([]);
|
|
7224
7224
|
let o = !1;
|
|
7225
7225
|
ne(
|
|
@@ -7252,7 +7252,7 @@ function Ya(e) {
|
|
|
7252
7252
|
expandedKeySet: l
|
|
7253
7253
|
};
|
|
7254
7254
|
}
|
|
7255
|
-
function
|
|
7255
|
+
function Ya(e) {
|
|
7256
7256
|
const t = Wt({}), o = F(!1);
|
|
7257
7257
|
let r = null, l = "", n = 0, s = 0;
|
|
7258
7258
|
function i(m) {
|
|
@@ -7272,7 +7272,7 @@ function Ua(e) {
|
|
|
7272
7272
|
}
|
|
7273
7273
|
function v(m, p, c) {
|
|
7274
7274
|
c.preventDefault(), c.stopPropagation(), r = m;
|
|
7275
|
-
const h =
|
|
7275
|
+
const h = ve(m) ?? String(p);
|
|
7276
7276
|
l = String(h), n = c.clientX;
|
|
7277
7277
|
const f = t[l];
|
|
7278
7278
|
if (f)
|
|
@@ -7289,7 +7289,7 @@ function Ua(e) {
|
|
|
7289
7289
|
isResizing: o
|
|
7290
7290
|
};
|
|
7291
7291
|
}
|
|
7292
|
-
function
|
|
7292
|
+
function Ua(e = 100) {
|
|
7293
7293
|
const t = F(null);
|
|
7294
7294
|
let o = null;
|
|
7295
7295
|
function r(l) {
|
|
@@ -7305,40 +7305,40 @@ function Za(e = 100) {
|
|
|
7305
7305
|
clearHoverRange: () => r(null)
|
|
7306
7306
|
};
|
|
7307
7307
|
}
|
|
7308
|
-
function
|
|
7308
|
+
function Za(e, t, o) {
|
|
7309
7309
|
if (!o) return !1;
|
|
7310
7310
|
const [r, l] = o, n = e + Math.max(1, t) - 1;
|
|
7311
7311
|
return e <= l && n >= r;
|
|
7312
7312
|
}
|
|
7313
|
-
const
|
|
7314
|
-
function
|
|
7313
|
+
const Ja = 0.5;
|
|
7314
|
+
function Qa(e, t) {
|
|
7315
7315
|
if (e === null || t === null) return e === t;
|
|
7316
7316
|
if (e.widths.length !== t.widths.length) return !1;
|
|
7317
7317
|
for (let o = 0; o < e.widths.length; o += 1)
|
|
7318
|
-
if (Math.abs(e.widths[o] - t.widths[o]) >
|
|
7318
|
+
if (Math.abs(e.widths[o] - t.widths[o]) > Ja) return !1;
|
|
7319
7319
|
return !0;
|
|
7320
7320
|
}
|
|
7321
|
-
function
|
|
7322
|
-
return
|
|
7321
|
+
function es(e, t) {
|
|
7322
|
+
return ve(e) ?? t;
|
|
7323
7323
|
}
|
|
7324
|
-
function
|
|
7324
|
+
function ts(e, t) {
|
|
7325
7325
|
const o = [];
|
|
7326
7326
|
let r = 0;
|
|
7327
7327
|
for (let l = 0; l < e.length; l += 1) {
|
|
7328
|
-
const n = t[String(
|
|
7328
|
+
const n = t[String(es(e[l], l))] ?? e[l].width, s = typeof n == "number" ? n : Number.NaN;
|
|
7329
7329
|
if (!Number.isFinite(s) || s <= 0) return null;
|
|
7330
7330
|
o.push(s), r += s;
|
|
7331
7331
|
}
|
|
7332
7332
|
return r > 0 ? { widths: o, total: r } : null;
|
|
7333
7333
|
}
|
|
7334
|
-
function
|
|
7335
|
-
const t =
|
|
7334
|
+
function os(e) {
|
|
7335
|
+
const t = _e(null);
|
|
7336
7336
|
let o = 0, r = null, l = null;
|
|
7337
7337
|
function n() {
|
|
7338
7338
|
const a = e.columns(), v = a.length;
|
|
7339
7339
|
if (v === 0) return null;
|
|
7340
7340
|
if (!e.hasHeader())
|
|
7341
|
-
return
|
|
7341
|
+
return ts(a, e.columnWidths);
|
|
7342
7342
|
const m = e.headerEl();
|
|
7343
7343
|
if (!m) return null;
|
|
7344
7344
|
const p = m.querySelectorAll("th[data-vtg-leaf-col]");
|
|
@@ -7362,7 +7362,7 @@ function rs(e) {
|
|
|
7362
7362
|
return;
|
|
7363
7363
|
}
|
|
7364
7364
|
const a = n();
|
|
7365
|
-
|
|
7365
|
+
Qa(t.value, a) || (t.value = a);
|
|
7366
7366
|
}
|
|
7367
7367
|
function i() {
|
|
7368
7368
|
if (typeof requestAnimationFrame > "u") {
|
|
@@ -7387,13 +7387,13 @@ function rs(e) {
|
|
|
7387
7387
|
d(), i();
|
|
7388
7388
|
},
|
|
7389
7389
|
{ deep: !1 }
|
|
7390
|
-
),
|
|
7390
|
+
), Xe(() => {
|
|
7391
7391
|
d(), i();
|
|
7392
7392
|
}), De(() => {
|
|
7393
7393
|
o && cancelAnimationFrame(o), r?.disconnect(), r = null, l = null;
|
|
7394
7394
|
}), { metrics: t, remeasure: i };
|
|
7395
7395
|
}
|
|
7396
|
-
const
|
|
7396
|
+
const rs = 2;
|
|
7397
7397
|
function Vr(e) {
|
|
7398
7398
|
const t = e.length;
|
|
7399
7399
|
let o = 0;
|
|
@@ -7410,7 +7410,7 @@ function Vr(e) {
|
|
|
7410
7410
|
}
|
|
7411
7411
|
return { leftFixedCount: o, rightFixedStart: r, contiguous: l };
|
|
7412
7412
|
}
|
|
7413
|
-
function
|
|
7413
|
+
function ls(e) {
|
|
7414
7414
|
const { prefix: t, columnCount: o, leftFixedCount: r, rightFixedStart: l, offsetX: n, viewportWidth: s, overscan: i } = e, d = r, a = l - 1;
|
|
7415
7415
|
if (d > a)
|
|
7416
7416
|
return { start: d, end: d - 1, leftSpacer: 0, rightSpacer: 0 };
|
|
@@ -7423,20 +7423,20 @@ function ns(e) {
|
|
|
7423
7423
|
rightSpacer: t.offsetOf(l) - t.offsetOf(f + 1)
|
|
7424
7424
|
};
|
|
7425
7425
|
}
|
|
7426
|
-
function
|
|
7426
|
+
function ns(e) {
|
|
7427
7427
|
const t = new Er(), o = g(() => {
|
|
7428
7428
|
const l = e.widths();
|
|
7429
7429
|
return !l || l.length === 0 ? null : (t.markAllDirty(), t.sync(l.length, (n) => l[n], 0), l.length);
|
|
7430
7430
|
}), r = g(() => {
|
|
7431
7431
|
const l = o.value;
|
|
7432
|
-
return l === null ? null :
|
|
7432
|
+
return l === null ? null : ls({
|
|
7433
7433
|
prefix: t,
|
|
7434
7434
|
columnCount: l,
|
|
7435
7435
|
leftFixedCount: e.leftFixedCount(),
|
|
7436
7436
|
rightFixedStart: e.rightFixedStart(),
|
|
7437
7437
|
offsetX: e.offsetX(),
|
|
7438
7438
|
viewportWidth: e.viewportWidth(),
|
|
7439
|
-
overscan: e.overscan?.() ??
|
|
7439
|
+
overscan: e.overscan?.() ?? rs
|
|
7440
7440
|
});
|
|
7441
7441
|
});
|
|
7442
7442
|
return {
|
|
@@ -7448,12 +7448,12 @@ function as(e) {
|
|
|
7448
7448
|
};
|
|
7449
7449
|
}
|
|
7450
7450
|
function Pt(e) {
|
|
7451
|
-
return e == null || typeof e == "boolean" ? !1 : Array.isArray(e) ? e.some(Pt) : typeof e == "object" && "type" in e ? e.type === Il ? !1 : e.type ===
|
|
7451
|
+
return e == null || typeof e == "boolean" ? !1 : Array.isArray(e) ? e.some(Pt) : typeof e == "object" && "type" in e ? e.type === Il ? !1 : e.type === io ? Pt(e.children) : !0 : !0;
|
|
7452
7452
|
}
|
|
7453
7453
|
function Kr(e) {
|
|
7454
7454
|
return Array.isArray(e) ? e.some(Pt) ? e : null : Pt(e) ? e : null;
|
|
7455
7455
|
}
|
|
7456
|
-
function
|
|
7456
|
+
function as(e) {
|
|
7457
7457
|
if (e != null) {
|
|
7458
7458
|
if (typeof e == "string") return e;
|
|
7459
7459
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint")
|
|
@@ -7461,9 +7461,9 @@ function ss(e) {
|
|
|
7461
7461
|
}
|
|
7462
7462
|
}
|
|
7463
7463
|
function Wr(e) {
|
|
7464
|
-
return !!e && typeof e == "object" && !Array.isArray(e) && !
|
|
7464
|
+
return !!e && typeof e == "object" && !Array.isArray(e) && !St(e);
|
|
7465
7465
|
}
|
|
7466
|
-
function
|
|
7466
|
+
function yt(e, t) {
|
|
7467
7467
|
const o = e?.[t] ?? e?.[t.toLowerCase()];
|
|
7468
7468
|
if (typeof o == "number" && Number.isFinite(o))
|
|
7469
7469
|
return o;
|
|
@@ -7509,10 +7509,10 @@ function $r(e) {
|
|
|
7509
7509
|
});
|
|
7510
7510
|
Kr(c) !== null && (a = c);
|
|
7511
7511
|
}
|
|
7512
|
-
const m =
|
|
7512
|
+
const m = yt(v, "colSpan") ?? yt(i, "colSpan"), p = yt(v, "rowSpan") ?? yt(i, "rowSpan");
|
|
7513
7513
|
return {
|
|
7514
7514
|
content: a,
|
|
7515
|
-
tooltipText:
|
|
7515
|
+
tooltipText: as(d),
|
|
7516
7516
|
customCellProps: i,
|
|
7517
7517
|
renderCellProps: v,
|
|
7518
7518
|
colSpan: m ?? 1,
|
|
@@ -7523,26 +7523,26 @@ function Vt(e) {
|
|
|
7523
7523
|
const t = e.ellipsis;
|
|
7524
7524
|
return t === !0 ? { enabled: !0, showTitle: !0 } : t && typeof t == "object" ? { enabled: !0, showTitle: t.showTitle !== !1 } : { enabled: !1, showTitle: !1 };
|
|
7525
7525
|
}
|
|
7526
|
-
const
|
|
7526
|
+
const Zo = {
|
|
7527
7527
|
small: 39,
|
|
7528
7528
|
middle: 47,
|
|
7529
7529
|
large: 55
|
|
7530
|
-
},
|
|
7531
|
-
function
|
|
7530
|
+
}, Jo = "large";
|
|
7531
|
+
function ss(e) {
|
|
7532
7532
|
const t = g(() => !!e.virtual() && !!e.scrollY()), o = g(() => {
|
|
7533
7533
|
const n = e.rowHeight?.();
|
|
7534
7534
|
return typeof n == "number" && Number.isFinite(n) && n > 0;
|
|
7535
7535
|
}), r = g(() => {
|
|
7536
7536
|
if (o.value) return e.rowHeight();
|
|
7537
|
-
const n = e.size() ??
|
|
7538
|
-
return
|
|
7537
|
+
const n = e.size() ?? Jo;
|
|
7538
|
+
return Zo[n] ?? Zo[Jo];
|
|
7539
7539
|
}), l = g(() => {
|
|
7540
7540
|
const n = e.scrollY();
|
|
7541
7541
|
return typeof n == "number" ? n : typeof n == "string" && parseInt(n, 10) || 400;
|
|
7542
7542
|
});
|
|
7543
7543
|
return { enabled: t, itemHeight: r, listHeight: l, fixedHeight: o };
|
|
7544
7544
|
}
|
|
7545
|
-
function
|
|
7545
|
+
function is(e) {
|
|
7546
7546
|
const t = g(() => e.childrenColumnName?.() ?? "children"), o = g(() => e.indentSize?.() ?? 15), r = g(() => {
|
|
7547
7547
|
const m = t.value;
|
|
7548
7548
|
return e.data().some(
|
|
@@ -7631,7 +7631,7 @@ function cs(e) {
|
|
|
7631
7631
|
};
|
|
7632
7632
|
}
|
|
7633
7633
|
const qr = "SELECT_ALL", Gr = "SELECT_INVERT", Xr = "SELECT_NONE", Yr = /* @__PURE__ */ Symbol("VTG_EXPAND_COLUMN"), Ur = /* @__PURE__ */ Symbol("VTG_SELECTION_COLUMN");
|
|
7634
|
-
function
|
|
7634
|
+
function Ye(e) {
|
|
7635
7635
|
return /* @__PURE__ */ le({
|
|
7636
7636
|
name: e.name,
|
|
7637
7637
|
inheritAttrs: !0,
|
|
@@ -7650,35 +7650,35 @@ function Xe(e) {
|
|
|
7650
7650
|
}
|
|
7651
7651
|
});
|
|
7652
7652
|
}
|
|
7653
|
-
const
|
|
7653
|
+
const cs = Ye({
|
|
7654
7654
|
name: "CaretUpIcon",
|
|
7655
7655
|
viewBox: "0 0 1024 1024",
|
|
7656
7656
|
path: "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"
|
|
7657
|
-
}), Zr =
|
|
7657
|
+
}), Zr = Ye({
|
|
7658
7658
|
name: "CaretDownIcon",
|
|
7659
7659
|
viewBox: "0 0 1024 1024",
|
|
7660
7660
|
path: "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"
|
|
7661
|
-
}),
|
|
7661
|
+
}), ds = Ye({
|
|
7662
7662
|
name: "FilterFilledIcon",
|
|
7663
7663
|
viewBox: "64 64 896 896",
|
|
7664
7664
|
path: "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"
|
|
7665
|
-
}),
|
|
7665
|
+
}), us = Ye({
|
|
7666
7666
|
name: "SearchIcon",
|
|
7667
7667
|
viewBox: "64 64 896 896",
|
|
7668
7668
|
path: "M909.6 854.5 649.9 594.8A301.64 301.64 0 0 0 712 412c0-80.2-31.3-155.4-87.9-212.1C567.5 143.2 492.2 112 412 112s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6ZM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4Z"
|
|
7669
|
-
}),
|
|
7669
|
+
}), fs = Ye({
|
|
7670
7670
|
name: "ElCaretTopIcon",
|
|
7671
7671
|
viewBox: "0 0 1024 1024",
|
|
7672
7672
|
path: "M512 320L192 704h640z"
|
|
7673
|
-
}),
|
|
7673
|
+
}), vs = Ye({
|
|
7674
7674
|
name: "ElCaretBottomIcon",
|
|
7675
7675
|
viewBox: "0 0 1024 1024",
|
|
7676
7676
|
path: "M512 704L192 320h640z"
|
|
7677
|
-
}),
|
|
7677
|
+
}), ms = Ye({
|
|
7678
7678
|
name: "ElArrowDownIcon",
|
|
7679
7679
|
viewBox: "0 0 1024 1024",
|
|
7680
7680
|
path: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
7681
|
-
}),
|
|
7681
|
+
}), hs = /* @__PURE__ */ le({
|
|
7682
7682
|
name: "AntdvEmptyIcon",
|
|
7683
7683
|
inheritAttrs: !0,
|
|
7684
7684
|
setup(e, {
|
|
@@ -7710,7 +7710,7 @@ const ds = Xe({
|
|
|
7710
7710
|
fill: "var(--vtg-table-empty-content-color, #f5f5f5)"
|
|
7711
7711
|
}, null)])])]);
|
|
7712
7712
|
}
|
|
7713
|
-
}),
|
|
7713
|
+
}), ps = /* @__PURE__ */ le({
|
|
7714
7714
|
name: "AntdvSpinIndicator",
|
|
7715
7715
|
inheritAttrs: !0,
|
|
7716
7716
|
setup(e, {
|
|
@@ -7728,7 +7728,7 @@ const ds = Xe({
|
|
|
7728
7728
|
class: "vtg-spin-dot-item"
|
|
7729
7729
|
}, null)]);
|
|
7730
7730
|
}
|
|
7731
|
-
}),
|
|
7731
|
+
}), bs = /* @__PURE__ */ le({
|
|
7732
7732
|
name: "ElLoadingIcon",
|
|
7733
7733
|
inheritAttrs: !0,
|
|
7734
7734
|
setup(e, {
|
|
@@ -7751,36 +7751,36 @@ const ds = Xe({
|
|
|
7751
7751
|
"stroke-dasharray": "90 150"
|
|
7752
7752
|
}, null)]);
|
|
7753
7753
|
}
|
|
7754
|
-
}),
|
|
7754
|
+
}), gs = Ye({
|
|
7755
7755
|
name: "DownOutlinedIcon",
|
|
7756
7756
|
viewBox: "64 64 896 896",
|
|
7757
7757
|
path: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
7758
7758
|
}), Kt = {
|
|
7759
7759
|
antdv: {
|
|
7760
|
-
sortAscIcon:
|
|
7760
|
+
sortAscIcon: cs,
|
|
7761
7761
|
sortDescIcon: Zr,
|
|
7762
|
-
filterIcon:
|
|
7762
|
+
filterIcon: ds,
|
|
7763
7763
|
filterSingleSelectMode: "radio",
|
|
7764
7764
|
showSorterTooltip: !0,
|
|
7765
|
-
emptyIcon:
|
|
7766
|
-
loadingIcon:
|
|
7765
|
+
emptyIcon: hs,
|
|
7766
|
+
loadingIcon: ps
|
|
7767
7767
|
},
|
|
7768
7768
|
"element-plus": {
|
|
7769
|
-
sortAscIcon:
|
|
7770
|
-
sortDescIcon:
|
|
7771
|
-
filterIcon:
|
|
7769
|
+
sortAscIcon: fs,
|
|
7770
|
+
sortDescIcon: vs,
|
|
7771
|
+
filterIcon: ms,
|
|
7772
7772
|
filterSingleSelectMode: "highlight",
|
|
7773
7773
|
showSorterTooltip: !1,
|
|
7774
|
-
loadingIcon:
|
|
7774
|
+
loadingIcon: bs
|
|
7775
7775
|
}
|
|
7776
7776
|
};
|
|
7777
|
-
function
|
|
7777
|
+
function ys(e = "antdv") {
|
|
7778
7778
|
return Kt[e] ?? Kt.antdv;
|
|
7779
7779
|
}
|
|
7780
|
-
function
|
|
7780
|
+
function eo(e, t) {
|
|
7781
7781
|
return !t || typeof document > "u" ? "body" : e.getPopupContainer?.(t) ?? document.body;
|
|
7782
7782
|
}
|
|
7783
|
-
function
|
|
7783
|
+
function mo(e, t, o) {
|
|
7784
7784
|
const r = typeof window > "u" ? 0 : window.innerWidth;
|
|
7785
7785
|
if (typeof t == "string" || typeof document < "u" && t === document.body) {
|
|
7786
7786
|
const i = e.left + o > r, d = {
|
|
@@ -7797,7 +7797,7 @@ function ho(e, t, o) {
|
|
|
7797
7797
|
};
|
|
7798
7798
|
return n ? s.right = `${l.right - e.right + t.scrollLeft}px` : s.left = `${e.left - l.left + t.scrollLeft}px`, s;
|
|
7799
7799
|
}
|
|
7800
|
-
const
|
|
7800
|
+
const xs = /* @__PURE__ */ le({
|
|
7801
7801
|
name: "SortButton",
|
|
7802
7802
|
props: {
|
|
7803
7803
|
sortOrder: {
|
|
@@ -7810,11 +7810,11 @@ const ws = /* @__PURE__ */ le({
|
|
|
7810
7810
|
}
|
|
7811
7811
|
},
|
|
7812
7812
|
setup(e) {
|
|
7813
|
-
const t = ue(
|
|
7813
|
+
const t = ue(pe, {});
|
|
7814
7814
|
return () => {
|
|
7815
|
-
const o = t.presetConfig?.value ?? Kt.antdv, r = [
|
|
7815
|
+
const o = t.presetConfig?.value ?? Kt.antdv, r = [ut(o.sortAscIcon, {
|
|
7816
7816
|
class: [t.compatClass?.("column-sorter-up"), t.compatClass && e.sortOrder === "ascend" && "active", e.sortOrder === "ascend" ? t.vtgClass?.("text-[color:var(--color-primary)]") : t.vtgClass?.("text-[color:var(--color-sorter-icon)]")]
|
|
7817
|
-
}),
|
|
7817
|
+
}), ut(o.sortDescIcon, {
|
|
7818
7818
|
class: [t.subThemeSlots?.sortIconDown(), t.compatClass && e.sortOrder === "descend" && "active", t.vtgClass?.(e.sortOrder === "descend" ? "text-[color:var(--color-primary)]" : "text-[color:var(--color-sorter-icon)]")]
|
|
7819
7819
|
})];
|
|
7820
7820
|
return u("span", {
|
|
@@ -7825,7 +7825,7 @@ const ws = /* @__PURE__ */ le({
|
|
|
7825
7825
|
}, [r]) : r]);
|
|
7826
7826
|
};
|
|
7827
7827
|
}
|
|
7828
|
-
}),
|
|
7828
|
+
}), ws = /* @__PURE__ */ le({
|
|
7829
7829
|
name: "FilterIcon",
|
|
7830
7830
|
props: {
|
|
7831
7831
|
active: {
|
|
@@ -7837,7 +7837,7 @@ const ws = /* @__PURE__ */ le({
|
|
|
7837
7837
|
setup(e, {
|
|
7838
7838
|
emit: t
|
|
7839
7839
|
}) {
|
|
7840
|
-
const o = ue(
|
|
7840
|
+
const o = ue(pe, {});
|
|
7841
7841
|
function r(l) {
|
|
7842
7842
|
l.stopPropagation(), t("click", l);
|
|
7843
7843
|
}
|
|
@@ -7846,7 +7846,7 @@ const ws = /* @__PURE__ */ le({
|
|
|
7846
7846
|
onClick: r,
|
|
7847
7847
|
role: "button",
|
|
7848
7848
|
"aria-label": o.locale?.value.header.filterTriggerAriaLabel ?? "筛选"
|
|
7849
|
-
}, [
|
|
7849
|
+
}, [ut((o.presetConfig?.value ?? Kt.antdv).filterIcon)]);
|
|
7850
7850
|
}
|
|
7851
7851
|
});
|
|
7852
7852
|
function _t(e) {
|
|
@@ -7859,7 +7859,7 @@ function Jr(e, t) {
|
|
|
7859
7859
|
for (const o of e)
|
|
7860
7860
|
o.children?.length && (Jr(o.children, t), o.children.every((l) => t.has(l.value)) ? t.add(o.value) : t.delete(o.value));
|
|
7861
7861
|
}
|
|
7862
|
-
const
|
|
7862
|
+
const Ss = /* @__PURE__ */ le({
|
|
7863
7863
|
name: "FilterDropdown",
|
|
7864
7864
|
props: {
|
|
7865
7865
|
filters: {
|
|
@@ -7903,8 +7903,8 @@ const Cs = /* @__PURE__ */ le({
|
|
|
7903
7903
|
setup(e, {
|
|
7904
7904
|
emit: t
|
|
7905
7905
|
}) {
|
|
7906
|
-
const o = ue(
|
|
7907
|
-
|
|
7906
|
+
const o = ue(pe, {}), r = F([...e.selectedKeys]), l = F(null), n = F(""), s = F(/* @__PURE__ */ new Set());
|
|
7907
|
+
Xe(() => {
|
|
7908
7908
|
if (e.expandedKeys)
|
|
7909
7909
|
s.value = new Set(e.expandedKeys);
|
|
7910
7910
|
else {
|
|
@@ -8001,7 +8001,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8001
8001
|
function V(z) {
|
|
8002
8002
|
e.visible && (l.value?.contains(z.target) || t("close"));
|
|
8003
8003
|
}
|
|
8004
|
-
|
|
8004
|
+
Xe(() => {
|
|
8005
8005
|
rt(() => {
|
|
8006
8006
|
document.addEventListener("mousedown", $), window.addEventListener("scroll", V, !0);
|
|
8007
8007
|
});
|
|
@@ -8009,7 +8009,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8009
8009
|
document.removeEventListener("mousedown", $), window.removeEventListener("scroll", V, !0);
|
|
8010
8010
|
});
|
|
8011
8011
|
function P(z, x) {
|
|
8012
|
-
return e.multiple ? u(
|
|
8012
|
+
return e.multiple ? u(so, {
|
|
8013
8013
|
checked: z,
|
|
8014
8014
|
indeterminate: x
|
|
8015
8015
|
}, null) : I.value ? null : u(Ir, {
|
|
@@ -8032,18 +8032,18 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8032
8032
|
}, [u(Zr, null, null)]) : u("span", {
|
|
8033
8033
|
class: [o.subThemeSlots?.filterDropdownSwitcher(), o.subThemeSlots?.filterDropdownSwitcherNoop()],
|
|
8034
8034
|
"aria-hidden": "true"
|
|
8035
|
-
}, null), se = e.filterMode === "tree", ce = se ? o.subThemeSlots?.filterDropdownTreeItem() : o.subThemeSlots?.filterDropdownItem(),
|
|
8035
|
+
}, null), se = e.filterMode === "tree", ce = se ? o.subThemeSlots?.filterDropdownTreeItem() : o.subThemeSlots?.filterDropdownItem(), me = se ? o.subThemeSlots?.filterDropdownTreeContentWrapper() : o.subThemeSlots?.filterDropdownContentWrapper(), ye = se ? {
|
|
8036
8036
|
paddingLeft: `calc(var(--vtg-table-filter-tree-indent-size, 24px) * ${x})`
|
|
8037
8037
|
} : void 0;
|
|
8038
8038
|
return se ? u("li", {
|
|
8039
8039
|
key: String(z.value),
|
|
8040
8040
|
class: ce,
|
|
8041
|
-
style:
|
|
8041
|
+
style: ye,
|
|
8042
8042
|
onClick: () => k(z.value, z)
|
|
8043
8043
|
}, [u(U, null, null), u("span", {
|
|
8044
8044
|
class: o.vtgClass?.("mt-1 mr-2 shrink-0")
|
|
8045
8045
|
}, [P(R, G)]), u("div", {
|
|
8046
|
-
class: [
|
|
8046
|
+
class: [me, R ? o.subThemeSlots?.filterDropdownTreeItemSelected() : o.subThemeSlots?.filterDropdownItemHover()]
|
|
8047
8047
|
}, [u("span", {
|
|
8048
8048
|
class: [o.vtgClass?.("text-[color:var(--color-on-surface)]"), N && o.subThemeSlots?.filterDropdownTreeItemMatched()]
|
|
8049
8049
|
}, [z.text])])]) : u("li", {
|
|
@@ -8052,7 +8052,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8052
8052
|
"aria-checked": H ? R : void 0,
|
|
8053
8053
|
class: [ce, !e.multiple && I.value && o.vtgClass?.("gap-0")]
|
|
8054
8054
|
}, [u("div", {
|
|
8055
|
-
class: [
|
|
8055
|
+
class: [me, R ? !e.multiple && o.subThemeSlots?.filterDropdownItemSelectedSingle?.() || o.subThemeSlots?.filterDropdownItemSelected() : o.subThemeSlots?.filterDropdownItemHover()],
|
|
8056
8056
|
onClick: () => k(z.value, z)
|
|
8057
8057
|
}, [P(R, G), u("span", {
|
|
8058
8058
|
class: o.vtgClass?.("text-[color:var(--color-on-surface)]")
|
|
@@ -8079,7 +8079,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8079
8079
|
return () => {
|
|
8080
8080
|
const {
|
|
8081
8081
|
anchorRect: z
|
|
8082
|
-
} = e, x = 150, R = e.popupContainer, A = e.filterMode === "tree", _ = A ? o.subThemeSlots?.filterDropdownTreeList() : o.subThemeSlots?.filterDropdownList(), H = A ? o.subThemeSlots?.filterDropdownTreeContentWrapper() : o.subThemeSlots?.filterDropdownContentWrapper(), N =
|
|
8082
|
+
} = e, x = 150, R = e.popupContainer, A = e.filterMode === "tree", _ = A ? o.subThemeSlots?.filterDropdownTreeList() : o.subThemeSlots?.filterDropdownList(), H = A ? o.subThemeSlots?.filterDropdownTreeContentWrapper() : o.subThemeSlots?.filterDropdownContentWrapper(), N = mo(z, R, x);
|
|
8083
8083
|
return u($t, {
|
|
8084
8084
|
to: R
|
|
8085
8085
|
}, {
|
|
@@ -8097,7 +8097,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8097
8097
|
}, [u("span", {
|
|
8098
8098
|
class: o.subThemeSlots?.filterDropdownSearchIcon(),
|
|
8099
8099
|
"aria-hidden": "true"
|
|
8100
|
-
}, [u(
|
|
8100
|
+
}, [u(us, null, null)]), u($n, {
|
|
8101
8101
|
bare: !0,
|
|
8102
8102
|
value: n.value,
|
|
8103
8103
|
placeholder: w.value?.searchPlaceholder ?? "在筛选项中搜索",
|
|
@@ -8113,7 +8113,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8113
8113
|
onClick: ee
|
|
8114
8114
|
}, [u("span", {
|
|
8115
8115
|
class: o.vtgClass?.("mt-1 mr-2 shrink-0")
|
|
8116
|
-
}, [u(
|
|
8116
|
+
}, [u(so, {
|
|
8117
8117
|
checked: Z.value === "all",
|
|
8118
8118
|
indeterminate: Z.value === "partial"
|
|
8119
8119
|
}, null)]), u("div", {
|
|
@@ -8139,7 +8139,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8139
8139
|
}, [w.value?.emptyText ?? "Not Found"])])]
|
|
8140
8140
|
}), u("div", {
|
|
8141
8141
|
class: o.subThemeSlots?.filterDropdownActions()
|
|
8142
|
-
}, [u(
|
|
8142
|
+
}, [u(Oo, {
|
|
8143
8143
|
type: "link",
|
|
8144
8144
|
size: "sm",
|
|
8145
8145
|
class: o.subThemeSlots?.filterDropdownResetButton?.(),
|
|
@@ -8147,7 +8147,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8147
8147
|
onClick: C
|
|
8148
8148
|
}, {
|
|
8149
8149
|
default: () => [w.value?.resetText ?? "重置"]
|
|
8150
|
-
}), u(
|
|
8150
|
+
}), u(Oo, {
|
|
8151
8151
|
type: "primary",
|
|
8152
8152
|
size: "sm",
|
|
8153
8153
|
class: o.subThemeSlots?.filterDropdownConfirmButton?.(),
|
|
@@ -8179,14 +8179,14 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8179
8179
|
setup(e, {
|
|
8180
8180
|
emit: t
|
|
8181
8181
|
}) {
|
|
8182
|
-
return () => u(
|
|
8182
|
+
return () => u(so, {
|
|
8183
8183
|
checked: e.checked,
|
|
8184
8184
|
indeterminate: e.indeterminate,
|
|
8185
8185
|
disabled: e.disabled,
|
|
8186
8186
|
onChange: (o, r) => t("change", o, r)
|
|
8187
8187
|
}, null);
|
|
8188
8188
|
}
|
|
8189
|
-
}),
|
|
8189
|
+
}), Cs = /* @__PURE__ */ le({
|
|
8190
8190
|
name: "SelectionDropdown",
|
|
8191
8191
|
props: {
|
|
8192
8192
|
items: {
|
|
@@ -8210,11 +8210,11 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8210
8210
|
setup(e, {
|
|
8211
8211
|
emit: t
|
|
8212
8212
|
}) {
|
|
8213
|
-
const o = ue(
|
|
8213
|
+
const o = ue(pe, {}), r = F(null);
|
|
8214
8214
|
function l(s) {
|
|
8215
8215
|
e.visible && r.value && !r.value.contains(s.target) && t("close");
|
|
8216
8216
|
}
|
|
8217
|
-
|
|
8217
|
+
Xe(() => {
|
|
8218
8218
|
rt(() => {
|
|
8219
8219
|
document.addEventListener("mousedown", l);
|
|
8220
8220
|
});
|
|
@@ -8228,7 +8228,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8228
8228
|
return () => {
|
|
8229
8229
|
const {
|
|
8230
8230
|
anchorRect: s
|
|
8231
|
-
} = e, i = 120, d = e.popupContainer, a =
|
|
8231
|
+
} = e, i = 120, d = e.popupContainer, a = mo(s, d, i);
|
|
8232
8232
|
return u($t, {
|
|
8233
8233
|
to: d
|
|
8234
8234
|
}, {
|
|
@@ -8252,7 +8252,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8252
8252
|
});
|
|
8253
8253
|
};
|
|
8254
8254
|
}
|
|
8255
|
-
}),
|
|
8255
|
+
}), ks = /* @__PURE__ */ le({
|
|
8256
8256
|
name: "ResizeHandle",
|
|
8257
8257
|
props: {
|
|
8258
8258
|
column: {
|
|
@@ -8265,7 +8265,7 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8265
8265
|
}
|
|
8266
8266
|
},
|
|
8267
8267
|
setup(e) {
|
|
8268
|
-
const t = ue(
|
|
8268
|
+
const t = ue(pe, {});
|
|
8269
8269
|
function o(r) {
|
|
8270
8270
|
t.startResize?.(e.column, e.colIndex, r);
|
|
8271
8271
|
}
|
|
@@ -8278,14 +8278,14 @@ const Cs = /* @__PURE__ */ le({
|
|
|
8278
8278
|
}, null)]);
|
|
8279
8279
|
}
|
|
8280
8280
|
});
|
|
8281
|
-
function
|
|
8282
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
8281
|
+
function Ts(e) {
|
|
8282
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !St(e);
|
|
8283
8283
|
}
|
|
8284
|
-
function
|
|
8284
|
+
function Rs(e) {
|
|
8285
8285
|
if (e === "ascend") return "ascending";
|
|
8286
8286
|
if (e === "descend") return "descending";
|
|
8287
8287
|
}
|
|
8288
|
-
const
|
|
8288
|
+
const Is = /* @__PURE__ */ le({
|
|
8289
8289
|
name: "TableHeaderCell",
|
|
8290
8290
|
props: {
|
|
8291
8291
|
cell: {
|
|
@@ -8306,7 +8306,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8306
8306
|
}
|
|
8307
8307
|
},
|
|
8308
8308
|
setup(e) {
|
|
8309
|
-
const t = ue(
|
|
8309
|
+
const t = ue(pe, {}), o = g(() => e.cell.isLeaf ? e.cell.column : null), r = g(() => e.cell.leafIndex >= 0 ? String(e.cell.leafIndex) : void 0), l = g(() => e.cell.column.customHeaderCell?.(e.cell.column, e.index, o.value ?? void 0)), n = g(() => yt(l.value, "colSpan") ?? e.cell.colSpan), s = g(() => e.cell.rowSpan), i = g(() => {
|
|
8310
8310
|
const {
|
|
8311
8311
|
onClick: q,
|
|
8312
8312
|
...L
|
|
@@ -8366,18 +8366,18 @@ const Es = /* @__PURE__ */ le({
|
|
|
8366
8366
|
const ee = g(() => {
|
|
8367
8367
|
const q = e.cell.leafColumns;
|
|
8368
8368
|
if (!q.length) return null;
|
|
8369
|
-
const L = q[0], X = q[q.length - 1], te =
|
|
8369
|
+
const L = q[0], X = q[q.length - 1], te = ve(L) ?? e.cell.colStart, J = ve(X) ?? e.cell.colEnd, ie = t.fixedOffsets?.value?.get(te), be = t.fixedOffsets?.value?.get(J);
|
|
8370
8370
|
return q.every((ke) => ke.fixed === "left") && ie?.left !== void 0 ? {
|
|
8371
8371
|
left: ie.left,
|
|
8372
|
-
isLastLeft:
|
|
8373
|
-
} : q.every((ke) => ke.fixed === "right") &&
|
|
8374
|
-
right:
|
|
8372
|
+
isLastLeft: be?.isLastLeft
|
|
8373
|
+
} : q.every((ke) => ke.fixed === "right") && be?.right !== void 0 ? {
|
|
8374
|
+
right: be.right,
|
|
8375
8375
|
isFirstRight: ie?.isFirstRight
|
|
8376
8376
|
} : null;
|
|
8377
8377
|
}), {
|
|
8378
8378
|
fixedStyle: $,
|
|
8379
8379
|
fixedClass: V
|
|
8380
|
-
} =
|
|
8380
|
+
} = vo({
|
|
8381
8381
|
fixedInfo: () => ee.value
|
|
8382
8382
|
}), P = g(() => {
|
|
8383
8383
|
const q = t.themePreset?.value === "antdv", L = t.bordered?.value ?? !1;
|
|
@@ -8401,12 +8401,12 @@ const Es = /* @__PURE__ */ le({
|
|
|
8401
8401
|
}
|
|
8402
8402
|
return M.value;
|
|
8403
8403
|
}), R = g(() => {
|
|
8404
|
-
const q = e.cell.column.align ?
|
|
8404
|
+
const q = e.cell.column.align ? t.vtgClass?.(fo[e.cell.column.align]) ?? "" : "", L = a.value ? t.subThemeSlots?.thSortable() : "", X = d.value ? t.subThemeSlots?.thSorted() : "", te = o.value?.key === "__vtg_expand__";
|
|
8405
8405
|
return re(e.thClass, q, L, X, P.value, e.cell.column.className, te ? t.vtgClass?.("before:hidden") : "", l.value?.class, l.value?.className, V.value, Y.value, te ? t.compatClass?.("row-expand-icon-cell") : "");
|
|
8406
8406
|
}), A = g(() => {
|
|
8407
8407
|
const q = {};
|
|
8408
8408
|
if (o.value) {
|
|
8409
|
-
const J = t.columnWidths?.[String(
|
|
8409
|
+
const J = t.columnWidths?.[String(ve(o.value) ?? e.cell.colStart)] ?? o.value.width;
|
|
8410
8410
|
J && (q.width = typeof J == "number" ? `${J}px` : J);
|
|
8411
8411
|
}
|
|
8412
8412
|
const L = l.value?.style, X = $.value;
|
|
@@ -8436,25 +8436,25 @@ const Es = /* @__PURE__ */ le({
|
|
|
8436
8436
|
function ce() {
|
|
8437
8437
|
G && clearTimeout(G);
|
|
8438
8438
|
}
|
|
8439
|
-
function
|
|
8439
|
+
function me() {
|
|
8440
8440
|
G && clearTimeout(G), _.value = !1;
|
|
8441
8441
|
}
|
|
8442
|
-
const
|
|
8442
|
+
const ye = F(!1), de = F(!1), Ee = g(() => v.value && ye.value && !de.value);
|
|
8443
8443
|
function Se(q) {
|
|
8444
8444
|
const L = i.value.onMouseenter;
|
|
8445
|
-
typeof L == "function" && L(q), v.value && (
|
|
8445
|
+
typeof L == "function" && L(q), v.value && (ye.value = !0);
|
|
8446
8446
|
}
|
|
8447
|
-
function
|
|
8447
|
+
function Ue(q) {
|
|
8448
8448
|
const L = i.value.onMouseleave;
|
|
8449
|
-
typeof L == "function" && L(q), v.value && (
|
|
8449
|
+
typeof L == "function" && L(q), v.value && (ye.value = !1);
|
|
8450
8450
|
}
|
|
8451
|
-
function
|
|
8451
|
+
function Pe() {
|
|
8452
8452
|
de.value = !0;
|
|
8453
8453
|
}
|
|
8454
|
-
function
|
|
8454
|
+
function Ze() {
|
|
8455
8455
|
de.value = !1;
|
|
8456
8456
|
}
|
|
8457
|
-
function
|
|
8457
|
+
function Je(q) {
|
|
8458
8458
|
const L = l.value?.onClick;
|
|
8459
8459
|
typeof L == "function" && L(q), o.value && a.value && t.toggleSortOrder?.(o.value);
|
|
8460
8460
|
}
|
|
@@ -8463,79 +8463,79 @@ const Es = /* @__PURE__ */ le({
|
|
|
8463
8463
|
return null;
|
|
8464
8464
|
const q = n.value !== 1 ? n.value : void 0, L = s.value !== 1 ? s.value : void 0;
|
|
8465
8465
|
if (o.value?.key === "__vtg_selection__") {
|
|
8466
|
-
const ae = t.rowSelection?.(),
|
|
8467
|
-
let
|
|
8468
|
-
if (
|
|
8466
|
+
const ae = t.rowSelection?.(), Ke = ae?.type === "radio", mt = ae?.hideSelectAll === !0, at = ae?.selections !== void 0 && ae.selections !== !1, We = t.locale?.value, Le = ae?.columnTitle, qt = Le !== void 0, tt = re(e.thClass, t.vtgClass?.(qt ? "text-center before:hidden" : "text-center before:hidden leading-[0]"), o.value.className, l.value?.class, l.value?.className, V.value, t.compatClass?.("selection-column")), Tt = A.value;
|
|
8467
|
+
let ht = [];
|
|
8468
|
+
if (at && (ae?.selections === !0 ? ht = [{
|
|
8469
8469
|
key: "__vtg_select_all__",
|
|
8470
|
-
text:
|
|
8470
|
+
text: We?.selection?.selectAll ?? "全选当页",
|
|
8471
8471
|
onSelect: () => t.toggleAll?.(!0)
|
|
8472
8472
|
}, {
|
|
8473
8473
|
key: "__vtg_select_invert__",
|
|
8474
|
-
text:
|
|
8474
|
+
text: We?.selection?.selectInvert ?? "反选当页",
|
|
8475
8475
|
onSelect: () => t.invertSelection?.()
|
|
8476
8476
|
}, {
|
|
8477
8477
|
key: "__vtg_select_none__",
|
|
8478
|
-
text:
|
|
8478
|
+
text: We?.selection?.selectNone ?? "清空所有",
|
|
8479
8479
|
onSelect: () => t.clearSelection?.()
|
|
8480
|
-
}] : Array.isArray(ae?.selections) && (
|
|
8480
|
+
}] : Array.isArray(ae?.selections) && (ht = ae.selections.map((Ae) => Ae === qr ? {
|
|
8481
8481
|
key: "__vtg_select_all__",
|
|
8482
|
-
text:
|
|
8482
|
+
text: We?.selection?.selectAll ?? "全选当页",
|
|
8483
8483
|
onSelect: () => t.toggleAll?.(!0)
|
|
8484
|
-
} :
|
|
8484
|
+
} : Ae === Gr ? {
|
|
8485
8485
|
key: "__vtg_select_invert__",
|
|
8486
|
-
text:
|
|
8486
|
+
text: We?.selection?.selectInvert ?? "反选当页",
|
|
8487
8487
|
onSelect: () => t.invertSelection?.()
|
|
8488
|
-
} :
|
|
8488
|
+
} : Ae === Xr ? {
|
|
8489
8489
|
key: "__vtg_select_none__",
|
|
8490
|
-
text:
|
|
8490
|
+
text: We?.selection?.selectNone ?? "清空所有",
|
|
8491
8491
|
onSelect: () => t.clearSelection?.()
|
|
8492
|
-
} :
|
|
8492
|
+
} : Ae))), Ke)
|
|
8493
8493
|
return u("th", Ie(i.value, {
|
|
8494
|
-
class:
|
|
8495
|
-
style:
|
|
8494
|
+
class: tt,
|
|
8495
|
+
style: Tt,
|
|
8496
8496
|
colspan: q,
|
|
8497
8497
|
rowspan: L,
|
|
8498
8498
|
"data-vtg-leaf-col": r.value,
|
|
8499
|
-
onClick:
|
|
8500
|
-
}), [
|
|
8501
|
-
const
|
|
8499
|
+
onClick: Je
|
|
8500
|
+
}), [Le]);
|
|
8501
|
+
const Rt = t.allCheckedState?.() ?? "none", It = Le ? u("span", {
|
|
8502
8502
|
class: t.vtgClass?.("ml-2")
|
|
8503
|
-
}, [
|
|
8503
|
+
}, [Le]) : null;
|
|
8504
8504
|
return u("th", Ie(i.value, {
|
|
8505
|
-
class:
|
|
8506
|
-
style:
|
|
8505
|
+
class: tt,
|
|
8506
|
+
style: Tt,
|
|
8507
8507
|
colspan: q,
|
|
8508
8508
|
rowspan: L,
|
|
8509
8509
|
"data-vtg-leaf-col": r.value,
|
|
8510
|
-
onClick:
|
|
8511
|
-
}), [
|
|
8510
|
+
onClick: Je
|
|
8511
|
+
}), [mt ? Le : u("span", {
|
|
8512
8512
|
class: re(t.vtgClass?.("inline-flex items-center justify-center relative"), t.compatClass?.("selection"))
|
|
8513
8513
|
}, [u(Qr, {
|
|
8514
|
-
checked:
|
|
8515
|
-
indeterminate:
|
|
8516
|
-
onChange: (
|
|
8517
|
-
}, null),
|
|
8514
|
+
checked: Rt === "all",
|
|
8515
|
+
indeterminate: Rt === "partial",
|
|
8516
|
+
onChange: (Ae) => t.toggleAll?.(Ae)
|
|
8517
|
+
}, null), It, at && u("span", {
|
|
8518
8518
|
ref: H,
|
|
8519
8519
|
class: re(t.subThemeSlots?.selectionExtra(), t.vtgClass?.("absolute left-full top-1/2 -translate-y-1/2")),
|
|
8520
8520
|
onMouseenter: U,
|
|
8521
8521
|
onMouseleave: se,
|
|
8522
8522
|
role: "button",
|
|
8523
8523
|
"aria-label": "Selection options"
|
|
8524
|
-
}, [u(
|
|
8525
|
-
items:
|
|
8524
|
+
}, [u(gs, null, null)])]), !mt && at && u(Cs, {
|
|
8525
|
+
items: ht,
|
|
8526
8526
|
anchorRect: N(),
|
|
8527
|
-
popupContainer:
|
|
8527
|
+
popupContainer: eo(t, H.value),
|
|
8528
8528
|
visible: _.value,
|
|
8529
|
-
onClose:
|
|
8529
|
+
onClose: me,
|
|
8530
8530
|
onMouseenter: ce,
|
|
8531
8531
|
onMouseleave: se
|
|
8532
8532
|
}, null)]);
|
|
8533
8533
|
}
|
|
8534
|
-
const X = t.locale?.value, te = d.value === null ? X?.header.sortTriggerAsc ?? "点击升序" : d.value === "ascend" ? X?.header.sortTriggerDesc ?? "点击降序" : X?.header.cancelSort ?? "取消排序", J = o.value, ie = t.subThemeSlots?.sortAreaWrapper(),
|
|
8534
|
+
const X = t.locale?.value, te = d.value === null ? X?.header.sortTriggerAsc ?? "点击升序" : d.value === "ascend" ? X?.header.sortTriggerDesc ?? "点击降序" : X?.header.cancelSort ?? "取消排序", J = o.value, ie = t.subThemeSlots?.sortAreaWrapper(), be = t.subThemeSlots?.sortAreaTitle(), ke = u("span", {
|
|
8535
8535
|
class: ie
|
|
8536
8536
|
}, [u("span", {
|
|
8537
|
-
class: re(
|
|
8538
|
-
}, [x.value]), a.value && u(
|
|
8537
|
+
class: re(be, z.value && t.vtgClass?.("block min-w-0 overflow-hidden text-ellipsis whitespace-nowrap"))
|
|
8538
|
+
}, [x.value]), a.value && u(xs, {
|
|
8539
8539
|
sortOrder: d.value
|
|
8540
8540
|
}, null)]), ze = t.subThemeSlots?.sortAreaOuter(), Ce = v.value ? u("span", {
|
|
8541
8541
|
class: ze
|
|
@@ -8544,15 +8544,15 @@ const Es = /* @__PURE__ */ le({
|
|
|
8544
8544
|
title: te,
|
|
8545
8545
|
placement: "top",
|
|
8546
8546
|
open: Ee.value
|
|
8547
|
-
},
|
|
8547
|
+
}, Ts(ke) ? ke : {
|
|
8548
8548
|
default: () => [ke]
|
|
8549
8549
|
})]) : u("span", {
|
|
8550
8550
|
class: ze
|
|
8551
|
-
}, [ke]),
|
|
8551
|
+
}, [ke]), Ve = J && (J.filterIcon ? u("span", {
|
|
8552
8552
|
class: re(t.subThemeSlots?.filterIconWrapper(), t.subThemeSlots?.filterIcon(), c.value && t.compatClass && "active"),
|
|
8553
8553
|
ref: I,
|
|
8554
|
-
onMouseenter:
|
|
8555
|
-
onMouseleave:
|
|
8554
|
+
onMouseenter: Pe,
|
|
8555
|
+
onMouseleave: Ze,
|
|
8556
8556
|
onMousedown: (ae) => ae.stopPropagation(),
|
|
8557
8557
|
onClick: (ae) => {
|
|
8558
8558
|
ae.stopPropagation(), O();
|
|
@@ -8564,8 +8564,8 @@ const Es = /* @__PURE__ */ le({
|
|
|
8564
8564
|
})]) : t.customFilterIcon ? u("span", {
|
|
8565
8565
|
class: re(t.subThemeSlots?.filterIconWrapper(), t.subThemeSlots?.filterIcon(), c.value && t.compatClass && "active"),
|
|
8566
8566
|
ref: I,
|
|
8567
|
-
onMouseenter:
|
|
8568
|
-
onMouseleave:
|
|
8567
|
+
onMouseenter: Pe,
|
|
8568
|
+
onMouseleave: Ze,
|
|
8569
8569
|
onMousedown: (ae) => ae.stopPropagation(),
|
|
8570
8570
|
onClick: (ae) => {
|
|
8571
8571
|
ae.stopPropagation(), O();
|
|
@@ -8578,10 +8578,10 @@ const Es = /* @__PURE__ */ le({
|
|
|
8578
8578
|
})]) : u("span", {
|
|
8579
8579
|
ref: I,
|
|
8580
8580
|
class: [t.subThemeSlots?.filterIconWrapper(), c.value && t.compatClass && "active"],
|
|
8581
|
-
onMouseenter:
|
|
8582
|
-
onMouseleave:
|
|
8581
|
+
onMouseenter: Pe,
|
|
8582
|
+
onMouseleave: Ze,
|
|
8583
8583
|
onMousedown: (ae) => ae.stopPropagation()
|
|
8584
|
-
}, [u(
|
|
8584
|
+
}, [u(ws, {
|
|
8585
8585
|
active: c.value,
|
|
8586
8586
|
onClick: () => O()
|
|
8587
8587
|
}, null)])), Me = J && {
|
|
@@ -8599,26 +8599,26 @@ const Es = /* @__PURE__ */ le({
|
|
|
8599
8599
|
filters: J.filters ?? [],
|
|
8600
8600
|
visible: b.value,
|
|
8601
8601
|
close: () => S(!1)
|
|
8602
|
-
},
|
|
8603
|
-
const ae = typeof J.filterDropdown == "function" ? J.filterDropdown(Me) : J.filterDropdown ?? (
|
|
8602
|
+
}, Qe = J?.customFilterDropdown ? t.customFilterDropdown : void 0, et = J && Me && (() => {
|
|
8603
|
+
const ae = typeof J.filterDropdown == "function" ? J.filterDropdown(Me) : J.filterDropdown ?? (Qe ? Qe(Me) : null);
|
|
8604
8604
|
if (ae) {
|
|
8605
|
-
const
|
|
8605
|
+
const Ke = eo(t, I.value);
|
|
8606
8606
|
return u($t, {
|
|
8607
|
-
to:
|
|
8607
|
+
to: Ke
|
|
8608
8608
|
}, {
|
|
8609
8609
|
default: () => [b.value && u("div", {
|
|
8610
8610
|
ref: w,
|
|
8611
8611
|
class: t.subThemeSlots?.filterDropdown(),
|
|
8612
|
-
style:
|
|
8612
|
+
style: mo(k(), Ke, 150)
|
|
8613
8613
|
}, [ae])]
|
|
8614
8614
|
});
|
|
8615
8615
|
}
|
|
8616
|
-
return u(
|
|
8616
|
+
return u(Ss, {
|
|
8617
8617
|
filters: J.filters ?? [],
|
|
8618
8618
|
selectedKeys: p.value,
|
|
8619
8619
|
multiple: J.filterMultiple !== !1,
|
|
8620
8620
|
anchorRect: k(),
|
|
8621
|
-
popupContainer:
|
|
8621
|
+
popupContainer: eo(t, I.value),
|
|
8622
8622
|
filterSearch: J.filterSearch ?? !1,
|
|
8623
8623
|
filterMode: J.filterMode ?? "menu",
|
|
8624
8624
|
expandedKeys: C.value,
|
|
@@ -8626,8 +8626,8 @@ const Es = /* @__PURE__ */ le({
|
|
|
8626
8626
|
onConfirm: D,
|
|
8627
8627
|
onReset: j,
|
|
8628
8628
|
onClose: Z,
|
|
8629
|
-
"onUpdate:expandedKeys": (
|
|
8630
|
-
C.value =
|
|
8629
|
+
"onUpdate:expandedKeys": (Ke) => {
|
|
8630
|
+
C.value = Ke;
|
|
8631
8631
|
}
|
|
8632
8632
|
}, null);
|
|
8633
8633
|
})();
|
|
@@ -8637,19 +8637,19 @@ const Es = /* @__PURE__ */ le({
|
|
|
8637
8637
|
colspan: q,
|
|
8638
8638
|
rowspan: L,
|
|
8639
8639
|
"data-vtg-leaf-col": r.value,
|
|
8640
|
-
onClick:
|
|
8640
|
+
onClick: Je,
|
|
8641
8641
|
onMouseenter: Se,
|
|
8642
|
-
onMouseleave:
|
|
8643
|
-
"aria-sort": o.value ?
|
|
8642
|
+
onMouseleave: Ue,
|
|
8643
|
+
"aria-sort": o.value ? Rs(d.value) : void 0
|
|
8644
8644
|
}), [u("span", {
|
|
8645
8645
|
class: re(t.vtgClass?.("flex items-center"), e.headerCellInnerClass, m.value && t.compatClass?.("filter-column"))
|
|
8646
|
-
}, [Ce, m.value &&
|
|
8646
|
+
}, [Ce, m.value && Ve]), m.value && et, o.value?.resizable && u(ks, {
|
|
8647
8647
|
column: o.value,
|
|
8648
8648
|
colIndex: e.cell.colStart
|
|
8649
8649
|
}, null)]);
|
|
8650
8650
|
};
|
|
8651
8651
|
}
|
|
8652
|
-
}),
|
|
8652
|
+
}), Qo = /* @__PURE__ */ le({
|
|
8653
8653
|
name: "TableHeader",
|
|
8654
8654
|
props: {
|
|
8655
8655
|
rows: {
|
|
@@ -8674,7 +8674,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8674
8674
|
}
|
|
8675
8675
|
},
|
|
8676
8676
|
setup(e) {
|
|
8677
|
-
const t = ue(
|
|
8677
|
+
const t = ue(pe, {});
|
|
8678
8678
|
return () => u("thead", {
|
|
8679
8679
|
class: e.theadClass
|
|
8680
8680
|
}, [e.rows.map((o, r) => {
|
|
@@ -8684,7 +8684,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8684
8684
|
}, n, {
|
|
8685
8685
|
class: [e.rowClass, n?.class, n?.className],
|
|
8686
8686
|
style: n?.style
|
|
8687
|
-
}), [o.map((s, i) => u(
|
|
8687
|
+
}), [o.map((s, i) => u(Is, {
|
|
8688
8688
|
key: `${String(s.column.key ?? s.column.title ?? i)}-${r}-${i}`,
|
|
8689
8689
|
cell: s,
|
|
8690
8690
|
index: i,
|
|
@@ -8722,7 +8722,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8722
8722
|
onClick: r
|
|
8723
8723
|
}), [t.default?.()]);
|
|
8724
8724
|
}
|
|
8725
|
-
}),
|
|
8725
|
+
}), Es = /* @__PURE__ */ le({
|
|
8726
8726
|
name: "SelectionRadio",
|
|
8727
8727
|
props: {
|
|
8728
8728
|
checked: {
|
|
@@ -8744,7 +8744,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8744
8744
|
onChange: (o, r) => t("change", r)
|
|
8745
8745
|
}, null);
|
|
8746
8746
|
}
|
|
8747
|
-
}),
|
|
8747
|
+
}), to = /* @__PURE__ */ le({
|
|
8748
8748
|
name: "ExpandIcon",
|
|
8749
8749
|
props: {
|
|
8750
8750
|
expanded: {
|
|
@@ -8766,7 +8766,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8766
8766
|
setup(e, {
|
|
8767
8767
|
emit: t
|
|
8768
8768
|
}) {
|
|
8769
|
-
const o = ue(
|
|
8769
|
+
const o = ue(pe, {});
|
|
8770
8770
|
function r(l) {
|
|
8771
8771
|
l.stopPropagation(), t("click", l);
|
|
8772
8772
|
}
|
|
@@ -8840,7 +8840,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8840
8840
|
}
|
|
8841
8841
|
},
|
|
8842
8842
|
setup(e) {
|
|
8843
|
-
const t = ue(
|
|
8843
|
+
const t = ue(pe, {}), o = F(null), r = F(!1), l = g(() => e.resolvedCell ?? $r({
|
|
8844
8844
|
text: Nt(e.record, e.column.dataIndex),
|
|
8845
8845
|
record: e.record,
|
|
8846
8846
|
rowIndex: e.rowIndex,
|
|
@@ -8849,18 +8849,18 @@ const Es = /* @__PURE__ */ le({
|
|
|
8849
8849
|
transformCellText: t.transformCellText
|
|
8850
8850
|
})), n = g(() => {
|
|
8851
8851
|
if (!e.column.fixed) return null;
|
|
8852
|
-
const C =
|
|
8852
|
+
const C = ve(e.column) ?? e.colIndex;
|
|
8853
8853
|
return t.fixedOffsets?.value?.get(C) ?? null;
|
|
8854
8854
|
}), {
|
|
8855
8855
|
fixedStyle: s,
|
|
8856
8856
|
fixedClass: i
|
|
8857
|
-
} =
|
|
8857
|
+
} = vo({
|
|
8858
8858
|
fixedInfo: () => n.value
|
|
8859
8859
|
}), d = g(() => Vt(e.column).enabled ? t.compatClass?.("cell-ellipsis") ?? "" : ""), a = g(() => t.getSelectionState?.(e.record, e.rowIndex) ?? {
|
|
8860
8860
|
checked: !1,
|
|
8861
8861
|
indeterminate: !1,
|
|
8862
8862
|
disabled: !1
|
|
8863
|
-
}), v = g(() => a.value.checked), m = g(() =>
|
|
8863
|
+
}), v = g(() => a.value.checked), m = g(() => Za(e.rowIndex, l.value.rowSpan ?? 1, t.hoverRange?.value ?? null)), p = g(() => m.value && t.hoverable?.value ? t.compatClass?.("cell-row-hover") ?? "" : "");
|
|
8864
8864
|
function c() {
|
|
8865
8865
|
if (!t.hoverable?.value) return;
|
|
8866
8866
|
const C = Math.max(1, l.value.rowSpan ?? 1);
|
|
@@ -8883,7 +8883,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8883
8883
|
...At(l.value.renderCellProps),
|
|
8884
8884
|
...At(l.value.customCellProps)
|
|
8885
8885
|
})), I = g(() => {
|
|
8886
|
-
const C = e.column.align ?
|
|
8886
|
+
const C = e.column.align ? t.vtgClass?.(fo[e.column.align]) ?? "" : "", D = t.subThemeSlots, j = m.value && t.hoverable?.value, Z = t.isColumnSorted?.(e.column) && D ? D.tdSorted() : "", ee = v.value && D ? re(D.tdSelected(), j ? D.tdRowSelectedHover() : "") : "", $ = j && D && !v.value ? D.tdRowHover() : "";
|
|
8887
8887
|
return re(
|
|
8888
8888
|
e.tdClass,
|
|
8889
8889
|
C,
|
|
@@ -8901,7 +8901,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8901
8901
|
d.value
|
|
8902
8902
|
);
|
|
8903
8903
|
}), w = g(() => {
|
|
8904
|
-
const C = {}, D = t.columnWidths?.[String(
|
|
8904
|
+
const C = {}, D = t.columnWidths?.[String(ve(e.column) ?? e.colIndex)], j = e.widthOverride ?? D ?? e.column.width;
|
|
8905
8905
|
return j && (C.width = typeof j == "number" ? `${j}px` : j), {
|
|
8906
8906
|
...C,
|
|
8907
8907
|
...s.value ?? {},
|
|
@@ -8931,7 +8931,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8931
8931
|
return null;
|
|
8932
8932
|
const C = l.value.colSpan !== 1 ? l.value.colSpan : void 0, D = l.value.rowSpan !== 1 ? l.value.rowSpan : void 0;
|
|
8933
8933
|
if (e.column.key === "__vtg_selection__") {
|
|
8934
|
-
const M = t.rowSelection?.(), x = M?.type === "radio" ? u(
|
|
8934
|
+
const M = t.rowSelection?.(), x = M?.type === "radio" ? u(Es, {
|
|
8935
8935
|
checked: a.value.checked,
|
|
8936
8936
|
disabled: a.value.disabled,
|
|
8937
8937
|
onChange: (G) => t.toggleRow?.(e.record, e.rowIndex, G)
|
|
@@ -8979,7 +8979,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
8979
8979
|
rowspan: D,
|
|
8980
8980
|
onMouseenter: c,
|
|
8981
8981
|
onMouseleave: h
|
|
8982
|
-
}, [u(
|
|
8982
|
+
}, [u(to, {
|
|
8983
8983
|
expanded: x,
|
|
8984
8984
|
expandable: R,
|
|
8985
8985
|
variant: "row",
|
|
@@ -8994,12 +8994,12 @@ const Es = /* @__PURE__ */ le({
|
|
|
8994
8994
|
display: "inline-block",
|
|
8995
8995
|
width: `${j.level * (t.treeIndentSize?.value ?? 15)}px`
|
|
8996
8996
|
}
|
|
8997
|
-
}, null) : null, $ = Z && j.hasChildren ? u(
|
|
8997
|
+
}, null) : null, $ = Z && j.hasChildren ? u(to, {
|
|
8998
8998
|
expanded: j.expanded,
|
|
8999
8999
|
expandable: !0,
|
|
9000
9000
|
variant: "tree",
|
|
9001
9001
|
onClick: () => t.toggleTreeExpand?.(e.record, e.rowIndex)
|
|
9002
|
-
}, null) : Z ? u(
|
|
9002
|
+
}, null) : Z ? u(to, {
|
|
9003
9003
|
expanded: !1,
|
|
9004
9004
|
expandable: !1,
|
|
9005
9005
|
variant: "tree"
|
|
@@ -9045,7 +9045,7 @@ const Es = /* @__PURE__ */ le({
|
|
|
9045
9045
|
}
|
|
9046
9046
|
},
|
|
9047
9047
|
setup(e) {
|
|
9048
|
-
const t = ue(
|
|
9048
|
+
const t = ue(pe, {});
|
|
9049
9049
|
return () => {
|
|
9050
9050
|
const o = t.subThemeSlots, r = t.presetConfig?.value;
|
|
9051
9051
|
return u("tr", {
|
|
@@ -9057,16 +9057,16 @@ const Es = /* @__PURE__ */ le({
|
|
|
9057
9057
|
class: o?.emptyWrapper()
|
|
9058
9058
|
}, [r?.emptyIcon && u("div", {
|
|
9059
9059
|
class: o?.emptyIcon()
|
|
9060
|
-
}, [
|
|
9060
|
+
}, [ut(nr(r.emptyIcon))]), u("p", {
|
|
9061
9061
|
class: o?.emptyText()
|
|
9062
9062
|
}, [t.locale?.value.empty.text ?? "暂无数据"])])])]);
|
|
9063
9063
|
};
|
|
9064
9064
|
}
|
|
9065
9065
|
});
|
|
9066
|
-
function
|
|
9066
|
+
function er(e) {
|
|
9067
9067
|
return Number.isFinite(e) ? e <= 0 ? 0 : Math.floor(e) : 1;
|
|
9068
9068
|
}
|
|
9069
|
-
const
|
|
9069
|
+
const tr = /* @__PURE__ */ le({
|
|
9070
9070
|
name: "TableBody",
|
|
9071
9071
|
props: {
|
|
9072
9072
|
dataSource: {
|
|
@@ -9103,7 +9103,7 @@ const or = /* @__PURE__ */ le({
|
|
|
9103
9103
|
}
|
|
9104
9104
|
},
|
|
9105
9105
|
setup(e) {
|
|
9106
|
-
const t = ue(
|
|
9106
|
+
const t = ue(pe, {});
|
|
9107
9107
|
function o(l, n) {
|
|
9108
9108
|
return typeof e.rowKey == "function" ? e.rowKey(l) : typeof e.rowKey == "string" && e.rowKey in l ? l[e.rowKey] : n;
|
|
9109
9109
|
}
|
|
@@ -9121,7 +9121,7 @@ const or = /* @__PURE__ */ le({
|
|
|
9121
9121
|
column: d,
|
|
9122
9122
|
bodyCell: t.bodyCell,
|
|
9123
9123
|
transformCellText: t.transformCellText
|
|
9124
|
-
}), p =
|
|
9124
|
+
}), p = er(m.colSpan), c = er(m.rowSpan);
|
|
9125
9125
|
if (p === 0 || c === 0) return;
|
|
9126
9126
|
const h = Math.min(e.dataSource.length, s + c), f = Math.min(e.columns.length, a + p);
|
|
9127
9127
|
for (let b = s; b < h; b += 1)
|
|
@@ -9176,7 +9176,7 @@ const or = /* @__PURE__ */ le({
|
|
|
9176
9176
|
tdClass: e.tdClass
|
|
9177
9177
|
}, null)]);
|
|
9178
9178
|
}
|
|
9179
|
-
}),
|
|
9179
|
+
}), xt = /* @__PURE__ */ le({
|
|
9180
9180
|
name: "ColGroup",
|
|
9181
9181
|
props: {
|
|
9182
9182
|
columns: {
|
|
@@ -9185,9 +9185,9 @@ const or = /* @__PURE__ */ le({
|
|
|
9185
9185
|
}
|
|
9186
9186
|
},
|
|
9187
9187
|
setup(e) {
|
|
9188
|
-
const t = ue(
|
|
9188
|
+
const t = ue(pe, {});
|
|
9189
9189
|
return () => u("colgroup", null, [e.columns.map((o, r) => {
|
|
9190
|
-
const n = t.columnWidths?.[String(
|
|
9190
|
+
const n = t.columnWidths?.[String(ve(o) ?? r)] ?? o.width, s = n ? {
|
|
9191
9191
|
width: typeof n == "number" ? `${n}px` : n,
|
|
9192
9192
|
minWidth: typeof n == "number" ? `${n}px` : n
|
|
9193
9193
|
} : void 0, i = t.compatClass ? o.key === "__vtg_selection__" ? t.compatClass("selection-col") : o.key === "__vtg_expand__" ? t.compatClass("expand-icon-col") : "" : "";
|
|
@@ -9199,10 +9199,10 @@ const or = /* @__PURE__ */ le({
|
|
|
9199
9199
|
})]);
|
|
9200
9200
|
}
|
|
9201
9201
|
});
|
|
9202
|
-
function
|
|
9203
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
9202
|
+
function Ds(e) {
|
|
9203
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !St(e);
|
|
9204
9204
|
}
|
|
9205
|
-
const
|
|
9205
|
+
const zs = /* @__PURE__ */ le({
|
|
9206
9206
|
name: "VirtualTableBody",
|
|
9207
9207
|
props: {
|
|
9208
9208
|
dataSource: {
|
|
@@ -9282,7 +9282,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9282
9282
|
}
|
|
9283
9283
|
},
|
|
9284
9284
|
setup(e) {
|
|
9285
|
-
const t = ue(
|
|
9285
|
+
const t = ue(pe, {}), o = F(), r = F(0), l = F(0);
|
|
9286
9286
|
function n(y) {
|
|
9287
9287
|
r.value = y.x, e.onVirtualScroll?.({
|
|
9288
9288
|
...y,
|
|
@@ -9315,7 +9315,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9315
9315
|
end: h,
|
|
9316
9316
|
leftSpacer: f,
|
|
9317
9317
|
rightSpacer: b
|
|
9318
|
-
} =
|
|
9318
|
+
} = ns({
|
|
9319
9319
|
widths: () => m.value,
|
|
9320
9320
|
leftFixedCount: () => v.value.leftFixedCount,
|
|
9321
9321
|
rightFixedStart: () => v.value.rightFixedStart,
|
|
@@ -9370,7 +9370,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9370
9370
|
}), () => e.dataSource.length === 0 ? u("table", {
|
|
9371
9371
|
class: e.tableClass,
|
|
9372
9372
|
style: e.tableStyle
|
|
9373
|
-
}, [u(
|
|
9373
|
+
}, [u(xt, {
|
|
9374
9374
|
columns: e.columns
|
|
9375
9375
|
}, null), u("tbody", {
|
|
9376
9376
|
class: e.tbodyClass
|
|
@@ -9378,7 +9378,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9378
9378
|
colSpan: e.columns.length || 1,
|
|
9379
9379
|
emptyClass: e.emptyClass,
|
|
9380
9380
|
tdClass: e.tdClass
|
|
9381
|
-
}, null)])]) : u(
|
|
9381
|
+
}, null)])]) : u(ma, {
|
|
9382
9382
|
ref: o,
|
|
9383
9383
|
data: e.dataSource,
|
|
9384
9384
|
height: e.height,
|
|
@@ -9414,7 +9414,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9414
9414
|
rowClass: re(e.rowClass, V, Nr(t, y, C, M)) ?? "",
|
|
9415
9415
|
rowProps: P,
|
|
9416
9416
|
onClick: x
|
|
9417
|
-
},
|
|
9417
|
+
}, Ds(T = R.map((_, H) => {
|
|
9418
9418
|
if (_.spacer !== void 0)
|
|
9419
9419
|
return u("td", {
|
|
9420
9420
|
key: `__vtg_spacer_${H}`,
|
|
@@ -9449,7 +9449,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9449
9449
|
}
|
|
9450
9450
|
});
|
|
9451
9451
|
}
|
|
9452
|
-
}),
|
|
9452
|
+
}), or = /* @__PURE__ */ le({
|
|
9453
9453
|
name: "TableLoading",
|
|
9454
9454
|
props: {
|
|
9455
9455
|
loadingClass: {
|
|
@@ -9470,7 +9470,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9470
9470
|
setup(e, {
|
|
9471
9471
|
slots: t
|
|
9472
9472
|
}) {
|
|
9473
|
-
const o = ue(
|
|
9473
|
+
const o = ue(pe, {});
|
|
9474
9474
|
return () => {
|
|
9475
9475
|
const r = o.subThemeSlots, l = o.presetConfig?.value, n = t.default?.();
|
|
9476
9476
|
if (n)
|
|
@@ -9481,7 +9481,7 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9481
9481
|
class: r?.loadingSpinner()
|
|
9482
9482
|
}, [e.indicator]) : l?.loadingIcon ? u("div", {
|
|
9483
9483
|
class: r?.loadingSpinner()
|
|
9484
|
-
}, [
|
|
9484
|
+
}, [ut(nr(l.loadingIcon))]) : null;
|
|
9485
9485
|
return u("div", {
|
|
9486
9486
|
class: e.loadingClass
|
|
9487
9487
|
}, [s, e.tip && u("div", {
|
|
@@ -9490,15 +9490,15 @@ const Ms = /* @__PURE__ */ le({
|
|
|
9490
9490
|
};
|
|
9491
9491
|
}
|
|
9492
9492
|
});
|
|
9493
|
-
function
|
|
9494
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
9493
|
+
function rr(e) {
|
|
9494
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !St(e);
|
|
9495
9495
|
}
|
|
9496
|
-
const
|
|
9497
|
-
function
|
|
9496
|
+
const Ms = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
|
|
9497
|
+
function lr() {
|
|
9498
9498
|
if (typeof window > "u")
|
|
9499
9499
|
return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
|
|
9500
9500
|
const e = window.innerWidth, t = /* @__PURE__ */ new Set();
|
|
9501
|
-
return
|
|
9501
|
+
return Ms.forEach(([o, r]) => {
|
|
9502
9502
|
if (o === "xs") {
|
|
9503
9503
|
e < 576 && t.add("xs");
|
|
9504
9504
|
return;
|
|
@@ -9527,7 +9527,7 @@ function rl(e, t) {
|
|
|
9527
9527
|
}), o;
|
|
9528
9528
|
}, []);
|
|
9529
9529
|
}
|
|
9530
|
-
const
|
|
9530
|
+
const As = /* @__PURE__ */ le({
|
|
9531
9531
|
name: "VTable",
|
|
9532
9532
|
props: {
|
|
9533
9533
|
dataSource: {
|
|
@@ -9719,18 +9719,18 @@ const _s = /* @__PURE__ */ le({
|
|
|
9719
9719
|
emit: o
|
|
9720
9720
|
}) {
|
|
9721
9721
|
const r = ue(lt, null), l = g(() => r?.themePreset ?? "antdv"), n = g(() => r?.cssMode ?? "prebuilt"), s = g(() => r?.classPrefix ?? "vtg"), i = g(() => {
|
|
9722
|
-
const B = r?.theme ?? {}, Q = l.value;
|
|
9722
|
+
const B = r?.theme ?? {}, Q = l.value, fe = (ge) => Tr(ge, n.value, s.value);
|
|
9723
9723
|
return {
|
|
9724
9724
|
...B,
|
|
9725
|
-
button:
|
|
9726
|
-
checkbox:
|
|
9727
|
-
input:
|
|
9728
|
-
radio:
|
|
9729
|
-
scrollbar:
|
|
9730
|
-
tooltip:
|
|
9725
|
+
button: qe(fe(Ta(Q)), B.button),
|
|
9726
|
+
checkbox: qe(fe(Ra(Q)), B.checkbox),
|
|
9727
|
+
input: qe(fe(Ea(Q)), B.input),
|
|
9728
|
+
radio: qe(fe(Ia(Q)), B.radio),
|
|
9729
|
+
scrollbar: qe(fe(za(Q)), B.scrollbar),
|
|
9730
|
+
tooltip: qe(fe(Da(Q)), B.tooltip)
|
|
9731
9731
|
};
|
|
9732
9732
|
});
|
|
9733
|
-
|
|
9733
|
+
oo(lt, {
|
|
9734
9734
|
get themePreset() {
|
|
9735
9735
|
return l.value;
|
|
9736
9736
|
},
|
|
@@ -9753,35 +9753,35 @@ const _s = /* @__PURE__ */ le({
|
|
|
9753
9753
|
return r?.localeOverrides ?? {};
|
|
9754
9754
|
}
|
|
9755
9755
|
});
|
|
9756
|
-
const d = g(() =>
|
|
9756
|
+
const d = g(() => ka(l.value) ?? Dr), {
|
|
9757
9757
|
slots: a
|
|
9758
9758
|
} = nt("table", d, e, {
|
|
9759
|
-
compatClasses:
|
|
9759
|
+
compatClasses: _a
|
|
9760
9760
|
}), m = r?.compatClass === !0 ? (B) => `ant-table-${B}` : void 0, p = g(() => e.locale ?? r?.locale ?? "zh-CN"), c = g(() => ({
|
|
9761
9761
|
...r?.locales ?? {},
|
|
9762
9762
|
...e.locales ?? {}
|
|
9763
9763
|
})), h = g(() => {
|
|
9764
|
-
const B =
|
|
9765
|
-
return
|
|
9766
|
-
}), f = F(
|
|
9764
|
+
const B = Ma(l.value), Q = Aa(l.value, p.value), fe = c.value[p.value]?.table, ge = dt(dt(B, Q), fe);
|
|
9765
|
+
return dt(ge, dt(r?.localeOverrides?.table ?? {}, e.localeOverrides));
|
|
9766
|
+
}), f = F(lr());
|
|
9767
9767
|
function b() {
|
|
9768
|
-
f.value =
|
|
9768
|
+
f.value = lr();
|
|
9769
9769
|
}
|
|
9770
|
-
|
|
9770
|
+
Xe(() => {
|
|
9771
9771
|
b(), window.addEventListener("resize", b);
|
|
9772
9772
|
}), De(() => {
|
|
9773
9773
|
window.removeEventListener("resize", b);
|
|
9774
9774
|
});
|
|
9775
9775
|
const S = g(() => rl(e.columns, f.value)), I = g(() => e.sticky === !0 ? {} : typeof e.sticky == "object" ? e.sticky : void 0), {
|
|
9776
9776
|
leafColumns: w
|
|
9777
|
-
} =
|
|
9777
|
+
} = Xo(() => S.value), {
|
|
9778
9778
|
getSortOrder: O,
|
|
9779
9779
|
toggleSortOrder: E,
|
|
9780
9780
|
sortData: y,
|
|
9781
9781
|
sorterState: k,
|
|
9782
9782
|
sorterResult: T,
|
|
9783
9783
|
sortColumns: C
|
|
9784
|
-
} =
|
|
9784
|
+
} = Ha({
|
|
9785
9785
|
columns: () => w.value,
|
|
9786
9786
|
tableSortDirections: () => e.sortDirections,
|
|
9787
9787
|
onSorterChange(B) {
|
|
@@ -9797,7 +9797,7 @@ const _s = /* @__PURE__ */ le({
|
|
|
9797
9797
|
resetFilter: Z,
|
|
9798
9798
|
getAllFilters: ee,
|
|
9799
9799
|
filterData: $
|
|
9800
|
-
} =
|
|
9800
|
+
} = Na({
|
|
9801
9801
|
columns: () => w.value,
|
|
9802
9802
|
onFilterChange(B) {
|
|
9803
9803
|
const Q = V();
|
|
@@ -9822,7 +9822,7 @@ const _s = /* @__PURE__ */ le({
|
|
|
9822
9822
|
toggleTreeExpand: R,
|
|
9823
9823
|
isTreeExpanded: A,
|
|
9824
9824
|
indentSize: _
|
|
9825
|
-
} =
|
|
9825
|
+
} = is({
|
|
9826
9826
|
data: () => P.value,
|
|
9827
9827
|
childrenColumnName: () => e.childrenColumnName,
|
|
9828
9828
|
indentSize: () => e.indentSize,
|
|
@@ -9836,17 +9836,17 @@ const _s = /* @__PURE__ */ le({
|
|
|
9836
9836
|
hoverRange: H,
|
|
9837
9837
|
setHoverRange: N,
|
|
9838
9838
|
clearHoverRange: G
|
|
9839
|
-
} =
|
|
9839
|
+
} = Ua(100), U = g(() => x.value ? M.value.map((B) => B.record) : P.value), {
|
|
9840
9840
|
isSelected: se,
|
|
9841
9841
|
isDisabled: ce,
|
|
9842
|
-
getSelectionState:
|
|
9843
|
-
toggleRow:
|
|
9842
|
+
getSelectionState: me,
|
|
9843
|
+
toggleRow: ye,
|
|
9844
9844
|
toggleAll: de,
|
|
9845
9845
|
allCheckedState: Ee,
|
|
9846
9846
|
invertSelection: Se,
|
|
9847
|
-
clearSelection:
|
|
9848
|
-
getChangeableRowKeys:
|
|
9849
|
-
} =
|
|
9847
|
+
clearSelection: Ue,
|
|
9848
|
+
getChangeableRowKeys: Pe
|
|
9849
|
+
} = Wa({
|
|
9850
9850
|
rowSelection: () => e.rowSelection,
|
|
9851
9851
|
getRowKey: Y,
|
|
9852
9852
|
data: () => P.value,
|
|
@@ -9859,9 +9859,9 @@ const _s = /* @__PURE__ */ le({
|
|
|
9859
9859
|
});
|
|
9860
9860
|
}
|
|
9861
9861
|
}), {
|
|
9862
|
-
isExpanded:
|
|
9863
|
-
toggleExpand:
|
|
9864
|
-
} =
|
|
9862
|
+
isExpanded: Ze,
|
|
9863
|
+
toggleExpand: Je
|
|
9864
|
+
} = Xa({
|
|
9865
9865
|
expandable: () => e.expandable,
|
|
9866
9866
|
getRowKey: Y,
|
|
9867
9867
|
data: () => U.value
|
|
@@ -9869,9 +9869,9 @@ const _s = /* @__PURE__ */ le({
|
|
|
9869
9869
|
const Q = e.expandable;
|
|
9870
9870
|
return Q ? Q.rowExpandable ? Q.rowExpandable(B) : !!Q.expandedRowRender : !1;
|
|
9871
9871
|
}, L = (B, Q) => {
|
|
9872
|
-
q(B) &&
|
|
9872
|
+
q(B) && Je(B, Q);
|
|
9873
9873
|
}, X = "__vtg_selection__", te = "__vtg_expand__", J = g(() => {
|
|
9874
|
-
const B = e.expandable, Q = e.rowSelection,
|
|
9874
|
+
const B = e.expandable, Q = e.rowSelection, fe = B && B.showExpandColumn !== !1 ? {
|
|
9875
9875
|
key: te,
|
|
9876
9876
|
title: "",
|
|
9877
9877
|
width: B.columnWidth ?? 48,
|
|
@@ -9883,42 +9883,42 @@ const _s = /* @__PURE__ */ le({
|
|
|
9883
9883
|
width: Q.columnWidth ?? 48,
|
|
9884
9884
|
align: "center",
|
|
9885
9885
|
fixed: Q.fixed === !0 ? "left" : Q.fixed || void 0
|
|
9886
|
-
} : null,
|
|
9886
|
+
} : null, Be = [];
|
|
9887
9887
|
let Te = !1, Re = !1;
|
|
9888
9888
|
for (const xe of S.value) {
|
|
9889
9889
|
if (xe === Yr) {
|
|
9890
|
-
|
|
9890
|
+
fe && !Te && (Be.push(fe), Te = !0);
|
|
9891
9891
|
continue;
|
|
9892
9892
|
}
|
|
9893
9893
|
if (xe === Ur) {
|
|
9894
|
-
ge && !Re && (
|
|
9894
|
+
ge && !Re && (Be.push(ge), Re = !0);
|
|
9895
9895
|
continue;
|
|
9896
9896
|
}
|
|
9897
|
-
|
|
9897
|
+
Be.push(xe);
|
|
9898
9898
|
}
|
|
9899
|
-
return
|
|
9899
|
+
return fe && !Te && Be.unshift(fe), ge && !Re && Be.unshift(ge), Be;
|
|
9900
9900
|
}), {
|
|
9901
9901
|
leafColumns: ie,
|
|
9902
|
-
headerRows:
|
|
9903
|
-
} =
|
|
9902
|
+
headerRows: be
|
|
9903
|
+
} = Xo(() => J.value), ke = g(() => be.value.length > 1), {
|
|
9904
9904
|
headerWrapRef: ze,
|
|
9905
9905
|
bodyWrapRef: Ce,
|
|
9906
|
-
scrollState:
|
|
9906
|
+
scrollState: Ve,
|
|
9907
9907
|
handleBodyScroll: Me,
|
|
9908
|
-
fixedOffsets:
|
|
9909
|
-
syncHorizontalScroll:
|
|
9910
|
-
} =
|
|
9908
|
+
fixedOffsets: Qe,
|
|
9909
|
+
syncHorizontalScroll: et
|
|
9910
|
+
} = $a({
|
|
9911
9911
|
displayColumns: () => ie.value
|
|
9912
|
-
}), ae = g(() =>
|
|
9912
|
+
}), ae = g(() => Ga({
|
|
9913
9913
|
compatClass: m,
|
|
9914
|
-
fixedOffsets:
|
|
9915
|
-
scrollState:
|
|
9914
|
+
fixedOffsets: Qe,
|
|
9915
|
+
scrollState: Ve,
|
|
9916
9916
|
empty: U.value.length === 0,
|
|
9917
9917
|
fixedHeader: e.scroll?.y !== void 0,
|
|
9918
|
-
fixedColumn:
|
|
9919
|
-
horizontalScroll:
|
|
9920
|
-
layoutFixed:
|
|
9921
|
-
})),
|
|
9918
|
+
fixedColumn: at.value && mt.value,
|
|
9919
|
+
horizontalScroll: at.value,
|
|
9920
|
+
layoutFixed: Le.value === "fixed"
|
|
9921
|
+
})), Ke = g(() => e.showHeader !== !1 && (!!e.scroll?.y || !!e.sticky)), mt = g(() => ie.value.some((B) => B.fixed === "left" || B.fixed === "right")), at = g(() => e.scroll?.x !== void 0 || !!e.expandable?.fixed), We = g(() => w.value.some((B) => Vt(B).enabled)), Le = g(() => e.tableLayout ? e.tableLayout : e.scroll?.y || e.scroll?.x || mt.value || We.value ? "fixed" : "auto"), qt = g(() => {
|
|
9922
9922
|
if (I.value)
|
|
9923
9923
|
return {
|
|
9924
9924
|
position: "sticky",
|
|
@@ -9927,15 +9927,15 @@ const _s = /* @__PURE__ */ le({
|
|
|
9927
9927
|
};
|
|
9928
9928
|
}), {
|
|
9929
9929
|
enabled: tt,
|
|
9930
|
-
itemHeight:
|
|
9931
|
-
listHeight:
|
|
9932
|
-
fixedHeight:
|
|
9933
|
-
} =
|
|
9930
|
+
itemHeight: Tt,
|
|
9931
|
+
listHeight: ht,
|
|
9932
|
+
fixedHeight: Rt
|
|
9933
|
+
} = ss({
|
|
9934
9934
|
virtual: () => e.virtual,
|
|
9935
9935
|
scrollY: () => e.scroll?.y,
|
|
9936
9936
|
size: () => e.size,
|
|
9937
9937
|
rowHeight: () => e.rowHeight
|
|
9938
|
-
}),
|
|
9938
|
+
}), It = g(() => w.value.some((B) => !!B.customCell || !!B.customRender)), Ae = g(() => !ke.value || e.bordered ? {
|
|
9939
9939
|
table: "",
|
|
9940
9940
|
th: "",
|
|
9941
9941
|
td: ""
|
|
@@ -9943,40 +9943,40 @@ const _s = /* @__PURE__ */ le({
|
|
|
9943
9943
|
table: a.groupedHeaderTable(),
|
|
9944
9944
|
th: a.groupedHeaderTh(),
|
|
9945
9945
|
td: a.groupedHeaderTd()
|
|
9946
|
-
}),
|
|
9947
|
-
ne([tt,
|
|
9946
|
+
}), pt = g(() => re(a.table(), Ae.value.table) ?? ""), ho = g(() => re(a.th(), Ae.value.th) ?? ""), Gt = g(() => re(a.td(), Ae.value.td) ?? "");
|
|
9947
|
+
ne([tt, It], ([B, Q]) => {
|
|
9948
9948
|
}, {
|
|
9949
9949
|
immediate: !0
|
|
9950
9950
|
});
|
|
9951
|
-
const
|
|
9952
|
-
ne(() =>
|
|
9951
|
+
const po = F(null), bo = F(null);
|
|
9952
|
+
ne(() => po.value?.wrapRef, (B) => {
|
|
9953
9953
|
B && (Ce.value = B);
|
|
9954
|
-
}), ne(() =>
|
|
9954
|
+
}), ne(() => bo.value?.wrapRef, (B) => {
|
|
9955
9955
|
B && (Ce.value = B);
|
|
9956
9956
|
});
|
|
9957
9957
|
const {
|
|
9958
|
-
columnWidths:
|
|
9958
|
+
columnWidths: go,
|
|
9959
9959
|
startResize: al,
|
|
9960
9960
|
isResizing: sl
|
|
9961
|
-
} =
|
|
9961
|
+
} = Ya({
|
|
9962
9962
|
onResizeColumn(B, Q) {
|
|
9963
9963
|
o("resizeColumn", B, Q);
|
|
9964
9964
|
}
|
|
9965
|
-
}), il = g(() => Vr(ie.value)),
|
|
9966
|
-
ne(
|
|
9965
|
+
}), il = g(() => Vr(ie.value)), yo = g(() => e.virtualColumn ? tt.value ? It.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : il.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), Xt = g(() => e.virtualColumn && yo.value === null);
|
|
9966
|
+
ne(yo, (B) => {
|
|
9967
9967
|
}, {
|
|
9968
9968
|
immediate: !0
|
|
9969
9969
|
});
|
|
9970
9970
|
const {
|
|
9971
|
-
metrics:
|
|
9972
|
-
} =
|
|
9973
|
-
enabled: () =>
|
|
9971
|
+
metrics: xo
|
|
9972
|
+
} = os({
|
|
9973
|
+
enabled: () => Xt.value,
|
|
9974
9974
|
headerEl: () => ze.value,
|
|
9975
9975
|
columns: () => ie.value,
|
|
9976
|
-
columnWidths:
|
|
9976
|
+
columnWidths: go,
|
|
9977
9977
|
hasHeader: () => e.showHeader !== !1
|
|
9978
9978
|
});
|
|
9979
|
-
ne([
|
|
9979
|
+
ne([Xt, xo], ([B, Q]) => {
|
|
9980
9980
|
!B || Q || e.showHeader;
|
|
9981
9981
|
}, {
|
|
9982
9982
|
immediate: !0
|
|
@@ -9996,18 +9996,18 @@ const _s = /* @__PURE__ */ le({
|
|
|
9996
9996
|
function vl(B) {
|
|
9997
9997
|
if (typeof B.title != "function")
|
|
9998
9998
|
return B.title ?? "";
|
|
9999
|
-
const Q = B,
|
|
9999
|
+
const Q = B, fe = C.value.filter((ge) => !!ge.column);
|
|
10000
10000
|
return B.title({
|
|
10001
10001
|
sortOrder: Q.sorter ? O(Q) ?? void 0 : void 0,
|
|
10002
10002
|
sortColumn: k.value.column,
|
|
10003
|
-
sortColumns:
|
|
10003
|
+
sortColumns: fe.length > 0 ? fe : void 0,
|
|
10004
10004
|
filters: ee()
|
|
10005
10005
|
});
|
|
10006
10006
|
}
|
|
10007
10007
|
function ml(B) {
|
|
10008
10008
|
return !!(B.sorter && O(B));
|
|
10009
10009
|
}
|
|
10010
|
-
const
|
|
10010
|
+
const wo = {
|
|
10011
10011
|
width: "100%",
|
|
10012
10012
|
minWidth: "100%"
|
|
10013
10013
|
}, hl = {
|
|
@@ -10087,8 +10087,8 @@ const _s = /* @__PURE__ */ le({
|
|
|
10087
10087
|
resizeHandle: a.resizeHandle,
|
|
10088
10088
|
tdRowHover: a.tdRowHover,
|
|
10089
10089
|
tdRowSelectedHover: a.tdRowSelectedHover
|
|
10090
|
-
},
|
|
10091
|
-
return
|
|
10090
|
+
}, So = g(() => ys(l.value)), Co = F(!1);
|
|
10091
|
+
return oo(pe, {
|
|
10092
10092
|
bodyCell: t.bodyCell,
|
|
10093
10093
|
headerCell: t.headerCell,
|
|
10094
10094
|
empty: t.empty,
|
|
@@ -10100,33 +10100,33 @@ const _s = /* @__PURE__ */ le({
|
|
|
10100
10100
|
resetFilter: Z,
|
|
10101
10101
|
customFilterDropdown: t.customFilterDropdown,
|
|
10102
10102
|
customFilterIcon: t.customFilterIcon,
|
|
10103
|
-
showSorterTooltip: g(() => e.showSorterTooltip ??
|
|
10103
|
+
showSorterTooltip: g(() => e.showSorterTooltip ?? So.value.showSorterTooltip),
|
|
10104
10104
|
headerEllipsis: g(() => e.headerEllipsis),
|
|
10105
10105
|
subThemeSlots: hl,
|
|
10106
|
-
presetConfig:
|
|
10106
|
+
presetConfig: So,
|
|
10107
10107
|
themePreset: l,
|
|
10108
10108
|
cssMode: n,
|
|
10109
10109
|
classPrefix: s,
|
|
10110
|
-
vtgClass: (B) =>
|
|
10110
|
+
vtgClass: (B) => Ge(B, n.value, s.value),
|
|
10111
10111
|
compatClass: m,
|
|
10112
10112
|
localeName: p,
|
|
10113
10113
|
locale: h,
|
|
10114
10114
|
rowSelection: () => e.rowSelection,
|
|
10115
10115
|
isSelected: se,
|
|
10116
10116
|
isDisabledRow: ce,
|
|
10117
|
-
getSelectionState:
|
|
10118
|
-
toggleRow:
|
|
10117
|
+
getSelectionState: me,
|
|
10118
|
+
toggleRow: ye,
|
|
10119
10119
|
toggleAll: de,
|
|
10120
10120
|
allCheckedState: () => Ee.value,
|
|
10121
10121
|
getRowKey: Y,
|
|
10122
10122
|
invertSelection: Se,
|
|
10123
|
-
clearSelection:
|
|
10124
|
-
getChangeableRowKeys:
|
|
10125
|
-
fixedOffsets:
|
|
10126
|
-
scrollState:
|
|
10123
|
+
clearSelection: Ue,
|
|
10124
|
+
getChangeableRowKeys: Pe,
|
|
10125
|
+
fixedOffsets: Qe,
|
|
10126
|
+
scrollState: Ve,
|
|
10127
10127
|
leafColumnCount: g(() => ie.value.length),
|
|
10128
10128
|
bordered: g(() => e.bordered),
|
|
10129
|
-
tableLayout:
|
|
10129
|
+
tableLayout: Le,
|
|
10130
10130
|
sticky: g(() => e.sticky),
|
|
10131
10131
|
getRowProps: ul,
|
|
10132
10132
|
getRowClassName: dl,
|
|
@@ -10135,15 +10135,15 @@ const _s = /* @__PURE__ */ le({
|
|
|
10135
10135
|
getPopupContainer: e.getPopupContainer,
|
|
10136
10136
|
transformCellText: e.transformCellText,
|
|
10137
10137
|
expandable: () => e.expandable,
|
|
10138
|
-
isExpanded:
|
|
10138
|
+
isExpanded: Ze,
|
|
10139
10139
|
toggleExpand: L,
|
|
10140
10140
|
isRowExpandable: q,
|
|
10141
|
-
columnWidths:
|
|
10141
|
+
columnWidths: go,
|
|
10142
10142
|
startResize: al,
|
|
10143
10143
|
isResizing: () => sl.value,
|
|
10144
10144
|
displayColumns: g(() => ie.value),
|
|
10145
10145
|
registerSummaryFixed: (B) => {
|
|
10146
|
-
|
|
10146
|
+
Co.value = B;
|
|
10147
10147
|
},
|
|
10148
10148
|
isTreeData: x,
|
|
10149
10149
|
treeFlattenData: M,
|
|
@@ -10159,84 +10159,84 @@ const _s = /* @__PURE__ */ le({
|
|
|
10159
10159
|
let B;
|
|
10160
10160
|
const Q = e.title ? e.title(U.value) : t.title ? t.title({
|
|
10161
10161
|
data: U.value
|
|
10162
|
-
}) : null,
|
|
10162
|
+
}) : null, fe = e.footer ? e.footer(U.value) : t.footer ? t.footer({
|
|
10163
10163
|
data: U.value
|
|
10164
|
-
}) : null, ge = t.summary ? t.summary() : null,
|
|
10165
|
-
tableLayout:
|
|
10164
|
+
}) : null, ge = t.summary ? t.summary() : null, Be = Co.value !== !1, Te = e.scroll, Re = {
|
|
10165
|
+
tableLayout: Le.value
|
|
10166
10166
|
};
|
|
10167
|
-
Te?.x ? (Re.width = typeof Te.x == "number" ? `${Te.x}px` : Te.x, Re.minWidth = "100%") : Re.width =
|
|
10168
|
-
const xe = e.loading, pl = xe === !0 || typeof xe == "object" && xe !== null && xe.spinning !== !1, bl = typeof xe == "object" && xe !== null ? xe.indicator : void 0, gl = typeof xe == "object" && xe !== null ? xe.tip : void 0,
|
|
10167
|
+
Te?.x ? (Re.width = typeof Te.x == "number" ? `${Te.x}px` : Te.x, Re.minWidth = "100%") : Re.width = "100%";
|
|
10168
|
+
const xe = e.loading, pl = xe === !0 || typeof xe == "object" && xe !== null && xe.spinning !== !1, bl = typeof xe == "object" && xe !== null ? xe.indicator : void 0, gl = typeof xe == "object" && xe !== null ? xe.tip : void 0, ko = pl && (t.loading ? u(or, {
|
|
10169
10169
|
loadingClass: a.loading()
|
|
10170
|
-
},
|
|
10170
|
+
}, rr(B = t.loading()) ? B : {
|
|
10171
10171
|
default: () => [B]
|
|
10172
|
-
}) : u(
|
|
10172
|
+
}) : u(or, {
|
|
10173
10173
|
loadingClass: a.loading(),
|
|
10174
10174
|
indicator: bl,
|
|
10175
10175
|
tip: gl
|
|
10176
10176
|
}, null));
|
|
10177
|
-
if (
|
|
10177
|
+
if (Ke.value) {
|
|
10178
10178
|
const yl = e.showHeader !== !1 ? u("div", {
|
|
10179
10179
|
ref: ze,
|
|
10180
10180
|
class: re(a.headerWrapper(), I.value && m?.("sticky-holder")),
|
|
10181
|
-
style:
|
|
10181
|
+
style: qt.value
|
|
10182
10182
|
}, [u("div", {
|
|
10183
|
-
class:
|
|
10183
|
+
class: Ge("block w-full min-w-full", n.value, s.value)
|
|
10184
10184
|
}, [u("table", {
|
|
10185
|
-
class:
|
|
10185
|
+
class: pt.value,
|
|
10186
10186
|
style: Re
|
|
10187
|
-
}, [u(
|
|
10187
|
+
}, [u(xt, {
|
|
10188
10188
|
columns: ie.value
|
|
10189
|
-
}, null), u(
|
|
10190
|
-
rows:
|
|
10189
|
+
}, null), u(Qo, {
|
|
10190
|
+
rows: be.value,
|
|
10191
10191
|
theadClass: a.thead(),
|
|
10192
10192
|
rowClass: a.tr(),
|
|
10193
|
-
thClass:
|
|
10193
|
+
thClass: ho.value,
|
|
10194
10194
|
headerCellInnerClass: a.headerCellInner()
|
|
10195
|
-
}, null)])])]) : null, xl = tt.value ? u(
|
|
10195
|
+
}, null)])])]) : null, xl = tt.value ? u(zs, {
|
|
10196
10196
|
dataSource: U.value,
|
|
10197
10197
|
columns: ie.value,
|
|
10198
10198
|
tbodyClass: a.tbody(),
|
|
10199
10199
|
rowClass: a.tr(),
|
|
10200
|
-
tdClass:
|
|
10200
|
+
tdClass: Gt.value,
|
|
10201
10201
|
emptyClass: a.empty(),
|
|
10202
10202
|
bodyCellEllipsisClass: a.bodyCellEllipsis(),
|
|
10203
|
-
tableClass:
|
|
10203
|
+
tableClass: pt.value,
|
|
10204
10204
|
tableStyle: Re,
|
|
10205
10205
|
rowKey: e.rowKey,
|
|
10206
|
-
height:
|
|
10207
|
-
itemHeight:
|
|
10208
|
-
fixedHeight:
|
|
10209
|
-
virtualColumn:
|
|
10210
|
-
columnMetrics:
|
|
10206
|
+
height: ht.value,
|
|
10207
|
+
itemHeight: Tt.value,
|
|
10208
|
+
fixedHeight: Rt.value,
|
|
10209
|
+
virtualColumn: Xt.value,
|
|
10210
|
+
columnMetrics: xo.value,
|
|
10211
10211
|
showScrollBar: "hover",
|
|
10212
|
-
onVirtualScroll: (
|
|
10213
|
-
|
|
10212
|
+
onVirtualScroll: (To) => {
|
|
10213
|
+
et(To.x, To.maxX);
|
|
10214
10214
|
}
|
|
10215
10215
|
}, null) : null, wl = tt.value ? null : u(Ht, {
|
|
10216
|
-
ref:
|
|
10216
|
+
ref: po,
|
|
10217
10217
|
maxHeight: Te?.y !== void 0 ? typeof Te.y == "number" ? Te.y : String(Te.y) : void 0,
|
|
10218
10218
|
wrapClass: a.bodyWrapper(),
|
|
10219
|
-
viewStyle:
|
|
10219
|
+
viewStyle: wo,
|
|
10220
10220
|
onScroll: Me
|
|
10221
10221
|
}, {
|
|
10222
10222
|
default: () => [u("table", {
|
|
10223
|
-
class:
|
|
10223
|
+
class: pt.value,
|
|
10224
10224
|
style: Re
|
|
10225
|
-
}, [u(
|
|
10225
|
+
}, [u(xt, {
|
|
10226
10226
|
columns: ie.value
|
|
10227
|
-
}, null), u(
|
|
10227
|
+
}, null), u(tr, {
|
|
10228
10228
|
dataSource: U.value,
|
|
10229
10229
|
columns: ie.value,
|
|
10230
10230
|
tbodyClass: a.tbody(),
|
|
10231
10231
|
rowClass: a.tr(),
|
|
10232
|
-
tdClass:
|
|
10232
|
+
tdClass: Gt.value,
|
|
10233
10233
|
emptyClass: a.empty(),
|
|
10234
10234
|
bodyCellEllipsisClass: a.bodyCellEllipsis(),
|
|
10235
10235
|
rowKey: e.rowKey
|
|
10236
|
-
}, null), ge && !
|
|
10236
|
+
}, null), ge && !Be && u("tfoot", {
|
|
10237
10237
|
class: a.summary()
|
|
10238
10238
|
}, [ge])])]
|
|
10239
|
-
}), Sl = ge &&
|
|
10239
|
+
}), Sl = ge && Be ? u("div", {
|
|
10240
10240
|
class: re(a.headerWrapper(), m?.("summary"), I.value && m?.("sticky-holder")),
|
|
10241
10241
|
style: {
|
|
10242
10242
|
position: "sticky",
|
|
@@ -10245,11 +10245,11 @@ const _s = /* @__PURE__ */ le({
|
|
|
10245
10245
|
overflow: "hidden"
|
|
10246
10246
|
}
|
|
10247
10247
|
}, [u("div", {
|
|
10248
|
-
class:
|
|
10248
|
+
class: Ge("block w-full min-w-full", n.value, s.value)
|
|
10249
10249
|
}, [u("table", {
|
|
10250
|
-
class:
|
|
10250
|
+
class: pt.value,
|
|
10251
10251
|
style: Re
|
|
10252
|
-
}, [u(
|
|
10252
|
+
}, [u(xt, {
|
|
10253
10253
|
columns: ie.value
|
|
10254
10254
|
}, null), u("tfoot", {
|
|
10255
10255
|
class: a.summary()
|
|
@@ -10259,51 +10259,51 @@ const _s = /* @__PURE__ */ le({
|
|
|
10259
10259
|
}, [Q && u("div", {
|
|
10260
10260
|
class: a.title()
|
|
10261
10261
|
}, [Q]), u("div", {
|
|
10262
|
-
class: re(a.wrapper(), I.value &&
|
|
10263
|
-
}, [yl, xl, wl, Sl,
|
|
10262
|
+
class: re(a.wrapper(), I.value && Ge("overflow-clip", n.value, s.value))
|
|
10263
|
+
}, [yl, xl, wl, Sl, ko]), fe && u("div", {
|
|
10264
10264
|
class: a.footer()
|
|
10265
|
-
}, [
|
|
10265
|
+
}, [fe])]);
|
|
10266
10266
|
}
|
|
10267
|
-
const
|
|
10268
|
-
class:
|
|
10267
|
+
const Yt = u(io, null, [u("table", {
|
|
10268
|
+
class: pt.value,
|
|
10269
10269
|
style: Re
|
|
10270
|
-
}, [u(
|
|
10270
|
+
}, [u(xt, {
|
|
10271
10271
|
columns: ie.value
|
|
10272
|
-
}, null), e.showHeader !== !1 && u(
|
|
10273
|
-
rows:
|
|
10272
|
+
}, null), e.showHeader !== !1 && u(Qo, {
|
|
10273
|
+
rows: be.value,
|
|
10274
10274
|
theadClass: a.thead(),
|
|
10275
10275
|
rowClass: a.tr(),
|
|
10276
|
-
thClass:
|
|
10276
|
+
thClass: ho.value,
|
|
10277
10277
|
headerCellInnerClass: a.headerCellInner()
|
|
10278
|
-
}, null), u(
|
|
10278
|
+
}, null), u(tr, {
|
|
10279
10279
|
dataSource: U.value,
|
|
10280
10280
|
columns: ie.value,
|
|
10281
10281
|
tbodyClass: a.tbody(),
|
|
10282
10282
|
rowClass: a.tr(),
|
|
10283
|
-
tdClass:
|
|
10283
|
+
tdClass: Gt.value,
|
|
10284
10284
|
emptyClass: a.empty(),
|
|
10285
10285
|
bodyCellEllipsisClass: a.bodyCellEllipsis(),
|
|
10286
10286
|
rowKey: e.rowKey
|
|
10287
10287
|
}, null), ge && u("tfoot", {
|
|
10288
10288
|
class: a.summary()
|
|
10289
|
-
}, [ge])]),
|
|
10289
|
+
}, [ge])]), ko]);
|
|
10290
10290
|
return u("div", {
|
|
10291
10291
|
class: re(a.root(), ae.value)
|
|
10292
10292
|
}, [Q && u("div", {
|
|
10293
10293
|
class: a.title()
|
|
10294
10294
|
}, [Q]), u(Ht, {
|
|
10295
|
-
ref:
|
|
10295
|
+
ref: bo,
|
|
10296
10296
|
wrapClass: a.wrapper(),
|
|
10297
|
-
viewStyle:
|
|
10297
|
+
viewStyle: wo,
|
|
10298
10298
|
onScroll: Me
|
|
10299
|
-
},
|
|
10300
|
-
default: () => [
|
|
10301
|
-
}),
|
|
10299
|
+
}, rr(Yt) ? Yt : {
|
|
10300
|
+
default: () => [Yt]
|
|
10301
|
+
}), fe && u("div", {
|
|
10302
10302
|
class: a.footer()
|
|
10303
|
-
}, [
|
|
10303
|
+
}, [fe])]);
|
|
10304
10304
|
};
|
|
10305
10305
|
}
|
|
10306
|
-
}),
|
|
10306
|
+
}), _s = /* @__PURE__ */ le({
|
|
10307
10307
|
name: "VTable",
|
|
10308
10308
|
__name: "VTable",
|
|
10309
10309
|
props: {
|
|
@@ -10385,70 +10385,70 @@ const _s = /* @__PURE__ */ le({
|
|
|
10385
10385
|
function p(c) {
|
|
10386
10386
|
return c;
|
|
10387
10387
|
}
|
|
10388
|
-
return (c, h) => (zl(), Dl(
|
|
10388
|
+
return (c, h) => (zl(), Dl(wt(As), Ie(l(), {
|
|
10389
10389
|
onChange: s,
|
|
10390
10390
|
onResizeColumn: i
|
|
10391
10391
|
}), Ml({ _: 2 }, [
|
|
10392
10392
|
c.$slots.bodyCell ? {
|
|
10393
10393
|
name: "bodyCell",
|
|
10394
|
-
fn:
|
|
10395
|
-
|
|
10394
|
+
fn: Fe((f) => [
|
|
10395
|
+
je(c.$slots, "bodyCell", st(it(d(f))))
|
|
10396
10396
|
]),
|
|
10397
10397
|
key: "0"
|
|
10398
10398
|
} : void 0,
|
|
10399
10399
|
c.$slots.headerCell ? {
|
|
10400
10400
|
name: "headerCell",
|
|
10401
|
-
fn:
|
|
10402
|
-
|
|
10401
|
+
fn: Fe((f) => [
|
|
10402
|
+
je(c.$slots, "headerCell", st(it(a(f))))
|
|
10403
10403
|
]),
|
|
10404
10404
|
key: "1"
|
|
10405
10405
|
} : void 0,
|
|
10406
10406
|
c.$slots.empty ? {
|
|
10407
10407
|
name: "empty",
|
|
10408
|
-
fn:
|
|
10409
|
-
|
|
10408
|
+
fn: Fe(() => [
|
|
10409
|
+
je(c.$slots, "empty")
|
|
10410
10410
|
]),
|
|
10411
10411
|
key: "2"
|
|
10412
10412
|
} : void 0,
|
|
10413
10413
|
c.$slots.loading ? {
|
|
10414
10414
|
name: "loading",
|
|
10415
|
-
fn:
|
|
10416
|
-
|
|
10415
|
+
fn: Fe(() => [
|
|
10416
|
+
je(c.$slots, "loading")
|
|
10417
10417
|
]),
|
|
10418
10418
|
key: "3"
|
|
10419
10419
|
} : void 0,
|
|
10420
10420
|
c.$slots.customFilterDropdown ? {
|
|
10421
10421
|
name: "customFilterDropdown",
|
|
10422
|
-
fn:
|
|
10423
|
-
|
|
10422
|
+
fn: Fe((f) => [
|
|
10423
|
+
je(c.$slots, "customFilterDropdown", st(it(v(f))))
|
|
10424
10424
|
]),
|
|
10425
10425
|
key: "4"
|
|
10426
10426
|
} : void 0,
|
|
10427
10427
|
c.$slots.customFilterIcon ? {
|
|
10428
10428
|
name: "customFilterIcon",
|
|
10429
|
-
fn:
|
|
10430
|
-
|
|
10429
|
+
fn: Fe((f) => [
|
|
10430
|
+
je(c.$slots, "customFilterIcon", st(it(m(f))))
|
|
10431
10431
|
]),
|
|
10432
10432
|
key: "5"
|
|
10433
10433
|
} : void 0,
|
|
10434
10434
|
c.$slots.title ? {
|
|
10435
10435
|
name: "title",
|
|
10436
|
-
fn:
|
|
10437
|
-
|
|
10436
|
+
fn: Fe((f) => [
|
|
10437
|
+
je(c.$slots, "title", st(it(p(f))))
|
|
10438
10438
|
]),
|
|
10439
10439
|
key: "6"
|
|
10440
10440
|
} : void 0,
|
|
10441
10441
|
c.$slots.footer ? {
|
|
10442
10442
|
name: "footer",
|
|
10443
|
-
fn:
|
|
10444
|
-
|
|
10443
|
+
fn: Fe((f) => [
|
|
10444
|
+
je(c.$slots, "footer", st(it(p(f))))
|
|
10445
10445
|
]),
|
|
10446
10446
|
key: "7"
|
|
10447
10447
|
} : void 0,
|
|
10448
10448
|
c.$slots.summary ? {
|
|
10449
10449
|
name: "summary",
|
|
10450
|
-
fn:
|
|
10451
|
-
|
|
10450
|
+
fn: Fe(() => [
|
|
10451
|
+
je(c.$slots, "summary")
|
|
10452
10452
|
]),
|
|
10453
10453
|
key: "8"
|
|
10454
10454
|
} : void 0
|
|
@@ -10459,7 +10459,7 @@ const _s = /* @__PURE__ */ le({
|
|
|
10459
10459
|
setup(e, {
|
|
10460
10460
|
slots: t
|
|
10461
10461
|
}) {
|
|
10462
|
-
const o = ue(
|
|
10462
|
+
const o = ue(pe, {});
|
|
10463
10463
|
return () => {
|
|
10464
10464
|
const r = o.subThemeSlots;
|
|
10465
10465
|
return u("tr", {
|
|
@@ -10490,20 +10490,20 @@ const _s = /* @__PURE__ */ le({
|
|
|
10490
10490
|
setup(e, {
|
|
10491
10491
|
slots: t
|
|
10492
10492
|
}) {
|
|
10493
|
-
const o = ue(
|
|
10493
|
+
const o = ue(pe, {}), r = g(() => {
|
|
10494
10494
|
const d = o.displayColumns?.value;
|
|
10495
10495
|
if (!d) return null;
|
|
10496
10496
|
const a = d[e.index];
|
|
10497
10497
|
if (!a?.fixed) return null;
|
|
10498
|
-
const v =
|
|
10498
|
+
const v = ve(a) ?? e.index;
|
|
10499
10499
|
return o.fixedOffsets?.value?.get(v) ?? null;
|
|
10500
10500
|
}), {
|
|
10501
10501
|
fixedStyle: l,
|
|
10502
10502
|
fixedClass: n
|
|
10503
|
-
} =
|
|
10503
|
+
} = vo({
|
|
10504
10504
|
fixedInfo: () => r.value
|
|
10505
10505
|
}), s = g(() => {
|
|
10506
|
-
const d = o.subThemeSlots, a = e.align ?
|
|
10506
|
+
const d = o.subThemeSlots, a = e.align ? o.vtgClass?.(fo[e.align]) ?? "" : "";
|
|
10507
10507
|
return re(d?.summaryCell() ?? "", a, n.value);
|
|
10508
10508
|
}), i = g(() => {
|
|
10509
10509
|
const d = o.displayColumns?.value;
|
|
@@ -10524,7 +10524,7 @@ const _s = /* @__PURE__ */ le({
|
|
|
10524
10524
|
}, [t.default?.()]);
|
|
10525
10525
|
};
|
|
10526
10526
|
}
|
|
10527
|
-
}),
|
|
10527
|
+
}), Os = /* @__PURE__ */ le({
|
|
10528
10528
|
name: "VTableSummary",
|
|
10529
10529
|
props: {
|
|
10530
10530
|
fixed: {
|
|
@@ -10535,29 +10535,29 @@ const _s = /* @__PURE__ */ le({
|
|
|
10535
10535
|
setup(e, {
|
|
10536
10536
|
slots: t
|
|
10537
10537
|
}) {
|
|
10538
|
-
const o = ue(
|
|
10538
|
+
const o = ue(pe, {});
|
|
10539
10539
|
return ne(() => e.fixed, (r) => {
|
|
10540
10540
|
o.registerSummaryFixed?.(r ?? !1);
|
|
10541
10541
|
}, {
|
|
10542
10542
|
immediate: !0
|
|
10543
10543
|
}), () => t.default?.();
|
|
10544
10544
|
}
|
|
10545
|
-
}),
|
|
10545
|
+
}), Ls = Object.assign(Os, {
|
|
10546
10546
|
Row: ll,
|
|
10547
10547
|
Cell: nl
|
|
10548
|
-
}),
|
|
10548
|
+
}), $s = Object.assign(_s, {
|
|
10549
10549
|
SELECTION_ALL: qr,
|
|
10550
10550
|
SELECTION_INVERT: Gr,
|
|
10551
10551
|
SELECTION_NONE: Xr,
|
|
10552
10552
|
EXPAND_COLUMN: Yr,
|
|
10553
10553
|
SELECTION_COLUMN: Ur
|
|
10554
|
-
}),
|
|
10554
|
+
}), qs = Ls, Gs = ll, Xs = nl;
|
|
10555
10555
|
export {
|
|
10556
|
-
|
|
10557
|
-
|
|
10556
|
+
Oo as Button,
|
|
10557
|
+
so as Checkbox,
|
|
10558
10558
|
Ft as DEFAULT_VTG_CLASS_PREFIX,
|
|
10559
10559
|
Yr as EXPAND_COLUMN,
|
|
10560
|
-
|
|
10560
|
+
$n as Input,
|
|
10561
10561
|
Er as PrefixSums,
|
|
10562
10562
|
Ir as Radio,
|
|
10563
10563
|
qr as SELECTION_ALL,
|
|
@@ -10565,49 +10565,50 @@ export {
|
|
|
10565
10565
|
Gr as SELECTION_INVERT,
|
|
10566
10566
|
Xr as SELECTION_NONE,
|
|
10567
10567
|
Ht as Scrollbar,
|
|
10568
|
-
|
|
10568
|
+
fo as TABLE_ALIGN_CLASSES,
|
|
10569
10569
|
Rr as Tooltip,
|
|
10570
10570
|
lt as VTABLE_GUILD_INJECTION_KEY,
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10571
|
+
$s as VTable,
|
|
10572
|
+
Ks as VTableGuildConfigProvider,
|
|
10573
|
+
qs as VTableSummary,
|
|
10574
|
+
Xs as VTableSummaryCell,
|
|
10575
|
+
Gs as VTableSummaryRow,
|
|
10576
|
+
ma as VirtualList,
|
|
10577
|
+
_a as antdvTableCompatClasses,
|
|
10578
10578
|
zr as buttonTheme,
|
|
10579
10579
|
Mr as checkboxTheme,
|
|
10580
10580
|
re as cn,
|
|
10581
10581
|
Ln as cnByCssMode,
|
|
10582
|
-
|
|
10583
|
-
|
|
10582
|
+
Vs as createVTableGuild,
|
|
10583
|
+
Ps as devWarn,
|
|
10584
10584
|
Nt as getByDataIndex,
|
|
10585
10585
|
_r as inputTheme,
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10586
|
+
dt as mergeDeep,
|
|
10587
|
+
qe as mergeThemeConfigs,
|
|
10588
|
+
kt as normalizeVtgClassPrefix,
|
|
10589
|
+
Hs as optionalBoolProp,
|
|
10590
|
+
Fs as optionalProp,
|
|
10591
|
+
Ns as optionalStringProp,
|
|
10592
|
+
Tr as prefixThemeConfig,
|
|
10593
|
+
Ge as prefixVtgClassNames,
|
|
10593
10594
|
Ar as radioTheme,
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10595
|
+
js as requiredProp,
|
|
10596
|
+
Ws as resolveBuiltInLocale,
|
|
10597
|
+
Aa as resolveBuiltInTableLocale,
|
|
10598
|
+
Ta as resolveButtonThemePreset,
|
|
10599
|
+
Ra as resolveCheckboxThemePreset,
|
|
10600
|
+
Ea as resolveInputThemePreset,
|
|
10601
|
+
Ia as resolveRadioThemePreset,
|
|
10602
|
+
za as resolveScrollbarThemePreset,
|
|
10603
|
+
Ma as resolveTableLocalePreset,
|
|
10604
|
+
ka as resolveTableThemePreset,
|
|
10605
|
+
Oe as resolveThemePreset,
|
|
10606
|
+
Da as resolveTooltipThemePreset,
|
|
10606
10607
|
Lr as scrollbarTheme,
|
|
10607
|
-
|
|
10608
|
+
Bn as syncDocumentPresetAttr,
|
|
10608
10609
|
Dr as tableTheme,
|
|
10609
10610
|
Or as tooltipTheme,
|
|
10610
10611
|
Mn as tv,
|
|
10611
|
-
|
|
10612
|
+
Xo as useColumns,
|
|
10612
10613
|
nt as useTheme
|
|
10613
10614
|
};
|