laif-ds 0.2.63 → 0.2.65

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,58 +1,60 @@
1
1
  "use client";
2
- var a = /* @__PURE__ */ ((e) => (e.AND = "AND", e.OR = "OR", e))(a || {});
3
- const l = (e) => [
2
+ var l = /* @__PURE__ */ ((e) => (e.AND = "AND", e.OR = "OR", e))(l || {});
3
+ const a = (e) => [
4
4
  { value: "like", label: e.stringOperators.like },
5
5
  { value: "n_like", label: e.stringOperators.nLike },
6
6
  { value: "starts_with", label: e.stringOperators.startsWith },
7
7
  { value: "ends_with", label: e.stringOperators.endsWith },
8
8
  { value: "eq", label: e.stringOperators.eq },
9
- { value: "ne", label: e.stringOperators.ne }
10
- // { value: "eq_null", label: i18n.stringOperators.eqNull },
11
- // { value: "n_eq_null", label: i18n.stringOperators.nEqNull },
12
- ], t = (e) => [
9
+ { value: "ne", label: e.stringOperators.ne },
10
+ { value: "eq_null", label: e.stringOperators.eqNull },
11
+ { value: "n_eq_null", label: e.stringOperators.nEqNull }
12
+ ], r = (e) => [
13
13
  { value: "eq", label: e.numberOperators.eq },
14
14
  { value: "ne", label: e.numberOperators.ne },
15
15
  { value: "lt", label: e.numberOperators.lt },
16
16
  { value: "le", label: e.numberOperators.le },
17
17
  { value: "gt", label: e.numberOperators.gt },
18
- { value: "ge", label: e.numberOperators.ge }
19
- // { value: "eq_null", label: i18n.numberOperators.eqNull },
20
- // { value: "n_eq_null", label: i18n.numberOperators.nEqNull },
21
- ], r = (e) => [
18
+ { value: "ge", label: e.numberOperators.ge },
19
+ { value: "eq_null", label: e.numberOperators.eqNull },
20
+ { value: "n_eq_null", label: e.numberOperators.nEqNull }
21
+ ], t = (e) => [
22
22
  { value: "eq", label: e.booleanOperators.eq },
23
23
  { value: "ne", label: e.booleanOperators.ne },
24
24
  { value: "checked", label: e.booleanOperators.checked },
25
- { value: "unchecked", label: e.booleanOperators.unchecked }
25
+ { value: "unchecked", label: e.booleanOperators.unchecked },
26
+ { value: "eq_null", label: e.numberOperators.eqNull },
27
+ { value: "n_eq_null", label: e.numberOperators.nEqNull }
26
28
  ], s = (e) => [
27
29
  { value: "eq", label: e.dateOperators.is },
28
30
  { value: "date_before", label: e.dateOperators.isBefore },
29
- { value: "date_after", label: e.dateOperators.isAfter }
30
- // { value: "eq_null", label: i18n.dateOperators.eqNull },
31
- // { value: "n_eq_null", label: i18n.dateOperators.nEqNull },
32
- ], o = (e) => [
31
+ { value: "date_after", label: e.dateOperators.isAfter },
32
+ { value: "eq_null", label: e.dateOperators.eqNull },
33
+ { value: "n_eq_null", label: e.dateOperators.nEqNull }
34
+ ], u = (e) => [
33
35
  { value: "date_time_before", label: e.dateTimeOperators.isBefore },
34
- { value: "date_time_after", label: e.dateTimeOperators.isAfter }
35
- // { value: "eq_null", label: i18n.dateTimeOperators.eqNull },
36
- // { value: "n_eq_null", label: i18n.dateTimeOperators.nEqNull },
37
- ], b = (e) => [
36
+ { value: "date_time_after", label: e.dateTimeOperators.isAfter },
37
+ { value: "eq_null", label: e.dateTimeOperators.eqNull },
38
+ { value: "n_eq_null", label: e.dateTimeOperators.nEqNull }
39
+ ], o = (e) => [
38
40
  { value: "array_overlap", label: e.listOperators.is },
39
- { value: "n_array_overlap", label: e.listOperators.isNot }
40
- // { value: "eq_null", label: i18n.listOperators.eqNull },
41
- // { value: "n_eq_null", label: i18n.listOperators.nEqNull },
42
- ], u = (e) => [
41
+ { value: "n_array_overlap", label: e.listOperators.isNot },
42
+ { value: "eq_null", label: e.listOperators.eqNull },
43
+ { value: "n_eq_null", label: e.listOperators.nEqNull }
44
+ ], b = (e) => [
43
45
  { value: "array_overlap", label: e.listOperators.contains },
44
- { value: "n_array_overlap", label: e.listOperators.doesNotContain }
45
- // { value: "eq_null", label: i18n.listOperators.eqNull },
46
- // { value: "n_eq_null", label: i18n.listOperators.nEqNull },
46
+ { value: "n_array_overlap", label: e.listOperators.doesNotContain },
47
+ { value: "eq_null", label: e.listOperators.eqNull },
48
+ { value: "n_eq_null", label: e.listOperators.nEqNull }
47
49
  ], n = "border-d-destructive border rounded-md";
48
50
  export {
49
- a as ELogicalFilterOperator,
51
+ l as ELogicalFilterOperator,
50
52
  n as errorSelectClass,
51
- r as getBooleanFilterOptions,
53
+ t as getBooleanFilterOptions,
52
54
  s as getDateFilterOptions,
53
- o as getDateTimeFilterOptions,
54
- u as getListMultiSelectFilterOptions,
55
- b as getListSingleSelectFilterOptions,
56
- t as getNumberFilterOptions,
57
- l as getStringFilterOptions
55
+ u as getDateTimeFilterOptions,
56
+ b as getListMultiSelectFilterOptions,
57
+ o as getListSingleSelectFilterOptions,
58
+ r as getNumberFilterOptions,
59
+ a as getStringFilterOptions
58
60
  };
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import { jsx as c, jsxs as ie } from "react/jsx-runtime";
3
- import { useReactTable as nt } from "../../../../node_modules/@tanstack/react-table/build/lib/index.js";
4
- import { cn as ot } from "../../../../lib/utils.js";
5
- import { useRef as f, useState as u, useEffect as H, useMemo as F } from "react";
6
- import { Button as at } from "../../button.js";
3
+ import { useReactTable as at } from "../../../../node_modules/@tanstack/react-table/build/lib/index.js";
4
+ import { cn as it } from "../../../../lib/utils.js";
5
+ import { useRef as f, useState as d, useEffect as H, useMemo as F } from "react";
6
+ import { Button as st } from "../../button.js";
7
7
  import { Checkbox as ye } from "../../checkbox.js";
8
- import { DataTableBody as it } from "./components/data-table-body.js";
9
- import { DataTableColumnVisibility as st } from "./components/data-table-column-visibility.js";
10
- import { DataTableFilters as lt } from "./components/data-table-filters.js";
11
- import { DataTablePaginationComponent as ct } from "./components/data-table-pagination.js";
12
- import { DataTableSearchbar as ut } from "./components/data-table-searchbar.js";
13
- import { DataTableSortingComponent as dt } from "./components/data-table-sorting.js";
14
- import { applySearchFilterToRow as we, debounce as gt, buildSearchFilter as mt, updatePageSizeFromContainer as pt, createDefaultAdvancedFilter as ft, createBadgeFilterFromHeader as ht } from "./data-table.service.js";
15
- import { DataTableActionsComponent as St } from "./components/data-table-actions.js";
16
- import { defaultDataTableI18n as bt } from "./data-table-i18n.js";
17
- import { getPaginationRowModel as vt, getFilteredRowModel as Ft, getSortedRowModel as Ct, getCoreRowModel as xt } from "../../../../node_modules/@tanstack/table-core/build/lib/index.js";
18
- function Vt({
8
+ import { DataTableBody as lt } from "./components/data-table-body.js";
9
+ import { DataTableColumnVisibility as ct } from "./components/data-table-column-visibility.js";
10
+ import { DataTableFilters as dt } from "./components/data-table-filters.js";
11
+ import { DataTablePaginationComponent as ut } from "./components/data-table-pagination.js";
12
+ import { DataTableSearchbar as gt } from "./components/data-table-searchbar.js";
13
+ import { DataTableSortingComponent as mt } from "./components/data-table-sorting.js";
14
+ import { applySearchFilterToRow as we, debounce as pt, buildSearchFilter as ft, updatePageSizeFromContainer as ht, createDefaultAdvancedFilter as St, createBadgeFilterFromHeader as bt } from "./data-table.service.js";
15
+ import { DataTableActionsComponent as vt } from "./components/data-table-actions.js";
16
+ import { defaultDataTableI18n as Ft } from "./data-table-i18n.js";
17
+ import { getPaginationRowModel as Ct, getFilteredRowModel as xt, getSortedRowModel as yt, getCoreRowModel as wt } from "../../../../node_modules/@tanstack/table-core/build/lib/index.js";
18
+ function Pt({
19
19
  columns: Y,
20
20
  data: j,
21
21
  loading: z = !1,
@@ -30,18 +30,21 @@ function Vt({
30
30
  customComponentsRight: Be,
31
31
  hidePagination: _e = !1,
32
32
  hideActionsRow: Me = !1,
33
- i18n: h = bt,
33
+ i18n: h = Ft,
34
34
  maxSortedColumns: le = 2,
35
- initialState: d,
35
+ initialState: u,
36
36
  // New mode-based API
37
37
  serverMode: He = !1,
38
38
  serverConfig: Ne,
39
- disableAutoPageSize: b = !1
39
+ disableAutoPageSize: b = !1,
40
+ // Test & Accessibility
41
+ id: Oe,
42
+ "data-testid": Le
40
43
  }) {
41
44
  const q = f(null), a = He === !0, g = a ? Ne : void 0, ce = (e) => !e || !e.sort_by || !e.sort_order ? [] : e.sort_by.map((t, o) => ({
42
45
  id: t,
43
46
  desc: e.sort_order[o] === "desc"
44
- })), Oe = (e) => {
47
+ })), Ge = (e) => {
45
48
  const t = ce(e?.sorting), o = {
46
49
  sort_by: t.map((s) => s.id),
47
50
  sort_order: t.map((s) => s.desc ? "desc" : "asc")
@@ -51,13 +54,13 @@ function Vt({
51
54
  computedFilter: e?.computedFilter
52
55
  // Use provided value or undefined
53
56
  };
54
- }, [N, Le] = u(() => ce(d?.sorting)), [Ge] = u([]), [ke, Ae] = u(
55
- () => d?.columnVisibility ?? {}
56
- ), [m, Ve] = u(() => d?.filters?.searchbarFilter), [K, O] = u(() => d?.pagination ?? { pageIndex: 0, pageSize: 10 }), ue = f(g);
57
- ue.current = g;
57
+ }, [N, ke] = d(() => ce(u?.sorting)), [Ae] = d([]), [Ve, je] = d(
58
+ () => u?.columnVisibility ?? {}
59
+ ), [m, Pe] = d(() => u?.filters?.searchbarFilter), [K, O] = d(() => u?.pagination ?? { pageIndex: 0, pageSize: 10 }), de = f(g);
60
+ de.current = g;
58
61
  const E = f(g?.onStateChange);
59
62
  E.current = g?.onStateChange;
60
- const W = f(null), D = f(null), je = f(0), de = f(!1), ge = f(null), J = f({}), me = f(null), $ = f(z);
63
+ const W = f(null), D = f(null), qe = f(0), ue = f(!1), ge = f(null), J = f({}), me = f(null), $ = f(z);
61
64
  $.current = z;
62
65
  const L = (e) => {
63
66
  e.computedFilter && (J.current.computedFilter = e.computedFilter), e.computedSorting && (J.current.computedSorting = e.computedSorting);
@@ -68,31 +71,31 @@ function Vt({
68
71
  computedSorting: e.computedSorting || J.current.computedSorting
69
72
  };
70
73
  W.current = t, D.current && clearTimeout(D.current), D.current = setTimeout(() => {
71
- W.current && E.current && (je.current = Date.now(), E.current(W.current), W.current = null, D.current = null);
74
+ W.current && E.current && (qe.current = Date.now(), E.current(W.current), W.current = null, D.current = null);
72
75
  }, 400);
73
76
  };
74
77
  H(() => {
75
78
  const e = setTimeout(() => {
76
- de.current = !0;
79
+ ue.current = !0;
77
80
  }, 100);
78
81
  return () => {
79
82
  clearTimeout(e), D.current && clearTimeout(D.current);
80
83
  };
81
84
  }, []);
82
- const [r, G] = u(() => {
83
- const { computedSorting: e, computedFilter: t } = Oe(d);
85
+ const [r, G] = d(() => {
86
+ const { computedSorting: e, computedFilter: t } = Ge(u);
84
87
  return {
85
- pagination: d?.pagination ?? { pageIndex: 0, pageSize: 10 },
86
- sorting: d?.sorting,
87
- filters: d?.filters,
88
- computedFilter: d?.computedFilter ?? t,
89
- computedSorting: d?.computedSorting ?? e
88
+ pagination: u?.pagination ?? { pageIndex: 0, pageSize: 10 },
89
+ sorting: u?.sorting,
90
+ filters: u?.filters,
91
+ computedFilter: u?.computedFilter ?? t,
92
+ computedSorting: u?.computedSorting ?? e
90
93
  };
91
94
  });
92
95
  a && !g && console.warn("DataTable: Server mode requires serverConfig");
93
- const [Pe, pe] = u(0), [qe, fe] = u(0), [Ke, Ee] = u({}), he = se ? Te : Ke, We = se || Ee, [C, ee] = u(
94
- () => d?.filters?.filterBadges ?? []
95
- ), [x, te] = u(() => d?.filters?.advancedFilterBadge), [U, Je] = u(""), [Se, be] = u([]), ve = F(() => P ? [
96
+ const [Ke, pe] = d(0), [Ee, fe] = d(0), [We, Je] = d({}), he = se ? Te : We, Ue = se || Je, [C, ee] = d(
97
+ () => u?.filters?.filterBadges ?? []
98
+ ), [x, te] = d(() => u?.filters?.advancedFilterBadge), [U, Xe] = d(""), [Se, be] = d([]), ve = F(() => P ? [
96
99
  {
97
100
  id: "data-table-integrated-checkbox-column",
98
101
  size: 24,
@@ -149,7 +152,7 @@ function Vt({
149
152
  if (e.id) return e.id;
150
153
  if ("accessorKey" in e && typeof e.accessorKey == "string")
151
154
  return e.accessorKey;
152
- }, Ue = (e) => {
155
+ }, Qe = (e) => {
153
156
  const t = e.meta?.headerLabel;
154
157
  return t || (typeof e.header == "string" ? e.header : X(e) ?? "-");
155
158
  };
@@ -157,23 +160,23 @@ function Vt({
157
160
  const e = (I ?? []).map(X).filter((l) => !!l), t = new Set(Se), o = new Set(e);
158
161
  t.size === o.size && [...t].every((l) => o.has(l)) || be(e);
159
162
  }, [I]);
160
- const B = F(() => I.filter((e) => !!e.meta?.searchable), [I]), T = F(() => B.map((e) => "accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey : e.id).filter((e) => !!e), [B]), [Q, Xe] = u(() => d?.computedFilter ?? {}), Qe = {
163
+ const B = F(() => I.filter((e) => !!e.meta?.searchable), [I]), T = F(() => B.map((e) => "accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey : e.id).filter((e) => !!e), [B]), [Q, Ye] = d(() => u?.computedFilter ?? {}), Ze = {
161
164
  data: F(() => a || Object.keys(Q).length === 0 ? j : j.filter((e) => we({
162
165
  original: e,
163
166
  getValue: (o) => e[o]
164
167
  }, Q)), [j, Q, a]),
165
168
  columns: I,
166
- getCoreRowModel: xt(),
169
+ getCoreRowModel: wt(),
167
170
  onSortingChange: (e) => {
168
171
  const t = typeof e == "function" ? e(N) : e;
169
- Le(t);
172
+ ke(t);
170
173
  },
171
- getSortedRowModel: Ct(),
174
+ getSortedRowModel: yt(),
172
175
  manualSorting: a,
173
- onColumnVisibilityChange: Ae,
174
- onRowSelectionChange: We,
176
+ onColumnVisibilityChange: je,
177
+ onRowSelectionChange: Ue,
175
178
  onColumnOrderChange: be,
176
- getFilteredRowModel: Ft(),
179
+ getFilteredRowModel: xt(),
177
180
  manualFiltering: a,
178
181
  globalFilterFn: (e, t, o) => a || !o ? !0 : (T ?? []).some((s) => {
179
182
  const l = e.getValue(s);
@@ -211,13 +214,13 @@ function Vt({
211
214
  } : e
212
215
  );
213
216
  },
214
- getPaginationRowModel: vt(),
217
+ getPaginationRowModel: Ct(),
215
218
  manualPagination: a,
216
- pageCount: a && z ? qe : Pe,
219
+ pageCount: a && z ? Ee : Ke,
217
220
  state: {
218
221
  sorting: N,
219
- columnFilters: Ge,
220
- columnVisibility: ke,
222
+ columnFilters: Ae,
223
+ columnVisibility: Ve,
221
224
  rowSelection: he,
222
225
  globalFilter: m,
223
226
  pagination: a ? r.pagination : K,
@@ -225,7 +228,7 @@ function Vt({
225
228
  },
226
229
  // Prevent implicit resets on data/columns changes so filters/sorting persist
227
230
  autoResetPageIndex: !1
228
- }, i = nt(Qe), re = i.getFilteredRowModel();
231
+ }, i = at(Ze), re = i.getFilteredRowModel();
229
232
  H(() => {
230
233
  if (a && g) {
231
234
  const e = Math.ceil(
@@ -257,11 +260,11 @@ function Vt({
257
260
  ), w = _?.getBoundingClientRect().height ?? 40;
258
261
  if (!!!n?.querySelector("td")) return;
259
262
  const A = n?.getBoundingClientRect().height ?? 32.5;
260
- pt(y, {
263
+ ht(y, {
261
264
  rowHeight: A,
262
265
  headerHeight: w,
263
266
  onPageChange: a ? (R, v) => {
264
- if (g && de.current) {
267
+ if (g && ue.current) {
265
268
  const S = b ? {
266
269
  ...r.pagination,
267
270
  pageIndex: R
@@ -316,7 +319,7 @@ function Vt({
316
319
  );
317
320
  }
318
321
  });
319
- }, t = gt(() => {
322
+ }, t = pt(() => {
320
323
  requestAnimationFrame(() => {
321
324
  e();
322
325
  });
@@ -349,24 +352,24 @@ function Vt({
349
352
  Z(e);
350
353
  }
351
354
  }, [i, Z, P, he]);
352
- const Ye = F(() => {
355
+ const $e = F(() => {
353
356
  const e = i.getHeaderGroups()[0], t = e ? e.headers : [];
354
357
  return (i.getState().sorting || []).map((l) => t.find((p) => p.column.id === l.id)).filter(Boolean);
355
358
  }, [
356
359
  i.getHeaderGroups,
357
360
  i.getState().sorting,
358
361
  I
359
- ]), ne = F(() => i.getHeaderGroups()[0].headers.filter((e) => e.column.columnDef.meta?.sortable), [i.getHeaderGroups, I]), k = F(() => i.getHeaderGroups()[0].headers.filter((e) => e.column.columnDef.meta?.filterable), [i.getHeaderGroups, I]), Ze = F(() => U ? k.filter((e) => (e.column.columnDef.meta?.headerLabel ?? (typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : void 0) ?? e.column.id).toLowerCase().includes(U.toLowerCase())) : k, [k, U]), Fe = (e) => {
360
- ee((t) => [...t, ht(e)]);
361
- }, $e = () => {
362
- te(ft());
363
- }, et = F(() => C.sort((e, t) => e.value === void 0 || e.value === "" ? 1 : t.value === void 0 || t.value === "" ? -1 : 1), [C]), Ce = f({
362
+ ]), ne = F(() => i.getHeaderGroups()[0].headers.filter((e) => e.column.columnDef.meta?.sortable), [i.getHeaderGroups, I]), k = F(() => i.getHeaderGroups()[0].headers.filter((e) => e.column.columnDef.meta?.filterable), [i.getHeaderGroups, I]), et = F(() => U ? k.filter((e) => (e.column.columnDef.meta?.headerLabel ?? (typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : void 0) ?? e.column.id).toLowerCase().includes(U.toLowerCase())) : k, [k, U]), Fe = (e) => {
363
+ ee((t) => [...t, bt(e)]);
364
+ }, tt = () => {
365
+ te(St());
366
+ }, rt = F(() => C.sort((e, t) => e.value === void 0 || e.value === "" ? 1 : t.value === void 0 || t.value === "" ? -1 : 1), [C]), Ce = f({
364
367
  filterBadges: [],
365
368
  advancedFilterBadge: void 0,
366
369
  searchbarGlobalFilter: void 0
367
370
  });
368
371
  H(() => {
369
- const e = mt(
372
+ const e = ft(
370
373
  C,
371
374
  x ?? void 0
372
375
  ), t = m && T.length > 0 ? T.length === 1 ? (() => {
@@ -413,8 +416,8 @@ function Vt({
413
416
  advancedFilterBadge: x ? { ...x } : void 0,
414
417
  searchbarGlobalFilter: m
415
418
  };
416
- const _ = ue.current;
417
- if (Xe(s), a && E.current && _) {
419
+ const _ = de.current;
420
+ if (Ye(s), a && E.current && _) {
418
421
  const n = {
419
422
  ...r,
420
423
  computedFilter: s,
@@ -453,11 +456,13 @@ function Vt({
453
456
  N,
454
457
  a
455
458
  ]);
456
- const xe = i.getAllLeafColumns(), tt = xe.filter((e) => e.getIsVisible()), rt = xe.filter((e) => !e.getIsVisible());
459
+ const xe = i.getAllLeafColumns(), nt = xe.filter((e) => e.getIsVisible()), ot = xe.filter((e) => !e.getIsVisible());
457
460
  return /* @__PURE__ */ ie(
458
461
  "div",
459
462
  {
460
- className: ot(
463
+ id: Oe,
464
+ "data-testid": Le,
465
+ className: it(
461
466
  "flex h-full max-h-full min-h-[250px] w-full max-w-full min-w-0 flex-col gap-2",
462
467
  Ie
463
468
  ),
@@ -465,10 +470,10 @@ function Vt({
465
470
  !Me && /* @__PURE__ */ ie("div", { className: "flex w-full items-center justify-between gap-1", children: [
466
471
  /* @__PURE__ */ ie("div", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-x-auto", children: [
467
472
  ne.length > 0 && /* @__PURE__ */ c(
468
- dt,
473
+ mt,
469
474
  {
470
475
  table: i,
471
- sortedColumns: Ye,
476
+ sortedColumns: $e,
472
477
  sortableColumns: ne,
473
478
  i18n: h,
474
479
  maxSortedColumns: le
@@ -477,18 +482,18 @@ function Vt({
477
482
  ne.length > 0 && k.length > 0 && /* @__PURE__ */ c("div", { className: "border-d-border h-4 min-h-4 w-[1px] border-r" }),
478
483
  De,
479
484
  /* @__PURE__ */ c(
480
- lt,
485
+ dt,
481
486
  {
482
487
  advancedFilterBadge: x,
483
488
  setAdvancedFilterBadge: te,
484
489
  filterableColumns: k,
485
- sortedFilterBadges: et,
490
+ sortedFilterBadges: rt,
486
491
  setFilterBadges: ee,
487
492
  filterSearch: U,
488
- setFilterSearch: Je,
489
- filteredColumns: Ze,
493
+ setFilterSearch: Xe,
494
+ filteredColumns: et,
490
495
  handleAddFilter: Fe,
491
- handleAddAdvancedFilter: $e,
496
+ handleAddAdvancedFilter: tt,
492
497
  i18n: h
493
498
  }
494
499
  )
@@ -496,7 +501,7 @@ function Vt({
496
501
  /* @__PURE__ */ c("div", { className: "border-d-border h-4 min-h-4 w-[1px] border-r" }),
497
502
  Be,
498
503
  (C.length || x) && /* @__PURE__ */ c(
499
- at,
504
+ st,
500
505
  {
501
506
  className: "h-6 text-xs",
502
507
  iconLeft: "FunnelX",
@@ -509,30 +514,30 @@ function Vt({
509
514
  }
510
515
  ),
511
516
  T.length > 0 && /* @__PURE__ */ c(
512
- ut,
517
+ gt,
513
518
  {
514
519
  debounceMs: 300,
515
- onSearch: Ve,
520
+ onSearch: Pe,
516
521
  i18n: h,
517
522
  initialValue: m ?? "",
518
523
  searchableColumnsHeaders: B.map(
519
- (e) => Ue(e)
524
+ (e) => Qe(e)
520
525
  )
521
526
  }
522
527
  ),
523
528
  /* @__PURE__ */ c(
524
- st,
529
+ ct,
525
530
  {
526
531
  table: i,
527
- visibleColumns: tt,
528
- hiddenColumns: rt,
532
+ visibleColumns: nt,
533
+ hiddenColumns: ot,
529
534
  i18n: h
530
535
  }
531
536
  ),
532
- /* @__PURE__ */ c(St, { actions: ze, i18n: h })
537
+ /* @__PURE__ */ c(vt, { actions: ze, i18n: h })
533
538
  ] }),
534
539
  /* @__PURE__ */ c(
535
- it,
540
+ lt,
536
541
  {
537
542
  table: i,
538
543
  tableContainerRef: q,
@@ -550,7 +555,7 @@ function Vt({
550
555
  }
551
556
  ),
552
557
  !_e && /* @__PURE__ */ c(
553
- ct,
558
+ ut,
554
559
  {
555
560
  table: i,
556
561
  isServerSide: a,
@@ -568,5 +573,5 @@ function Vt({
568
573
  );
569
574
  }
570
575
  export {
571
- Vt as DataTable
576
+ Pt as DataTable
572
577
  };