@opengeoweb/sigmet-airmet 1.2.2 → 2.1.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/lib/components/MapViewGeoJson/constants.d.ts +0 -29
- package/lib/components/ProductForms/ProductFormDialog.d.ts +3 -2
- package/lib/components/ProductForms/ProductFormFields/ValidUntil.d.ts +3 -0
- package/lib/utils/KNMIlayers.d.ts +15 -0
- package/lib/utils/mockdata/fakeAirmetList.d.ts +1 -0
- package/lib/utils/testUtils.d.ts +2 -0
- package/package.json +12 -12
- package/sigmet-airmet.esm.js +890 -658
- package/sigmet-airmet.umd.js +492 -442
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { mapTypes } from '@opengeoweb/core';
|
|
2
1
|
import { GeoJSONTemplate } from '../../types';
|
|
3
2
|
export declare const srsAndBboxDefault: {
|
|
4
3
|
bbox: {
|
|
@@ -9,34 +8,6 @@ export declare const srsAndBboxDefault: {
|
|
|
9
8
|
};
|
|
10
9
|
srs: string;
|
|
11
10
|
};
|
|
12
|
-
export declare const baseLayer: {
|
|
13
|
-
name: string;
|
|
14
|
-
title: string;
|
|
15
|
-
type: string;
|
|
16
|
-
layerType: mapTypes.LayerType;
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare const countryBorders: {
|
|
20
|
-
service: string;
|
|
21
|
-
name: string;
|
|
22
|
-
format: string;
|
|
23
|
-
layerType: mapTypes.LayerType;
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare const northSeaPlatforms: {
|
|
27
|
-
service: string;
|
|
28
|
-
name: string;
|
|
29
|
-
format: string;
|
|
30
|
-
layerType: mapTypes.LayerType;
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
};
|
|
33
|
-
export declare const majorAirportsEHAA: {
|
|
34
|
-
service: string;
|
|
35
|
-
name: string;
|
|
36
|
-
format: string;
|
|
37
|
-
layerType: mapTypes.LayerType;
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
};
|
|
40
11
|
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection;
|
|
41
12
|
export declare const simplePolygonGeoJSONHalfOfNL: GeoJSON.FeatureCollection;
|
|
42
13
|
export declare const featurePropsStart: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SigmetFromBackend, ProductType, AirmetFromBackend } from '../../types';
|
|
2
|
+
import { SigmetFromBackend, ProductType, AirmetFromBackend, CancelSigmet, CancelAirmet, Sigmet, Airmet } from '../../types';
|
|
3
|
+
export declare const prepareProductValues: (product: Sigmet | Airmet | CancelSigmet | CancelAirmet, productType: ProductType) => Sigmet | Airmet | CancelSigmet | CancelAirmet;
|
|
3
4
|
interface ProductFormDialogProps {
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
productType: ProductType;
|
|
@@ -7,4 +8,4 @@ interface ProductFormDialogProps {
|
|
|
7
8
|
productListItem?: SigmetFromBackend | AirmetFromBackend;
|
|
8
9
|
}
|
|
9
10
|
export declare const ProductFormDialog: React.FC<ProductFormDialogProps>;
|
|
10
|
-
export
|
|
11
|
+
export {};
|
|
@@ -5,5 +5,8 @@ interface ValidUntilProps {
|
|
|
5
5
|
isDisabled: boolean;
|
|
6
6
|
onChange?: () => void;
|
|
7
7
|
}
|
|
8
|
+
export declare const DEFAULT_VALID_TIME_SIGMET = 3;
|
|
9
|
+
export declare const DEFAULT_VALID_TIME_AIRMET = 1;
|
|
10
|
+
export declare const getDefaultHoursValid: (productType: ProductType) => number;
|
|
8
11
|
declare const ValidUntil: React.FC<ValidUntilProps>;
|
|
9
12
|
export default ValidUntil;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { mapTypes } from '@opengeoweb/core';
|
|
2
|
+
export declare const northSeaPlatforms: {
|
|
3
|
+
service: string;
|
|
4
|
+
name: string;
|
|
5
|
+
format: string;
|
|
6
|
+
layerType: mapTypes.LayerType;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const majorAirportsEHAA: {
|
|
10
|
+
service: string;
|
|
11
|
+
name: string;
|
|
12
|
+
format: string;
|
|
13
|
+
layerType: mapTypes.LayerType;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
};
|
|
@@ -6,3 +6,4 @@ export declare const fakePublishedAirmet: Airmet;
|
|
|
6
6
|
export declare const fakeCancelAirmet: CancelAirmet;
|
|
7
7
|
export declare const fakeNewAirmet: Airmet;
|
|
8
8
|
export declare const fakeDraftAirmetCloud: AirmetFromBackend;
|
|
9
|
+
export declare const airmetNoValidStartEnd: AirmetFromBackend;
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { CreateApi } from '@opengeoweb/api';
|
|
2
3
|
import { Store } from 'redux';
|
|
3
4
|
import { AxiosError } from 'axios';
|
|
4
5
|
interface StoryWrapperProps {
|
|
@@ -6,6 +7,7 @@ interface StoryWrapperProps {
|
|
|
6
7
|
}
|
|
7
8
|
interface TestWrapperProps extends StoryWrapperProps {
|
|
8
9
|
store?: Store;
|
|
10
|
+
createApi?: CreateApi;
|
|
9
11
|
}
|
|
10
12
|
export declare const TestWrapper: React.FC<TestWrapperProps>;
|
|
11
13
|
export declare const StoryWrapperFakeApi: React.FC<StoryWrapperProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,36 +13,36 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "16.14.0",
|
|
15
15
|
"@material-ui/core": "^4.11.0",
|
|
16
|
-
"@opengeoweb/theme": "1.
|
|
16
|
+
"@opengeoweb/theme": "2.1.0",
|
|
17
17
|
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
18
18
|
"@material-ui/icons": "^4.9.1",
|
|
19
|
-
"@opengeoweb/core": "1.
|
|
19
|
+
"@opengeoweb/core": "2.1.0",
|
|
20
20
|
"react-intl": "^5.17.5",
|
|
21
21
|
"react-redux": "7.2.2",
|
|
22
|
-
"@opengeoweb/webmap": "1.
|
|
22
|
+
"@opengeoweb/webmap": "2.1.0",
|
|
23
23
|
"moment": "^2.29.0",
|
|
24
24
|
"throttle-debounce": "^3.0.1",
|
|
25
25
|
"proj4": "^2.6.2",
|
|
26
|
-
"react-
|
|
27
|
-
"@opengeoweb/shared": "1.
|
|
26
|
+
"react-sortablejs": "^6.0.0",
|
|
27
|
+
"@opengeoweb/shared": "2.1.0",
|
|
28
28
|
"react-draggable": "^4.4.3",
|
|
29
29
|
"re-resizable": "^6.9.0",
|
|
30
30
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "1.
|
|
31
|
+
"@opengeoweb/form-fields": "2.1.0",
|
|
32
32
|
"react-hook-form": "^6.12.1",
|
|
33
33
|
"@material-ui/pickers": "^3.2.10",
|
|
34
34
|
"@date-io/moment": "^1.3.13",
|
|
35
35
|
"moment-timezone": "^0.5.31",
|
|
36
|
-
"axios": "^0.21.
|
|
37
|
-
"immer": "^9.0.2",
|
|
36
|
+
"axios": "^0.21.4",
|
|
38
37
|
"redux-dynamic-modules": "^5.2.0",
|
|
38
|
+
"redux": "^4.0.4",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
|
-
"
|
|
40
|
+
"immer": "^9.0.6",
|
|
41
41
|
"reselect": "^4.0.0",
|
|
42
|
-
"redux": "^
|
|
42
|
+
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
43
|
"redux-saga": "^1.1.3",
|
|
44
44
|
"@turf/turf": "^5.1.6",
|
|
45
|
-
"@opengeoweb/api": "1.
|
|
45
|
+
"@opengeoweb/api": "2.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {}
|
|
48
48
|
}
|