@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,139 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import { ColumnSetCheckFormatter, Icon } from "@m4l/components";
|
|
5
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
|
|
6
|
-
import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
|
|
7
|
-
import { Tooltip } from "@mui/material";
|
|
8
|
-
function useColumns(props) {
|
|
9
|
-
const {
|
|
10
|
-
rowKeyGetter,
|
|
11
|
-
visibleLayers,
|
|
12
|
-
setVisibleLayers,
|
|
13
|
-
autoFocusLayers,
|
|
14
|
-
setAutoFocusLayers,
|
|
15
|
-
clusterLayers,
|
|
16
|
-
setClusterLayers
|
|
17
|
-
} = props;
|
|
18
|
-
const { getLabel } = useModuleDictionary();
|
|
19
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
20
|
-
const useHook = useCallback(
|
|
21
|
-
(field) => {
|
|
22
|
-
if (field === "visible") {
|
|
23
|
-
return [visibleLayers, setVisibleLayers];
|
|
24
|
-
} else if (field === "autoFocus") {
|
|
25
|
-
return [autoFocusLayers, setAutoFocusLayers];
|
|
26
|
-
} else {
|
|
27
|
-
return [clusterLayers, setClusterLayers];
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
|
-
[visibleLayers, autoFocusLayers, clusterLayers]
|
|
32
|
-
);
|
|
33
|
-
const columns = useMemo(
|
|
34
|
-
() => [
|
|
35
|
-
{
|
|
36
|
-
key: "name",
|
|
37
|
-
name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_NAME),
|
|
38
|
-
type: "string",
|
|
39
|
-
width: 150,
|
|
40
|
-
frozen: true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
key: "visible",
|
|
44
|
-
name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_VISIBLE),
|
|
45
|
-
width: 50,
|
|
46
|
-
minWidth: 20,
|
|
47
|
-
type: "boolean",
|
|
48
|
-
// isDraggable: false,
|
|
49
|
-
formatter: ColumnSetCheckFormatter({
|
|
50
|
-
field: "active",
|
|
51
|
-
rowKeyGetter,
|
|
52
|
-
useHook
|
|
53
|
-
}),
|
|
54
|
-
cellClass: "rdg-cell-align-center",
|
|
55
|
-
/**
|
|
56
|
-
* HeaderRenderer para la columna de visibilidad
|
|
57
|
-
*/
|
|
58
|
-
headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_VISIBLE), children: /* @__PURE__ */ jsx(
|
|
59
|
-
Icon,
|
|
60
|
-
{
|
|
61
|
-
size: "medium",
|
|
62
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_VISIBLE}`
|
|
63
|
-
}
|
|
64
|
-
) })
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
key: "autoFocus",
|
|
68
|
-
name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_AUTOFOCUS),
|
|
69
|
-
minWidth: 20,
|
|
70
|
-
width: 50,
|
|
71
|
-
type: "boolean",
|
|
72
|
-
// frozen: true,
|
|
73
|
-
// isDraggable: false,
|
|
74
|
-
formatter: ColumnSetCheckFormatter({
|
|
75
|
-
field: "active",
|
|
76
|
-
rowKeyGetter,
|
|
77
|
-
useHook
|
|
78
|
-
}),
|
|
79
|
-
cellClass: "rdg-cell-align-center",
|
|
80
|
-
/**
|
|
81
|
-
* HeaderRenderer para la columna de autoenfoque
|
|
82
|
-
*/
|
|
83
|
-
headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_AUTOFOCUS), children: /* @__PURE__ */ jsx(
|
|
84
|
-
Icon,
|
|
85
|
-
{
|
|
86
|
-
size: "medium",
|
|
87
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_AUTOFOCUS}`
|
|
88
|
-
}
|
|
89
|
-
) })
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: "cluster",
|
|
93
|
-
name: getLabel(MAP_DICCTIONARY.LABEL_LAYER_CLUSTER),
|
|
94
|
-
minWidth: 20,
|
|
95
|
-
width: 50,
|
|
96
|
-
type: "boolean",
|
|
97
|
-
// frozen: true,
|
|
98
|
-
// isDraggable: false,
|
|
99
|
-
formatter: ColumnSetCheckFormatter({
|
|
100
|
-
field: "clusterAble",
|
|
101
|
-
disabledGetter: (row) => !row.clusterAble,
|
|
102
|
-
rowKeyGetter,
|
|
103
|
-
useHook
|
|
104
|
-
}),
|
|
105
|
-
cellClass: "rdg-cell-align-center",
|
|
106
|
-
/**
|
|
107
|
-
* HeaderRenderer para la columna de cluster
|
|
108
|
-
*/
|
|
109
|
-
headerRenderer: () => /* @__PURE__ */ jsx(Tooltip, { title: getLabel(MAP_DICCTIONARY.LABEL_LAYER_CLUSTER), children: /* @__PURE__ */ jsx(
|
|
110
|
-
Icon,
|
|
111
|
-
{
|
|
112
|
-
size: "medium",
|
|
113
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_CLUSTER}`
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
116
|
-
}
|
|
117
|
-
// {
|
|
118
|
-
// key: 'checkedInternalFeatures',
|
|
119
|
-
// name: getLabel(DICCTIONARY.LABEL_VIEW_INTERNAL_FEATURES),
|
|
120
|
-
// width: 80,
|
|
121
|
-
// type: 'boolean',
|
|
122
|
-
// // isDraggable: false,
|
|
123
|
-
// // frozen: true,
|
|
124
|
-
// formatter: ColumnSetCheckFormatter({
|
|
125
|
-
// field: 'InternalFeatures',
|
|
126
|
-
// rowKeyGetter,
|
|
127
|
-
// useHook,
|
|
128
|
-
// }),
|
|
129
|
-
// cellClass: 'rdg-cell-align-center',
|
|
130
|
-
// },
|
|
131
|
-
],
|
|
132
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
133
|
-
[getLabel, useHook]
|
|
134
|
-
);
|
|
135
|
-
return { columns };
|
|
136
|
-
}
|
|
137
|
-
export {
|
|
138
|
-
useColumns as u
|
|
139
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LayersListModel } from '../model';
|
|
2
|
-
/**
|
|
3
|
-
* Hook que contiene la logica de la tabla de capas
|
|
4
|
-
*/
|
|
5
|
-
export declare function useMaster(): {
|
|
6
|
-
rowKeyGetter: (row: LayersListModel) => string;
|
|
7
|
-
columns: import('react-data-grid').Column<LayersListModel, unknown>[];
|
|
8
|
-
rows: LayersListModel[];
|
|
9
|
-
checkedRows: ReadonlySet<string>;
|
|
10
|
-
onCheckedRowsChange: (newFeatures: ReadonlySet<string>) => void;
|
|
11
|
-
rowActionsGetter: (row: LayersListModel) => import('@m4l/components').MenuAction[] | [];
|
|
12
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { useCallback, useMemo } from "react";
|
|
2
|
-
import { shallow } from "zustand/shallow";
|
|
3
|
-
import { u as useColumns } from "./useColumns.js";
|
|
4
|
-
import { u as useMapStore } from "../../../../../../../../../hooks/useMapStore/index.js";
|
|
5
|
-
import { u as useCheckedLayers } from "./useCheckedLayers.js";
|
|
6
|
-
import { u as useRowActionsGetter } from "./useRowActionsGetter.js";
|
|
7
|
-
function useMaster() {
|
|
8
|
-
const [hashLayers, layersIds] = useMapStore(
|
|
9
|
-
(state) => [state.hashLayers, state.layersIds],
|
|
10
|
-
shallow
|
|
11
|
-
);
|
|
12
|
-
const rowKeyGetter = useCallback((row) => row.id, []);
|
|
13
|
-
const [visibleLayers, setVisibleLayers] = useCheckedLayers("visible");
|
|
14
|
-
const [autoFocusLayers, setAutoFocusLayers] = useCheckedLayers("autoFocus");
|
|
15
|
-
const [clusterLayers, setClusterLayers] = useCheckedLayers("cluster");
|
|
16
|
-
const rows = useMemo(() => {
|
|
17
|
-
const filteredRows = [];
|
|
18
|
-
layersIds.forEach((layerId) => {
|
|
19
|
-
if (hashLayers[layerId]) {
|
|
20
|
-
filteredRows.push({
|
|
21
|
-
id: layerId,
|
|
22
|
-
name: hashLayers[layerId].name || `*${layerId}`,
|
|
23
|
-
active: hashLayers[layerId].visible,
|
|
24
|
-
clusterAble: hashLayers[layerId].clusterAble || false,
|
|
25
|
-
deleteAble: hashLayers[layerId].deleteAble || false
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return filteredRows;
|
|
30
|
-
}, [hashLayers, layersIds]);
|
|
31
|
-
const { rowActionsGetter } = useRowActionsGetter();
|
|
32
|
-
const { columns } = useColumns({
|
|
33
|
-
rowKeyGetter,
|
|
34
|
-
visibleLayers,
|
|
35
|
-
setVisibleLayers,
|
|
36
|
-
autoFocusLayers,
|
|
37
|
-
setAutoFocusLayers,
|
|
38
|
-
clusterLayers,
|
|
39
|
-
setClusterLayers
|
|
40
|
-
});
|
|
41
|
-
return {
|
|
42
|
-
rowKeyGetter,
|
|
43
|
-
columns,
|
|
44
|
-
rows,
|
|
45
|
-
checkedRows: visibleLayers,
|
|
46
|
-
onCheckedRowsChange: setVisibleLayers,
|
|
47
|
-
rowActionsGetter
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
useMaster as u
|
|
52
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback } from "react";
|
|
2
|
-
import { useModuleDictionary, useModulePrivileges, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { shallow } from "zustand/shallow";
|
|
4
|
-
import { u as useMapStore } from "../../../../../../../../../hooks/useMapStore/index.js";
|
|
5
|
-
import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
|
|
6
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
|
|
7
|
-
function useRowActionsGetter() {
|
|
8
|
-
const { getLabel } = useModuleDictionary();
|
|
9
|
-
const { hasPrivilege } = useModulePrivileges();
|
|
10
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
|
-
const { removeLayer } = useMapStore((state) => state.mapActions, shallow);
|
|
12
|
-
const [urlIconDelete] = useState(
|
|
13
|
-
`${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_LAYER_DELETE}`
|
|
14
|
-
);
|
|
15
|
-
const onDelete = useCallback(
|
|
16
|
-
(row) => {
|
|
17
|
-
removeLayer(row.id);
|
|
18
|
-
},
|
|
19
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
20
|
-
[getLabel]
|
|
21
|
-
);
|
|
22
|
-
const rowActionsGetter = useCallback(
|
|
23
|
-
(row) => {
|
|
24
|
-
const conditionalItems = [];
|
|
25
|
-
conditionalItems.push({
|
|
26
|
-
type: "menuItem",
|
|
27
|
-
startIcon: urlIconDelete,
|
|
28
|
-
label: MAP_DICCTIONARY.ROW_ACTION_LAYER_DELETE,
|
|
29
|
-
onClick: () => {
|
|
30
|
-
onDelete(row);
|
|
31
|
-
},
|
|
32
|
-
disabled: !row.deleteAble
|
|
33
|
-
});
|
|
34
|
-
return conditionalItems;
|
|
35
|
-
},
|
|
36
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
|
-
[hasPrivilege, onDelete, urlIconDelete]
|
|
38
|
-
);
|
|
39
|
-
return { rowActionsGetter };
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
useRowActionsGetter as u
|
|
43
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DataGrid } from "@m4l/components";
|
|
3
|
-
import { u as useMaster } from "./hooks/useMaster.js";
|
|
4
|
-
import { u as useDisableZoomEvents } from "../../../../../../../../hooks/useDisableZoomEvents/index.js";
|
|
5
|
-
import { useRef } from "react";
|
|
6
|
-
function LayersTool() {
|
|
7
|
-
const { columns, rows, rowKeyGetter, rowActionsGetter } = useMaster();
|
|
8
|
-
const divRef = useRef(null);
|
|
9
|
-
useDisableZoomEvents(divRef.current);
|
|
10
|
-
return /* @__PURE__ */ jsx("div", { ref: divRef, style: { position: "relative", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
11
|
-
DataGrid,
|
|
12
|
-
{
|
|
13
|
-
id: "layers",
|
|
14
|
-
columns,
|
|
15
|
-
rows,
|
|
16
|
-
rowActionsGetter,
|
|
17
|
-
rowKeyGetter,
|
|
18
|
-
withActions: true,
|
|
19
|
-
actionsProps: {
|
|
20
|
-
withRowsCount: false,
|
|
21
|
-
withSettings: false,
|
|
22
|
-
withPager: false,
|
|
23
|
-
withLocalFilters: false
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
) });
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
LayersTool as L
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type LayerId = string;
|
|
2
|
-
/**
|
|
3
|
-
* Modelo de datos proveniente del endpoint get de geocercas
|
|
4
|
-
*/
|
|
5
|
-
export interface LayersListModel {
|
|
6
|
-
/**
|
|
7
|
-
* id de la geocerca
|
|
8
|
-
*/
|
|
9
|
-
id: LayerId;
|
|
10
|
-
/**
|
|
11
|
-
* "name" Traducción del nombre de la capa
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* "active" si está activa o no lo capa para visualización
|
|
16
|
-
*/
|
|
17
|
-
active?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* "clusterAble" si es cluterable
|
|
20
|
-
*/
|
|
21
|
-
clusterAble: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* "deleteAble"
|
|
24
|
-
*/
|
|
25
|
-
deleteAble: boolean;
|
|
26
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormControl, RadioGroup, FormControlLabel, Radio } from "@mui/material";
|
|
3
|
-
import { shallow } from "zustand/shallow";
|
|
4
|
-
import { Icon, CheckBox } from "@m4l/components";
|
|
5
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as useDisableZoomEvents } from "../../../../../../../../hooks/useDisableZoomEvents/index.js";
|
|
7
|
-
import { m as mapClasses } from "../../../../../../../../classes/index.js";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { M as MAP_ICONS } from "../../../../../../../../icons.js";
|
|
10
|
-
import { useRef } from "react";
|
|
11
|
-
import { u as useMapStore } from "../../../../../../../../hooks/useMapStore/index.js";
|
|
12
|
-
function MapSourcesTool() {
|
|
13
|
-
const { getLabel } = useModuleDictionary();
|
|
14
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
15
|
-
const currentMapSourceId = useMapStore((state) => state.currentMapSourceId, shallow);
|
|
16
|
-
const mapSources = useMapStore((state) => {
|
|
17
|
-
return state.mapSourcesIds.map((id) => ({
|
|
18
|
-
id,
|
|
19
|
-
dictionaryId: state.hashMapSources[id].dictionaryId,
|
|
20
|
-
iconUrl: state.hashMapSources[id].iconUrl,
|
|
21
|
-
hasBicyclingLayer: state.hashMapSources[id].hasBicyclingLayer,
|
|
22
|
-
hasTrafficLayer: state.hashMapSources[id].hasTrafficLayer,
|
|
23
|
-
hasTransitLayer: state.hashMapSources[id].hasTransitLayer,
|
|
24
|
-
roadSeletedOptions: state.hashMapSources[id].roadSelectedOptions
|
|
25
|
-
}));
|
|
26
|
-
}, shallow);
|
|
27
|
-
const { setCurrentMapSource, setMapSourceRoadOptions: setMapSourceRoadMapOptions } = useMapStore(
|
|
28
|
-
(state) => state.mapActions,
|
|
29
|
-
shallow
|
|
30
|
-
);
|
|
31
|
-
const divRef = useRef(null);
|
|
32
|
-
useDisableZoomEvents(divRef.current);
|
|
33
|
-
const handleChange = (event) => {
|
|
34
|
-
setCurrentMapSource(event.target.value);
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ jsx("div", { className: mapClasses.mapSourcesRoot, ref: divRef, children: /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
37
|
-
RadioGroup,
|
|
38
|
-
{
|
|
39
|
-
"aria-labelledby": "demo-controlled-radio-buttons-group",
|
|
40
|
-
name: "controlled-radio-buttons-group",
|
|
41
|
-
value: currentMapSourceId,
|
|
42
|
-
onChange: handleChange,
|
|
43
|
-
children: mapSources.map((mapSourceOption) => /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOption, children: [
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
FormControlLabel,
|
|
46
|
-
{
|
|
47
|
-
className: "",
|
|
48
|
-
value: mapSourceOption.id,
|
|
49
|
-
control: /* @__PURE__ */ jsx(Radio, {}),
|
|
50
|
-
label: /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionIconLabel, children: [
|
|
51
|
-
/* @__PURE__ */ jsx(
|
|
52
|
-
Icon,
|
|
53
|
-
{
|
|
54
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${mapSourceOption.iconUrl}`
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
/* @__PURE__ */ jsx("span", { children: getLabel(mapSourceOption.dictionaryId) })
|
|
58
|
-
] })
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
(mapSourceOption.hasBicyclingLayer || mapSourceOption.hasTrafficLayer || mapSourceOption.hasTransitLayer) && /* @__PURE__ */ jsxs(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
className: clsx(
|
|
65
|
-
mapClasses.mapSourcesOptionRoadOptions,
|
|
66
|
-
currentMapSourceId !== mapSourceOption.id ? mapClasses.disabled : mapClasses.active
|
|
67
|
-
),
|
|
68
|
-
children: [
|
|
69
|
-
mapSourceOption.hasTrafficLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
CheckBox,
|
|
72
|
-
{
|
|
73
|
-
disabled: currentMapSourceId !== mapSourceOption.id,
|
|
74
|
-
checked: mapSourceOption.roadSeletedOptions?.trafficLayer || false,
|
|
75
|
-
onChange: (_e, checked) => {
|
|
76
|
-
setMapSourceRoadMapOptions({ trafficLayer: checked });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
Icon,
|
|
82
|
-
{
|
|
83
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_TRAFFIC}`
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
] }),
|
|
87
|
-
mapSourceOption.hasTransitLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
89
|
-
CheckBox,
|
|
90
|
-
{
|
|
91
|
-
disabled: currentMapSourceId !== mapSourceOption.id,
|
|
92
|
-
checked: mapSourceOption.roadSeletedOptions?.transitLayer || false,
|
|
93
|
-
onChange: (_e, checked) => {
|
|
94
|
-
setMapSourceRoadMapOptions({ transitLayer: checked });
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ jsx(
|
|
99
|
-
Icon,
|
|
100
|
-
{
|
|
101
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_TRANSIT}`
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
] }),
|
|
105
|
-
mapSourceOption.hasBicyclingLayer && /* @__PURE__ */ jsxs("div", { className: mapClasses.mapSourcesOptionRoadOptionsCheck, children: [
|
|
106
|
-
/* @__PURE__ */ jsx(
|
|
107
|
-
CheckBox,
|
|
108
|
-
{
|
|
109
|
-
disabled: currentMapSourceId !== mapSourceOption.id,
|
|
110
|
-
checked: mapSourceOption.roadSeletedOptions?.bicyclingLayer || false,
|
|
111
|
-
inlineText: "Bycicle",
|
|
112
|
-
onChange: (_e, checked) => {
|
|
113
|
-
setMapSourceRoadMapOptions({ bicyclingLayer: checked });
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ jsx(
|
|
118
|
-
Icon,
|
|
119
|
-
{
|
|
120
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_SOURCE_ROAD_BICYCLING}`
|
|
121
|
-
}
|
|
122
|
-
)
|
|
123
|
-
] })
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
] }, mapSourceOption.dictionaryId))
|
|
128
|
-
}
|
|
129
|
-
) }) });
|
|
130
|
-
}
|
|
131
|
-
export {
|
|
132
|
-
MapSourcesTool as M
|
|
133
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
|
|
2
|
-
import { t as toQuadKey } from "./utils.js";
|
|
3
|
-
import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
|
|
4
|
-
const BING_URL_TEMPLATE = "https://{s}.ssl.ak.dynamic.tiles.virtualearth.net/comp/ch/|QK|?mkt=en-us&it=G,VE,BX,L,LA&shading=hill&og=22&n=z";
|
|
5
|
-
const BING_SUB_DOMAINS = ["t2", "t3"];
|
|
6
|
-
const TILE_LAYER_BING = {
|
|
7
|
-
id: "bing_rodmap",
|
|
8
|
-
sourceType: "Bing",
|
|
9
|
-
mapTypeTile: "roadmap",
|
|
10
|
-
dictionaryId: MAP_DICCTIONARY.LABEL_TILE_BING,
|
|
11
|
-
iconUrl: MAP_ICONS.MAP_SOURCE_BING,
|
|
12
|
-
urlTemplate: BING_URL_TEMPLATE,
|
|
13
|
-
options: {
|
|
14
|
-
minZoom: 0,
|
|
15
|
-
maxZoom: 21,
|
|
16
|
-
subdomains: BING_SUB_DOMAINS,
|
|
17
|
-
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a>',
|
|
18
|
-
tms: true
|
|
19
|
-
},
|
|
20
|
-
roadSelectedOptions: {
|
|
21
|
-
trafficLayer: false,
|
|
22
|
-
transitLayer: false,
|
|
23
|
-
bicyclingLayer: false
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* TODO: Documentar
|
|
27
|
-
*/
|
|
28
|
-
getTileUrl: (tileCoord) => {
|
|
29
|
-
const i = Math.abs(tileCoord.x + tileCoord.y) % BING_SUB_DOMAINS.length;
|
|
30
|
-
const z = tileCoord.z;
|
|
31
|
-
const x = tileCoord.x;
|
|
32
|
-
const y = tileCoord.y;
|
|
33
|
-
const gk = toQuadKey(x, y, z);
|
|
34
|
-
return BING_URL_TEMPLATE.replace("|QK|", gk).replace("{s}", BING_SUB_DOMAINS[i]);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
TILE_LAYER_BING as T
|
|
39
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TileLayerSource } from '../../../../../../../../../contexts/MapContext/types';
|
|
2
|
-
export declare const TILE_LAYER_GOOGLE: TileLayerSource;
|
|
3
|
-
export declare const TILE_LAYER_GOOGLE_SATELLITE: TileLayerSource;
|
|
4
|
-
export declare const TILE_LAYER_GOOGLE_HYBRID: TileLayerSource;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
|
|
2
|
-
import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
|
|
3
|
-
const TILE_LAYER_GOOGLE = {
|
|
4
|
-
id: "google_rodmap",
|
|
5
|
-
sourceType: "Google",
|
|
6
|
-
iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_ROADS,
|
|
7
|
-
mapTypeTile: "roadmap",
|
|
8
|
-
dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_ROADS,
|
|
9
|
-
urlTemplate: "http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
|
|
10
|
-
hasBicyclingLayer: true,
|
|
11
|
-
hasTrafficLayer: true,
|
|
12
|
-
hasTransitLayer: true,
|
|
13
|
-
options: {
|
|
14
|
-
minZoom: 0,
|
|
15
|
-
maxZoom: 22,
|
|
16
|
-
subdomains: ["mt0", "mt1", "mt2", "mt3"],
|
|
17
|
-
attribution: "Map data © Google",
|
|
18
|
-
tms: false
|
|
19
|
-
},
|
|
20
|
-
roadSelectedOptions: {
|
|
21
|
-
trafficLayer: false,
|
|
22
|
-
transitLayer: false,
|
|
23
|
-
bicyclingLayer: false
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const TILE_LAYER_GOOGLE_SATELLITE = {
|
|
27
|
-
id: "google_satellite",
|
|
28
|
-
sourceType: "Google",
|
|
29
|
-
iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_SATELLITE,
|
|
30
|
-
mapTypeTile: "satellite",
|
|
31
|
-
dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_SATELLITE,
|
|
32
|
-
urlTemplate: "http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
|
|
33
|
-
options: {
|
|
34
|
-
minZoom: 0,
|
|
35
|
-
maxZoom: 22,
|
|
36
|
-
subdomains: ["mt0", "mt1", "mt2", "mt3"],
|
|
37
|
-
attribution: "Map data © Google",
|
|
38
|
-
tms: false
|
|
39
|
-
},
|
|
40
|
-
roadSelectedOptions: {
|
|
41
|
-
trafficLayer: false,
|
|
42
|
-
transitLayer: false,
|
|
43
|
-
bicyclingLayer: false
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const TILE_LAYER_GOOGLE_HYBRID = {
|
|
47
|
-
id: "google_hybrid",
|
|
48
|
-
sourceType: "Google",
|
|
49
|
-
iconUrl: MAP_ICONS.MAP_SOURCE_GOOGLE_HYBRID,
|
|
50
|
-
mapTypeTile: "hybrid",
|
|
51
|
-
dictionaryId: MAP_DICCTIONARY.LABEL_TILE_GOOGLE_HYBRID,
|
|
52
|
-
urlTemplate: "http://{s}.google.com/vt/lyrs=y&x={x}&y={y}&z={z}&key=AIzaSyDfhTK9us4kuqPTeFIm89yB3uvk2_G5AMw",
|
|
53
|
-
hasBicyclingLayer: true,
|
|
54
|
-
hasTrafficLayer: true,
|
|
55
|
-
hasTransitLayer: true,
|
|
56
|
-
options: {
|
|
57
|
-
minZoom: 0,
|
|
58
|
-
maxZoom: 22,
|
|
59
|
-
subdomains: ["mt0", "mt1", "mt2", "mt3"],
|
|
60
|
-
attribution: "Map data © Google",
|
|
61
|
-
tms: false
|
|
62
|
-
},
|
|
63
|
-
roadSelectedOptions: {
|
|
64
|
-
trafficLayer: false,
|
|
65
|
-
transitLayer: false,
|
|
66
|
-
bicyclingLayer: false
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
TILE_LAYER_GOOGLE_HYBRID as T,
|
|
71
|
-
TILE_LAYER_GOOGLE_SATELLITE as a,
|
|
72
|
-
TILE_LAYER_GOOGLE as b
|
|
73
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../../../../dictionary.js";
|
|
2
|
-
import { M as MAP_ICONS } from "../../../../../../../../../icons.js";
|
|
3
|
-
const TILE_LAYER_OSM = {
|
|
4
|
-
id: "osm_roadmap",
|
|
5
|
-
sourceType: "OSM",
|
|
6
|
-
iconUrl: MAP_ICONS.MAP_SOURCE_OSM,
|
|
7
|
-
mapTypeTile: "roadmap",
|
|
8
|
-
dictionaryId: MAP_DICCTIONARY.LABEL_TILE_OSM,
|
|
9
|
-
urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
10
|
-
options: {
|
|
11
|
-
minZoom: 0,
|
|
12
|
-
maxZoom: 19,
|
|
13
|
-
subdomains: ["a", "b", "c"],
|
|
14
|
-
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a>',
|
|
15
|
-
tms: false
|
|
16
|
-
},
|
|
17
|
-
roadSelectedOptions: {
|
|
18
|
-
trafficLayer: false,
|
|
19
|
-
transitLayer: false,
|
|
20
|
-
bicyclingLayer: false
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
TILE_LAYER_OSM as T
|
|
25
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { RHFormProvider, Stack } from "@m4l/components";
|
|
3
|
-
import { M as MyActions } from "./subcomponents/MyActions/index.js";
|
|
4
|
-
import { u as useValidation } from "./hooks/useValidation.js";
|
|
5
|
-
import { I as INITIAL_FORM_VALUES } from "./constants.js";
|
|
6
|
-
import { M as MeasureData } from "./subcomponents/MeasureData/index.js";
|
|
7
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
8
|
-
import { M as MAP_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
9
|
-
import { m as mapClasses } from "../../../../../../classes/index.js";
|
|
10
|
-
function MeasureTool() {
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const finalInitalValues = {
|
|
13
|
-
...INITIAL_FORM_VALUES
|
|
14
|
-
};
|
|
15
|
-
if (finalInitalValues?.magnitudFactor?.name) {
|
|
16
|
-
finalInitalValues.magnitudFactor.name = getLabel(
|
|
17
|
-
MAP_DICCTIONARY.LABEL_MEASURE_UNIT_BASE_KILOMETERS
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
const { validationSchema } = useValidation();
|
|
21
|
-
const onSubmit = () => {
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ jsxs(
|
|
24
|
-
RHFormProvider,
|
|
25
|
-
{
|
|
26
|
-
className: mapClasses.meaureToolRoot,
|
|
27
|
-
statusLoad: INITIAL_FORM_VALUES.statusLoad,
|
|
28
|
-
onSubmit,
|
|
29
|
-
values: finalInitalValues,
|
|
30
|
-
validationSchema,
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ jsx(Stack, { direction: "column", children: /* @__PURE__ */ jsx(MeasureData, {}) }),
|
|
33
|
-
/* @__PURE__ */ jsx(MyActions, {})
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
MeasureTool as M
|
|
40
|
-
};
|
/package/components/{maps/components/GpsMap/contexts/MapContext/helper.js → Device/index.js}
RENAMED
|
File without changes
|
|
File without changes
|