@aimerthyr/virtual-table 1.1.0 → 1.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isRef as no, shallowRef as zt, watch as Re, ref as k, watchEffect as mn, defineComponent as q, h as W, unref as w, computed as F, triggerRef as jt, onScopeDispose as vn, openBlock as y, createElementBlock as b, normalizeClass as H, normalizeStyle as Z, createElementVNode as P, renderSlot as V, createVNode as pe, normalizeProps as Te, guardReactiveProps as Qe, createBlock as ie, resolveDynamicComponent as et, mergeProps as ne, getCurrentScope as oo, shallowReadonly as Me, onMounted as Cn, onUnmounted as io, Fragment as oe, Teleport as ro, Transition as so, withCtx as X, createCommentVNode as ee, useSlots as wn, createSlots as Sn, withModifiers as lo, useCssVars as ao, renderList as me, render as xn, toDisplayString as Ne, useModel as xe, onBeforeUnmount as uo, nextTick as Oe, withDirectives as co, createTextVNode as Wt, mergeModels as go, mergeDefaults as fo } from "vue";
1
+ import { isRef as no, shallowRef as At, watch as Re, ref as k, watchEffect as vn, defineComponent as q, h as W, unref as w, computed as F, triggerRef as Wt, onScopeDispose as Cn, openBlock as y, createElementBlock as b, normalizeClass as H, normalizeStyle as Z, createElementVNode as P, renderSlot as V, createVNode as pe, normalizeProps as Te, guardReactiveProps as Qe, createBlock as ie, resolveDynamicComponent as et, mergeProps as ne, getCurrentScope as oo, shallowReadonly as Me, onMounted as wn, onUnmounted as io, Fragment as oe, Teleport as ro, Transition as so, withCtx as X, createCommentVNode as ee, useSlots as Sn, createSlots as Rt, withModifiers as lo, useCssVars as ao, renderList as me, render as xn, toDisplayString as Ne, useModel as xe, onBeforeUnmount as uo, nextTick as Oe, withDirectives as co, createTextVNode as qt, mergeModels as go, mergeDefaults as fo } from "vue";
2
2
  function ve(e, o) {
3
3
  return typeof e == "function" ? e(o) : e;
4
4
  }
@@ -124,7 +124,7 @@ function vo(e, o, t, n) {
124
124
  return f;
125
125
  }
126
126
  const N = "debugHeaders";
127
- function qt(e, o, t) {
127
+ function Ut(e, o, t) {
128
128
  var n;
129
129
  let r = {
130
130
  id: (n = t.id) != null ? n : o.id,
@@ -205,7 +205,7 @@ function Ue(e, o, t, n) {
205
205
  if (S && C.column.parent ? x = C.column.parent : (x = C.column, M = !0), v && v?.column === x)
206
206
  v.subHeaders.push(C);
207
207
  else {
208
- const z = qt(t, x, {
208
+ const z = Ut(t, x, {
209
209
  id: [n, g, x.id, C?.id].filter(Boolean).join("_"),
210
210
  isPlaceholder: M,
211
211
  placeholderId: M ? `${p.filter((O) => O.column === x).length}` : void 0,
@@ -216,7 +216,7 @@ function Ue(e, o, t, n) {
216
216
  }
217
217
  m.headers.push(C), C.headerGroup = m;
218
218
  }), a.push(m), g > 0 && u(p, g - 1);
219
- }, c = o.map((d, g) => qt(t, d, {
219
+ }, c = o.map((d, g) => Ut(t, d, {
220
220
  depth: s,
221
221
  index: g
222
222
  }));
@@ -327,12 +327,12 @@ const bn = (e, o, t) => e.getValue(o) === t;
327
327
  bn.autoRemove = (e) => re(e);
328
328
  const En = (e, o, t) => e.getValue(o) == t;
329
329
  En.autoRemove = (e) => re(e);
330
- const At = (e, o, t) => {
330
+ const Vt = (e, o, t) => {
331
331
  let [n, i] = t;
332
332
  const r = e.getValue(o);
333
333
  return r >= n && r <= i;
334
334
  };
335
- At.resolveFilterValue = (e) => {
335
+ Vt.resolveFilterValue = (e) => {
336
336
  let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, i = typeof t != "number" ? parseFloat(t) : t, r = o === null || Number.isNaN(n) ? -1 / 0 : n, s = t === null || Number.isNaN(i) ? 1 / 0 : i;
337
337
  if (r > s) {
338
338
  const l = r;
@@ -340,7 +340,7 @@ At.resolveFilterValue = (e) => {
340
340
  }
341
341
  return [r, s];
342
342
  };
343
- At.autoRemove = (e) => re(e) || re(e[0]) && re(e[1]);
343
+ Vt.autoRemove = (e) => re(e) || re(e[0]) && re(e[1]);
344
344
  const fe = {
345
345
  includesString: yn,
346
346
  includesStringSensitive: Rn,
@@ -350,7 +350,7 @@ const fe = {
350
350
  arrIncludesSome: Mn,
351
351
  equals: bn,
352
352
  weakEquals: En,
353
- inNumberRange: At
353
+ inNumberRange: Vt
354
354
  };
355
355
  function re(e) {
356
356
  return e == null || e === "";
@@ -390,7 +390,7 @@ const xo = {
390
390
  }, e.setFilterValue = (t) => {
391
391
  o.setColumnFilters((n) => {
392
392
  const i = e.getFilterFn(), r = n?.find((c) => c.id === e.id), s = ve(t, r ? r.value : void 0);
393
- if (Ut(i, s, e)) {
393
+ if (Kt(i, s, e)) {
394
394
  var l;
395
395
  return (l = n?.filter((c) => c.id !== e.id)) != null ? l : [];
396
396
  }
@@ -417,7 +417,7 @@ const xo = {
417
417
  const l = t.find((a) => a.id === s.id);
418
418
  if (l) {
419
419
  const a = l.getFilterFn();
420
- if (Ut(a, s.value, l))
420
+ if (Kt(a, s.value, l))
421
421
  return !1;
422
422
  }
423
423
  return !0;
@@ -430,7 +430,7 @@ const xo = {
430
430
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
431
431
  }
432
432
  };
433
- function Ut(e, o, t) {
433
+ function Kt(e, o, t) {
434
434
  return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
435
435
  }
436
436
  const yo = (e, o, t) => t.reduce((n, i) => {
@@ -1007,9 +1007,9 @@ const Ho = {
1007
1007
  };
1008
1008
  };
1009
1009
  }
1010
- }, Rt = 0, _t = 10, Ct = () => ({
1011
- pageIndex: Rt,
1012
- pageSize: _t
1010
+ }, _t = 0, Ft = 10, Ct = () => ({
1011
+ pageIndex: _t,
1012
+ pageSize: Ft
1013
1013
  }), No = {
1014
1014
  getInitialState: (e) => ({
1015
1015
  ...e,
@@ -1054,10 +1054,10 @@ const Ho = {
1054
1054
  });
1055
1055
  }, e.resetPageIndex = (n) => {
1056
1056
  var i, r;
1057
- e.setPageIndex(n ? Rt : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : Rt);
1057
+ e.setPageIndex(n ? _t : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : _t);
1058
1058
  }, e.resetPageSize = (n) => {
1059
1059
  var i, r;
1060
- e.setPageSize(n ? _t : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : _t);
1060
+ e.setPageSize(n ? Ft : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : Ft);
1061
1061
  }, e.setPageSize = (n) => {
1062
1062
  e.setPagination((i) => {
1063
1063
  const r = Math.max(1, ve(n, i.pageSize)), s = i.pageSize * i.pageIndex, l = Math.floor(s / r);
@@ -1229,7 +1229,7 @@ const Ho = {
1229
1229
  ...t
1230
1230
  };
1231
1231
  return e.getRowModel().rows.forEach((r) => {
1232
- Ft(i, r.id, n, !0, e);
1232
+ $t(i, r.id, n, !0, e);
1233
1233
  }), i;
1234
1234
  }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = R(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? St(e, t) : {
1235
1235
  rows: [],
@@ -1278,23 +1278,23 @@ const Ho = {
1278
1278
  const l = {
1279
1279
  ...r
1280
1280
  };
1281
- return Ft(l, e.id, t, (s = n?.selectChildren) != null ? s : !0, o), l;
1281
+ return $t(l, e.id, t, (s = n?.selectChildren) != null ? s : !0, o), l;
1282
1282
  });
1283
1283
  }, e.getIsSelected = () => {
1284
1284
  const {
1285
1285
  rowSelection: t
1286
1286
  } = o.getState();
1287
- return Vt(e, t);
1287
+ return Dt(e, t);
1288
1288
  }, e.getIsSomeSelected = () => {
1289
1289
  const {
1290
1290
  rowSelection: t
1291
1291
  } = o.getState();
1292
- return $t(e, t) === "some";
1292
+ return Mt(e, t) === "some";
1293
1293
  }, e.getIsAllSubRowsSelected = () => {
1294
1294
  const {
1295
1295
  rowSelection: t
1296
1296
  } = o.getState();
1297
- return $t(e, t) === "all";
1297
+ return Mt(e, t) === "all";
1298
1298
  }, e.getCanSelect = () => {
1299
1299
  var t;
1300
1300
  return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
@@ -1312,16 +1312,16 @@ const Ho = {
1312
1312
  };
1313
1313
  };
1314
1314
  }
1315
- }, Ft = (e, o, t, n, i) => {
1315
+ }, $t = (e, o, t, n, i) => {
1316
1316
  var r;
1317
1317
  const s = i.getRow(o, !0);
1318
- t ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = s.subRows) != null && r.length && s.getCanSelectSubRows() && s.subRows.forEach((l) => Ft(e, l.id, t, n, i));
1318
+ t ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = s.subRows) != null && r.length && s.getCanSelectSubRows() && s.subRows.forEach((l) => $t(e, l.id, t, n, i));
1319
1319
  };
1320
1320
  function St(e, o) {
1321
1321
  const t = e.getState().rowSelection, n = [], i = {}, r = function(s, l) {
1322
1322
  return s.map((a) => {
1323
1323
  var u;
1324
- const c = Vt(a, t);
1324
+ const c = Dt(a, t);
1325
1325
  if (c && (n.push(a), i[a.id] = a), (u = a.subRows) != null && u.length && (a = {
1326
1326
  ...a,
1327
1327
  subRows: r(a.subRows)
@@ -1335,33 +1335,33 @@ function St(e, o) {
1335
1335
  rowsById: i
1336
1336
  };
1337
1337
  }
1338
- function Vt(e, o) {
1338
+ function Dt(e, o) {
1339
1339
  var t;
1340
1340
  return (t = o[e.id]) != null ? t : !1;
1341
1341
  }
1342
- function $t(e, o, t) {
1342
+ function Mt(e, o, t) {
1343
1343
  var n;
1344
1344
  if (!((n = e.subRows) != null && n.length)) return !1;
1345
1345
  let i = !0, r = !1;
1346
1346
  return e.subRows.forEach((s) => {
1347
- if (!(r && !i) && (s.getCanSelect() && (Vt(s, o) ? r = !0 : i = !1), s.subRows && s.subRows.length)) {
1348
- const l = $t(s, o);
1347
+ if (!(r && !i) && (s.getCanSelect() && (Dt(s, o) ? r = !0 : i = !1), s.subRows && s.subRows.length)) {
1348
+ const l = Mt(s, o);
1349
1349
  l === "all" ? r = !0 : (l === "some" && (r = !0), i = !1);
1350
1350
  }
1351
1351
  }), i ? "all" : r ? "some" : !1;
1352
1352
  }
1353
- const Mt = /([0-9]+)/gm, Wo = (e, o, t) => In(we(e.getValue(t)).toLowerCase(), we(o.getValue(t)).toLowerCase()), qo = (e, o, t) => In(we(e.getValue(t)), we(o.getValue(t))), Uo = (e, o, t) => Dt(we(e.getValue(t)).toLowerCase(), we(o.getValue(t)).toLowerCase()), Ko = (e, o, t) => Dt(we(e.getValue(t)), we(o.getValue(t))), Xo = (e, o, t) => {
1353
+ const bt = /([0-9]+)/gm, Wo = (e, o, t) => In(we(e.getValue(t)).toLowerCase(), we(o.getValue(t)).toLowerCase()), qo = (e, o, t) => In(we(e.getValue(t)), we(o.getValue(t))), Uo = (e, o, t) => Ot(we(e.getValue(t)).toLowerCase(), we(o.getValue(t)).toLowerCase()), Ko = (e, o, t) => Ot(we(e.getValue(t)), we(o.getValue(t))), Xo = (e, o, t) => {
1354
1354
  const n = e.getValue(t), i = o.getValue(t);
1355
1355
  return n > i ? 1 : n < i ? -1 : 0;
1356
- }, Yo = (e, o, t) => Dt(e.getValue(t), o.getValue(t));
1357
- function Dt(e, o) {
1356
+ }, Yo = (e, o, t) => Ot(e.getValue(t), o.getValue(t));
1357
+ function Ot(e, o) {
1358
1358
  return e === o ? 0 : e > o ? 1 : -1;
1359
1359
  }
1360
1360
  function we(e) {
1361
1361
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1362
1362
  }
1363
1363
  function In(e, o) {
1364
- const t = e.split(Mt).filter(Boolean), n = o.split(Mt).filter(Boolean);
1364
+ const t = e.split(bt).filter(Boolean), n = o.split(bt).filter(Boolean);
1365
1365
  for (; t.length && n.length; ) {
1366
1366
  const i = t.shift(), r = n.shift(), s = parseInt(i, 10), l = parseInt(r, 10), a = [s, l].sort();
1367
1367
  if (isNaN(a[0])) {
@@ -1408,7 +1408,7 @@ const ke = {
1408
1408
  const r = i?.getValue(e.id);
1409
1409
  if (Object.prototype.toString.call(r) === "[object Date]")
1410
1410
  return ke.datetime;
1411
- if (typeof r == "string" && (n = !0, r.split(Mt).length > 1))
1411
+ if (typeof r == "string" && (n = !0, r.split(bt).length > 1))
1412
1412
  return ke.alphanumeric;
1413
1413
  }
1414
1414
  return n ? ke.text : ke.basic;
@@ -1721,11 +1721,11 @@ function He() {
1721
1721
  }
1722
1722
  }, ii);
1723
1723
  }
1724
- const Kt = q({
1724
+ const Xt = q({
1725
1725
  props: ["render", "props"],
1726
1726
  setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? W(e.render, e.props) : e.render
1727
1727
  });
1728
- function Xt(e) {
1728
+ function Yt(e) {
1729
1729
  return He(e, {
1730
1730
  data: w(e.data)
1731
1731
  });
@@ -1744,9 +1744,9 @@ function ri(e) {
1744
1744
  ...s
1745
1745
  } : He(r, s);
1746
1746
  }
1747
- }, o ? Xt(e) : e), n = Zo(t);
1747
+ }, o ? Yt(e) : e), n = Zo(t);
1748
1748
  if (o) {
1749
- const r = zt(e.data);
1749
+ const r = At(e.data);
1750
1750
  Re(r, () => {
1751
1751
  n.setState((s) => ({
1752
1752
  ...s,
@@ -1757,13 +1757,13 @@ function ri(e) {
1757
1757
  });
1758
1758
  }
1759
1759
  const i = k(n.initialState);
1760
- return mn(() => {
1760
+ return vn(() => {
1761
1761
  n.setOptions((r) => {
1762
1762
  var s;
1763
1763
  const l = new Proxy({}, {
1764
1764
  get: (a, u) => i.value[u]
1765
1765
  });
1766
- return He(r, o ? Xt(e) : e, {
1766
+ return He(r, o ? Yt(e) : e, {
1767
1767
  // merge the initialState and `options.state`
1768
1768
  // create a new proxy on each `setOptions` call
1769
1769
  // and get the value from state on each property access
@@ -1812,7 +1812,7 @@ function be(e, o, t) {
1812
1812
  n = l;
1813
1813
  }, s;
1814
1814
  }
1815
- function Yt(e, o) {
1815
+ function Jt(e, o) {
1816
1816
  if (e === void 0)
1817
1817
  throw new Error("Unexpected undefined");
1818
1818
  return e;
@@ -1822,7 +1822,7 @@ const si = (e, o) => Math.abs(e - o) < 1.01, li = (e, o, t) => {
1822
1822
  return function(...i) {
1823
1823
  e.clearTimeout(n), n = e.setTimeout(() => o.apply(this, i), t);
1824
1824
  };
1825
- }, Jt = (e) => {
1825
+ }, Qt = (e) => {
1826
1826
  const { offsetWidth: o, offsetHeight: t } = e;
1827
1827
  return { width: o, height: t };
1828
1828
  }, ai = (e) => e, ui = (e) => {
@@ -1841,7 +1841,7 @@ const si = (e, o) => Math.abs(e - o) < 1.01, li = (e, o, t) => {
1841
1841
  const { width: l, height: a } = s;
1842
1842
  o({ width: Math.round(l), height: Math.round(a) });
1843
1843
  };
1844
- if (i(Jt(t)), !n.ResizeObserver)
1844
+ if (i(Qt(t)), !n.ResizeObserver)
1845
1845
  return () => {
1846
1846
  };
1847
1847
  const r = new n.ResizeObserver((s) => {
@@ -1854,16 +1854,16 @@ const si = (e, o) => Math.abs(e - o) < 1.01, li = (e, o, t) => {
1854
1854
  return;
1855
1855
  }
1856
1856
  }
1857
- i(Jt(t));
1857
+ i(Qt(t));
1858
1858
  };
1859
1859
  e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(l) : l();
1860
1860
  });
1861
1861
  return r.observe(t, { box: "border-box" }), () => {
1862
1862
  r.unobserve(t);
1863
1863
  };
1864
- }, Qt = {
1864
+ }, Zt = {
1865
1865
  passive: !0
1866
- }, Zt = typeof window > "u" ? !0 : "onscrollend" in window, di = (e, o) => {
1866
+ }, en = typeof window > "u" ? !0 : "onscrollend" in window, di = (e, o) => {
1867
1867
  const t = e.scrollElement;
1868
1868
  if (!t)
1869
1869
  return;
@@ -1871,7 +1871,7 @@ const si = (e, o) => Math.abs(e - o) < 1.01, li = (e, o, t) => {
1871
1871
  if (!n)
1872
1872
  return;
1873
1873
  let i = 0;
1874
- const r = e.options.useScrollendEvent && Zt ? () => {
1874
+ const r = e.options.useScrollendEvent && en ? () => {
1875
1875
  } : li(
1876
1876
  n,
1877
1877
  () => {
@@ -1882,9 +1882,9 @@ const si = (e, o) => Math.abs(e - o) < 1.01, li = (e, o, t) => {
1882
1882
  const { horizontal: f, isRtl: d } = e.options;
1883
1883
  i = f ? t.scrollLeft * (d && -1 || 1) : t.scrollTop, r(), o(i, c);
1884
1884
  }, l = s(!0), a = s(!1);
1885
- t.addEventListener("scroll", l, Qt);
1886
- const u = e.options.useScrollendEvent && Zt;
1887
- return u && t.addEventListener("scrollend", a, Qt), () => {
1885
+ t.addEventListener("scroll", l, Zt);
1886
+ const u = e.options.useScrollendEvent && en;
1887
+ return u && t.addEventListener("scrollend", a, Zt), () => {
1888
1888
  t.removeEventListener("scroll", l), u && t.removeEventListener("scrollend", a);
1889
1889
  };
1890
1890
  }, gi = (e, o, t) => {
@@ -2175,11 +2175,11 @@ class pi {
2175
2175
  ), this.getVirtualItemForOffset = (t) => {
2176
2176
  const n = this.getMeasurements();
2177
2177
  if (n.length !== 0)
2178
- return Yt(
2178
+ return Jt(
2179
2179
  n[zn(
2180
2180
  0,
2181
2181
  n.length - 1,
2182
- (i) => Yt(n[i]).start,
2182
+ (i) => Jt(n[i]).start,
2183
2183
  t
2184
2184
  )]
2185
2185
  );
@@ -2343,7 +2343,7 @@ function hi({
2343
2343
  return { startIndex: s, endIndex: l };
2344
2344
  }
2345
2345
  function mi(e) {
2346
- const o = new pi(w(e)), t = zt(o), n = o._didMount();
2346
+ const o = new pi(w(e)), t = At(o), n = o._didMount();
2347
2347
  return Re(
2348
2348
  () => w(e).getScrollElement(),
2349
2349
  (i) => {
@@ -2359,14 +2359,14 @@ function mi(e) {
2359
2359
  ...i,
2360
2360
  onChange: (r, s) => {
2361
2361
  var l;
2362
- jt(t), (l = i.onChange) == null || l.call(i, r, s);
2362
+ Wt(t), (l = i.onChange) == null || l.call(i, r, s);
2363
2363
  }
2364
- }), o._willUpdate(), jt(t);
2364
+ }), o._willUpdate(), Wt(t);
2365
2365
  },
2366
2366
  {
2367
2367
  immediate: !0
2368
2368
  }
2369
- ), vn(n), t;
2369
+ ), Cn(n), t;
2370
2370
  }
2371
2371
  function vi(e) {
2372
2372
  return mi(
@@ -2659,7 +2659,7 @@ const $i = /* @__PURE__ */ q({
2659
2659
  P("path", { d: "M325.714286 884.571429c0 20.228571 16.228571 36.571429 36.342857 36.571428h299.885714c20.114286 0 36.342857-16.342857 36.342857-36.571428V660.571429H325.714286v224z m606.971428-781.714286H91.314286c-28 0-45.485714 30.514286-31.428572 54.857143l252.914286 429.714285h398.628571l252.914286-429.714285c13.828571-24.342857-3.657143-54.857143-31.657143-54.857143z" }, null, -1)
2660
2660
  ])]));
2661
2661
  }
2662
- }), Ai = /* @__PURE__ */ de(zi, [["__scopeId", "data-v-2e964860"]]), bt = Math.min, ze = Math.max, tt = Math.round, ue = (e) => ({
2662
+ }), Ai = /* @__PURE__ */ de(zi, [["__scopeId", "data-v-2e964860"]]), Et = Math.min, ze = Math.max, tt = Math.round, ue = (e) => ({
2663
2663
  x: e,
2664
2664
  y: e
2665
2665
  }), Vi = {
@@ -2671,8 +2671,8 @@ const $i = /* @__PURE__ */ q({
2671
2671
  start: "end",
2672
2672
  end: "start"
2673
2673
  };
2674
- function en(e, o, t) {
2675
- return ze(e, bt(o, t));
2674
+ function tn(e, o, t) {
2675
+ return ze(e, Et(o, t));
2676
2676
  }
2677
2677
  function rt(e, o) {
2678
2678
  return typeof e == "function" ? e(o) : e;
@@ -2704,17 +2704,17 @@ function ki(e, o, t) {
2704
2704
  }
2705
2705
  function Li(e) {
2706
2706
  const o = nt(e);
2707
- return [Et(e), o, Et(o)];
2707
+ return [It(e), o, It(o)];
2708
2708
  }
2709
- function Et(e) {
2709
+ function It(e) {
2710
2710
  return e.replace(/start|end/g, (o) => Di[o]);
2711
2711
  }
2712
- const tn = ["left", "right"], nn = ["right", "left"], Hi = ["top", "bottom"], Ti = ["bottom", "top"];
2712
+ const nn = ["left", "right"], on = ["right", "left"], Hi = ["top", "bottom"], Ti = ["bottom", "top"];
2713
2713
  function Bi(e, o, t) {
2714
2714
  switch (e) {
2715
2715
  case "top":
2716
2716
  case "bottom":
2717
- return t ? o ? nn : tn : o ? tn : nn;
2717
+ return t ? o ? on : nn : o ? nn : on;
2718
2718
  case "left":
2719
2719
  case "right":
2720
2720
  return o ? Hi : Ti;
@@ -2725,7 +2725,7 @@ function Bi(e, o, t) {
2725
2725
  function Ni(e, o, t, n) {
2726
2726
  const i = st(e);
2727
2727
  let r = Bi(_e(e), t === "start", n);
2728
- return i && (r = r.map((s) => s + "-" + i), o && (r = r.concat(r.map(Et)))), r;
2728
+ return i && (r = r.map((s) => s + "-" + i), o && (r = r.concat(r.map(It)))), r;
2729
2729
  }
2730
2730
  function nt(e) {
2731
2731
  return e.replace(/left|right|bottom|top/g, (o) => Vi[o]);
@@ -2765,7 +2765,7 @@ function ot(e) {
2765
2765
  y: t
2766
2766
  };
2767
2767
  }
2768
- function on(e, o, t) {
2768
+ function rn(e, o, t) {
2769
2769
  let {
2770
2770
  reference: n,
2771
2771
  floating: i
@@ -2872,7 +2872,7 @@ const qi = async (e, o, t) => {
2872
2872
  }), {
2873
2873
  x: c,
2874
2874
  y: f
2875
- } = on(u, n, a), d = n, g = {}, m = 0;
2875
+ } = rn(u, n, a), d = n, g = {}, m = 0;
2876
2876
  for (let C = 0; C < l.length; C++) {
2877
2877
  var p;
2878
2878
  const {
@@ -2913,7 +2913,7 @@ const qi = async (e, o, t) => {
2913
2913
  }) : O.rects), {
2914
2914
  x: c,
2915
2915
  y: f
2916
- } = on(u, d, a)), C = -1);
2916
+ } = rn(u, d, a)), C = -1);
2917
2917
  }
2918
2918
  return {
2919
2919
  x: c,
@@ -3086,11 +3086,11 @@ const Yi = function(e) {
3086
3086
  let m = c[g], p = c[d];
3087
3087
  if (s) {
3088
3088
  const v = g === "y" ? "top" : "left", S = g === "y" ? "bottom" : "right", x = m + f[v], M = m - f[S];
3089
- m = en(x, m, M);
3089
+ m = tn(x, m, M);
3090
3090
  }
3091
3091
  if (l) {
3092
3092
  const v = d === "y" ? "top" : "left", S = d === "y" ? "bottom" : "right", x = p + f[v], M = p - f[S];
3093
- p = en(x, p, M);
3093
+ p = tn(x, p, M);
3094
3094
  }
3095
3095
  const C = a.fn({
3096
3096
  ...o,
@@ -3115,7 +3115,7 @@ function lt() {
3115
3115
  return typeof window < "u";
3116
3116
  }
3117
3117
  function Fe(e) {
3118
- return Ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
3118
+ return kt(e) ? (e.nodeName || "").toLowerCase() : "#document";
3119
3119
  }
3120
3120
  function Y(e) {
3121
3121
  var o;
@@ -3123,9 +3123,9 @@ function Y(e) {
3123
3123
  }
3124
3124
  function he(e) {
3125
3125
  var o;
3126
- return (o = (Ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : o.documentElement;
3126
+ return (o = (kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : o.documentElement;
3127
3127
  }
3128
- function Ot(e) {
3128
+ function kt(e) {
3129
3129
  return lt() ? e instanceof Node || e instanceof Y(e).Node : !1;
3130
3130
  }
3131
3131
  function se(e) {
@@ -3134,7 +3134,7 @@ function se(e) {
3134
3134
  function ce(e) {
3135
3135
  return lt() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
3136
3136
  }
3137
- function rn(e) {
3137
+ function sn(e) {
3138
3138
  return !lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
3139
3139
  }
3140
3140
  const Qi = /* @__PURE__ */ new Set(["inline", "contents"]);
@@ -3162,14 +3162,14 @@ function at(e) {
3162
3162
  });
3163
3163
  }
3164
3164
  const nr = ["transform", "translate", "scale", "rotate", "perspective"], or = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ir = ["paint", "layout", "strict", "content"];
3165
- function kt(e) {
3166
- const o = Lt(), t = se(e) ? le(e) : e;
3165
+ function Lt(e) {
3166
+ const o = Ht(), t = se(e) ? le(e) : e;
3167
3167
  return nr.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !o && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !o && (t.filter ? t.filter !== "none" : !1) || or.some((n) => (t.willChange || "").includes(n)) || ir.some((n) => (t.contain || "").includes(n));
3168
3168
  }
3169
3169
  function rr(e) {
3170
3170
  let o = Se(e);
3171
3171
  for (; ce(o) && !Ve(o); ) {
3172
- if (kt(o))
3172
+ if (Lt(o))
3173
3173
  return o;
3174
3174
  if (at(o))
3175
3175
  return null;
@@ -3177,7 +3177,7 @@ function rr(e) {
3177
3177
  }
3178
3178
  return null;
3179
3179
  }
3180
- function Lt() {
3180
+ function Ht() {
3181
3181
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3182
3182
  }
3183
3183
  const sr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -3203,10 +3203,10 @@ function Se(e) {
3203
3203
  // Step into the shadow DOM of the parent of a slotted node.
3204
3204
  e.assignedSlot || // DOM Element detected.
3205
3205
  e.parentNode || // ShadowRoot detected.
3206
- rn(e) && e.host || // Fallback.
3206
+ sn(e) && e.host || // Fallback.
3207
3207
  he(e)
3208
3208
  );
3209
- return rn(o) ? o.host : o;
3209
+ return sn(o) ? o.host : o;
3210
3210
  }
3211
3211
  function kn(e) {
3212
3212
  const o = Se(e);
@@ -3216,9 +3216,9 @@ function Ln(e, o, t) {
3216
3216
  var n;
3217
3217
  o === void 0 && (o = []);
3218
3218
  const i = kn(e), r = i === ((n = e.ownerDocument) == null ? void 0 : n.body), s = Y(i);
3219
- return r ? (It(s), o.concat(s, s.visualViewport || [], je(i) ? i : [], [])) : o.concat(i, Ln(i, []));
3219
+ return r ? (Pt(s), o.concat(s, s.visualViewport || [], je(i) ? i : [], [])) : o.concat(i, Ln(i, []));
3220
3220
  }
3221
- function It(e) {
3221
+ function Pt(e) {
3222
3222
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3223
3223
  }
3224
3224
  function Hn(e) {
@@ -3252,7 +3252,7 @@ function Ae(e) {
3252
3252
  const lr = /* @__PURE__ */ ue(0);
3253
3253
  function Bn(e) {
3254
3254
  const o = Y(e);
3255
- return !Lt() || !o.visualViewport ? lr : {
3255
+ return !Ht() || !o.visualViewport ? lr : {
3256
3256
  x: o.visualViewport.offsetLeft,
3257
3257
  y: o.visualViewport.offsetTop
3258
3258
  };
@@ -3269,10 +3269,10 @@ function Ge(e, o, t, n) {
3269
3269
  let a = (i.left + l.x) / s.x, u = (i.top + l.y) / s.y, c = i.width / s.x, f = i.height / s.y;
3270
3270
  if (r) {
3271
3271
  const d = Y(r), g = n && se(n) ? Y(n) : n;
3272
- let m = d, p = It(m);
3272
+ let m = d, p = Pt(m);
3273
3273
  for (; p && n && g !== m; ) {
3274
3274
  const C = Ae(p), v = p.getBoundingClientRect(), S = le(p), x = v.left + (p.clientLeft + parseFloat(S.paddingLeft)) * C.x, M = v.top + (p.clientTop + parseFloat(S.paddingTop)) * C.y;
3275
- a *= C.x, u *= C.y, c *= C.x, f *= C.y, a += x, u += M, m = Y(p), p = It(m);
3275
+ a *= C.x, u *= C.y, c *= C.x, f *= C.y, a += x, u += M, m = Y(p), p = Pt(m);
3276
3276
  }
3277
3277
  }
3278
3278
  return ot({
@@ -3334,20 +3334,20 @@ function dr(e) {
3334
3334
  y: l
3335
3335
  };
3336
3336
  }
3337
- const sn = 25;
3337
+ const ln = 25;
3338
3338
  function gr(e, o) {
3339
3339
  const t = Y(e), n = he(e), i = t.visualViewport;
3340
3340
  let r = n.clientWidth, s = n.clientHeight, l = 0, a = 0;
3341
3341
  if (i) {
3342
3342
  r = i.width, s = i.height;
3343
- const c = Lt();
3343
+ const c = Ht();
3344
3344
  (!c || c && o === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
3345
3345
  }
3346
3346
  const u = ct(n);
3347
3347
  if (u <= 0) {
3348
3348
  const c = n.ownerDocument, f = c.body, d = getComputedStyle(f), g = c.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(n.clientWidth - f.clientWidth - g);
3349
- m <= sn && (r -= m);
3350
- } else u <= sn && (r += u);
3349
+ m <= ln && (r -= m);
3350
+ } else u <= ln && (r += u);
3351
3351
  return {
3352
3352
  width: r,
3353
3353
  height: s,
@@ -3365,7 +3365,7 @@ function pr(e, o) {
3365
3365
  y: u
3366
3366
  };
3367
3367
  }
3368
- function ln(e, o, t) {
3368
+ function an(e, o, t) {
3369
3369
  let n;
3370
3370
  if (o === "viewport")
3371
3371
  n = gr(e, t);
@@ -3396,7 +3396,7 @@ function hr(e, o) {
3396
3396
  const r = le(e).position === "fixed";
3397
3397
  let s = r ? Se(e) : e;
3398
3398
  for (; se(s) && !Ve(s); ) {
3399
- const l = le(s), a = kt(s);
3399
+ const l = le(s), a = Lt(s);
3400
3400
  !a && l.position === "fixed" && (i = null), (r ? !a && !i : !a && l.position === "static" && !!i && fr.has(i.position) || je(s) && !a && Gn(e, s)) ? n = n.filter((c) => c !== s) : i = l, s = Se(s);
3401
3401
  }
3402
3402
  return o.set(e, n), n;
@@ -3409,9 +3409,9 @@ function mr(e) {
3409
3409
  strategy: i
3410
3410
  } = e;
3411
3411
  const s = [...t === "clippingAncestors" ? at(o) ? [] : hr(o, this._c) : [].concat(t), n], l = s[0], a = s.reduce((u, c) => {
3412
- const f = ln(o, c, i);
3413
- return u.top = ze(f.top, u.top), u.right = bt(f.right, u.right), u.bottom = bt(f.bottom, u.bottom), u.left = ze(f.left, u.left), u;
3414
- }, ln(o, l, i));
3412
+ const f = an(o, c, i);
3413
+ return u.top = ze(f.top, u.top), u.right = Et(f.right, u.right), u.bottom = Et(f.bottom, u.bottom), u.left = ze(f.left, u.left), u;
3414
+ }, an(o, l, i));
3415
3415
  return {
3416
3416
  width: a.right - a.left,
3417
3417
  height: a.bottom - a.top,
@@ -3456,7 +3456,7 @@ function Cr(e, o, t) {
3456
3456
  function yt(e) {
3457
3457
  return le(e).position === "static";
3458
3458
  }
3459
- function an(e, o) {
3459
+ function un(e, o) {
3460
3460
  if (!ce(e) || le(e).position === "fixed")
3461
3461
  return null;
3462
3462
  if (o)
@@ -3477,10 +3477,10 @@ function jn(e, o) {
3477
3477
  }
3478
3478
  return t;
3479
3479
  }
3480
- let n = an(e, o);
3480
+ let n = un(e, o);
3481
3481
  for (; n && er(n) && yt(n); )
3482
- n = an(n, o);
3483
- return n && Ve(n) && yt(n) && !kt(n) ? t : n || rr(e) || t;
3482
+ n = un(n, o);
3483
+ return n && Ve(n) && yt(n) && !Lt(n) ? t : n || rr(e) || t;
3484
3484
  }
3485
3485
  const wr = async function(e) {
3486
3486
  const o = this.getOffsetParent || jn, t = this.getDimensions, n = await t(e.floating);
@@ -3524,10 +3524,10 @@ const xr = {
3524
3524
  function $r(e) {
3525
3525
  return e != null && typeof e == "object" && "$el" in e;
3526
3526
  }
3527
- function un(e) {
3527
+ function cn(e) {
3528
3528
  if ($r(e)) {
3529
3529
  const o = e.$el;
3530
- return Ot(o) && Fe(o) === "#comment" ? null : o;
3530
+ return kt(o) && Fe(o) === "#comment" ? null : o;
3531
3531
  }
3532
3532
  return e;
3533
3533
  }
@@ -3537,7 +3537,7 @@ function Le(e) {
3537
3537
  function Wn(e) {
3538
3538
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3539
3539
  }
3540
- function cn(e, o) {
3540
+ function dn(e, o) {
3541
3541
  const t = Wn(e);
3542
3542
  return Math.round(o * t) / t;
3543
3543
  }
@@ -3555,7 +3555,7 @@ function Mr(e, o, t) {
3555
3555
  }), a = F(() => {
3556
3556
  var A;
3557
3557
  return (A = Le(t.transform)) != null ? A : !0;
3558
- }), u = F(() => un(e.value)), c = F(() => un(o.value)), f = k(0), d = k(0), g = k(l.value), m = k(s.value), p = zt({}), C = k(!1), v = F(() => {
3558
+ }), u = F(() => cn(e.value)), c = F(() => cn(o.value)), f = k(0), d = k(0), g = k(l.value), m = k(s.value), p = At({}), C = k(!1), v = F(() => {
3559
3559
  const A = {
3560
3560
  position: g.value,
3561
3561
  left: "0",
@@ -3563,7 +3563,7 @@ function Mr(e, o, t) {
3563
3563
  };
3564
3564
  if (!c.value)
3565
3565
  return A;
3566
- const T = cn(c.value, f.value), te = cn(c.value, d.value);
3566
+ const T = dn(c.value, f.value), te = dn(c.value, d.value);
3567
3567
  return a.value ? {
3568
3568
  ...A,
3569
3569
  transform: "translate(" + T + "px, " + te + "px)",
@@ -3611,7 +3611,7 @@ function Mr(e, o, t) {
3611
3611
  flush: "sync"
3612
3612
  }), Re(i, O, {
3613
3613
  flush: "sync"
3614
- }), oo() && vn(M), {
3614
+ }), oo() && Cn(M), {
3615
3615
  x: Me(f),
3616
3616
  y: Me(d),
3617
3617
  strategy: Me(g),
@@ -3647,7 +3647,7 @@ const br = /* @__PURE__ */ q({
3647
3647
  const l = s.target;
3648
3648
  t.value && n.value && !t.value.contains(l) && !n.value.contains(l) && o.onOpenChange(!1);
3649
3649
  };
3650
- return Cn(() => {
3650
+ return wn(() => {
3651
3651
  document.addEventListener("click", r);
3652
3652
  }), io(() => {
3653
3653
  document.removeEventListener("click", r);
@@ -3687,7 +3687,7 @@ const br = /* @__PURE__ */ q({
3687
3687
  }
3688
3688
  },
3689
3689
  setup(e) {
3690
- const o = wn(), t = F(() => e.header.column), n = F(() => t.value.columnDef.meta), i = k(!1), r = k(), s = F({
3690
+ const o = Sn(), t = F(() => e.header.column), n = F(() => t.value.columnDef.meta), i = k(!1), r = k(), s = F({
3691
3691
  get() {
3692
3692
  return t.value.getFilterValue();
3693
3693
  },
@@ -3779,7 +3779,7 @@ const br = /* @__PURE__ */ q({
3779
3779
  c.value ? (y(), ie(w(Er), {
3780
3780
  key: 1,
3781
3781
  header: o.header
3782
- }, Sn({ _: 2 }, [
3782
+ }, Rt({ _: 2 }, [
3783
3783
  p.$slots.customFilterDropdown ? {
3784
3784
  name: "customFilterDropdown",
3785
3785
  fn: X((v) => [
@@ -3996,7 +3996,7 @@ const kr = ["checked", "disabled", "indeterminate"], Lr = {
3996
3996
  ])) : ee("", !0)
3997
3997
  ], 2));
3998
3998
  }
3999
- }), dn = /* @__PURE__ */ de(Hr, [["__scopeId", "data-v-abaaf4da"]]), Tr = { class: "flex h-full items-center justify-center bg-[rgba(255,255,255,0.5)]" }, Br = { class: "animate-custom-spin dot-container relative" }, Nr = /* @__PURE__ */ q({
3999
+ }), gn = /* @__PURE__ */ de(Hr, [["__scopeId", "data-v-abaaf4da"]]), Tr = { class: "flex h-full items-center justify-center bg-[rgba(255,255,255,0.5)]" }, Br = { class: "animate-custom-spin dot-container relative" }, Nr = /* @__PURE__ */ q({
4000
4000
  name: "VLoading",
4001
4001
  __name: "index",
4002
4002
  props: {
@@ -4032,27 +4032,27 @@ const kr = ["checked", "disabled", "indeterminate"], Lr = {
4032
4032
  ], !0)
4033
4033
  ]));
4034
4034
  }
4035
- }), gn = /* @__PURE__ */ de(Nr, [["__scopeId", "data-v-d39a195f"]]), fn = (e, o = !0) => {
4035
+ }), fn = /* @__PURE__ */ de(Nr, [["__scopeId", "data-v-d39a195f"]]), pn = (e, o = !0) => {
4036
4036
  if (e._loadingNode && JSON.stringify(e._loadingOptions) === JSON.stringify(o)) return;
4037
- Pt(e);
4037
+ zt(e);
4038
4038
  const t = document.createElement("div");
4039
4039
  t.style.position = "absolute", t.style.top = "0", t.style.left = "0", t.style.right = "0", t.style.bottom = typeof o == "boolean" ? "0" : `${o.bottom || 0}px`, t.style.zIndex = "1000";
4040
- const n = typeof o == "boolean" ? {} : { size: o.size }, i = typeof o != "boolean" ? o.indicator : void 0, r = i ? W(gn, n, () => i) : W(gn, n);
4040
+ const n = typeof o == "boolean" ? {} : { size: o.size }, i = typeof o != "boolean" ? o.indicator : void 0, r = i ? W(fn, n, () => i) : W(fn, n);
4041
4041
  xn(r, t);
4042
4042
  const s = getComputedStyle(e).position;
4043
4043
  ["relative", "absolute", "fixed"].includes(s) || (e.style.position = "relative"), e.appendChild(t), e._loadingNode = { vNode: r, element: t }, e._loadingOptions = o;
4044
- }, Pt = (e) => {
4044
+ }, zt = (e) => {
4045
4045
  const o = e._loadingNode;
4046
4046
  o && (xn(null, o.element), e.contains(o.element) && e.removeChild(o.element), delete e._loadingNode, delete e._loadingOptions);
4047
- }, pn = (e) => typeof e == "boolean" ? e : e.spinning, Gr = {
4047
+ }, hn = (e) => typeof e == "boolean" ? e : e.spinning, Gr = {
4048
4048
  mounted(e, o) {
4049
- pn(o.value) && fn(e, o.value);
4049
+ hn(o.value) && pn(e, o.value);
4050
4050
  },
4051
4051
  updated(e, o) {
4052
- pn(o.value) ? fn(e, o.value) : Pt(e);
4052
+ hn(o.value) ? pn(e, o.value) : zt(e);
4053
4053
  },
4054
4054
  unmounted(e) {
4055
- Pt(e);
4055
+ zt(e);
4056
4056
  }
4057
4057
  }, jr = {
4058
4058
  viewBox: "0 0 1024 1024",
@@ -4067,7 +4067,7 @@ const kr = ["checked", "disabled", "indeterminate"], Lr = {
4067
4067
  }, qr = {
4068
4068
  key: 1,
4069
4069
  d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
4070
- }, hn = /* @__PURE__ */ q({
4070
+ }, mn = /* @__PURE__ */ q({
4071
4071
  name: "ArrowIcon",
4072
4072
  __name: "ArrowIcon",
4073
4073
  props: {
@@ -4180,7 +4180,7 @@ const kr = ["checked", "disabled", "indeterminate"], Lr = {
4180
4180
  ]),
4181
4181
  onClick: i
4182
4182
  }, [
4183
- pe(hn, { direction: "left" })
4183
+ pe(mn, { direction: "left" })
4184
4184
  ], 2),
4185
4185
  (y(!0), b(oe, null, me(w(n), (u, c) => (y(), b("li", {
4186
4186
  key: c,
@@ -4201,7 +4201,7 @@ const kr = ["checked", "disabled", "indeterminate"], Lr = {
4201
4201
  ]),
4202
4202
  onClick: r
4203
4203
  }, [
4204
- pe(hn, { direction: "right" })
4204
+ pe(mn, { direction: "right" })
4205
4205
  ], 2)
4206
4206
  ]),
4207
4207
  P("div", os, [
@@ -4324,7 +4324,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4324
4324
  }),
4325
4325
  emits: ["update:defaultFilter", "update:defaultSort", "update:defaultPagination", "update:defaultExpanded", "update:defaultSelection", "update:defaultColumnPinning", "update:defaultColumnSizing"],
4326
4326
  setup(e, { expose: o }) {
4327
- const t = e, n = wn(), i = k(), r = k(), s = k(null), l = k(0);
4327
+ const t = e, n = Sn(), i = k(), r = k(), s = k(null), l = k(0);
4328
4328
  let a = null;
4329
4329
  const u = () => {
4330
4330
  s.value && (a = new ResizeObserver((h) => {
@@ -4340,7 +4340,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4340
4340
  if (ft >= De - Zn) {
4341
4341
  const ge = Math.floor(ft / $), $e = ft % $;
4342
4342
  return I.reduce(
4343
- (Gt, eo, to) => (Gt[eo.id] = ge + (to < $e ? 1 : 0), Gt),
4343
+ (jt, eo, to) => (jt[eo.id] = ge + (to < $e ? 1 : 0), jt),
4344
4344
  {}
4345
4345
  );
4346
4346
  }
@@ -4368,7 +4368,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4368
4368
  },
4369
4369
  disabled: !1
4370
4370
  };
4371
- return n?.customCheckbox?.($) || W(dn, $);
4371
+ return n?.customCheckbox?.($) || W(gn, $);
4372
4372
  },
4373
4373
  cell: ({ row: h }) => {
4374
4374
  const E = {
@@ -4379,7 +4379,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4379
4379
  h.getToggleSelectedHandler()?.(I);
4380
4380
  }
4381
4381
  };
4382
- return n?.customCheckbox?.(E) || W(dn, E);
4382
+ return n?.customCheckbox?.(E) || W(gn, E);
4383
4383
  }
4384
4384
  })), g = {
4385
4385
  id: Je,
@@ -4536,11 +4536,11 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4536
4536
  G.value.measureElement(h);
4537
4537
  }
4538
4538
  }
4539
- mn(() => {
4539
+ vn(() => {
4540
4540
  const [h] = [...j.value].reverse();
4541
4541
  !h || !G.value.isScrolling || h.index >= Q.value?.length - 1 && !t.loading && t.onScrollToBottom?.();
4542
4542
  });
4543
- const Ht = F(() => j.value.length > 0 ? j.value[0].start : 0), Tt = F(() => {
4543
+ const Tt = F(() => j.value.length > 0 ? j.value[0].start : 0), Bt = F(() => {
4544
4544
  if (j.value.length === 0) return 0;
4545
4545
  const h = j.value[j.value.length - 1];
4546
4546
  return G.value.getTotalSize() - (h.start + h.size);
@@ -4549,16 +4549,16 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4549
4549
  return !0;
4550
4550
  const D = t.customCellAttributes(h, E, I, $) || {};
4551
4551
  return !(D.colspan === 0 || D.rowspan === 0);
4552
- }, Bt = (h) => {
4552
+ }, Nt = (h) => {
4553
4553
  const E = h.columnDef.meta, I = h.getIsPinned(), $ = {
4554
4554
  textAlign: E?.columnAlign || "left"
4555
4555
  };
4556
4556
  return I && ($.position = "sticky", I === "left" ? $.left = `${h.getStart("left")}px` : $.right = `${h.getAfter("right")}px`, $.zIndex = gt.value.zIndex?.pinnedColumn), $;
4557
- }, Nt = (h) => {
4557
+ }, Gt = (h) => {
4558
4558
  const E = h.getIsPinned();
4559
4559
  return E ? E === "left" && h.getIsLastColumn("left") ? "pinned-left-shadow" : E === "right" && h.getIsFirstColumn("right") ? "pinned-right-shadow" : "" : "";
4560
4560
  };
4561
- return Cn(() => {
4561
+ return wn(() => {
4562
4562
  u(), t.defaultExpandAllRows && We();
4563
4563
  }), uo(() => {
4564
4564
  U.value && (cancelAnimationFrame(U.value), U.value = null), a && (a.disconnect(), a = null);
@@ -4608,9 +4608,9 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4608
4608
  class: ["relative", [
4609
4609
  $.column.id === w(Ee) ? "checkbox-col" : "",
4610
4610
  $.column.id === w(Je) ? "expand-col" : "",
4611
- Nt($.column)
4611
+ Gt($.column)
4612
4612
  ]],
4613
- style: Bt($.column)
4613
+ style: Nt($.column)
4614
4614
  },
4615
4615
  { ref_for: !0 },
4616
4616
  t?.customHeaderCellAttributes?.(
@@ -4619,7 +4619,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4619
4619
  )
4620
4620
  ), [
4621
4621
  $.isPlaceholder ? ee("", !0) : (y(), b(oe, { key: 0 }, [
4622
- $.id === w(Ee) ? (y(), ie(w(Kt), {
4622
+ $.id === w(Ee) ? (y(), ie(w(Xt), {
4623
4623
  key: 0,
4624
4624
  render: $.column.columnDef.header,
4625
4625
  props: $.getContext()
@@ -4627,7 +4627,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4627
4627
  key: 1,
4628
4628
  header: $,
4629
4629
  table: w(B)
4630
- }, Sn({ _: 2 }, [
4630
+ }, Rt({ _: 2 }, [
4631
4631
  n.headerCell ? {
4632
4632
  name: "headerCell",
4633
4633
  fn: X((D) => [
@@ -4670,9 +4670,9 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4670
4670
  ], !0)
4671
4671
  ], 6),
4672
4672
  P("tbody", cs, [
4673
- w(Ht) > 0 ? (y(), b("tr", {
4673
+ w(Tt) > 0 ? (y(), b("tr", {
4674
4674
  key: 0,
4675
- style: Z({ height: `${w(Ht)}px` })
4675
+ style: Z({ height: `${w(Tt)}px` })
4676
4676
  }, null, 4)) : ee("", !0),
4677
4677
  (y(!0), b(oe, null, me(w(j), (I) => (y(), b("tr", ne({
4678
4678
  key: w(m)[I.index],
@@ -4712,11 +4712,11 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4712
4712
  ) ? (y(), b("td", ne(
4713
4713
  {
4714
4714
  key: 0,
4715
- style: Bt($.column),
4715
+ style: Nt($.column),
4716
4716
  class: [
4717
4717
  $.column.id === w(Ee) ? "checkbox-col" : "",
4718
4718
  $.column.id === w(Je) ? "expand-col" : "",
4719
- Nt($.column)
4719
+ Gt($.column)
4720
4720
  ]
4721
4721
  },
4722
4722
  { ref_for: !0 },
@@ -4727,7 +4727,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4727
4727
  D
4728
4728
  ) ?? {}
4729
4729
  ), [
4730
- $.column.id === w(Ee) ? (y(), ie(w(Kt), {
4730
+ $.column.id === w(Ee) ? (y(), ie(w(Xt), {
4731
4731
  key: 0,
4732
4732
  render: $.column.columnDef.cell,
4733
4733
  props: $.getContext()
@@ -4737,21 +4737,28 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4737
4737
  "tree-config": t.treeConfig,
4738
4738
  columns: t.columns,
4739
4739
  row: w(L)[I.index]
4740
- }, {
4741
- bodyCell: X((De) => [
4742
- V(h.$slots, "bodyCell", ne({ ref_for: !0 }, De), void 0, !0)
4743
- ]),
4744
- customExpandIcon: X((De) => [
4745
- V(h.$slots, "customExpandIcon", ne({ ref_for: !0 }, De), void 0, !0)
4746
- ]),
4747
- _: 3
4748
- }, 8, ["cell", "tree-config", "columns", "row"]))
4740
+ }, Rt({ _: 2 }, [
4741
+ n.bodyCell ? {
4742
+ name: "bodyCell",
4743
+ fn: X((De) => [
4744
+ V(h.$slots, "bodyCell", ne({ ref_for: !0 }, De), void 0, !0)
4745
+ ]),
4746
+ key: "0"
4747
+ } : void 0,
4748
+ n.customExpandIcon ? {
4749
+ name: "customExpandIcon",
4750
+ fn: X((De) => [
4751
+ V(h.$slots, "customExpandIcon", ne({ ref_for: !0 }, De), void 0, !0)
4752
+ ]),
4753
+ key: "1"
4754
+ } : void 0
4755
+ ]), 1032, ["cell", "tree-config", "columns", "row"]))
4749
4756
  ], 16)) : ee("", !0)
4750
4757
  ], 64))), 128))
4751
4758
  ], 16, ds))), 128)),
4752
- w(Tt) > 0 ? (y(), b("tr", {
4759
+ w(Bt) > 0 ? (y(), b("tr", {
4753
4760
  key: 1,
4754
- style: Z({ height: `${w(Tt)}px`, border: "none" })
4761
+ style: Z({ height: `${w(Bt)}px`, border: "none" })
4755
4762
  }, null, 4)) : ee("", !0),
4756
4763
  w(Xn) ? (y(), b("tr", fs, [
4757
4764
  P("td", {
@@ -4759,7 +4766,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4759
4766
  class: "!border-b-0 p-[12px] text-center text-[14px] text-[rgba(0,0,0,0.32)]"
4760
4767
  }, [
4761
4768
  V(h.$slots, "customLoadNoMore", {}, () => [
4762
- Wt(Ne(w(Yn)), 1)
4769
+ qt(Ne(w(Yn)), 1)
4763
4770
  ], !0)
4764
4771
  ], 8, ps)
4765
4772
  ])) : ee("", !0)
@@ -4786,7 +4793,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4786
4793
  class: "flex items-center justify-center"
4787
4794
  }, [
4788
4795
  V(h.$slots, "customEmpty", {}, () => [
4789
- E[0] || (E[0] = Wt(" 当前内容为空 ", -1))
4796
+ E[0] || (E[0] = qt(" 当前内容为空 ", -1))
4790
4797
  ], !0)
4791
4798
  ], 4)) : ee("", !0)
4792
4799
  ], 2),
@@ -4808,7 +4815,7 @@ const us = ["colspan"], cs = { class: "v-table-body" }, ds = ["data-index"], gs
4808
4815
  }]
4809
4816
  ]);
4810
4817
  }
4811
- }), ws = /* @__PURE__ */ de(vs, [["__scopeId", "data-v-3a9bb56a"]]);
4818
+ }), ws = /* @__PURE__ */ de(vs, [["__scopeId", "data-v-bc0e0fed"]]);
4812
4819
  export {
4813
4820
  Ee as CHECKBOX_COLUMN_KEY,
4814
4821
  Je as EXPAND_COLUMN_KEY,