@ktnpm_devops/react-component 0.12.1 → 0.13.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/README.md +39 -0
- package/dist/constants.d.ts +26 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts +7 -0
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +91 -0
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/MapLegend.d.ts +12 -0
- package/dist/geo/GeoMapCard/MapLegend.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/MapViewport.d.ts +17 -0
- package/dist/geo/GeoMapCard/MapViewport.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/PointListing.d.ts +14 -0
- package/dist/geo/GeoMapCard/PointListing.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts +47 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/index.d.ts +3 -0
- package/dist/geo/GeoMapCard/index.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizePoints.d.ts +26 -0
- package/dist/geo/GeoMapCard/normalizePoints.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizePoints.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/normalizePoints.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts +13 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts.map +1 -0
- package/dist/geo/index.d.ts +3 -0
- package/dist/geo/index.d.ts.map +1 -0
- package/dist/hooks/useThemeMode.d.ts +8 -0
- package/dist/hooks/useThemeMode.d.ts.map +1 -0
- package/dist/index.cjs +52 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -48
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +45 -14
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +46 -15
- package/dist/index10.js.map +1 -1
- package/dist/index100.cjs +24 -6
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +23 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +20 -16
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +19 -15
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +14 -22
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +13 -21
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +57 -36
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +57 -36
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +19 -16
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +20 -17
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +49 -19
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +49 -19
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +33 -0
- package/dist/index106.cjs.map +1 -0
- package/dist/index106.js +33 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.cjs +18 -0
- package/dist/index107.cjs.map +1 -0
- package/dist/index107.js +18 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.cjs +12 -0
- package/dist/index108.cjs.map +1 -0
- package/dist/index108.js +12 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.cjs +21 -0
- package/dist/index109.cjs.map +1 -0
- package/dist/index109.js +21 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.cjs +14 -15
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +15 -16
- package/dist/index11.js.map +1 -1
- package/dist/index110.cjs +24 -0
- package/dist/index110.cjs.map +1 -0
- package/dist/index110.js +24 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.cjs +9 -0
- package/dist/index111.cjs.map +1 -0
- package/dist/index111.js +9 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.cjs +9 -0
- package/dist/index112.cjs.map +1 -0
- package/dist/index112.js +9 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.cjs +27 -0
- package/dist/index113.cjs.map +1 -0
- package/dist/index113.js +27 -0
- package/dist/index113.js.map +1 -0
- package/dist/index12.cjs +15 -4
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +15 -4
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +4 -16
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +4 -16
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +16 -10
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +16 -10
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +10 -100
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +11 -101
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +100 -20
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +101 -21
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +20 -54
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +20 -54
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +52 -16
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +54 -18
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +16 -24
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +17 -25
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +22 -39
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +23 -40
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +38 -85
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +40 -87
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +85 -153
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +87 -155
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +150 -128
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +150 -128
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +121 -106
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +122 -107
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +121 -17
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +121 -17
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +16 -163
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +16 -163
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +163 -21
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +164 -22
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +20 -129
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +20 -129
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +129 -75
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +131 -77
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +152 -7
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +154 -9
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +74 -128
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +76 -130
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +6 -54
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +8 -56
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +128 -35
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +128 -35
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +51 -221
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +52 -222
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +38 -34
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +39 -35
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +222 -106
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +224 -108
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +30 -64
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +31 -65
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +106 -74
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +108 -76
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +63 -54
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +64 -55
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +69 -144
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +70 -145
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +57 -96
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +59 -98
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +147 -66
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +149 -68
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +97 -7
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +99 -9
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +72 -17
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +73 -18
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +7 -76
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +9 -78
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +17 -143
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +17 -143
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +72 -59
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +74 -61
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +136 -98
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +137 -99
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +49 -32
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +49 -32
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +105 -6
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +106 -7
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +44 -144
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +45 -145
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +6 -8
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +6 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +145 -15
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +147 -17
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +7 -65
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +8 -66
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +19 -16
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +18 -15
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +67 -24
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +66 -23
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +15 -69
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +15 -69
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +3 -15
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +3 -15
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +24 -89
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +23 -88
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +64 -16
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +64 -16
- package/dist/index60.js.map +1 -1
- package/dist/index62.cjs +18 -9
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +18 -9
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +13 -16
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +13 -16
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +13 -13
- package/dist/index64.js +13 -13
- 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 +2 -20
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +3 -21
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +116 -28
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +114 -26
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +17 -17
- package/dist/index68.js +18 -18
- package/dist/index69.cjs +20 -5
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +20 -5
- package/dist/index69.js.map +1 -1
- package/dist/index7.cjs +32 -64
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +32 -64
- package/dist/index7.js.map +1 -1
- package/dist/index70.cjs +10 -16
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +10 -16
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +16 -28
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +16 -28
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +79 -19
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +80 -20
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +47 -2
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +48 -3
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +53 -2
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +54 -3
- package/dist/index74.js.map +1 -1
- package/dist/index76.cjs +28 -13
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +29 -14
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +3 -30
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +3 -30
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +31 -7
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +32 -8
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +10 -34
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +11 -35
- package/dist/index79.js.map +1 -1
- package/dist/index8.cjs +58 -75
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +58 -75
- package/dist/index8.js.map +1 -1
- package/dist/index80.cjs +16 -10
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +17 -11
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +16 -4
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +17 -5
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +10 -134
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +9 -133
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +24 -36
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +25 -37
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +36 -81
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +36 -81
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +38 -2
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +39 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +49 -43
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +50 -44
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +39 -57
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +38 -56
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +92 -42
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +91 -41
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +34 -16
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +34 -16
- package/dist/index89.js.map +1 -1
- package/dist/index9.cjs +81 -45
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +81 -45
- package/dist/index9.js.map +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index92.cjs +34 -34
- package/dist/index92.js +34 -34
- package/dist/index93.cjs +134 -34
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +133 -33
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +45 -39
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +44 -38
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +33 -92
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +32 -91
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +16 -34
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +16 -34
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +13 -49
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +14 -50
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +35 -30
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +34 -29
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +43 -57
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +42 -56
- package/dist/index99.js.map +1 -1
- package/dist/style.css +207 -0
- package/dist/types/geo.types.d.ts +45 -0
- package/dist/types/geo.types.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +13 -2
package/dist/index99.cjs
CHANGED
|
@@ -1,60 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const label = "krc-label-lZlV-";
|
|
9
|
-
const value = "krc-value-HsQrC";
|
|
10
|
-
const clear = "krc-clear-bsi5j";
|
|
11
|
-
const panel = "krc-panel--0odx";
|
|
12
|
-
const searchContainer = "krc-searchContainer-WRS-U";
|
|
13
|
-
const search = "krc-search-Dh3pY";
|
|
14
|
-
const list = "krc-list-1RUtr";
|
|
15
|
-
const noResults = "krc-noResults-Hin1U";
|
|
16
|
-
const option = "krc-option-0mFGi";
|
|
17
|
-
const focused = "krc-focused-0-7tE";
|
|
18
|
-
const selected = "krc-selected-1zIqI";
|
|
19
|
-
const optionLabel = "krc-optionLabel-pj-hL";
|
|
20
|
-
const optionCount = "krc-optionCount-rVlCP";
|
|
21
|
-
const styles = {
|
|
22
|
-
root,
|
|
23
|
-
trigger,
|
|
24
|
-
active,
|
|
25
|
-
triggerContent,
|
|
26
|
-
chevron,
|
|
27
|
-
label,
|
|
28
|
-
value,
|
|
29
|
-
clear,
|
|
30
|
-
panel,
|
|
31
|
-
searchContainer,
|
|
32
|
-
search,
|
|
33
|
-
list,
|
|
34
|
-
noResults,
|
|
35
|
-
option,
|
|
36
|
-
focused,
|
|
37
|
-
selected,
|
|
38
|
-
optionLabel,
|
|
39
|
-
optionCount
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const constants = require("./index67.cjs");
|
|
4
|
+
const tokens = require("./index3.cjs");
|
|
5
|
+
const SELECTION_RING = {
|
|
6
|
+
light: tokens.orbitTokens.purple.base,
|
|
7
|
+
dark: "#FFFFFF"
|
|
40
8
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
9
|
+
const UNCATEGORISED_COLOR = tokens.orbitTokens.brand.orange;
|
|
10
|
+
const buildCategoryColors = (points) => {
|
|
11
|
+
const categories = [...new Set(points.map((p) => p.category).filter((c) => c != null))];
|
|
12
|
+
categories.sort((a, b) => a.localeCompare(b));
|
|
13
|
+
return new Map(categories.map((category, i) => [category, constants.CHART_COLORS[i % constants.CHART_COLORS.length]]));
|
|
14
|
+
};
|
|
15
|
+
const buildWeightScale = (points) => {
|
|
16
|
+
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
17
|
+
if (weights.length === 0) return null;
|
|
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;
|
|
60
46
|
//# sourceMappingURL=index99.cjs.map
|
package/dist/index99.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index99.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index99.cjs","sources":["../src/geo/GeoMapCard/buildMarkerStyle.ts"],"sourcesContent":["import { CHART_COLORS, GEO_MAP } from '../../constants';\nimport { orbitTokens } from '../../tokens/tokens';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoLegendItem, GeoPoint } from '../../types/geo.types';\n\n/**\n * Leaflet draws its markers as SVG paths, out of reach of the CSS custom\n * properties, so colours are resolved here as hex — the same exception the\n * ECharts family makes. Everything styled with CSS still uses the tokens.\n */\nexport interface MarkerStyle {\n radius: number;\n /** Stroke colour. */\n color: string;\n /** Stroke width. */\n weight: number;\n fillColor: string;\n fillOpacity: number;\n}\n\n/** Weight range actually present in the data, or `null` when it carries none. */\nexport interface WeightScale {\n min: number;\n max: number;\n}\n\nexport interface MarkerStyleOptions {\n categoryColors: Map<string, string>;\n weightScale: WeightScale | null;\n selected: boolean;\n theme: ThemeMode;\n}\n\n/** Ring drawn around a selected marker: maximum contrast against the basemap. */\nconst SELECTION_RING: Record<ThemeMode, string> = {\n light: orbitTokens.purple.base,\n dark: '#FFFFFF',\n};\n\n/** Colour used when no point carries a category. */\nconst UNCATEGORISED_COLOR = orbitTokens.brand.orange;\n\n/**\n * Categories are sorted before being indexed into the palette, so a colour\n * belongs to a category and not to the order the rows happened to arrive in.\n */\nexport const buildCategoryColors = (points: GeoPoint[]): Map<string, string> => {\n const categories = [...new Set(points.map((p) => p.category).filter((c): c is string => c != null))];\n\n categories.sort((a, b) => a.localeCompare(b));\n\n return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));\n};\n\n/**\n * Null when nothing carries a weight, and also when every weight is equal:\n * a dataset with no size information should render at the base radius rather\n * than paint every marker at the maximum.\n */\nexport const buildWeightScale = (points: GeoPoint[]): WeightScale | null => {\n const weights = points\n .map((p) => p.weight)\n .filter((w): w is number => w != null && Number.isFinite(w));\n\n if (weights.length === 0) return null;\n\n const min = Math.min(...weights);\n const max = Math.max(...weights);\n\n return min === max ? null : { min, max };\n};\n\n/**\n * Interpolate on the *area*, which is what a reader actually compares, and take\n * the square root to get back to a radius.\n */\nconst radiusFor = (weight: number | null | undefined, scale: WeightScale | null): number => {\n if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;\n\n const ratio = (weight - scale.min) / (scale.max - scale.min);\n const clamped = Math.min(Math.max(ratio, 0), 1);\n const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;\n const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;\n\n return Math.sqrt(minArea + clamped * (maxArea - minArea));\n};\n\n/**\n * Selection changes the radius and the stroke as well as the colour, because\n * colour is never allowed to be the only indicator of a state.\n */\nexport const buildMarkerStyle = (\n point: GeoPoint,\n { categoryColors, weightScale, selected, theme }: MarkerStyleOptions,\n): MarkerStyle => {\n const fillColor =\n (point.category != null ? categoryColors.get(point.category) : undefined) ?? UNCATEGORISED_COLOR;\n const radius = radiusFor(point.weight, weightScale);\n\n return {\n radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,\n color: selected ? SELECTION_RING[theme] : fillColor,\n weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,\n fillColor,\n fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY,\n };\n};\n\n/** Legend swatches, in the same order the palette was handed out. */\nexport const buildLegendItems = (categoryColors: Map<string, string>): GeoLegendItem[] =>\n [...categoryColors].map(([label, color]) => ({ label, color }));\n"],"names":["orbitTokens","CHART_COLORS","GEO_MAP"],"mappings":";;;;AAkCA,MAAM,iBAA4C;AAAA,EAChD,OAAOA,OAAAA,YAAY,OAAO;AAAA,EAC1B,MAAM;AACR;AAGA,MAAM,sBAAsBA,OAAAA,YAAY,MAAM;AAMvC,MAAM,sBAAsB,CAAC,WAA4C;AAC9E,QAAM,aAAa,CAAC,GAAG,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAmB,KAAK,IAAI,CAAC,CAAC;AAEnG,aAAW,KAAK,CAAC,GAAG,MAAM,EAAE,cAAc,CAAC,CAAC;AAE5C,SAAO,IAAI,IAAI,WAAW,IAAI,CAAC,UAAU,MAAM,CAAC,UAAUC,UAAAA,aAAa,IAAIA,UAAAA,aAAa,MAAM,CAAC,CAAC,CAAC;AACnG;AAOO,MAAM,mBAAmB,CAAC,WAA2C;AAC1E,QAAM,UAAU,OACb,IAAI,CAAC,MAAM,EAAE,MAAM,EACnB,OAAO,CAAC,MAAmB,KAAK,QAAQ,OAAO,SAAS,CAAC,CAAC;AAE7D,MAAI,QAAQ,WAAW,EAAG,QAAO;AAEjC,QAAM,MAAM,KAAK,IAAI,GAAG,OAAO;AAC/B,QAAM,MAAM,KAAK,IAAI,GAAG,OAAO;AAE/B,SAAO,QAAQ,MAAM,OAAO,EAAE,KAAK,IAAA;AACrC;AAMA,MAAM,YAAY,CAAC,QAAmC,UAAsC;AAC1F,MAAI,SAAS,QAAQ,UAAU,QAAQ,CAAC,OAAO,SAAS,MAAM,EAAG,QAAOC,UAAAA,QAAQ;AAEhF,QAAM,SAAS,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM;AACxD,QAAM,UAAU,KAAK,IAAI,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC;AAC9C,QAAM,UAAUA,kBAAQ,qBAAqB;AAC7C,QAAM,UAAUA,kBAAQ,qBAAqB;AAE7C,SAAO,KAAK,KAAK,UAAU,WAAW,UAAU,QAAQ;AAC1D;AAMO,MAAM,mBAAmB,CAC9B,OACA,EAAE,gBAAgB,aAAa,UAAU,YACzB;AAChB,QAAM,aACH,MAAM,YAAY,OAAO,eAAe,IAAI,MAAM,QAAQ,IAAI,WAAc;AAC/E,QAAM,SAAS,UAAU,MAAM,QAAQ,WAAW;AAElD,SAAO;AAAA,IACL,QAAQ,WAAW,SAASA,UAAAA,QAAQ,wBAAwB;AAAA,IAC5D,OAAO,WAAW,eAAe,KAAK,IAAI;AAAA,IAC1C,QAAQ,WAAWA,UAAAA,QAAQ,wBAAwBA,UAAAA,QAAQ;AAAA,IAC3D;AAAA,IACA,aAAa,WAAW,IAAIA,kBAAQ;AAAA,EAAA;AAExC;AAGO,MAAM,mBAAmB,CAAC,mBAC/B,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,CAAC,OAAO,KAAK,OAAO,EAAE,OAAO,QAAQ;;;;;"}
|
package/dist/index99.js
CHANGED
|
@@ -1,60 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const label = "krc-label-lZlV-";
|
|
7
|
-
const value = "krc-value-HsQrC";
|
|
8
|
-
const clear = "krc-clear-bsi5j";
|
|
9
|
-
const panel = "krc-panel--0odx";
|
|
10
|
-
const searchContainer = "krc-searchContainer-WRS-U";
|
|
11
|
-
const search = "krc-search-Dh3pY";
|
|
12
|
-
const list = "krc-list-1RUtr";
|
|
13
|
-
const noResults = "krc-noResults-Hin1U";
|
|
14
|
-
const option = "krc-option-0mFGi";
|
|
15
|
-
const focused = "krc-focused-0-7tE";
|
|
16
|
-
const selected = "krc-selected-1zIqI";
|
|
17
|
-
const optionLabel = "krc-optionLabel-pj-hL";
|
|
18
|
-
const optionCount = "krc-optionCount-rVlCP";
|
|
19
|
-
const styles = {
|
|
20
|
-
root,
|
|
21
|
-
trigger,
|
|
22
|
-
active,
|
|
23
|
-
triggerContent,
|
|
24
|
-
chevron,
|
|
25
|
-
label,
|
|
26
|
-
value,
|
|
27
|
-
clear,
|
|
28
|
-
panel,
|
|
29
|
-
searchContainer,
|
|
30
|
-
search,
|
|
31
|
-
list,
|
|
32
|
-
noResults,
|
|
33
|
-
option,
|
|
34
|
-
focused,
|
|
35
|
-
selected,
|
|
36
|
-
optionLabel,
|
|
37
|
-
optionCount
|
|
1
|
+
import { CHART_COLORS, GEO_MAP } from "./index67.js";
|
|
2
|
+
import { orbitTokens } from "./index3.js";
|
|
3
|
+
const SELECTION_RING = {
|
|
4
|
+
light: orbitTokens.purple.base,
|
|
5
|
+
dark: "#FFFFFF"
|
|
38
6
|
};
|
|
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 }));
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
focused,
|
|
45
|
-
label,
|
|
46
|
-
list,
|
|
47
|
-
noResults,
|
|
48
|
-
option,
|
|
49
|
-
optionCount,
|
|
50
|
-
optionLabel,
|
|
51
|
-
panel,
|
|
52
|
-
root,
|
|
53
|
-
search,
|
|
54
|
-
searchContainer,
|
|
55
|
-
selected,
|
|
56
|
-
trigger,
|
|
57
|
-
triggerContent,
|
|
58
|
-
value
|
|
41
|
+
buildCategoryColors,
|
|
42
|
+
buildLegendItems,
|
|
43
|
+
buildMarkerStyle,
|
|
44
|
+
buildWeightScale
|
|
59
45
|
};
|
|
60
46
|
//# sourceMappingURL=index99.js.map
|
package/dist/index99.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index99.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index99.js","sources":["../src/geo/GeoMapCard/buildMarkerStyle.ts"],"sourcesContent":["import { CHART_COLORS, GEO_MAP } from '../../constants';\nimport { orbitTokens } from '../../tokens/tokens';\nimport type { ThemeMode } from '../../hooks/useThemeMode';\nimport type { GeoLegendItem, GeoPoint } from '../../types/geo.types';\n\n/**\n * Leaflet draws its markers as SVG paths, out of reach of the CSS custom\n * properties, so colours are resolved here as hex — the same exception the\n * ECharts family makes. Everything styled with CSS still uses the tokens.\n */\nexport interface MarkerStyle {\n radius: number;\n /** Stroke colour. */\n color: string;\n /** Stroke width. */\n weight: number;\n fillColor: string;\n fillOpacity: number;\n}\n\n/** Weight range actually present in the data, or `null` when it carries none. */\nexport interface WeightScale {\n min: number;\n max: number;\n}\n\nexport interface MarkerStyleOptions {\n categoryColors: Map<string, string>;\n weightScale: WeightScale | null;\n selected: boolean;\n theme: ThemeMode;\n}\n\n/** Ring drawn around a selected marker: maximum contrast against the basemap. */\nconst SELECTION_RING: Record<ThemeMode, string> = {\n light: orbitTokens.purple.base,\n dark: '#FFFFFF',\n};\n\n/** Colour used when no point carries a category. */\nconst UNCATEGORISED_COLOR = orbitTokens.brand.orange;\n\n/**\n * Categories are sorted before being indexed into the palette, so a colour\n * belongs to a category and not to the order the rows happened to arrive in.\n */\nexport const buildCategoryColors = (points: GeoPoint[]): Map<string, string> => {\n const categories = [...new Set(points.map((p) => p.category).filter((c): c is string => c != null))];\n\n categories.sort((a, b) => a.localeCompare(b));\n\n return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));\n};\n\n/**\n * Null when nothing carries a weight, and also when every weight is equal:\n * a dataset with no size information should render at the base radius rather\n * than paint every marker at the maximum.\n */\nexport const buildWeightScale = (points: GeoPoint[]): WeightScale | null => {\n const weights = points\n .map((p) => p.weight)\n .filter((w): w is number => w != null && Number.isFinite(w));\n\n if (weights.length === 0) return null;\n\n const min = Math.min(...weights);\n const max = Math.max(...weights);\n\n return min === max ? null : { min, max };\n};\n\n/**\n * Interpolate on the *area*, which is what a reader actually compares, and take\n * the square root to get back to a radius.\n */\nconst radiusFor = (weight: number | null | undefined, scale: WeightScale | null): number => {\n if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;\n\n const ratio = (weight - scale.min) / (scale.max - scale.min);\n const clamped = Math.min(Math.max(ratio, 0), 1);\n const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;\n const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;\n\n return Math.sqrt(minArea + clamped * (maxArea - minArea));\n};\n\n/**\n * Selection changes the radius and the stroke as well as the colour, because\n * colour is never allowed to be the only indicator of a state.\n */\nexport const buildMarkerStyle = (\n point: GeoPoint,\n { categoryColors, weightScale, selected, theme }: MarkerStyleOptions,\n): MarkerStyle => {\n const fillColor =\n (point.category != null ? categoryColors.get(point.category) : undefined) ?? UNCATEGORISED_COLOR;\n const radius = radiusFor(point.weight, weightScale);\n\n return {\n radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,\n color: selected ? SELECTION_RING[theme] : fillColor,\n weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,\n fillColor,\n fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY,\n };\n};\n\n/** Legend swatches, in the same order the palette was handed out. */\nexport const buildLegendItems = (categoryColors: Map<string, string>): GeoLegendItem[] =>\n [...categoryColors].map(([label, color]) => ({ label, color }));\n"],"names":[],"mappings":";;AAkCA,MAAM,iBAA4C;AAAA,EAChD,OAAO,YAAY,OAAO;AAAA,EAC1B,MAAM;AACR;AAGA,MAAM,sBAAsB,YAAY,MAAM;AAMvC,MAAM,sBAAsB,CAAC,WAA4C;AAC9E,QAAM,aAAa,CAAC,GAAG,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAmB,KAAK,IAAI,CAAC,CAAC;AAEnG,aAAW,KAAK,CAAC,GAAG,MAAM,EAAE,cAAc,CAAC,CAAC;AAE5C,SAAO,IAAI,IAAI,WAAW,IAAI,CAAC,UAAU,MAAM,CAAC,UAAU,aAAa,IAAI,aAAa,MAAM,CAAC,CAAC,CAAC;AACnG;AAOO,MAAM,mBAAmB,CAAC,WAA2C;AAC1E,QAAM,UAAU,OACb,IAAI,CAAC,MAAM,EAAE,MAAM,EACnB,OAAO,CAAC,MAAmB,KAAK,QAAQ,OAAO,SAAS,CAAC,CAAC;AAE7D,MAAI,QAAQ,WAAW,EAAG,QAAO;AAEjC,QAAM,MAAM,KAAK,IAAI,GAAG,OAAO;AAC/B,QAAM,MAAM,KAAK,IAAI,GAAG,OAAO;AAE/B,SAAO,QAAQ,MAAM,OAAO,EAAE,KAAK,IAAA;AACrC;AAMA,MAAM,YAAY,CAAC,QAAmC,UAAsC;AAC1F,MAAI,SAAS,QAAQ,UAAU,QAAQ,CAAC,OAAO,SAAS,MAAM,EAAG,QAAO,QAAQ;AAEhF,QAAM,SAAS,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM;AACxD,QAAM,UAAU,KAAK,IAAI,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC;AAC9C,QAAM,UAAU,QAAQ,qBAAqB;AAC7C,QAAM,UAAU,QAAQ,qBAAqB;AAE7C,SAAO,KAAK,KAAK,UAAU,WAAW,UAAU,QAAQ;AAC1D;AAMO,MAAM,mBAAmB,CAC9B,OACA,EAAE,gBAAgB,aAAa,UAAU,YACzB;AAChB,QAAM,aACH,MAAM,YAAY,OAAO,eAAe,IAAI,MAAM,QAAQ,IAAI,WAAc;AAC/E,QAAM,SAAS,UAAU,MAAM,QAAQ,WAAW;AAElD,SAAO;AAAA,IACL,QAAQ,WAAW,SAAS,QAAQ,wBAAwB;AAAA,IAC5D,OAAO,WAAW,eAAe,KAAK,IAAI;AAAA,IAC1C,QAAQ,WAAW,QAAQ,wBAAwB,QAAQ;AAAA,IAC3D;AAAA,IACA,aAAa,WAAW,IAAI,QAAQ;AAAA,EAAA;AAExC;AAGO,MAAM,mBAAmB,CAAC,mBAC/B,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,CAAC,OAAO,KAAK,OAAO,EAAE,OAAO,QAAQ;"}
|
package/dist/style.css
CHANGED
|
@@ -1580,6 +1580,213 @@
|
|
|
1580
1580
|
.krc-input--QI2U:focus {
|
|
1581
1581
|
border-color: var(--accent-color);
|
|
1582
1582
|
}
|
|
1583
|
+
/* Column flex so the map takes the height the card is given: the container grows
|
|
1584
|
+
when the consumer sizes the card, and falls back to its own height when the
|
|
1585
|
+
card is left to size itself. */
|
|
1586
|
+
.krc-root-m-WU1 {
|
|
1587
|
+
display: flex;
|
|
1588
|
+
flex-direction: column;
|
|
1589
|
+
background: var(--surface-color);
|
|
1590
|
+
border: var(--border-width) solid var(--border-color);
|
|
1591
|
+
border-radius: var(--radius-lg);
|
|
1592
|
+
box-shadow: var(--shadow-subtle);
|
|
1593
|
+
overflow: hidden;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.krc-header-j8Yft {
|
|
1597
|
+
display: flex;
|
|
1598
|
+
flex: 0 0 auto;
|
|
1599
|
+
align-items: center;
|
|
1600
|
+
justify-content: space-between;
|
|
1601
|
+
padding: var(--spacing-sm) var(--spacing-md);
|
|
1602
|
+
border-bottom: var(--border-width) solid var(--border-color);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.krc-title-10Tak {
|
|
1606
|
+
margin: 0;
|
|
1607
|
+
font-size: var(--font-size-md);
|
|
1608
|
+
font-weight: 600;
|
|
1609
|
+
color: var(--text-primary);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.krc-headerActions-rh6MO {
|
|
1613
|
+
display: flex;
|
|
1614
|
+
align-items: center;
|
|
1615
|
+
gap: var(--spacing-xs);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.krc-toolbar-6bfl- {
|
|
1619
|
+
display: flex;
|
|
1620
|
+
flex: 0 0 auto;
|
|
1621
|
+
align-items: center;
|
|
1622
|
+
gap: var(--spacing-md);
|
|
1623
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
1624
|
+
border-bottom: var(--border-width) solid var(--border-color);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
.krc-warning-dISP1 {
|
|
1628
|
+
display: flex;
|
|
1629
|
+
flex: 0 0 auto;
|
|
1630
|
+
align-items: center;
|
|
1631
|
+
gap: var(--spacing-xs);
|
|
1632
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
1633
|
+
font-size: var(--font-size-xs);
|
|
1634
|
+
color: var(--warning-color);
|
|
1635
|
+
background: var(--warning-color-soft);
|
|
1636
|
+
border-bottom: var(--border-width) solid var(--border-color);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/* An explicit height (not just a minimum) is what lets Leaflet resolve its own
|
|
1640
|
+
`height: 100%`; `flex: 1` then lets it take any extra space the card was given. */
|
|
1641
|
+
.krc-mapContainer-MKTII {
|
|
1642
|
+
position: relative;
|
|
1643
|
+
flex: 1 1 auto;
|
|
1644
|
+
box-sizing: border-box;
|
|
1645
|
+
height: 21.25rem;
|
|
1646
|
+
min-height: 21.25rem;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.krc-map-o-Ldd {
|
|
1650
|
+
width: 100%;
|
|
1651
|
+
height: 100%;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.krc-loading-LE2tH,
|
|
1655
|
+
.krc-empty-JAoUd {
|
|
1656
|
+
display: flex;
|
|
1657
|
+
flex: 1 1 auto;
|
|
1658
|
+
align-items: center;
|
|
1659
|
+
justify-content: center;
|
|
1660
|
+
min-height: 21.25rem;
|
|
1661
|
+
color: var(--text-secondary);
|
|
1662
|
+
font-size: var(--font-size-sm);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.krc-error-FkrvS {
|
|
1666
|
+
display: flex;
|
|
1667
|
+
flex: 1 1 auto;
|
|
1668
|
+
flex-direction: column;
|
|
1669
|
+
align-items: center;
|
|
1670
|
+
justify-content: center;
|
|
1671
|
+
gap: var(--spacing-sm);
|
|
1672
|
+
min-height: 21.25rem;
|
|
1673
|
+
color: var(--danger-color);
|
|
1674
|
+
font-size: var(--font-size-sm);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
.krc-retryButton-BKn73 {
|
|
1678
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
1679
|
+
font-size: var(--font-size-sm);
|
|
1680
|
+
color: var(--accent-color-contrast);
|
|
1681
|
+
background: var(--accent-color);
|
|
1682
|
+
border: none;
|
|
1683
|
+
border-radius: var(--radius-sm);
|
|
1684
|
+
cursor: pointer;
|
|
1685
|
+
transition: background-color 0.15s ease;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.krc-retryButton-BKn73:hover {
|
|
1689
|
+
background: var(--accent-color-strong);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
.krc-retryButton-BKn73:focus-visible {
|
|
1693
|
+
outline: none;
|
|
1694
|
+
box-shadow: var(--focus-ring-shadow);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
/* The legend sits inside Leaflet's control pane (see MapLegend), so it inherits
|
|
1698
|
+
that stacking context and needs no z-index of its own. */
|
|
1699
|
+
.krc-legend-c-RjE {
|
|
1700
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
1701
|
+
background: var(--surface-color);
|
|
1702
|
+
border: var(--border-width) solid var(--border-color);
|
|
1703
|
+
border-radius: var(--radius-md);
|
|
1704
|
+
box-shadow: var(--shadow-soft);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.krc-legendTitle-j4e4- {
|
|
1708
|
+
margin: 0 0 var(--spacing-2xs);
|
|
1709
|
+
font-size: var(--font-size-2xs);
|
|
1710
|
+
font-weight: 600;
|
|
1711
|
+
text-transform: uppercase;
|
|
1712
|
+
letter-spacing: 0.06em;
|
|
1713
|
+
color: var(--text-tertiary);
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
.krc-legendList-jRukT {
|
|
1717
|
+
display: flex;
|
|
1718
|
+
flex-direction: column;
|
|
1719
|
+
gap: var(--spacing-2xs);
|
|
1720
|
+
margin: 0;
|
|
1721
|
+
padding: 0;
|
|
1722
|
+
list-style: none;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
.krc-legendItem-X2jYA {
|
|
1726
|
+
display: flex;
|
|
1727
|
+
align-items: center;
|
|
1728
|
+
gap: var(--spacing-xs);
|
|
1729
|
+
font-size: var(--font-size-xs);
|
|
1730
|
+
color: var(--text-secondary);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.krc-legendSwatch-OTMwM {
|
|
1734
|
+
flex: 0 0 auto;
|
|
1735
|
+
width: 0.625rem;
|
|
1736
|
+
height: 0.625rem;
|
|
1737
|
+
border-radius: var(--radius-pill);
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/* Narrow containers (a chat dock is 20–47.5rem wide): the map must not push the
|
|
1741
|
+
surrounding content out of view. */
|
|
1742
|
+
.krc-compact-Ha6w2 .krc-mapContainer-MKTII,
|
|
1743
|
+
.krc-compact-Ha6w2 .krc-loading-LE2tH,
|
|
1744
|
+
.krc-compact-Ha6w2 .krc-empty-JAoUd,
|
|
1745
|
+
.krc-compact-Ha6w2 .krc-error-FkrvS {
|
|
1746
|
+
min-height: 13.75rem;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.krc-compact-Ha6w2 .krc-mapContainer-MKTII {
|
|
1750
|
+
height: 13.75rem;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
.krc-compact-Ha6w2 .krc-header-j8Yft {
|
|
1754
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.krc-compact-Ha6w2 .krc-title-10Tak {
|
|
1758
|
+
font-size: var(--font-size-sm);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/* Leaflet paints its own light-grey backdrop and near-black attribution text,
|
|
1762
|
+
which read as a hole in a dark surface while the tiles load. Scoped to this
|
|
1763
|
+
component and limited to colour — no layout of Leaflet's is touched. */
|
|
1764
|
+
.krc-root-m-WU1 .leaflet-container {
|
|
1765
|
+
background: var(--surface-alt);
|
|
1766
|
+
font-family: inherit;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
.krc-root-m-WU1 .leaflet-control-attribution {
|
|
1770
|
+
color: var(--text-tertiary);
|
|
1771
|
+
background: var(--surface-color);
|
|
1772
|
+
font-size: var(--font-size-2xs);
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
.krc-root-m-WU1 .leaflet-control-attribution a {
|
|
1776
|
+
color: var(--text-secondary);
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
.krc-srOnly-KDwnO {
|
|
1780
|
+
position: absolute;
|
|
1781
|
+
width: var(--border-width);
|
|
1782
|
+
height: var(--border-width);
|
|
1783
|
+
margin: calc(-1 * var(--border-width));
|
|
1784
|
+
padding: 0;
|
|
1785
|
+
overflow: hidden;
|
|
1786
|
+
white-space: nowrap;
|
|
1787
|
+
border: 0;
|
|
1788
|
+
clip-path: inset(50%);
|
|
1789
|
+
}
|
|
1583
1790
|
.krc-wrap-JRsc1 {
|
|
1584
1791
|
overflow: auto;
|
|
1585
1792
|
border: var(--border-width) solid var(--border-color);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** A single plottable point on a map. The geographic mirror of `ScatterPoint`. */
|
|
2
|
+
export interface GeoPoint {
|
|
3
|
+
/** Stable identity: React key and selection value. */
|
|
4
|
+
id: string;
|
|
5
|
+
latitude: number;
|
|
6
|
+
longitude: number;
|
|
7
|
+
/** Tooltip text and accessible-listing label — what makes a point actionable. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Colour and legend dimension (zone, band, operator). */
|
|
10
|
+
category?: string | null;
|
|
11
|
+
/** Relative weight mapped to the marker radius (area ∝ weight). */
|
|
12
|
+
weight?: number | null;
|
|
13
|
+
/** Second tooltip line. */
|
|
14
|
+
detail?: string | null;
|
|
15
|
+
}
|
|
16
|
+
/** Point selection payload for map interaction callbacks. */
|
|
17
|
+
export interface GeoPointSelection {
|
|
18
|
+
point: GeoPoint;
|
|
19
|
+
/** Index in the original `points` array, not in the normalised one. */
|
|
20
|
+
index: number;
|
|
21
|
+
}
|
|
22
|
+
/** What the map declares about what it actually drew. */
|
|
23
|
+
export interface GeoRenderInfo {
|
|
24
|
+
/** Points received in `points`. */
|
|
25
|
+
total: number;
|
|
26
|
+
/** Markers drawn. */
|
|
27
|
+
drawn: number;
|
|
28
|
+
/** Points discarded for missing or out-of-range coordinates. */
|
|
29
|
+
skipped: number;
|
|
30
|
+
/** Points discarded by the `maxPoints` cap. */
|
|
31
|
+
dropped: number;
|
|
32
|
+
}
|
|
33
|
+
/** Basemap choice; `auto` follows the document theme. */
|
|
34
|
+
export type GeoBasemap = 'light' | 'dark' | 'auto';
|
|
35
|
+
/** A caller-supplied tile source, replacing the built-in basemaps. */
|
|
36
|
+
export interface GeoTileLayer {
|
|
37
|
+
url: string;
|
|
38
|
+
attribution: string;
|
|
39
|
+
}
|
|
40
|
+
/** One swatch of the map legend. */
|
|
41
|
+
export interface GeoLegendItem {
|
|
42
|
+
label: string;
|
|
43
|
+
color: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=geo.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo.types.d.ts","sourceRoot":"","sources":["../../src/types/geo.types.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,WAAW,QAAQ;IACvB,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,QAAQ,CAAC;IAChB,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC5B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,yDAAyD;AACzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -50,5 +50,6 @@ export interface TemporalTrendPoint {
|
|
|
50
50
|
series: Record<string, number>;
|
|
51
51
|
}
|
|
52
52
|
export type { TimeRangeOption, ChartSeriesPoint, SankeyFlowRow as SankeyFlowRowV2, CounterTimeseriesPoint as CounterTimeseriesPointV2, DistinctCounterRow, ChartAnnotation as ChartAnnotationV2, ReferenceLine, EChartsInstance, ChartCategorySelection, SankeyColorMetric, SankeyWidthMetric, ChartSelectOption, ChartCardBaseProps, ScatterPoint, ScatterPointSelection, ScatterRenderInfo, } from './chart.types';
|
|
53
|
+
export type { GeoPoint, GeoPointSelection, GeoRenderInfo, GeoBasemap, GeoTileLayer, GeoLegendItem, } from './geo.types';
|
|
53
54
|
export type { NavItemConfig, SidebarSectionConfig, } from './layout.types';
|
|
54
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV;AAED,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,gCAAgC;AAChC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAGD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,IAAI,eAAe,EAChC,sBAAsB,IAAI,wBAAwB,EAClD,kBAAkB,EAClB,eAAe,IAAI,iBAAiB,EACpC,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,aAAa,EACb,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV;AAED,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,gCAAgC;AAChC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAGD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,IAAI,eAAe,EAChC,sBAAsB,IAAI,wBAAwB,EAClD,kBAAkB,EAClB,eAAe,IAAI,iBAAiB,EACpC,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,aAAa,EACb,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ktnpm_devops/react-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Kenmei Technologies React Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
"LICENSE"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
+
"leaflet": "^1.9.0",
|
|
40
41
|
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
43
|
+
"react-leaflet": "^4.0.0 || ^5.0.0"
|
|
42
44
|
},
|
|
43
45
|
"peerDependenciesMeta": {
|
|
44
46
|
"echarts": {
|
|
@@ -50,8 +52,14 @@
|
|
|
50
52
|
"@tanstack/react-table": {
|
|
51
53
|
"optional": true
|
|
52
54
|
},
|
|
55
|
+
"leaflet": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
53
58
|
"lucide-react": {
|
|
54
59
|
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"react-leaflet": {
|
|
62
|
+
"optional": true
|
|
55
63
|
}
|
|
56
64
|
},
|
|
57
65
|
"dependencies": {
|
|
@@ -68,6 +76,7 @@
|
|
|
68
76
|
"@testing-library/jest-dom": "^6.4.0",
|
|
69
77
|
"@testing-library/react": "^16.0.0",
|
|
70
78
|
"@testing-library/user-event": "^14.5.0",
|
|
79
|
+
"@types/leaflet": "^1.9.22",
|
|
71
80
|
"@types/react": "^19.2.18",
|
|
72
81
|
"@types/react-dom": "^19.2.4",
|
|
73
82
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
@@ -81,10 +90,12 @@
|
|
|
81
90
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
82
91
|
"eslint-plugin-storybook": "^0.8.0",
|
|
83
92
|
"happy-dom": "^14.0.0",
|
|
93
|
+
"leaflet": "^1.9.4",
|
|
84
94
|
"lucide-react": "^0.441.0",
|
|
85
95
|
"prettier": "^3.2.0",
|
|
86
96
|
"react": "^19.2.8",
|
|
87
97
|
"react-dom": "^19.2.8",
|
|
98
|
+
"react-leaflet": "^5.0.0",
|
|
88
99
|
"storybook": "^8.4.0",
|
|
89
100
|
"typescript": "^5.4.4",
|
|
90
101
|
"vite": "^5.2.8",
|