@opengeoweb/taf 5.2.1 → 6.0.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.js +10 -9
- package/package.json +8 -7
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ReactSortable } from 'react-sortablejs';
|
|
|
7
7
|
import { useAuthenticationContext } from '@opengeoweb/authentication';
|
|
8
8
|
import { HIDDEN_INPUT_HELPER_IS_DRAFT, getDeepProperty, useDraftFormHelpers, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
|
|
9
9
|
import { useIsMounted, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, ToolHeader, AlertBanner, getErrorMessage as getErrorMessage$1, getWarningMessage, ConfirmationServiceProvider, usePoller, ErrorBoundary } from '@opengeoweb/shared';
|
|
10
|
-
import { snackbarActions } from '@opengeoweb/
|
|
10
|
+
import { snackbarActions } from '@opengeoweb/store';
|
|
11
11
|
import { DragHandle as DragHandle$1, ThumbsUp, Add, Delete, Close, Clock, Cancel, Success, Edit, Export, ListItem, Cached } from '@opengeoweb/theme';
|
|
12
12
|
import { useApiContext, createApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
13
13
|
import LinearProgress from '@mui/material/LinearProgress';
|
|
@@ -33169,9 +33169,8 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33169
33169
|
});
|
|
33170
33170
|
});
|
|
33171
33171
|
};
|
|
33172
|
-
var resetFormState = function resetFormState() {
|
|
33173
|
-
var action = arguments.length >
|
|
33174
|
-
var resetDisabled = arguments.length > 1 ? arguments[1] : undefined;
|
|
33172
|
+
var resetFormState = function resetFormState(resetDisabled) {
|
|
33173
|
+
var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
33175
33174
|
var tafToReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : originalTaf;
|
|
33176
33175
|
var shouldAddEmptyChangGroup = !resetDisabled;
|
|
33177
33176
|
var newTaf = prepareTafValues(tafToReset, action, shouldAddEmptyChangGroup);
|
|
@@ -33259,7 +33258,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33259
33258
|
case 2:
|
|
33260
33259
|
didSucceed = _context2.sent;
|
|
33261
33260
|
if (didSucceed) {
|
|
33262
|
-
resetFormState(
|
|
33261
|
+
resetFormState(isDefaultDisabled, undefined);
|
|
33263
33262
|
}
|
|
33264
33263
|
case 4:
|
|
33265
33264
|
case "end":
|
|
@@ -33308,7 +33307,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33308
33307
|
case 4:
|
|
33309
33308
|
didSucceed = _context3.sent;
|
|
33310
33309
|
if (didSucceed) {
|
|
33311
|
-
resetFormState(
|
|
33310
|
+
resetFormState(true, null, convertTafValuesToObject(data));
|
|
33312
33311
|
}
|
|
33313
33312
|
return _context3.abrupt("return", true);
|
|
33314
33313
|
case 7:
|
|
@@ -33328,7 +33327,8 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33328
33327
|
top = _getFormRowPosition.top,
|
|
33329
33328
|
left = _getFormRowPosition.left;
|
|
33330
33329
|
var tafModuleNode = formNodeRef.closest('#tafmodule');
|
|
33331
|
-
var
|
|
33330
|
+
var tafModuleNodeTop = tafModuleNode === null || tafModuleNode === void 0 ? void 0 : tafModuleNode.getBoundingClientRect().top;
|
|
33331
|
+
var newTop = top - tafModuleNodeTop || 0;
|
|
33332
33332
|
setIsIssuesPaneOpen(true, {
|
|
33333
33333
|
top: newTop,
|
|
33334
33334
|
left: left
|
|
@@ -33361,7 +33361,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33361
33361
|
});
|
|
33362
33362
|
break;
|
|
33363
33363
|
default:
|
|
33364
|
-
resetFormState(
|
|
33364
|
+
resetFormState(false, action);
|
|
33365
33365
|
break;
|
|
33366
33366
|
}
|
|
33367
33367
|
};
|
|
@@ -34143,7 +34143,8 @@ var TacOverview = function TacOverview(_ref) {
|
|
|
34143
34143
|
var containerTop = scrollRef.current.getBoundingClientRect().top;
|
|
34144
34144
|
var firstLocation = scrollRef.current.querySelector("[data-location=\"".concat(activeLocation, "\"]"));
|
|
34145
34145
|
var paddingTop = parseInt(getComputedStyle(scrollRef.current).paddingTop, 10);
|
|
34146
|
-
var
|
|
34146
|
+
var firstLocationTop = firstLocation === null || firstLocation === void 0 ? void 0 : firstLocation.getBoundingClientRect().top;
|
|
34147
|
+
var newScrollPosition = firstLocationTop - containerTop + scrollRef.current.scrollTop - paddingTop;
|
|
34147
34148
|
scrollRef.current.scrollTo(newScrollPosition, newScrollPosition);
|
|
34148
34149
|
}, [activeLocation]);
|
|
34149
34150
|
var resetScrollPosition = function resetScrollPosition() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@emotion/react": "11.10.6",
|
|
17
17
|
"@mui/material": "5.12.0",
|
|
18
|
-
"@opengeoweb/api": "
|
|
19
|
-
"@opengeoweb/authentication": "
|
|
20
|
-
"@opengeoweb/core": "
|
|
21
|
-
"@opengeoweb/form-fields": "
|
|
22
|
-
"@opengeoweb/shared": "
|
|
23
|
-
"@opengeoweb/
|
|
18
|
+
"@opengeoweb/api": "6.0.0",
|
|
19
|
+
"@opengeoweb/authentication": "6.0.0",
|
|
20
|
+
"@opengeoweb/core": "6.0.0",
|
|
21
|
+
"@opengeoweb/form-fields": "6.0.0",
|
|
22
|
+
"@opengeoweb/shared": "6.0.0",
|
|
23
|
+
"@opengeoweb/store": "6.0.0",
|
|
24
|
+
"@opengeoweb/theme": "6.0.0",
|
|
24
25
|
"@reduxjs/toolkit": "1.9.5",
|
|
25
26
|
"axios": "1.4.0",
|
|
26
27
|
"lodash": "4.17.21",
|