@vaadin/charts 23.1.2 → 23.1.5
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.1.
|
|
3
|
+
"version": "23.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "^23.1.
|
|
38
|
+
"@vaadin/component-base": "^23.1.5",
|
|
39
39
|
"@vaadin/vaadin-license-checker": "^2.1.0",
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "^23.1.
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.5",
|
|
41
41
|
"highcharts": "9.2.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
46
46
|
"sinon": "^13.0.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "326938919a54353231af25d341ba6076c249afee"
|
|
49
49
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { PointOptionsObject, Series, SeriesOptionsType } from 'highcharts';
|
|
7
7
|
|
|
8
|
-
export type ChartSeriesMarkers = '
|
|
8
|
+
export type ChartSeriesMarkers = 'auto' | 'hidden' | 'shown';
|
|
9
9
|
|
|
10
10
|
export interface ChartSeriesConfig {
|
|
11
11
|
data?: ChartSeriesValues;
|
|
@@ -22,7 +22,7 @@ export interface ChartSeriesConfig {
|
|
|
22
22
|
|
|
23
23
|
export type ChartSeriesOptions = ChartSeriesConfig & SeriesOptionsType;
|
|
24
24
|
|
|
25
|
-
export type ChartSeriesValues = Array<number |
|
|
25
|
+
export type ChartSeriesValues = Array<number[] | PointOptionsObject | number>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* `<vaadin-chart-series>` is a custom element for creating series for Vaadin Charts.
|
package/src/vaadin-chart.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
10
10
|
|
|
11
11
|
export type ChartCategories = string[] | { [key: number]: string };
|
|
12
12
|
|
|
13
|
-
export type ChartCategoryPosition = '
|
|
13
|
+
export type ChartCategoryPosition = 'bottom' | 'left' | 'right' | 'top';
|
|
14
14
|
|
|
15
15
|
export type ChartStacking = 'normal' | 'percent' | null;
|
|
16
16
|
|
|
@@ -245,7 +245,7 @@ export interface ChartCustomEventMap {
|
|
|
245
245
|
'yaxes-extremes-set': ChartYaxesExtremesSetEvent;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
export type ChartEventMap =
|
|
248
|
+
export type ChartEventMap = ChartCustomEventMap & HTMLElementEventMap;
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* `<vaadin-chart>` is a Web Component for creating high quality charts.
|
|
@@ -582,13 +582,13 @@ declare class Chart extends ResizeMixin(ThemableMixin(ElementMixin(HTMLElement))
|
|
|
582
582
|
addEventListener<K extends keyof ChartEventMap>(
|
|
583
583
|
type: K,
|
|
584
584
|
listener: (this: Chart, ev: ChartEventMap[K]) => void,
|
|
585
|
-
options?:
|
|
585
|
+
options?: AddEventListenerOptions | boolean,
|
|
586
586
|
): void;
|
|
587
587
|
|
|
588
588
|
removeEventListener<K extends keyof ChartEventMap>(
|
|
589
589
|
type: K,
|
|
590
590
|
listener: (this: Chart, ev: ChartEventMap[K]) => void,
|
|
591
|
-
options?:
|
|
591
|
+
options?: EventListenerOptions | boolean,
|
|
592
592
|
): void;
|
|
593
593
|
}
|
|
594
594
|
|
package/src/vaadin-chart.js
CHANGED
|
@@ -1366,6 +1366,9 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
1366
1366
|
this.tempBodyStyle = document.createElement('style');
|
|
1367
1367
|
this.tempBodyStyle.textContent = effectiveCss;
|
|
1368
1368
|
document.body.appendChild(this.tempBodyStyle);
|
|
1369
|
+
if (this.options.chart.styledMode) {
|
|
1370
|
+
document.body.setAttribute('styled-mode', '');
|
|
1371
|
+
}
|
|
1369
1372
|
}
|
|
1370
1373
|
}
|
|
1371
1374
|
|
|
@@ -1374,6 +1377,9 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
1374
1377
|
if (this.tempBodyStyle) {
|
|
1375
1378
|
document.body.removeChild(this.tempBodyStyle);
|
|
1376
1379
|
delete this.tempBodyStyle;
|
|
1380
|
+
if (this.options.chart.styledMode) {
|
|
1381
|
+
document.body.removeAttribute('styled-mode');
|
|
1382
|
+
}
|
|
1377
1383
|
}
|
|
1378
1384
|
}
|
|
1379
1385
|
|