@opengeoweb/core 2.9.0 → 2.10.0
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/index.esm.js +3293 -3939
- package/index.umd.js +2792 -3404
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -1
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +2 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +9 -0
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -1
- package/lib/index.d.ts +4 -6
- package/lib/store/generic/sagas.d.ts +5 -5
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -0
- package/lib/store/generic/synchronizationGroups/utils.d.ts +0 -5
- package/lib/store/generic/types.d.ts +3 -1
- package/lib/store/index.d.ts +3 -0
- package/lib/store/layerSelect/reducer.d.ts +12 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -3
- package/lib/store/layerSelect/types.d.ts +0 -31
- package/lib/store/mapStore/actions.d.ts +7 -3
- package/lib/store/mapStore/index.d.ts +1 -0
- package/lib/store/mapStore/layers/index.d.ts +1 -0
- package/lib/store/mapStore/layers/reducer.d.ts +42 -4
- package/lib/store/mapStore/layers/types.d.ts +24 -72
- package/lib/store/mapStore/map/actions.d.ts +8 -0
- package/lib/store/mapStore/map/reducer.d.ts +82 -12
- package/lib/store/mapStore/map/sagas.d.ts +8 -3
- package/lib/store/mapStore/map/selectors.d.ts +82 -2
- package/lib/store/mapStore/map/types.d.ts +27 -10
- package/lib/store/mapStore/map/utils.d.ts +2 -3
- package/lib/store/mapStore/service/reducer.d.ts +9 -4
- package/lib/store/mapStore/service/types.d.ts +0 -12
- package/lib/store/ui/reducer.d.ts +19 -2
- package/lib/store/ui/types.d.ts +0 -27
- package/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/lib/{store.d.ts → storybookUtils/store.d.ts} +0 -0
- package/lib/utils/jsonPresetFilter.d.ts +1 -0
- package/package.json +7 -8
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.d.ts +0 -9
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButton.spec.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.d.ts +0 -15
- package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts +0 -1
- package/lib/store/layerSelect/actions.d.ts +0 -26
- package/lib/store/layerSelect/constants.d.ts +0 -7
- package/lib/store/mapStore/constants.d.ts +0 -2
- package/lib/store/mapStore/layers/actions.d.ts +0 -134
- package/lib/store/mapStore/layers/constants.d.ts +0 -17
- package/lib/store/mapStore/service/actions.d.ts +0 -15
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- package/lib/store/ui/actions.d.ts +0 -43
- package/lib/store/ui/constants.d.ts +0 -6
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetSelectedFeaturePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetActiveMapPresetPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, SetIsMapPresetLoadingPayload, SetIsMapPresetHasChangesPayload, SetMapPresetErrorPayload } from './types';
|
|
3
|
+
import { mapChangeDimension, setMapPreset } from './actions';
|
|
2
4
|
/**
|
|
3
5
|
* Checks if the layer id is already taken in one of the maps.
|
|
4
6
|
* @param state The WebMapState
|
|
@@ -7,14 +9,82 @@ import { WebMapState, SetMapDimensionPayload, SetMapPresetPayload } from './type
|
|
|
7
9
|
*/
|
|
8
10
|
export declare const checkIfMapLayerIdIsAlreadyTaken: (state: WebMapState, layerId: string) => boolean;
|
|
9
11
|
export declare const initialState: WebMapState;
|
|
10
|
-
export declare const slice:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
12
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
13
|
+
registerMap: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
14
|
+
payload: {
|
|
15
|
+
mapId: string;
|
|
16
|
+
};
|
|
17
|
+
type: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
unregisterMap: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
20
|
+
payload: {
|
|
21
|
+
mapId: string;
|
|
22
|
+
};
|
|
23
|
+
type: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
setBbox: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetBboxPayload>) => void;
|
|
26
|
+
mapUpdateAllMapDimensions: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<UpdateAllMapDimensionsPayload>) => void;
|
|
27
|
+
mapStartAnimation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetMapAnimationStartPayload>) => void;
|
|
28
|
+
mapStopAnimation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetMapAnimationStopPayload>) => void;
|
|
29
|
+
setTimeSliderScale: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderScalePayload>) => void;
|
|
30
|
+
setTimeStep: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeStepPayload>) => void;
|
|
31
|
+
setAnimationStartTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationStartTimePayload>) => void;
|
|
32
|
+
setAnimationEndTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationEndTimePayload>) => void;
|
|
33
|
+
setSelectedFeature: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetSelectedFeaturePayload>) => void;
|
|
34
|
+
setAnimationDelay: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationDelayPayload>) => void;
|
|
35
|
+
layerMoveLayer: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MoveLayerPayload>) => void;
|
|
36
|
+
setActiveLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetActiveLayerIdPayload>) => void;
|
|
37
|
+
setTimeSliderCenterTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
38
|
+
setTimeSliderSecondsPerPx: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
39
|
+
setTimeSliderDataScaleToSecondsPerPx: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderDataScaleToSecondsPerPxPayload>) => void;
|
|
40
|
+
toggleAutoUpdate: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleAutoUpdatePayload>) => void;
|
|
41
|
+
toggleTimestepAuto: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleTimestepAutoPayload>) => void;
|
|
42
|
+
toggleTimeSliderHover: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleTimeSliderHoverPayload>) => void;
|
|
43
|
+
setMapPinLocation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MapPinLocationPayload>) => void;
|
|
44
|
+
setDisableMapPin: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<DisableMapPinPayload>) => void;
|
|
45
|
+
setActiveMapPresetId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetActiveMapPresetPayload>) => void;
|
|
46
|
+
setIsMapPresetLoading: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetIsMapPresetLoadingPayload>) => void;
|
|
47
|
+
setHasMapPresetChanges: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetIsMapPresetHasChangesPayload>) => void;
|
|
48
|
+
setMapPresetError: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetMapPresetErrorPayload>) => void;
|
|
49
|
+
}, "mapReducer">;
|
|
50
|
+
export declare const layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<MoveLayerPayload, string>, mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapAnimationStartPayload, string>, mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapAnimationStopPayload, string>, mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<UpdateAllMapDimensionsPayload, string>, registerMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
51
|
+
mapId: string;
|
|
52
|
+
}, string>, setActiveLayerId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetActiveLayerIdPayload, string>, setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationDelayPayload, string>, setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationEndTimePayload, string>, setAnimationStartTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationStartTimePayload, string>, setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetBboxPayload, string>, setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DisableMapPinPayload, string>, setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<MapPinLocationPayload, string>, setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetSelectedFeaturePayload, string>, setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderCenterTimePayload, string>, setTimeSliderDataScaleToSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderDataScaleToSecondsPerPxPayload, string>, setTimeSliderScale: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderScalePayload, string>, setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderSecondsPerPxPayload, string>, setTimeStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeStepPayload, string>, toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleAutoUpdatePayload, string>, toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimeSliderHoverPayload, string>, toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimestepAutoPayload, string>, unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
53
|
+
mapId: string;
|
|
54
|
+
}, string>, setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetActiveMapPresetPayload, string>, setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetLoadingPayload, string>, setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetHasChangesPayload, string>, setMapPresetError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapPresetErrorPayload, string>;
|
|
55
|
+
export { setMapPreset, mapChangeDimension };
|
|
56
|
+
export declare const actions: {
|
|
57
|
+
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetMapPresetPayload, string>;
|
|
58
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetMapDimensionPayload, string>;
|
|
59
|
+
registerMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
60
|
+
mapId: string;
|
|
61
|
+
}, string>;
|
|
62
|
+
unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
63
|
+
mapId: string;
|
|
64
|
+
}, string>;
|
|
65
|
+
setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetBboxPayload, string>;
|
|
66
|
+
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<UpdateAllMapDimensionsPayload, string>;
|
|
67
|
+
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapAnimationStartPayload, string>;
|
|
68
|
+
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapAnimationStopPayload, string>;
|
|
69
|
+
setTimeSliderScale: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderScalePayload, string>;
|
|
70
|
+
setTimeStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeStepPayload, string>;
|
|
71
|
+
setAnimationStartTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationStartTimePayload, string>;
|
|
72
|
+
setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationEndTimePayload, string>;
|
|
73
|
+
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetSelectedFeaturePayload, string>;
|
|
74
|
+
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetAnimationDelayPayload, string>;
|
|
75
|
+
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<MoveLayerPayload, string>;
|
|
76
|
+
setActiveLayerId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetActiveLayerIdPayload, string>;
|
|
77
|
+
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderCenterTimePayload, string>;
|
|
78
|
+
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderSecondsPerPxPayload, string>;
|
|
79
|
+
setTimeSliderDataScaleToSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimeSliderDataScaleToSecondsPerPxPayload, string>;
|
|
80
|
+
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleAutoUpdatePayload, string>;
|
|
81
|
+
toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimestepAutoPayload, string>;
|
|
82
|
+
toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ToggleTimeSliderHoverPayload, string>;
|
|
83
|
+
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<MapPinLocationPayload, string>;
|
|
84
|
+
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DisableMapPinPayload, string>;
|
|
85
|
+
setActiveMapPresetId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetActiveMapPresetPayload, string>;
|
|
86
|
+
setIsMapPresetLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetLoadingPayload, string>;
|
|
87
|
+
setHasMapPresetChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetIsMapPresetHasChangesPayload, string>;
|
|
88
|
+
setMapPresetError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetMapPresetErrorPayload, string>;
|
|
89
|
+
};
|
|
90
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<WebMapState, import("@reduxjs/toolkit").AnyAction>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
3
|
import { actions as mapActions } from './reducer';
|
|
4
|
-
import
|
|
4
|
+
import * as layerActions from '../layers';
|
|
5
|
+
import * as genericActions from '../../generic/actions';
|
|
6
|
+
import { Layer } from '../layers/types';
|
|
5
7
|
export declare const generateTimeList: (start: Moment, end: Moment, interval: number) => {
|
|
6
8
|
name: string;
|
|
7
9
|
value: string;
|
|
@@ -9,11 +11,14 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
|
|
|
9
11
|
export declare function updateMapDraw(mapId: string, draw: unknown): void;
|
|
10
12
|
export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
|
|
11
13
|
export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
|
|
12
|
-
export declare function deleteLayerSaga({ payload }:
|
|
14
|
+
export declare function deleteLayerSaga({ payload, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
|
13
15
|
export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
|
|
14
|
-
export declare function setLayerDimensionsSaga({ payload, }:
|
|
16
|
+
export declare function setLayerDimensionsSaga({ payload, }: ReturnType<typeof layerActions.onUpdateLayerInformation>): SagaIterator;
|
|
15
17
|
export declare function toggleAutoUpdateSaga({ payload, }: ReturnType<typeof mapActions.toggleAutoUpdate>): SagaIterator;
|
|
16
18
|
export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[]): SagaIterator;
|
|
17
19
|
export declare function setMapPresetSaga({ payload, }: ReturnType<typeof mapActions.setMapPreset>): SagaIterator;
|
|
20
|
+
export declare type SupportedMapPresetChangeActions = ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof mapActions.layerMoveLayer> | ReturnType<typeof mapActions.setActiveLayerId> | ReturnType<typeof mapActions.toggleAutoUpdate> | ReturnType<typeof mapActions.mapStartAnimation> | ReturnType<typeof mapActions.mapStopAnimation> | ReturnType<typeof genericActions.setBbox>;
|
|
21
|
+
export declare const mapPresetChangeActions: (string | import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").SetMapAnimationStopPayload, string>)[];
|
|
22
|
+
export declare function checkMapPresetForChangesSaga(action: SupportedMapPresetChangeActions): SagaIterator;
|
|
18
23
|
export declare function rootSaga(): SagaIterator;
|
|
19
24
|
export default rootSaga;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Scale, WebMap, WebMapState } from './types';
|
|
1
|
+
import { MapPreset, Scale, WebMap, WebMapState } from './types';
|
|
2
2
|
import { AppStore } from '../../../types/types';
|
|
3
3
|
import { Layer } from '../types';
|
|
4
4
|
/**
|
|
@@ -748,7 +748,7 @@ export declare const getSelectedFeatureIndex: ((state: {
|
|
|
748
748
|
/**
|
|
749
749
|
* Returns the active map preset id
|
|
750
750
|
*
|
|
751
|
-
* Example
|
|
751
|
+
* Example getActiveMapPresetId(store, mapId);
|
|
752
752
|
* @param {object} store store: object - store object
|
|
753
753
|
* @param {string} mapId mapId: string - Id of the map
|
|
754
754
|
* @returns {boolean} returnType: boolean or undefined
|
|
@@ -765,3 +765,83 @@ export declare const getActiveMapPresetId: ((state: {
|
|
|
765
765
|
}> & {
|
|
766
766
|
clearCache: () => void;
|
|
767
767
|
};
|
|
768
|
+
/**
|
|
769
|
+
* Creates a MapPreset from mapId
|
|
770
|
+
*
|
|
771
|
+
* Example getMapPreset(store, mapId);
|
|
772
|
+
* @param {object} store store: object - store object
|
|
773
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
774
|
+
* @returns {MapPreset} returnType: MapPreset
|
|
775
|
+
*/
|
|
776
|
+
export declare const getMapPreset: ((state: {
|
|
777
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
778
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
779
|
+
webmap?: WebMapState;
|
|
780
|
+
services?: import("../types").ServiceState;
|
|
781
|
+
layers?: import("../types").LayerState;
|
|
782
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
783
|
+
}, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: {}, args_4: string, args_5: string, args_6: boolean, args_7: boolean) => MapPreset) & {
|
|
784
|
+
clearCache: () => void;
|
|
785
|
+
}> & {
|
|
786
|
+
clearCache: () => void;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Returns the loading state of the map preset
|
|
790
|
+
*
|
|
791
|
+
* Example getIsMapPresetLoading(store, mapId);
|
|
792
|
+
* @param {object} store store: object - store object
|
|
793
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
794
|
+
* @returns {boolean} returnType: boolean
|
|
795
|
+
*/
|
|
796
|
+
export declare const getIsMapPresetLoading: ((state: {
|
|
797
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
798
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
799
|
+
webmap?: WebMapState;
|
|
800
|
+
services?: import("../types").ServiceState;
|
|
801
|
+
layers?: import("../types").LayerState;
|
|
802
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
803
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
804
|
+
clearCache: () => void;
|
|
805
|
+
}> & {
|
|
806
|
+
clearCache: () => void;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Returns the has changes state of the map preset
|
|
810
|
+
*
|
|
811
|
+
* Example getHasMapPresetChanges(store, mapId);
|
|
812
|
+
* @param {object} store store: object - store object
|
|
813
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
814
|
+
* @returns {boolean} returnType: boolean
|
|
815
|
+
*/
|
|
816
|
+
export declare const getHasMapPresetChanges: ((state: {
|
|
817
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
818
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
819
|
+
webmap?: WebMapState;
|
|
820
|
+
services?: import("../types").ServiceState;
|
|
821
|
+
layers?: import("../types").LayerState;
|
|
822
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
823
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
824
|
+
clearCache: () => void;
|
|
825
|
+
}> & {
|
|
826
|
+
clearCache: () => void;
|
|
827
|
+
};
|
|
828
|
+
/**
|
|
829
|
+
* Returns the error state of the map preset
|
|
830
|
+
*
|
|
831
|
+
* Example getMapPresetError(store, mapId);
|
|
832
|
+
* @param {object} store store: object - store object
|
|
833
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
834
|
+
* @returns {Error} returnType: string
|
|
835
|
+
*/
|
|
836
|
+
export declare const getMapPresetError: ((state: {
|
|
837
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
838
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
839
|
+
webmap?: WebMapState;
|
|
840
|
+
services?: import("../types").ServiceState;
|
|
841
|
+
layers?: import("../types").LayerState;
|
|
842
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
843
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
|
|
844
|
+
clearCache: () => void;
|
|
845
|
+
}> & {
|
|
846
|
+
clearCache: () => void;
|
|
847
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import type { Layer } from '../types';
|
|
2
|
+
import type { Layer, LayerActionOrigin } from '../types';
|
|
3
3
|
export interface Dimension {
|
|
4
4
|
name?: string;
|
|
5
5
|
units?: string;
|
|
@@ -17,7 +17,6 @@ export interface WebMap {
|
|
|
17
17
|
animationStartTime?: string;
|
|
18
18
|
animationEndTime?: string;
|
|
19
19
|
isAutoUpdating: boolean;
|
|
20
|
-
isLooping: boolean;
|
|
21
20
|
srs: string;
|
|
22
21
|
bbox: Bbox;
|
|
23
22
|
mapLayers: string[];
|
|
@@ -37,7 +36,10 @@ export interface WebMap {
|
|
|
37
36
|
mapPinLocation?: MapLocation;
|
|
38
37
|
disableMapPin?: boolean;
|
|
39
38
|
selectedFeatureIndex?: number;
|
|
40
|
-
|
|
39
|
+
activeMapPresetId?: string;
|
|
40
|
+
isMapPresetLoading?: boolean;
|
|
41
|
+
hasMapPresetChanges?: boolean;
|
|
42
|
+
mapPresetError?: string;
|
|
41
43
|
}
|
|
42
44
|
export interface WebMapState {
|
|
43
45
|
byId: Record<string, WebMap>;
|
|
@@ -70,21 +72,23 @@ export interface AnimationPayloadType {
|
|
|
70
72
|
interval?: number;
|
|
71
73
|
speed?: SpeedFactorType;
|
|
72
74
|
}
|
|
75
|
+
export declare enum MapActionOrigin {
|
|
76
|
+
map = "map"
|
|
77
|
+
}
|
|
73
78
|
export interface MapPreset {
|
|
74
79
|
layers?: Layer[];
|
|
75
|
-
overLayers?: Layer[];
|
|
76
80
|
activeLayerId?: string;
|
|
77
81
|
proj?: {
|
|
78
82
|
bbox: Bbox;
|
|
79
83
|
srs: string;
|
|
80
84
|
};
|
|
81
85
|
shouldAnimate?: boolean;
|
|
86
|
+
shouldAutoUpdate?: boolean;
|
|
87
|
+
toggleTimestepAuto?: boolean;
|
|
82
88
|
animationPayload?: AnimationPayloadType;
|
|
83
89
|
shouldShowZoomControls?: boolean;
|
|
84
|
-
shouldAutoUpdate?: boolean;
|
|
85
90
|
showTimeSlider?: boolean;
|
|
86
91
|
displayMapPin?: boolean;
|
|
87
|
-
toggleTimestepAuto?: boolean;
|
|
88
92
|
setTimestep?: number;
|
|
89
93
|
}
|
|
90
94
|
export interface MapPresetInitialProps {
|
|
@@ -122,21 +126,21 @@ export interface SetMapAnimationStartPayload {
|
|
|
122
126
|
end?: string;
|
|
123
127
|
interval?: number;
|
|
124
128
|
timeList?: TimeListType[];
|
|
129
|
+
origin?: MapActionOrigin;
|
|
125
130
|
}
|
|
126
131
|
export interface SetMapAnimationStopPayload {
|
|
127
132
|
mapId: string;
|
|
133
|
+
origin?: MapActionOrigin;
|
|
128
134
|
}
|
|
129
135
|
export interface SetActiveLayerIdPayload {
|
|
130
136
|
mapId: string;
|
|
131
137
|
layerId: string;
|
|
138
|
+
origin?: LayerActionOrigin | string;
|
|
132
139
|
}
|
|
133
140
|
export interface ToggleAutoUpdatePayload {
|
|
134
141
|
mapId: string;
|
|
135
142
|
shouldAutoUpdate: boolean;
|
|
136
|
-
|
|
137
|
-
export interface ToggleLoopPayload {
|
|
138
|
-
mapId: string;
|
|
139
|
-
shouldLoop: boolean;
|
|
143
|
+
origin?: MapActionOrigin;
|
|
140
144
|
}
|
|
141
145
|
export interface SetTimeSliderScalePayload {
|
|
142
146
|
mapId: string;
|
|
@@ -161,6 +165,7 @@ export interface SetAnimationEndTimePayload {
|
|
|
161
165
|
export interface ToggleTimestepAutoPayload {
|
|
162
166
|
mapId: string;
|
|
163
167
|
timestepAuto: boolean;
|
|
168
|
+
origin?: MapActionOrigin;
|
|
164
169
|
}
|
|
165
170
|
export interface ToggleTimeSliderHoverPayload {
|
|
166
171
|
mapId: string;
|
|
@@ -198,3 +203,15 @@ export interface SetActiveMapPresetPayload {
|
|
|
198
203
|
mapId: string;
|
|
199
204
|
presetId: string;
|
|
200
205
|
}
|
|
206
|
+
export interface SetIsMapPresetLoadingPayload {
|
|
207
|
+
mapId: string;
|
|
208
|
+
isLoading: boolean;
|
|
209
|
+
}
|
|
210
|
+
export interface SetIsMapPresetHasChangesPayload {
|
|
211
|
+
mapId: string;
|
|
212
|
+
hasChanges: boolean;
|
|
213
|
+
}
|
|
214
|
+
export interface SetMapPresetErrorPayload {
|
|
215
|
+
mapId: string;
|
|
216
|
+
error: string;
|
|
217
|
+
}
|
|
@@ -7,7 +7,6 @@ interface CreateMapProps {
|
|
|
7
7
|
animationStartTime?: string;
|
|
8
8
|
animationEndTime?: string;
|
|
9
9
|
isAutoUpdating?: boolean;
|
|
10
|
-
isLooping?: boolean;
|
|
11
10
|
srs?: string;
|
|
12
11
|
bbox?: Bbox;
|
|
13
12
|
mapLayers?: string[];
|
|
@@ -24,9 +23,9 @@ interface CreateMapProps {
|
|
|
24
23
|
timeSliderDataScaleToSecondsPerPx?: number;
|
|
25
24
|
isTimestepAuto?: boolean;
|
|
26
25
|
isTimeSliderHoverOn?: boolean;
|
|
27
|
-
|
|
26
|
+
activeMapPresetId?: string;
|
|
28
27
|
}
|
|
29
|
-
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating,
|
|
28
|
+
export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, activeMapPresetId, }: CreateMapProps) => WebMap;
|
|
30
29
|
export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
|
|
31
30
|
/**
|
|
32
31
|
* This will get the map from the map draftstate.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ServiceState } from './types';
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
|
|
3
|
+
import { onUpdateLayerInformation } from '../layers';
|
|
3
4
|
export declare const initialState: ServiceState;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<ServiceState, import("@reduxjs/toolkit").AnyAction>;
|
|
6
|
+
export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
serviceSetLayers: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
|
|
8
|
+
mapStoreRemoveService: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
|
|
9
|
+
}>;
|
|
10
|
+
export declare type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof onUpdateLayerInformation>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
|
-
import { Action } from 'redux';
|
|
3
|
-
import type { UpdateLayerInfo } from '../types';
|
|
4
|
-
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
|
|
5
2
|
export interface Services {
|
|
6
3
|
[key: string]: ReduxService;
|
|
7
4
|
}
|
|
@@ -34,16 +31,7 @@ export interface SetLayersForServicePayload {
|
|
|
34
31
|
layers: ServiceLayer[];
|
|
35
32
|
isUserAddedService: boolean;
|
|
36
33
|
}
|
|
37
|
-
export interface SetLayersForService extends Action {
|
|
38
|
-
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
39
|
-
payload: SetLayersForServicePayload;
|
|
40
|
-
}
|
|
41
34
|
export interface MapStoreRemoveServicePayload {
|
|
42
35
|
id: string;
|
|
43
36
|
serviceUrl: string;
|
|
44
37
|
}
|
|
45
|
-
export interface MapStoreRemoveService extends Action {
|
|
46
|
-
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
47
|
-
payload: MapStoreRemoveServicePayload;
|
|
48
|
-
}
|
|
49
|
-
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UIStoreType, UIToggleDialogPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
2
3
|
interface CreateUIDialogElementProps {
|
|
3
4
|
activeMapId: string;
|
|
4
5
|
type: DialogType;
|
|
@@ -8,5 +9,21 @@ interface CreateUIDialogElementProps {
|
|
|
8
9
|
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
9
10
|
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, }: CreateUIDialogElementProps) => UIType;
|
|
10
11
|
export declare const initialState: UIStoreType;
|
|
11
|
-
export declare const
|
|
12
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
13
|
+
registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
14
|
+
unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
15
|
+
setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
16
|
+
setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
17
|
+
orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
18
|
+
setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
19
|
+
}, "uiReducer">;
|
|
20
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<UIStoreType, import("@reduxjs/toolkit").AnyAction>;
|
|
21
|
+
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
22
|
+
registerDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
23
|
+
unregisterDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
24
|
+
setActiveMapIdForDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
25
|
+
setToggleOpenDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
26
|
+
orderDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
27
|
+
setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
28
|
+
}>;
|
|
12
29
|
export {};
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Action } from 'redux';
|
|
2
|
-
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG, UI_SET_ACTIVE_WINDOW_ID } from './constants';
|
|
3
1
|
declare type LegendDialogType = string;
|
|
4
2
|
export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
|
|
5
3
|
export declare type Source = 'app' | 'module';
|
|
@@ -23,48 +21,23 @@ export interface SetActiveMapIdForDialogPayload {
|
|
|
23
21
|
setOpen?: boolean;
|
|
24
22
|
source?: Source;
|
|
25
23
|
}
|
|
26
|
-
export interface SetActiveMapIdForDialog extends Action {
|
|
27
|
-
type: typeof UI_SET_ACTIVE_MAPID_FOR_DIALOG;
|
|
28
|
-
payload: SetActiveMapIdForDialogPayload;
|
|
29
|
-
}
|
|
30
24
|
export interface UIRegisterDialogPayload {
|
|
31
25
|
type: DialogType;
|
|
32
26
|
activeMapId?: string;
|
|
33
27
|
setOpen?: boolean;
|
|
34
28
|
source?: Source;
|
|
35
29
|
}
|
|
36
|
-
export interface UIRegisterDialog extends Action {
|
|
37
|
-
type: typeof UI_REGISTER_DIALOG;
|
|
38
|
-
payload: UIRegisterDialogPayload;
|
|
39
|
-
}
|
|
40
30
|
export interface UIUnRegisterDialogPayload {
|
|
41
31
|
type: DialogType;
|
|
42
32
|
}
|
|
43
|
-
export interface UIUnRegisterDialog extends Action {
|
|
44
|
-
type: typeof UI_UNREGISTER_DIALOG;
|
|
45
|
-
payload: UIUnRegisterDialogPayload;
|
|
46
|
-
}
|
|
47
33
|
export interface UIToggleDialogPayload {
|
|
48
34
|
type: DialogType;
|
|
49
35
|
setOpen: boolean;
|
|
50
36
|
}
|
|
51
|
-
export interface UIToggleDialog extends Action {
|
|
52
|
-
type: typeof UI_TOGGLE_DIALOG;
|
|
53
|
-
payload: UIToggleDialogPayload;
|
|
54
|
-
}
|
|
55
37
|
export interface UIOrderDialogPayload {
|
|
56
38
|
type: DialogType;
|
|
57
39
|
}
|
|
58
|
-
export interface UIOrderDialog extends Action {
|
|
59
|
-
type: typeof UI_ORDER_DIALOG;
|
|
60
|
-
payload: UIOrderDialogPayload;
|
|
61
|
-
}
|
|
62
40
|
export interface SetActiveWindowIdPayload {
|
|
63
41
|
activeWindowId: string;
|
|
64
42
|
}
|
|
65
|
-
export interface SetActiveWindowId extends Action {
|
|
66
|
-
type: typeof UI_SET_ACTIVE_WINDOW_ID;
|
|
67
|
-
payload: SetActiveWindowIdPayload;
|
|
68
|
-
}
|
|
69
|
-
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
|
|
70
43
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Layer, Bbox,
|
|
1
|
+
import { Layer, Bbox, DeleteLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerStylePayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../store/mapStore/types';
|
|
2
|
+
import { LayerActions } from '../store/mapStore/layers/reducer';
|
|
2
3
|
export declare const initialBbox: {
|
|
3
4
|
srs: string;
|
|
4
5
|
bbox: {
|
|
File without changes
|
|
@@ -23,6 +23,7 @@ export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
|
23
23
|
export declare const filterLayers: (layers?: Layer[]) => {
|
|
24
24
|
mapLayers: Layer[];
|
|
25
25
|
baseLayers: Layer[];
|
|
26
|
+
overLayers: Layer[];
|
|
26
27
|
};
|
|
27
28
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
28
29
|
export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,34 +13,33 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.10.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"moment": "^2.29.0",
|
|
21
21
|
"react-redux": "7.2.2",
|
|
22
|
+
"@opengeoweb/icons": "2.10.0",
|
|
22
23
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/shared": "2.
|
|
24
|
+
"@opengeoweb/shared": "2.10.0",
|
|
24
25
|
"react-draggable": "^4.4.3",
|
|
25
26
|
"re-resizable": "^6.9.0",
|
|
26
27
|
"lodash": "^4.17.20",
|
|
27
|
-
"@opengeoweb/form-fields": "2.
|
|
28
|
+
"@opengeoweb/form-fields": "2.10.0",
|
|
28
29
|
"react-hook-form": "^6.12.1",
|
|
29
30
|
"moment-timezone": "^0.5.31",
|
|
30
31
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
31
32
|
"axios": "^0.25.0",
|
|
32
|
-
"@opengeoweb/webmap": "2.
|
|
33
|
+
"@opengeoweb/webmap": "2.10.0",
|
|
33
34
|
"throttle-debounce": "^3.0.1",
|
|
34
35
|
"proj4": "^2.6.2",
|
|
35
36
|
"react-sortablejs": "^6.0.0",
|
|
36
37
|
"immer": "^9.0.15",
|
|
37
38
|
"redux-dynamic-modules": "^5.2.0",
|
|
38
|
-
"
|
|
39
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
39
40
|
"lodash.clonedeep": "^4.5.0",
|
|
40
41
|
"@turf/turf": "^5.1.6",
|
|
41
|
-
"reselect": "^4.1.5",
|
|
42
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
44
43
|
"redux-saga": "^1.1.3"
|
|
45
44
|
}
|
|
46
45
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface ResetButtonProps {
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
textAnnotation?: string;
|
|
5
|
-
onToggleReset?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const defaultTextAnnotation = "RESET";
|
|
8
|
-
declare const ResetButton: React.FC<ResetButtonProps>;
|
|
9
|
-
export default ResetButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mapActions } from '../../../..';
|
|
3
|
-
import { Dimension } from '../../../../store/mapStore/types';
|
|
4
|
-
export declare const defaultAnimationDuration = 6;
|
|
5
|
-
export interface ResetButtonConnectProps {
|
|
6
|
-
mapId: string;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
textAnnotation?: string;
|
|
9
|
-
dimensions?: Dimension[];
|
|
10
|
-
mapStopAnimation?: typeof mapActions.mapStopAnimation;
|
|
11
|
-
setAnimationStartTime?: typeof mapActions.setAnimationStartTime;
|
|
12
|
-
setAnimationEndTime?: typeof mapActions.setAnimationEndTime;
|
|
13
|
-
}
|
|
14
|
-
declare const ResetButtonConnect: React.FC<ResetButtonConnectProps>;
|
|
15
|
-
export default ResetButtonConnect;
|
package/lib/components/TimeSlider/TimeSliderButtons/ResetButton/ResetButtonConnect.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { LayerSelectActions, SetSearchFilterPayload, DisableActiveServicePayload, EnableActiveServicePayload, AddKeywordsAndActiveServicesPayload, LayerSelectServiceRemovedPayload, ToggleKeywordsPayload, EnableOnlyOneKeywordPayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Sets the given text to the searchFilter
|
|
4
|
-
*
|
|
5
|
-
* Example: setSearchFilter({ filterText: 'hello world' })
|
|
6
|
-
* @param {string} payload { filterText: string }
|
|
7
|
-
*/
|
|
8
|
-
export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
|
|
9
|
-
/**
|
|
10
|
-
* Activates given service in the activeServices array
|
|
11
|
-
*
|
|
12
|
-
* Example: enableActiveService({ serviceId: 'service-1' })
|
|
13
|
-
* @param {string} payload { serviceId: string }
|
|
14
|
-
*/
|
|
15
|
-
export declare const enableActiveService: (payload: EnableActiveServicePayload) => LayerSelectActions;
|
|
16
|
-
/**
|
|
17
|
-
* Disables given service in the activeServices array
|
|
18
|
-
*
|
|
19
|
-
* Example: disableActiveService({ serviceId: 'service-1' })
|
|
20
|
-
* @param {string} payload { serviceId: string }
|
|
21
|
-
*/
|
|
22
|
-
export declare const disableActiveService: (payload: DisableActiveServicePayload) => LayerSelectActions;
|
|
23
|
-
export declare const addKeywordsAndActiveServices: (payload: AddKeywordsAndActiveServicesPayload) => LayerSelectActions;
|
|
24
|
-
export declare const layerSelectServiceRemoved: (payload: LayerSelectServiceRemovedPayload) => LayerSelectActions;
|
|
25
|
-
export declare const toggleKeywords: (payload: ToggleKeywordsPayload) => LayerSelectActions;
|
|
26
|
-
export declare const enableOnlyOneKeyword: (payload: EnableOnlyOneKeywordPayload) => LayerSelectActions;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const LAYER_SELECT_SET_SEARCH_FILTER = "LAYER_SELECT_SET_SEARCH_FILTER";
|
|
2
|
-
export declare const LAYER_SELECT_DISABLE_ACTIVE_SERVICE = "LAYER_SELECT_DISABLE_ACTIVE_SERVICE";
|
|
3
|
-
export declare const LAYER_SELECT_ENABLE_ACTIVE_SERVICE = "LAYER_SELECT_ENABLE_ACTIVE_SERVICE";
|
|
4
|
-
export declare const LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES = "LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES";
|
|
5
|
-
export declare const LAYER_SELECT_SERVICE_REMOVED = "LAYER_SELECT_SERVICE_REMOVED";
|
|
6
|
-
export declare const LAYER_SELECT_TOGGLE_KEYWORDS = "LAYER_SELECT_TOGGLE_KEYWORDS";
|
|
7
|
-
export declare const LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD = "LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD";
|