@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,238 +1,221 @@
1
- import { jsx as n, jsxs as g, Fragment as _ } from "@emotion/react/jsx-runtime";
2
- import { Circle as v, Polyline as D, Polygon as M, GeoJSON as j } from "react-leaflet";
3
- import { shallow as y } from "zustand/shallow";
4
- import { useMapStore as m } from "../../hooks/useMapStore/index.js";
5
- import k, { useState as w, useEffect as H, useCallback as f } from "react";
6
- import { MARKER_COLOR_DEFAULT as h, LABEL_FILLCOLOR_DEFAULT as B, LABEL_COLOR_DEFAULT as I, SVG_ICON_DEFAULT as N } from "../../constants.js";
7
- import { MarkerIconLabel as c } from "../MarkerIconLabel/index.js";
8
- import { FALLBACK_SVG as U } from "./constants.js";
9
- import { PolylineWithArrows as W } from "../../pluginLayers/PolylineWithArrows/index.js";
10
- const $ = (b) => {
11
- const { id: L, layerId: s } = b, e = m((t) => {
12
- const r = t.hashLayers[s].geoJsonObject;
13
- if (!r)
14
- return null;
15
- if (r.object.type === "Feature")
16
- return {
17
- id: r.object.id,
18
- geometry: r.object.geometry,
19
- properties: r.object.properties,
20
- popupRender: t.hashLayers[s].popupComponent,
21
- popupOptions: t.hashLayers[s].popupOptions
22
- };
23
- {
24
- const p = r.object.features.find((o) => o.id === L);
25
- return p ? {
26
- id: p.id,
27
- geometry: p.geometry,
28
- properties: p.properties,
29
- popupRender: t.hashLayers[s].popupComponent,
30
- popupOptions: t.hashLayers[s].popupOptions
1
+ import { jsx as a, jsxs as g, Fragment as v } from "@emotion/react/jsx-runtime";
2
+ import W, { useState as w, useEffect as H, useCallback as y } from "react";
3
+ import { Circle as I, Polyline as B, Polygon as N, GeoJSON as U } from "react-leaflet";
4
+ import { shallow as f } from "zustand/shallow";
5
+ import { useMapStore as h } from "../../hooks/useMapStore/index.js";
6
+ import { MarkerIconLabel as b } from "../MarkerIconLabel/index.js";
7
+ import { MARKER_COLOR_DEFAULT as L, LABEL_FILLCOLOR_DEFAULT as x, LABEL_COLOR_DEFAULT as G, SVG_ICON_DEFAULT as J } from "../../constants.js";
8
+ import { FALLBACK_SVG as K } from "./constants.js";
9
+ import { MarkerIconLabelWithPopup as V } from "../MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js";
10
+ import { PolylineWithArrows as q } from "../../pluginLayers/PolylineWithArrows/index.js";
11
+ function z(C = {}) {
12
+ const { popupRender: u, popupOptions: P } = C, m = (A) => {
13
+ const { id: F, layerId: s } = A, e = h((r) => {
14
+ const t = r.hashLayers[s].geoJsonObject;
15
+ if (!t)
16
+ return null;
17
+ if (t.object.type === "Feature")
18
+ return {
19
+ id: t.object.id,
20
+ geometry: t.object.geometry,
21
+ properties: t.object.properties
22
+ };
23
+ const i = t.object.features.find((o) => o.id === F);
24
+ return i ? {
25
+ id: i.id,
26
+ geometry: i.geometry,
27
+ properties: i.properties
31
28
  } : null;
32
- }
33
- }, y), { addLayerDataToFeature: d } = m((t) => t.mapActions, y), [l, C] = w(null);
34
- H(() => {
35
- if (e && e.geometry?.type === "Point" && (e.properties?.subType === "Marker" || e.properties?.subType === void 0)) {
36
- const { iconUrl: t, markerColor: r = h } = e?.properties ?? {};
29
+ }, f), { addLayerDataToFeature: c } = h((r) => r.mapActions, f), [p, T] = w(null);
30
+ H(() => {
31
+ if (!e || e.geometry?.type !== "Point" || e.properties?.subType !== "Marker" && e.properties?.subType !== void 0)
32
+ return;
33
+ const { iconUrl: r, markerColor: t = L } = e.properties ?? {};
37
34
  (async () => {
38
- if (l && l.path === t && l.color === r)
35
+ if (p && p.path === r && p.color === t)
39
36
  return;
40
37
  let o;
41
- if (t)
38
+ if (r)
42
39
  try {
43
- o = await fetch(t).then((i) => i.text());
40
+ o = await fetch(r).then((n) => n.text());
44
41
  } catch {
45
- o = U;
42
+ o = K;
46
43
  }
47
- o || (o = N), o = "data:image/svg+xml;base64," + btoa((o || "").replace(/#1E96DC/g, r)), C({
48
- color: r,
49
- path: t,
44
+ o || (o = J), o = "data:image/svg+xml;base64," + btoa((o || "").replace(/#1E96DC/g, t)), T({
45
+ color: t,
46
+ path: r,
50
47
  data: o
51
48
  });
52
49
  })();
53
- }
54
- }, [e]);
55
- const A = f((t) => {
56
- if (!e)
57
- return;
58
- const r = {
59
- // visible: true,
60
- boundsNW: t.target?._latlng,
61
- boundsSE: t.target?._latlng,
62
- getTarget: () => t.target
63
- // {
64
- // id: e.target?._leaflet_id,
65
- // openPopup: e.target?.openPopup,
66
- // },
67
- // target: e.target,
68
- };
69
- d(s, e.id, r);
70
- }, [e]), u = f((t) => {
50
+ }, [e, p]);
51
+ const R = y((r) => {
52
+ if (!e)
53
+ return;
54
+ const t = {
55
+ boundsNW: r.target?._latlng,
56
+ boundsSE: r.target?._latlng,
57
+ getTarget: () => r.target
58
+ };
59
+ c(s, e.id, t);
60
+ }, [c, e, s]), d = y((r) => {
61
+ if (!e)
62
+ return;
63
+ const t = {
64
+ boundsNW: r.target.getBounds().getNorthWest(),
65
+ boundsSE: r.target.getBounds().getSouthEast(),
66
+ getTarget: () => r.target
67
+ };
68
+ c(s, e.id, t);
69
+ }, [c, e, s]);
71
70
  if (!e)
72
- return;
73
- const r = {
74
- // visible: true,
75
- boundsNW: t.target.getBounds().getNorthWest(),
76
- boundsSE: t.target.getBounds().getSouthEast(),
77
- getTarget: () => t.target
78
- // target: e.target,
71
+ return null;
72
+ const l = {
73
+ featureId: e.id
74
+ }, E = {
75
+ layerId: s,
76
+ ...l
79
77
  };
80
- d(s, e.id, r);
81
- }, [e, d, s]);
82
- if (!e)
83
- return null;
84
- const a = {
85
- featureId: e.id
86
- };
87
- if (e.geometry?.type === "Point") {
88
- const [t, r] = e.geometry.coordinates;
89
- if (e.properties?.subType === "Marker" || e.properties?.subType === void 0) {
90
- const {
91
- iconUrl: p,
92
- iconRotate: o = 0,
93
- scaleIcon: i = 1,
94
- iconHeight: O,
95
- iconWidth: T,
96
- className: x,
97
- label: P,
98
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
99
- markerColor: G = h,
100
- labelBkColor: E = B,
101
- labelColor: R = I,
102
- offsetLeftTop: F = [42, 0],
103
- ...S
104
- } = e.properties;
105
- return p && !l ? null : /* @__PURE__ */ n(
106
- c,
78
+ if (e.geometry?.type === "Point") {
79
+ const [r, t] = e.geometry.coordinates;
80
+ if (e.properties?.subType === "Marker" || e.properties?.subType === void 0) {
81
+ const {
82
+ iconUrl: i,
83
+ iconRotate: o = 0,
84
+ scaleIcon: n = 1,
85
+ iconHeight: S,
86
+ iconWidth: k,
87
+ label: M,
88
+ markerColor: Q = L,
89
+ labelBkColor: O = x,
90
+ labelColor: _ = G,
91
+ offsetLeftTop: D = [42, 0],
92
+ ...j
93
+ } = e.properties;
94
+ return i && !p ? null : /* @__PURE__ */ a(
95
+ V,
96
+ {
97
+ position: { lat: t, lng: r },
98
+ label: M,
99
+ iconSrc: p?.data,
100
+ iconScale: n,
101
+ iconRotate: o,
102
+ width: k,
103
+ height: S,
104
+ fillColor: O,
105
+ color: _,
106
+ offsetLeftTop: D,
107
+ draggable: !1,
108
+ eventHandlers: {
109
+ add: R
110
+ },
111
+ popupRender: u,
112
+ popupOptions: P,
113
+ properties: e.properties,
114
+ ...j,
115
+ ...E
116
+ }
117
+ );
118
+ }
119
+ if (e.properties?.subType === "Circle" && e.properties?.radius) {
120
+ const { subType: i, radius: o, ...n } = e.properties;
121
+ return /* @__PURE__ */ g(v, { children: [
122
+ /* @__PURE__ */ a(
123
+ I,
124
+ {
125
+ center: { lat: t, lng: r },
126
+ radius: e.properties.radius,
127
+ eventHandlers: {
128
+ add: d
129
+ },
130
+ ...n,
131
+ ...l
132
+ },
133
+ Math.random()
134
+ ),
135
+ e.properties.label && /* @__PURE__ */ a(
136
+ b,
137
+ {
138
+ position: [t + e.properties.radius / 111319, r],
139
+ ...e.properties.label
140
+ }
141
+ )
142
+ ] });
143
+ }
144
+ }
145
+ if (e.geometry?.type === "LineString") {
146
+ const r = e.geometry.coordinates.map(
147
+ (t) => [t[1], t[0]]
148
+ );
149
+ return e.properties?.subType === "PolylineWithArrows" ? /* @__PURE__ */ a(
150
+ q,
151
+ {
152
+ positions: r,
153
+ stroke: !0,
154
+ weight: 10,
155
+ eventHandlers: {
156
+ add: d
157
+ },
158
+ dashArray: "20 30",
159
+ ...e.properties,
160
+ ...l
161
+ },
162
+ Math.random()
163
+ ) : /* @__PURE__ */ a(
164
+ B,
107
165
  {
108
- position: { lat: r, lng: t },
109
- label: P,
110
- iconSrc: l?.data,
111
- iconScale: i,
112
- iconRotate: o,
113
- width: T,
114
- height: O,
115
- fillColor: E,
116
- color: R,
117
- offsetLeftTop: F,
118
- draggable: !1,
166
+ positions: r,
167
+ stroke: !0,
168
+ weight: 10,
119
169
  eventHandlers: {
120
- add: A
170
+ add: d
121
171
  },
122
- popupRender: e.popupRender,
123
- properties: e.properties,
124
- popupOptions: e.popupOptions,
125
- ...S,
126
- ...a
127
- }
172
+ dashArray: "20 30",
173
+ ...e.properties,
174
+ ...l
175
+ },
176
+ Math.random()
177
+ );
178
+ }
179
+ if (e.geometry?.type === "Polygon") {
180
+ const r = e.geometry.coordinates.map(
181
+ (i) => i.map(([o, n]) => [n, o])
128
182
  );
129
- } else if (e.properties?.subType === "Circle" && e.properties?.radius) {
130
- const { subType: p, radius: o, ...i } = e.properties;
131
- return /* @__PURE__ */ g(_, { children: [
132
- /* @__PURE__ */ n(
133
- v,
183
+ let t = null;
184
+ return r[0].forEach((i) => {
185
+ const [o, n] = i;
186
+ (!t || o >= t[0] && n >= t[1]) && (t = i);
187
+ }), t = t || r[0][0], /* @__PURE__ */ g(W.Fragment, { children: [
188
+ /* @__PURE__ */ a(
189
+ N,
134
190
  {
135
- center: { lat: r, lng: t },
136
- radius: e.properties?.radius,
191
+ positions: r,
192
+ opacity: 1,
137
193
  eventHandlers: {
138
- add: u
139
- // remove: () => {
140
- // removeLefletLayerToFeature(layerId, feature.id)
141
- // },
194
+ add: d
142
195
  },
143
- ...i,
144
- ...a
145
- },
146
- Math.random()
147
- ),
148
- e.properties?.label && /* @__PURE__ */ n(
149
- c,
150
- {
151
- position: [r + e.properties.radius / 111319, t],
152
- ...e.properties.label
196
+ ...e.properties,
197
+ ...l
153
198
  }
154
- )
199
+ ),
200
+ e.properties.label && /* @__PURE__ */ a(b, { position: t, ...e.properties.label })
155
201
  ] });
156
202
  }
157
- } else if (e.geometry?.type === "LineString") {
158
- const t = e.geometry.coordinates.map(
159
- (r) => [r[1], r[0]]
160
- );
161
- return e.properties?.subType === "PolylineWithArrows" ? /* @__PURE__ */ n(
162
- W,
163
- {
164
- positions: t,
165
- stroke: !0,
166
- weight: 10,
167
- eventHandlers: {
168
- add: u
169
- // remove: () => {;
170
- // removeLefletLayerToFeature(layerId, feature.id)
171
- // },
172
- },
173
- dashArray: "20 30",
174
- ...e.properties,
175
- ...a
176
- },
177
- Math.random()
178
- ) : /* @__PURE__ */ n(
179
- D,
203
+ return e.geometry?.type === "MultiPolygon" ? /* @__PURE__ */ a(
204
+ U,
180
205
  {
181
- positions: t,
182
- stroke: !0,
183
- weight: 10,
206
+ data: e.geometry,
184
207
  eventHandlers: {
185
- add: u
186
- // remove: () => {
187
- // removeLefletLayerToFeature(layerId, feature.id)
188
- // },
208
+ add: d
189
209
  },
190
- dashArray: "20 30",
191
210
  ...e.properties,
192
- ...a
193
- },
194
- Math.random()
195
- );
196
- } else if (e.geometry?.type === "Polygon") {
197
- const t = e.geometry.coordinates.map(
198
- (p) => p.map(([o, i]) => [i, o])
199
- );
200
- let r = null;
201
- return t[0].forEach((p) => {
202
- const [o, i] = p;
203
- (!r || o >= r[0] && i >= r[1]) && (r = p);
204
- }), r = r || t[0][0], /* @__PURE__ */ g(k.Fragment, { children: [
205
- /* @__PURE__ */ n(
206
- M,
207
- {
208
- positions: t,
209
- opacity: 1,
210
- eventHandlers: {
211
- add: u
212
- // remove: () => {
213
- // removeLefletLayerToFeature(layerId, feature.id)
214
- // },
215
- },
216
- ...e.properties,
217
- ...a
218
- }
219
- ),
220
- e?.properties.label && /* @__PURE__ */ n(c, { position: r, ...e?.properties.label })
221
- ] });
222
- } else if (e.geometry?.type === "MultiPolygon")
223
- return /* @__PURE__ */ n(
224
- j,
225
- {
226
- data: e.geometry,
227
- ...e.properties,
228
- ...a,
229
- eventHandlers: {
230
- add: u
231
- }
211
+ ...l
232
212
  }
233
- );
234
- return null;
235
- };
213
+ ) : null;
214
+ };
215
+ return m.displayName = u ? "CommonFeatureRenderWithPopup" : "CommonFeatureRender", m;
216
+ }
217
+ const ae = z();
236
218
  export {
237
- $ as CommonFeatureRender
219
+ ae as CommonFeatureRender,
220
+ z as createCommonFeatureRender
238
221
  };
@@ -1,8 +1,9 @@
1
1
  import { FeatureDescriptionProps } from './types';
2
+ import { default as L } from 'leaflet';
2
3
  /**
3
- * Pinta un marca con un icono y una etiqueta de texto
4
- * Puede o solo pintar el icono o solo la etiqueta de texto o ambos
5
- * Si se le define un popupRender, se renderiza el popup asociado al marcador
4
+ * Renders a generic marker with an icon and an optional text label.
5
+ * This component is intentionally visual-only so higher-level renderers can
6
+ * decide whether they need popup behavior, selection behavior, or both.
6
7
  */
7
- export declare const MarkerIconLabel: (props: FeatureDescriptionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export declare const MarkerIconLabel: import('react').ForwardRefExoticComponent<FeatureDescriptionProps & import('react').RefAttributes<L.Marker<any>>>;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,uBAAuB,qDAyF7D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,eAAe,mHA2C3B,CAAC"}
@@ -1,68 +1,48 @@
1
- import { jsx as l } from "@emotion/react/jsx-runtime";
2
- import { Marker as x } from "react-leaflet";
3
- import { FeatureDivIconLabel as D } from "./subcomponents/FeatureDivIconLabel/index.js";
4
- import { useState as M, useRef as j, useCallback as c } from "react";
5
- const y = (i) => {
6
- const {
7
- position: n,
8
- draggable: a = !0,
9
- iconSrc: u,
10
- iconRotate: f,
11
- iconScale: m,
12
- label: d,
13
- fillColor: v,
14
- color: O,
15
- width: P,
16
- height: b,
17
- offsetLeftTop: k,
18
- eventHandlers: L,
19
- popupRender: h,
20
- properties: o,
21
- popupOptions: C,
22
- ...R
23
- } = i, [I, r] = M(!1), g = j(null), H = D({
24
- iconSrc: u,
25
- iconRotate: f,
26
- iconScale: m,
27
- label: d,
28
- width: P,
29
- height: b,
30
- fillColor: v,
31
- color: O,
32
- offsetLeftTop: k
33
- }), t = h, { onOpenPopup: e, onClosePopup: p } = o || { onOpenPopup: void 0, onClosePopup: void 0 }, S = c((s) => {
34
- e && o && e(o), r(!0);
35
- }, [e, o]), _ = c((s) => {
36
- p && o && p(o), r(!1);
37
- }, [p, o]);
38
- return /* @__PURE__ */ l(
39
- x,
40
- {
41
- ref: g,
42
- position: n,
43
- draggable: a,
44
- riseOnHover: !0,
45
- icon: H,
46
- eventHandlers: {
47
- ...L,
48
- click: (s) => {
49
- },
50
- popupopen: S,
51
- popupclose: _
52
- },
53
- ...R,
54
- children: t && o && /* @__PURE__ */ l(
55
- t,
56
- {
57
- isOpen: I,
58
- properties: o,
59
- position: n,
60
- popupOptions: C
61
- }
62
- )
63
- }
64
- );
65
- };
1
+ import { jsx as L } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { Marker as k } from "react-leaflet";
4
+ import { FeatureDivIconLabel as I } from "./subcomponents/FeatureDivIconLabel/index.js";
5
+ const D = d(
6
+ function(o, r) {
7
+ const {
8
+ position: e,
9
+ draggable: t = !0,
10
+ iconSrc: i,
11
+ iconRotate: n,
12
+ iconScale: c,
13
+ label: a,
14
+ fillColor: l,
15
+ color: f,
16
+ width: m,
17
+ height: s,
18
+ offsetLeftTop: p,
19
+ children: b,
20
+ ...h
21
+ } = o, u = I({
22
+ iconSrc: i,
23
+ iconRotate: n,
24
+ iconScale: c,
25
+ label: a,
26
+ width: m,
27
+ height: s,
28
+ fillColor: l,
29
+ color: f,
30
+ offsetLeftTop: p
31
+ });
32
+ return /* @__PURE__ */ L(
33
+ k,
34
+ {
35
+ ref: r,
36
+ position: e,
37
+ draggable: t,
38
+ riseOnHover: !0,
39
+ icon: u,
40
+ ...h,
41
+ children: b
42
+ }
43
+ );
44
+ }
45
+ );
66
46
  export {
67
- y as MarkerIconLabel
47
+ D as MarkerIconLabel
68
48
  };
@@ -1,16 +1,8 @@
1
+ import { ReactNode } from 'react';
1
2
  import { MarkerProps } from 'react-leaflet';
2
3
  import { DivIconFeatureDescriptionProps } from './subcomponents/FeatureDivIconLabel/types';
3
- import { MapPopupComponent } from '../../popups/types';
4
- import { GeoJsonProperties } from '../../contexts/MapContext/types';
5
- import { PopupOptions } from 'leaflet';
6
- export interface MyPopupProps extends PopupOptions {
7
- onOpen?: (properties: GeoJsonProperties) => void;
8
- }
9
- export type FeaturePopupOptions = Omit<MyPopupProps, 'content'>;
10
4
  export interface FeatureDescriptionProps extends DivIconFeatureDescriptionProps, Omit<MarkerProps, 'children'> {
11
5
  withPoint?: boolean;
12
- properties?: GeoJsonProperties;
13
- popupRender?: MapPopupComponent;
14
- popupOptions?: FeaturePopupOptions;
6
+ children?: ReactNode;
15
7
  }
16
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAChE,MAAM,WAAW,uBACf,SAAQ,8BAA8B,EACpC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,CAAE;IACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;CAEpC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,MAAM,WAAW,uBACf,SAAQ,8BAA8B,EACpC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
@@ -0,0 +1,17 @@
1
+ import { FeatureId, GeoJsonProperties } from '../../contexts/MapContext/types';
2
+ import { MapPopupRenderConfig } from '../../popups/types';
3
+ import { FeatureDescriptionProps } from '../MarkerIconLabel/types';
4
+ export type MarkerIconLabelWithPopupProps = FeatureDescriptionProps & MapPopupRenderConfig & {
5
+ layerId: string;
6
+ featureId: FeatureId;
7
+ properties?: GeoJsonProperties;
8
+ };
9
+ /**
10
+ * Wraps the generic `MarkerIconLabel` visual primitive with popup lifecycle
11
+ * behavior and store-driven popup opening.
12
+ *
13
+ * Popup persistence remains a popup-level concern through `popupOptions`
14
+ * such as `autoClose` and `closeOnClick`, not part of the selection action.
15
+ */
16
+ export declare function MarkerIconLabelWithPopup(props: MarkerIconLabelWithPopupProps): import("@emotion/react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=MarkerIconLabelWithPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkerIconLabelWithPopup.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAIxE,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,GAAG,oBAAoB,GAAG;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,oDA+E5E"}