@opengeoweb/workspace 14.4.0 → 14.5.1
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 +4146 -4960
- package/package.json +19 -18
- package/src/lib/api/utils.d.ts +1 -0
- package/src/lib/api/viewpresets-api/api.d.ts +4 -4
- package/src/lib/api/viewpresets-api/fakeApi/mockData.d.ts +26 -0
- package/src/lib/api/viewpresets-api/hooks.d.ts +3 -1
- package/src/lib/api/viewpresets-api/queryOptions.d.ts +12 -0
- package/src/lib/api/workspace-api/api.d.ts +2 -2
- package/src/lib/api/workspace-api/fakeApi/mockData.d.ts +12 -0
- package/src/lib/api/workspace-api/hooks.d.ts +3 -2
- package/src/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.d.ts +1 -1
- package/src/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.d.ts +2 -2
- package/src/lib/components/LabelsPanel/PresetLabelsPanel.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +3 -3
- package/src/lib/components/Providers/WorkspaceModuleProvider.d.ts +2 -2
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.d.ts +1 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetsError.stories.d.ts +21 -3
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.d.ts +3 -2
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +3 -2
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +2 -2
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.d.ts +2 -2
- package/src/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +20 -2
- package/src/lib/components/WorkspaceDetail/WorkspaceDetailError.stories.d.ts +10 -2
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButton.d.ts +1 -1
- package/src/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.d.ts +1 -1
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +3 -2
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +3 -2
- package/src/lib/components/WorkspaceSelectList/WorkspaceMenuLabelsWrapper.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.d.ts +2 -2
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.stories.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +3 -3
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +2 -1
- package/src/lib/components/WorkspaceTab/WorkspaceTab.d.ts +1 -1
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +1 -1
- package/src/lib/components/WorkspaceView/LoadingIndicator/LoadingIndicatorConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceView/SplitButtonsConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceView/WorkspaceControls.d.ts +2 -2
- package/src/lib/components/WorkspaceView/WorkspaceTileConnect.d.ts +3 -3
- package/src/lib/components/WorkspaceView/WorkspaceView.d.ts +3 -3
- package/src/lib/components/WorkspaceView/WorkspaceViewConnect.d.ts +1 -1
- package/src/lib/components/WorkspaceView/helpers.d.ts +2 -2
- package/src/lib/components/WorkspaceViewTitle/WorkspaceViewTitleConnect.d.ts +1 -1
- package/src/lib/store/store.d.ts +4 -4
- package/src/lib/store/types.d.ts +6 -6
- package/src/lib/store/viewPresets/listener.d.ts +4 -4
- package/src/lib/store/viewPresets/reducer.d.ts +3 -2
- package/src/lib/store/viewPresets/selectors.d.ts +4 -4
- package/src/lib/store/viewPresets/types.d.ts +12 -9
- package/src/lib/store/viewPresets/utils.d.ts +3 -2
- package/src/lib/store/viewPresetsList/reducer.d.ts +2 -2
- package/src/lib/store/viewPresetsList/selectors.d.ts +2 -2
- package/src/lib/store/viewPresetsList/types.d.ts +3 -3
- package/src/lib/store/workspace/listener.d.ts +3 -2
- package/src/lib/store/workspace/reducer.d.ts +2 -2
- package/src/lib/store/workspace/selectors.d.ts +1 -1
- package/src/lib/store/workspace/types.d.ts +1 -1
- package/src/lib/store/workspace/utils.d.ts +1 -1
- package/src/lib/store/workspaceList/listener.d.ts +2 -2
- package/src/lib/store/workspaceList/reducer.d.ts +4 -3
- package/src/lib/storyUtils/componentsLookUp.d.ts +1 -1
- package/src/lib/storyUtils/componentsLookUp.stories.d.ts +2 -2
- package/src/lib/utils/api.d.ts +5 -8
- package/src/lib/utils/fakeApi.d.ts +5 -5
- package/src/lib/utils/fakeApi.stories.d.ts +10 -1
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/utils/labels.config.d.ts +1 -1
- package/src/lib/utils/utils.d.ts +4 -4
- /package/src/lib/api/viewpresets-api/{fakeApi.d.ts → fakeApi/fakeApi.d.ts} +0 -0
- /package/src/lib/api/workspace-api/{fakeApi.d.ts → fakeApi/fakeApi.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.1",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,33 +9,33 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-redux": "^9.2.0",
|
|
12
|
-
"@opengeoweb/shared": "14.
|
|
13
|
-
"@opengeoweb/store": "14.
|
|
14
|
-
"@opengeoweb/api": "14.
|
|
12
|
+
"@opengeoweb/shared": "14.5.1",
|
|
13
|
+
"@opengeoweb/store": "14.5.1",
|
|
14
|
+
"@opengeoweb/api": "14.5.1",
|
|
15
15
|
"react-hook-form": "^7.50.1",
|
|
16
|
-
"@opengeoweb/theme": "14.
|
|
16
|
+
"@opengeoweb/theme": "14.5.1",
|
|
17
17
|
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
-
"@opengeoweb/snackbar": "14.
|
|
18
|
+
"@opengeoweb/snackbar": "14.5.1",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"axios": "^1.7.7",
|
|
22
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
23
23
|
"react-mosaic-component": "^6.1.0",
|
|
24
|
-
"@opengeoweb/form-fields": "14.
|
|
25
|
-
"@opengeoweb/time-series": "14.
|
|
26
|
-
"@opengeoweb/authentication": "14.
|
|
27
|
-
"@opengeoweb/core": "14.
|
|
28
|
-
"@opengeoweb/taf": "14.
|
|
29
|
-
"@opengeoweb/sigmet-airmet": "14.
|
|
30
|
-
"@opengeoweb/warnings": "14.
|
|
31
|
-
"@opengeoweb/space-weather": "14.
|
|
24
|
+
"@opengeoweb/form-fields": "14.5.1",
|
|
25
|
+
"@opengeoweb/time-series": "14.5.1",
|
|
26
|
+
"@opengeoweb/authentication": "14.5.1",
|
|
27
|
+
"@opengeoweb/core": "14.5.1",
|
|
28
|
+
"@opengeoweb/taf": "14.5.1",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "14.5.1",
|
|
30
|
+
"@opengeoweb/warnings": "14.5.1",
|
|
31
|
+
"@opengeoweb/space-weather": "14.5.1",
|
|
32
32
|
"i18next": "^25.0.1",
|
|
33
33
|
"react-i18next": "^15.1.1",
|
|
34
34
|
"@mui/material": "^7.0.1",
|
|
35
|
-
"@opengeoweb/webmap-react": "14.
|
|
35
|
+
"@opengeoweb/webmap-react": "14.5.1",
|
|
36
36
|
"@tanstack/react-query": "^5.85.5",
|
|
37
|
-
"@opengeoweb/soundings": "14.
|
|
38
|
-
"@opengeoweb/knmi-components": "14.
|
|
37
|
+
"@opengeoweb/soundings": "14.5.1",
|
|
38
|
+
"@opengeoweb/knmi-components": "14.5.1",
|
|
39
39
|
"@mui/system": "^7.3.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"@emotion/styled": "*"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"eslint-plugin-storybook": "9.0.17"
|
|
47
|
+
"eslint-plugin-storybook": "9.0.17",
|
|
48
|
+
"msw": "^2.7.3"
|
|
48
49
|
},
|
|
49
50
|
"module": "./index.esm.js",
|
|
50
51
|
"type": "module",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LIB_KEY = "workspace-lib";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Credentials } from '@opengeoweb/api';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getViewPreset: (viewpresetId: string, auth
|
|
4
|
-
export declare const updateViewPreset: (viewpresetId: string, data:
|
|
1
|
+
import type { Credentials } from '@opengeoweb/api';
|
|
2
|
+
import type { ViewPreset } from '../../store/viewPresets/types';
|
|
3
|
+
export declare const getViewPreset: (viewpresetId: string, auth?: Credentials) => Promise<ViewPreset>;
|
|
4
|
+
export declare const updateViewPreset: (viewpresetId: string, data: ViewPreset, auth?: Credentials) => Promise<null>;
|
|
5
5
|
export declare const deleteViewPreset: (viewPresetId: string, auth: Credentials) => Promise<void>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const viewPresetMockData: {
|
|
2
|
+
title: string;
|
|
3
|
+
id: string;
|
|
4
|
+
componentType: string;
|
|
5
|
+
scope: string;
|
|
6
|
+
initialProps: {
|
|
7
|
+
mapPreset: {
|
|
8
|
+
layers: {
|
|
9
|
+
service: string;
|
|
10
|
+
name: string;
|
|
11
|
+
id: string;
|
|
12
|
+
layerType: string;
|
|
13
|
+
}[];
|
|
14
|
+
proj: {
|
|
15
|
+
bbox: {
|
|
16
|
+
left: number;
|
|
17
|
+
bottom: number;
|
|
18
|
+
right: number;
|
|
19
|
+
top: number;
|
|
20
|
+
};
|
|
21
|
+
srs: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
syncGroupsIds: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { UseMutationResult } from '@tanstack/react-query';
|
|
1
|
+
import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { ViewPreset } from '../../store/viewPresets/types';
|
|
2
3
|
export declare const useDeleteViewPreset: () => UseMutationResult<void, // return type from mutationFn
|
|
3
4
|
unknown, // error type (can be more specific if needed)
|
|
4
5
|
{
|
|
5
6
|
id: string;
|
|
6
7
|
}, // variables (input argument)
|
|
7
8
|
unknown>;
|
|
9
|
+
export declare const useGetViewPreset: (id: string) => UseQueryResult<ViewPreset>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Credentials } from '@opengeoweb/authentication';
|
|
2
|
+
import type { ViewPreset } from '../../store/viewPresets/types';
|
|
3
|
+
export declare const viewpresetsQueryOptions: {
|
|
4
|
+
readonly getViewPreset: (id: string, credentials?: Credentials) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<ViewPreset, Error, ViewPreset, string[]>, "queryFn"> & {
|
|
5
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<ViewPreset, string[], never> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
queryKey: string[] & {
|
|
8
|
+
[dataTagSymbol]: ViewPreset;
|
|
9
|
+
[dataTagErrorSymbol]: Error;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Credentials } from '@opengeoweb/api';
|
|
2
|
-
import { WorkspaceLabelsConfigResponse, WorkspacePresetForBE, WorkspacePresetFromBE } from '../../store/workspace/types';
|
|
1
|
+
import type { Credentials } from '@opengeoweb/api';
|
|
2
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetForBE, WorkspacePresetFromBE } from '../../store/workspace/types';
|
|
3
3
|
export declare const getWorkspaceLabelsConfig: () => Promise<WorkspaceLabelsConfigResponse>;
|
|
4
4
|
export declare const getWorkspace: (workspaceId: string, auth: Credentials) => Promise<WorkspacePresetFromBE>;
|
|
5
5
|
export declare const deleteWorkspace: (workspaceId: string, auth: Credentials) => Promise<null>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { WorkspaceLabelsConfigResponse,
|
|
1
|
+
import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetForBE } from '../../store/workspace/types';
|
|
3
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
4
|
export declare const useWorkspaceLabelsConfig: () => UseQueryResult<WorkspaceLabelsConfigResponse>;
|
|
4
5
|
type MutationReturnType<T> = UseMutationResult<Headers | null, Error, T>;
|
|
5
6
|
export declare const useDeleteWorkspacePreset: () => MutationReturnType<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WorkspaceComponentLookupPayload } from '../../store/workspace/types';
|
|
2
|
+
import type { WorkspaceComponentLookupPayload } from '../../store/workspace/types';
|
|
3
3
|
interface ModuleMethods {
|
|
4
4
|
onPreventCloseView?: (shouldPreventClose: boolean) => void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { WorkspaceViewPresetComponentsLookupType } from '../../store/workspace/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WorkspaceViewPresetComponentsLookupType } from '../../store/workspace/types';
|
|
3
3
|
export interface WorkspaceComponentsLookUpPayload {
|
|
4
4
|
componentType: string | WorkspaceViewPresetComponentsLookupType;
|
|
5
5
|
viewPresetId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { WorkspaceSupportedComponentTypes } from '../../store/viewPresets/types';
|
|
3
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetLabels } from '../../store/workspace/types';
|
|
4
4
|
type GroupKey = string;
|
|
5
5
|
export declare const VIEW_TYPE_KEY: GroupKey;
|
|
6
6
|
interface PresetLabelsPanelProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { AuthenticationDefaultStateProps } from '@opengeoweb/authentication';
|
|
3
|
+
import type { AuthenticationDefaultStateProps } from '@opengeoweb/authentication';
|
|
4
|
+
import type { ThemeProviderProps } from '@opengeoweb/theme';
|
|
5
5
|
export declare const WorkspaceThemeProvider: React.FC<ThemeProviderProps>;
|
|
6
6
|
export declare const DemoWrapper: React.FC<ThemeProviderProps>;
|
|
7
7
|
interface WorkspaceStoreWrapperProps {
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
tags: string[];
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const GetViewPresetError:
|
|
7
|
+
export declare const GetViewPresetError: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
msw: {
|
|
12
|
+
handlers: import("msw").HttpHandler[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
8
16
|
export declare const GetViewPresetsError: {
|
|
9
17
|
(): React.ReactElement;
|
|
10
18
|
storyName: string;
|
|
@@ -28,4 +36,14 @@ export declare const SaveViewPresetError: {
|
|
|
28
36
|
(): React.ReactElement;
|
|
29
37
|
storyName: string;
|
|
30
38
|
};
|
|
31
|
-
export declare const MissingProjectionError:
|
|
39
|
+
export declare const MissingProjectionError: {
|
|
40
|
+
(): React.ReactElement;
|
|
41
|
+
storyName: string;
|
|
42
|
+
parameters: {
|
|
43
|
+
msw: {
|
|
44
|
+
handlers: {
|
|
45
|
+
viewPresets: import("msw").HttpHandler[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ViewPresetFormValues, WorkspaceSupportedComponentTypes } from '../../store/viewPresets/types';
|
|
3
|
+
import { PresetAction } from '../../store/viewPresets/types';
|
|
4
|
+
import type { WorkspaceLabelsConfigResponse } from '../../store/workspace/types';
|
|
4
5
|
export declare const SHORT_DESC_LIMIT = 100;
|
|
5
6
|
export interface ViewPresetsFormProps {
|
|
6
7
|
viewComponentType: WorkspaceSupportedComponentTypes;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ViewPresetFormValues, WorkspaceSupportedComponentTypes } from '../../store/viewPresets/types';
|
|
3
|
+
import { PresetAction } from '../../store/viewPresets/types';
|
|
4
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetLabels } from '../../store/workspace/types';
|
|
4
5
|
export interface ViewPresetsFormDialogProps {
|
|
5
6
|
isOpen: boolean;
|
|
6
7
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SystemScope } from '@opengeoweb/shared';
|
|
3
|
-
import { WorkspaceLabelsConfigResponse } from '../../store/workspace/types';
|
|
2
|
+
import type { SystemScope } from '@opengeoweb/shared';
|
|
3
|
+
import type { WorkspaceLabelsConfigResponse } from '../../store/workspace/types';
|
|
4
4
|
declare const ViewPresetsFormDialogConnect: React.FC<{
|
|
5
5
|
scope?: SystemScope;
|
|
6
6
|
labelsConfig?: WorkspaceLabelsConfigResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
3
3
|
export interface WorkspaceTopBarProps {
|
|
4
4
|
initialWorkspaceId?: string;
|
|
5
5
|
workspaceId?: string;
|
|
@@ -7,5 +7,23 @@ export default _default;
|
|
|
7
7
|
export declare const ScreenConfigRadarTemp: () => React.ReactElement;
|
|
8
8
|
export declare const ScreenConfigHarmoniePresetWithoutMultiMapLayerManager: () => React.ReactElement;
|
|
9
9
|
export declare const ScreenConfigHarmoniePresetWithMultiMapLayerManager: () => React.ReactElement;
|
|
10
|
-
export declare const UiDialogsDemo:
|
|
11
|
-
|
|
10
|
+
export declare const UiDialogsDemo: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
parameters: {
|
|
13
|
+
msw: {
|
|
14
|
+
handlers: {
|
|
15
|
+
viewPresets: import("msw").HttpHandler[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const ScreenConfigWithNonExistingLayer: {
|
|
21
|
+
(): React.ReactElement;
|
|
22
|
+
parameters: {
|
|
23
|
+
msw: {
|
|
24
|
+
handlers: {
|
|
25
|
+
viewPresets: import("msw").HttpHandler[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -5,7 +5,15 @@ declare const _default: {
|
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const WorkspaceNotFound: () => React.ReactElement;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
8
|
+
export declare const WorkspaceFetchDetailError: {
|
|
9
|
+
(): React.ReactElement;
|
|
10
|
+
parameters: {
|
|
11
|
+
msw: {
|
|
12
|
+
handlers: {
|
|
13
|
+
viewPresets: import("msw").HttpHandler[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
10
18
|
export declare const WorkspaceSave: () => React.ReactElement;
|
|
11
19
|
export declare const WorkspaceDelete: () => React.ReactElement;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SystemScope } from '@opengeoweb/shared';
|
|
3
|
-
import { WorkspaceLabelsConfigResponse
|
|
4
|
-
import {
|
|
3
|
+
import type { WorkspaceLabelsConfigResponse } from '../../store/workspace/types';
|
|
4
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
5
|
+
import type { WorkspaceListError, WorkspacePresetFormValues } from '../../store/workspaceList/types';
|
|
5
6
|
export declare const ERROR_DUPLICATE_TITLE_BE = "Preset title already in use, please choose a different title";
|
|
6
7
|
export declare const ERROR_LONG_TITLE_BE = "Preset title cannot exceed 100 characters";
|
|
7
8
|
export declare const emptyWorkspacePreset: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WorkspaceLabelsConfigResponse,
|
|
3
|
-
import {
|
|
2
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetForBE } from '../../store/workspace/types';
|
|
3
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
4
|
+
import type { WorkspaceListError, WorkspacePresetFormValues } from '../../store/workspaceList/types';
|
|
4
5
|
export interface WorkspacePresetsFormDialogProps {
|
|
5
6
|
isOpen: boolean;
|
|
6
7
|
action: WorkspacePresetAction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WorkspacePresetLabels } from '../../store/workspace/types';
|
|
2
|
+
import type { WorkspacePresetLabels } from '../../store/workspace/types';
|
|
3
3
|
export interface WorkspaceMenuLabelsPanelProps {
|
|
4
4
|
value?: WorkspacePresetLabels;
|
|
5
5
|
onChange?: (labels: WorkspacePresetLabels) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ViewPresetListItem } from '../../store/viewPresetsList/types';
|
|
3
|
+
import type { WorkspacePresetListItem } from '../../store/workspace/types';
|
|
4
4
|
interface WorkspacePresetInfoProps {
|
|
5
5
|
preset?: WorkspacePresetListItem | ViewPresetListItem;
|
|
6
6
|
anchorEl: HTMLElement | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import WorkspacePresetInfo from './WorkspacePresetInfo';
|
|
4
4
|
type PresetInfoProps = React.ComponentProps<typeof WorkspacePresetInfo>;
|
|
5
5
|
declare const WorkspacePresetInfoStoryWrapper: React.FC<Omit<PresetInfoProps, 'anchorEl' | 'isOpen' | 'onClose'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
2
|
-
import
|
|
3
|
-
import { WorkspacePresetAction, WorkspacePresetListItem } from '../../store/workspace/types';
|
|
1
|
+
import type { BoxProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WorkspacePresetAction, WorkspacePresetListItem } from '../../store/workspace/types';
|
|
4
4
|
export interface WorkspaceSelectListProps extends BoxProps {
|
|
5
5
|
workspacePresets: WorkspacePresetListItem[];
|
|
6
6
|
currentSelectedId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { WorkspacePresetListItem } from '../../store/workspace/types';
|
|
3
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
4
|
export declare const WORKSPACE_SELECT_LIST_ROW_HEIGHT = 46;
|
|
4
5
|
export declare const getPresetIcon: (preset: WorkspacePresetListItem, currentUsername?: string) => React.ReactElement | null;
|
|
5
6
|
interface WorkspaceSelectListRowProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MosaicBranch, MosaicNode } from 'react-mosaic-component';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MosaicBranch, MosaicNode } from 'react-mosaic-component';
|
|
3
3
|
interface WorkspaceControlsProps {
|
|
4
4
|
panelId: string;
|
|
5
5
|
path: MosaicBranch[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MosaicBranch } from 'react-mosaic-component';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MosaicBranch } from 'react-mosaic-component';
|
|
3
3
|
import 'react-mosaic-component/react-mosaic-component.css';
|
|
4
|
-
import { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
4
|
+
import type { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
5
5
|
import './WorkspaceView.css';
|
|
6
6
|
interface WorkspaceTileConnectProps {
|
|
7
7
|
mosaicNodeId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MosaicNode } from 'react-mosaic-component';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MosaicNode } from 'react-mosaic-component';
|
|
3
3
|
import 'react-mosaic-component/react-mosaic-component.css';
|
|
4
4
|
import './WorkspaceView.css';
|
|
5
|
-
import { WorkspacePreset, WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
5
|
+
import type { WorkspacePreset, WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
6
6
|
export interface WorkspaceViewProps {
|
|
7
7
|
screenConfig: WorkspacePreset;
|
|
8
8
|
componentsLookUp: WorkspaceLookupFunctionType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
2
|
+
import type { WorkspaceLookupFunctionType } from '../../store/workspace/types';
|
|
3
3
|
export interface WorkspaceViewConnectProps {
|
|
4
4
|
componentsLookUp: WorkspaceLookupFunctionType;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { MosaicNode } from 'react-mosaic-component';
|
|
1
|
+
import type { UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { MosaicNode } from 'react-mosaic-component';
|
|
3
3
|
export declare const getUniqueId: (existingIds: string[], count?: number) => string;
|
|
4
4
|
export declare const createBalancedMosaicNode: (currentNode: MosaicNode<string>) => MosaicNode<string>;
|
|
5
5
|
export declare const closeDialogsWhenChangingPreset: (componentTypes: string[] | undefined, dispatch: (action: UnknownAction) => void) => void;
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { WorkspaceModuleStore } from './types';
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
3
|
+
import type { WebMapStateModuleState, SynchronizationGroupModuleState, UIModuleState } from '@opengeoweb/store';
|
|
4
|
+
import type { WorkspaceModuleStore } from './types';
|
|
5
5
|
export declare const workspaceReducersMap: {
|
|
6
6
|
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
7
7
|
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").ServiceState>;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ViewPresetListState } from './viewPresetsList/types';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { ThunkAction, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { CoreAppStore } from '@opengeoweb/store';
|
|
3
|
+
import type { ViewPresetState } from './viewPresets/types';
|
|
4
|
+
import type { ViewPresetListState } from './viewPresetsList/types';
|
|
5
|
+
import type { WorkspaceState } from './workspace/types';
|
|
6
|
+
import type { WorkspaceListState } from './workspaceList/types';
|
|
7
7
|
export interface AppStore extends WorkspaceModuleStore, CoreAppStore {
|
|
8
8
|
}
|
|
9
9
|
export interface WorkspaceModuleStore {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UnknownAction, ListenerEffectAPI, PayloadAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
-
import { WorkspaceModuleStore } from '../types';
|
|
3
|
-
import { SaveViewPresetPayload, ViewPreset } from './types';
|
|
1
|
+
import type { UnknownAction, ListenerEffectAPI, PayloadAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
+
import type { WorkspaceModuleStore } from '../types';
|
|
3
|
+
import type { SaveViewPresetPayload, ViewPreset } from './types';
|
|
4
4
|
export declare const viewPresetsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WorkspaceModuleStore, ThunkDispatch<WorkspaceModuleStore, unknown, UnknownAction>, unknown>;
|
|
5
|
-
export declare const saveViewPresetAsEffect: ({ payload }: PayloadAction<SaveViewPresetPayload>, listenerApi: ListenerEffectAPI<WorkspaceModuleStore, ThunkDispatch<WorkspaceModuleStore, unknown, UnknownAction>>) => Promise<ViewPreset | Error
|
|
5
|
+
export declare const saveViewPresetAsEffect: ({ payload }: PayloadAction<SaveViewPresetPayload>, listenerApi: ListenerEffectAPI<WorkspaceModuleStore, ThunkDispatch<WorkspaceModuleStore, unknown, UnknownAction>>) => Promise<ViewPreset | Error>;
|
|
6
6
|
export declare const saveViewPresetEffect: ({ payload }: PayloadAction<SaveViewPresetPayload>, listenerApi: ListenerEffectAPI<WorkspaceModuleStore, ThunkDispatch<WorkspaceModuleStore, unknown, UnknownAction>>) => Promise<ViewPreset | Error | void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
1
2
|
import { layerTypes, mapEnums } from '@opengeoweb/store';
|
|
2
3
|
import { TimeSeriesTypes } from '@opengeoweb/time-series';
|
|
3
|
-
import {
|
|
4
|
-
import { ClearViewPresetLabelFiltersPayload, ErrorViewPresetPayload, FetchedViewPresetPayload, FetchedViewPresetsPayload, FetchViewPresetsPayload, OnSuccesViewPresetActionPayload, OpenViewPresetDialogPayload, RegisterViewPresetPayload, SavedViewPresetPayload, SaveViewPresetPayload, SearchWorkspaceFilter, SelectViewPresetPayload, SetActiveViewPresetIdPayload, SetFilterChipsPayload, SetSelectAllFilterChip, SetViewPresetHasChangePayload, SetViewPresetLabelFiltersPayload, ToggleSelectFilterChip, ToggleViewPresetListDialogPayload, UnregisterViewPresetPayload, ViewPresetEntity, ViewPresetState } from './types';
|
|
4
|
+
import type { ClearViewPresetLabelFiltersPayload, ErrorViewPresetPayload, FetchedViewPresetPayload, FetchedViewPresetsPayload, FetchViewPresetsPayload, OnSuccesViewPresetActionPayload, OpenViewPresetDialogPayload, RegisterViewPresetPayload, SavedViewPresetPayload, SaveViewPresetPayload, SearchWorkspaceFilter, SelectViewPresetPayload, SetActiveViewPresetIdPayload, SetFilterChipsPayload, SetSelectAllFilterChip, SetViewPresetHasChangePayload, SetViewPresetInlineOverridePayload, SetViewPresetLabelFiltersPayload, ToggleSelectFilterChip, ToggleViewPresetListDialogPayload, UnregisterViewPresetPayload, ViewPresetEntity, ViewPresetState } from './types';
|
|
5
5
|
export declare const viewPresetsAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetEntity, string>;
|
|
6
6
|
export declare const initialState: ViewPresetState;
|
|
7
7
|
export type SupportedMapActionOrigins = layerTypes.LayerActionOrigin | mapEnums.MapActionOrigin;
|
|
@@ -16,6 +16,7 @@ export declare const viewPresetsReducer: import("redux").Reducer<ViewPresetState
|
|
|
16
16
|
savedViewPreset: (draft: Draft<ViewPresetState>, action: PayloadAction<SavedViewPresetPayload>) => void;
|
|
17
17
|
errorViewPreset: (draft: Draft<ViewPresetState>, action: PayloadAction<ErrorViewPresetPayload>) => void;
|
|
18
18
|
setViewPresetHasChanges: (draft: Draft<ViewPresetState>, action: PayloadAction<SetViewPresetHasChangePayload>) => void;
|
|
19
|
+
setViewPresetInline: (draft: Draft<ViewPresetState>, action: PayloadAction<SetViewPresetInlineOverridePayload>) => void;
|
|
19
20
|
setActiveViewPresetId: (draft: Draft<ViewPresetState>, action: PayloadAction<SetActiveViewPresetIdPayload>) => void;
|
|
20
21
|
selectViewPreset: (draft: Draft<ViewPresetState>, action: PayloadAction<SelectViewPresetPayload>) => void;
|
|
21
22
|
onSuccessViewPresetAction: (_draft: Draft<ViewPresetState>, _action: PayloadAction<OnSuccesViewPresetActionPayload>) => void;
|