@m4l/gclick 0.2.0 → 0.2.3-beta.1
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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { PaperForm, RHFTextField, Stack, RHFSelect, Button, RHFHelperError } from "@m4l/components";
|
|
4
|
+
import { u as useDrawing } from "../../hooks/useDrawing.js";
|
|
5
|
+
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
6
|
+
import { u as useGeneral } from "./hooks/useGeneral.js";
|
|
7
|
+
function GeneralData() {
|
|
8
|
+
const { getLabel } = useModuleDictionary();
|
|
9
|
+
const { inEdition, handleDraw, handleFinish, geometrTypeIdCached } = useDrawing();
|
|
10
|
+
const { urlIcon, geofencesTypes } = useGeneral();
|
|
11
|
+
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_GENERAL), variant: "text", isForm: true, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(
|
|
13
|
+
RHFTextField,
|
|
14
|
+
{
|
|
15
|
+
name: "name",
|
|
16
|
+
type: "text",
|
|
17
|
+
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_NAME}`)
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 1, alignItems: "flex-start", children: [
|
|
21
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
RHFSelect,
|
|
24
|
+
{
|
|
25
|
+
name: "geofenceTypeId",
|
|
26
|
+
options: geofencesTypes
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
Button,
|
|
31
|
+
{
|
|
32
|
+
onClick: inEdition ? handleFinish : handleDraw,
|
|
33
|
+
disabled: !geometrTypeIdCached,
|
|
34
|
+
label: inEdition ? getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH) : getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_DRAW)
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ jsx(RHFHelperError, { name: "geometry" }, "geometry"),
|
|
39
|
+
/* @__PURE__ */ jsx(RHFHelperError, { name: "inEdition" }, "inEdition"),
|
|
40
|
+
geometrTypeIdCached && geometrTypeIdCached === "gt_circle" && // <HelperText variant='info' message={'undefined'} />
|
|
41
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
RHFTextField,
|
|
44
|
+
{
|
|
45
|
+
name: "properties.radius",
|
|
46
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_RADIUS),
|
|
47
|
+
autoComplete: "off",
|
|
48
|
+
disabled: true,
|
|
49
|
+
size: "small"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
RHFTextField,
|
|
54
|
+
{
|
|
55
|
+
name: "lat",
|
|
56
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LAT),
|
|
57
|
+
autoComplete: "off",
|
|
58
|
+
disabled: true,
|
|
59
|
+
size: "small"
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
RHFTextField,
|
|
64
|
+
{
|
|
65
|
+
name: "lng",
|
|
66
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LON),
|
|
67
|
+
autoComplete: "off",
|
|
68
|
+
disabled: true,
|
|
69
|
+
size: "small"
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] })
|
|
73
|
+
] })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
GeneralData as G
|
|
78
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
+
import { Icon } from "@m4l/components";
|
|
5
|
+
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../../dictionary.js";
|
|
6
|
+
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../../icons.js";
|
|
7
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../../constants.js";
|
|
8
|
+
function useGeneral() {
|
|
9
|
+
const { getLabel } = useModuleDictionary();
|
|
10
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
|
+
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_GENERAL}`;
|
|
12
|
+
const geofencesTypes = useMemo(() => {
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
id: "gt_circle",
|
|
16
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_CIRCLE),
|
|
17
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_CIRCLE}` })
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "gt_polygon",
|
|
21
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_POLYGON),
|
|
22
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_POLYGON}` })
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "gt_multipolygon",
|
|
26
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_MULTIPOLYGON),
|
|
27
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_MULTIPOLYGON}` })
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "gt_rectangle",
|
|
31
|
+
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_RECTANGLE),
|
|
32
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_RECTANGLE}` })
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
}, [getLabel]);
|
|
36
|
+
return {
|
|
37
|
+
geofencesTypes,
|
|
38
|
+
urlIcon
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
useGeneral as u
|
|
43
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import * as Yup from 'yup';
|
|
2
3
|
/**
|
|
3
4
|
* TODO: Documentar
|
|
4
5
|
*/
|
|
5
6
|
export declare function GeneralDataValidation(getLabel: GetLabelType): {
|
|
6
7
|
name: import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
|
|
8
|
+
inEdition: Yup.BooleanSchema<boolean | undefined, import('yup/lib/types').AnyObject, boolean | undefined>;
|
|
7
9
|
geometry: import('yup/lib/object').RequiredObjectSchema<import('yup/lib/object').ObjectShape, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<import('yup/lib/object').ObjectShape> | null>;
|
|
8
|
-
|
|
10
|
+
geofenceTypeId: import('yup/lib/string').RequiredStringSchema<string | null | undefined, import('yup/lib/types').AnyObject>;
|
|
9
11
|
};
|
|
@@ -3,8 +3,13 @@ import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
|
3
3
|
function GeneralDataValidation(getLabel) {
|
|
4
4
|
return {
|
|
5
5
|
name: Yup.string().required(getLabel(MAP_GPSTOOLS_DICCTIONARY.VALIDATION_FIELD_REQUIRED)),
|
|
6
|
+
inEdition: Yup.boolean().test(
|
|
7
|
+
"is-in-edition",
|
|
8
|
+
getLabel(MAP_GPSTOOLS_DICCTIONARY.VALIDATION_IS_IN_EDITION),
|
|
9
|
+
(value) => !(value === true)
|
|
10
|
+
),
|
|
6
11
|
geometry: Yup.object().nullable().required(getLabel(MAP_GPSTOOLS_DICCTIONARY.VALIDATION_GEOMETRY_REQUIRED)),
|
|
7
|
-
|
|
12
|
+
geofenceTypeId: Yup.string().nullable().required(getLabel(MAP_GPSTOOLS_DICCTIONARY.VALIDATION_FIELD_REQUIRED))
|
|
8
13
|
};
|
|
9
14
|
}
|
|
10
15
|
export {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { usePopupsStore, StepperCancelButton } from "@m4l/components";
|
|
3
|
+
import { u as useGpsMapToolsStore } from "../../../../../../hooks/useGpsMapToolsStore/index.js";
|
|
4
|
+
import { c as GEOFENCES_TOOL_LIST_POPUP_ID } from "../../../../constants.js";
|
|
5
|
+
function MyActionFormCancel(props) {
|
|
6
|
+
const { geofenceId } = props;
|
|
7
|
+
const { show } = usePopupsStore((state) => state.popupActions);
|
|
8
|
+
const { addCheckedGeofence } = useGpsMapToolsStore((state) => state.geofenceActions);
|
|
9
|
+
const onClose = () => {
|
|
10
|
+
if (geofenceId !== void 0) {
|
|
11
|
+
addCheckedGeofence(geofenceId);
|
|
12
|
+
}
|
|
13
|
+
show(GEOFENCES_TOOL_LIST_POPUP_ID);
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ jsx(StepperCancelButton, { onClose, linkToCloseWindow: true });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
MyActionFormCancel as M
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StyleOpacity, StyleWheight } from '../../types';
|
|
2
|
+
export declare const FILL_COLOR_DEFAULT = "#3D8CDD";
|
|
3
|
+
export declare const FILL_OPACITY_DEFAULT = 0.2;
|
|
4
|
+
export declare const STROKE_COLOR_DEFAULT = "#7D0B90";
|
|
5
|
+
export declare const STROKE_OPACITY_DEFAULT = 0.4;
|
|
6
|
+
export declare const STROKE_WHEIGTH_DEFAULT = 2;
|
|
7
|
+
export declare const STROKE_DASH_ARRAY_DEFAULT = "solid";
|
|
8
|
+
export declare const STYLE_OPACITIES: StyleOpacity[];
|
|
9
|
+
export declare const STYLE_WHEIGHTS: StyleWheight[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../icons.js";
|
|
2
|
+
const FILL_COLOR_DEFAULT = "#3D8CDD";
|
|
3
|
+
const FILL_OPACITY_DEFAULT = 0.2;
|
|
4
|
+
const STROKE_COLOR_DEFAULT = "#7D0B90";
|
|
5
|
+
const STROKE_OPACITY_DEFAULT = 0.4;
|
|
6
|
+
const STROKE_WHEIGTH_DEFAULT = 2;
|
|
7
|
+
const STROKE_DASH_ARRAY_DEFAULT = "solid";
|
|
8
|
+
const STYLE_OPACITIES = [
|
|
9
|
+
{
|
|
10
|
+
id: 0,
|
|
11
|
+
label: "0%"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: 0.1,
|
|
15
|
+
label: "10%"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 0.2,
|
|
19
|
+
label: "20%"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 0.3,
|
|
23
|
+
label: "30%"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 0.4,
|
|
27
|
+
label: "40%"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 0.5,
|
|
31
|
+
label: "50%"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 1,
|
|
35
|
+
label: "100%"
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
const STYLE_WHEIGHTS = [
|
|
39
|
+
{
|
|
40
|
+
id: 1,
|
|
41
|
+
label: "1px",
|
|
42
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_WEIGHT_1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 2,
|
|
46
|
+
label: "2px",
|
|
47
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_WEIGHT_2
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: 4,
|
|
51
|
+
label: "4px",
|
|
52
|
+
iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_WEIGHT_4
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
export {
|
|
56
|
+
FILL_OPACITY_DEFAULT as F,
|
|
57
|
+
STROKE_DASH_ARRAY_DEFAULT as S,
|
|
58
|
+
STROKE_WHEIGTH_DEFAULT as a,
|
|
59
|
+
STROKE_OPACITY_DEFAULT as b,
|
|
60
|
+
STROKE_COLOR_DEFAULT as c,
|
|
61
|
+
FILL_COLOR_DEFAULT as d,
|
|
62
|
+
STYLE_OPACITIES as e,
|
|
63
|
+
STYLE_WHEIGHTS as f
|
|
64
|
+
};
|
|
@@ -3,8 +3,8 @@ import { F as FillData } from "./subcomponents/FillData/index.js";
|
|
|
3
3
|
import { S as StrokeData } from "./subcomponents/StrokeData/index.js";
|
|
4
4
|
function StyleData() {
|
|
5
5
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6
|
-
/* @__PURE__ */ jsx(
|
|
7
|
-
/* @__PURE__ */ jsx(
|
|
6
|
+
/* @__PURE__ */ jsx(FillData, {}),
|
|
7
|
+
/* @__PURE__ */ jsx(StrokeData, {})
|
|
8
8
|
] });
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PaperForm, PropertyValue, RHFColorPicker,
|
|
2
|
+
import { PaperForm, PropertyValue, RHFColorPicker, RHFSelect } from "@m4l/components";
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../../../dictionary.js";
|
|
5
5
|
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../../../icons.js";
|
|
6
|
-
import {
|
|
6
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../../../constants.js";
|
|
7
|
+
import { e as STYLE_OPACITIES } from "../../constants.js";
|
|
7
8
|
function FillData() {
|
|
8
9
|
const { getLabel } = useModuleDictionary();
|
|
9
10
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
-
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/
|
|
11
|
-
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_FILL), children: [
|
|
11
|
+
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_FILL}`;
|
|
12
|
+
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_FILL), isForm: true, variant: "text", children: [
|
|
12
13
|
/* @__PURE__ */ jsx(
|
|
13
14
|
PropertyValue,
|
|
14
15
|
{
|
|
@@ -26,14 +27,10 @@ function FillData() {
|
|
|
26
27
|
isForm: true,
|
|
27
28
|
propertyWidth: 150,
|
|
28
29
|
value: /* @__PURE__ */ jsx(
|
|
29
|
-
|
|
30
|
+
RHFSelect,
|
|
30
31
|
{
|
|
31
|
-
type: "text",
|
|
32
32
|
name: "properties.fillOpacity",
|
|
33
|
-
|
|
34
|
-
options: STYLE_OPACITIES,
|
|
35
|
-
getOptionLabel: (option) => option.label,
|
|
36
|
-
isOptionEqualToValue: (option, value) => option.value === value.value
|
|
33
|
+
options: STYLE_OPACITIES
|
|
37
34
|
}
|
|
38
35
|
)
|
|
39
36
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "@m4l/components";
|
|
3
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../../../../constants.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { S as STYLE_PATTERNS } from "../../../../../../../constants.js";
|
|
7
|
+
function useStrokePatternOptions() {
|
|
8
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
9
|
+
const { getLabel } = useModuleDictionary();
|
|
10
|
+
const styleWeightsOptions = useMemo(() => STYLE_PATTERNS.map((item) => ({
|
|
11
|
+
...item,
|
|
12
|
+
label: getLabel(item.dictionaryId),
|
|
13
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${item.iconId}` })
|
|
14
|
+
})), [getLabel, host_static_assets, environment_assets]);
|
|
15
|
+
return styleWeightsOptions;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
useStrokePatternOptions as u
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "@m4l/components";
|
|
3
|
+
import { useEnvironment } from "@m4l/core";
|
|
4
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../../../../constants.js";
|
|
5
|
+
import { f as STYLE_WHEIGHTS } from "../../../constants.js";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
function useStrokeWeightsOptions() {
|
|
8
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
9
|
+
const styleWeightsOptions = useMemo(() => STYLE_WHEIGHTS.map((item) => ({
|
|
10
|
+
...item,
|
|
11
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${item.iconId}` })
|
|
12
|
+
})), [host_static_assets, environment_assets]);
|
|
13
|
+
return styleWeightsOptions;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
useStrokeWeightsOptions as u
|
|
17
|
+
};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { PaperForm, PropertyValue, RHFColorPicker,
|
|
3
|
+
import { PaperForm, PropertyValue, RHFColorPicker, RHFSelect } from "@m4l/components";
|
|
4
4
|
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../../../dictionary.js";
|
|
5
5
|
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../../../icons.js";
|
|
6
|
-
import {
|
|
6
|
+
import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../../../constants.js";
|
|
7
|
+
import { u as useStrokeWeightsOptions } from "./hooks/useStrokeWeightsOptions.js";
|
|
8
|
+
import { u as useStrokePatternOptions } from "./hooks/useStrokePatternOptions.js";
|
|
9
|
+
import { e as STYLE_OPACITIES } from "../../constants.js";
|
|
7
10
|
function StrokeData() {
|
|
8
11
|
const { getLabel } = useModuleDictionary();
|
|
9
12
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
-
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/
|
|
11
|
-
|
|
13
|
+
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE}`;
|
|
14
|
+
const styleWeightsOptions = useStrokeWeightsOptions();
|
|
15
|
+
const stylePatternOptions = useStrokePatternOptions();
|
|
16
|
+
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_STROKE), isForm: true, variant: "text", children: [
|
|
12
17
|
/* @__PURE__ */ jsx(
|
|
13
18
|
PropertyValue,
|
|
14
19
|
{
|
|
@@ -26,14 +31,10 @@ function StrokeData() {
|
|
|
26
31
|
isForm: true,
|
|
27
32
|
propertyWidth: 150,
|
|
28
33
|
value: /* @__PURE__ */ jsx(
|
|
29
|
-
|
|
34
|
+
RHFSelect,
|
|
30
35
|
{
|
|
31
|
-
type: "text",
|
|
32
36
|
name: "properties.strokeOpacity",
|
|
33
|
-
|
|
34
|
-
options: STYLE_OPACITIES,
|
|
35
|
-
getOptionLabel: (option) => option.label,
|
|
36
|
-
isOptionEqualToValue: (option, value) => option.value === value.value
|
|
37
|
+
options: STYLE_OPACITIES
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
},
|
|
@@ -46,14 +47,10 @@ function StrokeData() {
|
|
|
46
47
|
isForm: true,
|
|
47
48
|
propertyWidth: 150,
|
|
48
49
|
value: /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
50
|
+
RHFSelect,
|
|
50
51
|
{
|
|
51
|
-
type: "text",
|
|
52
52
|
name: "properties.strokeWeight",
|
|
53
|
-
|
|
54
|
-
options: STYLE_WHEIGHTS,
|
|
55
|
-
getOptionLabel: (option) => option.label,
|
|
56
|
-
isOptionEqualToValue: (option, value) => option.value === value.value
|
|
53
|
+
options: styleWeightsOptions
|
|
57
54
|
}
|
|
58
55
|
)
|
|
59
56
|
},
|
|
@@ -66,14 +63,10 @@ function StrokeData() {
|
|
|
66
63
|
isForm: true,
|
|
67
64
|
propertyWidth: 150,
|
|
68
65
|
value: /* @__PURE__ */ jsx(
|
|
69
|
-
|
|
66
|
+
RHFSelect,
|
|
70
67
|
{
|
|
71
|
-
type: "text",
|
|
72
68
|
name: "properties.strokeDashArray",
|
|
73
|
-
|
|
74
|
-
options: STYLE_PATTERNS,
|
|
75
|
-
getOptionLabel: (option) => option.label,
|
|
76
|
-
isOptionEqualToValue: (option, value) => option.value === value.value
|
|
69
|
+
options: stylePatternOptions
|
|
77
70
|
}
|
|
78
71
|
)
|
|
79
72
|
},
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GeofenceGetModel } from '../model';
|
|
1
|
+
import { GeofenceGetModel, GeofenceStyleProperties, GeofenceTypeId } from '../../model';
|
|
3
2
|
import { FormConfigDataValues } from './subcomponents/ConfigData/types';
|
|
4
3
|
import { FormGeneralDataValues } from './subcomponents/GeneralData/types';
|
|
5
4
|
import { FormStyleDataValues } from './subcomponents/StyleData/types';
|
|
5
|
+
export interface GeofenceTypeItem {
|
|
6
|
+
id: GeofenceTypeId;
|
|
7
|
+
label: string;
|
|
8
|
+
startAdornment: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface StyleOpacity {
|
|
11
|
+
id: number;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface StyleWheight {
|
|
15
|
+
id: number;
|
|
16
|
+
label: string;
|
|
17
|
+
iconId: string;
|
|
18
|
+
}
|
|
6
19
|
export type ResponseGet = {
|
|
7
20
|
data: GeofenceGetModel;
|
|
8
21
|
};
|
|
@@ -10,15 +23,8 @@ export type FormAddEditValues = FormGeneralDataValues & FormConfigDataValues & F
|
|
|
10
23
|
inEdition: boolean;
|
|
11
24
|
lat?: number | null;
|
|
12
25
|
lng?: number | null;
|
|
13
|
-
properties:
|
|
14
|
-
|
|
15
|
-
strokeColor: string;
|
|
16
|
-
strokeOpacity: StyleOpacity;
|
|
17
|
-
strokeWeight: StyleWheight;
|
|
18
|
-
strokeDashArray: StyleDashArray;
|
|
19
|
-
fillColor: string;
|
|
20
|
-
fillOpacity: StyleOpacity;
|
|
21
|
-
};
|
|
26
|
+
properties: GeofenceStyleProperties;
|
|
27
|
+
createdAt?: string;
|
|
22
28
|
};
|
|
23
29
|
export interface GeofenceAddEditProps {
|
|
24
30
|
geofenceId?: number;
|