@openui5/sap.f 1.113.0 → 1.115.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 +0 -5
- package/THIRDPARTY.txt +1 -7
- 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/CardRenderer.js +11 -4
- package/src/sap/f/DynamicPage.js +15 -4
- 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 +3 -3
- 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 +28 -12
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/SidePanelRenderer.js +9 -2
- package/src/sap/f/cards/BaseHeader.js +5 -5
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/HeaderRenderer.js +2 -6
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericHeaderRenderer.js +2 -6
- 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 +6 -77
- package/src/sap/f/cards/loading/AnalyticalPlaceholderRenderer.js +88 -0
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +4 -140
- package/src/sap/f/cards/loading/CalendarPlaceholderRenderer.js +163 -0
- package/src/sap/f/cards/loading/GenericPlaceholder.js +6 -88
- package/src/sap/f/cards/loading/GenericPlaceholderRenderer.js +99 -0
- package/src/sap/f/cards/loading/ListPlaceholder.js +6 -119
- package/src/sap/f/cards/loading/ListPlaceholderRenderer.js +131 -0
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +7 -56
- package/src/sap/f/cards/loading/ObjectPlaceholderRenderer.js +67 -0
- package/src/sap/f/cards/loading/PlaceholderBase.js +58 -0
- package/src/sap/f/cards/loading/PlaceholderBaseRenderer.js +79 -0
- package/src/sap/f/cards/loading/TablePlaceholder.js +6 -59
- package/src/sap/f/cards/loading/TablePlaceholderRenderer.js +65 -0
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +6 -81
- package/src/sap/f/cards/loading/TimelinePlaceholderRenderer.js +91 -0
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +7 -3
- 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 +15 -15
- package/src/sap/f/messagebundle_fi.properties +1 -1
- package/src/sap/f/messagebundle_sl.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/Card.less +8 -8
- package/src/sap/f/themes/base/CardLoading.less +1 -2
- package/src/sap/f/themes/base/SidePanel.less +31 -0
package/.reuse/dep5
CHANGED
|
@@ -192,11 +192,6 @@ Copyright: 2012 Matteo Spinelli
|
|
|
192
192
|
License: MIT
|
|
193
193
|
Comment: these files belong to: cubiq.org - swipeview
|
|
194
194
|
|
|
195
|
-
Files: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
|
|
196
|
-
Copyright: Mobify R&D Inc.
|
|
197
|
-
License: MIT
|
|
198
|
-
Comment: these files belong to: Mobify.js
|
|
199
|
-
|
|
200
195
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js
|
|
201
196
|
Copyright: 2011 Zynga Inc.
|
|
202
197
|
License: MIT
|
package/THIRDPARTY.txt
CHANGED
|
@@ -143,12 +143,6 @@ License: MIT
|
|
|
143
143
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
144
144
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
|
|
145
145
|
|
|
146
|
-
Component: Mobify.js, version: 1.1
|
|
147
|
-
Copyright: Mobify R&D Inc.
|
|
148
|
-
License: MIT
|
|
149
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
150
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
|
|
151
|
-
|
|
152
146
|
Component: Zynga Scroller, version: 1.2.1-0-g5d43806
|
|
153
147
|
Copyright: 2011 Zynga Inc.
|
|
154
148
|
License: MIT
|
|
@@ -478,7 +472,7 @@ License: Apache-2.0
|
|
|
478
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
473
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
474
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.
|
|
475
|
+
Component: SAP Theming Base Content, version: 11.3.0
|
|
482
476
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
477
|
License: Apache-2.0
|
|
484
478
|
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.115.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.115.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.115.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.115.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.115.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
|
@@ -67,11 +67,13 @@ sap.ui.define([
|
|
|
67
67
|
*/
|
|
68
68
|
CardRenderer.renderContainerAttributes = function (oRm, oCard) {
|
|
69
69
|
var sHeight = oCard.getHeight(),
|
|
70
|
+
oHeader = oCard.getCardHeader(),
|
|
71
|
+
oContent = oCard.getCardContent(),
|
|
72
|
+
bHasHeader = !!(oHeader && oHeader.getVisible()),
|
|
73
|
+
bHasContent = !!oContent,
|
|
74
|
+
bCardHeaderBottom = bHasHeader && oCard.getCardHeaderPosition() === HeaderPosition.Bottom,
|
|
70
75
|
sTooltip = oCard.getTooltip_AsString();
|
|
71
76
|
|
|
72
|
-
var bHasHeader = !!(oCard.getCardHeader() && oCard.getCardHeader().getVisible()),
|
|
73
|
-
bCardHeaderBottom = bHasHeader && oCard.getCardHeaderPosition() === HeaderPosition.Bottom;
|
|
74
|
-
|
|
75
77
|
oRm.class("sapFCard")
|
|
76
78
|
.style("width", oCard.getWidth());
|
|
77
79
|
|
|
@@ -79,10 +81,15 @@ sap.ui.define([
|
|
|
79
81
|
oRm.class("sapFCardNoHeader");
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
if (!
|
|
84
|
+
if (!bHasContent) {
|
|
83
85
|
oRm.class("sapFCardNoContent");
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
if ((bHasHeader && oHeader.isInteractive && oHeader.isInteractive()) ||
|
|
89
|
+
(bHasContent && oContent.isInteractive && oContent.isInteractive())) {
|
|
90
|
+
oRm.class("sapFCardSectionInteractive");
|
|
91
|
+
}
|
|
92
|
+
|
|
86
93
|
if (bCardHeaderBottom) {
|
|
87
94
|
oRm.class("sapFCardBottomHeader");
|
|
88
95
|
}
|
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.115.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
|
|
|
@@ -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.115.0
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -171,7 +171,7 @@ sap.ui.define([
|
|
|
171
171
|
* @see {@link sap.f.dnd.GridDropInfo}
|
|
172
172
|
*
|
|
173
173
|
* @author SAP SE
|
|
174
|
-
* @version 1.
|
|
174
|
+
* @version 1.115.0
|
|
175
175
|
*
|
|
176
176
|
* @extends sap.ui.core.Control
|
|
177
177
|
*
|
|
@@ -650,7 +650,7 @@ sap.ui.define([
|
|
|
650
650
|
/**
|
|
651
651
|
* Inserts an item into the aggregation named <code>items</code>.
|
|
652
652
|
*
|
|
653
|
-
* @param {sap.ui.core.
|
|
653
|
+
* @param {sap.ui.core.Control} oItem The item to be inserted; if empty, nothing is inserted.
|
|
654
654
|
* @param {int} iIndex The <code>0</code>-based index the item should be inserted at; for
|
|
655
655
|
* a negative value of <code>iIndex</code>, the item is inserted at position 0; for a value
|
|
656
656
|
* greater than the current size of the aggregation, the item is inserted at the last position.
|
|
@@ -686,7 +686,7 @@ sap.ui.define([
|
|
|
686
686
|
/**
|
|
687
687
|
* Removes an item from the aggregation named <code>items</code>.
|
|
688
688
|
*
|
|
689
|
-
* @param {int | string | sap.ui.core.
|
|
689
|
+
* @param {int | string | sap.ui.core.Control} vItem The item to remove or its index or ID.
|
|
690
690
|
* @returns {sap.ui.core.Control|null} The removed item or <code>null</code>.
|
|
691
691
|
* @public
|
|
692
692
|
*/
|
|
@@ -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.115.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.115.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.115.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.115.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
|
/**
|
|
@@ -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);
|
|
@@ -1054,15 +1068,15 @@ sap.ui.define([
|
|
|
1054
1068
|
var sIcon,
|
|
1055
1069
|
oContentHeaderCloseIcon = this.getAggregation("_closeButton");
|
|
1056
1070
|
|
|
1057
|
-
if (
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}
|
|
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
|
+
}
|
|
1065
1078
|
|
|
1079
|
+
if (!oContentHeaderCloseIcon) {
|
|
1066
1080
|
oContentHeaderCloseIcon = new Button(this.getId() + "-closeButton", {
|
|
1067
1081
|
type: "Transparent",
|
|
1068
1082
|
tooltip: oResourceBundle.getText("SIDEPANEL_CLOSE_BUTTON_TEXT"),
|
|
@@ -1085,6 +1099,8 @@ sap.ui.define([
|
|
|
1085
1099
|
});
|
|
1086
1100
|
|
|
1087
1101
|
this.setAggregation("_closeButton", oContentHeaderCloseIcon);
|
|
1102
|
+
} else {
|
|
1103
|
+
oContentHeaderCloseIcon.setIcon(sIcon);
|
|
1088
1104
|
}
|
|
1089
1105
|
|
|
1090
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");
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @abstract
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.115.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
@@ -135,13 +135,13 @@ sap.ui.define([
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
BaseHeader.prototype.ontap = function (oEvent) {
|
|
138
|
-
if (this.
|
|
138
|
+
if (this.isInteractive() && !this._isInsideToolbar(oEvent.target)) {
|
|
139
139
|
this.firePress();
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
BaseHeader.prototype.onsapselect = function (oEvent) {
|
|
144
|
-
if (this.
|
|
144
|
+
if (this.isInteractive() && !this._isInsideToolbar(oEvent.target)) {
|
|
145
145
|
this.firePress();
|
|
146
146
|
}
|
|
147
147
|
};
|
|
@@ -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
|
|
|
@@ -341,7 +341,7 @@ sap.ui.define([
|
|
|
341
341
|
return oParent.isA("sap.f.GridContainer");
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
BaseHeader.prototype.
|
|
344
|
+
BaseHeader.prototype.isInteractive = function() {
|
|
345
345
|
return this.hasListeners("press");
|
|
346
346
|
};
|
|
347
347
|
|
|
@@ -39,12 +39,8 @@ sap.ui.define([], function () {
|
|
|
39
39
|
oRm.class("sapFCardHeaderLoading");
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
if (oHeader.
|
|
43
|
-
oRm.class("
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (oError) {
|
|
47
|
-
oRm.class("sapFCardHeaderError");
|
|
42
|
+
if (oHeader.isInteractive()) {
|
|
43
|
+
oRm.class("sapFCardSectionClickable");
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
oRm.openEnd();
|