@opengeoweb/workspace 12.2.0 → 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.
@@ -1,4 +1,4 @@
1
1
  import { WorkspaceModuleStore } from '../types';
2
2
  import { WorkspacePresetForBE } from '../workspace/types';
3
3
  export declare const emptyWorkspaceBEData: Omit<WorkspacePresetForBE, 'title'>;
4
- export declare const workspaceListListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WorkspaceModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WorkspaceModuleStore, unknown, import("redux").AnyAction>, unknown>;
4
+ export declare const workspaceListListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WorkspaceModuleStore, import("redux-thunk").ThunkDispatch<WorkspaceModuleStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -20,7 +20,7 @@ export declare const sharedFilterState: {
20
20
  isDisabled: boolean;
21
21
  };
22
22
  export declare const defaultPresetFilterState: WorkspaceListFilter[];
23
- export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem>;
23
+ export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem, string>;
24
24
  export declare const initialState: WorkspaceListState;
25
25
  export declare const workspaceListReducer: import("redux").Reducer<WorkspaceListState>, workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
26
26
  fetchWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchWorkspaceList>) => void;
@@ -5,25 +5,89 @@ import { WorkspaceState } from '../workspace/types';
5
5
  import { WorkspaceListFilter, WorkspaceListState } from './types';
6
6
  export declare const getWorkspaceListStore: (store: AppStore) => WorkspaceListState;
7
7
  export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
8
- export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
9
- clearCache: () => void;
10
- }> & {
8
+ export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & {
11
9
  clearCache: () => void;
10
+ resultsCount: () => number;
11
+ resetResultsCount: () => void;
12
+ } & {
13
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean;
14
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean) & {
15
+ clearCache: () => void;
16
+ resultsCount: () => number;
17
+ resetResultsCount: () => void;
18
+ };
19
+ lastResult: () => boolean;
20
+ dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
21
+ recomputations: () => number;
22
+ resetRecomputations: () => void;
23
+ dependencyRecomputations: () => number;
24
+ resetDependencyRecomputations: () => void;
25
+ } & {
26
+ memoize: typeof import("reselect").weakMapMemoize;
27
+ argsMemoize: typeof import("reselect").weakMapMemoize;
12
28
  };
13
- export declare const getWorkspaceDialogIsSaved: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
14
- clearCache: () => void;
15
- }> & {
29
+ export declare const getWorkspaceDialogIsSaved: ((state: AppStore) => boolean) & {
16
30
  clearCache: () => void;
31
+ resultsCount: () => number;
32
+ resetResultsCount: () => void;
33
+ } & {
34
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean;
35
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean) & {
36
+ clearCache: () => void;
37
+ resultsCount: () => number;
38
+ resetResultsCount: () => void;
39
+ };
40
+ lastResult: () => boolean;
41
+ dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
42
+ recomputations: () => number;
43
+ resetRecomputations: () => void;
44
+ dependencyRecomputations: () => number;
45
+ resetDependencyRecomputations: () => void;
46
+ } & {
47
+ memoize: typeof import("reselect").weakMapMemoize;
48
+ argsMemoize: typeof import("reselect").weakMapMemoize;
17
49
  };
18
- export declare const getWorkspaceListError: ((state: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined, {
19
- clearCache: () => void;
20
- }> & {
50
+ export declare const getWorkspaceListError: ((state: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined) & {
21
51
  clearCache: () => void;
52
+ resultsCount: () => number;
53
+ resetResultsCount: () => void;
54
+ } & {
55
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined;
56
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined) & {
57
+ clearCache: () => void;
58
+ resultsCount: () => number;
59
+ resetResultsCount: () => void;
60
+ };
61
+ lastResult: () => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined;
62
+ dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
63
+ recomputations: () => number;
64
+ resetRecomputations: () => void;
65
+ dependencyRecomputations: () => number;
66
+ resetDependencyRecomputations: () => void;
67
+ } & {
68
+ memoize: typeof import("reselect").weakMapMemoize;
69
+ argsMemoize: typeof import("reselect").weakMapMemoize;
22
70
  };
23
- export declare const getWorkspaceActionFormValues: ((state: AppStore) => import("./types").WorkspacePresetFormValues) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState) => import("./types").WorkspacePresetFormValues, {
24
- clearCache: () => void;
25
- }> & {
71
+ export declare const getWorkspaceActionFormValues: ((state: AppStore) => import("./types").WorkspacePresetFormValues) & {
26
72
  clearCache: () => void;
73
+ resultsCount: () => number;
74
+ resetResultsCount: () => void;
75
+ } & {
76
+ resultFunc: (resultFuncArgs_0: WorkspaceListState) => import("./types").WorkspacePresetFormValues;
77
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState) => import("./types").WorkspacePresetFormValues) & {
78
+ clearCache: () => void;
79
+ resultsCount: () => number;
80
+ resetResultsCount: () => void;
81
+ };
82
+ lastResult: () => import("./types").WorkspacePresetFormValues;
83
+ dependencies: [(store: AppStore) => WorkspaceListState];
84
+ recomputations: () => number;
85
+ resetRecomputations: () => void;
86
+ dependencyRecomputations: () => number;
87
+ resetDependencyRecomputations: () => void;
88
+ } & {
89
+ memoize: typeof import("reselect").weakMapMemoize;
90
+ argsMemoize: typeof import("reselect").weakMapMemoize;
27
91
  };
28
92
  export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => false | {
29
93
  formValues: {
@@ -33,51 +97,8 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
33
97
  isSelected: boolean;
34
98
  title: string | undefined;
35
99
  error: import("../viewPresets/types").ViewPresetError;
36
- isFetching: boolean | undefined;
37
- hasChanges: boolean | undefined;
38
- scope: SystemScope;
39
- }[];
40
- id?: string | undefined;
41
- title?: string | undefined;
42
- abstract?: string | undefined;
43
- scope?: SystemScope | undefined;
44
- } | {
45
- views: {
46
- mosaicNodeId: string;
47
- viewPresetId: string;
48
- isSelected: boolean;
49
- title: string | undefined;
50
- error: import("../viewPresets/types").ViewPresetError;
51
- isFetching: boolean | undefined;
52
- hasChanges: boolean | undefined;
53
- scope: SystemScope;
54
- }[];
55
- id?: string | undefined;
56
- title: string;
57
- syncGroups?: import("../workspace/types").WorkspaceSyncGroup[] | undefined;
58
- linking?: Record<string, string[]> | undefined;
59
- viewType?: import("../workspace/types").ViewType | undefined;
60
- mosaicNode: import("react-mosaic-component").MosaicNode<string>;
61
- scope?: SystemScope | undefined;
62
- is_shared?: boolean | undefined;
63
- username?: string | undefined;
64
- abstract?: string | undefined;
65
- };
66
- action: import("../workspace/types").WorkspacePresetAction;
67
- presetId: string;
68
- error?: import("./types").WorkspaceListError;
69
- isFetching?: boolean | undefined;
70
- hasSaved?: boolean | undefined;
71
- }) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: WorkspaceState, args_2: ViewPresetState) => false | {
72
- formValues: {
73
- views: {
74
- mosaicNodeId: string;
75
- viewPresetId: string;
76
- isSelected: boolean;
77
- title: string | undefined;
78
- error: import("../viewPresets/types").ViewPresetError;
79
- isFetching: boolean | undefined;
80
- hasChanges: boolean | undefined;
100
+ isFetching: boolean;
101
+ hasChanges: boolean;
81
102
  scope: SystemScope;
82
103
  }[];
83
104
  id?: string | undefined;
@@ -91,8 +112,8 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
91
112
  isSelected: boolean;
92
113
  title: string | undefined;
93
114
  error: import("../viewPresets/types").ViewPresetError;
94
- isFetching: boolean | undefined;
95
- hasChanges: boolean | undefined;
115
+ isFetching: boolean;
116
+ hasChanges: boolean;
96
117
  scope: SystemScope;
97
118
  }[];
98
119
  id?: string | undefined;
@@ -111,23 +132,236 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
111
132
  error?: import("./types").WorkspaceListError;
112
133
  isFetching?: boolean | undefined;
113
134
  hasSaved?: boolean | undefined;
114
- }, {
115
- clearCache: () => void;
116
- }> & {
135
+ }) & {
117
136
  clearCache: () => void;
137
+ resultsCount: () => number;
138
+ resetResultsCount: () => void;
139
+ } & {
140
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: WorkspaceState, resultFuncArgs_2: ViewPresetState) => false | {
141
+ formValues: {
142
+ views: {
143
+ mosaicNodeId: string;
144
+ viewPresetId: string;
145
+ isSelected: boolean;
146
+ title: string | undefined;
147
+ error: import("../viewPresets/types").ViewPresetError;
148
+ isFetching: boolean;
149
+ hasChanges: boolean;
150
+ scope: SystemScope;
151
+ }[];
152
+ id?: string | undefined;
153
+ title?: string | undefined;
154
+ abstract?: string | undefined;
155
+ scope?: SystemScope | undefined;
156
+ } | {
157
+ views: {
158
+ mosaicNodeId: string;
159
+ viewPresetId: string;
160
+ isSelected: boolean;
161
+ title: string | undefined;
162
+ error: import("../viewPresets/types").ViewPresetError;
163
+ isFetching: boolean;
164
+ hasChanges: boolean;
165
+ scope: SystemScope;
166
+ }[];
167
+ id?: string | undefined;
168
+ title: string;
169
+ syncGroups?: import("../workspace/types").WorkspaceSyncGroup[] | undefined;
170
+ linking?: Record<string, string[]> | undefined;
171
+ viewType?: import("../workspace/types").ViewType | undefined;
172
+ mosaicNode: import("react-mosaic-component").MosaicNode<string>;
173
+ scope?: SystemScope | undefined;
174
+ is_shared?: boolean | undefined;
175
+ username?: string | undefined;
176
+ abstract?: string | undefined;
177
+ };
178
+ action: import("../workspace/types").WorkspacePresetAction;
179
+ presetId: string;
180
+ error?: import("./types").WorkspaceListError;
181
+ isFetching?: boolean | undefined;
182
+ hasSaved?: boolean | undefined;
183
+ };
184
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: WorkspaceState, resultFuncArgs_2: ViewPresetState) => false | {
185
+ formValues: {
186
+ views: {
187
+ mosaicNodeId: string;
188
+ viewPresetId: string;
189
+ isSelected: boolean;
190
+ title: string | undefined;
191
+ error: import("../viewPresets/types").ViewPresetError;
192
+ isFetching: boolean;
193
+ hasChanges: boolean;
194
+ scope: SystemScope;
195
+ }[];
196
+ id?: string | undefined;
197
+ title?: string | undefined;
198
+ abstract?: string | undefined;
199
+ scope?: SystemScope | undefined;
200
+ } | {
201
+ views: {
202
+ mosaicNodeId: string;
203
+ viewPresetId: string;
204
+ isSelected: boolean;
205
+ title: string | undefined;
206
+ error: import("../viewPresets/types").ViewPresetError;
207
+ isFetching: boolean;
208
+ hasChanges: boolean;
209
+ scope: SystemScope;
210
+ }[];
211
+ id?: string | undefined;
212
+ title: string;
213
+ syncGroups?: import("../workspace/types").WorkspaceSyncGroup[] | undefined;
214
+ linking?: Record<string, string[]> | undefined;
215
+ viewType?: import("../workspace/types").ViewType | undefined;
216
+ mosaicNode: import("react-mosaic-component").MosaicNode<string>;
217
+ scope?: SystemScope | undefined;
218
+ is_shared?: boolean | undefined;
219
+ username?: string | undefined;
220
+ abstract?: string | undefined;
221
+ };
222
+ action: import("../workspace/types").WorkspacePresetAction;
223
+ presetId: string;
224
+ error?: import("./types").WorkspaceListError;
225
+ isFetching?: boolean | undefined;
226
+ hasSaved?: boolean | undefined;
227
+ }) & {
228
+ clearCache: () => void;
229
+ resultsCount: () => number;
230
+ resetResultsCount: () => void;
231
+ };
232
+ lastResult: () => false | {
233
+ formValues: {
234
+ views: {
235
+ mosaicNodeId: string;
236
+ viewPresetId: string;
237
+ isSelected: boolean;
238
+ title: string | undefined;
239
+ error: import("../viewPresets/types").ViewPresetError;
240
+ isFetching: boolean;
241
+ hasChanges: boolean;
242
+ scope: SystemScope;
243
+ }[];
244
+ id?: string | undefined;
245
+ title?: string | undefined;
246
+ abstract?: string | undefined;
247
+ scope?: SystemScope | undefined;
248
+ } | {
249
+ views: {
250
+ mosaicNodeId: string;
251
+ viewPresetId: string;
252
+ isSelected: boolean;
253
+ title: string | undefined;
254
+ error: import("../viewPresets/types").ViewPresetError;
255
+ isFetching: boolean;
256
+ hasChanges: boolean;
257
+ scope: SystemScope;
258
+ }[];
259
+ id?: string | undefined;
260
+ title: string;
261
+ syncGroups?: import("../workspace/types").WorkspaceSyncGroup[] | undefined;
262
+ linking?: Record<string, string[]> | undefined;
263
+ viewType?: import("../workspace/types").ViewType | undefined;
264
+ mosaicNode: import("react-mosaic-component").MosaicNode<string>;
265
+ scope?: SystemScope | undefined;
266
+ is_shared?: boolean | undefined;
267
+ username?: string | undefined;
268
+ abstract?: string | undefined;
269
+ };
270
+ action: import("../workspace/types").WorkspacePresetAction;
271
+ presetId: string;
272
+ error?: import("./types").WorkspaceListError;
273
+ isFetching?: boolean | undefined;
274
+ hasSaved?: boolean | undefined;
275
+ };
276
+ dependencies: [(store: AppStore) => WorkspaceListState, ((state: AppStore) => WorkspaceState) & {
277
+ clearCache: () => void;
278
+ resultsCount: () => number;
279
+ resetResultsCount: () => void;
280
+ } & {
281
+ resultFunc: (resultFuncArgs_0: WorkspaceState) => WorkspaceState;
282
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceState) => WorkspaceState) & {
283
+ clearCache: () => void;
284
+ resultsCount: () => number;
285
+ resetResultsCount: () => void;
286
+ };
287
+ lastResult: () => WorkspaceState;
288
+ dependencies: [(store: AppStore) => WorkspaceState];
289
+ recomputations: () => number;
290
+ resetRecomputations: () => void;
291
+ dependencyRecomputations: () => number;
292
+ resetDependencyRecomputations: () => void;
293
+ } & {
294
+ memoize: typeof import("reselect").weakMapMemoize;
295
+ argsMemoize: typeof import("reselect").weakMapMemoize;
296
+ }, (store: AppStore) => ViewPresetState];
297
+ recomputations: () => number;
298
+ resetRecomputations: () => void;
299
+ dependencyRecomputations: () => number;
300
+ resetDependencyRecomputations: () => void;
301
+ } & {
302
+ memoize: typeof import("reselect").weakMapMemoize;
303
+ argsMemoize: typeof import("reselect").weakMapMemoize;
118
304
  };
119
- export declare const getIsWorkspaceListDialogOpen: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
120
- clearCache: () => void;
121
- }> & {
305
+ export declare const getIsWorkspaceListDialogOpen: ((state: AppStore) => boolean) & {
122
306
  clearCache: () => void;
307
+ resultsCount: () => number;
308
+ resetResultsCount: () => void;
309
+ } & {
310
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean;
311
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean) & {
312
+ clearCache: () => void;
313
+ resultsCount: () => number;
314
+ resetResultsCount: () => void;
315
+ };
316
+ lastResult: () => boolean;
317
+ dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
318
+ recomputations: () => number;
319
+ resetRecomputations: () => void;
320
+ dependencyRecomputations: () => number;
321
+ resetDependencyRecomputations: () => void;
322
+ } & {
323
+ memoize: typeof import("reselect").weakMapMemoize;
324
+ argsMemoize: typeof import("reselect").weakMapMemoize;
123
325
  };
124
- export declare const getWorkspaceListFilters: ((state: AppStore, scope?: SystemScope | undefined) => WorkspaceListFilter[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: SystemScope | undefined) => WorkspaceListFilter[], {
125
- clearCache: () => void;
126
- }> & {
326
+ export declare const getWorkspaceListFilters: ((state: AppStore, scope?: SystemScope | undefined) => WorkspaceListFilter[]) & {
127
327
  clearCache: () => void;
328
+ resultsCount: () => number;
329
+ resetResultsCount: () => void;
330
+ } & {
331
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: SystemScope | undefined) => WorkspaceListFilter[];
332
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: SystemScope | undefined) => WorkspaceListFilter[]) & {
333
+ clearCache: () => void;
334
+ resultsCount: () => number;
335
+ resetResultsCount: () => void;
336
+ };
337
+ lastResult: () => WorkspaceListFilter[];
338
+ dependencies: [(store: AppStore) => WorkspaceListState, (_store: AppStore, scope?: SystemScope) => SystemScope | undefined];
339
+ recomputations: () => number;
340
+ resetRecomputations: () => void;
341
+ dependencyRecomputations: () => number;
342
+ resetDependencyRecomputations: () => void;
343
+ } & {
344
+ memoize: typeof import("reselect").weakMapMemoize;
345
+ argsMemoize: typeof import("reselect").weakMapMemoize;
128
346
  };
129
- export declare const getWorkspaceListSearchQuery: ((state: AppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => string, {
130
- clearCache: () => void;
131
- }> & {
347
+ export declare const getWorkspaceListSearchQuery: ((state: AppStore) => string) & {
132
348
  clearCache: () => void;
349
+ resultsCount: () => number;
350
+ resetResultsCount: () => void;
351
+ } & {
352
+ resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => string;
353
+ memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => string) & {
354
+ clearCache: () => void;
355
+ resultsCount: () => number;
356
+ resetResultsCount: () => void;
357
+ };
358
+ lastResult: () => string;
359
+ dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
360
+ recomputations: () => number;
361
+ resetRecomputations: () => void;
362
+ dependencyRecomputations: () => number;
363
+ resetDependencyRecomputations: () => void;
364
+ } & {
365
+ memoize: typeof import("reselect").weakMapMemoize;
366
+ argsMemoize: typeof import("reselect").weakMapMemoize;
133
367
  };
@@ -37,7 +37,7 @@ export interface FetchWorkspaceParams {
37
37
  scope?: string;
38
38
  search?: string;
39
39
  }
40
- export type WorkspaceListEntityState = EntityState<WorkspacePresetListItem>;
40
+ export type WorkspaceListEntityState = EntityState<WorkspacePresetListItem, string>;
41
41
  export type WorkspaceDialogView = {
42
42
  hasChanges: boolean;
43
43
  title: string;