@openui5/sap.uxap 1.134.0 → 1.135.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
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.m:
8
8
 
9
- Component: purify.js, version: 3.1.7
9
+ Component: purify.js, version: 3.2.4
10
10
  Copyright: Mario Heiderich
11
11
  License: Apache-2.0
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -462,7 +462,7 @@ License: Apache-2.0
462
462
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
463
  Contained in: lib/jsdoc/ui5/plugin.js
464
464
 
465
- Component: SAP Theming Base Content, version: 11.24.0
465
+ Component: SAP Theming Base Content, version: 11.28.2
466
466
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
467
467
  License: Apache-2.0
468
468
  License Text: https://github.com/SAP/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.134.0",
3
+ "version": "1.135.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/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.f": "1.134.0",
18
- "@openui5/sap.m": "1.134.0",
19
- "@openui5/sap.ui.core": "1.134.0",
20
- "@openui5/sap.ui.layout": "1.134.0"
17
+ "@openui5/sap.f": "1.135.0",
18
+ "@openui5/sap.m": "1.135.0",
19
+ "@openui5/sap.ui.core": "1.135.0",
20
+ "@openui5/sap.ui.layout": "1.135.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.134.0</version>
6
+ <version>1.135.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -225,7 +225,7 @@ sap.ui.define([
225
225
  };
226
226
 
227
227
  BlockBase.prototype.onAfterRendering = function () {
228
- var oParentObjectPageLayout = this._getObjectPageLayout();
228
+ var oParentObjectPageLayout = this._getObjectPageLayout(this._oParentObjectPageSubSection);
229
229
 
230
230
  if (oParentObjectPageLayout) {
231
231
  oParentObjectPageLayout._requestAdjustLayout();
@@ -732,7 +732,7 @@ sap.ui.define([
732
732
  * Setter for the visibility of the block.
733
733
  */
734
734
  BlockBase.prototype.setVisible = function (bValue, bSuppressInvalidate) {
735
- var oParentObjectPageLayout = this._getObjectPageLayout();
735
+ var oParentObjectPageLayout = this._getObjectPageLayout(this._oParentObjectPageSubSection);
736
736
 
737
737
  if (bValue === this.getVisible()) {
738
738
  return this;
@@ -766,7 +766,7 @@ sap.ui.define([
766
766
  if (!this._bConnected) {
767
767
  Log.debug("BlockBase :: Connecting block to the UI5 model tree");
768
768
  this._bConnected = true;
769
- if (this._getObjectPageLayout()?._isLazyLoadingEffectivelyEnabled()) {
769
+ if (this._getObjectPageLayout(this._oParentObjectPageSubSection)?._isLazyLoadingEffectivelyEnabled()) {
770
770
  //if lazy loading is enabled, the view has not been created during the setMode
771
771
  //so create it now
772
772
  var sMode = this.getMode();
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.134.0
24
+ * @version 1.135.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.134.0
25
+ * @version 1.135.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.134.0
43
+ * @version 1.135.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.134.0
45
+ * @version 1.135.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -712,6 +712,9 @@ sap.ui.define([
712
712
  this._initRangeSet();
713
713
  this._attachMediaContainerWidthChange(this._onMediaRangeChange,
714
714
  this, ObjectPageLayout.MEDIA_RANGESET_NAME);
715
+ this._oHeaderContentDelegate = {
716
+ onBeforeRendering: this._setSectionInfoIsDirty.bind(this, true)
717
+ };
715
718
  };
716
719
 
717
720
  /**
@@ -2030,8 +2033,6 @@ sap.ui.define([
2030
2033
  };
2031
2034
 
2032
2035
  ObjectPageLayout.prototype._requestAdjustLayoutAndUxRules = function (bImmediate) {
2033
- this._setSectionInfoIsDirty(true);
2034
-
2035
2036
  if (!this._oUxRulesTask) {
2036
2037
  this._oUxRulesTask = new ThrottledTask(
2037
2038
  this._adjustLayoutAndUxRules, //function to execute
@@ -3776,7 +3777,7 @@ sap.ui.define([
3776
3777
  ObjectPageLayout.prototype._moveAnchorBarToContentArea = function () {
3777
3778
  if (!this._shouldPreserveHeaderInTitleArea()) {
3778
3779
  var iScrollTopBeforeAppend = this._$opWrapper.scrollTop();
3779
- this._$anchorBar.css("height", "auto").append(this._$stickyAnchorBar.children()); //TODO: css auto redundant?
3780
+ this._$anchorBar.append(this._$stickyAnchorBar.children());
3780
3781
  // ensure that appending the anchorBar does not change the scrollTop, as it may happen in certain cases (if another part of content freshly rerendered (BCP: 1870365138)
3781
3782
  this._$opWrapper.scrollTop(iScrollTopBeforeAppend);
3782
3783
 
@@ -3924,6 +3925,7 @@ sap.ui.define([
3924
3925
 
3925
3926
  if (oOldHeaderContent) {
3926
3927
  oOldHeaderContent.destroy();
3928
+ oOldHeaderContent.removeEventDelegate(this._oHeaderContentDelegate);
3927
3929
  }
3928
3930
 
3929
3931
  oNewHeaderContent = fnHeaderContentClass.createInstance(
@@ -3934,6 +3936,7 @@ sap.ui.define([
3934
3936
  this.getId() + "-OPHeaderContent"
3935
3937
  );
3936
3938
 
3939
+ oNewHeaderContent.addEventDelegate(this._oHeaderContentDelegate);
3937
3940
  oNewHeaderContent.getContent().forEach(this._replaceHeaderContentParent, this);
3938
3941
 
3939
3942
  this.setAggregation("_headerContent", oNewHeaderContent, true);
@@ -81,7 +81,10 @@ sap.ui.define([
81
81
  }.bind(this));
82
82
 
83
83
  oAnchorBar.addEventDelegate({
84
- onAfterRendering: oObjectPageLayout._adjustTitlePositioning.bind(oObjectPageLayout)
84
+ onAfterRendering: function() {
85
+ oObjectPageLayout._adjustTitlePositioning();
86
+ this._clearAnchorBarFixedHeight(oAnchorBar);
87
+ }.bind(this)
85
88
  });
86
89
 
87
90
  if (bUpperCaseAnchors) {
@@ -94,6 +97,20 @@ sap.ui.define([
94
97
  return oAnchorBar;
95
98
  };
96
99
 
100
+ ABHelper.prototype._fixAnchorBarHeight = function (oAnchorBar) {
101
+ var oAnchorBarParentNode = oAnchorBar.getDomRef()?.parentNode;
102
+ if (oAnchorBarParentNode) {
103
+ oAnchorBarParentNode.style.height = oAnchorBarParentNode.clientHeight + "px";
104
+ }
105
+ };
106
+
107
+ ABHelper.prototype._clearAnchorBarFixedHeight = function (oAnchorBar) {
108
+ var oAnchorBarParentNode = oAnchorBar.getDomRef()?.parentNode;
109
+ if (oAnchorBarParentNode) {
110
+ oAnchorBarParentNode.style.height = "auto";
111
+ }
112
+ };
113
+
97
114
  /**
98
115
  * build the anchorBar and all the anchorBar buttons
99
116
  * @private
@@ -171,7 +188,9 @@ sap.ui.define([
171
188
  };
172
189
 
173
190
  ABHelper.prototype.resetControl = function () {
174
- this._getAnchorBar().destroyItems();
191
+ var oAnchorBar = this._getAnchorBar();
192
+ this._fixAnchorBarHeight(oAnchorBar);
193
+ oAnchorBar.destroyItems();
175
194
  };
176
195
 
177
196
  ABHelper.prototype.selectAnchorForSection = function (sId) {
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Element
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.134.0
41
+ * @version 1.135.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -156,6 +156,7 @@ sap.ui.define([
156
156
  } else {
157
157
  this.updateInvisibleTextLabelValue();
158
158
  }
159
+ this._getObjectPageLayout()?._setSectionInfoIsDirty(true);
159
160
  };
160
161
 
161
162
  ObjectPageSectionBase.prototype.exit = function () {
@@ -173,6 +174,15 @@ sap.ui.define([
173
174
  return this;
174
175
  };
175
176
 
177
+ /**
178
+ * Returns the effectively applied title level. Could be different than "titleLevel" property, according to internal UX rules.
179
+ * @protected
180
+ * @returns {string} the effective title level
181
+ */
182
+ ObjectPageSectionBase.prototype.getEffectiveTitleLevel = function () {
183
+ return this._getTitleLevel();
184
+ };
185
+
176
186
  /**
177
187
  * Sets title visibility
178
188
  * @param {boolean} bVisible
@@ -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.134.0
28
+ * @version 1.135.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.134.0
26
+ * @version 1.135.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.134.0
24
+ * @version 1.135.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.134.0
22
+ * @version 1.135.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.134.0
33
+ * @version 1.135.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.134.0",
77
+ version: "1.135.0",
78
78
  extensions: {
79
79
  flChangeHandlers: {
80
80
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
@@ -1,7 +1,7 @@
1
1
 
2
- SHOW_MORE=\uC790\uC138\uD788 \uD45C\uC2DC
2
+ SHOW_MORE=\uC790\uC138\uD788 \uBCF4\uAE30
3
3
 
4
- SHOW_LESS=\uAC04\uB2E8\uD788 \uD45C\uC2DC
4
+ SHOW_LESS=\uAC04\uB2E8\uD788 \uBCF4\uAE30
5
5
 
6
6
  ANCHOR_BAR_ARIA_LABEL=\uC575\uCEE4
7
7
 
@@ -13,7 +13,7 @@ BREADCRUMB_TRAIL_LABEL=\uD0D0\uC0C9 \uACBD\uB85C \uCD94\uC801
13
13
 
14
14
  SHOW_ALL=\uBAA8\uB450 \uD45C\uC2DC
15
15
 
16
- HIDE_ALL=\uAC04\uB2E8\uD788 \uD45C\uC2DC
16
+ HIDE_ALL=\uAC04\uB2E8\uD788 \uBCF4\uAE30
17
17
 
18
18
  SHOW=\uD3BC\uCE58\uAE30
19
19
 
@@ -73,7 +73,7 @@ ROOT_ROLE_DESCRIPTION=Stran objekta
73
73
 
74
74
  HEADER_ROLE_DESCRIPTION=Glava strani objekta
75
75
 
76
- NAVIGATION_ROLE_DESCRIPTION=Vrstica za navigacijo po segmentih
76
+ NAVIGATION_ROLE_DESCRIPTION=Vrstica za pomik po segmentih
77
77
 
78
78
  FOOTER_ROLE_DESCRIPTION=Splo\u0161ne akcije za stran objekta
79
79
 
@@ -21,7 +21,7 @@
21
21
  .sapUxAPObjectPageSubSectionHeader {
22
22
  height: auto;
23
23
  word-wrap: break-word;
24
- padding: 0 2.25rem 0 3rem;
24
+ padding: 0 3rem 0 3rem;
25
25
  display: flex;
26
26
  justify-content: space-between;
27
27
  }
@@ -74,7 +74,7 @@ html .sapUiContainer-Narrow .sapUxAPObjectPageSubSectionHeaderTitle {
74
74
 
75
75
  .sapUxAPObjectPageLayout-Std-Tablet .sapUxAPObjectPageSubSectionHeader,
76
76
  html .sapUiContainer-Medium .sapUxAPObjectPageSubSectionHeader {
77
- padding: 0 1.25rem 0 2rem;
77
+ padding: 0 2rem 0 2rem;
78
78
  }
79
79
 
80
80
  /* Those styles apply Desktop and Desktop-XL.
@@ -74,7 +74,7 @@ html .sapUiContainer-Narrow .sapUxAPObjectPageSubSectionHeaderTitle {
74
74
 
75
75
  .sapUxAPObjectPageLayout-Std-Tablet .sapUxAPObjectPageSubSectionHeader,
76
76
  html .sapUiContainer-Medium .sapUxAPObjectPageSubSectionHeader {
77
- padding: 0 1.25rem 0 2rem;
77
+ padding: 0 2rem 0 2rem;
78
78
  }
79
79
 
80
80
  /* Those styles apply Desktop and Desktop-XL.