@openui5/sap.uxap 1.136.6 → 1.136.7

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
@@ -397,7 +397,7 @@ License: MIT
397
397
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
398
398
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
399
399
 
400
- Component: Markdown-it, version: 12.3.2
400
+ Component: Markdown-it, version: 14.1.0
401
401
  Copyright: 2014 Vitaly Puzrin, Alex Kocharin
402
402
  License: MIT
403
403
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.136.6",
3
+ "version": "1.136.7",
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.136.6",
18
- "@openui5/sap.m": "1.136.6",
19
- "@openui5/sap.ui.core": "1.136.6",
20
- "@openui5/sap.ui.layout": "1.136.6"
17
+ "@openui5/sap.f": "1.136.7",
18
+ "@openui5/sap.m": "1.136.7",
19
+ "@openui5/sap.ui.core": "1.136.7",
20
+ "@openui5/sap.ui.layout": "1.136.7"
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.136.6</version>
6
+ <version>1.136.7</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.136.6
24
+ * @version 1.136.7
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.136.6
25
+ * @version 1.136.7
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.136.6
43
+ * @version 1.136.7
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.136.6
45
+ * @version 1.136.7
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -1720,7 +1720,7 @@ sap.ui.define([
1720
1720
  * @param {boolean} bInvalidate request the invalidation of the sectionBase that would turn into visible or hidden. This may not be necessary if you are already within a rendering process.
1721
1721
  */
1722
1722
  ObjectPageLayout.prototype._applyUxRules = function (bInvalidate) {
1723
- var aSections, aSubSections, iVisibleSubSections, iVisibleSection, iVisibleBlocks,
1723
+ var aSections, aSubSections, iVisibleSubSections, iVisibleSection, iVisibleBlocks, oAnchorBar, aAnchorBarItems,
1724
1724
  bVisibleAnchorBar, bUseIconTabBar, oFirstVisibleSection, oFirstVisibleSubSection, oTitleVisibilityInfo = {};
1725
1725
 
1726
1726
  aSections = this.getSections() || [];
@@ -1846,6 +1846,15 @@ sap.ui.define([
1846
1846
  this._oABHelper._buildAnchorBar();
1847
1847
  }
1848
1848
 
1849
+ oAnchorBar = this.getAggregation("_anchorBar");
1850
+ aAnchorBarItems = oAnchorBar?.getItems() || [];
1851
+ for (var i = 0; i < aSections.length; i++) {
1852
+ var oSection = aSections[i];
1853
+ if (oSection._getInternalVisible()) {
1854
+ oSection._setAriaLabelledByAnchorButton(aAnchorBarItems[i], bInvalidate);
1855
+ }
1856
+ }
1857
+
1849
1858
  this._setInternalAnchorBarVisible(bVisibleAnchorBar, bInvalidate);
1850
1859
  this._oFirstVisibleSection = oFirstVisibleSection;
1851
1860
  this._oFirstVisibleSubSection = this._getFirstVisibleSubSection(oFirstVisibleSection);
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Element
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.136.6
41
+ * @version 1.136.7
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -385,19 +385,46 @@ sap.ui.define([
385
385
  return this._getShouldDisplayExpandCollapseButton() || this._getShouldDisplayShowHideAllButton();
386
386
  };
387
387
 
388
+ /**
389
+ * Set the _sAriaLabelledByAnchorButton - the id of the AnchorBar button that corresponds to this section.
390
+ * @param {object} oAnchorButton The AnchorBar button that corresponds to this section
391
+ * @param {boolean} bInvalidate Whether to invalidate the control or not
392
+ * @private
393
+ */
394
+ ObjectPageSection.prototype._setAriaLabelledByAnchorButton = function (oAnchorButton, bInvalidate) {
395
+ this._sAriaLabelledByAnchorButton = oAnchorButton?.getId();
396
+ if (bInvalidate) {
397
+ this.invalidate();
398
+ }
399
+ };
400
+
401
+ /**
402
+ * Returns the id of the AnchorBar button that corresponds to this section.
403
+ * @private
404
+ * @returns {string} The id of the AnchorBar button that corresponds to this section
405
+ */
406
+ ObjectPageSection.prototype._getAriaLabelledByAnchorButton = function () {
407
+ return this._sAriaLabelledByAnchorButton;
408
+ };
409
+
388
410
  /**
389
411
  * Returns the label id for the section.
390
412
  * @private
391
413
  * @returns {string} aria-labeled by id
392
414
  */
393
415
  ObjectPageSection.prototype._getAriaLabelledById = function () {
416
+ var oFirstVisibleSubSection = this._getFirstVisibleSubSection();
394
417
  // Each section should be labelled as:
395
418
  // 'titleID' - either its own or the promoted subsection's title
396
- if (this._hasPromotedSubSection()) {
397
- return this._getFirstVisibleSubSection()?._getTitleControl().getId();
398
- } else {
419
+ if (this._hasPromotedSubSection() && oFirstVisibleSubSection?.getTitleVisible()) {
420
+ return oFirstVisibleSubSection._getTitleControl().getId();
421
+ }
422
+
423
+ if (!this._hasPromotedSubSection() && this.getTitleVisible()) {
399
424
  return this._getTitleControl().getId();
400
425
  }
426
+
427
+ return this._getAriaLabelledByAnchorButton();
401
428
  };
402
429
 
403
430
  /**
@@ -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.136.6
28
+ * @version 1.136.7
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.136.6
26
+ * @version 1.136.7
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.136.6
24
+ * @version 1.136.7
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.136.6
22
+ * @version 1.136.7
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.136.6
33
+ * @version 1.136.7
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.136.6",
77
+ version: "1.136.7",
78
78
  ...{
79
79
  interactionDocumentation: true
80
80
  },