@openui5/sap.f 1.121.0 → 1.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +1 -1
- 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 +23 -4
- 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 +1 -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/FlexibleColumnLayout.js +39 -5
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +3 -2
- 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 -3
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +42 -7
- package/src/sap/f/cards/Header.js +10 -4
- package/src/sap/f/cards/NumericHeader.js +15 -4
- package/src/sap/f/cards/NumericIndicators.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +35 -4
- 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 -3
- package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
- package/src/sap/f/cards/util/addTooltipIfTruncated.js +44 -0
- 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/designtime/GridContainer.designtime.js +34 -0
- package/src/sap/f/designtime/messagebundle.properties +7 -1
- package/src/sap/f/designtime/messagebundle_ar.properties +4 -0
- package/src/sap/f/designtime/messagebundle_bg.properties +7 -3
- package/src/sap/f/designtime/messagebundle_ca.properties +4 -0
- package/src/sap/f/designtime/messagebundle_cnr.properties +4 -0
- package/src/sap/f/designtime/messagebundle_cs.properties +7 -3
- package/src/sap/f/designtime/messagebundle_cy.properties +8 -4
- package/src/sap/f/designtime/messagebundle_da.properties +4 -0
- package/src/sap/f/designtime/messagebundle_de.properties +4 -0
- package/src/sap/f/designtime/messagebundle_el.properties +8 -4
- package/src/sap/f/designtime/messagebundle_en.properties +8 -4
- package/src/sap/f/designtime/messagebundle_en_GB.properties +8 -4
- package/src/sap/f/designtime/messagebundle_es.properties +4 -0
- package/src/sap/f/designtime/messagebundle_es_MX.properties +4 -0
- package/src/sap/f/designtime/messagebundle_et.properties +4 -0
- package/src/sap/f/designtime/messagebundle_fi.properties +4 -0
- package/src/sap/f/designtime/messagebundle_fr.properties +4 -0
- package/src/sap/f/designtime/messagebundle_fr_CA.properties +4 -0
- package/src/sap/f/designtime/messagebundle_hi.properties +6 -2
- package/src/sap/f/designtime/messagebundle_hr.properties +4 -0
- package/src/sap/f/designtime/messagebundle_hu.properties +6 -2
- package/src/sap/f/designtime/messagebundle_id.properties +8 -4
- package/src/sap/f/designtime/messagebundle_it.properties +4 -0
- package/src/sap/f/designtime/messagebundle_iw.properties +4 -0
- package/src/sap/f/designtime/messagebundle_ja.properties +4 -0
- package/src/sap/f/designtime/messagebundle_kk.properties +6 -2
- package/src/sap/f/designtime/messagebundle_ko.properties +4 -0
- package/src/sap/f/designtime/messagebundle_lt.properties +4 -0
- package/src/sap/f/designtime/messagebundle_lv.properties +5 -1
- package/src/sap/f/designtime/messagebundle_mk.properties +6 -2
- package/src/sap/f/designtime/messagebundle_ms.properties +8 -4
- package/src/sap/f/designtime/messagebundle_nl.properties +4 -0
- package/src/sap/f/designtime/messagebundle_no.properties +4 -0
- package/src/sap/f/designtime/messagebundle_pl.properties +4 -0
- package/src/sap/f/designtime/messagebundle_pt.properties +5 -1
- package/src/sap/f/designtime/messagebundle_pt_PT.properties +4 -0
- package/src/sap/f/designtime/messagebundle_ro.properties +4 -0
- package/src/sap/f/designtime/messagebundle_ru.properties +8 -4
- package/src/sap/f/designtime/messagebundle_sh.properties +4 -0
- package/src/sap/f/designtime/messagebundle_sk.properties +4 -0
- package/src/sap/f/designtime/messagebundle_sl.properties +4 -0
- package/src/sap/f/designtime/messagebundle_sr.properties +4 -0
- package/src/sap/f/designtime/messagebundle_sv.properties +4 -0
- package/src/sap/f/designtime/messagebundle_th.properties +6 -2
- package/src/sap/f/designtime/messagebundle_tr.properties +4 -0
- package/src/sap/f/designtime/messagebundle_uk.properties +7 -3
- package/src/sap/f/designtime/messagebundle_vi.properties +7 -3
- package/src/sap/f/designtime/messagebundle_zh_CN.properties +4 -0
- package/src/sap/f/designtime/messagebundle_zh_TW.properties +4 -0
- package/src/sap/f/dnd/GridDragOver.js +1 -1
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +7 -2
- package/src/sap/f/messagebundle.properties +1 -1
- package/src/sap/f/messagebundle_ar.properties +2 -2
- package/src/sap/f/messagebundle_bg.properties +2 -2
- package/src/sap/f/messagebundle_ca.properties +2 -2
- package/src/sap/f/messagebundle_cnr.properties +2 -2
- package/src/sap/f/messagebundle_cs.properties +2 -2
- package/src/sap/f/messagebundle_cy.properties +2 -2
- package/src/sap/f/messagebundle_da.properties +2 -2
- package/src/sap/f/messagebundle_de.properties +2 -2
- package/src/sap/f/messagebundle_el.properties +2 -2
- package/src/sap/f/messagebundle_en.properties +2 -85
- package/src/sap/f/messagebundle_en_GB.properties +2 -2
- package/src/sap/f/messagebundle_es.properties +2 -2
- package/src/sap/f/messagebundle_es_MX.properties +2 -2
- package/src/sap/f/messagebundle_et.properties +1 -1
- package/src/sap/f/messagebundle_fi.properties +2 -2
- package/src/sap/f/messagebundle_fr.properties +2 -2
- package/src/sap/f/messagebundle_fr_CA.properties +2 -2
- package/src/sap/f/messagebundle_hi.properties +2 -2
- package/src/sap/f/messagebundle_hr.properties +2 -2
- package/src/sap/f/messagebundle_hu.properties +2 -2
- package/src/sap/f/messagebundle_id.properties +2 -2
- package/src/sap/f/messagebundle_it.properties +2 -2
- package/src/sap/f/messagebundle_iw.properties +2 -2
- package/src/sap/f/messagebundle_ja.properties +1 -1
- package/src/sap/f/messagebundle_kk.properties +2 -2
- package/src/sap/f/messagebundle_ko.properties +1 -1
- package/src/sap/f/messagebundle_lt.properties +2 -2
- package/src/sap/f/messagebundle_lv.properties +2 -2
- package/src/sap/f/messagebundle_mk.properties +2 -2
- package/src/sap/f/messagebundle_ms.properties +1 -1
- package/src/sap/f/messagebundle_nl.properties +2 -2
- package/src/sap/f/messagebundle_no.properties +2 -2
- package/src/sap/f/messagebundle_pl.properties +2 -2
- package/src/sap/f/messagebundle_pt.properties +2 -2
- package/src/sap/f/messagebundle_pt_PT.properties +2 -2
- package/src/sap/f/messagebundle_ro.properties +2 -2
- package/src/sap/f/messagebundle_ru.properties +2 -2
- package/src/sap/f/messagebundle_sh.properties +2 -2
- package/src/sap/f/messagebundle_sk.properties +2 -2
- package/src/sap/f/messagebundle_sl.properties +2 -2
- package/src/sap/f/messagebundle_sr.properties +2 -2
- package/src/sap/f/messagebundle_sv.properties +2 -2
- package/src/sap/f/messagebundle_th.properties +2 -2
- package/src/sap/f/messagebundle_tr.properties +2 -2
- package/src/sap/f/messagebundle_uk.properties +3 -3
- package/src/sap/f/messagebundle_vi.properties +2 -2
- package/src/sap/f/messagebundle_zh_CN.properties +1 -1
- package/src/sap/f/messagebundle_zh_TW.properties +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 +1 -0
- package/src/sap/f/themes/base/DynamicPage.less +2 -1
package/THIRDPARTY.txt
CHANGED
|
@@ -461,7 +461,7 @@ License: Apache-2.0
|
|
|
461
461
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
462
462
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
463
463
|
|
|
464
|
-
Component: SAP Theming Base Content, version: 11.
|
|
464
|
+
Component: SAP Theming Base Content, version: 11.12.0
|
|
465
465
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
466
466
|
License: Apache-2.0
|
|
467
467
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.f",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.122.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.f",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.122.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.122.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.122.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
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.122.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
|
@@ -16,8 +16,9 @@ sap.ui.define([
|
|
|
16
16
|
"sap/m/library",
|
|
17
17
|
"sap/ui/core/ResizeHandler",
|
|
18
18
|
"sap/ui/events/KeyCodes",
|
|
19
|
-
"sap/ui/core/Core"
|
|
20
|
-
|
|
19
|
+
"sap/ui/core/Core",
|
|
20
|
+
"sap/ui/core/Theming"
|
|
21
|
+
], function(library, Control, Library, ItemNavigation, Rem, AvatarGroupRenderer, Button, mLibrary, ResizeHandler, KeyCodes, Core, Theming) {
|
|
21
22
|
"use strict";
|
|
22
23
|
|
|
23
24
|
var AvatarGroupType = library.AvatarGroupType;
|
|
@@ -99,7 +100,7 @@ sap.ui.define([
|
|
|
99
100
|
* @extends sap.ui.core.Control
|
|
100
101
|
*
|
|
101
102
|
* @author SAP SE
|
|
102
|
-
* @version 1.
|
|
103
|
+
* @version 1.122.0
|
|
103
104
|
*
|
|
104
105
|
* @constructor
|
|
105
106
|
* @public
|
|
@@ -253,7 +254,7 @@ sap.ui.define([
|
|
|
253
254
|
this._detachResizeHandlers();
|
|
254
255
|
this._attachResizeHandlers();
|
|
255
256
|
|
|
256
|
-
if (
|
|
257
|
+
if (this._isThemeApplied()) {
|
|
257
258
|
this._onResize();
|
|
258
259
|
}
|
|
259
260
|
|
|
@@ -270,6 +271,24 @@ sap.ui.define([
|
|
|
270
271
|
this._updateAccState();
|
|
271
272
|
};
|
|
272
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Informs whether the current theme is fully applied already.
|
|
276
|
+
* Replacement for Core#isThemeApplied.
|
|
277
|
+
* Based on sap/m/table/Util#isThemeApplied
|
|
278
|
+
*
|
|
279
|
+
* @returns {boolean} true if theme is applied
|
|
280
|
+
* @private
|
|
281
|
+
*/
|
|
282
|
+
AvatarGroup.prototype._isThemeApplied = function() {
|
|
283
|
+
var bIsApplied = false;
|
|
284
|
+
var fnOnThemeApplied = function() {
|
|
285
|
+
bIsApplied = true;
|
|
286
|
+
};
|
|
287
|
+
Theming.attachApplied(fnOnThemeApplied); // Will be called immediately when theme is applied
|
|
288
|
+
Theming.detachApplied(fnOnThemeApplied);
|
|
289
|
+
return bIsApplied;
|
|
290
|
+
};
|
|
291
|
+
|
|
273
292
|
AvatarGroup.prototype.onThemeChanged = function () {
|
|
274
293
|
if (!this.getDomRef()) {
|
|
275
294
|
return;
|
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -108,7 +108,7 @@ sap.ui.define([
|
|
|
108
108
|
*
|
|
109
109
|
* @extends sap.ui.core.Control
|
|
110
110
|
* @author SAP SE
|
|
111
|
-
* @version 1.
|
|
111
|
+
* @version 1.122.0
|
|
112
112
|
*
|
|
113
113
|
* @constructor
|
|
114
114
|
* @public
|
|
@@ -1163,7 +1163,8 @@ sap.ui.define([
|
|
|
1163
1163
|
*/
|
|
1164
1164
|
FlexibleColumnLayout.prototype._getVisibleColumnsForLayout = function (sLayout) {
|
|
1165
1165
|
return FlexibleColumnLayout.COLUMN_ORDER.filter(function (sColumn) {
|
|
1166
|
-
|
|
1166
|
+
// Different than 0, as when we are storing the begin column size, it may happen that it's too big, leading to a negative size of the mid column
|
|
1167
|
+
return this._getColumnSizeForLayout(sColumn, sLayout) !== 0;
|
|
1167
1168
|
}, this);
|
|
1168
1169
|
};
|
|
1169
1170
|
|
|
@@ -2000,6 +2001,7 @@ sap.ui.define([
|
|
|
2000
2001
|
|
|
2001
2002
|
if (this._isValidWidthDistributionForLayout(sNewWidthsDistribution, sNewLayout)) {
|
|
2002
2003
|
this._getLocalStorage().put(sNewLayout, sNewWidthsDistribution);
|
|
2004
|
+
this._getLocalStorage().put("begin", oColumnPercentWidths.begin);
|
|
2003
2005
|
}
|
|
2004
2006
|
};
|
|
2005
2007
|
|
|
@@ -2978,7 +2980,9 @@ sap.ui.define([
|
|
|
2978
2980
|
*/
|
|
2979
2981
|
FlexibleColumnLayout.prototype._getColumnWidthDistributionForLayout = function (sLayout, bAsIntArray, iMaxColumnsCount) {
|
|
2980
2982
|
var sColumnWidthDistribution = this._getLocalStorage(iMaxColumnsCount).get(sLayout),
|
|
2981
|
-
|
|
2983
|
+
iBeginWidth = this._getLocalStorage(iMaxColumnsCount).get("begin"),
|
|
2984
|
+
vResult,
|
|
2985
|
+
vResultAsArray;
|
|
2982
2986
|
|
|
2983
2987
|
iMaxColumnsCount || (iMaxColumnsCount = this.getMaxColumnsCount());
|
|
2984
2988
|
|
|
@@ -2993,14 +2997,31 @@ sap.ui.define([
|
|
|
2993
2997
|
vResult = this._getDefaultColumnWidthDistributionForLayout(sLayout, iMaxColumnsCount);
|
|
2994
2998
|
}
|
|
2995
2999
|
|
|
3000
|
+
vResultAsArray = vResult.split("/");
|
|
3001
|
+
|
|
3002
|
+
iBeginWidth = normalizeBeginColumnWidth(iBeginWidth, sLayout);
|
|
3003
|
+
|
|
3004
|
+
// Used stored begin column width, if not fullscreen layout and the begin column should be shown
|
|
3005
|
+
if (iBeginWidth && !this._isFullScreenLayout(sLayout) && parseInt(vResultAsArray[0]) !== 0) {
|
|
3006
|
+
vResultAsArray[0] = iBeginWidth;
|
|
3007
|
+
vResultAsArray = vResultAsArray.map(function (sColumnWidth) {
|
|
3008
|
+
return parseFloat(sColumnWidth);
|
|
3009
|
+
});
|
|
3010
|
+
normalizeColumnPercentWidths(vResultAsArray);
|
|
3011
|
+
}
|
|
3012
|
+
|
|
2996
3013
|
if (bAsIntArray) {
|
|
2997
|
-
vResult =
|
|
3014
|
+
vResult = vResultAsArray.map(function (sColumnWidth) {
|
|
2998
3015
|
return Math.round(parseFloat(sColumnWidth));
|
|
2999
3016
|
});
|
|
3000
3017
|
normalizeColumnPercentWidths(vResult);
|
|
3001
3018
|
}
|
|
3002
3019
|
|
|
3003
|
-
|
|
3020
|
+
if (bAsIntArray) {
|
|
3021
|
+
return vResult;
|
|
3022
|
+
} else {
|
|
3023
|
+
return vResultAsArray.join("/");
|
|
3024
|
+
}
|
|
3004
3025
|
};
|
|
3005
3026
|
|
|
3006
3027
|
/**
|
|
@@ -3407,6 +3428,19 @@ sap.ui.define([
|
|
|
3407
3428
|
}
|
|
3408
3429
|
}
|
|
3409
3430
|
|
|
3431
|
+
/**
|
|
3432
|
+
* Ensures width of begin column is correct for specific layouts
|
|
3433
|
+
*
|
|
3434
|
+
* @param {number} iBeginWidth
|
|
3435
|
+
* @param {string} sLayout
|
|
3436
|
+
*/
|
|
3437
|
+
function normalizeBeginColumnWidth(iBeginWidth, sLayout) {
|
|
3438
|
+
if ((sLayout === LT.ThreeColumnsMidExpanded || sLayout == LT.ThreeColumnsEndExpanded) && Math.floor(iBeginWidth) >= 33) {
|
|
3439
|
+
return 32;
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
return iBeginWidth;
|
|
3443
|
+
}
|
|
3410
3444
|
|
|
3411
3445
|
return FlexibleColumnLayout;
|
|
3412
3446
|
|
|
@@ -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.122.0
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -177,7 +177,7 @@ sap.ui.define([
|
|
|
177
177
|
* @see {@link sap.f.dnd.GridDropInfo}
|
|
178
178
|
*
|
|
179
179
|
* @author SAP SE
|
|
180
|
-
* @version 1.
|
|
180
|
+
* @version 1.122.0
|
|
181
181
|
*
|
|
182
182
|
* @extends sap.ui.core.Control
|
|
183
183
|
*
|
|
@@ -355,7 +355,8 @@ sap.ui.define([
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
dnd: { draggable: false, droppable: true }
|
|
358
|
+
dnd: { draggable: false, droppable: true },
|
|
359
|
+
designtime: "sap/f/designtime/GridContainer.designtime"
|
|
359
360
|
},
|
|
360
361
|
|
|
361
362
|
renderer: GridContainerRenderer
|
|
@@ -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.122.0
|
|
62
62
|
*
|
|
63
63
|
* @extends sap.ui.base.ManagedObject
|
|
64
64
|
*
|
|
65
65
|
* @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.
|
|
68
|
+
* @version 1.122.0
|
|
69
69
|
*
|
|
70
70
|
* @experimental Since 1.65 This class is experimental. The API may change.
|
|
71
71
|
* @since 1.65
|
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.122.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
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/Device",
|
|
10
10
|
"sap/ui/core/Control",
|
|
11
|
-
"sap/ui/core/Core",
|
|
12
11
|
"sap/ui/core/Element",
|
|
13
12
|
"sap/ui/core/Icon",
|
|
14
13
|
"sap/ui/core/Lib",
|
|
@@ -32,7 +31,6 @@ sap.ui.define([
|
|
|
32
31
|
], function(
|
|
33
32
|
Device,
|
|
34
33
|
Control,
|
|
35
|
-
Core,
|
|
36
34
|
Element,
|
|
37
35
|
Icon,
|
|
38
36
|
Library,
|
|
@@ -153,7 +151,7 @@ sap.ui.define([
|
|
|
153
151
|
* @extends sap.ui.core.Control
|
|
154
152
|
*
|
|
155
153
|
* @author SAP SE
|
|
156
|
-
* @version 1.
|
|
154
|
+
* @version 1.122.0
|
|
157
155
|
*
|
|
158
156
|
* @constructor
|
|
159
157
|
* @public
|
|
@@ -10,7 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/core/format/DateFormat",
|
|
11
11
|
"sap/ui/core/date/UniversalDate",
|
|
12
12
|
"sap/ui/core/library",
|
|
13
|
-
"sap/m/
|
|
13
|
+
"sap/m/library",
|
|
14
|
+
"sap/m/Text",
|
|
15
|
+
"sap/f/cards/util/addTooltipIfTruncated"
|
|
14
16
|
], function (
|
|
15
17
|
Control,
|
|
16
18
|
IntervalTrigger,
|
|
@@ -18,18 +20,22 @@ sap.ui.define([
|
|
|
18
20
|
DateFormat,
|
|
19
21
|
UniversalDate,
|
|
20
22
|
coreLibrary,
|
|
21
|
-
|
|
23
|
+
mLibrary,
|
|
24
|
+
Text,
|
|
25
|
+
addTooltipIfTruncated
|
|
22
26
|
) {
|
|
23
27
|
"use strict";
|
|
24
28
|
|
|
25
29
|
/**
|
|
26
30
|
* @const int The refresh interval for dataTimestamp in ms.
|
|
27
31
|
*/
|
|
28
|
-
|
|
32
|
+
const DATA_TIMESTAMP_REFRESH_INTERVAL = 60000;
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
const oResourceBundle = Library.getResourceBundleFor("sap.f");
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
const TextAlign = coreLibrary.TextAlign;
|
|
37
|
+
|
|
38
|
+
const WrappingType = mLibrary.WrappingType;
|
|
33
39
|
|
|
34
40
|
/**
|
|
35
41
|
* Constructor for a new <code>BaseHeader</code>.
|
|
@@ -44,7 +50,7 @@ sap.ui.define([
|
|
|
44
50
|
* @abstract
|
|
45
51
|
*
|
|
46
52
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
53
|
+
* @version 1.122.0
|
|
48
54
|
*
|
|
49
55
|
* @constructor
|
|
50
56
|
* @public
|
|
@@ -99,7 +105,20 @@ sap.ui.define([
|
|
|
99
105
|
*
|
|
100
106
|
* @private
|
|
101
107
|
*/
|
|
102
|
-
headingLevel: { type: "string", visibility: "hidden", defaultValue: "3"}
|
|
108
|
+
headingLevel: { type: "string", visibility: "hidden", defaultValue: "3"},
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Defines the type of text wrapping to be used inside the header. This applies to title, subtitle and details texts of the header.
|
|
112
|
+
* @public
|
|
113
|
+
* @experimental Since 1.122 this feature is experimental and the API may change.
|
|
114
|
+
*/
|
|
115
|
+
wrappingType : {type: "sap.m.WrappingType", group : "Appearance", defaultValue : WrappingType.Normal},
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Defines if tooltips should be shown for truncated texts.
|
|
119
|
+
* @private
|
|
120
|
+
*/
|
|
121
|
+
useTooltips: { type: "boolean", visibility: "hidden", defaultValue: false}
|
|
103
122
|
},
|
|
104
123
|
aggregations: {
|
|
105
124
|
/**
|
|
@@ -160,6 +179,7 @@ sap.ui.define([
|
|
|
160
179
|
if (aBannerLines) {
|
|
161
180
|
aBannerLines.forEach((oText) => {
|
|
162
181
|
oText.setTextAlign(TextAlign.End);
|
|
182
|
+
oText.setWrapping(false);
|
|
163
183
|
});
|
|
164
184
|
}
|
|
165
185
|
};
|
|
@@ -170,6 +190,10 @@ sap.ui.define([
|
|
|
170
190
|
if (oToolbar) {
|
|
171
191
|
oToolbar.addEventDelegate(this._oToolbarDelegate, this);
|
|
172
192
|
}
|
|
193
|
+
|
|
194
|
+
this.getBannerLines()?.forEach((oText) => {
|
|
195
|
+
this._enhanceText(oText);
|
|
196
|
+
});
|
|
173
197
|
};
|
|
174
198
|
|
|
175
199
|
BaseHeader.prototype.getFocusDomRef = function () {
|
|
@@ -403,5 +427,16 @@ sap.ui.define([
|
|
|
403
427
|
return oToolbar && oToolbar.getDomRef() && oToolbar.getDomRef().contains(oElement);
|
|
404
428
|
};
|
|
405
429
|
|
|
430
|
+
/**
|
|
431
|
+
* When the option <code>useTooltips</code> is set to <code>true</code> - enhances the given text with a tooltip if the text is truncated.
|
|
432
|
+
* @private
|
|
433
|
+
* @param {sap.m.Text} oText The text control.
|
|
434
|
+
*/
|
|
435
|
+
BaseHeader.prototype._enhanceText = function (oText) {
|
|
436
|
+
if (this.getProperty("useTooltips")) {
|
|
437
|
+
addTooltipIfTruncated(oText);
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
|
|
406
441
|
return BaseHeader;
|
|
407
442
|
});
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
* @implements sap.f.cards.IHeader
|
|
49
49
|
*
|
|
50
50
|
* @author SAP SE
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.122.0
|
|
52
52
|
*
|
|
53
53
|
* @constructor
|
|
54
54
|
* @public
|
|
@@ -201,7 +201,7 @@ sap.ui.define([
|
|
|
201
201
|
Header.prototype._getSubtitle = function () {
|
|
202
202
|
var oSubtitle = this.getAggregation("_subtitle");
|
|
203
203
|
if (!oSubtitle) {
|
|
204
|
-
oSubtitle = new Text().addStyleClass("sapFCardSubtitle");
|
|
204
|
+
oSubtitle = new Text(this.getId() + "-subtitle").addStyleClass("sapFCardSubtitle");
|
|
205
205
|
this.setAggregation("_subtitle", oSubtitle);
|
|
206
206
|
}
|
|
207
207
|
return oSubtitle;
|
|
@@ -232,11 +232,17 @@ sap.ui.define([
|
|
|
232
232
|
|
|
233
233
|
this._getTitle()
|
|
234
234
|
.setText(this.getTitle())
|
|
235
|
-
.setMaxLines(this.getTitleMaxLines())
|
|
235
|
+
.setMaxLines(this.getTitleMaxLines())
|
|
236
|
+
.setWrappingType(this.getWrappingType());
|
|
237
|
+
|
|
238
|
+
this._enhanceText(this._getTitle());
|
|
236
239
|
|
|
237
240
|
this._getSubtitle()
|
|
238
241
|
.setText(this.getSubtitle())
|
|
239
|
-
.setMaxLines(this.getSubtitleMaxLines())
|
|
242
|
+
.setMaxLines(this.getSubtitleMaxLines())
|
|
243
|
+
.setWrappingType(this.getWrappingType());
|
|
244
|
+
|
|
245
|
+
this._enhanceText(this._getSubtitle());
|
|
240
246
|
|
|
241
247
|
this._getAvatar()
|
|
242
248
|
.setDisplayShape(this.getIconDisplayShape())
|