@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,9 @@
1
+ import { ButtonToolProps } from './types';
2
+ /**
3
+ * Boton de herramienta, se encarga de renderizar el boton de herramienta y gestionar el popup asociado.
4
+ * - Boton de herramientas de GPS (Opcional)
5
+ * - Boton de herramientas de medición
6
+ * @param props
7
+ * @returns
8
+ */
9
+ export declare function ButtonTool(props: ButtonToolProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,24 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useEnvironment } from "@m4l/core";
3
+ import { ToggleIconButton } from "@m4l/components";
4
+ import { u as useTool } from "../../hooks/useTool.js";
5
+ function ButtonTool(props) {
6
+ const { ToolComponent, iconId } = props;
7
+ const { host_static_assets, environment_assets } = useEnvironment();
8
+ const { onToolClick, isDisabled, isToggled } = useTool(props);
9
+ if (!ToolComponent) {
10
+ return null;
11
+ }
12
+ return /* @__PURE__ */ jsx(
13
+ ToggleIconButton,
14
+ {
15
+ isToggled,
16
+ disabled: isDisabled,
17
+ onToggle: onToolClick,
18
+ icon: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${iconId}`
19
+ }
20
+ );
21
+ }
22
+ export {
23
+ ButtonTool as B
24
+ };
@@ -0,0 +1,2 @@
1
+ import { useToolProps } from '../../hooks/types';
2
+ export type ButtonToolProps = useToolProps;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * TODO: Documentar
3
+ */
4
+ export declare function MapLayersTool(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { u as useMapLayersTool } from "./hooks/useMapLayersTool.js";
3
+ import { u as useDisableMapEventsOnMouseOver } from "../../../../../../hooks/useDisableMapEventsOnMouseOver/index.js";
4
+ import { useRef } from "react";
5
+ import { G as GpsMapLayersToolRootStyled } from "./slots/styled.js";
6
+ import { M as MapLayerRow } from "./subcomponents/MapLayerRow.js";
7
+ function MapLayersTool() {
8
+ const { layers, setCheckedLayers, removeLayer } = useMapLayersTool();
9
+ const divRef = useRef(null);
10
+ useDisableMapEventsOnMouseOver(divRef.current);
11
+ return /* @__PURE__ */ jsx(GpsMapLayersToolRootStyled, { ref: divRef, children: layers.map((layer) => /* @__PURE__ */ jsx(
12
+ MapLayerRow,
13
+ {
14
+ id: layer.id,
15
+ name: layer.name,
16
+ autoFocusAble: layer.autoFocusAble,
17
+ clusterAble: layer.clusterAble,
18
+ deleteAble: layer.deleteAble,
19
+ visible: layer.visible,
20
+ cluster: layer.cluster,
21
+ autoFocus: layer.autoFocus,
22
+ setCheckedLayers,
23
+ removeLayer
24
+ },
25
+ layer.id
26
+ )) });
27
+ }
28
+ export {
29
+ MapLayersTool as M
30
+ };
@@ -0,0 +1,2 @@
1
+ import { MapLayersToolStyles } from './types';
2
+ export declare const mapLayersToolStyles: MapLayersToolStyles;
@@ -0,0 +1,45 @@
1
+ const mapLayersToolStyles = {
2
+ /**
3
+ * Estilos del componente MapSourcesTool
4
+ */
5
+ mapLayersToolRoot: ({ theme }) => ({
6
+ display: "flex",
7
+ flexDirection: "column",
8
+ gap: theme.vars.size.baseSpacings.sp3,
9
+ position: "absolute",
10
+ left: "-16px",
11
+ top: "-16px",
12
+ right: "-16px",
13
+ bottom: "-16px",
14
+ overflowX: "hidden",
15
+ overflowY: "auto",
16
+ margin: theme.vars.size.baseSpacings.sp3
17
+ }),
18
+ /**
19
+ * Estilos del componente MapLayersToolHeader
20
+ */
21
+ mapLayersToolRowContainer: ({ theme }) => ({
22
+ display: "flex",
23
+ alignItems: "center",
24
+ gap: theme.vars.size.baseSpacings.sp2
25
+ }),
26
+ /**
27
+ * Estilos del componente MapLayersToolRowCheckBoxNameContainer
28
+ */
29
+ mapLayersToolRowCheckBoxNameContainer: () => ({
30
+ display: "flex",
31
+ alignItems: "center",
32
+ flexGrow: 1
33
+ }),
34
+ /**
35
+ * Estilos del componente MapLayersToolRowOptionsContainer
36
+ */
37
+ mapLayersToolRowOptionsContainer: ({ theme }) => ({
38
+ display: "flex",
39
+ alignItems: "center",
40
+ gap: theme.vars.size.baseSpacings.sp2
41
+ })
42
+ };
43
+ export {
44
+ mapLayersToolStyles as m
45
+ };
@@ -0,0 +1,11 @@
1
+ import { LayerStore } from '../../../../../../../contexts/MapContext/types';
2
+ export type LayerId = string;
3
+ /**
4
+ * Modelo de datos proveniente del endpoint get de geocercas
5
+ */
6
+ export interface LayersListModel extends Pick<LayerStore, 'name' | 'clusterAble' | 'autoFocusAble' | 'deleteAble' | 'visible' | 'autoFocus' | 'cluster'> {
7
+ /**
8
+ * id de la geocerca
9
+ */
10
+ id: LayerId;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { LayersListModel } from './types';
2
+ /**
3
+ * Hook que contiene la logica de la tabla de capas
4
+ */
5
+ export declare function useMapLayersTool(): {
6
+ layers: LayersListModel[];
7
+ setCheckedLayers: (layerId: string, checkedNameProp: import('../../../../../../../contexts/MapContext/types').CheckedNameProp, newValue: boolean) => void;
8
+ removeLayer: (layerId: string) => void;
9
+ };
@@ -0,0 +1,37 @@
1
+ import { u as useMapStore } from "../../../../../../../hooks/useMapStore/index.js";
2
+ import { deepShallow } from "@m4l/components";
3
+ function useMapLayersTool() {
4
+ const { layers, setCheckedLayers, removeLayer } = useMapStore(
5
+ (state) => {
6
+ const arrLayers = [];
7
+ state.layersIds.forEach((layerId) => {
8
+ if (state.hashLayers[layerId]) {
9
+ arrLayers.push({
10
+ id: layerId,
11
+ name: state.hashLayers[layerId].name || `*${layerId}`,
12
+ clusterAble: state.hashLayers[layerId].clusterAble || false,
13
+ deleteAble: state.hashLayers[layerId].deleteAble || false,
14
+ autoFocusAble: state.hashLayers[layerId].autoFocusAble || false,
15
+ visible: state.hashLayers[layerId].visible || false,
16
+ autoFocus: state.hashLayers[layerId].autoFocus || false,
17
+ cluster: state.hashLayers[layerId].cluster || false
18
+ });
19
+ }
20
+ });
21
+ return {
22
+ layers: arrLayers,
23
+ setCheckedLayers: state.mapActions.setCheckedLayers,
24
+ removeLayer: state.mapActions.removeLayer
25
+ };
26
+ },
27
+ deepShallow
28
+ );
29
+ return {
30
+ layers,
31
+ setCheckedLayers,
32
+ removeLayer
33
+ };
34
+ }
35
+ export {
36
+ useMapLayersTool as u
37
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum MapSlotsLayersTool {
2
+ mapLayersToolRoot = "mapLayersToolRoot",
3
+ mapLayersToolRowContainer = "mapLayersToolRowContainer",
4
+ mapLayersToolRowCheckBoxNameContainer = "mapLayersToolRowCheckBoxNameContainer",
5
+ mapLayersToolRowOptionsContainer = "mapLayersToolRowOptionsContainer"
6
+ }
@@ -0,0 +1,10 @@
1
+ var MapSlotsLayersTool = /* @__PURE__ */ ((MapSlotsLayersTool2) => {
2
+ MapSlotsLayersTool2["mapLayersToolRoot"] = "mapLayersToolRoot";
3
+ MapSlotsLayersTool2["mapLayersToolRowContainer"] = "mapLayersToolRowContainer";
4
+ MapSlotsLayersTool2["mapLayersToolRowCheckBoxNameContainer"] = "mapLayersToolRowCheckBoxNameContainer";
5
+ MapSlotsLayersTool2["mapLayersToolRowOptionsContainer"] = "mapLayersToolRowOptionsContainer";
6
+ return MapSlotsLayersTool2;
7
+ })(MapSlotsLayersTool || {});
8
+ export {
9
+ MapSlotsLayersTool as M
10
+ };
@@ -0,0 +1,12 @@
1
+ export declare const GpsMapLayersToolRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const GpsMapLayersToolRowContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ export declare const GpsMapLayersToolRowCheckBoxNameContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
9
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
+ export declare const GpsMapLayersToolRowOptionsContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
12
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,26 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { M as MAP_COMPONET_KEY_COMPONENT } from "../../../../../../../constants.js";
3
+ import { m as mapLayersToolStyles } from "../MapLayersTool.styles.js";
4
+ import { M as MapSlotsLayersTool } from "./slots.js";
5
+ const GpsMapLayersToolRootStyled = styled("div", {
6
+ name: MAP_COMPONET_KEY_COMPONENT,
7
+ slot: MapSlotsLayersTool.mapLayersToolRoot
8
+ })(mapLayersToolStyles?.mapLayersToolRoot);
9
+ const GpsMapLayersToolRowContainerStyled = styled("div", {
10
+ name: MAP_COMPONET_KEY_COMPONENT,
11
+ slot: MapSlotsLayersTool.mapLayersToolRowContainer
12
+ })(mapLayersToolStyles?.mapLayersToolRowContainer);
13
+ const GpsMapLayersToolRowCheckBoxNameContainerStyled = styled("div", {
14
+ name: MAP_COMPONET_KEY_COMPONENT,
15
+ slot: MapSlotsLayersTool.mapLayersToolRowCheckBoxNameContainer
16
+ })(mapLayersToolStyles?.mapLayersToolRowCheckBoxNameContainer);
17
+ const GpsMapLayersToolRowOptionsContainerStyled = styled("div", {
18
+ name: MAP_COMPONET_KEY_COMPONENT,
19
+ slot: MapSlotsLayersTool.mapLayersToolRowOptionsContainer
20
+ })(mapLayersToolStyles?.mapLayersToolRowOptionsContainer);
21
+ export {
22
+ GpsMapLayersToolRootStyled as G,
23
+ GpsMapLayersToolRowContainerStyled as a,
24
+ GpsMapLayersToolRowCheckBoxNameContainerStyled as b,
25
+ GpsMapLayersToolRowOptionsContainerStyled as c
26
+ };
@@ -0,0 +1,5 @@
1
+ import { MapLayerRowProps } from './types';
2
+ /**
3
+ * MapLayerRow componente para mostrar una fila de capa
4
+ */
5
+ export declare function MapLayerRow(props: MapLayerRowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,71 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { CheckBox, Typography, ToggleIconButton, IconButton } from "@m4l/components";
3
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
+ import { M as MAP_ICONS } from "../../../../../../../icons.js";
5
+ import { M as MAP_DICCTIONARY } from "../../../../../../../dictionary.js";
6
+ import { a as GpsMapLayersToolRowContainerStyled, b as GpsMapLayersToolRowCheckBoxNameContainerStyled, c as GpsMapLayersToolRowOptionsContainerStyled } from "../slots/styled.js";
7
+ function MapLayerRow(props) {
8
+ const {
9
+ id,
10
+ name,
11
+ autoFocusAble,
12
+ clusterAble,
13
+ deleteAble,
14
+ visible,
15
+ cluster,
16
+ autoFocus,
17
+ setCheckedLayers,
18
+ removeLayer
19
+ } = props;
20
+ const { getLabel } = useModuleDictionary();
21
+ const { host_static_assets, environment_assets } = useEnvironment();
22
+ return /* @__PURE__ */ jsxs(GpsMapLayersToolRowContainerStyled, { children: [
23
+ /* @__PURE__ */ jsxs(GpsMapLayersToolRowCheckBoxNameContainerStyled, { children: [
24
+ /* @__PURE__ */ jsx(CheckBox, { checked: visible, onClick: () => {
25
+ setCheckedLayers(id, "visible", !visible);
26
+ } }),
27
+ /* @__PURE__ */ jsx(Typography, { children: name })
28
+ ] }),
29
+ /* @__PURE__ */ jsxs(GpsMapLayersToolRowOptionsContainerStyled, { children: [
30
+ /* @__PURE__ */ jsx(
31
+ ToggleIconButton,
32
+ {
33
+ disabled: !clusterAble,
34
+ isToggled: cluster,
35
+ onToggle: () => {
36
+ setCheckedLayers(id, "cluster", !cluster);
37
+ },
38
+ tooltip: getLabel(MAP_DICCTIONARY.LABEL_LAYER_CLUSTER),
39
+ src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_CLUSTER}`
40
+ }
41
+ ),
42
+ /* @__PURE__ */ jsx(
43
+ ToggleIconButton,
44
+ {
45
+ disabled: !autoFocusAble,
46
+ isToggled: autoFocus,
47
+ onToggle: () => {
48
+ setCheckedLayers(id, "autoFocus", !autoFocus);
49
+ },
50
+ tooltip: getLabel(MAP_DICCTIONARY.LABEL_LAYER_AUTOFOCUS),
51
+ src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_AUTOFOCUS}`
52
+ }
53
+ ),
54
+ /* @__PURE__ */ jsx(
55
+ IconButton,
56
+ {
57
+ disabled: !deleteAble,
58
+ color: "error",
59
+ onClick: () => {
60
+ removeLayer(id);
61
+ },
62
+ tooltip: getLabel(MAP_DICCTIONARY.LABEL_LAYER_DELETE),
63
+ src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_DELETE}`
64
+ }
65
+ )
66
+ ] })
67
+ ] });
68
+ }
69
+ export {
70
+ MapLayerRow as M
71
+ };
@@ -0,0 +1,6 @@
1
+ import { CheckedNameProp, LayerStore } from '../../../../../../../contexts/MapContext/types';
2
+ export interface MapLayerRowProps extends Pick<LayerStore, 'name' | 'clusterAble' | 'autoFocusAble' | 'deleteAble' | 'visible' | 'autoFocus' | 'cluster'> {
3
+ id: string;
4
+ setCheckedLayers: (layerId: string, checkedNameSet: CheckedNameProp, newValue: boolean) => void;
5
+ removeLayer: (layerId: string) => void;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import { MAP_COMPONET_KEY_COMPONENT } from '../../../../../../constants';
3
+ import { M4LOverridesStyleRules } from '@m4l/components';
4
+ import { MapSlotsLayersTool } from './slots/slots';
5
+ export type MapLayersToolOwnerState = {
6
+ visible: boolean;
7
+ };
8
+ export type MapLayersToolSlotsType = keyof typeof MapSlotsLayersTool;
9
+ export type MapLayersToolStyles = M4LOverridesStyleRules<MapLayersToolSlotsType, typeof MAP_COMPONET_KEY_COMPONENT, Theme>;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * TODO: Documentar
2
+ * MapSourcesTool componente encargado de renderizar la herramienta de fuentes de mapas
3
3
  */
4
4
  export declare function MapSourcesTool(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Image, Typography } from "@m4l/components";
3
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
+ import { G as GpsMapSourcesToolRootStyled, a as GpsMapSourcesToolContentGroupStyled, b as GpsMapSourcesToolContentGroupHeaderStyled } from "./slots/styled.js";
5
+ import { u as useMapSourcesTool } from "./hooks/useMapSourcesTool.js";
6
+ import { M as MapSourceCard } from "./subcomponents/MapSourceCard.js";
7
+ function MapSourcesTool() {
8
+ const { getLabel } = useModuleDictionary();
9
+ const { host_static_assets, environment_assets } = useEnvironment();
10
+ const { currentMapSourceLayer, mapSources, setCurrentMapSourceLayer, setMapSourceLayerRoadOptions } = useMapSourcesTool();
11
+ return /* @__PURE__ */ jsx(GpsMapSourcesToolRootStyled, { children: mapSources.map((source, index) => /* @__PURE__ */ jsxs(
12
+ GpsMapSourcesToolContentGroupStyled,
13
+ {
14
+ ownerState: { isLast: index === mapSources.length - 1 },
15
+ children: [
16
+ /* @__PURE__ */ jsxs(GpsMapSourcesToolContentGroupHeaderStyled, { children: [
17
+ /* @__PURE__ */ jsx(Image, { src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/images/${source.imageId}`, height: 16, width: 16 }),
18
+ /* @__PURE__ */ jsx(Typography, { ellipsis: true, color: "text.secondary", children: getLabel(source.dictionaryId) })
19
+ ] }),
20
+ source.layers.map((layer) => /* @__PURE__ */ jsx(
21
+ MapSourceCard,
22
+ {
23
+ mapSourceId: source.id,
24
+ selected: source.id === currentMapSourceLayer.mapSourceId && layer.id === currentMapSourceLayer.mapSourceLayerId,
25
+ setCurrentMapSourceLayer,
26
+ setMapSourceLayerRoadOptions,
27
+ ...layer
28
+ },
29
+ layer.id
30
+ ))
31
+ ]
32
+ },
33
+ source.id
34
+ )) });
35
+ }
36
+ export {
37
+ MapSourcesTool as M
38
+ };
@@ -0,0 +1,2 @@
1
+ import { MapSourcesToolStyles } from './types';
2
+ export declare const mapSourcesToolStyles: MapSourcesToolStyles;
@@ -0,0 +1,87 @@
1
+ import { getSizeStyles } from "@m4l/components";
2
+ const mapSourcesToolStyles = {
3
+ /**
4
+ * Estilos del componente MapSourcesTool
5
+ */
6
+ mapSourcesToolRoot: ({ theme }) => ({
7
+ display: "flex",
8
+ flexDirection: "column",
9
+ gap: theme.vars.size.baseSpacings.sp2,
10
+ position: "absolute",
11
+ left: "-16px",
12
+ top: "-16px",
13
+ right: "-16px",
14
+ bottom: "-16px",
15
+ overflowX: "hidden",
16
+ overflowY: "auto",
17
+ margin: theme.vars.size.baseSpacings.sp3
18
+ }),
19
+ /**
20
+ * Estilos del componente MapSourcesToolHeader
21
+ */
22
+ mapSourcesToolHeader: ({ theme }) => ({
23
+ display: "flex",
24
+ alignItems: "center",
25
+ gap: theme.vars.size.baseSpacings.sp2
26
+ }),
27
+ /**
28
+ * Estilos del componente MapSourcesToolGroup
29
+ */
30
+ mapSourcesToolGroup: ({ theme, ownerState }) => ({
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ padding: theme.vars.size.baseSpacings.sp2,
34
+ // paddingBottom: theme.vars.size.baseSpacings.sp4,
35
+ // Solo aplicar borderBottom si no es el último elemento
36
+ ...ownerState?.isLast === false && {
37
+ borderBottom: `1px solid ${theme.vars.palette.border.secondary}`
38
+ }
39
+ }),
40
+ /**
41
+ * Estilos del componente MapSourcesToolGroupHeader
42
+ */
43
+ mapSourcesToolGroupHeader: ({ theme }) => ({
44
+ display: "flex",
45
+ alignItems: "center",
46
+ gap: theme.vars.size.baseSpacings.sp2,
47
+ paddingBottom: theme.vars.size.baseSpacings.sp2,
48
+ overflow: "hidden"
49
+ }),
50
+ /**
51
+ * Estilos del contenedor de la etiqueta y el icono
52
+ */
53
+ mapSourceToolCardIconTitleContainer: ({ theme }) => ({
54
+ display: "flex",
55
+ alignItems: "center",
56
+ gap: theme.vars.size.baseSpacings.sp2,
57
+ flexGrow: 1,
58
+ overflow: "hidden"
59
+ }),
60
+ /**
61
+ * Estilos del icono
62
+ */
63
+ mapSourceToolCardIcon: ({ theme }) => ({
64
+ ...getSizeStyles(
65
+ theme,
66
+ "medium",
67
+ "case",
68
+ (size) => ({
69
+ width: size,
70
+ height: size
71
+ })
72
+ )
73
+ }),
74
+ /**
75
+ * Estilos del contenedor de las opciones de carretera
76
+ */
77
+ mapSourceToolCardRoadOptionsContainer: ({ theme }) => ({
78
+ display: "flex",
79
+ alignItems: "center",
80
+ paddingLeft: theme.vars.size.baseSpacings.sp2,
81
+ gap: theme.vars.size.baseSpacings.sp2,
82
+ borderLeft: `1px solid ${theme.vars.palette.border.secondary}`
83
+ })
84
+ };
85
+ export {
86
+ mapSourcesToolStyles as m
87
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * TODO: Documentar
3
+ */
4
+ export declare function useMapSourcesTool(): {
5
+ setCurrentMapSourceLayer: (mapSourceType: import('../../../../../../../contexts/MapContext/types').MapTileSourceId, newId: import('../../../../../../../contexts/MapContext/types').MapTileSourceLayerId) => void;
6
+ setMapSourceLayerRoadOptions: (mapSourceType: import('../../../../../../../contexts/MapContext/types').MapTileSourceId, mapSourceLayerId: import('../../../../../../../contexts/MapContext/types').MapTileSourceLayerId, partialRoadOptions: Partial<import('../../../../../../../contexts/MapContext/types').MapSourceLayerRoadOptionsType>) => void;
7
+ mapSources: import('../../../../../../../contexts/MapContext/types').MapTileSource[];
8
+ currentMapSourceLayer: {
9
+ mapSourceId: import('../../../../../../../contexts/MapContext/types').MapTileSourceId;
10
+ mapSourceLayerId: import('../../../../../../../contexts/MapContext/types').MapTileSourceLayerId;
11
+ };
12
+ };
@@ -0,0 +1,22 @@
1
+ import { shallow } from "zustand/shallow";
2
+ import { u as useMapStore } from "../../../../../../../hooks/useMapStore/index.js";
3
+ import { deepShallow } from "@m4l/components";
4
+ function useMapSourcesTool() {
5
+ const { mapSources, currentMapSourceLayer } = useMapStore((state) => {
6
+ return { mapSources: state.mapSources, currentMapSourceLayer: state.currentMapSourceLayer };
7
+ }, deepShallow);
8
+ const { setCurrentMapSourceLayer, setMapSourceLayerRoadOptions } = useMapStore(
9
+ (state) => state.mapActions,
10
+ shallow
11
+ );
12
+ return {
13
+ setCurrentMapSourceLayer,
14
+ setMapSourceLayerRoadOptions,
15
+ mapSources,
16
+ // Retornar grupos en lugar de fuentes individuales
17
+ currentMapSourceLayer
18
+ };
19
+ }
20
+ export {
21
+ useMapSourcesTool as u
22
+ };
@@ -0,0 +1,9 @@
1
+ export declare enum MapSlotsSourcesTool {
2
+ mapSourcesToolRoot = "mapSourcesToolRoot",
3
+ mapSourcesToolHeader = "mapSourcesToolHeader",
4
+ mapSourcesToolGroup = "mapSourcesToolGroup",
5
+ mapSourcesToolGroupHeader = "mapSourcesToolGroupHeader",
6
+ mapSourceToolCardIconTitleContainer = "mapSourceToolCardIconTitleContainer",
7
+ mapSourceToolCardIcon = "mapSourceToolCardIcon",
8
+ mapSourceToolCardRoadOptionsContainer = "mapSourceToolCardRoadOptionsContainer"
9
+ }
@@ -0,0 +1,13 @@
1
+ var MapSlotsSourcesTool = /* @__PURE__ */ ((MapSlotsSourcesTool2) => {
2
+ MapSlotsSourcesTool2["mapSourcesToolRoot"] = "mapSourcesToolRoot";
3
+ MapSlotsSourcesTool2["mapSourcesToolHeader"] = "mapSourcesToolHeader";
4
+ MapSlotsSourcesTool2["mapSourcesToolGroup"] = "mapSourcesToolGroup";
5
+ MapSlotsSourcesTool2["mapSourcesToolGroupHeader"] = "mapSourcesToolGroupHeader";
6
+ MapSlotsSourcesTool2["mapSourceToolCardIconTitleContainer"] = "mapSourceToolCardIconTitleContainer";
7
+ MapSlotsSourcesTool2["mapSourceToolCardIcon"] = "mapSourceToolCardIcon";
8
+ MapSlotsSourcesTool2["mapSourceToolCardRoadOptionsContainer"] = "mapSourceToolCardRoadOptionsContainer";
9
+ return MapSlotsSourcesTool2;
10
+ })(MapSlotsSourcesTool || {});
11
+ export {
12
+ MapSlotsSourcesTool as M
13
+ };
@@ -0,0 +1,21 @@
1
+ export declare const GpsMapSourcesToolRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const GpsMapSourcesToolHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ export declare const GpsMapSourcesToolContentGroupStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
9
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
10
+ export declare const GpsMapSourcesToolContentGroupHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
12
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
13
+ export declare const GpsMapSourceToolCardIconTitleContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
14
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
16
+ export declare const GpsMapSourceToolCardIconStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components').IconProps, keyof import('@m4l/components').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
17
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
18
+ }, {}, {}>;
19
+ export declare const GpsMapSourceToolCardRoadOptionsContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
20
+ ownerState?: (Partial<import('../../../../../../../types').MapOwnerState> & Record<string, unknown>) | undefined;
21
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,41 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { M as MAP_COMPONET_KEY_COMPONENT } from "../../../../../../../constants.js";
3
+ import { m as mapSourcesToolStyles } from "../MapSourcesTool.styles.js";
4
+ import { M as MapSlotsSourcesTool } from "./slots.js";
5
+ import { Icon } from "@m4l/components";
6
+ const GpsMapSourcesToolRootStyled = styled("div", {
7
+ name: MAP_COMPONET_KEY_COMPONENT,
8
+ slot: MapSlotsSourcesTool.mapSourcesToolRoot
9
+ })(mapSourcesToolStyles?.mapSourcesToolRoot);
10
+ styled("div", {
11
+ name: MAP_COMPONET_KEY_COMPONENT,
12
+ slot: MapSlotsSourcesTool.mapSourcesToolHeader
13
+ })(mapSourcesToolStyles?.mapSourcesToolHeader);
14
+ const GpsMapSourcesToolContentGroupStyled = styled("div", {
15
+ name: MAP_COMPONET_KEY_COMPONENT,
16
+ slot: MapSlotsSourcesTool.mapSourcesToolGroup
17
+ })(mapSourcesToolStyles?.mapSourcesToolGroup);
18
+ const GpsMapSourcesToolContentGroupHeaderStyled = styled("div", {
19
+ name: MAP_COMPONET_KEY_COMPONENT,
20
+ slot: MapSlotsSourcesTool.mapSourcesToolGroupHeader
21
+ })(mapSourcesToolStyles?.mapSourcesToolGroupHeader);
22
+ const GpsMapSourceToolCardIconTitleContainerStyled = styled("div", {
23
+ name: MAP_COMPONET_KEY_COMPONENT,
24
+ slot: MapSlotsSourcesTool.mapSourceToolCardIconTitleContainer
25
+ })(mapSourcesToolStyles?.mapSourceToolCardIconTitleContainer);
26
+ const GpsMapSourceToolCardIconStyled = styled(Icon, {
27
+ name: MAP_COMPONET_KEY_COMPONENT,
28
+ slot: MapSlotsSourcesTool.mapSourceToolCardIcon
29
+ })(mapSourcesToolStyles?.mapSourceToolCardIcon);
30
+ const GpsMapSourceToolCardRoadOptionsContainerStyled = styled("div", {
31
+ name: MAP_COMPONET_KEY_COMPONENT,
32
+ slot: MapSlotsSourcesTool.mapSourceToolCardRoadOptionsContainer
33
+ })(mapSourcesToolStyles?.mapSourceToolCardRoadOptionsContainer);
34
+ export {
35
+ GpsMapSourcesToolRootStyled as G,
36
+ GpsMapSourcesToolContentGroupStyled as a,
37
+ GpsMapSourcesToolContentGroupHeaderStyled as b,
38
+ GpsMapSourceToolCardIconTitleContainerStyled as c,
39
+ GpsMapSourceToolCardIconStyled as d,
40
+ GpsMapSourceToolCardRoadOptionsContainerStyled as e
41
+ };
@@ -0,0 +1,2 @@
1
+ import { MapTileSource } from '../../../../../../../contexts/MapContext/types';
2
+ export declare const TILE_LAYER_BING: MapTileSource;