@openui5/sap.uxap 1.139.0 → 1.140.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/THIRDPARTY.txt +1 -1
- 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 +1 -1
- package/src/sap/uxap/ObjectPageLayoutRenderer.js +7 -7
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/ObjectPageSection.js +8 -3
- package/src/sap/uxap/ObjectPageSubSection.js +10 -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/changeHandler/UnstashObjectPageSection.js +1 -1
- package/src/sap/uxap/library.js +2 -2
package/THIRDPARTY.txt
CHANGED
|
@@ -444,7 +444,7 @@ License: Apache-2.0
|
|
|
444
444
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
445
445
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
446
446
|
|
|
447
|
-
Component: SAP Theming Base Content, version: 11.
|
|
447
|
+
Component: SAP Theming Base Content, version: 11.31.1
|
|
448
448
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
449
449
|
License: Apache-2.0
|
|
450
450
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.140.0",
|
|
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/UI5/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.f": "1.
|
|
18
|
-
"@openui5/sap.m": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.f": "1.140.0",
|
|
18
|
+
"@openui5/sap.m": "1.140.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.140.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.140.0"
|
|
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.
|
|
6
|
+
<version>1.140.0</version>
|
|
7
7
|
<copyright>OpenUI5
|
|
8
8
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
@@ -1007,7 +1007,7 @@ sap.ui.define([
|
|
|
1007
1007
|
bAppendHeaderToContent;
|
|
1008
1008
|
|
|
1009
1009
|
if (bExpand) {
|
|
1010
|
-
bIsPageTop = (this._$opWrapper.scrollTop() <= (this._getSnapPosition() + 1));
|
|
1010
|
+
bIsPageTop = (Math.floor(this._$opWrapper.scrollTop()) <= (this._getSnapPosition() + 1));
|
|
1011
1011
|
bAppendHeaderToTitle = !this._headerBiggerThanAllowedToBeExpandedInTitleArea() && (this._shouldPreserveHeaderInTitleArea() || !bIsPageTop);
|
|
1012
1012
|
this._expandHeader(bAppendHeaderToTitle);
|
|
1013
1013
|
if (!bAppendHeaderToTitle) {
|
|
@@ -38,14 +38,14 @@ sap.ui.define(["sap/ui/core/Lib"],
|
|
|
38
38
|
oLandmarkInfo = oControl.getLandmarkInfo(),
|
|
39
39
|
sHeaderTag = oControl._getHeaderTag(oLandmarkInfo),
|
|
40
40
|
sFooterTag = oControl._getFooterTag(oLandmarkInfo),
|
|
41
|
-
bHeaderRoleSet = oLandmarkInfo && oLandmarkInfo.getHeaderRole(),
|
|
42
|
-
bHeaderLabelSet = oLandmarkInfo && oLandmarkInfo.getHeaderLabel(),
|
|
43
|
-
bRootRoleSet = oLandmarkInfo && oLandmarkInfo.getRootRole(),
|
|
44
|
-
bNavigationRoleSet = oLandmarkInfo && oLandmarkInfo.getNavigationRole(),
|
|
41
|
+
bHeaderRoleSet = !!(oLandmarkInfo && oLandmarkInfo.getHeaderRole()),
|
|
42
|
+
bHeaderLabelSet = !!(oLandmarkInfo && oLandmarkInfo.getHeaderLabel()),
|
|
43
|
+
bRootRoleSet = !!(oLandmarkInfo && oLandmarkInfo.getRootRole()),
|
|
44
|
+
bNavigationRoleSet = !!(oLandmarkInfo && oLandmarkInfo.getNavigationRole()),
|
|
45
45
|
sRootRole = bRootRoleSet ? oLandmarkInfo.getRootRole() : undefined,
|
|
46
46
|
sHeaderRole = bHeaderRoleSet ? oLandmarkInfo.getHeaderRole() : undefined,
|
|
47
47
|
sNavigationRole = bNavigationRoleSet ? oLandmarkInfo.getNavigationRole() : undefined,
|
|
48
|
-
bRootLabelSet = oLandmarkInfo && oLandmarkInfo.getRootLabel(),
|
|
48
|
+
bRootLabelSet = !!(oLandmarkInfo && oLandmarkInfo.getRootLabel()),
|
|
49
49
|
bShowFooter = oControl.getShowFooter();
|
|
50
50
|
|
|
51
51
|
if (oControl.getShowAnchorBar() && oControl._getInternalAnchorBarVisible()) {
|
|
@@ -59,7 +59,7 @@ sap.ui.define(["sap/ui/core/Lib"],
|
|
|
59
59
|
if (sRootRole !== "None") {
|
|
60
60
|
oRm.attr("aria-roledescription", oRb.getText("ROOT_ROLE_DESCRIPTION"));
|
|
61
61
|
}
|
|
62
|
-
if (!bRootLabelSet) {
|
|
62
|
+
if (!bRootLabelSet && sRootRole !== "None") {
|
|
63
63
|
oRm.attr("aria-label", sRootAriaLabelText);
|
|
64
64
|
}
|
|
65
65
|
oRm.class("sapUxAPObjectPageLayout");
|
|
@@ -92,7 +92,7 @@ sap.ui.define(["sap/ui/core/Lib"],
|
|
|
92
92
|
oRm.attr("aria-roledescription", oRb.getText("HEADER_ROLE_DESCRIPTION"));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
if (!bHeaderLabelSet) {
|
|
95
|
+
if (!bHeaderLabelSet && sHeaderRole !== "None") {
|
|
96
96
|
oRm.attr("aria-label", sHeaderAriaLabelText);
|
|
97
97
|
}
|
|
98
98
|
oRm.attr("data-sap-ui-customfastnavgroup", true)
|
|
@@ -391,13 +391,18 @@ sap.ui.define([
|
|
|
391
391
|
* @returns {string} aria-labeled by id
|
|
392
392
|
*/
|
|
393
393
|
ObjectPageSection.prototype._getAriaLabelledById = function () {
|
|
394
|
+
var oFirstVisibleSubSection = this._getFirstVisibleSubSection();
|
|
394
395
|
// Each section should be labelled as:
|
|
395
396
|
// 'titleID' - either its own or the promoted subsection's title
|
|
396
|
-
if (this._hasPromotedSubSection()) {
|
|
397
|
-
return
|
|
398
|
-
}
|
|
397
|
+
if (this._hasPromotedSubSection() && oFirstVisibleSubSection?.getTitleVisible()) {
|
|
398
|
+
return oFirstVisibleSubSection._getTitleControl().getId();
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (!this._hasPromotedSubSection() && this.getTitleVisible()) {
|
|
399
402
|
return this._getTitleControl().getId();
|
|
400
403
|
}
|
|
404
|
+
|
|
405
|
+
return "";
|
|
401
406
|
};
|
|
402
407
|
|
|
403
408
|
/**
|
|
@@ -690,6 +690,7 @@ sap.ui.define([
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
this._applyLayout(oObjectPageLayout);
|
|
693
|
+
this.refreshSeeMoreVisibility();
|
|
693
694
|
};
|
|
694
695
|
|
|
695
696
|
/**
|
|
@@ -1042,7 +1043,7 @@ sap.ui.define([
|
|
|
1042
1043
|
var oSeeMoreControl = this._getSeeMoreButton(),
|
|
1043
1044
|
oSeeLessControl = this._getSeeLessButton();
|
|
1044
1045
|
|
|
1045
|
-
this._bBlockHasMore =
|
|
1046
|
+
this._bBlockHasMore = this._hasVisibleMoreBlocks();
|
|
1046
1047
|
if (!this._bBlockHasMore) {
|
|
1047
1048
|
this._bBlockHasMore = this.getBlocks().some(function (oBlock) {
|
|
1048
1049
|
//check if the block ask for the global see more the rule is
|
|
@@ -1062,6 +1063,14 @@ sap.ui.define([
|
|
|
1062
1063
|
return this._bBlockHasMore;
|
|
1063
1064
|
};
|
|
1064
1065
|
|
|
1066
|
+
ObjectPageSubSection.prototype._hasVisibleMoreBlocks = function () {
|
|
1067
|
+
var aMoreBlocks = this.getMoreBlocks();
|
|
1068
|
+
|
|
1069
|
+
return aMoreBlocks.some(function (oBlock) {
|
|
1070
|
+
return oBlock.getVisible();
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1065
1074
|
ObjectPageSubSection.prototype.setMode = function (sMode) {
|
|
1066
1075
|
if (this.getMode() !== sMode) {
|
|
1067
1076
|
this._switchSubSectionMode(sMode);
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @namespace
|
|
31
31
|
* @alias sap.uxap
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.140.0
|
|
34
34
|
* @since 1.36
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
"sap.uxap.ObjectPageHeaderLayoutData",
|
|
75
75
|
"sap.uxap.ObjectPageLazyLoader"
|
|
76
76
|
],
|
|
77
|
-
version: "1.
|
|
77
|
+
version: "1.140.0",
|
|
78
78
|
...{
|
|
79
79
|
interactionDocumentation: true
|
|
80
80
|
},
|