@opengeoweb/workspace 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 +854 -613
- package/package.json +19 -19
- package/src/lib/api/viewpresets-api/api.d.ts +4 -0
- package/src/lib/api/workspace-api/api.d.ts +3 -3
- package/src/lib/api/workspace-api/hooks.d.ts +2 -2
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +2 -2
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +2 -2
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +2 -2
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +2 -2
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceView/helpers.d.ts +2 -2
- package/src/lib/hooks/useFetchViewPresets.d.ts +1 -0
- package/src/lib/store/store.d.ts +11 -11
- package/src/lib/store/viewPresets/listener.d.ts +4 -4
- package/src/lib/store/viewPresets/reducer.d.ts +1 -1
- package/src/lib/store/viewPresets/selectors.d.ts +511 -35
- package/src/lib/store/viewPresets/types.d.ts +12 -9
- package/src/lib/store/viewPresets/utils.d.ts +1 -1
- package/src/lib/store/viewPresetsList/reducer.d.ts +1 -1
- package/src/lib/store/viewPresetsList/selectors.d.ts +177 -4
- package/src/lib/store/viewPresetsList/types.d.ts +4 -3
- package/src/lib/store/workspace/listener.d.ts +3 -3
- package/src/lib/store/workspace/selectors.d.ts +1788 -68
- package/src/lib/store/workspace/types.d.ts +19 -9
- package/src/lib/store/workspace/utils.d.ts +2 -2
- package/src/lib/store/workspaceList/listener.d.ts +3 -3
- package/src/lib/store/workspaceList/reducer.d.ts +21 -3
- package/src/lib/store/workspaceList/selectors.d.ts +310 -76
- package/src/lib/store/workspaceList/types.d.ts +12 -11
- package/src/lib/store/workspaceList/utils.d.ts +4 -4
- package/src/lib/utils/api.d.ts +3 -3
- package/src/lib/utils/utils.d.ts +3 -2
|
@@ -1,61 +1,537 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemScope } from '@opengeoweb/shared';
|
|
2
2
|
import type { AppStore } from '../types';
|
|
3
3
|
import { ViewPresetListItem } from '../workspace/types';
|
|
4
4
|
import { ViewPresetEntity, ViewPresetError, ViewPresetsListFilter, ViewPresetState } from './types';
|
|
5
5
|
export declare const getViewPresetsStore: (store: AppStore) => ViewPresetState;
|
|
6
|
-
export declare const getViewPresets: (state: AppStore) => ViewPresetEntity[], getViewPresetById: (state: AppStore, id:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export declare const getViewPresets: (state: AppStore) => ViewPresetEntity[], getViewPresetById: (state: AppStore, id: string) => {
|
|
7
|
+
panelId: string;
|
|
8
|
+
activeViewPresetId: string;
|
|
9
|
+
hasChanges: boolean;
|
|
10
|
+
isFetching: boolean;
|
|
11
|
+
error: ViewPresetError;
|
|
12
|
+
isViewPresetListDialogOpen: boolean;
|
|
13
|
+
filters: ViewPresetsListFilter[];
|
|
14
|
+
searchQuery: string;
|
|
15
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
11
16
|
};
|
|
12
|
-
export declare const
|
|
13
|
-
clearCache: () => void;
|
|
14
|
-
}> & {
|
|
17
|
+
export declare const getViewPresetsIsFetching: ((state: AppStore, id: string) => boolean) & {
|
|
15
18
|
clearCache: () => void;
|
|
19
|
+
resultsCount: () => number;
|
|
20
|
+
resetResultsCount: () => void;
|
|
21
|
+
} & {
|
|
22
|
+
resultFunc: (resultFuncArgs_0: {
|
|
23
|
+
panelId: string;
|
|
24
|
+
activeViewPresetId: string;
|
|
25
|
+
hasChanges: boolean;
|
|
26
|
+
isFetching: boolean;
|
|
27
|
+
error: ViewPresetError;
|
|
28
|
+
isViewPresetListDialogOpen: boolean;
|
|
29
|
+
filters: ViewPresetsListFilter[];
|
|
30
|
+
searchQuery: string;
|
|
31
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
32
|
+
}, resultFuncArgs_1: string) => boolean;
|
|
33
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
34
|
+
panelId: string;
|
|
35
|
+
activeViewPresetId: string;
|
|
36
|
+
hasChanges: boolean;
|
|
37
|
+
isFetching: boolean;
|
|
38
|
+
error: ViewPresetError;
|
|
39
|
+
isViewPresetListDialogOpen: boolean;
|
|
40
|
+
filters: ViewPresetsListFilter[];
|
|
41
|
+
searchQuery: string;
|
|
42
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
43
|
+
}, resultFuncArgs_1: string) => boolean) & {
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
resultsCount: () => number;
|
|
46
|
+
resetResultsCount: () => void;
|
|
47
|
+
};
|
|
48
|
+
lastResult: () => boolean;
|
|
49
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
50
|
+
panelId: string;
|
|
51
|
+
activeViewPresetId: string;
|
|
52
|
+
hasChanges: boolean;
|
|
53
|
+
isFetching: boolean;
|
|
54
|
+
error: ViewPresetError;
|
|
55
|
+
isViewPresetListDialogOpen: boolean;
|
|
56
|
+
filters: ViewPresetsListFilter[];
|
|
57
|
+
searchQuery: string;
|
|
58
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
59
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
60
|
+
recomputations: () => number;
|
|
61
|
+
resetRecomputations: () => void;
|
|
62
|
+
dependencyRecomputations: () => number;
|
|
63
|
+
resetDependencyRecomputations: () => void;
|
|
64
|
+
} & {
|
|
65
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
66
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
16
67
|
};
|
|
17
|
-
export declare const
|
|
18
|
-
clearCache: () => void;
|
|
19
|
-
}> & {
|
|
68
|
+
export declare const getViewPresetsError: ((state: AppStore, id: string) => ViewPresetError) & {
|
|
20
69
|
clearCache: () => void;
|
|
70
|
+
resultsCount: () => number;
|
|
71
|
+
resetResultsCount: () => void;
|
|
72
|
+
} & {
|
|
73
|
+
resultFunc: (resultFuncArgs_0: {
|
|
74
|
+
panelId: string;
|
|
75
|
+
activeViewPresetId: string;
|
|
76
|
+
hasChanges: boolean;
|
|
77
|
+
isFetching: boolean;
|
|
78
|
+
error: ViewPresetError;
|
|
79
|
+
isViewPresetListDialogOpen: boolean;
|
|
80
|
+
filters: ViewPresetsListFilter[];
|
|
81
|
+
searchQuery: string;
|
|
82
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
83
|
+
}, resultFuncArgs_1: string) => ViewPresetError;
|
|
84
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
85
|
+
panelId: string;
|
|
86
|
+
activeViewPresetId: string;
|
|
87
|
+
hasChanges: boolean;
|
|
88
|
+
isFetching: boolean;
|
|
89
|
+
error: ViewPresetError;
|
|
90
|
+
isViewPresetListDialogOpen: boolean;
|
|
91
|
+
filters: ViewPresetsListFilter[];
|
|
92
|
+
searchQuery: string;
|
|
93
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
94
|
+
}, resultFuncArgs_1: string) => ViewPresetError) & {
|
|
95
|
+
clearCache: () => void;
|
|
96
|
+
resultsCount: () => number;
|
|
97
|
+
resetResultsCount: () => void;
|
|
98
|
+
};
|
|
99
|
+
lastResult: () => ViewPresetError;
|
|
100
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
101
|
+
panelId: string;
|
|
102
|
+
activeViewPresetId: string;
|
|
103
|
+
hasChanges: boolean;
|
|
104
|
+
isFetching: boolean;
|
|
105
|
+
error: ViewPresetError;
|
|
106
|
+
isViewPresetListDialogOpen: boolean;
|
|
107
|
+
filters: ViewPresetsListFilter[];
|
|
108
|
+
searchQuery: string;
|
|
109
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
110
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
111
|
+
recomputations: () => number;
|
|
112
|
+
resetRecomputations: () => void;
|
|
113
|
+
dependencyRecomputations: () => number;
|
|
114
|
+
resetDependencyRecomputations: () => void;
|
|
115
|
+
} & {
|
|
116
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
117
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
21
118
|
};
|
|
22
|
-
export declare const
|
|
23
|
-
clearCache: () => void;
|
|
24
|
-
}> & {
|
|
119
|
+
export declare const getViewPresetDetailError: ((state: AppStore, id: string) => string | undefined) & {
|
|
25
120
|
clearCache: () => void;
|
|
121
|
+
resultsCount: () => number;
|
|
122
|
+
resetResultsCount: () => void;
|
|
123
|
+
} & {
|
|
124
|
+
resultFunc: (resultFuncArgs_0: ViewPresetError, resultFuncArgs_1: string) => string | undefined;
|
|
125
|
+
memoizedResultFunc: ((resultFuncArgs_0: ViewPresetError, resultFuncArgs_1: string) => string | undefined) & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
resultsCount: () => number;
|
|
128
|
+
resetResultsCount: () => void;
|
|
129
|
+
};
|
|
130
|
+
lastResult: () => string | undefined;
|
|
131
|
+
dependencies: [((state: AppStore, id: string) => ViewPresetError) & {
|
|
132
|
+
clearCache: () => void;
|
|
133
|
+
resultsCount: () => number;
|
|
134
|
+
resetResultsCount: () => void;
|
|
135
|
+
} & {
|
|
136
|
+
resultFunc: (resultFuncArgs_0: {
|
|
137
|
+
panelId: string;
|
|
138
|
+
activeViewPresetId: string;
|
|
139
|
+
hasChanges: boolean;
|
|
140
|
+
isFetching: boolean;
|
|
141
|
+
error: ViewPresetError;
|
|
142
|
+
isViewPresetListDialogOpen: boolean;
|
|
143
|
+
filters: ViewPresetsListFilter[];
|
|
144
|
+
searchQuery: string;
|
|
145
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
146
|
+
}, resultFuncArgs_1: string) => ViewPresetError;
|
|
147
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
148
|
+
panelId: string;
|
|
149
|
+
activeViewPresetId: string;
|
|
150
|
+
hasChanges: boolean;
|
|
151
|
+
isFetching: boolean;
|
|
152
|
+
error: ViewPresetError;
|
|
153
|
+
isViewPresetListDialogOpen: boolean;
|
|
154
|
+
filters: ViewPresetsListFilter[];
|
|
155
|
+
searchQuery: string;
|
|
156
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
157
|
+
}, resultFuncArgs_1: string) => ViewPresetError) & {
|
|
158
|
+
clearCache: () => void;
|
|
159
|
+
resultsCount: () => number;
|
|
160
|
+
resetResultsCount: () => void;
|
|
161
|
+
};
|
|
162
|
+
lastResult: () => ViewPresetError;
|
|
163
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
164
|
+
panelId: string;
|
|
165
|
+
activeViewPresetId: string;
|
|
166
|
+
hasChanges: boolean;
|
|
167
|
+
isFetching: boolean;
|
|
168
|
+
error: ViewPresetError;
|
|
169
|
+
isViewPresetListDialogOpen: boolean;
|
|
170
|
+
filters: ViewPresetsListFilter[];
|
|
171
|
+
searchQuery: string;
|
|
172
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
173
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
174
|
+
recomputations: () => number;
|
|
175
|
+
resetRecomputations: () => void;
|
|
176
|
+
dependencyRecomputations: () => number;
|
|
177
|
+
resetDependencyRecomputations: () => void;
|
|
178
|
+
} & {
|
|
179
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
180
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
181
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
182
|
+
recomputations: () => number;
|
|
183
|
+
resetRecomputations: () => void;
|
|
184
|
+
dependencyRecomputations: () => number;
|
|
185
|
+
resetDependencyRecomputations: () => void;
|
|
186
|
+
} & {
|
|
187
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
188
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
26
189
|
};
|
|
27
|
-
export declare const
|
|
28
|
-
clearCache: () => void;
|
|
29
|
-
}> & {
|
|
190
|
+
export declare const getViewPresetHasChanges: ((state: AppStore, id: string) => boolean | undefined) & {
|
|
30
191
|
clearCache: () => void;
|
|
192
|
+
resultsCount: () => number;
|
|
193
|
+
resetResultsCount: () => void;
|
|
194
|
+
} & {
|
|
195
|
+
resultFunc: (resultFuncArgs_0: {
|
|
196
|
+
panelId: string;
|
|
197
|
+
activeViewPresetId: string;
|
|
198
|
+
hasChanges: boolean;
|
|
199
|
+
isFetching: boolean;
|
|
200
|
+
error: ViewPresetError;
|
|
201
|
+
isViewPresetListDialogOpen: boolean;
|
|
202
|
+
filters: ViewPresetsListFilter[];
|
|
203
|
+
searchQuery: string;
|
|
204
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
205
|
+
}, resultFuncArgs_1: string) => boolean | undefined;
|
|
206
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
207
|
+
panelId: string;
|
|
208
|
+
activeViewPresetId: string;
|
|
209
|
+
hasChanges: boolean;
|
|
210
|
+
isFetching: boolean;
|
|
211
|
+
error: ViewPresetError;
|
|
212
|
+
isViewPresetListDialogOpen: boolean;
|
|
213
|
+
filters: ViewPresetsListFilter[];
|
|
214
|
+
searchQuery: string;
|
|
215
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
216
|
+
}, resultFuncArgs_1: string) => boolean | undefined) & {
|
|
217
|
+
clearCache: () => void;
|
|
218
|
+
resultsCount: () => number;
|
|
219
|
+
resetResultsCount: () => void;
|
|
220
|
+
};
|
|
221
|
+
lastResult: () => boolean | undefined;
|
|
222
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
223
|
+
panelId: string;
|
|
224
|
+
activeViewPresetId: string;
|
|
225
|
+
hasChanges: boolean;
|
|
226
|
+
isFetching: boolean;
|
|
227
|
+
error: ViewPresetError;
|
|
228
|
+
isViewPresetListDialogOpen: boolean;
|
|
229
|
+
filters: ViewPresetsListFilter[];
|
|
230
|
+
searchQuery: string;
|
|
231
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
232
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
233
|
+
recomputations: () => number;
|
|
234
|
+
resetRecomputations: () => void;
|
|
235
|
+
dependencyRecomputations: () => number;
|
|
236
|
+
resetDependencyRecomputations: () => void;
|
|
237
|
+
} & {
|
|
238
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
239
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
31
240
|
};
|
|
32
|
-
export declare const
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
}> & {
|
|
241
|
+
export declare const getViewPresetActiveId: ((state: AppStore, id: string) => string | undefined) & {
|
|
35
242
|
clearCache: () => void;
|
|
243
|
+
resultsCount: () => number;
|
|
244
|
+
resetResultsCount: () => void;
|
|
245
|
+
} & {
|
|
246
|
+
resultFunc: (resultFuncArgs_0: {
|
|
247
|
+
panelId: string;
|
|
248
|
+
activeViewPresetId: string;
|
|
249
|
+
hasChanges: boolean;
|
|
250
|
+
isFetching: boolean;
|
|
251
|
+
error: ViewPresetError;
|
|
252
|
+
isViewPresetListDialogOpen: boolean;
|
|
253
|
+
filters: ViewPresetsListFilter[];
|
|
254
|
+
searchQuery: string;
|
|
255
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
256
|
+
}, resultFuncArgs_1: string) => string | undefined;
|
|
257
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
258
|
+
panelId: string;
|
|
259
|
+
activeViewPresetId: string;
|
|
260
|
+
hasChanges: boolean;
|
|
261
|
+
isFetching: boolean;
|
|
262
|
+
error: ViewPresetError;
|
|
263
|
+
isViewPresetListDialogOpen: boolean;
|
|
264
|
+
filters: ViewPresetsListFilter[];
|
|
265
|
+
searchQuery: string;
|
|
266
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
267
|
+
}, resultFuncArgs_1: string) => string | undefined) & {
|
|
268
|
+
clearCache: () => void;
|
|
269
|
+
resultsCount: () => number;
|
|
270
|
+
resetResultsCount: () => void;
|
|
271
|
+
};
|
|
272
|
+
lastResult: () => string | undefined;
|
|
273
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
274
|
+
panelId: string;
|
|
275
|
+
activeViewPresetId: string;
|
|
276
|
+
hasChanges: boolean;
|
|
277
|
+
isFetching: boolean;
|
|
278
|
+
error: ViewPresetError;
|
|
279
|
+
isViewPresetListDialogOpen: boolean;
|
|
280
|
+
filters: ViewPresetsListFilter[];
|
|
281
|
+
searchQuery: string;
|
|
282
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
283
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
284
|
+
recomputations: () => number;
|
|
285
|
+
resetRecomputations: () => void;
|
|
286
|
+
dependencyRecomputations: () => number;
|
|
287
|
+
resetDependencyRecomputations: () => void;
|
|
288
|
+
} & {
|
|
289
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
290
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
36
291
|
};
|
|
37
|
-
export declare const
|
|
38
|
-
clearCache: () => void;
|
|
39
|
-
}> & {
|
|
292
|
+
export declare const getViewPresetPanelId: ((state: AppStore, mapId: string) => string) & {
|
|
40
293
|
clearCache: () => void;
|
|
294
|
+
resultsCount: () => number;
|
|
295
|
+
resetResultsCount: () => void;
|
|
296
|
+
} & {
|
|
297
|
+
resultFunc: (resultFuncArgs_0: ViewPresetEntity[], resultFuncArgs_1: string) => string;
|
|
298
|
+
memoizedResultFunc: ((resultFuncArgs_0: ViewPresetEntity[], resultFuncArgs_1: string) => string) & {
|
|
299
|
+
clearCache: () => void;
|
|
300
|
+
resultsCount: () => number;
|
|
301
|
+
resetResultsCount: () => void;
|
|
302
|
+
};
|
|
303
|
+
lastResult: () => string;
|
|
304
|
+
dependencies: [(state: AppStore) => ViewPresetEntity[], (store: AppStore, mapId: string) => string];
|
|
305
|
+
recomputations: () => number;
|
|
306
|
+
resetRecomputations: () => void;
|
|
307
|
+
dependencyRecomputations: () => number;
|
|
308
|
+
resetDependencyRecomputations: () => void;
|
|
309
|
+
} & {
|
|
310
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
311
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
41
312
|
};
|
|
42
|
-
export declare const
|
|
43
|
-
clearCache: () => void;
|
|
44
|
-
}> & {
|
|
313
|
+
export declare const getDialogOptions: ((state: AppStore) => import("./types").ViewPresetDialog | undefined) & {
|
|
45
314
|
clearCache: () => void;
|
|
315
|
+
resultsCount: () => number;
|
|
316
|
+
resetResultsCount: () => void;
|
|
317
|
+
} & {
|
|
318
|
+
resultFunc: (resultFuncArgs_0: ViewPresetState, resultFuncArgs_1: AppStore) => import("./types").ViewPresetDialog | undefined;
|
|
319
|
+
memoizedResultFunc: ((resultFuncArgs_0: ViewPresetState, resultFuncArgs_1: AppStore) => import("./types").ViewPresetDialog | undefined) & {
|
|
320
|
+
clearCache: () => void;
|
|
321
|
+
resultsCount: () => number;
|
|
322
|
+
resetResultsCount: () => void;
|
|
323
|
+
};
|
|
324
|
+
lastResult: () => import("./types").ViewPresetDialog | undefined;
|
|
325
|
+
dependencies: [(store: AppStore) => ViewPresetState, (store: AppStore) => AppStore];
|
|
326
|
+
recomputations: () => number;
|
|
327
|
+
resetRecomputations: () => void;
|
|
328
|
+
dependencyRecomputations: () => number;
|
|
329
|
+
resetDependencyRecomputations: () => void;
|
|
330
|
+
} & {
|
|
331
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
332
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
46
333
|
};
|
|
47
|
-
export declare const
|
|
48
|
-
clearCache: () => void;
|
|
49
|
-
}> & {
|
|
334
|
+
export declare const getIsViewPresetListDialogOpen: ((state: AppStore, id: string) => boolean) & {
|
|
50
335
|
clearCache: () => void;
|
|
336
|
+
resultsCount: () => number;
|
|
337
|
+
resetResultsCount: () => void;
|
|
338
|
+
} & {
|
|
339
|
+
resultFunc: (resultFuncArgs_0: {
|
|
340
|
+
panelId: string;
|
|
341
|
+
activeViewPresetId: string;
|
|
342
|
+
hasChanges: boolean;
|
|
343
|
+
isFetching: boolean;
|
|
344
|
+
error: ViewPresetError;
|
|
345
|
+
isViewPresetListDialogOpen: boolean;
|
|
346
|
+
filters: ViewPresetsListFilter[];
|
|
347
|
+
searchQuery: string;
|
|
348
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
349
|
+
}, resultFuncArgs_1: string) => boolean;
|
|
350
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
351
|
+
panelId: string;
|
|
352
|
+
activeViewPresetId: string;
|
|
353
|
+
hasChanges: boolean;
|
|
354
|
+
isFetching: boolean;
|
|
355
|
+
error: ViewPresetError;
|
|
356
|
+
isViewPresetListDialogOpen: boolean;
|
|
357
|
+
filters: ViewPresetsListFilter[];
|
|
358
|
+
searchQuery: string;
|
|
359
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
360
|
+
}, resultFuncArgs_1: string) => boolean) & {
|
|
361
|
+
clearCache: () => void;
|
|
362
|
+
resultsCount: () => number;
|
|
363
|
+
resetResultsCount: () => void;
|
|
364
|
+
};
|
|
365
|
+
lastResult: () => boolean;
|
|
366
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
367
|
+
panelId: string;
|
|
368
|
+
activeViewPresetId: string;
|
|
369
|
+
hasChanges: boolean;
|
|
370
|
+
isFetching: boolean;
|
|
371
|
+
error: ViewPresetError;
|
|
372
|
+
isViewPresetListDialogOpen: boolean;
|
|
373
|
+
filters: ViewPresetsListFilter[];
|
|
374
|
+
searchQuery: string;
|
|
375
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
376
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
377
|
+
recomputations: () => number;
|
|
378
|
+
resetRecomputations: () => void;
|
|
379
|
+
dependencyRecomputations: () => number;
|
|
380
|
+
resetDependencyRecomputations: () => void;
|
|
381
|
+
} & {
|
|
382
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
383
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
51
384
|
};
|
|
52
|
-
export declare const
|
|
53
|
-
clearCache: () => void;
|
|
54
|
-
}> & {
|
|
385
|
+
export declare const getViewPresetListFiltersForView: ((state: AppStore, _panelId: string, scope?: SystemScope | undefined) => ViewPresetsListFilter[]) & {
|
|
55
386
|
clearCache: () => void;
|
|
387
|
+
resultsCount: () => number;
|
|
388
|
+
resetResultsCount: () => void;
|
|
389
|
+
} & {
|
|
390
|
+
resultFunc: (resultFuncArgs_0: {
|
|
391
|
+
panelId: string;
|
|
392
|
+
activeViewPresetId: string;
|
|
393
|
+
hasChanges: boolean;
|
|
394
|
+
isFetching: boolean;
|
|
395
|
+
error: ViewPresetError;
|
|
396
|
+
isViewPresetListDialogOpen: boolean;
|
|
397
|
+
filters: ViewPresetsListFilter[];
|
|
398
|
+
searchQuery: string;
|
|
399
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
400
|
+
}, resultFuncArgs_1: SystemScope | undefined) => ViewPresetsListFilter[];
|
|
401
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
402
|
+
panelId: string;
|
|
403
|
+
activeViewPresetId: string;
|
|
404
|
+
hasChanges: boolean;
|
|
405
|
+
isFetching: boolean;
|
|
406
|
+
error: ViewPresetError;
|
|
407
|
+
isViewPresetListDialogOpen: boolean;
|
|
408
|
+
filters: ViewPresetsListFilter[];
|
|
409
|
+
searchQuery: string;
|
|
410
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
411
|
+
}, resultFuncArgs_1: SystemScope | undefined) => ViewPresetsListFilter[]) & {
|
|
412
|
+
clearCache: () => void;
|
|
413
|
+
resultsCount: () => number;
|
|
414
|
+
resetResultsCount: () => void;
|
|
415
|
+
};
|
|
416
|
+
lastResult: () => ViewPresetsListFilter[];
|
|
417
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
418
|
+
panelId: string;
|
|
419
|
+
activeViewPresetId: string;
|
|
420
|
+
hasChanges: boolean;
|
|
421
|
+
isFetching: boolean;
|
|
422
|
+
error: ViewPresetError;
|
|
423
|
+
isViewPresetListDialogOpen: boolean;
|
|
424
|
+
filters: ViewPresetsListFilter[];
|
|
425
|
+
searchQuery: string;
|
|
426
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
427
|
+
}, (_store: AppStore, _panelId: string, scope?: SystemScope) => SystemScope | undefined];
|
|
428
|
+
recomputations: () => number;
|
|
429
|
+
resetRecomputations: () => void;
|
|
430
|
+
dependencyRecomputations: () => number;
|
|
431
|
+
resetDependencyRecomputations: () => void;
|
|
432
|
+
} & {
|
|
433
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
434
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
56
435
|
};
|
|
57
|
-
export declare const
|
|
436
|
+
export declare const getViewPresetListSearchQueryForView: ((state: AppStore, id: string) => string) & {
|
|
58
437
|
clearCache: () => void;
|
|
59
|
-
|
|
438
|
+
resultsCount: () => number;
|
|
439
|
+
resetResultsCount: () => void;
|
|
440
|
+
} & {
|
|
441
|
+
resultFunc: (resultFuncArgs_0: {
|
|
442
|
+
panelId: string;
|
|
443
|
+
activeViewPresetId: string;
|
|
444
|
+
hasChanges: boolean;
|
|
445
|
+
isFetching: boolean;
|
|
446
|
+
error: ViewPresetError;
|
|
447
|
+
isViewPresetListDialogOpen: boolean;
|
|
448
|
+
filters: ViewPresetsListFilter[];
|
|
449
|
+
searchQuery: string;
|
|
450
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
451
|
+
}, resultFuncArgs_1: string) => string;
|
|
452
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
453
|
+
panelId: string;
|
|
454
|
+
activeViewPresetId: string;
|
|
455
|
+
hasChanges: boolean;
|
|
456
|
+
isFetching: boolean;
|
|
457
|
+
error: ViewPresetError;
|
|
458
|
+
isViewPresetListDialogOpen: boolean;
|
|
459
|
+
filters: ViewPresetsListFilter[];
|
|
460
|
+
searchQuery: string;
|
|
461
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
462
|
+
}, resultFuncArgs_1: string) => string) & {
|
|
463
|
+
clearCache: () => void;
|
|
464
|
+
resultsCount: () => number;
|
|
465
|
+
resetResultsCount: () => void;
|
|
466
|
+
};
|
|
467
|
+
lastResult: () => string;
|
|
468
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
469
|
+
panelId: string;
|
|
470
|
+
activeViewPresetId: string;
|
|
471
|
+
hasChanges: boolean;
|
|
472
|
+
isFetching: boolean;
|
|
473
|
+
error: ViewPresetError;
|
|
474
|
+
isViewPresetListDialogOpen: boolean;
|
|
475
|
+
filters: ViewPresetsListFilter[];
|
|
476
|
+
searchQuery: string;
|
|
477
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
478
|
+
}, (_store: AppStore, panelId: string) => string];
|
|
479
|
+
recomputations: () => number;
|
|
480
|
+
resetRecomputations: () => void;
|
|
481
|
+
dependencyRecomputations: () => number;
|
|
482
|
+
resetDependencyRecomputations: () => void;
|
|
483
|
+
} & {
|
|
484
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
485
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
486
|
+
};
|
|
487
|
+
export declare const getViewPresetListFilterResultsForView: ((state: AppStore, id: string) => ViewPresetListItem[]) & {
|
|
60
488
|
clearCache: () => void;
|
|
489
|
+
resultsCount: () => number;
|
|
490
|
+
resetResultsCount: () => void;
|
|
491
|
+
} & {
|
|
492
|
+
resultFunc: (resultFuncArgs_0: {
|
|
493
|
+
panelId: string;
|
|
494
|
+
activeViewPresetId: string;
|
|
495
|
+
hasChanges: boolean;
|
|
496
|
+
isFetching: boolean;
|
|
497
|
+
error: ViewPresetError;
|
|
498
|
+
isViewPresetListDialogOpen: boolean;
|
|
499
|
+
filters: ViewPresetsListFilter[];
|
|
500
|
+
searchQuery: string;
|
|
501
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
502
|
+
}) => ViewPresetListItem[];
|
|
503
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
504
|
+
panelId: string;
|
|
505
|
+
activeViewPresetId: string;
|
|
506
|
+
hasChanges: boolean;
|
|
507
|
+
isFetching: boolean;
|
|
508
|
+
error: ViewPresetError;
|
|
509
|
+
isViewPresetListDialogOpen: boolean;
|
|
510
|
+
filters: ViewPresetsListFilter[];
|
|
511
|
+
searchQuery: string;
|
|
512
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
513
|
+
}) => ViewPresetListItem[]) & {
|
|
514
|
+
clearCache: () => void;
|
|
515
|
+
resultsCount: () => number;
|
|
516
|
+
resetResultsCount: () => void;
|
|
517
|
+
};
|
|
518
|
+
lastResult: () => ViewPresetListItem[];
|
|
519
|
+
dependencies: [(state: AppStore, id: string) => {
|
|
520
|
+
panelId: string;
|
|
521
|
+
activeViewPresetId: string;
|
|
522
|
+
hasChanges: boolean;
|
|
523
|
+
isFetching: boolean;
|
|
524
|
+
error: ViewPresetError;
|
|
525
|
+
isViewPresetListDialogOpen: boolean;
|
|
526
|
+
filters: ViewPresetsListFilter[];
|
|
527
|
+
searchQuery: string;
|
|
528
|
+
filterResults: import("@reduxjs/toolkit").EntityState<import("../viewPresetsList/types").ViewPresetListItem, string>;
|
|
529
|
+
}];
|
|
530
|
+
recomputations: () => number;
|
|
531
|
+
resetRecomputations: () => void;
|
|
532
|
+
dependencyRecomputations: () => number;
|
|
533
|
+
resetDependencyRecomputations: () => void;
|
|
534
|
+
} & {
|
|
535
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
536
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
61
537
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { InitialProps, SupportedComponentTypes } from '@opengeoweb/core';
|
|
2
2
|
import { SupportedComponentTypes as SupportedTimeSeriesComponentTypes } from '@opengeoweb/timeseries';
|
|
3
|
-
import {
|
|
3
|
+
import { SystemScope } from '@opengeoweb/shared';
|
|
4
4
|
import { WarningListComponentType } from '@opengeoweb/warnings';
|
|
5
5
|
import { EntityState } from '@reduxjs/toolkit';
|
|
6
6
|
import { FetchViewPresetsListParams, ViewPresetListItem } from '../viewPresetsList/types';
|
|
7
7
|
import { WorkspaceViewPresetComponentsLookupType } from '../workspace/types';
|
|
8
|
+
import { PresetFilterType } from '../workspaceList/types';
|
|
8
9
|
export type WorkspaceSupportedComponentTypes = SupportedComponentTypes | SupportedTimeSeriesComponentTypes | WarningListComponentType | WorkspaceViewPresetComponentsLookupType;
|
|
9
10
|
export interface ViewPreset {
|
|
10
11
|
id?: string;
|
|
@@ -13,7 +14,9 @@ export interface ViewPreset {
|
|
|
13
14
|
keywords: string;
|
|
14
15
|
componentType: WorkspaceSupportedComponentTypes;
|
|
15
16
|
initialProps?: InitialProps;
|
|
16
|
-
scope?:
|
|
17
|
+
scope?: SystemScope;
|
|
18
|
+
is_shared?: boolean;
|
|
19
|
+
username?: string;
|
|
17
20
|
}
|
|
18
21
|
export declare enum ViewPresetErrorComponent {
|
|
19
22
|
PRESET_DETAIL = "PRESET_DETAIL",
|
|
@@ -30,8 +33,7 @@ export type ViewPresetError = {
|
|
|
30
33
|
} | undefined;
|
|
31
34
|
export interface ViewPresetsListFilter {
|
|
32
35
|
label: string;
|
|
33
|
-
id:
|
|
34
|
-
type?: 'scope' | 'keyword';
|
|
36
|
+
id: PresetFilterType | 'all';
|
|
35
37
|
isSelected?: boolean;
|
|
36
38
|
isDisabled?: boolean;
|
|
37
39
|
}
|
|
@@ -44,7 +46,7 @@ export interface ViewPresetEntity {
|
|
|
44
46
|
isViewPresetListDialogOpen: boolean;
|
|
45
47
|
filters: ViewPresetsListFilter[];
|
|
46
48
|
searchQuery: string;
|
|
47
|
-
filterResults: EntityState<ViewPresetListItem>;
|
|
49
|
+
filterResults: EntityState<ViewPresetListItem, string>;
|
|
48
50
|
}
|
|
49
51
|
export interface ViewPresetFormValues {
|
|
50
52
|
title?: string;
|
|
@@ -58,7 +60,7 @@ export interface ViewPresetDialog {
|
|
|
58
60
|
panelId: string;
|
|
59
61
|
formValues: ViewPresetFormValues;
|
|
60
62
|
}
|
|
61
|
-
export interface ViewPresetState extends EntityState<ViewPresetEntity> {
|
|
63
|
+
export interface ViewPresetState extends EntityState<ViewPresetEntity, string> {
|
|
62
64
|
viewPresetDialog?: ViewPresetDialog;
|
|
63
65
|
}
|
|
64
66
|
export declare enum PresetAction {
|
|
@@ -109,8 +111,9 @@ export interface OnSuccesViewPresetActionPayload extends ViewPresetAction {
|
|
|
109
111
|
action: PresetAction;
|
|
110
112
|
title: string;
|
|
111
113
|
componentType?: string;
|
|
112
|
-
scope?:
|
|
114
|
+
scope?: SystemScope;
|
|
113
115
|
abstract?: string;
|
|
116
|
+
is_shared?: boolean;
|
|
114
117
|
}
|
|
115
118
|
export interface SelectViewPresetPayload extends ViewPresetAction {
|
|
116
119
|
viewPresetId: string;
|
|
@@ -123,12 +126,12 @@ export interface ToggleViewPresetListDialogPayload extends ViewPresetAction {
|
|
|
123
126
|
isViewPresetListDialogOpen: boolean;
|
|
124
127
|
}
|
|
125
128
|
export interface ToggleSelectFilterChip extends ViewPresetAction {
|
|
126
|
-
id:
|
|
129
|
+
id: PresetFilterType;
|
|
127
130
|
isSelected: boolean;
|
|
128
131
|
}
|
|
129
132
|
export interface SetFilterChipsPayload extends ViewPresetAction {
|
|
130
133
|
filters: {
|
|
131
|
-
id:
|
|
134
|
+
id: PresetFilterType;
|
|
132
135
|
isSelected: boolean;
|
|
133
136
|
}[];
|
|
134
137
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { snackbarTypes } from '@opengeoweb/snackbar';
|
|
2
2
|
import { PresetsApi } from '../../utils/api';
|
|
3
3
|
import { PresetAction, ViewPreset, WorkspaceSupportedComponentTypes } from './types';
|
|
4
|
-
export declare const getSnackbarMessage: (action: PresetAction, title: string) => snackbarTypes.TranslatableMessage;
|
|
4
|
+
export declare const getSnackbarMessage: (action: PresetAction, title: string, is_shared?: boolean) => snackbarTypes.TranslatableMessage;
|
|
5
5
|
export declare const getPresetsApi: () => PresetsApi;
|
|
6
6
|
export declare const emptyViewPreset: (componentType?: WorkspaceSupportedComponentTypes | undefined) => ViewPreset;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
2
|
-
export declare const viewPresetsListAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetListItem>;
|
|
2
|
+
export declare const viewPresetsListAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetListItem, string>;
|
|
3
3
|
export declare const initialState: ViewPresetListState;
|
|
4
4
|
export declare const viewPresetsListReducer: import("redux").Reducer<ViewPresetListState>, viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}, "viewPresetsList">;
|