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