@ktnpm_devops/react-component 0.6.0 → 0.7.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/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
- package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts +5 -1
- package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- 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 +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index24.cjs +14 -11
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +14 -11
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +11 -9
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +11 -9
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +1 -1
- package/dist/index31.cjs +2 -2
- package/dist/index31.js +2 -2
- package/dist/index32.cjs +2 -2
- package/dist/index32.js +2 -2
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +2 -2
- package/dist/index39.js +2 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +3 -3
- package/dist/index41.js +3 -3
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +2 -2
- package/dist/index47.js +2 -2
- package/dist/index49.cjs +20 -2
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +21 -3
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +12 -15
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +12 -15
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +18 -76
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +17 -75
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +13 -13
- package/dist/index52.js +13 -13
- package/dist/index53.cjs +76 -27
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +75 -26
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +22 -19
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +22 -19
- package/dist/index54.js.map +1 -1
- package/dist/index57.cjs +10 -19
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +11 -20
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +35 -5
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +36 -6
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +19 -10
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +19 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +34 -10
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +35 -11
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +19 -64
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +20 -65
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +2 -11
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +3 -12
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +20 -2
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +21 -3
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +76 -31
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +76 -31
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +16 -19
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +16 -19
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +2 -14
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +2 -14
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +66 -30
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +66 -30
- package/dist/index67.js.map +1 -1
- package/dist/index69.cjs +16 -19
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +16 -19
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +10 -13
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +10 -13
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +9 -9
- package/dist/index71.js +10 -10
- package/dist/index72.cjs +2 -5
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +2 -5
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +5 -38
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +6 -39
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +37 -16
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +38 -17
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +43 -34
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +43 -34
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +50 -2
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +51 -3
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +134 -58
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +133 -57
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +40 -25
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +40 -25
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +13 -49
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +14 -50
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +49 -43
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +50 -44
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +28 -31
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +28 -31
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +52 -16
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +52 -16
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +30 -54
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +30 -54
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +13 -16
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +14 -17
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +35 -77
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +35 -77
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +22 -134
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +21 -133
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +4 -40
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +5 -41
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +25 -28
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +25 -28
- package/dist/index88.js.map +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/style.css +37 -16
- package/package.json +1 -1
package/dist/index86.cjs
CHANGED
|
@@ -1,136 +1,24 @@
|
|
|
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
|
-
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-jkFwM";
|
|
4
|
+
const sidebar = "krc-sidebar-g7vxQ";
|
|
5
|
+
const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
|
|
6
|
+
const main = "krc-main-B4HyG";
|
|
7
|
+
const content = "krc-content-72sFf";
|
|
8
|
+
const title = "krc-title-pe-1P";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
sidebar,
|
|
12
|
+
sidebarCollapsed,
|
|
13
|
+
main,
|
|
14
|
+
content,
|
|
15
|
+
title
|
|
16
|
+
};
|
|
17
|
+
exports.content = content;
|
|
18
|
+
exports.default = styles;
|
|
19
|
+
exports.main = main;
|
|
20
|
+
exports.root = root;
|
|
21
|
+
exports.sidebar = sidebar;
|
|
22
|
+
exports.sidebarCollapsed = sidebarCollapsed;
|
|
23
|
+
exports.title = title;
|
|
136
24
|
//# sourceMappingURL=index86.cjs.map
|
package/dist/index86.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index86.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index86.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index86.js
CHANGED
|
@@ -1,136 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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-jkFwM";
|
|
2
|
+
const sidebar = "krc-sidebar-g7vxQ";
|
|
3
|
+
const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
|
|
4
|
+
const main = "krc-main-B4HyG";
|
|
5
|
+
const content = "krc-content-72sFf";
|
|
6
|
+
const title = "krc-title-pe-1P";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
sidebar,
|
|
10
|
+
sidebarCollapsed,
|
|
11
|
+
main,
|
|
12
|
+
content,
|
|
13
|
+
title
|
|
14
|
+
};
|
|
130
15
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
16
|
+
content,
|
|
17
|
+
styles as default,
|
|
18
|
+
main,
|
|
19
|
+
root,
|
|
20
|
+
sidebar,
|
|
21
|
+
sidebarCollapsed,
|
|
22
|
+
title
|
|
135
23
|
};
|
|
136
24
|
//# sourceMappingURL=index86.js.map
|
package/dist/index86.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index86.js","sources":[
|
|
1
|
+
{"version":3,"file":"index86.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/index87.cjs
CHANGED
|
@@ -1,48 +1,12 @@
|
|
|
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 headerLeft = "krc-headerLeft-80jJu";
|
|
6
|
-
const title = "krc-title--e-Ci";
|
|
7
|
-
const subtitle = "krc-subtitle-63ixC";
|
|
8
|
-
const headerRight = "krc-headerRight-3Vuls";
|
|
9
|
-
const toolbar = "krc-toolbar-h6ALf";
|
|
10
|
-
const chartTypeToggle = "krc-chartTypeToggle-6DRWb";
|
|
11
|
-
const active = "krc-active-Un9q0";
|
|
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 root = "krc-root--zhUO";
|
|
4
|
+
const dot = "krc-dot-uJk1V";
|
|
17
5
|
const styles = {
|
|
18
6
|
root,
|
|
19
|
-
|
|
20
|
-
headerLeft,
|
|
21
|
-
title,
|
|
22
|
-
subtitle,
|
|
23
|
-
headerRight,
|
|
24
|
-
toolbar,
|
|
25
|
-
chartTypeToggle,
|
|
26
|
-
active,
|
|
27
|
-
chartContainer,
|
|
28
|
-
loading,
|
|
29
|
-
error,
|
|
30
|
-
retryButton,
|
|
31
|
-
empty
|
|
7
|
+
dot
|
|
32
8
|
};
|
|
33
|
-
exports.active = active;
|
|
34
|
-
exports.chartContainer = chartContainer;
|
|
35
|
-
exports.chartTypeToggle = chartTypeToggle;
|
|
36
9
|
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;
|
|
10
|
+
exports.dot = dot;
|
|
44
11
|
exports.root = root;
|
|
45
|
-
exports.subtitle = subtitle;
|
|
46
|
-
exports.title = title;
|
|
47
|
-
exports.toolbar = toolbar;
|
|
48
12
|
//# sourceMappingURL=index87.cjs.map
|
package/dist/index87.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/index87.js
CHANGED
|
@@ -1,48 +1,12 @@
|
|
|
1
|
-
const root = "krc-root
|
|
2
|
-
const
|
|
3
|
-
const headerLeft = "krc-headerLeft-80jJu";
|
|
4
|
-
const title = "krc-title--e-Ci";
|
|
5
|
-
const subtitle = "krc-subtitle-63ixC";
|
|
6
|
-
const headerRight = "krc-headerRight-3Vuls";
|
|
7
|
-
const toolbar = "krc-toolbar-h6ALf";
|
|
8
|
-
const chartTypeToggle = "krc-chartTypeToggle-6DRWb";
|
|
9
|
-
const active = "krc-active-Un9q0";
|
|
10
|
-
const chartContainer = "krc-chartContainer-2Oz2N";
|
|
11
|
-
const loading = "krc-loading-hTkxl";
|
|
12
|
-
const error = "krc-error--F7yO";
|
|
13
|
-
const retryButton = "krc-retryButton-w0SS7";
|
|
14
|
-
const empty = "krc-empty-HWTS-";
|
|
1
|
+
const root = "krc-root--zhUO";
|
|
2
|
+
const dot = "krc-dot-uJk1V";
|
|
15
3
|
const styles = {
|
|
16
4
|
root,
|
|
17
|
-
|
|
18
|
-
headerLeft,
|
|
19
|
-
title,
|
|
20
|
-
subtitle,
|
|
21
|
-
headerRight,
|
|
22
|
-
toolbar,
|
|
23
|
-
chartTypeToggle,
|
|
24
|
-
active,
|
|
25
|
-
chartContainer,
|
|
26
|
-
loading,
|
|
27
|
-
error,
|
|
28
|
-
retryButton,
|
|
29
|
-
empty
|
|
5
|
+
dot
|
|
30
6
|
};
|
|
31
7
|
export {
|
|
32
|
-
active,
|
|
33
|
-
chartContainer,
|
|
34
|
-
chartTypeToggle,
|
|
35
8
|
styles as default,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
header,
|
|
39
|
-
headerLeft,
|
|
40
|
-
headerRight,
|
|
41
|
-
loading,
|
|
42
|
-
retryButton,
|
|
43
|
-
root,
|
|
44
|
-
subtitle,
|
|
45
|
-
title,
|
|
46
|
-
toolbar
|
|
9
|
+
dot,
|
|
10
|
+
root
|
|
47
11
|
};
|
|
48
12
|
//# sourceMappingURL=index87.js.map
|
package/dist/index87.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index87.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index87.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/index88.cjs
CHANGED
|
@@ -1,36 +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 empty = "krc-empty---cYi";
|
|
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";
|
|
13
12
|
const styles = {
|
|
13
|
+
wrap,
|
|
14
14
|
root,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
error,
|
|
23
|
-
empty
|
|
15
|
+
colh,
|
|
16
|
+
rowh,
|
|
17
|
+
corner,
|
|
18
|
+
cell,
|
|
19
|
+
bad,
|
|
20
|
+
ok,
|
|
21
|
+
clickable
|
|
24
22
|
};
|
|
25
|
-
exports.
|
|
23
|
+
exports.bad = bad;
|
|
24
|
+
exports.cell = cell;
|
|
25
|
+
exports.clickable = clickable;
|
|
26
|
+
exports.colh = colh;
|
|
27
|
+
exports.corner = corner;
|
|
26
28
|
exports.default = styles;
|
|
27
|
-
exports.
|
|
28
|
-
exports.error = error;
|
|
29
|
-
exports.header = header;
|
|
30
|
-
exports.loading = loading;
|
|
29
|
+
exports.ok = ok;
|
|
31
30
|
exports.root = root;
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.timeRangeGroup = timeRangeGroup;
|
|
35
|
-
exports.title = title;
|
|
31
|
+
exports.rowh = rowh;
|
|
32
|
+
exports.wrap = wrap;
|
|
36
33
|
//# sourceMappingURL=index88.cjs.map
|
package/dist/index88.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index88.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index88.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index88.js
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const empty = "krc-empty---cYi";
|
|
1
|
+
const wrap = "krc-wrap-JRsc1";
|
|
2
|
+
const root = "krc-root-k9ocd";
|
|
3
|
+
const colh = "krc-colh-Fi0Kr";
|
|
4
|
+
const rowh = "krc-rowh-bTG4G";
|
|
5
|
+
const corner = "krc-corner-MNGJd";
|
|
6
|
+
const cell = "krc-cell-i0lDG";
|
|
7
|
+
const bad = "krc-bad-Hb1F3";
|
|
8
|
+
const ok = "krc-ok-hx6Lc";
|
|
9
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
11
10
|
const styles = {
|
|
11
|
+
wrap,
|
|
12
12
|
root,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
error,
|
|
21
|
-
empty
|
|
13
|
+
colh,
|
|
14
|
+
rowh,
|
|
15
|
+
corner,
|
|
16
|
+
cell,
|
|
17
|
+
bad,
|
|
18
|
+
ok,
|
|
19
|
+
clickable
|
|
22
20
|
};
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
bad,
|
|
23
|
+
cell,
|
|
24
|
+
clickable,
|
|
25
|
+
colh,
|
|
26
|
+
corner,
|
|
25
27
|
styles as default,
|
|
26
|
-
|
|
27
|
-
error,
|
|
28
|
-
header,
|
|
29
|
-
loading,
|
|
28
|
+
ok,
|
|
30
29
|
root,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
timeRangeGroup,
|
|
34
|
-
title
|
|
30
|
+
rowh,
|
|
31
|
+
wrap
|
|
35
32
|
};
|
|
36
33
|
//# sourceMappingURL=index88.js.map
|
package/dist/index88.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index88.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index88.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index9.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index48.cjs");
|
|
6
|
-
const Accordion_module = require("./
|
|
6
|
+
const Accordion_module = require("./index59.cjs");
|
|
7
7
|
const Accordion = react.forwardRef(
|
|
8
8
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: clsx.clsx(Accordion_module.default.root, className), ...props, children })
|
|
9
9
|
);
|
package/dist/index9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useId } from "react";
|
|
3
3
|
import { clsx } from "./index48.js";
|
|
4
|
-
import styles from "./
|
|
4
|
+
import styles from "./index59.js";
|
|
5
5
|
const Accordion = forwardRef(
|
|
6
6
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: clsx(styles.root, className), ...props, children })
|
|
7
7
|
);
|