@m4l/gclick 0.3.6 → 0.3.7

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 (324) hide show
  1. package/components/ReportsViewer/hooks/useSheetContent/useSheetContent.d.ts +1 -1
  2. package/components/formatters/CourseFormatter/CourseFormatter.d.ts.map +1 -0
  3. package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.js +2 -2
  4. package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +1 -0
  5. package/components/formatters/CourseFormatter/constants.d.ts.map +1 -0
  6. package/components/formatters/CourseFormatter/dictionary.d.ts.map +1 -0
  7. package/components/formatters/CourseFormatter/helper.d.ts.map +1 -0
  8. package/components/formatters/CourseFormatter/index.d.ts.map +1 -0
  9. package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +1 -0
  10. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +4 -0
  11. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +1 -0
  12. package/components/formatters/CourseFormatter/types.d.ts.map +1 -0
  13. package/components/formatters/index.d.ts +2 -0
  14. package/components/formatters/index.d.ts.map +1 -0
  15. package/components/index.d.ts +1 -0
  16. package/components/index.d.ts.map +1 -1
  17. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +1 -1
  18. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts.map +1 -1
  19. package/components/indicators/IndicatorBattery/IndicatorBattery.js +51 -53
  20. package/components/maps/components/GpsMap/GpsMap.js +16 -16
  21. package/components/maps/components/GpsMap/GpsMap.styles.d.ts.map +1 -1
  22. package/components/maps/components/GpsMap/GpsMap.styles.js +2 -0
  23. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts +38 -0
  24. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts.map +1 -0
  25. package/components/maps/components/GpsMap/__testing__/constants.d.ts +36 -0
  26. package/components/maps/components/GpsMap/__testing__/constants.d.ts.map +1 -0
  27. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts +54 -0
  28. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts.map +1 -0
  29. package/components/maps/components/GpsMap/__testing__/index.d.ts +5 -0
  30. package/components/maps/components/GpsMap/__testing__/index.d.ts.map +1 -0
  31. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts +51 -0
  32. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts.map +1 -0
  33. package/components/maps/components/GpsMap/classes/index.d.ts +1 -2
  34. package/components/maps/components/GpsMap/classes/index.d.ts.map +1 -1
  35. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts.map +1 -1
  36. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +6 -10
  37. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts +21 -0
  38. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts.map +1 -0
  39. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js +27 -0
  40. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
  41. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
  42. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +1 -1
  43. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
  44. package/components/maps/components/GpsMap/contexts/MapContext/store.js +113 -139
  45. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +73 -52
  46. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
  47. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +4 -4
  48. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
  49. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +192 -209
  50. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -4
  51. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts.map +1 -1
  52. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +46 -66
  53. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +2 -10
  54. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts.map +1 -1
  55. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts +17 -0
  56. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts.map +1 -0
  57. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js +53 -0
  58. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts +3 -0
  59. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map +1 -0
  60. package/components/maps/components/GpsMap/hooks/debug/index.d.ts +2 -0
  61. package/components/maps/components/GpsMap/hooks/debug/index.d.ts.map +1 -0
  62. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → debug/markerDecimation}/GridDebugVisualization.d.ts +1 -1
  63. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.d.ts.map +1 -0
  64. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts +3 -0
  65. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts.map +1 -0
  66. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts +4 -0
  67. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts.map +1 -0
  68. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts +71 -0
  69. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts.map +1 -0
  70. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts +7 -0
  71. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts.map +1 -0
  72. package/components/maps/components/GpsMap/hooks/index.d.ts +5 -4
  73. package/components/maps/components/GpsMap/hooks/index.d.ts.map +1 -1
  74. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +2 -1
  75. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map +1 -1
  76. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js +10 -11
  77. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts +2 -0
  78. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts.map +1 -0
  79. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.js +4 -0
  80. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts +3 -0
  81. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts.map +1 -0
  82. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter}/constants.js +2 -3
  83. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts} +1 -1
  84. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts.map +1 -0
  85. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.js → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.js} +4 -2
  86. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +1 -0
  87. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.js +1 -1
  88. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +1 -0
  89. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +22 -0
  90. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.d.ts.map +1 -0
  91. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts +2 -0
  92. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts.map +1 -0
  93. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/types.d.ts +1 -1
  94. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.d.ts.map +1 -0
  95. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts +3 -0
  96. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map +1 -0
  97. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts +9 -0
  98. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts.map +1 -0
  99. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js +16 -0
  100. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts +3 -0
  101. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts.map +1 -0
  102. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts +16 -0
  103. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts.map +1 -0
  104. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map +1 -0
  105. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.js +75 -0
  106. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts +13 -0
  107. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts.map +1 -0
  108. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.js +21 -0
  109. package/components/maps/components/GpsMap/popups/index.d.ts +0 -1
  110. package/components/maps/components/GpsMap/popups/index.d.ts.map +1 -1
  111. package/components/maps/components/GpsMap/popups/types.d.ts +4 -0
  112. package/components/maps/components/GpsMap/popups/types.d.ts.map +1 -1
  113. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts +6 -0
  114. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts.map +1 -0
  115. package/components/maps/components/GpsMap/subcomponents/Controls/{index.js → Controls.js} +5 -5
  116. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +1 -5
  117. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts.map +1 -1
  118. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts +8 -0
  119. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts.map +1 -0
  120. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/{index.js → ButtonsToolsList.js} +9 -8
  121. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts.map +1 -1
  122. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +31 -20
  123. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts +2 -0
  124. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts.map +1 -1
  125. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts +15 -0
  126. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts.map +1 -0
  127. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.js +90 -0
  128. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts +3 -5
  129. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts.map +1 -1
  130. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.js +35 -38
  131. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +2 -1
  132. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts.map +1 -1
  133. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +31 -25
  134. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +1 -7
  135. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts.map +1 -1
  136. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts +7 -0
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts.map +1 -0
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.js +22 -0
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +1 -5
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts.map +1 -1
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.d.ts.map +1 -1
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.js +10 -9
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.js +7 -7
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts +6 -0
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts.map +1 -0
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -5
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts.map +1 -1
  148. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts +5 -0
  149. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts.map +1 -0
  150. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -4
  151. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts.map +1 -1
  152. package/components/maps/components/GpsMap/subcomponents/{Layers/index.d.ts → LayersContainer/LayersContainer.d.ts} +1 -1
  153. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.d.ts.map +1 -0
  154. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.js +23 -0
  155. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +2 -0
  156. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts.map +1 -0
  157. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.d.ts → LayersContainer/subcomponents/Layer/Layer.d.ts} +1 -1
  158. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -0
  159. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.js → LayersContainer/subcomponents/Layer/Layer.js} +8 -8
  160. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts +2 -0
  161. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts.map +1 -0
  162. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts +3 -0
  163. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts.map +1 -0
  164. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.js +51 -0
  165. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
  166. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +1 -0
  167. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +1 -0
  168. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts} +1 -1
  169. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts.map +1 -0
  170. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts +2 -0
  171. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +1 -0
  172. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +1 -0
  173. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/types.d.ts.map +1 -0
  174. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts +2 -0
  175. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts.map +1 -0
  176. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts +7 -0
  177. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts.map +1 -0
  178. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.js +30 -0
  179. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +1 -6
  180. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts.map +1 -1
  181. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts +10 -0
  182. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts.map +1 -0
  183. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -9
  184. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts.map +1 -1
  185. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts +7 -0
  186. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts.map +1 -0
  187. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +1 -6
  188. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts.map +1 -1
  189. package/components/maps/components/GpsMap/types.d.ts +18 -0
  190. package/components/maps/components/GpsMap/types.d.ts.map +1 -1
  191. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +1 -1
  192. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts.map +1 -1
  193. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts.map +1 -1
  194. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +11 -10
  195. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts.map +1 -1
  196. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +5 -5
  197. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts.map +1 -1
  198. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.js +6 -6
  199. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts +14 -6
  200. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts.map +1 -1
  201. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts.map +1 -1
  202. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +32 -40
  203. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +8 -7
  204. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.js +23 -24
  205. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts.map +1 -1
  206. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +37 -37
  207. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts.map +1 -1
  208. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +36 -35
  209. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts +1 -0
  210. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts.map +1 -1
  211. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts.map +1 -1
  212. package/formatters/index.d.ts +1 -1
  213. package/formatters/index.d.ts.map +1 -1
  214. package/index.js +124 -126
  215. package/internal/storybookRuntime.d.ts +27 -0
  216. package/internal/storybookRuntime.d.ts.map +1 -0
  217. package/internal/storybookRuntime.js +19 -0
  218. package/package.json +3 -3
  219. package/components/DeviceStatus/dictionary.js +0 -8
  220. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +0 -9
  221. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts.map +0 -1
  222. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +0 -2
  223. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts.map +0 -1
  224. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +0 -9
  225. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts.map +0 -1
  226. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +0 -7
  227. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts.map +0 -1
  228. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/GridDebugVisualization.d.ts.map +0 -1
  229. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts +0 -6
  230. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts.map +0 -1
  231. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +0 -1
  232. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +0 -1
  233. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +0 -22
  234. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/index.d.ts.map +0 -1
  235. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts.map +0 -1
  236. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types.d.ts.map +0 -1
  237. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts +0 -84
  238. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts.map +0 -1
  239. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.d.ts.map +0 -1
  240. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.js +0 -83
  241. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts +0 -6
  242. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts.map +0 -1
  243. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +0 -8
  244. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts.map +0 -1
  245. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +0 -32
  246. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +0 -3
  247. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts.map +0 -1
  248. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +0 -146
  249. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +0 -6
  250. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts.map +0 -1
  251. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +0 -6
  252. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +0 -17
  253. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts.map +0 -1
  254. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +0 -20
  255. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +0 -3
  256. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts.map +0 -1
  257. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +0 -34
  258. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts.map +0 -1
  259. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +0 -55
  260. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +0 -14
  261. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts.map +0 -1
  262. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +0 -4
  263. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +0 -7
  264. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts.map +0 -1
  265. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +0 -111
  266. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +0 -6
  267. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts.map +0 -1
  268. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +0 -18
  269. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +0 -6
  270. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts.map +0 -1
  271. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +0 -7
  272. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts.map +0 -1
  273. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +0 -11
  274. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts.map +0 -1
  275. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.js +0 -18
  276. package/components/maps/components/GpsMap/subcomponents/Layers/index.d.ts.map +0 -1
  277. package/components/maps/components/GpsMap/subcomponents/Layers/index.js +0 -21
  278. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +0 -14
  279. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts.map +0 -1
  280. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/index.d.ts.map +0 -1
  281. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +0 -11
  282. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +0 -1
  283. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.js +0 -29
  284. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +0 -1
  285. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +0 -1
  286. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +0 -1
  287. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/types.d.ts.map +0 -1
  288. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +0 -30
  289. package/formatters/CourseFormatter/CourseFormatter.d.ts.map +0 -1
  290. package/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +0 -1
  291. package/formatters/CourseFormatter/constants.d.ts.map +0 -1
  292. package/formatters/CourseFormatter/dictionary.d.ts.map +0 -1
  293. package/formatters/CourseFormatter/helper.d.ts.map +0 -1
  294. package/formatters/CourseFormatter/index.d.ts.map +0 -1
  295. package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +0 -1
  296. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -4
  297. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +0 -1
  298. package/formatters/CourseFormatter/types.d.ts.map +0 -1
  299. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.d.ts +0 -0
  300. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.d.ts +0 -0
  301. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.js +0 -0
  302. /package/{formatters → components/formatters}/CourseFormatter/constants.d.ts +0 -0
  303. /package/{formatters → components/formatters}/CourseFormatter/constants.js +0 -0
  304. /package/{formatters → components/formatters}/CourseFormatter/dictionary.d.ts +0 -0
  305. /package/{formatters → components/formatters}/CourseFormatter/dictionary.js +0 -0
  306. /package/{formatters → components/formatters}/CourseFormatter/helper.d.ts +0 -0
  307. /package/{formatters → components/formatters}/CourseFormatter/helper.js +0 -0
  308. /package/{formatters → components/formatters}/CourseFormatter/index.d.ts +0 -0
  309. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -0
  310. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.js +0 -0
  311. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterSlots.js +0 -0
  312. /package/{formatters → components/formatters}/CourseFormatter/types.d.ts +0 -0
  313. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts +0 -0
  314. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts +0 -0
  315. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/index.d.ts +0 -0
  316. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation}/useFilterDecimation.d.ts +0 -0
  317. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/{index.js → MeasureData.js} +0 -0
  318. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/{index.js → MyActions.js} +0 -0
  319. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  320. /package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.js → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.js} +0 -0
  321. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  322. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/types.d.ts +0 -0
  323. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/{index.js → TileLayerGoogle.js} +0 -0
  324. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/{index.js → TileLayerOthers.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import { ControlsProps } from './types';
2
+ /**
3
+ * Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
4
+ */
5
+ export declare function Controls(props: ControlsProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=Controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/Controls.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDA8B5C"}
@@ -4,18 +4,18 @@ import { createPortal as P } from "react-dom";
4
4
  import i from "leaflet";
5
5
  import { useMap as E } from "react-leaflet";
6
6
  import { PopupsProvider as h } from "@m4l/components";
7
- import { ButtonsToolsList as s } from "./subcomponents/ButtonsToolsList/index.js";
8
7
  import { MAP_ZINDEX_OVER_MAP as b } from "../../constants.js";
9
- import { RightToolsRootStyled as l, PopupsViewerStyled as R } from "../../slots/styled.js";
8
+ import { RightToolsRootStyled as s, PopupsViewerStyled as R } from "../../slots/styled.js";
10
9
  import { useControls as _ } from "./hooks/useControls.js";
10
+ import { ButtonsToolsList as l } from "./subcomponents/ButtonsToolsList/ButtonsToolsList.js";
11
11
  function L(a) {
12
12
  const t = E(), [n, m] = e(null), [p, c] = e(void 0), { topRightTools: f, bottomRightTools: C, loggedUser: g } = _(a);
13
13
  return d(() => {
14
14
  const o = t.getContainer().getElementsByClassName("leaflet-control-container")[0];
15
- o !== null && (m(o), i.DomEvent.disableClickPropagation(o), i.DomEvent.disableScrollPropagation(o)), c(t.getContainer());
15
+ o && (m(o), i.DomEvent.disableClickPropagation(o), i.DomEvent.disableScrollPropagation(o)), c(t.getContainer());
16
16
  }, [t]), /* @__PURE__ */ u(h, { baseZindex: b, children: [
17
- /* @__PURE__ */ r(s, { position: "topright", tools: f, ControlContainer: l }),
18
- /* @__PURE__ */ r(s, { position: "bottomright", tools: C, ControlContainer: l }),
17
+ /* @__PURE__ */ r(l, { position: "topright", tools: f, ControlContainer: s }),
18
+ /* @__PURE__ */ r(l, { position: "bottomright", tools: C, ControlContainer: s }),
19
19
  n && P(/* @__PURE__ */ r(R, { containerElement: p, loggedUser: g }), n)
20
20
  ] });
21
21
  }
@@ -1,6 +1,2 @@
1
- import { ControlsProps } from './types';
2
- /**
3
- * Componente encargado de instanciar todos los controles del map en las diferentes posiciones.
4
- */
5
- export declare function Controls(props: ControlsProps): import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export * from './Controls';
6
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDA8B5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ButtonsToolsListProps } from './types';
2
+ /**
3
+ * Inserta los botones de herramientas en los controles del mapa
4
+ * @param props
5
+ * @returns
6
+ */
7
+ export declare function ButtonsToolsList(props: ButtonsToolsListProps): import("@emotion/react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=ButtonsToolsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonsToolsList.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,oDA6C5D"}
@@ -1,16 +1,17 @@
1
1
  import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import { useMemo as f } from "react";
3
3
  import { MapControl as l } from "../../../../external/MapControl/index.js";
4
- import { ButtonPopupTool as C } from "./subcomponents/ButtonPopupTool/index.js";
5
- import { useModuleDictionary as I, useEnvironment as P } from "@m4l/core";
6
- function L(p) {
7
- const { tools: e, ControlContainer: u, position: c } = p, { getLabel: i } = I(), { host_static_assets: s, environment_assets: r } = P(), m = f(() => e.map((n) => {
4
+ import { useModuleDictionary as C, useEnvironment as I } from "@m4l/core";
5
+ import { ButtonPopupTool as P } from "./subcomponents/ButtonPopupTool/ButtonPopupTool.js";
6
+ function h(p) {
7
+ const { tools: e, ControlContainer: u, position: c } = p, { getLabel: r } = C(), { host_static_assets: i, environment_assets: s } = I(), m = f(() => e.map((n) => {
8
8
  if (n.type === "popup") {
9
- const t = "isInternal" in n && n.isInternal, a = t ? `${s}/${r}/frontend/components/${n.componentPathId}/assets/icons/${n.iconId}` : n.iconUrl, d = t ? i(n.dictionaryId) : n.PopupTitle;
9
+ const t = "isInternal" in n && n.isInternal, a = t ? `${i}/${s}/frontend/components/${n.componentPathId}/assets/icons/${n.iconId}` : n.iconUrl, d = t ? r(n.dictionaryId) : n.PopupTitle;
10
10
  return /* @__PURE__ */ o(
11
- C,
11
+ P,
12
12
  {
13
13
  ToolComponent: n.PopupContentComponent,
14
+ externalController: n.externalController,
14
15
  iconUrl: a,
15
16
  popupId: n.id,
16
17
  title: d,
@@ -23,9 +24,9 @@ function L(p) {
23
24
  return typeof t == "function" ? /* @__PURE__ */ o(t, {}, n.id) : t;
24
25
  }
25
26
  return null;
26
- }), [e, s, r, i]);
27
+ }), [e, i, s, r]);
27
28
  return /* @__PURE__ */ o(l, { position: c, prepend: !0, ControlContainer: u, children: m });
28
29
  }
29
30
  export {
30
- L as ButtonsToolsList
31
+ h as ButtonsToolsList
31
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGzD,eAAO,MAAM,gBAAgB,EAAE,oBAS9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,oBAS7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,oBAS9B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAgB3B,eAAO,MAAM,gBAAgB,EAAE,oBAU9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,oBAU7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,oBAU9B,CAAC"}
@@ -1,39 +1,50 @@
1
- import { MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as t, MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION as n, MESURE_TOOL_POPUP_DEFAULT_POSITION as O } from "../../../../constants.js";
1
+ import { MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION as O, MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION as P, MESURE_TOOL_POPUP_DEFAULT_POSITION as _ } from "../../../../constants.js";
2
2
  import { MAP_DICCTIONARY as o } from "../../../../dictionary.js";
3
- import { MAP_ICONS as p } from "../../../../icons.js";
4
- import { MapSourcesTool as P } from "./subcomponents/MapSourcesTool/MapSourcesTool.js";
5
- import { MapLayersTool as _ } from "./subcomponents/MapLayersTool/MapLayersTool.js";
6
- import { MeasureTool as e } from "./subcomponents/MeasureTool/MeasureTool.js";
7
- const T = {
3
+ import { MAP_ICONS as t } from "../../../../icons.js";
4
+ import { MapSourcesTool as i } from "./subcomponents/MapSourcesTool/MapSourcesTool.js";
5
+ import { MapLayersTool as l } from "./subcomponents/MapLayersTool/MapLayersTool.js";
6
+ import { MeasureTool as a } from "./subcomponents/MeasureTool/MeasureTool.js";
7
+ const p = ({
8
+ closeDefault: n,
9
+ openDefault: e,
10
+ toggleDefault: r
11
+ }) => ({
12
+ close: n,
13
+ open: e,
14
+ toggle: r
15
+ }), s = {
8
16
  isInternal: !0,
9
17
  id: "sourcesTools",
10
18
  type: "popup",
19
+ externalController: p,
11
20
  componentPathId: "map",
12
- iconId: p.MAP_SOURCES_TOOL,
21
+ iconId: t.MAP_SOURCES_TOOL,
13
22
  dictionaryId: o.LABEL_MAP_SOURCES,
14
- popupDefaultPosition: t,
15
- PopupContentComponent: P
16
- }, a = {
23
+ popupDefaultPosition: O,
24
+ PopupContentComponent: i
25
+ }, u = {
17
26
  isInternal: !0,
18
27
  id: "layersTools",
19
28
  type: "popup",
29
+ externalController: p,
20
30
  componentPathId: "map",
21
- iconId: p.MAP_LAYERS_TOOL,
31
+ iconId: t.MAP_LAYERS_TOOL,
22
32
  dictionaryId: o.LABEL_LAYERS,
23
- popupDefaultPosition: n,
24
- PopupContentComponent: _
25
- }, I = {
33
+ popupDefaultPosition: P,
34
+ PopupContentComponent: l
35
+ }, S = {
26
36
  isInternal: !0,
27
37
  id: "measureTools",
28
38
  type: "popup",
39
+ externalController: p,
29
40
  componentPathId: "map",
30
- iconId: p.MAP_MEASURE_TOOL,
41
+ iconId: t.MAP_MEASURE_TOOL,
31
42
  dictionaryId: o.LABEL_MEASURE,
32
- popupDefaultPosition: O,
33
- PopupContentComponent: e
43
+ popupDefaultPosition: _,
44
+ PopupContentComponent: a
34
45
  };
35
46
  export {
36
- a as MAP_LAYERS_TOOL,
37
- I as MAP_MEASURE_TOOL,
38
- T as MAP_SOURCES_TOOL
47
+ u as MAP_LAYERS_TOOL,
48
+ S as MAP_MEASURE_TOOL,
49
+ s as MAP_SOURCES_TOOL
39
50
  };
@@ -1,9 +1,11 @@
1
1
  import { JSX_REACT_NODE, RNDDefaultPosition } from '@m4l/components';
2
+ import { MapToolExternalControllerFactory } from '../../../../../types';
2
3
  export type useToolProps = {
3
4
  popupId: string;
4
5
  ToolComponent?: JSX_REACT_NODE;
5
6
  iconUrl: string;
6
7
  title: string;
7
8
  defaultPosition: RNDDefaultPosition;
9
+ externalController?: MapToolExternalControllerFactory;
8
10
  };
9
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAC,cAAc,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,kBAAkB,CAAC;CAErC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAC,cAAc,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,kBAAkB,CAAC;IACpC,kBAAkB,CAAC,EAAE,gCAAgC,CAAC;CACvD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { MapToolExternalControllerContext } from '../../../../../types';
2
+ import { useToolProps } from './types';
3
+ type UsePopupToolRuntimeResult = {
4
+ externalControllerContext: MapToolExternalControllerContext;
5
+ isDisabled: boolean;
6
+ isToggled: boolean;
7
+ };
8
+ /**
9
+ * Owns the shared popup-runtime lifecycle for popup-based map tools.
10
+ * Higher-level hooks can reuse this behavior directly or expose it through
11
+ * externally registered tool controllers.
12
+ */
13
+ export declare function usePopupToolRuntime(props: useToolProps): UsePopupToolRuntimeResult;
14
+ export {};
15
+ //# sourceMappingURL=usePopupToolRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePopupToolRuntime.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,yBAAyB,GAAG;IAC/B,yBAAyB,EAAE,gCAAgC,CAAC;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,yBAAyB,CAsIlF"}
@@ -0,0 +1,90 @@
1
+ import { usePopupsStore as a, deepShallow as I } from "@m4l/components";
2
+ import { useCallback as s, useMemo as w } from "react";
3
+ import { useMap as M } from "react-leaflet";
4
+ function H(h) {
5
+ const {
6
+ ToolComponent: u,
7
+ popupId: o,
8
+ iconUrl: c,
9
+ title: f,
10
+ defaultPosition: m
11
+ } = h, p = M(), { addPopup: g, bringPopupOnFront: l } = a((e) => e.popupsActions), { close: P, show: x } = a((e) => e.popupActions), { isHidden: n, isOpen: t } = a(
12
+ (e) => {
13
+ const b = e.popupsIds.filter((D) => e.hashPopups[D].status === "init");
14
+ return {
15
+ isHidden: e.popupsIds.indexOf(o) > -1 && b.indexOf(o) === -1,
16
+ isOpen: b.indexOf(o) > -1
17
+ };
18
+ },
19
+ I
20
+ ), d = s((e) => {
21
+ p.dragging.enable(), e.stopPropagation(), document.removeEventListener("mouseup", d);
22
+ }, [p]), O = s((e) => {
23
+ p.dragging.disable(), e.stopPropagation(), document.addEventListener("mouseup", d);
24
+ }, [p.dragging, d]), r = s(() => {
25
+ if (u) {
26
+ if (n) {
27
+ x(o), l(o, !0);
28
+ return;
29
+ }
30
+ if (t) {
31
+ l(o, !0);
32
+ return;
33
+ }
34
+ g(
35
+ {
36
+ winType: "component",
37
+ popupId: o,
38
+ title: f,
39
+ iconUrl: c,
40
+ component: u,
41
+ onMouseDown: O,
42
+ defaultPosition: m
43
+ },
44
+ { closeOthers: !1 }
45
+ );
46
+ }
47
+ }, [
48
+ u,
49
+ g,
50
+ l,
51
+ m,
52
+ c,
53
+ n,
54
+ t,
55
+ O,
56
+ o,
57
+ x,
58
+ f
59
+ ]), i = s(() => {
60
+ !t && !n || P(o);
61
+ }, [P, n, t, o]), C = s(() => {
62
+ if (t || n) {
63
+ i();
64
+ return;
65
+ }
66
+ r();
67
+ }, [i, n, t, r]);
68
+ return {
69
+ externalControllerContext: w(() => ({
70
+ closeDefault: i,
71
+ isHidden: n,
72
+ isOpen: t,
73
+ openDefault: r,
74
+ toggleDefault: C,
75
+ toolId: o
76
+ }), [
77
+ i,
78
+ n,
79
+ t,
80
+ r,
81
+ o,
82
+ C
83
+ ]),
84
+ isDisabled: n,
85
+ isToggled: t
86
+ };
87
+ }
88
+ export {
89
+ H as usePopupToolRuntime
90
+ };
@@ -1,10 +1,8 @@
1
1
  import { useToolProps } from './types';
2
2
  /**
3
- * hook que contiene las funciones y estado de los botones de herramientas de la parte superior derecha del mapa
4
- * - Boton de herramientas de GPS (Opcional)
5
- * - Boton de herramientas de medición
6
- * @param props
7
- * @returns
3
+ * Small orchestration hook for popup-capable map tools.
4
+ * Popup runtime behavior lives in `usePopupToolRuntime`, while this hook only
5
+ * wires optional external control and the trigger click contract.
8
6
  */
9
7
  export declare function useTool(props: useToolProps): {
10
8
  onToolClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY;qBA0CL,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC;;;EAiCpF"}
1
+ {"version":3,"file":"useTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAKvC;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY;qBAwCL,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC;;;EA2BpF"}
@@ -1,43 +1,40 @@
1
- import { useMap as b } from "react-leaflet";
2
- import { usePopupsStore as i, deepShallow as h } from "@m4l/components";
3
- import { useCallback as r } from "react";
4
- function k(f) {
5
- const { ToolComponent: s, popupId: n, iconUrl: u, title: a, defaultPosition: l } = f, { addPopup: d } = i((o) => o.popupsActions), { close: c } = i((o) => o.popupActions), { isToggled: p, isDisabled: P } = i(
6
- (o) => {
7
- const g = o.popupsIds.filter((T) => o.hashPopups[T].status === "init");
8
- return {
9
- isToggled: g.indexOf(n) > -1,
10
- isDisabled: o.popupsIds.indexOf(n) > -1 && g.indexOf(n) === -1
11
- };
12
- },
13
- h
14
- ), e = b(), t = r((o) => {
15
- e.dragging.enable(), o.stopPropagation(), document.removeEventListener("mouseup", t);
16
- }, [e]), m = r((o) => {
17
- e.dragging.disable(), o.stopPropagation(), document.addEventListener("mouseup", t);
18
- }, [e.dragging, t]);
19
- return {
20
- onToolClick: r((o) => {
21
- s && (p ? c(n) : d(
22
- {
23
- winType: "component",
24
- popupId: n,
25
- title: a,
26
- iconUrl: u,
27
- component: s,
28
- onMouseDown: m,
29
- defaultPosition: l,
30
- dynamicParams: {
31
- mytool: "juan"
32
- }
33
- },
34
- { closeOthers: !1 }
35
- ), o.stopPropagation());
36
- }, [s, p, d, n, a, u, m, l, c]),
1
+ import { useMemo as u, useCallback as m } from "react";
2
+ import { useMapStore as g } from "../../../../../hooks/useMapStore/index.js";
3
+ import { useRegisterMapToolController as c } from "../../../../../hooks/useRegisterMapToolController.js";
4
+ import { usePopupToolRuntime as f } from "./usePopupToolRuntime.js";
5
+ import { shallow as T } from "zustand/shallow";
6
+ function v(n) {
7
+ const {
8
+ ToolComponent: e,
9
+ popupId: t,
10
+ externalController: o
11
+ } = n, { toggleTool: s } = g((r) => ({
12
+ toggleTool: r.mapActions.toggleTool
13
+ }), T), {
14
+ externalControllerContext: l,
15
+ isDisabled: a,
16
+ isToggled: p
17
+ } = f(n), i = u(() => {
18
+ if (!(!e || !o))
19
+ return o(l);
20
+ }, [e, o, l]);
21
+ return c(t, i, {
22
+ enabled: !!i,
23
+ scope: "default"
24
+ }), {
25
+ onToolClick: m((r) => {
26
+ e && (o ? s(t) : l.toggleDefault(), r.stopPropagation());
27
+ }, [
28
+ e,
29
+ o,
30
+ l,
31
+ t,
32
+ s
33
+ ]),
37
34
  isToggled: p,
38
- isDisabled: P
35
+ isDisabled: a
39
36
  };
40
37
  }
41
38
  export {
42
- k as useTool
39
+ v as useTool
43
40
  };
@@ -1,6 +1,7 @@
1
1
  import { MapToolButton } from '../../../../../types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Builds the built-in zoom controls and keeps their disabled state aligned with
4
+ * the current Leaflet zoom bounds.
4
5
  */
5
6
  export declare function useZoomBottons(): MapToolButton[];
6
7
  //# sourceMappingURL=useZoomBottons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useZoomBottons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD;;GAEG;AACH,wBAAgB,cAAc,IAAI,aAAa,EAAE,CAmDhD"}
1
+ {"version":3,"file":"useZoomBottons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,aAAa,EAAE,CAyDhD"}
@@ -1,51 +1,57 @@
1
- import { jsx as c } from "@emotion/react/jsx-runtime";
2
- import { useState as u, useEffect as M, useCallback as d, useMemo as z } from "react";
3
- import { useMap as _ } from "react-leaflet";
4
- import { MAP_ICONS as p } from "../../../../../icons.js";
5
- import { useEnvironment as C } from "@m4l/core";
6
- import { ZoomButtonStyled as f } from "../../../../../slots/styled.js";
1
+ import { jsx as d } from "@emotion/react/jsx-runtime";
2
+ import { useState as u, useEffect as O, useCallback as c, useMemo as M } from "react";
3
+ import { useMap as I } from "react-leaflet";
4
+ import { MAP_ICONS as l } from "../../../../../icons.js";
5
+ import { useEnvironment as _ } from "@m4l/core";
6
+ import { ZoomButtonStyled as p } from "../../../../../slots/styled.js";
7
7
  function g() {
8
- const o = _(), { host_static_assets: t, environment_assets: n } = C(), [s, l] = u(!1), [m, Z] = u(!1);
9
- M(() => {
10
- const e = () => {
11
- const r = o.getZoom(), O = o.getMaxZoom(), b = o.getMinZoom();
12
- l(r === O), Z(r === b);
8
+ const o = I(), { host_static_assets: t, environment_assets: n } = _(), [e, Z] = u(!1), [s, f] = u(!1);
9
+ O(() => {
10
+ const m = () => {
11
+ const r = o.getZoom(), z = o.getMaxZoom(), b = o.getMinZoom();
12
+ Z(r === z), f(r === b);
13
13
  };
14
- return o.on("zoomend", e), e(), () => {
15
- o.off("zoomend", e);
14
+ return o.on("zoomend", m), m(), () => {
15
+ o.off("zoomend", m);
16
16
  };
17
17
  }, [o]);
18
- const a = d(() => {
18
+ const a = c(() => {
19
19
  o.zoomIn();
20
- }, [o]), i = d(() => {
20
+ }, [o]), i = c(() => {
21
21
  o.zoomOut();
22
22
  }, [o]);
23
- return z(() => [
23
+ return M(() => [
24
24
  {
25
25
  id: "zoom-in",
26
26
  type: "button",
27
- ButtonComponent: /* @__PURE__ */ c(
28
- f,
27
+ ButtonComponent: /* @__PURE__ */ d(
28
+ p,
29
29
  {
30
30
  onClick: a,
31
- src: `${t}/${n}/frontend/components/map/assets/icons/${p.MAP_ZOOM_IN}`,
32
- disabled: s
31
+ src: `${t}/${n}/frontend/components/map/assets/icons/${l.MAP_ZOOM_IN}`,
32
+ disabled: e,
33
+ "aria-label": "Zoom in",
34
+ "data-map-tool-id": "zoom-in",
35
+ dataTestId: "map-tool-zoom-in"
33
36
  }
34
37
  )
35
38
  },
36
39
  {
37
40
  id: "zoom-out",
38
41
  type: "button",
39
- ButtonComponent: /* @__PURE__ */ c(
40
- f,
42
+ ButtonComponent: /* @__PURE__ */ d(
43
+ p,
41
44
  {
42
45
  onClick: i,
43
- src: `${t}/${n}/frontend/components/map/assets/icons/${p.MAP_ZOOM_OUT}`,
44
- disabled: m
46
+ src: `${t}/${n}/frontend/components/map/assets/icons/${l.MAP_ZOOM_OUT}`,
47
+ disabled: s,
48
+ "aria-label": "Zoom out",
49
+ "data-map-tool-id": "zoom-out",
50
+ dataTestId: "map-tool-zoom-out"
45
51
  }
46
52
  )
47
53
  }
48
- ], [a, t, n, s, i, m]);
54
+ ], [a, t, n, e, i, s]);
49
55
  }
50
56
  export {
51
57
  g as useZoomBottons
@@ -1,8 +1,2 @@
1
- import { ButtonsToolsListProps } from './types';
2
- /**
3
- * Inserta los botones de herramientas en los controles del mapa
4
- * @param props
5
- * @returns
6
- */
7
- export declare function ButtonsToolsList(props: ButtonsToolsListProps): import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export * from './ButtonsToolsList';
8
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,oDA4C5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ButtonToolProps } from './types';
2
+ /**
3
+ * Tool button responsible for rendering the control trigger and delegating the
4
+ * popup lifecycle to the shared popup store.
5
+ */
6
+ export declare function ButtonPopupTool(props: ButtonToolProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
7
+ //# sourceMappingURL=ButtonPopupTool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonPopupTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,2DAoBrD"}
@@ -0,0 +1,22 @@
1
+ import { jsx as a } from "@emotion/react/jsx-runtime";
2
+ import { useTool as d } from "../../hooks/useTool.js";
3
+ import { ToggleIconButtonPopupToolStyled as u } from "../../../../../../slots/styled.js";
4
+ function c(o) {
5
+ const { ToolComponent: i, iconUrl: n, popupId: t, title: l } = o, { onToolClick: e, isDisabled: p, isToggled: r } = d(o);
6
+ return i ? /* @__PURE__ */ a(
7
+ u,
8
+ {
9
+ isToggled: r,
10
+ disabled: p,
11
+ onToggle: e,
12
+ icon: n,
13
+ tooltip: l,
14
+ "aria-label": l,
15
+ "data-map-tool-id": t,
16
+ dataTestId: `map-tool-${t}`
17
+ }
18
+ ) : null;
19
+ }
20
+ export {
21
+ c as ButtonPopupTool
22
+ };
@@ -1,6 +1,2 @@
1
- import { ButtonToolProps } from './types';
2
- /**
3
- * Boton de herramienta, se encarga de renderizar el boton de herramienta y gestionar el popup asociado.
4
- */
5
- export declare function ButtonPopupTool(props: ButtonToolProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
1
+ export * from './ButtonPopupTool';
6
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,2DAgBrD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MapLayersTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.tsx"],"names":[],"mappings":"AAcA;;GAEG;AACH,wBAAgB,aAAa,qDA2B5B"}
1
+ {"version":3,"file":"MapLayersTool.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,wBAAgB,aAAa,qDA6B5B"}
@@ -1,13 +1,14 @@
1
1
  import { jsx as s } from "@emotion/react/jsx-runtime";
2
2
  import { useMapLayersTool as i } from "./hooks/useMapLayersTool.js";
3
- import { useDisableMapEventsOnMouseOver as m } from "../../../../../../hooks/useDisableMapEventsOnMouseOver/index.js";
4
- import { useRef as l } from "react";
5
- import { GpsMapLayersToolRootStyled as c } from "./slots/styled.js";
6
- import { MapLayerRow as p } from "./subcomponents/MapLayerRow.js";
7
- function A() {
8
- const { layers: t, setCheckedLayers: r, removeLayer: u } = i(), o = l(null);
9
- return m(o.current), /* @__PURE__ */ s(c, { ref: o, children: t.map((e) => /* @__PURE__ */ s(
10
- p,
3
+ import { useDisableMapEventsOnMouseOver as p } from "../../../../../../hooks/useDisableMapEventsOnMouseOver/index.js";
4
+ import { useRef as c } from "react";
5
+ import { GpsMapLayersToolRootStyled as l } from "./slots/styled.js";
6
+ import { MapLayerRow as a } from "./subcomponents/MapLayerRow.js";
7
+ import { useMap as n } from "react-leaflet";
8
+ function F() {
9
+ const { layers: t, setCheckedLayers: r, removeLayer: u } = i(), o = c(null), m = n();
10
+ return p(m, o.current), /* @__PURE__ */ s(l, { ref: o, children: t.map((e) => /* @__PURE__ */ s(
11
+ a,
11
12
  {
12
13
  id: e.id,
13
14
  name: e.name,
@@ -24,5 +25,5 @@ function A() {
24
25
  )) });
25
26
  }
26
27
  export {
27
- A as MapLayersTool
28
+ F as MapLayersTool
28
29
  };