@vtable-guild/vtable-guild 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { defineComponent as Ft, inject as zt, computed as n, provide as he, ref as H, onMounted as Ot, onBeforeUnmount as Pt, watch as D, createVNode as a, Fragment as kt, isVNode as At } from "vue";
1
+ import { defineComponent as Nt, inject as Ft, computed as n, provide as he, ref as H, onMounted as zt, onBeforeUnmount as Ot, watch as D, createVNode as a, Fragment as Pt, isVNode as kt } from "vue";
2
2
  import "../../../core/src/utils/tv.mjs";
3
- import { prefixVtgClassNames as L } from "../../../core/src/utils/classPrefix.mjs";
3
+ import { prefixThemeConfig as At, prefixVtgClassNames as L } from "../../../core/src/utils/classPrefix.mjs";
4
4
  import { mergeThemeConfigs as S, useTheme as Kt } from "../../../core/src/composables/useTheme.mjs";
5
5
  import { mergeDeep as B } from "../../../core/src/utils/mergeDeep.mjs";
6
- import xe from "../../../core/src/components/Scrollbar.mjs";
7
- import { VTABLE_GUILD_INJECTION_KEY as Ce } from "../../../core/src/plugin/index.mjs";
6
+ import Ce from "../../../core/src/components/Scrollbar.mjs";
7
+ import { VTABLE_GUILD_INJECTION_KEY as xe } from "../../../core/src/plugin/index.mjs";
8
8
  import { resolveTooltipThemePreset as Wt, resolveScrollbarThemePreset as _t, resolveRadioThemePreset as Mt, resolveInputThemePreset as jt, resolveCheckboxThemePreset as Vt, resolveButtonThemePreset as Ut, resolveTableThemePreset as Gt, resolveTableLocalePreset as Yt, resolveBuiltInTableLocale as Xt } from "../../../theme/src/presets/index.mjs";
9
9
  import { antdvTableCompatClasses as $t } from "../../../theme/src/compat/antdv-table.mjs";
10
10
  import { getEllipsisConfig as Jt } from "../utils/cell.mjs";
@@ -30,45 +30,45 @@ import { useColumns as Re } from "../composables/useColumns.mjs";
30
30
  import { useSorter as fl } from "../composables/useSorter.mjs";
31
31
  import { useFilter as ml } from "../composables/useFilter.mjs";
32
32
  import { useSelection as pl } from "../composables/useSelection.mjs";
33
- import { cn as x } from "tailwind-variants";
33
+ import { cn as C } from "tailwind-variants";
34
34
  function De(l) {
35
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !At(l);
35
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !kt(l);
36
36
  }
37
37
  const vl = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
38
38
  function Ee() {
39
39
  if (typeof window > "u")
40
40
  return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
41
41
  const l = window.innerWidth, d = /* @__PURE__ */ new Set();
42
- return vl.forEach(([i, r]) => {
43
- if (i === "xs") {
42
+ return vl.forEach(([s, r]) => {
43
+ if (s === "xs") {
44
44
  l < 576 && d.add("xs");
45
45
  return;
46
46
  }
47
- l >= r && d.add(i);
47
+ l >= r && d.add(s);
48
48
  }), d;
49
49
  }
50
50
  function Ie(l, d) {
51
- return l.reduce((i, r) => {
51
+ return l.reduce((s, r) => {
52
52
  if (typeof r == "symbol")
53
- return i.push(r), i;
54
- if (r.responsive?.length && !r.responsive.some((w) => d.has(w)))
55
- return i;
56
- const v = r.fixed === !0 ? "left" : r.fixed;
53
+ return s.push(r), s;
54
+ if (r.responsive?.length && !r.responsive.some((m) => d.has(m)))
55
+ return s;
56
+ const w = r.fixed === !0 ? "left" : r.fixed;
57
57
  if ("children" in r && Array.isArray(r.children)) {
58
- const w = Ie(r.children, d);
59
- return w.length === 0 || i.push({
58
+ const m = Ie(r.children, d);
59
+ return m.length === 0 || s.push({
60
60
  ...r,
61
- fixed: v,
62
- children: w
63
- }), i;
61
+ fixed: w,
62
+ children: m
63
+ }), s;
64
64
  }
65
- return i.push(v === r.fixed ? r : {
65
+ return s.push(w === r.fixed ? r : {
66
66
  ...r,
67
- fixed: v
68
- }), i;
67
+ fixed: w
68
+ }), s;
69
69
  }, []);
70
70
  }
71
- const Jl = /* @__PURE__ */ Ft({
71
+ const Jl = /* @__PURE__ */ Nt({
72
72
  name: "VTable",
73
73
  props: {
74
74
  dataSource: {
@@ -251,35 +251,35 @@ const Jl = /* @__PURE__ */ Ft({
251
251
  }
252
252
  },
253
253
  emits: {
254
- change: (l, d, i) => !0,
254
+ change: (l, d, s) => !0,
255
255
  resizeColumn: (l, d) => !0
256
256
  },
257
257
  slots: Object,
258
258
  setup(l, {
259
259
  slots: d,
260
- emit: i
260
+ emit: s
261
261
  }) {
262
- const r = zt(Ce, null), v = n(() => r?.themePreset ?? "antdv"), w = n(() => r?.cssMode ?? "prebuilt"), C = n(() => r?.classPrefix ?? "vtg"), Te = n(() => {
263
- const t = r?.theme ?? {}, o = v.value;
262
+ const r = Ft(xe, null), w = n(() => r?.themePreset ?? "antdv"), m = n(() => r?.cssMode ?? "prebuilt"), x = n(() => r?.classPrefix ?? "vtg"), Te = n(() => {
263
+ const t = r?.theme ?? {}, o = w.value, i = (u) => At(u, m.value, x.value);
264
264
  return {
265
265
  ...t,
266
- button: S(Ut(o), t.button),
267
- checkbox: S(Vt(o), t.checkbox),
268
- input: S(jt(o), t.input),
269
- radio: S(Mt(o), t.radio),
270
- scrollbar: S(_t(o), t.scrollbar),
271
- tooltip: S(Wt(o), t.tooltip)
266
+ button: S(i(Ut(o)), t.button),
267
+ checkbox: S(i(Vt(o)), t.checkbox),
268
+ input: S(i(jt(o)), t.input),
269
+ radio: S(i(Mt(o)), t.radio),
270
+ scrollbar: S(i(_t(o)), t.scrollbar),
271
+ tooltip: S(i(Wt(o)), t.tooltip)
272
272
  };
273
273
  });
274
- he(Ce, {
274
+ he(xe, {
275
275
  get themePreset() {
276
- return v.value;
276
+ return w.value;
277
277
  },
278
278
  get cssMode() {
279
- return w.value;
279
+ return m.value;
280
280
  },
281
281
  get classPrefix() {
282
- return C.value;
282
+ return x.value;
283
283
  },
284
284
  get theme() {
285
285
  return Te.value;
@@ -294,7 +294,7 @@ const Jl = /* @__PURE__ */ Ft({
294
294
  return r?.localeOverrides ?? {};
295
295
  }
296
296
  });
297
- const He = n(() => Gt(v.value) ?? cl), {
297
+ const He = n(() => Gt(w.value) ?? cl), {
298
298
  slots: e
299
299
  } = Kt("table", He, l, {
300
300
  compatClasses: $t
@@ -302,32 +302,32 @@ const Jl = /* @__PURE__ */ Ft({
302
302
  ...r?.locales ?? {},
303
303
  ...l.locales ?? {}
304
304
  })), Be = n(() => {
305
- const t = Yt(v.value), o = Xt(v.value, F.value), u = Le.value[F.value]?.table, s = B(B(t, o), u);
306
- return B(s, B(r?.localeOverrides?.table ?? {}, l.localeOverrides));
307
- }), Y = H(Ee());
305
+ const t = Yt(w.value), o = Xt(w.value, F.value), i = Le.value[F.value]?.table, u = B(B(t, o), i);
306
+ return B(u, B(r?.localeOverrides?.table ?? {}, l.localeOverrides));
307
+ }), G = H(Ee());
308
308
  function z() {
309
- Y.value = Ee();
309
+ G.value = Ee();
310
310
  }
311
- Ot(() => {
311
+ zt(() => {
312
312
  z(), window.addEventListener("resize", z);
313
- }), Pt(() => {
313
+ }), Ot(() => {
314
314
  window.removeEventListener("resize", z);
315
315
  });
316
- const X = n(() => Ie(l.columns, Y.value)), g = n(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
316
+ const Y = n(() => Ie(l.columns, G.value)), g = n(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
317
317
  leafColumns: E
318
- } = Re(() => X.value), {
318
+ } = Re(() => Y.value), {
319
319
  getSortOrder: O,
320
320
  toggleSortOrder: Ne,
321
321
  sortData: Fe,
322
322
  sorterState: ze,
323
- sorterResult: $,
323
+ sorterResult: X,
324
324
  sortColumns: Oe
325
325
  } = fl({
326
326
  columns: () => E.value,
327
327
  tableSortDirections: () => l.sortDirections,
328
328
  onSorterChange(t) {
329
329
  const o = k();
330
- i("change", P(), t, {
330
+ s("change", P(), t, {
331
331
  action: "sort",
332
332
  currentDataSource: o
333
333
  });
@@ -342,7 +342,7 @@ const Jl = /* @__PURE__ */ Ft({
342
342
  columns: () => E.value,
343
343
  onFilterChange(t) {
344
344
  const o = k();
345
- i("change", t, $.value, {
345
+ s("change", t, X.value, {
346
346
  action: "filter",
347
347
  currentDataSource: o
348
348
  });
@@ -357,8 +357,8 @@ const Jl = /* @__PURE__ */ Ft({
357
357
  return typeof l.rowKey == "function" ? l.rowKey(t) : typeof l.rowKey == "string" && l.rowKey in t ? t[l.rowKey] : o;
358
358
  }
359
359
  const {
360
- flattenData: J,
361
- rowMetaMap: q,
360
+ flattenData: $,
361
+ rowMetaMap: J,
362
362
  isTreeData: K,
363
363
  toggleTreeExpand: We,
364
364
  isTreeExpanded: _e,
@@ -377,7 +377,7 @@ const Jl = /* @__PURE__ */ Ft({
377
377
  hoverRange: je,
378
378
  setHoverRange: Ve,
379
379
  clearHoverRange: Ue
380
- } = al(100), y = n(() => K.value ? J.value.map((t) => t.record) : A.value), {
380
+ } = al(100), y = n(() => K.value ? $.value.map((t) => t.record) : A.value), {
381
381
  isSelected: Ge,
382
382
  isDisabled: Ye,
383
383
  getSelectionState: Xe,
@@ -394,7 +394,7 @@ const Jl = /* @__PURE__ */ Ft({
394
394
  visibleData: () => y.value,
395
395
  childrenColumnName: () => l.childrenColumnName,
396
396
  onSelectionChange() {
397
- i("change", P(), $.value, {
397
+ s("change", P(), X.value, {
398
398
  action: "select",
399
399
  currentDataSource: y.value
400
400
  });
@@ -406,60 +406,60 @@ const Jl = /* @__PURE__ */ Ft({
406
406
  expandable: () => l.expandable,
407
407
  getRowKey: I,
408
408
  data: () => y.value
409
- }), Q = (t) => {
409
+ }), q = (t) => {
410
410
  const o = l.expandable;
411
411
  return o ? o.rowExpandable ? o.rowExpandable(t) : !!o.expandedRowRender : !1;
412
412
  }, ot = (t, o) => {
413
- Q(t) && lt(t, o);
413
+ q(t) && lt(t, o);
414
414
  }, nt = "__vtg_selection__", at = "__vtg_expand__", rt = n(() => {
415
- const t = l.expandable, o = l.rowSelection, u = t && t.showExpandColumn !== !1 ? {
415
+ const t = l.expandable, o = l.rowSelection, i = t && t.showExpandColumn !== !1 ? {
416
416
  key: at,
417
417
  title: "",
418
418
  width: t.columnWidth ?? 48,
419
419
  align: "center",
420
420
  fixed: t.fixed === !0 ? "left" : t.fixed
421
- } : null, s = o ? {
421
+ } : null, u = o ? {
422
422
  key: nt,
423
423
  title: "",
424
424
  width: o.columnWidth ?? 48,
425
425
  align: "center",
426
426
  fixed: o.fixed === !0 ? "left" : o.fixed || void 0
427
427
  } : null, h = [];
428
- let m = !1, p = !1;
429
- for (const c of X.value) {
428
+ let p = !1, v = !1;
429
+ for (const c of Y.value) {
430
430
  if (c === dl) {
431
- u && !m && (h.push(u), m = !0);
431
+ i && !p && (h.push(i), p = !0);
432
432
  continue;
433
433
  }
434
434
  if (c === il) {
435
- s && !p && (h.push(s), p = !0);
435
+ u && !v && (h.push(u), v = !0);
436
436
  continue;
437
437
  }
438
438
  h.push(c);
439
439
  }
440
- return u && !m && h.unshift(u), s && !p && h.unshift(s), h;
440
+ return i && !p && h.unshift(i), u && !v && h.unshift(u), h;
441
441
  }), {
442
442
  leafColumns: f,
443
443
  headerRows: W
444
444
  } = Re(() => rt.value), dt = n(() => W.value.length > 1), {
445
- headerWrapRef: Z,
446
- bodyWrapRef: ee,
447
- scrollState: te,
448
- handleBodyScroll: le,
449
- fixedOffsets: oe,
445
+ headerWrapRef: Q,
446
+ bodyWrapRef: Z,
447
+ scrollState: ee,
448
+ handleBodyScroll: te,
449
+ fixedOffsets: le,
450
450
  syncHorizontalScroll: it
451
451
  } = Qt({
452
452
  displayColumns: () => f.value
453
- }), ne = n(() => qt({
453
+ }), oe = n(() => qt({
454
454
  compatClass: b,
455
- fixedOffsets: oe,
456
- scrollState: te,
455
+ fixedOffsets: le,
456
+ scrollState: ee,
457
457
  empty: y.value.length === 0,
458
458
  fixedHeader: l.scroll?.y !== void 0,
459
- fixedColumn: ae.value && _.value,
459
+ fixedColumn: ae.value && ne.value,
460
460
  horizontalScroll: ae.value,
461
- layoutFixed: M.value === "fixed"
462
- })), st = n(() => l.showHeader !== !1 && (!!l.scroll?.y || !!l.sticky)), _ = n(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), ae = n(() => l.scroll?.x !== void 0 || !!l.expandable?.fixed), ut = n(() => E.value.some((t) => Jt(t).enabled)), ct = n(() => l.scroll?.x !== void 0 || _.value), M = n(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || _.value || ut.value ? "fixed" : "auto"), ft = n(() => {
461
+ layoutFixed: _.value === "fixed"
462
+ })), st = n(() => l.showHeader !== !1 && (!!l.scroll?.y || !!l.sticky)), ne = n(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), ae = n(() => l.scroll?.x !== void 0 || !!l.expandable?.fixed), ut = n(() => E.value.some((t) => Jt(t).enabled)), _ = n(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || ne.value || ut.value ? "fixed" : "auto"), ct = n(() => {
463
463
  if (g.value)
464
464
  return {
465
465
  position: "sticky",
@@ -468,15 +468,15 @@ const Jl = /* @__PURE__ */ Ft({
468
468
  };
469
469
  }), {
470
470
  enabled: T,
471
- itemHeight: mt,
472
- listHeight: pt,
473
- fixedHeight: vt
471
+ itemHeight: ft,
472
+ listHeight: mt,
473
+ fixedHeight: pt
474
474
  } = ol({
475
475
  virtual: () => l.virtual,
476
476
  scrollY: () => l.scroll?.y,
477
477
  size: () => l.size,
478
478
  rowHeight: () => l.rowHeight
479
- }), re = n(() => E.value.some((t) => !!t.customCell || !!t.customRender)), j = n(() => !dt.value || l.bordered ? {
479
+ }), re = n(() => E.value.some((t) => !!t.customCell || !!t.customRender)), M = n(() => !dt.value || l.bordered ? {
480
480
  table: "",
481
481
  th: "",
482
482
  td: ""
@@ -484,26 +484,26 @@ const Jl = /* @__PURE__ */ Ft({
484
484
  table: e.groupedHeaderTable(),
485
485
  th: e.groupedHeaderTh(),
486
486
  td: e.groupedHeaderTd()
487
- }), R = n(() => x(e.table(), j.value.table) ?? ""), de = n(() => x(e.th(), j.value.th) ?? ""), V = n(() => x(e.td(), j.value.td) ?? "");
487
+ }), R = n(() => C(e.table(), M.value.table) ?? ""), de = n(() => C(e.th(), M.value.th) ?? ""), j = n(() => C(e.td(), M.value.td) ?? "");
488
488
  D([T, re], ([t, o]) => {
489
489
  }, {
490
490
  immediate: !0
491
491
  });
492
492
  const ie = H(null), se = H(null);
493
493
  D(() => ie.value?.wrapRef, (t) => {
494
- t && (ee.value = t);
494
+ t && (Z.value = t);
495
495
  }), D(() => se.value?.wrapRef, (t) => {
496
- t && (ee.value = t);
496
+ t && (Z.value = t);
497
497
  });
498
498
  const {
499
499
  columnWidths: ue,
500
- startResize: wt,
501
- isResizing: yt
500
+ startResize: vt,
501
+ isResizing: wt
502
502
  } = ll({
503
503
  onResizeColumn(t, o) {
504
- i("resizeColumn", t, o);
504
+ s("resizeColumn", t, o);
505
505
  }
506
- }), ht = n(() => el(f.value)), ce = n(() => l.virtualColumn ? T.value ? re.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : ht.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), U = n(() => l.virtualColumn && ce.value === null);
506
+ }), yt = n(() => el(f.value)), ce = n(() => l.virtualColumn ? T.value ? re.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : yt.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), V = n(() => l.virtualColumn && ce.value === null);
507
507
  D(ce, (t) => {
508
508
  }, {
509
509
  immediate: !0
@@ -511,47 +511,47 @@ const Jl = /* @__PURE__ */ Ft({
511
511
  const {
512
512
  metrics: fe
513
513
  } = Zt({
514
- enabled: () => U.value,
515
- headerEl: () => Z.value,
514
+ enabled: () => V.value,
515
+ headerEl: () => Q.value,
516
516
  columns: () => f.value,
517
517
  columnWidths: ue,
518
518
  hasHeader: () => l.showHeader !== !1
519
519
  });
520
- D([U, fe], ([t, o]) => {
520
+ D([V, fe], ([t, o]) => {
521
521
  !t || o || l.showHeader;
522
522
  }, {
523
523
  immediate: !0
524
524
  });
525
- function xt(t) {
526
- return K.value ? q.value.get(t)?.level ?? 0 : 0;
525
+ function ht(t) {
526
+ return K.value ? J.value.get(t)?.level ?? 0 : 0;
527
527
  }
528
528
  function Ct(t, o) {
529
- return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o, xt(t)) : l.rowClassName : "";
529
+ return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o, ht(t)) : l.rowClassName : "";
530
530
  }
531
- function gt(t, o) {
531
+ function xt(t, o) {
532
532
  return l.customRow?.(t, o);
533
533
  }
534
- function St(t, o) {
534
+ function gt(t, o) {
535
535
  return l.customHeaderRow?.(t, o);
536
536
  }
537
- function bt(t) {
537
+ function St(t) {
538
538
  if (typeof t.title != "function")
539
539
  return t.title ?? "";
540
- const o = t, u = Oe.value.filter((s) => !!s.column);
540
+ const o = t, i = Oe.value.filter((u) => !!u.column);
541
541
  return t.title({
542
542
  sortOrder: o.sorter ? O(o) ?? void 0 : void 0,
543
543
  sortColumn: ze.value.column,
544
- sortColumns: u.length > 0 ? u : void 0,
544
+ sortColumns: i.length > 0 ? i : void 0,
545
545
  filters: P()
546
546
  });
547
547
  }
548
- function Rt(t) {
548
+ function bt(t) {
549
549
  return !!(t.sorter && O(t));
550
550
  }
551
551
  const me = {
552
552
  width: "100%",
553
553
  minWidth: "100%"
554
- }, Dt = {
554
+ }, Rt = {
555
555
  thSortable: e.thSortable,
556
556
  thSorted: e.thSorted,
557
557
  tdSorted: e.tdSorted,
@@ -628,14 +628,14 @@ const Jl = /* @__PURE__ */ Ft({
628
628
  resizeHandle: e.resizeHandle,
629
629
  tdRowHover: e.tdRowHover,
630
630
  tdRowSelectedHover: e.tdRowSelectedHover
631
- }, pe = n(() => sl(v.value)), ve = H(!1);
631
+ }, pe = n(() => sl(w.value)), ve = H(!1);
632
632
  return he(rl, {
633
633
  bodyCell: d.bodyCell,
634
634
  headerCell: d.headerCell,
635
635
  empty: d.empty,
636
636
  getSortOrder: O,
637
637
  toggleSortOrder: Ne,
638
- isColumnSorted: Rt,
638
+ isColumnSorted: bt,
639
639
  getFilteredValue: Pe,
640
640
  confirmFilter: ke,
641
641
  resetFilter: Ae,
@@ -643,12 +643,12 @@ const Jl = /* @__PURE__ */ Ft({
643
643
  customFilterIcon: d.customFilterIcon,
644
644
  showSorterTooltip: n(() => l.showSorterTooltip ?? pe.value.showSorterTooltip),
645
645
  headerEllipsis: n(() => l.headerEllipsis),
646
- subThemeSlots: Dt,
646
+ subThemeSlots: Rt,
647
647
  presetConfig: pe,
648
- themePreset: v,
649
- cssMode: w,
650
- classPrefix: C,
651
- vtgClass: (t) => L(t, w.value, C.value),
648
+ themePreset: w,
649
+ cssMode: m,
650
+ classPrefix: x,
651
+ vtgClass: (t) => L(t, m.value, x.value),
652
652
  compatClass: b,
653
653
  localeName: F,
654
654
  locale: Be,
@@ -663,32 +663,32 @@ const Jl = /* @__PURE__ */ Ft({
663
663
  invertSelection: Qe,
664
664
  clearSelection: Ze,
665
665
  getChangeableRowKeys: et,
666
- fixedOffsets: oe,
667
- scrollState: te,
666
+ fixedOffsets: le,
667
+ scrollState: ee,
668
668
  leafColumnCount: n(() => f.value.length),
669
669
  bordered: n(() => l.bordered),
670
- tableLayout: M,
670
+ tableLayout: _,
671
671
  sticky: n(() => l.sticky),
672
- getRowProps: gt,
672
+ getRowProps: xt,
673
673
  getRowClassName: Ct,
674
- getHeaderRowProps: St,
675
- getColumnTitle: bt,
674
+ getHeaderRowProps: gt,
675
+ getColumnTitle: St,
676
676
  getPopupContainer: l.getPopupContainer,
677
677
  transformCellText: l.transformCellText,
678
678
  expandable: () => l.expandable,
679
679
  isExpanded: tt,
680
680
  toggleExpand: ot,
681
- isRowExpandable: Q,
681
+ isRowExpandable: q,
682
682
  columnWidths: ue,
683
- startResize: wt,
684
- isResizing: () => yt.value,
683
+ startResize: vt,
684
+ isResizing: () => wt.value,
685
685
  displayColumns: n(() => f.value),
686
686
  registerSummaryFixed: (t) => {
687
687
  ve.value = t;
688
688
  },
689
689
  isTreeData: K,
690
- treeFlattenData: J,
691
- getFlattenRow: (t) => q.value.get(t),
690
+ treeFlattenData: $,
691
+ getFlattenRow: (t) => J.value.get(t),
692
692
  toggleTreeExpand: We,
693
693
  isTreeExpanded: _e,
694
694
  treeIndentSize: Me,
@@ -700,31 +700,31 @@ const Jl = /* @__PURE__ */ Ft({
700
700
  let t;
701
701
  const o = l.title ? l.title(y.value) : d.title ? d.title({
702
702
  data: y.value
703
- }) : null, u = l.footer ? l.footer(y.value) : d.footer ? d.footer({
703
+ }) : null, i = l.footer ? l.footer(y.value) : d.footer ? d.footer({
704
704
  data: y.value
705
- }) : null, s = d.summary ? d.summary() : null, h = ve.value !== !1, m = l.scroll, p = {
706
- tableLayout: M.value
705
+ }) : null, u = d.summary ? d.summary() : null, h = ve.value !== !1, p = l.scroll, v = {
706
+ tableLayout: _.value
707
707
  };
708
- m?.x ? (p.width = typeof m.x == "number" ? `${m.x}px` : m.x, p.minWidth = "100%") : p.width = ct.value ? "max-content" : "100%";
709
- const c = l.loading, Et = c === !0 || typeof c == "object" && c !== null && c.spinning !== !1, It = typeof c == "object" && c !== null ? c.indicator : void 0, Tt = typeof c == "object" && c !== null ? c.tip : void 0, we = Et && (d.loading ? a(be, {
708
+ p?.x ? (v.width = typeof p.x == "number" ? `${p.x}px` : p.x, v.minWidth = "100%") : v.width = "100%";
709
+ const c = l.loading, Dt = c === !0 || typeof c == "object" && c !== null && c.spinning !== !1, Et = typeof c == "object" && c !== null ? c.indicator : void 0, It = typeof c == "object" && c !== null ? c.tip : void 0, we = Dt && (d.loading ? a(be, {
710
710
  loadingClass: e.loading()
711
711
  }, De(t = d.loading()) ? t : {
712
712
  default: () => [t]
713
713
  }) : a(be, {
714
714
  loadingClass: e.loading(),
715
- indicator: It,
716
- tip: Tt
715
+ indicator: Et,
716
+ tip: It
717
717
  }, null));
718
718
  if (st.value) {
719
- const Ht = l.showHeader !== !1 ? a("div", {
720
- ref: Z,
721
- class: x(e.headerWrapper(), g.value && b?.("sticky-holder")),
722
- style: ft.value
719
+ const Tt = l.showHeader !== !1 ? a("div", {
720
+ ref: Q,
721
+ class: C(e.headerWrapper(), g.value && b?.("sticky-holder")),
722
+ style: ct.value
723
723
  }, [a("div", {
724
- class: L("block w-full min-w-full", w.value, C.value)
724
+ class: L("block w-full min-w-full", m.value, x.value)
725
725
  }, [a("table", {
726
726
  class: R.value,
727
- style: p
727
+ style: v
728
728
  }, [a(N, {
729
729
  columns: f.value
730
730
  }, null), a(ge, {
@@ -733,36 +733,36 @@ const Jl = /* @__PURE__ */ Ft({
733
733
  rowClass: e.tr(),
734
734
  thClass: de.value,
735
735
  headerCellInnerClass: e.headerCellInner()
736
- }, null)])])]) : null, Lt = T.value ? a(ul, {
736
+ }, null)])])]) : null, Ht = T.value ? a(ul, {
737
737
  dataSource: y.value,
738
738
  columns: f.value,
739
739
  tbodyClass: e.tbody(),
740
740
  rowClass: e.tr(),
741
- tdClass: V.value,
741
+ tdClass: j.value,
742
742
  emptyClass: e.empty(),
743
743
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
744
744
  tableClass: R.value,
745
- tableStyle: p,
745
+ tableStyle: v,
746
746
  rowKey: l.rowKey,
747
- height: pt.value,
748
- itemHeight: mt.value,
749
- fixedHeight: vt.value,
750
- virtualColumn: U.value,
747
+ height: mt.value,
748
+ itemHeight: ft.value,
749
+ fixedHeight: pt.value,
750
+ virtualColumn: V.value,
751
751
  columnMetrics: fe.value,
752
752
  showScrollBar: "hover",
753
753
  onVirtualScroll: (ye) => {
754
754
  it(ye.x, ye.maxX);
755
755
  }
756
- }, null) : null, Bt = T.value ? null : a(xe, {
756
+ }, null) : null, Lt = T.value ? null : a(Ce, {
757
757
  ref: ie,
758
- maxHeight: m?.y !== void 0 ? typeof m.y == "number" ? m.y : String(m.y) : void 0,
758
+ maxHeight: p?.y !== void 0 ? typeof p.y == "number" ? p.y : String(p.y) : void 0,
759
759
  wrapClass: e.bodyWrapper(),
760
760
  viewStyle: me,
761
- onScroll: le
761
+ onScroll: te
762
762
  }, {
763
763
  default: () => [a("table", {
764
764
  class: R.value,
765
- style: p
765
+ style: v
766
766
  }, [a(N, {
767
767
  columns: f.value
768
768
  }, null), a(Se, {
@@ -770,15 +770,15 @@ const Jl = /* @__PURE__ */ Ft({
770
770
  columns: f.value,
771
771
  tbodyClass: e.tbody(),
772
772
  rowClass: e.tr(),
773
- tdClass: V.value,
773
+ tdClass: j.value,
774
774
  emptyClass: e.empty(),
775
775
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
776
776
  rowKey: l.rowKey
777
- }, null), s && !h && a("tfoot", {
777
+ }, null), u && !h && a("tfoot", {
778
778
  class: e.summary()
779
- }, [s])])]
780
- }), Nt = s && h ? a("div", {
781
- class: x(e.headerWrapper(), b?.("summary"), g.value && b?.("sticky-holder")),
779
+ }, [u])])]
780
+ }), Bt = u && h ? a("div", {
781
+ class: C(e.headerWrapper(), b?.("summary"), g.value && b?.("sticky-holder")),
782
782
  style: {
783
783
  position: "sticky",
784
784
  bottom: `${g.value?.offsetSummary ?? 0}px`,
@@ -786,28 +786,28 @@ const Jl = /* @__PURE__ */ Ft({
786
786
  overflow: "hidden"
787
787
  }
788
788
  }, [a("div", {
789
- class: L("block w-full min-w-full", w.value, C.value)
789
+ class: L("block w-full min-w-full", m.value, x.value)
790
790
  }, [a("table", {
791
791
  class: R.value,
792
- style: p
792
+ style: v
793
793
  }, [a(N, {
794
794
  columns: f.value
795
795
  }, null), a("tfoot", {
796
796
  class: e.summary()
797
- }, [s])])])]) : null;
797
+ }, [u])])])]) : null;
798
798
  return a("div", {
799
- class: x(e.root(), ne.value)
799
+ class: C(e.root(), oe.value)
800
800
  }, [o && a("div", {
801
801
  class: e.title()
802
802
  }, [o]), a("div", {
803
- class: x(e.wrapper(), g.value && L("overflow-clip", w.value, C.value))
804
- }, [Ht, Lt, Bt, Nt, we]), u && a("div", {
803
+ class: C(e.wrapper(), g.value && L("overflow-clip", m.value, x.value))
804
+ }, [Tt, Ht, Lt, Bt, we]), i && a("div", {
805
805
  class: e.footer()
806
- }, [u])]);
806
+ }, [i])]);
807
807
  }
808
- const G = a(kt, null, [a("table", {
808
+ const U = a(Pt, null, [a("table", {
809
809
  class: R.value,
810
- style: p
810
+ style: v
811
811
  }, [a(N, {
812
812
  columns: f.value
813
813
  }, null), l.showHeader !== !1 && a(ge, {
@@ -821,27 +821,27 @@ const Jl = /* @__PURE__ */ Ft({
821
821
  columns: f.value,
822
822
  tbodyClass: e.tbody(),
823
823
  rowClass: e.tr(),
824
- tdClass: V.value,
824
+ tdClass: j.value,
825
825
  emptyClass: e.empty(),
826
826
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
827
827
  rowKey: l.rowKey
828
- }, null), s && a("tfoot", {
828
+ }, null), u && a("tfoot", {
829
829
  class: e.summary()
830
- }, [s])]), we]);
830
+ }, [u])]), we]);
831
831
  return a("div", {
832
- class: x(e.root(), ne.value)
832
+ class: C(e.root(), oe.value)
833
833
  }, [o && a("div", {
834
834
  class: e.title()
835
- }, [o]), a(xe, {
835
+ }, [o]), a(Ce, {
836
836
  ref: se,
837
837
  wrapClass: e.wrapper(),
838
838
  viewStyle: me,
839
- onScroll: le
840
- }, De(G) ? G : {
841
- default: () => [G]
842
- }), u && a("div", {
839
+ onScroll: te
840
+ }, De(U) ? U : {
841
+ default: () => [U]
842
+ }), i && a("div", {
843
843
  class: e.footer()
844
- }, [u])]);
844
+ }, [i])]);
845
845
  };
846
846
  }
847
847
  });