ngx-core-components 0.3.29 → 0.3.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.
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +49 -0
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +74 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +70 -0
- package/charts/org-chart/org-chart.component.d.ts +69 -0
- package/charts/pie-chart/pie-chart.component.d.ts +3 -1
- package/charts/public-api.d.ts +24 -0
- package/charts/pyramid-chart/pyramid-chart.component.d.ts +58 -0
- package/charts/range-bar-chart/range-bar-chart.component.d.ts +61 -0
- package/charts/shared/chart-annotations.d.ts +26 -0
- package/charts/shared/chart-brush-zoom.component.d.ts +53 -0
- package/charts/shared/chart-skeleton.component.d.ts +10 -0
- package/charts/shared/chart-sync-group.directive.d.ts +14 -0
- package/charts/shared/chart-theme.service.d.ts +21 -0
- package/charts/shared/chart-tooltip.service.d.ts +28 -0
- package/charts/step-line-chart/step-line-chart.component.d.ts +71 -0
- package/charts/timeline-chart/timeline-chart.component.d.ts +63 -0
- package/fesm2022/ngx-core-components-charts.mjs +3074 -4
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +839 -529
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/date-picker/date-picker.component.d.ts +32 -33
- package/inputs/directives/mask.directive.d.ts +9 -0
- package/inputs/form-builder/form-builder.component.d.ts +22 -31
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +33 -23
- package/inputs/pipes/form-error.pipe.d.ts +9 -0
- package/inputs/public-api.d.ts +8 -1
- package/inputs/services/form-error.service.d.ts +33 -0
- package/inputs/textbox/textbox.component.d.ts +3 -1
- package/inputs/utils/mask.util.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +18 -1
|
@@ -16,6 +16,7 @@ export declare class BarChartComponent {
|
|
|
16
16
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
17
17
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
18
18
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
stackMode: import("@angular/core").InputSignal<"none" | "normal" | "percent">;
|
|
19
20
|
referenceLines: import("@angular/core").InputSignal<{
|
|
20
21
|
value: number;
|
|
21
22
|
label: string;
|
|
@@ -71,5 +72,5 @@ export declare class BarChartComponent {
|
|
|
71
72
|
exportToPdf(): void;
|
|
72
73
|
readonly fmtNum: typeof fmtNum;
|
|
73
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarChartComponent, never>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "ngx-bar-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "referenceLines": { "alias": "referenceLines"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "barClick": "barClick"; }, never, never, true, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "ngx-bar-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "stackMode": { "alias": "stackMode"; "required": false; "isSignal": true; }; "referenceLines": { "alias": "referenceLines"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "barClick": "barClick"; }, never, never, true, never>;
|
|
75
76
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { type ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface CalendarHeatmapData {
|
|
6
|
+
date: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class CalendarHeatmapComponent {
|
|
10
|
+
readonly instanceId: string;
|
|
11
|
+
private readonly exportSvc;
|
|
12
|
+
data: import("@angular/core").InputSignal<CalendarHeatmapData[]>;
|
|
13
|
+
colorRange: import("@angular/core").InputSignal<string[]>;
|
|
14
|
+
height: import("@angular/core").InputSignal<number>;
|
|
15
|
+
showMonthLabels: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
showDayLabels: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
cellSize: import("@angular/core").InputSignal<number>;
|
|
18
|
+
cellGap: import("@angular/core").InputSignal<number>;
|
|
19
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
21
|
+
cellClick: import("@angular/core").OutputEmitterRef<{
|
|
22
|
+
date: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}>;
|
|
25
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
26
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
date: string;
|
|
30
|
+
value: number;
|
|
31
|
+
} | null>;
|
|
32
|
+
PAD_LEFT: number;
|
|
33
|
+
PAD_TOP: number;
|
|
34
|
+
weeks: import("@angular/core").Signal<any[][]>;
|
|
35
|
+
monthLabels: import("@angular/core").Signal<{
|
|
36
|
+
label: string;
|
|
37
|
+
x: number;
|
|
38
|
+
}[]>;
|
|
39
|
+
svgWidth: import("@angular/core").Signal<number>;
|
|
40
|
+
private maxVal;
|
|
41
|
+
getColor(value: number): string;
|
|
42
|
+
onMouseEnter(event: MouseEvent, day: any): void;
|
|
43
|
+
onMouseLeave(): void;
|
|
44
|
+
onCellClick(day: any): void;
|
|
45
|
+
onExport(type: ExportFormat): void;
|
|
46
|
+
fmtNum: typeof fmtNum;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeatmapComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeatmapComponent, "ngx-calendar-heatmap", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "colorRange": { "alias": "colorRange"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showMonthLabels": { "alias": "showMonthLabels"; "required": false; "isSignal": true; }; "showDayLabels": { "alias": "showDayLabels"; "required": false; "isSignal": true; }; "cellSize": { "alias": "cellSize"; "required": false; "isSignal": true; }; "cellGap": { "alias": "cellGap"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "cellClick": "cellClick"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface GaugeNeedle {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
color: string;
|
|
8
|
+
type?: 'needle' | 'pointer' | 'target-line';
|
|
9
|
+
}
|
|
10
|
+
export interface GaugeThreshold {
|
|
11
|
+
value: number;
|
|
12
|
+
color: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class MultiNeedleGaugeComponent {
|
|
15
|
+
needles: import("@angular/core").InputSignal<GaugeNeedle[]>;
|
|
16
|
+
min: import("@angular/core").InputSignal<number>;
|
|
17
|
+
max: import("@angular/core").InputSignal<number>;
|
|
18
|
+
thresholds: import("@angular/core").InputSignal<GaugeThreshold[]>;
|
|
19
|
+
height: import("@angular/core").InputSignal<number>;
|
|
20
|
+
dialAngle: import("@angular/core").InputSignal<number>;
|
|
21
|
+
units: import("@angular/core").InputSignal<string>;
|
|
22
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
private exportSvc;
|
|
25
|
+
needleClick: import("@angular/core").OutputEmitterRef<GaugeNeedle>;
|
|
26
|
+
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
27
|
+
onExport(type: ExportFormat): void;
|
|
28
|
+
width: import("@angular/core").WritableSignal<number>;
|
|
29
|
+
chartId: string;
|
|
30
|
+
trackWidth: number;
|
|
31
|
+
pivotRadius: number;
|
|
32
|
+
get containerEl(): any;
|
|
33
|
+
private destroyRef;
|
|
34
|
+
constructor();
|
|
35
|
+
centerX: import("@angular/core").Signal<number>;
|
|
36
|
+
centerY: import("@angular/core").Signal<number>;
|
|
37
|
+
radius: import("@angular/core").Signal<number>;
|
|
38
|
+
startAngle: import("@angular/core").Signal<number>;
|
|
39
|
+
endAngle: import("@angular/core").Signal<number>;
|
|
40
|
+
polarToCartesian(cx: number, cy: number, r: number, angleDeg: number): {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
};
|
|
44
|
+
describeArc(x: number, y: number, r: number, startA: number, endA: number): string;
|
|
45
|
+
valToAngle: (val: number) => number;
|
|
46
|
+
bgPath: import("@angular/core").Signal<string>;
|
|
47
|
+
bands: import("@angular/core").Signal<{
|
|
48
|
+
path: string;
|
|
49
|
+
color: string;
|
|
50
|
+
}[]>;
|
|
51
|
+
ticks: import("@angular/core").Signal<{
|
|
52
|
+
x1: number;
|
|
53
|
+
y1: number;
|
|
54
|
+
x2: number;
|
|
55
|
+
y2: number;
|
|
56
|
+
tx: number;
|
|
57
|
+
ty: number;
|
|
58
|
+
label: number;
|
|
59
|
+
}[]>;
|
|
60
|
+
processedNeedles: import("@angular/core").Signal<{
|
|
61
|
+
type: "needle" | "pointer" | "target-line";
|
|
62
|
+
points: string;
|
|
63
|
+
tx1: number;
|
|
64
|
+
ty1: number;
|
|
65
|
+
tx2: number;
|
|
66
|
+
ty2: number;
|
|
67
|
+
label: string;
|
|
68
|
+
value: number;
|
|
69
|
+
color: string;
|
|
70
|
+
}[]>;
|
|
71
|
+
mainValue: import("@angular/core").Signal<number>;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiNeedleGaugeComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiNeedleGaugeComponent, "ngx-multi-needle-gauge", never, { "needles": { "alias": "needles"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "thresholds": { "alias": "thresholds"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "dialAngle": { "alias": "dialAngle"; "required": false; "isSignal": true; }; "units": { "alias": "units"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, { "needleClick": "needleClick"; }, never, never, true, never>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { type ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import { ChartDataPoint, fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DonutRing {
|
|
6
|
+
name: string;
|
|
7
|
+
data: ChartDataPoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare class NestedDonutChartComponent {
|
|
10
|
+
readonly instanceId: string;
|
|
11
|
+
private readonly exportSvc;
|
|
12
|
+
rings: import("@angular/core").InputSignal<DonutRing[]>;
|
|
13
|
+
height: import("@angular/core").InputSignal<number>;
|
|
14
|
+
ringWidth: import("@angular/core").InputSignal<number>;
|
|
15
|
+
ringGap: import("@angular/core").InputSignal<number>;
|
|
16
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
19
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
centerTitle: import("@angular/core").InputSignal<string>;
|
|
21
|
+
centerValue: import("@angular/core").InputSignal<string>;
|
|
22
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
23
|
+
sliceClick: import("@angular/core").OutputEmitterRef<{
|
|
24
|
+
ring: string;
|
|
25
|
+
label: string;
|
|
26
|
+
value: number;
|
|
27
|
+
}>;
|
|
28
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
29
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
30
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
ring: string;
|
|
34
|
+
label: string;
|
|
35
|
+
value: number;
|
|
36
|
+
color: string;
|
|
37
|
+
} | null>;
|
|
38
|
+
activeSlice: import("@angular/core").WritableSignal<{
|
|
39
|
+
ring: string;
|
|
40
|
+
label: string;
|
|
41
|
+
} | null>;
|
|
42
|
+
centerX: import("@angular/core").Signal<number>;
|
|
43
|
+
centerY: import("@angular/core").Signal<number>;
|
|
44
|
+
allCategories: import("@angular/core").Signal<string[]>;
|
|
45
|
+
ringData: import("@angular/core").Signal<{
|
|
46
|
+
name: string;
|
|
47
|
+
slices: {
|
|
48
|
+
label: string;
|
|
49
|
+
value: number;
|
|
50
|
+
startAngle: number;
|
|
51
|
+
endAngle: number;
|
|
52
|
+
innerRadius: number;
|
|
53
|
+
outerRadius: number;
|
|
54
|
+
color: string;
|
|
55
|
+
}[];
|
|
56
|
+
}[]>;
|
|
57
|
+
constructor();
|
|
58
|
+
polarToCartesian(centerX: number, centerY: number, radius: number, angleInDegrees: number): {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
62
|
+
getArcPath(startAngle: number, endAngle: number, innerRadius: number, outerRadius: number): string;
|
|
63
|
+
onMouseEnter(event: MouseEvent, ringName: string, slice: any): void;
|
|
64
|
+
onMouseLeave(): void;
|
|
65
|
+
onSliceClick(ring: string, slice: any): void;
|
|
66
|
+
onExport(type: ExportFormat): void;
|
|
67
|
+
fmtNum: typeof fmtNum;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NestedDonutChartComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NestedDonutChartComponent, "ngx-nested-donut-chart", never, { "rings": { "alias": "rings"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "ringWidth": { "alias": "ringWidth"; "required": false; "isSignal": true; }; "ringGap": { "alias": "ringGap"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "centerTitle": { "alias": "centerTitle"; "required": false; "isSignal": true; }; "centerValue": { "alias": "centerValue"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "sliceClick": "sliceClick"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface OrgNode {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
department?: string;
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
children?: OrgNode[];
|
|
12
|
+
expanded?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface RenderNode {
|
|
15
|
+
data: OrgNode;
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
depth: number;
|
|
19
|
+
hasChildren: boolean;
|
|
20
|
+
expanded: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface RenderLink {
|
|
23
|
+
source: RenderNode;
|
|
24
|
+
target: RenderNode;
|
|
25
|
+
path: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class OrgChartComponent {
|
|
28
|
+
rootNode: import("@angular/core").InputSignal<OrgNode>;
|
|
29
|
+
height: import("@angular/core").InputSignal<number>;
|
|
30
|
+
nodeWidth: import("@angular/core").InputSignal<number>;
|
|
31
|
+
nodeHeight: import("@angular/core").InputSignal<number>;
|
|
32
|
+
orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
33
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
34
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
private exportSvc;
|
|
36
|
+
nodeClick: import("@angular/core").OutputEmitterRef<OrgNode>;
|
|
37
|
+
nodeToggle: import("@angular/core").OutputEmitterRef<OrgNode>;
|
|
38
|
+
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
39
|
+
onExport(type: ExportFormat): void;
|
|
40
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
41
|
+
expandedState: import("@angular/core").WritableSignal<Set<string>>;
|
|
42
|
+
chartId: string;
|
|
43
|
+
get containerEl(): any;
|
|
44
|
+
private destroyRef;
|
|
45
|
+
constructor();
|
|
46
|
+
getColor(depth: number): string;
|
|
47
|
+
getHandleTransform(): string;
|
|
48
|
+
layout: import("@angular/core").Signal<{
|
|
49
|
+
nodes: RenderNode[];
|
|
50
|
+
links: RenderLink[];
|
|
51
|
+
bounds: {
|
|
52
|
+
minX: number;
|
|
53
|
+
maxX: number;
|
|
54
|
+
minY: number;
|
|
55
|
+
maxY: number;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
nodes: import("@angular/core").Signal<RenderNode[]>;
|
|
59
|
+
links: import("@angular/core").Signal<RenderLink[]>;
|
|
60
|
+
svgWidth: import("@angular/core").Signal<number>;
|
|
61
|
+
svgHeight: import("@angular/core").Signal<number>;
|
|
62
|
+
translateX: import("@angular/core").Signal<number>;
|
|
63
|
+
translateY: import("@angular/core").Signal<number>;
|
|
64
|
+
generatePath(source: RenderNode, target: RenderNode, isVertical: boolean): string;
|
|
65
|
+
toggleNode(node: RenderNode, event: MouseEvent): void;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrgChartComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrgChartComponent, "ngx-org-chart", never, { "rootNode": { "alias": "rootNode"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "nodeWidth": { "alias": "nodeWidth"; "required": false; "isSignal": true; }; "nodeHeight": { "alias": "nodeHeight"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeToggle": "nodeToggle"; }, never, never, true, never>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -14,6 +14,8 @@ export declare class PieChartComponent {
|
|
|
14
14
|
centerTitle: import("@angular/core").InputSignal<string>;
|
|
15
15
|
centerValueOverride: import("@angular/core").InputSignal<string | null>;
|
|
16
16
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
drillData: import("@angular/core").InputSignal<Map<string, ChartDataPoint[]>>;
|
|
18
|
+
enableDrillDown: import("@angular/core").InputSignal<boolean>;
|
|
17
19
|
colors$: import("@angular/core").InputSignal<string[]>;
|
|
18
20
|
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
19
21
|
hovered: import("@angular/core").WritableSignal<number>;
|
|
@@ -64,5 +66,5 @@ export declare class PieChartComponent {
|
|
|
64
66
|
exportToPdf(): void;
|
|
65
67
|
readonly fmtNum: typeof fmtNum;
|
|
66
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<PieChartComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "ngx-pie-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "donutHoleSize": { "alias": "donutHoleSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "centerTitle": { "alias": "centerTitle"; "required": false; "isSignal": true; }; "centerValueOverride": { "alias": "centerValue"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "ngx-pie-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "donutHoleSize": { "alias": "donutHoleSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "centerTitle": { "alias": "centerTitle"; "required": false; "isSignal": true; }; "centerValueOverride": { "alias": "centerValue"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "drillData": { "alias": "drillData"; "required": false; "isSignal": true; }; "enableDrillDown": { "alias": "enableDrillDown"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
70
|
}
|
package/charts/public-api.d.ts
CHANGED
|
@@ -133,3 +133,27 @@ export type { EmbeddingPoint } from './embedding-space-projection/embedding-spac
|
|
|
133
133
|
export { AgenticCognitiveTopologyComponent } from './agentic-cognitive-topology/agentic-cognitive-topology.component';
|
|
134
134
|
export type { TopologyNode, TopologyLink } from './agentic-cognitive-topology/agentic-cognitive-topology.component';
|
|
135
135
|
export { TransformerAttentionHeatmapComponent } from './transformer-attention-heatmap/transformer-attention-heatmap.component';
|
|
136
|
+
export { ChartThemeService } from './shared/chart-theme.service';
|
|
137
|
+
export type { ChartTheme, ChartThemeName, ColorblindMode } from './shared/chart-theme.service';
|
|
138
|
+
export type { ChartAnnotation, AnnotationType } from './shared/chart-annotations';
|
|
139
|
+
export { renderAnnotationSvg } from './shared/chart-annotations';
|
|
140
|
+
export { ChartSkeletonComponent } from './shared/chart-skeleton.component';
|
|
141
|
+
export { ChartSyncGroupDirective } from './shared/chart-sync-group.directive';
|
|
142
|
+
export { ChartBrushZoomComponent } from './shared/chart-brush-zoom.component';
|
|
143
|
+
export { ChartTooltipService } from './shared/chart-tooltip.service';
|
|
144
|
+
export type { TooltipState, TooltipRow } from './shared/chart-tooltip.service';
|
|
145
|
+
export { StepLineChartComponent } from './step-line-chart/step-line-chart.component';
|
|
146
|
+
export { CalendarHeatmapComponent } from './calendar-heatmap/calendar-heatmap.component';
|
|
147
|
+
export type { CalendarHeatmapData } from './calendar-heatmap/calendar-heatmap.component';
|
|
148
|
+
export { NestedDonutChartComponent } from './nested-donut-chart/nested-donut-chart.component';
|
|
149
|
+
export type { DonutRing } from './nested-donut-chart/nested-donut-chart.component';
|
|
150
|
+
export { PyramidChartComponent } from './pyramid-chart/pyramid-chart.component';
|
|
151
|
+
export type { PyramidItem } from './pyramid-chart/pyramid-chart.component';
|
|
152
|
+
export { RangeBarChartComponent } from './range-bar-chart/range-bar-chart.component';
|
|
153
|
+
export type { RangeBarItem } from './range-bar-chart/range-bar-chart.component';
|
|
154
|
+
export { TimelineChartComponent } from './timeline-chart/timeline-chart.component';
|
|
155
|
+
export type { TimelineEvent } from './timeline-chart/timeline-chart.component';
|
|
156
|
+
export { OrgChartComponent } from './org-chart/org-chart.component';
|
|
157
|
+
export type { OrgNode } from './org-chart/org-chart.component';
|
|
158
|
+
export { MultiNeedleGaugeComponent } from './multi-needle-gauge/multi-needle-gauge.component';
|
|
159
|
+
export type { GaugeNeedle as MultiGaugeNeedle } from './multi-needle-gauge/multi-needle-gauge.component';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { type ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface PyramidItem {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class PyramidChartComponent {
|
|
11
|
+
readonly instanceId: string;
|
|
12
|
+
private readonly exportSvc;
|
|
13
|
+
data: import("@angular/core").InputSignal<PyramidItem[]>;
|
|
14
|
+
height: import("@angular/core").InputSignal<number>;
|
|
15
|
+
mode: import("@angular/core").InputSignal<"pyramid" | "inverted">;
|
|
16
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
showValues: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
20
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
22
|
+
segmentClick: import("@angular/core").OutputEmitterRef<{
|
|
23
|
+
label: string;
|
|
24
|
+
value: number;
|
|
25
|
+
}>;
|
|
26
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
27
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
28
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
label: string;
|
|
32
|
+
value: number;
|
|
33
|
+
color: string;
|
|
34
|
+
} | null>;
|
|
35
|
+
activeSeg: import("@angular/core").WritableSignal<string | null>;
|
|
36
|
+
PAD_LEFT: number;
|
|
37
|
+
PAD_RIGHT: number;
|
|
38
|
+
PAD_TOP: number;
|
|
39
|
+
PAD_BOTTOM: number;
|
|
40
|
+
innerW: import("@angular/core").Signal<number>;
|
|
41
|
+
innerH: import("@angular/core").Signal<number>;
|
|
42
|
+
centerX: import("@angular/core").Signal<number>;
|
|
43
|
+
segments: import("@angular/core").Signal<{
|
|
44
|
+
color: string;
|
|
45
|
+
points: string;
|
|
46
|
+
midY: number;
|
|
47
|
+
label: string;
|
|
48
|
+
value: number;
|
|
49
|
+
}[]>;
|
|
50
|
+
constructor();
|
|
51
|
+
onMouseEnter(event: MouseEvent, seg: any): void;
|
|
52
|
+
onMouseLeave(): void;
|
|
53
|
+
onSegmentClick(seg: any): void;
|
|
54
|
+
onExport(type: ExportFormat): void;
|
|
55
|
+
fmtNum: typeof fmtNum;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PyramidChartComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PyramidChartComponent, "ngx-pyramid-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "segmentClick": "segmentClick"; }, never, never, true, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { type ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface RangeBarItem {
|
|
6
|
+
label: string;
|
|
7
|
+
start: number;
|
|
8
|
+
end: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
category?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class RangeBarChartComponent {
|
|
13
|
+
readonly instanceId: string;
|
|
14
|
+
private readonly exportSvc;
|
|
15
|
+
data: import("@angular/core").InputSignal<RangeBarItem[]>;
|
|
16
|
+
height: import("@angular/core").InputSignal<number>;
|
|
17
|
+
barHeight: import("@angular/core").InputSignal<number>;
|
|
18
|
+
barGap: import("@angular/core").InputSignal<number>;
|
|
19
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
23
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
labelFormatter: import("@angular/core").InputSignal<((v: number) => string) | undefined>;
|
|
25
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
26
|
+
barClick: import("@angular/core").OutputEmitterRef<{
|
|
27
|
+
label: string;
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
}>;
|
|
31
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
32
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
33
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
item: RangeBarItem;
|
|
37
|
+
} | null>;
|
|
38
|
+
PAD_LEFT: number;
|
|
39
|
+
PAD_TOP: number;
|
|
40
|
+
PAD_RIGHT: number;
|
|
41
|
+
PAD_BOTTOM: number;
|
|
42
|
+
innerW: import("@angular/core").Signal<number>;
|
|
43
|
+
categories: import("@angular/core").Signal<string[]>;
|
|
44
|
+
xRange: import("@angular/core").Signal<{
|
|
45
|
+
min: number;
|
|
46
|
+
max: number;
|
|
47
|
+
}>;
|
|
48
|
+
xTicks: import("@angular/core").Signal<number[]>;
|
|
49
|
+
layoutData: import("@angular/core").Signal<any[]>;
|
|
50
|
+
innerH: import("@angular/core").Signal<any>;
|
|
51
|
+
calculatedHeight: import("@angular/core").Signal<any>;
|
|
52
|
+
constructor();
|
|
53
|
+
xPos(v: number): number;
|
|
54
|
+
onMouseEnter(event: MouseEvent, item: RangeBarItem): void;
|
|
55
|
+
onMouseLeave(): void;
|
|
56
|
+
onBarClick(item: RangeBarItem): void;
|
|
57
|
+
onExport(type: ExportFormat): void;
|
|
58
|
+
fmtNum: typeof fmtNum;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeBarChartComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RangeBarChartComponent, "ngx-range-bar-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "barHeight": { "alias": "barHeight"; "required": false; "isSignal": true; }; "barGap": { "alias": "barGap"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "barClick": "barClick"; }, never, never, true, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type AnnotationType = 'line' | 'band' | 'text' | 'arrow' | 'circle';
|
|
2
|
+
export interface ChartAnnotation {
|
|
3
|
+
type: AnnotationType;
|
|
4
|
+
axis?: 'x' | 'y';
|
|
5
|
+
value?: number;
|
|
6
|
+
from?: number;
|
|
7
|
+
to?: number;
|
|
8
|
+
text?: string;
|
|
9
|
+
x?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
fromPoint?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
toPoint?: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
};
|
|
19
|
+
radius?: number;
|
|
20
|
+
color?: string;
|
|
21
|
+
opacity?: number;
|
|
22
|
+
strokeDasharray?: string;
|
|
23
|
+
fontSize?: number;
|
|
24
|
+
fontWeight?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function renderAnnotationSvg(annotation: ChartAnnotation, xScale: (val: number) => number, yScale: (val: number) => number, innerW: number, innerH: number): string;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChartBrushZoomComponent implements AfterViewInit {
|
|
4
|
+
data: import("@angular/core").InputSignal<any[] | number[]>;
|
|
5
|
+
categories: import("@angular/core").InputSignal<string[]>;
|
|
6
|
+
height: import("@angular/core").InputSignal<number>;
|
|
7
|
+
startIndex: import("@angular/core").InputSignal<number>;
|
|
8
|
+
endIndex: import("@angular/core").InputSignal<number>;
|
|
9
|
+
color: import("@angular/core").InputSignal<string>;
|
|
10
|
+
rangeChange: import("@angular/core").OutputEmitterRef<{
|
|
11
|
+
startIndex: number;
|
|
12
|
+
endIndex: number;
|
|
13
|
+
startCategory: string;
|
|
14
|
+
endCategory: string;
|
|
15
|
+
}>;
|
|
16
|
+
containerRef: ElementRef<HTMLDivElement>;
|
|
17
|
+
width: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
handleHitWidth: number;
|
|
19
|
+
sIdx: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
eIdx: import("@angular/core").WritableSignal<number>;
|
|
21
|
+
private destroyRef;
|
|
22
|
+
private resizeObserver;
|
|
23
|
+
private isDragging;
|
|
24
|
+
private dragType;
|
|
25
|
+
private startX;
|
|
26
|
+
private startSIdx;
|
|
27
|
+
private startEIdx;
|
|
28
|
+
private initialized;
|
|
29
|
+
readonly Math: Math;
|
|
30
|
+
constructor();
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
effectiveWidth: import("@angular/core").Signal<number>;
|
|
33
|
+
dataLen: import("@angular/core").Signal<number>;
|
|
34
|
+
normalizedData: import("@angular/core").Signal<any>;
|
|
35
|
+
sparklinePath: import("@angular/core").Signal<string>;
|
|
36
|
+
windowLeft: import("@angular/core").Signal<number>;
|
|
37
|
+
windowRight: import("@angular/core").Signal<number>;
|
|
38
|
+
windowWidth: import("@angular/core").Signal<number>;
|
|
39
|
+
reset(): void;
|
|
40
|
+
onTrackClick(e: MouseEvent): void;
|
|
41
|
+
onWindowMouseDown(e: MouseEvent): void;
|
|
42
|
+
onWindowTouchStart(e: TouchEvent): void;
|
|
43
|
+
onHandleMouseDown(e: MouseEvent, type: 'left' | 'right'): void;
|
|
44
|
+
onHandleTouchStart(e: TouchEvent, type: 'left' | 'right'): void;
|
|
45
|
+
private startDrag;
|
|
46
|
+
onMouseMove(e: MouseEvent): void;
|
|
47
|
+
onTouchMove(e: TouchEvent): void;
|
|
48
|
+
onDragEnd(): void;
|
|
49
|
+
private handleDrag;
|
|
50
|
+
private emitChange;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartBrushZoomComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartBrushZoomComponent, "ngx-chart-brush-zoom", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "startIndex": { "alias": "startIndex"; "required": false; "isSignal": true; }; "endIndex": { "alias": "endIndex"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "rangeChange": "rangeChange"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ChartSkeletonComponent {
|
|
3
|
+
mode: import("@angular/core").InputSignal<"loading" | "empty">;
|
|
4
|
+
chartType: import("@angular/core").InputSignal<"pie" | "line" | "bar" | "scatter" | "heatmap" | "generic">;
|
|
5
|
+
height: import("@angular/core").InputSignal<number>;
|
|
6
|
+
message: import("@angular/core").InputSignal<string>;
|
|
7
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartSkeletonComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartSkeletonComponent, "ngx-chart-skeleton", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "chartType": { "alias": "chartType"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChartSyncGroupDirective implements OnInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
groupName: string;
|
|
6
|
+
private static groups;
|
|
7
|
+
constructor(el: ElementRef);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
onMouseMove(event: MouseEvent): void;
|
|
11
|
+
onMouseLeave(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartSyncGroupDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartSyncGroupDirective, "[ngxChartSyncGroup]", never, { "groupName": { "alias": "ngxChartSyncGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ChartThemeName = 'light' | 'dark' | 'highContrast' | 'pastel' | 'corporate' | 'monoChrome';
|
|
3
|
+
export type ColorblindMode = 'none' | 'deuteranopia' | 'protanopia' | 'tritanopia';
|
|
4
|
+
export interface ChartTheme {
|
|
5
|
+
name: ChartThemeName;
|
|
6
|
+
colors: string[];
|
|
7
|
+
bg: string;
|
|
8
|
+
grid: string;
|
|
9
|
+
axis: string;
|
|
10
|
+
axisText: string;
|
|
11
|
+
tooltipBg: string;
|
|
12
|
+
tooltipColor: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class ChartThemeService {
|
|
15
|
+
private themes;
|
|
16
|
+
getTheme(name: ChartThemeName): ChartTheme;
|
|
17
|
+
applyTheme(element: HTMLElement, themeName: ChartThemeName): void;
|
|
18
|
+
getColorblindPalette(mode: ColorblindMode): string[];
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartThemeService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartThemeService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface TooltipRow {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number | string;
|
|
5
|
+
color: string;
|
|
6
|
+
formattedValue?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TooltipState {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
title: string;
|
|
13
|
+
rows: TooltipRow[];
|
|
14
|
+
pinned?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class ChartTooltipService {
|
|
17
|
+
readonly state: import("@angular/core").WritableSignal<TooltipState | null>;
|
|
18
|
+
show(x: number, y: number, title: string, rows: TooltipRow[]): void;
|
|
19
|
+
hide(): void;
|
|
20
|
+
togglePin(): void;
|
|
21
|
+
/** Compute flip position if tooltip hits viewport right/bottom bounds */
|
|
22
|
+
getAdjustedPosition(x: number, y: number, containerW: number, containerH: number, tooltipW?: number, tooltipH?: number): {
|
|
23
|
+
left: number;
|
|
24
|
+
top: number;
|
|
25
|
+
};
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartTooltipService>;
|
|
28
|
+
}
|