@opengeoweb/workspace 6.0.3 → 6.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 +1769 -817
- package/package.json +13 -11
- package/src/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.stories.d.ts +8 -0
- package/src/lib/components/ViewPresetMenu/{ViewPresetMenuListConnect.stories.d.ts → ViewPresetMenu.stories.d.ts} +2 -2
- package/src/lib/components/WorkspaceFilter/WorkspaceFilter.d.ts +3 -2
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +0 -2
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +0 -14
- package/src/lib/components/WorkspaceMenu/utils.d.ts +5 -0
- package/src/lib/components/WorkspaceMenu/utils.spec.d.ts +1 -0
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +1 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +3 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +1 -0
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.integration.spec.d.ts +1 -0
- package/src/lib/store/viewPresets/types.d.ts +1 -1
- package/src/lib/store/viewPresets/utils.d.ts +1 -0
- package/src/lib/store/workspace/selectors.d.ts +3 -15
- package/src/lib/store/workspaceList/types.d.ts +2 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.stories.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
"@emotion/react": "11.11.1",
|
|
16
16
|
"@mui/material": "5.12.0",
|
|
17
17
|
"@mui/system": "5.14.5",
|
|
18
|
-
"@opengeoweb/api": "6.0
|
|
19
|
-
"@opengeoweb/authentication": "6.0
|
|
20
|
-
"@opengeoweb/core": "6.0
|
|
21
|
-
"@opengeoweb/form-fields": "6.0
|
|
22
|
-
"@opengeoweb/shared": "6.0
|
|
23
|
-
"@opengeoweb/sigmet-airmet": "6.0
|
|
24
|
-
"@opengeoweb/store": "6.0
|
|
25
|
-
"@opengeoweb/taf": "6.0
|
|
26
|
-
"@opengeoweb/theme": "6.0
|
|
27
|
-
"@opengeoweb/timeseries": "6.0
|
|
18
|
+
"@opengeoweb/api": "6.1.0",
|
|
19
|
+
"@opengeoweb/authentication": "6.1.0",
|
|
20
|
+
"@opengeoweb/core": "6.1.0",
|
|
21
|
+
"@opengeoweb/form-fields": "6.1.0",
|
|
22
|
+
"@opengeoweb/shared": "6.1.0",
|
|
23
|
+
"@opengeoweb/sigmet-airmet": "6.1.0",
|
|
24
|
+
"@opengeoweb/store": "6.1.0",
|
|
25
|
+
"@opengeoweb/taf": "6.1.0",
|
|
26
|
+
"@opengeoweb/theme": "6.1.0",
|
|
27
|
+
"@opengeoweb/timeseries": "6.1.0",
|
|
28
|
+
"@opengeoweb/webmap": "6.1.0",
|
|
28
29
|
"@redux-eggs/core": "2.2.0",
|
|
29
30
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
30
31
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"react-hook-form": "7.45.4",
|
|
38
39
|
"react-mosaic-component": "5.3.0",
|
|
39
40
|
"react-redux": "8.1.2",
|
|
41
|
+
"react-window": "1.8.9",
|
|
40
42
|
"redux-saga": "1.2.3"
|
|
41
43
|
}
|
|
42
44
|
}
|
|
@@ -19,5 +19,13 @@ export declare const DeleteDemoDarkTheme: {
|
|
|
19
19
|
(): React.ReactElement;
|
|
20
20
|
storyName: string;
|
|
21
21
|
};
|
|
22
|
+
export declare const EditDemoLightTheme: {
|
|
23
|
+
(): React.ReactElement;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const EditDemoDarkTheme: {
|
|
27
|
+
(): React.ReactElement;
|
|
28
|
+
storyName: string;
|
|
29
|
+
};
|
|
22
30
|
export declare const SaveAsWithError: () => React.ReactElement;
|
|
23
31
|
export declare const DeleteWithError: () => React.ReactElement;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ViewPresetMenuLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
parameters: {
|
|
9
9
|
zeplinLink: {
|
|
@@ -13,7 +13,7 @@ export declare const ViewPresetMenuListConnectLight: {
|
|
|
13
13
|
};
|
|
14
14
|
storyName: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const ViewPresetMenuDark: {
|
|
17
17
|
(): React.ReactElement;
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { WorkspaceListFilter } from '../../store/workspaceList/types';
|
|
3
|
-
|
|
4
|
+
export declare const DEFAULT_FILTER_HEIGHT = 85;
|
|
5
|
+
interface WorkspaceFilterProps extends BoxProps {
|
|
4
6
|
filters: WorkspaceListFilter[];
|
|
5
7
|
onClickFilterChip?: (id: string, selected: boolean) => void;
|
|
6
8
|
onSearch?: (value: string) => void;
|
|
7
9
|
isAllSelected?: boolean;
|
|
8
10
|
searchQuery?: string;
|
|
9
|
-
showSearch?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const WorkspaceFilter: React.FC<WorkspaceFilterProps>;
|
|
12
13
|
export default WorkspaceFilter;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WorkspaceListFilter } from '../../store/workspaceList/types';
|
|
3
2
|
export interface WorkspaceMenuProps {
|
|
4
3
|
isOpen: boolean;
|
|
5
4
|
hideBackdrop?: boolean;
|
|
6
5
|
closeMenu?: () => void;
|
|
7
|
-
filter?: WorkspaceListFilter[];
|
|
8
6
|
}
|
|
9
7
|
export declare const WorkspaceMenu: React.FC<WorkspaceMenuProps>;
|
|
@@ -3,20 +3,6 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const WorkspaceMenuLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
storyName: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const WorkspaceMenuDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
storyName: string;
|
|
19
|
-
};
|
|
20
6
|
export declare const WorkspaceMenuSearchLight: {
|
|
21
7
|
(): React.ReactElement;
|
|
22
8
|
storyName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,7 @@ export declare const DIALOG_TITLE_DELETE = "Delete workspace";
|
|
|
7
7
|
export declare const DIALOG_TITLE_DUPLICATE = "Duplicate";
|
|
8
8
|
export declare const DIALOG_BUTTON_SAVE = "Save";
|
|
9
9
|
export declare const DIALOG_BUTTON_DELETE = "Delete";
|
|
10
|
+
export declare const DIALOG_BUTTON_EDIT = "Edit (name and abstract)";
|
|
10
11
|
export declare const getDialogTitle: (action: WorkspacePresetAction) => string;
|
|
11
12
|
export declare const getConfirmLabel: (action: WorkspacePresetAction) => string;
|
|
12
13
|
export interface WorkspacePresetsFormDialogProps {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
2
3
|
import { WorkspacePresetListItem, WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
4
|
export declare const emptyWorkspaceListItem: WorkspacePresetListItem;
|
|
4
|
-
export interface WorkspaceSelectListProps {
|
|
5
|
+
export interface WorkspaceSelectListProps extends BoxProps {
|
|
5
6
|
workspacePresets: WorkspacePresetListItem[];
|
|
6
7
|
currentSelectedId: string;
|
|
7
8
|
onClickPreset: (id: string) => void;
|
|
@@ -12,5 +13,6 @@ export interface WorkspaceSelectListProps {
|
|
|
12
13
|
newPreset?: WorkspacePresetListItem;
|
|
13
14
|
testIdPrefix?: string;
|
|
14
15
|
}
|
|
16
|
+
export declare const DEFAULT_DIALOG_HEIGHT = 900;
|
|
15
17
|
declare const WorkspaceSelectList: React.FC<WorkspaceSelectListProps>;
|
|
16
18
|
export default WorkspaceSelectList;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WorkspacePresetListItem, WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
|
+
export declare const WORKSPACE_SELECT_LIST_ROW_HEIGHT = 46;
|
|
3
4
|
export declare const getPresetIcon: (preset: WorkspacePresetListItem) => React.ReactElement;
|
|
4
5
|
interface WorkspaceSelectListRowProps {
|
|
5
6
|
workspacePreset: WorkspacePresetListItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { FetchViewPresetsListParams } from '../viewPresetsList/types';
|
|
|
4
4
|
export declare const MAPPRESET_ACTIVE_TITLE = "New map preset";
|
|
5
5
|
export declare const MAPPRESET_DIALOG_TITLE_SAVE_AS = "Save map preset as";
|
|
6
6
|
export declare const MAPPRESET_DIALOG_TITLE_DELETE = "Delete map preset";
|
|
7
|
+
export declare const MAPPRESET_DIALOG_TITLE_EDIT = "Edit map preset";
|
|
7
8
|
export declare const getSnackbarMessage: (action: PresetAction, title: string) => string;
|
|
8
9
|
export declare const getPresetsApi: () => PresetsApi;
|
|
9
10
|
export declare const emptyMapViewPreset: {
|
|
@@ -142,7 +142,9 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
|
|
|
142
142
|
}> & {
|
|
143
143
|
clearCache: () => void;
|
|
144
144
|
};
|
|
145
|
-
export declare const getViewPresetToSendToBackend: ((state:
|
|
145
|
+
export declare const getViewPresetToSendToBackend: ((state: AppStore & import("@opengeoweb/store").CoreAppStore, viewId: string | (string & {
|
|
146
|
+
sourceId: string;
|
|
147
|
+
})) => {
|
|
146
148
|
id: string | undefined;
|
|
147
149
|
scope: import("./types").PresetScope;
|
|
148
150
|
title: string;
|
|
@@ -150,13 +152,6 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: string)
|
|
|
150
152
|
mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
|
|
151
153
|
syncGroupsIds: string[];
|
|
152
154
|
};
|
|
153
|
-
/**
|
|
154
|
-
* Gets view from workspace state
|
|
155
|
-
*
|
|
156
|
-
* @param {object} store store: object - Store object
|
|
157
|
-
* @param {string} viewId viewId: string - view id
|
|
158
|
-
* @returns {object} returnType: WorkspaceViewType
|
|
159
|
-
*/
|
|
160
155
|
componentType: "Map";
|
|
161
156
|
keywords: string;
|
|
162
157
|
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined, args_1: import("dist/libs/store/src/store/mapStore/types").MapPreset, args_2: string[]) => {
|
|
@@ -167,13 +162,6 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: string)
|
|
|
167
162
|
mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
|
|
168
163
|
syncGroupsIds: string[];
|
|
169
164
|
};
|
|
170
|
-
/**
|
|
171
|
-
* Gets view from workspace state
|
|
172
|
-
*
|
|
173
|
-
* @param {object} store store: object - Store object
|
|
174
|
-
* @param {string} viewId viewId: string - view id
|
|
175
|
-
* @returns {object} returnType: WorkspaceViewType
|
|
176
|
-
*/
|
|
177
165
|
componentType: "Map";
|
|
178
166
|
keywords: string;
|
|
179
167
|
}, {
|
|
@@ -61,13 +61,14 @@ export type OpenWorkspaceActionDialogPayload = WorkspaceActionDialogType;
|
|
|
61
61
|
export interface SubmitFormWorkspaceActionDialogPayload {
|
|
62
62
|
presetAction: WorkspacePresetAction;
|
|
63
63
|
presetId: string;
|
|
64
|
-
data: WorkspacePreset;
|
|
64
|
+
data: WorkspacePreset | WorkspacePresetFromBE;
|
|
65
65
|
}
|
|
66
66
|
export interface OnSuccesWorkspacePresetActionPayload {
|
|
67
67
|
workspaceId: string;
|
|
68
68
|
action: WorkspacePresetAction;
|
|
69
69
|
title: string;
|
|
70
70
|
abstract?: string;
|
|
71
|
+
currentActiveWorkspaceId?: string;
|
|
71
72
|
}
|
|
72
73
|
export interface OnErrorWorkspacePresetActionPayload {
|
|
73
74
|
error: WorkspaceListError;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const WorkspacePresetsSelectListLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
storyName: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const WorkspacePresetsSelectListDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
storyName: string;
|
|
19
|
-
};
|