@m4l/gclick 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/.storybook/constants.d.ts +30 -0
  2. package/.storybook/decorators/StorybookWithMapProvider/constants.d.ts +2 -0
  3. package/.storybook/decorators/StorybookWithMapProvider/index.d.ts +1 -0
  4. package/.storybook/decorators/WithContexts/constants.d.ts +10 -0
  5. package/.storybook/decorators/WithContexts/index.d.ts +1 -0
  6. package/.storybook/decorators/WithContexts/types.d.ts +7 -0
  7. package/.storybook/decorators/WithWindowsContainer/index.d.ts +2 -0
  8. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/index.d.ts +1 -0
  9. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/types.d.ts +4 -0
  10. package/.storybook/main.d.ts +3 -0
  11. package/.storybook/mocks/config-msw.d.ts +21 -0
  12. package/.storybook/mocks/index.d.ts +2 -0
  13. package/.storybook/mocks/network-mocks.d.ts +1 -0
  14. package/.storybook/storybook.vite.d.ts +2 -0
  15. package/@types/augmentations.d.ts +38 -0
  16. package/@types/constants.d.ts +26 -0
  17. package/@types/constants.js +21 -0
  18. package/@types/deviceData.d.ts +90 -0
  19. package/@types/general.d.ts +21 -0
  20. package/@types/index.d.ts +2 -0
  21. package/@types/index.js +1 -0
  22. package/@types/types.d.js +1 -0
  23. package/@types/types.d.ts +43 -0
  24. package/@types/vpts.d.ts +49 -0
  25. package/components/DataGrid/assets/icons/datagrid.svg +4 -0
  26. package/components/DeviceLabel/DeviceLabel.d.ts +6 -0
  27. package/components/DeviceLabel/DeviceLabel.js +32 -0
  28. package/components/DeviceLabel/DeviceLabel.styles.d.ts +2 -0
  29. package/components/DeviceLabel/DeviceLabel.styles.js +33 -0
  30. package/components/DeviceLabel/constants.d.ts +2 -0
  31. package/components/DeviceLabel/constants.js +4 -0
  32. package/components/DeviceLabel/index.d.ts +1 -0
  33. package/components/DeviceLabel/index.js +1 -0
  34. package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +3 -0
  35. package/components/DeviceLabel/slots/DeviceLabelSlots.js +22 -0
  36. package/components/DeviceLabel/slots/slots.d.ts +5 -0
  37. package/components/DeviceLabel/slots/slots.js +9 -0
  38. package/components/DeviceLabel/types.d.ts +26 -0
  39. package/components/DeviceStatus/DeviceStatus.d.ts +6 -0
  40. package/components/DeviceStatus/DeviceStatus.js +15 -0
  41. package/components/DeviceStatus/DeviceStatus.styles.d.ts +2 -0
  42. package/components/DeviceStatus/DeviceStatus.styles.js +13 -0
  43. package/components/DeviceStatus/constants.d.ts +2 -0
  44. package/components/DeviceStatus/constants.js +4 -0
  45. package/components/DeviceStatus/dictionary.d.ts +13 -0
  46. package/components/DeviceStatus/dictionary.js +18 -0
  47. package/components/DeviceStatus/hooks/constants.d.ts +11 -0
  48. package/components/DeviceStatus/hooks/constants.js +79 -0
  49. package/components/DeviceStatus/hooks/helper.d.ts +7 -0
  50. package/components/DeviceStatus/hooks/helper.js +22 -0
  51. package/components/DeviceStatus/hooks/useDeviceStatus.d.ts +12 -0
  52. package/components/DeviceStatus/hooks/useDeviceStatus.js +25 -0
  53. package/components/DeviceStatus/icons.d.ts +11 -0
  54. package/components/DeviceStatus/icons.js +13 -0
  55. package/components/DeviceStatus/index.d.ts +4 -0
  56. package/components/DeviceStatus/index.js +1 -0
  57. package/components/DeviceStatus/slots/DeviceStatusSlots.d.ts +1 -0
  58. package/components/DeviceStatus/slots/DeviceStatusSlots.js +11 -0
  59. package/components/DeviceStatus/slots/slots.d.ts +3 -0
  60. package/components/DeviceStatus/slots/slots.js +7 -0
  61. package/components/DeviceStatus/types.d.ts +16 -0
  62. package/components/gauges/Gauge/Gauge.d.ts +22 -0
  63. package/components/gauges/Gauge/Gauge.js +25 -0
  64. package/components/gauges/Gauge/Gauge.styles.d.ts +2 -0
  65. package/components/gauges/Gauge/Gauge.styles.js +9 -0
  66. package/components/gauges/Gauge/constants.d.ts +2 -0
  67. package/components/gauges/Gauge/constants.js +8 -0
  68. package/components/gauges/Gauge/index.d.ts +1 -0
  69. package/components/gauges/Gauge/index.js +1 -0
  70. package/components/gauges/Gauge/slots/GaugeEnum.d.ts +3 -0
  71. package/components/gauges/Gauge/slots/GaugeEnum.js +7 -0
  72. package/components/gauges/Gauge/slots/GaugeSlots.d.ts +3 -0
  73. package/components/gauges/Gauge/slots/GaugeSlots.js +12 -0
  74. package/components/gauges/Gauge/types.d.ts +16 -0
  75. package/components/gauges/index.d.ts +1 -0
  76. package/components/gauges/index.js +1 -0
  77. package/components/index.d.ts +4 -0
  78. package/components/index.js +1 -0
  79. package/components/indicators/IndicatorCSQ/IndicatorCSQ.d.ts +7 -0
  80. package/components/indicators/IndicatorCSQ/IndicatorCSQ.styles.d.ts +2 -0
  81. package/components/indicators/IndicatorCSQ/constants.d.ts +8 -0
  82. package/components/indicators/IndicatorCSQ/dictionary.d.ts +9 -0
  83. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +40 -0
  84. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/index.d.ts +0 -0
  85. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/types.d.ts +11 -0
  86. package/components/indicators/IndicatorCSQ/icons.d.ts +1 -0
  87. package/components/indicators/IndicatorCSQ/index.d.ts +3 -0
  88. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQEnum.d.ts +7 -0
  89. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.d.ts +15 -0
  90. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/SignalIcon.d.ts +7 -0
  91. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/index.d.ts +1 -0
  92. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/types.d.ts +5 -0
  93. package/components/indicators/IndicatorCSQ/tests/IndicatorCSQ.test.d.ts +1 -0
  94. package/components/indicators/IndicatorCSQ/types.d.ts +21 -0
  95. package/components/maps/components/GpsMap/GpsMap.d.ts +8 -0
  96. package/components/maps/components/GpsMap/GpsMap.js +34 -0
  97. package/components/maps/components/GpsMap/GpsMap.styles.d.ts +2 -0
  98. package/components/maps/components/GpsMap/GpsMap.styles.js +228 -0
  99. package/components/maps/components/GpsMap/classes/index.d.ts +8 -0
  100. package/components/maps/components/GpsMap/classes/index.js +110 -0
  101. package/components/maps/components/GpsMap/classes/types.d.ts +69 -0
  102. package/components/maps/components/GpsMap/constants.d.ts +36 -0
  103. package/components/maps/components/GpsMap/constants.js +49 -0
  104. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts +13 -0
  105. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +59 -0
  106. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +8 -0
  107. package/components/maps/components/GpsMap/contexts/MapContext/helper.js +1 -0
  108. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +2 -0
  109. package/components/maps/components/GpsMap/contexts/MapContext/index.js +1 -0
  110. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +6 -0
  111. package/components/maps/components/GpsMap/contexts/MapContext/store.js +375 -0
  112. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +569 -0
  113. package/components/maps/components/GpsMap/dictionary.d.ts +32 -0
  114. package/components/maps/components/GpsMap/dictionary.js +32 -0
  115. package/components/maps/components/GpsMap/external/Control/index.d.ts +9 -0
  116. package/components/maps/components/GpsMap/external/Control/index.js +42 -0
  117. package/components/maps/components/GpsMap/external/Control/types.d.ts +7 -0
  118. package/components/maps/components/GpsMap/external/Popup/component.d.ts +4 -0
  119. package/components/maps/components/GpsMap/external/Popup/div-overlay.d.ts +4 -0
  120. package/components/maps/components/GpsMap/external/Popup/element.d.ts +4 -0
  121. package/components/maps/components/GpsMap/external/Popup/generic.d.ts +4 -0
  122. package/components/maps/components/GpsMap/external/Popup/index.d.ts +4 -0
  123. package/components/maps/components/GpsMap/external/googleMutant/LRUMap.d.ts +99 -0
  124. package/components/maps/components/GpsMap/external/googleMutant/LRUMap.js +1 -0
  125. package/components/maps/components/GpsMap/external/googleMutant/googleMutant.d.ts +1 -0
  126. package/components/maps/components/GpsMap/external/googleMutant/googleMutant.js +1 -0
  127. package/components/maps/components/GpsMap/external/googleMutant/googleMutantNoDelete.d.ts +1 -0
  128. package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +132 -0
  129. package/components/maps/components/GpsMap/external/googleMutant/index.js +1 -0
  130. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.d.ts +1 -0
  131. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +4 -0
  132. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +8 -0
  133. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +263 -0
  134. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +1 -0
  135. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +4 -0
  136. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +8 -0
  137. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +112 -0
  138. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.d.ts +6 -0
  139. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +33 -0
  140. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/types.d.ts +7 -0
  141. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarker.d.ts +9 -0
  142. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +4 -0
  143. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +4 -0
  144. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.d.ts +5 -0
  145. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.js +80 -0
  146. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -0
  147. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +83 -0
  148. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +15 -0
  149. package/components/maps/components/GpsMap/featureRenders/index.d.ts +3 -0
  150. package/components/maps/components/GpsMap/featureRenders/index.js +1 -0
  151. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.d.ts +7 -0
  152. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +78 -0
  153. package/components/maps/components/GpsMap/hooks/useAutoFocus/types.d.ts +15 -0
  154. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +6 -0
  155. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +6 -0
  156. package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.js +21 -0
  157. package/components/maps/components/GpsMap/hooks/useMapStore/index.d.ts +6 -0
  158. package/components/maps/components/GpsMap/hooks/useMapStore/index.js +13 -0
  159. package/components/maps/components/GpsMap/icons.d.ts +45 -0
  160. package/components/maps/components/GpsMap/icons.js +39 -0
  161. package/components/maps/components/GpsMap/index.d.ts +9 -0
  162. package/components/maps/components/GpsMap/index.js +1 -0
  163. package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.d.ts +11 -0
  164. package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.js +74 -0
  165. package/components/maps/components/GpsMap/pluginLayers/index.d.ts +1 -0
  166. package/components/maps/components/GpsMap/pluginLayers/index.js +1 -0
  167. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +7 -0
  168. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +30 -0
  169. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +2 -0
  170. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +146 -0
  171. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +5 -0
  172. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +8 -0
  173. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +16 -0
  174. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +20 -0
  175. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +2 -0
  176. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.js +1 -0
  177. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +33 -0
  178. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +63 -0
  179. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +13 -0
  180. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +17 -0
  181. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +6 -0
  182. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +122 -0
  183. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +5 -0
  184. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +22 -0
  185. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +5 -0
  186. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +6 -0
  187. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +10 -0
  188. package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
  189. package/components/maps/components/GpsMap/popups/index.js +1 -0
  190. package/components/maps/components/GpsMap/popups/types.d.ts +10 -0
  191. package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +4 -0
  192. package/components/maps/components/GpsMap/slots/GpsMapSlots.js +24 -0
  193. package/components/maps/components/GpsMap/slots/slots.d.ts +6 -0
  194. package/components/maps/components/GpsMap/slots/slots.js +10 -0
  195. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +17 -0
  196. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +32 -0
  197. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +4 -0
  198. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +13 -0
  199. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +10 -0
  200. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +58 -0
  201. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
  202. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +17 -0
  203. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +18 -0
  204. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +139 -0
  205. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +12 -0
  206. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +52 -0
  207. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +8 -0
  208. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +43 -0
  209. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +4 -0
  210. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +30 -0
  211. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +26 -0
  212. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +4 -0
  213. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +133 -0
  214. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
  215. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +39 -0
  216. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
  217. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +73 -0
  218. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
  219. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +25 -0
  220. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +4 -0
  221. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js +19 -0
  222. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
  223. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +5 -0
  224. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +11 -0
  225. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +103 -0
  226. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
  227. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +34 -0
  228. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
  229. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +45 -0
  230. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
  231. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +245 -0
  232. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
  233. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +13 -0
  234. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.js +17 -0
  235. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +4 -0
  236. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +40 -0
  237. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/model.d.ts +17 -0
  238. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
  239. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +32 -0
  240. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
  241. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
  242. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +6 -0
  243. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
  244. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +31 -0
  245. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
  246. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +4 -0
  247. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.js +52 -0
  248. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +7 -0
  249. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +22 -0
  250. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +5 -0
  251. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +33 -0
  252. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +14 -0
  253. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +132 -0
  254. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +9 -0
  255. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.js +24 -0
  256. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
  257. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +11 -0
  258. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.js +13 -0
  259. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
  260. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
  261. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +6 -0
  262. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +27 -0
  263. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +4 -0
  264. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +100 -0
  265. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
  266. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +35 -0
  267. package/components/maps/components/GpsMap/types.d.ts +56 -0
  268. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +4 -0
  269. package/components/maps/components/GpsMapTools/GpsMapTools.js +10 -0
  270. package/components/maps/components/GpsMapTools/classes/index.d.ts +7 -0
  271. package/components/maps/components/GpsMapTools/classes/index.js +21 -0
  272. package/components/maps/components/GpsMapTools/classes/types.d.ts +14 -0
  273. package/components/maps/components/GpsMapTools/constants.d.ts +8 -0
  274. package/components/maps/components/GpsMapTools/constants.js +71 -0
  275. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +21 -0
  276. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +48 -0
  277. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +19 -0
  278. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +155 -0
  279. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +160 -0
  280. package/components/maps/components/GpsMapTools/dictionary.d.ts +62 -0
  281. package/components/maps/components/GpsMapTools/dictionary.js +66 -0
  282. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.d.ts +5 -0
  283. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +13 -0
  284. package/components/maps/components/GpsMapTools/hooks/useLayers/index.d.ts +4 -0
  285. package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +57 -0
  286. package/components/maps/components/GpsMapTools/icons.d.ts +23 -0
  287. package/components/maps/components/GpsMapTools/icons.js +22 -0
  288. package/components/maps/components/GpsMapTools/index.d.ts +4 -0
  289. package/components/maps/components/GpsMapTools/index.js +1 -0
  290. package/components/maps/components/GpsMapTools/styles.d.ts +1 -0
  291. package/components/maps/components/GpsMapTools/styles.js +18 -0
  292. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
  293. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +84 -0
  294. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
  295. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +40 -0
  296. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +34 -0
  297. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.js +77 -0
  298. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +14 -0
  299. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +216 -0
  300. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +11 -0
  301. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +63 -0
  302. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
  303. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +36 -0
  304. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +25 -0
  305. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.js +19 -0
  306. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +5 -0
  307. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +71 -0
  308. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -0
  309. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +8 -0
  310. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +4 -0
  311. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +51 -0
  312. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
  313. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +8 -0
  314. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +11 -0
  315. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +4 -0
  316. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +128 -0
  317. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
  318. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +9 -0
  319. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +12 -0
  320. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +5 -0
  321. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +55 -0
  322. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
  323. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +4 -0
  324. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +76 -0
  325. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +7 -0
  326. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +4 -0
  327. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +12 -0
  328. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +4 -0
  329. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +46 -0
  330. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +4 -0
  331. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +86 -0
  332. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
  333. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
  334. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
  335. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +86 -0
  336. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +7 -0
  337. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +85 -0
  338. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +12 -0
  339. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +114 -0
  340. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +22 -0
  341. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +164 -0
  342. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +12 -0
  343. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +113 -0
  344. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
  345. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +73 -0
  346. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +1 -0
  347. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +8 -0
  348. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +9 -0
  349. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +49 -0
  350. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
  351. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +13 -0
  352. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +114 -0
  353. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +7 -0
  354. package/components/maps/components/GpsMapTools/types.d.ts +34 -0
  355. package/components/maps/index.d.ts +4 -0
  356. package/components/maps/index.js +1 -0
  357. package/components/maps/utils/courseToCartesianAngle.d.ts +6 -0
  358. package/components/maps/utils/courseToCartesianAngle.js +8 -0
  359. package/components/maps/utils/courseToCssAngle.d.ts +9 -0
  360. package/components/maps/utils/courseToCssAngle.js +13 -0
  361. package/components/maps/utils/index.d.ts +6 -0
  362. package/components/maps/utils/index.js +1 -0
  363. package/components/maps/utils/isFeature.d.ts +2 -0
  364. package/components/maps/utils/isFeature.js +6 -0
  365. package/components/maps/utils/isFeatureCollection.d.ts +2 -0
  366. package/components/maps/utils/isFeatureCollection.js +6 -0
  367. package/components/maps/utils/isFeatureCollectionDraft.d.ts +6 -0
  368. package/components/maps/utils/isFeatureCollectionDraft.js +6 -0
  369. package/components/maps/utils/isGeometry.d.ts +2 -0
  370. package/components/maps/utils/isGeometry.js +6 -0
  371. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +11 -0
  372. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +39 -0
  373. package/contexts/RealTimeConsumerContext/constants.d.ts +3 -0
  374. package/contexts/RealTimeConsumerContext/constants.js +8 -0
  375. package/contexts/RealTimeConsumerContext/index.d.ts +3 -0
  376. package/contexts/RealTimeConsumerContext/index.js +1 -0
  377. package/contexts/RealTimeConsumerContext/store.d.ts +6 -0
  378. package/contexts/RealTimeConsumerContext/store.js +115 -0
  379. package/contexts/RealTimeConsumerContext/types.d.ts +64 -0
  380. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +11 -0
  381. package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +20 -0
  382. package/contexts/RealTimeProducerContext/constants.d.ts +6 -0
  383. package/contexts/RealTimeProducerContext/constants.js +12 -0
  384. package/contexts/RealTimeProducerContext/index.d.ts +4 -0
  385. package/contexts/RealTimeProducerContext/index.js +1 -0
  386. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +33 -0
  387. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +140 -0
  388. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +28 -0
  389. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +15 -0
  390. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.js +14 -0
  391. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +23 -0
  392. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +136 -0
  393. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +23 -0
  394. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +66 -0
  395. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +36 -0
  396. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +45 -0
  397. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +10 -0
  398. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +15 -0
  399. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +12 -0
  400. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +20 -0
  401. package/contexts/RealTimeProducerContext/store.d.ts +6 -0
  402. package/contexts/RealTimeProducerContext/store.js +136 -0
  403. package/contexts/RealTimeProducerContext/types.d.ts +196 -0
  404. package/contexts/index.d.ts +2 -0
  405. package/contexts/index.js +1 -0
  406. package/formatters/CourseFormatter/CourseFormatter.d.ts +14 -0
  407. package/formatters/CourseFormatter/CourseFormatter.js +33 -0
  408. package/formatters/CourseFormatter/CourseFormatter.styles.d.ts +2 -0
  409. package/formatters/CourseFormatter/CourseFormatter.styles.js +23 -0
  410. package/formatters/CourseFormatter/constants.d.ts +3 -0
  411. package/formatters/CourseFormatter/constants.js +6 -0
  412. package/formatters/CourseFormatter/dictionary.d.ts +12 -0
  413. package/formatters/CourseFormatter/dictionary.js +18 -0
  414. package/formatters/CourseFormatter/helper.d.ts +4 -0
  415. package/formatters/CourseFormatter/helper.js +28 -0
  416. package/formatters/CourseFormatter/index.d.ts +2 -0
  417. package/formatters/CourseFormatter/index.js +1 -0
  418. package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts +3 -0
  419. package/formatters/CourseFormatter/slots/CourseFormatterEnum.js +7 -0
  420. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +3 -0
  421. package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +12 -0
  422. package/formatters/CourseFormatter/test/CourserFormatter.test.d.ts +1 -0
  423. package/formatters/CourseFormatter/types.d.ts +24 -0
  424. package/formatters/index.d.ts +1 -0
  425. package/hooks/index.d.ts +2 -0
  426. package/hooks/index.js +1 -0
  427. package/hooks/useRealTimeConsumer/index.d.ts +6 -0
  428. package/hooks/useRealTimeConsumer/index.js +13 -0
  429. package/hooks/useRealTimeProducer/index.d.ts +6 -0
  430. package/hooks/useRealTimeProducer/index.js +13 -0
  431. package/index.d.ts +9 -0
  432. package/index.js +90 -0
  433. package/mockServiceWorker.js +307 -0
  434. package/not_recognized/index.js +406 -0
  435. package/package.json +93 -0
  436. package/test/HostThemeProviderMock.d.ts +10 -0
  437. package/test/TestAppWrapper.d.ts +29 -0
  438. package/test/TestFormAutoValidation.d.ts +4 -0
  439. package/test/constants.d.ts +69 -0
  440. package/test/constants_no_mock.d.ts +1 -0
  441. package/test/getNameDataTestId.d.ts +15 -0
  442. package/test/getNameDataTestId.js +16 -0
  443. package/test/index.d.ts +4 -0
  444. package/test/mocks.d.ts +27 -0
  445. package/test/setup.d.ts +0 -0
  446. package/test/types.d.ts +4 -0
  447. package/test/utils.d.ts +29 -0
  448. package/utils/ObjectQueue.d.ts +18 -0
  449. package/utils/ObjectQueue.js +33 -0
  450. package/utils/capitalizeFirstLetter.d.ts +4 -0
  451. package/utils/capitalizeFirstLetter.js +10 -0
  452. package/utils/containerQuery.d.ts +5 -0
  453. package/utils/formatDistanceToNow/formatDistanteToNow.d.ts +5 -0
  454. package/utils/formatDistanceToNow/index.d.ts +2 -0
  455. package/utils/formatDistanceToNow/types.d.ts +21 -0
  456. package/utils/getComponentSlotRoot.d.ts +9 -0
  457. package/utils/getComponentSlotRoot.js +13 -0
  458. package/utils/getComponentUtilityClass.d.ts +1 -0
  459. package/utils/getComponentUtilityClass.js +7 -0
  460. package/utils/getPaletteColor.d.ts +5 -0
  461. package/utils/getPaletteColor.js +18 -0
  462. package/utils/getSizeStyles/_test_/getSizeStyles.test.d.ts +1 -0
  463. package/utils/getSizeStyles/getSizeStyles.d.ts +28 -0
  464. package/utils/getSizeStyles/getSizeStyles.js +13 -0
  465. package/utils/getSizeStyles/index.d.ts +1 -0
  466. package/utils/getSizeStyles/index.js +1 -0
  467. package/utils/getThemeVariantColor.d.ts +6 -0
  468. package/utils/getTransformXY.d.ts +7 -0
  469. package/utils/getTypographyStyles.d.ts +11 -0
  470. package/utils/getTypographyStyles.js +8 -0
  471. package/utils/index.d.ts +8 -0
  472. package/utils/index.js +1 -0
  473. package/utils/isValidDate.d.ts +1 -0
  474. package/utils/isValidDate.js +6 -0
  475. package/utils/types.d.ts +23 -0
  476. package/vite-env.d.ts +4 -0
@@ -0,0 +1,30 @@
1
+ import { ThemeUserColor } from '@m4l/styles';
2
+ export declare const MODES: {
3
+ light: string;
4
+ dark: string;
5
+ };
6
+ export declare const MODES_BACKGROUNDS: Record<keyof Omit<typeof MODES, 'both'>, string>;
7
+ export declare const MODES_ITEMS: {
8
+ value: string;
9
+ title: string;
10
+ }[];
11
+ export declare const DEVICE_TYPES: {
12
+ automatic: string;
13
+ mobile: string;
14
+ desktop: string;
15
+ };
16
+ export declare const DEVICE_TYPES_ITEMS: {
17
+ value: string;
18
+ title: string;
19
+ }[];
20
+ export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
21
+ export declare const COLORS_THEME_ITEMS: Record<string, string>[];
22
+ export declare const USER = "carloszapata@gmail.com";
23
+ export declare const PWD = "Mayuscula123.";
24
+ export declare const DATABASE = "";
25
+ export declare const ENVIRONMENT_ASSETS = "d1";
26
+ export declare const HOST_API_LOCAL = "http://localhost:3000/domain";
27
+ export declare const HOST_API_REMOTE = "https://lab1.stage.made4labs.com/api/v1/domain";
28
+ export declare const HOST_STATIC_ASSETS = "https://s3.amazonaws.com/static.made4labs/environments";
29
+ export declare const DOMAIN_TOKEN = "lab1";
30
+ export declare const STORYBOOK_MODULE_ID = "login";
@@ -0,0 +1,2 @@
1
+ import { LayerStore } from '../../../src/components/maps/components/GpsMap/contexts/MapContext/types';
2
+ export declare const LAYER_MARKS_ABCD_my_gps_devices: LayerStore[];
@@ -0,0 +1 @@
1
+ export * from './StorybookWithMapProvider';
@@ -0,0 +1,10 @@
1
+ export declare const USER: any;
2
+ export declare const PWD: any;
3
+ export declare const DATABASE = "";
4
+ export declare const ENVIRONMENT_ASSETS: any;
5
+ export declare const HOST_API_LOCAL: any;
6
+ export declare const HOST_API_REMOTE: any;
7
+ export declare const HOST_STATIC_ASSETS: any;
8
+ export declare const DOMAIN_TOKEN: any;
9
+ export declare const STORYBOOK_MODULE_ID: any;
10
+ export declare const STORYBOOK_ISOLATION_MODULE_ID: any;
@@ -0,0 +1 @@
1
+ export * from './WithContexts';
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { ThemeSettingsType } from '@m4l/graphics';
3
+ export type AppThemeProps = {
4
+ themeMode: ThemeSettingsType['themeMode'];
5
+ themeColor: ThemeSettingsType['themeColor'];
6
+ children: ReactNode;
7
+ };
@@ -0,0 +1,2 @@
1
+ export * from './WithWindowsContainer';
2
+ export { WindowsContainer } from './subcomponents/WindowsContainer';
@@ -0,0 +1 @@
1
+ export * from './WindowsContainer';
@@ -0,0 +1,4 @@
1
+ export type WindowsContainerProps = {
2
+ children?: React.ReactNode;
3
+ style?: React.CSSProperties;
4
+ };
@@ -0,0 +1,3 @@
1
+ import { StorybookConfig } from '@storybook/react-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Initializes Mock Service Worker (MSW) for Storybook
3
+ *
4
+ * MSW is used to intercept and mock network requests during development and testing.
5
+ * This initialization configures MSW to work with Storybook's environment.
6
+ *
7
+ * Configuration details:
8
+ * - Sets up the service worker with the correct path based on the environment
9
+ * - Handles unhandled requests by bypassing them
10
+ * - Configures the service worker scope
11
+ *
12
+ * Environment-specific paths:
13
+ * - Development: /mockServiceWorker.js
14
+ * - Review (MR): /{library_name}/{branch_name}/mockServiceWorker.js
15
+ *
16
+ * The path is determined by the VITE_STORYBOOK_BASE_PATH environment variable:
17
+ * - If set, prepends the value to the service worker path
18
+ * - If not set, uses the root path
19
+ * @see https://github.com/mswjs/msw-storybook-addon#configuring-msw
20
+ */
21
+ export declare const initializeMSW: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './network-mocks';
2
+ export * from './config-msw';
@@ -0,0 +1 @@
1
+ export declare const mswHandlers: import('msw').HttpHandler[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { Interpolation } from '@mui/material';
2
+ import { ComponentsPropsList } from '@mui/material/styles';
3
+ declare module '@mui/material/styles' {
4
+ interface TypographyVariants {
5
+ subtitle: Record<string, any>;
6
+ subtitleDens: Record<string, any>;
7
+ paragraph: Record<string, any>;
8
+ paragraphDens: Record<string, any>;
9
+ body: Record<string, any>;
10
+ bodyDens: Record<string, any>;
11
+ action: Record<string, any>;
12
+ }
13
+ interface TypographyVariantsOptions {
14
+ subtitle: React.CSSProperties;
15
+ subtitleDens: React.CSSProperties;
16
+ paragraph: React.CSSProperties;
17
+ paragraphDens: React.CSSProperties;
18
+ body: React.CSSProperties;
19
+ bodyDens: React.CSSProperties;
20
+ action: React.CSSProperties;
21
+ }
22
+ }
23
+ declare module '@mui/material/Typography' {
24
+ interface TypographyPropsVariantOverrides {
25
+ subtitle: true;
26
+ subtitleDens: true;
27
+ paragraph: true;
28
+ paragraphDens: true;
29
+ body: true;
30
+ bodyDens: true;
31
+ action: true;
32
+ }
33
+ }
34
+ export type M4LOverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? Record<string, unknown> & {
35
+ ownerState: ComponentsPropsList[ComponentName] & Record<string, unknown>;
36
+ } : {}) & {
37
+ theme: Theme;
38
+ } & Record<string, unknown>>>;
@@ -0,0 +1,26 @@
1
+ export declare const BASE_SVG_COLOR = "#1E96DC";
2
+ export declare enum GNSSEnumMotionStatus {
3
+ off = 0,// - 0: apagado ( Ignición apagada velocidad 0)
4
+ moving = 1,// - 1: en movimiento ( Ignición prendida )
5
+ stopped = 2,// - 2: detenido ( Ignición prendida, motor apagado RPM en 0)
6
+ stoppedRalenti = 3,// - 3: stopped en ralenti ( Ignición prendida, motor encendido RPM > 0)
7
+ stoppedExcesiveRalenti = 4,// - 4:stopped en ralenti excesivo ( Ignición prendida, motor encendido RPM > 0)
8
+ towing = 5,// - 5: remolcado
9
+ powerSaving = 6,// - 6: En ahorro de energía
10
+ maxSpeed = 7
11
+ }
12
+ export declare enum GNSSEnumSignal {
13
+ reliable = 0,// - 0:Confiable
14
+ acceptable = 1,// - 1:Aceptable
15
+ noSignal = 2
16
+ }
17
+ export declare enum ADCPowerEnum {
18
+ ok = 0,// - 0: Ok
19
+ low = 1,// - 1: Low Batería baja
20
+ lost = 2
21
+ }
22
+ export declare enum AdminStatusEnum {
23
+ inactive = 0,// - 0: Inactivo
24
+ active = 1,// - 1: Activo
25
+ retired = 2
26
+ }
@@ -0,0 +1,21 @@
1
+ var GNSSEnumMotionStatus = /* @__PURE__ */ ((GNSSEnumMotionStatus2) => {
2
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["off"] = 0] = "off";
3
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["moving"] = 1] = "moving";
4
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["stopped"] = 2] = "stopped";
5
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["stoppedRalenti"] = 3] = "stoppedRalenti";
6
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["stoppedExcesiveRalenti"] = 4] = "stoppedExcesiveRalenti";
7
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["towing"] = 5] = "towing";
8
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["powerSaving"] = 6] = "powerSaving";
9
+ GNSSEnumMotionStatus2[GNSSEnumMotionStatus2["maxSpeed"] = 7] = "maxSpeed";
10
+ return GNSSEnumMotionStatus2;
11
+ })(GNSSEnumMotionStatus || {});
12
+ var GNSSEnumSignal = /* @__PURE__ */ ((GNSSEnumSignal2) => {
13
+ GNSSEnumSignal2[GNSSEnumSignal2["reliable"] = 0] = "reliable";
14
+ GNSSEnumSignal2[GNSSEnumSignal2["acceptable"] = 1] = "acceptable";
15
+ GNSSEnumSignal2[GNSSEnumSignal2["noSignal"] = 2] = "noSignal";
16
+ return GNSSEnumSignal2;
17
+ })(GNSSEnumSignal || {});
18
+ export {
19
+ GNSSEnumMotionStatus as G,
20
+ GNSSEnumSignal as a
21
+ };
@@ -0,0 +1,90 @@
1
+ import { Maybe } from '@m4l/core';
2
+ import { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
3
+ import { OperationalRoles, PropertyValue, PropertyValueWithTrack } from './general';
4
+ import { VPTCurrentMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentModem, VPTSettingsDIX, VPTCurrentOWTempX } from './vpts';
5
+ export type DeviceDataGeofence = {
6
+ id: number;
7
+ name: string;
8
+ inAt: Date;
9
+ };
10
+ export type DeviceDataPOI = {
11
+ id: number;
12
+ name: string;
13
+ inAt: Date;
14
+ };
15
+ export type DeviceCurrentVPTGnss = {
16
+ gnssAltitude: PropertyValue<number>;
17
+ gnssCourse: PropertyValue<number>;
18
+ gnssHdop: PropertyValue<number>;
19
+ gnssLatitude: PropertyValue<number>;
20
+ gnssLongitude: PropertyValue<number>;
21
+ gnssSatelliteQuantity: PropertyValue<number>;
22
+ gnssSpeed: PropertyValue<number>;
23
+ gnssAddress: PropertyValue<string>;
24
+ gnssMotionStatus: PropertyValueWithTrack<GNSSEnumMotionStatus>;
25
+ gnssSignal: PropertyValueWithTrack<GNSSEnumSignal>;
26
+ gnssOdometer: PropertyValue<number>;
27
+ geofences?: DeviceDataGeofence[];
28
+ pois?: DeviceDataPOI[];
29
+ };
30
+ /**
31
+ * Lo que viene del dispositivo.
32
+ */
33
+ export type DeviceCurrent = {
34
+ reportProfiles?: {
35
+ trackerEvents?: {
36
+ lastEvent?: {
37
+ date: string;
38
+ };
39
+ };
40
+ };
41
+ vpts?: {
42
+ vptGnss?: DeviceCurrentVPTGnss;
43
+ vptDiX?: VPTCurrentMultiple<VPTCurrentDIX>;
44
+ vptOWTempX?: VPTCurrentMultiple<VPTCurrentOWTempX>;
45
+ vptModem?: VPTCurrentModem;
46
+ vptADCPower?: VPTCurrentADCPower;
47
+ };
48
+ };
49
+ export type SettingsGroup = {
50
+ id: number;
51
+ name: string;
52
+ bgColor: string;
53
+ color: string;
54
+ };
55
+ export type PropertyType = 'string' | 'number' | 'boolean' | 'date' | 'time' | 'datetime' | 'array' | 'object' | 'function' | 'symbol' | 'undefined' | 'null' | 'unknown';
56
+ export type Property = {
57
+ value: string;
58
+ type: string;
59
+ };
60
+ export type Properties = {
61
+ [key: string]: Property;
62
+ };
63
+ /**
64
+ * Todas las configuraciones a nivel de vinculación.
65
+ */
66
+ export type DeviceSettings = {
67
+ name: string;
68
+ inTechinalOrder: PropertyValue<boolean>;
69
+ adminStatus: PropertyValue<string>;
70
+ active: boolean;
71
+ blocked?: boolean;
72
+ imageUrl: string;
73
+ operationalRoles?: OperationalRoles;
74
+ group?: Maybe<SettingsGroup>;
75
+ properties?: Properties;
76
+ vpts?: {
77
+ vptDix?: VPTSettingsDIX;
78
+ };
79
+ };
80
+ export type DeviceDataType = {
81
+ resourceSerialId: number;
82
+ current: DeviceCurrent;
83
+ settings: DeviceSettings;
84
+ consumerDecorators?: {
85
+ statusDescription?: PropertyValue<string>;
86
+ } & Record<string, PropertyValue<string>>;
87
+ producerDecorators?: {
88
+ [key: string]: PropertyValue<string>;
89
+ };
90
+ };
@@ -0,0 +1,21 @@
1
+ import { GNSSEnumMotionStatus } from './constants';
2
+ export type PropertyValueWithTrack<T> = {
3
+ value: T;
4
+ udaptedAt?: string;
5
+ };
6
+ export type PropertyValue<T> = T;
7
+ export type GNSSSatus = keyof typeof GNSSEnumMotionStatus;
8
+ export type OperationalRole = {
9
+ id: number;
10
+ firstName: string;
11
+ lastName: string;
12
+ documentId?: string;
13
+ mobile?: string;
14
+ assignedAt: Date;
15
+ };
16
+ export type OperationalRoles = {
17
+ driver: OperationalRole;
18
+ crew: OperationalRole[];
19
+ owner: OperationalRole;
20
+ [key: string]: OperationalRole | OperationalRole[];
21
+ };
@@ -0,0 +1,2 @@
1
+ export type { DeviceDataType, SettingsGroup } from './deviceData';
2
+ export { GNSSEnumMotionStatus as GNSSEnumStatus } from './constants';
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,43 @@
1
+ import { ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
2
+ import { MapPopupDeviceGpsOwnerState, MapPopupDeviceGpsSlotsType } from '../components/maps/components/GpsMap/popups/MapPopupDevice/types';
3
+ import { CourseFormatterOwnerState, CourseFormatterSlotsType } from '../formatters/CourseFormatter/types';
4
+ import { IndicatorCSQOwnerState, IndicatorCSQSlotsType } from '../components/indicators/IndicatorCSQ/types';
5
+ import { GaugeSlotsType } from '../components/gauges/Gauge/types';
6
+ declare module '@mui/material/styles' {
7
+ // Define the slots in the theme
8
+ interface ComponentNameToClassKey {
9
+ M4LMapPopupDevice: MapPopupDeviceGpsSlotsType;
10
+ M4LCourseFormatter: CourseFormatterSlotsType;
11
+ M4LCSQSignal: IndicatorCSQSlotsType;
12
+ M4LGauge: GaugeSlotsType;
13
+ }
14
+ interface ComponentsPropsList {
15
+ // Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
16
+ M4LMapPopupDevice: Partial<MapPopupDeviceGpsOwnerState>;
17
+ M4LCourseFormatter: Partial<CourseFormatterOwnerState>;
18
+ M4LCSQSignal: Partial<IndicatorCSQOwnerState>;
19
+ M4LGauge: Partial<GaugeOwnerState>;
20
+ }
21
+ interface Components {
22
+ M4LMapPopupDevice?: {
23
+ defaultProps?: ComponentsPropsList['M4LMapPopupDevice'];
24
+ styleOverrides?: ComponentsOverrides<Theme>['M4LMapPopupDevice'];
25
+ variants?: ComponentsVariants['M4LMapPopupDevice'];
26
+ };
27
+ M4LCourseFormatter?: {
28
+ defaultProps?: ComponentsPropsList['M4LCourseFormatter'];
29
+ styleOverrides?: ComponentsOverrides<Theme>['M4LCourseFormatter'];
30
+ variants?: ComponentsVariants['M4LCourseFormatter'];
31
+ };
32
+ M4LCSQSignal?: {
33
+ defaultProps?: ComponentsPropsList['M4LCSQSignal'];
34
+ styleOverrides?: ComponentsOverrides<Theme>['M4LCSQSignal'];
35
+ variants?: ComponentsVariants['M4LCSQSignal'];
36
+ };
37
+ M4LGauge?: {
38
+ defaultProps?: ComponentsPropsList['M4LGauge'];
39
+ styleOverrides?: ComponentsOverrides<Theme>['M4LGauge'];
40
+ variants?: ComponentsVariants['M4LGauge'];
41
+ };
42
+ }
43
+ }
@@ -0,0 +1,49 @@
1
+ import { ADCPowerEnum } from './constants';
2
+ import { PropertyValue, PropertyValueWithTrack } from './general';
3
+ export type VPTCurrentOWTempX = {
4
+ owTempXStatus: PropertyValueWithTrack<boolean>;
5
+ owTempXTemp: PropertyValueWithTrack<number>;
6
+ };
7
+ export type VPTCurrentDIX = {
8
+ diXValue: PropertyValueWithTrack<boolean>;
9
+ diXStatus: PropertyValueWithTrack<boolean>;
10
+ };
11
+ export type VPTCurrentMultiple<T> = {
12
+ [key: number]: T;
13
+ };
14
+ export type VPTSettingsDIX = {
15
+ pName: string;
16
+ pAlias?: string;
17
+ pRdOpenTitle: string;
18
+ pRdCloseTitle: string;
19
+ /**
20
+ * Ids de los iconos, que corresponden al parametro que se necesita para llamar el endpoint de icons
21
+ */
22
+ pIconId: string;
23
+ pIconOpenId: string;
24
+ pIconCloseId: string;
25
+ };
26
+ export type VPTSettingsAVX = {
27
+ name: string;
28
+ alias?: string;
29
+ alarmTime: number;
30
+ magnitudeSymbol: string;
31
+ lowerLimit: number;
32
+ upperLimit: number;
33
+ };
34
+ export type VPTSettingsDIXS = {
35
+ [key: number]: VPTSettingsDIX;
36
+ };
37
+ export type VPTCurrentADCPower = {
38
+ mainStatus: PropertyValue<ADCPowerEnum>;
39
+ mainVolt: PropertyValue<number>;
40
+ backupVolt: PropertyValue<number>;
41
+ backupStatus: PropertyValue<ADCPowerEnum>;
42
+ backupChargeLevel: PropertyValue<number>;
43
+ };
44
+ export type VPTCurrentModem = {
45
+ lastConnection: string;
46
+ lastEvent: string;
47
+ modemCsq: PropertyValue<number>;
48
+ callActive: PropertyValue<boolean>;
49
+ };
@@ -0,0 +1,4 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 13H6C3.245 13 1 10.755 1 8C1 5.245 3.245 3 6 3H10C12.755 3 15 5.245 15 8C15 10.755 12.755 13 10 13ZM6 4C3.795 4 2 5.795 2 8C2 10.205 3.795 12 6 12H10C12.205 12 14 10.205 14 8C14 5.795 12.205 4 10 4H6Z" fill="#2F3737"/>
3
+ <path d="M10 11C8.345 11 7 9.655 7 8C7 6.345 8.345 5 10 5C11.655 5 13 6.345 13 8C13 9.655 11.655 11 10 11ZM10 6C8.895 6 8 6.895 8 8C8 9.105 8.895 10 10 10C11.105 10 12 9.105 12 8C12 6.895 11.105 6 10 6Z" fill="#2F3737"/>
4
+ </svg>
@@ -0,0 +1,6 @@
1
+ import { DeviceProps } from './types';
2
+ /**
3
+ * Componente que muestra un dispositivo con su icono y descripción, basada en las propiedades del dispositivo que son
4
+ * reemplazadas de acuerdo a la etiqueta de visualización que normalmente viene de las preferencias del usuario autenticado.
5
+ */
6
+ export declare const DeviceLabel: (props: DeviceProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useEnvironment, getPropertyByString } from "@m4l/core";
3
+ import { D as DeviceRootStyled, I as ImageStyled, L as LabelStyled } from "./slots/DeviceLabelSlots.js";
4
+ import clsx from "clsx";
5
+ import { getComponentSlotRoot } from "@m4l/components";
6
+ import { C as COMPONET_KEY_COMPONENT } from "./constants.js";
7
+ const regex = /#[^#]+#/g;
8
+ const DeviceLabel = (props) => {
9
+ const { deviceData, labelTemplate = "#settings.name# #resourceSerialId#", withImage, className } = props;
10
+ const { host_static_assets, environment_assets } = useEnvironment();
11
+ const src = `${host_static_assets}/${environment_assets}/frontend/components/device/assets/images/${deviceData?.settings?.imageUrl}`;
12
+ let label = labelTemplate;
13
+ const matches = label.match(regex);
14
+ if (matches) {
15
+ for (const match of matches) {
16
+ const r = getPropertyByString(props.deviceData, match.slice(1, -1));
17
+ if (typeof r === "string" || typeof r === "number" || typeof r === "boolean") {
18
+ label = label.replaceAll(match, r + "");
19
+ } else {
20
+ label = label.replaceAll(match, `#${match.slice(1, -1)}#`);
21
+ }
22
+ }
23
+ }
24
+ const classRoot = getComponentSlotRoot(COMPONET_KEY_COMPONENT);
25
+ return /* @__PURE__ */ jsxs(DeviceRootStyled, { className: clsx(className, classRoot), children: [
26
+ withImage && /* @__PURE__ */ jsx(ImageStyled, { src, width: 24, height: 24 }),
27
+ /* @__PURE__ */ jsx(LabelStyled, { variant: "bodyDens", children: label })
28
+ ] });
29
+ };
30
+ export {
31
+ DeviceLabel as D
32
+ };
@@ -0,0 +1,2 @@
1
+ import { DeviceStyles } from './types';
2
+ export declare const myDeviceStyles: DeviceStyles;
@@ -0,0 +1,33 @@
1
+ const myDeviceStyles = {
2
+ /**
3
+ * TODO: Documentar
4
+ */
5
+ root: ({ theme }) => ({
6
+ display: "flex",
7
+ alignItems: "center",
8
+ gap: theme.vars.size.baseSpacings.sp2,
9
+ overflow: "hidden"
10
+ }),
11
+ /**
12
+ * Slot image
13
+ */
14
+ image: () => ({
15
+ width: "32px",
16
+ height: "auto",
17
+ maxHeight: "20px",
18
+ objectFit: "cover"
19
+ }),
20
+ /**
21
+ * Slot label
22
+ */
23
+ label: () => ({
24
+ alignItems: "center",
25
+ display: "inline-block",
26
+ whiteSpace: "nowrap",
27
+ overflow: "hidden",
28
+ textOverflow: "ellipsis"
29
+ })
30
+ };
31
+ export {
32
+ myDeviceStyles as m
33
+ };
@@ -0,0 +1,2 @@
1
+ export declare const COMPONENT_TEST_ID = "M4LDevice";
2
+ export declare const COMPONET_KEY_COMPONENT = "M4LDevice";
@@ -0,0 +1,4 @@
1
+ const COMPONET_KEY_COMPONENT = "M4LDevice";
2
+ export {
3
+ COMPONET_KEY_COMPONENT as C
4
+ };
@@ -0,0 +1 @@
1
+ export * from './DeviceLabel';
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ export declare const DeviceRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
2
+ export declare const ImageStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/Image').ImageProps, keyof import('@m4l/components/src/components/Image').ImageProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
3
+ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps, keyof import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -0,0 +1,22 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { C as COMPONET_KEY_COMPONENT } from "../constants.js";
3
+ import { m as myDeviceStyles } from "../DeviceLabel.styles.js";
4
+ import { D as DeviceSlots } from "./slots.js";
5
+ import { Image, Typography } from "@m4l/components";
6
+ const DeviceRootStyled = styled("div", {
7
+ name: COMPONET_KEY_COMPONENT,
8
+ slot: DeviceSlots.root
9
+ })(myDeviceStyles?.root);
10
+ const ImageStyled = styled(Image, {
11
+ name: COMPONET_KEY_COMPONENT,
12
+ slot: DeviceSlots.image
13
+ })(myDeviceStyles?.image);
14
+ const LabelStyled = styled(Typography, {
15
+ name: COMPONET_KEY_COMPONENT,
16
+ slot: DeviceSlots.label
17
+ })(myDeviceStyles?.label);
18
+ export {
19
+ DeviceRootStyled as D,
20
+ ImageStyled as I,
21
+ LabelStyled as L
22
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum DeviceSlots {
2
+ root = "root",
3
+ image = "image",
4
+ label = "label"
5
+ }
@@ -0,0 +1,9 @@
1
+ var DeviceSlots = /* @__PURE__ */ ((DeviceSlots2) => {
2
+ DeviceSlots2["root"] = "root";
3
+ DeviceSlots2["image"] = "image";
4
+ DeviceSlots2["label"] = "label";
5
+ return DeviceSlots2;
6
+ })(DeviceSlots || {});
7
+ export {
8
+ DeviceSlots as D
9
+ };
@@ -0,0 +1,26 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ import { DeviceSlots } from './slots/slots';
3
+ import { COMPONET_KEY_COMPONENT } from './constants';
4
+ import { Theme } from '@mui/material/styles';
5
+ import { DeviceDataType } from '../../@types';
6
+ export type DeviceProps = {
7
+ /**
8
+ * Plantilla de la etiqueta que se muestra en el componente.
9
+ */
10
+ labelTemplate?: string;
11
+ /**
12
+ * Información del dispositivo (lo mínimos)
13
+ */
14
+ deviceData: DeviceDataType;
15
+ /**
16
+ * Indica si se muestra la imagen del vehículo
17
+ */
18
+ withImage?: boolean;
19
+ /**
20
+ * Permite recibir las clases de algun slot
21
+ */
22
+ className?: string;
23
+ };
24
+ export type DeviceSlotsType = keyof typeof DeviceSlots;
25
+ export type DeviceOwnerState = {};
26
+ export type DeviceStyles = Partial<OverridesStyleRules<DeviceSlotsType, typeof COMPONET_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -0,0 +1,6 @@
1
+ import { DeviceStatusProps } from './types';
2
+ /**
3
+ * Componente que muestra un dispositivo con su icono y descripción, basada en las propiedades del dispositivo que son
4
+ * reemplazadas de acuerdo a la etiqueta de visualización que normalmente viene de las preferencias del usuario autenticado.
5
+ */
6
+ export declare const DeviceStatus: (props: DeviceStatusProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useEnvironment } from "@m4l/core";
3
+ import { D as DeviceStatusRootStyled } from "./slots/DeviceStatusSlots.js";
4
+ import { Icon } from "@m4l/components";
5
+ import { u as useDeviceStatus } from "./hooks/useDeviceStatus.js";
6
+ const DeviceStatus = (props) => {
7
+ const { deviceData } = props;
8
+ const { host_static_assets, environment_assets } = useEnvironment();
9
+ const { iconKey, color } = useDeviceStatus({ deviceData });
10
+ const src = `${host_static_assets}/${environment_assets}/frontend/components/device_status/assets/icons/${iconKey}.svg`;
11
+ return /* @__PURE__ */ jsx(DeviceStatusRootStyled, { ownerState: { iconKey }, children: /* @__PURE__ */ jsx(Icon, { src, color }) });
12
+ };
13
+ export {
14
+ DeviceStatus as D
15
+ };
@@ -0,0 +1,2 @@
1
+ import { DeviceStatusStyles } from './types';
2
+ export declare const deviceStatusStyles: DeviceStatusStyles;
@@ -0,0 +1,13 @@
1
+ const deviceStatusStyles = {
2
+ /**
3
+ * TODO: Documentar
4
+ */
5
+ root: () => ({
6
+ display: "flex",
7
+ alignItems: "center"
8
+ // flexGrow: 1,
9
+ })
10
+ };
11
+ export {
12
+ deviceStatusStyles as d
13
+ };
@@ -0,0 +1,2 @@
1
+ export declare const COMPONENT_TEST_ID = "M4LDeviceStatus";
2
+ export declare const COMPONET_KEY_COMPONENT = "M4LDeviceStatus";