@openui5/sap.f 1.118.0 → 1.119.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +2 -2
- 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/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 +1 -1
- package/src/sap/f/DynamicPage.js +2 -1
- 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/DynamicPageTitleRenderer.js +1 -0
- package/src/sap/f/FlexibleColumnLayout.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +3 -3
- 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 +2 -2
- 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 +24 -20
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +11 -1
- package/src/sap/f/cards/Header.js +28 -27
- package/src/sap/f/cards/HeaderRenderer.js +4 -0
- package/src/sap/f/cards/NumericHeader.js +42 -35
- package/src/sap/f/cards/NumericHeaderRenderer.js +8 -0
- 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 +1 -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/messagebundle_bg.properties +15 -15
- package/src/sap/f/messagebundle_cs.properties +9 -9
- package/src/sap/f/messagebundle_da.properties +1 -1
- package/src/sap/f/messagebundle_fi.properties +1 -1
- package/src/sap/f/messagebundle_fr.properties +5 -5
- package/src/sap/f/messagebundle_hi.properties +1 -1
- package/src/sap/f/messagebundle_hr.properties +4 -4
- package/src/sap/f/messagebundle_hu.properties +1 -1
- package/src/sap/f/messagebundle_sl.properties +1 -1
- package/src/sap/f/messagebundle_zh_TW.properties +1 -1
- package/src/sap/f/rules/DynamicPage.support.js +26 -15
- 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 +1 -1
- package/src/sap/f/themes/base/DynamicPage.less +3 -2
- package/src/sap/f/themes/base/DynamicPageTitle.less +5 -0
- package/src/sap/f/themes/base/SidePanel.less +19 -12
package/THIRDPARTY.txt
CHANGED
|
@@ -401,7 +401,7 @@ License: MIT
|
|
|
401
401
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
402
402
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
|
|
403
403
|
|
|
404
|
-
Component: Markdown-it, version: 12.2
|
|
404
|
+
Component: Markdown-it, version: 12.3.2
|
|
405
405
|
Copyright: 2014 Vitaly Puzrin, Alex Kocharin
|
|
406
406
|
License: MIT
|
|
407
407
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -466,7 +466,7 @@ License: Apache-2.0
|
|
|
466
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
468
468
|
|
|
469
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.6.8
|
|
470
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
471
471
|
License: Apache-2.0
|
|
472
472
|
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.
|
|
3
|
+
"version": "1.119.1",
|
|
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.119.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.119.1",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.119.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/f/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 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.119.1</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
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
* @extends sap.ui.core.Control
|
|
113
113
|
*
|
|
114
114
|
* @author SAP SE
|
|
115
|
-
* @version 1.
|
|
115
|
+
* @version 1.119.1
|
|
116
116
|
*
|
|
117
117
|
* @constructor
|
|
118
118
|
* @public
|
|
@@ -1351,6 +1351,7 @@ sap.ui.define([
|
|
|
1351
1351
|
// (1) add top padding for the area underneath the title element
|
|
1352
1352
|
// so that the title does not overlap the content of the scroll container
|
|
1353
1353
|
oWrapperElement.style.paddingTop = iTitleHeight + "px";
|
|
1354
|
+
oWrapperElement.style.scrollPaddingTop = iTitleHeight + "px";
|
|
1354
1355
|
this._oScrollHelper.setScrollPaddingTop(iTitleHeight);
|
|
1355
1356
|
|
|
1356
1357
|
// (2) also make the area underneath the title invisible (using clip-path)
|
|
@@ -236,6 +236,7 @@ sap.ui.define([
|
|
|
236
236
|
|
|
237
237
|
DynamicPageTitleRenderer._renderExpandContent = function (oRm, oDynamicPageTitleState) {
|
|
238
238
|
oRm.openStart("div", oDynamicPageTitleState.id + "-expand-wrapper");
|
|
239
|
+
oRm.class("sapFDynamicPageTitleExpanded");
|
|
239
240
|
oRm.openEnd();
|
|
240
241
|
oDynamicPageTitleState.expandedContent.forEach(oRm.renderControl, oRm);
|
|
241
242
|
oRm.close("div");
|
|
@@ -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.119.1
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -85,7 +85,7 @@ sap.ui.define([
|
|
|
85
85
|
*
|
|
86
86
|
* <li>Value of <code>2</code> - A 2-column layout will be suggested for logical level 0.</li></ul>
|
|
87
87
|
*
|
|
88
|
-
* @param {string} oSettings.mode
|
|
88
|
+
* @param {string} [oSettings.mode]
|
|
89
89
|
* <b>Deprecated as of version 1.50</b>, use <code>maxColumnsCount</code> param
|
|
90
90
|
* instead.
|
|
91
91
|
*
|
|
@@ -271,7 +271,7 @@ sap.ui.define([
|
|
|
271
271
|
*
|
|
272
272
|
* @typedef {object} sap.f.FlexibleColumnLayoutSemanticHelper.UIState
|
|
273
273
|
*
|
|
274
|
-
* @property {
|
|
274
|
+
* @property {sap.f.LayoutType} [layout]
|
|
275
275
|
* The value of the {@link sap.f.FlexibleColumnLayout#getLayout layout} property.
|
|
276
276
|
* @property {number} [maxColumnsCount]
|
|
277
277
|
* The maximum number of columns that can be displayed at once based on the control width. See {@link sap.f.FlexibleColumnLayout#getMaxColumnsCount}
|
|
@@ -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.119.1
|
|
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.119.1
|
|
69
69
|
*
|
|
70
70
|
* @experimental Since 1.65 This class is experimental. The API may change.
|
|
71
71
|
* @since 1.65
|
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.119.1
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.m.ListBase
|
|
99
99
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
|
@@ -22,7 +22,7 @@ sap.ui.define(['sap/m/PlanningCalendarLegend', 'sap/ui/unified/CalendarLegendIte
|
|
|
22
22
|
* @extends sap.m.PlanningCalendarLegend
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.119.1
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
@@ -33,7 +33,7 @@ sap.ui.define(['sap/m/PlanningCalendarLegend', 'sap/ui/unified/CalendarLegendIte
|
|
|
33
33
|
var PlanningCalendarInCardLegend = PlanningCalendarLegend.extend("sap.f.PlanningCalendarInCardLegend", /** @lends sap.f.PlanningCalendarInCardLegend.prototype */ {
|
|
34
34
|
metadata : {
|
|
35
35
|
|
|
36
|
-
library : "sap.
|
|
36
|
+
library : "sap.f",
|
|
37
37
|
properties: {
|
|
38
38
|
/**
|
|
39
39
|
* Defines the number of visible calendar and appointment items.
|
package/src/sap/f/ShellBar.js
CHANGED
package/src/sap/f/SidePanel.js
CHANGED
|
@@ -149,7 +149,7 @@ sap.ui.define([
|
|
|
149
149
|
* @extends sap.ui.core.Control
|
|
150
150
|
*
|
|
151
151
|
* @author SAP SE
|
|
152
|
-
* @version 1.
|
|
152
|
+
* @version 1.119.1
|
|
153
153
|
*
|
|
154
154
|
* @constructor
|
|
155
155
|
* @public
|
|
@@ -452,6 +452,7 @@ sap.ui.define([
|
|
|
452
452
|
this._attachResizableHandlers();
|
|
453
453
|
|
|
454
454
|
if (!Device.system.phone) {
|
|
455
|
+
this._determineVisibleItems();
|
|
455
456
|
if (!this._isSingleItem() && this._iVisibleItems > 0) {
|
|
456
457
|
this._initItemNavigation();
|
|
457
458
|
}
|
|
@@ -845,15 +846,15 @@ sap.ui.define([
|
|
|
845
846
|
}
|
|
846
847
|
};
|
|
847
848
|
|
|
848
|
-
SidePanel.prototype.
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
849
|
+
SidePanel.prototype._determineVisibleItems = function() {
|
|
850
|
+
var oDomRef = this.getDomRef(),
|
|
851
|
+
oActionBarList = oDomRef && oDomRef.querySelector(".sapFSPActionBarList");
|
|
852
|
+
|
|
853
|
+
if (!oActionBarList) {
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
852
856
|
|
|
853
|
-
var
|
|
854
|
-
bSingleItem = this._isSingleItem(),
|
|
855
|
-
oDomRef = this.getDomRef(),
|
|
856
|
-
oStyle = window.getComputedStyle(oDomRef.querySelector(".sapFSPActionBarList")),
|
|
857
|
+
var oStyle = window.getComputedStyle(oActionBarList),
|
|
857
858
|
iItemsGap = parseInt(oStyle.gap),
|
|
858
859
|
iMarginBottom = parseInt(oStyle.marginBottom),
|
|
859
860
|
iMarginTop = parseInt(oStyle.marginTop),
|
|
@@ -861,17 +862,22 @@ sap.ui.define([
|
|
|
861
862
|
iItemsHeight = oFirstItem && oFirstItem.clientHeight,
|
|
862
863
|
iActionBarHeight;
|
|
863
864
|
|
|
864
|
-
this.
|
|
865
|
+
if (!this._isSingleItem()) {
|
|
866
|
+
iActionBarHeight = oDomRef.querySelector(".sapFSPSideInner").clientHeight - iMarginBottom - iMarginTop;
|
|
867
|
+
this._iVisibleItems = parseInt((iActionBarHeight + iItemsGap) / (iItemsHeight + iItemsGap));
|
|
868
|
+
}
|
|
869
|
+
};
|
|
865
870
|
|
|
866
|
-
|
|
871
|
+
SidePanel.prototype._onResize = function(oEvent) {
|
|
872
|
+
if (!this.getItems().length || Device.system.phone) {
|
|
867
873
|
return;
|
|
868
874
|
}
|
|
869
875
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
this._iVisibleItems = parseInt((iActionBarHeight + iItemsGap) / (iItemsHeight + iItemsGap));
|
|
876
|
+
this._determineVisibleItems();
|
|
877
|
+
if (!this._isSingleItem() && this._iVisibleItems > 0) {
|
|
873
878
|
this._initItemNavigation();
|
|
874
879
|
}
|
|
880
|
+
|
|
875
881
|
if (this._getSideContentExpanded()) {
|
|
876
882
|
this._fixSidePanelWidth();
|
|
877
883
|
}
|
|
@@ -1290,20 +1296,18 @@ sap.ui.define([
|
|
|
1290
1296
|
SidePanel.prototype._onTouchStart = function(oEvent) {
|
|
1291
1297
|
oEvent.preventDefault();
|
|
1292
1298
|
if (oEvent.button === 0 || oEvent.type === "touchstart") {
|
|
1293
|
-
|
|
1299
|
+
if ((Device.system.desktop || Device.system.combi) &&
|
|
1300
|
+
!(Device.system.tablet || Device.system.phone)){
|
|
1301
|
+
this.getDomRef().querySelector(".sapFSPSplitterBar").focus();
|
|
1302
|
+
}
|
|
1294
1303
|
this._bResizeStarted = true;
|
|
1295
1304
|
this._iStartPositionX = oEvent.touches ? oEvent.touches[0].pageX : oEvent.pageX;
|
|
1296
1305
|
}
|
|
1297
1306
|
};
|
|
1298
1307
|
|
|
1299
1308
|
SidePanel.prototype._onTouchEnd = function(oEvent) {
|
|
1300
|
-
var oDomRef = this.getDomRef(),
|
|
1301
|
-
oSplitter = oDomRef && oDomRef.querySelector(".sapFSPSplitterBar");
|
|
1302
|
-
|
|
1303
1309
|
this._bResizeStarted && oEvent.preventDefault();
|
|
1304
1310
|
this._bResizeStarted = false;
|
|
1305
|
-
|
|
1306
|
-
oSplitter && oSplitter.classList.remove("sapFSPSplitterActive");
|
|
1307
1311
|
};
|
|
1308
1312
|
|
|
1309
1313
|
SidePanel.prototype._onTouchMove = function(oEvent) {
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @abstract
|
|
43
43
|
*
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.119.1
|
|
46
46
|
*
|
|
47
47
|
* @constructor
|
|
48
48
|
* @public
|
|
@@ -352,6 +352,16 @@ sap.ui.define([
|
|
|
352
352
|
return this.hasListeners("press") ? this._oRb.getText("ARIA_ROLEDESCRIPTION_INTERACTIVE_CARD_HEADER") : this._oRb.getText("ARIA_ROLEDESCRIPTION_CARD_HEADER");
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Gets the ids of the banner lines to be used in aria-labelledby
|
|
357
|
+
* @returns {string} The ids of the banner lines.
|
|
358
|
+
*/
|
|
359
|
+
BaseHeader.prototype._getBannerLinesIds = function () {
|
|
360
|
+
return this.getBannerLines().map((oBannerLine) => {
|
|
361
|
+
return oBannerLine.getId();
|
|
362
|
+
}).join(" ");
|
|
363
|
+
};
|
|
364
|
+
|
|
355
365
|
/**
|
|
356
366
|
* Returns if the control is inside a sap.f.GridContainer
|
|
357
367
|
*
|
|
@@ -22,9 +22,10 @@ sap.ui.define([
|
|
|
22
22
|
) {
|
|
23
23
|
"use strict";
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const AvatarShape = mLibrary.AvatarShape;
|
|
26
|
+
const AvatarColor = mLibrary.AvatarColor;
|
|
27
|
+
const AvatarImageFitType = mLibrary.AvatarImageFitType;
|
|
28
|
+
const AvatarSize = mLibrary.AvatarSize;
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* Constructor for a new <code>Header</code>.
|
|
@@ -47,7 +48,7 @@ sap.ui.define([
|
|
|
47
48
|
* @implements sap.f.cards.IHeader
|
|
48
49
|
*
|
|
49
50
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
51
|
+
* @version 1.119.1
|
|
51
52
|
*
|
|
52
53
|
* @constructor
|
|
53
54
|
* @public
|
|
@@ -121,7 +122,14 @@ sap.ui.define([
|
|
|
121
122
|
*
|
|
122
123
|
* @experimental Since 1.83 this feature is experimental and the API may change.
|
|
123
124
|
*/
|
|
124
|
-
iconVisible: { type: "boolean", defaultValue: true }
|
|
125
|
+
iconVisible: { type: "boolean", defaultValue: true },
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Defines the size of the icon.
|
|
129
|
+
*
|
|
130
|
+
* @experimental Since 1.119 this feature is experimental and the API may change.
|
|
131
|
+
*/
|
|
132
|
+
iconSize: { type: "sap.m.AvatarSize", defaultValue: AvatarSize.S }
|
|
125
133
|
},
|
|
126
134
|
aggregations: {
|
|
127
135
|
|
|
@@ -230,13 +238,13 @@ sap.ui.define([
|
|
|
230
238
|
.setText(this.getSubtitle())
|
|
231
239
|
.setMaxLines(this.getSubtitleMaxLines());
|
|
232
240
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
this._getAvatar()
|
|
242
|
+
.setDisplayShape(this.getIconDisplayShape())
|
|
243
|
+
.setSrc(this.getIconSrc())
|
|
244
|
+
.setInitials(this.getIconInitials())
|
|
245
|
+
.setTooltip(this.getIconAlt())
|
|
246
|
+
.setBackgroundColor(this.getIconBackgroundColor())
|
|
247
|
+
.setDisplaySize(this.getIconSize());
|
|
240
248
|
};
|
|
241
249
|
|
|
242
250
|
/**
|
|
@@ -271,38 +279,31 @@ sap.ui.define([
|
|
|
271
279
|
* @returns {string} IDs of controls
|
|
272
280
|
*/
|
|
273
281
|
Header.prototype._getAriaLabelledBy = function () {
|
|
274
|
-
|
|
275
|
-
sTitleId = "",
|
|
276
|
-
sSubtitleId = "",
|
|
277
|
-
sStatusTextId = "",
|
|
278
|
-
sAvatarId = "",
|
|
279
|
-
sIds;
|
|
282
|
+
const aIds = [];
|
|
280
283
|
|
|
281
284
|
if (this.getParent() && this.getParent()._ariaText) {
|
|
282
|
-
|
|
285
|
+
aIds.push(this.getParent()._ariaText.getId());
|
|
283
286
|
}
|
|
284
287
|
|
|
285
288
|
if (this.getTitle()) {
|
|
286
|
-
|
|
289
|
+
aIds.push(this._getTitle().getId());
|
|
287
290
|
}
|
|
288
291
|
|
|
289
292
|
if (this.getSubtitle()) {
|
|
290
|
-
|
|
293
|
+
aIds.push(this._getSubtitle().getId());
|
|
291
294
|
}
|
|
292
295
|
|
|
293
296
|
if (this.getStatusText()) {
|
|
294
|
-
|
|
297
|
+
aIds.push(this.getId() + "-status");
|
|
295
298
|
}
|
|
296
299
|
|
|
297
300
|
if (this.getIconSrc() || this.getIconInitials()) {
|
|
298
|
-
|
|
301
|
+
aIds.push(this.getId() + "-ariaAvatarText");
|
|
299
302
|
}
|
|
300
303
|
|
|
301
|
-
|
|
304
|
+
aIds.push(this._getBannerLinesIds());
|
|
302
305
|
|
|
303
|
-
|
|
304
|
-
// and merge consecutive spaces into one
|
|
305
|
-
return sIds.replace(/ {2,}/g, ' ').trim();
|
|
306
|
+
return aIds.filter((sElement) => { return !!sElement; }).join(" ");
|
|
306
307
|
};
|
|
307
308
|
|
|
308
309
|
Header.prototype.isLoading = function () {
|