@ktnpm_devops/react-component 0.14.0 → 0.16.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/GroupedBarChartCard/GroupedBarChartCard.d.ts +7 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts +38 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts +69 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts +2 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts +5 -0
- package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/index.d.ts +3 -0
- package/dist/charts/GroupedBarChartCard/index.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts +22 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts +2 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts.map +1 -0
- package/dist/constants.d.ts +30 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts +42 -0
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts +9 -0
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.d.ts +11 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts +2 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/index.d.ts +1 -1
- package/dist/data/HeatmapMatrix/index.d.ts.map +1 -1
- package/dist/index.cjs +29 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -27
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +22 -40
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +23 -41
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +50 -14
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +50 -14
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +39 -54
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +38 -53
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +92 -18
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +91 -17
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +34 -4
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +35 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +116 -16
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +115 -15
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +33 -24
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +34 -25
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +16 -52
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +16 -52
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +4 -28
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +5 -29
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +35 -24
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +34 -23
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +43 -21
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +42 -20
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +24 -15
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +23 -14
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +20 -22
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +19 -21
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +14 -40
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +13 -39
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +61 -116
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +60 -115
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +16 -37
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +16 -37
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +13 -25
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +14 -26
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +22 -1164
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +20 -1163
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +15 -1575
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +14 -1575
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +42 -0
- package/dist/index119.cjs.map +1 -0
- package/dist/index119.js +42 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +50 -0
- package/dist/index120.cjs.map +1 -0
- package/dist/index120.js +50 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.cjs +20 -0
- package/dist/index121.cjs.map +1 -0
- package/dist/index121.js +20 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.cjs +39 -0
- package/dist/index122.cjs.map +1 -0
- package/dist/index122.js +39 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.cjs +45 -0
- package/dist/index123.cjs.map +1 -0
- package/dist/index123.js +45 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.cjs +1166 -0
- package/dist/index124.cjs.map +1 -0
- package/dist/index124.js +1167 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.cjs +1578 -0
- package/dist/index125.cjs.map +1 -0
- package/dist/index125.js +1579 -0
- package/dist/index125.js.map +1 -0
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- 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 +3 -3
- package/dist/index16.js +3 -3
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +3 -3
- package/dist/index22.js +3 -3
- package/dist/index23.cjs +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +3 -3
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +2 -2
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +3 -3
- package/dist/index29.js +3 -3
- package/dist/index30.cjs +8 -8
- package/dist/index30.js +8 -8
- package/dist/index31.cjs +84 -76
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +86 -78
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +100 -6
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +101 -7
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +7 -130
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +9 -132
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +127 -52
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +129 -54
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +49 -13
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +51 -15
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +20 -38
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +21 -39
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +36 -224
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +37 -225
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +220 -28
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +222 -30
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +30 -106
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +31 -107
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +100 -58
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +101 -59
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +66 -76
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +67 -77
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +76 -57
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +78 -59
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +56 -150
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +58 -152
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +128 -73
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +123 -68
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +94 -68
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +96 -70
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +71 -7
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +71 -7
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +8 -17
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +9 -18
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +15 -75
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +16 -76
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +68 -134
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +70 -136
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +137 -58
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +138 -59
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +61 -102
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +62 -103
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +102 -44
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +103 -45
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +47 -6
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +48 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +6 -147
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +7 -148
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +146 -7
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +148 -9
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +6 -15
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +6 -15
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +15 -64
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +17 -66
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +67 -15
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +66 -14
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +15 -18
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +15 -18
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +22 -19
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +22 -19
- package/dist/index60.js.map +1 -1
- package/dist/index62.cjs +15 -24
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +15 -24
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +142 -6
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +141 -5
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +20 -2
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +21 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +10 -13
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +10 -13
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +14 -2
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +15 -3
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +13 -7
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +13 -7
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +17 -2
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +18 -3
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +33 -17
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +32 -16
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +20 -2
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +20 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +52 -116
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +50 -114
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +2 -29
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +3 -30
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +77 -14
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +78 -15
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +52 -19
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +52 -19
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +35 -5
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +36 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +17 -6
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +16 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +2 -65
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +3 -66
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +2 -20
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +3 -21
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +5 -14
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +6 -15
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +30 -21
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +30 -21
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +21 -35
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +20 -34
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +15 -43
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +14 -42
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +24 -24
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +23 -23
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +7 -20
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +6 -19
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +25 -14
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +24 -13
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +64 -55
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +64 -55
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +19 -46
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +19 -46
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +2 -35
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +3 -36
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +2 -80
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +3 -81
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +15 -39
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +14 -38
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +18 -92
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +17 -91
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +47 -32
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +47 -32
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +134 -19
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +133 -18
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +42 -36
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +42 -36
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +36 -15
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +36 -15
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +17 -26
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +18 -27
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +22 -21
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +21 -20
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +63 -127
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +63 -127
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +7 -45
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +6 -44
- package/dist/index99.js.map +1 -1
- package/dist/style.css +130 -5
- package/dist/types/chart.types.d.ts +14 -0
- package/dist/types/chart.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index95.cjs
CHANGED
|
@@ -1,21 +1,42 @@
|
|
|
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
|
|
3
|
+
const throbber = "krc-throbber-sSMfc";
|
|
4
|
+
const spinner = "krc-spinner-vmNIY";
|
|
5
|
+
const loadingSpin = "krc-loading-spin-cFeV6";
|
|
6
|
+
const titleRow = "krc-titleRow--Go1f";
|
|
7
|
+
const titleSpinner = "krc-titleSpinner-BPUs5";
|
|
8
|
+
const steps = "krc-steps-zu1EV";
|
|
9
|
+
const step = "krc-step-hzz-Q";
|
|
10
|
+
const pending = "krc-pending-sxbM4";
|
|
11
|
+
const iconSlot = "krc-iconSlot-74ZD2";
|
|
12
|
+
const stepSpinner = "krc-stepSpinner-0d1jM";
|
|
13
|
+
const checkIcon = "krc-checkIcon-FhWlj";
|
|
14
|
+
const nonClosable = "krc-nonClosable-7NB7j";
|
|
8
15
|
const styles = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
throbber,
|
|
17
|
+
spinner,
|
|
18
|
+
loadingSpin,
|
|
19
|
+
titleRow,
|
|
20
|
+
titleSpinner,
|
|
21
|
+
steps,
|
|
22
|
+
step,
|
|
23
|
+
pending,
|
|
24
|
+
iconSlot,
|
|
25
|
+
stepSpinner,
|
|
26
|
+
checkIcon,
|
|
27
|
+
nonClosable
|
|
14
28
|
};
|
|
29
|
+
exports.checkIcon = checkIcon;
|
|
15
30
|
exports.default = styles;
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
31
|
+
exports.iconSlot = iconSlot;
|
|
32
|
+
exports.loadingSpin = loadingSpin;
|
|
33
|
+
exports.nonClosable = nonClosable;
|
|
34
|
+
exports.pending = pending;
|
|
35
|
+
exports.spinner = spinner;
|
|
36
|
+
exports.step = step;
|
|
37
|
+
exports.stepSpinner = stepSpinner;
|
|
38
|
+
exports.steps = steps;
|
|
39
|
+
exports.throbber = throbber;
|
|
40
|
+
exports.titleRow = titleRow;
|
|
41
|
+
exports.titleSpinner = titleSpinner;
|
|
21
42
|
//# sourceMappingURL=index95.cjs.map
|
package/dist/index95.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index95.js
CHANGED
|
@@ -1,21 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const throbber = "krc-throbber-sSMfc";
|
|
2
|
+
const spinner = "krc-spinner-vmNIY";
|
|
3
|
+
const loadingSpin = "krc-loading-spin-cFeV6";
|
|
4
|
+
const titleRow = "krc-titleRow--Go1f";
|
|
5
|
+
const titleSpinner = "krc-titleSpinner-BPUs5";
|
|
6
|
+
const steps = "krc-steps-zu1EV";
|
|
7
|
+
const step = "krc-step-hzz-Q";
|
|
8
|
+
const pending = "krc-pending-sxbM4";
|
|
9
|
+
const iconSlot = "krc-iconSlot-74ZD2";
|
|
10
|
+
const stepSpinner = "krc-stepSpinner-0d1jM";
|
|
11
|
+
const checkIcon = "krc-checkIcon-FhWlj";
|
|
12
|
+
const nonClosable = "krc-nonClosable-7NB7j";
|
|
6
13
|
const styles = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
throbber,
|
|
15
|
+
spinner,
|
|
16
|
+
loadingSpin,
|
|
17
|
+
titleRow,
|
|
18
|
+
titleSpinner,
|
|
19
|
+
steps,
|
|
20
|
+
step,
|
|
21
|
+
pending,
|
|
22
|
+
iconSlot,
|
|
23
|
+
stepSpinner,
|
|
24
|
+
checkIcon,
|
|
25
|
+
nonClosable
|
|
12
26
|
};
|
|
13
27
|
export {
|
|
28
|
+
checkIcon,
|
|
14
29
|
styles as default,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
iconSlot,
|
|
31
|
+
loadingSpin,
|
|
32
|
+
nonClosable,
|
|
33
|
+
pending,
|
|
34
|
+
spinner,
|
|
35
|
+
step,
|
|
36
|
+
stepSpinner,
|
|
37
|
+
steps,
|
|
38
|
+
throbber,
|
|
39
|
+
titleRow,
|
|
40
|
+
titleSpinner
|
|
20
41
|
};
|
|
21
42
|
//# sourceMappingURL=index95.js.map
|
package/dist/index95.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index95.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index95.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index96.cjs
CHANGED
|
@@ -1,45 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const header = "krc-header-
|
|
5
|
-
const title = "krc-title-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const retryButton = "krc-retryButton-js385";
|
|
14
|
-
const empty = "krc-empty-qYFPa";
|
|
15
|
-
const warning = "krc-warning-ll4Hc";
|
|
3
|
+
const root = "krc-root-rUudF";
|
|
4
|
+
const header = "krc-header-zjbPA";
|
|
5
|
+
const title = "krc-title-ScYja";
|
|
6
|
+
const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
|
|
7
|
+
const timeRangeButton = "krc-timeRangeButton-9XCxb";
|
|
8
|
+
const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
|
|
9
|
+
const chartContainer = "krc-chartContainer-6rb4Z";
|
|
10
|
+
const loading = "krc-loading-EWhol";
|
|
11
|
+
const error = "krc-error-erDaP";
|
|
12
|
+
const empty = "krc-empty---cYi";
|
|
16
13
|
const styles = {
|
|
17
14
|
root,
|
|
18
15
|
header,
|
|
19
16
|
title,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
toolbarSelect,
|
|
17
|
+
timeRangeGroup,
|
|
18
|
+
timeRangeButton,
|
|
19
|
+
timeRangeButtonActive,
|
|
24
20
|
chartContainer,
|
|
25
21
|
loading,
|
|
26
22
|
error,
|
|
27
|
-
|
|
28
|
-
empty,
|
|
29
|
-
warning
|
|
23
|
+
empty
|
|
30
24
|
};
|
|
31
25
|
exports.chartContainer = chartContainer;
|
|
32
26
|
exports.default = styles;
|
|
33
27
|
exports.empty = empty;
|
|
34
28
|
exports.error = error;
|
|
35
29
|
exports.header = header;
|
|
36
|
-
exports.headerActions = headerActions;
|
|
37
30
|
exports.loading = loading;
|
|
38
|
-
exports.retryButton = retryButton;
|
|
39
31
|
exports.root = root;
|
|
32
|
+
exports.timeRangeButton = timeRangeButton;
|
|
33
|
+
exports.timeRangeButtonActive = timeRangeButtonActive;
|
|
34
|
+
exports.timeRangeGroup = timeRangeGroup;
|
|
40
35
|
exports.title = title;
|
|
41
|
-
exports.toolbar = toolbar;
|
|
42
|
-
exports.toolbarLabel = toolbarLabel;
|
|
43
|
-
exports.toolbarSelect = toolbarSelect;
|
|
44
|
-
exports.warning = warning;
|
|
45
36
|
//# sourceMappingURL=index96.cjs.map
|
package/dist/index96.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index96.js
CHANGED
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const header = "krc-header-
|
|
3
|
-
const title = "krc-title-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retryButton = "krc-retryButton-js385";
|
|
12
|
-
const empty = "krc-empty-qYFPa";
|
|
13
|
-
const warning = "krc-warning-ll4Hc";
|
|
1
|
+
const root = "krc-root-rUudF";
|
|
2
|
+
const header = "krc-header-zjbPA";
|
|
3
|
+
const title = "krc-title-ScYja";
|
|
4
|
+
const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
|
|
5
|
+
const timeRangeButton = "krc-timeRangeButton-9XCxb";
|
|
6
|
+
const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
|
|
7
|
+
const chartContainer = "krc-chartContainer-6rb4Z";
|
|
8
|
+
const loading = "krc-loading-EWhol";
|
|
9
|
+
const error = "krc-error-erDaP";
|
|
10
|
+
const empty = "krc-empty---cYi";
|
|
14
11
|
const styles = {
|
|
15
12
|
root,
|
|
16
13
|
header,
|
|
17
14
|
title,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
toolbarSelect,
|
|
15
|
+
timeRangeGroup,
|
|
16
|
+
timeRangeButton,
|
|
17
|
+
timeRangeButtonActive,
|
|
22
18
|
chartContainer,
|
|
23
19
|
loading,
|
|
24
20
|
error,
|
|
25
|
-
|
|
26
|
-
empty,
|
|
27
|
-
warning
|
|
21
|
+
empty
|
|
28
22
|
};
|
|
29
23
|
export {
|
|
30
24
|
chartContainer,
|
|
@@ -32,14 +26,11 @@ export {
|
|
|
32
26
|
empty,
|
|
33
27
|
error,
|
|
34
28
|
header,
|
|
35
|
-
headerActions,
|
|
36
29
|
loading,
|
|
37
|
-
retryButton,
|
|
38
30
|
root,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
warning
|
|
31
|
+
timeRangeButton,
|
|
32
|
+
timeRangeButtonActive,
|
|
33
|
+
timeRangeGroup,
|
|
34
|
+
title
|
|
44
35
|
};
|
|
45
36
|
//# sourceMappingURL=index96.js.map
|
package/dist/index96.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index97.cjs
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const merge = (a, b) => a == null ? b : b == null ? a : a + b;
|
|
4
|
+
const pivotGroupedBars = (data) => {
|
|
5
|
+
const categories = /* @__PURE__ */ new Set();
|
|
6
|
+
const cells = /* @__PURE__ */ new Map();
|
|
7
|
+
for (const { category, series: series2, value } of data) {
|
|
8
|
+
categories.add(category);
|
|
9
|
+
let row = cells.get(series2);
|
|
10
|
+
if (!row) {
|
|
11
|
+
row = /* @__PURE__ */ new Map();
|
|
12
|
+
cells.set(series2, row);
|
|
13
|
+
}
|
|
14
|
+
row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);
|
|
15
|
+
}
|
|
16
|
+
const categoryList = [...categories];
|
|
17
|
+
const series = [...cells.entries()].map(([name, row]) => ({
|
|
18
|
+
name,
|
|
19
|
+
values: categoryList.map((category) => row.get(category) ?? null)
|
|
20
|
+
}));
|
|
21
|
+
const hasValues = series.some((s) => s.values.some((v) => v != null));
|
|
22
|
+
return { categories: categoryList, series, hasValues };
|
|
16
23
|
};
|
|
17
|
-
exports.
|
|
18
|
-
exports.default = styles;
|
|
19
|
-
exports.main = main;
|
|
20
|
-
exports.root = root;
|
|
21
|
-
exports.sidebar = sidebar;
|
|
22
|
-
exports.sidebarCollapsed = sidebarCollapsed;
|
|
23
|
-
exports.title = title;
|
|
24
|
+
exports.pivotGroupedBars = pivotGroupedBars;
|
|
24
25
|
//# sourceMappingURL=index97.cjs.map
|
package/dist/index97.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index97.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index97.cjs","sources":["../src/charts/GroupedBarChartCard/pivotGroupedBars.ts"],"sourcesContent":["import type { GroupedBarPoint } from '../../types/chart.types';\n\n/** One series with its values aligned to `categories`; `null` is a gap. */\nexport interface PivotedSeries {\n name: string;\n values: (number | null)[];\n}\n\n/** Category × series matrix of a grouped bar chart. */\nexport interface GroupedBarPivot {\n /** First-seen order. */\n categories: string[];\n /** First-seen order. */\n series: PivotedSeries[];\n /** Whether any value is non-null — false means there is nothing to draw. */\n hasValues: boolean;\n}\n\n/** `null` adds nothing: only nulls stay a gap. */\nconst merge = (a: number | null, b: number | null) => (a == null ? b : b == null ? a : a + b);\n\n/**\n * Pivot points into a category × series matrix, keeping first-appearance order,\n * summing repeated pairs and filling missing pairs with `null` — never `0`.\n */\nexport const pivotGroupedBars = (data: GroupedBarPoint[]): GroupedBarPivot => {\n const categories = new Set<string>();\n const cells = new Map<string, Map<string, number | null>>();\n\n for (const { category, series, value } of data) {\n categories.add(category);\n let row = cells.get(series);\n if (!row) {\n row = new Map();\n cells.set(series, row);\n }\n row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);\n }\n\n const categoryList = [...categories];\n const series = [...cells.entries()].map(([name, row]) => ({\n name,\n values: categoryList.map((category) => row.get(category) ?? null),\n }));\n const hasValues = series.some((s) => s.values.some((v) => v != null));\n\n return { categories: categoryList, series, hasValues };\n};\n"],"names":["series"],"mappings":";;AAmBA,MAAM,QAAQ,CAAC,GAAkB,MAAsB,KAAK,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI;AAMpF,MAAM,mBAAmB,CAAC,SAA6C;AAC5E,QAAM,iCAAiB,IAAA;AACvB,QAAM,4BAAY,IAAA;AAElB,aAAW,EAAE,UAAU,QAAAA,SAAQ,MAAA,KAAW,MAAM;AAC9C,eAAW,IAAI,QAAQ;AACvB,QAAI,MAAM,MAAM,IAAIA,OAAM;AAC1B,QAAI,CAAC,KAAK;AACR,gCAAU,IAAA;AACV,YAAM,IAAIA,SAAQ,GAAG;AAAA,IACvB;AACA,QAAI,IAAI,UAAU,IAAI,IAAI,QAAQ,IAAI,MAAM,IAAI,IAAI,QAAQ,KAAK,MAAM,KAAK,IAAI,KAAK;AAAA,EACvF;AAEA,QAAM,eAAe,CAAC,GAAG,UAAU;AACnC,QAAM,SAAS,CAAC,GAAG,MAAM,QAAA,CAAS,EAAE,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO;AAAA,IACxD;AAAA,IACA,QAAQ,aAAa,IAAI,CAAC,aAAa,IAAI,IAAI,QAAQ,KAAK,IAAI;AAAA,EAAA,EAChE;AACF,QAAM,YAAY,OAAO,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;AAEpE,SAAO,EAAE,YAAY,cAAc,QAAQ,UAAA;AAC7C;;"}
|
package/dist/index97.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const merge = (a, b) => a == null ? b : b == null ? a : a + b;
|
|
2
|
+
const pivotGroupedBars = (data) => {
|
|
3
|
+
const categories = /* @__PURE__ */ new Set();
|
|
4
|
+
const cells = /* @__PURE__ */ new Map();
|
|
5
|
+
for (const { category, series: series2, value } of data) {
|
|
6
|
+
categories.add(category);
|
|
7
|
+
let row = cells.get(series2);
|
|
8
|
+
if (!row) {
|
|
9
|
+
row = /* @__PURE__ */ new Map();
|
|
10
|
+
cells.set(series2, row);
|
|
11
|
+
}
|
|
12
|
+
row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);
|
|
13
|
+
}
|
|
14
|
+
const categoryList = [...categories];
|
|
15
|
+
const series = [...cells.entries()].map(([name, row]) => ({
|
|
16
|
+
name,
|
|
17
|
+
values: categoryList.map((category) => row.get(category) ?? null)
|
|
18
|
+
}));
|
|
19
|
+
const hasValues = series.some((s) => s.values.some((v) => v != null));
|
|
20
|
+
return { categories: categoryList, series, hasValues };
|
|
14
21
|
};
|
|
15
22
|
export {
|
|
16
|
-
|
|
17
|
-
styles as default,
|
|
18
|
-
main,
|
|
19
|
-
root,
|
|
20
|
-
sidebar,
|
|
21
|
-
sidebarCollapsed,
|
|
22
|
-
title
|
|
23
|
+
pivotGroupedBars
|
|
23
24
|
};
|
|
24
25
|
//# sourceMappingURL=index97.js.map
|
package/dist/index97.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index97.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index97.js","sources":["../src/charts/GroupedBarChartCard/pivotGroupedBars.ts"],"sourcesContent":["import type { GroupedBarPoint } from '../../types/chart.types';\n\n/** One series with its values aligned to `categories`; `null` is a gap. */\nexport interface PivotedSeries {\n name: string;\n values: (number | null)[];\n}\n\n/** Category × series matrix of a grouped bar chart. */\nexport interface GroupedBarPivot {\n /** First-seen order. */\n categories: string[];\n /** First-seen order. */\n series: PivotedSeries[];\n /** Whether any value is non-null — false means there is nothing to draw. */\n hasValues: boolean;\n}\n\n/** `null` adds nothing: only nulls stay a gap. */\nconst merge = (a: number | null, b: number | null) => (a == null ? b : b == null ? a : a + b);\n\n/**\n * Pivot points into a category × series matrix, keeping first-appearance order,\n * summing repeated pairs and filling missing pairs with `null` — never `0`.\n */\nexport const pivotGroupedBars = (data: GroupedBarPoint[]): GroupedBarPivot => {\n const categories = new Set<string>();\n const cells = new Map<string, Map<string, number | null>>();\n\n for (const { category, series, value } of data) {\n categories.add(category);\n let row = cells.get(series);\n if (!row) {\n row = new Map();\n cells.set(series, row);\n }\n row.set(category, row.has(category) ? merge(row.get(category) ?? null, value) : value);\n }\n\n const categoryList = [...categories];\n const series = [...cells.entries()].map(([name, row]) => ({\n name,\n values: categoryList.map((category) => row.get(category) ?? null),\n }));\n const hasValues = series.some((s) => s.values.some((v) => v != null));\n\n return { categories: categoryList, series, hasValues };\n};\n"],"names":["series"],"mappings":"AAmBA,MAAM,QAAQ,CAAC,GAAkB,MAAsB,KAAK,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI;AAMpF,MAAM,mBAAmB,CAAC,SAA6C;AAC5E,QAAM,iCAAiB,IAAA;AACvB,QAAM,4BAAY,IAAA;AAElB,aAAW,EAAE,UAAU,QAAAA,SAAQ,MAAA,KAAW,MAAM;AAC9C,eAAW,IAAI,QAAQ;AACvB,QAAI,MAAM,MAAM,IAAIA,OAAM;AAC1B,QAAI,CAAC,KAAK;AACR,gCAAU,IAAA;AACV,YAAM,IAAIA,SAAQ,GAAG;AAAA,IACvB;AACA,QAAI,IAAI,UAAU,IAAI,IAAI,QAAQ,IAAI,MAAM,IAAI,IAAI,QAAQ,KAAK,MAAM,KAAK,IAAI,KAAK;AAAA,EACvF;AAEA,QAAM,eAAe,CAAC,GAAG,UAAU;AACnC,QAAM,SAAS,CAAC,GAAG,MAAM,QAAA,CAAS,EAAE,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO;AAAA,IACxD;AAAA,IACA,QAAQ,aAAa,IAAI,CAAC,aAAa,IAAI,IAAI,QAAQ,KAAK,IAAI;AAAA,EAAA,EAChE;AACF,QAAM,YAAY,OAAO,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;AAEpE,SAAO,EAAE,YAAY,cAAc,QAAQ,UAAA;AAC7C;"}
|
package/dist/index98.cjs
CHANGED
|
@@ -1,136 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const constants = require("./
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
name:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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 } }] : [];
|
|
3
|
+
const constants = require("./index63.cjs");
|
|
4
|
+
const { GRID_MARGIN, AXIS_NAME_GAP } = constants.GROUPED_BAR;
|
|
5
|
+
const escapeHtml = (value) => value.replace(/[&<>"]/g, (char) => `&#${char.charCodeAt(0)};`);
|
|
6
|
+
const colorFor = (name, index, seriesColors) => (seriesColors == null ? void 0 : seriesColors[name]) ?? constants.CHART_COLORS[index % constants.CHART_COLORS.length];
|
|
7
|
+
const markerFor = (color) => {
|
|
8
|
+
const { TOOLTIP_MARKER_SIZE: size, TOOLTIP_MARKER_GAP: gap } = constants.GROUPED_BAR;
|
|
9
|
+
return `<span style="display:inline-block;margin-right:${gap}px;border-radius:50%;width:${size}px;height:${size}px;background-color:${escapeHtml(color)};"></span>`;
|
|
10
|
+
};
|
|
11
|
+
const buildTooltipFormatter = (pivot, colors, noValueText) => (params) => {
|
|
12
|
+
const first = Array.isArray(params) ? params[0] : params;
|
|
13
|
+
const index = first == null ? void 0 : first.dataIndex;
|
|
14
|
+
if (index == null || index >= pivot.categories.length) return "";
|
|
15
|
+
const lines = [escapeHtml(pivot.categories[index])];
|
|
16
|
+
pivot.series.forEach((s, i) => {
|
|
17
|
+
const value = s.values[index];
|
|
18
|
+
const text = value == null ? escapeHtml(noValueText) : String(value);
|
|
19
|
+
lines.push(`${markerFor(colors[i])}${escapeHtml(s.name)}: ${text}`);
|
|
20
|
+
});
|
|
21
|
+
return lines.join("<br/>");
|
|
22
|
+
};
|
|
23
|
+
const buildGrid = (config) => {
|
|
24
|
+
const named = Boolean(config.valueLabel);
|
|
25
|
+
return {
|
|
26
|
+
left: GRID_MARGIN.BASE + (named && !config.invertAxis ? GRID_MARGIN.VALUE_NAME_Y : 0),
|
|
27
|
+
right: GRID_MARGIN.RIGHT,
|
|
28
|
+
top: GRID_MARGIN.TOP,
|
|
29
|
+
// Room for a horizontal value-axis name and the legend, each only when drawn.
|
|
30
|
+
bottom: GRID_MARGIN.BASE + (named && config.invertAxis ? GRID_MARGIN.VALUE_NAME_X : 0) + (config.hideLegend ? 0 : GRID_MARGIN.LEGEND),
|
|
31
|
+
containLabel: true
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const buildGroupedBarOption = (pivot, config) => {
|
|
35
|
+
const colors = pivot.series.map((s, i) => colorFor(s.name, i, config.seriesColors));
|
|
36
|
+
const categoryAxis = {
|
|
37
|
+
type: "category",
|
|
38
|
+
data: pivot.categories,
|
|
39
|
+
// Horizontal bars read top-down, so the first category goes on top.
|
|
40
|
+
inverse: config.invertAxis
|
|
41
|
+
};
|
|
42
|
+
const valueAxis = {
|
|
43
|
+
type: "value",
|
|
44
|
+
name: config.valueLabel,
|
|
45
|
+
nameLocation: "middle",
|
|
46
|
+
nameGap: config.invertAxis ? AXIS_NAME_GAP.X : AXIS_NAME_GAP.Y,
|
|
47
|
+
// Without this a vertical axis name is drawn horizontally and eats the plot's width.
|
|
48
|
+
nameRotate: config.invertAxis ? 0 : 90,
|
|
49
|
+
minInterval: config.integerValues ? 1 : void 0
|
|
50
|
+
};
|
|
66
51
|
return {
|
|
67
|
-
tooltip: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
52
|
+
tooltip: {
|
|
53
|
+
trigger: "axis",
|
|
54
|
+
axisPointer: { type: "shadow" },
|
|
55
|
+
formatter: buildTooltipFormatter(pivot, colors, config.noValueText)
|
|
56
|
+
},
|
|
57
|
+
legend: { show: !config.hideLegend, bottom: 0, type: "scroll" },
|
|
58
|
+
grid: buildGrid(config),
|
|
59
|
+
xAxis: config.invertAxis ? valueAxis : categoryAxis,
|
|
60
|
+
yAxis: config.invertAxis ? categoryAxis : valueAxis,
|
|
61
|
+
series: pivot.series.map((s, i) => ({
|
|
74
62
|
name: s.name,
|
|
75
63
|
type: "bar",
|
|
76
|
-
stack: "total",
|
|
77
|
-
emphasis: { focus: "series" },
|
|
78
64
|
data: s.values,
|
|
79
|
-
|
|
65
|
+
barMinHeight: constants.GROUPED_BAR.MIN_BAR_HEIGHT,
|
|
66
|
+
itemStyle: { color: colors[i] },
|
|
67
|
+
emphasis: { focus: "series" }
|
|
80
68
|
}))
|
|
81
69
|
};
|
|
82
|
-
}
|
|
83
|
-
|
|
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;
|
|
70
|
+
};
|
|
71
|
+
exports.buildGroupedBarOption = buildGroupedBarOption;
|
|
136
72
|
//# sourceMappingURL=index98.cjs.map
|