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.
Files changed (29) hide show
  1. package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +200 -120
  2. package/esm2022/lib/components/ca-chart/enums/chart-annotation.enum.mjs +11 -0
  3. package/esm2022/lib/components/ca-chart/enums/chart-plugin-ids.enum.mjs +2 -1
  4. package/esm2022/lib/components/ca-chart/enums/index.mjs +2 -1
  5. package/esm2022/lib/components/ca-chart/models/chart-config.model.mjs +1 -1
  6. package/esm2022/lib/components/ca-chart/models/chart-legend-config.model.mjs +2 -0
  7. package/esm2022/lib/components/ca-chart/models/chart-legend-property.model.mjs +2 -0
  8. package/esm2022/lib/components/ca-chart/models/index.mjs +3 -1
  9. package/esm2022/lib/components/ca-chart/utils/helpers/chart.helper.mjs +2 -2
  10. package/esm2022/lib/components/ca-chart-manager/ca-chart-manager.component.mjs +4 -4
  11. package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +3 -3
  12. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +21 -22
  13. package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.mjs +6 -0
  14. package/esm2022/lib/pipes/index.mjs +19 -0
  15. package/esm2022/lib/pipes/unit-position.pipe.mjs +24 -0
  16. package/fesm2022/ca-components.mjs +277 -163
  17. package/fesm2022/ca-components.mjs.map +1 -1
  18. package/lib/components/ca-chart/ca-chart.component.d.ts +9 -4
  19. package/lib/components/ca-chart/enums/chart-annotation.enum.d.ts +10 -0
  20. package/lib/components/ca-chart/enums/chart-plugin-ids.enum.d.ts +2 -1
  21. package/lib/components/ca-chart/enums/index.d.ts +1 -0
  22. package/lib/components/ca-chart/models/chart-config.model.d.ts +1 -0
  23. package/lib/components/ca-chart/models/chart-legend-config.model.d.ts +6 -0
  24. package/lib/components/ca-chart/models/chart-legend-property.model.d.ts +7 -0
  25. package/lib/components/ca-chart/models/index.d.ts +2 -0
  26. package/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.d.ts +4 -0
  27. package/lib/pipes/index.d.ts +18 -0
  28. package/lib/pipes/unit-position.pipe.d.ts +7 -0
  29. 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 resetAnnotations;
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
  }
@@ -7,3 +7,4 @@ export * from './chart-event-properties.enum';
7
7
  export * from './chart-images.enum';
8
8
  export * from './chart-font-properties.enum';
9
9
  export * from './chart-annotation-type.enum';
10
+ export * from './chart-annotation.enum';
@@ -21,4 +21,5 @@ export interface IChartConfiguration {
21
21
  hasVerticalDashedAnnotation?: boolean;
22
22
  isDashboardChart?: boolean;
23
23
  centerLabels?: IChartCenterLabel[];
24
+ selectedIndex?: number | null;
24
25
  }
@@ -0,0 +1,6 @@
1
+ import { IChartLegendProperty } from "./chart-legend-property.model";
2
+ export interface IChartLegendConfig {
3
+ title: string;
4
+ data: IChartLegendProperty[];
5
+ hasHighlightedBackground: boolean;
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface IChartLegendProperty {
2
+ name: string;
3
+ value: number;
4
+ color: string;
5
+ unit?: string;
6
+ isLineIndicator?: boolean;
7
+ }
@@ -5,3 +5,5 @@ export * from './chart-config.model';
5
5
  export * from './chart-annotation.model';
6
6
  export * from './chart-dataset-hover.model';
7
7
  export * from './chart-center-label.model';
8
+ export * from './chart-legend-property.model';
9
+ export * from './chart-legend-config.model';
@@ -0,0 +1,4 @@
1
+ export declare enum eInputBasicString {
2
+ SMALL = "small",
3
+ WHITE = "white"
4
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",