@ktnpm_devops/react-component 0.7.1 → 0.9.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/composites/ChipGroup/ChipGroup.d.ts +4 -0
- package/dist/composites/ChipGroup/ChipGroup.d.ts.map +1 -0
- package/dist/composites/ChipGroup/ChipGroup.types.d.ts +20 -0
- package/dist/composites/ChipGroup/ChipGroup.types.d.ts.map +1 -0
- package/dist/composites/ChipGroup/index.d.ts +3 -0
- package/dist/composites/ChipGroup/index.d.ts.map +1 -0
- package/dist/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.cjs +37 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -31
- 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 +3 -3
- package/dist/index15.js +3 -3
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +15 -40
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +15 -40
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +24 -88
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +26 -90
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +40 -155
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +42 -157
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +86 -132
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +88 -134
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +150 -113
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +151 -114
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +136 -17
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +136 -17
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +98 -141
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +97 -140
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +16 -132
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +16 -132
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +160 -73
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +162 -75
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +130 -7
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +132 -9
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +74 -128
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +76 -130
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +8 -38
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +9 -39
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +118 -213
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +119 -214
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +38 -34
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +39 -35
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +222 -106
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +224 -108
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +29 -73
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +31 -75
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +104 -53
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +105 -54
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +62 -147
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +63 -148
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +75 -69
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +77 -71
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +57 -6
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +57 -6
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +152 -16
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +152 -16
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +66 -71
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +68 -73
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +7 -142
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +9 -144
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +17 -64
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +17 -64
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +69 -97
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +71 -99
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +140 -44
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +141 -45
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +64 -6
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +65 -7
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +74 -185
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +67 -178
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +45 -6
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +46 -7
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +6 -17
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +6 -17
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +208 -58
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +209 -59
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +10 -16
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +9 -15
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +19 -25
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +18 -24
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +67 -15
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +66 -14
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +15 -18
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +15 -18
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +24 -15
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +24 -15
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +24 -76
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +23 -75
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +22 -22
- package/dist/index54.js +22 -22
- package/dist/index55.cjs +6 -18
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +6 -18
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +80 -6
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +79 -5
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +28 -10
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +28 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +14 -35
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +14 -35
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +13 -19
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +14 -20
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +10 -34
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +11 -35
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +13 -19
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +14 -20
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +53 -2
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +54 -3
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +2 -20
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +3 -21
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +2 -80
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +3 -81
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +5 -17
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +5 -17
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +47 -2
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +48 -3
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +19 -64
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +20 -65
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +19 -34
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +19 -34
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +2 -17
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +3 -18
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +17 -8
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +18 -9
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +2 -17
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +3 -18
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +30 -3
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +30 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +65 -5
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +66 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +2 -38
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +3 -39
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +34 -46
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +34 -46
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +13 -49
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +14 -50
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +22 -134
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +21 -133
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +17 -38
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +18 -39
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +79 -13
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +80 -14
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +25 -52
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +25 -52
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +48 -27
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +48 -27
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +15 -51
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +15 -51
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +6 -30
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +6 -30
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +28 -13
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +29 -14
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +134 -43
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +133 -42
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +39 -15
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +40 -16
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +37 -4
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +38 -5
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +52 -25
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +52 -25
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +21 -0
- package/dist/index89.cjs.map +1 -0
- package/dist/index89.js +21 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.cjs +2 -2
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +24 -0
- package/dist/index90.cjs.map +1 -0
- package/dist/index90.js +24 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.cjs +18 -0
- package/dist/index91.cjs.map +1 -0
- package/dist/index91.js +18 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.cjs +42 -0
- package/dist/index92.cjs.map +1 -0
- package/dist/index92.js +42 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.cjs +24 -0
- package/dist/index93.cjs.map +1 -0
- package/dist/index93.js +24 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.cjs +45 -0
- package/dist/index94.cjs.map +1 -0
- package/dist/index94.js +45 -0
- package/dist/index94.js.map +1 -0
- package/dist/primitives/Chip/Chip.d.ts +4 -0
- package/dist/primitives/Chip/Chip.d.ts.map +1 -0
- package/dist/primitives/Chip/Chip.types.d.ts +12 -0
- package/dist/primitives/Chip/Chip.types.d.ts.map +1 -0
- package/dist/primitives/Chip/index.d.ts +3 -0
- package/dist/primitives/Chip/index.d.ts.map +1 -0
- package/dist/primitives/RangeSlider/RangeSlider.d.ts +4 -0
- package/dist/primitives/RangeSlider/RangeSlider.d.ts.map +1 -0
- package/dist/primitives/RangeSlider/RangeSlider.types.d.ts +12 -0
- package/dist/primitives/RangeSlider/RangeSlider.types.d.ts.map +1 -0
- package/dist/primitives/RangeSlider/index.d.ts +3 -0
- package/dist/primitives/RangeSlider/index.d.ts.map +1 -0
- package/dist/style.css +169 -18
- package/package.json +1 -1
package/dist/index77.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-wErEG";
|
|
4
|
+
const list = "krc-list-Np3Qt";
|
|
5
|
+
const page = "krc-page-znalz";
|
|
6
|
+
const arrow = "krc-arrow-ruhgF";
|
|
7
|
+
const isActive = "krc-isActive-azJrs";
|
|
8
|
+
const ellipsis = "krc-ellipsis-vMrZ6";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
list,
|
|
12
|
+
page,
|
|
13
|
+
arrow,
|
|
14
|
+
isActive,
|
|
15
|
+
ellipsis
|
|
16
|
+
};
|
|
17
|
+
exports.arrow = arrow;
|
|
18
|
+
exports.default = styles;
|
|
19
|
+
exports.ellipsis = ellipsis;
|
|
20
|
+
exports.isActive = isActive;
|
|
21
|
+
exports.list = list;
|
|
22
|
+
exports.page = page;
|
|
23
|
+
exports.root = root;
|
|
136
24
|
//# 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,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-wErEG";
|
|
2
|
+
const list = "krc-list-Np3Qt";
|
|
3
|
+
const page = "krc-page-znalz";
|
|
4
|
+
const arrow = "krc-arrow-ruhgF";
|
|
5
|
+
const isActive = "krc-isActive-azJrs";
|
|
6
|
+
const ellipsis = "krc-ellipsis-vMrZ6";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
list,
|
|
10
|
+
page,
|
|
11
|
+
arrow,
|
|
12
|
+
isActive,
|
|
13
|
+
ellipsis
|
|
14
|
+
};
|
|
130
15
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
16
|
+
arrow,
|
|
17
|
+
styles as default,
|
|
18
|
+
ellipsis,
|
|
19
|
+
isActive,
|
|
20
|
+
list,
|
|
21
|
+
page,
|
|
22
|
+
root
|
|
135
23
|
};
|
|
136
24
|
//# 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,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=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":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index78.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=index78.js.map
|
package/dist/index78.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index79.cjs
CHANGED
|
@@ -1,21 +1,87 @@
|
|
|
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
|
|
3
|
+
const root = "krc-root-WYIsp";
|
|
4
|
+
const trigger = "krc-trigger-UedSS";
|
|
5
|
+
const active = "krc-active-cH8Tl";
|
|
6
|
+
const triggerContent = "krc-triggerContent-Kkhoi";
|
|
7
|
+
const chevron = "krc-chevron-NoNsI";
|
|
8
|
+
const label = "krc-label-RPlXR";
|
|
9
|
+
const valueGroup = "krc-valueGroup-xfNcx";
|
|
10
|
+
const value = "krc-value-aKdIW";
|
|
11
|
+
const badge = "krc-badge-yVq9o";
|
|
12
|
+
const clear = "krc-clear-11V9Q";
|
|
13
|
+
const panel = "krc-panel-xf2f8";
|
|
14
|
+
const header = "krc-header--VMR-";
|
|
15
|
+
const search = "krc-search-4gQgB";
|
|
16
|
+
const headerActions = "krc-headerActions-orxXD";
|
|
17
|
+
const chip = "krc-chip--n-9m";
|
|
18
|
+
const chipGhost = "krc-chipGhost-oayjh";
|
|
19
|
+
const list = "krc-list-NRoxf";
|
|
20
|
+
const status = "krc-status-j7xbM";
|
|
21
|
+
const statusError = "krc-statusError-u6rfB";
|
|
22
|
+
const option = "krc-option-ZAXum";
|
|
23
|
+
const optionLabel = "krc-optionLabel-MdDyI";
|
|
24
|
+
const optionCount = "krc-optionCount-JSQl9";
|
|
25
|
+
const create = "krc-create-hO8Cq";
|
|
26
|
+
const footer = "krc-footer-2yk6S";
|
|
27
|
+
const selection = "krc-selection-aYDH-";
|
|
28
|
+
const selectionDelta = "krc-selectionDelta-S1dV7";
|
|
29
|
+
const footerActions = "krc-footerActions-77iCX";
|
|
8
30
|
const styles = {
|
|
9
31
|
root,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
32
|
+
trigger,
|
|
33
|
+
active,
|
|
34
|
+
triggerContent,
|
|
35
|
+
chevron,
|
|
36
|
+
label,
|
|
37
|
+
valueGroup,
|
|
38
|
+
value,
|
|
39
|
+
badge,
|
|
40
|
+
clear,
|
|
41
|
+
panel,
|
|
42
|
+
header,
|
|
43
|
+
search,
|
|
44
|
+
headerActions,
|
|
45
|
+
chip,
|
|
46
|
+
chipGhost,
|
|
47
|
+
list,
|
|
48
|
+
status,
|
|
49
|
+
statusError,
|
|
50
|
+
option,
|
|
51
|
+
optionLabel,
|
|
52
|
+
optionCount,
|
|
53
|
+
create,
|
|
54
|
+
footer,
|
|
55
|
+
selection,
|
|
56
|
+
selectionDelta,
|
|
57
|
+
footerActions
|
|
14
58
|
};
|
|
59
|
+
exports.active = active;
|
|
60
|
+
exports.badge = badge;
|
|
61
|
+
exports.chevron = chevron;
|
|
62
|
+
exports.chip = chip;
|
|
63
|
+
exports.chipGhost = chipGhost;
|
|
64
|
+
exports.clear = clear;
|
|
65
|
+
exports.create = create;
|
|
15
66
|
exports.default = styles;
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
67
|
+
exports.footer = footer;
|
|
68
|
+
exports.footerActions = footerActions;
|
|
69
|
+
exports.header = header;
|
|
70
|
+
exports.headerActions = headerActions;
|
|
71
|
+
exports.label = label;
|
|
72
|
+
exports.list = list;
|
|
73
|
+
exports.option = option;
|
|
74
|
+
exports.optionCount = optionCount;
|
|
75
|
+
exports.optionLabel = optionLabel;
|
|
76
|
+
exports.panel = panel;
|
|
20
77
|
exports.root = root;
|
|
78
|
+
exports.search = search;
|
|
79
|
+
exports.selection = selection;
|
|
80
|
+
exports.selectionDelta = selectionDelta;
|
|
81
|
+
exports.status = status;
|
|
82
|
+
exports.statusError = statusError;
|
|
83
|
+
exports.trigger = trigger;
|
|
84
|
+
exports.triggerContent = triggerContent;
|
|
85
|
+
exports.value = value;
|
|
86
|
+
exports.valueGroup = valueGroup;
|
|
21
87
|
//# sourceMappingURL=index79.cjs.map
|
package/dist/index79.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|