@openui5/sap.uxap 1.108.0 → 1.109.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
@@ -478,7 +478,7 @@ License: Apache-2.0
478
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
479
  Contained in: lib/jsdoc/ui5/plugin.js
480
480
 
481
- Component: SAP Theming Base Content, version: 11.1.40
481
+ Component: SAP Theming Base Content, version: 11.1.44
482
482
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
483
  License: Apache-2.0
484
484
  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.108.0",
3
+ "version": "1.109.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.108.0",
18
- "@openui5/sap.m": "1.108.0",
19
- "@openui5/sap.ui.core": "1.108.0",
20
- "@openui5/sap.ui.layout": "1.108.0"
17
+ "@openui5/sap.f": "1.109.0",
18
+ "@openui5/sap.m": "1.109.0",
19
+ "@openui5/sap.ui.core": "1.109.0",
20
+ "@openui5/sap.ui.layout": "1.109.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.108.0</version>
6
+ <version>1.109.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2022 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.108.0
24
+ * @version 1.109.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.108.0
25
+ * @version 1.109.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.108.0
43
+ * @version 1.109.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.108.0
45
+ * @version 1.109.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -381,6 +381,9 @@ sap.ui.define([
381
381
  this._oChangesIconCont = this._lazyLoadInternalAggregation("_changesIconCont", true).attachPress(this._handleChangesPress, this);
382
382
  };
383
383
 
384
+ /**
385
+ * @deprecated as of version 1.50, breadCrumbsLinks has been deprecated
386
+ */
384
387
  ObjectPageHeader.getMetadata().forwardAggregation(
385
388
  "breadCrumbsLinks",
386
389
  {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Element
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.108.0
40
+ * @version 1.109.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -159,6 +159,10 @@ sap.ui.define([
159
159
  ResizeHandler.deregister(this._iResizeHandlerId);
160
160
  this._iResizeHandlerId = null;
161
161
  }
162
+
163
+ if (ObjectPageSectionBase.prototype.exit) {
164
+ ObjectPageSectionBase.prototype.exit.call(this);
165
+ }
162
166
  };
163
167
 
164
168
  ObjectPageSection.prototype._onResize = function () {
@@ -141,8 +141,15 @@ sap.ui.define([
141
141
 
142
142
  this.setInvisibleTextLabelValue(this._getTitle());
143
143
 
144
- if (!this.getAggregation(sAriaLabeledBy)) {
145
- this.setAggregation(sAriaLabeledBy, this._getAriaLabelledBy(), true); // this is called onBeforeRendering, so suppress invalidate
144
+ // call every time to clear old content
145
+ this.setAggregation(sAriaLabeledBy, this._getAriaLabelledBy(), true); // this is called onBeforeRendering, so suppress invalidate
146
+ };
147
+
148
+
149
+ ObjectPageSectionBase.prototype.exit = function () {
150
+ if (this._oInvisibleText) {
151
+ this._oInvisibleText.destroy();
152
+ this._oInvisibleText = null;
146
153
  }
147
154
  };
148
155
 
@@ -384,15 +391,34 @@ sap.ui.define([
384
391
  ObjectPageSectionBase.prototype._getAriaLabelledBy = function () {
385
392
  // Each section should be labelled as:
386
393
  // 'titleName' - if the section has a title
387
- // 'Section' - if it does not have a title
394
+ // 'Section' - if it does not have a title or its hidden (for example, showTitle=false)
395
+
396
+ var sLabel = "",
397
+ sTitle = this._getShowTitle() && this._getTitle();
388
398
 
389
- var sLabel = "";
399
+ sLabel = sTitle || this.getSectionText();
390
400
 
391
- sLabel = this._getTitle() || this.getSectionText();
401
+ return this._getInvisibleText().setText(sLabel);
402
+ };
403
+
404
+ ObjectPageSectionBase.prototype._getInvisibleText = function () {
405
+ if (!this._oInvisibleText) {
406
+ this._oInvisibleText = new InvisibleText();
407
+ this._oInvisibleText.toStatic();
408
+ }
392
409
 
393
- return new InvisibleText({
394
- text: sLabel
395
- }).toStatic();
410
+ return this._oInvisibleText;
411
+ };
412
+
413
+ /**
414
+ * Getter for the visible state of the title.
415
+ * This method is overwritten by property setter in inheriting controls.
416
+ *
417
+ * @returns {boolean} true if the title is visible
418
+ * @private
419
+ */
420
+ ObjectPageSectionBase.prototype._getShowTitle = function () {
421
+ return this.getShowTitle ? this.getShowTitle() : true;
396
422
  };
397
423
 
398
424
  /**
@@ -5,14 +5,10 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/fl/Utils",
9
- "sap/base/Log",
10
8
  "sap/ui/fl/changeHandler/AddIFrame",
11
9
  "sap/ui/fl/changeHandler/common/getTargetAggregationIndex",
12
10
  "sap/ui/fl/changeHandler/common/createIFrame"
13
11
  ], function (
14
- Utils,
15
- Log,
16
12
  BaseAddIFrame,
17
13
  getTargetAggregationIndex,
18
14
  createIFrame
@@ -25,7 +21,7 @@ sap.ui.define([
25
21
  * @constructor
26
22
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
27
23
  * @author SAP SE
28
- * @version 1.108.0
24
+ * @version 1.109.0
29
25
  * @since 1.75
30
26
  * @experimental Since 1.75
31
27
  */
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/changeHandler/MoveControls", "sap/ui/core/Core", "sap/
13
13
  * @constructor
14
14
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
15
15
  * @author SAP SE
16
- * @version 1.108.0
16
+ * @version 1.109.0
17
17
  * @experimental Since 1.54
18
18
  */
19
19
 
@@ -5,11 +5,9 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/fl/Utils",
9
8
  "sap/base/Log",
10
9
  "sap/ui/fl/changeHandler/BaseRename"
11
10
  ], function (
12
- Utils,
13
11
  Log,
14
12
  BaseRename
15
13
  ) {
@@ -21,7 +19,7 @@ sap.ui.define([
21
19
  * @constructor
22
20
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
23
21
  * @author SAP SE
24
- * @version 1.108.0
22
+ * @version 1.109.0
25
23
  * @experimental Since 1.50
26
24
  */
27
25
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.uxap
27
27
  * @author SAP SE
28
- * @version 1.108.0
28
+ * @version 1.109.0
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.108.0",
71
+ version: "1.109.0",
72
72
  extensions: {
73
73
  flChangeHandlers: {
74
74
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",