@openui5/sap.f 1.140.0 → 1.141.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 +22 -6
- 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 +6 -5
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForTablet.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 +1 -1
- package/src/sap/f/cards/BaseHeaderRenderer.js +26 -4
- package/src/sap/f/cards/Header.js +61 -13
- package/src/sap/f/cards/NumericHeader.js +4 -2
- package/src/sap/f/cards/NumericHeaderRenderer.js +1 -1
- 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 +3 -3
- package/src/sap/f/messagebundle_da.properties +2 -2
- package/src/sap/f/messagebundle_pt.properties +1 -1
- 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/CardHeaders.less +24 -2
|
@@ -7,18 +7,22 @@ sap.ui.define([
|
|
|
7
7
|
"./BaseHeader",
|
|
8
8
|
"sap/m/library",
|
|
9
9
|
"sap/f/library",
|
|
10
|
+
"sap/ui/core/library",
|
|
10
11
|
"sap/m/Text",
|
|
11
12
|
"sap/m/Avatar",
|
|
12
13
|
"sap/f/cards/HeaderRenderer",
|
|
13
|
-
"sap/ui/core/InvisibleText"
|
|
14
|
+
"sap/ui/core/InvisibleText",
|
|
15
|
+
"sap/base/Log"
|
|
14
16
|
], function (
|
|
15
17
|
BaseHeader,
|
|
16
18
|
mLibrary,
|
|
17
19
|
library,
|
|
20
|
+
coreLibrary,
|
|
18
21
|
Text,
|
|
19
22
|
Avatar,
|
|
20
23
|
HeaderRenderer,
|
|
21
|
-
InvisibleText
|
|
24
|
+
InvisibleText,
|
|
25
|
+
Log
|
|
22
26
|
) {
|
|
23
27
|
"use strict";
|
|
24
28
|
|
|
@@ -26,6 +30,7 @@ sap.ui.define([
|
|
|
26
30
|
const AvatarColor = mLibrary.AvatarColor;
|
|
27
31
|
const AvatarImageFitType = mLibrary.AvatarImageFitType;
|
|
28
32
|
const AvatarSize = mLibrary.AvatarSize;
|
|
33
|
+
const ValueState = coreLibrary.ValueState;
|
|
29
34
|
|
|
30
35
|
/**
|
|
31
36
|
* Constructor for a new <code>Header</code>.
|
|
@@ -48,7 +53,7 @@ sap.ui.define([
|
|
|
48
53
|
* @implements sap.f.cards.IHeader
|
|
49
54
|
*
|
|
50
55
|
* @author SAP SE
|
|
51
|
-
* @version 1.
|
|
56
|
+
* @version 1.141.1
|
|
52
57
|
*
|
|
53
58
|
* @constructor
|
|
54
59
|
* @public
|
|
@@ -136,7 +141,14 @@ sap.ui.define([
|
|
|
136
141
|
*
|
|
137
142
|
* @since 1.130
|
|
138
143
|
*/
|
|
139
|
-
iconFitType: { type: "sap.m.AvatarImageFitType", defaultValue: AvatarImageFitType.Cover }
|
|
144
|
+
iconFitType: { type: "sap.m.AvatarImageFitType", defaultValue: AvatarImageFitType.Cover },
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Defines a status-colored, non-interactive message icon in the icon area.
|
|
148
|
+
*
|
|
149
|
+
* @since 1.141
|
|
150
|
+
*/
|
|
151
|
+
iconState: { type: "sap.ui.core.ValueState", defaultValue: ValueState.None }
|
|
140
152
|
},
|
|
141
153
|
aggregations: {
|
|
142
154
|
|
|
@@ -236,14 +248,50 @@ sap.ui.define([
|
|
|
236
248
|
|
|
237
249
|
this._enhanceText(this._getSubtitle());
|
|
238
250
|
|
|
239
|
-
this.
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
251
|
+
if (this.getIconState() != ValueState.None) {
|
|
252
|
+
const icon = this._getIconForState();
|
|
253
|
+
this._getAvatar()
|
|
254
|
+
.setSrc(icon)
|
|
255
|
+
.setTooltip(this.getIconAlt());
|
|
256
|
+
} else {
|
|
257
|
+
this._getAvatar()
|
|
258
|
+
.setDisplayShape(this.getIconDisplayShape())
|
|
259
|
+
.setSrc(this.getIconSrc())
|
|
260
|
+
.setInitials(this.getIconInitials())
|
|
261
|
+
.setTooltip(this.getIconAlt())
|
|
262
|
+
.setBackgroundColor(this.getIconBackgroundColor())
|
|
263
|
+
.setDisplaySize(this.getIconSize())
|
|
264
|
+
.setImageFitType(this.getIconFitType());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
this._validateIconProperties();
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Helper function used to get the appropriate icon for the state.
|
|
272
|
+
*
|
|
273
|
+
* @private
|
|
274
|
+
* @returns {string} The URI of the icon corresponding to the state.
|
|
275
|
+
*/
|
|
276
|
+
Header.prototype._getIconForState = function () {
|
|
277
|
+
switch (this.getIconState()) {
|
|
278
|
+
case ValueState.Success:
|
|
279
|
+
return "sap-icon://sys-enter-2";
|
|
280
|
+
case ValueState.Error:
|
|
281
|
+
return "sap-icon://error";
|
|
282
|
+
case ValueState.Warning:
|
|
283
|
+
return "sap-icon://warning";
|
|
284
|
+
case ValueState.Information:
|
|
285
|
+
return "sap-icon://information";
|
|
286
|
+
default:
|
|
287
|
+
return "";
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
Header.prototype._validateIconProperties = function () {
|
|
292
|
+
if ((this.getIconSrc() || this.getIconInitials()) && this.getIconState() != ValueState.None) {
|
|
293
|
+
Log.warning("Invalid Icon configuration: You cannot set an icon with both src/initials and a state simultaneously. The Icon supports only one at a time. Remove either the src/initials or the state.");
|
|
294
|
+
}
|
|
247
295
|
};
|
|
248
296
|
|
|
249
297
|
/**
|
|
@@ -300,7 +348,7 @@ sap.ui.define([
|
|
|
300
348
|
aIds.push(this.getId() + "-dataTimestamp");
|
|
301
349
|
}
|
|
302
350
|
|
|
303
|
-
if (this.getIconSrc() || this.getIconInitials()) {
|
|
351
|
+
if (this.getIconSrc() || this.getIconInitials() || this.getIconState() !== ValueState.None) {
|
|
304
352
|
aIds.push(this._getAvatar().getId());
|
|
305
353
|
}
|
|
306
354
|
|
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
* @implements sap.f.cards.IHeader
|
|
59
59
|
*
|
|
60
60
|
* @author SAP SE
|
|
61
|
-
* @version 1.
|
|
61
|
+
* @version 1.141.1
|
|
62
62
|
*
|
|
63
63
|
* @constructor
|
|
64
64
|
* @public
|
|
@@ -531,7 +531,9 @@ sap.ui.define([
|
|
|
531
531
|
aIds.push(this.getId() + "-dataTimestamp");
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
|
|
534
|
+
if (this.getAggregation("_unitOfMeasurement").getText()) {
|
|
535
|
+
aIds.push(this._getUnitOfMeasurement().getId());
|
|
536
|
+
}
|
|
535
537
|
|
|
536
538
|
if (this.getIconSrc() || this.getIconInitials()) {
|
|
537
539
|
aIds.push(this._getAvatar().getId());
|
package/src/sap/f/library.js
CHANGED
|
@@ -39,14 +39,14 @@ sap.ui.define([
|
|
|
39
39
|
* @namespace
|
|
40
40
|
* @alias sap.f
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.141.1
|
|
43
43
|
* @since 1.44
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
46
|
var thisLib = Library.init({
|
|
47
47
|
apiVersion: 2,
|
|
48
48
|
name : "sap.f",
|
|
49
|
-
version: "1.
|
|
49
|
+
version: "1.141.1",
|
|
50
50
|
dependencies : ["sap.ui.core", "sap.m", "sap.ui.layout"],
|
|
51
51
|
designtime: "sap/f/designtime/library.designtime",
|
|
52
52
|
...{
|
|
@@ -214,7 +214,7 @@ sap.ui.define([
|
|
|
214
214
|
* Layouts, representing the number of columns to be displayed and their relative widths for a {@link sap.f.FlexibleColumnLayout} control.
|
|
215
215
|
*
|
|
216
216
|
* Each layout has a default predefined ratio for the three columns, depending on device size. Based on the device and layout, some columns are hidden.
|
|
217
|
-
* For more information, refer to the ratios (in %) for each value, listed below: (
|
|
217
|
+
* For more information, refer to the ratios (in %) for each value, listed below: (hyphen "-" means non-accessible columns).
|
|
218
218
|
*
|
|
219
219
|
* <b>Notes:</b>
|
|
220
220
|
* <ul>
|
|
@@ -9,7 +9,7 @@ EXPANDED_HEADER=Ekspanderet top
|
|
|
9
9
|
|
|
10
10
|
SNAPPED_HEADER=Komprimeret top
|
|
11
11
|
|
|
12
|
-
PIN_HEADER=S\u00E6t
|
|
12
|
+
PIN_HEADER=S\u00E6t sidehoved fast
|
|
13
13
|
|
|
14
14
|
DEFAULT_HEADER_TEXT=Top
|
|
15
15
|
|
|
@@ -35,7 +35,7 @@ FCL_LAST_COLUMN_EXPANDED_MESSAGE=Sidste kolonne ekspanderet
|
|
|
35
35
|
|
|
36
36
|
FCL_SEPARATOR_MOVE=Tryk p\u00E5 de relevante piletaster for at flytte
|
|
37
37
|
|
|
38
|
-
COLLAPSE_HEADER_BUTTON_TOOLTIP=Komprimer
|
|
38
|
+
COLLAPSE_HEADER_BUTTON_TOOLTIP=Komprimer sidehoved
|
|
39
39
|
|
|
40
40
|
EXPAND_HEADER_BUTTON_TOOLTIP=Ekspander top
|
|
41
41
|
|