@m4l/gclick 0.1.0 → 0.2.0-JAEBeta.1

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 (268) 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/Leaflet.styles.d.ts +6 -0
  82. package/components/maps/components/GpsMap/Leaflet.styles.js +535 -0
  83. package/components/maps/components/GpsMap/classes/index.d.ts +1 -1
  84. package/components/maps/components/GpsMap/classes/index.js +6 -76
  85. package/components/maps/components/GpsMap/classes/types.d.ts +5 -16
  86. package/components/maps/components/GpsMap/constants.d.ts +9 -3
  87. package/components/maps/components/GpsMap/constants.js +25 -13
  88. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +4 -26
  89. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
  90. package/components/maps/components/GpsMap/contexts/MapContext/store.js +50 -75
  91. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +98 -87
  92. package/components/maps/components/GpsMap/dictionary.d.ts +19 -8
  93. package/components/maps/components/GpsMap/dictionary.js +30 -17
  94. package/components/maps/components/GpsMap/external/{Control → MapControl}/index.d.ts +3 -3
  95. package/components/maps/components/GpsMap/external/{Control → MapControl}/index.js +9 -7
  96. package/components/maps/components/GpsMap/external/MapControl/types.d.ts +26 -0
  97. package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +1 -1
  98. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +3 -3
  99. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +1 -1
  100. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +3 -2
  101. package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
  102. package/components/maps/components/GpsMap/hooks/index.d.ts +3 -0
  103. package/components/maps/components/GpsMap/hooks/index.js +1 -0
  104. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.d.ts +6 -0
  105. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js +31 -0
  106. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +6 -0
  107. package/components/maps/components/GpsMap/hooks/{useDisableZoomEvents → useDisableMapEventsOnMouseOver}/index.js +10 -2
  108. package/components/maps/components/GpsMap/icons.d.ts +10 -7
  109. package/components/maps/components/GpsMap/icons.js +17 -16
  110. package/components/maps/components/GpsMap/index.d.ts +2 -1
  111. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +9 -1
  112. package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
  113. package/components/maps/components/GpsMap/slots/slots.d.ts +27 -4
  114. package/components/maps/components/GpsMap/slots/slots.js +16 -7
  115. package/components/maps/components/GpsMap/slots/styled.d.ts +18 -0
  116. package/components/maps/components/GpsMap/slots/styled.js +37 -0
  117. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +8 -7
  118. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +10 -0
  119. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +10 -0
  120. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.js +3 -3
  121. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +2 -0
  122. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/types.d.ts +8 -0
  123. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.d.ts +13 -0
  124. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.js +64 -0
  125. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -2
  126. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +42 -87
  127. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +9 -0
  128. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.js +24 -0
  129. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/types.d.ts +2 -0
  130. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.d.ts +4 -0
  131. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.js +30 -0
  132. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +2 -0
  133. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js +45 -0
  134. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/types.d.ts +11 -0
  135. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +9 -0
  136. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +37 -0
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.d.ts +6 -0
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js +10 -0
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.d.ts +12 -0
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.js +26 -0
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +5 -0
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +71 -0
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/types.d.ts +6 -0
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/types.d.ts +9 -0
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts → TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.d.ts} +1 -1
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.js +38 -0
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +2 -0
  148. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +87 -0
  149. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +12 -0
  150. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +22 -0
  151. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.d.ts +9 -0
  152. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js +13 -0
  153. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.d.ts +21 -0
  154. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.js +41 -0
  155. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
  156. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.js +47 -0
  157. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +2 -0
  158. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.js +107 -0
  159. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +2 -0
  160. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.js +33 -0
  161. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +6 -0
  162. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +88 -0
  163. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/types.d.ts +7 -0
  164. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/types.d.ts +9 -0
  165. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.js +31 -0
  166. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.d.ts +7 -0
  167. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js +154 -0
  168. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +25 -0
  169. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +37 -14
  170. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +29 -0
  171. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +14 -6
  172. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +2 -2
  173. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +26 -20
  174. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +1 -2
  175. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.d.ts +8 -0
  176. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.js +12 -0
  177. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.d.ts +18 -0
  178. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.js +37 -0
  179. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +19 -17
  180. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +18 -2
  181. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -1
  182. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +2 -5
  183. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
  184. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +2 -1
  185. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +2 -1
  186. package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.d.ts +6 -0
  187. package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.js +8 -0
  188. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/darkStyles.d.ts +13 -0
  189. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +82 -59
  190. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +25 -15
  191. package/components/maps/components/GpsMap/types.d.ts +24 -5
  192. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +1 -0
  193. package/components/maps/components/GpsMapTools/index.d.ts +1 -0
  194. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +1 -1
  195. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +29 -32
  196. package/components/maps/components/GpsMapTools/types.d.ts +0 -16
  197. package/components/maps/index.d.ts +1 -0
  198. package/components/maps/utils/coordsToQuadKey.d.ts +4 -0
  199. package/components/maps/{components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js → utils/coordsToQuadKey.js} +2 -2
  200. package/components/maps/utils/index.d.ts +1 -0
  201. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +1 -1
  202. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +1 -1
  203. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +1 -1
  204. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +67 -2
  205. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +115 -30
  206. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +5 -38
  207. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +9 -36
  208. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +27 -19
  209. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +3 -2
  210. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +9 -2
  211. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +1 -1
  212. package/formatters/CourseFormatter/CourseFormatter.js +6 -4
  213. package/formatters/CourseFormatter/helper.d.ts +2 -1
  214. package/formatters/CourseFormatter/helper.js +2 -4
  215. package/formatters/CourseFormatter/index.d.ts +1 -0
  216. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +1 -1
  217. package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +2 -2
  218. package/formatters/index.js +1 -0
  219. package/index.d.ts +1 -0
  220. package/index.js +94 -59
  221. package/package.json +16 -3
  222. package/utils/cssToCSSProperties.d.ts +37 -0
  223. package/utils/getPrecisionFromHdop/constants.d.ts +13 -0
  224. package/utils/getPrecisionFromHdop/constants.js +73 -0
  225. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +31 -0
  226. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +59 -0
  227. package/utils/getPrecisionFromHdop/index.d.ts +3 -0
  228. package/utils/getPrecisionFromHdop/index.js +1 -0
  229. package/utils/getPrecisionFromHdop/types.d.ts +42 -0
  230. package/utils/getVptUpdatedAtWithGuard.d.ts +4 -0
  231. package/utils/getVptUpdatedAtWithGuard.js +13 -0
  232. package/utils/getVptValueWithGuard.d.ts +9 -0
  233. package/utils/getVptValueWithGuard.js +18 -0
  234. package/utils/index.d.ts +3 -0
  235. package/components/DeviceStatus/hooks/constants.d.ts +0 -11
  236. package/components/maps/components/GpsMap/external/Control/types.d.ts +0 -7
  237. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +0 -4
  238. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +0 -112
  239. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +0 -6
  240. package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +0 -4
  241. package/components/maps/components/GpsMap/slots/GpsMapSlots.js +0 -24
  242. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +0 -13
  243. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +0 -10
  244. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +0 -58
  245. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
  246. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +0 -17
  247. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +0 -18
  248. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +0 -139
  249. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -12
  250. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +0 -52
  251. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -8
  252. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +0 -43
  253. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +0 -4
  254. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +0 -30
  255. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +0 -26
  256. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +0 -133
  257. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +0 -2
  258. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +0 -39
  259. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +0 -4
  260. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +0 -73
  261. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +0 -2
  262. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +0 -25
  263. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +0 -4
  264. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +0 -4
  265. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +0 -40
  266. /package/components/{maps/components/GpsMap/contexts/MapContext/helper.js → Device/index.js} +0 -0
  267. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.d.ts +0 -0
  268. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/{index.d.ts → MeasureTool.d.ts} +0 -0
@@ -1,139 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useCallback, useMemo } from "react";
3
- import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
- import { ColumnSetCheckFormatter, Icon } from "@m4l/components";
5
- import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
6
- import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
7
- import { Tooltip } from "@mui/material";
8
- function useColumns(props) {
9
- const {
10
- rowKeyGetter,
11
- visibleLayers,
12
- setVisibleLayers,
13
- autoFocusLayers,
14
- setAutoFocusLayers,
15
- clusterLayers,
16
- setClusterLayers
17
- } = props;
18
- const { getLabel } = useModuleDictionary();
19
- const { host_static_assets, environment_assets } = useEnvironment();
20
- const useHook = useCallback(
21
- (field) => {
22
- if (field === "visible") {
23
- return [visibleLayers, setVisibleLayers];
24
- } else if (field === "autoFocus") {
25
- return [autoFocusLayers, setAutoFocusLayers];
26
- } else {
27
- return [clusterLayers, setClusterLayers];
28
- }
29
- },
30
- // eslint-disable-next-line react-hooks/exhaustive-deps
31
- [visibleLayers, autoFocusLayers, clusterLayers]
32
- );
33
- const columns = useMemo(
34
- () => [
35
- {
36
- key: "name",
37
- name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_NAME),
38
- type: "string",
39
- width: 150,
40
- frozen: true
41
- },
42
- {
43
- key: "visible",
44
- name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_VISIBLE),
45
- width: 50,
46
- minWidth: 20,
47
- type: "boolean",
48
- // isDraggable: false,
49
- formatter: ColumnSetCheckFormatter({
50
- field: "active",
51
- rowKeyGetter,
52
- useHook
53
- }),
54
- cellClass: "rdg-cell-align-center",
55
- /**
56
- * HeaderRenderer para la columna de visibilidad
57
- */
58
- headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_VISIBLE), children: /* @__PURE__ */ jsx(
59
- Icon,
60
- {
61
- size: "medium",
62
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_VISIBLE}`
63
- }
64
- ) })
65
- },
66
- {
67
- key: "autoFocus",
68
- name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_AUTOFOCUS),
69
- minWidth: 20,
70
- width: 50,
71
- type: "boolean",
72
- // frozen: true,
73
- // isDraggable: false,
74
- formatter: ColumnSetCheckFormatter({
75
- field: "active",
76
- rowKeyGetter,
77
- useHook
78
- }),
79
- cellClass: "rdg-cell-align-center",
80
- /**
81
- * HeaderRenderer para la columna de autoenfoque
82
- */
83
- headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_AUTOFOCUS), children: /* @__PURE__ */ jsx(
84
- Icon,
85
- {
86
- size: "medium",
87
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_AUTOFOCUS}`
88
- }
89
- ) })
90
- },
91
- {
92
- key: "cluster",
93
- name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_CLUSTER),
94
- minWidth: 20,
95
- width: 50,
96
- type: "boolean",
97
- // frozen: true,
98
- // isDraggable: false,
99
- formatter: ColumnSetCheckFormatter({
100
- field: "clusterAble",
101
- disabledGetter: (row) => !row.clusterAble,
102
- rowKeyGetter,
103
- useHook
104
- }),
105
- cellClass: "rdg-cell-align-center",
106
- /**
107
- * HeaderRenderer para la columna de cluster
108
- */
109
- headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_CLUSTER), children: /* @__PURE__ */ jsx(
110
- Icon,
111
- {
112
- size: "medium",
113
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_CLUSTER}`
114
- }
115
- ) })
116
- }
117
- // {
118
- // key: 'checkedInternalFeatures',
119
- // name: getLabel(DICCTIONARY.LABEL_VIEW_INTERNAL_FEATURES),
120
- // width: 80,
121
- // type: 'boolean',
122
- // // isDraggable: false,
123
- // // frozen: true,
124
- // formatter: ColumnSetCheckFormatter({
125
- // field: 'InternalFeatures',
126
- // rowKeyGetter,
127
- // useHook,
128
- // }),
129
- // cellClass: 'rdg-cell-align-center',
130
- // },
131
- ],
132
- // eslint-disable-next-line react-hooks/exhaustive-deps
133
- [getLabel, useHook]
134
- );
135
- return { columns };
136
- }
137
- export {
138
- useColumns as u
139
- };
@@ -1,12 +0,0 @@
1
- import { LayersListModel } from '../model';
2
- /**
3
- * Hook que contiene la logica de la tabla de capas
4
- */
5
- export declare function useMaster(): {
6
- rowKeyGetter: (row: LayersListModel) => string;
7
- columns: import('react-data-grid').Column<LayersListModel, unknown>[];
8
- rows: LayersListModel[];
9
- checkedRows: ReadonlySet<string>;
10
- onCheckedRowsChange: (newFeatures: ReadonlySet<string>) => void;
11
- rowActionsGetter: (row: LayersListModel) => import('@m4l/components').MenuAction[] | [];
12
- };
@@ -1,52 +0,0 @@
1
- import { useCallback, useMemo } from "react";
2
- import { shallow } from "zustand/shallow";
3
- import { u as useColumns } from "./useColumns.js";
4
- import { u as useMapStore } from "../../../../../../../../../hooks/useMapStore/index.js";
5
- import { u as useCheckedLayers } from "./useCheckedLayers.js";
6
- import { u as useRowActionsGetter } from "./useRowActionsGetter.js";
7
- function useMaster() {
8
- const [hashLayers, layersIds] = useMapStore(
9
- (state) => [state.hashLayers, state.layersIds],
10
- shallow
11
- );
12
- const rowKeyGetter = useCallback((row) => row.id, []);
13
- const [visibleLayers, setVisibleLayers] = useCheckedLayers("visible");
14
- const [autoFocusLayers, setAutoFocusLayers] = useCheckedLayers("autoFocus");
15
- const [clusterLayers, setClusterLayers] = useCheckedLayers("cluster");
16
- const rows = useMemo(() => {
17
- const filteredRows = [];
18
- layersIds.forEach((layerId) => {
19
- if (hashLayers[layerId]) {
20
- filteredRows.push({
21
- id: layerId,
22
- name: hashLayers[layerId].name || `*${layerId}`,
23
- active: hashLayers[layerId].visible,
24
- clusterAble: hashLayers[layerId].clusterAble || false,
25
- deleteAble: hashLayers[layerId].deleteAble || false
26
- });
27
- }
28
- });
29
- return filteredRows;
30
- }, [hashLayers, layersIds]);
31
- const { rowActionsGetter } = useRowActionsGetter();
32
- const { columns } = useColumns({
33
- rowKeyGetter,
34
- visibleLayers,
35
- setVisibleLayers,
36
- autoFocusLayers,
37
- setAutoFocusLayers,
38
- clusterLayers,
39
- setClusterLayers
40
- });
41
- return {
42
- rowKeyGetter,
43
- columns,
44
- rows,
45
- checkedRows: visibleLayers,
46
- onCheckedRowsChange: setVisibleLayers,
47
- rowActionsGetter
48
- };
49
- }
50
- export {
51
- useMaster as u
52
- };
@@ -1,8 +0,0 @@
1
- import { LayersListModel } from '../model';
2
- import { MenuAction } from '@m4l/components';
3
- /**
4
- * TODO: Documentar
5
- */
6
- export declare function useRowActionsGetter(): {
7
- rowActionsGetter: (row: LayersListModel) => MenuAction[] | [];
8
- };
@@ -1,43 +0,0 @@
1
- import { useState, useCallback } from "react";
2
- import { useModuleDictionary, useModulePrivileges, useEnvironment } from "@m4l/core";
3
- import { shallow } from "zustand/shallow";
4
- import { u as useMapStore } from "../../../../../../../../../hooks/useMapStore/index.js";
5
- import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
6
- import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
7
- function useRowActionsGetter() {
8
- const { getLabel } = useModuleDictionary();
9
- const { hasPrivilege } = useModulePrivileges();
10
- const { host_static_assets, environment_assets } = useEnvironment();
11
- const { removeLayer } = useMapStore((state) => state.mapActions, shallow);
12
- const [urlIconDelete] = useState(
13
- `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_DELETE}`
14
- );
15
- const onDelete = useCallback(
16
- (row) => {
17
- removeLayer(row.id);
18
- },
19
- // eslint-disable-next-line react-hooks/exhaustive-deps
20
- [getLabel]
21
- );
22
- const rowActionsGetter = useCallback(
23
- (row) => {
24
- const conditionalItems = [];
25
- conditionalItems.push({
26
- type: "menuItem",
27
- startIcon: urlIconDelete,
28
- label: MAP_DICCTIONARY.ROW_ACTION_LAYER_DELETE,
29
- onClick: () => {
30
- onDelete(row);
31
- },
32
- disabled: !row.deleteAble
33
- });
34
- return conditionalItems;
35
- },
36
- // eslint-disable-next-line react-hooks/exhaustive-deps
37
- [hasPrivilege, onDelete, urlIconDelete]
38
- );
39
- return { rowActionsGetter };
40
- }
41
- export {
42
- useRowActionsGetter as u
43
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare function LayersTool(): import("react/jsx-runtime").JSX.Element;
@@ -1,30 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { DataGrid } from "@m4l/components";
3
- import { u as useMaster } from "./hooks/useMaster.js";
4
- import { u as useDisableZoomEvents } from "../../../../../../../../hooks/useDisableZoomEvents/index.js";
5
- import { useRef } from "react";
6
- function LayersTool() {
7
- const { columns, rows, rowKeyGetter, rowActionsGetter } = useMaster();
8
- const divRef = useRef(null);
9
- useDisableZoomEvents(divRef.current);
10
- return /* @__PURE__ */ jsx("div", { ref: divRef, style: { position: "relative", height: "100%" }, children: /* @__PURE__ */ jsx(
11
- DataGrid,
12
- {
13
- id: "layers",
14
- columns,
15
- rows,
16
- rowActionsGetter,
17
- rowKeyGetter,
18
- withActions: true,
19
- actionsProps: {
20
- withRowsCount: false,
21
- withSettings: false,
22
- withPager: false,
23
- withLocalFilters: false
24
- }
25
- }
26
- ) });
27
- }
28
- export {
29
- LayersTool as L
30
- };
@@ -1,26 +0,0 @@
1
- export type LayerId = string;
2
- /**
3
- * Modelo de datos proveniente del endpoint get de geocercas
4
- */
5
- export interface LayersListModel {
6
- /**
7
- * id de la geocerca
8
- */
9
- id: LayerId;
10
- /**
11
- * "name" Traducción del nombre de la capa
12
- */
13
- name: string;
14
- /**
15
- * "active" si está activa o no lo capa para visualización
16
- */
17
- active?: boolean;
18
- /**
19
- * "clusterAble" si es cluterable
20
- */
21
- clusterAble: boolean;
22
- /**
23
- * "deleteAble"
24
- */
25
- deleteAble: boolean;
26
- }
@@ -1,133 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { FormControl, RadioGroup, FormControlLabel, Radio } from "@mui/material";
3
- import { shallow } from "zustand/shallow";
4
- import { Icon, CheckBox } from "@m4l/components";
5
- import { useModuleDictionary, useEnvironment } from "@m4l/core";
6
- import { u as useDisableZoomEvents } from "../../../../../../../../hooks/useDisableZoomEvents/index.js";
7
- import { m as mapClasses } from "../../../../../../../../classes/index.js";
8
- import clsx from "clsx";
9
- import { M as MAP_ICONS } from "../../../../../../../../icons.js";
10
- import { useRef } from "react";
11
- import { u as useMapStore } from "../../../../../../../../hooks/useMapStore/index.js";
12
- function MapSourcesTool() {
13
- const { getLabel } = useModuleDictionary();
14
- const { host_static_assets, environment_assets } = useEnvironment();
15
- const currentMapSourceId = useMapStore((state) => state.currentMapSourceId, shallow);
16
- const mapSources = useMapStore((state) => {
17
- return state.mapSourcesIds.map((id) => ({
18
- id,
19
- dictionaryId: state.hashMapSources[id].dictionaryId,
20
- iconUrl: state.hashMapSources[id].iconUrl,
21
- hasBicyclingLayer: state.hashMapSources[id].hasBicyclingLayer,
22
- hasTrafficLayer: state.hashMapSources[id].hasTrafficLayer,
23
- hasTransitLayer: state.hashMapSources[id].hasTransitLayer,
24
- roadSeletedOptions: state.hashMapSources[id].roadSelectedOptions
25
- }));
26
- }, shallow);
27
- const { setCurrentMapSource, setMapSourceRoadOptions: setMapSourceRoadMapOptions } = useMapStore(
28
- (state) => state.mapActions,
29
- shallow
30
- );
31
- const divRef = useRef(null);
32
- useDisableZoomEvents(divRef.current);
33
- const handleChange = (event) => {
34
- setCurrentMapSource(event.target.value);
35
- };
36
- return /* @__PURE__ */ jsx("div", { className: mapClasses.mapSourcesRoot, ref: divRef, children: /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
37
- RadioGroup,
38
- {
39
- "aria-labelledby": "demo-controlled-radio-buttons-group",
40
- name: "controlled-radio-buttons-group",
41
- value: currentMapSourceId,
42
- onChange: handleChange,
43
- children: mapSources.map((mapSourceOption) => /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOption, children: [
44
- /* @__PURE__ */ jsx(
45
- FormControlLabel,
46
- {
47
- className: "",
48
- value: mapSourceOption.id,
49
- control: /* @__PURE__ */ jsx(Radio, {}),
50
- label: /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionIconLabel, children: [
51
- /* @__PURE__ */ jsx(
52
- Icon,
53
- {
54
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${mapSourceOption.iconUrl}`
55
- }
56
- ),
57
- /* @__PURE__ */ jsx("span", { children: getLabel(mapSourceOption.dictionaryId) })
58
- ] })
59
- }
60
- ),
61
- (mapSourceOption.hasBicyclingLayer || mapSourceOption.hasTrafficLayer || mapSourceOption.hasTransitLayer) && /* @__PURE__ */ jsxs(
62
- "div",
63
- {
64
- className: clsx(
65
- mapClasses.mapSourcesOptionRoadOptions,
66
- currentMapSourceId !== mapSourceOption.id ? mapClasses.disabled : mapClasses.active
67
- ),
68
- children: [
69
- mapSourceOption.hasTrafficLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
70
- /* @__PURE__ */ jsx(
71
- CheckBox,
72
- {
73
- disabled: currentMapSourceId !== mapSourceOption.id,
74
- checked: mapSourceOption.roadSeletedOptions?.trafficLayer || false,
75
- onChange: (_e, checked) => {
76
- setMapSourceRoadMapOptions({ trafficLayer: checked });
77
- }
78
- }
79
- ),
80
- /* @__PURE__ */ jsx(
81
- Icon,
82
- {
83
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_TRAFFIC}`
84
- }
85
- )
86
- ] }),
87
- mapSourceOption.hasTransitLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
88
- /* @__PURE__ */ jsx(
89
- CheckBox,
90
- {
91
- disabled: currentMapSourceId !== mapSourceOption.id,
92
- checked: mapSourceOption.roadSeletedOptions?.transitLayer || false,
93
- onChange: (_e, checked) => {
94
- setMapSourceRoadMapOptions({ transitLayer: checked });
95
- }
96
- }
97
- ),
98
- /* @__PURE__ */ jsx(
99
- Icon,
100
- {
101
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_TRANSIT}`
102
- }
103
- )
104
- ] }),
105
- mapSourceOption.hasBicyclingLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
106
- /* @__PURE__ */ jsx(
107
- CheckBox,
108
- {
109
- disabled: currentMapSourceId !== mapSourceOption.id,
110
- checked: mapSourceOption.roadSeletedOptions?.bicyclingLayer || false,
111
- inlineText: "Bycicle",
112
- onChange: (_e, checked) => {
113
- setMapSourceRoadMapOptions({ bicyclingLayer: checked });
114
- }
115
- }
116
- ),
117
- /* @__PURE__ */ jsx(
118
- Icon,
119
- {
120
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_BICYCLING}`
121
- }
122
- )
123
- ] })
124
- ]
125
- }
126
- )
127
- ] }, mapSourceOption.dictionaryId))
128
- }
129
- ) }) });
130
- }
131
- export {
132
- MapSourcesTool as M
133
- };
@@ -1,2 +0,0 @@
1
- import { TileLayerSource } from '../../../../../../../../../contexts/MapContext/types';
2
- export declare const TILE_LAYER_BING: TileLayerSource;
@@ -1,39 +0,0 @@
1
- import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
2
- import { t as toQuadKey } from "./utils.js";
3
- import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
4
- const BING_URL_TEMPLATE = "https://{s}.ssl.ak.dynamic.tiles.virtualearth.net/comp/ch/|QK|?mkt=en-us&it=G,VE,BX,L,LA&shading=hill&og=22&n=z";
5
- const BING_SUB_DOMAINS = ["t2", "t3"];
6
- const TILE_LAYER_BING = {
7
- id: "bing_rodmap",
8
- sourceType: "Bing",
9
- mapTypeTile: "roadmap",
10
- dictionaryId: MAP_DICCTIONARY.LABEL_TILE_BING,
11
- iconUrl: MAP_ICONS.MAP_SOURCE_BING,
12
- urlTemplate: BING_URL_TEMPLATE,
13
- options: {
14
- minZoom: 0,
15
- maxZoom: 21,
16
- subdomains: BING_SUB_DOMAINS,
17
- attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a>',
18
- tms: true
19
- },
20
- roadSelectedOptions: {
21
- trafficLayer: false,
22
- transitLayer: false,
23
- bicyclingLayer: false
24
- },
25
- /**
26
- * TODO: Documentar
27
- */
28
- getTileUrl: (tileCoord) => {
29
- const i = Math.abs(tileCoord.x + tileCoord.y) % BING_SUB_DOMAINS.length;
30
- const z = tileCoord.z;
31
- const x = tileCoord.x;
32
- const y = tileCoord.y;
33
- const gk = toQuadKey(x, y, z);
34
- return BING_URL_TEMPLATE.replace("|QK|", gk).replace("{s}", BING_SUB_DOMAINS[i]);
35
- }
36
- };
37
- export {
38
- TILE_LAYER_BING as T
39
- };
@@ -1,4 +0,0 @@
1
- import { TileLayerSource } from '../../../../../../../../../contexts/MapContext/types';
2
- export declare const TILE_LAYER_GOOGLE: TileLayerSource;
3
- export declare const TILE_LAYER_GOOGLE_SATELLITE: TileLayerSource;
4
- export declare const TILE_LAYER_GOOGLE_HYBRID: TileLayerSource;
@@ -1,73 +0,0 @@
1
- import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
2
- import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
3
- const TILE_LAYER_GOOGLE = {
4
- id: "google_rodmap",
5
- sourceType: "Google",
6
- iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_ROADS,
7
- mapTypeTile: "roadmap",
8
- dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_ROADS,
9
- urlTemplate: "http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
10
- hasBicyclingLayer: true,
11
- hasTrafficLayer: true,
12
- hasTransitLayer: true,
13
- options: {
14
- minZoom: 0,
15
- maxZoom: 22,
16
- subdomains: ["mt0", "mt1", "mt2", "mt3"],
17
- attribution: "Map data © Google",
18
- tms: false
19
- },
20
- roadSelectedOptions: {
21
- trafficLayer: false,
22
- transitLayer: false,
23
- bicyclingLayer: false
24
- }
25
- };
26
- const TILE_LAYER_GOOGLE_SATELLITE = {
27
- id: "google_satellite",
28
- sourceType: "Google",
29
- iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_SATELLITE,
30
- mapTypeTile: "satellite",
31
- dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_SATELLITE,
32
- urlTemplate: "http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
33
- options: {
34
- minZoom: 0,
35
- maxZoom: 22,
36
- subdomains: ["mt0", "mt1", "mt2", "mt3"],
37
- attribution: "Map data © Google",
38
- tms: false
39
- },
40
- roadSelectedOptions: {
41
- trafficLayer: false,
42
- transitLayer: false,
43
- bicyclingLayer: false
44
- }
45
- };
46
- const TILE_LAYER_GOOGLE_HYBRID = {
47
- id: "google_hybrid",
48
- sourceType: "Google",
49
- iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_HYBRID,
50
- mapTypeTile: "hybrid",
51
- dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_HYBRID,
52
- urlTemplate: "http://{s}.google.com/vt/lyrs=y&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
53
- hasBicyclingLayer: true,
54
- hasTrafficLayer: true,
55
- hasTransitLayer: true,
56
- options: {
57
- minZoom: 0,
58
- maxZoom: 22,
59
- subdomains: ["mt0", "mt1", "mt2", "mt3"],
60
- attribution: "Map data © Google",
61
- tms: false
62
- },
63
- roadSelectedOptions: {
64
- trafficLayer: false,
65
- transitLayer: false,
66
- bicyclingLayer: false
67
- }
68
- };
69
- export {
70
- TILE_LAYER_GOOGLE_HYBRID as T,
71
- TILE_LAYER_GOOGLE_SATELLITE as a,
72
- TILE_LAYER_GOOGLE as b
73
- };
@@ -1,2 +0,0 @@
1
- import { TileLayerSource } from '../../../../../../../../../contexts/MapContext/types';
2
- export declare const TILE_LAYER_OSM: TileLayerSource;
@@ -1,25 +0,0 @@
1
- import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
2
- import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
3
- const TILE_LAYER_OSM = {
4
- id: "osm_roadmap",
5
- sourceType: "OSM",
6
- iconUrl: MAP_ICONS.MAP_SOURCE_OSM,
7
- mapTypeTile: "roadmap",
8
- dictionaryId: MAP_DICCTIONARY.LABEL_TILE_OSM,
9
- urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
10
- options: {
11
- minZoom: 0,
12
- maxZoom: 19,
13
- subdomains: ["a", "b", "c"],
14
- attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a>',
15
- tms: false
16
- },
17
- roadSelectedOptions: {
18
- trafficLayer: false,
19
- transitLayer: false,
20
- bicyclingLayer: false
21
- }
22
- };
23
- export {
24
- TILE_LAYER_OSM as T
25
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare function toQuadKey(x: number, y: number, z: number): string;
@@ -1,4 +0,0 @@
1
- export type ToolType = 'Layers' | 'MapSources';
2
- export type PopoverToolButtonProps = {
3
- type: ToolType;
4
- };
@@ -1,40 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { RHFormProvider, Stack } from "@m4l/components";
3
- import { M as MyActions } from "./subcomponents/MyActions/index.js";
4
- import { u as useValidation } from "./hooks/useValidation.js";
5
- import { I as INITIAL_FORM_VALUES } from "./constants.js";
6
- import { M as MeasureData } from "./subcomponents/MeasureData/index.js";
7
- import { useModuleDictionary } from "@m4l/core";
8
- import { M as MAP_DICCTIONARY } from "../../../../../../dictionary.js";
9
- import { m as mapClasses } from "../../../../../../classes/index.js";
10
- function MeasureTool() {
11
- const { getLabel } = useModuleDictionary();
12
- const finalInitalValues = {
13
- ...INITIAL_FORM_VALUES
14
- };
15
- if (finalInitalValues?.magnitudFactor?.name) {
16
- finalInitalValues.magnitudFactor.name = getLabel(
17
- MAP_DICCTIONARY.LABEL_MEASURE_UNIT_BASE_KILOMETERS
18
- );
19
- }
20
- const { validationSchema } = useValidation();
21
- const onSubmit = () => {
22
- };
23
- return /* @__PURE__ */ jsxs(
24
- RHFormProvider,
25
- {
26
- className: mapClasses.meaureToolRoot,
27
- statusLoad: INITIAL_FORM_VALUES.statusLoad,
28
- onSubmit,
29
- values: finalInitalValues,
30
- validationSchema,
31
- children: [
32
- /* @__PURE__ */ jsx(Stack, { direction: "column", children: /* @__PURE__ */ jsx(MeasureData, {}) }),
33
- /* @__PURE__ */ jsx(MyActions, {})
34
- ]
35
- }
36
- );
37
- }
38
- export {
39
- MeasureTool as M
40
- };