@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
|
@@ -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/
|
|
8
|
-
"
|
|
9
|
-
], function (
|
|
7
|
+
"sap/f/cards/loading/PlaceholderBase",
|
|
8
|
+
"./GenericPlaceholderRenderer"
|
|
9
|
+
], function (PlaceholderBase, GenericPlaceholderRenderer) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -19,100 +19,18 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.core.Control
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.115.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.76
|
|
27
27
|
* @alias sap.f.cards.loading.GenericPlaceholder
|
|
28
28
|
*/
|
|
29
|
-
var GenericPlaceholder =
|
|
29
|
+
var GenericPlaceholder = PlaceholderBase.extend("sap.f.cards.loading.GenericPlaceholder", {
|
|
30
30
|
metadata: {
|
|
31
31
|
library: "sap.f"
|
|
32
32
|
},
|
|
33
|
-
renderer:
|
|
34
|
-
apiVersion: 2,
|
|
35
|
-
render: function (oRm, oControl) {
|
|
36
|
-
// set title for screen reader
|
|
37
|
-
var oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
|
|
38
|
-
sTitle = oResBundle.getText("BUSY_TEXT");
|
|
39
|
-
|
|
40
|
-
oRm.openStart("div", oControl)
|
|
41
|
-
.class("sapFCardContentPlaceholder")
|
|
42
|
-
.class("sapFCardContentGenericPlaceholder")
|
|
43
|
-
.attr("tabindex", "0")
|
|
44
|
-
.attr("title", sTitle);
|
|
45
|
-
|
|
46
|
-
oRm.accessibilityState(oControl, {
|
|
47
|
-
role: "progressbar",
|
|
48
|
-
valuemin: "0",
|
|
49
|
-
valuemax: "100"
|
|
50
|
-
});
|
|
51
|
-
oRm.openEnd();
|
|
52
|
-
|
|
53
|
-
oRm.openStart("div")
|
|
54
|
-
.class("sapFCardLoadingShimmer")
|
|
55
|
-
.openEnd();
|
|
56
|
-
|
|
57
|
-
this.renderSVG(oRm);
|
|
58
|
-
|
|
59
|
-
oRm.close("div");
|
|
60
|
-
oRm.close("div");
|
|
61
|
-
},
|
|
62
|
-
renderSVG: function (oRm) {
|
|
63
|
-
oRm.openStart("svg")
|
|
64
|
-
.attr("height", "100%")
|
|
65
|
-
.attr("xmlns", "http://www.w3.org/2000/svg").attr("version", "1.1")
|
|
66
|
-
.attr("viewBox", "0 0 144 144")
|
|
67
|
-
.class("sapFCardSVG")
|
|
68
|
-
.openEnd();
|
|
69
|
-
|
|
70
|
-
oRm.openStart("g")
|
|
71
|
-
.openEnd();
|
|
72
|
-
|
|
73
|
-
oRm.openStart("path")
|
|
74
|
-
.attr("d", "M0,0v144h144V0H0z M36.4,114h-8.8V87.8h8.8V114z M50.3,114h-9.2V80.8h9.2V114z M64.1,114h-9.2V99.9h9.2V114z M66.9,64.9 c0,1.6-0.8,2.4-2.2,2.4H26.8c-1.6,0-2.4-0.8-2.4-2.4V26.4c0-1.6,0.8-2.4,2.4-2.4h37.9c1.5,0,2.2,0.8,2.2,2.4V64.9z M119.6,117.6 c0,1.6-0.8,2.4-2.2,2.4H79.1c-1.6,0-2.4-0.8-2.4-2.4V79.1c0-1.6,0.8-2.4,2.4-2.4h38.2c1.5,0,2.2,0.8,2.2,2.4V117.6z M119.6,64.7 c0,0.6-0.2,1.2-0.7,1.8c-0.4,0.6-1,0.8-1.6,0.8H79.1c-0.6,0-1.2-0.3-1.7-0.8c-0.5-0.6-0.8-1.2-0.8-1.8V26.4c0-0.6,0.3-1.2,0.8-1.7 c0.6-0.5,1.2-0.8,1.8-0.8h38.1c1.5,0,2.2,0.8,2.2,2.4V64.7z")
|
|
75
|
-
.openEnd()
|
|
76
|
-
.close("path");
|
|
77
|
-
|
|
78
|
-
oRm.openStart("path")
|
|
79
|
-
.attr("d", "M92.3,104.8l-6.6-5.1l-4.5,6l9.6,7.3c0.2,0.4,0.9,0.7,2.1,0.9c1.4,0,2.5-0.6,3.4-1.7L114,87l-6.2-4.3L92.3,104.8z")
|
|
80
|
-
.openEnd()
|
|
81
|
-
.close("path");
|
|
82
|
-
|
|
83
|
-
oRm.openStart("rect")
|
|
84
|
-
.attr("x", "32.8")
|
|
85
|
-
.attr("y", "43.1")
|
|
86
|
-
.attr("width", "25.9")
|
|
87
|
-
.attr("height", "5.2")
|
|
88
|
-
.openEnd()
|
|
89
|
-
.close("rect");
|
|
90
|
-
|
|
91
|
-
oRm.openStart("rect")
|
|
92
|
-
.attr("x", "32.8")
|
|
93
|
-
.attr("y", "52.5")
|
|
94
|
-
.attr("width", "25.9")
|
|
95
|
-
.attr("height", "5.2")
|
|
96
|
-
.openEnd()
|
|
97
|
-
.close("rect");
|
|
98
|
-
|
|
99
|
-
oRm.openStart("path")
|
|
100
|
-
.attr("d", "M115.9,27.2H81c-0.8,0-1.1,0.4-1.1,1.1v34.9c0,0.6,0.4,0.9,1.1,0.9h34.9c0.6,0,0.9-0.3,0.9-0.9V28.3 C116.8,27.6,116.5,27.2,115.9,27.2z M93.8,35.3c1.2-0.9,2.7-1.4,4.4-1.4c1.9,0,3.4,0.5,4.5,1.6c1.1,1.1,1.7,2.7,1.7,4.8 c0,1.9-0.7,3.3-2,4.2s-2.7,1.4-4.2,1.4c-1.8,0-3.2-0.5-4.4-1.5c-1.2-1-1.8-2.6-1.8-4.7C92.1,37.8,92.7,36.3,93.8,35.3z M108.8,59.6 H87.4v-5.8c0-1.6,0.3-2.9,1-3.8c0.7-0.9,1.6-1.7,2.6-2.2c1.1-0.5,2.2-0.8,3.4-0.9c1.2-0.1,2.3-0.2,3.3-0.2h1.1 c2.6,0,4.9,0.4,6.9,1.3c2,0.9,3,2.8,3,5.8V59.6z")
|
|
101
|
-
.openEnd()
|
|
102
|
-
.close("path");
|
|
103
|
-
|
|
104
|
-
oRm.openStart("rect")
|
|
105
|
-
.attr("x", "32.8")
|
|
106
|
-
.attr("y", "33.8")
|
|
107
|
-
.attr("width", "25.9")
|
|
108
|
-
.attr("height", "5.1")
|
|
109
|
-
.openEnd()
|
|
110
|
-
.close("rect");
|
|
111
|
-
|
|
112
|
-
oRm.close("g");
|
|
113
|
-
oRm.close("svg");
|
|
114
|
-
}
|
|
115
|
-
}
|
|
33
|
+
renderer: GenericPlaceholderRenderer
|
|
116
34
|
});
|
|
117
35
|
|
|
118
36
|
return GenericPlaceholder;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(["sap/ui/core/Renderer", "./PlaceholderBaseRenderer"], function(Renderer, PlaceholderBaseRenderer) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* GenericPlaceholderRenderer renderer.
|
|
12
|
+
* @namespace
|
|
13
|
+
*/
|
|
14
|
+
var GenericPlaceholderRenderer = Renderer.extend(PlaceholderBaseRenderer);
|
|
15
|
+
|
|
16
|
+
GenericPlaceholderRenderer.apiVersion = 2;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CSS class to be applied to the HTML root element of the placeholder.
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
GenericPlaceholderRenderer.CSS_CLASS_PLACEHOLDER = "sapFCardContentGenericPlaceholder";
|
|
24
|
+
|
|
25
|
+
GenericPlaceholderRenderer.renderSVG = function(oRm) {
|
|
26
|
+
oRm.openStart("svg")
|
|
27
|
+
.attr("height", "100%")
|
|
28
|
+
.attr("xmlns", "http://www.w3.org/2000/svg").attr("version", "1.1")
|
|
29
|
+
.attr("viewBox", "0 0 144 144")
|
|
30
|
+
.class("sapFCardSVG")
|
|
31
|
+
.openEnd();
|
|
32
|
+
|
|
33
|
+
oRm.openStart("g")
|
|
34
|
+
.openEnd();
|
|
35
|
+
|
|
36
|
+
oRm.openStart("path")
|
|
37
|
+
.attr("d", "M0,0v144h144V0H0z M36.4,114h-8.8V87.8h8.8V114z M50.3,114h-9.2V80.8h9.2V114z M64.1,114h-9.2V99.9h9.2V114z M66.9,64.9 c0,1.6-0.8,2.4-2.2,2.4H26.8c-1.6,0-2.4-0.8-2.4-2.4V26.4c0-1.6,0.8-2.4,2.4-2.4h37.9c1.5,0,2.2,0.8,2.2,2.4V64.9z M119.6,117.6 c0,1.6-0.8,2.4-2.2,2.4H79.1c-1.6,0-2.4-0.8-2.4-2.4V79.1c0-1.6,0.8-2.4,2.4-2.4h38.2c1.5,0,2.2,0.8,2.2,2.4V117.6z M119.6,64.7 c0,0.6-0.2,1.2-0.7,1.8c-0.4,0.6-1,0.8-1.6,0.8H79.1c-0.6,0-1.2-0.3-1.7-0.8c-0.5-0.6-0.8-1.2-0.8-1.8V26.4c0-0.6,0.3-1.2,0.8-1.7 c0.6-0.5,1.2-0.8,1.8-0.8h38.1c1.5,0,2.2,0.8,2.2,2.4V64.7z")
|
|
38
|
+
.openEnd()
|
|
39
|
+
.close("path");
|
|
40
|
+
|
|
41
|
+
oRm.openStart("path")
|
|
42
|
+
.attr("d", "M92.3,104.8l-6.6-5.1l-4.5,6l9.6,7.3c0.2,0.4,0.9,0.7,2.1,0.9c1.4,0,2.5-0.6,3.4-1.7L114,87l-6.2-4.3L92.3,104.8z")
|
|
43
|
+
.openEnd()
|
|
44
|
+
.close("path");
|
|
45
|
+
|
|
46
|
+
oRm.openStart("rect")
|
|
47
|
+
.attr("x", "32.8")
|
|
48
|
+
.attr("y", "43.1")
|
|
49
|
+
.attr("width", "25.9")
|
|
50
|
+
.attr("height", "5.2")
|
|
51
|
+
.openEnd()
|
|
52
|
+
.close("rect");
|
|
53
|
+
|
|
54
|
+
oRm.openStart("rect")
|
|
55
|
+
.attr("x", "32.8")
|
|
56
|
+
.attr("y", "52.5")
|
|
57
|
+
.attr("width", "25.9")
|
|
58
|
+
.attr("height", "5.2")
|
|
59
|
+
.openEnd()
|
|
60
|
+
.close("rect");
|
|
61
|
+
|
|
62
|
+
oRm.openStart("path")
|
|
63
|
+
.attr("d", "M115.9,27.2H81c-0.8,0-1.1,0.4-1.1,1.1v34.9c0,0.6,0.4,0.9,1.1,0.9h34.9c0.6,0,0.9-0.3,0.9-0.9V28.3 C116.8,27.6,116.5,27.2,115.9,27.2z M93.8,35.3c1.2-0.9,2.7-1.4,4.4-1.4c1.9,0,3.4,0.5,4.5,1.6c1.1,1.1,1.7,2.7,1.7,4.8 c0,1.9-0.7,3.3-2,4.2s-2.7,1.4-4.2,1.4c-1.8,0-3.2-0.5-4.4-1.5c-1.2-1-1.8-2.6-1.8-4.7C92.1,37.8,92.7,36.3,93.8,35.3z M108.8,59.6 H87.4v-5.8c0-1.6,0.3-2.9,1-3.8c0.7-0.9,1.6-1.7,2.6-2.2c1.1-0.5,2.2-0.8,3.4-0.9c1.2-0.1,2.3-0.2,3.3-0.2h1.1 c2.6,0,4.9,0.4,6.9,1.3c2,0.9,3,2.8,3,5.8V59.6z")
|
|
64
|
+
.openEnd()
|
|
65
|
+
.close("path");
|
|
66
|
+
|
|
67
|
+
oRm.openStart("rect")
|
|
68
|
+
.attr("x", "32.8")
|
|
69
|
+
.attr("y", "33.8")
|
|
70
|
+
.attr("width", "25.9")
|
|
71
|
+
.attr("height", "5.1")
|
|
72
|
+
.openEnd()
|
|
73
|
+
.close("rect");
|
|
74
|
+
|
|
75
|
+
oRm.close("g");
|
|
76
|
+
oRm.close("svg");
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
GenericPlaceholderRenderer.renderContent = function(oControl, oRm) {
|
|
81
|
+
oRm.openStart("div")
|
|
82
|
+
.class("sapFCardLoadingShimmer")
|
|
83
|
+
.openEnd();
|
|
84
|
+
|
|
85
|
+
this.renderSVG(oRm);
|
|
86
|
+
oRm.close("div");
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
GenericPlaceholderRenderer.addOuterAttributes = function(oControl, oRm) {
|
|
90
|
+
|
|
91
|
+
PlaceholderBaseRenderer.addOuterAttributes.apply(this, arguments);
|
|
92
|
+
|
|
93
|
+
oRm.class(GenericPlaceholderRenderer.CSS_CLASS_PLACEHOLDER);
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
return GenericPlaceholderRenderer;
|
|
98
|
+
|
|
99
|
+
}, /* bExport= */ true);
|
|
@@ -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/
|
|
8
|
-
"
|
|
9
|
-
], function (
|
|
7
|
+
"sap/f/cards/loading/PlaceholderBase",
|
|
8
|
+
"./ListPlaceholderRenderer"
|
|
9
|
+
], function (PlaceholderBase, ListPlaceholderRenderer) {
|
|
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.
|
|
22
|
+
* @version 1.115.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.76
|
|
27
27
|
* @alias sap.f.cards.loading.ListPlaceholder
|
|
28
28
|
*/
|
|
29
|
-
var ListPlaceholder =
|
|
29
|
+
var ListPlaceholder = PlaceholderBase.extend("sap.f.cards.loading.ListPlaceholder", {
|
|
30
30
|
metadata: {
|
|
31
31
|
library: "sap.f",
|
|
32
32
|
properties: {
|
|
@@ -51,120 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
renderer:
|
|
55
|
-
apiVersion: 2,
|
|
56
|
-
render: function (oRm, oControl) {
|
|
57
|
-
var iMinItems = oControl.getMinItems(),
|
|
58
|
-
oItem = oControl.getItem(),
|
|
59
|
-
// set title for screen reader
|
|
60
|
-
oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
|
|
61
|
-
sTitle = oResBundle.getText("BUSY_TEXT");
|
|
62
|
-
|
|
63
|
-
oRm.openStart("div", oControl)
|
|
64
|
-
.class("sapFCardContentPlaceholder")
|
|
65
|
-
.class("sapFCardContentListPlaceholder")
|
|
66
|
-
.attr("tabindex", "0")
|
|
67
|
-
.attr("title", sTitle);
|
|
68
|
-
|
|
69
|
-
oRm.accessibilityState(oControl, {
|
|
70
|
-
role: "progressbar",
|
|
71
|
-
valuemin: "0",
|
|
72
|
-
valuemax: "100"
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
oRm.openEnd();
|
|
76
|
-
|
|
77
|
-
for (var i = 0; i < iMinItems; i++) {
|
|
78
|
-
oRm.openStart("div")
|
|
79
|
-
.class("sapFCardListPlaceholderItem")
|
|
80
|
-
.style("height", oControl.getItemHeight())
|
|
81
|
-
.openEnd();
|
|
82
|
-
|
|
83
|
-
if (oItem && oItem.icon) {
|
|
84
|
-
oRm.openStart("div")
|
|
85
|
-
.class("sapFCardListPlaceholderImg")
|
|
86
|
-
.class("sapFCardLoadingShimmer")
|
|
87
|
-
.openEnd()
|
|
88
|
-
.close("div");
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
oRm.openStart("div")
|
|
92
|
-
.class("sapFCardListPlaceholderRows")
|
|
93
|
-
.openEnd();
|
|
94
|
-
|
|
95
|
-
if (oItem) {
|
|
96
|
-
this.renderTitleAndDescription(oRm, oItem);
|
|
97
|
-
this.renderAttributes(oRm, oItem);
|
|
98
|
-
|
|
99
|
-
if (oItem.chart) {
|
|
100
|
-
this.renderRow(oRm);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (oItem.actionsStrip) {
|
|
104
|
-
this.renderRow(oRm);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
oRm.close("div");
|
|
109
|
-
oRm.close("div");
|
|
110
|
-
}
|
|
111
|
-
oRm.close("div");
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
renderTitleAndDescription: function (oRm, oItem) {
|
|
115
|
-
if (oItem.attributes && oItem.title && oItem.description) {
|
|
116
|
-
this.renderRow(oRm, true);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (oItem.title) {
|
|
121
|
-
this.renderRow(oRm);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (oItem.description) {
|
|
125
|
-
this.renderRow(oRm);
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
renderRow: function (oRm, bCombined) {
|
|
130
|
-
oRm.openStart("div")
|
|
131
|
-
.class("sapFCardListPlaceholderRow")
|
|
132
|
-
.class("sapFCardLoadingShimmer");
|
|
133
|
-
|
|
134
|
-
if (bCombined) {
|
|
135
|
-
oRm.class("sapFCardListPlaceholderRowCombined");
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
oRm.openEnd()
|
|
139
|
-
.close("div");
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
renderAttributes: function (oRm, oItem) {
|
|
143
|
-
if (!oItem.attributes) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
var iAttrRows = oItem.attributes.length / 2 + 1;
|
|
148
|
-
|
|
149
|
-
for (var j = 0; j < iAttrRows; j++) {
|
|
150
|
-
oRm.openStart("div")
|
|
151
|
-
.class("sapFCardListPlaceholderRow")
|
|
152
|
-
.openEnd();
|
|
153
|
-
|
|
154
|
-
var iAttrPerRow = j === iAttrRows - 1 ? 1 : 2; // render single attribute on the last row
|
|
155
|
-
|
|
156
|
-
for (var i = 0; i < iAttrPerRow; i++) {
|
|
157
|
-
oRm.openStart("div")
|
|
158
|
-
.class("sapFCardListPlaceholderAttr")
|
|
159
|
-
.class("sapFCardLoadingShimmer")
|
|
160
|
-
.openEnd()
|
|
161
|
-
.close("div");
|
|
162
|
-
}
|
|
163
|
-
oRm.close("div");
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
}
|
|
54
|
+
renderer: ListPlaceholderRenderer
|
|
168
55
|
});
|
|
169
56
|
|
|
170
57
|
return ListPlaceholder;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(["sap/ui/core/Renderer", "./PlaceholderBaseRenderer"], function(Renderer, PlaceholderBaseRenderer) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* ListPlaceholderRenderer renderer.
|
|
12
|
+
* @namespace
|
|
13
|
+
*/
|
|
14
|
+
var ListPlaceholderRenderer = Renderer.extend(PlaceholderBaseRenderer);
|
|
15
|
+
|
|
16
|
+
ListPlaceholderRenderer.apiVersion = 2;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CSS class to be applied to the HTML root element of the placeholder.
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
ListPlaceholderRenderer.CSS_CLASS_PLACEHOLDER = "sapFCardContentListPlaceholder";
|
|
24
|
+
|
|
25
|
+
ListPlaceholderRenderer.renderTitleAndDescription = function(oRm, oItem) {
|
|
26
|
+
if (oItem.attributes && oItem.title && oItem.description) {
|
|
27
|
+
this.renderRow(oRm, true);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (oItem.title) {
|
|
32
|
+
this.renderRow(oRm);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (oItem.description) {
|
|
36
|
+
this.renderRow(oRm);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
ListPlaceholderRenderer.renderRow = function (oRm, bCombined) {
|
|
41
|
+
oRm.openStart("div")
|
|
42
|
+
.class("sapFCardListPlaceholderRow")
|
|
43
|
+
.class("sapFCardLoadingShimmer");
|
|
44
|
+
|
|
45
|
+
if (bCombined) {
|
|
46
|
+
oRm.class("sapFCardListPlaceholderRowCombined");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
oRm.openEnd()
|
|
50
|
+
.close("div");
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
ListPlaceholderRenderer.renderAttributes = function (oRm, oItem) {
|
|
54
|
+
if (!oItem.attributes) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var iAttrRows = oItem.attributes.length / 2 + 1;
|
|
59
|
+
|
|
60
|
+
for (var j = 0; j < iAttrRows; j++) {
|
|
61
|
+
oRm.openStart("div")
|
|
62
|
+
.class("sapFCardListPlaceholderRow")
|
|
63
|
+
.openEnd();
|
|
64
|
+
|
|
65
|
+
var iAttrPerRow = j === iAttrRows - 1 ? 1 : 2; // render single attribute on the last row
|
|
66
|
+
|
|
67
|
+
for (var i = 0; i < iAttrPerRow; i++) {
|
|
68
|
+
oRm.openStart("div")
|
|
69
|
+
.class("sapFCardListPlaceholderAttr")
|
|
70
|
+
.class("sapFCardLoadingShimmer")
|
|
71
|
+
.openEnd()
|
|
72
|
+
.close("div");
|
|
73
|
+
}
|
|
74
|
+
oRm.close("div");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
ListPlaceholderRenderer.renderContent = function(oControl, oRm) {
|
|
80
|
+
|
|
81
|
+
var iMinItems = oControl.getMinItems(),
|
|
82
|
+
oItem = oControl.getItem();
|
|
83
|
+
|
|
84
|
+
for (var i = 0; i < iMinItems; i++) {
|
|
85
|
+
oRm.openStart("div")
|
|
86
|
+
.class("sapFCardListPlaceholderItem")
|
|
87
|
+
.style("height", oControl.getItemHeight())
|
|
88
|
+
.openEnd();
|
|
89
|
+
|
|
90
|
+
if (oItem && oItem.icon) {
|
|
91
|
+
oRm.openStart("div")
|
|
92
|
+
.class("sapFCardListPlaceholderImg")
|
|
93
|
+
.class("sapFCardLoadingShimmer")
|
|
94
|
+
.openEnd()
|
|
95
|
+
.close("div");
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
oRm.openStart("div")
|
|
99
|
+
.class("sapFCardListPlaceholderRows")
|
|
100
|
+
.openEnd();
|
|
101
|
+
//debugger
|
|
102
|
+
if (oItem) {
|
|
103
|
+
this.renderTitleAndDescription(oRm, oItem);
|
|
104
|
+
this.renderAttributes(oRm, oItem);
|
|
105
|
+
|
|
106
|
+
if (oItem.chart) {
|
|
107
|
+
this.renderRow(oRm);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (oItem.actionsStrip) {
|
|
111
|
+
this.renderRow(oRm);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
oRm.close("div");
|
|
116
|
+
oRm.close("div");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
ListPlaceholderRenderer.addOuterAttributes = function(oControl, oRm) {
|
|
122
|
+
|
|
123
|
+
PlaceholderBaseRenderer.addOuterAttributes.apply(this, arguments);
|
|
124
|
+
|
|
125
|
+
oRm.class(ListPlaceholderRenderer.CSS_CLASS_PLACEHOLDER);
|
|
126
|
+
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
return ListPlaceholderRenderer;
|
|
130
|
+
|
|
131
|
+
}, /* bExport= */ true);
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/
|
|
8
|
-
"
|
|
7
|
+
"sap/f/cards/loading/PlaceholderBase",
|
|
8
|
+
"./ObjectPlaceholderRenderer",
|
|
9
9
|
"sap/ui/core/ResizeHandler",
|
|
10
10
|
"sap/ui/dom/units/Rem"
|
|
11
11
|
], function (
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
PlaceholderBase,
|
|
13
|
+
ObjectPlaceholderRenderer,
|
|
14
14
|
ResizeHandler,
|
|
15
15
|
Rem
|
|
16
16
|
) {
|
|
@@ -29,14 +29,14 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.core.Control
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.115.0
|
|
33
33
|
*
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.104
|
|
37
37
|
* @alias sap.f.cards.loading.ObjectPlaceholder
|
|
38
38
|
*/
|
|
39
|
-
var ObjectPlaceholder =
|
|
39
|
+
var ObjectPlaceholder = PlaceholderBase.extend("sap.f.cards.loading.ObjectPlaceholder", {
|
|
40
40
|
metadata: {
|
|
41
41
|
library: "sap.f",
|
|
42
42
|
properties: {
|
|
@@ -54,56 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
renderer:
|
|
58
|
-
apiVersion: 2,
|
|
59
|
-
render: function (oRm, oObjectPlaceholder) {
|
|
60
|
-
var oResBundle = Core.getLibraryResourceBundle("sap.ui.core"),
|
|
61
|
-
sTitle = oResBundle.getText("BUSY_TEXT");
|
|
62
|
-
|
|
63
|
-
oRm.openStart("div", oObjectPlaceholder)
|
|
64
|
-
.class("sapFCardContentPlaceholder")
|
|
65
|
-
.class("sapFCardContentObjectPlaceholder")
|
|
66
|
-
.attr("tabindex", "0")
|
|
67
|
-
.attr("title", sTitle);
|
|
68
|
-
|
|
69
|
-
oRm.accessibilityState(oObjectPlaceholder, {
|
|
70
|
-
role: "progressbar",
|
|
71
|
-
valuemin: "0",
|
|
72
|
-
valuemax: "100"
|
|
73
|
-
});
|
|
74
|
-
oRm.openEnd();
|
|
75
|
-
|
|
76
|
-
for (var i = 0; i < oObjectPlaceholder._iColsCnt; i++) {
|
|
77
|
-
this.renderColumn(oRm, oObjectPlaceholder._iRowsCnt);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
oRm.close("div");
|
|
81
|
-
},
|
|
82
|
-
renderColumn: function (oRm, iRowsCnt) {
|
|
83
|
-
oRm.openStart("div")
|
|
84
|
-
.class("sapFCardObjectPlaceholderColumn")
|
|
85
|
-
.openEnd();
|
|
86
|
-
|
|
87
|
-
for (var i = 0; i < iRowsCnt; i++) {
|
|
88
|
-
this.renderRow(oRm, "First", false);
|
|
89
|
-
this.renderRow(oRm, "Second", i === iRowsCnt);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
oRm.close("div");
|
|
93
|
-
},
|
|
94
|
-
renderRow: function (oRm, sRow, bLastInColumn) {
|
|
95
|
-
oRm.openStart("div")
|
|
96
|
-
.class("sapFCardLoadingShimmer")
|
|
97
|
-
.class("sapFCardObjectPlaceholderGroup" + sRow + "Row");
|
|
98
|
-
|
|
99
|
-
if (bLastInColumn) {
|
|
100
|
-
oRm.class("sapFCardObjectPlaceholderGroupLastRow");
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
oRm.openEnd()
|
|
104
|
-
.close("div");
|
|
105
|
-
}
|
|
106
|
-
}
|
|
57
|
+
renderer: ObjectPlaceholderRenderer
|
|
107
58
|
});
|
|
108
59
|
|
|
109
60
|
ObjectPlaceholder.prototype.init = function () {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(["sap/ui/core/Renderer", "./PlaceholderBaseRenderer"], function(Renderer, PlaceholderBaseRenderer) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* ObjectPlaceholderRenderer renderer.
|
|
12
|
+
* @namespace
|
|
13
|
+
*/
|
|
14
|
+
var ObjectPlaceholderRenderer = Renderer.extend(PlaceholderBaseRenderer);
|
|
15
|
+
|
|
16
|
+
ObjectPlaceholderRenderer.apiVersion = 2;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CSS class to be applied to the HTML root element of the placeholder.
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
ObjectPlaceholderRenderer.CSS_CLASS_PLACEHOLDER = "sapFCardContentObjectPlaceholder";
|
|
24
|
+
|
|
25
|
+
ObjectPlaceholderRenderer.renderColumn = function(oRm, iRowsCnt) {
|
|
26
|
+
oRm.openStart("div")
|
|
27
|
+
.class("sapFCardObjectPlaceholderColumn")
|
|
28
|
+
.openEnd();
|
|
29
|
+
|
|
30
|
+
for (var i = 0; i < iRowsCnt; i++) {
|
|
31
|
+
this.renderRow(oRm, "First", false);
|
|
32
|
+
this.renderRow(oRm, "Second", i === iRowsCnt);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
oRm.close("div");
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
ObjectPlaceholderRenderer.renderRow = function(oRm, sRow, bLastInColumn) {
|
|
39
|
+
oRm.openStart("div")
|
|
40
|
+
.class("sapFCardLoadingShimmer")
|
|
41
|
+
.class("sapFCardObjectPlaceholderGroup" + sRow + "Row");
|
|
42
|
+
|
|
43
|
+
if (bLastInColumn) {
|
|
44
|
+
oRm.class("sapFCardObjectPlaceholderGroupLastRow");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
oRm.openEnd()
|
|
48
|
+
.close("div");
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
ObjectPlaceholderRenderer.renderContent = function(oControl, oRm) {
|
|
52
|
+
for (var i = 0; i < oControl._iColsCnt; i++) {
|
|
53
|
+
this.renderColumn(oRm, oControl._iRowsCnt);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
ObjectPlaceholderRenderer.addOuterAttributes = function(oControl, oRm) {
|
|
58
|
+
|
|
59
|
+
PlaceholderBaseRenderer.addOuterAttributes.apply(this, arguments);
|
|
60
|
+
|
|
61
|
+
oRm.class(ObjectPlaceholderRenderer.CSS_CLASS_PLACEHOLDER);
|
|
62
|
+
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return ObjectPlaceholderRenderer;
|
|
66
|
+
|
|
67
|
+
}, /* bExport= */ true);
|