@vtable-guild/vtable-guild 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { reactive as xt, inject as ve, computed as S, unref as Mt, defineComponent as Q, ref as O, watch as ne, nextTick as Qe, onMounted as et, onBeforeUnmount as Ge, createVNode as d, Fragment as Jt, Teleport as Nt, Transition as At, h as ct, provide as qt, shallowRef as Ie, cloneVNode as Gr, isVNode as wt, onUnmounted as St, markRaw as Yr, toRaw as Xr, onScopeDispose as Ur, Comment as Zr, mergeProps as fe, resolveDynamicComponent as No, getCurrentInstance as Jr, createBlock as Qr, openBlock as el, createSlots as tl, withCtx as Le, renderSlot as Oe, normalizeProps as lt, guardReactiveProps as nt } from "vue";
2
- var ol = /\s+/g, rl = (e) => typeof e != "string" || !e ? e : e.replace(ol, " ").trim(), _t = (...e) => {
1
+ import { reactive as xt, inject as ve, computed as S, unref as Mt, defineComponent as Q, ref as O, watch as ne, nextTick as Qe, onMounted as et, onBeforeUnmount as Ge, createVNode as d, Fragment as Jt, Teleport as Nt, Transition as _t, h as ct, provide as qt, shallowRef as Ie, cloneVNode as Gr, isVNode as wt, onUnmounted as St, markRaw as Yr, toRaw as Xr, onScopeDispose as Ur, Comment as Zr, mergeProps as fe, resolveDynamicComponent as No, getCurrentInstance as Jr, createBlock as Qr, openBlock as el, createSlots as tl, withCtx as Le, renderSlot as Oe, normalizeProps as lt, guardReactiveProps as nt } from "vue";
2
+ var ol = /\s+/g, rl = (e) => typeof e != "string" || !e ? e : e.replace(ol, " ").trim(), At = (...e) => {
3
3
  const t = [], o = (r) => {
4
4
  if (!r && r !== 0 && r !== 0n) return;
5
5
  if (Array.isArray(r)) {
@@ -41,7 +41,7 @@ var ol = /\s+/g, rl = (e) => typeof e != "string" || !e ? e : e.replace(ol, " ")
41
41
  for (const o in t)
42
42
  if (Object.prototype.hasOwnProperty.call(t, o)) {
43
43
  const r = t[o];
44
- o in e ? e[o] = _t(e[o], r) : e[o] = r;
44
+ o in e ? e[o] = At(e[o], r) : e[o] = r;
45
45
  }
46
46
  return e;
47
47
  }, Po = (e, t) => {
@@ -108,16 +108,16 @@ var je = sl(), il = (e) => {
108
108
  compoundVariants: i = [],
109
109
  compoundSlots: u = [],
110
110
  defaultVariants: v = {}
111
- } = r, f = { ...al, ...l }, c = a?.base ? _t(a.base, r?.base) : r?.base, m = a?.variants && !Ce(a.variants) ? Gt(n, a.variants) : n, h = a?.defaultVariants && !Ce(a.defaultVariants) ? { ...a.defaultVariants, ...v } : v;
111
+ } = r, f = { ...al, ...l }, c = a?.base ? At(a.base, r?.base) : r?.base, m = a?.variants && !Ce(a.variants) ? Gt(n, a.variants) : n, h = a?.defaultVariants && !Ce(a.defaultVariants) ? { ...a.defaultVariants, ...v } : v;
112
112
  !Ce(f.twMergeConfig) && !ll(f.twMergeConfig, je.cachedTwMergeConfig) && (je.didTwMergeConfigChange = !0, je.cachedTwMergeConfig = f.twMergeConfig);
113
113
  const g = Ce(a?.slots), w = Ce(s) ? {} : {
114
114
  // add "base" to the slots object
115
- base: _t(r?.base, g && a?.base),
115
+ base: At(r?.base, g && a?.base),
116
116
  ...s
117
117
  }, C = g ? w : nl(
118
118
  { ...a?.slots },
119
119
  Ce(w) ? { base: r?.base } : w
120
- ), M = Ce(a?.compoundVariants) ? i : Ho(a?.compoundVariants, i), A = (T) => {
120
+ ), M = Ce(a?.compoundVariants) ? i : Ho(a?.compoundVariants, i), _ = (T) => {
121
121
  if (Ce(m) && Ce(s) && g)
122
122
  return e(c, T?.class, T?.className)(f);
123
123
  if (M && !Array.isArray(M))
@@ -128,7 +128,7 @@ var je = sl(), il = (e) => {
128
128
  throw new TypeError(
129
129
  `The "compoundSlots" prop must be an array. Received: ${typeof u}`
130
130
  );
131
- const z = (V, N = m, K = null, G = null) => {
131
+ const D = (V, N = m, K = null, G = null) => {
132
132
  const b = N[V];
133
133
  if (!b || Ce(b))
134
134
  return null;
@@ -137,13 +137,13 @@ var je = sl(), il = (e) => {
137
137
  const E = so(p);
138
138
  if (typeof E == "object")
139
139
  return null;
140
- const R = h?.[V], _ = E ?? so(R);
141
- return b[_ || "false"];
140
+ const R = h?.[V], A = E ?? so(R);
141
+ return b[A || "false"];
142
142
  }, y = () => {
143
143
  if (!m) return null;
144
144
  const V = Object.keys(m), N = [];
145
145
  for (let K = 0; K < V.length; K++) {
146
- const G = z(V[K], m);
146
+ const G = D(V[K], m);
147
147
  G && N.push(G);
148
148
  }
149
149
  return N;
@@ -151,14 +151,14 @@ var je = sl(), il = (e) => {
151
151
  if (!m || typeof m != "object") return null;
152
152
  const K = [];
153
153
  for (const G in m) {
154
- const b = z(G, m, V, N), p = V === "base" && typeof b == "string" ? b : b && b[V];
154
+ const b = D(G, m, V, N), p = V === "base" && typeof b == "string" ? b : b && b[V];
155
155
  p && K.push(p);
156
156
  }
157
157
  return K;
158
- }, D = {};
158
+ }, z = {};
159
159
  for (const V in T) {
160
160
  const N = T[V];
161
- N !== void 0 && (D[V] = N);
161
+ N !== void 0 && (z[V] = N);
162
162
  }
163
163
  const $ = (V, N) => {
164
164
  const K = typeof T?.[V] == "object" ? {
@@ -166,7 +166,7 @@ var je = sl(), il = (e) => {
166
166
  } : {};
167
167
  return {
168
168
  ...h,
169
- ...D,
169
+ ...z,
170
170
  ...K,
171
171
  ...N
172
172
  };
@@ -174,25 +174,25 @@ var je = sl(), il = (e) => {
174
174
  const K = [], G = V.length;
175
175
  for (let b = 0; b < G; b++) {
176
176
  const { class: p, className: E, ...R } = V[b];
177
- let _ = !0;
177
+ let A = !0;
178
178
  const L = $(null, N);
179
179
  for (const q in R) {
180
180
  const W = R[q], Z = L[q];
181
181
  if (Array.isArray(W)) {
182
182
  if (!W.includes(Z)) {
183
- _ = !1;
183
+ A = !1;
184
184
  break;
185
185
  }
186
186
  } else {
187
187
  if ((W == null || W === !1) && (Z == null || Z === !1))
188
188
  continue;
189
189
  if (Z !== W) {
190
- _ = !1;
190
+ A = !1;
191
191
  break;
192
192
  }
193
193
  }
194
194
  }
195
- _ && (p && K.push(p), E && K.push(E));
195
+ A && (p && K.push(p), E && K.push(E));
196
196
  }
197
197
  return K;
198
198
  }, ee = (V) => {
@@ -219,18 +219,18 @@ var je = sl(), il = (e) => {
219
219
  ...R
220
220
  } = u[G];
221
221
  if (!Ce(R)) {
222
- let _ = !0;
222
+ let A = !0;
223
223
  for (const L in R) {
224
224
  const q = K[L], W = R[L];
225
225
  if (q === void 0 || (Array.isArray(W) ? !W.includes(q) : W !== q)) {
226
- _ = !1;
226
+ A = !1;
227
227
  break;
228
228
  }
229
229
  }
230
- if (!_) continue;
230
+ if (!A) continue;
231
231
  }
232
- for (let _ = 0; _ < b.length; _++) {
233
- const L = b[_];
232
+ for (let A = 0; A < b.length; A++) {
233
+ const L = b[A];
234
234
  N[L] || (N[L] = []), N[L].push([p, E]);
235
235
  }
236
236
  }
@@ -266,7 +266,7 @@ var je = sl(), il = (e) => {
266
266
  if (!(!m || typeof m != "object"))
267
267
  return Object.keys(m);
268
268
  };
269
- return A.variantKeys = x(), A.extend = a, A.base = c, A.slots = C, A.variants = m, A.defaultVariants = h, A.compoundSlots = u, A.compoundVariants = M, A;
269
+ return _.variantKeys = x(), _.extend = a, _.base = c, _.slots = C, _.variants = m, _.defaultVariants = h, _.compoundSlots = u, _.compoundVariants = M, _;
270
270
  };
271
271
  return {
272
272
  tv: t,
@@ -507,14 +507,14 @@ const cl = (e, t) => {
507
507
  }
508
508
  w = !1;
509
509
  }
510
- const M = c.length === 0 ? "" : c.length === 1 ? c[0] : a(c).join(":"), A = m ? M + Yt : M, x = A + C;
510
+ const M = c.length === 0 ? "" : c.length === 1 ? c[0] : a(c).join(":"), _ = m ? M + Yt : M, x = _ + C;
511
511
  if (s.indexOf(x) > -1)
512
512
  continue;
513
513
  s.push(x);
514
514
  const T = l(C, w);
515
- for (let z = 0; z < T.length; ++z) {
516
- const y = T[z];
517
- s.push(A + y);
515
+ for (let D = 0; D < T.length; ++D) {
516
+ const y = T[D];
517
+ s.push(_ + y);
518
518
  }
519
519
  i = v + (i.length > 0 ? " " + i : i);
520
520
  }
@@ -544,14 +544,14 @@ const cl = (e, t) => {
544
544
  return l(i, v), v;
545
545
  };
546
546
  return a = s, (...i) => a(El(...i));
547
- }, zl = [], ue = (e) => {
548
- const t = (o) => o[e] || zl;
547
+ }, Dl = [], ue = (e) => {
548
+ const t = (o) => o[e] || Dl;
549
549
  return t.isThemeGetter = !0, t;
550
- }, Wo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dl = /^\d+\/\d+$/, Ml = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Al = /\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$/, _l = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ll = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ol = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = (e) => Dl.test(e), re = (e) => !!e && !Number.isNaN(Number(e)), We = (e) => !!e && Number.isInteger(Number(e)), Ht = (e) => e.endsWith("%") && re(e.slice(0, -1)), Be = (e) => Ml.test(e), Bl = () => !0, jl = (e) => (
550
+ }, Wo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zl = /^\d+\/\d+$/, Ml = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, _l = /\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$/, Al = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ll = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ol = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = (e) => zl.test(e), re = (e) => !!e && !Number.isNaN(Number(e)), We = (e) => !!e && Number.isInteger(Number(e)), Ht = (e) => e.endsWith("%") && re(e.slice(0, -1)), Be = (e) => Ml.test(e), Bl = () => !0, jl = (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
- Al.test(e) && !_l.test(e)
554
+ _l.test(e) && !Al.test(e)
555
555
  ), Go = () => !1, Nl = (e) => Ll.test(e), Pl = (e) => Ol.test(e), Hl = (e) => !H(e) && !F(e), Fl = (e) => ut(e, Uo, Go), H = (e) => Wo.test(e), Je = (e) => ut(e, Zo, jl), Ft = (e) => ut(e, ql, re), fo = (e) => ut(e, Yo, Go), Vl = (e) => ut(e, Xo, Pl), Tt = (e) => ut(e, Jo, Nl), F = (e) => qo.test(e), pt = (e) => ft(e, Zo), Kl = (e) => ft(e, Gl), vo = (e) => ft(e, Yo), $l = (e) => ft(e, Uo), Wl = (e) => ft(e, Xo), Rt = (e) => ft(e, Jo, !0), ut = (e, t, o) => {
556
556
  const r = Wo.exec(e);
557
557
  return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
@@ -559,7 +559,7 @@ const cl = (e, t) => {
559
559
  const r = qo.exec(e);
560
560
  return r ? r[1] ? t(r[1]) : o : !1;
561
561
  }, Yo = (e) => e === "position" || e === "percentage", Xo = (e) => e === "image" || e === "url", Uo = (e) => e === "length" || e === "size" || e === "bg-size", Zo = (e) => e === "length", ql = (e) => e === "number", Gl = (e) => e === "family-name", Jo = (e) => e === "shadow", Ut = () => {
562
- const e = ue("color"), t = ue("font"), o = ue("text"), r = ue("font-weight"), l = ue("tracking"), a = ue("leading"), s = ue("breakpoint"), n = ue("container"), i = ue("spacing"), u = ue("radius"), v = ue("shadow"), f = ue("inset-shadow"), c = ue("text-shadow"), m = ue("drop-shadow"), h = ue("blur"), g = ue("perspective"), w = ue("aspect"), C = ue("ease"), M = ue("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
562
+ const e = ue("color"), t = ue("font"), o = ue("text"), r = ue("font-weight"), l = ue("tracking"), a = ue("leading"), s = ue("breakpoint"), n = ue("container"), i = ue("spacing"), u = ue("radius"), v = ue("shadow"), f = ue("inset-shadow"), c = ue("text-shadow"), m = ue("drop-shadow"), h = ue("blur"), g = ue("perspective"), w = ue("aspect"), C = ue("ease"), M = ue("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
563
563
  "center",
564
564
  "top",
565
565
  "bottom",
@@ -577,7 +577,7 @@ const cl = (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
- ], T = () => [...x(), F, H], z = () => ["auto", "hidden", "clip", "visible", "scroll"], y = () => ["auto", "contain", "none"], k = () => [F, H, i], D = () => [at, "full", "auto", ...k()], $ = () => [We, "none", "subgrid", F, H], X = () => ["auto", {
580
+ ], T = () => [...x(), F, H], D = () => ["auto", "hidden", "clip", "visible", "scroll"], y = () => ["auto", "contain", "none"], k = () => [F, H, i], z = () => [at, "full", "auto", ...k()], $ = () => [We, "none", "subgrid", F, H], X = () => ["auto", {
581
581
  span: ["full", We, F, H]
582
582
  }, We, F, H], ee = () => [We, "auto", F, H], le = () => ["auto", "min", "max", "fr", F, H], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...k()], G = () => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], b = () => [e, F, H], p = () => [...x(), vo, fo, {
583
583
  position: [F, H]
@@ -585,7 +585,7 @@ const cl = (e, t) => {
585
585
  repeat: ["", "x", "y", "space", "round"]
586
586
  }], R = () => ["auto", "cover", "contain", $l, Fl, {
587
587
  size: [F, H]
588
- }], _ = () => [Ht, pt, Je], L = () => [
588
+ }], A = () => [Ht, pt, Je], L = () => [
589
589
  // Deprecated since Tailwind CSS v4.0.0
590
590
  "",
591
591
  "none",
@@ -653,14 +653,14 @@ const cl = (e, t) => {
653
653
  * @see https://tailwindcss.com/docs/break-after
654
654
  */
655
655
  "break-after": [{
656
- "break-after": A()
656
+ "break-after": _()
657
657
  }],
658
658
  /**
659
659
  * Break Before
660
660
  * @see https://tailwindcss.com/docs/break-before
661
661
  */
662
662
  "break-before": [{
663
- "break-before": A()
663
+ "break-before": _()
664
664
  }],
665
665
  /**
666
666
  * Break Inside
@@ -731,21 +731,21 @@ const cl = (e, t) => {
731
731
  * @see https://tailwindcss.com/docs/overflow
732
732
  */
733
733
  overflow: [{
734
- overflow: z()
734
+ overflow: D()
735
735
  }],
736
736
  /**
737
737
  * Overflow X
738
738
  * @see https://tailwindcss.com/docs/overflow
739
739
  */
740
740
  "overflow-x": [{
741
- "overflow-x": z()
741
+ "overflow-x": D()
742
742
  }],
743
743
  /**
744
744
  * Overflow Y
745
745
  * @see https://tailwindcss.com/docs/overflow
746
746
  */
747
747
  "overflow-y": [{
748
- "overflow-y": z()
748
+ "overflow-y": D()
749
749
  }],
750
750
  /**
751
751
  * Overscroll Behavior
@@ -778,63 +778,63 @@ const cl = (e, t) => {
778
778
  * @see https://tailwindcss.com/docs/top-right-bottom-left
779
779
  */
780
780
  inset: [{
781
- inset: D()
781
+ inset: z()
782
782
  }],
783
783
  /**
784
784
  * Right / Left
785
785
  * @see https://tailwindcss.com/docs/top-right-bottom-left
786
786
  */
787
787
  "inset-x": [{
788
- "inset-x": D()
788
+ "inset-x": z()
789
789
  }],
790
790
  /**
791
791
  * Top / Bottom
792
792
  * @see https://tailwindcss.com/docs/top-right-bottom-left
793
793
  */
794
794
  "inset-y": [{
795
- "inset-y": D()
795
+ "inset-y": z()
796
796
  }],
797
797
  /**
798
798
  * Start
799
799
  * @see https://tailwindcss.com/docs/top-right-bottom-left
800
800
  */
801
801
  start: [{
802
- start: D()
802
+ start: z()
803
803
  }],
804
804
  /**
805
805
  * End
806
806
  * @see https://tailwindcss.com/docs/top-right-bottom-left
807
807
  */
808
808
  end: [{
809
- end: D()
809
+ end: z()
810
810
  }],
811
811
  /**
812
812
  * Top
813
813
  * @see https://tailwindcss.com/docs/top-right-bottom-left
814
814
  */
815
815
  top: [{
816
- top: D()
816
+ top: z()
817
817
  }],
818
818
  /**
819
819
  * Right
820
820
  * @see https://tailwindcss.com/docs/top-right-bottom-left
821
821
  */
822
822
  right: [{
823
- right: D()
823
+ right: z()
824
824
  }],
825
825
  /**
826
826
  * Bottom
827
827
  * @see https://tailwindcss.com/docs/top-right-bottom-left
828
828
  */
829
829
  bottom: [{
830
- bottom: D()
830
+ bottom: z()
831
831
  }],
832
832
  /**
833
833
  * Left
834
834
  * @see https://tailwindcss.com/docs/top-right-bottom-left
835
835
  */
836
836
  left: [{
837
- left: D()
837
+ left: z()
838
838
  }],
839
839
  /**
840
840
  * Visibility
@@ -1593,21 +1593,21 @@ const cl = (e, t) => {
1593
1593
  * @see https://tailwindcss.com/docs/gradient-color-stops
1594
1594
  */
1595
1595
  "gradient-from-pos": [{
1596
- from: _()
1596
+ from: A()
1597
1597
  }],
1598
1598
  /**
1599
1599
  * Gradient Color Stops Via Position
1600
1600
  * @see https://tailwindcss.com/docs/gradient-color-stops
1601
1601
  */
1602
1602
  "gradient-via-pos": [{
1603
- via: _()
1603
+ via: A()
1604
1604
  }],
1605
1605
  /**
1606
1606
  * Gradient Color Stops To Position
1607
1607
  * @see https://tailwindcss.com/docs/gradient-color-stops
1608
1608
  */
1609
1609
  "gradient-to-pos": [{
1610
- to: _()
1610
+ to: A()
1611
1611
  }],
1612
1612
  /**
1613
1613
  * Gradient Color Stops From
@@ -3058,7 +3058,7 @@ var Zl = (e) => Ce(e) ? Ul : Xl({
3058
3058
  ...e.extend
3059
3059
  }
3060
3060
  }), er = (e, t) => {
3061
- const o = _t(e);
3061
+ const o = At(e);
3062
3062
  return !o || !(t?.twMerge ?? !0) ? o : ((!je.cachedTwMerge || je.didTwMergeConfigChange) && (je.didTwMergeConfigChange = !1, je.cachedTwMerge = Zl(je.cachedTwMergeConfig)), je.cachedTwMerge(o) || void 0);
3063
3063
  }, ae = (...e) => er(e, {}), Jl = (...e) => (t) => er(e, t), { createTV: Ql } = il(Jl);
3064
3064
  const en = Ql({
@@ -3286,21 +3286,21 @@ const ln = {
3286
3286
  function c() {
3287
3287
  const y = r.value, k = l.value;
3288
3288
  if (!y || !k) return;
3289
- const D = y.getBoundingClientRect(), $ = k.getBoundingClientRect(), X = window.scrollX, ee = window.scrollY;
3289
+ const z = y.getBoundingClientRect(), $ = k.getBoundingClientRect(), X = window.scrollX, ee = window.scrollY;
3290
3290
  let le = 0, V = 0;
3291
3291
  const N = 8;
3292
3292
  switch (e.placement) {
3293
3293
  case "top":
3294
- le = D.top + ee - $.height - N, V = D.left + X + D.width / 2 - $.width / 2;
3294
+ le = z.top + ee - $.height - N, V = z.left + X + z.width / 2 - $.width / 2;
3295
3295
  break;
3296
3296
  case "bottom":
3297
- le = D.bottom + ee + N, V = D.left + X + D.width / 2 - $.width / 2;
3297
+ le = z.bottom + ee + N, V = z.left + X + z.width / 2 - $.width / 2;
3298
3298
  break;
3299
3299
  case "left":
3300
- le = D.top + ee + D.height / 2 - $.height / 2, V = D.left + X - $.width - N;
3300
+ le = z.top + ee + z.height / 2 - $.height / 2, V = z.left + X - $.width - N;
3301
3301
  break;
3302
3302
  case "right":
3303
- le = D.top + ee + D.height / 2 - $.height / 2, V = D.right + X + N;
3303
+ le = z.top + ee + z.height / 2 - $.height / 2, V = z.right + X + N;
3304
3304
  break;
3305
3305
  }
3306
3306
  v.value = {
@@ -3341,7 +3341,7 @@ const ln = {
3341
3341
  }), Ge(() => {
3342
3342
  w(), g(), f !== null && (cancelAnimationFrame(f), f = null);
3343
3343
  });
3344
- const A = S(() => {
3344
+ const _ = S(() => {
3345
3345
  switch (e.placement) {
3346
3346
  case "top":
3347
3347
  return {
@@ -3472,7 +3472,7 @@ const ln = {
3472
3472
  borderTop: `7px solid ${y}`
3473
3473
  };
3474
3474
  }
3475
- }), z = S(() => e.destroyOnHide ? u.value : !0);
3475
+ }), D = S(() => e.destroyOnHide ? u.value : !0);
3476
3476
  return () => {
3477
3477
  const y = t.title?.() ?? e.title;
3478
3478
  if (y == null)
@@ -3488,20 +3488,20 @@ const ln = {
3488
3488
  } : {
3489
3489
  display: "inline-flex"
3490
3490
  }
3491
- }, [t.default?.()]), D = e.color ? {
3491
+ }, [t.default?.()]), z = e.color ? {
3492
3492
  background: e.color,
3493
3493
  borderColor: e.color
3494
3494
  } : void 0;
3495
3495
  return d(Jt, null, [k, d(Nt, {
3496
3496
  to: "body"
3497
3497
  }, {
3498
- default: () => [d(At, {
3498
+ default: () => [d(_t, {
3499
3499
  enterActiveClass: "vtg-tooltip-enter-active",
3500
3500
  leaveActiveClass: "vtg-tooltip-leave-active",
3501
3501
  enterFromClass: "vtg-tooltip-enter-from",
3502
3502
  leaveToClass: "vtg-tooltip-leave-to"
3503
3503
  }, {
3504
- default: () => [z.value && u.value && d("div", {
3504
+ default: () => [D.value && u.value && d("div", {
3505
3505
  ref: l,
3506
3506
  role: "tooltip",
3507
3507
  onMouseenter: C,
@@ -3515,10 +3515,10 @@ const ln = {
3515
3515
  }
3516
3516
  }, [d("div", {
3517
3517
  class: o.content(),
3518
- style: D
3518
+ style: z
3519
3519
  }, [y, e.arrow && d("div", {
3520
3520
  class: o.arrow(),
3521
- style: A.value
3521
+ style: _.value
3522
3522
  }, [d("div", {
3523
3523
  class: o.arrowOuter(),
3524
3524
  style: x.value
@@ -3856,21 +3856,21 @@ function un(e, t, o) {
3856
3856
  function v() {
3857
3857
  const m = e.value;
3858
3858
  if (!m) return;
3859
- const { clientHeight: h, scrollHeight: g, clientWidth: w, scrollWidth: C, scrollTop: M, scrollLeft: A } = m;
3859
+ const { clientHeight: h, scrollHeight: g, clientWidth: w, scrollWidth: C, scrollTop: M, scrollLeft: _ } = m;
3860
3860
  if (g > h) {
3861
3861
  a.value = !0;
3862
3862
  const x = h, T = Math.max(o.minSize, x * (h / g));
3863
3863
  r.value = T;
3864
- const z = g - h;
3865
- l.value = z > 0 ? M / z * (x - T) : 0;
3864
+ const D = g - h;
3865
+ l.value = D > 0 ? M / D * (x - T) : 0;
3866
3866
  } else
3867
3867
  a.value = !1, r.value = 0, l.value = 0;
3868
3868
  if (C > w) {
3869
3869
  i.value = !0;
3870
3870
  const x = w, T = Math.max(o.minSize, x * (w / C));
3871
3871
  s.value = T;
3872
- const z = C - w;
3873
- n.value = z > 0 ? A / z * (x - T) : 0;
3872
+ const D = C - w;
3873
+ n.value = D > 0 ? _ / D * (x - T) : 0;
3874
3874
  } else
3875
3875
  i.value = !1, s.value = 0, n.value = 0;
3876
3876
  }
@@ -3948,7 +3948,7 @@ const po = /* @__PURE__ */ Q({
3948
3948
  }
3949
3949
  function n(c) {
3950
3950
  if (!r.value || !o.value) return;
3951
- const h = o.value.getBoundingClientRect(), g = e.vertical ? h.height : h.width, C = (e.vertical ? c.clientY : c.clientX) - a, M = g - e.thumbSize, A = Math.max(0, Math.min(C, M)), x = M > 0 ? A / M : 0;
3951
+ const h = o.value.getBoundingClientRect(), g = e.vertical ? h.height : h.width, C = (e.vertical ? c.clientY : c.clientX) - a, M = g - e.thumbSize, _ = Math.max(0, Math.min(C, M)), x = M > 0 ? _ / M : 0;
3952
3952
  t("scroll", {
3953
3953
  ratio: x,
3954
3954
  vertical: e.vertical
@@ -3960,7 +3960,7 @@ const po = /* @__PURE__ */ Q({
3960
3960
  function u(c) {
3961
3961
  if (c.target === o.value) {
3962
3962
  c.preventDefault();
3963
- const h = o.value.getBoundingClientRect(), g = e.vertical ? h.height : h.width, C = (e.vertical ? c.clientY - h.top : c.clientX - h.left) - e.thumbSize / 2, M = g - e.thumbSize, A = Math.max(0, Math.min(C, M)), x = M > 0 ? A / M : 0;
3963
+ const h = o.value.getBoundingClientRect(), g = e.vertical ? h.height : h.width, C = (e.vertical ? c.clientY - h.top : c.clientX - h.left) - e.thumbSize / 2, M = g - e.thumbSize, _ = Math.max(0, Math.min(C, M)), x = M > 0 ? _ / M : 0;
3964
3964
  t("scroll", {
3965
3965
  ratio: x,
3966
3966
  vertical: e.vertical
@@ -4096,14 +4096,14 @@ const Ot = /* @__PURE__ */ Q({
4096
4096
  ratio: x,
4097
4097
  vertical: T
4098
4098
  }) {
4099
- const z = a.value;
4100
- if (z)
4099
+ const D = a.value;
4100
+ if (D)
4101
4101
  if (T) {
4102
- const y = z.scrollHeight - z.clientHeight;
4103
- z.scrollTop = x * y;
4102
+ const y = D.scrollHeight - D.clientHeight;
4103
+ D.scrollTop = x * y;
4104
4104
  } else {
4105
- const y = z.scrollWidth - z.clientWidth;
4106
- z.scrollLeft = x * y;
4105
+ const y = D.scrollWidth - D.clientWidth;
4106
+ D.scrollLeft = x * y;
4107
4107
  }
4108
4108
  }
4109
4109
  function C(x) {
@@ -4112,21 +4112,21 @@ const Ot = /* @__PURE__ */ Q({
4112
4112
  function M(x) {
4113
4113
  a.value && (a.value.scrollTop = x);
4114
4114
  }
4115
- function A(x) {
4115
+ function _(x) {
4116
4116
  a.value && (a.value.scrollLeft = x);
4117
4117
  }
4118
4118
  return r({
4119
4119
  update: h,
4120
4120
  scrollTo: C,
4121
4121
  setScrollTop: M,
4122
- setScrollLeft: A,
4122
+ setScrollLeft: _,
4123
4123
  wrapRef: a
4124
4124
  }), () => {
4125
4125
  const x = {};
4126
4126
  e.height && (x.height = Vt(e.height)), e.maxHeight && (x.maxHeight = Vt(e.maxHeight));
4127
4127
  const T = {};
4128
4128
  e.maxHeight && (T.maxHeight = Vt(e.maxHeight));
4129
- const z = ct(e.tag, {
4129
+ const D = ct(e.tag, {
4130
4130
  ref: s,
4131
4131
  class: [l.view(), e.viewClass],
4132
4132
  style: e.viewStyle
@@ -4145,7 +4145,7 @@ const Ot = /* @__PURE__ */ Q({
4145
4145
  class: [l.wrap(), e.wrapClass, e.native ? "" : "scrollbar-none"],
4146
4146
  style: [T, e.wrapStyle ?? {}],
4147
4147
  onScroll: g
4148
- }, [z]), !e.native && v.value && d(po, {
4148
+ }, [D]), !e.native && v.value && d(po, {
4149
4149
  vertical: !0,
4150
4150
  thumbSize: i.value,
4151
4151
  thumbOffset: u.value,
@@ -4367,18 +4367,18 @@ function wn(e, t, o, r, l, a, s) {
4367
4367
  r,
4368
4368
  l
4369
4369
  );
4370
- function c(M, A) {
4371
- if (i && cancelAnimationFrame(i), f(!1, A)) return;
4370
+ function c(M, _) {
4371
+ if (i && cancelAnimationFrame(i), f(!1, _)) return;
4372
4372
  const x = M;
4373
4373
  if (!x._virtualHandled) x._virtualHandled = !0;
4374
4374
  else return;
4375
- n.value += A, u.value = A, bo || M.preventDefault(), i = requestAnimationFrame(() => {
4375
+ n.value += _, u.value = _, bo || M.preventDefault(), i = requestAnimationFrame(() => {
4376
4376
  const T = v.value ? 10 : 1;
4377
4377
  s(n.value * T, !1), n.value = 0;
4378
4378
  });
4379
4379
  }
4380
- function m(M, A) {
4381
- s(A, !0), bo || M.preventDefault();
4380
+ function m(M, _) {
4381
+ s(_, !0), bo || M.preventDefault();
4382
4382
  }
4383
4383
  const h = O(null);
4384
4384
  let g = null;
@@ -4387,11 +4387,11 @@ function wn(e, t, o, r, l, a, s) {
4387
4387
  g && cancelAnimationFrame(g), g = requestAnimationFrame(() => {
4388
4388
  h.value = null;
4389
4389
  });
4390
- const { deltaX: A, deltaY: x, shiftKey: T } = M;
4391
- let z = A, y = x;
4392
- (h.value === "sx" || !h.value && T && x && !A) && (z = x, y = 0, h.value = "sx");
4393
- const k = Math.abs(z), D = Math.abs(y);
4394
- h.value === null && (h.value = a && k > D ? "x" : "y"), h.value === "y" ? c(M, y) : m(M, z);
4390
+ const { deltaX: _, deltaY: x, shiftKey: T } = M;
4391
+ let D = _, y = x;
4392
+ (h.value === "sx" || !h.value && T && x && !_) && (D = x, y = 0, h.value = "sx");
4393
+ const k = Math.abs(D), z = Math.abs(y);
4394
+ h.value === null && (h.value = a && k > z ? "x" : "y"), h.value === "y" ? c(M, y) : m(M, D);
4395
4395
  }
4396
4396
  function C(M) {
4397
4397
  e.value && (v.value = M.detail === u.value);
@@ -4462,7 +4462,7 @@ function kn(e, t, o) {
4462
4462
  l.value.forEach((g, w) => {
4463
4463
  const C = yo(g);
4464
4464
  if (C && C.offsetParent) {
4465
- const { offsetHeight: M } = C, { marginTop: A, marginBottom: x } = getComputedStyle(C), T = go(A), z = go(x), y = M + T + z;
4465
+ const { offsetHeight: M } = C, { marginTop: _, marginBottom: x } = getComputedStyle(C), T = go(_), D = go(x), y = M + T + D;
4466
4466
  a.get(w) !== y && (a.set(w, y), h = !0);
4467
4467
  }
4468
4468
  }), h && (r.value += 1);
@@ -4499,14 +4499,14 @@ function Tn(e, t, o) {
4499
4499
  const u = (g) => {
4500
4500
  if (r.value) {
4501
4501
  const w = Math.ceil(g.touches[0].pageX), C = Math.ceil(g.touches[0].pageY);
4502
- let M = l.value - w, A = a.value - C;
4503
- const x = Math.abs(M) > Math.abs(A);
4502
+ let M = l.value - w, _ = a.value - C;
4503
+ const x = Math.abs(M) > Math.abs(_);
4504
4504
  x ? l.value = w : a.value = C;
4505
- const T = o(x, x ? M : A, !1, g);
4505
+ const T = o(x, x ? M : _, !1, g);
4506
4506
  T && g.preventDefault(), n && clearInterval(n), T && (n = setInterval(() => {
4507
- x ? M *= xo : A *= xo;
4508
- const z = Math.floor(x ? M : A);
4509
- (!o(x, z, !0) || Math.abs(z) <= 0.1) && n && clearInterval(n);
4507
+ x ? M *= xo : _ *= xo;
4508
+ const D = Math.floor(x ? M : _);
4509
+ (!o(x, D, !0) || Math.abs(D) <= 0.1) && n && clearInterval(n);
4510
4510
  }, 16));
4511
4511
  }
4512
4512
  }, v = () => {
@@ -4565,7 +4565,7 @@ function In(e, t, o) {
4565
4565
  );
4566
4566
  }
4567
4567
  const En = 10;
4568
- function zn(e, t, o, r, l, a, s, n) {
4568
+ function Dn(e, t, o, r, l, a, s, n) {
4569
4569
  const i = Ie(null), u = () => {
4570
4570
  let f = 0;
4571
4571
  for (let c = 0; c < t.value.length; c += 1) {
@@ -4586,34 +4586,34 @@ function zn(e, t, o, r, l, a, s, n) {
4586
4586
  const { targetAlign: f, originAlign: c, index: m, offset: h } = i.value, g = e.value.clientHeight;
4587
4587
  let w = !1, C = f ?? null, M = null;
4588
4588
  if (g) {
4589
- const A = f || c;
4590
- let x = 0, T = 0, z = 0;
4589
+ const _ = f || c;
4590
+ let x = 0, T = 0, D = 0;
4591
4591
  const y = Math.min(t.value.length - 1, m);
4592
- for (let D = 0; D <= y; D += 1) {
4593
- const $ = l(t.value[D]);
4592
+ for (let z = 0; z <= y; z += 1) {
4593
+ const $ = l(t.value[z]);
4594
4594
  T = x;
4595
4595
  const X = o.get($);
4596
- z = T + (X === void 0 ? r.value ?? 0 : X), x = z;
4596
+ D = T + (X === void 0 ? r.value ?? 0 : X), x = D;
4597
4597
  }
4598
- let k = A === "top" ? h : g - h;
4599
- for (let D = y; D >= 0; D -= 1) {
4600
- const $ = l(t.value[D]), X = o.get($);
4598
+ let k = _ === "top" ? h : g - h;
4599
+ for (let z = y; z >= 0; z -= 1) {
4600
+ const $ = l(t.value[z]), X = o.get($);
4601
4601
  if (X === void 0) {
4602
4602
  w = !0;
4603
4603
  break;
4604
4604
  }
4605
4605
  if (k -= X, k <= 0) break;
4606
4606
  }
4607
- switch (A) {
4607
+ switch (_) {
4608
4608
  case "top":
4609
4609
  M = T - h;
4610
4610
  break;
4611
4611
  case "bottom":
4612
- M = z - g + h;
4612
+ M = D - g + h;
4613
4613
  break;
4614
4614
  default: {
4615
- const { scrollTop: D } = e.value, $ = D + g;
4616
- T < D ? C = "top" : z > $ && (C = "bottom");
4615
+ const { scrollTop: z } = e.value, $ = z + g;
4616
+ T < z ? C = "top" : D > $ && (C = "bottom");
4617
4617
  }
4618
4618
  }
4619
4619
  M !== null && s(M), M !== i.value.lastTop && (w = !0);
@@ -4734,40 +4734,40 @@ const Co = /* @__PURE__ */ Q({
4734
4734
  startTop: a.value
4735
4735
  };
4736
4736
  });
4737
- const C = (A) => {
4738
- A.stopPropagation(), A.preventDefault();
4739
- }, M = (A) => {
4740
- o.value = !0, l.value = So(A, e.horizontal || !1), a.value = w.value.top, e.onStartMove?.(), A.stopPropagation(), A.preventDefault();
4737
+ const C = (_) => {
4738
+ _.stopPropagation(), _.preventDefault();
4739
+ }, M = (_) => {
4740
+ o.value = !0, l.value = So(_, e.horizontal || !1), a.value = w.value.top, e.onStartMove?.(), _.stopPropagation(), _.preventDefault();
4741
4741
  };
4742
4742
  return et(() => {
4743
- const A = (z) => {
4744
- z.preventDefault();
4743
+ const _ = (D) => {
4744
+ D.preventDefault();
4745
4745
  }, x = n.value, T = i.value;
4746
- x && T && (x.addEventListener("touchstart", A, {
4746
+ x && T && (x.addEventListener("touchstart", _, {
4747
4747
  passive: !1
4748
4748
  }), T.addEventListener("touchstart", M, {
4749
4749
  passive: !1
4750
4750
  }), St(() => {
4751
- x.removeEventListener("touchstart", A), T.removeEventListener("touchstart", M);
4751
+ x.removeEventListener("touchstart", _), T.removeEventListener("touchstart", M);
4752
4752
  }));
4753
- }), ne(o, (A, x, T) => {
4754
- if (A) {
4755
- let z = null;
4756
- const y = (D) => {
4753
+ }), ne(o, (_, x, T) => {
4754
+ if (_) {
4755
+ let D = null;
4756
+ const y = (z) => {
4757
4757
  const {
4758
4758
  dragging: $,
4759
4759
  pageY: X,
4760
4760
  startTop: ee
4761
4761
  } = w.value;
4762
- z !== null && cancelAnimationFrame(z);
4762
+ D !== null && cancelAnimationFrame(D);
4763
4763
  const le = n.value.getBoundingClientRect(), V = e.containerSize / (e.horizontal ? le.width : le.height);
4764
4764
  if ($) {
4765
- const N = (So(D, e.horizontal || !1) - (X || 0)) * V;
4765
+ const N = (So(z, e.horizontal || !1) - (X || 0)) * V;
4766
4766
  let K = ee || 0;
4767
4767
  !s.value && e.horizontal ? K -= N : K += N;
4768
4768
  const G = m.value, b = h.value, p = b ? K / b : 0;
4769
4769
  let E = Math.ceil(p * G);
4770
- E = Math.max(E, 0), E = Math.min(E, G), z = requestAnimationFrame(() => {
4770
+ E = Math.max(E, 0), E = Math.min(E, G), D = requestAnimationFrame(() => {
4771
4771
  e.onScroll?.(E, e.horizontal);
4772
4772
  });
4773
4773
  }
@@ -4783,10 +4783,10 @@ const Co = /* @__PURE__ */ Q({
4783
4783
  }), window.addEventListener("touchend", k, {
4784
4784
  passive: !0
4785
4785
  }), T(() => {
4786
- window.removeEventListener("mousemove", y), window.removeEventListener("touchmove", y), window.removeEventListener("mouseup", k), window.removeEventListener("touchend", k), z !== null && cancelAnimationFrame(z);
4786
+ window.removeEventListener("mousemove", y), window.removeEventListener("touchmove", y), window.removeEventListener("mouseup", k), window.removeEventListener("touchend", k), D !== null && cancelAnimationFrame(D);
4787
4787
  });
4788
4788
  }
4789
- }), ne(() => e.scrollOffset, (A, x, T) => {
4789
+ }), ne(() => e.scrollOffset, (_, x, T) => {
4790
4790
  f(), T(() => {
4791
4791
  v && clearTimeout(v);
4792
4792
  });
@@ -4794,9 +4794,9 @@ const Co = /* @__PURE__ */ Q({
4794
4794
  delayHidden: f
4795
4795
  }), () => {
4796
4796
  const {
4797
- prefixCls: A,
4797
+ prefixCls: _,
4798
4798
  horizontal: x
4799
- } = e, T = `${A}-scrollbar`, z = r.value || o.value, y = {
4799
+ } = e, T = `${_}-scrollbar`, D = r.value || o.value, y = {
4800
4800
  position: "absolute",
4801
4801
  opacity: c.value ? 1 : 0,
4802
4802
  pointerEvents: c.value ? void 0 : "none",
@@ -4804,7 +4804,7 @@ const Co = /* @__PURE__ */ Q({
4804
4804
  }, k = {
4805
4805
  position: "absolute",
4806
4806
  borderRadius: "var(--vtg-scrollbar-thumb-radius, 3px)",
4807
- background: z ? "var(--vtg-scrollbar-thumb-hover-bg, rgb(0 0 0 / 25%))" : "var(--vtg-scrollbar-thumb-bg, rgb(0 0 0 / 15%))",
4807
+ background: D ? "var(--vtg-scrollbar-thumb-hover-bg, rgb(0 0 0 / 25%))" : "var(--vtg-scrollbar-thumb-bg, rgb(0 0 0 / 15%))",
4808
4808
  cursor: "pointer",
4809
4809
  userSelect: "none",
4810
4810
  transition: "background-color 200ms"
@@ -4859,22 +4859,22 @@ const Co = /* @__PURE__ */ Q({
4859
4859
  })]);
4860
4860
  };
4861
4861
  }
4862
- }), Dn = 20;
4862
+ }), zn = 20;
4863
4863
  function ko(e = 0, t = 0) {
4864
4864
  let o = e / t * e;
4865
- return isNaN(o) && (o = 0), o = Math.max(o, Dn), Math.floor(o);
4865
+ return isNaN(o) && (o = 0), o = Math.max(o, zn), Math.floor(o);
4866
4866
  }
4867
4867
  const To = [], Mn = {
4868
4868
  overflowY: "auto",
4869
4869
  overflowAnchor: "none"
4870
4870
  };
4871
- function An(e) {
4871
+ function _n(e) {
4872
4872
  const t = {};
4873
4873
  for (const o of Object.keys(e))
4874
4874
  o.startsWith("on") || (t[o] = e[o]);
4875
4875
  return t;
4876
4876
  }
4877
- const _n = /* @__PURE__ */ Q({
4877
+ const An = /* @__PURE__ */ Q({
4878
4878
  name: "VirtualList",
4879
4879
  props: {
4880
4880
  prefixCls: {
@@ -4938,7 +4938,7 @@ const _n = /* @__PURE__ */ Q({
4938
4938
  const c = S(() => !!(e.virtual !== !1 && e.height && e.itemHeight)), m = S(() => {
4939
4939
  const I = f.value;
4940
4940
  return c.value && I && (e.itemHeight * I.length > e.height || !!e.scrollWidth);
4941
- }), h = O(), g = O(), w = O(), C = O(!1), M = Ie(), A = Ie(), x = O(0), T = O(0), z = O(!1), y = O(0), k = O(0), D = O(e.scrollWidth || 0), $ = O(0), X = O(0), ee = O(0), le = O(void 0);
4941
+ }), h = O(), g = O(), w = O(), C = O(!1), M = Ie(), _ = Ie(), x = O(0), T = O(0), D = O(!1), y = O(0), k = O(0), z = O(e.scrollWidth || 0), $ = O(0), X = O(0), ee = O(0), le = O(void 0);
4942
4942
  function V(I) {
4943
4943
  let P;
4944
4944
  typeof I == "function" ? P = I(x.value) : P = I;
@@ -4963,15 +4963,15 @@ const _n = /* @__PURE__ */ Q({
4963
4963
  return;
4964
4964
  }
4965
4965
  if (Mt(u.id) === 0) {
4966
- const xe = I, ze = P, De = Math.max(0, Math.floor(x.value / xe)), Fe = De * xe;
4967
- let oe = De + Math.ceil(ze / xe);
4968
- oe = Math.min(oe + 1, J - 1), $.value = J * xe, X.value = De, ee.value = oe, le.value = Fe;
4966
+ const xe = I, De = P, ze = Math.max(0, Math.floor(x.value / xe)), Fe = ze * xe;
4967
+ let oe = ze + Math.ceil(De / xe);
4968
+ oe = Math.min(oe + 1, J - 1), $.value = J * xe, X.value = ze, ee.value = oe, le.value = Fe;
4969
4969
  return;
4970
4970
  }
4971
4971
  let Y = 0, ge, ke, ce;
4972
4972
  const He = Xr(f.value), ot = x.value;
4973
4973
  for (let xe = 0; xe < J; xe += 1) {
4974
- const ze = He[xe], De = s(ze), Fe = u.get(De), oe = Y + (Fe === void 0 ? I : Fe);
4974
+ const De = He[xe], ze = s(De), Fe = u.get(ze), oe = Y + (Fe === void 0 ? I : Fe);
4975
4975
  oe >= ot && ge === void 0 && (ge = xe, ke = Y), oe > ot + P && ce === void 0 && (ce = xe), Y = oe;
4976
4976
  }
4977
4977
  ge === void 0 && (ge = 0, ke = 0, ce = Math.ceil(P / I)), ce === void 0 && (ce = He.length - 1), ce = Math.min(ce + 1, He.length - 1), $.value = Y, X.value = ge, ee.value = ce, le.value = ke;
@@ -5005,13 +5005,13 @@ const _n = /* @__PURE__ */ Q({
5005
5005
  N.value = {
5006
5006
  width: Y.offsetWidth,
5007
5007
  height: Y.offsetHeight
5008
- }, D.value = e.scrollWidth ?? Y.offsetWidth;
5008
+ }, z.value = e.scrollWidth ?? Y.offsetWidth;
5009
5009
  }
5010
5010
  })), K.observe(I)));
5011
5011
  }, p = S(() => e.direction === "rtl"), E = () => ({
5012
5012
  x: p.value ? -T.value : T.value,
5013
5013
  y: x.value
5014
- }), R = O(E()), _ = (I) => {
5014
+ }), R = O(E()), A = (I) => {
5015
5015
  if (e.onVirtualScroll) {
5016
5016
  const P = {
5017
5017
  ...E(),
@@ -5019,12 +5019,12 @@ const _n = /* @__PURE__ */ Q({
5019
5019
  };
5020
5020
  (R.value.x !== P.x || R.value.y !== P.y) && (e.onVirtualScroll(P), R.value = P);
5021
5021
  }
5022
- }, L = S(() => Math.max(0, (D.value || 0) - N.value.width)), q = S(() => x.value === 0), W = S(() => x.value + e.height >= $.value), Z = S(() => T.value === 0), te = S(() => T.value >= L.value), se = (I) => Math.max(0, Math.min(I, L.value)), be = () => {
5023
- M.value?.delayHidden(), A.value?.delayHidden();
5022
+ }, L = S(() => Math.max(0, (z.value || 0) - N.value.width)), q = S(() => x.value === 0), W = S(() => x.value + e.height >= $.value), Z = S(() => T.value === 0), te = S(() => T.value >= L.value), se = (I) => Math.max(0, Math.min(I, L.value)), be = () => {
5023
+ M.value?.delayHidden(), _.value?.delayHidden();
5024
5024
  }, [ie] = wn(m, q, W, Z, te, L.value > 0, (I, P) => {
5025
5025
  if (P) {
5026
5026
  const J = se(p.value ? T.value - I : T.value + I);
5027
- T.value = J, _({
5027
+ T.value = J, A({
5028
5028
  x: p.value ? -J : J
5029
5029
  });
5030
5030
  } else
@@ -5033,7 +5033,7 @@ const _n = /* @__PURE__ */ Q({
5033
5033
  Tn(m, h, (I, P) => {
5034
5034
  if (I) {
5035
5035
  const J = se(p.value ? T.value - P : T.value + P);
5036
- return T.value = J, _({
5036
+ return T.value = J, A({
5037
5037
  x: p.value ? -J : J
5038
5038
  }), !0;
5039
5039
  } else
@@ -5042,32 +5042,32 @@ const _n = /* @__PURE__ */ Q({
5042
5042
  V((P) => P + I);
5043
5043
  });
5044
5044
  const he = (I, P) => {
5045
- P ? (T.value = I, _({
5045
+ P ? (T.value = I, A({
5046
5046
  x: p.value ? -I : I
5047
5047
  })) : V(I);
5048
5048
  }, de = () => {
5049
- z.value = !0;
5049
+ D.value = !0;
5050
5050
  }, Ee = () => {
5051
- z.value = !1;
5051
+ D.value = !1;
5052
5052
  };
5053
5053
  yn(f, s), ne([() => e.height, $, m, () => N.value.height], () => {
5054
5054
  m.value && e.height && $.value && (y.value = ko(N.value.height, $.value));
5055
5055
  }, {
5056
5056
  immediate: !0
5057
- }), ne([() => N.value.width, D], () => {
5058
- m.value && D.value && (k.value = ko(N.value.width, D.value));
5057
+ }), ne([() => N.value.width, z], () => {
5058
+ m.value && z.value && (k.value = ko(N.value.width, z.value));
5059
5059
  }, {
5060
5060
  immediate: !0
5061
5061
  }), ne(() => e.scrollWidth, (I) => {
5062
- D.value = I ?? N.value.width, T.value = se(T.value);
5062
+ z.value = I ?? N.value.width, T.value = se(T.value);
5063
5063
  }, {
5064
5064
  immediate: !0
5065
5065
  });
5066
5066
  function Ne(I) {
5067
5067
  const P = I.currentTarget.scrollTop;
5068
- !c.value || !m.value ? x.value = P : P !== x.value && V(P), e.onScroll?.(I), _();
5068
+ !c.value || !m.value ? x.value = P : P !== x.value && V(P), e.onScroll?.(I), A();
5069
5069
  }
5070
- const [Pe, Ye] = zn(h, f, u, l, s, () => i(!0), (I) => {
5070
+ const [Pe, Ye] = Dn(h, f, u, l, s, () => i(!0), (I) => {
5071
5071
  const P = Ye(), J = Math.max($.value, P) - e.height, Y = Math.max(0, Math.min(I, J || 0));
5072
5072
  h.value && (h.value.scrollTop = Y), x.value = Y;
5073
5073
  }, be);
@@ -5089,7 +5089,7 @@ const _n = /* @__PURE__ */ Q({
5089
5089
  }, {
5090
5090
  flush: "post"
5091
5091
  });
5092
- const Xe = Sn(f, s, u, l), j = bn(f, X, ee, D, T, n, (I, P, J) => r.default?.({
5092
+ const Xe = Sn(f, s, u, l), j = bn(f, X, ee, z, T, n, (I, P, J) => r.default?.({
5093
5093
  item: I,
5094
5094
  index: P,
5095
5095
  ...J
@@ -5098,7 +5098,7 @@ const _n = /* @__PURE__ */ Q({
5098
5098
  });
5099
5099
  return () => {
5100
5100
  const I = {};
5101
- e.height && (I[e.fullHeight ? "height" : "maxHeight"] = `${e.height}px`, Object.assign(I, Mn), m.value && (I.overflowY = "hidden", L.value > 0 && (I.overflowX = "hidden"), z.value && (I.pointerEvents = "none")));
5101
+ e.height && (I[e.fullHeight ? "height" : "maxHeight"] = `${e.height}px`, Object.assign(I, Mn), m.value && (I.overflowY = "hidden", L.value > 0 && (I.overflowX = "hidden"), D.value && (I.pointerEvents = "none")));
5102
5102
  const P = e.extraRender?.({
5103
5103
  start: X.value,
5104
5104
  end: ee.value,
@@ -5110,7 +5110,7 @@ const _n = /* @__PURE__ */ Q({
5110
5110
  }), J = e.component;
5111
5111
  return d("div", {
5112
5112
  ref: w,
5113
- ...An(o),
5113
+ ..._n(o),
5114
5114
  style: {
5115
5115
  position: "relative",
5116
5116
  ...o.style
@@ -5140,7 +5140,7 @@ const _n = /* @__PURE__ */ Q({
5140
5140
  height: $.value,
5141
5141
  offsetX: T.value,
5142
5142
  offsetY: le.value,
5143
- scrollWidth: D.value,
5143
+ scrollWidth: z.value,
5144
5144
  onInnerResize: i,
5145
5145
  ref: g,
5146
5146
  innerProps: e.innerProps,
@@ -5164,11 +5164,11 @@ const _n = /* @__PURE__ */ Q({
5164
5164
  showScrollBar: e.showScrollBar,
5165
5165
  style: e.styles?.verticalScrollBar,
5166
5166
  thumbStyle: e.styles?.verticalScrollBarThumb
5167
- }), m.value && D.value > N.value.width && d(Co, {
5168
- ref: A,
5167
+ }), m.value && z.value > N.value.width && d(Co, {
5168
+ ref: _,
5169
5169
  prefixCls: e.prefixCls,
5170
5170
  scrollOffset: T.value,
5171
- scrollRange: D.value,
5171
+ scrollRange: z.value,
5172
5172
  rtl: p.value,
5173
5173
  onScroll: he,
5174
5174
  onStartMove: de,
@@ -5190,7 +5190,7 @@ const _n = /* @__PURE__ */ Q({
5190
5190
  }, rr = {
5191
5191
  slots: {
5192
5192
  root: [
5193
- "relative w-full",
5193
+ "relative w-full min-w-0",
5194
5194
  "font-[family-name:var(--vtg-table-font-family)]",
5195
5195
  "text-[length:var(--vtg-table-font-size)]",
5196
5196
  "leading-[var(--vtg-table-line-height)]"
@@ -5255,6 +5255,8 @@ const _n = /* @__PURE__ */ Q({
5255
5255
  filterDropdownList: "p-1 m-0 list-none min-w-[120px]",
5256
5256
  filterDropdownItem: "flex items-center cursor-pointer",
5257
5257
  filterDropdownItemSelected: "bg-[color:var(--color-control-item-active-bg)] hover:bg-[color:var(--color-control-item-active-hover-bg)]",
5258
+ // antdv 单选与多选选中态一致,无需独立样式
5259
+ filterDropdownItemSelectedSingle: "",
5258
5260
  filterDropdownItemHover: "hover:bg-[color:var(--color-control-item-hover-bg)]",
5259
5261
  // 树形筛选 switcher 图标
5260
5262
  filterDropdownSwitcher: "inline-flex items-center justify-center w-6 h-6 cursor-pointer text-[10px] text-[color:var(--color-on-surface)] transition-transform duration-200",
@@ -5271,6 +5273,9 @@ const _n = /* @__PURE__ */ Q({
5271
5273
  filterDropdownTreeItemMatched: "font-medium",
5272
5274
  filterDropdownTreeCheckAll: "flex items-center w-full mb-1 ms-1",
5273
5275
  filterDropdownActions: "flex items-center justify-between gap-2 px-2 py-2 border-t border-[color:var(--color-default)]",
5276
+ // antdv 底部按钮使用默认 Button 样式,无需额外覆盖
5277
+ filterDropdownResetButton: "",
5278
+ filterDropdownConfirmButton: "",
5274
5279
  filterDropdownSearch: "p-2 border-b border-[color:var(--color-default)]",
5275
5280
  filterDropdownSearchField: [
5276
5281
  "flex items-center gap-1 px-[11px] h-[32px] min-w-[140px]",
@@ -5724,7 +5729,7 @@ const _n = /* @__PURE__ */ Q({
5724
5729
  }, On = {
5725
5730
  slots: {
5726
5731
  root: [
5727
- "relative w-full",
5732
+ "relative w-full min-w-0",
5728
5733
  "font-[family-name:var(--vtg-table-font-family)]",
5729
5734
  "text-[length:var(--vtg-table-font-size)]",
5730
5735
  "leading-[var(--vtg-table-line-height)]"
@@ -5778,32 +5783,48 @@ const _n = /* @__PURE__ */ Q({
5778
5783
  filterIconWrapper: "shrink-0 flex items-center",
5779
5784
  filterIcon: "inline-flex items-center justify-center cursor-pointer transition-colors text-sm px-1 self-stretch",
5780
5785
  // ---- 筛选下拉相关 ----
5786
+ // 与 element-plus 官方 .el-table-filter 1:1 对齐:
5787
+ // 2px 圆角、border-color-lighter、--el-box-shadow-light 等价的浅阴影
5781
5788
  filterDropdown: [
5782
- "rounded bg-[color:var(--color-surface)] shadow-lg border border-[color:var(--color-default)]",
5789
+ "rounded-[2px] bg-[color:var(--color-surface)]",
5790
+ "border border-[color:var(--vtg-border-color-lighter,var(--color-default))]",
5791
+ "shadow-[0_0_12px_rgba(0,0,0,0.12)]",
5783
5792
  "font-[family-name:var(--vtg-table-font-family)]",
5784
5793
  "text-[length:var(--vtg-table-font-size)] leading-[var(--vtg-table-line-height)]",
5785
5794
  "text-[color:var(--vtg-table-text-color)]"
5786
5795
  ].join(" "),
5787
- filterDropdownList: "p-1.5 m-0 list-none min-w-[120px]",
5788
- filterDropdownItem: "flex items-center cursor-pointer",
5789
- filterDropdownItemSelected: "bg-[color:var(--color-control-item-active-bg)] hover:bg-[color:var(--color-control-item-active-hover-bg)] text-[color:var(--color-primary)] font-medium",
5790
- filterDropdownItemHover: "hover:bg-[color:var(--color-control-item-hover-bg)]",
5796
+ // .el-table-filter__list: padding 5px 0; min-width 100px
5797
+ filterDropdownList: "py-[5px] px-0 m-0 list-none min-w-[100px]",
5798
+ // li 自身只控制指针;hover/selected/padding 全在 contentWrapper
5799
+ filterDropdownItem: "cursor-pointer",
5800
+ // 多选选中(默认 selected 槽):仅 checkbox label 变 primary 色,无背景;
5801
+ // 通过 [--color-on-surface:...] 重定义子 span 颜色(FilterDropdown.tsx 内 span 使用 text-[color:var(--color-on-surface)])
5802
+ filterDropdownItemSelected: "[--color-on-surface:var(--color-primary)] font-medium hover:bg-[color:var(--color-control-item-hover-bg)]",
5803
+ // 单选选中(element-plus highlight 模式):primary 底 + 白字 → 复用 var 重定义
5804
+ filterDropdownItemSelectedSingle: "bg-[color:var(--color-primary)] [--color-on-surface:#ffffff] hover:bg-[color:var(--color-primary)]",
5805
+ // hover:浅蓝底 + primary 文字(仅未选中态生效,与 element-plus 一致)
5806
+ filterDropdownItemHover: "hover:bg-[color:var(--color-control-item-hover-bg)] hover:[--color-on-surface:var(--color-primary)]",
5791
5807
  // 树形筛选 switcher 图标
5792
5808
  filterDropdownSwitcher: "inline-flex items-center justify-center w-6 h-6 cursor-pointer text-xs text-[color:var(--color-muted)] transition-transform duration-200",
5793
5809
  filterDropdownSwitcherExpanded: "rotate-0",
5794
5810
  filterDropdownSwitcherCollapsed: "-rotate-90",
5795
5811
  filterDropdownSwitcherNoop: "cursor-default invisible",
5796
- // 内容包裹层(checkbox + 文字),hover/selected 仅在此
5797
- filterDropdownContentWrapper: "flex items-center gap-2 px-3 py-1.5 rounded-sm flex-1 min-w-0",
5798
- filterDropdownTreeWrapper: "p-1.5",
5812
+ // 内容包裹层(checkbox + 文字),整行响应 hover/active;line-height 36px + padding 0 10px = 整行点击区
5813
+ filterDropdownContentWrapper: "flex items-center gap-2 leading-[36px] px-[10px] flex-1 min-w-0",
5814
+ filterDropdownTreeWrapper: "py-[5px]",
5799
5815
  filterDropdownTreeList: "m-0 p-0 list-none [--vtg-table-filter-tree-indent-size:24px]",
5800
5816
  filterDropdownTreeItem: "flex items-center cursor-pointer",
5801
- filterDropdownTreeContentWrapper: "flex items-center gap-2 px-3 py-1.5 rounded-sm flex-1 min-w-0",
5802
- filterDropdownTreeItemSelected: "bg-[color:var(--color-control-item-active-bg)] hover:bg-[color:var(--color-control-item-active-hover-bg)] text-[color:var(--color-primary)] font-medium",
5803
- filterDropdownTreeItemMatched: "font-medium text-[color:var(--color-primary)]",
5804
- filterDropdownTreeCheckAll: "flex items-center cursor-pointer",
5805
- filterDropdownActions: "flex items-center justify-between gap-2 px-2 py-2 border-t border-[color:var(--color-default)]",
5806
- filterDropdownSearch: "px-2 pt-2 pb-1",
5817
+ filterDropdownTreeContentWrapper: "flex items-center gap-2 leading-[36px] px-[10px] flex-1 min-w-0",
5818
+ // 树形多选:与 menu 多选同款(primary 文字、无 bg)
5819
+ filterDropdownTreeItemSelected: "[--color-on-surface:var(--color-primary)] font-medium hover:bg-[color:var(--color-control-item-hover-bg)]",
5820
+ filterDropdownTreeItemMatched: "font-medium",
5821
+ filterDropdownTreeCheckAll: "flex items-center cursor-pointer px-[10px] leading-[36px]",
5822
+ // .el-table-filter__bottom: padding 8px + border-top;按钮顺序 Confirm 在左、Reset 在右 → flex-row-reverse
5823
+ filterDropdownActions: "flex flex-row-reverse items-center justify-end gap-3 px-2 py-2 border-t border-[color:var(--vtg-border-color-lighter,var(--color-default))]",
5824
+ // 底部按钮:覆盖 Button 的 type='primary'/'link' 视觉,降级为 element-plus 的纯文本风格(12px / 无背景边框 / hover→primary)
5825
+ filterDropdownConfirmButton: "bg-transparent border-0 shadow-none text-[color:var(--vtg-table-text-color)] hover:bg-transparent hover:text-[color:var(--color-primary)] active:bg-transparent text-[12px] px-[3px] h-auto leading-none",
5826
+ filterDropdownResetButton: "bg-transparent border-0 shadow-none text-[color:var(--vtg-table-text-color)] hover:bg-transparent hover:text-[color:var(--color-primary)] active:bg-transparent text-[12px] px-[3px] h-auto leading-none disabled:text-[color:var(--color-text-disabled,#a8abb2)] disabled:cursor-not-allowed",
5827
+ filterDropdownSearch: "px-[10px] pt-2 pb-1",
5807
5828
  filterDropdownSearchField: "flex items-center gap-2 rounded-[var(--vtg-input-border-radius)] border border-[color:var(--color-default)] bg-[color:var(--color-surface)] px-2",
5808
5829
  filterDropdownSearchIcon: "inline-flex shrink-0 items-center justify-center text-[12px] text-[color:var(--color-muted)]",
5809
5830
  filterDropdownSearchInput: "min-w-0 flex-1 border-0 bg-transparent px-0 shadow-none focus:border-transparent placeholder:text-[color:var(--color-muted)]",
@@ -5947,7 +5968,8 @@ const _n = /* @__PURE__ */ Q({
5947
5968
  searchPlaceholder: "搜索筛选项",
5948
5969
  emptyText: "暂无匹配数据",
5949
5970
  resetText: "重置",
5950
- confirmText: "确定",
5971
+ // 与 element-plus 官方 zh-cn locale 对齐:el.table.confirmFilter = '筛选'
5972
+ confirmText: "筛选",
5951
5973
  selectAllText: "全选"
5952
5974
  },
5953
5975
  empty: {
@@ -5972,7 +5994,7 @@ const _n = /* @__PURE__ */ Q({
5972
5994
  searchPlaceholder: "Search filters",
5973
5995
  emptyText: "No matching data",
5974
5996
  resetText: "Reset",
5975
- confirmText: "Confirm",
5997
+ confirmText: "Filter",
5976
5998
  selectAllText: "Select all items"
5977
5999
  },
5978
6000
  empty: {
@@ -6338,7 +6360,7 @@ function Bt(e, t) {
6338
6360
  }
6339
6361
  return r;
6340
6362
  }
6341
- function zo(e) {
6363
+ function Do(e) {
6342
6364
  const t = S(() => ur(e())), o = S(() => Jn(e()));
6343
6365
  return {
6344
6366
  leafColumns: t,
@@ -6353,7 +6375,7 @@ function Kt(e) {
6353
6375
  const t = fr(e.sorter)?.multiple;
6354
6376
  return typeof t == "number" && Number.isFinite(t) ? t : !1;
6355
6377
  }
6356
- function Do(e) {
6378
+ function zo(e) {
6357
6379
  return {
6358
6380
  column: e.column,
6359
6381
  columnKey: e.columnKey,
@@ -6385,9 +6407,9 @@ function ra(e) {
6385
6407
  const x = /* @__PURE__ */ new Set();
6386
6408
  t().forEach((T) => {
6387
6409
  if (!T.sorter) return;
6388
- const z = me(T);
6389
- if (z === void 0) return;
6390
- const y = String(z);
6410
+ const D = me(T);
6411
+ if (D === void 0) return;
6412
+ const y = String(D);
6391
6413
  x.add(y), T.sortOrder === void 0 && (a.has(y) || (a.add(y), T.defaultSortOrder && (l[y] = T.defaultSortOrder)));
6392
6414
  }), Object.keys(l).forEach((T) => {
6393
6415
  x.has(T) || delete l[T];
@@ -6408,16 +6430,16 @@ function ra(e) {
6408
6430
  if (!y.sorter) return;
6409
6431
  const k = me(y);
6410
6432
  if (k === void 0) return;
6411
- const D = x && String(k) === String(x.columnKey) ? x.order : i(y);
6412
- D && T.push({
6433
+ const z = x && String(k) === String(x.columnKey) ? x.order : i(y);
6434
+ z && T.push({
6413
6435
  columnKey: k,
6414
- order: D,
6436
+ order: z,
6415
6437
  column: y,
6416
6438
  multiplePriority: Kt(y)
6417
6439
  });
6418
6440
  });
6419
- const z = T.filter((y) => y.multiplePriority === !1);
6420
- return z.length > 0 ? [z[z.length - 1]] : T.sort(oa);
6441
+ const D = T.filter((y) => y.multiplePriority === !1);
6442
+ return D.length > 0 ? [D[D.length - 1]] : T.sort(oa);
6421
6443
  }
6422
6444
  function v(x) {
6423
6445
  return x.length === 0 ? {
@@ -6425,7 +6447,7 @@ function ra(e) {
6425
6447
  columnKey: void 0,
6426
6448
  order: null,
6427
6449
  field: void 0
6428
- } : x.length === 1 ? Do(x[0]) : x.map(Do);
6450
+ } : x.length === 1 ? zo(x[0]) : x.map(zo);
6429
6451
  }
6430
6452
  function f(x) {
6431
6453
  return s(), i(x);
@@ -6433,8 +6455,8 @@ function ra(e) {
6433
6455
  function c(x) {
6434
6456
  t().forEach((T) => {
6435
6457
  if (!T.sorter || n(T)) return;
6436
- const z = me(T);
6437
- z !== void 0 && (x && !x(T) || delete l[String(z)]);
6458
+ const D = me(T);
6459
+ D !== void 0 && (x && !x(T) || delete l[String(D)]);
6438
6460
  });
6439
6461
  }
6440
6462
  function m(x) {
@@ -6442,8 +6464,8 @@ function ra(e) {
6442
6464
  s();
6443
6465
  const T = me(x);
6444
6466
  if (T === void 0) return;
6445
- const z = f(x), y = ea(x, o?.()), k = ta(z, y), D = Kt(x);
6446
- n(x) || (D === !1 ? c() : c((X) => Kt(X) === !1), k ? l[String(T)] = k : delete l[String(T)]);
6467
+ const D = f(x), y = ea(x, o?.()), k = ta(D, y), z = Kt(x);
6468
+ n(x) || (z === !1 ? c() : c((X) => Kt(X) === !1), k ? l[String(T)] = k : delete l[String(T)]);
6447
6469
  const $ = u({
6448
6470
  columnKey: T,
6449
6471
  order: k
@@ -6455,7 +6477,7 @@ function ra(e) {
6455
6477
  if (typeof x.sorter == "function")
6456
6478
  return x.sorter;
6457
6479
  const T = fr(x.sorter);
6458
- return T?.compare ? T.compare : (z, y) => Qn(Bt(z, x.dataIndex), Bt(y, x.dataIndex));
6480
+ return T?.compare ? T.compare : (D, y) => Qn(Bt(D, x.dataIndex), Bt(y, x.dataIndex));
6459
6481
  }
6460
6482
  const g = S(() => u()), w = S(() => g.value[0] ?? {
6461
6483
  columnKey: void 0,
@@ -6468,23 +6490,23 @@ function ra(e) {
6468
6490
  order: x.order
6469
6491
  }))
6470
6492
  );
6471
- function A(x) {
6493
+ function _(x) {
6472
6494
  if (g.value.length === 0) return x;
6473
- const T = g.value.map((z) => {
6474
- if (!z.column || !z.order) return null;
6475
- const y = h(z.column);
6495
+ const T = g.value.map((D) => {
6496
+ if (!D.column || !D.order) return null;
6497
+ const y = h(D.column);
6476
6498
  return y ? {
6477
6499
  compareFn: y,
6478
- multiplier: z.order === "descend" ? -1 : 1
6500
+ multiplier: D.order === "descend" ? -1 : 1
6479
6501
  } : null;
6480
6502
  }).filter(
6481
- (z) => z !== null
6503
+ (D) => D !== null
6482
6504
  );
6483
- return T.length === 0 ? x : [...x].sort((z, y) => {
6505
+ return T.length === 0 ? x : [...x].sort((D, y) => {
6484
6506
  for (const k of T) {
6485
- const D = k.compareFn(z, y) * k.multiplier;
6486
- if (D !== 0)
6487
- return D;
6507
+ const z = k.compareFn(D, y) * k.multiplier;
6508
+ if (z !== 0)
6509
+ return z;
6488
6510
  }
6489
6511
  return 0;
6490
6512
  });
@@ -6496,7 +6518,7 @@ function ra(e) {
6496
6518
  sortColumns: M,
6497
6519
  getSortOrder: f,
6498
6520
  toggleSortOrder: m,
6499
- sortData: A
6521
+ sortData: _
6500
6522
  };
6501
6523
  }
6502
6524
  function la(e) {
@@ -6612,11 +6634,11 @@ function aa(e) {
6612
6634
  if (t()?.checkStrictly !== !1)
6613
6635
  return new Set(b);
6614
6636
  const p = new Set(b), E = (R) => {
6615
- const _ = g(R);
6616
- _.forEach(E);
6637
+ const A = g(R);
6638
+ A.forEach(E);
6617
6639
  const L = c.value.get(R);
6618
6640
  if (!L || h(L.record)) return;
6619
- const q = _.map((Z) => c.value.get(Z)).filter((Z) => !!Z && !h(Z.record));
6641
+ const q = A.map((Z) => c.value.get(Z)).filter((Z) => !!Z && !h(Z.record));
6620
6642
  if (q.length === 0) return;
6621
6643
  q.every((Z) => p.has(Z.key)) ? p.add(R) : p.delete(R);
6622
6644
  };
@@ -6640,7 +6662,7 @@ function aa(e) {
6640
6662
  function M(b) {
6641
6663
  return C.value.has(b);
6642
6664
  }
6643
- function A(b) {
6665
+ function _(b) {
6644
6666
  return f.value.filter((p) => b.has(p.key)).map((p) => p.record);
6645
6667
  }
6646
6668
  function x() {
@@ -6649,16 +6671,16 @@ function aa(e) {
6649
6671
  function T() {
6650
6672
  return x().filter((b) => !h(b.record));
6651
6673
  }
6652
- function z() {
6674
+ function D() {
6653
6675
  return f.value.filter((b) => !h(b.record));
6654
6676
  }
6655
6677
  function y(b, p) {
6656
- const E = o(b, p), R = M(E), _ = h(b);
6678
+ const E = o(b, p), R = M(E), A = h(b);
6657
6679
  if (t()?.checkStrictly !== !1)
6658
6680
  return {
6659
6681
  checked: R,
6660
6682
  indeterminate: !1,
6661
- disabled: _
6683
+ disabled: A
6662
6684
  };
6663
6685
  const L = [], q = (Z) => {
6664
6686
  g(Z).forEach((te) => {
@@ -6670,37 +6692,37 @@ function aa(e) {
6670
6692
  return {
6671
6693
  checked: R,
6672
6694
  indeterminate: !1,
6673
- disabled: _
6695
+ disabled: A
6674
6696
  };
6675
6697
  const W = L.filter((Z) => C.value.has(Z)).length;
6676
6698
  return {
6677
6699
  checked: R,
6678
6700
  indeterminate: W > 0 && W < L.length,
6679
- disabled: _
6701
+ disabled: A
6680
6702
  };
6681
6703
  }
6682
6704
  function k(b, p) {
6683
6705
  const E = w(b);
6684
6706
  v() || (n.value = E);
6685
6707
  {
6686
- const R = Array.from(E), _ = A(E);
6687
- t()?.onChange?.(R, _), s?.();
6708
+ const R = Array.from(E), A = _(E);
6709
+ t()?.onChange?.(R, A), s?.();
6688
6710
  }
6689
6711
  }
6690
- function D(b, p, E, R) {
6691
- const _ = c.value.get(b);
6692
- if (!_ || h(_.record)) return;
6712
+ function z(b, p, E, R) {
6713
+ const A = c.value.get(b);
6714
+ if (!A || h(A.record)) return;
6693
6715
  const L = p.has(b);
6694
- E ? p.add(b) : p.delete(b), L !== E && R.push(_.record), g(b).forEach(
6695
- (q) => D(q, p, E, R)
6716
+ E ? p.add(b) : p.delete(b), L !== E && R.push(A.record), g(b).forEach(
6717
+ (q) => z(q, p, E, R)
6696
6718
  );
6697
6719
  }
6698
6720
  function $(b, p, E) {
6699
6721
  const R = t();
6700
6722
  if (!R) return;
6701
- const _ = o(b, p), L = !M(_);
6723
+ const A = o(b, p), L = !M(A);
6702
6724
  if (R.type !== "radio" && E?.shiftKey && u.value !== null && t()?.checkStrictly !== !1) {
6703
- const W = T(), Z = W.findIndex((se) => se.key === _), te = W.findIndex(
6725
+ const W = T(), Z = W.findIndex((se) => se.key === A), te = W.findIndex(
6704
6726
  (se) => se.key === u.value
6705
6727
  );
6706
6728
  if (Z !== -1 && te !== -1) {
@@ -6708,23 +6730,23 @@ function aa(e) {
6708
6730
  W.slice(se, be + 1).forEach((de) => {
6709
6731
  const Ee = ie.has(de.key);
6710
6732
  L ? ie.add(de.key) : ie.delete(de.key), Ee !== L && he.push(de.record);
6711
- }), k(ie), R.onSelectMultiple?.(L, A(ie), he), u.value = _;
6733
+ }), k(ie), R.onSelectMultiple?.(L, _(ie), he), u.value = A;
6712
6734
  return;
6713
6735
  }
6714
6736
  }
6715
6737
  if (R.type === "radio") {
6716
- const W = L ? /* @__PURE__ */ new Set([_]) : /* @__PURE__ */ new Set();
6717
- k(W), R.onSelect?.(b, L, A(W)), u.value = _;
6738
+ const W = L ? /* @__PURE__ */ new Set([A]) : /* @__PURE__ */ new Set();
6739
+ k(W), R.onSelect?.(b, L, _(W)), u.value = A;
6718
6740
  return;
6719
6741
  }
6720
6742
  const q = new Set(C.value);
6721
- L ? q.add(_) : q.delete(_), k(q), R.onSelect?.(b, L, A(q)), u.value = _;
6743
+ L ? q.add(A) : q.delete(A), k(q), R.onSelect?.(b, L, _(q)), u.value = A;
6722
6744
  }
6723
6745
  function X(b, p) {
6724
6746
  const E = t();
6725
6747
  if (!E) return;
6726
- const R = o(b, p), _ = !M(R), L = new Set(C.value);
6727
- D(R, L, _, []), k(L), E.onSelect?.(b, _, A(L)), u.value = R;
6748
+ const R = o(b, p), A = !M(R), L = new Set(C.value);
6749
+ z(R, L, A, []), k(L), E.onSelect?.(b, A, _(L)), u.value = R;
6728
6750
  }
6729
6751
  function ee(b, p, E) {
6730
6752
  if (h(b)) return;
@@ -6740,11 +6762,11 @@ function aa(e) {
6740
6762
  function le(b) {
6741
6763
  const p = t();
6742
6764
  if (!p) return;
6743
- const E = z(), R = new Set(C.value), _ = [];
6765
+ const E = D(), R = new Set(C.value), A = [];
6744
6766
  E.forEach((L) => {
6745
6767
  const q = R.has(L.key);
6746
- b ? R.add(L.key) : R.delete(L.key), q !== b && _.push(L.record);
6747
- }), k(R), p.onSelectAll?.(b, A(R), _);
6768
+ b ? R.add(L.key) : R.delete(L.key), q !== b && A.push(L.record);
6769
+ }), k(R), p.onSelectAll?.(b, _(R), A);
6748
6770
  }
6749
6771
  const V = S(() => {
6750
6772
  const b = T();
@@ -6810,11 +6832,11 @@ function sa(e) {
6810
6832
  for (let w = 0; w < v.length; w++) {
6811
6833
  const C = v[w];
6812
6834
  if (C.fixed !== "left") continue;
6813
- const M = Mo(C, w), A = typeof C.width == "number" ? C.width : parseInt(String(C.width) || "0", 10);
6835
+ const M = Mo(C, w), _ = typeof C.width == "number" ? C.width : parseInt(String(C.width) || "0", 10);
6814
6836
  f.set(M, {
6815
6837
  left: c,
6816
6838
  isLastLeft: w === m
6817
- }), c += A;
6839
+ }), c += _;
6818
6840
  }
6819
6841
  let h = 0, g = v.length;
6820
6842
  for (let w = 0; w < v.length; w++)
@@ -6825,11 +6847,11 @@ function sa(e) {
6825
6847
  for (let w = v.length - 1; w >= 0; w--) {
6826
6848
  const C = v[w];
6827
6849
  if (C.fixed !== "right") continue;
6828
- const M = Mo(C, w), A = typeof C.width == "number" ? C.width : parseInt(String(C.width) || "0", 10);
6850
+ const M = Mo(C, w), _ = typeof C.width == "number" ? C.width : parseInt(String(C.width) || "0", 10);
6829
6851
  f.set(M, {
6830
6852
  right: h,
6831
6853
  isFirstRight: w === g
6832
- }), h += A;
6854
+ }), h += _;
6833
6855
  }
6834
6856
  return f;
6835
6857
  });
@@ -6955,7 +6977,7 @@ function gt(e, t) {
6955
6977
  if (typeof o == "number" && Number.isFinite(o))
6956
6978
  return o;
6957
6979
  }
6958
- function zt(e) {
6980
+ function Dt(e) {
6959
6981
  if (!e) return {};
6960
6982
  const {
6961
6983
  class: t,
@@ -7086,15 +7108,15 @@ function ha(e) {
7086
7108
  }));
7087
7109
  const f = t.value, c = [], m = s.value;
7088
7110
  function h(g, w, C) {
7089
- g.forEach((M, A) => {
7090
- const x = M[f], T = Array.isArray(x) && x.length > 0, z = e.getRowKey(M, c.length), y = T && m.has(z);
7111
+ g.forEach((M, _) => {
7112
+ const x = M[f], T = Array.isArray(x) && x.length > 0, D = e.getRowKey(M, c.length), y = T && m.has(D);
7091
7113
  c.push({
7092
7114
  record: M,
7093
7115
  level: w,
7094
7116
  expanded: y,
7095
7117
  hasChildren: T,
7096
7118
  parentKey: C
7097
- }), y && x && h(x, w + 1, z);
7119
+ }), y && x && h(x, w + 1, D);
7098
7120
  });
7099
7121
  }
7100
7122
  return h(v, 0), c;
@@ -7376,17 +7398,17 @@ const Ia = /* @__PURE__ */ Q({
7376
7398
  }, [ct((o.presetConfig?.value ?? yt.antdv).filterIcon)]);
7377
7399
  }
7378
7400
  });
7379
- function Dt(e) {
7401
+ function zt(e) {
7380
7402
  const t = [];
7381
7403
  for (const o of e)
7382
- t.push(o.value), o.children?.length && t.push(...Dt(o.children));
7404
+ t.push(o.value), o.children?.length && t.push(...zt(o.children));
7383
7405
  return t;
7384
7406
  }
7385
7407
  function Sr(e, t) {
7386
7408
  for (const o of e)
7387
7409
  o.children?.length && (Sr(o.children, t), o.children.every((l) => t.has(l.value)) ? t.add(o.value) : t.delete(o.value));
7388
7410
  }
7389
- const za = /* @__PURE__ */ Q({
7411
+ const Da = /* @__PURE__ */ Q({
7390
7412
  name: "FilterDropdown",
7391
7413
  props: {
7392
7414
  filters: {
@@ -7437,8 +7459,8 @@ const za = /* @__PURE__ */ Q({
7437
7459
  else {
7438
7460
  let p = function(E) {
7439
7461
  const R = [];
7440
- for (const _ of E)
7441
- _.children?.length && (R.push(_.value), R.push(...p(_.children)));
7462
+ for (const A of E)
7463
+ A.children?.length && (R.push(A.value), R.push(...p(A.children)));
7442
7464
  return R;
7443
7465
  };
7444
7466
  s.value = new Set(p(e.filters)), t("update:expandedKeys", s.value);
@@ -7455,8 +7477,8 @@ const za = /* @__PURE__ */ Q({
7455
7477
  E.height = "0", E.overflow = "hidden", E.opacity = "0";
7456
7478
  }
7457
7479
  function v(p, E) {
7458
- const R = p, _ = R.scrollHeight, L = R.style;
7459
- L.transition = "height 0.2s ease, opacity 0.2s ease", R.offsetHeight, L.height = `${_}px`, L.opacity = "1", R.addEventListener("transitionend", E, {
7480
+ const R = p, A = R.scrollHeight, L = R.style;
7481
+ L.transition = "height 0.2s ease, opacity 0.2s ease", R.offsetHeight, L.height = `${A}px`, L.opacity = "1", R.addEventListener("transitionend", E, {
7460
7482
  once: !0
7461
7483
  });
7462
7484
  }
@@ -7468,8 +7490,8 @@ const za = /* @__PURE__ */ Q({
7468
7490
  R.height = `${E.scrollHeight}px`, R.overflow = "hidden";
7469
7491
  }
7470
7492
  function m(p, E) {
7471
- const R = p, _ = R.style;
7472
- _.transition = "height 0.15s ease, opacity 0.15s ease", R.offsetHeight, _.height = "0", _.opacity = "0", R.addEventListener("transitionend", E, {
7493
+ const R = p, A = R.style;
7494
+ A.transition = "height 0.15s ease, opacity 0.15s ease", R.offsetHeight, A.height = "0", A.opacity = "0", R.addEventListener("transitionend", E, {
7473
7495
  once: !0
7474
7496
  });
7475
7497
  }
@@ -7485,8 +7507,8 @@ const za = /* @__PURE__ */ Q({
7485
7507
  function w(p, E) {
7486
7508
  return p.filter((R) => g(R, E));
7487
7509
  }
7488
- const C = S(() => !e.filterSearch || !a.value || e.filterMode === "tree" ? e.filters : w(e.filters, a.value)), M = S(() => o.presetConfig?.value.filterSingleSelectMode === "highlight"), A = S(() => o.locale?.value.filterDropdown), x = S(() => C.value.length > 0), T = S(() => !!e.filterSearch && a.value.trim().length > 0 && e.filterMode !== "tree" && !x.value);
7489
- function z(p) {
7510
+ const C = S(() => !e.filterSearch || !a.value || e.filterMode === "tree" ? e.filters : w(e.filters, a.value)), M = S(() => o.presetConfig?.value.filterSingleSelectMode === "highlight"), _ = S(() => o.locale?.value.filterDropdown), x = S(() => C.value.length > 0), T = S(() => !!e.filterSearch && a.value.trim().length > 0 && e.filterMode !== "tree" && !x.value);
7511
+ function D(p) {
7490
7512
  return r.value.includes(p);
7491
7513
  }
7492
7514
  function y(p, E) {
@@ -7494,7 +7516,7 @@ const za = /* @__PURE__ */ Q({
7494
7516
  if (e.filterMode === "tree" && E) {
7495
7517
  const R = new Set(r.value);
7496
7518
  if (!!E.children?.length) {
7497
- const L = Dt([E]);
7519
+ const L = zt([E]);
7498
7520
  L.every((W) => R.has(W)) ? L.forEach((W) => R.delete(W)) : L.forEach((W) => R.add(W));
7499
7521
  } else
7500
7522
  R.has(p) ? R.delete(p) : R.add(p);
@@ -7505,15 +7527,15 @@ const za = /* @__PURE__ */ Q({
7505
7527
  }
7506
7528
  return;
7507
7529
  }
7508
- z(p) || (r.value = [p]);
7530
+ D(p) || (r.value = [p]);
7509
7531
  }
7510
7532
  function k() {
7511
7533
  t("confirm", [...r.value]);
7512
7534
  }
7513
- function D() {
7535
+ function z() {
7514
7536
  r.value = [], t("reset");
7515
7537
  }
7516
- const $ = S(() => e.filterMode === "tree" && e.multiple), X = S(() => $.value ? Dt(C.value) : []), ee = S(() => {
7538
+ const $ = S(() => e.filterMode === "tree" && e.multiple), X = S(() => $.value ? zt(C.value) : []), ee = S(() => {
7517
7539
  const p = X.value.length;
7518
7540
  if (p === 0) return "none";
7519
7541
  const E = X.value.filter((R) => r.value.includes(R)).length;
@@ -7544,13 +7566,13 @@ const za = /* @__PURE__ */ Q({
7544
7566
  }, null);
7545
7567
  }
7546
7568
  function G(p, E = 0) {
7547
- const R = z(p.value), _ = !!p.children?.length, L = i(p.value), q = !e.multiple && M.value, W = e.filterMode === "tree" && a.value.trim().length > 0 && g(p, a.value);
7569
+ const R = D(p.value), A = !!p.children?.length, L = i(p.value), q = !e.multiple && M.value, W = e.filterMode === "tree" && a.value.trim().length > 0 && g(p, a.value);
7548
7570
  let Z = !1;
7549
- if ($.value && _) {
7550
- const Ee = Dt(p.children).some((Ne) => r.value.includes(Ne));
7571
+ if ($.value && A) {
7572
+ const Ee = zt(p.children).some((Ne) => r.value.includes(Ne));
7551
7573
  Z = !R && Ee;
7552
7574
  }
7553
- const te = () => _ ? d("span", {
7575
+ const te = () => A ? d("span", {
7554
7576
  class: [o.subThemeSlots?.value.filterDropdownSwitcher, L ? o.subThemeSlots?.value.filterDropdownSwitcherExpanded : o.subThemeSlots?.value.filterDropdownSwitcherCollapsed],
7555
7577
  onClick: (de) => {
7556
7578
  de.stopPropagation(), n(p.value);
@@ -7579,7 +7601,7 @@ const za = /* @__PURE__ */ Q({
7579
7601
  "aria-checked": q ? R : void 0,
7580
7602
  class: [be, !e.multiple && M.value && "gap-0"]
7581
7603
  }, [d("div", {
7582
- class: [ie, R ? o.subThemeSlots?.value.filterDropdownItemSelected : o.subThemeSlots?.value.filterDropdownItemHover],
7604
+ class: [ie, R ? !e.multiple && o.subThemeSlots?.value.filterDropdownItemSelectedSingle || o.subThemeSlots?.value.filterDropdownItemSelected : o.subThemeSlots?.value.filterDropdownItemHover],
7583
7605
  onClick: () => y(p.value, p)
7584
7606
  }, [K(R, Z), d("span", {
7585
7607
  class: "text-[color:var(--color-on-surface)]"
@@ -7587,8 +7609,8 @@ const za = /* @__PURE__ */ Q({
7587
7609
  }
7588
7610
  function b(p, E = 0) {
7589
7611
  const R = [];
7590
- for (const _ of p)
7591
- R.push(G(_, E)), _.children?.length && (e.filterMode === "tree" ? R.push(d(At, {
7612
+ for (const A of p)
7613
+ R.push(G(A, E)), A.children?.length && (e.filterMode === "tree" ? R.push(d(_t, {
7592
7614
  css: !1,
7593
7615
  onBeforeEnter: u,
7594
7616
  onEnter: v,
@@ -7597,16 +7619,16 @@ const za = /* @__PURE__ */ Q({
7597
7619
  onLeave: m,
7598
7620
  onAfterLeave: h
7599
7621
  }, {
7600
- default: () => [i(_.value) && d("div", {
7601
- key: `tree-${_.value}`
7602
- }, [b(_.children, E + 1)])]
7603
- })) : R.push(...b(_.children, E + 1)));
7622
+ default: () => [i(A.value) && d("div", {
7623
+ key: `tree-${A.value}`
7624
+ }, [b(A.children, E + 1)])]
7625
+ })) : R.push(...b(A.children, E + 1)));
7604
7626
  return R;
7605
7627
  }
7606
7628
  return () => {
7607
7629
  const {
7608
7630
  anchorRect: p
7609
- } = e, E = 150, R = e.popupContainer, _ = e.filterMode === "tree", L = _ ? o.subThemeSlots?.value.filterDropdownTreeList : o.subThemeSlots?.value.filterDropdownList, q = _ ? o.subThemeSlots?.value.filterDropdownTreeContentWrapper : o.subThemeSlots?.value.filterDropdownContentWrapper, W = {
7631
+ } = e, E = 150, R = e.popupContainer, A = e.filterMode === "tree", L = A ? o.subThemeSlots?.value.filterDropdownTreeList : o.subThemeSlots?.value.filterDropdownList, q = A ? o.subThemeSlots?.value.filterDropdownTreeContentWrapper : o.subThemeSlots?.value.filterDropdownContentWrapper, W = {
7610
7632
  zIndex: "1050"
7611
7633
  };
7612
7634
  if (typeof R == "string" || typeof document < "u" && R === document.body) {
@@ -7619,7 +7641,7 @@ const za = /* @__PURE__ */ Q({
7619
7641
  return d(Nt, {
7620
7642
  to: R
7621
7643
  }, {
7622
- default: () => [d(At, {
7644
+ default: () => [d(_t, {
7623
7645
  name: "vtg-dropdown"
7624
7646
  }, {
7625
7647
  default: () => [e.visible && d("div", {
@@ -7636,12 +7658,12 @@ const za = /* @__PURE__ */ Q({
7636
7658
  }, [d(ga, null, null)]), d(dn, {
7637
7659
  bare: !0,
7638
7660
  value: a.value,
7639
- placeholder: A.value?.searchPlaceholder ?? "在筛选项中搜索",
7661
+ placeholder: _.value?.searchPlaceholder ?? "在筛选项中搜索",
7640
7662
  inputClass: o.subThemeSlots?.value.filterDropdownSearchInput,
7641
7663
  "onUpdate:value": (Z) => {
7642
7664
  a.value = Z;
7643
7665
  }
7644
- }, null)])]), _ ? d("div", {
7666
+ }, null)])]), A ? d("div", {
7645
7667
  class: o.subThemeSlots?.value.filterDropdownTreeWrapper
7646
7668
  }, [$.value && d("div", {
7647
7669
  key: "__vtg_select_all__",
@@ -7656,38 +7678,40 @@ const za = /* @__PURE__ */ Q({
7656
7678
  class: [q, ee.value === "all" ? o.subThemeSlots?.value.filterDropdownTreeItemSelected : o.subThemeSlots?.value.filterDropdownItemHover]
7657
7679
  }, [d("span", {
7658
7680
  class: "text-[color:var(--color-on-surface)]"
7659
- }, [A.value?.selectAllText ?? "全选"])])]), d(Ot, {
7660
- maxHeight: "264px"
7681
+ }, [_.value?.selectAllText ?? "全选"])])]), d(Ot, {
7682
+ maxHeight: "var(--vtg-table-filter-dropdown-max-height, 264px)"
7661
7683
  }, {
7662
7684
  default: () => [d("ul", {
7663
7685
  class: L
7664
7686
  }, [b(C.value), T.value && d("li", {
7665
7687
  class: o.subThemeSlots?.value.filterDropdownListEmpty
7666
- }, [A.value?.emptyText ?? "Not Found"])])]
7688
+ }, [_.value?.emptyText ?? "Not Found"])])]
7667
7689
  })]) : d(Ot, {
7668
- maxHeight: "264px"
7690
+ maxHeight: "var(--vtg-table-filter-dropdown-max-height, 264px)"
7669
7691
  }, {
7670
7692
  default: () => [d("ul", {
7671
7693
  role: !e.multiple && M.value ? "radiogroup" : void 0,
7672
7694
  class: L
7673
7695
  }, [b(C.value), T.value && d("li", {
7674
7696
  class: o.subThemeSlots?.value.filterDropdownListEmpty
7675
- }, [A.value?.emptyText ?? "Not Found"])])]
7697
+ }, [_.value?.emptyText ?? "Not Found"])])]
7676
7698
  }), d("div", {
7677
7699
  class: o.subThemeSlots?.value.filterDropdownActions
7678
7700
  }, [d(ho, {
7679
7701
  type: "link",
7680
7702
  size: "sm",
7703
+ class: o.subThemeSlots?.value.filterDropdownResetButton,
7681
7704
  disabled: r.value.length === 0,
7682
- onClick: D
7705
+ onClick: z
7683
7706
  }, {
7684
- default: () => [A.value?.resetText ?? "重置"]
7707
+ default: () => [_.value?.resetText ?? "重置"]
7685
7708
  }), d(ho, {
7686
7709
  type: "primary",
7687
7710
  size: "sm",
7711
+ class: o.subThemeSlots?.value.filterDropdownConfirmButton,
7688
7712
  onClick: k
7689
7713
  }, {
7690
- default: () => [A.value?.confirmText ?? "确 定"]
7714
+ default: () => [_.value?.confirmText ?? "确 定"]
7691
7715
  })])])]
7692
7716
  })]
7693
7717
  });
@@ -7720,7 +7744,7 @@ const za = /* @__PURE__ */ Q({
7720
7744
  onChange: (o, r) => t("change", o, r)
7721
7745
  }, null);
7722
7746
  }
7723
- }), Da = /* @__PURE__ */ Q({
7747
+ }), za = /* @__PURE__ */ Q({
7724
7748
  name: "SelectionDropdown",
7725
7749
  props: {
7726
7750
  items: {
@@ -7775,7 +7799,7 @@ const za = /* @__PURE__ */ Q({
7775
7799
  return d(Nt, {
7776
7800
  to: i
7777
7801
  }, {
7778
- default: () => [d(At, {
7802
+ default: () => [d(_t, {
7779
7803
  name: "vtg-dropdown"
7780
7804
  }, {
7781
7805
  default: () => [e.visible && d("div", {
@@ -7818,10 +7842,10 @@ const za = /* @__PURE__ */ Q({
7818
7842
  }, null);
7819
7843
  }
7820
7844
  });
7821
- function Aa(e) {
7845
+ function _a(e) {
7822
7846
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !wt(e);
7823
7847
  }
7824
- function _a(e) {
7848
+ function Aa(e) {
7825
7849
  if (e === "ascend") return "ascending";
7826
7850
  if (e === "descend") return "descending";
7827
7851
  }
@@ -7870,7 +7894,7 @@ const Oa = /* @__PURE__ */ Q({
7870
7894
  const {
7871
7895
  onClick: j,
7872
7896
  ...I
7873
- } = zt(r.value);
7897
+ } = Dt(r.value);
7874
7898
  return I;
7875
7899
  }), n = S(() => o.value?.sorter ? t.getSortOrder?.(o.value) ?? null : null), i = S(() => !!o.value?.sorter), u = S(() => !o.value || !i.value ? !1 : o.value.showSorterTooltip ?? t.showSorterTooltip?.value ?? !0), v = S(() => {
7876
7900
  const j = o.value;
@@ -7883,7 +7907,7 @@ const Oa = /* @__PURE__ */ Q({
7883
7907
  m.value || (h.value = j), o.value?.onFilterDropdownOpenChange?.(j);
7884
7908
  }
7885
7909
  const C = O(null), M = O(null);
7886
- function A() {
7910
+ function _() {
7887
7911
  w(!g.value);
7888
7912
  }
7889
7913
  function x(j) {
@@ -7900,7 +7924,7 @@ const Oa = /* @__PURE__ */ Q({
7900
7924
  }), Ge(() => {
7901
7925
  document.removeEventListener("mousedown", x);
7902
7926
  });
7903
- function z() {
7927
+ function D() {
7904
7928
  return C.value ? C.value.getBoundingClientRect() : {
7905
7929
  top: 0,
7906
7930
  left: 0,
@@ -7914,7 +7938,7 @@ const Oa = /* @__PURE__ */ Q({
7914
7938
  }, {
7915
7939
  immediate: !0
7916
7940
  });
7917
- function D(j) {
7941
+ function z(j) {
7918
7942
  o.value && (t.confirmFilter?.(o.value, j), w(!1));
7919
7943
  }
7920
7944
  function $() {
@@ -7985,7 +8009,7 @@ const Oa = /* @__PURE__ */ Q({
7985
8009
  ...P ?? {},
7986
8010
  ...I ?? {}
7987
8011
  };
7988
- }), _ = O(!1), L = O(null);
8012
+ }), A = O(!1), L = O(null);
7989
8013
  function q() {
7990
8014
  return L.value ? L.value.getBoundingClientRect() : {
7991
8015
  top: 0,
@@ -7996,18 +8020,18 @@ const Oa = /* @__PURE__ */ Q({
7996
8020
  }
7997
8021
  let W = null;
7998
8022
  function Z() {
7999
- W && clearTimeout(W), _.value = !0;
8023
+ W && clearTimeout(W), A.value = !0;
8000
8024
  }
8001
8025
  function te() {
8002
8026
  W && clearTimeout(W), W = setTimeout(() => {
8003
- _.value = !1;
8027
+ A.value = !1;
8004
8028
  }, 100);
8005
8029
  }
8006
8030
  function se() {
8007
8031
  W && clearTimeout(W);
8008
8032
  }
8009
8033
  function be() {
8010
- W && clearTimeout(W), _.value = !1;
8034
+ W && clearTimeout(W), A.value = !1;
8011
8035
  }
8012
8036
  const ie = O(!1), he = O(!1), de = S(() => u.value && ie.value && !he.value);
8013
8037
  function Ee(j) {
@@ -8047,19 +8071,19 @@ const Oa = /* @__PURE__ */ Q({
8047
8071
  key: "__vtg_select_none__",
8048
8072
  text: Ke?.selection?.selectNone ?? "清空所有",
8049
8073
  onSelect: () => t.clearSelection?.()
8050
- }] : Array.isArray(oe?.selections) && (Ze = oe.selections.map((Ae) => Ae === pr ? {
8074
+ }] : Array.isArray(oe?.selections) && (Ze = oe.selections.map((_e) => _e === pr ? {
8051
8075
  key: "__vtg_select_all__",
8052
8076
  text: Ke?.selection?.selectAll ?? "全选当页",
8053
8077
  onSelect: () => t.toggleAll?.(!0)
8054
- } : Ae === br ? {
8078
+ } : _e === br ? {
8055
8079
  key: "__vtg_select_invert__",
8056
8080
  text: Ke?.selection?.selectInvert ?? "反选当页",
8057
8081
  onSelect: () => t.invertSelection?.()
8058
- } : Ae === gr ? {
8082
+ } : _e === gr ? {
8059
8083
  key: "__vtg_select_none__",
8060
8084
  text: Ke?.selection?.selectNone ?? "清空所有",
8061
8085
  onSelect: () => t.clearSelection?.()
8062
- } : Ae))), Ve)
8086
+ } : _e))), Ve)
8063
8087
  return d("th", fe(s.value, {
8064
8088
  class: $e,
8065
8089
  style: ht,
@@ -8081,7 +8105,7 @@ const Oa = /* @__PURE__ */ Q({
8081
8105
  }, [d(Cr, {
8082
8106
  checked: Ct === "all",
8083
8107
  indeterminate: Ct === "partial",
8084
- onChange: (Ae) => t.toggleAll?.(Ae)
8108
+ onChange: (_e) => t.toggleAll?.(_e)
8085
8109
  }, null), kt, vt && d("span", {
8086
8110
  ref: L,
8087
8111
  class: ae(t.subThemeSlots?.value.selectionExtra, "absolute left-full top-1/2 -translate-y-1/2"),
@@ -8089,11 +8113,11 @@ const Oa = /* @__PURE__ */ Q({
8089
8113
  onMouseleave: te,
8090
8114
  role: "button",
8091
8115
  "aria-label": "Selection options"
8092
- }, [d(Ta, null, null)])]), !rt && vt && d(Da, {
8116
+ }, [d(Ta, null, null)])]), !rt && vt && d(za, {
8093
8117
  items: Ze,
8094
8118
  anchorRect: q(),
8095
8119
  popupContainer: $t(t, L.value),
8096
- visible: _.value,
8120
+ visible: A.value,
8097
8121
  onClose: be,
8098
8122
  onMouseenter: se,
8099
8123
  onMouseleave: te
@@ -8112,7 +8136,7 @@ const Oa = /* @__PURE__ */ Q({
8112
8136
  title: J,
8113
8137
  placement: "top",
8114
8138
  open: de.value
8115
- }, Aa(ce) ? ce : {
8139
+ }, _a(ce) ? ce : {
8116
8140
  default: () => [ce]
8117
8141
  })]) : d("span", {
8118
8142
  class: He
@@ -8123,7 +8147,7 @@ const Oa = /* @__PURE__ */ Q({
8123
8147
  onMouseleave: Ye,
8124
8148
  onMousedown: (oe) => oe.stopPropagation(),
8125
8149
  onClick: (oe) => {
8126
- oe.stopPropagation(), A();
8150
+ oe.stopPropagation(), _();
8127
8151
  },
8128
8152
  role: "button",
8129
8153
  "aria-label": P?.header.filterTriggerAriaLabel ?? "筛选"
@@ -8136,7 +8160,7 @@ const Oa = /* @__PURE__ */ Q({
8136
8160
  onMouseleave: Ye,
8137
8161
  onMousedown: (oe) => oe.stopPropagation(),
8138
8162
  onClick: (oe) => {
8139
- oe.stopPropagation(), A();
8163
+ oe.stopPropagation(), _();
8140
8164
  },
8141
8165
  role: "button",
8142
8166
  "aria-label": P?.header.filterTriggerAriaLabel ?? "筛选"
@@ -8151,24 +8175,24 @@ const Oa = /* @__PURE__ */ Q({
8151
8175
  onMousedown: (oe) => oe.stopPropagation()
8152
8176
  }, [d(Ea, {
8153
8177
  active: c.value,
8154
- onClick: () => A()
8155
- }, null)])), ze = Y && {
8178
+ onClick: () => _()
8179
+ }, null)])), De = Y && {
8156
8180
  column: Y,
8157
8181
  selectedKeys: y.value,
8158
8182
  setSelectedKeys: (oe) => {
8159
8183
  y.value = [...oe];
8160
8184
  },
8161
8185
  confirm: (oe) => {
8162
- D(y.value), oe?.closeDropdown === !1 && w(!0);
8186
+ z(y.value), oe?.closeDropdown === !1 && w(!0);
8163
8187
  },
8164
8188
  clearFilters: (oe) => {
8165
- t.resetFilter?.(Y), y.value = [], oe?.confirm && D([]), oe?.closeDropdown !== !1 && w(!1);
8189
+ t.resetFilter?.(Y), y.value = [], oe?.confirm && z([]), oe?.closeDropdown !== !1 && w(!1);
8166
8190
  },
8167
8191
  filters: Y.filters ?? [],
8168
8192
  visible: g.value,
8169
8193
  close: () => w(!1)
8170
- }, De = Y?.customFilterDropdown ? t.customFilterDropdown : void 0, Fe = Y && ze && (() => {
8171
- const oe = typeof Y.filterDropdown == "function" ? Y.filterDropdown(ze) : Y.filterDropdown ?? (De ? De(ze) : null);
8194
+ }, ze = Y?.customFilterDropdown ? t.customFilterDropdown : void 0, Fe = Y && De && (() => {
8195
+ const oe = typeof Y.filterDropdown == "function" ? Y.filterDropdown(De) : Y.filterDropdown ?? (ze ? ze(De) : null);
8172
8196
  if (oe) {
8173
8197
  const Ve = $t(t, C.value);
8174
8198
  return d(Nt, {
@@ -8177,21 +8201,21 @@ const Oa = /* @__PURE__ */ Q({
8177
8201
  default: () => [g.value && d("div", {
8178
8202
  ref: M,
8179
8203
  class: t.subThemeSlots?.value.filterDropdown,
8180
- style: La(z(), Ve, 150)
8204
+ style: La(D(), Ve, 150)
8181
8205
  }, [oe])]
8182
8206
  });
8183
8207
  }
8184
- return d(za, {
8208
+ return d(Da, {
8185
8209
  filters: Y.filters ?? [],
8186
8210
  selectedKeys: f.value,
8187
8211
  multiple: Y.filterMultiple !== !1,
8188
- anchorRect: z(),
8212
+ anchorRect: D(),
8189
8213
  popupContainer: $t(t, C.value),
8190
8214
  filterSearch: Y.filterSearch ?? !1,
8191
8215
  filterMode: Y.filterMode ?? "menu",
8192
8216
  expandedKeys: k.value,
8193
8217
  visible: g.value,
8194
- onConfirm: D,
8218
+ onConfirm: z,
8195
8219
  onReset: $,
8196
8220
  onClose: X,
8197
8221
  "onUpdate:expandedKeys": (Ve) => {
@@ -8207,7 +8231,7 @@ const Oa = /* @__PURE__ */ Q({
8207
8231
  onClick: Xe,
8208
8232
  onMouseenter: Ee,
8209
8233
  onMouseleave: Ne,
8210
- "aria-sort": o.value ? _a(n.value) : void 0
8234
+ "aria-sort": o.value ? Aa(n.value) : void 0
8211
8235
  }), [d("span", {
8212
8236
  class: ae("flex items-center", e.headerCellInnerClass)
8213
8237
  }, [ot, v.value && xe]), v.value && Fe, o.value?.resizable && d(Ma, {
@@ -8216,7 +8240,7 @@ const Oa = /* @__PURE__ */ Q({
8216
8240
  }, null)]);
8217
8241
  };
8218
8242
  }
8219
- }), Ao = /* @__PURE__ */ Q({
8243
+ }), _o = /* @__PURE__ */ Q({
8220
8244
  name: "TableHeader",
8221
8245
  props: {
8222
8246
  rows: {
@@ -8338,7 +8362,7 @@ const Oa = /* @__PURE__ */ Q({
8338
8362
  l.stopPropagation(), t("click", l);
8339
8363
  }
8340
8364
  return () => {
8341
- const l = o.subThemeSlots?.value, a = e.variant === "tree", s = a ? l?.treeExpandIcon : l?.expandIcon, n = a ? l?.treeExpandIconExpanded : l?.expandIconExpanded, i = a ? l?.treeExpandIconCollapsed : l?.expandIconCollapsed, u = a ? l?.treeExpandIconSpaced : l?.expandIconSpaced, v = a ? l?.treeExpandIconDisabled : l?.expandIconDisabled, f = a ? l?.treeExpandIconSymbol : l?.expandIconSymbol, c = a ? l?.treeExpandIconSymbolExpanded : l?.expandIconSymbolExpanded, m = a ? l?.treeExpandIconSymbolCollapsed : l?.expandIconSymbolCollapsed, h = a ? "relative inline-flex h-5 w-5 shrink-0 items-center justify-center align-middle text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200" : "relative inline-flex h-[17px] w-[17px] shrink-0 items-center justify-center align-middle border border-[color:var(--vtg-table-border-color,#d9d9d9)] bg-[color:var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200", g = "inline-flex items-center justify-center transition-transform duration-200 [&>svg]:h-[1em] [&>svg]:w-[1em]", w = a ? "me-2 w-5 invisible" : "invisible", C = ae(h, s, !e.expandable && w, !e.expandable && u, e.expandable && (e.expanded ? n : i), !e.expandable && v), M = ae(g, f, e.expandable && (e.expanded ? c : m)), A = d("span", {
8365
+ const l = o.subThemeSlots?.value, a = e.variant === "tree", s = a ? l?.treeExpandIcon : l?.expandIcon, n = a ? l?.treeExpandIconExpanded : l?.expandIconExpanded, i = a ? l?.treeExpandIconCollapsed : l?.expandIconCollapsed, u = a ? l?.treeExpandIconSpaced : l?.expandIconSpaced, v = a ? l?.treeExpandIconDisabled : l?.expandIconDisabled, f = a ? l?.treeExpandIconSymbol : l?.expandIconSymbol, c = a ? l?.treeExpandIconSymbolExpanded : l?.expandIconSymbolExpanded, m = a ? l?.treeExpandIconSymbolCollapsed : l?.expandIconSymbolCollapsed, h = a ? "relative inline-flex h-5 w-5 shrink-0 items-center justify-center align-middle text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200" : "relative inline-flex h-[17px] w-[17px] shrink-0 items-center justify-center align-middle border border-[color:var(--vtg-table-border-color,#d9d9d9)] bg-[color:var(--vtg-table-bg,#fff)] text-[color:var(--vtg-table-text-color)] transition-[color,border-color,background-color,transform] duration-200", g = "inline-flex items-center justify-center transition-transform duration-200 [&>svg]:h-[1em] [&>svg]:w-[1em]", w = a ? "me-2 w-5 invisible" : "invisible", C = ae(h, s, !e.expandable && w, !e.expandable && u, e.expandable && (e.expanded ? n : i), !e.expandable && v), M = ae(g, f, e.expandable && (e.expanded ? c : m)), _ = d("span", {
8342
8366
  class: M,
8343
8367
  "aria-hidden": "true"
8344
8368
  }, [d("svg", {
@@ -8357,10 +8381,10 @@ const Oa = /* @__PURE__ */ Q({
8357
8381
  onClick: r,
8358
8382
  "aria-expanded": e.expanded,
8359
8383
  "aria-label": e.expanded ? "Collapse row" : "Expand row"
8360
- }, [A]) : d("span", {
8384
+ }, [_]) : d("span", {
8361
8385
  class: C,
8362
8386
  "aria-hidden": "true"
8363
- }, [A]);
8387
+ }, [_]);
8364
8388
  };
8365
8389
  }
8366
8390
  }), Tr = /* @__PURE__ */ Q({
@@ -8420,8 +8444,8 @@ const Oa = /* @__PURE__ */ Q({
8420
8444
  if (!y) return "";
8421
8445
  const k = t.subThemeSlots?.value;
8422
8446
  if (!k) return "";
8423
- const D = [], $ = t.scrollState?.value?.atStart ?? !0, X = t.scrollState?.value?.atEnd ?? !0;
8424
- return y.isLastLeft && !$ && D.push(k.fixedShadowLeft), y.isFirstRight && !X && D.push(k.fixedShadowRight), D.join(" ");
8447
+ const z = [], $ = t.scrollState?.value?.atStart ?? !0, X = t.scrollState?.value?.atEnd ?? !0;
8448
+ return y.isLastLeft && !$ && z.push(k.fixedShadowLeft), y.isFirstRight && !X && z.push(k.fixedShadowRight), z.join(" ");
8425
8449
  }), i = S(() => t.getSelectionState?.(e.record, e.rowIndex) ?? {
8426
8450
  checked: !1,
8427
8451
  indeterminate: !1,
@@ -8446,14 +8470,14 @@ const Oa = /* @__PURE__ */ Q({
8446
8470
  };
8447
8471
  }
8448
8472
  const g = S(() => ({
8449
- ...zt(l.value.renderCellProps),
8450
- ...zt(l.value.customCellProps)
8473
+ ...Dt(l.value.renderCellProps),
8474
+ ...Dt(l.value.customCellProps)
8451
8475
  })), w = S(() => {
8452
- const y = e.column.align ? eo[e.column.align] : "", k = t.subThemeSlots?.value, D = v.value && t.hoverable?.value, $ = t.isColumnSorted?.(e.column) && k ? k.tdSorted : "", X = u.value && k ? ae(k.tdSelected, D ? k.tdRowSelectedHover : "") : "", ee = D && k && !u.value ? k.tdRowHover : "";
8476
+ const y = e.column.align ? eo[e.column.align] : "", k = t.subThemeSlots?.value, z = v.value && t.hoverable?.value, $ = t.isColumnSorted?.(e.column) && k ? k.tdSorted : "", X = u.value && k ? ae(k.tdSelected, z ? k.tdRowSelectedHover : "") : "", ee = z && k && !u.value ? k.tdRowHover : "";
8453
8477
  return ae(e.tdClass, y, e.column.className, l.value.customCellProps?.class, l.value.customCellProps?.className, l.value.renderCellProps?.class, l.value.renderCellProps?.className, $, X, ee, n.value);
8454
8478
  }), C = S(() => {
8455
- const y = {}, D = t.columnWidths?.[String(me(e.column) ?? e.colIndex)] ?? e.column.width;
8456
- return D && (y.width = typeof D == "number" ? `${D}px` : D), {
8479
+ const y = {}, z = t.columnWidths?.[String(me(e.column) ?? e.colIndex)] ?? e.column.width;
8480
+ return z && (y.width = typeof z == "number" ? `${z}px` : z), {
8457
8481
  ...y,
8458
8482
  ...s.value ?? {},
8459
8483
  ...l.value.customCellProps?.style ?? {},
@@ -8463,10 +8487,10 @@ const Oa = /* @__PURE__ */ Q({
8463
8487
  if (!t.isTreeData?.value) return null;
8464
8488
  const y = t.treeFlattenData?.value;
8465
8489
  return y ? y.find((k) => k.record === e.record) ?? null : null;
8466
- }), A = S(() => t.isTreeData?.value && e.column.key !== "__vtg_selection__" && e.column.key !== "__vtg_expand__" && e.colIndex <= 2 ? (() => {
8490
+ }), _ = S(() => t.isTreeData?.value && e.column.key !== "__vtg_selection__" && e.column.key !== "__vtg_expand__" && e.colIndex <= 2 ? (() => {
8467
8491
  const y = t.rowSelection?.(), k = t.expandable?.();
8468
- let D = 0;
8469
- return y && (D += 1), k && k.showExpandColumn !== !1 && (D += 1), e.colIndex === D;
8492
+ let z = 0;
8493
+ return y && (z += 1), k && k.showExpandColumn !== !1 && (z += 1), e.colIndex === z;
8470
8494
  })() : !1);
8471
8495
  function x(y) {
8472
8496
  return {
@@ -8478,7 +8502,7 @@ const Oa = /* @__PURE__ */ Q({
8478
8502
  const y = o.value, k = l.value.tooltipText;
8479
8503
  r.value = !!(y && k && (y.scrollWidth > y.clientWidth || y.scrollHeight > y.clientHeight));
8480
8504
  }
8481
- function z() {
8505
+ function D() {
8482
8506
  r.value = !1;
8483
8507
  }
8484
8508
  return () => {
@@ -8501,9 +8525,9 @@ const Oa = /* @__PURE__ */ Q({
8501
8525
  const L = N.renderCell(i.value.checked, e.record, e.rowIndex, G);
8502
8526
  mr(L) ? (b = L.children, p = L.props) : b = L;
8503
8527
  }
8504
- const E = !!N?.renderCell, R = v.value && t.hoverable?.value, _ = ae(e.tdClass, E ? "text-center" : "text-center leading-[0]", e.column.className, p?.class, p?.className, u.value && t.subThemeSlots?.value ? ae(t.subThemeSlots.value.tdSelected, R ? t.subThemeSlots.value.tdRowSelectedHover : "") : R && t.subThemeSlots?.value ? t.subThemeSlots.value.tdRowHover : "", n.value);
8505
- return d("td", fe(zt(p), {
8506
- class: _,
8528
+ const E = !!N?.renderCell, R = v.value && t.hoverable?.value, A = ae(e.tdClass, E ? "text-center" : "text-center leading-[0]", e.column.className, p?.class, p?.className, u.value && t.subThemeSlots?.value ? ae(t.subThemeSlots.value.tdSelected, R ? t.subThemeSlots.value.tdRowSelectedHover : "") : R && t.subThemeSlots?.value ? t.subThemeSlots.value.tdRowHover : "", n.value);
8529
+ return d("td", fe(Dt(p), {
8530
+ class: A,
8507
8531
  style: x(p?.style),
8508
8532
  colspan: y,
8509
8533
  rowspan: k,
@@ -8512,7 +8536,7 @@ const Oa = /* @__PURE__ */ Q({
8512
8536
  }), [b]);
8513
8537
  }
8514
8538
  if (e.column.key === "__vtg_expand__") {
8515
- const N = t.expandable?.(), K = t.getRowKey?.(e.record, e.rowIndex), G = K !== void 0 && (t.isExpanded?.(K) ?? !1), b = t.isRowExpandable?.(e.record) ?? !1, p = t.subThemeSlots?.value, E = v.value && t.hoverable?.value, R = t.isColumnSorted?.(e.column) && p ? p.tdSorted : "", _ = u.value && p ? ae(p.tdSelected, E ? p.tdRowSelectedHover : "") : "", L = E && p && !u.value ? p.tdRowHover : "", q = ae(e.tdClass, "text-center", e.column.className, R, _, L, n.value);
8539
+ const N = t.expandable?.(), K = t.getRowKey?.(e.record, e.rowIndex), G = K !== void 0 && (t.isExpanded?.(K) ?? !1), b = t.isRowExpandable?.(e.record) ?? !1, p = t.subThemeSlots?.value, E = v.value && t.hoverable?.value, R = t.isColumnSorted?.(e.column) && p ? p.tdSorted : "", A = u.value && p ? ae(p.tdSelected, E ? p.tdRowSelectedHover : "") : "", L = E && p && !u.value ? p.tdRowHover : "", q = ae(e.tdClass, "text-center", e.column.className, R, A, L, n.value);
8516
8540
  return N?.expandIcon ? d("td", {
8517
8541
  class: q,
8518
8542
  style: C.value,
@@ -8543,13 +8567,13 @@ const Oa = /* @__PURE__ */ Q({
8543
8567
  }
8544
8568
  }, null)]);
8545
8569
  }
8546
- const D = M.value, $ = A.value && D, X = $ ? d("span", {
8570
+ const z = M.value, $ = _.value && z, X = $ ? d("span", {
8547
8571
  style: {
8548
8572
  display: "inline-block",
8549
- width: `${D.level * (t.treeIndentSize?.value ?? 15)}px`
8573
+ width: `${z.level * (t.treeIndentSize?.value ?? 15)}px`
8550
8574
  }
8551
- }, null) : null, ee = $ && D.hasChildren ? d(Wt, {
8552
- expanded: D.expanded,
8575
+ }, null) : null, ee = $ && z.hasChildren ? d(Wt, {
8576
+ expanded: z.expanded,
8553
8577
  expandable: !0,
8554
8578
  variant: "tree",
8555
8579
  onClick: () => t.toggleTreeExpand?.(e.record, e.rowIndex)
@@ -8567,7 +8591,7 @@ const Oa = /* @__PURE__ */ Q({
8567
8591
  ref: o,
8568
8592
  class: e.bodyCellEllipsisClass,
8569
8593
  onMouseenter: T,
8570
- onMouseleave: z
8594
+ onMouseleave: D
8571
8595
  }, [l.value.content])]
8572
8596
  }) : d("div", {
8573
8597
  class: e.bodyCellEllipsisClass
@@ -8615,7 +8639,7 @@ const Oa = /* @__PURE__ */ Q({
8615
8639
  };
8616
8640
  }
8617
8641
  });
8618
- function _o(e) {
8642
+ function Ao(e) {
8619
8643
  return Number.isFinite(e) ? e <= 0 ? 0 : Math.floor(e) : 1;
8620
8644
  }
8621
8645
  const Lo = /* @__PURE__ */ Q({
@@ -8673,7 +8697,7 @@ const Lo = /* @__PURE__ */ Q({
8673
8697
  column: i,
8674
8698
  bodyCell: t.bodyCell,
8675
8699
  transformCellText: t.transformCellText
8676
- }), c = _o(f.colSpan), m = _o(f.rowSpan);
8700
+ }), c = Ao(f.colSpan), m = Ao(f.rowSpan);
8677
8701
  if (c === 0 || m === 0) return;
8678
8702
  const h = Math.min(e.dataSource.length, s + m), g = Math.min(e.columns.length, u + c);
8679
8703
  for (let w = s; w < h; w += 1)
@@ -8850,7 +8874,7 @@ const Na = /* @__PURE__ */ Q({
8850
8874
  const i = typeof n.width == "number" ? n.width : parseInt(String(n.width || "0"), 10);
8851
8875
  s += i || 0;
8852
8876
  }
8853
- return d(_n, {
8877
+ return d(An, {
8854
8878
  ref: o,
8855
8879
  data: e.dataSource,
8856
8880
  height: e.height,
@@ -8869,7 +8893,7 @@ const Na = /* @__PURE__ */ Q({
8869
8893
  index: i
8870
8894
  }) => {
8871
8895
  let u;
8872
- const v = e.dataSource.indexOf(n), f = v >= 0 ? v : i, c = l(n, f), m = t.expandable?.(), h = t.isExpanded?.(c) ?? !1, g = m?.expandRowByClick ?? !1, w = t.isRowExpandable?.(n) ?? !1, C = t.getRowClassName?.(n, f), M = t.getRowProps?.(n, f), x = t.treeFlattenData?.value?.find((y) => y.record === n)?.level ?? 0, T = typeof m?.expandedRowClassName == "function" ? m.expandedRowClassName(n, f, x) : m?.expandedRowClassName, z = g ? () => {
8896
+ const v = e.dataSource.indexOf(n), f = v >= 0 ? v : i, c = l(n, f), m = t.expandable?.(), h = t.isExpanded?.(c) ?? !1, g = m?.expandRowByClick ?? !1, w = t.isRowExpandable?.(n) ?? !1, C = t.getRowClassName?.(n, f), M = t.getRowProps?.(n, f), x = t.treeFlattenData?.value?.find((y) => y.record === n)?.level ?? 0, T = typeof m?.expandedRowClassName == "function" ? m.expandedRowClassName(n, f, x) : m?.expandedRowClassName, D = g ? () => {
8873
8897
  w && t.toggleExpand?.(n, f);
8874
8898
  } : void 0;
8875
8899
  return d("table", {
@@ -8886,7 +8910,7 @@ const Na = /* @__PURE__ */ Q({
8886
8910
  key: c,
8887
8911
  rowClass: ae(e.rowClass, C) ?? "",
8888
8912
  rowProps: M,
8889
- onClick: z
8913
+ onClick: D
8890
8914
  }, ja(u = e.columns.map((y, k) => d(Tr, {
8891
8915
  key: y.key ?? String(y.dataIndex ?? k),
8892
8916
  record: n,
@@ -9195,11 +9219,11 @@ const Ha = /* @__PURE__ */ Q({
9195
9219
  });
9196
9220
  const m = S(() => Ir(e.columns, f.value)), h = S(() => e.sticky === !0 ? {} : typeof e.sticky == "object" ? e.sticky : void 0), {
9197
9221
  leafColumns: g
9198
- } = zo(() => m.value), {
9222
+ } = Do(() => m.value), {
9199
9223
  getSortOrder: w,
9200
9224
  toggleSortOrder: C,
9201
9225
  sortData: M,
9202
- sorterState: A,
9226
+ sorterState: _,
9203
9227
  sorterResult: x,
9204
9228
  sortColumns: T
9205
9229
  } = ra({
@@ -9207,16 +9231,16 @@ const Ha = /* @__PURE__ */ Q({
9207
9231
  tableSortDirections: () => e.sortDirections,
9208
9232
  onSorterChange(B) {
9209
9233
  const U = X();
9210
- o("change", D(), B, {
9234
+ o("change", z(), B, {
9211
9235
  action: "sort",
9212
9236
  currentDataSource: U
9213
9237
  });
9214
9238
  }
9215
9239
  }), {
9216
- getFilteredValue: z,
9240
+ getFilteredValue: D,
9217
9241
  confirmFilter: y,
9218
9242
  resetFilter: k,
9219
- getAllFilters: D,
9243
+ getAllFilters: z,
9220
9244
  filterData: $
9221
9245
  } = la({
9222
9246
  columns: () => g.value,
@@ -9256,7 +9280,7 @@ const Ha = /* @__PURE__ */ Q({
9256
9280
  hoverRange: p,
9257
9281
  setHoverRange: E,
9258
9282
  clearHoverRange: R
9259
- } = da(100), _ = S(() => N.value ? V.value.map((B) => B.record) : ee.value), {
9283
+ } = da(100), A = S(() => N.value ? V.value.map((B) => B.record) : ee.value), {
9260
9284
  isSelected: L,
9261
9285
  isDisabled: q,
9262
9286
  getSelectionState: W,
@@ -9270,12 +9294,12 @@ const Ha = /* @__PURE__ */ Q({
9270
9294
  rowSelection: () => e.rowSelection,
9271
9295
  getRowKey: le,
9272
9296
  data: () => ee.value,
9273
- visibleData: () => _.value,
9297
+ visibleData: () => A.value,
9274
9298
  childrenColumnName: () => e.childrenColumnName,
9275
9299
  onSelectionChange() {
9276
- o("change", D(), x.value, {
9300
+ o("change", z(), x.value, {
9277
9301
  action: "select",
9278
- currentDataSource: _.value
9302
+ currentDataSource: A.value
9279
9303
  });
9280
9304
  }
9281
9305
  }), {
@@ -9284,7 +9308,7 @@ const Ha = /* @__PURE__ */ Q({
9284
9308
  } = ia({
9285
9309
  expandable: () => e.expandable,
9286
9310
  getRowKey: le,
9287
- data: () => _.value
9311
+ data: () => A.value
9288
9312
  }), Ne = (B) => {
9289
9313
  const U = e.expandable;
9290
9314
  return U ? U.rowExpandable ? U.rowExpandable(B) : !!U.expandedRowRender : !1;
@@ -9303,24 +9327,24 @@ const Ha = /* @__PURE__ */ Q({
9303
9327
  width: U.columnWidth ?? 48,
9304
9328
  align: "center",
9305
9329
  fixed: U.fixed === !0 ? "left" : U.fixed || void 0
9306
- } : null, _e = [];
9330
+ } : null, Ae = [];
9307
9331
  let Te = !1, Re = !1;
9308
9332
  for (const Se of m.value) {
9309
9333
  if (Se === yr) {
9310
- we && !Te && (_e.push(we), Te = !0);
9334
+ we && !Te && (Ae.push(we), Te = !0);
9311
9335
  continue;
9312
9336
  }
9313
9337
  if (Se === xr) {
9314
- ye && !Re && (_e.push(ye), Re = !0);
9338
+ ye && !Re && (Ae.push(ye), Re = !0);
9315
9339
  continue;
9316
9340
  }
9317
- _e.push(Se);
9341
+ Ae.push(Se);
9318
9342
  }
9319
- return we && !Te && _e.unshift(we), ye && !Re && _e.unshift(ye), _e;
9343
+ return we && !Te && Ae.unshift(we), ye && !Re && Ae.unshift(ye), Ae;
9320
9344
  }), {
9321
9345
  leafColumns: I,
9322
9346
  headerRows: P
9323
- } = zo(() => j.value), J = S(() => P.value.length > 1), {
9347
+ } = Do(() => j.value), J = S(() => P.value.length > 1), {
9324
9348
  headerWrapRef: Y,
9325
9349
  bodyWrapRef: ge,
9326
9350
  scrollState: ke,
@@ -9329,7 +9353,7 @@ const Ha = /* @__PURE__ */ Q({
9329
9353
  syncHorizontalScroll: ot
9330
9354
  } = sa({
9331
9355
  displayColumns: () => I.value
9332
- }), xe = S(() => e.showHeader !== !1 && (!!e.scroll?.y || !!e.sticky)), ze = S(() => I.value.some((B) => B.fixed === "left" || B.fixed === "right")), De = S(() => g.value.some((B) => to(B).enabled)), Fe = S(() => e.scroll?.x !== void 0 || ze.value), oe = S(() => e.tableLayout ? e.tableLayout : e.scroll?.y || e.scroll?.x || ze.value || De.value ? "fixed" : "auto"), Ve = S(() => {
9356
+ }), xe = S(() => e.showHeader !== !1 && (!!e.scroll?.y || !!e.sticky)), De = S(() => I.value.some((B) => B.fixed === "left" || B.fixed === "right")), ze = S(() => g.value.some((B) => to(B).enabled)), Fe = S(() => e.scroll?.x !== void 0 || De.value), oe = S(() => e.tableLayout ? e.tableLayout : e.scroll?.y || e.scroll?.x || De.value || ze.value ? "fixed" : "auto"), Ve = S(() => {
9333
9357
  if (h.value)
9334
9358
  return {
9335
9359
  position: "sticky",
@@ -9358,26 +9382,26 @@ const Ha = /* @__PURE__ */ Q({
9358
9382
  }, {
9359
9383
  immediate: !0
9360
9384
  });
9361
- const kt = O(null), Ae = O(null);
9385
+ const kt = O(null), _e = O(null);
9362
9386
  ne(() => kt.value?.wrapRef, (B) => {
9363
9387
  B && (ge.value = B);
9364
- }), ne(() => Ae.value?.wrapRef, (B) => {
9388
+ }), ne(() => _e.value?.wrapRef, (B) => {
9365
9389
  B && (ge.value = B);
9366
9390
  });
9367
9391
  const {
9368
- columnWidths: Dr,
9392
+ columnWidths: zr,
9369
9393
  startResize: Mr,
9370
- isResizing: Ar
9394
+ isResizing: _r
9371
9395
  } = ca({
9372
9396
  onResizeColumn(B, U) {
9373
9397
  o("resizeColumn", B, U);
9374
9398
  }
9375
9399
  });
9376
- function _r(B) {
9400
+ function Ar(B) {
9377
9401
  return N.value ? V.value.find((U) => U.record === B)?.level ?? 0 : 0;
9378
9402
  }
9379
9403
  function Lr(B, U) {
9380
- return e.rowClassName ? typeof e.rowClassName == "function" ? e.rowClassName(B, U, _r(B)) : e.rowClassName : "";
9404
+ return e.rowClassName ? typeof e.rowClassName == "function" ? e.rowClassName(B, U, Ar(B)) : e.rowClassName : "";
9381
9405
  }
9382
9406
  function Or(B, U) {
9383
9407
  return e.customRow?.(B, U);
@@ -9391,9 +9415,9 @@ const Ha = /* @__PURE__ */ Q({
9391
9415
  const U = B, we = T.value.filter((ye) => !!ye.column);
9392
9416
  return B.title({
9393
9417
  sortOrder: U.sorter ? w(U) ?? void 0 : void 0,
9394
- sortColumn: A.value.column,
9418
+ sortColumn: _.value.column,
9395
9419
  sortColumns: we.length > 0 ? we : void 0,
9396
- filters: D()
9420
+ filters: z()
9397
9421
  });
9398
9422
  }
9399
9423
  function Nr(B) {
@@ -9417,8 +9441,11 @@ const Ha = /* @__PURE__ */ Q({
9417
9441
  filterDropdownList: n.filterDropdownList(),
9418
9442
  filterDropdownItem: n.filterDropdownItem(),
9419
9443
  filterDropdownItemSelected: n.filterDropdownItemSelected(),
9444
+ filterDropdownItemSelectedSingle: n.filterDropdownItemSelectedSingle?.(),
9420
9445
  filterDropdownItemHover: n.filterDropdownItemHover(),
9421
9446
  filterDropdownActions: n.filterDropdownActions(),
9447
+ filterDropdownResetButton: n.filterDropdownResetButton?.(),
9448
+ filterDropdownConfirmButton: n.filterDropdownConfirmButton?.(),
9422
9449
  filterDropdownSearch: n.filterDropdownSearch(),
9423
9450
  filterDropdownSearchField: n.filterDropdownSearchField(),
9424
9451
  filterDropdownSearchIcon: n.filterDropdownSearchIcon(),
@@ -9484,7 +9511,7 @@ const Ha = /* @__PURE__ */ Q({
9484
9511
  getSortOrder: w,
9485
9512
  toggleSortOrder: C,
9486
9513
  isColumnSorted: Nr,
9487
- getFilteredValue: z,
9514
+ getFilteredValue: D,
9488
9515
  confirmFilter: y,
9489
9516
  resetFilter: k,
9490
9517
  customFilterDropdown: t.customFilterDropdown,
@@ -9523,9 +9550,9 @@ const Ha = /* @__PURE__ */ Q({
9523
9550
  isExpanded: de,
9524
9551
  toggleExpand: Pe,
9525
9552
  isRowExpandable: Ne,
9526
- columnWidths: Dr,
9553
+ columnWidths: zr,
9527
9554
  startResize: Mr,
9528
- isResizing: () => Ar.value,
9555
+ isResizing: () => _r.value,
9529
9556
  displayColumns: S(() => I.value),
9530
9557
  registerSummaryFixed: (B) => {
9531
9558
  lo.value = B;
@@ -9541,11 +9568,11 @@ const Ha = /* @__PURE__ */ Q({
9541
9568
  hoverable: S(() => e.hoverable !== !1)
9542
9569
  }), () => {
9543
9570
  let B;
9544
- const U = e.title ? e.title(_.value) : t.title ? t.title({
9545
- data: _.value
9546
- }) : null, we = e.footer ? e.footer(_.value) : t.footer ? t.footer({
9547
- data: _.value
9548
- }) : null, ye = t.summary ? t.summary() : null, _e = lo.value !== !1, Te = e.scroll, Re = {
9571
+ const U = e.title ? e.title(A.value) : t.title ? t.title({
9572
+ data: A.value
9573
+ }) : null, we = e.footer ? e.footer(A.value) : t.footer ? t.footer({
9574
+ data: A.value
9575
+ }) : null, ye = t.summary ? t.summary() : null, Ae = lo.value !== !1, Te = e.scroll, Re = {
9549
9576
  tableLayout: oe.value
9550
9577
  };
9551
9578
  Te?.x ? (Re.width = typeof Te.x == "number" ? `${Te.x}px` : Te.x, Re.minWidth = "100%") : Re.width = Fe.value ? "max-content" : "100%";
@@ -9570,14 +9597,14 @@ const Ha = /* @__PURE__ */ Q({
9570
9597
  style: Re
9571
9598
  }, [d(it, {
9572
9599
  columns: I.value
9573
- }, null), d(Ao, {
9600
+ }, null), d(_o, {
9574
9601
  rows: P.value,
9575
9602
  theadClass: n.thead(),
9576
9603
  rowClass: n.tr(),
9577
9604
  thClass: ht.value,
9578
9605
  headerCellInnerClass: n.headerCellInner()
9579
9606
  }, null)])])]) : null, $r = rt.value ? d(Na, {
9580
- dataSource: _.value,
9607
+ dataSource: A.value,
9581
9608
  columns: I.value,
9582
9609
  tbodyClass: n.tbody(),
9583
9610
  rowClass: n.tr(),
@@ -9606,7 +9633,7 @@ const Ha = /* @__PURE__ */ Q({
9606
9633
  }, [d(it, {
9607
9634
  columns: I.value
9608
9635
  }, null), d(Lo, {
9609
- dataSource: _.value,
9636
+ dataSource: A.value,
9610
9637
  columns: I.value,
9611
9638
  tbodyClass: n.tbody(),
9612
9639
  rowClass: n.tr(),
@@ -9614,10 +9641,10 @@ const Ha = /* @__PURE__ */ Q({
9614
9641
  emptyClass: n.empty(),
9615
9642
  bodyCellEllipsisClass: n.bodyCellEllipsis(),
9616
9643
  rowKey: e.rowKey
9617
- }, null), ye && !_e && d("tfoot", {
9644
+ }, null), ye && !Ae && d("tfoot", {
9618
9645
  class: n.summary()
9619
9646
  }, [ye])])]
9620
- }), qr = ye && _e ? d("div", {
9647
+ }), qr = ye && Ae ? d("div", {
9621
9648
  class: n.headerWrapper(),
9622
9649
  style: {
9623
9650
  position: "sticky",
@@ -9650,14 +9677,14 @@ const Ha = /* @__PURE__ */ Q({
9650
9677
  style: Re
9651
9678
  }, [d(it, {
9652
9679
  columns: I.value
9653
- }, null), e.showHeader !== !1 && d(Ao, {
9680
+ }, null), e.showHeader !== !1 && d(_o, {
9654
9681
  rows: P.value,
9655
9682
  theadClass: n.thead(),
9656
9683
  rowClass: n.tr(),
9657
9684
  thClass: ht.value,
9658
9685
  headerCellInnerClass: n.headerCellInner()
9659
9686
  }, null), d(Lo, {
9660
- dataSource: _.value,
9687
+ dataSource: A.value,
9661
9688
  columns: I.value,
9662
9689
  tbodyClass: n.tbody(),
9663
9690
  rowClass: n.tr(),
@@ -9673,7 +9700,7 @@ const Ha = /* @__PURE__ */ Q({
9673
9700
  }, [U && d("div", {
9674
9701
  class: n.title()
9675
9702
  }, [U]), d(Ot, {
9676
- ref: Ae,
9703
+ ref: _e,
9677
9704
  wrapClass: n.wrapper(),
9678
9705
  viewStyle: oo,
9679
9706
  onScroll: ce
@@ -9843,7 +9870,7 @@ const Ha = /* @__PURE__ */ Q({
9843
9870
  }, [t.default?.()]);
9844
9871
  };
9845
9872
  }
9846
- }), zr = /* @__PURE__ */ Q({
9873
+ }), Dr = /* @__PURE__ */ Q({
9847
9874
  name: "VTableSummaryCell",
9848
9875
  props: {
9849
9876
  index: {
@@ -9930,14 +9957,14 @@ const Ha = /* @__PURE__ */ Q({
9930
9957
  }
9931
9958
  }), Ka = Object.assign(Va, {
9932
9959
  Row: Er,
9933
- Cell: zr
9960
+ Cell: Dr
9934
9961
  }), Ja = Object.assign(Fa, {
9935
9962
  SELECTION_ALL: pr,
9936
9963
  SELECTION_INVERT: br,
9937
9964
  SELECTION_NONE: gr,
9938
9965
  EXPAND_COLUMN: yr,
9939
9966
  SELECTION_COLUMN: xr
9940
- }), Qa = Ka, es = Er, ts = zr;
9967
+ }), Qa = Ka, es = Er, ts = Dr;
9941
9968
  export {
9942
9969
  ho as Button,
9943
9970
  Zt as Checkbox,
@@ -9957,7 +9984,7 @@ export {
9957
9984
  Qa as VTableSummary,
9958
9985
  ts as VTableSummaryCell,
9959
9986
  es as VTableSummaryRow,
9960
- _n as VirtualList,
9987
+ An as VirtualList,
9961
9988
  lr as buttonTheme,
9962
9989
  nr as checkboxTheme,
9963
9990
  ae as cn,
@@ -9987,6 +10014,6 @@ export {
9987
10014
  rr as tableTheme,
9988
10015
  ir as tooltipTheme,
9989
10016
  en as tv,
9990
- zo as useColumns,
10017
+ Do as useColumns,
9991
10018
  tt as useTheme
9992
10019
  };