@opengeoweb/store 19.0.0 → 19.1.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.
Files changed (97) hide show
  1. package/dist/README.md +11 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +10819 -0
  4. package/dist/src/index.d.ts +1 -0
  5. package/dist/src/store/common/auth/index.d.ts +3 -0
  6. package/dist/src/store/common/auth/reducer.d.ts +14 -0
  7. package/dist/src/store/common/auth/selectors.d.ts +87 -0
  8. package/dist/src/store/common/auth/types.d.ts +22 -0
  9. package/dist/src/store/common/index.d.ts +81 -0
  10. package/dist/src/store/common/listener.d.ts +2 -0
  11. package/dist/src/store/common/types.d.ts +6 -0
  12. package/dist/src/store/drawingTool/index.d.ts +4 -0
  13. package/dist/src/store/drawingTool/listener.d.ts +3 -0
  14. package/dist/src/store/drawingTool/reducer.d.ts +45 -0
  15. package/dist/src/store/drawingTool/selectors.d.ts +347 -0
  16. package/dist/src/store/drawingTool/testUtils.d.ts +1 -0
  17. package/dist/src/store/drawingTool/utils.d.ts +1 -0
  18. package/dist/src/store/generic/actions.d.ts +28 -0
  19. package/dist/src/store/generic/hooks.d.ts +6 -0
  20. package/dist/src/store/generic/index.d.ts +27 -0
  21. package/dist/src/store/generic/linking/constants.d.ts +6 -0
  22. package/dist/src/store/generic/linking/index.d.ts +2 -0
  23. package/dist/src/store/generic/linking/utils.d.ts +9 -0
  24. package/dist/src/store/generic/listener.d.ts +2 -0
  25. package/dist/src/store/generic/loadingIndicator/constants.d.ts +1 -0
  26. package/dist/src/store/generic/loadingIndicator/index.d.ts +3 -0
  27. package/dist/src/store/generic/loadingIndicator/reducer.d.ts +13 -0
  28. package/dist/src/store/generic/loadingIndicator/selectors.d.ts +337 -0
  29. package/dist/src/store/generic/loadingIndicator/types.d.ts +22 -0
  30. package/dist/src/store/generic/selectors.d.ts +715 -0
  31. package/dist/src/store/generic/syncGroups/__mocks__/mockState.d.ts +2 -0
  32. package/dist/src/store/generic/syncGroups/constants.d.ts +5 -0
  33. package/dist/src/store/generic/syncGroups/featureGroupUtils.d.ts +11 -0
  34. package/dist/src/store/generic/syncGroups/featureLinks.d.ts +6 -0
  35. package/dist/src/store/generic/syncGroups/featureSyncLayers.d.ts +10 -0
  36. package/dist/src/store/generic/syncGroups/hooks.d.ts +20 -0
  37. package/dist/src/store/generic/syncGroups/index.d.ts +13 -0
  38. package/dist/src/store/generic/syncGroups/listener.d.ts +2 -0
  39. package/dist/src/store/generic/syncGroups/reducer.d.ts +62 -0
  40. package/dist/src/store/generic/syncGroups/selector.d.ts +50 -0
  41. package/dist/src/store/generic/syncGroups/selectors.d.ts +235 -0
  42. package/dist/src/store/generic/syncGroups/syncSourceDisplayName.d.ts +2 -0
  43. package/dist/src/store/generic/syncGroups/types.d.ts +200 -0
  44. package/dist/src/store/generic/syncGroups/utils.d.ts +76 -0
  45. package/dist/src/store/generic/synchronizationActions/actions.d.ts +11 -0
  46. package/dist/src/store/generic/synchronizationActions/types.d.ts +43 -0
  47. package/dist/src/store/generic/types.d.ts +24 -0
  48. package/dist/src/store/generic/utils.d.ts +9 -0
  49. package/dist/src/store/index.d.ts +22 -0
  50. package/dist/src/store/map/index.d.ts +5 -0
  51. package/dist/src/store/map/layer/index.d.ts +6 -0
  52. package/dist/src/store/map/layer/listeners.d.ts +2 -0
  53. package/dist/src/store/map/layer/reducer.d.ts +94 -0
  54. package/dist/src/store/map/layer/selectors.d.ts +2547 -0
  55. package/dist/src/store/map/layer/types.d.ts +198 -0
  56. package/dist/src/store/map/layer/utils.d.ts +41 -0
  57. package/dist/src/store/map/map/actions.d.ts +9 -0
  58. package/dist/src/store/map/map/constants.d.ts +3 -0
  59. package/dist/src/store/map/map/enums.d.ts +3 -0
  60. package/dist/src/store/map/map/filterLayers.d.ts +10 -0
  61. package/dist/src/store/map/map/index.d.ts +26 -0
  62. package/dist/src/store/map/map/listener.d.ts +4 -0
  63. package/dist/src/store/map/map/mapListenerAnimationUtils.d.ts +28 -0
  64. package/dist/src/store/map/map/metronomeListener.d.ts +2 -0
  65. package/dist/src/store/map/map/olMapListenerAnimationUtils.d.ts +46 -0
  66. package/dist/src/store/map/map/reducer.d.ts +142 -0
  67. package/dist/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -0
  68. package/dist/src/store/map/map/selectors.d.ts +3533 -0
  69. package/dist/src/store/map/map/types.d.ts +328 -0
  70. package/dist/src/store/map/map/utils.d.ts +87 -0
  71. package/dist/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
  72. package/dist/src/store/map/service/index.d.ts +4 -0
  73. package/dist/src/store/map/service/listener.d.ts +5 -0
  74. package/dist/src/store/map/service/localStorage.d.ts +3 -0
  75. package/dist/src/store/map/service/reducer.d.ts +10 -0
  76. package/dist/src/store/map/service/selectors.d.ts +386 -0
  77. package/dist/src/store/map/service/types.d.ts +53 -0
  78. package/dist/src/store/map/storeTestSettings.d.ts +8 -0
  79. package/dist/src/store/map/storeTestUtils.d.ts +17 -0
  80. package/dist/src/store/map/types.d.ts +11 -0
  81. package/dist/src/store/mapStore/openlayers/listener.d.ts +2 -0
  82. package/dist/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +26 -0
  83. package/dist/src/store/router/index.d.ts +2 -0
  84. package/dist/src/store/router/listener.d.ts +2 -0
  85. package/dist/src/store/router/reducer.d.ts +9 -0
  86. package/dist/src/store/router/types.d.ts +9 -0
  87. package/dist/src/store/router/utils.d.ts +4 -0
  88. package/dist/src/store/store.d.ts +37 -0
  89. package/dist/src/store/types.d.ts +7 -0
  90. package/dist/src/store/ui/index.d.ts +5 -0
  91. package/dist/src/store/ui/reducer.d.ts +39 -0
  92. package/dist/src/store/ui/selectors.d.ts +234 -0
  93. package/dist/src/store/ui/types.d.ts +98 -0
  94. package/dist/src/store/ui/useSetupDialog.d.ts +11 -0
  95. package/dist/src/store/unifyReducerMaps.d.ts +3 -0
  96. package/dist/src/store/utils.d.ts +6 -0
  97. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ export * from './store';
@@ -0,0 +1,3 @@
1
+ export { authReducer, authActions } from './reducer';
2
+ export * as authSelectors from './selectors';
3
+ export type * as authTypes from './types';
@@ -0,0 +1,14 @@
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>;
@@ -0,0 +1,87 @@
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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
32
+ memoize: 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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
59
+ memoize: 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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
86
+ memoize: typeof import("reselect").weakMapMemoize;
87
+ };
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,81 @@
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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
30
+ memoize: 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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
51
+ memoize: 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
+ argsMemoize: typeof import("reselect").weakMapMemoize;
72
+ memoize: 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';
@@ -0,0 +1,2 @@
1
+ import type { CommonModuleState } from '.';
2
+ export declare const commonListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CommonModuleState, import("redux-thunk").ThunkDispatch<CommonModuleState, unknown, import("redux").UnknownAction>, unknown>;
@@ -0,0 +1,6 @@
1
+ import type { AuthStore } from './auth/types';
2
+ export interface CommonModuleState {
3
+ common?: {
4
+ auth: AuthStore;
5
+ };
6
+ }
@@ -0,0 +1,4 @@
1
+ export { drawingToolActions, drawingToolReducer } from './reducer';
2
+ export * as drawingToolSelectors from './selectors';
3
+ export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
4
+ export * from './utils';
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1,45 @@
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">;
@@ -0,0 +1,347 @@
1
+ import type { DrawingToolState, DrawtoolModuleStore } from './reducer';
2
+ export declare const getDrawingtoolStore: (store: DrawtoolModuleStore) => DrawingToolState;
3
+ export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: string) => {
4
+ drawToolId: string;
5
+ geoJSONLayerId: string;
6
+ activeDrawModeId: string;
7
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
8
+ shouldAllowMultipleShapes: boolean;
9
+ geoJSONIntersectionLayerId?: string | undefined;
10
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
11
+ }, selectAllDrawingTools: (state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[];
12
+ export declare const getActiveDrawToolId: ((state: DrawtoolModuleStore) => string) & {
13
+ clearCache: () => void;
14
+ resultsCount: () => number;
15
+ resetResultsCount: () => void;
16
+ } & {
17
+ resultFunc: (resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string;
18
+ memoizedResultFunc: ((resultFuncArgs_0: import("./reducer").DrawToolItem[]) => string) & {
19
+ clearCache: () => void;
20
+ resultsCount: () => number;
21
+ resetResultsCount: () => void;
22
+ };
23
+ lastResult: () => string;
24
+ dependencies: [(state: DrawtoolModuleStore) => import("./reducer").DrawToolItem[]];
25
+ recomputations: () => number;
26
+ resetRecomputations: () => void;
27
+ dependencyRecomputations: () => number;
28
+ resetDependencyRecomputations: () => void;
29
+ } & {
30
+ argsMemoize: typeof import("reselect").weakMapMemoize;
31
+ memoize: typeof import("reselect").weakMapMemoize;
32
+ };
33
+ export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("@opengeoweb/webmap-react").DrawMode | undefined) & {
34
+ clearCache: () => void;
35
+ resultsCount: () => number;
36
+ resetResultsCount: () => void;
37
+ } & {
38
+ resultFunc: (resultFuncArgs_0: {
39
+ drawToolId: string;
40
+ geoJSONLayerId: string;
41
+ activeDrawModeId: string;
42
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
43
+ shouldAllowMultipleShapes: boolean;
44
+ geoJSONIntersectionLayerId?: string | undefined;
45
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
46
+ }, resultFuncArgs_1: string) => import("@opengeoweb/webmap-react").DrawMode | undefined;
47
+ memoizedResultFunc: ((resultFuncArgs_0: {
48
+ drawToolId: string;
49
+ geoJSONLayerId: string;
50
+ activeDrawModeId: string;
51
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
52
+ shouldAllowMultipleShapes: boolean;
53
+ geoJSONIntersectionLayerId?: string | undefined;
54
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
55
+ }, resultFuncArgs_1: string) => import("@opengeoweb/webmap-react").DrawMode | undefined) & {
56
+ clearCache: () => void;
57
+ resultsCount: () => number;
58
+ resetResultsCount: () => void;
59
+ };
60
+ lastResult: () => import("@opengeoweb/webmap-react").DrawMode | undefined;
61
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
62
+ drawToolId: string;
63
+ geoJSONLayerId: string;
64
+ activeDrawModeId: string;
65
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
66
+ shouldAllowMultipleShapes: boolean;
67
+ geoJSONIntersectionLayerId?: string | undefined;
68
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
69
+ }, (_store: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => string];
70
+ recomputations: () => number;
71
+ resetRecomputations: () => void;
72
+ dependencyRecomputations: () => number;
73
+ resetDependencyRecomputations: () => void;
74
+ } & {
75
+ argsMemoize: typeof import("reselect").weakMapMemoize;
76
+ memoize: typeof import("reselect").weakMapMemoize;
77
+ };
78
+ export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: string) => string) & {
79
+ clearCache: () => void;
80
+ resultsCount: () => number;
81
+ resetResultsCount: () => void;
82
+ } & {
83
+ resultFunc: (resultFuncArgs_0: {
84
+ drawToolId: string;
85
+ geoJSONLayerId: string;
86
+ activeDrawModeId: string;
87
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
88
+ shouldAllowMultipleShapes: boolean;
89
+ geoJSONIntersectionLayerId?: string | undefined;
90
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
91
+ }) => string;
92
+ memoizedResultFunc: ((resultFuncArgs_0: {
93
+ drawToolId: string;
94
+ geoJSONLayerId: string;
95
+ activeDrawModeId: string;
96
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
97
+ shouldAllowMultipleShapes: boolean;
98
+ geoJSONIntersectionLayerId?: string | undefined;
99
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
100
+ }) => string) & {
101
+ clearCache: () => void;
102
+ resultsCount: () => number;
103
+ resetResultsCount: () => void;
104
+ };
105
+ lastResult: () => string;
106
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
107
+ drawToolId: string;
108
+ geoJSONLayerId: string;
109
+ activeDrawModeId: string;
110
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
111
+ shouldAllowMultipleShapes: boolean;
112
+ geoJSONIntersectionLayerId?: string | undefined;
113
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
114
+ }];
115
+ recomputations: () => number;
116
+ resetRecomputations: () => void;
117
+ dependencyRecomputations: () => number;
118
+ resetDependencyRecomputations: () => void;
119
+ } & {
120
+ argsMemoize: typeof import("reselect").weakMapMemoize;
121
+ memoize: typeof import("reselect").weakMapMemoize;
122
+ };
123
+ export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id: string) => string) & {
124
+ clearCache: () => void;
125
+ resultsCount: () => number;
126
+ resetResultsCount: () => void;
127
+ } & {
128
+ resultFunc: (resultFuncArgs_0: {
129
+ drawToolId: string;
130
+ geoJSONLayerId: string;
131
+ activeDrawModeId: string;
132
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
133
+ shouldAllowMultipleShapes: boolean;
134
+ geoJSONIntersectionLayerId?: string | undefined;
135
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
136
+ }) => string;
137
+ memoizedResultFunc: ((resultFuncArgs_0: {
138
+ drawToolId: string;
139
+ geoJSONLayerId: string;
140
+ activeDrawModeId: string;
141
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
142
+ shouldAllowMultipleShapes: boolean;
143
+ geoJSONIntersectionLayerId?: string | undefined;
144
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
145
+ }) => string) & {
146
+ clearCache: () => void;
147
+ resultsCount: () => number;
148
+ resetResultsCount: () => void;
149
+ };
150
+ lastResult: () => string;
151
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
152
+ drawToolId: string;
153
+ geoJSONLayerId: string;
154
+ activeDrawModeId: string;
155
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
156
+ shouldAllowMultipleShapes: boolean;
157
+ geoJSONIntersectionLayerId?: string | undefined;
158
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
159
+ }];
160
+ recomputations: () => number;
161
+ resetRecomputations: () => void;
162
+ dependencyRecomputations: () => number;
163
+ resetDependencyRecomputations: () => void;
164
+ } & {
165
+ argsMemoize: typeof import("reselect").weakMapMemoize;
166
+ memoize: typeof import("reselect").weakMapMemoize;
167
+ };
168
+ export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore, id: string) => string | undefined) & {
169
+ clearCache: () => void;
170
+ resultsCount: () => number;
171
+ resetResultsCount: () => void;
172
+ } & {
173
+ resultFunc: (resultFuncArgs_0: {
174
+ drawToolId: string;
175
+ geoJSONLayerId: string;
176
+ activeDrawModeId: string;
177
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
178
+ shouldAllowMultipleShapes: boolean;
179
+ geoJSONIntersectionLayerId?: string | undefined;
180
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
181
+ }) => string | undefined;
182
+ memoizedResultFunc: ((resultFuncArgs_0: {
183
+ drawToolId: string;
184
+ geoJSONLayerId: string;
185
+ activeDrawModeId: string;
186
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
187
+ shouldAllowMultipleShapes: boolean;
188
+ geoJSONIntersectionLayerId?: string | undefined;
189
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
190
+ }) => string | undefined) & {
191
+ clearCache: () => void;
192
+ resultsCount: () => number;
193
+ resetResultsCount: () => void;
194
+ };
195
+ lastResult: () => string | undefined;
196
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
197
+ drawToolId: string;
198
+ geoJSONLayerId: string;
199
+ activeDrawModeId: string;
200
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
201
+ shouldAllowMultipleShapes: boolean;
202
+ geoJSONIntersectionLayerId?: string | undefined;
203
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
204
+ }];
205
+ recomputations: () => number;
206
+ resetRecomputations: () => void;
207
+ dependencyRecomputations: () => number;
208
+ resetDependencyRecomputations: () => void;
209
+ } & {
210
+ argsMemoize: typeof import("reselect").weakMapMemoize;
211
+ memoize: typeof import("reselect").weakMapMemoize;
212
+ };
213
+ export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModuleStore, id: string) => string | undefined) & {
214
+ clearCache: () => void;
215
+ resultsCount: () => number;
216
+ resetResultsCount: () => void;
217
+ } & {
218
+ resultFunc: (resultFuncArgs_0: {
219
+ drawToolId: string;
220
+ geoJSONLayerId: string;
221
+ activeDrawModeId: string;
222
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
223
+ shouldAllowMultipleShapes: boolean;
224
+ geoJSONIntersectionLayerId?: string | undefined;
225
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
226
+ }) => string | undefined;
227
+ memoizedResultFunc: ((resultFuncArgs_0: {
228
+ drawToolId: string;
229
+ geoJSONLayerId: string;
230
+ activeDrawModeId: string;
231
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
232
+ shouldAllowMultipleShapes: boolean;
233
+ geoJSONIntersectionLayerId?: string | undefined;
234
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
235
+ }) => string | undefined) & {
236
+ clearCache: () => void;
237
+ resultsCount: () => number;
238
+ resetResultsCount: () => void;
239
+ };
240
+ lastResult: () => string | undefined;
241
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
242
+ drawToolId: string;
243
+ geoJSONLayerId: string;
244
+ activeDrawModeId: string;
245
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
246
+ shouldAllowMultipleShapes: boolean;
247
+ geoJSONIntersectionLayerId?: string | undefined;
248
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
249
+ }];
250
+ recomputations: () => number;
251
+ resetRecomputations: () => void;
252
+ dependencyRecomputations: () => number;
253
+ resetDependencyRecomputations: () => void;
254
+ } & {
255
+ argsMemoize: typeof import("reselect").weakMapMemoize;
256
+ memoize: typeof import("reselect").weakMapMemoize;
257
+ };
258
+ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore, id: string) => boolean) & {
259
+ clearCache: () => void;
260
+ resultsCount: () => number;
261
+ resetResultsCount: () => void;
262
+ } & {
263
+ resultFunc: (resultFuncArgs_0: {
264
+ drawToolId: string;
265
+ geoJSONLayerId: string;
266
+ activeDrawModeId: string;
267
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
268
+ shouldAllowMultipleShapes: boolean;
269
+ geoJSONIntersectionLayerId?: string | undefined;
270
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
271
+ }) => boolean;
272
+ memoizedResultFunc: ((resultFuncArgs_0: {
273
+ drawToolId: string;
274
+ geoJSONLayerId: string;
275
+ activeDrawModeId: string;
276
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
277
+ shouldAllowMultipleShapes: boolean;
278
+ geoJSONIntersectionLayerId?: string | undefined;
279
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
280
+ }) => boolean) & {
281
+ clearCache: () => void;
282
+ resultsCount: () => number;
283
+ resetResultsCount: () => void;
284
+ };
285
+ lastResult: () => boolean;
286
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
287
+ drawToolId: string;
288
+ geoJSONLayerId: string;
289
+ activeDrawModeId: string;
290
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
291
+ shouldAllowMultipleShapes: boolean;
292
+ geoJSONIntersectionLayerId?: string | undefined;
293
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
294
+ }];
295
+ recomputations: () => number;
296
+ resetRecomputations: () => void;
297
+ dependencyRecomputations: () => number;
298
+ resetDependencyRecomputations: () => void;
299
+ } & {
300
+ argsMemoize: typeof import("reselect").weakMapMemoize;
301
+ memoize: typeof import("reselect").weakMapMemoize;
302
+ };
303
+ export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: string) => import("@opengeoweb/webmap-react").DrawMode | undefined) & {
304
+ clearCache: () => void;
305
+ resultsCount: () => number;
306
+ resetResultsCount: () => void;
307
+ } & {
308
+ resultFunc: (resultFuncArgs_0: {
309
+ drawToolId: string;
310
+ geoJSONLayerId: string;
311
+ activeDrawModeId: string;
312
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
313
+ shouldAllowMultipleShapes: boolean;
314
+ geoJSONIntersectionLayerId?: string | undefined;
315
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
316
+ }) => import("@opengeoweb/webmap-react").DrawMode | undefined;
317
+ memoizedResultFunc: ((resultFuncArgs_0: {
318
+ drawToolId: string;
319
+ geoJSONLayerId: string;
320
+ activeDrawModeId: string;
321
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
322
+ shouldAllowMultipleShapes: boolean;
323
+ geoJSONIntersectionLayerId?: string | undefined;
324
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
325
+ }) => import("@opengeoweb/webmap-react").DrawMode | undefined) & {
326
+ clearCache: () => void;
327
+ resultsCount: () => number;
328
+ resetResultsCount: () => void;
329
+ };
330
+ lastResult: () => import("@opengeoweb/webmap-react").DrawMode | undefined;
331
+ dependencies: [(state: DrawtoolModuleStore, id: string) => {
332
+ drawToolId: string;
333
+ geoJSONLayerId: string;
334
+ activeDrawModeId: string;
335
+ drawModes: import("@opengeoweb/webmap-react").DrawMode[];
336
+ shouldAllowMultipleShapes: boolean;
337
+ geoJSONIntersectionLayerId?: string | undefined;
338
+ geoJSONIntersectionBoundsLayerId?: string | undefined;
339
+ }];
340
+ recomputations: () => number;
341
+ resetRecomputations: () => void;
342
+ dependencyRecomputations: () => number;
343
+ resetDependencyRecomputations: () => void;
344
+ } & {
345
+ argsMemoize: typeof import("reselect").weakMapMemoize;
346
+ memoize: typeof import("reselect").weakMapMemoize;
347
+ };
@@ -0,0 +1 @@
1
+ export declare const testGeoJSON: GeoJSON.FeatureCollection;
@@ -0,0 +1 @@
1
+ export declare const getSingularDrawtoolDrawLayerId: (mapId: string) => string;
@@ -0,0 +1,28 @@
1
+ import type { SetTimePayload, SetBboxPayload } from './types';
2
+ /**
3
+ * Generic action to set the time.
4
+ *
5
+ * @param payload: SetTimePayload;
6
+ * {
7
+ * sourceId: string; // Source where the new time value originates from
8
+ * value: string; // ISO 8601 string time value like "2010-10-01T00:00:00Z"
9
+ * }
10
+ */
11
+ export declare const setTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimePayload, string>;
12
+ /**
13
+ * Generic action to set the bounding box.
14
+ *
15
+ * @param payload: SetBboxPayload;
16
+ *
17
+ * {
18
+ * sourceId: string; // Source where the new time value originates from
19
+ * bbox: { // Bbbox object
20
+ * left: number;
21
+ * bottom: number;
22
+ * right: number;
23
+ * top: number;
24
+ * };
25
+ * srs: string; // Projection string according to EPSG, e.g. (EPSG:3857 == Mercator)
26
+ * }
27
+ */
28
+ export declare const setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetBboxPayload, string>;