@ck-ui/component-library 1.0.8 → 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.
- package/dist/{DropdownFooter-B1d0HFxd.js → DropdownFooter-BmXLYRcE.js} +4 -3
- package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
- package/dist/assets/index-CRlPQn7l.css +1 -0
- package/dist/assets/index-xlbz19JS.css +1 -0
- package/dist/assets/{index-CtR-jzNi.css → index-zWDnehqu.css} +1 -1
- package/dist/assets/styles-0GdZsGyi.css +1 -0
- package/dist/assets/styles-CwZG1jzB.css +1 -0
- package/dist/assets/{styles-DAqMiQ0N.css → styles-D2n8YjU_.css} +1 -1
- package/dist/components/Breadcrumb/index.js +39 -39
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +147 -110
- package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/events.js +52 -37
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +3 -0
- 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 +524 -506
- package/dist/components/Search/index.js +60 -60
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
- package/dist/components/SingleSelectDropdown/index.js +12 -11
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
- package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +242 -243
- package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
- package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
- package/dist/components/Table/_types/table.types.d.ts +1 -1
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.js +84 -46
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +395 -324
- package/dist/components/TextField/index.js +165 -165
- package/package.json +1 -1
- package/dist/assets/index-C8gvpfKZ.css +0 -1
- package/dist/assets/index-DewFIgpp.css +0 -1
- package/dist/assets/styles-DLJzdWsF.css +0 -1
- package/dist/assets/styles-O-5pBCak.css +0 -1
- package/dist/search-B_cup-NN.js +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { S as
|
|
1
|
+
import { jsxs as R, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { useState as S, useRef as d, useEffect as l, useMemo as K } from "react";
|
|
4
4
|
import { S as V } from "../../cancel-BAgTEOGD.js";
|
|
5
5
|
import { SMALL as A, MEDIUM as P } from "../../constants.js";
|
|
6
|
-
import { mergeClasses as
|
|
7
|
-
import '../../assets/index-BoQKDmZt.css';const t = {
|
|
6
|
+
import { mergeClasses as v } from "../../utils/mergeClasses.js";
|
|
7
|
+
import '../../assets/index-BoQKDmZt.css';const U = (a) => /* @__PURE__ */ f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ f.createElement("path", { d: "M9.91699 9.9165L12.2503 12.2498", stroke: "#737373", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ f.createElement("path", { d: "M11.0833 6.41667C11.0833 3.83934 8.99401 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.99401 3.83934 11.0833 6.41667 11.0833C8.99401 11.0833 11.0833 8.99401 11.0833 6.41667Z", stroke: "#737373", strokeLinecap: "round", strokeLinejoin: "round" })), t = {
|
|
8
8
|
"ckds-search-wrapper": "_ckds-search-wrapper_mt85e_1",
|
|
9
9
|
"search-wrapper-small": "_search-wrapper-small_mt85e_35",
|
|
10
10
|
"search-wrapper-medium": "_search-wrapper-medium_mt85e_38",
|
|
@@ -14,88 +14,88 @@ import '../../assets/index-BoQKDmZt.css';const t = {
|
|
|
14
14
|
"search-input": "_search-input_mt85e_66",
|
|
15
15
|
"search-clear": "_search-clear_mt85e_85"
|
|
16
16
|
};
|
|
17
|
-
function
|
|
18
|
-
value:
|
|
19
|
-
placeholder:
|
|
20
|
-
onChange:
|
|
21
|
-
onClear:
|
|
22
|
-
onSearch:
|
|
23
|
-
disabled:
|
|
24
|
-
showClearBtn:
|
|
25
|
-
wrapperClassName:
|
|
26
|
-
inputClassName:
|
|
27
|
-
autoFocus:
|
|
28
|
-
maxLength:
|
|
29
|
-
id:
|
|
30
|
-
name:
|
|
31
|
-
size:
|
|
32
|
-
debounceMs:
|
|
17
|
+
function H({
|
|
18
|
+
value: a = "",
|
|
19
|
+
placeholder: x = "Search",
|
|
20
|
+
onChange: p,
|
|
21
|
+
onClear: y,
|
|
22
|
+
onSearch: D,
|
|
23
|
+
disabled: s = !1,
|
|
24
|
+
showClearBtn: L = !0,
|
|
25
|
+
wrapperClassName: E = "",
|
|
26
|
+
inputClassName: M = "",
|
|
27
|
+
autoFocus: w = !1,
|
|
28
|
+
maxLength: b,
|
|
29
|
+
id: T,
|
|
30
|
+
name: j,
|
|
31
|
+
size: o = "medium",
|
|
32
|
+
debounceMs: _ = 0
|
|
33
33
|
}) {
|
|
34
|
-
const [
|
|
34
|
+
const [g, k] = S(!1), [c, h] = S(a), u = d(null), r = d(null), m = d(!1);
|
|
35
35
|
l(() => {
|
|
36
|
-
|
|
37
|
-
}, [
|
|
38
|
-
|
|
39
|
-
}, [
|
|
40
|
-
|
|
41
|
-
}, [
|
|
42
|
-
const
|
|
43
|
-
|
|
36
|
+
h(a);
|
|
37
|
+
}, [a]), l(() => {
|
|
38
|
+
w && u.current?.focus();
|
|
39
|
+
}, [w]), l(() => {
|
|
40
|
+
s ? m.current = g : m.current && c && (u.current?.focus(), m.current = !1);
|
|
41
|
+
}, [s]);
|
|
42
|
+
const i = K(() => o === A ? "10" : o === P ? "14" : "18", [o]), I = (e) => {
|
|
43
|
+
_ > 0 ? (r.current && clearTimeout(r.current), r.current = setTimeout(() => p?.(e), _)) : p?.(e);
|
|
44
44
|
};
|
|
45
45
|
l(() => () => {
|
|
46
46
|
r.current && clearTimeout(r.current);
|
|
47
47
|
}, []);
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, j = (e) => {
|
|
52
|
-
e.preventDefault(), r.current && clearTimeout(r.current), m(""), i?.(""), C?.(), o.current?.focus();
|
|
48
|
+
const N = (e) => {
|
|
49
|
+
const C = e.target.value;
|
|
50
|
+
h(C), I(C);
|
|
53
51
|
}, B = (e) => {
|
|
54
|
-
e.
|
|
52
|
+
e.preventDefault(), r.current && clearTimeout(r.current), h(""), p?.(""), y?.(), u.current?.focus();
|
|
53
|
+
}, F = (e) => {
|
|
54
|
+
e.stopPropagation(), e.key === "Enter" && D?.(c);
|
|
55
55
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ R(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
59
|
+
className: v(
|
|
60
60
|
t["ckds-search-wrapper"],
|
|
61
|
-
t[`search-wrapper-${
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
t[`search-wrapper-${o}`],
|
|
62
|
+
s ? t["search-wrapper--disabled"] : "",
|
|
63
|
+
E
|
|
64
64
|
),
|
|
65
65
|
children: [
|
|
66
|
-
!
|
|
67
|
-
/* @__PURE__ */
|
|
66
|
+
!g && !c && /* @__PURE__ */ n("span", { className: t["search-icon"], children: /* @__PURE__ */ n(U, { width: i, height: i }) }),
|
|
67
|
+
/* @__PURE__ */ n(
|
|
68
68
|
"input",
|
|
69
69
|
{
|
|
70
|
-
ref:
|
|
71
|
-
id:
|
|
72
|
-
name:
|
|
70
|
+
ref: u,
|
|
71
|
+
id: T,
|
|
72
|
+
name: j,
|
|
73
73
|
type: "text",
|
|
74
|
-
className:
|
|
74
|
+
className: v(
|
|
75
75
|
"ckds-body-sm-reg",
|
|
76
76
|
t["search-input"],
|
|
77
|
-
|
|
77
|
+
M
|
|
78
78
|
),
|
|
79
|
-
value:
|
|
80
|
-
placeholder:
|
|
81
|
-
disabled:
|
|
82
|
-
maxLength:
|
|
83
|
-
onChange:
|
|
84
|
-
onKeyDown:
|
|
85
|
-
onFocus: () =>
|
|
86
|
-
onBlur: () =>
|
|
79
|
+
value: c,
|
|
80
|
+
placeholder: x,
|
|
81
|
+
disabled: s,
|
|
82
|
+
maxLength: b,
|
|
83
|
+
onChange: N,
|
|
84
|
+
onKeyDown: F,
|
|
85
|
+
onFocus: () => k(!0),
|
|
86
|
+
onBlur: () => k(!1)
|
|
87
87
|
}
|
|
88
88
|
),
|
|
89
|
-
|
|
89
|
+
L && c && !s && /* @__PURE__ */ n(
|
|
90
90
|
"button",
|
|
91
91
|
{
|
|
92
92
|
type: "button",
|
|
93
93
|
className: t["search-clear"],
|
|
94
94
|
onMouseDown: (e) => e.preventDefault(),
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: B,
|
|
96
96
|
"aria-label": "Clear search",
|
|
97
97
|
tabIndex: 0,
|
|
98
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ n(V, { width: i, height: i })
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
]
|
|
@@ -103,5 +103,5 @@ function O({
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
export {
|
|
106
|
-
|
|
106
|
+
H as Search
|
|
107
107
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { D as
|
|
2
|
+
import { D as y } from "../../../DropdownFooter-BmXLYRcE.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-D2n8YjU_.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";
|
|
13
13
|
import "../../Pagination/index.js";
|
|
14
14
|
import "../../DateRangePicker/DateRangePicker.js";
|
|
15
|
+
import "react-dom";
|
|
15
16
|
import "../../Loader/index.js";
|
|
16
17
|
/* empty css */
|
|
17
18
|
/* empty css */
|
|
@@ -23,5 +24,5 @@ import "../../MAVDropdown/index.js";
|
|
|
23
24
|
/* empty css */
|
|
24
25
|
import "../../FusionChart/index.js";
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
y as DropdownFooter
|
|
27
28
|
};
|
|
@@ -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-BmXLYRcE.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-D2n8YjU_.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";
|
|
@@ -17,6 +17,7 @@ import "../GroupedMultiSelect/_helpers/OptionRow.js";
|
|
|
17
17
|
import "../GroupedSingleSelect/_helpers/OptionRow.js";
|
|
18
18
|
import "../Pagination/index.js";
|
|
19
19
|
import "../DateRangePicker/DateRangePicker.js";
|
|
20
|
+
import "react-dom";
|
|
20
21
|
import "../Loader/index.js";
|
|
21
22
|
/* empty css */
|
|
22
23
|
/* empty css */
|
|
@@ -28,7 +29,7 @@ import "../ProfileDropdown/index.js";
|
|
|
28
29
|
import "../MAVDropdown/index.js";
|
|
29
30
|
/* empty css */
|
|
30
31
|
import "../FusionChart/index.js";
|
|
31
|
-
function
|
|
32
|
+
function De({
|
|
32
33
|
options: u,
|
|
33
34
|
value: t = null,
|
|
34
35
|
onChange: y,
|
|
@@ -42,20 +43,20 @@ function ge({
|
|
|
42
43
|
mandatory: L = !1,
|
|
43
44
|
width: b = ""
|
|
44
45
|
}) {
|
|
45
|
-
const [l,
|
|
46
|
+
const [l, i] = d(!1), [h, c] = d(""), [f, p] = d(t), v = g(null), { vertical: R, horizontal: j } = K(v, l), C = g(null), [z, E] = d(!1), a = u.find((r) => r.value === t), S = V(() => u.filter(
|
|
46
47
|
(r) => r.label.toLowerCase().includes(h.toLowerCase())
|
|
47
48
|
), [h, u]), W = (r) => {
|
|
48
49
|
p?.(r);
|
|
49
50
|
}, B = () => {
|
|
50
51
|
p(null);
|
|
51
52
|
}, F = () => {
|
|
52
|
-
y?.(f),
|
|
53
|
+
y?.(f), i(!1);
|
|
53
54
|
}, T = () => {
|
|
54
|
-
p(t),
|
|
55
|
+
p(t), i(!1), c("");
|
|
55
56
|
};
|
|
56
57
|
return D(() => {
|
|
57
58
|
const r = (m) => {
|
|
58
|
-
v.current?.contains(m.target) || (
|
|
59
|
+
v.current?.contains(m.target) || (i(!1), p(t), c(""));
|
|
59
60
|
};
|
|
60
61
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
61
62
|
}, [t]), D(() => {
|
|
@@ -83,7 +84,7 @@ function ge({
|
|
|
83
84
|
{
|
|
84
85
|
type: "button",
|
|
85
86
|
className: `${e.trigger} ${l ? e.active : ""}`,
|
|
86
|
-
onClick: () => !n &&
|
|
87
|
+
onClick: () => !n && i((r) => !r),
|
|
87
88
|
"aria-haspopup": "listbox",
|
|
88
89
|
"aria-expanded": l,
|
|
89
90
|
disabled: n,
|
|
@@ -119,8 +120,8 @@ function ge({
|
|
|
119
120
|
value: h,
|
|
120
121
|
placeholder: "Search",
|
|
121
122
|
autoFocus: !1,
|
|
122
|
-
onChange: (r) =>
|
|
123
|
-
onClear: () =>
|
|
123
|
+
onChange: (r) => c(r),
|
|
124
|
+
onClear: () => c(""),
|
|
124
125
|
wrapperClassName: e.searchWrapper,
|
|
125
126
|
inputClassName: e.searchInput
|
|
126
127
|
}
|
|
@@ -156,5 +157,5 @@ function ge({
|
|
|
156
157
|
);
|
|
157
158
|
}
|
|
158
159
|
export {
|
|
159
|
-
|
|
160
|
+
De as SingleSelectDropdown
|
|
160
161
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ColumnManagerProps } from '../../_types/table.types';
|
|
2
|
-
declare function ColumnManager<TData>({ draftConfig, setDraftConfig,
|
|
2
|
+
declare function ColumnManager<TData>({ draftConfig, setDraftConfig, handleApplyPref, setModalOpen, handleResetToDefault, isDefault, isConfigChanged, headerGroupDefs, }: ColumnManagerProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ColumnManager;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/ColumnManager/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/ColumnManager/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,eAAe,CAAC;AAgJvB,iBAAS,aAAa,CAAC,KAAK,EAAE,EAC5B,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,eAAe,GAChB,EAAE,kBAAkB,CAAC,KAAK,CAAC,2CAyM3B;AAED,eAAe,aAAa,CAAC"}
|