@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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/microchart/.library +1 -1
  3. package/src/sap/suite/ui/microchart/AreaMicroChart.js +1 -1
  4. package/src/sap/suite/ui/microchart/AreaMicroChartItem.js +1 -1
  5. package/src/sap/suite/ui/microchart/AreaMicroChartLabel.js +1 -1
  6. package/src/sap/suite/ui/microchart/AreaMicroChartPoint.js +1 -1
  7. package/src/sap/suite/ui/microchart/AreaMicroChartRenderer.js +8 -16
  8. package/src/sap/suite/ui/microchart/BulletMicroChart.js +1 -1
  9. package/src/sap/suite/ui/microchart/BulletMicroChartData.js +1 -1
  10. package/src/sap/suite/ui/microchart/ColumnMicroChart.js +1 -1
  11. package/src/sap/suite/ui/microchart/ColumnMicroChartData.js +1 -1
  12. package/src/sap/suite/ui/microchart/ColumnMicroChartLabel.js +1 -1
  13. package/src/sap/suite/ui/microchart/ComparisonMicroChart.js +1 -1
  14. package/src/sap/suite/ui/microchart/ComparisonMicroChartData.js +1 -1
  15. package/src/sap/suite/ui/microchart/ComparisonMicroChartRenderer.js +8 -13
  16. package/src/sap/suite/ui/microchart/DeltaMicroChart.js +1 -1
  17. package/src/sap/suite/ui/microchart/DeltaMicroChartRenderer.js +7 -14
  18. package/src/sap/suite/ui/microchart/HarveyBallMicroChart.js +7 -1
  19. package/src/sap/suite/ui/microchart/HarveyBallMicroChartItem.js +1 -1
  20. package/src/sap/suite/ui/microchart/HarveyBallMicroChartRenderer.js +1 -3
  21. package/src/sap/suite/ui/microchart/InteractiveBarChart.js +28 -5
  22. package/src/sap/suite/ui/microchart/InteractiveBarChartBar.js +1 -1
  23. package/src/sap/suite/ui/microchart/InteractiveBarChartRenderer.js +73 -81
  24. package/src/sap/suite/ui/microchart/InteractiveDonutChart.js +30 -7
  25. package/src/sap/suite/ui/microchart/InteractiveDonutChartRenderer.js +104 -113
  26. package/src/sap/suite/ui/microchart/InteractiveDonutChartSegment.js +1 -1
  27. package/src/sap/suite/ui/microchart/InteractiveLineChart.js +30 -5
  28. package/src/sap/suite/ui/microchart/InteractiveLineChartPoint.js +1 -1
  29. package/src/sap/suite/ui/microchart/InteractiveLineChartRenderer.js +136 -132
  30. package/src/sap/suite/ui/microchart/LineMicroChart.js +1 -1
  31. package/src/sap/suite/ui/microchart/LineMicroChartEmphasizedPoint.js +1 -1
  32. package/src/sap/suite/ui/microchart/LineMicroChartLine.js +1 -1
  33. package/src/sap/suite/ui/microchart/LineMicroChartPoint.js +1 -1
  34. package/src/sap/suite/ui/microchart/LineMicroChartRenderer.js +4 -6
  35. package/src/sap/suite/ui/microchart/RadialMicroChart.js +1 -1
  36. package/src/sap/suite/ui/microchart/StackedBarMicroChart.js +1 -1
  37. package/src/sap/suite/ui/microchart/StackedBarMicroChartBar.js +1 -1
  38. package/src/sap/suite/ui/microchart/library.js +2 -2
  39. package/src/sap/suite/ui/microchart/themes/sap_belize_hcb/ComparisonMicroChart.less +9 -0
  40. package/src/sap/suite/ui/microchart/themes/sap_belize_hcw/ComparisonMicroChart.less +9 -0
  41. package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcb/ComparisonMicroChart.less +10 -1
  42. package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcw/ComparisonMicroChart.less +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.microchart",
3
- "version": "1.90.6",
3
+ "version": "1.93.1",
4
4
  "description": "SAPUI5 Library sap.suite.ui.microchart",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAPUI5
7
7
 
8
8
  (c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
9
- <version>1.90.6</version>
9
+ <version>1.93.1</version>
10
10
 
11
11
  <documentation>UI5 library: sap.suite.ui.microchart</documentation>
12
12
 
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.core.Control
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.90.6
38
+ * @version 1.93.1
39
39
  * @since 1.34
40
40
  *
41
41
  * @public
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.90.6
23
+ * @version 1.93.1
24
24
  * @since 1.34
25
25
  *
26
26
  * @public
@@ -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.90.6
20
+ * @version 1.93.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
18
18
  * @extends sap.ui.core.Element
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.90.6
21
+ * @version 1.93.1
22
22
  * @since 1.34
23
23
  *
24
24
  * @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.90.6
43
+ * @version 1.93.1
44
44
  * @since 1.34
45
45
  *
46
46
  * @public
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
17
17
  * Contains the thresholds data.
18
18
  * @extends sap.ui.core.Element
19
19
  *
20
- * @version 1.90.6
20
+ * @version 1.93.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @constructor
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.90.6
39
+ * @version 1.93.1
40
40
  * @since 1.34
41
41
  *
42
42
  * @public
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
17
17
  * Defines the column chart data.
18
18
  * @extends sap.ui.core.Element
19
19
  *
20
- * @version 1.90.6
20
+ * @version 1.93.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
18
18
  * Displays or hides the labels of a column micro chart.
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
- * @version 1.90.6
21
+ * @version 1.93.1
22
22
  * @since 1.34
23
23
  *
24
24
  * @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.90.6
36
+ * @version 1.93.1
37
37
  * @since 1.34
38
38
  *
39
39
  * @public
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', 'sap/ui/core/Control'],
17
17
  * Contains the values of the comparison chart.
18
18
  * @extends sap.ui.core.Element
19
19
  *
20
- * @version 1.90.6
20
+ * @version 1.93.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @constructor
@@ -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 followng desired behavior is achieved:
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 (!!oChartData.negativeNoValue && !oChartData.value) {
198
+ if (oChartData.negativeNoValue && !oChartData.value) {
202
199
  oRm.class("sapSuiteCpMCNegPosNoValue");
203
- } else if (!!oChartData.negativeNoValue || !!oChartData.value) {
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());
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @extends sap.ui.core.Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.90.6
47
+ * @version 1.93.1
48
48
  * @since 1.34
49
49
  *
50
50
  * @public
@@ -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.90.6
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
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.90.6
23
+ * @version 1.93.1
24
24
  * @since 1.34
25
25
  *
26
26
  * @public
@@ -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 (jQuery, MobileLibrary, Device, library, encodeXML, MicroChartRenderUtils, Parameters, ValueColor, ValueCSSColor) {
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, Log) {
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.90.6
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
- this.invalidate();
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
  /**
@@ -16,7 +16,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element'],
16
16
  * @extends sap.ui.core.Element
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.90.6
19
+ * @version 1.93.1
20
20
  *
21
21
  * @public
22
22
  * @since 1.42.0