@sapui5/sap.suite.ui.microchart 1.120.25 → 1.120.27
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/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/DeltaMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/HarveyBallMicroChart.js +1 -1
- package/src/sap/suite/ui/microchart/HarveyBallMicroChartItem.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveBarChart.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveBarChartBar.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveDonutChart.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveDonutChartSegment.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveLineChart.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveLineChartPoint.js +1 -1
- 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/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/StackedBarMicroChartRenderer.js +4 -31
- package/src/sap/suite/ui/microchart/library.js +2 -2
- package/src/sap/suite/ui/microchart/themes/base/StackedBarMicroChart.less +4 -0
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.120.
|
|
20
|
+
* @version 1.120.27
|
|
21
21
|
* @since 1.34
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* <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.
|
|
43
43
|
* @extends sap.ui.core.Control
|
|
44
44
|
*
|
|
45
|
-
* @version 1.120.
|
|
45
|
+
* @version 1.120.27
|
|
46
46
|
* @since 1.34
|
|
47
47
|
*
|
|
48
48
|
* @public
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* <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.
|
|
36
36
|
* @extends sap.ui.core.Control
|
|
37
37
|
*
|
|
38
|
-
* @version 1.120.
|
|
38
|
+
* @version 1.120.27
|
|
39
39
|
* @since 1.34
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* The InteractiveLineChart control belongs to a chart control group in the MicroChart library having a number of interactive features.
|
|
43
43
|
* @extends sap.ui.core.Control
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.120.
|
|
45
|
+
* @version 1.120.27
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
* @since 1.42.0
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* <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.
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
33
|
*
|
|
34
|
-
* @version 1.120.
|
|
34
|
+
* @version 1.120.27
|
|
35
35
|
* @since 1.48.0
|
|
36
36
|
*
|
|
37
37
|
* @public
|
|
@@ -21,7 +21,7 @@ sap.ui.define(["sap/m/library", "sap/suite/ui/microchart/LineMicroChartPoint"],
|
|
|
21
21
|
* Contains the emphasized point of the line micro chart.
|
|
22
22
|
* @extends sap.suite.ui.microchart.LineMicroChartPoint
|
|
23
23
|
*
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.27
|
|
25
25
|
* @since 1.48.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* <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.
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
34
|
*
|
|
35
|
-
* @version 1.120.
|
|
35
|
+
* @version 1.120.27
|
|
36
36
|
* @since 1.44.0
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
@@ -47,7 +47,9 @@ sap.ui.define([
|
|
|
47
47
|
|
|
48
48
|
StackedBarMicroChartRenderer.SEMANTIC_COLORS = {
|
|
49
49
|
Good: "Positive",
|
|
50
|
-
Error: "Negative"
|
|
50
|
+
Error: "Negative",
|
|
51
|
+
Critical: "Critical",
|
|
52
|
+
Neutral: "Neutral"
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
/**
|
|
@@ -185,41 +187,11 @@ sap.ui.define([
|
|
|
185
187
|
}
|
|
186
188
|
oRm.openStart("div");
|
|
187
189
|
oRm.class("sapSuiteStackedMCBarLabel");
|
|
188
|
-
oRm.style("color", this._getLabelColor(backgroundColor));
|
|
189
190
|
oRm.openEnd();
|
|
190
191
|
oRm.text(displayValue);
|
|
191
192
|
oRm.close("div");
|
|
192
193
|
};
|
|
193
194
|
|
|
194
|
-
/**
|
|
195
|
-
* Returns the color value of the label by calculating the data point color brightness
|
|
196
|
-
*
|
|
197
|
-
* @private
|
|
198
|
-
* @param {string} backgroundColor The background color
|
|
199
|
-
* @returns {string} The color of the label
|
|
200
|
-
*/
|
|
201
|
-
StackedBarMicroChartRenderer._getLabelColor = function(backgroundColor) {
|
|
202
|
-
var sHexColor = this._colorNameToHex(backgroundColor);
|
|
203
|
-
// convert 3-digit hexcolor to 6-digit first (e.g.: #abc -> #aabbcc)
|
|
204
|
-
if (!sHexColor && backgroundColor.length === 4) {
|
|
205
|
-
// concatenate each char after repeating it
|
|
206
|
-
sHexColor = "#" + new Array(3).join(backgroundColor.substring(1, 2)) + new Array(3).join(backgroundColor.substring(2, 3)) + new Array(3).join(backgroundColor.substring(3, 4));
|
|
207
|
-
} else if (!sHexColor) {
|
|
208
|
-
sHexColor = backgroundColor;
|
|
209
|
-
}
|
|
210
|
-
var iRedValue = parseInt(sHexColor.substring(1, 3), 16),
|
|
211
|
-
iGreenValue = parseInt(sHexColor.substring(3, 5), 16),
|
|
212
|
-
iBlueValue = parseInt(sHexColor.substring(5, 7), 16);
|
|
213
|
-
|
|
214
|
-
// apply the data point color brightness algorithm
|
|
215
|
-
var fDataPoint = ((iRedValue * 299) + (iGreenValue * 587) + (iBlueValue * 114)) / 1000;
|
|
216
|
-
if (fDataPoint > 127.5) {
|
|
217
|
-
return StackedBarMicroChartRenderer.LABEL_COLOR_DARK;
|
|
218
|
-
} else {
|
|
219
|
-
return StackedBarMicroChartRenderer.LABEL_COLOR_LIGHT;
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
|
|
223
195
|
/**
|
|
224
196
|
* Returns the color css parameter
|
|
225
197
|
*
|
|
@@ -241,6 +213,7 @@ sap.ui.define([
|
|
|
241
213
|
*/
|
|
242
214
|
StackedBarMicroChartRenderer._colorNameToHex = function(color) {
|
|
243
215
|
return StackedBarMicroChartRenderer.COLORNAME_TO_HEX_MAP[color];
|
|
216
|
+
|
|
244
217
|
};
|
|
245
218
|
|
|
246
219
|
MicroChartRenderUtils.extendMicroChartRenderer(StackedBarMicroChartRenderer);
|
|
@@ -22,12 +22,12 @@ sap.ui.define([
|
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.suite.ui.microchart
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.120.
|
|
25
|
+
* @version 1.120.27
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
var thisLib = CoreLib.init({
|
|
29
29
|
name: "sap.suite.ui.microchart",
|
|
30
|
-
version: "1.120.
|
|
30
|
+
version: "1.120.27",
|
|
31
31
|
// library dependencies
|
|
32
32
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
33
33
|
types: [
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
max-width: 20rem;
|
|
20
20
|
min-height: 1.125rem;
|
|
21
21
|
max-height: 3.5rem;
|
|
22
|
+
border: 1px solid @sapGroup_ContentBackground;
|
|
23
|
+
outline: 1px solid @sapContent_ForegroundBorderColor;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.sapSuiteStackedMCBar {
|
|
@@ -46,6 +48,8 @@ html.sap-desktop .sapSuiteStackedMC:focus:not([tabindex]),
|
|
|
46
48
|
overflow: hidden;
|
|
47
49
|
white-space: nowrap;
|
|
48
50
|
line-height: 1rem;
|
|
51
|
+
color: @sapContent_ContrastTextColor;
|
|
52
|
+
text-shadow: @sapContent_ContrastTextShadow;
|
|
49
53
|
|
|
50
54
|
&.sapSuiteStackedMCBarLabelHidden {
|
|
51
55
|
display: none;
|