@vaadin/charts 23.0.0-alpha2 → 23.0.0-beta1

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.0.0-alpha2",
3
+ "version": "23.0.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "main": "vaadin-chart.js",
20
20
  "module": "vaadin-chart.js",
21
+ "type": "module",
21
22
  "files": [
22
23
  "src",
23
24
  "theme",
@@ -33,9 +34,9 @@
33
34
  ],
34
35
  "dependencies": {
35
36
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/component-base": "23.0.0-alpha2",
37
+ "@vaadin/component-base": "23.0.0-beta1",
37
38
  "@vaadin/vaadin-license-checker": "^2.1.0",
38
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha2",
39
+ "@vaadin/vaadin-themable-mixin": "23.0.0-beta1",
39
40
  "highcharts": "9.2.2"
40
41
  },
41
42
  "devDependencies": {
@@ -43,5 +44,5 @@
43
44
  "@vaadin/testing-helpers": "^0.3.2",
44
45
  "sinon": "^9.2.4"
45
46
  },
46
- "gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
47
+ "gitHead": "467244b76021176c109df675799b07029b293e58"
47
48
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2021 Vaadin Ltd
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import { PointOptionsObject, Series, SeriesOptionsType } from 'highcharts';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2021 Vaadin Ltd
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import { PolymerElement } from '@polymer/polymer/polymer-element.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2021 Vaadin Ltd
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import { Axis, Chart as HighchartsChart, ExtremesObject, Options, Point, Series } from 'highcharts';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2021 Vaadin Ltd
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
@@ -51,12 +51,14 @@ export function deepMerge(target, source) {
51
51
  }
52
52
 
53
53
  ['exportChart', 'exportChartLocal', 'getSVG'].forEach((methodName) => {
54
+ /* eslint-disable no-invalid-this */
54
55
  Highcharts.wrap(Highcharts.Chart.prototype, methodName, function (proceed, ...args) {
55
56
  Highcharts.fireEvent(this, 'beforeExport');
56
57
  const result = proceed.apply(this, args);
57
58
  Highcharts.fireEvent(this, 'afterExport');
58
59
  return result;
59
60
  });
61
+ /* eslint-enable no-invalid-this */
60
62
  });
61
63
 
62
64
  /**
@@ -1328,7 +1330,7 @@ class Chart extends ElementMixin(ThemableMixin(PolymerElement)) {
1328
1330
 
1329
1331
  const shadowStyles = this.shadowRoot.querySelectorAll('style');
1330
1332
  for (let i = 0; i < shadowStyles.length; i++) {
1331
- effectiveCss = effectiveCss + shadowStyles[i].textContent;
1333
+ effectiveCss += shadowStyles[i].textContent;
1332
1334
  }
1333
1335
 
1334
1336
  // Strip off host selectors that target individual instances
@@ -48,6 +48,19 @@ const chartColors = css`
48
48
  --vaadin-charts-color-positive: var(--vaadin-charts-color-3);
49
49
  --vaadin-charts-color-negative: var(--vaadin-charts-color-9);
50
50
  }
51
+
52
+ :host([theme~='classic']) {
53
+ --vaadin-charts-color-0: #7cb5ec;
54
+ --vaadin-charts-color-1: #434348;
55
+ --vaadin-charts-color-2: #90ed7d;
56
+ --vaadin-charts-color-3: #f7a35c;
57
+ --vaadin-charts-color-4: #8085e9;
58
+ --vaadin-charts-color-5: #f15c80;
59
+ --vaadin-charts-color-6: #e4d354;
60
+ --vaadin-charts-color-7: #2b908f;
61
+ --vaadin-charts-color-8: #f45b5b;
62
+ --vaadin-charts-color-9: #91e8e1;
63
+ }
51
64
  `;
52
65
 
53
66
  const chartTheme = css`
@@ -48,6 +48,19 @@ const chartColors = css`
48
48
  --vaadin-charts-color-positive: var(--vaadin-charts-color-8);
49
49
  --vaadin-charts-color-negative: var(--vaadin-charts-color-0);
50
50
  }
51
+
52
+ :host([theme~='classic']) {
53
+ --vaadin-charts-color-0: #7cb5ec;
54
+ --vaadin-charts-color-1: #434348;
55
+ --vaadin-charts-color-2: #90ed7d;
56
+ --vaadin-charts-color-3: #f7a35c;
57
+ --vaadin-charts-color-4: #8085e9;
58
+ --vaadin-charts-color-5: #f15c80;
59
+ --vaadin-charts-color-6: #e4d354;
60
+ --vaadin-charts-color-7: #2b908f;
61
+ --vaadin-charts-color-8: #f45b5b;
62
+ --vaadin-charts-color-9: #91e8e1;
63
+ }
51
64
  `;
52
65
 
53
66
  const chartTheme = css`
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2015 - 2021 Vaadin Ltd
3
+ * Copyright (c) 2015 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6