@opengeoweb/layer-select 12.1.2 → 12.3.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 +198 -217
- package/package.json +11 -11
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +1 -0
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +9 -0
- package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -1
- package/src/lib/components/ServicePopup/ServicePopup.stories.d.ts +6 -41
- package/src/lib/store/listeners.d.ts +1 -1
- package/src/lib/store/reducer.d.ts +2 -2
- package/src/lib/store/selectors.d.ts +435 -37
- package/src/lib/store/store.d.ts +8 -8
- package/src/lib/store/types.d.ts +2 -2
- package/src/lib/store/utils.d.ts +1 -1
|
@@ -8,10 +8,26 @@ export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
|
8
8
|
* @param {object} store store: object - store object
|
|
9
9
|
* @returns {array} returnType: string
|
|
10
10
|
*/
|
|
11
|
-
export declare const getSearchFilter: ((state: LayerSelectModuleState) => string) &
|
|
12
|
-
clearCache: () => void;
|
|
13
|
-
}> & {
|
|
11
|
+
export declare const getSearchFilter: ((state: LayerSelectModuleState) => string) & {
|
|
14
12
|
clearCache: () => void;
|
|
13
|
+
resultsCount: () => number;
|
|
14
|
+
resetResultsCount: () => void;
|
|
15
|
+
} & {
|
|
16
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => string;
|
|
17
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => string) & {
|
|
18
|
+
clearCache: () => void;
|
|
19
|
+
resultsCount: () => number;
|
|
20
|
+
resetResultsCount: () => void;
|
|
21
|
+
};
|
|
22
|
+
lastResult: () => string;
|
|
23
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
24
|
+
recomputations: () => number;
|
|
25
|
+
resetRecomputations: () => void;
|
|
26
|
+
dependencyRecomputations: () => number;
|
|
27
|
+
resetDependencyRecomputations: () => void;
|
|
28
|
+
} & {
|
|
29
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
30
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
15
31
|
};
|
|
16
32
|
/**
|
|
17
33
|
* Returns active services array
|
|
@@ -21,7 +37,19 @@ export declare const getSearchFilter: ((state: LayerSelectModuleState) => string
|
|
|
21
37
|
* @returns {ActiveServiceObjectEntities} returnType: ActiveServiceObjectEntitiesobject of active services
|
|
22
38
|
*/
|
|
23
39
|
export declare const getActiveServices: (store: LayerSelectModuleState) => ActiveServiceObjectEntities;
|
|
24
|
-
export declare const getActiveServicesDictionary: (state: LayerSelectModuleState) =>
|
|
40
|
+
export declare const getActiveServicesDictionary: (state: LayerSelectModuleState) => Record<string, import("./types").ActiveServiceObject>, getActiveServiceById: (state: LayerSelectModuleState, id: string) => {
|
|
41
|
+
serviceId?: string | undefined;
|
|
42
|
+
serviceName?: string | undefined;
|
|
43
|
+
serviceUrl?: string | undefined;
|
|
44
|
+
abstract?: string | undefined;
|
|
45
|
+
enabled?: boolean | undefined;
|
|
46
|
+
filterIds?: string[] | undefined;
|
|
47
|
+
scope?: import("dist/libs/shared/src").SystemScope | undefined;
|
|
48
|
+
isLoading?: boolean | undefined;
|
|
49
|
+
keywords?: string[] | undefined;
|
|
50
|
+
groups?: string[] | undefined;
|
|
51
|
+
isInSearch?: boolean | undefined;
|
|
52
|
+
}, getAllActiveServices: (state: LayerSelectModuleState) => import("./types").ActiveServiceObject[];
|
|
25
53
|
/**
|
|
26
54
|
* Returns all ids of enabled services
|
|
27
55
|
*
|
|
@@ -29,10 +57,26 @@ export declare const getActiveServicesDictionary: (state: LayerSelectModuleState
|
|
|
29
57
|
* @param {object} store store: object - store object
|
|
30
58
|
* @returns {array} returnType: array of service ids that are enabled
|
|
31
59
|
*/
|
|
32
|
-
export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) &
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
}> & {
|
|
60
|
+
export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => string[]) & {
|
|
35
61
|
clearCache: () => void;
|
|
62
|
+
resultsCount: () => number;
|
|
63
|
+
resetResultsCount: () => void;
|
|
64
|
+
} & {
|
|
65
|
+
resultFunc: (resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[];
|
|
66
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[]) & {
|
|
67
|
+
clearCache: () => void;
|
|
68
|
+
resultsCount: () => number;
|
|
69
|
+
resetResultsCount: () => void;
|
|
70
|
+
};
|
|
71
|
+
lastResult: () => string[];
|
|
72
|
+
dependencies: [(state: LayerSelectModuleState) => import("./types").ActiveServiceObject[]];
|
|
73
|
+
recomputations: () => number;
|
|
74
|
+
resetRecomputations: () => void;
|
|
75
|
+
dependencyRecomputations: () => number;
|
|
76
|
+
resetDependencyRecomputations: () => void;
|
|
77
|
+
} & {
|
|
78
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
79
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
36
80
|
};
|
|
37
81
|
/**
|
|
38
82
|
* Returns ids of all keywords
|
|
@@ -42,7 +86,13 @@ export declare const getEnabledServiceIds: ((state: LayerSelectModuleState) => s
|
|
|
42
86
|
* @returns {array} returnType: array of all keyword ids
|
|
43
87
|
*/
|
|
44
88
|
export declare const getAllFilterIds: (store: LayerSelectModuleState) => string[];
|
|
45
|
-
export declare const getAllFilters: (state: LayerSelectModuleState) => Filter[], getAllFilterIdsEntity: (state: LayerSelectModuleState) =>
|
|
89
|
+
export declare const getAllFilters: (state: LayerSelectModuleState) => Filter[], getAllFilterIdsEntity: (state: LayerSelectModuleState) => string[], getFilterById: (state: LayerSelectModuleState, id: string) => {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
checked?: boolean | undefined;
|
|
93
|
+
amountVisible?: number | undefined;
|
|
94
|
+
type: import("./types").FilterType;
|
|
95
|
+
};
|
|
46
96
|
/**
|
|
47
97
|
* Returns all ids of checked keywords
|
|
48
98
|
*
|
|
@@ -50,19 +100,51 @@ export declare const getAllFilters: (state: LayerSelectModuleState) => Filter[],
|
|
|
50
100
|
* @param {object} store store: object - store object
|
|
51
101
|
* @returns {array} returnType: array of keyword ids that are checked
|
|
52
102
|
*/
|
|
53
|
-
export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => string[]) &
|
|
54
|
-
clearCache: () => void;
|
|
55
|
-
}> & {
|
|
103
|
+
export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => string[]) & {
|
|
56
104
|
clearCache: () => void;
|
|
105
|
+
resultsCount: () => number;
|
|
106
|
+
resetResultsCount: () => void;
|
|
107
|
+
} & {
|
|
108
|
+
resultFunc: (resultFuncArgs_0: Filter[]) => string[];
|
|
109
|
+
memoizedResultFunc: ((resultFuncArgs_0: Filter[]) => string[]) & {
|
|
110
|
+
clearCache: () => void;
|
|
111
|
+
resultsCount: () => number;
|
|
112
|
+
resetResultsCount: () => void;
|
|
113
|
+
};
|
|
114
|
+
lastResult: () => string[];
|
|
115
|
+
dependencies: [(state: LayerSelectModuleState) => Filter[]];
|
|
116
|
+
recomputations: () => number;
|
|
117
|
+
resetRecomputations: () => void;
|
|
118
|
+
dependencyRecomputations: () => number;
|
|
119
|
+
resetDependencyRecomputations: () => void;
|
|
120
|
+
} & {
|
|
121
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
122
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
57
123
|
};
|
|
58
124
|
export interface FiltersGrouped {
|
|
59
125
|
groups: Filter[];
|
|
60
126
|
keywords: Filter[];
|
|
61
127
|
}
|
|
62
|
-
export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) &
|
|
63
|
-
clearCache: () => void;
|
|
64
|
-
}> & {
|
|
128
|
+
export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) & {
|
|
65
129
|
clearCache: () => void;
|
|
130
|
+
resultsCount: () => number;
|
|
131
|
+
resetResultsCount: () => void;
|
|
132
|
+
} & {
|
|
133
|
+
resultFunc: (resultFuncArgs_0: import("./types").ActiveServiceObject[], resultFuncArgs_1: Filter[]) => FiltersGrouped;
|
|
134
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./types").ActiveServiceObject[], resultFuncArgs_1: Filter[]) => FiltersGrouped) & {
|
|
135
|
+
clearCache: () => void;
|
|
136
|
+
resultsCount: () => number;
|
|
137
|
+
resetResultsCount: () => void;
|
|
138
|
+
};
|
|
139
|
+
lastResult: () => FiltersGrouped;
|
|
140
|
+
dependencies: [(state: LayerSelectModuleState) => import("./types").ActiveServiceObject[], (state: LayerSelectModuleState) => Filter[]];
|
|
141
|
+
recomputations: () => number;
|
|
142
|
+
resetRecomputations: () => void;
|
|
143
|
+
dependencyRecomputations: () => number;
|
|
144
|
+
resetDependencyRecomputations: () => void;
|
|
145
|
+
} & {
|
|
146
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
147
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
66
148
|
};
|
|
67
149
|
/**
|
|
68
150
|
* Returns if all keywords are checked
|
|
@@ -71,10 +153,26 @@ export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrou
|
|
|
71
153
|
* @param {object} store store: object - store object
|
|
72
154
|
* @returns {array} returnType: boolean if all keywords are checked
|
|
73
155
|
*/
|
|
74
|
-
export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => boolean) &
|
|
75
|
-
clearCache: () => void;
|
|
76
|
-
}> & {
|
|
156
|
+
export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => boolean) & {
|
|
77
157
|
clearCache: () => void;
|
|
158
|
+
resultsCount: () => number;
|
|
159
|
+
resetResultsCount: () => void;
|
|
160
|
+
} & {
|
|
161
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => boolean;
|
|
162
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => boolean) & {
|
|
163
|
+
clearCache: () => void;
|
|
164
|
+
resultsCount: () => number;
|
|
165
|
+
resetResultsCount: () => void;
|
|
166
|
+
};
|
|
167
|
+
lastResult: () => boolean;
|
|
168
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
169
|
+
recomputations: () => number;
|
|
170
|
+
resetRecomputations: () => void;
|
|
171
|
+
dependencyRecomputations: () => number;
|
|
172
|
+
resetDependencyRecomputations: () => void;
|
|
173
|
+
} & {
|
|
174
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
175
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
78
176
|
};
|
|
79
177
|
/**
|
|
80
178
|
* Returns a filtered active layer object based on the given filter settings
|
|
@@ -82,10 +180,126 @@ export declare const isAllFiltersChecked: ((state: LayerSelectModuleState) => bo
|
|
|
82
180
|
* @param {object} store store: object - object from which the service state will be extracted
|
|
83
181
|
* @returns {array} returnType: LayerWithServiceName - an array of all filtered activelayers
|
|
84
182
|
*/
|
|
85
|
-
export declare const getFilteredLayers: ((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) &
|
|
86
|
-
clearCache: () => void;
|
|
87
|
-
}> & {
|
|
183
|
+
export declare const getFilteredLayers: ((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) & {
|
|
88
184
|
clearCache: () => void;
|
|
185
|
+
resultsCount: () => number;
|
|
186
|
+
resetResultsCount: () => void;
|
|
187
|
+
} & {
|
|
188
|
+
resultFunc: (resultFuncArgs_0: string[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").Services, resultFuncArgs_2: string[], resultFuncArgs_3: boolean, resultFuncArgs_4: string) => LayerWithServiceName[];
|
|
189
|
+
memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").Services, resultFuncArgs_2: string[], resultFuncArgs_3: boolean, resultFuncArgs_4: string) => LayerWithServiceName[]) & {
|
|
190
|
+
clearCache: () => void;
|
|
191
|
+
resultsCount: () => number;
|
|
192
|
+
resetResultsCount: () => void;
|
|
193
|
+
};
|
|
194
|
+
lastResult: () => LayerWithServiceName[];
|
|
195
|
+
dependencies: [((state: LayerSelectModuleState) => string[]) & {
|
|
196
|
+
clearCache: () => void;
|
|
197
|
+
resultsCount: () => number;
|
|
198
|
+
resetResultsCount: () => void;
|
|
199
|
+
} & {
|
|
200
|
+
resultFunc: (resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[];
|
|
201
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[]) & {
|
|
202
|
+
clearCache: () => void;
|
|
203
|
+
resultsCount: () => number;
|
|
204
|
+
resetResultsCount: () => void;
|
|
205
|
+
};
|
|
206
|
+
lastResult: () => string[];
|
|
207
|
+
dependencies: [(state: LayerSelectModuleState) => import("./types").ActiveServiceObject[]];
|
|
208
|
+
recomputations: () => number;
|
|
209
|
+
resetRecomputations: () => void;
|
|
210
|
+
dependencyRecomputations: () => number;
|
|
211
|
+
resetDependencyRecomputations: () => void;
|
|
212
|
+
} & {
|
|
213
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
214
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
215
|
+
}, ((state: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
216
|
+
clearCache: () => void;
|
|
217
|
+
resultsCount: () => number;
|
|
218
|
+
resetResultsCount: () => void;
|
|
219
|
+
} & {
|
|
220
|
+
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services;
|
|
221
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
222
|
+
clearCache: () => void;
|
|
223
|
+
resultsCount: () => number;
|
|
224
|
+
resetResultsCount: () => void;
|
|
225
|
+
};
|
|
226
|
+
lastResult: () => import("dist/libs/store/src/store/map/types").Services;
|
|
227
|
+
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").ServiceState | undefined];
|
|
228
|
+
recomputations: () => number;
|
|
229
|
+
resetRecomputations: () => void;
|
|
230
|
+
dependencyRecomputations: () => number;
|
|
231
|
+
resetDependencyRecomputations: () => void;
|
|
232
|
+
} & {
|
|
233
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
234
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
235
|
+
}, ((state: LayerSelectModuleState) => string[]) & {
|
|
236
|
+
clearCache: () => void;
|
|
237
|
+
resultsCount: () => number;
|
|
238
|
+
resetResultsCount: () => void;
|
|
239
|
+
} & {
|
|
240
|
+
resultFunc: (resultFuncArgs_0: Filter[]) => string[];
|
|
241
|
+
memoizedResultFunc: ((resultFuncArgs_0: Filter[]) => string[]) & {
|
|
242
|
+
clearCache: () => void;
|
|
243
|
+
resultsCount: () => number;
|
|
244
|
+
resetResultsCount: () => void;
|
|
245
|
+
};
|
|
246
|
+
lastResult: () => string[];
|
|
247
|
+
dependencies: [(state: LayerSelectModuleState) => Filter[]];
|
|
248
|
+
recomputations: () => number;
|
|
249
|
+
resetRecomputations: () => void;
|
|
250
|
+
dependencyRecomputations: () => number;
|
|
251
|
+
resetDependencyRecomputations: () => void;
|
|
252
|
+
} & {
|
|
253
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
254
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
255
|
+
}, ((state: LayerSelectModuleState) => boolean) & {
|
|
256
|
+
clearCache: () => void;
|
|
257
|
+
resultsCount: () => number;
|
|
258
|
+
resetResultsCount: () => void;
|
|
259
|
+
} & {
|
|
260
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => boolean;
|
|
261
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => boolean) & {
|
|
262
|
+
clearCache: () => void;
|
|
263
|
+
resultsCount: () => number;
|
|
264
|
+
resetResultsCount: () => void;
|
|
265
|
+
};
|
|
266
|
+
lastResult: () => boolean;
|
|
267
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
268
|
+
recomputations: () => number;
|
|
269
|
+
resetRecomputations: () => void;
|
|
270
|
+
dependencyRecomputations: () => number;
|
|
271
|
+
resetDependencyRecomputations: () => void;
|
|
272
|
+
} & {
|
|
273
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
274
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
275
|
+
}, ((state: LayerSelectModuleState) => string) & {
|
|
276
|
+
clearCache: () => void;
|
|
277
|
+
resultsCount: () => number;
|
|
278
|
+
resetResultsCount: () => void;
|
|
279
|
+
} & {
|
|
280
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => string;
|
|
281
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => string) & {
|
|
282
|
+
clearCache: () => void;
|
|
283
|
+
resultsCount: () => number;
|
|
284
|
+
resetResultsCount: () => void;
|
|
285
|
+
};
|
|
286
|
+
lastResult: () => string;
|
|
287
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
288
|
+
recomputations: () => number;
|
|
289
|
+
resetRecomputations: () => void;
|
|
290
|
+
dependencyRecomputations: () => number;
|
|
291
|
+
resetDependencyRecomputations: () => void;
|
|
292
|
+
} & {
|
|
293
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
294
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
295
|
+
}];
|
|
296
|
+
recomputations: () => number;
|
|
297
|
+
resetRecomputations: () => void;
|
|
298
|
+
dependencyRecomputations: () => number;
|
|
299
|
+
resetDependencyRecomputations: () => void;
|
|
300
|
+
} & {
|
|
301
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
302
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
89
303
|
};
|
|
90
304
|
/**
|
|
91
305
|
* Returns service popup details
|
|
@@ -116,22 +330,206 @@ export declare const getFilteredActiveServices: ((state: LayerSelectModuleState
|
|
|
116
330
|
keywords?: string[] | undefined;
|
|
117
331
|
groups?: string[] | undefined;
|
|
118
332
|
};
|
|
119
|
-
}) &
|
|
120
|
-
[k: string]: {
|
|
121
|
-
isInSearch: boolean;
|
|
122
|
-
serviceId?: string | undefined;
|
|
123
|
-
serviceName?: string | undefined;
|
|
124
|
-
serviceUrl?: string | undefined;
|
|
125
|
-
abstract?: string | undefined;
|
|
126
|
-
enabled?: boolean | undefined;
|
|
127
|
-
filterIds?: string[] | undefined;
|
|
128
|
-
scope?: import("dist/libs/shared/src").SystemScope | undefined;
|
|
129
|
-
isLoading?: boolean | undefined;
|
|
130
|
-
keywords?: string[] | undefined;
|
|
131
|
-
groups?: string[] | undefined;
|
|
132
|
-
};
|
|
133
|
-
}, {
|
|
134
|
-
clearCache: () => void;
|
|
135
|
-
}> & {
|
|
333
|
+
}) & {
|
|
136
334
|
clearCache: () => void;
|
|
335
|
+
resultsCount: () => number;
|
|
336
|
+
resetResultsCount: () => void;
|
|
337
|
+
} & {
|
|
338
|
+
resultFunc: (resultFuncArgs_0: LayerWithServiceName[], resultFuncArgs_1: ActiveServiceObjectEntities, resultFuncArgs_2: string) => {
|
|
339
|
+
[k: string]: {
|
|
340
|
+
isInSearch: boolean;
|
|
341
|
+
serviceId?: string | undefined;
|
|
342
|
+
serviceName?: string | undefined;
|
|
343
|
+
serviceUrl?: string | undefined;
|
|
344
|
+
abstract?: string | undefined;
|
|
345
|
+
enabled?: boolean | undefined;
|
|
346
|
+
filterIds?: string[] | undefined;
|
|
347
|
+
scope?: import("dist/libs/shared/src").SystemScope | undefined;
|
|
348
|
+
isLoading?: boolean | undefined;
|
|
349
|
+
keywords?: string[] | undefined;
|
|
350
|
+
groups?: string[] | undefined;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerWithServiceName[], resultFuncArgs_1: ActiveServiceObjectEntities, resultFuncArgs_2: string) => {
|
|
354
|
+
[k: string]: {
|
|
355
|
+
isInSearch: boolean;
|
|
356
|
+
serviceId?: string | undefined;
|
|
357
|
+
serviceName?: string | undefined;
|
|
358
|
+
serviceUrl?: string | undefined;
|
|
359
|
+
abstract?: string | undefined;
|
|
360
|
+
enabled?: boolean | undefined;
|
|
361
|
+
filterIds?: string[] | undefined;
|
|
362
|
+
scope?: import("dist/libs/shared/src").SystemScope | undefined;
|
|
363
|
+
isLoading?: boolean | undefined;
|
|
364
|
+
keywords?: string[] | undefined;
|
|
365
|
+
groups?: string[] | undefined;
|
|
366
|
+
};
|
|
367
|
+
}) & {
|
|
368
|
+
clearCache: () => void;
|
|
369
|
+
resultsCount: () => number;
|
|
370
|
+
resetResultsCount: () => void;
|
|
371
|
+
};
|
|
372
|
+
lastResult: () => {
|
|
373
|
+
[k: string]: {
|
|
374
|
+
isInSearch: boolean;
|
|
375
|
+
serviceId?: string | undefined;
|
|
376
|
+
serviceName?: string | undefined;
|
|
377
|
+
serviceUrl?: string | undefined;
|
|
378
|
+
abstract?: string | undefined;
|
|
379
|
+
enabled?: boolean | undefined;
|
|
380
|
+
filterIds?: string[] | undefined;
|
|
381
|
+
scope?: import("dist/libs/shared/src").SystemScope | undefined;
|
|
382
|
+
isLoading?: boolean | undefined;
|
|
383
|
+
keywords?: string[] | undefined;
|
|
384
|
+
groups?: string[] | undefined;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
dependencies: [((state: LayerSelectModuleState & import("@opengeoweb/store").CoreAppStore) => LayerWithServiceName[]) & {
|
|
388
|
+
clearCache: () => void;
|
|
389
|
+
resultsCount: () => number;
|
|
390
|
+
resetResultsCount: () => void;
|
|
391
|
+
} & {
|
|
392
|
+
resultFunc: (resultFuncArgs_0: string[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").Services, resultFuncArgs_2: string[], resultFuncArgs_3: boolean, resultFuncArgs_4: string) => LayerWithServiceName[];
|
|
393
|
+
memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").Services, resultFuncArgs_2: string[], resultFuncArgs_3: boolean, resultFuncArgs_4: string) => LayerWithServiceName[]) & {
|
|
394
|
+
clearCache: () => void;
|
|
395
|
+
resultsCount: () => number;
|
|
396
|
+
resetResultsCount: () => void;
|
|
397
|
+
};
|
|
398
|
+
lastResult: () => LayerWithServiceName[];
|
|
399
|
+
dependencies: [((state: LayerSelectModuleState) => string[]) & {
|
|
400
|
+
clearCache: () => void;
|
|
401
|
+
resultsCount: () => number;
|
|
402
|
+
resetResultsCount: () => void;
|
|
403
|
+
} & {
|
|
404
|
+
resultFunc: (resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[];
|
|
405
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("./types").ActiveServiceObject[]) => string[]) & {
|
|
406
|
+
clearCache: () => void;
|
|
407
|
+
resultsCount: () => number;
|
|
408
|
+
resetResultsCount: () => void;
|
|
409
|
+
};
|
|
410
|
+
lastResult: () => string[];
|
|
411
|
+
dependencies: [(state: LayerSelectModuleState) => import("./types").ActiveServiceObject[]];
|
|
412
|
+
recomputations: () => number;
|
|
413
|
+
resetRecomputations: () => void;
|
|
414
|
+
dependencyRecomputations: () => number;
|
|
415
|
+
resetDependencyRecomputations: () => void;
|
|
416
|
+
} & {
|
|
417
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
418
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
419
|
+
}, ((state: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
420
|
+
clearCache: () => void;
|
|
421
|
+
resultsCount: () => number;
|
|
422
|
+
resetResultsCount: () => void;
|
|
423
|
+
} & {
|
|
424
|
+
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services;
|
|
425
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ServiceState | undefined) => import("dist/libs/store/src/store/map/types").Services) & {
|
|
426
|
+
clearCache: () => void;
|
|
427
|
+
resultsCount: () => number;
|
|
428
|
+
resetResultsCount: () => void;
|
|
429
|
+
};
|
|
430
|
+
lastResult: () => import("dist/libs/store/src/store/map/types").Services;
|
|
431
|
+
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/map/types").ServiceState | undefined];
|
|
432
|
+
recomputations: () => number;
|
|
433
|
+
resetRecomputations: () => void;
|
|
434
|
+
dependencyRecomputations: () => number;
|
|
435
|
+
resetDependencyRecomputations: () => void;
|
|
436
|
+
} & {
|
|
437
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
438
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
439
|
+
}, ((state: LayerSelectModuleState) => string[]) & {
|
|
440
|
+
clearCache: () => void;
|
|
441
|
+
resultsCount: () => number;
|
|
442
|
+
resetResultsCount: () => void;
|
|
443
|
+
} & {
|
|
444
|
+
resultFunc: (resultFuncArgs_0: Filter[]) => string[];
|
|
445
|
+
memoizedResultFunc: ((resultFuncArgs_0: Filter[]) => string[]) & {
|
|
446
|
+
clearCache: () => void;
|
|
447
|
+
resultsCount: () => number;
|
|
448
|
+
resetResultsCount: () => void;
|
|
449
|
+
};
|
|
450
|
+
lastResult: () => string[];
|
|
451
|
+
dependencies: [(state: LayerSelectModuleState) => Filter[]];
|
|
452
|
+
recomputations: () => number;
|
|
453
|
+
resetRecomputations: () => void;
|
|
454
|
+
dependencyRecomputations: () => number;
|
|
455
|
+
resetDependencyRecomputations: () => void;
|
|
456
|
+
} & {
|
|
457
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
458
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
459
|
+
}, ((state: LayerSelectModuleState) => boolean) & {
|
|
460
|
+
clearCache: () => void;
|
|
461
|
+
resultsCount: () => number;
|
|
462
|
+
resetResultsCount: () => void;
|
|
463
|
+
} & {
|
|
464
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => boolean;
|
|
465
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => boolean) & {
|
|
466
|
+
clearCache: () => void;
|
|
467
|
+
resultsCount: () => number;
|
|
468
|
+
resetResultsCount: () => void;
|
|
469
|
+
};
|
|
470
|
+
lastResult: () => boolean;
|
|
471
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
472
|
+
recomputations: () => number;
|
|
473
|
+
resetRecomputations: () => void;
|
|
474
|
+
dependencyRecomputations: () => number;
|
|
475
|
+
resetDependencyRecomputations: () => void;
|
|
476
|
+
} & {
|
|
477
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
478
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
479
|
+
}, ((state: LayerSelectModuleState) => string) & {
|
|
480
|
+
clearCache: () => void;
|
|
481
|
+
resultsCount: () => number;
|
|
482
|
+
resetResultsCount: () => void;
|
|
483
|
+
} & {
|
|
484
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => string;
|
|
485
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => string) & {
|
|
486
|
+
clearCache: () => void;
|
|
487
|
+
resultsCount: () => number;
|
|
488
|
+
resetResultsCount: () => void;
|
|
489
|
+
};
|
|
490
|
+
lastResult: () => string;
|
|
491
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
492
|
+
recomputations: () => number;
|
|
493
|
+
resetRecomputations: () => void;
|
|
494
|
+
dependencyRecomputations: () => number;
|
|
495
|
+
resetDependencyRecomputations: () => void;
|
|
496
|
+
} & {
|
|
497
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
498
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
499
|
+
}];
|
|
500
|
+
recomputations: () => number;
|
|
501
|
+
resetRecomputations: () => void;
|
|
502
|
+
dependencyRecomputations: () => number;
|
|
503
|
+
resetDependencyRecomputations: () => void;
|
|
504
|
+
} & {
|
|
505
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
506
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
507
|
+
}, (store: LayerSelectModuleState) => ActiveServiceObjectEntities, ((state: LayerSelectModuleState) => string) & {
|
|
508
|
+
clearCache: () => void;
|
|
509
|
+
resultsCount: () => number;
|
|
510
|
+
resetResultsCount: () => void;
|
|
511
|
+
} & {
|
|
512
|
+
resultFunc: (resultFuncArgs_0: LayerSelectStoreType) => string;
|
|
513
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerSelectStoreType) => string) & {
|
|
514
|
+
clearCache: () => void;
|
|
515
|
+
resultsCount: () => number;
|
|
516
|
+
resetResultsCount: () => void;
|
|
517
|
+
};
|
|
518
|
+
lastResult: () => string;
|
|
519
|
+
dependencies: [(store: LayerSelectModuleState) => LayerSelectStoreType];
|
|
520
|
+
recomputations: () => number;
|
|
521
|
+
resetRecomputations: () => void;
|
|
522
|
+
dependencyRecomputations: () => number;
|
|
523
|
+
resetDependencyRecomputations: () => void;
|
|
524
|
+
} & {
|
|
525
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
526
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
527
|
+
}];
|
|
528
|
+
recomputations: () => number;
|
|
529
|
+
resetRecomputations: () => void;
|
|
530
|
+
dependencyRecomputations: () => number;
|
|
531
|
+
resetDependencyRecomputations: () => void;
|
|
532
|
+
} & {
|
|
533
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
534
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
137
535
|
};
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { WebMapStateModuleState, UIModuleState } from '@opengeoweb/store';
|
|
2
|
-
import {
|
|
2
|
+
import { Store } from '@reduxjs/toolkit';
|
|
3
3
|
import { LayerSelectModuleState } from './types';
|
|
4
4
|
export declare const layerSelectReducersMap: {
|
|
5
|
-
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").
|
|
6
|
-
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").
|
|
7
|
-
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").
|
|
5
|
+
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
6
|
+
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").ServiceState>;
|
|
7
|
+
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>;
|
|
8
8
|
layerSelect: import("redux").Reducer<import("./types").LayerSelectStoreType>;
|
|
9
|
-
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").
|
|
10
|
-
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").
|
|
9
|
+
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>;
|
|
10
|
+
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>;
|
|
11
11
|
};
|
|
12
|
-
export declare const layerSelectMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").RootState, import("
|
|
13
|
-
export declare const createMockStore: (mockState?: WebMapStateModuleState | LayerSelectModuleState | UIModuleState) =>
|
|
12
|
+
export declare const layerSelectMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").RootState, import("redux-thunk").ThunkDispatch<import("./types").RootState, unknown, import("redux").UnknownAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<import("@opengeoweb/snackbar").SnackbarModuleStore, import("redux-thunk").ThunkDispatch<import("@opengeoweb/snackbar").SnackbarModuleStore, unknown, import("redux").UnknownAction>, unknown>)[];
|
|
13
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | LayerSelectModuleState | UIModuleState) => Store;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export interface Filter {
|
|
|
27
27
|
type: FilterType;
|
|
28
28
|
}
|
|
29
29
|
export type ActiveServiceObjectEntities = Record<string, ActiveServiceObject>;
|
|
30
|
-
export type Filters = EntityState<Filter>;
|
|
31
|
-
export type ActiveServiceType = EntityState<ActiveServiceObject>;
|
|
30
|
+
export type Filters = EntityState<Filter, string>;
|
|
31
|
+
export type ActiveServiceType = EntityState<ActiveServiceObject, string>;
|
|
32
32
|
export interface FiltersType {
|
|
33
33
|
searchFilter: string;
|
|
34
34
|
activeServices: ActiveServiceType;
|
package/src/lib/store/utils.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { LayerProps } from '@opengeoweb/webmap';
|
|
|
4
4
|
import { Draft, EntityAdapter } from '@reduxjs/toolkit';
|
|
5
5
|
import { Filter, FilterType, LayerSelectStoreType } from './types';
|
|
6
6
|
export declare const getFilterId: (filterType: FilterType, filterName: string) => string;
|
|
7
|
-
export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter>) => void;
|
|
7
|
+
export declare const produceFilters: (filterNames: string[], filterType: FilterType, draft: Draft<LayerSelectStoreType>, layerSelectFilterAdapter: EntityAdapter<Filter, string>) => void;
|
|
8
8
|
export declare const filterLayersFromService: (serviceId: string, services: serviceTypes.Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => LayerProps[];
|
|
9
9
|
export declare const isUserAddedService: (scope: SystemScope) => boolean;
|