@ktnpm_devops/react-component 0.5.0 → 0.6.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/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.cjs +18 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +2 -2
- package/dist/index29.js +2 -2
- package/dist/index30.cjs +2 -2
- package/dist/index30.js +2 -2
- package/dist/index31.cjs +105 -73
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +108 -76
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +76 -57
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +78 -59
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +56 -150
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +58 -152
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +147 -66
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +149 -68
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +71 -7
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +72 -8
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +8 -17
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +9 -18
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +15 -75
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +16 -76
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +67 -133
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +70 -136
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +137 -58
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +138 -59
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +61 -102
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +62 -103
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +102 -44
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +103 -45
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +47 -6
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +48 -7
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +6 -216
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +7 -217
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +215 -7
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +217 -9
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +6 -15
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +6 -15
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +14 -63
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +16 -65
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +67 -15
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +66 -14
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +15 -6
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +15 -6
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +2 -23
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +3 -24
- package/dist/index49.js.map +1 -1
- package/dist/index51.cjs +7 -0
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +7 -0
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +11 -20
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +11 -20
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +22 -13
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +22 -13
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +19 -10
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +20 -11
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +21 -18
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +22 -19
- package/dist/index55.js.map +1 -1
- package/dist/index57.cjs +20 -2
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +20 -2
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +5 -35
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +6 -36
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +10 -13
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +10 -13
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +10 -16
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +11 -17
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +64 -16
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +64 -16
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +10 -10
- package/dist/index62.js +11 -11
- package/dist/index63.cjs +2 -14
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +2 -14
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +34 -16
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +34 -16
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +19 -49
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +20 -50
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +13 -37
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +14 -38
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +28 -46
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +29 -47
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +32 -35
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +32 -35
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +20 -2
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +21 -3
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +10 -16
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +10 -16
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +15 -18
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +15 -18
- package/dist/index71.js.map +1 -1
- package/dist/index73.cjs +37 -31
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +37 -31
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +16 -28
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +17 -29
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +37 -64
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +37 -64
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +2 -20
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +2 -20
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +58 -134
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +57 -133
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +25 -40
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +25 -40
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +49 -79
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +49 -79
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +43 -49
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +44 -50
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +33 -30
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +33 -30
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +16 -25
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +16 -25
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +50 -32
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +50 -32
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +16 -52
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +16 -52
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +80 -5
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +81 -6
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +134 -16
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +133 -15
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +48 -0
- package/dist/index87.cjs.map +1 -0
- package/dist/index87.js +48 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.cjs +36 -0
- package/dist/index88.cjs.map +1 -0
- package/dist/index88.js +36 -0
- package/dist/index88.js.map +1 -0
- package/dist/index9.cjs +2 -2
- package/dist/index9.js +2 -2
- package/dist/primitives/Pagination/Pagination.d.ts +4 -0
- package/dist/primitives/Pagination/Pagination.d.ts.map +1 -0
- package/dist/primitives/Pagination/Pagination.types.d.ts +21 -0
- package/dist/primitives/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/primitives/Pagination/index.d.ts +3 -0
- package/dist/primitives/Pagination/index.d.ts.map +1 -0
- package/dist/style.css +65 -0
- package/package.json +1 -1
package/dist/index76.cjs
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const item = "krc-item-Omuyb";
|
|
5
|
-
const head = "krc-head-ePoJ-";
|
|
6
|
-
const headContent = "krc-headContent-wymxG";
|
|
7
|
-
const chev = "krc-chev-yPNHx";
|
|
8
|
-
const isOpen = "krc-isOpen-wp7DR";
|
|
9
|
-
const body = "krc-body-pZ1Bk";
|
|
3
|
+
const root = "krc-root-pJYpn";
|
|
10
4
|
const styles = {
|
|
11
|
-
root
|
|
12
|
-
item,
|
|
13
|
-
head,
|
|
14
|
-
headContent,
|
|
15
|
-
chev,
|
|
16
|
-
isOpen,
|
|
17
|
-
body
|
|
5
|
+
root
|
|
18
6
|
};
|
|
19
|
-
exports.body = body;
|
|
20
|
-
exports.chev = chev;
|
|
21
7
|
exports.default = styles;
|
|
22
|
-
exports.head = head;
|
|
23
|
-
exports.headContent = headContent;
|
|
24
|
-
exports.isOpen = isOpen;
|
|
25
|
-
exports.item = item;
|
|
26
8
|
exports.root = root;
|
|
27
9
|
//# sourceMappingURL=index76.cjs.map
|
package/dist/index76.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index76.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index76.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/index76.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const item = "krc-item-Omuyb";
|
|
3
|
-
const head = "krc-head-ePoJ-";
|
|
4
|
-
const headContent = "krc-headContent-wymxG";
|
|
5
|
-
const chev = "krc-chev-yPNHx";
|
|
6
|
-
const isOpen = "krc-isOpen-wp7DR";
|
|
7
|
-
const body = "krc-body-pZ1Bk";
|
|
1
|
+
const root = "krc-root-pJYpn";
|
|
8
2
|
const styles = {
|
|
9
|
-
root
|
|
10
|
-
item,
|
|
11
|
-
head,
|
|
12
|
-
headContent,
|
|
13
|
-
chev,
|
|
14
|
-
isOpen,
|
|
15
|
-
body
|
|
3
|
+
root
|
|
16
4
|
};
|
|
17
5
|
export {
|
|
18
|
-
body,
|
|
19
|
-
chev,
|
|
20
6
|
styles as default,
|
|
21
|
-
head,
|
|
22
|
-
headContent,
|
|
23
|
-
isOpen,
|
|
24
|
-
item,
|
|
25
7
|
root
|
|
26
8
|
};
|
|
27
9
|
//# sourceMappingURL=index76.js.map
|
package/dist/index76.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index77.cjs
CHANGED
|
@@ -1,136 +1,60 @@
|
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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-GYECa";
|
|
4
|
+
const header = "krc-header-7V-0i";
|
|
5
|
+
const title = "krc-title-SiRcV";
|
|
6
|
+
const headerActions = "krc-headerActions-HY6nM";
|
|
7
|
+
const splitContainer = "krc-splitContainer-ovkIf";
|
|
8
|
+
const tablePanel = "krc-tablePanel-gbWQx";
|
|
9
|
+
const chartPanel = "krc-chartPanel-eBJ9W";
|
|
10
|
+
const table = "krc-table-40WZx";
|
|
11
|
+
const tableRow = "krc-tableRow-yQlEa";
|
|
12
|
+
const tableRowSelected = "krc-tableRowSelected-vIEfO";
|
|
13
|
+
const pagination = "krc-pagination-nyCxO";
|
|
14
|
+
const paginationButton = "krc-paginationButton-k-cQB";
|
|
15
|
+
const paginationInfo = "krc-paginationInfo-ouuPw";
|
|
16
|
+
const placeholder = "krc-placeholder-YDeIw";
|
|
17
|
+
const loading = "krc-loading-UoiCd";
|
|
18
|
+
const error = "krc-error-Subfi";
|
|
19
|
+
const retryButton = "krc-retryButton-k8HPu";
|
|
20
|
+
const empty = "krc-empty-OoPZo";
|
|
21
|
+
const styles = {
|
|
22
|
+
root,
|
|
23
|
+
header,
|
|
24
|
+
title,
|
|
25
|
+
headerActions,
|
|
26
|
+
splitContainer,
|
|
27
|
+
tablePanel,
|
|
28
|
+
chartPanel,
|
|
29
|
+
table,
|
|
30
|
+
tableRow,
|
|
31
|
+
tableRowSelected,
|
|
32
|
+
pagination,
|
|
33
|
+
paginationButton,
|
|
34
|
+
paginationInfo,
|
|
35
|
+
placeholder,
|
|
36
|
+
loading,
|
|
37
|
+
error,
|
|
38
|
+
retryButton,
|
|
39
|
+
empty
|
|
40
|
+
};
|
|
41
|
+
exports.chartPanel = chartPanel;
|
|
42
|
+
exports.default = styles;
|
|
43
|
+
exports.empty = empty;
|
|
44
|
+
exports.error = error;
|
|
45
|
+
exports.header = header;
|
|
46
|
+
exports.headerActions = headerActions;
|
|
47
|
+
exports.loading = loading;
|
|
48
|
+
exports.pagination = pagination;
|
|
49
|
+
exports.paginationButton = paginationButton;
|
|
50
|
+
exports.paginationInfo = paginationInfo;
|
|
51
|
+
exports.placeholder = placeholder;
|
|
52
|
+
exports.retryButton = retryButton;
|
|
53
|
+
exports.root = root;
|
|
54
|
+
exports.splitContainer = splitContainer;
|
|
55
|
+
exports.table = table;
|
|
56
|
+
exports.tablePanel = tablePanel;
|
|
57
|
+
exports.tableRow = tableRow;
|
|
58
|
+
exports.tableRowSelected = tableRowSelected;
|
|
59
|
+
exports.title = title;
|
|
136
60
|
//# sourceMappingURL=index77.cjs.map
|
package/dist/index77.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index77.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index77.js
CHANGED
|
@@ -1,136 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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-GYECa";
|
|
2
|
+
const header = "krc-header-7V-0i";
|
|
3
|
+
const title = "krc-title-SiRcV";
|
|
4
|
+
const headerActions = "krc-headerActions-HY6nM";
|
|
5
|
+
const splitContainer = "krc-splitContainer-ovkIf";
|
|
6
|
+
const tablePanel = "krc-tablePanel-gbWQx";
|
|
7
|
+
const chartPanel = "krc-chartPanel-eBJ9W";
|
|
8
|
+
const table = "krc-table-40WZx";
|
|
9
|
+
const tableRow = "krc-tableRow-yQlEa";
|
|
10
|
+
const tableRowSelected = "krc-tableRowSelected-vIEfO";
|
|
11
|
+
const pagination = "krc-pagination-nyCxO";
|
|
12
|
+
const paginationButton = "krc-paginationButton-k-cQB";
|
|
13
|
+
const paginationInfo = "krc-paginationInfo-ouuPw";
|
|
14
|
+
const placeholder = "krc-placeholder-YDeIw";
|
|
15
|
+
const loading = "krc-loading-UoiCd";
|
|
16
|
+
const error = "krc-error-Subfi";
|
|
17
|
+
const retryButton = "krc-retryButton-k8HPu";
|
|
18
|
+
const empty = "krc-empty-OoPZo";
|
|
19
|
+
const styles = {
|
|
20
|
+
root,
|
|
21
|
+
header,
|
|
22
|
+
title,
|
|
23
|
+
headerActions,
|
|
24
|
+
splitContainer,
|
|
25
|
+
tablePanel,
|
|
26
|
+
chartPanel,
|
|
27
|
+
table,
|
|
28
|
+
tableRow,
|
|
29
|
+
tableRowSelected,
|
|
30
|
+
pagination,
|
|
31
|
+
paginationButton,
|
|
32
|
+
paginationInfo,
|
|
33
|
+
placeholder,
|
|
34
|
+
loading,
|
|
35
|
+
error,
|
|
36
|
+
retryButton,
|
|
37
|
+
empty
|
|
38
|
+
};
|
|
130
39
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
40
|
+
chartPanel,
|
|
41
|
+
styles as default,
|
|
42
|
+
empty,
|
|
43
|
+
error,
|
|
44
|
+
header,
|
|
45
|
+
headerActions,
|
|
46
|
+
loading,
|
|
47
|
+
pagination,
|
|
48
|
+
paginationButton,
|
|
49
|
+
paginationInfo,
|
|
50
|
+
placeholder,
|
|
51
|
+
retryButton,
|
|
52
|
+
root,
|
|
53
|
+
splitContainer,
|
|
54
|
+
table,
|
|
55
|
+
tablePanel,
|
|
56
|
+
tableRow,
|
|
57
|
+
tableRowSelected,
|
|
58
|
+
title
|
|
135
59
|
};
|
|
136
60
|
//# sourceMappingURL=index77.js.map
|
package/dist/index77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.js","sources":[
|
|
1
|
+
{"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index78.cjs
CHANGED
|
@@ -1,48 +1,33 @@
|
|
|
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
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const chartContainer = "krc-chartContainer-2Oz2N";
|
|
13
|
-
const loading = "krc-loading-hTkxl";
|
|
14
|
-
const error = "krc-error--F7yO";
|
|
15
|
-
const retryButton = "krc-retryButton-w0SS7";
|
|
16
|
-
const empty = "krc-empty-HWTS-";
|
|
3
|
+
const wrap = "krc-wrap-JRsc1";
|
|
4
|
+
const root = "krc-root-k9ocd";
|
|
5
|
+
const colh = "krc-colh-Fi0Kr";
|
|
6
|
+
const rowh = "krc-rowh-bTG4G";
|
|
7
|
+
const corner = "krc-corner-MNGJd";
|
|
8
|
+
const cell = "krc-cell-i0lDG";
|
|
9
|
+
const bad = "krc-bad-Hb1F3";
|
|
10
|
+
const ok = "krc-ok-hx6Lc";
|
|
11
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
17
12
|
const styles = {
|
|
13
|
+
wrap,
|
|
18
14
|
root,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
active,
|
|
27
|
-
chartContainer,
|
|
28
|
-
loading,
|
|
29
|
-
error,
|
|
30
|
-
retryButton,
|
|
31
|
-
empty
|
|
15
|
+
colh,
|
|
16
|
+
rowh,
|
|
17
|
+
corner,
|
|
18
|
+
cell,
|
|
19
|
+
bad,
|
|
20
|
+
ok,
|
|
21
|
+
clickable
|
|
32
22
|
};
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
23
|
+
exports.bad = bad;
|
|
24
|
+
exports.cell = cell;
|
|
25
|
+
exports.clickable = clickable;
|
|
26
|
+
exports.colh = colh;
|
|
27
|
+
exports.corner = corner;
|
|
36
28
|
exports.default = styles;
|
|
37
|
-
exports.
|
|
38
|
-
exports.error = error;
|
|
39
|
-
exports.header = header;
|
|
40
|
-
exports.headerLeft = headerLeft;
|
|
41
|
-
exports.headerRight = headerRight;
|
|
42
|
-
exports.loading = loading;
|
|
43
|
-
exports.retryButton = retryButton;
|
|
29
|
+
exports.ok = ok;
|
|
44
30
|
exports.root = root;
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.toolbar = toolbar;
|
|
31
|
+
exports.rowh = rowh;
|
|
32
|
+
exports.wrap = wrap;
|
|
48
33
|
//# sourceMappingURL=index78.cjs.map
|
package/dist/index78.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|