@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,132 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import { useMap, LayerGroup } from "react-leaflet";
|
|
4
|
+
import L__default from "leaflet";
|
|
5
|
+
import { shallow } from "zustand/shallow";
|
|
6
|
+
import { M as MarkerClusterGroup } from "./subcomponents/MarkerClusterGroup/index.js";
|
|
7
|
+
import { R as RenderByEachFeatureComponent, M as MemonizedRenderByEachFeatureComponent } from "./subcomponents/RenderByEachFeatureComponent/index.js";
|
|
8
|
+
import { T as TIME_DOUBLE_CLICK } from "../../../../constants.js";
|
|
9
|
+
import { u as useMapStore } from "../../../../hooks/useMapStore/index.js";
|
|
10
|
+
const MyLayer = (props) => {
|
|
11
|
+
const { layerId } = props;
|
|
12
|
+
const map = useMap();
|
|
13
|
+
const popupRef = useRef(null);
|
|
14
|
+
const lefaletLayerRef = useRef({
|
|
15
|
+
clickTimeout: null,
|
|
16
|
+
clickCount: 0,
|
|
17
|
+
handleClickSetted: false
|
|
18
|
+
});
|
|
19
|
+
const featureIdOrCollection = useMapStore((state) => {
|
|
20
|
+
const geoJsonObject = state.hashLayers[layerId]?.geoJsonObject;
|
|
21
|
+
if (geoJsonObject && geoJsonObject.object.type === "Feature") {
|
|
22
|
+
return geoJsonObject.object.id;
|
|
23
|
+
} else if (geoJsonObject && geoJsonObject.object.type === "FeatureCollection") {
|
|
24
|
+
return geoJsonObject && geoJsonObject.object.features.map((feature) => feature.id);
|
|
25
|
+
}
|
|
26
|
+
}, shallow);
|
|
27
|
+
const renderFeature = useMapStore((state) => state.hashLayers[layerId]?.renderFeature, shallow);
|
|
28
|
+
const [visible, cluster = false] = useMapStore(
|
|
29
|
+
(state) => [state.hashLayers[layerId]?.visible, state.hashLayers[layerId]?.cluster],
|
|
30
|
+
shallow
|
|
31
|
+
);
|
|
32
|
+
const markerClusterGroupRef = useRef(null);
|
|
33
|
+
const handleClick = (a) => {
|
|
34
|
+
lefaletLayerRef.current.clickCount++;
|
|
35
|
+
if (lefaletLayerRef.current.clickCount === 1) {
|
|
36
|
+
lefaletLayerRef.current.clickTimeout = setTimeout(() => {
|
|
37
|
+
const clusterMarker = a.propagatedFrom;
|
|
38
|
+
if (clusterMarker && clusterMarker instanceof L__default.MarkerCluster) ;
|
|
39
|
+
if (!popupRef.current) {
|
|
40
|
+
popupRef.current = L__default.popup().setLatLng(a.sourceTarget._cLatLng).setContent("Hello, World!");
|
|
41
|
+
map.addLayer(popupRef.current);
|
|
42
|
+
} else {
|
|
43
|
+
popupRef.current.openOn(map);
|
|
44
|
+
}
|
|
45
|
+
lefaletLayerRef.current.clickCount = 0;
|
|
46
|
+
}, TIME_DOUBLE_CLICK);
|
|
47
|
+
} else if (lefaletLayerRef.current.clickCount === 2) {
|
|
48
|
+
if (lefaletLayerRef.current?.clickTimeout) {
|
|
49
|
+
clearTimeout(lefaletLayerRef.current.clickTimeout);
|
|
50
|
+
}
|
|
51
|
+
lefaletLayerRef.current.clickCount = 0;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (markerClusterGroupRef.current) {
|
|
56
|
+
markerClusterGroupRef.current.on("clusterclick", handleClick);
|
|
57
|
+
}
|
|
58
|
+
}, [markerClusterGroupRef.current]);
|
|
59
|
+
if (!featureIdOrCollection || !renderFeature) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
if (visible === false) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
const isFeaturCollection = Array.isArray(featureIdOrCollection);
|
|
66
|
+
if (!isFeaturCollection) {
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
RenderByEachFeatureComponent,
|
|
69
|
+
{
|
|
70
|
+
renderFeature,
|
|
71
|
+
id: featureIdOrCollection,
|
|
72
|
+
layerId
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
} else {
|
|
76
|
+
const createClusterCustomIcon = (markerCluster) => {
|
|
77
|
+
const childCount = markerCluster.getChildCount();
|
|
78
|
+
let c = " marker-cluster-";
|
|
79
|
+
if (childCount < 10) {
|
|
80
|
+
c += "small";
|
|
81
|
+
} else if (childCount < 100) {
|
|
82
|
+
c += "medium";
|
|
83
|
+
} else {
|
|
84
|
+
c += "large";
|
|
85
|
+
}
|
|
86
|
+
const MyDivIcon = new L__default.DivIcon({
|
|
87
|
+
html: "<div><span>" + childCount + "</span></div>",
|
|
88
|
+
className: "marker-cluster" + c,
|
|
89
|
+
iconSize: new L__default.Point(40, 40)
|
|
90
|
+
});
|
|
91
|
+
return MyDivIcon;
|
|
92
|
+
};
|
|
93
|
+
if (!cluster) {
|
|
94
|
+
return /* @__PURE__ */ jsx(LayerGroup, { children: featureIdOrCollection.map((featureId) => {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
MemonizedRenderByEachFeatureComponent,
|
|
97
|
+
{
|
|
98
|
+
renderFeature,
|
|
99
|
+
id: featureId,
|
|
100
|
+
layerId
|
|
101
|
+
},
|
|
102
|
+
`k_${layerId}_${featureId}`
|
|
103
|
+
);
|
|
104
|
+
}) });
|
|
105
|
+
} else {
|
|
106
|
+
return /* @__PURE__ */ jsx(
|
|
107
|
+
MarkerClusterGroup,
|
|
108
|
+
{
|
|
109
|
+
disableClusteringAtZoom: 18,
|
|
110
|
+
showCoverageOnHover: false,
|
|
111
|
+
zoomToBoundsOnClick: false,
|
|
112
|
+
spiderfyOnMaxZoom: false,
|
|
113
|
+
iconCreateFunction: createClusterCustomIcon,
|
|
114
|
+
children: featureIdOrCollection.map((featureId) => {
|
|
115
|
+
return /* @__PURE__ */ jsx(
|
|
116
|
+
MemonizedRenderByEachFeatureComponent,
|
|
117
|
+
{
|
|
118
|
+
renderFeature,
|
|
119
|
+
id: featureId,
|
|
120
|
+
layerId
|
|
121
|
+
},
|
|
122
|
+
`k_${layerId}_${featureId}`
|
|
123
|
+
);
|
|
124
|
+
})
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
export {
|
|
131
|
+
MyLayer as M
|
|
132
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as L } from 'leaflet';
|
|
2
|
+
import { MarkerClusterGroupProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* MarkerClusterGroup, es un componente funcional que enmascara el comportamiento que
|
|
5
|
+
* leaflet.markercluster tiene, no aporta lógica adicional, solo es un wrapper para que funcione
|
|
6
|
+
* en React. Utilizando createPathComponent de @react-leaflet/core.
|
|
7
|
+
* @returns ForwardRefExoticComponent (significa que es un componente que ha sido envuelto con React.forwardRef.).
|
|
8
|
+
*/
|
|
9
|
+
export declare const MarkerClusterGroup: import('react').ForwardRefExoticComponent<L.MarkerClusterGroupOptions & import('@react-leaflet/core').PathProps & import('./types').PropsWithChildren & import('react').RefAttributes<MarkerClusterGroupProps>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createPathComponent } from "@react-leaflet/core";
|
|
2
|
+
import L__default from "leaflet";
|
|
3
|
+
import "leaflet.markercluster";
|
|
4
|
+
const MarkerClusterGroup = createPathComponent(({ children: _c, ...props }, ctx) => {
|
|
5
|
+
const clusterProps = {};
|
|
6
|
+
const clusterEvents = {};
|
|
7
|
+
Object.entries(props).forEach(([propName, prop]) => {
|
|
8
|
+
if (propName !== void 0 && prop !== "") {
|
|
9
|
+
propName.startsWith("on") ? clusterEvents[propName] = prop : clusterProps[propName] = prop;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const markerClusterGroup = new L__default.MarkerClusterGroup(clusterProps);
|
|
13
|
+
Object.entries(clusterEvents).forEach(([eventAsProp, callback]) => {
|
|
14
|
+
const clusterEvent = `cluster${eventAsProp.substring(2).toLowerCase()}`;
|
|
15
|
+
markerClusterGroup.on(clusterEvent, callback);
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
instance: markerClusterGroup,
|
|
19
|
+
context: { ...ctx, layerContainer: markerClusterGroup }
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
MarkerClusterGroup as M
|
|
24
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PathProps } from '@react-leaflet/core';
|
|
2
|
+
import { FeatureGroup, LeafletEventHandlerFn, MarkerClusterGroupOptions } from 'leaflet';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
export interface MarkerClusterGroupProps extends FeatureGroup, MarkerClusterGroupOptions {
|
|
5
|
+
onClustering?: LeafletEventHandlerFn;
|
|
6
|
+
onCluster?: LeafletEventHandlerFn;
|
|
7
|
+
}
|
|
8
|
+
export declare type PropsWithChildren = {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export type PathWithChildrenProps = MarkerClusterGroupOptions & PathProps & PropsWithChildren;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RenderByEachFeatureProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* "RenderByEachFeatureComponent": Es un wrapper de renderFeature,
|
|
5
|
+
* Se realizó con el fin de que no haya re-renderizado de los features,
|
|
6
|
+
* Sin este wrapper cada vez que se actualiza LeafletLayer, se re-renderiza todos lo features.
|
|
7
|
+
* @param param0
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const RenderByEachFeatureComponent: React.FC<RenderByEachFeatureProps>;
|
|
11
|
+
export declare const MemonizedRenderByEachFeatureComponent: React.NamedExoticComponent<RenderByEachFeatureProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
const RenderByEachFeatureComponent = ({
|
|
3
|
+
renderFeature,
|
|
4
|
+
...props
|
|
5
|
+
}) => {
|
|
6
|
+
const feature = renderFeature(props);
|
|
7
|
+
return feature ?? null;
|
|
8
|
+
};
|
|
9
|
+
const MemonizedRenderByEachFeatureComponent = React.memo(RenderByEachFeatureComponent);
|
|
10
|
+
export {
|
|
11
|
+
MemonizedRenderByEachFeatureComponent as M,
|
|
12
|
+
RenderByEachFeatureComponent as R
|
|
13
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { T as TileLayerOthers } from "./subcomponents/TileLayerOthers/index.js";
|
|
3
|
+
import { T as TileLayerGoogle } from "./subcomponents/TileLayerGoogle/index.js";
|
|
4
|
+
import React, { useEffect } from "react";
|
|
5
|
+
import { useMap } from "react-leaflet";
|
|
6
|
+
function TileLayers() {
|
|
7
|
+
const map = useMap();
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const handleResize = () => {
|
|
10
|
+
map.invalidateSize();
|
|
11
|
+
};
|
|
12
|
+
const resizeObserver = new ResizeObserver((_entries) => {
|
|
13
|
+
handleResize();
|
|
14
|
+
});
|
|
15
|
+
resizeObserver.observe(map.getContainer());
|
|
16
|
+
return () => {
|
|
17
|
+
resizeObserver.unobserve(map.getContainer());
|
|
18
|
+
};
|
|
19
|
+
}, [map]);
|
|
20
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(TileLayerOthers, {}),
|
|
22
|
+
/* @__PURE__ */ jsx(TileLayerGoogle, {})
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
TileLayers as T
|
|
27
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useMap } from "react-leaflet";
|
|
3
|
+
import L__default from "leaflet";
|
|
4
|
+
import { u as useMapStore } from "../../../../hooks/useMapStore/index.js";
|
|
5
|
+
import { shallow } from "zustand/shallow";
|
|
6
|
+
import { Loader } from "@googlemaps/js-api-loader";
|
|
7
|
+
function TileLayerGoogle() {
|
|
8
|
+
const map = useMap();
|
|
9
|
+
const mutantRefLayer = React.useRef(null);
|
|
10
|
+
const { options, sourceType, mapTypeTile } = useMapStore(
|
|
11
|
+
(state) => state.hashMapSources[state.currentMapSourceId],
|
|
12
|
+
shallow
|
|
13
|
+
);
|
|
14
|
+
const roadOptions = useMapStore(
|
|
15
|
+
(state) => state.hashMapSources[state.currentMapSourceId].roadSelectedOptions,
|
|
16
|
+
shallow
|
|
17
|
+
);
|
|
18
|
+
const [googleApiKey, googleMapVersion] = useMapStore(
|
|
19
|
+
(state) => [state.googleMapsApiKey, state.googleMapVersion],
|
|
20
|
+
shallow
|
|
21
|
+
);
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
if (sourceType !== "Google") {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
let googleMutantLayer;
|
|
27
|
+
const loader = new Loader({
|
|
28
|
+
apiKey: googleApiKey,
|
|
29
|
+
version: googleMapVersion
|
|
30
|
+
});
|
|
31
|
+
loader.importLibrary("maps").then(() => {
|
|
32
|
+
googleMutantLayer = L__default.gridLayer.googleMutant({
|
|
33
|
+
type: mapTypeTile,
|
|
34
|
+
// map type, can be 'roadmap', 'satellite', etc.
|
|
35
|
+
maxZoom: 20,
|
|
36
|
+
// styles: [
|
|
37
|
+
// // Google Maps styles array, can be generated here: https://mapstyle.withgoogle.coxm/
|
|
38
|
+
// ],
|
|
39
|
+
...options
|
|
40
|
+
});
|
|
41
|
+
mutantRefLayer.current = googleMutantLayer;
|
|
42
|
+
if (roadOptions.trafficLayer) {
|
|
43
|
+
googleMutantLayer.addGoogleLayer("TrafficLayer");
|
|
44
|
+
}
|
|
45
|
+
if (roadOptions.transitLayer) {
|
|
46
|
+
googleMutantLayer.addGoogleLayer("TransitLayer");
|
|
47
|
+
}
|
|
48
|
+
if (roadOptions.bicyclingLayer) {
|
|
49
|
+
googleMutantLayer.addGoogleLayer("BicyclingLayer");
|
|
50
|
+
}
|
|
51
|
+
map.addLayer(googleMutantLayer);
|
|
52
|
+
});
|
|
53
|
+
return () => {
|
|
54
|
+
if (googleMutantLayer) {
|
|
55
|
+
map.removeLayer(googleMutantLayer);
|
|
56
|
+
mutantRefLayer.current = null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}, [map, sourceType, mapTypeTile]);
|
|
60
|
+
React.useEffect(() => {
|
|
61
|
+
if (sourceType !== "Google") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (mutantRefLayer.current && roadOptions) {
|
|
65
|
+
if (roadOptions.trafficLayer) {
|
|
66
|
+
mutantRefLayer.current.addGoogleLayer("TrafficLayer");
|
|
67
|
+
} else if (roadOptions.trafficLayer === false) {
|
|
68
|
+
mutantRefLayer.current.removeGoogleLayer("TrafficLayer");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, [roadOptions.trafficLayer]);
|
|
72
|
+
React.useEffect(() => {
|
|
73
|
+
if (sourceType !== "Google") {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (mutantRefLayer.current && roadOptions) {
|
|
77
|
+
if (roadOptions.transitLayer) {
|
|
78
|
+
mutantRefLayer.current.addGoogleLayer("TransitLayer");
|
|
79
|
+
} else if (roadOptions.transitLayer === false) {
|
|
80
|
+
mutantRefLayer.current.removeGoogleLayer("TransitLayer");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, [roadOptions.transitLayer]);
|
|
84
|
+
React.useEffect(() => {
|
|
85
|
+
if (sourceType !== "Google") {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (mutantRefLayer.current && roadOptions) {
|
|
89
|
+
if (roadOptions.bicyclingLayer) {
|
|
90
|
+
mutantRefLayer.current.addGoogleLayer("BicyclingLayer");
|
|
91
|
+
} else if (roadOptions.bicyclingLayer === false) {
|
|
92
|
+
mutantRefLayer.current.removeGoogleLayer("BicyclingLayer");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, [roadOptions.bicyclingLayer]);
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
TileLayerGoogle as T
|
|
100
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useMap } from "react-leaflet";
|
|
2
|
+
import { shallow } from "zustand/shallow";
|
|
3
|
+
import { u as useMapStore } from "../../../../hooks/useMapStore/index.js";
|
|
4
|
+
import { useEffect } from "react";
|
|
5
|
+
import L__default from "leaflet";
|
|
6
|
+
const TileLayerOthers = () => {
|
|
7
|
+
const map = useMap();
|
|
8
|
+
const { urlTemplate, dictionaryId, options, getTileUrl, sourceType } = useMapStore(
|
|
9
|
+
(state) => state.hashMapSources[state.currentMapSourceId],
|
|
10
|
+
shallow
|
|
11
|
+
);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
let layer;
|
|
14
|
+
if (sourceType === "Google") {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
layer = L__default.tileLayer(urlTemplate, options);
|
|
18
|
+
if (getTileUrl) {
|
|
19
|
+
layer.getTileUrl = getTileUrl;
|
|
20
|
+
}
|
|
21
|
+
map.addLayer(layer);
|
|
22
|
+
if (options && options.maxZoom) {
|
|
23
|
+
map.setMaxZoom(options.maxZoom);
|
|
24
|
+
}
|
|
25
|
+
return () => {
|
|
26
|
+
if (layer) {
|
|
27
|
+
map.removeLayer(layer);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}, [dictionaryId, urlTemplate, options, getTileUrl, sourceType]);
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
TileLayerOthers as T
|
|
35
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
|
+
import { LatLngExpression } from 'leaflet';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { MapSlots } from './slots/slots';
|
|
5
|
+
import { COMPONET_KEY_COMPONENT } from './constants';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
export type Localization = {
|
|
8
|
+
/**
|
|
9
|
+
* "lat" Posición en del eje "Y" en grados.
|
|
10
|
+
*/
|
|
11
|
+
lat: number;
|
|
12
|
+
/**
|
|
13
|
+
* "lng" Posición en del eje "X" en grados.
|
|
14
|
+
*/
|
|
15
|
+
lng: number;
|
|
16
|
+
};
|
|
17
|
+
export type Point = {
|
|
18
|
+
/**
|
|
19
|
+
* "x" Posición en del eje "X" en pixeles.
|
|
20
|
+
*/
|
|
21
|
+
x: number;
|
|
22
|
+
/**
|
|
23
|
+
* "y" Posición en del eje "Y" en pixeles.
|
|
24
|
+
*/
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
export interface MapProps {
|
|
28
|
+
/**
|
|
29
|
+
* "center" posición inicial del mapa.
|
|
30
|
+
*/
|
|
31
|
+
center?: LatLngExpression | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* "initialZoom" Zoom inicial del mapa. Por defecto es 16
|
|
34
|
+
*/
|
|
35
|
+
initalZoom?: number;
|
|
36
|
+
/**
|
|
37
|
+
* "maxZoom" Max Zoom global, por defecto es 22, sin embargo cada TileLayer coloca su propio maxZoom.
|
|
38
|
+
*/
|
|
39
|
+
maxZoom?: number;
|
|
40
|
+
/**
|
|
41
|
+
* "tools" Componente que gestiona la herramienta de guardian GPS, geocercas, puntos de interes, etc.
|
|
42
|
+
*/
|
|
43
|
+
tools?: ((props?: any) => JSX.Element) | ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export type MapSlotsType = keyof typeof MapSlots;
|
|
46
|
+
export type MapOwnerState = {
|
|
47
|
+
/**
|
|
48
|
+
* "isMobile" cuando el navegador está corriendo en dispositivo móvil
|
|
49
|
+
*/
|
|
50
|
+
isMobile?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* "hidden" permite definir si la ventana está oculta o no. Por defecto es "false
|
|
53
|
+
*/
|
|
54
|
+
hidden?: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type MapStyles = Partial<OverridesStyleRules<MapSlotsType, typeof COMPONET_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
+
import { T as TabsGpsTools } from "./subcomponents/TabsGpsTools/index.js";
|
|
4
|
+
function GpsMapTools() {
|
|
5
|
+
const isSkeleton = useModuleSkeleton();
|
|
6
|
+
return isSkeleton ? null : /* @__PURE__ */ jsx(TabsGpsTools, {});
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
GpsMapTools as G
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GpsToolsClasses } from './types';
|
|
2
|
+
export declare const gpsToolsClasses: GpsToolsClasses;
|
|
3
|
+
/**
|
|
4
|
+
* TODO: Documentar
|
|
5
|
+
*/
|
|
6
|
+
export declare const useUtilityClasses: () => Record<"gpsToolsGeofencesList" | "gpsToolsGeofencesAddEdit" | "gpsToolsGeofencesAddEditContent" | "gpsToolsGeofencesAddEditDrawFinishContainer" | "toolGeofencesAddEditGeneral" | "toolGeofencesAddEditStyle" | "GpsToolsRoot" | "GpsToolsTabContent" | "GpsToolsTab", string>;
|
|
7
|
+
export type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { generateUtilityClasses } from "@mui/material";
|
|
2
|
+
import "@mui/base";
|
|
3
|
+
import { C as COMPONENT_CLASS_NAME } from "../constants.js";
|
|
4
|
+
const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
5
|
+
/* elements */
|
|
6
|
+
"gpsToolsRoot",
|
|
7
|
+
"gpsToolsTab",
|
|
8
|
+
"gpsToolsTabContent",
|
|
9
|
+
"gpsToolsGeofencesList",
|
|
10
|
+
"gpsToolsGeofencesAddEdit",
|
|
11
|
+
"gpsToolsGeofencesAddEditContent",
|
|
12
|
+
"gpsToolsGeofencesAddEditDrawFinishContainer",
|
|
13
|
+
"toolGeofencesAddEditGeneral",
|
|
14
|
+
"toolGeofencesAddEditStyle",
|
|
15
|
+
/* states or variants of elements */
|
|
16
|
+
"visible",
|
|
17
|
+
"hidden"
|
|
18
|
+
]);
|
|
19
|
+
export {
|
|
20
|
+
gpsToolsClasses as g
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface GpsToolsClasses {
|
|
2
|
+
gpsToolsRoot: string;
|
|
3
|
+
gpsToolsTab: string;
|
|
4
|
+
gpsToolsTabContent: string;
|
|
5
|
+
gpsToolsGeofencesList: string;
|
|
6
|
+
gpsToolsGeofencesAddEdit: string;
|
|
7
|
+
gpsToolsGeofencesAddEditContent: string;
|
|
8
|
+
gpsToolsGeofencesAddEditDrawFinishContainer: string;
|
|
9
|
+
toolGeofencesAddEditGeneral: string;
|
|
10
|
+
toolGeofencesAddEditStyle: string;
|
|
11
|
+
visible: string;
|
|
12
|
+
hidden: string;
|
|
13
|
+
}
|
|
14
|
+
export type GpsToolsClassesKey = keyof GpsToolsClasses;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from './types';
|
|
2
|
+
export declare const COMPONENT_TEST_ID = "M4LGpsMapTools";
|
|
3
|
+
export declare const COMPONENT_CLASS_NAME = "M4LGpsMapTools";
|
|
4
|
+
export declare const COOKIE_MAP_GEO_FILTER = "filter_map_geo";
|
|
5
|
+
export declare const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
6
|
+
export declare const STYLE_OPACITIES: StyleOpacity[];
|
|
7
|
+
export declare const STYLE_WHEIGHTS: StyleWheight[];
|
|
8
|
+
export declare const STYLE_PATTERNS: StyleDashArray[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const COMPONENT_CLASS_NAME = "M4LGpsMapTools";
|
|
2
|
+
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
3
|
+
const STYLE_OPACITIES = [
|
|
4
|
+
{
|
|
5
|
+
value: 0,
|
|
6
|
+
label: "0%"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
value: 0.1,
|
|
10
|
+
label: "10%"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
value: 0.2,
|
|
14
|
+
label: "20%"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: 0.3,
|
|
18
|
+
label: "30%"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: 0.4,
|
|
22
|
+
label: "40%"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: 0.5,
|
|
26
|
+
label: "50%"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: 1,
|
|
30
|
+
label: "100%"
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
const STYLE_WHEIGHTS = [
|
|
34
|
+
{
|
|
35
|
+
value: 0,
|
|
36
|
+
label: "0px"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: 1,
|
|
40
|
+
label: "1px"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: 2,
|
|
44
|
+
label: "2px"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: 3,
|
|
48
|
+
label: "3px"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: 4,
|
|
52
|
+
label: "4px"
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
const STYLE_PATTERNS = [
|
|
56
|
+
{
|
|
57
|
+
value: "",
|
|
58
|
+
label: "------"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "4 1 2",
|
|
62
|
+
label: "-- - - --"
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
export {
|
|
66
|
+
COMPONENT_CLASS_NAME as C,
|
|
67
|
+
STYLE_OPACITIES as S,
|
|
68
|
+
STYLE_WHEIGHTS as a,
|
|
69
|
+
STYLE_PATTERNS as b,
|
|
70
|
+
COMPONENT_MAP_TOOLS_ID as c
|
|
71
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GpsMapToolsProviderProps } from './types';
|
|
2
|
+
declare const GpsMapToolsContext: import('react').Context<(Omit<Omit<import('zustand').StoreApi<import('./types').GpsMapToolsStateWithActions>, "setState"> & {
|
|
3
|
+
setState<A extends string | {
|
|
4
|
+
type: unknown;
|
|
5
|
+
}>(partial: import('./types').GpsMapToolsStateWithActions | Partial<import('./types').GpsMapToolsStateWithActions> | ((state: import('./types').GpsMapToolsStateWithActions) => import('./types').GpsMapToolsStateWithActions | Partial<import('./types').GpsMapToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
6
|
+
}, "setState"> & {
|
|
7
|
+
setState(nextStateOrUpdater: import('./types').GpsMapToolsStateWithActions | Partial<import('./types').GpsMapToolsStateWithActions> | ((state: import('immer/dist/internal').WritableDraft<import('./types').GpsMapToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
8
|
+
type: unknown;
|
|
9
|
+
} | undefined): void;
|
|
10
|
+
}) | null>;
|
|
11
|
+
/**
|
|
12
|
+
* Provedor del contexto de los mapas
|
|
13
|
+
* Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
|
|
14
|
+
* @param props
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* TODO: Documentar
|
|
19
|
+
*/
|
|
20
|
+
declare function GpsMapToolsProvider(props: GpsMapToolsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { GpsMapToolsProvider, GpsMapToolsContext };
|