@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,74 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import L__default from "leaflet";
3
+ import "leaflet-polylinedecorator";
4
+ import { useRef, useEffect } from "react";
5
+ import { useMap, Polyline } from "react-leaflet";
6
+ const PolylineWithArrows = ({
7
+ positions,
8
+ enableEdit,
9
+ ...other
10
+ }) => {
11
+ const map = useMap();
12
+ const polylineRef = useRef(null);
13
+ const decoratorRef = useRef(null);
14
+ useEffect(() => {
15
+ if (polylineRef.current) {
16
+ const decorator = L__default.polylineDecorator(polylineRef.current, {
17
+ patterns: [
18
+ {
19
+ // offset: '20%',
20
+ repeat: 50,
21
+ symbol: L__default.Symbol.arrowHead({
22
+ pixelSize: 4,
23
+ polygon: false,
24
+ pathOptions: {
25
+ stroke: true,
26
+ color: "#ffffff",
27
+ weight: 2
28
+ }
29
+ })
30
+ }
31
+ ]
32
+ }).addTo(map);
33
+ decoratorRef.current = decorator;
34
+ if (enableEdit) {
35
+ polylineRef.current.pm.enable();
36
+ } else {
37
+ polylineRef.current.pm.disable();
38
+ }
39
+ polylineRef.current.on("pm:change", () => {
40
+ if (decoratorRef.current) {
41
+ map.removeLayer(decoratorRef.current);
42
+ }
43
+ if (polylineRef.current) {
44
+ decoratorRef.current = L__default.polylineDecorator(polylineRef.current, {
45
+ patterns: [
46
+ {
47
+ // offset: '20%',
48
+ repeat: 40,
49
+ symbol: L__default.Symbol.arrowHead({
50
+ pixelSize: 4,
51
+ polygon: false,
52
+ pathOptions: {
53
+ stroke: true,
54
+ color: "#cc0000",
55
+ weight: 2
56
+ }
57
+ })
58
+ }
59
+ ]
60
+ }).addTo(map);
61
+ }
62
+ });
63
+ return () => {
64
+ if (decoratorRef.current) {
65
+ map.removeLayer(decoratorRef.current);
66
+ }
67
+ };
68
+ }
69
+ }, [map, enableEdit]);
70
+ return /* @__PURE__ */ jsx(Polyline, { positions, ref: polylineRef, ...other });
71
+ };
72
+ export {
73
+ PolylineWithArrows as P
74
+ };
@@ -0,0 +1 @@
1
+ export { PolylineWithArrows } from './PolylineWithArrows';
@@ -0,0 +1,7 @@
1
+ import { MapPopupProps } from '../types';
2
+ /**
3
+ * "MapPopupDevice" componente encargado de visualizar la información de un dispositivo
4
+ * dentro de un popup.
5
+ *
6
+ */
7
+ export declare const MapPopupDevice: (props: MapPopupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { P as PopupRootStyled, M as MapPopupDeviceRootStyled } from "./slots/MapPopupDeviceSlots.js";
3
+ import { AppearanceComponentProvider } from "@m4l/components";
4
+ import { G as GpsDeviceContent } from "./subcomponents/Content/GpsDeviceContent.js";
5
+ import { G as GpsDeviceHeader } from "./subcomponents/Header/GpsDeviceHeader.js";
6
+ const MapPopupDevice = (props) => {
7
+ const { isOpen, popupOptions } = props;
8
+ const { keepInView = true, autoPan = true, closeOnEscapeKey = true, ...others } = popupOptions || {};
9
+ return /* @__PURE__ */ jsx(
10
+ PopupRootStyled,
11
+ {
12
+ ownerState: {},
13
+ closeButton: false,
14
+ keepInView,
15
+ autoPan,
16
+ autoPanPaddingTopLeft: [40, 40],
17
+ autoPanPaddingBottomRight: [40, 40],
18
+ closeOnEscapeKey,
19
+ offset: [0, -5],
20
+ ...others,
21
+ children: isOpen && /* @__PURE__ */ jsx(AppearanceComponentProvider, { defaultSize: "medium", children: /* @__PURE__ */ jsxs(MapPopupDeviceRootStyled, { ownerState: {}, children: [
22
+ /* @__PURE__ */ jsx(GpsDeviceHeader, { ...props }),
23
+ /* @__PURE__ */ jsx(GpsDeviceContent, { ...props })
24
+ ] }) })
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ MapPopupDevice as M
30
+ };
@@ -0,0 +1,2 @@
1
+ import { MapPopupDeviceGpsStyles } from './types';
2
+ export declare const mapPopupDeviceStyles: MapPopupDeviceGpsStyles;
@@ -0,0 +1,146 @@
1
+ import { g as getHeightSizeStyles } from "../../../../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { g as getTypographyStyles } from "../../../../../../utils/getTypographyStyles.js";
3
+ const mapPopupDeviceStyles = {
4
+ /**
5
+ * leafletRoot
6
+ */
7
+ leafletRoot: ({ theme }) => ({
8
+ boxShadow: theme.vars.customShadows.z4,
9
+ "& .leaflet-popup-content-wrapper": {
10
+ // '::before': {
11
+ // content: '""',
12
+ // position: 'absolute',
13
+ // top: 0,
14
+ // left: 0,
15
+ // right: 0,
16
+ // height: '5px', // Ancho del borde superior
17
+ // background: `linear-gradient(to top, ${ownerState?.bgColor || '#FFFFFF'})`, // Degradado
18
+ // },
19
+ // borderTop: `2px solid ${ownerState?.bgColor || '#FFFFFF'}CC`,
20
+ borderRadius: theme.vars.size.borderRadius.r2
21
+ },
22
+ "& .leaflet-popup-content": {
23
+ padding: 0,
24
+ margin: 0,
25
+ width: "unset !important"
26
+ },
27
+ "& .leaflet-popup-tip": {
28
+ borderRadius: theme.vars.size.borderRadius.r1
29
+ }
30
+ }),
31
+ /**
32
+ * TODO: Documentar
33
+ */
34
+ root: () => ({
35
+ minWidth: "400px",
36
+ //Cambiar
37
+ display: "flex",
38
+ flexDirection: "column",
39
+ boxShadow: "0 0 10px 0 rgba(0, 0, 0, 0.1)"
40
+ }),
41
+ /**
42
+ * TODO: Documentar
43
+ */
44
+ header: ({ theme }) => ({
45
+ display: "flex",
46
+ alignItems: "center",
47
+ padding: `${theme.vars.size.baseSpacings["sp0-5"]} ${theme.vars.size.baseSpacings.sp1}`,
48
+ borderBottom: `1px solid ${theme.vars.palette.border.disabled}`,
49
+ "> h6": {
50
+ flexGrow: 1
51
+ }
52
+ // zIndex: ownerState.baseZindex || 0,
53
+ }),
54
+ /**
55
+ * Slot device
56
+ */
57
+ device: () => ({
58
+ // marginLeft: theme.vars.size.baseSpacings.sp3,
59
+ flexGrow: 1
60
+ }),
61
+ /**
62
+ * TODO: Documentar
63
+ */
64
+ content: ({ theme }) => ({
65
+ flexGrow: 1,
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ overflowY: "auto",
69
+ overflowX: "hidden",
70
+ padding: `${theme.vars.size.baseSpacings.sp3} ${theme.vars.size.baseSpacings.sp4} `,
71
+ gap: theme.vars.size.baseSpacings["sp0-5"]
72
+ // zIndex: ownerState.baseZindex || 0,
73
+ }),
74
+ /**
75
+ * Slot propertyValue
76
+ */
77
+ propertyValue: () => ({
78
+ borderBottom: "unset"
79
+ }),
80
+ /**
81
+ * Slot statusAndTime
82
+ */
83
+ statusAndTime: ({ theme }) => ({
84
+ display: "flex",
85
+ gap: theme.vars.size.baseSpacings.sp2
86
+ }),
87
+ /**
88
+ * Slot address
89
+ */
90
+ address: ({ theme }) => ({
91
+ marginTop: theme.vars.size.baseSpacings["sp0-5"],
92
+ padding: `${theme.vars.size.baseSpacings.sp2} ${theme.vars.size.baseSpacings.sp4}`,
93
+ backgroundColor: theme.vars.palette.primary.opacity,
94
+ borderRadius: theme.vars.size.borderRadius.r1
95
+ }),
96
+ /**
97
+ * Slot groupAndViewMore
98
+ */
99
+ groupAndViewMore: ({ theme, ownerState }) => ({
100
+ display: "flex",
101
+ justifyContent: "space-between",
102
+ gap: theme.vars.size.baseSpacings.sp3,
103
+ alignItems: "center",
104
+ ...getHeightSizeStyles(
105
+ theme.generalSettings.isMobile,
106
+ ownerState?.size || "medium",
107
+ "action",
108
+ (height) => ({ lineHeight: height })
109
+ )
110
+ }),
111
+ /**
112
+ * Slot group
113
+ */
114
+ group: ({ theme, ownerState }) => {
115
+ const size = ownerState?.size || "medium";
116
+ return {
117
+ display: "inline-block",
118
+ paddingLeft: theme.vars.size.baseSpacings.sp1,
119
+ paddingRight: theme.vars.size.baseSpacings.sp1,
120
+ whiteSpace: "nowrap",
121
+ textOverflow: "ellipsis",
122
+ overflow: "hidden",
123
+ borderRadius: theme.vars.size.borderRadius["r0-5"],
124
+ //TODO: Mejorar el tipado
125
+ color: `${ownerState.color} !important`,
126
+ backgroundColor: `${ownerState.bgColor} !important`,
127
+ ...getTypographyStyles(
128
+ theme.generalSettings.isMobile,
129
+ size,
130
+ "body"
131
+ ),
132
+ ...getHeightSizeStyles(
133
+ theme.generalSettings.isMobile,
134
+ size,
135
+ "base",
136
+ (height) => ({ lineHeight: height })
137
+ )
138
+ };
139
+ },
140
+ viewMore: () => ({
141
+ whiteSpace: "nowrap"
142
+ })
143
+ };
144
+ export {
145
+ mapPopupDeviceStyles as m
146
+ };
@@ -0,0 +1,5 @@
1
+ export declare const COMPONENT_TEST_ID = "M4LMapPopupDevice";
2
+ export declare const COMPONET_KEY_COMPONENT = "M4LMapPopupDevice";
3
+ export declare const LAT_LON_FIXED_DIGITS = 8;
4
+ export declare const DELAY_REPORT_TIME = 1000;
5
+ export declare const DELAY_REPORT_STATUS = 1000;
@@ -0,0 +1,8 @@
1
+ const COMPONET_KEY_COMPONENT = "M4LMapPopupDevice";
2
+ const LAT_LON_FIXED_DIGITS = 8;
3
+ const DELAY_REPORT_TIME = 1e3;
4
+ export {
5
+ COMPONET_KEY_COMPONENT as C,
6
+ DELAY_REPORT_TIME as D,
7
+ LAT_LON_FIXED_DIGITS as L
8
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * TODO: Documentar
3
+ */
4
+ export declare function getMapPopupDeviceComponentsDictionary(): string[];
5
+ export declare const MAP_POPUP_GPS_DEVICE_DICCTIONARY: {
6
+ readonly LABEL_MAP_POPUP_MYGPS_ADDRESS: "map_popup_my_gps.label_address";
7
+ readonly LABEL_MAP_POPUP_MYGPS_LAST_REPORT: "map_popup_my_gps.label_last_report";
8
+ readonly LABEL_MAP_POPUP_MYGPS_STATUS: "map_popup_my_gps.label_status";
9
+ readonly LABEL_MAP_POPUP_MYGPS_TIME_IN_STATUS: "map_popup_my_gps.label_time_in_status";
10
+ readonly LABEL_MAP_POPUP_MYGPS_SPEED: "map_popup_my_gps.label_speed";
11
+ readonly LABEL_MAP_POPUP_MYGPS_COURSE: "map_popup_my_gps.label_course";
12
+ readonly LABEL_MAP_POPUP_MYGPS_LOCATION: "map_popup_my_gps.label_location";
13
+ readonly LABEL_MAP_POPUP_MYGPS_DRIVER: "map_popup_my_gps.label_driver";
14
+ readonly LABEL_MAP_POPUP_MYGPS_VIEW_MORE: "map_popup_my_gps.label_view_more";
15
+ };
16
+ export type TypeDictionary = typeof MAP_POPUP_GPS_DEVICE_DICCTIONARY;
@@ -0,0 +1,20 @@
1
+ import { getDistanceToNowFormatterComponentsDictionary } from "@m4l/components";
2
+ import { g as getCourseFormatterComponentsDictionary } from "../../../../../../formatters/CourseFormatter/dictionary.js";
3
+ import { g as getDeviceStatusComponentsDictionary } from "../../../../../DeviceStatus/dictionary.js";
4
+ const MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID = "map_popup_my_gps";
5
+ function getMapPopupDeviceComponentsDictionary() {
6
+ return [MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID].concat(getDistanceToNowFormatterComponentsDictionary()).concat(getCourseFormatterComponentsDictionary()).concat(getDeviceStatusComponentsDictionary());
7
+ }
8
+ const MAP_POPUP_GPS_DEVICE_DICCTIONARY = {
9
+ LABEL_MAP_POPUP_MYGPS_ADDRESS: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_address`,
10
+ LABEL_MAP_POPUP_MYGPS_LAST_REPORT: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_last_report`,
11
+ LABEL_MAP_POPUP_MYGPS_STATUS: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_status`,
12
+ LABEL_MAP_POPUP_MYGPS_SPEED: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_speed`,
13
+ LABEL_MAP_POPUP_MYGPS_COURSE: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_course`,
14
+ LABEL_MAP_POPUP_MYGPS_LOCATION: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_location`,
15
+ LABEL_MAP_POPUP_MYGPS_VIEW_MORE: `${MAP_POPUP_GPS_DEVICE_DICCTIONARY_ID}.label_view_more`
16
+ };
17
+ export {
18
+ MAP_POPUP_GPS_DEVICE_DICCTIONARY as M,
19
+ getMapPopupDeviceComponentsDictionary as g
20
+ };
@@ -0,0 +1,2 @@
1
+ export * from './MapPopupDevice';
2
+ export { getMapPopupDeviceComponentsDictionary } from './dictionary';
@@ -0,0 +1,33 @@
1
+ export declare const PopupRootStyled: import('@emotion/styled').StyledComponent<Pick<import('react-leaflet').PopupProps & import('react').RefAttributes<import('leaflet').Popup>, keyof import('react-leaflet').PopupProps | keyof import('react').RefAttributes<import('leaflet').Popup>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
3
+ }, {}, {}>;
4
+ export declare const MapPopupDeviceRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ export declare const HeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
9
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
+ export declare const DeviceLabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../../../DeviceLabel/types').DeviceProps, keyof import('../../../../../../DeviceLabel/types').DeviceProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
12
+ }, {}, {}>;
13
+ export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
14
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
16
+ export declare const PropertyValueStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components').PropertyValueProps, keyof import('@m4l/components').PropertyValueProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
17
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
18
+ }, {}, {}>;
19
+ export declare const StatusAndTimeStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
20
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
21
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
22
+ export declare const AddressStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps, keyof import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
23
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
24
+ }, {}, {}>;
25
+ export declare const GroupAndViewMoreStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
26
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
27
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
28
+ export declare const GroupStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
29
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
30
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
31
+ export declare const ViewMoreLinkStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps, keyof import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
32
+ ownerState: Partial<import('../types').MapPopupDeviceGpsOwnerState> & Record<string, unknown>;
33
+ }, {}, {}>;
@@ -0,0 +1,63 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { C as COMPONET_KEY_COMPONENT } from "../constants.js";
3
+ import { m as mapPopupDeviceStyles } from "../MapPopupDevice.styles.js";
4
+ import { M as MapPopupDeviceSlots } from "./slots.js";
5
+ import { Popup } from "react-leaflet";
6
+ import { PropertyValue, Typography } from "@m4l/components";
7
+ import { D as DeviceLabel } from "../../../../../../DeviceLabel/DeviceLabel.js";
8
+ const PopupRootStyled = styled(Popup, {
9
+ name: COMPONET_KEY_COMPONENT,
10
+ slot: MapPopupDeviceSlots.leafletRoot
11
+ })(mapPopupDeviceStyles?.leafletRoot);
12
+ const MapPopupDeviceRootStyled = styled("div", {
13
+ name: COMPONET_KEY_COMPONENT,
14
+ slot: MapPopupDeviceSlots.root
15
+ })(mapPopupDeviceStyles?.root);
16
+ const HeaderStyled = styled("div", {
17
+ name: COMPONET_KEY_COMPONENT,
18
+ slot: MapPopupDeviceSlots.header
19
+ })(mapPopupDeviceStyles?.header);
20
+ const DeviceLabelStyled = styled(DeviceLabel, {
21
+ name: COMPONET_KEY_COMPONENT,
22
+ slot: MapPopupDeviceSlots.device
23
+ })(mapPopupDeviceStyles?.device);
24
+ const ContentStyled = styled("div", {
25
+ name: COMPONET_KEY_COMPONENT,
26
+ slot: MapPopupDeviceSlots.content
27
+ })(mapPopupDeviceStyles?.content);
28
+ const PropertyValueStyled = styled(PropertyValue, {
29
+ name: COMPONET_KEY_COMPONENT,
30
+ slot: MapPopupDeviceSlots.propertyValue
31
+ })(mapPopupDeviceStyles?.propertyValue);
32
+ const StatusAndTimeStyled = styled("div", {
33
+ name: COMPONET_KEY_COMPONENT,
34
+ slot: MapPopupDeviceSlots.statusAndTime
35
+ })(mapPopupDeviceStyles?.statusAndTime);
36
+ const AddressStyled = styled(Typography, {
37
+ name: COMPONET_KEY_COMPONENT,
38
+ slot: MapPopupDeviceSlots.address
39
+ })(mapPopupDeviceStyles?.address);
40
+ const GroupAndViewMoreStyled = styled("div", {
41
+ name: COMPONET_KEY_COMPONENT,
42
+ slot: MapPopupDeviceSlots.groupAndViewMore
43
+ })(mapPopupDeviceStyles?.groupAndViewMore);
44
+ styled("div", {
45
+ name: COMPONET_KEY_COMPONENT,
46
+ slot: MapPopupDeviceSlots.group
47
+ })(mapPopupDeviceStyles?.group);
48
+ const ViewMoreLinkStyled = styled(Typography, {
49
+ name: COMPONET_KEY_COMPONENT,
50
+ slot: MapPopupDeviceSlots.viewMore
51
+ })(mapPopupDeviceStyles?.viewMore);
52
+ export {
53
+ AddressStyled as A,
54
+ ContentStyled as C,
55
+ DeviceLabelStyled as D,
56
+ GroupAndViewMoreStyled as G,
57
+ HeaderStyled as H,
58
+ MapPopupDeviceRootStyled as M,
59
+ PopupRootStyled as P,
60
+ StatusAndTimeStyled as S,
61
+ ViewMoreLinkStyled as V,
62
+ PropertyValueStyled as a
63
+ };
@@ -0,0 +1,13 @@
1
+ export declare enum MapPopupDeviceSlots {
2
+ leafletRoot = "leafletRoot",
3
+ root = "root",
4
+ header = "header",
5
+ device = "device",
6
+ content = "content",
7
+ propertyValue = "propertyValue",
8
+ statusAndTime = "statusAndTime",
9
+ address = "address",
10
+ groupAndViewMore = "groupAndViewMore",
11
+ group = "group",
12
+ viewMore = "viewMore"
13
+ }
@@ -0,0 +1,17 @@
1
+ var MapPopupDeviceSlots = /* @__PURE__ */ ((MapPopupDeviceSlots2) => {
2
+ MapPopupDeviceSlots2["leafletRoot"] = "leafletRoot";
3
+ MapPopupDeviceSlots2["root"] = "root";
4
+ MapPopupDeviceSlots2["header"] = "header";
5
+ MapPopupDeviceSlots2["device"] = "device";
6
+ MapPopupDeviceSlots2["content"] = "content";
7
+ MapPopupDeviceSlots2["propertyValue"] = "propertyValue";
8
+ MapPopupDeviceSlots2["statusAndTime"] = "statusAndTime";
9
+ MapPopupDeviceSlots2["address"] = "address";
10
+ MapPopupDeviceSlots2["groupAndViewMore"] = "groupAndViewMore";
11
+ MapPopupDeviceSlots2["group"] = "group";
12
+ MapPopupDeviceSlots2["viewMore"] = "viewMore";
13
+ return MapPopupDeviceSlots2;
14
+ })(MapPopupDeviceSlots || {});
15
+ export {
16
+ MapPopupDeviceSlots as M
17
+ };
@@ -0,0 +1,6 @@
1
+ import { MapPopupProps } from '../../../types';
2
+ /**
3
+ * "GpsDeviceContent"
4
+ *
5
+ */
6
+ export declare const GpsDeviceContent: (props: MapPopupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,122 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useEnvironment, useModuleDictionary } from "@m4l/core";
3
+ import { Chip, Icon, DistanceToNowFormatter } from "@m4l/components";
4
+ import { C as ContentStyled, a as PropertyValueStyled, S as StatusAndTimeStyled, A as AddressStyled, G as GroupAndViewMoreStyled, V as ViewMoreLinkStyled } from "../../slots/MapPopupDeviceSlots.js";
5
+ import { M as MAP_POPUP_GPS_DEVICE_DICCTIONARY } from "../../dictionary.js";
6
+ import { D as DELAY_REPORT_TIME, L as LAT_LON_FIXED_DIGITS } from "../../constants.js";
7
+ import { C as CourseFormatter } from "../../../../../../../../formatters/CourseFormatter/CourseFormatter.js";
8
+ const GpsDeviceContent = (props) => {
9
+ const { properties } = props;
10
+ const { deviceData, statusLabel, statusPalletColor, reportTime, reportStatus, speed, iconKey } = properties;
11
+ const { host_static_assets, environment_assets } = useEnvironment();
12
+ const generalStatusIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_status.svg`;
13
+ const statusIconUrl = `${host_static_assets}/${environment_assets}/frontend/components/device_status/assets/icons/${iconKey}.svg`;
14
+ const statusTimeIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_status_time.svg`;
15
+ const lastReportIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_report_time.svg`;
16
+ const speedIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_speed.svg`;
17
+ const courseIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_course.svg`;
18
+ const positionIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/general/gps/i_common_general_gps_position.svg`;
19
+ const course = deviceData?.current?.vpts?.vptGnss?.course;
20
+ const { getLabel } = useModuleDictionary();
21
+ return /* @__PURE__ */ jsxs(ContentStyled, { ownerState: {}, children: [
22
+ /* @__PURE__ */ jsx(
23
+ PropertyValueStyled,
24
+ {
25
+ ownerState: {},
26
+ startAdornment: generalStatusIconUrl,
27
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_STATUS),
28
+ propertyWidth: 120,
29
+ value: /* @__PURE__ */ jsxs(StatusAndTimeStyled, { ownerState: {}, children: [
30
+ /* @__PURE__ */ jsx(
31
+ Chip,
32
+ {
33
+ label: statusLabel,
34
+ opacity: true,
35
+ color: statusPalletColor,
36
+ startIcon: statusIconUrl
37
+ }
38
+ ),
39
+ /* @__PURE__ */ jsx(Icon, { src: statusTimeIconUrl, color: "info.main", tooltipContent: /* @__PURE__ */ jsx(
40
+ DistanceToNowFormatter,
41
+ {
42
+ presentationTime: "past",
43
+ date: reportStatus,
44
+ delay: DELAY_REPORT_TIME
45
+ }
46
+ ) })
47
+ ] })
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsx(
51
+ PropertyValueStyled,
52
+ {
53
+ ownerState: {},
54
+ startAdornment: lastReportIconUrl,
55
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_LAST_REPORT),
56
+ propertyWidth: 120,
57
+ value: /* @__PURE__ */ jsx(
58
+ DistanceToNowFormatter,
59
+ {
60
+ presentationTime: "present",
61
+ date: reportTime,
62
+ delay: DELAY_REPORT_TIME
63
+ }
64
+ )
65
+ }
66
+ ),
67
+ /* @__PURE__ */ jsx(
68
+ PropertyValueStyled,
69
+ {
70
+ ownerState: {},
71
+ startAdornment: speedIconUrl,
72
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_SPEED),
73
+ propertyWidth: 120,
74
+ value: `${speed} Km/h`
75
+ }
76
+ ),
77
+ /* @__PURE__ */ jsx(
78
+ PropertyValueStyled,
79
+ {
80
+ ownerState: {},
81
+ startAdornment: courseIconUrl,
82
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_COURSE),
83
+ propertyWidth: 120,
84
+ value: /* @__PURE__ */ jsx(
85
+ CourseFormatter,
86
+ {
87
+ course
88
+ }
89
+ )
90
+ }
91
+ ),
92
+ /* @__PURE__ */ jsx(
93
+ PropertyValueStyled,
94
+ {
95
+ ownerState: {},
96
+ startAdornment: positionIconUrl,
97
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_LOCATION),
98
+ propertyWidth: 120,
99
+ value: `${Number(deviceData?.current?.vpts?.vptGnss?.lon).toFixed(
100
+ LAT_LON_FIXED_DIGITS
101
+ )},${Number(deviceData?.current?.vpts?.vptGnss?.lat).toFixed(
102
+ LAT_LON_FIXED_DIGITS
103
+ )}`
104
+ }
105
+ ),
106
+ /* @__PURE__ */ jsxs(
107
+ AddressStyled,
108
+ {
109
+ ownerState: {},
110
+ property: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_ADDRESS),
111
+ children: [
112
+ `${deviceData?.current?.vpts?.vptGnss?.address}`,
113
+ " "
114
+ ]
115
+ }
116
+ ),
117
+ /* @__PURE__ */ jsx(GroupAndViewMoreStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(ViewMoreLinkStyled, { ownerState: {}, children: getLabel(MAP_POPUP_GPS_DEVICE_DICCTIONARY.LABEL_MAP_POPUP_MYGPS_VIEW_MORE) }) })
118
+ ] });
119
+ };
120
+ export {
121
+ GpsDeviceContent as G
122
+ };
@@ -0,0 +1,5 @@
1
+ import { MapPopupProps } from '../../../types';
2
+ /**
3
+ * "GpsDeviceHeader"
4
+ */
5
+ export declare const GpsDeviceHeader: (props: MapPopupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useCallback } from "react";
3
+ import { useMap } from "react-leaflet";
4
+ import { useEnvironment } from "@m4l/core";
5
+ import { IconButton } from "@m4l/components";
6
+ import { H as HeaderStyled, D as DeviceLabelStyled } from "../../slots/MapPopupDeviceSlots.js";
7
+ const GpsDeviceHeader = (props) => {
8
+ const { properties } = props;
9
+ const { host_static_assets, environment_assets } = useEnvironment();
10
+ const closeIconUrl = `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/close.svg`;
11
+ const map = useMap();
12
+ const onClose = useCallback(() => {
13
+ map.closePopup();
14
+ }, [map]);
15
+ return /* @__PURE__ */ jsxs(HeaderStyled, { ownerState: {}, children: [
16
+ /* @__PURE__ */ jsx(DeviceLabelStyled, { ownerState: {}, withImage: true, deviceData: { ...properties?.deviceData } }),
17
+ /* @__PURE__ */ jsx(IconButton, { icon: closeIconUrl, onClick: onClose })
18
+ ] });
19
+ };
20
+ export {
21
+ GpsDeviceHeader as G
22
+ };
@@ -0,0 +1,5 @@
1
+ import { GpsDevicePropertyValueProps } from './types';
2
+ /**
3
+ * TODO: Documentar
4
+ */
5
+ export declare const PropertyValue: (props: GpsDevicePropertyValueProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type GpsDevicePropertyValueProps = {
3
+ icon?: ReactNode;
4
+ property: string;
5
+ value: ReactNode;
6
+ };
@@ -0,0 +1,10 @@
1
+ import { COMPONET_KEY_COMPONENT } from './constants';
2
+ import { MapPopupDeviceSlots } from './slots/slots';
3
+ import { Theme } from '@mui/material/styles';
4
+ import { M4LOverridesStyleRules } from '../../../../../../@types/augmentations';
5
+ export type MapPopupDeviceGpsSlotsType = keyof typeof MapPopupDeviceSlots;
6
+ export type MapPopupDeviceGpsOwnerState = {
7
+ bgColor: string;
8
+ color: string;
9
+ };
10
+ export type MapPopupDeviceGpsStyles = M4LOverridesStyleRules<MapPopupDeviceGpsSlotsType, typeof COMPONET_KEY_COMPONENT, Theme>;