@openui5/sap.f 1.112.2 → 1.114.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 +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 +17 -8
- 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 +41 -17
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/SidePanelRenderer.js +15 -3
- package/src/sap/f/cards/BaseHeader.js +2 -2
- package/src/sap/f/cards/Header.js +2 -2
- package/src/sap/f/cards/HeaderRenderer.js +0 -4
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericHeaderRenderer.js +0 -4
- 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/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 +24 -2
- package/src/sap/f/messagebundle_bg.properties +2 -2
- package/src/sap/f/messagebundle_de.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 +4 -3
- 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/CardLoading.less +1 -1
- package/src/sap/f/themes/base/DynamicPage.less +0 -3
- package/src/sap/f/themes/base/DynamicPageTitle.less +1 -0
- package/src/sap/f/themes/base/SidePanel.less +47 -1
package/THIRDPARTY.txt
CHANGED
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.3.0
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.114.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.114.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.114.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.114.0"
|
|
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.114.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
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -17,6 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
"sap/ui/core/delegate/ScrollEnablement",
|
|
18
18
|
"sap/ui/Device",
|
|
19
19
|
"sap/ui/base/ManagedObject",
|
|
20
|
+
"sap/ui/dom/getScrollbarSize",
|
|
20
21
|
"sap/f/DynamicPageTitle",
|
|
21
22
|
"sap/f/DynamicPageHeader",
|
|
22
23
|
"./DynamicPageRenderer",
|
|
@@ -35,6 +36,7 @@ sap.ui.define([
|
|
|
35
36
|
ScrollEnablement,
|
|
36
37
|
Device,
|
|
37
38
|
ManagedObject,
|
|
39
|
+
getScrollbarSize,
|
|
38
40
|
DynamicPageTitle,
|
|
39
41
|
DynamicPageHeader,
|
|
40
42
|
DynamicPageRenderer,
|
|
@@ -110,7 +112,7 @@ sap.ui.define([
|
|
|
110
112
|
* @extends sap.ui.core.Control
|
|
111
113
|
*
|
|
112
114
|
* @author SAP SE
|
|
113
|
-
* @version 1.
|
|
115
|
+
* @version 1.114.0
|
|
114
116
|
*
|
|
115
117
|
* @constructor
|
|
116
118
|
* @public
|
|
@@ -1332,7 +1334,9 @@ sap.ui.define([
|
|
|
1332
1334
|
var bScrollBarNeeded = this._needsVerticalScrollBar(),
|
|
1333
1335
|
oWrapperElement = this.$wrapper.get(0),
|
|
1334
1336
|
iTitleHeight = this.$titleArea.get(0).getBoundingClientRect().height,
|
|
1335
|
-
iTitleWidth = this._getTitleAreaWidth()
|
|
1337
|
+
iTitleWidth = this._getTitleAreaWidth(),
|
|
1338
|
+
iScrollbarWidth = getScrollbarSize().width,
|
|
1339
|
+
sClipPath;
|
|
1336
1340
|
|
|
1337
1341
|
// the top area of the scroll container is reserved for showing the title element,
|
|
1338
1342
|
// (where the title element is positioned absolutely on top of the scroll container),
|
|
@@ -1346,9 +1350,16 @@ sap.ui.define([
|
|
|
1346
1350
|
// (2) also make the area underneath the title invisible (using clip-path)
|
|
1347
1351
|
// to allow usage of *transparent background* of the title element
|
|
1348
1352
|
// (otherwise content from the scroll *overflow* will show underneath the transparent title element)
|
|
1349
|
-
|
|
1353
|
+
sClipPath = 'polygon(0px ' + Math.floor(iTitleHeight) + 'px, '
|
|
1350
1354
|
+ iTitleWidth + 'px ' + Math.floor(iTitleHeight) + 'px, '
|
|
1351
|
-
+ iTitleWidth + 'px 0, 100% 0, 100% 100%, 0 100%)';
|
|
1355
|
+
+ iTitleWidth + 'px 0, 100% 0, 100% 100%, 0 100%)'; //
|
|
1356
|
+
|
|
1357
|
+
if (Core.getConfiguration().getRTL()) {
|
|
1358
|
+
sClipPath = 'polygon(0px 0px, ' + iScrollbarWidth + 'px 0px, '
|
|
1359
|
+
+ iScrollbarWidth + 'px ' + iTitleHeight + 'px, 100% '
|
|
1360
|
+
+ iTitleHeight + 'px, 100% 100%, 0 100%)';
|
|
1361
|
+
}
|
|
1362
|
+
oWrapperElement.style.clipPath = sClipPath;
|
|
1352
1363
|
|
|
1353
1364
|
this.toggleStyleClass("sapFDynamicPageWithScroll", bScrollBarNeeded);
|
|
1354
1365
|
|
|
@@ -1356,11 +1367,9 @@ sap.ui.define([
|
|
|
1356
1367
|
};
|
|
1357
1368
|
|
|
1358
1369
|
DynamicPage.prototype._updateFitContainer = function (bNeedsVerticalScrollBar) {
|
|
1359
|
-
var bNoScrollBar = typeof bNeedsVerticalScrollBar !== 'undefined' ? !bNeedsVerticalScrollBar : !this._needsVerticalScrollBar()
|
|
1360
|
-
bFitContent = this.getFitContent(),
|
|
1361
|
-
bToggleClass = bFitContent || bNoScrollBar;
|
|
1370
|
+
var bNoScrollBar = typeof bNeedsVerticalScrollBar !== 'undefined' ? !bNeedsVerticalScrollBar : !this._needsVerticalScrollBar();
|
|
1362
1371
|
|
|
1363
|
-
this.$contentFitContainer.toggleClass("sapFDynamicPageContentFitContainer",
|
|
1372
|
+
this.$contentFitContainer.toggleClass("sapFDynamicPageContentFitContainer", bNoScrollBar);
|
|
1364
1373
|
};
|
|
1365
1374
|
|
|
1366
1375
|
/**
|
|
@@ -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.114.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.114.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.114.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.114.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
|
@@ -22,6 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
"sap/ui/core/InvisibleMessage",
|
|
23
23
|
"./SidePanelItem",
|
|
24
24
|
"./SidePanelRenderer",
|
|
25
|
+
"./library",
|
|
25
26
|
"sap/ui/core/library",
|
|
26
27
|
"sap/ui/events/F6Navigation",
|
|
27
28
|
"sap/ui/thirdparty/jquery",
|
|
@@ -43,6 +44,7 @@ sap.ui.define([
|
|
|
43
44
|
InvisibleMessage,
|
|
44
45
|
SidePanelItem,
|
|
45
46
|
SidePanelRenderer,
|
|
47
|
+
library,
|
|
46
48
|
coreLibrary,
|
|
47
49
|
F6Navigation,
|
|
48
50
|
jQuery,
|
|
@@ -52,7 +54,8 @@ sap.ui.define([
|
|
|
52
54
|
|
|
53
55
|
// Resource Bundle
|
|
54
56
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.f"),
|
|
55
|
-
InvisibleMessageMode = coreLibrary.InvisibleMessageMode
|
|
57
|
+
InvisibleMessageMode = coreLibrary.InvisibleMessageMode,
|
|
58
|
+
SidePanelPosition = library.SidePanelPosition;
|
|
56
59
|
|
|
57
60
|
// Resize positions
|
|
58
61
|
var SIDE_PANEL_POSITION_MIN_WIDTH = 0, // Minimum width
|
|
@@ -146,7 +149,7 @@ sap.ui.define([
|
|
|
146
149
|
* @extends sap.ui.core.Control
|
|
147
150
|
*
|
|
148
151
|
* @author SAP SE
|
|
149
|
-
* @version 1.
|
|
152
|
+
* @version 1.114.0
|
|
150
153
|
*
|
|
151
154
|
* @constructor
|
|
152
155
|
* @public
|
|
@@ -218,7 +221,12 @@ sap.ui.define([
|
|
|
218
221
|
* Determines whether the side content is visible or hidden.
|
|
219
222
|
* @private
|
|
220
223
|
*/
|
|
221
|
-
sideContentExpanded: { type: "boolean", group: "Appearance", defaultValue: false, visibility: "hidden" }
|
|
224
|
+
sideContentExpanded: { type: "boolean", group: "Appearance", defaultValue: false, visibility: "hidden" },
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Defines where to place the side panel position.
|
|
228
|
+
*/
|
|
229
|
+
sidePanelPosition: {type: "sap.f.SidePanelPosition", group: "Appearance", defaultValue: SidePanelPosition.Right}
|
|
222
230
|
},
|
|
223
231
|
aggregations: {
|
|
224
232
|
/**
|
|
@@ -395,7 +403,7 @@ sap.ui.define([
|
|
|
395
403
|
if (!sId) {
|
|
396
404
|
// remove selected action item (if any) and collapse its side content
|
|
397
405
|
sSelectedItem && this._toggleItemSelection(Core.byId(sSelectedItem));
|
|
398
|
-
} else if (oItem && sId !== sSelectedItem && sId !== this.getAggregation("_overflowItem").getId()) {
|
|
406
|
+
} else if (oItem && oItem.getEnabled() && sId !== sSelectedItem && sId !== this.getAggregation("_overflowItem").getId()) {
|
|
399
407
|
// select an action item and expand its side content
|
|
400
408
|
this._toggleItemSelection(oItem);
|
|
401
409
|
this.setAssociation("selectedItem", oItem, true);
|
|
@@ -408,7 +416,13 @@ sap.ui.define([
|
|
|
408
416
|
var oExpandCollapseButton = this.getAggregation("_arrowButton"),
|
|
409
417
|
bActionBarExpanded = this.getActionBarExpanded(),
|
|
410
418
|
sTooltip = bActionBarExpanded ? oResourceBundle.getText("SIDEPANEL_COLLAPSE_BUTTON_TEXT") : oResourceBundle.getText("SIDEPANEL_EXPAND_BUTTON_TEXT"),
|
|
411
|
-
sNextArrow
|
|
419
|
+
sNextArrow;
|
|
420
|
+
|
|
421
|
+
if (SidePanelPosition.Right === this.getSidePanelPosition()) {
|
|
422
|
+
sNextArrow = bActionBarExpanded ? "right" : "left";
|
|
423
|
+
} else {
|
|
424
|
+
sNextArrow = bActionBarExpanded ? "left" : "right";
|
|
425
|
+
}
|
|
412
426
|
|
|
413
427
|
oExpandCollapseButton.setIcon("sap-icon://navigation-" + sNextArrow + "-arrow");
|
|
414
428
|
oExpandCollapseButton.setTooltip(sTooltip);
|
|
@@ -746,15 +760,18 @@ sap.ui.define([
|
|
|
746
760
|
// find a collection of all action items
|
|
747
761
|
aItems.forEach(function(oItem, iIndex) {
|
|
748
762
|
if (iIndex < iMaxItems) {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
763
|
+
if (oItem.getEnabled()){
|
|
764
|
+
oItemDomRef = this._getFocusDomRef(oItem);
|
|
765
|
+
oItemDomRef.setAttribute("tabindex", "-1");
|
|
766
|
+
aItemsDomRef.push(oItemDomRef);
|
|
767
|
+
}
|
|
752
768
|
oItem.$().css("display", "flex");
|
|
753
769
|
} else {
|
|
754
770
|
oItem.$().css("display", "none");
|
|
755
771
|
oMenuItem = new MenuItem({
|
|
756
772
|
text: oItem.getText(),
|
|
757
|
-
icon: oItem.getIcon()
|
|
773
|
+
icon: oItem.getIcon(),
|
|
774
|
+
enabled: oItem.getEnabled()
|
|
758
775
|
});
|
|
759
776
|
oOverflowMenu.addItem(oMenuItem);
|
|
760
777
|
this._mOverflowItemsMap[oMenuItem.getId()] = oItem;
|
|
@@ -933,6 +950,11 @@ sap.ui.define([
|
|
|
933
950
|
return;
|
|
934
951
|
}
|
|
935
952
|
|
|
953
|
+
// disabled items cannot be selected
|
|
954
|
+
if (!oItem.getEnabled()){
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
|
|
936
958
|
// fire 'toggle' event for collapsed action item
|
|
937
959
|
if (oSelectedItem && (!bExpanded || bToggleDifferent)) {
|
|
938
960
|
bSkipPrevent = this._fireToggle({
|
|
@@ -1046,15 +1068,15 @@ sap.ui.define([
|
|
|
1046
1068
|
var sIcon,
|
|
1047
1069
|
oContentHeaderCloseIcon = this.getAggregation("_closeButton");
|
|
1048
1070
|
|
|
1049
|
-
if (
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1071
|
+
if (this._isSingleItem()) {
|
|
1072
|
+
sIcon = Device.system.phone
|
|
1073
|
+
? "sap-icon://navigation-down-arrow"
|
|
1074
|
+
: "sap-icon://navigation-" + this.getSidePanelPosition().toLowerCase() + "-arrow";
|
|
1075
|
+
} else {
|
|
1076
|
+
sIcon = "sap-icon://decline";
|
|
1077
|
+
}
|
|
1057
1078
|
|
|
1079
|
+
if (!oContentHeaderCloseIcon) {
|
|
1058
1080
|
oContentHeaderCloseIcon = new Button(this.getId() + "-closeButton", {
|
|
1059
1081
|
type: "Transparent",
|
|
1060
1082
|
tooltip: oResourceBundle.getText("SIDEPANEL_CLOSE_BUTTON_TEXT"),
|
|
@@ -1077,6 +1099,8 @@ sap.ui.define([
|
|
|
1077
1099
|
});
|
|
1078
1100
|
|
|
1079
1101
|
this.setAggregation("_closeButton", oContentHeaderCloseIcon);
|
|
1102
|
+
} else {
|
|
1103
|
+
oContentHeaderCloseIcon.setIcon(sIcon);
|
|
1080
1104
|
}
|
|
1081
1105
|
|
|
1082
1106
|
return oContentHeaderCloseIcon;
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/Device",
|
|
9
|
-
"sap/ui/core/IconPool"
|
|
10
|
-
|
|
9
|
+
"sap/ui/core/IconPool",
|
|
10
|
+
"./library"
|
|
11
|
+
], function (Device, IconPool, library) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
var SidePanelRenderer = {
|
|
@@ -15,10 +16,16 @@ sap.ui.define([
|
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
SidePanelRenderer.render = function(oRm, oControl) {
|
|
19
|
+
|
|
18
20
|
var bActionBarExpanded = oControl.getActionBarExpanded();
|
|
21
|
+
var sPosition = oControl.getSidePanelPosition();
|
|
22
|
+
|
|
19
23
|
|
|
20
24
|
oRm.openStart("div", oControl);
|
|
21
25
|
oRm.class("sapFSP");
|
|
26
|
+
if (!Device.system.phone && library.SidePanelPosition.Left === sPosition ) {
|
|
27
|
+
oRm.class("sapFSPLeft");
|
|
28
|
+
}
|
|
22
29
|
oControl._isSingleItem() && oRm.class("sapFSPSingleItem");
|
|
23
30
|
bActionBarExpanded && oControl.getItems().length !== 1 && oRm.class("sapFSPActionBarExpanded");
|
|
24
31
|
oControl._getSideContentExpanded() && oRm.class("sapFSPSideContentExpanded");
|
|
@@ -44,6 +51,10 @@ sap.ui.define([
|
|
|
44
51
|
!bActionBarExpanded && oRm.attr("title", sItemText);
|
|
45
52
|
oRm.class("sapFSPItem");
|
|
46
53
|
|
|
54
|
+
if (!oItem.getEnabled()) {
|
|
55
|
+
oRm.class("sapFSPDisabled");
|
|
56
|
+
}
|
|
57
|
+
|
|
47
58
|
if ((!bOverflowItem && bItemSelected) || (bOverflowItem && oControl._bOverflowMenuOpened)) {
|
|
48
59
|
oRm.class("sapFSPSelected");
|
|
49
60
|
oRm.attr(sAriaAttribute, "true");
|
|
@@ -57,7 +68,8 @@ sap.ui.define([
|
|
|
57
68
|
oRm.openEnd();
|
|
58
69
|
|
|
59
70
|
oRm.renderControl(IconPool.createControlByURI({
|
|
60
|
-
src: iIndex === 0 && bSingleItem && bPhone ? "sap-icon://navigation-up-arrow" : oItem.getIcon()
|
|
71
|
+
src: iIndex === 0 && bSingleItem && bPhone ? "sap-icon://navigation-up-arrow" : oItem.getIcon(),
|
|
72
|
+
useIconTooltip: false
|
|
61
73
|
}));
|
|
62
74
|
|
|
63
75
|
if ((bSingleItem && bPhone)
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @abstract
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.114.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
@@ -248,7 +248,7 @@ sap.ui.define([
|
|
|
248
248
|
sFormattedText = oDateFormat.format(oUniversalDate);
|
|
249
249
|
|
|
250
250
|
// no less than "1 minute ago" should be shown, "30 seconds ago" should not be shown
|
|
251
|
-
if (oUniversalDate.getTime() + 59000 >
|
|
251
|
+
if (oUniversalDate.getTime() + 59000 > Date.now()) {
|
|
252
252
|
sFormattedText = "now"; //@todo get formatted (translated text) for "now"
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @implements sap.f.cards.IHeader
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.114.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @public
|
|
@@ -180,7 +180,7 @@ sap.ui.define([
|
|
|
180
180
|
Header.prototype._getTitle = function () {
|
|
181
181
|
var oTitle = this.getAggregation("_title");
|
|
182
182
|
if (!oTitle) {
|
|
183
|
-
oTitle = new Text().addStyleClass("sapFCardTitle");
|
|
183
|
+
oTitle = new Text(this.getId() + "-title").addStyleClass("sapFCardTitle");
|
|
184
184
|
this.setAggregation("_title", oTitle);
|
|
185
185
|
}
|
|
186
186
|
return oTitle;
|