axidio-styleguide-library1-v2 0.2.22 → 0.2.24
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/group-chart/group-chart.component.mjs +2 -189
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +519 -1081
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +15 -220
- package/esm2022/lib/plain-trend/plain-trend.component.mjs +2 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs +540 -1494
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.d.ts +74 -12
- package/package.json +1 -1
package/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.d.ts
CHANGED
|
@@ -1,35 +1,97 @@
|
|
|
1
|
-
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter, OnChanges, 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
|
-
|
|
5
|
+
interface ChartData {
|
|
6
|
+
data: any[];
|
|
7
|
+
metaData: ChartMetaData;
|
|
8
|
+
lineData?: any[];
|
|
9
|
+
targetLineData?: TargetLineData;
|
|
10
|
+
}
|
|
11
|
+
interface ChartMetaData {
|
|
12
|
+
colors: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
keyList: string[];
|
|
16
|
+
unit?: string;
|
|
17
|
+
isCC?: boolean;
|
|
18
|
+
barWithoutClick?: string[];
|
|
19
|
+
hasDrillDown?: boolean;
|
|
20
|
+
hoverColor?: string;
|
|
21
|
+
dataType?: string;
|
|
22
|
+
yLabel?: string;
|
|
23
|
+
lineyLabel?: string;
|
|
24
|
+
xLabel?: string;
|
|
25
|
+
}
|
|
26
|
+
interface TargetLineData {
|
|
27
|
+
target: number | string;
|
|
28
|
+
targetName?: string;
|
|
29
|
+
color: string;
|
|
30
|
+
barAboveTargetColor?: string;
|
|
31
|
+
barAboveTargetHoverColor?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId implements OnInit, OnChanges {
|
|
6
34
|
containerElt: ElementRef;
|
|
7
35
|
verticalstackedcontainerElt: ElementRef;
|
|
8
|
-
chartData:
|
|
9
|
-
customChartConfiguration
|
|
36
|
+
chartData: ChartData;
|
|
37
|
+
customChartConfiguration?: any;
|
|
10
38
|
clickEvent: EventEmitter<any>;
|
|
11
39
|
headerMenuclickEvent: EventEmitter<any>;
|
|
12
40
|
chartConfiguration: any;
|
|
13
41
|
isHeaderVisible: boolean;
|
|
14
42
|
isTopCaptionVisible: boolean;
|
|
15
|
-
uniqueId:
|
|
43
|
+
uniqueId: string;
|
|
16
44
|
isTransparentBackground: boolean;
|
|
17
|
-
defaultConfiguration: any;
|
|
18
45
|
isCC: boolean;
|
|
19
46
|
isZoomedOut: boolean;
|
|
47
|
+
private readonly TICK_LENGTHS;
|
|
48
|
+
private readonly SPACING;
|
|
49
|
+
private readonly defaultConfiguration;
|
|
20
50
|
constructor();
|
|
21
|
-
isZoomOutSelected(isZoomOut: any): void;
|
|
22
|
-
ngOnChanges(): void;
|
|
23
|
-
onResized(event: ResizedEvent): void;
|
|
24
51
|
ngOnInit(): void;
|
|
52
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
53
|
+
onResized(event: ResizedEvent): void;
|
|
54
|
+
isZoomOutSelected(isZoomOut: boolean): void;
|
|
55
|
+
private redrawChart;
|
|
56
|
+
private getDeviceBreakpoints;
|
|
57
|
+
private applyResponsiveConfig;
|
|
58
|
+
private mergeConfigurations;
|
|
59
|
+
private prepareMetaData;
|
|
60
|
+
private parseTargetValue;
|
|
61
|
+
private calculateDimensions;
|
|
62
|
+
private calculateBarDimensions;
|
|
63
|
+
private createScales;
|
|
64
|
+
private calculateYScaleDomain;
|
|
65
|
+
private shouldShowTargetLineColor;
|
|
66
|
+
private getBarFillColor;
|
|
67
|
+
private isAcronym;
|
|
68
|
+
private formatAxisLabel;
|
|
25
69
|
initializeStackedChart(): void;
|
|
26
|
-
|
|
27
|
-
|
|
70
|
+
private createOuterContainer;
|
|
71
|
+
private createAxisContainers;
|
|
72
|
+
private createInnerContainer;
|
|
73
|
+
private renderGrids;
|
|
74
|
+
private renderBars;
|
|
75
|
+
private addBarLabels;
|
|
76
|
+
private renderAxes;
|
|
77
|
+
private renderStandardAxes;
|
|
78
|
+
private renderMobileXAxis;
|
|
79
|
+
private renderDrilldownAxes;
|
|
80
|
+
private renderMultiChartAxes;
|
|
81
|
+
private styleAxisDomains;
|
|
82
|
+
private renderLabels;
|
|
83
|
+
private renderYAxisLabel;
|
|
84
|
+
private renderXAxisLabel;
|
|
85
|
+
private renderTargetLine;
|
|
86
|
+
private renderLineChart;
|
|
87
|
+
handleClick(data: any): void;
|
|
88
|
+
handleHeaderMenuClick(id: string): void;
|
|
28
89
|
handleCompareByFilterSelection(event: any): void;
|
|
29
90
|
handleZoominZoomoutClick({ isZoomOut, event }: {
|
|
30
|
-
isZoomOut:
|
|
91
|
+
isZoomOut: boolean;
|
|
31
92
|
event: any;
|
|
32
93
|
}): void;
|
|
33
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<HorizontalBarsWithScrollZoomComponent, never>;
|
|
34
95
|
static ɵcmp: i0.ɵɵComponentDeclaration<HorizontalBarsWithScrollZoomComponent, "lib-horizontal-bars-with-scroll-zoom", never, { "chartData": { "alias": "chartData"; "required": false; }; "customChartConfiguration": { "alias": "customChartConfiguration"; "required": false; }; }, { "clickEvent": "clickEvent"; "headerMenuclickEvent": "headerMenuclickEvent"; }, never, never, false, never>;
|
|
35
96
|
}
|
|
97
|
+
export {};
|