@openui5/sap.uxap 1.111.2 → 1.111.3
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/package.json +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/BlockBaseMetadata.js +1 -1
- package/src/sap/uxap/ObjectPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderContent.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderTitle.js +1 -1
- package/src/sap/uxap/ObjectPageLayout.js +41 -0
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/changeHandler/AddIFrameObjectPageLayout.js +1 -1
- package/src/sap/uxap/changeHandler/MoveObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/RenameObjectPageSection.js +1 -1
- package/src/sap/uxap/library.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "1.111.
|
|
3
|
+
"version": "1.111.3",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.uxap",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.f": "1.111.
|
|
18
|
-
"@openui5/sap.m": "1.111.
|
|
19
|
-
"@openui5/sap.ui.core": "1.111.
|
|
20
|
-
"@openui5/sap.ui.layout": "1.111.
|
|
17
|
+
"@openui5/sap.f": "1.111.3",
|
|
18
|
+
"@openui5/sap.m": "1.111.3",
|
|
19
|
+
"@openui5/sap.ui.core": "1.111.3",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.111.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/src/sap/uxap/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<name>sap.uxap</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
|
-
<version>1.111.
|
|
6
|
+
<version>1.111.3</version>
|
|
7
7
|
<copyright>OpenUI5
|
|
8
8
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
@@ -1375,8 +1375,49 @@ sap.ui.define([
|
|
|
1375
1375
|
horizontal: false,
|
|
1376
1376
|
vertical: true
|
|
1377
1377
|
});
|
|
1378
|
+
|
|
1379
|
+
this._oScroller.setOnAfterScrollToElement(this._onAfterScrollToElement.bind(this));
|
|
1378
1380
|
};
|
|
1379
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* Callback for the end of the scroll triggered from <code>scrollToElement</code>
|
|
1384
|
+
* of <code>sap.ui.core.delegate.ScrollEnablement</code>.
|
|
1385
|
+
*
|
|
1386
|
+
* Required for Safari and IE11 (where there is no browser automatic scroll adjustment,
|
|
1387
|
+
* see <code>overflow-anchor</code> CSS property).
|
|
1388
|
+
*
|
|
1389
|
+
* The execution of <code>scrollToElement</code> changes the current scroll position,
|
|
1390
|
+
* so we check if the new scroll position entails subsequent change of the scroll
|
|
1391
|
+
* container of our page(namely: snapping of the header, which involves removal
|
|
1392
|
+
* of the anchorBar from the top of the scroll container and placing it
|
|
1393
|
+
* in the title area above the scroll container instead).
|
|
1394
|
+
*
|
|
1395
|
+
* If such a change (namely, removal of the anchorBar from the top of the scroll container)
|
|
1396
|
+
* should occur, then the content bellow the removed anchorBar will became offset with X pixels,
|
|
1397
|
+
* where X is the anchorBar height => the element [provided to <code>scrollToElement </code>]
|
|
1398
|
+
* will be misplaced as a result.
|
|
1399
|
+
*
|
|
1400
|
+
* Therefore here we synchronously call the listener to the "scroll" event to check if
|
|
1401
|
+
* it entails the above snapping and subsequent misplacement => if it entails it,
|
|
1402
|
+
* then we adjust back the scroll position to correct the misplacement of the scrolled element.
|
|
1403
|
+
*
|
|
1404
|
+
* @private
|
|
1405
|
+
*/
|
|
1406
|
+
ObjectPageLayout.prototype._onAfterScrollToElement = function () {
|
|
1407
|
+
var iScrollTop = this._$opWrapper.scrollTop(),
|
|
1408
|
+
bStickyAnchorBarBefore = this._bStickyAnchorBar;
|
|
1409
|
+
|
|
1410
|
+
// synchronously call the listener for the "scroll" event, to trigger any pending toggling of the header
|
|
1411
|
+
this._onScroll({ target: { scrollTop: iScrollTop}});
|
|
1412
|
+
|
|
1413
|
+
// if the anchorBar was sticked (removed from the topmost part of the scrollable area) =>
|
|
1414
|
+
// all elements bellow it became offset with X pixels, where X is the anchorBar height =>
|
|
1415
|
+
// the element (target of <code>scrollToElement</code>) was offset respectively =>
|
|
1416
|
+
// adjust the scroll position to ensure the element is back visible (outside scroll overflow)
|
|
1417
|
+
if (this._bStickyAnchorBar && !bStickyAnchorBarBefore && this._$opWrapper.scrollTop() === iScrollTop) {
|
|
1418
|
+
this._$opWrapper.scrollTop(iScrollTop - this.iAnchorBarHeight);
|
|
1419
|
+
}
|
|
1420
|
+
};
|
|
1380
1421
|
/**
|
|
1381
1422
|
* Sets the section that should be selected.
|
|
1382
1423
|
*
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.uxap
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.111.
|
|
28
|
+
* @version 1.111.3
|
|
29
29
|
* @since 1.36
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
"sap.uxap.ObjectPageHeaderLayoutData",
|
|
69
69
|
"sap.uxap.ObjectPageLazyLoader"
|
|
70
70
|
],
|
|
71
|
-
version: "1.111.
|
|
71
|
+
version: "1.111.3",
|
|
72
72
|
extensions: {
|
|
73
73
|
flChangeHandlers: {
|
|
74
74
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|