@openui5/sap.f 1.114.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 (95) hide show
  1. package/.reuse/dep5 +0 -5
  2. package/THIRDPARTY.txt +0 -6
  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 +1 -1
  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 +1 -1
  33. package/src/sap/f/SidePanelItem.js +1 -1
  34. package/src/sap/f/cards/BaseHeader.js +4 -4
  35. package/src/sap/f/cards/Header.js +1 -1
  36. package/src/sap/f/cards/HeaderRenderer.js +2 -2
  37. package/src/sap/f/cards/NumericHeader.js +1 -1
  38. package/src/sap/f/cards/NumericHeaderRenderer.js +2 -2
  39. package/src/sap/f/cards/NumericIndicators.js +1 -1
  40. package/src/sap/f/cards/NumericSideIndicator.js +1 -1
  41. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +6 -77
  42. package/src/sap/f/cards/loading/AnalyticalPlaceholderRenderer.js +88 -0
  43. package/src/sap/f/cards/loading/CalendarPlaceholder.js +4 -140
  44. package/src/sap/f/cards/loading/CalendarPlaceholderRenderer.js +163 -0
  45. package/src/sap/f/cards/loading/GenericPlaceholder.js +6 -88
  46. package/src/sap/f/cards/loading/GenericPlaceholderRenderer.js +99 -0
  47. package/src/sap/f/cards/loading/ListPlaceholder.js +6 -119
  48. package/src/sap/f/cards/loading/ListPlaceholderRenderer.js +131 -0
  49. package/src/sap/f/cards/loading/ObjectPlaceholder.js +7 -56
  50. package/src/sap/f/cards/loading/ObjectPlaceholderRenderer.js +67 -0
  51. package/src/sap/f/cards/loading/PlaceholderBase.js +58 -0
  52. package/src/sap/f/cards/loading/PlaceholderBaseRenderer.js +79 -0
  53. package/src/sap/f/cards/loading/TablePlaceholder.js +6 -59
  54. package/src/sap/f/cards/loading/TablePlaceholderRenderer.js +65 -0
  55. package/src/sap/f/cards/loading/TimelinePlaceholder.js +6 -81
  56. package/src/sap/f/cards/loading/TimelinePlaceholderRenderer.js +91 -0
  57. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +7 -3
  58. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  59. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  60. package/src/sap/f/dnd/GridDragOver.js +1 -1
  61. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  62. package/src/sap/f/library.js +2 -2
  63. package/src/sap/f/messagebundle_bg.properties +15 -15
  64. package/src/sap/f/messagebundle_fi.properties +1 -1
  65. package/src/sap/f/messagebundle_sl.properties +1 -1
  66. package/src/sap/f/semantic/AddAction.js +1 -1
  67. package/src/sap/f/semantic/CloseAction.js +1 -1
  68. package/src/sap/f/semantic/CopyAction.js +1 -1
  69. package/src/sap/f/semantic/DeleteAction.js +1 -1
  70. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  71. package/src/sap/f/semantic/EditAction.js +1 -1
  72. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  73. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  74. package/src/sap/f/semantic/FlagAction.js +1 -1
  75. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  76. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  77. package/src/sap/f/semantic/MainAction.js +1 -1
  78. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  79. package/src/sap/f/semantic/NegativeAction.js +1 -1
  80. package/src/sap/f/semantic/PositiveAction.js +1 -1
  81. package/src/sap/f/semantic/PrintAction.js +1 -1
  82. package/src/sap/f/semantic/SemanticButton.js +1 -1
  83. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  84. package/src/sap/f/semantic/SemanticControl.js +1 -1
  85. package/src/sap/f/semantic/SemanticPage.js +1 -1
  86. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  87. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  88. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  89. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  90. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  91. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  92. package/src/sap/f/shellBar/CoPilot.js +1 -1
  93. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  94. package/src/sap/f/shellBar/Search.js +1 -1
  95. package/src/sap/f/themes/base/Card.less +8 -8
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.f",
3
- "version": "1.114.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.114.0",
18
- "@openui5/sap.ui.core": "1.114.0",
19
- "@openui5/sap.ui.layout": "1.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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
  }
@@ -112,7 +112,7 @@ sap.ui.define([
112
112
  * @extends sap.ui.core.Control
113
113
  *
114
114
  * @author SAP SE
115
- * @version 1.114.0
115
+ * @version 1.115.0
116
116
  *
117
117
  * @constructor
118
118
  * @public
@@ -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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.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.114.0
59
+ * @version 1.115.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -149,7 +149,7 @@ sap.ui.define([
149
149
  * @extends sap.ui.core.Control
150
150
  *
151
151
  * @author SAP SE
152
- * @version 1.114.0
152
+ * @version 1.115.0
153
153
  *
154
154
  * @constructor
155
155
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Item
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.114.0
30
+ * @version 1.115.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @abstract
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.114.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
  };
@@ -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.114.0
49
+ * @version 1.115.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -39,8 +39,8 @@ sap.ui.define([], function () {
39
39
  oRm.class("sapFCardHeaderLoading");
40
40
  }
41
41
 
42
- if (oHeader._isInteractive()) {
43
- oRm.class("sapFCardClickable");
42
+ if (oHeader.isInteractive()) {
43
+ oRm.class("sapFCardSectionClickable");
44
44
  }
45
45
 
46
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.114.0
42
+ * @version 1.115.0
43
43
  *
44
44
  * @constructor
45
45
  * @public
@@ -30,8 +30,8 @@ sap.ui.define([], function () {
30
30
  oRm.class("sapFCardHeaderLoading");
31
31
  }
32
32
 
33
- if (oNumericHeader._isInteractive()) {
34
- oRm.class("sapFCardClickable");
33
+ if (oNumericHeader.isInteractive()) {
34
+ oRm.class("sapFCardSectionClickable");
35
35
  }
36
36
 
37
37
  oRm.openEnd();
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.core.Control
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.114.0
28
+ * @version 1.115.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.114.0
29
+ * @version 1.115.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -4,9 +4,9 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/ui/core/Control",
8
- "sap/ui/core/Core"
9
- ], function (Control, Core) {
7
+ "sap/f/cards/loading/PlaceholderBase",
8
+ "./AnalyticalPlaceholderRenderer"
9
+ ], function (PlaceholderBase, AnalyticalPlaceholderRenderer) {
10
10
  "use strict";
11
11
 
12
12
  /**
@@ -19,14 +19,14 @@ sap.ui.define([
19
19
  * @extends sap.ui.core.Control
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.114.0
22
+ * @version 1.115.0
23
23
  *
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.108
27
27
  * @alias sap.f.cards.loading.AnalyticalPlaceholder
28
28
  */
29
- var AnalyticalPlaceholder = Control.extend("sap.f.cards.loading.AnalyticalPlaceholder", {
29
+ var AnalyticalPlaceholder = PlaceholderBase.extend("sap.f.cards.loading.AnalyticalPlaceholder", {
30
30
  metadata: {
31
31
  library: "sap.f",
32
32
  properties: {
@@ -40,78 +40,7 @@ sap.ui.define([
40
40
  }
41
41
  }
42
42
  },
43
- renderer: {
44
- apiVersion: 2,
45
- render: function (oRm, oControl) {
46
- // set title for screen reader
47
- var oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
48
- sTitle = oResBundle.getText("BUSY_TEXT");
49
-
50
- oRm.openStart("div", oControl)
51
- .class("sapFCardContentPlaceholder")
52
- .class("sapFCardContentAnalyticalPlaceholder")
53
- .attr("tabindex", "0")
54
- .attr("title", sTitle)
55
- .style("min-height", oControl.getMinHeight());
56
-
57
- oRm.accessibilityState(oControl, {
58
- role: "progressbar",
59
- valuemin: "0",
60
- valuemax: "100"
61
- });
62
- oRm.openEnd();
63
-
64
- oRm.openStart("div")
65
- .openEnd();
66
-
67
- this.renderSVG(oControl, oRm);
68
-
69
- oRm.close("div");
70
- oRm.close("div");
71
- },
72
- renderSVG: function (oControl, oRm) {
73
- var sChartType = oControl.getChartType().toLowerCase();
74
-
75
- oRm.openStart("svg")
76
- .class("sapFCardLoadingShimmer")
77
- .attr("width", "100%")
78
- .attr("height", "100%")
79
- .attr("xmlns", "http://www.w3.org/2000/svg")
80
- .attr("version", "1.1");
81
-
82
- if (sChartType.indexOf("line") > -1) {
83
- oRm.attr("viewBox", "0 0 262 191");
84
- } else if (sChartType.indexOf("bar") > -1) {
85
- oRm.attr("viewBox", "0 0 268 186");
86
- } else if (sChartType.indexOf("pie") > -1 || sChartType.indexOf("donut") > -1) {
87
- oRm.attr("viewBox", "0 0 263 165");
88
- } else { // column type and default
89
- oRm.attr("viewBox", "0 0 266 188");
90
- }
91
-
92
- oRm.class("sapFCardSVG")
93
- .openEnd();
94
-
95
- oRm.openStart("path");
96
-
97
- if (sChartType.indexOf("line") > -1) {
98
- oRm.attr("d", "M262 0H0V191H262V0ZM3 5C3 3.89543 3.89543 3 5 3H11C12.1046 3 13 3.89543 13 5V7C13 8.10457 12.1046 9 11 9H5C3.89543 9 3 8.10457 3 7V5ZM18 6C18 5.44772 18.4477 5 19 5H258C258.552 5 259 5.44772 259 6C259 6.55228 258.552 7 258 7H19C18.4477 7 18 6.55228 18 6ZM18 42C18 41.4477 18.4477 41 19 41H236.084L239.727 38.3375C239.26 37.3217 239 36.1913 239 35C239 30.5817 242.582 27 247 27C251.418 27 255 30.5817 255 35C255 37.3894 253.952 39.5341 252.292 41H258C258.552 41 259 41.4477 259 42C259 42.5523 258.552 43 258 43H247H240.127L215.092 61.2945C215.672 62.4023 216 63.6629 216 65C216 69.4183 212.418 73 208 73C204.96 73 202.316 71.3044 200.962 68.8073L175.988 75.4461C175.958 75.9797 175.877 76.4993 175.748 77H258C258.552 77 259 77.4477 259 78C259 78.5523 258.552 79 258 79H174.93C173.547 81.3912 170.961 83 168 83C165.69 83 163.608 82.0207 162.148 80.4546L135.905 92.7659C135.968 93.1681 136 93.5803 136 94C136 98.4183 132.418 102 128 102C126.483 102 125.066 101.578 123.857 100.845L111.391 113H258C258.552 113 259 113.448 259 114C259 114.552 258.552 115 258 115H109.339L94.9479 129.032C95.6173 130.201 96 131.556 96 133C96 137.418 92.4183 141 88 141C86.2836 141 84.6935 140.459 83.3905 139.539L72.0664 149H258C258.552 149 259 149.448 259 150C259 150.552 258.552 151 258 151H69.6725L55.3905 162.932C55.7832 163.877 56 164.913 56 166C56 170.418 52.4183 174 48 174C45.9336 174 44.0501 173.217 42.6305 171.93L23.5663 183H257C258.105 183 259 183.895 259 185C259 186.105 258.105 187 257 187H5C3.89543 187 3 186.105 3 185C3 183.895 3.89543 183 5 183H16.129L15.9957 182.77L40.4267 168.585C40.1501 167.774 40 166.904 40 166C40 161.582 43.5817 158 48 158C49.8812 158 51.6107 158.649 52.9767 159.736L63.4335 151H19C18.4477 151 18 150.552 18 150C18 149.448 18.4477 149 19 149H65.8275L80.8 136.491C80.2875 135.436 80 134.252 80 133C80 128.582 83.5817 125 88 125C89.5231 125 90.9468 125.426 92.1587 126.164L103.609 115H19C18.4477 115 18 114.552 18 114C18 113.448 18.4477 113 19 113H105.661L121.061 97.9844C120.386 96.8113 120 95.4507 120 94C120 89.5817 123.582 86 128 86C130.569 86 132.854 87.2105 134.318 89.0922L155.83 79H19C18.4477 79 18 78.5523 18 78C18 77.4477 18.4477 77 19 77H160.094L160.235 76.9335C160.082 76.3144 160 75.6667 160 75C160 70.5817 163.582 67 168 67C171.169 67 173.908 68.843 175.203 71.5157L200 64.9241C200.041 60.5408 203.607 57 208 57C209.622 57 211.132 57.4829 212.393 58.3128L233.347 43H19C18.4477 43 18 42.5523 18 42ZM5 39C3.89543 39 3 39.8954 3 41V43C3 44.1046 3.89543 45 5 45H11C12.1046 45 13 44.1046 13 43V41C13 39.8954 12.1046 39 11 39H5ZM3 77C3 75.8954 3.89543 75 5 75H11C12.1046 75 13 75.8954 13 77V79C13 80.1046 12.1046 81 11 81H5C3.89543 81 3 80.1046 3 79V77ZM5 111C3.89543 111 3 111.895 3 113V115C3 116.105 3.89543 117 5 117H11C12.1046 117 13 116.105 13 115V113C13 111.895 12.1046 111 11 111H5ZM3 149C3 147.895 3.89543 147 5 147H11C12.1046 147 13 147.895 13 149V151C13 152.105 12.1046 153 11 153H5C3.89543 153 3 152.105 3 151V149Z");
99
- } else if (sChartType.indexOf("bar") > -1) {
100
- oRm.attr("d", "M0 0H268V186H0V0ZM7 2C5.89543 2 5 2.89544 5 4.00001V180C5 181.105 5.89543 182 7 182C7.17265 182 7.34019 181.978 7.5 181.937C7.65981 181.978 7.82735 182 8 182H261C262.105 182 263 181.105 263 180C263 178.895 262.105 178 261 178H9V4C9 2.89543 8.10457 2 7 2ZM25 10C23.8954 10 23 10.8954 23 12V33C23 34.1046 23.8954 35 25 35H249C250.105 35 251 34.1046 251 33V12C251 10.8954 250.105 10 249 10H25ZM23 44C23 42.8954 23.8954 42 25 42H188C189.105 42 190 42.8954 190 44V65C190 66.1046 189.105 67 188 67H25C23.8954 67 23 66.1046 23 65V44ZM25 74C23.8954 74 23 74.8954 23 76V97C23 98.1046 23.8954 99 25 99H212C213.105 99 214 98.1046 214 97V76C214 74.8954 213.105 74 212 74H25ZM23 108C23 106.895 23.8954 106 25 106H191C192.105 106 193 106.895 193 108V129C193 130.105 192.105 131 191 131H25C23.8954 131 23 130.105 23 129V108ZM25 138C23.8954 138 23 138.895 23 140V161C23 162.105 23.8954 163 25 163H171C172.105 163 173 162.105 173 161V140C173 138.895 172.105 138 171 138H25Z");
101
- } else if (sChartType.indexOf("pie") > -1 || sChartType.indexOf("donut") > -1) {
102
- oRm.attr("d", "M263 0H0V165H263V0ZM178 5C176.895 5 176 5.89543 176 7V21C176 22.1046 176.895 23 178 23H258C259.105 23 260 22.1046 260 21V7C260 5.89543 259.105 5 258 5H178ZM176 30C176 28.8954 176.895 28 178 28H240C241.105 28 242 28.8954 242 30V44C242 45.1046 241.105 46 240 46H178C176.895 46 176 45.1046 176 44V30ZM178 51C176.895 51 176 51.8954 176 53V67C176 68.1046 176.895 69 178 69H258C259.105 69 260 68.1046 260 67V53C260 51.8954 259.105 51 258 51H178ZM176 76C176 74.8954 176.895 74 178 74H240C241.105 74 242 74.8954 242 76V90C242 91.1046 241.105 92 240 92H178C176.895 92 176 91.1046 176 90V76ZM178 97C176.895 97 176 97.8954 176 99V113C176 114.105 176.895 115 178 115H258C259.105 115 260 114.105 260 113V99C260 97.8954 259.105 97 258 97H178ZM176 122C176 120.895 176.895 120 178 120H240C241.105 120 242 120.895 242 122V136C242 137.105 241.105 138 240 138H178C176.895 138 176 137.105 176 136V122ZM84 161.961V121.92C104.098 120.632 120 103.923 120 83.5C120 69.1297 112.127 56.5982 100.459 49.9838L120.206 15.1903C143.97 28.6843 160 54.2201 160 83.5C160 126.018 126.197 160.641 84 161.961ZM81 121.997V161.998C37.8758 161.729 3 126.688 3 83.5C3 59.3758 13.8821 37.7933 31.0052 23.3933L56.6947 54.0549C48.32 61.1173 43 71.6874 43 83.5C43 104.596 59.9675 121.729 81 121.997ZM117.569 13.7589L97.7909 48.6064C92.8434 46.2926 87.3226 45 81.5 45C73.128 45 65.3802 47.6722 59.0629 52.2102L33.3379 21.5062C46.6349 11.1611 63.3479 5 81.5 5C94.5039 5 106.769 8.16194 117.569 13.7589Z");
103
- } else { // column type and default
104
- oRm.attr("d", "M266 0H0V188H266V0ZM4 5.00001C4 3.89544 4.89543 3 6 3C7.10457 3 8 3.89543 8 5V179H260C261.105 179 262 179.895 262 181C262 182.105 261.105 183 260 183H6C4.89543 183 4 182.105 4 181V5.00001ZM46 33C47.1046 33 48 33.8954 48 35V161C48 162.105 47.1046 163 46 163H26C24.8954 163 24 162.105 24 161V35C24 33.8954 24.8954 33 26 33H46ZM88 25C88 23.8954 87.1046 23 86 23H66C64.8954 23 64 23.8954 64 25V161C64 162.105 64.8954 163 66 163H86C87.1046 163 88 162.105 88 161V25ZM126 46C127.105 46 128 46.8954 128 48V161C128 162.105 127.105 163 126 163H106C104.895 163 104 162.105 104 161V48C104 46.8954 104.895 46 106 46H126ZM168 61C168 59.8954 167.105 59 166 59H146C144.895 59 144 59.8954 144 61V161C144 162.105 144.895 163 146 163H166C167.105 163 168 162.105 168 161V61ZM206 72C207.105 72 208 72.8954 208 74V161C208 162.105 207.105 163 206 163H186C184.895 163 184 162.105 184 161V74C184 72.8954 184.895 72 186 72H206ZM248 61C248 59.8954 247.105 59 246 59H226C224.895 59 224 59.8954 224 61V161C224 162.105 224.895 163 226 163H246C247.105 163 248 162.105 248 161V61Z");
105
- }
106
-
107
- oRm.attr("fill-rule", "evenodd")
108
- .attr("clip-rule", "evenodd")
109
- .openEnd()
110
- .close("path");
111
-
112
- oRm.close("svg");
113
- }
114
- }
43
+ renderer: AnalyticalPlaceholderRenderer
115
44
  });
116
45
 
117
46
  return AnalyticalPlaceholder;