@soft-stech/bootsman-ui-shadcn 1.1.10 → 1.1.12

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,7 +1,7 @@
1
- import { defineComponent as Ce, h as ye, ref as xe, watchEffect as Ie, mergeModels as De, useModel as q, openBlock as h, createBlock as M, unref as _, withCtx as V, renderSlot as He, createCommentVNode as U, createVNode as I, createElementBlock as H, Fragment as N, renderList as O, createTextVNode as Ne } from "vue";
1
+ import { defineComponent as Ce, h as Ae, ref as xe, watchEffect as Ie, mergeModels as De, useModel as q, openBlock as h, createBlock as M, unref as _, withCtx as V, renderSlot as He, createCommentVNode as U, createVNode as I, createElementBlock as H, Fragment as N, renderList as O, createTextVNode as Ne } from "vue";
2
2
  import { _ as Oe } from "./BuiTable.vue_vue_type_script_setup_true_lang-ENB9QQ3r.js";
3
3
  import { _ as Ge } from "./BuiTableBody.vue_vue_type_script_setup_true_lang-qdfymGSF.js";
4
- import { _ as pe } from "./BuiTableCell.vue_vue_type_script_setup_true_lang-Sg1Ibu6z.js";
4
+ import { _ as ce } from "./BuiTableCell.vue_vue_type_script_setup_true_lang-Sg1Ibu6z.js";
5
5
  import { _ as Le } from "./BuiTableHead.vue_vue_type_script_setup_true_lang-utRx3cQo.js";
6
6
  import { _ as ze } from "./BuiTableHeader.vue_vue_type_script_setup_true_lang--cfsottv.js";
7
7
  import { _ as j } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-vvniZQgY.js";
@@ -20,14 +20,14 @@ import { v as X } from "./utils-8YY6d_s1.js";
20
20
  *
21
21
  * @license MIT
22
22
  */
23
- function y(e, n) {
23
+ function A(e, n) {
24
24
  return typeof e == "function" ? e(n) : e;
25
25
  }
26
26
  function $(e, n) {
27
27
  return (t) => {
28
28
  n.setState((o) => ({
29
29
  ...o,
30
- [e]: y(t, o[e])
30
+ [e]: A(t, o[e])
31
31
  }));
32
32
  };
33
33
  }
@@ -53,17 +53,17 @@ function m(e, n, t) {
53
53
  let i;
54
54
  t.key && t.debug && (i = Date.now());
55
55
  const l = e();
56
- if (!(l.length !== o.length || l.some((a, g) => o[g] !== a)))
56
+ if (!(l.length !== o.length || l.some((g, a) => o[a] !== g)))
57
57
  return r;
58
58
  o = l;
59
59
  let s;
60
60
  if (t.key && t.debug && (s = Date.now()), r = n(...l), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
61
- const a = Math.round((Date.now() - i) * 100) / 100, g = Math.round((Date.now() - s) * 100) / 100, d = g / 16, p = (c, f) => {
62
- for (c = String(c); c.length < f; )
63
- c = " " + c;
64
- return c;
61
+ const g = Math.round((Date.now() - i) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, d = a / 16, c = (p, f) => {
62
+ for (p = String(p); p.length < f; )
63
+ p = " " + p;
64
+ return p;
65
65
  };
66
- console.info(`%c⏱ ${p(g, 5)} /${p(a, 5)} ms`, `
66
+ console.info(`%c⏱ ${c(a, 5)} /${c(g, 5)} ms`, `
67
67
  font-size: .6rem;
68
68
  font-weight: bold;
69
69
  color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t?.key);
@@ -77,50 +77,50 @@ function je(e, n, t, o) {
77
77
  ...e._getDefaultColumnDef(),
78
78
  ...n
79
79
  }, s = u.accessorKey;
80
- let a = (r = (i = u.id) != null ? i : s ? s.replace(".", "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, g;
81
- if (u.accessorFn ? g = u.accessorFn : s && (s.includes(".") ? g = (p) => {
82
- let c = p;
80
+ let g = (r = (i = u.id) != null ? i : s ? s.replace(".", "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, a;
81
+ if (u.accessorFn ? a = u.accessorFn : s && (s.includes(".") ? a = (c) => {
82
+ let p = c;
83
83
  for (const S of s.split(".")) {
84
84
  var f;
85
- c = (f = c) == null ? void 0 : f[S], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${S}" in deeply nested key "${s}" returned undefined.`);
85
+ p = (f = p) == null ? void 0 : f[S], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${S}" in deeply nested key "${s}" returned undefined.`);
86
86
  }
87
- return c;
88
- } : g = (p) => p[u.accessorKey]), !a)
87
+ return p;
88
+ } : a = (c) => c[u.accessorKey]), !g)
89
89
  throw process.env.NODE_ENV !== "production" ? new Error(u.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
90
90
  let d = {
91
- id: `${String(a)}`,
92
- accessorFn: g,
91
+ id: `${String(g)}`,
92
+ accessorFn: a,
93
93
  parent: o,
94
94
  depth: t,
95
95
  columnDef: u,
96
96
  columns: [],
97
97
  getFlatColumns: m(() => [!0], () => {
98
- var p;
99
- return [d, ...(p = d.columns) == null ? void 0 : p.flatMap((c) => c.getFlatColumns())];
98
+ var c;
99
+ return [d, ...(c = d.columns) == null ? void 0 : c.flatMap((p) => p.getFlatColumns())];
100
100
  }, {
101
101
  key: process.env.NODE_ENV === "production" && "column.getFlatColumns",
102
102
  debug: () => {
103
- var p;
104
- return (p = e.options.debugAll) != null ? p : e.options.debugColumns;
103
+ var c;
104
+ return (c = e.options.debugAll) != null ? c : e.options.debugColumns;
105
105
  }
106
106
  }),
107
- getLeafColumns: m(() => [e._getOrderColumnsFn()], (p) => {
108
- var c;
109
- if ((c = d.columns) != null && c.length) {
107
+ getLeafColumns: m(() => [e._getOrderColumnsFn()], (c) => {
108
+ var p;
109
+ if ((p = d.columns) != null && p.length) {
110
110
  let f = d.columns.flatMap((S) => S.getLeafColumns());
111
- return p(f);
111
+ return c(f);
112
112
  }
113
113
  return [d];
114
114
  }, {
115
115
  key: process.env.NODE_ENV === "production" && "column.getLeafColumns",
116
116
  debug: () => {
117
- var p;
118
- return (p = e.options.debugAll) != null ? p : e.options.debugColumns;
117
+ var c;
118
+ return (c = e.options.debugAll) != null ? c : e.options.debugColumns;
119
119
  }
120
120
  })
121
121
  };
122
- for (const p of e._features)
123
- p.createColumn == null || p.createColumn(d, e);
122
+ for (const c of e._features)
123
+ c.createColumn == null || c.createColumn(d, e);
124
124
  return d;
125
125
  }
126
126
  function fe(e, n, t) {
@@ -156,8 +156,8 @@ const Xe = {
156
156
  createTable: (e) => {
157
157
  e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
158
158
  var i, l;
159
- const u = (i = o?.map((d) => t.find((p) => p.id === d)).filter(Boolean)) != null ? i : [], s = (l = r?.map((d) => t.find((p) => p.id === d)).filter(Boolean)) != null ? l : [], a = t.filter((d) => !(o != null && o.includes(d.id)) && !(r != null && r.includes(d.id)));
160
- return G(n, [...u, ...a, ...s], e);
159
+ const u = (i = o?.map((d) => t.find((c) => c.id === d)).filter(Boolean)) != null ? i : [], s = (l = r?.map((d) => t.find((c) => c.id === d)).filter(Boolean)) != null ? l : [], g = t.filter((d) => !(o != null && o.includes(d.id)) && !(r != null && r.includes(d.id)));
160
+ return G(n, [...u, ...g, ...s], e);
161
161
  }, {
162
162
  key: process.env.NODE_ENV === "development" && "getHeaderGroups",
163
163
  debug: () => {
@@ -266,8 +266,8 @@ const Xe = {
266
266
  return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
267
267
  }
268
268
  }), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
269
- var r, i, l, u, s, a;
270
- return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (a = o[0]) == null ? void 0 : a.headers) != null ? s : []].map((g) => g.getLeafHeaders()).flat();
269
+ var r, i, l, u, s, g;
270
+ return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (g = o[0]) == null ? void 0 : g.headers) != null ? s : []].map((a) => a.getLeafHeaders()).flat();
271
271
  }, {
272
272
  key: process.env.NODE_ENV === "development" && "getLeafHeaders",
273
273
  debug: () => {
@@ -280,43 +280,43 @@ const Xe = {
280
280
  function G(e, n, t, o) {
281
281
  var r, i;
282
282
  let l = 0;
283
- const u = function(p, c) {
284
- c === void 0 && (c = 1), l = Math.max(l, c), p.filter((f) => f.getIsVisible()).forEach((f) => {
283
+ const u = function(c, p) {
284
+ p === void 0 && (p = 1), l = Math.max(l, p), c.filter((f) => f.getIsVisible()).forEach((f) => {
285
285
  var S;
286
- (S = f.columns) != null && S.length && u(f.columns, c + 1);
286
+ (S = f.columns) != null && S.length && u(f.columns, p + 1);
287
287
  }, 0);
288
288
  };
289
289
  u(e);
290
290
  let s = [];
291
- const a = (p, c) => {
291
+ const g = (c, p) => {
292
292
  const f = {
293
- depth: c,
294
- id: [o, `${c}`].filter(Boolean).join("_"),
293
+ depth: p,
294
+ id: [o, `${p}`].filter(Boolean).join("_"),
295
295
  headers: []
296
296
  }, S = [];
297
- p.forEach((C) => {
297
+ c.forEach((C) => {
298
298
  const v = [...S].reverse()[0], R = C.column.depth === f.depth;
299
299
  let w, F = !1;
300
300
  if (R && C.column.parent ? w = C.column.parent : (w = C.column, F = !0), v && v?.column === w)
301
301
  v.subHeaders.push(C);
302
302
  else {
303
303
  const P = fe(t, w, {
304
- id: [o, c, w.id, C?.id].filter(Boolean).join("_"),
304
+ id: [o, p, w.id, C?.id].filter(Boolean).join("_"),
305
305
  isPlaceholder: F,
306
306
  placeholderId: F ? `${S.filter((T) => T.column === w).length}` : void 0,
307
- depth: c,
307
+ depth: p,
308
308
  index: S.length
309
309
  });
310
310
  P.subHeaders.push(C), S.push(P);
311
311
  }
312
312
  f.headers.push(C), C.headerGroup = f;
313
- }), s.push(f), c > 0 && a(S, c - 1);
314
- }, g = n.map((p, c) => fe(t, p, {
313
+ }), s.push(f), p > 0 && g(S, p - 1);
314
+ }, a = n.map((c, p) => fe(t, c, {
315
315
  depth: l,
316
- index: c
316
+ index: p
317
317
  }));
318
- a(g, l - 1), s.reverse();
319
- const d = (p) => p.filter((f) => f.column.getIsVisible()).map((f) => {
318
+ g(a, l - 1), s.reverse();
319
+ const d = (c) => c.filter((f) => f.column.getIsVisible()).map((f) => {
320
320
  let S = 0, C = 0, v = [0];
321
321
  f.subHeaders && f.subHeaders.length ? (v = [], d(f.subHeaders).forEach((w) => {
322
322
  let {
@@ -405,24 +405,24 @@ const L = {
405
405
  return (i) => {
406
406
  if (!o || !r || (i.persist == null || i.persist(), Y(i) && i.touches && i.touches.length > 1))
407
407
  return;
408
- const l = e.getSize(), u = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[o.id, o.getSize()]], s = Y(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, g = (v, R) => {
408
+ const l = e.getSize(), u = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[o.id, o.getSize()]], s = Y(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, a = (v, R) => {
409
409
  typeof R == "number" && (n.setColumnSizingInfo((w) => {
410
410
  var F, P;
411
- const T = n.options.columnResizeDirection === "rtl" ? -1 : 1, ae = (R - ((F = w?.startOffset) != null ? F : 0)) * T, de = Math.max(ae / ((P = w?.startSize) != null ? P : 0), -0.999999);
411
+ const T = n.options.columnResizeDirection === "rtl" ? -1 : 1, ge = (R - ((F = w?.startOffset) != null ? F : 0)) * T, de = Math.max(ge / ((P = w?.startSize) != null ? P : 0), -0.999999);
412
412
  return w.columnSizingStart.forEach((Me) => {
413
- let [Ae, ce] = Me;
414
- a[Ae] = Math.round(Math.max(ce + ce * de, 0) * 100) / 100;
413
+ let [ye, pe] = Me;
414
+ g[ye] = Math.round(Math.max(pe + pe * de, 0) * 100) / 100;
415
415
  }), {
416
416
  ...w,
417
- deltaOffset: ae,
417
+ deltaOffset: ge,
418
418
  deltaPercentage: de
419
419
  };
420
420
  }), (n.options.columnResizeMode === "onChange" || v === "end") && n.setColumnSizing((w) => ({
421
421
  ...w,
422
- ...a
422
+ ...g
423
423
  })));
424
- }, d = (v) => g("move", v), p = (v) => {
425
- g("end", v), n.setColumnSizingInfo((R) => ({
424
+ }, d = (v) => a("move", v), c = (v) => {
425
+ a("end", v), n.setColumnSizingInfo((R) => ({
426
426
  ...R,
427
427
  isResizingColumn: !1,
428
428
  startOffset: null,
@@ -431,21 +431,21 @@ const L = {
431
431
  deltaPercentage: null,
432
432
  columnSizingStart: []
433
433
  }));
434
- }, c = t || typeof document < "u" ? document : null, f = {
434
+ }, p = t || typeof document < "u" ? document : null, f = {
435
435
  moveHandler: (v) => d(v.clientX),
436
436
  upHandler: (v) => {
437
- c?.removeEventListener("mousemove", f.moveHandler), c?.removeEventListener("mouseup", f.upHandler), p(v.clientX);
437
+ p?.removeEventListener("mousemove", f.moveHandler), p?.removeEventListener("mouseup", f.upHandler), c(v.clientX);
438
438
  }
439
439
  }, S = {
440
440
  moveHandler: (v) => (v.cancelable && (v.preventDefault(), v.stopPropagation()), d(v.touches[0].clientX), !1),
441
441
  upHandler: (v) => {
442
442
  var R;
443
- c?.removeEventListener("touchmove", S.moveHandler), c?.removeEventListener("touchend", S.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), p((R = v.touches[0]) == null ? void 0 : R.clientX);
443
+ p?.removeEventListener("touchmove", S.moveHandler), p?.removeEventListener("touchend", S.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), c((R = v.touches[0]) == null ? void 0 : R.clientX);
444
444
  }
445
445
  }, C = Ye() ? {
446
446
  passive: !1
447
447
  } : !1;
448
- Y(i) ? (c?.addEventListener("touchmove", S.moveHandler, C), c?.addEventListener("touchend", S.upHandler, C)) : (c?.addEventListener("mousemove", f.moveHandler, C), c?.addEventListener("mouseup", f.upHandler, C)), n.setColumnSizingInfo((v) => ({
448
+ Y(i) ? (p?.addEventListener("touchmove", S.moveHandler, C), p?.addEventListener("touchend", S.upHandler, C)) : (p?.addEventListener("mousemove", f.moveHandler, C), p?.addEventListener("mouseup", f.upHandler, C)), n.setColumnSizingInfo((v) => ({
449
449
  ...v,
450
450
  startOffset: s,
451
451
  startSize: l,
@@ -637,7 +637,7 @@ ue.resolveFilterValue = (e) => {
637
637
  return [i, l];
638
638
  };
639
639
  ue.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
640
- const A = {
640
+ const y = {
641
641
  includesString: _e,
642
642
  includesStringSensitive: we,
643
643
  equalsString: Re,
@@ -677,12 +677,12 @@ const Qe = {
677
677
  createColumn: (e, n) => {
678
678
  e.getAutoFilterFn = () => {
679
679
  const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
680
- return typeof o == "string" ? A.includesString : typeof o == "number" ? A.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? A.equals : Array.isArray(o) ? A.arrIncludes : A.weakEquals;
680
+ return typeof o == "string" ? y.includesString : typeof o == "number" ? y.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? y.equals : Array.isArray(o) ? y.arrIncludes : y.weakEquals;
681
681
  }, e.getFilterFn = () => {
682
682
  var t, o;
683
683
  return B(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
684
684
  // @ts-ignore
685
- (t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : A[e.columnDef.filterFn]
685
+ (t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : y[e.columnDef.filterFn]
686
686
  );
687
687
  }, e.getCanFilter = () => {
688
688
  var t, o, r;
@@ -698,18 +698,18 @@ const Qe = {
698
698
  return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
699
699
  }, e.setFilterValue = (t) => {
700
700
  n.setColumnFilters((o) => {
701
- const r = e.getFilterFn(), i = o?.find((g) => g.id === e.id), l = y(t, i ? i.value : void 0);
701
+ const r = e.getFilterFn(), i = o?.find((a) => a.id === e.id), l = A(t, i ? i.value : void 0);
702
702
  if (me(r, l, e)) {
703
703
  var u;
704
- return (u = o?.filter((g) => g.id !== e.id)) != null ? u : [];
704
+ return (u = o?.filter((a) => a.id !== e.id)) != null ? u : [];
705
705
  }
706
706
  const s = {
707
707
  id: e.id,
708
708
  value: l
709
709
  };
710
710
  if (i) {
711
- var a;
712
- return (a = o?.map((g) => g.id === e.id ? s : g)) != null ? a : [];
711
+ var g;
712
+ return (g = o?.map((a) => a.id === e.id ? s : a)) != null ? g : [];
713
713
  }
714
714
  return o != null && o.length ? [...o, s] : [s];
715
715
  });
@@ -722,19 +722,19 @@ const Qe = {
722
722
  e.columnFilters = {}, e.columnFiltersMeta = {};
723
723
  },
724
724
  createTable: (e) => {
725
- e.getGlobalAutoFilterFn = () => A.includesString, e.getGlobalFilterFn = () => {
725
+ e.getGlobalAutoFilterFn = () => y.includesString, e.getGlobalFilterFn = () => {
726
726
  var n, t;
727
727
  const {
728
728
  globalFilterFn: o
729
729
  } = e.options;
730
730
  return B(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (
731
731
  // @ts-ignore
732
- (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : A[o]
732
+ (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : y[o]
733
733
  );
734
734
  }, e.setColumnFilters = (n) => {
735
735
  const t = e.getAllLeafColumns(), o = (r) => {
736
736
  var i;
737
- return (i = y(n, r)) == null ? void 0 : i.filter((l) => {
737
+ return (i = A(n, r)) == null ? void 0 : i.filter((l) => {
738
738
  const u = t.find((s) => s.id === l.id);
739
739
  if (u) {
740
740
  const s = u.getFilterFn();
@@ -882,7 +882,7 @@ function st(e, n, t) {
882
882
  const o = e.filter((i) => !n.includes(i.id));
883
883
  return t === "remove" ? o : [...n.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...o];
884
884
  }
885
- const gt = {
885
+ const at = {
886
886
  getInitialState: (e) => ({
887
887
  columnOrder: [],
888
888
  ...e
@@ -901,8 +901,8 @@ const gt = {
901
901
  else {
902
902
  const l = [...n], u = [...r];
903
903
  for (; u.length && l.length; ) {
904
- const s = l.shift(), a = u.findIndex((g) => g.id === s);
905
- a > -1 && i.push(u.splice(a, 1)[0]);
904
+ const s = l.shift(), g = u.findIndex((a) => a.id === s);
905
+ g > -1 && i.push(u.splice(g, 1)[0]);
906
906
  }
907
907
  i = [...i, ...u];
908
908
  }
@@ -915,7 +915,7 @@ const gt = {
915
915
  }, ne = 0, oe = 10, Q = () => ({
916
916
  pageIndex: ne,
917
917
  pageSize: oe
918
- }), at = {
918
+ }), gt = {
919
919
  getInitialState: (e) => ({
920
920
  ...e,
921
921
  pagination: {
@@ -944,14 +944,14 @@ const gt = {
944
944
  });
945
945
  }
946
946
  }, e.setPagination = (o) => {
947
- const r = (i) => y(o, i);
947
+ const r = (i) => A(o, i);
948
948
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
949
949
  }, e.resetPagination = (o) => {
950
950
  var r;
951
951
  e.setPagination(o ? Q() : (r = e.initialState.pagination) != null ? r : Q());
952
952
  }, e.setPageIndex = (o) => {
953
953
  e.setPagination((r) => {
954
- let i = y(o, r.pageIndex);
954
+ let i = A(o, r.pageIndex);
955
955
  const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
956
956
  return i = Math.max(0, Math.min(i, l)), {
957
957
  ...r,
@@ -966,7 +966,7 @@ const gt = {
966
966
  e.setPageSize(o ? oe : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : oe);
967
967
  }, e.setPageSize = (o) => {
968
968
  e.setPagination((r) => {
969
- const i = Math.max(1, y(o, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
969
+ const i = Math.max(1, A(o, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
970
970
  return {
971
971
  ...r,
972
972
  pageIndex: u,
@@ -975,7 +975,7 @@ const gt = {
975
975
  });
976
976
  }, e.setPageCount = (o) => e.setPagination((r) => {
977
977
  var i;
978
- let l = y(o, (i = e.options.pageCount) != null ? i : -1);
978
+ let l = A(o, (i = e.options.pageCount) != null ? i : -1);
979
979
  return typeof l == "number" && (l = Math.max(-1, l)), {
980
980
  ...r,
981
981
  pageCount: l
@@ -1028,10 +1028,10 @@ const gt = {
1028
1028
  };
1029
1029
  }
1030
1030
  if (t === "left") {
1031
- var a, g;
1031
+ var g, a;
1032
1032
  return {
1033
- left: [...((a = r?.left) != null ? a : []).filter((d) => !(o != null && o.includes(d))), ...o],
1034
- right: ((g = r?.right) != null ? g : []).filter((d) => !(o != null && o.includes(d)))
1033
+ left: [...((g = r?.left) != null ? g : []).filter((d) => !(o != null && o.includes(d))), ...o],
1034
+ right: ((a = r?.right) != null ? a : []).filter((d) => !(o != null && o.includes(d)))
1035
1035
  };
1036
1036
  }
1037
1037
  return {
@@ -1058,34 +1058,34 @@ const gt = {
1058
1058
  e.pin = (t, o, r) => {
1059
1059
  const i = o ? e.getLeafRows().map((s) => {
1060
1060
  let {
1061
- id: a
1061
+ id: g
1062
1062
  } = s;
1063
- return a;
1063
+ return g;
1064
1064
  }) : [], l = r ? e.getParentRows().map((s) => {
1065
1065
  let {
1066
- id: a
1066
+ id: g
1067
1067
  } = s;
1068
- return a;
1068
+ return g;
1069
1069
  }) : [], u = /* @__PURE__ */ new Set([...l, e.id, ...i]);
1070
1070
  n.setRowPinning((s) => {
1071
- var a, g;
1071
+ var g, a;
1072
1072
  if (t === "bottom") {
1073
- var d, p;
1073
+ var d, c;
1074
1074
  return {
1075
1075
  top: ((d = s?.top) != null ? d : []).filter((S) => !(u != null && u.has(S))),
1076
- bottom: [...((p = s?.bottom) != null ? p : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)]
1076
+ bottom: [...((c = s?.bottom) != null ? c : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)]
1077
1077
  };
1078
1078
  }
1079
1079
  if (t === "top") {
1080
- var c, f;
1080
+ var p, f;
1081
1081
  return {
1082
- top: [...((c = s?.top) != null ? c : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)],
1082
+ top: [...((p = s?.top) != null ? p : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)],
1083
1083
  bottom: ((f = s?.bottom) != null ? f : []).filter((S) => !(u != null && u.has(S)))
1084
1084
  };
1085
1085
  }
1086
1086
  return {
1087
- top: ((a = s?.top) != null ? a : []).filter((S) => !(u != null && u.has(S))),
1088
- bottom: ((g = s?.bottom) != null ? g : []).filter((S) => !(u != null && u.has(S)))
1087
+ top: ((g = s?.top) != null ? g : []).filter((S) => !(u != null && u.has(S))),
1088
+ bottom: ((a = s?.bottom) != null ? a : []).filter((S) => !(u != null && u.has(S)))
1089
1089
  };
1090
1090
  });
1091
1091
  }, e.getCanPin = () => {
@@ -1219,7 +1219,7 @@ const gt = {
1219
1219
  }
1220
1220
  });
1221
1221
  }
1222
- }, ct = {
1222
+ }, pt = {
1223
1223
  getInitialState: (e) => ({
1224
1224
  rowSelection: {},
1225
1225
  ...e
@@ -1363,12 +1363,12 @@ const gt = {
1363
1363
  function ee(e, n) {
1364
1364
  const t = e.getState().rowSelection, o = [], r = {}, i = function(l, u) {
1365
1365
  return l.map((s) => {
1366
- var a;
1367
- const g = se(s, t);
1368
- if (g && (o.push(s), r[s.id] = s), (a = s.subRows) != null && a.length && (s = {
1366
+ var g;
1367
+ const a = se(s, t);
1368
+ if (a && (o.push(s), r[s.id] = s), (g = s.subRows) != null && g.length && (s = {
1369
1369
  ...s,
1370
1370
  subRows: i(s.subRows)
1371
- }), g)
1371
+ }), a)
1372
1372
  return s;
1373
1373
  }).filter(Boolean);
1374
1374
  };
@@ -1394,11 +1394,11 @@ function ie(e, n, t) {
1394
1394
  }
1395
1395
  }), r ? "all" : i ? "some" : !1;
1396
1396
  }
1397
- const le = /([0-9]+)/gm, pt = (e, n, t) => Pe(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), ft = (e, n, t) => Pe(x(e.getValue(t)), x(n.getValue(t))), mt = (e, n, t) => ge(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), St = (e, n, t) => ge(x(e.getValue(t)), x(n.getValue(t))), vt = (e, n, t) => {
1397
+ const le = /([0-9]+)/gm, ct = (e, n, t) => Pe(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), ft = (e, n, t) => Pe(x(e.getValue(t)), x(n.getValue(t))), mt = (e, n, t) => ae(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), St = (e, n, t) => ae(x(e.getValue(t)), x(n.getValue(t))), vt = (e, n, t) => {
1398
1398
  const o = e.getValue(t), r = n.getValue(t);
1399
1399
  return o > r ? 1 : o < r ? -1 : 0;
1400
- }, Ct = (e, n, t) => ge(e.getValue(t), n.getValue(t));
1401
- function ge(e, n) {
1400
+ }, Ct = (e, n, t) => ae(e.getValue(t), n.getValue(t));
1401
+ function ae(e, n) {
1402
1402
  return e === n ? 0 : e > n ? 1 : -1;
1403
1403
  }
1404
1404
  function x(e) {
@@ -1425,7 +1425,7 @@ function Pe(e, n) {
1425
1425
  return t.length - o.length;
1426
1426
  }
1427
1427
  const D = {
1428
- alphanumeric: pt,
1428
+ alphanumeric: ct,
1429
1429
  alphanumericCaseSensitive: ft,
1430
1430
  text: mt,
1431
1431
  textCaseSensitive: St,
@@ -1467,23 +1467,23 @@ const D = {
1467
1467
  }, e.toggleSorting = (t, o) => {
1468
1468
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1469
1469
  n.setSorting((l) => {
1470
- const u = l?.find((c) => c.id === e.id), s = l?.findIndex((c) => c.id === e.id);
1471
- let a = [], g, d = i ? t : r === "desc";
1472
- if (l != null && l.length && e.getCanMultiSort() && o ? u ? g = "toggle" : g = "add" : l != null && l.length && s !== l.length - 1 ? g = "replace" : u ? g = "toggle" : g = "replace", g === "toggle" && (i || r || (g = "remove")), g === "add") {
1473
- var p;
1474
- a = [...l, {
1470
+ const u = l?.find((p) => p.id === e.id), s = l?.findIndex((p) => p.id === e.id);
1471
+ let g = [], a, d = i ? t : r === "desc";
1472
+ if (l != null && l.length && e.getCanMultiSort() && o ? u ? a = "toggle" : a = "add" : l != null && l.length && s !== l.length - 1 ? a = "replace" : u ? a = "toggle" : a = "replace", a === "toggle" && (i || r || (a = "remove")), a === "add") {
1473
+ var c;
1474
+ g = [...l, {
1475
1475
  id: e.id,
1476
1476
  desc: d
1477
- }], a.splice(0, a.length - ((p = n.options.maxMultiSortColCount) != null ? p : Number.MAX_SAFE_INTEGER));
1477
+ }], g.splice(0, g.length - ((c = n.options.maxMultiSortColCount) != null ? c : Number.MAX_SAFE_INTEGER));
1478
1478
  } else
1479
- g === "toggle" ? a = l.map((c) => c.id === e.id ? {
1480
- ...c,
1479
+ a === "toggle" ? g = l.map((p) => p.id === e.id ? {
1480
+ ...p,
1481
1481
  desc: d
1482
- } : c) : g === "remove" ? a = l.filter((c) => c.id !== e.id) : a = [{
1482
+ } : p) : a === "remove" ? g = l.filter((p) => p.id !== e.id) : g = [{
1483
1483
  id: e.id,
1484
1484
  desc: d
1485
1485
  }];
1486
- return a;
1486
+ return g;
1487
1487
  });
1488
1488
  }, e.getFirstSortDir = () => {
1489
1489
  var t, o;
@@ -1582,36 +1582,36 @@ const D = {
1582
1582
  e.toggleAllColumnsVisible((o = t.target) == null ? void 0 : o.checked);
1583
1583
  };
1584
1584
  }
1585
- }, Se = [Xe, wt, gt, dt, Qe, _t, ut, Je, at, ct, Ke];
1585
+ }, Se = [Xe, wt, at, dt, Qe, _t, ut, Je, gt, pt, Ke];
1586
1586
  function Rt(e) {
1587
1587
  var n;
1588
1588
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1589
1589
  let t = {
1590
1590
  _features: Se
1591
1591
  };
1592
- const o = t._features.reduce((g, d) => Object.assign(g, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(t)), {}), r = (g) => t.options.mergeOptions ? t.options.mergeOptions(o, g) : {
1592
+ const o = t._features.reduce((a, d) => Object.assign(a, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(t)), {}), r = (a) => t.options.mergeOptions ? t.options.mergeOptions(o, a) : {
1593
1593
  ...o,
1594
- ...g
1594
+ ...a
1595
1595
  };
1596
1596
  let l = {
1597
1597
  ...{},
1598
1598
  ...(n = e.initialState) != null ? n : {}
1599
1599
  };
1600
- t._features.forEach((g) => {
1600
+ t._features.forEach((a) => {
1601
1601
  var d;
1602
- l = (d = g.getInitialState == null ? void 0 : g.getInitialState(l)) != null ? d : l;
1602
+ l = (d = a.getInitialState == null ? void 0 : a.getInitialState(l)) != null ? d : l;
1603
1603
  });
1604
1604
  const u = [];
1605
1605
  let s = !1;
1606
- const a = {
1606
+ const g = {
1607
1607
  _features: Se,
1608
1608
  options: {
1609
1609
  ...o,
1610
1610
  ...e
1611
1611
  },
1612
1612
  initialState: l,
1613
- _queue: (g) => {
1614
- u.push(g), s || (s = !0, Promise.resolve().then(() => {
1613
+ _queue: (a) => {
1614
+ u.push(a), s || (s = !0, Promise.resolve().then(() => {
1615
1615
  for (; u.length; )
1616
1616
  u.shift()();
1617
1617
  s = !1;
@@ -1622,99 +1622,99 @@ function Rt(e) {
1622
1622
  reset: () => {
1623
1623
  t.setState(t.initialState);
1624
1624
  },
1625
- setOptions: (g) => {
1626
- const d = y(g, t.options);
1625
+ setOptions: (a) => {
1626
+ const d = A(a, t.options);
1627
1627
  t.options = r(d);
1628
1628
  },
1629
1629
  getState: () => t.options.state,
1630
- setState: (g) => {
1631
- t.options.onStateChange == null || t.options.onStateChange(g);
1630
+ setState: (a) => {
1631
+ t.options.onStateChange == null || t.options.onStateChange(a);
1632
1632
  },
1633
- _getRowId: (g, d, p) => {
1634
- var c;
1635
- return (c = t.options.getRowId == null ? void 0 : t.options.getRowId(g, d, p)) != null ? c : `${p ? [p.id, d].join(".") : d}`;
1633
+ _getRowId: (a, d, c) => {
1634
+ var p;
1635
+ return (p = t.options.getRowId == null ? void 0 : t.options.getRowId(a, d, c)) != null ? p : `${c ? [c.id, d].join(".") : d}`;
1636
1636
  },
1637
1637
  getCoreRowModel: () => (t._getCoreRowModel || (t._getCoreRowModel = t.options.getCoreRowModel(t)), t._getCoreRowModel()),
1638
1638
  // The final calls start at the bottom of the model,
1639
1639
  // expanded rows, which then work their way up
1640
1640
  getRowModel: () => t.getPaginationRowModel(),
1641
1641
  //in next version, we should just pass in the row model as the optional 2nd arg
1642
- getRow: (g, d) => {
1643
- let p = (d ? t.getPrePaginationRowModel() : t.getRowModel()).rowsById[g];
1644
- if (!p && (p = t.getCoreRowModel().rowsById[g], !p))
1645
- throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
1646
- return p;
1642
+ getRow: (a, d) => {
1643
+ let c = (d ? t.getPrePaginationRowModel() : t.getRowModel()).rowsById[a];
1644
+ if (!c && (c = t.getCoreRowModel().rowsById[a], !c))
1645
+ throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${a}`) : new Error();
1646
+ return c;
1647
1647
  },
1648
- _getDefaultColumnDef: m(() => [t.options.defaultColumn], (g) => {
1648
+ _getDefaultColumnDef: m(() => [t.options.defaultColumn], (a) => {
1649
1649
  var d;
1650
- return g = (d = g) != null ? d : {}, {
1651
- header: (p) => {
1652
- const c = p.header.column.columnDef;
1653
- return c.accessorKey ? c.accessorKey : c.accessorFn ? c.id : null;
1650
+ return a = (d = a) != null ? d : {}, {
1651
+ header: (c) => {
1652
+ const p = c.header.column.columnDef;
1653
+ return p.accessorKey ? p.accessorKey : p.accessorFn ? p.id : null;
1654
1654
  },
1655
1655
  // footer: props => props.header.column.id,
1656
- cell: (p) => {
1657
- var c, f;
1658
- return (c = (f = p.renderValue()) == null || f.toString == null ? void 0 : f.toString()) != null ? c : null;
1656
+ cell: (c) => {
1657
+ var p, f;
1658
+ return (p = (f = c.renderValue()) == null || f.toString == null ? void 0 : f.toString()) != null ? p : null;
1659
1659
  },
1660
- ...t._features.reduce((p, c) => Object.assign(p, c.getDefaultColumnDef == null ? void 0 : c.getDefaultColumnDef()), {}),
1661
- ...g
1660
+ ...t._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
1661
+ ...a
1662
1662
  };
1663
1663
  }, {
1664
1664
  debug: () => {
1665
- var g;
1666
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1665
+ var a;
1666
+ return (a = t.options.debugAll) != null ? a : t.options.debugColumns;
1667
1667
  },
1668
1668
  key: process.env.NODE_ENV === "development" && "getDefaultColumnDef"
1669
1669
  }),
1670
1670
  _getColumnDefs: () => t.options.columns,
1671
- getAllColumns: m(() => [t._getColumnDefs()], (g) => {
1672
- const d = function(p, c, f) {
1673
- return f === void 0 && (f = 0), p.map((S) => {
1674
- const C = je(t, S, f, c), v = S;
1671
+ getAllColumns: m(() => [t._getColumnDefs()], (a) => {
1672
+ const d = function(c, p, f) {
1673
+ return f === void 0 && (f = 0), c.map((S) => {
1674
+ const C = je(t, S, f, p), v = S;
1675
1675
  return C.columns = v.columns ? d(v.columns, C, f + 1) : [], C;
1676
1676
  });
1677
1677
  };
1678
- return d(g);
1678
+ return d(a);
1679
1679
  }, {
1680
1680
  key: process.env.NODE_ENV === "development" && "getAllColumns",
1681
1681
  debug: () => {
1682
- var g;
1683
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1682
+ var a;
1683
+ return (a = t.options.debugAll) != null ? a : t.options.debugColumns;
1684
1684
  }
1685
1685
  }),
1686
- getAllFlatColumns: m(() => [t.getAllColumns()], (g) => g.flatMap((d) => d.getFlatColumns()), {
1686
+ getAllFlatColumns: m(() => [t.getAllColumns()], (a) => a.flatMap((d) => d.getFlatColumns()), {
1687
1687
  key: process.env.NODE_ENV === "development" && "getAllFlatColumns",
1688
1688
  debug: () => {
1689
- var g;
1690
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1689
+ var a;
1690
+ return (a = t.options.debugAll) != null ? a : t.options.debugColumns;
1691
1691
  }
1692
1692
  }),
1693
- _getAllFlatColumnsById: m(() => [t.getAllFlatColumns()], (g) => g.reduce((d, p) => (d[p.id] = p, d), {}), {
1693
+ _getAllFlatColumnsById: m(() => [t.getAllFlatColumns()], (a) => a.reduce((d, c) => (d[c.id] = c, d), {}), {
1694
1694
  key: process.env.NODE_ENV === "development" && "getAllFlatColumnsById",
1695
1695
  debug: () => {
1696
- var g;
1697
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1696
+ var a;
1697
+ return (a = t.options.debugAll) != null ? a : t.options.debugColumns;
1698
1698
  }
1699
1699
  }),
1700
- getAllLeafColumns: m(() => [t.getAllColumns(), t._getOrderColumnsFn()], (g, d) => {
1701
- let p = g.flatMap((c) => c.getLeafColumns());
1702
- return d(p);
1700
+ getAllLeafColumns: m(() => [t.getAllColumns(), t._getOrderColumnsFn()], (a, d) => {
1701
+ let c = a.flatMap((p) => p.getLeafColumns());
1702
+ return d(c);
1703
1703
  }, {
1704
1704
  key: process.env.NODE_ENV === "development" && "getAllLeafColumns",
1705
1705
  debug: () => {
1706
- var g;
1707
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1706
+ var a;
1707
+ return (a = t.options.debugAll) != null ? a : t.options.debugColumns;
1708
1708
  }
1709
1709
  }),
1710
- getColumn: (g) => {
1711
- const d = t._getAllFlatColumnsById()[g];
1712
- return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${g}' does not exist.`), d;
1710
+ getColumn: (a) => {
1711
+ const d = t._getAllFlatColumnsById()[a];
1712
+ return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${a}' does not exist.`), d;
1713
1713
  }
1714
1714
  };
1715
- Object.assign(t, a);
1716
- for (let g = 0; g < t._features.length; g++) {
1717
- const d = t._features[g];
1715
+ Object.assign(t, g);
1716
+ for (let a = 0; a < t._features.length; a++) {
1717
+ const d = t._features[a];
1718
1718
  d == null || d.createTable == null || d.createTable(t);
1719
1719
  }
1720
1720
  return t;
@@ -1729,13 +1729,13 @@ function ht(e, n, t, o) {
1729
1729
  column: t,
1730
1730
  getValue: () => n.getValue(o),
1731
1731
  renderValue: r,
1732
- getContext: m(() => [e, t, n, i], (l, u, s, a) => ({
1732
+ getContext: m(() => [e, t, n, i], (l, u, s, g) => ({
1733
1733
  table: l,
1734
1734
  column: u,
1735
1735
  row: s,
1736
- cell: a,
1737
- getValue: a.getValue,
1738
- renderValue: a.renderValue
1736
+ cell: g,
1737
+ getValue: g.getValue,
1738
+ renderValue: g.renderValue
1739
1739
  }), {
1740
1740
  key: process.env.NODE_ENV === "development" && "cell.getContext",
1741
1741
  debug: () => e.options.debugAll
@@ -1757,42 +1757,42 @@ const $t = (e, n, t, o, r, i, l) => {
1757
1757
  getValue: (s) => {
1758
1758
  if (u._valuesCache.hasOwnProperty(s))
1759
1759
  return u._valuesCache[s];
1760
- const a = e.getColumn(s);
1761
- if (a != null && a.accessorFn)
1762
- return u._valuesCache[s] = a.accessorFn(u.original, o), u._valuesCache[s];
1760
+ const g = e.getColumn(s);
1761
+ if (g != null && g.accessorFn)
1762
+ return u._valuesCache[s] = g.accessorFn(u.original, o), u._valuesCache[s];
1763
1763
  },
1764
1764
  getUniqueValues: (s) => {
1765
1765
  if (u._uniqueValuesCache.hasOwnProperty(s))
1766
1766
  return u._uniqueValuesCache[s];
1767
- const a = e.getColumn(s);
1768
- if (a != null && a.accessorFn)
1769
- return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = a.columnDef.getUniqueValues(u.original, o), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
1767
+ const g = e.getColumn(s);
1768
+ if (g != null && g.accessorFn)
1769
+ return g.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = g.columnDef.getUniqueValues(u.original, o), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
1770
1770
  },
1771
1771
  renderValue: (s) => {
1772
- var a;
1773
- return (a = u.getValue(s)) != null ? a : e.options.renderFallbackValue;
1772
+ var g;
1773
+ return (g = u.getValue(s)) != null ? g : e.options.renderFallbackValue;
1774
1774
  },
1775
1775
  subRows: i ?? [],
1776
1776
  getLeafRows: () => Ue(u.subRows, (s) => s.subRows),
1777
1777
  getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
1778
1778
  getParentRows: () => {
1779
- let s = [], a = u;
1779
+ let s = [], g = u;
1780
1780
  for (; ; ) {
1781
- const g = a.getParentRow();
1782
- if (!g)
1781
+ const a = g.getParentRow();
1782
+ if (!a)
1783
1783
  break;
1784
- s.push(g), a = g;
1784
+ s.push(a), g = a;
1785
1785
  }
1786
1786
  return s.reverse();
1787
1787
  },
1788
- getAllCells: m(() => [e.getAllLeafColumns()], (s) => s.map((a) => ht(e, u, a, a.id)), {
1788
+ getAllCells: m(() => [e.getAllLeafColumns()], (s) => s.map((g) => ht(e, u, g, g.id)), {
1789
1789
  key: process.env.NODE_ENV === "development" && "row.getAllCells",
1790
1790
  debug: () => {
1791
1791
  var s;
1792
1792
  return (s = e.options.debugAll) != null ? s : e.options.debugRows;
1793
1793
  }
1794
1794
  }),
1795
- _getAllCellsByColumnId: m(() => [u.getAllCells()], (s) => s.reduce((a, g) => (a[g.column.id] = g, a), {}), {
1795
+ _getAllCellsByColumnId: m(() => [u.getAllCells()], (s) => s.reduce((g, a) => (g[a.column.id] = a, g), {}), {
1796
1796
  key: process.env.NODE_ENV === "production" && "row.getAllCellsByColumnId",
1797
1797
  debug: () => {
1798
1798
  var s;
@@ -1801,8 +1801,8 @@ const $t = (e, n, t, o, r, i, l) => {
1801
1801
  })
1802
1802
  };
1803
1803
  for (let s = 0; s < e._features.length; s++) {
1804
- const a = e._features[s];
1805
- a == null || a.createRow == null || a.createRow(u, e);
1804
+ const g = e._features[s];
1805
+ g == null || g.createRow == null || g.createRow(u, e);
1806
1806
  }
1807
1807
  return u;
1808
1808
  };
@@ -1815,11 +1815,11 @@ function Ft() {
1815
1815
  }, o = function(r, i, l) {
1816
1816
  i === void 0 && (i = 0);
1817
1817
  const u = [];
1818
- for (let a = 0; a < r.length; a++) {
1819
- const g = $t(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
1820
- if (t.flatRows.push(g), t.rowsById[g.id] = g, u.push(g), e.options.getSubRows) {
1818
+ for (let g = 0; g < r.length; g++) {
1819
+ const a = $t(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l?.id);
1820
+ if (t.flatRows.push(a), t.rowsById[a.id] = a, u.push(a), e.options.getSubRows) {
1821
1821
  var s;
1822
- g.originalSubRows = e.options.getSubRows(r[a], a), (s = g.originalSubRows) != null && s.length && (g.subRows = o(g.originalSubRows, i + 1, g));
1822
+ a.originalSubRows = e.options.getSubRows(r[g], g), (s = a.originalSubRows) != null && s.length && (a.subRows = o(a.originalSubRows, i + 1, a));
1823
1823
  }
1824
1824
  }
1825
1825
  return u;
@@ -1841,38 +1841,38 @@ function Vt() {
1841
1841
  if (!t.rows.length || !(n != null && n.length))
1842
1842
  return t;
1843
1843
  const o = e.getState().sorting, r = [], i = o.filter((s) => {
1844
- var a;
1845
- return (a = e.getColumn(s.id)) == null ? void 0 : a.getCanSort();
1844
+ var g;
1845
+ return (g = e.getColumn(s.id)) == null ? void 0 : g.getCanSort();
1846
1846
  }), l = {};
1847
1847
  i.forEach((s) => {
1848
- const a = e.getColumn(s.id);
1849
- a && (l[s.id] = {
1850
- sortUndefined: a.columnDef.sortUndefined,
1851
- invertSorting: a.columnDef.invertSorting,
1852
- sortingFn: a.getSortingFn()
1848
+ const g = e.getColumn(s.id);
1849
+ g && (l[s.id] = {
1850
+ sortUndefined: g.columnDef.sortUndefined,
1851
+ invertSorting: g.columnDef.invertSorting,
1852
+ sortingFn: g.getSortingFn()
1853
1853
  });
1854
1854
  });
1855
1855
  const u = (s) => {
1856
- const a = s.map((g) => ({
1857
- ...g
1856
+ const g = s.map((a) => ({
1857
+ ...a
1858
1858
  }));
1859
- return a.sort((g, d) => {
1860
- for (let c = 0; c < i.length; c += 1) {
1861
- var p;
1862
- const f = i[c], S = l[f.id], C = (p = f?.desc) != null ? p : !1;
1859
+ return g.sort((a, d) => {
1860
+ for (let p = 0; p < i.length; p += 1) {
1861
+ var c;
1862
+ const f = i[p], S = l[f.id], C = (c = f?.desc) != null ? c : !1;
1863
1863
  let v = 0;
1864
1864
  if (S.sortUndefined) {
1865
- const R = g.getValue(f.id), w = d.getValue(f.id), F = R === void 0, P = w === void 0;
1865
+ const R = a.getValue(f.id), w = d.getValue(f.id), F = R === void 0, P = w === void 0;
1866
1866
  (F || P) && (v = F && P ? 0 : F ? S.sortUndefined : -S.sortUndefined);
1867
1867
  }
1868
- if (v === 0 && (v = S.sortingFn(g, d, f.id)), v !== 0)
1868
+ if (v === 0 && (v = S.sortingFn(a, d, f.id)), v !== 0)
1869
1869
  return C && (v *= -1), S.invertSorting && (v *= -1), v;
1870
1870
  }
1871
- return g.index - d.index;
1872
- }), a.forEach((g) => {
1871
+ return a.index - d.index;
1872
+ }), g.forEach((a) => {
1873
1873
  var d;
1874
- r.push(g), (d = g.subRows) != null && d.length && (g.subRows = u(g.subRows));
1875
- }), a;
1874
+ r.push(a), (d = a.subRows) != null && d.length && (a.subRows = u(a.subRows));
1875
+ }), g;
1876
1876
  };
1877
1877
  return {
1878
1878
  rows: u(t.rows),
@@ -1914,8 +1914,8 @@ function Pt(e) {
1914
1914
  flatRows: u,
1915
1915
  rowsById: s
1916
1916
  } = o;
1917
- const a = r * i, g = a + r;
1918
- l = l.slice(a, g);
1917
+ const g = r * i, a = g + r;
1918
+ l = l.slice(g, a);
1919
1919
  let d;
1920
1920
  n.options.paginateExpandedRows ? d = {
1921
1921
  rows: l,
@@ -1926,10 +1926,10 @@ function Pt(e) {
1926
1926
  flatRows: u,
1927
1927
  rowsById: s
1928
1928
  }), d.flatRows = [];
1929
- const p = (c) => {
1930
- d.flatRows.push(c), c.subRows.length && c.subRows.forEach(p);
1929
+ const c = (p) => {
1930
+ d.flatRows.push(p), p.subRows.length && p.subRows.forEach(c);
1931
1931
  };
1932
- return d.rows.forEach(p), d;
1932
+ return d.rows.forEach(c), d;
1933
1933
  }, {
1934
1934
  key: process.env.NODE_ENV === "development" && "getPaginationRowModel",
1935
1935
  debug: () => {
@@ -1951,7 +1951,7 @@ function Pt(e) {
1951
1951
  function k() {
1952
1952
  return !0;
1953
1953
  }
1954
- const Mt = Symbol("merge-proxy"), At = {
1954
+ const Mt = Symbol("merge-proxy"), yt = {
1955
1955
  get(e, n, t) {
1956
1956
  return n === Mt ? t : e.get(n);
1957
1957
  },
@@ -2001,13 +2001,13 @@ function b() {
2001
2001
  o.push(...Object.keys(te(n[r])));
2002
2002
  return [...Array.from(new Set(o))];
2003
2003
  }
2004
- }, At);
2004
+ }, yt);
2005
2005
  }
2006
2006
  const ve = Ce({
2007
2007
  props: ["render", "props"],
2008
- setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? ye(e.render, e.props) : e.render
2008
+ setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? Ae(e.render, e.props) : e.render
2009
2009
  });
2010
- function yt(e) {
2010
+ function At(e) {
2011
2011
  const n = b({
2012
2012
  state: {},
2013
2013
  // Dummy state
@@ -2047,6 +2047,8 @@ const Tt = /* @__PURE__ */ Ce({
2047
2047
  pageSize: { default: 10 },
2048
2048
  showPagination: { type: Boolean, default: !0 },
2049
2049
  totalItems: { default: 0 },
2050
+ manualPagination: { type: Boolean, default: !0 },
2051
+ manualSorting: { type: Boolean, default: !0 },
2050
2052
  getRowId: {}
2051
2053
  }, {
2052
2054
  sorting: {},
@@ -2058,7 +2060,7 @@ const Tt = /* @__PURE__ */ Ce({
2058
2060
  }),
2059
2061
  emits: ["update:sorting", "update:pagination", "update:selection"],
2060
2062
  setup(e) {
2061
- const n = e, t = q(e, "sorting"), o = q(e, "pagination"), r = q(e, "selection"), i = yt({
2063
+ const n = e, t = q(e, "sorting"), o = q(e, "pagination"), r = q(e, "selection"), i = At({
2062
2064
  initialState: { pagination: { pageSize: n.pageSize } },
2063
2065
  get data() {
2064
2066
  return n.data;
@@ -2078,8 +2080,9 @@ const Tt = /* @__PURE__ */ Ce({
2078
2080
  onRowSelectionChange: (l) => {
2079
2081
  X(l, r);
2080
2082
  },
2081
- manualPagination: !0,
2082
- manualSorting: !0,
2083
+ manualPagination: n.manualPagination,
2084
+ // set to false to enable client-side pagination
2085
+ manualSorting: n.manualSorting,
2083
2086
  state: {
2084
2087
  get sorting() {
2085
2088
  return t.value;
@@ -2107,14 +2110,14 @@ const Tt = /* @__PURE__ */ Ce({
2107
2110
  key: s.id
2108
2111
  }, {
2109
2112
  default: V(() => [
2110
- (h(!0), H(N, null, O(s.headers, (a) => (h(), M(_(Le), {
2111
- key: a.id
2113
+ (h(!0), H(N, null, O(s.headers, (g) => (h(), M(_(Le), {
2114
+ key: g.id
2112
2115
  }, {
2113
2116
  default: V(() => [
2114
- a.isPlaceholder ? U("", !0) : (h(), M(_(ve), {
2117
+ g.isPlaceholder ? U("", !0) : (h(), M(_(ve), {
2115
2118
  key: 0,
2116
- render: a.column.columnDef.header,
2117
- props: a.getContext()
2119
+ render: g.column.columnDef.header,
2120
+ props: g.getContext()
2118
2121
  }, null, 8, ["render", "props"]))
2119
2122
  ]),
2120
2123
  _: 2
@@ -2132,13 +2135,13 @@ const Tt = /* @__PURE__ */ Ce({
2132
2135
  "data-state": s.getIsSelected() ? "selected" : void 0
2133
2136
  }, {
2134
2137
  default: V(() => [
2135
- (h(!0), H(N, null, O(s.getVisibleCells(), (a) => (h(), M(_(pe), {
2136
- key: a.id
2138
+ (h(!0), H(N, null, O(s.getVisibleCells(), (g) => (h(), M(_(ce), {
2139
+ key: g.id
2137
2140
  }, {
2138
2141
  default: V(() => [
2139
2142
  I(_(ve), {
2140
- render: a.column.columnDef.cell,
2141
- props: a.getContext()
2143
+ render: g.column.columnDef.cell,
2144
+ props: g.getContext()
2142
2145
  }, null, 8, ["render", "props"])
2143
2146
  ]),
2144
2147
  _: 2
@@ -2161,7 +2164,7 @@ const Tt = /* @__PURE__ */ Ce({
2161
2164
  default: V(() => [
2162
2165
  I(_(j), null, {
2163
2166
  default: V(() => [
2164
- I(_(pe), {
2167
+ I(_(ce), {
2165
2168
  colspan: l.columns.length
2166
2169
  }, {
2167
2170
  default: V(() => [