@vaadin/charts 24.6.5 → 24.7.0-alpha10

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.
@@ -0,0 +1,11 @@
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';
@@ -0,0 +1,33 @@
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
+ import './vaadin-lit-chart.js';
12
+ import { LitElement } from 'lit';
13
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
14
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
15
+ import { ChartSeriesMixin } from './vaadin-chart-series-mixin.js';
16
+
17
+ /**
18
+ * LitElement based version of `<vaadin-chart-series>` web component.
19
+ *
20
+ * ## Disclaimer
21
+ *
22
+ * This component is an experiment and not yet a part of Vaadin platform.
23
+ * There is no ETA regarding specific Vaadin version where it'll land.
24
+ */
25
+ class ChartSeries extends ChartSeriesMixin(PolylitMixin(LitElement)) {
26
+ static get is() {
27
+ return 'vaadin-chart-series';
28
+ }
29
+ }
30
+
31
+ defineCustomElement(ChartSeries);
32
+
33
+ export { ChartSeries };
@@ -0,0 +1,11 @@
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';
@@ -0,0 +1,61 @@
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
+ import './vaadin-lit-chart-series.js';
12
+ import { css, html, LitElement } from 'lit';
13
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
14
+ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
15
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
16
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
17
+ import { ChartMixin } from './vaadin-chart-mixin.js';
18
+
19
+ /**
20
+ * LitElement based version of `<vaadin-chart>` web component.
21
+ *
22
+ * ## Disclaimer
23
+ *
24
+ * This component is an experiment and not yet a part of Vaadin platform.
25
+ * There is no ETA regarding specific Vaadin version where it'll land.
26
+ */
27
+ class Chart extends ChartMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
28
+ static get styles() {
29
+ return css`
30
+ :host {
31
+ display: block;
32
+ width: 100%;
33
+ overflow: hidden;
34
+ }
35
+
36
+ :host([hidden]) {
37
+ display: none !important;
38
+ }
39
+ `;
40
+ }
41
+
42
+ /** @protected */
43
+ render() {
44
+ return html`
45
+ <div id="chart"></div>
46
+ <slot id="slot"></slot>
47
+ `;
48
+ }
49
+
50
+ static get is() {
51
+ return 'vaadin-chart';
52
+ }
53
+
54
+ static get cvdlName() {
55
+ return 'vaadin-chart';
56
+ }
57
+ }
58
+
59
+ defineCustomElement(Chart);
60
+
61
+ export { Chart };
@@ -0,0 +1,2 @@
1
+ import './vaadin-chart-styles.js';
2
+ import '../../src/vaadin-lit-chart.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-chart-styles.js';
2
+ import '../../src/vaadin-lit-chart.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-chart-styles.js';
2
+ import '../../src/vaadin-lit-chart.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-chart-styles.js';
2
+ import '../../src/vaadin-lit-chart.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2024 Vaadin Ltd.
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;
@@ -0,0 +1 @@
1
+ export * from './vaadin-chart-series.js';
@@ -0,0 +1 @@
1
+ export * from './src/vaadin-lit-chart-series.js';
@@ -0,0 +1 @@
1
+ export * from './vaadin-chart.js';
@@ -0,0 +1,2 @@
1
+ import './theme/lumo/vaadin-lit-chart.js';
2
+ export * from './src/vaadin-lit-chart.js';