@opengeoweb/workspace 9.10.2 → 9.12.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 +5319 -3564
- package/package.json +9 -10
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +0 -1
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +2 -1
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicator.d.ts +6 -0
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicator.spec.d.ts +1 -0
- package/src/lib/store/viewPresets/selectors.d.ts +54 -14
- package/src/lib/store/workspace/selectors.d.ts +8 -4
- package/src/lib/store/workspaceList/selectors.d.ts +33 -7
- package/src/lib/storyUtils/componentsLookUp.d.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,31 +11,30 @@
|
|
|
11
11
|
"react-redux": "^8.1.3",
|
|
12
12
|
"@opengeoweb/shared": "*",
|
|
13
13
|
"@mui/material": "~5.15.11",
|
|
14
|
-
"@opengeoweb/form-fields": "*",
|
|
15
14
|
"@opengeoweb/store": "*",
|
|
16
15
|
"@opengeoweb/api": "*",
|
|
17
16
|
"react-hook-form": "^7.50.1",
|
|
18
|
-
"@opengeoweb/core": "*",
|
|
19
17
|
"@opengeoweb/theme": "*",
|
|
20
18
|
"@reduxjs/toolkit": "^1.9.7",
|
|
21
|
-
"@opengeoweb/timeseries": "*",
|
|
22
|
-
"@opengeoweb/authentication": "*",
|
|
23
19
|
"@opengeoweb/snackbar": "*",
|
|
24
20
|
"react-window": "^1.8.10",
|
|
25
21
|
"@mui/system": "^5.15.1",
|
|
26
|
-
"redux-saga": "^1.2.3",
|
|
27
|
-
"react-mosaic-component": "^6.1.0",
|
|
28
22
|
"lodash": "^4.17.21",
|
|
29
23
|
"@redux-eggs/core": "^2.2.0",
|
|
30
24
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
31
25
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
32
26
|
"immer": "^10.0.3",
|
|
33
27
|
"axios": "1.5.0",
|
|
28
|
+
"react-virtualized-auto-sizer": "^1.0.21",
|
|
29
|
+
"react-mosaic-component": "^6.1.0",
|
|
30
|
+
"redux-saga": "^1.3.0",
|
|
31
|
+
"@opengeoweb/form-fields": "*",
|
|
32
|
+
"@opengeoweb/timeseries": "*",
|
|
33
|
+
"@opengeoweb/authentication": "*",
|
|
34
|
+
"@opengeoweb/core": "*",
|
|
34
35
|
"@opengeoweb/taf": "*",
|
|
35
36
|
"@opengeoweb/sigmet-airmet": "*",
|
|
36
|
-
"@opengeoweb/warnings": "*"
|
|
37
|
-
"react-virtualized-auto-sizer": "^1.0.21",
|
|
38
|
-
"@opengeoweb/timeslider": "*"
|
|
37
|
+
"@opengeoweb/warnings": "*"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"react": "18"
|
|
@@ -13,4 +13,5 @@ export interface WorkspaceOptionsProps {
|
|
|
13
13
|
hasChanges?: boolean;
|
|
14
14
|
isDisabled?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const WorkspaceOptionsNoMemo: React.FC<WorkspaceOptionsProps>;
|
|
17
|
+
export declare const WorkspaceOptions: React.NamedExoticComponent<WorkspaceOptionsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,64 @@
|
|
|
1
1
|
import type { AppStore } from '../store';
|
|
2
2
|
import { ViewPresetListItem } from '../workspace/types';
|
|
3
|
-
import {
|
|
3
|
+
import { ViewPresetEntity, ViewPresetError, ViewPresetState } from './types';
|
|
4
4
|
export declare const getViewPresetsStore: (store: AppStore) => ViewPresetState;
|
|
5
|
-
export declare const getViewPresets: (state: AppStore) =>
|
|
6
|
-
export declare const getViewPresetsIsFetching: (
|
|
7
|
-
export declare const getViewPresetsError: (store: AppStore, panelId: string) => ViewPresetError | undefined;
|
|
8
|
-
export declare const getViewPresetDetailError: (store: AppStore, panelId: string) => string | undefined;
|
|
9
|
-
export declare const getViewPresetListError: (store: AppStore, panelId: string) => string | undefined;
|
|
10
|
-
export declare const getViewPresetHasChanges: (store: AppStore, panelId: string) => boolean | undefined;
|
|
11
|
-
export declare const getViewPresetActiveId: (store: AppStore, panelId: string) => string | undefined;
|
|
12
|
-
export declare const getViewPresetPanelId: (store: AppStore, mapId: string) => string;
|
|
13
|
-
export declare const getDialogOptions: (store: AppStore) => ViewPresetDialog | undefined;
|
|
14
|
-
export declare const getIsViewPresetListDialogOpen: (store: AppStore, panelId: string) => boolean | undefined;
|
|
15
|
-
export declare const getViewPresetListFiltersForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetsListFilter[], {
|
|
5
|
+
export declare const getViewPresets: (state: AppStore) => ViewPresetEntity[], getViewPresetById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetEntity | undefined;
|
|
6
|
+
export declare const getViewPresetsIsFetching: ((state: AppStore, id: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => boolean, {
|
|
16
7
|
clearCache: () => void;
|
|
17
8
|
}> & {
|
|
18
9
|
clearCache: () => void;
|
|
19
10
|
};
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
11
|
+
export declare const getViewPresetsError: ((state: AppStore, id: string) => ViewPresetError) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => ViewPresetError, {
|
|
12
|
+
clearCache: () => void;
|
|
13
|
+
}> & {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const getViewPresetDetailError: ((state: AppStore, id: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: ViewPresetError, args_1: string) => string | undefined, {
|
|
17
|
+
clearCache: () => void;
|
|
18
|
+
}> & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const getViewPresetListError: ((state: AppStore, id: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: ViewPresetError, args_1: string) => string | undefined, {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
}> & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const getViewPresetHasChanges: ((state: AppStore, id: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => boolean, {
|
|
27
|
+
clearCache: () => void;
|
|
28
|
+
}> & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare const getViewPresetActiveId: ((state: AppStore, id: string) => string) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => string, {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
}> & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const getViewPresetPanelId: ((state: AppStore, mapId: string) => string) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity[], args_1: string) => string, {
|
|
37
|
+
clearCache: () => void;
|
|
38
|
+
}> & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
};
|
|
41
|
+
export declare const getDialogOptions: ((state: AppStore) => import("./types").ViewPresetDialog | undefined) & import("reselect").OutputSelectorFields<(args_0: ViewPresetState, args_1: AppStore) => import("./types").ViewPresetDialog | undefined, {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
}> & {
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
};
|
|
46
|
+
export declare const getIsViewPresetListDialogOpen: ((state: AppStore, id: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => boolean, {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
};
|
|
51
|
+
export declare const getViewPresetListFiltersForView: ((state: AppStore, id: string) => import("./types").ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => import("./types").ViewPresetsListFilter[], {
|
|
52
|
+
clearCache: () => void;
|
|
53
|
+
}> & {
|
|
54
|
+
clearCache: () => void;
|
|
55
|
+
};
|
|
56
|
+
export declare const getViewPresetListSearchQueryForView: ((state: AppStore, id: string) => string) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined, args_1: string) => string, {
|
|
57
|
+
clearCache: () => void;
|
|
58
|
+
}> & {
|
|
59
|
+
clearCache: () => void;
|
|
60
|
+
};
|
|
61
|
+
export declare const getViewPresetListFilterResultsForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetEntity | undefined) => ViewPresetListItem[], {
|
|
22
62
|
clearCache: () => void;
|
|
23
63
|
}> & {
|
|
24
64
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkspaceState
|
|
1
|
+
import { WorkspaceState } from './types';
|
|
2
2
|
import { AppStore } from '../store';
|
|
3
3
|
/**
|
|
4
4
|
* Gets workspace state
|
|
@@ -40,7 +40,11 @@ export declare const getMosaicNode: ((state: AppStore) => import("react-mosaic-c
|
|
|
40
40
|
* @param {string} viewId viewId: string - view id
|
|
41
41
|
* @returns {object} returnType: WorkspaceViewType
|
|
42
42
|
*/
|
|
43
|
-
export declare const getViewById: (
|
|
43
|
+
export declare const getViewById: ((state: AppStore, viewId: string) => import("./types").WorkspaceViewType | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState, args_1: string) => import("./types").WorkspaceViewType | undefined, {
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
}> & {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
};
|
|
44
48
|
/**
|
|
45
49
|
* Gets all view ids
|
|
46
50
|
*
|
|
@@ -59,7 +63,7 @@ export declare const getViewIds: ((state: AppStore) => string[]) & import("resel
|
|
|
59
63
|
* @param {string} viewId viewId: string - view id
|
|
60
64
|
* @returns {boolean} returnType: boolean
|
|
61
65
|
*/
|
|
62
|
-
export declare const getShouldPreventClose: ((state: AppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined) => boolean, {
|
|
66
|
+
export declare const getShouldPreventClose: ((state: AppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined) => boolean, {
|
|
63
67
|
clearCache: () => void;
|
|
64
68
|
}> & {
|
|
65
69
|
clearCache: () => void;
|
|
@@ -163,7 +167,7 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: any) =>
|
|
|
163
167
|
};
|
|
164
168
|
componentType: "Map";
|
|
165
169
|
keywords: string;
|
|
166
|
-
}) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined, args_1: import("@opengeoweb/store").MapPreset, args_2: string[]) => {
|
|
170
|
+
}) & import("reselect").OutputSelectorFields<(args_0: import("./types").WorkspaceViewType | undefined, args_1: import("@opengeoweb/store").MapPreset, args_2: string[]) => {
|
|
167
171
|
id: string | undefined;
|
|
168
172
|
scope: import("./types").PresetScope;
|
|
169
173
|
title: string;
|
|
@@ -1,14 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WorkspaceListState } from './types';
|
|
2
2
|
import { AppStore } from '../store';
|
|
3
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
4
|
export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
|
|
6
|
+
clearCache: () => void;
|
|
7
|
+
}> & {
|
|
8
|
+
clearCache: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const getWorkspaceListError: ((state: AppStore) => {
|
|
11
|
+
type: import("./types").WorkspaceListErrorType;
|
|
12
|
+
message: string;
|
|
13
|
+
} | undefined) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => {
|
|
14
|
+
type: import("./types").WorkspaceListErrorType;
|
|
15
|
+
message: string;
|
|
16
|
+
} | undefined, {
|
|
17
|
+
clearCache: () => void;
|
|
18
|
+
}> & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => false | import("./types").WorkspaceActionDialogType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => false | import("./types").WorkspaceActionDialogType, {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
}> & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const getIsWorkspaceListDialogOpen: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => boolean, {
|
|
27
|
+
clearCache: () => void;
|
|
28
|
+
}> & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare const getWorkspaceListFilters: ((state: AppStore) => import("./types").WorkspaceListFilter[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => import("./types").WorkspaceListFilter[], {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
}> & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const getWorkspaceListSearchQuery: ((state: AppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState, args_1: AppStore) => string, {
|
|
10
37
|
clearCache: () => void;
|
|
11
38
|
}> & {
|
|
12
39
|
clearCache: () => void;
|
|
13
40
|
};
|
|
14
|
-
export declare const getWorkspaceListSearchQuery: (store: AppStore) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentsLookUpPayload as CoreComponentsLookUpPayload } from '@opengeoweb/core';
|
|
3
3
|
import { ComponentsLookUpPayload as TimeseriesComponentsLookUpPayload } from '@opengeoweb/timeseries';
|
|
4
|
-
import { ComponentsLookUpPayload as TimesliderComponentsLookUpPayload } from '@opengeoweb/timeslider';
|
|
5
4
|
import { ComponentsLookUpPayload as TafComponentsLookUpPayload } from '@opengeoweb/taf';
|
|
6
5
|
import { SigmetComponentsLookUpPayload, AirmetComponentsLookUpPayload } from '@opengeoweb/sigmet-airmet';
|
|
7
6
|
import { ComponentsLookUpPayload as WarningListComponentsLookUpPayLoad } from '@opengeoweb/warnings';
|
|
@@ -10,4 +9,4 @@ import { ComponentsLookUpPayload as WarningListComponentsLookUpPayLoad } from '@
|
|
|
10
9
|
* @param payload
|
|
11
10
|
* @returns
|
|
12
11
|
*/
|
|
13
|
-
export declare const componentsLookUp: (payload: CoreComponentsLookUpPayload | TimeseriesComponentsLookUpPayload | TafComponentsLookUpPayload | SigmetComponentsLookUpPayload | AirmetComponentsLookUpPayload | WarningListComponentsLookUpPayLoad
|
|
12
|
+
export declare const componentsLookUp: (payload: CoreComponentsLookUpPayload | TimeseriesComponentsLookUpPayload | TafComponentsLookUpPayload | SigmetComponentsLookUpPayload | AirmetComponentsLookUpPayload | WarningListComponentsLookUpPayLoad) => React.ReactElement;
|