@coreui/angular-chartjs 4.2.15 → 4.2.33

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.
@@ -1,52 +1,54 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
2
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
3
- import { Chart, ChartConfiguration, ChartType, DefaultDataPoint } from 'chart.js';
4
- import * as i0 from "@angular/core";
5
- export declare class ChartjsComponent<TType extends ChartType = ChartType, TData = DefaultDataPoint<TType>, TLabel = unknown> implements AfterViewInit, OnDestroy, OnChanges {
6
- private elementRef;
7
- private ngZone;
8
- private renderer;
9
- static ngAcceptInputType_height: NumberInput;
10
- static ngAcceptInputType_width: NumberInput;
11
- static ngAcceptInputType_redraw: BooleanInput;
12
- customTooltips: boolean;
13
- data?: ChartConfiguration<TType, TData, TLabel>['data'];
14
- set height(value: number | undefined);
15
- get height(): number | undefined;
16
- private _height;
17
- id: string;
18
- options?: ChartConfiguration<TType, TData, TLabel>['options'];
19
- plugins: ChartConfiguration<TType, TData, TLabel>['plugins'];
20
- set redraw(value: boolean);
21
- get redraw(): boolean;
22
- private _redraw;
23
- type: ChartConfiguration<TType, TData, TLabel>['type'];
24
- set width(value: number | undefined);
25
- get width(): number | undefined;
26
- private _width;
27
- wrapper: boolean;
28
- getDatasetAtEvent: EventEmitter<any>;
29
- getElementAtEvent: EventEmitter<any>;
30
- getElementsAtEvent: EventEmitter<any>;
31
- canvasElement: ElementRef;
32
- chart: Chart<TType, TData, TLabel>;
33
- get hostClasses(): {
34
- 'chart-wrapper': boolean;
35
- };
36
- constructor(elementRef: ElementRef, ngZone: NgZone, renderer: Renderer2);
37
- ngAfterViewInit(): void;
38
- ngOnChanges(changes: SimpleChanges): void;
39
- ngOnDestroy(): void;
40
- handleOnClick($event: MouseEvent): void;
41
- chartDestroy(): void;
42
- chartRender(): void;
43
- chartUpdate(): void;
44
- private chartUpdateOutsideAngular;
45
- chartToBase64Image(): string | undefined;
46
- private chartDataConfig;
47
- private chartOptions;
48
- private chartConfig;
49
- private chartCustomTooltips;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartjsComponent<any, any, any>, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartjsComponent<any, any, any>, "c-chart", ["cChart"], { "customTooltips": "customTooltips"; "data": "data"; "height": "height"; "id": "id"; "options": "options"; "plugins": "plugins"; "redraw": "redraw"; "type": "type"; "width": "width"; "wrapper": "wrapper"; }, { "getDatasetAtEvent": "getDatasetAtEvent"; "getElementAtEvent": "getElementAtEvent"; "getElementsAtEvent": "getElementsAtEvent"; }, never, ["*"], false>;
52
- }
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
2
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
3
+ import { Chart, ChartConfiguration, ChartType, DefaultDataPoint } from 'chart.js';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ChartjsComponent<TType extends ChartType = ChartType, TData = DefaultDataPoint<TType>, TLabel = unknown> implements AfterViewInit, OnDestroy, OnChanges {
6
+ private elementRef;
7
+ private ngZone;
8
+ private renderer;
9
+ private changeDetectorRef;
10
+ static ngAcceptInputType_height: NumberInput;
11
+ static ngAcceptInputType_width: NumberInput;
12
+ static ngAcceptInputType_redraw: BooleanInput;
13
+ customTooltips: boolean;
14
+ data?: ChartConfiguration<TType, TData, TLabel>['data'];
15
+ set height(value: number | undefined);
16
+ get height(): number | undefined;
17
+ private _height;
18
+ id: string;
19
+ options?: ChartConfiguration<TType, TData, TLabel>['options'];
20
+ plugins: ChartConfiguration<TType, TData, TLabel>['plugins'];
21
+ set redraw(value: boolean);
22
+ get redraw(): boolean;
23
+ private _redraw;
24
+ type: ChartConfiguration<TType, TData, TLabel>['type'];
25
+ set width(value: number | undefined);
26
+ get width(): number | undefined;
27
+ private _width;
28
+ wrapper: boolean;
29
+ readonly getDatasetAtEvent: EventEmitter<any>;
30
+ readonly getElementAtEvent: EventEmitter<any>;
31
+ readonly getElementsAtEvent: EventEmitter<any>;
32
+ readonly chartRef: EventEmitter<any>;
33
+ canvasElement: ElementRef;
34
+ chart: Chart<TType, TData, TLabel>;
35
+ get hostClasses(): {
36
+ 'chart-wrapper': boolean;
37
+ };
38
+ constructor(elementRef: ElementRef, ngZone: NgZone, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef);
39
+ ngAfterViewInit(): void;
40
+ ngOnChanges(changes: SimpleChanges): void;
41
+ ngOnDestroy(): void;
42
+ handleClick($event: MouseEvent): void;
43
+ chartDestroy(): void;
44
+ chartRender(): void;
45
+ chartUpdate(): void;
46
+ private chartUpdateOutsideAngular;
47
+ chartToBase64Image(): string | undefined;
48
+ private chartDataConfig;
49
+ private chartOptions;
50
+ private chartConfig;
51
+ private chartCustomTooltips;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartjsComponent<any, any, any>, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartjsComponent<any, any, any>, "c-chart", ["cChart"], { "customTooltips": "customTooltips"; "data": "data"; "height": "height"; "id": "id"; "options": "options"; "plugins": "plugins"; "redraw": "redraw"; "type": "type"; "width": "width"; "wrapper": "wrapper"; }, { "getDatasetAtEvent": "getDatasetAtEvent"; "getElementAtEvent": "getElementAtEvent"; "getElementsAtEvent": "getElementsAtEvent"; "chartRef": "chartRef"; }, never, ["*"], true>;
54
+ }
@@ -1,7 +1,7 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./chartjs.component";
3
- export declare class ChartjsModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartjsModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<ChartjsModule, [typeof i1.ChartjsComponent], never, [typeof i1.ChartjsComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<ChartjsModule>;
7
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./chartjs.component";
3
+ export declare class ChartjsModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartjsModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ChartjsModule, never, [typeof i1.ChartjsComponent], [typeof i1.ChartjsComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<ChartjsModule>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-chartjs",
3
- "version": "4.2.15",
3
+ "version": "4.2.33",
4
4
  "description": "Angular wrapper component for Chart.js",
5
5
  "copyright": "Copyright 2022 creativeLabs Łukasz Holeczek",
6
6
  "license": "MIT",
package/public-api.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './lib/chartjs.component';
2
- export * from './lib/chartjs.module';
1
+ export * from './lib/chartjs.component';
2
+ export * from './lib/chartjs.module';