@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,406 @@
|
|
|
1
|
+
const isObject$1 = (value) => typeof value === "object" && value !== null;
|
|
2
|
+
const isObjectCustom = (value) => isObject$1(value) && !(value instanceof RegExp) && !(value instanceof Error) && !(value instanceof Date);
|
|
3
|
+
const mapObjectSkip = Symbol("mapObjectSkip");
|
|
4
|
+
const _mapObject = (object, mapper, options, isSeen = /* @__PURE__ */ new WeakMap()) => {
|
|
5
|
+
options = {
|
|
6
|
+
deep: false,
|
|
7
|
+
target: {},
|
|
8
|
+
...options
|
|
9
|
+
};
|
|
10
|
+
if (isSeen.has(object)) {
|
|
11
|
+
return isSeen.get(object);
|
|
12
|
+
}
|
|
13
|
+
isSeen.set(object, options.target);
|
|
14
|
+
const { target } = options;
|
|
15
|
+
delete options.target;
|
|
16
|
+
const mapArray = (array) => array.map((element) => isObjectCustom(element) ? _mapObject(element, mapper, options, isSeen) : element);
|
|
17
|
+
if (Array.isArray(object)) {
|
|
18
|
+
return mapArray(object);
|
|
19
|
+
}
|
|
20
|
+
for (const [key, value] of Object.entries(object)) {
|
|
21
|
+
const mapResult = mapper(key, value, object);
|
|
22
|
+
if (mapResult === mapObjectSkip) {
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
let [newKey, newValue, { shouldRecurse = true } = {}] = mapResult;
|
|
26
|
+
if (newKey === "__proto__") {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (options.deep && shouldRecurse && isObjectCustom(newValue)) {
|
|
30
|
+
newValue = Array.isArray(newValue) ? mapArray(newValue) : _mapObject(newValue, mapper, options, isSeen);
|
|
31
|
+
}
|
|
32
|
+
target[newKey] = newValue;
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
function mapObject(object, mapper, options) {
|
|
37
|
+
if (!isObject$1(object)) {
|
|
38
|
+
throw new TypeError(`Expected an object, got \`${object}\` (${typeof object})`);
|
|
39
|
+
}
|
|
40
|
+
return _mapObject(object, mapper, options);
|
|
41
|
+
}
|
|
42
|
+
const UPPERCASE = /[\p{Lu}]/u;
|
|
43
|
+
const LOWERCASE = /[\p{Ll}]/u;
|
|
44
|
+
const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
45
|
+
const IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
46
|
+
const SEPARATORS = /[_.\- ]+/;
|
|
47
|
+
const LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
48
|
+
const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
49
|
+
const NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
50
|
+
const preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
51
|
+
let isLastCharLower = false;
|
|
52
|
+
let isLastCharUpper = false;
|
|
53
|
+
let isLastLastCharUpper = false;
|
|
54
|
+
let isLastLastCharPreserved = false;
|
|
55
|
+
for (let index = 0; index < string.length; index++) {
|
|
56
|
+
const character = string[index];
|
|
57
|
+
isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
|
|
58
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
59
|
+
string = string.slice(0, index) + "-" + string.slice(index);
|
|
60
|
+
isLastCharLower = false;
|
|
61
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
62
|
+
isLastCharUpper = true;
|
|
63
|
+
index++;
|
|
64
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
|
|
65
|
+
string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
|
|
66
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
67
|
+
isLastCharUpper = false;
|
|
68
|
+
isLastCharLower = true;
|
|
69
|
+
} else {
|
|
70
|
+
isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
|
|
71
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
72
|
+
isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return string;
|
|
76
|
+
};
|
|
77
|
+
const preserveConsecutiveUppercase = (input, toLowerCase) => {
|
|
78
|
+
LEADING_CAPITAL.lastIndex = 0;
|
|
79
|
+
return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
|
|
80
|
+
};
|
|
81
|
+
const postProcess = (input, toUpperCase) => {
|
|
82
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
83
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
84
|
+
return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
|
|
85
|
+
};
|
|
86
|
+
function camelCase(input, options) {
|
|
87
|
+
if (!(typeof input === "string" || Array.isArray(input))) {
|
|
88
|
+
throw new TypeError("Expected the input to be `string | string[]`");
|
|
89
|
+
}
|
|
90
|
+
options = {
|
|
91
|
+
pascalCase: false,
|
|
92
|
+
preserveConsecutiveUppercase: false,
|
|
93
|
+
...options
|
|
94
|
+
};
|
|
95
|
+
if (Array.isArray(input)) {
|
|
96
|
+
input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
|
|
97
|
+
} else {
|
|
98
|
+
input = input.trim();
|
|
99
|
+
}
|
|
100
|
+
if (input.length === 0) {
|
|
101
|
+
return "";
|
|
102
|
+
}
|
|
103
|
+
const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
|
|
104
|
+
const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
|
|
105
|
+
if (input.length === 1) {
|
|
106
|
+
if (SEPARATORS.test(input)) {
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
109
|
+
return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
|
|
110
|
+
}
|
|
111
|
+
const hasUpperCase = input !== toLowerCase(input);
|
|
112
|
+
if (hasUpperCase) {
|
|
113
|
+
input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
|
|
114
|
+
}
|
|
115
|
+
input = input.replace(LEADING_SEPARATORS, "");
|
|
116
|
+
input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
|
|
117
|
+
if (options.pascalCase) {
|
|
118
|
+
input = toUpperCase(input.charAt(0)) + input.slice(1);
|
|
119
|
+
}
|
|
120
|
+
return postProcess(input, toUpperCase);
|
|
121
|
+
}
|
|
122
|
+
class QuickLRU extends Map {
|
|
123
|
+
constructor(options = {}) {
|
|
124
|
+
super();
|
|
125
|
+
if (!(options.maxSize && options.maxSize > 0)) {
|
|
126
|
+
throw new TypeError("`maxSize` must be a number greater than 0");
|
|
127
|
+
}
|
|
128
|
+
if (typeof options.maxAge === "number" && options.maxAge === 0) {
|
|
129
|
+
throw new TypeError("`maxAge` must be a number greater than 0");
|
|
130
|
+
}
|
|
131
|
+
this.maxSize = options.maxSize;
|
|
132
|
+
this.maxAge = options.maxAge || Number.POSITIVE_INFINITY;
|
|
133
|
+
this.onEviction = options.onEviction;
|
|
134
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
135
|
+
this.oldCache = /* @__PURE__ */ new Map();
|
|
136
|
+
this._size = 0;
|
|
137
|
+
}
|
|
138
|
+
// TODO: Use private class methods when targeting Node.js 16.
|
|
139
|
+
_emitEvictions(cache2) {
|
|
140
|
+
if (typeof this.onEviction !== "function") {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
for (const [key, item] of cache2) {
|
|
144
|
+
this.onEviction(key, item.value);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
_deleteIfExpired(key, item) {
|
|
148
|
+
if (typeof item.expiry === "number" && item.expiry <= Date.now()) {
|
|
149
|
+
if (typeof this.onEviction === "function") {
|
|
150
|
+
this.onEviction(key, item.value);
|
|
151
|
+
}
|
|
152
|
+
return this.delete(key);
|
|
153
|
+
}
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
_getOrDeleteIfExpired(key, item) {
|
|
157
|
+
const deleted = this._deleteIfExpired(key, item);
|
|
158
|
+
if (deleted === false) {
|
|
159
|
+
return item.value;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
_getItemValue(key, item) {
|
|
163
|
+
return item.expiry ? this._getOrDeleteIfExpired(key, item) : item.value;
|
|
164
|
+
}
|
|
165
|
+
_peek(key, cache2) {
|
|
166
|
+
const item = cache2.get(key);
|
|
167
|
+
return this._getItemValue(key, item);
|
|
168
|
+
}
|
|
169
|
+
_set(key, value) {
|
|
170
|
+
this.cache.set(key, value);
|
|
171
|
+
this._size++;
|
|
172
|
+
if (this._size >= this.maxSize) {
|
|
173
|
+
this._size = 0;
|
|
174
|
+
this._emitEvictions(this.oldCache);
|
|
175
|
+
this.oldCache = this.cache;
|
|
176
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
_moveToRecent(key, item) {
|
|
180
|
+
this.oldCache.delete(key);
|
|
181
|
+
this._set(key, item);
|
|
182
|
+
}
|
|
183
|
+
*_entriesAscending() {
|
|
184
|
+
for (const item of this.oldCache) {
|
|
185
|
+
const [key, value] = item;
|
|
186
|
+
if (!this.cache.has(key)) {
|
|
187
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
188
|
+
if (deleted === false) {
|
|
189
|
+
yield item;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (const item of this.cache) {
|
|
194
|
+
const [key, value] = item;
|
|
195
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
196
|
+
if (deleted === false) {
|
|
197
|
+
yield item;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
get(key) {
|
|
202
|
+
if (this.cache.has(key)) {
|
|
203
|
+
const item = this.cache.get(key);
|
|
204
|
+
return this._getItemValue(key, item);
|
|
205
|
+
}
|
|
206
|
+
if (this.oldCache.has(key)) {
|
|
207
|
+
const item = this.oldCache.get(key);
|
|
208
|
+
if (this._deleteIfExpired(key, item) === false) {
|
|
209
|
+
this._moveToRecent(key, item);
|
|
210
|
+
return item.value;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
set(key, value, { maxAge = this.maxAge } = {}) {
|
|
215
|
+
const expiry = typeof maxAge === "number" && maxAge !== Number.POSITIVE_INFINITY ? Date.now() + maxAge : void 0;
|
|
216
|
+
if (this.cache.has(key)) {
|
|
217
|
+
this.cache.set(key, {
|
|
218
|
+
value,
|
|
219
|
+
expiry
|
|
220
|
+
});
|
|
221
|
+
} else {
|
|
222
|
+
this._set(key, { value, expiry });
|
|
223
|
+
}
|
|
224
|
+
return this;
|
|
225
|
+
}
|
|
226
|
+
has(key) {
|
|
227
|
+
if (this.cache.has(key)) {
|
|
228
|
+
return !this._deleteIfExpired(key, this.cache.get(key));
|
|
229
|
+
}
|
|
230
|
+
if (this.oldCache.has(key)) {
|
|
231
|
+
return !this._deleteIfExpired(key, this.oldCache.get(key));
|
|
232
|
+
}
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
peek(key) {
|
|
236
|
+
if (this.cache.has(key)) {
|
|
237
|
+
return this._peek(key, this.cache);
|
|
238
|
+
}
|
|
239
|
+
if (this.oldCache.has(key)) {
|
|
240
|
+
return this._peek(key, this.oldCache);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
delete(key) {
|
|
244
|
+
const deleted = this.cache.delete(key);
|
|
245
|
+
if (deleted) {
|
|
246
|
+
this._size--;
|
|
247
|
+
}
|
|
248
|
+
return this.oldCache.delete(key) || deleted;
|
|
249
|
+
}
|
|
250
|
+
clear() {
|
|
251
|
+
this.cache.clear();
|
|
252
|
+
this.oldCache.clear();
|
|
253
|
+
this._size = 0;
|
|
254
|
+
}
|
|
255
|
+
resize(newSize) {
|
|
256
|
+
if (!(newSize && newSize > 0)) {
|
|
257
|
+
throw new TypeError("`maxSize` must be a number greater than 0");
|
|
258
|
+
}
|
|
259
|
+
const items = [...this._entriesAscending()];
|
|
260
|
+
const removeCount = items.length - newSize;
|
|
261
|
+
if (removeCount < 0) {
|
|
262
|
+
this.cache = new Map(items);
|
|
263
|
+
this.oldCache = /* @__PURE__ */ new Map();
|
|
264
|
+
this._size = items.length;
|
|
265
|
+
} else {
|
|
266
|
+
if (removeCount > 0) {
|
|
267
|
+
this._emitEvictions(items.slice(0, removeCount));
|
|
268
|
+
}
|
|
269
|
+
this.oldCache = new Map(items.slice(removeCount));
|
|
270
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
271
|
+
this._size = 0;
|
|
272
|
+
}
|
|
273
|
+
this.maxSize = newSize;
|
|
274
|
+
}
|
|
275
|
+
*keys() {
|
|
276
|
+
for (const [key] of this) {
|
|
277
|
+
yield key;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
*values() {
|
|
281
|
+
for (const [, value] of this) {
|
|
282
|
+
yield value;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
*[Symbol.iterator]() {
|
|
286
|
+
for (const item of this.cache) {
|
|
287
|
+
const [key, value] = item;
|
|
288
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
289
|
+
if (deleted === false) {
|
|
290
|
+
yield [key, value.value];
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
for (const item of this.oldCache) {
|
|
294
|
+
const [key, value] = item;
|
|
295
|
+
if (!this.cache.has(key)) {
|
|
296
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
297
|
+
if (deleted === false) {
|
|
298
|
+
yield [key, value.value];
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
*entriesDescending() {
|
|
304
|
+
let items = [...this.cache];
|
|
305
|
+
for (let i = items.length - 1; i >= 0; --i) {
|
|
306
|
+
const item = items[i];
|
|
307
|
+
const [key, value] = item;
|
|
308
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
309
|
+
if (deleted === false) {
|
|
310
|
+
yield [key, value.value];
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
items = [...this.oldCache];
|
|
314
|
+
for (let i = items.length - 1; i >= 0; --i) {
|
|
315
|
+
const item = items[i];
|
|
316
|
+
const [key, value] = item;
|
|
317
|
+
if (!this.cache.has(key)) {
|
|
318
|
+
const deleted = this._deleteIfExpired(key, value);
|
|
319
|
+
if (deleted === false) {
|
|
320
|
+
yield [key, value.value];
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
*entriesAscending() {
|
|
326
|
+
for (const [key, value] of this._entriesAscending()) {
|
|
327
|
+
yield [key, value.value];
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
get size() {
|
|
331
|
+
if (!this._size) {
|
|
332
|
+
return this.oldCache.size;
|
|
333
|
+
}
|
|
334
|
+
let oldCacheSize = 0;
|
|
335
|
+
for (const key of this.oldCache.keys()) {
|
|
336
|
+
if (!this.cache.has(key)) {
|
|
337
|
+
oldCacheSize++;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return Math.min(this._size + oldCacheSize, this.maxSize);
|
|
341
|
+
}
|
|
342
|
+
entries() {
|
|
343
|
+
return this.entriesAscending();
|
|
344
|
+
}
|
|
345
|
+
forEach(callbackFunction, thisArgument = this) {
|
|
346
|
+
for (const [key, value] of this.entriesAscending()) {
|
|
347
|
+
callbackFunction.call(thisArgument, value, key, this);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
get [Symbol.toStringTag]() {
|
|
351
|
+
return JSON.stringify([...this.entriesAscending()]);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const has = (array, key) => array.some((element) => {
|
|
355
|
+
if (typeof element === "string") {
|
|
356
|
+
return element === key;
|
|
357
|
+
}
|
|
358
|
+
element.lastIndex = 0;
|
|
359
|
+
return element.test(key);
|
|
360
|
+
});
|
|
361
|
+
const cache = new QuickLRU({ maxSize: 1e5 });
|
|
362
|
+
const isObject = (value) => typeof value === "object" && value !== null && !(value instanceof RegExp) && !(value instanceof Error) && !(value instanceof Date);
|
|
363
|
+
const transform = (input, options = {}) => {
|
|
364
|
+
if (!isObject(input)) {
|
|
365
|
+
return input;
|
|
366
|
+
}
|
|
367
|
+
const {
|
|
368
|
+
exclude,
|
|
369
|
+
pascalCase = false,
|
|
370
|
+
stopPaths,
|
|
371
|
+
deep = false,
|
|
372
|
+
preserveConsecutiveUppercase: preserveConsecutiveUppercase2 = false
|
|
373
|
+
} = options;
|
|
374
|
+
const stopPathsSet = new Set(stopPaths);
|
|
375
|
+
const makeMapper = (parentPath) => (key, value) => {
|
|
376
|
+
if (deep && isObject(value)) {
|
|
377
|
+
const path = parentPath === void 0 ? key : `${parentPath}.${key}`;
|
|
378
|
+
if (!stopPathsSet.has(path)) {
|
|
379
|
+
value = mapObject(value, makeMapper(path));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (!(exclude && has(exclude, key))) {
|
|
383
|
+
const cacheKey = pascalCase ? `${key}_` : key;
|
|
384
|
+
if (cache.has(cacheKey)) {
|
|
385
|
+
key = cache.get(cacheKey);
|
|
386
|
+
} else {
|
|
387
|
+
const returnValue = camelCase(key, { pascalCase, locale: false, preserveConsecutiveUppercase: preserveConsecutiveUppercase2 });
|
|
388
|
+
if (key.length < 100) {
|
|
389
|
+
cache.set(cacheKey, returnValue);
|
|
390
|
+
}
|
|
391
|
+
key = returnValue;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return [key, value];
|
|
395
|
+
};
|
|
396
|
+
return mapObject(input, makeMapper(void 0));
|
|
397
|
+
};
|
|
398
|
+
function camelcaseKeys(input, options) {
|
|
399
|
+
if (Array.isArray(input)) {
|
|
400
|
+
return Object.keys(input).map((key) => transform(input[key], options));
|
|
401
|
+
}
|
|
402
|
+
return transform(input, options);
|
|
403
|
+
}
|
|
404
|
+
export {
|
|
405
|
+
camelcaseKeys as c
|
|
406
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@m4l/gclick",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"lint-staged": {
|
|
6
|
+
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@geoman-io/leaflet-geoman-free": "^2.14.2",
|
|
10
|
+
"@googlemaps/js-api-loader": "^1.16.6",
|
|
11
|
+
"@hookform/resolvers": "2.9.11",
|
|
12
|
+
"@microlink/react-json-view": "^1.23.3",
|
|
13
|
+
"@mui/x-charts": "^8.10.0",
|
|
14
|
+
"@types/lodash-es": "^4.17.12",
|
|
15
|
+
"atmosphere.js": "^4.0.0",
|
|
16
|
+
"chart.js": "^4.4.0",
|
|
17
|
+
"chartjs-chart-error-bars": "^4.3.3",
|
|
18
|
+
"fast-equals": "^5.0.1",
|
|
19
|
+
"history": "5.3.0",
|
|
20
|
+
"install": "^0.13.0",
|
|
21
|
+
"jwt-decode": "^4.0.0",
|
|
22
|
+
"leaflet": "^1.9.4",
|
|
23
|
+
"leaflet-polylinedecorator": "^1.6.0",
|
|
24
|
+
"leaflet.markercluster": "^1.5.3",
|
|
25
|
+
"lodash-es": "^4.17.21",
|
|
26
|
+
"qrcode.react": "^3.1.0",
|
|
27
|
+
"react": "18.3.1",
|
|
28
|
+
"react-chartjs-2": "^5.2.0",
|
|
29
|
+
"react-color": "^2.19.3",
|
|
30
|
+
"react-data-grid": "7.0.0-beta.13",
|
|
31
|
+
"react-dom": "18.3.1",
|
|
32
|
+
"react-leaflet": "^4.2.1",
|
|
33
|
+
"react-resizable": "^3.0.4",
|
|
34
|
+
"react-router-dom": "6.3.0",
|
|
35
|
+
"react-spinners": "^0.13.8",
|
|
36
|
+
"react-transition-group": "^4.4.5",
|
|
37
|
+
"simplebar-react": "3.2.6",
|
|
38
|
+
"storybook-multilevel-sort": "^2.0.1",
|
|
39
|
+
"yup": "0.32.11",
|
|
40
|
+
"zustand": "4.3.6"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@m4l/components": "^9.0.0",
|
|
44
|
+
"@m4l/core": "^2.0.0",
|
|
45
|
+
"@m4l/graphics": "^7.0.0",
|
|
46
|
+
"@m4l/styles": "^7.1.18"
|
|
47
|
+
},
|
|
48
|
+
"resolutions": {
|
|
49
|
+
"react": "18.3.1",
|
|
50
|
+
"@types/react": "18.3.23",
|
|
51
|
+
"@types/react-dom": "18.3.7",
|
|
52
|
+
"react-dom": "18.3.1",
|
|
53
|
+
"storybook": "^8.3.4",
|
|
54
|
+
"attr-accept": "2.2.2",
|
|
55
|
+
"@vitejs/plugin-react": "^4.0.0"
|
|
56
|
+
},
|
|
57
|
+
"overrides": {
|
|
58
|
+
"glob": "^10.4.5",
|
|
59
|
+
"eslint": "9.28.0",
|
|
60
|
+
"react": "18.3.1",
|
|
61
|
+
"@types/react": "18.3.23",
|
|
62
|
+
"@types/react-dom": "18.3.7",
|
|
63
|
+
"react-dom": "18.3.1",
|
|
64
|
+
"attr-accept": "2.2.2"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"*"
|
|
68
|
+
],
|
|
69
|
+
"source": "./index.js",
|
|
70
|
+
"main": "./dist/index.js",
|
|
71
|
+
"module": "./index.js",
|
|
72
|
+
"type": "module",
|
|
73
|
+
"types": "./index.d.ts",
|
|
74
|
+
"sideEffects": false,
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=12.0.0"
|
|
80
|
+
},
|
|
81
|
+
"packageManager": "yarn@4.5.0",
|
|
82
|
+
"msw": {
|
|
83
|
+
"workerDirectory": [
|
|
84
|
+
"public"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"private": false,
|
|
88
|
+
"exports": {
|
|
89
|
+
".": {
|
|
90
|
+
"import": "./index.js"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface HostThemeProviderMockProps {
|
|
3
|
+
dataTestId?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TODO: Documentar
|
|
8
|
+
*/
|
|
9
|
+
declare const HostThemeProviderMock: (props: HostThemeProviderMockProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default HostThemeProviderMock;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { DeviceType } from '@m4l/graphics';
|
|
3
|
+
interface TestAppWrapperProps {
|
|
4
|
+
forcedDeviceType?: DeviceType;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* TestWrapper is a React functional component that provides a consistent testing environment
|
|
9
|
+
* for components that rely on various context providers.
|
|
10
|
+
*
|
|
11
|
+
* It wraps the children components with the following contexts:
|
|
12
|
+
* - ModuleSkeletonContext: Provides the skeleton loading state for components that require it.
|
|
13
|
+
* - HostThemeProviderMock: Mocks the theme provider to ensure components are styled correctly during tests.
|
|
14
|
+
* - AppearanceComponentProvider: Supplies the necessary context for appearance-related components.
|
|
15
|
+
*
|
|
16
|
+
* This wrapper is useful for reducing redundancy in tests by encapsulating common providers,
|
|
17
|
+
* allowing for cleaner and more maintainable test code.
|
|
18
|
+
* @param {Object} props - The properties passed to the component.
|
|
19
|
+
* @param {ReactNode} props.children - The child components that will be rendered within the context providers.
|
|
20
|
+
* @example
|
|
21
|
+
* // Usage example
|
|
22
|
+
* render(
|
|
23
|
+
* <TestWrapper>
|
|
24
|
+
* <MyComponent />
|
|
25
|
+
* </TestWrapper>
|
|
26
|
+
* );
|
|
27
|
+
*/
|
|
28
|
+
export declare const TestAppWrapper: FC<TestAppWrapperProps>;
|
|
29
|
+
export default TestAppWrapper;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Formatters } from '@m4l/graphics';
|
|
2
|
+
import { HostToolsType, Toaster } from '@m4l/core';
|
|
3
|
+
import { BaseDataForTesting } from './types';
|
|
4
|
+
export declare const moduleIdForTesting = "testing";
|
|
5
|
+
export declare const moduleNameForTesting = "label_for_module_name";
|
|
6
|
+
export declare const dictionaryDataForTesting: {
|
|
7
|
+
data: {
|
|
8
|
+
module_name: string;
|
|
9
|
+
label1: string;
|
|
10
|
+
};
|
|
11
|
+
comp1: {
|
|
12
|
+
key1: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const queryPrivilegesForTesting: string[];
|
|
16
|
+
export declare const resultpPrivilegesForTesting: {
|
|
17
|
+
data: {
|
|
18
|
+
priv1: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const domainDataForTesting: {
|
|
22
|
+
data: {
|
|
23
|
+
name: string;
|
|
24
|
+
company_logo_small_url: string;
|
|
25
|
+
company_logo_normal_url: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const domainCountry1DataForTesting: {
|
|
29
|
+
id: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
currency_decimal_digits: number;
|
|
32
|
+
decimal_symbol: string;
|
|
33
|
+
thousands_symbol: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const domainCountry2DataForTesting: {
|
|
36
|
+
id: number;
|
|
37
|
+
currency: string;
|
|
38
|
+
currency_decimal_digits: number;
|
|
39
|
+
decimal_symbol: string;
|
|
40
|
+
thousands_symbol: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const resultAxiosOperationForTesting: {
|
|
43
|
+
data: {
|
|
44
|
+
a: number;
|
|
45
|
+
b: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const networkPropsForTesting: {
|
|
49
|
+
method: string;
|
|
50
|
+
endPoint: string;
|
|
51
|
+
parms: {};
|
|
52
|
+
};
|
|
53
|
+
export declare const environmentDataForTesting: {
|
|
54
|
+
isLocalhost: boolean;
|
|
55
|
+
host: string;
|
|
56
|
+
database: string;
|
|
57
|
+
domain_token: string;
|
|
58
|
+
host_api_local: string;
|
|
59
|
+
host_api_remote: string;
|
|
60
|
+
host_static_assets: string;
|
|
61
|
+
environment_assets: string;
|
|
62
|
+
isIsolatation: boolean;
|
|
63
|
+
isMicroFrontend: boolean;
|
|
64
|
+
getModuleUrlIconAsset: () => string;
|
|
65
|
+
};
|
|
66
|
+
export declare const baseDataForTesting: BaseDataForTesting;
|
|
67
|
+
export declare const mock_toaster: Toaster;
|
|
68
|
+
export declare const hostToolsDataForTesting: HostToolsType;
|
|
69
|
+
export declare const formatterValues: Formatters;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TEST_PROP_ID = "data-testid";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO: Documentar
|
|
3
|
+
*/
|
|
4
|
+
export declare const getNameDataTestId: (componentName: string, slotKey: string, instaceId?: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Utilidad que permite generar el nombre único que sirve para realizar las pruebas unitarias y de integración.
|
|
7
|
+
* Genera el atributo data-testid
|
|
8
|
+
* @param componentName -
|
|
9
|
+
* @param slotKey
|
|
10
|
+
*/
|
|
11
|
+
export declare function getPropDataTestId(componentName: string, slotKey: string, instaceId?: string): {
|
|
12
|
+
"data-testid": string;
|
|
13
|
+
} | {
|
|
14
|
+
"data-testid"?: undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const getNameDataTestId = (componentName, slotKey, instaceId) => {
|
|
2
|
+
if (instaceId) {
|
|
3
|
+
return `${componentName}-${[slotKey]}-${instaceId}`;
|
|
4
|
+
}
|
|
5
|
+
return `${componentName}-${[slotKey]}`;
|
|
6
|
+
};
|
|
7
|
+
function getPropDataTestId(componentName, slotKey, instaceId) {
|
|
8
|
+
if (process.env.NODE_ENV !== "production" && componentName && slotKey) {
|
|
9
|
+
return { ["data-testid"]: getNameDataTestId(componentName, slotKey, instaceId) };
|
|
10
|
+
} else {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
getPropDataTestId as g
|
|
16
|
+
};
|
package/test/index.d.ts
ADDED
package/test/mocks.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as core from '@m4l/core';
|
|
2
|
+
import * as graphics from '@m4l/graphics';
|
|
3
|
+
export declare const mock_addFlag: import('vitest').Mock<(...args: any[]) => any>;
|
|
4
|
+
export declare const mock_networkOperation: import('vitest').Mock<(...args: any[]) => any>;
|
|
5
|
+
export declare const mock_useFormatter: import('vitest').Mock<(...args: any[]) => any>;
|
|
6
|
+
export declare const mock_events_add_listener: import('vitest').Mock<(...args: any[]) => any>;
|
|
7
|
+
export declare const mock_events_remove_listener: import('vitest').Mock<(...args: any[]) => any>;
|
|
8
|
+
export declare const mock_events_emit: import('vitest').Mock<(...args: any[]) => any>;
|
|
9
|
+
export declare const mock_startProgress: import('vitest').Mock<(...args: any[]) => any>;
|
|
10
|
+
export declare const mock_stopProgress: import('vitest').Mock<(...args: any[]) => any>;
|
|
11
|
+
export declare const mock_useModuleDictionary: import('vitest').Mock<(...args: any[]) => any>;
|
|
12
|
+
export declare const mock_useEnvironment: {
|
|
13
|
+
host_static_assets: string;
|
|
14
|
+
environment_assets: string;
|
|
15
|
+
domain_token: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const mockedGraphics: {
|
|
18
|
+
useFormatter: import('vitest').MockInstance<() => graphics.Formatters>;
|
|
19
|
+
};
|
|
20
|
+
export declare function restoreGraphicsMocked(): void;
|
|
21
|
+
/**
|
|
22
|
+
* TODO: Documentar
|
|
23
|
+
*/
|
|
24
|
+
export declare const coreImplementation: typeof core;
|
|
25
|
+
export declare const graphicsImplementation: {
|
|
26
|
+
useFormatter: import('vitest').MockInstance<() => graphics.Formatters>;
|
|
27
|
+
};
|
package/test/setup.d.ts
ADDED
|
File without changes
|
package/test/types.d.ts
ADDED