@ktnpm_devops/react-component 0.2.1 → 0.3.0
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/index.cjs +34 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -33
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +15 -4
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +15 -4
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +4 -16
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +4 -16
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +16 -10
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +16 -10
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +10 -100
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +11 -101
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +100 -20
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +101 -21
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +20 -90
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +21 -91
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +85 -153
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +87 -155
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +150 -128
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +150 -128
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +121 -106
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +122 -107
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +121 -17
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +121 -17
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +17 -8
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +18 -9
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +7 -130
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +9 -132
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +128 -35
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +129 -36
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +36 -222
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +37 -223
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +218 -28
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +220 -30
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +29 -73
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +31 -75
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +69 -144
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +70 -145
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +152 -7
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +154 -9
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +8 -17
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +9 -18
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +15 -75
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +16 -76
- package/dist/index29.js.map +1 -1
- package/dist/index3.cjs +76 -16
- package/dist/index3.cjs.map +1 -1
- package/dist/index3.js +76 -16
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +68 -134
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +70 -136
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +136 -98
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +137 -99
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +105 -6
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +106 -7
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +6 -216
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +7 -217
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +215 -7
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +217 -9
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +10 -16
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +9 -15
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +15 -6
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +15 -6
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +4 -1
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +4 -1
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +11 -2
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +11 -2
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +67 -21
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +66 -20
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +12 -8
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +12 -8
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +39 -67
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +38 -66
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +15 -33
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +16 -34
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +52 -16
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +52 -16
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +13 -10
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +13 -10
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +29 -17
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +29 -17
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +19 -134
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +18 -133
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +13 -40
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +13 -40
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +2 -29
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +3 -30
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +2 -53
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +3 -54
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +3 -30
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +3 -30
- package/dist/index49.js.map +1 -1
- package/dist/index5.cjs +9 -16
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +10 -17
- package/dist/index5.js.map +1 -1
- package/dist/index50.cjs +34 -34
- package/dist/index50.js +34 -34
- package/dist/index51.cjs +49 -19
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +50 -20
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +16 -13
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +16 -13
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +35 -32
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +35 -32
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +53 -5
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +54 -6
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +134 -19
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +133 -18
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +40 -10
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +40 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +26 -8
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +27 -9
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +22 -19
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +22 -19
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +10 -79
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +10 -79
- package/dist/index59.js.map +1 -1
- package/dist/index6.cjs +19 -65
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +19 -65
- package/dist/index6.js.map +1 -1
- package/dist/index60.cjs +19 -22
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +20 -23
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +54 -27
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +55 -28
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +37 -13
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +38 -14
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +16 -49
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +16 -49
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +16 -37
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +16 -37
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +18 -0
- package/dist/index65.cjs.map +1 -0
- package/dist/index65.js +18 -0
- package/dist/index65.js.map +1 -0
- package/dist/index7.cjs +58 -75
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +58 -75
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +82 -15
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +82 -15
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +14 -15
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +15 -16
- package/dist/index9.js.map +1 -1
- package/dist/style.css +271 -0
- package/dist/tokens/semantic-tokens.css +21 -0
- package/dist/tokens/tokens.d.ts +35 -0
- package/dist/tokens/tokens.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index2.cjs +0 -44
- package/dist/index2.cjs.map +0 -1
- package/dist/index2.js +0 -44
- package/dist/index2.js.map +0 -1
package/dist/index42.js
CHANGED
|
@@ -1,24 +1,60 @@
|
|
|
1
|
-
const root = "krc-root
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
const root = "krc-root--s1oD";
|
|
2
|
+
const trigger = "krc-trigger-WMlNa";
|
|
3
|
+
const active = "krc-active-O65lj";
|
|
4
|
+
const triggerContent = "krc-triggerContent-JipmE";
|
|
5
|
+
const chevron = "krc-chevron-J2Zsy";
|
|
6
|
+
const label = "krc-label-lZlV-";
|
|
7
|
+
const value = "krc-value-HsQrC";
|
|
8
|
+
const clear = "krc-clear-bsi5j";
|
|
9
|
+
const panel = "krc-panel--0odx";
|
|
10
|
+
const searchContainer = "krc-searchContainer-WRS-U";
|
|
11
|
+
const search = "krc-search-Dh3pY";
|
|
12
|
+
const list = "krc-list-1RUtr";
|
|
13
|
+
const noResults = "krc-noResults-Hin1U";
|
|
14
|
+
const option = "krc-option-0mFGi";
|
|
15
|
+
const focused = "krc-focused-0-7tE";
|
|
16
|
+
const selected = "krc-selected-1zIqI";
|
|
17
|
+
const optionLabel = "krc-optionLabel-pj-hL";
|
|
18
|
+
const optionCount = "krc-optionCount-rVlCP";
|
|
7
19
|
const styles = {
|
|
8
20
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
21
|
+
trigger,
|
|
22
|
+
active,
|
|
23
|
+
triggerContent,
|
|
24
|
+
chevron,
|
|
25
|
+
label,
|
|
26
|
+
value,
|
|
27
|
+
clear,
|
|
28
|
+
panel,
|
|
29
|
+
searchContainer,
|
|
30
|
+
search,
|
|
31
|
+
list,
|
|
32
|
+
noResults,
|
|
33
|
+
option,
|
|
34
|
+
focused,
|
|
35
|
+
selected,
|
|
36
|
+
optionLabel,
|
|
37
|
+
optionCount
|
|
14
38
|
};
|
|
15
39
|
export {
|
|
16
|
-
|
|
40
|
+
active,
|
|
41
|
+
chevron,
|
|
42
|
+
clear,
|
|
17
43
|
styles as default,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
44
|
+
focused,
|
|
45
|
+
label,
|
|
46
|
+
list,
|
|
47
|
+
noResults,
|
|
48
|
+
option,
|
|
49
|
+
optionCount,
|
|
50
|
+
optionLabel,
|
|
51
|
+
panel,
|
|
21
52
|
root,
|
|
22
|
-
|
|
53
|
+
search,
|
|
54
|
+
searchContainer,
|
|
55
|
+
selected,
|
|
56
|
+
trigger,
|
|
57
|
+
triggerContent,
|
|
58
|
+
value
|
|
23
59
|
};
|
|
24
60
|
//# sourceMappingURL=index42.js.map
|
package/dist/index42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index43.cjs
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
const root = "krc-root-WL0sD";
|
|
4
|
+
const left = "krc-left-9KFDB";
|
|
5
|
+
const right = "krc-right-YmUbX";
|
|
6
|
+
const divider = "krc-divider-jNOSU";
|
|
7
|
+
const dividerHandle = "krc-dividerHandle-SoNqx";
|
|
7
8
|
const styles = {
|
|
8
9
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
left,
|
|
11
|
+
right,
|
|
12
|
+
divider,
|
|
13
|
+
dividerHandle
|
|
12
14
|
};
|
|
13
|
-
exports.card = card;
|
|
14
15
|
exports.default = styles;
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
16
|
+
exports.divider = divider;
|
|
17
|
+
exports.dividerHandle = dividerHandle;
|
|
18
|
+
exports.left = left;
|
|
19
|
+
exports.right = right;
|
|
17
20
|
exports.root = root;
|
|
18
21
|
//# sourceMappingURL=index43.cjs.map
|
package/dist/index43.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index43.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index43.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
const root = "krc-root-WL0sD";
|
|
2
|
+
const left = "krc-left-9KFDB";
|
|
3
|
+
const right = "krc-right-YmUbX";
|
|
4
|
+
const divider = "krc-divider-jNOSU";
|
|
5
|
+
const dividerHandle = "krc-dividerHandle-SoNqx";
|
|
5
6
|
const styles = {
|
|
6
7
|
root,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
left,
|
|
9
|
+
right,
|
|
10
|
+
divider,
|
|
11
|
+
dividerHandle
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
card,
|
|
13
14
|
styles as default,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
divider,
|
|
16
|
+
dividerHandle,
|
|
17
|
+
left,
|
|
18
|
+
right,
|
|
16
19
|
root
|
|
17
20
|
};
|
|
18
21
|
//# sourceMappingURL=index43.js.map
|
package/dist/index43.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index43.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index44.cjs
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
3
|
+
const overlay = "krc-overlay-WWw5c";
|
|
4
|
+
const modal = "krc-modal-ZLlQ4";
|
|
5
|
+
const resizable = "krc-resizable-G8TND";
|
|
6
|
+
const header = "krc-header-RFEXB";
|
|
7
|
+
const title = "krc-title-FhVKX";
|
|
8
|
+
const headerActions = "krc-headerActions-Qj5SG";
|
|
9
|
+
const close = "krc-close-EQ-3d";
|
|
10
|
+
const body = "krc-body-ZLPhV";
|
|
11
|
+
const loading = "krc-loading-lxD8d";
|
|
12
|
+
const resizeHandle = "krc-resizeHandle-Q0J-B";
|
|
9
13
|
const styles = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
overlay,
|
|
15
|
+
modal,
|
|
16
|
+
resizable,
|
|
17
|
+
header,
|
|
18
|
+
title,
|
|
19
|
+
headerActions,
|
|
20
|
+
close,
|
|
21
|
+
body,
|
|
22
|
+
loading,
|
|
23
|
+
resizeHandle
|
|
16
24
|
};
|
|
17
|
-
exports.
|
|
25
|
+
exports.body = body;
|
|
26
|
+
exports.close = close;
|
|
18
27
|
exports.default = styles;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
28
|
+
exports.header = header;
|
|
29
|
+
exports.headerActions = headerActions;
|
|
30
|
+
exports.loading = loading;
|
|
31
|
+
exports.modal = modal;
|
|
32
|
+
exports.overlay = overlay;
|
|
33
|
+
exports.resizable = resizable;
|
|
34
|
+
exports.resizeHandle = resizeHandle;
|
|
23
35
|
exports.title = title;
|
|
24
36
|
//# sourceMappingURL=index44.cjs.map
|
package/dist/index44.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index44.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index44.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index44.js
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
const overlay = "krc-overlay-WWw5c";
|
|
2
|
+
const modal = "krc-modal-ZLlQ4";
|
|
3
|
+
const resizable = "krc-resizable-G8TND";
|
|
4
|
+
const header = "krc-header-RFEXB";
|
|
5
|
+
const title = "krc-title-FhVKX";
|
|
6
|
+
const headerActions = "krc-headerActions-Qj5SG";
|
|
7
|
+
const close = "krc-close-EQ-3d";
|
|
8
|
+
const body = "krc-body-ZLPhV";
|
|
9
|
+
const loading = "krc-loading-lxD8d";
|
|
10
|
+
const resizeHandle = "krc-resizeHandle-Q0J-B";
|
|
7
11
|
const styles = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
overlay,
|
|
13
|
+
modal,
|
|
14
|
+
resizable,
|
|
15
|
+
header,
|
|
16
|
+
title,
|
|
17
|
+
headerActions,
|
|
18
|
+
close,
|
|
19
|
+
body,
|
|
20
|
+
loading,
|
|
21
|
+
resizeHandle
|
|
14
22
|
};
|
|
15
23
|
export {
|
|
16
|
-
|
|
24
|
+
body,
|
|
25
|
+
close,
|
|
17
26
|
styles as default,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
header,
|
|
28
|
+
headerActions,
|
|
29
|
+
loading,
|
|
30
|
+
modal,
|
|
31
|
+
overlay,
|
|
32
|
+
resizable,
|
|
33
|
+
resizeHandle,
|
|
22
34
|
title
|
|
23
35
|
};
|
|
24
36
|
//# sourceMappingURL=index44.js.map
|
package/dist/index44.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index44.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index44.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index45.cjs
CHANGED
|
@@ -1,136 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const overflowCategories = sortedCategories.slice(maxCats);
|
|
22
|
-
if (showOthers && overflowCategories.length > 0) {
|
|
23
|
-
const othersMap = /* @__PURE__ */ new Map();
|
|
24
|
-
for (const { subMap } of overflowCategories) {
|
|
25
|
-
for (const [sub, val] of subMap) {
|
|
26
|
-
othersMap.set(sub, (othersMap.get(sub) ?? 0) + val);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
let othersTotal = 0;
|
|
30
|
-
for (const v of othersMap.values()) othersTotal += v;
|
|
31
|
-
topCategories.push({ cat: "Others", subMap: othersMap, total: othersTotal });
|
|
32
|
-
}
|
|
33
|
-
const allSubCategories = /* @__PURE__ */ new Set();
|
|
34
|
-
for (const { subMap } of topCategories) {
|
|
35
|
-
for (const sub of subMap.keys()) {
|
|
36
|
-
allSubCategories.add(sub);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const sortedSubs = [...allSubCategories];
|
|
40
|
-
const limitedSubs = sortedSubs.slice(0, maxSubs);
|
|
41
|
-
const hasOverflowSubs = sortedSubs.length > maxSubs;
|
|
42
|
-
const categories = topCategories.map((entry) => entry.cat);
|
|
43
|
-
const series = limitedSubs.map((sub) => ({
|
|
44
|
-
name: sub,
|
|
45
|
-
values: topCategories.map((entry) => entry.subMap.get(sub) ?? 0)
|
|
46
|
-
}));
|
|
47
|
-
if (hasOverflowSubs && showOthers) {
|
|
48
|
-
const overflowSubs = sortedSubs.slice(maxSubs);
|
|
49
|
-
series.push({
|
|
50
|
-
name: "Other subcategories",
|
|
51
|
-
values: topCategories.map((entry) => {
|
|
52
|
-
let sum = 0;
|
|
53
|
-
for (const sub of overflowSubs) {
|
|
54
|
-
sum += entry.subMap.get(sub) ?? 0;
|
|
55
|
-
}
|
|
56
|
-
return sum;
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return { categories, series };
|
|
61
|
-
}
|
|
62
|
-
function buildBarOption(categories, series, invertAxis, hideLegend, enableScroll) {
|
|
63
|
-
const categoryAxis = { type: "category", data: categories };
|
|
64
|
-
const valueAxis = { type: "value" };
|
|
65
|
-
const dataZoom = enableScroll ? [{ type: "slider", show: true, ...invertAxis ? { yAxisIndex: 0 } : { xAxisIndex: 0 } }] : [];
|
|
66
|
-
return {
|
|
67
|
-
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
68
|
-
legend: { show: !hideLegend, bottom: 0, type: "scroll" },
|
|
69
|
-
grid: { left: "3%", right: "4%", top: "3%", bottom: hideLegend ? "3%" : "12%", containLabel: true },
|
|
70
|
-
xAxis: invertAxis ? valueAxis : categoryAxis,
|
|
71
|
-
yAxis: invertAxis ? categoryAxis : valueAxis,
|
|
72
|
-
dataZoom,
|
|
73
|
-
series: series.map((s, i) => ({
|
|
74
|
-
name: s.name,
|
|
75
|
-
type: "bar",
|
|
76
|
-
stack: "total",
|
|
77
|
-
emphasis: { focus: "series" },
|
|
78
|
-
data: s.values,
|
|
79
|
-
itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length] }
|
|
80
|
-
}))
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function buildPieOption(categories, series, hideLegend) {
|
|
84
|
-
const pieData = categories.map((cat, catIdx) => {
|
|
85
|
-
let total = 0;
|
|
86
|
-
for (const s of series) {
|
|
87
|
-
total += s.values[catIdx] ?? 0;
|
|
88
|
-
}
|
|
89
|
-
return { name: cat, value: total };
|
|
90
|
-
});
|
|
91
|
-
return {
|
|
92
|
-
tooltip: { trigger: "item" },
|
|
93
|
-
legend: { show: !hideLegend, bottom: 0, type: "scroll" },
|
|
94
|
-
series: [
|
|
95
|
-
{
|
|
96
|
-
type: "pie",
|
|
97
|
-
radius: ["30%", "65%"],
|
|
98
|
-
center: ["50%", "45%"],
|
|
99
|
-
data: pieData.map((d, i) => ({
|
|
100
|
-
...d,
|
|
101
|
-
itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length] }
|
|
102
|
-
})),
|
|
103
|
-
emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0,0,0,0.3)" } },
|
|
104
|
-
label: { show: true, formatter: "{b}: {d}%" }
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function buildSunburstOption(categories, series) {
|
|
110
|
-
const sunburstData = categories.map((cat, catIdx) => {
|
|
111
|
-
const children = series.map((s, sIdx) => ({
|
|
112
|
-
name: s.name,
|
|
113
|
-
value: s.values[catIdx] ?? 0,
|
|
114
|
-
itemStyle: { color: constants.CHART_COLORS[(catIdx * series.length + sIdx) % constants.CHART_COLORS.length] }
|
|
115
|
-
})).filter((child) => child.value > 0);
|
|
116
|
-
return { name: cat, children };
|
|
117
|
-
});
|
|
118
|
-
return {
|
|
119
|
-
tooltip: { trigger: "item" },
|
|
120
|
-
series: [
|
|
121
|
-
{
|
|
122
|
-
type: "sunburst",
|
|
123
|
-
data: sunburstData,
|
|
124
|
-
radius: ["15%", "80%"],
|
|
125
|
-
label: { rotate: "radial", fontSize: 10 },
|
|
126
|
-
itemStyle: { borderRadius: 4, borderWidth: 1 },
|
|
127
|
-
emphasis: { focus: "ancestor" }
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
exports.aggregateData = aggregateData;
|
|
133
|
-
exports.buildBarOption = buildBarOption;
|
|
134
|
-
exports.buildPieOption = buildPieOption;
|
|
135
|
-
exports.buildSunburstOption = buildSunburstOption;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-LQf3S";
|
|
4
|
+
const item = "krc-item-Y5RvK";
|
|
5
|
+
const disabled = "krc-disabled-wnQRZ";
|
|
6
|
+
const focused = "krc-focused-hDoa3";
|
|
7
|
+
const icon = "krc-icon-q-Jmu";
|
|
8
|
+
const styles = {
|
|
9
|
+
root,
|
|
10
|
+
item,
|
|
11
|
+
disabled,
|
|
12
|
+
focused,
|
|
13
|
+
icon
|
|
14
|
+
};
|
|
15
|
+
exports.default = styles;
|
|
16
|
+
exports.disabled = disabled;
|
|
17
|
+
exports.focused = focused;
|
|
18
|
+
exports.icon = icon;
|
|
19
|
+
exports.item = item;
|
|
20
|
+
exports.root = root;
|
|
136
21
|
//# sourceMappingURL=index45.cjs.map
|
package/dist/index45.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index45.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index45.js
CHANGED
|
@@ -1,136 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const sortedCategories = [...categoryMap.entries()].map(([cat, subMap]) => {
|
|
14
|
-
let total = 0;
|
|
15
|
-
for (const v of subMap.values()) total += v;
|
|
16
|
-
return { cat, subMap, total };
|
|
17
|
-
}).sort((a, b) => b.total - a.total);
|
|
18
|
-
const topCategories = sortedCategories.slice(0, maxCats);
|
|
19
|
-
const overflowCategories = sortedCategories.slice(maxCats);
|
|
20
|
-
if (showOthers && overflowCategories.length > 0) {
|
|
21
|
-
const othersMap = /* @__PURE__ */ new Map();
|
|
22
|
-
for (const { subMap } of overflowCategories) {
|
|
23
|
-
for (const [sub, val] of subMap) {
|
|
24
|
-
othersMap.set(sub, (othersMap.get(sub) ?? 0) + val);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
let othersTotal = 0;
|
|
28
|
-
for (const v of othersMap.values()) othersTotal += v;
|
|
29
|
-
topCategories.push({ cat: "Others", subMap: othersMap, total: othersTotal });
|
|
30
|
-
}
|
|
31
|
-
const allSubCategories = /* @__PURE__ */ new Set();
|
|
32
|
-
for (const { subMap } of topCategories) {
|
|
33
|
-
for (const sub of subMap.keys()) {
|
|
34
|
-
allSubCategories.add(sub);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const sortedSubs = [...allSubCategories];
|
|
38
|
-
const limitedSubs = sortedSubs.slice(0, maxSubs);
|
|
39
|
-
const hasOverflowSubs = sortedSubs.length > maxSubs;
|
|
40
|
-
const categories = topCategories.map((entry) => entry.cat);
|
|
41
|
-
const series = limitedSubs.map((sub) => ({
|
|
42
|
-
name: sub,
|
|
43
|
-
values: topCategories.map((entry) => entry.subMap.get(sub) ?? 0)
|
|
44
|
-
}));
|
|
45
|
-
if (hasOverflowSubs && showOthers) {
|
|
46
|
-
const overflowSubs = sortedSubs.slice(maxSubs);
|
|
47
|
-
series.push({
|
|
48
|
-
name: "Other subcategories",
|
|
49
|
-
values: topCategories.map((entry) => {
|
|
50
|
-
let sum = 0;
|
|
51
|
-
for (const sub of overflowSubs) {
|
|
52
|
-
sum += entry.subMap.get(sub) ?? 0;
|
|
53
|
-
}
|
|
54
|
-
return sum;
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return { categories, series };
|
|
59
|
-
}
|
|
60
|
-
function buildBarOption(categories, series, invertAxis, hideLegend, enableScroll) {
|
|
61
|
-
const categoryAxis = { type: "category", data: categories };
|
|
62
|
-
const valueAxis = { type: "value" };
|
|
63
|
-
const dataZoom = enableScroll ? [{ type: "slider", show: true, ...invertAxis ? { yAxisIndex: 0 } : { xAxisIndex: 0 } }] : [];
|
|
64
|
-
return {
|
|
65
|
-
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
66
|
-
legend: { show: !hideLegend, bottom: 0, type: "scroll" },
|
|
67
|
-
grid: { left: "3%", right: "4%", top: "3%", bottom: hideLegend ? "3%" : "12%", containLabel: true },
|
|
68
|
-
xAxis: invertAxis ? valueAxis : categoryAxis,
|
|
69
|
-
yAxis: invertAxis ? categoryAxis : valueAxis,
|
|
70
|
-
dataZoom,
|
|
71
|
-
series: series.map((s, i) => ({
|
|
72
|
-
name: s.name,
|
|
73
|
-
type: "bar",
|
|
74
|
-
stack: "total",
|
|
75
|
-
emphasis: { focus: "series" },
|
|
76
|
-
data: s.values,
|
|
77
|
-
itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length] }
|
|
78
|
-
}))
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function buildPieOption(categories, series, hideLegend) {
|
|
82
|
-
const pieData = categories.map((cat, catIdx) => {
|
|
83
|
-
let total = 0;
|
|
84
|
-
for (const s of series) {
|
|
85
|
-
total += s.values[catIdx] ?? 0;
|
|
86
|
-
}
|
|
87
|
-
return { name: cat, value: total };
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
tooltip: { trigger: "item" },
|
|
91
|
-
legend: { show: !hideLegend, bottom: 0, type: "scroll" },
|
|
92
|
-
series: [
|
|
93
|
-
{
|
|
94
|
-
type: "pie",
|
|
95
|
-
radius: ["30%", "65%"],
|
|
96
|
-
center: ["50%", "45%"],
|
|
97
|
-
data: pieData.map((d, i) => ({
|
|
98
|
-
...d,
|
|
99
|
-
itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length] }
|
|
100
|
-
})),
|
|
101
|
-
emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0,0,0,0.3)" } },
|
|
102
|
-
label: { show: true, formatter: "{b}: {d}%" }
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function buildSunburstOption(categories, series) {
|
|
108
|
-
const sunburstData = categories.map((cat, catIdx) => {
|
|
109
|
-
const children = series.map((s, sIdx) => ({
|
|
110
|
-
name: s.name,
|
|
111
|
-
value: s.values[catIdx] ?? 0,
|
|
112
|
-
itemStyle: { color: CHART_COLORS[(catIdx * series.length + sIdx) % CHART_COLORS.length] }
|
|
113
|
-
})).filter((child) => child.value > 0);
|
|
114
|
-
return { name: cat, children };
|
|
115
|
-
});
|
|
116
|
-
return {
|
|
117
|
-
tooltip: { trigger: "item" },
|
|
118
|
-
series: [
|
|
119
|
-
{
|
|
120
|
-
type: "sunburst",
|
|
121
|
-
data: sunburstData,
|
|
122
|
-
radius: ["15%", "80%"],
|
|
123
|
-
label: { rotate: "radial", fontSize: 10 },
|
|
124
|
-
itemStyle: { borderRadius: 4, borderWidth: 1 },
|
|
125
|
-
emphasis: { focus: "ancestor" }
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
};
|
|
129
|
-
}
|
|
1
|
+
const root = "krc-root-LQf3S";
|
|
2
|
+
const item = "krc-item-Y5RvK";
|
|
3
|
+
const disabled = "krc-disabled-wnQRZ";
|
|
4
|
+
const focused = "krc-focused-hDoa3";
|
|
5
|
+
const icon = "krc-icon-q-Jmu";
|
|
6
|
+
const styles = {
|
|
7
|
+
root,
|
|
8
|
+
item,
|
|
9
|
+
disabled,
|
|
10
|
+
focused,
|
|
11
|
+
icon
|
|
12
|
+
};
|
|
130
13
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
14
|
+
styles as default,
|
|
15
|
+
disabled,
|
|
16
|
+
focused,
|
|
17
|
+
icon,
|
|
18
|
+
item,
|
|
19
|
+
root
|
|
135
20
|
};
|
|
136
21
|
//# sourceMappingURL=index45.js.map
|
package/dist/index45.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.js","sources":[
|
|
1
|
+
{"version":3,"file":"index45.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|