@ck-ui/component-library 2.0.4 → 2.0.5

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 (65) hide show
  1. package/dist/{DropdownFooter-W4D9bbd6.js → DropdownFooter-DYusPa5E.js} +4 -3
  2. package/dist/assets/TableChipCell-B2fEKEbC.css +1 -0
  3. package/dist/assets/index-BB_JksPb.css +1 -0
  4. package/dist/assets/{index-BJ3ki-dZ.css → index-C8_uOajQ.css} +1 -1
  5. package/dist/assets/index-Ceh4ivv5.css +1 -0
  6. package/dist/assets/styles-BYpypz4h.css +1 -0
  7. package/dist/assets/{styles-CnUruVcX.css → styles-DU_mFQrB.css} +1 -1
  8. package/dist/assets/styles-Dikgm2G4.css +1 -0
  9. package/dist/components/Breadcrumb/index.js +51 -51
  10. package/dist/components/CKBadge/_types/ckBadge.types.d.ts +3 -1
  11. package/dist/components/CKBadge/_types/ckBadge.types.d.ts.map +1 -1
  12. package/dist/components/CKBadge/index.d.ts +1 -1
  13. package/dist/components/CKBadge/index.d.ts.map +1 -1
  14. package/dist/components/CKBadge/index.js +35 -32
  15. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  16. package/dist/components/FusionChart/_config/builders.js +74 -42
  17. package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -1
  18. package/dist/components/FusionChart/_config/helpers.js +5 -5
  19. package/dist/components/FusionChart/index.d.ts.map +1 -1
  20. package/dist/components/FusionChart/index.js +418 -389
  21. package/dist/components/GroupedMultiSelect/_constant/constants.d.ts +2 -0
  22. package/dist/components/GroupedMultiSelect/_constant/constants.d.ts.map +1 -0
  23. package/dist/components/GroupedMultiSelect/_constant/constants.js +4 -0
  24. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +1 -1
  25. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +1 -1
  26. package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +1 -1
  27. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +1 -1
  28. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +1 -1
  29. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +1 -1
  30. package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +1 -1
  31. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
  32. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +113 -67
  33. package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -1
  34. package/dist/components/GroupedMultiSelect/index.js +187 -164
  35. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +1 -1
  36. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +1 -1
  37. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +1 -1
  38. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +1 -1
  39. package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -1
  40. package/dist/components/GroupedSingleSelect/index.js +113 -97
  41. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
  42. package/dist/components/SingleSelectDropdown/index.js +6 -5
  43. package/dist/components/Table/_helpers/ColumnManager/index.js +1 -1
  44. package/dist/components/Table/_helpers/FilterColumnToolbar.js +1 -1
  45. package/dist/components/Table/_helpers/TableChipCell.d.ts +21 -0
  46. package/dist/components/Table/_helpers/TableChipCell.d.ts.map +1 -0
  47. package/dist/components/Table/_helpers/TableChipCell.js +158 -0
  48. package/dist/components/Table/_types/table.types.d.ts +12 -1
  49. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  50. package/dist/components/Table/index.d.ts.map +1 -1
  51. package/dist/components/Table/index.js +673 -402
  52. package/dist/main.d.ts +4 -3
  53. package/dist/main.d.ts.map +1 -1
  54. package/dist/main.js +116 -114
  55. package/dist/styles.module-D5ab7LbM.js +40 -0
  56. package/dist/styles.module-Y7TzrS2V.js +51 -0
  57. package/dist/table-filter-BwC2jvAO.js +8 -0
  58. package/package.json +1 -1
  59. package/dist/assets/index-DZaWJ3P3.css +0 -1
  60. package/dist/assets/index-DlcdXqx_.css +0 -1
  61. package/dist/assets/styles-B4HnRCM5.css +0 -1
  62. package/dist/assets/styles-DVAtoUQM.css +0 -1
  63. package/dist/styles.module-DBuEcddZ.js +0 -29
  64. package/dist/styles.module-DKDRix10.js +0 -39
  65. package/dist/table-filter-C0zetUfo.js +0 -6
@@ -1,6 +1,6 @@
1
- import { jsx as l, jsxs as C } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { useState as N, useEffect as M, useCallback as I, useRef as U, useMemo as A } from "react";
1
+ import { jsx as s, jsxs as b } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { useState as M, useEffect as I, useCallback as L, useRef as Z, useMemo as O } from "react";
4
4
  import { flushSync as it } from "react-dom";
5
5
  import { u as lt } from "../../OptionList-DU0iA8Y4.js";
6
6
  import { u as ct, f as at, g as dt, a as ut, b as mt } from "../../index-Bcvmezbu.js";
@@ -8,87 +8,100 @@ import { CKButton as Be } from "../CKButton/index.js";
8
8
  import { Search as ft } from "../Search/index.js";
9
9
  import { EmptyState as gt } from "../EmptyState/index.js";
10
10
  import { Loader as ht } from "../Loader/index.js";
11
- import { S as pt, a as yt } from "../../table-filter-C0zetUfo.js";
12
- import { INITIAL_COLUMN_MANAGER_CONFIG as We, ROW_MIN_HEIGHT as kt, TABLE_PREFIX as R } from "./constants.js";
13
- import Ct from "./_helpers/TableFilterModal/index.js";
11
+ import { S as pt, a as yt } from "../../table-filter-BwC2jvAO.js";
12
+ import { INITIAL_COLUMN_MANAGER_CONFIG as We, ROW_MIN_HEIGHT as Ct, TABLE_PREFIX as R } from "./constants.js";
13
+ import kt from "./_helpers/TableFilterModal/index.js";
14
14
  import bt from "./_helpers/ColumnManager/index.js";
15
- import vt from "./_helpers/GroupedHeader/index.js";
16
- import { SelectionHeaderCell as Re } from "./_helpers/SelectionCell/index.js";
17
- import St from "./_helpers/TableRows.js";
18
- import { useSelection as wt } from "./_hooks/useSelection.js";
19
- import { useExpansion as xt } from "./_hooks/useExpansion.js";
20
- import { useOverlayScrollbar as Et } from "./_hooks/useOverlayScrollbar.js";
21
- import { isTableConfigDefault as ae, saveToLocalStorage as de, getTableMinWidth as Nt, isTableConfigChanged as Mt, pinnedStyle as ue, columnLayoutStyle as ze } from "./_utils/table.utils.js";
15
+ import St from "./_helpers/GroupedHeader/index.js";
16
+ import { SelectionHeaderCell as ze } from "./_helpers/SelectionCell/index.js";
17
+ import vt from "./_helpers/TableRows.js";
18
+ import { TableChipCell as wt } from "./_helpers/TableChipCell.js";
19
+ import { CKTag as xt } from "../CKTag/index.js";
20
+ import { useSelection as Et } from "./_hooks/useSelection.js";
21
+ import { useExpansion as Nt } from "./_hooks/useExpansion.js";
22
+ import { useOverlayScrollbar as Mt } from "./_hooks/useOverlayScrollbar.js";
23
+ import { isTableConfigDefault as de, saveToLocalStorage as ue, getTableMinWidth as It, isTableConfigChanged as Lt, pinnedStyle as me, columnLayoutStyle as Re } from "./_utils/table.utils.js";
22
24
  import { formatCellValue as De } from "./_utils/formatCellValue.js";
23
25
  import '../../assets/styles-DIZ9K_K2.css';/* empty css */
24
- const It = (a) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__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" })), Lt = (a) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__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" })), Ft = (a) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ i.createElement("mask", { id: "mask0_1852_13537", style: {
26
+ const Ft = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 8.75006L8.16667 8.75", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 5.25H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 12.25H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.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" })), Bt = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 5.24994L8.16667 5.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 8.75H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 1.75H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.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" })), Wt = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("mask", { id: "mask0_1852_13537", style: {
25
27
  maskType: "luminance"
26
- }, 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" }))), Bt = (a) => /* @__PURE__ */ i.createElement("svg", { width: 200, height: 180, viewBox: "0 0 200 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__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" }))), Ke = (a) => {
28
+ }, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 14, height: 14 }, /* @__PURE__ */ l.createElement("path", { d: "M13.708 0.291992V13.708H0.291992V0.291992H13.708Z", fill: "white", stroke: "white", strokeWidth: 0.583333 })), /* @__PURE__ */ l.createElement("g", { mask: "url(#mask0_1852_13537)" }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 4.08325H12.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M3.5 7H10.5", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M5.83398 9.9165H8.16732", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }))), zt = (a) => /* @__PURE__ */ l.createElement("svg", { width: 200, height: 180, viewBox: "0 0 200 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ l.createElement("ellipse", { cx: 100, cy: 168, rx: 38, ry: 6, fill: "#E0E0E0" }), /* @__PURE__ */ l.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__ */ l.createElement("g", { stroke: "#C0C0C0", strokeWidth: 2.5, strokeLinecap: "round" }, /* @__PURE__ */ l.createElement("line", { x1: 28, y1: 22, x2: 28, y2: 32 }), /* @__PURE__ */ l.createElement("line", { x1: 23, y1: 27, x2: 33, y2: 27 }), /* @__PURE__ */ l.createElement("line", { x1: 38, y1: 118, x2: 38, y2: 128 }), /* @__PURE__ */ l.createElement("line", { x1: 33, y1: 123, x2: 43, y2: 123 }), /* @__PURE__ */ l.createElement("line", { x1: 162, y1: 52, x2: 162, y2: 62 }), /* @__PURE__ */ l.createElement("line", { x1: 157, y1: 57, x2: 167, y2: 57 })), /* @__PURE__ */ l.createElement("circle", { cx: 100, cy: 155, r: 2, fill: "#D0D0D0" }), /* @__PURE__ */ l.createElement("g", { transform: "rotate(-8, 100, 90)" }, /* @__PURE__ */ l.createElement("rect", { x: 42, y: 28, width: 112, height: 130, rx: 10, fill: "#DCDCDC" }), /* @__PURE__ */ l.createElement("rect", { x: 44, y: 30, width: 108, height: 126, rx: 9, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ l.createElement("rect", { x: 50, y: 36, width: 96, height: 114, rx: 6, fill: "white", stroke: "#C2C2C2", strokeWidth: 1 }), /* @__PURE__ */ l.createElement("rect", { x: 82, y: 20, width: 32, height: 20, rx: 4, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ l.createElement("path", { d: "M91 20 Q98 14 105 20", stroke: "#C2C2C2", strokeWidth: 1.5, fill: "#F4F4F4" }), /* @__PURE__ */ l.createElement("circle", { cx: 95, cy: 88, r: 26, stroke: "#C2C2C2", strokeWidth: 3, fill: "white" }), /* @__PURE__ */ l.createElement("line", { x1: 113, y1: 106, x2: 128, y2: 121, stroke: "#C2C2C2", strokeWidth: 5, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("line", { x1: 116, y1: 109, x2: 125, y2: 118, stroke: "#E8E8E8", strokeWidth: 2, strokeLinecap: "round" }))), Ae = (a) => {
27
29
  if (typeof a == "number") return a;
28
30
  if (a == null) return NaN;
29
- const f = String(a).replace(/[^0-9.-]/g, "");
30
- return f === "" ? NaN : Number(f);
31
- }, Wt = (a, f, H) => {
32
- const S = Ke(a.getValue(H)), d = Ke(f.getValue(H));
33
- return Number.isNaN(S) && Number.isNaN(d) ? 0 : Number.isNaN(S) ? 1 : Number.isNaN(d) ? -1 : S - d;
31
+ const m = String(a).replace(/[^0-9.-]/g, "");
32
+ return m === "" ? NaN : Number(m);
33
+ }, Rt = (a, m, w) => {
34
+ const p = Ae(a.getValue(w)), d = Ae(m.getValue(w));
35
+ return Number.isNaN(p) && Number.isNaN(d) ? 0 : Number.isNaN(p) ? 1 : Number.isNaN(d) ? -1 : p - d;
34
36
  };
35
- let Ve = !1;
36
- const Ae = (a) => {
37
+ let Ke = !1;
38
+ const Ve = (a) => {
37
39
  if (typeof a == "number") return a;
38
40
  if (typeof a == "string" && a.trim().endsWith("px")) {
39
- const f = Number.parseFloat(a);
40
- return Number.isNaN(f) ? void 0 : f;
41
+ const m = Number.parseFloat(a);
42
+ return Number.isNaN(m) ? void 0 : m;
41
43
  }
42
44
  };
43
- function tn({
45
+ function Dt(a, m, w) {
46
+ const p = Array.isArray(a) ? a : a ? [a] : [];
47
+ return p.length === 0 ? "" : /* @__PURE__ */ s(wt, { children: p.map(
48
+ (d, D) => w.renderChip ? /* @__PURE__ */ s("span", { children: w.renderChip(d, m) }, D) : /* @__PURE__ */ s(
49
+ xt,
50
+ {
51
+ variation: "NEUTRAL",
52
+ size: "small",
53
+ fill: "outline",
54
+ shape: "pill",
55
+ children: String(d)
56
+ },
57
+ D
58
+ )
59
+ ) });
60
+ }
61
+ function ln({
44
62
  config: a = {},
45
- data: f = [],
46
- maxHeight: H = "600px",
47
- virtualization: S = !1,
63
+ data: m = [],
64
+ maxHeight: w = "600px",
65
+ virtualization: p = !1,
48
66
  persistTableConfig: d = "",
49
- message: me,
67
+ message: D,
50
68
  icon: He,
51
69
  totalRow: fe,
52
- selection: Z,
53
- expandable: Q,
54
- externalColumnFilters: X,
55
- externalTableConfig: w,
70
+ selection: Q,
71
+ expandable: X,
72
+ externalColumnFilters: Y,
73
+ externalTableConfig: x,
56
74
  onConfigChange: Oe,
57
75
  isLoading: ge = !1
58
76
  }) {
59
77
  const {
60
- headers: L = [],
61
- headerGroups: p,
62
- showFilters: je = !0,
63
- showColumnManager: Te = !0,
78
+ headers: F = [],
79
+ headerGroups: y,
80
+ showFilters: Te = !0,
81
+ showColumnManager: je = !0,
64
82
  columnManagerConfig: he = We,
65
83
  toolbarLabels: pe,
66
84
  search: g
67
- } = a ?? {}, ye = pe?.columnManager ?? !0, ke = pe?.filter ?? !0, [O, Ce] = N(g?.value ?? "");
68
- M(() => {
69
- g?.value !== void 0 && Ce(g.value);
85
+ } = a ?? {}, ye = pe?.columnManager ?? !0, Ce = pe?.filter ?? !0, [T, ke] = M(g?.value ?? "");
86
+ I(() => {
87
+ g?.value !== void 0 && ke(g.value);
70
88
  }, [g?.value]);
71
- const be = I((e) => {
72
- Ce(e), g?.onSearch?.(e);
73
- }, [g]), x = U(null), Y = U(null);
74
- Et(x);
75
- const {
76
- selectionState: z,
77
- getRowId: $e,
78
- toggleRowSelection: Ge,
79
- toggleSelectAll: ve
80
- } = wt(f, Z), {
81
- expandedIds: Pe,
82
- toggleExpand: _e
83
- } = xt(Q), j = A(
84
- () => L.map((e) => {
89
+ const be = L(
90
+ (e) => {
91
+ ke(e), g?.onSearch?.(e);
92
+ },
93
+ [g]
94
+ ), E = Z(null), ee = Z(null);
95
+ Mt(E);
96
+ const { selectionState: A, getRowId: $e, toggleRowSelection: Ge, toggleSelectAll: Se } = Et(m, Q), { expandedIds: Pe, toggleExpand: _e } = Nt(X), j = O(
97
+ () => F.map((e) => {
85
98
  let t = "includesString";
86
99
  return e.filterable && (e.type === "string" ? t = (n, r, o) => {
87
100
  if (!o) return !0;
88
- const c = Array.isArray(o) ? o : o.values, s = Array.isArray(o) ? !1 : o.exclude;
101
+ const c = Array.isArray(o) ? o : o.values, i = Array.isArray(o) ? !1 : o.exclude;
89
102
  if (!c || c.length === 0) return !0;
90
103
  const u = String(n.getValue(r));
91
- return s ? !c.includes(u) : c.includes(u);
104
+ return i ? !c.includes(u) : c.includes(u);
92
105
  } : e.type === "number" && (t = (n, r, o) => {
93
106
  if (!o) return !0;
94
107
  const c = Number(n.getValue(r));
@@ -97,36 +110,51 @@ function tn({
97
110
  ...e,
98
111
  enableSorting: e.sortable !== !1,
99
112
  ...e.minWidth !== void 0 ? { enableResizing: !1 } : {},
100
- ...e.minSize === void 0 && Ae(e.minWidth) !== void 0 ? { minSize: Ae(e.minWidth) } : {},
113
+ ...e.minSize === void 0 && Ve(e.minWidth) !== void 0 ? { minSize: Ve(e.minWidth) } : {},
101
114
  ...e.type === "number" ? { sortingFn: "numericSort" } : { sortingFn: "text" },
102
115
  filterFn: t,
103
116
  ...e.renderCell ? {
104
117
  cell: (n) => e.renderCell(n.getValue(), n.row.original)
118
+ } : e.type === "chips" ? {
119
+ cell: (n) => Dt(n.getValue(), n.row.original, e)
105
120
  } : e.prefix || e.suffix || e.decimalPlaces !== void 0 ? {
106
- cell: (n) => De(n.getValue(), e)
121
+ cell: (n) => De(
122
+ n.getValue(),
123
+ e
124
+ )
107
125
  } : {}
108
126
  };
109
127
  }),
110
- [L]
111
- ), D = I(
128
+ [F]
129
+ ), K = L(
112
130
  () => ({
113
131
  ...We,
114
132
  ...he,
115
133
  columns: j
116
134
  }),
117
135
  [he, j]
118
- ), Se = () => {
119
- const e = D();
136
+ ), ve = () => {
137
+ const e = K();
120
138
  if (d)
121
139
  try {
122
- const t = localStorage.getItem(`${R}-${d}`);
140
+ const t = localStorage.getItem(
141
+ `${R}-${d}`
142
+ );
123
143
  if (t) {
124
144
  const n = JSON.parse(t);
125
145
  if (n?.tableConfig) {
126
- const r = n.tableConfig.columns || [], o = /* @__PURE__ */ new Set(), c = r.map((s) => e.columns.find((u) => u.accessorKey === s.accessorKey)).filter((s) => !s || o.has(s.accessorKey) ? !1 : (o.add(s.accessorKey), !0));
127
- return e.columns.forEach((s) => {
128
- c.find((u) => u.accessorKey === s.accessorKey) || c.push(s);
129
- }), { ...e, ...n.tableConfig, columns: c };
146
+ const r = n.tableConfig.columns || [], o = /* @__PURE__ */ new Set(), c = r.map(
147
+ (i) => e.columns.find(
148
+ (u) => u.accessorKey === i.accessorKey
149
+ )
150
+ ).filter((i) => !i || o.has(i.accessorKey) ? !1 : (o.add(i.accessorKey), !0));
151
+ return e.columns.forEach((i) => {
152
+ c.find((u) => u.accessorKey === i.accessorKey) || c.push(i);
153
+ }), {
154
+ ...e,
155
+ ...n.tableConfig,
156
+ columns: c
157
+ };
130
158
  }
131
159
  }
132
160
  } catch (t) {
@@ -136,7 +164,9 @@ function tn({
136
164
  }, we = () => {
137
165
  if (d)
138
166
  try {
139
- const e = localStorage.getItem(`${R}-${d}`);
167
+ const e = localStorage.getItem(
168
+ `${R}-${d}`
169
+ );
140
170
  if (e) {
141
171
  const t = JSON.parse(e);
142
172
  if (t?.columnFilters) return t.columnFilters;
@@ -148,7 +178,9 @@ function tn({
148
178
  }, qe = () => {
149
179
  if (d)
150
180
  try {
151
- const e = localStorage.getItem(`${R}-${d}`);
181
+ const e = localStorage.getItem(
182
+ `${R}-${d}`
183
+ );
152
184
  if (e) {
153
185
  const t = JSON.parse(e);
154
186
  if (t?.columnSizing) return t.columnSizing;
@@ -157,25 +189,35 @@ function tn({
157
189
  console.error("Failed to load table config from local storage", e);
158
190
  }
159
191
  return {};
160
- }, [y, ee] = N(Se), [F, T] = N(Se), [K, te] = N(we), [$, xe] = N(we), [h, Ee] = N(qe), ne = U(h);
161
- ne.current = h;
162
- const Ne = I(
192
+ }, [C, te] = M(
193
+ ve
194
+ ), [B, $] = M(
195
+ ve
196
+ ), [V, ne] = M(
197
+ we
198
+ ), [G, xe] = M(we), [h, Ee] = M(
199
+ qe
200
+ ), oe = Z(h);
201
+ oe.current = h;
202
+ const Ne = L(
163
203
  (e) => (t) => {
164
- const n = x.current;
165
- if (n && Y.current) {
166
- const s = Y.current.getVisibleLeafColumns(), u = { ...ne.current }, v = n.querySelector(".ckds-dragable-tbody .ckds-dragable-tr");
204
+ const n = E.current;
205
+ if (n && ee.current) {
206
+ const i = ee.current.getVisibleLeafColumns(), u = { ...oe.current }, v = n.querySelector(
207
+ ".ckds-dragable-tbody .ckds-dragable-tr"
208
+ );
167
209
  if (v) {
168
- const b = v.querySelectorAll(".ckds-dragable-td"), ce = b.length > s.length ? 1 : 0;
169
- let J = !1;
170
- s.forEach((Ie, st) => {
210
+ const S = v.querySelectorAll(".ckds-dragable-td"), ae = S.length > i.length ? 1 : 0;
211
+ let U = !1;
212
+ i.forEach((Ie, st) => {
171
213
  if (u[Ie.id] === void 0) {
172
- const Le = b[st + ce];
214
+ const Le = S[st + ae];
173
215
  if (Le) {
174
216
  const Fe = Le.offsetWidth;
175
- Fe > 0 && (u[Ie.id] = Fe, J = !0);
217
+ Fe > 0 && (u[Ie.id] = Fe, U = !0);
176
218
  }
177
219
  }
178
- }), J && (ne.current = u, it(() => {
220
+ }), U && (oe.current = u, it(() => {
179
221
  Ee(u);
180
222
  }));
181
223
  }
@@ -184,25 +226,29 @@ function tn({
184
226
  let r = n.scrollWidth;
185
227
  const o = () => {
186
228
  if (!n) return;
187
- const s = n.scrollWidth;
188
- if (s < r && n.scrollLeft > 0) {
189
- const u = r - s;
229
+ const i = n.scrollWidth;
230
+ if (i < r && n.scrollLeft > 0) {
231
+ const u = r - i;
190
232
  n.scrollLeft = Math.max(0, n.scrollLeft - u);
191
233
  }
192
- r = s;
234
+ r = i;
193
235
  }, c = () => {
194
236
  document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", c);
195
237
  };
196
238
  document.addEventListener("mousemove", o), document.addEventListener("mouseup", c);
197
239
  },
198
- [x]
199
- ), [G, E] = N({ open: !1, type: "", activeOption: "" });
200
- M(() => {
201
- w && ee(w);
202
- }, [w]);
203
- const m = A(() => {
204
- const e = w ?? y;
205
- if (!w) return e;
240
+ [E]
241
+ ), [P, N] = M({
242
+ open: !1,
243
+ type: "",
244
+ activeOption: ""
245
+ });
246
+ I(() => {
247
+ x && te(x);
248
+ }, [x]);
249
+ const f = O(() => {
250
+ const e = x ?? C;
251
+ if (!x) return e;
206
252
  const t = new Map(j.map((n) => [n.accessorKey, n]));
207
253
  return {
208
254
  ...e,
@@ -216,120 +262,166 @@ function tn({
216
262
  } : n;
217
263
  })
218
264
  };
219
- }, [w, y, j]), Je = X ?? K, Ue = A(() => {
265
+ }, [x, C, j]), Je = Y ?? V, Ue = O(() => {
220
266
  const e = {};
221
- return L.forEach((t) => {
222
- if (m.columnVisibility[t.accessorKey] !== !1) {
267
+ return F.forEach((t) => {
268
+ if (f.columnVisibility[t.accessorKey] !== !1) {
223
269
  if (t.filterable && (t.type === "string" || !t.type)) {
224
270
  const n = [
225
- ...new Set(f.map((r) => String(r[t.accessorKey] ?? "")).filter(Boolean))
271
+ ...new Set(
272
+ m.map((r) => String(r[t.accessorKey] ?? "")).filter(Boolean)
273
+ )
226
274
  ];
227
- e[t.header] = { type: "checkbox", options: n, accessorKey: t.accessorKey };
275
+ e[t.header] = {
276
+ type: "checkbox",
277
+ options: n,
278
+ accessorKey: t.accessorKey
279
+ };
228
280
  } else if (t.filterable && t.type === "number") {
229
- const n = f.map((c) => Number(c[t.accessorKey])).filter((c) => !Number.isNaN(c)), r = n.length ? Math.floor(Math.min(...n)) : 0, o = n.length ? Math.ceil(Math.max(...n)) : 0;
230
- e[t.header] = { type: "range", values: { min: r, max: o }, accessorKey: t.accessorKey };
281
+ const n = m.map((c) => Number(c[t.accessorKey])).filter((c) => !Number.isNaN(c)), r = n.length ? Math.floor(Math.min(...n)) : 0, o = n.length ? Math.ceil(Math.max(...n)) : 0;
282
+ e[t.header] = {
283
+ type: "range",
284
+ values: { min: r, max: o },
285
+ accessorKey: t.accessorKey
286
+ };
231
287
  }
232
288
  }
233
289
  }), e;
234
- }, [L, f, m.columnVisibility]);
235
- M(() => {
236
- if (d && !Ve)
290
+ }, [F, m, f.columnVisibility]);
291
+ I(() => {
292
+ if (d && !Ke)
237
293
  try {
238
- const e = K.length > 0, t = !ae(y, D());
239
- (e || t) && (Ve = !0);
294
+ const e = V.length > 0, t = !de(
295
+ C,
296
+ K()
297
+ );
298
+ (e || t) && (Ke = !0);
240
299
  } catch (e) {
241
300
  console.error("Failed to check toast condition", e);
242
301
  }
243
- }, [d]), M(() => {
244
- d && Object.keys(h).length > 0 && de(`${R}-${d}`, { columnSizing: h });
245
- }, [h, d]), M(() => {
246
- te((e) => {
302
+ }, [d]), I(() => {
303
+ d && Object.keys(h).length > 0 && ue(`${R}-${d}`, {
304
+ columnSizing: h
305
+ });
306
+ }, [h, d]), I(() => {
307
+ ne((e) => {
247
308
  const t = e.filter(
248
- (n) => y.columnVisibility[n.id] !== !1
309
+ (n) => C.columnVisibility[n.id] !== !1
249
310
  );
250
311
  return t.length !== e.length ? t : e;
251
312
  });
252
- }, [y.columnVisibility]);
313
+ }, [C.columnVisibility]);
253
314
  const Ze = () => {
254
- const e = /* @__PURE__ */ new Set(), t = F.columns.filter((r) => e.has(r.accessorKey) ? !1 : (e.add(r.accessorKey), !0)), n = { ...F, columns: t };
255
- ee(n), E({ type: "", activeOption: "", open: !1 }), d && de(`${R}-${d}`, { tableConfig: n }), Oe?.(F);
315
+ const e = /* @__PURE__ */ new Set(), t = B.columns.filter((r) => e.has(r.accessorKey) ? !1 : (e.add(r.accessorKey), !0)), n = { ...B, columns: t };
316
+ te(n), N({ type: "", activeOption: "", open: !1 }), d && ue(`${R}-${d}`, {
317
+ tableConfig: n
318
+ }), Oe?.(B);
256
319
  }, Qe = () => {
257
- T(D);
258
- }, Xe = I((e, t) => {
259
- T((n) => {
320
+ $(K);
321
+ }, Xe = L((e, t) => {
322
+ $((n) => {
260
323
  const r = [...n.columns], [o] = r.splice(e, 1);
261
324
  return r.splice(t, 0, o), { ...n, columns: r };
262
325
  });
263
- }, []), Ye = I((e) => {
264
- ee((t) => {
265
- const n = typeof e == "function" ? e(t.columnVisibility) : e;
266
- return { ...t, columnVisibility: n };
267
- });
268
- }, []), et = A(() => {
269
- const e = [], t = [], n = m.columns.filter(
270
- (s) => m.columnVisibility[s.accessorKey] !== !1
326
+ }, []), Ye = L(
327
+ (e) => {
328
+ te((t) => {
329
+ const n = typeof e == "function" ? e(t.columnVisibility) : e;
330
+ return { ...t, columnVisibility: n };
331
+ });
332
+ },
333
+ []
334
+ ), et = O(() => {
335
+ const e = [], t = [], n = f.columns.filter(
336
+ (i) => f.columnVisibility[i.accessorKey] !== !1
271
337
  );
272
338
  if (n.length === 0) return { left: e, right: t };
273
339
  const r = /* @__PURE__ */ new Set(), o = [];
274
- if (p && p.length > 0) {
275
- const s = /* @__PURE__ */ new Map();
276
- p.forEach((v) => {
277
- v.columns.forEach((b) => {
278
- s.set(b, v.columns), r.add(b);
340
+ if (y && y.length > 0) {
341
+ const i = /* @__PURE__ */ new Map();
342
+ y.forEach((v) => {
343
+ v.columns.forEach((S) => {
344
+ i.set(S, v.columns), r.add(S);
279
345
  });
280
346
  });
281
347
  const u = /* @__PURE__ */ new Set();
282
348
  for (const v of n) {
283
- const b = s.get(v.accessorKey);
284
- if (b) {
285
- const le = b.join(",");
286
- if (!u.has(le)) {
287
- u.add(le);
288
- const ce = b.filter(
289
- (J) => m.columnVisibility[J] !== !1
349
+ const S = i.get(v.accessorKey);
350
+ if (S) {
351
+ const ce = S.join(",");
352
+ if (!u.has(ce)) {
353
+ u.add(ce);
354
+ const ae = S.filter(
355
+ (U) => f.columnVisibility[U] !== !1
290
356
  );
291
- o.push({ type: "group", ids: ce });
357
+ o.push({ type: "group", ids: ae });
292
358
  }
293
359
  } else
294
360
  o.push({ type: "single", id: v.accessorKey });
295
361
  }
296
362
  } else
297
- n.forEach((s) => {
298
- o.push({ type: "single", id: s.accessorKey });
363
+ n.forEach((i) => {
364
+ o.push({
365
+ type: "single",
366
+ id: i.accessorKey
367
+ });
299
368
  });
300
- const c = (s) => s.type === "group" ? s.ids ?? [] : [s.id];
301
- return m.stickyStart === "first" && o.length > 0 && c(o[0]).forEach((s) => e.push(s)), m.stickyStart === "firstTwo" && o.length > 1 && (c(o[0]).forEach((s) => e.push(s)), c(o[1]).forEach((s) => e.push(s))), m.stickyEnd === "last" && o.length > 0 && c(o[o.length - 1]).forEach((u) => {
369
+ const c = (i) => i.type === "group" ? i.ids ?? [] : [i.id];
370
+ return f.stickyStart === "first" && o.length > 0 && c(
371
+ o[0]
372
+ ).forEach((i) => e.push(i)), f.stickyStart === "firstTwo" && o.length > 1 && (c(
373
+ o[0]
374
+ ).forEach((i) => e.push(i)), c(
375
+ o[1]
376
+ ).forEach((i) => e.push(i))), f.stickyEnd === "last" && o.length > 0 && c(
377
+ o[o.length - 1]
378
+ ).forEach((u) => {
302
379
  e.includes(u) || t.push(u);
303
380
  }), { left: e, right: t };
304
- }, [m.stickyStart, m.stickyEnd, m.columns, m.columnVisibility, p]), tt = A(() => {
305
- if (!g || g.mode !== "frontend" || !O.trim()) return f;
306
- const e = O.toLowerCase(), t = L.filter((n) => m.columnVisibility[n.accessorKey] !== !1).map((n) => n.accessorKey);
307
- return f.filter(
381
+ }, [
382
+ f.stickyStart,
383
+ f.stickyEnd,
384
+ f.columns,
385
+ f.columnVisibility,
386
+ y
387
+ ]), tt = O(() => {
388
+ if (!g || g.mode !== "frontend" || !T.trim())
389
+ return m;
390
+ const e = T.toLowerCase(), t = F.filter(
391
+ (n) => f.columnVisibility[n.accessorKey] !== !1
392
+ ).map((n) => n.accessorKey);
393
+ return m.filter(
308
394
  (n) => t.some((r) => {
309
395
  const o = n[r];
310
396
  return o != null && String(o).toLowerCase().includes(e);
311
397
  })
312
398
  );
313
- }, [g, O, f, L, m.columnVisibility]);
314
- M(() => {
315
- x.current && (x.current.scrollTop = 0);
316
- }, [f]);
399
+ }, [
400
+ g,
401
+ T,
402
+ m,
403
+ F,
404
+ f.columnVisibility
405
+ ]);
406
+ I(() => {
407
+ E.current && (E.current.scrollTop = 0);
408
+ }, [m]);
317
409
  const k = ct({
318
410
  data: tt,
319
- columns: m.columns,
411
+ columns: f.columns,
320
412
  defaultColumn: {
321
413
  minSize: 100
322
414
  },
323
415
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
324
- sortingFns: { numericSort: Wt },
416
+ sortingFns: { numericSort: Rt },
325
417
  getRowId: (e, t) => $e(e, t),
326
418
  state: {
327
- columnVisibility: m.columnVisibility,
419
+ columnVisibility: f.columnVisibility,
328
420
  columnPinning: et,
329
421
  columnFilters: Je,
330
422
  columnSizing: h
331
423
  },
332
- onColumnFiltersChange: te,
424
+ onColumnFiltersChange: ne,
333
425
  onColumnSizingChange: Ee,
334
426
  enableRowSelection: !1,
335
427
  enableColumnResizing: !0,
@@ -339,288 +431,467 @@ function tn({
339
431
  getSortedRowModel: ut(),
340
432
  getFilteredRowModel: dt()
341
433
  });
342
- Y.current = k;
343
- const { rows: P } = k.getRowModel(), B = k.getVisibleLeafColumns(), Me = B.length > 0 ? B[B.length - 1].id : null, V = (Z?.enabled ?? !1) && !Q?.enabled, _ = V ? 40 : 0, oe = Nt(B, _, h), q = U(/* @__PURE__ */ new Map()), nt = I(
344
- (e) => q.current.get(e) || kt,
434
+ ee.current = k;
435
+ const { rows: _ } = k.getRowModel(), W = k.getVisibleLeafColumns(), Me = W.length > 0 ? W[W.length - 1].id : null, H = (Q?.enabled ?? !1) && !X?.enabled, q = H ? 40 : 0, re = It(
436
+ W,
437
+ q,
438
+ h
439
+ ), J = Z(/* @__PURE__ */ new Map()), nt = L(
440
+ (e) => J.current.get(e) || Ct,
345
441
  []
346
- ), W = lt({
347
- count: P.length,
348
- getScrollElement: () => x.current,
442
+ ), z = lt({
443
+ count: _.length,
444
+ getScrollElement: () => E.current,
349
445
  estimateSize: nt,
350
446
  overscan: 5
351
447
  });
352
- M(() => {
353
- q.current.clear(), requestAnimationFrame(() => {
354
- W.measure();
448
+ I(() => {
449
+ J.current.clear(), requestAnimationFrame(() => {
450
+ z.measure();
355
451
  });
356
- }, [m.wrapText, W]);
357
- const ot = I(
452
+ }, [f.wrapText, z]);
453
+ const ot = L(
358
454
  (e, t) => {
359
455
  if (!t) return;
360
- const n = t.offsetHeight, r = q.current.get(e);
361
- n && r !== n && (q.current.set(e, n), requestAnimationFrame(() => {
362
- W.measure();
456
+ const n = t.offsetHeight, r = J.current.get(e);
457
+ n && r !== n && (J.current.set(e, n), requestAnimationFrame(() => {
458
+ z.measure();
363
459
  }));
364
460
  },
365
- [W]
366
- ), re = (e) => e === "asc" ? /* @__PURE__ */ l(It, {}) : e === "desc" ? /* @__PURE__ */ l(Lt, {}) : /* @__PURE__ */ l(Ft, {}), rt = G.type === "filter" ? /* @__PURE__ */ l(
367
- Ct,
461
+ [z]
462
+ ), se = (e) => e === "asc" ? /* @__PURE__ */ s(Ft, {}) : e === "desc" ? /* @__PURE__ */ s(Bt, {}) : /* @__PURE__ */ s(Wt, {}), rt = P.type === "filter" ? /* @__PURE__ */ s(
463
+ kt,
368
464
  {
369
465
  filters: Ue,
370
- draftColumnFilters: $,
466
+ draftColumnFilters: G,
371
467
  setDraftColumnFilters: xe,
372
468
  handleApplyFilters: () => {
373
- te($), E({ ...G, open: !1 }), d && de(`${R}-${d}`, { columnFilters: $ });
469
+ ne(G), N({ ...P, open: !1 }), d && ue(`${R}-${d}`, {
470
+ columnFilters: G
471
+ });
374
472
  },
375
- setModalOpen: E,
376
- virtualization: S,
377
- isFilterChanged: JSON.stringify($) !== JSON.stringify(K)
473
+ setModalOpen: N,
474
+ virtualization: p,
475
+ isFilterChanged: JSON.stringify(G) !== JSON.stringify(V)
378
476
  }
379
- ) : /* @__PURE__ */ l(
477
+ ) : /* @__PURE__ */ s(
380
478
  bt,
381
479
  {
382
- draftConfig: F,
383
- setDraftConfig: T,
480
+ draftConfig: B,
481
+ setDraftConfig: $,
384
482
  moveDraftColumn: Xe,
385
483
  handleApplyPref: Ze,
386
- setModalOpen: E,
484
+ setModalOpen: N,
387
485
  handleResetToDefault: Qe,
388
- isDefault: ae(F, D()),
389
- isConfigChanged: Mt(F, y),
390
- headerGroupDefs: p
486
+ isDefault: de(B, K()),
487
+ isConfigChanged: Lt(B, C),
488
+ headerGroupDefs: y
391
489
  }
392
- ), se = Te, ie = je && !X;
393
- return /* @__PURE__ */ C("div", { children: [
394
- (g || se || ie) && /* @__PURE__ */ C("div", { className: "ckds-filter-wrapper", style: { display: "flex", gap: "8px", margin: "16px 0px 12px 0px", justifyContent: "space-between", alignItems: "center" }, children: [
395
- /* @__PURE__ */ l("div", { className: "ckds-toolbar-search", children: g && /* @__PURE__ */ l(
396
- ft,
397
- {
398
- value: O,
399
- placeholder: g.placeholder ?? "Search",
400
- debounceMs: g.debounceMs ?? 0,
401
- onChange: be,
402
- onClear: () => be(""),
403
- disabled: ge
404
- }
405
- ) }),
406
- (se || ie) && /* @__PURE__ */ C("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
407
- se && /* @__PURE__ */ l(
408
- Be,
409
- {
410
- className: `${ae(y, D()) ? "" : "ckds-toolbar-btn-indicator"}`,
411
- onClick: () => {
412
- T({ ...y, columnVisibility: { ...y.columnVisibility }, columns: [...y.columns] }), E({ open: !0, type: "columnManager", activeOption: "" });
413
- },
414
- variant: "secondary",
415
- size: "medium",
416
- icons: { left: /* @__PURE__ */ l(pt, {}) },
417
- label: ye ? "Column Manager" : void 0,
418
- iconOnly: !ye
419
- }
420
- ),
421
- /* @__PURE__ */ l("div", { style: { borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)", margin: "5px 0" } }),
422
- ie && /* @__PURE__ */ l(
423
- Be,
424
- {
425
- className: `${K.length > 0 ? "ckds-toolbar-btn-indicator" : ""}`,
426
- onClick: () => {
427
- xe(K), E({ open: !0, type: "filter", activeOption: "" });
428
- },
429
- variant: "secondary",
430
- size: "medium",
431
- icons: { right: /* @__PURE__ */ l(yt, {}) },
432
- label: ke ? "Filters" : void 0,
433
- iconOnly: !ke
434
- }
435
- )
436
- ] })
437
- ] }),
438
- /* @__PURE__ */ C("div", { style: { position: "relative", overflow: "hidden", borderRadius: "var(--ckcl-border-radius-lg, 12px)" }, children: [
439
- ge && /* @__PURE__ */ l(ht, { overlay: !0 }),
440
- /* @__PURE__ */ l(
441
- "div",
442
- {
443
- className: "ckds-custom-table ckds-custom-scrollbar",
444
- ref: x,
445
- style: { maxHeight: H, width: k?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%" },
446
- children: P.length ? /* @__PURE__ */ C(
447
- "table",
490
+ ), ie = je, le = Te && !Y;
491
+ return /* @__PURE__ */ b("div", { children: [
492
+ (g || ie || le) && /* @__PURE__ */ b(
493
+ "div",
494
+ {
495
+ className: "ckds-filter-wrapper",
496
+ style: {
497
+ display: "flex",
498
+ gap: "8px",
499
+ margin: "16px 0px 12px 0px",
500
+ justifyContent: "space-between",
501
+ alignItems: "center"
502
+ },
503
+ children: [
504
+ /* @__PURE__ */ s("div", { className: "ckds-toolbar-search", children: g && /* @__PURE__ */ s(
505
+ ft,
448
506
  {
449
- className: "ckds-dragable-table",
450
- style: { width: "100%", minWidth: oe, display: "block" },
451
- children: [
452
- /* @__PURE__ */ C("thead", { className: "ckds-dragable-thead", style: { display: "block", position: "sticky", top: 0, zIndex: 10, minWidth: oe, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: [
453
- p && p.length > 0 && /* @__PURE__ */ l(
454
- vt,
455
- {
456
- headerGroups: p,
457
- table: k,
458
- hasSelection: V,
459
- getSortIcon: re,
460
- selectionCell: V ? /* @__PURE__ */ l(
461
- Re,
462
- {
463
- isAllSelected: z.isAllSelected,
464
- isIndeterminate: z.isIndeterminate,
465
- onToggleAll: ve
466
- }
467
- ) : void 0,
468
- lastColId: Me,
469
- columnSizing: h,
470
- pinnedStyle: ue,
471
- selectionOffset: _,
472
- handleResizeWithScrollFollow: Ne
473
- }
474
- ),
475
- !(p && p.length > 0) && k.getHeaderGroups().map((e) => /* @__PURE__ */ C("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
476
- V && /* @__PURE__ */ l(
477
- "th",
507
+ value: T,
508
+ placeholder: g.placeholder ?? "Search",
509
+ debounceMs: g.debounceMs ?? 0,
510
+ onChange: be,
511
+ onClear: () => be(""),
512
+ disabled: ge
513
+ }
514
+ ) }),
515
+ (ie || le) && /* @__PURE__ */ b("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
516
+ ie && /* @__PURE__ */ s(
517
+ Be,
518
+ {
519
+ className: `${de(C, K()) ? "" : "ckds-toolbar-btn-indicator"}`,
520
+ onClick: () => {
521
+ $({
522
+ ...C,
523
+ columnVisibility: { ...C.columnVisibility },
524
+ columns: [...C.columns]
525
+ }), N({
526
+ open: !0,
527
+ type: "columnManager",
528
+ activeOption: ""
529
+ });
530
+ },
531
+ variant: "secondary",
532
+ size: "medium",
533
+ icons: { left: /* @__PURE__ */ s(pt, {}) },
534
+ label: ye ? "Column Manager" : void 0,
535
+ iconOnly: !ye
536
+ }
537
+ ),
538
+ /* @__PURE__ */ s(
539
+ "div",
540
+ {
541
+ style: {
542
+ borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)",
543
+ margin: "5px 0"
544
+ }
545
+ }
546
+ ),
547
+ le && /* @__PURE__ */ s(
548
+ Be,
549
+ {
550
+ className: `${V.length > 0 ? "ckds-toolbar-btn-indicator" : ""}`,
551
+ onClick: () => {
552
+ xe(V), N({
553
+ open: !0,
554
+ type: "filter",
555
+ activeOption: ""
556
+ });
557
+ },
558
+ variant: "secondary",
559
+ size: "medium",
560
+ icons: { right: /* @__PURE__ */ s(yt, {}) },
561
+ label: Ce ? "Filters" : void 0,
562
+ iconOnly: !Ce
563
+ }
564
+ )
565
+ ] })
566
+ ]
567
+ }
568
+ ),
569
+ /* @__PURE__ */ b(
570
+ "div",
571
+ {
572
+ style: {
573
+ position: "relative",
574
+ overflow: "hidden",
575
+ borderRadius: "var(--ckcl-border-radius-lg, 12px)"
576
+ },
577
+ children: [
578
+ ge && /* @__PURE__ */ s(ht, { overlay: !0 }),
579
+ /* @__PURE__ */ s(
580
+ "div",
581
+ {
582
+ className: "ckds-custom-table ckds-custom-scrollbar",
583
+ ref: E,
584
+ style: {
585
+ maxHeight: w,
586
+ width: k?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%"
587
+ },
588
+ children: _.length ? /* @__PURE__ */ b(
589
+ "table",
590
+ {
591
+ className: "ckds-dragable-table",
592
+ style: {
593
+ width: "100%",
594
+ minWidth: re,
595
+ display: "block"
596
+ },
597
+ children: [
598
+ /* @__PURE__ */ b(
599
+ "thead",
478
600
  {
479
- className: "ckds-dragable-th",
480
- style: { width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", display: "flex", alignItems: "center", justifyContent: "center", position: "sticky", left: 0, zIndex: 2 },
481
- children: /* @__PURE__ */ l(
482
- Re,
601
+ className: "ckds-dragable-thead",
602
+ style: {
603
+ display: "block",
604
+ position: "sticky",
605
+ top: 0,
606
+ zIndex: 10,
607
+ minWidth: re,
608
+ backgroundColor: "var(--ckds-cell-bg-default, #ffffff)"
609
+ },
610
+ children: [
611
+ y && y.length > 0 && /* @__PURE__ */ s(
612
+ St,
613
+ {
614
+ headerGroups: y,
615
+ table: k,
616
+ hasSelection: H,
617
+ getSortIcon: se,
618
+ selectionCell: H ? /* @__PURE__ */ s(
619
+ ze,
620
+ {
621
+ isAllSelected: A.isAllSelected,
622
+ isIndeterminate: A.isIndeterminate,
623
+ onToggleAll: Se
624
+ }
625
+ ) : void 0,
626
+ lastColId: Me,
627
+ columnSizing: h,
628
+ pinnedStyle: me,
629
+ selectionOffset: q,
630
+ handleResizeWithScrollFollow: Ne
631
+ }
632
+ ),
633
+ !(y && y.length > 0) && k.getHeaderGroups().map((e) => /* @__PURE__ */ b(
634
+ "tr",
635
+ {
636
+ className: "ckds-dragable-tr",
637
+ style: { display: "flex", width: "100%" },
638
+ children: [
639
+ H && /* @__PURE__ */ s(
640
+ "th",
641
+ {
642
+ className: "ckds-dragable-th",
643
+ style: {
644
+ width: 40,
645
+ minWidth: 40,
646
+ maxWidth: 40,
647
+ flex: "0 0 40px",
648
+ display: "flex",
649
+ alignItems: "center",
650
+ justifyContent: "center",
651
+ position: "sticky",
652
+ left: 0,
653
+ zIndex: 2
654
+ },
655
+ children: /* @__PURE__ */ s(
656
+ ze,
657
+ {
658
+ isAllSelected: A.isAllSelected,
659
+ isIndeterminate: A.isIndeterminate,
660
+ onToggleAll: Se
661
+ }
662
+ )
663
+ }
664
+ ),
665
+ e.headers.map(
666
+ (t) => {
667
+ const n = t.column.getIsPinned(), r = t.column.id === Me;
668
+ return /* @__PURE__ */ b(
669
+ "th",
670
+ {
671
+ className: "ckds-dragable-th",
672
+ style: {
673
+ ...me(
674
+ t.column,
675
+ k,
676
+ q,
677
+ h
678
+ ),
679
+ ...Re(
680
+ t.column,
681
+ W,
682
+ h
683
+ ),
684
+ position: n ? "sticky" : "relative",
685
+ zIndex: n ? 2 : void 0,
686
+ display: "flex",
687
+ flexDirection: "column"
688
+ },
689
+ children: [
690
+ /* @__PURE__ */ b(
691
+ "div",
692
+ {
693
+ style: {
694
+ display: "flex",
695
+ alignItems: "center",
696
+ flex: "1 1 auto",
697
+ minWidth: 0,
698
+ justifyContent: t.column.getCanSort() ? "space-between" : t.column.columnDef.align === "right" ? "flex-end" : t.column.columnDef.align === "center" ? "center" : "flex-start",
699
+ cursor: t.column.getCanSort() ? "pointer" : "default"
700
+ },
701
+ onClick: t.column.getCanSort() ? t.column.getToggleSortingHandler() : void 0,
702
+ role: "button",
703
+ tabIndex: t.column.getCanSort() ? 0 : -1,
704
+ onKeyDown: (o) => {
705
+ t.column.getCanSort() && (o.key === "Enter" || o.key === " ") && t.column.getToggleSortingHandler()?.(
706
+ o
707
+ );
708
+ },
709
+ children: [
710
+ t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: se(
711
+ t.column.getIsSorted()
712
+ ) }),
713
+ at(
714
+ t.column.columnDef.header,
715
+ t.getContext()
716
+ ),
717
+ t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon", children: se(
718
+ t.column.getIsSorted()
719
+ ) })
720
+ ]
721
+ }
722
+ ),
723
+ !r && t.column.getCanResize() && /* @__PURE__ */ s(
724
+ "div",
725
+ {
726
+ onMouseDown: Ne(
727
+ t.getResizeHandler()
728
+ ),
729
+ onTouchStart: t.getResizeHandler(),
730
+ className: "ckds-col-resize-handle",
731
+ role: "separator",
732
+ "aria-orientation": "vertical",
733
+ children: /* @__PURE__ */ s("div", { className: "ckds-col-resize-line" })
734
+ }
735
+ ),
736
+ !r && !t.column.getCanResize() && /* @__PURE__ */ s(
737
+ "div",
738
+ {
739
+ className: "ckds-col-resize-handle",
740
+ style: { cursor: "default" },
741
+ children: /* @__PURE__ */ s("div", { className: "ckds-col-resize-line" })
742
+ }
743
+ )
744
+ ]
745
+ },
746
+ t.id
747
+ );
748
+ }
749
+ )
750
+ ]
751
+ },
752
+ e.id
753
+ ))
754
+ ]
755
+ }
756
+ ),
757
+ /* @__PURE__ */ s(
758
+ "tbody",
759
+ {
760
+ className: "ckds-dragable-tbody",
761
+ style: {
762
+ height: p && _.length ? `${z.getTotalSize()}px` : "auto",
763
+ position: "relative",
764
+ display: "block",
765
+ width: "100%",
766
+ minWidth: re
767
+ },
768
+ children: /* @__PURE__ */ s(
769
+ vt,
483
770
  {
484
- isAllSelected: z.isAllSelected,
485
- isIndeterminate: z.isIndeterminate,
486
- onToggleAll: ve
771
+ rows: _,
772
+ virtualization: p,
773
+ rowVirtualizer: z,
774
+ handleMeasure: ot,
775
+ columnSizing: h,
776
+ tableConfig: f,
777
+ table: k,
778
+ selectionState: A,
779
+ selectionConfig: Q,
780
+ onToggleRowSelection: Ge,
781
+ expandableConfig: X,
782
+ expandedIds: Pe,
783
+ onToggleExpand: _e
487
784
  }
488
785
  )
489
786
  }
490
787
  ),
491
- e.headers.map((t) => {
492
- const n = t.column.getIsPinned(), r = t.column.id === Me;
493
- return /* @__PURE__ */ C(
494
- "th",
495
- {
496
- className: "ckds-dragable-th",
497
- style: {
498
- ...ue(t.column, k, _, h),
499
- ...ze(t.column, B, h),
500
- position: n ? "sticky" : "relative",
501
- zIndex: n ? 2 : void 0,
502
- display: "flex",
503
- flexDirection: "column"
504
- },
505
- children: [
506
- /* @__PURE__ */ C(
507
- "div",
508
- {
509
- style: {
510
- display: "flex",
511
- alignItems: "center",
512
- flex: "1 1 auto",
513
- minWidth: 0,
514
- justifyContent: t.column.getCanSort() ? "space-between" : t.column.columnDef.align === "right" ? "flex-end" : t.column.columnDef.align === "center" ? "center" : "flex-start",
515
- cursor: t.column.getCanSort() ? "pointer" : "default"
516
- },
517
- onClick: t.column.getCanSort() ? t.column.getToggleSortingHandler() : void 0,
518
- role: "button",
519
- tabIndex: t.column.getCanSort() ? 0 : -1,
520
- onKeyDown: (o) => {
521
- t.column.getCanSort() && (o.key === "Enter" || o.key === " ") && t.column.getToggleSortingHandler()?.(o);
522
- },
523
- children: [
524
- t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: re(t.column.getIsSorted()) }),
525
- at(t.column.columnDef.header, t.getContext()),
526
- t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon", children: re(t.column.getIsSorted()) })
527
- ]
528
- }
529
- ),
530
- !r && t.column.getCanResize() && /* @__PURE__ */ l(
531
- "div",
532
- {
533
- onMouseDown: Ne(t.getResizeHandler()),
534
- onTouchStart: t.getResizeHandler(),
535
- className: "ckds-col-resize-handle",
536
- role: "separator",
537
- "aria-orientation": "vertical",
538
- children: /* @__PURE__ */ l("div", { className: "ckds-col-resize-line" })
539
- }
540
- )
541
- ]
542
- },
543
- t.id
544
- );
545
- })
546
- ] }, e.id))
547
- ] }),
548
- /* @__PURE__ */ l(
549
- "tbody",
550
- {
551
- className: "ckds-dragable-tbody",
552
- style: {
553
- height: S && P.length ? `${W.getTotalSize()}px` : "auto",
554
- position: "relative",
555
- display: "block",
556
- width: "100%",
557
- minWidth: oe
558
- },
559
- children: /* @__PURE__ */ l(
560
- St,
561
- {
562
- rows: P,
563
- virtualization: S,
564
- rowVirtualizer: W,
565
- handleMeasure: ot,
566
- columnSizing: h,
567
- tableConfig: m,
568
- table: k,
569
- selectionState: z,
570
- selectionConfig: Z,
571
- onToggleRowSelection: Ge,
572
- expandableConfig: Q,
573
- expandedIds: Pe,
574
- onToggleExpand: _e
575
- }
576
- )
577
- }
578
- ),
579
- fe && /* @__PURE__ */ l("tfoot", { className: "ckds-dragable-tfoot", style: { display: "block", position: "sticky", bottom: 0, zIndex: 10, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ C("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
580
- V && /* @__PURE__ */ l("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 } }),
581
- k.getVisibleLeafColumns().map((e, t) => {
582
- const n = e.getIsPinned(), r = fe[e.id], o = e.columnDef;
583
- let c = null;
584
- t === 0 && r === void 0 ? c = /* @__PURE__ */ l("span", { children: "Total" }) : r !== void 0 && (typeof r == "object" && r !== null ? c = /* @__PURE__ */ l("span", { children: r }) : o.prefix || o.suffix || o.decimalPlaces !== void 0 ? c = /* @__PURE__ */ l("span", { children: De(r, o) }) : c = /* @__PURE__ */ l("span", { children: r }));
585
- const s = o.align === "right" ? "right" : o.align === "center" ? "center" : "left";
586
- return /* @__PURE__ */ l(
587
- "td",
788
+ fe && /* @__PURE__ */ s(
789
+ "tfoot",
588
790
  {
589
- className: "ckds-dragable-td ckds-dragable-total-td",
791
+ className: "ckds-dragable-tfoot",
590
792
  style: {
591
- ...ue(e, k, _, h),
592
- display: "flex",
593
- alignItems: "center",
594
- ...ze(e, B, h),
595
- zIndex: n ? 2 : void 0
793
+ display: "block",
794
+ position: "sticky",
795
+ bottom: 0,
796
+ zIndex: 10,
797
+ backgroundColor: "var(--ckds-cell-bg-default, #ffffff)"
596
798
  },
597
- children: /* @__PURE__ */ l("div", { style: { width: "100%", textAlign: s, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: c })
598
- },
599
- e.id
600
- );
601
- })
602
- ] }) })
603
- ]
604
- }
605
- ) : /* @__PURE__ */ l(
606
- gt,
607
- {
608
- icon: He ?? /* @__PURE__ */ l(Bt, {}),
609
- message: {
610
- heading: me?.heading ?? "No data to display",
611
- content: me?.content ?? "There's no activity recorded for this period or filter selection."
612
- },
613
- classNames: { wrapperClass: "ckds-table-empty-state-wrapper" }
799
+ children: /* @__PURE__ */ b(
800
+ "tr",
801
+ {
802
+ className: "ckds-dragable-tr",
803
+ style: { display: "flex", width: "100%" },
804
+ children: [
805
+ H && /* @__PURE__ */ s(
806
+ "td",
807
+ {
808
+ className: "ckds-dragable-td ckds-dragable-total-td",
809
+ style: {
810
+ display: "flex",
811
+ alignItems: "center",
812
+ width: 40,
813
+ minWidth: 40,
814
+ maxWidth: 40,
815
+ flex: "0 0 40px",
816
+ position: "sticky",
817
+ left: 0,
818
+ zIndex: 2
819
+ }
820
+ }
821
+ ),
822
+ k.getVisibleLeafColumns().map((e, t) => {
823
+ const n = e.getIsPinned(), r = fe[e.id], o = e.columnDef;
824
+ let c = null;
825
+ t === 0 && r === void 0 ? c = /* @__PURE__ */ s("span", { children: "Total" }) : r !== void 0 && (typeof r == "object" && r !== null ? c = /* @__PURE__ */ s("span", { children: r }) : o.prefix || o.suffix || o.decimalPlaces !== void 0 ? c = /* @__PURE__ */ s("span", { children: De(
826
+ r,
827
+ o
828
+ ) }) : c = /* @__PURE__ */ s("span", { children: r }));
829
+ const i = o.align === "right" ? "right" : o.align === "center" ? "center" : "left";
830
+ return /* @__PURE__ */ s(
831
+ "td",
832
+ {
833
+ className: "ckds-dragable-td ckds-dragable-total-td",
834
+ style: {
835
+ ...me(
836
+ e,
837
+ k,
838
+ q,
839
+ h
840
+ ),
841
+ display: "flex",
842
+ alignItems: "center",
843
+ ...Re(
844
+ e,
845
+ W,
846
+ h
847
+ ),
848
+ zIndex: n ? 2 : void 0
849
+ },
850
+ children: /* @__PURE__ */ s(
851
+ "div",
852
+ {
853
+ style: {
854
+ width: "100%",
855
+ textAlign: i,
856
+ overflow: "hidden",
857
+ textOverflow: "ellipsis",
858
+ whiteSpace: "nowrap"
859
+ },
860
+ children: c
861
+ }
862
+ )
863
+ },
864
+ e.id
865
+ );
866
+ })
867
+ ]
868
+ }
869
+ )
870
+ }
871
+ )
872
+ ]
873
+ }
874
+ ) : /* @__PURE__ */ s(
875
+ gt,
876
+ {
877
+ icon: He ?? /* @__PURE__ */ s(zt, {}),
878
+ message: {
879
+ heading: D?.heading ?? "No data to display",
880
+ content: D?.content ?? "There's no activity recorded for this period or filter selection."
881
+ },
882
+ classNames: { wrapperClass: "ckds-table-empty-state-wrapper" }
883
+ }
884
+ )
614
885
  }
615
886
  )
616
- }
617
- )
618
- ] }),
619
- G.open && !X && !w && /* @__PURE__ */ l(
887
+ ]
888
+ }
889
+ ),
890
+ P.open && !Y && !x && /* @__PURE__ */ s(
620
891
  "div",
621
892
  {
622
893
  className: "ckds-table-filter-modal-wr",
623
- onClick: () => E({ ...G, open: !1 }),
894
+ onClick: () => N({ ...P, open: !1 }),
624
895
  role: "dialog",
625
896
  "aria-modal": "true",
626
897
  style: {
@@ -632,7 +903,7 @@ function tn({
632
903
  justifyContent: "center",
633
904
  backgroundColor: "rgba(0,0,0,0.3)"
634
905
  },
635
- children: /* @__PURE__ */ l(
906
+ children: /* @__PURE__ */ s(
636
907
  "div",
637
908
  {
638
909
  className: "ckds-table-modal-box",
@@ -645,6 +916,6 @@ function tn({
645
916
  ] });
646
917
  }
647
918
  export {
648
- tn as CustomTable,
649
- tn as default
919
+ ln as CustomTable,
920
+ ln as default
650
921
  };