@opengeoweb/taf 12.1.2 → 12.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
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Grid, Button, Chip, Box, Typography, TextField, Card, Tabs, Tab, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
|
|
5
5
|
import { useFormContext, useFieldArray, Controller } from 'react-hook-form';
|
|
6
6
|
import { useDispatch } from 'react-redux';
|
|
7
7
|
import { ReactSortable } from 'react-sortablejs';
|
|
8
8
|
import Sortable from 'sortablejs';
|
|
9
|
-
import {
|
|
9
|
+
import { useAuthenticationContext as useAuthenticationContext$1 } from '@opengeoweb/authentication';
|
|
10
10
|
import { HIDDEN_INPUT_HELPER_IS_DRAFT, getDeepProperty, useDraftFormHelpers, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
|
|
11
|
-
import { SHARED_NAMESPACE, dateUtils, getErrorMessage as getErrorMessage$1, getWarningMessage, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, SwitchButton, ToolHeader, AlertBanner, LastUpdateTime, ErrorBoundary } from '@opengeoweb/shared';
|
|
11
|
+
import { SHARED_NAMESPACE, dateUtils, sessionStorageProvider, getErrorMessage as getErrorMessage$1, getWarningMessage, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, SwitchButton, CustomDialog, ToolHeader, AlertBanner, LastUpdateTime, ErrorBoundary } from '@opengeoweb/shared';
|
|
12
12
|
import { snackbarActions, snackbarTypes } from '@opengeoweb/snackbar';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
@@ -386,7 +386,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
386
386
|
if (null == r) return {};
|
|
387
387
|
var t = {};
|
|
388
388
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
389
|
-
if (e.indexOf(n)
|
|
389
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
390
390
|
t[n] = r[n];
|
|
391
391
|
}
|
|
392
392
|
return t;
|
|
@@ -409,9 +409,9 @@ function _regeneratorRuntime() {
|
|
|
409
409
|
function define(t, e, r) {
|
|
410
410
|
return Object.defineProperty(t, e, {
|
|
411
411
|
value: r,
|
|
412
|
-
enumerable:
|
|
413
|
-
configurable:
|
|
414
|
-
writable:
|
|
412
|
+
enumerable: true,
|
|
413
|
+
configurable: true,
|
|
414
|
+
writable: true
|
|
415
415
|
}), t[e];
|
|
416
416
|
}
|
|
417
417
|
try {
|
|
@@ -504,7 +504,7 @@ function _regeneratorRuntime() {
|
|
|
504
504
|
if ("throw" === i) throw a;
|
|
505
505
|
return {
|
|
506
506
|
value: t,
|
|
507
|
-
done:
|
|
507
|
+
done: true
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
510
|
for (n.method = i, n.arg = a;;) {
|
|
@@ -555,7 +555,7 @@ function _regeneratorRuntime() {
|
|
|
555
555
|
function Context(t) {
|
|
556
556
|
this.tryEntries = [{
|
|
557
557
|
tryLoc: "root"
|
|
558
|
-
}], t.forEach(pushTryEntry, this), this.reset(
|
|
558
|
+
}], t.forEach(pushTryEntry, this), this.reset(true);
|
|
559
559
|
}
|
|
560
560
|
function values(e) {
|
|
561
561
|
if (e || "" === e) {
|
|
@@ -565,8 +565,8 @@ function _regeneratorRuntime() {
|
|
|
565
565
|
if (!isNaN(e.length)) {
|
|
566
566
|
var o = -1,
|
|
567
567
|
i = function next() {
|
|
568
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done =
|
|
569
|
-
return next.value = t, next.done =
|
|
568
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
|
|
569
|
+
return next.value = t, next.done = true, next;
|
|
570
570
|
};
|
|
571
571
|
return i.next = i;
|
|
572
572
|
}
|
|
@@ -575,10 +575,10 @@ function _regeneratorRuntime() {
|
|
|
575
575
|
}
|
|
576
576
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
577
577
|
value: GeneratorFunctionPrototype,
|
|
578
|
-
configurable:
|
|
578
|
+
configurable: true
|
|
579
579
|
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
580
580
|
value: GeneratorFunction,
|
|
581
|
-
configurable:
|
|
581
|
+
configurable: true
|
|
582
582
|
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
583
583
|
var e = "function" == typeof t && t.constructor;
|
|
584
584
|
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
@@ -607,17 +607,17 @@ function _regeneratorRuntime() {
|
|
|
607
607
|
return r.reverse(), function next() {
|
|
608
608
|
for (; r.length;) {
|
|
609
609
|
var t = r.pop();
|
|
610
|
-
if (t in e) return next.value = t, next.done =
|
|
610
|
+
if (t in e) return next.value = t, next.done = false, next;
|
|
611
611
|
}
|
|
612
|
-
return next.done =
|
|
612
|
+
return next.done = true, next;
|
|
613
613
|
};
|
|
614
614
|
}, e.values = values, Context.prototype = {
|
|
615
615
|
constructor: Context,
|
|
616
616
|
reset: function (e) {
|
|
617
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done =
|
|
617
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
618
618
|
},
|
|
619
619
|
stop: function () {
|
|
620
|
-
this.done =
|
|
620
|
+
this.done = true;
|
|
621
621
|
var t = this.tryEntries[0].completion;
|
|
622
622
|
if ("throw" === t.type) throw t.arg;
|
|
623
623
|
return this.rval;
|
|
@@ -636,10 +636,10 @@ function _regeneratorRuntime() {
|
|
|
636
636
|
var c = n.call(i, "catchLoc"),
|
|
637
637
|
u = n.call(i, "finallyLoc");
|
|
638
638
|
if (c && u) {
|
|
639
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc,
|
|
639
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
640
640
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
641
641
|
} else if (c) {
|
|
642
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc,
|
|
642
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
643
643
|
} else {
|
|
644
644
|
if (!u) throw Error("try statement without catch or finally");
|
|
645
645
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
@@ -696,7 +696,7 @@ function _toPrimitive(t, r) {
|
|
|
696
696
|
if ("object" != typeof t || !t) return t;
|
|
697
697
|
var e = t[Symbol.toPrimitive];
|
|
698
698
|
if (void 0 !== e) {
|
|
699
|
-
var i = e.call(t, r
|
|
699
|
+
var i = e.call(t, r);
|
|
700
700
|
if ("object" != typeof i) return i;
|
|
701
701
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
702
702
|
}
|
|
@@ -808,13 +808,13 @@ var TafFormButtons = function TafFormButtons(_ref2) {
|
|
|
808
808
|
onTafViewModeButtonPress = _ref2.onTafViewModeButtonPress;
|
|
809
809
|
var _useTafTranslation2 = useTafTranslation(),
|
|
810
810
|
t = _useTafTranslation2.t;
|
|
811
|
-
return jsxs(
|
|
811
|
+
return jsxs(Grid, {
|
|
812
812
|
container: true,
|
|
813
813
|
columns: 24,
|
|
814
814
|
sx: [{
|
|
815
815
|
justifyContent: 'flex-end'
|
|
816
816
|
}].concat(Array.isArray(buttonsStyle) ? buttonsStyle : [buttonsStyle]),
|
|
817
|
-
children: [jsx(
|
|
817
|
+
children: [jsx(Grid, {
|
|
818
818
|
container: true,
|
|
819
819
|
columns: 24,
|
|
820
820
|
size: {
|
|
@@ -866,7 +866,7 @@ var TafFormButtons = function TafFormButtons(_ref2) {
|
|
|
866
866
|
children: t('button-publish')
|
|
867
867
|
})]
|
|
868
868
|
})
|
|
869
|
-
}), jsx(
|
|
869
|
+
}), jsx(Grid, {
|
|
870
870
|
columns: 24,
|
|
871
871
|
size: {
|
|
872
872
|
sm: 1
|
|
@@ -2626,7 +2626,7 @@ var DATE_FORMAT_BASE_TIME = 'HH:mm dd MMM';
|
|
|
2626
2626
|
* Copyright 2025 - Finnish Meteorological Institute (FMI)
|
|
2627
2627
|
* Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
|
|
2628
2628
|
* */
|
|
2629
|
-
var config = getConfig();
|
|
2629
|
+
var config = sessionStorageProvider.getConfig();
|
|
2630
2630
|
var tafBaseUrl = config.GW_TAF_BASE_URL || '';
|
|
2631
2631
|
var getTafList = function getTafList(auth) {
|
|
2632
2632
|
return fetch(tafBaseUrl + "/taflist", {
|
|
@@ -4202,7 +4202,7 @@ var TafFormTextField = function TafFormTextField(_ref3) {
|
|
|
4202
4202
|
onBlur();
|
|
4203
4203
|
}, [onBlur, name, setValue, shouldPreventUppercase]);
|
|
4204
4204
|
var hasError = !!fieldErrors;
|
|
4205
|
-
return jsx(
|
|
4205
|
+
return jsx(Grid, {
|
|
4206
4206
|
sx: {
|
|
4207
4207
|
width: 100 / 13 + "%",
|
|
4208
4208
|
minWidth: 60
|
|
@@ -4482,7 +4482,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
4482
4482
|
var clearRow = React__default.useCallback(function () {
|
|
4483
4483
|
onClearRow(index);
|
|
4484
4484
|
}, [onClearRow, index]);
|
|
4485
|
-
return jsxs(
|
|
4485
|
+
return jsxs(Grid, Object.assign({
|
|
4486
4486
|
"data-testid": "row-" + namePrefix,
|
|
4487
4487
|
container: true,
|
|
4488
4488
|
ref: ref
|
|
@@ -4508,7 +4508,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
4508
4508
|
opacity: 0.5
|
|
4509
4509
|
}
|
|
4510
4510
|
}].concat(Array.isArray(props.sx) ? props.sx : [props.sx]),
|
|
4511
|
-
children: [jsxs(
|
|
4511
|
+
children: [jsxs(Grid, {
|
|
4512
4512
|
container: true,
|
|
4513
4513
|
size: "grow",
|
|
4514
4514
|
sx: {
|
|
@@ -4779,7 +4779,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
4779
4779
|
}
|
|
4780
4780
|
}
|
|
4781
4781
|
})]
|
|
4782
|
-
}), !disabled && jsx(
|
|
4782
|
+
}), !disabled && jsx(Grid, {
|
|
4783
4783
|
container: true,
|
|
4784
4784
|
sx: {
|
|
4785
4785
|
justifyContent: 'flex-end',
|
|
@@ -5324,7 +5324,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
5324
5324
|
isNotRequiredForAction: isNotRequiredForAction
|
|
5325
5325
|
}, item.id);
|
|
5326
5326
|
})
|
|
5327
|
-
}), !isDisabled && isEditor && jsx(
|
|
5327
|
+
}), !isDisabled && isEditor && jsx(Grid, {
|
|
5328
5328
|
container: true,
|
|
5329
5329
|
sx: {
|
|
5330
5330
|
justifyContent: 'space-between',
|
|
@@ -5332,7 +5332,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
5332
5332
|
marginLeft: 1.5,
|
|
5333
5333
|
marginTop: 1
|
|
5334
5334
|
},
|
|
5335
|
-
children: jsx(
|
|
5335
|
+
children: jsx(Grid, {
|
|
5336
5336
|
children: jsx(IssuesButton, {
|
|
5337
5337
|
errors: errors,
|
|
5338
5338
|
isIssuesPaneOpen: isIssuesPaneOpen,
|
|
@@ -5994,17 +5994,16 @@ var TacOverviewMobile = function TacOverviewMobile(_ref) {
|
|
|
5994
5994
|
},
|
|
5995
5995
|
variant: "tool",
|
|
5996
5996
|
children: jsx(ListItem, {})
|
|
5997
|
-
}), jsxs(
|
|
5997
|
+
}), jsxs(CustomDialog, {
|
|
5998
5998
|
open: isOpen,
|
|
5999
5999
|
onClose: onClose,
|
|
6000
|
-
PaperProps: {
|
|
6001
|
-
sx: {
|
|
6002
|
-
margin: 2,
|
|
6003
|
-
width: '100%',
|
|
6004
|
-
height: '100%'
|
|
6005
|
-
}
|
|
6006
|
-
},
|
|
6007
6000
|
"data-testid": "tac-overview-mobile",
|
|
6001
|
+
fullWidth: true,
|
|
6002
|
+
maxWidth: "sm",
|
|
6003
|
+
hasLayout: false,
|
|
6004
|
+
sx: {
|
|
6005
|
+
height: '100%'
|
|
6006
|
+
},
|
|
6008
6007
|
children: [jsx(ToolHeader, {
|
|
6009
6008
|
title: t('tac-overview'),
|
|
6010
6009
|
size: "small",
|
|
@@ -6534,14 +6533,14 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6534
6533
|
display: 'flex',
|
|
6535
6534
|
flexDirection: 'column'
|
|
6536
6535
|
},
|
|
6537
|
-
children: [jsxs(
|
|
6536
|
+
children: [jsxs(Grid, {
|
|
6538
6537
|
container: true,
|
|
6539
6538
|
spacing: 2,
|
|
6540
6539
|
sx: {
|
|
6541
6540
|
paddingLeft: 1,
|
|
6542
6541
|
paddingRight: 1
|
|
6543
6542
|
},
|
|
6544
|
-
children: [jsx(
|
|
6543
|
+
children: [jsx(Grid, {
|
|
6545
6544
|
size: {
|
|
6546
6545
|
xs: 12,
|
|
6547
6546
|
sm: 9
|
|
@@ -6551,7 +6550,7 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6551
6550
|
timeSlot: timeSlot,
|
|
6552
6551
|
onChangeTimeSlot: onChangeTimeSlot
|
|
6553
6552
|
})
|
|
6554
|
-
}), jsx(
|
|
6553
|
+
}), jsx(Grid, {
|
|
6555
6554
|
size: {
|
|
6556
6555
|
xs: 12,
|
|
6557
6556
|
sm: 3
|
|
@@ -6562,13 +6561,13 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6562
6561
|
dataTestId: "lastupdated-time"
|
|
6563
6562
|
})
|
|
6564
6563
|
})]
|
|
6565
|
-
}), jsx(
|
|
6564
|
+
}), jsx(Grid, {
|
|
6566
6565
|
container: true,
|
|
6567
6566
|
sx: {
|
|
6568
6567
|
flexGrow: 1,
|
|
6569
6568
|
overflow: 'hidden'
|
|
6570
6569
|
},
|
|
6571
|
-
children: jsxs(
|
|
6570
|
+
children: jsxs(Grid, {
|
|
6572
6571
|
container: true,
|
|
6573
6572
|
spacing: 2,
|
|
6574
6573
|
sx: {
|
|
@@ -6578,7 +6577,7 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6578
6577
|
paddingTop: 2,
|
|
6579
6578
|
overflow: 'auto'
|
|
6580
6579
|
},
|
|
6581
|
-
children: [jsx(
|
|
6580
|
+
children: [jsx(Grid, {
|
|
6582
6581
|
size: {
|
|
6583
6582
|
xs: 3,
|
|
6584
6583
|
sm: 1
|
|
@@ -6589,7 +6588,7 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6589
6588
|
onChangeTab: onChangeLocationTab,
|
|
6590
6589
|
timeSlot: timeSlot
|
|
6591
6590
|
})
|
|
6592
|
-
}), jsx(
|
|
6591
|
+
}), jsx(Grid, {
|
|
6593
6592
|
size: "grow",
|
|
6594
6593
|
children: jsxs(Card, {
|
|
6595
6594
|
variant: "outlined",
|
|
@@ -6623,7 +6622,7 @@ var TafLayout = function TafLayout(_ref) {
|
|
|
6623
6622
|
}, tafFromBackend.taf.uuid);
|
|
6624
6623
|
})]
|
|
6625
6624
|
})
|
|
6626
|
-
}), jsxs(
|
|
6625
|
+
}), jsxs(Grid, {
|
|
6627
6626
|
size: {
|
|
6628
6627
|
xs: 0,
|
|
6629
6628
|
sm: 3
|
|
@@ -7629,9 +7628,6 @@ var fakeTafList = [{
|
|
|
7629
7628
|
}
|
|
7630
7629
|
}];
|
|
7631
7630
|
var fakeNewTaf = {
|
|
7632
|
-
creationDate: currentDate + "T12:00:00Z",
|
|
7633
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7634
|
-
editor: null,
|
|
7635
7631
|
taf: {
|
|
7636
7632
|
messageType: 'ORG',
|
|
7637
7633
|
status: 'NEW',
|
|
@@ -7649,9 +7645,6 @@ var fakeNewTaf = {
|
|
|
7649
7645
|
}
|
|
7650
7646
|
};
|
|
7651
7647
|
({
|
|
7652
|
-
creationDate: "2022-01-06T12:00:00Z",
|
|
7653
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7654
|
-
editor: MOCK_USERNAME,
|
|
7655
7648
|
taf: Object.assign({}, fakeNewTaf.taf, {
|
|
7656
7649
|
baseTime: "2022-01-06T12:00:00Z",
|
|
7657
7650
|
validDateStart: "2022-01-06T12:00:00Z",
|
|
@@ -7665,9 +7658,6 @@ var fakeNewTaf = {
|
|
|
7665
7658
|
})
|
|
7666
7659
|
});
|
|
7667
7660
|
var fakePublishedTaf = {
|
|
7668
|
-
creationDate: currentDate + "T12:00:00Z",
|
|
7669
|
-
canbe: ['CANCELLED', 'AMENDED', 'CORRECTED'],
|
|
7670
|
-
editor: null,
|
|
7671
7661
|
taf: {
|
|
7672
7662
|
uuid: 'slsdkjg-023895',
|
|
7673
7663
|
issueDate: currentDate + "T12:00:00Z",
|
|
@@ -7740,9 +7730,6 @@ var fakePublishedTaf = {
|
|
|
7740
7730
|
}
|
|
7741
7731
|
};
|
|
7742
7732
|
({
|
|
7743
|
-
creationDate: "2022-01-06T12:00:00Z",
|
|
7744
|
-
canbe: ['CANCELLED', 'AMENDED', 'CORRECTED'],
|
|
7745
|
-
editor: MOCK_USERNAME,
|
|
7746
7733
|
taf: Object.assign({}, fakePublishedTaf.taf, {
|
|
7747
7734
|
uuid: 'sowi3u4o-lsdjflsk',
|
|
7748
7735
|
location: 'EHGG',
|
|
@@ -7807,9 +7794,6 @@ var fakePublishedTaf = {
|
|
|
7807
7794
|
})
|
|
7808
7795
|
});
|
|
7809
7796
|
var fakeDraftTaf = {
|
|
7810
|
-
creationDate: currentDate + "T18:00:00Z",
|
|
7811
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7812
|
-
editor: null,
|
|
7813
7797
|
taf: {
|
|
7814
7798
|
uuid: '5f9583fjdf0f337925',
|
|
7815
7799
|
baseTime: currentDate + "T18:00:00Z",
|
|
@@ -7845,9 +7829,6 @@ var fakeDraftTaf = {
|
|
|
7845
7829
|
}
|
|
7846
7830
|
};
|
|
7847
7831
|
({
|
|
7848
|
-
creationDate: "2022-01-06T18:00:00Z",
|
|
7849
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7850
|
-
editor: MOCK_USERNAME,
|
|
7851
7832
|
taf: Object.assign({}, fakeDraftTaf.taf, {
|
|
7852
7833
|
baseTime: "2022-01-06T18:00:00Z",
|
|
7853
7834
|
validDateStart: "2022-01-06T18:00:00Z",
|
|
@@ -7861,9 +7842,6 @@ var fakeDraftTaf = {
|
|
|
7861
7842
|
})
|
|
7862
7843
|
});
|
|
7863
7844
|
var fakeDraftAmendmentTaf = {
|
|
7864
|
-
creationDate: currentDate + "T14:00:00Z",
|
|
7865
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7866
|
-
editor: null,
|
|
7867
7845
|
taf: {
|
|
7868
7846
|
uuid: '954905487',
|
|
7869
7847
|
previousId: '5f9583fjdf45ff4330f337925',
|
|
@@ -7924,9 +7902,6 @@ var _fakeDraftAmendmentTa = fakeDraftAmendmentTaf.taf;
|
|
|
7924
7902
|
var fakeDraftAmendmentWithoutChangeGroups = _objectWithoutPropertiesLoose(_fakeDraftAmendmentTa, ["changeGroups"]);
|
|
7925
7903
|
// Only use for display purposes in the list!
|
|
7926
7904
|
({
|
|
7927
|
-
creationDate: "2022-01-06T14:00:00Z",
|
|
7928
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7929
|
-
editor: null,
|
|
7930
7905
|
taf: Object.assign({}, fakeDraftAmendmentWithoutChangeGroups, {
|
|
7931
7906
|
location: 'EHRD',
|
|
7932
7907
|
baseTime: "2022-01-06T12:00:00Z",
|
|
@@ -7945,9 +7920,6 @@ var _fakeDraftAmendmentTa = fakeDraftAmendmentTaf.taf;
|
|
|
7945
7920
|
});
|
|
7946
7921
|
// Use as the original previous TAF for TAF above
|
|
7947
7922
|
({
|
|
7948
|
-
creationDate: "2022-01-06T14:00:00Z",
|
|
7949
|
-
canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
|
|
7950
|
-
editor: null,
|
|
7951
7923
|
taf: Object.assign({}, fakeDraftAmendmentWithoutChangeGroups, {
|
|
7952
7924
|
status: 'AMENDED',
|
|
7953
7925
|
uuid: 'previousIdOfPreviousTAF',
|
|
@@ -7969,9 +7941,6 @@ var _fakeDraftAmendmentTa = fakeDraftAmendmentTaf.taf;
|
|
|
7969
7941
|
})
|
|
7970
7942
|
});
|
|
7971
7943
|
var fakeAmendmentTaf = {
|
|
7972
|
-
creationDate: currentDate + "T14:00:00Z",
|
|
7973
|
-
canbe: ['CANCELLED', 'CORRECTED', 'AMENDED'],
|
|
7974
|
-
editor: null,
|
|
7975
7944
|
taf: {
|
|
7976
7945
|
uuid: '754905486',
|
|
7977
7946
|
previousId: '5f9583fjdf45ff4330f337925',
|
|
@@ -8012,9 +7981,6 @@ var fakeAmendmentTaf = {
|
|
|
8012
7981
|
};
|
|
8013
7982
|
// Only use for display purposes in the list!
|
|
8014
7983
|
({
|
|
8015
|
-
creationDate: "2022-01-06T14:00:00Z",
|
|
8016
|
-
canbe: ['CANCELLED', 'CORRECTED', 'AMENDED'],
|
|
8017
|
-
editor: MOCK_USERNAME,
|
|
8018
7984
|
taf: Object.assign({}, fakeAmendmentTaf.taf, {
|
|
8019
7985
|
uuid: '7549058980',
|
|
8020
7986
|
issueDate: "2022-01-06T14:00:00Z",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "12.
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/api": "12.3.0",
|
|
12
|
+
"@opengeoweb/shared": "12.3.0",
|
|
13
13
|
"react-hook-form": "^7.50.1",
|
|
14
|
-
"@opengeoweb/theme": "12.
|
|
15
|
-
"@opengeoweb/form-fields": "12.
|
|
16
|
-
"@opengeoweb/authentication": "12.
|
|
17
|
-
"@reduxjs/toolkit": "^
|
|
18
|
-
"react-redux": "^
|
|
19
|
-
"@opengeoweb/snackbar": "12.
|
|
14
|
+
"@opengeoweb/theme": "12.3.0",
|
|
15
|
+
"@opengeoweb/form-fields": "12.3.0",
|
|
16
|
+
"@opengeoweb/authentication": "12.3.0",
|
|
17
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
+
"react-redux": "^9.2.0",
|
|
19
|
+
"@opengeoweb/snackbar": "12.3.0",
|
|
20
20
|
"react-sortablejs": "^6.1.4",
|
|
21
21
|
"sortablejs": "^1.15.1",
|
|
22
22
|
"@emotion/react": "^11.11.1",
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"axios": "^1.7.7",
|
|
25
25
|
"i18next": "^23.11.5",
|
|
26
|
-
"@mui/material": "^
|
|
26
|
+
"@mui/material": "^7.0.1",
|
|
27
27
|
"react-i18next": "^15.1.1",
|
|
28
|
-
"@tanstack/react-query": "^5.
|
|
28
|
+
"@tanstack/react-query": "^5.69.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "18",
|
|
@@ -2,8 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
import { Store } from '@reduxjs/toolkit';
|
|
4
4
|
import { UseFormProps } from 'react-hook-form';
|
|
5
|
-
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
6
|
-
export declare const createTestTafStore: () => ToolkitStore;
|
|
7
5
|
export interface TafThemeApiProviderProps {
|
|
8
6
|
children: React.ReactNode;
|
|
9
7
|
theme?: Theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { GridProps } from '@mui/material';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
|
-
export interface TafFormRowProps extends
|
|
4
|
+
export interface TafFormRowProps extends GridProps {
|
|
5
5
|
isNotRequiredForAction: (value: string) => boolean | string;
|
|
6
6
|
isChangeGroup?: boolean;
|
|
7
7
|
disabled?: boolean;
|
package/src/lib/utils/utils.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import { ConfigureStoreOptions, ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
1
|
export declare const getCurrentUrlLocation: (url: string, appUrl: string) => string;
|
|
3
|
-
export declare const createTafTestStore: (preloadedState?: ConfigureStoreOptions['preloadedState']) => ToolkitStore;
|