@opengeoweb/sigmet-airmet 4.4.0 → 4.6.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,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { FormControlLabel, Radio, Grid, Typography, Tooltip, Box, Button, Checkbox, MenuItem, FormHelperText, useTheme, Dialog, DialogTitle, DialogContent, Card, List, ListItem, Skeleton, Backdrop, CircularProgress } from '@mui/material';
3
+ import { FormControlLabel, Radio, Grid, Typography, Box, Button, Checkbox, MenuItem, FormHelperText, useTheme, Dialog, DialogTitle, DialogContent, Card, 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, ReactHookFormFormControl, 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 * as turf from '@turf/turf';
9
9
  import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
10
- import { useDraftFormHelpers, ToggleMenu, useIsMounted, StatusTag, AlertBanner, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, ConfirmationServiceProvider, usePoller } from '@opengeoweb/shared';
10
+ import { useDraftFormHelpers, CustomTooltip, ToggleMenu, useIsMounted, IS_JEST, StatusTag, AlertBanner, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, ConfirmationServiceProvider, usePoller } from '@opengeoweb/shared';
11
11
  import { Location, DrawRegion, DrawPolygon, DrawFIRLand, Delete, ChevronLeft, Edit, Success, Clock } from '@opengeoweb/theme';
12
12
  import moment from 'moment';
13
13
  import { debounce } from 'lodash';
@@ -1117,7 +1117,7 @@ var DrawTools = function DrawTools(_ref) {
1117
1117
  spacing: 1
1118
1118
  }, /*#__PURE__*/React__default.createElement(Grid, {
1119
1119
  item: true
1120
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
1120
+ }, /*#__PURE__*/React__default.createElement(CustomTooltip, {
1121
1121
  title: "Drop a point as ".concat(type, " position")
1122
1122
  }, /*#__PURE__*/React__default.createElement(Radio, {
1123
1123
  icon: /*#__PURE__*/React__default.createElement(Location, null),
@@ -1131,7 +1131,7 @@ var DrawTools = function DrawTools(_ref) {
1131
1131
  sx: styles$1.radioInput
1132
1132
  }))), /*#__PURE__*/React__default.createElement(Grid, {
1133
1133
  item: true
1134
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
1134
+ }, /*#__PURE__*/React__default.createElement(CustomTooltip, {
1135
1135
  title: "Draw a box as ".concat(type, " position")
1136
1136
  }, /*#__PURE__*/React__default.createElement(Radio, {
1137
1137
  icon: /*#__PURE__*/React__default.createElement(DrawRegion, null),
@@ -1144,7 +1144,7 @@ var DrawTools = function DrawTools(_ref) {
1144
1144
  sx: styles$1.radioInput
1145
1145
  }))), /*#__PURE__*/React__default.createElement(Grid, {
1146
1146
  item: true
1147
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
1147
+ }, /*#__PURE__*/React__default.createElement(CustomTooltip, {
1148
1148
  title: "Draw a shape as ".concat(type, " position")
1149
1149
  }, /*#__PURE__*/React__default.createElement(Radio, {
1150
1150
  icon: /*#__PURE__*/React__default.createElement(DrawPolygon, null),
@@ -1157,7 +1157,7 @@ var DrawTools = function DrawTools(_ref) {
1157
1157
  sx: styles$1.radioInput
1158
1158
  }))), /*#__PURE__*/React__default.createElement(Grid, {
1159
1159
  item: true
1160
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
1160
+ }, /*#__PURE__*/React__default.createElement(CustomTooltip, {
1161
1161
  title: "Set FIR as ".concat(type, " position")
1162
1162
  }, /*#__PURE__*/React__default.createElement(Radio, {
1163
1163
  icon: /*#__PURE__*/React__default.createElement(DrawFIRLand, null),
@@ -1170,7 +1170,7 @@ var DrawTools = function DrawTools(_ref) {
1170
1170
  sx: styles$1.radioInput
1171
1171
  }))), /*#__PURE__*/React__default.createElement(Grid, {
1172
1172
  item: true
1173
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
1173
+ }, /*#__PURE__*/React__default.createElement(CustomTooltip, {
1174
1174
  title: "Remove geometry"
1175
1175
  }, /*#__PURE__*/React__default.createElement(Radio, {
1176
1176
  icon: /*#__PURE__*/React__default.createElement(Delete, null),
@@ -4604,8 +4604,7 @@ var ContentDialog = function ContentDialog(_a) {
4604
4604
  var styles = {
4605
4605
  activeStatus: {
4606
4606
  color: '#72bb23',
4607
- paddingLeft: '6px',
4608
- paddingTop: '2px'
4607
+ paddingLeft: '6px'
4609
4608
  },
4610
4609
  font: {
4611
4610
  fontWeight: 'normal'
@@ -4745,36 +4744,67 @@ var ProductListRow = function ProductListRow(_ref2) {
4745
4744
  variant: "outlined",
4746
4745
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
4747
4746
  sx: function sx(theme) {
4748
- return _defineProperty({
4747
+ return Object.assign({
4749
4748
  width: '100%',
4750
- paddingLeft: 1,
4751
- paddingRight: 1,
4752
- paddingTop: 1.5,
4753
- paddingBottom: 1.5,
4754
- '&:last-child': {
4755
- paddingBottom: 1.5
4756
- }
4757
- }, theme.breakpoints.up('sm'), {
4758
- paddingLeft: 4,
4759
- paddingRight: 4,
4760
- paddingTop: 2,
4761
- paddingBottom: 2,
4762
- '&:last-child': {
4763
- paddingBottom: 2
4749
+ '.wrapper-container': _defineProperty({
4750
+ paddingLeft: 1,
4751
+ paddingRight: 1,
4752
+ paddingTop: 1.5,
4753
+ paddingBottom: 1.5,
4754
+ '&:last-child': {
4755
+ paddingBottom: 1.5
4756
+ }
4757
+ }, theme.breakpoints.up('sm'), {
4758
+ paddingLeft: 4,
4759
+ paddingRight: 4,
4760
+ paddingTop: 2,
4761
+ paddingBottom: 2,
4762
+ '&:last-child': {
4763
+ paddingBottom: 2
4764
+ }
4765
+ })
4766
+ }, !IS_JEST && {
4767
+ '@container (max-width: 768px)': {
4768
+ '.wrapper-container:not(.container-query-polyfill)': {
4769
+ paddingLeft: 1,
4770
+ paddingRight: 1,
4771
+ paddingTop: 1.5,
4772
+ paddingBottom: 1.5
4773
+ },
4774
+ '.col-1:not(.container-query-polyfill)': {
4775
+ maxWidth: '25%',
4776
+ flexBasis: '25%'
4777
+ },
4778
+ '.col-2:not(.container-query-polyfill)': {
4779
+ maxWidth: '75%',
4780
+ flexBasis: '75%'
4781
+ },
4782
+ '.col-3:not(.container-query-polyfill)': {
4783
+ maxWidth: '100%',
4784
+ flexBasis: '100%'
4785
+ },
4786
+ '.col-4:not(.container-query-polyfill)': {
4787
+ maxWidth: '100%',
4788
+ flexBasis: '100%',
4789
+ justifyContent: 'center'
4790
+ }
4764
4791
  }
4765
4792
  });
4766
4793
  }
4794
+ }, /*#__PURE__*/React__default.createElement(Box, {
4795
+ className: "wrapper-container"
4767
4796
  }, /*#__PURE__*/React__default.createElement(Grid, {
4768
4797
  container: true,
4769
4798
  alignItems: "center",
4770
4799
  spacing: 2
4771
4800
  }, /*#__PURE__*/React__default.createElement(Grid, {
4801
+ className: "col-1",
4772
4802
  item: true,
4773
4803
  xs: 3,
4774
4804
  sm: 1
4775
4805
  }, phenomenon !== null && /*#__PURE__*/React__default.createElement(ProductListRowHeader, {
4776
4806
  title: productType.toUpperCase()
4777
- }), /*#__PURE__*/React__default.createElement(Tooltip, {
4807
+ }), /*#__PURE__*/React__default.createElement(CustomTooltip, {
4778
4808
  title: phenomenon !== null ? getPhenomenon(productType, phenomenon) : '',
4779
4809
  placement: "bottom-start"
4780
4810
  }, /*#__PURE__*/React__default.createElement(Typography, {
@@ -4782,12 +4812,13 @@ var ProductListRow = function ProductListRow(_ref2) {
4782
4812
  noWrap: true,
4783
4813
  sx: styles.font
4784
4814
  }, phenomenon !== null ? phenomenon : 'Cancel'))), /*#__PURE__*/React__default.createElement(Grid, {
4815
+ className: "col-2",
4785
4816
  item: true,
4786
4817
  xs: 9,
4787
4818
  sm: 3
4788
4819
  }, /*#__PURE__*/React__default.createElement(ProductListRowHeader, {
4789
4820
  title: "Issue time"
4790
- }), /*#__PURE__*/React__default.createElement(Tooltip, {
4821
+ }), /*#__PURE__*/React__default.createElement(CustomTooltip, {
4791
4822
  title: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ProductListRowHeader, {
4792
4823
  title: "TAC"
4793
4824
  }), /*#__PURE__*/React__default.createElement(Typography, {
@@ -4822,9 +4853,10 @@ var ProductListRow = function ProductListRow(_ref2) {
4822
4853
  sx: styles.font,
4823
4854
  "data-testid": "issueTime"
4824
4855
  }, product.issueDate ? "".concat(moment.utc(product.issueDate).format('DD MMM YYYY, HH:mm'), " UTC") : '(Not published)'))), /*#__PURE__*/React__default.createElement(Grid, {
4856
+ className: "col-3",
4825
4857
  item: true,
4826
4858
  xs: 12,
4827
- sm: 6
4859
+ sm: 5
4828
4860
  }, /*#__PURE__*/React__default.createElement(ProductListRowHeader, {
4829
4861
  title: "Valid time"
4830
4862
  }), /*#__PURE__*/React__default.createElement(Typography, {
@@ -4833,10 +4865,12 @@ var ProductListRow = function ProductListRow(_ref2) {
4833
4865
  "data-testid": "validTime"
4834
4866
  }, validTime)), /*#__PURE__*/React__default.createElement(Grid, {
4835
4867
  item: true,
4868
+ className: "col-4",
4836
4869
  xs: 12,
4837
- sm: 2,
4870
+ sm: 3,
4838
4871
  container: true,
4839
4872
  justifyContent: "center",
4873
+ alignItems: "center",
4840
4874
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
4841
4875
  sx: function sx(theme) {
4842
4876
  return _defineProperty({}, theme.breakpoints.up('sm'), {
@@ -4855,7 +4889,7 @@ var ProductListRow = function ProductListRow(_ref2) {
4855
4889
  },
4856
4890
  variant: "flat",
4857
4891
  startIcon: /*#__PURE__*/React__default.createElement(Edit, null)
4858
- }, "DRAFT") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product))));
4892
+ }, "DRAFT") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product)))));
4859
4893
  };
4860
4894
 
4861
4895
  /* *
@@ -4910,7 +4944,8 @@ var ProductList = function ProductList(_ref) {
4910
4944
  dataTestId: "productList-alert"
4911
4945
  }), productList && /*#__PURE__*/React__default.createElement(List, {
4912
4946
  sx: {
4913
- paddingTop: 4
4947
+ paddingTop: 4,
4948
+ containerType: 'inline-size'
4914
4949
  }
4915
4950
  }, productList.map(function (productListItem, index) {
4916
4951
  var product = productListItem[productType];
@@ -4922,7 +4957,7 @@ var ProductList = function ProductList(_ref) {
4922
4957
  },
4923
4958
  key: product.sequence && product.issueDate ? "".concat(product.sequence, "-").concat(product.issueDate) : "draft-".concat(index),
4924
4959
  sx: {
4925
- padding: '2px'
4960
+ padding: 0.25
4926
4961
  }
4927
4962
  }, /*#__PURE__*/React__default.createElement(ProductListRow, {
4928
4963
  product: product,
package/index.umd.js CHANGED
@@ -1088,7 +1088,7 @@
1088
1088
  spacing: 1
1089
1089
  }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
1090
1090
  item: true
1091
- }, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
1091
+ }, /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
1092
1092
  title: "Drop a point as " + type + " position"
1093
1093
  }, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
1094
1094
  icon: /*#__PURE__*/React__default["default"].createElement(theme.Location, null),
@@ -1102,7 +1102,7 @@
1102
1102
  sx: styles$1.radioInput
1103
1103
  }))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
1104
1104
  item: true
1105
- }, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
1105
+ }, /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
1106
1106
  title: "Draw a box as " + type + " position"
1107
1107
  }, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
1108
1108
  icon: /*#__PURE__*/React__default["default"].createElement(theme.DrawRegion, null),
@@ -1115,7 +1115,7 @@
1115
1115
  sx: styles$1.radioInput
1116
1116
  }))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
1117
1117
  item: true
1118
- }, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
1118
+ }, /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
1119
1119
  title: "Draw a shape as " + type + " position"
1120
1120
  }, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
1121
1121
  icon: /*#__PURE__*/React__default["default"].createElement(theme.DrawPolygon, null),
@@ -1128,7 +1128,7 @@
1128
1128
  sx: styles$1.radioInput
1129
1129
  }))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
1130
1130
  item: true
1131
- }, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
1131
+ }, /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
1132
1132
  title: "Set FIR as " + type + " position"
1133
1133
  }, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
1134
1134
  icon: /*#__PURE__*/React__default["default"].createElement(theme.DrawFIRLand, null),
@@ -1141,7 +1141,7 @@
1141
1141
  sx: styles$1.radioInput
1142
1142
  }))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
1143
1143
  item: true
1144
- }, /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
1144
+ }, /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
1145
1145
  title: "Remove geometry"
1146
1146
  }, /*#__PURE__*/React__default["default"].createElement(material.Radio, {
1147
1147
  icon: /*#__PURE__*/React__default["default"].createElement(theme.Delete, null),
@@ -4488,11 +4488,26 @@
4488
4488
  }, children));
4489
4489
  };
4490
4490
 
4491
+ /* *
4492
+ * Licensed under the Apache License, Version 2.0 (the "License");
4493
+ * you may not use this file except in compliance with the License.
4494
+ * You may obtain a copy of the License at
4495
+ *
4496
+ * http://www.apache.org/licenses/LICENSE-2.0
4497
+ *
4498
+ * Unless required by applicable law or agreed to in writing, software
4499
+ * distributed under the License is distributed on an "AS IS" BASIS,
4500
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4501
+ * See the License for the specific language governing permissions and
4502
+ * limitations under the License.
4503
+ *
4504
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4505
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4506
+ * */
4491
4507
  var styles = {
4492
4508
  activeStatus: {
4493
4509
  color: '#72bb23',
4494
- paddingLeft: '6px',
4495
- paddingTop: '2px'
4510
+ paddingLeft: '6px'
4496
4511
  },
4497
4512
  font: {
4498
4513
  fontWeight: 'normal'
@@ -4631,36 +4646,67 @@
4631
4646
  sx: function sx(theme) {
4632
4647
  var _a;
4633
4648
 
4634
- return _a = {
4649
+ return __assign({
4635
4650
  width: '100%',
4636
- paddingLeft: 1,
4637
- paddingRight: 1,
4638
- paddingTop: 1.5,
4639
- paddingBottom: 1.5,
4640
- '&:last-child': {
4641
- paddingBottom: 1.5
4642
- }
4643
- }, _a[theme.breakpoints.up('sm')] = {
4644
- paddingLeft: 4,
4645
- paddingRight: 4,
4646
- paddingTop: 2,
4647
- paddingBottom: 2,
4648
- '&:last-child': {
4649
- paddingBottom: 2
4651
+ '.wrapper-container': (_a = {
4652
+ paddingLeft: 1,
4653
+ paddingRight: 1,
4654
+ paddingTop: 1.5,
4655
+ paddingBottom: 1.5,
4656
+ '&:last-child': {
4657
+ paddingBottom: 1.5
4658
+ }
4659
+ }, _a[theme.breakpoints.up('sm')] = {
4660
+ paddingLeft: 4,
4661
+ paddingRight: 4,
4662
+ paddingTop: 2,
4663
+ paddingBottom: 2,
4664
+ '&:last-child': {
4665
+ paddingBottom: 2
4666
+ }
4667
+ }, _a)
4668
+ }, !shared.IS_JEST && {
4669
+ '@container (max-width: 768px)': {
4670
+ '.wrapper-container:not(.container-query-polyfill)': {
4671
+ paddingLeft: 1,
4672
+ paddingRight: 1,
4673
+ paddingTop: 1.5,
4674
+ paddingBottom: 1.5
4675
+ },
4676
+ '.col-1:not(.container-query-polyfill)': {
4677
+ maxWidth: '25%',
4678
+ flexBasis: '25%'
4679
+ },
4680
+ '.col-2:not(.container-query-polyfill)': {
4681
+ maxWidth: '75%',
4682
+ flexBasis: '75%'
4683
+ },
4684
+ '.col-3:not(.container-query-polyfill)': {
4685
+ maxWidth: '100%',
4686
+ flexBasis: '100%'
4687
+ },
4688
+ '.col-4:not(.container-query-polyfill)': {
4689
+ maxWidth: '100%',
4690
+ flexBasis: '100%',
4691
+ justifyContent: 'center'
4692
+ }
4650
4693
  }
4651
- }, _a;
4694
+ });
4652
4695
  }
4696
+ }, /*#__PURE__*/React__default["default"].createElement(material.Box, {
4697
+ className: "wrapper-container"
4653
4698
  }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
4654
4699
  container: true,
4655
4700
  alignItems: "center",
4656
4701
  spacing: 2
4657
4702
  }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
4703
+ className: "col-1",
4658
4704
  item: true,
4659
4705
  xs: 3,
4660
4706
  sm: 1
4661
4707
  }, phenomenon !== null && /*#__PURE__*/React__default["default"].createElement(ProductListRowHeader, {
4662
4708
  title: productType.toUpperCase()
4663
- }), /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
4709
+ }), /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
4664
4710
  title: phenomenon !== null ? getPhenomenon(productType, phenomenon) : '',
4665
4711
  placement: "bottom-start"
4666
4712
  }, /*#__PURE__*/React__default["default"].createElement(material.Typography, {
@@ -4668,12 +4714,13 @@
4668
4714
  noWrap: true,
4669
4715
  sx: styles.font
4670
4716
  }, phenomenon !== null ? phenomenon : 'Cancel'))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
4717
+ className: "col-2",
4671
4718
  item: true,
4672
4719
  xs: 9,
4673
4720
  sm: 3
4674
4721
  }, /*#__PURE__*/React__default["default"].createElement(ProductListRowHeader, {
4675
4722
  title: "Issue time"
4676
- }), /*#__PURE__*/React__default["default"].createElement(material.Tooltip, {
4723
+ }), /*#__PURE__*/React__default["default"].createElement(shared.CustomTooltip, {
4677
4724
  title: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(ProductListRowHeader, {
4678
4725
  title: "TAC"
4679
4726
  }), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
@@ -4708,9 +4755,10 @@
4708
4755
  sx: styles.font,
4709
4756
  "data-testid": "issueTime"
4710
4757
  }, product.issueDate ? moment__default["default"].utc(product.issueDate).format('DD MMM YYYY, HH:mm') + " UTC" : '(Not published)'))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
4758
+ className: "col-3",
4711
4759
  item: true,
4712
4760
  xs: 12,
4713
- sm: 6
4761
+ sm: 5
4714
4762
  }, /*#__PURE__*/React__default["default"].createElement(ProductListRowHeader, {
4715
4763
  title: "Valid time"
4716
4764
  }), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
@@ -4719,10 +4767,12 @@
4719
4767
  "data-testid": "validTime"
4720
4768
  }, validTime)), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
4721
4769
  item: true,
4770
+ className: "col-4",
4722
4771
  xs: 12,
4723
- sm: 2,
4772
+ sm: 3,
4724
4773
  container: true,
4725
4774
  justifyContent: "center",
4775
+ alignItems: "center",
4726
4776
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
4727
4777
  sx: function sx(theme) {
4728
4778
  var _a;
@@ -4743,7 +4793,7 @@
4743
4793
  },
4744
4794
  variant: "flat",
4745
4795
  startIcon: /*#__PURE__*/React__default["default"].createElement(theme.Edit, null)
4746
- }, "DRAFT") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product))));
4796
+ }, "DRAFT") : getStatusTagList(product, cancelsSeqId), product.status === 'PUBLISHED' && cancelsSeqId === null && getActiveStatus(product)))));
4747
4797
  };
4748
4798
 
4749
4799
  /* *
@@ -4798,7 +4848,8 @@
4798
4848
  dataTestId: "productList-alert"
4799
4849
  }), productList && /*#__PURE__*/React__default["default"].createElement(material.List, {
4800
4850
  sx: {
4801
- paddingTop: 4
4851
+ paddingTop: 4,
4852
+ containerType: 'inline-size'
4802
4853
  }
4803
4854
  }, productList.map(function (productListItem, index) {
4804
4855
  var product = productListItem[productType];
@@ -4810,7 +4861,7 @@
4810
4861
  },
4811
4862
  key: product.sequence && product.issueDate ? product.sequence + "-" + product.issueDate : "draft-" + index,
4812
4863
  sx: {
4813
- padding: '2px'
4864
+ padding: 0.25
4814
4865
  }
4815
4866
  }, /*#__PURE__*/React__default["default"].createElement(ProductListRow, {
4816
4867
  product: product,
@@ -24,6 +24,7 @@ export declare const SigmetListDemoSnapshotDarkTheme: {
24
24
  }[];
25
25
  };
26
26
  };
27
+ export declare const SigmetListDemoSnapshotSmall: () => React.ReactElement;
27
28
  export declare const AirmetListDemo: () => React.ReactElement;
28
29
  export declare const AirmetListDemoSnapshot: {
29
30
  (): React.ReactElement;
@@ -45,3 +46,4 @@ export declare const AirmetListDemoSnapshotDarkTheme: {
45
46
  }[];
46
47
  };
47
48
  };
49
+ export declare const AirmetListDemoSnapshotSmall: () => React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,21 +14,21 @@
14
14
  "react": "^17.0.2",
15
15
  "react-redux": "^8.0.4",
16
16
  "@mui/material": "^5.10.8",
17
- "@opengeoweb/shared": "4.4.0",
18
- "@opengeoweb/theme": "4.4.0",
17
+ "@opengeoweb/shared": "4.6.0",
18
+ "@opengeoweb/theme": "4.6.0",
19
19
  "react-draggable": "^4.4.5",
20
20
  "re-resizable": "^6.9.0",
21
21
  "@redux-eggs/core": "^2.2.0",
22
- "@opengeoweb/form-fields": "4.4.0",
22
+ "@opengeoweb/form-fields": "4.6.0",
23
23
  "react-hook-form": "^6.12.1",
24
24
  "moment": "^2.29.0",
25
25
  "moment-timezone": "^0.5.31",
26
26
  "@mui/x-date-pickers": "^5.0.4",
27
27
  "lodash": "^4.17.20",
28
28
  "axios": "^0.25.0",
29
- "@opengeoweb/core": "4.4.0",
29
+ "@opengeoweb/core": "4.6.0",
30
30
  "react-intl": "^5.17.5",
31
- "@opengeoweb/webmap": "4.4.0",
31
+ "@opengeoweb/webmap": "4.6.0",
32
32
  "throttle-debounce": "^3.0.1",
33
33
  "proj4": "^2.6.2",
34
34
  "react-sortablejs": "^6.1.4",
@@ -42,7 +42,7 @@
42
42
  "redux-saga": "^1.2.1",
43
43
  "@redux-eggs/redux-toolkit": "^2.2.0",
44
44
  "@redux-eggs/saga-extension": "^2.2.0",
45
- "@opengeoweb/api": "4.4.0"
45
+ "@opengeoweb/api": "4.6.0"
46
46
  },
47
47
  "peerDependencies": {}
48
48
  }