ca-components 1.0.64 → 1.0.65
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/esm2022/lib/components/ca-chart/ca-chart.component.mjs +82 -22
- package/esm2022/lib/components/ca-chart/enums/chart-annotation-type.enum.mjs +10 -0
- package/esm2022/lib/components/ca-chart/enums/chart-event-properties.enum.mjs +7 -7
- package/esm2022/lib/components/ca-chart/enums/index.mjs +2 -1
- package/esm2022/lib/components/ca-chart/models/chart-annotation.model.mjs +2 -0
- package/esm2022/lib/components/ca-chart/models/chart-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-chart/models/index.mjs +2 -1
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
- package/fesm2022/ca-components.mjs +101 -31
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-chart/ca-chart.component.d.ts +3 -0
- package/lib/components/ca-chart/enums/chart-annotation-type.enum.d.ts +8 -0
- package/lib/components/ca-chart/enums/chart-event-properties.enum.d.ts +1 -1
- package/lib/components/ca-chart/enums/index.d.ts +1 -0
- package/lib/components/ca-chart/models/chart-annotation.model.d.ts +10 -0
- package/lib/components/ca-chart/models/chart-config.model.d.ts +3 -0
- package/lib/components/ca-chart/models/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,7 +22,10 @@ export declare class CaChartComponent implements AfterViewInit {
|
|
|
22
22
|
private setChartOptionsProperties;
|
|
23
23
|
private setChartDataProperties;
|
|
24
24
|
private setChartPluginsProperties;
|
|
25
|
+
private updateChartAnnotations;
|
|
25
26
|
private setMultipleYAxis;
|
|
27
|
+
private resetAnnotations;
|
|
28
|
+
private setVerticalDashedAnnotationLine;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaChartComponent, never>;
|
|
27
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaChartComponent, "app-ca-chart", never, { "chartConfig": { "alias": "chartConfig"; "required": false; }; "isDatasetHovered": { "alias": "isDatasetHovered"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
31
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EChartAnnotationType, EChartEventProperties } from "../enums";
|
|
2
|
+
export interface IChartAnnotation {
|
|
3
|
+
id?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
type: EChartAnnotationType;
|
|
6
|
+
color?: string;
|
|
7
|
+
borderWidth?: number;
|
|
8
|
+
borderDash?: [number, number];
|
|
9
|
+
axis: EChartEventProperties;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChartOptions, ChartType } from 'chart.js';
|
|
2
2
|
import { IBaseDataset, IChartData } from '../models';
|
|
3
|
+
import { IChartAnnotation } from './chart-annotation.model';
|
|
3
4
|
export interface IChartConfiguration {
|
|
4
5
|
chartType: ChartType;
|
|
5
6
|
chartData: IChartData<IBaseDataset>;
|
|
@@ -11,4 +12,6 @@ export interface IChartConfiguration {
|
|
|
11
12
|
isStacked?: boolean;
|
|
12
13
|
showTooltipBackground?: boolean;
|
|
13
14
|
showXAxisLabels?: boolean;
|
|
15
|
+
annotations?: IChartAnnotation[];
|
|
16
|
+
hasVerticalDashedAnnotation?: boolean;
|
|
14
17
|
}
|