@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,84 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, useEffect } from "react";
|
|
3
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import "leaflet";
|
|
5
|
-
import { shallow } from "zustand/shallow";
|
|
6
|
-
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
7
|
-
import "@geoman-io/leaflet-geoman-free";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { D as DivTabGpsToolsRoot } from "../../styles.js";
|
|
10
|
-
import { usePopupsStore, Tabs, Tab, Icon, TabContent } from "@m4l/components";
|
|
11
|
-
import { G as GeofencesList } from "./subcomponents/GeofencesList/index.js";
|
|
12
|
-
import { u as useLayers } from "../../hooks/useLayers/index.js";
|
|
13
|
-
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../dictionary.js";
|
|
14
|
-
import { g as gpsToolsClasses } from "../../classes/index.js";
|
|
15
|
-
import { M as MAP_GPSTOOLS_ICONS } from "../../icons.js";
|
|
16
|
-
import { h as GPS_TOOLS_POPUP_ID } from "../../../GpsMap/constants.js";
|
|
17
|
-
import { u as useGpsMapToolsStore } from "../../hooks/useGpsMapToolsStore/index.js";
|
|
18
|
-
function TabsGpsTools() {
|
|
19
|
-
const { getLabel } = useModuleDictionary();
|
|
20
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
21
|
-
const status = useGpsMapToolsStore((state) => state.ownerState.status, shallow);
|
|
22
|
-
const currentTabTool = useGpsMapToolsStore((state) => state.currentTabGpsTool, shallow);
|
|
23
|
-
const { setCurrentTabTool } = useGpsMapToolsStore((state) => state.gpsToolsActions, shallow);
|
|
24
|
-
const { update } = usePopupsStore((state) => state.popupActions, shallow);
|
|
25
|
-
const toolTabs = useMemo(() => {
|
|
26
|
-
return [
|
|
27
|
-
{
|
|
28
|
-
id: "geofences",
|
|
29
|
-
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES}`,
|
|
30
|
-
component: /* @__PURE__ */ jsx(GeofencesList, {}),
|
|
31
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_TAB_GEO),
|
|
32
|
-
className: gpsToolsClasses.gpsToolsGeofencesList
|
|
33
|
-
}
|
|
34
|
-
];
|
|
35
|
-
}, [getLabel]);
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
update(GPS_TOOLS_POPUP_ID, {
|
|
38
|
-
subTitle: currentTabTool === "geofences" ? getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_TAB_GEO) : ""
|
|
39
|
-
});
|
|
40
|
-
}, [currentTabTool]);
|
|
41
|
-
useLayers();
|
|
42
|
-
if (status !== "ready") {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
return /* @__PURE__ */ jsxs(DivTabGpsToolsRoot, { className: gpsToolsClasses.gpsToolsRoot, children: [
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
47
|
-
Tabs,
|
|
48
|
-
{
|
|
49
|
-
value: currentTabTool,
|
|
50
|
-
scrollButtons: "auto",
|
|
51
|
-
variant: "scrollable",
|
|
52
|
-
allowScrollButtonsMobile: true,
|
|
53
|
-
onChange: (_e, value) => setCurrentTabTool(value),
|
|
54
|
-
children: toolTabs.map((tab) => /* @__PURE__ */ jsx(
|
|
55
|
-
Tab,
|
|
56
|
-
{
|
|
57
|
-
value: tab.id,
|
|
58
|
-
icon: /* @__PURE__ */ jsx(Icon, { src: tab.iconUrl }),
|
|
59
|
-
className: clsx(gpsToolsClasses.gpsToolsTab, tab.className)
|
|
60
|
-
},
|
|
61
|
-
tab.id
|
|
62
|
-
))
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
toolTabs.map((tab) => {
|
|
66
|
-
const isMatched = tab.id === currentTabTool;
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
-
TabContent,
|
|
69
|
-
{
|
|
70
|
-
className: clsx(
|
|
71
|
-
gpsToolsClasses.gpsToolsTabContent,
|
|
72
|
-
tab.className,
|
|
73
|
-
isMatched ? gpsToolsClasses.visible : gpsToolsClasses.hidden
|
|
74
|
-
),
|
|
75
|
-
children: tab.component
|
|
76
|
-
},
|
|
77
|
-
tab.id
|
|
78
|
-
);
|
|
79
|
-
})
|
|
80
|
-
] });
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
TabsGpsTools as T
|
|
84
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FormAddEditValues } from './types';
|
|
2
|
-
export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
3
|
-
export declare const STROKE_OPACITY_DEFAULT: {
|
|
4
|
-
value: number;
|
|
5
|
-
label: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const STROKE_WHEIGTH_DEFAULT: {
|
|
8
|
-
value: number;
|
|
9
|
-
label: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const STROKE_DASH_ARRAY_DEFAULT: {
|
|
12
|
-
value: string;
|
|
13
|
-
label: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const FILL_COLOR_DEFAULT = "#aa3000";
|
|
16
|
-
export declare const FILL_OPACITY_DEFAULT: {
|
|
17
|
-
value: number;
|
|
18
|
-
label: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const initialValues: FormAddEditValues;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
2
|
-
const STROKE_OPACITY_DEFAULT = { value: 1, label: "100%" };
|
|
3
|
-
const STROKE_WHEIGTH_DEFAULT = { value: 1, label: "1 px" };
|
|
4
|
-
const STROKE_DASH_ARRAY_DEFAULT = { value: "", label: "-----" };
|
|
5
|
-
const FILL_COLOR_DEFAULT = "#aa3000";
|
|
6
|
-
const FILL_OPACITY_DEFAULT = { value: 0.2, label: "20%" };
|
|
7
|
-
const initialValues = {
|
|
8
|
-
/** General Data */
|
|
9
|
-
name: "",
|
|
10
|
-
geofenceType: null,
|
|
11
|
-
/** Config Data */
|
|
12
|
-
alias: null,
|
|
13
|
-
customerId: null,
|
|
14
|
-
timeMinInSeconds: 5,
|
|
15
|
-
timeMinOutSeconds: 5,
|
|
16
|
-
/** de Apoyo */
|
|
17
|
-
inEdition: false,
|
|
18
|
-
geometry: null,
|
|
19
|
-
lat: null,
|
|
20
|
-
lng: null,
|
|
21
|
-
properties: {
|
|
22
|
-
radius: null,
|
|
23
|
-
/** Style Data */
|
|
24
|
-
strokeColor: STROKE_COLOR_DEFAULT,
|
|
25
|
-
strokeOpacity: STROKE_OPACITY_DEFAULT,
|
|
26
|
-
strokeWeight: STROKE_WHEIGTH_DEFAULT,
|
|
27
|
-
strokeDashArray: STROKE_DASH_ARRAY_DEFAULT,
|
|
28
|
-
fillColor: FILL_COLOR_DEFAULT,
|
|
29
|
-
fillOpacity: FILL_OPACITY_DEFAULT
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
FILL_OPACITY_DEFAULT as F,
|
|
34
|
-
STROKE_DASH_ARRAY_DEFAULT as S,
|
|
35
|
-
FILL_COLOR_DEFAULT as a,
|
|
36
|
-
STROKE_WHEIGTH_DEFAULT as b,
|
|
37
|
-
STROKE_OPACITY_DEFAULT as c,
|
|
38
|
-
STROKE_COLOR_DEFAULT as d,
|
|
39
|
-
initialValues as i
|
|
40
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
import { useFormContext } from "react-hook-form";
|
|
3
|
-
import { useTab } from "@m4l/components";
|
|
4
|
-
function useSumbitErrorsFocus() {
|
|
5
|
-
const {
|
|
6
|
-
setFocus,
|
|
7
|
-
formState: { isSubmitted, errors }
|
|
8
|
-
} = useFormContext();
|
|
9
|
-
const { handleChange } = useTab();
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (isSubmitted) {
|
|
12
|
-
const firstError = Object.keys(errors).reduce((field, a) => {
|
|
13
|
-
const fieldKey = field;
|
|
14
|
-
return errors[fieldKey] ? fieldKey : a;
|
|
15
|
-
}, null);
|
|
16
|
-
if (firstError) {
|
|
17
|
-
const found = [
|
|
18
|
-
"name",
|
|
19
|
-
"geometry",
|
|
20
|
-
"geofenceType",
|
|
21
|
-
"timeMinInSeconds",
|
|
22
|
-
"timeMinOutSeconds"
|
|
23
|
-
].some((field) => field.includes(firstError));
|
|
24
|
-
if (found) {
|
|
25
|
-
handleChange(null, "general");
|
|
26
|
-
}
|
|
27
|
-
if (firstError) {
|
|
28
|
-
setFocus(firstError);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, [isSubmitted, errors]);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
useSumbitErrorsFocus as u
|
|
36
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { R as RHFormProviderStyled } from "./styles.js";
|
|
3
|
-
import { useFormAddEdit, Stack, TabProvider } from "@m4l/components";
|
|
4
|
-
import { M as MyActions } from "./subcomponents/MyActions/index.js";
|
|
5
|
-
import { M as MyTabs } from "./subcomponents/MyTabs/index.js";
|
|
6
|
-
import { f as formatDataEnpoint } from "./helpers.js";
|
|
7
|
-
import { u as useValidation } from "./hooks/useValidation.js";
|
|
8
|
-
import { u as useSubmit } from "./hooks/useSubmit.js";
|
|
9
|
-
import { i as initialValues } from "./constants.js";
|
|
10
|
-
import { a as ENDPOINT_GEOFENCE_GET } from "../constants.js";
|
|
11
|
-
import { g as gpsToolsClasses } from "../../../../classes/index.js";
|
|
12
|
-
import { u as useGpsMapToolsStore } from "../../../../hooks/useGpsMapToolsStore/index.js";
|
|
13
|
-
function GeofenceAddEdit(props) {
|
|
14
|
-
const { geofenceId } = props;
|
|
15
|
-
const [finalInitalValues, omitCallEnpoint] = useGpsMapToolsStore((state) => {
|
|
16
|
-
if (geofenceId === void 0) {
|
|
17
|
-
return [initialValues, false];
|
|
18
|
-
}
|
|
19
|
-
const geofence = state.geofenceState.hashGeofences[geofenceId];
|
|
20
|
-
if (geofence?.geometry) {
|
|
21
|
-
const emulateResponse = {
|
|
22
|
-
data: {
|
|
23
|
-
type: geofence.type,
|
|
24
|
-
name: geofence.name,
|
|
25
|
-
id: geofence.id,
|
|
26
|
-
active: false,
|
|
27
|
-
geometry: geofence.geometry,
|
|
28
|
-
properties: geofence.properties,
|
|
29
|
-
countCrossingFeatures: geofence.countCrossingFeatures,
|
|
30
|
-
countInternalFeatures: geofence.countInternalFeatures,
|
|
31
|
-
createdAt: geofence.createdAt,
|
|
32
|
-
updatedAt: geofence.updatedAt,
|
|
33
|
-
timeMinInSeconds: geofence.timeMinInSeconds,
|
|
34
|
-
timeMinOutSeconds: geofence.timeMinOutSeconds,
|
|
35
|
-
alias: geofence.alias,
|
|
36
|
-
customerId: geofence.customerId
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return [formatDataEnpoint(emulateResponse), true];
|
|
40
|
-
} else {
|
|
41
|
-
return [initialValues, false];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const { formValues, statusLoad } = useFormAddEdit({
|
|
45
|
-
objectId: geofenceId,
|
|
46
|
-
formatDataEnpoint,
|
|
47
|
-
initialValues: finalInitalValues,
|
|
48
|
-
endPoint: ENDPOINT_GEOFENCE_GET,
|
|
49
|
-
isRemote: false,
|
|
50
|
-
omitCallEnpoint
|
|
51
|
-
});
|
|
52
|
-
const { validationSchema } = useValidation();
|
|
53
|
-
const { onSubmit } = useSubmit({ objectId: geofenceId });
|
|
54
|
-
return /* @__PURE__ */ jsx(
|
|
55
|
-
RHFormProviderStyled,
|
|
56
|
-
{
|
|
57
|
-
statusLoad,
|
|
58
|
-
onSubmit,
|
|
59
|
-
values: formValues,
|
|
60
|
-
validationSchema,
|
|
61
|
-
className: gpsToolsClasses.gpsToolsGeofencesAddEdit,
|
|
62
|
-
children: /* @__PURE__ */ jsxs(Stack, { direction: "column", gap: "8px", children: [
|
|
63
|
-
/* @__PURE__ */ jsx(TabProvider, { initialValue: "general", children: /* @__PURE__ */ jsx(MyTabs, {}) }),
|
|
64
|
-
/* @__PURE__ */ jsx(MyActions, { ...props })
|
|
65
|
-
] })
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
GeofenceAddEdit as G
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RHFormProviderStyled: import('@emotion/styled').StyledComponent<import('@m4l/components/src/components/hook-form/RHFormContext/types').FormProviderProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { PaperForm, RHFTextField } from "@m4l/components";
|
|
4
|
-
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
5
|
-
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../icons.js";
|
|
6
|
-
function ConfigData() {
|
|
7
|
-
const { getLabel } = useModuleDictionary();
|
|
8
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
9
|
-
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.CONFIG}`;
|
|
10
|
-
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_CONFIG), children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
RHFTextField,
|
|
13
|
-
{
|
|
14
|
-
name: "alias",
|
|
15
|
-
disabled: false,
|
|
16
|
-
type: "text",
|
|
17
|
-
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_ALIAS}`)
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
21
|
-
RHFTextField,
|
|
22
|
-
{
|
|
23
|
-
name: "customerId",
|
|
24
|
-
disabled: false,
|
|
25
|
-
type: "text",
|
|
26
|
-
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_CUSTOMER_ID}`)
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
RHFTextField,
|
|
31
|
-
{
|
|
32
|
-
name: "timeMinInSeconds",
|
|
33
|
-
disabled: false,
|
|
34
|
-
type: "number",
|
|
35
|
-
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_MIN_IN_SECONDS}`)
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
RHFTextField,
|
|
40
|
-
{
|
|
41
|
-
name: "timeMinOutSeconds",
|
|
42
|
-
disabled: false,
|
|
43
|
-
type: "number",
|
|
44
|
-
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_MIN_OUT_SECONDS}`)
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
] });
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
ConfigData as C
|
|
51
|
-
};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import { PaperForm, RHFTextField, Stack, RHFAutocomplete, IconButton } from "@m4l/components";
|
|
5
|
-
import { u as useDrawing } from "../../hooks/useDrawing.js";
|
|
6
|
-
import { u as useSumbitErrorsFocus } from "../../hooks/useSumbitErrorsFocus.js";
|
|
7
|
-
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
8
|
-
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../icons.js";
|
|
9
|
-
import { g as gpsToolsClasses } from "../../../../../../classes/index.js";
|
|
10
|
-
function GeneralData() {
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
|
-
const { inEdition, handleDraw, handleFinish, geometrTypeIdCached } = useDrawing();
|
|
14
|
-
useSumbitErrorsFocus();
|
|
15
|
-
const urlIcon = `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GENERAL}`;
|
|
16
|
-
const geofencesTypes = useMemo(() => {
|
|
17
|
-
return [
|
|
18
|
-
{
|
|
19
|
-
id: "gt_circle",
|
|
20
|
-
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_CIRCLE),
|
|
21
|
-
url: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_CIRCLE}`
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "gt_polygon",
|
|
25
|
-
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_POLYGON),
|
|
26
|
-
url: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_POLYGON}`
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "gt_rectangle",
|
|
30
|
-
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_RECTANGLE),
|
|
31
|
-
url: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_RECTANGLE}`
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
}, [getLabel]);
|
|
35
|
-
return /* @__PURE__ */ jsxs(PaperForm, { urlIcon, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_GENERAL), children: [
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
RHFTextField,
|
|
38
|
-
{
|
|
39
|
-
name: "name",
|
|
40
|
-
disabled: false,
|
|
41
|
-
type: "text",
|
|
42
|
-
label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_NAME}`)
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 1, alignItems: "center", children: [
|
|
46
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
47
|
-
/* @__PURE__ */ jsx(
|
|
48
|
-
RHFAutocomplete,
|
|
49
|
-
{
|
|
50
|
-
type: "image",
|
|
51
|
-
name: "geofenceType",
|
|
52
|
-
autoComplete: "off",
|
|
53
|
-
options: geofencesTypes,
|
|
54
|
-
getOptionLabel: (option) => option.name,
|
|
55
|
-
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
56
|
-
getOptionUrlImage: (option) => option.url,
|
|
57
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_TYPE)
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ jsxs(
|
|
61
|
-
Stack,
|
|
62
|
-
{
|
|
63
|
-
className: gpsToolsClasses.gpsToolsGeofencesAddEditDrawFinishContainer,
|
|
64
|
-
direction: "row",
|
|
65
|
-
gap: 1,
|
|
66
|
-
alignItems: "center",
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
IconButton,
|
|
70
|
-
{
|
|
71
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_DRAW}`,
|
|
72
|
-
onClick: handleDraw,
|
|
73
|
-
disabled: inEdition || !geometrTypeIdCached,
|
|
74
|
-
tooltip: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_DRAW)
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
IconButton,
|
|
79
|
-
{
|
|
80
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_FINISH}`,
|
|
81
|
-
onClick: handleFinish,
|
|
82
|
-
disabled: !inEdition,
|
|
83
|
-
tooltip: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH)
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] }),
|
|
90
|
-
geometrTypeIdCached && geometrTypeIdCached === "gt_circle" && // <HelperText variant='info' message={'undefined'} />
|
|
91
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
92
|
-
/* @__PURE__ */ jsx(
|
|
93
|
-
RHFTextField,
|
|
94
|
-
{
|
|
95
|
-
name: "properties.radius",
|
|
96
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_RADIUS),
|
|
97
|
-
autoComplete: "off",
|
|
98
|
-
disabled: true,
|
|
99
|
-
size: "small"
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ jsx(
|
|
103
|
-
RHFTextField,
|
|
104
|
-
{
|
|
105
|
-
name: "lat",
|
|
106
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LAT),
|
|
107
|
-
autoComplete: "off",
|
|
108
|
-
disabled: true,
|
|
109
|
-
size: "small"
|
|
110
|
-
}
|
|
111
|
-
),
|
|
112
|
-
/* @__PURE__ */ jsx(
|
|
113
|
-
RHFTextField,
|
|
114
|
-
{
|
|
115
|
-
name: "lng",
|
|
116
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LON),
|
|
117
|
-
autoComplete: "off",
|
|
118
|
-
disabled: true,
|
|
119
|
-
size: "small"
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
] })
|
|
123
|
-
] })
|
|
124
|
-
] });
|
|
125
|
-
}
|
|
126
|
-
export {
|
|
127
|
-
GeneralData as G
|
|
128
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { useFormContext, useWatch, useFormState } from "react-hook-form";
|
|
4
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
5
|
-
import { useModal, usePopupsStore, WindowConfirm, ActionsContainer, RHFHelperError, Button, ActionFormIntro } from "@m4l/components";
|
|
6
|
-
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
7
|
-
import { u as useGpsMapToolsStore } from "../../../../../../hooks/useGpsMapToolsStore/index.js";
|
|
8
|
-
function MyActions(props) {
|
|
9
|
-
const { geofenceId } = props;
|
|
10
|
-
const { control } = useFormContext();
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const { openModal } = useModal();
|
|
13
|
-
const inEdition = useWatch({
|
|
14
|
-
control,
|
|
15
|
-
name: "inEdition"
|
|
16
|
-
});
|
|
17
|
-
const { isDirty } = useFormState({
|
|
18
|
-
control
|
|
19
|
-
});
|
|
20
|
-
const { close, show } = usePopupsStore((state) => state.popupActions);
|
|
21
|
-
const { addCheckedGeofence } = useGpsMapToolsStore((state) => state.geofenceActions);
|
|
22
|
-
const onClickCancelLocal = useCallback(() => {
|
|
23
|
-
if (isDirty) {
|
|
24
|
-
openModal({
|
|
25
|
-
window: /* @__PURE__ */ jsx(
|
|
26
|
-
WindowConfirm,
|
|
27
|
-
{
|
|
28
|
-
variant: "warning",
|
|
29
|
-
title: getLabel("common_actions.confirm_quit_title"),
|
|
30
|
-
msg: getLabel("common_actions.confirm_quit_msg"),
|
|
31
|
-
onClickIntro: onConfirmQuit
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
variant: "warning"
|
|
35
|
-
});
|
|
36
|
-
} else {
|
|
37
|
-
onConfirmQuit();
|
|
38
|
-
}
|
|
39
|
-
}, [getLabel, isDirty, openModal]);
|
|
40
|
-
const onConfirmQuit = () => {
|
|
41
|
-
close("geofencesAddEdit");
|
|
42
|
-
if (geofenceId !== void 0) {
|
|
43
|
-
addCheckedGeofence(geofenceId);
|
|
44
|
-
}
|
|
45
|
-
show("gpsTools");
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
48
|
-
/* @__PURE__ */ jsx(RHFHelperError, { name: "geometry" }),
|
|
49
|
-
/* @__PURE__ */ jsx(Button, { onClick: onClickCancelLocal, disabled: inEdition, label: getLabel(MAP_GPSTOOLS_DICCTIONARY.ACTION_CANCEL) }),
|
|
50
|
-
/* @__PURE__ */ jsx(ActionFormIntro, { label: "", disabled: inEdition })
|
|
51
|
-
] });
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
MyActions as M
|
|
55
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
import { useTab, Tabs, Tab, Icon, TabContent } from "@m4l/components";
|
|
6
|
-
import { G as GeneralData } from "../GeneralData/index.js";
|
|
7
|
-
import { C as ConfigData } from "../ConfigData/index.js";
|
|
8
|
-
import { S as StyleData } from "../StyleData/index.js";
|
|
9
|
-
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
10
|
-
import { g as gpsToolsClasses } from "../../../../../../classes/index.js";
|
|
11
|
-
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../icons.js";
|
|
12
|
-
function MyTabs() {
|
|
13
|
-
const { getLabel } = useModuleDictionary();
|
|
14
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
15
|
-
const { currentTab, handleChange } = useTab();
|
|
16
|
-
const geofenceAddEditTabs = useMemo(() => {
|
|
17
|
-
return [
|
|
18
|
-
{
|
|
19
|
-
id: "general",
|
|
20
|
-
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.DATA}`,
|
|
21
|
-
component: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
-
/* @__PURE__ */ jsx(GeneralData, {}),
|
|
23
|
-
/* @__PURE__ */ jsx(ConfigData, {})
|
|
24
|
-
] }),
|
|
25
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.TAB_GENERAL_CONFIG_TOOLTIP),
|
|
26
|
-
className: gpsToolsClasses.toolGeofencesAddEditGeneral
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "style",
|
|
30
|
-
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.STYLE}`,
|
|
31
|
-
component: /* @__PURE__ */ jsx(StyleData, {}),
|
|
32
|
-
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.TAB_STYLE_CONFIG_TOOLTIP),
|
|
33
|
-
className: gpsToolsClasses.toolGeofencesAddEditStyle
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
}, [getLabel]);
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { className: gpsToolsClasses.gpsToolsGeofencesAddEditContent, children: [
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
Tabs,
|
|
40
|
-
{
|
|
41
|
-
value: currentTab,
|
|
42
|
-
scrollButtons: "auto",
|
|
43
|
-
variant: "scrollable",
|
|
44
|
-
allowScrollButtonsMobile: true,
|
|
45
|
-
onChange: (_e, newValue) => handleChange(_e, newValue),
|
|
46
|
-
children: geofenceAddEditTabs.map((tab) => /* @__PURE__ */ jsx(
|
|
47
|
-
Tab,
|
|
48
|
-
{
|
|
49
|
-
value: tab.id,
|
|
50
|
-
icon: /* @__PURE__ */ jsx(Icon, { src: tab.iconUrl }),
|
|
51
|
-
label: ""
|
|
52
|
-
},
|
|
53
|
-
tab.id
|
|
54
|
-
))
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
geofenceAddEditTabs.map((tab) => {
|
|
58
|
-
const isMatched = tab.id === currentTab;
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
60
|
-
TabContent,
|
|
61
|
-
{
|
|
62
|
-
className: clsx(
|
|
63
|
-
gpsToolsClasses.gpsToolsTabContent,
|
|
64
|
-
tab.className,
|
|
65
|
-
isMatched ? gpsToolsClasses.visible : gpsToolsClasses.hidden
|
|
66
|
-
),
|
|
67
|
-
children: tab.component
|
|
68
|
-
},
|
|
69
|
-
tab.id
|
|
70
|
-
);
|
|
71
|
-
})
|
|
72
|
-
] });
|
|
73
|
-
}
|
|
74
|
-
export {
|
|
75
|
-
MyTabs as M
|
|
76
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Maybe } from '@m4l/core';
|
|
2
|
-
import { StyleOpacity, StyleDashArray, StyleWheight } from '../../../../../../types';
|
|
3
|
-
export interface FormStyleDataValues {
|
|
4
|
-
strokeColor?: string;
|
|
5
|
-
strokeOpacity?: Maybe<StyleOpacity>;
|
|
6
|
-
strokeWeight?: Maybe<StyleWheight>;
|
|
7
|
-
strokeDashArray?: Maybe<StyleDashArray>;
|
|
8
|
-
fillColor?: string;
|
|
9
|
-
fillOpacity?: Maybe<StyleOpacity>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GeofencesFeaturesLayers } from '../../constants';
|
|
2
|
-
/**
|
|
3
|
-
* Hook encargado de cargar los features y pintarlos cuando los seleccionen
|
|
4
|
-
* @param layerId
|
|
5
|
-
* @param featuresType
|
|
6
|
-
* @param endpoint
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare function useCheckedFeatures(layerId: GeofencesFeaturesLayers, featuresType: 'CrossingFeatures' | 'InternalFeatures', endpoint: string): [ReadonlySet<number>, (newFeatures: ReadonlySet<number>) => void];
|