@opengeoweb/sigmet-airmet 2.8.0 → 2.12.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 +21 -66
- package/index.umd.js +28 -57
- package/lib/utils/testUtils.d.ts +1 -1
- package/package.json +10 -12
- package/assets/icons.d.ts +0 -4
package/index.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { FormControlLabel, Radio, Grid, Typography,
|
|
3
|
+
import { FormControlLabel, Radio, Grid, Typography, Tooltip, Button, Checkbox, MenuItem, FormHelperText, Dialog, DialogTitle, DialogContent, Card, CardContent, List, ListItem, Skeleton, Backdrop, CircularProgress } from '@mui/material';
|
|
4
4
|
import { useFormContext } from 'react-hook-form';
|
|
5
5
|
import { ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, containsNoCommas, isLatitude, isNonOrBothCoordinates, isLongitude, errorMessages, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
|
|
6
6
|
import { useApiContext, useApi, createApiInstance } from '@opengeoweb/api';
|
|
7
7
|
import produce, { produce as produce$1 } from 'immer';
|
|
8
8
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
9
|
-
import { mapTypes, mapSelectors, generateMapId, generateTimesliderId, SyncGroups, generateLayerId, mapActions, publicLayers, MapControls, LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, MapViewLayer, TimeSliderConnect } from '@opengeoweb/core';
|
|
9
|
+
import { mapTypes, mapSelectors, generateMapId, generateTimesliderId, SyncGroups, generateLayerId, mapActions, publicLayers, MapControls, LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, MapViewLayer, TimeSliderConnect, LegendConnect } from '@opengeoweb/core';
|
|
10
10
|
import * as turf from '@turf/turf';
|
|
11
11
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
12
12
|
import makeStyles from '@mui/styles/makeStyles';
|
|
13
13
|
import { useDraftFormHelpers, useIsMounted, StatusTag, AlertBanner, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, ConfirmationServiceProvider, usePoller } from '@opengeoweb/shared';
|
|
14
|
-
import {
|
|
14
|
+
import { Location, RegionDraw, PolygonDraw, FIRLandDraw, Delete, ChevronLeft, Info, Edit, Success, Clock } from '@opengeoweb/theme';
|
|
15
15
|
import moment from 'moment';
|
|
16
16
|
import { debounce } from 'lodash';
|
|
17
17
|
|
|
@@ -670,7 +670,10 @@ var MapViewGeoJson = function MapViewGeoJson(_ref) {
|
|
|
670
670
|
}, /*#__PURE__*/React.createElement(TimeSliderConnect, {
|
|
671
671
|
sourceId: timesliderId,
|
|
672
672
|
mapId: mapId
|
|
673
|
-
}))
|
|
673
|
+
})), /*#__PURE__*/React.createElement(LegendConnect, {
|
|
674
|
+
showMapId: true,
|
|
675
|
+
mapId: mapId
|
|
676
|
+
}));
|
|
674
677
|
};
|
|
675
678
|
|
|
676
679
|
var type = "FeatureCollection";
|
|
@@ -1295,52 +1298,6 @@ var Change = function Change(_ref) {
|
|
|
1295
1298
|
})))));
|
|
1296
1299
|
};
|
|
1297
1300
|
|
|
1298
|
-
/* *
|
|
1299
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1300
|
-
* you may not use this file except in compliance with the License.
|
|
1301
|
-
* You may obtain a copy of the License at
|
|
1302
|
-
*
|
|
1303
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1304
|
-
*
|
|
1305
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1306
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1307
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1308
|
-
* See the License for the specific language governing permissions and
|
|
1309
|
-
* limitations under the License.
|
|
1310
|
-
*
|
|
1311
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1312
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1313
|
-
* */
|
|
1314
|
-
var RegionDraw = function RegionDraw(props) {
|
|
1315
|
-
return /*#__PURE__*/React__default.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
1316
|
-
d: "M6,2 L6,2.999 L10,2.999 L10,2 L14,2 L14,2.999 L18,2.999 L18,2 L22,2 L22,6 L20.999,6 L20.999,10 L22,10 L22,14 L20.999,14 L20.999,18 L22,18 L22,22 L18,22 L18,20.999 L14,20.999 L14,22 L10,22 L10,20.999 L6,20.999 L6,22 L2,22 L2,18 L2.999,18 L2.999,14 L2,14 L2,10 L2.999,10 L2.999,6 L2,6 L2,2 L6,2 Z M10,4.999 L6,4.999 L6,6 L4.999,6 L4.999,10 L6,10 L6,14 L4.999,14 L4.999,18 L6,18 L6,18.999 L10,18.999 L10,18 L14,18 L14,18.999 L18,18.999 L18,18 L18.999,18 L18.999,14 L18,14 L18,10 L18.999,10 L18.999,6 L18,6 L18,4.999 L14,4.999 L14,6 L10,6 L10,4.999 Z"
|
|
1317
|
-
}));
|
|
1318
|
-
};
|
|
1319
|
-
var PolygonDraw = function PolygonDraw(props) {
|
|
1320
|
-
return /*#__PURE__*/React__default.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
1321
|
-
d: "M14,1 L14,4.113 L12.0044614,2.2 L11.994,5.221 L4.039,19 L5,19 L5,23 L1,23 L1,19 L2.307,19 L10.389,5 L10,5 L10,1 L14,1 Z M13.0044614,4.62000715 L23.2887637,14.4827842 L18.3738381,14.8752125 L20.4451897,19.755011 L18.7229079,20.4860763 L16.6515563,15.6062777 L12.9550728,18.8691758 L13.0044614,4.62000715 Z"
|
|
1322
|
-
}));
|
|
1323
|
-
};
|
|
1324
|
-
var FIRDraw = function FIRDraw(props) {
|
|
1325
|
-
return /*#__PURE__*/React__default.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React__default.createElement("g", {
|
|
1326
|
-
stroke: "none",
|
|
1327
|
-
strokeWidth: "1",
|
|
1328
|
-
fill: "none",
|
|
1329
|
-
fillRule: "evenodd"
|
|
1330
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
1331
|
-
id: "Group",
|
|
1332
|
-
transform: "translate(4.000000, 0.000000)"
|
|
1333
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
1334
|
-
d: "M14.8612239,11 L14.9115011,11.5388601 L15.4197993,11.75539 L15.5062084,11.9691775 L15.8660263,12.0777202 L15.7718043,12.6691807 L16,13.1878797 L15.5310922,13.8290155 L15.4230174,14.8586232 L14.4731116,14.8586232 L14.3413147,15.6661887 L14.7077015,15.7340105 L14.9889562,15.8690566 L15.2449574,15.7156639 L15.4230174,16.0774735 L15.196158,16.8150936 L14.2348991,17.6802157 L14.7272502,18.2072539 L13.3205268,18.746114 L12.047777,18.746114 L12.1147638,19.2849741 L12.5898001,19.6079144 L12.8870258,21.0848077 L12.3930048,21.6641694 L12.5166848,21.9119171 L12.851619,21.9119171 L11.9807902,22.6528497 L12.5859302,23.3547223 L12.249957,24 L11.1769482,23.865285 L10.9807329,23.3905749 L11.645856,21.9792746 L10.5070799,21.3056995 L9.7115087,21.5622995 L9.30131696,20.942772 L9.43529062,20.6321244 L9.30131696,20.3434493 L8.96368864,20.7746275 L8.497475,20.7668394 L8.497475,20.3434493 L8.134919,20.7668394 L7.69363303,20.3434493 L7.29171205,20.6321244 L7.49267254,21.1036269 L6.89145898,20.9259266 L6.49233131,21.3663084 L5.79757169,21.7882637 L5.48306763,21.7772021 L5.34909397,21.5751295 L4.81319933,21.3056995 L4.63461208,21.5622995 L4.14333102,21.5622995 L4,20.9528744 L4.81319933,20.7668394 L4.27730468,20.2279793 L5.14813348,19.7564767 L5.14813348,19.2849741 L5.61704129,19.2176166 L5.73827291,18.8328559 L6.15293593,18.5151739 L6.53844831,17.9057488 L7.15773839,17.1451281 L7.69363303,16.0774735 L8.02856718,14.4184153 L8.16254085,13.7634284 L8.22952768,13.4248705 L8.497475,13.4117175 L8.69843549,13.6943005 L9.30131696,13.492228 L9.50227745,13.9839918 L9.49196322,14.4352332 L9.90261766,14.3678756 L10.1051589,14.5216286 L9.63625111,14.9740933 L9.38186146,14.8817439 L9.1871628,15.0704029 L9.42694382,15.5309318 L9.23433013,15.7823834 L9.50227745,15.8161505 L8.89062784,16.4610105 L9.21171018,16.2596747 L9.50227745,16.4559585 L9.56926428,16.0774735 L10.5009881,15.5160892 L10.6410536,15.3108808 L11.1769482,15.1088083 L10.9090009,14.8192006 L10.9759877,14.2331606 L11.1769482,13.9637306 L10.8487404,13.9371218 L10.3461208,13.8963731 L10.1592144,13.6937797 L10.3461208,13.5595855 L10.3461208,12.4209228 L10.8420141,11.8756477 L11.8468165,11.4041451 L12.8845691,11.2020725 L13.8253549,11.1058964 L14.8612239,11 Z M8.7,12 L8.95,12.2592593 L8.85,12.6226929 L8.65485536,12.8067665 L8.35,13 L8.05,13 L8.07470604,12.7559881 L8.25,12.4129909 L8.7,12 Z M10.9249796,11.075 L11,11.1807665 L10.910154,11.2972935 L10.7129544,11.4419019 L10.5748988,11.475 L10.4321457,11.6478218 L10.223264,11.725 L10.0512821,11.925 L10,11.775 L10.1293376,11.524267 L10.9249796,11.075 Z M10,11.1649935 L9.93600937,11.2308124 L9.78162743,11.3137311 L9.5,11.4649935 L9.54166667,11.5649935 L9.375,11.7133072 L9.29166667,11.8350065 L9,11.7649935 L9.26666667,11.6149935 L9.46823822,11.3649935 L9.75309187,11.1649935 L10,11.1649935 Z M11.9408062,10.3440643 L12,10.4106778 L11.9104576,10.4940643 L11.8264041,10.4765329 L11.5493383,10.5835595 L11.3701418,10.5440643 L11.2526264,10.6324435 L11.110035,10.6559357 L11,10.5701453 L11,10.4440643 L11.0866007,10.3721815 L11.307998,10.4440643 L11.8507312,10.3604033 L11.9408062,10.3440643 Z",
|
|
1335
|
-
fill: "#0075A9"
|
|
1336
|
-
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
1337
|
-
id: "Path",
|
|
1338
|
-
stroke: "#0075A9",
|
|
1339
|
-
strokeWidth: "1.5",
|
|
1340
|
-
points: "3.6 22.2 0.1 21.7 3.2 14 2.2 7.2 4.9 0.5 9.3 3.2 14.5 3.2 14.4 10.7 15.3 12.4"
|
|
1341
|
-
}))));
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
1301
|
/* *
|
|
1345
1302
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1346
1303
|
* you may not use this file except in compliance with the License.
|
|
@@ -1390,11 +1347,11 @@ var DrawTools = function DrawTools(_ref) {
|
|
|
1390
1347
|
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1391
1348
|
title: "Drop a point as ".concat(type, " position")
|
|
1392
1349
|
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
1393
|
-
icon: /*#__PURE__*/React__default.createElement(
|
|
1350
|
+
icon: /*#__PURE__*/React__default.createElement(Location, {
|
|
1394
1351
|
className: classes.drawButtons
|
|
1395
1352
|
}),
|
|
1396
1353
|
value: true,
|
|
1397
|
-
checkedIcon: /*#__PURE__*/React__default.createElement(
|
|
1354
|
+
checkedIcon: /*#__PURE__*/React__default.createElement(Location, {
|
|
1398
1355
|
className: classes.drawButtonsSelected
|
|
1399
1356
|
}),
|
|
1400
1357
|
checked: drawMode === MapDrawMode.POINT,
|
|
@@ -1439,10 +1396,10 @@ var DrawTools = function DrawTools(_ref) {
|
|
|
1439
1396
|
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1440
1397
|
title: "Set FIR as ".concat(type, " position")
|
|
1441
1398
|
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
1442
|
-
icon: /*#__PURE__*/React__default.createElement(
|
|
1399
|
+
icon: /*#__PURE__*/React__default.createElement(FIRLandDraw, {
|
|
1443
1400
|
className: classes.drawButtons
|
|
1444
1401
|
}),
|
|
1445
|
-
checkedIcon: /*#__PURE__*/React__default.createElement(
|
|
1402
|
+
checkedIcon: /*#__PURE__*/React__default.createElement(FIRLandDraw, {
|
|
1446
1403
|
className: classes.drawButtonsSelected
|
|
1447
1404
|
}),
|
|
1448
1405
|
checked: drawMode === MapDrawMode.FIR,
|
|
@@ -4660,7 +4617,7 @@ var ContentDialog = function ContentDialog(_a) {
|
|
|
4660
4617
|
onClick: handleClose,
|
|
4661
4618
|
color: "secondary",
|
|
4662
4619
|
size: "medium",
|
|
4663
|
-
startIcon: /*#__PURE__*/React.createElement(
|
|
4620
|
+
startIcon: /*#__PURE__*/React.createElement(ChevronLeft, {
|
|
4664
4621
|
fontSize: "small",
|
|
4665
4622
|
color: "secondary"
|
|
4666
4623
|
}),
|
|
@@ -4692,14 +4649,12 @@ var getActiveStatus = function getActiveStatus(product, className) {
|
|
|
4692
4649
|
}
|
|
4693
4650
|
|
|
4694
4651
|
var active = moment(product.validDateStart) <= moment.utc(new Date());
|
|
4695
|
-
return active ? /*#__PURE__*/React__default.createElement(
|
|
4652
|
+
return active ? /*#__PURE__*/React__default.createElement(Success, {
|
|
4696
4653
|
"data-testid": "status-active",
|
|
4697
|
-
className: className
|
|
4698
|
-
|
|
4699
|
-
}) : /*#__PURE__*/React__default.createElement(Schedule, {
|
|
4654
|
+
className: className
|
|
4655
|
+
}) : /*#__PURE__*/React__default.createElement(Clock, {
|
|
4700
4656
|
"data-testid": "status-inactive",
|
|
4701
|
-
className: className
|
|
4702
|
-
fontSize: "small"
|
|
4657
|
+
className: className
|
|
4703
4658
|
});
|
|
4704
4659
|
};
|
|
4705
4660
|
|
|
@@ -4762,7 +4717,8 @@ var useStyles$2 = makeStyles({
|
|
|
4762
4717
|
},
|
|
4763
4718
|
activeStatus: {
|
|
4764
4719
|
color: '#72bb23',
|
|
4765
|
-
paddingLeft: '6px'
|
|
4720
|
+
paddingLeft: '6px',
|
|
4721
|
+
paddingTop: '3px'
|
|
4766
4722
|
},
|
|
4767
4723
|
font: {
|
|
4768
4724
|
fontWeight: 'normal'
|
|
@@ -4851,11 +4807,11 @@ var ProductListRow = function ProductListRow(_ref) {
|
|
|
4851
4807
|
}
|
|
4852
4808
|
}, TAC),
|
|
4853
4809
|
placement: "bottom-start"
|
|
4854
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4810
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Info, {
|
|
4855
4811
|
"data-testid": "productlistrow-tacicon",
|
|
4856
4812
|
color: "secondary",
|
|
4857
4813
|
fontSize: "small"
|
|
4858
|
-
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
4814
|
+
})))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
4859
4815
|
item: true,
|
|
4860
4816
|
xs: 9,
|
|
4861
4817
|
sm: 10,
|
|
@@ -4888,8 +4844,7 @@ var ProductListRow = function ProductListRow(_ref) {
|
|
|
4888
4844
|
}, product.status === 'DRAFT' ? /*#__PURE__*/React__default.createElement(Button, {
|
|
4889
4845
|
color: "secondary",
|
|
4890
4846
|
size: "small",
|
|
4891
|
-
startIcon: /*#__PURE__*/React__default.createElement(
|
|
4892
|
-
fontSize: "small",
|
|
4847
|
+
startIcon: /*#__PURE__*/React__default.createElement(Edit, {
|
|
4893
4848
|
color: "secondary"
|
|
4894
4849
|
})
|
|
4895
4850
|
}, "Draft") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product, classes.activeStatus)))));
|
package/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@mui/material'), require('react-hook-form'), require('@opengeoweb/form-fields'), require('@opengeoweb/api'), require('immer'), require('react-redux'), require('@opengeoweb/core'), require('@turf/turf'), require('@mui/styles/makeStyles'), require('@opengeoweb/shared'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', '@mui/material', 'react-hook-form', '@opengeoweb/form-fields', '@opengeoweb/api', 'immer', 'react-redux', '@opengeoweb/core', '@turf/turf', '@mui/styles/makeStyles', '@opengeoweb/shared', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SigmetAirmet = {}, global.React, global.material, global.reactHookForm, global.formFields, global.api, global.produce, global.reactRedux, global.core, global.turf, global.makeStyles, global.shared, global.
|
|
5
|
-
})(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@mui/material'), require('react-hook-form'), require('@opengeoweb/form-fields'), require('@opengeoweb/api'), require('immer'), require('react-redux'), require('@opengeoweb/core'), require('@turf/turf'), require('@mui/styles/makeStyles'), require('@opengeoweb/shared'), require('@opengeoweb/theme'), require('moment'), require('lodash')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', '@mui/material', 'react-hook-form', '@opengeoweb/form-fields', '@opengeoweb/api', 'immer', 'react-redux', '@opengeoweb/core', '@turf/turf', '@mui/styles/makeStyles', '@opengeoweb/shared', '@opengeoweb/theme', 'moment', 'lodash'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SigmetAirmet = {}, global.React, global.material, global.reactHookForm, global.formFields, global.api, global.produce, global.reactRedux, global.core, global.turf, global.makeStyles, global.shared, global.theme, global.moment, global.lodash));
|
|
5
|
+
})(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared, theme, moment, lodash) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -670,7 +670,10 @@
|
|
|
670
670
|
}, /*#__PURE__*/React__namespace.createElement(core.TimeSliderConnect, {
|
|
671
671
|
sourceId: timesliderId,
|
|
672
672
|
mapId: mapId
|
|
673
|
-
}))
|
|
673
|
+
})), /*#__PURE__*/React__namespace.createElement(core.LegendConnect, {
|
|
674
|
+
showMapId: true,
|
|
675
|
+
mapId: mapId
|
|
676
|
+
}));
|
|
674
677
|
};
|
|
675
678
|
|
|
676
679
|
var type = "FeatureCollection";
|
|
@@ -1248,36 +1251,6 @@
|
|
|
1248
1251
|
})))));
|
|
1249
1252
|
};
|
|
1250
1253
|
|
|
1251
|
-
var RegionDraw = function RegionDraw(props) {
|
|
1252
|
-
return /*#__PURE__*/React__default["default"].createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1253
|
-
d: "M6,2 L6,2.999 L10,2.999 L10,2 L14,2 L14,2.999 L18,2.999 L18,2 L22,2 L22,6 L20.999,6 L20.999,10 L22,10 L22,14 L20.999,14 L20.999,18 L22,18 L22,22 L18,22 L18,20.999 L14,20.999 L14,22 L10,22 L10,20.999 L6,20.999 L6,22 L2,22 L2,18 L2.999,18 L2.999,14 L2,14 L2,10 L2.999,10 L2.999,6 L2,6 L2,2 L6,2 Z M10,4.999 L6,4.999 L6,6 L4.999,6 L4.999,10 L6,10 L6,14 L4.999,14 L4.999,18 L6,18 L6,18.999 L10,18.999 L10,18 L14,18 L14,18.999 L18,18.999 L18,18 L18.999,18 L18.999,14 L18,14 L18,10 L18.999,10 L18.999,6 L18,6 L18,4.999 L14,4.999 L14,6 L10,6 L10,4.999 Z"
|
|
1254
|
-
}));
|
|
1255
|
-
};
|
|
1256
|
-
var PolygonDraw = function PolygonDraw(props) {
|
|
1257
|
-
return /*#__PURE__*/React__default["default"].createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1258
|
-
d: "M14,1 L14,4.113 L12.0044614,2.2 L11.994,5.221 L4.039,19 L5,19 L5,23 L1,23 L1,19 L2.307,19 L10.389,5 L10,5 L10,1 L14,1 Z M13.0044614,4.62000715 L23.2887637,14.4827842 L18.3738381,14.8752125 L20.4451897,19.755011 L18.7229079,20.4860763 L16.6515563,15.6062777 L12.9550728,18.8691758 L13.0044614,4.62000715 Z"
|
|
1259
|
-
}));
|
|
1260
|
-
};
|
|
1261
|
-
var FIRDraw = function FIRDraw(props) {
|
|
1262
|
-
return /*#__PURE__*/React__default["default"].createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
1263
|
-
stroke: "none",
|
|
1264
|
-
strokeWidth: "1",
|
|
1265
|
-
fill: "none",
|
|
1266
|
-
fillRule: "evenodd"
|
|
1267
|
-
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
1268
|
-
id: "Group",
|
|
1269
|
-
transform: "translate(4.000000, 0.000000)"
|
|
1270
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1271
|
-
d: "M14.8612239,11 L14.9115011,11.5388601 L15.4197993,11.75539 L15.5062084,11.9691775 L15.8660263,12.0777202 L15.7718043,12.6691807 L16,13.1878797 L15.5310922,13.8290155 L15.4230174,14.8586232 L14.4731116,14.8586232 L14.3413147,15.6661887 L14.7077015,15.7340105 L14.9889562,15.8690566 L15.2449574,15.7156639 L15.4230174,16.0774735 L15.196158,16.8150936 L14.2348991,17.6802157 L14.7272502,18.2072539 L13.3205268,18.746114 L12.047777,18.746114 L12.1147638,19.2849741 L12.5898001,19.6079144 L12.8870258,21.0848077 L12.3930048,21.6641694 L12.5166848,21.9119171 L12.851619,21.9119171 L11.9807902,22.6528497 L12.5859302,23.3547223 L12.249957,24 L11.1769482,23.865285 L10.9807329,23.3905749 L11.645856,21.9792746 L10.5070799,21.3056995 L9.7115087,21.5622995 L9.30131696,20.942772 L9.43529062,20.6321244 L9.30131696,20.3434493 L8.96368864,20.7746275 L8.497475,20.7668394 L8.497475,20.3434493 L8.134919,20.7668394 L7.69363303,20.3434493 L7.29171205,20.6321244 L7.49267254,21.1036269 L6.89145898,20.9259266 L6.49233131,21.3663084 L5.79757169,21.7882637 L5.48306763,21.7772021 L5.34909397,21.5751295 L4.81319933,21.3056995 L4.63461208,21.5622995 L4.14333102,21.5622995 L4,20.9528744 L4.81319933,20.7668394 L4.27730468,20.2279793 L5.14813348,19.7564767 L5.14813348,19.2849741 L5.61704129,19.2176166 L5.73827291,18.8328559 L6.15293593,18.5151739 L6.53844831,17.9057488 L7.15773839,17.1451281 L7.69363303,16.0774735 L8.02856718,14.4184153 L8.16254085,13.7634284 L8.22952768,13.4248705 L8.497475,13.4117175 L8.69843549,13.6943005 L9.30131696,13.492228 L9.50227745,13.9839918 L9.49196322,14.4352332 L9.90261766,14.3678756 L10.1051589,14.5216286 L9.63625111,14.9740933 L9.38186146,14.8817439 L9.1871628,15.0704029 L9.42694382,15.5309318 L9.23433013,15.7823834 L9.50227745,15.8161505 L8.89062784,16.4610105 L9.21171018,16.2596747 L9.50227745,16.4559585 L9.56926428,16.0774735 L10.5009881,15.5160892 L10.6410536,15.3108808 L11.1769482,15.1088083 L10.9090009,14.8192006 L10.9759877,14.2331606 L11.1769482,13.9637306 L10.8487404,13.9371218 L10.3461208,13.8963731 L10.1592144,13.6937797 L10.3461208,13.5595855 L10.3461208,12.4209228 L10.8420141,11.8756477 L11.8468165,11.4041451 L12.8845691,11.2020725 L13.8253549,11.1058964 L14.8612239,11 Z M8.7,12 L8.95,12.2592593 L8.85,12.6226929 L8.65485536,12.8067665 L8.35,13 L8.05,13 L8.07470604,12.7559881 L8.25,12.4129909 L8.7,12 Z M10.9249796,11.075 L11,11.1807665 L10.910154,11.2972935 L10.7129544,11.4419019 L10.5748988,11.475 L10.4321457,11.6478218 L10.223264,11.725 L10.0512821,11.925 L10,11.775 L10.1293376,11.524267 L10.9249796,11.075 Z M10,11.1649935 L9.93600937,11.2308124 L9.78162743,11.3137311 L9.5,11.4649935 L9.54166667,11.5649935 L9.375,11.7133072 L9.29166667,11.8350065 L9,11.7649935 L9.26666667,11.6149935 L9.46823822,11.3649935 L9.75309187,11.1649935 L10,11.1649935 Z M11.9408062,10.3440643 L12,10.4106778 L11.9104576,10.4940643 L11.8264041,10.4765329 L11.5493383,10.5835595 L11.3701418,10.5440643 L11.2526264,10.6324435 L11.110035,10.6559357 L11,10.5701453 L11,10.4440643 L11.0866007,10.3721815 L11.307998,10.4440643 L11.8507312,10.3604033 L11.9408062,10.3440643 Z",
|
|
1272
|
-
fill: "#0075A9"
|
|
1273
|
-
}), /*#__PURE__*/React__default["default"].createElement("polygon", {
|
|
1274
|
-
id: "Path",
|
|
1275
|
-
stroke: "#0075A9",
|
|
1276
|
-
strokeWidth: "1.5",
|
|
1277
|
-
points: "3.6 22.2 0.1 21.7 3.2 14 2.2 7.2 4.9 0.5 9.3 3.2 14.5 3.2 14.4 10.7 15.3 12.4"
|
|
1278
|
-
}))));
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
1254
|
/* *
|
|
1282
1255
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1283
1256
|
* you may not use this file except in compliance with the License.
|
|
@@ -1327,11 +1300,11 @@
|
|
|
1327
1300
|
}, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
|
|
1328
1301
|
title: "Drop a point as " + type + " position"
|
|
1329
1302
|
}, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
|
|
1330
|
-
icon: /*#__PURE__*/React__default["default"].createElement(
|
|
1303
|
+
icon: /*#__PURE__*/React__default["default"].createElement(theme.Location, {
|
|
1331
1304
|
className: classes.drawButtons
|
|
1332
1305
|
}),
|
|
1333
1306
|
value: true,
|
|
1334
|
-
checkedIcon: /*#__PURE__*/React__default["default"].createElement(
|
|
1307
|
+
checkedIcon: /*#__PURE__*/React__default["default"].createElement(theme.Location, {
|
|
1335
1308
|
className: classes.drawButtonsSelected
|
|
1336
1309
|
}),
|
|
1337
1310
|
checked: drawMode === MapDrawMode.POINT,
|
|
@@ -1344,10 +1317,10 @@
|
|
|
1344
1317
|
}, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
|
|
1345
1318
|
title: "Draw a box as " + type + " position"
|
|
1346
1319
|
}, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
|
|
1347
|
-
icon: /*#__PURE__*/React__default["default"].createElement(RegionDraw, {
|
|
1320
|
+
icon: /*#__PURE__*/React__default["default"].createElement(theme.RegionDraw, {
|
|
1348
1321
|
className: classes.drawButtons
|
|
1349
1322
|
}),
|
|
1350
|
-
checkedIcon: /*#__PURE__*/React__default["default"].createElement(RegionDraw, {
|
|
1323
|
+
checkedIcon: /*#__PURE__*/React__default["default"].createElement(theme.RegionDraw, {
|
|
1351
1324
|
className: classes.drawButtonsSelected
|
|
1352
1325
|
}),
|
|
1353
1326
|
checked: drawMode === MapDrawMode.BOX,
|
|
@@ -1360,10 +1333,10 @@
|
|
|
1360
1333
|
}, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
|
|
1361
1334
|
title: "Draw a shape as " + type + " position"
|
|
1362
1335
|
}, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
|
|
1363
|
-
icon: /*#__PURE__*/React__default["default"].createElement(PolygonDraw, {
|
|
1336
|
+
icon: /*#__PURE__*/React__default["default"].createElement(theme.PolygonDraw, {
|
|
1364
1337
|
className: classes.drawButtons
|
|
1365
1338
|
}),
|
|
1366
|
-
checkedIcon: /*#__PURE__*/React__default["default"].createElement(PolygonDraw, {
|
|
1339
|
+
checkedIcon: /*#__PURE__*/React__default["default"].createElement(theme.PolygonDraw, {
|
|
1367
1340
|
className: classes.drawButtonsSelected
|
|
1368
1341
|
}),
|
|
1369
1342
|
checked: drawMode === MapDrawMode.POLYGON,
|
|
@@ -1376,10 +1349,10 @@
|
|
|
1376
1349
|
}, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
|
|
1377
1350
|
title: "Set FIR as " + type + " position"
|
|
1378
1351
|
}, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
|
|
1379
|
-
icon: /*#__PURE__*/React__default["default"].createElement(
|
|
1352
|
+
icon: /*#__PURE__*/React__default["default"].createElement(theme.FIRLandDraw, {
|
|
1380
1353
|
className: classes.drawButtons
|
|
1381
1354
|
}),
|
|
1382
|
-
checkedIcon: /*#__PURE__*/React__default["default"].createElement(
|
|
1355
|
+
checkedIcon: /*#__PURE__*/React__default["default"].createElement(theme.FIRLandDraw, {
|
|
1383
1356
|
className: classes.drawButtonsSelected
|
|
1384
1357
|
}),
|
|
1385
1358
|
checked: drawMode === MapDrawMode.FIR,
|
|
@@ -1392,10 +1365,10 @@
|
|
|
1392
1365
|
}, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
|
|
1393
1366
|
title: "Remove geometry"
|
|
1394
1367
|
}, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
|
|
1395
|
-
icon: /*#__PURE__*/React__default["default"].createElement(
|
|
1368
|
+
icon: /*#__PURE__*/React__default["default"].createElement(theme.Delete, {
|
|
1396
1369
|
className: classes.drawButtons
|
|
1397
1370
|
}),
|
|
1398
|
-
checkedIcon: /*#__PURE__*/React__default["default"].createElement(
|
|
1371
|
+
checkedIcon: /*#__PURE__*/React__default["default"].createElement(theme.Delete, {
|
|
1399
1372
|
className: classes.drawButtonsSelected
|
|
1400
1373
|
}),
|
|
1401
1374
|
checked: drawMode === MapDrawMode.DELETE,
|
|
@@ -4550,7 +4523,7 @@
|
|
|
4550
4523
|
onClick: handleClose,
|
|
4551
4524
|
color: "secondary",
|
|
4552
4525
|
size: "medium",
|
|
4553
|
-
startIcon: /*#__PURE__*/React__namespace.createElement(
|
|
4526
|
+
startIcon: /*#__PURE__*/React__namespace.createElement(theme.ChevronLeft, {
|
|
4554
4527
|
fontSize: "small",
|
|
4555
4528
|
color: "secondary"
|
|
4556
4529
|
}),
|
|
@@ -4582,14 +4555,12 @@
|
|
|
4582
4555
|
}
|
|
4583
4556
|
|
|
4584
4557
|
var active = moment__default["default"](product.validDateStart) <= moment__default["default"].utc(new Date());
|
|
4585
|
-
return active ? /*#__PURE__*/React__default["default"].createElement(
|
|
4558
|
+
return active ? /*#__PURE__*/React__default["default"].createElement(theme.Success, {
|
|
4586
4559
|
"data-testid": "status-active",
|
|
4587
|
-
className: className
|
|
4588
|
-
|
|
4589
|
-
}) : /*#__PURE__*/React__default["default"].createElement(iconsMaterial.Schedule, {
|
|
4560
|
+
className: className
|
|
4561
|
+
}) : /*#__PURE__*/React__default["default"].createElement(theme.Clock, {
|
|
4590
4562
|
"data-testid": "status-inactive",
|
|
4591
|
-
className: className
|
|
4592
|
-
fontSize: "small"
|
|
4563
|
+
className: className
|
|
4593
4564
|
});
|
|
4594
4565
|
};
|
|
4595
4566
|
|
|
@@ -4654,7 +4625,8 @@
|
|
|
4654
4625
|
},
|
|
4655
4626
|
activeStatus: {
|
|
4656
4627
|
color: '#72bb23',
|
|
4657
|
-
paddingLeft: '6px'
|
|
4628
|
+
paddingLeft: '6px',
|
|
4629
|
+
paddingTop: '3px'
|
|
4658
4630
|
},
|
|
4659
4631
|
font: {
|
|
4660
4632
|
fontWeight: 'normal'
|
|
@@ -4738,11 +4710,11 @@
|
|
|
4738
4710
|
}
|
|
4739
4711
|
}, TAC),
|
|
4740
4712
|
placement: "bottom-start"
|
|
4741
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4713
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(theme.Info, {
|
|
4742
4714
|
"data-testid": "productlistrow-tacicon",
|
|
4743
4715
|
color: "secondary",
|
|
4744
4716
|
fontSize: "small"
|
|
4745
|
-
}))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
4717
|
+
})))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
4746
4718
|
item: true,
|
|
4747
4719
|
xs: 9,
|
|
4748
4720
|
sm: 10,
|
|
@@ -4775,8 +4747,7 @@
|
|
|
4775
4747
|
}, product.status === 'DRAFT' ? /*#__PURE__*/React__default["default"].createElement(material.Button, {
|
|
4776
4748
|
color: "secondary",
|
|
4777
4749
|
size: "small",
|
|
4778
|
-
startIcon: /*#__PURE__*/React__default["default"].createElement(
|
|
4779
|
-
fontSize: "small",
|
|
4750
|
+
startIcon: /*#__PURE__*/React__default["default"].createElement(theme.Edit, {
|
|
4780
4751
|
color: "secondary"
|
|
4781
4752
|
})
|
|
4782
4753
|
}, "Draft") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product, classes.activeStatus)))));
|
package/lib/utils/testUtils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,36 +12,34 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "^17.0.2",
|
|
15
|
-
"@mui/material": "^5.2.8",
|
|
16
15
|
"react-redux": "7.2.2",
|
|
16
|
+
"@mui/material": "^5.2.8",
|
|
17
17
|
"@mui/styles": "^5.2.3",
|
|
18
|
-
"@opengeoweb/shared": "2.
|
|
19
|
-
"@opengeoweb/theme": "2.
|
|
20
|
-
"@mui/icons-material": "^5.2.5",
|
|
18
|
+
"@opengeoweb/shared": "2.12.0",
|
|
19
|
+
"@opengeoweb/theme": "2.12.0",
|
|
21
20
|
"react-draggable": "^4.4.3",
|
|
22
21
|
"re-resizable": "^6.9.0",
|
|
23
22
|
"lodash": "^4.17.20",
|
|
24
|
-
"@opengeoweb/form-fields": "2.
|
|
23
|
+
"@opengeoweb/form-fields": "2.12.0",
|
|
25
24
|
"react-hook-form": "^6.12.1",
|
|
26
25
|
"moment": "^2.29.0",
|
|
27
26
|
"moment-timezone": "^0.5.31",
|
|
28
27
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
29
28
|
"axios": "^0.25.0",
|
|
30
|
-
"@opengeoweb/core": "2.
|
|
29
|
+
"@opengeoweb/core": "2.12.0",
|
|
31
30
|
"react-intl": "^5.17.5",
|
|
32
|
-
"@opengeoweb/webmap": "2.
|
|
31
|
+
"@opengeoweb/webmap": "2.12.0",
|
|
33
32
|
"throttle-debounce": "^3.0.1",
|
|
34
33
|
"proj4": "^2.6.2",
|
|
35
34
|
"react-sortablejs": "^6.0.0",
|
|
35
|
+
"immer": "^9.0.15",
|
|
36
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
|
-
"
|
|
38
|
-
"immer": "^9.0.6",
|
|
37
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
39
38
|
"lodash.clonedeep": "^4.5.0",
|
|
40
39
|
"@turf/turf": "^5.1.6",
|
|
41
|
-
"reselect": "^4.1.5",
|
|
42
40
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
41
|
"redux-saga": "^1.1.3",
|
|
44
|
-
"@opengeoweb/api": "2.
|
|
42
|
+
"@opengeoweb/api": "2.12.0"
|
|
45
43
|
},
|
|
46
44
|
"peerDependencies": {}
|
|
47
45
|
}
|
package/assets/icons.d.ts
DELETED