@opengeoweb/store 15.3.0 → 17.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 +841 -326
- package/package.json +6 -6
- package/src/index.d.ts +0 -1
- package/src/store/common/auth/index.d.ts +0 -3
- package/src/store/common/auth/reducer.d.ts +0 -14
- package/src/store/common/auth/reducer.spec.d.ts +0 -1
- package/src/store/common/auth/selectors.d.ts +0 -87
- package/src/store/common/auth/selectors.spec.d.ts +0 -1
- package/src/store/common/auth/types.d.ts +0 -22
- package/src/store/common/index.d.ts +0 -81
- package/src/store/common/listener.d.ts +0 -2
- package/src/store/common/types.d.ts +0 -6
- package/src/store/drawingTool/index.d.ts +0 -4
- package/src/store/drawingTool/listener.d.ts +0 -3
- package/src/store/drawingTool/listener.spec.d.ts +0 -1
- package/src/store/drawingTool/reducer.d.ts +0 -45
- package/src/store/drawingTool/reducer.spec.d.ts +0 -4
- package/src/store/drawingTool/selectors.d.ts +0 -347
- package/src/store/drawingTool/selectors.spec.d.ts +0 -1
- package/src/store/drawingTool/testUtils.d.ts +0 -1
- package/src/store/drawingTool/utils.d.ts +0 -1
- package/src/store/drawingTool/utils.spec.d.ts +0 -1
- package/src/store/generic/actions.d.ts +0 -28
- package/src/store/generic/hooks.d.ts +0 -2
- package/src/store/generic/index.d.ts +0 -25
- package/src/store/generic/linking/constants.d.ts +0 -6
- package/src/store/generic/linking/index.d.ts +0 -1
- package/src/store/generic/listener.d.ts +0 -2
- package/src/store/generic/listener.spec.d.ts +0 -1
- package/src/store/generic/loadingIndicator/constants.d.ts +0 -1
- package/src/store/generic/loadingIndicator/index.d.ts +0 -3
- package/src/store/generic/loadingIndicator/reducer.d.ts +0 -13
- package/src/store/generic/loadingIndicator/reducer.spec.d.ts +0 -1
- package/src/store/generic/loadingIndicator/selectors.d.ts +0 -337
- package/src/store/generic/loadingIndicator/selectors.spec.d.ts +0 -1
- package/src/store/generic/loadingIndicator/types.d.ts +0 -22
- package/src/store/generic/selectors.d.ts +0 -410
- package/src/store/generic/selectors.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/__mocks__/mockState.d.ts +0 -2
- package/src/store/generic/syncGroups/constants.d.ts +0 -4
- package/src/store/generic/syncGroups/hooks.d.ts +0 -8
- package/src/store/generic/syncGroups/hooks.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/index.d.ts +0 -10
- package/src/store/generic/syncGroups/listener.d.ts +0 -2
- package/src/store/generic/syncGroups/listener.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/reducer.d.ts +0 -60
- package/src/store/generic/syncGroups/reducer.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/selector.d.ts +0 -29
- package/src/store/generic/syncGroups/selectors.d.ts +0 -235
- package/src/store/generic/syncGroups/selectors.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/types.d.ts +0 -166
- package/src/store/generic/syncGroups/utils.d.ts +0 -76
- package/src/store/generic/syncGroups/utils.spec.d.ts +0 -1
- package/src/store/generic/synchronizationActions/actions.d.ts +0 -11
- package/src/store/generic/synchronizationActions/types.d.ts +0 -43
- package/src/store/generic/types.d.ts +0 -24
- package/src/store/generic/utils.d.ts +0 -9
- package/src/store/generic/utils.spec.d.ts +0 -1
- package/src/store/index.d.ts +0 -22
- package/src/store/map/index.d.ts +0 -5
- package/src/store/map/layer/index.d.ts +0 -5
- package/src/store/map/layer/listeners.d.ts +0 -2
- package/src/store/map/layer/listeners.spec.d.ts +0 -1
- package/src/store/map/layer/reducer.d.ts +0 -88
- package/src/store/map/layer/reducer.spec.d.ts +0 -1
- package/src/store/map/layer/selectors.d.ts +0 -2547
- package/src/store/map/layer/selectors.spec.d.ts +0 -1
- package/src/store/map/layer/types.d.ts +0 -175
- package/src/store/map/layer/utils.d.ts +0 -33
- package/src/store/map/layer/utils.spec.d.ts +0 -1
- package/src/store/map/map/actions.d.ts +0 -9
- package/src/store/map/map/constants.d.ts +0 -3
- package/src/store/map/map/enums.d.ts +0 -3
- package/src/store/map/map/filterLayers.d.ts +0 -10
- package/src/store/map/map/filterLayers.spec.d.ts +0 -1
- package/src/store/map/map/index.d.ts +0 -26
- package/src/store/map/map/listener.d.ts +0 -4
- package/src/store/map/map/listener.spec.d.ts +0 -1
- package/src/store/map/map/mapListenerAnimationUtils.d.ts +0 -28
- package/src/store/map/map/mapListenerAnimationUtils.spec.d.ts +0 -1
- package/src/store/map/map/metronomeListener.d.ts +0 -2
- package/src/store/map/map/olMapListenerAnimationUtils.d.ts +0 -46
- package/src/store/map/map/olMapListenerAnimationUtils.spec.d.ts +0 -1
- package/src/store/map/map/reducer.d.ts +0 -132
- package/src/store/map/map/reducer.spec.d.ts +0 -1
- package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +0 -7
- package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -1
- package/src/store/map/map/selectors.d.ts +0 -3535
- package/src/store/map/map/selectors.spec.d.ts +0 -1
- package/src/store/map/map/types.d.ts +0 -327
- package/src/store/map/map/utils.d.ts +0 -87
- package/src/store/map/map/utils.spec.d.ts +0 -1
- package/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -2
- package/src/store/map/service/index.d.ts +0 -4
- package/src/store/map/service/listener.d.ts +0 -5
- package/src/store/map/service/listener.spec.d.ts +0 -1
- package/src/store/map/service/localStorage.d.ts +0 -3
- package/src/store/map/service/localStorage.spec.d.ts +0 -1
- package/src/store/map/service/reducer.d.ts +0 -10
- package/src/store/map/service/reducer.spec.d.ts +0 -1
- package/src/store/map/service/selectors.d.ts +0 -386
- package/src/store/map/service/selectors.spec.d.ts +0 -1
- package/src/store/map/service/types.d.ts +0 -52
- package/src/store/map/storeTestSettings.d.ts +0 -8
- package/src/store/map/storeTestUtils.d.ts +0 -18
- package/src/store/map/types.d.ts +0 -11
- package/src/store/mapStore/openlayers/listener.d.ts +0 -2
- package/src/store/mapStore/openlayers/listener.spec.d.ts +0 -1
- package/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +0 -26
- package/src/store/router/index.d.ts +0 -2
- package/src/store/router/listener.d.ts +0 -2
- package/src/store/router/listener.spec.d.ts +0 -1
- package/src/store/router/reducer.d.ts +0 -9
- package/src/store/router/reducer.spec.d.ts +0 -1
- package/src/store/router/types.d.ts +0 -9
- package/src/store/router/utils.d.ts +0 -4
- package/src/store/store.d.ts +0 -37
- package/src/store/types.d.ts +0 -7
- package/src/store/ui/index.d.ts +0 -5
- package/src/store/ui/reducer.d.ts +0 -39
- package/src/store/ui/reducer.spec.d.ts +0 -1
- package/src/store/ui/selectors.d.ts +0 -234
- package/src/store/ui/selectors.spec.d.ts +0 -1
- package/src/store/ui/types.d.ts +0 -87
- package/src/store/ui/useSetupDialog.d.ts +0 -11
- package/src/store/ui/useSetupDialog.spec.d.ts +0 -1
- package/src/store/unifyReducerMaps.d.ts +0 -3
- package/src/store/unifyReducermaps.spec.d.ts +0 -1
- package/src/store/utils.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "17.0.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
13
|
"@reduxjs/toolkit": "^2.6.1",
|
|
14
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
-
"@opengeoweb/webmap": "
|
|
14
|
+
"@opengeoweb/webmap-react": "17.0.0",
|
|
15
|
+
"@opengeoweb/webmap": "17.0.0",
|
|
16
16
|
"immer": "^10.0.3",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@opengeoweb/metronome": "
|
|
19
|
-
"@opengeoweb/time-slider": "
|
|
18
|
+
"@opengeoweb/metronome": "17.0.0",
|
|
19
|
+
"@opengeoweb/time-slider": "17.0.0",
|
|
20
20
|
"react-router-dom": "^6.23.1",
|
|
21
21
|
"ol": "^10.4.0",
|
|
22
22
|
"@turf/turf": "^7.2.0",
|
package/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './store';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import type { AuthStore, LoginPayload, SetAuthPayload } from './types';
|
|
3
|
-
export declare const initialState: AuthStore;
|
|
4
|
-
export declare const slice: import("@reduxjs/toolkit").Slice<AuthStore, {
|
|
5
|
-
setCredentials: (draft: Draft<AuthStore>, action: PayloadAction<SetAuthPayload>) => void;
|
|
6
|
-
login: (draft: Draft<AuthStore>, action: PayloadAction<LoginPayload>) => void;
|
|
7
|
-
logout: (draft: Draft<AuthStore>) => void;
|
|
8
|
-
}, "auth", "auth", import("@reduxjs/toolkit").SliceSelectors<AuthStore>>;
|
|
9
|
-
export declare const authReducer: import("redux").Reducer<AuthStore>, authActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
|
-
setCredentials: (draft: Draft<AuthStore>, action: PayloadAction<SetAuthPayload>) => void;
|
|
11
|
-
login: (draft: Draft<AuthStore>, action: PayloadAction<LoginPayload>) => void;
|
|
12
|
-
logout: (draft: Draft<AuthStore>) => void;
|
|
13
|
-
}, "auth">;
|
|
14
|
-
export type AuthActions = ReturnType<typeof authActions.setCredentials> | ReturnType<typeof authActions.login> | ReturnType<typeof authActions.logout>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import type { AuthStore } from './types';
|
|
3
|
-
import type { CoreAppStore } from '../../types';
|
|
4
|
-
import type { CommonModuleState } from '../types';
|
|
5
|
-
export declare const useAppSelector: TypedUseSelectorHook<CommonModuleState>;
|
|
6
|
-
export declare const getAuthStore: (store: CoreAppStore) => AuthStore;
|
|
7
|
-
/**
|
|
8
|
-
* Gets whether the user is logged in
|
|
9
|
-
*
|
|
10
|
-
* @param {object} store store object from which the auth state will be extracted
|
|
11
|
-
* @returns {boolean} true if user is logged in
|
|
12
|
-
*/
|
|
13
|
-
export declare const getIsLoggedIn: ((state: CoreAppStore) => boolean) & {
|
|
14
|
-
clearCache: () => void;
|
|
15
|
-
resultsCount: () => number;
|
|
16
|
-
resetResultsCount: () => void;
|
|
17
|
-
} & {
|
|
18
|
-
resultFunc: (resultFuncArgs_0: AuthStore) => boolean;
|
|
19
|
-
memoizedResultFunc: ((resultFuncArgs_0: AuthStore) => boolean) & {
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
resultsCount: () => number;
|
|
22
|
-
resetResultsCount: () => void;
|
|
23
|
-
};
|
|
24
|
-
lastResult: () => boolean;
|
|
25
|
-
dependencies: [(store: CoreAppStore) => AuthStore];
|
|
26
|
-
recomputations: () => number;
|
|
27
|
-
resetRecomputations: () => void;
|
|
28
|
-
dependencyRecomputations: () => number;
|
|
29
|
-
resetDependencyRecomputations: () => void;
|
|
30
|
-
} & {
|
|
31
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
32
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Gets the current auth credentials
|
|
36
|
-
*
|
|
37
|
-
* @param {object} store store object from which the auth state will be extracted
|
|
38
|
-
* @returns {Credentials | undefined} the auth credentials or undefined
|
|
39
|
-
*/
|
|
40
|
-
export declare const getCredentials: ((state: CoreAppStore) => import("./types").Credentials | undefined) & {
|
|
41
|
-
clearCache: () => void;
|
|
42
|
-
resultsCount: () => number;
|
|
43
|
-
resetResultsCount: () => void;
|
|
44
|
-
} & {
|
|
45
|
-
resultFunc: (resultFuncArgs_0: AuthStore) => import("./types").Credentials | undefined;
|
|
46
|
-
memoizedResultFunc: ((resultFuncArgs_0: AuthStore) => import("./types").Credentials | undefined) & {
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
resultsCount: () => number;
|
|
49
|
-
resetResultsCount: () => void;
|
|
50
|
-
};
|
|
51
|
-
lastResult: () => import("./types").Credentials | undefined;
|
|
52
|
-
dependencies: [(store: CoreAppStore) => AuthStore];
|
|
53
|
-
recomputations: () => number;
|
|
54
|
-
resetRecomputations: () => void;
|
|
55
|
-
dependencyRecomputations: () => number;
|
|
56
|
-
resetDependencyRecomputations: () => void;
|
|
57
|
-
} & {
|
|
58
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
59
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Gets the current role
|
|
63
|
-
*
|
|
64
|
-
* @param {object} store store object from which the auth state will be extracted
|
|
65
|
-
* @returns {Role[] | undefined} the current role
|
|
66
|
-
*/
|
|
67
|
-
export declare const getCurrentRoles: ((state: CoreAppStore) => import("./types").Role[] | undefined) & {
|
|
68
|
-
clearCache: () => void;
|
|
69
|
-
resultsCount: () => number;
|
|
70
|
-
resetResultsCount: () => void;
|
|
71
|
-
} & {
|
|
72
|
-
resultFunc: (resultFuncArgs_0: AuthStore) => import("./types").Role[] | undefined;
|
|
73
|
-
memoizedResultFunc: ((resultFuncArgs_0: AuthStore) => import("./types").Role[] | undefined) & {
|
|
74
|
-
clearCache: () => void;
|
|
75
|
-
resultsCount: () => number;
|
|
76
|
-
resetResultsCount: () => void;
|
|
77
|
-
};
|
|
78
|
-
lastResult: () => import("./types").Role[] | undefined;
|
|
79
|
-
dependencies: [(store: CoreAppStore) => AuthStore];
|
|
80
|
-
recomputations: () => number;
|
|
81
|
-
resetRecomputations: () => void;
|
|
82
|
-
dependencyRecomputations: () => number;
|
|
83
|
-
resetDependencyRecomputations: () => void;
|
|
84
|
-
} & {
|
|
85
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
86
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
87
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Role {
|
|
2
|
-
name: string;
|
|
3
|
-
title: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Credentials {
|
|
6
|
-
username: string;
|
|
7
|
-
roles?: Role[];
|
|
8
|
-
token: string;
|
|
9
|
-
refresh_token: string;
|
|
10
|
-
expires_at?: number;
|
|
11
|
-
has_connection_issue?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface AuthStore {
|
|
14
|
-
isLoggedIn: boolean;
|
|
15
|
-
credentials?: Credentials;
|
|
16
|
-
}
|
|
17
|
-
export interface SetAuthPayload {
|
|
18
|
-
credentials: Credentials;
|
|
19
|
-
}
|
|
20
|
-
export interface LoginPayload {
|
|
21
|
-
isLoggedIn: boolean;
|
|
22
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { AuthActions } from './auth/reducer';
|
|
2
|
-
export type CommonActions = AuthActions;
|
|
3
|
-
export declare const commonActions: {
|
|
4
|
-
setCredentials: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./auth/types").SetAuthPayload, "auth/setCredentials">;
|
|
5
|
-
login: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./auth/types").LoginPayload, "auth/login">;
|
|
6
|
-
logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/logout">;
|
|
7
|
-
};
|
|
8
|
-
export declare const commonSelectors: {
|
|
9
|
-
useAppSelector: import("react-redux").TypedUseSelectorHook<import("./types").CommonModuleState>;
|
|
10
|
-
getAuthStore: (store: import("..").CoreAppStore) => import("./auth/types").AuthStore;
|
|
11
|
-
getIsLoggedIn: ((state: import("..").CoreAppStore) => boolean) & {
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
resultsCount: () => number;
|
|
14
|
-
resetResultsCount: () => void;
|
|
15
|
-
} & {
|
|
16
|
-
resultFunc: (resultFuncArgs_0: import("./auth/types").AuthStore) => boolean;
|
|
17
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("./auth/types").AuthStore) => boolean) & {
|
|
18
|
-
clearCache: () => void;
|
|
19
|
-
resultsCount: () => number;
|
|
20
|
-
resetResultsCount: () => void;
|
|
21
|
-
};
|
|
22
|
-
lastResult: () => boolean;
|
|
23
|
-
dependencies: [(store: import("..").CoreAppStore) => import("./auth/types").AuthStore];
|
|
24
|
-
recomputations: () => number;
|
|
25
|
-
resetRecomputations: () => void;
|
|
26
|
-
dependencyRecomputations: () => number;
|
|
27
|
-
resetDependencyRecomputations: () => void;
|
|
28
|
-
} & {
|
|
29
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
30
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
31
|
-
};
|
|
32
|
-
getCredentials: ((state: import("..").CoreAppStore) => import("./auth/types").Credentials | undefined) & {
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
resultsCount: () => number;
|
|
35
|
-
resetResultsCount: () => void;
|
|
36
|
-
} & {
|
|
37
|
-
resultFunc: (resultFuncArgs_0: import("./auth/types").AuthStore) => import("./auth/types").Credentials | undefined;
|
|
38
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("./auth/types").AuthStore) => import("./auth/types").Credentials | undefined) & {
|
|
39
|
-
clearCache: () => void;
|
|
40
|
-
resultsCount: () => number;
|
|
41
|
-
resetResultsCount: () => void;
|
|
42
|
-
};
|
|
43
|
-
lastResult: () => import("./auth/types").Credentials | undefined;
|
|
44
|
-
dependencies: [(store: import("..").CoreAppStore) => import("./auth/types").AuthStore];
|
|
45
|
-
recomputations: () => number;
|
|
46
|
-
resetRecomputations: () => void;
|
|
47
|
-
dependencyRecomputations: () => number;
|
|
48
|
-
resetDependencyRecomputations: () => void;
|
|
49
|
-
} & {
|
|
50
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
51
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
52
|
-
};
|
|
53
|
-
getCurrentRoles: ((state: import("..").CoreAppStore) => import("./auth/types").Role[] | undefined) & {
|
|
54
|
-
clearCache: () => void;
|
|
55
|
-
resultsCount: () => number;
|
|
56
|
-
resetResultsCount: () => void;
|
|
57
|
-
} & {
|
|
58
|
-
resultFunc: (resultFuncArgs_0: import("./auth/types").AuthStore) => import("./auth/types").Role[] | undefined;
|
|
59
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("./auth/types").AuthStore) => import("./auth/types").Role[] | undefined) & {
|
|
60
|
-
clearCache: () => void;
|
|
61
|
-
resultsCount: () => number;
|
|
62
|
-
resetResultsCount: () => void;
|
|
63
|
-
};
|
|
64
|
-
lastResult: () => import("./auth/types").Role[] | undefined;
|
|
65
|
-
dependencies: [(store: import("..").CoreAppStore) => import("./auth/types").AuthStore];
|
|
66
|
-
recomputations: () => number;
|
|
67
|
-
resetRecomputations: () => void;
|
|
68
|
-
dependencyRecomputations: () => number;
|
|
69
|
-
resetDependencyRecomputations: () => void;
|
|
70
|
-
} & {
|
|
71
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
72
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export declare const commonReducers: import("redux").Reducer<{
|
|
76
|
-
auth: import("./auth/types").AuthStore;
|
|
77
|
-
}, import("redux").UnknownAction, Partial<{
|
|
78
|
-
auth: import("./auth/types").AuthStore | undefined;
|
|
79
|
-
}>>;
|
|
80
|
-
export type * as commonTypes from './auth/types';
|
|
81
|
-
export type * from './types';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { DrawtoolModuleStore } from './reducer';
|
|
2
|
-
import type { WebMapStateModuleState } from '../map';
|
|
3
|
-
export declare const drawingToolListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<DrawtoolModuleStore & WebMapStateModuleState, import("redux-thunk").ThunkDispatch<DrawtoolModuleStore & WebMapStateModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction, Draft, EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import type { DrawMode, MapDrawToolOptions } from '@opengeoweb/webmap-react';
|
|
3
|
-
export interface DrawToolItem {
|
|
4
|
-
drawToolId: string;
|
|
5
|
-
geoJSONLayerId: string;
|
|
6
|
-
activeDrawModeId: string;
|
|
7
|
-
drawModes: DrawMode[];
|
|
8
|
-
shouldAllowMultipleShapes: boolean;
|
|
9
|
-
geoJSONIntersectionLayerId?: string;
|
|
10
|
-
geoJSONIntersectionBoundsLayerId?: string;
|
|
11
|
-
}
|
|
12
|
-
export type DrawingToolState = EntityState<DrawToolItem, string>;
|
|
13
|
-
export interface DrawtoolModuleStore {
|
|
14
|
-
drawingtools?: DrawingToolState;
|
|
15
|
-
}
|
|
16
|
-
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem, string>;
|
|
17
|
-
export declare const initialState: DrawingToolState;
|
|
18
|
-
export declare const drawingToolReducer: import("redux").Reducer<DrawingToolState>, drawingToolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
19
|
-
registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<MapDrawToolOptions & {
|
|
20
|
-
drawToolId: string;
|
|
21
|
-
mapId?: string;
|
|
22
|
-
}>) => void;
|
|
23
|
-
unregisterDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
24
|
-
drawToolId: string;
|
|
25
|
-
}>) => void;
|
|
26
|
-
changeDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
27
|
-
drawToolId: string;
|
|
28
|
-
drawModeId: string;
|
|
29
|
-
shouldUpdateShape?: boolean;
|
|
30
|
-
}>) => void;
|
|
31
|
-
updateGeoJSONLayerId: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
32
|
-
drawToolId: string;
|
|
33
|
-
geoJSONLayerId: string;
|
|
34
|
-
}>) => void;
|
|
35
|
-
updateDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
36
|
-
drawToolId: string;
|
|
37
|
-
drawModeId: string;
|
|
38
|
-
shape: GeoJSON.FeatureCollection;
|
|
39
|
-
title?: string;
|
|
40
|
-
}>) => void;
|
|
41
|
-
changeIntersectionBounds: (_draft: Draft<DrawingToolState>, _action: PayloadAction<{
|
|
42
|
-
drawToolId: string;
|
|
43
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
44
|
-
}>) => void;
|
|
45
|
-
}, "draw">;
|