@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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ControlsProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
|
|
4
|
+
*/
|
|
5
|
+
export declare function Controls(props: ControlsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/Controls.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDA8B5C"}
|
|
@@ -4,18 +4,18 @@ import { createPortal as P } from "react-dom";
|
|
|
4
4
|
import i from "leaflet";
|
|
5
5
|
import { useMap as E } from "react-leaflet";
|
|
6
6
|
import { PopupsProvider as h } from "@m4l/components";
|
|
7
|
-
import { ButtonsToolsList as s } from "./subcomponents/ButtonsToolsList/index.js";
|
|
8
7
|
import { MAP_ZINDEX_OVER_MAP as b } from "../../constants.js";
|
|
9
|
-
import { RightToolsRootStyled as
|
|
8
|
+
import { RightToolsRootStyled as s, PopupsViewerStyled as R } from "../../slots/styled.js";
|
|
10
9
|
import { useControls as _ } from "./hooks/useControls.js";
|
|
10
|
+
import { ButtonsToolsList as l } from "./subcomponents/ButtonsToolsList/ButtonsToolsList.js";
|
|
11
11
|
function L(a) {
|
|
12
12
|
const t = E(), [n, m] = e(null), [p, c] = e(void 0), { topRightTools: f, bottomRightTools: C, loggedUser: g } = _(a);
|
|
13
13
|
return d(() => {
|
|
14
14
|
const o = t.getContainer().getElementsByClassName("leaflet-control-container")[0];
|
|
15
|
-
o
|
|
15
|
+
o && (m(o), i.DomEvent.disableClickPropagation(o), i.DomEvent.disableScrollPropagation(o)), c(t.getContainer());
|
|
16
16
|
}, [t]), /* @__PURE__ */ u(h, { baseZindex: b, children: [
|
|
17
|
-
/* @__PURE__ */ r(
|
|
18
|
-
/* @__PURE__ */ r(
|
|
17
|
+
/* @__PURE__ */ r(l, { position: "topright", tools: f, ControlContainer: s }),
|
|
18
|
+
/* @__PURE__ */ r(l, { position: "bottomright", tools: C, ControlContainer: s }),
|
|
19
19
|
n && P(/* @__PURE__ */ r(R, { containerElement: p, loggedUser: g }), n)
|
|
20
20
|
] });
|
|
21
21
|
}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Controls(props: ControlsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
|
+
export * from './Controls';
|
|
6
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonsToolsListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Inserta los botones de herramientas en los controles del mapa
|
|
4
|
+
* @param props
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function ButtonsToolsList(props: ButtonsToolsListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ButtonsToolsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonsToolsList.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,oDA6C5D"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as f } from "react";
|
|
3
3
|
import { MapControl as l } from "../../../../external/MapControl/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
7
|
-
const { tools: e, ControlContainer: u, position: c } = p, { getLabel:
|
|
4
|
+
import { useModuleDictionary as C, useEnvironment as I } from "@m4l/core";
|
|
5
|
+
import { ButtonPopupTool as P } from "./subcomponents/ButtonPopupTool/ButtonPopupTool.js";
|
|
6
|
+
function h(p) {
|
|
7
|
+
const { tools: e, ControlContainer: u, position: c } = p, { getLabel: r } = C(), { host_static_assets: i, environment_assets: s } = I(), m = f(() => e.map((n) => {
|
|
8
8
|
if (n.type === "popup") {
|
|
9
|
-
const t = "isInternal" in n && n.isInternal, a = t ? `${
|
|
9
|
+
const t = "isInternal" in n && n.isInternal, a = t ? `${i}/${s}/frontend/components/${n.componentPathId}/assets/icons/${n.iconId}` : n.iconUrl, d = t ? r(n.dictionaryId) : n.PopupTitle;
|
|
10
10
|
return /* @__PURE__ */ o(
|
|
11
|
-
|
|
11
|
+
P,
|
|
12
12
|
{
|
|
13
13
|
ToolComponent: n.PopupContentComponent,
|
|
14
|
+
externalController: n.externalController,
|
|
14
15
|
iconUrl: a,
|
|
15
16
|
popupId: n.id,
|
|
16
17
|
title: d,
|
|
@@ -23,9 +24,9 @@ function L(p) {
|
|
|
23
24
|
return typeof t == "function" ? /* @__PURE__ */ o(t, {}, n.id) : t;
|
|
24
25
|
}
|
|
25
26
|
return null;
|
|
26
|
-
}), [e, s, r
|
|
27
|
+
}), [e, i, s, r]);
|
|
27
28
|
return /* @__PURE__ */ o(l, { position: c, prepend: !0, ControlContainer: u, children: m });
|
|
28
29
|
}
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
h as ButtonsToolsList
|
|
31
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAgB3B,eAAO,MAAM,gBAAgB,EAAE,oBAU9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,oBAU7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,oBAU9B,CAAC"}
|
|
@@ -1,39 +1,50 @@
|
|
|
1
|
-
import { MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as
|
|
1
|
+
import { MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as O, MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION as P, MESURE_TOOL_POPUP_DEFAULT_POSITION as _ } from "../../../../constants.js";
|
|
2
2
|
import { MAP_DICCTIONARY as o } from "../../../../dictionary.js";
|
|
3
|
-
import { MAP_ICONS as
|
|
4
|
-
import { MapSourcesTool as
|
|
5
|
-
import { MapLayersTool as
|
|
6
|
-
import { MeasureTool as
|
|
7
|
-
const
|
|
3
|
+
import { MAP_ICONS as t } from "../../../../icons.js";
|
|
4
|
+
import { MapSourcesTool as i } from "./subcomponents/MapSourcesTool/MapSourcesTool.js";
|
|
5
|
+
import { MapLayersTool as l } from "./subcomponents/MapLayersTool/MapLayersTool.js";
|
|
6
|
+
import { MeasureTool as a } from "./subcomponents/MeasureTool/MeasureTool.js";
|
|
7
|
+
const p = ({
|
|
8
|
+
closeDefault: n,
|
|
9
|
+
openDefault: e,
|
|
10
|
+
toggleDefault: r
|
|
11
|
+
}) => ({
|
|
12
|
+
close: n,
|
|
13
|
+
open: e,
|
|
14
|
+
toggle: r
|
|
15
|
+
}), s = {
|
|
8
16
|
isInternal: !0,
|
|
9
17
|
id: "sourcesTools",
|
|
10
18
|
type: "popup",
|
|
19
|
+
externalController: p,
|
|
11
20
|
componentPathId: "map",
|
|
12
|
-
iconId:
|
|
21
|
+
iconId: t.MAP_SOURCES_TOOL,
|
|
13
22
|
dictionaryId: o.LABEL_MAP_SOURCES,
|
|
14
|
-
popupDefaultPosition:
|
|
15
|
-
PopupContentComponent:
|
|
16
|
-
},
|
|
23
|
+
popupDefaultPosition: O,
|
|
24
|
+
PopupContentComponent: i
|
|
25
|
+
}, u = {
|
|
17
26
|
isInternal: !0,
|
|
18
27
|
id: "layersTools",
|
|
19
28
|
type: "popup",
|
|
29
|
+
externalController: p,
|
|
20
30
|
componentPathId: "map",
|
|
21
|
-
iconId:
|
|
31
|
+
iconId: t.MAP_LAYERS_TOOL,
|
|
22
32
|
dictionaryId: o.LABEL_LAYERS,
|
|
23
|
-
popupDefaultPosition:
|
|
24
|
-
PopupContentComponent:
|
|
25
|
-
},
|
|
33
|
+
popupDefaultPosition: P,
|
|
34
|
+
PopupContentComponent: l
|
|
35
|
+
}, S = {
|
|
26
36
|
isInternal: !0,
|
|
27
37
|
id: "measureTools",
|
|
28
38
|
type: "popup",
|
|
39
|
+
externalController: p,
|
|
29
40
|
componentPathId: "map",
|
|
30
|
-
iconId:
|
|
41
|
+
iconId: t.MAP_MEASURE_TOOL,
|
|
31
42
|
dictionaryId: o.LABEL_MEASURE,
|
|
32
|
-
popupDefaultPosition:
|
|
33
|
-
PopupContentComponent:
|
|
43
|
+
popupDefaultPosition: _,
|
|
44
|
+
PopupContentComponent: a
|
|
34
45
|
};
|
|
35
46
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
u as MAP_LAYERS_TOOL,
|
|
48
|
+
S as MAP_MEASURE_TOOL,
|
|
49
|
+
s as MAP_SOURCES_TOOL
|
|
39
50
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { JSX_REACT_NODE, RNDDefaultPosition } from '@m4l/components';
|
|
2
|
+
import { MapToolExternalControllerFactory } from '../../../../../types';
|
|
2
3
|
export type useToolProps = {
|
|
3
4
|
popupId: string;
|
|
4
5
|
ToolComponent?: JSX_REACT_NODE;
|
|
5
6
|
iconUrl: string;
|
|
6
7
|
title: string;
|
|
7
8
|
defaultPosition: RNDDefaultPosition;
|
|
9
|
+
externalController?: MapToolExternalControllerFactory;
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAC,cAAc,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,kBAAkB,CAAC;IACpC,kBAAkB,CAAC,EAAE,gCAAgC,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MapToolExternalControllerContext } from '../../../../../types';
|
|
2
|
+
import { useToolProps } from './types';
|
|
3
|
+
type UsePopupToolRuntimeResult = {
|
|
4
|
+
externalControllerContext: MapToolExternalControllerContext;
|
|
5
|
+
isDisabled: boolean;
|
|
6
|
+
isToggled: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Owns the shared popup-runtime lifecycle for popup-based map tools.
|
|
10
|
+
* Higher-level hooks can reuse this behavior directly or expose it through
|
|
11
|
+
* externally registered tool controllers.
|
|
12
|
+
*/
|
|
13
|
+
export declare function usePopupToolRuntime(props: useToolProps): UsePopupToolRuntimeResult;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=usePopupToolRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePopupToolRuntime.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,yBAAyB,GAAG;IAC/B,yBAAyB,EAAE,gCAAgC,CAAC;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,yBAAyB,CAsIlF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { usePopupsStore as a, deepShallow as I } from "@m4l/components";
|
|
2
|
+
import { useCallback as s, useMemo as w } from "react";
|
|
3
|
+
import { useMap as M } from "react-leaflet";
|
|
4
|
+
function H(h) {
|
|
5
|
+
const {
|
|
6
|
+
ToolComponent: u,
|
|
7
|
+
popupId: o,
|
|
8
|
+
iconUrl: c,
|
|
9
|
+
title: f,
|
|
10
|
+
defaultPosition: m
|
|
11
|
+
} = h, p = M(), { addPopup: g, bringPopupOnFront: l } = a((e) => e.popupsActions), { close: P, show: x } = a((e) => e.popupActions), { isHidden: n, isOpen: t } = a(
|
|
12
|
+
(e) => {
|
|
13
|
+
const b = e.popupsIds.filter((D) => e.hashPopups[D].status === "init");
|
|
14
|
+
return {
|
|
15
|
+
isHidden: e.popupsIds.indexOf(o) > -1 && b.indexOf(o) === -1,
|
|
16
|
+
isOpen: b.indexOf(o) > -1
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
I
|
|
20
|
+
), d = s((e) => {
|
|
21
|
+
p.dragging.enable(), e.stopPropagation(), document.removeEventListener("mouseup", d);
|
|
22
|
+
}, [p]), O = s((e) => {
|
|
23
|
+
p.dragging.disable(), e.stopPropagation(), document.addEventListener("mouseup", d);
|
|
24
|
+
}, [p.dragging, d]), r = s(() => {
|
|
25
|
+
if (u) {
|
|
26
|
+
if (n) {
|
|
27
|
+
x(o), l(o, !0);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (t) {
|
|
31
|
+
l(o, !0);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
g(
|
|
35
|
+
{
|
|
36
|
+
winType: "component",
|
|
37
|
+
popupId: o,
|
|
38
|
+
title: f,
|
|
39
|
+
iconUrl: c,
|
|
40
|
+
component: u,
|
|
41
|
+
onMouseDown: O,
|
|
42
|
+
defaultPosition: m
|
|
43
|
+
},
|
|
44
|
+
{ closeOthers: !1 }
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}, [
|
|
48
|
+
u,
|
|
49
|
+
g,
|
|
50
|
+
l,
|
|
51
|
+
m,
|
|
52
|
+
c,
|
|
53
|
+
n,
|
|
54
|
+
t,
|
|
55
|
+
O,
|
|
56
|
+
o,
|
|
57
|
+
x,
|
|
58
|
+
f
|
|
59
|
+
]), i = s(() => {
|
|
60
|
+
!t && !n || P(o);
|
|
61
|
+
}, [P, n, t, o]), C = s(() => {
|
|
62
|
+
if (t || n) {
|
|
63
|
+
i();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
r();
|
|
67
|
+
}, [i, n, t, r]);
|
|
68
|
+
return {
|
|
69
|
+
externalControllerContext: w(() => ({
|
|
70
|
+
closeDefault: i,
|
|
71
|
+
isHidden: n,
|
|
72
|
+
isOpen: t,
|
|
73
|
+
openDefault: r,
|
|
74
|
+
toggleDefault: C,
|
|
75
|
+
toolId: o
|
|
76
|
+
}), [
|
|
77
|
+
i,
|
|
78
|
+
n,
|
|
79
|
+
t,
|
|
80
|
+
r,
|
|
81
|
+
o,
|
|
82
|
+
C
|
|
83
|
+
]),
|
|
84
|
+
isDisabled: n,
|
|
85
|
+
isToggled: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
H as usePopupToolRuntime
|
|
90
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { useToolProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @param props
|
|
7
|
-
* @returns
|
|
3
|
+
* Small orchestration hook for popup-capable map tools.
|
|
4
|
+
* Popup runtime behavior lives in `usePopupToolRuntime`, while this hook only
|
|
5
|
+
* wires optional external control and the trigger click contract.
|
|
8
6
|
*/
|
|
9
7
|
export declare function useTool(props: useToolProps): {
|
|
10
8
|
onToolClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAKvC;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY;qBAwCL,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC;;;EA2BpF"}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{ closeOthers: !1 }
|
|
35
|
-
), o.stopPropagation());
|
|
36
|
-
}, [s, p, d, n, a, u, m, l, c]),
|
|
1
|
+
import { useMemo as u, useCallback as m } from "react";
|
|
2
|
+
import { useMapStore as g } from "../../../../../hooks/useMapStore/index.js";
|
|
3
|
+
import { useRegisterMapToolController as c } from "../../../../../hooks/useRegisterMapToolController.js";
|
|
4
|
+
import { usePopupToolRuntime as f } from "./usePopupToolRuntime.js";
|
|
5
|
+
import { shallow as T } from "zustand/shallow";
|
|
6
|
+
function v(n) {
|
|
7
|
+
const {
|
|
8
|
+
ToolComponent: e,
|
|
9
|
+
popupId: t,
|
|
10
|
+
externalController: o
|
|
11
|
+
} = n, { toggleTool: s } = g((r) => ({
|
|
12
|
+
toggleTool: r.mapActions.toggleTool
|
|
13
|
+
}), T), {
|
|
14
|
+
externalControllerContext: l,
|
|
15
|
+
isDisabled: a,
|
|
16
|
+
isToggled: p
|
|
17
|
+
} = f(n), i = u(() => {
|
|
18
|
+
if (!(!e || !o))
|
|
19
|
+
return o(l);
|
|
20
|
+
}, [e, o, l]);
|
|
21
|
+
return c(t, i, {
|
|
22
|
+
enabled: !!i,
|
|
23
|
+
scope: "default"
|
|
24
|
+
}), {
|
|
25
|
+
onToolClick: m((r) => {
|
|
26
|
+
e && (o ? s(t) : l.toggleDefault(), r.stopPropagation());
|
|
27
|
+
}, [
|
|
28
|
+
e,
|
|
29
|
+
o,
|
|
30
|
+
l,
|
|
31
|
+
t,
|
|
32
|
+
s
|
|
33
|
+
]),
|
|
37
34
|
isToggled: p,
|
|
38
|
-
isDisabled:
|
|
35
|
+
isDisabled: a
|
|
39
36
|
};
|
|
40
37
|
}
|
|
41
38
|
export {
|
|
42
|
-
|
|
39
|
+
v as useTool
|
|
43
40
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MapToolButton } from '../../../../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Builds the built-in zoom controls and keeps their disabled state aligned with
|
|
4
|
+
* the current Leaflet zoom bounds.
|
|
4
5
|
*/
|
|
5
6
|
export declare function useZoomBottons(): MapToolButton[];
|
|
6
7
|
//# sourceMappingURL=useZoomBottons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomBottons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD
|
|
1
|
+
{"version":3,"file":"useZoomBottons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,aAAa,EAAE,CAyDhD"}
|
|
@@ -1,51 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as u, useEffect as
|
|
3
|
-
import { useMap as
|
|
4
|
-
import { MAP_ICONS as
|
|
5
|
-
import { useEnvironment as
|
|
6
|
-
import { ZoomButtonStyled as
|
|
1
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as u, useEffect as O, useCallback as c, useMemo as M } from "react";
|
|
3
|
+
import { useMap as I } from "react-leaflet";
|
|
4
|
+
import { MAP_ICONS as l } from "../../../../../icons.js";
|
|
5
|
+
import { useEnvironment as _ } from "@m4l/core";
|
|
6
|
+
import { ZoomButtonStyled as p } from "../../../../../slots/styled.js";
|
|
7
7
|
function g() {
|
|
8
|
-
const o =
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const r = o.getZoom(),
|
|
12
|
-
|
|
8
|
+
const o = I(), { host_static_assets: t, environment_assets: n } = _(), [e, Z] = u(!1), [s, f] = u(!1);
|
|
9
|
+
O(() => {
|
|
10
|
+
const m = () => {
|
|
11
|
+
const r = o.getZoom(), z = o.getMaxZoom(), b = o.getMinZoom();
|
|
12
|
+
Z(r === z), f(r === b);
|
|
13
13
|
};
|
|
14
|
-
return o.on("zoomend",
|
|
15
|
-
o.off("zoomend",
|
|
14
|
+
return o.on("zoomend", m), m(), () => {
|
|
15
|
+
o.off("zoomend", m);
|
|
16
16
|
};
|
|
17
17
|
}, [o]);
|
|
18
|
-
const a =
|
|
18
|
+
const a = c(() => {
|
|
19
19
|
o.zoomIn();
|
|
20
|
-
}, [o]), i =
|
|
20
|
+
}, [o]), i = c(() => {
|
|
21
21
|
o.zoomOut();
|
|
22
22
|
}, [o]);
|
|
23
|
-
return
|
|
23
|
+
return M(() => [
|
|
24
24
|
{
|
|
25
25
|
id: "zoom-in",
|
|
26
26
|
type: "button",
|
|
27
|
-
ButtonComponent: /* @__PURE__ */
|
|
28
|
-
|
|
27
|
+
ButtonComponent: /* @__PURE__ */ d(
|
|
28
|
+
p,
|
|
29
29
|
{
|
|
30
30
|
onClick: a,
|
|
31
|
-
src: `${t}/${n}/frontend/components/map/assets/icons/${
|
|
32
|
-
disabled:
|
|
31
|
+
src: `${t}/${n}/frontend/components/map/assets/icons/${l.MAP_ZOOM_IN}`,
|
|
32
|
+
disabled: e,
|
|
33
|
+
"aria-label": "Zoom in",
|
|
34
|
+
"data-map-tool-id": "zoom-in",
|
|
35
|
+
dataTestId: "map-tool-zoom-in"
|
|
33
36
|
}
|
|
34
37
|
)
|
|
35
38
|
},
|
|
36
39
|
{
|
|
37
40
|
id: "zoom-out",
|
|
38
41
|
type: "button",
|
|
39
|
-
ButtonComponent: /* @__PURE__ */
|
|
40
|
-
|
|
42
|
+
ButtonComponent: /* @__PURE__ */ d(
|
|
43
|
+
p,
|
|
41
44
|
{
|
|
42
45
|
onClick: i,
|
|
43
|
-
src: `${t}/${n}/frontend/components/map/assets/icons/${
|
|
44
|
-
disabled:
|
|
46
|
+
src: `${t}/${n}/frontend/components/map/assets/icons/${l.MAP_ZOOM_OUT}`,
|
|
47
|
+
disabled: s,
|
|
48
|
+
"aria-label": "Zoom out",
|
|
49
|
+
"data-map-tool-id": "zoom-out",
|
|
50
|
+
dataTestId: "map-tool-zoom-out"
|
|
45
51
|
}
|
|
46
52
|
)
|
|
47
53
|
}
|
|
48
|
-
], [a, t, n,
|
|
54
|
+
], [a, t, n, e, i, s]);
|
|
49
55
|
}
|
|
50
56
|
export {
|
|
51
57
|
g as useZoomBottons
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Inserta los botones de herramientas en los controles del mapa
|
|
4
|
-
* @param props
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function ButtonsToolsList(props: ButtonsToolsListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
|
+
export * from './ButtonsToolsList';
|
|
8
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonToolProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Tool button responsible for rendering the control trigger and delegating the
|
|
4
|
+
* popup lifecycle to the shared popup store.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ButtonPopupTool(props: ButtonToolProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=ButtonPopupTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonPopupTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,2DAoBrD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTool as d } from "../../hooks/useTool.js";
|
|
3
|
+
import { ToggleIconButtonPopupToolStyled as u } from "../../../../../../slots/styled.js";
|
|
4
|
+
function c(o) {
|
|
5
|
+
const { ToolComponent: i, iconUrl: n, popupId: t, title: l } = o, { onToolClick: e, isDisabled: p, isToggled: r } = d(o);
|
|
6
|
+
return i ? /* @__PURE__ */ a(
|
|
7
|
+
u,
|
|
8
|
+
{
|
|
9
|
+
isToggled: r,
|
|
10
|
+
disabled: p,
|
|
11
|
+
onToggle: e,
|
|
12
|
+
icon: n,
|
|
13
|
+
tooltip: l,
|
|
14
|
+
"aria-label": l,
|
|
15
|
+
"data-map-tool-id": t,
|
|
16
|
+
dataTestId: `map-tool-${t}`
|
|
17
|
+
}
|
|
18
|
+
) : null;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
c as ButtonPopupTool
|
|
22
|
+
};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Boton de herramienta, se encarga de renderizar el boton de herramienta y gestionar el popup asociado.
|
|
4
|
-
*/
|
|
5
|
-
export declare function ButtonPopupTool(props: ButtonToolProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
export * from './ButtonPopupTool';
|
|
6
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapLayersTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapLayersTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,wBAAgB,aAAa,qDA6B5B"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMapLayersTool as i } from "./hooks/useMapLayersTool.js";
|
|
3
|
-
import { useDisableMapEventsOnMouseOver as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { GpsMapLayersToolRootStyled as
|
|
6
|
-
import { MapLayerRow as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { useDisableMapEventsOnMouseOver as p } from "../../../../../../hooks/useDisableMapEventsOnMouseOver/index.js";
|
|
4
|
+
import { useRef as c } from "react";
|
|
5
|
+
import { GpsMapLayersToolRootStyled as l } from "./slots/styled.js";
|
|
6
|
+
import { MapLayerRow as a } from "./subcomponents/MapLayerRow.js";
|
|
7
|
+
import { useMap as n } from "react-leaflet";
|
|
8
|
+
function F() {
|
|
9
|
+
const { layers: t, setCheckedLayers: r, removeLayer: u } = i(), o = c(null), m = n();
|
|
10
|
+
return p(m, o.current), /* @__PURE__ */ s(l, { ref: o, children: t.map((e) => /* @__PURE__ */ s(
|
|
11
|
+
a,
|
|
11
12
|
{
|
|
12
13
|
id: e.id,
|
|
13
14
|
name: e.name,
|
|
@@ -24,5 +25,5 @@ function A() {
|
|
|
24
25
|
)) });
|
|
25
26
|
}
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
F as MapLayersTool
|
|
28
29
|
};
|