@vaadin/charts 24.8.0-alpha15 → 24.8.0-alpha17

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.8.0-alpha15",
3
+ "version": "24.8.0-alpha17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,16 +37,16 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "24.8.0-alpha15",
41
- "@vaadin/vaadin-lumo-styles": "24.8.0-alpha15",
42
- "@vaadin/vaadin-material-styles": "24.8.0-alpha15",
43
- "@vaadin/vaadin-themable-mixin": "24.8.0-alpha15",
40
+ "@vaadin/component-base": "24.8.0-alpha17",
41
+ "@vaadin/vaadin-lumo-styles": "24.8.0-alpha17",
42
+ "@vaadin/vaadin-material-styles": "24.8.0-alpha17",
43
+ "@vaadin/vaadin-themable-mixin": "24.8.0-alpha17",
44
44
  "highcharts": "9.2.2",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/chai-plugins": "24.8.0-alpha15",
49
- "@vaadin/test-runner-commands": "24.8.0-alpha15",
48
+ "@vaadin/chai-plugins": "24.8.0-alpha17",
49
+ "@vaadin/test-runner-commands": "24.8.0-alpha17",
50
50
  "@vaadin/testing-helpers": "^1.1.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "d2d0d1bb5efa3a439e568c1693d2fee3cc18fc67"
58
+ "gitHead": "bf06d4d774049e0d19a3f008273864df15e085f6"
59
59
  }
@@ -28,12 +28,11 @@ import 'highcharts/es-modules/masters/modules/xrange.src.js';
28
28
  import 'highcharts/es-modules/masters/modules/bullet.src.js';
29
29
  import 'highcharts/es-modules/masters/modules/gantt.src.js';
30
30
  import 'highcharts/es-modules/masters/modules/draggable-points.src.js';
31
- import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
32
- import { beforeNextRender } from '@polymer/polymer/lib/utils/render-status.js';
33
31
  import Pointer from 'highcharts/es-modules/Core/Pointer.js';
34
32
  import Highcharts from 'highcharts/es-modules/masters/highstock.src.js';
35
33
  import { get } from '@vaadin/component-base/src/path-utils.js';
36
34
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
35
+ import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
37
36
  import { deepMerge, inflateFunctions } from './helpers.js';
38
37
 
39
38
  ['exportChart', 'exportChartLocal', 'getSVG'].forEach((methodName) => {
@@ -753,7 +752,7 @@ export const ChartMixin = (superClass) =>
753
752
  connectedCallback() {
754
753
  super.connectedCallback();
755
754
  this.__updateStyles();
756
- beforeNextRender(this, () => {
755
+ queueMicrotask(() => {
757
756
  // Detect if the chart had already been initialized. This might happen in
758
757
  // environments where the chart is lazily attached (e.g Grid).
759
758
  if (this.configuration) {
@@ -803,7 +802,7 @@ export const ChartMixin = (superClass) =>
803
802
 
804
803
  /** @private */
805
804
  __addChildObserver() {
806
- this._childObserver = new FlattenedNodesObserver(this.$.slot, (info) => {
805
+ this._childObserver = new SlotObserver(this.$.slot, (info) => {
807
806
  this.__addSeries(info.addedNodes.filter(this.__filterSeriesNodes));
808
807
  this.__removeSeries(info.removedNodes.filter(this.__filterSeriesNodes));
809
808
  this.__cleanupAfterSeriesRemoved(info.removedNodes.filter(this.__filterSeriesNodes));
@@ -1048,7 +1047,7 @@ export const ChartMixin = (superClass) =>
1048
1047
  inflateFunctions(configCopy);
1049
1048
  this._jsonConfigurationBuffer = this.__makeConfigurationBuffer(this._jsonConfigurationBuffer, configCopy);
1050
1049
 
1051
- beforeNextRender(this, () => {
1050
+ queueMicrotask(() => {
1052
1051
  if (!this.configuration || !this._jsonConfigurationBuffer) {
1053
1052
  return;
1054
1053
  }
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.8.0-alpha15",
4
+ "version": "24.8.0-alpha17",
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.8.0-alpha15",
4
+ "version": "24.8.0-alpha17",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {