@openui5/sap.f 1.121.0 → 1.122.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.
Files changed (181) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +4 -4
  3. package/src/sap/f/.library +1 -1
  4. package/src/sap/f/Avatar.js +1 -1
  5. package/src/sap/f/AvatarGroup.js +23 -4
  6. package/src/sap/f/AvatarGroupItem.js +1 -1
  7. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  8. package/src/sap/f/CalendarInCard.js +1 -1
  9. package/src/sap/f/Card.js +1 -1
  10. package/src/sap/f/CardBase.js +1 -1
  11. package/src/sap/f/DynamicPage.js +1 -1
  12. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  13. package/src/sap/f/DynamicPageHeader.js +1 -1
  14. package/src/sap/f/DynamicPageTitle.js +1 -1
  15. package/src/sap/f/FlexibleColumnLayout.js +39 -5
  16. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  17. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  18. package/src/sap/f/GridContainer.js +3 -2
  19. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  20. package/src/sap/f/GridContainerSettings.js +2 -2
  21. package/src/sap/f/GridList.js +1 -1
  22. package/src/sap/f/GridListItem.js +1 -1
  23. package/src/sap/f/IllustratedMessage.js +1 -1
  24. package/src/sap/f/Illustration.js +1 -1
  25. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  26. package/src/sap/f/ProductSwitch.js +1 -1
  27. package/src/sap/f/ProductSwitchItem.js +1 -1
  28. package/src/sap/f/SearchManager.js +1 -1
  29. package/src/sap/f/ShellBar.js +1 -1
  30. package/src/sap/f/SidePanel.js +1 -3
  31. package/src/sap/f/SidePanelItem.js +1 -1
  32. package/src/sap/f/cards/BaseHeader.js +42 -7
  33. package/src/sap/f/cards/Header.js +10 -4
  34. package/src/sap/f/cards/NumericHeader.js +15 -4
  35. package/src/sap/f/cards/NumericIndicators.js +1 -1
  36. package/src/sap/f/cards/NumericSideIndicator.js +35 -4
  37. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  38. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  39. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  40. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  41. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  42. package/src/sap/f/cards/loading/PlaceholderBase.js +2 -3
  43. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  44. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  45. package/src/sap/f/cards/util/addTooltipIfTruncated.js +44 -0
  46. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  47. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  48. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  49. package/src/sap/f/designtime/GridContainer.designtime.js +34 -0
  50. package/src/sap/f/designtime/messagebundle.properties +7 -1
  51. package/src/sap/f/designtime/messagebundle_ar.properties +4 -0
  52. package/src/sap/f/designtime/messagebundle_bg.properties +7 -3
  53. package/src/sap/f/designtime/messagebundle_ca.properties +4 -0
  54. package/src/sap/f/designtime/messagebundle_cnr.properties +4 -0
  55. package/src/sap/f/designtime/messagebundle_cs.properties +7 -3
  56. package/src/sap/f/designtime/messagebundle_cy.properties +8 -4
  57. package/src/sap/f/designtime/messagebundle_da.properties +4 -0
  58. package/src/sap/f/designtime/messagebundle_de.properties +4 -0
  59. package/src/sap/f/designtime/messagebundle_el.properties +8 -4
  60. package/src/sap/f/designtime/messagebundle_en.properties +8 -4
  61. package/src/sap/f/designtime/messagebundle_en_GB.properties +8 -4
  62. package/src/sap/f/designtime/messagebundle_es.properties +4 -0
  63. package/src/sap/f/designtime/messagebundle_es_MX.properties +4 -0
  64. package/src/sap/f/designtime/messagebundle_et.properties +4 -0
  65. package/src/sap/f/designtime/messagebundle_fi.properties +4 -0
  66. package/src/sap/f/designtime/messagebundle_fr.properties +4 -0
  67. package/src/sap/f/designtime/messagebundle_fr_CA.properties +4 -0
  68. package/src/sap/f/designtime/messagebundle_hi.properties +6 -2
  69. package/src/sap/f/designtime/messagebundle_hr.properties +4 -0
  70. package/src/sap/f/designtime/messagebundle_hu.properties +6 -2
  71. package/src/sap/f/designtime/messagebundle_id.properties +8 -4
  72. package/src/sap/f/designtime/messagebundle_it.properties +4 -0
  73. package/src/sap/f/designtime/messagebundle_iw.properties +4 -0
  74. package/src/sap/f/designtime/messagebundle_ja.properties +4 -0
  75. package/src/sap/f/designtime/messagebundle_kk.properties +6 -2
  76. package/src/sap/f/designtime/messagebundle_ko.properties +4 -0
  77. package/src/sap/f/designtime/messagebundle_lt.properties +4 -0
  78. package/src/sap/f/designtime/messagebundle_lv.properties +5 -1
  79. package/src/sap/f/designtime/messagebundle_mk.properties +6 -2
  80. package/src/sap/f/designtime/messagebundle_ms.properties +8 -4
  81. package/src/sap/f/designtime/messagebundle_nl.properties +4 -0
  82. package/src/sap/f/designtime/messagebundle_no.properties +4 -0
  83. package/src/sap/f/designtime/messagebundle_pl.properties +4 -0
  84. package/src/sap/f/designtime/messagebundle_pt.properties +5 -1
  85. package/src/sap/f/designtime/messagebundle_pt_PT.properties +4 -0
  86. package/src/sap/f/designtime/messagebundle_ro.properties +4 -0
  87. package/src/sap/f/designtime/messagebundle_ru.properties +8 -4
  88. package/src/sap/f/designtime/messagebundle_sh.properties +4 -0
  89. package/src/sap/f/designtime/messagebundle_sk.properties +4 -0
  90. package/src/sap/f/designtime/messagebundle_sl.properties +4 -0
  91. package/src/sap/f/designtime/messagebundle_sr.properties +4 -0
  92. package/src/sap/f/designtime/messagebundle_sv.properties +4 -0
  93. package/src/sap/f/designtime/messagebundle_th.properties +6 -2
  94. package/src/sap/f/designtime/messagebundle_tr.properties +4 -0
  95. package/src/sap/f/designtime/messagebundle_uk.properties +7 -3
  96. package/src/sap/f/designtime/messagebundle_vi.properties +7 -3
  97. package/src/sap/f/designtime/messagebundle_zh_CN.properties +4 -0
  98. package/src/sap/f/designtime/messagebundle_zh_TW.properties +4 -0
  99. package/src/sap/f/dnd/GridDragOver.js +1 -1
  100. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  101. package/src/sap/f/library.js +7 -2
  102. package/src/sap/f/messagebundle.properties +1 -1
  103. package/src/sap/f/messagebundle_ar.properties +2 -2
  104. package/src/sap/f/messagebundle_bg.properties +2 -2
  105. package/src/sap/f/messagebundle_ca.properties +2 -2
  106. package/src/sap/f/messagebundle_cnr.properties +2 -2
  107. package/src/sap/f/messagebundle_cs.properties +2 -2
  108. package/src/sap/f/messagebundle_cy.properties +2 -2
  109. package/src/sap/f/messagebundle_da.properties +2 -2
  110. package/src/sap/f/messagebundle_de.properties +2 -2
  111. package/src/sap/f/messagebundle_el.properties +2 -2
  112. package/src/sap/f/messagebundle_en.properties +2 -85
  113. package/src/sap/f/messagebundle_en_GB.properties +2 -2
  114. package/src/sap/f/messagebundle_es.properties +2 -2
  115. package/src/sap/f/messagebundle_es_MX.properties +2 -2
  116. package/src/sap/f/messagebundle_et.properties +1 -1
  117. package/src/sap/f/messagebundle_fi.properties +2 -2
  118. package/src/sap/f/messagebundle_fr.properties +2 -2
  119. package/src/sap/f/messagebundle_fr_CA.properties +2 -2
  120. package/src/sap/f/messagebundle_hi.properties +2 -2
  121. package/src/sap/f/messagebundle_hr.properties +2 -2
  122. package/src/sap/f/messagebundle_hu.properties +2 -2
  123. package/src/sap/f/messagebundle_id.properties +2 -2
  124. package/src/sap/f/messagebundle_it.properties +2 -2
  125. package/src/sap/f/messagebundle_iw.properties +2 -2
  126. package/src/sap/f/messagebundle_ja.properties +1 -1
  127. package/src/sap/f/messagebundle_kk.properties +2 -2
  128. package/src/sap/f/messagebundle_ko.properties +1 -1
  129. package/src/sap/f/messagebundle_lt.properties +2 -2
  130. package/src/sap/f/messagebundle_lv.properties +2 -2
  131. package/src/sap/f/messagebundle_mk.properties +2 -2
  132. package/src/sap/f/messagebundle_ms.properties +1 -1
  133. package/src/sap/f/messagebundle_nl.properties +2 -2
  134. package/src/sap/f/messagebundle_no.properties +2 -2
  135. package/src/sap/f/messagebundle_pl.properties +2 -2
  136. package/src/sap/f/messagebundle_pt.properties +2 -2
  137. package/src/sap/f/messagebundle_pt_PT.properties +2 -2
  138. package/src/sap/f/messagebundle_ro.properties +2 -2
  139. package/src/sap/f/messagebundle_ru.properties +2 -2
  140. package/src/sap/f/messagebundle_sh.properties +2 -2
  141. package/src/sap/f/messagebundle_sk.properties +2 -2
  142. package/src/sap/f/messagebundle_sl.properties +2 -2
  143. package/src/sap/f/messagebundle_sr.properties +2 -2
  144. package/src/sap/f/messagebundle_sv.properties +2 -2
  145. package/src/sap/f/messagebundle_th.properties +2 -2
  146. package/src/sap/f/messagebundle_tr.properties +2 -2
  147. package/src/sap/f/messagebundle_uk.properties +3 -3
  148. package/src/sap/f/messagebundle_vi.properties +2 -2
  149. package/src/sap/f/messagebundle_zh_CN.properties +1 -1
  150. package/src/sap/f/messagebundle_zh_TW.properties +2 -2
  151. package/src/sap/f/semantic/AddAction.js +1 -1
  152. package/src/sap/f/semantic/CloseAction.js +1 -1
  153. package/src/sap/f/semantic/CopyAction.js +1 -1
  154. package/src/sap/f/semantic/DeleteAction.js +1 -1
  155. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  156. package/src/sap/f/semantic/EditAction.js +1 -1
  157. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  158. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  159. package/src/sap/f/semantic/FlagAction.js +1 -1
  160. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  161. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  162. package/src/sap/f/semantic/MainAction.js +1 -1
  163. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  164. package/src/sap/f/semantic/NegativeAction.js +1 -1
  165. package/src/sap/f/semantic/PositiveAction.js +1 -1
  166. package/src/sap/f/semantic/PrintAction.js +1 -1
  167. package/src/sap/f/semantic/SemanticButton.js +1 -1
  168. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  169. package/src/sap/f/semantic/SemanticControl.js +1 -1
  170. package/src/sap/f/semantic/SemanticPage.js +1 -1
  171. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  172. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  173. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  174. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  175. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  176. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  177. package/src/sap/f/shellBar/CoPilot.js +1 -1
  178. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  179. package/src/sap/f/shellBar/Search.js +1 -1
  180. package/src/sap/f/themes/base/Card.less +1 -0
  181. package/src/sap/f/themes/base/DynamicPage.less +2 -1
package/THIRDPARTY.txt CHANGED
@@ -461,7 +461,7 @@ License: Apache-2.0
461
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
462
462
  Contained in: lib/jsdoc/ui5/plugin.js
463
463
 
464
- Component: SAP Theming Base Content, version: 11.10.0
464
+ Component: SAP Theming Base Content, version: 11.12.0
465
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
466
466
  License: Apache-2.0
467
467
  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.f",
3
- "version": "1.121.0",
3
+ "version": "1.122.0",
4
4
  "description": "OpenUI5 UI Library sap.f",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,8 +14,8 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.121.0",
18
- "@openui5/sap.ui.core": "1.121.0",
19
- "@openui5/sap.ui.layout": "1.121.0"
17
+ "@openui5/sap.m": "1.122.0",
18
+ "@openui5/sap.ui.core": "1.122.0",
19
+ "@openui5/sap.ui.layout": "1.122.0"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.121.0</version>
9
+ <version>1.122.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with Fiori controls.</documentation>
12
12
 
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.m.Avatar
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.121.0
44
+ * @version 1.122.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -16,8 +16,9 @@ sap.ui.define([
16
16
  "sap/m/library",
17
17
  "sap/ui/core/ResizeHandler",
18
18
  "sap/ui/events/KeyCodes",
19
- "sap/ui/core/Core"
20
- ], function(library, Control, Library, ItemNavigation, Rem, AvatarGroupRenderer, Button, mLibrary, ResizeHandler, KeyCodes, Core) {
19
+ "sap/ui/core/Core",
20
+ "sap/ui/core/Theming"
21
+ ], function(library, Control, Library, ItemNavigation, Rem, AvatarGroupRenderer, Button, mLibrary, ResizeHandler, KeyCodes, Core, Theming) {
21
22
  "use strict";
22
23
 
23
24
  var AvatarGroupType = library.AvatarGroupType;
@@ -99,7 +100,7 @@ sap.ui.define([
99
100
  * @extends sap.ui.core.Control
100
101
  *
101
102
  * @author SAP SE
102
- * @version 1.121.0
103
+ * @version 1.122.0
103
104
  *
104
105
  * @constructor
105
106
  * @public
@@ -253,7 +254,7 @@ sap.ui.define([
253
254
  this._detachResizeHandlers();
254
255
  this._attachResizeHandlers();
255
256
 
256
- if (Core.isThemeApplied()) {
257
+ if (this._isThemeApplied()) {
257
258
  this._onResize();
258
259
  }
259
260
 
@@ -270,6 +271,24 @@ sap.ui.define([
270
271
  this._updateAccState();
271
272
  };
272
273
 
274
+ /**
275
+ * Informs whether the current theme is fully applied already.
276
+ * Replacement for Core#isThemeApplied.
277
+ * Based on sap/m/table/Util#isThemeApplied
278
+ *
279
+ * @returns {boolean} true if theme is applied
280
+ * @private
281
+ */
282
+ AvatarGroup.prototype._isThemeApplied = function() {
283
+ var bIsApplied = false;
284
+ var fnOnThemeApplied = function() {
285
+ bIsApplied = true;
286
+ };
287
+ Theming.attachApplied(fnOnThemeApplied); // Will be called immediately when theme is applied
288
+ Theming.detachApplied(fnOnThemeApplied);
289
+ return bIsApplied;
290
+ };
291
+
273
292
  AvatarGroup.prototype.onThemeChanged = function () {
274
293
  if (!this.getDomRef()) {
275
294
  return;
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.121.0
35
+ * @version 1.122.0
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * This calendar appointment is used in card content of type Calendar.
22
22
  *
23
23
  * @extends sap.ui.unified.CalendarAppointment
24
- * @version 1.121.0
24
+ * @version 1.122.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * <code>sap.m.Toolbar</code> with <code>sap.m.Buttons</code>.
46
46
  *
47
47
  * @extends sap.ui.unified.Calendar
48
- * @version 1.121.0
48
+ * @version 1.122.0
49
49
  *
50
50
  * @constructor
51
51
  * @private
package/src/sap/f/Card.js CHANGED
@@ -71,7 +71,7 @@ sap.ui.define([
71
71
  * @extends sap.f.CardBase
72
72
  *
73
73
  * @author SAP SE
74
- * @version 1.121.0
74
+ * @version 1.122.0
75
75
  *
76
76
  * @constructor
77
77
  * @public
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.121.0
40
+ * @version 1.122.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * @extends sap.ui.core.Control
119
119
  *
120
120
  * @author SAP SE
121
- * @version 1.121.0
121
+ * @version 1.122.0
122
122
  *
123
123
  * @constructor
124
124
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.121.0
26
+ * @version 1.122.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -64,7 +64,7 @@ sap.ui.define([
64
64
  * @extends sap.ui.core.Control
65
65
  *
66
66
  * @author SAP SE
67
- * @version 1.121.0
67
+ * @version 1.122.0
68
68
  *
69
69
  * @constructor
70
70
  * @public
@@ -95,7 +95,7 @@ sap.ui.define([
95
95
  * @extends sap.ui.core.Control
96
96
  *
97
97
  * @author SAP SE
98
- * @version 1.121.0
98
+ * @version 1.122.0
99
99
  *
100
100
  * @constructor
101
101
  * @public
@@ -108,7 +108,7 @@ sap.ui.define([
108
108
  *
109
109
  * @extends sap.ui.core.Control
110
110
  * @author SAP SE
111
- * @version 1.121.0
111
+ * @version 1.122.0
112
112
  *
113
113
  * @constructor
114
114
  * @public
@@ -1163,7 +1163,8 @@ sap.ui.define([
1163
1163
  */
1164
1164
  FlexibleColumnLayout.prototype._getVisibleColumnsForLayout = function (sLayout) {
1165
1165
  return FlexibleColumnLayout.COLUMN_ORDER.filter(function (sColumn) {
1166
- return this._getColumnSizeForLayout(sColumn, sLayout) > 0;
1166
+ // Different than 0, as when we are storing the begin column size, it may happen that it's too big, leading to a negative size of the mid column
1167
+ return this._getColumnSizeForLayout(sColumn, sLayout) !== 0;
1167
1168
  }, this);
1168
1169
  };
1169
1170
 
@@ -2000,6 +2001,7 @@ sap.ui.define([
2000
2001
 
2001
2002
  if (this._isValidWidthDistributionForLayout(sNewWidthsDistribution, sNewLayout)) {
2002
2003
  this._getLocalStorage().put(sNewLayout, sNewWidthsDistribution);
2004
+ this._getLocalStorage().put("begin", oColumnPercentWidths.begin);
2003
2005
  }
2004
2006
  };
2005
2007
 
@@ -2978,7 +2980,9 @@ sap.ui.define([
2978
2980
  */
2979
2981
  FlexibleColumnLayout.prototype._getColumnWidthDistributionForLayout = function (sLayout, bAsIntArray, iMaxColumnsCount) {
2980
2982
  var sColumnWidthDistribution = this._getLocalStorage(iMaxColumnsCount).get(sLayout),
2981
- vResult;
2983
+ iBeginWidth = this._getLocalStorage(iMaxColumnsCount).get("begin"),
2984
+ vResult,
2985
+ vResultAsArray;
2982
2986
 
2983
2987
  iMaxColumnsCount || (iMaxColumnsCount = this.getMaxColumnsCount());
2984
2988
 
@@ -2993,14 +2997,31 @@ sap.ui.define([
2993
2997
  vResult = this._getDefaultColumnWidthDistributionForLayout(sLayout, iMaxColumnsCount);
2994
2998
  }
2995
2999
 
3000
+ vResultAsArray = vResult.split("/");
3001
+
3002
+ iBeginWidth = normalizeBeginColumnWidth(iBeginWidth, sLayout);
3003
+
3004
+ // Used stored begin column width, if not fullscreen layout and the begin column should be shown
3005
+ if (iBeginWidth && !this._isFullScreenLayout(sLayout) && parseInt(vResultAsArray[0]) !== 0) {
3006
+ vResultAsArray[0] = iBeginWidth;
3007
+ vResultAsArray = vResultAsArray.map(function (sColumnWidth) {
3008
+ return parseFloat(sColumnWidth);
3009
+ });
3010
+ normalizeColumnPercentWidths(vResultAsArray);
3011
+ }
3012
+
2996
3013
  if (bAsIntArray) {
2997
- vResult = vResult.split("/").map(function (sColumnWidth) {
3014
+ vResult = vResultAsArray.map(function (sColumnWidth) {
2998
3015
  return Math.round(parseFloat(sColumnWidth));
2999
3016
  });
3000
3017
  normalizeColumnPercentWidths(vResult);
3001
3018
  }
3002
3019
 
3003
- return vResult;
3020
+ if (bAsIntArray) {
3021
+ return vResult;
3022
+ } else {
3023
+ return vResultAsArray.join("/");
3024
+ }
3004
3025
  };
3005
3026
 
3006
3027
  /**
@@ -3407,6 +3428,19 @@ sap.ui.define([
3407
3428
  }
3408
3429
  }
3409
3430
 
3431
+ /**
3432
+ * Ensures width of begin column is correct for specific layouts
3433
+ *
3434
+ * @param {number} iBeginWidth
3435
+ * @param {string} sLayout
3436
+ */
3437
+ function normalizeBeginColumnWidth(iBeginWidth, sLayout) {
3438
+ if ((sLayout === LT.ThreeColumnsMidExpanded || sLayout == LT.ThreeColumnsEndExpanded) && Math.floor(iBeginWidth) >= 33) {
3439
+ return 32;
3440
+ }
3441
+
3442
+ return iBeginWidth;
3443
+ }
3410
3444
 
3411
3445
  return FlexibleColumnLayout;
3412
3446
 
@@ -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.121.0
25
+ * @version 1.122.0
26
26
  * @since 1.95
27
27
  *
28
28
  * @constructor
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  *
50
50
  * For more information, see {@link sap.f.FlexibleColumnLayoutSemanticHelper#getCurrentUIState} and {@link sap.f.FlexibleColumnLayoutSemanticHelper#getNextUIState}
51
51
  *
52
- * @version 1.121.0
52
+ * @version 1.122.0
53
53
  * @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
54
54
  * The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
55
55
  *
@@ -177,7 +177,7 @@ sap.ui.define([
177
177
  * @see {@link sap.f.dnd.GridDropInfo}
178
178
  *
179
179
  * @author SAP SE
180
- * @version 1.121.0
180
+ * @version 1.122.0
181
181
  *
182
182
  * @extends sap.ui.core.Control
183
183
  *
@@ -355,7 +355,8 @@ sap.ui.define([
355
355
  }
356
356
  }
357
357
  },
358
- dnd: { draggable: false, droppable: true }
358
+ dnd: { draggable: false, droppable: true },
359
+ designtime: "sap/f/designtime/GridContainer.designtime"
359
360
  },
360
361
 
361
362
  renderer: GridContainerRenderer
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/LayoutData'],
21
21
  * @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.121.0
24
+ * @version 1.122.0
25
25
  *
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
@@ -58,14 +58,14 @@ sap.ui.define([
58
58
  * Can be used to define the sizes of columns and rows for different screen sizes, by using the <code>layout</code> aggregations of <code>sap.f.GridContainer</code>.
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.121.0
61
+ * @version 1.122.0
62
62
  *
63
63
  * @extends sap.ui.base.ManagedObject
64
64
  *
65
65
  * @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.121.0
68
+ * @version 1.122.0
69
69
  *
70
70
  * @experimental Since 1.65 This class is experimental. The API may change.
71
71
  * @since 1.65
@@ -93,7 +93,7 @@ sap.ui.define([
93
93
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
94
94
  *
95
95
  * @author SAP SE
96
- * @version 1.121.0
96
+ * @version 1.122.0
97
97
  *
98
98
  * @extends sap.m.ListBase
99
99
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.m.ListItemBase
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.121.0
27
+ * @version 1.122.0
28
28
  *
29
29
  * @since 1.70
30
30
  * @constructor
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * @extends sap.m.IllustratedMessage
57
57
  *
58
58
  * @author SAP SE
59
- * @version 1.121.0
59
+ * @version 1.122.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.m.Illustration
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.121.0
33
+ * @version 1.122.0
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -22,7 +22,7 @@ sap.ui.define(['sap/m/PlanningCalendarLegend', "sap/ui/core/Lib", 'sap/ui/unifie
22
22
  * @extends sap.m.PlanningCalendarLegend
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.121.0
25
+ * @version 1.122.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.121.0
37
+ * @version 1.122.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.ui.core.Control
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.121.0
43
+ * @version 1.122.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/ui/base/ManagedObjectObserver', './sh
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.121.0
26
+ * @version 1.122.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -58,7 +58,7 @@ function(
58
58
  * @implements sap.f.IShellBar, sap.m.IBar, sap.tnt.IToolHeader
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.121.0
61
+ * @version 1.122.0
62
62
  *
63
63
  * @constructor
64
64
  * @public
@@ -8,7 +8,6 @@
8
8
  sap.ui.define([
9
9
  "sap/ui/Device",
10
10
  "sap/ui/core/Control",
11
- "sap/ui/core/Core",
12
11
  "sap/ui/core/Element",
13
12
  "sap/ui/core/Icon",
14
13
  "sap/ui/core/Lib",
@@ -32,7 +31,6 @@ sap.ui.define([
32
31
  ], function(
33
32
  Device,
34
33
  Control,
35
- Core,
36
34
  Element,
37
35
  Icon,
38
36
  Library,
@@ -153,7 +151,7 @@ sap.ui.define([
153
151
  * @extends sap.ui.core.Control
154
152
  *
155
153
  * @author SAP SE
156
- * @version 1.121.0
154
+ * @version 1.122.0
157
155
  *
158
156
  * @constructor
159
157
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Item
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.121.0
30
+ * @version 1.122.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -10,7 +10,9 @@ sap.ui.define([
10
10
  "sap/ui/core/format/DateFormat",
11
11
  "sap/ui/core/date/UniversalDate",
12
12
  "sap/ui/core/library",
13
- "sap/m/Text"
13
+ "sap/m/library",
14
+ "sap/m/Text",
15
+ "sap/f/cards/util/addTooltipIfTruncated"
14
16
  ], function (
15
17
  Control,
16
18
  IntervalTrigger,
@@ -18,18 +20,22 @@ sap.ui.define([
18
20
  DateFormat,
19
21
  UniversalDate,
20
22
  coreLibrary,
21
- Text
23
+ mLibrary,
24
+ Text,
25
+ addTooltipIfTruncated
22
26
  ) {
23
27
  "use strict";
24
28
 
25
29
  /**
26
30
  * @const int The refresh interval for dataTimestamp in ms.
27
31
  */
28
- var DATA_TIMESTAMP_REFRESH_INTERVAL = 60000;
32
+ const DATA_TIMESTAMP_REFRESH_INTERVAL = 60000;
29
33
 
30
- var oResourceBundle = Library.getResourceBundleFor("sap.f");
34
+ const oResourceBundle = Library.getResourceBundleFor("sap.f");
31
35
 
32
- var TextAlign = coreLibrary.TextAlign;
36
+ const TextAlign = coreLibrary.TextAlign;
37
+
38
+ const WrappingType = mLibrary.WrappingType;
33
39
 
34
40
  /**
35
41
  * Constructor for a new <code>BaseHeader</code>.
@@ -44,7 +50,7 @@ sap.ui.define([
44
50
  * @abstract
45
51
  *
46
52
  * @author SAP SE
47
- * @version 1.121.0
53
+ * @version 1.122.0
48
54
  *
49
55
  * @constructor
50
56
  * @public
@@ -99,7 +105,20 @@ sap.ui.define([
99
105
  *
100
106
  * @private
101
107
  */
102
- headingLevel: { type: "string", visibility: "hidden", defaultValue: "3"}
108
+ headingLevel: { type: "string", visibility: "hidden", defaultValue: "3"},
109
+
110
+ /**
111
+ * Defines the type of text wrapping to be used inside the header. This applies to title, subtitle and details texts of the header.
112
+ * @public
113
+ * @experimental Since 1.122 this feature is experimental and the API may change.
114
+ */
115
+ wrappingType : {type: "sap.m.WrappingType", group : "Appearance", defaultValue : WrappingType.Normal},
116
+
117
+ /**
118
+ * Defines if tooltips should be shown for truncated texts.
119
+ * @private
120
+ */
121
+ useTooltips: { type: "boolean", visibility: "hidden", defaultValue: false}
103
122
  },
104
123
  aggregations: {
105
124
  /**
@@ -160,6 +179,7 @@ sap.ui.define([
160
179
  if (aBannerLines) {
161
180
  aBannerLines.forEach((oText) => {
162
181
  oText.setTextAlign(TextAlign.End);
182
+ oText.setWrapping(false);
163
183
  });
164
184
  }
165
185
  };
@@ -170,6 +190,10 @@ sap.ui.define([
170
190
  if (oToolbar) {
171
191
  oToolbar.addEventDelegate(this._oToolbarDelegate, this);
172
192
  }
193
+
194
+ this.getBannerLines()?.forEach((oText) => {
195
+ this._enhanceText(oText);
196
+ });
173
197
  };
174
198
 
175
199
  BaseHeader.prototype.getFocusDomRef = function () {
@@ -403,5 +427,16 @@ sap.ui.define([
403
427
  return oToolbar && oToolbar.getDomRef() && oToolbar.getDomRef().contains(oElement);
404
428
  };
405
429
 
430
+ /**
431
+ * When the option <code>useTooltips</code> is set to <code>true</code> - enhances the given text with a tooltip if the text is truncated.
432
+ * @private
433
+ * @param {sap.m.Text} oText The text control.
434
+ */
435
+ BaseHeader.prototype._enhanceText = function (oText) {
436
+ if (this.getProperty("useTooltips")) {
437
+ addTooltipIfTruncated(oText);
438
+ }
439
+ };
440
+
406
441
  return BaseHeader;
407
442
  });
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * @implements sap.f.cards.IHeader
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.121.0
51
+ * @version 1.122.0
52
52
  *
53
53
  * @constructor
54
54
  * @public
@@ -201,7 +201,7 @@ sap.ui.define([
201
201
  Header.prototype._getSubtitle = function () {
202
202
  var oSubtitle = this.getAggregation("_subtitle");
203
203
  if (!oSubtitle) {
204
- oSubtitle = new Text().addStyleClass("sapFCardSubtitle");
204
+ oSubtitle = new Text(this.getId() + "-subtitle").addStyleClass("sapFCardSubtitle");
205
205
  this.setAggregation("_subtitle", oSubtitle);
206
206
  }
207
207
  return oSubtitle;
@@ -232,11 +232,17 @@ sap.ui.define([
232
232
 
233
233
  this._getTitle()
234
234
  .setText(this.getTitle())
235
- .setMaxLines(this.getTitleMaxLines());
235
+ .setMaxLines(this.getTitleMaxLines())
236
+ .setWrappingType(this.getWrappingType());
237
+
238
+ this._enhanceText(this._getTitle());
236
239
 
237
240
  this._getSubtitle()
238
241
  .setText(this.getSubtitle())
239
- .setMaxLines(this.getSubtitleMaxLines());
242
+ .setMaxLines(this.getSubtitleMaxLines())
243
+ .setWrappingType(this.getWrappingType());
244
+
245
+ this._enhanceText(this._getSubtitle());
240
246
 
241
247
  this._getAvatar()
242
248
  .setDisplayShape(this.getIconDisplayShape())