@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,112 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { shallow } from "zustand/shallow";
|
|
3
|
+
import { u as useMapStore } from "../../hooks/useMapStore/index.js";
|
|
4
|
+
import { useCallback } from "react";
|
|
5
|
+
import { a as LABEL_COLOR_DEFAULT, L as LABEL_BK_COLOR_DEFAULT } from "../../constants.js";
|
|
6
|
+
import { M as MarkerIconLabel } from "../MarkerIconLabel/index.js";
|
|
7
|
+
import { F as FALLBACK_SVG } from "./constants.js";
|
|
8
|
+
import { useSvgColor, SKELETON_SVG_ICON } from "@m4l/components";
|
|
9
|
+
import { u as useDeviceStatus } from "../../../../../DeviceStatus/hooks/useDeviceStatus.js";
|
|
10
|
+
import { useEnvironment, getPropertyByString } from "@m4l/core";
|
|
11
|
+
import { c as courseToCssAngle } from "../../../../utils/courseToCssAngle.js";
|
|
12
|
+
const DeviceFeatureRender = (props) => {
|
|
13
|
+
const { id, layerId } = props;
|
|
14
|
+
const feature = useMapStore((state) => {
|
|
15
|
+
const gObject = state.hashLayers[layerId].geoJsonObject;
|
|
16
|
+
if (!gObject) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (gObject.object.type === "Feature") {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
const feat = gObject.object.features.find((f) => f.id === id);
|
|
23
|
+
if (feat) {
|
|
24
|
+
if (!(feat.geometry.type === "Point" && feat.properties?.subType === "Marker")) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
id: feat.id,
|
|
29
|
+
geometry: feat.geometry,
|
|
30
|
+
properties: feat.properties,
|
|
31
|
+
featureLabel: feat.featureLabel,
|
|
32
|
+
popupRender: state.hashLayers[layerId].popupComponent,
|
|
33
|
+
popupOptions: state.hashLayers[layerId].popupOptions
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
}, shallow);
|
|
38
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
39
|
+
const propFeature = {
|
|
40
|
+
featureId: feature?.id
|
|
41
|
+
};
|
|
42
|
+
const {
|
|
43
|
+
deviceData
|
|
44
|
+
} = feature?.properties || { deviceData: void 0 };
|
|
45
|
+
const { iconKey, filteredCourse, label: statusLabel, palletColor: statusPalletColor, speed } = useDeviceStatus({ deviceData, withLabel: true });
|
|
46
|
+
const iconRotate = courseToCssAngle(filteredCourse || 0, 0);
|
|
47
|
+
const color = deviceData?.settings?.group?.color || LABEL_COLOR_DEFAULT;
|
|
48
|
+
const bgColor = deviceData?.settings?.group?.bgColor || LABEL_BK_COLOR_DEFAULT;
|
|
49
|
+
const src = `${host_static_assets}/${environment_assets}/frontend/components/device_status/assets/icons/${iconKey}_contained.svg`;
|
|
50
|
+
const markerLabel = deviceData?.settings?.name || "name";
|
|
51
|
+
const reportTime = new Date(getPropertyByString(deviceData, "current.vpts.vptModem.lastConnection.value", (/* @__PURE__ */ new Date()).toISOString()));
|
|
52
|
+
const reportStatus = new Date(getPropertyByString(deviceData, "current.vpts.vptGnss.status.udaptedAt", (/* @__PURE__ */ new Date()).toISOString()));
|
|
53
|
+
const [lng, lat] = feature?.geometry?.coordinates || [0, 0];
|
|
54
|
+
const svg = useSvgColor({
|
|
55
|
+
src,
|
|
56
|
+
cacheKey: iconKey,
|
|
57
|
+
//Id del icono
|
|
58
|
+
primaryColor: bgColor,
|
|
59
|
+
secondaryColor: color,
|
|
60
|
+
skeletonIcon: SKELETON_SVG_ICON,
|
|
61
|
+
fallBackIcon: FALLBACK_SVG
|
|
62
|
+
});
|
|
63
|
+
const { addLayerDataToFeature } = useMapStore((state) => state.mapActions, shallow);
|
|
64
|
+
const onAddPointLayer = useCallback((e) => {
|
|
65
|
+
if (!feature) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const layerData = {
|
|
69
|
+
// visible: true,
|
|
70
|
+
boundsNW: e.target?._latlng,
|
|
71
|
+
boundsSE: e.target?._latlng,
|
|
72
|
+
getTarget: () => e.target
|
|
73
|
+
// {
|
|
74
|
+
// id: e.target?._leaflet_id,
|
|
75
|
+
// openPopup: e.target?.openPopup,
|
|
76
|
+
// },
|
|
77
|
+
// target: e.target,
|
|
78
|
+
};
|
|
79
|
+
addLayerDataToFeature(layerId, feature.id, layerData);
|
|
80
|
+
}, [feature]);
|
|
81
|
+
if (!feature || !svg) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
85
|
+
MarkerIconLabel,
|
|
86
|
+
{
|
|
87
|
+
position: { lat, lng },
|
|
88
|
+
...{
|
|
89
|
+
label: markerLabel,
|
|
90
|
+
iconSrc: svg.dataWithColor,
|
|
91
|
+
iconScale: 1,
|
|
92
|
+
iconRotate,
|
|
93
|
+
iconWidth: 38,
|
|
94
|
+
iconHeight: 38,
|
|
95
|
+
labelBkColor: bgColor,
|
|
96
|
+
labelColor: color,
|
|
97
|
+
offsetLeftTop: [42, 0]
|
|
98
|
+
},
|
|
99
|
+
draggable: false,
|
|
100
|
+
eventHandlers: {
|
|
101
|
+
add: onAddPointLayer
|
|
102
|
+
},
|
|
103
|
+
popupRender: feature.popupRender,
|
|
104
|
+
properties: { ...feature.properties, statusLabel, statusPalletColor, reportTime, reportStatus, speed, iconKey },
|
|
105
|
+
popupOptions: feature.popupOptions,
|
|
106
|
+
...propFeature
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
DeviceFeatureRender as D
|
|
112
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import L__default from "leaflet";
|
|
2
|
+
import { L as LABEL_BK_COLOR_DEFAULT, a as LABEL_COLOR_DEFAULT } from "../../constants.js";
|
|
3
|
+
import { m as mapClasses } from "../../classes/index.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
const FeatureDivIconLabel = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
label,
|
|
8
|
+
iconSrc,
|
|
9
|
+
iconScale: scale = 1,
|
|
10
|
+
iconRotate,
|
|
11
|
+
labelBkColor: bkColor = LABEL_BK_COLOR_DEFAULT,
|
|
12
|
+
labelColor: color = LABEL_COLOR_DEFAULT,
|
|
13
|
+
iconWidth = 24,
|
|
14
|
+
iconHeight = 24,
|
|
15
|
+
offsetLeftTop = [24, 0]
|
|
16
|
+
} = props;
|
|
17
|
+
let html = label ? `<div class="${mapClasses.featureLabel}"
|
|
18
|
+
style="background-color:${bkColor}; color:${color};left:${offsetLeftTop[0]}px;top:${offsetLeftTop[1]}px;">${label}</div>` : "";
|
|
19
|
+
if (iconSrc) {
|
|
20
|
+
html = `<div class="${mapClasses.markerLayerIcon}" style="transform: rotate(${iconRotate}deg) scale(${scale}); transform-origin: center center;">
|
|
21
|
+
<img src=${iconSrc}></img>
|
|
22
|
+
</div>` + html;
|
|
23
|
+
}
|
|
24
|
+
return L__default.divIcon({
|
|
25
|
+
className: clsx(mapClasses.markerLayerRoot, ""),
|
|
26
|
+
iconSize: [iconWidth, iconHeight],
|
|
27
|
+
// iconAnchor: [-width, height/2],
|
|
28
|
+
html
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
FeatureDivIconLabel as F
|
|
33
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Marker } from "react-leaflet";
|
|
3
|
+
import { shallow } from "zustand/shallow";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
|
+
import L__default from "leaflet";
|
|
6
|
+
import { u as useMapStore } from "../../hooks/useMapStore/index.js";
|
|
7
|
+
function CustomMarker(props) {
|
|
8
|
+
const { position, width, height, iconForm, bearing, ...other } = props;
|
|
9
|
+
const html = useMemo(() => {
|
|
10
|
+
}, [bearing]);
|
|
11
|
+
const customIcon = useMemo(() => {
|
|
12
|
+
return L__default.divIcon({
|
|
13
|
+
className: "custom-icon",
|
|
14
|
+
iconSize: [width, height],
|
|
15
|
+
html: `<div>Hola</div>`
|
|
16
|
+
});
|
|
17
|
+
}, [html]);
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
Marker,
|
|
20
|
+
{
|
|
21
|
+
position,
|
|
22
|
+
icon: customIcon,
|
|
23
|
+
autoPan: true,
|
|
24
|
+
...other
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
const MarkerFeatureRender = (props) => {
|
|
29
|
+
const { id, layerId } = props;
|
|
30
|
+
const feature = useMapStore((state) => {
|
|
31
|
+
const gObject = state.hashLayers[layerId].geoJsonObject;
|
|
32
|
+
if (!gObject) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
if (gObject.object.type === "Feature") {
|
|
36
|
+
return {
|
|
37
|
+
id: gObject.object.id,
|
|
38
|
+
geometry: gObject.object.geometry,
|
|
39
|
+
properties: gObject.object.properties
|
|
40
|
+
};
|
|
41
|
+
} else {
|
|
42
|
+
const feat = gObject.object.features.find((f) => f.id === id);
|
|
43
|
+
if (feat) {
|
|
44
|
+
return {
|
|
45
|
+
id: feat.id,
|
|
46
|
+
geometry: feat.geometry,
|
|
47
|
+
properties: feat.properties
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
}, shallow);
|
|
53
|
+
if (!feature) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
if (feature.geometry.type === "Point") {
|
|
57
|
+
const [lat, lng] = feature.geometry.coordinates;
|
|
58
|
+
const bearing = feature.properties?.iconRotate ?? 0;
|
|
59
|
+
return (
|
|
60
|
+
// <Marker position={{ lat, lng }}>
|
|
61
|
+
// ddd
|
|
62
|
+
// </Marker>
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
CustomMarker,
|
|
65
|
+
{
|
|
66
|
+
position: { lat, lng },
|
|
67
|
+
width: 32,
|
|
68
|
+
height: 32,
|
|
69
|
+
bearing,
|
|
70
|
+
iconForm: "grua",
|
|
71
|
+
id: feature.id
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
MarkerFeatureRender as M
|
|
80
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Marker } from "react-leaflet";
|
|
3
|
+
import { F as FeatureDivIconLabel } from "../FeatureDivIconLabel/index.js";
|
|
4
|
+
import { useState, useRef, useCallback } from "react";
|
|
5
|
+
const MarkerIconLabel = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
position,
|
|
8
|
+
draggable = true,
|
|
9
|
+
iconSrc,
|
|
10
|
+
iconRotate,
|
|
11
|
+
iconScale: scale,
|
|
12
|
+
className,
|
|
13
|
+
label,
|
|
14
|
+
markerColor,
|
|
15
|
+
labelBkColor: bkColor,
|
|
16
|
+
labelColor: color,
|
|
17
|
+
iconWidth,
|
|
18
|
+
iconHeight,
|
|
19
|
+
offsetLeftTop,
|
|
20
|
+
eventHandlers,
|
|
21
|
+
popupRender,
|
|
22
|
+
properties,
|
|
23
|
+
popupOptions,
|
|
24
|
+
...others
|
|
25
|
+
} = props;
|
|
26
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
27
|
+
const markerRef = useRef(null);
|
|
28
|
+
const makerIcon = FeatureDivIconLabel({
|
|
29
|
+
iconSrc,
|
|
30
|
+
iconRotate,
|
|
31
|
+
iconScale: scale,
|
|
32
|
+
label,
|
|
33
|
+
iconWidth,
|
|
34
|
+
iconHeight,
|
|
35
|
+
labelBkColor: bkColor,
|
|
36
|
+
labelColor: color,
|
|
37
|
+
offsetLeftTop
|
|
38
|
+
});
|
|
39
|
+
const PopupRender = popupRender;
|
|
40
|
+
const { onOpenPopup, onClosePopup } = properties || { onOpenPopup: void 0, onClosePopup: void 0 };
|
|
41
|
+
const onPopupOpenLocal = useCallback((_e) => {
|
|
42
|
+
if (onOpenPopup && properties) {
|
|
43
|
+
onOpenPopup(properties);
|
|
44
|
+
}
|
|
45
|
+
setIsOpen(true);
|
|
46
|
+
}, [onOpenPopup, properties]);
|
|
47
|
+
const onPopupCloseLocal = useCallback((_e) => {
|
|
48
|
+
if (onClosePopup && properties) {
|
|
49
|
+
onClosePopup(properties);
|
|
50
|
+
}
|
|
51
|
+
setIsOpen(false);
|
|
52
|
+
}, [onClosePopup, properties]);
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
Marker,
|
|
55
|
+
{
|
|
56
|
+
ref: markerRef,
|
|
57
|
+
position,
|
|
58
|
+
draggable,
|
|
59
|
+
riseOnHover: true,
|
|
60
|
+
icon: makerIcon,
|
|
61
|
+
eventHandlers: {
|
|
62
|
+
...eventHandlers,
|
|
63
|
+
click: (_e) => {
|
|
64
|
+
},
|
|
65
|
+
popupopen: onPopupOpenLocal,
|
|
66
|
+
popupclose: onPopupCloseLocal
|
|
67
|
+
},
|
|
68
|
+
...others,
|
|
69
|
+
children: PopupRender && properties && /* @__PURE__ */ jsx(
|
|
70
|
+
PopupRender,
|
|
71
|
+
{
|
|
72
|
+
isOpen,
|
|
73
|
+
properties,
|
|
74
|
+
position,
|
|
75
|
+
popupOptions
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
MarkerIconLabel as M
|
|
83
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MarkerProps } from 'react-leaflet';
|
|
2
|
+
import { DivIconFeatureDescriptionProps } from '../FeatureDivIconLabel/types';
|
|
3
|
+
import { MapPopupComponent } from '../../popups/types';
|
|
4
|
+
import { GeoJsonProperties } from '../../contexts/MapContext/types';
|
|
5
|
+
import { PopupOptions } from 'leaflet';
|
|
6
|
+
export interface MyPopupProps extends PopupOptions {
|
|
7
|
+
onOpen?: (properties: GeoJsonProperties) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface FeatureDescriptionProps extends DivIconFeatureDescriptionProps, Omit<MarkerProps, 'children'> {
|
|
10
|
+
withPoint?: boolean;
|
|
11
|
+
popupRender?: MapPopupComponent | undefined;
|
|
12
|
+
properties?: GeoJsonProperties;
|
|
13
|
+
popupOptions?: Omit<MyPopupProps, 'content'>;
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "useAutoFocus" esta pendiente de que las capas que tiene auto foucus y son visible o cuando cambien su features.
|
|
3
|
+
* en cambios su propiedad de autoFocus o visible, el Efecto de autonEnfoque se activa, haciendo
|
|
4
|
+
* que el mapa se ajuste a los límites de las capas que tienen auto focus.
|
|
5
|
+
* @author Juan Escobar
|
|
6
|
+
*/
|
|
7
|
+
export declare function useAutoFocus(): void;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useMap } from "react-leaflet";
|
|
3
|
+
import throttle from "lodash-es/throttle";
|
|
4
|
+
import { shallow } from "zustand/shallow";
|
|
5
|
+
import L__default from "leaflet";
|
|
6
|
+
import { u as useMapStore } from "../useMapStore/index.js";
|
|
7
|
+
function useAutoFocus() {
|
|
8
|
+
const map = useMap();
|
|
9
|
+
const layerWithAutoFocus = useMapStore((state) => {
|
|
10
|
+
return state.layersIds.filter((lId) => {
|
|
11
|
+
if (state.hashLayers[lId].autoFocus && state.hashLayers[lId].visible) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
}).map((layerId) => ({
|
|
16
|
+
layerId,
|
|
17
|
+
features: function() {
|
|
18
|
+
if (state.hashLayers[layerId].geoJsonObject?.object.type === "FeatureCollection") {
|
|
19
|
+
const layer = state.hashLayers[layerId].geoJsonObject?.object;
|
|
20
|
+
return layer.features.filter((feature) => feature.layerData !== void 0).map((feature) => ({ featureId: feature.id, layerData: feature.layerData }));
|
|
21
|
+
} else {
|
|
22
|
+
const feature = state.hashLayers[layerId].geoJsonObject?.object;
|
|
23
|
+
if (feature.layerData !== void 0) {
|
|
24
|
+
return [{ featureId: feature.id, layerData: feature.layerData }];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return [];
|
|
28
|
+
}()
|
|
29
|
+
}));
|
|
30
|
+
}, shallow);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const proccesLayerWithAutoFocus = (layersFoucus) => {
|
|
33
|
+
const layersToFitBounds = [];
|
|
34
|
+
for (const layerWhitFeatures of layersFoucus) {
|
|
35
|
+
const features = layerWhitFeatures?.features;
|
|
36
|
+
for (let i = 0; i < features.length; i++) {
|
|
37
|
+
const feature = features[i];
|
|
38
|
+
if (feature.layerData !== void 0) {
|
|
39
|
+
const featureForBounds = {
|
|
40
|
+
layerId: layerWhitFeatures.layerId,
|
|
41
|
+
featureId: feature.featureId,
|
|
42
|
+
layerData: feature.layerData
|
|
43
|
+
};
|
|
44
|
+
layersToFitBounds.push(featureForBounds);
|
|
45
|
+
} else {
|
|
46
|
+
console.error(`La capa ${layerWhitFeatures.layerId} no tiene un método getBounds`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (layersToFitBounds.length > 0) {
|
|
51
|
+
let featureForBounds = layersToFitBounds[0];
|
|
52
|
+
let bounds = L__default.latLngBounds(
|
|
53
|
+
featureForBounds.layerData.boundsNW,
|
|
54
|
+
featureForBounds.layerData.boundsSE
|
|
55
|
+
);
|
|
56
|
+
for (let i = 1; i < layersToFitBounds.length; i++) {
|
|
57
|
+
featureForBounds = layersToFitBounds[i];
|
|
58
|
+
const newBounds = L__default.latLngBounds(
|
|
59
|
+
featureForBounds.layerData.boundsNW,
|
|
60
|
+
featureForBounds.layerData.boundsSE
|
|
61
|
+
);
|
|
62
|
+
bounds = bounds.extend(newBounds);
|
|
63
|
+
}
|
|
64
|
+
map.fitBounds(bounds, { animate: false, maxZoom: 22, padding: [50, 50] });
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const throttleBounds = throttle(proccesLayerWithAutoFocus, 300, {
|
|
68
|
+
leading: false,
|
|
69
|
+
// No enviar el primer evento de fitBounds
|
|
70
|
+
trailing: true
|
|
71
|
+
// Incluir siempre el ultimo evento en la cola, para que no quede se quedee a la mitad del fitBounds
|
|
72
|
+
});
|
|
73
|
+
throttleBounds(layerWithAutoFocus);
|
|
74
|
+
}, [layerWithAutoFocus]);
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
useAutoFocus as u
|
|
78
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FeatureId } from '../../contexts/MapContext';
|
|
2
|
+
import { FeatureLayerData } from '../../contexts/MapContext/types';
|
|
3
|
+
export type FeatureData = {
|
|
4
|
+
featureId: FeatureId;
|
|
5
|
+
layerData: FeatureLayerData | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type LayerWithFeatures = {
|
|
8
|
+
layerId: string;
|
|
9
|
+
features: FeatureData[];
|
|
10
|
+
};
|
|
11
|
+
export type LayerForBound = {
|
|
12
|
+
layerId: string;
|
|
13
|
+
featureId: FeatureId;
|
|
14
|
+
layerData: FeatureLayerData;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useMap } from "react-leaflet";
|
|
3
|
+
function useDisableZoomEvents(nodeElement) {
|
|
4
|
+
const map = useMap();
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
if (!map || !nodeElement) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
nodeElement.addEventListener("mouseover", function() {
|
|
10
|
+
map.doubleClickZoom.disable();
|
|
11
|
+
map.scrollWheelZoom.disable();
|
|
12
|
+
});
|
|
13
|
+
nodeElement.addEventListener("mouseleave", function() {
|
|
14
|
+
map.scrollWheelZoom.enable();
|
|
15
|
+
map.doubleClickZoom.enable();
|
|
16
|
+
});
|
|
17
|
+
}, [map, nodeElement]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
useDisableZoomEvents as u
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { useStore } from "zustand";
|
|
3
|
+
import { M as MapContext } from "../../contexts/MapContext/MapContext.js";
|
|
4
|
+
function useMapStore(selector, equalityFn) {
|
|
5
|
+
const context = useContext(MapContext);
|
|
6
|
+
if (!context) {
|
|
7
|
+
throw new Error("useMapStore context must be use inside MapContext");
|
|
8
|
+
}
|
|
9
|
+
return useStore(context, selector, equalityFn);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
useMapStore as u
|
|
13
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const MAP_ICONS: {
|
|
2
|
+
/**
|
|
3
|
+
* Map en general
|
|
4
|
+
*/
|
|
5
|
+
MAP_ZOOM_IN: string;
|
|
6
|
+
MAP_ZOOM_OUT: string;
|
|
7
|
+
/**
|
|
8
|
+
* Map sources
|
|
9
|
+
*/
|
|
10
|
+
MAP_SOURCES_TOOL: string;
|
|
11
|
+
MAP_SOURCE_OSM: string;
|
|
12
|
+
MAP_SOURCE_GOOGLE_ROADS: string;
|
|
13
|
+
MAP_SOURCE_GOOGLE_HYBRID: string;
|
|
14
|
+
MAP_SOURCE_GOOGLE_SATELLITE: string;
|
|
15
|
+
MAP_SOURCE_BING: string;
|
|
16
|
+
/**
|
|
17
|
+
* Map sources road options+
|
|
18
|
+
*/
|
|
19
|
+
MAP_SOURCE_ROAD_TRAFFIC: string;
|
|
20
|
+
MAP_SOURCE_ROAD_TRANSIT: string;
|
|
21
|
+
MAP_SOURCE_ROAD_BICYCLING: string;
|
|
22
|
+
/**
|
|
23
|
+
* Layers
|
|
24
|
+
*/
|
|
25
|
+
MAP_LAYERS_TOOL: string;
|
|
26
|
+
MAP_LAYER_VISIBLE: string;
|
|
27
|
+
MAP_LAYER_AUTOFOCUS: string;
|
|
28
|
+
MAP_LAYER_CLUSTER: string;
|
|
29
|
+
MAP_LAYER_DELETE: string;
|
|
30
|
+
ADD: string;
|
|
31
|
+
/**
|
|
32
|
+
* Measure Tool *
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
MAP_GPS_TOOLS_TOOL: string;
|
|
36
|
+
MAP_MEASURE_TOOL: string;
|
|
37
|
+
GENERAL: string;
|
|
38
|
+
CONFIG: string;
|
|
39
|
+
STROKE: string;
|
|
40
|
+
FILL: string;
|
|
41
|
+
EDIT: string;
|
|
42
|
+
DELETE: string;
|
|
43
|
+
ACTIVE: string;
|
|
44
|
+
NAME: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const MAP_ICONS = {
|
|
2
|
+
/**
|
|
3
|
+
* Map en general
|
|
4
|
+
*/
|
|
5
|
+
MAP_ZOOM_IN: "cmp_map_zoom_in.svg",
|
|
6
|
+
MAP_ZOOM_OUT: "cmp_map_zoom_out.svg",
|
|
7
|
+
/**
|
|
8
|
+
* Map sources
|
|
9
|
+
*/
|
|
10
|
+
MAP_SOURCES_TOOL: "cmp_map_mapsources_tool.svg",
|
|
11
|
+
MAP_SOURCE_OSM: "cmp_map_mapsources_osm.svg",
|
|
12
|
+
MAP_SOURCE_GOOGLE_ROADS: "cmp_map_mapsources_google.svg",
|
|
13
|
+
MAP_SOURCE_GOOGLE_HYBRID: "cmp_map_mapsources_googlehybrid.svg",
|
|
14
|
+
MAP_SOURCE_GOOGLE_SATELLITE: "cmp_map_mapsources_googlesatelite.svg",
|
|
15
|
+
MAP_SOURCE_BING: "cmp_map_mapsources_bing.svg",
|
|
16
|
+
/**
|
|
17
|
+
* Map sources road options+
|
|
18
|
+
*/
|
|
19
|
+
MAP_SOURCE_ROAD_TRAFFIC: "cmp_map_mapsources_layer-traffic.svg",
|
|
20
|
+
MAP_SOURCE_ROAD_TRANSIT: "cmp_map_mapsources_layer-transit.svg",
|
|
21
|
+
MAP_SOURCE_ROAD_BICYCLING: "cmp_map_mapsources_layer-bicycle.svg",
|
|
22
|
+
/**
|
|
23
|
+
* Layers
|
|
24
|
+
*/
|
|
25
|
+
MAP_LAYERS_TOOL: "cmp_map_layers_tool.svg",
|
|
26
|
+
MAP_LAYER_VISIBLE: "cmp_map_layers_view.svg",
|
|
27
|
+
MAP_LAYER_AUTOFOCUS: "cmp_map_layers_zoom_fit.svg",
|
|
28
|
+
MAP_LAYER_CLUSTER: "cmp_map_layers_cluster.svg",
|
|
29
|
+
MAP_LAYER_DELETE: "cmp_map_layers_delete.svg",
|
|
30
|
+
/**
|
|
31
|
+
* Measure Tool *
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
|
|
35
|
+
MAP_MEASURE_TOOL: "cmp_map_measure_tool.svg"
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
MAP_ICONS as M
|
|
39
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { GpsMap } from './GpsMap';
|
|
2
|
+
export type { MapProps } from './types';
|
|
3
|
+
export { MapProvider, MapContext } from './contexts/MapContext/MapContext';
|
|
4
|
+
export { useMapStore } from './hooks/useMapStore';
|
|
5
|
+
export * from './contexts/MapContext';
|
|
6
|
+
export * from './featureRenders';
|
|
7
|
+
export * from './popups';
|
|
8
|
+
export { getMapComponentsDictionary } from './dictionary';
|
|
9
|
+
export * from './pluginLayers';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LatLngExpression } from 'leaflet';
|
|
2
|
+
import { PolylineProps } from 'react-leaflet';
|
|
3
|
+
interface PolylineWithArrowsProps extends PolylineProps {
|
|
4
|
+
positions: LatLngExpression[];
|
|
5
|
+
enableEdit?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* TODO: Documentar
|
|
9
|
+
*/
|
|
10
|
+
export declare const PolylineWithArrows: React.FC<PolylineWithArrowsProps>;
|
|
11
|
+
export default PolylineWithArrows;
|