@vaadin/charts 24.4.0-alpha11 → 24.4.0-alpha13

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": "24.4.0-alpha11",
3
+ "version": "24.4.0-alpha13",
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": "24.4.0-alpha11",
40
- "@vaadin/vaadin-lumo-styles": "24.4.0-alpha11",
41
- "@vaadin/vaadin-material-styles": "24.4.0-alpha11",
42
- "@vaadin/vaadin-themable-mixin": "24.4.0-alpha11",
39
+ "@vaadin/component-base": "24.4.0-alpha13",
40
+ "@vaadin/vaadin-lumo-styles": "24.4.0-alpha13",
41
+ "@vaadin/vaadin-material-styles": "24.4.0-alpha13",
42
+ "@vaadin/vaadin-themable-mixin": "24.4.0-alpha13",
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": "09c2f31d69cd611714169e0cd035688f54b2da37"
55
+ "gitHead": "97246b0703cd04a4b0ea5dcd49e2581d45cf6367"
56
56
  }
@@ -29,6 +29,7 @@ import 'highcharts/es-modules/masters/modules/bullet.src.js';
29
29
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
30
30
  import { beforeNextRender } from '@polymer/polymer/lib/utils/render-status.js';
31
31
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
32
+ import Pointer from 'highcharts/es-modules/Core/Pointer.js';
32
33
  import Highcharts from 'highcharts/es-modules/masters/highstock.src.js';
33
34
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
34
35
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
@@ -69,6 +70,28 @@ export function deepMerge(target, source) {
69
70
  /* eslint-enable no-invalid-this */
70
71
  });
71
72
 
73
+ // Monkeypatch the onDocumentMouseMove method to fix the check for the source of the event
74
+ // Due to the fact that the event is attached to the document, the target of the event is
75
+ // the <vaadin-chart> element, so we need to use the composedPath to get the actual target (#7107)
76
+ Pointer.prototype.onDocumentMouseMove = function (e) {
77
+ const chart = this.chart;
78
+ const chartPosition = this.chartPosition;
79
+ const pEvt = this.normalize(e, chartPosition);
80
+ const tooltip = chart.tooltip;
81
+ // If we're outside, hide the tooltip
82
+ if (
83
+ chartPosition &&
84
+ (!tooltip || !tooltip.isStickyOnContact()) &&
85
+ !chart.isInsidePlot(pEvt.chartX - chart.plotLeft, pEvt.chartY - chart.plotTop, {
86
+ visiblePlotOnly: true,
87
+ }) &&
88
+ // Use the first element from the composed path instead of the actual target
89
+ !this.inClass(pEvt.composedPath()[0], 'highcharts-tracker')
90
+ ) {
91
+ this.reset();
92
+ }
93
+ };
94
+
72
95
  // Init Highcharts global language defaults
73
96
  // No data message should be empty by default
74
97
  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": "24.4.0-alpha11",
4
+ "version": "24.4.0-alpha13",
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": "24.4.0-alpha11",
4
+ "version": "24.4.0-alpha13",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {