@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 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.30.0
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.139.0",
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.139.0",
18
- "@openui5/sap.m": "1.139.0",
19
- "@openui5/sap.ui.core": "1.139.0",
20
- "@openui5/sap.ui.layout": "1.139.0"
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
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  <name>sap.uxap</name>
5
5
  <vendor>SAP SE</vendor>
6
- <version>1.139.0</version>
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>
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.140.0
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.139.0
25
+ * @version 1.140.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @implements sap.uxap.IHeaderContent
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.139.0
43
+ * @version 1.140.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.139.0
45
+ * @version 1.140.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -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)
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Element
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.139.0
41
+ * @version 1.140.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -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 this._getFirstVisibleSubSection()?._getTitleControl().getId();
398
- } else {
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 = !!this.getMoreBlocks().length;
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);
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @constructor
26
26
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
27
27
  * @author SAP SE
28
- * @version 1.139.0
28
+ * @version 1.140.0
29
29
  * @since 1.75
30
30
  * @experimental Since 1.75
31
31
  */
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @constructor
24
24
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.140.0
27
27
  * @experimental Since 1.54
28
28
  */
29
29
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.140.0
25
25
  * @experimental Since 1.50
26
26
  */
27
27
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @constructor
20
20
  * @alias sap.uxap.changeHandler.UnstashObjectPageSection
21
21
  * @author SAP SE
22
- * @version 1.139.0
22
+ * @version 1.140.0
23
23
  * @experimental Since 1.115
24
24
  */
25
25
 
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace
31
31
  * @alias sap.uxap
32
32
  * @author SAP SE
33
- * @version 1.139.0
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.139.0",
77
+ version: "1.140.0",
78
78
  ...{
79
79
  interactionDocumentation: true
80
80
  },