@opengeoweb/sigmet-airmet 2.6.0 → 2.9.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 CHANGED
@@ -1,19 +1,20 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { FormControlLabel, Radio, Grid, Typography, SvgIcon, Tooltip, Button, Checkbox, MenuItem, FormHelperText, Dialog, DialogTitle, DialogContent, Card, CardContent, List, ListItem, Skeleton, Backdrop, CircularProgress } from '@mui/material';
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 { LocationOn, Delete, ArrowBackIos, InfoOutlined, Create, CheckCircle, Schedule } from '@mui/icons-material';
14
+ import { Location, RegionDraw, PolygonDraw, FIRLandDraw, Delete } from '@opengeoweb/icons';
15
15
  import moment from 'moment';
16
16
  import { debounce } from 'lodash';
17
+ import { ArrowBackIos, InfoOutlined, Create, CheckCircle, Schedule } from '@mui/icons-material';
17
18
 
18
19
  function _typeof(obj) {
19
20
  "@babel/helpers - typeof";
@@ -670,7 +671,10 @@ var MapViewGeoJson = function MapViewGeoJson(_ref) {
670
671
  }, /*#__PURE__*/React.createElement(TimeSliderConnect, {
671
672
  sourceId: timesliderId,
672
673
  mapId: mapId
673
- })));
674
+ })), /*#__PURE__*/React.createElement(LegendConnect, {
675
+ showMapId: true,
676
+ mapId: mapId
677
+ }));
674
678
  };
675
679
 
676
680
  var type = "FeatureCollection";
@@ -1295,52 +1299,6 @@ var Change = function Change(_ref) {
1295
1299
  })))));
1296
1300
  };
1297
1301
 
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
1302
  /* *
1345
1303
  * Licensed under the Apache License, Version 2.0 (the "License");
1346
1304
  * you may not use this file except in compliance with the License.
@@ -1390,11 +1348,11 @@ var DrawTools = function DrawTools(_ref) {
1390
1348
  }, /*#__PURE__*/React__default.createElement(Tooltip, {
1391
1349
  title: "Drop a point as ".concat(type, " position")
1392
1350
  }, /*#__PURE__*/React__default.createElement(Radio, {
1393
- icon: /*#__PURE__*/React__default.createElement(LocationOn, {
1351
+ icon: /*#__PURE__*/React__default.createElement(Location, {
1394
1352
  className: classes.drawButtons
1395
1353
  }),
1396
1354
  value: true,
1397
- checkedIcon: /*#__PURE__*/React__default.createElement(LocationOn, {
1355
+ checkedIcon: /*#__PURE__*/React__default.createElement(Location, {
1398
1356
  className: classes.drawButtonsSelected
1399
1357
  }),
1400
1358
  checked: drawMode === MapDrawMode.POINT,
@@ -1439,10 +1397,10 @@ var DrawTools = function DrawTools(_ref) {
1439
1397
  }, /*#__PURE__*/React__default.createElement(Tooltip, {
1440
1398
  title: "Set FIR as ".concat(type, " position")
1441
1399
  }, /*#__PURE__*/React__default.createElement(Radio, {
1442
- icon: /*#__PURE__*/React__default.createElement(FIRDraw, {
1400
+ icon: /*#__PURE__*/React__default.createElement(FIRLandDraw, {
1443
1401
  className: classes.drawButtons
1444
1402
  }),
1445
- checkedIcon: /*#__PURE__*/React__default.createElement(FIRDraw, {
1403
+ checkedIcon: /*#__PURE__*/React__default.createElement(FIRLandDraw, {
1446
1404
  className: classes.drawButtonsSelected
1447
1405
  }),
1448
1406
  checked: drawMode === MapDrawMode.FIR,
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('@mui/icons-material'), 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', '@mui/icons-material', '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.iconsMaterial, global.moment, global.lodash));
5
- })(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared, iconsMaterial, moment, lodash) { 'use strict';
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/icons'), require('moment'), require('lodash'), require('@mui/icons-material')) :
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/icons', 'moment', 'lodash', '@mui/icons-material'], 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.icons, global.moment, global.lodash, global.iconsMaterial));
5
+ })(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared, icons, moment, lodash, iconsMaterial) { '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(iconsMaterial.LocationOn, {
1303
+ icon: /*#__PURE__*/React__default["default"].createElement(icons.Location, {
1331
1304
  className: classes.drawButtons
1332
1305
  }),
1333
1306
  value: true,
1334
- checkedIcon: /*#__PURE__*/React__default["default"].createElement(iconsMaterial.LocationOn, {
1307
+ checkedIcon: /*#__PURE__*/React__default["default"].createElement(icons.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(icons.RegionDraw, {
1348
1321
  className: classes.drawButtons
1349
1322
  }),
1350
- checkedIcon: /*#__PURE__*/React__default["default"].createElement(RegionDraw, {
1323
+ checkedIcon: /*#__PURE__*/React__default["default"].createElement(icons.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(icons.PolygonDraw, {
1364
1337
  className: classes.drawButtons
1365
1338
  }),
1366
- checkedIcon: /*#__PURE__*/React__default["default"].createElement(PolygonDraw, {
1339
+ checkedIcon: /*#__PURE__*/React__default["default"].createElement(icons.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(FIRDraw, {
1352
+ icon: /*#__PURE__*/React__default["default"].createElement(icons.FIRLandDraw, {
1380
1353
  className: classes.drawButtons
1381
1354
  }),
1382
- checkedIcon: /*#__PURE__*/React__default["default"].createElement(FIRDraw, {
1355
+ checkedIcon: /*#__PURE__*/React__default["default"].createElement(icons.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(iconsMaterial.Delete, {
1368
+ icon: /*#__PURE__*/React__default["default"].createElement(icons.Delete, {
1396
1369
  className: classes.drawButtons
1397
1370
  }),
1398
- checkedIcon: /*#__PURE__*/React__default["default"].createElement(iconsMaterial.Delete, {
1371
+ checkedIcon: /*#__PURE__*/React__default["default"].createElement(icons.Delete, {
1399
1372
  className: classes.drawButtonsSelected
1400
1373
  }),
1401
1374
  checked: drawMode === MapDrawMode.DELETE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "2.6.0",
3
+ "version": "2.9.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,36 +12,38 @@
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.6.0",
19
- "@opengeoweb/theme": "2.6.0",
18
+ "@opengeoweb/shared": "2.9.0",
19
+ "@opengeoweb/theme": "2.9.0",
20
20
  "@mui/icons-material": "^5.2.5",
21
21
  "react-draggable": "^4.4.3",
22
22
  "re-resizable": "^6.9.0",
23
23
  "lodash": "^4.17.20",
24
- "@opengeoweb/form-fields": "2.6.0",
24
+ "@opengeoweb/form-fields": "2.9.0",
25
25
  "react-hook-form": "^6.12.1",
26
26
  "moment": "^2.29.0",
27
27
  "moment-timezone": "^0.5.31",
28
28
  "@mui/lab": "^5.0.0-alpha.64",
29
29
  "axios": "^0.25.0",
30
- "@opengeoweb/core": "2.6.0",
30
+ "@opengeoweb/core": "2.9.0",
31
31
  "react-intl": "^5.17.5",
32
- "@opengeoweb/webmap": "2.6.0",
32
+ "@opengeoweb/webmap": "2.9.0",
33
33
  "throttle-debounce": "^3.0.1",
34
34
  "proj4": "^2.6.2",
35
35
  "react-sortablejs": "^6.0.0",
36
+ "immer": "^9.0.15",
36
37
  "redux-dynamic-modules": "^5.2.0",
37
38
  "redux": "^4.0.4",
38
- "immer": "^9.0.6",
39
39
  "lodash.clonedeep": "^4.5.0",
40
40
  "@turf/turf": "^5.1.6",
41
41
  "reselect": "^4.1.5",
42
42
  "redux-dynamic-modules-saga": "^5.2.0",
43
+ "@reduxjs/toolkit": "^1.8.3",
43
44
  "redux-saga": "^1.1.3",
44
- "@opengeoweb/api": "2.6.0"
45
+ "@opengeoweb/api": "2.9.0",
46
+ "@opengeoweb/icons": "2.9.0"
45
47
  },
46
48
  "peerDependencies": {}
47
49
  }
package/assets/icons.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { SvgIconProps } from '@mui/material';
2
- export declare const RegionDraw: (props: SvgIconProps) => JSX.Element;
3
- export declare const PolygonDraw: (props: SvgIconProps) => JSX.Element;
4
- export declare const FIRDraw: (props: SvgIconProps) => JSX.Element;