@opengeoweb/store 10.2.0 → 11.0.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 +1318 -1366
- package/package.json +3 -2
- package/src/store/drawingTool/index.d.ts +2 -3
- package/src/store/generic/hooks.d.ts +1 -1
- package/src/store/generic/index.d.ts +15 -15
- package/src/store/generic/listener.d.ts +1 -1
- package/src/store/generic/selectors.d.ts +2 -2
- package/src/store/generic/{synchronizationGroups → syncGroups}/index.d.ts +2 -1
- package/src/store/generic/{synchronizationGroups → syncGroups}/reducer.d.ts +2 -2
- package/src/store/generic/{synchronizationGroups → syncGroups}/types.d.ts +6 -7
- package/src/store/index.d.ts +1 -2
- package/src/store/map/index.d.ts +0 -1
- package/src/store/map/layer/index.d.ts +1 -1
- package/src/store/map/layer/reducer.d.ts +1 -2
- package/src/store/map/layer/types.d.ts +2 -2
- package/src/store/map/map/index.d.ts +1 -1
- package/src/store/map/map/reducer.d.ts +1 -1
- package/src/store/map/service/index.d.ts +1 -1
- package/src/store/map/service/reducer.d.ts +1 -2
- package/src/store/map/service/types.d.ts +4 -4
- package/src/store/router/index.d.ts +1 -2
- package/src/store/router/reducer.d.ts +1 -2
- package/src/store/store.d.ts +18 -0
- package/src/store/types.d.ts +1 -1
- package/src/store/ui/index.d.ts +2 -1
- package/src/store/ui/reducer.d.ts +1 -2
- package/src/store/coreModuleConfig.d.ts +0 -9
- package/src/store/drawingTool/config.d.ts +0 -7
- package/src/store/generic/config.d.ts +0 -9
- package/src/store/map/config.d.ts +0 -8
- package/src/store/router/config.d.ts +0 -7
- package/src/store/ui/config.d.ts +0 -5
- package/src/store/utils/testUtils.d.ts +0 -3
- /package/src/store/generic/{synchronizationGroups → syncGroups}/__mocks__/mockState.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/constants.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/listener.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/listener.spec.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/reducer.spec.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/selector.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/selectors.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/selectors.spec.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/utils.d.ts +0 -0
- /package/src/store/generic/{synchronizationGroups → syncGroups}/utils.spec.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
18
|
"@opengeoweb/metronome": "*",
|
|
19
19
|
"@opengeoweb/timeslider": "*",
|
|
20
|
-
"react-router-dom": "^6.23.1"
|
|
20
|
+
"react-router-dom": "^6.23.1",
|
|
21
|
+
"@turf/turf": "^7.2.0"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"react": "18"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './
|
|
1
|
+
export { drawingToolActions, drawingToolReducer } from './reducer';
|
|
2
|
+
export * as drawingToolSelectors from './selectors';
|
|
3
3
|
export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
|
|
4
4
|
export * from './utils';
|
|
5
|
-
export { drawingToolActions, drawingToolReducer } from './reducer';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PotentialData } from './
|
|
1
|
+
import { PotentialData } from './syncGroups/types';
|
|
2
2
|
export declare const useUpdateSharedData: (data: PotentialData, panelId?: string) => PotentialData;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export declare const genericActions: {
|
|
2
|
-
initialSyncState: import("./
|
|
2
|
+
initialSyncState: import("./syncGroups/types").SynchronizationGroupState;
|
|
3
3
|
setTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimePayload, string>;
|
|
4
4
|
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBboxPayload, string>;
|
|
5
|
-
setLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
6
|
-
updateLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
7
|
-
addSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
8
|
-
deleteSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
9
|
-
syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
10
|
-
syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
11
|
-
syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
12
|
-
syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
13
|
-
syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
14
|
-
syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
15
|
-
syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
5
|
+
setLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SetLinkedMap, "synchronizationGroupsReducer/setLinkedMap">;
|
|
6
|
+
updateLinkedMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").UpdateLinkedMap, "synchronizationGroupsReducer/updateLinkedMap">;
|
|
7
|
+
addSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").AddSharedData, "synchronizationGroupsReducer/addSharedData">;
|
|
8
|
+
deleteSharedData: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").DeleteSharedData, "synchronizationGroupsReducer/deleteSharedData">;
|
|
9
|
+
syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">;
|
|
10
|
+
syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">;
|
|
11
|
+
syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">;
|
|
12
|
+
syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">;
|
|
13
|
+
syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">;
|
|
14
|
+
syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">;
|
|
15
|
+
syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">;
|
|
16
16
|
syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"synchronizationGroupsReducer/syncGroupClear">;
|
|
17
|
-
syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
18
|
-
syncGroupToggleIsTimeScrollingEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./
|
|
17
|
+
syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
|
|
18
|
+
syncGroupToggleIsTimeScrollingEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./syncGroups/types").SyncGroupToggleIsTimeScrollingEnabled, "synchronizationGroupsReducer/syncGroupToggleIsTimeScrollingEnabled">;
|
|
19
19
|
};
|
|
20
20
|
export * as genericSelectors from './selectors';
|
|
21
21
|
export * from './hooks';
|
|
22
|
-
export * from './
|
|
22
|
+
export * from './syncGroups';
|
|
23
23
|
export * as genericTypes from './types';
|
|
24
24
|
export * from './loadingIndicator';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SynchronizationGroupModuleState } from './
|
|
1
|
+
import { SynchronizationGroupModuleState } from './syncGroups/types';
|
|
2
2
|
export declare const genericListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<SynchronizationGroupModuleState, import("@reduxjs/toolkit").ThunkDispatch<SynchronizationGroupModuleState, unknown, import("redux").AnyAction>, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CoreAppStore } from '../types';
|
|
2
|
-
import type { LinkedState, SynchronizationGroupState, SynchronizationSource } from './
|
|
2
|
+
import type { LinkedState, SynchronizationGroupState, SynchronizationSource } from './syncGroups/types';
|
|
3
3
|
export declare const getSynchronizationGroupStore: ((state: CoreAppStore) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
|
|
4
4
|
clearCache: () => void;
|
|
5
5
|
}> & {
|
|
@@ -16,7 +16,7 @@ export declare const getLinkedMaps: ((state: any, panelId: string) => string[])
|
|
|
16
16
|
clearCache: () => void;
|
|
17
17
|
};
|
|
18
18
|
export declare const getLinkedFeatureProviders: (linkedState: LinkedState, mapId: string) => string[];
|
|
19
|
-
export declare const selectSharedData: ((state: any, panelId: string) => import("./
|
|
19
|
+
export declare const selectSharedData: ((state: any, panelId: string) => import("./syncGroups/types").PotentialData) & import("reselect").OutputSelectorFields<(args_0: LinkedState, args_1: string) => import("./syncGroups/types").PotentialData, {
|
|
20
20
|
clearCache: () => void;
|
|
21
21
|
}> & {
|
|
22
22
|
clearCache: () => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { syncGroupsListener } from './listener';
|
|
2
2
|
export { syncGroupsListener };
|
|
3
|
-
export {
|
|
3
|
+
export { syncGroupsActions, initialState, syncGroupsReducer } from './reducer';
|
|
4
4
|
export * as syncConstants from './constants';
|
|
5
5
|
export * as types from './types';
|
|
6
|
+
export type { SynchronizationGroupModuleState } from './types';
|
|
6
7
|
export * as syncGroupsSelectors from './selectors';
|
|
7
8
|
export * as syncGroupsTypes from './types';
|
|
8
9
|
export * as syncGroupsSelector from './selector';
|
|
@@ -29,7 +29,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<SynchronizationGrou
|
|
|
29
29
|
syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
|
|
30
30
|
}, "synchronizationGroupsReducer">;
|
|
31
31
|
export declare const syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddGroupPayload, "synchronizationGroupsReducer/syncGroupAddGroup">, syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource">, syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupAddTargetPayload, "synchronizationGroupsReducer/syncGroupAddTarget">, syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"synchronizationGroupsReducer/syncGroupClear">, syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupLinkTargetPayload, "synchronizationGroupsReducer/syncGroupLinkTarget">, syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveGroupPayload, "synchronizationGroupsReducer/syncGroupRemoveGroup">, syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource">, syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupRemoveTargetPayload, "synchronizationGroupsReducer/syncGroupRemoveTarget">, syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithPayload<SyncGroupSetViewStatePayload, "synchronizationGroupsReducer/syncGroupSetViewState">;
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const syncGroupsReducer: import("redux").Reducer<SynchronizationGroupState>, syncGroupsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
33
33
|
/** Sets the links map.
|
|
34
34
|
* This is used to override the links when changing workspaces.
|
|
35
35
|
* @param draft sync state
|
|
@@ -55,4 +55,4 @@ export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
55
55
|
syncGroupClear: () => SynchronizationGroupState;
|
|
56
56
|
syncGroupSetViewState: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
|
|
57
57
|
syncGroupToggleIsTimeScrollingEnabled: (draft: Draft<SynchronizationGroupState>, action: PayloadAction<SyncGroupToggleIsTimeScrollingEnabled>) => void;
|
|
58
|
-
}, "synchronizationGroupsReducer"
|
|
58
|
+
}, "synchronizationGroupsReducer">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { SystemScope } from '@opengeoweb/shared';
|
|
1
2
|
import { LoadingIndicatorModuleState } from '../loadingIndicator/types';
|
|
2
3
|
import type { GenericActionPayload } from '../types';
|
|
3
|
-
import { SYNCGROUPS_TYPE_SETBBOX,
|
|
4
|
+
import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETLAYERACTIONS, SYNCGROUPS_TYPE_SETTIME } from './constants';
|
|
4
5
|
export interface Group {
|
|
5
6
|
id: string;
|
|
6
7
|
selected: string[];
|
|
@@ -47,7 +48,6 @@ export interface LinkedState {
|
|
|
47
48
|
links: Record<string, string[]>;
|
|
48
49
|
sharedData: Record<string, PotentialData>;
|
|
49
50
|
}
|
|
50
|
-
type Origin = 'user' | 'system';
|
|
51
51
|
export type SynchronizationSourcePayLoadByType = Record<string, GenericActionPayload>;
|
|
52
52
|
export interface SynchronizationSource {
|
|
53
53
|
types: SyncType[];
|
|
@@ -88,12 +88,12 @@ export interface SyncGroupTarget {
|
|
|
88
88
|
[key: string]: unknown;
|
|
89
89
|
}
|
|
90
90
|
export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
|
|
91
|
-
origin?:
|
|
91
|
+
origin?: SystemScope;
|
|
92
92
|
}
|
|
93
93
|
export interface SyncGroupRemoveTargetPayload {
|
|
94
94
|
groupId: string;
|
|
95
95
|
targetId: string;
|
|
96
|
-
origin?:
|
|
96
|
+
origin?: SystemScope;
|
|
97
97
|
}
|
|
98
98
|
export interface SyncGroupLinkTargetPayload extends SyncGroupTarget {
|
|
99
99
|
linked: boolean;
|
|
@@ -102,7 +102,7 @@ export interface SyncGroupAddGroupPayload {
|
|
|
102
102
|
groupId: string;
|
|
103
103
|
title: string;
|
|
104
104
|
type: SyncType;
|
|
105
|
-
origin?:
|
|
105
|
+
origin?: SystemScope;
|
|
106
106
|
}
|
|
107
107
|
export interface SyncGroupRemoveGroupPayload {
|
|
108
108
|
groupId: string;
|
|
@@ -112,7 +112,7 @@ export interface SyncGroupSetViewStatePayload {
|
|
|
112
112
|
}
|
|
113
113
|
export interface SyncGroupToggleIsTimeScrollingEnabled {
|
|
114
114
|
isTimeScrollingEnabled: boolean;
|
|
115
|
-
origin?:
|
|
115
|
+
origin?: SystemScope;
|
|
116
116
|
}
|
|
117
117
|
export declare const SyncGroupTypeList: string[];
|
|
118
118
|
export declare enum SyncGroupActionOrigin {
|
|
@@ -136,4 +136,3 @@ export interface AddSharedData {
|
|
|
136
136
|
export interface DeleteSharedData {
|
|
137
137
|
panelId: string;
|
|
138
138
|
}
|
|
139
|
-
export {};
|
package/src/store/index.d.ts
CHANGED
|
@@ -12,8 +12,7 @@ export * from './router';
|
|
|
12
12
|
export * from './drawingTool';
|
|
13
13
|
export * from './types';
|
|
14
14
|
export * as storeTestUtils from './map/storeTestUtils';
|
|
15
|
-
export * from './coreModuleConfig';
|
|
16
15
|
export * from './generic/linking';
|
|
17
16
|
export * as storeUtils from './utils';
|
|
18
17
|
export * from './utils';
|
|
19
|
-
export
|
|
18
|
+
export * from './store';
|
package/src/store/map/index.d.ts
CHANGED
|
@@ -43,8 +43,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
43
43
|
showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
|
|
44
44
|
hideLayerInfo: (draft: Draft<LayerState>) => void;
|
|
45
45
|
}, "layerReducer">;
|
|
46
|
-
export declare const
|
|
47
|
-
export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
46
|
+
export declare const layerReducer: import("redux").Reducer<LayerState>, layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
48
47
|
addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
|
|
49
48
|
duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
|
|
50
49
|
layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
|
|
@@ -3,7 +3,7 @@ import { FeatureCollection } from 'geojson';
|
|
|
3
3
|
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
4
|
import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
5
|
import type { Dimension } from '../map/types';
|
|
6
|
-
import type { SyncGroupActionOrigin } from '../../generic/
|
|
6
|
+
import type { SyncGroupActionOrigin } from '../../generic/syncGroups/types';
|
|
7
7
|
import { uiTypes } from '../../ui';
|
|
8
8
|
export declare enum LayerStatus {
|
|
9
9
|
default = "default",
|
|
@@ -129,7 +129,7 @@ export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPay
|
|
|
129
129
|
mapId: string;
|
|
130
130
|
}
|
|
131
131
|
export interface ErrorLayerPayload extends LayerPayload {
|
|
132
|
-
error:
|
|
132
|
+
error: string;
|
|
133
133
|
}
|
|
134
134
|
export interface UpdateLayerInfo extends Action {
|
|
135
135
|
type: `layerReducer/onUpdateLayerInformation`;
|
|
@@ -17,7 +17,7 @@ export declare const mapUtils: {
|
|
|
17
17
|
parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
|
|
18
18
|
};
|
|
19
19
|
export { mapTypes };
|
|
20
|
-
export { mapActions,
|
|
20
|
+
export { mapActions, mapReducer } from './reducer';
|
|
21
21
|
export * as mapSelectors from './selectors';
|
|
22
22
|
export * as mapEnums from './enums';
|
|
23
23
|
export * from './constants';
|
|
@@ -108,4 +108,4 @@ export declare const mapActions: {
|
|
|
108
108
|
}, "mapReducer/setMapPresetError">;
|
|
109
109
|
setDefaultMapSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDefaultMapSettingsPayload, "mapReducer/setDefaultMapSettings">;
|
|
110
110
|
};
|
|
111
|
-
export declare const
|
|
111
|
+
export declare const mapReducer: import("redux").Reducer<WebMapState>;
|
|
@@ -2,8 +2,7 @@ import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { FetchInitialServicesPayload, MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
|
|
3
3
|
import { layerActions } from '../layer/reducer';
|
|
4
4
|
export declare const initialState: ServiceState;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
|
+
export declare const serviceReducer: import("redux").Reducer<ServiceState>, serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
6
|
serviceSetLayers: (draft: Draft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
|
|
8
7
|
mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
|
|
9
8
|
fetchInitialServices: (draft: Draft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { SystemScope } from '@opengeoweb/shared';
|
|
1
2
|
import { LayerProps } from '@opengeoweb/webmap';
|
|
2
3
|
export interface InitialService {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
url: string;
|
|
6
|
-
scope?:
|
|
7
|
+
scope?: SystemScope;
|
|
7
8
|
abstract?: string;
|
|
8
9
|
}
|
|
9
10
|
export type NoIdService = Omit<InitialService, 'id'>;
|
|
10
11
|
export type UserAddedServices = Record<string, NoIdService>;
|
|
11
12
|
export type Services = Record<string, ReduxService>;
|
|
12
|
-
export type ServiceScope = 'user' | 'system';
|
|
13
13
|
export interface ReduxService {
|
|
14
14
|
id?: string;
|
|
15
15
|
name?: string;
|
|
16
16
|
serviceUrl?: string;
|
|
17
17
|
active?: boolean;
|
|
18
18
|
layers?: ServiceLayer[];
|
|
19
|
-
scope?:
|
|
19
|
+
scope?: SystemScope;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
Used in the services object of webmap to keep a list of available layers in the service
|
|
@@ -32,7 +32,7 @@ export interface SetLayersForServicePayload {
|
|
|
32
32
|
serviceUrl: string;
|
|
33
33
|
abstract?: string;
|
|
34
34
|
layers: ServiceLayer[];
|
|
35
|
-
scope:
|
|
35
|
+
scope: SystemScope;
|
|
36
36
|
isUpdating?: boolean;
|
|
37
37
|
}
|
|
38
38
|
export interface MapStoreRemoveServicePayload {
|
|
@@ -2,8 +2,7 @@ import { Draft } from 'immer';
|
|
|
2
2
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { NavigateToUrlPayload } from './types';
|
|
4
4
|
export declare const initialState: {};
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
|
+
export declare const routerReducer: import("redux").Reducer<{}>, routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
6
|
navigateToUrl: (draft: Draft<unknown>, action: PayloadAction<NavigateToUrlPayload>) => void;
|
|
8
7
|
}, "router">;
|
|
9
8
|
export type RouterActions = ReturnType<typeof routerActions.navigateToUrl>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
|
+
import { WebMapStateModuleState } from './map';
|
|
3
|
+
import { SynchronizationGroupModuleState } from './generic/syncGroups/types';
|
|
4
|
+
import { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
|
|
5
|
+
import { UIModuleState } from './ui/types';
|
|
6
|
+
import { DrawtoolModuleStore } from './drawingTool/reducer';
|
|
7
|
+
export declare const storeReducerMap: {
|
|
8
|
+
webmap: import("redux").Reducer<import("./map/types").WebMapState>;
|
|
9
|
+
services: import("redux").Reducer<import("./map/types").ServiceState>;
|
|
10
|
+
layers: import("redux").Reducer<import("./map/types").LayerState>;
|
|
11
|
+
syncGroups: import("redux").Reducer<import("./generic/syncGroups/types").SynchronizationGroupState>;
|
|
12
|
+
loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("./generic/loadingIndicator/types").LoadingIndicatorType>>;
|
|
13
|
+
ui: import("redux").Reducer<import("./ui/types").UIStoreType>;
|
|
14
|
+
drawingtools: import("redux").Reducer<import("./drawingTool/reducer").DrawingToolState>;
|
|
15
|
+
router: import("redux").Reducer<{}>;
|
|
16
|
+
};
|
|
17
|
+
export declare const storeMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<import("./types").CoreAppStore, unknown, import("redux").AnyAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<import("./router/types").RouterModuleStore, import("@reduxjs/toolkit").ThunkDispatch<import("./router/types").RouterModuleStore, unknown, import("redux").AnyAction>, unknown>)[];
|
|
18
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | LoadingIndicatorModuleState | UIModuleState | DrawtoolModuleStore) => ToolkitStore;
|
package/src/store/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WebMapStateModuleState } from './map/types';
|
|
2
|
-
import type { SynchronizationGroupModuleState } from './generic/
|
|
2
|
+
import type { SynchronizationGroupModuleState } from './generic/syncGroups/types';
|
|
3
3
|
import type { uiTypes } from '.';
|
|
4
4
|
import type { DrawtoolModuleStore } from './drawingTool';
|
|
5
5
|
import type { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
|
package/src/store/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { uiActions,
|
|
1
|
+
export { uiActions, uiReducer } from './reducer';
|
|
2
2
|
export * as uiSelectors from './selectors';
|
|
3
3
|
export * as uiTypes from './types';
|
|
4
4
|
export { useSetupDialog } from './useSetupDialog';
|
|
5
|
+
export type { UIModuleState } from './types';
|
|
@@ -20,8 +20,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
|
20
20
|
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
21
21
|
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
22
22
|
}, "uiReducer">;
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
23
|
+
export declare const uiReducer: import("redux").Reducer<UIStoreType>, uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
25
24
|
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
26
25
|
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
27
26
|
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const coreModuleConfig: ({
|
|
3
|
-
reducersMap: ReducersMapObject<Required<import("./map").WebMapStateModuleState>, import("redux").Action<any>>;
|
|
4
|
-
middlewares: ListenerMiddleware[];
|
|
5
|
-
} | {
|
|
6
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
-
})[];
|
|
8
|
-
export declare const coreModuleReducersMap: ReducersMapObject;
|
|
9
|
-
export declare const coreModuleMiddlewares: ListenerMiddleware[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const drawtoolReducersMap: ReducersMapObject;
|
|
3
|
-
export declare const drawtoolMiddlewares: ListenerMiddleware[];
|
|
4
|
-
export declare const drawtoolModuleConfig: {
|
|
5
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
6
|
-
middlewares: ListenerMiddleware[];
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const synchronizationGroupReducersMap: ReducersMapObject;
|
|
3
|
-
export declare const synchronizationGroupMiddlewares: ListenerMiddleware[];
|
|
4
|
-
declare const synchronizationGroupConfig: {
|
|
5
|
-
id: string;
|
|
6
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
-
middlewares: ListenerMiddleware[];
|
|
8
|
-
};
|
|
9
|
-
export default synchronizationGroupConfig;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
import { WebMapStateModuleState } from './types';
|
|
3
|
-
export declare const mapStoreReducers: ReducersMapObject<Required<WebMapStateModuleState>>;
|
|
4
|
-
export declare const mapStoreMiddlewares: ListenerMiddleware[];
|
|
5
|
-
export declare const mapStoreModuleConfig: {
|
|
6
|
-
reducersMap: ReducersMapObject<Required<WebMapStateModuleState>, import("redux").Action<any>>;
|
|
7
|
-
middlewares: ListenerMiddleware[];
|
|
8
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const routerReducersMap: ReducersMapObject;
|
|
3
|
-
export declare const routerMiddlewares: ListenerMiddleware[];
|
|
4
|
-
export declare const routerModuleConfig: {
|
|
5
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
6
|
-
middlewares: ListenerMiddleware[];
|
|
7
|
-
};
|
package/src/store/ui/config.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|