@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,21 @@
|
|
|
1
|
+
import { M4LOverridesStyleRules } from '@m4l/components';
|
|
2
|
+
import { IndicatorCSQSlots } from './slots/IndicatorCSQEnum';
|
|
3
|
+
import { CSQ_SIGNAL_KEY_COMPONENT } from './constants';
|
|
4
|
+
import { Theme } from '@mui/material';
|
|
5
|
+
import { Sizes } from '@m4l/styles';
|
|
6
|
+
export interface IndicatorCSQProps {
|
|
7
|
+
/**
|
|
8
|
+
* Signal value
|
|
9
|
+
*/
|
|
10
|
+
value?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the indicator
|
|
13
|
+
*/
|
|
14
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
15
|
+
}
|
|
16
|
+
export type IndicatorCSQSlotsType = keyof typeof IndicatorCSQSlots;
|
|
17
|
+
export type IndicatorCSQOwnerState = {
|
|
18
|
+
percentage: number;
|
|
19
|
+
size: IndicatorCSQProps['size'];
|
|
20
|
+
};
|
|
21
|
+
export type IndicatorCSQStyles = M4LOverridesStyleRules<IndicatorCSQSlotsType, typeof CSQ_SIGNAL_KEY_COMPONENT, Theme>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MapProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* "Map" componente encargado de renderizar las diferentes capas y brindar diferentes herramientas de usabilidad al usuario.
|
|
4
|
+
* Se utiliza MapRootContainer que es el estilado del contenedor principal del mapa.
|
|
5
|
+
* @param props.gpsTools Herrameitas para gestionar las herramientas de guardian.click
|
|
6
|
+
* @link https://react-leaflet.js.org/
|
|
7
|
+
*/
|
|
8
|
+
export declare function GpsMap(props: MapProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { T as TileLayers } from "./subcomponents/TileLayers/index.js";
|
|
3
|
+
import { C as Controls } from "./subcomponents/Controls/index.js";
|
|
4
|
+
import { L as LayersContainer } from "./subcomponents/LayersContainer/index.js";
|
|
5
|
+
import { m as mapClasses } from "./classes/index.js";
|
|
6
|
+
import { G as GpsMapRootStyled } from "./slots/GpsMapSlots.js";
|
|
7
|
+
function GpsMap(props) {
|
|
8
|
+
const {
|
|
9
|
+
tools,
|
|
10
|
+
center = [6.215749485905093, -75.58622905191254],
|
|
11
|
+
initalZoom = 16,
|
|
12
|
+
maxZoom = 22
|
|
13
|
+
} = props;
|
|
14
|
+
return /* @__PURE__ */ jsxs(
|
|
15
|
+
GpsMapRootStyled,
|
|
16
|
+
{
|
|
17
|
+
className: mapClasses.root,
|
|
18
|
+
center,
|
|
19
|
+
zoom: initalZoom,
|
|
20
|
+
maxZoom,
|
|
21
|
+
boxZoom: true,
|
|
22
|
+
preferCanvas: true,
|
|
23
|
+
zoomControl: false,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx(TileLayers, {}),
|
|
26
|
+
/* @__PURE__ */ jsx(LayersContainer, {}),
|
|
27
|
+
/* @__PURE__ */ jsx(Controls, { tools })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
GpsMap as G
|
|
34
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import "leaflet/dist/leaflet.css";
|
|
2
|
+
const mapStyles = {
|
|
3
|
+
/**
|
|
4
|
+
* TODO: Documentar
|
|
5
|
+
*/
|
|
6
|
+
root: () => ({
|
|
7
|
+
//leaflet_css,
|
|
8
|
+
width: "100%",
|
|
9
|
+
height: "100%",
|
|
10
|
+
flexGrow: "1",
|
|
11
|
+
overflow: "hidden",
|
|
12
|
+
position: "relative",
|
|
13
|
+
/*
|
|
14
|
+
* Control superior izquierdo
|
|
15
|
+
*/
|
|
16
|
+
"& .M4LMap-topLeftToolsRoot": {
|
|
17
|
+
display: "flex",
|
|
18
|
+
backgroundColor: "blue"
|
|
19
|
+
//Por cambiar
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* Control superior derecho
|
|
23
|
+
*/
|
|
24
|
+
"& .M4LMap-topRigthToolsRoot": {
|
|
25
|
+
backgroundColor: "blue",
|
|
26
|
+
//Por cambiar
|
|
27
|
+
display: "flex",
|
|
28
|
+
right: 0,
|
|
29
|
+
position: "absolute",
|
|
30
|
+
/**
|
|
31
|
+
* Zoom buttons
|
|
32
|
+
*/
|
|
33
|
+
"& .M4LMap-zoomButtons": {
|
|
34
|
+
display: "flex"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Marcas
|
|
39
|
+
*/
|
|
40
|
+
"& .M4LMap-markerLayerRoot": {},
|
|
41
|
+
"& .M4LMap-markerLayerIcon": {
|
|
42
|
+
transformOrigin: "center center",
|
|
43
|
+
justifyContent: "center",
|
|
44
|
+
top: 0,
|
|
45
|
+
left: 0,
|
|
46
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
|
|
47
|
+
display: "flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
" > img ": {
|
|
50
|
+
height: "38px"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"& .M4LMap-featureLabel": {
|
|
54
|
+
position: "absolute",
|
|
55
|
+
display: "flex",
|
|
56
|
+
transformOrigin: "left center",
|
|
57
|
+
fontSize: "11px",
|
|
58
|
+
borderRadius: "4px",
|
|
59
|
+
maxWidth: "300px",
|
|
60
|
+
fontWeight: "bolder",
|
|
61
|
+
padding: "2px 8px",
|
|
62
|
+
opacity: ".85",
|
|
63
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.3))",
|
|
64
|
+
whiteSpace: "nowrap",
|
|
65
|
+
overflow: "hidden",
|
|
66
|
+
textOverflow: "ellipsis"
|
|
67
|
+
},
|
|
68
|
+
//Herramienta de medición Formulario
|
|
69
|
+
"& .M4LMap-meaureToolRoot": {
|
|
70
|
+
backgroundColor: "green",
|
|
71
|
+
//Por cambiar
|
|
72
|
+
height: "100%",
|
|
73
|
+
width: "100%"
|
|
74
|
+
},
|
|
75
|
+
"& .M4LMap-measureToolFormValue": {
|
|
76
|
+
justifyContent: "center"
|
|
77
|
+
},
|
|
78
|
+
"& .M4LMap-measureToolFormValueDistance": {
|
|
79
|
+
border: "1px solid white",
|
|
80
|
+
margin: "0 5px",
|
|
81
|
+
fontWeight: 800,
|
|
82
|
+
//Por cambiar
|
|
83
|
+
fontSize: "large"
|
|
84
|
+
//Por cambiar
|
|
85
|
+
},
|
|
86
|
+
//Marker measure Point Icon
|
|
87
|
+
"& .M4LMap-measureMarkerRoot": {
|
|
88
|
+
"--color": "green"
|
|
89
|
+
},
|
|
90
|
+
"& .M4LMap-measureMarkerContainer": {
|
|
91
|
+
position: "relative",
|
|
92
|
+
cursor: "pointer"
|
|
93
|
+
},
|
|
94
|
+
"& .M4LMap-measureMarkerContainerRhomb": {
|
|
95
|
+
position: "absolute",
|
|
96
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
|
|
97
|
+
width: "31px",
|
|
98
|
+
height: "31px",
|
|
99
|
+
borderRadius: "50% 50% 50% 0",
|
|
100
|
+
border: "4px solid var(--color)",
|
|
101
|
+
backgroundColor: "var(--color)",
|
|
102
|
+
transform: "rotate(-45deg)"
|
|
103
|
+
},
|
|
104
|
+
"& .M4LMap-measureMarkerContainerSlot": {
|
|
105
|
+
position: "absolute",
|
|
106
|
+
background: "#fff",
|
|
107
|
+
borderRadius: "50%",
|
|
108
|
+
overflow: "hidden",
|
|
109
|
+
top: "3px",
|
|
110
|
+
left: "3px",
|
|
111
|
+
width: "25px",
|
|
112
|
+
height: "24px"
|
|
113
|
+
},
|
|
114
|
+
"& .M4LMap-measureMarkerContainerSlotNumber": {
|
|
115
|
+
fontSize: "14px",
|
|
116
|
+
fontWeight: "600",
|
|
117
|
+
textAlign: "center",
|
|
118
|
+
marginTop: "1px",
|
|
119
|
+
color: "black"
|
|
120
|
+
},
|
|
121
|
+
//Marker Point Label
|
|
122
|
+
"& .M4LMap-measureLabelMarkerRoot": {
|
|
123
|
+
"--color": "yellow"
|
|
124
|
+
},
|
|
125
|
+
"& .M4LMap-measureLabelMarkerContainer": {
|
|
126
|
+
backgroundColor: "var(--color)",
|
|
127
|
+
border: "1px solid gray",
|
|
128
|
+
color: "#fff",
|
|
129
|
+
width: "80px",
|
|
130
|
+
marginLeft: "15px",
|
|
131
|
+
marginTop: "15px"
|
|
132
|
+
},
|
|
133
|
+
"& .M4LMap-measureLabelMarkerDistance": {
|
|
134
|
+
color: "gray"
|
|
135
|
+
},
|
|
136
|
+
"& .M4LMap-measureLabelMarkerRemove": {
|
|
137
|
+
color: "blue"
|
|
138
|
+
},
|
|
139
|
+
//Cluster Markers
|
|
140
|
+
//Animacion
|
|
141
|
+
"& .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow": {
|
|
142
|
+
// '-webkit-transition': '-webkit-transform 0.3s ease-out, opacity 0.3s ease-in',
|
|
143
|
+
// '-moz-transition': '-moz-transform 0.3s ease-out, opacity 0.3s ease-in',
|
|
144
|
+
// '-o-transition': '-o-transform 0.3s ease-out, opacity 0.3s ease-in',
|
|
145
|
+
transition: "transform 0.3s ease-out, opacity 0.3s ease-in"
|
|
146
|
+
},
|
|
147
|
+
//Spider
|
|
148
|
+
"& .leaflet-cluster-spider-leg": {
|
|
149
|
+
// '-webkit-transition':
|
|
150
|
+
// '-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in',
|
|
151
|
+
// '-moz-transition': '-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in',
|
|
152
|
+
// '-o-transition': '-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in',
|
|
153
|
+
transition: "stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in"
|
|
154
|
+
},
|
|
155
|
+
//Colores de los clusters dependiendo de la cantidad de las marcas
|
|
156
|
+
"& .marker-cluster-small": {
|
|
157
|
+
backgroundColor: "rgba(181, 226, 140, 0.6)"
|
|
158
|
+
},
|
|
159
|
+
"& .marker-cluster-small div": {
|
|
160
|
+
backgroundColor: "rgba(110, 204, 57, 0.6)"
|
|
161
|
+
},
|
|
162
|
+
"& .marker-cluster-medium": {
|
|
163
|
+
backgroundColor: "rgba(241, 211, 87, 0.6)"
|
|
164
|
+
},
|
|
165
|
+
"& .marker-cluster-medium div": {
|
|
166
|
+
backgroundColor: "rgba(240, 194, 12, 0.6)"
|
|
167
|
+
},
|
|
168
|
+
"& .marker-cluster-large": {
|
|
169
|
+
backgroundColor: "rgba(253, 156, 115, 0.6)"
|
|
170
|
+
},
|
|
171
|
+
"& .marker-cluster-large div": {
|
|
172
|
+
backgroundColor: "rgba(241, 128, 23, 0.6)"
|
|
173
|
+
},
|
|
174
|
+
/* IE 6-8 fallback colors */
|
|
175
|
+
"& .leaflet-oldie .marker-cluster-small": {
|
|
176
|
+
backgroundColor: "rgb(181, 226, 140)"
|
|
177
|
+
},
|
|
178
|
+
"& .leaflet-oldie .marker-cluster-small div": {
|
|
179
|
+
backgroundColor: "rgb(110, 204, 57)"
|
|
180
|
+
},
|
|
181
|
+
"& .leaflet-oldie .marker-cluster-medium": {
|
|
182
|
+
backgroundColor: "rgb(241, 211, 87)"
|
|
183
|
+
},
|
|
184
|
+
"& .leaflet-oldie .marker-cluster-medium div": {
|
|
185
|
+
backgroundColor: "rgb(240, 194, 12)"
|
|
186
|
+
},
|
|
187
|
+
"& .leaflet-oldie .marker-cluster-large": {
|
|
188
|
+
backgroundColor: "rgb(253, 156, 115)"
|
|
189
|
+
},
|
|
190
|
+
"& .leaflet-oldie .marker-cluster-large div": {
|
|
191
|
+
backgroundColor: "rgb(241, 128, 23)"
|
|
192
|
+
},
|
|
193
|
+
//Cluster Markers
|
|
194
|
+
"& .marker-cluster": {
|
|
195
|
+
backgroundClip: "padding-box",
|
|
196
|
+
borderRadius: "20px"
|
|
197
|
+
},
|
|
198
|
+
"& .marker-cluster div": {
|
|
199
|
+
width: "30px",
|
|
200
|
+
height: "30px",
|
|
201
|
+
marginLeft: "5px",
|
|
202
|
+
marginTop: "5px",
|
|
203
|
+
textAlign: "center",
|
|
204
|
+
borderRadius: "15px",
|
|
205
|
+
font: '12px "Helvetica Neue", Arial, Helvetica, sans-serif'
|
|
206
|
+
},
|
|
207
|
+
//Cluster Markers
|
|
208
|
+
"& .marker-cluster span": {
|
|
209
|
+
lineHeight: "30px"
|
|
210
|
+
},
|
|
211
|
+
// '& .xxxxx': {
|
|
212
|
+
// // color: theme.vars.palette.state.error.normal,
|
|
213
|
+
// '& .M4LIcon-root .M4LIcon-icon': {
|
|
214
|
+
// backgroundColor: theme.vars.palette.state.error.normal,
|
|
215
|
+
// },
|
|
216
|
+
// },
|
|
217
|
+
"& .leaflet-control-scale-line": {
|
|
218
|
+
color: "red"
|
|
219
|
+
//Ejemplo de como estilar el control de scala
|
|
220
|
+
}
|
|
221
|
+
}),
|
|
222
|
+
popupGpsDevice: () => ({}),
|
|
223
|
+
popupGpsDeviceHeader: () => ({}),
|
|
224
|
+
popupGpsDeviceContent: () => ({})
|
|
225
|
+
};
|
|
226
|
+
export {
|
|
227
|
+
mapStyles as m
|
|
228
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MapClasses } from './types';
|
|
2
|
+
import { OwnerState } from '../contexts/MapContext/types';
|
|
3
|
+
export declare const mapClasses: MapClasses;
|
|
4
|
+
/**
|
|
5
|
+
* TODO: Documentar
|
|
6
|
+
*/
|
|
7
|
+
export declare const useMapUtilityClasses: (_ownerState: OwnerState) => Record<"root" | "active" | "disabled" | "topLeftToolsRoot" | "topRigthToolsRoot" | "zoomButtons" | "markerLayerRoot" | "markerLayerIcon" | "markerLayerLabel" | "featureLabel" | "meaureToolRoot" | "measureToolFormValue" | "measureToolFormValueDistance" | "measureToolFormValueSymbol" | "measureToolLabel" | "meausureToolLabelDistance" | "meausureToolLabelSymbol" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove" | "mapSourcesPopoverRoot" | "mapSourcesRoot" | "mapSourcesOption" | "mapSourcesOptionIconLabel" | "mapSourcesOptionRoadOptions" | "mapSourcesOptionRoadOptionsCheck" | "layersPopoverRoot" | "markerLayerLabelInner", string>;
|
|
8
|
+
export type Classes = ReturnType<typeof useMapUtilityClasses>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { generateUtilityClasses } from "@mui/material";
|
|
2
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
+
import { C as COMPONET_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../../../../utils/getComponentUtilityClass.js";
|
|
5
|
+
const mapClasses = generateUtilityClasses(COMPONET_KEY_COMPONENT, [
|
|
6
|
+
/* elements */
|
|
7
|
+
"root",
|
|
8
|
+
//Control tools
|
|
9
|
+
"topLeftToolsRoot",
|
|
10
|
+
"topRigthToolsRoot",
|
|
11
|
+
"zoomButtons",
|
|
12
|
+
//Tipos de capas de los features
|
|
13
|
+
"markerLayerRoot",
|
|
14
|
+
"markerLayerIcon",
|
|
15
|
+
"markerLayerLabel",
|
|
16
|
+
"markerLayerLabelInner",
|
|
17
|
+
//Etiqueta de los features
|
|
18
|
+
"featureLabel",
|
|
19
|
+
//Measure tool
|
|
20
|
+
"meaureToolRoot",
|
|
21
|
+
"measureToolFormValue",
|
|
22
|
+
"measureToolFormValueDistance",
|
|
23
|
+
"measureToolFormValueSymbol",
|
|
24
|
+
"measureToolLabel",
|
|
25
|
+
"meausureToolLabelDistance",
|
|
26
|
+
"meausureToolLabelSymbol",
|
|
27
|
+
//Meauser Marcas
|
|
28
|
+
"measureMarkerRoot",
|
|
29
|
+
"measureMarkerContainer",
|
|
30
|
+
"measureMarkerContainerRhomb",
|
|
31
|
+
"measureMarkerContainerSlot",
|
|
32
|
+
"measureMarkerContainerSlotNumber",
|
|
33
|
+
"measureLabelMarkerRoot",
|
|
34
|
+
"measureLabelMarkerContainer",
|
|
35
|
+
"measureLabelMarkerDistance",
|
|
36
|
+
"measureLabelMarkerRemove",
|
|
37
|
+
/**
|
|
38
|
+
* Map sources
|
|
39
|
+
*/
|
|
40
|
+
"mapSourcesPopoverRoot",
|
|
41
|
+
"mapSourcesRoot",
|
|
42
|
+
"mapSourcesOption",
|
|
43
|
+
"mapSourcesOptionIconLabel",
|
|
44
|
+
"mapSourcesOptionRoadOptions",
|
|
45
|
+
"mapSourcesOptionRoadOptionsCheck",
|
|
46
|
+
/**
|
|
47
|
+
* Layers
|
|
48
|
+
*/
|
|
49
|
+
"layersPopoverRoot",
|
|
50
|
+
/* states or variants of elements */
|
|
51
|
+
"active",
|
|
52
|
+
"disabled"
|
|
53
|
+
]);
|
|
54
|
+
const useMapUtilityClasses = (_ownerState) => {
|
|
55
|
+
const slots = {
|
|
56
|
+
root: ["root"],
|
|
57
|
+
//Control tools
|
|
58
|
+
topLeftToolsRoot: ["topLeftToolsRoot"],
|
|
59
|
+
topRigthToolsRoot: ["topRigthToolsRoot"],
|
|
60
|
+
zoomButtons: ["zoomButtons"],
|
|
61
|
+
markerLayerRoot: ["markerLayerRoot"],
|
|
62
|
+
markerLayerIcon: ["markerLayerIcon"],
|
|
63
|
+
markerLayerLabel: ["markerLayerLabel"],
|
|
64
|
+
markerLayerLabelInner: ["markerLayerLabelInner"],
|
|
65
|
+
//Etiqueta de los features
|
|
66
|
+
featureLabel: ["featureLabel"],
|
|
67
|
+
/**
|
|
68
|
+
* Measure Tool
|
|
69
|
+
*/
|
|
70
|
+
//Measure form
|
|
71
|
+
meaureToolRoot: ["meaureToolRoot"],
|
|
72
|
+
measureToolFormValue: ["measureToolFormValue"],
|
|
73
|
+
measureToolFormValueDistance: ["measureToolFormValueDistance"],
|
|
74
|
+
measureToolFormValueSymbol: ["measureToolFormValueSymbol"],
|
|
75
|
+
measureToolLabel: ["measureToolLabel"],
|
|
76
|
+
meausureToolLabelDistance: ["meausureToolLabelDistance"],
|
|
77
|
+
meausureToolLabelSymbol: ["meausureToolLabelSymbol"],
|
|
78
|
+
//Meauser Marcas
|
|
79
|
+
measureMarkerRoot: ["measureMarkerRoot"],
|
|
80
|
+
measureMarkerContainer: ["measureMarkerContainer"],
|
|
81
|
+
measureMarkerContainerRhomb: ["measureMarkerContainerRhomb"],
|
|
82
|
+
measureMarkerContainerSlot: ["measureMarkerContainerSlot"],
|
|
83
|
+
measureMarkerContainerSlotNumber: ["measureMarkerContainerSlotNumber"],
|
|
84
|
+
measureLabelMarkerRoot: ["measureLabelMarkerRoot"],
|
|
85
|
+
measureLabelMarkerContainer: ["measureLabelMarkerContainer"],
|
|
86
|
+
measureLabelMarkerDistance: ["measureLabelMarkerDistance"],
|
|
87
|
+
measureLabelMarkerRemove: ["measureLabelMarkerRemove"],
|
|
88
|
+
/**
|
|
89
|
+
* Map sources
|
|
90
|
+
*/
|
|
91
|
+
mapSourcesPopoverRoot: ["mapSourcesPopoverRoot"],
|
|
92
|
+
mapSourcesRoot: ["mapSourcesToolRoot"],
|
|
93
|
+
mapSourcesOption: ["mapSourcesToolOption"],
|
|
94
|
+
mapSourcesOptionIconLabel: ["mapSourcesToolOptionIconLabel"],
|
|
95
|
+
mapSourcesOptionRoadOptions: ["mapSourcesToolOptionRoadOptions"],
|
|
96
|
+
mapSourcesOptionRoadOptionsCheck: ["mapSourcesToolOptionRoadOptionsCheck"],
|
|
97
|
+
/**
|
|
98
|
+
* Layers
|
|
99
|
+
*/
|
|
100
|
+
layersPopoverRoot: ["layersPopoverRoot"],
|
|
101
|
+
/* states or variants of elements */
|
|
102
|
+
active: ["active"],
|
|
103
|
+
disabled: ["disabled"]
|
|
104
|
+
};
|
|
105
|
+
return unstable_composeClasses(slots, getComponentUtilityClass(COMPONET_KEY_COMPONENT), {});
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
mapClasses as m,
|
|
109
|
+
useMapUtilityClasses as u
|
|
110
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface MapClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
/**
|
|
4
|
+
* Root element for the top left tools
|
|
5
|
+
*/
|
|
6
|
+
topLeftToolsRoot: string;
|
|
7
|
+
/**
|
|
8
|
+
* Root element for the top right tools
|
|
9
|
+
*/
|
|
10
|
+
topRigthToolsRoot: string;
|
|
11
|
+
/**
|
|
12
|
+
* Container de zoom buttons
|
|
13
|
+
*/
|
|
14
|
+
zoomButtons: string;
|
|
15
|
+
/**
|
|
16
|
+
* Root element de las marcas creadas con L.divIcon, esta al mimsmo nivel de leaflet-marker-icon
|
|
17
|
+
*/
|
|
18
|
+
markerLayerRoot: string;
|
|
19
|
+
/**
|
|
20
|
+
* Icono de la marca, sobre este elemento se rota y se escala el contendio de la marca
|
|
21
|
+
*/
|
|
22
|
+
markerLayerIcon: string;
|
|
23
|
+
/**
|
|
24
|
+
* Contenedor de la etiqueta de la marca
|
|
25
|
+
*/
|
|
26
|
+
markerLayerLabel: string;
|
|
27
|
+
/**
|
|
28
|
+
* Contenedor de las etiquetas de las marcas, poligonoes, etc, en general de los features
|
|
29
|
+
*/
|
|
30
|
+
featureLabel: string;
|
|
31
|
+
meaureToolRoot: string;
|
|
32
|
+
measureToolFormValue: string;
|
|
33
|
+
measureToolFormValueDistance: string;
|
|
34
|
+
measureToolFormValueSymbol: string;
|
|
35
|
+
measureToolLabel: string;
|
|
36
|
+
meausureToolLabelDistance: string;
|
|
37
|
+
meausureToolLabelSymbol: string;
|
|
38
|
+
/**
|
|
39
|
+
* Root element de la marca cread con L.divIcon, esta al mismo nivel de leaflet-marker-icon para denotar las marcas de medición
|
|
40
|
+
*/
|
|
41
|
+
measureMarkerRoot: string;
|
|
42
|
+
/**
|
|
43
|
+
* Contenedor de la marca de medición, que indica el numero y forma el forma el rombo de la marca
|
|
44
|
+
*/
|
|
45
|
+
measureMarkerContainer: string;
|
|
46
|
+
measureMarkerContainerRhomb: string;
|
|
47
|
+
measureMarkerContainerSlot: string;
|
|
48
|
+
measureMarkerContainerSlotNumber: string;
|
|
49
|
+
measureLabelMarkerRoot: string;
|
|
50
|
+
measureLabelMarkerContainer: string;
|
|
51
|
+
measureLabelMarkerDistance: string;
|
|
52
|
+
measureLabelMarkerRemove: string;
|
|
53
|
+
/**
|
|
54
|
+
* Map sources
|
|
55
|
+
*/
|
|
56
|
+
mapSourcesPopoverRoot: string;
|
|
57
|
+
mapSourcesRoot: string;
|
|
58
|
+
mapSourcesOption: string;
|
|
59
|
+
mapSourcesOptionIconLabel: string;
|
|
60
|
+
mapSourcesOptionRoadOptions: string;
|
|
61
|
+
mapSourcesOptionRoadOptionsCheck: string;
|
|
62
|
+
/**
|
|
63
|
+
* Layers
|
|
64
|
+
*/
|
|
65
|
+
layersPopoverRoot: string;
|
|
66
|
+
active: string;
|
|
67
|
+
disabled: string;
|
|
68
|
+
}
|
|
69
|
+
export type MapClassesKey = keyof MapClasses;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const COMPONENT_TEST_ID = "M4LMap";
|
|
2
|
+
export declare const COMPONET_KEY_COMPONENT = "M4LMap";
|
|
3
|
+
export declare const EARTH_RADIO = 6378137;
|
|
4
|
+
export declare const DN = 500;
|
|
5
|
+
export declare const DE = 500;
|
|
6
|
+
export declare const DLAT: number;
|
|
7
|
+
export declare const THROTTLE_RENDER_MAP_TIMEOUT = 50;
|
|
8
|
+
export declare const MAP_ZINDEX_DEFAULT = 0;
|
|
9
|
+
export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
|
|
10
|
+
export declare const MAP_ZINDEX_OVER_MAP = 1100;
|
|
11
|
+
export declare const TIME_DOUBLE_CLICK = 250;
|
|
12
|
+
export declare const MARKER_COLOR_DEFAULT = "#1E96DC";
|
|
13
|
+
export declare const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
|
|
14
|
+
export declare const LABEL_COLOR_DEFAULT = "#FFFFFF";
|
|
15
|
+
export declare const GPS_TOOLS_POPUP_ID = "gpsTools";
|
|
16
|
+
export declare const GPS_TOOLS_POPUP_DEFAULT_POSITION: {
|
|
17
|
+
vertical: {
|
|
18
|
+
top: number;
|
|
19
|
+
bottom: number;
|
|
20
|
+
};
|
|
21
|
+
horizontal: {
|
|
22
|
+
right: number;
|
|
23
|
+
width: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const MESURE_POPUP_DEFAULT_POSITION: {
|
|
27
|
+
vertical: {
|
|
28
|
+
top: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
horizontal: {
|
|
32
|
+
right: number;
|
|
33
|
+
width: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const SVG_ICON_DEFAULT = "<svg viewBox=\"0 0 640 640\" height=\"32\" width=\"32\" xmlns=\"http://www.w3.org/2000/svg\">\n<g>\n <circle\n cx=\"320\"\n cy=\"320\"\n r=\"280\"\n fill=\"#1E96DC\"\n />\n <text\n x=\"320\"\n y=\"320\"\n font-size=\"320\"\n font-family=\"sans-serif\"\n fill=\"#FFFFFF\"\n text-anchor=\"middle\"\n alignment-baseline=\"central\"\n dominant-baseline=\"central\"\n >P</text>\n</g>\n</svg>";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const COMPONET_KEY_COMPONENT = "M4LMap";
|
|
2
|
+
const MAP_ZINDEX_DEFAULT = 0;
|
|
3
|
+
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
4
|
+
const TIME_DOUBLE_CLICK = 250;
|
|
5
|
+
const MARKER_COLOR_DEFAULT = "#1E96DC";
|
|
6
|
+
const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
|
|
7
|
+
const LABEL_COLOR_DEFAULT = "#FFFFFF";
|
|
8
|
+
const GPS_TOOLS_POPUP_ID = "gpsTools";
|
|
9
|
+
const GPS_TOOLS_POPUP_DEFAULT_POSITION = {
|
|
10
|
+
vertical: { top: 50, bottom: 50 },
|
|
11
|
+
horizontal: { right: 50, width: 380 }
|
|
12
|
+
};
|
|
13
|
+
const MESURE_POPUP_DEFAULT_POSITION = {
|
|
14
|
+
vertical: { top: 50, height: 250 },
|
|
15
|
+
horizontal: { right: 50, width: 300 }
|
|
16
|
+
};
|
|
17
|
+
const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
<g>
|
|
19
|
+
<circle
|
|
20
|
+
cx="320"
|
|
21
|
+
cy="320"
|
|
22
|
+
r="280"
|
|
23
|
+
fill="#1E96DC"
|
|
24
|
+
/>
|
|
25
|
+
<text
|
|
26
|
+
x="320"
|
|
27
|
+
y="320"
|
|
28
|
+
font-size="320"
|
|
29
|
+
font-family="sans-serif"
|
|
30
|
+
fill="#FFFFFF"
|
|
31
|
+
text-anchor="middle"
|
|
32
|
+
alignment-baseline="central"
|
|
33
|
+
dominant-baseline="central"
|
|
34
|
+
>P</text>
|
|
35
|
+
</g>
|
|
36
|
+
</svg>`;
|
|
37
|
+
export {
|
|
38
|
+
COMPONET_KEY_COMPONENT as C,
|
|
39
|
+
GPS_TOOLS_POPUP_DEFAULT_POSITION as G,
|
|
40
|
+
LABEL_BK_COLOR_DEFAULT as L,
|
|
41
|
+
MARKER_COLOR_DEFAULT as M,
|
|
42
|
+
SVG_ICON_DEFAULT as S,
|
|
43
|
+
TIME_DOUBLE_CLICK as T,
|
|
44
|
+
LABEL_COLOR_DEFAULT as a,
|
|
45
|
+
MAP_ZINDEX_OVER_MAP as b,
|
|
46
|
+
GPS_TOOLS_POPUP_ID as c,
|
|
47
|
+
MESURE_POPUP_DEFAULT_POSITION as d,
|
|
48
|
+
MAP_ZINDEX_DEFAULT as e
|
|
49
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MapProviderProps } from './types';
|
|
2
|
+
declare const MapContext: import('react').Context<import('zustand').StoreApi<import('./types').MapStateWithActions> | null>;
|
|
3
|
+
/**
|
|
4
|
+
* Provedor del contexto de los mapas
|
|
5
|
+
* Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* TODO: Documentar
|
|
11
|
+
*/
|
|
12
|
+
declare function MapProvider(props: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { MapProvider, MapContext };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useRef, useEffect } from "react";
|
|
3
|
+
import { useStore } from "zustand";
|
|
4
|
+
import { shallow } from "zustand/shallow";
|
|
5
|
+
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
6
|
+
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
+
import { c as createMapStore } from "./store.js";
|
|
8
|
+
const MapContext = createContext(null);
|
|
9
|
+
function MapProvider(props) {
|
|
10
|
+
const {
|
|
11
|
+
children,
|
|
12
|
+
initialLayers,
|
|
13
|
+
googleMapsApiKey: apiKey,
|
|
14
|
+
googleMapVersion = "weekly",
|
|
15
|
+
storeId,
|
|
16
|
+
storeDevtoolsEnabled = false
|
|
17
|
+
} = props;
|
|
18
|
+
const { getLabel } = useModuleDictionary();
|
|
19
|
+
const isDesktop = useResponsiveDesktop();
|
|
20
|
+
const isSkeleton = useModuleSkeleton();
|
|
21
|
+
const isFirstRender = useFirstRender([getLabel]);
|
|
22
|
+
const mapStoreRef = useRef();
|
|
23
|
+
if (!mapStoreRef.current) {
|
|
24
|
+
mapStoreRef.current = createMapStore({
|
|
25
|
+
storeId,
|
|
26
|
+
getLabel,
|
|
27
|
+
ownerState: {
|
|
28
|
+
status: "init",
|
|
29
|
+
isMobile: !isDesktop,
|
|
30
|
+
isSkeleton,
|
|
31
|
+
focus: false
|
|
32
|
+
},
|
|
33
|
+
googleMapsApiKey: apiKey,
|
|
34
|
+
googleMapVersion
|
|
35
|
+
}, storeDevtoolsEnabled);
|
|
36
|
+
mapStoreRef.current?.getState().mapActions.init(initialLayers || []);
|
|
37
|
+
}
|
|
38
|
+
const { setHandlerGetLabel, setExternalState } = useStore(
|
|
39
|
+
mapStoreRef.current,
|
|
40
|
+
(state) => state.mapActions,
|
|
41
|
+
shallow
|
|
42
|
+
);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!isFirstRender) {
|
|
45
|
+
setHandlerGetLabel(getLabel);
|
|
46
|
+
}
|
|
47
|
+
}, [getLabel]);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (isFirstRender) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
setExternalState({ isMobile: !isDesktop, isSkeleton });
|
|
53
|
+
}, [isDesktop, isSkeleton]);
|
|
54
|
+
return /* @__PURE__ */ jsx(MapContext.Provider, { value: mapStoreRef.current, children });
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
MapContext as M,
|
|
58
|
+
MapProvider as a
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WritableDraft } from 'immer/dist/internal';
|
|
2
|
+
import { MapStateWithActions, LayerStore } from './types';
|
|
3
|
+
export declare const DEFAULT_LAYER: Partial<LayerStore>;
|
|
4
|
+
/**
|
|
5
|
+
* Actualiza la clases basado en owner state
|
|
6
|
+
* @param state immer State
|
|
7
|
+
*/
|
|
8
|
+
export declare const updateOwnerStateClasses: (_state: WritableDraft<MapStateWithActions>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MapStateWithActions, InitialMapStoreProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TODO: Documentar
|
|
4
|
+
*/
|
|
5
|
+
export declare const createMapStore: (initProps: InitialMapStoreProps, storeDevtoolsEnabled?: boolean) => import('zustand').StoreApi<MapStateWithActions>;
|
|
6
|
+
export type MapStore = ReturnType<typeof createMapStore>;
|