@12-apps/ui 6.90.0 → 6.91.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/components-catalog.md +1 -1
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +3 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -2
- package/dist/_internal/components/data-display/Carousel/Carousel.js +2 -2
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +5 -5
- package/dist/_internal/components/data-display/Chart/chart-context.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.styles.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +1 -1
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +21 -21
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +25 -25
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +6 -6
- package/dist/_internal/components/data-display/DataViews/base-list-card-layout.js +7 -7
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +5 -5
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +18 -18
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-range-bounds.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +2 -2
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +4 -4
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +2 -2
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +9 -9
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +8 -8
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +12 -12
- package/dist/_internal/components/data-display/InteractiveTooltip/InteractiveTooltip.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapMarkers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +7 -7
- package/dist/_internal/components/data-display/RegionMap/RegionMap.hooks.js +2 -1
- package/dist/_internal/components/data-display/RegionMap/RegionMap.js +4 -3
- package/dist/_internal/components/data-display/RegionMap/RegionMap.view.js +19 -0
- package/dist/_internal/components/data-display/RegionMap/RegionMapDrawing.js +1 -1
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +3 -3
- package/dist/_internal/components/data-display/index.js +50 -44
- package/dist/_internal/components/index.js +57 -51
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +8 -8
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +4 -4
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +7 -7
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +8 -8
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +9 -9
- package/dist/_internal/components/layout/index.js +12 -12
- package/dist/_internal/user-avatar/user-avatar.js +3 -3
- package/dist/charts.js +5 -5
- package/dist/{chunk-K2VDRODL.js → chunk-3IDL7NK7.js} +2 -2
- package/dist/{chunk-QADTI63U.js → chunk-3JZ3KEQQ.js} +2 -2
- package/dist/{chunk-EOIRU62W.js → chunk-42D7KBDH.js} +2 -2
- package/dist/{chunk-LXIPBHNJ.js → chunk-42TOCPXB.js} +5 -5
- package/dist/{chunk-KANCE4MS.js → chunk-4KWDNGMA.js} +3 -3
- package/dist/{chunk-7YJYIMWP.js → chunk-4QR7LM5F.js} +6 -6
- package/dist/{chunk-SCXVTNLE.js → chunk-5E2CRRD4.js} +4 -4
- package/dist/{chunk-ZDAAHCIS.js → chunk-5HADIIWN.js} +3 -3
- package/dist/{chunk-BP3ZKIPE.js → chunk-64UNVW6D.js} +4 -4
- package/dist/{chunk-7F6D73NL.js → chunk-76DX2IMH.js} +2 -2
- package/dist/{chunk-FI2CQOGC.js → chunk-7NP2JHGM.js} +2 -2
- package/dist/{chunk-BMTIBQQC.js → chunk-BBBHPK2Q.js} +6 -6
- package/dist/{chunk-EUR2ORTN.js → chunk-CSJ7WNXU.js} +2 -2
- package/dist/{chunk-WWR6APJR.js → chunk-DA3D5X5Z.js} +5 -5
- package/dist/chunk-DY2I6LMX.js +1 -0
- package/dist/chunk-DY2I6LMX.js.map +1 -0
- package/dist/{chunk-QKOJ4637.js → chunk-E6K2UZGR.js} +3 -3
- package/dist/{chunk-VIMMEADQ.js → chunk-FORAVDJF.js} +9 -9
- package/dist/chunk-FWAY2SAI.js +72 -0
- package/dist/chunk-FWAY2SAI.js.map +1 -0
- package/dist/{chunk-GMRQPNG3.js → chunk-G2NVBCF7.js} +20 -25
- package/dist/chunk-G2NVBCF7.js.map +1 -0
- package/dist/{chunk-Z5WUSI47.js → chunk-G3JFESKD.js} +6 -6
- package/dist/{chunk-3EIRRLCQ.js → chunk-HC6OZ7QK.js} +2 -2
- package/dist/{chunk-SKIAWOUC.js → chunk-HOPRZEBM.js} +3 -3
- package/dist/{chunk-JHWEL4NX.js → chunk-HS662RLW.js} +2 -2
- package/dist/{chunk-BZBLPXV7.js → chunk-IWSTMVCA.js} +4 -4
- package/dist/{chunk-TZC6KIK2.js → chunk-JG733RMP.js} +5 -5
- package/dist/{chunk-CW5Z67NA.js → chunk-JH2XLVWM.js} +2 -2
- package/dist/{chunk-3OTGREQG.js → chunk-JKZPGCN7.js} +11 -11
- package/dist/{chunk-DSBC6O46.js → chunk-JN2IANXD.js} +3 -3
- package/dist/{chunk-GBB23QLL.js → chunk-KJKD6Y6V.js} +3 -3
- package/dist/{chunk-KRBPWTXW.js → chunk-L3PDY7CJ.js} +2 -2
- package/dist/{chunk-HI7JPDD6.js → chunk-M3XJVD5G.js} +2 -2
- package/dist/{chunk-EEO7M5GU.js → chunk-MYTV353T.js} +4 -4
- package/dist/{chunk-3HZKUN5J.js → chunk-MZAYIG2I.js} +2 -2
- package/dist/{chunk-AKE6KVQG.js → chunk-NGXL4R54.js} +5 -1
- package/dist/chunk-NGXL4R54.js.map +1 -0
- package/dist/{chunk-3X2MA47R.js → chunk-NKEFH3RS.js} +5 -5
- package/dist/{chunk-NI67M453.js → chunk-PGANINQD.js} +5 -5
- package/dist/{chunk-BV2LOTMC.js → chunk-Q3SILZTQ.js} +2 -2
- package/dist/{chunk-TIM4PXWN.js → chunk-QHIWV55K.js} +2 -2
- package/dist/{chunk-DHAXUVMR.js → chunk-QN7FVZQD.js} +4 -4
- package/dist/{chunk-X2GWR75Q.js → chunk-TSEBMVYY.js} +3 -3
- package/dist/{chunk-CJ6XXM4X.js → chunk-U2AEM3K4.js} +6 -6
- package/dist/{chunk-ZH6NYB6Y.js → chunk-U2QXQ7D4.js} +4 -4
- package/dist/{chunk-SK2CTB3O.js → chunk-U2SAW6DH.js} +5 -5
- package/dist/{chunk-DAHSKQBV.js → chunk-UMOHHWXY.js} +2 -2
- package/dist/{chunk-P772HCHI.js → chunk-W676GY42.js} +4 -4
- package/dist/{chunk-JFD742C3.js → chunk-WCF56ZCD.js} +2 -2
- package/dist/{chunk-T2G4LDU5.js → chunk-WLLUARTC.js} +2 -2
- package/dist/{chunk-NK6O4NE4.js → chunk-XILMDEGZ.js} +3 -3
- package/dist/{chunk-QAEO52Z4.js → chunk-YGQM6GFQ.js} +2 -2
- package/dist/{chunk-WNNA6YYE.js → chunk-Z7T4EFEC.js} +7 -4
- package/dist/chunk-Z7T4EFEC.js.map +1 -0
- package/dist/{chunk-LOLYBFYY.js → chunk-ZCNR4DN5.js} +5 -5
- package/dist/{chunk-COKPPU42.js → chunk-ZIHSCBMN.js} +12 -12
- package/dist/data-display/AsyncStateContainer.js +3 -3
- package/dist/data-display/Avatar.js +2 -2
- package/dist/data-display/CardKit.js +7 -7
- package/dist/data-display/Carousel.js +2 -2
- package/dist/data-display/Chart.js +5 -5
- package/dist/data-display/Chip.js +3 -3
- package/dist/data-display/DataGrid.js +1 -1
- package/dist/data-display/DataViews.js +34 -34
- package/dist/data-display/DayRuler.js +4 -4
- package/dist/data-display/EmptyState.js +2 -2
- package/dist/data-display/FleetMap.js +12 -12
- package/dist/data-display/InteractiveTooltip.js +2 -2
- package/dist/data-display/Lightbox.js +7 -7
- package/dist/data-display/MapPreview.js +7 -7
- package/dist/data-display/RegionMap.js +11 -5
- package/dist/data-display/SectionOnboarding.js +3 -3
- package/dist/layout/SettingCard.js +12 -12
- package/dist/types/components/data-display/RegionMap/RegionMap.d.ts +4 -1
- package/dist/types/components/data-display/RegionMap/RegionMap.d.ts.map +1 -1
- package/dist/types/components/data-display/RegionMap/RegionMap.hooks.d.ts +4 -2
- package/dist/types/components/data-display/RegionMap/RegionMap.hooks.d.ts.map +1 -1
- package/dist/types/components/data-display/RegionMap/RegionMap.types.d.ts +40 -0
- package/dist/types/components/data-display/RegionMap/RegionMap.types.d.ts.map +1 -1
- package/dist/types/components/data-display/RegionMap/RegionMap.view.d.ts +36 -0
- package/dist/types/components/data-display/RegionMap/RegionMap.view.d.ts.map +1 -0
- package/dist/types/components/data-display/RegionMap/RegionMapDrawing.d.ts +4 -1
- package/dist/types/components/data-display/RegionMap/RegionMapDrawing.d.ts.map +1 -1
- package/dist/types/components/data-display/RegionMap/index.d.ts +3 -2
- package/dist/types/components/data-display/RegionMap/index.d.ts.map +1 -1
- package/dist/user-avatar.js +3 -3
- package/package.json +1 -1
- package/src/components/data-display/RegionMap/RegionMap.hooks.ts +24 -33
- package/src/components/data-display/RegionMap/RegionMap.md +27 -0
- package/src/components/data-display/RegionMap/RegionMap.tsx +7 -1
- package/src/components/data-display/RegionMap/RegionMap.types.ts +41 -0
- package/src/components/data-display/RegionMap/RegionMap.view.ts +105 -0
- package/src/components/data-display/RegionMap/RegionMapDrawing.tsx +11 -0
- package/src/components/data-display/RegionMap/index.ts +5 -1
- package/src/components/data-display/RegionMap/tests.md +10 -2
- package/dist/chunk-ACFKPE2T.js +0 -1
- package/dist/chunk-AKE6KVQG.js.map +0 -1
- package/dist/chunk-GMRQPNG3.js.map +0 -1
- package/dist/chunk-WNNA6YYE.js.map +0 -1
- /package/dist/{chunk-ACFKPE2T.js.map → _internal/components/data-display/RegionMap/RegionMap.view.js.map} +0 -0
- /package/dist/{chunk-K2VDRODL.js.map → chunk-3IDL7NK7.js.map} +0 -0
- /package/dist/{chunk-QADTI63U.js.map → chunk-3JZ3KEQQ.js.map} +0 -0
- /package/dist/{chunk-EOIRU62W.js.map → chunk-42D7KBDH.js.map} +0 -0
- /package/dist/{chunk-LXIPBHNJ.js.map → chunk-42TOCPXB.js.map} +0 -0
- /package/dist/{chunk-KANCE4MS.js.map → chunk-4KWDNGMA.js.map} +0 -0
- /package/dist/{chunk-7YJYIMWP.js.map → chunk-4QR7LM5F.js.map} +0 -0
- /package/dist/{chunk-SCXVTNLE.js.map → chunk-5E2CRRD4.js.map} +0 -0
- /package/dist/{chunk-ZDAAHCIS.js.map → chunk-5HADIIWN.js.map} +0 -0
- /package/dist/{chunk-BP3ZKIPE.js.map → chunk-64UNVW6D.js.map} +0 -0
- /package/dist/{chunk-7F6D73NL.js.map → chunk-76DX2IMH.js.map} +0 -0
- /package/dist/{chunk-FI2CQOGC.js.map → chunk-7NP2JHGM.js.map} +0 -0
- /package/dist/{chunk-BMTIBQQC.js.map → chunk-BBBHPK2Q.js.map} +0 -0
- /package/dist/{chunk-EUR2ORTN.js.map → chunk-CSJ7WNXU.js.map} +0 -0
- /package/dist/{chunk-WWR6APJR.js.map → chunk-DA3D5X5Z.js.map} +0 -0
- /package/dist/{chunk-QKOJ4637.js.map → chunk-E6K2UZGR.js.map} +0 -0
- /package/dist/{chunk-VIMMEADQ.js.map → chunk-FORAVDJF.js.map} +0 -0
- /package/dist/{chunk-Z5WUSI47.js.map → chunk-G3JFESKD.js.map} +0 -0
- /package/dist/{chunk-3EIRRLCQ.js.map → chunk-HC6OZ7QK.js.map} +0 -0
- /package/dist/{chunk-SKIAWOUC.js.map → chunk-HOPRZEBM.js.map} +0 -0
- /package/dist/{chunk-JHWEL4NX.js.map → chunk-HS662RLW.js.map} +0 -0
- /package/dist/{chunk-BZBLPXV7.js.map → chunk-IWSTMVCA.js.map} +0 -0
- /package/dist/{chunk-TZC6KIK2.js.map → chunk-JG733RMP.js.map} +0 -0
- /package/dist/{chunk-CW5Z67NA.js.map → chunk-JH2XLVWM.js.map} +0 -0
- /package/dist/{chunk-3OTGREQG.js.map → chunk-JKZPGCN7.js.map} +0 -0
- /package/dist/{chunk-DSBC6O46.js.map → chunk-JN2IANXD.js.map} +0 -0
- /package/dist/{chunk-GBB23QLL.js.map → chunk-KJKD6Y6V.js.map} +0 -0
- /package/dist/{chunk-KRBPWTXW.js.map → chunk-L3PDY7CJ.js.map} +0 -0
- /package/dist/{chunk-HI7JPDD6.js.map → chunk-M3XJVD5G.js.map} +0 -0
- /package/dist/{chunk-EEO7M5GU.js.map → chunk-MYTV353T.js.map} +0 -0
- /package/dist/{chunk-3HZKUN5J.js.map → chunk-MZAYIG2I.js.map} +0 -0
- /package/dist/{chunk-3X2MA47R.js.map → chunk-NKEFH3RS.js.map} +0 -0
- /package/dist/{chunk-NI67M453.js.map → chunk-PGANINQD.js.map} +0 -0
- /package/dist/{chunk-BV2LOTMC.js.map → chunk-Q3SILZTQ.js.map} +0 -0
- /package/dist/{chunk-TIM4PXWN.js.map → chunk-QHIWV55K.js.map} +0 -0
- /package/dist/{chunk-DHAXUVMR.js.map → chunk-QN7FVZQD.js.map} +0 -0
- /package/dist/{chunk-X2GWR75Q.js.map → chunk-TSEBMVYY.js.map} +0 -0
- /package/dist/{chunk-CJ6XXM4X.js.map → chunk-U2AEM3K4.js.map} +0 -0
- /package/dist/{chunk-ZH6NYB6Y.js.map → chunk-U2QXQ7D4.js.map} +0 -0
- /package/dist/{chunk-SK2CTB3O.js.map → chunk-U2SAW6DH.js.map} +0 -0
- /package/dist/{chunk-DAHSKQBV.js.map → chunk-UMOHHWXY.js.map} +0 -0
- /package/dist/{chunk-P772HCHI.js.map → chunk-W676GY42.js.map} +0 -0
- /package/dist/{chunk-JFD742C3.js.map → chunk-WCF56ZCD.js.map} +0 -0
- /package/dist/{chunk-T2G4LDU5.js.map → chunk-WLLUARTC.js.map} +0 -0
- /package/dist/{chunk-NK6O4NE4.js.map → chunk-XILMDEGZ.js.map} +0 -0
- /package/dist/{chunk-QAEO52Z4.js.map → chunk-YGQM6GFQ.js.map} +0 -0
- /package/dist/{chunk-LOLYBFYY.js.map → chunk-ZCNR4DN5.js.map} +0 -0
- /package/dist/{chunk-COKPPU42.js.map → chunk-ZIHSCBMN.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingSwitchBlock,
|
|
3
3
|
useSettingSwitchIds
|
|
4
|
-
} from "../../../../chunk-
|
|
5
|
-
import "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-5HADIIWN.js";
|
|
5
|
+
import "../../../../chunk-TSEBMVYY.js";
|
|
6
|
+
import "../../../../chunk-HC6OZ7QK.js";
|
|
7
7
|
import "../../../../chunk-IQWPVPV5.js";
|
|
8
8
|
import "../../../../chunk-BFRVMCQM.js";
|
|
9
9
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -11,14 +11,14 @@ import "../../../../chunk-JYWF76Z5.js";
|
|
|
11
11
|
import "../../../../chunk-GGMB6LJH.js";
|
|
12
12
|
import "../../../../chunk-PUFA7FQ7.js";
|
|
13
13
|
import "../../../../chunk-TAF3YYMK.js";
|
|
14
|
-
import "../../../../chunk-
|
|
15
|
-
import "../../../../chunk-BCWL7HUO.js";
|
|
14
|
+
import "../../../../chunk-G3JFESKD.js";
|
|
16
15
|
import "../../../../chunk-QYJ25FWM.js";
|
|
16
|
+
import "../../../../chunk-BCWL7HUO.js";
|
|
17
17
|
import "../../../../chunk-2GTORM5E.js";
|
|
18
|
-
import "../../../../chunk-
|
|
19
|
-
import "../../../../chunk-
|
|
20
|
-
import "../../../../chunk-E5I776YW.js";
|
|
18
|
+
import "../../../../chunk-PGANINQD.js";
|
|
19
|
+
import "../../../../chunk-QN7FVZQD.js";
|
|
21
20
|
import "../../../../chunk-BF4FYOAR.js";
|
|
21
|
+
import "../../../../chunk-E5I776YW.js";
|
|
22
22
|
import "../../../../chunk-4PJ52YBO.js";
|
|
23
23
|
import "../../../../chunk-EIMFA7KP.js";
|
|
24
24
|
import "../../../../chunk-OPP6USJC.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingToggle
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-3IDL7NK7.js";
|
|
4
|
+
import "../../../../chunk-5HADIIWN.js";
|
|
5
5
|
import "../../../../chunk-XJQNSMGA.js";
|
|
6
6
|
import "../../../../chunk-SALQ65SM.js";
|
|
7
|
-
import "../../../../chunk-
|
|
8
|
-
import "../../../../chunk-
|
|
7
|
+
import "../../../../chunk-TSEBMVYY.js";
|
|
8
|
+
import "../../../../chunk-HC6OZ7QK.js";
|
|
9
9
|
import "../../../../chunk-IQWPVPV5.js";
|
|
10
10
|
import "../../../../chunk-BFRVMCQM.js";
|
|
11
11
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -13,14 +13,14 @@ import "../../../../chunk-JYWF76Z5.js";
|
|
|
13
13
|
import "../../../../chunk-GGMB6LJH.js";
|
|
14
14
|
import "../../../../chunk-PUFA7FQ7.js";
|
|
15
15
|
import "../../../../chunk-TAF3YYMK.js";
|
|
16
|
-
import "../../../../chunk-
|
|
17
|
-
import "../../../../chunk-BCWL7HUO.js";
|
|
16
|
+
import "../../../../chunk-G3JFESKD.js";
|
|
18
17
|
import "../../../../chunk-QYJ25FWM.js";
|
|
18
|
+
import "../../../../chunk-BCWL7HUO.js";
|
|
19
19
|
import "../../../../chunk-2GTORM5E.js";
|
|
20
|
-
import "../../../../chunk-
|
|
21
|
-
import "../../../../chunk-
|
|
22
|
-
import "../../../../chunk-E5I776YW.js";
|
|
20
|
+
import "../../../../chunk-PGANINQD.js";
|
|
21
|
+
import "../../../../chunk-QN7FVZQD.js";
|
|
23
22
|
import "../../../../chunk-BF4FYOAR.js";
|
|
23
|
+
import "../../../../chunk-E5I776YW.js";
|
|
24
24
|
import "../../../../chunk-4PJ52YBO.js";
|
|
25
25
|
import "../../../../chunk-EIMFA7KP.js";
|
|
26
26
|
import "../../../../chunk-OPP6USJC.js";
|
|
@@ -36,22 +36,22 @@ import "../../../chunk-QUWK7SYN.js";
|
|
|
36
36
|
import "../../../chunk-QGUNUXTT.js";
|
|
37
37
|
import {
|
|
38
38
|
SettingToggle
|
|
39
|
-
} from "../../../chunk-
|
|
39
|
+
} from "../../../chunk-3IDL7NK7.js";
|
|
40
40
|
import {
|
|
41
41
|
SettingGroup
|
|
42
|
-
} from "../../../chunk-
|
|
43
|
-
import "../../../chunk-
|
|
42
|
+
} from "../../../chunk-KJKD6Y6V.js";
|
|
43
|
+
import "../../../chunk-5HADIIWN.js";
|
|
44
44
|
import "../../../chunk-XJQNSMGA.js";
|
|
45
45
|
import {
|
|
46
46
|
SETTING_GRID_CONTAINER,
|
|
47
47
|
SettingGrid
|
|
48
|
-
} from "../../../chunk-
|
|
48
|
+
} from "../../../chunk-JH2XLVWM.js";
|
|
49
49
|
import {
|
|
50
50
|
SettingCard
|
|
51
|
-
} from "../../../chunk-
|
|
51
|
+
} from "../../../chunk-HOPRZEBM.js";
|
|
52
52
|
import "../../../chunk-SALQ65SM.js";
|
|
53
|
-
import "../../../chunk-
|
|
54
|
-
import "../../../chunk-
|
|
53
|
+
import "../../../chunk-TSEBMVYY.js";
|
|
54
|
+
import "../../../chunk-HC6OZ7QK.js";
|
|
55
55
|
import "../../../chunk-IQWPVPV5.js";
|
|
56
56
|
import "../../../chunk-BFRVMCQM.js";
|
|
57
57
|
import "../../../chunk-AY7LXHAJ.js";
|
|
@@ -87,9 +87,9 @@ import "../../../chunk-URB3VVMR.js";
|
|
|
87
87
|
import "../../../chunk-BBXJQI4S.js";
|
|
88
88
|
import "../../../chunk-PUFA7FQ7.js";
|
|
89
89
|
import "../../../chunk-TAF3YYMK.js";
|
|
90
|
-
import "../../../chunk-
|
|
91
|
-
import "../../../chunk-BCWL7HUO.js";
|
|
90
|
+
import "../../../chunk-G3JFESKD.js";
|
|
92
91
|
import "../../../chunk-QYJ25FWM.js";
|
|
92
|
+
import "../../../chunk-BCWL7HUO.js";
|
|
93
93
|
import {
|
|
94
94
|
Skeleton
|
|
95
95
|
} from "../../../chunk-62SXUU5U.js";
|
|
@@ -97,10 +97,10 @@ import "../../../chunk-QD4TM6UK.js";
|
|
|
97
97
|
import "../../../chunk-EMPVMZAB.js";
|
|
98
98
|
import "../../../chunk-7WDPC46N.js";
|
|
99
99
|
import "../../../chunk-2GTORM5E.js";
|
|
100
|
-
import "../../../chunk-
|
|
101
|
-
import "../../../chunk-
|
|
102
|
-
import "../../../chunk-E5I776YW.js";
|
|
100
|
+
import "../../../chunk-PGANINQD.js";
|
|
101
|
+
import "../../../chunk-QN7FVZQD.js";
|
|
103
102
|
import "../../../chunk-BF4FYOAR.js";
|
|
103
|
+
import "../../../chunk-E5I776YW.js";
|
|
104
104
|
import "../../../chunk-4NS4PJJH.js";
|
|
105
105
|
import {
|
|
106
106
|
TableFilter
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
UserAvatar,
|
|
4
4
|
UserMenu
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-Q3SILZTQ.js";
|
|
6
6
|
import "../../chunk-DQ22UKMZ.js";
|
|
7
7
|
import "../../chunk-UDQSIRAP.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-3ZVUNSFF.js";
|
|
8
|
+
import "../../chunk-4QR7LM5F.js";
|
|
10
9
|
import "../../chunk-EOQ6EKTS.js";
|
|
11
10
|
import "../../chunk-6ZZGK5DT.js";
|
|
11
|
+
import "../../chunk-3ZVUNSFF.js";
|
|
12
12
|
import "../../chunk-MTEQEPNY.js";
|
|
13
13
|
import "../../chunk-VUHLNYAE.js";
|
|
14
14
|
import "../../chunk-2GSIEDGN.js";
|
package/dist/charts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-5KLSLD72.js";
|
|
2
2
|
import {
|
|
3
3
|
SpecChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QHIWV55K.js";
|
|
5
5
|
import {
|
|
6
6
|
Chart
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M3XJVD5G.js";
|
|
8
8
|
import {
|
|
9
9
|
CHART_SEMANTIC_COLORS,
|
|
10
10
|
ChartSpecError,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getRegisteredChartSpecTypes,
|
|
17
17
|
registerChartSpecRenderer
|
|
18
18
|
} from "./chunk-WKUA6P3W.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-3JZ3KEQQ.js";
|
|
20
20
|
import {
|
|
21
21
|
ChartContainer,
|
|
22
22
|
ChartLegend,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
chartValueFormatter,
|
|
29
29
|
formatChartValue
|
|
30
30
|
} from "./chunk-6GPNZSAE.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-TCWISGSS.js";
|
|
31
|
+
import "./chunk-JG733RMP.js";
|
|
33
32
|
import "./chunk-SOHQPPYJ.js";
|
|
33
|
+
import "./chunk-TCWISGSS.js";
|
|
34
34
|
import "./chunk-B7ZHEOQQ.js";
|
|
35
35
|
import "./chunk-BRHRK7BK.js";
|
|
36
36
|
import "./chunk-25MSGLNU.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingSwitchBlock,
|
|
3
3
|
useSettingSwitchIds
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5HADIIWN.js";
|
|
5
5
|
import {
|
|
6
6
|
useSettingGroup
|
|
7
7
|
} from "./chunk-XJQNSMGA.js";
|
|
@@ -44,4 +44,4 @@ SettingToggle.displayName = "SettingToggle";
|
|
|
44
44
|
export {
|
|
45
45
|
SettingToggle
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-3IDL7NK7.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-RIRTW5EU.js";
|
|
5
5
|
import {
|
|
6
6
|
buildChartContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JG733RMP.js";
|
|
8
8
|
import {
|
|
9
9
|
uiInk
|
|
10
10
|
} from "./chunk-XJAD6E3V.js";
|
|
@@ -318,4 +318,4 @@ function renderChartByType(props, theme) {
|
|
|
318
318
|
export {
|
|
319
319
|
renderChartByType
|
|
320
320
|
};
|
|
321
|
-
//# sourceMappingURL=chunk-
|
|
321
|
+
//# sourceMappingURL=chunk-3JZ3KEQQ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-EWFBDAB7.js";
|
|
4
4
|
import {
|
|
5
5
|
EmptyState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-42TOCPXB.js";
|
|
7
7
|
|
|
8
8
|
// src/components/data-display/SectionOnboarding/SectionOnboarding.tsx
|
|
9
9
|
import CheckCircle from "@mui/icons-material/CheckCircle";
|
|
@@ -193,4 +193,4 @@ export {
|
|
|
193
193
|
SectionOnboarding,
|
|
194
194
|
SectionOnboarding_default
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=chunk-
|
|
196
|
+
//# sourceMappingURL=chunk-42D7KBDH.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
actionsOf,
|
|
3
|
+
makeTestId
|
|
4
|
+
} from "./chunk-MWFSIB6K.js";
|
|
1
5
|
import {
|
|
2
6
|
ACTIONS_GAP_UNITS,
|
|
3
7
|
ACTIONS_MARGIN_TOP_UNITS,
|
|
@@ -14,10 +18,6 @@ import {
|
|
|
14
18
|
illustrationMaxWidth,
|
|
15
19
|
illustrationOpacity
|
|
16
20
|
} from "./chunk-KLPTOVIX.js";
|
|
17
|
-
import {
|
|
18
|
-
actionsOf,
|
|
19
|
-
makeTestId
|
|
20
|
-
} from "./chunk-MWFSIB6K.js";
|
|
21
21
|
import {
|
|
22
22
|
EN_US_UI_LABELS
|
|
23
23
|
} from "./chunk-XOXXG7Q5.js";
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
EmptyState,
|
|
208
208
|
EmptyState_default
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-42TOCPXB.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-YNVTUQ5B.js";
|
|
4
4
|
import {
|
|
5
5
|
DataViewsGrid
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JN2IANXD.js";
|
|
7
7
|
import {
|
|
8
8
|
viewStateKey
|
|
9
9
|
} from "./chunk-ZOLAYP2D.js";
|
|
10
10
|
import {
|
|
11
11
|
ViewDialogs,
|
|
12
12
|
ViewMutationErrorAlert
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5E2CRRD4.js";
|
|
14
14
|
import {
|
|
15
15
|
useUrlEchoGuard,
|
|
16
16
|
useUrlSyncState
|
|
@@ -166,4 +166,4 @@ function renderViewDialogs(ctl, fields, columns, views, testIdPrefix, onSaved) {
|
|
|
166
166
|
export {
|
|
167
167
|
DataViewsTableBase
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-4KWDNGMA.js.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AVATAR_DEFAULTS,
|
|
3
|
-
contentTypeOf,
|
|
4
|
-
pickAvatarContent
|
|
5
|
-
} from "./chunk-3ZVUNSFF.js";
|
|
6
1
|
import {
|
|
7
2
|
AvatarView
|
|
8
3
|
} from "./chunk-EOQ6EKTS.js";
|
|
@@ -12,6 +7,11 @@ import {
|
|
|
12
7
|
GROUP_MAX,
|
|
13
8
|
GROUP_OVERLAP
|
|
14
9
|
} from "./chunk-6ZZGK5DT.js";
|
|
10
|
+
import {
|
|
11
|
+
AVATAR_DEFAULTS,
|
|
12
|
+
contentTypeOf,
|
|
13
|
+
pickAvatarContent
|
|
14
|
+
} from "./chunk-3ZVUNSFF.js";
|
|
15
15
|
import {
|
|
16
16
|
EN_US_UI_LABELS
|
|
17
17
|
} from "./chunk-XOXXG7Q5.js";
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
Avatar,
|
|
179
179
|
AvatarGroup
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-4QR7LM5F.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SaveViewModal
|
|
3
|
-
} from "./chunk-I4DG3PP4.js";
|
|
4
1
|
import {
|
|
5
2
|
ManageViewsDialog
|
|
6
3
|
} from "./chunk-K7IDOTSU.js";
|
|
4
|
+
import {
|
|
5
|
+
SaveViewModal
|
|
6
|
+
} from "./chunk-I4DG3PP4.js";
|
|
7
7
|
import {
|
|
8
8
|
useDataViewsCopy
|
|
9
9
|
} from "./chunk-KHG57NAE.js";
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
ViewsMenuSlot,
|
|
122
122
|
ViewDialogs
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-5E2CRRD4.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSummaryInfo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TSEBMVYY.js";
|
|
4
4
|
import {
|
|
5
5
|
PendingSpinner,
|
|
6
6
|
SaveError,
|
|
7
7
|
SettingHeader,
|
|
8
8
|
partTestId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HC6OZ7QK.js";
|
|
10
10
|
import {
|
|
11
11
|
clampStyles,
|
|
12
12
|
descriptionStyles
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
useSettingSwitchIds,
|
|
88
88
|
SettingSwitchBlock
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-5HADIIWN.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useLightboxCopy
|
|
3
|
-
} from "./chunk-TEQYTEM2.js";
|
|
4
1
|
import {
|
|
5
2
|
thumbnailStripSx
|
|
6
3
|
} from "./chunk-VQU3CBAL.js";
|
|
4
|
+
import {
|
|
5
|
+
useLightboxCopy
|
|
6
|
+
} from "./chunk-TEQYTEM2.js";
|
|
7
7
|
import {
|
|
8
8
|
onMedia,
|
|
9
9
|
sheen
|
|
@@ -89,4 +89,4 @@ var LightboxThumbnails = ({
|
|
|
89
89
|
export {
|
|
90
90
|
LightboxThumbnails
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-64UNVW6D.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-3Z6JX7UN.js";
|
|
7
7
|
import {
|
|
8
8
|
EmptyState
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-42TOCPXB.js";
|
|
10
10
|
|
|
11
11
|
// src/components/data-display/AsyncStateContainer/AsyncStateContainer.tsx
|
|
12
12
|
import Box from "@mui/material/Box/index.js";
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
AsyncStateContainer,
|
|
66
66
|
AsyncStateContainer_default
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-76DX2IMH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RangeBounds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FORAVDJF.js";
|
|
4
4
|
import {
|
|
5
5
|
RangePresets
|
|
6
6
|
} from "./chunk-LZNUBQ5I.js";
|
|
@@ -235,4 +235,4 @@ export {
|
|
|
235
235
|
RangePill,
|
|
236
236
|
PanelRangeField
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-7NP2JHGM.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CellConfigProvider,
|
|
3
|
-
cellTracks,
|
|
4
|
-
compactCellTracks
|
|
5
|
-
} from "./chunk-F5S5UFGD.js";
|
|
6
1
|
import {
|
|
7
2
|
DENSITY_ROW_PADDING
|
|
8
3
|
} from "./chunk-5CAWRMDX.js";
|
|
9
4
|
import {
|
|
10
5
|
GroupGrid
|
|
11
6
|
} from "./chunk-U3HEYECF.js";
|
|
7
|
+
import {
|
|
8
|
+
CellConfigProvider,
|
|
9
|
+
cellTracks,
|
|
10
|
+
compactCellTracks
|
|
11
|
+
} from "./chunk-F5S5UFGD.js";
|
|
12
12
|
|
|
13
13
|
// src/components/data-display/DataViews/list-card-rails.tsx
|
|
14
14
|
import { createContext, useContext } from "react";
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
cellRailCount,
|
|
134
134
|
ListCardGroup
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-BBBHPK2Q.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RAIL_GAP_PX
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BBBHPK2Q.js";
|
|
4
4
|
import {
|
|
5
5
|
COMPACT_BREAK,
|
|
6
6
|
META_BREAK
|
|
@@ -257,4 +257,4 @@ export {
|
|
|
257
257
|
ListCardActions,
|
|
258
258
|
ListCardTail
|
|
259
259
|
};
|
|
260
|
-
//# sourceMappingURL=chunk-
|
|
260
|
+
//# sourceMappingURL=chunk-CSJ7WNXU.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetBody
|
|
3
|
+
} from "./chunk-WCF56ZCD.js";
|
|
1
4
|
import {
|
|
2
5
|
useFleetMap
|
|
3
6
|
} from "./chunk-ZCPSND5Y.js";
|
|
4
|
-
import {
|
|
5
|
-
FleetBody
|
|
6
|
-
} from "./chunk-JFD742C3.js";
|
|
7
7
|
import {
|
|
8
8
|
FLEET_DEFAULT_LAGGING_AFTER_SECONDS,
|
|
9
9
|
FLEET_DEFAULT_STALE_AFTER_SECONDS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-PUFA7FQ7.js";
|
|
15
15
|
import {
|
|
16
16
|
EmptyState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-42TOCPXB.js";
|
|
18
18
|
import {
|
|
19
19
|
rem
|
|
20
20
|
} from "./chunk-YKCAJ2TN.js";
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
FleetMap,
|
|
118
118
|
FleetMap_default
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-DA3D5X5Z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-DY2I6LMX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rowGutters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMOHHWXY.js";
|
|
4
4
|
import {
|
|
5
5
|
cellRailsTemplate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BBBHPK2Q.js";
|
|
7
7
|
import {
|
|
8
8
|
cellTracks,
|
|
9
9
|
compactCellTracks,
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
useRowLayout,
|
|
56
56
|
StandaloneContainer
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-E6K2UZGR.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RangePresets
|
|
3
|
+
} from "./chunk-LZNUBQ5I.js";
|
|
1
4
|
import {
|
|
2
5
|
NumberBoundInput
|
|
3
6
|
} from "./chunk-2FKWKLSC.js";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
RangePresets
|
|
9
|
-
} from "./chunk-LZNUBQ5I.js";
|
|
8
|
+
useOutsideResetKey
|
|
9
|
+
} from "./chunk-YOPMXGHY.js";
|
|
10
10
|
import {
|
|
11
11
|
presetsFor
|
|
12
12
|
} from "./chunk-CBOB5AV6.js";
|
|
13
|
+
import {
|
|
14
|
+
DayRangeCalendar
|
|
15
|
+
} from "./chunk-MICX23P4.js";
|
|
13
16
|
import {
|
|
14
17
|
isRangeInverted
|
|
15
18
|
} from "./chunk-GCZJH4XL.js";
|
|
16
|
-
import {
|
|
17
|
-
useOutsideResetKey
|
|
18
|
-
} from "./chunk-YOPMXGHY.js";
|
|
19
19
|
import {
|
|
20
20
|
useDataViewsCopy
|
|
21
21
|
} from "./chunk-KHG57NAE.js";
|
|
@@ -161,4 +161,4 @@ function RangeBounds({
|
|
|
161
161
|
export {
|
|
162
162
|
RangeBounds
|
|
163
163
|
};
|
|
164
|
-
//# sourceMappingURL=chunk-
|
|
164
|
+
//# sourceMappingURL=chunk-FORAVDJF.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extent,
|
|
3
|
+
planeBounds,
|
|
4
|
+
projectRings,
|
|
5
|
+
projectionAt,
|
|
6
|
+
viewBoxFor
|
|
7
|
+
} from "./chunk-COOSJKZL.js";
|
|
8
|
+
|
|
9
|
+
// src/components/data-display/RegionMap/RegionMap.view.ts
|
|
10
|
+
function unionBox(boxes) {
|
|
11
|
+
const real = boxes.filter((box) => box !== null);
|
|
12
|
+
const xs = extent(real.flatMap((b) => [b.minX, b.minX + b.spanX]));
|
|
13
|
+
const ys = extent(real.flatMap((b) => [b.minY, b.minY + b.spanY]));
|
|
14
|
+
if (xs === null || ys === null) return null;
|
|
15
|
+
return { minX: xs.min, minY: ys.min, spanX: xs.max - xs.min, spanY: ys.max - ys.min };
|
|
16
|
+
}
|
|
17
|
+
function boundsOfRings(rings) {
|
|
18
|
+
const points = rings.flat();
|
|
19
|
+
const lats = extent(points.map(([latitude]) => latitude));
|
|
20
|
+
const lngs = extent(points.map(([, longitude]) => longitude));
|
|
21
|
+
if (lats === null || lngs === null) return null;
|
|
22
|
+
return { south: lats.min, west: lngs.min, north: lats.max, east: lngs.max };
|
|
23
|
+
}
|
|
24
|
+
function reachBox(reach, projection) {
|
|
25
|
+
if ("radiusMetres" in reach) {
|
|
26
|
+
const r = reach.radiusMetres;
|
|
27
|
+
return Number.isFinite(r) && r > 0 ? { minX: -r, minY: -r, spanX: r * 2, spanY: r * 2 } : null;
|
|
28
|
+
}
|
|
29
|
+
const { south, west, north, east } = reach.bounds;
|
|
30
|
+
const a = projection.project([north, west]);
|
|
31
|
+
const b = projection.project([south, east]);
|
|
32
|
+
return unionBox([{ minX: a.x, minY: a.y, spanX: 0, spanY: 0 }, { minX: b.x, minY: b.y, spanX: 0, spanY: 0 }]);
|
|
33
|
+
}
|
|
34
|
+
function farthestEdge(box) {
|
|
35
|
+
return Math.max(Math.abs(box.minX), Math.abs(box.minX + box.spanX), Math.abs(box.minY), Math.abs(box.minY + box.spanY));
|
|
36
|
+
}
|
|
37
|
+
function viewWithin(outermostMetres, reach, areaBoxes) {
|
|
38
|
+
if (outermostMetres !== null) {
|
|
39
|
+
return viewBoxFor(Math.max(outermostMetres, reach === null ? 0 : farthestEdge(reach)), null);
|
|
40
|
+
}
|
|
41
|
+
return viewBoxFor(null, unionBox([...areaBoxes(), reach]));
|
|
42
|
+
}
|
|
43
|
+
function centreOf(regions) {
|
|
44
|
+
const bounds = boundsOfRings(regions.flatMap((r) => r.rings));
|
|
45
|
+
if (bounds === null) return null;
|
|
46
|
+
return { latitude: (bounds.south + bounds.north) / 2, longitude: (bounds.west + bounds.east) / 2 };
|
|
47
|
+
}
|
|
48
|
+
function regionMapView({
|
|
49
|
+
regions,
|
|
50
|
+
center,
|
|
51
|
+
circles = [],
|
|
52
|
+
reach
|
|
53
|
+
}) {
|
|
54
|
+
const origin = center ?? centreOf(regions);
|
|
55
|
+
if (origin === null) return null;
|
|
56
|
+
const projection = projectionAt(origin);
|
|
57
|
+
return viewWithin(
|
|
58
|
+
extent(circles.map((c) => c.radiusMetres))?.max ?? null,
|
|
59
|
+
reach === void 0 ? null : reachBox(reach, projection),
|
|
60
|
+
() => regions.map((r) => planeBounds(projectRings(r.rings, projection)))
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
unionBox,
|
|
66
|
+
boundsOfRings,
|
|
67
|
+
reachBox,
|
|
68
|
+
viewWithin,
|
|
69
|
+
centreOf,
|
|
70
|
+
regionMapView
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=chunk-FWAY2SAI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/RegionMap/RegionMap.view.ts"],"sourcesContent":["import {\n extent,\n planeBounds,\n projectionAt,\n projectRings,\n viewBoxFor,\n type PlaneBox,\n type Projection,\n} from './RegionMap.helpers';\nimport type {\n RegionMapBounds,\n RegionMapCircle,\n RegionMapReach,\n RegionMapRegion,\n RegionMapRing,\n} from './RegionMap.types';\n\n// What `RegionMap` shows: its view, given the circles, the areas and a host's\n// `reach` — pure, so a host laying HTML over the drawing computes the same one.\n\n/** The smallest box holding every given box, or null with none. */\nexport function unionBox(boxes: readonly (PlaneBox | null)[]): PlaneBox | null {\n const real = boxes.filter((box): box is PlaneBox => box !== null);\n const xs = extent(real.flatMap((b) => [b.minX, b.minX + b.spanX]));\n const ys = extent(real.flatMap((b) => [b.minY, b.minY + b.spanY]));\n if (xs === null || ys === null) return null;\n return { minX: xs.min, minY: ys.min, spanX: xs.max - xs.min, spanY: ys.max - ys.min };\n}\n\n/** The latitude/longitude box around some outlines — a `reach` no radius describes. */\nexport function boundsOfRings(rings: readonly RegionMapRing[]): RegionMapBounds | null {\n const points = rings.flat();\n const lats = extent(points.map(([latitude]) => latitude));\n const lngs = extent(points.map(([, longitude]) => longitude));\n if (lats === null || lngs === null) return null;\n return { south: lats.min, west: lngs.min, north: lats.max, east: lngs.max };\n}\n\n/** A `reach` as a box in projected metres (a radius is a square around the centre). */\nexport function reachBox(reach: RegionMapReach, projection: Projection): PlaneBox | null {\n if ('radiusMetres' in reach) {\n const r = reach.radiusMetres;\n return Number.isFinite(r) && r > 0 ? { minX: -r, minY: -r, spanX: r * 2, spanY: r * 2 } : null;\n }\n const { south, west, north, east } = reach.bounds;\n const a = projection.project([north, west]);\n const b = projection.project([south, east]);\n return unionBox([{ minX: a.x, minY: a.y, spanX: 0, spanY: 0 }, { minX: b.x, minY: b.y, spanX: 0, spanY: 0 }]);\n}\n\n/** How far the box reaches from the centre along either axis — the half-side of a centred square holding it. */\nfunction farthestEdge(box: PlaneBox): number {\n return Math.max(Math.abs(box.minX), Math.abs(box.minX + box.spanX), Math.abs(box.minY), Math.abs(box.minY + box.spanY));\n}\n\n/**\n * The view, given what it must fit: the outermost circle and the `reach` with\n * the margin on top, still centred on the centre; else every area and the\n * reach together. Without a reach it is exactly `viewBoxFor`'s.\n */\nexport function viewWithin(\n outermostMetres: number | null,\n reach: PlaneBox | null,\n areaBoxes: () => readonly (PlaneBox | null)[],\n): PlaneBox | null {\n if (outermostMetres !== null) {\n return viewBoxFor(Math.max(outermostMetres, reach === null ? 0 : farthestEdge(reach)), null);\n }\n return viewBoxFor(null, unionBox([...areaBoxes(), reach]));\n}\n\n/** The middle of every area, for a map with no centre of its own. */\nexport function centreOf(regions: readonly RegionMapRegion[]): { latitude: number; longitude: number } | null {\n const bounds = boundsOfRings(regions.flatMap((r) => r.rings));\n if (bounds === null) return null;\n return { latitude: (bounds.south + bounds.north) / 2, longitude: (bounds.west + bounds.east) / 2 };\n}\n\n/**\n * The square `RegionMap` shows for these props, in projected metres around\n * `center` (or the areas' middle) — for a host that lays its own HTML over the\n * drawing at the same scale: a point `p` sits at\n * `(p.x - view.minX) / view.spanX` across. With circles the view is centred,\n * so its half-side is `view.spanX / 2`.\n */\nexport function regionMapView({\n regions,\n center,\n circles = [],\n reach,\n}: {\n regions: readonly RegionMapRegion[];\n center: { latitude: number; longitude: number } | null;\n circles?: readonly RegionMapCircle[];\n reach?: RegionMapReach;\n}): PlaneBox | null {\n const origin = center ?? centreOf(regions);\n if (origin === null) return null;\n const projection = projectionAt(origin);\n return viewWithin(\n extent(circles.map((c) => c.radiusMetres))?.max ?? null,\n reach === undefined ? null : reachBox(reach, projection),\n () => regions.map((r) => planeBounds(projectRings(r.rings, projection))),\n );\n}\n"],"mappings":"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","names":[]}
|