@opengeoweb/workspace 15.3.0 → 17.0.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 +2605 -756
- package/package.json +19 -19
- package/index.esm.css +0 -37
- package/src/index.d.ts +0 -23
- package/src/lib/Workspace.stories.d.ts +0 -14
- package/src/lib/WorkspaceAdmin.stories.d.ts +0 -16
- package/src/lib/api/types.d.ts +0 -2
- package/src/lib/api/utils.d.ts +0 -5
- package/src/lib/api/viewpreset-api/api.d.ts +0 -9
- package/src/lib/api/viewpreset-api/fakeApi/fakeApi.d.ts +0 -1
- package/src/lib/api/viewpreset-api/fakeApi/mockData.d.ts +0 -84
- package/src/lib/api/viewpreset-api/hooks.d.ts +0 -16
- package/src/lib/api/viewpreset-api/queryOptions.d.ts +0 -42
- package/src/lib/api/workspace-api/api.d.ts +0 -12
- package/src/lib/api/workspace-api/fakeApi/fakeApi.d.ts +0 -1
- package/src/lib/api/workspace-api/fakeApi/mockData.d.ts +0 -13
- package/src/lib/api/workspace-api/hooks.d.ts +0 -15
- package/src/lib/api/workspace-api/queryOptions.d.ts +0 -42
- package/src/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.d.ts +0 -12
- package/src/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUpWrapper/index.d.ts +0 -1
- package/src/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.d.ts +0 -17
- package/src/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.spec.d.ts +0 -1
- package/src/lib/components/DefaultComponentsLookUp/index.d.ts +0 -1
- package/src/lib/components/LabelsPanel/PresetLabelsPanel.d.ts +0 -14
- package/src/lib/components/LabelsPanel/PresetLabelsPanel.spec.d.ts +0 -1
- package/src/lib/components/LabelsPanel/PresetsLabelsPanelWrapper.d.ts +0 -11
- package/src/lib/components/LabelsPanel/PresetsLabelsPanelWrapper.spec.d.ts +0 -1
- package/src/lib/components/Providers/Providers.d.ts +0 -30
- package/src/lib/components/Providers/index.d.ts +0 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.d.ts +0 -9
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.spec.d.ts +0 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.stories.d.ts +0 -10
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.d.ts +0 -9
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.spec.d.ts +0 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetsError.stories.d.ts +0 -61
- package/src/lib/components/ViewPresetMenu/index.d.ts +0 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.d.ts +0 -19
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.spec.d.ts +0 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +0 -20
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.spec.d.ts +0 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +0 -31
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +0 -6
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.spec.d.ts +0 -1
- package/src/lib/components/ViewPresetsFormDialog/index.d.ts +0 -1
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.d.ts +0 -10
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +0 -18
- package/src/lib/components/WorkspaceDetail/WorkspaceDetailError.stories.d.ts +0 -31
- package/src/lib/components/WorkspaceDetail/index.d.ts +0 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +0 -7
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +0 -10
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.d.ts +0 -12
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.stories.d.ts +0 -7
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.d.ts +0 -8
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceMenu/index.d.ts +0 -1
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +0 -15
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.stories.d.ts +0 -10
- package/src/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.d.ts +0 -6
- package/src/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +0 -26
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.spec.d.ts +0 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +0 -17
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.spec.d.ts +0 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +0 -27
- package/src/lib/components/WorkspaceSelectList/WorkspaceMenuLabelsWrapper.d.ts +0 -9
- package/src/lib/components/WorkspaceSelectList/WorkspaceMenuLabelsWrapper.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.d.ts +0 -11
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.stories.d.ts +0 -10
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +0 -19
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +0 -7
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListError.stories.d.ts +0 -14
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +0 -20
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.stories.d.ts +0 -8
- package/src/lib/components/WorkspaceTab/WorkspaceTab.d.ts +0 -8
- package/src/lib/components/WorkspaceTab/WorkspaceTab.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.d.ts +0 -7
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.integration.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceTab/index.d.ts +0 -1
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +0 -7
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.stories.d.ts +0 -11
- package/src/lib/components/WorkspaceTopBar/index.d.ts +0 -1
- package/src/lib/components/WorkspaceView/LinkMenu/LinkMenuConnect.d.ts +0 -6
- package/src/lib/components/WorkspaceView/LinkMenu/LinkMenuConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicatorConnect.d.ts +0 -6
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicatorConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/SplitButtonsConnect.d.ts +0 -8
- package/src/lib/components/WorkspaceView/SplitButtonsConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/WorkspaceControls.d.ts +0 -11
- package/src/lib/components/WorkspaceView/WorkspaceControls.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.d.ts +0 -12
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/WorkspaceView.d.ts +0 -16
- package/src/lib/components/WorkspaceView/WorkspaceView.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/WorkspaceViewConnect.d.ts +0 -7
- package/src/lib/components/WorkspaceView/WorkspaceViewConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/helpers.d.ts +0 -5
- package/src/lib/components/WorkspaceView/helpers.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/index.d.ts +0 -2
- package/src/lib/components/WorkspaceViewTitle/WorkspaceViewTitleConnect.d.ts +0 -11
- package/src/lib/components/WorkspaceViewTitle/WorkspaceViewTitleConnect.spec.d.ts +0 -1
- package/src/lib/hooks/useFetchViewPresets.d.ts +0 -1
- package/src/lib/hooks/useResetFiltersOnRoleChange.d.ts +0 -5
- package/src/lib/store/index.d.ts +0 -1
- package/src/lib/store/store.d.ts +0 -20
- package/src/lib/store/types.d.ts +0 -13
- package/src/lib/store/viewPresets/index.d.ts +0 -2
- package/src/lib/store/viewPresets/listener.d.ts +0 -5
- package/src/lib/store/viewPresets/listener.spec.d.ts +0 -1
- package/src/lib/store/viewPresets/reducer.d.ts +0 -36
- package/src/lib/store/viewPresets/reducer.spec.d.ts +0 -1
- package/src/lib/store/viewPresets/selectors.d.ts +0 -640
- package/src/lib/store/viewPresets/selectors.spec.d.ts +0 -1
- package/src/lib/store/viewPresets/types.d.ts +0 -180
- package/src/lib/store/viewPresets/utils.d.ts +0 -5
- package/src/lib/store/viewPresets/utils.spec.d.ts +0 -1
- package/src/lib/store/workspace/index.d.ts +0 -1
- package/src/lib/store/workspace/listener.d.ts +0 -5
- package/src/lib/store/workspace/listener.spec.d.ts +0 -1
- package/src/lib/store/workspace/reducer.d.ts +0 -22
- package/src/lib/store/workspace/reducer.spec.d.ts +0 -1
- package/src/lib/store/workspace/selectors.d.ts +0 -512
- package/src/lib/store/workspace/selectors.spec.d.ts +0 -1
- package/src/lib/store/workspace/types.d.ts +0 -200
- package/src/lib/store/workspace/utils.d.ts +0 -28
- package/src/lib/store/workspace/utils.spec.d.ts +0 -1
- package/src/lib/store/workspaceList/index.d.ts +0 -2
- package/src/lib/store/workspaceList/listener.d.ts +0 -4
- package/src/lib/store/workspaceList/listener.spec.d.ts +0 -1
- package/src/lib/store/workspaceList/reducer.d.ts +0 -45
- package/src/lib/store/workspaceList/reducer.spec.d.ts +0 -1
- package/src/lib/store/workspaceList/selectors.d.ts +0 -416
- package/src/lib/store/workspaceList/selectors.spec.d.ts +0 -1
- package/src/lib/store/workspaceList/types.d.ts +0 -136
- package/src/lib/store/workspaceList/utils.d.ts +0 -16
- package/src/lib/store/workspaceList/utils.spec.d.ts +0 -1
- package/src/lib/storyUtils/ActionsExampleComponent.d.ts +0 -6
- package/src/lib/storyUtils/StoryWrapper.d.ts +0 -18
- package/src/lib/storyUtils/componentsLookUp.d.ts +0 -8
- package/src/lib/storyUtils/componentsLookUp.stories.d.ts +0 -25
- package/src/lib/storyUtils/useFirstTimeError.d.ts +0 -4
- package/src/lib/storyUtils/useFirstTimeError.spec.d.ts +0 -1
- package/src/lib/utils/fakeApi.stories.d.ts +0 -14
- package/src/lib/utils/i18n.d.ts +0 -7
- package/src/lib/utils/labels.config.d.ts +0 -3
- package/src/lib/utils/routes.d.ts +0 -8
- package/src/lib/utils/routes.spec.d.ts +0 -1
- package/src/lib/utils/utils.d.ts +0 -9
- package/src/lib/utils/utils.spec.d.ts +0 -1
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import type { SystemScope } from '@opengeoweb/shared';
|
|
2
|
-
import type { AppStore } from '../types';
|
|
3
|
-
import type { WorkspaceDialogView, WorkspaceListState } from './types';
|
|
4
|
-
import type { WorkspacePresetLabels, WorkspacePresetListItem, WorkspaceState } from '../workspace/types';
|
|
5
|
-
export declare const getWorkspaceListStore: (store: AppStore) => WorkspaceListState;
|
|
6
|
-
export declare const getWorkspaceList: (state: AppStore) => WorkspacePresetListItem[];
|
|
7
|
-
export declare const getWorkspacePresetFromList: (store: AppStore, id: string) => WorkspacePresetListItem;
|
|
8
|
-
export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & {
|
|
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;
|
|
28
|
-
};
|
|
29
|
-
export declare const getWorkspaceDialogIsSaved: ((state: AppStore) => boolean) & {
|
|
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;
|
|
49
|
-
};
|
|
50
|
-
export declare const getWorkspaceListError: ((state: AppStore) => import("./types").TranslatableWorkspaceListError | import("./types").VerbatimWorkspaceListError | undefined) & {
|
|
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;
|
|
70
|
-
};
|
|
71
|
-
export declare const getWorkspaceActionFormValues: ((state: AppStore) => import("./types").WorkspacePresetFormValues) & {
|
|
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;
|
|
91
|
-
};
|
|
92
|
-
export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => false | {
|
|
93
|
-
formValues: {
|
|
94
|
-
views: (WorkspaceDialogView | {
|
|
95
|
-
mosaicNodeId: string;
|
|
96
|
-
title: string | undefined;
|
|
97
|
-
abstract: string | undefined;
|
|
98
|
-
componentType: string;
|
|
99
|
-
scope: SystemScope;
|
|
100
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
101
|
-
originalViewPresetId: string | undefined;
|
|
102
|
-
})[];
|
|
103
|
-
id?: string;
|
|
104
|
-
title?: string;
|
|
105
|
-
abstract?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
scope?: SystemScope;
|
|
108
|
-
labels?: WorkspacePresetLabels;
|
|
109
|
-
updated?: string;
|
|
110
|
-
updatedBy?: string;
|
|
111
|
-
username?: string;
|
|
112
|
-
} | {
|
|
113
|
-
views: (WorkspaceDialogView | {
|
|
114
|
-
mosaicNodeId: string;
|
|
115
|
-
title: string | undefined;
|
|
116
|
-
abstract: string | undefined;
|
|
117
|
-
componentType: string;
|
|
118
|
-
scope: SystemScope;
|
|
119
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
120
|
-
originalViewPresetId: string | undefined;
|
|
121
|
-
})[];
|
|
122
|
-
id?: string;
|
|
123
|
-
title: string;
|
|
124
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
125
|
-
linking?: Record<string, string[]>;
|
|
126
|
-
viewType?: import("../workspace/types").ViewType;
|
|
127
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
128
|
-
scope?: SystemScope;
|
|
129
|
-
is_shared?: boolean;
|
|
130
|
-
username?: string;
|
|
131
|
-
abstract?: string;
|
|
132
|
-
description?: string;
|
|
133
|
-
labels?: WorkspacePresetLabels;
|
|
134
|
-
updated?: string;
|
|
135
|
-
updatedBy?: string;
|
|
136
|
-
};
|
|
137
|
-
action: import("../workspace/types").WorkspacePresetAction;
|
|
138
|
-
presetId: string;
|
|
139
|
-
error?: import("./types").WorkspaceListError;
|
|
140
|
-
isFetching?: boolean;
|
|
141
|
-
hasSaved?: boolean;
|
|
142
|
-
}) & {
|
|
143
|
-
clearCache: () => void;
|
|
144
|
-
resultsCount: () => number;
|
|
145
|
-
resetResultsCount: () => void;
|
|
146
|
-
} & {
|
|
147
|
-
resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: WorkspaceState) => false | {
|
|
148
|
-
formValues: {
|
|
149
|
-
views: (WorkspaceDialogView | {
|
|
150
|
-
mosaicNodeId: string;
|
|
151
|
-
title: string | undefined;
|
|
152
|
-
abstract: string | undefined;
|
|
153
|
-
componentType: string;
|
|
154
|
-
scope: SystemScope;
|
|
155
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
156
|
-
originalViewPresetId: string | undefined;
|
|
157
|
-
})[];
|
|
158
|
-
id?: string;
|
|
159
|
-
title?: string;
|
|
160
|
-
abstract?: string;
|
|
161
|
-
description?: string;
|
|
162
|
-
scope?: SystemScope;
|
|
163
|
-
labels?: WorkspacePresetLabels;
|
|
164
|
-
updated?: string;
|
|
165
|
-
updatedBy?: string;
|
|
166
|
-
username?: string;
|
|
167
|
-
} | {
|
|
168
|
-
views: (WorkspaceDialogView | {
|
|
169
|
-
mosaicNodeId: string;
|
|
170
|
-
title: string | undefined;
|
|
171
|
-
abstract: string | undefined;
|
|
172
|
-
componentType: string;
|
|
173
|
-
scope: SystemScope;
|
|
174
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
175
|
-
originalViewPresetId: string | undefined;
|
|
176
|
-
})[];
|
|
177
|
-
id?: string;
|
|
178
|
-
title: string;
|
|
179
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
180
|
-
linking?: Record<string, string[]>;
|
|
181
|
-
viewType?: import("../workspace/types").ViewType;
|
|
182
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
183
|
-
scope?: SystemScope;
|
|
184
|
-
is_shared?: boolean;
|
|
185
|
-
username?: string;
|
|
186
|
-
abstract?: string;
|
|
187
|
-
description?: string;
|
|
188
|
-
labels?: WorkspacePresetLabels;
|
|
189
|
-
updated?: string;
|
|
190
|
-
updatedBy?: string;
|
|
191
|
-
};
|
|
192
|
-
action: import("../workspace/types").WorkspacePresetAction;
|
|
193
|
-
presetId: string;
|
|
194
|
-
error?: import("./types").WorkspaceListError;
|
|
195
|
-
isFetching?: boolean;
|
|
196
|
-
hasSaved?: boolean;
|
|
197
|
-
};
|
|
198
|
-
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: WorkspaceState) => false | {
|
|
199
|
-
formValues: {
|
|
200
|
-
views: (WorkspaceDialogView | {
|
|
201
|
-
mosaicNodeId: string;
|
|
202
|
-
title: string | undefined;
|
|
203
|
-
abstract: string | undefined;
|
|
204
|
-
componentType: string;
|
|
205
|
-
scope: SystemScope;
|
|
206
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
207
|
-
originalViewPresetId: string | undefined;
|
|
208
|
-
})[];
|
|
209
|
-
id?: string;
|
|
210
|
-
title?: string;
|
|
211
|
-
abstract?: string;
|
|
212
|
-
description?: string;
|
|
213
|
-
scope?: SystemScope;
|
|
214
|
-
labels?: WorkspacePresetLabels;
|
|
215
|
-
updated?: string;
|
|
216
|
-
updatedBy?: string;
|
|
217
|
-
username?: string;
|
|
218
|
-
} | {
|
|
219
|
-
views: (WorkspaceDialogView | {
|
|
220
|
-
mosaicNodeId: string;
|
|
221
|
-
title: string | undefined;
|
|
222
|
-
abstract: string | undefined;
|
|
223
|
-
componentType: string;
|
|
224
|
-
scope: SystemScope;
|
|
225
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
226
|
-
originalViewPresetId: string | undefined;
|
|
227
|
-
})[];
|
|
228
|
-
id?: string;
|
|
229
|
-
title: string;
|
|
230
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
231
|
-
linking?: Record<string, string[]>;
|
|
232
|
-
viewType?: import("../workspace/types").ViewType;
|
|
233
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
234
|
-
scope?: SystemScope;
|
|
235
|
-
is_shared?: boolean;
|
|
236
|
-
username?: string;
|
|
237
|
-
abstract?: string;
|
|
238
|
-
description?: string;
|
|
239
|
-
labels?: WorkspacePresetLabels;
|
|
240
|
-
updated?: string;
|
|
241
|
-
updatedBy?: string;
|
|
242
|
-
};
|
|
243
|
-
action: import("../workspace/types").WorkspacePresetAction;
|
|
244
|
-
presetId: string;
|
|
245
|
-
error?: import("./types").WorkspaceListError;
|
|
246
|
-
isFetching?: boolean;
|
|
247
|
-
hasSaved?: boolean;
|
|
248
|
-
}) & {
|
|
249
|
-
clearCache: () => void;
|
|
250
|
-
resultsCount: () => number;
|
|
251
|
-
resetResultsCount: () => void;
|
|
252
|
-
};
|
|
253
|
-
lastResult: () => false | {
|
|
254
|
-
formValues: {
|
|
255
|
-
views: (WorkspaceDialogView | {
|
|
256
|
-
mosaicNodeId: string;
|
|
257
|
-
title: string | undefined;
|
|
258
|
-
abstract: string | undefined;
|
|
259
|
-
componentType: string;
|
|
260
|
-
scope: SystemScope;
|
|
261
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
262
|
-
originalViewPresetId: string | undefined;
|
|
263
|
-
})[];
|
|
264
|
-
id?: string;
|
|
265
|
-
title?: string;
|
|
266
|
-
abstract?: string;
|
|
267
|
-
description?: string;
|
|
268
|
-
scope?: SystemScope;
|
|
269
|
-
labels?: WorkspacePresetLabels;
|
|
270
|
-
updated?: string;
|
|
271
|
-
updatedBy?: string;
|
|
272
|
-
username?: string;
|
|
273
|
-
} | {
|
|
274
|
-
views: (WorkspaceDialogView | {
|
|
275
|
-
mosaicNodeId: string;
|
|
276
|
-
title: string | undefined;
|
|
277
|
-
abstract: string | undefined;
|
|
278
|
-
componentType: string;
|
|
279
|
-
scope: SystemScope;
|
|
280
|
-
initialProps: Record<string, unknown> | import("@opengeoweb/core").InitialMultiMapProps | import("@opengeoweb/core").InitialHarmTempAndPrecipProps | import("dist/libs/core/src/lib/components/MultiMapViewConnect/ModelRunInterval").ModelRunIntervalProps | import("@opengeoweb/store").MapPresetInitialProps | import("@opengeoweb/core").InitialSliderProps | import("@opengeoweb/core").InitialTimeSeriesProps | import("@opengeoweb/core").InitialSoundingsProps | undefined;
|
|
281
|
-
originalViewPresetId: string | undefined;
|
|
282
|
-
})[];
|
|
283
|
-
id?: string;
|
|
284
|
-
title: string;
|
|
285
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
286
|
-
linking?: Record<string, string[]>;
|
|
287
|
-
viewType?: import("../workspace/types").ViewType;
|
|
288
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
289
|
-
scope?: SystemScope;
|
|
290
|
-
is_shared?: boolean;
|
|
291
|
-
username?: string;
|
|
292
|
-
abstract?: string;
|
|
293
|
-
description?: string;
|
|
294
|
-
labels?: WorkspacePresetLabels;
|
|
295
|
-
updated?: string;
|
|
296
|
-
updatedBy?: string;
|
|
297
|
-
};
|
|
298
|
-
action: import("../workspace/types").WorkspacePresetAction;
|
|
299
|
-
presetId: string;
|
|
300
|
-
error?: import("./types").WorkspaceListError;
|
|
301
|
-
isFetching?: boolean;
|
|
302
|
-
hasSaved?: boolean;
|
|
303
|
-
};
|
|
304
|
-
dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => WorkspaceState];
|
|
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;
|
|
312
|
-
};
|
|
313
|
-
export declare const getIsWorkspaceListDialogOpen: ((state: AppStore) => boolean) & {
|
|
314
|
-
clearCache: () => void;
|
|
315
|
-
resultsCount: () => number;
|
|
316
|
-
resetResultsCount: () => void;
|
|
317
|
-
} & {
|
|
318
|
-
resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean;
|
|
319
|
-
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => boolean) & {
|
|
320
|
-
clearCache: () => void;
|
|
321
|
-
resultsCount: () => number;
|
|
322
|
-
resetResultsCount: () => void;
|
|
323
|
-
};
|
|
324
|
-
lastResult: () => boolean;
|
|
325
|
-
dependencies: [(store: AppStore) => WorkspaceListState, (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;
|
|
333
|
-
};
|
|
334
|
-
export declare const getWorkspaceListFilters: ((state: AppStore, _scope?: SystemScope | undefined, isAdmin?: boolean | undefined) => {
|
|
335
|
-
isDisabled: boolean;
|
|
336
|
-
label: string;
|
|
337
|
-
id: import("./types").PresetFilterType;
|
|
338
|
-
isSelected?: boolean;
|
|
339
|
-
}[]) & {
|
|
340
|
-
clearCache: () => void;
|
|
341
|
-
resultsCount: () => number;
|
|
342
|
-
resetResultsCount: () => void;
|
|
343
|
-
} & {
|
|
344
|
-
resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: SystemScope | undefined, resultFuncArgs_2: boolean | undefined) => {
|
|
345
|
-
isDisabled: boolean;
|
|
346
|
-
label: string;
|
|
347
|
-
id: import("./types").PresetFilterType;
|
|
348
|
-
isSelected?: boolean;
|
|
349
|
-
}[];
|
|
350
|
-
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: SystemScope | undefined, resultFuncArgs_2: boolean | undefined) => {
|
|
351
|
-
isDisabled: boolean;
|
|
352
|
-
label: string;
|
|
353
|
-
id: import("./types").PresetFilterType;
|
|
354
|
-
isSelected?: boolean;
|
|
355
|
-
}[]) & {
|
|
356
|
-
clearCache: () => void;
|
|
357
|
-
resultsCount: () => number;
|
|
358
|
-
resetResultsCount: () => void;
|
|
359
|
-
};
|
|
360
|
-
lastResult: () => {
|
|
361
|
-
isDisabled: boolean;
|
|
362
|
-
label: string;
|
|
363
|
-
id: import("./types").PresetFilterType;
|
|
364
|
-
isSelected?: boolean;
|
|
365
|
-
}[];
|
|
366
|
-
dependencies: [(store: AppStore) => WorkspaceListState, (_store: AppStore, scope?: SystemScope) => SystemScope | undefined, (_store: AppStore, _scope?: SystemScope, isAdmin?: boolean) => boolean | undefined];
|
|
367
|
-
recomputations: () => number;
|
|
368
|
-
resetRecomputations: () => void;
|
|
369
|
-
dependencyRecomputations: () => number;
|
|
370
|
-
resetDependencyRecomputations: () => void;
|
|
371
|
-
} & {
|
|
372
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
373
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
374
|
-
};
|
|
375
|
-
export declare const getWorkspaceListSearchQuery: ((state: AppStore) => string) & {
|
|
376
|
-
clearCache: () => void;
|
|
377
|
-
resultsCount: () => number;
|
|
378
|
-
resetResultsCount: () => void;
|
|
379
|
-
} & {
|
|
380
|
-
resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => string;
|
|
381
|
-
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => string) & {
|
|
382
|
-
clearCache: () => void;
|
|
383
|
-
resultsCount: () => number;
|
|
384
|
-
resetResultsCount: () => void;
|
|
385
|
-
};
|
|
386
|
-
lastResult: () => string;
|
|
387
|
-
dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
|
|
388
|
-
recomputations: () => number;
|
|
389
|
-
resetRecomputations: () => void;
|
|
390
|
-
dependencyRecomputations: () => number;
|
|
391
|
-
resetDependencyRecomputations: () => void;
|
|
392
|
-
} & {
|
|
393
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
394
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
395
|
-
};
|
|
396
|
-
export declare const getWorkspaceLabelFilters: ((state: AppStore) => WorkspacePresetLabels | undefined) & {
|
|
397
|
-
clearCache: () => void;
|
|
398
|
-
resultsCount: () => number;
|
|
399
|
-
resetResultsCount: () => void;
|
|
400
|
-
} & {
|
|
401
|
-
resultFunc: (resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => WorkspacePresetLabels | undefined;
|
|
402
|
-
memoizedResultFunc: ((resultFuncArgs_0: WorkspaceListState, resultFuncArgs_1: AppStore) => WorkspacePresetLabels | undefined) & {
|
|
403
|
-
clearCache: () => void;
|
|
404
|
-
resultsCount: () => number;
|
|
405
|
-
resetResultsCount: () => void;
|
|
406
|
-
};
|
|
407
|
-
lastResult: () => WorkspacePresetLabels | undefined;
|
|
408
|
-
dependencies: [(store: AppStore) => WorkspaceListState, (store: AppStore) => AppStore];
|
|
409
|
-
recomputations: () => number;
|
|
410
|
-
resetRecomputations: () => void;
|
|
411
|
-
dependencyRecomputations: () => number;
|
|
412
|
-
resetDependencyRecomputations: () => void;
|
|
413
|
-
} & {
|
|
414
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
415
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
416
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import type { SystemScope } from '@opengeoweb/shared';
|
|
3
|
-
import type { ViewPresetError } from '../viewPresets/types';
|
|
4
|
-
import type { WorkspacePresetAction, WorkspacePresetForBE, WorkspacePresetLabels, WorkspacePresetListItem, WorkspaceViewsFromBE } from '../workspace/types';
|
|
5
|
-
export declare enum WorkspaceListErrorCategory {
|
|
6
|
-
AUTH = "AUTH",// Errors related to authentication and authorization
|
|
7
|
-
GENERIC = "GENERIC"
|
|
8
|
-
}
|
|
9
|
-
export declare enum WorkspaceListErrorType {
|
|
10
|
-
TRANSLATABLE_ERROR = "TRANSLATABLE_ERROR",
|
|
11
|
-
VERBATIM_ERROR = "VERBATIM_ERROR"
|
|
12
|
-
}
|
|
13
|
-
export declare enum PresetFilterType {
|
|
14
|
-
personal = "personal",
|
|
15
|
-
shared = "shared",
|
|
16
|
-
system = "system"
|
|
17
|
-
}
|
|
18
|
-
export type WorkspaceListError = TranslatableWorkspaceListError | VerbatimWorkspaceListError | undefined;
|
|
19
|
-
export interface TranslatableWorkspaceListError {
|
|
20
|
-
type: WorkspaceListErrorType.TRANSLATABLE_ERROR;
|
|
21
|
-
category: WorkspaceListErrorCategory;
|
|
22
|
-
key: string;
|
|
23
|
-
params?: Record<string, string | number> | undefined;
|
|
24
|
-
}
|
|
25
|
-
export interface VerbatimWorkspaceListError {
|
|
26
|
-
type: WorkspaceListErrorType.VERBATIM_ERROR;
|
|
27
|
-
category: WorkspaceListErrorCategory;
|
|
28
|
-
message: string;
|
|
29
|
-
}
|
|
30
|
-
export interface WorkspaceListFilter {
|
|
31
|
-
label: string;
|
|
32
|
-
id: PresetFilterType;
|
|
33
|
-
isSelected?: boolean;
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface FetchWorkspaceParams {
|
|
37
|
-
scope?: string;
|
|
38
|
-
search?: string;
|
|
39
|
-
}
|
|
40
|
-
export type WorkspaceListEntityState = EntityState<WorkspacePresetListItem, string>;
|
|
41
|
-
export type WorkspaceDialogView = {
|
|
42
|
-
hasChanges: boolean;
|
|
43
|
-
title: string;
|
|
44
|
-
isSelected: boolean;
|
|
45
|
-
error?: ViewPresetError;
|
|
46
|
-
scope: SystemScope;
|
|
47
|
-
abstract?: string;
|
|
48
|
-
description?: string;
|
|
49
|
-
} & WorkspaceViewsFromBE;
|
|
50
|
-
export interface WorkspaceFormValues {
|
|
51
|
-
id?: string;
|
|
52
|
-
title?: string;
|
|
53
|
-
abstract?: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
scope?: SystemScope;
|
|
56
|
-
views?: WorkspaceDialogView[];
|
|
57
|
-
labels?: WorkspacePresetLabels;
|
|
58
|
-
updated?: string;
|
|
59
|
-
updatedBy?: string;
|
|
60
|
-
username?: string;
|
|
61
|
-
}
|
|
62
|
-
export type WorkspacePresetFormValues = WorkspaceFormValues | WorkspacePresetForBE;
|
|
63
|
-
export interface WorkspaceActionDialogType {
|
|
64
|
-
action: WorkspacePresetAction;
|
|
65
|
-
presetId: string;
|
|
66
|
-
formValues: WorkspacePresetFormValues;
|
|
67
|
-
error?: WorkspaceListError;
|
|
68
|
-
isFetching?: boolean;
|
|
69
|
-
hasSaved?: boolean;
|
|
70
|
-
}
|
|
71
|
-
export interface WorkspaceListState extends WorkspaceListEntityState {
|
|
72
|
-
isFetching: boolean;
|
|
73
|
-
error: WorkspaceListError;
|
|
74
|
-
isWorkspaceListDialogOpen: boolean;
|
|
75
|
-
workspaceActionDialog?: WorkspaceActionDialogType;
|
|
76
|
-
searchQuery?: string;
|
|
77
|
-
workspaceListFilters?: WorkspaceListFilter[];
|
|
78
|
-
workspaceLabelFilters?: WorkspacePresetLabels;
|
|
79
|
-
}
|
|
80
|
-
export type FetchWorkspaceList = FetchWorkspaceParams;
|
|
81
|
-
export interface FetchedWorkspaceList {
|
|
82
|
-
workspaceList: WorkspacePresetListItem[];
|
|
83
|
-
}
|
|
84
|
-
export interface ErrorWorkspaceList {
|
|
85
|
-
error: WorkspaceListError;
|
|
86
|
-
}
|
|
87
|
-
export interface ToggleListDialogPayload {
|
|
88
|
-
isWorkspaceListDialogOpen: boolean;
|
|
89
|
-
}
|
|
90
|
-
export interface ToggleSelectFilterChip {
|
|
91
|
-
id: PresetFilterType;
|
|
92
|
-
isSelected: boolean;
|
|
93
|
-
isAdmin?: boolean;
|
|
94
|
-
}
|
|
95
|
-
export interface SetWorkspaceLabelFiltersPayload {
|
|
96
|
-
labels: WorkspacePresetLabels;
|
|
97
|
-
}
|
|
98
|
-
export interface SearchWorkspaceFilter {
|
|
99
|
-
searchQuery: string;
|
|
100
|
-
}
|
|
101
|
-
export type OpenWorkspaceActionDialogPayload = WorkspaceActionDialogType;
|
|
102
|
-
export interface SubmitFormWorkspaceActionDialogPayload {
|
|
103
|
-
presetAction: WorkspacePresetAction;
|
|
104
|
-
presetId: string;
|
|
105
|
-
data: WorkspacePresetForBE;
|
|
106
|
-
emptyMapPresetTitle: string;
|
|
107
|
-
emptyWorkspacePresetTitle: string;
|
|
108
|
-
}
|
|
109
|
-
export interface OnNonDeleteSuccesWorkspacePresetActionPayload {
|
|
110
|
-
workspaceId: string;
|
|
111
|
-
action: Exclude<WorkspacePresetAction, WorkspacePresetAction.DELETE | WorkspacePresetAction.DELETE_SYSTEM_PRESET>;
|
|
112
|
-
title: string;
|
|
113
|
-
abstract?: string;
|
|
114
|
-
description?: string;
|
|
115
|
-
currentActiveWorkspaceId?: string;
|
|
116
|
-
scope: SystemScope;
|
|
117
|
-
is_shared?: boolean;
|
|
118
|
-
labels?: WorkspacePresetLabels;
|
|
119
|
-
views?: WorkspaceViewsFromBE[];
|
|
120
|
-
updated?: string;
|
|
121
|
-
updatedBy?: string;
|
|
122
|
-
}
|
|
123
|
-
export interface OnDeleteSuccesWorkspacePresetActionPayload {
|
|
124
|
-
workspaceId: string;
|
|
125
|
-
action: WorkspacePresetAction.DELETE | WorkspacePresetAction.DELETE_SYSTEM_PRESET;
|
|
126
|
-
title: string;
|
|
127
|
-
abstract?: string;
|
|
128
|
-
description?: string;
|
|
129
|
-
currentActiveWorkspaceId?: string;
|
|
130
|
-
emptyWorkspacePresetTitle: string;
|
|
131
|
-
views?: WorkspaceViewsFromBE[];
|
|
132
|
-
}
|
|
133
|
-
export type OnSuccesWorkspacePresetActionPayload = OnNonDeleteSuccesWorkspacePresetActionPayload | OnDeleteSuccesWorkspacePresetActionPayload;
|
|
134
|
-
export interface OnErrorWorkspacePresetActionPayload {
|
|
135
|
-
error: WorkspaceListError;
|
|
136
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
|
-
import { snackbarTypes } from '@opengeoweb/snackbar';
|
|
3
|
-
import type { MapPreset } from '@opengeoweb/store';
|
|
4
|
-
import type { FetchWorkspaceParams, WorkspaceListFilter } from './types';
|
|
5
|
-
import type { ViewPresetsListFilter } from '../viewPresets/types';
|
|
6
|
-
import type { WorkspacePreset, WorkspacePresetListItem } from '../workspace/types';
|
|
7
|
-
import { WorkspacePresetAction } from '../workspace/types';
|
|
8
|
-
export declare const getSnackbarMessage: (action: WorkspacePresetAction, title: string, is_shared?: boolean) => snackbarTypes.TranslatableMessage;
|
|
9
|
-
export declare function getEmptyWorkspaceListItem(): Omit<WorkspacePresetListItem, 'title'>;
|
|
10
|
-
export declare function getEmptyWorkspaceListItem(t: TFunction): WorkspacePresetListItem;
|
|
11
|
-
export declare function getEmptyWorkspaceListItem(t?: TFunction): Omit<WorkspacePresetListItem, 'title'> | WorkspacePresetListItem;
|
|
12
|
-
export declare function getEmptyMapWorkspace(): Omit<WorkspacePreset, 'title'>;
|
|
13
|
-
export declare function getEmptyMapWorkspace(t: TFunction): WorkspacePreset;
|
|
14
|
-
export declare const getEmptyWorkspacePreset: () => Omit<WorkspacePreset, "title">;
|
|
15
|
-
export declare const createCustomEmptyMapWorkspace: (emptyWorkspaceTitle: string, emptyMapWorkspaceTitle: string, customMapPreset?: MapPreset) => WorkspacePreset;
|
|
16
|
-
export declare const constructFilterParams: (filters: WorkspaceListFilter[] | ViewPresetsListFilter[], searchQuery: string) => FetchWorkspaceParams;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WorkspaceAppProps {
|
|
3
|
-
isSnapshot?: boolean;
|
|
4
|
-
workspaceId?: string;
|
|
5
|
-
shouldShowListOnOpen?: boolean;
|
|
6
|
-
markWorkspaceChanged?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const WorkspaceApp: ({ isSnapshot, workspaceId, shouldShowListOnOpen, markWorkspaceChanged, }: WorkspaceAppProps) => React.ReactElement;
|
|
9
|
-
interface StoryWrapperProps {
|
|
10
|
-
isSnapshot?: boolean;
|
|
11
|
-
workspaceId?: string;
|
|
12
|
-
isLoggedIn?: boolean;
|
|
13
|
-
shouldShowListOnOpen?: boolean;
|
|
14
|
-
isAdmin?: boolean;
|
|
15
|
-
hasChanges?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const StoryWrapper: ({ isSnapshot, workspaceId, isLoggedIn, shouldShowListOnOpen, isAdmin, hasChanges, }: StoryWrapperProps) => React.ReactElement;
|
|
18
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WorkspaceComponentLookupPayload } from '../store/workspace/types';
|
|
3
|
-
/**
|
|
4
|
-
* The lookup table is for registering your own components with the workspace.
|
|
5
|
-
* @param payload
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const componentsLookUp: (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { WorkspacePreset } from '../store/workspace/types';
|
|
4
|
-
interface ComponentTypeDemoProps {
|
|
5
|
-
screenPreset: WorkspacePreset;
|
|
6
|
-
}
|
|
7
|
-
declare const ComponentTypeDemo: React.FC<ComponentTypeDemoProps>;
|
|
8
|
-
type Story = StoryObj<typeof ComponentTypeDemo>;
|
|
9
|
-
declare const meta: Meta<typeof ComponentTypeDemo>;
|
|
10
|
-
export default meta;
|
|
11
|
-
export declare const Map: Story;
|
|
12
|
-
export declare const HarmonieTempAndPrecipPreset: Story;
|
|
13
|
-
export declare const ModelRunInterval: Story;
|
|
14
|
-
export declare const MultiMap: Story;
|
|
15
|
-
export declare const TafModule: Story;
|
|
16
|
-
export declare const NafModule: Story;
|
|
17
|
-
export declare const SigmetModule: Story;
|
|
18
|
-
export declare const AirmetModule: Story;
|
|
19
|
-
export declare const ActionsExample: Story;
|
|
20
|
-
export declare const ErrorExample: Story;
|
|
21
|
-
export declare const MapWithTimeslider: Story;
|
|
22
|
-
export declare const WarningList: Story;
|
|
23
|
-
export declare const MaritimeWarnings: Story;
|
|
24
|
-
export declare const SpaceweatherModule: Story;
|
|
25
|
-
export declare const Trajks: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const WorkspacePresetsListStory: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
parameters: {
|
|
10
|
-
msw: {
|
|
11
|
-
handlers: import("msw").HttpHandler[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
package/src/lib/utils/i18n.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
|
-
export declare const WORKSPACE_NAMESPACE = "workspace";
|
|
4
|
-
export declare const initWorkspaceTestI18n: () => void;
|
|
5
|
-
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
|
-
export declare const useWorkspaceTranslation: () => UseTranslationResponse<typeof WORKSPACE_NAMESPACE, typeof i18n>;
|
|
7
|
-
export { i18n };
|