@opengeoweb/taf 2.10.0 → 2.14.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
@@ -7,7 +7,7 @@ import { getDeepProperty, ReactHookFormHiddenInput, ReactHookFormProvider } from
7
7
  import { useIsMounted, ToggleMenu, useDraftFormHelpers, ToolContainerDraggable, useConfirmationDialog, usePreventBrowserClose, ToolButton, ToolHeader, isAxiosError, getAxiosErrorMessage, AlertBanner, ConfirmationServiceProvider, usePoller, ErrorBoundary } from '@opengeoweb/shared';
8
8
  import { isEqual } from 'lodash';
9
9
  import moment from 'moment';
10
- import { AddBig, Delete, Close, DragHandle as DragHandle$1, ThumbsUp, Clock, Cancel, Edit, Success, Export, ListItem } from '@opengeoweb/icons';
10
+ import { Add, Delete, Close, DragHandle as DragHandle$1, ThumbsUp, Clock, Cancel, Edit, Success, Export, ListItem } from '@opengeoweb/theme';
11
11
  import makeStyles from '@mui/styles/makeStyles';
12
12
  import ReactDOM from 'react-dom';
13
13
  import { useApiContext, useApi, createApiInstance, ApiProvider } from '@opengeoweb/api';
@@ -2866,12 +2866,12 @@ var TafFormOptionsButton = function TafFormOptionsButton(_ref) {
2866
2866
  index = _ref.index;
2867
2867
  var insertAbove = {
2868
2868
  text: 'Insert 1 row above',
2869
- icon: /*#__PURE__*/React.createElement(AddBig, null),
2869
+ icon: /*#__PURE__*/React.createElement(Add, null),
2870
2870
  action: addChangeGroupAbove
2871
2871
  };
2872
2872
  var insertBelow = {
2873
2873
  text: 'Insert 1 row below',
2874
- icon: /*#__PURE__*/React.createElement(AddBig, null),
2874
+ icon: /*#__PURE__*/React.createElement(Add, null),
2875
2875
  action: addChangeGroupBelow
2876
2876
  };
2877
2877
  var deleteRow = {
@@ -4591,7 +4591,6 @@ var StatusIcon = function StatusIcon(_ref2) {
4591
4591
  title: "Expired"
4592
4592
  }, /*#__PURE__*/React.createElement(Clock, {
4593
4593
  "data-testid": "status-expired",
4594
- fontSize: "small",
4595
4594
  sx: {
4596
4595
  transform: 'scaleX(-1)',
4597
4596
  color: 'geowebColors.buttons.tertiary.disabled.color'
@@ -4604,7 +4603,6 @@ var StatusIcon = function StatusIcon(_ref2) {
4604
4603
  title: "Cancelled"
4605
4604
  }, /*#__PURE__*/React.createElement(Cancel, {
4606
4605
  "data-testid": "status-cancelled",
4607
- fontSize: "small",
4608
4606
  sx: {
4609
4607
  color: 'geowebColors.captions.captionError.rgba'
4610
4608
  }
@@ -4616,7 +4614,6 @@ var StatusIcon = function StatusIcon(_ref2) {
4616
4614
  title: "Draft"
4617
4615
  }, /*#__PURE__*/React.createElement(Edit, {
4618
4616
  "data-testid": "status-draft",
4619
- fontSize: "small",
4620
4617
  sx: {
4621
4618
  color: 'geowebColors.buttons.tertiary.default.color'
4622
4619
  }
@@ -4627,7 +4624,6 @@ var StatusIcon = function StatusIcon(_ref2) {
4627
4624
  title: "Active"
4628
4625
  }, /*#__PURE__*/React.createElement(Success, {
4629
4626
  "data-testid": "status-active",
4630
- fontSize: "small",
4631
4627
  sx: {
4632
4628
  color: 'geowebColors.functional.success'
4633
4629
  }
@@ -4635,7 +4631,6 @@ var StatusIcon = function StatusIcon(_ref2) {
4635
4631
  title: "Upcoming"
4636
4632
  }, /*#__PURE__*/React.createElement(Clock, {
4637
4633
  "data-testid": "status-upcoming",
4638
- fontSize: "small",
4639
4634
  sx: {
4640
4635
  color: 'geowebColors.functional.success'
4641
4636
  }
@@ -5114,9 +5109,9 @@ var LocationTabs = function LocationTabs(_ref) {
5114
5109
  component: "span",
5115
5110
  sx: {
5116
5111
  position: 'absolute',
5117
- bottom: '1px',
5118
- width: '20px',
5119
- height: '20px'
5112
+ bottom: '-1px',
5113
+ width: '24px',
5114
+ height: '24px'
5120
5115
  }
5121
5116
  }, /*#__PURE__*/React.createElement(StatusIcon, {
5122
5117
  timeSlot: timeSlot,
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('react-sortablejs'), require('@opengeoweb/form-fields'), require('@opengeoweb/shared'), require('lodash'), require('moment'), require('@opengeoweb/icons'), require('@mui/styles/makeStyles'), require('react-dom'), require('@opengeoweb/api'), require('@mui/material/LinearProgress'), require('@mui/material/Box')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', '@mui/material', 'react-hook-form', 'react-sortablejs', '@opengeoweb/form-fields', '@opengeoweb/shared', 'lodash', 'moment', '@opengeoweb/icons', '@mui/styles/makeStyles', 'react-dom', '@opengeoweb/api', '@mui/material/LinearProgress', '@mui/material/Box'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Taf = {}, global.React, global.material, global.reactHookForm, global.reactSortablejs, global.formFields, global.shared, global.lodash, global.moment, global.icons, global.makeStyles, global.ReactDOM, global.api, global.LinearProgress, global.Box));
5
- })(this, (function (exports, React, material, reactHookForm, reactSortablejs, formFields, shared, lodash, moment, icons, makeStyles, ReactDOM, api, LinearProgress, Box) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@mui/material'), require('react-hook-form'), require('react-sortablejs'), require('@opengeoweb/form-fields'), require('@opengeoweb/shared'), require('lodash'), require('moment'), require('@opengeoweb/theme'), require('@mui/styles/makeStyles'), require('react-dom'), require('@opengeoweb/api'), require('@mui/material/LinearProgress'), require('@mui/material/Box')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@mui/material', 'react-hook-form', 'react-sortablejs', '@opengeoweb/form-fields', '@opengeoweb/shared', 'lodash', 'moment', '@opengeoweb/theme', '@mui/styles/makeStyles', 'react-dom', '@opengeoweb/api', '@mui/material/LinearProgress', '@mui/material/Box'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Taf = {}, global.React, global.material, global.reactHookForm, global.reactSortablejs, global.formFields, global.shared, global.lodash, global.moment, global.theme, global.makeStyles, global.ReactDOM, global.api, global.LinearProgress, global.Box));
5
+ })(this, (function (exports, React, material, reactHookForm, reactSortablejs, formFields, shared, lodash, moment, theme, makeStyles, ReactDOM, api, LinearProgress, Box) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -2869,22 +2869,22 @@
2869
2869
  index = _a.index;
2870
2870
  var insertAbove = {
2871
2871
  text: 'Insert 1 row above',
2872
- icon: /*#__PURE__*/React__namespace.createElement(icons.AddBig, null),
2872
+ icon: /*#__PURE__*/React__namespace.createElement(theme.Add, null),
2873
2873
  action: addChangeGroupAbove
2874
2874
  };
2875
2875
  var insertBelow = {
2876
2876
  text: 'Insert 1 row below',
2877
- icon: /*#__PURE__*/React__namespace.createElement(icons.AddBig, null),
2877
+ icon: /*#__PURE__*/React__namespace.createElement(theme.Add, null),
2878
2878
  action: addChangeGroupBelow
2879
2879
  };
2880
2880
  var deleteRow = {
2881
2881
  text: 'Delete row',
2882
- icon: /*#__PURE__*/React__namespace.createElement(icons.Delete, null),
2882
+ icon: /*#__PURE__*/React__namespace.createElement(theme.Delete, null),
2883
2883
  action: removeChangeGroup
2884
2884
  };
2885
2885
  var clear = {
2886
2886
  text: 'Clear row',
2887
- icon: /*#__PURE__*/React__namespace.createElement(icons.Close, null),
2887
+ icon: /*#__PURE__*/React__namespace.createElement(theme.Close, null),
2888
2888
  action: clearRow
2889
2889
  };
2890
2890
  var menuItemsBaseForecast = [insertBelow, clear];
@@ -3542,7 +3542,7 @@
3542
3542
  disableRipple: true,
3543
3543
  disabled: isDisabled,
3544
3544
  size: "large"
3545
- }, /*#__PURE__*/React__default["default"].createElement(icons.DragHandle, null));
3545
+ }, /*#__PURE__*/React__default["default"].createElement(theme.DragHandle, null));
3546
3546
  };
3547
3547
 
3548
3548
  /* *
@@ -3825,7 +3825,7 @@
3825
3825
  fontSize: '4rem'
3826
3826
  },
3827
3827
  "data-testid": "zeroIssuesImage"
3828
- }, /*#__PURE__*/React__namespace.createElement(icons.ThumbsUp, null)), errorList.length > 0 && errorList.map(function (error, index) {
3828
+ }, /*#__PURE__*/React__namespace.createElement(theme.ThumbsUp, null)), errorList.length > 0 && errorList.map(function (error, index) {
3829
3829
  return /*#__PURE__*/React__namespace.createElement(material.Typography // eslint-disable-next-line react/no-array-index-key
3830
3830
  , {
3831
3831
  // eslint-disable-next-line react/no-array-index-key
@@ -4597,9 +4597,8 @@
4597
4597
  if (status === 'EXPIRED') {
4598
4598
  return /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4599
4599
  title: "Expired"
4600
- }, /*#__PURE__*/React__namespace.createElement(icons.Clock, {
4600
+ }, /*#__PURE__*/React__namespace.createElement(theme.Clock, {
4601
4601
  "data-testid": "status-expired",
4602
- fontSize: "small",
4603
4602
  sx: {
4604
4603
  transform: 'scaleX(-1)',
4605
4604
  color: 'geowebColors.buttons.tertiary.disabled.color'
@@ -4610,9 +4609,8 @@
4610
4609
  if (status === 'CANCELLED') {
4611
4610
  return /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4612
4611
  title: "Cancelled"
4613
- }, /*#__PURE__*/React__namespace.createElement(icons.Cancel, {
4612
+ }, /*#__PURE__*/React__namespace.createElement(theme.Cancel, {
4614
4613
  "data-testid": "status-cancelled",
4615
- fontSize: "small",
4616
4614
  sx: {
4617
4615
  color: 'geowebColors.captions.captionError.rgba'
4618
4616
  }
@@ -4622,9 +4620,8 @@
4622
4620
  if (status === 'DRAFT' || status === 'DRAFT_CORRECTED' || status === 'DRAFT_AMENDED') {
4623
4621
  return /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4624
4622
  title: "Draft"
4625
- }, /*#__PURE__*/React__namespace.createElement(icons.Edit, {
4623
+ }, /*#__PURE__*/React__namespace.createElement(theme.Edit, {
4626
4624
  "data-testid": "status-draft",
4627
- fontSize: "small",
4628
4625
  sx: {
4629
4626
  color: 'geowebColors.buttons.tertiary.default.color'
4630
4627
  }
@@ -4633,17 +4630,15 @@
4633
4630
 
4634
4631
  return timeSlot === 'ACTIVE' ? /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4635
4632
  title: "Active"
4636
- }, /*#__PURE__*/React__namespace.createElement(icons.Success, {
4633
+ }, /*#__PURE__*/React__namespace.createElement(theme.Success, {
4637
4634
  "data-testid": "status-active",
4638
- fontSize: "small",
4639
4635
  sx: {
4640
4636
  color: 'geowebColors.functional.success'
4641
4637
  }
4642
4638
  })) : /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4643
4639
  title: "Upcoming"
4644
- }, /*#__PURE__*/React__namespace.createElement(icons.Clock, {
4640
+ }, /*#__PURE__*/React__namespace.createElement(theme.Clock, {
4645
4641
  "data-testid": "status-upcoming",
4646
- fontSize: "small",
4647
4642
  sx: {
4648
4643
  color: 'geowebColors.functional.success'
4649
4644
  }
@@ -4676,7 +4671,7 @@
4676
4671
  }, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(shared.ToolButton, {
4677
4672
  onClick: onClick,
4678
4673
  "data-testid": "export-tac-button"
4679
- }, /*#__PURE__*/React__default["default"].createElement(icons.Export, null))));
4674
+ }, /*#__PURE__*/React__default["default"].createElement(theme.Export, null))));
4680
4675
  };
4681
4676
 
4682
4677
  /* *
@@ -4969,7 +4964,7 @@
4969
4964
  right: '8px',
4970
4965
  top: '30px'
4971
4966
  }
4972
- }, /*#__PURE__*/React__namespace.createElement(icons.ListItem, null)), /*#__PURE__*/React__namespace.createElement(material.Dialog, {
4967
+ }, /*#__PURE__*/React__namespace.createElement(theme.ListItem, null)), /*#__PURE__*/React__namespace.createElement(material.Dialog, {
4973
4968
  open: isOpen,
4974
4969
  onClose: onClose,
4975
4970
  PaperProps: {
@@ -5116,9 +5111,9 @@
5116
5111
  component: "span",
5117
5112
  sx: {
5118
5113
  position: 'absolute',
5119
- bottom: '1px',
5120
- width: '20px',
5121
- height: '20px'
5114
+ bottom: '-1px',
5115
+ width: '24px',
5116
+ height: '24px'
5122
5117
  }
5123
5118
  }, /*#__PURE__*/React__namespace.createElement(StatusIcon, {
5124
5119
  timeSlot: timeSlot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "2.10.0",
3
+ "version": "2.14.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,18 +13,16 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/api": "2.10.0",
16
+ "@opengeoweb/api": "2.14.0",
17
17
  "axios": "^0.25.0",
18
- "@opengeoweb/shared": "2.10.0",
18
+ "@opengeoweb/shared": "2.14.0",
19
19
  "@mui/material": "^5.2.8",
20
- "@opengeoweb/theme": "2.10.0",
20
+ "@opengeoweb/theme": "2.14.0",
21
21
  "@mui/styles": "^5.2.3",
22
- "@mui/icons-material": "^5.2.5",
23
- "@opengeoweb/icons": "2.10.0",
24
22
  "react-draggable": "^4.4.3",
25
23
  "re-resizable": "^6.9.0",
26
24
  "lodash": "^4.17.20",
27
- "@opengeoweb/form-fields": "2.10.0",
25
+ "@opengeoweb/form-fields": "2.14.0",
28
26
  "react-hook-form": "^6.12.1",
29
27
  "moment": "^2.29.0",
30
28
  "moment-timezone": "^0.5.31",