@vaadin/charts 23.3.30 → 23.3.31

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/charts",
3
- "version": "23.3.30",
3
+ "version": "23.3.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,10 +36,10 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "~23.3.30",
40
- "@vaadin/vaadin-lumo-styles": "~23.3.30",
41
- "@vaadin/vaadin-material-styles": "~23.3.30",
42
- "@vaadin/vaadin-themable-mixin": "~23.3.30",
39
+ "@vaadin/component-base": "~23.3.31",
40
+ "@vaadin/vaadin-lumo-styles": "~23.3.31",
41
+ "@vaadin/vaadin-material-styles": "~23.3.31",
42
+ "@vaadin/vaadin-themable-mixin": "~23.3.31",
43
43
  "highcharts": "9.2.2"
44
44
  },
45
45
  "devDependencies": {
@@ -52,5 +52,5 @@
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "53b2b27a0fc10b9fd008bc9112f5290221fbb184"
55
+ "gitHead": "47f6b6752cac560fecb3d6d861ba52050d162799"
56
56
  }
@@ -28,6 +28,7 @@ import 'highcharts/es-modules/masters/modules/bullet.src.js';
28
28
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
29
29
  import { beforeNextRender } from '@polymer/polymer/lib/utils/render-status.js';
30
30
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
31
+ import Pointer from 'highcharts/es-modules/Core/Pointer.js';
31
32
  import Highcharts from 'highcharts/es-modules/masters/highstock.src.js';
32
33
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
33
34
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
@@ -67,6 +68,28 @@ export function deepMerge(target, source) {
67
68
  /* eslint-enable no-invalid-this */
68
69
  });
69
70
 
71
+ // Monkeypatch the onDocumentMouseMove method to fix the check for the source of the event
72
+ // Due to the fact that the event is attached to the document, the target of the event is
73
+ // the <vaadin-chart> element, so we need to use the composedPath to get the actual target (#7107)
74
+ Pointer.prototype.onDocumentMouseMove = function (e) {
75
+ const chart = this.chart;
76
+ const chartPosition = this.chartPosition;
77
+ const pEvt = this.normalize(e, chartPosition);
78
+ const tooltip = chart.tooltip;
79
+ // If we're outside, hide the tooltip
80
+ if (
81
+ chartPosition &&
82
+ (!tooltip || !tooltip.isStickyOnContact()) &&
83
+ !chart.isInsidePlot(pEvt.chartX - chart.plotLeft, pEvt.chartY - chart.plotTop, {
84
+ visiblePlotOnly: true,
85
+ }) &&
86
+ // Use the first element from the composed path instead of the actual target
87
+ !this.inClass(pEvt.composedPath()[0], 'highcharts-tracker')
88
+ ) {
89
+ this.reset();
90
+ }
91
+ };
92
+
70
93
  // Init Highcharts global language defaults
71
94
  // No data message should be empty by default
72
95
  Highcharts.setOptions({ lang: { noData: '' } });
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/charts",
4
- "version": "23.3.30",
4
+ "version": "23.3.31",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/charts",
4
- "version": "23.3.30",
4
+ "version": "23.3.31",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {