@sapui5/sap.suite.ui.microchart 1.90.6 → 1.93.1
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/package.json +1 -1
- package/src/sap/suite/ui/microchart/.library +1 -1
- package/src/sap/suite/ui/microchart/AreaMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/AreaMicroChartItem.js +1 -1
- package/src/sap/suite/ui/microchart/AreaMicroChartLabel.js +1 -1
- package/src/sap/suite/ui/microchart/AreaMicroChartPoint.js +1 -1
- package/src/sap/suite/ui/microchart/AreaMicroChartRenderer.js +8 -16
- package/src/sap/suite/ui/microchart/BulletMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/BulletMicroChartData.js +1 -1
- package/src/sap/suite/ui/microchart/ColumnMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/ColumnMicroChartData.js +1 -1
- package/src/sap/suite/ui/microchart/ColumnMicroChartLabel.js +1 -1
- package/src/sap/suite/ui/microchart/ComparisonMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/ComparisonMicroChartData.js +1 -1
- package/src/sap/suite/ui/microchart/ComparisonMicroChartRenderer.js +8 -13
- package/src/sap/suite/ui/microchart/DeltaMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/DeltaMicroChartRenderer.js +7 -14
- package/src/sap/suite/ui/microchart/HarveyBallMicroChart.js +7 -1
- package/src/sap/suite/ui/microchart/HarveyBallMicroChartItem.js +1 -1
- package/src/sap/suite/ui/microchart/HarveyBallMicroChartRenderer.js +1 -3
- package/src/sap/suite/ui/microchart/InteractiveBarChart.js +28 -5
- package/src/sap/suite/ui/microchart/InteractiveBarChartBar.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveBarChartRenderer.js +73 -81
- package/src/sap/suite/ui/microchart/InteractiveDonutChart.js +30 -7
- package/src/sap/suite/ui/microchart/InteractiveDonutChartRenderer.js +104 -113
- package/src/sap/suite/ui/microchart/InteractiveDonutChartSegment.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveLineChart.js +30 -5
- package/src/sap/suite/ui/microchart/InteractiveLineChartPoint.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveLineChartRenderer.js +136 -132
- package/src/sap/suite/ui/microchart/LineMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/LineMicroChartEmphasizedPoint.js +1 -1
- package/src/sap/suite/ui/microchart/LineMicroChartLine.js +1 -1
- package/src/sap/suite/ui/microchart/LineMicroChartPoint.js +1 -1
- package/src/sap/suite/ui/microchart/LineMicroChartRenderer.js +4 -6
- package/src/sap/suite/ui/microchart/RadialMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/StackedBarMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/StackedBarMicroChartBar.js +1 -1
- package/src/sap/suite/ui/microchart/library.js +2 -2
- package/src/sap/suite/ui/microchart/themes/sap_belize_hcb/ComparisonMicroChart.less +9 -0
- package/src/sap/suite/ui/microchart/themes/sap_belize_hcw/ComparisonMicroChart.less +9 -0
- package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcb/ComparisonMicroChart.less +10 -1
- package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcw/ComparisonMicroChart.less +10 -1
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
|
|
|
17
17
|
* Displays or hides the labels for start and end dates, start and end values, and minimum and maximum values.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
19
|
*
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.93.1
|
|
21
21
|
* @since 1.34
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
@@ -55,8 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
oRm.openEnd();
|
|
56
56
|
|
|
57
57
|
if (bShouldRenderTopLabels) {
|
|
58
|
-
oRm.openStart("div");
|
|
59
|
-
oRm.attr("id", oControl.getId() + "-top-labels");
|
|
58
|
+
oRm.openStart("div", oControl.getId() + "-top-labels");
|
|
60
59
|
oRm.class("sapSuiteAMCLabels");
|
|
61
60
|
oRm.class("sapSuiteAMCPositionTop");
|
|
62
61
|
oRm.openEnd();
|
|
@@ -77,8 +76,7 @@ sap.ui.define([
|
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
if (bShouldRenderLeftLabels) {
|
|
80
|
-
oRm.openStart("div");
|
|
81
|
-
oRm.attr("id", oControl.getId() + "-left-labels");
|
|
79
|
+
oRm.openStart("div", oControl.getId() + "-left-labels");
|
|
82
80
|
oRm.class("sapSuiteAMCSideLabels");
|
|
83
81
|
oRm.class("sapSuiteAMCPositionLeft");
|
|
84
82
|
oRm.openEnd();
|
|
@@ -87,20 +85,17 @@ sap.ui.define([
|
|
|
87
85
|
oRm.close("div");
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
oRm.openStart("div");
|
|
91
|
-
oRm.attr("id", oControl.getId() + "-canvas-cont");
|
|
88
|
+
oRm.openStart("div", oControl.getId() + "-canvas-cont");
|
|
92
89
|
oRm.class("sapSuiteAMCCanvasContainer");
|
|
93
90
|
oRm.openEnd();
|
|
94
|
-
oRm.openStart("canvas");
|
|
95
|
-
oRm.attr("id", oControl.getId() + "-canvas");
|
|
91
|
+
oRm.openStart("canvas", oControl.getId() + "-canvas");
|
|
96
92
|
oRm.class("sapSuiteAMCCanvas");
|
|
97
93
|
oRm.openEnd();
|
|
98
94
|
oRm.close("canvas");
|
|
99
95
|
oRm.close("div");
|
|
100
96
|
|
|
101
97
|
if (bShouldRenderRightLabels) {
|
|
102
|
-
oRm.openStart("div");
|
|
103
|
-
oRm.attr("id", oControl.getId() + "-right-labels");
|
|
98
|
+
oRm.openStart("div", oControl.getId() + "-right-labels");
|
|
104
99
|
oRm.class("sapSuiteAMCSideLabels");
|
|
105
100
|
oRm.class("sapSuiteAMCPositionRight");
|
|
106
101
|
oRm.openEnd();
|
|
@@ -114,8 +109,7 @@ sap.ui.define([
|
|
|
114
109
|
}
|
|
115
110
|
|
|
116
111
|
if (bShouldRenderBottomLabels) {
|
|
117
|
-
oRm.openStart("div");
|
|
118
|
-
oRm.attr("id", oControl.getId() + "-bottom-labels");
|
|
112
|
+
oRm.openStart("div", oControl.getId() + "-bottom-labels");
|
|
119
113
|
oRm.class("sapSuiteAMCLabels");
|
|
120
114
|
oRm.class("sapSuiteAMCPositionBtm");
|
|
121
115
|
oRm.openEnd();
|
|
@@ -129,8 +123,7 @@ sap.ui.define([
|
|
|
129
123
|
oRm.close("div");
|
|
130
124
|
}
|
|
131
125
|
|
|
132
|
-
oRm.openStart("div");
|
|
133
|
-
oRm.attr("id", oControl.getId() + "-css-helper");
|
|
126
|
+
oRm.openStart("div", oControl.getId() + "-css-helper");
|
|
134
127
|
oRm.style("display", "none");
|
|
135
128
|
oRm.openEnd();
|
|
136
129
|
oRm.close("div");
|
|
@@ -179,8 +172,7 @@ sap.ui.define([
|
|
|
179
172
|
}
|
|
180
173
|
|
|
181
174
|
var sLabel = oLabel ? oLabel.getLabel() : "";
|
|
182
|
-
oRm.openStart("div");
|
|
183
|
-
oRm.attr("id", oControl.getId() + sId);
|
|
175
|
+
oRm.openStart("div", oControl.getId() + sId);
|
|
184
176
|
|
|
185
177
|
oRm.class("sapSuiteAMCSemanticColor" + oLabel.getColor());
|
|
186
178
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* <br>Note: You can assign a custom tooltip for this microchart. The custom tooltip can be set using expression binding. When no custom tooltip is defined, the tooltip is generated automatically based on the logic described in {@link sap.ui.core.Element#getTooltip_AsString}. For a combination of a generated and a custom tooltip, use <code>((AltText))</code> inside of the tooltip string. The aggregated data of the microchart can also be customized.
|
|
41
41
|
* @extends sap.ui.core.Control
|
|
42
42
|
*
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.93.1
|
|
44
44
|
* @since 1.34
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* <br>Note: You can assign a custom tooltip for this microchart. The custom tooltip can be set using expression binding. When no custom tooltip is defined, the tooltip is generated automatically based on the logic described in {@link sap.ui.core.Element#getTooltip_AsString}. For a combination of a generated and a custom tooltip, use <code>((AltText))</code> inside of the tooltip string. The aggregated data of the microchart can also be customized.
|
|
34
34
|
* @extends sap.ui.core.Control
|
|
35
35
|
*
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.93.1
|
|
37
37
|
* @since 1.34
|
|
38
38
|
*
|
|
39
39
|
* @public
|
|
@@ -53,16 +53,14 @@ sap.ui.define([
|
|
|
53
53
|
|
|
54
54
|
this._renderInnerContent(oRm, oControl, sAriaLabel);
|
|
55
55
|
|
|
56
|
-
oRm.openStart("div");
|
|
57
|
-
oRm.attr("id", oControl.getId() + "-info");
|
|
56
|
+
oRm.openStart("div", oControl.getId() + "-info");
|
|
58
57
|
oRm.attr("aria-hidden", "true");
|
|
59
58
|
oRm.style("display", "none");
|
|
60
59
|
oRm.openEnd();
|
|
61
60
|
oRm.text(sAriaLabel);
|
|
62
61
|
oRm.close("div");
|
|
63
62
|
|
|
64
|
-
oRm.openStart("div");
|
|
65
|
-
oRm.attr("id", oControl.getId() + "-hidden");
|
|
63
|
+
oRm.openStart("div", oControl.getId() + "-hidden");
|
|
66
64
|
oRm.attr("aria-hidden", "true");
|
|
67
65
|
// oRm.writeAttribute("tabindex", "-1");
|
|
68
66
|
oRm.attr("focusable", "false");
|
|
@@ -149,8 +147,7 @@ sap.ui.define([
|
|
|
149
147
|
ComparisonMicroChartRenderer._renderChartBar = function(oRm, oControl, oChartData, iIndex, sColor) {
|
|
150
148
|
var oData = oControl.getData()[iIndex];
|
|
151
149
|
|
|
152
|
-
oRm.openStart("div");
|
|
153
|
-
oRm.attr("id", oControl.getId() + "-chart-item-bar-" + iIndex);
|
|
150
|
+
oRm.openStart("div", oControl.getId() + "-chart-item-bar-" + iIndex);
|
|
154
151
|
oRm.class("sapSuiteCpMCChartBar");
|
|
155
152
|
|
|
156
153
|
if (oControl.getData()[iIndex].hasListeners("press")) {
|
|
@@ -162,7 +159,7 @@ sap.ui.define([
|
|
|
162
159
|
if (!library._isTooltipSuppressed(oControl._getBarAltText(iIndex))) {
|
|
163
160
|
oRm.attr("title", oControl._getBarAltText(iIndex));
|
|
164
161
|
} else {
|
|
165
|
-
// By setting the empty title attribute on the bar, the
|
|
162
|
+
// By setting the empty title attribute on the bar, the following desired behavior is achieved:
|
|
166
163
|
// no tooltip is displayed when hovering over the bar press area, independent whether the tooltip of the chart is suppressed or displayed.
|
|
167
164
|
oRm.attr("title", "");
|
|
168
165
|
}
|
|
@@ -198,9 +195,9 @@ sap.ui.define([
|
|
|
198
195
|
oRm.openStart("div");
|
|
199
196
|
oRm.attr("data-bar-index", iIndex);
|
|
200
197
|
oRm.class("sapSuiteCpMCChartBarNoValue");
|
|
201
|
-
if (
|
|
198
|
+
if (oChartData.negativeNoValue && !oChartData.value) {
|
|
202
199
|
oRm.class("sapSuiteCpMCNegPosNoValue");
|
|
203
|
-
} else if (
|
|
200
|
+
} else if (oChartData.negativeNoValue || oChartData.value) {
|
|
204
201
|
oRm.class("sapSuiteCpMCNotFirstBarPart");
|
|
205
202
|
}
|
|
206
203
|
oRm.style("width", oChartData.positiveNoValue + "%");
|
|
@@ -214,8 +211,7 @@ sap.ui.define([
|
|
|
214
211
|
ComparisonMicroChartRenderer._renderChartTitle = function(oRm, oControl, iIndex) {
|
|
215
212
|
var oData = oControl.getData()[iIndex];
|
|
216
213
|
|
|
217
|
-
oRm.openStart("div");
|
|
218
|
-
oRm.attr("id", oControl.getId() + "-chart-item-" + iIndex + "-title");
|
|
214
|
+
oRm.openStart("div", oControl.getId() + "-chart-item-" + iIndex + "-title");
|
|
219
215
|
oRm.class("sapSuiteCpMCChartItemTitle");
|
|
220
216
|
oRm.openEnd();
|
|
221
217
|
oRm.text(oData.getTitle());
|
|
@@ -229,8 +225,7 @@ sap.ui.define([
|
|
|
229
225
|
var sAValToShow = sDisplayValue ? sDisplayValue : "" + oData.getValue();
|
|
230
226
|
var sValScale = sAValToShow + sScale;
|
|
231
227
|
|
|
232
|
-
oRm.openStart("div");
|
|
233
|
-
oRm.attr("id", oControl.getId() + "-chart-item-" + iIndex + "-value");
|
|
228
|
+
oRm.openStart("div", oControl.getId() + "-chart-item-" + iIndex + "-value");
|
|
234
229
|
oRm.class("sapSuiteCpMCChartItemValue");
|
|
235
230
|
if (ValueColor[sColor]) {
|
|
236
231
|
oRm.class("sapSuiteCpMCSemanticColor" + oData.getColor());
|
|
@@ -107,11 +107,10 @@ sap.ui.define([
|
|
|
107
107
|
this._renderTitle(oRm, sTitle1, "sapSuiteDMCPositionTop");
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
oRm.openStart("div");
|
|
110
|
+
oRm.openStart("div", oControl.getId() + "-dmc-chart");
|
|
111
111
|
oRm.class("sapSuiteDMCChart");
|
|
112
|
-
oRm.attr("id", oControl.getId() + "-dmc-chart");
|
|
113
112
|
oRm.openEnd();
|
|
114
|
-
oRm.openStart("div");
|
|
113
|
+
oRm.openStart("div", oControl.getId() + "-dmc-bar1");
|
|
115
114
|
oRm.class("sapSuiteDMCBar");
|
|
116
115
|
oRm.class("sapSuiteDMCBar1");
|
|
117
116
|
|
|
@@ -128,7 +127,6 @@ sap.ui.define([
|
|
|
128
127
|
}
|
|
129
128
|
oRm.class(getDir(oControl._oChartData.bar1.left));
|
|
130
129
|
oRm.style("width", oControl._oChartData.bar1.width + "%");
|
|
131
|
-
oRm.attr("id", oControl.getId() + "-dmc-bar1");
|
|
132
130
|
oRm.openEnd();
|
|
133
131
|
oRm.openStart("div");
|
|
134
132
|
oRm.class("sapSuiteDMCBarInternal");
|
|
@@ -137,7 +135,7 @@ sap.ui.define([
|
|
|
137
135
|
oRm.close("div");
|
|
138
136
|
oRm.close("div");
|
|
139
137
|
|
|
140
|
-
oRm.openStart("div");
|
|
138
|
+
oRm.openStart("div", oControl.getId() + "-dmc-bar2");
|
|
141
139
|
oRm.class("sapSuiteDMCBar");
|
|
142
140
|
oRm.class("sapSuiteDMCBar2");
|
|
143
141
|
if (oControl._oChartData.delta.isMax) {
|
|
@@ -153,7 +151,6 @@ sap.ui.define([
|
|
|
153
151
|
}
|
|
154
152
|
oRm.class(getDir(oControl._oChartData.bar2.left));
|
|
155
153
|
oRm.style("width", oControl._oChartData.bar2.width + "%");
|
|
156
|
-
oRm.attr("id", oControl.getId() + "-dmc-bar2");
|
|
157
154
|
oRm.openEnd();
|
|
158
155
|
oRm.openStart("div");
|
|
159
156
|
oRm.class("sapSuiteDMCBarInternal");
|
|
@@ -162,7 +159,7 @@ sap.ui.define([
|
|
|
162
159
|
oRm.close("div");
|
|
163
160
|
oRm.close("div");
|
|
164
161
|
|
|
165
|
-
oRm.openStart("div");
|
|
162
|
+
oRm.openStart("div", oControl.getId() + "-dmc-bar-delta");
|
|
166
163
|
oRm.class("sapSuiteDMCBar");
|
|
167
164
|
oRm.class("sapSuiteDMCBarDelta");
|
|
168
165
|
if (!oControl._oChartData.delta.isMax) {
|
|
@@ -176,7 +173,6 @@ sap.ui.define([
|
|
|
176
173
|
}
|
|
177
174
|
oRm.class(getDir(oControl._oChartData.delta.left));
|
|
178
175
|
oRm.style("width", oControl._oChartData.delta.width + "%");
|
|
179
|
-
oRm.attr("id", oControl.getId() + "-dmc-bar-delta");
|
|
180
176
|
oRm.openEnd();
|
|
181
177
|
oRm.openStart("div");
|
|
182
178
|
fnSetColor(sColor, "background-color");
|
|
@@ -218,16 +214,14 @@ sap.ui.define([
|
|
|
218
214
|
oRm.openStart("div");
|
|
219
215
|
oRm.class("sapSuiteDMCLbls");
|
|
220
216
|
oRm.openEnd();
|
|
221
|
-
oRm.openStart("div");
|
|
222
|
-
oRm.attr("id", oControl.getId() + "-value1");
|
|
217
|
+
oRm.openStart("div", oControl.getId() + "-value1");
|
|
223
218
|
oRm.class("sapSuiteDMCLabel");
|
|
224
219
|
oRm.class("sapSuiteDMCValue1");
|
|
225
220
|
oRm.openEnd();
|
|
226
221
|
oRm.text(sAdv1ToShow);
|
|
227
222
|
oRm.close("div");
|
|
228
223
|
|
|
229
|
-
oRm.openStart("div");
|
|
230
|
-
oRm.attr("id", oControl.getId() + "-delta");
|
|
224
|
+
oRm.openStart("div", oControl.getId() + "-delta");
|
|
231
225
|
oRm.class("sapSuiteDMCLabel");
|
|
232
226
|
oRm.class("sapSuiteDMCDelta");
|
|
233
227
|
fnSetColor(sColor, "color");
|
|
@@ -235,8 +229,7 @@ sap.ui.define([
|
|
|
235
229
|
oRm.text(sAddvToShow);
|
|
236
230
|
oRm.close("div");
|
|
237
231
|
|
|
238
|
-
oRm.openStart("div");
|
|
239
|
-
oRm.attr("id", oControl.getId() + "-value2");
|
|
232
|
+
oRm.openStart("div", oControl.getId() + "-value2");
|
|
240
233
|
oRm.class("sapSuiteDMCLabel");
|
|
241
234
|
oRm.class("sapSuiteDMCValue2");
|
|
242
235
|
oRm.openEnd();
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.core.Control
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.93.1
|
|
39
39
|
* @since 1.34
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
@@ -404,6 +404,12 @@ sap.ui.define([
|
|
|
404
404
|
if (Device.browser.msie) {
|
|
405
405
|
this.$().trigger("focus");
|
|
406
406
|
}
|
|
407
|
+
// if the press event is used then event needs to be marked.Otherwise the Parent Control events should trigger.
|
|
408
|
+
if (this.hasListeners("press") === true) {
|
|
409
|
+
// mark the event for components that needs to know if the event was handled.
|
|
410
|
+
oEvent.setMarked();
|
|
411
|
+
oEvent.stopPropagation();
|
|
412
|
+
}
|
|
407
413
|
this.firePress();
|
|
408
414
|
};
|
|
409
415
|
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/thirdparty/jquery",
|
|
8
7
|
"sap/m/library",
|
|
9
|
-
"sap/ui/Device",
|
|
10
8
|
"./library",
|
|
11
9
|
"sap/base/security/encodeXML",
|
|
12
10
|
"sap/suite/ui/microchart/MicroChartRenderUtils",
|
|
13
11
|
"sap/ui/core/theming/Parameters"
|
|
14
|
-
], function (
|
|
12
|
+
], function (MobileLibrary, library, encodeXML, MicroChartRenderUtils, Parameters) {
|
|
15
13
|
"use strict";
|
|
16
14
|
|
|
17
15
|
// shortcut for sap.m.ValueColor
|
|
@@ -11,9 +11,11 @@ sap.ui.define([
|
|
|
11
11
|
'sap/m/FlexBox',
|
|
12
12
|
'sap/ui/core/ResizeHandler',
|
|
13
13
|
"sap/base/Log",
|
|
14
|
+
"sap/f/IllustratedMessage",
|
|
15
|
+
"sap/f/library",
|
|
14
16
|
"./InteractiveBarChartRenderer"
|
|
15
17
|
],
|
|
16
|
-
function(jQuery, library, MobileLibrary, Control, Device, FlexBox, ResizeHandler,
|
|
18
|
+
function(jQuery, library, MobileLibrary, Control, Device, FlexBox, ResizeHandler, Log, IllustratedMessage, sapFLibrary) {
|
|
17
19
|
"use strict";
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -28,7 +30,7 @@ sap.ui.define([
|
|
|
28
30
|
* @extends sap.ui.core.Control
|
|
29
31
|
*
|
|
30
32
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
33
|
+
* @version 1.93.1
|
|
32
34
|
*
|
|
33
35
|
* @public
|
|
34
36
|
* @since 1.42.0
|
|
@@ -61,7 +63,19 @@ sap.ui.define([
|
|
|
61
63
|
/**
|
|
62
64
|
* End of displayed scale.
|
|
63
65
|
*/
|
|
64
|
-
max: {type : "float", group : "Appearance"}
|
|
66
|
+
max: {type : "float", group : "Appearance"},
|
|
67
|
+
/**
|
|
68
|
+
* TRUE if error is present, FALSE otherwise
|
|
69
|
+
*/
|
|
70
|
+
showError: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
71
|
+
/**
|
|
72
|
+
* error message title
|
|
73
|
+
*/
|
|
74
|
+
errorMessageTitle: {type:"string", group: "Appearance"},
|
|
75
|
+
/**
|
|
76
|
+
* error message description
|
|
77
|
+
*/
|
|
78
|
+
errorMessage: {type:"string", group: "Appearance"}
|
|
65
79
|
},
|
|
66
80
|
defaultAggregation : "bars",
|
|
67
81
|
aggregations : {
|
|
@@ -136,8 +150,11 @@ sap.ui.define([
|
|
|
136
150
|
this._oRb = sap.ui.getCore().getLibraryResourceBundle("sap.suite.ui.microchart");
|
|
137
151
|
this._fMin = null;
|
|
138
152
|
this._fMax = null;
|
|
139
|
-
|
|
140
153
|
this._bThemeApplied = true;
|
|
154
|
+
this._oIllustratedMessageControl = new IllustratedMessage({
|
|
155
|
+
illustrationSize:sapFLibrary.IllustratedMessageSize.Base,
|
|
156
|
+
illustrationType: sapFLibrary.IllustratedMessageType.NoData
|
|
157
|
+
});
|
|
141
158
|
if (!sap.ui.getCore().isInitialized()) {
|
|
142
159
|
this._bThemeApplied = false;
|
|
143
160
|
sap.ui.getCore().attachInit(this._handleCoreInitialized.bind(this));
|
|
@@ -163,6 +180,10 @@ sap.ui.define([
|
|
|
163
180
|
// set the data needed for responsiveness
|
|
164
181
|
this._setResponsivenessData();
|
|
165
182
|
this._setInternalMinMax();
|
|
183
|
+
this._errorMessage = this.getErrorMessage();
|
|
184
|
+
this._errorMessageTitle = this.getErrorMessageTitle();
|
|
185
|
+
this._oIllustratedMessageControl.setTitle(this._errorMessageTitle);
|
|
186
|
+
this._oIllustratedMessageControl.setDescription(this._errorMessage);
|
|
166
187
|
this._bMinMaxValid = this._checkIfMinMaxValid();
|
|
167
188
|
if (this.getAggregation("bars") && this.getDisplayedBars()) {
|
|
168
189
|
this._iVisibleBars = Math.min(this.getAggregation("bars").length, this.getDisplayedBars());
|
|
@@ -219,6 +240,7 @@ sap.ui.define([
|
|
|
219
240
|
|
|
220
241
|
InteractiveBarChart.prototype.exit = function() {
|
|
221
242
|
this._deregisterResizeHandler();
|
|
243
|
+
this._oIllustratedMessageControl.destroy();
|
|
222
244
|
};
|
|
223
245
|
|
|
224
246
|
/* =========================================================== */
|
|
@@ -471,7 +493,8 @@ sap.ui.define([
|
|
|
471
493
|
// we need to invalidate in every theme changed, as some colors are not defined by CSS but in rendering routine
|
|
472
494
|
this._bThemeApplied = true;
|
|
473
495
|
this._bCompact = this._isCompact();
|
|
474
|
-
|
|
496
|
+
// removed invalidate after testing by switching into various themes, no observed changes/issues, also
|
|
497
|
+
// no visible hardcoded css in the renderer file
|
|
475
498
|
};
|
|
476
499
|
|
|
477
500
|
/**
|