@sapui5/sap.suite.ui.microchart 1.138.0 → 1.140.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/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 +10 -9
- package/src/sap/suite/ui/microchart/InteractiveBarChartBar.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveDonutChart.js +2 -2
- package/src/sap/suite/ui/microchart/InteractiveDonutChartSegment.js +1 -1
- package/src/sap/suite/ui/microchart/InteractiveLineChart.js +2 -2
- 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/library.js +2 -2
- package/src/sap/suite/ui/microchart/themes/base/ComparisonMicroChart.less +7 -0
- package/src/sap/suite/ui/microchart/themes/base/LineMicroChart.less +1 -0
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', "sap/suite/ui/microchart/Micr
|
|
|
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.140.0
|
|
21
21
|
* @since 1.34
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* <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.
|
|
47
47
|
* @extends sap.ui.core.Control
|
|
48
48
|
*
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.140.0
|
|
50
50
|
* @since 1.34
|
|
51
51
|
*
|
|
52
52
|
* @public
|
|
@@ -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.140.0
|
|
44
44
|
* @since 1.34
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.140.0
|
|
36
36
|
*
|
|
37
37
|
* @public
|
|
38
38
|
* @since 1.42.0
|
|
@@ -136,7 +136,7 @@ sap.ui.define([
|
|
|
136
136
|
InteractiveBarChart.LABEL_WIDTH_MINVALUE = 80; // label width threshold for a switch to move labels above bars (px)
|
|
137
137
|
InteractiveBarChart.CHART_WIDTH_MINVALUE = 130; // chart width threshold for a switch to an invisible chart (px)
|
|
138
138
|
// Responsiveness cozy vs compact mode
|
|
139
|
-
InteractiveBarChart.AREA_HEIGHT_INTERACTIVE_MINVALUE =
|
|
139
|
+
InteractiveBarChart.AREA_HEIGHT_INTERACTIVE_MINVALUE = 44; // the minimum area height for an interactive mode (px)
|
|
140
140
|
InteractiveBarChart.AREA_HEIGHT_INTERACTIVE_MINVALUE_COMPACT = 32;
|
|
141
141
|
InteractiveBarChart.AREA_HEIGHT_PADDING_STAGE1 = 34; // the area height threshold for a smaller padding between bar and area - stage1 (px)
|
|
142
142
|
InteractiveBarChart.AREA_HEIGHT_PADDING_STAGE1_COMPACT = 32;
|
|
@@ -1026,18 +1026,19 @@ sap.ui.define([
|
|
|
1026
1026
|
InteractiveBarChart.prototype._onResize = function() {
|
|
1027
1027
|
var $this = this.$(),
|
|
1028
1028
|
flags = {chartVisible : true, labelsVisible: true};
|
|
1029
|
-
|
|
1029
|
+
if (this.getBars().length !== 0) {
|
|
1030
1030
|
// restore to normal state (needed to perform further processings)
|
|
1031
|
-
|
|
1032
|
-
|
|
1031
|
+
$this.css("visibility", "visible");
|
|
1032
|
+
$this.removeClass("sapSuiteIBCSmallFont");
|
|
1033
1033
|
|
|
1034
1034
|
// responsiveness logic
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
this._resizeVertically(flags);
|
|
1036
|
+
this._resizeHorizontally(flags);
|
|
1037
1037
|
|
|
1038
1038
|
// labels
|
|
1039
|
-
|
|
1040
|
-
|
|
1039
|
+
if (flags.labelsVisible) {
|
|
1040
|
+
this._showValueOutsideBar();
|
|
1041
|
+
}
|
|
1041
1042
|
}
|
|
1042
1043
|
};
|
|
1043
1044
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.140.0
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
* @since 1.42.0
|
|
@@ -134,7 +134,7 @@ sap.ui.define([
|
|
|
134
134
|
CSSCLASS_SELECTED: "sapSuiteIDCChartSegmentGhostSelected"
|
|
135
135
|
};
|
|
136
136
|
// Responsiveness (cozy vs compact)
|
|
137
|
-
InteractiveDonutChart.AREA_HEIGHT_INTERACTIVE_MINVALUE =
|
|
137
|
+
InteractiveDonutChart.AREA_HEIGHT_INTERACTIVE_MINVALUE = 44;
|
|
138
138
|
InteractiveDonutChart.AREA_HEIGHT_INTERACTIVE_MINVALUE_COMPACT = 32;
|
|
139
139
|
InteractiveDonutChart.AREA_HEIGHT_SMALLFONT = 36;
|
|
140
140
|
InteractiveDonutChart.AREA_HEIGHT_SMALLFONT_COMPACT = 32;
|
|
@@ -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.
|
|
45
|
+
* @version 1.140.0
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
* @since 1.42.0
|
|
@@ -147,7 +147,7 @@ sap.ui.define([
|
|
|
147
147
|
InteractiveLineChart.MAX_SCALED_CANVAS_VALUE = 99;
|
|
148
148
|
InteractiveLineChart.MIN_SCALED_CANVAS_VALUE = 1;
|
|
149
149
|
// Responsiveness (cozy vs compact)
|
|
150
|
-
InteractiveLineChart.AREA_WIDTH_INTERACTIVE_MINVALUE =
|
|
150
|
+
InteractiveLineChart.AREA_WIDTH_INTERACTIVE_MINVALUE = 44;
|
|
151
151
|
InteractiveLineChart.AREA_WIDTH_INTERACTIVE_MINVALUE_COMPACT = 32;
|
|
152
152
|
// Responsiveness (cozy and compact)
|
|
153
153
|
InteractiveLineChart.CHART_HEIGHT_MINVALUE = 106;
|
|
@@ -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.
|
|
34
|
+
* @version 1.140.0
|
|
35
35
|
* @since 1.48.0
|
|
36
36
|
*
|
|
37
37
|
* @public
|
|
@@ -18,7 +18,7 @@ sap.ui.define(["sap/suite/ui/microchart/MicroChartUtils", "./library", "sap/suit
|
|
|
18
18
|
* Contains the emphasized point of the line micro chart.
|
|
19
19
|
* @extends sap.suite.ui.microchart.LineMicroChartPoint
|
|
20
20
|
*
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.140.0
|
|
22
22
|
* @since 1.48.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
@@ -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.140.0
|
|
37
37
|
* @since 1.44.0
|
|
38
38
|
*
|
|
39
39
|
* @public
|
|
@@ -21,13 +21,13 @@ sap.ui.define([
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @alias sap.suite.ui.microchart
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.140.0
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
27
|
var thisLib = CoreLib.init({
|
|
28
28
|
name: "sap.suite.ui.microchart",
|
|
29
29
|
apiVersion: 2,
|
|
30
|
-
version: "1.
|
|
30
|
+
version: "1.140.0",
|
|
31
31
|
// library dependencies
|
|
32
32
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
33
33
|
types: [
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
html.sapUiMedia-Std-Desktop .sapMTileCntContent > .sapSuiteCpMCChartContent.sapSuiteCpMCSizeAuto,
|
|
14
|
+
html.sapUiMedia-Std-Tablet .sapMTileCntContent > .sapSuiteCpMCChartContent.sapSuiteCpMCSizeAuto,
|
|
15
|
+
.sapMTileCntContent > .sapSuiteCpMCChartContent.sapSuiteCpMCSizeM {
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
.sapSuiteCpMC {
|
|
14
21
|
.sapMBtn {
|
|
15
22
|
position: absolute;
|