@opengeoweb/taf 12.1.2 → 12.2.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.
Files changed (2) hide show
  1. package/index.esm.js +26 -60
  2. package/package.json +8 -8
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 { Grid2, Button, Chip, Box, Typography, TextField, Card, Tabs, Tab, Dialog, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
4
+ import { Grid2, 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
9
  import { getConfig, 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, 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) >= 0) continue;
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: !0,
413
- configurable: !0,
414
- writable: !0
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: !0
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(!0);
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 = !1, next;
569
- return next.value = t, next.done = !0, next;
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: !0
578
+ configurable: true
579
579
  }), o(GeneratorFunctionPrototype, "constructor", {
580
580
  value: GeneratorFunction,
581
- configurable: !0
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 = !1, next;
610
+ if (t in e) return next.value = t, next.done = false, next;
611
611
  }
612
- return next.done = !0, next;
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 = !1, 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);
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 = !0;
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, !0);
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, !0);
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
  }
@@ -5994,17 +5994,16 @@ var TacOverviewMobile = function TacOverviewMobile(_ref) {
5994
5994
  },
5995
5995
  variant: "tool",
5996
5996
  children: jsx(ListItem, {})
5997
- }), jsxs(Dialog, {
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",
@@ -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.1.2",
3
+ "version": "12.2.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,15 +8,15 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.1.2",
12
- "@opengeoweb/shared": "12.1.2",
11
+ "@opengeoweb/api": "12.2.0",
12
+ "@opengeoweb/shared": "12.2.0",
13
13
  "react-hook-form": "^7.50.1",
14
- "@opengeoweb/theme": "12.1.2",
15
- "@opengeoweb/form-fields": "12.1.2",
16
- "@opengeoweb/authentication": "12.1.2",
14
+ "@opengeoweb/theme": "12.2.0",
15
+ "@opengeoweb/form-fields": "12.2.0",
16
+ "@opengeoweb/authentication": "12.2.0",
17
17
  "@reduxjs/toolkit": "^1.9.7",
18
18
  "react-redux": "^8.1.3",
19
- "@opengeoweb/snackbar": "12.1.2",
19
+ "@opengeoweb/snackbar": "12.2.0",
20
20
  "react-sortablejs": "^6.1.4",
21
21
  "sortablejs": "^1.15.1",
22
22
  "@emotion/react": "^11.11.1",
@@ -25,7 +25,7 @@
25
25
  "i18next": "^23.11.5",
26
26
  "@mui/material": "^6.1.1",
27
27
  "react-i18next": "^15.1.1",
28
- "@tanstack/react-query": "^5.62.7"
28
+ "@tanstack/react-query": "^5.69.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "18",