@ck-ui/component-library 1.0.7 → 1.0.9

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 (62) hide show
  1. package/dist/{DropdownFooter-B1d0HFxd.js → DropdownFooter-BmXLYRcE.js} +4 -3
  2. package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
  3. package/dist/assets/index-CRlPQn7l.css +1 -0
  4. package/dist/assets/index-xlbz19JS.css +1 -0
  5. package/dist/assets/{index-CtR-jzNi.css → index-zWDnehqu.css} +1 -1
  6. package/dist/assets/styles-0GdZsGyi.css +1 -0
  7. package/dist/assets/styles-C9rG0Alp.css +1 -0
  8. package/dist/assets/styles-CwZG1jzB.css +1 -0
  9. package/dist/assets/{styles-DAqMiQ0N.css → styles-D2n8YjU_.css} +1 -1
  10. package/dist/components/Breadcrumb/index.js +39 -39
  11. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  12. package/dist/components/FusionChart/_config/builders.js +147 -110
  13. package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
  14. package/dist/components/FusionChart/_config/events.js +52 -37
  15. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +3 -0
  16. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
  17. package/dist/components/FusionChart/index.d.ts.map +1 -1
  18. package/dist/components/FusionChart/index.js +524 -506
  19. package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
  20. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  21. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  22. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  23. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  24. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  25. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  26. package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
  27. package/dist/components/MultiSelect/index.js +1 -1
  28. package/dist/components/Search/index.js +60 -60
  29. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
  30. package/dist/components/SingleSelectDropdown/index.js +12 -11
  31. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
  32. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  33. package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
  34. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
  35. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
  36. package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
  37. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
  38. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
  39. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  40. package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
  41. package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
  42. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  43. package/dist/components/Table/_helpers/TableRows.js +242 -243
  44. package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
  45. package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
  46. package/dist/components/Table/_types/table.types.d.ts +1 -1
  47. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  48. package/dist/components/Table/_utils/table.utils.d.ts +1 -1
  49. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
  50. package/dist/components/Table/_utils/table.utils.js +84 -46
  51. package/dist/components/Table/index.d.ts.map +1 -1
  52. package/dist/components/Table/index.js +395 -324
  53. package/dist/components/TextField/index.js +165 -165
  54. package/dist/styles.module-DSbSTQeV.js +56 -0
  55. package/package.json +1 -1
  56. package/dist/assets/index-C8gvpfKZ.css +0 -1
  57. package/dist/assets/index-DewFIgpp.css +0 -1
  58. package/dist/assets/styles-BATmGmYA.css +0 -1
  59. package/dist/assets/styles-DLJzdWsF.css +0 -1
  60. package/dist/assets/styles-O-5pBCak.css +0 -1
  61. package/dist/search-B_cup-NN.js +0 -5
  62. package/dist/styles.module-BJEFZA32.js +0 -56
@@ -8,8 +8,9 @@ interface GroupedHeaderProps<TData> {
8
8
  selectionCell?: React.ReactNode;
9
9
  lastColId: string | null;
10
10
  columnSizing?: Record<string, number>;
11
- pinnedStyle: (column: Header<TData, unknown>["column"], table: Table<TData>, offset: number) => React.CSSProperties;
11
+ pinnedStyle: (column: Header<TData, unknown>["column"], table: Table<TData>, offset: number, columnSizing?: Record<string, number>) => React.CSSProperties;
12
12
  selectionOffset: number;
13
+ handleResizeWithScrollFollow?: (handler: ((e: unknown) => void) | undefined) => (e: React.MouseEvent | React.TouchEvent) => void;
13
14
  }
14
15
  /**
15
16
  * Renders the double header as a SINGLE <tr> where:
@@ -19,6 +20,6 @@ interface GroupedHeaderProps<TData> {
19
20
  *
20
21
  * This avoids the rowspan problem with display:flex rows.
21
22
  */
22
- export default function GroupedHeader<TData>({ headerGroups, table, hasSelection, getSortIcon, selectionCell, lastColId, columnSizing, pinnedStyle: getPinnedStyle, selectionOffset, }: GroupedHeaderProps<TData>): import("react/jsx-runtime").JSX.Element | null;
23
+ export default function GroupedHeader<TData>({ headerGroups, table, hasSelection, getSortIcon, selectionCell, lastColId, columnSizing, pinnedStyle: getPinnedStyle, selectionOffset, handleResizeWithScrollFollow, }: GroupedHeaderProps<TData>): import("react/jsx-runtime").JSX.Element | null;
23
24
  export {};
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/GroupedHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,EAAE,KAAK,MAAM,EAAoB,MAAM,uBAAuB,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,UAAU,kBAAkB,CAAC,KAAK;IAChC,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,SAAS,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACpE,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,KAAK,CAAC,aAAa,CAAC;IACpH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,EAC3C,YAAY,EACZ,KAAK,EACL,YAAoB,EACpB,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,WAAW,EAAE,cAAc,EAC3B,eAAe,GAChB,EAAE,kBAAkB,CAAC,KAAK,CAAC,kDAgQ3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/GroupedHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,EAAE,KAAK,MAAM,EAAoB,MAAM,uBAAuB,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,UAAU,kBAAkB,CAAC,KAAK;IAChC,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,SAAS,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACpE,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,KAAK,CAAC,aAAa,CAAC;IAC3J,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CAClI;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,EAC3C,YAAY,EACZ,KAAK,EACL,YAAoB,EACpB,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,WAAW,EAAE,cAAc,EAC3B,eAAe,EACf,4BAA4B,GAC7B,EAAE,kBAAkB,CAAC,KAAK,CAAC,kDA8P3B"}
@@ -1,47 +1,48 @@
1
- import { jsxs as r, jsx as o, Fragment as y } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
2
  import { f as S } from "../../../../index-Bcvmezbu.js";
3
- import { columnLayoutStyle as x, columnsLayoutStyle as T } from "../../_utils/table.utils.js";
3
+ import { columnLayoutStyle as w, columnsLayoutStyle as T } from "../../_utils/table.utils.js";
4
4
  function K({
5
- headerGroups: I,
5
+ headerGroups: D,
6
6
  table: h,
7
- hasSelection: N = !1,
8
- getSortIcon: u,
9
- selectionCell: v,
10
- lastColId: w,
11
- columnSizing: m,
12
- pinnedStyle: D,
13
- selectionOffset: H
7
+ hasSelection: G = !1,
8
+ getSortIcon: p,
9
+ selectionCell: z,
10
+ lastColId: R,
11
+ columnSizing: i,
12
+ pinnedStyle: C,
13
+ selectionOffset: y,
14
+ handleResizeWithScrollFollow: f
14
15
  }) {
15
- const t = h.getVisibleLeafColumns();
16
- if (t.length === 0) return null;
17
- const i = /* @__PURE__ */ new Map();
18
- t.forEach((l) => i.set(l.id, null)), I.forEach((l) => {
19
- l.columns.forEach((s) => {
20
- i.has(s) && i.set(s, l.label);
16
+ const o = h.getVisibleLeafColumns();
17
+ if (o.length === 0) return null;
18
+ const u = /* @__PURE__ */ new Map();
19
+ o.forEach((t) => u.set(t.id, null)), D.forEach((t) => {
20
+ t.columns.forEach((s) => {
21
+ u.has(s) && u.set(s, t.label);
21
22
  });
22
23
  });
23
- const R = h.getHeaderGroups()[0], p = /* @__PURE__ */ new Map();
24
- R?.headers.forEach((l) => p.set(l.column.id, l));
25
- const z = t[t.length - 1]?.id, f = [];
26
- let d = 0;
27
- for (; d < t.length; ) {
28
- const l = t[d], s = i.get(l.id);
24
+ const E = h.getHeaderGroups()[0], g = /* @__PURE__ */ new Map();
25
+ E?.headers.forEach((t) => g.set(t.column.id, t));
26
+ const L = o[o.length - 1]?.id, b = [];
27
+ let r = 0;
28
+ for (; r < o.length; ) {
29
+ const t = o[r], s = u.get(t.id);
29
30
  if (s === null)
30
- f.push({ type: "ungrouped", colIds: [l.id] }), d++;
31
+ b.push({ type: "ungrouped", colIds: [t.id] }), r++;
31
32
  else {
32
- const g = [];
33
- for (; d < t.length && i.get(t[d].id) === s; )
34
- g.push(t[d].id), d++;
35
- f.push({ type: "group", colIds: g, label: s });
33
+ const m = [];
34
+ for (; r < o.length && u.get(o[r].id) === s; )
35
+ m.push(o[r].id), r++;
36
+ b.push({ type: "group", colIds: m, label: s });
36
37
  }
37
38
  }
38
- return /* @__PURE__ */ r(
39
+ return /* @__PURE__ */ d(
39
40
  "tr",
40
41
  {
41
42
  className: "ckds-dragable-tr ckds-dragable-tr-double",
42
43
  style: { display: "flex", width: "100%", minWidth: "inherit" },
43
44
  children: [
44
- N && /* @__PURE__ */ o(
45
+ G && /* @__PURE__ */ l(
45
46
  "th",
46
47
  {
47
48
  className: "ckds-dragable-th ckds-dragable-th-double-ungrouped",
@@ -54,135 +55,135 @@ function K({
54
55
  left: 0,
55
56
  zIndex: 2
56
57
  },
57
- children: v
58
+ children: z
58
59
  }
59
60
  ),
60
- f.map((l, s) => {
61
- const g = l.colIds.map((e) => t.find((c) => c.id === e)).filter((e) => !!e), L = l.colIds.includes(z);
62
- if (l.type === "ungrouped") {
63
- const e = p.get(l.colIds[0]), c = e?.column.getIsPinned(), n = e?.column.id === w;
64
- return /* @__PURE__ */ r(y, { children: [
65
- n && c === "right" && /* @__PURE__ */ o("th", { "aria-hidden": "true", className: "ckds-dragable-th ckds-dragable-th-double-ungrouped ckds-dragable-th-filler", style: { flex: "1 1 auto", minWidth: 0, padding: 0, border: "none", boxShadow: "none" } }, `dh-cell-${s}-filler`),
66
- /* @__PURE__ */ r(
67
- "th",
68
- {
69
- className: "ckds-dragable-th ckds-dragable-th-double-ungrouped",
70
- style: {
71
- ...e ? D(e.column, h, H) : {},
72
- ...e ? x(e.column, t, m) : {},
73
- position: c ? "sticky" : "relative",
74
- zIndex: c ? 2 : void 0
75
- },
76
- children: [
77
- e && /* @__PURE__ */ r(
78
- "div",
79
- {
80
- style: {
81
- display: "flex",
82
- alignItems: "center",
83
- flex: "1 1 auto",
84
- minWidth: 0,
85
- justifyContent: e.column.getCanSort() ? "space-between" : e.column.columnDef.align === "right" ? "flex-end" : e.column.columnDef.align === "center" ? "center" : "flex-start",
86
- cursor: e.column.getCanSort() ? "pointer" : "default"
87
- },
88
- onClick: e.column.getCanSort() ? e.column.getToggleSortingHandler() : void 0,
89
- role: "button",
90
- tabIndex: e.column.getCanSort() ? 0 : -1,
91
- onKeyDown: (a) => {
92
- e.column.getCanSort() && (a.key === "Enter" || a.key === " ") && e.column.getToggleSortingHandler()?.(a);
93
- },
94
- children: [
95
- e.column.columnDef.align === "right" && e.column.getCanSort() && /* @__PURE__ */ o("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: u(e.column.getIsSorted()) }),
96
- S(e.column.columnDef.header, e.getContext()),
97
- e.column.columnDef.align !== "right" && e.column.getCanSort() && /* @__PURE__ */ o("span", { className: "ckds-sort-icon", children: u(e.column.getIsSorted()) })
98
- ]
99
- }
100
- ),
101
- e && !n && e.column.getCanResize() && /* @__PURE__ */ o(
102
- "div",
103
- {
104
- onMouseDown: e.getResizeHandler(),
105
- onTouchStart: e.getResizeHandler(),
106
- className: "ckds-col-resize-handle",
107
- role: "separator",
108
- "aria-orientation": "vertical",
109
- children: /* @__PURE__ */ o("div", { className: "ckds-col-resize-line" })
110
- }
111
- )
112
- ]
113
- },
114
- `dh-cell-${s}`
115
- )
116
- ] });
117
- }
118
- const G = l.colIds[l.colIds.length - 1], E = t.find((e) => e.id === G), M = L && E?.getIsPinned() === "right";
119
- return /* @__PURE__ */ r(y, { children: [
120
- M && /* @__PURE__ */ o("th", { "aria-hidden": "true", className: "ckds-dragable-th ckds-dragable-th-double-group ckds-dragable-th-filler", style: { flex: "1 1 auto", minWidth: 0, padding: 0, border: "none", boxShadow: "none" } }, `dh-cell-${s}-filler`),
121
- /* @__PURE__ */ r(
61
+ b.map((t, s) => {
62
+ const m = t.colIds.map((e) => o.find((n) => n.id === e)).filter((e) => !!e);
63
+ if (t.type === "ungrouped") {
64
+ const e = g.get(t.colIds[0]), n = e?.column.getIsPinned(), c = e?.column.id === R;
65
+ return /* @__PURE__ */ d(
122
66
  "th",
123
67
  {
124
- className: "ckds-dragable-th ckds-dragable-th-double-group",
68
+ className: "ckds-dragable-th ckds-dragable-th-double-ungrouped",
125
69
  style: {
126
- ...T(g, t, m)
70
+ ...e ? C(e.column, h, y, i) : {},
71
+ ...e ? w(e.column, o, i) : {},
72
+ position: n ? "sticky" : "relative",
73
+ zIndex: n ? 2 : void 0,
74
+ ...n ? { backgroundColor: "var(--ckcl-black-50, #F9F9F9)" } : {}
127
75
  },
128
76
  children: [
129
- /* @__PURE__ */ o("div", { className: "ckds-dragable-th-double-group-label", children: /* @__PURE__ */ o("span", { className: "ckds-group-label-text", children: l.label }) }),
130
- /* @__PURE__ */ o("div", { className: "ckds-dragable-th-double-group-subheaders", children: l.colIds.map((e, c) => {
131
- const n = p.get(e), C = c === l.colIds.length - 1, a = n?.column.columnDef?.align, b = n?.column.getCanSort() ?? !1, P = b ? "space-between" : a === "right" ? "flex-end" : a === "center" ? "center" : "flex-start";
132
- return /* @__PURE__ */ r(
133
- "div",
134
- {
135
- className: "ckds-dragable-th-double-subheader",
136
- style: {
137
- ...n ? x(n.column, t, m) : {},
138
- position: "relative"
139
- },
140
- children: [
141
- n && /* @__PURE__ */ r(
142
- "div",
143
- {
144
- style: {
145
- display: "flex",
146
- alignItems: "center",
147
- justifyContent: P,
148
- width: "100%",
149
- height: "100%",
150
- cursor: n.column.getCanSort() ? "pointer" : "default"
151
- },
152
- onClick: n.column.getCanSort() ? n.column.getToggleSortingHandler() : void 0,
153
- role: "button",
154
- tabIndex: n.column.getCanSort() ? 0 : -1,
155
- onKeyDown: (k) => {
156
- n.column.getCanSort() && (k.key === "Enter" || k.key === " ") && n.column.getToggleSortingHandler()?.(k);
157
- },
158
- children: [
159
- a === "right" && b && /* @__PURE__ */ o("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: u(n.column.getIsSorted()) }),
160
- S(n.column.columnDef.header, n.getContext()),
161
- a !== "right" && b && /* @__PURE__ */ o("span", { className: "ckds-sort-icon", children: u(n.column.getIsSorted()) })
162
- ]
163
- }
164
- ),
165
- n && !C && n.column.getCanResize() && /* @__PURE__ */ o(
166
- "div",
167
- {
168
- onMouseDown: n.getResizeHandler(),
169
- onTouchStart: n.getResizeHandler(),
170
- className: "ckds-col-resize-handle",
171
- role: "separator",
172
- "aria-orientation": "vertical",
173
- children: /* @__PURE__ */ o("div", { className: "ckds-col-resize-line" })
174
- }
175
- )
176
- ]
77
+ e && /* @__PURE__ */ d(
78
+ "div",
79
+ {
80
+ style: {
81
+ display: "flex",
82
+ alignItems: "center",
83
+ flex: "1 1 auto",
84
+ minWidth: 0,
85
+ justifyContent: e.column.getCanSort() ? "space-between" : e.column.columnDef.align === "right" ? "flex-end" : e.column.columnDef.align === "center" ? "center" : "flex-start",
86
+ cursor: e.column.getCanSort() ? "pointer" : "default"
177
87
  },
178
- `dh-sub-${e}`
179
- );
180
- }) })
88
+ onClick: e.column.getCanSort() ? e.column.getToggleSortingHandler() : void 0,
89
+ role: "button",
90
+ tabIndex: e.column.getCanSort() ? 0 : -1,
91
+ onKeyDown: (a) => {
92
+ e.column.getCanSort() && (a.key === "Enter" || a.key === " ") && e.column.getToggleSortingHandler()?.(a);
93
+ },
94
+ children: [
95
+ e.column.columnDef.align === "right" && e.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: p(e.column.getIsSorted()) }),
96
+ S(e.column.columnDef.header, e.getContext()),
97
+ e.column.columnDef.align !== "right" && e.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon", children: p(e.column.getIsSorted()) })
98
+ ]
99
+ }
100
+ ),
101
+ e && !c && e.column.getCanResize() && /* @__PURE__ */ l(
102
+ "div",
103
+ {
104
+ onMouseDown: f ? f(e.getResizeHandler()) : e.getResizeHandler(),
105
+ onTouchStart: e.getResizeHandler(),
106
+ className: "ckds-col-resize-handle",
107
+ role: "separator",
108
+ "aria-orientation": "vertical",
109
+ children: /* @__PURE__ */ l("div", { className: "ckds-col-resize-line" })
110
+ }
111
+ )
181
112
  ]
182
113
  },
183
114
  `dh-cell-${s}`
184
- )
185
- ] });
115
+ );
116
+ }
117
+ const x = g.get(t.colIds[0]), v = g.get(t.colIds[t.colIds.length - 1]), I = x?.column.getIsPinned() === "left", M = v?.column.getIsPinned() === "right", H = I || M, N = I ? x : v;
118
+ return /* @__PURE__ */ d(
119
+ "th",
120
+ {
121
+ className: "ckds-dragable-th ckds-dragable-th-double-group",
122
+ style: {
123
+ ...T(m, o, i),
124
+ ...H && N ? C(N.column, h, y, i) : {},
125
+ ...H ? { position: "sticky", zIndex: 3, backgroundColor: "var(--ckcl-black-50, #F9F9F9)" } : {}
126
+ },
127
+ children: [
128
+ /* @__PURE__ */ l("div", { className: "ckds-dragable-th-double-group-label", children: /* @__PURE__ */ l("span", { className: "ckds-group-label-text", children: t.label }) }),
129
+ /* @__PURE__ */ l("div", { className: "ckds-dragable-th-double-group-subheaders", children: t.colIds.map((e) => {
130
+ const n = g.get(e), c = n?.column.columnDef?.align, a = n?.column.getCanSort() ?? !1, P = a ? "space-between" : c === "right" ? "flex-end" : c === "center" ? "center" : "flex-start";
131
+ return /* @__PURE__ */ d(
132
+ "div",
133
+ {
134
+ className: "ckds-dragable-th-double-subheader",
135
+ style: {
136
+ // Sub-headers are flex children of the group container, not the row.
137
+ // Compute layout relative to only sibling columns within this group
138
+ // so they divide the group's width correctly.
139
+ ...n ? w(n.column, m, i) : {},
140
+ position: "relative"
141
+ },
142
+ children: [
143
+ n && /* @__PURE__ */ d(
144
+ "div",
145
+ {
146
+ style: {
147
+ display: "flex",
148
+ alignItems: "center",
149
+ justifyContent: P,
150
+ width: "100%",
151
+ height: "100%",
152
+ cursor: n.column.getCanSort() ? "pointer" : "default"
153
+ },
154
+ onClick: n.column.getCanSort() ? n.column.getToggleSortingHandler() : void 0,
155
+ role: "button",
156
+ tabIndex: n.column.getCanSort() ? 0 : -1,
157
+ onKeyDown: (k) => {
158
+ n.column.getCanSort() && (k.key === "Enter" || k.key === " ") && n.column.getToggleSortingHandler()?.(k);
159
+ },
160
+ children: [
161
+ c === "right" && a && /* @__PURE__ */ l("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: p(n.column.getIsSorted()) }),
162
+ S(n.column.columnDef.header, n.getContext()),
163
+ c !== "right" && a && /* @__PURE__ */ l("span", { className: "ckds-sort-icon", children: p(n.column.getIsSorted()) })
164
+ ]
165
+ }
166
+ ),
167
+ n && e !== L && n.column.getCanResize() && /* @__PURE__ */ l(
168
+ "div",
169
+ {
170
+ onMouseDown: f ? f(n.getResizeHandler()) : n.getResizeHandler(),
171
+ onTouchStart: n.getResizeHandler(),
172
+ className: "ckds-col-resize-handle",
173
+ role: "separator",
174
+ "aria-orientation": "vertical",
175
+ children: /* @__PURE__ */ l("div", { className: "ckds-col-resize-line" })
176
+ }
177
+ )
178
+ ]
179
+ },
180
+ `dh-sub-${e}`
181
+ );
182
+ }) })
183
+ ]
184
+ },
185
+ `dh-cell-${s}`
186
+ );
186
187
  })
187
188
  ]
188
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/TableFilterModal/OptionList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAKhE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,cAAc,EACd,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,cAAc,GACf,EAAE,eAAe,2CA2HjB"}
1
+ {"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/TableFilterModal/OptionList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAKhE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,cAAc,EACd,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,cAAc,GACf,EAAE,eAAe,2CAoIjB"}
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { O as d } from "../../../../OptionList-BM4AleXV.js";
3
+ import { O as d } from "../../../../OptionList-DU0iA8Y4.js";
4
4
  import "../../../CKCheckbox/index.js";
5
5
  import "./OptionListItems.js";
6
- import "../../../../search-B_cup-NN.js";
7
6
  import "../../../Typography/index.js";
8
- import "../../../Switch/index.js";
7
+ import "../../../Toggle/index.js";
8
+ import "../../../Search/index.js";
9
9
  export {
10
10
  d as default
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/TableFilterModal/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,qBAAqB,EAItB,MAAM,0BAA0B,CAAC;AAClC,OAAO,eAAe,CAAC;AAEvB,iBAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,cAAqB,EACrB,eAAe,GAChB,EAAE,qBAAqB,2CAgIvB;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/TableFilterModal/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EAItB,MAAM,0BAA0B,CAAC;AAClC,OAAO,eAAe,CAAC;AAEvB,iBAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,cAAqB,EACrB,eAAe,GAChB,EAAE,qBAAqB,2CA+HvB;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,85 +1,85 @@
1
- import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import { useState as k, useEffect as F } from "react";
3
- import { CKButton as S } from "../../../CKButton/index.js";
4
- import { Button as b } from "../../../Button/index.js";
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
+ import { useState as b, useEffect as O } from "react";
3
+ import { CKButton as m } from "../../../CKButton/index.js";
5
4
  import { Typography as y } from "../../../Typography/index.js";
6
- import { S as V } from "../../../../reset-icon-YxMt3Ozp.js";
7
- import C from "./RangeSelector.js";
8
- import { O as E } from "../../../../OptionList-BM4AleXV.js";
9
- import '../../../../assets/styles-O-5pBCak.css';/* empty css */
10
- function G({
11
- filters: n,
12
- draftColumnFilters: s,
5
+ import { S } from "../../../../reset-icon-YxMt3Ozp.js";
6
+ import V from "./RangeSelector.js";
7
+ import { O as C } from "../../../../OptionList-DU0iA8Y4.js";
8
+ import '../../../../assets/styles-0GdZsGyi.css';/* empty css */
9
+ function $({
10
+ filters: c,
11
+ draftColumnFilters: n,
13
12
  setDraftColumnFilters: d,
14
13
  handleApplyFilters: v,
15
14
  setModalOpen: f,
16
15
  virtualization: g = !0,
17
16
  isFilterChanged: x
18
17
  }) {
19
- const [t, m] = k(null), [p, h] = k("");
20
- F(() => {
21
- if (!n || Object.keys(n).length === 0) return;
22
- const e = Object.keys(n)[0], r = n[e];
23
- m({ key: e, ...r });
24
- }, [n]);
25
- const u = (e) => {
26
- const r = n[e];
27
- m({ key: e, ...r });
28
- }, o = t ? s.find((e) => e.id === t.accessorKey)?.value : null, N = t?.type === "checkbox" ? o?.values ?? o : void 0, j = t?.type === "checkbox" ? o?.exclude ?? !1 : !1, w = t?.type === "range" ? o : void 0;
18
+ const [t, p] = b(null), [u, k] = b("");
19
+ O(() => {
20
+ if (!c || Object.keys(c).length === 0) return;
21
+ const e = Object.keys(c)[0], r = c[e];
22
+ p({ key: e, ...r });
23
+ }, [c]);
24
+ const h = (e) => {
25
+ const r = c[e];
26
+ p({ key: e, ...r });
27
+ }, l = t ? n.find((e) => e.id === t.accessorKey)?.value : null, N = t?.type === "checkbox" ? l?.values ?? l : void 0, j = t?.type === "checkbox" ? l?.exclude ?? !1 : !1, w = t?.type === "range" ? l : void 0;
29
28
  return /* @__PURE__ */ i("div", { className: "ckds-filter-modal-wrapper", children: [
30
29
  /* @__PURE__ */ i("div", { className: "ckds-heading-container", children: [
31
- /* @__PURE__ */ c(y, { variant: "body-lg", weight: "semibold", children: "Table Filters" }),
32
- /* @__PURE__ */ c(
33
- S,
30
+ /* @__PURE__ */ a(y, { variant: "body-lg", weight: "semibold", children: "Filters" }),
31
+ /* @__PURE__ */ a(
32
+ m,
34
33
  {
34
+ size: "medium",
35
35
  onClick: () => {
36
- d([]), h("");
36
+ d([]), k("");
37
37
  },
38
38
  variant: "hyperlink",
39
- disabled: s.length === 0,
40
- icons: { left: /* @__PURE__ */ c(V, {}) },
39
+ disabled: n.length === 0,
40
+ icons: { left: /* @__PURE__ */ a(S, {}) },
41
41
  label: "Reset Filter",
42
- className: s.length > 0 ? "ckds-reset-btn-active" : ""
42
+ className: n.length > 0 ? "ckds-reset-btn-active" : ""
43
43
  }
44
44
  )
45
45
  ] }),
46
46
  /* @__PURE__ */ i("div", { className: "ckds-main-container", children: [
47
- /* @__PURE__ */ c("div", { className: "ckds-tab-wrapper ckds-custom-scrollbar", children: n && Object.keys(n).map((e) => /* @__PURE__ */ c(
47
+ /* @__PURE__ */ a("div", { className: "ckds-tab-wrapper ckds-custom-scrollbar", children: c && Object.keys(c).map((e) => /* @__PURE__ */ a(
48
48
  "div",
49
49
  {
50
50
  className: `ckds-filter-tab-item ${t?.key === e ? "ckds-filter-tab-active" : ""}`,
51
- onClick: () => u(e),
51
+ onClick: () => h(e),
52
52
  role: "button",
53
53
  tabIndex: 0,
54
54
  onKeyDown: (r) => {
55
- (r.key === "Enter" || r.key === " ") && u(e);
55
+ (r.key === "Enter" || r.key === " ") && h(e);
56
56
  },
57
57
  children: /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
58
- /* @__PURE__ */ c(y, { variant: "body-sm", className: "text-inherit", weight: t?.key === e ? "medium" : "regular", children: e }),
58
+ /* @__PURE__ */ a(y, { variant: "body-sm", className: "text-inherit", weight: t?.key === e ? "medium" : "regular", children: e }),
59
59
  (() => {
60
- const r = s.find((O) => O.id === n[e].accessorKey);
60
+ const r = n.find((F) => F.id === c[e].accessorKey);
61
61
  if (!r) return null;
62
- const a = r.value;
63
- let l = 0;
64
- return Array.isArray(a) ? l = a.length : a && typeof a == "object" && "values" in a ? l = a.values?.length ?? 0 : a && (l = 1), l > 0 ? /* @__PURE__ */ c("span", { className: "ckds-filter-tab-badge", children: l }) : null;
62
+ const s = r.value;
63
+ let o = !1;
64
+ return Array.isArray(s) ? o = s.length > 0 : s && typeof s == "object" && "values" in s ? o = (s.values?.length ?? 0) > 0 : s && (o = !0), o ? /* @__PURE__ */ a("span", { className: "ckds-filter-tab-badge" }) : null;
65
65
  })()
66
66
  ] })
67
67
  },
68
68
  e
69
69
  )) }),
70
70
  /* @__PURE__ */ i("div", { className: "ckds-filter-details-container", children: [
71
- t?.type === "range" && /* @__PURE__ */ c(
72
- C,
71
+ t?.type === "range" && /* @__PURE__ */ a(
72
+ V,
73
73
  {
74
74
  selectedFilter: t,
75
75
  currentVal: w,
76
76
  setDraftColumnFilters: d,
77
- error: p,
78
- setError: h
77
+ error: u,
78
+ setError: k
79
79
  }
80
80
  ),
81
- t?.type === "checkbox" && /* @__PURE__ */ c(
82
- E,
81
+ t?.type === "checkbox" && /* @__PURE__ */ a(
82
+ C,
83
83
  {
84
84
  selectedFilter: t,
85
85
  currentVal: N,
@@ -91,26 +91,28 @@ function G({
91
91
  ] })
92
92
  ] }),
93
93
  /* @__PURE__ */ i("div", { className: "ckds-filter-modal-footer", children: [
94
- /* @__PURE__ */ c(
95
- b,
94
+ /* @__PURE__ */ a(
95
+ m,
96
96
  {
97
97
  onClick: () => f({ open: !1, type: "filter", activeOption: "" }),
98
98
  variant: "secondary",
99
- children: "Cancel"
99
+ label: "Cancel",
100
+ size: "medium"
100
101
  }
101
102
  ),
102
- /* @__PURE__ */ c(
103
- b,
103
+ /* @__PURE__ */ a(
104
+ m,
104
105
  {
105
106
  onClick: v,
106
107
  variant: "primary",
107
- disabled: !x || !!p,
108
- children: "Apply"
108
+ disabled: !x || !!u,
109
+ label: "Apply",
110
+ size: "medium"
109
111
  }
110
112
  )
111
113
  ] })
112
114
  ] });
113
115
  }
114
116
  export {
115
- G as default
117
+ $ as default
116
118
  };
@@ -1,3 +1,3 @@
1
1
  import { TableRowsProps } from '../_types/table.types';
2
- export default function TableRows<TData>({ rows, virtualization, rowVirtualizer, handleMeasure, getEstimatedSize, columnSizing, tableConfig, table, selectionState, selectionConfig, onToggleRowSelection, expandableConfig, expandedIds, onToggleExpand, depth, }: TableRowsProps<TData>): import("react/jsx-runtime").JSX.Element;
2
+ export default function TableRows<TData>({ rows, virtualization, rowVirtualizer, handleMeasure, columnSizing, tableConfig, table, selectionState, selectionConfig, onToggleRowSelection, expandableConfig, expandedIds, onToggleExpand, depth, }: TableRowsProps<TData>): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=TableRows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableRows.d.ts","sourceRoot":"","sources":["../../../../lib/components/Table/_helpers/TableRows.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAiE,MAAM,uBAAuB,CAAC;AAgG3H,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,EACvC,IAAI,EACJ,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,KAAK,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,KAAS,GACV,EAAE,cAAc,CAAC,KAAK,CAAC,2CAoHvB"}
1
+ {"version":3,"file":"TableRows.d.ts","sourceRoot":"","sources":["../../../../lib/components/Table/_helpers/TableRows.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAiE,MAAM,uBAAuB,CAAC;AAgG3H,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,EACvC,IAAI,EACJ,cAAc,EACd,cAAc,EACd,aAAa,EACb,YAAY,EACZ,WAAW,EACX,KAAK,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,KAAS,GACV,EAAE,cAAc,CAAC,KAAK,CAAC,2CAoHvB"}