@progress/kendo-angular-charts 14.0.2-develop.9 → 14.1.0-develop.10

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.
@@ -12,7 +12,7 @@ import * as i0 from "@angular/core";
12
12
  * The series notes configuration
13
13
  * ([see example]({% slug notes_chart_charts %})).
14
14
  *
15
- * * @example
15
+ * @example
16
16
  * ```html
17
17
  * <kendo-chart ...>
18
18
  * <kendo-chart-series>
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
15
15
  * - `let-value="value"`&mdash;The value of the point (either a number or an object).
16
16
  * For the full list of available fields, refer to the [`TooltipTemplatePoint`](slug:api_charts_tooltiptemplatepoint).
17
17
  *
18
- * @example
18
+ * @example
19
19
  * ```ts
20
20
  * import { Component } from '@angular/core';
21
21
  *
@@ -410,6 +410,12 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
410
410
  * @hidden
411
411
  */
412
412
  onResize(): void;
413
+ /**
414
+ * Reloads the Chart appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
415
+ *
416
+ * Call this method after loading a different theme stylesheet.
417
+ */
418
+ reloadTheme(): void;
413
419
  protected onLegendItemClick(e: any): void;
414
420
  protected onInit(e: any): void;
415
421
  protected onRender(e: any): void;
package/chart.module.d.ts CHANGED
@@ -103,7 +103,7 @@ import * as i94 from "@progress/kendo-angular-common";
103
103
  * Imports the ChartModule into your application
104
104
  * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
105
105
  * that will use the Chart component.
106
- * @example
106
+ * @example
107
107
  * ```ts
108
108
  * import { NgModule } from '@angular/core';
109
109
  * import { BrowserModule } from '@angular/platform-browser';
@@ -13,6 +13,7 @@ export declare class ThemeService extends ConfigurationService {
13
13
  private element;
14
14
  constructor(ngZone: NgZone);
15
15
  loadTheme(): void;
16
+ reset(): void;
16
17
  private readTheme;
17
18
  private readDefaultTheme;
18
19
  private createElement;
@@ -11,7 +11,7 @@ import * as i1 from "../../common/configuration.service";
11
11
  * The series notes configuration
12
12
  * ([see example]({% slug notes_chart_charts %})).
13
13
  *
14
- * * @example
14
+ * @example
15
15
  * ```html
16
16
  * <kendo-chart ...>
17
17
  * <kendo-chart-series>
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
15
15
  * - `let-value="value"`&mdash;The value of the point (either a number or an object).
16
16
  * For the full list of available fields, refer to the [`TooltipTemplatePoint`](slug:api_charts_tooltiptemplatepoint).
17
17
  *
18
- * @example
18
+ * @example
19
19
  * ```ts
20
20
  * import { Component } from '@angular/core';
21
21
  *
@@ -481,6 +481,19 @@ export class ChartComponent {
481
481
  this.resize();
482
482
  }
483
483
  }
484
+ /**
485
+ * Reloads the Chart appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
486
+ *
487
+ * Call this method after loading a different theme stylesheet.
488
+ */
489
+ reloadTheme() {
490
+ if (!this.instance) {
491
+ return;
492
+ }
493
+ this.themeService.reset();
494
+ this.instance.destroy();
495
+ this.instance = null;
496
+ }
484
497
  onLegendItemClick(e) {
485
498
  this.run(() => {
486
499
  const args = new LegendItemClickEvent(e, this);
@@ -106,7 +106,7 @@ import * as i90 from "./chart/zoomable.component";
106
106
  * Imports the ChartModule into your application
107
107
  * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
108
108
  * that will use the Chart component.
109
- * @example
109
+ * @example
110
110
  * ```ts
111
111
  * import { NgModule } from '@angular/core';
112
112
  * import { BrowserModule } from '@angular/platform-browser';
@@ -90,6 +90,11 @@ export class ThemeService extends ConfigurationService {
90
90
  this.loaded = true;
91
91
  this.next();
92
92
  }
93
+ reset() {
94
+ this.store = {};
95
+ this.loaded = false;
96
+ this.loadTheme();
97
+ }
93
98
  readTheme() {
94
99
  this.createElement();
95
100
  const available = this.queryColor('primary') !==
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-charts',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1698068958,
13
- version: '14.0.2-develop.9',
12
+ publishDate: 1699437472,
13
+ version: '14.1.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -1028,7 +1028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1028
1028
  * - `let-value="value"`&mdash;The value of the point (either a number or an object).
1029
1029
  * For the full list of available fields, refer to the [`TooltipTemplatePoint`](slug:api_charts_tooltiptemplatepoint).
1030
1030
  *
1031
- * @example
1031
+ * @example
1032
1032
  * ```ts
1033
1033
  * import { Component } from '@angular/core';
1034
1034
  *
@@ -1871,8 +1871,8 @@ const packageMetadata = {
1871
1871
  name: '@progress/kendo-angular-charts',
1872
1872
  productName: 'Kendo UI for Angular',
1873
1873
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
1874
- publishDate: 1698068958,
1875
- version: '14.0.2-develop.9',
1874
+ publishDate: 1699437472,
1875
+ version: '14.1.0-develop.10',
1876
1876
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1877
1877
  };
1878
1878
 
@@ -2222,6 +2222,11 @@ class ThemeService extends ConfigurationService {
2222
2222
  this.loaded = true;
2223
2223
  this.next();
2224
2224
  }
2225
+ reset() {
2226
+ this.store = {};
2227
+ this.loaded = false;
2228
+ this.loadTheme();
2229
+ }
2225
2230
  readTheme() {
2226
2231
  this.createElement();
2227
2232
  const available = this.queryColor('primary') !==
@@ -2799,6 +2804,19 @@ class ChartComponent {
2799
2804
  this.resize();
2800
2805
  }
2801
2806
  }
2807
+ /**
2808
+ * Reloads the Chart appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
2809
+ *
2810
+ * Call this method after loading a different theme stylesheet.
2811
+ */
2812
+ reloadTheme() {
2813
+ if (!this.instance) {
2814
+ return;
2815
+ }
2816
+ this.themeService.reset();
2817
+ this.instance.destroy();
2818
+ this.instance = null;
2819
+ }
2802
2820
  onLegendItemClick(e) {
2803
2821
  this.run(() => {
2804
2822
  const args = new LegendItemClickEvent(e, this);
@@ -4858,7 +4876,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4858
4876
  * The series notes configuration
4859
4877
  * ([see example]({% slug notes_chart_charts %})).
4860
4878
  *
4861
- * * @example
4879
+ * @example
4862
4880
  * ```html
4863
4881
  * <kendo-chart ...>
4864
4882
  * <kendo-chart-series>
@@ -7704,7 +7722,7 @@ const SPARKLINE_DIRECTIVES = [
7704
7722
  * Imports the ChartModule into your application
7705
7723
  * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
7706
7724
  * that will use the Chart component.
7707
- * @example
7725
+ * @example
7708
7726
  * ```ts
7709
7727
  * import { NgModule } from '@angular/core';
7710
7728
  * import { BrowserModule } from '@angular/platform-browser';
@@ -1024,7 +1024,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1024
1024
  * - `let-value="value"`&mdash;The value of the point (either a number or an object).
1025
1025
  * For the full list of available fields, refer to the [`TooltipTemplatePoint`](slug:api_charts_tooltiptemplatepoint).
1026
1026
  *
1027
- * @example
1027
+ * @example
1028
1028
  * ```ts
1029
1029
  * import { Component } from '@angular/core';
1030
1030
  *
@@ -1650,6 +1650,11 @@ class ThemeService extends ConfigurationService {
1650
1650
  this.loaded = true;
1651
1651
  this.next();
1652
1652
  }
1653
+ reset() {
1654
+ this.store = {};
1655
+ this.loaded = false;
1656
+ this.loadTheme();
1657
+ }
1653
1658
  readTheme() {
1654
1659
  this.createElement();
1655
1660
  const available = this.queryColor('primary') !==
@@ -2240,8 +2245,8 @@ const packageMetadata = {
2240
2245
  name: '@progress/kendo-angular-charts',
2241
2246
  productName: 'Kendo UI for Angular',
2242
2247
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
2243
- publishDate: 1698068958,
2244
- version: '14.0.2-develop.9',
2248
+ publishDate: 1699437472,
2249
+ version: '14.1.0-develop.10',
2245
2250
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
2246
2251
  };
2247
2252
 
@@ -2791,6 +2796,19 @@ class ChartComponent {
2791
2796
  this.resize();
2792
2797
  }
2793
2798
  }
2799
+ /**
2800
+ * Reloads the Chart appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
2801
+ *
2802
+ * Call this method after loading a different theme stylesheet.
2803
+ */
2804
+ reloadTheme() {
2805
+ if (!this.instance) {
2806
+ return;
2807
+ }
2808
+ this.themeService.reset();
2809
+ this.instance.destroy();
2810
+ this.instance = null;
2811
+ }
2794
2812
  onLegendItemClick(e) {
2795
2813
  this.run(() => {
2796
2814
  const args = new LegendItemClickEvent(e, this);
@@ -4883,7 +4901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4883
4901
  * The series notes configuration
4884
4902
  * ([see example]({% slug notes_chart_charts %})).
4885
4903
  *
4886
- * * @example
4904
+ * @example
4887
4905
  * ```html
4888
4906
  * <kendo-chart ...>
4889
4907
  * <kendo-chart-series>
@@ -7688,7 +7706,7 @@ const SPARKLINE_DIRECTIVES = [
7688
7706
  * Imports the ChartModule into your application
7689
7707
  * [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
7690
7708
  * that will use the Chart component.
7691
- * @example
7709
+ * @example
7692
7710
  * ```ts
7693
7711
  * import { NgModule } from '@angular/core';
7694
7712
  * import { BrowserModule } from '@angular/platform-browser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-charts",
3
- "version": "14.0.2-develop.9",
3
+ "version": "14.1.0-develop.10",
4
4
  "description": "Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -41,23 +41,23 @@
41
41
  "friendlyName": "Charts"
42
42
  },
43
43
  "peerDependencies": {
44
- "@angular/animations": "13 - 16",
45
- "@angular/common": "13 - 16",
46
- "@angular/core": "13 - 16",
47
- "@angular/platform-browser": "13 - 16",
44
+ "@angular/animations": "13 - 17",
45
+ "@angular/common": "13 - 17",
46
+ "@angular/core": "13 - 17",
47
+ "@angular/platform-browser": "13 - 17",
48
48
  "@progress/kendo-drawing": "^1.17.2",
49
49
  "@progress/kendo-licensing": "^1.0.2",
50
- "@progress/kendo-angular-common": "14.0.2-develop.9",
51
- "@progress/kendo-angular-intl": "14.0.2-develop.9",
52
- "@progress/kendo-angular-l10n": "14.0.2-develop.9",
53
- "@progress/kendo-angular-popup": "14.0.2-develop.9",
54
- "@progress/kendo-angular-navigation": "14.0.2-develop.9",
50
+ "@progress/kendo-angular-common": "14.1.0-develop.10",
51
+ "@progress/kendo-angular-intl": "14.1.0-develop.10",
52
+ "@progress/kendo-angular-l10n": "14.1.0-develop.10",
53
+ "@progress/kendo-angular-popup": "14.1.0-develop.10",
54
+ "@progress/kendo-angular-navigation": "14.1.0-develop.10",
55
55
  "hammerjs": "^2.0.0",
56
56
  "rxjs": "^6.5.3 || ^7.0.0"
57
57
  },
58
58
  "dependencies": {
59
59
  "tslib": "^2.3.1",
60
- "@progress/kendo-angular-schematics": "14.0.2-develop.9",
60
+ "@progress/kendo-angular-schematics": "14.1.0-develop.10",
61
61
  "@progress/kendo-charts": "^1.32.0",
62
62
  "@progress/kendo-svg-icons": "^2.0.0"
63
63
  },