@opengeoweb/time-series 15.1.0 → 15.2.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 +1111 -753
- package/package.json +11 -12
- package/src/lib/components/TimeSeries/TimeSeriesConnectWrapper.d.ts +2 -2
- package/src/lib/components/TimeSeriesManager/ParameterInfo/ParameterInfoButtonConnect.d.ts +1 -2
- package/src/lib/components/TimeSeriesManager/ParameterList.d.ts +1 -0
- package/src/lib/components/TimeSeriesManager/PlotRows.d.ts +1 -0
- package/src/lib/components/TimeSeriesManager/TimeSeriesManager.d.ts +1 -0
- package/src/lib/components/TimeSeriesManager/TimeSeriesManagerMapButtonConnect.d.ts +0 -2
- package/src/lib/components/TimeSeriesManager/TimeSeriesManagerRowAccordion.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/ServiceChips/ServiceChipConnect.d.ts +2 -0
- package/src/lib/components/TimeSeriesSelect/ServiceOptionsConnect.d.ts +5 -1
- package/src/lib/components/TimeSeriesSelect/ServicePopup/ServicePopupConnect.d.ts +5 -1
- package/src/lib/components/TimeSeriesSelect/ServicePopup/ServicePopupDialogConnect.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSearchConnect.d.ts +4 -1
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelect.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelectButtonConnect.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelectList.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelectListConnect.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesServiceList.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/TimeSeriesServiceListConnect.d.ts +4 -1
- package/src/lib/store/reducer.d.ts +48 -37
- package/src/lib/store/selectors.d.ts +71 -81
- package/src/lib/store/store.d.ts +1 -1
- package/src/lib/store/types.d.ts +22 -1
- package/src/lib/components/TimeSeries/LocationDropdown/LocationDropdownRenderRow.d.ts +0 -3
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { TimeSeriesService } from '@opengeoweb/shared';
|
|
2
2
|
import type { syncGroupsTypes } from '@opengeoweb/store';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ServiceFilterChipsObject, ServiceFilterChipsObjectEntities, TimeSeriesPreset, TimeSeriesServicePopupObject, TimeSeriesStoreType, TimeSeriesState } from './types';
|
|
4
4
|
import type { GeoJsonWithService, Parameter, Plot, PlotPreset, TimeSeriesLocation } from '../components/TimeSeries/types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
5
|
+
interface TimeSeriesStateSlice {
|
|
6
|
+
timeSeries?: TimeSeriesState | TimeSeriesStoreType;
|
|
7
|
+
}
|
|
8
|
+
export declare const getPanelState: (state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined;
|
|
9
|
+
export declare const getPlotState: (state: TimeSeriesStateSlice, panelId?: string) => PlotPreset | undefined;
|
|
10
|
+
export declare const getTimeSeriesState: (state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined;
|
|
11
|
+
export declare const getMapId: (state: TimeSeriesStateSlice, panelId?: string) => string | undefined;
|
|
12
|
+
export declare const getPlotWithParameters: ((state: TimeSeriesStateSlice, _selectPlotId: string, panelId?: string | undefined) => Plot | undefined) & {
|
|
9
13
|
clearCache: () => void;
|
|
10
14
|
resultsCount: () => number;
|
|
11
15
|
resetResultsCount: () => void;
|
|
@@ -17,56 +21,56 @@ export declare const getPlotWithParameters: ((state: TimeSeriesModuleState, sele
|
|
|
17
21
|
resetResultsCount: () => void;
|
|
18
22
|
};
|
|
19
23
|
lastResult: () => Plot | undefined;
|
|
20
|
-
dependencies: [(state:
|
|
24
|
+
dependencies: [(state: TimeSeriesStateSlice, _selectPlotId: string, panelId?: string) => PlotPreset | undefined, (_: TimeSeriesStateSlice, selectPlotId: string) => string];
|
|
21
25
|
recomputations: () => number;
|
|
22
26
|
resetRecomputations: () => void;
|
|
23
27
|
dependencyRecomputations: () => number;
|
|
24
28
|
resetDependencyRecomputations: () => void;
|
|
25
29
|
} & {
|
|
26
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
27
30
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
31
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
28
32
|
};
|
|
29
|
-
export declare const getService: ((state:
|
|
33
|
+
export declare const getService: ((state: TimeSeriesStateSlice, _serviceId: string | undefined, _panelId?: string | undefined) => TimeSeriesService | undefined) & {
|
|
30
34
|
clearCache: () => void;
|
|
31
35
|
resultsCount: () => number;
|
|
32
36
|
resetResultsCount: () => void;
|
|
33
37
|
} & {
|
|
34
|
-
resultFunc: (resultFuncArgs_0: TimeSeriesStoreType | undefined, resultFuncArgs_1: string | undefined) => TimeSeriesService | undefined;
|
|
35
|
-
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesStoreType | undefined, resultFuncArgs_1: string | undefined) => TimeSeriesService | undefined) & {
|
|
38
|
+
resultFunc: (resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined, resultFuncArgs_1: string | undefined) => TimeSeriesService | undefined;
|
|
39
|
+
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined, resultFuncArgs_1: string | undefined) => TimeSeriesService | undefined) & {
|
|
36
40
|
clearCache: () => void;
|
|
37
41
|
resultsCount: () => number;
|
|
38
42
|
resetResultsCount: () => void;
|
|
39
43
|
};
|
|
40
44
|
lastResult: () => TimeSeriesService | undefined;
|
|
41
|
-
dependencies: [(state:
|
|
45
|
+
dependencies: [(state: TimeSeriesStateSlice, _serviceId: string | undefined, _panelId?: string) => TimeSeriesState | TimeSeriesStoreType | undefined, (_: TimeSeriesStateSlice, serviceId: string | undefined) => string | undefined];
|
|
42
46
|
recomputations: () => number;
|
|
43
47
|
resetRecomputations: () => void;
|
|
44
48
|
dependencyRecomputations: () => number;
|
|
45
49
|
resetDependencyRecomputations: () => void;
|
|
46
50
|
} & {
|
|
47
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
48
51
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
52
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
49
53
|
};
|
|
50
|
-
export declare const getServices: ((state:
|
|
54
|
+
export declare const getServices: ((state: TimeSeriesStateSlice, _panelId?: string | undefined) => TimeSeriesService[] | undefined) & {
|
|
51
55
|
clearCache: () => void;
|
|
52
56
|
resultsCount: () => number;
|
|
53
57
|
resetResultsCount: () => void;
|
|
54
58
|
} & {
|
|
55
|
-
resultFunc: (resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
56
|
-
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
59
|
+
resultFunc: (resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
60
|
+
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
57
61
|
clearCache: () => void;
|
|
58
62
|
resultsCount: () => number;
|
|
59
63
|
resetResultsCount: () => void;
|
|
60
64
|
};
|
|
61
65
|
lastResult: () => TimeSeriesService[] | undefined;
|
|
62
|
-
dependencies: [(state:
|
|
66
|
+
dependencies: [(state: TimeSeriesStateSlice, _panelId?: string) => TimeSeriesState | TimeSeriesStoreType | undefined];
|
|
63
67
|
recomputations: () => number;
|
|
64
68
|
resetRecomputations: () => void;
|
|
65
69
|
dependencyRecomputations: () => number;
|
|
66
70
|
resetDependencyRecomputations: () => void;
|
|
67
71
|
} & {
|
|
68
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
69
72
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
73
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
70
74
|
};
|
|
71
75
|
/**
|
|
72
76
|
* Returns search filter string
|
|
@@ -75,7 +79,7 @@ export declare const getServices: ((state: TimeSeriesModuleState) => TimeSeriesS
|
|
|
75
79
|
* @param {object} store store: object - store object
|
|
76
80
|
* @returns {array} returnType: string
|
|
77
81
|
*/
|
|
78
|
-
export declare const getSearchFilter: ((state:
|
|
82
|
+
export declare const getSearchFilter: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => string) & {
|
|
79
83
|
clearCache: () => void;
|
|
80
84
|
resultsCount: () => number;
|
|
81
85
|
resetResultsCount: () => void;
|
|
@@ -87,14 +91,14 @@ export declare const getSearchFilter: ((state: TimeSeriesModuleState) => string)
|
|
|
87
91
|
resetResultsCount: () => void;
|
|
88
92
|
};
|
|
89
93
|
lastResult: () => string;
|
|
90
|
-
dependencies: [(state:
|
|
94
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
91
95
|
recomputations: () => number;
|
|
92
96
|
resetRecomputations: () => void;
|
|
93
97
|
dependencyRecomputations: () => number;
|
|
94
98
|
resetDependencyRecomputations: () => void;
|
|
95
99
|
} & {
|
|
96
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
97
100
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
101
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
98
102
|
};
|
|
99
103
|
/**
|
|
100
104
|
* Returns all currently used parameters
|
|
@@ -103,7 +107,7 @@ export declare const getSearchFilter: ((state: TimeSeriesModuleState) => string)
|
|
|
103
107
|
* @param {object} store store: object - store object
|
|
104
108
|
* @returns {Parameter[]} returnType: Parameter[]
|
|
105
109
|
*/
|
|
106
|
-
export declare const getParametersInUse: ((state:
|
|
110
|
+
export declare const getParametersInUse: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => Parameter[]) & {
|
|
107
111
|
clearCache: () => void;
|
|
108
112
|
resultsCount: () => number;
|
|
109
113
|
resetResultsCount: () => void;
|
|
@@ -115,32 +119,17 @@ export declare const getParametersInUse: ((state: TimeSeriesModuleState) => Para
|
|
|
115
119
|
resetResultsCount: () => void;
|
|
116
120
|
};
|
|
117
121
|
lastResult: () => Parameter[];
|
|
118
|
-
dependencies: [(state:
|
|
122
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
119
123
|
recomputations: () => number;
|
|
120
124
|
resetRecomputations: () => void;
|
|
121
125
|
dependencyRecomputations: () => number;
|
|
122
126
|
resetDependencyRecomputations: () => void;
|
|
123
127
|
} & {
|
|
124
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
125
128
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
129
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
126
130
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
*
|
|
130
|
-
* Example getActiveServices(store);
|
|
131
|
-
* @param {object} store store: object - store object
|
|
132
|
-
* @returns {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
|
|
133
|
-
*/
|
|
134
|
-
export declare const getServiceFilterChips: (store: TimeSeriesModuleState) => ServiceFilterChipsObjectEntities;
|
|
135
|
-
export declare const getServiceFilterChipsDictionary: (state: TimeSeriesModuleState) => Record<string, import("./types").ServiceFilterChipsObject>, getServiceFilterChipsById: (state: TimeSeriesModuleState, id: string) => {
|
|
136
|
-
serviceId: string;
|
|
137
|
-
serviceName?: string | undefined;
|
|
138
|
-
serviceUrl: string;
|
|
139
|
-
type: import("@opengeoweb/shared").ServiceInterface;
|
|
140
|
-
enabled?: boolean | undefined;
|
|
141
|
-
scope?: import("@opengeoweb/shared").SystemScope | undefined;
|
|
142
|
-
isLoading?: boolean | undefined;
|
|
143
|
-
};
|
|
131
|
+
export declare const getServiceFilterChips: (store: TimeSeriesStateSlice, panelId?: string) => ServiceFilterChipsObjectEntities;
|
|
132
|
+
export declare const getServiceFilterChipsById: (store: TimeSeriesStateSlice, id: string, panelId?: string) => ServiceFilterChipsObject | undefined;
|
|
144
133
|
/**
|
|
145
134
|
* Returns whether all service filter chips are enabled
|
|
146
135
|
*
|
|
@@ -148,7 +137,7 @@ export declare const getServiceFilterChipsDictionary: (state: TimeSeriesModuleSt
|
|
|
148
137
|
* @param {object} store store: object - store object
|
|
149
138
|
* @returns {boolean} returnType: boolean
|
|
150
139
|
*/
|
|
151
|
-
export declare const getAllFilterChipsEnabled: ((state:
|
|
140
|
+
export declare const getAllFilterChipsEnabled: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => boolean) & {
|
|
152
141
|
clearCache: () => void;
|
|
153
142
|
resultsCount: () => number;
|
|
154
143
|
resetResultsCount: () => void;
|
|
@@ -160,14 +149,14 @@ export declare const getAllFilterChipsEnabled: ((state: TimeSeriesModuleState) =
|
|
|
160
149
|
resetResultsCount: () => void;
|
|
161
150
|
};
|
|
162
151
|
lastResult: () => boolean;
|
|
163
|
-
dependencies: [(state:
|
|
152
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
164
153
|
recomputations: () => number;
|
|
165
154
|
resetRecomputations: () => void;
|
|
166
155
|
dependencyRecomputations: () => number;
|
|
167
156
|
resetDependencyRecomputations: () => void;
|
|
168
157
|
} & {
|
|
169
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
170
158
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
159
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
171
160
|
};
|
|
172
161
|
/**
|
|
173
162
|
* Returns current parameter id displayed in the info dialog
|
|
@@ -176,7 +165,7 @@ export declare const getAllFilterChipsEnabled: ((state: TimeSeriesModuleState) =
|
|
|
176
165
|
* @param {object} store store: object - store object
|
|
177
166
|
* @returns {string} returnType: string
|
|
178
167
|
*/
|
|
179
|
-
export declare const getCurrentParameterInfoDisplayed: ((state:
|
|
168
|
+
export declare const getCurrentParameterInfoDisplayed: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => string) & {
|
|
180
169
|
clearCache: () => void;
|
|
181
170
|
resultsCount: () => number;
|
|
182
171
|
resetResultsCount: () => void;
|
|
@@ -188,14 +177,14 @@ export declare const getCurrentParameterInfoDisplayed: ((state: TimeSeriesModule
|
|
|
188
177
|
resetResultsCount: () => void;
|
|
189
178
|
};
|
|
190
179
|
lastResult: () => string;
|
|
191
|
-
dependencies: [(state:
|
|
180
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
192
181
|
recomputations: () => number;
|
|
193
182
|
resetRecomputations: () => void;
|
|
194
183
|
dependencyRecomputations: () => number;
|
|
195
184
|
resetDependencyRecomputations: () => void;
|
|
196
185
|
} & {
|
|
197
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
198
186
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
187
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
199
188
|
};
|
|
200
189
|
/**
|
|
201
190
|
* Returns parameter for the parameterInfo window
|
|
@@ -204,7 +193,7 @@ export declare const getCurrentParameterInfoDisplayed: ((state: TimeSeriesModule
|
|
|
204
193
|
* @param {object} store store: object - store object
|
|
205
194
|
* @returns {Parameter} returnType: Parameter
|
|
206
195
|
*/
|
|
207
|
-
export declare const getParameterInfoParameter: ((state:
|
|
196
|
+
export declare const getParameterInfoParameter: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => Parameter | undefined) & {
|
|
208
197
|
clearCache: () => void;
|
|
209
198
|
resultsCount: () => number;
|
|
210
199
|
resetResultsCount: () => void;
|
|
@@ -216,14 +205,14 @@ export declare const getParameterInfoParameter: ((state: TimeSeriesModuleState)
|
|
|
216
205
|
resetResultsCount: () => void;
|
|
217
206
|
};
|
|
218
207
|
lastResult: () => Parameter | undefined;
|
|
219
|
-
dependencies: [(state:
|
|
208
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
220
209
|
recomputations: () => number;
|
|
221
210
|
resetRecomputations: () => void;
|
|
222
211
|
dependencyRecomputations: () => number;
|
|
223
212
|
resetDependencyRecomputations: () => void;
|
|
224
213
|
} & {
|
|
225
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
226
214
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
215
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
227
216
|
};
|
|
228
217
|
/**
|
|
229
218
|
* Returns parameter by id
|
|
@@ -233,7 +222,7 @@ export declare const getParameterInfoParameter: ((state: TimeSeriesModuleState)
|
|
|
233
222
|
* @param {string} parameterId parameterId
|
|
234
223
|
* @returns {Parameter} returnType: Parameter
|
|
235
224
|
*/
|
|
236
|
-
export declare const getParameterById: ((state:
|
|
225
|
+
export declare const getParameterById: ((state: TimeSeriesStateSlice, _parameterId: string, panelId?: string | undefined) => Parameter | undefined) & {
|
|
237
226
|
clearCache: () => void;
|
|
238
227
|
resultsCount: () => number;
|
|
239
228
|
resetResultsCount: () => void;
|
|
@@ -245,16 +234,16 @@ export declare const getParameterById: ((state: TimeSeriesModuleState, parameter
|
|
|
245
234
|
resetResultsCount: () => void;
|
|
246
235
|
};
|
|
247
236
|
lastResult: () => Parameter | undefined;
|
|
248
|
-
dependencies: [(
|
|
237
|
+
dependencies: [(store: TimeSeriesStateSlice, _parameterId: string, panelId?: string) => TimeSeriesStoreType | undefined, (store: TimeSeriesStateSlice, parameterId: string) => string];
|
|
249
238
|
recomputations: () => number;
|
|
250
239
|
resetRecomputations: () => void;
|
|
251
240
|
dependencyRecomputations: () => number;
|
|
252
241
|
resetDependencyRecomputations: () => void;
|
|
253
242
|
} & {
|
|
254
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
255
243
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
244
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
256
245
|
};
|
|
257
|
-
export declare const getServicePopupDetails: ((state:
|
|
246
|
+
export declare const getServicePopupDetails: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => TimeSeriesServicePopupObject) & {
|
|
258
247
|
clearCache: () => void;
|
|
259
248
|
resultsCount: () => number;
|
|
260
249
|
resetResultsCount: () => void;
|
|
@@ -266,16 +255,16 @@ export declare const getServicePopupDetails: ((state: TimeSeriesModuleState) =>
|
|
|
266
255
|
resetResultsCount: () => void;
|
|
267
256
|
};
|
|
268
257
|
lastResult: () => TimeSeriesServicePopupObject;
|
|
269
|
-
dependencies: [(state:
|
|
258
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
270
259
|
recomputations: () => number;
|
|
271
260
|
resetRecomputations: () => void;
|
|
272
261
|
dependencyRecomputations: () => number;
|
|
273
262
|
resetDependencyRecomputations: () => void;
|
|
274
263
|
} & {
|
|
275
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
276
264
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
265
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
277
266
|
};
|
|
278
|
-
export declare const getTimeSeriesPreset: ((state:
|
|
267
|
+
export declare const getTimeSeriesPreset: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => TimeSeriesPreset | undefined) & {
|
|
279
268
|
clearCache: () => void;
|
|
280
269
|
resultsCount: () => number;
|
|
281
270
|
resetResultsCount: () => void;
|
|
@@ -287,36 +276,36 @@ export declare const getTimeSeriesPreset: ((state: TimeSeriesModuleState) => Tim
|
|
|
287
276
|
resetResultsCount: () => void;
|
|
288
277
|
};
|
|
289
278
|
lastResult: () => TimeSeriesPreset | undefined;
|
|
290
|
-
dependencies: [(state:
|
|
279
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => PlotPreset | undefined, ((state: TimeSeriesStateSlice, _panelId?: string | undefined) => TimeSeriesService[] | undefined) & {
|
|
291
280
|
clearCache: () => void;
|
|
292
281
|
resultsCount: () => number;
|
|
293
282
|
resetResultsCount: () => void;
|
|
294
283
|
} & {
|
|
295
|
-
resultFunc: (resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
296
|
-
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
284
|
+
resultFunc: (resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
285
|
+
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
297
286
|
clearCache: () => void;
|
|
298
287
|
resultsCount: () => number;
|
|
299
288
|
resetResultsCount: () => void;
|
|
300
289
|
};
|
|
301
290
|
lastResult: () => TimeSeriesService[] | undefined;
|
|
302
|
-
dependencies: [(state:
|
|
291
|
+
dependencies: [(state: TimeSeriesStateSlice, _panelId?: string) => TimeSeriesState | TimeSeriesStoreType | undefined];
|
|
303
292
|
recomputations: () => number;
|
|
304
293
|
resetRecomputations: () => void;
|
|
305
294
|
dependencyRecomputations: () => number;
|
|
306
295
|
resetDependencyRecomputations: () => void;
|
|
307
296
|
} & {
|
|
308
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
309
297
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
298
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
310
299
|
}];
|
|
311
300
|
recomputations: () => number;
|
|
312
301
|
resetRecomputations: () => void;
|
|
313
302
|
dependencyRecomputations: () => number;
|
|
314
303
|
resetDependencyRecomputations: () => void;
|
|
315
304
|
} & {
|
|
316
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
317
305
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
306
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
318
307
|
};
|
|
319
|
-
export declare const getGeoJSONWithService: ((state: any,
|
|
308
|
+
export declare const getGeoJSONWithService: ((state: any, _panelId?: any) => GeoJsonWithService[]) & {
|
|
320
309
|
clearCache: () => void;
|
|
321
310
|
resultsCount: () => number;
|
|
322
311
|
resetResultsCount: () => void;
|
|
@@ -328,36 +317,36 @@ export declare const getGeoJSONWithService: ((state: any, panelId: any) => GeoJs
|
|
|
328
317
|
resetResultsCount: () => void;
|
|
329
318
|
};
|
|
330
319
|
lastResult: () => GeoJsonWithService[];
|
|
331
|
-
dependencies: [((state:
|
|
320
|
+
dependencies: [((state: TimeSeriesStateSlice, _panelId?: string | undefined) => TimeSeriesService[] | undefined) & {
|
|
332
321
|
clearCache: () => void;
|
|
333
322
|
resultsCount: () => number;
|
|
334
323
|
resetResultsCount: () => void;
|
|
335
324
|
} & {
|
|
336
|
-
resultFunc: (resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
337
|
-
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
325
|
+
resultFunc: (resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined;
|
|
326
|
+
memoizedResultFunc: ((resultFuncArgs_0: TimeSeriesState | TimeSeriesStoreType | undefined) => TimeSeriesService[] | undefined) & {
|
|
338
327
|
clearCache: () => void;
|
|
339
328
|
resultsCount: () => number;
|
|
340
329
|
resetResultsCount: () => void;
|
|
341
330
|
};
|
|
342
331
|
lastResult: () => TimeSeriesService[] | undefined;
|
|
343
|
-
dependencies: [(state:
|
|
332
|
+
dependencies: [(state: TimeSeriesStateSlice, _panelId?: string) => TimeSeriesState | TimeSeriesStoreType | undefined];
|
|
344
333
|
recomputations: () => number;
|
|
345
334
|
resetRecomputations: () => void;
|
|
346
335
|
dependencyRecomputations: () => number;
|
|
347
336
|
resetDependencyRecomputations: () => void;
|
|
348
337
|
} & {
|
|
349
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
350
338
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
339
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
351
340
|
}, (state: any, panelId: any) => string, (state: any, panelId: any) => syncGroupsTypes.PotentialData];
|
|
352
341
|
recomputations: () => number;
|
|
353
342
|
resetRecomputations: () => void;
|
|
354
343
|
dependencyRecomputations: () => number;
|
|
355
344
|
resetDependencyRecomputations: () => void;
|
|
356
345
|
} & {
|
|
357
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
358
346
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
347
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
359
348
|
};
|
|
360
|
-
export declare const getIsMapPinDisabled: ((state:
|
|
349
|
+
export declare const getIsMapPinDisabled: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => boolean) & {
|
|
361
350
|
clearCache: () => void;
|
|
362
351
|
resultsCount: () => number;
|
|
363
352
|
resetResultsCount: () => void;
|
|
@@ -369,16 +358,16 @@ export declare const getIsMapPinDisabled: ((state: TimeSeriesModuleState) => boo
|
|
|
369
358
|
resetResultsCount: () => void;
|
|
370
359
|
};
|
|
371
360
|
lastResult: () => boolean;
|
|
372
|
-
dependencies: [(state:
|
|
361
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
373
362
|
recomputations: () => number;
|
|
374
363
|
resetRecomputations: () => void;
|
|
375
364
|
dependencyRecomputations: () => number;
|
|
376
365
|
resetDependencyRecomputations: () => void;
|
|
377
366
|
} & {
|
|
378
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
379
367
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
368
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
380
369
|
};
|
|
381
|
-
export declare const getShouldHideLocationMarkers: ((state:
|
|
370
|
+
export declare const getShouldHideLocationMarkers: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => boolean) & {
|
|
382
371
|
clearCache: () => void;
|
|
383
372
|
resultsCount: () => number;
|
|
384
373
|
resetResultsCount: () => void;
|
|
@@ -390,16 +379,16 @@ export declare const getShouldHideLocationMarkers: ((state: TimeSeriesModuleStat
|
|
|
390
379
|
resetResultsCount: () => void;
|
|
391
380
|
};
|
|
392
381
|
lastResult: () => boolean;
|
|
393
|
-
dependencies: [(state:
|
|
382
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
394
383
|
recomputations: () => number;
|
|
395
384
|
resetRecomputations: () => void;
|
|
396
385
|
dependencyRecomputations: () => number;
|
|
397
386
|
resetDependencyRecomputations: () => void;
|
|
398
387
|
} & {
|
|
399
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
400
388
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
389
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
401
390
|
};
|
|
402
|
-
export declare const getIsLegendVisible: ((state:
|
|
391
|
+
export declare const getIsLegendVisible: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => boolean) & {
|
|
403
392
|
clearCache: () => void;
|
|
404
393
|
resultsCount: () => number;
|
|
405
394
|
resetResultsCount: () => void;
|
|
@@ -411,16 +400,16 @@ export declare const getIsLegendVisible: ((state: TimeSeriesModuleState) => bool
|
|
|
411
400
|
resetResultsCount: () => void;
|
|
412
401
|
};
|
|
413
402
|
lastResult: () => boolean;
|
|
414
|
-
dependencies: [(state:
|
|
403
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
415
404
|
recomputations: () => number;
|
|
416
405
|
resetRecomputations: () => void;
|
|
417
406
|
dependencyRecomputations: () => number;
|
|
418
407
|
resetDependencyRecomputations: () => void;
|
|
419
408
|
} & {
|
|
420
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
421
409
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
410
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
422
411
|
};
|
|
423
|
-
export declare const getCurrentLocation: ((state:
|
|
412
|
+
export declare const getCurrentLocation: ((state: TimeSeriesStateSlice, panelId?: string | undefined) => TimeSeriesLocation | undefined) & {
|
|
424
413
|
clearCache: () => void;
|
|
425
414
|
resultsCount: () => number;
|
|
426
415
|
resetResultsCount: () => void;
|
|
@@ -432,12 +421,13 @@ export declare const getCurrentLocation: ((state: TimeSeriesModuleState) => Time
|
|
|
432
421
|
resetResultsCount: () => void;
|
|
433
422
|
};
|
|
434
423
|
lastResult: () => TimeSeriesLocation | undefined;
|
|
435
|
-
dependencies: [(state:
|
|
424
|
+
dependencies: [(state: TimeSeriesStateSlice, panelId?: string) => TimeSeriesStoreType | undefined];
|
|
436
425
|
recomputations: () => number;
|
|
437
426
|
resetRecomputations: () => void;
|
|
438
427
|
dependencyRecomputations: () => number;
|
|
439
428
|
resetDependencyRecomputations: () => void;
|
|
440
429
|
} & {
|
|
441
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
442
430
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
431
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
443
432
|
};
|
|
433
|
+
export {};
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const timeSeriesReducersMap: {
|
|
|
8
8
|
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
|
|
9
9
|
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").UnknownAction, import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState>;
|
|
10
10
|
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").UnknownAction, import("dist/libs/store/src/store/ui/types").UIStoreType>;
|
|
11
|
-
timeSeries: import("redux").Reducer<import("./types").
|
|
11
|
+
timeSeries: import("redux").Reducer<import("./types").TimeSeriesState>;
|
|
12
12
|
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").UnknownAction, import("dist/libs/snackbar/src/lib/store/types").SnackbarState>;
|
|
13
13
|
};
|
|
14
14
|
export declare const timeSeriesMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("@opengeoweb/store").CoreAppStore, import("redux-thunk").ThunkDispatch<import("@opengeoweb/store").CoreAppStore, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<TimeSeriesModuleState, import("redux-thunk").ThunkDispatch<TimeSeriesModuleState, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("redux-thunk").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
2
|
import type { SystemScope, ServiceInterface, TimeSeriesService } from '@opengeoweb/shared';
|
|
3
|
+
import type { CoreAppStore } from '@opengeoweb/store';
|
|
3
4
|
import type { Parameter, PlotPreset, TimeSeriesLocation } from '../components/TimeSeries/types';
|
|
4
5
|
export declare enum TimeSeriesActionOrigin {
|
|
5
6
|
timeSeriesManager = "timeSeriesManager",
|
|
@@ -49,6 +50,10 @@ export interface TimeSeriesStoreType {
|
|
|
49
50
|
services?: TimeSeriesService[];
|
|
50
51
|
locationData?: TimeseriesLocationData;
|
|
51
52
|
}
|
|
53
|
+
export interface TimeSeriesState {
|
|
54
|
+
byId: Record<string, TimeSeriesStoreType>;
|
|
55
|
+
services: TimeSeriesService[];
|
|
56
|
+
}
|
|
52
57
|
export interface TimeSeriesPreset {
|
|
53
58
|
plotPreset: PlotPreset;
|
|
54
59
|
services: TimeSeriesService[];
|
|
@@ -57,6 +62,10 @@ export interface TimeSeriesPayload {
|
|
|
57
62
|
panelId?: string;
|
|
58
63
|
origin?: string;
|
|
59
64
|
}
|
|
65
|
+
export interface RegisterTimeSeriesPresetPayload extends TimeSeriesPayload {
|
|
66
|
+
plotPreset: PlotPreset;
|
|
67
|
+
services?: TimeSeriesService[];
|
|
68
|
+
}
|
|
60
69
|
export interface ParameterManipulationPayload extends TimeSeriesPayload {
|
|
61
70
|
parameter: Parameter;
|
|
62
71
|
}
|
|
@@ -77,9 +86,11 @@ export interface UpdateTitlePayload extends TimeSeriesPayload {
|
|
|
77
86
|
title: string;
|
|
78
87
|
}
|
|
79
88
|
export interface TimeSeriesModuleState {
|
|
80
|
-
timeSeries?:
|
|
89
|
+
timeSeries?: TimeSeriesState;
|
|
81
90
|
}
|
|
91
|
+
export type TimeSeriesRootState = CoreAppStore & TimeSeriesModuleState;
|
|
82
92
|
export interface SetSearchFilterPayload {
|
|
93
|
+
panelId?: string;
|
|
83
94
|
filterText: string;
|
|
84
95
|
}
|
|
85
96
|
export interface MovePlotPayload extends TimeSeriesPayload {
|
|
@@ -93,38 +104,48 @@ export interface MoveParameterPayload extends TimeSeriesPayload {
|
|
|
93
104
|
toPlotId: string;
|
|
94
105
|
}
|
|
95
106
|
export interface SetCurrentParameterInfo {
|
|
107
|
+
panelId?: string;
|
|
96
108
|
parameter: string | Parameter;
|
|
97
109
|
}
|
|
98
110
|
export interface SetCurrentFrozenParameterInfo {
|
|
111
|
+
panelId?: string;
|
|
99
112
|
parameter: Parameter;
|
|
100
113
|
}
|
|
101
114
|
export interface SetTimeSeriesServicesPayload {
|
|
115
|
+
panelId?: string;
|
|
102
116
|
timeSeriesServices: TimeSeriesService[];
|
|
103
117
|
}
|
|
104
118
|
export interface RemoveServiceFilterChipFromStorePayload {
|
|
105
119
|
id: string;
|
|
106
120
|
}
|
|
107
121
|
export interface RemoveTimeSeriesServicePayload {
|
|
122
|
+
panelId?: string;
|
|
108
123
|
id: string;
|
|
109
124
|
}
|
|
110
125
|
export interface UpsertTimeSeriesServicePayload extends TimeSeriesService {
|
|
126
|
+
panelId?: string;
|
|
111
127
|
isUpdate: boolean;
|
|
112
128
|
}
|
|
113
129
|
export interface SetTimeSeriesServicePopupPayload {
|
|
130
|
+
panelId?: string;
|
|
114
131
|
url?: string;
|
|
115
132
|
variant: PopupVariant;
|
|
116
133
|
serviceId?: string;
|
|
117
134
|
isOpen: boolean;
|
|
118
135
|
}
|
|
119
136
|
export interface ToggleDisableMapPinPayload {
|
|
137
|
+
panelId?: string;
|
|
120
138
|
isMapPinDisabled: boolean;
|
|
121
139
|
}
|
|
122
140
|
export interface ToggleLocationMarkersPayload {
|
|
141
|
+
panelId?: string;
|
|
123
142
|
shouldHideLocationMarkers: boolean;
|
|
124
143
|
}
|
|
125
144
|
export interface ToggleTimeSeriesLegendPayload {
|
|
145
|
+
panelId?: string;
|
|
126
146
|
isLegendVisible: boolean;
|
|
127
147
|
}
|
|
128
148
|
export interface SetTimeSeriesLocationPayload {
|
|
149
|
+
panelId?: string;
|
|
129
150
|
location: TimeSeriesLocation | undefined;
|
|
130
151
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Feature, GeoJsonProperties, GeometryObject } from 'geojson';
|
|
2
|
-
import type { ListChildComponentProps } from 'react-window';
|
|
3
|
-
export declare const renderRow: (features: Feature<GeometryObject, GeoJsonProperties>[], handleChange: (newSelectedLocation: string) => void, selectedLocation: string, isDisabled?: boolean) => (props: ListChildComponentProps) => React.ReactElement;
|