@ktnpm_devops/react-component 0.10.0 → 0.11.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/charts/TemporalTrendChartCard/TemporalTrendChartCard.d.ts +1 -1
- package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.d.ts.map +1 -1
- package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.types.d.ts +24 -1
- package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.types.d.ts.map +1 -1
- package/dist/charts/TemporalTrendChartCard/buildChartOption.d.ts +138 -0
- package/dist/charts/TemporalTrendChartCard/buildChartOption.d.ts.map +1 -0
- package/dist/charts/TemporalTrendChartCard/index.d.ts +1 -1
- package/dist/charts/TemporalTrendChartCard/index.d.ts.map +1 -1
- package/dist/index.cjs +39 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -35
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +42 -0
- package/dist/index100.cjs.map +1 -0
- package/dist/index100.js +42 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.cjs +118 -0
- package/dist/index101.cjs.map +1 -0
- package/dist/index101.js +118 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.cjs +45 -0
- package/dist/index102.cjs.map +1 -0
- package/dist/index102.js +45 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.cjs +18 -0
- package/dist/index103.cjs.map +1 -0
- package/dist/index103.js +18 -0
- package/dist/index103.js.map +1 -0
- 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 +3 -3
- package/dist/index15.js +3 -3
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +52 -16
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +54 -18
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +16 -24
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +17 -25
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +22 -39
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +23 -40
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +38 -85
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +40 -87
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +85 -153
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +87 -155
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +150 -128
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +150 -128
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +121 -106
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +122 -107
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +121 -17
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +121 -17
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +16 -163
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +16 -163
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +132 -99
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +132 -99
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +14 -69
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +15 -70
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +130 -7
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +132 -9
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +74 -128
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +76 -130
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +8 -38
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +9 -39
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +118 -213
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +119 -214
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +38 -34
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +39 -35
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +222 -106
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +224 -108
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +30 -64
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +31 -65
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +106 -74
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +108 -76
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +63 -54
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +64 -55
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +69 -144
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +70 -145
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +57 -96
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +59 -98
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +147 -66
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +149 -68
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +97 -7
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +99 -9
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +72 -17
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +73 -18
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +7 -76
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +9 -78
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +17 -143
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +17 -143
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +72 -59
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +74 -61
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +136 -98
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +137 -99
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +49 -32
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +49 -32
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +105 -6
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +106 -7
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +43 -212
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +44 -213
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +6 -8
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +6 -8
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +145 -15
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +147 -17
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +7 -65
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +9 -67
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +19 -16
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +18 -15
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +67 -27
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +66 -26
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +15 -6
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +15 -6
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +18 -9
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +18 -9
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +19 -13
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +19 -13
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +23 -2
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +24 -3
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +17 -2
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +18 -3
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +69 -89
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +68 -88
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +2 -20
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +3 -21
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +89 -42
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +88 -41
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +28 -19
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +29 -20
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +20 -2
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +20 -2
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +79 -19
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +80 -20
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +2 -65
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +3 -66
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +34 -19
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +34 -19
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +53 -5
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +54 -6
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +16 -10
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +17 -11
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +14 -2
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +14 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +4 -34
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +5 -35
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +37 -10
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +38 -11
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +14 -14
- package/dist/index72.js +15 -15
- package/dist/index73.cjs +13 -46
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +14 -47
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +34 -16
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +34 -16
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +57 -39
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +56 -38
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +51 -92
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +50 -91
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +134 -40
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +133 -39
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +28 -40
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +29 -41
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +24 -24
- package/dist/index79.js +24 -24
- package/dist/index80.cjs +34 -134
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +33 -133
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +17 -38
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +18 -39
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +14 -38
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +14 -38
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +13 -25
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +13 -25
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +13 -34
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +13 -34
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +16 -4
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +17 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +16 -28
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +16 -28
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +2 -14
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +2 -14
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +2 -80
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +3 -81
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +16 -49
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +17 -50
- package/dist/index89.js.map +1 -1
- package/dist/index9.cjs +2 -2
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +19 -10
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +19 -10
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +5 -23
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +6 -24
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +10 -13
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +10 -13
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +2 -17
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +2 -17
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +9 -15
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +10 -16
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +49 -28
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +49 -28
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +25 -52
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +25 -52
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +21 -15
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +21 -15
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +39 -24
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +38 -23
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +95 -0
- package/dist/index99.cjs.map +1 -0
- package/dist/index99.js +95 -0
- package/dist/index99.js.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +4 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/primitives/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/primitives/Checkbox/index.d.ts +3 -0
- package/dist/primitives/Checkbox/index.d.ts.map +1 -0
- package/dist/primitives/EmptyState/EmptyState.d.ts +4 -0
- package/dist/primitives/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/primitives/EmptyState/EmptyState.types.d.ts +14 -0
- package/dist/primitives/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/primitives/EmptyState/index.d.ts +3 -0
- package/dist/primitives/EmptyState/index.d.ts.map +1 -0
- package/dist/style.css +98 -0
- package/dist/types/chart.types.d.ts +11 -0
- package/dist/types/chart.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index80.cjs
CHANGED
|
@@ -1,136 +1,36 @@
|
|
|
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
|
-
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-oXC0g";
|
|
4
|
+
const trigger = "krc-trigger-2YW6R";
|
|
5
|
+
const triggerContent = "krc-triggerContent-Nfhff";
|
|
6
|
+
const chevron = "krc-chevron-otnpb";
|
|
7
|
+
const chevronOpen = "krc-chevronOpen-UoLND";
|
|
8
|
+
const badge = "krc-badge-dN-p-";
|
|
9
|
+
const pop = "krc-pop-IfyfL";
|
|
10
|
+
const chips = "krc-chips-J7YEf";
|
|
11
|
+
const clear = "krc-clear--yvPZ";
|
|
12
|
+
const input = "krc-input--QI2U";
|
|
13
|
+
const styles = {
|
|
14
|
+
root,
|
|
15
|
+
trigger,
|
|
16
|
+
triggerContent,
|
|
17
|
+
chevron,
|
|
18
|
+
chevronOpen,
|
|
19
|
+
badge,
|
|
20
|
+
pop,
|
|
21
|
+
chips,
|
|
22
|
+
clear,
|
|
23
|
+
input
|
|
24
|
+
};
|
|
25
|
+
exports.badge = badge;
|
|
26
|
+
exports.chevron = chevron;
|
|
27
|
+
exports.chevronOpen = chevronOpen;
|
|
28
|
+
exports.chips = chips;
|
|
29
|
+
exports.clear = clear;
|
|
30
|
+
exports.default = styles;
|
|
31
|
+
exports.input = input;
|
|
32
|
+
exports.pop = pop;
|
|
33
|
+
exports.root = root;
|
|
34
|
+
exports.trigger = trigger;
|
|
35
|
+
exports.triggerContent = triggerContent;
|
|
136
36
|
//# sourceMappingURL=index80.cjs.map
|
package/dist/index80.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index80.js
CHANGED
|
@@ -1,136 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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-oXC0g";
|
|
2
|
+
const trigger = "krc-trigger-2YW6R";
|
|
3
|
+
const triggerContent = "krc-triggerContent-Nfhff";
|
|
4
|
+
const chevron = "krc-chevron-otnpb";
|
|
5
|
+
const chevronOpen = "krc-chevronOpen-UoLND";
|
|
6
|
+
const badge = "krc-badge-dN-p-";
|
|
7
|
+
const pop = "krc-pop-IfyfL";
|
|
8
|
+
const chips = "krc-chips-J7YEf";
|
|
9
|
+
const clear = "krc-clear--yvPZ";
|
|
10
|
+
const input = "krc-input--QI2U";
|
|
11
|
+
const styles = {
|
|
12
|
+
root,
|
|
13
|
+
trigger,
|
|
14
|
+
triggerContent,
|
|
15
|
+
chevron,
|
|
16
|
+
chevronOpen,
|
|
17
|
+
badge,
|
|
18
|
+
pop,
|
|
19
|
+
chips,
|
|
20
|
+
clear,
|
|
21
|
+
input
|
|
22
|
+
};
|
|
130
23
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
24
|
+
badge,
|
|
25
|
+
chevron,
|
|
26
|
+
chevronOpen,
|
|
27
|
+
chips,
|
|
28
|
+
clear,
|
|
29
|
+
styles as default,
|
|
30
|
+
input,
|
|
31
|
+
pop,
|
|
32
|
+
root,
|
|
33
|
+
trigger,
|
|
34
|
+
triggerContent
|
|
135
35
|
};
|
|
136
36
|
//# sourceMappingURL=index80.js.map
|
package/dist/index80.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.js","sources":[
|
|
1
|
+
{"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index81.cjs
CHANGED
|
@@ -1,48 +1,27 @@
|
|
|
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
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
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-cQSdQ";
|
|
4
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
5
|
+
const active = "krc-active-c6Qv6";
|
|
6
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
7
|
+
const icon = "krc-icon-dmCQi";
|
|
8
|
+
const label = "krc-label-ohVFC";
|
|
9
|
+
const badge = "krc-badge-D8UnW";
|
|
17
10
|
const styles = {
|
|
18
11
|
root,
|
|
19
|
-
|
|
20
|
-
headerLeft,
|
|
21
|
-
title,
|
|
22
|
-
subtitle,
|
|
23
|
-
headerRight,
|
|
24
|
-
toolbar,
|
|
25
|
-
chartTypeToggle,
|
|
12
|
+
disabled,
|
|
26
13
|
active,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
empty
|
|
14
|
+
collapsed,
|
|
15
|
+
icon,
|
|
16
|
+
label,
|
|
17
|
+
badge
|
|
32
18
|
};
|
|
33
19
|
exports.active = active;
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
20
|
+
exports.badge = badge;
|
|
21
|
+
exports.collapsed = collapsed;
|
|
36
22
|
exports.default = styles;
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.headerLeft = headerLeft;
|
|
41
|
-
exports.headerRight = headerRight;
|
|
42
|
-
exports.loading = loading;
|
|
43
|
-
exports.retryButton = retryButton;
|
|
23
|
+
exports.disabled = disabled;
|
|
24
|
+
exports.icon = icon;
|
|
25
|
+
exports.label = label;
|
|
44
26
|
exports.root = root;
|
|
45
|
-
exports.subtitle = subtitle;
|
|
46
|
-
exports.title = title;
|
|
47
|
-
exports.toolbar = toolbar;
|
|
48
27
|
//# sourceMappingURL=index81.cjs.map
|
package/dist/index81.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index81.js
CHANGED
|
@@ -1,48 +1,27 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
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-cQSdQ";
|
|
2
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
3
|
+
const active = "krc-active-c6Qv6";
|
|
4
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
5
|
+
const icon = "krc-icon-dmCQi";
|
|
6
|
+
const label = "krc-label-ohVFC";
|
|
7
|
+
const badge = "krc-badge-D8UnW";
|
|
15
8
|
const styles = {
|
|
16
9
|
root,
|
|
17
|
-
|
|
18
|
-
headerLeft,
|
|
19
|
-
title,
|
|
20
|
-
subtitle,
|
|
21
|
-
headerRight,
|
|
22
|
-
toolbar,
|
|
23
|
-
chartTypeToggle,
|
|
10
|
+
disabled,
|
|
24
11
|
active,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
empty
|
|
12
|
+
collapsed,
|
|
13
|
+
icon,
|
|
14
|
+
label,
|
|
15
|
+
badge
|
|
30
16
|
};
|
|
31
17
|
export {
|
|
32
18
|
active,
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
badge,
|
|
20
|
+
collapsed,
|
|
35
21
|
styles as default,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
headerRight,
|
|
41
|
-
loading,
|
|
42
|
-
retryButton,
|
|
43
|
-
root,
|
|
44
|
-
subtitle,
|
|
45
|
-
title,
|
|
46
|
-
toolbar
|
|
22
|
+
disabled,
|
|
23
|
+
icon,
|
|
24
|
+
label,
|
|
25
|
+
root
|
|
47
26
|
};
|
|
48
27
|
//# sourceMappingURL=index81.js.map
|
package/dist/index81.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index81.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index82.cjs
CHANGED
|
@@ -1,45 +1,21 @@
|
|
|
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 select = "krc-select-79sIN";
|
|
9
|
-
const legendToggle = "krc-legendToggle--ofSS";
|
|
10
|
-
const legendToggleActive = "krc-legendToggleActive-14gdq";
|
|
11
|
-
const chartContainer = "krc-chartContainer-tDTrg";
|
|
12
|
-
const loading = "krc-loading-WkgGt";
|
|
13
|
-
const error = "krc-error-yzAKV";
|
|
14
|
-
const retryButton = "krc-retryButton-wTkWq";
|
|
15
|
-
const empty = "krc-empty-1EZzg";
|
|
3
|
+
const region = "krc-region-4A3qS";
|
|
4
|
+
const toast = "krc-toast-VuzaK";
|
|
5
|
+
const toastIn = "krc-toast-in-TA6-r";
|
|
6
|
+
const success = "krc-success-oDnTy";
|
|
7
|
+
const error = "krc-error-dSTQn";
|
|
16
8
|
const styles = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
select,
|
|
23
|
-
legendToggle,
|
|
24
|
-
legendToggleActive,
|
|
25
|
-
chartContainer,
|
|
26
|
-
loading,
|
|
27
|
-
error,
|
|
28
|
-
retryButton,
|
|
29
|
-
empty
|
|
9
|
+
region,
|
|
10
|
+
toast,
|
|
11
|
+
toastIn,
|
|
12
|
+
success,
|
|
13
|
+
error
|
|
30
14
|
};
|
|
31
|
-
exports.chartContainer = chartContainer;
|
|
32
15
|
exports.default = styles;
|
|
33
|
-
exports.empty = empty;
|
|
34
16
|
exports.error = error;
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.loading = loading;
|
|
40
|
-
exports.retryButton = retryButton;
|
|
41
|
-
exports.root = root;
|
|
42
|
-
exports.select = select;
|
|
43
|
-
exports.title = title;
|
|
44
|
-
exports.toolbar = toolbar;
|
|
17
|
+
exports.region = region;
|
|
18
|
+
exports.success = success;
|
|
19
|
+
exports.toast = toast;
|
|
20
|
+
exports.toastIn = toastIn;
|
|
45
21
|
//# sourceMappingURL=index82.cjs.map
|
package/dist/index82.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index82.js
CHANGED
|
@@ -1,45 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const select = "krc-select-79sIN";
|
|
7
|
-
const legendToggle = "krc-legendToggle--ofSS";
|
|
8
|
-
const legendToggleActive = "krc-legendToggleActive-14gdq";
|
|
9
|
-
const chartContainer = "krc-chartContainer-tDTrg";
|
|
10
|
-
const loading = "krc-loading-WkgGt";
|
|
11
|
-
const error = "krc-error-yzAKV";
|
|
12
|
-
const retryButton = "krc-retryButton-wTkWq";
|
|
13
|
-
const empty = "krc-empty-1EZzg";
|
|
1
|
+
const region = "krc-region-4A3qS";
|
|
2
|
+
const toast = "krc-toast-VuzaK";
|
|
3
|
+
const toastIn = "krc-toast-in-TA6-r";
|
|
4
|
+
const success = "krc-success-oDnTy";
|
|
5
|
+
const error = "krc-error-dSTQn";
|
|
14
6
|
const styles = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
select,
|
|
21
|
-
legendToggle,
|
|
22
|
-
legendToggleActive,
|
|
23
|
-
chartContainer,
|
|
24
|
-
loading,
|
|
25
|
-
error,
|
|
26
|
-
retryButton,
|
|
27
|
-
empty
|
|
7
|
+
region,
|
|
8
|
+
toast,
|
|
9
|
+
toastIn,
|
|
10
|
+
success,
|
|
11
|
+
error
|
|
28
12
|
};
|
|
29
13
|
export {
|
|
30
|
-
chartContainer,
|
|
31
14
|
styles as default,
|
|
32
|
-
empty,
|
|
33
15
|
error,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
loading,
|
|
39
|
-
retryButton,
|
|
40
|
-
root,
|
|
41
|
-
select,
|
|
42
|
-
title,
|
|
43
|
-
toolbar
|
|
16
|
+
region,
|
|
17
|
+
success,
|
|
18
|
+
toast,
|
|
19
|
+
toastIn
|
|
44
20
|
};
|
|
45
21
|
//# sourceMappingURL=index82.js.map
|