@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.
- package/dist/{DropdownFooter-CYkg2g5d.js → DropdownFooter-Dm6aLDx8.js} +1 -1
- package/dist/IconSlot-CPQsGPB-.js +33 -0
- package/dist/assets/IconSlot-D8WWEHKb.css +1 -0
- package/dist/assets/index-BXwGxK7I.css +1 -0
- package/dist/assets/index-BZgvXFWW.css +1 -0
- package/dist/assets/index-UphWJR2V.css +1 -0
- package/dist/assets/styles-Bj-7zn37.css +1 -0
- package/dist/assets/styles-DLJzdWsF.css +1 -0
- package/dist/assets/{styles-Bqfs9eXV.css → styles-DngCqCGW.css} +1 -1
- package/dist/assets/styles-O-5pBCak.css +1 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/CardBox/index.js +18 -18
- package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/MultiSelect/_types/type.d.ts +1 -0
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +152 -151
- package/dist/components/RadioButton/index.js +34 -34
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +1 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +19 -17
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +2 -2
- package/dist/components/SingleSelectDropdown/index.js +2 -2
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +22 -19
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +301 -298
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +43 -42
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +213 -208
- package/dist/components/Typography/index.js +30 -30
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +14 -12
- package/dist/styles.module-DakCndIP.js +42 -0
- package/package.json +1 -1
- package/dist/IconSlot-CFKmSU2_.js +0 -33
- package/dist/assets/IconSlot-CLpdZgmb.css +0 -1
- package/dist/assets/index-BmQOtMhS.css +0 -1
- package/dist/assets/index-CaWXKQ7j.css +0 -1
- package/dist/assets/index-CiQd_iRw.css +0 -1
- package/dist/assets/styles-BTZL03H2.css +0 -1
- package/dist/assets/styles-CYxKrBqL.css +0 -1
- package/dist/assets/styles-D8sahtFb.css +0 -1
- package/dist/styles.module-Dojg5FTS.js +0 -41
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as C, useCallback as
|
|
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
|
|
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
|
|
14
|
-
import
|
|
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
|
|
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-
|
|
22
|
-
const ut = (c) => /* @__PURE__ */
|
|
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__ */
|
|
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
|
|
30
|
-
return Number.isNaN(
|
|
29
|
+
const u = Number.parseFloat(c);
|
|
30
|
+
return Number.isNaN(u) ? void 0 : u;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Kt({
|
|
34
34
|
config: c = {},
|
|
35
|
-
data:
|
|
35
|
+
data: u = [],
|
|
36
36
|
maxHeight: Ee = "600px",
|
|
37
|
-
virtualization:
|
|
37
|
+
virtualization: $ = !1,
|
|
38
38
|
persistTableConfig: d = "",
|
|
39
|
-
message:
|
|
39
|
+
message: ee,
|
|
40
40
|
icon: Me,
|
|
41
|
-
totalRow:
|
|
42
|
-
selection:
|
|
43
|
-
expandable:
|
|
44
|
-
externalColumnFilters:
|
|
45
|
-
externalTableConfig:
|
|
46
|
-
isLoading:
|
|
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:
|
|
50
|
+
headerGroups: I,
|
|
51
51
|
showFilters: Ie = !0,
|
|
52
52
|
showColumnManager: Ne = !0,
|
|
53
|
-
columnManagerConfig:
|
|
54
|
-
toolbarLabels:
|
|
55
|
-
search:
|
|
56
|
-
} = c ?? {},
|
|
57
|
-
Be(e),
|
|
58
|
-
}, [
|
|
59
|
-
selectionState:
|
|
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:
|
|
63
|
-
} = at(
|
|
62
|
+
toggleSelectAll: ce
|
|
63
|
+
} = at(u, P), {
|
|
64
64
|
expandedIds: We,
|
|
65
65
|
toggleExpand: ze
|
|
66
|
-
} = ct(
|
|
66
|
+
} = ct(_), D = W(
|
|
67
67
|
() => b.map((e) => {
|
|
68
68
|
let t = "includesString";
|
|
69
|
-
return e.filterable && (e.type === "string" ? t = (n,
|
|
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,
|
|
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
|
|
74
|
-
return
|
|
75
|
-
} : e.type === "number" && (t = (n,
|
|
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(
|
|
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
|
-
),
|
|
94
|
+
), R = S(
|
|
95
95
|
() => ({
|
|
96
96
|
...ke,
|
|
97
|
-
...
|
|
98
|
-
columns:
|
|
97
|
+
...oe,
|
|
98
|
+
columns: D
|
|
99
99
|
}),
|
|
100
|
-
[
|
|
101
|
-
),
|
|
102
|
-
const e =
|
|
100
|
+
[oe, D]
|
|
101
|
+
), de = () => {
|
|
102
|
+
const e = R();
|
|
103
103
|
if (d)
|
|
104
104
|
try {
|
|
105
|
-
const t = localStorage.getItem(`${
|
|
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
|
|
110
|
-
return e.columns.forEach((
|
|
111
|
-
|
|
112
|
-
}), { ...e, ...n.tableConfig, columns:
|
|
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
|
-
},
|
|
119
|
+
}, me = () => {
|
|
120
120
|
if (d)
|
|
121
121
|
try {
|
|
122
|
-
const e = localStorage.getItem(`${
|
|
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(`${
|
|
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
|
-
}, [
|
|
144
|
-
const e =
|
|
145
|
-
if (!
|
|
146
|
-
const t = new Map(
|
|
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
|
|
151
|
-
return
|
|
150
|
+
const o = t.get(n.accessorKey);
|
|
151
|
+
return o ? { ...n, filterFn: o } : n;
|
|
152
152
|
})
|
|
153
153
|
};
|
|
154
|
-
}, [
|
|
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(
|
|
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 =
|
|
165
|
-
e[t.header] = { type: "range", values: { min:
|
|
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,
|
|
170
|
-
|
|
169
|
+
}, [b, u, a.columnVisibility]);
|
|
170
|
+
T(() => {
|
|
171
171
|
if (d && !ve)
|
|
172
172
|
try {
|
|
173
|
-
const e =
|
|
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]),
|
|
179
|
-
d && Object.keys(
|
|
180
|
-
}, [
|
|
181
|
-
|
|
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) =>
|
|
183
|
+
(n) => h.columnVisibility[n.id] !== !1
|
|
184
184
|
);
|
|
185
185
|
return t.length !== e.length ? t : e;
|
|
186
186
|
});
|
|
187
|
-
}, [
|
|
188
|
-
const
|
|
189
|
-
|
|
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
|
|
192
|
-
}, Oe =
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
return
|
|
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 =
|
|
198
|
-
|
|
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 =
|
|
203
|
+
}, []), Te = W(() => {
|
|
203
204
|
const e = [], t = [], n = a.columns.filter(
|
|
204
|
-
(
|
|
205
|
+
(o) => a.columnVisibility[o.accessorKey] !== !1
|
|
205
206
|
);
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
}, [
|
|
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:
|
|
227
|
-
columnSizing:
|
|
231
|
+
columnFilters: Ke,
|
|
232
|
+
columnSizing: p
|
|
228
233
|
},
|
|
229
|
-
onColumnFiltersChange:
|
|
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:
|
|
239
|
-
(e) =>
|
|
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:
|
|
243
|
-
getScrollElement: () =>
|
|
244
|
-
estimateSize:
|
|
247
|
+
count: V.length,
|
|
248
|
+
getScrollElement: () => ae.current,
|
|
249
|
+
estimateSize: he,
|
|
245
250
|
overscan: 5
|
|
246
251
|
});
|
|
247
|
-
|
|
248
|
-
|
|
252
|
+
T(() => {
|
|
253
|
+
j.current.clear(), requestAnimationFrame(() => {
|
|
249
254
|
w.measure();
|
|
250
255
|
});
|
|
251
256
|
}, [a.wrapText, w]);
|
|
252
|
-
const Pe =
|
|
257
|
+
const Pe = S(
|
|
253
258
|
(e, t) => {
|
|
254
259
|
if (!t) return;
|
|
255
|
-
const n = t.offsetHeight,
|
|
256
|
-
n &&
|
|
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
|
-
),
|
|
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:
|
|
269
|
+
filters: Ae,
|
|
265
270
|
draftColumnFilters: A,
|
|
266
|
-
setDraftColumnFilters:
|
|
271
|
+
setDraftColumnFilters: fe,
|
|
267
272
|
handleApplyFilters: () => {
|
|
268
|
-
|
|
273
|
+
J(A), k({ ...H, open: !1 }), d && X(`${E}-${d}`, { columnFilters: A });
|
|
269
274
|
},
|
|
270
|
-
setModalOpen:
|
|
271
|
-
virtualization:
|
|
272
|
-
isFilterChanged: JSON.stringify(A) !== JSON.stringify(
|
|
275
|
+
setModalOpen: k,
|
|
276
|
+
virtualization: $,
|
|
277
|
+
isFilterChanged: JSON.stringify(A) !== JSON.stringify(F)
|
|
273
278
|
}
|
|
274
|
-
) : /* @__PURE__ */
|
|
275
|
-
|
|
279
|
+
) : /* @__PURE__ */ s(
|
|
280
|
+
st,
|
|
276
281
|
{
|
|
277
|
-
draftConfig:
|
|
278
|
-
setDraftConfig:
|
|
282
|
+
draftConfig: B,
|
|
283
|
+
setDraftConfig: K,
|
|
279
284
|
moveDraftColumn: Oe,
|
|
280
|
-
handleApplyPref:
|
|
281
|
-
setModalOpen:
|
|
285
|
+
handleApplyPref: He,
|
|
286
|
+
setModalOpen: k,
|
|
282
287
|
handleResetToDefault: Ve,
|
|
283
|
-
isDefault: be(
|
|
284
|
-
isConfigChanged: mt(
|
|
288
|
+
isDefault: be(B, R()),
|
|
289
|
+
isConfigChanged: mt(B, h)
|
|
285
290
|
}
|
|
286
|
-
),
|
|
287
|
-
return /* @__PURE__ */
|
|
288
|
-
(
|
|
289
|
-
/* @__PURE__ */
|
|
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:
|
|
293
|
-
placeholder:
|
|
294
|
-
debounceMs:
|
|
295
|
-
onChange:
|
|
296
|
-
onClear: () =>
|
|
297
|
-
disabled:
|
|
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
|
-
(
|
|
301
|
-
|
|
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
|
-
|
|
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__ */
|
|
310
|
-
label:
|
|
311
|
-
iconOnly: !
|
|
314
|
+
icons: { left: /* @__PURE__ */ s(tt, {}) },
|
|
315
|
+
label: se ? "Column Manager" : void 0,
|
|
316
|
+
iconOnly: !se
|
|
312
317
|
}
|
|
313
318
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
|
|
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 ${
|
|
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
|
-
|
|
325
|
+
fe(F), k({ open: !0, type: "filter", activeOption: "" });
|
|
321
326
|
},
|
|
322
327
|
variant: "secondary",
|
|
323
328
|
size: "medium",
|
|
324
|
-
icons: { right: /* @__PURE__ */
|
|
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__ */
|
|
332
|
-
|
|
333
|
-
/* @__PURE__ */
|
|
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:
|
|
338
|
-
style: { maxHeight: Ee, width:
|
|
339
|
-
children:
|
|
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:
|
|
348
|
+
style: { width: "100%", minWidth: q, display: "block" },
|
|
344
349
|
children: [
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
|
|
347
|
-
|
|
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:
|
|
350
|
-
table:
|
|
351
|
-
hasSelection:
|
|
352
|
-
getSortIcon:
|
|
353
|
-
selectionCell:
|
|
354
|
+
headerGroups: I,
|
|
355
|
+
table: y,
|
|
356
|
+
hasSelection: L,
|
|
357
|
+
getSortIcon: U,
|
|
358
|
+
selectionCell: L ? /* @__PURE__ */ s(
|
|
354
359
|
Ce,
|
|
355
360
|
{
|
|
356
|
-
isAllSelected:
|
|
357
|
-
isIndeterminate:
|
|
358
|
-
onToggleAll:
|
|
361
|
+
isAllSelected: N.isAllSelected,
|
|
362
|
+
isIndeterminate: N.isIndeterminate,
|
|
363
|
+
onToggleAll: ce
|
|
359
364
|
}
|
|
360
365
|
) : void 0,
|
|
361
|
-
lastColId:
|
|
362
|
-
columnSizing:
|
|
363
|
-
pinnedStyle:
|
|
364
|
-
selectionOffset:
|
|
366
|
+
lastColId: ge,
|
|
367
|
+
columnSizing: p,
|
|
368
|
+
pinnedStyle: Y,
|
|
369
|
+
selectionOffset: O
|
|
365
370
|
}
|
|
366
371
|
),
|
|
367
|
-
!(
|
|
368
|
-
|
|
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__ */
|
|
378
|
+
children: /* @__PURE__ */ s(
|
|
374
379
|
Ce,
|
|
375
380
|
{
|
|
376
|
-
isAllSelected:
|
|
377
|
-
isIndeterminate:
|
|
378
|
-
onToggleAll:
|
|
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(),
|
|
385
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
391
|
-
...xe(t.column, x,
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
!
|
|
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__ */
|
|
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__ */
|
|
445
|
+
/* @__PURE__ */ s(
|
|
441
446
|
"tbody",
|
|
442
447
|
{
|
|
443
448
|
className: "ckds-dragable-tbody",
|
|
444
449
|
style: {
|
|
445
|
-
height:
|
|
450
|
+
height: $ && V.length ? `${w.getTotalSize()}px` : "auto",
|
|
446
451
|
position: "relative",
|
|
447
452
|
display: "block",
|
|
448
453
|
width: "100%",
|
|
449
|
-
minWidth:
|
|
454
|
+
minWidth: q
|
|
450
455
|
},
|
|
451
|
-
children: /* @__PURE__ */
|
|
456
|
+
children: /* @__PURE__ */ s(
|
|
452
457
|
rt,
|
|
453
458
|
{
|
|
454
|
-
rows:
|
|
455
|
-
virtualization:
|
|
459
|
+
rows: V,
|
|
460
|
+
virtualization: $,
|
|
456
461
|
rowVirtualizer: w,
|
|
457
462
|
handleMeasure: Pe,
|
|
458
|
-
getEstimatedSize:
|
|
459
|
-
columnSizing:
|
|
463
|
+
getEstimatedSize: he,
|
|
464
|
+
columnSizing: p,
|
|
460
465
|
tableConfig: a,
|
|
461
|
-
table:
|
|
462
|
-
selectionState:
|
|
463
|
-
selectionConfig:
|
|
466
|
+
table: y,
|
|
467
|
+
selectionState: N,
|
|
468
|
+
selectionConfig: P,
|
|
464
469
|
onToggleRowSelection: Le,
|
|
465
|
-
expandableConfig:
|
|
470
|
+
expandableConfig: _,
|
|
466
471
|
expandedIds: We,
|
|
467
472
|
onToggleExpand: ze
|
|
468
473
|
}
|
|
469
474
|
)
|
|
470
475
|
}
|
|
471
476
|
),
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
const n = e.getIsPinned(),
|
|
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 &&
|
|
478
|
-
const
|
|
479
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
489
|
+
...Y(e, y, O),
|
|
485
490
|
display: "flex",
|
|
486
491
|
alignItems: "center",
|
|
487
|
-
...xe(e, x,
|
|
492
|
+
...xe(e, x, p),
|
|
488
493
|
zIndex: n ? 2 : void 0
|
|
489
494
|
},
|
|
490
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
503
|
+
) : /* @__PURE__ */ s(
|
|
499
504
|
Ye,
|
|
500
505
|
{
|
|
501
|
-
icon: Me ?? /* @__PURE__ */
|
|
506
|
+
icon: Me ?? /* @__PURE__ */ s(ht, {}),
|
|
502
507
|
message: {
|
|
503
|
-
heading:
|
|
504
|
-
content:
|
|
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 && !
|
|
517
|
+
H.open && !G && !M && /* @__PURE__ */ s(
|
|
513
518
|
"div",
|
|
514
519
|
{
|
|
515
520
|
className: "ckds-table-filter-modal-wr",
|
|
516
|
-
onClick: () =>
|
|
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__ */
|
|
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
|
-
|
|
542
|
-
|
|
546
|
+
Kt as CustomTable,
|
|
547
|
+
Kt as default
|
|
543
548
|
};
|