@ck-ui/component-library 1.0.9 → 1.0.10
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-BmXLYRcE.js → DropdownFooter-CJnM_ECj.js} +1 -1
- package/dist/assets/{index-CRlPQn7l.css → index-EOsQwhza.css} +1 -1
- package/dist/assets/{styles-D2n8YjU_.css → styles-DrYTmjez.css} +1 -1
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +120 -119
- package/dist/components/FusionChart/_config/helpers.js +6 -6
- package/dist/components/FusionChart/_constant/constants.d.ts +3 -3
- package/dist/components/FusionChart/_constant/constants.js +1 -1
- package/dist/components/FusionChart/_helpers/doughnutHelper.js +13 -13
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +0 -1
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +163 -152
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +2 -2
- package/dist/components/SingleSelectDropdown/index.js +2 -2
- package/dist/components/Table/_helpers/FilterColumnToolbar.js +36 -36
- package/dist/components/Table/index.js +91 -91
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { D as y } from "../../../DropdownFooter-
|
|
2
|
+
import { D as y } from "../../../DropdownFooter-CJnM_ECj.js";
|
|
3
3
|
import "../../Avatar/index.js";
|
|
4
4
|
import "../../CKButton/index.js";
|
|
5
5
|
import "../../IconButton/index.js";
|
|
6
6
|
import "../../Stepper/index.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../../../index-BR6M9zUI.js";
|
|
9
|
-
import '../../../assets/theme-gJHYUL9y.css';import '../../../assets/styles-
|
|
9
|
+
import '../../../assets/theme-gJHYUL9y.css';import '../../../assets/styles-DrYTmjez.css';import '../../../assets/styles-CwZG1jzB.css';import '../../../assets/styles-0GdZsGyi.css';import '../../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
|
|
10
10
|
import "../../GroupedMultiSelect/_helpers/TagContent.js";
|
|
11
11
|
import "../../GroupedMultiSelect/_helpers/OptionRow.js";
|
|
12
12
|
import "../../GroupedSingleSelect/_helpers/OptionRow.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g, useMemo as V, useEffect as D } from "react";
|
|
3
|
-
import { s as e, D as A } from "../../DropdownFooter-
|
|
3
|
+
import { s as e, D as A } from "../../DropdownFooter-CJnM_ECj.js";
|
|
4
4
|
import { S as M } from "../../chevron-down-Cm9R64Fe.js";
|
|
5
5
|
import { S as q } from "../../info-icon-ooYw3va_.js";
|
|
6
6
|
import "../Avatar/index.js";
|
|
@@ -9,7 +9,7 @@ import "../IconButton/index.js";
|
|
|
9
9
|
import "../Stepper/index.js";
|
|
10
10
|
import { Tooltip as G } from "../Tooltip/index.js";
|
|
11
11
|
import "../../index-BR6M9zUI.js";
|
|
12
|
-
import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-
|
|
12
|
+
import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-DrYTmjez.css';import '../../assets/styles-CwZG1jzB.css';import '../../assets/styles-0GdZsGyi.css';import '../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
|
|
13
13
|
import { RadioButton as H } from "../RadioButton/index.js";
|
|
14
14
|
import { Search as J } from "../Search/index.js";
|
|
15
15
|
import "../GroupedMultiSelect/_helpers/TagContent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Popover as
|
|
1
|
+
import { jsxs as N, Fragment as O, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useState as r, useCallback as M } from "react";
|
|
3
|
+
import { Popover as y } from "../../Popover/index.js";
|
|
4
4
|
import P from "./TableFilterModal/index.js";
|
|
5
5
|
import V from "./ColumnManager/index.js";
|
|
6
6
|
import { isTableConfigChanged as W, isTableConfigDefault as E } from "../_utils/table.utils.js";
|
|
@@ -9,7 +9,7 @@ import { S as U, a as $ } from "../../../table-filter-C0zetUfo.js";
|
|
|
9
9
|
import { CKButton as F } from "../../CKButton/index.js";
|
|
10
10
|
function ie({
|
|
11
11
|
dynamicFilters: b,
|
|
12
|
-
columnFilters:
|
|
12
|
+
columnFilters: s,
|
|
13
13
|
onColumnFiltersChange: R,
|
|
14
14
|
tableConfig: l,
|
|
15
15
|
onTableConfigChange: T,
|
|
@@ -17,38 +17,38 @@ function ie({
|
|
|
17
17
|
columnManagerConfig: D = {},
|
|
18
18
|
virtualization: S = !1
|
|
19
19
|
}) {
|
|
20
|
-
const m =
|
|
20
|
+
const m = x(null), d = x(null), [k, i] = r(!1), [w, o] = r(!1), [c, p] = r(s), [t, a] = r({ ...l }), u = {
|
|
21
21
|
...K,
|
|
22
22
|
...D,
|
|
23
23
|
columns: l.columns
|
|
24
|
-
}, h =
|
|
24
|
+
}, h = M((n) => {
|
|
25
25
|
(typeof n == "function" ? n({ open: !1, type: "", activeOption: "" }) : n).open || (i(!1), o(!1));
|
|
26
|
-
}, []),
|
|
27
|
-
|
|
28
|
-
}, z = () => {
|
|
29
|
-
R(f), i(!1);
|
|
26
|
+
}, []), I = () => {
|
|
27
|
+
p(s), o(!1), i((n) => !n);
|
|
30
28
|
}, B = () => {
|
|
29
|
+
R(c), i(!1);
|
|
30
|
+
}, _ = () => {
|
|
31
31
|
a({
|
|
32
32
|
...l,
|
|
33
33
|
columnVisibility: { ...l.columnVisibility },
|
|
34
34
|
columns: [...l.columns]
|
|
35
35
|
}), i(!1), o((n) => !n);
|
|
36
|
-
},
|
|
36
|
+
}, j = M((n, C) => {
|
|
37
37
|
a((v) => {
|
|
38
|
-
const
|
|
39
|
-
return
|
|
38
|
+
const f = [...v.columns], [L] = f.splice(n, 1);
|
|
39
|
+
return f.splice(C, 0, L), { ...v, columns: f };
|
|
40
40
|
});
|
|
41
|
-
}, []),
|
|
42
|
-
T(
|
|
41
|
+
}, []), z = () => {
|
|
42
|
+
T(t), o(!1);
|
|
43
43
|
}, G = () => {
|
|
44
44
|
a(u);
|
|
45
|
-
}, J =
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
g && /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */ e("div", { ref:
|
|
45
|
+
}, J = s.length > 0, g = A === "list";
|
|
46
|
+
return /* @__PURE__ */ N(O, { children: [
|
|
47
|
+
g && /* @__PURE__ */ N(O, { children: [
|
|
48
|
+
/* @__PURE__ */ e("div", { ref: d, className: "inline-flex", children: /* @__PURE__ */ e(
|
|
49
49
|
F,
|
|
50
50
|
{
|
|
51
|
-
onClick:
|
|
51
|
+
onClick: _,
|
|
52
52
|
variant: "secondary",
|
|
53
53
|
size: "medium",
|
|
54
54
|
className: "min-w-0!",
|
|
@@ -61,18 +61,18 @@ function ie({
|
|
|
61
61
|
/* @__PURE__ */ e("div", { ref: m, className: "inline-flex", children: /* @__PURE__ */ e(
|
|
62
62
|
F,
|
|
63
63
|
{
|
|
64
|
-
onClick:
|
|
64
|
+
onClick: I,
|
|
65
65
|
variant: "secondary",
|
|
66
66
|
size: "medium",
|
|
67
|
-
className: `min-w-0!
|
|
67
|
+
className: `min-w-0! ${J ? "ckds-toolbar-btn-indicator" : ""}`,
|
|
68
68
|
"aria-label": "Open filters",
|
|
69
69
|
icons: { left: /* @__PURE__ */ e($, {}) }
|
|
70
70
|
}
|
|
71
71
|
) }),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
|
-
|
|
73
|
+
y,
|
|
74
74
|
{
|
|
75
|
-
open:
|
|
75
|
+
open: k,
|
|
76
76
|
onClose: () => i(!1),
|
|
77
77
|
anchorRef: m,
|
|
78
78
|
align: "right",
|
|
@@ -81,35 +81,35 @@ function ie({
|
|
|
81
81
|
P,
|
|
82
82
|
{
|
|
83
83
|
filters: b,
|
|
84
|
-
draftColumnFilters:
|
|
85
|
-
setDraftColumnFilters:
|
|
86
|
-
handleApplyFilters:
|
|
84
|
+
draftColumnFilters: c,
|
|
85
|
+
setDraftColumnFilters: p,
|
|
86
|
+
handleApplyFilters: B,
|
|
87
87
|
setModalOpen: h,
|
|
88
88
|
virtualization: S,
|
|
89
|
-
isFilterChanged: JSON.stringify(
|
|
89
|
+
isFilterChanged: JSON.stringify(c) !== JSON.stringify(s)
|
|
90
90
|
}
|
|
91
91
|
) })
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
g && /* @__PURE__ */ e(
|
|
95
|
-
|
|
95
|
+
y,
|
|
96
96
|
{
|
|
97
|
-
open:
|
|
97
|
+
open: w,
|
|
98
98
|
onClose: () => o(!1),
|
|
99
|
-
anchorRef:
|
|
99
|
+
anchorRef: d,
|
|
100
100
|
align: "right",
|
|
101
101
|
minWidth: "680px",
|
|
102
102
|
children: /* @__PURE__ */ e("div", { className: "min-h-[562px] relative", children: /* @__PURE__ */ e(
|
|
103
103
|
V,
|
|
104
104
|
{
|
|
105
|
-
draftConfig:
|
|
105
|
+
draftConfig: t,
|
|
106
106
|
setDraftConfig: a,
|
|
107
|
-
moveDraftColumn:
|
|
108
|
-
handleApplyPref:
|
|
107
|
+
moveDraftColumn: j,
|
|
108
|
+
handleApplyPref: z,
|
|
109
109
|
setModalOpen: h,
|
|
110
110
|
handleResetToDefault: G,
|
|
111
|
-
isDefault: E(
|
|
112
|
-
isConfigChanged: W(
|
|
111
|
+
isDefault: E(t, u),
|
|
112
|
+
isConfigChanged: W(t, l)
|
|
113
113
|
}
|
|
114
114
|
) })
|
|
115
115
|
}
|