@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,48 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useRef, useEffect } from "react";
|
|
3
|
+
import { useStore } from "zustand";
|
|
4
|
+
import { shallow } from "zustand/shallow";
|
|
5
|
+
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
6
|
+
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
+
import { c as createGpsMapToolsStore } from "./store.js";
|
|
8
|
+
const GpsMapToolsContext = createContext(null);
|
|
9
|
+
function GpsMapToolsProvider(props) {
|
|
10
|
+
const { children } = props;
|
|
11
|
+
const { getLabel } = useModuleDictionary();
|
|
12
|
+
const isDesktop = useResponsiveDesktop();
|
|
13
|
+
const isSkeleton = useModuleSkeleton();
|
|
14
|
+
const isFirstRender = useFirstRender([getLabel]);
|
|
15
|
+
const mapStoreRef = useRef();
|
|
16
|
+
if (!mapStoreRef.current) {
|
|
17
|
+
mapStoreRef.current = createGpsMapToolsStore({
|
|
18
|
+
getLabel,
|
|
19
|
+
ownerState: {
|
|
20
|
+
status: "init",
|
|
21
|
+
isMobile: !isDesktop,
|
|
22
|
+
isSkeleton,
|
|
23
|
+
focus: false
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const { setHandlerGetLabel, setExternalState } = useStore(
|
|
28
|
+
mapStoreRef.current,
|
|
29
|
+
(state) => state.gpsToolsActions,
|
|
30
|
+
shallow
|
|
31
|
+
);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (!isFirstRender) {
|
|
34
|
+
setHandlerGetLabel(getLabel);
|
|
35
|
+
}
|
|
36
|
+
}, [getLabel]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (isFirstRender) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
setExternalState({ isMobile: !isDesktop, isSkeleton });
|
|
42
|
+
}, [isDesktop, isSkeleton]);
|
|
43
|
+
return /* @__PURE__ */ jsx(GpsMapToolsContext.Provider, { value: mapStoreRef.current, children });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
GpsMapToolsContext as G,
|
|
47
|
+
GpsMapToolsProvider as a
|
|
48
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GpsMapToolsStateWithActions, InitialGpsMapToolsStoreProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Crea el Store, por defecto inicia en estado 'init'
|
|
4
|
+
* @param initProps propiedades iniciales del store
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* TODO: Documentar
|
|
9
|
+
*/
|
|
10
|
+
export declare const createGpsMapToolsStore: (initProps: InitialGpsMapToolsStoreProps) => Omit<Omit<import('zustand').StoreApi<GpsMapToolsStateWithActions>, "setState"> & {
|
|
11
|
+
setState<A extends string | {
|
|
12
|
+
type: unknown;
|
|
13
|
+
}>(partial: GpsMapToolsStateWithActions | Partial<GpsMapToolsStateWithActions> | ((state: GpsMapToolsStateWithActions) => GpsMapToolsStateWithActions | Partial<GpsMapToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
14
|
+
}, "setState"> & {
|
|
15
|
+
setState(nextStateOrUpdater: GpsMapToolsStateWithActions | Partial<GpsMapToolsStateWithActions> | ((state: import('immer/dist/internal').WritableDraft<GpsMapToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
16
|
+
type: unknown;
|
|
17
|
+
} | undefined): void;
|
|
18
|
+
};
|
|
19
|
+
export type GpsMapToolsStore = ReturnType<typeof createGpsMapToolsStore>;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { createStore } from "zustand";
|
|
2
|
+
import { devtools } from "zustand/middleware";
|
|
3
|
+
import { immer } from "zustand/middleware/immer";
|
|
4
|
+
import { enableMapSet } from "immer";
|
|
5
|
+
enableMapSet();
|
|
6
|
+
const createGpsMapToolsStore = (initProps) => {
|
|
7
|
+
const startProps = {
|
|
8
|
+
currentTabGpsTool: "geofences",
|
|
9
|
+
geofenceState: {
|
|
10
|
+
// currentGeofenceTool: 'list',
|
|
11
|
+
rows: [],
|
|
12
|
+
checkedGeofences: /* @__PURE__ */ new Set(),
|
|
13
|
+
checkedCrossingFeatures: /* @__PURE__ */ new Set(),
|
|
14
|
+
checkedInternalFeatures: /* @__PURE__ */ new Set(),
|
|
15
|
+
hashGeofences: {}
|
|
16
|
+
},
|
|
17
|
+
...initProps
|
|
18
|
+
};
|
|
19
|
+
return createStore(
|
|
20
|
+
devtools(
|
|
21
|
+
immer((set, _get) => ({
|
|
22
|
+
...startProps,
|
|
23
|
+
gpsToolsActions: {
|
|
24
|
+
/**
|
|
25
|
+
* TODO: Documentar
|
|
26
|
+
*/
|
|
27
|
+
init: () => {
|
|
28
|
+
set((state) => {
|
|
29
|
+
state.ownerState.status = "ready";
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* TODO: Documentar
|
|
34
|
+
*/
|
|
35
|
+
setGpsToolsState: (status) => {
|
|
36
|
+
set((state) => {
|
|
37
|
+
state.ownerState.status = status;
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* TODO: Documentar
|
|
42
|
+
*/
|
|
43
|
+
setHandlerGetLabel: (newHandler) => {
|
|
44
|
+
set((state) => {
|
|
45
|
+
state.getLabel = newHandler;
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* TODO: Documentar
|
|
50
|
+
*/
|
|
51
|
+
setExternalState: (newExternalState) => {
|
|
52
|
+
set((state) => {
|
|
53
|
+
state.ownerState = { ...state.ownerState, ...newExternalState };
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* TODO: Documentar
|
|
58
|
+
*/
|
|
59
|
+
setCurrentTabTool: (newTabTool) => {
|
|
60
|
+
set((state) => {
|
|
61
|
+
state.currentTabGpsTool = newTabTool;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
geofenceActions: {
|
|
66
|
+
// goToAddEdit: (geofenceId?: GeofenceId) => {
|
|
67
|
+
// set(state => {
|
|
68
|
+
// state.geofenceState.currentGeofenceTool = 'add_edit';
|
|
69
|
+
// state.geofenceState.geofenceId = geofenceId;
|
|
70
|
+
// });
|
|
71
|
+
// },
|
|
72
|
+
// goToList: (geofenceId?: GeofenceId) => {
|
|
73
|
+
// set(state => {
|
|
74
|
+
// state.geofenceState.currentGeofenceTool = 'list';
|
|
75
|
+
// state.geofenceState.geofenceId = geofenceId;
|
|
76
|
+
// });
|
|
77
|
+
// },
|
|
78
|
+
/**
|
|
79
|
+
* TODO: Documentar
|
|
80
|
+
*/
|
|
81
|
+
addGeofence: (geofenceId, geofence) => {
|
|
82
|
+
set((state) => {
|
|
83
|
+
state.geofenceState.hashGeofences[geofenceId] = geofence;
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* TODO: Documentar
|
|
88
|
+
*/
|
|
89
|
+
updatePartialGeofence: (geofenceId, geofence) => {
|
|
90
|
+
set((state) => {
|
|
91
|
+
state.geofenceState.hashGeofences[geofenceId] = {
|
|
92
|
+
...state.geofenceState.hashGeofences[geofenceId],
|
|
93
|
+
...geofence
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* TODO: Documentar
|
|
99
|
+
*/
|
|
100
|
+
updateRows: (newRows) => {
|
|
101
|
+
set((state) => {
|
|
102
|
+
state.geofenceState.rows = newRows;
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* TODO: Documentar
|
|
107
|
+
*/
|
|
108
|
+
addCheckedGeofence: (geofenceId) => {
|
|
109
|
+
set((state) => {
|
|
110
|
+
state.geofenceState.checkedGeofences.add(geofenceId);
|
|
111
|
+
state.geofenceState.checkedGeofences = new Set(state.geofenceState.checkedGeofences);
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* TODO: Documentar
|
|
116
|
+
*/
|
|
117
|
+
removeCheckedGeofence: (geofenceId) => {
|
|
118
|
+
set((state) => {
|
|
119
|
+
state.geofenceState.checkedGeofences.delete(geofenceId);
|
|
120
|
+
state.geofenceState.checkedGeofences = new Set(state.geofenceState.checkedGeofences);
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* TODO: Documentar
|
|
125
|
+
*/
|
|
126
|
+
setCheckedGeofences: (newGeofences) => {
|
|
127
|
+
set((state) => {
|
|
128
|
+
state.geofenceState.checkedGeofences = new Set(newGeofences);
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* TODO: Documentar
|
|
133
|
+
*/
|
|
134
|
+
setCheckedCrossingFeatures: (newFeatures) => {
|
|
135
|
+
set((state) => {
|
|
136
|
+
state.geofenceState.checkedCrossingFeatures = new Set(newFeatures);
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* TODO: Documentar
|
|
141
|
+
*/
|
|
142
|
+
setCheckedInternalFeatures: (newFeatures) => {
|
|
143
|
+
set((state) => {
|
|
144
|
+
state.geofenceState.checkedInternalFeatures = new Set(newFeatures);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
})),
|
|
149
|
+
{ name: `Map Tools Store` }
|
|
150
|
+
)
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
createGpsMapToolsStore as c
|
|
155
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { FeatureId } from '../../../GpsMap';
|
|
4
|
+
import { CrossingFeature, GeofenceListModel, InternalFeature } from '../../subcomponents/TabsGpsTools/subcomponents/model';
|
|
5
|
+
export type GpsToolsStatus = 'init' | 'ready';
|
|
6
|
+
export type CurrentTabGpsTool = 'geofences' | 'pois';
|
|
7
|
+
export interface GeofenceFeature extends Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'geometry' | 'properties' | 'createdAt' | 'updatedAt' | 'countCrossingFeatures' | 'countInternalFeatures' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
|
|
8
|
+
hasRenderizedGeofence: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* "renderizedCrossingFeatures" indica si está renderizado los features de cruce
|
|
11
|
+
*/
|
|
12
|
+
hasRenderizedCrossingFeatures: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* "loadedCrossingFeatures" features cargados, mas no necesariamente visibles (incremental)
|
|
15
|
+
*/
|
|
16
|
+
loadedCrossingFeatures: CrossingFeature[] | null;
|
|
17
|
+
/**
|
|
18
|
+
* "loadedInternalFeatures" features internos cargados, mas no necesariamente visibles (incremental)
|
|
19
|
+
*/
|
|
20
|
+
loadedInternalFeatures: InternalFeature[] | null;
|
|
21
|
+
/**
|
|
22
|
+
* "renderizedInternalFeatures" indica si está renderizado los features internos
|
|
23
|
+
*/
|
|
24
|
+
hasRenderizedInternalFeatures: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type OwnerState = {
|
|
27
|
+
status: GpsToolsStatus;
|
|
28
|
+
/**
|
|
29
|
+
* "isMobile" cuando el navegador está en modo celular
|
|
30
|
+
*/
|
|
31
|
+
isMobile: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* "isSkeleton" indica si el componente está en skeleton.
|
|
34
|
+
*/
|
|
35
|
+
isSkeleton: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* focus: Estado de selección asignado por el usuario.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
focus: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Estados que se actulizan por fuera del store, a través de hooks
|
|
44
|
+
*/
|
|
45
|
+
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
46
|
+
export type CurrentGeofenceTool = 'list' | 'add_edit';
|
|
47
|
+
/**
|
|
48
|
+
* Tipo de dato del Id de la geocerca
|
|
49
|
+
*/
|
|
50
|
+
export interface GeofenceState {
|
|
51
|
+
rows: GeofenceListModel[];
|
|
52
|
+
/**
|
|
53
|
+
* "checkedGeofences" indica las geocercas visibles en el mapa
|
|
54
|
+
*/
|
|
55
|
+
checkedGeofences: ReadonlySet<GeofenceId>;
|
|
56
|
+
/**
|
|
57
|
+
* "hashGeofences" Almacena las geocercas que se han cargado alguna vez, no necesariamente visibles
|
|
58
|
+
*/
|
|
59
|
+
hashGeofences: Record<FeatureId, GeofenceFeature>;
|
|
60
|
+
/**
|
|
61
|
+
* "checkedCrossingFeatures" indica los crossing features visibles en el mapa
|
|
62
|
+
*/
|
|
63
|
+
checkedCrossingFeatures: ReadonlySet<GeofenceId>;
|
|
64
|
+
/**
|
|
65
|
+
* "checkedInternalFeatures" indica los features internos visibles en el mapa
|
|
66
|
+
*/
|
|
67
|
+
checkedInternalFeatures: ReadonlySet<GeofenceId>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Tipo de dato del Id de la geocerca
|
|
71
|
+
*/
|
|
72
|
+
export type GeofenceId = number;
|
|
73
|
+
/**
|
|
74
|
+
* Interface que define el estado del componente (variables y funciones )
|
|
75
|
+
*/
|
|
76
|
+
export interface GpsMapToolsState {
|
|
77
|
+
ownerState: OwnerState;
|
|
78
|
+
/**
|
|
79
|
+
* "currentTabTool" indica la pestaña actual en uso
|
|
80
|
+
*/
|
|
81
|
+
currentTabGpsTool: CurrentTabGpsTool;
|
|
82
|
+
/**
|
|
83
|
+
* "geofenceState" manejo del estado lo relacionado con geocercas
|
|
84
|
+
*/
|
|
85
|
+
geofenceState: GeofenceState;
|
|
86
|
+
/**
|
|
87
|
+
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
88
|
+
*/
|
|
89
|
+
getLabel: GetLabelType;
|
|
90
|
+
}
|
|
91
|
+
export interface GpsMapToolsStateWithActions extends GpsMapToolsState {
|
|
92
|
+
gpsToolsActions: {
|
|
93
|
+
/**
|
|
94
|
+
* @description
|
|
95
|
+
*/
|
|
96
|
+
init(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Cambia el estado del las herramientas de gps
|
|
99
|
+
*/
|
|
100
|
+
setGpsToolsState: (state: GpsToolsStatus) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Actualiza la variable de estado "getLabel"
|
|
103
|
+
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
104
|
+
* cambia por el useCallback, cuando el diccionario se carga.
|
|
105
|
+
* @returns void
|
|
106
|
+
*/
|
|
107
|
+
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Modifica los estados que se actualizan externamente al Store
|
|
110
|
+
* @param newIsMobile
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Modifica los estados que se actualizan externamente al Store
|
|
116
|
+
* @param newIsMobile
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
setCurrentTabTool: (newTabTool: CurrentTabGpsTool) => void;
|
|
120
|
+
};
|
|
121
|
+
geofenceActions: {
|
|
122
|
+
/**
|
|
123
|
+
* Agrega una geocerca al store
|
|
124
|
+
*/
|
|
125
|
+
addGeofence: (geofenceId: GeofenceId, geofence: GeofenceFeature) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Actualizar parcialmente una geocerca
|
|
128
|
+
*/
|
|
129
|
+
updatePartialGeofence: (geofenceId: GeofenceId, geofence: Partial<GeofenceFeature>) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Actualizar la filas que son mostradas en el grid de geocercas
|
|
132
|
+
*/
|
|
133
|
+
updateRows: (newRows: GeofenceListModel[]) => void;
|
|
134
|
+
/**
|
|
135
|
+
* Agrega una geocerca del set de chequeo
|
|
136
|
+
*/
|
|
137
|
+
addCheckedGeofence: (geofenceId: GeofenceId) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Cambia el set de chequeo de las geocercas
|
|
140
|
+
*/
|
|
141
|
+
setCheckedGeofences: (newGeofences: ReadonlySet<GeofenceId>) => void;
|
|
142
|
+
/**
|
|
143
|
+
* Remueve una geocerca del set de chequeo
|
|
144
|
+
*/
|
|
145
|
+
removeCheckedGeofence: (geofenceId: GeofenceId) => void;
|
|
146
|
+
/**
|
|
147
|
+
* Cambia el set de chequeo de los crossing features
|
|
148
|
+
*/
|
|
149
|
+
setCheckedCrossingFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
|
|
150
|
+
/**
|
|
151
|
+
* Cambia el set de chequeo de los internal features
|
|
152
|
+
*/
|
|
153
|
+
setCheckedInternalFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
export type DefaultGpsMapToolsStoreProps = Omit<GpsMapToolsState, 'currentLayer'>;
|
|
157
|
+
export type InitialGpsMapToolsStoreProps = Pick<GpsMapToolsState, 'getLabel' | 'ownerState'> & Partial<DefaultGpsMapToolsStoreProps>;
|
|
158
|
+
export interface GpsMapToolsProviderProps {
|
|
159
|
+
children: ReactNode;
|
|
160
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const MAPGPSTOOLS_DICTIONARY_ID = "gps_tools";
|
|
2
|
+
/**
|
|
3
|
+
* TODO: Documentar
|
|
4
|
+
*/
|
|
5
|
+
export declare function getGpsMapToolsComponentsDictionary(): string[];
|
|
6
|
+
export declare const MAP_GPSTOOLS_DICCTIONARY: {
|
|
7
|
+
/** Common */
|
|
8
|
+
/** GeofenceList */
|
|
9
|
+
readonly MODULE_NAME_GEOFENCE_ADD: "module_name_geofence_add";
|
|
10
|
+
readonly MODULE_NAME_GEOFENCE_EDIT: "module_name_geofence_edit";
|
|
11
|
+
readonly ROW_ACTION_GEO_EDIT: "row_action_geo_edit";
|
|
12
|
+
readonly ROW_ACTION_GEO_DELETE: "row_action_geo_delete";
|
|
13
|
+
/** GeofenceAddEdit */
|
|
14
|
+
readonly LABEL_TAB_GEO: "label_tab_geo";
|
|
15
|
+
readonly TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip";
|
|
16
|
+
readonly PAPER_GENERAL: "paper_general";
|
|
17
|
+
readonly LABEL_ID: "label_id";
|
|
18
|
+
readonly LABEL_NAME: "label_name";
|
|
19
|
+
readonly LABEL_ALIAS: "label_alias";
|
|
20
|
+
readonly LABEL_CUSTOMER_ID: "label_customer_id";
|
|
21
|
+
readonly LABEL_GEOMETRY_TYPE: "label_geometry_type";
|
|
22
|
+
readonly LABEL_GEOMETRY_CIRCLE: "label_geometry_circle";
|
|
23
|
+
readonly LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle";
|
|
24
|
+
readonly LABEL_GEOMETRY_POLYGON: "label_geometry_polygon";
|
|
25
|
+
readonly LABEL_DRAW: "label_draw";
|
|
26
|
+
readonly LABEL_FINISH: "label_finish";
|
|
27
|
+
readonly PAPER_CONFIG: "paper_config";
|
|
28
|
+
readonly LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds";
|
|
29
|
+
readonly LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds";
|
|
30
|
+
readonly TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip";
|
|
31
|
+
readonly PAPER_STROKE: "paper_stroke";
|
|
32
|
+
readonly LABEL_COLOR: "label_color";
|
|
33
|
+
readonly LABEL_OPACITY: "label_opacity";
|
|
34
|
+
readonly LABEL_WEIGHT: "label_weight";
|
|
35
|
+
readonly LABEL_DASH_ARRAY: "label_dash_array";
|
|
36
|
+
readonly PAPER_FILL: "paper_fill";
|
|
37
|
+
readonly LABEL_RADIUS: "label_radius";
|
|
38
|
+
readonly LABEL_LAT: "label_lat";
|
|
39
|
+
readonly LABEL_LON: "label_lon";
|
|
40
|
+
readonly LABEL_PLACE_MARKER: "label_place_marker";
|
|
41
|
+
readonly LABEL_FIRST_VERTEX: "label_first_vertex";
|
|
42
|
+
readonly LABEL_CONTINUE_LINE: "label_continue_line";
|
|
43
|
+
readonly LABEL_FINISH_LINE: "label_finish_line";
|
|
44
|
+
readonly LABEL_FINISH_POLY: "label_finish_poly";
|
|
45
|
+
readonly LABEL_FINISH_RECT: "label_finish_rect";
|
|
46
|
+
readonly LABEL_START_CIRCLE: "label_start_circle";
|
|
47
|
+
readonly LABEL_FINISH_CIRCLE: "label_finish_circle";
|
|
48
|
+
readonly LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker";
|
|
49
|
+
readonly VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required";
|
|
50
|
+
readonly VALIDATION_FIELD_REQUIRED: "validation_field_required";
|
|
51
|
+
readonly VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error";
|
|
52
|
+
readonly VALIDATION_FIELD_MIN_NUMBER_ERROR: "validation_field_min_number_error";
|
|
53
|
+
readonly LABEL_VIEW_TRANSIT_FEATURES: "label_view_crossing_features";
|
|
54
|
+
readonly LABEL_VIEW_INTERNAL_FEATURES: "label_view_internal_features";
|
|
55
|
+
readonly LABEL_CREATED_AT: "label_created_at";
|
|
56
|
+
readonly LABEL_UPDATED_AT: "label_updated_at";
|
|
57
|
+
readonly MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title";
|
|
58
|
+
readonly MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message";
|
|
59
|
+
readonly MODAL_DISABLE_GEO_TITLE: "modal_disable_geo_title";
|
|
60
|
+
readonly MODAL_DISABLE_MESSAGE: "modal_disable_geo_message";
|
|
61
|
+
readonly ACTION_CANCEL: "action_cancel";
|
|
62
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { getDataGridComponentsDictionary, getRHFAutocompleteComponentsDictionary, getDynamicFilterComponentsDictionary } from "@m4l/components";
|
|
2
|
+
const MAPGPSTOOLS_DICTIONARY_ID = "gps_tools";
|
|
3
|
+
function getGpsMapToolsComponentsDictionary() {
|
|
4
|
+
return [MAPGPSTOOLS_DICTIONARY_ID].concat(
|
|
5
|
+
getDataGridComponentsDictionary().concat(getRHFAutocompleteComponentsDictionary()).concat(getDynamicFilterComponentsDictionary())
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
const MAP_GPSTOOLS_DICCTIONARY = {
|
|
9
|
+
/** Common */
|
|
10
|
+
/** GeofenceList */
|
|
11
|
+
MODULE_NAME_GEOFENCE_ADD: "module_name_geofence_add",
|
|
12
|
+
MODULE_NAME_GEOFENCE_EDIT: "module_name_geofence_edit",
|
|
13
|
+
// Row Actions
|
|
14
|
+
ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
|
|
15
|
+
// ROW_ACTION_GEO_ENABLE: 'row_action_geo_enable',
|
|
16
|
+
// ROW_ACTION_GEO_DISABLE: 'row_action_geo_disable',
|
|
17
|
+
ROW_ACTION_GEO_DELETE: "row_action_geo_delete",
|
|
18
|
+
/** GeofenceAddEdit */
|
|
19
|
+
LABEL_TAB_GEO: "label_tab_geo",
|
|
20
|
+
TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
|
|
21
|
+
PAPER_GENERAL: "paper_general",
|
|
22
|
+
LABEL_ID: "label_id",
|
|
23
|
+
LABEL_NAME: "label_name",
|
|
24
|
+
LABEL_ALIAS: "label_alias",
|
|
25
|
+
LABEL_CUSTOMER_ID: "label_customer_id",
|
|
26
|
+
LABEL_GEOMETRY_TYPE: "label_geometry_type",
|
|
27
|
+
LABEL_GEOMETRY_CIRCLE: "label_geometry_circle",
|
|
28
|
+
LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle",
|
|
29
|
+
LABEL_GEOMETRY_POLYGON: "label_geometry_polygon",
|
|
30
|
+
LABEL_DRAW: "label_draw",
|
|
31
|
+
LABEL_FINISH: "label_finish",
|
|
32
|
+
PAPER_CONFIG: "paper_config",
|
|
33
|
+
LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds",
|
|
34
|
+
LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds",
|
|
35
|
+
TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip",
|
|
36
|
+
PAPER_STROKE: "paper_stroke",
|
|
37
|
+
LABEL_COLOR: "label_color",
|
|
38
|
+
LABEL_OPACITY: "label_opacity",
|
|
39
|
+
LABEL_WEIGHT: "label_weight",
|
|
40
|
+
LABEL_DASH_ARRAY: "label_dash_array",
|
|
41
|
+
PAPER_FILL: "paper_fill",
|
|
42
|
+
LABEL_RADIUS: "label_radius",
|
|
43
|
+
LABEL_LAT: "label_lat",
|
|
44
|
+
LABEL_LON: "label_lon",
|
|
45
|
+
LABEL_FIRST_VERTEX: "label_first_vertex",
|
|
46
|
+
LABEL_CONTINUE_LINE: "label_continue_line",
|
|
47
|
+
LABEL_FINISH_LINE: "label_finish_line",
|
|
48
|
+
LABEL_FINISH_POLY: "label_finish_poly",
|
|
49
|
+
LABEL_FINISH_RECT: "label_finish_rect",
|
|
50
|
+
LABEL_START_CIRCLE: "label_start_circle",
|
|
51
|
+
LABEL_FINISH_CIRCLE: "label_finish_circle",
|
|
52
|
+
LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker",
|
|
53
|
+
VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required",
|
|
54
|
+
VALIDATION_FIELD_REQUIRED: "validation_field_required",
|
|
55
|
+
VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error",
|
|
56
|
+
VALIDATION_FIELD_MIN_NUMBER_ERROR: "validation_field_min_number_error",
|
|
57
|
+
LABEL_CREATED_AT: "label_created_at",
|
|
58
|
+
LABEL_UPDATED_AT: "label_updated_at",
|
|
59
|
+
MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title",
|
|
60
|
+
MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message",
|
|
61
|
+
ACTION_CANCEL: "action_cancel"
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
MAP_GPSTOOLS_DICCTIONARY as M,
|
|
65
|
+
getGpsMapToolsComponentsDictionary as g
|
|
66
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { useStore } from "zustand";
|
|
3
|
+
import { G as GpsMapToolsContext } from "../../contexts/GpsMapToolsContext/index.js";
|
|
4
|
+
function useGpsMapToolsStore(selector, equalityFn) {
|
|
5
|
+
const context = useContext(GpsMapToolsContext);
|
|
6
|
+
if (!context) {
|
|
7
|
+
throw new Error("useGpsToolsStore context must be use inside GpsToolsContext");
|
|
8
|
+
}
|
|
9
|
+
return useStore(context, selector, equalityFn);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
useGpsMapToolsStore as u
|
|
13
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { shallow } from "zustand/shallow";
|
|
3
|
+
import { u as useGpsMapToolsStore } from "../useGpsMapToolsStore/index.js";
|
|
4
|
+
import { C as CommonFeatureRender } from "../../../GpsMap/featureRenders/CommonFeatureRender/index.js";
|
|
5
|
+
import { G as GeofencesFeaturesLayers } from "../../subcomponents/TabsGpsTools/subcomponents/constants.js";
|
|
6
|
+
import { u as useMapStore } from "../../../GpsMap/hooks/useMapStore/index.js";
|
|
7
|
+
function useLayers() {
|
|
8
|
+
const { addLayer, removeLayer } = useMapStore((state) => state.mapActions, shallow);
|
|
9
|
+
const { init } = useGpsMapToolsStore((state) => state.gpsToolsActions, shallow);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
addLayer({
|
|
12
|
+
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES,
|
|
13
|
+
name: "Geocercas",
|
|
14
|
+
renderFeature: CommonFeatureRender,
|
|
15
|
+
geoJsonObject: {
|
|
16
|
+
object: {
|
|
17
|
+
type: "FeatureCollection",
|
|
18
|
+
features: []
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
autoFocus: false
|
|
22
|
+
});
|
|
23
|
+
addLayer({
|
|
24
|
+
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES,
|
|
25
|
+
name: "Geometrías de tránsito",
|
|
26
|
+
renderFeature: CommonFeatureRender,
|
|
27
|
+
geoJsonObject: {
|
|
28
|
+
object: {
|
|
29
|
+
type: "FeatureCollection",
|
|
30
|
+
features: []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
autoFocus: false
|
|
34
|
+
});
|
|
35
|
+
addLayer({
|
|
36
|
+
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES,
|
|
37
|
+
name: "Geometrías internas",
|
|
38
|
+
renderFeature: CommonFeatureRender,
|
|
39
|
+
geoJsonObject: {
|
|
40
|
+
object: {
|
|
41
|
+
type: "FeatureCollection",
|
|
42
|
+
features: []
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
autoFocus: false
|
|
46
|
+
});
|
|
47
|
+
init();
|
|
48
|
+
return () => {
|
|
49
|
+
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES);
|
|
50
|
+
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES);
|
|
51
|
+
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES);
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
useLayers as u
|
|
57
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const MAP_GPSTOOLS_ICONS: {
|
|
2
|
+
/**
|
|
3
|
+
* GpsTools
|
|
4
|
+
*/
|
|
5
|
+
MAP_GPS_TOOLS_TOOL: string;
|
|
6
|
+
GEOFENCES: string;
|
|
7
|
+
GEOFENCE_ID: string;
|
|
8
|
+
GEOFENCE_NAME: string;
|
|
9
|
+
GEOFENCE_ADD: string;
|
|
10
|
+
GEOFENCE_EDIT: string;
|
|
11
|
+
GEOFENCE_DELETE: string;
|
|
12
|
+
GENERAL: string;
|
|
13
|
+
DATA: string;
|
|
14
|
+
STYLE: string;
|
|
15
|
+
GEOFENCE_DRAW: string;
|
|
16
|
+
GEOFENCE_FINISH: string;
|
|
17
|
+
GEOFENCE_TYPE_CIRCLE: string;
|
|
18
|
+
GEOFENCE_TYPE_RECTANGLE: string;
|
|
19
|
+
GEOFENCE_TYPE_POLYGON: string;
|
|
20
|
+
CONFIG: string;
|
|
21
|
+
STROKE: string;
|
|
22
|
+
FILL: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const MAP_GPSTOOLS_ICONS = {
|
|
2
|
+
GEOFENCES: "cmp_map_gpstools_geofences.svg",
|
|
3
|
+
GEOFENCE_ID: "cmp_map_gpstools_geofence_id.svg",
|
|
4
|
+
GEOFENCE_NAME: "cmp_map_gpstools_geofence_name.svg",
|
|
5
|
+
GEOFENCE_ADD: "cmp_map_gpstools_add-geofence.svg",
|
|
6
|
+
GEOFENCE_EDIT: "cmp_map_gpstools_edit-geofence.svg",
|
|
7
|
+
GEOFENCE_DELETE: "cmp_map_gpstools_delete-geofence.svg",
|
|
8
|
+
GENERAL: "cmp_map_gpstools_general.svg",
|
|
9
|
+
DATA: "cmp_map_gpstools_data.svg",
|
|
10
|
+
STYLE: "cmp_map_gpstools_style.svg",
|
|
11
|
+
GEOFENCE_DRAW: "cmp_map_gpstools_draw.svg",
|
|
12
|
+
GEOFENCE_FINISH: "cmp_map_gpstools_finish.svg",
|
|
13
|
+
GEOFENCE_TYPE_CIRCLE: "cmp_map_gpstools_circle.svg",
|
|
14
|
+
GEOFENCE_TYPE_RECTANGLE: "cmp_map_gpstools_rectangle.svg",
|
|
15
|
+
GEOFENCE_TYPE_POLYGON: "cmp_map_gpstools_polygon.svg",
|
|
16
|
+
CONFIG: "cmp_map_gpstools_config.svg",
|
|
17
|
+
STROKE: "cmp_map_gpstools_stroke.svg",
|
|
18
|
+
FILL: "cmp_map_gpstools_fill.svg"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
MAP_GPSTOOLS_ICONS as M
|
|
22
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { GpsMapTools } from './GpsMapTools';
|
|
2
|
+
export { GpsMapToolsProvider } from './contexts/GpsMapToolsContext';
|
|
3
|
+
export { getGpsMapToolsComponentsDictionary as getGpsMapToolsComponentsDictionary } from './dictionary';
|
|
4
|
+
export { useGpsMapToolsStore } from './hooks/useGpsMapToolsStore';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DivTabGpsToolsRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { g as gpsToolsClasses } from "./classes/index.js";
|
|
3
|
+
const DivTabGpsToolsRoot = styled("div")`
|
|
4
|
+
.${gpsToolsClasses.gpsToolsTabContent}.${gpsToolsClasses.hidden} {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
.${gpsToolsClasses.gpsToolsGeofencesList} .M4LDataGrid-root {
|
|
8
|
+
height: unset !important;
|
|
9
|
+
flex-grow: 1;
|
|
10
|
+
}
|
|
11
|
+
.${gpsToolsClasses.toolGeofencesAddEditGeneral} {
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
`;
|
|
16
|
+
export {
|
|
17
|
+
DivTabGpsToolsRoot as D
|
|
18
|
+
};
|