@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
|
@@ -7,8 +7,8 @@ import { useModal as g, usePopupsStore as L, WindowConfirm as F } from "@m4l/com
|
|
|
7
7
|
import { useGpsMapToolsStore as k } from "../../../hooks/useGpsMapToolsStore/index.js";
|
|
8
8
|
import { shallow as E } from "zustand/shallow";
|
|
9
9
|
import { Form as y } from "../subcomponents/GeofenceAddEdit/Form.js";
|
|
10
|
-
import { GeofencesLayers as R, GEOFENCES_TOOL_DEFAULT_POSITION as
|
|
11
|
-
import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as
|
|
10
|
+
import { GeofencesLayers as R, GEOFENCES_TOOL_DEFAULT_POSITION as w } from "../constants.js";
|
|
11
|
+
import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as b } from "../subcomponents/GeofenceAddEdit/constants.js";
|
|
12
12
|
import { GPS_TOOLS_COMPONENT_PATH_ID as C } from "../../../constants.js";
|
|
13
13
|
function X(S) {
|
|
14
14
|
const { fullRefresh: s } = S, { networkOperation: c } = N(), { openModal: m, closeModal: p } = g(), { getLabel: e } = h(), { host_static_assets: l, environment_assets: _ } = M(), { addPopup: O } = L((o) => o.popupsActions, E), { hide: a } = L((o) => o.popupActions, E), { removeCheckedGeofence: u } = k((o) => o.geofenceActions, E), { toast: d } = $(), [i] = A(
|
|
@@ -18,13 +18,13 @@ function X(S) {
|
|
|
18
18
|
), T = r((o, t) => {
|
|
19
19
|
a(R.LAYER_GEOFENCES), O({
|
|
20
20
|
winType: "component",
|
|
21
|
-
popupId:
|
|
21
|
+
popupId: b,
|
|
22
22
|
title: e(n.MODULE_NAME_GEOFENCE_EDIT),
|
|
23
23
|
editionInfo: `${e(n.LABEL_ID)}:${o} - ${t} `,
|
|
24
24
|
componentProps: { fullRefresh: s, geofenceId: o },
|
|
25
25
|
component: y,
|
|
26
26
|
// onMouseDown,
|
|
27
|
-
defaultPosition:
|
|
27
|
+
defaultPosition: w,
|
|
28
28
|
iconUrl: i
|
|
29
29
|
}), u(o);
|
|
30
30
|
}, [s, O, e, a, u, i]), I = r((o) => {
|
|
@@ -64,7 +64,7 @@ function X(S) {
|
|
|
64
64
|
},
|
|
65
65
|
// Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
|
|
66
66
|
// disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
|
|
67
|
-
disabled: !o.
|
|
67
|
+
disabled: !o.userAuthOptions?.edit
|
|
68
68
|
}), t.push({
|
|
69
69
|
type: "menuItem",
|
|
70
70
|
startIcon: f,
|
|
@@ -75,7 +75,7 @@ function X(S) {
|
|
|
75
75
|
color: "error",
|
|
76
76
|
// Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
|
|
77
77
|
// disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
|
|
78
|
-
disabled: !o.
|
|
78
|
+
disabled: !o.userAuthOptions?.delete
|
|
79
79
|
}), t;
|
|
80
80
|
},
|
|
81
81
|
[e, T, D, f, i]
|
|
@@ -100,19 +100,19 @@ export interface GeofenceGetModel {
|
|
|
100
100
|
/**
|
|
101
101
|
* "devicesAssignmentType" tipo de asignacion de dispositivos a la geocerca
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
devicesAllocationTypeId: DevicesAssignmentType;
|
|
104
104
|
/**
|
|
105
105
|
* "assignmentDevices" dispositivos asignados a la geocerca
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
devicesAllocation?: DevicesListModel[];
|
|
108
108
|
/**
|
|
109
109
|
* "assignmentDepartments" departamentos asignados a la geocerca, si tier
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
departmentsAllocation?: DepartmentModel[];
|
|
112
112
|
createdAt: string;
|
|
113
113
|
updatedAt: string | null;
|
|
114
114
|
}
|
|
115
|
-
interface
|
|
115
|
+
interface UserAuthOptionsType {
|
|
116
116
|
activation: boolean;
|
|
117
117
|
delete: boolean;
|
|
118
118
|
edit: boolean;
|
|
@@ -125,12 +125,12 @@ export interface GeofenceListModel extends Omit<GeofenceGetModel, 'geometry' | '
|
|
|
125
125
|
* "geometry" geometría de la geocerca compatible con GeoJSON
|
|
126
126
|
*/
|
|
127
127
|
geometry: GeofenceGeometry | null;
|
|
128
|
-
|
|
128
|
+
userAuthOptions: UserAuthOptionsType;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Columnas de la lista de geocercas
|
|
132
132
|
*/
|
|
133
|
-
export type GeofenceListColumns = Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId' | 'createdAt' | 'updatedAt' | '
|
|
133
|
+
export type GeofenceListColumns = Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId' | 'createdAt' | 'updatedAt' | 'userAuthOptions'>;
|
|
134
134
|
/**
|
|
135
135
|
* Modelo de datos para enviar al endpoint de creacion de geocercas
|
|
136
136
|
*/
|
|
@@ -139,6 +139,14 @@ export interface GeofenceNewModel extends Pick<GeofenceGetModel, 'name' | 'geome
|
|
|
139
139
|
* "type" tipo de geocerca con idioma
|
|
140
140
|
*/
|
|
141
141
|
typeId: GeofenceTypeId;
|
|
142
|
+
/**
|
|
143
|
+
* "devicesAllocationTypeId" tipo de asignacion de dispositivos a la geocerca
|
|
144
|
+
*/
|
|
145
|
+
devicesAllocationTypeId: DevicesAssignmentType;
|
|
146
|
+
/***
|
|
147
|
+
* "devices_allocation_ids" ids de los dispositivos o departamentos asignados a la geocerca, dependiendo del tipo de asignacion elegido
|
|
148
|
+
*/
|
|
149
|
+
devicesAllocationIds?: number[];
|
|
142
150
|
}
|
|
143
151
|
/**
|
|
144
152
|
* Modelo de datos para enviar al endpoint de creacion de geocercas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,KAAK,EACL,OAAO,EACR,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAUzC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,YAAY,CAAC;AAG9D,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,KAAK,CAAC;AAC/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAExD,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,UAAU,GACV,UAAU,GACV,eAAe,CAAC;AACpB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAC7F,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,oBAAoB,GAAC,gBAAgB,CAAC;AACtF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,UAAU,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAC;IACpC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAG,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAgBrD;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,oBAAoB,oDA8C/C"}
|
|
@@ -1,48 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { RHFormProvider as
|
|
1
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RHFormProvider as c, Stepper as l, StepperContent as f, Step as r, Stack as d, StepperFooter as u, StepperFooterLeftActions as S, StepperFooterRightActions as h, StepperPrevButton as b, StepperNextButton as g, StepperSubmitButton as y } from "@m4l/components";
|
|
3
|
+
import { loadModuleOutsideChromatic as F } from "../../../../../../../../internal/storybookRuntime.js";
|
|
3
4
|
import { useSubmit as v } from "./hooks/useSubmit.js";
|
|
4
|
-
import { ConfigData as
|
|
5
|
-
import { GeneralData as
|
|
6
|
-
import { StyleData as
|
|
7
|
-
import
|
|
8
|
-
import { MyActionFormCancel as
|
|
9
|
-
import { AssignmentData as
|
|
10
|
-
import { ChooseAssignmentData as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return !0;
|
|
17
|
-
const r = e.location?.href ?? "", i = e.location?.hostname ?? "";
|
|
18
|
-
return /chromatic\.com/i.test(r) || /(^|\.)chromatic\.com$/i.test(i);
|
|
19
|
-
})();
|
|
20
|
-
typeof globalThis < "u" && !D && import("@geoman-io/leaflet-geoman-free");
|
|
21
|
-
function G(e) {
|
|
22
|
-
const { geofenceId: r } = e, { onSubmit: i } = v(e), { steps: m, formValues: s, statusLoad: a, validationSchema: c } = T(e);
|
|
23
|
-
return /* @__PURE__ */ t(
|
|
24
|
-
f,
|
|
5
|
+
import { ConfigData as x } from "./subcomponents/ConfigData/index.js";
|
|
6
|
+
import { GeneralData as A } from "./subcomponents/GeneralData/GeneralData.js";
|
|
7
|
+
import { StyleData as C } from "./subcomponents/StyleData/index.js";
|
|
8
|
+
import D from "./hooks/useForm.js";
|
|
9
|
+
import { MyActionFormCancel as I } from "./subcomponents/MyActionFormCancel/MyActionFormCancel.js";
|
|
10
|
+
import { AssignmentData as M } from "./subcomponents/AssignmentData/index.js";
|
|
11
|
+
import { ChooseAssignmentData as B } from "./subcomponents/ChooseAssignmentData/index.js";
|
|
12
|
+
F(() => import("@geoman-io/leaflet-geoman-free"));
|
|
13
|
+
function V(o) {
|
|
14
|
+
const { geofenceId: i } = o, { onSubmit: n } = v(o), { steps: m, formValues: s, statusLoad: a, validationSchema: p } = D(o);
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
c,
|
|
25
17
|
{
|
|
26
18
|
statusLoad: a,
|
|
27
|
-
onSubmit:
|
|
19
|
+
onSubmit: n,
|
|
28
20
|
values: s,
|
|
29
|
-
validationSchema:
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
21
|
+
validationSchema: p,
|
|
22
|
+
children: /* @__PURE__ */ t(l, { indicatorType: "dot", storeId: "form-geofence-add-edit", steps: m, orientation: "vertical", visibleTitle: !1, children: [
|
|
23
|
+
/* @__PURE__ */ t(f, { children: [
|
|
24
|
+
/* @__PURE__ */ e(r, { stepKey: "basic-information", children: /* @__PURE__ */ t(d, { direction: "column", gap: "8px", children: [
|
|
25
|
+
/* @__PURE__ */ e(A, {}),
|
|
26
|
+
/* @__PURE__ */ e(x, {}),
|
|
27
|
+
/* @__PURE__ */ e(B, {})
|
|
36
28
|
] }) }, "basic-information"),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ e(r, { stepKey: "assignment", children: /* @__PURE__ */ e(M, {}) }, "assignment"),
|
|
30
|
+
/* @__PURE__ */ e(r, { stepKey: "style-information", children: /* @__PURE__ */ e(C, {}) }, "style-information")
|
|
39
31
|
] }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ t(u, { children: [
|
|
33
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(I, { geofenceId: i }) }),
|
|
34
|
+
/* @__PURE__ */ t(h, { children: [
|
|
35
|
+
/* @__PURE__ */ e(b, { forceIsMobile: !0 }),
|
|
36
|
+
/* @__PURE__ */ e(g, { forceIsMobile: !0 }),
|
|
37
|
+
/* @__PURE__ */ e(y, { forceIsMobile: !0 })
|
|
46
38
|
] })
|
|
47
39
|
] })
|
|
48
40
|
] })
|
|
@@ -50,5 +42,5 @@ function G(e) {
|
|
|
50
42
|
);
|
|
51
43
|
}
|
|
52
44
|
export {
|
|
53
|
-
|
|
45
|
+
V as Form
|
|
54
46
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { STROKE_DASH_ARRAY_DEFAULT as e, STROKE_WHEIGTH_DEFAULT as
|
|
2
|
-
const _ = "geofencesAddEdit",
|
|
1
|
+
import { STROKE_DASH_ARRAY_DEFAULT as e, STROKE_WHEIGTH_DEFAULT as n, STROKE_OPACITY_DEFAULT as s, STROKE_COLOR_DEFAULT as l, FILL_OPACITY_DEFAULT as t, FILL_COLOR_DEFAULT as i } from "./subcomponents/StyleData/constants.js";
|
|
2
|
+
const _ = "geofencesAddEdit", T = {
|
|
3
3
|
/** General Data */
|
|
4
4
|
name: "",
|
|
5
5
|
geofenceTypeId: null,
|
|
@@ -19,17 +19,18 @@ const _ = "geofencesAddEdit", a = {
|
|
|
19
19
|
/** Style Data */
|
|
20
20
|
fillColor: i,
|
|
21
21
|
fillOpacity: t,
|
|
22
|
-
strokeColor:
|
|
23
|
-
strokeOpacity:
|
|
24
|
-
strokeWeight:
|
|
22
|
+
strokeColor: l,
|
|
23
|
+
strokeOpacity: s,
|
|
24
|
+
strokeWeight: n,
|
|
25
25
|
strokeDashArray: e
|
|
26
26
|
},
|
|
27
27
|
/** Assignment Data */
|
|
28
|
-
devicesAssignmentType: "
|
|
28
|
+
devicesAssignmentType: "dat_by_devices",
|
|
29
|
+
//Temporalmente mientras ingreso a geocercas.
|
|
29
30
|
assignmentDevices: [],
|
|
30
31
|
assignmentDepartments: []
|
|
31
32
|
};
|
|
32
33
|
export {
|
|
33
34
|
_ as GEOFENCES_TOOL_ADD_EDIT_POPUP_ID,
|
|
34
|
-
|
|
35
|
+
T as initialValues
|
|
35
36
|
};
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { initialValues as
|
|
2
|
-
import { FILL_COLOR_DEFAULT as
|
|
3
|
-
import * as
|
|
1
|
+
import { initialValues as p } from "./constants.js";
|
|
2
|
+
import { FILL_COLOR_DEFAULT as A, STROKE_COLOR_DEFAULT as _, STROKE_OPACITY_DEFAULT as c, STYLE_OPACITIES as g, STROKE_DASH_ARRAY_DEFAULT as d, STROKE_WHEIGTH_DEFAULT as m, STYLE_WHEIGHTS as T } from "./subcomponents/StyleData/constants.js";
|
|
3
|
+
import * as s from "leaflet";
|
|
4
4
|
import { STYLE_PATTERNS as E } from "../../constants.js";
|
|
5
|
-
const u = (r) => r === void 0 ? c :
|
|
5
|
+
const u = (r) => r === void 0 ? c : g.find((t) => t.id === r)?.id || c, L = (r) => r === void 0 ? m : T.find((t) => t.id === r)?.id || m, O = (r) => r === void 0 ? d : E.find((t) => t.id === r)?.id || d, h = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
const { data: t } = r,
|
|
8
|
-
...
|
|
7
|
+
const { data: t } = r, l = t?.devicesAllocationTypeId || "dat_all", e = {
|
|
8
|
+
...p,
|
|
9
9
|
...t,
|
|
10
|
-
chooseAssignmentType:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
assignmentDepartments: (t?.assignmentDepartments || []).map((i) => i.id),
|
|
10
|
+
chooseAssignmentType: l === "dat_all" ? "all" : "discriminate",
|
|
11
|
+
assignmentDevices: (t?.devicesAllocation || []).map((i) => i.id),
|
|
12
|
+
assignmentDepartments: (t?.departmentsAllocation || []).map((i) => i.id),
|
|
14
13
|
inEdition: !1,
|
|
15
14
|
geofenceTypeId: t.type.id,
|
|
16
15
|
properties: {
|
|
17
16
|
strokeColor: t.properties.strokeColor || _,
|
|
18
17
|
strokeOpacity: u(t.properties.strokeOpacity),
|
|
19
|
-
strokeWeight:
|
|
20
|
-
strokeDashArray:
|
|
21
|
-
fillColor: t.properties.fillColor ||
|
|
18
|
+
strokeWeight: L(t.properties.strokeWeight),
|
|
19
|
+
strokeDashArray: O(t.properties.strokeDashArray),
|
|
20
|
+
fillColor: t.properties.fillColor || A,
|
|
22
21
|
fillOpacity: u(t.properties.fillOpacity)
|
|
23
22
|
}
|
|
24
23
|
};
|
|
25
24
|
return e.geofenceTypeId === "gt_circle" && (t.properties.radius && (e.properties.radius = t.properties.radius), t.geometry && t.geometry.type === "Point" && (e.lng = t.geometry.coordinates[0], e.lat = t.geometry.coordinates[1])), e;
|
|
26
25
|
} catch {
|
|
27
|
-
return { ...
|
|
26
|
+
return { ...p };
|
|
28
27
|
}
|
|
29
|
-
}, R = (r, t,
|
|
28
|
+
}, R = (r, t, l, e) => {
|
|
30
29
|
if (r) {
|
|
31
30
|
if (t === "gt_circle" && r.type === "Point")
|
|
32
|
-
return
|
|
31
|
+
return s.circle([r.coordinates[1], r.coordinates[0]], {
|
|
33
32
|
...e,
|
|
34
|
-
radius:
|
|
33
|
+
radius: l || 0
|
|
35
34
|
});
|
|
36
35
|
if (t === "gt_polygon" && r.type === "Polygon") {
|
|
37
36
|
const i = r.coordinates.map(
|
|
38
|
-
(
|
|
37
|
+
(n) => n.map((a) => [a[1], a[0]])
|
|
39
38
|
);
|
|
40
|
-
return
|
|
39
|
+
return s.polygon(i, e);
|
|
41
40
|
} else {
|
|
42
41
|
if (t === "gt_multipolygon" && r.type === "MultiPolygon")
|
|
43
|
-
return
|
|
42
|
+
return s.geoJSON(r, e);
|
|
44
43
|
if (t === "gt_rectangle" && r.type === "Polygon") {
|
|
45
44
|
const i = r.coordinates[0].map(
|
|
46
45
|
(o) => [o[1], o[0]]
|
|
47
|
-
),
|
|
48
|
-
return
|
|
46
|
+
), n = i.map((o) => Array.isArray(o) ? o[0] : 0), a = i.map((o) => Array.isArray(o) ? o[1] : 0), f = [Math.min(...n), Math.min(...a)], y = [Math.max(...n), Math.max(...a)];
|
|
47
|
+
return s.rectangle([f, y], e);
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
}
|
|
@@ -54,7 +53,7 @@ const u = (r) => r === void 0 ? c : A.find((t) => t.id === r)?.id || c, D = (r)
|
|
|
54
53
|
export {
|
|
55
54
|
h as formatDataEndpoint,
|
|
56
55
|
u as getFormOpacityFromData,
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
L as getFormStrokeWeightFromData,
|
|
57
|
+
O as getFormstrokeDashArrayFromData,
|
|
59
58
|
R as getLayerFromGeometry
|
|
60
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAahF;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,oBAAoB;;;;;
|
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAahF;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,oBAAoB;;;;;CAqH3C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { useEffect as N, useMemo as
|
|
2
|
-
import { useWindowToolsMF as
|
|
3
|
-
import { useModuleDictionary as
|
|
4
|
-
import { useFormAddEdit as
|
|
5
|
-
import { useGpsMapToolsStore as
|
|
6
|
-
import { formatDataEndpoint as
|
|
7
|
-
import { ENDPOINT_GEOFENCES_GET as
|
|
1
|
+
import { useEffect as N, useMemo as v } from "react";
|
|
2
|
+
import { useWindowToolsMF as C, deepShallow as G, getStepsAndValidationSchema as y } from "@m4l/components";
|
|
3
|
+
import { useModuleDictionary as M, useEnvironment as g } from "@m4l/core";
|
|
4
|
+
import { useFormAddEdit as $ } from "@m4l/layouts";
|
|
5
|
+
import { useGpsMapToolsStore as l } from "../../../../../hooks/useGpsMapToolsStore/index.js";
|
|
6
|
+
import { formatDataEndpoint as p } from "../helpers.js";
|
|
7
|
+
import { ENDPOINT_GEOFENCES_GET as F } from "../../../constants.js";
|
|
8
8
|
import { initialValues as E } from "../constants.js";
|
|
9
|
-
import { MAP_GPSTOOLS_DICCTIONARY as
|
|
10
|
-
import { GeneralDataValidation as
|
|
11
|
-
import { MAP_GPSTOOLS_ICONS as
|
|
9
|
+
import { MAP_GPSTOOLS_DICCTIONARY as i } from "../../../../../dictionary.js";
|
|
10
|
+
import { GeneralDataValidation as R } from "../subcomponents/GeneralData/validations.js";
|
|
11
|
+
import { MAP_GPSTOOLS_ICONS as m } from "../../../../../icons.js";
|
|
12
12
|
import { GPS_TOOLS_COMPONENT_PATH_ID as d } from "../../../../../constants.js";
|
|
13
|
-
import { shallow as
|
|
13
|
+
import { shallow as D } from "zustand/shallow";
|
|
14
14
|
import { AssignmentDataValidation as h } from "../subcomponents/AssignmentData/validations.js";
|
|
15
15
|
const K = (S) => {
|
|
16
|
-
const { geofenceId: o } = S, { getLabel: t } =
|
|
16
|
+
const { geofenceId: o } = S, { getLabel: t } = M(), { host_static_assets: s, environment_assets: a } = g(), { startProgress: f, stopProgress: u } = C(), { addOrReplaceGeofence: A } = l((n) => n.geofenceActions, D), [T, _] = l((n) => {
|
|
17
17
|
if (o === void 0)
|
|
18
18
|
return [E, !1];
|
|
19
19
|
const e = n.geofenceState.hashGeofences[o];
|
|
20
|
-
if (e?.geometry && e?.
|
|
20
|
+
if (e?.geometry && (e?.devicesAllocation || e?.departmentsAllocation)) {
|
|
21
21
|
const O = {
|
|
22
22
|
data: {
|
|
23
23
|
type: e.type,
|
|
@@ -33,20 +33,20 @@ const K = (S) => {
|
|
|
33
33
|
bounds: e.bounds,
|
|
34
34
|
alias: e.alias,
|
|
35
35
|
customerId: e.customerId,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
devicesAllocationTypeId: e.devicesAllocationTypeId,
|
|
37
|
+
devicesAllocation: e.devicesAllocation,
|
|
38
|
+
departmentsAllocation: e.departmentsAllocation
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return [
|
|
41
|
+
return [p(O), !0];
|
|
42
42
|
} else
|
|
43
43
|
return [E, !1];
|
|
44
|
-
},
|
|
44
|
+
}, G), { formValues: r, statusLoad: c } = $({
|
|
45
45
|
objectId: o,
|
|
46
|
-
formatDataEndpoint:
|
|
47
|
-
initialValues:
|
|
46
|
+
formatDataEndpoint: p,
|
|
47
|
+
initialValues: T,
|
|
48
48
|
networkProps: {
|
|
49
|
-
endPoint: `${
|
|
49
|
+
endPoint: `${F}/${o}`,
|
|
50
50
|
responseToCamelCase: !0,
|
|
51
51
|
method: "GET",
|
|
52
52
|
options: {
|
|
@@ -54,26 +54,26 @@ const K = (S) => {
|
|
|
54
54
|
stopProgress: u
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
omitCallEnpoint:
|
|
57
|
+
omitCallEnpoint: _
|
|
58
58
|
});
|
|
59
59
|
N(() => {
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
const { steps: I, validationSchema: P } =
|
|
60
|
+
c === "ready" && o && r.createdAt && A(o, r);
|
|
61
|
+
}, [c, o, r]);
|
|
62
|
+
const { steps: I, validationSchema: P } = v(() => y({
|
|
63
63
|
visibilityData: void 0,
|
|
64
64
|
steps: [
|
|
65
65
|
{
|
|
66
66
|
key: "basic-information",
|
|
67
|
-
title: t(
|
|
68
|
-
description: t(
|
|
69
|
-
icon: `${
|
|
70
|
-
validationFunction: () =>
|
|
67
|
+
title: t(i.STEP_BASIC_INFORMATION),
|
|
68
|
+
description: t(i.STEP_BASIC_INFORMATION_DESCRIPTION),
|
|
69
|
+
icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_GENERAL}`,
|
|
70
|
+
validationFunction: () => R(t)
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
key: "assignment",
|
|
74
|
-
title: t(
|
|
75
|
-
description: t(
|
|
76
|
-
icon: `${
|
|
74
|
+
title: t(i.STEP_ASSIGNMENT),
|
|
75
|
+
description: t(i.STEP_ASSIGNMENT_DESCRIPTION),
|
|
76
|
+
icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_ASSIGNMENT}`,
|
|
77
77
|
validationFunction: () => h(t),
|
|
78
78
|
/**
|
|
79
79
|
* Visibility condition for the parts information, only show if the objectId and accountId are defined
|
|
@@ -82,14 +82,14 @@ const K = (S) => {
|
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
key: "style-information",
|
|
85
|
-
title: t(
|
|
86
|
-
description: t(
|
|
87
|
-
icon: `${
|
|
85
|
+
title: t(i.STEP_STYLE),
|
|
86
|
+
description: t(i.STEP_STYLE_DESCRIPTION),
|
|
87
|
+
icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_STYLE}`,
|
|
88
88
|
validationFunction: void 0
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
|
-
}), [t,
|
|
92
|
-
return { steps: I, formValues: r, statusLoad:
|
|
91
|
+
}), [t, s, a]);
|
|
92
|
+
return { steps: I, formValues: r, statusLoad: c, validationSchema: P };
|
|
93
93
|
};
|
|
94
94
|
export {
|
|
95
95
|
K as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgBnE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,YAAY,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"useSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgBnE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,YAAY,CAAC,CAAA;AAwCrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc;qBAaF,iBAAiB,GAAG,WAAW;EAwB3E"}
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { useHostTools as
|
|
2
|
-
import { ENDPOINT_GEOFENCES_NEW_EDIT as
|
|
3
|
-
import { useGpsMapToolsStore as
|
|
4
|
-
import { usePopupsStore as
|
|
5
|
-
import { shallow as
|
|
6
|
-
import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as
|
|
7
|
-
import { useCallback as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
name:
|
|
11
|
-
typeId:
|
|
12
|
-
geometry:
|
|
1
|
+
import { useHostTools as m, useNetwork as d } from "@m4l/core";
|
|
2
|
+
import { ENDPOINT_GEOFENCES_NEW_EDIT as f, GEOFENCES_TOOL_LIST_POPUP_ID as l } from "../../../constants.js";
|
|
3
|
+
import { useGpsMapToolsStore as O } from "../../../../../hooks/useGpsMapToolsStore/index.js";
|
|
4
|
+
import { usePopupsStore as y } from "@m4l/components";
|
|
5
|
+
import { shallow as I } from "zustand/shallow";
|
|
6
|
+
import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as S } from "../constants.js";
|
|
7
|
+
import { useCallback as T } from "react";
|
|
8
|
+
const _ = (e, t) => {
|
|
9
|
+
const o = {
|
|
10
|
+
name: e.name,
|
|
11
|
+
typeId: e.geofenceTypeId,
|
|
12
|
+
geometry: e.geometry,
|
|
13
13
|
properties: {
|
|
14
|
-
strokeColor:
|
|
15
|
-
strokeOpacity:
|
|
16
|
-
strokeWeight:
|
|
17
|
-
strokeDashArray:
|
|
18
|
-
fillColor:
|
|
19
|
-
fillOpacity:
|
|
14
|
+
strokeColor: e.properties.strokeColor,
|
|
15
|
+
strokeOpacity: e.properties.strokeOpacity,
|
|
16
|
+
strokeWeight: e.properties.strokeWeight,
|
|
17
|
+
strokeDashArray: e.properties.strokeDashArray,
|
|
18
|
+
fillColor: e.properties.fillColor,
|
|
19
|
+
fillOpacity: e.properties.fillOpacity
|
|
20
20
|
},
|
|
21
|
-
timeMinInSeconds:
|
|
22
|
-
timeMinOutSeconds:
|
|
23
|
-
alias:
|
|
24
|
-
customerId:
|
|
25
|
-
...
|
|
21
|
+
timeMinInSeconds: e.timeMinInSeconds,
|
|
22
|
+
timeMinOutSeconds: e.timeMinOutSeconds,
|
|
23
|
+
alias: e.alias,
|
|
24
|
+
customerId: e.customerId,
|
|
25
|
+
...t ? { geofenceId: t } : {},
|
|
26
|
+
devicesAllocationTypeId: "dat_all"
|
|
26
27
|
};
|
|
27
|
-
return
|
|
28
|
+
return e.geofenceTypeId === "gt_circle" && (o.properties.radius = e.properties.radius), e.chooseAssignmentType === "discriminate" && (o.devicesAllocationTypeId = "dat_by_devices", o.devicesAllocationIds = e.assignmentDevices.map((i) => parseInt(i))), o;
|
|
28
29
|
};
|
|
29
|
-
function
|
|
30
|
-
const { geofenceId:
|
|
31
|
-
return { onSubmit:
|
|
32
|
-
await
|
|
33
|
-
method:
|
|
34
|
-
endPoint: `${
|
|
35
|
-
data:
|
|
30
|
+
function A(e) {
|
|
31
|
+
const { geofenceId: t, fullRefresh: o } = e, { toast: i } = m(), { networkOperation: n } = d(), { close: c, show: p } = y((r) => r.popupActions), { addOrReplaceGeofence: a } = O((r) => r.geofenceActions, I);
|
|
32
|
+
return { onSubmit: T(async (r) => {
|
|
33
|
+
await n({
|
|
34
|
+
method: t ? "PATCH" : "POST",
|
|
35
|
+
endPoint: `${f}${t ? `/${t}` : ""}`,
|
|
36
|
+
data: _(r, t),
|
|
36
37
|
toastError: !0,
|
|
37
38
|
toastSuccess: !1,
|
|
38
39
|
bodyToSnakeCase: !0,
|
|
39
40
|
responseToCamelCase: !0
|
|
40
|
-
}).then((
|
|
41
|
-
|
|
41
|
+
}).then((s) => {
|
|
42
|
+
a(s.data.id, s.data, !0), o && o(), i({ title: s.message }, { type: "success" }), c(S, !1), p(l);
|
|
42
43
|
}).catch(() => {
|
|
43
44
|
});
|
|
44
|
-
}, [
|
|
45
|
+
}, [n, t, a, o, i, c, p]) };
|
|
45
46
|
}
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
A as useSubmit
|
|
48
49
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DevicesAssignmentType } from '../../../../model';
|
|
2
|
+
export type DevicesAssignmentNyDeviceOrDeparment = Exclude<DevicesAssignmentType, 'dat_all'>;
|
|
2
3
|
export interface FormAssignmentDataValues {
|
|
3
4
|
devicesAssignmentType: DevicesAssignmentType;
|
|
4
5
|
assignmentDevices: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,MAAM,MAAM,oCAAoC,GAAK,OAAO,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;AAG/F,MAAM,WAAW,wBAAwB;IACvC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,iBAAiB,EAAE,MAAM,EAAE,CAAE;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAE;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeofenceFeatureRender.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAcvF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"GeofenceFeatureRender.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAcvF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,0BAwLnC,CAAC"}
|
package/formatters/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../components/formatters';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|