@openui5/sap.f 1.124.2 → 1.126.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/.reuse/dep5 +9 -4
- package/THIRDPARTY.txt +13 -6
- package/package.json +4 -4
- package/src/sap/f/.library +1 -1
- package/src/sap/f/Avatar.js +1 -1
- package/src/sap/f/AvatarGroup.js +1 -1
- package/src/sap/f/AvatarGroupItem.js +1 -1
- package/src/sap/f/AvatarGroupRenderer.js +11 -4
- package/src/sap/f/CalendarAppointmentInCard.js +1 -1
- package/src/sap/f/CalendarInCard.js +1 -1
- package/src/sap/f/Card.js +1 -1
- package/src/sap/f/CardBase.js +28 -1
- package/src/sap/f/DynamicPage.js +2 -2
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +1 -1
- package/src/sap/f/DynamicPageTitle.js +1 -1
- package/src/sap/f/FlexibleColumnLayout.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +1 -1
- package/src/sap/f/GridContainerItemLayoutData.js +1 -1
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridList.js +1 -1
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/IllustratedMessage.js +1 -1
- package/src/sap/f/Illustration.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
- package/src/sap/f/ProductSwitch.js +1 -1
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/SearchManager.js +1 -1
- package/src/sap/f/ShellBar.js +1 -1
- package/src/sap/f/SidePanel.js +1 -1
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +6 -10
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/HeaderRenderer.js +4 -0
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericHeaderRenderer.js +7 -2
- package/src/sap/f/cards/NumericIndicators.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +1 -1
- package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/PlaceholderBase.js +2 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
- package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
- package/src/sap/f/delegate/GridItemNavigation.js +1 -1
- package/src/sap/f/dnd/GridDragOver.js +1 -1
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +2 -2
- package/src/sap/f/semantic/AddAction.js +1 -1
- package/src/sap/f/semantic/CloseAction.js +1 -1
- package/src/sap/f/semantic/CopyAction.js +1 -1
- package/src/sap/f/semantic/DeleteAction.js +1 -1
- package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/f/semantic/EditAction.js +1 -1
- package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
- package/src/sap/f/semantic/FavoriteAction.js +1 -1
- package/src/sap/f/semantic/FlagAction.js +1 -1
- package/src/sap/f/semantic/FooterMainAction.js +1 -1
- package/src/sap/f/semantic/FullScreenAction.js +1 -1
- package/src/sap/f/semantic/MainAction.js +1 -1
- package/src/sap/f/semantic/MessagesIndicator.js +1 -1
- package/src/sap/f/semantic/NegativeAction.js +1 -1
- package/src/sap/f/semantic/PositiveAction.js +1 -1
- package/src/sap/f/semantic/PrintAction.js +1 -1
- package/src/sap/f/semantic/SemanticButton.js +1 -1
- package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/f/semantic/SemanticControl.js +1 -1
- package/src/sap/f/semantic/SemanticPage.js +1 -1
- package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/f/semantic/SendEmailAction.js +1 -1
- package/src/sap/f/semantic/SendMessageAction.js +1 -1
- package/src/sap/f/semantic/ShareInJamAction.js +1 -1
- package/src/sap/f/semantic/TitleMainAction.js +1 -1
- package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
- package/src/sap/f/shellBar/CoPilot.js +1 -1
- package/src/sap/f/shellBar/ControlSpacer.js +1 -1
- package/src/sap/f/shellBar/Search.js +1 -1
- package/src/sap/f/themes/base/Card.less +11 -2
- package/src/sap/f/themes/sap_hcb/base_AvatarGroup.less +275 -0
- package/src/sap/f/themes/sap_hcb/base_CalendarPlaceholder.less +70 -0
- package/src/sap/f/themes/sap_hcb/base_Card.less +638 -0
- package/src/sap/f/themes/sap_hcb/base_CardLoading.less +268 -0
- package/src/sap/f/themes/sap_hcb/base_CardNumericIndicators.less +38 -0
- package/src/sap/f/themes/sap_hcb/base_DynamicPage.less +418 -0
- package/src/sap/f/themes/sap_hcb/base_DynamicPageHeader.less +66 -0
- package/src/sap/f/themes/sap_hcb/base_DynamicPageTitle.less +373 -0
- package/src/sap/f/themes/sap_hcb/base_FlexibleColumnLayout.less +281 -0
- package/src/sap/f/themes/sap_hcb/base_GridContainer.less +60 -0
- package/src/sap/f/themes/sap_hcb/base_GridDragAndDrop.less +5 -0
- package/src/sap/f/themes/sap_hcb/base_GridList.less +103 -0
- package/src/sap/f/themes/sap_hcb/base_GridListItem.less +111 -0
- package/src/sap/f/themes/sap_hcb/base_ListPlaceholder.less +53 -0
- package/src/sap/f/themes/sap_hcb/base_ObjectPlaceholder.less +43 -0
- package/src/sap/f/themes/sap_hcb/base_ProductSwitch.less +3 -0
- package/src/sap/f/themes/sap_hcb/base_ProductSwitchItem.less +160 -0
- package/src/sap/f/themes/sap_hcb/base_SemanticPage.less +34 -0
- package/src/sap/f/themes/sap_hcb/base_ShellBar.less +495 -0
- package/src/sap/f/themes/sap_hcb/base_SidePanel.less +858 -0
- package/src/sap/f/themes/sap_hcb/base_TablePlaceholder.less +34 -0
- package/src/sap/f/themes/sap_hcb/base_TimelinePlaceholder.less +79 -0
- package/src/sap/f/themes/sap_hcb/library.source.less +34 -1
package/.reuse/dep5
CHANGED
|
@@ -50,6 +50,11 @@ Copyright: Mario Heiderich
|
|
|
50
50
|
License: Apache-2.0
|
|
51
51
|
Comment: these files belong to: purify.js
|
|
52
52
|
|
|
53
|
+
Files: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
54
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
55
|
+
License: MIT
|
|
56
|
+
Comment: these files belong to: QUnit Composite 2.0.0
|
|
57
|
+
|
|
53
58
|
|
|
54
59
|
# Library: sap.ui.codeeditor:
|
|
55
60
|
|
|
@@ -379,13 +384,13 @@ Copyright: 2017 Wei Song and Oliver Nightingale
|
|
|
379
384
|
License: MIT
|
|
380
385
|
Comment: these files belong to: Elasticlunr
|
|
381
386
|
|
|
382
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
383
|
-
Copyright:
|
|
387
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
388
|
+
Copyright: SpryMedia Ltd
|
|
384
389
|
License: MIT
|
|
385
390
|
Comment: these files belong to: DataTables
|
|
386
391
|
|
|
387
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
388
|
-
Copyright:
|
|
392
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
393
|
+
Copyright: SpryMedia Ltd
|
|
389
394
|
License: MIT
|
|
390
395
|
Comment: these files belong to: Buttons extension for DataTables
|
|
391
396
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -12,6 +12,13 @@ License: Apache-2.0
|
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
13
13
|
Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
|
|
14
14
|
|
|
15
|
+
Component: QUnit Composite 2.0.0, version: 2.0.0
|
|
16
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
17
|
+
License: MIT
|
|
18
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
19
|
+
Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
|
|
20
|
+
src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
21
|
+
|
|
15
22
|
|
|
16
23
|
Library: sap.ui.codeeditor:
|
|
17
24
|
|
|
@@ -356,17 +363,17 @@ License: MIT
|
|
|
356
363
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
357
364
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
|
|
358
365
|
|
|
359
|
-
Component: DataTables, version:
|
|
360
|
-
Copyright:
|
|
366
|
+
Component: DataTables, version: 2.0.1
|
|
367
|
+
Copyright: SpryMedia Ltd
|
|
361
368
|
License: MIT
|
|
362
369
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
363
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
370
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
364
371
|
|
|
365
|
-
Component: Buttons extension for DataTables, version:
|
|
366
|
-
Copyright:
|
|
372
|
+
Component: Buttons extension for DataTables, version: 3.0.0
|
|
373
|
+
Copyright: SpryMedia Ltd
|
|
367
374
|
License: MIT
|
|
368
375
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
369
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
376
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
370
377
|
|
|
371
378
|
|
|
372
379
|
Library: sap.ui.integration:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.f",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.126.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.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.126.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.126.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.126.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/f/.library
CHANGED
|
@@ -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.
|
|
9
|
+
<version>1.126.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with Fiori controls.</documentation>
|
|
12
12
|
|
package/src/sap/f/Avatar.js
CHANGED
package/src/sap/f/AvatarGroup.js
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides default renderer for control sap.f.AvatarGroupRenderer
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/m/AvatarSize",
|
|
10
|
+
"./library"],
|
|
11
|
+
function (AvatarSize, library) {
|
|
10
12
|
"use strict";
|
|
11
13
|
|
|
12
14
|
/**
|
|
@@ -33,7 +35,8 @@ sap.ui.define(["sap/m/AvatarSize"],
|
|
|
33
35
|
sAvatarGroupTypeClass = sAvatarGroupClass + sGroupType,
|
|
34
36
|
aItems = oAvatarGroup.getItems(),
|
|
35
37
|
bShowMoreButton = oAvatarGroup._shouldShowMoreButton(),
|
|
36
|
-
bInteractive = oAvatarGroup.getProperty("_interactive")
|
|
38
|
+
bInteractive = oAvatarGroup.getProperty("_interactive"),
|
|
39
|
+
sTooltip = oAvatarGroup.getTooltip_AsString();
|
|
37
40
|
|
|
38
41
|
oRm.openStart("div", oAvatarGroup)
|
|
39
42
|
.class(sAvatarGroupClass)
|
|
@@ -52,7 +55,7 @@ sap.ui.define(["sap/m/AvatarSize"],
|
|
|
52
55
|
oRm.style("width", "auto");
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
if (sGroupType ===
|
|
58
|
+
if (sGroupType === library.AvatarGroupType.Group) {
|
|
56
59
|
oRm.attr("role", "button");
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -63,6 +66,10 @@ sap.ui.define(["sap/m/AvatarSize"],
|
|
|
63
66
|
oRm.style("line-height", sAvatarCustomDisplaySize);
|
|
64
67
|
}
|
|
65
68
|
|
|
69
|
+
if (sTooltip && sGroupType === library.AvatarGroupType.Group) {
|
|
70
|
+
oRm.attr("title", sTooltip);
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
oRm.openEnd();
|
|
67
74
|
|
|
68
75
|
for (var i = 0; i < oAvatarGroup._iAvatarsToShow; i++) {
|
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.core.Control
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.126.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
@@ -244,13 +244,20 @@ sap.ui.define([
|
|
|
244
244
|
*/
|
|
245
245
|
CardBase.prototype._getAriaLabelledIds = function () {
|
|
246
246
|
var oHeader = this.getCardHeader();
|
|
247
|
+
const sBlockingMessageAriaLabelsIds = this._getBlockingMessageAriaLabelledByIds();
|
|
247
248
|
|
|
248
249
|
if (oHeader) {
|
|
249
250
|
if (this._isInsideGridContainer()) {
|
|
251
|
+
if (sBlockingMessageAriaLabelsIds) {
|
|
252
|
+
return oHeader._getAriaLabelledBy() + " " + sBlockingMessageAriaLabelsIds;
|
|
253
|
+
}
|
|
250
254
|
return oHeader._getAriaLabelledBy();
|
|
251
255
|
}
|
|
252
256
|
|
|
253
257
|
if (oHeader._getTitle && oHeader._getTitle()) {
|
|
258
|
+
if (sBlockingMessageAriaLabelsIds) {
|
|
259
|
+
return oHeader._getTitle().getId() + " " + sBlockingMessageAriaLabelsIds;
|
|
260
|
+
}
|
|
254
261
|
return oHeader._getTitle().getId();
|
|
255
262
|
}
|
|
256
263
|
}
|
|
@@ -258,6 +265,26 @@ sap.ui.define([
|
|
|
258
265
|
return this._ariaText.getId();
|
|
259
266
|
};
|
|
260
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Gets the ids of the elements in the illustrated message that have to be labelled.
|
|
270
|
+
*
|
|
271
|
+
* @return {string} sAriaLabelledBy ids of elements that have to be labelled
|
|
272
|
+
* @private
|
|
273
|
+
*/
|
|
274
|
+
CardBase.prototype._getBlockingMessageAriaLabelledByIds = function () {
|
|
275
|
+
if (!this.getCardContent()?.getAggregation("_blockingMessage")) {
|
|
276
|
+
return "";
|
|
277
|
+
}
|
|
278
|
+
const oIllustration = this.getCardContent().getAggregation("_blockingMessage")._getIllustratedMessage();
|
|
279
|
+
const sTitleId = oIllustration._getTitle().sId;
|
|
280
|
+
const sDescriptionId = oIllustration._getDescription()?.sId;
|
|
281
|
+
|
|
282
|
+
if (oIllustration._getDescription().getText()) {
|
|
283
|
+
return sTitleId + " " + sDescriptionId;
|
|
284
|
+
}
|
|
285
|
+
return sTitleId;
|
|
286
|
+
};
|
|
287
|
+
|
|
261
288
|
/**
|
|
262
289
|
* Returns if the control is inside a sap.f.GridContainer
|
|
263
290
|
*
|
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -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
|
+
* @version 1.126.0
|
|
122
122
|
*
|
|
123
123
|
* @constructor
|
|
124
124
|
* @public
|
|
@@ -514,7 +514,7 @@ sap.ui.define([
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
DynamicPage.prototype.setShowFooter = function (bShowFooter) {
|
|
517
|
-
var vResult = this.setProperty("showFooter", bShowFooter);
|
|
517
|
+
var vResult = this.setProperty("showFooter", bShowFooter, /* bSuppressInvalidate */ true);
|
|
518
518
|
|
|
519
519
|
this._toggleFooter(bShowFooter);
|
|
520
520
|
|
|
@@ -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.
|
|
52
|
+
* @version 1.126.0
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -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.
|
|
61
|
+
* @version 1.126.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.
|
|
68
|
+
* @version 1.126.0
|
|
69
69
|
*
|
|
70
70
|
* @since 1.65
|
|
71
71
|
* @public
|
package/src/sap/f/GridList.js
CHANGED
|
@@ -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.
|
|
96
|
+
* @version 1.126.0
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.m.ListBase
|
|
99
99
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
package/src/sap/f/ShellBar.js
CHANGED
package/src/sap/f/SidePanel.js
CHANGED
|
@@ -50,7 +50,7 @@ sap.ui.define([
|
|
|
50
50
|
* @abstract
|
|
51
51
|
*
|
|
52
52
|
* @author SAP SE
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.126.0
|
|
54
54
|
*
|
|
55
55
|
* @constructor
|
|
56
56
|
* @public
|
|
@@ -188,8 +188,10 @@ sap.ui.define([
|
|
|
188
188
|
if (oToolbar) {
|
|
189
189
|
oToolbar.addStyleClass("sapFCardHeaderToolbar");
|
|
190
190
|
oToolbar.removeEventDelegate(this._oToolbarDelegate, this);
|
|
191
|
+
if (oToolbar.updateVisibility) {
|
|
192
|
+
oToolbar.updateVisibility();
|
|
193
|
+
}
|
|
191
194
|
}
|
|
192
|
-
|
|
193
195
|
if (aBannerLines) {
|
|
194
196
|
aBannerLines.forEach((oText) => {
|
|
195
197
|
oText.setTextAlign(TextAlign.End);
|
|
@@ -250,10 +252,7 @@ sap.ui.define([
|
|
|
250
252
|
* @private
|
|
251
253
|
*/
|
|
252
254
|
BaseHeader.prototype._onToolbarFocusin = function () {
|
|
253
|
-
|
|
254
|
-
if (oDomRef) {
|
|
255
|
-
this.getDomRef().classList.add("sapFCardHeaderToolbarFocused");
|
|
256
|
-
}
|
|
255
|
+
this.addStyleClass("sapFCardHeaderToolbarFocused");
|
|
257
256
|
};
|
|
258
257
|
|
|
259
258
|
/**
|
|
@@ -261,10 +260,7 @@ sap.ui.define([
|
|
|
261
260
|
* @private
|
|
262
261
|
*/
|
|
263
262
|
BaseHeader.prototype._onToolbarFocusout = function () {
|
|
264
|
-
|
|
265
|
-
if (oDomRef) {
|
|
266
|
-
this.getDomRef().classList.remove("sapFCardHeaderToolbarFocused");
|
|
267
|
-
}
|
|
263
|
+
this.removeStyleClass("sapFCardHeaderToolbarFocused");
|
|
268
264
|
};
|
|
269
265
|
|
|
270
266
|
/*
|
|
@@ -20,9 +20,10 @@ sap.ui.define([
|
|
|
20
20
|
* @param {sap.f.cards.NumericHeader} oNumericHeader An object representation of the control that should be rendered
|
|
21
21
|
*/
|
|
22
22
|
NumericHeaderRenderer.render = function (oRm, oNumericHeader) {
|
|
23
|
-
|
|
23
|
+
const bLoading = oNumericHeader.isLoading(),
|
|
24
24
|
oError = oNumericHeader.getAggregation("_error"),
|
|
25
|
-
bRenderAsLink = oNumericHeader.isLink()
|
|
25
|
+
bRenderAsLink = oNumericHeader.isLink(),
|
|
26
|
+
oToolbar = oNumericHeader.getToolbar();
|
|
26
27
|
|
|
27
28
|
oRm.openStart("div", oNumericHeader)
|
|
28
29
|
.class("sapFCardHeader")
|
|
@@ -44,6 +45,10 @@ sap.ui.define([
|
|
|
44
45
|
oRm.class("sapFCardHeaderHasNumber");
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
if (oToolbar?.getVisible()) {
|
|
49
|
+
oRm.class("sapFCardHeaderHasToolbar");
|
|
50
|
+
}
|
|
51
|
+
|
|
47
52
|
oRm.openEnd();
|
|
48
53
|
|
|
49
54
|
if (bRenderAsLink) {
|