@openui5/sap.f 1.108.1 → 1.109.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/AvatarGroupRenderer.js +2 -5
- 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 +2 -1
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +2 -2
- package/src/sap/f/DynamicPageTitle.js +2 -2
- 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/GridContainerRenderer.js +1 -1
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridContainerUtils.js +4 -4
- package/src/sap/f/GridList.js +1 -1
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/GridNavigationMatrix.js +2 -2
- 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 -49
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/ProductSwitchItemRenderer.js +0 -1
- package/src/sap/f/SearchManager.js +1 -1
- package/src/sap/f/ShellBar.js +1 -1
- package/src/sap/f/SidePanel.js +391 -84
- package/src/sap/f/SidePanelItem.js +1 -2
- package/src/sap/f/SidePanelRenderer.js +62 -19
- package/src/sap/f/cards/BaseHeader.js +10 -12
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/HeaderRenderer.js +1 -1
- package/src/sap/f/cards/NumericHeader.js +10 -2
- package/src/sap/f/cards/NumericIndicators.js +10 -2
- package/src/sap/f/cards/NumericIndicatorsRenderer.js +6 -3
- 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 +4 -5
- package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +5 -5
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +5 -5
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +6 -6
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
- package/src/sap/f/delegate/GridContainerItemNavigation.js +19 -41
- package/src/sap/f/delegate/GridItemNavigation.js +7 -17
- package/src/sap/f/dnd/GridDragOver.js +10 -4
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +2 -2
- package/src/sap/f/messagebundle.properties +11 -0
- package/src/sap/f/messagebundle_en_US_saprigi.properties +7 -0
- 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 +3 -7
- 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/CoPilotRenderer.js +11 -6
- package/src/sap/f/shellBar/ControlSpacer.js +1 -1
- package/src/sap/f/shellBar/Search.js +1 -1
- package/src/sap/f/themes/base/GridList.less +4 -0
- package/src/sap/f/themes/base/SidePanel.less +189 -29
|
@@ -27,13 +27,12 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.core.Item
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.109.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
34
34
|
* @since 1.107
|
|
35
35
|
* @alias sap.f.SidePanelItem
|
|
36
|
-
* @experimental Since 1.107. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
37
36
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
38
37
|
*/
|
|
39
38
|
var SidePanelItem = Item.extend("sap.f.SidePanelItem", {
|
|
@@ -15,18 +15,18 @@ sap.ui.define([
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
SidePanelRenderer.render = function(oRm, oControl) {
|
|
18
|
-
var bActionBarExpanded = oControl.getActionBarExpanded()
|
|
19
|
-
bSideContentExpanded = oControl._isSideContentExpanded();
|
|
18
|
+
var bActionBarExpanded = oControl.getActionBarExpanded();
|
|
20
19
|
|
|
21
20
|
oRm.openStart("div", oControl);
|
|
22
21
|
oRm.class("sapFSP");
|
|
23
22
|
oControl._isSingleItem() && oRm.class("sapFSPSingleItem");
|
|
24
23
|
bActionBarExpanded && oControl.getItems().length !== 1 && oRm.class("sapFSPActionBarExpanded");
|
|
25
|
-
|
|
24
|
+
oControl._getSideContentExpanded() && oRm.class("sapFSPSideContentExpanded");
|
|
26
25
|
oRm.openEnd();
|
|
27
26
|
|
|
28
27
|
SidePanelRenderer.renderMain(oRm, oControl);
|
|
29
28
|
oControl.getItems().length && SidePanelRenderer.renderSide(oRm, oControl);
|
|
29
|
+
!Device.system.phone && SidePanelRenderer.renderMeasureHelpers(oRm, oControl);
|
|
30
30
|
|
|
31
31
|
oRm.close("div");
|
|
32
32
|
};
|
|
@@ -91,38 +91,35 @@ sap.ui.define([
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
SidePanelRenderer.renderSide = function(oRm, oControl) {
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
var bPhone = Device.system.phone,
|
|
95
|
+
bRenderSplitter = oControl.getSidePanelResizable() && oControl._getSideContentExpanded() && !bPhone;
|
|
96
|
+
|
|
97
97
|
oRm.openStart("aside");
|
|
98
98
|
oRm.class("sapFSPSide");
|
|
99
|
+
bRenderSplitter && oRm.class("sapFSPResizable");
|
|
99
100
|
oRm.attr("data-sap-ui-fastnavgroup", "true");
|
|
100
101
|
oRm.attr("role", "region");
|
|
101
102
|
oRm.attr("aria-label", oControl._getAriaLabelText());
|
|
102
|
-
|
|
103
|
+
oControl._getSideContentExpanded() && !bPhone && oRm.style("width", oControl._getSidePanelWidth());
|
|
103
104
|
oRm.openEnd();
|
|
104
105
|
|
|
105
106
|
oRm.openStart("div");
|
|
106
107
|
oRm.class("sapFSPSideInner");
|
|
107
|
-
|
|
108
|
-
bSideExpanded && !bPhone && oRm.style("width", sSidePanelWidth);
|
|
109
|
-
|
|
110
108
|
oRm.openEnd();
|
|
111
109
|
|
|
112
110
|
SidePanelRenderer.renderActionBar(oRm, oControl);
|
|
113
111
|
oControl.getSelectedItem() && SidePanelRenderer.renderSideContent(oRm, oControl);
|
|
112
|
+
bRenderSplitter && SidePanelRenderer.renderSplitterBar(oRm, oControl);
|
|
114
113
|
|
|
115
114
|
oRm.close("div");
|
|
116
|
-
|
|
117
115
|
oRm.close("aside");
|
|
118
116
|
};
|
|
119
117
|
|
|
120
118
|
SidePanelRenderer.renderSideContent = function(oRm, oControl) {
|
|
121
119
|
var aSide = oControl._getSelectedItem().getContent(),
|
|
122
|
-
bSideContentExpanded = oControl._isSideContentExpanded(),
|
|
123
120
|
i;
|
|
124
121
|
|
|
125
|
-
if (
|
|
122
|
+
if (oControl._getSideContentExpanded()) {
|
|
126
123
|
oRm.openStart("div");
|
|
127
124
|
oRm.class("sapFSPSideContent");
|
|
128
125
|
oRm.attr("data-sap-ui-fastnavgroup", "true");
|
|
@@ -142,7 +139,6 @@ sap.ui.define([
|
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
oRm.close("div");
|
|
145
|
-
|
|
146
142
|
oRm.close("div");
|
|
147
143
|
}
|
|
148
144
|
};
|
|
@@ -167,6 +163,10 @@ sap.ui.define([
|
|
|
167
163
|
oExpandCollapseButton = oControl.getAggregation("_arrowButton"),
|
|
168
164
|
i;
|
|
169
165
|
|
|
166
|
+
oRm.openStart("div");
|
|
167
|
+
oRm.class("sapFSPActionBar");
|
|
168
|
+
oRm.openEnd();
|
|
169
|
+
|
|
170
170
|
if (!bPhone) {
|
|
171
171
|
// expand/collapse button
|
|
172
172
|
bSingleItem && oExpandCollapseButton.setTooltip(oControl.getItems()[0].getText());
|
|
@@ -175,15 +175,14 @@ sap.ui.define([
|
|
|
175
175
|
|
|
176
176
|
// action bar
|
|
177
177
|
if (aItems.length) {
|
|
178
|
-
|
|
179
178
|
oRm.openStart("div");
|
|
180
|
-
oRm.class("
|
|
179
|
+
oRm.class("sapFSPActionBarListWrapper");
|
|
181
180
|
bActionBarExpanded && oRm.class("sapFSPExpanded");
|
|
182
181
|
oRm.attr("role", "toolbar");
|
|
183
182
|
oRm.openEnd();
|
|
184
183
|
|
|
185
|
-
oRm.openStart("ul", oControl.getId() + "-
|
|
186
|
-
oRm.class("
|
|
184
|
+
oRm.openStart("ul", oControl.getId() + "-ActionBarList");
|
|
185
|
+
oRm.class("sapFSPActionBarList");
|
|
187
186
|
aItems.length < 4 && oRm.class("sapFSPCenteredItems");
|
|
188
187
|
oRm.attr("aria-multiselectable", "false");
|
|
189
188
|
oRm.attr("aria-label", "Actions");
|
|
@@ -202,9 +201,53 @@ sap.ui.define([
|
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
oRm.close("ul");
|
|
205
|
-
|
|
206
204
|
oRm.close("div");
|
|
207
205
|
}
|
|
206
|
+
|
|
207
|
+
oRm.close("div");
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
SidePanelRenderer.renderSplitterBar = function(oRm, oControl) {
|
|
211
|
+
oRm.openStart("div", oControl.getId() + "-resizeSplitter");
|
|
212
|
+
oRm.class("sapFSPSplitterBar");
|
|
213
|
+
oRm.attr("tabindex", 0);
|
|
214
|
+
oRm.attr("role", "separator");
|
|
215
|
+
oRm.attr("aria-orientation", "vertical");
|
|
216
|
+
oRm.attr("aria-roledescription", "splitter separator");
|
|
217
|
+
oRm.attr("title", oControl._getSplitterTitle());
|
|
218
|
+
oRm.openEnd();
|
|
219
|
+
|
|
220
|
+
oRm.openStart("div");
|
|
221
|
+
oRm.class("sapFSPSplitterBarDecorationBefore");
|
|
222
|
+
oRm.openEnd();
|
|
223
|
+
oRm.close("div");
|
|
224
|
+
|
|
225
|
+
oRm.openStart("div");
|
|
226
|
+
oRm.class("sapFSPSplitterBarGrip");
|
|
227
|
+
oRm.openEnd();
|
|
228
|
+
oRm.icon("sap-icon://vertical-grip", ["sapFSPSplitterBarGripIcon"]);
|
|
229
|
+
oRm.close("div");
|
|
230
|
+
|
|
231
|
+
oRm.openStart("div");
|
|
232
|
+
oRm.class("sapFSPSplitterBarDecorationAfter");
|
|
233
|
+
oRm.openEnd();
|
|
234
|
+
oRm.close("div");
|
|
235
|
+
|
|
236
|
+
oRm.close("div");
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
SidePanelRenderer.renderMeasureHelpers = function(oRm, oControl) {
|
|
240
|
+
oRm.openStart("div");
|
|
241
|
+
oRm.class("sapFSPMinWidth");
|
|
242
|
+
oRm.style("width", oControl.getSidePanelMinWidth());
|
|
243
|
+
oRm.openEnd();
|
|
244
|
+
oRm.close("div");
|
|
245
|
+
|
|
246
|
+
oRm.openStart("div");
|
|
247
|
+
oRm.class("sapFSPMaxWidth");
|
|
248
|
+
oRm.style("width", oControl.getSidePanelMaxWidth());
|
|
249
|
+
oRm.openEnd();
|
|
250
|
+
oRm.close("div");
|
|
208
251
|
};
|
|
209
252
|
|
|
210
253
|
return SidePanelRenderer;
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @abstract
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.109.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
@@ -135,21 +135,13 @@ sap.ui.define([
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
BaseHeader.prototype.ontap = function (oEvent) {
|
|
138
|
-
|
|
139
|
-
if (srcControl && srcControl.getId().indexOf("overflowButton") > -1) { // better way?
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (this._isInteractive()) {
|
|
138
|
+
if (this._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
|
|
144
139
|
this.firePress();
|
|
145
140
|
}
|
|
146
141
|
};
|
|
147
142
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*/
|
|
151
|
-
BaseHeader.prototype.onsapselect = function () {
|
|
152
|
-
if (this._isInteractive()) {
|
|
143
|
+
BaseHeader.prototype.onsapselect = function (oEvent) {
|
|
144
|
+
if (this._isInteractive() && !this._isInsideToolbar(oEvent.target)) {
|
|
153
145
|
this.firePress();
|
|
154
146
|
}
|
|
155
147
|
};
|
|
@@ -360,5 +352,11 @@ sap.ui.define([
|
|
|
360
352
|
return this.hasListeners("press");
|
|
361
353
|
};
|
|
362
354
|
|
|
355
|
+
BaseHeader.prototype._isInsideToolbar = function(oElement) {
|
|
356
|
+
var oToolbar = this.getToolbar();
|
|
357
|
+
|
|
358
|
+
return oToolbar && oToolbar.getDomRef() && oToolbar.getDomRef().contains(oElement);
|
|
359
|
+
};
|
|
360
|
+
|
|
363
361
|
return BaseHeader;
|
|
364
362
|
});
|
|
@@ -79,7 +79,7 @@ sap.ui.define([], function () {
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
if (bIconVisible && (oHeader.
|
|
82
|
+
if (bIconVisible && (!oHeader.isPropertyInitial("iconSrc") || !oHeader.isPropertyInitial("iconInitials"))) {
|
|
83
83
|
oRm.openStart("div")
|
|
84
84
|
.class("sapFCardHeaderImage")
|
|
85
85
|
.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.
|
|
42
|
+
* @version 1.109.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @public
|
|
@@ -90,6 +90,12 @@ sap.ui.define([
|
|
|
90
90
|
*/
|
|
91
91
|
number: { "type": "string", group : "Data" },
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Whether the main numeric indicator is visible or not
|
|
95
|
+
* @since 1.109
|
|
96
|
+
*/
|
|
97
|
+
numberVisible: { "type": "boolean", defaultValue : true},
|
|
98
|
+
|
|
93
99
|
/**
|
|
94
100
|
* Defines the unit of measurement (scaling prefix) for the main indicator.
|
|
95
101
|
* Financial characters can be used for currencies and counters. The International System of Units (SI) prefixes can be used.
|
|
@@ -124,6 +130,7 @@ sap.ui.define([
|
|
|
124
130
|
* The alignment of the side indicators.
|
|
125
131
|
*/
|
|
126
132
|
sideIndicatorsAlignment: { "type": "sap.f.cards.NumericHeaderSideIndicatorsAlignment", group: "Appearance", defaultValue : "Begin" }
|
|
133
|
+
|
|
127
134
|
},
|
|
128
135
|
aggregations: {
|
|
129
136
|
|
|
@@ -214,7 +221,8 @@ sap.ui.define([
|
|
|
214
221
|
.setScale(this.getScale())
|
|
215
222
|
.setTrend(this.getTrend())
|
|
216
223
|
.setState(this.getState())
|
|
217
|
-
.setSideIndicatorsAlignment(this.getSideIndicatorsAlignment())
|
|
224
|
+
.setSideIndicatorsAlignment(this.getSideIndicatorsAlignment())
|
|
225
|
+
.setNumberVisible(this.getNumberVisible());
|
|
218
226
|
};
|
|
219
227
|
|
|
220
228
|
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @extends sap.ui.core.Control
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.109.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
@@ -49,6 +49,12 @@ sap.ui.define([
|
|
|
49
49
|
*/
|
|
50
50
|
numberSize: { "type": "string", group : "Appearance", defaultValue: "L" },
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Whether the main numeric indicator is visible or not.
|
|
54
|
+
* @since 1.109
|
|
55
|
+
*/
|
|
56
|
+
numberVisible: { "type": "boolean", defaultValue : true},
|
|
57
|
+
|
|
52
58
|
/**
|
|
53
59
|
* Defines the unit of measurement (scaling prefix) for the main indicator.
|
|
54
60
|
* Financial characters can be used for currencies and counters. The International System of Units (SI) prefixes can be used.
|
|
@@ -71,6 +77,7 @@ sap.ui.define([
|
|
|
71
77
|
* The alignment of the side indicators.
|
|
72
78
|
*/
|
|
73
79
|
sideIndicatorsAlignment: { "type": "sap.f.cards.NumericHeaderSideIndicatorsAlignment", group: "Appearance", defaultValue : "Begin" }
|
|
80
|
+
|
|
74
81
|
},
|
|
75
82
|
aggregations: {
|
|
76
83
|
|
|
@@ -97,7 +104,8 @@ sap.ui.define([
|
|
|
97
104
|
.setValue(this.getNumber())
|
|
98
105
|
.setScale(this.getScale())
|
|
99
106
|
.setIndicator(this.getTrend())
|
|
100
|
-
.setValueColor(this.getState())
|
|
107
|
+
.setValueColor(this.getState())
|
|
108
|
+
.setVisible(this.getNumberVisible());
|
|
101
109
|
};
|
|
102
110
|
|
|
103
111
|
/**
|
|
@@ -18,7 +18,10 @@ sap.ui.define([], function () {
|
|
|
18
18
|
*/
|
|
19
19
|
NumericIndicatorsRenderer.render = function (oRm, oNumericIndicators) {
|
|
20
20
|
var oMainIndicator = oNumericIndicators.getAggregation("_mainIndicator"),
|
|
21
|
-
oSideIndicators = oNumericIndicators.getSideIndicators()
|
|
21
|
+
oSideIndicators = oNumericIndicators.getSideIndicators(),
|
|
22
|
+
bHasVisibleSideIndicator = oSideIndicators.some(function (oIndicator) {
|
|
23
|
+
return oIndicator.getVisible();
|
|
24
|
+
});
|
|
22
25
|
|
|
23
26
|
oRm.openStart("div", oNumericIndicators)
|
|
24
27
|
.class("sapFCardNumericIndicators")
|
|
@@ -31,7 +34,7 @@ sap.ui.define([], function () {
|
|
|
31
34
|
|
|
32
35
|
oRm.openEnd();
|
|
33
36
|
|
|
34
|
-
if (oMainIndicator) {
|
|
37
|
+
if (oMainIndicator && oNumericIndicators.getNumberVisible()) {
|
|
35
38
|
oRm.openStart("div")
|
|
36
39
|
.class("sapFCardNumericIndicatorsMain")
|
|
37
40
|
.openEnd()
|
|
@@ -44,7 +47,7 @@ sap.ui.define([], function () {
|
|
|
44
47
|
.close("div");
|
|
45
48
|
}
|
|
46
49
|
|
|
47
|
-
if (oSideIndicators.length !== 0) {
|
|
50
|
+
if (oSideIndicators.length !== 0 && bHasVisibleSideIndicator) {
|
|
48
51
|
oRm.openStart("div")
|
|
49
52
|
.class("sapFCardNumericIndicatorsSide")
|
|
50
53
|
.openEnd();
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.f.cards.loading.ListPlaceholder
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.109.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
@@ -30,9 +30,8 @@ sap.ui.define([
|
|
|
30
30
|
metadata: {
|
|
31
31
|
library: "sap.f",
|
|
32
32
|
properties: {
|
|
33
|
-
|
|
34
33
|
/**
|
|
35
|
-
* The maxLegendItems set to the
|
|
34
|
+
* The maxLegendItems set to the legend items.
|
|
36
35
|
*/
|
|
37
36
|
maxLegendItems: {
|
|
38
37
|
type : "int",
|
|
@@ -49,7 +48,7 @@ sap.ui.define([
|
|
|
49
48
|
},
|
|
50
49
|
renderer: {
|
|
51
50
|
render: function (oRm, oControl) {
|
|
52
|
-
var
|
|
51
|
+
var iMinItems = oControl.getMinItems(),
|
|
53
52
|
iMaxLegendItems = oControl.getMaxLegendItems(),
|
|
54
53
|
oItem = oControl.getItem(),
|
|
55
54
|
oLegendItem = oControl.getLegendItem(),
|
|
@@ -138,7 +137,7 @@ sap.ui.define([
|
|
|
138
137
|
|
|
139
138
|
oRm.openEnd();
|
|
140
139
|
|
|
141
|
-
for (i = 0; i <
|
|
140
|
+
for (i = 0; i < iMinItems; i++) {
|
|
142
141
|
oRm.openStart("div")
|
|
143
142
|
.class("sapFCardListPlaceholderItem")
|
|
144
143
|
.style("height", oControl.getItemHeight())
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.core.Control
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.109.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
@@ -32,9 +32,9 @@ sap.ui.define([
|
|
|
32
32
|
properties: {
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* The
|
|
35
|
+
* The minimum number of items set to the list.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
minItems: {
|
|
38
38
|
type : "int",
|
|
39
39
|
group : "Misc"
|
|
40
40
|
},
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
renderer: {
|
|
55
55
|
apiVersion: 2,
|
|
56
56
|
render: function (oRm, oControl) {
|
|
57
|
-
var
|
|
57
|
+
var iMinItems = oControl.getMinItems(),
|
|
58
58
|
oItem = oControl.getItem(),
|
|
59
59
|
// set title for screen reader
|
|
60
60
|
oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
|
|
75
75
|
oRm.openEnd();
|
|
76
76
|
|
|
77
|
-
for (var i = 0; i <
|
|
77
|
+
for (var i = 0; i < iMinItems; i++) {
|
|
78
78
|
oRm.openStart("div")
|
|
79
79
|
.class("sapFCardListPlaceholderItem")
|
|
80
80
|
.style("height", oControl.getItemHeight())
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.core.Control
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.109.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
@@ -32,9 +32,9 @@ sap.ui.define([
|
|
|
32
32
|
properties: {
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* The
|
|
35
|
+
* The minimum number of items (table rows) set to the table
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
minItems: {
|
|
38
38
|
type : "int",
|
|
39
39
|
group : "Misc"
|
|
40
40
|
},
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
renderer: {
|
|
53
53
|
apiVersion: 2,
|
|
54
54
|
render: function (oRm, oControl) {
|
|
55
|
-
var
|
|
55
|
+
var iMinItems = oControl.getMinItems(),
|
|
56
56
|
iColumns = oControl.getColumns(),
|
|
57
57
|
bHasActualContent = oControl.getParent()._getTable().getColumns().length,
|
|
58
58
|
// set title for screen reader
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
|
|
78
78
|
oRm.openEnd();
|
|
79
79
|
|
|
80
|
-
for (var i = 0; i <
|
|
80
|
+
for (var i = 0; i < iMinItems + 1; i++) { // number of rows + header
|
|
81
81
|
oRm.openStart("div")
|
|
82
82
|
.class("sapFCardTablePlaceholderItem")
|
|
83
83
|
.style("height", oControl.getItemHeight())
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.core.Control
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.109.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
@@ -32,9 +32,9 @@ sap.ui.define([
|
|
|
32
32
|
properties: {
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* The
|
|
35
|
+
* The minimum number of items set to the timeline.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
minItems: {
|
|
38
38
|
type : "int",
|
|
39
39
|
group : "Misc"
|
|
40
40
|
},
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
renderer: {
|
|
55
55
|
apiVersion: 2,
|
|
56
56
|
render: function (oRm, oControl) {
|
|
57
|
-
var
|
|
57
|
+
var iMinItems = oControl.getMinItems(),
|
|
58
58
|
oItem = oControl.getItem(),
|
|
59
59
|
// set title for screen reader
|
|
60
60
|
oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
|
|
75
75
|
oRm.openEnd();
|
|
76
76
|
|
|
77
|
-
for (var i = 0; i <
|
|
77
|
+
for (var i = 0; i < iMinItems; i++) {
|
|
78
78
|
oRm.openStart("div")
|
|
79
79
|
.class("sapFCardTimelinePlaceholderItem")
|
|
80
80
|
.style("height", oControl.getItemHeight())
|
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
.openEnd()
|
|
92
92
|
.close("div");
|
|
93
93
|
|
|
94
|
-
if (i !==
|
|
94
|
+
if (i !== iMinItems - 1) {
|
|
95
95
|
oRm.openStart("div")
|
|
96
96
|
.class("sapFCardTimelinePlaceholderLine")
|
|
97
97
|
.class("sapFCardLoadingShimmer")
|