@ktnpm_devops/react-component 0.20.0 → 0.22.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/LICENSE +14 -15
- package/README.md +2 -1
- package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts.map +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
- package/dist/composites/FilterDropdown/FilterDropdown.d.ts.map +1 -1
- package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
- package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts.map +1 -1
- package/dist/hooks/usePanelPlacement.d.ts +12 -20
- package/dist/hooks/usePanelPlacement.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +2 -35
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +3 -36
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +13 -49
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +13 -49
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +33 -35
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +32 -34
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +33 -43
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +32 -42
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +132 -23
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +132 -23
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +45 -39
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +44 -38
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +7 -9
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +6 -8
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +21 -10
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +20 -9
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +58 -20
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +57 -19
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +114 -12
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +114 -12
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +42 -10
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +41 -9
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +14 -65
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +14 -65
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +49 -10
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +50 -11
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +35 -33
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +34 -32
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +43 -18
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +42 -17
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +24 -42
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +23 -41
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +39 -39
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +38 -38
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +9 -22
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +8 -21
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +10 -21
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +9 -20
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +20 -58
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +19 -57
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +14 -10
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +13 -9
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +10 -24
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +9 -23
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +64 -4
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +65 -5
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +64 -10
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +65 -11
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +17 -2
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +17 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +22 -39
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +21 -38
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +69 -18
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +68 -17
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +7 -27
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +6 -26
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +28 -22
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +29 -23
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +19 -15
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +18 -14
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +22 -1164
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +20 -1163
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +46 -1573
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +45 -1573
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +71 -30
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +71 -30
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +37 -0
- package/dist/index133.cjs.map +1 -0
- package/dist/index133.js +37 -0
- package/dist/index133.js.map +1 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +4 -3
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +4 -3
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +4 -3
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +4 -3
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +5 -4
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +5 -4
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +11 -11
- package/dist/index30.js +11 -11
- package/dist/index31.cjs +4 -4
- package/dist/index31.js +4 -4
- package/dist/index32.cjs +3 -3
- package/dist/index32.js +3 -3
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +2 -2
- package/dist/index35.js +2 -2
- package/dist/index36.cjs +2 -2
- package/dist/index36.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +5 -4
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +5 -4
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.cjs +2 -2
- package/dist/index41.js +2 -2
- package/dist/index42.cjs +2 -2
- package/dist/index42.js +2 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +4 -4
- package/dist/index45.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +2 -2
- package/dist/index49.js +2 -2
- package/dist/index50.cjs +5 -4
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +5 -4
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +3 -3
- package/dist/index52.js +3 -3
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +3 -3
- package/dist/index55.js +3 -3
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.cjs +21 -18
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +22 -19
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +17 -6
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +16 -5
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +6 -144
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +5 -143
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +5 -20
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +6 -21
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +145 -22
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +143 -20
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +36 -3
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +36 -3
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +22 -22
- package/dist/index66.js +22 -22
- package/dist/index67.cjs +13 -13
- package/dist/index67.js +13 -13
- package/dist/index68.cjs +20 -2
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +21 -3
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +10 -13
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +11 -14
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +19 -13
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +19 -13
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +16 -19
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +16 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +2 -17
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +2 -17
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +19 -134
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +18 -133
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +19 -40
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +20 -41
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +73 -24
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +72 -23
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +28 -28
- package/dist/index76.js +28 -28
- package/dist/index77.cjs +6 -46
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +5 -45
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +44 -77
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +45 -78
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +77 -44
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +78 -45
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +19 -52
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +19 -52
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +50 -32
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +50 -32
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +1163 -47
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +1163 -46
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +1573 -15
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +1573 -14
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +10 -31
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +11 -32
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +48 -16
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +47 -15
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +18 -70
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +17 -69
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +36 -17
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +35 -16
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +11 -2
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +12 -3
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +22 -116
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +21 -115
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +4 -37
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +5 -38
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +2 -17
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +3 -18
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +39 -22
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +38 -21
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +21 -69
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +20 -68
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +38 -6
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +38 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +92 -39
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +91 -38
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +33 -15
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +34 -16
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +35 -2
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +36 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +24 -39
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +23 -38
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +42 -92
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +41 -91
- package/dist/index99.js.map +1 -1
- package/dist/style.css +55 -0
- package/dist/utils/clippingRect.d.ts +11 -11
- package/dist/utils/clippingRect.d.ts.map +1 -1
- package/dist/utils/panelPlacement.d.ts +34 -0
- package/dist/utils/panelPlacement.d.ts.map +1 -0
- package/dist/utils/panelPlacement.test.d.ts +2 -0
- package/dist/utils/panelPlacement.test.d.ts.map +1 -0
- package/dist/utils/panelPlacement.types.d.ts +57 -0
- package/dist/utils/panelPlacement.types.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index121.cjs
CHANGED
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
root,
|
|
12
|
-
disabled,
|
|
13
|
-
active,
|
|
14
|
-
collapsed,
|
|
15
|
-
icon,
|
|
16
|
-
label,
|
|
17
|
-
badge
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const constants = require("./index64.cjs");
|
|
4
|
+
const resolveTiles = (tileLayer, basemap, theme, basemapKey) => {
|
|
5
|
+
if (tileLayer != null) return tileLayer;
|
|
6
|
+
const url = constants.BASEMAP_TILES[basemap === "auto" ? theme : basemap];
|
|
7
|
+
return {
|
|
8
|
+
url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,
|
|
9
|
+
attribution: constants.BASEMAP_TILES.attribution
|
|
10
|
+
};
|
|
18
11
|
};
|
|
19
|
-
exports.
|
|
20
|
-
exports.badge = badge;
|
|
21
|
-
exports.collapsed = collapsed;
|
|
22
|
-
exports.default = styles;
|
|
23
|
-
exports.disabled = disabled;
|
|
24
|
-
exports.icon = icon;
|
|
25
|
-
exports.label = label;
|
|
26
|
-
exports.root = root;
|
|
12
|
+
exports.resolveTiles = resolveTiles;
|
|
27
13
|
//# sourceMappingURL=index121.cjs.map
|
package/dist/index121.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.cjs","sources":["../src/geo/GeoMapCard/resolveTiles.ts"],"sourcesContent":["import { BASEMAP_TILES } from '../../constants';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoBasemap, GeoTileLayer } from '../../types/geo.types';\n\n/**\n * The tile source to draw: a caller-supplied layer wins outright; otherwise the\n * CARTO basemap for the theme, carrying the API key when one is given.\n */\nexport const resolveTiles = (\n tileLayer: GeoTileLayer | undefined,\n basemap: GeoBasemap,\n theme: ThemeMode,\n basemapKey: string | undefined,\n): GeoTileLayer => {\n if (tileLayer != null) return tileLayer;\n\n const url = BASEMAP_TILES[basemap === 'auto' ? theme : basemap];\n\n return {\n url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,\n attribution: BASEMAP_TILES.attribution,\n };\n};\n"],"names":["BASEMAP_TILES"],"mappings":";;;AAQO,MAAM,eAAe,CAC1B,WACA,SACA,OACA,eACiB;AACjB,MAAI,aAAa,KAAM,QAAO;AAE9B,QAAM,MAAMA,UAAAA,cAAc,YAAY,SAAS,QAAQ,OAAO;AAE9D,SAAO;AAAA,IACL,KAAK,aAAa,GAAG,GAAG,QAAQ,mBAAmB,UAAU,CAAC,KAAK;AAAA,IACnE,aAAaA,UAAAA,cAAc;AAAA,EAAA;AAE/B;;"}
|
package/dist/index121.js
CHANGED
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
root,
|
|
10
|
-
disabled,
|
|
11
|
-
active,
|
|
12
|
-
collapsed,
|
|
13
|
-
icon,
|
|
14
|
-
label,
|
|
15
|
-
badge
|
|
1
|
+
import { BASEMAP_TILES } from "./index64.js";
|
|
2
|
+
const resolveTiles = (tileLayer, basemap, theme, basemapKey) => {
|
|
3
|
+
if (tileLayer != null) return tileLayer;
|
|
4
|
+
const url = BASEMAP_TILES[basemap === "auto" ? theme : basemap];
|
|
5
|
+
return {
|
|
6
|
+
url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,
|
|
7
|
+
attribution: BASEMAP_TILES.attribution
|
|
8
|
+
};
|
|
16
9
|
};
|
|
17
10
|
export {
|
|
18
|
-
|
|
19
|
-
badge,
|
|
20
|
-
collapsed,
|
|
21
|
-
styles as default,
|
|
22
|
-
disabled,
|
|
23
|
-
icon,
|
|
24
|
-
label,
|
|
25
|
-
root
|
|
11
|
+
resolveTiles
|
|
26
12
|
};
|
|
27
13
|
//# sourceMappingURL=index121.js.map
|
package/dist/index121.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.js","sources":["../src/geo/GeoMapCard/resolveTiles.ts"],"sourcesContent":["import { BASEMAP_TILES } from '../../constants';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoBasemap, GeoTileLayer } from '../../types/geo.types';\n\n/**\n * The tile source to draw: a caller-supplied layer wins outright; otherwise the\n * CARTO basemap for the theme, carrying the API key when one is given.\n */\nexport const resolveTiles = (\n tileLayer: GeoTileLayer | undefined,\n basemap: GeoBasemap,\n theme: ThemeMode,\n basemapKey: string | undefined,\n): GeoTileLayer => {\n if (tileLayer != null) return tileLayer;\n\n const url = BASEMAP_TILES[basemap === 'auto' ? theme : basemap];\n\n return {\n url: basemapKey ? `${url}?key=${encodeURIComponent(basemapKey)}` : url,\n attribution: BASEMAP_TILES.attribution,\n };\n};\n"],"names":[],"mappings":";AAQO,MAAM,eAAe,CAC1B,WACA,SACA,OACA,eACiB;AACjB,MAAI,aAAa,KAAM,QAAO;AAE9B,QAAM,MAAM,cAAc,YAAY,SAAS,QAAQ,OAAO;AAE9D,SAAO;AAAA,IACL,KAAK,aAAa,GAAG,GAAG,QAAQ,mBAAmB,UAAU,CAAC,KAAK;AAAA,IACnE,aAAa,cAAc;AAAA,EAAA;AAE/B;"}
|
package/dist/index122.cjs
CHANGED
|
@@ -1,12 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root
|
|
4
|
-
const
|
|
3
|
+
const root = "krc-root-m-WU1";
|
|
4
|
+
const header = "krc-header-j8Yft";
|
|
5
|
+
const title = "krc-title-10Tak";
|
|
6
|
+
const headerActions = "krc-headerActions-rh6MO";
|
|
7
|
+
const toolbar = "krc-toolbar-6bfl-";
|
|
8
|
+
const warning = "krc-warning-dISP1";
|
|
9
|
+
const status = "krc-status-NTIdX";
|
|
10
|
+
const refreshing = "krc-refreshing-THBtz";
|
|
11
|
+
const refreshingDot = "krc-refreshingDot-flOST";
|
|
12
|
+
const mapContainer = "krc-mapContainer-MKTII";
|
|
13
|
+
const map = "krc-map-o-Ldd";
|
|
14
|
+
const loading = "krc-loading-LE2tH";
|
|
15
|
+
const empty = "krc-empty-JAoUd";
|
|
16
|
+
const error = "krc-error-FkrvS";
|
|
17
|
+
const retryButton = "krc-retryButton-BKn73";
|
|
18
|
+
const legend = "krc-legend-c-RjE";
|
|
19
|
+
const legendTitle = "krc-legendTitle-j4e4-";
|
|
20
|
+
const legendList = "krc-legendList-jRukT";
|
|
21
|
+
const legendItem = "krc-legendItem-X2jYA";
|
|
22
|
+
const legendSwatch = "krc-legendSwatch-OTMwM";
|
|
23
|
+
const compact = "krc-compact-Ha6w2";
|
|
24
|
+
const srOnly = "krc-srOnly-KDwnO";
|
|
5
25
|
const styles = {
|
|
6
26
|
root,
|
|
7
|
-
|
|
27
|
+
header,
|
|
28
|
+
title,
|
|
29
|
+
headerActions,
|
|
30
|
+
toolbar,
|
|
31
|
+
warning,
|
|
32
|
+
status,
|
|
33
|
+
refreshing,
|
|
34
|
+
refreshingDot,
|
|
35
|
+
mapContainer,
|
|
36
|
+
map,
|
|
37
|
+
loading,
|
|
38
|
+
empty,
|
|
39
|
+
error,
|
|
40
|
+
retryButton,
|
|
41
|
+
legend,
|
|
42
|
+
legendTitle,
|
|
43
|
+
legendList,
|
|
44
|
+
legendItem,
|
|
45
|
+
legendSwatch,
|
|
46
|
+
compact,
|
|
47
|
+
srOnly
|
|
8
48
|
};
|
|
49
|
+
exports.compact = compact;
|
|
9
50
|
exports.default = styles;
|
|
10
|
-
exports.
|
|
51
|
+
exports.empty = empty;
|
|
52
|
+
exports.error = error;
|
|
53
|
+
exports.header = header;
|
|
54
|
+
exports.headerActions = headerActions;
|
|
55
|
+
exports.legend = legend;
|
|
56
|
+
exports.legendItem = legendItem;
|
|
57
|
+
exports.legendList = legendList;
|
|
58
|
+
exports.legendSwatch = legendSwatch;
|
|
59
|
+
exports.legendTitle = legendTitle;
|
|
60
|
+
exports.loading = loading;
|
|
61
|
+
exports.map = map;
|
|
62
|
+
exports.mapContainer = mapContainer;
|
|
63
|
+
exports.refreshing = refreshing;
|
|
64
|
+
exports.refreshingDot = refreshingDot;
|
|
65
|
+
exports.retryButton = retryButton;
|
|
11
66
|
exports.root = root;
|
|
67
|
+
exports.srOnly = srOnly;
|
|
68
|
+
exports.status = status;
|
|
69
|
+
exports.title = title;
|
|
70
|
+
exports.toolbar = toolbar;
|
|
71
|
+
exports.warning = warning;
|
|
12
72
|
//# sourceMappingURL=index122.cjs.map
|
package/dist/index122.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index122.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index122.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index122.js
CHANGED
|
@@ -1,12 +1,72 @@
|
|
|
1
|
-
const root = "krc-root
|
|
2
|
-
const
|
|
1
|
+
const root = "krc-root-m-WU1";
|
|
2
|
+
const header = "krc-header-j8Yft";
|
|
3
|
+
const title = "krc-title-10Tak";
|
|
4
|
+
const headerActions = "krc-headerActions-rh6MO";
|
|
5
|
+
const toolbar = "krc-toolbar-6bfl-";
|
|
6
|
+
const warning = "krc-warning-dISP1";
|
|
7
|
+
const status = "krc-status-NTIdX";
|
|
8
|
+
const refreshing = "krc-refreshing-THBtz";
|
|
9
|
+
const refreshingDot = "krc-refreshingDot-flOST";
|
|
10
|
+
const mapContainer = "krc-mapContainer-MKTII";
|
|
11
|
+
const map = "krc-map-o-Ldd";
|
|
12
|
+
const loading = "krc-loading-LE2tH";
|
|
13
|
+
const empty = "krc-empty-JAoUd";
|
|
14
|
+
const error = "krc-error-FkrvS";
|
|
15
|
+
const retryButton = "krc-retryButton-BKn73";
|
|
16
|
+
const legend = "krc-legend-c-RjE";
|
|
17
|
+
const legendTitle = "krc-legendTitle-j4e4-";
|
|
18
|
+
const legendList = "krc-legendList-jRukT";
|
|
19
|
+
const legendItem = "krc-legendItem-X2jYA";
|
|
20
|
+
const legendSwatch = "krc-legendSwatch-OTMwM";
|
|
21
|
+
const compact = "krc-compact-Ha6w2";
|
|
22
|
+
const srOnly = "krc-srOnly-KDwnO";
|
|
3
23
|
const styles = {
|
|
4
24
|
root,
|
|
5
|
-
|
|
25
|
+
header,
|
|
26
|
+
title,
|
|
27
|
+
headerActions,
|
|
28
|
+
toolbar,
|
|
29
|
+
warning,
|
|
30
|
+
status,
|
|
31
|
+
refreshing,
|
|
32
|
+
refreshingDot,
|
|
33
|
+
mapContainer,
|
|
34
|
+
map,
|
|
35
|
+
loading,
|
|
36
|
+
empty,
|
|
37
|
+
error,
|
|
38
|
+
retryButton,
|
|
39
|
+
legend,
|
|
40
|
+
legendTitle,
|
|
41
|
+
legendList,
|
|
42
|
+
legendItem,
|
|
43
|
+
legendSwatch,
|
|
44
|
+
compact,
|
|
45
|
+
srOnly
|
|
6
46
|
};
|
|
7
47
|
export {
|
|
48
|
+
compact,
|
|
8
49
|
styles as default,
|
|
9
|
-
|
|
10
|
-
|
|
50
|
+
empty,
|
|
51
|
+
error,
|
|
52
|
+
header,
|
|
53
|
+
headerActions,
|
|
54
|
+
legend,
|
|
55
|
+
legendItem,
|
|
56
|
+
legendList,
|
|
57
|
+
legendSwatch,
|
|
58
|
+
legendTitle,
|
|
59
|
+
loading,
|
|
60
|
+
map,
|
|
61
|
+
mapContainer,
|
|
62
|
+
refreshing,
|
|
63
|
+
refreshingDot,
|
|
64
|
+
retryButton,
|
|
65
|
+
root,
|
|
66
|
+
srOnly,
|
|
67
|
+
status,
|
|
68
|
+
title,
|
|
69
|
+
toolbar,
|
|
70
|
+
warning
|
|
11
71
|
};
|
|
12
72
|
//# sourceMappingURL=index122.js.map
|
package/dist/index122.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index122.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index122.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index123.cjs
CHANGED
|
@@ -1,18 +1,72 @@
|
|
|
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
|
|
3
|
+
const root = "krc-root-HS837";
|
|
4
|
+
const gapNone = "krc-gapNone-MmCvp";
|
|
5
|
+
const gapXs = "krc-gapXs-Jketq";
|
|
6
|
+
const gapSm = "krc-gapSm-BFLhK";
|
|
7
|
+
const gapMd = "krc-gapMd--7IRg";
|
|
8
|
+
const gapLg = "krc-gapLg-ehuIZ";
|
|
9
|
+
const gapXl = "krc-gapXl-kNEyc";
|
|
10
|
+
const alignStart = "krc-alignStart-q6fMC";
|
|
11
|
+
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
12
|
+
const alignEnd = "krc-alignEnd-ialGn";
|
|
13
|
+
const alignStretch = "krc-alignStretch-J-rq4";
|
|
14
|
+
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
15
|
+
const justifyStart = "krc-justifyStart-tBqbD";
|
|
16
|
+
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
17
|
+
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
18
|
+
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
19
|
+
const justifyAround = "krc-justifyAround-AMU1m";
|
|
20
|
+
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
21
|
+
const wrap = "krc-wrap-Q4txZ";
|
|
22
|
+
const nowrap = "krc-nowrap-BUcfT";
|
|
23
|
+
const dirRow = "krc-dirRow-NBoPO";
|
|
24
|
+
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
7
25
|
const styles = {
|
|
8
26
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
27
|
+
gapNone,
|
|
28
|
+
gapXs,
|
|
29
|
+
gapSm,
|
|
30
|
+
gapMd,
|
|
31
|
+
gapLg,
|
|
32
|
+
gapXl,
|
|
33
|
+
alignStart,
|
|
34
|
+
alignCenter,
|
|
35
|
+
alignEnd,
|
|
36
|
+
alignStretch,
|
|
37
|
+
alignBaseline,
|
|
38
|
+
justifyStart,
|
|
39
|
+
justifyCenter,
|
|
40
|
+
justifyEnd,
|
|
41
|
+
justifyBetween,
|
|
42
|
+
justifyAround,
|
|
43
|
+
justifyEvenly,
|
|
44
|
+
wrap,
|
|
45
|
+
nowrap,
|
|
46
|
+
dirRow,
|
|
47
|
+
dirColumn
|
|
12
48
|
};
|
|
13
|
-
exports.
|
|
49
|
+
exports.alignBaseline = alignBaseline;
|
|
50
|
+
exports.alignCenter = alignCenter;
|
|
51
|
+
exports.alignEnd = alignEnd;
|
|
52
|
+
exports.alignStart = alignStart;
|
|
53
|
+
exports.alignStretch = alignStretch;
|
|
14
54
|
exports.default = styles;
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
55
|
+
exports.dirColumn = dirColumn;
|
|
56
|
+
exports.dirRow = dirRow;
|
|
57
|
+
exports.gapLg = gapLg;
|
|
58
|
+
exports.gapMd = gapMd;
|
|
59
|
+
exports.gapNone = gapNone;
|
|
60
|
+
exports.gapSm = gapSm;
|
|
61
|
+
exports.gapXl = gapXl;
|
|
62
|
+
exports.gapXs = gapXs;
|
|
63
|
+
exports.justifyAround = justifyAround;
|
|
64
|
+
exports.justifyBetween = justifyBetween;
|
|
65
|
+
exports.justifyCenter = justifyCenter;
|
|
66
|
+
exports.justifyEnd = justifyEnd;
|
|
67
|
+
exports.justifyEvenly = justifyEvenly;
|
|
68
|
+
exports.justifyStart = justifyStart;
|
|
69
|
+
exports.nowrap = nowrap;
|
|
17
70
|
exports.root = root;
|
|
71
|
+
exports.wrap = wrap;
|
|
18
72
|
//# sourceMappingURL=index123.cjs.map
|
package/dist/index123.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index123.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index123.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index123.js
CHANGED
|
@@ -1,18 +1,72 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
const root = "krc-root-HS837";
|
|
2
|
+
const gapNone = "krc-gapNone-MmCvp";
|
|
3
|
+
const gapXs = "krc-gapXs-Jketq";
|
|
4
|
+
const gapSm = "krc-gapSm-BFLhK";
|
|
5
|
+
const gapMd = "krc-gapMd--7IRg";
|
|
6
|
+
const gapLg = "krc-gapLg-ehuIZ";
|
|
7
|
+
const gapXl = "krc-gapXl-kNEyc";
|
|
8
|
+
const alignStart = "krc-alignStart-q6fMC";
|
|
9
|
+
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
10
|
+
const alignEnd = "krc-alignEnd-ialGn";
|
|
11
|
+
const alignStretch = "krc-alignStretch-J-rq4";
|
|
12
|
+
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
13
|
+
const justifyStart = "krc-justifyStart-tBqbD";
|
|
14
|
+
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
15
|
+
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
16
|
+
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
17
|
+
const justifyAround = "krc-justifyAround-AMU1m";
|
|
18
|
+
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
19
|
+
const wrap = "krc-wrap-Q4txZ";
|
|
20
|
+
const nowrap = "krc-nowrap-BUcfT";
|
|
21
|
+
const dirRow = "krc-dirRow-NBoPO";
|
|
22
|
+
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
5
23
|
const styles = {
|
|
6
24
|
root,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
25
|
+
gapNone,
|
|
26
|
+
gapXs,
|
|
27
|
+
gapSm,
|
|
28
|
+
gapMd,
|
|
29
|
+
gapLg,
|
|
30
|
+
gapXl,
|
|
31
|
+
alignStart,
|
|
32
|
+
alignCenter,
|
|
33
|
+
alignEnd,
|
|
34
|
+
alignStretch,
|
|
35
|
+
alignBaseline,
|
|
36
|
+
justifyStart,
|
|
37
|
+
justifyCenter,
|
|
38
|
+
justifyEnd,
|
|
39
|
+
justifyBetween,
|
|
40
|
+
justifyAround,
|
|
41
|
+
justifyEvenly,
|
|
42
|
+
wrap,
|
|
43
|
+
nowrap,
|
|
44
|
+
dirRow,
|
|
45
|
+
dirColumn
|
|
10
46
|
};
|
|
11
47
|
export {
|
|
12
|
-
|
|
48
|
+
alignBaseline,
|
|
49
|
+
alignCenter,
|
|
50
|
+
alignEnd,
|
|
51
|
+
alignStart,
|
|
52
|
+
alignStretch,
|
|
13
53
|
styles as default,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
54
|
+
dirColumn,
|
|
55
|
+
dirRow,
|
|
56
|
+
gapLg,
|
|
57
|
+
gapMd,
|
|
58
|
+
gapNone,
|
|
59
|
+
gapSm,
|
|
60
|
+
gapXl,
|
|
61
|
+
gapXs,
|
|
62
|
+
justifyAround,
|
|
63
|
+
justifyBetween,
|
|
64
|
+
justifyCenter,
|
|
65
|
+
justifyEnd,
|
|
66
|
+
justifyEvenly,
|
|
67
|
+
justifyStart,
|
|
68
|
+
nowrap,
|
|
69
|
+
root,
|
|
70
|
+
wrap
|
|
17
71
|
};
|
|
18
72
|
//# sourceMappingURL=index123.js.map
|
package/dist/index123.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index123.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index123.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index124.cjs
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
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";
|
|
4
9
|
const styles = {
|
|
5
|
-
root
|
|
10
|
+
root,
|
|
11
|
+
list,
|
|
12
|
+
page,
|
|
13
|
+
arrow,
|
|
14
|
+
isActive,
|
|
15
|
+
ellipsis
|
|
6
16
|
};
|
|
17
|
+
exports.arrow = arrow;
|
|
7
18
|
exports.default = styles;
|
|
19
|
+
exports.ellipsis = ellipsis;
|
|
20
|
+
exports.isActive = isActive;
|
|
21
|
+
exports.list = list;
|
|
22
|
+
exports.page = page;
|
|
8
23
|
exports.root = root;
|
|
9
24
|
//# sourceMappingURL=index124.cjs.map
|
package/dist/index124.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index124.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index124.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index124.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
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";
|
|
2
7
|
const styles = {
|
|
3
|
-
root
|
|
8
|
+
root,
|
|
9
|
+
list,
|
|
10
|
+
page,
|
|
11
|
+
arrow,
|
|
12
|
+
isActive,
|
|
13
|
+
ellipsis
|
|
4
14
|
};
|
|
5
15
|
export {
|
|
16
|
+
arrow,
|
|
6
17
|
styles as default,
|
|
18
|
+
ellipsis,
|
|
19
|
+
isActive,
|
|
20
|
+
list,
|
|
21
|
+
page,
|
|
7
22
|
root
|
|
8
23
|
};
|
|
9
24
|
//# sourceMappingURL=index124.js.map
|
package/dist/index124.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index124.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index124.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/index125.cjs
CHANGED
|
@@ -1,42 +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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
pending,
|
|
24
|
-
iconSlot,
|
|
25
|
-
stepSpinner,
|
|
26
|
-
checkIcon,
|
|
27
|
-
nonClosable
|
|
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 };
|
|
28
23
|
};
|
|
29
|
-
exports.
|
|
30
|
-
exports.default = styles;
|
|
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;
|
|
24
|
+
exports.pivotGroupedBars = pivotGroupedBars;
|
|
42
25
|
//# sourceMappingURL=index125.cjs.map
|
package/dist/index125.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index125.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index125.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/index125.js
CHANGED
|
@@ -1,42 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
pending,
|
|
22
|
-
iconSlot,
|
|
23
|
-
stepSpinner,
|
|
24
|
-
checkIcon,
|
|
25
|
-
nonClosable
|
|
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 };
|
|
26
21
|
};
|
|
27
22
|
export {
|
|
28
|
-
|
|
29
|
-
styles as default,
|
|
30
|
-
iconSlot,
|
|
31
|
-
loadingSpin,
|
|
32
|
-
nonClosable,
|
|
33
|
-
pending,
|
|
34
|
-
spinner,
|
|
35
|
-
step,
|
|
36
|
-
stepSpinner,
|
|
37
|
-
steps,
|
|
38
|
-
throbber,
|
|
39
|
-
titleRow,
|
|
40
|
-
titleSpinner
|
|
23
|
+
pivotGroupedBars
|
|
41
24
|
};
|
|
42
25
|
//# sourceMappingURL=index125.js.map
|
package/dist/index125.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index125.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index125.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;"}
|