@opengeoweb/taf 2.10.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 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 = {
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,7 +4597,7 @@
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
4602
  fontSize: "small",
4603
4603
  sx: {
@@ -4610,7 +4610,7 @@
4610
4610
  if (status === 'CANCELLED') {
4611
4611
  return /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4612
4612
  title: "Cancelled"
4613
- }, /*#__PURE__*/React__namespace.createElement(icons.Cancel, {
4613
+ }, /*#__PURE__*/React__namespace.createElement(theme.Cancel, {
4614
4614
  "data-testid": "status-cancelled",
4615
4615
  fontSize: "small",
4616
4616
  sx: {
@@ -4622,7 +4622,7 @@
4622
4622
  if (status === 'DRAFT' || status === 'DRAFT_CORRECTED' || status === 'DRAFT_AMENDED') {
4623
4623
  return /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4624
4624
  title: "Draft"
4625
- }, /*#__PURE__*/React__namespace.createElement(icons.Edit, {
4625
+ }, /*#__PURE__*/React__namespace.createElement(theme.Edit, {
4626
4626
  "data-testid": "status-draft",
4627
4627
  fontSize: "small",
4628
4628
  sx: {
@@ -4633,7 +4633,7 @@
4633
4633
 
4634
4634
  return timeSlot === 'ACTIVE' ? /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4635
4635
  title: "Active"
4636
- }, /*#__PURE__*/React__namespace.createElement(icons.Success, {
4636
+ }, /*#__PURE__*/React__namespace.createElement(theme.Success, {
4637
4637
  "data-testid": "status-active",
4638
4638
  fontSize: "small",
4639
4639
  sx: {
@@ -4641,7 +4641,7 @@
4641
4641
  }
4642
4642
  })) : /*#__PURE__*/React__namespace.createElement(IconWithTooltip, {
4643
4643
  title: "Upcoming"
4644
- }, /*#__PURE__*/React__namespace.createElement(icons.Clock, {
4644
+ }, /*#__PURE__*/React__namespace.createElement(theme.Clock, {
4645
4645
  "data-testid": "status-upcoming",
4646
4646
  fontSize: "small",
4647
4647
  sx: {
@@ -4676,7 +4676,7 @@
4676
4676
  }, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(shared.ToolButton, {
4677
4677
  onClick: onClick,
4678
4678
  "data-testid": "export-tac-button"
4679
- }, /*#__PURE__*/React__default["default"].createElement(icons.Export, null))));
4679
+ }, /*#__PURE__*/React__default["default"].createElement(theme.Export, null))));
4680
4680
  };
4681
4681
 
4682
4682
  /* *
@@ -4969,7 +4969,7 @@
4969
4969
  right: '8px',
4970
4970
  top: '30px'
4971
4971
  }
4972
- }, /*#__PURE__*/React__namespace.createElement(icons.ListItem, null)), /*#__PURE__*/React__namespace.createElement(material.Dialog, {
4972
+ }, /*#__PURE__*/React__namespace.createElement(theme.ListItem, null)), /*#__PURE__*/React__namespace.createElement(material.Dialog, {
4973
4973
  open: isOpen,
4974
4974
  onClose: onClose,
4975
4975
  PaperProps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "2.10.0",
3
+ "version": "2.12.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.12.0",
17
17
  "axios": "^0.25.0",
18
- "@opengeoweb/shared": "2.10.0",
18
+ "@opengeoweb/shared": "2.12.0",
19
19
  "@mui/material": "^5.2.8",
20
- "@opengeoweb/theme": "2.10.0",
20
+ "@opengeoweb/theme": "2.12.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.12.0",
28
26
  "react-hook-form": "^6.12.1",
29
27
  "moment": "^2.29.0",
30
28
  "moment-timezone": "^0.5.31",