@opengeoweb/store 9.26.0 → 9.27.1
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 +512 -342
- package/package.json +1 -3
- package/src/store/generic/synchronizationActions/actions.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/types.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/utils.d.ts +3 -3
- package/src/store/index.d.ts +1 -1
- package/src/store/mapStore/map/index.d.ts +2 -0
- package/src/store/mapStore/map/selectors.d.ts +1 -1
- package/src/store/mapStore/map/types.d.ts +5 -0
- package/src/store/mapStore/map/utils.d.ts +14 -1
- package/src/store/mapStore/service/listener.d.ts +5 -0
- package/src/store/mapStore/service/reducer.d.ts +1 -1
- package/src/store/generic/sagas.d.ts +0 -11
- package/src/store/mapStore/map/sagas.d.ts +0 -6
- package/src/store/mapStore/map/sagas.spec.d.ts +0 -1
- package/src/store/mapStore/service/sagas.d.ts +0 -7
- package/src/store/mapStore/service/sagas.spec.d.ts +0 -1
- /package/src/store/{generic/sagas.spec.d.ts → mapStore/service/listener.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.27.1",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
"@reduxjs/toolkit": "^1.9.7",
|
|
14
14
|
"@redux-eggs/core": "^2.2.0",
|
|
15
15
|
"@opengeoweb/webmap-react": "*",
|
|
16
|
-
"redux-saga": "^1.2.3",
|
|
17
16
|
"@opengeoweb/webmap": "*",
|
|
18
17
|
"immer": "^10.0.3",
|
|
19
18
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
20
|
-
"@redux-eggs/saga-extension": "^2.2.0",
|
|
21
19
|
"lodash": "^4.17.21",
|
|
22
20
|
"@opengeoweb/metronome": "*",
|
|
23
21
|
"@opengeoweb/timeslider": "*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SetBboxPayload, SetTimePayload, SyncLayerPayloads } from '../types';
|
|
2
2
|
import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncPayload, SetTimeSyncActionPayload, SetTimeSyncPayload } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* These actions are fired by the generic/
|
|
4
|
+
* These actions are fired by the generic/listener.ts, based on generic actions and the synchronizationGroup state.
|
|
5
5
|
*
|
|
6
6
|
* These actions should not be used by components directly. Components should only use the generic actions.
|
|
7
7
|
*/
|
|
@@ -95,6 +95,6 @@ export declare enum SyncGroupActionOrigin {
|
|
|
95
95
|
layerActions = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS",
|
|
96
96
|
move = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION",
|
|
97
97
|
add = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION",
|
|
98
|
-
|
|
98
|
+
autoLayerId = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_AUTOLAYERIDACTION"
|
|
99
99
|
}
|
|
100
100
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreAppStore } from '../../types';
|
|
2
|
-
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
3
3
|
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
4
4
|
import { SyncType } from './types';
|
|
5
5
|
interface FoundTargets {
|
|
@@ -58,13 +58,13 @@ export declare const getLayerDeleteActionsTargets: (state: CoreAppStore, payload
|
|
|
58
58
|
*/
|
|
59
59
|
export declare const getLayerMoveActionsTargets: (state: CoreAppStore, payload: MoveLayerPayload, actionType: SyncType) => MoveLayerPayload[];
|
|
60
60
|
/**
|
|
61
|
-
* These targets are found for the
|
|
61
|
+
* These targets are found for the map action SetAutoLayerId. It needs both a target mapId and layerId
|
|
62
62
|
* @param state
|
|
63
63
|
* @param payload
|
|
64
64
|
* @param actionType
|
|
65
65
|
* @returns
|
|
66
66
|
*/
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const getSetAutoLayerIdActionsTargets: (state: CoreAppStore, payload: SetAutoLayerIdPayload, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
|
|
68
68
|
/**
|
|
69
69
|
* These targets are found for baselayer actions that work with a mapId like: setBaseLayers
|
|
70
70
|
* @param state
|
package/src/store/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './mapStore';
|
|
|
2
2
|
export * from './ui';
|
|
3
3
|
export * from './generic';
|
|
4
4
|
export { genericListener } from './generic/listener';
|
|
5
|
+
export { mapListener } from './mapStore/map/listener';
|
|
5
6
|
export * from './router';
|
|
6
7
|
export * from './drawingtool';
|
|
7
8
|
export * from './types';
|
|
@@ -11,4 +12,3 @@ export * as storeUtils from './utils';
|
|
|
11
12
|
export * from './utils';
|
|
12
13
|
export { uiModuleConfig } from './ui/config';
|
|
13
14
|
export * from './testUtils/Providers';
|
|
14
|
-
export { rootSaga as mapSaga } from './mapStore/map/sagas';
|
|
@@ -13,6 +13,8 @@ export declare const mapUtils: {
|
|
|
13
13
|
getTimeStepFromDataInterval: (timeInterval: import("dist/libs/webmap/src").TimeInterval) => number;
|
|
14
14
|
getSpeedFactor: (speedDelay: number) => import("dist/libs/timeslider/src").SpeedFactorType;
|
|
15
15
|
getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
16
|
+
generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => mapTypes.WebMapAnimationList;
|
|
17
|
+
parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
|
|
16
18
|
};
|
|
17
19
|
export { mapTypes };
|
|
18
20
|
export { mapActions, reducer as webmapReducer } from './reducer';
|
|
@@ -710,7 +710,7 @@ export declare const getDockedLayerManagerSize: ((state: any, mapId: any) => imp
|
|
|
710
710
|
* @param {string} mapId mapId: string - Id of the map
|
|
711
711
|
* @returns {animationList} returnType: WebMapAnimationList, list of timesteps to animate for this map.
|
|
712
712
|
*/
|
|
713
|
-
export declare const getAnimationList: ((state: any, mapId: any) => WebMapAnimationList) & import("reselect").OutputSelectorFields<(args_0:
|
|
713
|
+
export declare const getAnimationList: ((state: any, mapId: any) => WebMapAnimationList) & import("reselect").OutputSelectorFields<(args_0: Record<string, ReduxLayer> | null, args_1: WebMap | undefined, args_2: string | undefined, args_3: string | undefined, args_4: number) => WebMapAnimationList, {
|
|
714
714
|
clearCache: () => void;
|
|
715
715
|
}> & {
|
|
716
716
|
clearCache: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import { SpeedFactorType } from '@opengeoweb/timeslider';
|
|
3
3
|
import { Bbox, Dimension } from './types';
|
|
4
|
-
import type { WebMapState, WebMap } from '../types';
|
|
4
|
+
import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
|
|
5
5
|
import type { Layer } from '../layers/types';
|
|
6
6
|
export declare const dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'";
|
|
7
7
|
export interface CreateMapProps {
|
|
@@ -70,3 +70,16 @@ export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIn
|
|
|
70
70
|
export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
|
|
71
71
|
export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
72
72
|
export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
73
|
+
/**
|
|
74
|
+
* @param animationStart
|
|
75
|
+
* @param animationEnd
|
|
76
|
+
* @param iso8601Intervals
|
|
77
|
+
* @returns WebMapAnimationList with time points
|
|
78
|
+
*/
|
|
79
|
+
export declare const generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => WebMapAnimationList;
|
|
80
|
+
/**
|
|
81
|
+
* Parses the time dimension values string to an array of ISO8601 intervals
|
|
82
|
+
* @param timeInterval
|
|
83
|
+
* @returns An array of ISO8601 intervals
|
|
84
|
+
*/
|
|
85
|
+
export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnyAction, ListenerEffectAPI, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
+
import { FetchInitialServicesPayload, SetLayersForServicePayload, WebMapStateModuleState } from '../types';
|
|
3
|
+
export declare const serviceListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, AnyAction>, unknown>;
|
|
4
|
+
export declare const fetchService: (service: SetLayersForServicePayload, listenerApi: ListenerEffectAPI<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, AnyAction>, unknown>) => Promise<void>;
|
|
5
|
+
export declare const fetchInitialServices: (payload: FetchInitialServicesPayload, listenerApi: ListenerEffectAPI<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, AnyAction>, unknown>) => Promise<void>;
|
|
@@ -8,4 +8,4 @@ export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActio
|
|
|
8
8
|
mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
|
|
9
9
|
fetchInitialServices: (draft: Draft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
|
|
10
10
|
}, "serviceReducer">;
|
|
11
|
-
export type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
|
|
11
|
+
export type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof serviceActions.fetchInitialServices> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { mapActions } from '../mapStore';
|
|
3
|
-
import { layerActions } from '../mapStore/layers/reducer';
|
|
4
|
-
export declare function addLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.addLayer>): SagaIterator;
|
|
5
|
-
export declare function duplicateMapLayerActionsSaga({ payload, }: ReturnType<typeof layerActions.duplicateMapLayer>): SagaIterator;
|
|
6
|
-
export declare function deleteLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
|
7
|
-
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof mapActions.layerMoveLayer>): SagaIterator;
|
|
8
|
-
export declare function setAutoLayerIdActionsSaga({ payload, type, }: ReturnType<typeof mapActions.setAutoLayerId>): SagaIterator;
|
|
9
|
-
export declare function mapBaseLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.setBaseLayers>): SagaIterator;
|
|
10
|
-
export declare function rootSaga(): SagaIterator;
|
|
11
|
-
export default rootSaga;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { mapActions } from '.';
|
|
3
|
-
export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
|
|
4
|
-
export declare function setStepBackwardOrForwardSaga({ payload, }: ReturnType<typeof mapActions.setStepBackwardOrForward>): Generator;
|
|
5
|
-
export declare function rootSaga(): SagaIterator;
|
|
6
|
-
export default rootSaga;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { serviceActions } from './reducer';
|
|
3
|
-
import { SetLayersForServicePayload } from './types';
|
|
4
|
-
export declare function fetchServiceSaga(service: SetLayersForServicePayload): SagaIterator;
|
|
5
|
-
export declare function fetchInitialServicesSaga({ payload, }: ReturnType<typeof serviceActions.fetchInitialServices>): SagaIterator;
|
|
6
|
-
export declare function rootSaga(): SagaIterator;
|
|
7
|
-
export default rootSaga;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|