@m4l/gclick 0.2.0 → 0.2.3-beta.1

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