@opengeoweb/workspace 16.0.0 → 17.0.1
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 +1604 -570
- 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/PastePresetDialog/PastePresetDialog.d.ts +0 -8
- package/src/lib/components/PastePresetDialog/index.d.ts +0 -2
- 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 -19
- 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 -10
- package/src/lib/components/WorkspaceView/SplitButtonsConnect.spec.d.ts +0 -1
- package/src/lib/components/WorkspaceView/WorkSpaceView.stories.d.ts +0 -9
- 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 -517
- package/src/lib/store/workspace/selectors.spec.d.ts +0 -1
- package/src/lib/store/workspace/types.d.ts +0 -202
- 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 -137
- 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/clipboardUtils.d.ts +0 -23
- package/src/lib/utils/clipboardUtils.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,202 +0,0 @@
|
|
|
1
|
-
import type { MosaicNode } from 'react-mosaic-component';
|
|
2
|
-
import type { InitialProps } from '@opengeoweb/core';
|
|
3
|
-
import type { SystemScope } from '@opengeoweb/shared';
|
|
4
|
-
import type { syncGroupsTypes } from '@opengeoweb/store';
|
|
5
|
-
export type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
|
|
6
|
-
export interface WorkspaceViewType {
|
|
7
|
-
id?: string;
|
|
8
|
-
mosaicNodeId?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
abstract?: string;
|
|
12
|
-
componentType: string;
|
|
13
|
-
initialProps?: InitialProps;
|
|
14
|
-
activeLayerId?: string;
|
|
15
|
-
shouldPreventClose?: boolean;
|
|
16
|
-
scope?: SystemScope;
|
|
17
|
-
keywords?: string;
|
|
18
|
-
labels?: WorkspaceLabelsConfigResponse;
|
|
19
|
-
}
|
|
20
|
-
export interface WorkspaceViews {
|
|
21
|
-
byId: Record<string, WorkspaceViewType>;
|
|
22
|
-
allIds: string[];
|
|
23
|
-
}
|
|
24
|
-
export interface WorkspaceViewsFromBE {
|
|
25
|
-
mosaicNodeId: string;
|
|
26
|
-
viewPresetId?: string;
|
|
27
|
-
componentType?: string;
|
|
28
|
-
initialProps?: InitialProps;
|
|
29
|
-
title?: string;
|
|
30
|
-
originalViewPresetId?: string;
|
|
31
|
-
}
|
|
32
|
-
export type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
|
|
33
|
-
export interface WorkspaceSyncGroup {
|
|
34
|
-
id: string;
|
|
35
|
-
type: syncGroupsTypes.SyncType;
|
|
36
|
-
title?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface WorkspacePreset {
|
|
39
|
-
id?: string;
|
|
40
|
-
title: string;
|
|
41
|
-
syncGroups?: WorkspaceSyncGroup[];
|
|
42
|
-
isTimeScrollingEnabled?: boolean;
|
|
43
|
-
views: WorkspaceViews;
|
|
44
|
-
viewType?: ViewType;
|
|
45
|
-
mosaicNode: MosaicNode<string>;
|
|
46
|
-
minimumPaneSizePercentage?: number;
|
|
47
|
-
scope?: SystemScope;
|
|
48
|
-
abstract?: string;
|
|
49
|
-
description?: string;
|
|
50
|
-
linking?: Record<string, string[]>;
|
|
51
|
-
username?: string;
|
|
52
|
-
labels?: WorkspacePresetLabels;
|
|
53
|
-
updated?: string;
|
|
54
|
-
updatedBy?: string;
|
|
55
|
-
}
|
|
56
|
-
export interface WorkspaceState extends WorkspacePreset {
|
|
57
|
-
isLoading?: boolean;
|
|
58
|
-
error?: WorkspaceError;
|
|
59
|
-
hasChanges?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface WorkspacePresetLabels {
|
|
62
|
-
[groupKey: string]: string[] | undefined;
|
|
63
|
-
purpose?: string[];
|
|
64
|
-
parameters?: string[];
|
|
65
|
-
phenomena?: string[];
|
|
66
|
-
dataType?: string[];
|
|
67
|
-
dataSource?: string[];
|
|
68
|
-
viewType?: string[];
|
|
69
|
-
}
|
|
70
|
-
export interface WorkspacePresetForBE {
|
|
71
|
-
id?: string;
|
|
72
|
-
title: string;
|
|
73
|
-
syncGroups?: WorkspaceSyncGroup[];
|
|
74
|
-
linking?: Record<string, string[]>;
|
|
75
|
-
views: WorkspaceViewsFromBE[];
|
|
76
|
-
viewType?: ViewType;
|
|
77
|
-
mosaicNode: MosaicNode<string>;
|
|
78
|
-
scope?: SystemScope;
|
|
79
|
-
is_shared?: boolean;
|
|
80
|
-
username?: string;
|
|
81
|
-
abstract?: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
labels?: WorkspacePresetLabels;
|
|
84
|
-
updated?: string;
|
|
85
|
-
updatedBy?: string;
|
|
86
|
-
}
|
|
87
|
-
export interface WorkspacePresetFromBE extends WorkspacePresetForBE {
|
|
88
|
-
id: string;
|
|
89
|
-
viewType: ViewType;
|
|
90
|
-
scope: SystemScope;
|
|
91
|
-
username?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface WorkspacePresetListItem {
|
|
94
|
-
id: string;
|
|
95
|
-
date?: string;
|
|
96
|
-
title: string;
|
|
97
|
-
scope: SystemScope;
|
|
98
|
-
viewType: ViewType;
|
|
99
|
-
abstract: string;
|
|
100
|
-
username?: string;
|
|
101
|
-
is_shared?: boolean;
|
|
102
|
-
labels?: WorkspacePresetLabels;
|
|
103
|
-
description?: string;
|
|
104
|
-
updated?: string;
|
|
105
|
-
updatedBy?: string;
|
|
106
|
-
}
|
|
107
|
-
export declare enum WorkspacePresetAction {
|
|
108
|
-
DELETE = "DELETE",
|
|
109
|
-
EDIT = "EDIT",
|
|
110
|
-
SAVE = "SAVE",
|
|
111
|
-
SAVE_AS = "SAVE_AS",
|
|
112
|
-
DUPLICATE = "DUPLICATE",
|
|
113
|
-
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET",
|
|
114
|
-
SAVE_SYSTEM_PRESET_AS = "SAVE_SYSTEM_PRESET_AS",
|
|
115
|
-
RESET = "RESET",
|
|
116
|
-
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET",
|
|
117
|
-
SHARE = "SHARE",
|
|
118
|
-
OPEN_TAB = "OPEN_TAB",
|
|
119
|
-
EDIT_TITLE = "EDIT_TITLE",
|
|
120
|
-
COPY_TO_CLIPBOARD = "COPY_TO_CLIPBOARD"
|
|
121
|
-
}
|
|
122
|
-
export interface WorkspaceAddViewPayload {
|
|
123
|
-
id: string;
|
|
124
|
-
componentType: string;
|
|
125
|
-
initialProps: InitialProps;
|
|
126
|
-
}
|
|
127
|
-
export interface WorkspaceSetNewViewPayload {
|
|
128
|
-
mosaicNodeId: string;
|
|
129
|
-
newId: string;
|
|
130
|
-
componentType: string;
|
|
131
|
-
copyOriginalcontent: boolean;
|
|
132
|
-
}
|
|
133
|
-
export interface WorkspaceDeleteViewPayload {
|
|
134
|
-
id: string;
|
|
135
|
-
}
|
|
136
|
-
export interface WorkspaceUpdateViewsPayload {
|
|
137
|
-
mosaicNode: MosaicNode<string>;
|
|
138
|
-
}
|
|
139
|
-
export interface WorkspaceUpdateViewPayload {
|
|
140
|
-
mosaicNodeId: string;
|
|
141
|
-
viewPreset: WorkspaceViewType;
|
|
142
|
-
}
|
|
143
|
-
export interface WorkspaceChangeToEmptyMapWorkspacePayload {
|
|
144
|
-
newMapPresetText: string;
|
|
145
|
-
newWorkspaceText: string;
|
|
146
|
-
}
|
|
147
|
-
export interface WorkspaceSetPresetPayload {
|
|
148
|
-
workspacePreset: WorkspacePreset;
|
|
149
|
-
markAsChanged?: boolean;
|
|
150
|
-
}
|
|
151
|
-
export interface WorkspaceSetPreventCloseViewPayload {
|
|
152
|
-
viewId: string;
|
|
153
|
-
shouldPreventClose: boolean;
|
|
154
|
-
}
|
|
155
|
-
export interface WorkspaceComponentLookupPayload {
|
|
156
|
-
componentType: string;
|
|
157
|
-
id: string;
|
|
158
|
-
title?: string;
|
|
159
|
-
initialProps: unknown;
|
|
160
|
-
}
|
|
161
|
-
export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
162
|
-
export interface ViewPresetListItem {
|
|
163
|
-
id: string;
|
|
164
|
-
title: string;
|
|
165
|
-
date: string;
|
|
166
|
-
scope: SystemScope;
|
|
167
|
-
abstract?: string;
|
|
168
|
-
description?: string;
|
|
169
|
-
is_shared?: boolean;
|
|
170
|
-
username?: string;
|
|
171
|
-
labels?: WorkspacePresetLabels;
|
|
172
|
-
updated?: string;
|
|
173
|
-
updatedBy?: string;
|
|
174
|
-
}
|
|
175
|
-
export interface WorkspaceFetchWorkspacePayload {
|
|
176
|
-
workspaceId: string;
|
|
177
|
-
}
|
|
178
|
-
export interface WorkspaceFetchedWorkspacePayload {
|
|
179
|
-
workspaceId: string;
|
|
180
|
-
workspace: WorkspacePresetForBE;
|
|
181
|
-
}
|
|
182
|
-
export interface WorkspaceFetchWorkspaceViewPresetPayload {
|
|
183
|
-
viewPresetId: string;
|
|
184
|
-
mosaicNodeId: string;
|
|
185
|
-
}
|
|
186
|
-
export interface WorkspaceSaveWorkspacePresetPayload {
|
|
187
|
-
workspace: WorkspacePresetForBE;
|
|
188
|
-
}
|
|
189
|
-
export declare enum WorkspaceErrorType {
|
|
190
|
-
NOT_FOUND = "NOT_FOUND",
|
|
191
|
-
GENERIC = "GENERIC",
|
|
192
|
-
SAVE = "SAVE"
|
|
193
|
-
}
|
|
194
|
-
export type WorkspaceError = {
|
|
195
|
-
type: WorkspaceErrorType;
|
|
196
|
-
message: string;
|
|
197
|
-
} | undefined;
|
|
198
|
-
export interface WorkspaceErrorWorkspacePayload {
|
|
199
|
-
workspaceId: string;
|
|
200
|
-
error: WorkspaceError;
|
|
201
|
-
}
|
|
202
|
-
export type WorkspaceLabelsConfigResponse = WorkspacePresetLabels;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { AxiosError } from 'axios';
|
|
2
|
-
import type { MosaicNode } from 'react-mosaic-component';
|
|
3
|
-
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
4
|
-
import type { WorkspacePreset, WorkspacePresetForBE, WorkspaceViewsFromBE, ViewType, WorkspaceViewPresetComponentsLookupType, WorkspaceSyncGroup, WorkspaceViews } from './types';
|
|
5
|
-
export declare const getViewPresetState: (viewPresetId: string, mosaicNodeId: string, state: "loading" | "error") => {
|
|
6
|
-
title: string;
|
|
7
|
-
id: string;
|
|
8
|
-
mosaicNodeId: string;
|
|
9
|
-
componentType: WorkspaceViewPresetComponentsLookupType;
|
|
10
|
-
};
|
|
11
|
-
export declare const getLoadingWorkspace: (workspacePreset: WorkspacePresetForBE) => WorkspacePreset;
|
|
12
|
-
export declare const getListInChunks: (views: WorkspaceViewsFromBE[]) => WorkspaceViewsFromBE[][];
|
|
13
|
-
export declare const defaultSyncGroups: {
|
|
14
|
-
groupId: string;
|
|
15
|
-
title: string;
|
|
16
|
-
type: syncGroupsTypes.SyncType;
|
|
17
|
-
}[];
|
|
18
|
-
export declare const getSyncGroups: (syncGroups?: WorkspaceSyncGroup[]) => syncGroupsTypes.SyncGroupAddGroupPayload[];
|
|
19
|
-
export declare const tiledWindowComponentTypes: string[];
|
|
20
|
-
export declare const getViewType: (numViews: number, firstViewComponentType: string) => ViewType;
|
|
21
|
-
/**
|
|
22
|
-
* Get all view ids from the mosaicnode state
|
|
23
|
-
* @param mNode MosaicNode state
|
|
24
|
-
* @returns List if string ids of all mosaic nodes.
|
|
25
|
-
*/
|
|
26
|
-
export declare const makeListOfViewIds: (mNode: MosaicNode<string>) => string[];
|
|
27
|
-
export declare const getErrorMessage: (error: AxiosError<unknown>) => string;
|
|
28
|
-
export declare const toViewsArray: (wsViews: WorkspaceViewsFromBE[] | WorkspaceViews | null | undefined) => WorkspaceViewsFromBE[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AppStore } from '../types';
|
|
2
|
-
import type { WorkspacePresetForBE } from '../workspace/types';
|
|
3
|
-
export declare const emptyWorkspaceBEData: Omit<WorkspacePresetForBE, 'title'>;
|
|
4
|
-
export declare const workspaceListListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<AppStore, import("redux-thunk").ThunkDispatch<AppStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import type { ErrorWorkspaceList, FetchedWorkspaceList, FetchWorkspaceList, OnErrorWorkspacePresetActionPayload, OnSuccesWorkspacePresetActionPayload, OpenWorkspaceActionDialogPayload, SearchWorkspaceFilter, SetWorkspaceLabelFiltersPayload, SubmitFormWorkspaceActionDialogPayload, ToggleListDialogPayload, ToggleSelectFilterChip, WorkspaceListFilter, WorkspaceListState } from './types';
|
|
3
|
-
import { PresetFilterType } from './types';
|
|
4
|
-
import type { WorkspacePresetListItem } from '../workspace/types';
|
|
5
|
-
export declare const personalFilterState: {
|
|
6
|
-
label: string;
|
|
7
|
-
id: PresetFilterType;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const systemFilterState: {
|
|
12
|
-
label: string;
|
|
13
|
-
id: PresetFilterType;
|
|
14
|
-
isSelected: boolean;
|
|
15
|
-
isDisabled: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const sharedFilterState: {
|
|
18
|
-
label: string;
|
|
19
|
-
id: PresetFilterType;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
isDisabled: boolean;
|
|
22
|
-
};
|
|
23
|
-
export declare const defaultPresetFilterState: WorkspaceListFilter[];
|
|
24
|
-
export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem, string>;
|
|
25
|
-
export declare const initialState: WorkspaceListState;
|
|
26
|
-
export declare const workspaceListReducer: import("redux").Reducer<WorkspaceListState>, workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
27
|
-
fetchWorkspaceList: (draft: Draft<WorkspaceListState>, _action: PayloadAction<FetchWorkspaceList>) => void;
|
|
28
|
-
fetchedWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchedWorkspaceList>) => void;
|
|
29
|
-
errorWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<ErrorWorkspaceList>) => void;
|
|
30
|
-
openWorkspaceActionDialogOptions: (draft: Draft<WorkspaceListState>, action: PayloadAction<OpenWorkspaceActionDialogPayload>) => void;
|
|
31
|
-
onSuccessWorkspaceSaveDialog: (draft: Draft<WorkspaceListState>, action: PayloadAction<{
|
|
32
|
-
presetId: string;
|
|
33
|
-
}>) => void;
|
|
34
|
-
submitFormWorkspaceActionDialogOptions: (draft: Draft<WorkspaceListState>, _action: PayloadAction<SubmitFormWorkspaceActionDialogPayload>) => void;
|
|
35
|
-
closeWorkspaceActionDialogOptions: (draft: Draft<WorkspaceListState>) => void;
|
|
36
|
-
onSuccessWorkspacePresetAction: (draft: Draft<WorkspaceListState>, _action: PayloadAction<OnSuccesWorkspacePresetActionPayload>) => void;
|
|
37
|
-
onErrorWorkspacePresetAction: (draft: Draft<WorkspaceListState>, action: PayloadAction<OnErrorWorkspacePresetActionPayload>) => void;
|
|
38
|
-
toggleWorkspaceDialog: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleListDialogPayload>) => void;
|
|
39
|
-
toggleSelectFilterChip: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
40
|
-
setSelectAllFilterChip: (draft: Draft<WorkspaceListState>) => void;
|
|
41
|
-
setFilterChips: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip[]>) => void;
|
|
42
|
-
setWorkspaceLabelFilters: (draft: Draft<WorkspaceListState>, action: PayloadAction<SetWorkspaceLabelFiltersPayload>) => void;
|
|
43
|
-
clearLabelFilters: (draft: Draft<WorkspaceListState>) => void;
|
|
44
|
-
searchFilter: (draft: Draft<WorkspaceListState>, action: PayloadAction<SearchWorkspaceFilter>) => void;
|
|
45
|
-
}, "workspaceList">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|