@vaadin/charts 24.8.0-alpha9 → 24.8.0-rc1
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-
|
|
3
|
+
"version": "24.8.0-rc1",
|
|
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-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.8.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.8.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0-
|
|
40
|
+
"@vaadin/component-base": "24.8.0-rc1",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.8.0-rc1",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.8.0-rc1",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.8.0-rc1",
|
|
44
44
|
"highcharts": "9.2.2",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "24.8.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "24.8.0-
|
|
48
|
+
"@vaadin/chai-plugins": "24.8.0-rc1",
|
|
49
|
+
"@vaadin/test-runner-commands": "24.8.0-rc1",
|
|
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": "
|
|
58
|
+
"gitHead": "901d3eb9224983fd81e222e2fa5c7c207f9a6e46"
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
1050
|
+
queueMicrotask(() => {
|
|
1052
1051
|
if (!this.configuration || !this._jsonConfigurationBuffer) {
|
|
1053
1052
|
return;
|
|
1054
1053
|
}
|
|
@@ -1208,10 +1207,18 @@ export const ChartMixin = (superClass) =>
|
|
|
1208
1207
|
if (!self.tempBodyStyle) {
|
|
1209
1208
|
let effectiveCss = '';
|
|
1210
1209
|
|
|
1210
|
+
// PolymerElement uses `<style>` tags for adding styles
|
|
1211
1211
|
[...self.shadowRoot.querySelectorAll('style')].forEach((style) => {
|
|
1212
1212
|
effectiveCss += style.textContent;
|
|
1213
1213
|
});
|
|
1214
1214
|
|
|
1215
|
+
// LitElement uses `adoptedStyleSheets` for adding styles
|
|
1216
|
+
if (self.shadowRoot.adoptedStyleSheets) {
|
|
1217
|
+
self.shadowRoot.adoptedStyleSheets.forEach((sheet) => {
|
|
1218
|
+
effectiveCss += [...sheet.cssRules].map((rule) => rule.cssText).join('\n');
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1215
1222
|
// Strip off host selectors that target individual instances
|
|
1216
1223
|
effectiveCss = effectiveCss.replace(/:host\(.+?\)/gu, (match) => {
|
|
1217
1224
|
const selector = match.substr(6, match.length - 7);
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import './vaadin-lit-chart.js';
|
|
12
11
|
import { LitElement } from 'lit';
|
|
13
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
13
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
export * from './vaadin-chart-series.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
export * from './vaadin-chart.js';
|