ca-components 1.0.76 → 1.0.77
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 +200 -120
- package/esm2022/lib/components/ca-chart/enums/chart-annotation.enum.mjs +11 -0
- package/esm2022/lib/components/ca-chart/enums/chart-plugin-ids.enum.mjs +2 -1
- package/esm2022/lib/components/ca-chart/enums/index.mjs +2 -1
- package/esm2022/lib/components/ca-chart/models/chart-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-chart/models/chart-legend-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-chart/models/chart-legend-property.model.mjs +2 -0
- package/esm2022/lib/components/ca-chart/models/index.mjs +3 -1
- package/esm2022/lib/components/ca-chart/utils/helpers/chart.helper.mjs +2 -2
- package/esm2022/lib/components/ca-chart-manager/ca-chart-manager.component.mjs +4 -4
- package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +3 -3
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +21 -22
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.mjs +6 -0
- package/esm2022/lib/pipes/index.mjs +19 -0
- package/esm2022/lib/pipes/unit-position.pipe.mjs +24 -0
- package/fesm2022/ca-components.mjs +277 -163
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-chart/ca-chart.component.d.ts +9 -4
- package/lib/components/ca-chart/enums/chart-annotation.enum.d.ts +10 -0
- package/lib/components/ca-chart/enums/chart-plugin-ids.enum.d.ts +2 -1
- package/lib/components/ca-chart/enums/index.d.ts +1 -0
- package/lib/components/ca-chart/models/chart-config.model.d.ts +1 -0
- package/lib/components/ca-chart/models/chart-legend-config.model.d.ts +6 -0
- package/lib/components/ca-chart/models/chart-legend-property.model.d.ts +7 -0
- package/lib/components/ca-chart/models/index.d.ts +2 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.d.ts +4 -0
- package/lib/pipes/index.d.ts +18 -0
- package/lib/pipes/unit-position.pipe.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { IChartConfiguration, IChartDatasetHover } from './models';
|
|
2
|
+
import { IChartConfiguration, IChartDatasetHover, IChartLegendConfig } from './models';
|
|
3
3
|
import { ChartManagerService } from '../ca-chart-manager/services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CaChartComponent implements AfterViewInit {
|
|
6
6
|
private changeDetector;
|
|
7
7
|
private chartManagerService?;
|
|
8
8
|
chartCanvas: ElementRef;
|
|
9
|
+
legendData: IChartLegendConfig;
|
|
9
10
|
chartId: string;
|
|
10
11
|
set chartDatasetHover(value: IChartDatasetHover | null);
|
|
11
12
|
set chartConfig(value: IChartConfiguration);
|
|
13
|
+
set selectedIndex(value: number);
|
|
12
14
|
hoveredIndex: EventEmitter<number | null>;
|
|
15
|
+
private destroy$;
|
|
13
16
|
private chart;
|
|
14
17
|
private chartContext;
|
|
15
|
-
private subscription;
|
|
16
18
|
private plugins?;
|
|
17
19
|
private areAnimationsCompleated;
|
|
18
20
|
private _hoveredIndex;
|
|
@@ -27,13 +29,16 @@ export declare class CaChartComponent implements AfterViewInit {
|
|
|
27
29
|
private createChart;
|
|
28
30
|
private updateChart;
|
|
29
31
|
private setChartOptionsProperties;
|
|
32
|
+
private focusDoughnutArc;
|
|
33
|
+
private setOriginalDoughnutArcsColor;
|
|
30
34
|
private setChartDataProperties;
|
|
31
35
|
private setChartPluginsProperties;
|
|
32
36
|
private updateChartAnnotations;
|
|
33
37
|
private setMultipleYAxis;
|
|
34
|
-
private
|
|
38
|
+
private removeVerticalDashedLine;
|
|
35
39
|
private setVerticalDashedAnnotationLine;
|
|
40
|
+
removeVerticalDashedLineAndFocus(): void;
|
|
36
41
|
ngOnDestroy(): void;
|
|
37
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaChartComponent, [null, { optional: true; }]>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaChartComponent, "app-ca-chart", never, { "chartId": { "alias": "chartId"; "required": false; }; "chartDatasetHover": { "alias": "chartDatasetHover"; "required": false; }; "chartConfig": { "alias": "chartConfig"; "required": false; }; }, { "hoveredIndex": "hoveredIndex"; }, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaChartComponent, "app-ca-chart", never, { "legendData": { "alias": "legendData"; "required": false; }; "chartId": { "alias": "chartId"; "required": false; }; "chartDatasetHover": { "alias": "chartDatasetHover"; "required": false; }; "chartConfig": { "alias": "chartConfig"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "hoveredIndex": "hoveredIndex"; }, never, never, true, never>;
|
|
39
44
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EChartAnnotationType, ChartPluginIdsStringEnum, EChartEventProperties } from '../enums';
|
|
2
|
+
export declare class EChartAnnotation {
|
|
3
|
+
static X_DASHED: {
|
|
4
|
+
id: ChartPluginIdsStringEnum;
|
|
5
|
+
type: EChartAnnotationType;
|
|
6
|
+
scaleID: EChartEventProperties;
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
borderDash: number[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum ChartPluginIdsStringEnum {
|
|
2
2
|
HIGHLIGHT_SEGMENT_ON_HOVER = "highlightSegmentOnHover",
|
|
3
3
|
HIGHLIGHT_POINT_ON_HOVER = "highlightPointOnHover",
|
|
4
|
-
BORDER_BOTTOM_LINE_CHART = "borderBottomLineChart"
|
|
4
|
+
BORDER_BOTTOM_LINE_CHART = "borderBottomLineChart",
|
|
5
|
+
X_DASHED = "x-dashed"
|
|
5
6
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './ca-svg.pipe';
|
|
2
|
+
export * from './date-from-string.pipe';
|
|
3
|
+
export * from './date.pipe';
|
|
4
|
+
export * from './dispatch-status-color.pipe';
|
|
5
|
+
export * from './dropdown-load-status-color.pipe';
|
|
6
|
+
export * from './format-city-state.pipe';
|
|
7
|
+
export * from './format-currency.pipe';
|
|
8
|
+
export * from './highlight-search.pipe';
|
|
9
|
+
export * from './load-status-color.pipe';
|
|
10
|
+
export * from './n-formatter.pipe';
|
|
11
|
+
export * from './name-initials.pipe';
|
|
12
|
+
export * from './safe-html.pipe';
|
|
13
|
+
export * from './thousand-separator.pipe';
|
|
14
|
+
export * from './thousand-to-short-format-pipe';
|
|
15
|
+
export * from './to-lower-case.pipe';
|
|
16
|
+
export * from './truncate-string.pipe';
|
|
17
|
+
export * from './unit-position.pipe';
|
|
18
|
+
export * from './user-initials.pipe';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UnitPositionPipe implements PipeTransform {
|
|
4
|
+
transform(value: string, indicator: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnitPositionPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<UnitPositionPipe, "unitPosition", true>;
|
|
7
|
+
}
|