@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
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "@emotion/react/jsx-runtime";
2
- import { createContext as u, useRef as f } from "react";
3
- import { useModuleDictionary as m } from "@m4l/core";
2
+ import { createContext as u, useRef as m } from "react";
3
+ import { useModuleDictionary as f } from "@m4l/core";
4
4
  import { createMapStore as M } from "./store.js";
5
5
  const g = u(null);
6
6
  function D(t) {
@@ -10,16 +10,12 @@ function D(t) {
10
10
  initialMapData: a,
11
11
  googleMapsApiKey: i,
12
12
  googleMapVersion: n = "weekly",
13
- storeId: s,
13
+ storeId: p,
14
14
  storeDevtoolsEnabled: l = !1
15
- } = t, { getLabel: p } = m(), e = f(null);
15
+ } = t, { getLabel: s } = f(), e = m(null);
16
16
  return e.current || (e.current = M({
17
- storeId: s,
18
- getLabel: p,
19
- ownerState: {
20
- status: "init",
21
- focus: !1
22
- },
17
+ storeId: p,
18
+ getLabel: s,
23
19
  hasMapData: a || {},
24
20
  googleMapsApiKey: i,
25
21
  googleMapVersion: n
@@ -0,0 +1,21 @@
1
+ import { MapToolController, MapToolControllerScope } from '../../../types';
2
+ export type ToolControllerRegistryEntry = Partial<Record<MapToolControllerScope, MapToolController>>;
3
+ export type ToolControllerRegistry = Map<string, ToolControllerRegistryEntry>;
4
+ /**
5
+ * Resolves the currently active controller for a tool, prioritizing runtime
6
+ * overrides over the default controller published by the tool definition.
7
+ */
8
+ export declare function resolveToolController(registry: ToolControllerRegistry, toolId: string): Partial<Record<import('../../../types').MapToolControlCommand, () => void>> | undefined;
9
+ /**
10
+ * Stores or replaces a controller in the requested registry scope.
11
+ */
12
+ export declare function registerToolController(registry: ToolControllerRegistry, toolId: string, controller: MapToolController, scope?: MapToolControllerScope): void;
13
+ /**
14
+ * Removes a controller from the requested scope and prunes empty tool entries.
15
+ */
16
+ export declare function unregisterToolController(registry: ToolControllerRegistry, toolId: string, scope?: MapToolControllerScope): void;
17
+ /**
18
+ * Delegates a semantic command to the resolved controller when one is present.
19
+ */
20
+ export declare function runToolCommand(registry: ToolControllerRegistry, toolId: string, command: keyof MapToolController): void;
21
+ //# sourceMappingURL=toolControllerRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolControllerRegistry.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,MAAM,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAClD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAE9E;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,2FAKf;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,iBAAiB,EAC7B,KAAK,GAAE,sBAAkC,QAM1C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,sBAAkC,QAgB1C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,iBAAiB,QAGjC"}
@@ -0,0 +1,27 @@
1
+ function u(e, n) {
2
+ const t = e.get(n);
3
+ return t?.runtime ?? t?.default;
4
+ }
5
+ function l(e, n, t, r = "runtime") {
6
+ const o = e.get(n) ?? {};
7
+ o[r] = t, e.set(n, o);
8
+ }
9
+ function c(e, n, t = "runtime") {
10
+ const r = e.get(n);
11
+ if (r) {
12
+ if (delete r[t], !r.default && !r.runtime) {
13
+ e.delete(n);
14
+ return;
15
+ }
16
+ e.set(n, r);
17
+ }
18
+ }
19
+ function i(e, n, t) {
20
+ u(e, n)?.[t]?.();
21
+ }
22
+ export {
23
+ l as registerToolController,
24
+ u as resolveToolController,
25
+ i as runToolCommand,
26
+ c as unregisterToolController
27
+ };
@@ -1,3 +1,3 @@
1
1
  export { MapProvider, MapContext } from './MapContext';
2
- export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, FeatureLayerData, } from './types';
2
+ export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureSelectionSource, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, FeatureLayerData, SelectedFeatureState, } from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { MapStateWithActions, InitialMapStoreProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Creates the map store instance with its initial state and actions.
4
4
  */
5
5
  export declare const createMapStore: (initProps: InitialMapStoreProps, storeDevtoolsEnabled?: boolean) => import('zustand').StoreApi<MapStateWithActions>;
6
6
  export type MapStore = ReturnType<typeof createMapStore>;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/store.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EASrB,MAAM,SAAS,CAAC;AA6BjB;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,oBAAoB,EAAE,8BAA4B,oDAsa3F,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/store.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAMrB,MAAM,SAAS,CAAC;AAmCjB;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,oBAAoB,EAAE,8BAA4B,oDAyV3F,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,31 +1,34 @@
1
- import { createStore as d } from "zustand";
2
- import { devtools as l } from "zustand/middleware";
3
- import { immer as j } from "zustand/middleware/immer";
4
- import u from "lodash-es/cloneDeep";
5
- import L from "lodash-es/merge";
6
- import { TILE_LAYER_OTHERS as O } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/others.js";
7
- import { TILE_SORCE_GOOGLE as m } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/google.js";
8
- import { TILE_LAYER_BING as g } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/bing.js";
9
- const J = (h, f) => {
10
- const { enabled: y = !1 } = f;
11
- return y && process.env.NODE_ENV === "development" ? l(h, f) : h;
12
- }, R = (h, f = !1) => {
13
- const y = {
1
+ import { createStore as m } from "zustand";
2
+ import { devtools as j } from "zustand/middleware";
3
+ import { immer as F } from "zustand/middleware/immer";
4
+ import { runToolCommand as L, unregisterToolController as O, registerToolController as g } from "./helpers/toolControllerRegistry.js";
5
+ import f from "lodash-es/cloneDeep";
6
+ import y from "lodash-es/merge";
7
+ import { TILE_LAYER_OTHERS as w } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/others.js";
8
+ import { TILE_SORCE_GOOGLE as J } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/google.js";
9
+ import { TILE_LAYER_BING as E } from "../../subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/sourceTypes/bing.js";
10
+ const T = (u, l) => {
11
+ const { enabled: p = !1 } = l;
12
+ return p && process.env.NODE_ENV === "development" ? j(u, l) : u;
13
+ }, A = (u, l = !1) => {
14
+ const p = {
14
15
  currentMapSourceLayer: {
15
16
  mapSourceId: "google",
16
17
  mapSourceLayerId: "streets"
17
18
  },
18
- mapSources: [m, g, O],
19
+ mapSources: [J, E, w],
19
20
  layersIds: [],
20
21
  hashLayers: {},
21
22
  autoFocusLayers: !0,
22
- ...h
23
+ selectedFeature: null,
24
+ ...u
23
25
  };
24
- let p = null;
25
- return d(
26
- J(
27
- j((n, i) => ({
28
- ...y,
26
+ let d = null;
27
+ const h = /* @__PURE__ */ new Map();
28
+ return m(
29
+ T(
30
+ F((n, i) => ({
31
+ ...p,
29
32
  mapActions: {
30
33
  /**
31
34
  * TODO: Documentar
@@ -33,27 +36,19 @@ const J = (h, f) => {
33
36
  init: (e) => {
34
37
  n((r) => {
35
38
  for (let o = 0; o < e.length; o++)
36
- r.hashLayers[e[o].layerId] = u(e[o]), r.layersIds.push(e[o].layerId);
39
+ r.hashLayers[e[o].layerId] = f(e[o]), r.layersIds.push(e[o].layerId);
37
40
  });
38
41
  },
39
42
  /**
40
43
  * Actualiza el ref del mapa
41
44
  */
42
45
  setMapRef: (e) => {
43
- p = e;
46
+ d = e;
44
47
  },
45
48
  /**
46
49
  * Retorna el ref del mapa
47
50
  */
48
- getMap: () => p,
49
- /**
50
- * TODO: Documentar
51
- */
52
- setMapState: (e) => {
53
- n((r) => {
54
- r.ownerState.status = e;
55
- });
56
- },
51
+ getMap: () => d,
57
52
  /**
58
53
  * Actualiza la información transversal a todas las capas.
59
54
  */
@@ -62,46 +57,6 @@ const J = (h, f) => {
62
57
  r.hasMapData = { ...r.hasMapData, ...e };
63
58
  });
64
59
  },
65
- // isEqualsMapProperties: (_newMapProperties: MapProperties) => {
66
- // // if (get().mapProperties === undefined) {
67
- // // return false;
68
- // // }
69
- // // return (
70
- // // JSON.stringify(get().mapProperties) === JSON.stringify(newMapProperties)
71
- // // );
72
- // return false;
73
- // },
74
- // setMapProperties: (newMapProperties: MapProperties) => {
75
- // if (!get().mapActions.isEqualsMapProperties(newMapProperties)) {
76
- // set(state => {
77
- // state.mapProperties = newMapProperties;
78
- // if (state.ownerState.status === 'init') {
79
- // state.ownerState.status = 'ready';
80
- // updateOwnerStateClasses(state);
81
- // }
82
- // });
83
- // }
84
- // },
85
- // setAllFeaturesDataLayer: (layerId: string, value: AllFeaturesDatalLayer) => {
86
- // set(state => {
87
- // // if (
88
- // // value.geometry === 'multipoints' &&
89
- // // state.hashLayers[layerId].geometry === value.geometry
90
- // // ) {
91
- // // (
92
- // // state.hashLayers[layerId] as WritableDraft<LayerMultiPointProps>
93
- // // ).hashFeatures = cloneDeep(value.hashFeatures); // Valor puro
94
- // // }
95
- // // if (
96
- // // value.geometry === 'multilines' &&
97
- // // state.hashLayers[layerId].geometry === value.geometry
98
- // // ) {
99
- // // (
100
- // // state.hashLayers[layerId] as WritableDraft<LayerMultiLineProps>
101
- // // ).hashFeatures = cloneDeep(value.hashFeatures);
102
- // // }
103
- // });
104
- // },
105
60
  /**
106
61
  * Modifica toda la capa, reemplanzando todo el geoJson
107
62
  */
@@ -109,8 +64,8 @@ const J = (h, f) => {
109
64
  if (!i().hashLayers[e])
110
65
  throw new Error(`Layer with id ${e} not found`);
111
66
  n((o) => {
112
- const a = o.hashLayers[e];
113
- a.geoJsonObject = r;
67
+ const s = o.hashLayers[e];
68
+ s.geoJsonObject = r;
114
69
  });
115
70
  },
116
71
  /**
@@ -120,8 +75,8 @@ const J = (h, f) => {
120
75
  if (!i().hashLayers[e])
121
76
  throw new Error(`Layer with id ${e} not found`);
122
77
  n((o) => {
123
- const a = o.hashLayers[e];
124
- a.geoJsonObject = L(a.geoJsonObject, r);
78
+ const s = o.hashLayers[e];
79
+ s.geoJsonObject = y(s.geoJsonObject, r);
125
80
  });
126
81
  },
127
82
  /**
@@ -136,22 +91,22 @@ const J = (h, f) => {
136
91
  /**
137
92
  * TODO: Documentar
138
93
  */
139
- setFeatureData: (e, r, o, a) => {
94
+ setFeatureData: (e, r, o, s) => {
140
95
  if (!i().hashLayers[e])
141
96
  throw new Error(`Layer with id ${e} not found`);
142
97
  n((t) => {
143
98
  if (t.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
144
- const s = t.hashLayers[e].geoJsonObject?.object;
145
- let c = s.features.find((b) => b.id === r);
146
- c ? (c.geometry = u(o), c.properties = L(c.properties, a)) : (c = {
99
+ const a = t.hashLayers[e].geoJsonObject?.object;
100
+ let c = a.features.find((b) => b.id === r);
101
+ c ? (c.geometry = f(o), c.properties = y(c.properties, s)) : (c = {
147
102
  type: "Feature",
148
103
  geometry: o,
149
104
  id: r,
150
- properties: a
151
- }, s.features.push(c));
105
+ properties: s
106
+ }, a.features.push(c));
152
107
  } else if (t.hashLayers[e].geoJsonObject?.object.type === "Feature") {
153
- const s = t.hashLayers[e].geoJsonObject?.object;
154
- s.id = r, s.geometry = u(o), s.properties = u(a);
108
+ const a = t.hashLayers[e].geoJsonObject?.object;
109
+ a.id = r, a.geometry = f(o), a.properties = f(s);
155
110
  }
156
111
  });
157
112
  },
@@ -163,12 +118,13 @@ const J = (h, f) => {
163
118
  throw new Error(`Layer with id ${e} not found`);
164
119
  n((o) => {
165
120
  if (o.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
166
- const a = o.hashLayers[e].geoJsonObject?.object, t = a.features.findIndex((s) => s.id === r);
167
- t !== -1 && a.features.splice(t, 1);
121
+ const s = o.hashLayers[e].geoJsonObject?.object, t = s.features.findIndex((a) => a.id === r);
122
+ t !== -1 && s.features.splice(t, 1);
168
123
  } else if (o.hashLayers[e].geoJsonObject?.object.type === "Feature") {
169
- const a = o.hashLayers[e].geoJsonObject?.object;
170
- a.geometry = { type: "Point", coordinates: [0, 0] }, a.properties = { subType: "Marker" };
124
+ const s = o.hashLayers[e].geoJsonObject?.object;
125
+ s.geometry = { type: "Point", coordinates: [0, 0] }, s.properties = { subType: "Marker" };
171
126
  }
127
+ o.selectedFeature?.layerId === e && o.selectedFeature.featureId === r && (o.selectedFeature = null);
172
128
  });
173
129
  },
174
130
  /**
@@ -193,13 +149,13 @@ const J = (h, f) => {
193
149
  * TODO: Documentar
194
150
  */
195
151
  addLayerDataToFeature: (e, r, o) => {
196
- n((a) => {
197
- if (a.hashLayers[e]) {
198
- if (a.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
199
- const s = (a.hashLayers[e].geoJsonObject?.object).features.find((c) => c.id === r);
200
- s && (s.layerData = L(s.layerData || {}, o));
201
- } else if (a.hashLayers[e].geoJsonObject?.object.type === "Feature") {
202
- const t = a.hashLayers[e].geoJsonObject?.object;
152
+ n((s) => {
153
+ if (s.hashLayers[e]) {
154
+ if (s.hashLayers[e].geoJsonObject?.object.type === "FeatureCollection") {
155
+ const a = (s.hashLayers[e].geoJsonObject?.object).features.find((c) => c.id === r);
156
+ a && (a.layerData = y(a.layerData || {}, o));
157
+ } else if (s.hashLayers[e].geoJsonObject?.object.type === "Feature") {
158
+ const t = s.hashLayers[e].geoJsonObject?.object;
203
159
  t.layerData && (t.layerData = o);
204
160
  }
205
161
  }
@@ -210,50 +166,68 @@ const J = (h, f) => {
210
166
  */
211
167
  removeLayer: (e) => {
212
168
  i().hashLayers[e] && n((r) => {
213
- r.layersIds.splice(r.layersIds.indexOf(e), 1), delete r.hashLayers[e];
169
+ r.layersIds.splice(r.layersIds.indexOf(e), 1), delete r.hashLayers[e], r.selectedFeature?.layerId === e && (r.selectedFeature = null);
214
170
  });
215
171
  },
216
172
  /**
217
- * TODO: Documentar
173
+ * Stores external feature-selection intent so renderers can react declaratively.
174
+ */
175
+ selectFeature: (e, r, o) => {
176
+ n((s) => {
177
+ s.selectedFeature = {
178
+ layerId: e,
179
+ featureId: r,
180
+ openPopup: o?.openPopup ?? !1,
181
+ source: o?.source ?? "external",
182
+ requestId: (s.selectedFeature?.requestId ?? 0) + 1
183
+ };
184
+ });
185
+ },
186
+ /**
187
+ * Clears external feature-selection intent.
188
+ */
189
+ clearSelectedFeature: () => {
190
+ n((e) => {
191
+ e.selectedFeature = null;
192
+ });
193
+ },
194
+ /**
195
+ * Registers a tool controller without forcing controller state into the
196
+ * reactive map store.
197
+ */
198
+ registerToolController: (e, r, o = "runtime") => {
199
+ g(h, e, r, o);
200
+ },
201
+ /**
202
+ * Removes a previously registered tool controller.
203
+ */
204
+ unregisterToolController: (e, r = "runtime") => {
205
+ O(h, e, r);
206
+ },
207
+ /**
208
+ * Delegates an external open command to the resolved tool controller.
209
+ */
210
+ openTool: (e) => {
211
+ L(h, e, "open");
212
+ },
213
+ /**
214
+ * Delegates an external close command to the resolved tool controller.
215
+ */
216
+ closeTool: (e) => {
217
+ L(h, e, "close");
218
+ },
219
+ /**
220
+ * Delegates an external toggle command to the resolved tool controller.
218
221
  */
219
- featureOpenPoup: (e, r) => {
220
- const o = i().hashLayers[e];
221
- let a;
222
- o && (o.geoJsonObject?.object?.type === "FeatureCollection" ? a = (o.geoJsonObject?.object).features.find(
223
- (s) => s.id === r
224
- ) : o.geoJsonObject?.object.type === "Feature" && (a = o.geoJsonObject?.object)), a !== void 0 && a.layerData?.getTarget()?.openPopup();
222
+ toggleTool: (e) => {
223
+ L(h, e, "toggle");
225
224
  },
226
- // removeLefletLayerToFeature: (layerId, featureId ) => {
227
- // set(state => {
228
- // //se pon si existe, porque cuando se borran las capas, ya no hay forma
229
- // if (state.hashLayers[layerId]){
230
- // if (
231
- // state.hashLayers[layerId].geoJsonObject?.object.type ===
232
- // 'FeatureCollection'
233
- // ) {
234
- // //Remove feature from featureCollection
235
- // const layer = state.hashLayers[layerId].geoJsonObject
236
- // ?.object as FeatureCollection;
237
- // const index = layer.features.findIndex(f => f.id === featureId);
238
- // if (index !== -1) {
239
- // layer.features[index].layerData = undefined;
240
- // }
241
- // } else if (
242
- // state.hashLayers[layerId].geoJsonObject?.object.type === 'Feature'
243
- // ) {
244
- // const feature = state.hashLayers[layerId].geoJsonObject
245
- // ?.object as Feature;
246
- // feature.layerData = undefined;
247
- // }
248
- // }
249
- // });
250
- // },
251
225
  /**
252
226
  * TODO: Documentar
253
227
  */
254
228
  setCheckedLayers: (e, r, o) => {
255
- n((a) => {
256
- a.hashLayers[e] && (a.hashLayers[e][r] = o);
229
+ n((s) => {
230
+ s.hashLayers[e] && (s.hashLayers[e][r] = o);
257
231
  });
258
232
  },
259
233
  /**
@@ -261,8 +235,8 @@ const J = (h, f) => {
261
235
  */
262
236
  setCurrentMapSourceLayer: (e, r) => {
263
237
  n((o) => {
264
- const a = o.mapSources.find((t) => t.id === e);
265
- a && a.layers.find((t) => t.id === r) && (o.currentMapSourceLayer = {
238
+ const s = o.mapSources.find((t) => t.id === e);
239
+ s && s.layers.find((t) => t.id === r) && (o.currentMapSourceLayer = {
266
240
  mapSourceId: e,
267
241
  mapSourceLayerId: r
268
242
  });
@@ -272,22 +246,22 @@ const J = (h, f) => {
272
246
  * TODO: Documentar
273
247
  */
274
248
  setMapSourceLayerRoadOptions: (e, r, o) => {
275
- n((a) => {
276
- const s = a.mapSources.find((c) => c.id === e)?.layers.find((c) => c.id === r);
277
- s && (s.roadSelectedOptions = {
278
- bicyclingLayer: s.roadSelectedOptions?.bicyclingLayer || !1,
279
- trafficLayer: s.roadSelectedOptions?.trafficLayer || !1,
280
- transitLayer: s.roadSelectedOptions?.transitLayer || !1,
249
+ n((s) => {
250
+ const a = s.mapSources.find((c) => c.id === e)?.layers.find((c) => c.id === r);
251
+ a && (a.roadSelectedOptions = {
252
+ bicyclingLayer: a.roadSelectedOptions?.bicyclingLayer || !1,
253
+ trafficLayer: a.roadSelectedOptions?.trafficLayer || !1,
254
+ transitLayer: a.roadSelectedOptions?.transitLayer || !1,
281
255
  ...o
282
256
  });
283
257
  });
284
258
  }
285
259
  }
286
260
  })),
287
- { name: `Map store: ${h.storeId}`, enabled: f }
261
+ { name: `Map store: ${u.storeId}`, enabled: l }
288
262
  )
289
263
  );
290
264
  };
291
265
  export {
292
- R as createMapStore
266
+ A as createMapStore
293
267
  };