@opengeoweb/store 16.0.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 +543 -246
- 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 -26
- 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 -16
- package/src/store/generic/syncGroups/hooks.spec.d.ts +0 -1
- package/src/store/generic/syncGroups/index.d.ts +0 -11
- 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 -45
- package/src/store/generic/syncGroups/selector.spec.d.ts +0 -1
- 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/syncSourceDisplayName.d.ts +0 -2
- package/src/store/generic/syncGroups/types.d.ts +0 -171
- 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 -90
- 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 -179
- 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 -142
- 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 -3582
- package/src/store/map/map/selectors.spec.d.ts +0 -1
- package/src/store/map/map/types.d.ts +0 -329
- 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
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
import type { LayerProps, Style } from '@opengeoweb/webmap';
|
|
2
|
-
import type { ServiceState, ReduxService } from './types';
|
|
3
|
-
import type { CoreAppStore } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves all serviceIds
|
|
6
|
-
*
|
|
7
|
-
* Example: serviceIds = getServiceIds(store)
|
|
8
|
-
* @param {object} store store: object - object from which the service state will be extracted
|
|
9
|
-
* @returns {array} returnType: array - an array of all serviceIds
|
|
10
|
-
*/
|
|
11
|
-
export declare const getServiceIds: ((state: CoreAppStore) => string[]) & {
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
resultsCount: () => number;
|
|
14
|
-
resetResultsCount: () => void;
|
|
15
|
-
} & {
|
|
16
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined) => string[];
|
|
17
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined) => string[]) & {
|
|
18
|
-
clearCache: () => void;
|
|
19
|
-
resultsCount: () => number;
|
|
20
|
-
resetResultsCount: () => void;
|
|
21
|
-
};
|
|
22
|
-
lastResult: () => string[];
|
|
23
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined];
|
|
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
|
-
/**
|
|
33
|
-
* Gets map services
|
|
34
|
-
*
|
|
35
|
-
* Example: services = getServices(store)
|
|
36
|
-
* @param {object} store store: object - Store object
|
|
37
|
-
* @returns {object} returnType: ServiceState
|
|
38
|
-
*/
|
|
39
|
-
export declare const getServices: ((state: CoreAppStore) => import("./types").Services) & {
|
|
40
|
-
clearCache: () => void;
|
|
41
|
-
resultsCount: () => number;
|
|
42
|
-
resetResultsCount: () => void;
|
|
43
|
-
} & {
|
|
44
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined) => import("./types").Services;
|
|
45
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined) => import("./types").Services) & {
|
|
46
|
-
clearCache: () => void;
|
|
47
|
-
resultsCount: () => number;
|
|
48
|
-
resetResultsCount: () => void;
|
|
49
|
-
};
|
|
50
|
-
lastResult: () => import("./types").Services;
|
|
51
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined];
|
|
52
|
-
recomputations: () => number;
|
|
53
|
-
resetRecomputations: () => void;
|
|
54
|
-
dependencyRecomputations: () => number;
|
|
55
|
-
resetDependencyRecomputations: () => void;
|
|
56
|
-
} & {
|
|
57
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
58
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Gets the service object by its url
|
|
62
|
-
*
|
|
63
|
-
* Example: service = getServiceByName(store, 'serviceName')
|
|
64
|
-
* @param {object} store store: object - Store object
|
|
65
|
-
* @returns {ReduxService} returnType: Service
|
|
66
|
-
*/
|
|
67
|
-
export declare const getServiceByUrl: ((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
68
|
-
clearCache: () => void;
|
|
69
|
-
resultsCount: () => number;
|
|
70
|
-
resetResultsCount: () => void;
|
|
71
|
-
} & {
|
|
72
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
73
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
74
|
-
clearCache: () => void;
|
|
75
|
-
resultsCount: () => number;
|
|
76
|
-
resetResultsCount: () => void;
|
|
77
|
-
};
|
|
78
|
-
lastResult: () => ReduxService | undefined;
|
|
79
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
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
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Gets the layer from the store using the serviceUrl and layerName
|
|
90
|
-
*
|
|
91
|
-
* Example: layers = getLayersFromService(store, 'https://geoservices.knmi.nl/...')
|
|
92
|
-
* @param {object} store store: object - object from which the layers state will be extracted
|
|
93
|
-
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
94
|
-
* @returns {array} returnType: ServiceLayer[] - All layers within the service object.
|
|
95
|
-
*/
|
|
96
|
-
export declare const getLayersFromServiceSelector: ((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
|
|
97
|
-
clearCache: () => void;
|
|
98
|
-
resultsCount: () => number;
|
|
99
|
-
resetResultsCount: () => void;
|
|
100
|
-
} & {
|
|
101
|
-
resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
|
|
102
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
|
|
103
|
-
clearCache: () => void;
|
|
104
|
-
resultsCount: () => number;
|
|
105
|
-
resetResultsCount: () => void;
|
|
106
|
-
};
|
|
107
|
-
lastResult: () => LayerProps[];
|
|
108
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
109
|
-
clearCache: () => void;
|
|
110
|
-
resultsCount: () => number;
|
|
111
|
-
resetResultsCount: () => void;
|
|
112
|
-
} & {
|
|
113
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
114
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
115
|
-
clearCache: () => void;
|
|
116
|
-
resultsCount: () => number;
|
|
117
|
-
resetResultsCount: () => void;
|
|
118
|
-
};
|
|
119
|
-
lastResult: () => ReduxService | undefined;
|
|
120
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
121
|
-
recomputations: () => number;
|
|
122
|
-
resetRecomputations: () => void;
|
|
123
|
-
dependencyRecomputations: () => number;
|
|
124
|
-
resetDependencyRecomputations: () => void;
|
|
125
|
-
} & {
|
|
126
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
127
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
128
|
-
}];
|
|
129
|
-
recomputations: () => number;
|
|
130
|
-
resetRecomputations: () => void;
|
|
131
|
-
dependencyRecomputations: () => number;
|
|
132
|
-
resetDependencyRecomputations: () => void;
|
|
133
|
-
} & {
|
|
134
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
135
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Gets the layer from the store using the serviceUrl and layerName
|
|
139
|
-
*
|
|
140
|
-
* Example: layer = getLayerFromService(store, 'https://geoservices.knmi.nl/...', 'radar')
|
|
141
|
-
* @param {object} store store: object - The application store
|
|
142
|
-
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
143
|
-
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
144
|
-
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
145
|
-
*/
|
|
146
|
-
export declare const getLayerFromService: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
|
|
147
|
-
clearCache: () => void;
|
|
148
|
-
resultsCount: () => number;
|
|
149
|
-
resetResultsCount: () => void;
|
|
150
|
-
} & {
|
|
151
|
-
resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
|
|
152
|
-
memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
|
|
153
|
-
clearCache: () => void;
|
|
154
|
-
resultsCount: () => number;
|
|
155
|
-
resetResultsCount: () => void;
|
|
156
|
-
};
|
|
157
|
-
lastResult: () => LayerProps | undefined;
|
|
158
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
|
|
159
|
-
clearCache: () => void;
|
|
160
|
-
resultsCount: () => number;
|
|
161
|
-
resetResultsCount: () => void;
|
|
162
|
-
} & {
|
|
163
|
-
resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
|
|
164
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
|
|
165
|
-
clearCache: () => void;
|
|
166
|
-
resultsCount: () => number;
|
|
167
|
-
resetResultsCount: () => void;
|
|
168
|
-
};
|
|
169
|
-
lastResult: () => LayerProps[];
|
|
170
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
171
|
-
clearCache: () => void;
|
|
172
|
-
resultsCount: () => number;
|
|
173
|
-
resetResultsCount: () => void;
|
|
174
|
-
} & {
|
|
175
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
176
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
177
|
-
clearCache: () => void;
|
|
178
|
-
resultsCount: () => number;
|
|
179
|
-
resetResultsCount: () => void;
|
|
180
|
-
};
|
|
181
|
-
lastResult: () => ReduxService | undefined;
|
|
182
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
183
|
-
recomputations: () => number;
|
|
184
|
-
resetRecomputations: () => void;
|
|
185
|
-
dependencyRecomputations: () => number;
|
|
186
|
-
resetDependencyRecomputations: () => void;
|
|
187
|
-
} & {
|
|
188
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
189
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
190
|
-
}];
|
|
191
|
-
recomputations: () => number;
|
|
192
|
-
resetRecomputations: () => void;
|
|
193
|
-
dependencyRecomputations: () => number;
|
|
194
|
-
resetDependencyRecomputations: () => void;
|
|
195
|
-
} & {
|
|
196
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
197
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
198
|
-
}, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
|
|
199
|
-
recomputations: () => number;
|
|
200
|
-
resetRecomputations: () => void;
|
|
201
|
-
dependencyRecomputations: () => number;
|
|
202
|
-
resetDependencyRecomputations: () => void;
|
|
203
|
-
} & {
|
|
204
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
205
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Gets the layers stylelist from the servicestore using the serviceUrl and layerName
|
|
209
|
-
*
|
|
210
|
-
* Example: layerStyles = getLayerStyles(store, layerService, layerName);
|
|
211
|
-
* @param {object} store store: object - store from which the layers state will be extracted
|
|
212
|
-
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
213
|
-
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
214
|
-
* @returns {array} returnType: Style[] - array containing layer styles
|
|
215
|
-
*/
|
|
216
|
-
export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => Style[]) & {
|
|
217
|
-
clearCache: () => void;
|
|
218
|
-
resultsCount: () => number;
|
|
219
|
-
resetResultsCount: () => void;
|
|
220
|
-
} & {
|
|
221
|
-
resultFunc: (resultFuncArgs_0: LayerProps | undefined) => Style[];
|
|
222
|
-
memoizedResultFunc: ((resultFuncArgs_0: LayerProps | undefined) => Style[]) & {
|
|
223
|
-
clearCache: () => void;
|
|
224
|
-
resultsCount: () => number;
|
|
225
|
-
resetResultsCount: () => void;
|
|
226
|
-
};
|
|
227
|
-
lastResult: () => Style[];
|
|
228
|
-
dependencies: [((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
|
|
229
|
-
clearCache: () => void;
|
|
230
|
-
resultsCount: () => number;
|
|
231
|
-
resetResultsCount: () => void;
|
|
232
|
-
} & {
|
|
233
|
-
resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
|
|
234
|
-
memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
|
|
235
|
-
clearCache: () => void;
|
|
236
|
-
resultsCount: () => number;
|
|
237
|
-
resetResultsCount: () => void;
|
|
238
|
-
};
|
|
239
|
-
lastResult: () => LayerProps | undefined;
|
|
240
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
|
|
241
|
-
clearCache: () => void;
|
|
242
|
-
resultsCount: () => number;
|
|
243
|
-
resetResultsCount: () => void;
|
|
244
|
-
} & {
|
|
245
|
-
resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
|
|
246
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
|
|
247
|
-
clearCache: () => void;
|
|
248
|
-
resultsCount: () => number;
|
|
249
|
-
resetResultsCount: () => void;
|
|
250
|
-
};
|
|
251
|
-
lastResult: () => LayerProps[];
|
|
252
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
253
|
-
clearCache: () => void;
|
|
254
|
-
resultsCount: () => number;
|
|
255
|
-
resetResultsCount: () => void;
|
|
256
|
-
} & {
|
|
257
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
258
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
259
|
-
clearCache: () => void;
|
|
260
|
-
resultsCount: () => number;
|
|
261
|
-
resetResultsCount: () => void;
|
|
262
|
-
};
|
|
263
|
-
lastResult: () => ReduxService | undefined;
|
|
264
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
265
|
-
recomputations: () => number;
|
|
266
|
-
resetRecomputations: () => void;
|
|
267
|
-
dependencyRecomputations: () => number;
|
|
268
|
-
resetDependencyRecomputations: () => void;
|
|
269
|
-
} & {
|
|
270
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
271
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
272
|
-
}];
|
|
273
|
-
recomputations: () => number;
|
|
274
|
-
resetRecomputations: () => void;
|
|
275
|
-
dependencyRecomputations: () => number;
|
|
276
|
-
resetDependencyRecomputations: () => void;
|
|
277
|
-
} & {
|
|
278
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
279
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
280
|
-
}, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
|
|
281
|
-
recomputations: () => number;
|
|
282
|
-
resetRecomputations: () => void;
|
|
283
|
-
dependencyRecomputations: () => number;
|
|
284
|
-
resetDependencyRecomputations: () => void;
|
|
285
|
-
} & {
|
|
286
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
287
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
288
|
-
}];
|
|
289
|
-
recomputations: () => number;
|
|
290
|
-
resetRecomputations: () => void;
|
|
291
|
-
dependencyRecomputations: () => number;
|
|
292
|
-
resetDependencyRecomputations: () => void;
|
|
293
|
-
} & {
|
|
294
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
295
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* Gets the layer title from the servicestore using the serviceUrl and layerName
|
|
299
|
-
*
|
|
300
|
-
* Example: layerStyles = getLayerTitle(store, layerService, layerName);
|
|
301
|
-
* @param {object} store store: object - store from which the layers state will be extracted
|
|
302
|
-
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
303
|
-
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
304
|
-
* @returns {array} returnType: string - string containing layer title
|
|
305
|
-
*/
|
|
306
|
-
export declare const getLayerTitle: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => string | undefined) & {
|
|
307
|
-
clearCache: () => void;
|
|
308
|
-
resultsCount: () => number;
|
|
309
|
-
resetResultsCount: () => void;
|
|
310
|
-
} & {
|
|
311
|
-
resultFunc: (resultFuncArgs_0: LayerProps | undefined) => string | undefined;
|
|
312
|
-
memoizedResultFunc: ((resultFuncArgs_0: LayerProps | undefined) => string | undefined) & {
|
|
313
|
-
clearCache: () => void;
|
|
314
|
-
resultsCount: () => number;
|
|
315
|
-
resetResultsCount: () => void;
|
|
316
|
-
};
|
|
317
|
-
lastResult: () => string | undefined;
|
|
318
|
-
dependencies: [((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
|
|
319
|
-
clearCache: () => void;
|
|
320
|
-
resultsCount: () => number;
|
|
321
|
-
resetResultsCount: () => void;
|
|
322
|
-
} & {
|
|
323
|
-
resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
|
|
324
|
-
memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
|
|
325
|
-
clearCache: () => void;
|
|
326
|
-
resultsCount: () => number;
|
|
327
|
-
resetResultsCount: () => void;
|
|
328
|
-
};
|
|
329
|
-
lastResult: () => LayerProps | undefined;
|
|
330
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
|
|
331
|
-
clearCache: () => void;
|
|
332
|
-
resultsCount: () => number;
|
|
333
|
-
resetResultsCount: () => void;
|
|
334
|
-
} & {
|
|
335
|
-
resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
|
|
336
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
|
|
337
|
-
clearCache: () => void;
|
|
338
|
-
resultsCount: () => number;
|
|
339
|
-
resetResultsCount: () => void;
|
|
340
|
-
};
|
|
341
|
-
lastResult: () => LayerProps[];
|
|
342
|
-
dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
|
|
343
|
-
clearCache: () => void;
|
|
344
|
-
resultsCount: () => number;
|
|
345
|
-
resetResultsCount: () => void;
|
|
346
|
-
} & {
|
|
347
|
-
resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
|
|
348
|
-
memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
|
|
349
|
-
clearCache: () => void;
|
|
350
|
-
resultsCount: () => number;
|
|
351
|
-
resetResultsCount: () => void;
|
|
352
|
-
};
|
|
353
|
-
lastResult: () => ReduxService | undefined;
|
|
354
|
-
dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
|
|
355
|
-
recomputations: () => number;
|
|
356
|
-
resetRecomputations: () => void;
|
|
357
|
-
dependencyRecomputations: () => number;
|
|
358
|
-
resetDependencyRecomputations: () => void;
|
|
359
|
-
} & {
|
|
360
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
361
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
362
|
-
}];
|
|
363
|
-
recomputations: () => number;
|
|
364
|
-
resetRecomputations: () => void;
|
|
365
|
-
dependencyRecomputations: () => number;
|
|
366
|
-
resetDependencyRecomputations: () => void;
|
|
367
|
-
} & {
|
|
368
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
369
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
370
|
-
}, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
|
|
371
|
-
recomputations: () => number;
|
|
372
|
-
resetRecomputations: () => void;
|
|
373
|
-
dependencyRecomputations: () => number;
|
|
374
|
-
resetDependencyRecomputations: () => void;
|
|
375
|
-
} & {
|
|
376
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
377
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
378
|
-
}];
|
|
379
|
-
recomputations: () => number;
|
|
380
|
-
resetRecomputations: () => void;
|
|
381
|
-
dependencyRecomputations: () => number;
|
|
382
|
-
resetDependencyRecomputations: () => void;
|
|
383
|
-
} & {
|
|
384
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
385
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
386
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ServiceInterface, SystemScope } from '@opengeoweb/shared';
|
|
2
|
-
import type { LayerProps } from '@opengeoweb/webmap';
|
|
3
|
-
export interface InitialService {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
url: string;
|
|
7
|
-
scope?: SystemScope;
|
|
8
|
-
abstract?: string;
|
|
9
|
-
}
|
|
10
|
-
export type NoIdService = Omit<InitialService, 'id'>;
|
|
11
|
-
export type UserAddedServices = Record<string, NoIdService>;
|
|
12
|
-
export type Services = Record<string, ReduxService>;
|
|
13
|
-
export interface ReduxService {
|
|
14
|
-
id?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
serviceUrl?: string;
|
|
17
|
-
active?: boolean;
|
|
18
|
-
layers?: ServiceLayer[];
|
|
19
|
-
scope?: SystemScope;
|
|
20
|
-
type?: ServiceInterface;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
Used in the services object of webmap to keep a list of available layers in the service
|
|
24
|
-
*/
|
|
25
|
-
export type ServiceLayer = LayerProps;
|
|
26
|
-
export interface ServiceState {
|
|
27
|
-
byId: Services;
|
|
28
|
-
allIds: string[];
|
|
29
|
-
}
|
|
30
|
-
export interface SetLayersForServicePayload {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
serviceUrl: string;
|
|
34
|
-
abstract?: string;
|
|
35
|
-
layers: ServiceLayer[];
|
|
36
|
-
scope: SystemScope;
|
|
37
|
-
isUpdating?: boolean;
|
|
38
|
-
type?: ServiceInterface;
|
|
39
|
-
}
|
|
40
|
-
export interface MapStoreRemoveServicePayload {
|
|
41
|
-
id: string;
|
|
42
|
-
serviceUrl: string;
|
|
43
|
-
}
|
|
44
|
-
export interface FetchInitialServicesPayload {
|
|
45
|
-
services: InitialService[];
|
|
46
|
-
}
|
|
47
|
-
export interface ServiceFilterSettings {
|
|
48
|
-
enabledServiceIds: string[];
|
|
49
|
-
searchString: string;
|
|
50
|
-
checkedFilterIds: string[];
|
|
51
|
-
allFiltersActive: boolean;
|
|
52
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Style } from '@opengeoweb/webmap';
|
|
2
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
3
|
-
import type { serviceTypes } from './service';
|
|
4
|
-
export declare const WmLayerWithoutTimeDimension: WMLayer, WmMultiDimensionLayer: WMLayer, layerWithoutTimeDimension: import("@opengeoweb/webmap").LayerOptions;
|
|
5
|
-
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
6
|
-
export declare const defaultReduxServices: serviceTypes.Services;
|
|
7
|
-
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
8
|
-
export declare const WmMultiDimensionServices: serviceTypes.Services;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LayerType } from '@opengeoweb/webmap';
|
|
2
|
-
import type { CoreAppStore } from '../types';
|
|
3
|
-
import type { layerTypes } from './layer';
|
|
4
|
-
import type { mapTypes } from './map';
|
|
5
|
-
import type { WebMapStateModuleState } from './types';
|
|
6
|
-
export declare const createLayersState: (layerId: string, props?: {}) => layerTypes.LayerState;
|
|
7
|
-
export declare const createMultipleLayersState: (layers: layerTypes.Layer[], mapId: string) => layerTypes.LayerState;
|
|
8
|
-
export declare const createWebmapState: (...mapIds: string[]) => mapTypes.WebMapState;
|
|
9
|
-
export declare const createMapDimensionsState: (dimensions?: mapTypes.Dimension[], ...mapIds: string[]) => mapTypes.WebMapState;
|
|
10
|
-
export declare const webmapStateWithAddedLayer: (layerType: LayerType, layerId: string, mapId: string, dimensions?: mapTypes.Dimension[]) => mapTypes.WebMapState;
|
|
11
|
-
export declare const mockStateMapWithLayer: (layer: layerTypes.Layer, mapId: string) => CoreAppStore;
|
|
12
|
-
export declare const mockLinkedState: () => CoreAppStore;
|
|
13
|
-
export declare const mockStateMapWithMultipleLayers: (layers: layerTypes.Layer[], mapId: string) => CoreAppStore;
|
|
14
|
-
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
|
15
|
-
export declare const mockStateMapWithAnimationDelayWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
|
16
|
-
export declare const mockStateMapWithTimeSliderSpanWithoutLayers: (mapId: string, timeSliderSpan: number) => WebMapStateModuleState;
|
|
17
|
-
export declare const mockStateMapWithDimensions: (layer: layerTypes.Layer, mapId: string) => WebMapStateModuleState;
|
|
18
|
-
export declare const mockStateMapWithTimeStepWithoutLayers: (mapId: string, timeStep: number) => WebMapStateModuleState;
|
package/src/store/map/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { LayerState } from './layer/types';
|
|
2
|
-
import type { WebMapState } from './map/types';
|
|
3
|
-
import type { ServiceState } from './service/types';
|
|
4
|
-
export * from './map/types';
|
|
5
|
-
export * from './layer/types';
|
|
6
|
-
export type * from './service/types';
|
|
7
|
-
export interface WebMapStateModuleState {
|
|
8
|
-
webmap?: WebMapState;
|
|
9
|
-
services?: ServiceState;
|
|
10
|
-
layers?: LayerState;
|
|
11
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { WebMapStateModuleState } from '../../map/types';
|
|
2
|
-
export declare const openlayersListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WebMapStateModuleState, import("redux-thunk").ThunkDispatch<WebMapStateModuleState, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Observable, View } from 'ol';
|
|
2
|
-
export declare const copyView: (view: View) => View;
|
|
3
|
-
/**
|
|
4
|
-
* The StoredView objects keep references to OpenLayers View objects that may be shared
|
|
5
|
-
* between multiple maps (when maps are pan/zoom synced).
|
|
6
|
-
* This file then offers and API for each map to retrieve the StoredView object
|
|
7
|
-
* that is relevant for the current workspace configuration.
|
|
8
|
-
*
|
|
9
|
-
* React is functional, but OpenLayers is object oriented.
|
|
10
|
-
* This component sits in between the two and thus you can make an argument for either style.
|
|
11
|
-
* Object oriented was chosen since:
|
|
12
|
-
* - This allows us to use OpenLayers's Observable as a base class to provide event handling,
|
|
13
|
-
* which is useful for the implementation.
|
|
14
|
-
* - For this mechanism to work smoothly with OpenLayers,
|
|
15
|
-
* we need to pass the exact same View object reference for all maps that are synchronized. Redux stores cannot be used in this context and prop drilling and/or context providers would likely lead to more invasive implementations.
|
|
16
|
-
*/
|
|
17
|
-
export declare class StoredView extends Observable {
|
|
18
|
-
name: string;
|
|
19
|
-
view: View;
|
|
20
|
-
constructor(name: string, view: View);
|
|
21
|
-
setView(view: View): void;
|
|
22
|
-
}
|
|
23
|
-
export declare const clearSyncGroupViewStore: () => void;
|
|
24
|
-
export declare const getViewObjectForMapId: (id: string) => StoredView;
|
|
25
|
-
export declare const createViewObjectForNewMap: (createFromId: string, newId: string) => void;
|
|
26
|
-
export declare const getViewObjectForSyncGroup: (id: string) => StoredView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import type { Draft } from 'immer';
|
|
3
|
-
import type { NavigateBackOrForwardPayload, NavigateToUrlPayload } from './types';
|
|
4
|
-
export declare const initialState: {};
|
|
5
|
-
export declare const routerReducer: import("redux").Reducer<{}>, routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
6
|
-
navigateToUrl: (_draft: Draft<unknown>, _action: PayloadAction<NavigateToUrlPayload>) => void;
|
|
7
|
-
navigateBackOrForward: (_draft: Draft<unknown>, _action: PayloadAction<NavigateBackOrForwardPayload>) => void;
|
|
8
|
-
}, "router">;
|
|
9
|
-
export type RouterActions = ReturnType<typeof routerActions.navigateToUrl>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/store/store.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { DevToolsEnhancerOptions, ListenerMiddleware, Store, StoreEnhancer } from '@reduxjs/toolkit';
|
|
2
|
-
import type { CommonModuleState } from './common';
|
|
3
|
-
import type { DrawtoolModuleStore } from './drawingTool/reducer';
|
|
4
|
-
import type { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
|
|
5
|
-
import type { SynchronizationGroupModuleState } from './generic/syncGroups/types';
|
|
6
|
-
import type { WebMapStateModuleState } from './map';
|
|
7
|
-
import type { UIModuleState } from './ui/types';
|
|
8
|
-
import type { ReducerMap } from './unifyReducerMaps';
|
|
9
|
-
export declare const storeReducerMap: {
|
|
10
|
-
webmap: import("redux").Reducer<import("./map/types").WebMapState>;
|
|
11
|
-
services: import("redux").Reducer<import("./map/types").ServiceState>;
|
|
12
|
-
layers: import("redux").Reducer<import("./map/types").LayerState>;
|
|
13
|
-
syncGroups: import("redux").Reducer<import("./generic/syncGroups/types").SynchronizationGroupState>;
|
|
14
|
-
loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("./generic/loadingIndicator/types").LoadingIndicatorType, string>>;
|
|
15
|
-
ui: import("redux").Reducer<import("./ui/types").UIStoreType>;
|
|
16
|
-
drawingtools: import("redux").Reducer<import("./drawingTool/reducer").DrawingToolState>;
|
|
17
|
-
router: import("redux").Reducer<{}>;
|
|
18
|
-
common: import("redux").Reducer<{
|
|
19
|
-
auth: import("./common/auth/types").AuthStore;
|
|
20
|
-
}, import("redux").UnknownAction, Partial<{
|
|
21
|
-
auth: import("./common/auth/types").AuthStore | undefined;
|
|
22
|
-
}>>;
|
|
23
|
-
};
|
|
24
|
-
export declare const storeMiddlewares: (ListenerMiddleware<import("./types").CoreAppStore, import("redux-thunk").ThunkDispatch<import("./types").CoreAppStore, unknown, import("redux").UnknownAction>, unknown> | ListenerMiddleware<import("./router/types").RouterModuleStore, import("redux-thunk").ThunkDispatch<import("./router/types").RouterModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
|
25
|
-
export declare const createMockStore: (mockState?: WebMapStateModuleState | SynchronizationGroupModuleState | LoadingIndicatorModuleState | UIModuleState | CommonModuleState | DrawtoolModuleStore) => Store;
|
|
26
|
-
export { getViewObjectForSyncGroup, getViewObjectForMapId, createViewObjectForNewMap, } from './mapStore/openlayers/syncGroupViewStore';
|
|
27
|
-
/**
|
|
28
|
-
* This creates an OpenGeoWeb redux store for redux connected components
|
|
29
|
-
*
|
|
30
|
-
* @param preloadedState Initial state for your application
|
|
31
|
-
* @param extraReducers Additional reducers, you can pass your own reducers. See apps/geoweb/src/app/store.ts for how it is used in GeoWeb.
|
|
32
|
-
* @param extraMiddleWares Additional middlewares
|
|
33
|
-
* @param extraEnhancer Custom enhancers
|
|
34
|
-
* @param enableDevTools Set to true to enable redux devtools.
|
|
35
|
-
* @returns A redux store you can use with the core components
|
|
36
|
-
*/
|
|
37
|
-
export declare const configureOpenGeoWebStore: (preloadedState?: object, extraReducers?: ReducerMap, extraMiddleWares?: ListenerMiddleware[], extraEnhancers?: StoreEnhancer[], enableDevTools?: boolean | DevToolsEnhancerOptions) => Store;
|
package/src/store/types.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CommonModuleState, uiTypes } from '.';
|
|
2
|
-
import type { DrawtoolModuleStore } from './drawingTool';
|
|
3
|
-
import type { LoadingIndicatorModuleState } from './generic/loadingIndicator/types';
|
|
4
|
-
import type { SynchronizationGroupModuleState } from './generic/syncGroups/types';
|
|
5
|
-
import type { WebMapStateModuleState } from './map/types';
|
|
6
|
-
export interface CoreAppStore extends SynchronizationGroupModuleState, LoadingIndicatorModuleState, uiTypes.UIModuleState, WebMapStateModuleState, CommonModuleState, DrawtoolModuleStore {
|
|
7
|
-
}
|
package/src/store/ui/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import type { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
|
|
3
|
-
interface CreateUIDialogElementProps {
|
|
4
|
-
activeMapId: string;
|
|
5
|
-
type: DialogType;
|
|
6
|
-
setOpen: boolean;
|
|
7
|
-
source?: Source;
|
|
8
|
-
sourcePanelId?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const moveToTop: <Type>(list: Type[], element: Type) => Type[];
|
|
11
|
-
export declare const createUIDialogElement: ({ activeMapId, type, setOpen, source, sourcePanelId, }: CreateUIDialogElementProps) => UIType;
|
|
12
|
-
export declare const initialState: UIStoreType;
|
|
13
|
-
export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
|
|
14
|
-
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
15
|
-
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
16
|
-
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
17
|
-
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
18
|
-
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
19
|
-
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
20
|
-
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
21
|
-
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
22
|
-
closeDialogsForMapId: (draft: Draft<UIStoreType>, action: PayloadAction<{
|
|
23
|
-
mapId: string;
|
|
24
|
-
}>) => void;
|
|
25
|
-
}, "uiReducer", "uiReducer", import("@reduxjs/toolkit").SliceSelectors<UIStoreType>>;
|
|
26
|
-
export declare const uiReducer: import("redux").Reducer<UIStoreType>, uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
27
|
-
registerDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIRegisterDialogPayload>) => void;
|
|
28
|
-
unregisterDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIUnRegisterDialogPayload>) => void;
|
|
29
|
-
setActiveMapIdForDialog: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveMapIdForDialogPayload>) => void;
|
|
30
|
-
setToggleOpenDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleDialogPayload>) => void;
|
|
31
|
-
orderDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIOrderDialogPayload>) => void;
|
|
32
|
-
setActiveWindowId: (draft: Draft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
|
|
33
|
-
toggleIsLoadingDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
|
|
34
|
-
setErrorDialog: (draft: Draft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
|
|
35
|
-
closeDialogsForMapId: (draft: Draft<UIStoreType>, action: PayloadAction<{
|
|
36
|
-
mapId: string;
|
|
37
|
-
}>) => void;
|
|
38
|
-
}, "uiReducer">;
|
|
39
|
-
export {};
|