@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.
Files changed (270) hide show
  1. package/components/maps/components/GpsMap/GpsMap.js +3 -3
  2. package/components/maps/components/GpsMap/GpsMap.styles.js +74 -4
  3. package/components/maps/components/GpsMap/constants.d.ts +3 -1
  4. package/components/maps/components/GpsMap/constants.js +9 -41
  5. package/components/maps/components/GpsMap/contexts/MapContext/store.js +5 -7
  6. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +6 -21
  7. package/components/maps/components/GpsMap/dictionary.js +0 -4
  8. package/components/maps/components/GpsMap/external/MapControl/types.d.ts +1 -2
  9. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +3 -1
  10. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +13 -15
  11. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/index.d.ts +1 -1
  12. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/subcomponents/FeatureDivIconLabel/index.js +33 -0
  13. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/types.d.ts +1 -1
  14. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +1 -2
  15. package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
  16. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +5 -4
  17. package/components/maps/components/GpsMap/icons.js +0 -5
  18. package/components/maps/components/GpsMap/slots/slots.d.ts +2 -2
  19. package/components/maps/components/GpsMap/slots/slots.js +2 -2
  20. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.d.ts +23 -0
  21. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.js +32 -0
  22. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +0 -12
  23. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +7 -9
  24. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts +4 -0
  25. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +41 -0
  26. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/types.d.ts +2 -2
  27. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.js +9 -9
  28. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +5 -0
  29. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +61 -0
  30. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +7 -0
  31. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.js +38 -0
  32. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +5 -0
  33. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/index.js +4 -6
  34. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.js +1 -1
  35. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/types.d.ts +7 -0
  36. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
  37. package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.js +2 -2
  38. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +13 -0
  39. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.d.ts +1 -1
  40. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.js +3 -39
  41. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.d.ts +1 -1
  42. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.js +1 -1
  43. package/components/maps/components/GpsMap/types.d.ts +95 -8
  44. package/components/maps/components/GpsMapTools/constants.d.ts +1 -5
  45. package/components/maps/components/GpsMapTools/constants.js +2 -69
  46. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.d.ts +21 -0
  47. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js +20 -0
  48. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +1 -21
  49. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +1 -48
  50. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +1 -1
  51. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +54 -58
  52. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +20 -79
  53. package/components/maps/components/GpsMapTools/dictionary.d.ts +67 -53
  54. package/components/maps/components/GpsMapTools/dictionary.js +58 -50
  55. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +1 -1
  56. package/components/maps/components/GpsMapTools/icons.d.ts +58 -17
  57. package/components/maps/components/GpsMapTools/icons.js +45 -18
  58. package/components/maps/components/GpsMapTools/index.d.ts +4 -5
  59. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.d.ts +4 -0
  60. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js +16 -0
  61. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.d.ts +12 -0
  62. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.js +52 -0
  63. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts +9 -0
  64. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +17 -0
  65. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +8 -0
  66. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.js +88 -0
  67. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts +27 -0
  68. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.js +79 -0
  69. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.d.ts +16 -0
  70. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +57 -0
  71. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.d.ts +19 -0
  72. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.js +57 -0
  73. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.d.ts +5 -0
  74. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.js +32 -0
  75. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.d.ts +5 -0
  76. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.js +20 -0
  77. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLayers.js +32 -0
  78. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts +8 -0
  79. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.js +104 -0
  80. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +7 -0
  81. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.js +39 -0
  82. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.d.ts +12 -0
  83. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.js +55 -0
  84. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.d.ts +2 -2
  85. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.js +30 -35
  86. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.d.ts +18 -0
  87. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.js +70 -0
  88. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.d.ts +17 -0
  89. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.js +48 -0
  90. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/index.d.ts +1 -0
  91. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents → GeofencesTool}/model.d.ts +40 -12
  92. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts +5 -0
  93. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +45 -0
  94. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +3 -0
  95. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +31 -0
  96. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.d.ts +6 -15
  97. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.js +32 -15
  98. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +1 -1
  99. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +108 -85
  100. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts +10 -0
  101. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +98 -0
  102. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +1 -3
  103. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +23 -24
  104. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +6 -3
  105. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +67 -0
  106. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.js +78 -0
  107. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.d.ts +8 -0
  108. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.js +43 -0
  109. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +6 -0
  110. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +3 -1
  111. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +6 -1
  112. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.d.ts +5 -0
  113. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.js +19 -0
  114. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.d.ts +9 -0
  115. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.js +64 -0
  116. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +2 -2
  117. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +7 -10
  118. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.d.ts +11 -0
  119. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.js +19 -0
  120. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.d.ts +9 -0
  121. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.js +17 -0
  122. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +15 -22
  123. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +9 -0
  124. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/types.d.ts +17 -11
  125. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts +5 -0
  126. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.js +163 -0
  127. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/constants.d.ts +1 -0
  128. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.d.ts +17 -0
  129. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.js +35 -0
  130. package/components/maps/components/GpsMapTools/types.d.ts +0 -18
  131. package/components/maps/index.d.ts +1 -1
  132. package/index.js +65 -66
  133. package/package.json +3 -2
  134. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +0 -4
  135. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +0 -263
  136. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +0 -33
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +0 -10
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +0 -10
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.d.ts +0 -4
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.js +0 -52
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +0 -2
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +0 -4
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +0 -5
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -9
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +0 -58
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +0 -9
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +0 -4
  148. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +0 -5
  149. package/components/maps/components/GpsMapTools/GpsMapTools.js +0 -10
  150. package/components/maps/components/GpsMapTools/classes/index.d.ts +0 -7
  151. package/components/maps/components/GpsMapTools/classes/index.js +0 -21
  152. package/components/maps/components/GpsMapTools/classes/types.d.ts +0 -14
  153. package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +0 -57
  154. package/components/maps/components/GpsMapTools/styles.d.ts +0 -1
  155. package/components/maps/components/GpsMapTools/styles.js +0 -18
  156. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +0 -9
  157. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +0 -84
  158. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
  159. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +0 -40
  160. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +0 -36
  161. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +0 -5
  162. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +0 -71
  163. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +0 -1
  164. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +0 -8
  165. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +0 -51
  166. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -128
  167. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
  168. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -5
  169. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +0 -55
  170. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
  171. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +0 -76
  172. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +0 -7
  173. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
  174. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
  175. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +0 -86
  176. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -7
  177. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +0 -85
  178. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -12
  179. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +0 -111
  180. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -22
  181. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +0 -164
  182. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
  183. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +0 -73
  184. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +0 -1
  185. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +0 -8
  186. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -9
  187. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +0 -49
  188. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +0 -7
  189. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +0 -13
  190. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +0 -7
  191. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.d.ts +0 -0
  192. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/types.d.ts +0 -0
  193. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.d.ts +0 -0
  194. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.js +0 -0
  195. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +0 -0
  196. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.js +0 -0
  197. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/types.d.ts +0 -0
  198. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +0 -0
  199. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +0 -0
  200. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.d.ts +0 -0
  201. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.js +0 -0
  202. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.d.ts +0 -0
  203. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.js +0 -0
  204. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +0 -0
  205. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +0 -0
  206. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/types.d.ts +0 -0
  207. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/types.d.ts +0 -0
  208. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.d.ts +0 -0
  209. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.js +0 -0
  210. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +0 -0
  211. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +0 -0
  212. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +0 -0
  213. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +0 -0
  214. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.d.ts +0 -0
  215. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.js +0 -0
  216. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.d.ts +0 -0
  217. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.js +0 -0
  218. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +0 -0
  219. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.js +0 -0
  220. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +0 -0
  221. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.js +0 -0
  222. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +0 -0
  223. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.js +0 -0
  224. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +0 -0
  225. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +0 -0
  226. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/types.d.ts +0 -0
  227. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/types.d.ts +0 -0
  228. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.d.ts +0 -0
  229. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.js +0 -0
  230. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.d.ts +0 -0
  231. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.js +0 -0
  232. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.d.ts +0 -0
  233. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.js +0 -0
  234. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +0 -0
  235. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +0 -0
  236. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +0 -0
  237. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +0 -0
  238. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -0
  239. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.js +0 -0
  240. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/model.d.ts +0 -0
  241. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.d.ts +0 -0
  242. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.js +0 -0
  243. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.d.ts +0 -0
  244. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.js +0 -0
  245. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -0
  246. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +0 -0
  247. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -0
  248. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -0
  249. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +0 -0
  250. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -0
  251. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.js +0 -0
  252. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/types.d.ts +0 -0
  253. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.d.ts +0 -0
  254. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.d.ts +0 -0
  255. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.js +0 -0
  256. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  257. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  258. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/types.d.ts +0 -0
  259. /package/components/maps/components/GpsMapTools/{hooks/useLayers/index.d.ts → subcomponents/GeofencesTool/hooks/useLayers.d.ts} +0 -0
  260. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -0
  261. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.js +0 -0
  262. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -0
  263. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -0
  264. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -0
  265. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +0 -0
  266. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.d.ts} +0 -0
  267. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel}/types.d.ts +0 -0
  268. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -0
  269. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -0
  270. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -0
@@ -1,10 +1,12 @@
1
- import { useState, useRef, useEffect, useCallback } from "react";
1
+ import { useState, useRef, useEffect, useCallback, useMemo } from "react";
2
2
  import { useFormContext, useWatch } from "react-hook-form";
3
3
  import { useModuleDictionary } from "@m4l/core";
4
4
  import { useMap } from "react-leaflet";
5
+ import * as L from "leaflet";
5
6
  import { g as getLayerFromGeometry } from "../helpers.js";
6
7
  import { useFormReadyForUpdate } from "@m4l/components";
7
8
  import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../dictionary.js";
9
+ import { g as getStyleFromProperties } from "../../../helpers.js";
8
10
  function useDrawing() {
9
11
  const { getLabel } = useModuleDictionary();
10
12
  const readyToUpdate = useFormReadyForUpdate();
@@ -13,7 +15,7 @@ function useDrawing() {
13
15
  const fieldsWatch = useWatch({
14
16
  control,
15
17
  name: [
16
- "geofenceType",
18
+ "geofenceTypeId",
17
19
  "inEdition",
18
20
  "properties.strokeColor",
19
21
  "properties.strokeOpacity",
@@ -22,31 +24,46 @@ function useDrawing() {
22
24
  "properties.fillColor",
23
25
  "properties.fillOpacity",
24
26
  "geometry",
25
- "properties.radius"
27
+ "properties.radius",
28
+ "statusLoad"
26
29
  ]
27
30
  });
28
- const geofenceTypeId = fieldsWatch[0]?.id;
31
+ const geofenceTypeId = fieldsWatch[0];
29
32
  const inEdition = fieldsWatch[1];
30
33
  const strokeColor = fieldsWatch[2];
31
- const strokeOpacity = fieldsWatch[3].value;
32
- const strokeWeight = fieldsWatch[4].value;
33
- const strokeDashArray = fieldsWatch[5].value;
34
+ const strokeOpacity = fieldsWatch[3];
35
+ const strokeWeight = fieldsWatch[4];
36
+ const strokeDashArray = fieldsWatch[5];
34
37
  const fillColor = fieldsWatch[6];
35
- const fillOpacity = fieldsWatch[7].value;
38
+ const fillOpacity = fieldsWatch[7];
36
39
  const geometry = fieldsWatch[8];
37
40
  const radius = fieldsWatch[9];
38
- const [drawing, setDrawing] = useState(false);
41
+ const [isDrawing, setIsDrawing] = useState(false);
39
42
  const currentLayer = useRef(null);
40
- const [geometrTypeIdCached, setgeofenceTypeIdCached] = useState(geofenceTypeId);
43
+ const refProperties = useRef(getStyleFromProperties({
44
+ strokeColor,
45
+ strokeOpacity,
46
+ strokeWeight,
47
+ strokeDashArray,
48
+ fillColor,
49
+ fillOpacity
50
+ }));
51
+ refProperties.current = getStyleFromProperties({
52
+ strokeColor,
53
+ strokeOpacity,
54
+ strokeWeight,
55
+ strokeDashArray,
56
+ fillColor,
57
+ fillOpacity
58
+ });
59
+ const [geometrTypeIdCached, setGeofenceTypeIdCached] = useState(geofenceTypeId);
41
60
  useEffect(() => {
61
+ if (!readyToUpdate) {
62
+ return;
63
+ }
42
64
  if (geometry) {
43
65
  currentLayer.current = getLayerFromGeometry(geometry, geofenceTypeId, radius, {
44
- color: strokeColor,
45
- opacity: strokeOpacity,
46
- weight: strokeWeight,
47
- dashArray: strokeDashArray,
48
- fillColor,
49
- fillOpacity
66
+ ...refProperties.current
50
67
  });
51
68
  if (currentLayer.current) {
52
69
  map.addLayer(currentLayer.current);
@@ -58,43 +75,63 @@ function useDrawing() {
58
75
  currentLayer.current.remove();
59
76
  }
60
77
  };
61
- }, [map]);
78
+ }, [map, readyToUpdate]);
79
+ useEffect(() => {
80
+ if (!readyToUpdate) {
81
+ if (geometrTypeIdCached !== geofenceTypeId) {
82
+ setGeofenceTypeIdCached(geofenceTypeId);
83
+ }
84
+ return;
85
+ }
86
+ if (geofenceTypeId !== geometrTypeIdCached) {
87
+ setGeofenceTypeIdCached(geofenceTypeId);
88
+ if (geometrTypeIdCached !== "gt_circle") {
89
+ setValue("properties.radius", null, { shouldDirty: true });
90
+ setValue("lat", null, { shouldDirty: true });
91
+ setValue("lng", null, { shouldDirty: true });
92
+ }
93
+ setValue("geometry", null, { shouldDirty: true });
94
+ if (currentLayer.current) {
95
+ currentLayer.current.remove();
96
+ currentLayer.current = null;
97
+ }
98
+ }
99
+ }, [readyToUpdate, geofenceTypeId]);
62
100
  useEffect(() => {
63
101
  if (currentLayer.current) {
64
- currentLayer.current.setStyle({
65
- color: strokeColor,
66
- opacity: strokeOpacity,
67
- weight: strokeWeight,
68
- dashArray: strokeDashArray,
69
- fillColor,
70
- fillOpacity
71
- });
102
+ currentLayer.current.setStyle(refProperties.current);
72
103
  }
73
104
  }, [strokeColor, strokeOpacity, strokeWeight, strokeDashArray, fillColor, fillOpacity]);
74
105
  useEffect(() => {
75
106
  map.pm.setLang("en", {
76
107
  tooltips: {
77
108
  placeMarker: void 0,
78
- firstVertex: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FIRST_VERTEX),
79
- continueLine: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CONTINUE_LINE),
80
- finishLine: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH_LINE),
81
- finishPoly: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH_POLY),
82
- finishRect: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH_RECT),
83
- startCircle: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_START_CIRCLE),
84
- finishCircle: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH_CIRCLE),
85
- placeCircleMarker: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_PLACE_CIRCLE_MARKER)
109
+ firstVertex: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_FIRST_VERTEX),
110
+ continueLine: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_CONTINUE_LINE),
111
+ finishLine: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_FINISH_LINE),
112
+ finishPoly: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_FINISH_POLYLINE),
113
+ finishRect: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_FINISH_RECT),
114
+ startCircle: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_START_CIRCLE),
115
+ finishCircle: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_FINISH_CIRCLE),
116
+ placeCircleMarker: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMAN_PLACE_CIRCLE_MARKER)
86
117
  }
87
118
  });
88
119
  }, [map, getLabel]);
89
120
  useEffect(() => {
90
121
  if (map) {
91
122
  let shape = "Circle";
123
+ let pmShape = "Circle";
92
124
  if (geometrTypeIdCached === "gt_polygon") {
93
125
  shape = "Polygon";
126
+ pmShape = "Polygon";
127
+ } else if (geometrTypeIdCached === "gt_multipolygon") {
128
+ shape = "MultiPolygon";
129
+ pmShape = "Polygon";
94
130
  } else if (geometrTypeIdCached === "gt_rectangle") {
95
131
  shape = "Rectangle";
132
+ pmShape = "Rectangle";
96
133
  }
97
- if (drawing) {
134
+ if (isDrawing) {
98
135
  if (!currentLayer.current) {
99
136
  setValue("inEdition", true);
100
137
  if (shape === "Circle") {
@@ -117,38 +154,44 @@ function useDrawing() {
117
154
  });
118
155
  });
119
156
  setValue("properties.subType", shape);
120
- } else if (shape === "Polygon") {
157
+ } else if (shape === "Polygon" || shape === "MultiPolygon") {
121
158
  map.on("pm:drawstart", ({ workingLayer }) => {
122
159
  workingLayer.on("pm:vertexadded", (e) => {
123
160
  const layer = e.workingLayer;
124
- layer.setStyle({
125
- color: strokeColor,
126
- opacity: strokeOpacity,
127
- weight: strokeWeight,
128
- dashArray: strokeDashArray,
129
- fillColor,
130
- fillOpacity
131
- });
161
+ layer.setStyle(refProperties.current);
132
162
  });
133
163
  });
134
164
  }
135
- map.pm.enableDraw(shape);
136
- map.pm.setPathOptions({
137
- color: strokeColor,
138
- opacity: strokeOpacity,
139
- weight: strokeWeight,
140
- dashArray: strokeDashArray,
141
- fillColor,
142
- fillOpacity
143
- });
165
+ map.pm.enableDraw(pmShape);
166
+ map.pm.setPathOptions(refProperties.current);
144
167
  map.on("pm:create", (e) => {
145
- currentLayer.current = e.layer;
146
- setValue("geometry", currentLayer.current.toGeoJSON()?.geometry, {
147
- shouldTouch: false,
148
- shouldValidate: true
149
- });
168
+ const layer = e.layer;
169
+ const geoJSONgeometry = layer.toGeoJSON()?.geometry;
170
+ if (shape === "MultiPolygon" && geoJSONgeometry?.type === "Polygon") {
171
+ const multiPolygonGeometry = {
172
+ type: "MultiPolygon",
173
+ coordinates: [geoJSONgeometry.coordinates]
174
+ };
175
+ map.removeLayer(layer);
176
+ currentLayer.current = L.geoJSON(multiPolygonGeometry, {
177
+ style: refProperties.current
178
+ });
179
+ map.addLayer(currentLayer.current);
180
+ setValue("geometry", multiPolygonGeometry, {
181
+ shouldTouch: true,
182
+ shouldValidate: true,
183
+ shouldDirty: true
184
+ });
185
+ } else {
186
+ currentLayer.current = layer;
187
+ setValue("geometry", geoJSONgeometry, {
188
+ shouldTouch: true,
189
+ shouldValidate: true,
190
+ shouldDirty: true
191
+ });
192
+ }
150
193
  setValue("inEdition", false);
151
- setDrawing(false);
194
+ setIsDrawing(false);
152
195
  });
153
196
  } else {
154
197
  currentLayer.current.pm.enable();
@@ -156,11 +199,12 @@ function useDrawing() {
156
199
  currentLayer.current.on("pm:disable", (e) => {
157
200
  currentLayer.current = e.layer;
158
201
  setValue("geometry", currentLayer.current.toGeoJSON()?.geometry, {
159
- shouldTouch: false,
160
- shouldValidate: true
202
+ shouldTouch: true,
203
+ shouldValidate: true,
204
+ shouldDirty: true
161
205
  });
162
206
  setValue("inEdition", false);
163
- setDrawing(false);
207
+ setIsDrawing(false);
164
208
  });
165
209
  if (shape === "Circle") {
166
210
  currentLayer.current.on("pm:change", (e) => {
@@ -179,37 +223,16 @@ function useDrawing() {
179
223
  map.off("pm:drawstart");
180
224
  }
181
225
  }
182
- }, [map, drawing]);
226
+ }, [map, isDrawing]);
183
227
  const handleDraw = useCallback(() => {
184
- setDrawing(true);
228
+ setIsDrawing(true);
185
229
  }, []);
186
230
  const handleFinish = useCallback(() => {
187
231
  if (currentLayer.current) {
188
232
  currentLayer.current.pm.disable();
189
- currentLayer.current.setStyle({ color: "#ff0000", fillColor: "#ff0000" });
190
233
  }
191
234
  }, []);
192
- useEffect(() => {
193
- if (!readyToUpdate) {
194
- return;
195
- }
196
- if (geofenceTypeId) {
197
- if (geofenceTypeId !== geometrTypeIdCached) {
198
- setgeofenceTypeIdCached(geofenceTypeId);
199
- if (geometrTypeIdCached !== "gt_circle") {
200
- setValue("properties.radius", null);
201
- setValue("lat", null);
202
- setValue("lng", null);
203
- }
204
- setValue("geometry", null);
205
- if (currentLayer.current) {
206
- currentLayer.current.remove();
207
- currentLayer.current = null;
208
- }
209
- }
210
- }
211
- }, [geofenceTypeId]);
212
- return { inEdition, handleDraw, handleFinish, geometrTypeIdCached };
235
+ return useMemo(() => ({ inEdition, handleDraw, handleFinish, geometrTypeIdCached }), [inEdition, handleDraw, handleFinish, geometrTypeIdCached]);
213
236
  }
214
237
  export {
215
238
  useDrawing as u
@@ -0,0 +1,10 @@
1
+ import { FormAddEditValues, GeofenceAddEditProps } from '../types';
2
+ /**
3
+ * useForm hook is responsible for managing the form of the account contract parts
4
+ */
5
+ declare const useForm: (props: GeofenceAddEditProps) => {
6
+ steps: import('@m4l/components').TypeStep[];
7
+ formValues: FormAddEditValues;
8
+ statusLoad: import('@m4l/components').FormStatusLoad;
9
+ };
10
+ export default useForm;
@@ -0,0 +1,98 @@
1
+ import { useEffect, useMemo } from "react";
2
+ import { useWindowToolsMF, deepShallow, getStepsAndValidationSchema } from "@m4l/components";
3
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
+ import { useFormAddEdit } from "@m4l/layouts";
5
+ import { u as useGpsMapToolsStore } from "../../../../../hooks/useGpsMapToolsStore/index.js";
6
+ import { f as formatDataEndpoint } from "../helpers.js";
7
+ import { E as ENDPOINT_GEOFENCES_GET } from "../../../constants.js";
8
+ import { i as initialValues } from "../constants.js";
9
+ import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../dictionary.js";
10
+ import { G as GeneralDataValidation } from "../subcomponents/GeneralData/validations.js";
11
+ import { M as MAP_GPSTOOLS_ICONS } from "../../../../../icons.js";
12
+ import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../constants.js";
13
+ import { shallow } from "zustand/shallow";
14
+ const useForm = (props) => {
15
+ const { geofenceId } = props;
16
+ const { getLabel } = useModuleDictionary();
17
+ const { host_static_assets, environment_assets } = useEnvironment();
18
+ const { startProgress, stopProgress } = useWindowToolsMF();
19
+ const { addOrReplaceGeofence } = useGpsMapToolsStore((state) => state.geofenceActions, shallow);
20
+ const [finalInitalValues, omitCallEnpoint] = useGpsMapToolsStore((state) => {
21
+ if (geofenceId === void 0) {
22
+ return [initialValues, false];
23
+ }
24
+ const geofence = state.geofenceState.hashGeofences[geofenceId];
25
+ if (geofence?.geometry) {
26
+ const emulateResponse = {
27
+ data: {
28
+ type: geofence.type,
29
+ name: geofence.name,
30
+ id: geofence.id,
31
+ active: false,
32
+ geometry: geofence.geometry,
33
+ properties: geofence.properties,
34
+ createdAt: geofence.createdAt,
35
+ updatedAt: geofence.updatedAt,
36
+ timeMinInSeconds: geofence.timeMinInSeconds,
37
+ timeMinOutSeconds: geofence.timeMinOutSeconds,
38
+ bounds: geofence.bounds,
39
+ alias: geofence.alias,
40
+ customerId: geofence.customerId
41
+ }
42
+ };
43
+ return [formatDataEndpoint(emulateResponse), true];
44
+ } else {
45
+ return [initialValues, false];
46
+ }
47
+ }, deepShallow);
48
+ const { formValues, statusLoad } = useFormAddEdit({
49
+ objectId: geofenceId,
50
+ formatDataEndpoint,
51
+ initialValues: finalInitalValues,
52
+ networkProps: {
53
+ endPoint: `${ENDPOINT_GEOFENCES_GET}/${geofenceId}`,
54
+ responseToCamelCase: true,
55
+ method: "GET",
56
+ options: {
57
+ startProgress,
58
+ stopProgress
59
+ }
60
+ },
61
+ omitCallEnpoint
62
+ });
63
+ useEffect(() => {
64
+ if (statusLoad === "ready" && geofenceId && formValues.createdAt) {
65
+ addOrReplaceGeofence(geofenceId, formValues);
66
+ }
67
+ }, [statusLoad, geofenceId, formValues]);
68
+ const { steps } = useMemo(() => getStepsAndValidationSchema({
69
+ visibilityData: void 0,
70
+ steps: [
71
+ {
72
+ key: "basic-information",
73
+ title: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_BASIC_INFORMATION),
74
+ description: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_BASIC_INFORMATION_DESCRIPTION),
75
+ icon: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_PAPER_GENERAL}`,
76
+ validationFunction: () => GeneralDataValidation(getLabel)
77
+ },
78
+ {
79
+ key: "style-information",
80
+ title: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_STYLE),
81
+ description: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_STYLE_DESCRIPTION),
82
+ icon: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_PAPER_STYLE}`,
83
+ validationFunction: void 0
84
+ }
85
+ // {
86
+ // key: 'allocation',
87
+ // title: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_ASSIGNMENT),
88
+ // description: getLabel(MAP_GPSTOOLS_DICCTIONARY.STEP_ASSIGNMENT_DESCRIPTION),
89
+ // icon: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_PAPER_ASSIGNMENT}`,
90
+ // validationFunction: undefined,
91
+ // },
92
+ ]
93
+ }), [getLabel, host_static_assets, environment_assets]);
94
+ return { steps, formValues, statusLoad };
95
+ };
96
+ export {
97
+ useForm as u
98
+ };
@@ -1,8 +1,6 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { FormAddEditValues, GeofenceAddEditProps } from '../types';
3
- export interface UseSubmitProps extends Pick<GeofenceAddEditProps, 'fullRefresh'> {
4
- objectId?: number;
5
- }
3
+ export type UseSubmitProps = Pick<GeofenceAddEditProps, 'fullRefresh' | 'geofenceId'>;
6
4
  /**
7
5
  * TODO: Documentar
8
6
  */
@@ -1,21 +1,22 @@
1
1
  import { useHostTools, useNetwork } from "@m4l/core";
2
- import { E as ENDPOINT_GEOFENCE_NEW_EDIT } from "../../constants.js";
2
+ import { b as ENDPOINT_GEOFENCES_NEW_EDIT, c as GEOFENCES_TOOL_LIST_POPUP_ID } from "../../../constants.js";
3
+ import { u as useGpsMapToolsStore } from "../../../../../hooks/useGpsMapToolsStore/index.js";
3
4
  import { usePopupsStore } from "@m4l/components";
4
5
  import { shallow } from "zustand/shallow";
5
- import { u as useGpsMapToolsStore } from "../../../../../hooks/useGpsMapToolsStore/index.js";
6
+ import { G as GEOFENCES_TOOL_ADD_EDIT_POPUP_ID } from "../constants.js";
7
+ import { useCallback } from "react";
6
8
  const getSummitData = (values, geofenceId) => {
7
9
  const newEditObj = {
8
10
  name: values.name,
9
- typeId: values.geofenceType.id,
11
+ typeId: values.geofenceTypeId,
10
12
  geometry: values.geometry,
11
13
  properties: {
12
- subType: values.properties.subType,
13
- strokeColor: values.properties.fillColor,
14
- strokeOpacity: values.properties.strokeOpacity.value,
15
- strokeWeight: values.properties.strokeWeight.value,
16
- strokeDashArray: values.properties.strokeDashArray.value,
14
+ strokeColor: values.properties.strokeColor,
15
+ strokeOpacity: values.properties.strokeOpacity,
16
+ strokeWeight: values.properties.strokeWeight,
17
+ strokeDashArray: values.properties.strokeDashArray,
17
18
  fillColor: values.properties.fillColor,
18
- fillOpacity: values.properties.fillOpacity.value
19
+ fillOpacity: values.properties.fillOpacity
19
20
  },
20
21
  timeMinInSeconds: values.timeMinInSeconds,
21
22
  timeMinOutSeconds: values.timeMinOutSeconds,
@@ -23,39 +24,37 @@ const getSummitData = (values, geofenceId) => {
23
24
  customerId: values.customerId,
24
25
  ...geofenceId ? { geofenceId } : {}
25
26
  };
26
- if (values.geofenceType.id === "gt_circle") {
27
+ if (values.geofenceTypeId === "gt_circle") {
27
28
  newEditObj.properties.radius = values.properties.radius;
28
29
  }
29
30
  return newEditObj;
30
31
  };
31
32
  function useSubmit(props) {
32
- const { objectId, fullRefresh } = props;
33
+ const { geofenceId, fullRefresh } = props;
33
34
  const { toast } = useHostTools();
34
35
  const { networkOperation } = useNetwork();
35
36
  const { close, show } = usePopupsStore((state) => state.popupActions);
36
- const { addCheckedGeofence } = useGpsMapToolsStore((state) => state.geofenceActions, shallow);
37
- const onSubmit = async (data) => {
37
+ const { addCheckedGeofence, addOrReplaceGeofence } = useGpsMapToolsStore((state) => state.geofenceActions, shallow);
38
+ const onSubmit = useCallback(async (data) => {
38
39
  await networkOperation({
39
- method: objectId ? "PUT" : "POST",
40
- endPoint: `${ENDPOINT_GEOFENCE_NEW_EDIT}${objectId ? `/${objectId}` : ""}`,
41
- data: getSummitData(data, objectId),
40
+ method: geofenceId ? "PUT" : "POST",
41
+ endPoint: `${ENDPOINT_GEOFENCES_NEW_EDIT}${geofenceId ? `/${geofenceId}` : ""}`,
42
+ data: getSummitData(data, geofenceId),
42
43
  toastError: true,
43
44
  toastSuccess: false,
44
45
  bodyToSnakeCase: true,
45
- isRemote: false
46
+ responseToCamelCase: true
46
47
  }).then((response) => {
47
- toast({ title: response.message }, { type: "success" });
48
- close("geofencesAddEdit");
49
- show("gpsTools");
50
- if (objectId !== void 0) {
51
- addCheckedGeofence(objectId);
52
- }
48
+ addOrReplaceGeofence(response.data.id, response.data, true);
53
49
  if (fullRefresh) {
54
50
  fullRefresh();
55
51
  }
52
+ toast({ title: response.message }, { type: "success" });
53
+ close(GEOFENCES_TOOL_ADD_EDIT_POPUP_ID, false);
54
+ show(GEOFENCES_TOOL_LIST_POPUP_ID);
56
55
  }).catch(() => {
57
56
  });
58
- };
57
+ }, [geofenceId, fullRefresh, toast, close, show, addCheckedGeofence, networkOperation]);
59
58
  return { onSubmit };
60
59
  }
61
60
  export {
@@ -7,19 +7,22 @@ export declare function useValidation(): {
7
7
  timeMinInSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
8
8
  timeMinOutSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
9
9
  name: import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
10
+ inEdition: Yup.BooleanSchema<boolean | undefined, import('yup/lib/types').AnyObject, boolean | undefined>;
10
11
  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>;
11
- geofenceType: 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>;
12
+ geofenceTypeId: import('yup/lib/string').RequiredStringSchema<string | null | undefined, import('yup/lib/types').AnyObject>;
12
13
  }>, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, {
13
14
  timeMinInSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
14
15
  timeMinOutSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
15
16
  name: import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
17
+ inEdition: Yup.BooleanSchema<boolean | undefined, import('yup/lib/types').AnyObject, boolean | undefined>;
16
18
  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>;
17
- geofenceType: 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>;
19
+ geofenceTypeId: import('yup/lib/string').RequiredStringSchema<string | null | undefined, import('yup/lib/types').AnyObject>;
18
20
  }>>, import('yup/lib/object').AssertsShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, {
19
21
  timeMinInSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
20
22
  timeMinOutSeconds: import('yup/lib/number').RequiredNumberSchema<number | null | undefined, import('yup/lib/types').AnyObject>;
21
23
  name: import('yup/lib/string').RequiredStringSchema<string | undefined, import('yup/lib/types').AnyObject>;
24
+ inEdition: Yup.BooleanSchema<boolean | undefined, import('yup/lib/types').AnyObject, boolean | undefined>;
22
25
  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>;
23
- geofenceType: 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>;
26
+ geofenceTypeId: import('yup/lib/string').RequiredStringSchema<string | null | undefined, import('yup/lib/types').AnyObject>;
24
27
  }>>>;
25
28
  };
@@ -0,0 +1,67 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
+ import { PaperForm, RHFTextField, RHFNumberInput, Typography, Icon } from "@m4l/components";
4
+ import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../../dictionary.js";
5
+ import { M as MAP_GPSTOOLS_ICONS } from "../../../../../../icons.js";
6
+ import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../../../../constants.js";
7
+ function ConfigData() {
8
+ const { getLabel } = useModuleDictionary();
9
+ const { host_static_assets, environment_assets } = useEnvironment();
10
+ return /* @__PURE__ */ jsxs(PaperForm, { urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_CONFIG}`, title: getLabel(MAP_GPSTOOLS_DICCTIONARY.PAPER_CONFIG), isForm: true, variant: "text", 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
+ RHFNumberInput,
31
+ {
32
+ name: "timeMinInSeconds",
33
+ disabled: false,
34
+ withDecimal: false,
35
+ startAdornment: /* @__PURE__ */ jsx(
36
+ Icon,
37
+ {
38
+ src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TIME_MIN_IN}`
39
+ }
40
+ ),
41
+ endAdornment: /* @__PURE__ */ jsx(Typography, { children: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_UNIT_SECONDS}`) }),
42
+ label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_MIN_IN}`),
43
+ min: 0
44
+ }
45
+ ),
46
+ /* @__PURE__ */ jsx(
47
+ RHFNumberInput,
48
+ {
49
+ name: "timeMinOutSeconds",
50
+ startAdornment: /* @__PURE__ */ jsx(
51
+ Icon,
52
+ {
53
+ src: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCES_TIME_MIN_OUT}`
54
+ }
55
+ ),
56
+ endAdornment: /* @__PURE__ */ jsx(Typography, { children: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_UNIT_SECONDS}`) }),
57
+ disabled: false,
58
+ withDecimal: false,
59
+ label: getLabel(`${MAP_GPSTOOLS_DICCTIONARY.LABEL_TIME_MIN_OUT}`),
60
+ min: 0
61
+ }
62
+ )
63
+ ] });
64
+ }
65
+ export {
66
+ ConfigData as C
67
+ };