@opengeoweb/workspace 10.2.1-spike-ol.3 → 11.1.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 +1878 -1914
- package/package.json +28 -45
- package/src/lib/components/ViewPresetMenu/ViewPresetMenu.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +2 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +1 -1
- package/src/lib/store/viewPresets/reducer.d.ts +2 -5
- package/src/lib/store/viewPresets/selectors.d.ts +2 -1
- package/src/lib/store/viewPresets/types.d.ts +8 -7
- package/src/lib/store/viewPresets/utils.d.ts +1 -3
- package/src/lib/store/viewPresetsList/selectors.d.ts +1 -1
- package/src/lib/store/viewPresetsList/types.d.ts +1 -1
- package/src/lib/store/workspace/selectors.d.ts +3 -3
- package/src/lib/store/workspace/types.d.ts +3 -2
- package/src/lib/store/workspaceList/reducer.d.ts +1 -0
- package/src/lib/store/workspaceList/selectors.d.ts +3 -2
- package/src/lib/store/workspaceList/types.d.ts +2 -1
- package/src/lib/store/workspaceList/utils.d.ts +3 -1
- package/src/lib/utils/fakeApi.d.ts +3 -3
- package/src/lib/components/ResizeMenu/ResizeMenu.d.ts +0 -6
- package/src/lib/components/ResizeMenu/ResizeMenu.spec.d.ts +0 -1
- package/src/lib/components/ResizeMenu/index.d.ts +0 -1
- package/src/lib/store/viewPresets/listener.integration.spec.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,54 +8,37 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"@
|
|
11
|
+
"react-redux": "^8.1.3",
|
|
12
|
+
"@opengeoweb/shared": "*",
|
|
13
|
+
"@opengeoweb/store": "*",
|
|
14
|
+
"@opengeoweb/api": "*",
|
|
15
|
+
"react-hook-form": "^7.50.1",
|
|
16
|
+
"@opengeoweb/theme": "*",
|
|
17
17
|
"@reduxjs/toolkit": "^1.9.7",
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"@storybook/react": "8.4.2",
|
|
22
|
-
"@tanstack/query-core": "5.62.7",
|
|
23
|
-
"@tanstack/react-query": "^5.62.7",
|
|
24
|
-
"@testing-library/react": "16.0.1",
|
|
25
|
-
"@testing-library/user-event": "14.5.2",
|
|
26
|
-
"@turf/turf": "7.2.0",
|
|
18
|
+
"@opengeoweb/snackbar": "*",
|
|
19
|
+
"react-window": "^1.8.10",
|
|
20
|
+
"lodash": "^4.17.21",
|
|
27
21
|
"axios": "^1.7.7",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
22
|
+
"react-virtualized-auto-sizer": "^1.0.21",
|
|
23
|
+
"react-mosaic-component": "^6.1.0",
|
|
24
|
+
"@opengeoweb/form-fields": "*",
|
|
25
|
+
"@opengeoweb/timeseries": "*",
|
|
26
|
+
"@opengeoweb/authentication": "*",
|
|
27
|
+
"@opengeoweb/core": "*",
|
|
28
|
+
"@opengeoweb/taf": "*",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "*",
|
|
30
|
+
"@opengeoweb/warnings": "*",
|
|
31
|
+
"@opengeoweb/spaceweather": "*",
|
|
34
32
|
"i18next": "^23.11.5",
|
|
35
|
-
"immer": "10.1.1",
|
|
36
|
-
"jest-canvas-mock": "2.5.2",
|
|
37
|
-
"jest-date-mock": "1.0.10",
|
|
38
|
-
"lodash": "^4.17.21",
|
|
39
|
-
"msw": "1.3.3",
|
|
40
|
-
"msw-storybook-addon": "1.10.0",
|
|
41
|
-
"ol": "10.4.0",
|
|
42
|
-
"proj4": "2.15.0",
|
|
43
|
-
"re-resizable": "6.10.3",
|
|
44
|
-
"react": "18.3.1",
|
|
45
|
-
"react-dom": "18.3.1",
|
|
46
|
-
"react-draggable": "4.4.6",
|
|
47
|
-
"react-hook-form": "^7.50.1",
|
|
48
33
|
"react-i18next": "^15.1.1",
|
|
49
|
-
"
|
|
50
|
-
"react
|
|
51
|
-
"react-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"react
|
|
55
|
-
"react
|
|
56
|
-
"
|
|
57
|
-
"uuid": "10.0.0",
|
|
58
|
-
"whatwg-fetch": "3.6.20"
|
|
34
|
+
"@mui/material": "^6.1.1",
|
|
35
|
+
"@opengeoweb/webmap-react": "*",
|
|
36
|
+
"@tanstack/react-query": "^5.62.7"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": "18",
|
|
40
|
+
"@emotion/react": "*",
|
|
41
|
+
"@emotion/styled": "*"
|
|
59
42
|
},
|
|
60
43
|
"module": "./index.esm.js",
|
|
61
44
|
"type": "module",
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const DIALOG_TITLE = "View presets menu";
|
|
3
3
|
export interface ViewPresetMenuProps {
|
|
4
4
|
panelId: string;
|
|
5
|
-
hideBackdrop?: boolean;
|
|
6
5
|
closeMenu?: () => void;
|
|
6
|
+
isOpen?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const ViewPresetMenu: React.FC<ViewPresetMenuProps>;
|
|
@@ -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 {
|
|
@@ -1,8 +1,7 @@
|
|
|
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;
|
|
@@ -10,9 +9,6 @@ export declare const supportedMapActionOrigins: SupportedMapActionOrigins[];
|
|
|
10
9
|
export type SupportedTimeSeriesActionOrigins = TimeSeriesTypes.TimeSeriesActionOrigin;
|
|
11
10
|
export declare const supportedTimeSeriesActionOrigins: SupportedTimeSeriesActionOrigins[];
|
|
12
11
|
export declare const viewPresetsReducer: import("redux").Reducer<ViewPresetState>, viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
13
|
-
fetchInitialViewPresets: (draft: Draft<ViewPresetState>, _action: PayloadAction<FetchViewPresetsList>) => void;
|
|
14
|
-
fetchedInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedInitialViewPresetsPayload>) => void;
|
|
15
|
-
errorInitialViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<ErrorInitialViewPresetsPayload>) => void;
|
|
16
12
|
fetchViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchViewPresetsPayload>) => void;
|
|
17
13
|
fetchedViewPresets: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedViewPresetsPayload>) => void;
|
|
18
14
|
fetchedViewPreset: (draft: Draft<ViewPresetState>, action: PayloadAction<FetchedViewPresetPayload>) => void;
|
|
@@ -30,5 +26,6 @@ export declare const viewPresetsReducer: import("redux").Reducer<ViewPresetState
|
|
|
30
26
|
toggleViewPresetListDialog: (draft: Draft<ViewPresetState>, action: PayloadAction<ToggleViewPresetListDialogPayload>) => void;
|
|
31
27
|
toggleSelectFilterChip: (draft: Draft<ViewPresetState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
32
28
|
setSelectAllFilterChip: (draft: Draft<ViewPresetState>, action: PayloadAction<SetSelectAllFilterChip>) => void;
|
|
29
|
+
setFilterChips: (draft: Draft<ViewPresetState>, action: PayloadAction<SetFilterChipsPayload>) => void;
|
|
33
30
|
searchFilter: (draft: Draft<ViewPresetState>, action: PayloadAction<SearchWorkspaceFilter>) => void;
|
|
34
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,7 +2,8 @@ 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 {
|
|
@@ -72,12 +73,6 @@ export declare enum PresetAction {
|
|
|
72
73
|
interface ViewPresetAction {
|
|
73
74
|
panelId: string;
|
|
74
75
|
}
|
|
75
|
-
export interface FetchedInitialViewPresetsPayload {
|
|
76
|
-
viewPresets: ViewPresetListItem[];
|
|
77
|
-
}
|
|
78
|
-
export interface ErrorInitialViewPresetsPayload {
|
|
79
|
-
error: ViewPresetError;
|
|
80
|
-
}
|
|
81
76
|
export interface FetchViewPresetsPayload extends ViewPresetAction {
|
|
82
77
|
filterParams: FetchViewPresetsListParams;
|
|
83
78
|
}
|
|
@@ -131,6 +126,12 @@ export interface ToggleSelectFilterChip extends ViewPresetAction {
|
|
|
131
126
|
id: string;
|
|
132
127
|
isSelected: boolean;
|
|
133
128
|
}
|
|
129
|
+
export interface SetFilterChipsPayload extends ViewPresetAction {
|
|
130
|
+
filters: {
|
|
131
|
+
id: string;
|
|
132
|
+
isSelected: boolean;
|
|
133
|
+
}[];
|
|
134
|
+
}
|
|
134
135
|
export type SetSelectAllFilterChip = ViewPresetAction;
|
|
135
136
|
export interface SearchWorkspaceFilter extends ViewPresetAction {
|
|
136
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -140,7 +140,7 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
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;
|
|
@@ -157,7 +157,7 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
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>;
|
|
@@ -74,7 +75,8 @@ export declare enum WorkspacePresetAction {
|
|
|
74
75
|
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET",
|
|
75
76
|
SAVE_SYSTEM_PRESET_AS = "SAVE_SYSTEM_PRESET_AS",
|
|
76
77
|
RESET = "RESET",
|
|
77
|
-
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET"
|
|
78
|
+
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET",
|
|
79
|
+
SHARE = "SHARE"
|
|
78
80
|
}
|
|
79
81
|
export interface WorkspaceAddViewPayload {
|
|
80
82
|
id: string;
|
|
@@ -115,7 +117,6 @@ export interface WorkspaceComponentLookupPayload {
|
|
|
115
117
|
connectedMap?: string;
|
|
116
118
|
}
|
|
117
119
|
export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
118
|
-
export type PresetScope = 'user' | 'system';
|
|
119
120
|
export interface ViewPresetListItem {
|
|
120
121
|
id: string;
|
|
121
122
|
title: string;
|
|
@@ -19,5 +19,6 @@ export declare const workspaceListReducer: import("redux").Reducer<WorkspaceList
|
|
|
19
19
|
toggleWorkspaceDialog: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleListDialogPayload>) => void;
|
|
20
20
|
toggleSelectFilterChip: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip>) => void;
|
|
21
21
|
setSelectAllFilterChip: (draft: Draft<WorkspaceListState>) => void;
|
|
22
|
+
setFilterChips: (draft: Draft<WorkspaceListState>, action: PayloadAction<ToggleSelectFilterChip[]>) => void;
|
|
22
23
|
searchFilter: (draft: Draft<WorkspaceListState>, action: PayloadAction<SearchWorkspaceFilter>) => void;
|
|
23
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"
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ResizeMenu';
|