@opengeoweb/sigmet-airmet 4.2.0 → 4.3.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 +1221 -1245
- package/index.umd.js +1196 -1246
- package/lib/AirmetDemo.stories.d.ts +1 -0
- package/lib/SigmetDemo.stories.d.ts +1 -0
- package/lib/components/ContentDialog/ContentDialog.stories.d.ts +80 -1
- package/lib/components/ProductForms/AirmetForm/AirmetForm.stories.d.ts +79 -4
- package/lib/components/ProductForms/ProductForm.styles.d.ts +22 -9
- package/lib/components/ProductForms/ProductFormDialog.Sigmet.stories.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/IssuedAt.d.ts +6 -0
- package/lib/components/ProductForms/ProductFormFields/IssuedAt.spec.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/ProductFormFieldLayout.d.ts +8 -0
- package/lib/components/ProductForms/ProductFormFields/ProductFormFieldLayout.spec.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/Tac.d.ts +7 -0
- package/lib/components/ProductForms/ProductFormFields/Tac.spec.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/ValidFrom.d.ts +2 -0
- package/lib/components/ProductForms/ProductFormLayout.d.ts +7 -0
- package/lib/components/ProductForms/SigmetForm/SigmetForm.stories.d.ts +88 -4
- package/lib/components/ProductList/ProductList.stories.d.ts +32 -0
- package/lib/utils/testUtils.d.ts +2 -1
- package/package.json +12 -11
|
@@ -4,4 +4,83 @@ declare const _default: {
|
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const ContentDialogDemo: () => React.ReactElement;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const NewDialogDemoLight: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
zeplinLink: {
|
|
12
|
+
name: string;
|
|
13
|
+
link: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const NewDialogDemoDark: {
|
|
18
|
+
(): React.ReactElement;
|
|
19
|
+
storyName: string;
|
|
20
|
+
parameters: {
|
|
21
|
+
zeplinLink: {
|
|
22
|
+
name: string;
|
|
23
|
+
link: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const ViewDialogDemoLight: {
|
|
28
|
+
(): React.ReactElement;
|
|
29
|
+
storyName: string;
|
|
30
|
+
parameters: {
|
|
31
|
+
zeplinLink: {
|
|
32
|
+
name: string;
|
|
33
|
+
link: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const ViewDialogDemoDark: {
|
|
38
|
+
(): React.ReactElement;
|
|
39
|
+
storyName: string;
|
|
40
|
+
parameters: {
|
|
41
|
+
zeplinLink: {
|
|
42
|
+
name: string;
|
|
43
|
+
link: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const ExpiredDialogDemoLight: {
|
|
48
|
+
(): React.ReactElement;
|
|
49
|
+
storyName: string;
|
|
50
|
+
parameters: {
|
|
51
|
+
zeplinLink: {
|
|
52
|
+
name: string;
|
|
53
|
+
link: string;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const ExpiredDialogDemoDark: {
|
|
58
|
+
(): React.ReactElement;
|
|
59
|
+
storyName: string;
|
|
60
|
+
parameters: {
|
|
61
|
+
zeplinLink: {
|
|
62
|
+
name: string;
|
|
63
|
+
link: string;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const EditDialogDemoLight: {
|
|
68
|
+
(): React.ReactElement;
|
|
69
|
+
storyName: string;
|
|
70
|
+
parameters: {
|
|
71
|
+
zeplinLink: {
|
|
72
|
+
name: string;
|
|
73
|
+
link: string;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const EditDialogDemoDark: {
|
|
78
|
+
(): React.ReactElement;
|
|
79
|
+
storyName: string;
|
|
80
|
+
parameters: {
|
|
81
|
+
zeplinLink: {
|
|
82
|
+
name: string;
|
|
83
|
+
link: string;
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -3,19 +3,94 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const NewAirmetLightTheme: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
storyName: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
9
15
|
};
|
|
10
|
-
export declare const
|
|
16
|
+
export declare const NewAirmetDarkTheme: {
|
|
11
17
|
(): React.ReactElement;
|
|
12
18
|
storyName: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
zeplinLink: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
13
25
|
};
|
|
14
|
-
export declare const
|
|
26
|
+
export declare const ErrorAirmetLightTheme: {
|
|
15
27
|
(): React.ReactElement;
|
|
16
28
|
storyName: string;
|
|
29
|
+
parameters: {
|
|
30
|
+
zeplinLink: {
|
|
31
|
+
name: string;
|
|
32
|
+
link: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
17
35
|
};
|
|
18
|
-
export declare const
|
|
36
|
+
export declare const ErrorAirmetDarkTheme: {
|
|
19
37
|
(): React.ReactElement;
|
|
20
38
|
storyName: string;
|
|
39
|
+
parameters: {
|
|
40
|
+
zeplinLink: {
|
|
41
|
+
name: string;
|
|
42
|
+
link: string;
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
21
45
|
};
|
|
46
|
+
export declare const EditAirmetLightTheme: {
|
|
47
|
+
(): React.ReactElement;
|
|
48
|
+
storyName: string;
|
|
49
|
+
parameters: {
|
|
50
|
+
zeplinLink: {
|
|
51
|
+
name: string;
|
|
52
|
+
link: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const EditAirmetDarkTheme: {
|
|
57
|
+
(): React.ReactElement;
|
|
58
|
+
storyName: string;
|
|
59
|
+
parameters: {
|
|
60
|
+
zeplinLink: {
|
|
61
|
+
name: string;
|
|
62
|
+
link: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const ViewAirmetLightTheme: {
|
|
67
|
+
(): React.ReactElement;
|
|
68
|
+
storyName: string;
|
|
69
|
+
parameters: {
|
|
70
|
+
zeplinLink: {
|
|
71
|
+
name: string;
|
|
72
|
+
link: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const ViewAirmetDarkTheme: {
|
|
77
|
+
(): React.ReactElement;
|
|
78
|
+
storyName: string;
|
|
79
|
+
parameters: {
|
|
80
|
+
zeplinLink: {
|
|
81
|
+
name: string;
|
|
82
|
+
link: string;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const CancelAirmetLightTheme: {
|
|
87
|
+
(): React.ReactElement;
|
|
88
|
+
storyName: string;
|
|
89
|
+
parameters: {
|
|
90
|
+
zeplinLink: {
|
|
91
|
+
name: string;
|
|
92
|
+
link: string;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const CancelAirmetDarkTheme: () => React.ReactElement;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
productForm: {
|
|
3
|
-
overflowY: string;
|
|
4
|
-
overflowX: string;
|
|
5
|
-
height: string;
|
|
6
|
-
width: string;
|
|
7
|
-
};
|
|
8
2
|
label: {
|
|
9
|
-
|
|
3
|
+
fontSize: string;
|
|
4
|
+
marginTop: number;
|
|
5
|
+
textAlign: string;
|
|
10
6
|
};
|
|
11
7
|
body: {
|
|
12
8
|
paddingTop: string;
|
|
13
9
|
};
|
|
14
10
|
containerItem: {
|
|
15
|
-
|
|
11
|
+
' .MuiTypography-subtitle1': {
|
|
12
|
+
marginTop: number;
|
|
13
|
+
};
|
|
16
14
|
};
|
|
17
15
|
volcanicField: {
|
|
18
16
|
marginBottom: number;
|
|
@@ -40,6 +38,21 @@ export declare const styles: {
|
|
|
40
38
|
opacity: string;
|
|
41
39
|
};
|
|
42
40
|
drawSection: {
|
|
43
|
-
|
|
41
|
+
'+ .MuiGrid-item': {
|
|
42
|
+
paddingTop: number;
|
|
43
|
+
};
|
|
44
|
+
' .MuiTypography-subtitle1': {
|
|
45
|
+
marginTop: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
helperText: {
|
|
49
|
+
' .MuiFormHelperText-root': {
|
|
50
|
+
position: string;
|
|
51
|
+
top: number;
|
|
52
|
+
'&.Mui-error': {
|
|
53
|
+
top: string;
|
|
54
|
+
position: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
44
57
|
};
|
|
45
58
|
};
|
|
@@ -6,6 +6,7 @@ export default _default;
|
|
|
6
6
|
export declare const NewSigmet: () => React.ReactElement;
|
|
7
7
|
export declare const EditSigmet: () => React.ReactElement;
|
|
8
8
|
export declare const ViewSigmet: () => React.ReactElement;
|
|
9
|
+
export declare const ViewSigmetDark: () => React.ReactElement;
|
|
9
10
|
export declare const ViewVolcanicSigmet: () => React.ReactElement;
|
|
10
11
|
export declare const ViewEmptyOptionalFieldsSigmet: () => React.ReactElement;
|
|
11
12
|
export declare const CancelledSigmet: () => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridProps } from '@mui/material';
|
|
3
|
+
interface ProductFormFieldLayoutProps extends GridProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const ProductFormFieldLayout: React.FC<ProductFormFieldLayoutProps>;
|
|
8
|
+
export default ProductFormFieldLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProductType } from '../../../types';
|
|
3
3
|
export declare const VALID_FROM_TIME_DELAY_IN_MINUTES = 30;
|
|
4
|
+
export declare const VALID_FROM_ERROR_BEFORE_CURRENT = "Valid from time cannot be before current time";
|
|
5
|
+
export declare const getValidFromXHoursBeforeMessage: (hours: number) => string;
|
|
4
6
|
interface ValidFromProps {
|
|
5
7
|
productType: ProductType;
|
|
6
8
|
isDisabled: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapViewGeoJsonProps } from '../MapViewGeoJson/MapViewGeoJson';
|
|
3
|
+
interface ProducFormLayoutProps extends MapViewGeoJsonProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const ProductFormLayout: React.FC<ProducFormLayoutProps>;
|
|
7
|
+
export default ProductFormLayout;
|
|
@@ -3,19 +3,103 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const NewSigmetLightTheme: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
storyName: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
9
15
|
};
|
|
10
|
-
export declare const
|
|
16
|
+
export declare const NewSigmetDarkTheme: {
|
|
11
17
|
(): React.ReactElement;
|
|
12
18
|
storyName: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
zeplinLink: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
13
25
|
};
|
|
14
|
-
export declare const
|
|
26
|
+
export declare const ErrorSigmetLightTheme: {
|
|
15
27
|
(): React.ReactElement;
|
|
16
28
|
storyName: string;
|
|
29
|
+
parameters: {
|
|
30
|
+
zeplinLink: {
|
|
31
|
+
name: string;
|
|
32
|
+
link: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
17
35
|
};
|
|
18
|
-
export declare const
|
|
36
|
+
export declare const ErrorSigmetDarkTheme: {
|
|
19
37
|
(): React.ReactElement;
|
|
20
38
|
storyName: string;
|
|
39
|
+
parameters: {
|
|
40
|
+
zeplinLink: {
|
|
41
|
+
name: string;
|
|
42
|
+
link: string;
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const EditSigmetLightTheme: {
|
|
47
|
+
(): React.ReactElement;
|
|
48
|
+
storyName: string;
|
|
49
|
+
parameters: {
|
|
50
|
+
zeplinLink: {
|
|
51
|
+
name: string;
|
|
52
|
+
link: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const EditSigmetDarkTheme: {
|
|
57
|
+
(): React.ReactElement;
|
|
58
|
+
storyName: string;
|
|
59
|
+
parameters: {
|
|
60
|
+
zeplinLink: {
|
|
61
|
+
name: string;
|
|
62
|
+
link: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const ViewSigmetLightTheme: {
|
|
67
|
+
(): React.ReactElement;
|
|
68
|
+
storyName: string;
|
|
69
|
+
parameters: {
|
|
70
|
+
zeplinLink: {
|
|
71
|
+
name: string;
|
|
72
|
+
link: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const ViewSigmetDarkTheme: {
|
|
77
|
+
(): React.ReactElement;
|
|
78
|
+
storyName: string;
|
|
79
|
+
parameters: {
|
|
80
|
+
zeplinLink: {
|
|
81
|
+
name: string;
|
|
82
|
+
link: string;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const CancelVASigmetLightTheme: {
|
|
87
|
+
(): React.ReactElement;
|
|
88
|
+
storyName: string;
|
|
89
|
+
parameters: {
|
|
90
|
+
zeplinLink: {
|
|
91
|
+
name: string;
|
|
92
|
+
link: string;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const CancelVASigmetDarkTheme: {
|
|
97
|
+
(): React.ReactElement;
|
|
98
|
+
storyName: string;
|
|
99
|
+
parameters: {
|
|
100
|
+
zeplinLink: {
|
|
101
|
+
name: string;
|
|
102
|
+
link: string;
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
21
105
|
};
|
|
@@ -7,9 +7,41 @@ export declare const SigmetListDemo: () => React.ReactElement;
|
|
|
7
7
|
export declare const SigmetListDemoSnapshot: {
|
|
8
8
|
(): React.ReactElement;
|
|
9
9
|
storyName: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
zeplinLink: {
|
|
12
|
+
name: string;
|
|
13
|
+
link: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const SigmetListDemoSnapshotDarkTheme: {
|
|
18
|
+
(): React.ReactElement;
|
|
19
|
+
storyName: string;
|
|
20
|
+
parameters: {
|
|
21
|
+
zeplinLink: {
|
|
22
|
+
name: string;
|
|
23
|
+
link: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
10
26
|
};
|
|
11
27
|
export declare const AirmetListDemo: () => React.ReactElement;
|
|
12
28
|
export declare const AirmetListDemoSnapshot: {
|
|
13
29
|
(): React.ReactElement;
|
|
14
30
|
storyName: string;
|
|
31
|
+
parameters: {
|
|
32
|
+
zeplinLink: {
|
|
33
|
+
name: string;
|
|
34
|
+
link: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const AirmetListDemoSnapshotDarkTheme: {
|
|
39
|
+
(): React.ReactElement;
|
|
40
|
+
storyName: string;
|
|
41
|
+
parameters: {
|
|
42
|
+
zeplinLink: {
|
|
43
|
+
name: string;
|
|
44
|
+
link: string;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
15
47
|
};
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Store } from '@reduxjs/toolkit';
|
|
|
4
4
|
import { AxiosError } from 'axios';
|
|
5
5
|
interface StoryWrapperProps {
|
|
6
6
|
children: React.ReactNode;
|
|
7
|
+
isDarkTheme?: boolean;
|
|
7
8
|
}
|
|
8
9
|
interface TestWrapperProps extends StoryWrapperProps {
|
|
9
10
|
store?: Store;
|
|
@@ -12,7 +13,7 @@ interface TestWrapperProps extends StoryWrapperProps {
|
|
|
12
13
|
export declare const TestWrapper: React.FC<TestWrapperProps>;
|
|
13
14
|
export declare const StoryWrapperFakeApi: React.FC<StoryWrapperProps>;
|
|
14
15
|
interface SnapshotStoryWrapperProps {
|
|
15
|
-
children: React.
|
|
16
|
+
children: React.ReactNode;
|
|
16
17
|
}
|
|
17
18
|
export declare const SnapshotStoryWrapper: React.FC<SnapshotStoryWrapperProps>;
|
|
18
19
|
export declare const fakeBackendError: AxiosError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "^17.0.2",
|
|
15
15
|
"react-redux": "^8.0.2",
|
|
16
|
-
"@mui/material": "^5.
|
|
17
|
-
"@opengeoweb/shared": "4.
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
19
|
-
"react-draggable": "^4.4.
|
|
16
|
+
"@mui/material": "^5.10.8",
|
|
17
|
+
"@opengeoweb/shared": "4.3.0",
|
|
18
|
+
"@opengeoweb/theme": "4.3.0",
|
|
19
|
+
"react-draggable": "^4.4.5",
|
|
20
20
|
"re-resizable": "^6.9.0",
|
|
21
21
|
"lodash": "^4.17.20",
|
|
22
|
-
"@opengeoweb/form-fields": "4.
|
|
22
|
+
"@opengeoweb/form-fields": "4.3.0",
|
|
23
23
|
"react-hook-form": "^6.12.1",
|
|
24
24
|
"moment": "^2.29.0",
|
|
25
25
|
"moment-timezone": "^0.5.31",
|
|
26
|
-
"@mui/
|
|
26
|
+
"@mui/x-date-pickers": "^5.0.4",
|
|
27
27
|
"axios": "^0.25.0",
|
|
28
|
-
"@opengeoweb/core": "4.
|
|
28
|
+
"@opengeoweb/core": "4.3.0",
|
|
29
29
|
"react-intl": "^5.17.5",
|
|
30
|
-
"@opengeoweb/webmap": "4.
|
|
30
|
+
"@opengeoweb/webmap": "4.3.0",
|
|
31
31
|
"throttle-debounce": "^3.0.1",
|
|
32
32
|
"proj4": "^2.6.2",
|
|
33
|
-
"react-sortablejs": "^6.
|
|
33
|
+
"react-sortablejs": "^6.1.4",
|
|
34
|
+
"sortablejs": "^1.15.0",
|
|
34
35
|
"react-window": "^1.8.7",
|
|
35
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
36
37
|
"immer": "^9.0.15",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@turf/turf": "^5.1.6",
|
|
40
41
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
41
42
|
"redux-saga": "^1.1.3",
|
|
42
|
-
"@opengeoweb/api": "4.
|
|
43
|
+
"@opengeoweb/api": "4.3.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {}
|
|
45
46
|
}
|