@opengeoweb/workspace 9.28.1 → 9.29.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 +756 -381
- package/package.json +1 -1
- package/src/index.d.ts +17 -17
- package/src/lib/Workspace.stories.d.ts +23 -23
- package/src/lib/WorkspaceAdmin.stories.d.ts +9 -0
- package/src/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.d.ts +12 -12
- package/src/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUpWrapper/index.d.ts +1 -1
- package/src/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.d.ts +17 -17
- package/src/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.spec.d.ts +1 -1
- package/src/lib/components/DefaultComponentsLookUp/index.d.ts +1 -1
- package/src/lib/components/Providers/Providers.d.ts +27 -27
- package/src/lib/components/Providers/WorkspaceModuleProvider.d.ts +7 -7
- package/src/lib/components/Providers/WorkspaceModuleProvider.spec.d.ts +1 -1
- package/src/lib/components/Providers/index.d.ts +2 -2
- package/src/lib/components/ResizeMenu/ResizeMenu.d.ts +6 -6
- package/src/lib/components/ResizeMenu/ResizeMenu.spec.d.ts +1 -1
- package/src/lib/components/ResizeMenu/index.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.d.ts +8 -8
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.spec.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.stories.d.ts +25 -25
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.d.ts +6 -6
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.spec.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetsError.stories.d.ts +23 -23
- package/src/lib/components/ViewPresetMenu/index.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.d.ts +16 -16
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.spec.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +15 -15
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.spec.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +25 -25
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +3 -3
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.spec.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/index.d.ts +1 -1
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.d.ts +10 -10
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +9 -9
- package/src/lib/components/WorkspaceDetail/WorkspaceDetailError.stories.d.ts +11 -11
- package/src/lib/components/WorkspaceDetail/index.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +6 -6
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +13 -13
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.d.ts +7 -7
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.stories.d.ts +23 -23
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.d.ts +2 -2
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/index.d.ts +2 -2
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +20 -19
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.stories.d.ts +39 -39
- package/src/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.d.ts +7 -7
- package/src/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +19 -16
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.spec.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +16 -15
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.spec.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +78 -48
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspaceSystemPresetsForm.d.ts +7 -12
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspaceSystemPresetsForm.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +17 -16
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +2 -2
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListError.stories.d.ts +6 -6
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +17 -16
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.stories.d.ts +19 -19
- package/src/lib/components/WorkspaceTab/WorkspaceTab.d.ts +7 -7
- package/src/lib/components/WorkspaceTab/WorkspaceTab.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.d.ts +6 -6
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceTab/index.d.ts +1 -1
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +6 -6
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.stories.d.ts +53 -53
- package/src/lib/components/WorkspaceTopBar/index.d.ts +1 -1
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicatorConnect.d.ts +6 -6
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicatorConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/WorkspaceControls.d.ts +9 -9
- package/src/lib/components/WorkspaceView/WorkspaceControls.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.d.ts +12 -12
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/WorkspaceView.d.ts +16 -16
- package/src/lib/components/WorkspaceView/WorkspaceView.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/WorkspaceViewConnect.d.ts +7 -7
- package/src/lib/components/WorkspaceView/WorkspaceViewConnect.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/helpers.d.ts +3 -3
- package/src/lib/components/WorkspaceView/helpers.spec.d.ts +1 -1
- package/src/lib/components/WorkspaceView/index.d.ts +2 -2
- package/src/lib/components/WorkspaceViewTitle/WorkspaceViewTitleConnect.d.ts +11 -11
- package/src/lib/components/WorkspaceViewTitle/WorkspaceViewTitleConnect.spec.d.ts +1 -1
- package/src/lib/store/config.d.ts +5 -5
- package/src/lib/store/index.d.ts +1 -1
- package/src/lib/store/store.d.ts +2 -2
- package/src/lib/store/types.d.ts +13 -13
- package/src/lib/store/viewPresets/index.d.ts +2 -2
- package/src/lib/store/viewPresets/listener.d.ts +6 -2
- package/src/lib/store/viewPresets/listener.integration.spec.d.ts +1 -1
- package/src/lib/store/viewPresets/reducer.d.ts +35 -35
- package/src/lib/store/viewPresets/reducer.spec.d.ts +1 -1
- package/src/lib/store/viewPresets/selectors.d.ts +60 -60
- package/src/lib/store/viewPresets/selectors.spec.d.ts +1 -1
- package/src/lib/store/viewPresets/types.d.ts +133 -133
- package/src/lib/store/viewPresets/utils.d.ts +8 -7
- package/src/lib/store/viewPresets/utils.spec.d.ts +1 -1
- package/src/lib/store/viewPresetsList/index.d.ts +2 -2
- package/src/lib/store/viewPresetsList/reducer.d.ts +5 -5
- package/src/lib/store/viewPresetsList/reducer.spec.d.ts +1 -1
- package/src/lib/store/viewPresetsList/selectors.d.ts +10 -10
- package/src/lib/store/viewPresetsList/selectors.spec.d.ts +1 -1
- package/src/lib/store/viewPresetsList/types.d.ts +17 -17
- package/src/lib/store/workspace/listener.d.ts +4 -4
- package/src/lib/store/workspace/listener.spec.d.ts +1 -1
- package/src/lib/store/workspace/reducer.d.ts +21 -21
- package/src/lib/store/workspace/reducer.spec.d.ts +1 -1
- package/src/lib/store/workspace/selectors.d.ts +174 -170
- package/src/lib/store/workspace/selectors.spec.d.ts +1 -1
- package/src/lib/store/workspace/types.d.ts +147 -145
- package/src/lib/store/workspace/utils.d.ts +29 -29
- package/src/lib/store/workspace/utils.spec.d.ts +1 -1
- package/src/lib/store/workspaceList/index.d.ts +1 -1
- package/src/lib/store/workspaceList/listener.d.ts +11 -11
- package/src/lib/store/workspaceList/listener.spec.d.ts +1 -1
- package/src/lib/store/workspaceList/reducer.d.ts +24 -21
- package/src/lib/store/workspaceList/reducer.spec.d.ts +1 -1
- package/src/lib/store/workspaceList/selectors.d.ts +101 -41
- package/src/lib/store/workspaceList/selectors.spec.d.ts +1 -1
- package/src/lib/store/workspaceList/types.d.ts +100 -77
- package/src/lib/store/workspaceList/utils.d.ts +12 -11
- package/src/lib/store/workspaceList/utils.spec.d.ts +1 -1
- package/src/lib/storyUtils/ActionsExampleComponent.d.ts +6 -6
- package/src/lib/storyUtils/StoryWrapper.d.ts +19 -19
- package/src/lib/storyUtils/componentsLookUp.d.ts +12 -12
- package/src/lib/storyUtils/componentsLookUp.stories.d.ts +46 -46
- package/src/lib/storyUtils/useFirstTimeError.d.ts +4 -4
- package/src/lib/storyUtils/useFirstTimeError.spec.d.ts +1 -1
- package/src/lib/utils/api.d.ts +28 -28
- package/src/lib/utils/api.spec.d.ts +1 -1
- package/src/lib/utils/fakeApi.d.ts +12 -12
- package/src/lib/utils/fakeApi.spec.d.ts +1 -1
- package/src/lib/utils/fakeApi.stories.d.ts +6 -6
- package/src/lib/utils/i18n.d.ts +7 -7
- package/src/lib/utils/routes.d.ts +8 -8
- package/src/lib/utils/routes.spec.d.ts +1 -1
- package/src/lib/utils/utils.d.ts +3 -3
- package/src/lib/utils/utils.spec.d.ts +1 -1
|
@@ -1,170 +1,174 @@
|
|
|
1
|
-
import { WorkspaceState } from './types';
|
|
2
|
-
import { AppStore } from '../types';
|
|
3
|
-
import { WorkspaceSupportedComponentTypes, ViewPreset } from '../viewPresets/types';
|
|
4
|
-
/**
|
|
5
|
-
* Gets workspace state
|
|
6
|
-
*
|
|
7
|
-
* @param {object} store store: object - Store object
|
|
8
|
-
* @returns {object} returnType: WorkspaceState
|
|
9
|
-
*/
|
|
10
|
-
export declare const getWorkspaceState: ((state: AppStore) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState, {
|
|
11
|
-
clearCache: () => void;
|
|
12
|
-
}> & {
|
|
13
|
-
clearCache: () => void;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Gets intialViewMapPreset from workspace state
|
|
17
|
-
*
|
|
18
|
-
* @param {object} store store: object - Store object
|
|
19
|
-
* @returns {MapPreset | undefined} returnType: MapPreset
|
|
20
|
-
*/
|
|
21
|
-
export declare const getInitialViewMapPreset: ((state: AppStore) => import("@opengeoweb/store").MapPreset | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("@opengeoweb/store").MapPreset | undefined, {
|
|
22
|
-
clearCache: () => void;
|
|
23
|
-
}> & {
|
|
24
|
-
clearCache: () => void;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Gets mosaicNode from workspace state
|
|
28
|
-
*
|
|
29
|
-
* @param {object} store store: object - Store object
|
|
30
|
-
* @returns {MosaicNode<string>} returnType: MosaicNode<string>
|
|
31
|
-
*/
|
|
32
|
-
export declare const getMosaicNode: ((state: AppStore) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string>, {
|
|
33
|
-
clearCache: () => void;
|
|
34
|
-
}> & {
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Gets view from workspace state
|
|
39
|
-
*
|
|
40
|
-
* @param {object} store store: object - Store object
|
|
41
|
-
* @param {string} viewId viewId: string - view id
|
|
42
|
-
* @returns {object} returnType: WorkspaceViewType
|
|
43
|
-
*/
|
|
44
|
-
export declare const getViewById: ((state: AppStore, viewId: string) => import("./types").WorkspaceViewType | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: string) => import("./types").WorkspaceViewType | undefined, {
|
|
45
|
-
clearCache: () => void;
|
|
46
|
-
}> & {
|
|
47
|
-
clearCache: () => void;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Gets all view ids
|
|
51
|
-
*
|
|
52
|
-
* @param {object} store store: object - Store object
|
|
53
|
-
* @returns {object} returnType: string[]
|
|
54
|
-
*/
|
|
55
|
-
export declare const getViewIds: ((state: AppStore) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[], {
|
|
56
|
-
clearCache: () => void;
|
|
57
|
-
}> & {
|
|
58
|
-
clearCache: () => void;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Gets getShouldPreventClose from workspace state
|
|
62
|
-
*
|
|
63
|
-
* @param {object} store store: object - Store object
|
|
64
|
-
* @param {string} viewId viewId: string - view id
|
|
65
|
-
* @returns {boolean} returnType: boolean
|
|
66
|
-
*/
|
|
67
|
-
export declare const getShouldPreventClose: ((state: AppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined) => boolean, {
|
|
68
|
-
clearCache: () => void;
|
|
69
|
-
}> & {
|
|
70
|
-
clearCache: () => void;
|
|
71
|
-
};
|
|
72
|
-
export declare const isWorkspaceLoading: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
73
|
-
clearCache: () => void;
|
|
74
|
-
}> & {
|
|
75
|
-
clearCache: () => void;
|
|
76
|
-
};
|
|
77
|
-
export declare const getWorkspaceError: ((state: AppStore) => import("./types").WorkspaceError) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").WorkspaceError, {
|
|
78
|
-
clearCache: () => void;
|
|
79
|
-
}> & {
|
|
80
|
-
clearCache: () => void;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Gets selected workspace title
|
|
84
|
-
*
|
|
85
|
-
* @param {object} store store: object - Store object
|
|
86
|
-
* @returns {string} returnType: string
|
|
87
|
-
*/
|
|
88
|
-
export declare const getSelectedWorkspaceTitle: ((state: AppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string, {
|
|
89
|
-
clearCache: () => void;
|
|
90
|
-
}> & {
|
|
91
|
-
clearCache: () => void;
|
|
92
|
-
};
|
|
93
|
-
export declare const hasWorkspaceChanges: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
94
|
-
clearCache: () => void;
|
|
95
|
-
}> & {
|
|
96
|
-
clearCache: () => void;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Gets selected viewType
|
|
100
|
-
*
|
|
101
|
-
* @param {object} store store: object - Store object
|
|
102
|
-
* @returns {string} returnType: string
|
|
103
|
-
*/
|
|
104
|
-
export declare const getViewType: ((state: AppStore) => "" | import("./types").ViewType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => "" | import("./types").ViewType, {
|
|
105
|
-
clearCache: () => void;
|
|
106
|
-
}> & {
|
|
107
|
-
clearCache: () => void;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* Gets selected workspace scope
|
|
111
|
-
*
|
|
112
|
-
* @param {object} store store: object - Store object
|
|
113
|
-
* @returns {string} returnType: string
|
|
114
|
-
*/
|
|
115
|
-
export declare const getSelectedWorkspaceScope: ((state: AppStore) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope, {
|
|
116
|
-
clearCache: () => void;
|
|
117
|
-
}> & {
|
|
118
|
-
clearCache: () => void;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Gets workspace data to send to the backend
|
|
122
|
-
*
|
|
123
|
-
* @param {object} store store: object - Store object
|
|
124
|
-
* @returns {object} returnType: object - WorkspacePresetFromBE
|
|
125
|
-
*/
|
|
126
|
-
export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/store").CoreAppStore) => {
|
|
127
|
-
id: string | undefined;
|
|
128
|
-
title: string;
|
|
129
|
-
syncGroups: {
|
|
130
|
-
id: string;
|
|
131
|
-
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
132
|
-
}[];
|
|
133
|
-
views: {
|
|
134
|
-
mosaicNodeId: string;
|
|
135
|
-
viewPresetId: string;
|
|
136
|
-
}[];
|
|
137
|
-
viewType: import("./types").ViewType | undefined;
|
|
138
|
-
scope: import("./types").PresetScope | undefined;
|
|
139
|
-
abstract: string | undefined;
|
|
140
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
141
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState) => {
|
|
142
|
-
id: string | undefined;
|
|
143
|
-
title: string;
|
|
144
|
-
syncGroups: {
|
|
145
|
-
id: string;
|
|
146
|
-
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
147
|
-
}[];
|
|
148
|
-
views: {
|
|
149
|
-
mosaicNodeId: string;
|
|
150
|
-
viewPresetId: string;
|
|
151
|
-
}[];
|
|
152
|
-
viewType: import("./types").ViewType | undefined;
|
|
153
|
-
scope: import("./types").PresetScope | undefined;
|
|
154
|
-
abstract: string | undefined;
|
|
155
|
-
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
156
|
-
}, {
|
|
157
|
-
clearCache: () => void;
|
|
158
|
-
}> & {
|
|
159
|
-
clearCache: () => void;
|
|
160
|
-
};
|
|
161
|
-
export declare const getViewComponentType: ((state: AppStore, viewId: string) => WorkspaceSupportedComponentTypes) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined) => WorkspaceSupportedComponentTypes, {
|
|
162
|
-
clearCache: () => void;
|
|
163
|
-
}> & {
|
|
164
|
-
clearCache: () => void;
|
|
165
|
-
};
|
|
166
|
-
export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) => ViewPreset
|
|
167
|
-
|
|
168
|
-
}> & {
|
|
169
|
-
|
|
170
|
-
}
|
|
1
|
+
import { WorkspaceState } from './types';
|
|
2
|
+
import { AppStore } from '../types';
|
|
3
|
+
import { WorkspaceSupportedComponentTypes, ViewPreset } from '../viewPresets/types';
|
|
4
|
+
/**
|
|
5
|
+
* Gets workspace state
|
|
6
|
+
*
|
|
7
|
+
* @param {object} store store: object - Store object
|
|
8
|
+
* @returns {object} returnType: WorkspaceState
|
|
9
|
+
*/
|
|
10
|
+
export declare const getWorkspaceState: ((state: AppStore) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState, {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
}> & {
|
|
13
|
+
clearCache: () => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Gets intialViewMapPreset from workspace state
|
|
17
|
+
*
|
|
18
|
+
* @param {object} store store: object - Store object
|
|
19
|
+
* @returns {MapPreset | undefined} returnType: MapPreset
|
|
20
|
+
*/
|
|
21
|
+
export declare const getInitialViewMapPreset: ((state: AppStore) => import("@opengeoweb/store").MapPreset | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("@opengeoweb/store").MapPreset | undefined, {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
}> & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Gets mosaicNode from workspace state
|
|
28
|
+
*
|
|
29
|
+
* @param {object} store store: object - Store object
|
|
30
|
+
* @returns {MosaicNode<string>} returnType: MosaicNode<string>
|
|
31
|
+
*/
|
|
32
|
+
export declare const getMosaicNode: ((state: AppStore) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string>, {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
}> & {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Gets view from workspace state
|
|
39
|
+
*
|
|
40
|
+
* @param {object} store store: object - Store object
|
|
41
|
+
* @param {string} viewId viewId: string - view id
|
|
42
|
+
* @returns {object} returnType: WorkspaceViewType
|
|
43
|
+
*/
|
|
44
|
+
export declare const getViewById: ((state: AppStore, viewId: string) => import("./types").WorkspaceViewType | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: string) => import("./types").WorkspaceViewType | undefined, {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
}> & {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Gets all view ids
|
|
51
|
+
*
|
|
52
|
+
* @param {object} store store: object - Store object
|
|
53
|
+
* @returns {object} returnType: string[]
|
|
54
|
+
*/
|
|
55
|
+
export declare const getViewIds: ((state: AppStore) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[], {
|
|
56
|
+
clearCache: () => void;
|
|
57
|
+
}> & {
|
|
58
|
+
clearCache: () => void;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Gets getShouldPreventClose from workspace state
|
|
62
|
+
*
|
|
63
|
+
* @param {object} store store: object - Store object
|
|
64
|
+
* @param {string} viewId viewId: string - view id
|
|
65
|
+
* @returns {boolean} returnType: boolean
|
|
66
|
+
*/
|
|
67
|
+
export declare const getShouldPreventClose: ((state: AppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined) => boolean, {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
}> & {
|
|
70
|
+
clearCache: () => void;
|
|
71
|
+
};
|
|
72
|
+
export declare const isWorkspaceLoading: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
73
|
+
clearCache: () => void;
|
|
74
|
+
}> & {
|
|
75
|
+
clearCache: () => void;
|
|
76
|
+
};
|
|
77
|
+
export declare const getWorkspaceError: ((state: AppStore) => import("./types").WorkspaceError) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").WorkspaceError, {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
}> & {
|
|
80
|
+
clearCache: () => void;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Gets selected workspace title
|
|
84
|
+
*
|
|
85
|
+
* @param {object} store store: object - Store object
|
|
86
|
+
* @returns {string} returnType: string
|
|
87
|
+
*/
|
|
88
|
+
export declare const getSelectedWorkspaceTitle: ((state: AppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string, {
|
|
89
|
+
clearCache: () => void;
|
|
90
|
+
}> & {
|
|
91
|
+
clearCache: () => void;
|
|
92
|
+
};
|
|
93
|
+
export declare const hasWorkspaceChanges: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
|
|
94
|
+
clearCache: () => void;
|
|
95
|
+
}> & {
|
|
96
|
+
clearCache: () => void;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Gets selected viewType
|
|
100
|
+
*
|
|
101
|
+
* @param {object} store store: object - Store object
|
|
102
|
+
* @returns {string} returnType: string
|
|
103
|
+
*/
|
|
104
|
+
export declare const getViewType: ((state: AppStore) => "" | import("./types").ViewType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => "" | import("./types").ViewType, {
|
|
105
|
+
clearCache: () => void;
|
|
106
|
+
}> & {
|
|
107
|
+
clearCache: () => void;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Gets selected workspace scope
|
|
111
|
+
*
|
|
112
|
+
* @param {object} store store: object - Store object
|
|
113
|
+
* @returns {string} returnType: string
|
|
114
|
+
*/
|
|
115
|
+
export declare const getSelectedWorkspaceScope: ((state: AppStore) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope, {
|
|
116
|
+
clearCache: () => void;
|
|
117
|
+
}> & {
|
|
118
|
+
clearCache: () => void;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Gets workspace data to send to the backend
|
|
122
|
+
*
|
|
123
|
+
* @param {object} store store: object - Store object
|
|
124
|
+
* @returns {object} returnType: object - WorkspacePresetFromBE
|
|
125
|
+
*/
|
|
126
|
+
export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/store").CoreAppStore) => {
|
|
127
|
+
id: string | undefined;
|
|
128
|
+
title: string;
|
|
129
|
+
syncGroups: {
|
|
130
|
+
id: string;
|
|
131
|
+
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
132
|
+
}[];
|
|
133
|
+
views: {
|
|
134
|
+
mosaicNodeId: string;
|
|
135
|
+
viewPresetId: string;
|
|
136
|
+
}[];
|
|
137
|
+
viewType: import("./types").ViewType | undefined;
|
|
138
|
+
scope: import("./types").PresetScope | undefined;
|
|
139
|
+
abstract: string | undefined;
|
|
140
|
+
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
141
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState) => {
|
|
142
|
+
id: string | undefined;
|
|
143
|
+
title: string;
|
|
144
|
+
syncGroups: {
|
|
145
|
+
id: string;
|
|
146
|
+
type: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SyncType;
|
|
147
|
+
}[];
|
|
148
|
+
views: {
|
|
149
|
+
mosaicNodeId: string;
|
|
150
|
+
viewPresetId: string;
|
|
151
|
+
}[];
|
|
152
|
+
viewType: import("./types").ViewType | undefined;
|
|
153
|
+
scope: import("./types").PresetScope | undefined;
|
|
154
|
+
abstract: string | undefined;
|
|
155
|
+
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
156
|
+
}, {
|
|
157
|
+
clearCache: () => void;
|
|
158
|
+
}> & {
|
|
159
|
+
clearCache: () => void;
|
|
160
|
+
};
|
|
161
|
+
export declare const getViewComponentType: ((state: AppStore, viewId: string) => WorkspaceSupportedComponentTypes) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined) => WorkspaceSupportedComponentTypes, {
|
|
162
|
+
clearCache: () => void;
|
|
163
|
+
}> & {
|
|
164
|
+
clearCache: () => void;
|
|
165
|
+
};
|
|
166
|
+
export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) => Omit<ViewPreset, "title"> & {
|
|
167
|
+
title?: string | undefined;
|
|
168
|
+
}) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined, args_1: WorkspaceSupportedComponentTypes, args_2: import("@opengeoweb/store").MapPreset, args_3: string[], args_4: import("dist/libs/timeseries/src/lib/store/types").TimeSeriesPreset | undefined) => Omit<ViewPreset, "title"> & {
|
|
169
|
+
title?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
clearCache: () => void;
|
|
172
|
+
}> & {
|
|
173
|
+
clearCache: () => void;
|
|
174
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,145 +1,147 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MapPreset, syncGroupsTypes } from '@opengeoweb/store';
|
|
3
|
-
import { MosaicNode } from 'react-mosaic-component';
|
|
4
|
-
export type InitialPropsWorkspaceViewType = Record<string, unknown>;
|
|
5
|
-
export type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
|
|
6
|
-
export interface WorkspaceViewType {
|
|
7
|
-
id?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
componentType: string | WorkspaceViewPresetComponentsLookupType;
|
|
10
|
-
initialProps?: InitialPropsWorkspaceViewType;
|
|
11
|
-
activeLayerId?: string;
|
|
12
|
-
shouldPreventClose?: boolean;
|
|
13
|
-
scope?: PresetScope;
|
|
14
|
-
keywords?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface WorkspaceViews {
|
|
17
|
-
byId?: Record<string, WorkspaceViewType>;
|
|
18
|
-
allIds: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface WorkspaceViewsFromBE {
|
|
21
|
-
mosaicNodeId: string;
|
|
22
|
-
viewPresetId: string;
|
|
23
|
-
}
|
|
24
|
-
export type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
|
|
25
|
-
export interface WorkspaceSyncGroup {
|
|
26
|
-
id: string;
|
|
27
|
-
type: syncGroupsTypes.SyncType;
|
|
28
|
-
title?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface WorkspacePreset {
|
|
31
|
-
id?: string;
|
|
32
|
-
title: string;
|
|
33
|
-
syncGroups?: WorkspaceSyncGroup[];
|
|
34
|
-
views: WorkspaceViews;
|
|
35
|
-
viewType?: ViewType;
|
|
36
|
-
mosaicNode: MosaicNode<string>;
|
|
37
|
-
minimumPaneSizePercentage?: number;
|
|
38
|
-
scope?: PresetScope;
|
|
39
|
-
abstract?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface WorkspaceState extends WorkspacePreset {
|
|
42
|
-
isLoading?: boolean;
|
|
43
|
-
error?: WorkspaceError;
|
|
44
|
-
hasChanges?: boolean;
|
|
45
|
-
intialViewMapPreset?: MapPreset;
|
|
46
|
-
}
|
|
47
|
-
export interface WorkspacePresetFromBE {
|
|
48
|
-
id?: string;
|
|
49
|
-
title: string;
|
|
50
|
-
syncGroups?: WorkspaceSyncGroup[];
|
|
51
|
-
views: WorkspaceViewsFromBE[];
|
|
52
|
-
viewType?: ViewType;
|
|
53
|
-
mosaicNode: MosaicNode<string>;
|
|
54
|
-
scope?: PresetScope;
|
|
55
|
-
abstract?: string;
|
|
56
|
-
}
|
|
57
|
-
export interface WorkspacePresetListItem {
|
|
58
|
-
id: string;
|
|
59
|
-
date?: string;
|
|
60
|
-
title: string;
|
|
61
|
-
scope?: PresetScope;
|
|
62
|
-
viewType: ViewType;
|
|
63
|
-
abstract: string;
|
|
64
|
-
}
|
|
65
|
-
export declare enum WorkspacePresetAction {
|
|
66
|
-
DELETE = "DELETE",
|
|
67
|
-
EDIT = "EDIT",
|
|
68
|
-
SAVE = "SAVE",
|
|
69
|
-
SAVE_AS = "SAVE_AS",
|
|
70
|
-
SAVE_ALL = "SAVE_ALL",
|
|
71
|
-
DUPLICATE = "DUPLICATE",
|
|
72
|
-
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
export
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MapPreset, syncGroupsTypes } from '@opengeoweb/store';
|
|
3
|
+
import { MosaicNode } from 'react-mosaic-component';
|
|
4
|
+
export type InitialPropsWorkspaceViewType = Record<string, unknown>;
|
|
5
|
+
export type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
|
|
6
|
+
export interface WorkspaceViewType {
|
|
7
|
+
id?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
componentType: string | WorkspaceViewPresetComponentsLookupType;
|
|
10
|
+
initialProps?: InitialPropsWorkspaceViewType;
|
|
11
|
+
activeLayerId?: string;
|
|
12
|
+
shouldPreventClose?: boolean;
|
|
13
|
+
scope?: PresetScope;
|
|
14
|
+
keywords?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface WorkspaceViews {
|
|
17
|
+
byId?: Record<string, WorkspaceViewType>;
|
|
18
|
+
allIds: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface WorkspaceViewsFromBE {
|
|
21
|
+
mosaicNodeId: string;
|
|
22
|
+
viewPresetId: string;
|
|
23
|
+
}
|
|
24
|
+
export type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
|
|
25
|
+
export interface WorkspaceSyncGroup {
|
|
26
|
+
id: string;
|
|
27
|
+
type: syncGroupsTypes.SyncType;
|
|
28
|
+
title?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface WorkspacePreset {
|
|
31
|
+
id?: string;
|
|
32
|
+
title: string;
|
|
33
|
+
syncGroups?: WorkspaceSyncGroup[];
|
|
34
|
+
views: WorkspaceViews;
|
|
35
|
+
viewType?: ViewType;
|
|
36
|
+
mosaicNode: MosaicNode<string>;
|
|
37
|
+
minimumPaneSizePercentage?: number;
|
|
38
|
+
scope?: PresetScope;
|
|
39
|
+
abstract?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface WorkspaceState extends WorkspacePreset {
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
error?: WorkspaceError;
|
|
44
|
+
hasChanges?: boolean;
|
|
45
|
+
intialViewMapPreset?: MapPreset;
|
|
46
|
+
}
|
|
47
|
+
export interface WorkspacePresetFromBE {
|
|
48
|
+
id?: string;
|
|
49
|
+
title: string;
|
|
50
|
+
syncGroups?: WorkspaceSyncGroup[];
|
|
51
|
+
views: WorkspaceViewsFromBE[];
|
|
52
|
+
viewType?: ViewType;
|
|
53
|
+
mosaicNode: MosaicNode<string>;
|
|
54
|
+
scope?: PresetScope;
|
|
55
|
+
abstract?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface WorkspacePresetListItem {
|
|
58
|
+
id: string;
|
|
59
|
+
date?: string;
|
|
60
|
+
title: string;
|
|
61
|
+
scope?: PresetScope;
|
|
62
|
+
viewType: ViewType;
|
|
63
|
+
abstract: string;
|
|
64
|
+
}
|
|
65
|
+
export declare enum WorkspacePresetAction {
|
|
66
|
+
DELETE = "DELETE",
|
|
67
|
+
EDIT = "EDIT",
|
|
68
|
+
SAVE = "SAVE",
|
|
69
|
+
SAVE_AS = "SAVE_AS",
|
|
70
|
+
SAVE_ALL = "SAVE_ALL",
|
|
71
|
+
DUPLICATE = "DUPLICATE",
|
|
72
|
+
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET",
|
|
73
|
+
RESET = "RESET",
|
|
74
|
+
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET"
|
|
75
|
+
}
|
|
76
|
+
export interface WorkspaceSetInitialViewMapPresetPayload {
|
|
77
|
+
preset: MapPreset;
|
|
78
|
+
}
|
|
79
|
+
export interface WorkspaceAddViewPayload {
|
|
80
|
+
id: string;
|
|
81
|
+
componentType: string;
|
|
82
|
+
initialProps: InitialPropsWorkspaceViewType;
|
|
83
|
+
}
|
|
84
|
+
export interface WorkspaceSetNewViewPayload {
|
|
85
|
+
mosaicNodeId: string;
|
|
86
|
+
newId: string;
|
|
87
|
+
componentType: string;
|
|
88
|
+
}
|
|
89
|
+
export interface WorkspaceDeleteViewPayload {
|
|
90
|
+
id: string;
|
|
91
|
+
}
|
|
92
|
+
export interface WorkspaceUpdateViewsPayload {
|
|
93
|
+
mosaicNode: MosaicNode<string>;
|
|
94
|
+
}
|
|
95
|
+
export interface WorkspaceUpdateViewPayload {
|
|
96
|
+
mosaicNodeId: string;
|
|
97
|
+
viewPreset: WorkspaceViewType;
|
|
98
|
+
}
|
|
99
|
+
export interface WorkspaceSetPresetPayload {
|
|
100
|
+
workspacePreset: WorkspacePreset;
|
|
101
|
+
}
|
|
102
|
+
export interface WorkspaceSetPreventCloseViewPayload {
|
|
103
|
+
viewId: string;
|
|
104
|
+
shouldPreventClose: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface WorkspaceComponentLookupPayload {
|
|
107
|
+
componentType: string;
|
|
108
|
+
id: string;
|
|
109
|
+
title?: string;
|
|
110
|
+
initialProps: unknown;
|
|
111
|
+
connectedMap?: string;
|
|
112
|
+
}
|
|
113
|
+
export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
114
|
+
export type PresetScope = 'user' | 'system';
|
|
115
|
+
export interface ViewPresetListItem {
|
|
116
|
+
id: string;
|
|
117
|
+
title: string;
|
|
118
|
+
date: string;
|
|
119
|
+
scope: PresetScope;
|
|
120
|
+
}
|
|
121
|
+
export interface WorkspaceFetchWorkspacePayload {
|
|
122
|
+
workspaceId: string;
|
|
123
|
+
}
|
|
124
|
+
export interface WorkspaceFetchedWorkspacePayload {
|
|
125
|
+
workspaceId: string;
|
|
126
|
+
workspace: WorkspacePresetFromBE;
|
|
127
|
+
}
|
|
128
|
+
export interface WorkspaceFetchWorkspaceViewPresetPayload {
|
|
129
|
+
viewPresetId: string;
|
|
130
|
+
mosaicNodeId: string;
|
|
131
|
+
}
|
|
132
|
+
export interface WorkspaceSaveWorkspacePresetPayload {
|
|
133
|
+
workspace: WorkspacePresetFromBE;
|
|
134
|
+
}
|
|
135
|
+
export declare enum WorkspaceErrorType {
|
|
136
|
+
NOT_FOUND = "NOT_FOUND",
|
|
137
|
+
GENERIC = "GENERIC",
|
|
138
|
+
SAVE = "SAVE"
|
|
139
|
+
}
|
|
140
|
+
export type WorkspaceError = {
|
|
141
|
+
type: WorkspaceErrorType;
|
|
142
|
+
message: string;
|
|
143
|
+
} | undefined;
|
|
144
|
+
export interface WorkspaceErrorWorkspacePayload {
|
|
145
|
+
workspaceId: string;
|
|
146
|
+
error: WorkspaceError;
|
|
147
|
+
}
|