@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.
- package/@types/deviceData.d.ts +12 -9
- package/@types/general.d.ts +1 -1
- package/@types/index.d.ts +2 -2
- package/@types/types.d.ts +25 -1
- package/@types/vpts.d.ts +6 -3
- package/components/Device/Device.d.ts +6 -0
- package/components/Device/Device.js +32 -0
- package/components/Device/Device.styles.d.ts +2 -0
- package/components/Device/Device.styles.js +95 -0
- package/components/Device/constants.d.ts +14 -0
- package/components/Device/constants.js +4 -0
- package/components/Device/dictionary.d.ts +14 -0
- package/components/Device/dictionary.js +19 -0
- package/components/{DeviceStatus/hooks/helper.d.ts → Device/helpers/helperDeviceStatus.d.ts} +1 -1
- package/components/{DeviceStatus/hooks/helper.js → Device/helpers/helperDeviceStatus.js} +5 -5
- package/components/Device/helpers.d.ts +18 -0
- package/components/Device/helpers.js +27 -0
- package/components/Device/hooks/constants.d.ts +16 -0
- package/components/{DeviceStatus → Device}/hooks/constants.js +13 -15
- package/components/Device/hooks/useDevice.d.ts +12 -0
- package/components/Device/hooks/useDevice.js +23 -0
- package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.d.ts +2 -2
- package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.js +4 -4
- package/components/Device/icons.d.ts +11 -0
- package/components/{DeviceStatus → Device}/icons.js +2 -2
- package/components/Device/index.d.ts +6 -0
- package/components/Device/slots/DeviceSlots.d.ts +15 -0
- package/components/Device/slots/DeviceSlots.js +32 -0
- package/components/Device/slots/slots.d.ts +7 -0
- package/components/Device/slots/slots.js +11 -0
- package/components/Device/types.d.ts +30 -0
- package/components/DeviceLabel/DeviceLabel.js +1 -1
- package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +9 -3
- package/components/DeviceLabel/types.d.ts +2 -2
- package/components/DeviceStatus/DeviceStatus.js +3 -15
- package/components/DeviceStatus/DeviceStatus.styles.js +1 -13
- package/components/DeviceStatus/constants.js +1 -4
- package/components/DeviceStatus/dictionary.d.ts +10 -10
- package/components/DeviceStatus/dictionary.js +1 -12
- package/components/DeviceStatus/icons.d.ts +1 -1
- package/components/DeviceStatus/index.d.ts +3 -2
- package/components/DeviceStatus/slots/DeviceStatusSlots.js +1 -11
- package/components/DeviceStatus/slots/slots.js +1 -7
- package/components/index.d.ts +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.styles.js +2 -2
- package/components/indicators/IndicatorBattery/dictionary.js +5 -1
- package/components/indicators/IndicatorBattery/index.d.ts +1 -0
- package/components/indicators/IndicatorCSQ/IndicatorCSQ.js +7 -5
- package/components/indicators/IndicatorCSQ/constants.d.ts +2 -2
- package/components/indicators/IndicatorCSQ/constants.js +4 -3
- package/components/indicators/IndicatorCSQ/dictionary.d.ts +5 -2
- package/components/indicators/IndicatorCSQ/dictionary.js +15 -12
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +22 -2
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.js +15 -29
- package/components/indicators/IndicatorCSQ/index.d.ts +3 -3
- package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.js +6 -6
- package/components/indicators/IndicatorCSQ/types.d.ts +6 -2
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.d.ts +5 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.js +15 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.d.ts +2 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.js +41 -0
- package/components/indicators/IndicatorValueAndMagnitude/constants.d.ts +2 -0
- package/components/indicators/IndicatorValueAndMagnitude/constants.js +7 -0
- package/components/indicators/IndicatorValueAndMagnitude/index.d.ts +1 -0
- package/components/indicators/IndicatorValueAndMagnitude/index.js +1 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/slots.d.ts +6 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/slots.js +10 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/styled.d.ts +12 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/styled.js +27 -0
- package/components/indicators/IndicatorValueAndMagnitude/types.d.ts +14 -0
- package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.js +25 -0
- package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.styles.js +76 -0
- package/components/indicators/IndicatorValueStatus/constants.js +8 -0
- package/components/indicators/IndicatorValueStatus/index.js +1 -0
- package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusEnum.js +11 -0
- package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusSlots.js +32 -0
- package/components/indicators/IndicatorValueStatus/types.d.ts +4 -0
- package/components/indicators/index.d.ts +2 -0
- package/components/maps/components/GpsMap/GpsMap.js +26 -9
- package/components/maps/components/GpsMap/GpsMap.styles.js +81 -93
- package/components/maps/components/GpsMap/Leaflet.styles.d.ts +6 -0
- package/components/maps/components/GpsMap/Leaflet.styles.js +535 -0
- package/components/maps/components/GpsMap/classes/index.d.ts +1 -1
- package/components/maps/components/GpsMap/classes/index.js +6 -76
- package/components/maps/components/GpsMap/classes/types.d.ts +5 -16
- package/components/maps/components/GpsMap/constants.d.ts +9 -3
- package/components/maps/components/GpsMap/constants.js +25 -13
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +4 -26
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +50 -75
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +98 -87
- package/components/maps/components/GpsMap/dictionary.d.ts +19 -8
- package/components/maps/components/GpsMap/dictionary.js +30 -17
- package/components/maps/components/GpsMap/external/{Control → MapControl}/index.d.ts +3 -3
- package/components/maps/components/GpsMap/external/{Control → MapControl}/index.js +9 -7
- package/components/maps/components/GpsMap/external/MapControl/types.d.ts +26 -0
- package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +3 -3
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +3 -2
- package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
- package/components/maps/components/GpsMap/hooks/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/index.js +1 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js +31 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/{useDisableZoomEvents → useDisableMapEventsOnMouseOver}/index.js +10 -2
- package/components/maps/components/GpsMap/icons.d.ts +10 -7
- package/components/maps/components/GpsMap/icons.js +17 -16
- package/components/maps/components/GpsMap/index.d.ts +2 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +9 -1
- package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
- package/components/maps/components/GpsMap/slots/slots.d.ts +27 -4
- package/components/maps/components/GpsMap/slots/slots.js +16 -7
- package/components/maps/components/GpsMap/slots/styled.d.ts +18 -0
- package/components/maps/components/GpsMap/slots/styled.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/index.js +8 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.js +3 -3
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/types.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.js +64 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +42 -87
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.js +24 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.js +30 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js +45 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/types.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.d.ts +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.js +26 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +71 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/types.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/types.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts → TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.js +38 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +87 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +22 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.d.ts +21 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.js +41 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.js +47 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.js +107 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.js +33 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +88 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/types.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/types.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.js +31 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js +154 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +25 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +37 -14
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +29 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +14 -6
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +2 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +26 -20
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +1 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.js +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.d.ts +18 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +19 -17
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +18 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +2 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +2 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +2 -1
- package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.js +8 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/darkStyles.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +82 -59
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +25 -15
- package/components/maps/components/GpsMap/types.d.ts +24 -5
- package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +1 -0
- package/components/maps/components/GpsMapTools/index.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +29 -32
- package/components/maps/components/GpsMapTools/types.d.ts +0 -16
- package/components/maps/index.d.ts +1 -0
- package/components/maps/utils/coordsToQuadKey.d.ts +4 -0
- package/components/maps/{components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js → utils/coordsToQuadKey.js} +2 -2
- package/components/maps/utils/index.d.ts +1 -0
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +67 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +115 -30
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +5 -38
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +9 -36
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +27 -19
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +3 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +9 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +1 -1
- package/formatters/CourseFormatter/CourseFormatter.js +6 -4
- package/formatters/CourseFormatter/helper.d.ts +2 -1
- package/formatters/CourseFormatter/helper.js +2 -4
- package/formatters/CourseFormatter/index.d.ts +1 -0
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +1 -1
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +2 -2
- package/formatters/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +94 -59
- package/package.json +16 -3
- package/utils/cssToCSSProperties.d.ts +37 -0
- package/utils/getPrecisionFromHdop/constants.d.ts +13 -0
- package/utils/getPrecisionFromHdop/constants.js +73 -0
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +31 -0
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +59 -0
- package/utils/getPrecisionFromHdop/index.d.ts +3 -0
- package/utils/getPrecisionFromHdop/index.js +1 -0
- package/utils/getPrecisionFromHdop/types.d.ts +42 -0
- package/utils/getVptUpdatedAtWithGuard.d.ts +4 -0
- package/utils/getVptUpdatedAtWithGuard.js +13 -0
- package/utils/getVptValueWithGuard.d.ts +9 -0
- package/utils/getVptValueWithGuard.js +18 -0
- package/utils/index.d.ts +3 -0
- package/components/DeviceStatus/hooks/constants.d.ts +0 -11
- package/components/maps/components/GpsMap/external/Control/types.d.ts +0 -7
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +0 -4
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +0 -112
- package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +0 -6
- package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +0 -4
- package/components/maps/components/GpsMap/slots/GpsMapSlots.js +0 -24
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +0 -13
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +0 -10
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +0 -58
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +0 -17
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +0 -18
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +0 -139
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -12
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +0 -52
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -8
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +0 -43
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +0 -30
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +0 -26
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +0 -133
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +0 -39
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +0 -73
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +0 -25
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +0 -40
- /package/components/{maps/components/GpsMap/contexts/MapContext/helper.js → Device/index.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/{index.d.ts → MeasureTool.d.ts} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { a as GNSSEnumSignal } from "../../../../@types/constants.js";
|
|
2
1
|
import { S as SourceDataBase } from "../base.js";
|
|
3
|
-
import {
|
|
4
|
-
import { g as getDummyRandomCoordinates } from "./helpers.js";
|
|
2
|
+
import { R as REAL_TIME_RT_DEVICES_DUMMMY_INITIAL, d as devicesIds } from "./constants.js";
|
|
5
3
|
class SourceDataDummy extends SourceDataBase {
|
|
6
4
|
intervalId = null;
|
|
7
5
|
constructor(config, onMessages) {
|
|
@@ -11,44 +9,13 @@ class SourceDataDummy extends SourceDataBase {
|
|
|
11
9
|
* Start the source data
|
|
12
10
|
*/
|
|
13
11
|
start() {
|
|
14
|
-
let first = true;
|
|
15
12
|
this.intervalId = setInterval(() => {
|
|
16
13
|
const deviceIndex = parseInt(Math.random() * devicesIds.length + "");
|
|
17
14
|
const deviceId = devicesIds[deviceIndex];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
gnssAddress: "Vía Sabanalarga - Barranquilla, Km 2.42 Sabanalarga - Campeche Sabanalarga, Atlántico",
|
|
23
|
-
gnssSpeed: Math.random() * 120,
|
|
24
|
-
gnssMotionStatus: { value: devicesStatusIds[deviceIndex] },
|
|
25
|
-
gnssCourse: Math.random() * 360,
|
|
26
|
-
...getDummyRandomCoordinates(),
|
|
27
|
-
gnssSignal: {
|
|
28
|
-
value: GNSSEnumSignal.reliable,
|
|
29
|
-
udaptedAt: void 0
|
|
30
|
-
},
|
|
31
|
-
gnssHdop: 0,
|
|
32
|
-
gnssSatelliteQuantity: 0,
|
|
33
|
-
gnssAltitude: 0,
|
|
34
|
-
gnssOdometer: 0
|
|
35
|
-
},
|
|
36
|
-
vptModem: {
|
|
37
|
-
lastConnection: (/* @__PURE__ */ new Date()).toISOString(),
|
|
38
|
-
lastEvent: (/* @__PURE__ */ new Date()).toISOString(),
|
|
39
|
-
modemCsq: 31,
|
|
40
|
-
callActive: false
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
const dummyData = {
|
|
46
|
-
type: first ? "new" : "update",
|
|
47
|
-
resourceSerialId: deviceId,
|
|
48
|
-
payload
|
|
49
|
-
};
|
|
50
|
-
first = false;
|
|
51
|
-
this.onMessages(this.config.resourceTypeId, [dummyData]);
|
|
15
|
+
REAL_TIME_RT_DEVICES_DUMMMY_INITIAL[deviceId];
|
|
16
|
+
{
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
52
19
|
}, 1e3);
|
|
53
20
|
}
|
|
54
21
|
/**
|
|
@@ -1,36 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
bgColor: string;
|
|
11
|
-
color: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const group2: {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
bgColor: string;
|
|
17
|
-
color: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const group3: {
|
|
20
|
-
id: number;
|
|
21
|
-
name: string;
|
|
22
|
-
bgColor: string;
|
|
23
|
-
color: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const group4: {
|
|
26
|
-
id: number;
|
|
27
|
-
name: string;
|
|
28
|
-
bgColor: string;
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const group5: {
|
|
32
|
-
id: number;
|
|
33
|
-
name: string;
|
|
34
|
-
bgColor: string;
|
|
35
|
-
color: string;
|
|
36
|
-
};
|
|
1
|
+
import { SettingsGroup } from '../../../../@types';
|
|
2
|
+
export declare const groupForest: SettingsGroup;
|
|
3
|
+
export declare const group1: SettingsGroup;
|
|
4
|
+
export declare const group2: SettingsGroup;
|
|
5
|
+
export declare const group3: SettingsGroup;
|
|
6
|
+
export declare const group4: SettingsGroup;
|
|
7
|
+
export declare const group5: SettingsGroup;
|
|
8
|
+
export declare const group6: SettingsGroup;
|
|
9
|
+
export declare const group7: SettingsGroup;
|
|
@@ -1,45 +1,53 @@
|
|
|
1
|
-
const
|
|
1
|
+
const groupForest = {
|
|
2
2
|
id: 1,
|
|
3
3
|
name: "Group bien largo en el texo para que haga elipsisi",
|
|
4
|
-
bgColor: "#CFD8DC"
|
|
5
|
-
color: "#000000"
|
|
4
|
+
bgColor: "#CFD8DC"
|
|
6
5
|
};
|
|
7
6
|
const group1 = {
|
|
8
7
|
id: 1,
|
|
9
8
|
name: "Group bien largo en el texo para que haga elipsisi",
|
|
10
|
-
bgColor: "#B45BAB"
|
|
11
|
-
color: "#FFFFFF"
|
|
9
|
+
bgColor: "#B45BAB"
|
|
12
10
|
};
|
|
13
11
|
const group2 = {
|
|
14
12
|
id: 2,
|
|
15
13
|
name: "Group 2",
|
|
16
|
-
bgColor: "#24A188"
|
|
17
|
-
color: "#FFFFFF"
|
|
14
|
+
bgColor: "#24A188"
|
|
18
15
|
};
|
|
19
16
|
const group3 = {
|
|
20
17
|
id: 3,
|
|
21
18
|
name: "Group 3",
|
|
22
|
-
bgColor: "#2A3232"
|
|
23
|
-
color: "#FFFFFF"
|
|
19
|
+
bgColor: "#2A3232"
|
|
24
20
|
};
|
|
25
21
|
const group4 = {
|
|
26
22
|
id: 4,
|
|
27
23
|
name: "Group 4",
|
|
28
|
-
bgColor: "#E1E4B5"
|
|
29
|
-
color: "#000000"
|
|
24
|
+
bgColor: "#E1E4B5"
|
|
30
25
|
};
|
|
31
26
|
const group5 = {
|
|
32
27
|
id: 5,
|
|
33
28
|
name: "Group 5",
|
|
34
|
-
bgColor: "#EEFF00"
|
|
29
|
+
bgColor: "#EEFF00"
|
|
35
30
|
//Amarillo
|
|
36
|
-
|
|
31
|
+
};
|
|
32
|
+
const group6 = {
|
|
33
|
+
id: 6,
|
|
34
|
+
name: "Group 6",
|
|
35
|
+
bgColor: "#FF0000"
|
|
36
|
+
//Rojo
|
|
37
|
+
};
|
|
38
|
+
const group7 = {
|
|
39
|
+
id: 7,
|
|
40
|
+
name: "Group 7",
|
|
41
|
+
bgColor: "#0000FF"
|
|
42
|
+
//Azul
|
|
37
43
|
};
|
|
38
44
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
group6 as a,
|
|
46
|
+
group5 as b,
|
|
47
|
+
group4 as c,
|
|
48
|
+
group3 as d,
|
|
49
|
+
group2 as e,
|
|
50
|
+
group1 as f,
|
|
51
|
+
group7 as g,
|
|
52
|
+
groupForest as h
|
|
45
53
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { REAL_TIME_RT_DEVICES_DUMMMY_INITIAL } from './constants';
|
|
1
2
|
export declare const centerLatDefault = 6.216601050665157;
|
|
2
3
|
export declare const centerLonDafault = -75.58660090089732;
|
|
3
|
-
export declare const radiusDefault =
|
|
4
|
+
export declare const radiusDefault = 500;
|
|
4
5
|
/**
|
|
5
6
|
* getDummyRandomCoordinates
|
|
6
7
|
*/
|
|
7
|
-
export declare function getDummyRandomCoordinates(lat?: number, lon?: number, radius?: number): {
|
|
8
|
+
export declare function getDummyRandomCoordinates(fixedCoordinatesId?: keyof typeof REAL_TIME_RT_DEVICES_DUMMMY_INITIAL | undefined, lat?: number, lon?: number, radius?: number): {
|
|
8
9
|
gnssLatitude: number;
|
|
9
10
|
gnssLongitude: number;
|
|
10
11
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { R as REAL_TIME_RT_DEVICES_DUMMMY_INITIAL } from "./constants.js";
|
|
1
2
|
const centerLatDefault = 6.216601050665157;
|
|
2
3
|
const centerLonDafault = -75.58660090089732;
|
|
3
|
-
const radiusDefault =
|
|
4
|
-
function getDummyRandomCoordinates(lat = centerLatDefault, lon = centerLonDafault, radius = radiusDefault) {
|
|
4
|
+
const radiusDefault = 500;
|
|
5
|
+
function getDummyRandomCoordinates(fixedCoordinatesId = void 0, lat = centerLatDefault, lon = centerLonDafault, radius = radiusDefault) {
|
|
6
|
+
if (fixedCoordinatesId) {
|
|
7
|
+
return {
|
|
8
|
+
gnssLatitude: REAL_TIME_RT_DEVICES_DUMMMY_INITIAL[fixedCoordinatesId]?.current.vpts?.vptGnss?.gnssLatitude || 0,
|
|
9
|
+
gnssLongitude: REAL_TIME_RT_DEVICES_DUMMMY_INITIAL[fixedCoordinatesId]?.current.vpts?.vptGnss?.gnssLongitude || 0
|
|
10
|
+
};
|
|
11
|
+
}
|
|
5
12
|
const earthRadius = 6378137;
|
|
6
13
|
const radiusInDegrees = radius / earthRadius * (180 / Math.PI);
|
|
7
14
|
const angle = Math.random() * 2 * Math.PI;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { C as
|
|
3
|
-
import { g as
|
|
2
|
+
import { C as CourseFormatterRootStyled } from "./slots/CourseFormatterSlots.js";
|
|
3
|
+
import { g as getCourseDirection } from "./helper.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { C as CourseFormatterSlots } from "./slots/CourseFormatterEnum.js";
|
|
6
6
|
import { D as DEFAULT_GAP_ANGLE, C as COMPONET_KEY_COMPONENT } from "./constants.js";
|
|
7
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
7
8
|
import { c as courseToCartesianAngle } from "../../components/maps/utils/courseToCartesianAngle.js";
|
|
8
9
|
const CourseFormatter = (props) => {
|
|
9
10
|
const {
|
|
@@ -16,10 +17,11 @@ const CourseFormatter = (props) => {
|
|
|
16
17
|
size,
|
|
17
18
|
variant: "standard"
|
|
18
19
|
};
|
|
20
|
+
const { getLabel } = useModuleDictionary();
|
|
19
21
|
const angle = courseToCartesianAngle(course);
|
|
20
|
-
const ret =
|
|
22
|
+
const ret = getCourseDirection(getLabel, angle, gap);
|
|
21
23
|
return /* @__PURE__ */ jsx(
|
|
22
|
-
|
|
24
|
+
CourseFormatterRootStyled,
|
|
23
25
|
{
|
|
24
26
|
ownerState: { ...ownerState },
|
|
25
27
|
...getPropDataTestId(COMPONET_KEY_COMPONENT, CourseFormatterSlots.root, dataTestId),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
1
2
|
/**
|
|
2
3
|
* Helper function to get the cardinal direction from an angle.
|
|
3
4
|
*/
|
|
4
|
-
export declare const
|
|
5
|
+
export declare const getCourseDirection: (getLabel: GetLabelType, angle: number, gap?: number) => string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
2
1
|
import { C as CF_DICCTIONARY } from "./dictionary.js";
|
|
3
2
|
import { D as DEFAULT_GAP_ANGLE } from "./constants.js";
|
|
4
|
-
const
|
|
5
|
-
const { getLabel } = useModuleDictionary();
|
|
3
|
+
const getCourseDirection = (getLabel, angle, gap = DEFAULT_GAP_ANGLE) => {
|
|
6
4
|
let ret;
|
|
7
5
|
if (angle >= 0 + gap && angle < 90 - gap) {
|
|
8
6
|
ret = getLabel(CF_DICCTIONARY.LABEL_NORTH_EAST);
|
|
@@ -24,5 +22,5 @@ const getCardinalDirection = (angle, gap = DEFAULT_GAP_ANGLE) => {
|
|
|
24
22
|
return ret;
|
|
25
23
|
};
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
getCourseDirection as g
|
|
28
26
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const CourseFormatterRootStyled: 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> & Partial<import('../types').CourseFormatterOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').CourseFormatterOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
@@ -3,10 +3,10 @@ import { C as COMPONET_KEY_COMPONENT } from "../constants.js";
|
|
|
3
3
|
import { c as courseFormatterStyles } from "../CourseFormatter.styles.js";
|
|
4
4
|
import { C as CourseFormatterSlots } from "./CourseFormatterEnum.js";
|
|
5
5
|
import { Typography } from "@m4l/components";
|
|
6
|
-
const
|
|
6
|
+
const CourseFormatterRootStyled = styled(Typography, {
|
|
7
7
|
name: COMPONET_KEY_COMPONENT,
|
|
8
8
|
slot: CourseFormatterSlots.root
|
|
9
9
|
})(courseFormatterStyles?.root);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
CourseFormatterRootStyled as C
|
|
12
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,94 +1,129 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { g as g2 } from "./components/
|
|
4
|
-
import { D
|
|
5
|
-
import {
|
|
1
|
+
import { g } from "./components/Device/dictionary.js";
|
|
2
|
+
import { a } from "./components/Device/helpers.js";
|
|
3
|
+
import { g as g2 } from "./components/Device/helpers/helperDeviceStatus.js";
|
|
4
|
+
import { D } from "./components/Device/hooks/constants.js";
|
|
5
|
+
import { u } from "./components/Device/hooks/useDeviceStatus.js";
|
|
6
|
+
import { D as D2 } from "./components/Device/Device.js";
|
|
7
|
+
import { D as D3 } from "./components/DeviceLabel/DeviceLabel.js";
|
|
6
8
|
import { G } from "./components/maps/components/GpsMapTools/GpsMapTools.js";
|
|
7
|
-
import { u } from "./components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js";
|
|
8
|
-
import { a } from "./components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js";
|
|
9
|
+
import { u as u2 } from "./components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js";
|
|
10
|
+
import { a as a2 } from "./components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js";
|
|
9
11
|
import { g as g3 } from "./components/maps/components/GpsMapTools/dictionary.js";
|
|
12
|
+
import { c } from "./components/maps/utils/courseToCssAngle.js";
|
|
10
13
|
import { G as G2 } from "./components/maps/components/GpsMap/GpsMap.js";
|
|
11
|
-
import { M, a as
|
|
12
|
-
import { u as u2 } from "./components/maps/components/GpsMap/hooks/useMapStore/index.js";
|
|
14
|
+
import { M, a as a3 } from "./components/maps/components/GpsMap/contexts/MapContext/MapContext.js";
|
|
13
15
|
import { g as g4 } from "./components/maps/components/GpsMap/dictionary.js";
|
|
16
|
+
import { i } from "./components/maps/components/GpsMap/constants.js";
|
|
14
17
|
import { M as M2 } from "./components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.js";
|
|
15
18
|
import { C } from "./components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js";
|
|
16
|
-
import { D as D4 } from "./components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js";
|
|
17
19
|
import { g as g5 } from "./components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js";
|
|
18
20
|
import { M as M3 } from "./components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js";
|
|
19
21
|
import { P } from "./components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { i as
|
|
22
|
+
import { u as u3 } from "./components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js";
|
|
23
|
+
import { u as u4 } from "./components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js";
|
|
24
|
+
import { u as u5 } from "./components/maps/components/GpsMap/hooks/useMapStore/index.js";
|
|
25
|
+
import { c as c2 } from "./components/maps/utils/coordsToQuadKey.js";
|
|
26
|
+
import { c as c3 } from "./components/maps/utils/courseToCartesianAngle.js";
|
|
27
|
+
import { i as i2 } from "./components/maps/utils/isFeature.js";
|
|
28
|
+
import { i as i3 } from "./components/maps/utils/isFeatureCollection.js";
|
|
29
|
+
import { i as i4 } from "./components/maps/utils/isFeatureCollectionDraft.js";
|
|
30
|
+
import { i as i5 } from "./components/maps/utils/isGeometry.js";
|
|
26
31
|
import { I } from "./components/indicators/IndicatorBattery/IndicatorBattery.js";
|
|
32
|
+
import { g as g6 } from "./components/indicators/IndicatorBattery/dictionary.js";
|
|
27
33
|
import { I as I2 } from "./components/indicators/IndicatorCSQ/IndicatorCSQ.js";
|
|
28
|
-
import { g as
|
|
34
|
+
import { g as g7 } from "./components/indicators/IndicatorCSQ/dictionary.js";
|
|
35
|
+
import { I as I3 } from "./components/indicators/IndicatorValueStatus/IndicatorValueStatus.js";
|
|
36
|
+
import { I as I4 } from "./components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.js";
|
|
37
|
+
import { g as g8 } from "./formatters/CourseFormatter/helper.js";
|
|
38
|
+
import { g as g9 } from "./formatters/CourseFormatter/dictionary.js";
|
|
39
|
+
import { C as C2 } from "./formatters/CourseFormatter/CourseFormatter.js";
|
|
29
40
|
import { E } from "./contexts/RealTimeProducerContext/constants.js";
|
|
30
41
|
import { R } from "./contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js";
|
|
31
|
-
import { R as R2, a as
|
|
42
|
+
import { R as R2, a as a4 } from "./contexts/RealTimeProducerContext/RealTimeProducerContext.js";
|
|
32
43
|
import { R as R3 } from "./contexts/RealTimeConsumerContext/constants.js";
|
|
33
|
-
import { R as R4, a as
|
|
34
|
-
import { u as
|
|
35
|
-
import { u as
|
|
36
|
-
import { c as
|
|
37
|
-
import { i as
|
|
38
|
-
import { g as
|
|
39
|
-
import { g as
|
|
40
|
-
import { g as
|
|
41
|
-
import { g as
|
|
44
|
+
import { R as R4, a as a5 } from "./contexts/RealTimeConsumerContext/RealTimeConsumerContext.js";
|
|
45
|
+
import { u as u6 } from "./hooks/useRealTimeProducer/index.js";
|
|
46
|
+
import { u as u7 } from "./hooks/useRealTimeConsumer/index.js";
|
|
47
|
+
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
48
|
+
import { i as i6 } from "./utils/isValidDate.js";
|
|
49
|
+
import { g as g10 } from "./utils/getComponentUtilityClass.js";
|
|
50
|
+
import { g as g11 } from "./utils/getPaletteColor.js";
|
|
51
|
+
import { g as g12 } from "./utils/getTypographyStyles.js";
|
|
52
|
+
import { g as g13 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
42
53
|
import { O } from "./utils/ObjectQueue.js";
|
|
43
|
-
import { a as
|
|
44
|
-
import {
|
|
54
|
+
import { a as a6, g as g14 } from "./utils/getComponentSlotRoot.js";
|
|
55
|
+
import { g as g15 } from "./utils/getVptValueWithGuard.js";
|
|
56
|
+
import { g as g16 } from "./utils/getVptUpdatedAtWithGuard.js";
|
|
57
|
+
import { a as a7, g as g17, b } from "./utils/getPrecisionFromHdop/getPrecisionFromHdop.js";
|
|
58
|
+
import { D as D4, a as a8, H } from "./utils/getPrecisionFromHdop/constants.js";
|
|
59
|
+
import { G as G3, a as a9 } from "./@types/constants.js";
|
|
45
60
|
export {
|
|
46
|
-
I2 as CSQSignal,
|
|
47
61
|
C as CommonFeatureRender,
|
|
48
|
-
|
|
49
|
-
D4 as
|
|
50
|
-
D as
|
|
51
|
-
|
|
62
|
+
C2 as CourseFormatter,
|
|
63
|
+
D4 as DEFAULT_RMS_ERROR,
|
|
64
|
+
D as DEVICE_STATUSES_CONFIG,
|
|
65
|
+
D2 as Device,
|
|
66
|
+
D3 as DeviceLabel,
|
|
52
67
|
E as EnumResourceTypesIds,
|
|
53
|
-
G3 as
|
|
68
|
+
G3 as GNSSEnumMotionStatus,
|
|
69
|
+
a9 as GNSSEnumSignal,
|
|
54
70
|
G2 as GpsMap,
|
|
55
71
|
G as GpsMapTools,
|
|
56
|
-
|
|
72
|
+
a2 as GpsMapToolsProvider,
|
|
73
|
+
a8 as HDOP_QUALITY_RANGES,
|
|
74
|
+
H as HDOP_QUALITY_STATUS,
|
|
57
75
|
I as IndicatorBattery,
|
|
76
|
+
I2 as IndicatorCSQ,
|
|
77
|
+
I4 as IndicatorValueAndMagnitude,
|
|
78
|
+
I3 as IndicatorValueStatus,
|
|
79
|
+
i as LAT_LON_FIXED_DIGITS,
|
|
58
80
|
M as MapContext,
|
|
59
81
|
M3 as MapPopupDevice,
|
|
60
|
-
|
|
82
|
+
a3 as MapProvider,
|
|
61
83
|
M2 as MarkerFeatureRender,
|
|
62
84
|
O as ObjectQueue,
|
|
63
85
|
P as PolylineWithArrows,
|
|
64
86
|
R as REAL_TIME_RT_DEVICES_DUMMMY_INITIAL,
|
|
65
87
|
R3 as RESOURCE_TYPE_DEVICES,
|
|
66
88
|
R4 as RealTimeConsumerContext,
|
|
67
|
-
|
|
89
|
+
a5 as RealTimeConsumerProvider,
|
|
68
90
|
R2 as RealTimeProducerContext,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
91
|
+
a4 as RealTimeProducerProvider,
|
|
92
|
+
c4 as capitalizeFirstLetter,
|
|
93
|
+
c2 as coordsToQuadKey,
|
|
94
|
+
c3 as courseToCartesianAngle,
|
|
95
|
+
c as courseToCssAngle,
|
|
96
|
+
a6 as getComponentClasses,
|
|
97
|
+
g14 as getComponentSlotRoot,
|
|
98
|
+
g10 as getComponentUtilityClass,
|
|
99
|
+
g8 as getCourseDirection,
|
|
100
|
+
g9 as getCourseFormatterComponentsDictionary,
|
|
101
|
+
a as getDeviceByData,
|
|
102
|
+
g as getDeviceComponentsDictionary,
|
|
77
103
|
g2 as getDeviceStatusByData,
|
|
78
|
-
g as getDeviceStatusComponentsDictionary,
|
|
79
104
|
g3 as getGpsMapToolsComponentsDictionary,
|
|
80
|
-
|
|
105
|
+
a7 as getHdopFromPrecision,
|
|
106
|
+
g13 as getHeightSizeStyles,
|
|
107
|
+
g6 as getIndicatorBatteryComponentsDictionary,
|
|
108
|
+
g7 as getIndicatorCSQComponentsDictionary,
|
|
81
109
|
g4 as getMapComponentsDictionary,
|
|
82
110
|
g5 as getMapPopupDeviceComponentsDictionary,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
111
|
+
g11 as getPaletteColor,
|
|
112
|
+
g17 as getPrecisionFromHdop,
|
|
113
|
+
b as getQualityCategoryFromPrecision,
|
|
114
|
+
g12 as getTypographyStyles,
|
|
115
|
+
g16 as getVptUpdatedAtWithGuard,
|
|
116
|
+
g15 as getVptValueWithGuard,
|
|
117
|
+
i2 as isFeature,
|
|
118
|
+
i3 as isFeatureCollection,
|
|
119
|
+
i4 as isFeatureCollectionDraft,
|
|
120
|
+
i5 as isGeometry,
|
|
121
|
+
i6 as isValidDate,
|
|
122
|
+
u as useDeviceStatus,
|
|
123
|
+
u4 as useDisableMapEventsOnFlag,
|
|
124
|
+
u3 as useDisableMapEventsOnMouseOver,
|
|
125
|
+
u2 as useGpsMapToolsStore,
|
|
126
|
+
u5 as useMapStore,
|
|
127
|
+
u7 as useRealTimeConsumer,
|
|
128
|
+
u6 as useRealTimeProducer
|
|
94
129
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/gclick",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-JAEBeta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0 --no-warn-ignored"
|
|
@@ -9,26 +9,28 @@
|
|
|
9
9
|
"@geoman-io/leaflet-geoman-free": "^2.14.2",
|
|
10
10
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
11
11
|
"@hookform/resolvers": "2.9.11",
|
|
12
|
-
"@m4l/components": "
|
|
12
|
+
"@m4l/components": "9.3.21-JAEBeta.0",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
14
|
"@m4l/graphics": "^7.0.0",
|
|
15
15
|
"@m4l/styles": "^7.0.0",
|
|
16
|
+
"@microlink/react-json-view": "^1.23.3",
|
|
16
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
17
18
|
"@mui/material": "5.16.7",
|
|
18
19
|
"@mui/x-charts": "8.10.2",
|
|
19
20
|
"@mui/x-date-pickers": "6.20.2",
|
|
21
|
+
"@types/lodash-es": "^4.17.12",
|
|
20
22
|
"atmosphere.js": "^4.0.0",
|
|
21
23
|
"chart.js": "^4.4.0",
|
|
22
24
|
"chartjs-chart-error-bars": "^4.3.3",
|
|
23
25
|
"eventemitter3": "^4.0.7",
|
|
24
26
|
"fast-equals": "^5.0.1",
|
|
25
|
-
"framer-motion": "^6.5.0",
|
|
26
27
|
"history": "5.3.0",
|
|
27
28
|
"install": "^0.13.0",
|
|
28
29
|
"jwt-decode": "^4.0.0",
|
|
29
30
|
"leaflet": "^1.9.4",
|
|
30
31
|
"leaflet-polylinedecorator": "^1.6.0",
|
|
31
32
|
"leaflet.markercluster": "^1.5.3",
|
|
33
|
+
"lodash-es": "^4.17.21",
|
|
32
34
|
"nprogress": "^0.2.0",
|
|
33
35
|
"qrcode.react": "^3.1.0",
|
|
34
36
|
"react": "18.3.1",
|
|
@@ -58,6 +60,17 @@
|
|
|
58
60
|
"zustand": "4.3.6"
|
|
59
61
|
},
|
|
60
62
|
"resolutions": {
|
|
63
|
+
"react": "18.3.1",
|
|
64
|
+
"@types/react": "18.3.23",
|
|
65
|
+
"@types/react-dom": "18.3.7",
|
|
66
|
+
"react-dom": "18.3.1",
|
|
67
|
+
"storybook": "^8.3.4",
|
|
68
|
+
"attr-accept": "2.2.2",
|
|
69
|
+
"@vitejs/plugin-react": "^4.0.0"
|
|
70
|
+
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"glob": "^10.4.5",
|
|
73
|
+
"eslint": "9.28.0",
|
|
61
74
|
"react": "18.3.1",
|
|
62
75
|
"@types/react": "18.3.23",
|
|
63
76
|
"@types/react-dom": "18.3.7",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Importa dinámicamente un archivo CSS y lo convierte a CSSProperties
|
|
4
|
+
* @param cssPath - Ruta al archivo CSS
|
|
5
|
+
* @returns Promise con el objeto CSSProperties
|
|
6
|
+
*/
|
|
7
|
+
export declare const importCSSToCSSProperties: (cssPath: string) => Promise<Record<string, CSSProperties>>;
|
|
8
|
+
/**
|
|
9
|
+
* Función síncrona para CSS ya cargado
|
|
10
|
+
* @param cssString - String CSS
|
|
11
|
+
* @returns Objeto CSSProperties
|
|
12
|
+
*/
|
|
13
|
+
export declare const cssStringToCSSProperties: (cssString: string) => Record<string, CSSProperties>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook para usar CSS dinámicamente en componentes React
|
|
16
|
+
* @param cssPath - Ruta al archivo CSS
|
|
17
|
+
* @returns Hook que retorna los estilos y estado de carga
|
|
18
|
+
*/
|
|
19
|
+
export declare const useDynamicCSS: (cssPath: string) => {
|
|
20
|
+
styles: Record<string, React.CSSProperties>;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
error: string | null;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Función utilitaria para obtener estilos de un selector específico
|
|
26
|
+
* @param styles - Objeto de estilos
|
|
27
|
+
* @param selector - Selector CSS
|
|
28
|
+
* @returns CSSProperties del selector o objeto vacío
|
|
29
|
+
*/
|
|
30
|
+
export declare const getStylesBySelector: (styles: Record<string, CSSProperties>, selector: string) => CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Función para combinar múltiples selectores
|
|
33
|
+
* @param styles - Objeto de estilos
|
|
34
|
+
* @param selectors - Array de selectores
|
|
35
|
+
* @returns CSSProperties combinados
|
|
36
|
+
*/
|
|
37
|
+
export declare const combineSelectors: (styles: Record<string, CSSProperties>, selectors: string[]) => CSSProperties;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HdopQualityRange } from './types';
|
|
2
|
+
export declare const HDOP_QUALITY_STATUS: {
|
|
3
|
+
readonly IDEAL: "IDEAL";
|
|
4
|
+
readonly EXCELLENT: "EXCELLENT";
|
|
5
|
+
readonly GOOD: "GOOD";
|
|
6
|
+
readonly MODERATE: "MODERATE";
|
|
7
|
+
readonly REGULAR: "REGULAR";
|
|
8
|
+
readonly POOR: "POOR";
|
|
9
|
+
readonly NOT_DETECTABLE: "NOT_DETECTABLE";
|
|
10
|
+
};
|
|
11
|
+
export declare const DEFAULT_RMS_ERROR = 3.5;
|
|
12
|
+
export declare const SPECIAL_HDOP_VALUES: readonly [0, 99, 999];
|
|
13
|
+
export declare const HDOP_QUALITY_RANGES: readonly HdopQualityRange[];
|