@vaadin/charts 24.7.0-alpha3 → 24.7.0-alpha5
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.7.0-
|
|
3
|
+
"version": "24.7.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "24.7.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "24.7.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "24.7.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "24.7.0-
|
|
39
|
+
"@vaadin/component-base": "24.7.0-alpha5",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha5",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "24.7.0-alpha5",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha5",
|
|
43
43
|
"highcharts": "9.2.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "24.7.0-
|
|
46
|
+
"@vaadin/chai-plugins": "24.7.0-alpha5",
|
|
47
47
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
48
48
|
"sinon": "^18.0.0"
|
|
49
49
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "f9fa2bd652780a344d5e0329b8aafbcbd72ebd14"
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import type { PointOptionsObject, Series, SeriesOptionsType } from 'highcharts';
|
|
11
|
+
import type { GanttPointOptionsObject, PointOptionsObject, Series, SeriesOptionsType } from 'highcharts';
|
|
12
12
|
|
|
13
13
|
export type ChartSeriesMarkers = 'auto' | 'hidden' | 'shown';
|
|
14
14
|
|
|
@@ -27,7 +27,7 @@ export interface ChartSeriesConfig {
|
|
|
27
27
|
|
|
28
28
|
export type ChartSeriesOptions = ChartSeriesConfig & SeriesOptionsType;
|
|
29
29
|
|
|
30
|
-
export type ChartSeriesValues = Array<number[] | PointOptionsObject | number>;
|
|
30
|
+
export type ChartSeriesValues = Array<number[] | PointOptionsObject | GanttPointOptionsObject | number>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* `<vaadin-chart-series>` is a custom element for creating series for Vaadin Charts.
|
package/src/vaadin-chart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -479,6 +479,7 @@ declare class Chart extends ResizeMixin(ThemableMixin(ElementMixin(HTMLElement))
|
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Specifies whether the chart is a normal chart or a timeline chart.
|
|
482
|
+
* Value of this property is ignored for Gantt charts (type="gantt").
|
|
482
483
|
*/
|
|
483
484
|
timeline: boolean | null | undefined;
|
|
484
485
|
|
package/src/vaadin-chart.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -26,6 +26,7 @@ import 'highcharts/es-modules/masters/modules/timeline.src.js';
|
|
|
26
26
|
import 'highcharts/es-modules/masters/modules/organization.src.js';
|
|
27
27
|
import 'highcharts/es-modules/masters/modules/xrange.src.js';
|
|
28
28
|
import 'highcharts/es-modules/masters/modules/bullet.src.js';
|
|
29
|
+
import 'highcharts/es-modules/masters/modules/gantt.src.js';
|
|
29
30
|
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
|
|
30
31
|
import { beforeNextRender } from '@polymer/polymer/lib/utils/render-status.js';
|
|
31
32
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
@@ -379,6 +380,7 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
379
380
|
|
|
380
381
|
/**
|
|
381
382
|
* Specifies whether the chart is a normal chart or a timeline chart.
|
|
383
|
+
* Value of this property is ignored for Gantt charts (type="gantt").
|
|
382
384
|
*/
|
|
383
385
|
timeline: {
|
|
384
386
|
type: Boolean,
|
|
@@ -1061,7 +1063,9 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
1061
1063
|
__initChart(options) {
|
|
1062
1064
|
this.__initEventsListeners(options);
|
|
1063
1065
|
this.__updateStyledMode(options);
|
|
1064
|
-
if (
|
|
1066
|
+
if (options.chart.type === 'gantt') {
|
|
1067
|
+
this.configuration = Highcharts.ganttChart(this.$.chart, options);
|
|
1068
|
+
} else if (this.timeline) {
|
|
1065
1069
|
this.configuration = Highcharts.stockChart(this.$.chart, options);
|
|
1066
1070
|
} else {
|
|
1067
1071
|
this.configuration = Highcharts.chart(this.$.chart, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -1030,6 +1030,12 @@ const chartBaseTheme = css`
|
|
|
1030
1030
|
stroke-width: 1px;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
+
/* Workaround for https://github.com/highcharts/highcharts/issues/22490 */
|
|
1034
|
+
:where([styled-mode]) .highcharts-gantt-series .highcharts-partfill-overlay {
|
|
1035
|
+
fill: hsla(0, 0%, 0%, 0.3);
|
|
1036
|
+
stroke: hsla(0, 0%, 0%, 0.3);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1033
1039
|
/* RTL styles */
|
|
1034
1040
|
:host([dir='rtl']) :where([styled-mode]) .highcharts-container {
|
|
1035
1041
|
text-align: right;
|
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.7.0-
|
|
4
|
+
"version": "24.7.0-alpha5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "timeline",
|
|
68
|
-
"description": "Specifies whether the chart is a normal chart or a timeline chart.",
|
|
68
|
+
"description": "Specifies whether the chart is a normal chart or a timeline chart.\nValue of this property is ignored for Gantt charts (type=\"gantt\").",
|
|
69
69
|
"value": {
|
|
70
70
|
"type": [
|
|
71
71
|
"boolean",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"name": "timeline",
|
|
238
|
-
"description": "Specifies whether the chart is a normal chart or a timeline chart.",
|
|
238
|
+
"description": "Specifies whether the chart is a normal chart or a timeline chart.\nValue of this property is ignored for Gantt charts (type=\"gantt\").",
|
|
239
239
|
"value": {
|
|
240
240
|
"type": [
|
|
241
241
|
"boolean",
|
package/web-types.lit.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.7.0-
|
|
4
|
+
"version": "24.7.0-alpha5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "?timeline",
|
|
31
|
-
"description": "Specifies whether the chart is a normal chart or a timeline chart.",
|
|
31
|
+
"description": "Specifies whether the chart is a normal chart or a timeline chart.\nValue of this property is ignored for Gantt charts (type=\"gantt\").",
|
|
32
32
|
"value": {
|
|
33
33
|
"kind": "expression"
|
|
34
34
|
}
|