@m4l/gclick 0.2.0 → 0.2.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/maps/components/GpsMap/GpsMap.js +3 -3
- package/components/maps/components/GpsMap/GpsMap.styles.js +74 -4
- package/components/maps/components/GpsMap/constants.d.ts +3 -1
- package/components/maps/components/GpsMap/constants.js +9 -41
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +5 -7
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +6 -21
- package/components/maps/components/GpsMap/dictionary.js +0 -4
- package/components/maps/components/GpsMap/external/MapControl/types.d.ts +1 -2
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +3 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +13 -15
- package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/index.d.ts +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/subcomponents/FeatureDivIconLabel/index.js +33 -0
- package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/types.d.ts +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +1 -2
- package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
- package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +5 -4
- package/components/maps/components/GpsMap/icons.js +0 -5
- package/components/maps/components/GpsMap/slots/slots.d.ts +2 -2
- package/components/maps/components/GpsMap/slots/slots.js +2 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.d.ts +23 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.js +32 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +0 -12
- package/components/maps/components/GpsMap/subcomponents/Controls/index.js +7 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +41 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/types.d.ts +2 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.js +9 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +61 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.js +38 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/index.js +4 -6
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.js +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/types.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
- package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.js +2 -2
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.d.ts +1 -1
- package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.js +3 -39
- package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.d.ts +1 -1
- package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.js +1 -1
- package/components/maps/components/GpsMap/types.d.ts +95 -8
- package/components/maps/components/GpsMapTools/constants.d.ts +1 -5
- package/components/maps/components/GpsMapTools/constants.js +2 -69
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.d.ts +21 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js +20 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +1 -21
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +1 -48
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +1 -1
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +54 -58
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +20 -79
- package/components/maps/components/GpsMapTools/dictionary.d.ts +67 -53
- package/components/maps/components/GpsMapTools/dictionary.js +58 -50
- package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +1 -1
- package/components/maps/components/GpsMapTools/icons.d.ts +58 -17
- package/components/maps/components/GpsMapTools/icons.js +45 -18
- package/components/maps/components/GpsMapTools/index.d.ts +4 -5
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js +16 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.d.ts +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.js +52 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +17 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.js +88 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts +27 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.js +79 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.d.ts +16 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +57 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.d.ts +19 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.js +57 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.js +32 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.js +20 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLayers.js +32 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.js +104 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +7 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.js +39 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.d.ts +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.js +55 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.d.ts +2 -2
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.js +30 -35
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.d.ts +18 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.js +70 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.d.ts +17 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.js +48 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/index.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents → GeofencesTool}/model.d.ts +40 -12
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +45 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +3 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +31 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.d.ts +6 -15
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.js +32 -15
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +108 -85
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts +10 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +98 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +1 -3
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +23 -24
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +6 -3
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +67 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.js +78 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.d.ts +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.js +43 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +6 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +3 -1
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +6 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.js +19 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.js +64 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +2 -2
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +7 -10
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.d.ts +11 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.js +19 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.js +17 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +15 -22
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/types.d.ts +17 -11
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.js +163 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/constants.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.d.ts +17 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.js +35 -0
- package/components/maps/components/GpsMapTools/types.d.ts +0 -18
- package/components/maps/index.d.ts +1 -1
- package/index.js +65 -66
- package/package.json +3 -2
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +0 -4
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +0 -263
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +0 -33
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +0 -10
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +0 -10
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.js +0 -52
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +0 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +0 -58
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +0 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +0 -4
- package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +0 -5
- package/components/maps/components/GpsMapTools/GpsMapTools.js +0 -10
- package/components/maps/components/GpsMapTools/classes/index.d.ts +0 -7
- package/components/maps/components/GpsMapTools/classes/index.js +0 -21
- package/components/maps/components/GpsMapTools/classes/types.d.ts +0 -14
- package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +0 -57
- package/components/maps/components/GpsMapTools/styles.d.ts +0 -1
- package/components/maps/components/GpsMapTools/styles.js +0 -18
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +0 -9
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +0 -84
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +0 -40
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +0 -36
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +0 -5
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +0 -71
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +0 -1
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +0 -8
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +0 -51
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -128
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -5
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +0 -55
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +0 -76
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +0 -7
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +0 -86
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -7
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +0 -85
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -12
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +0 -111
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -22
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +0 -164
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +0 -73
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +0 -1
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +0 -8
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -9
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +0 -49
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +0 -7
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +0 -13
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +0 -7
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/model.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.js +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/types.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/{hooks/useLayers/index.d.ts → subcomponents/GeofencesTool/hooks/useLayers.d.ts} +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.js +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.d.ts} +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel}/types.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -0
- /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -0
|
@@ -1,64 +1,72 @@
|
|
|
1
|
-
import { getDataGridComponentsDictionary, getRHFAutocompleteComponentsDictionary, getDynamicFilterComponentsDictionary } from "@m4l/components";
|
|
2
|
-
const MAPGPSTOOLS_DICTIONARY_ID = "
|
|
1
|
+
import { getDataGridComponentsDictionary, getRHFAutocompleteComponentsDictionary, getDynamicFilterComponentsDictionary, getDynamicSortComponentsDictionary } from "@m4l/components";
|
|
2
|
+
const MAPGPSTOOLS_DICTIONARY_ID = "map_gps_tools";
|
|
3
3
|
function getGpsMapToolsComponentsDictionary() {
|
|
4
4
|
return [MAPGPSTOOLS_DICTIONARY_ID].concat(
|
|
5
|
-
getDataGridComponentsDictionary().concat(getRHFAutocompleteComponentsDictionary()).concat(getDynamicFilterComponentsDictionary())
|
|
5
|
+
getDataGridComponentsDictionary().concat(getRHFAutocompleteComponentsDictionary()).concat(getDynamicFilterComponentsDictionary()).concat(getDynamicSortComponentsDictionary())
|
|
6
6
|
);
|
|
7
7
|
}
|
|
8
8
|
const MAP_GPSTOOLS_DICCTIONARY = {
|
|
9
9
|
/** Common */
|
|
10
|
+
STEP_BASIC_INFORMATION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_basic_information`,
|
|
11
|
+
STEP_BASIC_INFORMATION_DESCRIPTION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_basic_information_description`,
|
|
12
|
+
STEP_STYLE: `${MAPGPSTOOLS_DICTIONARY_ID}.step_style`,
|
|
13
|
+
STEP_STYLE_DESCRIPTION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_style_description`,
|
|
10
14
|
/** GeofenceList */
|
|
11
|
-
MODULE_NAME_GEOFENCE_ADD:
|
|
12
|
-
MODULE_NAME_GEOFENCE_EDIT:
|
|
15
|
+
MODULE_NAME_GEOFENCE_ADD: `${MAPGPSTOOLS_DICTIONARY_ID}.module_name_geofence_add`,
|
|
16
|
+
MODULE_NAME_GEOFENCE_EDIT: `${MAPGPSTOOLS_DICTIONARY_ID}.module_name_geofence_edit`,
|
|
13
17
|
// Row Actions
|
|
14
|
-
ROW_ACTION_GEO_EDIT:
|
|
18
|
+
ROW_ACTION_GEO_EDIT: `${MAPGPSTOOLS_DICTIONARY_ID}.row_action_geo_edit`,
|
|
15
19
|
// ROW_ACTION_GEO_ENABLE: 'row_action_geo_enable',
|
|
16
20
|
// ROW_ACTION_GEO_DISABLE: 'row_action_geo_disable',
|
|
17
|
-
ROW_ACTION_GEO_DELETE:
|
|
21
|
+
ROW_ACTION_GEO_DELETE: `${MAPGPSTOOLS_DICTIONARY_ID}.row_action_geo_delete`,
|
|
18
22
|
/** GeofenceAddEdit */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
23
|
+
LABEL_GEOFENCES: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geofences`,
|
|
24
|
+
LABEL_TAB_FILTERED: `${MAPGPSTOOLS_DICTIONARY_ID}.label_tab_filtered`,
|
|
25
|
+
LABEL_TAB_SELECTED: `${MAPGPSTOOLS_DICTIONARY_ID}.label_tab_selected`,
|
|
26
|
+
PAPER_GENERAL: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_general`,
|
|
27
|
+
LABEL_ID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_id`,
|
|
28
|
+
LABEL_NAME: `${MAPGPSTOOLS_DICTIONARY_ID}.label_name`,
|
|
29
|
+
LABEL_ALIAS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_alias`,
|
|
30
|
+
LABEL_CUSTOMER_ID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_customer_id`,
|
|
31
|
+
LABEL_GEOMETRY_TYPE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_type`,
|
|
32
|
+
LABEL_GEOMETRY_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_circle`,
|
|
33
|
+
LABEL_GEOMETRY_RECTANGLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_rectangle`,
|
|
34
|
+
LABEL_GEOMETRY_POLYGON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_polygon`,
|
|
35
|
+
LABEL_GEOMETRY_MULTIPOLYGON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_multipolygon`,
|
|
36
|
+
LABEL_DRAW: `${MAPGPSTOOLS_DICTIONARY_ID}.label_draw`,
|
|
37
|
+
LABEL_FINISH: `${MAPGPSTOOLS_DICTIONARY_ID}.label_finish`,
|
|
38
|
+
PAPER_CONFIG: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_config`,
|
|
39
|
+
LABEL_TIME_MIN_IN: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_min_in`,
|
|
40
|
+
LABEL_TIME_MIN_OUT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_min_out`,
|
|
41
|
+
LABEL_TIME_UNIT_SECONDS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_unit_seconds`,
|
|
42
|
+
PAPER_STROKE: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_stroke`,
|
|
43
|
+
LABEL_COLOR: `${MAPGPSTOOLS_DICTIONARY_ID}.label_color`,
|
|
44
|
+
LABEL_OPACITY: `${MAPGPSTOOLS_DICTIONARY_ID}.label_opacity`,
|
|
45
|
+
LABEL_WEIGHT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_weight`,
|
|
46
|
+
LABEL_DASH_ARRAY: `${MAPGPSTOOLS_DICTIONARY_ID}.label_dash_array`,
|
|
47
|
+
PAPER_FILL: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_fill`,
|
|
48
|
+
LABEL_RADIUS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_radius`,
|
|
49
|
+
LABEL_LAT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_lat`,
|
|
50
|
+
LABEL_LON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_lon`,
|
|
51
|
+
LABEL_GEOMAN_FIRST_VERTEX: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_first_vertex`,
|
|
52
|
+
LABEL_GEOMAN_CONTINUE_LINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_continue_line`,
|
|
53
|
+
LABEL_GEOMAN_FINISH_LINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_line`,
|
|
54
|
+
LABEL_GEOMAN_FINISH_POLYLINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_polyline`,
|
|
55
|
+
LABEL_GEOMAN_FINISH_RECT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_rect`,
|
|
56
|
+
LABEL_GEOMAN_START_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_start_circle`,
|
|
57
|
+
LABEL_GEOMAN_FINISH_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_circle`,
|
|
58
|
+
LABEL_GEOMAN_PLACE_CIRCLE_MARKER: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_place_circle_marker`,
|
|
59
|
+
LABEL_STROKE_PATTERN_SOLID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_stroke_pattern_solid`,
|
|
60
|
+
LABEL_STROKE_PATTERN_DASH: `${MAPGPSTOOLS_DICTIONARY_ID}.label_stroke_pattern_dash`,
|
|
61
|
+
VALIDATION_GEOMETRY_REQUIRED: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_geometry_required`,
|
|
62
|
+
VALIDATION_FIELD_REQUIRED: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_required`,
|
|
63
|
+
VALIDATION_IS_IN_EDITION: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_is_in_edition`,
|
|
64
|
+
VALIDATION_FIELD_TYPE_NUMBER_ERROR: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_type_number_error`,
|
|
65
|
+
VALIDATION_FIELD_MIN_NUMBER_ERROR: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_min_number_error`,
|
|
66
|
+
LABEL_CREATED_AT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_created_at`,
|
|
67
|
+
LABEL_UPDATED_AT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_updated_at`,
|
|
68
|
+
MODAL_DELETE_GEO_TITLE: `${MAPGPSTOOLS_DICTIONARY_ID}.modal_delete_geo_title`,
|
|
69
|
+
MODAL_DELETE_GEO_MESSAGE: `${MAPGPSTOOLS_DICTIONARY_ID}.modal_delete_geo_message`
|
|
62
70
|
};
|
|
63
71
|
export {
|
|
64
72
|
MAP_GPSTOOLS_DICCTIONARY as M,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { G as GpsMapToolsContext } from "../../contexts/GpsMapToolsContext/
|
|
3
|
+
import { G as GpsMapToolsContext } from "../../contexts/GpsMapToolsContext/GpsMapToolsContext.js";
|
|
4
4
|
function useGpsMapToolsStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(GpsMapToolsContext);
|
|
6
6
|
if (!context) {
|
|
@@ -1,23 +1,64 @@
|
|
|
1
1
|
export declare const MAP_GPSTOOLS_ICONS: {
|
|
2
|
+
GEOFENCES_PAPER_GENERAL: string;
|
|
3
|
+
GEOFENCES_PAPER_STYLE: string;
|
|
4
|
+
GEOFENCES_PAPER_ASSIGNMENT: string;
|
|
2
5
|
/**
|
|
3
6
|
* GpsTools
|
|
4
7
|
*/
|
|
5
|
-
|
|
8
|
+
GEOFENCES_TOOL: string;
|
|
6
9
|
GEOFENCES: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
GEOFENCES_ID: string;
|
|
11
|
+
GEOFENCES_NAME: string;
|
|
12
|
+
GEOFENCES_ADD: string;
|
|
13
|
+
GEOFENCES_EDIT: string;
|
|
14
|
+
GEOFENCES_DELETE: string;
|
|
15
|
+
GEOFENCES_GENERAL: string;
|
|
16
|
+
GEOFENCES_DATA: string;
|
|
17
|
+
GEOFENCES_STYLE: string;
|
|
18
|
+
GEOFENCES_DRAW: string;
|
|
19
|
+
GEOFENCES_FINISH: string;
|
|
20
|
+
GEOFENCES_TYPE_CIRCLE: string;
|
|
21
|
+
GEOFENCES_TYPE_RECTANGLE: string;
|
|
22
|
+
GEOFENCES_TYPE_POLYGON: string;
|
|
23
|
+
GEOFENCES_TYPE_MULTIPOLYGON: string;
|
|
24
|
+
GEOFENCES_TYPE_NOT_RECOGNIZED: string;
|
|
25
|
+
GEOFENCES_TIME_MIN_IN: string;
|
|
26
|
+
GEOFENCES_TIME_MIN_OUT: string;
|
|
27
|
+
GEOFENCES_STROKE_WEIGHT_1: string;
|
|
28
|
+
GEOFENCES_STROKE_WEIGHT_2: string;
|
|
29
|
+
GEOFENCES_STROKE_WEIGHT_4: string;
|
|
30
|
+
GEOFENCES_STROKE_PATTERN_SOLID: string;
|
|
31
|
+
GEOFENCES_STROKE_PATTERN_DASH: string;
|
|
32
|
+
GEOFENCES_CONFIG: string;
|
|
33
|
+
GEOFENCES_STROKE: string;
|
|
34
|
+
GEOFENCES_FILL: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const GEOFENCES_TYPE_ID: {
|
|
37
|
+
POLYGON: string;
|
|
38
|
+
CIRCLE: string;
|
|
39
|
+
RECTANGLE: string;
|
|
40
|
+
MULTIPOLYGON: string;
|
|
41
|
+
NOT_RECOGNIZED: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const GEOFENCES_TYPE_ICONS: {
|
|
44
|
+
[GEOFENCES_TYPE_ID.POLYGON]: {
|
|
45
|
+
icon: string;
|
|
46
|
+
dictionaryId: "map_gps_tools.label_geometry_polygon";
|
|
47
|
+
};
|
|
48
|
+
[GEOFENCES_TYPE_ID.MULTIPOLYGON]: {
|
|
49
|
+
icon: string;
|
|
50
|
+
dictionaryId: "map_gps_tools.label_geometry_multipolygon";
|
|
51
|
+
};
|
|
52
|
+
[GEOFENCES_TYPE_ID.CIRCLE]: {
|
|
53
|
+
icon: string;
|
|
54
|
+
dictionaryId: "map_gps_tools.label_geometry_circle";
|
|
55
|
+
};
|
|
56
|
+
[GEOFENCES_TYPE_ID.RECTANGLE]: {
|
|
57
|
+
icon: string;
|
|
58
|
+
dictionaryId: "map_gps_tools.label_geometry_rectangle";
|
|
59
|
+
};
|
|
60
|
+
[GEOFENCES_TYPE_ID.NOT_RECOGNIZED]: {
|
|
61
|
+
icon: string;
|
|
62
|
+
dictionaryId: undefined;
|
|
63
|
+
};
|
|
23
64
|
};
|
|
@@ -1,22 +1,49 @@
|
|
|
1
|
+
import { M as MAP_GPSTOOLS_DICCTIONARY } from "./dictionary.js";
|
|
1
2
|
const MAP_GPSTOOLS_ICONS = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
GEOFENCES_PAPER_GENERAL: "geofences_general_information.svg",
|
|
4
|
+
GEOFENCES_PAPER_STYLE: "geofences_style.svg",
|
|
5
|
+
/**
|
|
6
|
+
* GpsTools
|
|
7
|
+
*/
|
|
8
|
+
GEOFENCES_TOOL: "geofences_geofence.svg",
|
|
9
|
+
GEOFENCES_ID: "geofences_id.svg",
|
|
10
|
+
GEOFENCES_NAME: "geofences_name.svg",
|
|
11
|
+
GEOFENCES_ADD: "geofences_add.svg",
|
|
12
|
+
GEOFENCES_EDIT: "geofences_edit.svg",
|
|
13
|
+
GEOFENCES_DELETE: "geofences_delete.svg",
|
|
14
|
+
GEOFENCES_GENERAL: "geofences_general.svg",
|
|
15
|
+
GEOFENCES_TYPE_CIRCLE: "geofences_circle.svg",
|
|
16
|
+
GEOFENCES_TYPE_RECTANGLE: "geofences_rectangle.svg",
|
|
17
|
+
GEOFENCES_TYPE_POLYGON: "geofences_polygon.svg",
|
|
18
|
+
GEOFENCES_TYPE_MULTIPOLYGON: "geofences_multiple_polygon.svg",
|
|
19
|
+
GEOFENCES_TYPE_NOT_RECOGNIZED: "geofences_not_recognized.svg",
|
|
20
|
+
GEOFENCES_TIME_MIN_IN: "geofences_entry.svg",
|
|
21
|
+
GEOFENCES_TIME_MIN_OUT: "geofences_exit.svg",
|
|
22
|
+
GEOFENCES_STROKE_WEIGHT_1: "geofences_weight_1px.svg",
|
|
23
|
+
GEOFENCES_STROKE_WEIGHT_2: "geofences_weight_2px.svg",
|
|
24
|
+
GEOFENCES_STROKE_WEIGHT_4: "geofences_weight_4px.svg",
|
|
25
|
+
GEOFENCES_STROKE_PATTERN_SOLID: "geofences_stroke_solid.svg",
|
|
26
|
+
GEOFENCES_STROKE_PATTERN_DASH: "geofences_stroke_dash.svg",
|
|
27
|
+
GEOFENCES_CONFIG: "geofences_configuration.svg",
|
|
28
|
+
GEOFENCES_STROKE: "geofences_stroke.svg",
|
|
29
|
+
GEOFENCES_FILL: "geofences_fill.svg"
|
|
30
|
+
};
|
|
31
|
+
const GEOFENCES_TYPE_ID = {
|
|
32
|
+
POLYGON: "gt_polygon",
|
|
33
|
+
CIRCLE: "gt_circle",
|
|
34
|
+
RECTANGLE: "gt_rectangle",
|
|
35
|
+
MULTIPOLYGON: "gt_multipolygon",
|
|
36
|
+
NOT_RECOGNIZED: "not_recognized"
|
|
37
|
+
};
|
|
38
|
+
const GEOFENCES_TYPE_ICONS = {
|
|
39
|
+
[GEOFENCES_TYPE_ID.POLYGON]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_POLYGON, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_POLYGON },
|
|
40
|
+
[GEOFENCES_TYPE_ID.MULTIPOLYGON]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_MULTIPOLYGON, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_MULTIPOLYGON },
|
|
41
|
+
[GEOFENCES_TYPE_ID.CIRCLE]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_CIRCLE, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_CIRCLE },
|
|
42
|
+
[GEOFENCES_TYPE_ID.RECTANGLE]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_RECTANGLE, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_RECTANGLE },
|
|
43
|
+
[GEOFENCES_TYPE_ID.NOT_RECOGNIZED]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_NOT_RECOGNIZED, dictionaryId: void 0 }
|
|
19
44
|
};
|
|
20
45
|
export {
|
|
21
|
-
|
|
46
|
+
GEOFENCES_TYPE_ICONS as G,
|
|
47
|
+
MAP_GPSTOOLS_ICONS as M,
|
|
48
|
+
GEOFENCES_TYPE_ID as a
|
|
22
49
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export type { GpsMapToolsType } from './GpsMapTools';
|
|
1
|
+
export { GeofencesTool } from './subcomponents/GeofencesTool/GeofencesTool';
|
|
2
|
+
export * from './contexts/GpsMapToolsContext';
|
|
3
|
+
export { GEOFENCES_TOOL } from './subcomponents/GeofencesTool/constants';
|
|
4
|
+
export { getGpsMapToolsComponentsDictionary } from './dictionary';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { u as useMaster } from "./hooks/useMaster.js";
|
|
3
|
+
import { DynamicTabs } from "@m4l/layouts";
|
|
4
|
+
function GeofencesTool() {
|
|
5
|
+
const { tabs, defaultTab } = useMaster();
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
DynamicTabs,
|
|
8
|
+
{
|
|
9
|
+
tabs,
|
|
10
|
+
defaultTab
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
GeofencesTool as G
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PositionMapTool } from '../../../GpsMap/types';
|
|
2
|
+
import { RNDDefaultPosition } from '@m4l/components';
|
|
3
|
+
import { StyleDashArray } from './model';
|
|
4
|
+
export declare const ENDPOINT_GEOFENCES_GET = "geofences";
|
|
5
|
+
export declare const ENDPOINT_GEOFENCES_NEW_EDIT = "geofences";
|
|
6
|
+
export declare const GEOFENCES_TOOL_LIST_POPUP_ID = "geofences";
|
|
7
|
+
export declare enum GeofencesLayers {
|
|
8
|
+
LAYER_GEOFENCES = "geofences"
|
|
9
|
+
}
|
|
10
|
+
export declare const GEOFENCES_TOOL: PositionMapTool;
|
|
11
|
+
export declare const GEOFENCES_TOOL_DEFAULT_POSITION: RNDDefaultPosition;
|
|
12
|
+
export declare const STYLE_PATTERNS: StyleDashArray[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../constants.js";
|
|
2
|
+
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../dictionary.js";
|
|
3
|
+
import { M as MAP_GPSTOOLS_ICONS } from "../../icons.js";
|
|
4
|
+
import { G as GeofencesTool } from "./GeofencesTool.js";
|
|
5
|
+
const ENDPOINT_GEOFENCES_GET = "geofences";
|
|
6
|
+
const ENDPOINT_GEOFENCES_NEW_EDIT = "geofences";
|
|
7
|
+
const GEOFENCES_TOOL_LIST_POPUP_ID = "geofences";
|
|
8
|
+
var GeofencesLayers = /* @__PURE__ */ ((GeofencesLayers2) => {
|
|
9
|
+
GeofencesLayers2[GeofencesLayers2["LAYER_GEOFENCES"] = GEOFENCES_TOOL_LIST_POPUP_ID] = "LAYER_GEOFENCES";
|
|
10
|
+
return GeofencesLayers2;
|
|
11
|
+
})(GeofencesLayers || {});
|
|
12
|
+
const GEOFENCES_TOOL = {
|
|
13
|
+
position: "topright",
|
|
14
|
+
type: "popup",
|
|
15
|
+
isInternal: true,
|
|
16
|
+
componentPathId: GPS_TOOLS_COMPONENT_PATH_ID,
|
|
17
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_TOOL,
|
|
18
|
+
id: GEOFENCES_TOOL_LIST_POPUP_ID,
|
|
19
|
+
dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOFENCES,
|
|
20
|
+
popupDefaultPosition: {
|
|
21
|
+
vertical: { top: 16, bottom: 50 },
|
|
22
|
+
horizontal: { right: -55, width: 380, magnetize: true }
|
|
23
|
+
},
|
|
24
|
+
PopupContentComponent: GeofencesTool
|
|
25
|
+
};
|
|
26
|
+
const GEOFENCES_TOOL_DEFAULT_POSITION = {
|
|
27
|
+
vertical: { top: 16, bottom: 50 },
|
|
28
|
+
horizontal: { right: -55, width: 380, magnetize: true }
|
|
29
|
+
};
|
|
30
|
+
const STYLE_PATTERNS = [
|
|
31
|
+
{
|
|
32
|
+
id: "solid",
|
|
33
|
+
dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_STROKE_PATTERN_SOLID,
|
|
34
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_PATTERN_SOLID,
|
|
35
|
+
style: ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "dash",
|
|
39
|
+
dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_STROKE_PATTERN_DASH,
|
|
40
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_PATTERN_DASH,
|
|
41
|
+
style: "4 8"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
export {
|
|
45
|
+
ENDPOINT_GEOFENCES_GET as E,
|
|
46
|
+
GeofencesLayers as G,
|
|
47
|
+
STYLE_PATTERNS as S,
|
|
48
|
+
GEOFENCES_TOOL_DEFAULT_POSITION as a,
|
|
49
|
+
ENDPOINT_GEOFENCES_NEW_EDIT as b,
|
|
50
|
+
GEOFENCES_TOOL_LIST_POPUP_ID as c,
|
|
51
|
+
GEOFENCES_TOOL as d
|
|
52
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeofenceStyleProperties, StyleProperties } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* Retorna el estilo de la patrón de trazo
|
|
4
|
+
*/
|
|
5
|
+
export declare const getStylePatternFromId: (id: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Retorna el estilo para Leaflet basado en las propiedades de la geocerca, que vienen de la base de datos
|
|
8
|
+
*/
|
|
9
|
+
export declare const getStyleFromProperties: (properties: GeofenceStyleProperties) => StyleProperties;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { S as STYLE_PATTERNS } from "./constants.js";
|
|
2
|
+
const getStylePatternFromId = (id) => {
|
|
3
|
+
return STYLE_PATTERNS.find((style) => style.id === id)?.style || STYLE_PATTERNS[0].style;
|
|
4
|
+
};
|
|
5
|
+
const getStyleFromProperties = (properties) => {
|
|
6
|
+
return {
|
|
7
|
+
fillColor: properties.fillColor,
|
|
8
|
+
fillOpacity: properties.fillOpacity,
|
|
9
|
+
color: properties.strokeColor,
|
|
10
|
+
opacity: properties.strokeOpacity,
|
|
11
|
+
weight: properties.strokeWeight,
|
|
12
|
+
dashArray: getStylePatternFromId(properties.strokeDashArray)
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
getStyleFromProperties as g
|
|
17
|
+
};
|
package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
|
+
import { useCallback, useMemo } from "react";
|
|
3
|
+
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../dictionary.js";
|
|
4
|
+
import { useColumnDate, useColumnIcon, DATAGRID_SEMANTIC_WIDTHS } from "@m4l/components";
|
|
5
|
+
import { G as GEOFENCES_TYPE_ICONS, a as GEOFENCES_TYPE_ID } from "../../../icons.js";
|
|
6
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../constants.js";
|
|
7
|
+
function useColumns() {
|
|
8
|
+
const { getLabel } = useModuleDictionary();
|
|
9
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
+
const createdAtColumn = useColumnDate({ fieldValue: "createdAt", presentationType: "datetime" });
|
|
11
|
+
const updatedAtColumn = useColumnDate({ fieldValue: "updatedAt", presentationType: "datetime" });
|
|
12
|
+
const geometryTypeColumn = useColumnIcon(
|
|
13
|
+
{
|
|
14
|
+
getIconProps: useCallback((row) => {
|
|
15
|
+
if (!row) {
|
|
16
|
+
return {
|
|
17
|
+
iconUrl: "",
|
|
18
|
+
tooltip: "",
|
|
19
|
+
dataTestId: ""
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const type = GEOFENCES_TYPE_ICONS[row.type.id] ? GEOFENCES_TYPE_ICONS[row.type.id] : GEOFENCES_TYPE_ICONS[GEOFENCES_TYPE_ID.NOT_RECOGNIZED];
|
|
23
|
+
const tooltip = type?.dictionaryId ? getLabel(type.dictionaryId) : void 0;
|
|
24
|
+
return {
|
|
25
|
+
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${type.icon}`,
|
|
26
|
+
tooltip,
|
|
27
|
+
dataTestId: `geofence-type-${row.type.id}`
|
|
28
|
+
};
|
|
29
|
+
}, [getLabel, host_static_assets, environment_assets])
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
const columns = useMemo(
|
|
33
|
+
() => [
|
|
34
|
+
{
|
|
35
|
+
key: "id",
|
|
36
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_ID),
|
|
37
|
+
type: "number",
|
|
38
|
+
width: 40,
|
|
39
|
+
visible: false
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: "geometryTypeId",
|
|
43
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_TYPE),
|
|
44
|
+
type: "string",
|
|
45
|
+
width: 40,
|
|
46
|
+
visible: true,
|
|
47
|
+
align: "center",
|
|
48
|
+
...geometryTypeColumn
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "name",
|
|
52
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_NAME),
|
|
53
|
+
type: "string",
|
|
54
|
+
width: 220
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "customerId",
|
|
58
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CUSTOMER_ID),
|
|
59
|
+
type: "string",
|
|
60
|
+
width: 40,
|
|
61
|
+
visible: false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "createdAt",
|
|
65
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CREATED_AT),
|
|
66
|
+
type: "date",
|
|
67
|
+
align: "center",
|
|
68
|
+
width: DATAGRID_SEMANTIC_WIDTHS.date,
|
|
69
|
+
visible: false,
|
|
70
|
+
...createdAtColumn
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: "updatedAt",
|
|
74
|
+
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_UPDATED_AT),
|
|
75
|
+
type: "date",
|
|
76
|
+
align: "center",
|
|
77
|
+
visible: false,
|
|
78
|
+
width: DATAGRID_SEMANTIC_WIDTHS.date,
|
|
79
|
+
...updatedAtColumn
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
[createdAtColumn, geometryTypeColumn, getLabel, updatedAtColumn]
|
|
83
|
+
);
|
|
84
|
+
return { columns };
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
useColumns as u
|
|
88
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GeofenceListModel } from '../model';
|
|
2
|
+
import { GeofenceId } from '../../../contexts/GpsMapToolsContext/types';
|
|
3
|
+
export type UseDatagridFilteredProps = {
|
|
4
|
+
goAdd: () => void;
|
|
5
|
+
labelAdd: string;
|
|
6
|
+
enableAdd: boolean;
|
|
7
|
+
refreshCount: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* useDatagrid" hook encargado de gestionar el DataGridn de las geocercas filtradas a traves del endpoint
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDatagridFiltered(props: UseDatagridFilteredProps): {
|
|
13
|
+
pagerState: import('@m4l/graphics/src/hooks/usePaginate/types').PagerState;
|
|
14
|
+
onPageChange: (newPage: number) => void;
|
|
15
|
+
onRowsPerPageChange: (newRowsPerPage: number) => void;
|
|
16
|
+
rows: GeofenceListModel[];
|
|
17
|
+
defaultUserColumns: import('@m4l/components').IGridConfigExtended;
|
|
18
|
+
onChangeUserColumns: (newProps: import('@m4l/components').ChangeUserColumn) => void;
|
|
19
|
+
leftActions: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
rightActions: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
visibleCustomHeader: boolean;
|
|
22
|
+
customHeaderComponent: import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
checkedGeofencesFiltered: Set<number>;
|
|
24
|
+
setCheckedGeofencesFiltered: (filteredCheckedGeofences: ReadonlySet<GeofenceId>) => void;
|
|
25
|
+
externalFilterSettings: import('@m4l/components/src/components/DataGrid/types').FilterSettings | undefined;
|
|
26
|
+
externalSortSettings: import('@m4l/components/src/components/DataGrid/types').SortSettings | undefined;
|
|
27
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { useState, useEffect, useMemo, useCallback } from "react";
|
|
2
|
+
import { useWindowToolsMF, useDataGridPersistence } from "@m4l/components";
|
|
3
|
+
import { usePaginate } from "@m4l/graphics";
|
|
4
|
+
import { u as useGpsMapToolsStore } from "../../../hooks/useGpsMapToolsStore/index.js";
|
|
5
|
+
import { shallow } from "zustand/shallow";
|
|
6
|
+
import { u as useFilterAndSort } from "./useFilterAndSort/useFilterAndSort.js";
|
|
7
|
+
function useDatagridFiltered(props) {
|
|
8
|
+
const { goAdd, labelAdd, refreshCount } = props;
|
|
9
|
+
const { startProgress, stopProgress } = useWindowToolsMF();
|
|
10
|
+
const [checkedGeofences] = useGpsMapToolsStore(
|
|
11
|
+
(state) => [
|
|
12
|
+
state.geofenceState.checkedGeofences
|
|
13
|
+
],
|
|
14
|
+
shallow
|
|
15
|
+
);
|
|
16
|
+
const { verifyAddOrChangedGeofenceFromList: verifyAddOrChangedGeofence, setCheckedGeofences } = useGpsMapToolsStore(
|
|
17
|
+
(state) => state.geofenceActions,
|
|
18
|
+
shallow
|
|
19
|
+
);
|
|
20
|
+
const [backendQueryParams, setBackendQueryParams] = useState({});
|
|
21
|
+
const { pagerState, rows, onPageChange, onRowsPerPageChange, Refresh: refresh } = usePaginate(
|
|
22
|
+
{
|
|
23
|
+
endPoint: "geofences",
|
|
24
|
+
fireOnChangeParms: false,
|
|
25
|
+
fireOnFirstLoad: false,
|
|
26
|
+
queryParams: backendQueryParams,
|
|
27
|
+
responseToCamelCase: true,
|
|
28
|
+
startProgress,
|
|
29
|
+
stopProgress
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (refreshCount > 0) {
|
|
34
|
+
refresh();
|
|
35
|
+
}
|
|
36
|
+
}, [refreshCount, refresh]);
|
|
37
|
+
const checkedGeofencesFiltered = useMemo(() => {
|
|
38
|
+
return new Set(Array.from(checkedGeofences).filter((id) => rows.some((row) => row.id === id)));
|
|
39
|
+
}, [checkedGeofences, rows]);
|
|
40
|
+
const setCheckedGeofencesFiltered = useCallback((filteredCheckedGeofences) => {
|
|
41
|
+
const totalCheckedGeofences = new Set(checkedGeofences);
|
|
42
|
+
rows.forEach((row) => {
|
|
43
|
+
if (!filteredCheckedGeofences.has(row.id)) {
|
|
44
|
+
totalCheckedGeofences.delete(row.id);
|
|
45
|
+
} else {
|
|
46
|
+
if (!totalCheckedGeofences.has(row.id)) {
|
|
47
|
+
totalCheckedGeofences.add(row.id);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
setCheckedGeofences(totalCheckedGeofences);
|
|
52
|
+
}, [checkedGeofences, rows, setCheckedGeofences]);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
rows.forEach((row) => {
|
|
55
|
+
verifyAddOrChangedGeofence(row.id, row);
|
|
56
|
+
});
|
|
57
|
+
}, [rows]);
|
|
58
|
+
const { onChangeUserColumns, defaultUserColumns } = useDataGridPersistence({ prefixCookie: `master_all` });
|
|
59
|
+
const { leftActions, rightActions, visibleCustomHeader, customHeaderComponent, externalFilterSettings, externalSortSettings } = useFilterAndSort({ labelAdd, goAdd, setBackendQueryParams, refresh });
|
|
60
|
+
return {
|
|
61
|
+
pagerState,
|
|
62
|
+
onPageChange,
|
|
63
|
+
onRowsPerPageChange,
|
|
64
|
+
rows,
|
|
65
|
+
defaultUserColumns,
|
|
66
|
+
onChangeUserColumns,
|
|
67
|
+
leftActions,
|
|
68
|
+
rightActions,
|
|
69
|
+
visibleCustomHeader,
|
|
70
|
+
customHeaderComponent,
|
|
71
|
+
checkedGeofencesFiltered,
|
|
72
|
+
setCheckedGeofencesFiltered,
|
|
73
|
+
externalFilterSettings,
|
|
74
|
+
externalSortSettings
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
useDatagridFiltered as u
|
|
79
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GeofenceListColumns } from '../model';
|
|
2
|
+
export type UseDatagridSelectedProps = {
|
|
3
|
+
labelAdd: string;
|
|
4
|
+
enableAdd: boolean;
|
|
5
|
+
goAdd: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type UseGpsMapToolsStoreSelected = {
|
|
8
|
+
rows: GeofenceListColumns[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* useDatagrid" hook encargado de gestionar el DataGrid
|
|
12
|
+
*/
|
|
13
|
+
export declare function useDatagridSelected(props: UseDatagridSelectedProps): {
|
|
14
|
+
rows: GeofenceListColumns[];
|
|
15
|
+
rightActions: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|