@openui5/sap.f 1.108.2 → 1.110.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 (187) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +4 -4
  4. package/src/sap/f/.library +2 -2
  5. package/src/sap/f/Avatar.js +2 -2
  6. package/src/sap/f/AvatarGroup.js +2 -2
  7. package/src/sap/f/AvatarGroupItem.js +2 -2
  8. package/src/sap/f/AvatarGroupItemRenderer.js +1 -1
  9. package/src/sap/f/AvatarGroupRenderer.js +3 -6
  10. package/src/sap/f/CalendarAppointmentInCard.js +2 -2
  11. package/src/sap/f/CalendarInCard.js +2 -2
  12. package/src/sap/f/CalendarInCardRenderer.js +1 -1
  13. package/src/sap/f/Card.js +2 -2
  14. package/src/sap/f/CardBase.js +22 -7
  15. package/src/sap/f/CardRenderer.js +1 -1
  16. package/src/sap/f/DynamicPage.js +4 -32
  17. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +2 -2
  18. package/src/sap/f/DynamicPageHeader.js +4 -4
  19. package/src/sap/f/DynamicPageHeaderRenderer.js +1 -1
  20. package/src/sap/f/DynamicPageRenderer.js +1 -1
  21. package/src/sap/f/DynamicPageTitle.js +7 -7
  22. package/src/sap/f/DynamicPageTitleRenderer.js +1 -1
  23. package/src/sap/f/FlexibleColumnLayout.js +4 -4
  24. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +2 -2
  25. package/src/sap/f/FlexibleColumnLayoutRenderer.js +1 -1
  26. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +6 -6
  27. package/src/sap/f/GridContainer.js +41 -18
  28. package/src/sap/f/GridContainerItemLayoutData.js +2 -2
  29. package/src/sap/f/GridContainerRenderer.js +9 -5
  30. package/src/sap/f/GridContainerSettings.js +3 -3
  31. package/src/sap/f/GridContainerUtils.js +5 -5
  32. package/src/sap/f/GridList.js +2 -2
  33. package/src/sap/f/GridListItem.js +2 -2
  34. package/src/sap/f/GridListItemRenderer.js +1 -1
  35. package/src/sap/f/GridListRenderer.js +1 -1
  36. package/src/sap/f/GridNavigationMatrix.js +3 -3
  37. package/src/sap/f/IllustratedMessage.js +2 -2
  38. package/src/sap/f/Illustration.js +2 -2
  39. package/src/sap/f/IllustrationPool.js +1 -1
  40. package/src/sap/f/PlanningCalendarInCardLegend.js +2 -2
  41. package/src/sap/f/PlanningCalendarInCardLegendRenderer.js +1 -1
  42. package/src/sap/f/ProductSwitch.js +2 -50
  43. package/src/sap/f/ProductSwitchItem.js +2 -2
  44. package/src/sap/f/ProductSwitchItemRenderer.js +1 -2
  45. package/src/sap/f/ProductSwitchRenderer.js +1 -1
  46. package/src/sap/f/SearchManager.js +2 -2
  47. package/src/sap/f/ShellBar.js +6 -6
  48. package/src/sap/f/ShellBarRenderer.js +1 -1
  49. package/src/sap/f/SidePanel.js +397 -87
  50. package/src/sap/f/SidePanelItem.js +2 -3
  51. package/src/sap/f/SidePanelRenderer.js +63 -20
  52. package/src/sap/f/cards/BaseHeader.js +12 -21
  53. package/src/sap/f/cards/Header.js +3 -3
  54. package/src/sap/f/cards/HeaderRenderer.js +12 -16
  55. package/src/sap/f/cards/NumericHeader.js +12 -4
  56. package/src/sap/f/cards/NumericHeaderRenderer.js +11 -15
  57. package/src/sap/f/cards/NumericIndicators.js +11 -3
  58. package/src/sap/f/cards/NumericIndicatorsRenderer.js +7 -4
  59. package/src/sap/f/cards/NumericSideIndicator.js +2 -2
  60. package/src/sap/f/cards/NumericSideIndicatorRenderer.js +1 -1
  61. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +2 -2
  62. package/src/sap/f/cards/loading/CalendarPlaceholder.js +5 -6
  63. package/src/sap/f/cards/loading/GenericPlaceholder.js +2 -2
  64. package/src/sap/f/cards/loading/ListPlaceholder.js +6 -6
  65. package/src/sap/f/cards/loading/ObjectPlaceholder.js +2 -2
  66. package/src/sap/f/cards/loading/TablePlaceholder.js +6 -6
  67. package/src/sap/f/cards/loading/TimelinePlaceholder.js +7 -7
  68. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +2 -2
  69. package/src/sap/f/delegate/GridContainerItemNavigation.js +20 -42
  70. package/src/sap/f/delegate/GridItemNavigation.js +8 -18
  71. package/src/sap/f/designtime/Avatar.designtime.js +1 -1
  72. package/src/sap/f/designtime/DynamicPage.designtime.js +1 -1
  73. package/src/sap/f/designtime/DynamicPageHeader.designtime.js +1 -1
  74. package/src/sap/f/designtime/DynamicPageTitle.designtime.js +1 -1
  75. package/src/sap/f/designtime/SemanticPage.designtime.js +1 -1
  76. package/src/sap/f/designtime/library.designtime.js +1 -1
  77. package/src/sap/f/dnd/GridDragOver.js +11 -5
  78. package/src/sap/f/dnd/GridDropInfo.js +43 -4
  79. package/src/sap/f/dnd/GridKeyboardDragAndDrop.js +1 -1
  80. package/src/sap/f/flexibility/Avatar.flexibility.js +1 -1
  81. package/src/sap/f/flexibility/DynamicPageTitle.flexibility.js +1 -1
  82. package/src/sap/f/library.js +3 -3
  83. package/src/sap/f/library.support.js +1 -1
  84. package/src/sap/f/messagebundle.properties +11 -0
  85. package/src/sap/f/messagebundle_ar.properties +7 -0
  86. package/src/sap/f/messagebundle_bg.properties +7 -0
  87. package/src/sap/f/messagebundle_ca.properties +7 -0
  88. package/src/sap/f/messagebundle_cs.properties +16 -9
  89. package/src/sap/f/messagebundle_cy.properties +7 -0
  90. package/src/sap/f/messagebundle_da.properties +7 -0
  91. package/src/sap/f/messagebundle_de.properties +7 -0
  92. package/src/sap/f/messagebundle_el.properties +7 -0
  93. package/src/sap/f/messagebundle_en.properties +7 -0
  94. package/src/sap/f/messagebundle_en_GB.properties +7 -0
  95. package/src/sap/f/messagebundle_en_US_sappsd.properties +7 -0
  96. package/src/sap/f/messagebundle_en_US_saprigi.properties +7 -0
  97. package/src/sap/f/messagebundle_en_US_saptrc.properties +7 -0
  98. package/src/sap/f/messagebundle_es.properties +7 -0
  99. package/src/sap/f/messagebundle_es_MX.properties +7 -0
  100. package/src/sap/f/messagebundle_et.properties +7 -0
  101. package/src/sap/f/messagebundle_fi.properties +7 -0
  102. package/src/sap/f/messagebundle_fr.properties +7 -0
  103. package/src/sap/f/messagebundle_fr_CA.properties +7 -0
  104. package/src/sap/f/messagebundle_hi.properties +7 -0
  105. package/src/sap/f/messagebundle_hr.properties +8 -1
  106. package/src/sap/f/messagebundle_hu.properties +7 -0
  107. package/src/sap/f/messagebundle_id.properties +7 -0
  108. package/src/sap/f/messagebundle_it.properties +7 -0
  109. package/src/sap/f/messagebundle_iw.properties +7 -0
  110. package/src/sap/f/messagebundle_ja.properties +7 -0
  111. package/src/sap/f/messagebundle_kk.properties +7 -0
  112. package/src/sap/f/messagebundle_ko.properties +7 -0
  113. package/src/sap/f/messagebundle_lt.properties +7 -0
  114. package/src/sap/f/messagebundle_lv.properties +7 -0
  115. package/src/sap/f/messagebundle_ms.properties +7 -0
  116. package/src/sap/f/messagebundle_nl.properties +7 -0
  117. package/src/sap/f/messagebundle_no.properties +7 -0
  118. package/src/sap/f/messagebundle_pl.properties +7 -0
  119. package/src/sap/f/messagebundle_pt.properties +7 -0
  120. package/src/sap/f/messagebundle_pt_PT.properties +7 -0
  121. package/src/sap/f/messagebundle_ro.properties +7 -0
  122. package/src/sap/f/messagebundle_ru.properties +7 -0
  123. package/src/sap/f/messagebundle_sh.properties +7 -0
  124. package/src/sap/f/messagebundle_sk.properties +7 -0
  125. package/src/sap/f/messagebundle_sl.properties +7 -0
  126. package/src/sap/f/messagebundle_sv.properties +7 -0
  127. package/src/sap/f/messagebundle_th.properties +7 -0
  128. package/src/sap/f/messagebundle_tr.properties +7 -0
  129. package/src/sap/f/messagebundle_uk.properties +7 -0
  130. package/src/sap/f/messagebundle_vi.properties +7 -0
  131. package/src/sap/f/messagebundle_zh_CN.properties +7 -0
  132. package/src/sap/f/messagebundle_zh_TW.properties +7 -0
  133. package/src/sap/f/routing/Router.js +1 -1
  134. package/src/sap/f/routing/Target.js +1 -1
  135. package/src/sap/f/routing/TargetHandler.js +1 -1
  136. package/src/sap/f/routing/Targets.js +1 -1
  137. package/src/sap/f/routing/async/Target.js +1 -1
  138. package/src/sap/f/routing/async/Targets.js +1 -1
  139. package/src/sap/f/rules/Avatar.support.js +1 -1
  140. package/src/sap/f/rules/DynamicPage.support.js +1 -1
  141. package/src/sap/f/semantic/AddAction.js +2 -2
  142. package/src/sap/f/semantic/CloseAction.js +2 -2
  143. package/src/sap/f/semantic/CopyAction.js +2 -2
  144. package/src/sap/f/semantic/DeleteAction.js +2 -2
  145. package/src/sap/f/semantic/DiscussInJamAction.js +2 -2
  146. package/src/sap/f/semantic/EditAction.js +2 -2
  147. package/src/sap/f/semantic/ExitFullScreenAction.js +2 -2
  148. package/src/sap/f/semantic/FavoriteAction.js +2 -2
  149. package/src/sap/f/semantic/FlagAction.js +2 -2
  150. package/src/sap/f/semantic/FooterMainAction.js +2 -2
  151. package/src/sap/f/semantic/FullScreenAction.js +2 -2
  152. package/src/sap/f/semantic/MainAction.js +2 -2
  153. package/src/sap/f/semantic/MessagesIndicator.js +2 -2
  154. package/src/sap/f/semantic/NegativeAction.js +2 -2
  155. package/src/sap/f/semantic/PositiveAction.js +2 -2
  156. package/src/sap/f/semantic/PrintAction.js +2 -2
  157. package/src/sap/f/semantic/SemanticButton.js +2 -2
  158. package/src/sap/f/semantic/SemanticConfiguration.js +4 -8
  159. package/src/sap/f/semantic/SemanticContainer.js +1 -1
  160. package/src/sap/f/semantic/SemanticControl.js +2 -2
  161. package/src/sap/f/semantic/SemanticFooter.js +1 -1
  162. package/src/sap/f/semantic/SemanticPage.js +6 -6
  163. package/src/sap/f/semantic/SemanticPageRenderer.js +1 -1
  164. package/src/sap/f/semantic/SemanticShareMenu.js +1 -1
  165. package/src/sap/f/semantic/SemanticTitle.js +1 -1
  166. package/src/sap/f/semantic/SemanticToggleButton.js +2 -2
  167. package/src/sap/f/semantic/SendEmailAction.js +2 -2
  168. package/src/sap/f/semantic/SendMessageAction.js +2 -2
  169. package/src/sap/f/semantic/ShareInJamAction.js +2 -2
  170. package/src/sap/f/semantic/TitleMainAction.js +2 -2
  171. package/src/sap/f/shellBar/Accessibility.js +1 -1
  172. package/src/sap/f/shellBar/AdditionalContentSupport.js +2 -2
  173. package/src/sap/f/shellBar/CoPilot.js +2 -2
  174. package/src/sap/f/shellBar/CoPilotRenderer.js +12 -7
  175. package/src/sap/f/shellBar/ControlSpacer.js +2 -2
  176. package/src/sap/f/shellBar/ControlSpacerRenderer.js +1 -1
  177. package/src/sap/f/shellBar/Factory.js +1 -1
  178. package/src/sap/f/shellBar/ResponsiveHandler.js +1 -1
  179. package/src/sap/f/shellBar/Search.js +2 -2
  180. package/src/sap/f/shellBar/SearchRenderer.js +1 -1
  181. package/src/sap/f/themes/base/DynamicPage.less +4 -1
  182. package/src/sap/f/themes/base/FlexibleColumnLayout.less +1 -1
  183. package/src/sap/f/themes/base/GridList.less +4 -0
  184. package/src/sap/f/themes/base/ShellBar.less +6 -0
  185. package/src/sap/f/themes/base/SidePanel.less +189 -29
  186. package/src/sap/f/themes/base/library.source.less +1 -1
  187. package/src/sap/f/themes/sap_hcb/library.source.less +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -27,13 +27,12 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Item
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.108.2
30
+ * @version 1.110.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
34
34
  * @since 1.107
35
35
  * @alias sap.f.SidePanelItem
36
- * @experimental Since 1.107. This class is experimental and provides only limited functionality. Also the API might be changed in future.
37
36
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
38
37
  */
39
38
  var SidePanelItem = Item.extend("sap.f.SidePanelItem", {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -15,18 +15,18 @@ sap.ui.define([
15
15
  };
16
16
 
17
17
  SidePanelRenderer.render = function(oRm, oControl) {
18
- var bActionBarExpanded = oControl.getActionBarExpanded(),
19
- bSideContentExpanded = oControl._isSideContentExpanded();
18
+ var bActionBarExpanded = oControl.getActionBarExpanded();
20
19
 
21
20
  oRm.openStart("div", oControl);
22
21
  oRm.class("sapFSP");
23
22
  oControl._isSingleItem() && oRm.class("sapFSPSingleItem");
24
23
  bActionBarExpanded && oControl.getItems().length !== 1 && oRm.class("sapFSPActionBarExpanded");
25
- bSideContentExpanded && oRm.class("sapFSPSideContentExpanded");
24
+ oControl._getSideContentExpanded() && oRm.class("sapFSPSideContentExpanded");
26
25
  oRm.openEnd();
27
26
 
28
27
  SidePanelRenderer.renderMain(oRm, oControl);
29
28
  oControl.getItems().length && SidePanelRenderer.renderSide(oRm, oControl);
29
+ !Device.system.phone && SidePanelRenderer.renderMeasureHelpers(oRm, oControl);
30
30
 
31
31
  oRm.close("div");
32
32
  };
@@ -91,38 +91,35 @@ sap.ui.define([
91
91
  };
92
92
 
93
93
  SidePanelRenderer.renderSide = function(oRm, oControl) {
94
- var bSideExpanded = oControl.getActionBarExpanded() || oControl._getSideContentExpanded(),
95
- bPhone = Device.system.phone,
96
- sSidePanelWidth = oControl._getSidePanelWidth();
94
+ var bPhone = Device.system.phone,
95
+ bRenderSplitter = oControl.getSidePanelResizable() && oControl._getSideContentExpanded() && !bPhone;
96
+
97
97
  oRm.openStart("aside");
98
98
  oRm.class("sapFSPSide");
99
+ bRenderSplitter && oRm.class("sapFSPResizable");
99
100
  oRm.attr("data-sap-ui-fastnavgroup", "true");
100
101
  oRm.attr("role", "region");
101
102
  oRm.attr("aria-label", oControl._getAriaLabelText());
102
- bSideExpanded && !bPhone && oRm.style("width", sSidePanelWidth);
103
+ oControl._getSideContentExpanded() && !bPhone && oRm.style("width", oControl._getSidePanelWidth());
103
104
  oRm.openEnd();
104
105
 
105
106
  oRm.openStart("div");
106
107
  oRm.class("sapFSPSideInner");
107
-
108
- bSideExpanded && !bPhone && oRm.style("width", sSidePanelWidth);
109
-
110
108
  oRm.openEnd();
111
109
 
112
110
  SidePanelRenderer.renderActionBar(oRm, oControl);
113
111
  oControl.getSelectedItem() && SidePanelRenderer.renderSideContent(oRm, oControl);
112
+ bRenderSplitter && SidePanelRenderer.renderSplitterBar(oRm, oControl);
114
113
 
115
114
  oRm.close("div");
116
-
117
115
  oRm.close("aside");
118
116
  };
119
117
 
120
118
  SidePanelRenderer.renderSideContent = function(oRm, oControl) {
121
119
  var aSide = oControl._getSelectedItem().getContent(),
122
- bSideContentExpanded = oControl._isSideContentExpanded(),
123
120
  i;
124
121
 
125
- if (bSideContentExpanded) {
122
+ if (oControl._getSideContentExpanded()) {
126
123
  oRm.openStart("div");
127
124
  oRm.class("sapFSPSideContent");
128
125
  oRm.attr("data-sap-ui-fastnavgroup", "true");
@@ -142,7 +139,6 @@ sap.ui.define([
142
139
  }
143
140
 
144
141
  oRm.close("div");
145
-
146
142
  oRm.close("div");
147
143
  }
148
144
  };
@@ -167,6 +163,10 @@ sap.ui.define([
167
163
  oExpandCollapseButton = oControl.getAggregation("_arrowButton"),
168
164
  i;
169
165
 
166
+ oRm.openStart("div");
167
+ oRm.class("sapFSPActionBar");
168
+ oRm.openEnd();
169
+
170
170
  if (!bPhone) {
171
171
  // expand/collapse button
172
172
  bSingleItem && oExpandCollapseButton.setTooltip(oControl.getItems()[0].getText());
@@ -175,15 +175,14 @@ sap.ui.define([
175
175
 
176
176
  // action bar
177
177
  if (aItems.length) {
178
-
179
178
  oRm.openStart("div");
180
- oRm.class("sapFSPActionBarWrapper");
179
+ oRm.class("sapFSPActionBarListWrapper");
181
180
  bActionBarExpanded && oRm.class("sapFSPExpanded");
182
181
  oRm.attr("role", "toolbar");
183
182
  oRm.openEnd();
184
183
 
185
- oRm.openStart("ul", oControl.getId() + "-ActionBar");
186
- oRm.class("sapFSPActionBar");
184
+ oRm.openStart("ul", oControl.getId() + "-ActionBarList");
185
+ oRm.class("sapFSPActionBarList");
187
186
  aItems.length < 4 && oRm.class("sapFSPCenteredItems");
188
187
  oRm.attr("aria-multiselectable", "false");
189
188
  oRm.attr("aria-label", "Actions");
@@ -202,9 +201,53 @@ sap.ui.define([
202
201
  }
203
202
 
204
203
  oRm.close("ul");
205
-
206
204
  oRm.close("div");
207
205
  }
206
+
207
+ oRm.close("div");
208
+ };
209
+
210
+ SidePanelRenderer.renderSplitterBar = function(oRm, oControl) {
211
+ oRm.openStart("div", oControl.getId() + "-resizeSplitter");
212
+ oRm.class("sapFSPSplitterBar");
213
+ oRm.attr("tabindex", 0);
214
+ oRm.attr("role", "separator");
215
+ oRm.attr("aria-orientation", "vertical");
216
+ oRm.attr("aria-roledescription", "splitter separator");
217
+ oRm.attr("title", oControl._getSplitterTitle());
218
+ oRm.openEnd();
219
+
220
+ oRm.openStart("div");
221
+ oRm.class("sapFSPSplitterBarDecorationBefore");
222
+ oRm.openEnd();
223
+ oRm.close("div");
224
+
225
+ oRm.openStart("div");
226
+ oRm.class("sapFSPSplitterBarGrip");
227
+ oRm.openEnd();
228
+ oRm.icon("sap-icon://vertical-grip", ["sapFSPSplitterBarGripIcon"]);
229
+ oRm.close("div");
230
+
231
+ oRm.openStart("div");
232
+ oRm.class("sapFSPSplitterBarDecorationAfter");
233
+ oRm.openEnd();
234
+ oRm.close("div");
235
+
236
+ oRm.close("div");
237
+ };
238
+
239
+ SidePanelRenderer.renderMeasureHelpers = function(oRm, oControl) {
240
+ oRm.openStart("div");
241
+ oRm.class("sapFSPMinWidth");
242
+ oRm.style("width", oControl.getSidePanelMinWidth());
243
+ oRm.openEnd();
244
+ oRm.close("div");
245
+
246
+ oRm.openStart("div");
247
+ oRm.class("sapFSPMaxWidth");
248
+ oRm.style("width", oControl.getSidePanelMaxWidth());
249
+ oRm.openEnd();
250
+ oRm.close("div");
208
251
  };
209
252
 
210
253
  return SidePanelRenderer;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @abstract
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.108.2
41
+ * @version 1.110.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -135,21 +135,13 @@ sap.ui.define([
135
135
  };
136
136
 
137
137
  BaseHeader.prototype.ontap = function (oEvent) {
138
- var srcControl = oEvent.srcControl;
139
- if (srcControl && srcControl.getId().indexOf("overflowButton") > -1) { // better way?
140
- return;
141
- }
142
-
143
- if (this._isInteractive()) {
138
+ if (this._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
144
139
  this.firePress();
145
140
  }
146
141
  };
147
142
 
148
- /**
149
- * Fires the <code>sap.f.cards.NumericHeader</code> press event.
150
- */
151
- BaseHeader.prototype.onsapselect = function () {
152
- if (this._isInteractive()) {
143
+ BaseHeader.prototype.onsapselect = function (oEvent) {
144
+ if (this._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
153
145
  this.firePress();
154
146
  }
155
147
  };
@@ -302,13 +294,6 @@ sap.ui.define([
302
294
  return BaseHeader._oTimestampIntervalTrigger;
303
295
  };
304
296
 
305
- /**
306
- * @ui5-restricted
307
- */
308
- BaseHeader.prototype.getAriaRole = function () {
309
- return "group";
310
- };
311
-
312
297
  /**
313
298
  * @ui5-restricted
314
299
  */
@@ -320,7 +305,7 @@ sap.ui.define([
320
305
  * @ui5-restricted
321
306
  */
322
307
  BaseHeader.prototype.getFocusableElementAriaRole = function () {
323
- return this.hasListeners("press") ? "button" : null;
308
+ return this.hasListeners("press") ? "button" : "group";
324
309
  };
325
310
 
326
311
  /**
@@ -360,5 +345,11 @@ sap.ui.define([
360
345
  return this.hasListeners("press");
361
346
  };
362
347
 
348
+ BaseHeader.prototype._isInsideToolbar = function(oElement) {
349
+ var oToolbar = this.getToolbar();
350
+
351
+ return oToolbar && oToolbar.getDomRef() && oToolbar.getDomRef().contains(oElement);
352
+ };
353
+
363
354
  return BaseHeader;
364
355
  });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @implements sap.f.cards.IHeader
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.108.2
49
+ * @version 1.110.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -245,7 +245,7 @@ sap.ui.define([
245
245
  * those controls.
246
246
  *
247
247
  * @param {sap.ui.core.Control} oElement - The Control that gets rendered by the RenderManager
248
- * @param {object} mAriaProps - The mapping of "aria-" prefixed attributes
248
+ * @param {{role: string, level: string}} mAriaProps - The mapping of "aria-" prefixed attributes
249
249
  * @protected
250
250
  */
251
251
  Header.prototype.enhanceAccessibilityState = function (oElement, mAriaProps) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -30,8 +30,7 @@ sap.ui.define([], function () {
30
30
  bLoading = oHeader.isLoading(),
31
31
  oError = oHeader.getAggregation("_error"),
32
32
  oToolbar = oHeader.getToolbar(),
33
- bIconVisible = oHeader.getIconVisible ? oHeader.getIconVisible() : true,
34
- sTabIndex;
33
+ bIconVisible = oHeader.getIconVisible ? oHeader.getIconVisible() : true;
35
34
 
36
35
  oRm.openStart("div", oHeader)
37
36
  .class("sapFCardHeader");
@@ -48,26 +47,23 @@ sap.ui.define([], function () {
48
47
  oRm.class("sapFCardHeaderError");
49
48
  }
50
49
 
51
- //Accessibility state
52
- oRm.accessibilityState(oHeader, {
53
- role: oHeader.getAriaRole(),
54
- roledescription: { value: oHeader.getAriaRoleDescription(), append: true }
55
- });
56
50
  oRm.openEnd();
57
51
 
58
52
  oRm.openStart("div")
59
53
  .attr("id", sId + "-focusable")
60
54
  .class("sapFCardHeaderWrapper");
61
55
 
62
- if (oHeader.getProperty("focusable")) {
63
- sTabIndex = oHeader._isInsideGridContainer() ? "-1" : "0";
64
- oRm.attr("tabindex", sTabIndex);
56
+ if (oHeader.getProperty("focusable") && !oHeader._isInsideGridContainer()) {
57
+ oRm.attr("tabindex", "0");
65
58
  }
66
59
 
67
- oRm.accessibilityState({
68
- labelledby: { value: oHeader._getAriaLabelledBy(), append: true },
69
- role: oHeader.getFocusableElementAriaRole()
70
- });
60
+ if (!oHeader._isInsideGridContainer()) {
61
+ oRm.accessibilityState({
62
+ labelledby: {value: oHeader._getAriaLabelledBy(), append: true},
63
+ role: oHeader.getFocusableElementAriaRole(),
64
+ roledescription: oHeader.getAriaRoleDescription()
65
+ });
66
+ }
71
67
 
72
68
  oRm.openEnd();
73
69
 
@@ -79,7 +75,7 @@ sap.ui.define([], function () {
79
75
  return;
80
76
  }
81
77
 
82
- if (bIconVisible && (oHeader.getIconSrc() || oHeader.getIconInitials() || oBindingInfos.iconSrc)) {
78
+ if (bIconVisible && (!oHeader.isPropertyInitial("iconSrc") || !oHeader.isPropertyInitial("iconInitials"))) {
83
79
  oRm.openStart("div")
84
80
  .class("sapFCardHeaderImage")
85
81
  .openEnd();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @extends sap.f.cards.BaseHeader
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.108.2
42
+ * @version 1.110.0
43
43
  *
44
44
  * @constructor
45
45
  * @public
@@ -90,6 +90,12 @@ sap.ui.define([
90
90
  */
91
91
  number: { "type": "string", group : "Data" },
92
92
 
93
+ /**
94
+ * Whether the main numeric indicator is visible or not
95
+ * @since 1.109
96
+ */
97
+ numberVisible: { "type": "boolean", defaultValue : true},
98
+
93
99
  /**
94
100
  * Defines the unit of measurement (scaling prefix) for the main indicator.
95
101
  * Financial characters can be used for currencies and counters. The International System of Units (SI) prefixes can be used.
@@ -124,6 +130,7 @@ sap.ui.define([
124
130
  * The alignment of the side indicators.
125
131
  */
126
132
  sideIndicatorsAlignment: { "type": "sap.f.cards.NumericHeaderSideIndicatorsAlignment", group: "Appearance", defaultValue : "Begin" }
133
+
127
134
  },
128
135
  aggregations: {
129
136
 
@@ -214,7 +221,8 @@ sap.ui.define([
214
221
  .setScale(this.getScale())
215
222
  .setTrend(this.getTrend())
216
223
  .setState(this.getState())
217
- .setSideIndicatorsAlignment(this.getSideIndicatorsAlignment());
224
+ .setSideIndicatorsAlignment(this.getSideIndicatorsAlignment())
225
+ .setNumberVisible(this.getNumberVisible());
218
226
  };
219
227
 
220
228
 
@@ -225,7 +233,7 @@ sap.ui.define([
225
233
  * those controls.
226
234
  *
227
235
  * @param {sap.ui.core.Control} oElement - The Control that gets rendered by the RenderManager
228
- * @param {object} mAriaProps - The mapping of "aria-" prefixed attributes
236
+ * @param {{role: string, level: string}} mAriaProps - The mapping of "aria-" prefixed attributes
229
237
  * @protected
230
238
  */
231
239
  NumericHeader.prototype.enhanceAccessibilityState = function (oElement, mAriaProps) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -20,8 +20,7 @@ sap.ui.define([], function () {
20
20
  */
21
21
  NumericHeaderRenderer.render = function (oRm, oNumericHeader) {
22
22
  var bLoading = oNumericHeader.isLoading(),
23
- oError = oNumericHeader.getAggregation("_error"),
24
- sTabIndex;
23
+ oError = oNumericHeader.getAggregation("_error");
25
24
 
26
25
  oRm.openStart("div", oNumericHeader)
27
26
  .class("sapFCardHeader")
@@ -39,26 +38,23 @@ sap.ui.define([], function () {
39
38
  oRm.class("sapFCardHeaderError");
40
39
  }
41
40
 
42
- //Accessibility state
43
- oRm.accessibilityState(oNumericHeader, {
44
- role: oNumericHeader.getAriaRole(),
45
- roledescription: { value: oNumericHeader.getAriaRoleDescription(), append: true }
46
- });
47
41
  oRm.openEnd();
48
42
 
49
43
  oRm.openStart("div")
50
44
  .attr("id", oNumericHeader.getId() + "-focusable")
51
45
  .class("sapFCardHeaderContent");
52
46
 
53
- if (oNumericHeader.getProperty("focusable")) {
54
- sTabIndex = oNumericHeader._isInsideGridContainer() ? "-1" : "0";
55
- oRm.attr("tabindex", sTabIndex);
47
+ if (oNumericHeader.getProperty("focusable") && !oNumericHeader._isInsideGridContainer()) {
48
+ oRm.attr("tabindex", "0");
56
49
  }
57
50
 
58
- oRm.accessibilityState({
59
- labelledby: { value: oNumericHeader._getAriaLabelledBy(), append: true },
60
- role: oNumericHeader.getFocusableElementAriaRole()
61
- });
51
+ if (!oNumericHeader._isInsideGridContainer()) {
52
+ oRm.accessibilityState({
53
+ labelledby: {value: oNumericHeader._getAriaLabelledBy(), append: true},
54
+ role: oNumericHeader.getFocusableElementAriaRole(),
55
+ roledescription: oNumericHeader.getAriaRoleDescription()
56
+ });
57
+ }
62
58
 
63
59
  oRm.openEnd();
64
60
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.core.Control
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.108.2
28
+ * @version 1.110.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -49,6 +49,12 @@ sap.ui.define([
49
49
  */
50
50
  numberSize: { "type": "string", group : "Appearance", defaultValue: "L" },
51
51
 
52
+ /**
53
+ * Whether the main numeric indicator is visible or not.
54
+ * @since 1.109
55
+ */
56
+ numberVisible: { "type": "boolean", defaultValue : true},
57
+
52
58
  /**
53
59
  * Defines the unit of measurement (scaling prefix) for the main indicator.
54
60
  * Financial characters can be used for currencies and counters. The International System of Units (SI) prefixes can be used.
@@ -71,6 +77,7 @@ sap.ui.define([
71
77
  * The alignment of the side indicators.
72
78
  */
73
79
  sideIndicatorsAlignment: { "type": "sap.f.cards.NumericHeaderSideIndicatorsAlignment", group: "Appearance", defaultValue : "Begin" }
80
+
74
81
  },
75
82
  aggregations: {
76
83
 
@@ -97,7 +104,8 @@ sap.ui.define([
97
104
  .setValue(this.getNumber())
98
105
  .setScale(this.getScale())
99
106
  .setIndicator(this.getTrend())
100
- .setValueColor(this.getState());
107
+ .setValueColor(this.getState())
108
+ .setVisible(this.getNumberVisible());
101
109
  };
102
110
 
103
111
  /**
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -18,7 +18,10 @@ sap.ui.define([], function () {
18
18
  */
19
19
  NumericIndicatorsRenderer.render = function (oRm, oNumericIndicators) {
20
20
  var oMainIndicator = oNumericIndicators.getAggregation("_mainIndicator"),
21
- oSideIndicators = oNumericIndicators.getSideIndicators();
21
+ oSideIndicators = oNumericIndicators.getSideIndicators(),
22
+ bHasVisibleSideIndicator = oSideIndicators.some(function (oIndicator) {
23
+ return oIndicator.getVisible();
24
+ });
22
25
 
23
26
  oRm.openStart("div", oNumericIndicators)
24
27
  .class("sapFCardNumericIndicators")
@@ -31,7 +34,7 @@ sap.ui.define([], function () {
31
34
 
32
35
  oRm.openEnd();
33
36
 
34
- if (oMainIndicator) {
37
+ if (oMainIndicator && oNumericIndicators.getNumberVisible()) {
35
38
  oRm.openStart("div")
36
39
  .class("sapFCardNumericIndicatorsMain")
37
40
  .openEnd()
@@ -44,7 +47,7 @@ sap.ui.define([], function () {
44
47
  .close("div");
45
48
  }
46
49
 
47
- if (oSideIndicators.length !== 0) {
50
+ if (oSideIndicators.length !== 0 && bHasVisibleSideIndicator) {
48
51
  oRm.openStart("div")
49
52
  .class("sapFCardNumericIndicatorsSide")
50
53
  .openEnd();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.108.2
29
+ * @version 1.110.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.core.Control
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.108.2
22
+ * @version 1.110.0
23
23
  *
24
24
  * @constructor
25
25
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.f.cards.loading.ListPlaceholder
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.108.2
22
+ * @version 1.110.0
23
23
  *
24
24
  * @constructor
25
25
  * @private
@@ -30,9 +30,8 @@ sap.ui.define([
30
30
  metadata: {
31
31
  library: "sap.f",
32
32
  properties: {
33
-
34
33
  /**
35
- * The maxLegendItems set to the list.
34
+ * The maxLegendItems set to the legend items.
36
35
  */
37
36
  maxLegendItems: {
38
37
  type : "int",
@@ -49,7 +48,7 @@ sap.ui.define([
49
48
  },
50
49
  renderer: {
51
50
  render: function (oRm, oControl) {
52
- var iMaxItems = oControl.getMaxItems(),
51
+ var iMinItems = oControl.getMinItems(),
53
52
  iMaxLegendItems = oControl.getMaxLegendItems(),
54
53
  oItem = oControl.getItem(),
55
54
  oLegendItem = oControl.getLegendItem(),
@@ -138,7 +137,7 @@ sap.ui.define([
138
137
 
139
138
  oRm.openEnd();
140
139
 
141
- for (i = 0; i < iMaxItems; i++) {
140
+ for (i = 0; i < iMinItems; i++) {
142
141
  oRm.openStart("div")
143
142
  .class("sapFCardListPlaceholderItem")
144
143
  .style("height", oControl.getItemHeight())
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.core.Control
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.108.2
22
+ * @version 1.110.0
23
23
  *
24
24
  * @constructor
25
25
  * @private