@sapui5/sap.suite.ui.microchart 1.132.1 → 1.133.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 (36) 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/BulletMicroChart.js +9 -4
  8. package/src/sap/suite/ui/microchart/BulletMicroChartData.js +1 -1
  9. package/src/sap/suite/ui/microchart/ColumnMicroChart.js +1 -1
  10. package/src/sap/suite/ui/microchart/ColumnMicroChartData.js +1 -1
  11. package/src/sap/suite/ui/microchart/ColumnMicroChartLabel.js +1 -1
  12. package/src/sap/suite/ui/microchart/ComparisonMicroChart.js +1 -1
  13. package/src/sap/suite/ui/microchart/ComparisonMicroChartData.js +1 -1
  14. package/src/sap/suite/ui/microchart/DeltaMicroChart.js +1 -1
  15. package/src/sap/suite/ui/microchart/HarveyBallMicroChart.js +1 -1
  16. package/src/sap/suite/ui/microchart/HarveyBallMicroChartItem.js +1 -1
  17. package/src/sap/suite/ui/microchart/HarveyBallMicroChartRenderer.js +1 -5
  18. package/src/sap/suite/ui/microchart/InteractiveBarChart.js +4 -4
  19. package/src/sap/suite/ui/microchart/InteractiveBarChartBar.js +1 -1
  20. package/src/sap/suite/ui/microchart/InteractiveDonutChart.js +1 -1
  21. package/src/sap/suite/ui/microchart/InteractiveDonutChartSegment.js +1 -1
  22. package/src/sap/suite/ui/microchart/InteractiveLineChart.js +1 -1
  23. package/src/sap/suite/ui/microchart/InteractiveLineChartPoint.js +1 -1
  24. package/src/sap/suite/ui/microchart/LineMicroChart.js +1 -1
  25. package/src/sap/suite/ui/microchart/LineMicroChartEmphasizedPoint.js +1 -1
  26. package/src/sap/suite/ui/microchart/LineMicroChartLine.js +1 -1
  27. package/src/sap/suite/ui/microchart/LineMicroChartPoint.js +1 -1
  28. package/src/sap/suite/ui/microchart/RadialMicroChart.js +1 -1
  29. package/src/sap/suite/ui/microchart/StackedBarMicroChart.js +1 -1
  30. package/src/sap/suite/ui/microchart/StackedBarMicroChartBar.js +1 -1
  31. package/src/sap/suite/ui/microchart/library.js +2 -2
  32. package/src/sap/suite/ui/microchart/themes/base/InteractiveDonutChart.less +6 -0
  33. package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcb/ColumnMicroChart.less +1 -1
  34. package/src/sap/suite/ui/microchart/themes/sap_fiori_3_hcw/ColumnMicroChart.less +1 -1
  35. package/src/sap/suite/ui/microchart/themes/sap_hcb/base_ColumnMicroChart.less +2 -2
  36. package/src/sap/suite/ui/microchart/themes/sap_hcb/base_ComparisonMicroChart.less +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.microchart",
3
- "version": "1.132.1",
3
+ "version": "1.133.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)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2024 SAP SE. All rights reserved.</copyright>
8
- <version>1.132.1</version>
8
+ <version>1.133.1</version>
9
9
 
10
10
  <documentation>UI5 library: sap.suite.ui.microchart</documentation>
11
11
 
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.132.1
40
+ * @version 1.133.1
41
41
  * @since 1.34
42
42
  *
43
43
  * @public
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.132.1
25
+ * @version 1.133.1
26
26
  * @since 1.34
27
27
  *
28
28
  * @public
@@ -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.132.1
20
+ * @version 1.133.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.132.1
21
+ * @version 1.133.1
22
22
  * @since 1.34
23
23
  *
24
24
  * @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.132.1
49
+ * @version 1.133.1
50
50
  * @since 1.34
51
51
  *
52
52
  * @public
@@ -513,7 +513,7 @@ sap.ui.define([
513
513
  if (oBarValue && oBarValue.offset()) {
514
514
  var fAValWidth = oBarValue.offset().left + oBarValue.width() - oChartBar.offset().left;
515
515
  if (bRtl) {
516
- fAValWidth = fFullWidth - (oBarValue.offset().left - oChartBar.offset().left);
516
+ fAValWidth = (oBarValue.offset().left - oChartBar.offset().left);
517
517
  }
518
518
 
519
519
  if (this.getMode() === library.BulletMicroChartModeType.Delta) {
@@ -524,7 +524,12 @@ sap.ui.define([
524
524
  }
525
525
 
526
526
  var iSign = this.getTargetValue() < this.getActual().getValue() ? 1 : -1;
527
- fAValWidth = oTBarVal.offset().left - oChartBar.offset().left + (fAValWidth * iSign);
527
+
528
+ if (bRtl) {
529
+ fAValWidth = oTBarVal.offset().left - oChartBar.offset().left - (fAValWidth * iSign);
530
+ } else {
531
+ fAValWidth = oTBarVal.offset().left - oChartBar.offset().left + (fAValWidth * iSign);
532
+ }
528
533
  }
529
534
 
530
535
  this._adjustLabelPos(this.$("bc-item-value"), fFullWidth, fAValWidth, bRtl);
@@ -533,7 +538,7 @@ sap.ui.define([
533
538
  };
534
539
 
535
540
  BulletMicroChart.prototype._adjustLabelPos = function(oLabel, fFullWidth, fOffset, bRtl) {
536
- var sDirection = bRtl ? "right" : "left";
541
+ var sDirection = "left";
537
542
  var fLabelWidth = oLabel.width();
538
543
  if (fLabelWidth > fFullWidth) {
539
544
  oLabel.css(sDirection, "0");
@@ -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.132.1
20
+ * @version 1.133.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @constructor
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Control
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.132.1
41
+ * @version 1.133.1
42
42
  * @since 1.34
43
43
  *
44
44
  * @public
@@ -17,7 +17,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', "sap/suite/ui/microchart/Micr
17
17
  * Defines the column chart data.
18
18
  * @extends sap.ui.core.Element
19
19
  *
20
- * @version 1.132.1
20
+ * @version 1.133.1
21
21
  * @since 1.34
22
22
  *
23
23
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', "sap/suite/ui/microchart/Micr
18
18
  * Displays or hides the labels of a column micro chart.
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
- * @version 1.132.1
21
+ * @version 1.133.1
22
22
  * @since 1.34
23
23
  *
24
24
  * @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.132.1
43
+ * @version 1.133.1
44
44
  * @since 1.34
45
45
  *
46
46
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', 'sap/ui/core/Control','sap/m/
18
18
  * Contains the values of the comparison chart.
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
- * @version 1.132.1
21
+ * @version 1.133.1
22
22
  * @since 1.34
23
23
  *
24
24
  * @constructor
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.ui.core.Control
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.132.1
43
+ * @version 1.133.1
44
44
  * @since 1.34
45
45
  *
46
46
  * @public
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.core.Control
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.132.1
36
+ * @version 1.133.1
37
37
  * @since 1.34
38
38
  *
39
39
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.core.Element
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.132.1
24
+ * @version 1.133.1
25
25
  * @since 1.34
26
26
  *
27
27
  * @public
@@ -70,11 +70,7 @@ sap.ui.define([
70
70
  };
71
71
 
72
72
  var sColor = aColorPalette.length > 0 ? fnGetColor(aColorPalette[0]) : null;
73
- var iCircleRadius = this._oPath.center;
74
-
75
- if (oControl._isThemeHighContrast()) {
76
- iCircleRadius -= 1;
77
- }
73
+ var iCircleRadius = this._oPath.center - 1;
78
74
 
79
75
  // currently only value from first item is supported
80
76
  if (oControl.getItems().length) {
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.132.1
35
+ * @version 1.133.1
36
36
  *
37
37
  * @public
38
38
  * @since 1.42.0
@@ -128,11 +128,11 @@ sap.ui.define([
128
128
  InteractiveBarChart.DIVIDER_WIDTH_IN_PX = 1; // width of the divider separating negative and positive values
129
129
  // Responsiveness height
130
130
  InteractiveBarChart.AREA_HEIGHT_MINVALUE = 18; // area height threshold for which the chart should be hidden (px)
131
- InteractiveBarChart.BAR_HEIGHT_FONT_SMALLER = 22; // bar height threshold for a switch to smaller font (px)
131
+ InteractiveBarChart.BAR_HEIGHT_FONT_SMALLER = 20; // bar height threshold for a switch to smaller font (px)
132
132
  InteractiveBarChart.BAR_HEIGHT_MINVALUE = 6; // bar height threshold for which the chart should be hidden (px)
133
133
  InteractiveBarChart.BAR_HEIGHT_LABEL_HIDE = 16; // bar height threshold for which the labels inside bars should be hidden (px)
134
134
  // Responsiveness width
135
- InteractiveBarChart.CHART_WIDTH_FONT_SMALLER = 288; // chart width threshold for a switch to smaller font (px)
135
+ InteractiveBarChart.CHART_WIDTH_FONT_SMALLER = 286; // chart width threshold for a switch to smaller font (px)
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
@@ -846,7 +846,7 @@ sap.ui.define([
846
846
  InteractiveBarChart.prototype._resizeVertically = function(flags) {
847
847
  var iAreaHeight, iMargin, iBarHeight, $this = this.$(), bSwitchMode = false,
848
848
  $SelectionAreas = $this.find(".sapSuiteIBCBarInteractionArea"),
849
- iCurrentControlHeight = $this.height(), iInteractiveModeMarginDelta = 0,
849
+ iCurrentControlHeight = Math.round($this.height()), iInteractiveModeMarginDelta = 0,
850
850
  iVisibleBars = this._iVisibleBars;
851
851
 
852
852
  // margin
@@ -16,7 +16,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', 'sap/ui/core/Lib'],
16
16
  * @extends sap.ui.core.Element
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.132.1
19
+ * @version 1.133.1
20
20
  *
21
21
  * @public
22
22
  * @since 1.42.0
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.132.1
35
+ * @version 1.133.1
36
36
  *
37
37
  * @public
38
38
  * @since 1.42.0
@@ -15,7 +15,7 @@ sap.ui.define(["./library", "sap/ui/core/Element", "sap/ui/core/Lib"], function(
15
15
  * @extends sap.ui.core.Element
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.132.1
18
+ * @version 1.133.1
19
19
  *
20
20
  * @public
21
21
  * @since 1.42.0
@@ -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.132.1
45
+ * @version 1.133.1
46
46
  *
47
47
  * @public
48
48
  * @since 1.42.0
@@ -16,7 +16,7 @@ sap.ui.define(['./library', 'sap/ui/core/Element', 'sap/ui/core/Lib'],
16
16
  * @extends sap.ui.core.Element
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.132.1
19
+ * @version 1.133.1
20
20
  *
21
21
  * @public
22
22
  * @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.132.1
34
+ * @version 1.133.1
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.132.1
21
+ * @version 1.133.1
22
22
  * @since 1.48.0
23
23
  *
24
24
  * @constructor
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.132.1
29
+ * @version 1.133.1
30
30
  * @since 1.60
31
31
  *
32
32
  * @public
@@ -18,7 +18,7 @@ sap.ui.define(['sap/ui/core/Element'],
18
18
  * Contains the point of the line micro chart.
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
- * @version 1.132.1
21
+ * @version 1.133.1
22
22
  * @since 1.48.0
23
23
  *
24
24
  * @constructor
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.core.Control
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.132.1
32
+ * @version 1.133.1
33
33
  * @since 1.36.0
34
34
  *
35
35
  * @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.132.1
36
+ * @version 1.133.1
37
37
  * @since 1.44.0
38
38
  *
39
39
  * @public
@@ -19,7 +19,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", './library', 'sap/ui/core/Element', "
19
19
  * Contains the values of the stacked bar chart.
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
- * @version 1.132.1
22
+ * @version 1.133.1
23
23
  * @since 1.44.0
24
24
  *
25
25
  * @constructor
@@ -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.132.1
24
+ * @version 1.133.1
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.132.1",
30
+ version: "1.133.1",
31
31
  // library dependencies
32
32
  dependencies: ["sap.ui.core", "sap.m"],
33
33
  types: [
@@ -235,6 +235,12 @@ html.sap-desktop .sapSuiteIDCLegendSegment:focus {
235
235
  border: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
236
236
  }
237
237
 
238
+ html.sap-tablet .sapSuiteIDCLegendSegmentSelected,
239
+ html.sap-phone .sapSuiteIDCLegendSegmentSelected,
240
+ html.sap-desktop .sapSuiteIDCLegendSegmentSelected:not(:focus) {
241
+ border: 0.0625rem solid @_sap_suite_ui_microchart_InteractiveDonutChart_SegmentBorder
242
+ }
243
+
238
244
  /* LEGEND SEGMENTS */
239
245
  html.sap-desktop .sapSuiteIDC:not(.sapSuiteIDCNonInteractive) {
240
246
  .sapSuiteIDCLegendSegmentHover {
@@ -10,5 +10,5 @@ html.sap-desktop .sapSuiteClMC:focus,
10
10
 
11
11
  html.sap-desktop .sapSuiteClMCBar[tabindex]:focus .sapSuiteClMCInnerBar,
12
12
  .sapSuiteClMCBar[tabindex]:focus .sapSuiteClMCInnerBar {
13
- outline: 2px dotted @sapUiContentFocusColor;
13
+ outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
14
14
  }
@@ -10,5 +10,5 @@ html.sap-desktop .sapSuiteClMC:focus,
10
10
 
11
11
  html.sap-desktop .sapSuiteClMCBar[tabindex]:focus .sapSuiteClMCInnerBar,
12
12
  .sapSuiteClMCBar[tabindex]:focus .sapSuiteClMCInnerBar {
13
- outline: 2px dotted @sapUiContentFocusColor;
13
+ outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
14
14
  }
@@ -147,13 +147,13 @@ html.sap-desktop .sapSuiteClMCBar[tabindex]:focus,
147
147
  .sapSuiteClMCBar[tabindex]:focus {
148
148
  outline: none;
149
149
  & .sapSuiteClMCInnerBar {
150
- outline: 1px dotted @sapUiContentFocusColor;
150
+ outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
151
151
  }
152
152
  }
153
153
 
154
154
  html.sap-desktop .sapSuiteClMC:focus,
155
155
  .sapSuiteClMC:focus {
156
- outline: 1px dotted @sapUiContentFocusColor;
156
+ outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
157
157
  outline-offset: 1px;
158
158
  }
159
159
 
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  html.sap-desktop .sapSuiteCpMCChartContent[tabindex]:focus {
15
- outline: 1px dotted @sapUiContentFocusColor;
15
+ outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
16
16
  outline-offset: 1px;
17
17
  }
18
18
 
@@ -22,7 +22,7 @@ html.sap-desktop .sapSuiteCpMCChartContent:focus:not([tabindex]),
22
22
  }
23
23
 
24
24
  html.sap-desktop .sapSuiteCpMCChartBar:focus {
25
- border: 1px dotted @sapUiContentFocusColor;
25
+ border: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
26
26
  outline: none;
27
27
  }
28
28