@opengeoweb/workspace 14.3.0 → 14.5.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 +5115 -4579
- package/package.json +20 -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 +14 -0
- 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/ViewPresetMenu.d.ts +1 -0
- package/src/lib/components/ViewPresetMenu/ViewPresetMenuListConnect.d.ts +4 -1
- package/src/lib/components/ViewPresetMenu/ViewPresetsError.stories.d.ts +21 -3
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsForm.d.ts +11 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +5 -2
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +1 -1
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialogConnect.d.ts +3 -1
- 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/WorkspaceMenu.d.ts +1 -0
- package/src/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +2 -0
- 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/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +2 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceMenuLabelsWrapper.d.ts +9 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceMenuLabelsWrapper.spec.d.ts +1 -0
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.d.ts +12 -0
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.spec.d.ts +1 -0
- package/src/lib/components/WorkspaceSelectList/WorkspacePresetInfo.stories.d.ts +10 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +5 -3
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +7 -2
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +4 -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 +8 -0
- package/src/lib/components/WorkspaceView/SplitButtonsConnect.spec.d.ts +1 -0
- 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 +5 -2
- package/src/lib/store/viewPresets/selectors.d.ts +86 -4
- package/src/lib/store/viewPresets/types.d.ts +39 -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 +12 -2
- package/src/lib/store/viewPresetsList/types.d.ts +7 -2
- 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 +17 -787
- package/src/lib/store/workspace/types.d.ts +28 -20
- 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 +6 -3
- package/src/lib/store/workspaceList/selectors.d.ts +83 -90
- package/src/lib/store/workspaceList/types.d.ts +13 -0
- 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 +2 -8
- package/src/lib/utils/utils.d.ts +6 -5
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetLabelsPanel.d.ts +0 -8
- /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/src/lib/components/{WorkspacePresetsFormDialog/WorkspacePresetLabelsPanel.spec.d.ts → LabelsPanel/PresetLabelsPanel.spec.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.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,33 +9,34 @@
|
|
|
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.0",
|
|
13
|
+
"@opengeoweb/store": "14.5.0",
|
|
14
|
+
"@opengeoweb/api": "14.5.0",
|
|
15
15
|
"react-hook-form": "^7.50.1",
|
|
16
|
-
"@opengeoweb/theme": "14.
|
|
16
|
+
"@opengeoweb/theme": "14.5.0",
|
|
17
17
|
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
-
"@opengeoweb/snackbar": "14.
|
|
18
|
+
"@opengeoweb/snackbar": "14.5.0",
|
|
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.0",
|
|
25
|
+
"@opengeoweb/time-series": "14.5.0",
|
|
26
|
+
"@opengeoweb/authentication": "14.5.0",
|
|
27
|
+
"@opengeoweb/core": "14.5.0",
|
|
28
|
+
"@opengeoweb/taf": "14.5.0",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "14.5.0",
|
|
30
|
+
"@opengeoweb/warnings": "14.5.0",
|
|
31
|
+
"@opengeoweb/space-weather": "14.5.0",
|
|
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.0",
|
|
36
36
|
"@tanstack/react-query": "^5.85.5",
|
|
37
|
-
"@opengeoweb/soundings": "14.
|
|
38
|
-
"@opengeoweb/knmi-components": "14.
|
|
37
|
+
"@opengeoweb/soundings": "14.5.0",
|
|
38
|
+
"@opengeoweb/knmi-components": "14.5.0",
|
|
39
|
+
"@mui/system": "^7.3.5"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"react": "18",
|
|
@@ -43,7 +44,8 @@
|
|
|
43
44
|
"@emotion/styled": "*"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"eslint-plugin-storybook": "9.0.17"
|
|
47
|
+
"eslint-plugin-storybook": "9.0.17",
|
|
48
|
+
"msw": "^2.7.3"
|
|
47
49
|
},
|
|
48
50
|
"module": "./index.esm.js",
|
|
49
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WorkspaceSupportedComponentTypes } from '../../store/viewPresets/types';
|
|
3
|
+
import type { WorkspaceLabelsConfigResponse, WorkspacePresetLabels } from '../../store/workspace/types';
|
|
4
|
+
type GroupKey = string;
|
|
5
|
+
export declare const VIEW_TYPE_KEY: GroupKey;
|
|
6
|
+
interface PresetLabelsPanelProps {
|
|
7
|
+
labelsConfig?: WorkspaceLabelsConfigResponse | undefined;
|
|
8
|
+
viewComponentType?: WorkspaceSupportedComponentTypes;
|
|
9
|
+
onLabelsChange?: (labels: WorkspacePresetLabels) => void;
|
|
10
|
+
menuLabels?: WorkspacePresetLabels;
|
|
11
|
+
isMenuFilterMode?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const PresetLabelsPanel: React.FC<PresetLabelsPanelProps>;
|
|
14
|
+
export default PresetLabelsPanel;
|
|
@@ -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,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ViewPresetMenuListConnectProps {
|
|
3
3
|
panelId: string;
|
|
4
|
+
isLabelFilterOpen?: boolean;
|
|
5
|
+
onToggleLabelFilter?: () => void;
|
|
6
|
+
hasSpaceForLabelFilter?: boolean;
|
|
4
7
|
}
|
|
5
8
|
export declare const ViewPresetMenuListConnect: React.FC<ViewPresetMenuListConnectProps>;
|
|
6
9
|
export {};
|
|
@@ -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,11 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
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';
|
|
5
|
+
export declare const SHORT_DESC_LIMIT = 100;
|
|
3
6
|
export interface ViewPresetsFormProps {
|
|
4
7
|
viewComponentType: WorkspaceSupportedComponentTypes;
|
|
5
8
|
error?: string;
|
|
6
9
|
onSubmit?: () => void;
|
|
7
10
|
action: PresetAction;
|
|
8
11
|
formValues: ViewPresetFormValues;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
showInlineActions?: boolean;
|
|
14
|
+
confirmLabel?: string;
|
|
15
|
+
cancelLabel?: string;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
dialogTitle?: string;
|
|
18
|
+
labelsConfig?: WorkspaceLabelsConfigResponse | undefined;
|
|
9
19
|
}
|
|
10
20
|
declare const ViewPresetsForm: React.FC<ViewPresetsFormProps>;
|
|
11
21
|
export default ViewPresetsForm;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
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';
|
|
3
5
|
export interface ViewPresetsFormDialogProps {
|
|
4
6
|
isOpen: boolean;
|
|
5
7
|
title: string;
|
|
@@ -7,7 +9,8 @@ export interface ViewPresetsFormDialogProps {
|
|
|
7
9
|
viewPresetId: string;
|
|
8
10
|
viewComponentType: WorkspaceSupportedComponentTypes;
|
|
9
11
|
formValues?: ViewPresetFormValues;
|
|
10
|
-
|
|
12
|
+
labelsConfig?: WorkspaceLabelsConfigResponse;
|
|
13
|
+
onSuccess: (action: PresetAction, presetId: string, title: string, description: string, abstract: string, labels: WorkspacePresetLabels) => void;
|
|
11
14
|
onClose: () => void;
|
|
12
15
|
onReset: (viewPresetId: string) => void;
|
|
13
16
|
onDelete: (variables: {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SystemScope } from '@opengeoweb/shared';
|
|
2
|
+
import type { SystemScope } from '@opengeoweb/shared';
|
|
3
|
+
import type { WorkspaceLabelsConfigResponse } from '../../store/workspace/types';
|
|
3
4
|
declare const ViewPresetsFormDialogConnect: React.FC<{
|
|
4
5
|
scope?: SystemScope;
|
|
6
|
+
labelsConfig?: WorkspaceLabelsConfigResponse;
|
|
5
7
|
}>;
|
|
6
8
|
export default ViewPresetsFormDialogConnect;
|
|
@@ -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;
|
|
@@ -5,3 +5,5 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof WorkspaceMenu>;
|
|
6
6
|
export declare const WorkspaceMenuSearchLight: Story;
|
|
7
7
|
export declare const WorkspaceMenuSearchDark: Story;
|
|
8
|
+
export declare const WorkspaceMenuSearchWithLabelsLight: Story;
|
|
9
|
+
export declare const WorkspaceMenuSearchWithLabelsDark: Story;
|
|
@@ -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;
|
package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export default _default;
|
|
|
8
8
|
type Story = StoryObj<typeof WorkspacePresetsFormDialog>;
|
|
9
9
|
export declare const FormDialogLightSaveAs: Story;
|
|
10
10
|
export declare const FormDialogDarkSaveAs: Story;
|
|
11
|
+
export declare const FormDialogDescriptionMaxLength: Story;
|
|
12
|
+
export declare const FormDialogDescriptionMaxLengthDark: Story;
|
|
11
13
|
export declare const FormDialogLightDelete: Story;
|
|
12
14
|
export declare const FormDialogDarkDelete: Story;
|
|
13
15
|
export declare const FormDialogLightDuplicate: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WorkspacePresetLabels } from '../../store/workspace/types';
|
|
3
|
+
export interface WorkspaceMenuLabelsPanelProps {
|
|
4
|
+
value?: WorkspacePresetLabels;
|
|
5
|
+
onChange?: (labels: WorkspacePresetLabels) => void;
|
|
6
|
+
menuLabels?: WorkspacePresetLabels;
|
|
7
|
+
}
|
|
8
|
+
declare const WorkspaceMenuLabelsPanel: React.FC<WorkspaceMenuLabelsPanelProps>;
|
|
9
|
+
export default WorkspaceMenuLabelsPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ViewPresetListItem } from '../../store/viewPresetsList/types';
|
|
3
|
+
import type { WorkspacePresetListItem } from '../../store/workspace/types';
|
|
4
|
+
interface WorkspacePresetInfoProps {
|
|
5
|
+
preset?: WorkspacePresetListItem | ViewPresetListItem;
|
|
6
|
+
anchorEl: HTMLElement | null;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
disablePortal?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const WorkspacePresetInfo: React.FC<WorkspacePresetInfoProps>;
|
|
12
|
+
export default WorkspacePresetInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import WorkspacePresetInfo from './WorkspacePresetInfo';
|
|
4
|
+
type PresetInfoProps = React.ComponentProps<typeof WorkspacePresetInfo>;
|
|
5
|
+
declare const WorkspacePresetInfoStoryWrapper: React.FC<Omit<PresetInfoProps, 'anchorEl' | 'isOpen' | 'onClose'>>;
|
|
6
|
+
declare const meta: Meta<typeof WorkspacePresetInfoStoryWrapper>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof WorkspacePresetInfoStoryWrapper>;
|
|
9
|
+
export declare const WorkspacePresetInfoLight: Story;
|
|
10
|
+
export declare const WorkspacePresetInfoDark: Story;
|
|
@@ -1,11 +1,13 @@
|
|
|
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;
|
|
7
7
|
onClickWorkspacePreset: (id: string) => void;
|
|
8
8
|
onClickWorkspacePresetOption: (presetId: string, workspaceAction: WorkspacePresetAction, workspacePreset: WorkspacePresetListItem) => void;
|
|
9
|
+
onOpenPresetInfo?: (preset: WorkspacePresetListItem) => void;
|
|
10
|
+
infoOpenPresetId?: string;
|
|
9
11
|
hideNewWorkspace?: boolean;
|
|
10
12
|
isEditable?: boolean;
|
|
11
13
|
isAdmin?: boolean;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WorkspaceSelectListConnectProps {
|
|
3
|
+
isLabelFilterOpen?: boolean;
|
|
4
|
+
onToggleLabelFilter?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const WorkspaceSelectListConnect: React.FC<WorkspaceSelectListConnectProps>;
|
|
7
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
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 {
|
|
6
7
|
workspacePreset: WorkspacePresetListItem;
|
|
7
8
|
onClickWorkspacePreset: (id: string) => void;
|
|
8
9
|
onClickWorkspacePresetOption: (presetId: string, workspaceAction: WorkspacePresetAction, workspacePreset: WorkspacePresetListItem) => void;
|
|
10
|
+
onOpenPresetInfo?: (workspacePreset: WorkspacePresetListItem) => void;
|
|
11
|
+
infoOpenPresetId?: string;
|
|
9
12
|
isOptionsMenuOpen?: boolean;
|
|
10
13
|
isEditable?: boolean;
|
|
11
14
|
isAdmin?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MosaicBranch } from 'react-mosaic-component';
|
|
3
|
+
interface SplitButtonsConnectProps {
|
|
4
|
+
panelId: string;
|
|
5
|
+
path: MosaicBranch[];
|
|
6
|
+
}
|
|
7
|
+
export declare const SplitButtonsConnect: React.FC<SplitButtonsConnectProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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;
|