@ktnpm_devops/react-component 0.20.0 → 0.21.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/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 +10 -39
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +9 -38
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +62 -47
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +62 -47
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +18 -35
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +17 -34
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +27 -43
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +26 -42
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +18 -24
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +17 -23
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +18 -39
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +17 -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 +24 -10
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +23 -9
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +22 -20
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +21 -19
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +7 -14
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +6 -13
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +24 -10
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +23 -9
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +17 -69
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +16 -68
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +2 -11
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +2 -11
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +10 -28
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +11 -29
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +2 -14
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +2 -14
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +32 -35
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +32 -35
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +16 -34
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +16 -34
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +14 -14
- package/dist/index117.js +15 -15
- package/dist/index118.cjs +14 -14
- package/dist/index118.js +15 -15
- package/dist/index119.cjs +13 -52
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +14 -53
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +36 -6
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +36 -6
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +49 -19
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +50 -20
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +48 -10
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +47 -9
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +18 -16
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +17 -15
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +32 -2
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +33 -3
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +30 -36
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +30 -36
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +2 -14
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +2 -14
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +46 -22
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +46 -22
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +12 -30
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +12 -30
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +43 -9
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +43 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +70 -1158
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +70 -1159
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +1063 -1475
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +1063 -1475
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +1572 -31
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +1572 -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 +1 -1
- package/dist/index16.js +1 -1
- 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 +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1 -1
- 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 +4 -3
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +4 -3
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +10 -10
- package/dist/index30.js +10 -10
- 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 +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- 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 +4 -3
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +4 -3
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.cjs +3 -3
- package/dist/index45.js +3 -3
- 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 +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.cjs +4 -3
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +4 -3
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +2 -2
- package/dist/index52.js +2 -2
- 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 +2 -2
- package/dist/index55.js +2 -2
- 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 +1 -1
- package/dist/index58.js +1 -1
- package/dist/index61.cjs +23 -2
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +24 -3
- package/dist/index61.js.map +1 -1
- package/dist/index63.cjs +16 -19
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +17 -20
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +17 -14
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +17 -14
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +17 -2
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +18 -3
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +19 -22
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +20 -23
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +12 -15
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +12 -15
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +65 -2
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +66 -3
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +2 -14
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +3 -15
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +73 -18
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +72 -17
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +52 -19
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +52 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +77 -14
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +78 -15
- 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 +30 -36
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +30 -36
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +29 -20
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +29 -20
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +5 -29
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +6 -30
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +9 -46
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +8 -45
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +26 -77
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +26 -77
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +33 -42
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +33 -42
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +134 -58
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +133 -57
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +36 -30
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +36 -30
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +58 -48
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +57 -47
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +37 -15
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +37 -15
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +92 -36
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +91 -35
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +34 -10
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +34 -10
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +116 -70
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +115 -69
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +42 -17
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +41 -16
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +22 -6
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +21 -5
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +63 -109
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +64 -110
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +7 -42
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +6 -41
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +34 -16
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +34 -16
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +33 -20
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +33 -20
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +36 -62
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +37 -63
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +23 -6
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +23 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +39 -39
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +38 -38
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +9 -22
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +8 -21
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +10 -6
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +9 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +19 -39
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +19 -39
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +12 -91
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +12 -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 +1 -1
package/dist/index103.cjs
CHANGED
|
@@ -1,46 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-ZwPiG";
|
|
4
|
+
const label = "krc-label-WG17f";
|
|
5
|
+
const value = "krc-value-S9SSu";
|
|
6
|
+
const red = "krc-red-stqO-";
|
|
7
|
+
const amber = "krc-amber-lZgsd";
|
|
8
|
+
const sub = "krc-sub-0xfrv";
|
|
9
|
+
const isClick = "krc-isClick-CnKvM";
|
|
10
|
+
const isActive = "krc-isActive-YLCNL";
|
|
11
|
+
const styles = {
|
|
12
|
+
root,
|
|
13
|
+
label,
|
|
14
|
+
value,
|
|
15
|
+
red,
|
|
16
|
+
amber,
|
|
17
|
+
sub,
|
|
18
|
+
isClick,
|
|
19
|
+
isActive
|
|
8
20
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const min = Math.min(...weights);
|
|
19
|
-
const max = Math.max(...weights);
|
|
20
|
-
return min === max ? null : { min, max };
|
|
21
|
-
};
|
|
22
|
-
const radiusFor = (weight, scale) => {
|
|
23
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return constants.GEO_MAP.BASE_MARKER_RADIUS;
|
|
24
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
25
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
26
|
-
const minArea = constants.GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
27
|
-
const maxArea = constants.GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
28
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
29
|
-
};
|
|
30
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
31
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
32
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
33
|
-
return {
|
|
34
|
-
radius: selected ? radius + constants.GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
35
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
36
|
-
weight: selected ? constants.GEO_MAP.SELECTED_STROKE_WIDTH : constants.GEO_MAP.MARKER_STROKE_WIDTH,
|
|
37
|
-
fillColor,
|
|
38
|
-
fillOpacity: selected ? 1 : constants.GEO_MAP.MARKER_FILL_OPACITY
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
42
|
-
exports.buildCategoryColors = buildCategoryColors;
|
|
43
|
-
exports.buildLegendItems = buildLegendItems;
|
|
44
|
-
exports.buildMarkerStyle = buildMarkerStyle;
|
|
45
|
-
exports.buildWeightScale = buildWeightScale;
|
|
21
|
+
exports.amber = amber;
|
|
22
|
+
exports.default = styles;
|
|
23
|
+
exports.isActive = isActive;
|
|
24
|
+
exports.isClick = isClick;
|
|
25
|
+
exports.label = label;
|
|
26
|
+
exports.red = red;
|
|
27
|
+
exports.root = root;
|
|
28
|
+
exports.sub = sub;
|
|
29
|
+
exports.value = value;
|
|
46
30
|
//# sourceMappingURL=index103.cjs.map
|
package/dist/index103.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index103.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index103.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index103.js
CHANGED
|
@@ -1,46 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const root = "krc-root-ZwPiG";
|
|
2
|
+
const label = "krc-label-WG17f";
|
|
3
|
+
const value = "krc-value-S9SSu";
|
|
4
|
+
const red = "krc-red-stqO-";
|
|
5
|
+
const amber = "krc-amber-lZgsd";
|
|
6
|
+
const sub = "krc-sub-0xfrv";
|
|
7
|
+
const isClick = "krc-isClick-CnKvM";
|
|
8
|
+
const isActive = "krc-isActive-YLCNL";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
label,
|
|
12
|
+
value,
|
|
13
|
+
red,
|
|
14
|
+
amber,
|
|
15
|
+
sub,
|
|
16
|
+
isClick,
|
|
17
|
+
isActive
|
|
6
18
|
};
|
|
7
|
-
const UNCATEGORISED_COLOR = orbitTokens.brand.orange;
|
|
8
|
-
const buildCategoryColors = (points) => {
|
|
9
|
-
const categories = [...new Set(points.map((p) => p.category).filter((c) => c != null))];
|
|
10
|
-
categories.sort((a, b) => a.localeCompare(b));
|
|
11
|
-
return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));
|
|
12
|
-
};
|
|
13
|
-
const buildWeightScale = (points) => {
|
|
14
|
-
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
15
|
-
if (weights.length === 0) return null;
|
|
16
|
-
const min = Math.min(...weights);
|
|
17
|
-
const max = Math.max(...weights);
|
|
18
|
-
return min === max ? null : { min, max };
|
|
19
|
-
};
|
|
20
|
-
const radiusFor = (weight, scale) => {
|
|
21
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;
|
|
22
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
23
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
24
|
-
const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
25
|
-
const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
26
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
27
|
-
};
|
|
28
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
29
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
30
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
31
|
-
return {
|
|
32
|
-
radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
33
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
34
|
-
weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,
|
|
35
|
-
fillColor,
|
|
36
|
-
fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
40
19
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
20
|
+
amber,
|
|
21
|
+
styles as default,
|
|
22
|
+
isActive,
|
|
23
|
+
isClick,
|
|
24
|
+
label,
|
|
25
|
+
red,
|
|
26
|
+
root,
|
|
27
|
+
sub,
|
|
28
|
+
value
|
|
45
29
|
};
|
|
46
30
|
//# sourceMappingURL=index103.js.map
|
package/dist/index103.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index103.js","sources":[
|
|
1
|
+
{"version":3,"file":"index103.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/index104.cjs
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, [map, width, height]);
|
|
15
|
-
react.useEffect(() => {
|
|
16
|
-
if (!fitBounds || bounds == null) return;
|
|
17
|
-
map.fitBounds(bounds, {
|
|
18
|
-
padding: [...constants.GEO_MAP.FIT_BOUNDS_PADDING],
|
|
19
|
-
// A single point makes `fitBounds` collapse to the maximum zoom level.
|
|
20
|
-
maxZoom: constants.GEO_MAP.SINGLE_POINT_ZOOM
|
|
21
|
-
});
|
|
22
|
-
}, [map, bounds, fitBounds]);
|
|
23
|
-
return null;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const region = "krc-region-4A3qS";
|
|
4
|
+
const toast = "krc-toast-VuzaK";
|
|
5
|
+
const toastIn = "krc-toast-in-TA6-r";
|
|
6
|
+
const success = "krc-success-oDnTy";
|
|
7
|
+
const error = "krc-error-dSTQn";
|
|
8
|
+
const styles = {
|
|
9
|
+
region,
|
|
10
|
+
toast,
|
|
11
|
+
toastIn,
|
|
12
|
+
success,
|
|
13
|
+
error
|
|
24
14
|
};
|
|
25
|
-
|
|
26
|
-
exports.
|
|
15
|
+
exports.default = styles;
|
|
16
|
+
exports.error = error;
|
|
17
|
+
exports.region = region;
|
|
18
|
+
exports.success = success;
|
|
19
|
+
exports.toast = toast;
|
|
20
|
+
exports.toastIn = toastIn;
|
|
27
21
|
//# sourceMappingURL=index104.cjs.map
|
package/dist/index104.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index104.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index104.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index104.js
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, [map, width, height]);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
if (!fitBounds || bounds == null) return;
|
|
15
|
-
map.fitBounds(bounds, {
|
|
16
|
-
padding: [...GEO_MAP.FIT_BOUNDS_PADDING],
|
|
17
|
-
// A single point makes `fitBounds` collapse to the maximum zoom level.
|
|
18
|
-
maxZoom: GEO_MAP.SINGLE_POINT_ZOOM
|
|
19
|
-
});
|
|
20
|
-
}, [map, bounds, fitBounds]);
|
|
21
|
-
return null;
|
|
1
|
+
const region = "krc-region-4A3qS";
|
|
2
|
+
const toast = "krc-toast-VuzaK";
|
|
3
|
+
const toastIn = "krc-toast-in-TA6-r";
|
|
4
|
+
const success = "krc-success-oDnTy";
|
|
5
|
+
const error = "krc-error-dSTQn";
|
|
6
|
+
const styles = {
|
|
7
|
+
region,
|
|
8
|
+
toast,
|
|
9
|
+
toastIn,
|
|
10
|
+
success,
|
|
11
|
+
error
|
|
22
12
|
};
|
|
23
|
-
MapViewport.displayName = "MapViewport";
|
|
24
13
|
export {
|
|
25
|
-
|
|
14
|
+
styles as default,
|
|
15
|
+
error,
|
|
16
|
+
region,
|
|
17
|
+
success,
|
|
18
|
+
toast,
|
|
19
|
+
toastIn
|
|
26
20
|
};
|
|
27
21
|
//# sourceMappingURL=index104.js.map
|
package/dist/index104.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index104.js","sources":[
|
|
1
|
+
{"version":3,"file":"index104.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index105.cjs
CHANGED
|
@@ -1,42 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
react.useEffect(() => {
|
|
15
|
-
const report = () => {
|
|
16
|
-
const bounds = map.getBounds();
|
|
17
|
-
const center = map.getCenter();
|
|
18
|
-
const next = normalizeViewport.normalizeViewport(
|
|
19
|
-
{
|
|
20
|
-
west: bounds.getWest(),
|
|
21
|
-
south: bounds.getSouth(),
|
|
22
|
-
east: bounds.getEast(),
|
|
23
|
-
north: bounds.getNorth()
|
|
24
|
-
},
|
|
25
|
-
map.getZoom(),
|
|
26
|
-
[center.lat, center.lng]
|
|
27
|
-
);
|
|
28
|
-
if (lastRef.current != null && normalizeViewport.sameViewport(lastRef.current, next)) return;
|
|
29
|
-
lastRef.current = next;
|
|
30
|
-
handlerRef.current(next);
|
|
31
|
-
};
|
|
32
|
-
report();
|
|
33
|
-
map.on(VIEWPORT_EVENTS, report);
|
|
34
|
-
return () => {
|
|
35
|
-
map.off(VIEWPORT_EVENTS, report);
|
|
36
|
-
};
|
|
37
|
-
}, [map]);
|
|
38
|
-
return null;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-oc0XP";
|
|
4
|
+
const success = "krc-success-JzpGX";
|
|
5
|
+
const warning = "krc-warning-lTskX";
|
|
6
|
+
const danger = "krc-danger-zFPHk";
|
|
7
|
+
const info = "krc-info-k9uTn";
|
|
8
|
+
const styles = {
|
|
9
|
+
root,
|
|
10
|
+
success,
|
|
11
|
+
warning,
|
|
12
|
+
danger,
|
|
13
|
+
info
|
|
39
14
|
};
|
|
40
|
-
|
|
41
|
-
exports.
|
|
15
|
+
exports.danger = danger;
|
|
16
|
+
exports.default = styles;
|
|
17
|
+
exports.info = info;
|
|
18
|
+
exports.root = root;
|
|
19
|
+
exports.success = success;
|
|
20
|
+
exports.warning = warning;
|
|
42
21
|
//# sourceMappingURL=index105.cjs.map
|
package/dist/index105.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index105.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index105.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index105.js
CHANGED
|
@@ -1,42 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
const report = () => {
|
|
14
|
-
const bounds = map.getBounds();
|
|
15
|
-
const center = map.getCenter();
|
|
16
|
-
const next = normalizeViewport(
|
|
17
|
-
{
|
|
18
|
-
west: bounds.getWest(),
|
|
19
|
-
south: bounds.getSouth(),
|
|
20
|
-
east: bounds.getEast(),
|
|
21
|
-
north: bounds.getNorth()
|
|
22
|
-
},
|
|
23
|
-
map.getZoom(),
|
|
24
|
-
[center.lat, center.lng]
|
|
25
|
-
);
|
|
26
|
-
if (lastRef.current != null && sameViewport(lastRef.current, next)) return;
|
|
27
|
-
lastRef.current = next;
|
|
28
|
-
handlerRef.current(next);
|
|
29
|
-
};
|
|
30
|
-
report();
|
|
31
|
-
map.on(VIEWPORT_EVENTS, report);
|
|
32
|
-
return () => {
|
|
33
|
-
map.off(VIEWPORT_EVENTS, report);
|
|
34
|
-
};
|
|
35
|
-
}, [map]);
|
|
36
|
-
return null;
|
|
1
|
+
const root = "krc-root-oc0XP";
|
|
2
|
+
const success = "krc-success-JzpGX";
|
|
3
|
+
const warning = "krc-warning-lTskX";
|
|
4
|
+
const danger = "krc-danger-zFPHk";
|
|
5
|
+
const info = "krc-info-k9uTn";
|
|
6
|
+
const styles = {
|
|
7
|
+
root,
|
|
8
|
+
success,
|
|
9
|
+
warning,
|
|
10
|
+
danger,
|
|
11
|
+
info
|
|
37
12
|
};
|
|
38
|
-
ViewportReporter.displayName = "ViewportReporter";
|
|
39
13
|
export {
|
|
40
|
-
|
|
14
|
+
danger,
|
|
15
|
+
styles as default,
|
|
16
|
+
info,
|
|
17
|
+
root,
|
|
18
|
+
success,
|
|
19
|
+
warning
|
|
41
20
|
};
|
|
42
21
|
//# sourceMappingURL=index105.js.map
|
package/dist/index105.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index105.js","sources":[
|
|
1
|
+
{"version":3,"file":"index105.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index106.cjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
MapStatusBars.displayName = "MapStatusBars";
|
|
10
|
-
exports.MapStatusBars = MapStatusBars;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-FVKOX";
|
|
4
|
+
const styles = {
|
|
5
|
+
root
|
|
6
|
+
};
|
|
7
|
+
exports.default = styles;
|
|
8
|
+
exports.root = root;
|
|
11
9
|
//# sourceMappingURL=index106.cjs.map
|
package/dist/index106.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index106.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index106.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/index106.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
emptyMessage && /* @__PURE__ */ jsx("div", { className: styles.status, role: "status", children: emptyMessage })
|
|
6
|
-
] });
|
|
7
|
-
MapStatusBars.displayName = "MapStatusBars";
|
|
1
|
+
const root = "krc-root-FVKOX";
|
|
2
|
+
const styles = {
|
|
3
|
+
root
|
|
4
|
+
};
|
|
8
5
|
export {
|
|
9
|
-
|
|
6
|
+
styles as default,
|
|
7
|
+
root
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index106.js.map
|
package/dist/index106.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index106.js","sources":[
|
|
1
|
+
{"version":3,"file":"index106.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index107.cjs
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-xKc1n";
|
|
4
|
+
const item = "krc-item-Omuyb";
|
|
5
|
+
const head = "krc-head-ePoJ-";
|
|
6
|
+
const headContent = "krc-headContent-wymxG";
|
|
7
|
+
const chev = "krc-chev-yPNHx";
|
|
8
|
+
const isOpen = "krc-isOpen-wp7DR";
|
|
9
|
+
const body = "krc-body-pZ1Bk";
|
|
10
|
+
const styles = {
|
|
11
|
+
root,
|
|
12
|
+
item,
|
|
13
|
+
head,
|
|
14
|
+
headContent,
|
|
15
|
+
chev,
|
|
16
|
+
isOpen,
|
|
17
|
+
body
|
|
9
18
|
};
|
|
10
|
-
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
19
|
+
exports.body = body;
|
|
20
|
+
exports.chev = chev;
|
|
21
|
+
exports.default = styles;
|
|
22
|
+
exports.head = head;
|
|
23
|
+
exports.headContent = headContent;
|
|
24
|
+
exports.isOpen = isOpen;
|
|
25
|
+
exports.item = item;
|
|
26
|
+
exports.root = root;
|
|
13
27
|
//# sourceMappingURL=index107.cjs.map
|
package/dist/index107.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index107.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index107.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index107.js
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const root = "krc-root-xKc1n";
|
|
2
|
+
const item = "krc-item-Omuyb";
|
|
3
|
+
const head = "krc-head-ePoJ-";
|
|
4
|
+
const headContent = "krc-headContent-wymxG";
|
|
5
|
+
const chev = "krc-chev-yPNHx";
|
|
6
|
+
const isOpen = "krc-isOpen-wp7DR";
|
|
7
|
+
const body = "krc-body-pZ1Bk";
|
|
8
|
+
const styles = {
|
|
9
|
+
root,
|
|
10
|
+
item,
|
|
11
|
+
head,
|
|
12
|
+
headContent,
|
|
13
|
+
chev,
|
|
14
|
+
isOpen,
|
|
15
|
+
body
|
|
7
16
|
};
|
|
8
|
-
const describePoint = (point, categoryLabel) => [point.label, point.category != null ? `${categoryLabel}: ${point.category}` : null, point.detail].filter((part) => part != null && part !== "").join(" — ");
|
|
9
17
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
body,
|
|
19
|
+
chev,
|
|
20
|
+
styles as default,
|
|
21
|
+
head,
|
|
22
|
+
headContent,
|
|
23
|
+
isOpen,
|
|
24
|
+
item,
|
|
25
|
+
root
|
|
12
26
|
};
|
|
13
27
|
//# sourceMappingURL=index107.js.map
|
package/dist/index107.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index107.js","sources":[
|
|
1
|
+
{"version":3,"file":"index107.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index108.cjs
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-tsCGC";
|
|
4
|
+
const input = "krc-input--stjU";
|
|
5
|
+
const label = "krc-label-KD6pE";
|
|
6
|
+
const disabled = "krc-disabled-ugpPh";
|
|
7
|
+
const sm = "krc-sm-8drDq";
|
|
8
|
+
const md = "krc-md-IG7oy";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
input,
|
|
12
|
+
label,
|
|
13
|
+
disabled,
|
|
14
|
+
sm,
|
|
15
|
+
md
|
|
16
|
+
};
|
|
17
|
+
exports.default = styles;
|
|
18
|
+
exports.disabled = disabled;
|
|
19
|
+
exports.input = input;
|
|
20
|
+
exports.label = label;
|
|
21
|
+
exports.md = md;
|
|
22
|
+
exports.root = root;
|
|
23
|
+
exports.sm = sm;
|
|
22
24
|
//# sourceMappingURL=index108.cjs.map
|