@m4l/gclick 0.3.6 → 0.3.7
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/ReportsViewer/hooks/useSheetContent/useSheetContent.d.ts +1 -1
- package/components/formatters/CourseFormatter/CourseFormatter.d.ts.map +1 -0
- package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.js +2 -2
- package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/constants.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/dictionary.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/helper.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/index.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +4 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/types.d.ts.map +1 -0
- package/components/formatters/index.d.ts +2 -0
- package/components/formatters/index.d.ts.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts.map +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.js +51 -53
- package/components/maps/components/GpsMap/GpsMap.js +16 -16
- package/components/maps/components/GpsMap/GpsMap.styles.d.ts.map +1 -1
- package/components/maps/components/GpsMap/GpsMap.styles.js +2 -0
- package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts +38 -0
- package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/constants.d.ts +36 -0
- package/components/maps/components/GpsMap/__testing__/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/fixtures.d.ts +54 -0
- package/components/maps/components/GpsMap/__testing__/fixtures.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/index.d.ts +5 -0
- package/components/maps/components/GpsMap/__testing__/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts +51 -0
- package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts.map +1 -0
- package/components/maps/components/GpsMap/classes/index.d.ts +1 -2
- package/components/maps/components/GpsMap/classes/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +6 -10
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts +21 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts.map +1 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js +27 -0
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +113 -139
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +73 -52
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +4 -4
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +192 -209
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -4
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +46 -66
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +2 -10
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts +17 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts.map +1 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js +53 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts +3 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/index.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/debug/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → debug/markerDecimation}/GridDebugVisualization.d.ts +1 -1
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts +4 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts +71 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts +7 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/index.d.ts +5 -4
- package/components/maps/components/GpsMap/hooks/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +2 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js +10 -11
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.js +4 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter}/constants.js +2 -3
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts} +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.js → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.js} +4 -2
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.js +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +22 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/types.d.ts +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts +9 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js +16 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts +16 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.js +75 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts +13 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.js +21 -0
- package/components/maps/components/GpsMap/popups/index.d.ts +0 -1
- package/components/maps/components/GpsMap/popups/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/popups/types.d.ts +4 -0
- package/components/maps/components/GpsMap/popups/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/{index.js → Controls.js} +5 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/{index.js → ButtonsToolsList.js} +9 -8
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +31 -20
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts +15 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.js +90 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts +3 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.js +35 -38
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +2 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +31 -25
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +1 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.js +22 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.js +10 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.js +7 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/{Layers/index.d.ts → LayersContainer/LayersContainer.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.js +23 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.d.ts → LayersContainer/subcomponents/Layer/Layer.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.js → LayersContainer/subcomponents/Layer/Layer.js} +8 -8
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts +3 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.js +51 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.js +30 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +1 -6
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts +10 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -9
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +1 -6
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/types.d.ts +18 -0
- package/components/maps/components/GpsMap/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +1 -1
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +11 -10
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +5 -5
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.js +6 -6
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts +14 -6
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +32 -40
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +8 -7
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.js +23 -24
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +37 -37
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +36 -35
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts.map +1 -1
- package/formatters/index.d.ts +1 -1
- package/formatters/index.d.ts.map +1 -1
- package/index.js +124 -126
- package/internal/storybookRuntime.d.ts +27 -0
- package/internal/storybookRuntime.d.ts.map +1 -0
- package/internal/storybookRuntime.js +19 -0
- package/package.json +3 -3
- package/components/DeviceStatus/dictionary.js +0 -8
- package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +0 -9
- package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts.map +0 -1
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +0 -2
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +0 -9
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +0 -7
- package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/GridDebugVisualization.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts +0 -6
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +0 -22
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts +0 -84
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.js +0 -83
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts +0 -6
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +0 -8
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +0 -32
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +0 -3
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +0 -146
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +0 -17
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +0 -20
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +0 -3
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +0 -34
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +0 -55
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +0 -14
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +0 -4
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +0 -7
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +0 -111
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +0 -18
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +0 -7
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +0 -11
- package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.js +0 -18
- package/components/maps/components/GpsMap/subcomponents/Layers/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/index.js +0 -21
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +0 -14
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +0 -11
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.js +0 -29
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +0 -30
- package/formatters/CourseFormatter/CourseFormatter.d.ts.map +0 -1
- package/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +0 -1
- package/formatters/CourseFormatter/constants.d.ts.map +0 -1
- package/formatters/CourseFormatter/dictionary.d.ts.map +0 -1
- package/formatters/CourseFormatter/helper.d.ts.map +0 -1
- package/formatters/CourseFormatter/index.d.ts.map +0 -1
- package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +0 -1
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -4
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +0 -1
- package/formatters/CourseFormatter/types.d.ts.map +0 -1
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/constants.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/constants.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/dictionary.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/dictionary.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/helper.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/helper.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/index.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterSlots.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation}/useFilterDecimation.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/{index.js → MeasureData.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/{index.js → MyActions.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.js → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/{index.js → TileLayerGoogle.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/{index.js → TileLayerOthers.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { createContext as u, useRef as
|
|
3
|
-
import { useModuleDictionary as
|
|
2
|
+
import { createContext as u, useRef as m } from "react";
|
|
3
|
+
import { useModuleDictionary as f } from "@m4l/core";
|
|
4
4
|
import { createMapStore as M } from "./store.js";
|
|
5
5
|
const g = u(null);
|
|
6
6
|
function D(t) {
|
|
@@ -10,16 +10,12 @@ function D(t) {
|
|
|
10
10
|
initialMapData: a,
|
|
11
11
|
googleMapsApiKey: i,
|
|
12
12
|
googleMapVersion: n = "weekly",
|
|
13
|
-
storeId:
|
|
13
|
+
storeId: p,
|
|
14
14
|
storeDevtoolsEnabled: l = !1
|
|
15
|
-
} = t, { getLabel:
|
|
15
|
+
} = t, { getLabel: s } = f(), e = m(null);
|
|
16
16
|
return e.current || (e.current = M({
|
|
17
|
-
storeId:
|
|
18
|
-
getLabel:
|
|
19
|
-
ownerState: {
|
|
20
|
-
status: "init",
|
|
21
|
-
focus: !1
|
|
22
|
-
},
|
|
17
|
+
storeId: p,
|
|
18
|
+
getLabel: s,
|
|
23
19
|
hasMapData: a || {},
|
|
24
20
|
googleMapsApiKey: i,
|
|
25
21
|
googleMapVersion: n
|
package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MapToolController, MapToolControllerScope } from '../../../types';
|
|
2
|
+
export type ToolControllerRegistryEntry = Partial<Record<MapToolControllerScope, MapToolController>>;
|
|
3
|
+
export type ToolControllerRegistry = Map<string, ToolControllerRegistryEntry>;
|
|
4
|
+
/**
|
|
5
|
+
* Resolves the currently active controller for a tool, prioritizing runtime
|
|
6
|
+
* overrides over the default controller published by the tool definition.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveToolController(registry: ToolControllerRegistry, toolId: string): Partial<Record<import('../../../types').MapToolControlCommand, () => void>> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Stores or replaces a controller in the requested registry scope.
|
|
11
|
+
*/
|
|
12
|
+
export declare function registerToolController(registry: ToolControllerRegistry, toolId: string, controller: MapToolController, scope?: MapToolControllerScope): void;
|
|
13
|
+
/**
|
|
14
|
+
* Removes a controller from the requested scope and prunes empty tool entries.
|
|
15
|
+
*/
|
|
16
|
+
export declare function unregisterToolController(registry: ToolControllerRegistry, toolId: string, scope?: MapToolControllerScope): void;
|
|
17
|
+
/**
|
|
18
|
+
* Delegates a semantic command to the resolved controller when one is present.
|
|
19
|
+
*/
|
|
20
|
+
export declare function runToolCommand(registry: ToolControllerRegistry, toolId: string, command: keyof MapToolController): void;
|
|
21
|
+
//# sourceMappingURL=toolControllerRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolControllerRegistry.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,MAAM,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAClD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAE9E;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,2FAKf;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,iBAAiB,EAC7B,KAAK,GAAE,sBAAkC,QAM1C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,sBAAkC,QAgB1C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,iBAAiB,QAGjC"}
|
package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function u(e, n) {
|
|
2
|
+
const t = e.get(n);
|
|
3
|
+
return t?.runtime ?? t?.default;
|
|
4
|
+
}
|
|
5
|
+
function l(e, n, t, r = "runtime") {
|
|
6
|
+
const o = e.get(n) ?? {};
|
|
7
|
+
o[r] = t, e.set(n, o);
|
|
8
|
+
}
|
|
9
|
+
function c(e, n, t = "runtime") {
|
|
10
|
+
const r = e.get(n);
|
|
11
|
+
if (r) {
|
|
12
|
+
if (delete r[t], !r.default && !r.runtime) {
|
|
13
|
+
e.delete(n);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
e.set(n, r);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function i(e, n, t) {
|
|
20
|
+
u(e, n)?.[t]?.();
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as registerToolController,
|
|
24
|
+
u as resolveToolController,
|
|
25
|
+
i as runToolCommand,
|
|
26
|
+
c as unregisterToolController
|
|
27
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { MapProvider, MapContext } from './MapContext';
|
|
2
|
-
export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, FeatureLayerData, } from './types';
|
|
2
|
+
export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureSelectionSource, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, FeatureLayerData, SelectedFeatureState, } from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MapStateWithActions, InitialMapStoreProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates the map store instance with its initial state and actions.
|
|
4
4
|
*/
|
|
5
5
|
export declare const createMapStore: (initProps: InitialMapStoreProps, storeDevtoolsEnabled?: boolean) => import('zustand').StoreApi<MapStateWithActions>;
|
|
6
6
|
export type MapStore = ReturnType<typeof createMapStore>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/store.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/store.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAMrB,MAAM,SAAS,CAAC;AAmCjB;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,oBAAoB,EAAE,8BAA4B,oDAyV3F,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { createStore as
|
|
2
|
-
import { devtools as
|
|
3
|
-
import { immer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { createStore as m } from "zustand";
|
|
2
|
+
import { devtools as j } from "zustand/middleware";
|
|
3
|
+
import { immer as F } from "zustand/middleware/immer";
|
|
4
|
+
import { runToolCommand as L, unregisterToolController as O, registerToolController as g } from "./helpers/toolControllerRegistry.js";
|
|
5
|
+
import f from "lodash-es/cloneDeep";
|
|
6
|
+
import y from "lodash-es/merge";
|
|
7
|
+
import { TILE_LAYER_OTHERS as w } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/others.js";
|
|
8
|
+
import { TILE_SORCE_GOOGLE as J } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/google.js";
|
|
9
|
+
import { TILE_LAYER_BING as E } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/bing.js";
|
|
10
|
+
const T = (u, l) => {
|
|
11
|
+
const { enabled: p = !1 } = l;
|
|
12
|
+
return p && process.env.NODE_ENV === "development" ? j(u, l) : u;
|
|
13
|
+
}, A = (u, l = !1) => {
|
|
14
|
+
const p = {
|
|
14
15
|
currentMapSourceLayer: {
|
|
15
16
|
mapSourceId: "google",
|
|
16
17
|
mapSourceLayerId: "streets"
|
|
17
18
|
},
|
|
18
|
-
mapSources: [
|
|
19
|
+
mapSources: [J, E, w],
|
|
19
20
|
layersIds: [],
|
|
20
21
|
hashLayers: {},
|
|
21
22
|
autoFocusLayers: !0,
|
|
22
|
-
|
|
23
|
+
selectedFeature: null,
|
|
24
|
+
...u
|
|
23
25
|
};
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let d = null;
|
|
27
|
+
const h = /* @__PURE__ */ new Map();
|
|
28
|
+
return m(
|
|
29
|
+
T(
|
|
30
|
+
F((n, i) => ({
|
|
31
|
+
...p,
|
|
29
32
|
mapActions: {
|
|
30
33
|
/**
|
|
31
34
|
* TODO: Documentar
|
|
@@ -33,27 +36,19 @@ const J = (h, f) => {
|
|
|
33
36
|
init: (e) => {
|
|
34
37
|
n((r) => {
|
|
35
38
|
for (let o = 0; o < e.length; o++)
|
|
36
|
-
r.hashLayers[e[o].layerId] =
|
|
39
|
+
r.hashLayers[e[o].layerId] = f(e[o]), r.layersIds.push(e[o].layerId);
|
|
37
40
|
});
|
|
38
41
|
},
|
|
39
42
|
/**
|
|
40
43
|
* Actualiza el ref del mapa
|
|
41
44
|
*/
|
|
42
45
|
setMapRef: (e) => {
|
|
43
|
-
|
|
46
|
+
d = e;
|
|
44
47
|
},
|
|
45
48
|
/**
|
|
46
49
|
* Retorna el ref del mapa
|
|
47
50
|
*/
|
|
48
|
-
getMap: () =>
|
|
49
|
-
/**
|
|
50
|
-
* TODO: Documentar
|
|
51
|
-
*/
|
|
52
|
-
setMapState: (e) => {
|
|
53
|
-
n((r) => {
|
|
54
|
-
r.ownerState.status = e;
|
|
55
|
-
});
|
|
56
|
-
},
|
|
51
|
+
getMap: () => d,
|
|
57
52
|
/**
|
|
58
53
|
* Actualiza la información transversal a todas las capas.
|
|
59
54
|
*/
|
|
@@ -62,46 +57,6 @@ const J = (h, f) => {
|
|
|
62
57
|
r.hasMapData = { ...r.hasMapData, ...e };
|
|
63
58
|
});
|
|
64
59
|
},
|
|
65
|
-
// isEqualsMapProperties: (_newMapProperties: MapProperties) => {
|
|
66
|
-
// // if (get().mapProperties === undefined) {
|
|
67
|
-
// // return false;
|
|
68
|
-
// // }
|
|
69
|
-
// // return (
|
|
70
|
-
// // JSON.stringify(get().mapProperties) === JSON.stringify(newMapProperties)
|
|
71
|
-
// // );
|
|
72
|
-
// return false;
|
|
73
|
-
// },
|
|
74
|
-
// setMapProperties: (newMapProperties: MapProperties) => {
|
|
75
|
-
// if (!get().mapActions.isEqualsMapProperties(newMapProperties)) {
|
|
76
|
-
// set(state => {
|
|
77
|
-
// state.mapProperties = newMapProperties;
|
|
78
|
-
// if (state.ownerState.status === 'init') {
|
|
79
|
-
// state.ownerState.status = 'ready';
|
|
80
|
-
// updateOwnerStateClasses(state);
|
|
81
|
-
// }
|
|
82
|
-
// });
|
|
83
|
-
// }
|
|
84
|
-
// },
|
|
85
|
-
// setAllFeaturesDataLayer: (layerId: string, value: AllFeaturesDatalLayer) => {
|
|
86
|
-
// set(state => {
|
|
87
|
-
// // if (
|
|
88
|
-
// // value.geometry === 'multipoints' &&
|
|
89
|
-
// // state.hashLayers[layerId].geometry === value.geometry
|
|
90
|
-
// // ) {
|
|
91
|
-
// // (
|
|
92
|
-
// // state.hashLayers[layerId] as WritableDraft<LayerMultiPointProps>
|
|
93
|
-
// // ).hashFeatures = cloneDeep(value.hashFeatures); // Valor puro
|
|
94
|
-
// // }
|
|
95
|
-
// // if (
|
|
96
|
-
// // value.geometry === 'multilines' &&
|
|
97
|
-
// // state.hashLayers[layerId].geometry === value.geometry
|
|
98
|
-
// // ) {
|
|
99
|
-
// // (
|
|
100
|
-
// // state.hashLayers[layerId] as WritableDraft<LayerMultiLineProps>
|
|
101
|
-
// // ).hashFeatures = cloneDeep(value.hashFeatures);
|
|
102
|
-
// // }
|
|
103
|
-
// });
|
|
104
|
-
// },
|
|
105
60
|
/**
|
|
106
61
|
* Modifica toda la capa, reemplanzando todo el geoJson
|
|
107
62
|
*/
|
|
@@ -109,8 +64,8 @@ const J = (h, f) => {
|
|
|
109
64
|
if (!i().hashLayers[e])
|
|
110
65
|
throw new Error(`Layer with id ${e} not found`);
|
|
111
66
|
n((o) => {
|
|
112
|
-
const
|
|
113
|
-
|
|
67
|
+
const s = o.hashLayers[e];
|
|
68
|
+
s.geoJsonObject = r;
|
|
114
69
|
});
|
|
115
70
|
},
|
|
116
71
|
/**
|
|
@@ -120,8 +75,8 @@ const J = (h, f) => {
|
|
|
120
75
|
if (!i().hashLayers[e])
|
|
121
76
|
throw new Error(`Layer with id ${e} not found`);
|
|
122
77
|
n((o) => {
|
|
123
|
-
const
|
|
124
|
-
|
|
78
|
+
const s = o.hashLayers[e];
|
|
79
|
+
s.geoJsonObject = y(s.geoJsonObject, r);
|
|
125
80
|
});
|
|
126
81
|
},
|
|
127
82
|
/**
|
|
@@ -136,22 +91,22 @@ const J = (h, f) => {
|
|
|
136
91
|
/**
|
|
137
92
|
* TODO: Documentar
|
|
138
93
|
*/
|
|
139
|
-
setFeatureData: (e, r, o,
|
|
94
|
+
setFeatureData: (e, r, o, s) => {
|
|
140
95
|
if (!i().hashLayers[e])
|
|
141
96
|
throw new Error(`Layer with id ${e} not found`);
|
|
142
97
|
n((t) => {
|
|
143
98
|
if (t.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
|
|
144
|
-
const
|
|
145
|
-
let c =
|
|
146
|
-
c ? (c.geometry =
|
|
99
|
+
const a = t.hashLayers[e].geoJsonObject?.object;
|
|
100
|
+
let c = a.features.find((b) => b.id === r);
|
|
101
|
+
c ? (c.geometry = f(o), c.properties = y(c.properties, s)) : (c = {
|
|
147
102
|
type: "Feature",
|
|
148
103
|
geometry: o,
|
|
149
104
|
id: r,
|
|
150
|
-
properties:
|
|
151
|
-
},
|
|
105
|
+
properties: s
|
|
106
|
+
}, a.features.push(c));
|
|
152
107
|
} else if (t.hashLayers[e].geoJsonObject?.object.type === "Feature") {
|
|
153
|
-
const
|
|
154
|
-
|
|
108
|
+
const a = t.hashLayers[e].geoJsonObject?.object;
|
|
109
|
+
a.id = r, a.geometry = f(o), a.properties = f(s);
|
|
155
110
|
}
|
|
156
111
|
});
|
|
157
112
|
},
|
|
@@ -163,12 +118,13 @@ const J = (h, f) => {
|
|
|
163
118
|
throw new Error(`Layer with id ${e} not found`);
|
|
164
119
|
n((o) => {
|
|
165
120
|
if (o.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
|
|
166
|
-
const
|
|
167
|
-
t !== -1 &&
|
|
121
|
+
const s = o.hashLayers[e].geoJsonObject?.object, t = s.features.findIndex((a) => a.id === r);
|
|
122
|
+
t !== -1 && s.features.splice(t, 1);
|
|
168
123
|
} else if (o.hashLayers[e].geoJsonObject?.object.type === "Feature") {
|
|
169
|
-
const
|
|
170
|
-
|
|
124
|
+
const s = o.hashLayers[e].geoJsonObject?.object;
|
|
125
|
+
s.geometry = { type: "Point", coordinates: [0, 0] }, s.properties = { subType: "Marker" };
|
|
171
126
|
}
|
|
127
|
+
o.selectedFeature?.layerId === e && o.selectedFeature.featureId === r && (o.selectedFeature = null);
|
|
172
128
|
});
|
|
173
129
|
},
|
|
174
130
|
/**
|
|
@@ -193,13 +149,13 @@ const J = (h, f) => {
|
|
|
193
149
|
* TODO: Documentar
|
|
194
150
|
*/
|
|
195
151
|
addLayerDataToFeature: (e, r, o) => {
|
|
196
|
-
n((
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
} else if (
|
|
202
|
-
const t =
|
|
152
|
+
n((s) => {
|
|
153
|
+
if (s.hashLayers[e]) {
|
|
154
|
+
if (s.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
|
|
155
|
+
const a = (s.hashLayers[e].geoJsonObject?.object).features.find((c) => c.id === r);
|
|
156
|
+
a && (a.layerData = y(a.layerData || {}, o));
|
|
157
|
+
} else if (s.hashLayers[e].geoJsonObject?.object.type === "Feature") {
|
|
158
|
+
const t = s.hashLayers[e].geoJsonObject?.object;
|
|
203
159
|
t.layerData && (t.layerData = o);
|
|
204
160
|
}
|
|
205
161
|
}
|
|
@@ -210,50 +166,68 @@ const J = (h, f) => {
|
|
|
210
166
|
*/
|
|
211
167
|
removeLayer: (e) => {
|
|
212
168
|
i().hashLayers[e] && n((r) => {
|
|
213
|
-
r.layersIds.splice(r.layersIds.indexOf(e), 1), delete r.hashLayers[e];
|
|
169
|
+
r.layersIds.splice(r.layersIds.indexOf(e), 1), delete r.hashLayers[e], r.selectedFeature?.layerId === e && (r.selectedFeature = null);
|
|
214
170
|
});
|
|
215
171
|
},
|
|
216
172
|
/**
|
|
217
|
-
*
|
|
173
|
+
* Stores external feature-selection intent so renderers can react declaratively.
|
|
174
|
+
*/
|
|
175
|
+
selectFeature: (e, r, o) => {
|
|
176
|
+
n((s) => {
|
|
177
|
+
s.selectedFeature = {
|
|
178
|
+
layerId: e,
|
|
179
|
+
featureId: r,
|
|
180
|
+
openPopup: o?.openPopup ?? !1,
|
|
181
|
+
source: o?.source ?? "external",
|
|
182
|
+
requestId: (s.selectedFeature?.requestId ?? 0) + 1
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Clears external feature-selection intent.
|
|
188
|
+
*/
|
|
189
|
+
clearSelectedFeature: () => {
|
|
190
|
+
n((e) => {
|
|
191
|
+
e.selectedFeature = null;
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* Registers a tool controller without forcing controller state into the
|
|
196
|
+
* reactive map store.
|
|
197
|
+
*/
|
|
198
|
+
registerToolController: (e, r, o = "runtime") => {
|
|
199
|
+
g(h, e, r, o);
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
* Removes a previously registered tool controller.
|
|
203
|
+
*/
|
|
204
|
+
unregisterToolController: (e, r = "runtime") => {
|
|
205
|
+
O(h, e, r);
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Delegates an external open command to the resolved tool controller.
|
|
209
|
+
*/
|
|
210
|
+
openTool: (e) => {
|
|
211
|
+
L(h, e, "open");
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* Delegates an external close command to the resolved tool controller.
|
|
215
|
+
*/
|
|
216
|
+
closeTool: (e) => {
|
|
217
|
+
L(h, e, "close");
|
|
218
|
+
},
|
|
219
|
+
/**
|
|
220
|
+
* Delegates an external toggle command to the resolved tool controller.
|
|
218
221
|
*/
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
let a;
|
|
222
|
-
o && (o.geoJsonObject?.object?.type === "FeatureCollection" ? a = (o.geoJsonObject?.object).features.find(
|
|
223
|
-
(s) => s.id === r
|
|
224
|
-
) : o.geoJsonObject?.object.type === "Feature" && (a = o.geoJsonObject?.object)), a !== void 0 && a.layerData?.getTarget()?.openPopup();
|
|
222
|
+
toggleTool: (e) => {
|
|
223
|
+
L(h, e, "toggle");
|
|
225
224
|
},
|
|
226
|
-
// removeLefletLayerToFeature: (layerId, featureId ) => {
|
|
227
|
-
// set(state => {
|
|
228
|
-
// //se pon si existe, porque cuando se borran las capas, ya no hay forma
|
|
229
|
-
// if (state.hashLayers[layerId]){
|
|
230
|
-
// if (
|
|
231
|
-
// state.hashLayers[layerId].geoJsonObject?.object.type ===
|
|
232
|
-
// 'FeatureCollection'
|
|
233
|
-
// ) {
|
|
234
|
-
// //Remove feature from featureCollection
|
|
235
|
-
// const layer = state.hashLayers[layerId].geoJsonObject
|
|
236
|
-
// ?.object as FeatureCollection;
|
|
237
|
-
// const index = layer.features.findIndex(f => f.id === featureId);
|
|
238
|
-
// if (index !== -1) {
|
|
239
|
-
// layer.features[index].layerData = undefined;
|
|
240
|
-
// }
|
|
241
|
-
// } else if (
|
|
242
|
-
// state.hashLayers[layerId].geoJsonObject?.object.type === 'Feature'
|
|
243
|
-
// ) {
|
|
244
|
-
// const feature = state.hashLayers[layerId].geoJsonObject
|
|
245
|
-
// ?.object as Feature;
|
|
246
|
-
// feature.layerData = undefined;
|
|
247
|
-
// }
|
|
248
|
-
// }
|
|
249
|
-
// });
|
|
250
|
-
// },
|
|
251
225
|
/**
|
|
252
226
|
* TODO: Documentar
|
|
253
227
|
*/
|
|
254
228
|
setCheckedLayers: (e, r, o) => {
|
|
255
|
-
n((
|
|
256
|
-
|
|
229
|
+
n((s) => {
|
|
230
|
+
s.hashLayers[e] && (s.hashLayers[e][r] = o);
|
|
257
231
|
});
|
|
258
232
|
},
|
|
259
233
|
/**
|
|
@@ -261,8 +235,8 @@ const J = (h, f) => {
|
|
|
261
235
|
*/
|
|
262
236
|
setCurrentMapSourceLayer: (e, r) => {
|
|
263
237
|
n((o) => {
|
|
264
|
-
const
|
|
265
|
-
|
|
238
|
+
const s = o.mapSources.find((t) => t.id === e);
|
|
239
|
+
s && s.layers.find((t) => t.id === r) && (o.currentMapSourceLayer = {
|
|
266
240
|
mapSourceId: e,
|
|
267
241
|
mapSourceLayerId: r
|
|
268
242
|
});
|
|
@@ -272,22 +246,22 @@ const J = (h, f) => {
|
|
|
272
246
|
* TODO: Documentar
|
|
273
247
|
*/
|
|
274
248
|
setMapSourceLayerRoadOptions: (e, r, o) => {
|
|
275
|
-
n((
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
bicyclingLayer:
|
|
279
|
-
trafficLayer:
|
|
280
|
-
transitLayer:
|
|
249
|
+
n((s) => {
|
|
250
|
+
const a = s.mapSources.find((c) => c.id === e)?.layers.find((c) => c.id === r);
|
|
251
|
+
a && (a.roadSelectedOptions = {
|
|
252
|
+
bicyclingLayer: a.roadSelectedOptions?.bicyclingLayer || !1,
|
|
253
|
+
trafficLayer: a.roadSelectedOptions?.trafficLayer || !1,
|
|
254
|
+
transitLayer: a.roadSelectedOptions?.transitLayer || !1,
|
|
281
255
|
...o
|
|
282
256
|
});
|
|
283
257
|
});
|
|
284
258
|
}
|
|
285
259
|
}
|
|
286
260
|
})),
|
|
287
|
-
{ name: `Map store: ${
|
|
261
|
+
{ name: `Map store: ${u.storeId}`, enabled: l }
|
|
288
262
|
)
|
|
289
263
|
);
|
|
290
264
|
};
|
|
291
265
|
export {
|
|
292
|
-
|
|
266
|
+
A as createMapStore
|
|
293
267
|
};
|