@ck-ui/component-library 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/{DropdownFooter-CYkg2g5d.js → DropdownFooter-Dm6aLDx8.js} +1 -1
  2. package/dist/IconSlot-CPQsGPB-.js +33 -0
  3. package/dist/assets/IconSlot-D8WWEHKb.css +1 -0
  4. package/dist/assets/index-BXwGxK7I.css +1 -0
  5. package/dist/assets/index-BZgvXFWW.css +1 -0
  6. package/dist/assets/index-UphWJR2V.css +1 -0
  7. package/dist/assets/styles-Bj-7zn37.css +1 -0
  8. package/dist/assets/styles-DLJzdWsF.css +1 -0
  9. package/dist/assets/{styles-Bqfs9eXV.css → styles-DngCqCGW.css} +1 -1
  10. package/dist/assets/styles-O-5pBCak.css +1 -0
  11. package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
  12. package/dist/components/CKButton/_helper/IconSlot.js +1 -1
  13. package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
  14. package/dist/components/CKButton/index.js +1 -1
  15. package/dist/components/CardBox/index.js +18 -18
  16. package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
  17. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  18. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  19. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  20. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  21. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  22. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  23. package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
  24. package/dist/components/MultiSelect/_types/type.d.ts +1 -0
  25. package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
  26. package/dist/components/MultiSelect/index.d.ts +1 -1
  27. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  28. package/dist/components/MultiSelect/index.js +152 -151
  29. package/dist/components/RadioButton/index.js +34 -34
  30. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +1 -0
  31. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -1
  32. package/dist/components/RadioGroup/index.d.ts +1 -1
  33. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  34. package/dist/components/RadioGroup/index.js +19 -17
  35. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +2 -2
  36. package/dist/components/SingleSelectDropdown/index.js +2 -2
  37. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
  38. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +22 -19
  39. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  40. package/dist/components/Table/_helpers/ColumnManager/index.js +301 -298
  41. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  42. package/dist/components/Table/_helpers/TableFilterModal/index.js +43 -42
  43. package/dist/components/Table/index.d.ts.map +1 -1
  44. package/dist/components/Table/index.js +213 -208
  45. package/dist/components/Typography/index.js +30 -30
  46. package/dist/main.d.ts +1 -0
  47. package/dist/main.d.ts.map +1 -1
  48. package/dist/main.js +14 -12
  49. package/dist/styles.module-DakCndIP.js +42 -0
  50. package/package.json +1 -1
  51. package/dist/IconSlot-CFKmSU2_.js +0 -33
  52. package/dist/assets/IconSlot-CLpdZgmb.css +0 -1
  53. package/dist/assets/index-BmQOtMhS.css +0 -1
  54. package/dist/assets/index-CaWXKQ7j.css +0 -1
  55. package/dist/assets/index-CiQd_iRw.css +0 -1
  56. package/dist/assets/styles-BTZL03H2.css +0 -1
  57. package/dist/assets/styles-CYxKrBqL.css +0 -1
  58. package/dist/assets/styles-D8sahtFb.css +0 -1
  59. package/dist/styles.module-Dojg5FTS.js +0 -41
@@ -1,6 +1,6 @@
1
- import { jsx as i, jsxs as u } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import { useState as C, useCallback as v, useRef as pe, useMemo as L, useEffect as j } from "react";
1
+ import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { useState as C, useCallback as S, useRef as pe, useMemo as W, useEffect as T } from "react";
4
4
  import { u as Ge } from "../../OptionList-DN1xZbnV.js";
5
5
  import { u as Je, f as qe, a as Ue, b as Ze, g as Qe } from "../../index-f7TB87Mf.js";
6
6
  import { CKButton as ye } from "../CKButton/index.js";
@@ -8,73 +8,73 @@ import { Search as Xe } from "../Search/index.js";
8
8
  import { EmptyState as Ye } from "../EmptyState/index.js";
9
9
  import { Loader as et } from "../Loader/index.js";
10
10
  import { S as tt, a as nt } from "../../table-filter-C0zetUfo.js";
11
- import { INITIAL_COLUMN_MANAGER_CONFIG as ke, ROW_MIN_HEIGHT as ot, TABLE_PREFIX as S } from "./constants.js";
11
+ import { INITIAL_COLUMN_MANAGER_CONFIG as ke, ROW_MIN_HEIGHT as ot, TABLE_PREFIX as E } from "./constants.js";
12
12
  import it from "./_helpers/TableFilterModal/index.js";
13
- import lt from "./_helpers/ColumnManager/index.js";
14
- import st from "./_helpers/GroupedHeader/index.js";
13
+ import st from "./_helpers/ColumnManager/index.js";
14
+ import lt from "./_helpers/GroupedHeader/index.js";
15
15
  import { SelectionHeaderCell as Ce } from "./_helpers/SelectionCell/index.js";
16
16
  import rt from "./_helpers/TableRows.js";
17
17
  import { useSelection as at } from "./_hooks/useSelection.js";
18
18
  import { useExpansion as ct } from "./_hooks/useExpansion.js";
19
- import { isTableConfigDefault as be, saveToLocalStorage as Q, getTableMinWidth as dt, isTableConfigChanged as mt, pinnedStyle as X, columnLayoutStyle as xe } from "./_utils/table.utils.js";
19
+ import { isTableConfigDefault as be, saveToLocalStorage as X, getTableMinWidth as dt, isTableConfigChanged as mt, pinnedStyle as Y, columnLayoutStyle as xe } from "./_utils/table.utils.js";
20
20
  import { formatCellValue as we } from "./_utils/formatCellValue.js";
21
- import '../../assets/styles-Bqfs9eXV.css';/* empty css */
22
- const ut = (c) => /* @__PURE__ */ o.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ o.createElement("path", { d: "M1.75 8.75006L8.16667 8.75", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M1.75 5.25H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M1.75 12.25H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M10.7913 1.75V8.75M10.7913 1.75C10.3829 1.75 9.61972 2.91334 9.33301 3.20833M10.7913 1.75C11.1998 1.75 11.963 2.91334 12.2497 3.20833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), ft = (c) => /* @__PURE__ */ o.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ o.createElement("path", { d: "M1.75 5.24994L8.16667 5.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M1.75 8.75H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M1.75 1.75H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M10.7913 12.25V5.25M10.7913 12.25C10.3829 12.25 9.61972 11.0867 9.33301 10.7917M10.7913 12.25C11.1998 12.25 11.963 11.0867 12.2497 10.7917", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), gt = (c) => /* @__PURE__ */ o.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ o.createElement("mask", { id: "mask0_1852_13537", style: {
21
+ import '../../assets/styles-DngCqCGW.css';/* empty css */
22
+ const ut = (c) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ i.createElement("path", { d: "M1.75 8.75006L8.16667 8.75", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M1.75 5.25H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M1.75 12.25H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M10.7913 1.75V8.75M10.7913 1.75C10.3829 1.75 9.61972 2.91334 9.33301 3.20833M10.7913 1.75C11.1998 1.75 11.963 2.91334 12.2497 3.20833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), ft = (c) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ i.createElement("path", { d: "M1.75 5.24994L8.16667 5.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M1.75 8.75H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M1.75 1.75H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M10.7913 12.25V5.25M10.7913 12.25C10.3829 12.25 9.61972 11.0867 9.33301 10.7917M10.7913 12.25C11.1998 12.25 11.963 11.0867 12.2497 10.7917", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), gt = (c) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...c }, /* @__PURE__ */ i.createElement("mask", { id: "mask0_1852_13537", style: {
23
23
  maskType: "luminance"
24
- }, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 14, height: 14 }, /* @__PURE__ */ o.createElement("path", { d: "M13.708 0.291992V13.708H0.291992V0.291992H13.708Z", fill: "white", stroke: "white", strokeWidth: 0.583333 })), /* @__PURE__ */ o.createElement("g", { mask: "url(#mask0_1852_13537)" }, /* @__PURE__ */ o.createElement("path", { d: "M1.75 4.08325H12.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M3.5 7H10.5", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ o.createElement("path", { d: "M5.83398 9.9165H8.16732", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }))), ht = (c) => /* @__PURE__ */ o.createElement("svg", { width: 200, height: 180, viewBox: "0 0 200 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...c }, /* @__PURE__ */ o.createElement("ellipse", { cx: 100, cy: 168, rx: 38, ry: 6, fill: "#E0E0E0" }), /* @__PURE__ */ o.createElement("path", { d: "M30 110 C10 110 5 90 20 80 C15 60 35 50 55 60 C60 45 80 38 95 50 C110 38 135 42 140 58 C158 55 170 70 162 85 C175 90 175 110 158 112 Z", fill: "#F0F0F0" }), /* @__PURE__ */ o.createElement("g", { stroke: "#C0C0C0", strokeWidth: 2.5, strokeLinecap: "round" }, /* @__PURE__ */ o.createElement("line", { x1: 28, y1: 22, x2: 28, y2: 32 }), /* @__PURE__ */ o.createElement("line", { x1: 23, y1: 27, x2: 33, y2: 27 }), /* @__PURE__ */ o.createElement("line", { x1: 38, y1: 118, x2: 38, y2: 128 }), /* @__PURE__ */ o.createElement("line", { x1: 33, y1: 123, x2: 43, y2: 123 }), /* @__PURE__ */ o.createElement("line", { x1: 162, y1: 52, x2: 162, y2: 62 }), /* @__PURE__ */ o.createElement("line", { x1: 157, y1: 57, x2: 167, y2: 57 })), /* @__PURE__ */ o.createElement("circle", { cx: 100, cy: 155, r: 2, fill: "#D0D0D0" }), /* @__PURE__ */ o.createElement("g", { transform: "rotate(-8, 100, 90)" }, /* @__PURE__ */ o.createElement("rect", { x: 42, y: 28, width: 112, height: 130, rx: 10, fill: "#DCDCDC" }), /* @__PURE__ */ o.createElement("rect", { x: 44, y: 30, width: 108, height: 126, rx: 9, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ o.createElement("rect", { x: 50, y: 36, width: 96, height: 114, rx: 6, fill: "white", stroke: "#C2C2C2", strokeWidth: 1 }), /* @__PURE__ */ o.createElement("rect", { x: 82, y: 20, width: 32, height: 20, rx: 4, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ o.createElement("path", { d: "M91 20 Q98 14 105 20", stroke: "#C2C2C2", strokeWidth: 1.5, fill: "#F4F4F4" }), /* @__PURE__ */ o.createElement("circle", { cx: 95, cy: 88, r: 26, stroke: "#C2C2C2", strokeWidth: 3, fill: "white" }), /* @__PURE__ */ o.createElement("line", { x1: 113, y1: 106, x2: 128, y2: 121, stroke: "#C2C2C2", strokeWidth: 5, strokeLinecap: "round" }), /* @__PURE__ */ o.createElement("line", { x1: 116, y1: 109, x2: 125, y2: 118, stroke: "#E8E8E8", strokeWidth: 2, strokeLinecap: "round" })));
24
+ }, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 14, height: 14 }, /* @__PURE__ */ i.createElement("path", { d: "M13.708 0.291992V13.708H0.291992V0.291992H13.708Z", fill: "white", stroke: "white", strokeWidth: 0.583333 })), /* @__PURE__ */ i.createElement("g", { mask: "url(#mask0_1852_13537)" }, /* @__PURE__ */ i.createElement("path", { d: "M1.75 4.08325H12.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M3.5 7H10.5", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ i.createElement("path", { d: "M5.83398 9.9165H8.16732", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }))), ht = (c) => /* @__PURE__ */ i.createElement("svg", { width: 200, height: 180, viewBox: "0 0 200 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...c }, /* @__PURE__ */ i.createElement("ellipse", { cx: 100, cy: 168, rx: 38, ry: 6, fill: "#E0E0E0" }), /* @__PURE__ */ i.createElement("path", { d: "M30 110 C10 110 5 90 20 80 C15 60 35 50 55 60 C60 45 80 38 95 50 C110 38 135 42 140 58 C158 55 170 70 162 85 C175 90 175 110 158 112 Z", fill: "#F0F0F0" }), /* @__PURE__ */ i.createElement("g", { stroke: "#C0C0C0", strokeWidth: 2.5, strokeLinecap: "round" }, /* @__PURE__ */ i.createElement("line", { x1: 28, y1: 22, x2: 28, y2: 32 }), /* @__PURE__ */ i.createElement("line", { x1: 23, y1: 27, x2: 33, y2: 27 }), /* @__PURE__ */ i.createElement("line", { x1: 38, y1: 118, x2: 38, y2: 128 }), /* @__PURE__ */ i.createElement("line", { x1: 33, y1: 123, x2: 43, y2: 123 }), /* @__PURE__ */ i.createElement("line", { x1: 162, y1: 52, x2: 162, y2: 62 }), /* @__PURE__ */ i.createElement("line", { x1: 157, y1: 57, x2: 167, y2: 57 })), /* @__PURE__ */ i.createElement("circle", { cx: 100, cy: 155, r: 2, fill: "#D0D0D0" }), /* @__PURE__ */ i.createElement("g", { transform: "rotate(-8, 100, 90)" }, /* @__PURE__ */ i.createElement("rect", { x: 42, y: 28, width: 112, height: 130, rx: 10, fill: "#DCDCDC" }), /* @__PURE__ */ i.createElement("rect", { x: 44, y: 30, width: 108, height: 126, rx: 9, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ i.createElement("rect", { x: 50, y: 36, width: 96, height: 114, rx: 6, fill: "white", stroke: "#C2C2C2", strokeWidth: 1 }), /* @__PURE__ */ i.createElement("rect", { x: 82, y: 20, width: 32, height: 20, rx: 4, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ i.createElement("path", { d: "M91 20 Q98 14 105 20", stroke: "#C2C2C2", strokeWidth: 1.5, fill: "#F4F4F4" }), /* @__PURE__ */ i.createElement("circle", { cx: 95, cy: 88, r: 26, stroke: "#C2C2C2", strokeWidth: 3, fill: "white" }), /* @__PURE__ */ i.createElement("line", { x1: 113, y1: 106, x2: 128, y2: 121, stroke: "#C2C2C2", strokeWidth: 5, strokeLinecap: "round" }), /* @__PURE__ */ i.createElement("line", { x1: 116, y1: 109, x2: 125, y2: 118, stroke: "#E8E8E8", strokeWidth: 2, strokeLinecap: "round" })));
25
25
  let ve = !1;
26
26
  const Se = (c) => {
27
27
  if (typeof c == "number") return c;
28
28
  if (typeof c == "string" && c.trim().endsWith("px")) {
29
- const m = Number.parseFloat(c);
30
- return Number.isNaN(m) ? void 0 : m;
29
+ const u = Number.parseFloat(c);
30
+ return Number.isNaN(u) ? void 0 : u;
31
31
  }
32
32
  };
33
- function At({
33
+ function Kt({
34
34
  config: c = {},
35
- data: m = [],
35
+ data: u = [],
36
36
  maxHeight: Ee = "600px",
37
- virtualization: T = !1,
37
+ virtualization: $ = !1,
38
38
  persistTableConfig: d = "",
39
- message: Y,
39
+ message: ee,
40
40
  icon: Me,
41
- totalRow: ee,
42
- selection: $,
43
- expandable: P,
44
- externalColumnFilters: _,
45
- externalTableConfig: E,
46
- isLoading: te = !1
41
+ totalRow: te,
42
+ selection: P,
43
+ expandable: _,
44
+ externalColumnFilters: G,
45
+ externalTableConfig: M,
46
+ isLoading: ne = !1
47
47
  }) {
48
48
  const {
49
49
  headers: b = [],
50
- headerGroups: M,
50
+ headerGroups: I,
51
51
  showFilters: Ie = !0,
52
52
  showColumnManager: Ne = !0,
53
- columnManagerConfig: ne = ke,
54
- toolbarLabels: oe,
55
- search: f
56
- } = c ?? {}, ie = oe?.columnManager ?? !0, le = oe?.filter ?? !0, [W, Be] = C(""), se = v((e) => {
57
- Be(e), f?.onSearch?.(e);
58
- }, [f]), re = pe(null), {
59
- selectionState: I,
53
+ columnManagerConfig: oe = ke,
54
+ toolbarLabels: ie,
55
+ search: g
56
+ } = c ?? {}, se = ie?.columnManager ?? !0, le = ie?.filter ?? !0, [z, Be] = C(""), re = S((e) => {
57
+ Be(e), g?.onSearch?.(e);
58
+ }, [g]), ae = pe(null), {
59
+ selectionState: N,
60
60
  getRowId: Fe,
61
61
  toggleRowSelection: Le,
62
- toggleSelectAll: ae
63
- } = at(m, $), {
62
+ toggleSelectAll: ce
63
+ } = at(u, P), {
64
64
  expandedIds: We,
65
65
  toggleExpand: ze
66
- } = ct(P), z = L(
66
+ } = ct(_), D = W(
67
67
  () => b.map((e) => {
68
68
  let t = "includesString";
69
- return e.filterable && (e.type === "string" ? t = (n, s, l) => {
69
+ return e.filterable && (e.type === "string" ? t = (n, o, l) => {
70
70
  if (!l) return !0;
71
- const r = Array.isArray(l) ? l : l.values, k = Array.isArray(l) ? !1 : l.exclude;
71
+ const r = Array.isArray(l) ? l : l.values, m = Array.isArray(l) ? !1 : l.exclude;
72
72
  if (!r || r.length === 0) return !0;
73
- const he = String(n.getValue(s));
74
- return k ? !r.includes(he) : r.includes(he);
75
- } : e.type === "number" && (t = (n, s, l) => {
73
+ const v = String(n.getValue(o));
74
+ return m ? !r.includes(v) : r.includes(v);
75
+ } : e.type === "number" && (t = (n, o, l) => {
76
76
  if (!l) return !0;
77
- const r = Number(n.getValue(s));
77
+ const r = Number(n.getValue(o));
78
78
  return r >= l.min && r <= l.max;
79
79
  })), {
80
80
  ...e,
@@ -91,35 +91,35 @@ function At({
91
91
  };
92
92
  }),
93
93
  [b]
94
- ), D = v(
94
+ ), R = S(
95
95
  () => ({
96
96
  ...ke,
97
- ...ne,
98
- columns: z
97
+ ...oe,
98
+ columns: D
99
99
  }),
100
- [ne, z]
101
- ), ce = () => {
102
- const e = D();
100
+ [oe, D]
101
+ ), de = () => {
102
+ const e = R();
103
103
  if (d)
104
104
  try {
105
- const t = localStorage.getItem(`${S}-${d}`);
105
+ const t = localStorage.getItem(`${E}-${d}`);
106
106
  if (t) {
107
107
  const n = JSON.parse(t);
108
108
  if (n?.tableConfig) {
109
- const l = (n.tableConfig.columns || []).map((r) => e.columns.find((k) => k.accessorKey === r.accessorKey)).filter(Boolean);
110
- return e.columns.forEach((r) => {
111
- l.find((k) => k.accessorKey === r.accessorKey) || l.push(r);
112
- }), { ...e, ...n.tableConfig, columns: l };
109
+ const o = n.tableConfig.columns || [], l = /* @__PURE__ */ new Set(), r = o.map((m) => e.columns.find((v) => v.accessorKey === m.accessorKey)).filter((m) => !m || l.has(m.accessorKey) ? !1 : (l.add(m.accessorKey), !0));
110
+ return e.columns.forEach((m) => {
111
+ r.find((v) => v.accessorKey === m.accessorKey) || r.push(m);
112
+ }), { ...e, ...n.tableConfig, columns: r };
113
113
  }
114
114
  }
115
115
  } catch (t) {
116
116
  console.error("Failed to load table config from local storage", t);
117
117
  }
118
118
  return e;
119
- }, de = () => {
119
+ }, me = () => {
120
120
  if (d)
121
121
  try {
122
- const e = localStorage.getItem(`${S}-${d}`);
122
+ const e = localStorage.getItem(`${E}-${d}`);
123
123
  if (e) {
124
124
  const t = JSON.parse(e);
125
125
  if (t?.columnFilters) return t.columnFilters;
@@ -131,7 +131,7 @@ function At({
131
131
  }, De = () => {
132
132
  if (d)
133
133
  try {
134
- const e = localStorage.getItem(`${S}-${d}`);
134
+ const e = localStorage.getItem(`${E}-${d}`);
135
135
  if (e) {
136
136
  const t = JSON.parse(e);
137
137
  if (t?.columnSizing) return t.columnSizing;
@@ -140,80 +140,85 @@ function At({
140
140
  console.error("Failed to load table config from local storage", e);
141
141
  }
142
142
  return {};
143
- }, [g, me] = C(ce), [N, R] = C(ce), [B, G] = C(de), [A, ue] = C(de), [h, Re] = C(De), [H, y] = C({ open: !1, type: "", activeOption: "" }), a = L(() => {
144
- const e = E ?? g;
145
- if (!E) return e;
146
- const t = new Map(z.map((n) => [n.accessorKey, n.filterFn]));
143
+ }, [h, ue] = C(de), [B, K] = C(de), [F, J] = C(me), [A, fe] = C(me), [p, Re] = C(De), [H, k] = C({ open: !1, type: "", activeOption: "" }), a = W(() => {
144
+ const e = M ?? h;
145
+ if (!M) return e;
146
+ const t = new Map(D.map((n) => [n.accessorKey, n.filterFn]));
147
147
  return {
148
148
  ...e,
149
149
  columns: e.columns.map((n) => {
150
- const s = t.get(n.accessorKey);
151
- return s ? { ...n, filterFn: s } : n;
150
+ const o = t.get(n.accessorKey);
151
+ return o ? { ...n, filterFn: o } : n;
152
152
  })
153
153
  };
154
- }, [E, g, z]), Ae = _ ?? B, He = L(() => {
154
+ }, [M, h, D]), Ke = G ?? F, Ae = W(() => {
155
155
  const e = {};
156
156
  return b.forEach((t) => {
157
157
  if (a.columnVisibility[t.accessorKey] !== !1) {
158
158
  if (t.filterable && (t.type === "string" || !t.type)) {
159
159
  const n = [
160
- ...new Set(m.map((s) => String(s[t.accessorKey] ?? "")).filter(Boolean))
160
+ ...new Set(u.map((o) => String(o[t.accessorKey] ?? "")).filter(Boolean))
161
161
  ];
162
162
  e[t.header] = { type: "checkbox", options: n, accessorKey: t.accessorKey };
163
163
  } else if (t.filterable && t.type === "number") {
164
- const n = m.map((r) => Number(r[t.accessorKey])).filter((r) => !Number.isNaN(r)), s = n.length ? Math.floor(Math.min(...n)) : 0, l = n.length ? Math.ceil(Math.max(...n)) : 0;
165
- e[t.header] = { type: "range", values: { min: s, max: l }, accessorKey: t.accessorKey };
164
+ const n = u.map((r) => Number(r[t.accessorKey])).filter((r) => !Number.isNaN(r)), o = n.length ? Math.floor(Math.min(...n)) : 0, l = n.length ? Math.ceil(Math.max(...n)) : 0;
165
+ e[t.header] = { type: "range", values: { min: o, max: l }, accessorKey: t.accessorKey };
166
166
  }
167
167
  }
168
168
  }), e;
169
- }, [b, m, a.columnVisibility]);
170
- j(() => {
169
+ }, [b, u, a.columnVisibility]);
170
+ T(() => {
171
171
  if (d && !ve)
172
172
  try {
173
- const e = B.length > 0, t = !be(g, D());
173
+ const e = F.length > 0, t = !be(h, R());
174
174
  (e || t) && (ve = !0);
175
175
  } catch (e) {
176
176
  console.error("Failed to check toast condition", e);
177
177
  }
178
- }, [d]), j(() => {
179
- d && Object.keys(h).length > 0 && Q(`${S}-${d}`, { columnSizing: h });
180
- }, [h, d]), j(() => {
181
- G((e) => {
178
+ }, [d]), T(() => {
179
+ d && Object.keys(p).length > 0 && X(`${E}-${d}`, { columnSizing: p });
180
+ }, [p, d]), T(() => {
181
+ J((e) => {
182
182
  const t = e.filter(
183
- (n) => g.columnVisibility[n.id] !== !1
183
+ (n) => h.columnVisibility[n.id] !== !1
184
184
  );
185
185
  return t.length !== e.length ? t : e;
186
186
  });
187
- }, [g.columnVisibility]);
188
- const Ke = () => {
189
- me(N), y({ type: "", activeOption: "", open: !1 }), d && Q(`${S}-${d}`, { tableConfig: N });
187
+ }, [h.columnVisibility]);
188
+ const He = () => {
189
+ const e = /* @__PURE__ */ new Set(), t = B.columns.filter((o) => e.has(o.accessorKey) ? !1 : (e.add(o.accessorKey), !0)), n = { ...B, columns: t };
190
+ ue(n), k({ type: "", activeOption: "", open: !1 }), d && X(`${E}-${d}`, { tableConfig: n });
190
191
  }, Ve = () => {
191
- R(D);
192
- }, Oe = v((e, t) => {
193
- R((n) => {
194
- const s = [...n.columns], [l] = s.splice(e, 1);
195
- return s.splice(t, 0, l), { ...n, columns: s };
192
+ K(R);
193
+ }, Oe = S((e, t) => {
194
+ K((n) => {
195
+ const o = [...n.columns], [l] = o.splice(e, 1);
196
+ return o.splice(t, 0, l), { ...n, columns: o };
196
197
  });
197
- }, []), je = v((e) => {
198
- me((t) => {
198
+ }, []), je = S((e) => {
199
+ ue((t) => {
199
200
  const n = typeof e == "function" ? e(t.columnVisibility) : e;
200
201
  return { ...t, columnVisibility: n };
201
202
  });
202
- }, []), Te = L(() => {
203
+ }, []), Te = W(() => {
203
204
  const e = [], t = [], n = a.columns.filter(
204
- (s) => a.columnVisibility[s.accessorKey] !== !1
205
+ (o) => a.columnVisibility[o.accessorKey] !== !1
205
206
  );
206
- return a.stickyStart === "first" && n.length > 0 && e.push(n[0].accessorKey), a.stickyStart === "firstTwo" && n.length > 1 && (e.push(n[0].accessorKey), e.push(n[1].accessorKey)), a.stickyEnd === "last" && n.length > 0 && t.push(n[n.length - 1].accessorKey), { left: e, right: t };
207
- }, [a.stickyStart, a.stickyEnd, a.columns, a.columnVisibility]), $e = L(() => {
208
- if (!f || f.mode !== "frontend" || !W.trim()) return m;
209
- const e = W.toLowerCase(), t = b.filter((n) => a.columnVisibility[n.accessorKey] !== !1).map((n) => n.accessorKey);
210
- return m.filter(
211
- (n) => t.some((s) => {
212
- const l = n[s];
207
+ if (a.stickyStart === "first" && n.length > 0 && e.push(n[0].accessorKey), a.stickyStart === "firstTwo" && n.length > 1 && (e.push(n[0].accessorKey), e.push(n[1].accessorKey)), a.stickyEnd === "last" && n.length > 0) {
208
+ const o = n[n.length - 1].accessorKey;
209
+ e.includes(o) || t.push(o);
210
+ }
211
+ return { left: e, right: t };
212
+ }, [a.stickyStart, a.stickyEnd, a.columns, a.columnVisibility]), $e = W(() => {
213
+ if (!g || g.mode !== "frontend" || !z.trim()) return u;
214
+ const e = z.toLowerCase(), t = b.filter((n) => a.columnVisibility[n.accessorKey] !== !1).map((n) => n.accessorKey);
215
+ return u.filter(
216
+ (n) => t.some((o) => {
217
+ const l = n[o];
213
218
  return l != null && String(l).toLowerCase().includes(e);
214
219
  })
215
220
  );
216
- }, [f, W, m, b, a.columnVisibility]), p = Je({
221
+ }, [g, z, u, b, a.columnVisibility]), y = Je({
217
222
  data: $e,
218
223
  columns: a.columns,
219
224
  defaultColumn: {
@@ -223,10 +228,10 @@ function At({
223
228
  state: {
224
229
  columnVisibility: a.columnVisibility,
225
230
  columnPinning: Te,
226
- columnFilters: Ae,
227
- columnSizing: h
231
+ columnFilters: Ke,
232
+ columnSizing: p
228
233
  },
229
- onColumnFiltersChange: G,
234
+ onColumnFiltersChange: J,
230
235
  onColumnSizingChange: Re,
231
236
  enableRowSelection: !1,
232
237
  enableColumnResizing: !0,
@@ -235,167 +240,167 @@ function At({
235
240
  getCoreRowModel: Qe(),
236
241
  getSortedRowModel: Ze(),
237
242
  getFilteredRowModel: Ue()
238
- }), { rows: K } = p.getRowModel(), x = p.getVisibleLeafColumns(), fe = x.length > 0 ? x[x.length - 1].id : null, F = ($?.enabled ?? !1) && !P?.enabled, V = F ? 40 : 0, J = dt(x, V, h), O = pe(/* @__PURE__ */ new Map()), ge = v(
239
- (e) => O.current.get(e) || ot,
243
+ }), { rows: V } = y.getRowModel(), x = y.getVisibleLeafColumns(), ge = x.length > 0 ? x[x.length - 1].id : null, L = (P?.enabled ?? !1) && !_?.enabled, O = L ? 40 : 0, q = dt(x, O, p), j = pe(/* @__PURE__ */ new Map()), he = S(
244
+ (e) => j.current.get(e) || ot,
240
245
  []
241
246
  ), w = Ge({
242
- count: K.length,
243
- getScrollElement: () => re.current,
244
- estimateSize: ge,
247
+ count: V.length,
248
+ getScrollElement: () => ae.current,
249
+ estimateSize: he,
245
250
  overscan: 5
246
251
  });
247
- j(() => {
248
- O.current.clear(), requestAnimationFrame(() => {
252
+ T(() => {
253
+ j.current.clear(), requestAnimationFrame(() => {
249
254
  w.measure();
250
255
  });
251
256
  }, [a.wrapText, w]);
252
- const Pe = v(
257
+ const Pe = S(
253
258
  (e, t) => {
254
259
  if (!t) return;
255
- const n = t.offsetHeight, s = O.current.get(e);
256
- n && s !== n && (O.current.set(e, n), requestAnimationFrame(() => {
260
+ const n = t.offsetHeight, o = j.current.get(e);
261
+ n && o !== n && (j.current.set(e, n), requestAnimationFrame(() => {
257
262
  w.measure();
258
263
  }));
259
264
  },
260
265
  [w]
261
- ), q = (e) => e === "asc" ? /* @__PURE__ */ i(ut, {}) : e === "desc" ? /* @__PURE__ */ i(ft, {}) : /* @__PURE__ */ i(gt, {}), _e = H.type === "filter" ? /* @__PURE__ */ i(
266
+ ), U = (e) => e === "asc" ? /* @__PURE__ */ s(ut, {}) : e === "desc" ? /* @__PURE__ */ s(ft, {}) : /* @__PURE__ */ s(gt, {}), _e = H.type === "filter" ? /* @__PURE__ */ s(
262
267
  it,
263
268
  {
264
- filters: He,
269
+ filters: Ae,
265
270
  draftColumnFilters: A,
266
- setDraftColumnFilters: ue,
271
+ setDraftColumnFilters: fe,
267
272
  handleApplyFilters: () => {
268
- G(A), y({ ...H, open: !1 }), d && Q(`${S}-${d}`, { columnFilters: A });
273
+ J(A), k({ ...H, open: !1 }), d && X(`${E}-${d}`, { columnFilters: A });
269
274
  },
270
- setModalOpen: y,
271
- virtualization: T,
272
- isFilterChanged: JSON.stringify(A) !== JSON.stringify(B)
275
+ setModalOpen: k,
276
+ virtualization: $,
277
+ isFilterChanged: JSON.stringify(A) !== JSON.stringify(F)
273
278
  }
274
- ) : /* @__PURE__ */ i(
275
- lt,
279
+ ) : /* @__PURE__ */ s(
280
+ st,
276
281
  {
277
- draftConfig: N,
278
- setDraftConfig: R,
282
+ draftConfig: B,
283
+ setDraftConfig: K,
279
284
  moveDraftColumn: Oe,
280
- handleApplyPref: Ke,
281
- setModalOpen: y,
285
+ handleApplyPref: He,
286
+ setModalOpen: k,
282
287
  handleResetToDefault: Ve,
283
- isDefault: be(N, D()),
284
- isConfigChanged: mt(N, g)
288
+ isDefault: be(B, R()),
289
+ isConfigChanged: mt(B, h)
285
290
  }
286
- ), U = Ne && !E, Z = Ie && !_;
287
- return /* @__PURE__ */ u("div", { children: [
288
- (f || U || Z) && /* @__PURE__ */ u("div", { className: "ckds-filter-wrapper", style: { display: "flex", gap: "8px", margin: "20px 0", justifyContent: "space-between", alignItems: "center" }, children: [
289
- /* @__PURE__ */ i("div", { className: "ckds-toolbar-search", children: f && /* @__PURE__ */ i(
291
+ ), Z = Ne && !M, Q = Ie && !G;
292
+ return /* @__PURE__ */ f("div", { children: [
293
+ (g || Z || Q) && /* @__PURE__ */ f("div", { className: "ckds-filter-wrapper", style: { display: "flex", gap: "8px", margin: "20px 0", justifyContent: "space-between", alignItems: "center" }, children: [
294
+ /* @__PURE__ */ s("div", { className: "ckds-toolbar-search", children: g && /* @__PURE__ */ s(
290
295
  Xe,
291
296
  {
292
- value: W,
293
- placeholder: f.placeholder ?? "Search",
294
- debounceMs: f.debounceMs ?? 0,
295
- onChange: se,
296
- onClear: () => se(""),
297
- disabled: te
297
+ value: z,
298
+ placeholder: g.placeholder ?? "Search",
299
+ debounceMs: g.debounceMs ?? 0,
300
+ onChange: re,
301
+ onClear: () => re(""),
302
+ disabled: ne
298
303
  }
299
304
  ) }),
300
- (U || Z) && /* @__PURE__ */ u("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
301
- U && /* @__PURE__ */ i(
305
+ (Z || Q) && /* @__PURE__ */ f("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
306
+ Z && /* @__PURE__ */ s(
302
307
  ye,
303
308
  {
304
309
  onClick: () => {
305
- R({ ...g, columnVisibility: { ...g.columnVisibility }, columns: [...g.columns] }), y({ open: !0, type: "columnManager", activeOption: "" });
310
+ K({ ...h, columnVisibility: { ...h.columnVisibility }, columns: [...h.columns] }), k({ open: !0, type: "columnManager", activeOption: "" });
306
311
  },
307
312
  variant: "secondary",
308
313
  size: "medium",
309
- icons: { left: /* @__PURE__ */ i(tt, {}) },
310
- label: ie ? "Column Manager" : void 0,
311
- iconOnly: !ie
314
+ icons: { left: /* @__PURE__ */ s(tt, {}) },
315
+ label: se ? "Column Manager" : void 0,
316
+ iconOnly: !se
312
317
  }
313
318
  ),
314
- /* @__PURE__ */ i("div", { style: { borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)", margin: "5px 0" } }),
315
- Z && /* @__PURE__ */ i(
319
+ /* @__PURE__ */ s("div", { style: { borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)", margin: "5px 0" } }),
320
+ Q && /* @__PURE__ */ s(
316
321
  ye,
317
322
  {
318
- className: `relative ${B.length > 0 ? "after:content-[''] after:absolute after:-top-[1px] after:-right-[1px] after:size-[5px] after:rounded-full after:bg-primary" : ""}`,
323
+ className: `relative ${F.length > 0 ? "after:content-[''] after:absolute after:-top-[1px] after:-right-[1px] after:size-[5px] after:rounded-full after:bg-primary" : ""}`,
319
324
  onClick: () => {
320
- ue(B), y({ open: !0, type: "filter", activeOption: "" });
325
+ fe(F), k({ open: !0, type: "filter", activeOption: "" });
321
326
  },
322
327
  variant: "secondary",
323
328
  size: "medium",
324
- icons: { right: /* @__PURE__ */ i(nt, {}) },
329
+ icons: { right: /* @__PURE__ */ s(nt, {}) },
325
330
  label: le ? "Filters" : void 0,
326
331
  iconOnly: !le
327
332
  }
328
333
  )
329
334
  ] })
330
335
  ] }),
331
- /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
332
- te && /* @__PURE__ */ i(et, { overlay: !0 }),
333
- /* @__PURE__ */ i(
336
+ /* @__PURE__ */ f("div", { style: { position: "relative" }, children: [
337
+ ne && /* @__PURE__ */ s(et, { overlay: !0 }),
338
+ /* @__PURE__ */ s(
334
339
  "div",
335
340
  {
336
341
  className: "ckds-custom-table ckds-custom-scrollbar",
337
- ref: re,
338
- style: { maxHeight: Ee, width: p?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%" },
339
- children: K.length ? /* @__PURE__ */ u(
342
+ ref: ae,
343
+ style: { maxHeight: Ee, width: y?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%" },
344
+ children: V.length ? /* @__PURE__ */ f(
340
345
  "table",
341
346
  {
342
347
  className: "ckds-dragable-table",
343
- style: { width: "100%", minWidth: J, display: "block" },
348
+ style: { width: "100%", minWidth: q, display: "block" },
344
349
  children: [
345
- /* @__PURE__ */ u("thead", { className: "ckds-dragable-thead", style: { display: "block", position: "sticky", top: 0, zIndex: 10, minWidth: J, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: [
346
- M && M.length > 0 && /* @__PURE__ */ i(
347
- st,
350
+ /* @__PURE__ */ f("thead", { className: "ckds-dragable-thead", style: { display: "block", position: "sticky", top: 0, zIndex: 10, minWidth: q, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: [
351
+ I && I.length > 0 && /* @__PURE__ */ s(
352
+ lt,
348
353
  {
349
- headerGroups: M,
350
- table: p,
351
- hasSelection: F,
352
- getSortIcon: q,
353
- selectionCell: F ? /* @__PURE__ */ i(
354
+ headerGroups: I,
355
+ table: y,
356
+ hasSelection: L,
357
+ getSortIcon: U,
358
+ selectionCell: L ? /* @__PURE__ */ s(
354
359
  Ce,
355
360
  {
356
- isAllSelected: I.isAllSelected,
357
- isIndeterminate: I.isIndeterminate,
358
- onToggleAll: ae
361
+ isAllSelected: N.isAllSelected,
362
+ isIndeterminate: N.isIndeterminate,
363
+ onToggleAll: ce
359
364
  }
360
365
  ) : void 0,
361
- lastColId: fe,
362
- columnSizing: h,
363
- pinnedStyle: X,
364
- selectionOffset: V
366
+ lastColId: ge,
367
+ columnSizing: p,
368
+ pinnedStyle: Y,
369
+ selectionOffset: O
365
370
  }
366
371
  ),
367
- !(M && M.length > 0) && p.getHeaderGroups().map((e) => /* @__PURE__ */ u("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
368
- F && /* @__PURE__ */ i(
372
+ !(I && I.length > 0) && y.getHeaderGroups().map((e) => /* @__PURE__ */ f("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
373
+ L && /* @__PURE__ */ s(
369
374
  "th",
370
375
  {
371
376
  className: "ckds-dragable-th",
372
377
  style: { width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", display: "flex", alignItems: "center", justifyContent: "center", position: "sticky", left: 0, zIndex: 2 },
373
- children: /* @__PURE__ */ i(
378
+ children: /* @__PURE__ */ s(
374
379
  Ce,
375
380
  {
376
- isAllSelected: I.isAllSelected,
377
- isIndeterminate: I.isIndeterminate,
378
- onToggleAll: ae
381
+ isAllSelected: N.isAllSelected,
382
+ isIndeterminate: N.isIndeterminate,
383
+ onToggleAll: ce
379
384
  }
380
385
  )
381
386
  }
382
387
  ),
383
388
  e.headers.map((t) => {
384
- const n = t.column.getIsPinned(), s = t.column.id === fe;
385
- return /* @__PURE__ */ u(
389
+ const n = t.column.getIsPinned(), o = t.column.id === ge;
390
+ return /* @__PURE__ */ f(
386
391
  "th",
387
392
  {
388
393
  className: "ckds-dragable-th",
389
394
  style: {
390
- ...X(t.column, p, V),
391
- ...xe(t.column, x, h),
395
+ ...Y(t.column, y, O),
396
+ ...xe(t.column, x, p),
392
397
  position: n ? "sticky" : "relative",
393
398
  zIndex: n ? 2 : void 0,
394
399
  display: "flex",
395
400
  flexDirection: "column"
396
401
  },
397
402
  children: [
398
- /* @__PURE__ */ u(
403
+ /* @__PURE__ */ f(
399
404
  "div",
400
405
  {
401
406
  style: {
@@ -413,13 +418,13 @@ function At({
413
418
  t.column.getCanSort() && (l.key === "Enter" || l.key === " ") && t.column.getToggleSortingHandler()?.(l);
414
419
  },
415
420
  children: [
416
- t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ i("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: q(t.column.getIsSorted()) }),
421
+ t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: U(t.column.getIsSorted()) }),
417
422
  qe(t.column.columnDef.header, t.getContext()),
418
- t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ i("span", { className: "ckds-sort-icon", children: q(t.column.getIsSorted()) })
423
+ t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon", children: U(t.column.getIsSorted()) })
419
424
  ]
420
425
  }
421
426
  ),
422
- !s && t.column.getCanResize() && /* @__PURE__ */ i(
427
+ !o && t.column.getCanResize() && /* @__PURE__ */ s(
423
428
  "div",
424
429
  {
425
430
  onMouseDown: t.getResizeHandler(),
@@ -427,7 +432,7 @@ function At({
427
432
  className: "ckds-col-resize-handle",
428
433
  role: "separator",
429
434
  "aria-orientation": "vertical",
430
- children: /* @__PURE__ */ i("div", { className: "ckds-col-resize-line" })
435
+ children: /* @__PURE__ */ s("div", { className: "ckds-col-resize-line" })
431
436
  }
432
437
  )
433
438
  ]
@@ -437,57 +442,57 @@ function At({
437
442
  })
438
443
  ] }, e.id))
439
444
  ] }),
440
- /* @__PURE__ */ i(
445
+ /* @__PURE__ */ s(
441
446
  "tbody",
442
447
  {
443
448
  className: "ckds-dragable-tbody",
444
449
  style: {
445
- height: T && K.length ? `${w.getTotalSize()}px` : "auto",
450
+ height: $ && V.length ? `${w.getTotalSize()}px` : "auto",
446
451
  position: "relative",
447
452
  display: "block",
448
453
  width: "100%",
449
- minWidth: J
454
+ minWidth: q
450
455
  },
451
- children: /* @__PURE__ */ i(
456
+ children: /* @__PURE__ */ s(
452
457
  rt,
453
458
  {
454
- rows: K,
455
- virtualization: T,
459
+ rows: V,
460
+ virtualization: $,
456
461
  rowVirtualizer: w,
457
462
  handleMeasure: Pe,
458
- getEstimatedSize: ge,
459
- columnSizing: h,
463
+ getEstimatedSize: he,
464
+ columnSizing: p,
460
465
  tableConfig: a,
461
- table: p,
462
- selectionState: I,
463
- selectionConfig: $,
466
+ table: y,
467
+ selectionState: N,
468
+ selectionConfig: P,
464
469
  onToggleRowSelection: Le,
465
- expandableConfig: P,
470
+ expandableConfig: _,
466
471
  expandedIds: We,
467
472
  onToggleExpand: ze
468
473
  }
469
474
  )
470
475
  }
471
476
  ),
472
- ee && /* @__PURE__ */ i("tfoot", { className: "ckds-dragable-tfoot", style: { display: "block", position: "sticky", bottom: 0, zIndex: 10, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ u("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
473
- F && /* @__PURE__ */ i("td", { className: "ckds-dragable-td ckds-dragable-total-td", style: { display: "flex", alignItems: "center", width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2 } }),
474
- p.getVisibleLeafColumns().map((e, t) => {
475
- const n = e.getIsPinned(), s = ee[e.id], l = e.columnDef;
477
+ te && /* @__PURE__ */ s("tfoot", { className: "ckds-dragable-tfoot", style: { display: "block", position: "sticky", bottom: 0, zIndex: 10, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ f("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
478
+ L && /* @__PURE__ */ s("td", { className: "ckds-dragable-td ckds-dragable-total-td", style: { display: "flex", alignItems: "center", width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2 } }),
479
+ y.getVisibleLeafColumns().map((e, t) => {
480
+ const n = e.getIsPinned(), o = te[e.id], l = e.columnDef;
476
481
  let r = null;
477
- t === 0 && s === void 0 ? r = /* @__PURE__ */ i("span", { children: "Total" }) : s !== void 0 && (typeof s == "object" && s !== null ? r = /* @__PURE__ */ i("span", { children: s }) : l.prefix || l.suffix || l.decimalPlaces !== void 0 ? r = /* @__PURE__ */ i("span", { children: we(s, l) }) : r = /* @__PURE__ */ i("span", { children: s }));
478
- const k = l.align === "right" ? "right" : l.align === "center" ? "center" : "left";
479
- return /* @__PURE__ */ i(
482
+ t === 0 && o === void 0 ? r = /* @__PURE__ */ s("span", { children: "Total" }) : o !== void 0 && (typeof o == "object" && o !== null ? r = /* @__PURE__ */ s("span", { children: o }) : l.prefix || l.suffix || l.decimalPlaces !== void 0 ? r = /* @__PURE__ */ s("span", { children: we(o, l) }) : r = /* @__PURE__ */ s("span", { children: o }));
483
+ const m = l.align === "right" ? "right" : l.align === "center" ? "center" : "left";
484
+ return /* @__PURE__ */ s(
480
485
  "td",
481
486
  {
482
487
  className: "ckds-dragable-td ckds-dragable-total-td",
483
488
  style: {
484
- ...X(e, p, V),
489
+ ...Y(e, y, O),
485
490
  display: "flex",
486
491
  alignItems: "center",
487
- ...xe(e, x, h),
492
+ ...xe(e, x, p),
488
493
  zIndex: n ? 2 : void 0
489
494
  },
490
- children: /* @__PURE__ */ i("div", { style: { width: "100%", textAlign: k, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: r })
495
+ children: /* @__PURE__ */ s("div", { style: { width: "100%", textAlign: m, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: r })
491
496
  },
492
497
  e.id
493
498
  );
@@ -495,13 +500,13 @@ function At({
495
500
  ] }) })
496
501
  ]
497
502
  }
498
- ) : /* @__PURE__ */ i(
503
+ ) : /* @__PURE__ */ s(
499
504
  Ye,
500
505
  {
501
- icon: Me ?? /* @__PURE__ */ i(ht, {}),
506
+ icon: Me ?? /* @__PURE__ */ s(ht, {}),
502
507
  message: {
503
- heading: Y?.heading ?? "No data to display",
504
- content: Y?.content ?? "There's no activity recorded for this period or filter selection."
508
+ heading: ee?.heading ?? "No data to display",
509
+ content: ee?.content ?? "There's no activity recorded for this period or filter selection."
505
510
  },
506
511
  classNames: { wrapperClass: "ckds-table-empty-state-wrapper" }
507
512
  }
@@ -509,11 +514,11 @@ function At({
509
514
  }
510
515
  )
511
516
  ] }),
512
- H.open && !_ && !E && /* @__PURE__ */ i(
517
+ H.open && !G && !M && /* @__PURE__ */ s(
513
518
  "div",
514
519
  {
515
520
  className: "ckds-table-filter-modal-wr",
516
- onClick: () => y({ ...H, open: !1 }),
521
+ onClick: () => k({ ...H, open: !1 }),
517
522
  role: "dialog",
518
523
  "aria-modal": "true",
519
524
  style: {
@@ -525,7 +530,7 @@ function At({
525
530
  justifyContent: "center",
526
531
  backgroundColor: "rgba(0,0,0,0.3)"
527
532
  },
528
- children: /* @__PURE__ */ i(
533
+ children: /* @__PURE__ */ s(
529
534
  "div",
530
535
  {
531
536
  className: "ckds-table-modal-box",
@@ -538,6 +543,6 @@ function At({
538
543
  ] });
539
544
  }
540
545
  export {
541
- At as CustomTable,
542
- At as default
546
+ Kt as CustomTable,
547
+ Kt as default
543
548
  };