axidio-styleguide-library1-v2 0.2.29 → 0.2.31

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.
@@ -2,34 +2,6 @@ import { OnInit, ElementRef, EventEmitter } 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
- interface ChartData {
6
- data: any[];
7
- metaData: ChartMetaData;
8
- lineData?: any[];
9
- targetLineData?: TargetLineData;
10
- dropdownData1?: any;
11
- dropdownData2?: any;
12
- }
13
- interface ChartMetaData {
14
- colors: {
15
- [key: string]: string;
16
- };
17
- colorAboveTarget?: {
18
- [key: string]: string;
19
- };
20
- keyList: string[];
21
- hasDrillDown?: boolean;
22
- barWithoutClick?: string[];
23
- dataType?: string;
24
- yLabel?: string;
25
- xLabel?: string;
26
- lineyLabel?: string;
27
- }
28
- interface TargetLineData {
29
- target: number;
30
- targetName?: string;
31
- color: string;
32
- }
33
5
  interface ChartConfiguration {
34
6
  margin: {
35
7
  top: number;
@@ -37,12 +9,12 @@ interface ChartConfiguration {
37
9
  bottom: number;
38
10
  left: number;
39
11
  };
40
- labelFormatter: Function;
12
+ labelFormatter: (value: any) => string;
41
13
  svgHeight: number;
42
14
  numberOfYTicks: number;
43
15
  legendJustified: boolean;
44
- yLineAxisLabelFomatter: Function;
45
- yAxisLabelFomatter: Function;
16
+ yLineAxisLabelFomatter: (value: any) => string;
17
+ yAxisLabelFomatter: (value: any) => string;
46
18
  lineGraphColor: string;
47
19
  showLineChartAxis: boolean;
48
20
  showValues: boolean;
@@ -81,16 +53,16 @@ interface ChartConfiguration {
81
53
  isDisplayBarDetailsAtBottom?: boolean;
82
54
  howmanyBarDetailsToDisplay: number;
83
55
  barVauleColor?: string;
84
- isRia?: boolean;
85
56
  yAxisCustomTextStyles?: string;
86
57
  yAxisCustomlabelStyles?: string;
87
58
  xAxisCustomlabelStyles?: string;
59
+ isRia?: boolean;
88
60
  }
89
61
  export declare class GroupChartComponent extends ComponentUniqueId implements OnInit {
90
62
  containerElt: ElementRef;
91
63
  groupcontainerElt: ElementRef;
92
- chartData: ChartData;
93
- customChartConfiguration: Partial<ChartConfiguration>;
64
+ chartData: any;
65
+ customChartConfiguration: any;
94
66
  clickEvent: EventEmitter<any>;
95
67
  headerMenuclickEvent: EventEmitter<any>;
96
68
  isHeaderVisible: boolean;
@@ -101,9 +73,8 @@ export declare class GroupChartComponent extends ComponentUniqueId implements On
101
73
  (o: object): string[];
102
74
  (o: {}): string[];
103
75
  };
104
- private readonly CONSTANTS;
105
76
  private readonly defaultConfiguration;
106
- uniqueId: string;
77
+ uniqueId: any;
107
78
  isZoomedOut: boolean;
108
79
  isDD1Open: boolean;
109
80
  isDD2Open: boolean;
@@ -111,57 +82,61 @@ export declare class GroupChartComponent extends ComponentUniqueId implements On
111
82
  ngOnInit(): void;
112
83
  get isAlertEnabled(): boolean;
113
84
  onResized(event: ResizedEvent): void;
85
+ isZoomOutSelected(isZoomOut: boolean, event: any): void;
114
86
  handleZoominZoomoutClick({ isZoomOut, event }: {
115
87
  isZoomOut: any;
116
88
  event: any;
117
89
  }): void;
118
90
  isLegendVisible(): boolean;
119
- keepOrder: (a: any) => any;
120
- private initializeConfiguration;
91
+ keepOrder: (a: any, b: any) => any;
121
92
  initializegroupChart(): void;
122
- private prepareMetaData;
93
+ private mergeConfigurations;
94
+ private prepareChartData;
123
95
  private calculateDimensions;
124
- private adjustWidthForZoom;
96
+ private calculateWidth;
125
97
  private calculateHeight;
126
- private createSvgContainers;
127
- private createLeftYAxis;
128
- private createRightYAxis;
129
98
  private createScales;
130
- private createXScales;
131
- private createYScale;
132
- private createSubgroupScale;
99
+ private calculateMaxValue;
133
100
  private createLineYScale;
101
+ private createSVGStructure;
134
102
  private renderAxes;
135
103
  private renderXAxis;
104
+ private renderMultiChartXAxis;
105
+ private renderXLabelsOnSameLine;
136
106
  private renderYAxis;
137
- private renderGridLines;
138
- private applyAxisVisibility;
107
+ private applyAxisVisibilitySettings;
108
+ private renderYAxisGrid;
109
+ private renderXAxisGrid;
110
+ private renderLineYAxis;
139
111
  private renderBars;
140
112
  private prepareBarData;
141
113
  private handleBarClick;
142
114
  private getBarX;
115
+ private calculateDrilldownBarX;
116
+ private adjustDrilldownScale;
143
117
  private getBarWidth;
144
- private adjustScaleForWidth;
145
118
  private getBarHeight;
146
119
  private getBarColor;
120
+ private renderBarTexts;
121
+ private getBarTextLabel;
122
+ private getBarTextFontSize;
123
+ private getBarTextTransform;
147
124
  private handleMouseOver;
148
- private getTooltipX;
149
- private getTooltipWidth;
150
- private getTempScale;
151
- private getTooltipHtml;
125
+ private calculateTooltipX;
126
+ private calculateTooltipWidth;
127
+ private getTooltipHTML;
152
128
  private handleMouseOut;
153
129
  private renderLabels;
154
- private renderYLabel;
155
- private renderXLabel;
156
- private renderLineYLabel;
130
+ private renderYAxisLabel;
131
+ private renderXAxisLabel;
157
132
  private isAcronym;
133
+ private renderLineYAxisLabel;
158
134
  private renderTargetLine;
159
135
  private renderLineGraph;
160
- private handleLinePointClick;
161
136
  handleClick(d: any): void;
162
137
  handleHeaderMenuClick(id: string): void;
163
- handleDD1Click(event: Event): void;
164
- handleDD2Click(event: Event): void;
138
+ handleDD1Click(event: any): void;
139
+ handleDD2Click(event: any): void;
165
140
  handleCompareByFilterSelection(event: any): void;
166
141
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupChartComponent, never>;
167
142
  static ɵcmp: i0.ɵɵComponentDeclaration<GroupChartComponent, "lib-group-chart", never, { "chartData": { "alias": "chartData"; "required": false; }; "customChartConfiguration": { "alias": "customChartConfiguration"; "required": false; }; }, { "clickEvent": "clickEvent"; "headerMenuclickEvent": "headerMenuclickEvent"; }, never, never, false, never>;
@@ -1,4 +1,4 @@
1
- import { OnInit, ElementRef, EventEmitter, OnChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges } from '@angular/core';
2
2
  import { ComponentUniqueId } from '../unique-id';
3
3
  import ChartHelper from '../chart-helper';
4
4
  import { ResizedEvent } from 'angular-resize-event';
@@ -31,7 +31,7 @@ interface TargetLineData {
31
31
  barAboveTargetColor?: string;
32
32
  barAboveTargetHoverColor?: string;
33
33
  }
34
- export declare class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId implements OnInit, OnChanges {
34
+ export declare class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId implements OnChanges {
35
35
  containerElt: ElementRef;
36
36
  verticalstackedcontainerElt: ElementRef;
37
37
  chartData: ChartData | any;
@@ -97,7 +97,6 @@ export declare class HorizontalBarsWithScrollZoomComponent extends ComponentUniq
97
97
  isTitleHidden: undefined;
98
98
  };
99
99
  constructor();
100
- ngOnInit(): void;
101
100
  ngOnChanges(): void;
102
101
  onResized(event: ResizedEvent): void;
103
102
  isZoomOutSelected(isZoomOut: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axidio-styleguide-library1-v2",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.1",
6
6
  "@angular/core": "^17.3.1",