@opengeoweb/workspace 12.10.0 → 12.12.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 +325 -374
- package/package.json +18 -15
- package/src/lib/Workspace.stories.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.stories.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.stories.d.ts +1 -1
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.stories.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.stories.d.ts +1 -1
- package/src/lib/store/viewPresets/selectors.d.ts +4 -4
- package/src/lib/store/viewPresetsList/selectors.d.ts +1 -1
- package/src/lib/store/workspace/selectors.d.ts +9 -9
- package/src/lib/store/workspace/types.d.ts +0 -1
- package/src/lib/store/workspace/utils.d.ts +1 -1
- package/src/lib/store/workspaceList/selectors.d.ts +60 -60
- package/src/lib/store/workspaceList/utils.d.ts +1 -1
- package/src/lib/storyUtils/componentsLookUp.stories.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,30 +9,30 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-redux": "^9.2.0",
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/api": "12.
|
|
12
|
+
"@opengeoweb/shared": "12.12.0",
|
|
13
|
+
"@opengeoweb/store": "12.12.0",
|
|
14
|
+
"@opengeoweb/api": "12.12.0",
|
|
15
15
|
"react-hook-form": "^7.50.1",
|
|
16
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/theme": "12.12.0",
|
|
17
17
|
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
-
"@opengeoweb/snackbar": "12.
|
|
18
|
+
"@opengeoweb/snackbar": "12.12.0",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"axios": "^1.7.7",
|
|
22
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
23
23
|
"react-mosaic-component": "^6.1.0",
|
|
24
|
-
"@opengeoweb/form-fields": "12.
|
|
25
|
-
"@opengeoweb/timeseries": "12.
|
|
26
|
-
"@opengeoweb/authentication": "12.
|
|
27
|
-
"@opengeoweb/core": "12.
|
|
28
|
-
"@opengeoweb/taf": "12.
|
|
29
|
-
"@opengeoweb/sigmet-airmet": "12.
|
|
30
|
-
"@opengeoweb/warnings": "12.
|
|
31
|
-
"@opengeoweb/spaceweather": "12.
|
|
24
|
+
"@opengeoweb/form-fields": "12.12.0",
|
|
25
|
+
"@opengeoweb/timeseries": "12.12.0",
|
|
26
|
+
"@opengeoweb/authentication": "12.12.0",
|
|
27
|
+
"@opengeoweb/core": "12.12.0",
|
|
28
|
+
"@opengeoweb/taf": "12.12.0",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "12.12.0",
|
|
30
|
+
"@opengeoweb/warnings": "12.12.0",
|
|
31
|
+
"@opengeoweb/spaceweather": "12.12.0",
|
|
32
32
|
"i18next": "^25.0.1",
|
|
33
33
|
"react-i18next": "^15.1.1",
|
|
34
34
|
"@mui/material": "^7.0.1",
|
|
35
|
-
"@opengeoweb/webmap-react": "12.
|
|
35
|
+
"@opengeoweb/webmap-react": "12.12.0",
|
|
36
36
|
"@tanstack/react-query": "^5.69.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"@emotion/react": "*",
|
|
41
41
|
"@emotion/styled": "*"
|
|
42
42
|
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"eslint-plugin-storybook": "9.0.17"
|
|
45
|
+
},
|
|
43
46
|
"module": "./index.esm.js",
|
|
44
47
|
"type": "module",
|
|
45
48
|
"main": "./index.esm.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import ViewPresetsFormDialog from './ViewPresetsFormDialog';
|
|
4
4
|
declare const meta: Meta<typeof ViewPresetsFormDialog>;
|
|
5
5
|
export default meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import WorkspacePresetsSelectListRow from './WorkspaceSelectListRow';
|
|
3
3
|
declare const meta: Meta<typeof WorkspacePresetsSelectListRow>;
|
|
4
4
|
export default meta;
|
|
@@ -386,7 +386,7 @@ export declare const getViewPresetListFiltersForView: ((state: AppStore, _panelI
|
|
|
386
386
|
isDisabled: boolean;
|
|
387
387
|
label: string;
|
|
388
388
|
id: import("../workspaceList/types").PresetFilterType | "all";
|
|
389
|
-
isSelected?: boolean
|
|
389
|
+
isSelected?: boolean;
|
|
390
390
|
}[]) & {
|
|
391
391
|
clearCache: () => void;
|
|
392
392
|
resultsCount: () => number;
|
|
@@ -406,7 +406,7 @@ export declare const getViewPresetListFiltersForView: ((state: AppStore, _panelI
|
|
|
406
406
|
isDisabled: boolean;
|
|
407
407
|
label: string;
|
|
408
408
|
id: import("../workspaceList/types").PresetFilterType | "all";
|
|
409
|
-
isSelected?: boolean
|
|
409
|
+
isSelected?: boolean;
|
|
410
410
|
}[];
|
|
411
411
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
412
412
|
panelId: string;
|
|
@@ -422,7 +422,7 @@ export declare const getViewPresetListFiltersForView: ((state: AppStore, _panelI
|
|
|
422
422
|
isDisabled: boolean;
|
|
423
423
|
label: string;
|
|
424
424
|
id: import("../workspaceList/types").PresetFilterType | "all";
|
|
425
|
-
isSelected?: boolean
|
|
425
|
+
isSelected?: boolean;
|
|
426
426
|
}[]) & {
|
|
427
427
|
clearCache: () => void;
|
|
428
428
|
resultsCount: () => number;
|
|
@@ -432,7 +432,7 @@ export declare const getViewPresetListFiltersForView: ((state: AppStore, _panelI
|
|
|
432
432
|
isDisabled: boolean;
|
|
433
433
|
label: string;
|
|
434
434
|
id: import("../workspaceList/types").PresetFilterType | "all";
|
|
435
|
-
isSelected?: boolean
|
|
435
|
+
isSelected?: boolean;
|
|
436
436
|
}[];
|
|
437
437
|
dependencies: [(state: AppStore, id: string) => {
|
|
438
438
|
panelId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppStore } from '../types';
|
|
2
2
|
import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
3
3
|
export declare const getViewPresetsListStore: (store: AppStore) => ViewPresetListState;
|
|
4
|
-
export declare const getViewPresetsList: (state: AppStore) => ViewPresetListItem[],
|
|
4
|
+
export declare const getViewPresetsList: (state: AppStore) => ViewPresetListItem[], getViewPresetFromList: (state: AppStore, id: string) => {
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
7
7
|
date: string;
|
|
@@ -687,24 +687,24 @@ export declare const getViewComponentType: ((state: AppStore, viewId: string) =>
|
|
|
687
687
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
688
688
|
};
|
|
689
689
|
export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) => Omit<ViewPreset, "title"> & {
|
|
690
|
-
title?: string
|
|
690
|
+
title?: string;
|
|
691
691
|
}) & {
|
|
692
692
|
clearCache: () => void;
|
|
693
693
|
resultsCount: () => number;
|
|
694
694
|
resetResultsCount: () => void;
|
|
695
695
|
} & {
|
|
696
696
|
resultFunc: (resultFuncArgs_0: import("./types").WorkspaceViewType, resultFuncArgs_1: WorkspaceSupportedComponentTypes, resultFuncArgs_2: import("@opengeoweb/store").MapPreset, resultFuncArgs_3: string[], resultFuncArgs_4: import("dist/libs/timeseries/src/lib/store/types").TimeSeriesPreset | undefined) => Omit<ViewPreset, "title"> & {
|
|
697
|
-
title?: string
|
|
697
|
+
title?: string;
|
|
698
698
|
};
|
|
699
699
|
memoizedResultFunc: ((resultFuncArgs_0: import("./types").WorkspaceViewType, resultFuncArgs_1: WorkspaceSupportedComponentTypes, resultFuncArgs_2: import("@opengeoweb/store").MapPreset, resultFuncArgs_3: string[], resultFuncArgs_4: import("dist/libs/timeseries/src/lib/store/types").TimeSeriesPreset | undefined) => Omit<ViewPreset, "title"> & {
|
|
700
|
-
title?: string
|
|
700
|
+
title?: string;
|
|
701
701
|
}) & {
|
|
702
702
|
clearCache: () => void;
|
|
703
703
|
resultsCount: () => number;
|
|
704
704
|
resetResultsCount: () => void;
|
|
705
705
|
};
|
|
706
706
|
lastResult: () => Omit<ViewPreset, "title"> & {
|
|
707
|
-
title?: string
|
|
707
|
+
title?: string;
|
|
708
708
|
};
|
|
709
709
|
dependencies: [((state: AppStore, viewId: string) => import("./types").WorkspaceViewType) & {
|
|
710
710
|
clearCache: () => void;
|
|
@@ -811,8 +811,8 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) =>
|
|
|
811
811
|
resultsCount: () => number;
|
|
812
812
|
resetResultsCount: () => void;
|
|
813
813
|
} & {
|
|
814
|
-
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_2: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_3: import("dist/libs/store/src/store/map/types").Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: import("dist/libs/store/src/store/ui/types").UIStoreType) => import("@opengeoweb/store").MapPreset;
|
|
815
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_2: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_3: import("dist/libs/store/src/store/map/types").Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: import("dist/libs/store/src/store/ui/types").UIStoreType) => import("@opengeoweb/store").MapPreset) & {
|
|
814
|
+
resultFunc: (resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_2: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_3: import("dist/libs/store/src/store/map/types").Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: import("dist/libs/store/src/store/ui/types").UIStoreType, resultFuncArgs_22: string) => import("@opengeoweb/store").MapPreset;
|
|
815
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_1: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_2: import("dist/libs/store/src/store/map/types").ReduxLayer[], resultFuncArgs_3: import("dist/libs/store/src/store/map/types").Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: boolean | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: string | undefined, resultFuncArgs_21: import("dist/libs/store/src/store/ui/types").UIStoreType, resultFuncArgs_22: string) => import("@opengeoweb/store").MapPreset) & {
|
|
816
816
|
clearCache: () => void;
|
|
817
817
|
resultsCount: () => number;
|
|
818
818
|
resetResultsCount: () => void;
|
|
@@ -1338,7 +1338,7 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) =>
|
|
|
1338
1338
|
} & {
|
|
1339
1339
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
1340
1340
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
1341
|
-
}, (store: import("@opengeoweb/store").UIModuleState) => import("dist/libs/store/src/store/ui/types").UIStoreType];
|
|
1341
|
+
}, (store: import("@opengeoweb/store").UIModuleState) => import("dist/libs/store/src/store/ui/types").UIStoreType, (_store: import("@opengeoweb/store").CoreAppStore, mapId: string) => string];
|
|
1342
1342
|
recomputations: () => number;
|
|
1343
1343
|
resetRecomputations: () => void;
|
|
1344
1344
|
dependencyRecomputations: () => number;
|
|
@@ -1374,9 +1374,9 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) =>
|
|
|
1374
1374
|
resetResultsCount: () => void;
|
|
1375
1375
|
};
|
|
1376
1376
|
lastResult: () => string;
|
|
1377
|
-
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, (syncGroupStore: any, sourceId: any) =>
|
|
1377
|
+
dependencies: [(store: import("@opengeoweb/store").CoreAppStore) => import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, (syncGroupStore: any, sourceId: any) => {
|
|
1378
1378
|
sourceId: string;
|
|
1379
|
-
}];
|
|
1379
|
+
} | string];
|
|
1380
1380
|
recomputations: () => number;
|
|
1381
1381
|
resetRecomputations: () => void;
|
|
1382
1382
|
dependencyRecomputations: () => number;
|
|
@@ -8,7 +8,7 @@ import { WorkspacePreset, WorkspacePresetForBE, WorkspaceViewsFromBE, ViewType,
|
|
|
8
8
|
import { WorkspaceDialogView } from '../workspaceList/types';
|
|
9
9
|
import { SaveViewPresetPayload, ViewPreset } from '../viewPresets/types';
|
|
10
10
|
export declare const getWorkspaceApi: () => PresetsApi;
|
|
11
|
-
export declare const getViewPresetState: (viewPresetId: string, mosaicNodeId: string, state:
|
|
11
|
+
export declare const getViewPresetState: (viewPresetId: string, mosaicNodeId: string, state: "loading" | "error") => {
|
|
12
12
|
title: string;
|
|
13
13
|
id: string;
|
|
14
14
|
mosaicNodeId: string;
|
|
@@ -102,10 +102,10 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
102
102
|
hasChanges: boolean;
|
|
103
103
|
scope: SystemScope;
|
|
104
104
|
}[];
|
|
105
|
-
id?: string
|
|
106
|
-
title?: string
|
|
107
|
-
abstract?: string
|
|
108
|
-
scope?: SystemScope
|
|
105
|
+
id?: string;
|
|
106
|
+
title?: string;
|
|
107
|
+
abstract?: string;
|
|
108
|
+
scope?: SystemScope;
|
|
109
109
|
} | {
|
|
110
110
|
views: {
|
|
111
111
|
mosaicNodeId: string;
|
|
@@ -117,22 +117,22 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
117
117
|
hasChanges: boolean;
|
|
118
118
|
scope: SystemScope;
|
|
119
119
|
}[];
|
|
120
|
-
id?: string
|
|
120
|
+
id?: string;
|
|
121
121
|
title: string;
|
|
122
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[]
|
|
123
|
-
linking?: Record<string, string[]
|
|
124
|
-
viewType?: import("../workspace/types").ViewType
|
|
122
|
+
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
123
|
+
linking?: Record<string, string[]>;
|
|
124
|
+
viewType?: import("../workspace/types").ViewType;
|
|
125
125
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
126
|
-
scope?: SystemScope
|
|
127
|
-
is_shared?: boolean
|
|
128
|
-
username?: string
|
|
129
|
-
abstract?: string
|
|
126
|
+
scope?: SystemScope;
|
|
127
|
+
is_shared?: boolean;
|
|
128
|
+
username?: string;
|
|
129
|
+
abstract?: string;
|
|
130
130
|
};
|
|
131
131
|
action: import("../workspace/types").WorkspacePresetAction;
|
|
132
132
|
presetId: string;
|
|
133
133
|
error?: import("./types").WorkspaceListError;
|
|
134
|
-
isFetching?: boolean
|
|
135
|
-
hasSaved?: boolean
|
|
134
|
+
isFetching?: boolean;
|
|
135
|
+
hasSaved?: boolean;
|
|
136
136
|
}) & {
|
|
137
137
|
clearCache: () => void;
|
|
138
138
|
resultsCount: () => number;
|
|
@@ -150,10 +150,10 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
150
150
|
hasChanges: boolean;
|
|
151
151
|
scope: SystemScope;
|
|
152
152
|
}[];
|
|
153
|
-
id?: string
|
|
154
|
-
title?: string
|
|
155
|
-
abstract?: string
|
|
156
|
-
scope?: SystemScope
|
|
153
|
+
id?: string;
|
|
154
|
+
title?: string;
|
|
155
|
+
abstract?: string;
|
|
156
|
+
scope?: SystemScope;
|
|
157
157
|
} | {
|
|
158
158
|
views: {
|
|
159
159
|
mosaicNodeId: string;
|
|
@@ -165,22 +165,22 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
165
165
|
hasChanges: boolean;
|
|
166
166
|
scope: SystemScope;
|
|
167
167
|
}[];
|
|
168
|
-
id?: string
|
|
168
|
+
id?: string;
|
|
169
169
|
title: string;
|
|
170
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[]
|
|
171
|
-
linking?: Record<string, string[]
|
|
172
|
-
viewType?: import("../workspace/types").ViewType
|
|
170
|
+
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
171
|
+
linking?: Record<string, string[]>;
|
|
172
|
+
viewType?: import("../workspace/types").ViewType;
|
|
173
173
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
174
|
-
scope?: SystemScope
|
|
175
|
-
is_shared?: boolean
|
|
176
|
-
username?: string
|
|
177
|
-
abstract?: string
|
|
174
|
+
scope?: SystemScope;
|
|
175
|
+
is_shared?: boolean;
|
|
176
|
+
username?: string;
|
|
177
|
+
abstract?: string;
|
|
178
178
|
};
|
|
179
179
|
action: import("../workspace/types").WorkspacePresetAction;
|
|
180
180
|
presetId: string;
|
|
181
181
|
error?: import("./types").WorkspaceListError;
|
|
182
|
-
isFetching?: boolean
|
|
183
|
-
hasSaved?: boolean
|
|
182
|
+
isFetching?: boolean;
|
|
183
|
+
hasSaved?: boolean;
|
|
184
184
|
};
|
|
185
185
|
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: WorkspaceState, resultFuncArgs_2: ViewPresetState) => false | {
|
|
186
186
|
formValues: {
|
|
@@ -194,10 +194,10 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
194
194
|
hasChanges: boolean;
|
|
195
195
|
scope: SystemScope;
|
|
196
196
|
}[];
|
|
197
|
-
id?: string
|
|
198
|
-
title?: string
|
|
199
|
-
abstract?: string
|
|
200
|
-
scope?: SystemScope
|
|
197
|
+
id?: string;
|
|
198
|
+
title?: string;
|
|
199
|
+
abstract?: string;
|
|
200
|
+
scope?: SystemScope;
|
|
201
201
|
} | {
|
|
202
202
|
views: {
|
|
203
203
|
mosaicNodeId: string;
|
|
@@ -209,22 +209,22 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
209
209
|
hasChanges: boolean;
|
|
210
210
|
scope: SystemScope;
|
|
211
211
|
}[];
|
|
212
|
-
id?: string
|
|
212
|
+
id?: string;
|
|
213
213
|
title: string;
|
|
214
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[]
|
|
215
|
-
linking?: Record<string, string[]
|
|
216
|
-
viewType?: import("../workspace/types").ViewType
|
|
214
|
+
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
215
|
+
linking?: Record<string, string[]>;
|
|
216
|
+
viewType?: import("../workspace/types").ViewType;
|
|
217
217
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
218
|
-
scope?: SystemScope
|
|
219
|
-
is_shared?: boolean
|
|
220
|
-
username?: string
|
|
221
|
-
abstract?: string
|
|
218
|
+
scope?: SystemScope;
|
|
219
|
+
is_shared?: boolean;
|
|
220
|
+
username?: string;
|
|
221
|
+
abstract?: string;
|
|
222
222
|
};
|
|
223
223
|
action: import("../workspace/types").WorkspacePresetAction;
|
|
224
224
|
presetId: string;
|
|
225
225
|
error?: import("./types").WorkspaceListError;
|
|
226
|
-
isFetching?: boolean
|
|
227
|
-
hasSaved?: boolean
|
|
226
|
+
isFetching?: boolean;
|
|
227
|
+
hasSaved?: boolean;
|
|
228
228
|
}) & {
|
|
229
229
|
clearCache: () => void;
|
|
230
230
|
resultsCount: () => number;
|
|
@@ -242,10 +242,10 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
242
242
|
hasChanges: boolean;
|
|
243
243
|
scope: SystemScope;
|
|
244
244
|
}[];
|
|
245
|
-
id?: string
|
|
246
|
-
title?: string
|
|
247
|
-
abstract?: string
|
|
248
|
-
scope?: SystemScope
|
|
245
|
+
id?: string;
|
|
246
|
+
title?: string;
|
|
247
|
+
abstract?: string;
|
|
248
|
+
scope?: SystemScope;
|
|
249
249
|
} | {
|
|
250
250
|
views: {
|
|
251
251
|
mosaicNodeId: string;
|
|
@@ -257,22 +257,22 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
257
257
|
hasChanges: boolean;
|
|
258
258
|
scope: SystemScope;
|
|
259
259
|
}[];
|
|
260
|
-
id?: string
|
|
260
|
+
id?: string;
|
|
261
261
|
title: string;
|
|
262
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[]
|
|
263
|
-
linking?: Record<string, string[]
|
|
264
|
-
viewType?: import("../workspace/types").ViewType
|
|
262
|
+
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
263
|
+
linking?: Record<string, string[]>;
|
|
264
|
+
viewType?: import("../workspace/types").ViewType;
|
|
265
265
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
266
|
-
scope?: SystemScope
|
|
267
|
-
is_shared?: boolean
|
|
268
|
-
username?: string
|
|
269
|
-
abstract?: string
|
|
266
|
+
scope?: SystemScope;
|
|
267
|
+
is_shared?: boolean;
|
|
268
|
+
username?: string;
|
|
269
|
+
abstract?: string;
|
|
270
270
|
};
|
|
271
271
|
action: import("../workspace/types").WorkspacePresetAction;
|
|
272
272
|
presetId: string;
|
|
273
273
|
error?: import("./types").WorkspaceListError;
|
|
274
|
-
isFetching?: boolean
|
|
275
|
-
hasSaved?: boolean
|
|
274
|
+
isFetching?: boolean;
|
|
275
|
+
hasSaved?: boolean;
|
|
276
276
|
};
|
|
277
277
|
dependencies: [(store: AppStore) => WorkspaceListState, ((state: AppStore) => WorkspaceState) & {
|
|
278
278
|
clearCache: () => void;
|
|
@@ -328,7 +328,7 @@ export declare const getWorkspaceListFilters: ((state: AppStore, _scope?: System
|
|
|
328
328
|
isDisabled: boolean;
|
|
329
329
|
label: string;
|
|
330
330
|
id: import("./types").PresetFilterType;
|
|
331
|
-
isSelected?: boolean
|
|
331
|
+
isSelected?: boolean;
|
|
332
332
|
}[]) & {
|
|
333
333
|
clearCache: () => void;
|
|
334
334
|
resultsCount: () => number;
|
|
@@ -338,13 +338,13 @@ export declare const getWorkspaceListFilters: ((state: AppStore, _scope?: System
|
|
|
338
338
|
isDisabled: boolean;
|
|
339
339
|
label: string;
|
|
340
340
|
id: import("./types").PresetFilterType;
|
|
341
|
-
isSelected?: boolean
|
|
341
|
+
isSelected?: boolean;
|
|
342
342
|
}[];
|
|
343
343
|
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: SystemScope | undefined, resultFuncArgs_2: boolean | undefined) => {
|
|
344
344
|
isDisabled: boolean;
|
|
345
345
|
label: string;
|
|
346
346
|
id: import("./types").PresetFilterType;
|
|
347
|
-
isSelected?: boolean
|
|
347
|
+
isSelected?: boolean;
|
|
348
348
|
}[]) & {
|
|
349
349
|
clearCache: () => void;
|
|
350
350
|
resultsCount: () => number;
|
|
@@ -354,7 +354,7 @@ export declare const getWorkspaceListFilters: ((state: AppStore, _scope?: System
|
|
|
354
354
|
isDisabled: boolean;
|
|
355
355
|
label: string;
|
|
356
356
|
id: import("./types").PresetFilterType;
|
|
357
|
-
isSelected?: boolean
|
|
357
|
+
isSelected?: boolean;
|
|
358
358
|
}[];
|
|
359
359
|
dependencies: [(store: AppStore) => WorkspaceListState, (_store: AppStore, scope?: SystemScope) => SystemScope | undefined, (_store: AppStore, _scope?: SystemScope, isAdmin?: boolean) => boolean | undefined];
|
|
360
360
|
recomputations: () => number;
|
|
@@ -11,6 +11,6 @@ export declare function getEmptyWorkspaceListItem(t: TFunction): WorkspacePreset
|
|
|
11
11
|
export declare function getEmptyWorkspaceListItem(t?: TFunction): Omit<WorkspacePresetListItem, 'title'> | WorkspacePresetListItem;
|
|
12
12
|
export declare function getEmptyMapWorkspace(): Omit<WorkspacePreset, 'title'>;
|
|
13
13
|
export declare function getEmptyMapWorkspace(t: TFunction): WorkspacePreset;
|
|
14
|
-
export declare const getEmptyWorkspacePreset: () => Omit<WorkspacePreset,
|
|
14
|
+
export declare const getEmptyWorkspacePreset: () => Omit<WorkspacePreset, "title">;
|
|
15
15
|
export declare const createCustomEmptyMapWorkspace: (emptyWorkspaceTitle: string, emptyMapWorkspaceTitle: string, customMapPreset?: MapPreset) => WorkspacePreset;
|
|
16
16
|
export declare const constructFilterParams: (filters: WorkspaceListFilter[] | ViewPresetsListFilter[], searchQuery: string) => FetchWorkspaceParams | FetchViewPresetsListParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { WorkspacePreset } from '../store/workspace/types';
|
|
4
4
|
interface ComponentTypeDemoProps {
|
|
5
5
|
screenPreset: WorkspacePreset;
|