@openui5/sap.f 1.138.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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/REUSE.toml +8 -1
  3. package/THIRDPARTY.txt +72 -66
  4. package/package.json +5 -5
  5. package/src/sap/f/.library +1 -1
  6. package/src/sap/f/Avatar.js +1 -1
  7. package/src/sap/f/AvatarGroup.js +1 -1
  8. package/src/sap/f/AvatarGroupItem.js +1 -1
  9. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  10. package/src/sap/f/CalendarInCard.js +1 -1
  11. package/src/sap/f/Card.js +1 -1
  12. package/src/sap/f/CardBase.js +14 -2
  13. package/src/sap/f/CardRenderer.js +16 -4
  14. package/src/sap/f/DynamicPage.js +1 -1
  15. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  16. package/src/sap/f/DynamicPageHeader.js +1 -1
  17. package/src/sap/f/DynamicPageTitle.js +4 -3
  18. package/src/sap/f/FlexibleColumnLayout.js +7 -3
  19. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  20. package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
  21. package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
  22. package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
  23. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  24. package/src/sap/f/GridContainer.js +1 -1
  25. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  26. package/src/sap/f/GridContainerSettings.js +2 -2
  27. package/src/sap/f/GridList.js +1 -1
  28. package/src/sap/f/GridListItem.js +1 -1
  29. package/src/sap/f/IllustratedMessage.js +1 -1
  30. package/src/sap/f/Illustration.js +1 -1
  31. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  32. package/src/sap/f/ProductSwitch.js +1 -1
  33. package/src/sap/f/ProductSwitchItem.js +43 -1
  34. package/src/sap/f/ProductSwitchItemRenderer.js +12 -8
  35. package/src/sap/f/SearchManager.js +1 -1
  36. package/src/sap/f/ShellBar.js +1 -1
  37. package/src/sap/f/SidePanel.js +1 -1
  38. package/src/sap/f/SidePanelItem.js +1 -1
  39. package/src/sap/f/cards/BaseHeader.js +16 -23
  40. package/src/sap/f/cards/BaseHeaderRenderer.js +92 -44
  41. package/src/sap/f/cards/Header.js +1 -1
  42. package/src/sap/f/cards/NumericHeader.js +1 -1
  43. package/src/sap/f/cards/NumericHeaderRenderer.js +34 -12
  44. package/src/sap/f/cards/NumericIndicators.js +1 -1
  45. package/src/sap/f/cards/NumericSideIndicator.js +1 -1
  46. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  47. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  48. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  49. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  50. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  51. package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
  52. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  53. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  54. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  55. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  56. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  57. package/src/sap/f/dnd/GridDragOver.js +1 -1
  58. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  59. package/src/sap/f/library.js +2 -2
  60. package/src/sap/f/routing/Router.js +20 -15
  61. package/src/sap/f/semantic/AddAction.js +1 -1
  62. package/src/sap/f/semantic/CloseAction.js +1 -1
  63. package/src/sap/f/semantic/CopyAction.js +1 -1
  64. package/src/sap/f/semantic/DeleteAction.js +1 -1
  65. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  66. package/src/sap/f/semantic/EditAction.js +1 -1
  67. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  68. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  69. package/src/sap/f/semantic/FlagAction.js +1 -1
  70. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  71. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  72. package/src/sap/f/semantic/MainAction.js +1 -1
  73. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  74. package/src/sap/f/semantic/NegativeAction.js +1 -1
  75. package/src/sap/f/semantic/PositiveAction.js +1 -1
  76. package/src/sap/f/semantic/PrintAction.js +1 -1
  77. package/src/sap/f/semantic/SemanticButton.js +1 -1
  78. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  79. package/src/sap/f/semantic/SemanticControl.js +1 -1
  80. package/src/sap/f/semantic/SemanticPage.js +1 -1
  81. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  82. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  83. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  84. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  85. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  86. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  87. package/src/sap/f/shellBar/CoPilot.js +1 -1
  88. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  89. package/src/sap/f/shellBar/Search.js +1 -1
  90. package/src/sap/f/themes/base/Card.less +9 -5
  91. package/src/sap/f/themes/base/CardHeaders.less +76 -21
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.138.0
44
+ * @version 1.140.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -310,11 +310,23 @@ sap.ui.define([
310
310
  return this._ariaText.getId();
311
311
  };
312
312
 
313
+ /**
314
+ * @private
315
+ * @ui5-restricted sap.f
316
+ * @returns {boolean} hook to determine if the card is a tile variant
317
+ */
318
+ CardBase.prototype.isTileDisplayVariant = function () {
319
+ return false;
320
+ };
321
+
313
322
  CardBase.prototype._getAriaDescribedByIds = function () {
314
323
  const bHasCardBadgeCustomData = this._getCardBadgeCustomData().length > 0;
315
324
  const aIds = [];
316
325
 
317
- aIds.push(this._describedByCardTypeText.getId());
326
+
327
+ if (!this.isTileDisplayVariant()) {
328
+ aIds.push(this._describedByCardTypeText.getId());
329
+ }
318
330
 
319
331
  if (this.isInteractive() && this.isRoleListItem()) {
320
332
  aIds.push(this._describedByInteractiveText.getId());
@@ -33,7 +33,10 @@ sap.ui.define([
33
33
  CardRenderer.render = function (oRm, oCard) {
34
34
  var oHeader = oCard._getHeaderAggregation(),
35
35
  bHeaderTop = oHeader && oCard.getCardHeaderPosition() === HeaderPosition.Top,
36
- bHasCardBadgeCustomData = oCard._getCardBadgeCustomData().length > 0;
36
+ bHasCardBadgeCustomData = oCard._getCardBadgeCustomData().length > 0,
37
+ oContent = oCard.getCardContent(),
38
+ bHasContent = !!oContent,
39
+ bIsInteractive = oCard.isInteractive();
37
40
 
38
41
  oRm.openStart("div", oCard);
39
42
  this.renderContainerAttributes(oRm, oCard);
@@ -60,10 +63,19 @@ sap.ui.define([
60
63
  this.renderFooterSection(oRm, oCard);
61
64
 
62
65
  oRm.renderControl(oCard._ariaText);
63
- oRm.renderControl(oCard._ariaContentText);
64
66
 
65
- oRm.renderControl(oCard._describedByCardTypeText);
66
- oRm.renderControl(oCard._describedByInteractiveText);
67
+ if (bHasContent) {
68
+ oRm.renderControl(oCard._ariaContentText);
69
+ }
70
+
71
+ if (!oCard.isTileDisplayVariant()) {
72
+ oRm.renderControl(oCard._describedByCardTypeText);
73
+ }
74
+
75
+ if (bIsInteractive) {
76
+ oRm.renderControl(oCard._describedByInteractiveText);
77
+ }
78
+
67
79
  if (oCard._invisibleTitle) {
68
80
  oRm.renderControl(oCard._invisibleTitle);
69
81
  }
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * @extends sap.ui.core.Control
119
119
  *
120
120
  * @author SAP SE
121
- * @version 1.138.0
121
+ * @version 1.140.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.138.0
26
+ * @version 1.140.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.138.0
67
+ * @version 1.140.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.138.0
98
+ * @version 1.140.0
99
99
  *
100
100
  * @constructor
101
101
  * @public
@@ -212,8 +212,9 @@ sap.ui.define([
212
212
 
213
213
  /**
214
214
  * The <code>DynamicPageTitle</code> actions.
215
- * <br><b>Note:</b> The <code>actions</code> aggregation accepts any UI5 control, but it`s recommended to use controls,
216
- * suitable for {@link sap.m.Toolbar} and {@link sap.m.OverflowToolbar}.
215
+ * <br><b>Note:</b> The <code>actions</code> aggregation accepts any UI5 control.
216
+ * However, it is best to use buttons or controls that work well inside toolbars, such
217
+ * as those typically used with {@link sap.m.Toolbar} and {@link sap.m.OverflowToolbar}.
217
218
  *
218
219
  * <b>Note:</b> If the <code>snappedTitleOnMobile</code> aggregation is set, its
219
220
  * content overrides this aggregation when the control is viewed on a phone mobile
@@ -108,7 +108,7 @@ sap.ui.define([
108
108
  *
109
109
  * @extends sap.ui.core.Control
110
110
  * @author SAP SE
111
- * @version 1.138.0
111
+ * @version 1.140.0
112
112
  *
113
113
  * @constructor
114
114
  * @public
@@ -753,9 +753,13 @@ sap.ui.define([
753
753
  * Connects the keyboard event listeners so resizing via keyboard will be possible
754
754
  */
755
755
  FlexibleColumnLayout.prototype._enableKeyboardListeners = function() {
756
- this.onsaprightmodifiers = this._keyListeners.increase;
757
- this.onsapleftmodifiers = this._keyListeners.decrease;
756
+ this.onsaprightmodifiers = this._keyListeners.increase; //right or down key to increase column width
757
+ this.onsapdownmodifiers = this._keyListeners.increase;
758
+ this.onsapleftmodifiers = this._keyListeners.decrease; //left or up key to decrease column width
759
+ this.onsapupmodifiers = this._keyListeners.decrease;
758
760
  this.onsapright = this._keyListeners.increaseMore;
761
+ this.onsapdown = this._keyListeners.increaseMore;
762
+ this.onsapup = this._keyListeners.decreaseMore;
759
763
  this.onsapleft = this._keyListeners.decreaseMore;
760
764
  this.onsapend = this._keyListeners.max;
761
765
  this.onsaphome = this._keyListeners.min;
@@ -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.138.0
25
+ * @version 1.140.0
26
26
  * @since 1.95
27
27
  *
28
28
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define(["sap/ui/core/LayoutData", "sap/ui/base/ManagedObjectObserver", "s
21
21
  *
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.138.0
24
+ * @version 1.140.0
25
25
  *
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/LayoutData'],
20
20
  *
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.138.0
23
+ * @version 1.140.0
24
24
  *
25
25
  * @extends sap.ui.core.LayoutData
26
26
  *
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/LayoutData'],
20
20
  *
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.138.0
23
+ * @version 1.140.0
24
24
  *
25
25
  * @extends sap.ui.core.LayoutData
26
26
  *
@@ -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.138.0
52
+ * @version 1.140.0
53
53
  * @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
54
54
  * The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
55
55
  *
@@ -163,7 +163,7 @@ sap.ui.define([
163
163
  * @see {@link sap.f.dnd.GridDropInfo}
164
164
  *
165
165
  * @author SAP SE
166
- * @version 1.138.0
166
+ * @version 1.140.0
167
167
  *
168
168
  * @extends sap.ui.core.Control
169
169
  *
@@ -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.138.0
24
+ * @version 1.140.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.138.0
61
+ * @version 1.140.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.138.0
68
+ * @version 1.140.0
69
69
  *
70
70
  * @since 1.65
71
71
  * @public
@@ -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.138.0
96
+ * @version 1.140.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.138.0
27
+ * @version 1.140.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.138.0
59
+ * @version 1.140.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.138.0
33
+ * @version 1.140.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.138.0
25
+ * @version 1.140.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.138.0
37
+ * @version 1.140.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -9,6 +9,10 @@ sap.ui.define([
9
9
  "sap/ui/core/Control",
10
10
  "sap/ui/core/Icon",
11
11
  "sap/ui/core/library",
12
+ "sap/m/Avatar",
13
+ "sap/m/AvatarShape",
14
+ "sap/m/AvatarImageFitType",
15
+ "sap/m/AvatarColor",
12
16
  "sap/m/Text",
13
17
  "sap/ui/events/KeyCodes",
14
18
  "sap/f/ProductSwitchItemRenderer"
@@ -17,6 +21,10 @@ sap.ui.define([
17
21
  Control,
18
22
  Icon,
19
23
  library,
24
+ Avatar,
25
+ AvatarShape,
26
+ AvatarImageFitType,
27
+ AvatarColor,
20
28
  Text,
21
29
  KeyCodes,
22
30
  ProductSwitchItemRenderer
@@ -40,7 +48,7 @@ sap.ui.define([
40
48
  * @extends sap.ui.core.Control
41
49
  *
42
50
  * @author SAP SE
43
- * @version 1.138.0
51
+ * @version 1.140.0
44
52
  *
45
53
  * @constructor
46
54
  * @public
@@ -56,6 +64,14 @@ sap.ui.define([
56
64
  * It can be an icon from the SAP icon font.
57
65
  */
58
66
  src: { type: "sap.ui.core.URI", defaultValue: null },
67
+ /**
68
+ * Defines the image to be displayed as graphical element within the <code>ProductSwitchItem</code>.
69
+ *
70
+ * <b>Note:</b> This property takes precedence over the <code>src</code> property.
71
+ *
72
+ * @since 1.140
73
+ */
74
+ imageSrc: { type: "sap.ui.core.URI", defaultValue: null },
59
75
  /**
60
76
  * Determines the title of the <code>ProductSwitchItem</code>.
61
77
  */
@@ -81,6 +97,10 @@ sap.ui.define([
81
97
  target: { type: "string", group: "Behavior", defaultValue: null }
82
98
  },
83
99
  aggregations: {
100
+ /**
101
+ * Holds the internally created Avatar.
102
+ */
103
+ _avatar: { type: "sap.m.Avatar", visibility: "hidden", multiple: false },
84
104
  /**
85
105
  * Holds the internally created Icon.
86
106
  */
@@ -121,6 +141,28 @@ sap.ui.define([
121
141
  return this;
122
142
  };
123
143
 
144
+ /**
145
+ * Gets content of aggregation _avatar.
146
+ * @returns {sap.m.Avatar} The avatar aggregation instance.
147
+ * @private
148
+ */
149
+ ProductSwitchItem.prototype._getAvatar = function () {
150
+ var oAvatar = this.getAggregation("_avatar");
151
+
152
+ if (!oAvatar) {
153
+ oAvatar = new Avatar({
154
+ displayShape: AvatarShape.Square,
155
+ src: this.getImageSrc(),
156
+ imageFitType: AvatarImageFitType.Contain,
157
+ backgroundColor: AvatarColor.Transparent
158
+ });
159
+
160
+ this.setAggregation("_avatar", oAvatar);
161
+ }
162
+
163
+ return oAvatar;
164
+ };
165
+
124
166
  /**
125
167
  * Gets content of aggregation _icon.
126
168
  * @returns {sap.ui.core.Icon}
@@ -12,16 +12,16 @@ sap.ui.define([],
12
12
  };
13
13
 
14
14
  ProductSwitchItemRenderer.render = function (oRm, oControl) {
15
- var oProductSwith = oControl._getProductSwitch(),
15
+ var oProductSwitch = oControl._getProductSwitch(),
16
16
  oAccessibilityState = {
17
17
  role: "menuitemradio"
18
18
  },
19
19
  sTooltip = oControl.getTooltip_AsString();
20
20
 
21
- if (oProductSwith) {
22
- oAccessibilityState.setsize = oProductSwith._getItemsCount();
23
- oAccessibilityState.posinset = oProductSwith._getItemPosition(oControl);
24
- oAccessibilityState.checked = oControl.getId() === oProductSwith.getSelectedItem() ? "true" : "false";
21
+ if (oProductSwitch) {
22
+ oAccessibilityState.setsize = oProductSwitch._getItemsCount();
23
+ oAccessibilityState.posinset = oProductSwitch._getItemPosition(oControl);
24
+ oAccessibilityState.checked = oControl.getId() === oProductSwitch.getSelectedItem() ? "true" : "false";
25
25
  }
26
26
 
27
27
  oRm.openStart("div", oControl);
@@ -36,9 +36,13 @@ sap.ui.define([],
36
36
  oRm.class("sapFPSItemIconPlaceholder");
37
37
  oRm.class("sapUiTinyMarginBottom");
38
38
  oRm.openEnd();
39
- if (oControl.getSrc()) {
40
- oRm.renderControl(oControl._getIcon());
41
- }
39
+
40
+ if (oControl.getImageSrc()) {
41
+ oRm.renderControl(oControl._getAvatar());
42
+ } else if (oControl.getSrc()) {
43
+ oRm.renderControl(oControl._getIcon());
44
+ }
45
+
42
46
  oRm.close("span");
43
47
  oRm.openStart("div");
44
48
  oRm.class("sapFPSItemTextSection");
@@ -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.138.0
26
+ * @version 1.140.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -58,7 +58,7 @@ function(
58
58
  * @implements sap.f.IShellBar, sap.m.IBar
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.138.0
61
+ * @version 1.140.0
62
62
  *
63
63
  * @constructor
64
64
  * @public
@@ -153,7 +153,7 @@ sap.ui.define([
153
153
  * @extends sap.ui.core.Control
154
154
  *
155
155
  * @author SAP SE
156
- * @version 1.138.0
156
+ * @version 1.140.0
157
157
  *
158
158
  * @constructor
159
159
  * @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.138.0
30
+ * @version 1.140.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * @abstract
56
56
  *
57
57
  * @author SAP SE
58
- * @version 1.138.0
58
+ * @version 1.140.0
59
59
  *
60
60
  * @constructor
61
61
  * @public
@@ -197,8 +197,7 @@ sap.ui.define([
197
197
 
198
198
  this._oToolbarDelegate = {
199
199
  onfocusin: this._onToolbarFocusin,
200
- onfocusout: this._onToolbarFocusout,
201
- onAfterRendering: this._addMarginToHeaderText
200
+ onfocusout: this._onToolbarFocusout
202
201
  };
203
202
  };
204
203
 
@@ -238,8 +237,6 @@ sap.ui.define([
238
237
  oToolbar.addEventDelegate(this._oToolbarDelegate, this);
239
238
  }
240
239
 
241
- this._addMarginToHeaderText();
242
-
243
240
  this.getBannerLines()?.forEach((oText) => {
244
241
  this._enhanceText(oText);
245
242
  });
@@ -266,6 +263,14 @@ sap.ui.define([
266
263
  return !!this.getHref();
267
264
  };
268
265
 
266
+ /**
267
+ * If the header must have tile accessibility.
268
+ * @returns {boolean} True if card related attributes should not be rendered.
269
+ */
270
+ BaseHeader.prototype.isTile = function () {
271
+ return !!this.getProperty("useTileLayout");
272
+ };
273
+
269
274
  BaseHeader.prototype.onkeydown = function (oEvent) {
270
275
 
271
276
  if ((oEvent.which === KeyCodes.SPACE || oEvent.which === KeyCodes.ENTER || oEvent.which === KeyCodes.ESCAPE || oEvent.which === KeyCodes.SHIFT)
@@ -300,7 +305,7 @@ sap.ui.define([
300
305
 
301
306
  BaseHeader.prototype.ontap = function (oEvent) {
302
307
  if (this.isLink() && oEvent.ctrlKey) {
303
- // ctrl + click should open the link in a new tab
308
+ //Ctrl + click opens the link in a new tab.
304
309
  return;
305
310
  }
306
311
 
@@ -337,23 +342,6 @@ sap.ui.define([
337
342
  this.removeStyleClass("sapFCardHeaderToolbarFocused");
338
343
  };
339
344
 
340
- /**
341
- * Adds margin to the header text, which ensures the text will be visible under the toolbar.
342
- * @private
343
- */
344
- BaseHeader.prototype._addMarginToHeaderText = function () {
345
- const oToolbar = this.getToolbar();
346
- const oHeaderText = this.getDomRef().getElementsByClassName("sapFCardHeaderText")[0];
347
-
348
- if (oHeaderText && oToolbar) {
349
- if (oToolbar.getVisible()) {
350
- oHeaderText.style.marginInlineEnd = oToolbar.getDomRef().offsetWidth + "px";
351
- } else {
352
- oHeaderText.style.marginInlineEnd = 0;
353
- }
354
- }
355
- };
356
-
357
345
  /*
358
346
  * @override
359
347
  */
@@ -509,6 +497,11 @@ sap.ui.define([
509
497
  * @ui5-restricted
510
498
  */
511
499
  BaseHeader.prototype.getAriaRoleDescription = function () {
500
+ if (this.isTile()) {
501
+
502
+ return null;
503
+ }
504
+
512
505
  return this.hasListeners("press") ? this._oRb.getText("ARIA_ROLEDESCRIPTION_INTERACTIVE_CARD_HEADER") : this._oRb.getText("ARIA_ROLEDESCRIPTION_CARD_HEADER");
513
506
  };
514
507