@prefabs.tech/vue3-tanstack-table 0.29.1 → 0.30.0

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,4 +1,4 @@
1
- import { defineComponent as Q, h as Y, isRef as Jt, shallowRef as Zt, watch as yt, ref as K, watchEffect as en, unref as C, computed as B, createElementBlock as y, openBlock as S, createCommentVNode as D, createElementVNode as A, toDisplayString as N, Fragment as H, renderList as z, createVNode as E, createBlock as _, withCtx as G, normalizeClass as ge, normalizeStyle as oe, mergeProps as te, resolveDynamicComponent as ue, createTextVNode as tn, renderSlot as J, createSlots as Rt } from "vue";
1
+ import { defineComponent as Q, h as Y, isRef as Jt, shallowRef as Zt, watch as Ct, ref as K, watchEffect as en, unref as y, computed as B, createElementBlock as C, openBlock as S, createCommentVNode as D, createElementVNode as A, toDisplayString as N, Fragment as H, renderList as z, createVNode as E, createBlock as _, withCtx as G, normalizeClass as ge, normalizeStyle as oe, mergeProps as te, resolveDynamicComponent as ue, createTextVNode as tn, renderSlot as J, createSlots as Rt } from "vue";
2
2
  import { DebouncedInput as Ft, ButtonElement as Z, formatDateTime as nn, formatDate as on, Tooltip as rn, Dropdown as ln, ConfirmationModal as sn, Popup as an, SortableList as un, getStorage as dn, LoadingIcon as cn, FilesList as gn } from "@prefabs.tech/vue3-ui";
3
3
  import { SelectInput as fn, DatePicker as pn, NumberInput as tt, Checkbox as Te } from "@prefabs.tech/vue3-form";
4
4
  const bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, o, t, n = "") => {
@@ -17,7 +17,7 @@ const bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, o, t, n = "") => {
17
17
  prefix: a,
18
18
  name: s
19
19
  };
20
- return o && !Ce(u) ? null : u;
20
+ return o && !ye(u) ? null : u;
21
21
  }
22
22
  const r = i[0], l = r.split("-");
23
23
  if (l.length > 1) {
@@ -26,7 +26,7 @@ const bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, o, t, n = "") => {
26
26
  prefix: l.shift(),
27
27
  name: l.join("-")
28
28
  };
29
- return o && !Ce(s) ? null : s;
29
+ return o && !ye(s) ? null : s;
30
30
  }
31
31
  if (t && n === "") {
32
32
  const s = {
@@ -34,10 +34,10 @@ const bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, o, t, n = "") => {
34
34
  prefix: "",
35
35
  name: r
36
36
  };
37
- return o && !Ce(s, t) ? null : s;
37
+ return o && !ye(s, t) ? null : s;
38
38
  }
39
39
  return null;
40
- }, Ce = (e, o) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
40
+ }, ye = (e, o) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
41
41
  // Check name: cannot be empty
42
42
  ((o && e.prefix === "" || e.prefix) && e.name) : !1, Pt = Object.freeze(
43
43
  {
@@ -175,7 +175,7 @@ function xt(e, o) {
175
175
  n ? e.icons[t] = n : e.missing.add(t);
176
176
  }) : [];
177
177
  }
178
- function Cn(e, o, t) {
178
+ function yn(e, o, t) {
179
179
  try {
180
180
  if (typeof t.body == "string")
181
181
  return e.icons[o] = { ...t }, !0;
@@ -187,7 +187,7 @@ let fe = !1;
187
187
  function At(e) {
188
188
  return typeof e == "boolean" && (fe = e), fe;
189
189
  }
190
- function yn(e) {
190
+ function Cn(e) {
191
191
  const o = typeof e == "string" ? be(e, !0, fe) : e;
192
192
  if (o) {
193
193
  const t = ie(o.provider, o.prefix), n = o.name;
@@ -199,7 +199,7 @@ function Rn(e, o) {
199
199
  if (!t)
200
200
  return !1;
201
201
  const n = ie(t.provider, t.prefix);
202
- return o ? Cn(n, t.name, o) : (n.missing.add(t.name), !0);
202
+ return o ? yn(n, t.name, o) : (n.missing.add(t.name), !0);
203
203
  }
204
204
  function Fn(e, o) {
205
205
  if (typeof e != "object")
@@ -211,7 +211,7 @@ function Fn(e, o) {
211
211
  })), i;
212
212
  }
213
213
  const t = e.prefix;
214
- if (!Ce({
214
+ if (!ye({
215
215
  prefix: t,
216
216
  name: "a"
217
217
  }))
@@ -391,11 +391,11 @@ function We(e) {
391
391
  const Qe = /* @__PURE__ */ Object.create(null), re = [
392
392
  "https://api.simplesvg.com",
393
393
  "https://api.unisvg.com"
394
- ], ye = [];
394
+ ], Ce = [];
395
395
  for (; re.length > 0; )
396
- re.length === 1 || Math.random() > 0.5 ? ye.push(re.shift()) : ye.push(re.pop());
396
+ re.length === 1 || Math.random() > 0.5 ? Ce.push(re.shift()) : Ce.push(re.pop());
397
397
  Qe[""] = We({
398
- resources: ["https://api.iconify.design"].concat(ye)
398
+ resources: ["https://api.iconify.design"].concat(Ce)
399
399
  });
400
400
  function Ln(e, o) {
401
401
  const t = We(o);
@@ -1134,7 +1134,7 @@ const po = {
1134
1134
  let n;
1135
1135
  if (typeof e != "string" || (n = be(e, !1, !0)) === null)
1136
1136
  return this.abortLoading(), null;
1137
- let i = yn(n);
1137
+ let i = Cn(n);
1138
1138
  if (!i)
1139
1139
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
1140
1140
  name: e,
@@ -1344,7 +1344,7 @@ function pt(e, o, t) {
1344
1344
  l.createHeader == null || l.createHeader(r, e);
1345
1345
  }), r;
1346
1346
  }
1347
- const Co = {
1347
+ const yo = {
1348
1348
  createTable: (e) => {
1349
1349
  e.getHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => {
1350
1350
  var r, l;
@@ -1476,7 +1476,7 @@ const Ye = (e, o, t, n, i, r, l) => {
1476
1476
  u == null || u.createRow == null || u.createRow(s, e);
1477
1477
  }
1478
1478
  return s;
1479
- }, yo = {
1479
+ }, Co = {
1480
1480
  createColumn: (e, o) => {
1481
1481
  e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
1482
1482
  if (e._getFacetedMinMaxValues)
@@ -1860,7 +1860,11 @@ const Eo = {
1860
1860
  return o.filter((r) => !i.includes(r.id));
1861
1861
  }, b(e.options, "debugColumns", "getCenterLeafColumns"));
1862
1862
  }
1863
- }, he = {
1863
+ };
1864
+ function Lo(e) {
1865
+ return e || (typeof document < "u" ? document : null);
1866
+ }
1867
+ const he = {
1864
1868
  size: 150,
1865
1869
  minSize: 20,
1866
1870
  maxSize: Number.MAX_SAFE_INTEGER
@@ -1871,7 +1875,7 @@ const Eo = {
1871
1875
  deltaPercentage: null,
1872
1876
  isResizingColumn: !1,
1873
1877
  columnSizingStart: []
1874
- }), Lo = {
1878
+ }), To = {
1875
1879
  getDefaultColumnDef: () => he,
1876
1880
  getInitialState: (e) => ({
1877
1881
  columnSizing: {},
@@ -1951,7 +1955,7 @@ const Eo = {
1951
1955
  deltaPercentage: null,
1952
1956
  columnSizingStart: []
1953
1957
  }));
1954
- }, d = t || typeof document < "u" ? document : null, m = {
1958
+ }, d = Lo(t), m = {
1955
1959
  moveHandler: (R) => f(R.clientX),
1956
1960
  upHandler: (R) => {
1957
1961
  d?.removeEventListener("mousemove", m.moveHandler), d?.removeEventListener("mouseup", m.upHandler), g(R.clientX);
@@ -1962,7 +1966,7 @@ const Eo = {
1962
1966
  var $;
1963
1967
  d?.removeEventListener("touchmove", p.moveHandler), d?.removeEventListener("touchend", p.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), g(($ = R.touches[0]) == null ? void 0 : $.clientX);
1964
1968
  }
1965
- }, h = To() ? {
1969
+ }, h = Ho() ? {
1966
1970
  passive: !1
1967
1971
  } : !1;
1968
1972
  _e(r) ? (d?.addEventListener("touchmove", p.moveHandler, h), d?.addEventListener("touchend", p.upHandler, h)) : (d?.addEventListener("mousemove", m.moveHandler, h), d?.addEventListener("mouseup", m.upHandler, h)), o.setColumnSizingInfo((R) => ({
@@ -2000,7 +2004,7 @@ const Eo = {
2000
2004
  }
2001
2005
  };
2002
2006
  let ve = null;
2003
- function To() {
2007
+ function Ho() {
2004
2008
  if (typeof ve == "boolean") return ve;
2005
2009
  let e = !1;
2006
2010
  try {
@@ -2019,7 +2023,7 @@ function To() {
2019
2023
  function _e(e) {
2020
2024
  return e.type === "touchstart";
2021
2025
  }
2022
- const Ho = {
2026
+ const Bo = {
2023
2027
  getInitialState: (e) => ({
2024
2028
  columnVisibility: {},
2025
2029
  ...e
@@ -2067,14 +2071,14 @@ const Ho = {
2067
2071
  function de(e, o) {
2068
2072
  return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
2069
2073
  }
2070
- const Bo = {
2074
+ const Oo = {
2071
2075
  createTable: (e) => {
2072
2076
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
2073
2077
  if (e._getGlobalFacetedMinMaxValues)
2074
2078
  return e._getGlobalFacetedMinMaxValues();
2075
2079
  };
2076
2080
  }
2077
- }, Oo = {
2081
+ }, Go = {
2078
2082
  getInitialState: (e) => ({
2079
2083
  globalFilter: void 0,
2080
2084
  ...e
@@ -2107,7 +2111,7 @@ const Bo = {
2107
2111
  e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
2108
2112
  };
2109
2113
  }
2110
- }, Go = {
2114
+ }, zo = {
2111
2115
  getInitialState: (e) => ({
2112
2116
  expanded: {},
2113
2117
  ...e
@@ -2197,7 +2201,7 @@ const Bo = {
2197
2201
  }, ze = 0, Ne = 10, Me = () => ({
2198
2202
  pageIndex: ze,
2199
2203
  pageSize: Ne
2200
- }), zo = {
2204
+ }), No = {
2201
2205
  getInitialState: (e) => ({
2202
2206
  ...e,
2203
2207
  pagination: {
@@ -2280,7 +2284,7 @@ const Bo = {
2280
2284
  }, Ee = () => ({
2281
2285
  top: [],
2282
2286
  bottom: []
2283
- }), No = {
2287
+ }), jo = {
2284
2288
  getInitialState: (e) => ({
2285
2289
  rowPinning: Ee(),
2286
2290
  ...e
@@ -2381,7 +2385,7 @@ const Bo = {
2381
2385
  return o.filter((r) => !i.has(r.id));
2382
2386
  }, b(e.options, "debugRows", "getCenterRows"));
2383
2387
  }
2384
- }, jo = {
2388
+ }, qo = {
2385
2389
  getInitialState: (e) => ({
2386
2390
  rowSelection: {},
2387
2391
  ...e
@@ -2537,10 +2541,10 @@ function qe(e, o, t) {
2537
2541
  }
2538
2542
  }), i ? "all" : r ? "some" : !1;
2539
2543
  }
2540
- const Ke = /([0-9]+)/gm, qo = (e, o, t) => Nt(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Ko = (e, o, t) => Nt(ne(e.getValue(t)), ne(o.getValue(t))), Uo = (e, o, t) => et(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Wo = (e, o, t) => et(ne(e.getValue(t)), ne(o.getValue(t))), Qo = (e, o, t) => {
2544
+ const Ke = /([0-9]+)/gm, Ko = (e, o, t) => Nt(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Uo = (e, o, t) => Nt(ne(e.getValue(t)), ne(o.getValue(t))), Wo = (e, o, t) => et(ne(e.getValue(t)).toLowerCase(), ne(o.getValue(t)).toLowerCase()), Qo = (e, o, t) => et(ne(e.getValue(t)), ne(o.getValue(t))), Xo = (e, o, t) => {
2541
2545
  const n = e.getValue(t), i = o.getValue(t);
2542
2546
  return n > i ? 1 : n < i ? -1 : 0;
2543
- }, Xo = (e, o, t) => et(e.getValue(t), o.getValue(t));
2547
+ }, Yo = (e, o, t) => et(e.getValue(t), o.getValue(t));
2544
2548
  function et(e, o) {
2545
2549
  return e === o ? 0 : e > o ? 1 : -1;
2546
2550
  }
@@ -2568,13 +2572,13 @@ function Nt(e, o) {
2568
2572
  return t.length - n.length;
2569
2573
  }
2570
2574
  const se = {
2571
- alphanumeric: qo,
2572
- alphanumericCaseSensitive: Ko,
2573
- text: Uo,
2574
- textCaseSensitive: Wo,
2575
- datetime: Qo,
2576
- basic: Xo
2577
- }, Yo = {
2575
+ alphanumeric: Ko,
2576
+ alphanumericCaseSensitive: Uo,
2577
+ text: Wo,
2578
+ textCaseSensitive: Qo,
2579
+ datetime: Xo,
2580
+ basic: Yo
2581
+ }, Jo = {
2578
2582
  getInitialState: (e) => ({
2579
2583
  sorting: [],
2580
2584
  ...e
@@ -2663,30 +2667,30 @@ const se = {
2663
2667
  e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
2664
2668
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
2665
2669
  }
2666
- }, Jo = [
2667
- Co,
2668
- Ho,
2670
+ }, Zo = [
2671
+ yo,
2672
+ Bo,
2669
2673
  Eo,
2670
2674
  ko,
2671
- yo,
2675
+ Co,
2672
2676
  Ro,
2673
- Bo,
2674
- //depends on ColumnFaceting
2675
2677
  Oo,
2678
+ //depends on ColumnFaceting
2679
+ Go,
2676
2680
  //depends on ColumnFiltering
2677
- Yo,
2681
+ Jo,
2678
2682
  _o,
2679
2683
  //depends on RowSorting
2680
- Go,
2681
2684
  zo,
2682
2685
  No,
2683
2686
  jo,
2684
- Lo
2687
+ qo,
2688
+ To
2685
2689
  ];
2686
- function Zo(e) {
2690
+ function ei(e) {
2687
2691
  var o, t;
2688
2692
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
2689
- const n = [...Jo, ...(o = e._features) != null ? o : []];
2693
+ const n = [...Zo, ...(o = e._features) != null ? o : []];
2690
2694
  let i = {
2691
2695
  _features: n
2692
2696
  };
@@ -2811,7 +2815,7 @@ function jt() {
2811
2815
  return t.rows = n(o), t;
2812
2816
  }, b(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
2813
2817
  }
2814
- function ei(e) {
2818
+ function ti(e) {
2815
2819
  const o = [], t = (n) => {
2816
2820
  var i;
2817
2821
  o.push(n), (i = n.subRows) != null && i.length && n.getIsExpanded() && n.subRows.forEach(t);
@@ -2822,10 +2826,10 @@ function ei(e) {
2822
2826
  rowsById: e.rowsById
2823
2827
  };
2824
2828
  }
2825
- function ti(e, o, t) {
2826
- return t.options.filterFromLeafRows ? ni(e, o, t) : oi(e, o, t);
2827
- }
2828
2829
  function ni(e, o, t) {
2830
+ return t.options.filterFromLeafRows ? oi(e, o, t) : ii(e, o, t);
2831
+ }
2832
+ function oi(e, o, t) {
2829
2833
  var n;
2830
2834
  const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(a, u) {
2831
2835
  u === void 0 && (u = 0);
@@ -2854,7 +2858,7 @@ function ni(e, o, t) {
2854
2858
  rowsById: r
2855
2859
  };
2856
2860
  }
2857
- function oi(e, o, t) {
2861
+ function ii(e, o, t) {
2858
2862
  var n;
2859
2863
  const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(a, u) {
2860
2864
  u === void 0 && (u = 0);
@@ -2942,7 +2946,7 @@ function qt() {
2942
2946
  return !1;
2943
2947
  return !0;
2944
2948
  };
2945
- return ti(o.rows, f, e);
2949
+ return ni(o.rows, f, e);
2946
2950
  }, b(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
2947
2951
  }
2948
2952
  function Kt(e) {
@@ -2965,7 +2969,7 @@ function Kt(e) {
2965
2969
  rows: l,
2966
2970
  flatRows: s,
2967
2971
  rowsById: a
2968
- } : f = ei({
2972
+ } : f = ti({
2969
2973
  rows: l,
2970
2974
  flatRows: s,
2971
2975
  rowsById: a
@@ -3038,9 +3042,9 @@ function Ut() {
3038
3042
  function Se() {
3039
3043
  return !0;
3040
3044
  }
3041
- const ii = Symbol("merge-proxy"), ri = {
3045
+ const ri = Symbol("merge-proxy"), li = {
3042
3046
  get(e, o, t) {
3043
- return o === ii ? t : e.get(o);
3047
+ return o === ri ? t : e.get(o);
3044
3048
  },
3045
3049
  has(e, o) {
3046
3050
  return e.has(o);
@@ -3085,7 +3089,7 @@ function ae() {
3085
3089
  for (let i = 0; i < o.length; i++) n.push(...Object.keys(Le(o[i])));
3086
3090
  return [...Array.from(new Set(n))];
3087
3091
  }
3088
- }, ri);
3092
+ }, li);
3089
3093
  }
3090
3094
  const pe = Q({
3091
3095
  props: ["render", "props"],
@@ -3093,7 +3097,7 @@ const pe = Q({
3093
3097
  });
3094
3098
  function ht(e) {
3095
3099
  return ae(e, {
3096
- data: C(e.data)
3100
+ data: y(e.data)
3097
3101
  });
3098
3102
  }
3099
3103
  function Wt(e) {
@@ -3110,10 +3114,10 @@ function Wt(e) {
3110
3114
  ...l
3111
3115
  } : ae(r, l);
3112
3116
  }
3113
- }, o ? ht(e) : e), n = Zo(t);
3117
+ }, o ? ht(e) : e), n = ei(t);
3114
3118
  if (o) {
3115
3119
  const r = Zt(e.data);
3116
- yt(r, () => {
3120
+ Ct(r, () => {
3117
3121
  n.setState((l) => ({
3118
3122
  ...l,
3119
3123
  data: r.value
@@ -3144,19 +3148,19 @@ function Wt(e) {
3144
3148
  }), n;
3145
3149
  }
3146
3150
  var x = /* @__PURE__ */ ((e) => (e.BETWEEN = "between", e.CONTAINS = "contains", e.ENDS_WITH = "endsWith", e.EQUALS = "equals", e.GREATER_THAN = "greaterThan", e.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", e.IN = "in", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.IS_NOT_NULL = "isNotNull", e.IS_NULL = "isNull", e.LESS_THAN = "lessThan", e.LESS_THAN_OR_EQUAL = "lessThanOrEqual", e.LIKE = "like", e.NOT_BETWEEN = "notBetween", e.NOT_EQUAL = "notEqual", e.NOT_IN = "notIn", e.NOT_LIKE = "notLike", e.STARTS_WITH = "startsWith", e))(x || {}), T = /* @__PURE__ */ ((e) => (e.BETWEEN = "bt", e.CONTAINS = "ct", e.EMPTY = "empty", e.ENDS_WITH = "ew", e.EQUALS = "eq", e.GREATER_THAN = "gt", e.GREATER_THAN_OR_EQUAL = "gte", e.IN = "in", e.LESS_THAN = "lt", e.LESS_THAN_OR_EQUAL = "lte", e.LIKE = "like", e.NULL = "null", e.STARTS_WITH = "sw", e))(T || {});
3147
- const li = { class: "pagination" }, si = {
3151
+ const si = { class: "pagination" }, ai = {
3148
3152
  key: 0,
3149
3153
  class: "items-per-page-control"
3150
- }, ai = ["value"], ui = ["value"], di = {
3154
+ }, ui = ["value"], di = ["value"], ci = {
3151
3155
  key: 1,
3152
3156
  class: "page-input-control"
3153
- }, ci = {
3157
+ }, gi = {
3154
3158
  key: 2,
3155
3159
  class: "pagination-buttons-wrapper"
3156
- }, gi = { key: 0 }, fi = { key: 1 }, pi = { key: 1 }, mi = { key: 3 }, hi = {
3160
+ }, fi = { key: 0 }, pi = { key: 1 }, mi = { key: 1 }, hi = { key: 3 }, vi = {
3157
3161
  name: "TablePagination"
3158
- }, vi = /* @__PURE__ */ Q({
3159
- ...hi,
3162
+ }, Si = /* @__PURE__ */ Q({
3163
+ ...vi,
3160
3164
  props: {
3161
3165
  currentPage: {
3162
3166
  required: !0,
@@ -3225,30 +3229,30 @@ const li = { class: "pagination" }, si = {
3225
3229
  const c = parseInt(u.toString(), 10) - 1;
3226
3230
  !isNaN(c) && c >= 0 && c < r.value && n("update:currentPage", c);
3227
3231
  };
3228
- return (u, c) => (S(), y("div", li, [
3229
- e.showItemsPerPageControl ? (S(), y("div", si, [
3232
+ return (u, c) => (S(), C("div", si, [
3233
+ e.showItemsPerPageControl ? (S(), C("div", ai, [
3230
3234
  A("span", null, N(e.itemsPerPageControlLabel), 1),
3231
3235
  A("select", {
3232
3236
  value: i.value,
3233
3237
  onChange: s
3234
3238
  }, [
3235
- (S(!0), y(H, null, z(e.itemsPerPageOptions, (f) => (S(), y("option", {
3239
+ (S(!0), C(H, null, z(e.itemsPerPageOptions, (f) => (S(), C("option", {
3236
3240
  key: `items-per-page-option-${f}`,
3237
3241
  value: f
3238
- }, N(f), 9, ui))), 128))
3239
- ], 40, ai)
3242
+ }, N(f), 9, di))), 128))
3243
+ ], 40, ui)
3240
3244
  ])) : D("", !0),
3241
- r.value > 1 && e.showPageInput ? (S(), y("div", di, [
3245
+ r.value > 1 && e.showPageInput ? (S(), C("div", ci, [
3242
3246
  A("span", null, N(e.pageInputLabel), 1),
3243
- E(C(Ft), {
3247
+ E(y(Ft), {
3244
3248
  type: "number",
3245
3249
  "debounce-time": e.inputDebounceTime,
3246
3250
  "onUpdate:modelValue": a
3247
3251
  }, null, 8, ["debounce-time"])
3248
3252
  ])) : D("", !0),
3249
- r.value > 1 ? (S(), y("div", ci, [
3250
- e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div", gi, [
3251
- e.showFirstLastButtons ? (S(), _(C(Z), {
3253
+ r.value > 1 ? (S(), C("div", gi, [
3254
+ e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), C("div", fi, [
3255
+ e.showFirstLastButtons ? (S(), _(y(Z), {
3252
3256
  key: 0,
3253
3257
  disabled: !(e.currentPage > 0),
3254
3258
  class: "first-page",
@@ -3256,11 +3260,11 @@ const li = { class: "pagination" }, si = {
3256
3260
  onClick: c[0] || (c[0] = (f) => u.$emit("update:currentPage", 0))
3257
3261
  }, {
3258
3262
  iconLeft: G(() => [
3259
- E(C(j), { icon: "prime:angle-double-left" })
3263
+ E(y(j), { icon: "prime:angle-double-left" })
3260
3264
  ]),
3261
3265
  _: 1
3262
3266
  }, 8, ["disabled"])) : D("", !0),
3263
- e.showPreviousNextButtons ? (S(), _(C(Z), {
3267
+ e.showPreviousNextButtons ? (S(), _(y(Z), {
3264
3268
  key: 1,
3265
3269
  disabled: !(e.currentPage > 0),
3266
3270
  class: "previous-page",
@@ -3268,22 +3272,22 @@ const li = { class: "pagination" }, si = {
3268
3272
  onClick: c[1] || (c[1] = (f) => u.$emit("update:currentPage", e.currentPage - 1))
3269
3273
  }, {
3270
3274
  iconLeft: G(() => [
3271
- E(C(j), { icon: "prime:angle-left" })
3275
+ E(y(j), { icon: "prime:angle-left" })
3272
3276
  ]),
3273
3277
  _: 1
3274
3278
  }, 8, ["disabled"])) : D("", !0)
3275
3279
  ])) : D("", !0),
3276
3280
  A("div", null, [
3277
- e.showPageButtons ? (S(!0), y(H, { key: 0 }, z(l.value, (f) => (S(), _(C(Z), {
3281
+ e.showPageButtons ? (S(!0), C(H, { key: 0 }, z(l.value, (f) => (S(), _(y(Z), {
3278
3282
  key: `page-button-${f}`,
3279
3283
  class: ge(`page-button ${f === e.currentPage + 1 ? "active" : ""}`),
3280
3284
  label: `${f}`,
3281
3285
  size: "small",
3282
3286
  onClick: (g) => u.$emit("update:currentPage", f - 1)
3283
- }, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), y("span", fi, N(`${e.currentPage + 1} / ${r.value}`), 1))
3287
+ }, null, 8, ["class", "label", "onClick"]))), 128)) : (S(), C("span", pi, N(`${e.currentPage + 1} / ${r.value}`), 1))
3284
3288
  ]),
3285
- e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), y("div", pi, [
3286
- e.showPreviousNextButtons ? (S(), _(C(Z), {
3289
+ e.showFirstLastButtons || e.showPreviousNextButtons ? (S(), C("div", mi, [
3290
+ e.showPreviousNextButtons ? (S(), _(y(Z), {
3287
3291
  key: 0,
3288
3292
  disabled: !(e.currentPage < r.value - 1),
3289
3293
  class: "next-page",
@@ -3291,11 +3295,11 @@ const li = { class: "pagination" }, si = {
3291
3295
  onClick: c[2] || (c[2] = (f) => u.$emit("update:currentPage", e.currentPage + 1))
3292
3296
  }, {
3293
3297
  iconLeft: G(() => [
3294
- E(C(j), { icon: "prime:angle-right" })
3298
+ E(y(j), { icon: "prime:angle-right" })
3295
3299
  ]),
3296
3300
  _: 1
3297
3301
  }, 8, ["disabled"])) : D("", !0),
3298
- e.showFirstLastButtons ? (S(), _(C(Z), {
3302
+ e.showFirstLastButtons ? (S(), _(y(Z), {
3299
3303
  key: 1,
3300
3304
  disabled: !(e.currentPage < r.value - 1),
3301
3305
  class: "last-page",
@@ -3303,15 +3307,15 @@ const li = { class: "pagination" }, si = {
3303
3307
  onClick: c[3] || (c[3] = (f) => u.$emit("update:currentPage", r.value - 1))
3304
3308
  }, {
3305
3309
  iconLeft: G(() => [
3306
- E(C(j), { icon: "prime:angle-double-right" })
3310
+ E(y(j), { icon: "prime:angle-double-right" })
3307
3311
  ]),
3308
3312
  _: 1
3309
3313
  }, 8, ["disabled"])) : D("", !0)
3310
3314
  ])) : D("", !0)
3311
- ])) : (S(), y("span", mi, N(`${e.currentPage + 1} / ${r.value}`), 1))
3315
+ ])) : (S(), C("span", hi, N(`${e.currentPage + 1} / ${r.value}`), 1))
3312
3316
  ]));
3313
3317
  }
3314
- }), we = 0, Si = [10, 20, 30], wi = 10, Qt = "table", Xt = {
3318
+ }), we = 0, wi = [10, 20, 30], yi = 10, Qt = "table", Xt = {
3315
3319
  day: "2-digit",
3316
3320
  month: "2-digit",
3317
3321
  year: "numeric"
@@ -3324,7 +3328,7 @@ const li = { class: "pagination" }, si = {
3324
3328
  value: e,
3325
3329
  locale: o = "en-GB",
3326
3330
  formatOptions: t
3327
- }) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(o, t).format(e), yi = (e, o, t) => on(e, o, t ?? Xt), Ri = (e, o, t) => nn(e, o, t ?? Ci), ce = (e) => {
3331
+ }) => typeof e != "number" || isNaN(e) ? e : new Intl.NumberFormat(o, t).format(e), Ri = (e, o, t) => on(e, o, t ?? Xt), Fi = (e, o, t) => nn(e, o, t ?? Ci), ce = (e) => {
3328
3332
  switch (e) {
3329
3333
  case x.CONTAINS:
3330
3334
  return { operator: T.CONTAINS };
@@ -3387,7 +3391,7 @@ const li = { class: "pagination" }, si = {
3387
3391
  key: e.id,
3388
3392
  ...ce(e.filterFn),
3389
3393
  value: o.slice(0, 2).join(",")
3390
- } : null : e.filterFn && !Pi(e.filterFn) ? {
3394
+ } : null : e.filterFn && !$i(e.filterFn) ? {
3391
3395
  key: e.id,
3392
3396
  ...ce(e.filterFn),
3393
3397
  value: o[0]
@@ -3396,7 +3400,7 @@ const li = { class: "pagination" }, si = {
3396
3400
  ...ce(e.filterFn || x.IN),
3397
3401
  value: o.join(",")
3398
3402
  };
3399
- }, Fi = (e, o, t) => {
3403
+ }, bi = (e, o, t) => {
3400
3404
  const n = () => {
3401
3405
  if (!o || o.length === 0) return null;
3402
3406
  const s = o.filter((a) => Array.isArray(a.value) ? a.value.filter((c) => Yt(c)).length > 0 : typeof a.value == "string" ? a.value.trim() !== "" : a.value != null);
@@ -3426,7 +3430,7 @@ const li = { class: "pagination" }, si = {
3426
3430
  sort: l(),
3427
3431
  offset: r()
3428
3432
  };
3429
- }, bi = (e, o) => {
3433
+ }, Pi = (e, o) => {
3430
3434
  try {
3431
3435
  const t = o.getItem(`${Qt}-${e}`);
3432
3436
  return t && JSON.parse(t);
@@ -3434,21 +3438,21 @@ const li = { class: "pagination" }, si = {
3434
3438
  console.log("[Dz table] Could not restore table state", t);
3435
3439
  }
3436
3440
  return null;
3437
- }, Ct = (e, o, t) => {
3441
+ }, yt = (e, o, t) => {
3438
3442
  try {
3439
3443
  t.setItem(`${Qt}-${e}`, JSON.stringify(o));
3440
3444
  } catch (n) {
3441
3445
  console.log("[Dz table] Could not store table state", n);
3442
3446
  }
3443
- }, Pi = (e) => [
3447
+ }, $i = (e) => [
3444
3448
  x.IN,
3445
3449
  x.NOT_IN,
3446
3450
  x.BETWEEN,
3447
3451
  x.NOT_BETWEEN
3448
- ].includes(e), Yt = (e) => e != null, $i = ["data-id", "data-selected"], Ii = ["data-label", "data-align"], xi = { key: 1 }, Ai = ["colspan"], Di = {
3452
+ ].includes(e), Yt = (e) => e != null, Ii = ["data-id", "data-selected"], xi = ["data-label", "data-align"], Ai = { key: 1 }, Di = ["colspan"], Vi = {
3449
3453
  name: "TableBody"
3450
- }, Vi = /* @__PURE__ */ Q({
3451
- ...Di,
3454
+ }, _i = /* @__PURE__ */ Q({
3455
+ ...Vi,
3452
3456
  props: {
3453
3457
  customFormatters: {
3454
3458
  default: () => ({}),
@@ -3482,13 +3486,13 @@ const li = { class: "pagination" }, si = {
3482
3486
  formatOptions: s?.formatOptions
3483
3487
  }),
3484
3488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3485
- date: (g) => yi(
3489
+ date: (g) => Ri(
3486
3490
  g,
3487
3491
  l?.locale ?? o.locale,
3488
3492
  l?.formatOptions
3489
3493
  ),
3490
3494
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3491
- datetime: (g) => Ri(
3495
+ datetime: (g) => Fi(
3492
3496
  g,
3493
3497
  l?.locale ?? o.locale,
3494
3498
  l?.formatOptions
@@ -3512,17 +3516,17 @@ const li = { class: "pagination" }, si = {
3512
3516
  const r = i.column.columnDef.tooltip;
3513
3517
  return typeof r == "string" ? r : typeof r == "function" ? r(i) : i.getValue();
3514
3518
  };
3515
- return (i, r) => (S(), y("tbody", null, [
3516
- e.table.getRowModel().rows?.length ? (S(!0), y(H, { key: 0 }, z(e.table.getRowModel().rows, (l) => (S(), y("tr", {
3519
+ return (i, r) => (S(), C("tbody", null, [
3520
+ e.table.getRowModel().rows?.length ? (S(!0), C(H, { key: 0 }, z(e.table.getRowModel().rows, (l) => (S(), C("tr", {
3517
3521
  key: `table-row-${l.id}`,
3518
3522
  "data-id": l.id,
3519
3523
  "data-selected": e.enableRowSelection ? l.getIsSelected() : void 0
3520
3524
  }, [
3521
- (S(!0), y(H, null, z(l.getVisibleCells(), (s) => (S(), y("td", {
3525
+ (S(!0), C(H, null, z(l.getVisibleCells(), (s) => (S(), C("td", {
3522
3526
  key: `table-data-${l.id}-${s.id}`,
3523
3527
  class: ge([s.column.id ? `cell-${s.column.id}` : ""]),
3524
3528
  "data-label": s.column.id,
3525
- "data-align": C(Ue)({
3529
+ "data-align": y(Ue)({
3526
3530
  align: s.column.columnDef.align,
3527
3531
  dataType: s.column.columnDef.dataType
3528
3532
  }),
@@ -3532,42 +3536,42 @@ const li = { class: "pagination" }, si = {
3532
3536
  minWidth: s.column.columnDef.minWidth
3533
3537
  })
3534
3538
  }, [
3535
- s.column.columnDef.tooltip ? (S(), _(C(rn), te({
3539
+ s.column.columnDef.tooltip ? (S(), _(y(rn), te({
3536
3540
  key: 0,
3537
3541
  ref_for: !0
3538
3542
  }, s.column.columnDef.tooltipOptions), {
3539
3543
  content: G(() => [
3540
- typeof s.column.columnDef.tooltip == "function" && typeof n(s) != "string" ? (S(), _(ue(n(s)), { key: 0 })) : (S(), y(H, { key: 1 }, [
3544
+ typeof s.column.columnDef.tooltip == "function" && typeof n(s) != "string" ? (S(), _(ue(n(s)), { key: 0 })) : (S(), C(H, { key: 1 }, [
3541
3545
  tn(N(n(s)), 1)
3542
3546
  ], 64))
3543
3547
  ]),
3544
3548
  default: G(() => [
3545
- E(C(pe), te({ ref_for: !0 }, t(s)), null, 16)
3549
+ E(y(pe), te({ ref_for: !0 }, t(s)), null, 16)
3546
3550
  ]),
3547
3551
  _: 2
3548
- }, 1040)) : (S(), _(C(pe), te({
3552
+ }, 1040)) : (S(), _(y(pe), te({
3549
3553
  key: 1,
3550
3554
  ref_for: !0
3551
3555
  }, t(s)), null, 16))
3552
- ], 14, Ii))), 128))
3553
- ], 8, $i))), 128)) : (S(), y("tr", xi, [
3556
+ ], 14, xi))), 128))
3557
+ ], 8, Ii))), 128)) : (S(), C("tr", Ai, [
3554
3558
  A("td", {
3555
3559
  colspan: e.table.getAllColumns()?.length,
3556
3560
  class: "empty-table"
3557
- }, N(e.emptyTableMessage), 9, Ai)
3561
+ }, N(e.emptyTableMessage), 9, Di)
3558
3562
  ]))
3559
3563
  ]));
3560
3564
  }
3561
- }), _i = {
3565
+ }), Mi = {
3562
3566
  key: 0,
3563
3567
  class: "data-actions"
3564
- }, Mi = {
3568
+ }, Ei = {
3565
3569
  key: 0,
3566
3570
  class: "title"
3567
- }, Ei = { key: 0 }, ki = { key: 0 }, Li = {
3571
+ }, ki = { key: 0 }, Li = { key: 0 }, Ti = {
3568
3572
  name: "TableDataActions"
3569
- }, Ti = /* @__PURE__ */ Q({
3570
- ...Li,
3573
+ }, Hi = /* @__PURE__ */ Q({
3574
+ ...Ti,
3571
3575
  props: {
3572
3576
  actions: {
3573
3577
  type: Array,
@@ -3614,8 +3618,8 @@ const li = { class: "pagination" }, si = {
3614
3618
  }, g = (d) => {
3615
3619
  r.value = d, d?.requireConfirmationModal ? i.value = !0 : n("action:select", r.value);
3616
3620
  };
3617
- return (d, m) => a.value ? (S(), y("div", _i, [
3618
- u.value ? (S(!0), y(H, { key: 0 }, z(l.value, (p, h) => (S(), _(C(Z), te({ ref_for: !0 }, p, {
3621
+ return (d, m) => a.value ? (S(), C("div", Mi, [
3622
+ u.value ? (S(!0), C(H, { key: 0 }, z(l.value, (p, h) => (S(), _(y(Z), te({ ref_for: !0 }, p, {
3619
3623
  key: `mode-button-${h}`,
3620
3624
  class: p.class,
3621
3625
  disabled: p.disabled,
@@ -3625,14 +3629,14 @@ const li = { class: "pagination" }, si = {
3625
3629
  rounded: "",
3626
3630
  variant: "textOnly",
3627
3631
  onClick: (R) => g(p)
3628
- }), null, 16, ["class", "disabled", "icon-left", "label", "title", "onClick"]))), 128)) : c.value ? (S(), _(C(ln), {
3632
+ }), null, 16, ["class", "disabled", "icon-left", "label", "title", "onClick"]))), 128)) : c.value ? (S(), _(y(ln), {
3629
3633
  key: 1,
3630
3634
  menu: l.value,
3631
3635
  onSelect: g
3632
3636
  }, {
3633
3637
  default: G(() => [
3634
3638
  J(d.$slots, "trigger", {}, () => [
3635
- E(C(j), {
3639
+ E(y(j), {
3636
3640
  icon: "prime:cog",
3637
3641
  width: "22"
3638
3642
  })
@@ -3641,7 +3645,7 @@ const li = { class: "pagination" }, si = {
3641
3645
  _: 3
3642
3646
  }, 8, ["menu"])) : D("", !0),
3643
3647
  J(d.$slots, "confirmationModal", {}, () => [
3644
- i.value ? (S(), _(C(sn), {
3648
+ i.value ? (S(), _(y(sn), {
3645
3649
  key: 0,
3646
3650
  "onOn:close": m[0] || (m[0] = (p) => i.value = !1),
3647
3651
  "onOn:confirm": f
@@ -3649,21 +3653,21 @@ const li = { class: "pagination" }, si = {
3649
3653
  s.value?.header ? {
3650
3654
  name: "header",
3651
3655
  fn: G(() => [
3652
- typeof s.value?.header == "string" ? (S(), y("p", Mi, N(s.value?.header), 1)) : (S(), _(ue(s.value?.header), { key: 1 }))
3656
+ typeof s.value?.header == "string" ? (S(), C("p", Ei, N(s.value?.header), 1)) : (S(), _(ue(s.value?.header), { key: 1 }))
3653
3657
  ]),
3654
3658
  key: "0"
3655
3659
  } : void 0,
3656
3660
  s.value?.body ? {
3657
3661
  name: "message",
3658
3662
  fn: G(() => [
3659
- typeof s.value?.body == "string" ? (S(), y("p", Ei, N(s.value?.body), 1)) : (S(), _(ue(s.value?.body), { key: 1 }))
3663
+ typeof s.value?.body == "string" ? (S(), C("p", ki, N(s.value?.body), 1)) : (S(), _(ue(s.value?.body), { key: 1 }))
3660
3664
  ]),
3661
3665
  key: "1"
3662
3666
  } : void 0,
3663
3667
  s.value?.footer ? {
3664
3668
  name: "footer",
3665
3669
  fn: G(() => [
3666
- typeof s.value?.footer == "string" ? (S(), y("p", ki, N(s.value?.footer), 1)) : (S(), _(ue(s.value?.footer), { key: 1 }))
3670
+ typeof s.value?.footer == "string" ? (S(), C("p", Li, N(s.value?.footer), 1)) : (S(), _(ue(s.value?.footer), { key: 1 }))
3667
3671
  ]),
3668
3672
  key: "2"
3669
3673
  } : void 0
@@ -3671,40 +3675,40 @@ const li = { class: "pagination" }, si = {
3671
3675
  ])
3672
3676
  ])) : D("", !0);
3673
3677
  }
3674
- }), Hi = ["colSpan", "data-align", "onClick"], Bi = {
3678
+ }), Bi = ["colSpan", "data-align", "onClick"], Oi = {
3675
3679
  key: 0,
3676
3680
  class: "sort-state"
3677
- }, Oi = {
3681
+ }, Gi = {
3678
3682
  key: 0,
3679
3683
  class: "sort-icon",
3680
3684
  height: "16",
3681
3685
  viewBox: "0 0 24 24",
3682
3686
  width: "16",
3683
3687
  xmlns: "http://www.w3.org/2000/svg"
3684
- }, Gi = {
3688
+ }, zi = {
3685
3689
  key: 0,
3686
3690
  class: "sort-icon",
3687
3691
  height: "16",
3688
3692
  viewBox: "0 0 24 24",
3689
3693
  width: "16",
3690
3694
  xmlns: "http://www.w3.org/2000/svg"
3691
- }, zi = {
3695
+ }, Ni = {
3692
3696
  key: 1,
3693
3697
  class: "sort-icon",
3694
3698
  height: "16",
3695
3699
  viewBox: "0 0 24 24",
3696
3700
  width: "16",
3697
3701
  xmlns: "http://www.w3.org/2000/svg"
3698
- }, Ni = {
3702
+ }, ji = {
3699
3703
  key: 0,
3700
3704
  class: "header-row filters"
3701
- }, ji = ["data-align"], qi = {
3705
+ }, qi = ["data-align"], Ki = {
3702
3706
  key: 3,
3703
3707
  class: "number-range-filter"
3704
- }, Ki = {
3708
+ }, Ui = {
3705
3709
  name: "TableHeader"
3706
- }, Ui = /* @__PURE__ */ Q({
3707
- ...Ki,
3710
+ }, Wi = /* @__PURE__ */ Q({
3711
+ ...Ui,
3708
3712
  props: {
3709
3713
  highlightActiveColumn: Boolean,
3710
3714
  inputDebounceTime: {
@@ -3732,12 +3736,12 @@ const li = { class: "pagination" }, si = {
3732
3736
  );
3733
3737
  l.setFilterValue(f ? c : []);
3734
3738
  };
3735
- return (l, s) => (S(), y("thead", null, [
3736
- (S(!0), y(H, null, z(e.table.getHeaderGroups(), (a) => (S(), y("tr", {
3739
+ return (l, s) => (S(), C("thead", null, [
3740
+ (S(!0), C(H, null, z(e.table.getHeaderGroups(), (a) => (S(), C("tr", {
3737
3741
  key: a.id,
3738
3742
  class: "header-row"
3739
3743
  }, [
3740
- (S(!0), y(H, null, z(a.headers, (u) => (S(), y("th", {
3744
+ (S(!0), C(H, null, z(a.headers, (u) => (S(), C("th", {
3741
3745
  key: `table-header-${u.id}`,
3742
3746
  class: ge([
3743
3747
  t(u.column),
@@ -3745,7 +3749,7 @@ const li = { class: "pagination" }, si = {
3745
3749
  u.column.columnDef.enableSorting ? "sortable" : ""
3746
3750
  ]),
3747
3751
  colSpan: u.colSpan,
3748
- "data-align": C(Ue)({
3752
+ "data-align": y(Ue)({
3749
3753
  align: u.column.columnDef.align,
3750
3754
  dataType: u.column.columnDef.dataType
3751
3755
  }),
@@ -3756,37 +3760,37 @@ const li = { class: "pagination" }, si = {
3756
3760
  }),
3757
3761
  onClick: (c) => u.column.getCanSort() ? u.column.getToggleSortingHandler()?.(c) : null
3758
3762
  }, [
3759
- u.isPlaceholder ? D("", !0) : (S(), y(H, { key: 0 }, [
3760
- E(C(pe), {
3763
+ u.isPlaceholder ? D("", !0) : (S(), C(H, { key: 0 }, [
3764
+ E(y(pe), {
3761
3765
  props: u.getContext(),
3762
3766
  render: u.column.columnDef.header
3763
3767
  }, null, 8, ["props", "render"]),
3764
- u.column.columnDef.enableSorting ? (S(), y("span", Bi, [
3765
- !u.column.getIsSorted() && u.column.getCanSort() ? (S(), y("svg", Oi, s[0] || (s[0] = [
3768
+ u.column.columnDef.enableSorting ? (S(), C("span", Oi, [
3769
+ !u.column.getIsSorted() && u.column.getCanSort() ? (S(), C("svg", Gi, [...s[0] || (s[0] = [
3766
3770
  A("path", {
3767
3771
  d: "M18 10.75H6a.74.74 0 0 1-.69-.46a.75.75 0 0 1 .16-.82l6-6a.75.75 0 0 1 1.06 0l6 6a.75.75 0 0 1 .16.82a.74.74 0 0 1-.69.46M7.81 9.25h8.38L12 5.06ZM12 20.75a.74.74 0 0 1-.53-.22l-6-6a.75.75 0 0 1-.16-.82a.74.74 0 0 1 .69-.46h12a.74.74 0 0 1 .69.46a.75.75 0 0 1-.16.82l-6 6a.74.74 0 0 1-.53.22m-4.19-6L12 18.94l4.19-4.19Z",
3768
3772
  fill: "currentColor"
3769
3773
  }, null, -1)
3770
- ]))) : D("", !0),
3771
- u.column.getIsSorted() && u.column.getCanSort() ? (S(), y(H, { key: 1 }, [
3772
- u.column.getIsSorted() === "asc" ? (S(), y("svg", Gi, s[1] || (s[1] = [
3774
+ ])])) : D("", !0),
3775
+ u.column.getIsSorted() && u.column.getCanSort() ? (S(), C(H, { key: 1 }, [
3776
+ u.column.getIsSorted() === "asc" ? (S(), C("svg", zi, [...s[1] || (s[1] = [
3773
3777
  A("path", {
3774
3778
  d: "M12.53 7.97a.75.75 0 0 0-1.06 0l-7 7A.75.75 0 0 0 5 16.25h14a.75.75 0 0 0 .53-1.28z",
3775
3779
  fill: "currentColor"
3776
3780
  }, null, -1)
3777
- ]))) : (S(), y("svg", zi, s[2] || (s[2] = [
3781
+ ])])) : (S(), C("svg", Ni, [...s[2] || (s[2] = [
3778
3782
  A("path", {
3779
3783
  d: "M5 7.75a.75.75 0 0 0-.53 1.28l7 7a.75.75 0 0 0 1.06 0l7-7A.75.75 0 0 0 19 7.75z",
3780
3784
  fill: "currentColor"
3781
3785
  }, null, -1)
3782
- ])))
3786
+ ])]))
3783
3787
  ], 64)) : D("", !0)
3784
3788
  ])) : D("", !0)
3785
3789
  ], 64))
3786
- ], 14, Hi))), 128))
3790
+ ], 14, Bi))), 128))
3787
3791
  ]))), 128)),
3788
- e.isFilterRowVisible ? (S(), y("tr", Ni, [
3789
- (S(!0), y(H, null, z(e.table.getVisibleLeafColumns(), (a) => (S(), y("th", {
3792
+ e.isFilterRowVisible ? (S(), C("tr", ji, [
3793
+ (S(!0), C(H, null, z(e.table.getVisibleLeafColumns(), (a) => (S(), C("th", {
3790
3794
  key: `table-filter-${a.id}`,
3791
3795
  class: ge([
3792
3796
  t(a),
@@ -3794,7 +3798,7 @@ const li = { class: "pagination" }, si = {
3794
3798
  a.columnDef.className || "",
3795
3799
  a.getCanFilter() ? `filter ${a.columnDef.meta?.filterVariant}` : ""
3796
3800
  ]),
3797
- "data-align": C(Ue)({
3801
+ "data-align": y(Ue)({
3798
3802
  align: a.columnDef.align,
3799
3803
  dataType: a.columnDef.dataType
3800
3804
  }),
@@ -3804,8 +3808,8 @@ const li = { class: "pagination" }, si = {
3804
3808
  minWidth: a.columnDef.minWidth
3805
3809
  })
3806
3810
  }, [
3807
- a.getCanFilter() ? (S(), y(H, { key: 0 }, [
3808
- a.columnDef.customFilterComponent ? (S(), _(ue(a.columnDef.customFilterComponent(a)), { key: 0 })) : a.columnDef.meta?.filterVariant === "multiselect" || a.columnDef.meta?.filterVariant === "select" ? (S(), _(C(fn), {
3811
+ a.getCanFilter() ? (S(), C(H, { key: 0 }, [
3812
+ a.columnDef.customFilterComponent ? (S(), _(ue(a.columnDef.customFilterComponent(a)), { key: 0 })) : a.columnDef.meta?.filterVariant === "multiselect" || a.columnDef.meta?.filterVariant === "select" ? (S(), _(y(fn), {
3809
3813
  key: 1,
3810
3814
  "model-value": n(a),
3811
3815
  options: a.columnDef.meta?.filterOptions || [],
@@ -3814,7 +3818,7 @@ const li = { class: "pagination" }, si = {
3814
3818
  multiple: a.columnDef.meta?.filterVariant === "multiselect",
3815
3819
  "enable-tooltip": "",
3816
3820
  "onUpdate:modelValue": (u) => a.setFilterValue(u)
3817
- }, null, 8, ["model-value", "options", "placeholder", "name", "multiple", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "dateRange" ? (S(), _(C(pn), {
3821
+ }, null, 8, ["model-value", "options", "placeholder", "name", "multiple", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "dateRange" ? (S(), _(y(pn), {
3818
3822
  key: 2,
3819
3823
  "model-value": n(a),
3820
3824
  placeholder: a.columnDef.filterPlaceholder,
@@ -3822,20 +3826,20 @@ const li = { class: "pagination" }, si = {
3822
3826
  range: "",
3823
3827
  teleport: "",
3824
3828
  "onUpdate:modelValue": (u) => a.setFilterValue(i(u))
3825
- }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "range" ? (S(), y("div", qi, [
3826
- E(C(tt), {
3829
+ }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])) : a.columnDef.meta?.filterVariant === "range" ? (S(), C("div", Ki, [
3830
+ E(y(tt), {
3827
3831
  "model-value": Array.isArray(n(a)) && n(a)[0] !== null ? Number(n(a)[0]) : void 0,
3828
3832
  placeholder: a.columnDef.filterPlaceholder?.split(",")[0],
3829
3833
  name: "`range-${column.columnDef.accessorKey}-start`",
3830
3834
  "onUpdate:modelValue": (u) => r(a, 0, u)
3831
3835
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
3832
- E(C(tt), {
3836
+ E(y(tt), {
3833
3837
  "model-value": Array.isArray(n(a)) && n(a)[1] !== null ? Number(n(a)[1]) : void 0,
3834
3838
  placeholder: a.columnDef.filterPlaceholder?.split(",")[1] ?? a.columnDef.filterPlaceholder,
3835
3839
  name: "`range-${column.columnDef.accessorKey}-end`",
3836
3840
  "onUpdate:modelValue": (u) => r(a, 1, u)
3837
3841
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
3838
- ])) : (S(), _(C(Ft), {
3842
+ ])) : (S(), _(y(Ft), {
3839
3843
  key: 4,
3840
3844
  id: `input-filter-${a.id}`,
3841
3845
  "debounce-time": e.inputDebounceTime,
@@ -3844,14 +3848,14 @@ const li = { class: "pagination" }, si = {
3844
3848
  "onUpdate:modelValue": (u) => a.setFilterValue(u)
3845
3849
  }, null, 8, ["id", "debounce-time", "model-value", "placeholder", "onUpdate:modelValue"]))
3846
3850
  ], 64)) : D("", !0)
3847
- ], 14, ji))), 128))
3851
+ ], 14, qi))), 128))
3848
3852
  ])) : D("", !0)
3849
3853
  ]));
3850
3854
  }
3851
- }), Wi = { class: "toolbar" }, Qi = {
3855
+ }), Qi = { class: "toolbar" }, Xi = {
3852
3856
  name: "TableToolbar"
3853
- }, Xi = /* @__PURE__ */ Q({
3854
- ...Qi,
3857
+ }, Yi = /* @__PURE__ */ Q({
3858
+ ...Xi,
3855
3859
  props: {
3856
3860
  columnActionButtonLabel: {
3857
3861
  default: "Columns",
@@ -3895,26 +3899,26 @@ const li = { class: "pagination" }, si = {
3895
3899
  ];
3896
3900
  n("on:drag", s);
3897
3901
  };
3898
- return (l, s) => (S(), y("div", Wi, [
3899
- e.showResetButton ? (S(), _(C(Z), {
3902
+ return (l, s) => (S(), C("div", Qi, [
3903
+ e.showResetButton ? (S(), _(y(Z), {
3900
3904
  key: 0,
3901
3905
  label: e.resetButtonLabel,
3902
3906
  variant: "outlined",
3903
3907
  severity: "secondary",
3904
3908
  onClick: s[0] || (s[0] = (a) => l.$emit("on:reset"))
3905
3909
  }, null, 8, ["label"])) : D("", !0),
3906
- e.showColumnAction ? (S(), _(C(an), {
3910
+ e.showColumnAction ? (S(), _(y(an), {
3907
3911
  key: 1,
3908
3912
  position: "bottom"
3909
3913
  }, {
3910
3914
  content: G(() => [
3911
- E(C(un), {
3915
+ E(y(un), {
3912
3916
  list: i.value,
3913
3917
  onOnDrag: r
3914
3918
  }, null, 8, ["list"])
3915
3919
  ]),
3916
3920
  default: G(() => [
3917
- E(C(Z), {
3921
+ E(y(Z), {
3918
3922
  label: e.columnActionButtonLabel,
3919
3923
  variant: "outlined",
3920
3924
  severity: "secondary"
@@ -3925,13 +3929,13 @@ const li = { class: "pagination" }, si = {
3925
3929
  J(l.$slots, "default")
3926
3930
  ]));
3927
3931
  }
3928
- }), Yi = ["id"], Ji = {
3932
+ }), Ji = ["id"], Zi = {
3929
3933
  key: 0,
3930
3934
  class: "loading-overlay"
3931
- }, Zi = ["data-align"], er = { class: "table-wrapper" }, tr = { key: 0 }, nr = {
3935
+ }, er = ["data-align"], tr = { class: "table-wrapper" }, nr = { key: 0 }, or = {
3932
3936
  name: "DataTable"
3933
- }, or = /* @__PURE__ */ Q({
3934
- ...nr,
3937
+ }, ir = /* @__PURE__ */ Q({
3938
+ ...or,
3935
3939
  props: {
3936
3940
  actionsMode: {
3937
3941
  default: "auto",
@@ -4024,11 +4028,11 @@ const li = { class: "pagination" }, si = {
4024
4028
  type: String
4025
4029
  },
4026
4030
  rowPerPage: {
4027
- default: wi,
4031
+ default: yi,
4028
4032
  type: Number
4029
4033
  },
4030
4034
  rowPerPageOptions: {
4031
- default: () => Si,
4035
+ default: () => wi,
4032
4036
  type: Array
4033
4037
  },
4034
4038
  showColumnAction: Boolean,
@@ -4134,14 +4138,14 @@ const li = { class: "pagination" }, si = {
4134
4138
  ...t.tableOptions
4135
4139
  })
4136
4140
  );
4137
- yt(
4141
+ Ct(
4138
4142
  [r, l, s, a, c],
4139
4143
  () => {
4140
- t.persistState && t.id && Ct(t.id, g.value, d.value);
4144
+ t.persistState && t.id && yt(t.id, g.value, d.value);
4141
4145
  }
4142
4146
  );
4143
4147
  const R = () => {
4144
- const v = Fi(
4148
+ const v = bi(
4145
4149
  c.value,
4146
4150
  r.value,
4147
4151
  a.value
@@ -4194,7 +4198,7 @@ const li = { class: "pagination" }, si = {
4194
4198
  icon: "prime:cog",
4195
4199
  width: "24"
4196
4200
  }),
4197
- cell: ({ row: v }) => Y(Ti, {
4201
+ cell: ({ row: v }) => Y(Hi, {
4198
4202
  actions: t.dataActionMenu,
4199
4203
  autoModeCount: t.autoModeCount,
4200
4204
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -4212,21 +4216,21 @@ const li = { class: "pagination" }, si = {
4212
4216
  }, M = () => {
4213
4217
  if (!t.persistState || !t.id)
4214
4218
  return;
4215
- const v = bi(t.id, d.value);
4216
- v && (r.value = v.columnFilters, l.value = v.columnOrder, s.value = v.columnVisibility, c.value = v.sorting, t.rowPerPageOptions.includes(v.pagination.pageSize) && (a.value = v.pagination)), Ct(t.id, g.value, d.value);
4219
+ const v = Pi(t.id, d.value);
4220
+ v && (r.value = v.columnFilters, l.value = v.columnOrder, s.value = v.columnVisibility, c.value = v.sorting, t.rowPerPageOptions.includes(v.pagination.pageSize) && (a.value = v.pagination)), yt(t.id, g.value, d.value);
4217
4221
  };
4218
- return P(), (v, w) => (S(), y("div", {
4222
+ return P(), (v, w) => (S(), C("div", {
4219
4223
  id: e.id,
4220
4224
  class: "table-container"
4221
4225
  }, [
4222
- e.isLoading ? (S(), y("div", Ji, [
4223
- E(C(cn), { class: "loading-icon" })
4226
+ e.isLoading ? (S(), C("div", Zi, [
4227
+ E(y(cn), { class: "loading-icon" })
4224
4228
  ])) : D("", !0),
4225
- e.titleInfo ? (S(), y("span", {
4229
+ e.titleInfo ? (S(), C("span", {
4226
4230
  key: 1,
4227
4231
  "data-align": e.titleInfo.align || "center"
4228
- }, N(e.titleInfo.text), 9, Zi)) : D("", !0),
4229
- e.showColumnAction || e.showResetButton || v.$slots.toolbar ? (S(), _(Xi, {
4232
+ }, N(e.titleInfo.text), 9, er)) : D("", !0),
4233
+ e.showColumnAction || e.showResetButton || v.$slots.toolbar ? (S(), _(Yi, {
4230
4234
  key: 2,
4231
4235
  "column-action-button-label": e.columnActionButtonLabel,
4232
4236
  "has-actions-column": !!e.dataActionMenu.length,
@@ -4243,29 +4247,29 @@ const li = { class: "pagination" }, si = {
4243
4247
  ]),
4244
4248
  _: 3
4245
4249
  }, 8, ["column-action-button-label", "has-actions-column", "has-selection-column", "reset-button-label", "show-column-action", "show-reset-button", "table"])) : D("", !0),
4246
- A("div", er, [
4250
+ A("div", tr, [
4247
4251
  A("table", {
4248
4252
  style: oe(`width: ${h.value.getCenterTotalSize()}`)
4249
4253
  }, [
4250
- E(Ui, {
4254
+ E(Wi, {
4251
4255
  "highlight-active-column": e.highlightActiveHeaderColumn,
4252
4256
  "input-debounce-time": e.inputDebounceTime,
4253
4257
  "is-filter-row-visible": f.value,
4254
4258
  table: h.value
4255
4259
  }, null, 8, ["highlight-active-column", "input-debounce-time", "is-filter-row-visible", "table"]),
4256
- E(Vi, {
4260
+ E(_i, {
4257
4261
  "custom-formatters": e.customFormatters,
4258
4262
  "empty-table-message": e.emptyTableMessage,
4259
4263
  locale: e.locale,
4260
4264
  table: h.value
4261
4265
  }, null, 8, ["custom-formatters", "empty-table-message", "locale", "table"]),
4262
- v.$slots.footer ? (S(), y("tfoot", tr, [
4266
+ v.$slots.footer ? (S(), C("tfoot", nr, [
4263
4267
  J(v.$slots, "footer")
4264
4268
  ])) : D("", !0)
4265
4269
  ], 4)
4266
4270
  ]),
4267
4271
  (e.isServerTable || e.paginated) && m.value > 0 ? J(v.$slots, "pagination", { key: 3 }, () => [
4268
- E(vi, te(e.paginationOptions, {
4272
+ E(Si, te(e.paginationOptions, {
4269
4273
  "current-page": a.value.pageIndex,
4270
4274
  "default-items-per-page": a.value.pageSize,
4271
4275
  "items-per-page-options": e.rowPerPageOptions,
@@ -4274,12 +4278,12 @@ const li = { class: "pagination" }, si = {
4274
4278
  "onUpdate:itemsPerPage": h.value.setPageSize
4275
4279
  }), null, 16, ["current-page", "default-items-per-page", "items-per-page-options", "total-items", "onUpdate:currentPage", "onUpdate:itemsPerPage"])
4276
4280
  ]) : D("", !0)
4277
- ], 8, Yi));
4281
+ ], 8, Ji));
4278
4282
  }
4279
- }), ir = {
4283
+ }), rr = {
4280
4284
  name: "FilesTable"
4281
- }, rr = /* @__PURE__ */ Q({
4282
- ...ir,
4285
+ }, lr = /* @__PURE__ */ Q({
4286
+ ...rr,
4283
4287
  props: {
4284
4288
  archiveFile: Boolean,
4285
4289
  columnsData: {
@@ -4493,7 +4497,7 @@ const li = { class: "pagination" }, si = {
4493
4497
  }, a = (u) => {
4494
4498
  n("update:request", u);
4495
4499
  };
4496
- return (u, c) => (S(), _(or, te(e.tableOptions, {
4500
+ return (u, c) => (S(), _(ir, te(e.tableOptions, {
4497
4501
  id: e.id,
4498
4502
  "columns-data": l.value,
4499
4503
  data: e.files,
@@ -4534,10 +4538,10 @@ const li = { class: "pagination" }, si = {
4534
4538
  } : void 0
4535
4539
  ]), 1040, ["id", "columns-data", "data", "data-action-menu", "empty-table-message", "initial-sorting", "is-loading", "is-server-table", "locale", "persist-state", "persist-state-storage", "total-records", "visible-columns"]));
4536
4540
  }
4537
- }), lr = {
4541
+ }), sr = {
4538
4542
  name: "FilesPresentation"
4539
- }, xr = /* @__PURE__ */ Q({
4540
- ...lr,
4543
+ }, Ar = /* @__PURE__ */ Q({
4544
+ ...sr,
4541
4545
  props: {
4542
4546
  actionButtonsVisibility: {
4543
4547
  default: () => ({
@@ -4623,7 +4627,7 @@ const li = { class: "pagination" }, si = {
4623
4627
  break;
4624
4628
  }
4625
4629
  };
4626
- return (l, s) => e.presentation === "list" ? (S(), _(C(gn), te({ key: 0 }, e.listProps, {
4630
+ return (l, s) => e.presentation === "list" ? (S(), _(y(gn), te({ key: 0 }, e.listProps, {
4627
4631
  "action-buttons-visibility": e.actionButtonsVisibility,
4628
4632
  files: e.files,
4629
4633
  "file-detail-visibility": i.value,
@@ -4635,7 +4639,7 @@ const li = { class: "pagination" }, si = {
4635
4639
  "onAction:edit": s[3] || (s[3] = (a) => r("edit", a)),
4636
4640
  "onAction:share": s[4] || (s[4] = (a) => r("share", a)),
4637
4641
  "onAction:view": s[5] || (s[5] = (a) => r("view", a))
4638
- }), null, 16, ["action-buttons-visibility", "files", "file-detail-visibility", "locale", "messages"])) : (S(), _(rr, te({ key: 1 }, e.tableProps, {
4642
+ }), null, 16, ["action-buttons-visibility", "files", "file-detail-visibility", "locale", "messages"])) : (S(), _(lr, te({ key: 1 }, e.tableProps, {
4639
4643
  "archive-file": e.actionButtonsVisibility.archive,
4640
4644
  "delete-file": e.actionButtonsVisibility.delete,
4641
4645
  "download-file": e.actionButtonsVisibility.download,
@@ -4654,13 +4658,13 @@ const li = { class: "pagination" }, si = {
4654
4658
  "onAction:view": s[11] || (s[11] = (a) => r("view", a))
4655
4659
  }), null, 16, ["archive-file", "delete-file", "download-file", "edit-description", "files", "locale", "messages", "share-file", "view-file", "visible-columns"]));
4656
4660
  }
4657
- }), sr = { class: "table-wrapper" }, ar = {
4661
+ }), ar = { class: "table-wrapper" }, ur = {
4658
4662
  key: 0,
4659
4663
  class: "toggle-wrap"
4660
- }, ur = ["colSpan", "onClick"], dr = { key: 0 }, cr = ["data-label"], gr = { class: "page-navigation-container" }, fr = { class: "page-indicators-selection-container" }, pr = { class: "page-number-indicators" }, mr = { class: "go-to-page-container" }, hr = ["value", "max"], vr = ["value"], Sr = ["value"], wr = { class: "page-navigation-buttons-container" }, Cr = ["disabled"], yr = ["disabled"], Rr = ["disabled"], Fr = ["disabled"], br = {
4664
+ }, dr = ["colSpan", "onClick"], cr = { key: 0 }, gr = ["data-label"], fr = { class: "page-navigation-container" }, pr = { class: "page-indicators-selection-container" }, mr = { class: "page-number-indicators" }, hr = { class: "go-to-page-container" }, vr = ["value", "max"], Sr = ["value"], wr = ["value"], yr = { class: "page-navigation-buttons-container" }, Cr = ["disabled"], Rr = ["disabled"], Fr = ["disabled"], br = ["disabled"], Pr = {
4661
4665
  name: "TanstackTable"
4662
- }, Ar = /* @__PURE__ */ Q({
4663
- ...br,
4666
+ }, Dr = /* @__PURE__ */ Q({
4667
+ ...Pr,
4664
4668
  props: {
4665
4669
  columnsData: {
4666
4670
  type: Array,
@@ -4713,23 +4717,23 @@ const li = { class: "pagination" }, si = {
4713
4717
  const f = c.target, g = f.value ? Number(f.value) : 10;
4714
4718
  r.setPageSize(g);
4715
4719
  };
4716
- return (c, f) => (S(), y("div", sr, [
4720
+ return (c, f) => (S(), C("div", ar, [
4717
4721
  A("table", {
4718
- style: oe(`width: ${C(r).getCenterTotalSize()}`)
4722
+ style: oe(`width: ${y(r).getCenterTotalSize()}`)
4719
4723
  }, [
4720
- o.enableToggle ? (S(), y("div", ar, [
4724
+ o.enableToggle ? (S(), C("div", ur, [
4721
4725
  A("button", {
4722
4726
  class: "table-toggle",
4723
4727
  onClick: s
4724
4728
  }, [
4725
- E(C(j), {
4729
+ E(y(j), {
4726
4730
  icon: "mingcute:menu-fill",
4727
4731
  class: "toggle-icon"
4728
4732
  })
4729
4733
  ])
4730
4734
  ])) : D("", !0),
4731
4735
  A("colgroup", null, [
4732
- (S(!0), y(H, null, z(o.columnsData, (g) => (S(), y("col", {
4736
+ (S(!0), C(H, null, z(o.columnsData, (g) => (S(), C("col", {
4733
4737
  key: g.accessorKey,
4734
4738
  style: oe(`width: ${g.size}px`)
4735
4739
  }, null, 4))), 128))
@@ -4737,123 +4741,123 @@ const li = { class: "pagination" }, si = {
4737
4741
  A("thead", {
4738
4742
  class: ge({ expand: l.value })
4739
4743
  }, [
4740
- (S(!0), y(H, null, z(C(r).getHeaderGroups(), (g) => (S(), y("tr", {
4744
+ (S(!0), C(H, null, z(y(r).getHeaderGroups(), (g) => (S(), C("tr", {
4741
4745
  key: g.id
4742
4746
  }, [
4743
- (S(!0), y(H, null, z(g.headers, (d) => (S(), y("th", {
4747
+ (S(!0), C(H, null, z(g.headers, (d) => (S(), C("th", {
4744
4748
  key: d.id,
4745
4749
  colSpan: d.colSpan,
4746
4750
  onClick: (m) => d.column.getCanSort() ? d.column.getToggleSortingHandler()?.(m) : null
4747
4751
  }, [
4748
- d.isPlaceholder ? D("", !0) : (S(), y("div", dr, [
4749
- E(C(pe), {
4752
+ d.isPlaceholder ? D("", !0) : (S(), C("div", cr, [
4753
+ E(y(pe), {
4750
4754
  props: d.getContext(),
4751
4755
  render: d.column.columnDef.header
4752
4756
  }, null, 8, ["props", "render"]),
4753
- !d.column.getIsSorted() && d.column.getCanSort() ? (S(), _(C(j), {
4757
+ !d.column.getIsSorted() && d.column.getCanSort() ? (S(), _(y(j), {
4754
4758
  key: 0,
4755
4759
  icon: "ri:arrow-up-down-line",
4756
4760
  class: "sort-icon"
4757
4761
  })) : D("", !0),
4758
- d.column.getIsSorted() && d.column.getCanSort() ? (S(), _(C(j), {
4762
+ d.column.getIsSorted() && d.column.getCanSort() ? (S(), _(y(j), {
4759
4763
  key: 1,
4760
4764
  icon: d.column.getIsSorted() === "asc" ? "mdi:arrow-up" : "mdi:arrow-down",
4761
4765
  class: "sort-icon"
4762
4766
  }, null, 8, ["icon"])) : D("", !0)
4763
4767
  ]))
4764
- ], 8, ur))), 128))
4768
+ ], 8, dr))), 128))
4765
4769
  ]))), 128))
4766
4770
  ], 2),
4767
4771
  A("tbody", null, [
4768
- (S(!0), y(H, null, z(C(r).getRowModel().rows, (g) => (S(), y("tr", {
4772
+ (S(!0), C(H, null, z(y(r).getRowModel().rows, (g) => (S(), C("tr", {
4769
4773
  key: g.id
4770
4774
  }, [
4771
- (S(!0), y(H, null, z(g.getVisibleCells(), (d) => (S(), y("td", {
4775
+ (S(!0), C(H, null, z(g.getVisibleCells(), (d) => (S(), C("td", {
4772
4776
  key: d.id,
4773
4777
  "data-label": d.column.id
4774
4778
  }, [
4775
- E(C(pe), {
4779
+ E(y(pe), {
4776
4780
  props: d.getContext(),
4777
4781
  render: d.column.columnDef.cell
4778
4782
  }, null, 8, ["props", "render"])
4779
- ], 8, cr))), 128))
4783
+ ], 8, gr))), 128))
4780
4784
  ]))), 128))
4781
4785
  ])
4782
4786
  ], 4),
4783
- A("div", gr, [
4784
- A("div", fr, [
4785
- A("span", pr, N(C(r).getState().pagination.pageIndex + 1) + " of " + N(C(r).getPageCount()), 1),
4786
- A("span", mr, [
4787
+ A("div", fr, [
4788
+ A("div", pr, [
4789
+ A("span", mr, N(y(r).getState().pagination.pageIndex + 1) + " of " + N(y(r).getPageCount()), 1),
4790
+ A("span", hr, [
4787
4791
  f[6] || (f[6] = A("span", { class: "go-to-page-text" }, " Go to page: ", -1)),
4788
4792
  A("input", {
4789
4793
  class: "page-input",
4790
4794
  type: "number",
4791
- value: C(r).getState().pagination.pageIndex + 1,
4792
- max: C(r).getPageCount(),
4795
+ value: y(r).getState().pagination.pageIndex + 1,
4796
+ max: y(r).getPageCount(),
4793
4797
  onInput: f[0] || (f[0] = (g) => a(g))
4794
- }, null, 40, hr)
4798
+ }, null, 40, vr)
4795
4799
  ]),
4796
4800
  A("select", {
4797
- value: C(r).getState().pagination.pageSize,
4801
+ value: y(r).getState().pagination.pageSize,
4798
4802
  onChange: f[1] || (f[1] = (g) => u(g))
4799
4803
  }, [
4800
- (S(), y(H, null, z([10, 20, 30, 40, 50], (g) => A("option", {
4804
+ (S(), C(H, null, z([10, 20, 30, 40, 50], (g) => A("option", {
4801
4805
  key: g,
4802
4806
  value: g
4803
- }, " Show " + N(g), 9, Sr)), 64))
4804
- ], 40, vr)
4807
+ }, " Show " + N(g), 9, wr)), 64))
4808
+ ], 40, Sr)
4805
4809
  ]),
4806
- A("div", wr, [
4810
+ A("div", yr, [
4807
4811
  A("button", {
4808
4812
  class: "page-navigation-button",
4809
- disabled: !C(r).getCanPreviousPage(),
4810
- onClick: f[2] || (f[2] = (g) => C(r).setPageIndex(0))
4813
+ disabled: !y(r).getCanPreviousPage(),
4814
+ onClick: f[2] || (f[2] = (g) => y(r).setPageIndex(0))
4811
4815
  }, [
4812
- E(C(j), {
4816
+ E(y(j), {
4813
4817
  icon: "material-symbols:keyboard-double-arrow-left-rounded",
4814
4818
  class: "navigation-button-icon"
4815
4819
  })
4816
4820
  ], 8, Cr),
4817
4821
  A("button", {
4818
4822
  class: "page-navigation-button",
4819
- disabled: !C(r).getCanPreviousPage(),
4820
- onClick: f[3] || (f[3] = (g) => C(r).previousPage())
4823
+ disabled: !y(r).getCanPreviousPage(),
4824
+ onClick: f[3] || (f[3] = (g) => y(r).previousPage())
4821
4825
  }, [
4822
- E(C(j), {
4826
+ E(y(j), {
4823
4827
  icon: "material-symbols:arrow-back-ios-new-rounded",
4824
4828
  class: "navigation-button-icon"
4825
4829
  })
4826
- ], 8, yr),
4830
+ ], 8, Rr),
4827
4831
  A("button", {
4828
4832
  class: "page-navigation-button",
4829
- disabled: !C(r).getCanNextPage(),
4830
- onClick: f[4] || (f[4] = (g) => C(r).nextPage())
4833
+ disabled: !y(r).getCanNextPage(),
4834
+ onClick: f[4] || (f[4] = (g) => y(r).nextPage())
4831
4835
  }, [
4832
- E(C(j), {
4836
+ E(y(j), {
4833
4837
  icon: "material-symbols:arrow-forward-ios-rounded",
4834
4838
  class: "navigation-button-icon"
4835
4839
  })
4836
- ], 8, Rr),
4840
+ ], 8, Fr),
4837
4841
  A("button", {
4838
4842
  class: "page-navigation-button",
4839
- disabled: !C(r).getCanNextPage(),
4840
- onClick: f[5] || (f[5] = (g) => C(r).setPageIndex(C(r).getPageCount() - 1))
4843
+ disabled: !y(r).getCanNextPage(),
4844
+ onClick: f[5] || (f[5] = (g) => y(r).setPageIndex(y(r).getPageCount() - 1))
4841
4845
  }, [
4842
- E(C(j), {
4846
+ E(y(j), {
4843
4847
  icon: "material-symbols:keyboard-double-arrow-right-rounded",
4844
4848
  class: "navigation-button-icon"
4845
4849
  })
4846
- ], 8, Fr)
4850
+ ], 8, br)
4847
4851
  ])
4848
4852
  ])
4849
4853
  ]));
4850
4854
  }
4851
4855
  });
4852
4856
  export {
4853
- xr as FilesPresentation,
4854
- rr as FilesTable,
4855
- or as Table,
4856
- Vi as TableBody,
4857
- Ui as TableHeader,
4858
- Ar as TanstackTable
4857
+ Ar as FilesPresentation,
4858
+ lr as FilesTable,
4859
+ ir as Table,
4860
+ _i as TableBody,
4861
+ Wi as TableHeader,
4862
+ Dr as TanstackTable
4859
4863
  };