@opengeoweb/workspace 4.20.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/README.md +29 -0
- package/index.d.ts +15 -0
- package/index.esm.css +36 -0
- package/index.esm.js +16266 -0
- package/index.umd.css +36 -0
- package/index.umd.js +16758 -0
- package/lib/Workspace.stories.d.ts +21 -0
- package/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.d.ts +12 -0
- package/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.spec.d.ts +1 -0
- package/lib/components/ComponentsLookUpWrapper/index.d.ts +1 -0
- package/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.d.ts +17 -0
- package/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.spec.d.ts +1 -0
- package/lib/components/DefaultComponentsLookUp/index.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.d.ts +23 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.spec.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.stories.d.ts +30 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.d.ts +6 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.spec.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.stories.d.ts +7 -0
- package/lib/components/MapPresetsDialog/index.d.ts +2 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsForm.d.ts +18 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsForm.spec.d.ts +1 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.d.ts +14 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.spec.d.ts +1 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.stories.d.ts +23 -0
- package/lib/components/MapPresetsFormDialog/index.d.ts +1 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.d.ts +16 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.spec.d.ts +1 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.stories.d.ts +13 -0
- package/lib/components/MapPresetsMenuItem/index.d.ts +1 -0
- package/lib/components/Providers/Providers.d.ts +11 -0
- package/lib/components/Providers/ScreenManagerApiWrapper.d.ts +7 -0
- package/lib/components/Providers/ScreenManagerApiWrapper.spec.d.ts +1 -0
- package/lib/components/Providers/WorkspaceDndProvider.d.ts +11 -0
- package/lib/components/Providers/WorkspaceModuleProvider.d.ts +7 -0
- package/lib/components/Providers/WorkspaceModuleProvider.spec.d.ts +1 -0
- package/lib/components/Providers/index.d.ts +3 -0
- package/lib/components/ScreenManagerView/ScreenManagerControls.d.ts +9 -0
- package/lib/components/ScreenManagerView/ScreenManagerControls.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerTileConnect.d.ts +12 -0
- package/lib/components/ScreenManagerView/ScreenManagerTileConnect.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerView.d.ts +16 -0
- package/lib/components/ScreenManagerView/ScreenManagerView.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerViewConnect.d.ts +7 -0
- package/lib/components/ScreenManagerView/ScreenManagerViewConnect.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/helpers.d.ts +3 -0
- package/lib/components/ScreenManagerView/helpers.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/index.d.ts +2 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.d.ts +9 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.spec.d.ts +1 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +8 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetailError.stories.d.ts +9 -0
- package/lib/components/WorkspaceDetail/index.d.ts +1 -0
- package/lib/components/WorkspaceFilter/FilterChip.d.ts +9 -0
- package/lib/components/WorkspaceFilter/FilterChip.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/FilterList.d.ts +8 -0
- package/lib/components/WorkspaceFilter/FilterList.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/SearchField.d.ts +7 -0
- package/lib/components/WorkspaceFilter/SearchField.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.d.ts +7 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.stories.d.ts +25 -0
- package/lib/components/WorkspaceFilter/types.d.ts +5 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +19 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.d.ts +7 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.stories.d.ts +25 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.d.ts +6 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/index.d.ts +2 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +14 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.spec.d.ts +1 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.stories.d.ts +25 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.d.ts +7 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +16 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +15 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +35 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +11 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.stories.d.ts +19 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +2 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListError.stories.d.ts +6 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +12 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.stories.d.ts +19 -0
- package/lib/components/WorkspaceTab/WorkspaceTab.d.ts +7 -0
- package/lib/components/WorkspaceTab/WorkspaceTab.spec.d.ts +1 -0
- package/lib/components/WorkspaceTab/WorkspaceTabConnect.d.ts +6 -0
- package/lib/components/WorkspaceTab/WorkspaceTabConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceTab/index.d.ts +1 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +6 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.spec.d.ts +1 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.stories.d.ts +53 -0
- package/lib/components/WorkspaceTopBar/index.d.ts +1 -0
- package/lib/store/config.d.ts +14 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/store.d.ts +6 -0
- package/lib/store/viewPresets/index.d.ts +2 -0
- package/lib/store/viewPresets/reducer.d.ts +26 -0
- package/lib/store/viewPresets/reducer.spec.d.ts +1 -0
- package/lib/store/viewPresets/sagas.d.ts +15 -0
- package/lib/store/viewPresets/sagas.spec.d.ts +1 -0
- package/lib/store/viewPresets/selectors.d.ts +10 -0
- package/lib/store/viewPresets/selectors.spec.d.ts +1 -0
- package/lib/store/viewPresets/types.d.ts +84 -0
- package/lib/store/viewPresets/utils.d.ts +13 -0
- package/lib/store/viewPresets/utils.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/index.d.ts +2 -0
- package/lib/store/viewPresetsList/reducer.d.ts +5 -0
- package/lib/store/viewPresetsList/reducer.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/selectors.d.ts +4 -0
- package/lib/store/viewPresetsList/selectors.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/types.d.ts +12 -0
- package/lib/store/workspace/reducer.d.ts +17 -0
- package/lib/store/workspace/reducer.spec.d.ts +1 -0
- package/lib/store/workspace/sagas.d.ts +12 -0
- package/lib/store/workspace/sagas.spec.d.ts +1 -0
- package/lib/store/workspace/selectors.d.ts +271 -0
- package/lib/store/workspace/selectors.spec.d.ts +1 -0
- package/lib/store/workspace/types.d.ts +141 -0
- package/lib/store/workspace/utils.d.ts +29 -0
- package/lib/store/workspace/utils.spec.d.ts +1 -0
- package/lib/store/workspaceList/index.d.ts +1 -0
- package/lib/store/workspaceList/reducer.d.ts +18 -0
- package/lib/store/workspaceList/reducer.spec.d.ts +1 -0
- package/lib/store/workspaceList/sagas.d.ts +6 -0
- package/lib/store/workspaceList/sagas.spec.d.ts +1 -0
- package/lib/store/workspaceList/selectors.d.ts +9 -0
- package/lib/store/workspaceList/selectors.spec.d.ts +1 -0
- package/lib/store/workspaceList/types.d.ts +60 -0
- package/lib/store/workspaceList/utils.d.ts +3 -0
- package/lib/store/workspaceList/utils.spec.d.ts +1 -0
- package/lib/storyUtils/ActionsExampleComponent.d.ts +6 -0
- package/lib/storyUtils/StoryWrapper.d.ts +10 -0
- package/lib/storyUtils/componentsLookUp.d.ts +11 -0
- package/lib/storyUtils/componentsLookUp.stories.d.ts +42 -0
- package/lib/storyshots/Storyshots.spec.d.ts +1 -0
- package/lib/utils/api.d.ts +28 -0
- package/lib/utils/api.spec.d.ts +1 -0
- package/lib/utils/fakeApi.d.ts +8 -0
- package/lib/utils/fakeApi.spec.d.ts +1 -0
- package/lib/utils/fakeApi.stories.d.ts +6 -0
- package/lib/utils/routes.d.ts +8 -0
- package/lib/utils/routes.spec.d.ts +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { WorkspaceState, WorkspaceViewType } from './types';
|
|
2
|
+
import { AppStore } from '../store';
|
|
3
|
+
/**
|
|
4
|
+
* Gets workspace state
|
|
5
|
+
*
|
|
6
|
+
* @param {object} store store: object - Store object
|
|
7
|
+
* @returns {object} returnType: WorkspaceState
|
|
8
|
+
*/
|
|
9
|
+
export declare const getWorkspaceState: ((state: {
|
|
10
|
+
workspace?: WorkspaceState;
|
|
11
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
12
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
13
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
14
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
15
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
16
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
17
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
18
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
19
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
20
|
+
}) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
}> & {
|
|
23
|
+
clearCache: () => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Gets mosaicNode from workspace state
|
|
27
|
+
*
|
|
28
|
+
* @param {object} store store: object - Store object
|
|
29
|
+
* @returns {MosaicNode<string>} returnType: MosaicNode<string>
|
|
30
|
+
*/
|
|
31
|
+
export declare const getMosaicNode: ((state: {
|
|
32
|
+
workspace?: WorkspaceState;
|
|
33
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
34
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
35
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
36
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
37
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
38
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
39
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
40
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
41
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
42
|
+
}) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string> & {
|
|
43
|
+
clearCache: () => void;
|
|
44
|
+
}> & {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Gets view from workspace state
|
|
49
|
+
*
|
|
50
|
+
* @param {object} store store: object - Store object
|
|
51
|
+
* @param {string} viewId viewId: string - view id
|
|
52
|
+
* @returns {object} returnType: WorkspaceViewType
|
|
53
|
+
*/
|
|
54
|
+
export declare const getViewById: (store: AppStore, viewId: string) => WorkspaceViewType;
|
|
55
|
+
/**
|
|
56
|
+
* Gets all view ids
|
|
57
|
+
*
|
|
58
|
+
* @param {object} store store: object - Store object
|
|
59
|
+
* @returns {object} returnType: string[]
|
|
60
|
+
*/
|
|
61
|
+
export declare const getViewIds: ((state: {
|
|
62
|
+
workspace?: WorkspaceState;
|
|
63
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
64
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
65
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
66
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
67
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
68
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
69
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
70
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
71
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
72
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[] & {
|
|
73
|
+
clearCache: () => void;
|
|
74
|
+
}> & {
|
|
75
|
+
clearCache: () => void;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Gets getShouldPreventClose from workspace state
|
|
79
|
+
*
|
|
80
|
+
* @param {object} store store: object - Store object
|
|
81
|
+
* @param {string} viewId viewId: string - view id
|
|
82
|
+
* @returns {boolean} returnType: boolean
|
|
83
|
+
*/
|
|
84
|
+
export declare const getShouldPreventClose: ((state: {
|
|
85
|
+
workspace?: WorkspaceState;
|
|
86
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
87
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
88
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
89
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
90
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
91
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
92
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
93
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
94
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
95
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType) => boolean & {
|
|
96
|
+
clearCache: () => void;
|
|
97
|
+
}> & {
|
|
98
|
+
clearCache: () => void;
|
|
99
|
+
};
|
|
100
|
+
export declare const isWorkspaceLoading: ((state: {
|
|
101
|
+
workspace?: WorkspaceState;
|
|
102
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
103
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
104
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
105
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
106
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
107
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
108
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
109
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
110
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
111
|
+
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean & {
|
|
112
|
+
clearCache: () => void;
|
|
113
|
+
}> & {
|
|
114
|
+
clearCache: () => void;
|
|
115
|
+
};
|
|
116
|
+
export declare const getWorkspaceError: ((state: {
|
|
117
|
+
workspace?: WorkspaceState;
|
|
118
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
119
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
120
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
121
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
122
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
123
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
124
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
125
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
126
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
127
|
+
}) => {
|
|
128
|
+
type: import("./types").WorkspaceErrorType;
|
|
129
|
+
message: string;
|
|
130
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => {
|
|
131
|
+
type: import("./types").WorkspaceErrorType;
|
|
132
|
+
message: string;
|
|
133
|
+
} & {
|
|
134
|
+
clearCache: () => void;
|
|
135
|
+
}> & {
|
|
136
|
+
clearCache: () => void;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Gets selected workspace title
|
|
140
|
+
*
|
|
141
|
+
* @param {object} store store: object - Store object
|
|
142
|
+
* @returns {string} returnType: string
|
|
143
|
+
*/
|
|
144
|
+
export declare const getSelectedWorkspaceTitle: ((state: {
|
|
145
|
+
workspace?: WorkspaceState;
|
|
146
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
147
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
148
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
149
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
150
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
151
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
152
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
153
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
154
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
155
|
+
}) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string & {
|
|
156
|
+
clearCache: () => void;
|
|
157
|
+
}> & {
|
|
158
|
+
clearCache: () => void;
|
|
159
|
+
};
|
|
160
|
+
export declare const hasWorkspaceChanges: ((state: {
|
|
161
|
+
workspace?: WorkspaceState;
|
|
162
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
163
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
164
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
165
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
166
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
167
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
168
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
169
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
170
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
171
|
+
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean & {
|
|
172
|
+
clearCache: () => void;
|
|
173
|
+
}> & {
|
|
174
|
+
clearCache: () => void;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Gets selected viewType
|
|
178
|
+
*
|
|
179
|
+
* @param {object} store store: object - Store object
|
|
180
|
+
* @returns {string} returnType: string
|
|
181
|
+
*/
|
|
182
|
+
export declare const getViewType: ((state: {
|
|
183
|
+
workspace?: WorkspaceState;
|
|
184
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
185
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
186
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
187
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
188
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
189
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
190
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
191
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
192
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
193
|
+
}) => import("./types").ViewType | "") & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => ("" | import("./types").ViewType) & {
|
|
194
|
+
clearCache: () => void;
|
|
195
|
+
}> & {
|
|
196
|
+
clearCache: () => void;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Gets selected workspace scope
|
|
200
|
+
*
|
|
201
|
+
* @param {object} store store: object - Store object
|
|
202
|
+
* @returns {string} returnType: string
|
|
203
|
+
*/
|
|
204
|
+
export declare const getSelectedWorkspaceScope: ((state: {
|
|
205
|
+
workspace?: WorkspaceState;
|
|
206
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
207
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
208
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
209
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
210
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
211
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
212
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
213
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
214
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
215
|
+
}) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope & {
|
|
216
|
+
clearCache: () => void;
|
|
217
|
+
}> & {
|
|
218
|
+
clearCache: () => void;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Gets workspace data to send to the backend
|
|
222
|
+
*
|
|
223
|
+
* @param {object} store store: object - Store object
|
|
224
|
+
* @returns {object} returnType: object - WorkspacePresetFromBE
|
|
225
|
+
*/
|
|
226
|
+
export declare const getWorkspaceData: ((state: {
|
|
227
|
+
workspace?: WorkspaceState;
|
|
228
|
+
workspaceList?: import("../workspaceList/types").WorkspaceListState;
|
|
229
|
+
viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState;
|
|
230
|
+
viewPresets?: import("../viewPresets/types").ViewPresetState;
|
|
231
|
+
syncronizationGroupStore?: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
232
|
+
ui?: import("dist/libs/core/lib/store/ui/types").UIStoreType;
|
|
233
|
+
webmap?: import("dist/libs/core/lib/store/mapStore/types").WebMapState;
|
|
234
|
+
services?: import("dist/libs/core/lib/store/mapStore/types").ServiceState;
|
|
235
|
+
layers?: import("dist/libs/core/lib/store/mapStore/types").LayerState;
|
|
236
|
+
layerSelect?: import("dist/libs/core/lib/store/layerSelect/types").LayerSelectStoreType;
|
|
237
|
+
}) => {
|
|
238
|
+
id: string;
|
|
239
|
+
title: string;
|
|
240
|
+
syncGroups: {
|
|
241
|
+
id: string;
|
|
242
|
+
type: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SyncType;
|
|
243
|
+
}[];
|
|
244
|
+
views: {
|
|
245
|
+
mosaicNodeId: string;
|
|
246
|
+
viewPresetId: string;
|
|
247
|
+
}[];
|
|
248
|
+
viewType: import("./types").ViewType;
|
|
249
|
+
scope: import("./types").PresetScope;
|
|
250
|
+
abstract: string;
|
|
251
|
+
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
252
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SynchronizationGroupState) => {
|
|
253
|
+
id: string;
|
|
254
|
+
title: string;
|
|
255
|
+
syncGroups: {
|
|
256
|
+
id: string;
|
|
257
|
+
type: import("dist/libs/core/lib/store/generic/synchronizationGroups/types").SyncType;
|
|
258
|
+
}[];
|
|
259
|
+
views: {
|
|
260
|
+
mosaicNodeId: string;
|
|
261
|
+
viewPresetId: string;
|
|
262
|
+
}[];
|
|
263
|
+
viewType: import("./types").ViewType;
|
|
264
|
+
scope: import("./types").PresetScope;
|
|
265
|
+
abstract: string;
|
|
266
|
+
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
267
|
+
} & {
|
|
268
|
+
clearCache: () => void;
|
|
269
|
+
}> & {
|
|
270
|
+
clearCache: () => void;
|
|
271
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MosaicNode } from 'react-mosaic-component';
|
|
3
|
+
import { SupportedComponentTypes, SyncGroups, InitialProps } from '@opengeoweb/core';
|
|
4
|
+
declare type InitialPropsWorkspaceViewType = Record<string, unknown>;
|
|
5
|
+
export declare 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
|
+
}
|
|
14
|
+
export interface WorkspaceViews {
|
|
15
|
+
byId?: Record<string, WorkspaceViewType>;
|
|
16
|
+
allIds: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface WorkspaceViewsFromBE {
|
|
19
|
+
mosaicNodeId: string;
|
|
20
|
+
viewPresetId: string;
|
|
21
|
+
}
|
|
22
|
+
export declare type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
|
|
23
|
+
export interface WorkspaceSyncGroup {
|
|
24
|
+
id: string;
|
|
25
|
+
type: SyncGroups.types.SyncType;
|
|
26
|
+
title?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface WorkspacePreset {
|
|
29
|
+
id?: string;
|
|
30
|
+
title: string;
|
|
31
|
+
syncGroups?: WorkspaceSyncGroup[];
|
|
32
|
+
views: WorkspaceViews;
|
|
33
|
+
viewType?: ViewType;
|
|
34
|
+
mosaicNode: MosaicNode<string>;
|
|
35
|
+
minimumPaneSizePercentage?: number;
|
|
36
|
+
scope?: PresetScope;
|
|
37
|
+
abstract?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface WorkspaceState extends WorkspacePreset {
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
error?: WorkspaceError;
|
|
42
|
+
hasChanges?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface WorkspacePresetFromBE {
|
|
45
|
+
id?: string;
|
|
46
|
+
title: string;
|
|
47
|
+
syncGroups?: WorkspaceSyncGroup[];
|
|
48
|
+
views: WorkspaceViewsFromBE[];
|
|
49
|
+
viewType?: ViewType;
|
|
50
|
+
mosaicNode: MosaicNode<string>;
|
|
51
|
+
scope?: PresetScope;
|
|
52
|
+
abstract?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface WorkspacePresetListItem {
|
|
55
|
+
id: string;
|
|
56
|
+
date?: string;
|
|
57
|
+
title: string;
|
|
58
|
+
scope?: PresetScope;
|
|
59
|
+
viewType: ViewType;
|
|
60
|
+
abstract: string;
|
|
61
|
+
}
|
|
62
|
+
export declare enum WorkspacePresetAction {
|
|
63
|
+
DELETE = "DELETE",
|
|
64
|
+
EDIT = "EDIT",
|
|
65
|
+
SAVE = "SAVE",
|
|
66
|
+
SAVE_AS = "SAVE_AS",
|
|
67
|
+
DUPLICATE = "DUPLICATE"
|
|
68
|
+
}
|
|
69
|
+
export interface WorkspacePresetListFilterParams {
|
|
70
|
+
scope?: PresetScope[];
|
|
71
|
+
}
|
|
72
|
+
export interface WorkspaceAddViewPayload {
|
|
73
|
+
id: string;
|
|
74
|
+
componentType: string;
|
|
75
|
+
initialProps: InitialPropsWorkspaceViewType;
|
|
76
|
+
}
|
|
77
|
+
export interface WorkspaceDeleteViewPayload {
|
|
78
|
+
id: string;
|
|
79
|
+
}
|
|
80
|
+
export interface WorkspaceUpdateViewsPayload {
|
|
81
|
+
mosaicNode: MosaicNode<string>;
|
|
82
|
+
}
|
|
83
|
+
export interface WorkspaceUpdateViewPayload {
|
|
84
|
+
mosaicNodeId: string;
|
|
85
|
+
viewPreset: WorkspaceViewType;
|
|
86
|
+
}
|
|
87
|
+
export interface WorkspaceSetPresetPayload {
|
|
88
|
+
workspacePreset: WorkspacePreset;
|
|
89
|
+
}
|
|
90
|
+
export interface WorkspaceSetPreventCloseViewPayload {
|
|
91
|
+
viewId: string;
|
|
92
|
+
shouldPreventClose: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface WorkspaceComponentLookupPayload {
|
|
95
|
+
componentType: string;
|
|
96
|
+
id: string;
|
|
97
|
+
title?: string;
|
|
98
|
+
initialProps: unknown;
|
|
99
|
+
}
|
|
100
|
+
export declare type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
101
|
+
export declare type PresetScope = 'user' | 'system';
|
|
102
|
+
export declare type ViewPresetListItem = {
|
|
103
|
+
id: string;
|
|
104
|
+
title: string;
|
|
105
|
+
date: string;
|
|
106
|
+
scope: PresetScope;
|
|
107
|
+
};
|
|
108
|
+
export interface ViewPreset {
|
|
109
|
+
id?: string;
|
|
110
|
+
title: string;
|
|
111
|
+
keywords: string;
|
|
112
|
+
componentType: SupportedComponentTypes | WorkspaceViewPresetComponentsLookupType;
|
|
113
|
+
initialProps?: InitialProps;
|
|
114
|
+
}
|
|
115
|
+
export interface WorkspaceFetchWorkspacePayload {
|
|
116
|
+
workspaceId: string;
|
|
117
|
+
}
|
|
118
|
+
export interface WorkspaceFetchedWorkspacePayload {
|
|
119
|
+
workspaceId: string;
|
|
120
|
+
}
|
|
121
|
+
export interface WorkspaceFetchWorkspaceViewPresetPayload {
|
|
122
|
+
viewPresetId: string;
|
|
123
|
+
mosaicNodeId: string;
|
|
124
|
+
}
|
|
125
|
+
export interface WorkspaceSaveWorkspacePresetPayload {
|
|
126
|
+
workspace: WorkspacePresetFromBE;
|
|
127
|
+
}
|
|
128
|
+
export declare enum WorkspaceErrorType {
|
|
129
|
+
NOT_FOUND = "NOT_FOUND",
|
|
130
|
+
GENERIC = "GENERIC",
|
|
131
|
+
SAVE = "SAVE"
|
|
132
|
+
}
|
|
133
|
+
export declare type WorkspaceError = {
|
|
134
|
+
type: WorkspaceErrorType;
|
|
135
|
+
message: string;
|
|
136
|
+
} | undefined;
|
|
137
|
+
export interface WorkspaceErrorWorkspacePayload {
|
|
138
|
+
workspaceId: string;
|
|
139
|
+
error: WorkspaceError;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SyncGroups } from '@opengeoweb/core';
|
|
2
|
+
import { MosaicNode } from 'react-mosaic-component';
|
|
3
|
+
import { AxiosError } from 'axios';
|
|
4
|
+
import { PresetsApi } from '../../utils/api';
|
|
5
|
+
import { WorkspacePreset, WorkspacePresetFromBE, WorkspaceViewsFromBE, ViewType, WorkspaceViewPresetComponentsLookupType } from './types';
|
|
6
|
+
export declare const getWorkspaceApi: () => PresetsApi;
|
|
7
|
+
export declare const getViewPresetState: (viewPresetId: string, mosaicNodeId: string, state: 'loading' | 'error') => {
|
|
8
|
+
title: string;
|
|
9
|
+
id: string;
|
|
10
|
+
mosaicNodeId: string;
|
|
11
|
+
componentType: WorkspaceViewPresetComponentsLookupType;
|
|
12
|
+
};
|
|
13
|
+
export declare const getLoadingWorkspace: (workspacePreset: WorkspacePresetFromBE) => WorkspacePreset;
|
|
14
|
+
export declare const getListInChunks: (views: WorkspaceViewsFromBE[]) => WorkspaceViewsFromBE[][];
|
|
15
|
+
export declare const defaultSyncGroups: {
|
|
16
|
+
groupId: string;
|
|
17
|
+
title: string;
|
|
18
|
+
type: SyncGroups.types.SyncType;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const getSyncGroups: (syncGroups?: any[]) => SyncGroups.types.SyncGroupAddGroupPayload[];
|
|
21
|
+
export declare const tiledWindowComponentTypes: string[];
|
|
22
|
+
export declare const getViewType: (numViews: number, firstViewComponentType: string) => ViewType;
|
|
23
|
+
/**
|
|
24
|
+
* Get all view ids from the mosaicnode state
|
|
25
|
+
* @param mNode MosaicNode state
|
|
26
|
+
* @returns List if string ids of all mosaic nodes.
|
|
27
|
+
*/
|
|
28
|
+
export declare const makeListOfViewIds: (mNode: MosaicNode<string>) => string[];
|
|
29
|
+
export declare const getErrorMessage: (error: AxiosError) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as workspaceListSelectors from './selectors';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WorkspacePresetListItem } from '../workspace/types';
|
|
3
|
+
import { OpenWorkspaceActionDialogPayload, FetchedWorkspaceList, WorkspaceListState, ErrorWorkspaceList, OnSuccesWorkspacePresetActionPayload, ToggleListDialogPayload, FetchWorkspaceListAction, ToggleSelectFilterChip, WorkspaceListFilter } from './types';
|
|
4
|
+
export declare const workspaceListFilterOptions: WorkspaceListFilter[];
|
|
5
|
+
export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem>;
|
|
6
|
+
export declare const initialState: WorkspaceListState;
|
|
7
|
+
export declare const reducer: import("redux").Reducer<WorkspaceListState, import("redux").AnyAction>;
|
|
8
|
+
export declare const workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
|
+
fetchWorkspaceList: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<FetchWorkspaceListAction>) => void;
|
|
10
|
+
fetchedWorkspaceList: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<FetchedWorkspaceList>) => void;
|
|
11
|
+
errorWorkspaceList: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<ErrorWorkspaceList>) => void;
|
|
12
|
+
openWorkspaceActionDialogOptions: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<OpenWorkspaceActionDialogPayload>) => void;
|
|
13
|
+
closeWorkspaceActionDialogOptions: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>) => void;
|
|
14
|
+
onSuccessWorkspacePresetAction: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<OnSuccesWorkspacePresetActionPayload>) => void;
|
|
15
|
+
toggleWorkspaceDialog: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<ToggleListDialogPayload>) => void;
|
|
16
|
+
toggleSelectFilterChip: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
17
|
+
setSelectAllFilterChip: (draft: import("immer/dist/internal").WritableDraft<WorkspaceListState>) => void;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SagaIterator } from 'redux-saga';
|
|
2
|
+
import { workspaceListActions } from './reducer';
|
|
3
|
+
export declare function fetchWorkspaceListSaga(): SagaIterator;
|
|
4
|
+
export declare function onSuccessWorkspacePresetsActionSaga({ payload, }: ReturnType<typeof workspaceListActions.onSuccessWorkspacePresetAction>): SagaIterator;
|
|
5
|
+
export declare function rootSaga(): SagaIterator;
|
|
6
|
+
export default rootSaga;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppStore } from '../store';
|
|
2
|
+
import { WorkspaceListFilter, WorkspaceActionDialogType, WorkspaceListState, WorkspaceListError } from './types';
|
|
3
|
+
export declare const getWorkspaceListStore: (store: AppStore) => WorkspaceListState;
|
|
4
|
+
export declare const getIsWorkspaceListFetching: (store: AppStore) => boolean;
|
|
5
|
+
export declare const getWorkspaceListError: (store: AppStore) => WorkspaceListError;
|
|
6
|
+
export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
|
|
7
|
+
export declare const getWorkspaceActionDialogDetails: (store: AppStore) => WorkspaceActionDialogType | boolean;
|
|
8
|
+
export declare const getIsWorkspaceListDialogOpen: (store: AppStore) => boolean;
|
|
9
|
+
export declare const getWorkspaceListFilters: (store: AppStore) => WorkspaceListFilter[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
import { WorkspacePresetListItem, WorkspacePresetAction, PresetScope, WorkspacePresetFromBE } from '../workspace/types';
|
|
3
|
+
export declare enum WorkspaceListErrorType {
|
|
4
|
+
GENERIC = "GENERIC"
|
|
5
|
+
}
|
|
6
|
+
export declare type WorkspaceListError = {
|
|
7
|
+
type: WorkspaceListErrorType;
|
|
8
|
+
message: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
export interface WorkspaceListFilter {
|
|
11
|
+
label: string;
|
|
12
|
+
id: string;
|
|
13
|
+
type: 'scope' | 'keyword';
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare type WorkspaceListEntityState = EntityState<WorkspacePresetListItem>;
|
|
18
|
+
export declare type WorkspacePresetFormValues = {
|
|
19
|
+
title?: string;
|
|
20
|
+
abstract?: string;
|
|
21
|
+
scope?: PresetScope;
|
|
22
|
+
} | WorkspacePresetFromBE;
|
|
23
|
+
export interface WorkspaceActionDialogType {
|
|
24
|
+
action: WorkspacePresetAction;
|
|
25
|
+
presetId: string;
|
|
26
|
+
formValues: WorkspacePresetFormValues;
|
|
27
|
+
}
|
|
28
|
+
export interface WorkspaceListState extends WorkspaceListEntityState {
|
|
29
|
+
isFetching: boolean;
|
|
30
|
+
error: WorkspaceListError;
|
|
31
|
+
isWorkspaceListDialogOpen: boolean;
|
|
32
|
+
workspaceActionDialog?: WorkspaceActionDialogType;
|
|
33
|
+
workspaceListFilters?: WorkspaceListFilter[];
|
|
34
|
+
}
|
|
35
|
+
export interface FetchWorkspaceListAction {
|
|
36
|
+
workspaceListFilters: WorkspaceListFilter[];
|
|
37
|
+
}
|
|
38
|
+
export interface FetchedWorkspaceList {
|
|
39
|
+
workspaceList: WorkspacePresetListItem[];
|
|
40
|
+
}
|
|
41
|
+
export interface ErrorWorkspaceList {
|
|
42
|
+
error: WorkspaceListError;
|
|
43
|
+
}
|
|
44
|
+
export interface ToggleListDialogPayload {
|
|
45
|
+
isWorkspaceListDialogOpen: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ToggleSelectFilterChip {
|
|
48
|
+
id: string;
|
|
49
|
+
isSelected: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface OpenWorkspaceActionDialogPayload {
|
|
52
|
+
action: WorkspacePresetAction;
|
|
53
|
+
presetId: string;
|
|
54
|
+
formValues: WorkspacePresetFormValues;
|
|
55
|
+
}
|
|
56
|
+
export interface OnSuccesWorkspacePresetActionPayload {
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
action: WorkspacePresetAction;
|
|
59
|
+
title: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface StoryWrapperProps {
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
isSnapshot?: boolean;
|
|
6
|
+
createApi?: () => void;
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const StoryWrapper: ({ theme, isSnapshot, createApi, workspaceId, }: StoryWrapperProps) => React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentsLookUpPayload as CoreComponentsLookUpPayload } from '@opengeoweb/core';
|
|
3
|
+
import { ComponentsLookUpPayload as TimeseriesComponentsLookUpPayload } from '@opengeoweb/timeseries';
|
|
4
|
+
import { ComponentsLookUpPayload as TafComponentsLookUpPayload } from '@opengeoweb/taf';
|
|
5
|
+
import { SigmetComponentsLookUpPayload, AirmetComponentsLookUpPayload } from '@opengeoweb/sigmet-airmet';
|
|
6
|
+
/**
|
|
7
|
+
* The lookup table is for registering your own components with the workspace.
|
|
8
|
+
* @param payload
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare const componentsLookUp: (payload: CoreComponentsLookUpPayload | TimeseriesComponentsLookUpPayload | TafComponentsLookUpPayload | SigmetComponentsLookUpPayload | AirmetComponentsLookUpPayload) => React.ReactElement;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Map: () => React.ReactElement;
|
|
7
|
+
export declare const HarmonieTempAndPrecipPreset: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const ModelRunInterval: {
|
|
12
|
+
(): React.ReactElement;
|
|
13
|
+
storyName: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const MultiMap: {
|
|
16
|
+
(): React.ReactElement;
|
|
17
|
+
storyName: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const TafModule: {
|
|
20
|
+
(): React.ReactElement;
|
|
21
|
+
storyName: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const SigmetModule: {
|
|
24
|
+
(): React.ReactElement;
|
|
25
|
+
storyName: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const AirmetModule: {
|
|
28
|
+
(): React.ReactElement;
|
|
29
|
+
storyName: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const ActionsExample: {
|
|
32
|
+
(): React.ReactElement;
|
|
33
|
+
storyName: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const ErrorExample: {
|
|
36
|
+
(): React.ReactElement;
|
|
37
|
+
storyName: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const MapWithTimeslider: {
|
|
40
|
+
(): React.ReactElement;
|
|
41
|
+
storyName: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|