@progress/kendo-vue-charts 4.1.1 → 4.2.0

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.
@@ -221,6 +221,12 @@ var ChartSeriesItemVue2 = {
221
221
  return undefined;
222
222
  }
223
223
  },
224
+ legendItem: {
225
+ type: Object,
226
+ default: function _default() {
227
+ return undefined;
228
+ }
229
+ },
224
230
  notes: {
225
231
  type: Object,
226
232
  default: function _default() {
@@ -13,6 +13,39 @@ var ChartLegendItemVue2 = {
13
13
  name: 'KendoChartLegendItem',
14
14
  props: {
15
15
  cursor: String,
16
+ type: {
17
+ type: String,
18
+ default: function _default() {
19
+ return undefined;
20
+ },
21
+ validator: function validator(value) {
22
+ return ['area', 'line'].includes(value);
23
+ }
24
+ },
25
+ line: {
26
+ type: Object,
27
+ default: function _default() {
28
+ return undefined;
29
+ }
30
+ },
31
+ area: {
32
+ type: Object,
33
+ default: function _default() {
34
+ return undefined;
35
+ }
36
+ },
37
+ markers: {
38
+ type: Object,
39
+ default: function _default() {
40
+ return undefined;
41
+ }
42
+ },
43
+ highlight: {
44
+ type: Object,
45
+ default: function _default() {
46
+ return undefined;
47
+ }
48
+ },
16
49
  visual: {
17
50
  type: Function,
18
51
  default: undefined
@@ -1,13 +1,38 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { LegendItemVisualArgs } from '../../common/property-types';
2
+ import { Border, DashType, LegendItemVisualArgs } from '../../common/property-types';
3
+ import { SeriesMarkers } from './../series-item/markers.interface';
3
4
  /**
4
- * @hidden
5
+ * The configuration of the Chart legend item.
5
6
  */
6
7
  export interface LegendItem {
7
8
  /**
8
9
  * The cursor style of the legend item.
9
10
  */
10
11
  cursor?: string;
12
+ /**
13
+ * Sets the type of the legend item.
14
+ * The default value is based on the series type.
15
+ */
16
+ type?: LegendItemType | string;
17
+ /**
18
+ * Sets the configuration of the legend items of type `line`.
19
+ * This is the default legend item type for all line and scatter series.
20
+ */
21
+ line?: LegendItemLine;
22
+ /**
23
+ * Sets the configuration of the legend items of type `area`.
24
+ * By default, all series except line and scatter use this legend type.
25
+ */
26
+ area?: LegendItemArea;
27
+ /**
28
+ * The markers configuration of the legend item.
29
+ * Defaults to the series options.
30
+ */
31
+ markers?: LegendItemMarkers;
32
+ /**
33
+ * The highlight configuration of the legend item.
34
+ */
35
+ highlight?: LegendItemHighlight;
11
36
  /**
12
37
  * A function for creating a custom visual for the legend items.
13
38
  *
@@ -19,3 +44,74 @@ export interface LegendItem {
19
44
  */
20
45
  visual?: (e: LegendItemVisualArgs) => drawing.Element;
21
46
  }
47
+ /**
48
+ * The configuration of the Chart legend item markers border.
49
+ */
50
+ export interface LegendItemMarkersBorder extends Omit<Border, 'width'> {
51
+ }
52
+ /**
53
+ * The configuration of the Chart legend item markers.
54
+ */
55
+ export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
56
+ /**
57
+ * The border of the markers.
58
+ */
59
+ border?: LegendItemMarkersBorder;
60
+ }
61
+ /**
62
+ * The configuration of the Chart legend item highlight state.
63
+ */
64
+ export interface LegendItemHighlight {
65
+ /**
66
+ * If set to `false`, the hover effect of the legend item is disabled.
67
+ */
68
+ visible?: boolean;
69
+ /**
70
+ * The `markers` configuration of the legend item when it is hovered.
71
+ */
72
+ markers?: LegendItemMarkers;
73
+ }
74
+ /**
75
+ * The configuration of the Chart legend item of type `line`.
76
+ * Defaults to the series options.
77
+ */
78
+ export interface LegendItemLine {
79
+ /**
80
+ * The color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
81
+ * Defaults to the series color.
82
+ */
83
+ color?: string;
84
+ /**
85
+ * The opacity of the legend item.
86
+ * Defaults to the series opacity.
87
+ */
88
+ opacity?: number;
89
+ /**
90
+ * The dash type of the legend item.
91
+ * Defaults to the series dash type.
92
+ */
93
+ dashType?: DashType;
94
+ }
95
+ /**
96
+ * The configuration of the Chart legend items of type `area`.
97
+ * Defaults to the series options.
98
+ */
99
+ export interface LegendItemArea {
100
+ /**
101
+ * The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
102
+ * Defaults to the series color.
103
+ */
104
+ background?: string;
105
+ /**
106
+ * The opacity of the legend item.
107
+ * Defaults to the series opacity.
108
+ */
109
+ opacity?: number;
110
+ }
111
+ /**
112
+ * The type of the Chart legend item.
113
+ *
114
+ * - `"line"`&mdash;the legend items are rendered as a line. This is the default value for line charts.
115
+ * - `"area"`&mdash;the legend items are rendered as a filled rectangle. This is the default value for area charts.
116
+ */
117
+ export declare type LegendItemType = 'line' | 'area';
@@ -1,5 +1,5 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { Border, BulletTarget, DashType, LabelConnectors, SeriesTrendline } from '../common/property-types';
2
+ import { Border, BulletTarget, DashType, LabelConnectors, LegendItem, SeriesTrendline } from '../common/property-types';
3
3
  import { Margin, NegativeBubbleValues, Overlay, SeriesLine, SeriesType } from '../common/property-types';
4
4
  import { LineStyle, SeriesStack, SeriesVisualArgs } from '../common/property-types';
5
5
  import { SeriesErrorBars } from './series-item/error-bars.interface';
@@ -430,6 +430,11 @@ export interface Series {
430
430
  * The configuration of the Chart series marker. The Chart displays the series labels when the [`series.markers.visible`]({% slug api_charts_chartseriesmarkersprops %}#toc-visible) option is set to `true`. The markers option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"area"`, `"rangeArea"`, `"line"`, `"scatter"`, `"scatterLine"`, `"radarLine"`, `"radarArea"`, `"polarLine"`, `"polarScatter"`, or `"polarArea"`.
431
431
  */
432
432
  markers?: SeriesMarkers;
433
+ /**
434
+ * The configuration of the Chart legend item.
435
+ * By default, the Legend item type and markers are inherited from the series.
436
+ */
437
+ legendItem?: LegendItem;
433
438
  /**
434
439
  * The configuration of the series notes.
435
440
  */
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-charts',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1703767464,
8
+ publishDate: 1705504048,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -221,6 +221,12 @@ var ChartSeriesItemVue2 = {
221
221
  return undefined;
222
222
  }
223
223
  },
224
+ legendItem: {
225
+ type: Object,
226
+ default: function _default() {
227
+ return undefined;
228
+ }
229
+ },
224
230
  notes: {
225
231
  type: Object,
226
232
  default: function _default() {
@@ -13,6 +13,39 @@ var ChartLegendItemVue2 = {
13
13
  name: 'KendoChartLegendItem',
14
14
  props: {
15
15
  cursor: String,
16
+ type: {
17
+ type: String,
18
+ default: function _default() {
19
+ return undefined;
20
+ },
21
+ validator: function validator(value) {
22
+ return ['area', 'line'].includes(value);
23
+ }
24
+ },
25
+ line: {
26
+ type: Object,
27
+ default: function _default() {
28
+ return undefined;
29
+ }
30
+ },
31
+ area: {
32
+ type: Object,
33
+ default: function _default() {
34
+ return undefined;
35
+ }
36
+ },
37
+ markers: {
38
+ type: Object,
39
+ default: function _default() {
40
+ return undefined;
41
+ }
42
+ },
43
+ highlight: {
44
+ type: Object,
45
+ default: function _default() {
46
+ return undefined;
47
+ }
48
+ },
16
49
  visual: {
17
50
  type: Function,
18
51
  default: undefined
@@ -1,13 +1,38 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { LegendItemVisualArgs } from '../../common/property-types';
2
+ import { Border, DashType, LegendItemVisualArgs } from '../../common/property-types';
3
+ import { SeriesMarkers } from './../series-item/markers.interface';
3
4
  /**
4
- * @hidden
5
+ * The configuration of the Chart legend item.
5
6
  */
6
7
  export interface LegendItem {
7
8
  /**
8
9
  * The cursor style of the legend item.
9
10
  */
10
11
  cursor?: string;
12
+ /**
13
+ * Sets the type of the legend item.
14
+ * The default value is based on the series type.
15
+ */
16
+ type?: LegendItemType | string;
17
+ /**
18
+ * Sets the configuration of the legend items of type `line`.
19
+ * This is the default legend item type for all line and scatter series.
20
+ */
21
+ line?: LegendItemLine;
22
+ /**
23
+ * Sets the configuration of the legend items of type `area`.
24
+ * By default, all series except line and scatter use this legend type.
25
+ */
26
+ area?: LegendItemArea;
27
+ /**
28
+ * The markers configuration of the legend item.
29
+ * Defaults to the series options.
30
+ */
31
+ markers?: LegendItemMarkers;
32
+ /**
33
+ * The highlight configuration of the legend item.
34
+ */
35
+ highlight?: LegendItemHighlight;
11
36
  /**
12
37
  * A function for creating a custom visual for the legend items.
13
38
  *
@@ -19,3 +44,74 @@ export interface LegendItem {
19
44
  */
20
45
  visual?: (e: LegendItemVisualArgs) => drawing.Element;
21
46
  }
47
+ /**
48
+ * The configuration of the Chart legend item markers border.
49
+ */
50
+ export interface LegendItemMarkersBorder extends Omit<Border, 'width'> {
51
+ }
52
+ /**
53
+ * The configuration of the Chart legend item markers.
54
+ */
55
+ export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
56
+ /**
57
+ * The border of the markers.
58
+ */
59
+ border?: LegendItemMarkersBorder;
60
+ }
61
+ /**
62
+ * The configuration of the Chart legend item highlight state.
63
+ */
64
+ export interface LegendItemHighlight {
65
+ /**
66
+ * If set to `false`, the hover effect of the legend item is disabled.
67
+ */
68
+ visible?: boolean;
69
+ /**
70
+ * The `markers` configuration of the legend item when it is hovered.
71
+ */
72
+ markers?: LegendItemMarkers;
73
+ }
74
+ /**
75
+ * The configuration of the Chart legend item of type `line`.
76
+ * Defaults to the series options.
77
+ */
78
+ export interface LegendItemLine {
79
+ /**
80
+ * The color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
81
+ * Defaults to the series color.
82
+ */
83
+ color?: string;
84
+ /**
85
+ * The opacity of the legend item.
86
+ * Defaults to the series opacity.
87
+ */
88
+ opacity?: number;
89
+ /**
90
+ * The dash type of the legend item.
91
+ * Defaults to the series dash type.
92
+ */
93
+ dashType?: DashType;
94
+ }
95
+ /**
96
+ * The configuration of the Chart legend items of type `area`.
97
+ * Defaults to the series options.
98
+ */
99
+ export interface LegendItemArea {
100
+ /**
101
+ * The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
102
+ * Defaults to the series color.
103
+ */
104
+ background?: string;
105
+ /**
106
+ * The opacity of the legend item.
107
+ * Defaults to the series opacity.
108
+ */
109
+ opacity?: number;
110
+ }
111
+ /**
112
+ * The type of the Chart legend item.
113
+ *
114
+ * - `"line"`&mdash;the legend items are rendered as a line. This is the default value for line charts.
115
+ * - `"area"`&mdash;the legend items are rendered as a filled rectangle. This is the default value for area charts.
116
+ */
117
+ export declare type LegendItemType = 'line' | 'area';
@@ -1,5 +1,5 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { Border, BulletTarget, DashType, LabelConnectors, SeriesTrendline } from '../common/property-types';
2
+ import { Border, BulletTarget, DashType, LabelConnectors, LegendItem, SeriesTrendline } from '../common/property-types';
3
3
  import { Margin, NegativeBubbleValues, Overlay, SeriesLine, SeriesType } from '../common/property-types';
4
4
  import { LineStyle, SeriesStack, SeriesVisualArgs } from '../common/property-types';
5
5
  import { SeriesErrorBars } from './series-item/error-bars.interface';
@@ -430,6 +430,11 @@ export interface Series {
430
430
  * The configuration of the Chart series marker. The Chart displays the series labels when the [`series.markers.visible`]({% slug api_charts_chartseriesmarkersprops %}#toc-visible) option is set to `true`. The markers option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"area"`, `"rangeArea"`, `"line"`, `"scatter"`, `"scatterLine"`, `"radarLine"`, `"radarArea"`, `"polarLine"`, `"polarScatter"`, or `"polarArea"`.
431
431
  */
432
432
  markers?: SeriesMarkers;
433
+ /**
434
+ * The configuration of the Chart legend item.
435
+ * By default, the Legend item type and markers are inherited from the series.
436
+ */
437
+ legendItem?: LegendItem;
433
438
  /**
434
439
  * The configuration of the series notes.
435
440
  */
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-charts',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1703767464,
8
+ publishDate: 1705504048,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -227,6 +227,12 @@ var ChartSeriesItemVue2 = {
227
227
  return undefined;
228
228
  }
229
229
  },
230
+ legendItem: {
231
+ type: Object,
232
+ default: function _default() {
233
+ return undefined;
234
+ }
235
+ },
230
236
  notes: {
231
237
  type: Object,
232
238
  default: function _default() {
@@ -19,6 +19,39 @@ var ChartLegendItemVue2 = {
19
19
  name: 'KendoChartLegendItem',
20
20
  props: {
21
21
  cursor: String,
22
+ type: {
23
+ type: String,
24
+ default: function _default() {
25
+ return undefined;
26
+ },
27
+ validator: function validator(value) {
28
+ return ['area', 'line'].includes(value);
29
+ }
30
+ },
31
+ line: {
32
+ type: Object,
33
+ default: function _default() {
34
+ return undefined;
35
+ }
36
+ },
37
+ area: {
38
+ type: Object,
39
+ default: function _default() {
40
+ return undefined;
41
+ }
42
+ },
43
+ markers: {
44
+ type: Object,
45
+ default: function _default() {
46
+ return undefined;
47
+ }
48
+ },
49
+ highlight: {
50
+ type: Object,
51
+ default: function _default() {
52
+ return undefined;
53
+ }
54
+ },
22
55
  visual: {
23
56
  type: Function,
24
57
  default: undefined
@@ -1,13 +1,38 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { LegendItemVisualArgs } from '../../common/property-types';
2
+ import { Border, DashType, LegendItemVisualArgs } from '../../common/property-types';
3
+ import { SeriesMarkers } from './../series-item/markers.interface';
3
4
  /**
4
- * @hidden
5
+ * The configuration of the Chart legend item.
5
6
  */
6
7
  export interface LegendItem {
7
8
  /**
8
9
  * The cursor style of the legend item.
9
10
  */
10
11
  cursor?: string;
12
+ /**
13
+ * Sets the type of the legend item.
14
+ * The default value is based on the series type.
15
+ */
16
+ type?: LegendItemType | string;
17
+ /**
18
+ * Sets the configuration of the legend items of type `line`.
19
+ * This is the default legend item type for all line and scatter series.
20
+ */
21
+ line?: LegendItemLine;
22
+ /**
23
+ * Sets the configuration of the legend items of type `area`.
24
+ * By default, all series except line and scatter use this legend type.
25
+ */
26
+ area?: LegendItemArea;
27
+ /**
28
+ * The markers configuration of the legend item.
29
+ * Defaults to the series options.
30
+ */
31
+ markers?: LegendItemMarkers;
32
+ /**
33
+ * The highlight configuration of the legend item.
34
+ */
35
+ highlight?: LegendItemHighlight;
11
36
  /**
12
37
  * A function for creating a custom visual for the legend items.
13
38
  *
@@ -19,3 +44,74 @@ export interface LegendItem {
19
44
  */
20
45
  visual?: (e: LegendItemVisualArgs) => drawing.Element;
21
46
  }
47
+ /**
48
+ * The configuration of the Chart legend item markers border.
49
+ */
50
+ export interface LegendItemMarkersBorder extends Omit<Border, 'width'> {
51
+ }
52
+ /**
53
+ * The configuration of the Chart legend item markers.
54
+ */
55
+ export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
56
+ /**
57
+ * The border of the markers.
58
+ */
59
+ border?: LegendItemMarkersBorder;
60
+ }
61
+ /**
62
+ * The configuration of the Chart legend item highlight state.
63
+ */
64
+ export interface LegendItemHighlight {
65
+ /**
66
+ * If set to `false`, the hover effect of the legend item is disabled.
67
+ */
68
+ visible?: boolean;
69
+ /**
70
+ * The `markers` configuration of the legend item when it is hovered.
71
+ */
72
+ markers?: LegendItemMarkers;
73
+ }
74
+ /**
75
+ * The configuration of the Chart legend item of type `line`.
76
+ * Defaults to the series options.
77
+ */
78
+ export interface LegendItemLine {
79
+ /**
80
+ * The color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
81
+ * Defaults to the series color.
82
+ */
83
+ color?: string;
84
+ /**
85
+ * The opacity of the legend item.
86
+ * Defaults to the series opacity.
87
+ */
88
+ opacity?: number;
89
+ /**
90
+ * The dash type of the legend item.
91
+ * Defaults to the series dash type.
92
+ */
93
+ dashType?: DashType;
94
+ }
95
+ /**
96
+ * The configuration of the Chart legend items of type `area`.
97
+ * Defaults to the series options.
98
+ */
99
+ export interface LegendItemArea {
100
+ /**
101
+ * The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
102
+ * Defaults to the series color.
103
+ */
104
+ background?: string;
105
+ /**
106
+ * The opacity of the legend item.
107
+ * Defaults to the series opacity.
108
+ */
109
+ opacity?: number;
110
+ }
111
+ /**
112
+ * The type of the Chart legend item.
113
+ *
114
+ * - `"line"`&mdash;the legend items are rendered as a line. This is the default value for line charts.
115
+ * - `"area"`&mdash;the legend items are rendered as a filled rectangle. This is the default value for area charts.
116
+ */
117
+ export declare type LegendItemType = 'line' | 'area';
@@ -1,5 +1,5 @@
1
1
  import { drawing } from '@progress/kendo-drawing';
2
- import { Border, BulletTarget, DashType, LabelConnectors, SeriesTrendline } from '../common/property-types';
2
+ import { Border, BulletTarget, DashType, LabelConnectors, LegendItem, SeriesTrendline } from '../common/property-types';
3
3
  import { Margin, NegativeBubbleValues, Overlay, SeriesLine, SeriesType } from '../common/property-types';
4
4
  import { LineStyle, SeriesStack, SeriesVisualArgs } from '../common/property-types';
5
5
  import { SeriesErrorBars } from './series-item/error-bars.interface';
@@ -430,6 +430,11 @@ export interface Series {
430
430
  * The configuration of the Chart series marker. The Chart displays the series labels when the [`series.markers.visible`]({% slug api_charts_chartseriesmarkersprops %}#toc-visible) option is set to `true`. The markers option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"area"`, `"rangeArea"`, `"line"`, `"scatter"`, `"scatterLine"`, `"radarLine"`, `"radarArea"`, `"polarLine"`, `"polarScatter"`, or `"polarArea"`.
431
431
  */
432
432
  markers?: SeriesMarkers;
433
+ /**
434
+ * The configuration of the Chart legend item.
435
+ * By default, the Legend item type and markers are inherited from the series.
436
+ */
437
+ legendItem?: LegendItem;
433
438
  /**
434
439
  * The configuration of the series notes.
435
440
  */
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-charts',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1703767464,
11
+ publishDate: 1705504048,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-charts",
3
3
  "description": "Kendo UI for Vue Charts package",
4
- "version": "4.1.1",
4
+ "version": "4.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -43,18 +43,18 @@
43
43
  "vue": "^2.6.12 || ^3.0.2"
44
44
  },
45
45
  "dependencies": {
46
- "@progress/kendo-charts": "1.32.1",
47
- "@progress/kendo-vue-common": "4.1.1",
48
- "@progress/kendo-vue-popup": "4.1.1"
46
+ "@progress/kendo-charts": "2.0.0",
47
+ "@progress/kendo-vue-common": "4.2.0",
48
+ "@progress/kendo-vue-popup": "4.2.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@progress/kendo-data-query": "^1.0.0",
52
52
  "@progress/kendo-drawing": "^1.8.0",
53
53
  "@progress/kendo-file-saver": "^1.0.1",
54
54
  "@progress/kendo-licensing": "^1.3.0",
55
- "@progress/kendo-vue-dropdowns": "4.1.1",
56
- "@progress/kendo-vue-inputs": "4.1.1",
57
- "@progress/kendo-vue-intl": "4.1.1",
55
+ "@progress/kendo-vue-dropdowns": "4.2.0",
56
+ "@progress/kendo-vue-inputs": "4.2.0",
57
+ "@progress/kendo-vue-intl": "4.2.0",
58
58
  "cldr-core": "^41.0.0",
59
59
  "cldr-dates-full": "^41.0.0",
60
60
  "cldr-numbers-full": "^41.0.0",