@opengeoweb/workspace 10.1.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1916 -1947
- package/package.json +1 -2
- package/src/index.d.ts +5 -5
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +1 -0
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +2 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +1 -1
- package/src/lib/store/index.d.ts +1 -1
- package/src/lib/store/store.d.ts +19 -1
- package/src/lib/store/viewPresets/index.d.ts +1 -1
- package/src/lib/store/viewPresets/reducer.d.ts +3 -7
- package/src/lib/store/viewPresets/selectors.d.ts +2 -1
- package/src/lib/store/viewPresets/types.d.ts +11 -7
- package/src/lib/store/viewPresets/utils.d.ts +1 -3
- package/src/lib/store/viewPresetsList/index.d.ts +1 -1
- package/src/lib/store/viewPresetsList/reducer.d.ts +1 -2
- package/src/lib/store/viewPresetsList/selectors.d.ts +1 -1
- package/src/lib/store/viewPresetsList/types.d.ts +2 -1
- package/src/lib/store/workspace/index.d.ts +1 -0
- package/src/lib/store/workspace/reducer.d.ts +2 -1
- package/src/lib/store/workspace/selectors.d.ts +6 -6
- package/src/lib/store/workspace/types.d.ts +4 -2
- package/src/lib/store/workspaceList/index.d.ts +1 -0
- package/src/lib/store/workspaceList/reducer.d.ts +2 -2
- package/src/lib/store/workspaceList/selectors.d.ts +3 -2
- package/src/lib/store/workspaceList/types.d.ts +3 -1
- package/src/lib/store/workspaceList/utils.d.ts +3 -1
- package/src/lib/utils/fakeApi.d.ts +3 -3
- package/src/lib/store/config.d.ts +0 -9
- package/src/lib/store/viewPresets/listener.integration.spec.d.ts +0 -1
- package/src/lib/utils/testUtils.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"@opengeoweb/snackbar": "*",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
|
-
"immer": "^10.0.3",
|
|
22
21
|
"axios": "^1.7.7",
|
|
23
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
24
23
|
"react-mosaic-component": "^6.1.0",
|
package/src/index.d.ts
CHANGED
|
@@ -3,12 +3,11 @@ import { workspaceListener } from './lib/store/workspace/listener';
|
|
|
3
3
|
export { workspaceListener };
|
|
4
4
|
export { workspaceListListener } from './lib/store/workspaceList/listener';
|
|
5
5
|
export { viewPresetsListener } from './lib/store/viewPresets/listener';
|
|
6
|
-
export { workspaceActions
|
|
7
|
-
export { workspaceListActions,
|
|
8
|
-
export { viewPresetActions,
|
|
9
|
-
export {
|
|
6
|
+
export { workspaceActions, workspaceReducer, } from './lib/store/workspace/reducer';
|
|
7
|
+
export { workspaceListActions, workspaceListReducer, } from './lib/store/workspaceList/reducer';
|
|
8
|
+
export { viewPresetActions, viewPresetsReducer } from './lib/store/viewPresets';
|
|
9
|
+
export { viewPresetsListReducer } from './lib/store/viewPresetsList';
|
|
10
10
|
export * as selectors from './lib/store/workspace/selectors';
|
|
11
|
-
export { default as workspaceModuleConfig } from './lib/store/config';
|
|
12
11
|
export * from './lib/store/workspace/types';
|
|
13
12
|
export * from './lib/store/viewPresets/types';
|
|
14
13
|
export * from './lib/components/Providers';
|
|
@@ -21,3 +20,4 @@ export { workspaceTranslations };
|
|
|
21
20
|
export { routes as workspaceRoutes, getWorkspaceRouteUrl, } from './lib/utils/routes';
|
|
22
21
|
export { getEmptyMapWorkspace, createCustomEmptyMapWorkspace, } from './lib/store/workspaceList/utils';
|
|
23
22
|
export type { WorkspaceModuleStore } from './lib/store/types';
|
|
23
|
+
export { workspaceReducersMap, workspaceMiddlewares } from './lib/store';
|
|
@@ -7,7 +7,7 @@ export interface ViewPresetsFormDialogProps {
|
|
|
7
7
|
viewPresetId: string;
|
|
8
8
|
viewComponentType: WorkspaceSupportedComponentTypes;
|
|
9
9
|
formValues: ViewPresetFormValues;
|
|
10
|
-
onSuccess: (action: PresetAction, presetId: string, title: string) => void;
|
|
10
|
+
onSuccess: (action: PresetAction, presetId: string, title: string, abstract: string) => void;
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
onReset: (viewPresetId: string) => void;
|
|
13
13
|
}
|
|
@@ -7,3 +7,4 @@ export declare const ScreenConfigRadarTemp: () => React.ReactElement;
|
|
|
7
7
|
export declare const ScreenConfigHarmoniePresetWithoutMultiMapLayerManager: () => React.ReactElement;
|
|
8
8
|
export declare const ScreenConfigHarmoniePresetWithMultiMapLayerManager: () => React.ReactElement;
|
|
9
9
|
export declare const UiDialogsDemo: () => React.ReactElement;
|
|
10
|
+
export declare const ScreenConfigWithNonExistingLayer: () => React.ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
4
|
import { WorkspaceListError, WorkspacePresetFormValues } from '../../store/workspaceList/types';
|
|
4
5
|
export declare const ERROR_TITLE_BE = "Preset title already in use, please choose a different title";
|
|
5
6
|
export declare const emptyWorkspacePreset: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspacePresetAction, WorkspacePresetListItem } from '../../store/workspace/types';
|
|
3
3
|
export declare const WORKSPACE_SELECT_LIST_ROW_HEIGHT = 46;
|
|
4
4
|
export declare const getPresetIcon: (preset: WorkspacePresetListItem) => React.ReactElement;
|
|
5
5
|
interface WorkspaceSelectListRowProps {
|
package/src/lib/store/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './store';
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
+
import { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
2
|
+
import { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
|
|
1
3
|
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
|
-
|
|
4
|
+
import { WorkspaceModuleStore } from './types';
|
|
5
|
+
export declare const workspaceReducersMap: {
|
|
6
|
+
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").AnyAction>;
|
|
7
|
+
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").AnyAction>;
|
|
8
|
+
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").AnyAction>;
|
|
9
|
+
syncGroups: import("redux").Reducer<import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState, import("redux").AnyAction>;
|
|
10
|
+
loadingIndicator: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<import("dist/libs/store/src/store/generic/loadingIndicator/types").LoadingIndicatorType>, import("redux").AnyAction>;
|
|
11
|
+
ui: import("redux").Reducer<import("dist/libs/store/src/store/ui/types").UIStoreType, import("redux").AnyAction>;
|
|
12
|
+
workspace: import("redux").Reducer<import("./workspace/types").WorkspaceState>;
|
|
13
|
+
workspaceList: import("redux").Reducer<import("./workspaceList/types").WorkspaceListState>;
|
|
14
|
+
viewPresetsList: import("redux").Reducer<import("./viewPresetsList/types").ViewPresetListState>;
|
|
15
|
+
viewPresets: import("redux").Reducer<import("./viewPresets/types").ViewPresetState>;
|
|
16
|
+
timeSeries: import("redux").Reducer<import("dist/libs/timeseries/src/lib/store/types").TimeSeriesStoreType, import("redux").AnyAction>;
|
|
17
|
+
snackbar: import("redux").Reducer<import("dist/libs/snackbar/src/lib/store/types").SnackbarState, import("redux").AnyAction>;
|
|
18
|
+
};
|
|
19
|
+
export declare const workspaceMiddlewares: (import("@reduxjs/toolkit").ListenerMiddleware<import("./types").AppStore, import("@reduxjs/toolkit").ThunkDispatch<import("./types").AppStore, unknown, import("redux").AnyAction>, unknown> | import("@reduxjs/toolkit").ListenerMiddleware<SnackbarModuleStore, import("@reduxjs/toolkit").ThunkDispatch<SnackbarModuleStore, unknown, import("redux").AnyAction>, unknown>)[];
|
|
20
|
+
export declare const createMockStore: (mockState?: WebMapStateModuleState | WorkspaceModuleStore | UIModuleState | SynchronizationGroupModuleState | SnackbarModuleStore) => ToolkitStore;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { viewPresetActions,
|
|
1
|
+
export { viewPresetActions, viewPresetsReducer } from './reducer';
|
|
2
2
|
export * as viewPresetSelectors from './selectors';
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { mapEnums, layerTypes } from '@opengeoweb/store';
|
|
2
2
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { TimeSeriesTypes } from '@opengeoweb/timeseries';
|
|
4
|
-
import {
|
|
5
|
-
import { FetchViewPresetsList } from '../viewPresetsList/types';
|
|
4
|
+
import { ErrorViewPresetPayload, FetchedViewPresetPayload, FetchedViewPresetsPayload, FetchViewPresetsPayload, ViewPresetEntity, ViewPresetState, OnSuccesViewPresetActionPayload, RegisterViewPresetPayload, SavedViewPresetPayload, SaveViewPresetPayload, SelectViewPresetPayload, SetActiveViewPresetIdPayload, SetViewPresetHasChangePayload, UnregisterViewPresetPayload, ToggleViewPresetListDialogPayload, OpenViewPresetDialogPayload, ToggleSelectFilterChip, SetSelectAllFilterChip, SearchWorkspaceFilter, SetFilterChipsPayload } from './types';
|
|
6
5
|
export declare const viewPresetsAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetEntity>;
|
|
7
6
|
export declare const initialState: ViewPresetState;
|
|
8
7
|
export type SupportedMapActionOrigins = layerTypes.LayerActionOrigin | mapEnums.MapActionOrigin;
|
|
9
8
|
export declare const supportedMapActionOrigins: SupportedMapActionOrigins[];
|
|
10
9
|
export type SupportedTimeSeriesActionOrigins = TimeSeriesTypes.TimeSeriesActionOrigin;
|
|
11
10
|
export declare const supportedTimeSeriesActionOrigins: SupportedTimeSeriesActionOrigins[];
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
14
|
-
fetchInitialViewPresets: (draft: Draft<ViewPresetState>, _action: PayloadAction<FetchViewPresetsList>) => void;
|
|
15
|
-
fetchedInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedInitialViewPresetsPayload>) => void;
|
|
16
|
-
errorInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<ErrorInitialViewPresetsPayload>) => void;
|
|
11
|
+
export declare const viewPresetsReducer: import("redux").Reducer<ViewPresetState>, viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
17
12
|
fetchViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchViewPresetsPayload>) => void;
|
|
18
13
|
fetchedViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedViewPresetsPayload>) => void;
|
|
19
14
|
fetchedViewPreset: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedViewPresetPayload>) => void;
|
|
@@ -31,5 +26,6 @@ export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerAc
|
|
|
31
26
|
toggleViewPresetListDialog: (draft: Draft<ViewPresetState>, action: PayloadAction<ToggleViewPresetListDialogPayload>) => void;
|
|
32
27
|
toggleSelectFilterChip: (draft: Draft<ViewPresetState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
33
28
|
setSelectAllFilterChip: (draft: Draft<ViewPresetState>, action: PayloadAction<SetSelectAllFilterChip>) => void;
|
|
29
|
+
setFilterChips: (draft: Draft<ViewPresetState>, action: PayloadAction<SetFilterChipsPayload>) => void;
|
|
34
30
|
searchFilter: (draft: Draft<ViewPresetState>, action: PayloadAction<SearchWorkspaceFilter>) => void;
|
|
35
31
|
}, "viewPresets">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
1
2
|
import type { AppStore } from '../types';
|
|
2
|
-
import {
|
|
3
|
+
import { ViewPresetListItem } from '../workspace/types';
|
|
3
4
|
import { ViewPresetEntity, ViewPresetError, ViewPresetsListFilter, ViewPresetState } from './types';
|
|
4
5
|
export declare const getViewPresetsStore: (store: AppStore) => ViewPresetState;
|
|
5
6
|
export declare const getViewPresets: (state: AppStore) => ViewPresetEntity[], getViewPresetById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetEntity | undefined;
|
|
@@ -2,12 +2,14 @@ import { InitialProps, SupportedComponentTypes } from '@opengeoweb/core';
|
|
|
2
2
|
import { SupportedComponentTypes as SupportedTimeSeriesComponentTypes } from '@opengeoweb/timeseries';
|
|
3
3
|
import { EntityState } from '@reduxjs/toolkit';
|
|
4
4
|
import { WarningListComponentType } from '@opengeoweb/warnings';
|
|
5
|
-
import {
|
|
5
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
6
|
+
import { FetchViewPresetsListParams, ViewPresetListItem } from '../viewPresetsList/types';
|
|
6
7
|
import { WorkspaceViewPresetComponentsLookupType } from '../workspace/types';
|
|
7
8
|
export type WorkspaceSupportedComponentTypes = SupportedComponentTypes | SupportedTimeSeriesComponentTypes | WarningListComponentType | WorkspaceViewPresetComponentsLookupType;
|
|
8
9
|
export interface ViewPreset {
|
|
9
10
|
id?: string;
|
|
10
11
|
title: string;
|
|
12
|
+
abstract?: string;
|
|
11
13
|
keywords: string;
|
|
12
14
|
componentType: WorkspaceSupportedComponentTypes;
|
|
13
15
|
initialProps?: InitialProps;
|
|
@@ -46,6 +48,7 @@ export interface ViewPresetEntity {
|
|
|
46
48
|
}
|
|
47
49
|
export interface ViewPresetFormValues {
|
|
48
50
|
title?: string;
|
|
51
|
+
abstract?: string;
|
|
49
52
|
initialProps?: InitialProps;
|
|
50
53
|
}
|
|
51
54
|
export interface ViewPresetDialog {
|
|
@@ -70,12 +73,6 @@ export declare enum PresetAction {
|
|
|
70
73
|
interface ViewPresetAction {
|
|
71
74
|
panelId: string;
|
|
72
75
|
}
|
|
73
|
-
export interface FetchedInitialViewPresetsPayload {
|
|
74
|
-
viewPresets: ViewPresetListItem[];
|
|
75
|
-
}
|
|
76
|
-
export interface ErrorInitialViewPresetsPayload {
|
|
77
|
-
error: ViewPresetError;
|
|
78
|
-
}
|
|
79
76
|
export interface FetchViewPresetsPayload extends ViewPresetAction {
|
|
80
77
|
filterParams: FetchViewPresetsListParams;
|
|
81
78
|
}
|
|
@@ -113,6 +110,7 @@ export interface OnSuccesViewPresetActionPayload extends ViewPresetAction {
|
|
|
113
110
|
title: string;
|
|
114
111
|
componentType?: string;
|
|
115
112
|
scope?: PresetScope;
|
|
113
|
+
abstract?: string;
|
|
116
114
|
}
|
|
117
115
|
export interface SelectViewPresetPayload extends ViewPresetAction {
|
|
118
116
|
viewPresetId: string;
|
|
@@ -128,6 +126,12 @@ export interface ToggleSelectFilterChip extends ViewPresetAction {
|
|
|
128
126
|
id: string;
|
|
129
127
|
isSelected: boolean;
|
|
130
128
|
}
|
|
129
|
+
export interface SetFilterChipsPayload extends ViewPresetAction {
|
|
130
|
+
filters: {
|
|
131
|
+
id: string;
|
|
132
|
+
isSelected: boolean;
|
|
133
|
+
}[];
|
|
134
|
+
}
|
|
131
135
|
export type SetSelectAllFilterChip = ViewPresetAction;
|
|
132
136
|
export interface SearchWorkspaceFilter extends ViewPresetAction {
|
|
133
137
|
searchQuery: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { snackbarTypes } from '@opengeoweb/snackbar';
|
|
2
2
|
import { PresetsApi } from '../../utils/api';
|
|
3
|
-
import { PresetAction, ViewPreset,
|
|
4
|
-
import { FetchViewPresetsListParams } from '../viewPresetsList/types';
|
|
3
|
+
import { PresetAction, ViewPreset, WorkspaceSupportedComponentTypes } from './types';
|
|
5
4
|
export declare const getSnackbarMessage: (action: PresetAction, title: string) => snackbarTypes.TranslatableMessage;
|
|
6
5
|
export declare const getPresetsApi: () => PresetsApi;
|
|
7
6
|
export declare const emptyViewPreset: (componentType?: WorkspaceSupportedComponentTypes | undefined) => ViewPreset;
|
|
8
|
-
export declare const constructFilterParams: (filters: ViewPresetsListFilter[], searchQuery: string) => FetchViewPresetsListParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { viewPresetsListActions,
|
|
1
|
+
export { viewPresetsListActions, viewPresetsListReducer } from './reducer';
|
|
2
2
|
export * as viewPresetsListSelectors from './selectors';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
2
2
|
export declare const viewPresetsListAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetListItem>;
|
|
3
3
|
export declare const initialState: ViewPresetListState;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}, "viewPresetsList">;
|
|
4
|
+
export declare const viewPresetsListReducer: import("redux").Reducer<ViewPresetListState>, viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}, "viewPresetsList">;
|
|
@@ -3,7 +3,7 @@ import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
|
3
3
|
import { ViewPresetsListFilter } from '../viewPresets/types';
|
|
4
4
|
export declare const getViewPresetsListStore: (store: AppStore) => ViewPresetListState;
|
|
5
5
|
export declare const getViewPresetsList: (state: AppStore) => ViewPresetListItem[], selectById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem | undefined;
|
|
6
|
-
export declare const getFilteredViewPresetListForView: ((state: AppStore, _panelId: string, scope?: import("
|
|
6
|
+
export declare const getFilteredViewPresetListForView: ((state: AppStore, _panelId: string, scope?: import("dist/libs/shared/src").PresetScope | undefined) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetListItem[], args_1: import("../workspace/types").ViewPresetListItem[], args_2: ViewPresetsListFilter[], args_3: string) => ViewPresetListItem[], {
|
|
7
7
|
clearCache: () => void;
|
|
8
8
|
}> & {
|
|
9
9
|
clearCache: () => void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
1
2
|
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
export type PresetScope = 'user' | 'system';
|
|
3
3
|
export interface ViewPresetListItem {
|
|
4
4
|
id: string;
|
|
5
5
|
title: string;
|
|
6
6
|
date: string;
|
|
7
7
|
scope: PresetScope;
|
|
8
|
+
abstract?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface FetchViewPresetsListParams {
|
|
10
11
|
scope?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { workspaceActions, workspaceReducer } from './reducer';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
1
2
|
import { WorkspaceAddViewPayload, WorkspaceDeleteViewPayload, WorkspaceState, WorkspaceSetPresetPayload, WorkspaceSetPreventCloseViewPayload, WorkspaceUpdateViewPayload, WorkspaceUpdateViewsPayload, WorkspaceErrorWorkspacePayload, WorkspaceFetchedWorkspacePayload, WorkspaceFetchWorkspacePayload, WorkspaceFetchWorkspaceViewPresetPayload, WorkspaceSaveWorkspacePresetPayload, WorkspaceSetNewViewPayload, WorkspaceChangeToEmptyMapWorkspacePayload } from './types';
|
|
2
3
|
export declare const initialState: WorkspaceState;
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const workspaceReducer: Reducer<WorkspaceState>;
|
|
4
5
|
export declare const workspaceActions: {
|
|
5
6
|
addWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithPayload<WorkspaceAddViewPayload, "workspace/addWorkspaceView">;
|
|
6
7
|
setNewWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithPayload<WorkspaceSetNewViewPayload, "workspace/setNewWorkspaceView">;
|
|
@@ -117,7 +117,7 @@ export declare const getViewType: ((state: AppStore) => "" | import("./types").V
|
|
|
117
117
|
* @param {object} store store: object - Store object
|
|
118
118
|
* @returns {string} returnType: string
|
|
119
119
|
*/
|
|
120
|
-
export declare const getSelectedWorkspaceScope: ((state: AppStore) => import("
|
|
120
|
+
export declare const getSelectedWorkspaceScope: ((state: AppStore) => import("dist/libs/shared/src").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("dist/libs/shared/src").PresetScope, {
|
|
121
121
|
clearCache: () => void;
|
|
122
122
|
}> & {
|
|
123
123
|
clearCache: () => void;
|
|
@@ -133,31 +133,31 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
133
133
|
title: string;
|
|
134
134
|
syncGroups: {
|
|
135
135
|
id: string;
|
|
136
|
-
type: import("dist/libs/store/src/store/generic/
|
|
136
|
+
type: import("dist/libs/store/src/store/generic/syncGroups/types").SyncType;
|
|
137
137
|
}[];
|
|
138
138
|
views: {
|
|
139
139
|
mosaicNodeId: string;
|
|
140
140
|
viewPresetId: string;
|
|
141
141
|
}[];
|
|
142
142
|
viewType: import("./types").ViewType | undefined;
|
|
143
|
-
scope: import("
|
|
143
|
+
scope: import("dist/libs/shared/src").PresetScope | undefined;
|
|
144
144
|
abstract: string | undefined;
|
|
145
145
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
146
146
|
isTimeScrollingEnabled: boolean;
|
|
147
147
|
linking: Pick<Record<string, string[]>, string>;
|
|
148
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/
|
|
148
|
+
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: import("../viewPresets/types").ViewPresetState, args_2: import("dist/libs/store/src/store/generic/syncGroups/types").SynchronizationGroupState) => {
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
title: string;
|
|
151
151
|
syncGroups: {
|
|
152
152
|
id: string;
|
|
153
|
-
type: import("dist/libs/store/src/store/generic/
|
|
153
|
+
type: import("dist/libs/store/src/store/generic/syncGroups/types").SyncType;
|
|
154
154
|
}[];
|
|
155
155
|
views: {
|
|
156
156
|
mosaicNodeId: string;
|
|
157
157
|
viewPresetId: string;
|
|
158
158
|
}[];
|
|
159
159
|
viewType: import("./types").ViewType | undefined;
|
|
160
|
-
scope: import("
|
|
160
|
+
scope: import("dist/libs/shared/src").PresetScope | undefined;
|
|
161
161
|
abstract: string | undefined;
|
|
162
162
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
163
163
|
isTimeScrollingEnabled: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
2
3
|
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
3
4
|
import { MosaicNode } from 'react-mosaic-component';
|
|
4
5
|
export type InitialPropsWorkspaceViewType = Record<string, unknown>;
|
|
@@ -6,6 +7,7 @@ export type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading
|
|
|
6
7
|
export interface WorkspaceViewType {
|
|
7
8
|
id?: string;
|
|
8
9
|
title?: string;
|
|
10
|
+
abstract?: string;
|
|
9
11
|
componentType: string | WorkspaceViewPresetComponentsLookupType;
|
|
10
12
|
initialProps?: InitialPropsWorkspaceViewType;
|
|
11
13
|
activeLayerId?: string;
|
|
@@ -73,7 +75,8 @@ export declare enum WorkspacePresetAction {
|
|
|
73
75
|
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET",
|
|
74
76
|
SAVE_SYSTEM_PRESET_AS = "SAVE_SYSTEM_PRESET_AS",
|
|
75
77
|
RESET = "RESET",
|
|
76
|
-
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET"
|
|
78
|
+
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET",
|
|
79
|
+
SHARE = "SHARE"
|
|
77
80
|
}
|
|
78
81
|
export interface WorkspaceAddViewPayload {
|
|
79
82
|
id: string;
|
|
@@ -114,7 +117,6 @@ export interface WorkspaceComponentLookupPayload {
|
|
|
114
117
|
connectedMap?: string;
|
|
115
118
|
}
|
|
116
119
|
export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
117
|
-
export type PresetScope = 'user' | 'system';
|
|
118
120
|
export interface ViewPresetListItem {
|
|
119
121
|
id: string;
|
|
120
122
|
title: string;
|
|
@@ -4,8 +4,7 @@ import { OpenWorkspaceActionDialogPayload, FetchedWorkspaceList, WorkspaceListSt
|
|
|
4
4
|
export declare const workspaceListFilterOptions: WorkspaceListFilter[];
|
|
5
5
|
export declare const workspaceListAdapter: import("@reduxjs/toolkit").EntityAdapter<WorkspacePresetListItem>;
|
|
6
6
|
export declare const initialState: WorkspaceListState;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
export declare const workspaceListReducer: import("redux").Reducer<WorkspaceListState>, workspaceListActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
9
8
|
fetchWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchWorkspaceList>) => void;
|
|
10
9
|
fetchedWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<FetchedWorkspaceList>) => void;
|
|
11
10
|
errorWorkspaceList: (draft: Draft<WorkspaceListState>, action: PayloadAction<ErrorWorkspaceList>) => void;
|
|
@@ -20,5 +19,6 @@ export declare const workspaceListActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
20
19
|
toggleWorkspaceDialog: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleListDialogPayload>) => void;
|
|
21
20
|
toggleSelectFilterChip: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
22
21
|
setSelectAllFilterChip: (draft: Draft<WorkspaceListState>) => void;
|
|
22
|
+
setFilterChips: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip[]>) => void;
|
|
23
23
|
searchFilter: (draft: Draft<WorkspaceListState>, action: PayloadAction<SearchWorkspaceFilter>) => void;
|
|
24
24
|
}, "workspaceList">;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
2
2
|
import { AppStore } from '../types';
|
|
3
|
-
import { PresetScope, WorkspaceState } from '../workspace/types';
|
|
4
3
|
import { ViewPresetState } from '../viewPresets/types';
|
|
4
|
+
import { WorkspaceState } from '../workspace/types';
|
|
5
|
+
import { WorkspaceListFilter, WorkspaceListState } from './types';
|
|
5
6
|
export declare const getWorkspaceListStore: (store: AppStore) => WorkspaceListState;
|
|
6
7
|
export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
|
|
7
8
|
export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { PresetScope } from '@opengeoweb/shared';
|
|
1
2
|
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import { WorkspacePresetListItem, WorkspacePresetAction, PresetScope, WorkspacePresetFromBE, WorkspaceViewsFromBE } from '../workspace/types';
|
|
3
3
|
import { ViewPresetError } from '../viewPresets/types';
|
|
4
|
+
import { WorkspacePresetAction, WorkspacePresetFromBE, WorkspacePresetListItem, WorkspaceViewsFromBE } from '../workspace/types';
|
|
4
5
|
export declare enum WorkspaceListErrorCategory {
|
|
5
6
|
AUTH = "AUTH",// Errors related to authentication and authorization
|
|
6
7
|
GENERIC = "GENERIC"
|
|
@@ -39,6 +40,7 @@ export type WorkspaceDialogView = {
|
|
|
39
40
|
isSelected: boolean;
|
|
40
41
|
error?: ViewPresetError;
|
|
41
42
|
scope: PresetScope;
|
|
43
|
+
abstract?: string;
|
|
42
44
|
} & WorkspaceViewsFromBE;
|
|
43
45
|
export interface WorkspaceFormValues {
|
|
44
46
|
id?: string;
|
|
@@ -3,6 +3,8 @@ import { snackbarTypes } from '@opengeoweb/snackbar';
|
|
|
3
3
|
import { TFunction } from 'i18next';
|
|
4
4
|
import { WorkspacePreset, WorkspacePresetAction, WorkspacePresetListItem } from '../workspace/types';
|
|
5
5
|
import { FetchWorkspaceParams, WorkspaceListFilter } from './types';
|
|
6
|
+
import { FetchViewPresetsListParams } from '../viewPresetsList/types';
|
|
7
|
+
import { ViewPresetsListFilter } from '../viewPresets/types';
|
|
6
8
|
export declare const getSnackbarMessage: (action: WorkspacePresetAction, title: string) => snackbarTypes.TranslatableMessage;
|
|
7
9
|
export declare function getEmptyWorkspaceListItem(): Omit<WorkspacePresetListItem, 'title'>;
|
|
8
10
|
export declare function getEmptyWorkspaceListItem(t: TFunction): WorkspacePresetListItem;
|
|
@@ -11,4 +13,4 @@ export declare function getEmptyMapWorkspace(): Omit<WorkspacePreset, 'title'>;
|
|
|
11
13
|
export declare function getEmptyMapWorkspace(t: TFunction): WorkspacePreset;
|
|
12
14
|
export declare const getEmptyWorkspacePreset: () => Omit<WorkspacePreset, 'title'>;
|
|
13
15
|
export declare const createCustomEmptyMapWorkspace: (emptyWorkspaceTitle: string, emptyMapWorkspaceTitle: string, customMapPreset?: MapPreset) => WorkspacePreset;
|
|
14
|
-
export declare const constructFilterParams: (filters: WorkspaceListFilter[], searchQuery: string) => FetchWorkspaceParams;
|
|
16
|
+
export declare const constructFilterParams: (filters: WorkspaceListFilter[] | ViewPresetsListFilter[], searchQuery: string) => FetchWorkspaceParams | FetchViewPresetsListParams;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PresetsApi } from './api';
|
|
2
|
-
import { WorkspacePresetFromBE, WorkspacePresetListItem, ViewPresetListItem } from '../store/workspace/types';
|
|
3
|
-
import { FetchWorkspaceParams } from '../store/workspaceList/types';
|
|
4
1
|
import { ViewPreset } from '../store/viewPresets/types';
|
|
5
2
|
import { FetchViewPresetsListParams } from '../store/viewPresetsList/types';
|
|
3
|
+
import { ViewPresetListItem, WorkspacePresetFromBE, WorkspacePresetListItem } from '../store/workspace/types';
|
|
4
|
+
import { FetchWorkspaceParams } from '../store/workspaceList/types';
|
|
5
|
+
import { PresetsApi } from './api';
|
|
6
6
|
export declare const ERROR_NOT_FOUND = "Request failed with status code 400";
|
|
7
7
|
export declare const extractWorkspacePresetFromJSON: (workspacePresetId: string) => WorkspacePresetFromBE;
|
|
8
8
|
export declare const extractViewPresetFromJSON: (viewPresetId: string) => ViewPreset;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
import { WorkspaceModuleStore } from './types';
|
|
3
|
-
export declare const workspaceReducersMap: ReducersMapObject;
|
|
4
|
-
export declare const workspaceMiddlewares: ListenerMiddleware<WorkspaceModuleStore>[];
|
|
5
|
-
declare const workspaceModuleConfig: {
|
|
6
|
-
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
-
middlewares: ListenerMiddleware<WorkspaceModuleStore>[];
|
|
8
|
-
};
|
|
9
|
-
export default workspaceModuleConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { uiTypes, WebMapStateModuleState } from '@opengeoweb/store';
|
|
2
|
-
import { Store } from '@reduxjs/toolkit';
|
|
3
|
-
import { WorkspaceModuleStore } from '../store/types';
|
|
4
|
-
export declare const createMockStore: (mockState: WorkspaceModuleStore & uiTypes.UIModuleState & WebMapStateModuleState) => Store;
|