@opengeoweb/store 12.2.0 → 12.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +35 -19
- package/package.json +8 -8
- package/src/store/drawingTool/listener.d.ts +1 -1
- package/src/store/drawingTool/reducer.d.ts +2 -2
- package/src/store/drawingTool/selectors.d.ts +329 -25
- package/src/store/generic/listener.d.ts +1 -1
- package/src/store/generic/loadingIndicator/reducer.d.ts +10 -10
- package/src/store/generic/loadingIndicator/selectors.d.ts +252 -13
- package/src/store/generic/loadingIndicator/types.d.ts +1 -1
- package/src/store/generic/selectors.d.ts +309 -49
- package/src/store/generic/syncGroups/listener.d.ts +1 -1
- package/src/store/generic/syncGroups/reducer.d.ts +1 -1
- package/src/store/generic/syncGroups/selector.d.ts +19 -3
- package/src/store/generic/syncGroups/selectors.d.ts +241 -35
- package/src/store/map/layer/listeners.d.ts +1 -1
- package/src/store/map/layer/reducer.d.ts +1 -1
- package/src/store/map/layer/selectors.d.ts +1875 -145
- package/src/store/map/map/listener.d.ts +2 -2
- package/src/store/map/map/metronomeListener.d.ts +1 -1
- package/src/store/map/map/reducer.d.ts +1 -1
- package/src/store/map/map/selectors.d.ts +4166 -192
- package/src/store/map/service/listener.d.ts +4 -4
- package/src/store/map/service/selectors.d.ts +234 -18
- package/src/store/mapStore/openlayers/listener.d.ts +1 -1
- package/src/store/router/listener.d.ts +1 -1
- package/src/store/store.d.ts +5 -11
- package/src/store/ui/reducer.d.ts +7 -1
- package/src/store/ui/selectors.d.ts +191 -31
- package/src/store/ui/types.d.ts +3 -3
- package/src/store/unifyReducerMaps.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
2
|
import type { CoreAppStore } from '../types';
|
|
3
|
-
import type { UIModuleState, UIStoreType, UIType } from './types';
|
|
3
|
+
import type { DialogType, UIModuleState, UIStoreType, UIType } from './types';
|
|
4
4
|
export declare const useAppSelector: TypedUseSelectorHook<CoreAppStore>;
|
|
5
5
|
export declare const getUiStore: (store: UIModuleState) => UIStoreType;
|
|
6
6
|
/**
|
|
@@ -19,10 +19,26 @@ export declare const getDialogDetailsByType: (store: UIModuleState, dialogType:
|
|
|
19
19
|
* @param {string} dialogType type of the dialog
|
|
20
20
|
* @returns {boolean} returnType: boolean
|
|
21
21
|
*/
|
|
22
|
-
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string) => boolean) &
|
|
23
|
-
clearCache: () => void;
|
|
24
|
-
}> & {
|
|
22
|
+
export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string) => boolean) & {
|
|
25
23
|
clearCache: () => void;
|
|
24
|
+
resultsCount: () => number;
|
|
25
|
+
resetResultsCount: () => void;
|
|
26
|
+
} & {
|
|
27
|
+
resultFunc: (resultFuncArgs_0: UIType) => boolean;
|
|
28
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
resultsCount: () => number;
|
|
31
|
+
resetResultsCount: () => void;
|
|
32
|
+
};
|
|
33
|
+
lastResult: () => boolean;
|
|
34
|
+
dependencies: [(store: UIModuleState, dialogType: string) => UIType];
|
|
35
|
+
recomputations: () => number;
|
|
36
|
+
resetRecomputations: () => void;
|
|
37
|
+
dependencyRecomputations: () => number;
|
|
38
|
+
resetDependencyRecomputations: () => void;
|
|
39
|
+
} & {
|
|
40
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
41
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
26
42
|
};
|
|
27
43
|
/**
|
|
28
44
|
*For a given ui component: gets the active map Id
|
|
@@ -31,10 +47,26 @@ export declare const getisDialogOpen: ((state: UIModuleState, dialogType: string
|
|
|
31
47
|
* @param {string} dialogType type of the dialog
|
|
32
48
|
* @returns {string} returnType: string - the active map id
|
|
33
49
|
*/
|
|
34
|
-
export declare const getDialogMapId: ((state: UIModuleState, dialogType: string) => string) &
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
50
|
+
export declare const getDialogMapId: ((state: UIModuleState, dialogType: string) => string) & {
|
|
37
51
|
clearCache: () => void;
|
|
52
|
+
resultsCount: () => number;
|
|
53
|
+
resetResultsCount: () => void;
|
|
54
|
+
} & {
|
|
55
|
+
resultFunc: (resultFuncArgs_0: UIType) => string;
|
|
56
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & {
|
|
57
|
+
clearCache: () => void;
|
|
58
|
+
resultsCount: () => number;
|
|
59
|
+
resetResultsCount: () => void;
|
|
60
|
+
};
|
|
61
|
+
lastResult: () => string;
|
|
62
|
+
dependencies: [(store: UIModuleState, dialogType: string) => UIType];
|
|
63
|
+
recomputations: () => number;
|
|
64
|
+
resetRecomputations: () => void;
|
|
65
|
+
dependencyRecomputations: () => number;
|
|
66
|
+
resetDependencyRecomputations: () => void;
|
|
67
|
+
} & {
|
|
68
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
69
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
38
70
|
};
|
|
39
71
|
/**
|
|
40
72
|
*For a given ui component: gets the order of visible dialog
|
|
@@ -43,10 +75,26 @@ export declare const getDialogMapId: ((state: UIModuleState, dialogType: string)
|
|
|
43
75
|
* @param {DialogType} dialogType type of the dialog
|
|
44
76
|
* @returns {number} the higher the order number the higher the zIndex
|
|
45
77
|
*/
|
|
46
|
-
export declare const getDialogOrder: ((state: UIModuleState, dialogType: string) => number) &
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
}> & {
|
|
78
|
+
export declare const getDialogOrder: ((state: UIModuleState, dialogType: string) => number) & {
|
|
49
79
|
clearCache: () => void;
|
|
80
|
+
resultsCount: () => number;
|
|
81
|
+
resetResultsCount: () => void;
|
|
82
|
+
} & {
|
|
83
|
+
resultFunc: (resultFuncArgs_0: number) => number;
|
|
84
|
+
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
85
|
+
clearCache: () => void;
|
|
86
|
+
resultsCount: () => number;
|
|
87
|
+
resetResultsCount: () => void;
|
|
88
|
+
};
|
|
89
|
+
lastResult: () => number;
|
|
90
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => number];
|
|
91
|
+
recomputations: () => number;
|
|
92
|
+
resetRecomputations: () => void;
|
|
93
|
+
dependencyRecomputations: () => number;
|
|
94
|
+
resetDependencyRecomputations: () => void;
|
|
95
|
+
} & {
|
|
96
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
97
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
50
98
|
};
|
|
51
99
|
/**
|
|
52
100
|
*For a given ui component: returns if ordered on top
|
|
@@ -55,15 +103,47 @@ export declare const getDialogOrder: ((state: UIModuleState, dialogType: string)
|
|
|
55
103
|
* @param {DialogType} dialogType type of the dialog
|
|
56
104
|
* @returns {boolean}
|
|
57
105
|
*/
|
|
58
|
-
export declare const getDialogIsOrderedOnTop: ((state: UIModuleState, dialogType: string) => boolean) &
|
|
59
|
-
clearCache: () => void;
|
|
60
|
-
}> & {
|
|
106
|
+
export declare const getDialogIsOrderedOnTop: ((state: UIModuleState, dialogType: string) => boolean) & {
|
|
61
107
|
clearCache: () => void;
|
|
108
|
+
resultsCount: () => number;
|
|
109
|
+
resetResultsCount: () => void;
|
|
110
|
+
} & {
|
|
111
|
+
resultFunc: (resultFuncArgs_0: boolean) => boolean;
|
|
112
|
+
memoizedResultFunc: ((resultFuncArgs_0: boolean) => boolean) & {
|
|
113
|
+
clearCache: () => void;
|
|
114
|
+
resultsCount: () => number;
|
|
115
|
+
resetResultsCount: () => void;
|
|
116
|
+
};
|
|
117
|
+
lastResult: () => boolean;
|
|
118
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => boolean];
|
|
119
|
+
recomputations: () => number;
|
|
120
|
+
resetRecomputations: () => void;
|
|
121
|
+
dependencyRecomputations: () => number;
|
|
122
|
+
resetDependencyRecomputations: () => void;
|
|
123
|
+
} & {
|
|
124
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
125
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
62
126
|
};
|
|
63
|
-
export declare const getDialogSource: ((state: UIModuleState, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) &
|
|
64
|
-
clearCache: () => void;
|
|
65
|
-
}> & {
|
|
127
|
+
export declare const getDialogSource: ((state: UIModuleState, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & {
|
|
66
128
|
clearCache: () => void;
|
|
129
|
+
resultsCount: () => number;
|
|
130
|
+
resetResultsCount: () => void;
|
|
131
|
+
} & {
|
|
132
|
+
resultFunc: (resultFuncArgs_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source;
|
|
133
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & {
|
|
134
|
+
clearCache: () => void;
|
|
135
|
+
resultsCount: () => number;
|
|
136
|
+
resetResultsCount: () => void;
|
|
137
|
+
};
|
|
138
|
+
lastResult: () => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source;
|
|
139
|
+
dependencies: [(store: UIModuleState, dialogType: string) => UIType];
|
|
140
|
+
recomputations: () => number;
|
|
141
|
+
resetRecomputations: () => void;
|
|
142
|
+
dependencyRecomputations: () => number;
|
|
143
|
+
resetDependencyRecomputations: () => void;
|
|
144
|
+
} & {
|
|
145
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
146
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
67
147
|
};
|
|
68
148
|
/**
|
|
69
149
|
* Get the active window that should receive keyboard shortcuts
|
|
@@ -72,10 +152,26 @@ export declare const getDialogSource: ((state: UIModuleState, dialogType: string
|
|
|
72
152
|
* @param {object} store store object from which the window state will be extracted
|
|
73
153
|
* @returns {string} active window id
|
|
74
154
|
*/
|
|
75
|
-
export declare const getActiveWindowId: ((state: UIModuleState) => string) &
|
|
76
|
-
clearCache: () => void;
|
|
77
|
-
}> & {
|
|
155
|
+
export declare const getActiveWindowId: ((state: UIModuleState) => string) & {
|
|
78
156
|
clearCache: () => void;
|
|
157
|
+
resultsCount: () => number;
|
|
158
|
+
resetResultsCount: () => void;
|
|
159
|
+
} & {
|
|
160
|
+
resultFunc: (resultFuncArgs_0: UIStoreType) => string;
|
|
161
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIStoreType) => string) & {
|
|
162
|
+
clearCache: () => void;
|
|
163
|
+
resultsCount: () => number;
|
|
164
|
+
resetResultsCount: () => void;
|
|
165
|
+
};
|
|
166
|
+
lastResult: () => string;
|
|
167
|
+
dependencies: [(store: UIModuleState) => UIStoreType];
|
|
168
|
+
recomputations: () => number;
|
|
169
|
+
resetRecomputations: () => void;
|
|
170
|
+
dependencyRecomputations: () => number;
|
|
171
|
+
resetDependencyRecomputations: () => void;
|
|
172
|
+
} & {
|
|
173
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
174
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
79
175
|
};
|
|
80
176
|
/**
|
|
81
177
|
* Gets the panelId of which the dialog is opened from
|
|
@@ -84,10 +180,26 @@ export declare const getActiveWindowId: ((state: UIModuleState) => string) & imp
|
|
|
84
180
|
* @param {object} store store object from which the panelId state will be extracted
|
|
85
181
|
* @returns {string} the dialog type
|
|
86
182
|
*/
|
|
87
|
-
export declare const getSourcePanelId: ((state: UIModuleState, dialogType: string) => string) &
|
|
88
|
-
clearCache: () => void;
|
|
89
|
-
}> & {
|
|
183
|
+
export declare const getSourcePanelId: ((state: UIModuleState, dialogType: string) => string) & {
|
|
90
184
|
clearCache: () => void;
|
|
185
|
+
resultsCount: () => number;
|
|
186
|
+
resetResultsCount: () => void;
|
|
187
|
+
} & {
|
|
188
|
+
resultFunc: (resultFuncArgs_0: UIType | undefined) => string;
|
|
189
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType | undefined) => string) & {
|
|
190
|
+
clearCache: () => void;
|
|
191
|
+
resultsCount: () => number;
|
|
192
|
+
resetResultsCount: () => void;
|
|
193
|
+
};
|
|
194
|
+
lastResult: () => string;
|
|
195
|
+
dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType | undefined];
|
|
196
|
+
recomputations: () => number;
|
|
197
|
+
resetRecomputations: () => void;
|
|
198
|
+
dependencyRecomputations: () => number;
|
|
199
|
+
resetDependencyRecomputations: () => void;
|
|
200
|
+
} & {
|
|
201
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
202
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
91
203
|
};
|
|
92
204
|
/**
|
|
93
205
|
* Gets if this is the active window
|
|
@@ -96,19 +208,67 @@ export declare const getSourcePanelId: ((state: UIModuleState, dialogType: strin
|
|
|
96
208
|
* @param {object} store store object from which the window state will be extracted
|
|
97
209
|
* @returns {string} active window id
|
|
98
210
|
*/
|
|
99
|
-
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) &
|
|
100
|
-
clearCache: () => void;
|
|
101
|
-
}> & {
|
|
211
|
+
export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & {
|
|
102
212
|
clearCache: () => void;
|
|
213
|
+
resultsCount: () => number;
|
|
214
|
+
resetResultsCount: () => void;
|
|
215
|
+
} & {
|
|
216
|
+
resultFunc: (resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean;
|
|
217
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean) & {
|
|
218
|
+
clearCache: () => void;
|
|
219
|
+
resultsCount: () => number;
|
|
220
|
+
resetResultsCount: () => void;
|
|
221
|
+
};
|
|
222
|
+
lastResult: () => boolean;
|
|
223
|
+
dependencies: [(store: UIModuleState) => UIStoreType, (_store: UIModuleState, viewId: string) => string];
|
|
224
|
+
recomputations: () => number;
|
|
225
|
+
resetRecomputations: () => void;
|
|
226
|
+
dependencyRecomputations: () => number;
|
|
227
|
+
resetDependencyRecomputations: () => void;
|
|
228
|
+
} & {
|
|
229
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
230
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
103
231
|
};
|
|
104
|
-
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: string) => boolean) &
|
|
105
|
-
clearCache: () => void;
|
|
106
|
-
}> & {
|
|
232
|
+
export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: string) => boolean) & {
|
|
107
233
|
clearCache: () => void;
|
|
234
|
+
resultsCount: () => number;
|
|
235
|
+
resetResultsCount: () => void;
|
|
236
|
+
} & {
|
|
237
|
+
resultFunc: (resultFuncArgs_0: UIType) => boolean;
|
|
238
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & {
|
|
239
|
+
clearCache: () => void;
|
|
240
|
+
resultsCount: () => number;
|
|
241
|
+
resetResultsCount: () => void;
|
|
242
|
+
};
|
|
243
|
+
lastResult: () => boolean;
|
|
244
|
+
dependencies: [(store: UIModuleState, dialogType: string) => UIType];
|
|
245
|
+
recomputations: () => number;
|
|
246
|
+
resetRecomputations: () => void;
|
|
247
|
+
dependencyRecomputations: () => number;
|
|
248
|
+
resetDependencyRecomputations: () => void;
|
|
249
|
+
} & {
|
|
250
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
251
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
108
252
|
};
|
|
109
|
-
export declare const getDialogError: ((state: UIModuleState, dialogType: string) => string) &
|
|
110
|
-
clearCache: () => void;
|
|
111
|
-
}> & {
|
|
253
|
+
export declare const getDialogError: ((state: UIModuleState, dialogType: string) => string) & {
|
|
112
254
|
clearCache: () => void;
|
|
255
|
+
resultsCount: () => number;
|
|
256
|
+
resetResultsCount: () => void;
|
|
257
|
+
} & {
|
|
258
|
+
resultFunc: (resultFuncArgs_0: UIType) => string;
|
|
259
|
+
memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & {
|
|
260
|
+
clearCache: () => void;
|
|
261
|
+
resultsCount: () => number;
|
|
262
|
+
resetResultsCount: () => void;
|
|
263
|
+
};
|
|
264
|
+
lastResult: () => string;
|
|
265
|
+
dependencies: [(store: UIModuleState, dialogType: string) => UIType];
|
|
266
|
+
recomputations: () => number;
|
|
267
|
+
resetRecomputations: () => void;
|
|
268
|
+
dependencyRecomputations: () => number;
|
|
269
|
+
resetDependencyRecomputations: () => void;
|
|
270
|
+
} & {
|
|
271
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
272
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
113
273
|
};
|
|
114
274
|
export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare enum DialogTypes {
|
|
|
6
6
|
SyncGroups = "syncGroups",
|
|
7
7
|
TimeSeriesSelect = "timeSeriesSelect",
|
|
8
8
|
TimeSeriesManager = "timeSeriesManager",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
TimeSeriesInfo = "timeSeriesInfo",
|
|
10
|
+
TimeSeriesLocationInfo = "timeSeriesLocationInfo",
|
|
11
11
|
KeywordFilter = "keywordFilter",
|
|
12
12
|
DimensionSelectEnsembleMember = "dimensionSelect-ensemble_member",
|
|
13
13
|
DimensionSelectElevation = "dimensionSelect-elevation",
|
|
@@ -20,7 +20,7 @@ export declare enum DialogTypes {
|
|
|
20
20
|
Search = "search",
|
|
21
21
|
AreaObjectLoader = "areaObjectLoader",
|
|
22
22
|
SoundingsSources = "soundingsSources",
|
|
23
|
-
|
|
23
|
+
SoundingsLocations = "soundingsLocations"
|
|
24
24
|
}
|
|
25
25
|
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
26
26
|
export type { Source };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Action, Reducer } from '@reduxjs/toolkit';
|
|
2
|
-
export type ReducerMap = Record<string, Reducer<any, Action<
|
|
2
|
+
export type ReducerMap = Record<string, Reducer<any, Action<string>>>;
|
|
3
3
|
export declare const unifyReducerMaps: (reducerMaps: ReducerMap[]) => ReducerMap;
|