@opengeoweb/store 9.11.0 → 9.12.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 +5263 -4538
- package/package.json +1 -1
- package/src/store/generic/loadingIndicator/constants.d.ts +1 -0
- package/src/store/generic/loadingIndicator/index.d.ts +1 -0
- package/src/store/generic/loadingIndicator/reducer.d.ts +3 -1
- package/src/store/generic/loadingIndicator/selectors.d.ts +6 -1
- package/src/store/generic/loadingIndicator/types.d.ts +5 -0
- package/src/store/mapStore/index.d.ts +0 -1
- package/src/store/mapStore/layers/types.d.ts +1 -1
- package/src/store/mapStore/map/reducer.d.ts +1 -3
- package/src/store/mapStore/map/selectors.d.ts +0 -14
- package/src/store/mapStore/map/types.d.ts +0 -5
- package/src/store/ui/selectors.d.ts +17 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ANY_EDR_SERVICE = "any_edr";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { PayloadAction, EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import { LoadingIndicatorType, SetIsGetCapabilitiesLoadingPayload, SetIsGetMapLoadingPayload } from './types';
|
|
2
|
+
import { LoadingIndicatorType, SetIsEDRLoadingPayload, SetIsGetCapabilitiesLoadingPayload, SetIsGetMapLoadingPayload } from './types';
|
|
3
3
|
export declare const loadingIndicatorAdapter: import("@reduxjs/toolkit").EntityAdapter<LoadingIndicatorType>;
|
|
4
4
|
export declare const slice: import("@reduxjs/toolkit").Slice<EntityState<LoadingIndicatorType>, {
|
|
5
5
|
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
6
6
|
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
7
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
7
8
|
}, "loadingIndicatorReducer">;
|
|
8
9
|
export declare const loadingIndicatorActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
10
|
setGetMapIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetMapLoadingPayload>) => void;
|
|
10
11
|
setGetCapabilitiesIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsGetCapabilitiesLoadingPayload>) => void;
|
|
12
|
+
setEDRIsLoading: (draft: EntityState<LoadingIndicatorType>, action: PayloadAction<SetIsEDRLoadingPayload>) => void;
|
|
11
13
|
}, "loadingIndicatorReducer">, loadingIndicatorReducer: import("redux").Reducer<EntityState<LoadingIndicatorType>, import("redux").AnyAction>;
|
|
@@ -10,7 +10,12 @@ export declare const isGetCapabilitiesLoading: ((state: LoadingIndicatorModuleSt
|
|
|
10
10
|
}> & {
|
|
11
11
|
clearCache: () => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const isEDRLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: LoadingIndicatorType | undefined) => boolean, {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
}> & {
|
|
16
|
+
clearCache: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const isLoading: ((state: LoadingIndicatorModuleState, id: import("@reduxjs/toolkit").EntityId) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean, args_1: boolean, args_2: boolean, args_3: boolean) => boolean, {
|
|
14
19
|
clearCache: () => void;
|
|
15
20
|
}> & {
|
|
16
21
|
clearCache: () => void;
|
|
@@ -3,6 +3,7 @@ export interface LoadingIndicatorType {
|
|
|
3
3
|
id: string;
|
|
4
4
|
isGetMapLoading: boolean;
|
|
5
5
|
isGetCapabilitiesLoading: boolean;
|
|
6
|
+
isEDRLoading: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface LoadingIndicatorModuleState {
|
|
8
9
|
loadingIndicatorStore?: EntityState<LoadingIndicatorType>;
|
|
@@ -15,3 +16,7 @@ export interface SetIsGetCapabilitiesLoadingPayload {
|
|
|
15
16
|
id: string;
|
|
16
17
|
isGetCapabilitiesLoading: boolean;
|
|
17
18
|
}
|
|
19
|
+
export interface SetIsEDRLoadingPayload {
|
|
20
|
+
id: string;
|
|
21
|
+
isEDRLoading: boolean;
|
|
22
|
+
}
|
|
@@ -32,7 +32,6 @@ export declare const mapStoreActions: {
|
|
|
32
32
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
33
33
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
34
34
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
35
|
-
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderUnfilteredSelectedTimePayload, "mapReducer/setTimeSliderUnfilteredSelectedTime">;
|
|
36
35
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
37
36
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
38
37
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
@@ -88,7 +88,7 @@ export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
|
88
88
|
}
|
|
89
89
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
90
90
|
mapId: string;
|
|
91
|
-
layerIndex
|
|
91
|
+
layerIndex?: number;
|
|
92
92
|
origin?: LayerActionOrigin | SyncGroupActionOrigin.delete;
|
|
93
93
|
}
|
|
94
94
|
export interface AddLayerPayload {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { MapPinLocationPayload, SetBboxPayload, SetStepBackWardOrForward, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
3
|
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
|
|
4
|
-
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload
|
|
4
|
+
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Checks if the layer id is already taken in one of the maps.
|
|
7
7
|
* @param state The WebMapState
|
|
@@ -39,7 +39,6 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
39
39
|
}>) => void;
|
|
40
40
|
setTimeSliderWidth: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderWidthPayload>) => void;
|
|
41
41
|
setTimeSliderCenterTime: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
42
|
-
setTimeSliderUnfilteredSelectedTime: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderUnfilteredSelectedTimePayload>) => void;
|
|
43
42
|
setTimeSliderSecondsPerPx: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
44
43
|
toggleAutoUpdate: (draft: Draft<WebMapState>, action: PayloadAction<ToggleAutoUpdatePayload>) => void;
|
|
45
44
|
setEndTimeOverriding: (draft: Draft<WebMapState>, action: PayloadAction<SetEndTimeOverriding>) => void;
|
|
@@ -88,7 +87,6 @@ export declare const mapActions: {
|
|
|
88
87
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
89
88
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
90
89
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
91
|
-
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderUnfilteredSelectedTimePayload, "mapReducer/setTimeSliderUnfilteredSelectedTime">;
|
|
92
90
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
93
91
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
94
92
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
@@ -414,20 +414,6 @@ export declare const getMapTimeSliderCenterTime: ((state: any, mapId: any) => nu
|
|
|
414
414
|
}> & {
|
|
415
415
|
clearCache: () => void;
|
|
416
416
|
};
|
|
417
|
-
/**
|
|
418
|
-
* Returns the unfiltered selected time of time slider
|
|
419
|
-
* This is not used to set the selected time itself, which is controlled by TimeBounds where values are rounded.
|
|
420
|
-
*
|
|
421
|
-
* Example: selectedTime = getTimeSliderUnfliteredSelectedTime(store, 'mapid_1')
|
|
422
|
-
* @param {object} store store: object - store object
|
|
423
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
424
|
-
* @returns {number} returnType: number - unfiltered selected time as a unix timestamp
|
|
425
|
-
*/
|
|
426
|
-
export declare const getTimeSliderUnfilteredSelectedTime: ((state: any, mapId: any) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined, args_1: number) => number | undefined, {
|
|
427
|
-
clearCache: () => void;
|
|
428
|
-
}> & {
|
|
429
|
-
clearCache: () => void;
|
|
430
|
-
};
|
|
431
417
|
/**
|
|
432
418
|
* Returns the number of seconds per pixel on the time slider
|
|
433
419
|
*
|
|
@@ -40,7 +40,6 @@ export interface WebMap {
|
|
|
40
40
|
animationDelay?: number;
|
|
41
41
|
timeSliderWidth?: number;
|
|
42
42
|
timeSliderCenterTime?: number;
|
|
43
|
-
timeSliderUnfilteredSelectedTime?: number;
|
|
44
43
|
timeSliderSecondsPerPx?: number;
|
|
45
44
|
isTimestepAuto?: boolean;
|
|
46
45
|
isTimeSpanAuto?: boolean;
|
|
@@ -197,10 +196,6 @@ export interface SetTimeSliderCenterTimePayload {
|
|
|
197
196
|
mapId: string;
|
|
198
197
|
timeSliderCenterTime: number;
|
|
199
198
|
}
|
|
200
|
-
export interface SetTimeSliderUnfilteredSelectedTimePayload {
|
|
201
|
-
mapId: string;
|
|
202
|
-
timeSliderUnfilteredSelectedTime: number;
|
|
203
|
-
}
|
|
204
199
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
205
200
|
mapId: string;
|
|
206
201
|
timeSliderSecondsPerPx: number;
|
|
@@ -70,7 +70,23 @@ export declare const getDialogSource: ((state: CoreAppStore, dialogType: string)
|
|
|
70
70
|
* @param {object} store store object from which the window state will be extracted
|
|
71
71
|
* @returns {string} active window id
|
|
72
72
|
*/
|
|
73
|
-
export declare const getActiveWindowId: (
|
|
73
|
+
export declare const getActiveWindowId: ((state: CoreAppStore) => string) & import("reselect").OutputSelectorFields<(args_0: UIStoreType) => string, {
|
|
74
|
+
clearCache: () => void;
|
|
75
|
+
}> & {
|
|
76
|
+
clearCache: () => void;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Gets if this is the active window
|
|
80
|
+
*
|
|
81
|
+
* Example: getIsActiveWindowId(store, viewId)
|
|
82
|
+
* @param {object} store store object from which the window state will be extracted
|
|
83
|
+
* @returns {string} active window id
|
|
84
|
+
*/
|
|
85
|
+
export declare const getIsActiveWindowId: ((state: CoreAppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIStoreType, args_1: string) => boolean, {
|
|
86
|
+
clearCache: () => void;
|
|
87
|
+
}> & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
};
|
|
74
90
|
export declare const getDialogIsLoading: ((state: CoreAppStore, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
75
91
|
clearCache: () => void;
|
|
76
92
|
}> & {
|