@m4l/gclick 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/constants.d.ts +30 -0
- package/.storybook/decorators/StorybookWithMapProvider/constants.d.ts +2 -0
- package/.storybook/decorators/StorybookWithMapProvider/index.d.ts +1 -0
- package/.storybook/decorators/WithContexts/constants.d.ts +10 -0
- package/.storybook/decorators/WithContexts/index.d.ts +1 -0
- package/.storybook/decorators/WithContexts/types.d.ts +7 -0
- package/.storybook/decorators/WithWindowsContainer/index.d.ts +2 -0
- package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/index.d.ts +1 -0
- package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/types.d.ts +4 -0
- package/.storybook/main.d.ts +3 -0
- package/.storybook/mocks/config-msw.d.ts +21 -0
- package/.storybook/mocks/index.d.ts +2 -0
- package/.storybook/mocks/network-mocks.d.ts +1 -0
- package/.storybook/storybook.vite.d.ts +2 -0
- package/@types/augmentations.d.ts +38 -0
- package/@types/constants.d.ts +26 -0
- package/@types/constants.js +21 -0
- package/@types/deviceData.d.ts +90 -0
- package/@types/general.d.ts +21 -0
- package/@types/index.d.ts +2 -0
- package/@types/index.js +1 -0
- package/@types/types.d.js +1 -0
- package/@types/types.d.ts +43 -0
- package/@types/vpts.d.ts +49 -0
- package/components/DataGrid/assets/icons/datagrid.svg +4 -0
- package/components/DeviceLabel/DeviceLabel.d.ts +6 -0
- package/components/DeviceLabel/DeviceLabel.js +32 -0
- package/components/DeviceLabel/DeviceLabel.styles.d.ts +2 -0
- package/components/DeviceLabel/DeviceLabel.styles.js +33 -0
- package/components/DeviceLabel/constants.d.ts +2 -0
- package/components/DeviceLabel/constants.js +4 -0
- package/components/DeviceLabel/index.d.ts +1 -0
- package/components/DeviceLabel/index.js +1 -0
- package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +3 -0
- package/components/DeviceLabel/slots/DeviceLabelSlots.js +22 -0
- package/components/DeviceLabel/slots/slots.d.ts +5 -0
- package/components/DeviceLabel/slots/slots.js +9 -0
- package/components/DeviceLabel/types.d.ts +26 -0
- package/components/DeviceStatus/DeviceStatus.d.ts +6 -0
- package/components/DeviceStatus/DeviceStatus.js +15 -0
- package/components/DeviceStatus/DeviceStatus.styles.d.ts +2 -0
- package/components/DeviceStatus/DeviceStatus.styles.js +13 -0
- package/components/DeviceStatus/constants.d.ts +2 -0
- package/components/DeviceStatus/constants.js +4 -0
- package/components/DeviceStatus/dictionary.d.ts +13 -0
- package/components/DeviceStatus/dictionary.js +18 -0
- package/components/DeviceStatus/hooks/constants.d.ts +11 -0
- package/components/DeviceStatus/hooks/constants.js +79 -0
- package/components/DeviceStatus/hooks/helper.d.ts +7 -0
- package/components/DeviceStatus/hooks/helper.js +22 -0
- package/components/DeviceStatus/hooks/useDeviceStatus.d.ts +12 -0
- package/components/DeviceStatus/hooks/useDeviceStatus.js +25 -0
- package/components/DeviceStatus/icons.d.ts +11 -0
- package/components/DeviceStatus/icons.js +13 -0
- package/components/DeviceStatus/index.d.ts +4 -0
- package/components/DeviceStatus/index.js +1 -0
- package/components/DeviceStatus/slots/DeviceStatusSlots.d.ts +1 -0
- package/components/DeviceStatus/slots/DeviceStatusSlots.js +11 -0
- package/components/DeviceStatus/slots/slots.d.ts +3 -0
- package/components/DeviceStatus/slots/slots.js +7 -0
- package/components/DeviceStatus/types.d.ts +16 -0
- package/components/gauges/Gauge/Gauge.d.ts +22 -0
- package/components/gauges/Gauge/Gauge.js +25 -0
- package/components/gauges/Gauge/Gauge.styles.d.ts +2 -0
- package/components/gauges/Gauge/Gauge.styles.js +9 -0
- package/components/gauges/Gauge/constants.d.ts +2 -0
- package/components/gauges/Gauge/constants.js +8 -0
- package/components/gauges/Gauge/index.d.ts +1 -0
- package/components/gauges/Gauge/index.js +1 -0
- package/components/gauges/Gauge/slots/GaugeEnum.d.ts +3 -0
- package/components/gauges/Gauge/slots/GaugeEnum.js +7 -0
- package/components/gauges/Gauge/slots/GaugeSlots.d.ts +3 -0
- package/components/gauges/Gauge/slots/GaugeSlots.js +12 -0
- package/components/gauges/Gauge/types.d.ts +16 -0
- package/components/gauges/index.d.ts +1 -0
- package/components/gauges/index.js +1 -0
- package/components/index.d.ts +4 -0
- package/components/index.js +1 -0
- package/components/indicators/IndicatorCSQ/IndicatorCSQ.d.ts +7 -0
- package/components/indicators/IndicatorCSQ/IndicatorCSQ.styles.d.ts +2 -0
- package/components/indicators/IndicatorCSQ/constants.d.ts +8 -0
- package/components/indicators/IndicatorCSQ/dictionary.d.ts +9 -0
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +40 -0
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/index.d.ts +0 -0
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/types.d.ts +11 -0
- package/components/indicators/IndicatorCSQ/icons.d.ts +1 -0
- package/components/indicators/IndicatorCSQ/index.d.ts +3 -0
- package/components/indicators/IndicatorCSQ/slots/IndicatorCSQEnum.d.ts +7 -0
- package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.d.ts +15 -0
- package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/SignalIcon.d.ts +7 -0
- package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/index.d.ts +1 -0
- package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/types.d.ts +5 -0
- package/components/indicators/IndicatorCSQ/tests/IndicatorCSQ.test.d.ts +1 -0
- package/components/indicators/IndicatorCSQ/types.d.ts +21 -0
- package/components/maps/components/GpsMap/GpsMap.d.ts +8 -0
- package/components/maps/components/GpsMap/GpsMap.js +34 -0
- package/components/maps/components/GpsMap/GpsMap.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/GpsMap.styles.js +228 -0
- package/components/maps/components/GpsMap/classes/index.d.ts +8 -0
- package/components/maps/components/GpsMap/classes/index.js +110 -0
- package/components/maps/components/GpsMap/classes/types.d.ts +69 -0
- package/components/maps/components/GpsMap/constants.d.ts +36 -0
- package/components/maps/components/GpsMap/constants.js +49 -0
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts +13 -0
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +59 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +8 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helper.js +1 -0
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +2 -0
- package/components/maps/components/GpsMap/contexts/MapContext/index.js +1 -0
- package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +6 -0
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +375 -0
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +569 -0
- package/components/maps/components/GpsMap/dictionary.d.ts +32 -0
- package/components/maps/components/GpsMap/dictionary.js +32 -0
- package/components/maps/components/GpsMap/external/Control/index.d.ts +9 -0
- package/components/maps/components/GpsMap/external/Control/index.js +42 -0
- package/components/maps/components/GpsMap/external/Control/types.d.ts +7 -0
- package/components/maps/components/GpsMap/external/Popup/component.d.ts +4 -0
- package/components/maps/components/GpsMap/external/Popup/div-overlay.d.ts +4 -0
- package/components/maps/components/GpsMap/external/Popup/element.d.ts +4 -0
- package/components/maps/components/GpsMap/external/Popup/generic.d.ts +4 -0
- package/components/maps/components/GpsMap/external/Popup/index.d.ts +4 -0
- package/components/maps/components/GpsMap/external/googleMutant/LRUMap.d.ts +99 -0
- package/components/maps/components/GpsMap/external/googleMutant/LRUMap.js +1 -0
- package/components/maps/components/GpsMap/external/googleMutant/googleMutant.d.ts +1 -0
- package/components/maps/components/GpsMap/external/googleMutant/googleMutant.js +1 -0
- package/components/maps/components/GpsMap/external/googleMutant/googleMutantNoDelete.d.ts +1 -0
- package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +132 -0
- package/components/maps/components/GpsMap/external/googleMutant/index.js +1 -0
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.d.ts +1 -0
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +4 -0
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +8 -0
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +263 -0
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +1 -0
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +4 -0
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +8 -0
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +112 -0
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.d.ts +6 -0
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +33 -0
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/types.d.ts +7 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarker.d.ts +9 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +4 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +4 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.d.ts +5 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.js +80 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +83 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +15 -0
- package/components/maps/components/GpsMap/featureRenders/index.d.ts +3 -0
- package/components/maps/components/GpsMap/featureRenders/index.js +1 -0
- package/components/maps/components/GpsMap/hooks/useAutoFocus/index.d.ts +7 -0
- package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +78 -0
- package/components/maps/components/GpsMap/hooks/useAutoFocus/types.d.ts +15 -0
- package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.js +21 -0
- package/components/maps/components/GpsMap/hooks/useMapStore/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/useMapStore/index.js +13 -0
- package/components/maps/components/GpsMap/icons.d.ts +45 -0
- package/components/maps/components/GpsMap/icons.js +39 -0
- package/components/maps/components/GpsMap/index.d.ts +9 -0
- package/components/maps/components/GpsMap/index.js +1 -0
- package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.d.ts +11 -0
- package/components/maps/components/GpsMap/pluginLayers/PolylineWithArrows/index.js +74 -0
- package/components/maps/components/GpsMap/pluginLayers/index.d.ts +1 -0
- package/components/maps/components/GpsMap/pluginLayers/index.js +1 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +7 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +30 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +146 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +5 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +8 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +16 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +20 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +2 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.js +1 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +33 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +63 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +13 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +17 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +6 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +122 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +5 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +22 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +5 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +6 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +10 -0
- package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
- package/components/maps/components/GpsMap/popups/index.js +1 -0
- package/components/maps/components/GpsMap/popups/types.d.ts +10 -0
- package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +4 -0
- package/components/maps/components/GpsMap/slots/GpsMapSlots.js +24 -0
- package/components/maps/components/GpsMap/slots/slots.d.ts +6 -0
- package/components/maps/components/GpsMap/slots/slots.js +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +17 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/index.js +32 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +58 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +17 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +18 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +139 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +52 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +43 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +30 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +26 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +133 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +39 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +73 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +25 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js +19 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +103 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +34 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +45 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +245 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.js +17 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +40 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/model.d.ts +17 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +32 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +31 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.js +52 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +22 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +33 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +14 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +132 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.js +24 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.js +13 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +27 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +100 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +35 -0
- package/components/maps/components/GpsMap/types.d.ts +56 -0
- package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +4 -0
- package/components/maps/components/GpsMapTools/GpsMapTools.js +10 -0
- package/components/maps/components/GpsMapTools/classes/index.d.ts +7 -0
- package/components/maps/components/GpsMapTools/classes/index.js +21 -0
- package/components/maps/components/GpsMapTools/classes/types.d.ts +14 -0
- package/components/maps/components/GpsMapTools/constants.d.ts +8 -0
- package/components/maps/components/GpsMapTools/constants.js +71 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +21 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +48 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +19 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +155 -0
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +160 -0
- package/components/maps/components/GpsMapTools/dictionary.d.ts +62 -0
- package/components/maps/components/GpsMapTools/dictionary.js +66 -0
- package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.d.ts +5 -0
- package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +13 -0
- package/components/maps/components/GpsMapTools/hooks/useLayers/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +57 -0
- package/components/maps/components/GpsMapTools/icons.d.ts +23 -0
- package/components/maps/components/GpsMapTools/icons.js +22 -0
- package/components/maps/components/GpsMapTools/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/index.js +1 -0
- package/components/maps/components/GpsMapTools/styles.d.ts +1 -0
- package/components/maps/components/GpsMapTools/styles.js +18 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +84 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +40 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +34 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.js +77 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +14 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +216 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +11 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +63 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +36 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +25 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.js +19 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +71 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +51 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +11 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +128 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +5 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +55 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +76 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +7 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +46 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +86 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +86 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +7 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +85 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +114 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +22 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +164 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +12 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +113 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +73 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +8 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +9 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +49 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +13 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +114 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +7 -0
- package/components/maps/components/GpsMapTools/types.d.ts +34 -0
- package/components/maps/index.d.ts +4 -0
- package/components/maps/index.js +1 -0
- package/components/maps/utils/courseToCartesianAngle.d.ts +6 -0
- package/components/maps/utils/courseToCartesianAngle.js +8 -0
- package/components/maps/utils/courseToCssAngle.d.ts +9 -0
- package/components/maps/utils/courseToCssAngle.js +13 -0
- package/components/maps/utils/index.d.ts +6 -0
- package/components/maps/utils/index.js +1 -0
- package/components/maps/utils/isFeature.d.ts +2 -0
- package/components/maps/utils/isFeature.js +6 -0
- package/components/maps/utils/isFeatureCollection.d.ts +2 -0
- package/components/maps/utils/isFeatureCollection.js +6 -0
- package/components/maps/utils/isFeatureCollectionDraft.d.ts +6 -0
- package/components/maps/utils/isFeatureCollectionDraft.js +6 -0
- package/components/maps/utils/isGeometry.d.ts +2 -0
- package/components/maps/utils/isGeometry.js +6 -0
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +11 -0
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +39 -0
- package/contexts/RealTimeConsumerContext/constants.d.ts +3 -0
- package/contexts/RealTimeConsumerContext/constants.js +8 -0
- package/contexts/RealTimeConsumerContext/index.d.ts +3 -0
- package/contexts/RealTimeConsumerContext/index.js +1 -0
- package/contexts/RealTimeConsumerContext/store.d.ts +6 -0
- package/contexts/RealTimeConsumerContext/store.js +115 -0
- package/contexts/RealTimeConsumerContext/types.d.ts +64 -0
- package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +11 -0
- package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +20 -0
- package/contexts/RealTimeProducerContext/constants.d.ts +6 -0
- package/contexts/RealTimeProducerContext/constants.js +12 -0
- package/contexts/RealTimeProducerContext/index.d.ts +4 -0
- package/contexts/RealTimeProducerContext/index.js +1 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +33 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +140 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +28 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +15 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.js +14 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +23 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +136 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +23 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +66 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +36 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +45 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +10 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +15 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +12 -0
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +20 -0
- package/contexts/RealTimeProducerContext/store.d.ts +6 -0
- package/contexts/RealTimeProducerContext/store.js +136 -0
- package/contexts/RealTimeProducerContext/types.d.ts +196 -0
- package/contexts/index.d.ts +2 -0
- package/contexts/index.js +1 -0
- package/formatters/CourseFormatter/CourseFormatter.d.ts +14 -0
- package/formatters/CourseFormatter/CourseFormatter.js +33 -0
- package/formatters/CourseFormatter/CourseFormatter.styles.d.ts +2 -0
- package/formatters/CourseFormatter/CourseFormatter.styles.js +23 -0
- package/formatters/CourseFormatter/constants.d.ts +3 -0
- package/formatters/CourseFormatter/constants.js +6 -0
- package/formatters/CourseFormatter/dictionary.d.ts +12 -0
- package/formatters/CourseFormatter/dictionary.js +18 -0
- package/formatters/CourseFormatter/helper.d.ts +4 -0
- package/formatters/CourseFormatter/helper.js +28 -0
- package/formatters/CourseFormatter/index.d.ts +2 -0
- package/formatters/CourseFormatter/index.js +1 -0
- package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts +3 -0
- package/formatters/CourseFormatter/slots/CourseFormatterEnum.js +7 -0
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +3 -0
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +12 -0
- package/formatters/CourseFormatter/test/CourserFormatter.test.d.ts +1 -0
- package/formatters/CourseFormatter/types.d.ts +24 -0
- package/formatters/index.d.ts +1 -0
- package/hooks/index.d.ts +2 -0
- package/hooks/index.js +1 -0
- package/hooks/useRealTimeConsumer/index.d.ts +6 -0
- package/hooks/useRealTimeConsumer/index.js +13 -0
- package/hooks/useRealTimeProducer/index.d.ts +6 -0
- package/hooks/useRealTimeProducer/index.js +13 -0
- package/index.d.ts +9 -0
- package/index.js +90 -0
- package/mockServiceWorker.js +307 -0
- package/not_recognized/index.js +406 -0
- package/package.json +93 -0
- package/test/HostThemeProviderMock.d.ts +10 -0
- package/test/TestAppWrapper.d.ts +29 -0
- package/test/TestFormAutoValidation.d.ts +4 -0
- package/test/constants.d.ts +69 -0
- package/test/constants_no_mock.d.ts +1 -0
- package/test/getNameDataTestId.d.ts +15 -0
- package/test/getNameDataTestId.js +16 -0
- package/test/index.d.ts +4 -0
- package/test/mocks.d.ts +27 -0
- package/test/setup.d.ts +0 -0
- package/test/types.d.ts +4 -0
- package/test/utils.d.ts +29 -0
- package/utils/ObjectQueue.d.ts +18 -0
- package/utils/ObjectQueue.js +33 -0
- package/utils/capitalizeFirstLetter.d.ts +4 -0
- package/utils/capitalizeFirstLetter.js +10 -0
- package/utils/containerQuery.d.ts +5 -0
- package/utils/formatDistanceToNow/formatDistanteToNow.d.ts +5 -0
- package/utils/formatDistanceToNow/index.d.ts +2 -0
- package/utils/formatDistanceToNow/types.d.ts +21 -0
- package/utils/getComponentSlotRoot.d.ts +9 -0
- package/utils/getComponentSlotRoot.js +13 -0
- package/utils/getComponentUtilityClass.d.ts +1 -0
- package/utils/getComponentUtilityClass.js +7 -0
- package/utils/getPaletteColor.d.ts +5 -0
- package/utils/getPaletteColor.js +18 -0
- package/utils/getSizeStyles/_test_/getSizeStyles.test.d.ts +1 -0
- package/utils/getSizeStyles/getSizeStyles.d.ts +28 -0
- package/utils/getSizeStyles/getSizeStyles.js +13 -0
- package/utils/getSizeStyles/index.d.ts +1 -0
- package/utils/getSizeStyles/index.js +1 -0
- package/utils/getThemeVariantColor.d.ts +6 -0
- package/utils/getTransformXY.d.ts +7 -0
- package/utils/getTypographyStyles.d.ts +11 -0
- package/utils/getTypographyStyles.js +8 -0
- package/utils/index.d.ts +8 -0
- package/utils/index.js +1 -0
- package/utils/isValidDate.d.ts +1 -0
- package/utils/isValidDate.js +6 -0
- package/utils/types.d.ts +23 -0
- package/vite-env.d.ts +4 -0
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function toQuadKey(x, y, z) {
|
|
2
|
+
let quadKey = "";
|
|
3
|
+
for (let i = z; i > 0; i--) {
|
|
4
|
+
let digit = 0;
|
|
5
|
+
const mask = 1 << i - 1;
|
|
6
|
+
if ((x & mask) !== 0) {
|
|
7
|
+
digit++;
|
|
8
|
+
}
|
|
9
|
+
if ((y & mask) !== 0) {
|
|
10
|
+
digit++;
|
|
11
|
+
digit++;
|
|
12
|
+
}
|
|
13
|
+
quadKey += digit.toString();
|
|
14
|
+
}
|
|
15
|
+
return quadKey;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
toQuadKey as t
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TopRigthToolsProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que contiene los botones de herramientas de la parte superior derecha del mapa
|
|
4
|
+
* - Boton de herramientas de GPS (Opcional)
|
|
5
|
+
* - Boton de herramientas de medición
|
|
6
|
+
* - Botones de zoom In
|
|
7
|
+
* - Botones de zoom Out
|
|
8
|
+
* @param props
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function TopRightTools(props: TopRigthToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { useMap } from "react-leaflet";
|
|
4
|
+
import { shallow } from "zustand/shallow";
|
|
5
|
+
import { C as Control } from "../../../../external/Control/index.js";
|
|
6
|
+
import { usePopupsStore, ToggleIconButton } from "@m4l/components";
|
|
7
|
+
import { M as MeasureTool } from "./subcomponents/MeasureTool/index.js";
|
|
8
|
+
import { Z as ZoomButtons } from "./subcomponents/ZoomButtons/index.js";
|
|
9
|
+
import { M as MAP_ICONS } from "../../../../icons.js";
|
|
10
|
+
import { M as MAP_DICCTIONARY } from "../../../../dictionary.js";
|
|
11
|
+
import { m as mapClasses } from "../../../../classes/index.js";
|
|
12
|
+
import { G as GPS_TOOLS_POPUP_DEFAULT_POSITION, c as GPS_TOOLS_POPUP_ID, d as MESURE_POPUP_DEFAULT_POSITION } from "../../../../constants.js";
|
|
13
|
+
function TopRightTools(props) {
|
|
14
|
+
const { tools } = props;
|
|
15
|
+
const { addPopup } = usePopupsStore((state) => state.popupsActions);
|
|
16
|
+
const { close } = usePopupsStore((state) => state.popupActions);
|
|
17
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
18
|
+
const { getLabel } = useModuleDictionary();
|
|
19
|
+
const openPopupsIds = usePopupsStore(
|
|
20
|
+
(state) => state.popupsIds.filter((pId) => {
|
|
21
|
+
return state.hashPopups[pId].status === "init";
|
|
22
|
+
}),
|
|
23
|
+
shallow
|
|
24
|
+
);
|
|
25
|
+
const popupsIds = usePopupsStore((state) => state.popupsIds, shallow);
|
|
26
|
+
const map = useMap();
|
|
27
|
+
const isToggledGpsTools = openPopupsIds.indexOf("gpsTools") > -1;
|
|
28
|
+
const isDisabledGpsTools = popupsIds.indexOf("gpsTools") > -1 && openPopupsIds.indexOf("gpsTools") === -1;
|
|
29
|
+
const isToggledMeasureTool = openPopupsIds.indexOf("measureTool") > -1;
|
|
30
|
+
const isDisabledMeasureTool = popupsIds.indexOf("measureTool") > -1 && openPopupsIds.indexOf("measureTool") === -1;
|
|
31
|
+
const onMouseDown = (e) => {
|
|
32
|
+
map.dragging.disable();
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
35
|
+
};
|
|
36
|
+
const onMouseUp = (e) => {
|
|
37
|
+
map.dragging.enable();
|
|
38
|
+
e.stopPropagation();
|
|
39
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
40
|
+
};
|
|
41
|
+
const onGpsToolsClick = (e) => {
|
|
42
|
+
if (tools && !isToggledGpsTools) {
|
|
43
|
+
addPopup(
|
|
44
|
+
{
|
|
45
|
+
winType: "component",
|
|
46
|
+
popupId: GPS_TOOLS_POPUP_ID,
|
|
47
|
+
title: getLabel(MAP_DICCTIONARY.LABEL_GPSTOOLS_NAME),
|
|
48
|
+
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_ICONS.MAP_GPS_TOOLS_TOOL}`,
|
|
49
|
+
component: tools,
|
|
50
|
+
onMouseDown,
|
|
51
|
+
defaultPosition: GPS_TOOLS_POPUP_DEFAULT_POSITION
|
|
52
|
+
},
|
|
53
|
+
{ closeOthers: true }
|
|
54
|
+
);
|
|
55
|
+
} else {
|
|
56
|
+
close(GPS_TOOLS_POPUP_ID);
|
|
57
|
+
}
|
|
58
|
+
e.stopPropagation();
|
|
59
|
+
};
|
|
60
|
+
const onMeasureToolClick = (e) => {
|
|
61
|
+
if (!isToggledMeasureTool) {
|
|
62
|
+
addPopup(
|
|
63
|
+
{
|
|
64
|
+
winType: "component",
|
|
65
|
+
popupId: "measureTool",
|
|
66
|
+
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_MEASURE_TOOL}`,
|
|
67
|
+
title: getLabel(MAP_DICCTIONARY.LABEL_POPUP_MEASURE),
|
|
68
|
+
component: MeasureTool,
|
|
69
|
+
onMouseDown,
|
|
70
|
+
defaultPosition: MESURE_POPUP_DEFAULT_POSITION
|
|
71
|
+
},
|
|
72
|
+
{ closeOthers: true }
|
|
73
|
+
);
|
|
74
|
+
} else {
|
|
75
|
+
close("measureTool");
|
|
76
|
+
}
|
|
77
|
+
e.stopPropagation();
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ jsxs(Control, { position: "topright", prepend: true, className: mapClasses.topRigthToolsRoot, children: [
|
|
80
|
+
tools && /* @__PURE__ */ jsx(
|
|
81
|
+
ToggleIconButton,
|
|
82
|
+
{
|
|
83
|
+
isToggled: isToggledGpsTools,
|
|
84
|
+
disabled: isDisabledGpsTools,
|
|
85
|
+
onToggle: onGpsToolsClick,
|
|
86
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_ICONS.MAP_GPS_TOOLS_TOOL}`
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
ToggleIconButton,
|
|
91
|
+
{
|
|
92
|
+
isToggled: isToggledMeasureTool,
|
|
93
|
+
disabled: isDisabledMeasureTool,
|
|
94
|
+
onToggle: onMeasureToolClick,
|
|
95
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_MEASURE_TOOL}`
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ jsx(ZoomButtons, {})
|
|
99
|
+
] });
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
TopRightTools as T
|
|
103
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormMeasureValues } from './types';
|
|
2
|
+
export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
3
|
+
export declare const STROKE_OPACITY_DEFAULT: {
|
|
4
|
+
value: number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const STROKE_WHEIGTH_DEFAULT: {
|
|
8
|
+
value: number;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const STROKE_DASH_ARRAY_DEFAULT: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FILL_COLOR_DEFAULT = "#aa3000";
|
|
16
|
+
export declare const FILL_OPACITY_DEFAULT: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const INITIAL_FORM_VALUES: FormMeasureValues;
|
|
21
|
+
export declare const STYLE_MEASURE_OPTIONS: {
|
|
22
|
+
strokeLineColor: string;
|
|
23
|
+
strokeLineWeight: number;
|
|
24
|
+
markerHeight: number;
|
|
25
|
+
markerWidth: number;
|
|
26
|
+
labelMarkerHeight: number;
|
|
27
|
+
labelMarkerWidth: number;
|
|
28
|
+
labelMarkerAnchorY: number;
|
|
29
|
+
labelMarkerAnchorX: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const INITIAL_FORM_VALUES = {
|
|
2
|
+
/** General Data */
|
|
3
|
+
statusLoad: "ready",
|
|
4
|
+
reInits: 0,
|
|
5
|
+
value: "0",
|
|
6
|
+
measureTypeId: "distance",
|
|
7
|
+
magnitudFactor: {
|
|
8
|
+
id: "m_kilometers",
|
|
9
|
+
name: "Kilometers",
|
|
10
|
+
symbol: "k",
|
|
11
|
+
factor_x0: 0,
|
|
12
|
+
factor_x1: 1,
|
|
13
|
+
factor_x2: 0
|
|
14
|
+
},
|
|
15
|
+
unitArea: null,
|
|
16
|
+
/** Config Data */
|
|
17
|
+
/** de Apoyo */
|
|
18
|
+
statusEdition: "initial"
|
|
19
|
+
// geometry: null ,
|
|
20
|
+
};
|
|
21
|
+
const STYLE_MEASURE_OPTIONS = {
|
|
22
|
+
strokeLineColor: "#1E96DC",
|
|
23
|
+
strokeLineWeight: 5,
|
|
24
|
+
markerHeight: 37,
|
|
25
|
+
markerWidth: 26,
|
|
26
|
+
labelMarkerHeight: 0,
|
|
27
|
+
labelMarkerWidth: 0,
|
|
28
|
+
labelMarkerAnchorY: 0,
|
|
29
|
+
labelMarkerAnchorX: 0
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
INITIAL_FORM_VALUES as I,
|
|
33
|
+
STYLE_MEASURE_OPTIONS as S
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as L } from 'leaflet';
|
|
2
|
+
import { GetLabelType } from '@m4l/core';
|
|
3
|
+
/**
|
|
4
|
+
* getMarkerPointIcon: Función que retorna el icono/div que representa un punto de medición
|
|
5
|
+
*/
|
|
6
|
+
export declare const getMarkerPointIcon: (position: number) => L.DivIcon;
|
|
7
|
+
/**
|
|
8
|
+
* getMarkerPointLabel: Función que retorna el icono/div que representa la etiqueta de distancia
|
|
9
|
+
* entre puntos, y el link para borrar el punto
|
|
10
|
+
*/
|
|
11
|
+
export declare const getMarkerPointLabel: (distance: string | undefined, getLabel: GetLabelType) => L.DivIcon;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { S as STYLE_MEASURE_OPTIONS } from "../../constants.js";
|
|
2
|
+
import { m as mapClasses } from "../../../../../../../../classes/index.js";
|
|
3
|
+
import { M as MAP_DICCTIONARY } from "../../../../../../../../dictionary.js";
|
|
4
|
+
import L__default from "leaflet";
|
|
5
|
+
const getMarkerPointIcon = (position) => {
|
|
6
|
+
return L__default.divIcon({
|
|
7
|
+
className: mapClasses.measureMarkerRoot,
|
|
8
|
+
html: `<div class="${mapClasses.measureMarkerContainer}">
|
|
9
|
+
<div class="${mapClasses.measureMarkerContainerRhomb}">
|
|
10
|
+
</div>
|
|
11
|
+
<div class="${mapClasses.measureMarkerContainerSlot}">
|
|
12
|
+
<div class="${mapClasses.measureMarkerContainerSlotNumber}">
|
|
13
|
+
${position}
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
`,
|
|
18
|
+
iconSize: [STYLE_MEASURE_OPTIONS.markerWidth, STYLE_MEASURE_OPTIONS.markerHeight],
|
|
19
|
+
// tamaño del icono
|
|
20
|
+
iconAnchor: [STYLE_MEASURE_OPTIONS.markerWidth / 2, STYLE_MEASURE_OPTIONS.markerHeight]
|
|
21
|
+
// punto de anclaje, el mismo que el de la imagen
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const getMarkerPointLabel = (distance, getLabel) => {
|
|
25
|
+
return L__default.divIcon({
|
|
26
|
+
className: mapClasses.measureLabelMarkerRoot,
|
|
27
|
+
html: `<div class="${mapClasses.measureLabelMarkerContainer}">
|
|
28
|
+
${distance ? `<span class="${mapClasses.measureLabelMarkerDistance}">${distance}</span>` : ""}
|
|
29
|
+
<div class="${mapClasses.measureLabelMarkerRemove}">${getLabel(
|
|
30
|
+
MAP_DICCTIONARY.LABEL_MEASURE_REMOVE_POINT
|
|
31
|
+
)}</div>
|
|
32
|
+
</div>`,
|
|
33
|
+
iconSize: [STYLE_MEASURE_OPTIONS.labelMarkerWidth, STYLE_MEASURE_OPTIONS.labelMarkerHeight],
|
|
34
|
+
// tamaño del label
|
|
35
|
+
iconAnchor: [
|
|
36
|
+
STYLE_MEASURE_OPTIONS.labelMarkerAnchorX,
|
|
37
|
+
STYLE_MEASURE_OPTIONS.labelMarkerAnchorY
|
|
38
|
+
]
|
|
39
|
+
//
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
getMarkerPointLabel as a,
|
|
44
|
+
getMarkerPointIcon as g
|
|
45
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MagnitudeFactorItem } from '../../../../../../../../../GpsMapTools/types';
|
|
2
|
+
import { StatusEdition } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* useMeasure hook se encarga de pintar las marcas y una línea que las une, para calcular la distancia o el area (NextMVP)
|
|
5
|
+
* de ellas. En su primera versión no incluye agregar nuevas marcas entre los vertices por facilidad de implementación
|
|
6
|
+
* ya que el costo beneficio es muy alto si se coloca esa capacidad.
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function useMeasure(): {
|
|
10
|
+
statusEdition: StatusEdition;
|
|
11
|
+
magnitudFactor: MagnitudeFactorItem;
|
|
12
|
+
value: number;
|
|
13
|
+
};
|