@m4l/gclick 0.2.0 → 0.2.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/components/maps/components/GpsMap/GpsMap.js +3 -3
  2. package/components/maps/components/GpsMap/GpsMap.styles.js +74 -4
  3. package/components/maps/components/GpsMap/constants.d.ts +3 -1
  4. package/components/maps/components/GpsMap/constants.js +9 -41
  5. package/components/maps/components/GpsMap/contexts/MapContext/store.js +5 -7
  6. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +6 -21
  7. package/components/maps/components/GpsMap/dictionary.js +0 -4
  8. package/components/maps/components/GpsMap/external/MapControl/types.d.ts +1 -2
  9. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +3 -1
  10. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +13 -15
  11. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/index.d.ts +1 -1
  12. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/subcomponents/FeatureDivIconLabel/index.js +33 -0
  13. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/types.d.ts +1 -1
  14. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +1 -2
  15. package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
  16. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +5 -4
  17. package/components/maps/components/GpsMap/icons.js +0 -5
  18. package/components/maps/components/GpsMap/slots/slots.d.ts +2 -2
  19. package/components/maps/components/GpsMap/slots/slots.js +2 -2
  20. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.d.ts +23 -0
  21. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.js +32 -0
  22. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +0 -12
  23. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +7 -9
  24. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts +4 -0
  25. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +41 -0
  26. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/types.d.ts +2 -2
  27. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.js +9 -9
  28. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +5 -0
  29. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +61 -0
  30. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +7 -0
  31. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.js +38 -0
  32. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +5 -0
  33. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/index.js +4 -6
  34. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.js +1 -1
  35. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/types.d.ts +7 -0
  36. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
  37. package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.js +2 -2
  38. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +13 -0
  39. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.d.ts +1 -1
  40. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.js +3 -39
  41. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.d.ts +1 -1
  42. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.js +1 -1
  43. package/components/maps/components/GpsMap/types.d.ts +95 -8
  44. package/components/maps/components/GpsMapTools/constants.d.ts +1 -5
  45. package/components/maps/components/GpsMapTools/constants.js +2 -69
  46. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.d.ts +21 -0
  47. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js +20 -0
  48. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +1 -21
  49. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +1 -48
  50. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +1 -1
  51. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +54 -58
  52. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +20 -79
  53. package/components/maps/components/GpsMapTools/dictionary.d.ts +67 -53
  54. package/components/maps/components/GpsMapTools/dictionary.js +58 -50
  55. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +1 -1
  56. package/components/maps/components/GpsMapTools/icons.d.ts +58 -17
  57. package/components/maps/components/GpsMapTools/icons.js +45 -18
  58. package/components/maps/components/GpsMapTools/index.d.ts +4 -5
  59. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.d.ts +4 -0
  60. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js +16 -0
  61. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.d.ts +12 -0
  62. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.js +52 -0
  63. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts +9 -0
  64. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +17 -0
  65. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +8 -0
  66. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.js +88 -0
  67. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts +27 -0
  68. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.js +79 -0
  69. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.d.ts +16 -0
  70. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +57 -0
  71. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.d.ts +19 -0
  72. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.js +57 -0
  73. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.d.ts +5 -0
  74. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.js +32 -0
  75. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.d.ts +5 -0
  76. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.js +20 -0
  77. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLayers.js +32 -0
  78. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts +8 -0
  79. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.js +104 -0
  80. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +7 -0
  81. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.js +39 -0
  82. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.d.ts +12 -0
  83. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.js +55 -0
  84. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.d.ts +2 -2
  85. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.js +30 -35
  86. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.d.ts +18 -0
  87. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.js +70 -0
  88. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.d.ts +17 -0
  89. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.js +48 -0
  90. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/index.d.ts +1 -0
  91. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents → GeofencesTool}/model.d.ts +40 -12
  92. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts +5 -0
  93. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +45 -0
  94. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +3 -0
  95. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +31 -0
  96. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.d.ts +6 -15
  97. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.js +32 -15
  98. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +1 -1
  99. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +108 -85
  100. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts +10 -0
  101. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +98 -0
  102. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +1 -3
  103. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +23 -24
  104. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +6 -3
  105. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +67 -0
  106. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.js +78 -0
  107. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.d.ts +8 -0
  108. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.js +43 -0
  109. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +6 -0
  110. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +3 -1
  111. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +6 -1
  112. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.d.ts +5 -0
  113. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.js +19 -0
  114. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.d.ts +9 -0
  115. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.js +64 -0
  116. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +2 -2
  117. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +7 -10
  118. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.d.ts +11 -0
  119. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.js +19 -0
  120. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.d.ts +9 -0
  121. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.js +17 -0
  122. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +15 -22
  123. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +9 -0
  124. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/types.d.ts +17 -11
  125. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts +5 -0
  126. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.js +163 -0
  127. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/constants.d.ts +1 -0
  128. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.d.ts +17 -0
  129. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.js +35 -0
  130. package/components/maps/components/GpsMapTools/types.d.ts +0 -18
  131. package/components/maps/index.d.ts +1 -1
  132. package/index.js +65 -66
  133. package/package.json +3 -2
  134. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +0 -4
  135. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +0 -263
  136. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +0 -33
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +0 -10
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +0 -10
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.d.ts +0 -4
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.js +0 -52
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +0 -2
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +0 -4
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +0 -5
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -9
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +0 -58
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +0 -9
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +0 -4
  148. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +0 -5
  149. package/components/maps/components/GpsMapTools/GpsMapTools.js +0 -10
  150. package/components/maps/components/GpsMapTools/classes/index.d.ts +0 -7
  151. package/components/maps/components/GpsMapTools/classes/index.js +0 -21
  152. package/components/maps/components/GpsMapTools/classes/types.d.ts +0 -14
  153. package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +0 -57
  154. package/components/maps/components/GpsMapTools/styles.d.ts +0 -1
  155. package/components/maps/components/GpsMapTools/styles.js +0 -18
  156. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +0 -9
  157. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +0 -84
  158. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
  159. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +0 -40
  160. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +0 -36
  161. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +0 -5
  162. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +0 -71
  163. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +0 -1
  164. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +0 -8
  165. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +0 -51
  166. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -128
  167. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
  168. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -5
  169. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +0 -55
  170. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
  171. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +0 -76
  172. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +0 -7
  173. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
  174. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
  175. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +0 -86
  176. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -7
  177. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +0 -85
  178. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -12
  179. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +0 -111
  180. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -22
  181. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +0 -164
  182. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
  183. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +0 -73
  184. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +0 -1
  185. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +0 -8
  186. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -9
  187. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +0 -49
  188. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +0 -7
  189. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +0 -13
  190. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +0 -7
  191. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.d.ts +0 -0
  192. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/types.d.ts +0 -0
  193. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.d.ts +0 -0
  194. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.js +0 -0
  195. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +0 -0
  196. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.js +0 -0
  197. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/types.d.ts +0 -0
  198. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +0 -0
  199. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +0 -0
  200. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.d.ts +0 -0
  201. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.js +0 -0
  202. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.d.ts +0 -0
  203. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.js +0 -0
  204. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +0 -0
  205. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +0 -0
  206. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/types.d.ts +0 -0
  207. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/types.d.ts +0 -0
  208. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.d.ts +0 -0
  209. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.js +0 -0
  210. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +0 -0
  211. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +0 -0
  212. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +0 -0
  213. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +0 -0
  214. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.d.ts +0 -0
  215. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.js +0 -0
  216. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.d.ts +0 -0
  217. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.js +0 -0
  218. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +0 -0
  219. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.js +0 -0
  220. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +0 -0
  221. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.js +0 -0
  222. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +0 -0
  223. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.js +0 -0
  224. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +0 -0
  225. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +0 -0
  226. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/types.d.ts +0 -0
  227. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/types.d.ts +0 -0
  228. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.d.ts +0 -0
  229. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.js +0 -0
  230. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.d.ts +0 -0
  231. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.js +0 -0
  232. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.d.ts +0 -0
  233. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.js +0 -0
  234. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +0 -0
  235. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +0 -0
  236. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +0 -0
  237. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +0 -0
  238. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -0
  239. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.js +0 -0
  240. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/model.d.ts +0 -0
  241. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.d.ts +0 -0
  242. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.js +0 -0
  243. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.d.ts +0 -0
  244. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.js +0 -0
  245. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -0
  246. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +0 -0
  247. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -0
  248. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -0
  249. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +0 -0
  250. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -0
  251. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.js +0 -0
  252. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/types.d.ts +0 -0
  253. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.d.ts +0 -0
  254. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.d.ts +0 -0
  255. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.js +0 -0
  256. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  257. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  258. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/types.d.ts +0 -0
  259. /package/components/maps/components/GpsMapTools/{hooks/useLayers/index.d.ts → subcomponents/GeofencesTool/hooks/useLayers.d.ts} +0 -0
  260. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -0
  261. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.js +0 -0
  262. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -0
  263. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -0
  264. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -0
  265. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +0 -0
  266. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.d.ts} +0 -0
  267. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel}/types.d.ts +0 -0
  268. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -0
  269. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -0
  270. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { T as TileLayers } from "./subcomponents/TileLayers/index.js";
3
3
  import { C as Controls } from "./subcomponents/Controls/index.js";
4
- import { L as LayersContainer } from "./subcomponents/LayersContainer/index.js";
4
+ import { L as LayersContainer } from "./subcomponents/Layers/index.js";
5
5
  import { m as mapClasses } from "./classes/index.js";
6
6
  import { G as GpsMapRootStyled, a as GpsMapContainerStyled } from "./slots/styled.js";
7
7
  import clsx from "clsx";
@@ -10,7 +10,7 @@ import { u as useMapStore } from "./hooks/useMapStore/index.js";
10
10
  import { M as MapEventController } from "./subcomponents/MapEventController/MapEventController.js";
11
11
  function GpsMap(props) {
12
12
  const {
13
- GpsTools,
13
+ tools,
14
14
  center = [6.215749485905093, -75.58622905191254],
15
15
  initalZoom = 16,
16
16
  maxZoom = 22,
@@ -40,7 +40,7 @@ function GpsMap(props) {
40
40
  /* @__PURE__ */ jsx(MapEventController, { disableMapEvents }),
41
41
  /* @__PURE__ */ jsx(TileLayers, {}),
42
42
  /* @__PURE__ */ jsx(LayersContainer, {}),
43
- /* @__PURE__ */ jsx(Controls, { GpsTools }),
43
+ /* @__PURE__ */ jsx(Controls, { tools }),
44
44
  children
45
45
  ]
46
46
  }
@@ -1,7 +1,7 @@
1
1
  import { l as leafletAllStyles } from "./LLeaflet.styles.js";
2
- import { m as mapSourcesToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js";
3
- import { m as mapLayersToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js";
4
- import { m as mapMeasureToolStyles, g as getMapContainerMeasureToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js";
2
+ import { m as mapSourcesToolStyles } from "./subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/MapSourcesTool.styles.js";
3
+ import { m as mapLayersToolStyles } from "./subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.styles.js";
4
+ import { m as mapMeasureToolStyles, g as getMapContainerMeasureToolStyles } from "./subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.styles.js";
5
5
  const mapStyles = {
6
6
  /**
7
7
  * TODO: Documentar
@@ -9,7 +9,77 @@ const mapStyles = {
9
9
  root: () => ({
10
10
  ...leafletAllStyles,
11
11
  width: "100%",
12
- height: "100%"
12
+ height: "100%",
13
+ //GEOMAN
14
+ "& .marker-icon": {
15
+ backgroundColor: "#fff",
16
+ border: "1px solid #3388ff",
17
+ borderRadius: "50%",
18
+ margin: "-8px 0 0 -8px !important",
19
+ width: "14px !important",
20
+ height: "14px !important",
21
+ outline: 0,
22
+ transition: "opacity ease 0.3s"
23
+ },
24
+ "& .marker-icon-middle": {
25
+ opacity: 0.7,
26
+ margin: "-6px 0 0 -6px !important",
27
+ width: "10px !important",
28
+ height: "10px !important"
29
+ },
30
+ "& .leaflet-pm-draggable": {
31
+ cursor: "move !important"
32
+ },
33
+ "& .cursor-marker": {
34
+ cursor: "crosshair",
35
+ pointerEvents: "none",
36
+ opacity: 0
37
+ },
38
+ "& .cursor-marker.visible": {
39
+ opacity: "1 !important"
40
+ },
41
+ "& .geoman-draw-cursor": {
42
+ cursor: "crosshair"
43
+ },
44
+ "& .rect-style-marker, & .rect-start-marker": {
45
+ opacity: 0
46
+ },
47
+ "& .rect-style-marker.visible, & .rect-start-marker.visible": {
48
+ opacity: "1 !important"
49
+ },
50
+ "& .vertexmarker-disabled": {
51
+ opacity: 0.7
52
+ },
53
+ "& .pm-text-marker": {
54
+ width: 0,
55
+ height: 0
56
+ },
57
+ "& .pm-textarea": {
58
+ backgroundColor: "#fff",
59
+ color: "#000",
60
+ resize: "none",
61
+ border: "none",
62
+ outline: 0,
63
+ cursor: "pointer",
64
+ borderRadius: "3px",
65
+ paddingLeft: "7px",
66
+ paddingBottom: 0,
67
+ paddingTop: "4px"
68
+ },
69
+ "& .leaflet-pm-draggable .pm-textarea": {
70
+ cursor: "move"
71
+ },
72
+ "& .pm-textarea:focus, & .pm-textarea:focus-within, & .pm-textarea:focus-visible, & .pm-textarea:active": {
73
+ border: "2px solid #000",
74
+ outline: 0
75
+ },
76
+ "& .pm-textarea.pm-disabled": {
77
+ border: "none",
78
+ userSelect: "none"
79
+ },
80
+ "& .pm-textarea.pm-hasfocus": {
81
+ cursor: "auto"
82
+ }
13
83
  }),
14
84
  /**
15
85
  * Estilos del contenedor del mapa
@@ -11,8 +11,10 @@ export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
11
11
  export declare const MAP_ZINDEX_OVER_MAP = 1100;
12
12
  export declare const TIME_DOUBLE_CLICK = 250;
13
13
  export declare const MARKER_COLOR_DEFAULT = "#1E96DC";
14
- export declare const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
14
+ export declare const LABEL_FILLCOLOR_DEFAULT = "#1E96DC";
15
15
  export declare const LABEL_COLOR_DEFAULT = "#FFFFFF";
16
+ export declare const LABEL_FILLOPACITY_DEFAULT = 1;
17
+ export declare const LABEL_COLOROPACITY_DEFAULT = 1;
16
18
  export declare const GPS_TOOLS_POPUP_ID = "gpsTools";
17
19
  export declare const LAT_LON_FIXED_DIGITS = 8;
18
20
  export declare const MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION: RNDDefaultPosition;
@@ -1,11 +1,8 @@
1
1
  const MAP_COMPONET_KEY_COMPONENT = "M4LMap";
2
2
  const MAP_ZINDEX_DEFAULT = 0;
3
3
  const MAP_ZINDEX_OVER_MAP = 1100;
4
- const TIME_DOUBLE_CLICK = 250;
5
- const MARKER_COLOR_DEFAULT = "#1E96DC";
6
- const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
4
+ const LABEL_FILLCOLOR_DEFAULT = "#1E96DC";
7
5
  const LABEL_COLOR_DEFAULT = "#FFFFFF";
8
- const GPS_TOOLS_POPUP_ID = "gpsTools";
9
6
  const LAT_LON_FIXED_DIGITS = 8;
10
7
  const MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION = {
11
8
  vertical: { top: 16, height: 430 },
@@ -15,47 +12,18 @@ const MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION = {
15
12
  vertical: { top: 16, height: 160 },
16
13
  horizontal: { right: -55, width: 280, magnetize: true }
17
14
  };
18
- const GPS_TOOLS_POPUP_DEFAULT_POSITION = {
19
- vertical: { top: 16, bottom: 50 },
20
- horizontal: { right: -55, width: 280, magnetize: true }
21
- };
22
15
  const MESURE_TOOL_POPUP_DEFAULT_POSITION = {
23
16
  vertical: { top: 16, height: 215 },
24
17
  horizontal: { right: -55, width: 280, magnetize: true }
25
18
  };
26
- const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmlns="http://www.w3.org/2000/svg">
27
- <g>
28
- <circle
29
- cx="320"
30
- cy="320"
31
- r="280"
32
- fill="#1E96DC"
33
- />
34
- <text
35
- x="320"
36
- y="320"
37
- font-size="320"
38
- font-family="sans-serif"
39
- fill="#FFFFFF"
40
- text-anchor="middle"
41
- alignment-baseline="central"
42
- dominant-baseline="central"
43
- >P</text>
44
- </g>
45
- </svg>`;
46
19
  export {
47
- GPS_TOOLS_POPUP_DEFAULT_POSITION as G,
48
- LABEL_BK_COLOR_DEFAULT as L,
20
+ LABEL_FILLCOLOR_DEFAULT as L,
49
21
  MAP_COMPONET_KEY_COMPONENT as M,
50
- SVG_ICON_DEFAULT as S,
51
- TIME_DOUBLE_CLICK as T,
52
- MARKER_COLOR_DEFAULT as a,
53
- LABEL_COLOR_DEFAULT as b,
54
- MAP_ZINDEX_OVER_MAP as c,
55
- MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as d,
56
- MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION as e,
57
- MESURE_TOOL_POPUP_DEFAULT_POSITION as f,
58
- MAP_ZINDEX_DEFAULT as g,
59
- GPS_TOOLS_POPUP_ID as h,
60
- LAT_LON_FIXED_DIGITS as i
22
+ LABEL_COLOR_DEFAULT as a,
23
+ MAP_ZINDEX_OVER_MAP as b,
24
+ MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as c,
25
+ MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION as d,
26
+ MESURE_TOOL_POPUP_DEFAULT_POSITION as e,
27
+ MAP_ZINDEX_DEFAULT as f,
28
+ LAT_LON_FIXED_DIGITS as g
61
29
  };
@@ -3,9 +3,9 @@ import { devtools } from "zustand/middleware";
3
3
  import { immer } from "zustand/middleware/immer";
4
4
  import cloneDeep from "lodash-es/cloneDeep";
5
5
  import merge from "lodash-es/merge";
6
- import { T as TILE_LAYER_OTHERS } from "../../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.js";
7
- import { T as TILE_SORCE_GOOGLE } from "../../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.js";
8
- import { T as TILE_LAYER_BING } from "../../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.js";
6
+ import { T as TILE_LAYER_OTHERS } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/others.js";
7
+ import { T as TILE_SORCE_GOOGLE } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/google.js";
8
+ import { T as TILE_LAYER_BING } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/bing.js";
9
9
  const createDevtools = (immerMiddlewere, config) => {
10
10
  const { enabled = false } = config;
11
11
  if (enabled && process.env.NODE_ENV === "development") {
@@ -139,7 +139,7 @@ const createMapStore = (initProps, storeDevtoolsEnabled = false) => {
139
139
  /**
140
140
  * TODO: Documentar
141
141
  */
142
- setFeatureData: (layerId, featureId, geometry, properties, featureLabel) => {
142
+ setFeatureData: (layerId, featureId, geometry, properties) => {
143
143
  if (!get().hashLayers[layerId]) {
144
144
  throw new Error(`Layer with id ${layerId} not found`);
145
145
  }
@@ -150,14 +150,12 @@ const createMapStore = (initProps, storeDevtoolsEnabled = false) => {
150
150
  if (feature) {
151
151
  feature.geometry = cloneDeep(geometry);
152
152
  feature.properties = merge(feature.properties, properties);
153
- feature.label = featureLabel;
154
153
  } else {
155
154
  feature = {
156
155
  type: "Feature",
157
156
  geometry,
158
157
  id: featureId,
159
- properties,
160
- label: featureLabel
158
+ properties
161
159
  };
162
160
  layer.features.push(feature);
163
161
  }
@@ -128,25 +128,14 @@ export type GeoJsonBaseProperties = {
128
128
  };
129
129
  export interface FeatureIconLabel {
130
130
  label?: string;
131
- labelColor?: string;
132
- labelBkColor?: string;
133
- iconWidth?: number;
134
- iconHeight?: number;
131
+ color?: string;
132
+ opacity?: number;
133
+ fillColor?: string;
134
+ width?: number;
135
+ height?: number;
135
136
  offsetLeftTop?: [number, number];
136
- [name: string]: any;
137
137
  }
138
- export type GeoJsonMarkerProperties = GeoJsonBaseProperties & {
139
- subType: 'Marker';
140
- [name: string]: any;
141
- };
142
- export type GeoJsonPolylineWithArrowsProperties = GeoJsonBaseProperties & {
143
- subType: 'PolylineWithArrows';
144
- };
145
- export type GeoJsonCircleProperties = GeoJsonBaseProperties & {
146
- subType: 'Circle';
147
- radius: number;
148
- };
149
- export type GeoJsonProperties = GeoJsonMarkerProperties | GeoJsonCircleProperties | GeoJsonPolylineWithArrowsProperties;
138
+ export type GeoJsonProperties = GeoJsonBaseProperties;
150
139
  export type LayerWithBounds = Layer;
151
140
  export type FeatureLayerData = {
152
141
  boundsNW: L.LatLng;
@@ -178,10 +167,6 @@ export interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProper
178
167
  * solo funciones, se ahorra memoria.
179
168
  */
180
169
  layerData?: FeatureLayerData;
181
- /**
182
- * "featureLabel" Etiqueta de la geometria, undenfined si no se quiere mostrar
183
- */
184
- label?: FeatureIconLabel;
185
170
  }
186
171
  /**
187
172
  * A collection of feature objects.
@@ -4,10 +4,6 @@ function getMapComponentsDictionary() {
4
4
  return [MAP_DICTIONARY_ID].concat(getRHFAutocompleteComponentsDictionary());
5
5
  }
6
6
  const MAP_DICCTIONARY = {
7
- /**
8
- * Generales
9
- */
10
- LABEL_GPSTOOLS_NAME: `${MAP_DICTIONARY_ID}.label_gpstools_name`,
11
7
  LABEL_MEASURE: `${MAP_DICTIONARY_ID}.label_measure`,
12
8
  LABEL_MEASURE_START: `${MAP_DICTIONARY_ID}.label_measure_start`,
13
9
  LABEL_MEASURE_CANCEL: `${MAP_DICTIONARY_ID}.label_measure_cancel`,
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type StyledComponentType = React.ComponentType<{
2
+ export type StyledComponentType = React.ComponentType<{
3
3
  ref?: React.LegacyRef<HTMLDivElement>;
4
4
  className?: string;
5
5
  children?: React.ReactNode;
@@ -23,4 +23,3 @@ export interface ControlProps {
23
23
  */
24
24
  ControlContainer?: StyledComponentType;
25
25
  }
26
- export {};
@@ -1,5 +1,7 @@
1
1
  import { FeatureDescriptionProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Pinta un marca con un icono y una etiqueta de texto
4
+ * Puede o solo pintar el icono o solo la etiqueta de texto o ambos
5
+ * Si se le define un popupRender, se renderiza el popup asociado al marcador
4
6
  */
5
7
  export declare const MarkerIconLabel: (props: FeatureDescriptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Marker } from "react-leaflet";
3
- import { F as FeatureDivIconLabel } from "../FeatureDivIconLabel/index.js";
3
+ import { F as FeatureDivIconLabel } from "./subcomponents/FeatureDivIconLabel/index.js";
4
4
  import { useState, useRef, useCallback } from "react";
5
5
  const MarkerIconLabel = (props) => {
6
6
  const {
@@ -8,14 +8,12 @@ const MarkerIconLabel = (props) => {
8
8
  draggable = true,
9
9
  iconSrc,
10
10
  iconRotate,
11
- iconScale: scale,
12
- className,
11
+ iconScale,
13
12
  label,
14
- markerColor,
15
- labelBkColor: bkColor,
16
- labelColor: color,
17
- iconWidth,
18
- iconHeight,
13
+ fillColor,
14
+ color,
15
+ width,
16
+ height,
19
17
  offsetLeftTop,
20
18
  eventHandlers,
21
19
  popupRender,
@@ -25,15 +23,15 @@ const MarkerIconLabel = (props) => {
25
23
  } = props;
26
24
  const [isOpen, setIsOpen] = useState(false);
27
25
  const markerRef = useRef(null);
28
- const makerIcon = FeatureDivIconLabel({
26
+ const makerDivIconLabel = FeatureDivIconLabel({
29
27
  iconSrc,
30
28
  iconRotate,
31
- iconScale: scale,
29
+ iconScale,
32
30
  label,
33
- iconWidth,
34
- iconHeight,
35
- labelBkColor: bkColor,
36
- labelColor: color,
31
+ width,
32
+ height,
33
+ fillColor,
34
+ color,
37
35
  offsetLeftTop
38
36
  });
39
37
  const PopupRender = popupRender;
@@ -57,7 +55,7 @@ const MarkerIconLabel = (props) => {
57
55
  position,
58
56
  draggable,
59
57
  riseOnHover: true,
60
- icon: makerIcon,
58
+ icon: makerDivIconLabel,
61
59
  eventHandlers: {
62
60
  ...eventHandlers,
63
61
  click: (_e) => {
@@ -1,6 +1,6 @@
1
1
  import { default as L } from 'leaflet';
2
2
  import { DivIconFeatureDescriptionProps } from './types';
3
3
  /**
4
- * TODO: Documentar
4
+ * Crea una etiqueta de texto con un icono, para ser usado como icono de una capa Marker de Leaflet
5
5
  */
6
6
  export declare const FeatureDivIconLabel: (props: DivIconFeatureDescriptionProps) => L.DivIcon;
@@ -0,0 +1,33 @@
1
+ import L__default from "leaflet";
2
+ import { L as LABEL_FILLCOLOR_DEFAULT, a as LABEL_COLOR_DEFAULT } from "../../../../constants.js";
3
+ import { m as mapClasses } from "../../../../classes/index.js";
4
+ import clsx from "clsx";
5
+ const FeatureDivIconLabel = (props) => {
6
+ const {
7
+ label,
8
+ iconSrc,
9
+ iconScale = 1,
10
+ iconRotate = 0,
11
+ fillColor = LABEL_FILLCOLOR_DEFAULT,
12
+ color = LABEL_COLOR_DEFAULT,
13
+ width = 24,
14
+ height = 24,
15
+ offsetLeftTop = [24, 0]
16
+ } = props;
17
+ let html = label ? `<div class="${mapClasses.featureLabel}"
18
+ style="background-color:${fillColor}; color:${color};left:${offsetLeftTop[0]}px;top:${offsetLeftTop[1]}px; opacity:${0.85};">${label}</div>` : "";
19
+ if (iconSrc) {
20
+ html = `<div class="${mapClasses.markerLayerIcon}" style="transform: rotate(${iconRotate}deg) scale(${iconScale}); transform-origin: center center;">
21
+ <img src=${iconSrc}></img>
22
+ </div>` + html;
23
+ }
24
+ return L__default.divIcon({
25
+ className: clsx(mapClasses.markerLayerRoot, ""),
26
+ iconSize: [width, height],
27
+ // iconAnchor: [-width, height/2],
28
+ html
29
+ });
30
+ };
31
+ export {
32
+ FeatureDivIconLabel as F
33
+ };
@@ -1,4 +1,4 @@
1
- import { FeatureIconLabel } from '../../contexts/MapContext/types';
1
+ import { FeatureIconLabel } from '../../../../contexts/MapContext/types';
2
2
  export interface DivIconFeatureDescriptionProps extends FeatureIconLabel {
3
3
  withPoint?: boolean;
4
4
  iconSrc?: string;
@@ -1,5 +1,5 @@
1
1
  import { MarkerProps } from 'react-leaflet';
2
- import { DivIconFeatureDescriptionProps } from '../FeatureDivIconLabel/types';
2
+ import { DivIconFeatureDescriptionProps } from './subcomponents/FeatureDivIconLabel/types';
3
3
  import { MapPopupComponent } from '../../popups/types';
4
4
  import { GeoJsonProperties } from '../../contexts/MapContext/types';
5
5
  import { PopupOptions } from 'leaflet';
@@ -12,5 +12,4 @@ export interface FeatureDescriptionProps extends DivIconFeatureDescriptionProps,
12
12
  properties?: GeoJsonProperties;
13
13
  popupRender?: MapPopupComponent;
14
14
  popupOptions?: FeaturePopupOptions;
15
- [name: string]: any;
16
15
  }
@@ -1,2 +1 @@
1
1
  export { MarkerFeatureRender } from './MarkerFeatureRender';
2
- export { CommonFeatureRender } from './CommonFeatureRender';
@@ -1,13 +1,13 @@
1
1
  import { useEffect } from "react";
2
2
  import { useMap } from "react-leaflet";
3
3
  import throttle from "lodash-es/throttle";
4
- import { shallow } from "zustand/shallow";
5
4
  import L__default from "leaflet";
6
5
  import { u as useMapStore } from "../useMapStore/index.js";
6
+ import { deepShallow } from "@m4l/components";
7
7
  function useAutoFocus() {
8
8
  const map = useMap();
9
9
  const layerWithAutoFocus = useMapStore((state) => {
10
- return state.layersIds.filter((lId) => {
10
+ const result = state.layersIds.filter((lId) => {
11
11
  if (state.hashLayers[lId].autoFocus && state.hashLayers[lId].visible) {
12
12
  return true;
13
13
  }
@@ -27,7 +27,8 @@ function useAutoFocus() {
27
27
  return [];
28
28
  }()
29
29
  }));
30
- }, shallow);
30
+ return result;
31
+ }, deepShallow);
31
32
  useEffect(() => {
32
33
  const proccesLayerWithAutoFocus = (layersFoucus) => {
33
34
  const layersToFitBounds = [];
@@ -65,7 +66,7 @@ function useAutoFocus() {
65
66
  }
66
67
  };
67
68
  const throttleBounds = throttle(proccesLayerWithAutoFocus, 300, {
68
- leading: false,
69
+ leading: true,
69
70
  // No enviar el primer evento de fitBounds
70
71
  trailing: true
71
72
  // Incluir siempre el ultimo evento en la cola, para que no quede se quedee a la mitad del fitBounds
@@ -28,11 +28,6 @@ const MAP_ICONS = {
28
28
  MAP_LAYER_AUTOFOCUS: "autofocus.svg",
29
29
  MAP_LAYER_CLUSTER: "cluster.svg",
30
30
  MAP_LAYER_DELETE: "delete.svg",
31
- /**
32
- * Measure Tool *
33
- *
34
- */
35
- MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
36
31
  MAP_MEASURE_TOOL: "cmp_map_measure_tool.svg"
37
32
  };
38
33
  export {
@@ -1,5 +1,5 @@
1
- import { MapSlotsLayersTool } from '../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots';
2
- import { MapSlotsSourcesTool } from '../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots';
1
+ import { MapSlotsLayersTool } from '../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/slots/slots';
2
+ import { MapSlotsSourcesTool } from '../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/slots/slots';
3
3
  export declare enum MapBaseSlots {
4
4
  root = "root",
5
5
  mapContainer = "mapContainer",
@@ -1,5 +1,5 @@
1
- import { M as MapSlotsLayersTool } from "../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js";
2
- import { M as MapSlotsSourcesTool } from "../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js";
1
+ import { M as MapSlotsLayersTool } from "../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/slots/slots.js";
2
+ import { M as MapSlotsSourcesTool } from "../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/slots/slots.js";
3
3
  var MapBaseSlots = /* @__PURE__ */ ((MapBaseSlots2) => {
4
4
  MapBaseSlots2["root"] = "root";
5
5
  MapBaseSlots2["mapContainer"] = "mapContainer";
@@ -0,0 +1,23 @@
1
+ import { ControlsProps } from '../types';
2
+ import { MapTool } from '../../../types';
3
+ /**
4
+ * Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
5
+ * En el efecto de Carga, desactiva los eventos de click y scroll al interior "leaflet-control-container".
6
+ * Se crea el contendor de popups con un portal dentro de "leaflet-control-container", para que se benficie de los eventos desactivados.
7
+ *
8
+ * - TopLeftTools
9
+ * MapSources
10
+ * MapLayers
11
+ * MapMeasure
12
+ * Custom Tools
13
+ * - BottomRightTools
14
+ * Zoom Buttons
15
+ * Custom Tools
16
+ * @param tools - Tools to display in the controls
17
+ * @returns {Object} - Object with the controls
18
+ */
19
+ export declare function useControls(props: ControlsProps): {
20
+ topRightTools: MapTool[];
21
+ bottomRightTools: MapTool[];
22
+ loggedUser: import('@m4l/core').Maybe<import('@m4l/core').UserAuth>;
23
+ };
@@ -0,0 +1,32 @@
1
+ import { useMemo } from "react";
2
+ import { useAuth } from "@m4l/core";
3
+ import { M as MAP_SOURCES_TOOL, a as MAP_LAYERS_TOOL, b as MAP_MEASURE_TOOL } from "../subcomponents/ButtonsToolsList/constants.js";
4
+ import { u as useZoomBottons } from "../subcomponents/ButtonsToolsList/hooks/useZoomBottons.js";
5
+ function useControls(props) {
6
+ const { tools } = props;
7
+ const { user: loggedUser } = useAuth();
8
+ const zoomButtons = useZoomBottons();
9
+ const { topRightTools, bottomRightTools } = useMemo(() => {
10
+ const nativeTopRightTools = [
11
+ MAP_SOURCES_TOOL,
12
+ MAP_LAYERS_TOOL,
13
+ MAP_MEASURE_TOOL
14
+ ];
15
+ const customTopRightTools = tools?.filter((tool) => tool.position === "topright") || [];
16
+ const customBottomRightTools = tools?.filter((tool) => tool.position === "bottomright") || [];
17
+ const topRightTools2 = [...nativeTopRightTools, ...customTopRightTools];
18
+ const bottomRightTools2 = [...zoomButtons, ...customBottomRightTools];
19
+ return {
20
+ topRightTools: topRightTools2,
21
+ bottomRightTools: bottomRightTools2
22
+ };
23
+ }, [tools, zoomButtons]);
24
+ return {
25
+ topRightTools,
26
+ bottomRightTools,
27
+ loggedUser
28
+ };
29
+ }
30
+ export {
31
+ useControls as u
32
+ };
@@ -1,17 +1,5 @@
1
1
  import { ControlsProps } from './types';
2
2
  /**
3
3
  * Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
4
- * En el efecto de Carga, desactiva los eventos de click y scroll al interior "leaflet-control-container".
5
- * Se crea el contendor de popups con un portal dentro de "leaflet-control-container", para que se benficie de los eventos desactivados.
6
- *
7
- * - TopLeftTools
8
- * MapSources
9
- * MapLayers
10
- * - TopRightTools
11
- * GpsTools
12
- * MapTools
13
- * Zoom Buttons
14
- * @param props
15
- * @returns
16
4
  */
17
5
  export declare function Controls(props: ControlsProps): import("react/jsx-runtime").JSX.Element;
@@ -4,17 +4,15 @@ import { createPortal } from "react-dom";
4
4
  import L__default from "leaflet";
5
5
  import { useMap } from "react-leaflet";
6
6
  import { PopupsProvider } from "@m4l/components";
7
- import { T as TopRightTools } from "./subcomponents/TopRigthTools/index.js";
8
- import { c as MAP_ZINDEX_OVER_MAP } from "../../constants.js";
9
- import { B as BottomRightTools } from "./subcomponents/BottomRigthTools/index.js";
10
- import { P as PopupsViewerStyled } from "../../slots/styled.js";
11
- import { useAuth } from "@m4l/core";
7
+ import { B as ButtonsToolsList } from "./subcomponents/ButtonsToolsList/index.js";
8
+ import { b as MAP_ZINDEX_OVER_MAP } from "../../constants.js";
9
+ import { R as RightToolsRootStyled, P as PopupsViewerStyled } from "../../slots/styled.js";
10
+ import { u as useControls } from "./hooks/useControls.js";
12
11
  function Controls(props) {
13
- const { GpsTools } = props;
14
12
  const map = useMap();
15
13
  const [controlContainer, setControlContainer] = useState(null);
16
14
  const [mapContainer, setMapContainer] = useState(void 0);
17
- const { user: loggedUser } = useAuth();
15
+ const { topRightTools, bottomRightTools, loggedUser } = useControls(props);
18
16
  useEffect(() => {
19
17
  const cContainer = map.getContainer().getElementsByClassName("leaflet-control-container")[0];
20
18
  if (cContainer !== null) {
@@ -25,8 +23,8 @@ function Controls(props) {
25
23
  setMapContainer(map.getContainer());
26
24
  }, [map]);
27
25
  return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP, children: [
28
- /* @__PURE__ */ jsx(TopRightTools, { GpsTools }),
29
- /* @__PURE__ */ jsx(BottomRightTools, {}),
26
+ /* @__PURE__ */ jsx(ButtonsToolsList, { position: "topright", tools: topRightTools, ControlContainer: RightToolsRootStyled }),
27
+ /* @__PURE__ */ jsx(ButtonsToolsList, { position: "bottomright", tools: bottomRightTools, ControlContainer: RightToolsRootStyled }),
30
28
  controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewerStyled, { containerElement: mapContainer, loggedUser }), controlContainer)
31
29
  ] });
32
30
  }
@@ -0,0 +1,4 @@
1
+ import { MapToolPopupInternal } from '../../../../types';
2
+ export declare const MAP_SOURCES_TOOL: MapToolPopupInternal;
3
+ export declare const MAP_LAYERS_TOOL: MapToolPopupInternal;
4
+ export declare const MAP_MEASURE_TOOL: MapToolPopupInternal;