axidio-styleguide-library1-v2 0.2.20 → 0.2.21

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,8 +1,8 @@
1
- import { OnInit, ElementRef, EventEmitter } from '@angular/core';
1
+ import { OnInit, OnChanges, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
2
2
  import { ComponentUniqueId } from '../unique-id';
3
3
  import { ResizedEvent } from 'angular-resize-event';
4
4
  import * as i0 from "@angular/core";
5
- export declare class GuageChartComponent extends ComponentUniqueId implements OnInit {
5
+ export declare class GuageChartComponent extends ComponentUniqueId implements OnInit, OnChanges {
6
6
  containerElt: ElementRef;
7
7
  guagecontainerElt: ElementRef;
8
8
  chartData: any;
@@ -10,19 +10,30 @@ export declare class GuageChartComponent extends ComponentUniqueId implements On
10
10
  clickEvent: EventEmitter<any>;
11
11
  headerMenuclickEvent: EventEmitter<any>;
12
12
  chartConfiguration: any;
13
- dataType: any;
13
+ dataType: string;
14
14
  datatype_status: boolean;
15
- uniqueId: any;
15
+ uniqueId: string;
16
16
  isHeaderVisible: boolean;
17
- defaultConfiguration: any;
17
+ readonly defaultConfiguration: any;
18
18
  constructor();
19
19
  get isAlertEnabled(): boolean;
20
- ngOnChanges(): void;
21
- onResized(event: ResizedEvent): void;
22
20
  ngOnInit(): void;
23
- initializeLineChart(): void;
24
- handleClick(d: any): void;
25
- handleHeaderMenuClick(id: any): void;
21
+ ngOnChanges(changes: SimpleChanges): void;
22
+ onResized(event: ResizedEvent): void;
23
+ private rebuildChart;
24
+ private buildChart;
25
+ private mergeConfigurations;
26
+ private processDataAndRender;
27
+ private setDataType;
28
+ private computeAngles;
29
+ private createSvg;
30
+ private drawArcs;
31
+ private drawPointer;
32
+ private drawLabels;
33
+ private drawTextBlocks;
34
+ private deg2rad;
35
+ handleClick(data: any): void;
36
+ handleHeaderMenuClick(id: string): void;
26
37
  static ɵfac: i0.ɵɵFactoryDeclaration<GuageChartComponent, never>;
27
38
  static ɵcmp: i0.ɵɵComponentDeclaration<GuageChartComponent, "lib-guage-chart", never, { "chartData": { "alias": "chartData"; "required": false; }; "customChartConfiguration": { "alias": "customChartConfiguration"; "required": false; }; }, { "clickEvent": "clickEvent"; "headerMenuclickEvent": "headerMenuclickEvent"; }, never, never, false, never>;
28
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axidio-styleguide-library1-v2",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.1",
6
6
  "@angular/core": "^17.3.1",