@m4l/gclick 0.0.2

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 (476) hide show
  1. package/.storybook/constants.d.ts +30 -0
  2. package/.storybook/decorators/StorybookWithMapProvider/constants.d.ts +2 -0
  3. package/.storybook/decorators/StorybookWithMapProvider/index.d.ts +1 -0
  4. package/.storybook/decorators/WithContexts/constants.d.ts +10 -0
  5. package/.storybook/decorators/WithContexts/index.d.ts +1 -0
  6. package/.storybook/decorators/WithContexts/types.d.ts +7 -0
  7. package/.storybook/decorators/WithWindowsContainer/index.d.ts +2 -0
  8. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/index.d.ts +1 -0
  9. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/types.d.ts +4 -0
  10. package/.storybook/main.d.ts +3 -0
  11. package/.storybook/mocks/config-msw.d.ts +21 -0
  12. package/.storybook/mocks/index.d.ts +2 -0
  13. package/.storybook/mocks/network-mocks.d.ts +1 -0
  14. package/.storybook/storybook.vite.d.ts +2 -0
  15. package/@types/augmentations.d.ts +38 -0
  16. package/@types/constants.d.ts +26 -0
  17. package/@types/constants.js +21 -0
  18. package/@types/deviceData.d.ts +90 -0
  19. package/@types/general.d.ts +21 -0
  20. package/@types/index.d.ts +2 -0
  21. package/@types/index.js +1 -0
  22. package/@types/types.d.js +1 -0
  23. package/@types/types.d.ts +43 -0
  24. package/@types/vpts.d.ts +49 -0
  25. package/components/DataGrid/assets/icons/datagrid.svg +4 -0
  26. package/components/DeviceLabel/DeviceLabel.d.ts +6 -0
  27. package/components/DeviceLabel/DeviceLabel.js +32 -0
  28. package/components/DeviceLabel/DeviceLabel.styles.d.ts +2 -0
  29. package/components/DeviceLabel/DeviceLabel.styles.js +33 -0
  30. package/components/DeviceLabel/constants.d.ts +2 -0
  31. package/components/DeviceLabel/constants.js +4 -0
  32. package/components/DeviceLabel/index.d.ts +1 -0
  33. package/components/DeviceLabel/index.js +1 -0
  34. package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +3 -0
  35. package/components/DeviceLabel/slots/DeviceLabelSlots.js +22 -0
  36. package/components/DeviceLabel/slots/slots.d.ts +5 -0
  37. package/components/DeviceLabel/slots/slots.js +9 -0
  38. package/components/DeviceLabel/types.d.ts +26 -0
  39. package/components/DeviceStatus/DeviceStatus.d.ts +6 -0
  40. package/components/DeviceStatus/DeviceStatus.js +15 -0
  41. package/components/DeviceStatus/DeviceStatus.styles.d.ts +2 -0
  42. package/components/DeviceStatus/DeviceStatus.styles.js +13 -0
  43. package/components/DeviceStatus/constants.d.ts +2 -0
  44. package/components/DeviceStatus/constants.js +4 -0
  45. package/components/DeviceStatus/dictionary.d.ts +13 -0
  46. package/components/DeviceStatus/dictionary.js +18 -0
  47. package/components/DeviceStatus/hooks/constants.d.ts +11 -0
  48. package/components/DeviceStatus/hooks/constants.js +79 -0
  49. package/components/DeviceStatus/hooks/helper.d.ts +7 -0
  50. package/components/DeviceStatus/hooks/helper.js +22 -0
  51. package/components/DeviceStatus/hooks/useDeviceStatus.d.ts +12 -0
  52. package/components/DeviceStatus/hooks/useDeviceStatus.js +25 -0
  53. package/components/DeviceStatus/icons.d.ts +11 -0
  54. package/components/DeviceStatus/icons.js +13 -0
  55. package/components/DeviceStatus/index.d.ts +4 -0
  56. package/components/DeviceStatus/index.js +1 -0
  57. package/components/DeviceStatus/slots/DeviceStatusSlots.d.ts +1 -0
  58. package/components/DeviceStatus/slots/DeviceStatusSlots.js +11 -0
  59. package/components/DeviceStatus/slots/slots.d.ts +3 -0
  60. package/components/DeviceStatus/slots/slots.js +7 -0
  61. package/components/DeviceStatus/types.d.ts +16 -0
  62. package/components/gauges/Gauge/Gauge.d.ts +22 -0
  63. package/components/gauges/Gauge/Gauge.js +25 -0
  64. package/components/gauges/Gauge/Gauge.styles.d.ts +2 -0
  65. package/components/gauges/Gauge/Gauge.styles.js +9 -0
  66. package/components/gauges/Gauge/constants.d.ts +2 -0
  67. package/components/gauges/Gauge/constants.js +8 -0
  68. package/components/gauges/Gauge/index.d.ts +1 -0
  69. package/components/gauges/Gauge/index.js +1 -0
  70. package/components/gauges/Gauge/slots/GaugeEnum.d.ts +3 -0
  71. package/components/gauges/Gauge/slots/GaugeEnum.js +7 -0
  72. package/components/gauges/Gauge/slots/GaugeSlots.d.ts +3 -0
  73. package/components/gauges/Gauge/slots/GaugeSlots.js +12 -0
  74. package/components/gauges/Gauge/types.d.ts +16 -0
  75. package/components/gauges/index.d.ts +1 -0
  76. package/components/gauges/index.js +1 -0
  77. package/components/index.d.ts +4 -0
  78. package/components/index.js +1 -0
  79. package/components/indicators/IndicatorCSQ/IndicatorCSQ.d.ts +7 -0
  80. package/components/indicators/IndicatorCSQ/IndicatorCSQ.styles.d.ts +2 -0
  81. package/components/indicators/IndicatorCSQ/constants.d.ts +8 -0
  82. package/components/indicators/IndicatorCSQ/dictionary.d.ts +9 -0
  83. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +40 -0
  84. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/index.d.ts +0 -0
  85. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/types.d.ts +11 -0
  86. package/components/indicators/IndicatorCSQ/icons.d.ts +1 -0
  87. package/components/indicators/IndicatorCSQ/index.d.ts +3 -0
  88. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQEnum.d.ts +7 -0
  89. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.d.ts +15 -0
  90. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/SignalIcon.d.ts +7 -0
  91. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/index.d.ts +1 -0
  92. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/types.d.ts +5 -0
  93. package/components/indicators/IndicatorCSQ/tests/IndicatorCSQ.test.d.ts +1 -0
  94. package/components/indicators/IndicatorCSQ/types.d.ts +21 -0
  95. package/components/maps/components/GpsMap/GpsMap.d.ts +8 -0
  96. package/components/maps/components/GpsMap/GpsMap.js +34 -0
  97. package/components/maps/components/GpsMap/GpsMap.styles.d.ts +2 -0
  98. package/components/maps/components/GpsMap/GpsMap.styles.js +228 -0
  99. package/components/maps/components/GpsMap/classes/index.d.ts +8 -0
  100. package/components/maps/components/GpsMap/classes/index.js +110 -0
  101. package/components/maps/components/GpsMap/classes/types.d.ts +69 -0
  102. package/components/maps/components/GpsMap/constants.d.ts +36 -0
  103. package/components/maps/components/GpsMap/constants.js +49 -0
  104. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts +13 -0
  105. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +59 -0
  106. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +8 -0
  107. package/components/maps/components/GpsMap/contexts/MapContext/helper.js +1 -0
  108. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +2 -0
  109. package/components/maps/components/GpsMap/contexts/MapContext/index.js +1 -0
  110. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +6 -0
  111. package/components/maps/components/GpsMap/contexts/MapContext/store.js +375 -0
  112. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +569 -0
  113. package/components/maps/components/GpsMap/dictionary.d.ts +32 -0
  114. package/components/maps/components/GpsMap/dictionary.js +32 -0
  115. package/components/maps/components/GpsMap/external/Control/index.d.ts +9 -0
  116. package/components/maps/components/GpsMap/external/Control/index.js +42 -0
  117. package/components/maps/components/GpsMap/external/Control/types.d.ts +7 -0
  118. package/components/maps/components/GpsMap/external/Popup/component.d.ts +4 -0
  119. package/components/maps/components/GpsMap/external/Popup/div-overlay.d.ts +4 -0
  120. package/components/maps/components/GpsMap/external/Popup/element.d.ts +4 -0
  121. package/components/maps/components/GpsMap/external/Popup/generic.d.ts +4 -0
  122. package/components/maps/components/GpsMap/external/Popup/index.d.ts +4 -0
  123. package/components/maps/components/GpsMap/external/googleMutant/LRUMap.d.ts +99 -0
  124. package/components/maps/components/GpsMap/external/googleMutant/LRUMap.js +1 -0
  125. package/components/maps/components/GpsMap/external/googleMutant/googleMutant.d.ts +1 -0
  126. package/components/maps/components/GpsMap/external/googleMutant/googleMutant.js +1 -0
  127. package/components/maps/components/GpsMap/external/googleMutant/googleMutantNoDelete.d.ts +1 -0
  128. package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +132 -0
  129. package/components/maps/components/GpsMap/external/googleMutant/index.js +1 -0
  130. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.d.ts +1 -0
  131. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +4 -0
  132. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +8 -0
  133. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +263 -0
  134. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +1 -0
  135. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +4 -0
  136. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +8 -0
  137. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +112 -0
  138. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.d.ts +6 -0
  139. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +33 -0
  140. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/types.d.ts +7 -0
  141. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarker.d.ts +9 -0
  142. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +4 -0
  143. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +4 -0
  144. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.d.ts +5 -0
  145. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.js +80 -0
  146. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -0
  147. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +83 -0
  148. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +15 -0
  149. package/components/maps/components/GpsMap/featureRenders/index.d.ts +3 -0
  150. package/components/maps/components/GpsMap/featureRenders/index.js +1 -0
  151. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.d.ts +7 -0
  152. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +78 -0
  153. package/components/maps/components/GpsMap/hooks/useAutoFocus/types.d.ts +15 -0
  154. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +6 -0
  155. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +6 -0
  156. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.js +21 -0
  157. package/components/maps/components/GpsMap/hooks/useMapStore/index.d.ts +6 -0
  158. package/components/maps/components/GpsMap/hooks/useMapStore/index.js +13 -0
  159. package/components/maps/components/GpsMap/icons.d.ts +45 -0
  160. package/components/maps/components/GpsMap/icons.js +39 -0
  161. package/components/maps/components/GpsMap/index.d.ts +9 -0
  162. package/components/maps/components/GpsMap/index.js +1 -0
  163. package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.d.ts +11 -0
  164. package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.js +74 -0
  165. package/components/maps/components/GpsMap/pluginLayers/index.d.ts +1 -0
  166. package/components/maps/components/GpsMap/pluginLayers/index.js +1 -0
  167. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +7 -0
  168. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +30 -0
  169. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +2 -0
  170. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +146 -0
  171. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +5 -0
  172. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +8 -0
  173. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +16 -0
  174. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +20 -0
  175. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +2 -0
  176. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.js +1 -0
  177. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +33 -0
  178. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +63 -0
  179. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +13 -0
  180. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +17 -0
  181. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +6 -0
  182. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +122 -0
  183. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +5 -0
  184. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +22 -0
  185. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +5 -0
  186. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +6 -0
  187. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +10 -0
  188. package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
  189. package/components/maps/components/GpsMap/popups/index.js +1 -0
  190. package/components/maps/components/GpsMap/popups/types.d.ts +10 -0
  191. package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +4 -0
  192. package/components/maps/components/GpsMap/slots/GpsMapSlots.js +24 -0
  193. package/components/maps/components/GpsMap/slots/slots.d.ts +6 -0
  194. package/components/maps/components/GpsMap/slots/slots.js +10 -0
  195. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +17 -0
  196. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +32 -0
  197. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +4 -0
  198. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +13 -0
  199. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +10 -0
  200. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +58 -0
  201. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
  202. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +17 -0
  203. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +18 -0
  204. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +139 -0
  205. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +12 -0
  206. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +52 -0
  207. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +8 -0
  208. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +43 -0
  209. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +4 -0
  210. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +30 -0
  211. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +26 -0
  212. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +4 -0
  213. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +133 -0
  214. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
  215. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +39 -0
  216. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
  217. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +73 -0
  218. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
  219. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +25 -0
  220. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +4 -0
  221. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js +19 -0
  222. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
  223. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +5 -0
  224. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +11 -0
  225. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +103 -0
  226. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
  227. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +34 -0
  228. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
  229. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +45 -0
  230. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
  231. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +245 -0
  232. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
  233. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +13 -0
  234. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.js +17 -0
  235. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +4 -0
  236. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +40 -0
  237. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/model.d.ts +17 -0
  238. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
  239. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +32 -0
  240. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
  241. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
  242. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +6 -0
  243. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
  244. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +31 -0
  245. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
  246. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +4 -0
  247. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.js +52 -0
  248. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +7 -0
  249. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +22 -0
  250. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +5 -0
  251. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +33 -0
  252. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +14 -0
  253. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +132 -0
  254. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +9 -0
  255. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.js +24 -0
  256. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
  257. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +11 -0
  258. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.js +13 -0
  259. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
  260. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
  261. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +6 -0
  262. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +27 -0
  263. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +4 -0
  264. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +100 -0
  265. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
  266. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +35 -0
  267. package/components/maps/components/GpsMap/types.d.ts +56 -0
  268. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +4 -0
  269. package/components/maps/components/GpsMapTools/GpsMapTools.js +10 -0
  270. package/components/maps/components/GpsMapTools/classes/index.d.ts +7 -0
  271. package/components/maps/components/GpsMapTools/classes/index.js +21 -0
  272. package/components/maps/components/GpsMapTools/classes/types.d.ts +14 -0
  273. package/components/maps/components/GpsMapTools/constants.d.ts +8 -0
  274. package/components/maps/components/GpsMapTools/constants.js +71 -0
  275. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +21 -0
  276. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +48 -0
  277. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +19 -0
  278. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +155 -0
  279. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +160 -0
  280. package/components/maps/components/GpsMapTools/dictionary.d.ts +62 -0
  281. package/components/maps/components/GpsMapTools/dictionary.js +66 -0
  282. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.d.ts +5 -0
  283. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +13 -0
  284. package/components/maps/components/GpsMapTools/hooks/useLayers/index.d.ts +4 -0
  285. package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +57 -0
  286. package/components/maps/components/GpsMapTools/icons.d.ts +23 -0
  287. package/components/maps/components/GpsMapTools/icons.js +22 -0
  288. package/components/maps/components/GpsMapTools/index.d.ts +4 -0
  289. package/components/maps/components/GpsMapTools/index.js +1 -0
  290. package/components/maps/components/GpsMapTools/styles.d.ts +1 -0
  291. package/components/maps/components/GpsMapTools/styles.js +18 -0
  292. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
  293. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +84 -0
  294. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
  295. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +40 -0
  296. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +34 -0
  297. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.js +77 -0
  298. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +14 -0
  299. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +216 -0
  300. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +11 -0
  301. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +63 -0
  302. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
  303. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +36 -0
  304. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +25 -0
  305. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.js +19 -0
  306. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +5 -0
  307. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +71 -0
  308. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -0
  309. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +8 -0
  310. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +4 -0
  311. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +51 -0
  312. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
  313. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +8 -0
  314. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +11 -0
  315. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +4 -0
  316. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +128 -0
  317. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
  318. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +9 -0
  319. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +12 -0
  320. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +5 -0
  321. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +55 -0
  322. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
  323. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +4 -0
  324. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +76 -0
  325. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +7 -0
  326. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +4 -0
  327. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +12 -0
  328. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +4 -0
  329. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +46 -0
  330. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +4 -0
  331. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +86 -0
  332. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
  333. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
  334. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
  335. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +86 -0
  336. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +7 -0
  337. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +85 -0
  338. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +12 -0
  339. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +114 -0
  340. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +22 -0
  341. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +164 -0
  342. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +12 -0
  343. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +113 -0
  344. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
  345. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +73 -0
  346. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +1 -0
  347. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +8 -0
  348. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +9 -0
  349. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +49 -0
  350. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
  351. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +13 -0
  352. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +114 -0
  353. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +7 -0
  354. package/components/maps/components/GpsMapTools/types.d.ts +34 -0
  355. package/components/maps/index.d.ts +4 -0
  356. package/components/maps/index.js +1 -0
  357. package/components/maps/utils/courseToCartesianAngle.d.ts +6 -0
  358. package/components/maps/utils/courseToCartesianAngle.js +8 -0
  359. package/components/maps/utils/courseToCssAngle.d.ts +9 -0
  360. package/components/maps/utils/courseToCssAngle.js +13 -0
  361. package/components/maps/utils/index.d.ts +6 -0
  362. package/components/maps/utils/index.js +1 -0
  363. package/components/maps/utils/isFeature.d.ts +2 -0
  364. package/components/maps/utils/isFeature.js +6 -0
  365. package/components/maps/utils/isFeatureCollection.d.ts +2 -0
  366. package/components/maps/utils/isFeatureCollection.js +6 -0
  367. package/components/maps/utils/isFeatureCollectionDraft.d.ts +6 -0
  368. package/components/maps/utils/isFeatureCollectionDraft.js +6 -0
  369. package/components/maps/utils/isGeometry.d.ts +2 -0
  370. package/components/maps/utils/isGeometry.js +6 -0
  371. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +11 -0
  372. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +39 -0
  373. package/contexts/RealTimeConsumerContext/constants.d.ts +3 -0
  374. package/contexts/RealTimeConsumerContext/constants.js +8 -0
  375. package/contexts/RealTimeConsumerContext/index.d.ts +3 -0
  376. package/contexts/RealTimeConsumerContext/index.js +1 -0
  377. package/contexts/RealTimeConsumerContext/store.d.ts +6 -0
  378. package/contexts/RealTimeConsumerContext/store.js +115 -0
  379. package/contexts/RealTimeConsumerContext/types.d.ts +64 -0
  380. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +11 -0
  381. package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +20 -0
  382. package/contexts/RealTimeProducerContext/constants.d.ts +6 -0
  383. package/contexts/RealTimeProducerContext/constants.js +12 -0
  384. package/contexts/RealTimeProducerContext/index.d.ts +4 -0
  385. package/contexts/RealTimeProducerContext/index.js +1 -0
  386. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +33 -0
  387. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +140 -0
  388. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +28 -0
  389. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +15 -0
  390. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.js +14 -0
  391. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +23 -0
  392. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +136 -0
  393. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +23 -0
  394. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +66 -0
  395. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +36 -0
  396. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +45 -0
  397. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +10 -0
  398. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +15 -0
  399. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +12 -0
  400. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +20 -0
  401. package/contexts/RealTimeProducerContext/store.d.ts +6 -0
  402. package/contexts/RealTimeProducerContext/store.js +136 -0
  403. package/contexts/RealTimeProducerContext/types.d.ts +196 -0
  404. package/contexts/index.d.ts +2 -0
  405. package/contexts/index.js +1 -0
  406. package/formatters/CourseFormatter/CourseFormatter.d.ts +14 -0
  407. package/formatters/CourseFormatter/CourseFormatter.js +33 -0
  408. package/formatters/CourseFormatter/CourseFormatter.styles.d.ts +2 -0
  409. package/formatters/CourseFormatter/CourseFormatter.styles.js +23 -0
  410. package/formatters/CourseFormatter/constants.d.ts +3 -0
  411. package/formatters/CourseFormatter/constants.js +6 -0
  412. package/formatters/CourseFormatter/dictionary.d.ts +12 -0
  413. package/formatters/CourseFormatter/dictionary.js +18 -0
  414. package/formatters/CourseFormatter/helper.d.ts +4 -0
  415. package/formatters/CourseFormatter/helper.js +28 -0
  416. package/formatters/CourseFormatter/index.d.ts +2 -0
  417. package/formatters/CourseFormatter/index.js +1 -0
  418. package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts +3 -0
  419. package/formatters/CourseFormatter/slots/CourseFormatterEnum.js +7 -0
  420. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +3 -0
  421. package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +12 -0
  422. package/formatters/CourseFormatter/test/CourserFormatter.test.d.ts +1 -0
  423. package/formatters/CourseFormatter/types.d.ts +24 -0
  424. package/formatters/index.d.ts +1 -0
  425. package/hooks/index.d.ts +2 -0
  426. package/hooks/index.js +1 -0
  427. package/hooks/useRealTimeConsumer/index.d.ts +6 -0
  428. package/hooks/useRealTimeConsumer/index.js +13 -0
  429. package/hooks/useRealTimeProducer/index.d.ts +6 -0
  430. package/hooks/useRealTimeProducer/index.js +13 -0
  431. package/index.d.ts +9 -0
  432. package/index.js +90 -0
  433. package/mockServiceWorker.js +307 -0
  434. package/not_recognized/index.js +406 -0
  435. package/package.json +93 -0
  436. package/test/HostThemeProviderMock.d.ts +10 -0
  437. package/test/TestAppWrapper.d.ts +29 -0
  438. package/test/TestFormAutoValidation.d.ts +4 -0
  439. package/test/constants.d.ts +69 -0
  440. package/test/constants_no_mock.d.ts +1 -0
  441. package/test/getNameDataTestId.d.ts +15 -0
  442. package/test/getNameDataTestId.js +16 -0
  443. package/test/index.d.ts +4 -0
  444. package/test/mocks.d.ts +27 -0
  445. package/test/setup.d.ts +0 -0
  446. package/test/types.d.ts +4 -0
  447. package/test/utils.d.ts +29 -0
  448. package/utils/ObjectQueue.d.ts +18 -0
  449. package/utils/ObjectQueue.js +33 -0
  450. package/utils/capitalizeFirstLetter.d.ts +4 -0
  451. package/utils/capitalizeFirstLetter.js +10 -0
  452. package/utils/containerQuery.d.ts +5 -0
  453. package/utils/formatDistanceToNow/formatDistanteToNow.d.ts +5 -0
  454. package/utils/formatDistanceToNow/index.d.ts +2 -0
  455. package/utils/formatDistanceToNow/types.d.ts +21 -0
  456. package/utils/getComponentSlotRoot.d.ts +9 -0
  457. package/utils/getComponentSlotRoot.js +13 -0
  458. package/utils/getComponentUtilityClass.d.ts +1 -0
  459. package/utils/getComponentUtilityClass.js +7 -0
  460. package/utils/getPaletteColor.d.ts +5 -0
  461. package/utils/getPaletteColor.js +18 -0
  462. package/utils/getSizeStyles/_test_/getSizeStyles.test.d.ts +1 -0
  463. package/utils/getSizeStyles/getSizeStyles.d.ts +28 -0
  464. package/utils/getSizeStyles/getSizeStyles.js +13 -0
  465. package/utils/getSizeStyles/index.d.ts +1 -0
  466. package/utils/getSizeStyles/index.js +1 -0
  467. package/utils/getThemeVariantColor.d.ts +6 -0
  468. package/utils/getTransformXY.d.ts +7 -0
  469. package/utils/getTypographyStyles.d.ts +11 -0
  470. package/utils/getTypographyStyles.js +8 -0
  471. package/utils/index.d.ts +8 -0
  472. package/utils/index.js +1 -0
  473. package/utils/isValidDate.d.ts +1 -0
  474. package/utils/isValidDate.js +6 -0
  475. package/utils/types.d.ts +23 -0
  476. package/vite-env.d.ts +4 -0
@@ -0,0 +1,569 @@
1
+ import { GetLabelType } from '@m4l/core';
2
+ import { ReactNode } from 'react';
3
+ import { MapClasses } from '../../classes/types';
4
+ import { default as L, Layer, LeafletEvent, PopupOptions } from 'leaflet';
5
+ import { MapPopupComponent } from '../../popups/types';
6
+ export type FeatureId = string | number;
7
+ /**
8
+ * The valid values for the "type" property of GeoJSON* geometry objects.
9
+ * https://tools.ietf.org/html/rfc7946#section-1.4
10
+ */
11
+ export type GeoJsonGeometryTypes = Geometry['type'];
12
+ /**
13
+ * The value values for the "type" property of GeoJSON* Objects.
14
+ * https://tools.ietf.org/html/rfc7946#section-1.4
15
+ */
16
+ export type GeoJsonTypes = GeoJSON['type'];
17
+ /**
18
+ * Bounding box
19
+ * https://tools.ietf.org/html/rfc7946#section-5
20
+ */
21
+ export type BBox = [number, number, number, number] | [number, number, number, number, number, number];
22
+ /**
23
+ * A Position is an array of coordinates.
24
+ * https://tools.ietf.org/html/rfc7946#section-3.1.1
25
+ * Array should contain between two and three elements.
26
+ * The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
27
+ * but the current specification only allows X, Y, and (optionally) Z to be defined.
28
+ */
29
+ export type Position = number[];
30
+ /**
31
+ * The base GeoJSON object.
32
+ * https://tools.ietf.org/html/rfc7946#section-3
33
+ * The GeoJSON specification also allows foreign members
34
+ * (https://tools.ietf.org/html/rfc7946#section-6.1)
35
+ * Developers should use "&" type in TypeScript or extend the interface
36
+ * to add these foreign members.
37
+ */
38
+ export interface GeoJsonObject {
39
+ /**
40
+ * Specifies the type of GeoJSON object.
41
+ */
42
+ type: GeoJsonTypes;
43
+ /**
44
+ * Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
45
+ * The value of the bbox member is an array of length 2*n where n is the number of dimensions
46
+ * represented in the contained geometries, with all axes of the most southwesterly point
47
+ * followed by all axes of the more northeasterly point.
48
+ * The axes order of a bbox follows the axes order of geometries.
49
+ * https://tools.ietf.org/html/rfc7946#section-5
50
+ */
51
+ bbox?: BBox | undefined;
52
+ }
53
+ /**
54
+ * Union of GeoJSON objects.
55
+ */
56
+ export type GeoJSON = Geometry | Feature | FeatureCollection;
57
+ /**
58
+ * Geometry object.
59
+ * https://tools.ietf.org/html/rfc7946#section-3
60
+ */
61
+ export type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
62
+ export type GeometryObject = Geometry;
63
+ /**
64
+ * Point geometry object.
65
+ * https://tools.ietf.org/html/rfc7946#section-3.1.2
66
+ */
67
+ export interface Point extends GeoJsonObject {
68
+ type: 'Point';
69
+ coordinates: Position;
70
+ }
71
+ /**
72
+ * MultiPoint geometry object.
73
+ * https://tools.ietf.org/html/rfc7946#section-3.1.3
74
+ */
75
+ export interface MultiPoint extends GeoJsonObject {
76
+ type: 'MultiPoint';
77
+ coordinates: Position[];
78
+ }
79
+ /**
80
+ * LineString geometry object.
81
+ * https://tools.ietf.org/html/rfc7946#section-3.1.4
82
+ */
83
+ export interface LineString extends GeoJsonObject {
84
+ type: 'LineString';
85
+ coordinates: Position[];
86
+ }
87
+ /**
88
+ * MultiLineString geometry object.
89
+ * https://tools.ietf.org/html/rfc7946#section-3.1.5
90
+ */
91
+ export interface MultiLineString extends GeoJsonObject {
92
+ type: 'MultiLineString';
93
+ coordinates: Position[][];
94
+ }
95
+ /**
96
+ * Polygon geometry object.
97
+ * https://tools.ietf.org/html/rfc7946#section-3.1.6
98
+ */
99
+ export interface Polygon extends GeoJsonObject {
100
+ type: 'Polygon';
101
+ coordinates: Position[][];
102
+ }
103
+ /**
104
+ * MultiPolygon geometry object.
105
+ * https://tools.ietf.org/html/rfc7946#section-3.1.7
106
+ */
107
+ export interface MultiPolygon extends GeoJsonObject {
108
+ type: 'MultiPolygon';
109
+ coordinates: Position[][][];
110
+ }
111
+ /**
112
+ * Geometry Collection
113
+ * https://tools.ietf.org/html/rfc7946#section-3.1.8
114
+ */
115
+ export interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
116
+ type: 'GeometryCollection';
117
+ geometries: G[];
118
+ }
119
+ export type SubTypeType = 'Marker' | 'CustomMarker' | 'Circle' | 'Rectangle' | 'Polyline' | 'PolylineWithArrows';
120
+ export type GeoJsonBaseProperties = {
121
+ /**
122
+ * "className" Clase del icono de la marca
123
+ */
124
+ className?: string;
125
+ /**
126
+ * propiedad generica
127
+ */
128
+ [name: string]: any;
129
+ };
130
+ export interface FeatureIconLabel {
131
+ label?: string;
132
+ labelColor?: string;
133
+ labelBkColor?: string;
134
+ iconWidth?: number;
135
+ iconHeight?: number;
136
+ offsetLeftTop?: [number, number];
137
+ [name: string]: any;
138
+ }
139
+ export type GeoJsonMarkerProperties = GeoJsonBaseProperties & {
140
+ subType: 'Marker';
141
+ [name: string]: any;
142
+ };
143
+ export type GeoJsonPolylineWithArrowsProperties = GeoJsonBaseProperties & {
144
+ subType: 'PolylineWithArrows';
145
+ };
146
+ export type GeoJsonCircleProperties = GeoJsonBaseProperties & {
147
+ subType: 'Circle';
148
+ radius: number;
149
+ };
150
+ export type GeoJsonProperties = GeoJsonMarkerProperties | GeoJsonCircleProperties | GeoJsonPolylineWithArrowsProperties;
151
+ export type LayerWithBounds = Layer;
152
+ export type FeatureLayerData = {
153
+ boundsNW: L.LatLng;
154
+ boundsSE: L.LatLng;
155
+ getTarget: () => Layer;
156
+ };
157
+ /**
158
+ * A feature object which contains a geometry and associated properties.
159
+ * https://tools.ietf.org/html/rfc7946#section-3.2
160
+ */
161
+ export interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
162
+ type: 'Feature';
163
+ /**
164
+ * The feature's geometry
165
+ */
166
+ geometry: G;
167
+ /**
168
+ * A value that uniquely identifies this feature in a
169
+ * https://tools.ietf.org/html/rfc7946#section-3.2.
170
+ */
171
+ id: FeatureId;
172
+ /**
173
+ * Properties associated with this feature.
174
+ */
175
+ properties: P;
176
+ /**
177
+ * "getLeafletLayer" es una función que retorna la capa de leaflet que creo renderFeature
178
+ * set usa esta metodología, porque guarda toda la capa en zustand, es muy pesado, al guardar
179
+ * solo funciones, se ahorra memoria.
180
+ */
181
+ layerData?: FeatureLayerData;
182
+ /**
183
+ * "featureLabel" Etiqueta de la geometria, undenfined si no se quiere mostrar
184
+ */
185
+ featureLabel?: FeatureIconLabel;
186
+ juan?: string;
187
+ }
188
+ /**
189
+ * A collection of feature objects.
190
+ * https://tools.ietf.org/html/rfc7946#section-3.3
191
+ */
192
+ export interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
193
+ type: 'FeatureCollection';
194
+ features: Array<Feature<G, P>>;
195
+ }
196
+ export type RealTimeConfig = {
197
+ /**
198
+ * "active" si está activa la funcionalidad de tiempo real
199
+ */
200
+ active: boolean;
201
+ /**
202
+ * "userCanDeactivateTail" El usario puede temporalmente desactivar la cola de un punto de tipo tiemo real.
203
+ */
204
+ userCanDeactivateTail: boolean;
205
+ /**
206
+ * "maxZoom" Maximo zoom donde se muestra la cola.
207
+ */
208
+ maxZoom: number;
209
+ /**
210
+ * qtyTailPointsMax Cantidad de puntos de la cola de tiempo real.
211
+ */
212
+ qtyTailPointsMax: number;
213
+ /**
214
+ * "windowTailTime" Ventana de tiempo para no generar una cola retrasa en el mapa. ejemplo 30 segundos.
215
+ * Eventos fuera de este tiempo con respecto al primer punto no se deberían visualizaar evitando colas fantasma por tanto no confiables.
216
+ */
217
+ windowTailTime: number;
218
+ };
219
+ export type PointType = 'point' | 'cluster';
220
+ /**
221
+ * Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
222
+ */
223
+ export interface RendePropFeatureArgs {
224
+ id: FeatureId;
225
+ /**
226
+ * "layerId" si está activa la funcionalidad de tiempo real
227
+ */
228
+ layerId: string;
229
+ }
230
+ /**
231
+ * Argumentos que recibe una Render Prop cuando se renderiza por renderFeature
232
+ */
233
+ export interface RendePropFeaturesCollectionArgs extends FeatureCollection {
234
+ /**
235
+ * "id" identificado unico del feature
236
+ * En la capa multipoints clusteable:
237
+ * el id se forma con el patron: device_device_id O cluster_CRCDevicesIds_count
238
+ * Si la capa es multilines
239
+ * el id normalmente es el indice del array de multilines
240
+ *
241
+ * TODO: Se debe hacer el esfuerzo de memonizar los ids
242
+ */
243
+ id: string;
244
+ /**
245
+ * "layerId" si está activa la funcionalidad de tiempo real
246
+ */
247
+ layerId: string;
248
+ }
249
+ export interface GeoJsonImplementedObject {
250
+ /**
251
+ * Specifies the type of GeoJSON object.
252
+ */
253
+ object: Feature | FeatureCollection;
254
+ /**
255
+ * TODO: Documentar
256
+ */
257
+ bbox?: BBox | undefined;
258
+ }
259
+ export type CheckedNameSet = 'visible' | 'autoFocus' | 'cluster';
260
+ export type LayerStore = {
261
+ /**
262
+ * "layerId" Indetificador unico entre todas las capas
263
+ */
264
+ layerId: string;
265
+ /**
266
+ * "name" Como se va a ver el listado de capas
267
+ */
268
+ name?: string;
269
+ /**
270
+ * "visible" si es visible o no
271
+ */
272
+ visible?: boolean;
273
+ /**
274
+ * "autoFocus" Cuando cambia el contedido de las capas, tener esta capa para incluir en el foco global
275
+ * del mapa. Por defecto es false
276
+ */
277
+ autoFocus: boolean;
278
+ /**
279
+ * "clusterAble" indica si la capa es clusterizable. (Solo aplica capa tipo multipoints)
280
+ */
281
+ clusterAble?: boolean;
282
+ /**
283
+ * "deleteAble" indica si la capa es borrable por el usuario
284
+ */
285
+ deleteAble?: boolean;
286
+ /**
287
+ * "cluster" Cuando la capa es ta enmodo cluster, indica que si las marcas se intersectan
288
+ * debe se grupadas en un icono en indicar cuantas maras hay en el cluster
289
+ */
290
+ cluster?: boolean;
291
+ /**
292
+ * "geoJsonObject" inidica cual es objeto as rederizas (Un sola capa Feature o FeatureCollection)
293
+ * y los bounds del objeto TODO: depront bounds debe ir directamene en el feature.
294
+ * TODO: Incluir el bounds en la capa de leaftLayer para dar mayor velocidad al mapa CREO.
295
+ */
296
+ geoJsonObject?: GeoJsonImplementedObject;
297
+ /**
298
+ * "renderFeature" render prop encarga de renderizar cada feature
299
+ */
300
+ renderFeature?: ComponentRenderPropFeature;
301
+ /**
302
+ * "popupComponent" componente que se renderiza en el popup, en la capa tipo Point o Multipoints
303
+ */
304
+ popupComponent?: MapPopupComponent;
305
+ /**
306
+ * "popupOptions" opciones del popup
307
+ */
308
+ popupOptions?: Omit<PopupOptions, 'content'>;
309
+ onClick?: (e: LeafletEvent) => void;
310
+ };
311
+ export type ComponentRenderPropFeature = React.FC<RendePropFeatureArgs>;
312
+ export type ComponentRenderPropFeaturesCollection = React.FC<RendePropFeaturesCollectionArgs>;
313
+ /**
314
+ * Interface usada para inicializar una capa tipo Multipoints desde el MapProvider
315
+ */
316
+ export type InitialLayer = LayerStore;
317
+ /**
318
+ * interfaz usada para actualizar un feature especifico de la capa
319
+ */
320
+ export interface ForSetSingleFeatureData extends Feature {
321
+ featureId?: string;
322
+ jsonUri?: string;
323
+ }
324
+ export type MapStatus = 'init' | 'ready';
325
+ export type OwnerState = {
326
+ status: MapStatus;
327
+ /**
328
+ * "isMobile" cuando el navegador está en modo celular
329
+ */
330
+ isMobile: boolean;
331
+ /**
332
+ * "isSkeleton" indica si el componente está en skeleton.
333
+ */
334
+ isSkeleton: boolean;
335
+ /**
336
+ * focus: Estado de selección asignado por el usuario.
337
+ *
338
+ */
339
+ focus: boolean;
340
+ };
341
+ /**
342
+ * Estados que se actulizan por fuera del store, a través de hooks
343
+ */
344
+ export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
345
+ export type AreaMapType = {
346
+ leftLowerLatitudeOffset: number;
347
+ leftLowerLengthOffset: number;
348
+ rigthUpperLatitudeOffset: number;
349
+ rigthUpperLengthOffset: number;
350
+ mapLengthDelta: number;
351
+ leftLowerLength: number;
352
+ mapLatBottomDegree: number;
353
+ };
354
+ export type SourceTypeTile = 'OSM' | 'Google' | 'Bing' | 'GoogleNoKey';
355
+ export type mapTypeTile = 'roadmap' | 'satellite' | 'terrain' | 'hybrid';
356
+ export type MapSourceId = 'osm_roadmap' | 'google_rodmap' | 'google_satellite' | 'google_hybrid' | 'bing_rodmap' | string;
357
+ export type RoadOptionsType = {
358
+ bicyclingLayer: boolean;
359
+ trafficLayer: boolean;
360
+ transitLayer: boolean;
361
+ };
362
+ export type TileLayerSource = {
363
+ /**
364
+ * "id" identificador unico de la fuente de capas
365
+ */
366
+ id: MapSourceId;
367
+ /**
368
+ * "dictionaryId" identificador del diccionario
369
+ */
370
+ dictionaryId: string;
371
+ /**
372
+ * "iconUrl" url del icono de la fuente de capas
373
+ */
374
+ iconUrl: string;
375
+ /**
376
+ * "sourceType" Tipo de fuente de capas
377
+ */
378
+ sourceType: SourceTypeTile;
379
+ /**
380
+ * "mapTypeTile" Tipo de mapa
381
+ */
382
+ mapTypeTile: mapTypeTile;
383
+ /**
384
+ * "urlTemplate" url de la fuente de capas, de donde se salen los tiles,
385
+ * los subdominios se deben indicar con {s}
386
+ */
387
+ urlTemplate: string;
388
+ /**
389
+ * "options" opciones de la fuente de capas, para definir limitaciones de zoom, subdominios, atribuciones, etc.
390
+ */
391
+ options: L.TileLayerOptions;
392
+ /**
393
+ * "hasTrafficLayer" si la fuente de capas tiene capa de tráfico
394
+ */
395
+ hasTrafficLayer?: boolean;
396
+ /**
397
+ * "hasTransitLayer" si la fuente de capas tiene capa de transporte público
398
+ */
399
+ hasTransitLayer?: boolean;
400
+ /**
401
+ * "hasBicyclingLayer" si la fuente de capas tiene capa de ciclovías
402
+ */
403
+ hasBicyclingLayer?: boolean;
404
+ /**
405
+ * "roadSelectedOptions" opcione de via (bicyclingLayer, trafficLayer, transitLayer) de cada una de las fuentes de capas
406
+ */
407
+ roadSelectedOptions: RoadOptionsType;
408
+ /**
409
+ * "getTileUrl" función que retorna la url de un tile, se usa cuando se necesita hacer un "tile server" que no
410
+ * usa el estand x,y,x por ejemplo bing que usa QuadKey
411
+ * @param coords
412
+ * @returns
413
+ */
414
+ getTileUrl?: (coords: L.Coords) => string;
415
+ };
416
+ /**
417
+ * Interface que define las propidades necesarias para utilizar las capas de google.
418
+ */
419
+ export interface GoogleMapState {
420
+ /**
421
+ * "googleMapsApiKey" Clave de la API de mapas.
422
+ */
423
+ googleMapsApiKey: string;
424
+ /**
425
+ * "googleMapVersion" Versión de la API de Google Maps cuando se usa fuentes de mapa tipo google. valor por defecto weekly
426
+ */
427
+ googleMapVersion?: string;
428
+ }
429
+ /**
430
+ * Interface que define el estado del componente (variables y funciones )
431
+ */
432
+ export interface MapState extends GoogleMapState {
433
+ /**
434
+ * "storeId" identificador unico del map store
435
+ */
436
+ storeId: string;
437
+ /**
438
+ * "ownerState" estado del componente, "status" puede ser "init" o "ready
439
+ */
440
+ ownerState: OwnerState;
441
+ /**
442
+ * "classes" enfocado al funcionamiento de las clases a nivel de map
443
+ */
444
+ classes: MapClasses;
445
+ /**
446
+ * "currentMapSourceId" ud fuente de mapas actual, por defecto "OSM"
447
+ */
448
+ currentMapSourceId: MapSourceId;
449
+ /**
450
+ * "Ids" de las fuentes de mapas cargados
451
+ */
452
+ mapSourcesIds: MapSourceId[];
453
+ /**
454
+ * "hashMapSources" Layers de trabajo
455
+ */
456
+ hashMapSources: Record<MapSourceId, TileLayerSource>;
457
+ /**
458
+ * "LayersIds" Layers de trabajo para saber en que orden se muestran en el LayersAdmin
459
+ */
460
+ layersIds: string[];
461
+ /**
462
+ * "hashLayers" Layers de trabajo
463
+ */
464
+ hashLayers: Record<string, LayerStore>;
465
+ /**
466
+ * "visibleCheckedLayers" set de capas checkead que coresponden a la capas visibles, usado en el componente de mapa Viewer, para el grid
467
+ */
468
+ visibleCheckedLayers: ReadonlySet<string>;
469
+ /**
470
+ * "checkedAutoFocusLayers" Si la capa participa del autofocus global
471
+ */
472
+ autoFocusCheckedLayers: ReadonlySet<string>;
473
+ /**
474
+ * "checkedClusterLayers" Si la capa es clusterizable
475
+ */
476
+ clusterCheckedLayers: ReadonlySet<string>;
477
+ /**
478
+ * "getLabel" funcion que usará para traducir las etiquetas de diccionario
479
+ */
480
+ getLabel: GetLabelType;
481
+ }
482
+ export interface MapStateWithActions extends MapState {
483
+ mapActions: {
484
+ /**
485
+ * @description
486
+ */
487
+ init(layersStore: LayerStore[]): void;
488
+ /**
489
+ * Cambia el estado del map
490
+ */
491
+ setMapState: (state: MapStatus) => void;
492
+ /**
493
+ * Modifica toda la capa, reemplanzando todo el geoJson
494
+ */
495
+ setDataLayer: (layerId: string, geoJson: GeoJsonImplementedObject) => void;
496
+ /**
497
+ * Agrega o modifica un feature especifico de la capa, mezclando las propiedades actuales, con las nuevas que llegan.
498
+ */
499
+ setFeatureData: (layerId: string, featureId: FeatureId, geometry: GeometryObject, properties: GeoJsonProperties, featureLabel?: FeatureIconLabel) => void;
500
+ /**
501
+ * Remueve un feature especifico de la capa
502
+ */
503
+ removeFeature: (layerId: string, featureId: FeatureId) => void;
504
+ /**
505
+ * Retorna el vector de featureIds para saber que que está renderizado en el mapa
506
+ */
507
+ getFeatureIds: (layerId: string) => FeatureId[];
508
+ /**
509
+ * Actualizar instancia la render prop de una capa
510
+ */
511
+ setLayerRenderProp: (layerId: string, value: ComponentRenderPropFeature) => void;
512
+ /**
513
+ * Agrega una capa nueva,
514
+ */
515
+ addLayer: (layer: LayerStore) => void;
516
+ /**
517
+ * Agrega una capa nueva a un feature especifico,
518
+ */
519
+ addLayerDataToFeature: (layerId: string, featureId: FeatureId, layerData: FeatureLayerData) => void;
520
+ /**
521
+ * Remueve un feature especifico de la capa
522
+ */
523
+ removeLayer: (layerId: string) => void;
524
+ /**
525
+ * Abre un popup en un feature especifico
526
+ */
527
+ featureOpenPoup: (layerId: string, featureId: FeatureId) => void;
528
+ /**
529
+ * Cambia las capas la propieda (visible,autoFous,cluser) que estan visibles o no
530
+ */
531
+ setCheckedLayers: (checkedNameSet: CheckedNameSet, newCheckedSet: ReadonlySet<string>) => void;
532
+ /**
533
+ * Actualiza el map source que se visualiza en el mapa.
534
+ * Solo puede haber uno al tiempo.
535
+ * @param newTileLayerSource
536
+ * @returns
537
+ */
538
+ setCurrentMapSource: (newId: MapSourceId) => void;
539
+ /**
540
+ * Actualiza las opciones de la fuente de capas de tipo Road de la fuente de mapas actual
541
+ * @param partialRoadOptions
542
+ * @returns
543
+ */
544
+ setMapSourceRoadOptions: (partialRoadOptions: Partial<RoadOptionsType>) => void;
545
+ /**
546
+ * Actualiza la variable de estado "getLabel"
547
+ * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
548
+ * cambia por el useCallback, cuando el diccionario se carga.
549
+ * @returns void
550
+ */
551
+ setHandlerGetLabel: (newHandler: GetLabelType) => void;
552
+ /**
553
+ * Modifica los estados que se actualizan externamente al Store
554
+ * @param newIsMobile
555
+ * @returns
556
+ */
557
+ setExternalState: (newExternalState: ExternalOwnerState) => void;
558
+ };
559
+ }
560
+ export type DefaultMapStoreProps = Omit<MapState, 'currentLayer'>;
561
+ export type InitialMapStoreProps = Pick<MapState, 'getLabel' | 'ownerState' | 'googleMapsApiKey' | 'googleMapVersion' | 'storeId'> & Partial<DefaultMapStoreProps>;
562
+ export interface MapProviderProps extends Pick<MapState, 'storeId' | 'googleMapsApiKey' | 'googleMapVersion'> {
563
+ storeDevtoolsEnabled?: boolean;
564
+ /**
565
+ * Capas iniciales del mapa
566
+ */
567
+ initialLayers?: InitialLayer[];
568
+ children: ReactNode;
569
+ }
@@ -0,0 +1,32 @@
1
+ export declare const MAP_DICTIONARY_ID = "map";
2
+ export declare function getMapComponentsDictionary(): string[];
3
+ export declare const MAP_DICCTIONARY: {
4
+ /**
5
+ * Generales
6
+ */
7
+ readonly LABEL_GPSTOOLS_NAME: "map.label_gpstools_name";
8
+ readonly LABEL_POPUP_MEASURE: "map.label_tab_measure";
9
+ readonly LABEL_MEASURE_START: "map.label_measure_start";
10
+ readonly LABEL_MEASURE_CANCEL: "map.label_measure_cancel";
11
+ readonly LABEL_MEASURE_DISTANCE: "map.label_measure_distance";
12
+ readonly LABEL_MEASURE_AREA: "map.label_measure_area";
13
+ readonly LABEL_MEASURE_UNIT: "map.label_measure_unit";
14
+ readonly LABEL_MEASURE_UNIT_BASE_KILOMETERS: "map.label_measure_unit_base_kilometers";
15
+ readonly LABEL_MEASURE_REMOVE_POINT: "map.label_measure_remove_point";
16
+ /** Layers */
17
+ readonly LABEL_LAYERS: "map.label_layes";
18
+ readonly LABEL_LAYER_NAME: "map.label_layer_name";
19
+ readonly LABEL_LAYER_VISIBLE: "map.label_layer_visible";
20
+ readonly LABEL_LAYER_AUTOFOCUS: "map.label_layer_autofocus";
21
+ readonly LABEL_LAYER_CLUSTER: "map.label_layer_cluster";
22
+ readonly ROW_ACTION_LAYER_DELETE: "map.row_action_layer_delete";
23
+ /** Map Sources */
24
+ readonly LABEL_MAP_SOURCES: "map.label_map_sources";
25
+ readonly LABEL_TILE_OSM: "map.label_tile_osm";
26
+ readonly LABEL_TILE_GOOGLE_ROADS: "map.label_tile_google_roads";
27
+ readonly LABEL_TILE_GOOGLE_SATELLITE: "map.label_tile_google_satellite";
28
+ readonly LABEL_TILE_GOOGLE_HYBRID: "map.label_tile_google_hybrid";
29
+ readonly LABEL_TILE_BING: "map.label_tile_bing";
30
+ };
31
+ export type TypeDictionary = typeof MAP_DICCTIONARY;
32
+ export declare const getMapToolsDictionary: (key: keyof TypeDictionary) => string;
@@ -0,0 +1,32 @@
1
+ import { getRHFAutocompleteComponentsDictionary } from "@m4l/components";
2
+ const MAP_DICTIONARY_ID = "map";
3
+ function getMapComponentsDictionary() {
4
+ return [MAP_DICTIONARY_ID].concat(getRHFAutocompleteComponentsDictionary());
5
+ }
6
+ const MAP_DICCTIONARY = {
7
+ /**
8
+ * Generales
9
+ */
10
+ LABEL_GPSTOOLS_NAME: "map.label_gpstools_name",
11
+ LABEL_POPUP_MEASURE: "map.label_tab_measure",
12
+ LABEL_MEASURE_START: "map.label_measure_start",
13
+ LABEL_MEASURE_CANCEL: "map.label_measure_cancel",
14
+ LABEL_MEASURE_UNIT: "map.label_measure_unit",
15
+ LABEL_MEASURE_UNIT_BASE_KILOMETERS: "map.label_measure_unit_base_kilometers",
16
+ LABEL_MEASURE_REMOVE_POINT: "map.label_measure_remove_point",
17
+ LABEL_LAYER_NAME: "map.label_layer_name",
18
+ LABEL_LAYER_VISIBLE: "map.label_layer_visible",
19
+ LABEL_LAYER_AUTOFOCUS: "map.label_layer_autofocus",
20
+ LABEL_LAYER_CLUSTER: "map.label_layer_cluster",
21
+ ROW_ACTION_LAYER_DELETE: "map.row_action_layer_delete",
22
+ LABEL_TILE_OSM: "map.label_tile_osm",
23
+ LABEL_TILE_GOOGLE_ROADS: "map.label_tile_google_roads",
24
+ LABEL_TILE_GOOGLE_SATELLITE: "map.label_tile_google_satellite",
25
+ LABEL_TILE_GOOGLE_HYBRID: "map.label_tile_google_hybrid",
26
+ LABEL_TILE_BING: "map.label_tile_bing"
27
+ /** Popups */
28
+ };
29
+ export {
30
+ MAP_DICCTIONARY as M,
31
+ getMapComponentsDictionary as g
32
+ };
@@ -0,0 +1,9 @@
1
+ import { ControlProps } from './types';
2
+ /**
3
+ * crea un componente react dentro de un control de leaflet, utilizando una tecnica e portal diferente a createPortal
4
+ * Dependiendo de la posicion del control, este se agrega en la parte correspondiente del mapa, por defecto es topright
5
+ * @param props
6
+ * @returns
7
+ */
8
+ export declare const Control: (props: ControlProps) => JSX.Element;
9
+ export default Control;
@@ -0,0 +1,42 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import L__default from "leaflet";
4
+ import { useMap } from "react-leaflet";
5
+ import clsx from "clsx";
6
+ const POSITION_CLASSES = {
7
+ bottomleft: "leaflet-bottom leaflet-left",
8
+ bottomright: "leaflet-bottom leaflet-right",
9
+ topleft: "leaflet-top leaflet-left",
10
+ topright: "leaflet-top leaflet-right"
11
+ };
12
+ const Control = (props) => {
13
+ const [portalRoot, setPortalRoot] = React.useState(document.createElement("div"));
14
+ const positionClass = props.position && POSITION_CLASSES[props.position] || POSITION_CLASSES.topright;
15
+ const controlContainerRef = React.createRef();
16
+ const map = useMap();
17
+ React.useEffect(() => {
18
+ if (controlContainerRef.current !== null) {
19
+ L__default.DomEvent.disableClickPropagation(controlContainerRef.current);
20
+ L__default.DomEvent.disableScrollPropagation(controlContainerRef.current);
21
+ }
22
+ }, [controlContainerRef]);
23
+ React.useEffect(() => {
24
+ const mapContainer = map.getContainer();
25
+ const targetDiv = mapContainer.getElementsByClassName(positionClass);
26
+ setPortalRoot(targetDiv[0]);
27
+ }, [positionClass]);
28
+ React.useEffect(() => {
29
+ if (portalRoot !== null) {
30
+ if (props.prepend !== void 0 && props.prepend === true) {
31
+ portalRoot.prepend(controlContainerRef.current);
32
+ } else {
33
+ portalRoot.append(controlContainerRef.current);
34
+ }
35
+ }
36
+ }, [portalRoot, props.prepend, controlContainerRef]);
37
+ const className = clsx(props.container?.className, "leaflet-control", props.className);
38
+ return /* @__PURE__ */ jsx("div", { ...props.container, ref: controlContainerRef, className, children: props.children });
39
+ };
40
+ export {
41
+ Control as C
42
+ };
@@ -0,0 +1,7 @@
1
+ export interface ControlProps {
2
+ position: L.ControlPosition;
3
+ children?: React.ReactNode;
4
+ container?: React.HTMLAttributes<HTMLDivElement>;
5
+ prepend?: boolean;
6
+ className?: string;
7
+ }