@opengeoweb/taf 4.2.0 → 4.3.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 +9 -24
- package/index.umd.js +13 -28
- package/lib/types.d.ts +0 -3
- package/package.json +15 -15
package/index.esm.js
CHANGED
|
@@ -3,7 +3,8 @@ import React__default from 'react';
|
|
|
3
3
|
import { TextField, Grid, Box, Button, IconButton, Tooltip, Chip, Typography, FormLabel, Switch, Card, Tabs, Tab, Dialog, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
|
|
4
4
|
import { useFormContext, Controller, useFieldArray } from 'react-hook-form';
|
|
5
5
|
import { useDispatch } from 'react-redux';
|
|
6
|
-
import { ReactSortable
|
|
6
|
+
import { ReactSortable } from 'react-sortablejs';
|
|
7
|
+
import Sortable from 'sortablejs';
|
|
7
8
|
import { isEqual } from 'lodash';
|
|
8
9
|
import { useAuthenticationContext } from '@opengeoweb/authentication';
|
|
9
10
|
import { getDeepProperty, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
|
|
@@ -3069,9 +3070,9 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
3069
3070
|
justifyContent: "flex-start",
|
|
3070
3071
|
"data-testid": "row-".concat(namePrefix),
|
|
3071
3072
|
container: true,
|
|
3072
|
-
ref: ref
|
|
3073
|
-
columns: 24
|
|
3073
|
+
ref: ref
|
|
3074
3074
|
}, props), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3075
|
+
columns: 24,
|
|
3075
3076
|
item: true,
|
|
3076
3077
|
container: true,
|
|
3077
3078
|
justifyContent: "flex-end",
|
|
@@ -3342,7 +3343,8 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
3342
3343
|
sm: 1,
|
|
3343
3344
|
sx: {
|
|
3344
3345
|
marginBottom: '16px'
|
|
3345
|
-
}
|
|
3346
|
+
},
|
|
3347
|
+
columns: 24
|
|
3346
3348
|
}, /*#__PURE__*/React__default.createElement(TafFormOptionsButton, {
|
|
3347
3349
|
isChangeGroup: isChangeGroup,
|
|
3348
3350
|
addChangeGroupBelow: addChangeGroupBelow,
|
|
@@ -3461,6 +3463,7 @@ var TafFormButtons = function TafFormButtons(_ref2) {
|
|
|
3461
3463
|
item: true,
|
|
3462
3464
|
container: true,
|
|
3463
3465
|
justifyContent: "flex-end",
|
|
3466
|
+
columns: 24,
|
|
3464
3467
|
xs: 24,
|
|
3465
3468
|
sm: 23
|
|
3466
3469
|
}, isFormDisabled ? /*#__PURE__*/React__default.createElement(ViewModeButtons, {
|
|
@@ -3501,6 +3504,7 @@ var TafFormButtons = function TafFormButtons(_ref2) {
|
|
|
3501
3504
|
}
|
|
3502
3505
|
}, "Publish"))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3503
3506
|
item: true,
|
|
3507
|
+
columns: 24,
|
|
3504
3508
|
sm: 1
|
|
3505
3509
|
}));
|
|
3506
3510
|
};
|
|
@@ -4058,7 +4062,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
4058
4062
|
var isFormDirty = formState.isDirty,
|
|
4059
4063
|
errors = formState.errors;
|
|
4060
4064
|
usePreventBrowserClose(isFormDirty && !isDisabled);
|
|
4061
|
-
var hiddenInputFields = ['baseTime', 'issueDate', '
|
|
4065
|
+
var hiddenInputFields = ['baseTime', 'issueDate', 'uuid', 'validDateStart', 'validDateEnd', 'status', 'previousId', 'previousValidDateStart', 'previousValidDateEnd'];
|
|
4062
4066
|
|
|
4063
4067
|
var _React$useState = React__default.useState(getValues()),
|
|
4064
4068
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -6436,7 +6440,6 @@ var fakeTafList = [{
|
|
|
6436
6440
|
validDateEnd: upcomingValidDateEnd,
|
|
6437
6441
|
location: 'EHAM',
|
|
6438
6442
|
status: 'NEW',
|
|
6439
|
-
type: 'NORMAL',
|
|
6440
6443
|
messageType: 'ORG',
|
|
6441
6444
|
baseForecast: {
|
|
6442
6445
|
valid: {
|
|
@@ -6456,7 +6459,6 @@ var fakeTafList = [{
|
|
|
6456
6459
|
validDateEnd: upcomingValidDateEnd,
|
|
6457
6460
|
location: 'EHRD',
|
|
6458
6461
|
status: 'DRAFT',
|
|
6459
|
-
type: 'NORMAL',
|
|
6460
6462
|
messageType: 'ORG',
|
|
6461
6463
|
baseForecast: {
|
|
6462
6464
|
valid: {
|
|
@@ -6485,7 +6487,6 @@ var fakeTafList = [{
|
|
|
6485
6487
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6486
6488
|
location: 'EHLE',
|
|
6487
6489
|
status: 'DRAFT_AMENDED',
|
|
6488
|
-
type: 'NORMAL',
|
|
6489
6490
|
messageType: 'AMD',
|
|
6490
6491
|
baseForecast: {
|
|
6491
6492
|
valid: {
|
|
@@ -6544,7 +6545,6 @@ var fakeTafList = [{
|
|
|
6544
6545
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6545
6546
|
location: 'EHLE',
|
|
6546
6547
|
status: 'CORRECTED',
|
|
6547
|
-
type: 'NORMAL',
|
|
6548
6548
|
messageType: 'COR',
|
|
6549
6549
|
baseForecast: {
|
|
6550
6550
|
valid: {
|
|
@@ -6612,7 +6612,6 @@ var fakeTafList = [{
|
|
|
6612
6612
|
validDateEnd: upcomingValidDateEnd,
|
|
6613
6613
|
location: 'EHGG',
|
|
6614
6614
|
status: 'PUBLISHED',
|
|
6615
|
-
type: 'NORMAL',
|
|
6616
6615
|
messageType: 'ORG',
|
|
6617
6616
|
baseForecast: {
|
|
6618
6617
|
valid: {
|
|
@@ -6671,7 +6670,6 @@ var fakeTafList = [{
|
|
|
6671
6670
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6672
6671
|
location: 'EHBK',
|
|
6673
6672
|
status: 'CANCELLED',
|
|
6674
|
-
type: 'NORMAL',
|
|
6675
6673
|
messageType: 'CNL',
|
|
6676
6674
|
baseForecast: {
|
|
6677
6675
|
valid: {
|
|
@@ -6713,7 +6711,6 @@ var fakeTafList = [{
|
|
|
6713
6711
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6714
6712
|
location: 'TNCB',
|
|
6715
6713
|
status: 'AMENDED',
|
|
6716
|
-
type: 'NORMAL',
|
|
6717
6714
|
messageType: 'AMD',
|
|
6718
6715
|
baseForecast: {
|
|
6719
6716
|
valid: {
|
|
@@ -6752,7 +6749,6 @@ var fakeTafList = [{
|
|
|
6752
6749
|
validDateEnd: currentValidDateEnd,
|
|
6753
6750
|
location: 'EHAM',
|
|
6754
6751
|
status: 'PUBLISHED',
|
|
6755
|
-
type: 'NORMAL',
|
|
6756
6752
|
messageType: 'ORG',
|
|
6757
6753
|
baseForecast: {
|
|
6758
6754
|
valid: {
|
|
@@ -6791,7 +6787,6 @@ var fakeTafList = [{
|
|
|
6791
6787
|
validDateEnd: currentValidDateEnd,
|
|
6792
6788
|
location: 'EHRD',
|
|
6793
6789
|
status: 'NEW',
|
|
6794
|
-
type: 'NORMAL',
|
|
6795
6790
|
messageType: 'ORG',
|
|
6796
6791
|
baseForecast: {
|
|
6797
6792
|
valid: {
|
|
@@ -6812,7 +6807,6 @@ var fakeTafList = [{
|
|
|
6812
6807
|
validDateEnd: currentValidDateEnd,
|
|
6813
6808
|
location: 'EHLE',
|
|
6814
6809
|
status: 'NEW',
|
|
6815
|
-
type: 'NORMAL',
|
|
6816
6810
|
messageType: 'ORG',
|
|
6817
6811
|
baseForecast: {
|
|
6818
6812
|
valid: {
|
|
@@ -6833,7 +6827,6 @@ var fakeTafList = [{
|
|
|
6833
6827
|
validDateEnd: currentValidDateEnd,
|
|
6834
6828
|
location: 'EHGG',
|
|
6835
6829
|
status: 'NEW',
|
|
6836
|
-
type: 'NORMAL',
|
|
6837
6830
|
messageType: 'ORG',
|
|
6838
6831
|
baseForecast: {
|
|
6839
6832
|
valid: {
|
|
@@ -6854,7 +6847,6 @@ var fakeTafList = [{
|
|
|
6854
6847
|
validDateEnd: currentValidDateEnd,
|
|
6855
6848
|
location: 'EHBK',
|
|
6856
6849
|
status: 'NEW',
|
|
6857
|
-
type: 'NORMAL',
|
|
6858
6850
|
messageType: 'ORG',
|
|
6859
6851
|
baseForecast: {
|
|
6860
6852
|
valid: {
|
|
@@ -6875,7 +6867,6 @@ var fakeTafList = [{
|
|
|
6875
6867
|
validDateEnd: currentValidDateEnd,
|
|
6876
6868
|
location: 'TNCB',
|
|
6877
6869
|
status: 'NEW',
|
|
6878
|
-
type: 'NORMAL',
|
|
6879
6870
|
messageType: 'ORG',
|
|
6880
6871
|
baseForecast: {
|
|
6881
6872
|
valid: {
|
|
@@ -6896,7 +6887,6 @@ var fakeTafList = [{
|
|
|
6896
6887
|
validDateEnd: expiredValidDateEnd,
|
|
6897
6888
|
location: 'EHAM',
|
|
6898
6889
|
status: 'EXPIRED',
|
|
6899
|
-
type: 'NORMAL',
|
|
6900
6890
|
messageType: 'ORG',
|
|
6901
6891
|
baseForecast: {
|
|
6902
6892
|
valid: {
|
|
@@ -6954,7 +6944,6 @@ var fakeNewTaf = {
|
|
|
6954
6944
|
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
6955
6945
|
editor: null,
|
|
6956
6946
|
taf: {
|
|
6957
|
-
type: 'NORMAL',
|
|
6958
6947
|
messageType: 'ORG',
|
|
6959
6948
|
status: 'NEW',
|
|
6960
6949
|
uuid: '5f9583fjdf0445332f337925',
|
|
@@ -6998,7 +6987,6 @@ var fakePublishedTaf = {
|
|
|
6998
6987
|
validDateEnd: "".concat(tomorrowDate, "T18:00:00Z"),
|
|
6999
6988
|
location: 'EHLE',
|
|
7000
6989
|
status: 'PUBLISHED',
|
|
7001
|
-
type: 'NORMAL',
|
|
7002
6990
|
messageType: 'ORG',
|
|
7003
6991
|
baseForecast: {
|
|
7004
6992
|
valid: {
|
|
@@ -7140,7 +7128,6 @@ var fakeDraftTaf = {
|
|
|
7140
7128
|
validDateEnd: "".concat(tomorrowDate, "T23:59:00Z"),
|
|
7141
7129
|
location: 'EHLE',
|
|
7142
7130
|
status: 'DRAFT',
|
|
7143
|
-
type: 'NORMAL',
|
|
7144
7131
|
messageType: 'ORG',
|
|
7145
7132
|
baseForecast: {
|
|
7146
7133
|
valid: {
|
|
@@ -7198,7 +7185,6 @@ var fakeDraftAmendmentTaf = {
|
|
|
7198
7185
|
previousValidDateEnd: "".concat(tomorrowDate, "T18:00:00Z"),
|
|
7199
7186
|
location: 'EHAM',
|
|
7200
7187
|
status: 'DRAFT_AMENDED',
|
|
7201
|
-
type: 'NORMAL',
|
|
7202
7188
|
messageType: 'AMD',
|
|
7203
7189
|
baseForecast: {
|
|
7204
7190
|
valid: {
|
|
@@ -7279,7 +7265,6 @@ var fakeAmendmentTaf = {
|
|
|
7279
7265
|
previousValidDateEnd: "".concat(tomorrowDate, "T18:00:00Z"),
|
|
7280
7266
|
location: 'EHAM',
|
|
7281
7267
|
status: 'AMENDED',
|
|
7282
|
-
type: 'NORMAL',
|
|
7283
7268
|
messageType: 'AMD',
|
|
7284
7269
|
baseForecast: {
|
|
7285
7270
|
valid: {
|
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-redux'), require('react-sortablejs'), require('lodash'), require('@opengeoweb/authentication'), require('@opengeoweb/form-fields'), require('@opengeoweb/shared'), require('@opengeoweb/core'), require('moment'), require('@opengeoweb/theme'), 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-redux', 'react-sortablejs', 'lodash', '@opengeoweb/authentication', '@opengeoweb/form-fields', '@opengeoweb/shared', '@opengeoweb/core', 'moment', '@opengeoweb/theme', '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.reactRedux, global.reactSortablejs, global.lodash, global.authentication, global.formFields, global.shared, global.core, global.moment, global.theme, global.ReactDOM, global.api, global.LinearProgress, global.Box));
|
|
5
|
-
})(this, (function (exports, React, material, reactHookForm, reactRedux, reactSortablejs, lodash, authentication, formFields, shared, core, moment, theme, 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-redux'), require('react-sortablejs'), require('sortablejs'), require('lodash'), require('@opengeoweb/authentication'), require('@opengeoweb/form-fields'), require('@opengeoweb/shared'), require('@opengeoweb/core'), require('moment'), require('@opengeoweb/theme'), 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-redux', 'react-sortablejs', 'sortablejs', 'lodash', '@opengeoweb/authentication', '@opengeoweb/form-fields', '@opengeoweb/shared', '@opengeoweb/core', 'moment', '@opengeoweb/theme', '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.reactRedux, global.reactSortablejs, global.Sortable, global.lodash, global.authentication, global.formFields, global.shared, global.core, global.moment, global.theme, global.ReactDOM, global.api, global.LinearProgress, global.Box));
|
|
5
|
+
})(this, (function (exports, React, material, reactHookForm, reactRedux, reactSortablejs, Sortable, lodash, authentication, formFields, shared, core, moment, theme, 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
|
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
+
var Sortable__default = /*#__PURE__*/_interopDefaultLegacy(Sortable);
|
|
29
30
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
30
31
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
31
32
|
var LinearProgress__default = /*#__PURE__*/_interopDefaultLegacy(LinearProgress);
|
|
@@ -3066,9 +3067,9 @@
|
|
|
3066
3067
|
justifyContent: "flex-start",
|
|
3067
3068
|
"data-testid": "row-" + namePrefix,
|
|
3068
3069
|
container: true,
|
|
3069
|
-
ref: ref
|
|
3070
|
-
columns: 24
|
|
3070
|
+
ref: ref
|
|
3071
3071
|
}, props), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
3072
|
+
columns: 24,
|
|
3072
3073
|
item: true,
|
|
3073
3074
|
container: true,
|
|
3074
3075
|
justifyContent: "flex-end",
|
|
@@ -3339,7 +3340,8 @@
|
|
|
3339
3340
|
sm: 1,
|
|
3340
3341
|
sx: {
|
|
3341
3342
|
marginBottom: '16px'
|
|
3342
|
-
}
|
|
3343
|
+
},
|
|
3344
|
+
columns: 24
|
|
3343
3345
|
}, /*#__PURE__*/React__default["default"].createElement(TafFormOptionsButton, {
|
|
3344
3346
|
isChangeGroup: isChangeGroup,
|
|
3345
3347
|
addChangeGroupBelow: addChangeGroupBelow,
|
|
@@ -3458,6 +3460,7 @@
|
|
|
3458
3460
|
item: true,
|
|
3459
3461
|
container: true,
|
|
3460
3462
|
justifyContent: "flex-end",
|
|
3463
|
+
columns: 24,
|
|
3461
3464
|
xs: 24,
|
|
3462
3465
|
sm: 23
|
|
3463
3466
|
}, isFormDisabled ? /*#__PURE__*/React__default["default"].createElement(ViewModeButtons, {
|
|
@@ -3498,6 +3501,7 @@
|
|
|
3498
3501
|
}
|
|
3499
3502
|
}, "Publish"))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
|
|
3500
3503
|
item: true,
|
|
3504
|
+
columns: 24,
|
|
3501
3505
|
sm: 1
|
|
3502
3506
|
}));
|
|
3503
3507
|
};
|
|
@@ -4024,7 +4028,7 @@
|
|
|
4024
4028
|
var isFormDirty = formState.isDirty,
|
|
4025
4029
|
errors = formState.errors;
|
|
4026
4030
|
shared.usePreventBrowserClose(isFormDirty && !isDisabled);
|
|
4027
|
-
var hiddenInputFields = ['baseTime', 'issueDate', '
|
|
4031
|
+
var hiddenInputFields = ['baseTime', 'issueDate', 'uuid', 'validDateStart', 'validDateEnd', 'status', 'previousId', 'previousValidDateStart', 'previousValidDateEnd'];
|
|
4028
4032
|
|
|
4029
4033
|
var _l = __read(React__default["default"].useState(getValues()), 2),
|
|
4030
4034
|
delayedFormValues = _l[0],
|
|
@@ -4519,7 +4523,7 @@
|
|
|
4519
4523
|
forceFallback: true,
|
|
4520
4524
|
onStart: function onStart(event) {
|
|
4521
4525
|
onStartDrag(event);
|
|
4522
|
-
|
|
4526
|
+
Sortable__default["default"].ghost.style.opacity = '1';
|
|
4523
4527
|
}
|
|
4524
4528
|
}, fields.map(function (item, index) {
|
|
4525
4529
|
return /*#__PURE__*/React__default["default"].createElement(TafFormRow, {
|
|
@@ -6414,7 +6418,6 @@
|
|
|
6414
6418
|
validDateEnd: upcomingValidDateEnd,
|
|
6415
6419
|
location: 'EHAM',
|
|
6416
6420
|
status: 'NEW',
|
|
6417
|
-
type: 'NORMAL',
|
|
6418
6421
|
messageType: 'ORG',
|
|
6419
6422
|
baseForecast: {
|
|
6420
6423
|
valid: {
|
|
@@ -6434,7 +6437,6 @@
|
|
|
6434
6437
|
validDateEnd: upcomingValidDateEnd,
|
|
6435
6438
|
location: 'EHRD',
|
|
6436
6439
|
status: 'DRAFT',
|
|
6437
|
-
type: 'NORMAL',
|
|
6438
6440
|
messageType: 'ORG',
|
|
6439
6441
|
baseForecast: {
|
|
6440
6442
|
valid: {
|
|
@@ -6463,7 +6465,6 @@
|
|
|
6463
6465
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6464
6466
|
location: 'EHLE',
|
|
6465
6467
|
status: 'DRAFT_AMENDED',
|
|
6466
|
-
type: 'NORMAL',
|
|
6467
6468
|
messageType: 'AMD',
|
|
6468
6469
|
baseForecast: {
|
|
6469
6470
|
valid: {
|
|
@@ -6522,7 +6523,6 @@
|
|
|
6522
6523
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6523
6524
|
location: 'EHLE',
|
|
6524
6525
|
status: 'CORRECTED',
|
|
6525
|
-
type: 'NORMAL',
|
|
6526
6526
|
messageType: 'COR',
|
|
6527
6527
|
baseForecast: {
|
|
6528
6528
|
valid: {
|
|
@@ -6590,7 +6590,6 @@
|
|
|
6590
6590
|
validDateEnd: upcomingValidDateEnd,
|
|
6591
6591
|
location: 'EHGG',
|
|
6592
6592
|
status: 'PUBLISHED',
|
|
6593
|
-
type: 'NORMAL',
|
|
6594
6593
|
messageType: 'ORG',
|
|
6595
6594
|
baseForecast: {
|
|
6596
6595
|
valid: {
|
|
@@ -6649,7 +6648,6 @@
|
|
|
6649
6648
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6650
6649
|
location: 'EHBK',
|
|
6651
6650
|
status: 'CANCELLED',
|
|
6652
|
-
type: 'NORMAL',
|
|
6653
6651
|
messageType: 'CNL',
|
|
6654
6652
|
baseForecast: {
|
|
6655
6653
|
valid: {
|
|
@@ -6691,7 +6689,6 @@
|
|
|
6691
6689
|
previousValidDateEnd: upcomingValidDateEnd,
|
|
6692
6690
|
location: 'TNCB',
|
|
6693
6691
|
status: 'AMENDED',
|
|
6694
|
-
type: 'NORMAL',
|
|
6695
6692
|
messageType: 'AMD',
|
|
6696
6693
|
baseForecast: {
|
|
6697
6694
|
valid: {
|
|
@@ -6730,7 +6727,6 @@
|
|
|
6730
6727
|
validDateEnd: currentValidDateEnd,
|
|
6731
6728
|
location: 'EHAM',
|
|
6732
6729
|
status: 'PUBLISHED',
|
|
6733
|
-
type: 'NORMAL',
|
|
6734
6730
|
messageType: 'ORG',
|
|
6735
6731
|
baseForecast: {
|
|
6736
6732
|
valid: {
|
|
@@ -6769,7 +6765,6 @@
|
|
|
6769
6765
|
validDateEnd: currentValidDateEnd,
|
|
6770
6766
|
location: 'EHRD',
|
|
6771
6767
|
status: 'NEW',
|
|
6772
|
-
type: 'NORMAL',
|
|
6773
6768
|
messageType: 'ORG',
|
|
6774
6769
|
baseForecast: {
|
|
6775
6770
|
valid: {
|
|
@@ -6790,7 +6785,6 @@
|
|
|
6790
6785
|
validDateEnd: currentValidDateEnd,
|
|
6791
6786
|
location: 'EHLE',
|
|
6792
6787
|
status: 'NEW',
|
|
6793
|
-
type: 'NORMAL',
|
|
6794
6788
|
messageType: 'ORG',
|
|
6795
6789
|
baseForecast: {
|
|
6796
6790
|
valid: {
|
|
@@ -6811,7 +6805,6 @@
|
|
|
6811
6805
|
validDateEnd: currentValidDateEnd,
|
|
6812
6806
|
location: 'EHGG',
|
|
6813
6807
|
status: 'NEW',
|
|
6814
|
-
type: 'NORMAL',
|
|
6815
6808
|
messageType: 'ORG',
|
|
6816
6809
|
baseForecast: {
|
|
6817
6810
|
valid: {
|
|
@@ -6832,7 +6825,6 @@
|
|
|
6832
6825
|
validDateEnd: currentValidDateEnd,
|
|
6833
6826
|
location: 'EHBK',
|
|
6834
6827
|
status: 'NEW',
|
|
6835
|
-
type: 'NORMAL',
|
|
6836
6828
|
messageType: 'ORG',
|
|
6837
6829
|
baseForecast: {
|
|
6838
6830
|
valid: {
|
|
@@ -6853,7 +6845,6 @@
|
|
|
6853
6845
|
validDateEnd: currentValidDateEnd,
|
|
6854
6846
|
location: 'TNCB',
|
|
6855
6847
|
status: 'NEW',
|
|
6856
|
-
type: 'NORMAL',
|
|
6857
6848
|
messageType: 'ORG',
|
|
6858
6849
|
baseForecast: {
|
|
6859
6850
|
valid: {
|
|
@@ -6874,7 +6865,6 @@
|
|
|
6874
6865
|
validDateEnd: expiredValidDateEnd,
|
|
6875
6866
|
location: 'EHAM',
|
|
6876
6867
|
status: 'EXPIRED',
|
|
6877
|
-
type: 'NORMAL',
|
|
6878
6868
|
messageType: 'ORG',
|
|
6879
6869
|
baseForecast: {
|
|
6880
6870
|
valid: {
|
|
@@ -6932,7 +6922,6 @@
|
|
|
6932
6922
|
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
6933
6923
|
editor: null,
|
|
6934
6924
|
taf: {
|
|
6935
|
-
type: 'NORMAL',
|
|
6936
6925
|
messageType: 'ORG',
|
|
6937
6926
|
status: 'NEW',
|
|
6938
6927
|
uuid: '5f9583fjdf0445332f337925',
|
|
@@ -6976,7 +6965,6 @@
|
|
|
6976
6965
|
validDateEnd: tomorrowDate + "T18:00:00Z",
|
|
6977
6966
|
location: 'EHLE',
|
|
6978
6967
|
status: 'PUBLISHED',
|
|
6979
|
-
type: 'NORMAL',
|
|
6980
6968
|
messageType: 'ORG',
|
|
6981
6969
|
baseForecast: {
|
|
6982
6970
|
valid: {
|
|
@@ -7118,7 +7106,6 @@
|
|
|
7118
7106
|
validDateEnd: tomorrowDate + "T23:59:00Z",
|
|
7119
7107
|
location: 'EHLE',
|
|
7120
7108
|
status: 'DRAFT',
|
|
7121
|
-
type: 'NORMAL',
|
|
7122
7109
|
messageType: 'ORG',
|
|
7123
7110
|
baseForecast: {
|
|
7124
7111
|
valid: {
|
|
@@ -7176,7 +7163,6 @@
|
|
|
7176
7163
|
previousValidDateEnd: tomorrowDate + "T18:00:00Z",
|
|
7177
7164
|
location: 'EHAM',
|
|
7178
7165
|
status: 'DRAFT_AMENDED',
|
|
7179
|
-
type: 'NORMAL',
|
|
7180
7166
|
messageType: 'AMD',
|
|
7181
7167
|
baseForecast: {
|
|
7182
7168
|
valid: {
|
|
@@ -7257,7 +7243,6 @@
|
|
|
7257
7243
|
previousValidDateEnd: tomorrowDate + "T18:00:00Z",
|
|
7258
7244
|
location: 'EHAM',
|
|
7259
7245
|
status: 'AMENDED',
|
|
7260
|
-
type: 'NORMAL',
|
|
7261
7246
|
messageType: 'AMD',
|
|
7262
7247
|
baseForecast: {
|
|
7263
7248
|
valid: {
|
package/lib/types.d.ts
CHANGED
|
@@ -69,10 +69,8 @@ export interface BaseTaf {
|
|
|
69
69
|
export declare type TafStatus = 'NEW' | 'DRAFT' | 'DRAFT_AMENDED' | 'DRAFT_CORRECTED' | 'PUBLISHED' | 'CORRECTED' | 'AMENDED' | 'CANCELLED' | 'EXPIRED';
|
|
70
70
|
export declare type TafActions = 'NEW' | 'DRAFT' | 'DRAFT_AMEND' | 'DRAFT_CORRECT' | 'PUBLISH' | 'CANCEL' | 'CORRECT' | 'AMEND' | 'CLOSE' | 'DISCARD';
|
|
71
71
|
export declare type TafCanbe = 'DRAFTED' | 'DISCARDED' | 'PUBLISHED' | 'CANCELLED' | 'AMENDED' | 'CORRECTED';
|
|
72
|
-
export declare type TafType = 'NORMAL' | 'TEST' | 'EXERCISE';
|
|
73
72
|
export interface Taf extends BaseTaf {
|
|
74
73
|
status: TafStatus;
|
|
75
|
-
type: TafType;
|
|
76
74
|
}
|
|
77
75
|
export interface BaseForecastFormData {
|
|
78
76
|
valid: string;
|
|
@@ -110,7 +108,6 @@ export interface TafFormData {
|
|
|
110
108
|
uuid: string;
|
|
111
109
|
issueDate?: string;
|
|
112
110
|
status: TafStatus;
|
|
113
|
-
type: TafType;
|
|
114
111
|
}
|
|
115
112
|
/**
|
|
116
113
|
* Type with TAF info from the backend
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,26 +12,27 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/core": "4.
|
|
15
|
+
"@opengeoweb/core": "4.3.0",
|
|
16
16
|
"react": "^17.0.2",
|
|
17
|
-
"@opengeoweb/theme": "4.
|
|
18
|
-
"@mui/material": "^5.
|
|
17
|
+
"@opengeoweb/theme": "4.3.0",
|
|
18
|
+
"@mui/material": "^5.10.8",
|
|
19
19
|
"moment": "^2.29.0",
|
|
20
20
|
"react-redux": "^8.0.2",
|
|
21
21
|
"react-intl": "^5.17.5",
|
|
22
22
|
"lodash": "^4.17.20",
|
|
23
|
-
"@opengeoweb/shared": "4.
|
|
24
|
-
"react-draggable": "^4.4.
|
|
23
|
+
"@opengeoweb/shared": "4.3.0",
|
|
24
|
+
"react-draggable": "^4.4.5",
|
|
25
25
|
"re-resizable": "^6.9.0",
|
|
26
|
-
"@opengeoweb/form-fields": "4.
|
|
26
|
+
"@opengeoweb/form-fields": "4.3.0",
|
|
27
27
|
"react-hook-form": "^6.12.1",
|
|
28
28
|
"moment-timezone": "^0.5.31",
|
|
29
|
-
"@mui/
|
|
29
|
+
"@mui/x-date-pickers": "^5.0.4",
|
|
30
30
|
"axios": "^0.25.0",
|
|
31
|
-
"@opengeoweb/webmap": "4.
|
|
31
|
+
"@opengeoweb/webmap": "4.3.0",
|
|
32
32
|
"throttle-debounce": "^3.0.1",
|
|
33
33
|
"proj4": "^2.6.2",
|
|
34
|
-
"react-sortablejs": "^6.
|
|
34
|
+
"react-sortablejs": "^6.1.4",
|
|
35
|
+
"sortablejs": "^1.15.0",
|
|
35
36
|
"react-window": "^1.8.7",
|
|
36
37
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
38
|
"immer": "^9.0.15",
|
|
@@ -40,11 +41,10 @@
|
|
|
40
41
|
"@turf/turf": "^5.1.6",
|
|
41
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
42
43
|
"redux-saga": "^1.1.3",
|
|
43
|
-
"@opengeoweb/api": "4.
|
|
44
|
+
"@opengeoweb/api": "4.3.0",
|
|
44
45
|
"react-dom": "^17.0.2",
|
|
45
|
-
"@opengeoweb/authentication": "4.
|
|
46
|
-
"react-router-dom": "^
|
|
47
|
-
"query-string": "^6.13.7"
|
|
48
|
-
"sortablejs": "^1.14.0"
|
|
46
|
+
"@opengeoweb/authentication": "4.3.0",
|
|
47
|
+
"react-router-dom": "^6.4.2",
|
|
48
|
+
"query-string": "^6.13.7"
|
|
49
49
|
}
|
|
50
50
|
}
|