@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,33 +1,43 @@
|
|
|
1
1
|
import { useMap } from "react-leaflet";
|
|
2
|
-
import { shallow } from "zustand/shallow";
|
|
3
2
|
import { u as useMapStore } from "../../../../hooks/useMapStore/index.js";
|
|
4
3
|
import { useEffect } from "react";
|
|
5
4
|
import L__default from "leaflet";
|
|
5
|
+
import { deepShallow } from "@m4l/components";
|
|
6
6
|
const TileLayerOthers = () => {
|
|
7
7
|
const map = useMap();
|
|
8
|
-
const {
|
|
9
|
-
(state) =>
|
|
10
|
-
|
|
8
|
+
const { sourceId, layer } = useMapStore(
|
|
9
|
+
(state) => {
|
|
10
|
+
const source = state.mapSources.find((source2) => source2.id === state.currentMapSourceLayer.mapSourceId) || state.mapSources[0];
|
|
11
|
+
const layer2 = source.layers.find((layer3) => layer3.id === state.currentMapSourceLayer.mapSourceLayerId) || source.layers[0];
|
|
12
|
+
return {
|
|
13
|
+
sourceId: source.id,
|
|
14
|
+
layer: layer2,
|
|
15
|
+
trafficLayer: layer2?.roadSelectedOptions?.trafficLayer || false,
|
|
16
|
+
transitLayer: layer2?.roadSelectedOptions?.transitLayer || false,
|
|
17
|
+
bicyclingLayer: layer2?.roadSelectedOptions?.bicyclingLayer || false
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
deepShallow
|
|
11
21
|
);
|
|
12
22
|
useEffect(() => {
|
|
13
|
-
let
|
|
14
|
-
if (
|
|
23
|
+
let leafletLayer;
|
|
24
|
+
if (sourceId === "google") {
|
|
15
25
|
return;
|
|
16
26
|
}
|
|
17
|
-
|
|
18
|
-
if (getTileUrl) {
|
|
19
|
-
|
|
27
|
+
leafletLayer = L__default.tileLayer(layer.urlTemplate, layer.options);
|
|
28
|
+
if (layer.getTileUrl) {
|
|
29
|
+
leafletLayer.getTileUrl = layer.getTileUrl;
|
|
20
30
|
}
|
|
21
|
-
map.addLayer(
|
|
22
|
-
if (options && options.maxZoom) {
|
|
23
|
-
map.setMaxZoom(options.maxZoom);
|
|
31
|
+
map.addLayer(leafletLayer);
|
|
32
|
+
if (layer.options && layer.options.maxZoom) {
|
|
33
|
+
map.setMaxZoom(layer.options.maxZoom);
|
|
24
34
|
}
|
|
25
35
|
return () => {
|
|
26
|
-
if (
|
|
27
|
-
map.removeLayer(
|
|
36
|
+
if (leafletLayer) {
|
|
37
|
+
map.removeLayer(leafletLayer);
|
|
28
38
|
}
|
|
29
39
|
};
|
|
30
|
-
}, [
|
|
40
|
+
}, [sourceId, layer.urlTemplate, layer.options, layer.getTileUrl, map]);
|
|
31
41
|
return null;
|
|
32
42
|
};
|
|
33
43
|
export {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
1
|
import { LatLngExpression } from 'leaflet';
|
|
3
2
|
import { Theme } from '@mui/material/styles';
|
|
4
3
|
import { MapSlots } from './slots/slots';
|
|
5
|
-
import {
|
|
4
|
+
import { MAP_COMPONET_KEY_COMPONENT } from './constants';
|
|
6
5
|
import { ReactNode } from 'react';
|
|
6
|
+
import { JSX_REACT_NODE, M4LOverridesStyleRules } from '@m4l/components';
|
|
7
|
+
import { MapSourcesToolOwnerState } from './subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/types';
|
|
8
|
+
import { MapLayersToolOwnerState } from './subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/types';
|
|
9
|
+
import { MapMeasureToolOwnerState } from './subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types';
|
|
7
10
|
export type Localization = {
|
|
8
11
|
/**
|
|
9
12
|
* "lat" Posición en del eje "Y" en grados.
|
|
@@ -25,6 +28,10 @@ export type Point = {
|
|
|
25
28
|
y: number;
|
|
26
29
|
};
|
|
27
30
|
export interface MapProps {
|
|
31
|
+
/**
|
|
32
|
+
* "className" className del mapa
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
28
35
|
/**
|
|
29
36
|
* "center" posición inicial del mapa.
|
|
30
37
|
*/
|
|
@@ -38,9 +45,18 @@ export interface MapProps {
|
|
|
38
45
|
*/
|
|
39
46
|
maxZoom?: number;
|
|
40
47
|
/**
|
|
41
|
-
* "
|
|
48
|
+
* "GpsTools" Componente que gestiona la herramienta de guardian GPS, geocercas, puntos de interes, etc.
|
|
49
|
+
*/
|
|
50
|
+
GpsTools?: JSX_REACT_NODE;
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* "disableMapEvents" permite deshabilitar los eventos del mapa, cuando se requiera
|
|
54
|
+
*/
|
|
55
|
+
disableMapEvents?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* "style" permite definir el estilo del mapa
|
|
42
58
|
*/
|
|
43
|
-
|
|
59
|
+
style?: React.CSSProperties;
|
|
44
60
|
}
|
|
45
61
|
export type MapSlotsType = keyof typeof MapSlots;
|
|
46
62
|
export type MapOwnerState = {
|
|
@@ -52,5 +68,8 @@ export type MapOwnerState = {
|
|
|
52
68
|
* "hidden" permite definir si la ventana está oculta o no. Por defecto es "false
|
|
53
69
|
*/
|
|
54
70
|
hidden?: boolean;
|
|
71
|
+
mapSourcesTool?: MapSourcesToolOwnerState;
|
|
72
|
+
mapLayersTool?: MapLayersToolOwnerState;
|
|
73
|
+
mapMeasureTool?: MapMeasureToolOwnerState;
|
|
55
74
|
};
|
|
56
|
-
export type MapStyles =
|
|
75
|
+
export type MapStyles = M4LOverridesStyleRules<MapSlotsType, typeof MAP_COMPONET_KEY_COMPONENT, Theme>;
|
|
@@ -2,3 +2,4 @@ export { GpsMapTools } from './GpsMapTools';
|
|
|
2
2
|
export { GpsMapToolsProvider } from './contexts/GpsMapToolsContext';
|
|
3
3
|
export { getGpsMapToolsComponentsDictionary as getGpsMapToolsComponentsDictionary } from './dictionary';
|
|
4
4
|
export { useGpsMapToolsStore } from './hooks/useGpsMapToolsStore';
|
|
5
|
+
export type { GpsMapToolsType } from './GpsMapTools';
|
|
@@ -13,7 +13,7 @@ import { u as useLayers } from "../../hooks/useLayers/index.js";
|
|
|
13
13
|
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../dictionary.js";
|
|
14
14
|
import { g as gpsToolsClasses } from "../../classes/index.js";
|
|
15
15
|
import { M as MAP_GPSTOOLS_ICONS } from "../../icons.js";
|
|
16
|
-
import {
|
|
16
|
+
import { h as GPS_TOOLS_POPUP_ID } from "../../../GpsMap/constants.js";
|
|
17
17
|
import { u as useGpsMapToolsStore } from "../../hooks/useGpsMapToolsStore/index.js";
|
|
18
18
|
function TabsGpsTools() {
|
|
19
19
|
const { getLabel } = useModuleDictionary();
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { useModuleDictionary
|
|
1
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../../dictionary.js";
|
|
4
|
-
import {
|
|
5
|
-
import { M as MAP_GPSTOOLS_ICONS } from "../../../../../icons.js";
|
|
4
|
+
import { ColumnDateFormatter } from "@m4l/components";
|
|
6
5
|
function useColumns(_props) {
|
|
7
6
|
const { getLabel } = useModuleDictionary();
|
|
8
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
9
7
|
const columns = useMemo(
|
|
10
8
|
() => [
|
|
11
9
|
{
|
|
@@ -15,33 +13,33 @@ function useColumns(_props) {
|
|
|
15
13
|
width: 40,
|
|
16
14
|
visible: false
|
|
17
15
|
},
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
16
|
+
// {
|
|
17
|
+
// key: 'geometry',
|
|
18
|
+
// name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_TYPE),
|
|
19
|
+
// headerRenderer: () => '', //Para que no salga el nombre de la columna, pero si en el configurador
|
|
20
|
+
// type: 'string',
|
|
21
|
+
// formatter: ColumnIconFormatter({
|
|
22
|
+
// /**
|
|
23
|
+
// * TODO: Documentar
|
|
24
|
+
// */
|
|
25
|
+
// getIconUrl: (formatterRowProps: FormatterProps<GeofenceListModel>) => {
|
|
26
|
+
// const { row } = formatterRowProps;
|
|
27
|
+
// let iconUrl: string;
|
|
28
|
+
// if (row.type.id === 'gt_polygon') {
|
|
29
|
+
// iconUrl = MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_POLYGON;
|
|
30
|
+
// } else if (row.type.id === 'gt_circle') {
|
|
31
|
+
// iconUrl = MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_CIRCLE;
|
|
32
|
+
// } else {
|
|
33
|
+
// iconUrl = MAP_GPSTOOLS_ICONS.GEOFENCE_TYPE_RECTANGLE;
|
|
34
|
+
// }
|
|
35
|
+
// return {
|
|
36
|
+
// iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${iconUrl}`,
|
|
37
|
+
// };
|
|
38
|
+
// },
|
|
39
|
+
// }),
|
|
40
|
+
// width: 30,
|
|
41
|
+
// minWidth: 25,
|
|
42
|
+
// },
|
|
45
43
|
{
|
|
46
44
|
key: "name",
|
|
47
45
|
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_NAME),
|
|
@@ -104,7 +102,6 @@ function useColumns(_props) {
|
|
|
104
102
|
visible: false
|
|
105
103
|
}
|
|
106
104
|
],
|
|
107
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
108
105
|
[getLabel]
|
|
109
106
|
);
|
|
110
107
|
return { columns };
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import { GeofenceTypeId } from './subcomponents/TabsGpsTools/subcomponents/model';
|
|
2
|
-
/**
|
|
3
|
-
* Por ahora solo distancia.
|
|
4
|
-
*/
|
|
5
|
-
export type MeasureTypeId = 'distance';
|
|
6
|
-
export interface MeasureTypeItem {
|
|
7
|
-
id: MeasureTypeId;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface MagnitudeFactorItem {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
symbol: string;
|
|
14
|
-
factor_x0: number;
|
|
15
|
-
factor_x1: number;
|
|
16
|
-
factor_x2: number;
|
|
17
|
-
}
|
|
18
2
|
export interface GeofenceTypeItem {
|
|
19
3
|
id: GeofenceTypeId;
|
|
20
4
|
name: string;
|
|
@@ -2,3 +2,4 @@ export * from './components/GpsMap';
|
|
|
2
2
|
export * from './utils';
|
|
3
3
|
export type { MapProps, RendePropFeatureArgs, ComponentRenderPropFeature, FeatureId, FeatureCollection, Feature, Geometry, } from './components/GpsMap';
|
|
4
4
|
export { GpsMapTools, useGpsMapToolsStore, GpsMapToolsProvider, getGpsMapToolsComponentsDictionary, } from './components/GpsMapTools';
|
|
5
|
+
export { courseToCssAngle } from './utils/courseToCssAngle';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function coordsToQuadKey(x, y, z) {
|
|
2
2
|
let quadKey = "";
|
|
3
3
|
for (let i = z; i > 0; i--) {
|
|
4
4
|
let digit = 0;
|
|
@@ -15,5 +15,5 @@ function toQuadKey(x, y, z) {
|
|
|
15
15
|
return quadKey;
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
coordsToQuadKey as c
|
|
19
19
|
};
|
|
@@ -30,7 +30,7 @@ function RealTimeConsumerProvider(props) {
|
|
|
30
30
|
unsuscribe("rt_devices", getWindowId());
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
}, [
|
|
33
|
+
}, [suscribe, unsuscribe, onMessagesCallbacks, onSuscribeCallbacks, getWindowId]);
|
|
34
34
|
return /* @__PURE__ */ jsx(RealTimeConsumerContext.Provider, { value: realTimeStoreRef.current, children });
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
@@ -17,7 +17,7 @@ class SourceDataAtmosphere extends SourceDataBase {
|
|
|
17
17
|
this.connect();
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Envía el mensaje de suscripción al servidor de tiempo real.
|
|
21
21
|
*/
|
|
22
22
|
sendSuscribe() {
|
|
23
23
|
this.lastMessageTime = performance.now();
|
|
@@ -1,18 +1,81 @@
|
|
|
1
|
+
import { GNSSEnumMotionStatus, GNSSEnumSignal } from '../../../../@types/constants';
|
|
1
2
|
import { DeviceDataType } from '../../../../@types';
|
|
2
3
|
export declare const devicesIds: number[];
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const devicesStatuses: GNSSEnumMotionStatus[];
|
|
5
|
+
export declare const devicesSignals: Array<GNSSEnumSignal>;
|
|
6
|
+
export declare const devicesHops: number[];
|
|
7
|
+
export declare const devicesCourses: number[];
|
|
4
8
|
export declare const devicesColors: string[];
|
|
5
9
|
/**
|
|
6
10
|
* Pendientes de diseno
|
|
7
11
|
* Crear el Modulo Mi GPS Device
|
|
8
12
|
*/
|
|
9
|
-
export declare const INITIAL_DATA:
|
|
13
|
+
export declare const INITIAL_DATA: {
|
|
14
|
+
resourceSerialId: number;
|
|
15
|
+
current: {
|
|
16
|
+
vpts: {
|
|
17
|
+
vptGnss: {
|
|
18
|
+
geofences: never[];
|
|
19
|
+
pois: never[];
|
|
20
|
+
gnssSignal: {
|
|
21
|
+
value: GNSSEnumSignal;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
};
|
|
24
|
+
gnssHdop: number;
|
|
25
|
+
gnssSatellitesInUse: number;
|
|
26
|
+
gnssAltitude: number;
|
|
27
|
+
gnssLatitude: number;
|
|
28
|
+
gnssLongitude: number;
|
|
29
|
+
gnssOdometer: number;
|
|
30
|
+
gnssAddress: string;
|
|
31
|
+
gnssSpeed: number;
|
|
32
|
+
gnssMotionStatus: {
|
|
33
|
+
value: GNSSEnumMotionStatus;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
};
|
|
36
|
+
gnssCourse: number;
|
|
37
|
+
};
|
|
38
|
+
vptModem: {
|
|
39
|
+
modemLastConnection: string;
|
|
40
|
+
modemLastEvent: string;
|
|
41
|
+
modemCsq: number;
|
|
42
|
+
callActive: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
reportProfiles: {
|
|
46
|
+
trackerEvents: {
|
|
47
|
+
modemLastEvent: {
|
|
48
|
+
date: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
settings: {
|
|
54
|
+
active: boolean;
|
|
55
|
+
name: string;
|
|
56
|
+
properties: {
|
|
57
|
+
internal_name: {
|
|
58
|
+
value: string;
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
inTechinalOrder: boolean;
|
|
63
|
+
adminStatus: string;
|
|
64
|
+
vpts: {
|
|
65
|
+
vptModem: {
|
|
66
|
+
modemLineNumber: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
10
71
|
export declare const INITIAL_DATA_10000: DeviceDataType;
|
|
11
72
|
export declare const INITIAL_DATA_10001: DeviceDataType;
|
|
12
73
|
export declare const INITIAL_DATA_10002: DeviceDataType;
|
|
13
74
|
export declare const INITIAL_DATA_10003: DeviceDataType;
|
|
14
75
|
export declare const INITIAL_DATA_10004: DeviceDataType;
|
|
15
76
|
export declare const INITIAL_DATA_10005: DeviceDataType;
|
|
77
|
+
export declare const INITIAL_DATA_10006: DeviceDataType;
|
|
78
|
+
export declare const INITIAL_DATA_10007: DeviceDataType;
|
|
16
79
|
export declare const REAL_TIME_RT_DEVICES_DUMMMY_INITIAL: {
|
|
17
80
|
10000: DeviceDataType;
|
|
18
81
|
10001: DeviceDataType;
|
|
@@ -20,4 +83,6 @@ export declare const REAL_TIME_RT_DEVICES_DUMMMY_INITIAL: {
|
|
|
20
83
|
10003: DeviceDataType;
|
|
21
84
|
10004: DeviceDataType;
|
|
22
85
|
10005: DeviceDataType;
|
|
86
|
+
10006: DeviceDataType;
|
|
87
|
+
10007: DeviceDataType;
|
|
23
88
|
};
|
|
@@ -1,41 +1,62 @@
|
|
|
1
|
-
import { a as GNSSEnumSignal } from "../../../../@types/constants.js";
|
|
2
|
-
import { g as
|
|
1
|
+
import { a as GNSSEnumSignal, G as GNSSEnumMotionStatus } from "../../../../@types/constants.js";
|
|
2
|
+
import { g as group7, a as group6, b as group5, c as group4, d as group3, e as group2, f as group1, h as groupForest } from "./group.js";
|
|
3
3
|
import { g as getDummyRandomCoordinates } from "./helpers.js";
|
|
4
|
-
const devicesIds = [1e4, 10001, 10002, 10003, 10004, 10005];
|
|
5
|
-
const
|
|
4
|
+
const devicesIds = [1e4, 10001, 10002, 10003, 10004, 10005, 10006, 10007];
|
|
5
|
+
const devicesStatuses = [
|
|
6
|
+
GNSSEnumMotionStatus.moving,
|
|
7
|
+
GNSSEnumMotionStatus.stopped,
|
|
8
|
+
GNSSEnumMotionStatus.stoppedRalenti,
|
|
9
|
+
GNSSEnumMotionStatus.stoppedExcesiveRalenti,
|
|
10
|
+
GNSSEnumMotionStatus.maxSpeed,
|
|
11
|
+
GNSSEnumMotionStatus.powerSaving,
|
|
12
|
+
GNSSEnumMotionStatus.towing,
|
|
13
|
+
GNSSEnumMotionStatus.off
|
|
14
|
+
];
|
|
15
|
+
const devicesSignals = [
|
|
16
|
+
GNSSEnumSignal.reliable,
|
|
17
|
+
GNSSEnumSignal.acceptable,
|
|
18
|
+
GNSSEnumSignal.noSignal,
|
|
19
|
+
GNSSEnumSignal.reliable,
|
|
20
|
+
GNSSEnumSignal.acceptable,
|
|
21
|
+
GNSSEnumSignal.noSignal,
|
|
22
|
+
GNSSEnumSignal.reliable,
|
|
23
|
+
GNSSEnumSignal.acceptable
|
|
24
|
+
];
|
|
25
|
+
const devicesHops = [0, 0.5, 1.3, 4, 6, 13, 20, 30];
|
|
26
|
+
const devicesCourses = [0, 20, 90, 120, 180, 270, 359, 360];
|
|
6
27
|
const INITIAL_DATA = {
|
|
7
28
|
resourceSerialId: 0,
|
|
8
29
|
current: {
|
|
9
30
|
vpts: {
|
|
10
31
|
vptGnss: {
|
|
11
32
|
gnssAddress: "Vía Sabanalarga - Barranquilla, Km 2.42 Sabanalarga - Campeche Sabanalarga, Atlántico",
|
|
12
|
-
gnssSpeed: Math.random() * 120,
|
|
13
|
-
gnssMotionStatus: { value:
|
|
14
|
-
gnssCourse: Math.random() * 360,
|
|
33
|
+
gnssSpeed: Math.round(Math.random() * 120),
|
|
34
|
+
gnssMotionStatus: { value: devicesStatuses[0], updatedAt: (/* @__PURE__ */ new Date()).toISOString() },
|
|
35
|
+
gnssCourse: Math.round(Math.random() * 360),
|
|
15
36
|
...getDummyRandomCoordinates(),
|
|
16
37
|
geofences: [],
|
|
17
38
|
pois: [],
|
|
18
39
|
gnssSignal: {
|
|
19
40
|
value: GNSSEnumSignal.reliable,
|
|
20
|
-
|
|
41
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
21
42
|
},
|
|
22
43
|
gnssHdop: 0,
|
|
23
|
-
|
|
44
|
+
gnssSatellitesInUse: 0,
|
|
24
45
|
gnssAltitude: 0,
|
|
25
46
|
gnssLatitude: 0,
|
|
26
47
|
gnssLongitude: 0,
|
|
27
48
|
gnssOdometer: 0
|
|
28
49
|
},
|
|
29
50
|
vptModem: {
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
modemLastConnection: (/* @__PURE__ */ new Date()).toISOString(),
|
|
52
|
+
modemLastEvent: (/* @__PURE__ */ new Date()).toISOString(),
|
|
32
53
|
modemCsq: 31,
|
|
33
54
|
callActive: false
|
|
34
55
|
}
|
|
35
56
|
},
|
|
36
57
|
reportProfiles: {
|
|
37
58
|
trackerEvents: {
|
|
38
|
-
|
|
59
|
+
modemLastEvent: {
|
|
39
60
|
date: (/* @__PURE__ */ new Date()).toISOString()
|
|
40
61
|
}
|
|
41
62
|
}
|
|
@@ -43,7 +64,6 @@ const INITIAL_DATA = {
|
|
|
43
64
|
},
|
|
44
65
|
settings: {
|
|
45
66
|
active: true,
|
|
46
|
-
imageUrl: "carga.png",
|
|
47
67
|
name: "N10000",
|
|
48
68
|
properties: {
|
|
49
69
|
internal_name: {
|
|
@@ -52,85 +72,150 @@ const INITIAL_DATA = {
|
|
|
52
72
|
}
|
|
53
73
|
},
|
|
54
74
|
inTechinalOrder: false,
|
|
55
|
-
adminStatus: ""
|
|
75
|
+
adminStatus: "",
|
|
76
|
+
vpts: {
|
|
77
|
+
vptModem: {
|
|
78
|
+
modemLineNumber: "1234567890"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
56
81
|
}
|
|
57
82
|
};
|
|
83
|
+
const getInitialData = (deviceIndex) => {
|
|
84
|
+
return {
|
|
85
|
+
...INITIAL_DATA.current,
|
|
86
|
+
vpts: {
|
|
87
|
+
...INITIAL_DATA.current?.vpts,
|
|
88
|
+
vptGnss: {
|
|
89
|
+
...INITIAL_DATA.current?.vpts?.vptGnss,
|
|
90
|
+
gnssSpeed: Math.round(Math.random() * 120),
|
|
91
|
+
gnssHdop: devicesHops[deviceIndex],
|
|
92
|
+
gnssCourse: devicesCourses[deviceIndex],
|
|
93
|
+
gnssSignal: {
|
|
94
|
+
value: devicesSignals[deviceIndex],
|
|
95
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
96
|
+
},
|
|
97
|
+
...getDummyRandomCoordinates(),
|
|
98
|
+
gnssMotionStatus: { value: devicesStatuses[deviceIndex], updatedAt: new Date(Date.now()).toISOString() }
|
|
99
|
+
//- 31104000000+10000
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
};
|
|
58
104
|
const INITIAL_DATA_10000 = {
|
|
59
105
|
...INITIAL_DATA,
|
|
60
106
|
resourceSerialId: 1e4,
|
|
107
|
+
current: getInitialData(0),
|
|
61
108
|
settings: {
|
|
62
109
|
...INITIAL_DATA.settings,
|
|
110
|
+
name: "N1",
|
|
111
|
+
alias: "AliasC1",
|
|
63
112
|
active: false,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
group: group0
|
|
113
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
114
|
+
group: groupForest
|
|
67
115
|
}
|
|
68
116
|
};
|
|
69
117
|
const INITIAL_DATA_10001 = {
|
|
70
118
|
...INITIAL_DATA,
|
|
71
119
|
resourceSerialId: 10001,
|
|
120
|
+
current: getInitialData(1),
|
|
72
121
|
settings: {
|
|
73
122
|
...INITIAL_DATA.settings,
|
|
123
|
+
name: "N2",
|
|
124
|
+
alias: "AliasC2",
|
|
74
125
|
active: true,
|
|
75
|
-
|
|
76
|
-
imageUrl: "sedan.png",
|
|
126
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
77
127
|
group: group1
|
|
78
128
|
}
|
|
79
129
|
};
|
|
80
130
|
const INITIAL_DATA_10002 = {
|
|
81
131
|
...INITIAL_DATA,
|
|
82
132
|
resourceSerialId: 10002,
|
|
133
|
+
current: getInitialData(2),
|
|
83
134
|
settings: {
|
|
84
135
|
...INITIAL_DATA.settings,
|
|
85
136
|
active: true,
|
|
86
|
-
name: "
|
|
87
|
-
|
|
137
|
+
name: "N3",
|
|
138
|
+
alias: "AliasC3",
|
|
139
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
88
140
|
group: group2
|
|
89
141
|
}
|
|
90
142
|
};
|
|
91
143
|
const INITIAL_DATA_10003 = {
|
|
92
144
|
...INITIAL_DATA,
|
|
93
145
|
resourceSerialId: 10003,
|
|
146
|
+
current: getInitialData(3),
|
|
94
147
|
settings: {
|
|
95
148
|
...INITIAL_DATA.settings,
|
|
96
149
|
active: true,
|
|
97
|
-
name: "
|
|
98
|
-
|
|
150
|
+
name: "N4",
|
|
151
|
+
alias: "AliasC4",
|
|
152
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
99
153
|
group: group3
|
|
100
154
|
}
|
|
101
155
|
};
|
|
102
156
|
const INITIAL_DATA_10004 = {
|
|
103
157
|
...INITIAL_DATA,
|
|
104
158
|
resourceSerialId: 10004,
|
|
159
|
+
current: getInitialData(4),
|
|
105
160
|
settings: {
|
|
106
161
|
...INITIAL_DATA.settings,
|
|
107
162
|
active: true,
|
|
108
|
-
name: "
|
|
109
|
-
|
|
163
|
+
name: "N5",
|
|
164
|
+
alias: "AliasC5",
|
|
165
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
110
166
|
group: group4
|
|
111
167
|
}
|
|
112
168
|
};
|
|
113
169
|
const INITIAL_DATA_10005 = {
|
|
114
170
|
...INITIAL_DATA,
|
|
115
171
|
resourceSerialId: 10005,
|
|
172
|
+
current: getInitialData(5),
|
|
116
173
|
settings: {
|
|
117
174
|
...INITIAL_DATA.settings,
|
|
118
175
|
active: true,
|
|
119
|
-
name: "
|
|
120
|
-
|
|
176
|
+
name: "N6",
|
|
177
|
+
alias: "AliasC6",
|
|
178
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
121
179
|
group: group5
|
|
122
180
|
}
|
|
123
181
|
};
|
|
182
|
+
const INITIAL_DATA_10006 = {
|
|
183
|
+
...INITIAL_DATA,
|
|
184
|
+
resourceSerialId: 10006,
|
|
185
|
+
current: getInitialData(6),
|
|
186
|
+
settings: {
|
|
187
|
+
...INITIAL_DATA.settings,
|
|
188
|
+
active: true,
|
|
189
|
+
name: "N7",
|
|
190
|
+
alias: "AliasC7",
|
|
191
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
192
|
+
group: group6
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
const INITIAL_DATA_10007 = {
|
|
196
|
+
...INITIAL_DATA,
|
|
197
|
+
resourceSerialId: 10007,
|
|
198
|
+
current: getInitialData(7),
|
|
199
|
+
settings: {
|
|
200
|
+
...INITIAL_DATA.settings,
|
|
201
|
+
active: true,
|
|
202
|
+
name: "N8",
|
|
203
|
+
alias: "AliasC8",
|
|
204
|
+
iconId: "i_mod_operative_my_gps_devices_types_truck",
|
|
205
|
+
group: group7
|
|
206
|
+
}
|
|
207
|
+
};
|
|
124
208
|
const REAL_TIME_RT_DEVICES_DUMMMY_INITIAL = {
|
|
125
209
|
[1e4]: INITIAL_DATA_10000,
|
|
126
210
|
[10001]: INITIAL_DATA_10001,
|
|
127
211
|
[10002]: INITIAL_DATA_10002,
|
|
128
212
|
[10003]: INITIAL_DATA_10003,
|
|
129
213
|
[10004]: INITIAL_DATA_10004,
|
|
130
|
-
[10005]: INITIAL_DATA_10005
|
|
214
|
+
[10005]: INITIAL_DATA_10005,
|
|
215
|
+
[10006]: INITIAL_DATA_10006,
|
|
216
|
+
[10007]: INITIAL_DATA_10007
|
|
131
217
|
};
|
|
132
218
|
export {
|
|
133
219
|
REAL_TIME_RT_DEVICES_DUMMMY_INITIAL as R,
|
|
134
|
-
devicesIds as
|
|
135
|
-
devicesStatusIds as d
|
|
220
|
+
devicesIds as d
|
|
136
221
|
};
|