@opengeoweb/warnings 12.1.2 → 12.2.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 +235 -107
- package/package.json +13 -13
- package/src/lib/Warnings.stories.d.ts +1 -0
- package/src/lib/api/aviation-api/hooks.d.ts +2 -2
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.stories.d.ts +12 -36
- package/src/lib/components/AreaObjectLoader/AreaObjectLoaderConnect.stories.d.ts +1 -0
- package/src/lib/components/DrawingTool/DrawingTool.stories.d.ts +7 -30
- package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +13 -13
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +35 -42
- package/src/lib/components/ObjectManager/ObjectManagerConnect.stories.d.ts +6 -21
- package/src/lib/components/ObjectManager/ObjectManagerConnectErrors.stories.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +10 -2
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -2
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +7 -8
- package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningList/PublicWarningListConnect.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/AreaField/AreaField.stories.d.ts +21 -9
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts +10 -21
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +4 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +3 -3
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +1 -0
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.stories.d.ts +14 -53
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.stories.d.ts +1 -0
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "12.
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/webmap-react": "12.
|
|
15
|
-
"@tanstack/react-query": "^5.
|
|
11
|
+
"@opengeoweb/api": "12.2.0",
|
|
12
|
+
"@opengeoweb/shared": "12.2.0",
|
|
13
|
+
"@opengeoweb/store": "12.2.0",
|
|
14
|
+
"@opengeoweb/webmap-react": "12.2.0",
|
|
15
|
+
"@tanstack/react-query": "^5.69.2",
|
|
16
16
|
"react-redux": "^8.1.3",
|
|
17
|
-
"@opengeoweb/theme": "12.
|
|
18
|
-
"@opengeoweb/form-fields": "12.
|
|
17
|
+
"@opengeoweb/theme": "12.2.0",
|
|
18
|
+
"@opengeoweb/form-fields": "12.2.0",
|
|
19
19
|
"react-hook-form": "^7.50.1",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"@reduxjs/toolkit": "^1.9.7",
|
|
22
|
-
"@opengeoweb/snackbar": "12.
|
|
22
|
+
"@opengeoweb/snackbar": "12.2.0",
|
|
23
23
|
"react-window": "^1.8.10",
|
|
24
24
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
25
25
|
"axios": "^1.7.7",
|
|
26
|
-
"@opengeoweb/core": "12.
|
|
27
|
-
"@opengeoweb/webmap": "12.
|
|
28
|
-
"@opengeoweb/authentication": "12.
|
|
29
|
-
"@opengeoweb/sigmet-airmet": "12.
|
|
26
|
+
"@opengeoweb/core": "12.2.0",
|
|
27
|
+
"@opengeoweb/webmap": "12.2.0",
|
|
28
|
+
"@opengeoweb/authentication": "12.2.0",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "12.2.0",
|
|
30
30
|
"react-i18next": "^15.1.1",
|
|
31
31
|
"i18next": "^23.11.5",
|
|
32
32
|
"@mui/material": "^6.1.1",
|
|
@@ -22,7 +22,7 @@ type MutationReturnType<T> = UseMutationResult<Headers | null, Error, T, {
|
|
|
22
22
|
* @param onDialogClose - Optional callback to close a dialog.
|
|
23
23
|
* @returns A mutation result for posting a SIGMET.
|
|
24
24
|
*/
|
|
25
|
-
export declare const usePostSigmet: (
|
|
25
|
+
export declare const usePostSigmet: () => MutationReturnType<SigmetFromFrontend>;
|
|
26
26
|
/**
|
|
27
27
|
* Hook for posting an AIRMET, with feedback.
|
|
28
28
|
*
|
|
@@ -30,5 +30,5 @@ export declare const usePostSigmet: (snackBarMessage: string) => MutationReturnT
|
|
|
30
30
|
* @param onDialogClose - Optional callback to close a dialog.
|
|
31
31
|
* @returns A mutation result for posting an AIRMET.
|
|
32
32
|
*/
|
|
33
|
-
export declare const usePostAirmet: (
|
|
33
|
+
export declare const usePostAirmet: () => MutationReturnType<AirmetFromFrontend>;
|
|
34
34
|
export {};
|
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AreaObjectLoader } from './AreaObjectLoader';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AreaObjectLoaderSmall: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
tags: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare const AreaObjectLoaderLight: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
parameters: {
|
|
13
|
-
zeplinLink: {
|
|
14
|
-
name: string;
|
|
15
|
-
link: string;
|
|
16
|
-
}[];
|
|
17
|
-
};
|
|
18
|
-
tags: string[];
|
|
19
|
-
};
|
|
20
|
-
export declare const AreaObjectLoaderDark: {
|
|
21
|
-
(): React.ReactElement;
|
|
22
|
-
tags: string[];
|
|
23
|
-
};
|
|
24
|
-
export declare const AreaObjectLoaderLightNoResults: {
|
|
25
|
-
(): React.ReactElement;
|
|
26
|
-
tags: string[];
|
|
27
|
-
};
|
|
28
|
-
export declare const AreaObjectLoaderDarkNoResults: {
|
|
29
|
-
(): React.ReactElement;
|
|
30
|
-
tags: string[];
|
|
31
|
-
};
|
|
32
|
-
export declare const AreaObjectLoaderLoading: () => React.ReactElement;
|
|
33
|
-
export declare const AreaObjectLoaderErrorLight: {
|
|
34
|
-
(): React.ReactElement;
|
|
35
|
-
tags: string[];
|
|
36
|
-
};
|
|
37
|
-
export declare const AreaObjectLoaderErrorDark: {
|
|
38
|
-
(): React.ReactElement;
|
|
39
5
|
tags: string[];
|
|
40
6
|
};
|
|
7
|
+
export default _default;
|
|
8
|
+
type Story = StoryObj<typeof AreaObjectLoader>;
|
|
9
|
+
export declare const AreaObjectLoaderSmall: Story;
|
|
10
|
+
export declare const AreaObjectLoaderLight: Story;
|
|
11
|
+
export declare const AreaObjectLoaderDark: Story;
|
|
12
|
+
export declare const AreaObjectLoaderLightNoResults: Story;
|
|
13
|
+
export declare const AreaObjectLoaderDarkNoResults: Story;
|
|
14
|
+
export declare const AreaObjectLoaderLoading: Story;
|
|
15
|
+
export declare const AreaObjectLoaderErrorLight: Story;
|
|
16
|
+
export declare const AreaObjectLoaderErrorDark: Story;
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DrawingToolForm } from '../DrawingToolForm';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const DrawingToolLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
16
|
-
export declare const DrawingToolDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
5
|
tags: string[];
|
|
25
6
|
};
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
link: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
7
|
+
export default _default;
|
|
8
|
+
type Story = StoryObj<typeof DrawingToolForm>;
|
|
9
|
+
export declare const DrawingToolLight: Story;
|
|
10
|
+
export declare const DrawingToolDark: Story;
|
|
11
|
+
export declare const DrawingToolErrorLight: Story;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react/*';
|
|
3
|
+
import ExpandableFilterChip, { ExpandableFilterChipProps } from './ExpandableFilterChip';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const ExpandableFilterChipLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
6
|
+
component: React.FC<ExpandableFilterChipProps>;
|
|
8
7
|
parameters: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
13
|
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
16
|
-
export declare const ExpandableFilterChipDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
tags: string[];
|
|
19
14
|
};
|
|
15
|
+
export default _default;
|
|
16
|
+
type Story = StoryObj<typeof ExpandableFilterChip>;
|
|
17
|
+
export declare const Component: Story;
|
|
18
|
+
export declare const ExpandableFilterChipLight: Story;
|
|
19
|
+
export declare const ExpandableFilterChipDark: Story;
|
|
@@ -1,46 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { ObjectManager } from './ObjectManager';
|
|
4
|
+
import { DrawingListItem } from '../../store/warningsDrawings/types';
|
|
2
5
|
declare const _default: {
|
|
3
6
|
title: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
link: string;
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
30
|
-
export declare const ObjectManagerLightNoResults: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
tags: string[];
|
|
33
|
-
};
|
|
34
|
-
export declare const ObjectManagerDarkNoResults: {
|
|
35
|
-
(): React.ReactElement;
|
|
36
|
-
tags: string[];
|
|
37
|
-
};
|
|
38
|
-
export declare const ObjectManagerLoading: () => React.ReactElement;
|
|
39
|
-
export declare const ObjectManagerErrorLight: {
|
|
40
|
-
(): React.ReactElement;
|
|
41
|
-
tags: string[];
|
|
42
|
-
};
|
|
43
|
-
export declare const ObjectManagerErrorDark: {
|
|
44
|
-
(): React.ReactElement;
|
|
7
|
+
component: import("react").FC<{
|
|
8
|
+
bounds?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
onMouseDown?: (() => void) | undefined;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
order?: number | undefined;
|
|
14
|
+
source?: import("dist/libs/shared/src").Source | undefined;
|
|
15
|
+
size?: import("dist/libs/shared/src").DraggableSize | undefined;
|
|
16
|
+
startPosition?: import("dist/libs/shared/src").Position | undefined;
|
|
17
|
+
headerSize?: import("dist/libs/shared/src").HeaderSize | undefined;
|
|
18
|
+
drawingListItems: DrawingListItem[];
|
|
19
|
+
onClickDrawing?: ((drawing: DrawingListItem) => void) | undefined;
|
|
20
|
+
onEditDrawing?: ((drawingId: string) => void) | undefined;
|
|
21
|
+
onDeleteDrawing?: ((drawingId: string) => void) | undefined;
|
|
22
|
+
onShareObject?: ((object: DrawingListItem) => void) | undefined;
|
|
23
|
+
onCreateNewObject?: (() => void) | undefined;
|
|
24
|
+
activeDrawingId?: string | undefined;
|
|
25
|
+
error?: string | undefined;
|
|
26
|
+
isLoading?: boolean | undefined;
|
|
27
|
+
}>;
|
|
45
28
|
tags: string[];
|
|
46
29
|
};
|
|
30
|
+
export default _default;
|
|
31
|
+
type Story = StoryObj<typeof ObjectManager>;
|
|
32
|
+
export declare const ObjectManagerSmall: Story;
|
|
33
|
+
export declare const ObjectManagerLight: Story;
|
|
34
|
+
export declare const ObjectManagerDark: Story;
|
|
35
|
+
export declare const ObjectManagerLightNoResults: Story;
|
|
36
|
+
export declare const ObjectManagerDarkNoResults: Story;
|
|
37
|
+
export declare const ObjectManagerLoading: Story;
|
|
38
|
+
export declare const ObjectManagerErrorLight: Story;
|
|
39
|
+
export declare const ObjectManagerErrorDark: Story;
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ObjectManagerConnect } from './ObjectManagerConnect';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
5
|
+
tags: string[];
|
|
4
6
|
};
|
|
5
7
|
export default _default;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
storyName: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const ObjectManagerConnectDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
storyName: string;
|
|
25
|
-
};
|
|
8
|
+
type Story = StoryObj<typeof ObjectManagerConnect>;
|
|
9
|
+
export declare const ObjectManagerConnectLight: Story;
|
|
10
|
+
export declare const ObjectManagerConnectDark: Story;
|
|
@@ -3,12 +3,20 @@ import { Theme } from '@mui/material';
|
|
|
3
3
|
import { Store } from '@reduxjs/toolkit';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { WarningsApi } from '../../utils/api';
|
|
6
|
-
|
|
6
|
+
interface WarningsClientProviderProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
theme?: Theme;
|
|
9
8
|
optionalQueryClient?: QueryClient;
|
|
10
9
|
}
|
|
10
|
+
export interface WarningsThemeProviderProps extends WarningsClientProviderProps {
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
}
|
|
11
13
|
export declare const WarningsThemeProvider: React.FC<WarningsThemeProviderProps>;
|
|
14
|
+
interface WarningStoreProviderProps {
|
|
15
|
+
store?: Store;
|
|
16
|
+
createApi?: () => WarningsApi;
|
|
17
|
+
optionalQueryClient?: QueryClient;
|
|
18
|
+
}
|
|
19
|
+
export declare const WarningsStoreProvider: React.FC<WarningStoreProviderProps & WarningsClientProviderProps>;
|
|
12
20
|
export interface WarningsThemeStoreProviderProps extends WarningsThemeProviderProps {
|
|
13
21
|
store?: Store;
|
|
14
22
|
createApi?: () => WarningsApi;
|
|
@@ -2,9 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { WarningType } from '../../../store/publicWarningForm/types';
|
|
3
3
|
export declare const BUTTON_AIRMET = "AIRMET";
|
|
4
4
|
export declare const BUTTON_SIGMET = "SIGMET";
|
|
5
|
-
interface NewWarningButtonProps {
|
|
5
|
+
export interface NewWarningButtonProps {
|
|
6
6
|
onCreateWarning: (warningType?: WarningType) => void;
|
|
7
7
|
isDefaultOpen?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const NewWarningButton: React.FC<NewWarningButtonProps>;
|
|
10
|
-
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { NewWarningButton } from './NewWarningButton';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const NewWarningButtonLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
tags: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare const NewWarningButtonDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
6
|
+
component: React.FC<import("./NewWarningButton").NewWarningButtonProps>;
|
|
12
7
|
tags: string[];
|
|
13
8
|
};
|
|
9
|
+
export default _default;
|
|
10
|
+
type Story = StoryObj<typeof NewWarningButton>;
|
|
11
|
+
export declare const NewWarningButtonLight: Story;
|
|
12
|
+
export declare const NewWarningButtonDark: Story;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { AreaField } from './AreaField';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
6
|
+
component: import("react").FC<{
|
|
7
|
+
onEditObject: () => void;
|
|
8
|
+
onViewObject: () => void;
|
|
9
|
+
onDeleteObject: () => void;
|
|
10
|
+
onAddObject: () => void;
|
|
11
|
+
isDisabled?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
4
20
|
};
|
|
5
21
|
export default _default;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const AreaFieldDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
storyName: string;
|
|
13
|
-
};
|
|
22
|
+
type Story = StoryObj<typeof AreaField>;
|
|
23
|
+
export declare const Component: Story;
|
|
24
|
+
export declare const AreaFieldLight: Story;
|
|
25
|
+
export declare const AreaFieldDark: Story;
|
package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.stories.d.ts
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
storyName: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const DescriptionFieldDisabledLight: {
|
|
15
|
-
(): React.ReactElement;
|
|
16
|
-
storyName: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const DescriptionFieldDisabledDark: {
|
|
19
|
-
(): React.ReactElement;
|
|
20
|
-
storyName: string;
|
|
21
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DescriptionField } from './DescriptionField';
|
|
3
|
+
declare const meta: Meta<typeof DescriptionField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DescriptionField>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const DescriptionFieldLight: Story;
|
|
8
|
+
export declare const DescriptionFieldDark: Story;
|
|
9
|
+
export declare const DescriptionFieldDisabledLight: Story;
|
|
10
|
+
export declare const DescriptionFieldDisabledDark: Story;
|
|
@@ -21,7 +21,8 @@ export interface FormProps {
|
|
|
21
21
|
onSaveForm?: (formValues: PublicWarningDetail) => Promise<Headers | null>;
|
|
22
22
|
onPublishForm?: (formValues: PublicWarningDetail) => Promise<Headers | null>;
|
|
23
23
|
onClearForm?: () => void;
|
|
24
|
-
|
|
24
|
+
onCloseForm?: () => void;
|
|
25
|
+
onSaveAviationForm?: (formValues: FieldValues, action: ProductStatus, warningType: 'sigmet' | 'airmet') => Promise<Headers | null>;
|
|
25
26
|
object?: DrawingListItem;
|
|
26
27
|
publicWarningDetails?: PublicWarningDetail;
|
|
27
28
|
error?: FormError;
|
|
@@ -33,6 +34,8 @@ export interface FormProps {
|
|
|
33
34
|
warningType?: WarningType;
|
|
34
35
|
mode?: FormMode;
|
|
35
36
|
onSetViewModeResetArea?: (area: Area[]) => void;
|
|
37
|
+
storedStartGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
|
|
38
|
+
storedEndGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
|
|
36
39
|
}
|
|
37
40
|
export declare function warningLevelFeatureColors(level: WarningLevel | undefined, geoJSON: FeatureCollection<Geometry, GeoJsonProperties> | undefined, // Allow undefined
|
|
38
41
|
isAviationWarning?: boolean): FeatureCollection<Geometry, GeoJsonProperties>;
|
|
@@ -7,7 +7,7 @@ interface DemoProps {
|
|
|
7
7
|
isReadOnly: boolean;
|
|
8
8
|
error?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const PublicWarningsFormDemo: ({ formProps,
|
|
10
|
+
export declare const PublicWarningsFormDemo: ({ formProps, isReadOnly, error, }: DemoProps) => React.ReactElement;
|
|
11
11
|
type Story = StoryObj<typeof PublicWarningsFormDemo>;
|
|
12
12
|
declare const meta: Meta<typeof PublicWarningsFormDemo>;
|
|
13
13
|
export default meta;
|
|
@@ -19,8 +19,8 @@ export declare const ErrorForm: Story;
|
|
|
19
19
|
export declare const ErrorFormDark: Story;
|
|
20
20
|
export declare const ReadOnlyForm: Story;
|
|
21
21
|
export declare const ReadOnlyFormDark: Story;
|
|
22
|
-
export declare const PublicWarningsFormAirmetDraftLight:
|
|
23
|
-
export declare const PublicWarningsFormAirmetDraftDark:
|
|
22
|
+
export declare const PublicWarningsFormAirmetDraftLight: Story;
|
|
23
|
+
export declare const PublicWarningsFormAirmetDraftDark: Story;
|
|
24
24
|
export declare const PublicWarningsFormAirmetCancels: () => React.ReactElement;
|
|
25
25
|
export declare const PublicWarningsFormAirmetCancelled: () => React.ReactElement;
|
|
26
26
|
export declare const PublicWarningsFormSigmetCancels: () => React.ReactElement;
|
|
@@ -1,57 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { PublicWarningsFormDialog } from './PublicWarningsFormDialog';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const PublicWarningsFormDialogLight: {
|
|
7
|
-
(): React.ReactElement;
|
|
8
|
-
parameters: {
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
16
|
-
export declare const PublicWarningsFormDialogDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
parameters: {
|
|
19
|
-
zeplinLink: {
|
|
20
|
-
name: string;
|
|
21
|
-
link: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare const PublicWarningsFormDialogBigLight: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
30
|
-
export declare const PublicWarningsFormDialogBigDark: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
tags: string[];
|
|
33
|
-
};
|
|
34
|
-
export declare const PublicWarningsFormDialogBigErrorLight: {
|
|
35
|
-
(): React.ReactElement;
|
|
36
|
-
tags: string[];
|
|
37
|
-
};
|
|
38
|
-
export declare const PublicWarningsFormDialogBigErrorDark: {
|
|
39
|
-
(): React.ReactElement;
|
|
40
|
-
tags: string[];
|
|
41
|
-
};
|
|
42
|
-
export declare const PublicWarningsFormDialogReadOnlyLight: {
|
|
43
|
-
(): React.ReactElement;
|
|
44
|
-
tags: string[];
|
|
45
|
-
};
|
|
46
|
-
export declare const PublicWarningsFormDialogReadOnlyDark: {
|
|
47
|
-
(): React.ReactElement;
|
|
48
|
-
tags: string[];
|
|
49
|
-
};
|
|
50
|
-
export declare const PublicWarningsFormDialogTakeoverWarningLight: {
|
|
51
|
-
(): React.ReactElement;
|
|
52
|
-
tags: string[];
|
|
53
|
-
};
|
|
54
|
-
export declare const PublicWarningsFormDialogTakeoverWarningDark: {
|
|
55
|
-
(): React.ReactElement;
|
|
56
5
|
tags: string[];
|
|
57
6
|
};
|
|
7
|
+
export default _default;
|
|
8
|
+
type Story = StoryObj<typeof PublicWarningsFormDialog>;
|
|
9
|
+
export declare const PublicWarningsFormDialogLight: Story;
|
|
10
|
+
export declare const PublicWarningsFormDialogDark: Story;
|
|
11
|
+
export declare const PublicWarningsFormDialogBigLight: Story;
|
|
12
|
+
export declare const PublicWarningsFormDialogBigDark: Story;
|
|
13
|
+
export declare const PublicWarningsFormDialogBigErrorLight: Story;
|
|
14
|
+
export declare const PublicWarningsFormDialogBigErrorDark: Story;
|
|
15
|
+
export declare const PublicWarningsFormDialogReadOnlyLight: Story;
|
|
16
|
+
export declare const PublicWarningsFormDialogReadOnlyDark: Story;
|
|
17
|
+
export declare const PublicWarningsFormDialogTakeoverWarningLight: Story;
|
|
18
|
+
export declare const PublicWarningsFormDialogTakeoverWarningDark: Story;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import { MapPreset } from '@opengeoweb/store';
|
|
4
4
|
interface WarningsMapViewProps {
|
|
5
|
-
geojsonFeature
|
|
5
|
+
geojsonFeature?: FeatureCollection | undefined;
|
|
6
6
|
defaultMapPreset?: MapPreset;
|
|
7
7
|
isSnapshot?: boolean;
|
|
8
8
|
}
|