@opengeoweb/taf 4.8.0 → 4.9.1

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
@@ -2568,15 +2568,17 @@ var prepareTafValues = function prepareTafValues(_taf, tafAction) {
2568
2568
  cloud: Object.assign(Object.assign({}, emptyBaseForecast.cloud), formattedBaseForecast.cloud)
2569
2569
  });
2570
2570
  var formattedChangeGroups = ((_a = taf.changeGroups) === null || _a === void 0 ? void 0 : _a.map(formatFormValues)) || [];
2571
- var changeGroups = formattedChangeGroups.map(createChangeGroup);
2572
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, taf), {
2571
+ var changeGroups = formattedChangeGroups.map(createChangeGroup); // Add empty changegroup if set tot true
2572
+
2573
+ if (addEmptyChangeGroup) {
2574
+ changeGroups.push(emptyChangegroup);
2575
+ }
2576
+
2577
+ return Object.assign(Object.assign({}, taf), _defineProperty({
2573
2578
  messageType: getMessageType(taf, tafAction),
2574
- baseForecast: baseForecast
2575
- }), changeGroups.length && {
2579
+ baseForecast: baseForecast,
2576
2580
  changeGroups: changeGroups
2577
- }), addEmptyChangeGroup && {
2578
- changeGroups: [emptyChangegroup]
2579
- }), _defineProperty({}, HIDDEN_INPUT_HELPER_IS_DRAFT, true));
2581
+ }, HIDDEN_INPUT_HELPER_IS_DRAFT, true));
2580
2582
  };
2581
2583
  var getIsFormDefaultDisabled = function getIsFormDefaultDisabled(status) {
2582
2584
  return !(status === 'NEW' || status === 'DRAFT' || status === 'DRAFT_AMENDED' || status === 'DRAFT_CORRECTED');
package/index.umd.js CHANGED
@@ -2576,15 +2576,17 @@
2576
2576
  });
2577
2577
 
2578
2578
  var formattedChangeGroups = ((_b = taf.changeGroups) === null || _b === void 0 ? void 0 : _b.map(formatFormValues)) || [];
2579
- var changeGroups = formattedChangeGroups.map(createChangeGroup);
2580
- return __assign(__assign(__assign(__assign(__assign({}, taf), {
2579
+ var changeGroups = formattedChangeGroups.map(createChangeGroup); // Add empty changegroup if set tot true
2580
+
2581
+ if (addEmptyChangeGroup) {
2582
+ changeGroups.push(emptyChangegroup);
2583
+ }
2584
+
2585
+ return __assign(__assign({}, taf), (_a = {
2581
2586
  messageType: getMessageType(taf, tafAction),
2582
- baseForecast: baseForecast
2583
- }), changeGroups.length && {
2587
+ baseForecast: baseForecast,
2584
2588
  changeGroups: changeGroups
2585
- }), addEmptyChangeGroup && {
2586
- changeGroups: [emptyChangegroup]
2587
- }), (_a = {}, _a[shared.HIDDEN_INPUT_HELPER_IS_DRAFT] = true, _a));
2589
+ }, _a[shared.HIDDEN_INPUT_HELPER_IS_DRAFT] = true, _a));
2588
2590
  };
2589
2591
  var getIsFormDefaultDisabled = function getIsFormDefaultDisabled(status) {
2590
2592
  return !(status === 'NEW' || status === 'DRAFT' || status === 'DRAFT_AMENDED' || status === 'DRAFT_CORRECTED');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "4.8.0",
3
+ "version": "4.9.1",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,16 +12,16 @@
12
12
  "typings": "./index.d.ts",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
- "@opengeoweb/core": "4.8.0",
15
+ "@opengeoweb/core": "4.9.1",
16
16
  "react": "^17.0.2",
17
- "@opengeoweb/shared": "4.8.0",
17
+ "@opengeoweb/shared": "4.9.1",
18
18
  "@mui/material": "^5.10.8",
19
- "@opengeoweb/theme": "4.8.0",
19
+ "@opengeoweb/theme": "4.9.1",
20
20
  "react-draggable": "^4.4.5",
21
21
  "re-resizable": "^6.9.0",
22
22
  "@redux-eggs/core": "^2.2.0",
23
23
  "react-redux": "^8.0.4",
24
- "@opengeoweb/form-fields": "4.8.0",
24
+ "@opengeoweb/form-fields": "4.9.1",
25
25
  "react-hook-form": "^7.41.5",
26
26
  "moment": "^2.29.0",
27
27
  "moment-timezone": "^0.5.31",
@@ -29,10 +29,10 @@
29
29
  "lodash": "^4.17.20",
30
30
  "axios": "^0.25.0",
31
31
  "date-fns": "^2.29.3",
32
- "@opengeoweb/webmap": "4.8.0",
32
+ "@opengeoweb/webmap": "4.9.1",
33
33
  "throttle-debounce": "^3.0.1",
34
34
  "proj4": "^2.6.2",
35
- "@opengeoweb/api": "4.8.0",
35
+ "@opengeoweb/api": "4.9.1",
36
36
  "react-intl": "^5.17.5",
37
37
  "react-sortablejs": "^6.1.4",
38
38
  "sortablejs": "^1.15.0",
@@ -46,7 +46,7 @@
46
46
  "@redux-eggs/redux-toolkit": "^2.2.0",
47
47
  "@redux-eggs/saga-extension": "^2.2.0",
48
48
  "react-dom": "^17.0.2",
49
- "@opengeoweb/authentication": "4.8.0",
49
+ "@opengeoweb/authentication": "4.9.1",
50
50
  "react-router-dom": "^6.4.2",
51
51
  "query-string": "^6.13.7"
52
52
  }