@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.
Files changed (98) hide show
  1. package/.reuse/dep5 +0 -5
  2. package/THIRDPARTY.txt +1 -7
  3. package/package.json +4 -4
  4. package/src/sap/f/.library +1 -1
  5. package/src/sap/f/Avatar.js +1 -1
  6. package/src/sap/f/AvatarGroup.js +1 -1
  7. package/src/sap/f/AvatarGroupItem.js +1 -1
  8. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  9. package/src/sap/f/CalendarInCard.js +1 -1
  10. package/src/sap/f/Card.js +1 -1
  11. package/src/sap/f/CardBase.js +1 -1
  12. package/src/sap/f/CardRenderer.js +11 -4
  13. package/src/sap/f/DynamicPage.js +15 -4
  14. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  15. package/src/sap/f/DynamicPageHeader.js +1 -1
  16. package/src/sap/f/DynamicPageTitle.js +1 -1
  17. package/src/sap/f/FlexibleColumnLayout.js +1 -1
  18. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  19. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  20. package/src/sap/f/GridContainer.js +3 -3
  21. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  22. package/src/sap/f/GridContainerSettings.js +2 -2
  23. package/src/sap/f/GridList.js +1 -1
  24. package/src/sap/f/GridListItem.js +1 -1
  25. package/src/sap/f/IllustratedMessage.js +1 -1
  26. package/src/sap/f/Illustration.js +1 -1
  27. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  28. package/src/sap/f/ProductSwitch.js +1 -1
  29. package/src/sap/f/ProductSwitchItem.js +1 -1
  30. package/src/sap/f/SearchManager.js +1 -1
  31. package/src/sap/f/ShellBar.js +1 -1
  32. package/src/sap/f/SidePanel.js +28 -12
  33. package/src/sap/f/SidePanelItem.js +1 -1
  34. package/src/sap/f/SidePanelRenderer.js +9 -2
  35. package/src/sap/f/cards/BaseHeader.js +5 -5
  36. package/src/sap/f/cards/Header.js +1 -1
  37. package/src/sap/f/cards/HeaderRenderer.js +2 -6
  38. package/src/sap/f/cards/NumericHeader.js +1 -1
  39. package/src/sap/f/cards/NumericHeaderRenderer.js +2 -6
  40. package/src/sap/f/cards/NumericIndicators.js +1 -1
  41. package/src/sap/f/cards/NumericSideIndicator.js +1 -1
  42. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +6 -77
  43. package/src/sap/f/cards/loading/AnalyticalPlaceholderRenderer.js +88 -0
  44. package/src/sap/f/cards/loading/CalendarPlaceholder.js +4 -140
  45. package/src/sap/f/cards/loading/CalendarPlaceholderRenderer.js +163 -0
  46. package/src/sap/f/cards/loading/GenericPlaceholder.js +6 -88
  47. package/src/sap/f/cards/loading/GenericPlaceholderRenderer.js +99 -0
  48. package/src/sap/f/cards/loading/ListPlaceholder.js +6 -119
  49. package/src/sap/f/cards/loading/ListPlaceholderRenderer.js +131 -0
  50. package/src/sap/f/cards/loading/ObjectPlaceholder.js +7 -56
  51. package/src/sap/f/cards/loading/ObjectPlaceholderRenderer.js +67 -0
  52. package/src/sap/f/cards/loading/PlaceholderBase.js +58 -0
  53. package/src/sap/f/cards/loading/PlaceholderBaseRenderer.js +79 -0
  54. package/src/sap/f/cards/loading/TablePlaceholder.js +6 -59
  55. package/src/sap/f/cards/loading/TablePlaceholderRenderer.js +65 -0
  56. package/src/sap/f/cards/loading/TimelinePlaceholder.js +6 -81
  57. package/src/sap/f/cards/loading/TimelinePlaceholderRenderer.js +91 -0
  58. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +7 -3
  59. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  60. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  61. package/src/sap/f/dnd/GridDragOver.js +1 -1
  62. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  63. package/src/sap/f/library.js +24 -2
  64. package/src/sap/f/messagebundle_bg.properties +15 -15
  65. package/src/sap/f/messagebundle_fi.properties +1 -1
  66. package/src/sap/f/messagebundle_sl.properties +1 -1
  67. package/src/sap/f/semantic/AddAction.js +1 -1
  68. package/src/sap/f/semantic/CloseAction.js +1 -1
  69. package/src/sap/f/semantic/CopyAction.js +1 -1
  70. package/src/sap/f/semantic/DeleteAction.js +1 -1
  71. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  72. package/src/sap/f/semantic/EditAction.js +1 -1
  73. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  74. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  75. package/src/sap/f/semantic/FlagAction.js +1 -1
  76. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  77. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  78. package/src/sap/f/semantic/MainAction.js +1 -1
  79. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  80. package/src/sap/f/semantic/NegativeAction.js +1 -1
  81. package/src/sap/f/semantic/PositiveAction.js +1 -1
  82. package/src/sap/f/semantic/PrintAction.js +1 -1
  83. package/src/sap/f/semantic/SemanticButton.js +1 -1
  84. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  85. package/src/sap/f/semantic/SemanticControl.js +1 -1
  86. package/src/sap/f/semantic/SemanticPage.js +1 -1
  87. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  88. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  89. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  90. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  91. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  92. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  93. package/src/sap/f/shellBar/CoPilot.js +1 -1
  94. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  95. package/src/sap/f/shellBar/Search.js +1 -1
  96. package/src/sap/f/themes/base/Card.less +8 -8
  97. package/src/sap/f/themes/base/CardLoading.less +1 -2
  98. 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.2.1
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.113.0",
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.113.0",
18
- "@openui5/sap.ui.core": "1.113.0",
19
- "@openui5/sap.ui.layout": "1.113.0"
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
  }
@@ -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.113.0</version>
9
+ <version>1.115.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with Fiori controls.</documentation>
12
12
 
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.m.Avatar
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.113.0
43
+ * @version 1.115.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  * @extends sap.ui.core.Control
99
99
  *
100
100
  * @author SAP SE
101
- * @version 1.113.0
101
+ * @version 1.115.0
102
102
  *
103
103
  * @constructor
104
104
  * @public
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.113.0
35
+ * @version 1.115.0
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * This calendar appointment is used in card content of type Calendar.
22
22
  *
23
23
  * @extends sap.ui.unified.CalendarAppointment
24
- * @version 1.113.0
24
+ * @version 1.115.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * <code>sap.m.Toolbar</code> with <code>sap.m.Buttons</code>.
44
44
  *
45
45
  * @extends sap.ui.unified.Calendar
46
- * @version 1.113.0
46
+ * @version 1.115.0
47
47
  *
48
48
  * @constructor
49
49
  * @private
package/src/sap/f/Card.js CHANGED
@@ -71,7 +71,7 @@ sap.ui.define([
71
71
  * @extends sap.f.CardBase
72
72
  *
73
73
  * @author SAP SE
74
- * @version 1.113.0
74
+ * @version 1.115.0
75
75
  *
76
76
  * @constructor
77
77
  * @public
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.113.0
40
+ * @version 1.115.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -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 (!oCard.getCardContent()) {
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
  }
@@ -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.113.0
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
- oWrapperElement.style.clipPath = 'polygon(0px ' + Math.floor(iTitleHeight) + 'px, '
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
 
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.113.0
26
+ * @version 1.115.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  * @extends sap.ui.core.Control
63
63
  *
64
64
  * @author SAP SE
65
- * @version 1.113.0
65
+ * @version 1.115.0
66
66
  *
67
67
  * @constructor
68
68
  * @public
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  * @extends sap.ui.core.Control
90
90
  *
91
91
  * @author SAP SE
92
- * @version 1.113.0
92
+ * @version 1.115.0
93
93
  *
94
94
  * @constructor
95
95
  * @public
@@ -97,7 +97,7 @@ sap.ui.define([
97
97
  *
98
98
  * @extends sap.ui.core.Control
99
99
  * @author SAP SE
100
- * @version 1.113.0
100
+ * @version 1.115.0
101
101
  *
102
102
  * @constructor
103
103
  * @public
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.113.0
25
+ * @version 1.115.0
26
26
  * @since 1.95
27
27
  *
28
28
  * @constructor
@@ -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.113.0
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.113.0
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.Item} oItem The item to be inserted; if empty, nothing is inserted.
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.Item} vItem The item to remove or its index or ID.
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
  */
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/LayoutData'],
21
21
  * @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.113.0
24
+ * @version 1.115.0
25
25
  *
26
26
  * @extends sap.ui.core.LayoutData
27
27
  *
@@ -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.113.0
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.113.0
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
@@ -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.113.0
96
+ * @version 1.115.0
97
97
  *
98
98
  * @extends sap.m.ListBase
99
99
  * @implements sap.ui.layout.cssgrid.IGridConfigurable
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.m.ListItemBase
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.113.0
27
+ * @version 1.115.0
28
28
  *
29
29
  * @since 1.70
30
30
  * @constructor
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * @extends sap.m.IllustratedMessage
57
57
  *
58
58
  * @author SAP SE
59
- * @version 1.113.0
59
+ * @version 1.115.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.m.Illustration
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.113.0
33
+ * @version 1.115.0
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -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.113.0
25
+ * @version 1.115.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.113.0
37
+ * @version 1.115.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.ui.core.Control
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.113.0
43
+ * @version 1.115.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/ui/base/ManagedObjectObserver', './sh
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.113.0
26
+ * @version 1.115.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -56,7 +56,7 @@ function(
56
56
  * @implements sap.f.IShellBar, sap.m.IBar, sap.tnt.IToolHeader
57
57
  *
58
58
  * @author SAP SE
59
- * @version 1.113.0
59
+ * @version 1.115.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -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.113.0
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 = bActionBarExpanded ? "right" : "left";
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 (!oContentHeaderCloseIcon) {
1058
- if (this._isSingleItem()) {
1059
- sIcon = Device.system.phone
1060
- ? "sap-icon://navigation-down-arrow"
1061
- : "sap-icon://navigation-right-arrow";
1062
- } else {
1063
- sIcon = "sap-icon://decline";
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;
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Item
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.113.0
30
+ * @version 1.115.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -6,8 +6,9 @@
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/ui/Device",
9
- "sap/ui/core/IconPool"
10
- ], function (Device, IconPool) {
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.113.0
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._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
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._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
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 > (new Date()).getTime()) {
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._isInteractive = function() {
344
+ BaseHeader.prototype.isInteractive = function() {
345
345
  return this.hasListeners("press");
346
346
  };
347
347
 
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @implements sap.f.cards.IHeader
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.113.0
49
+ * @version 1.115.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -39,12 +39,8 @@ sap.ui.define([], function () {
39
39
  oRm.class("sapFCardHeaderLoading");
40
40
  }
41
41
 
42
- if (oHeader._isInteractive()) {
43
- oRm.class("sapFCardClickable");
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();
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @extends sap.f.cards.BaseHeader
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.113.0
42
+ * @version 1.115.0
43
43
  *
44
44
  * @constructor
45
45
  * @public