@opengeoweb/sigmet-airmet 4.18.0 → 4.19.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 +12 -17
- package/index.umd.js +11 -16
- package/lib/components/ProductForms/ProductFormFields/Levels.d.ts +2 -2
- package/package.json +13 -12
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { Box, Button, FormControlLabel, Radio, Grid, Typography, Checkbox, MenuItem, FormHelperText, useTheme, Dialog, DialogTitle, DialogContent, Card, LinearProgress, List,
|
|
3
|
+
import { Box, Button, FormControlLabel, Radio, Grid, Typography, Checkbox, MenuItem, FormHelperText, useTheme, Dialog, DialogTitle, DialogContent, Card, LinearProgress, List, ListItemButton, Backdrop, CircularProgress } from '@mui/material';
|
|
4
4
|
import { useFormContext } from 'react-hook-form';
|
|
5
5
|
import { useDraftFormHelpers, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
6
6
|
import { useApiContext, useApi, createApiInstance, createNonAuthApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
@@ -1558,8 +1558,8 @@ var DrawTools = function DrawTools(_ref) {
|
|
|
1558
1558
|
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1559
1559
|
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1560
1560
|
* */
|
|
1561
|
-
var DEFAULT_ROUNDING_LEVELS_FL =
|
|
1562
|
-
var DEFAULT_ROUNDING_LEVELS_FT =
|
|
1561
|
+
var DEFAULT_ROUNDING_LEVELS_FL = 5;
|
|
1562
|
+
var DEFAULT_ROUNDING_LEVELS_FT = 500;
|
|
1563
1563
|
var DEFAULT_ROUNDING_LEVELS_M = 1;
|
|
1564
1564
|
var getLevelInvalidStepsForFLUnitMessage = function getLevelInvalidStepsForFLUnitMessage() {
|
|
1565
1565
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_ROUNDING_LEVELS_FL;
|
|
@@ -4187,15 +4187,15 @@ var fir_areas$1 = {
|
|
|
4187
4187
|
"EGPX"
|
|
4188
4188
|
],
|
|
4189
4189
|
level_min: {
|
|
4190
|
-
FT:
|
|
4190
|
+
FT: 500,
|
|
4191
4191
|
FL: 50
|
|
4192
4192
|
},
|
|
4193
4193
|
level_max: {
|
|
4194
|
-
FT:
|
|
4194
|
+
FT: 4500,
|
|
4195
4195
|
FL: 650
|
|
4196
4196
|
},
|
|
4197
|
-
level_rounding_FL:
|
|
4198
|
-
level_rounding_FT:
|
|
4197
|
+
level_rounding_FL: 5,
|
|
4198
|
+
level_rounding_FT: 500,
|
|
4199
4199
|
level_rounding_M: 1,
|
|
4200
4200
|
movement_min: {
|
|
4201
4201
|
KT: 5,
|
|
@@ -5717,15 +5717,15 @@ var fir_areas = {
|
|
|
5717
5717
|
visibility_rounding_below: 50,
|
|
5718
5718
|
visibility_rounding_above: 100,
|
|
5719
5719
|
level_min: {
|
|
5720
|
-
FT:
|
|
5720
|
+
FT: 500,
|
|
5721
5721
|
FL: 50
|
|
5722
5722
|
},
|
|
5723
5723
|
level_max: {
|
|
5724
|
-
FT:
|
|
5724
|
+
FT: 4500,
|
|
5725
5725
|
FL: 100
|
|
5726
5726
|
},
|
|
5727
|
-
level_rounding_FL:
|
|
5728
|
-
level_rounding_FT:
|
|
5727
|
+
level_rounding_FL: 5,
|
|
5728
|
+
level_rounding_FT: 500,
|
|
5729
5729
|
level_rounding_M: 1,
|
|
5730
5730
|
movement_min: {
|
|
5731
5731
|
KT: 5,
|
|
@@ -9218,9 +9218,8 @@ var ProductList = function ProductList(_ref) {
|
|
|
9218
9218
|
}
|
|
9219
9219
|
}, productList.map(function (productListItem, index) {
|
|
9220
9220
|
var product = productListItem[productType];
|
|
9221
|
-
return /*#__PURE__*/React__default.createElement(
|
|
9221
|
+
return /*#__PURE__*/React__default.createElement(ListItemButton, {
|
|
9222
9222
|
"data-testid": "productListItem",
|
|
9223
|
-
button: true,
|
|
9224
9223
|
onClick: function onClick() {
|
|
9225
9224
|
onClickProductRow(productListItem);
|
|
9226
9225
|
},
|
|
@@ -9830,7 +9829,6 @@ var SigmetComponentsLookUp = function SigmetComponentsLookUp(payload, _ref) {
|
|
|
9830
9829
|
return /*#__PURE__*/React.createElement(ConnectedModuleWrapper, {
|
|
9831
9830
|
component: AviationProductApiWrapper,
|
|
9832
9831
|
payload: payload,
|
|
9833
|
-
"data-testid": "sigmetModule",
|
|
9834
9832
|
config: config,
|
|
9835
9833
|
auth: auth,
|
|
9836
9834
|
onSetAuth: onSetAuth,
|
|
@@ -9840,7 +9838,6 @@ var SigmetComponentsLookUp = function SigmetComponentsLookUp(payload, _ref) {
|
|
|
9840
9838
|
}
|
|
9841
9839
|
|
|
9842
9840
|
return /*#__PURE__*/React.createElement(AviationProductApiWrapper, {
|
|
9843
|
-
"data-testid": "sigmetModule",
|
|
9844
9841
|
config: config,
|
|
9845
9842
|
auth: auth,
|
|
9846
9843
|
onSetAuth: onSetAuth,
|
|
@@ -9883,7 +9880,6 @@ var AirmetComponentsLookUp = function AirmetComponentsLookUp(payload, _ref) {
|
|
|
9883
9880
|
return /*#__PURE__*/React.createElement(ConnectedModuleWrapper, {
|
|
9884
9881
|
component: AviationProductApiWrapper,
|
|
9885
9882
|
payload: payload,
|
|
9886
|
-
"data-testid": "airmetModule",
|
|
9887
9883
|
config: config,
|
|
9888
9884
|
auth: auth,
|
|
9889
9885
|
onSetAuth: onSetAuth,
|
|
@@ -9893,7 +9889,6 @@ var AirmetComponentsLookUp = function AirmetComponentsLookUp(payload, _ref) {
|
|
|
9893
9889
|
}
|
|
9894
9890
|
|
|
9895
9891
|
return /*#__PURE__*/React.createElement(AviationProductApiWrapper, {
|
|
9896
|
-
"data-testid": "airmetModule",
|
|
9897
9892
|
config: config,
|
|
9898
9893
|
auth: auth,
|
|
9899
9894
|
onSetAuth: onSetAuth,
|
package/index.umd.js
CHANGED
|
@@ -1530,8 +1530,8 @@
|
|
|
1530
1530
|
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1531
1531
|
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1532
1532
|
* */
|
|
1533
|
-
var DEFAULT_ROUNDING_LEVELS_FL =
|
|
1534
|
-
var DEFAULT_ROUNDING_LEVELS_FT =
|
|
1533
|
+
var DEFAULT_ROUNDING_LEVELS_FL = 5;
|
|
1534
|
+
var DEFAULT_ROUNDING_LEVELS_FT = 500;
|
|
1535
1535
|
var DEFAULT_ROUNDING_LEVELS_M = 1;
|
|
1536
1536
|
var getLevelInvalidStepsForFLUnitMessage = function getLevelInvalidStepsForFLUnitMessage(value) {
|
|
1537
1537
|
if (value === void 0) {
|
|
@@ -4114,15 +4114,15 @@
|
|
|
4114
4114
|
"EGPX"
|
|
4115
4115
|
],
|
|
4116
4116
|
level_min: {
|
|
4117
|
-
FT:
|
|
4117
|
+
FT: 500,
|
|
4118
4118
|
FL: 50
|
|
4119
4119
|
},
|
|
4120
4120
|
level_max: {
|
|
4121
|
-
FT:
|
|
4121
|
+
FT: 4500,
|
|
4122
4122
|
FL: 650
|
|
4123
4123
|
},
|
|
4124
|
-
level_rounding_FL:
|
|
4125
|
-
level_rounding_FT:
|
|
4124
|
+
level_rounding_FL: 5,
|
|
4125
|
+
level_rounding_FT: 500,
|
|
4126
4126
|
level_rounding_M: 1,
|
|
4127
4127
|
movement_min: {
|
|
4128
4128
|
KT: 5,
|
|
@@ -5644,15 +5644,15 @@
|
|
|
5644
5644
|
visibility_rounding_below: 50,
|
|
5645
5645
|
visibility_rounding_above: 100,
|
|
5646
5646
|
level_min: {
|
|
5647
|
-
FT:
|
|
5647
|
+
FT: 500,
|
|
5648
5648
|
FL: 50
|
|
5649
5649
|
},
|
|
5650
5650
|
level_max: {
|
|
5651
|
-
FT:
|
|
5651
|
+
FT: 4500,
|
|
5652
5652
|
FL: 100
|
|
5653
5653
|
},
|
|
5654
|
-
level_rounding_FL:
|
|
5655
|
-
level_rounding_FT:
|
|
5654
|
+
level_rounding_FL: 5,
|
|
5655
|
+
level_rounding_FT: 500,
|
|
5656
5656
|
level_rounding_M: 1,
|
|
5657
5657
|
movement_min: {
|
|
5658
5658
|
KT: 5,
|
|
@@ -9150,9 +9150,8 @@
|
|
|
9150
9150
|
}
|
|
9151
9151
|
}, productList.map(function (productListItem, index) {
|
|
9152
9152
|
var product = productListItem[productType];
|
|
9153
|
-
return /*#__PURE__*/React__default["default"].createElement(material.
|
|
9153
|
+
return /*#__PURE__*/React__default["default"].createElement(material.ListItemButton, {
|
|
9154
9154
|
"data-testid": "productListItem",
|
|
9155
|
-
button: true,
|
|
9156
9155
|
onClick: function onClick() {
|
|
9157
9156
|
onClickProductRow(productListItem);
|
|
9158
9157
|
},
|
|
@@ -9724,7 +9723,6 @@
|
|
|
9724
9723
|
return /*#__PURE__*/React__namespace.createElement(ConnectedModuleWrapper, {
|
|
9725
9724
|
component: AviationProductApiWrapper,
|
|
9726
9725
|
payload: payload,
|
|
9727
|
-
"data-testid": "sigmetModule",
|
|
9728
9726
|
config: config,
|
|
9729
9727
|
auth: auth,
|
|
9730
9728
|
onSetAuth: onSetAuth,
|
|
@@ -9734,7 +9732,6 @@
|
|
|
9734
9732
|
}
|
|
9735
9733
|
|
|
9736
9734
|
return /*#__PURE__*/React__namespace.createElement(AviationProductApiWrapper, {
|
|
9737
|
-
"data-testid": "sigmetModule",
|
|
9738
9735
|
config: config,
|
|
9739
9736
|
auth: auth,
|
|
9740
9737
|
onSetAuth: onSetAuth,
|
|
@@ -9781,7 +9778,6 @@
|
|
|
9781
9778
|
return /*#__PURE__*/React__namespace.createElement(ConnectedModuleWrapper, {
|
|
9782
9779
|
component: AviationProductApiWrapper,
|
|
9783
9780
|
payload: payload,
|
|
9784
|
-
"data-testid": "airmetModule",
|
|
9785
9781
|
config: config,
|
|
9786
9782
|
auth: auth,
|
|
9787
9783
|
onSetAuth: onSetAuth,
|
|
@@ -9791,7 +9787,6 @@
|
|
|
9791
9787
|
}
|
|
9792
9788
|
|
|
9793
9789
|
return /*#__PURE__*/React__namespace.createElement(AviationProductApiWrapper, {
|
|
9794
|
-
"data-testid": "airmetModule",
|
|
9795
9790
|
config: config,
|
|
9796
9791
|
auth: auth,
|
|
9797
9792
|
onSetAuth: onSetAuth,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConfigurableFormFieldProps, ProductConfig } from '../../../types';
|
|
3
|
-
export declare const DEFAULT_ROUNDING_LEVELS_FL =
|
|
4
|
-
export declare const DEFAULT_ROUNDING_LEVELS_FT =
|
|
3
|
+
export declare const DEFAULT_ROUNDING_LEVELS_FL = 5;
|
|
4
|
+
export declare const DEFAULT_ROUNDING_LEVELS_FT = 500;
|
|
5
5
|
export declare const DEFAULT_ROUNDING_LEVELS_M = 1;
|
|
6
6
|
export declare const getLevelInvalidStepsForFLUnitMessage: (value?: number) => string;
|
|
7
7
|
export declare const getLevelInvalidStepsForFTUnitMessage: (value?: number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.1",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,39 +13,40 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "^18.2.0",
|
|
15
15
|
"react-redux": "^8.0.4",
|
|
16
|
-
"@mui/material": "^5.
|
|
17
|
-
"@opengeoweb/shared": "4.
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
16
|
+
"@mui/material": "^5.12.0",
|
|
17
|
+
"@opengeoweb/shared": "4.19.1",
|
|
18
|
+
"@opengeoweb/theme": "4.19.1",
|
|
19
|
+
"@mui/x-date-pickers": "^6.2.1",
|
|
19
20
|
"react-draggable": "^4.4.5",
|
|
20
21
|
"re-resizable": "^6.9.0",
|
|
21
22
|
"@redux-eggs/core": "^2.2.0",
|
|
22
23
|
"lodash": "^4.17.20",
|
|
23
24
|
"axios": "^0.25.0",
|
|
24
25
|
"date-fns": "^2.29.3",
|
|
25
|
-
"@opengeoweb/core": "4.
|
|
26
|
+
"@opengeoweb/core": "4.19.1",
|
|
26
27
|
"moment": "^2.29.0",
|
|
27
|
-
"@opengeoweb/webmap": "4.
|
|
28
|
+
"@opengeoweb/webmap": "4.19.1",
|
|
28
29
|
"throttle-debounce": "^3.0.1",
|
|
29
30
|
"proj4": "^2.6.2",
|
|
30
|
-
"@opengeoweb/api": "4.
|
|
31
|
+
"@opengeoweb/api": "4.19.1",
|
|
31
32
|
"react-intl": "^5.17.5",
|
|
32
33
|
"react-sortablejs": "^6.1.4",
|
|
33
34
|
"sortablejs": "^1.15.0",
|
|
34
35
|
"immer": "^9.0.15",
|
|
36
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
35
37
|
"react-window": "^1.8.7",
|
|
36
|
-
"@opengeoweb/form-fields": "4.
|
|
38
|
+
"@opengeoweb/form-fields": "4.19.1",
|
|
37
39
|
"react-hook-form": "^7.41.5",
|
|
38
40
|
"moment-timezone": "^0.5.31",
|
|
39
|
-
"
|
|
40
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
41
|
+
"react-resize-detector": "^9.1.0",
|
|
41
42
|
"lodash.clonedeep": "^4.5.0",
|
|
42
43
|
"@turf/turf": "^5.1.6",
|
|
43
44
|
"react-router-dom": "^6.4.2",
|
|
44
|
-
"@mui/system": "^5.
|
|
45
|
+
"@mui/system": "^5.12.0",
|
|
45
46
|
"redux-saga": "^1.2.1",
|
|
46
47
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
47
48
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
48
|
-
"@opengeoweb/authentication": "4.
|
|
49
|
+
"@opengeoweb/authentication": "4.19.1",
|
|
49
50
|
"query-string": "^6.13.7",
|
|
50
51
|
"ajv": "^8.12.0",
|
|
51
52
|
"ajv-merge-patch": "^5.0.1"
|