@m4l/gclick 0.1.0 → 0.2.0-JAEBeta.0

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 (267) hide show
  1. package/@types/deviceData.d.ts +12 -9
  2. package/@types/general.d.ts +1 -1
  3. package/@types/index.d.ts +2 -2
  4. package/@types/types.d.ts +25 -1
  5. package/@types/vpts.d.ts +6 -3
  6. package/components/Device/Device.d.ts +6 -0
  7. package/components/Device/Device.js +32 -0
  8. package/components/Device/Device.styles.d.ts +2 -0
  9. package/components/Device/Device.styles.js +95 -0
  10. package/components/Device/constants.d.ts +14 -0
  11. package/components/Device/constants.js +4 -0
  12. package/components/Device/dictionary.d.ts +14 -0
  13. package/components/Device/dictionary.js +19 -0
  14. package/components/{DeviceStatus/hooks/helper.d.ts → Device/helpers/helperDeviceStatus.d.ts} +1 -1
  15. package/components/{DeviceStatus/hooks/helper.js → Device/helpers/helperDeviceStatus.js} +5 -5
  16. package/components/Device/helpers.d.ts +18 -0
  17. package/components/Device/helpers.js +27 -0
  18. package/components/Device/hooks/constants.d.ts +16 -0
  19. package/components/{DeviceStatus → Device}/hooks/constants.js +13 -15
  20. package/components/Device/hooks/useDevice.d.ts +12 -0
  21. package/components/Device/hooks/useDevice.js +23 -0
  22. package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.d.ts +2 -2
  23. package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.js +4 -4
  24. package/components/Device/icons.d.ts +11 -0
  25. package/components/{DeviceStatus → Device}/icons.js +2 -2
  26. package/components/Device/index.d.ts +6 -0
  27. package/components/Device/slots/DeviceSlots.d.ts +15 -0
  28. package/components/Device/slots/DeviceSlots.js +32 -0
  29. package/components/Device/slots/slots.d.ts +7 -0
  30. package/components/Device/slots/slots.js +11 -0
  31. package/components/Device/types.d.ts +30 -0
  32. package/components/DeviceLabel/DeviceLabel.js +1 -1
  33. package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +9 -3
  34. package/components/DeviceLabel/types.d.ts +2 -2
  35. package/components/DeviceStatus/DeviceStatus.js +3 -15
  36. package/components/DeviceStatus/DeviceStatus.styles.js +1 -13
  37. package/components/DeviceStatus/constants.js +1 -4
  38. package/components/DeviceStatus/dictionary.d.ts +10 -10
  39. package/components/DeviceStatus/dictionary.js +1 -12
  40. package/components/DeviceStatus/icons.d.ts +1 -1
  41. package/components/DeviceStatus/index.d.ts +3 -2
  42. package/components/DeviceStatus/slots/DeviceStatusSlots.js +1 -11
  43. package/components/DeviceStatus/slots/slots.js +1 -7
  44. package/components/index.d.ts +1 -1
  45. package/components/indicators/IndicatorBattery/IndicatorBattery.styles.js +2 -2
  46. package/components/indicators/IndicatorBattery/dictionary.js +5 -1
  47. package/components/indicators/IndicatorBattery/index.d.ts +1 -0
  48. package/components/indicators/IndicatorCSQ/IndicatorCSQ.js +7 -5
  49. package/components/indicators/IndicatorCSQ/constants.d.ts +2 -2
  50. package/components/indicators/IndicatorCSQ/constants.js +4 -3
  51. package/components/indicators/IndicatorCSQ/dictionary.d.ts +5 -2
  52. package/components/indicators/IndicatorCSQ/dictionary.js +15 -12
  53. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +22 -2
  54. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.js +15 -29
  55. package/components/indicators/IndicatorCSQ/index.d.ts +3 -3
  56. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.js +6 -6
  57. package/components/indicators/IndicatorCSQ/types.d.ts +6 -2
  58. package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.d.ts +5 -0
  59. package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.js +15 -0
  60. package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.d.ts +2 -0
  61. package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.js +41 -0
  62. package/components/indicators/IndicatorValueAndMagnitude/constants.d.ts +2 -0
  63. package/components/indicators/IndicatorValueAndMagnitude/constants.js +7 -0
  64. package/components/indicators/IndicatorValueAndMagnitude/index.d.ts +1 -0
  65. package/components/indicators/IndicatorValueAndMagnitude/index.js +1 -0
  66. package/components/indicators/IndicatorValueAndMagnitude/slots/slots.d.ts +6 -0
  67. package/components/indicators/IndicatorValueAndMagnitude/slots/slots.js +10 -0
  68. package/components/indicators/IndicatorValueAndMagnitude/slots/styled.d.ts +12 -0
  69. package/components/indicators/IndicatorValueAndMagnitude/slots/styled.js +27 -0
  70. package/components/indicators/IndicatorValueAndMagnitude/types.d.ts +14 -0
  71. package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.js +25 -0
  72. package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.styles.js +76 -0
  73. package/components/indicators/IndicatorValueStatus/constants.js +8 -0
  74. package/components/indicators/IndicatorValueStatus/index.js +1 -0
  75. package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusEnum.js +11 -0
  76. package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusSlots.js +32 -0
  77. package/components/indicators/IndicatorValueStatus/types.d.ts +4 -0
  78. package/components/indicators/index.d.ts +2 -0
  79. package/components/maps/components/GpsMap/GpsMap.js +26 -9
  80. package/components/maps/components/GpsMap/GpsMap.styles.js +81 -93
  81. package/components/maps/components/GpsMap/classes/index.d.ts +1 -1
  82. package/components/maps/components/GpsMap/classes/index.js +6 -76
  83. package/components/maps/components/GpsMap/classes/types.d.ts +5 -16
  84. package/components/maps/components/GpsMap/constants.d.ts +9 -3
  85. package/components/maps/components/GpsMap/constants.js +25 -13
  86. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +4 -26
  87. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
  88. package/components/maps/components/GpsMap/contexts/MapContext/store.js +50 -75
  89. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +98 -87
  90. package/components/maps/components/GpsMap/dictionary.d.ts +19 -8
  91. package/components/maps/components/GpsMap/dictionary.js +30 -17
  92. package/components/maps/components/GpsMap/external/{Control → MapControl}/index.d.ts +3 -3
  93. package/components/maps/components/GpsMap/external/{Control → MapControl}/index.js +9 -7
  94. package/components/maps/components/GpsMap/external/MapControl/types.d.ts +26 -0
  95. package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +1 -1
  96. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +3 -3
  97. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +1 -1
  98. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +3 -2
  99. package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
  100. package/components/maps/components/GpsMap/hooks/index.d.ts +3 -0
  101. package/components/maps/components/GpsMap/hooks/index.js +1 -0
  102. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.d.ts +6 -0
  103. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js +31 -0
  104. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +6 -0
  105. package/components/maps/components/GpsMap/hooks/{useDisableZoomEvents → useDisableMapEventsOnMouseOver}/index.js +10 -2
  106. package/components/maps/components/GpsMap/icons.d.ts +10 -7
  107. package/components/maps/components/GpsMap/icons.js +17 -16
  108. package/components/maps/components/GpsMap/index.d.ts +2 -1
  109. package/components/maps/components/GpsMap/leaflet.styles.d.ts +6 -0
  110. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +9 -1
  111. package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
  112. package/components/maps/components/GpsMap/slots/slots.d.ts +27 -4
  113. package/components/maps/components/GpsMap/slots/slots.js +16 -7
  114. package/components/maps/components/GpsMap/slots/styled.d.ts +18 -0
  115. package/components/maps/components/GpsMap/slots/styled.js +37 -0
  116. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +8 -7
  117. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +10 -0
  118. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +10 -0
  119. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.js +3 -3
  120. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +2 -0
  121. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/types.d.ts +8 -0
  122. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.d.ts +13 -0
  123. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.js +64 -0
  124. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -2
  125. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +42 -87
  126. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +9 -0
  127. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.js +24 -0
  128. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/types.d.ts +2 -0
  129. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.d.ts +4 -0
  130. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.js +30 -0
  131. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +2 -0
  132. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js +45 -0
  133. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/types.d.ts +11 -0
  134. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +9 -0
  135. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +37 -0
  136. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.d.ts +6 -0
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js +10 -0
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.d.ts +12 -0
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.js +26 -0
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +5 -0
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +71 -0
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/types.d.ts +6 -0
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/types.d.ts +9 -0
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts → TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.d.ts} +1 -1
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.js +38 -0
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +2 -0
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +87 -0
  148. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +12 -0
  149. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +22 -0
  150. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.d.ts +9 -0
  151. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js +13 -0
  152. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.d.ts +21 -0
  153. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.js +41 -0
  154. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
  155. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.js +47 -0
  156. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +2 -0
  157. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.js +107 -0
  158. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +2 -0
  159. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.js +33 -0
  160. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +6 -0
  161. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +88 -0
  162. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/types.d.ts +7 -0
  163. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/types.d.ts +9 -0
  164. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.js +31 -0
  165. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.d.ts +7 -0
  166. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js +154 -0
  167. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +25 -0
  168. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +37 -14
  169. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +29 -0
  170. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +14 -6
  171. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +2 -2
  172. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +26 -20
  173. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +1 -2
  174. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.d.ts +8 -0
  175. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.js +12 -0
  176. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.d.ts +18 -0
  177. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.js +37 -0
  178. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +19 -17
  179. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +18 -2
  180. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -1
  181. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +2 -5
  182. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
  183. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +2 -1
  184. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +2 -1
  185. package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.d.ts +6 -0
  186. package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.js +8 -0
  187. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/darkStyles.d.ts +13 -0
  188. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +82 -59
  189. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +25 -15
  190. package/components/maps/components/GpsMap/types.d.ts +24 -5
  191. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +1 -0
  192. package/components/maps/components/GpsMapTools/index.d.ts +1 -0
  193. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +1 -1
  194. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +29 -32
  195. package/components/maps/components/GpsMapTools/types.d.ts +0 -16
  196. package/components/maps/index.d.ts +1 -0
  197. package/components/maps/utils/coordsToQuadKey.d.ts +4 -0
  198. package/components/maps/{components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js → utils/coordsToQuadKey.js} +2 -2
  199. package/components/maps/utils/index.d.ts +1 -0
  200. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +1 -1
  201. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +1 -1
  202. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +1 -1
  203. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +67 -2
  204. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +115 -30
  205. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +5 -38
  206. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +9 -36
  207. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +27 -19
  208. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +3 -2
  209. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +9 -2
  210. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +1 -1
  211. package/formatters/CourseFormatter/CourseFormatter.js +6 -4
  212. package/formatters/CourseFormatter/helper.d.ts +2 -1
  213. package/formatters/CourseFormatter/helper.js +2 -4
  214. package/formatters/CourseFormatter/index.d.ts +1 -0
  215. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +1 -1
  216. package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +2 -2
  217. package/formatters/index.js +1 -0
  218. package/index.d.ts +1 -0
  219. package/index.js +94 -59
  220. package/package.json +16 -3
  221. package/utils/cssToCSSProperties.d.ts +37 -0
  222. package/utils/getPrecisionFromHdop/constants.d.ts +13 -0
  223. package/utils/getPrecisionFromHdop/constants.js +73 -0
  224. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +31 -0
  225. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +59 -0
  226. package/utils/getPrecisionFromHdop/index.d.ts +3 -0
  227. package/utils/getPrecisionFromHdop/index.js +1 -0
  228. package/utils/getPrecisionFromHdop/types.d.ts +42 -0
  229. package/utils/getVptUpdatedAtWithGuard.d.ts +4 -0
  230. package/utils/getVptUpdatedAtWithGuard.js +13 -0
  231. package/utils/getVptValueWithGuard.d.ts +9 -0
  232. package/utils/getVptValueWithGuard.js +18 -0
  233. package/utils/index.d.ts +3 -0
  234. package/components/DeviceStatus/hooks/constants.d.ts +0 -11
  235. package/components/maps/components/GpsMap/external/Control/types.d.ts +0 -7
  236. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +0 -4
  237. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +0 -112
  238. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +0 -6
  239. package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +0 -4
  240. package/components/maps/components/GpsMap/slots/GpsMapSlots.js +0 -24
  241. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +0 -13
  242. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +0 -10
  243. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +0 -58
  244. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
  245. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +0 -17
  246. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +0 -18
  247. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +0 -139
  248. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -12
  249. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +0 -52
  250. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -8
  251. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +0 -43
  252. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +0 -4
  253. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +0 -30
  254. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +0 -26
  255. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +0 -133
  256. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +0 -2
  257. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +0 -39
  258. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +0 -4
  259. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +0 -73
  260. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +0 -2
  261. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +0 -25
  262. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +0 -4
  263. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +0 -4
  264. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +0 -40
  265. /package/components/{maps/components/GpsMap/contexts/MapContext/helper.js → Device/index.js} +0 -0
  266. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.d.ts +0 -0
  267. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/{index.d.ts → MeasureTool.d.ts} +0 -0
@@ -0,0 +1,41 @@
1
+ const indicatorValueStatusStyles = {
2
+ /**
3
+ * The root styles
4
+ */
5
+ root: ({ theme }) => ({
6
+ display: "flex",
7
+ gap: theme.vars.size.baseSpacings["sp0-5"],
8
+ alignItems: "flex-end"
9
+ }),
10
+ /**
11
+ * The value styles
12
+ */
13
+ value: ({ ownerState }) => ({
14
+ // alignItems: 'flex-end',
15
+ fontVariantNumeric: "tabular-nums",
16
+ fontFeatureSettings: '"tnum" 1, "lnum" 1',
17
+ letterSpacing: "0.05em",
18
+ // Ajusta según necesites
19
+ ...ownerState?.minWidth && {
20
+ minWidth: ownerState?.minWidth
21
+ }
22
+ }),
23
+ /**
24
+ * The unit container styles
25
+ */
26
+ unitContainer: () => ({
27
+ // width: 'fit-content',
28
+ // height: 'fit-content',
29
+ display: "flex",
30
+ alignItems: "flex-end"
31
+ }),
32
+ /**
33
+ * The unit styles
34
+ */
35
+ unit: () => ({
36
+ paddingBottom: "1px"
37
+ })
38
+ };
39
+ export {
40
+ indicatorValueStatusStyles as i
41
+ };
@@ -0,0 +1,2 @@
1
+ export declare const VALUE_AND_MAGNITUDE_COMPONENT_KEY = "M4LIndicatorValueAndMagnitude";
2
+ export declare const VALUE_AND_MAGNITUDE_CLASSES: Record<string, string>;
@@ -0,0 +1,7 @@
1
+ import { getComponentClasses } from "@m4l/components";
2
+ import { I as IndicatorValueAndMagnitudeSlots } from "./slots/slots.js";
3
+ const VALUE_AND_MAGNITUDE_COMPONENT_KEY = "M4LIndicatorValueAndMagnitude";
4
+ getComponentClasses(VALUE_AND_MAGNITUDE_COMPONENT_KEY, IndicatorValueAndMagnitudeSlots);
5
+ export {
6
+ VALUE_AND_MAGNITUDE_COMPONENT_KEY as V
7
+ };
@@ -0,0 +1 @@
1
+ export { IndicatorValueAndMagnitude } from './IndicatorValueAndMagnitude';
@@ -0,0 +1,6 @@
1
+ export declare enum IndicatorValueAndMagnitudeSlots {
2
+ root = "root",
3
+ value = "value",
4
+ unitContainer = "unitContainer",
5
+ unit = "unit"
6
+ }
@@ -0,0 +1,10 @@
1
+ var IndicatorValueAndMagnitudeSlots = /* @__PURE__ */ ((IndicatorValueAndMagnitudeSlots2) => {
2
+ IndicatorValueAndMagnitudeSlots2["root"] = "root";
3
+ IndicatorValueAndMagnitudeSlots2["value"] = "value";
4
+ IndicatorValueAndMagnitudeSlots2["unitContainer"] = "unitContainer";
5
+ IndicatorValueAndMagnitudeSlots2["unit"] = "unit";
6
+ return IndicatorValueAndMagnitudeSlots2;
7
+ })(IndicatorValueAndMagnitudeSlots || {});
8
+ export {
9
+ IndicatorValueAndMagnitudeSlots as I
10
+ };
@@ -0,0 +1,12 @@
1
+ export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: any;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const ValueStyled: 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> & {
5
+ ownerState?: any;
6
+ }, {}, {}>;
7
+ export declare const ContainerUnitStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState?: any;
9
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
+ export declare const UnitStyled: 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> & {
11
+ ownerState?: any;
12
+ }, {}, {}>;
@@ -0,0 +1,27 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { I as IndicatorValueAndMagnitudeSlots } from "./slots.js";
3
+ import { V as VALUE_AND_MAGNITUDE_COMPONENT_KEY } from "../constants.js";
4
+ import { i as indicatorValueStatusStyles } from "../IndicatorValueAndMagnitude.styles.js";
5
+ import { Typography } from "@m4l/components";
6
+ const RootStyled = styled("div", {
7
+ name: VALUE_AND_MAGNITUDE_COMPONENT_KEY,
8
+ slot: IndicatorValueAndMagnitudeSlots.root
9
+ })(indicatorValueStatusStyles?.root);
10
+ const ValueStyled = styled(Typography, {
11
+ name: VALUE_AND_MAGNITUDE_COMPONENT_KEY,
12
+ slot: IndicatorValueAndMagnitudeSlots.value
13
+ })(indicatorValueStatusStyles?.value);
14
+ const ContainerUnitStyled = styled("div", {
15
+ name: VALUE_AND_MAGNITUDE_COMPONENT_KEY,
16
+ slot: IndicatorValueAndMagnitudeSlots.unitContainer
17
+ })(indicatorValueStatusStyles?.unitContainer);
18
+ const UnitStyled = styled(Typography, {
19
+ name: VALUE_AND_MAGNITUDE_COMPONENT_KEY,
20
+ slot: IndicatorValueAndMagnitudeSlots.unit
21
+ })(indicatorValueStatusStyles?.unit);
22
+ export {
23
+ ContainerUnitStyled as C,
24
+ RootStyled as R,
25
+ UnitStyled as U,
26
+ ValueStyled as V
27
+ };
@@ -0,0 +1,14 @@
1
+ import { M4LOverridesStyleRules } from '@m4l/components';
2
+ import { IndicatorValueAndMagnitudeSlots } from './slots/slots';
3
+ import { VALUE_AND_MAGNITUDE_COMPONENT_KEY } from './constants';
4
+ import { Theme } from '@mui/material/styles';
5
+ export type IndicatorValueAndMagnitudeProps = {
6
+ value: React.ReactNode;
7
+ magnitude?: string;
8
+ minWidth?: string;
9
+ };
10
+ export type IndicatorValueAndMagnitudeOwnerState = {
11
+ minWidth?: string;
12
+ };
13
+ export type IndicatorValueAndMagnitudeSlotsType = keyof typeof IndicatorValueAndMagnitudeSlots;
14
+ export type IndicatorValueAndMagnitudeStyles = M4LOverridesStyleRules<IndicatorValueAndMagnitudeSlotsType, typeof VALUE_AND_MAGNITUDE_COMPONENT_KEY, Theme>;
@@ -0,0 +1,25 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useComponentSize, Typography } from "@m4l/components";
3
+ import { I as IndicatorValueStatusRootStyled, C as ContainerTitleIconStyled, a as IconStyled, b as ContainerValueStatusStyled, c as ContainerValueStyled } from "./slots/IndicatorValueStatusSlots.js";
4
+ import { I as INDICATOR_VALUE_STATUS_CLASSES } from "./constants.js";
5
+ import clsx from "clsx";
6
+ const IndicatorValueStatus = (props) => {
7
+ const { title, iconUrl, value, status, className, dataTestId, size, tooltipContent } = props;
8
+ const { currentSize } = useComponentSize(size);
9
+ const ownerState = {
10
+ size: currentSize
11
+ };
12
+ return /* @__PURE__ */ jsxs(IndicatorValueStatusRootStyled, { className: clsx(className, INDICATOR_VALUE_STATUS_CLASSES.root), "data-testid": dataTestId, variant: "text", children: [
13
+ /* @__PURE__ */ jsxs(ContainerTitleIconStyled, { children: [
14
+ /* @__PURE__ */ jsx(Typography, { variant: "body", color: "text.secondary", ellipsis: true, size: currentSize, skeletonWidth: "80px", children: title }),
15
+ iconUrl && /* @__PURE__ */ jsx(IconStyled, { src: iconUrl, ownerState, color: "text.secondary", tooltipContent })
16
+ ] }),
17
+ /* @__PURE__ */ jsxs(ContainerValueStatusStyled, { children: [
18
+ value && /* @__PURE__ */ jsx(ContainerValueStyled, { ownerState, children: value }),
19
+ status
20
+ ] })
21
+ ] });
22
+ };
23
+ export {
24
+ IndicatorValueStatus as I
25
+ };
@@ -0,0 +1,76 @@
1
+ import { getSizeStyles } from "@m4l/components";
2
+ const indicatorValueStatusStyles = {
3
+ /**
4
+ * The root styles
5
+ */
6
+ root: ({ theme }) => ({
7
+ display: "flex",
8
+ flexDirection: "column",
9
+ alignItems: "flex-start",
10
+ justifyContent: "flex-start",
11
+ width: "fit-content",
12
+ padding: theme.vars.size.baseSpacings.sp3,
13
+ backgroundColor: theme.vars.palette.background.base,
14
+ gap: theme.vars.size.baseSpacings.sp1,
15
+ overflow: "hidden"
16
+ }),
17
+ /**
18
+ * The container title icon styles
19
+ */
20
+ containerTitleIcon: ({ theme }) => ({
21
+ display: "flex",
22
+ alignItems: "flex-start",
23
+ justifyContent: "space-between",
24
+ gap: theme.vars.size.baseSpacings.sp4,
25
+ width: "100%"
26
+ }),
27
+ /**
28
+ * The icon styles
29
+ */
30
+ icon: ({ theme, ownerState }) => ({
31
+ "&&&": {
32
+ ...getSizeStyles(
33
+ theme,
34
+ ownerState?.size || "medium",
35
+ "case",
36
+ (size) => ({
37
+ width: size,
38
+ height: size
39
+ })
40
+ )
41
+ }
42
+ }),
43
+ /**
44
+ * The container value styles
45
+ */
46
+ containerValue: () => ({
47
+ display: "flex",
48
+ width: "100%",
49
+ // gap: theme.vars.size.baseSpacings.sp1,
50
+ // ...getSizeStyles(
51
+ // theme,
52
+ // ownerState?.size || 'medium',
53
+ // 'container',
54
+ // (size) => ({
55
+ // height: size,
56
+ // }),
57
+ // ),
58
+ "& .M4LTypography-root": {
59
+ width: "fit-content"
60
+ }
61
+ }),
62
+ /**
63
+ * The container value status styles
64
+ */
65
+ containerValueStatus: ({ theme }) => ({
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ gap: theme.vars.size.baseSpacings["sp1"],
69
+ height: "fit-content",
70
+ width: "100%",
71
+ overflow: "hidden"
72
+ })
73
+ };
74
+ export {
75
+ indicatorValueStatusStyles as i
76
+ };
@@ -0,0 +1,8 @@
1
+ import { getComponentClasses } from "@m4l/components";
2
+ import { I as IndicatorValueStatusSlots } from "./slots/IndicatorValueStatusEnum.js";
3
+ const INDICATOR_VALUE_STATUS_COMPONENT_KEY = "M4LIndicatorValueStatus";
4
+ const INDICATOR_VALUE_STATUS_CLASSES = getComponentClasses(INDICATOR_VALUE_STATUS_COMPONENT_KEY, IndicatorValueStatusSlots);
5
+ export {
6
+ INDICATOR_VALUE_STATUS_CLASSES as I,
7
+ INDICATOR_VALUE_STATUS_COMPONENT_KEY as a
8
+ };
@@ -0,0 +1,11 @@
1
+ var IndicatorValueStatusSlots = /* @__PURE__ */ ((IndicatorValueStatusSlots2) => {
2
+ IndicatorValueStatusSlots2["root"] = "root";
3
+ IndicatorValueStatusSlots2["containerTitleIcon"] = "containerTitleIcon";
4
+ IndicatorValueStatusSlots2["containerValue"] = "containerValue";
5
+ IndicatorValueStatusSlots2["containerValueStatus"] = "containerValueStatus";
6
+ IndicatorValueStatusSlots2["icon"] = "icon";
7
+ return IndicatorValueStatusSlots2;
8
+ })(IndicatorValueStatusSlots || {});
9
+ export {
10
+ IndicatorValueStatusSlots as I
11
+ };
@@ -0,0 +1,32 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { I as IndicatorValueStatusSlots } from "./IndicatorValueStatusEnum.js";
3
+ import { a as INDICATOR_VALUE_STATUS_COMPONENT_KEY } from "../constants.js";
4
+ import { i as indicatorValueStatusStyles } from "../IndicatorValueStatus.styles.js";
5
+ import { Card, Icon } from "@m4l/components";
6
+ const IndicatorValueStatusRootStyled = styled(Card, {
7
+ name: INDICATOR_VALUE_STATUS_COMPONENT_KEY,
8
+ slot: IndicatorValueStatusSlots.root
9
+ })(indicatorValueStatusStyles?.root);
10
+ const ContainerTitleIconStyled = styled("div", {
11
+ name: INDICATOR_VALUE_STATUS_COMPONENT_KEY,
12
+ slot: IndicatorValueStatusSlots.containerTitleIcon
13
+ })(indicatorValueStatusStyles?.containerTitleIcon);
14
+ const ContainerValueStyled = styled("div", {
15
+ name: INDICATOR_VALUE_STATUS_COMPONENT_KEY,
16
+ slot: IndicatorValueStatusSlots.containerValue
17
+ })(indicatorValueStatusStyles?.containerValue);
18
+ const ContainerValueStatusStyled = styled("div", {
19
+ name: INDICATOR_VALUE_STATUS_COMPONENT_KEY,
20
+ slot: IndicatorValueStatusSlots.containerValueStatus
21
+ })(indicatorValueStatusStyles?.containerValueStatus);
22
+ const IconStyled = styled(Icon, {
23
+ name: INDICATOR_VALUE_STATUS_COMPONENT_KEY,
24
+ slot: IndicatorValueStatusSlots.icon
25
+ })(indicatorValueStatusStyles?.icon);
26
+ export {
27
+ ContainerTitleIconStyled as C,
28
+ IndicatorValueStatusRootStyled as I,
29
+ IconStyled as a,
30
+ ContainerValueStatusStyled as b,
31
+ ContainerValueStyled as c
32
+ };
@@ -32,6 +32,10 @@ export interface IndicatorValueStatusProps {
32
32
  * The size of the indicator value status
33
33
  */
34
34
  size?: Extract<Sizes, 'small' | 'medium'>;
35
+ /**
36
+ * tooltip of the indicator value status
37
+ */
38
+ tooltipContent?: React.ReactNode;
35
39
  }
36
40
  export type IndicatorValueStatusOwnerState = {
37
41
  size: IndicatorValueStatusProps['size'];
@@ -1,2 +1,4 @@
1
1
  export * from './IndicatorBattery';
2
2
  export * from './IndicatorCSQ';
3
+ export * from './IndicatorValueStatus';
4
+ export * from './IndicatorValueAndMagnitude';
@@ -1,33 +1,50 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { T as TileLayers } from "./subcomponents/TileLayers/index.js";
3
3
  import { C as Controls } from "./subcomponents/Controls/index.js";
4
4
  import { L as LayersContainer } from "./subcomponents/LayersContainer/index.js";
5
5
  import { m as mapClasses } from "./classes/index.js";
6
- import { G as GpsMapRootStyled } from "./slots/GpsMapSlots.js";
6
+ import { G as GpsMapRootStyled, a as GpsMapContainerStyled } from "./slots/styled.js";
7
+ import clsx from "clsx";
8
+ import { useCallback } from "react";
9
+ import { u as useMapStore } from "./hooks/useMapStore/index.js";
10
+ import { M as MapEventController } from "./subcomponents/MapEventController/MapEventController.js";
7
11
  function GpsMap(props) {
8
12
  const {
9
- tools,
13
+ GpsTools,
10
14
  center = [6.215749485905093, -75.58622905191254],
11
15
  initalZoom = 16,
12
- maxZoom = 22
16
+ maxZoom = 22,
17
+ children,
18
+ className,
19
+ disableMapEvents = false,
20
+ style
13
21
  } = props;
14
- return /* @__PURE__ */ jsxs(
15
- GpsMapRootStyled,
22
+ const setMapRef = useMapStore((state) => state.mapActions.setMapRef);
23
+ const mapRef = useCallback((newMap) => {
24
+ if (newMap !== null) {
25
+ setMapRef(newMap);
26
+ }
27
+ }, [setMapRef]);
28
+ return /* @__PURE__ */ jsx(GpsMapRootStyled, { className: clsx(mapClasses.root, className), children: /* @__PURE__ */ jsxs(
29
+ GpsMapContainerStyled,
16
30
  {
17
- className: mapClasses.root,
31
+ ref: mapRef,
18
32
  center,
19
33
  zoom: initalZoom,
20
34
  maxZoom,
21
35
  boxZoom: true,
22
36
  preferCanvas: true,
23
37
  zoomControl: false,
38
+ style,
24
39
  children: [
40
+ /* @__PURE__ */ jsx(MapEventController, { disableMapEvents }),
25
41
  /* @__PURE__ */ jsx(TileLayers, {}),
26
42
  /* @__PURE__ */ jsx(LayersContainer, {}),
27
- /* @__PURE__ */ jsx(Controls, { tools })
43
+ /* @__PURE__ */ jsx(Controls, { GpsTools }),
44
+ children
28
45
  ]
29
46
  }
30
- );
47
+ ) });
31
48
  }
32
49
  export {
33
50
  GpsMap as G
@@ -1,9 +1,20 @@
1
- import "leaflet/dist/leaflet.css";
1
+ import { leafletAllStyles } from "./leaflet.styles";
2
+ import { m as mapSourcesToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js";
3
+ import { m as mapLayersToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js";
4
+ import { m as mapMeasureToolStyles, g as getMapContainerMeasureToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js";
2
5
  const mapStyles = {
3
6
  /**
4
7
  * TODO: Documentar
5
8
  */
6
9
  root: () => ({
10
+ ...leafletAllStyles,
11
+ width: "100%",
12
+ height: "100%"
13
+ }),
14
+ /**
15
+ * Estilos del contenedor del mapa
16
+ */
17
+ mapContainer: ({ theme }) => ({
7
18
  //leaflet_css,
8
19
  width: "100%",
9
20
  height: "100%",
@@ -22,17 +33,28 @@ const mapStyles = {
22
33
  * Control superior derecho
23
34
  */
24
35
  "& .M4LMap-topRigthToolsRoot": {
25
- backgroundColor: "blue",
36
+ padding: theme.vars.size.baseSpacings.sp1,
37
+ gap: theme.vars.size.baseSpacings.sp1,
38
+ borderRadius: theme.vars.size.borderRadius.r2,
39
+ backgroundColor: "white",
26
40
  //Por cambiar
27
41
  display: "flex",
42
+ flexDirection: "column",
28
43
  right: 0,
29
- position: "absolute",
30
- /**
31
- * Zoom buttons
32
- */
33
- "& .M4LMap-zoomButtons": {
34
- display: "flex"
35
- }
44
+ position: "absolute"
45
+ },
46
+ "& .M4LMap-bottomRightToolsRoot": {
47
+ padding: theme.vars.size.baseSpacings.sp1,
48
+ gap: theme.vars.size.baseSpacings.sp1,
49
+ borderRadius: theme.vars.size.borderRadius.r2,
50
+ backgroundColor: "white",
51
+ //Por cambiar
52
+ display: "flex",
53
+ flexDirection: "column",
54
+ right: 0,
55
+ bottom: 0,
56
+ marginBottom: "24px !important",
57
+ position: "absolute"
36
58
  },
37
59
  /**
38
60
  * Marcas
@@ -65,79 +87,8 @@ const mapStyles = {
65
87
  overflow: "hidden",
66
88
  textOverflow: "ellipsis"
67
89
  },
68
- //Herramienta de medición Formulario
69
- "& .M4LMap-meaureToolRoot": {
70
- backgroundColor: "green",
71
- //Por cambiar
72
- height: "100%",
73
- width: "100%"
74
- },
75
- "& .M4LMap-measureToolFormValue": {
76
- justifyContent: "center"
77
- },
78
- "& .M4LMap-measureToolFormValueDistance": {
79
- border: "1px solid white",
80
- margin: "0 5px",
81
- fontWeight: 800,
82
- //Por cambiar
83
- fontSize: "large"
84
- //Por cambiar
85
- },
86
90
  //Marker measure Point Icon
87
- "& .M4LMap-measureMarkerRoot": {
88
- "--color": "green"
89
- },
90
- "& .M4LMap-measureMarkerContainer": {
91
- position: "relative",
92
- cursor: "pointer"
93
- },
94
- "& .M4LMap-measureMarkerContainerRhomb": {
95
- position: "absolute",
96
- filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
97
- width: "31px",
98
- height: "31px",
99
- borderRadius: "50% 50% 50% 0",
100
- border: "4px solid var(--color)",
101
- backgroundColor: "var(--color)",
102
- transform: "rotate(-45deg)"
103
- },
104
- "& .M4LMap-measureMarkerContainerSlot": {
105
- position: "absolute",
106
- background: "#fff",
107
- borderRadius: "50%",
108
- overflow: "hidden",
109
- top: "3px",
110
- left: "3px",
111
- width: "25px",
112
- height: "24px"
113
- },
114
- "& .M4LMap-measureMarkerContainerSlotNumber": {
115
- fontSize: "14px",
116
- fontWeight: "600",
117
- textAlign: "center",
118
- marginTop: "1px",
119
- color: "black"
120
- },
121
- //Marker Point Label
122
- "& .M4LMap-measureLabelMarkerRoot": {
123
- "--color": "yellow"
124
- },
125
- "& .M4LMap-measureLabelMarkerContainer": {
126
- backgroundColor: "var(--color)",
127
- border: "1px solid gray",
128
- color: "#fff",
129
- width: "80px",
130
- marginLeft: "15px",
131
- marginTop: "15px"
132
- },
133
- "& .M4LMap-measureLabelMarkerDistance": {
134
- color: "gray"
135
- },
136
- "& .M4LMap-measureLabelMarkerRemove": {
137
- color: "blue"
138
- },
139
- //Cluster Markers
140
- //Animacion
91
+ ...getMapContainerMeasureToolStyles(theme),
141
92
  "& .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow": {
142
93
  // '-webkit-transition': '-webkit-transform 0.3s ease-out, opacity 0.3s ease-in',
143
94
  // '-moz-transition': '-moz-transform 0.3s ease-out, opacity 0.3s ease-in',
@@ -207,21 +158,58 @@ const mapStyles = {
207
158
  //Cluster Markers
208
159
  "& .marker-cluster span": {
209
160
  lineHeight: "30px"
161
+ }
162
+ }),
163
+ /**
164
+ * Botón de zoom del mapa
165
+ */
166
+ zoomButton: ({ theme: _theme }) => ({}),
167
+ /**
168
+ * Estilos del contenedor de las herramientas
169
+ */
170
+ controlRightToolsRoot: ({ theme }) => ({
171
+ padding: theme.vars.size.baseSpacings.sp1,
172
+ gap: theme.vars.size.baseSpacings.sp1,
173
+ borderRadius: theme.vars.size.borderRadius.r2,
174
+ backgroundColor: theme.vars.palette.background.base,
175
+ //Por cambiar
176
+ display: "flex",
177
+ flexDirection: "column",
178
+ right: 0,
179
+ position: "absolute"
180
+ }),
181
+ /**
182
+ * Estilos del contenedor de las herramientas
183
+ */
184
+ controlLeftToolsRoot: ({ theme }) => ({
185
+ padding: theme.vars.size.baseSpacings.sp1,
186
+ gap: theme.vars.size.baseSpacings.sp1,
187
+ borderRadius: theme.vars.size.borderRadius.r2,
188
+ backgroundColor: theme.vars.palette.background.base,
189
+ //Por cambiar
190
+ display: "flex",
191
+ flexDirection: "column",
192
+ left: 0,
193
+ position: "absolute"
194
+ }),
195
+ /**
196
+ * Estilos del contenedor de los popups
197
+ */
198
+ popupsViewer: ({ theme }) => ({
199
+ "& .M4LWindowBase-root": {
200
+ borderColor: `${theme.vars.palette.border.disabled} !important`
201
+ },
202
+ "& .M4LWindowBase-root .M4LWindowBase-headerContentWindowBase .M4LIcon-icon": {
203
+ backgroundColor: `${theme.vars.palette.text.primary} !important`
210
204
  },
211
- // '& .xxxxx': {
212
- // // color: theme.vars.palette.state.error.normal,
213
- // '& .M4LIcon-root .M4LIcon-icon': {
214
- // backgroundColor: theme.vars.palette.state.error.normal,
215
- // },
216
- // },
217
- "& .leaflet-control-scale-line": {
218
- color: "red"
219
- //Ejemplo de como estilar el control de scala
205
+ "& .M4LWindowBase-root .M4LWindowBase-headerContentWindowBase .M4LTypography-root": {
206
+ color: `${theme.vars.palette.text.primary} !important`
220
207
  }
221
208
  }),
222
- popupGpsDevice: () => ({}),
223
- popupGpsDeviceHeader: () => ({}),
224
- popupGpsDeviceContent: () => ({})
209
+ // Concatenar estilos de MapSourcesTool
210
+ ...mapSourcesToolStyles,
211
+ ...mapLayersToolStyles,
212
+ ...mapMeasureToolStyles
225
213
  };
226
214
  export {
227
215
  mapStyles as m
@@ -4,5 +4,5 @@ export declare const mapClasses: MapClasses;
4
4
  /**
5
5
  * TODO: Documentar
6
6
  */
7
- export declare const useMapUtilityClasses: (_ownerState: OwnerState) => Record<"root" | "active" | "disabled" | "topLeftToolsRoot" | "topRigthToolsRoot" | "zoomButtons" | "markerLayerRoot" | "markerLayerIcon" | "markerLayerLabel" | "featureLabel" | "meaureToolRoot" | "measureToolFormValue" | "measureToolFormValueDistance" | "measureToolFormValueSymbol" | "measureToolLabel" | "meausureToolLabelDistance" | "meausureToolLabelSymbol" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove" | "mapSourcesPopoverRoot" | "mapSourcesRoot" | "mapSourcesOption" | "mapSourcesOptionIconLabel" | "mapSourcesOptionRoadOptions" | "mapSourcesOptionRoadOptionsCheck" | "layersPopoverRoot" | "markerLayerLabelInner", string>;
7
+ export declare const useMapUtilityClasses: (_ownerState: OwnerState) => Record<"active" | "disabled" | "root" | "topLeftToolsRoot" | "topRigthToolsRoot" | "zoomButtons" | "markerLayerRoot" | "markerLayerIcon" | "markerLayerLabel" | "featureLabel" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerSvgRoot" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove" | "layersPopoverRoot" | "markerLayerLabelInner", string>;
8
8
  export type Classes = ReturnType<typeof useMapUtilityClasses>;