@opengeoweb/sigmet-airmet 2.9.0 → 2.10.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 +11 -14
- package/index.umd.js +14 -16
- package/lib/utils/testUtils.d.ts +1 -1
- package/package.json +9 -11
package/index.esm.js
CHANGED
|
@@ -11,10 +11,9 @@ 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 { Location, RegionDraw, PolygonDraw, FIRLandDraw, Delete } from '@opengeoweb/icons';
|
|
14
|
+
import { Location, RegionDraw, PolygonDraw, FIRLandDraw, Delete, ChevronLeft, Info, Edit, Success, Clock } 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';
|
|
18
17
|
|
|
19
18
|
function _typeof(obj) {
|
|
20
19
|
"@babel/helpers - typeof";
|
|
@@ -4618,7 +4617,7 @@ var ContentDialog = function ContentDialog(_a) {
|
|
|
4618
4617
|
onClick: handleClose,
|
|
4619
4618
|
color: "secondary",
|
|
4620
4619
|
size: "medium",
|
|
4621
|
-
startIcon: /*#__PURE__*/React.createElement(
|
|
4620
|
+
startIcon: /*#__PURE__*/React.createElement(ChevronLeft, {
|
|
4622
4621
|
fontSize: "small",
|
|
4623
4622
|
color: "secondary"
|
|
4624
4623
|
}),
|
|
@@ -4650,14 +4649,12 @@ var getActiveStatus = function getActiveStatus(product, className) {
|
|
|
4650
4649
|
}
|
|
4651
4650
|
|
|
4652
4651
|
var active = moment(product.validDateStart) <= moment.utc(new Date());
|
|
4653
|
-
return active ? /*#__PURE__*/React__default.createElement(
|
|
4652
|
+
return active ? /*#__PURE__*/React__default.createElement(Success, {
|
|
4654
4653
|
"data-testid": "status-active",
|
|
4655
|
-
className: className
|
|
4656
|
-
|
|
4657
|
-
}) : /*#__PURE__*/React__default.createElement(Schedule, {
|
|
4654
|
+
className: className
|
|
4655
|
+
}) : /*#__PURE__*/React__default.createElement(Clock, {
|
|
4658
4656
|
"data-testid": "status-inactive",
|
|
4659
|
-
className: className
|
|
4660
|
-
fontSize: "small"
|
|
4657
|
+
className: className
|
|
4661
4658
|
});
|
|
4662
4659
|
};
|
|
4663
4660
|
|
|
@@ -4720,7 +4717,8 @@ var useStyles$2 = makeStyles({
|
|
|
4720
4717
|
},
|
|
4721
4718
|
activeStatus: {
|
|
4722
4719
|
color: '#72bb23',
|
|
4723
|
-
paddingLeft: '6px'
|
|
4720
|
+
paddingLeft: '6px',
|
|
4721
|
+
paddingTop: '3px'
|
|
4724
4722
|
},
|
|
4725
4723
|
font: {
|
|
4726
4724
|
fontWeight: 'normal'
|
|
@@ -4809,11 +4807,11 @@ var ProductListRow = function ProductListRow(_ref) {
|
|
|
4809
4807
|
}
|
|
4810
4808
|
}, TAC),
|
|
4811
4809
|
placement: "bottom-start"
|
|
4812
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4810
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Info, {
|
|
4813
4811
|
"data-testid": "productlistrow-tacicon",
|
|
4814
4812
|
color: "secondary",
|
|
4815
4813
|
fontSize: "small"
|
|
4816
|
-
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
4814
|
+
})))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
4817
4815
|
item: true,
|
|
4818
4816
|
xs: 9,
|
|
4819
4817
|
sm: 10,
|
|
@@ -4846,8 +4844,7 @@ var ProductListRow = function ProductListRow(_ref) {
|
|
|
4846
4844
|
}, product.status === 'DRAFT' ? /*#__PURE__*/React__default.createElement(Button, {
|
|
4847
4845
|
color: "secondary",
|
|
4848
4846
|
size: "small",
|
|
4849
|
-
startIcon: /*#__PURE__*/React__default.createElement(
|
|
4850
|
-
fontSize: "small",
|
|
4847
|
+
startIcon: /*#__PURE__*/React__default.createElement(Edit, {
|
|
4851
4848
|
color: "secondary"
|
|
4852
4849
|
})
|
|
4853
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('@opengeoweb/icons'), 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/icons', 'moment', 'lodash'
|
|
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
|
|
5
|
-
})(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared, icons, moment, lodash
|
|
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')) :
|
|
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'], 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));
|
|
5
|
+
})(this, (function (exports, React, material, reactHookForm, formFields, api, produce, reactRedux, core, turf, makeStyles, shared, icons, moment, lodash) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -4523,7 +4523,7 @@
|
|
|
4523
4523
|
onClick: handleClose,
|
|
4524
4524
|
color: "secondary",
|
|
4525
4525
|
size: "medium",
|
|
4526
|
-
startIcon: /*#__PURE__*/React__namespace.createElement(
|
|
4526
|
+
startIcon: /*#__PURE__*/React__namespace.createElement(icons.ChevronLeft, {
|
|
4527
4527
|
fontSize: "small",
|
|
4528
4528
|
color: "secondary"
|
|
4529
4529
|
}),
|
|
@@ -4555,14 +4555,12 @@
|
|
|
4555
4555
|
}
|
|
4556
4556
|
|
|
4557
4557
|
var active = moment__default["default"](product.validDateStart) <= moment__default["default"].utc(new Date());
|
|
4558
|
-
return active ? /*#__PURE__*/React__default["default"].createElement(
|
|
4558
|
+
return active ? /*#__PURE__*/React__default["default"].createElement(icons.Success, {
|
|
4559
4559
|
"data-testid": "status-active",
|
|
4560
|
-
className: className
|
|
4561
|
-
|
|
4562
|
-
}) : /*#__PURE__*/React__default["default"].createElement(iconsMaterial.Schedule, {
|
|
4560
|
+
className: className
|
|
4561
|
+
}) : /*#__PURE__*/React__default["default"].createElement(icons.Clock, {
|
|
4563
4562
|
"data-testid": "status-inactive",
|
|
4564
|
-
className: className
|
|
4565
|
-
fontSize: "small"
|
|
4563
|
+
className: className
|
|
4566
4564
|
});
|
|
4567
4565
|
};
|
|
4568
4566
|
|
|
@@ -4627,7 +4625,8 @@
|
|
|
4627
4625
|
},
|
|
4628
4626
|
activeStatus: {
|
|
4629
4627
|
color: '#72bb23',
|
|
4630
|
-
paddingLeft: '6px'
|
|
4628
|
+
paddingLeft: '6px',
|
|
4629
|
+
paddingTop: '3px'
|
|
4631
4630
|
},
|
|
4632
4631
|
font: {
|
|
4633
4632
|
fontWeight: 'normal'
|
|
@@ -4711,11 +4710,11 @@
|
|
|
4711
4710
|
}
|
|
4712
4711
|
}, TAC),
|
|
4713
4712
|
placement: "bottom-start"
|
|
4714
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4713
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(icons.Info, {
|
|
4715
4714
|
"data-testid": "productlistrow-tacicon",
|
|
4716
4715
|
color: "secondary",
|
|
4717
4716
|
fontSize: "small"
|
|
4718
|
-
}))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
4717
|
+
})))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
4719
4718
|
item: true,
|
|
4720
4719
|
xs: 9,
|
|
4721
4720
|
sm: 10,
|
|
@@ -4748,8 +4747,7 @@
|
|
|
4748
4747
|
}, product.status === 'DRAFT' ? /*#__PURE__*/React__default["default"].createElement(material.Button, {
|
|
4749
4748
|
color: "secondary",
|
|
4750
4749
|
size: "small",
|
|
4751
|
-
startIcon: /*#__PURE__*/React__default["default"].createElement(
|
|
4752
|
-
fontSize: "small",
|
|
4750
|
+
startIcon: /*#__PURE__*/React__default["default"].createElement(icons.Edit, {
|
|
4753
4751
|
color: "secondary"
|
|
4754
4752
|
})
|
|
4755
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.10.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,35 +15,33 @@
|
|
|
15
15
|
"react-redux": "7.2.2",
|
|
16
16
|
"@mui/material": "^5.2.8",
|
|
17
17
|
"@mui/styles": "^5.2.3",
|
|
18
|
-
"@opengeoweb/shared": "2.
|
|
19
|
-
"@opengeoweb/theme": "2.
|
|
18
|
+
"@opengeoweb/shared": "2.10.0",
|
|
19
|
+
"@opengeoweb/theme": "2.10.0",
|
|
20
20
|
"@mui/icons-material": "^5.2.5",
|
|
21
|
+
"@opengeoweb/icons": "2.10.0",
|
|
21
22
|
"react-draggable": "^4.4.3",
|
|
22
23
|
"re-resizable": "^6.9.0",
|
|
23
24
|
"lodash": "^4.17.20",
|
|
24
|
-
"@opengeoweb/form-fields": "2.
|
|
25
|
+
"@opengeoweb/form-fields": "2.10.0",
|
|
25
26
|
"react-hook-form": "^6.12.1",
|
|
26
27
|
"moment": "^2.29.0",
|
|
27
28
|
"moment-timezone": "^0.5.31",
|
|
28
29
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
29
30
|
"axios": "^0.25.0",
|
|
30
|
-
"@opengeoweb/core": "2.
|
|
31
|
+
"@opengeoweb/core": "2.10.0",
|
|
31
32
|
"react-intl": "^5.17.5",
|
|
32
|
-
"@opengeoweb/webmap": "2.
|
|
33
|
+
"@opengeoweb/webmap": "2.10.0",
|
|
33
34
|
"throttle-debounce": "^3.0.1",
|
|
34
35
|
"proj4": "^2.6.2",
|
|
35
36
|
"react-sortablejs": "^6.0.0",
|
|
36
37
|
"immer": "^9.0.15",
|
|
37
38
|
"redux-dynamic-modules": "^5.2.0",
|
|
38
|
-
"
|
|
39
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
39
40
|
"lodash.clonedeep": "^4.5.0",
|
|
40
41
|
"@turf/turf": "^5.1.6",
|
|
41
|
-
"reselect": "^4.1.5",
|
|
42
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
44
43
|
"redux-saga": "^1.1.3",
|
|
45
|
-
"@opengeoweb/api": "2.
|
|
46
|
-
"@opengeoweb/icons": "2.9.0"
|
|
44
|
+
"@opengeoweb/api": "2.10.0"
|
|
47
45
|
},
|
|
48
46
|
"peerDependencies": {}
|
|
49
47
|
}
|