ngx-core-components 0.3.32 → 0.3.34
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/README.md +93 -2
- package/charts/adjacency-matrix/adjacency-matrix.component.d.ts +4 -1
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +5 -0
- package/charts/arc-diagram/arc-diagram.component.d.ts +7 -0
- package/charts/area-chart/area-chart.component.d.ts +5 -0
- package/charts/area-range-chart/area-range-chart.component.d.ts +4 -0
- package/charts/area-spline-range-chart/area-spline-range-chart.component.d.ts +4 -0
- package/charts/bar-chart/bar-chart.component.d.ts +3 -1
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +3 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +4 -0
- package/charts/chord-diagram/chord-diagram.component.d.ts +7 -1
- package/charts/column-pyramid-chart/column-pyramid-chart.component.d.ts +4 -1
- package/charts/combo-chart/combo-chart.component.d.ts +4 -0
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +7 -1
- package/charts/gauge-chart/gauge-chart.component.d.ts +4 -0
- package/charts/geo-heatmap/geo-heatmap.component.d.ts +4 -1
- package/charts/heikin-ashi-chart/heikin-ashi-chart.component.d.ts +4 -0
- package/charts/histogram/histogram.component.d.ts +3 -0
- package/charts/hlc-chart/hlc-chart.component.d.ts +5 -0
- package/charts/hollow-candlestick-chart/hollow-candlestick-chart.component.d.ts +4 -0
- package/charts/kagi-chart/kagi-chart.component.d.ts +4 -1
- package/charts/line-chart/line-chart.component.d.ts +2 -1
- package/charts/map-bubble/map-bubble.component.d.ts +4 -1
- package/charts/map-choropleth/map-choropleth.component.d.ts +83 -2
- package/charts/map-line-point/map-line-point.component.d.ts +8 -2
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +6 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +7 -0
- package/charts/network-graph/network-graph.component.d.ts +7 -0
- package/charts/ohlc-chart/ohlc-chart.component.d.ts +4 -0
- package/charts/org-chart/org-chart.component.d.ts +5 -0
- package/charts/packed-bubble-chart/packed-bubble-chart.component.d.ts +3 -0
- package/charts/parallel-coordinates/parallel-coordinates.component.d.ts +3 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +4 -1
- package/charts/pictorial-chart/pictorial-chart.component.d.ts +3 -0
- package/charts/point-figure-chart/point-figure-chart.component.d.ts +4 -1
- package/charts/polar-area-chart/polar-area-chart.component.d.ts +11 -0
- package/charts/public-api.d.ts +1 -1
- package/charts/radar-chart/radar-chart.component.d.ts +5 -3
- package/charts/renko-chart/renko-chart.component.d.ts +4 -1
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +11 -1
- package/charts/sankey-chart/sankey-chart.component.d.ts +7 -1
- package/charts/shared/map-data.d.ts +15 -17
- package/charts/slope-chart/slope-chart.component.d.ts +5 -1
- package/charts/step-line-chart/step-line-chart.component.d.ts +5 -0
- package/charts/timeline-chart/timeline-chart.component.d.ts +2 -0
- package/charts/token-streaming-chart/token-streaming-chart.component.d.ts +5 -1
- package/charts/variable-pie-chart/variable-pie-chart.component.d.ts +4 -0
- package/charts/variwide-chart/variwide-chart.component.d.ts +8 -1
- package/charts/wind-rose/wind-rose.component.d.ts +3 -0
- package/charts/word-cloud/word-cloud.component.d.ts +3 -0
- package/fesm2022/ngx-core-components-charts.mjs +9949 -2069
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +80 -32
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +34 -0
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +20 -15
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +1 -0
- package/i18n/ngx-core-i18n.d.ts +34 -0
- package/layout/tab-strip/tab-strip.component.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
3
|
import { fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import type { MapRegion } from '../shared/map-data';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export interface ChoroplethDataPoint {
|
|
6
7
|
regionId: string;
|
|
7
8
|
value: number;
|
|
8
9
|
label?: string;
|
|
9
10
|
}
|
|
11
|
+
export interface ChoroplethBoundary extends MapRegion {
|
|
12
|
+
/** Administrative level of this polygon, e.g. country, state, district, or village. */
|
|
13
|
+
level: string;
|
|
14
|
+
/** ID of the containing polygon. Omit for top-level regions. */
|
|
15
|
+
parentId?: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
district?: string;
|
|
18
|
+
village?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ChoroplethLocation {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
lat: number;
|
|
24
|
+
lng: number;
|
|
25
|
+
value?: number;
|
|
26
|
+
color?: string;
|
|
27
|
+
boundaryId?: string;
|
|
28
|
+
state?: string;
|
|
29
|
+
district?: string;
|
|
30
|
+
village?: string;
|
|
31
|
+
}
|
|
10
32
|
export declare class MapChoroplethComponent {
|
|
11
33
|
private readonly exportSvc;
|
|
34
|
+
private readonly i18n;
|
|
12
35
|
title: import("@angular/core").InputSignal<string>;
|
|
13
36
|
data: import("@angular/core").InputSignal<ChoroplethDataPoint[]>;
|
|
37
|
+
boundaries: import("@angular/core").InputSignal<ChoroplethBoundary[]>;
|
|
38
|
+
locations: import("@angular/core").InputSignal<ChoroplethLocation[]>;
|
|
14
39
|
height: import("@angular/core").InputSignal<number>;
|
|
15
40
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
16
41
|
noDataColor: import("@angular/core").InputSignal<string>;
|
|
@@ -19,11 +44,27 @@ export declare class MapChoroplethComponent {
|
|
|
19
44
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
20
45
|
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
21
46
|
hoveredRegionId: import("@angular/core").WritableSignal<string | null>;
|
|
47
|
+
hoveredLocationId: import("@angular/core").WritableSignal<string | null>;
|
|
48
|
+
drillPath: import("@angular/core").WritableSignal<ChoroplethBoundary[]>;
|
|
49
|
+
readonly minZoom = 1;
|
|
50
|
+
readonly maxZoom = 8;
|
|
51
|
+
zoom: import("@angular/core").WritableSignal<number>;
|
|
52
|
+
pan: import("@angular/core").WritableSignal<{
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
}>;
|
|
56
|
+
isPanning: import("@angular/core").WritableSignal<boolean>;
|
|
22
57
|
tooltip: import("@angular/core").WritableSignal<any>;
|
|
23
58
|
tooltipX: import("@angular/core").WritableSignal<number>;
|
|
24
59
|
tooltipY: import("@angular/core").WritableSignal<number>;
|
|
60
|
+
zoomPercent: import("@angular/core").Signal<number>;
|
|
61
|
+
isDefaultView: import("@angular/core").Signal<boolean>;
|
|
62
|
+
mapTransform: import("@angular/core").Signal<string>;
|
|
25
63
|
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
26
64
|
private container;
|
|
65
|
+
activeBoundaryLevel: import("@angular/core").Signal<string>;
|
|
66
|
+
visibleBoundaries: import("@angular/core").Signal<ChoroplethBoundary[]>;
|
|
67
|
+
private projector;
|
|
27
68
|
constructor();
|
|
28
69
|
minVal: import("@angular/core").Signal<number>;
|
|
29
70
|
maxVal: import("@angular/core").Signal<number>;
|
|
@@ -31,13 +72,53 @@ export declare class MapChoroplethComponent {
|
|
|
31
72
|
computedRegions: import("@angular/core").Signal<{
|
|
32
73
|
id: string;
|
|
33
74
|
name: string;
|
|
75
|
+
level: string | undefined;
|
|
76
|
+
state: string | undefined;
|
|
77
|
+
district: string | undefined;
|
|
78
|
+
village: string | undefined;
|
|
34
79
|
path: string;
|
|
35
80
|
value: number;
|
|
36
81
|
hasData: boolean;
|
|
37
82
|
label: string;
|
|
38
83
|
fillColor: string;
|
|
39
84
|
}[]>;
|
|
40
|
-
|
|
85
|
+
computedLocations: import("@angular/core").Signal<{
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
raw: ChoroplethLocation;
|
|
89
|
+
}[]>;
|
|
90
|
+
accessibleRegionLabel(region: {
|
|
91
|
+
name: string;
|
|
92
|
+
value: number;
|
|
93
|
+
hasData: boolean;
|
|
94
|
+
label: string;
|
|
95
|
+
level?: string;
|
|
96
|
+
state?: string;
|
|
97
|
+
district?: string;
|
|
98
|
+
village?: string;
|
|
99
|
+
}): string;
|
|
100
|
+
onRegionHover(region: any): void;
|
|
101
|
+
onRegionFocus(region: any, event: FocusEvent): void;
|
|
102
|
+
drillIntoRegion(region: {
|
|
103
|
+
id: string;
|
|
104
|
+
}): void;
|
|
105
|
+
drillTo(index: number): void;
|
|
106
|
+
zoomIn(): void;
|
|
107
|
+
zoomOut(): void;
|
|
108
|
+
resetView(): void;
|
|
109
|
+
onMapWheel(event: WheelEvent): void;
|
|
110
|
+
onMapPointerDown(event: PointerEvent): void;
|
|
111
|
+
onMapPointerMove(event: PointerEvent): void;
|
|
112
|
+
onMapPointerUp(event: PointerEvent): void;
|
|
113
|
+
onRegionClick(region: {
|
|
114
|
+
id: string;
|
|
115
|
+
}): void;
|
|
116
|
+
private panStart;
|
|
117
|
+
private suppressRegionClick;
|
|
118
|
+
private zoomAt;
|
|
119
|
+
accessibleLocationLabel(location: ChoroplethLocation): string;
|
|
120
|
+
onLocationHover(location: ChoroplethLocation): void;
|
|
121
|
+
onLocationFocus(location: ChoroplethLocation, event: FocusEvent): void;
|
|
41
122
|
onRegionMouseMove(event: MouseEvent): void;
|
|
42
123
|
onMouseLeave(): void;
|
|
43
124
|
onExport(type: ExportFormat): void;
|
|
@@ -49,5 +130,5 @@ export declare class MapChoroplethComponent {
|
|
|
49
130
|
private parseHex;
|
|
50
131
|
readonly fmtNum: typeof fmtNum;
|
|
51
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapChoroplethComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapChoroplethComponent, "ngx-map-choropleth", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "noDataColor": { "alias": "noDataColor"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapChoroplethComponent, "ngx-map-choropleth", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "boundaries": { "alias": "boundaries"; "required": false; "isSignal": true; }; "locations": { "alias": "locations"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "noDataColor": { "alias": "noDataColor"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
53
134
|
}
|
|
@@ -18,6 +18,7 @@ export interface MapLine {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class MapLinePointComponent {
|
|
20
20
|
private readonly exportSvc;
|
|
21
|
+
private readonly i18n;
|
|
21
22
|
title: import("@angular/core").InputSignal<string>;
|
|
22
23
|
points: import("@angular/core").InputSignal<MapPoint[]>;
|
|
23
24
|
lines: import("@angular/core").InputSignal<MapLine[]>;
|
|
@@ -51,9 +52,14 @@ export declare class MapLinePointComponent {
|
|
|
51
52
|
strokeWidth: number;
|
|
52
53
|
raw: MapLine;
|
|
53
54
|
}[]>;
|
|
54
|
-
onPointHover(pt: MapPoint, idx: number
|
|
55
|
+
onPointHover(pt: MapPoint, idx: number): void;
|
|
56
|
+
accessiblePointLabel(point: MapPoint): string;
|
|
57
|
+
onPointFocus(point: MapPoint, index: number, event: FocusEvent): void;
|
|
55
58
|
onPointMouseMove(event: MouseEvent): void;
|
|
56
|
-
onLineHover(line: MapLine, idx: number
|
|
59
|
+
onLineHover(line: MapLine, idx: number): void;
|
|
60
|
+
accessibleLineLabel(line: MapLine): string;
|
|
61
|
+
onLineFocus(line: MapLine, index: number, event: FocusEvent): void;
|
|
62
|
+
private positionTooltip;
|
|
57
63
|
onLineMouseMove(event: MouseEvent): void;
|
|
58
64
|
onMouseLeave(): void;
|
|
59
65
|
onExport(type: ExportFormat): void;
|
|
@@ -12,6 +12,7 @@ export interface GaugeThreshold {
|
|
|
12
12
|
color: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class MultiNeedleGaugeComponent {
|
|
15
|
+
private readonly i18n;
|
|
15
16
|
needles: import("@angular/core").InputSignal<GaugeNeedle[]>;
|
|
16
17
|
min: import("@angular/core").InputSignal<number>;
|
|
17
18
|
max: import("@angular/core").InputSignal<number>;
|
|
@@ -23,8 +24,13 @@ export declare class MultiNeedleGaugeComponent {
|
|
|
23
24
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
24
25
|
private exportSvc;
|
|
25
26
|
needleClick: import("@angular/core").OutputEmitterRef<GaugeNeedle>;
|
|
27
|
+
focusedNeedle: import("@angular/core").WritableSignal<GaugeNeedle | null>;
|
|
28
|
+
tooltipX: import("@angular/core").WritableSignal<number>;
|
|
29
|
+
tooltipY: import("@angular/core").WritableSignal<number>;
|
|
26
30
|
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
27
31
|
onExport(type: ExportFormat): void;
|
|
32
|
+
accessibleNeedleLabel(needle: GaugeNeedle): string;
|
|
33
|
+
onNeedleFocus(event: FocusEvent, needle: GaugeNeedle): void;
|
|
28
34
|
width: import("@angular/core").WritableSignal<number>;
|
|
29
35
|
chartId: string;
|
|
30
36
|
trackWidth: number;
|
|
@@ -9,6 +9,7 @@ export interface DonutRing {
|
|
|
9
9
|
export declare class NestedDonutChartComponent {
|
|
10
10
|
readonly instanceId: string;
|
|
11
11
|
private readonly exportSvc;
|
|
12
|
+
private readonly i18n;
|
|
12
13
|
rings: import("@angular/core").InputSignal<DonutRing[]>;
|
|
13
14
|
height: import("@angular/core").InputSignal<number>;
|
|
14
15
|
ringWidth: import("@angular/core").InputSignal<number>;
|
|
@@ -61,6 +62,12 @@ export declare class NestedDonutChartComponent {
|
|
|
61
62
|
};
|
|
62
63
|
getArcPath(startAngle: number, endAngle: number, innerRadius: number, outerRadius: number): string;
|
|
63
64
|
onMouseEnter(event: MouseEvent, ringName: string, slice: any): void;
|
|
65
|
+
accessibleSliceLabel(ring: string, label: string, value: number): string;
|
|
66
|
+
onSliceFocus(event: FocusEvent, ring: string, slice: {
|
|
67
|
+
label: string;
|
|
68
|
+
value: number;
|
|
69
|
+
color: string;
|
|
70
|
+
}): void;
|
|
64
71
|
onMouseLeave(): void;
|
|
65
72
|
onSliceClick(ring: string, slice: any): void;
|
|
66
73
|
onExport(type: ExportFormat): void;
|
|
@@ -35,6 +35,7 @@ interface SimulatedLink {
|
|
|
35
35
|
}
|
|
36
36
|
export declare class NetworkGraphComponent {
|
|
37
37
|
private readonly exportSvc;
|
|
38
|
+
private readonly i18n;
|
|
38
39
|
nodes: import("@angular/core").InputSignal<NetworkNode[]>;
|
|
39
40
|
links: import("@angular/core").InputSignal<NetworkLink[]>;
|
|
40
41
|
height: import("@angular/core").InputSignal<number>;
|
|
@@ -56,9 +57,15 @@ export declare class NetworkGraphComponent {
|
|
|
56
57
|
computedLinks: import("@angular/core").Signal<SimulatedLink[]>;
|
|
57
58
|
getGroupColor(group: string, idx: number): string;
|
|
58
59
|
linkHovered(link: SimulatedLink): boolean;
|
|
60
|
+
accessibleNodeLabel(node: SimulatedNode): string;
|
|
61
|
+
accessibleLinkLabel(link: SimulatedLink): string;
|
|
59
62
|
onNodeMouseEnter(event: MouseEvent, node: SimulatedNode): void;
|
|
63
|
+
onNodeFocus(event: FocusEvent, node: SimulatedNode): void;
|
|
64
|
+
private showNodeTooltip;
|
|
60
65
|
onNodeMouseLeave(): void;
|
|
61
66
|
onLinkHover(event: MouseEvent, link: SimulatedLink): void;
|
|
67
|
+
onLinkFocus(event: FocusEvent, link: SimulatedLink): void;
|
|
68
|
+
private showLinkTooltip;
|
|
62
69
|
onMouseLeave(): void;
|
|
63
70
|
onExport(type: ExportFormat): void;
|
|
64
71
|
exportToJson(): void;
|
|
@@ -10,6 +10,7 @@ export interface OHLCItem {
|
|
|
10
10
|
close: number;
|
|
11
11
|
}
|
|
12
12
|
export declare class OHLCChartComponent {
|
|
13
|
+
private readonly i18n;
|
|
13
14
|
private readonly exportSvc;
|
|
14
15
|
readonly PAD_LEFT = 52;
|
|
15
16
|
readonly PAD_TOP = 20;
|
|
@@ -62,6 +63,9 @@ export declare class OHLCChartComponent {
|
|
|
62
63
|
}[]>;
|
|
63
64
|
shouldShowXLabel(index: number): boolean;
|
|
64
65
|
onTickHover(event: MouseEvent, item: OHLCItem, index: number): void;
|
|
66
|
+
accessibleTickLabel(item: OHLCItem): string;
|
|
67
|
+
onTickFocus(event: FocusEvent, item: OHLCItem, index: number): void;
|
|
68
|
+
private showTickTooltip;
|
|
65
69
|
formatDate(d: string | Date): string;
|
|
66
70
|
onExport(type: ExportFormat): void;
|
|
67
71
|
exportToJson(): void;
|
|
@@ -33,6 +33,7 @@ export declare class OrgChartComponent {
|
|
|
33
33
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
34
34
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
35
35
|
private exportSvc;
|
|
36
|
+
private readonly i18n;
|
|
36
37
|
nodeClick: import("@angular/core").OutputEmitterRef<OrgNode>;
|
|
37
38
|
nodeToggle: import("@angular/core").OutputEmitterRef<OrgNode>;
|
|
38
39
|
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
@@ -44,6 +45,9 @@ export declare class OrgChartComponent {
|
|
|
44
45
|
private destroyRef;
|
|
45
46
|
constructor();
|
|
46
47
|
getColor(depth: number): string;
|
|
48
|
+
accessibleNodeLabel(node: RenderNode): string;
|
|
49
|
+
toggleNodeLabel(node: RenderNode): string;
|
|
50
|
+
toggleNodeFromKeyboard(node: RenderNode): void;
|
|
47
51
|
getHandleTransform(): string;
|
|
48
52
|
layout: import("@angular/core").Signal<{
|
|
49
53
|
nodes: RenderNode[];
|
|
@@ -63,6 +67,7 @@ export declare class OrgChartComponent {
|
|
|
63
67
|
translateY: import("@angular/core").Signal<number>;
|
|
64
68
|
generatePath(source: RenderNode, target: RenderNode, isVertical: boolean): string;
|
|
65
69
|
toggleNode(node: RenderNode, event: MouseEvent): void;
|
|
70
|
+
private updateExpandedState;
|
|
66
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrgChartComponent, never>;
|
|
67
72
|
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
73
|
}
|
|
@@ -23,6 +23,7 @@ interface SimulatedNode {
|
|
|
23
23
|
}
|
|
24
24
|
export declare class PackedBubbleChartComponent {
|
|
25
25
|
private readonly exportSvc;
|
|
26
|
+
private readonly i18n;
|
|
26
27
|
data: import("@angular/core").InputSignal<BubbleNode[]>;
|
|
27
28
|
height: import("@angular/core").InputSignal<number>;
|
|
28
29
|
width: import("@angular/core").InputSignal<number>;
|
|
@@ -55,6 +56,8 @@ export declare class PackedBubbleChartComponent {
|
|
|
55
56
|
getGroupColor(group: string, idx: number): string;
|
|
56
57
|
truncate(str: string, radius: number): string;
|
|
57
58
|
onBubbleHover(event: MouseEvent, node: SimulatedNode): void;
|
|
59
|
+
accessibleBubbleLabel(node: SimulatedNode): string;
|
|
60
|
+
onBubbleFocus(event: FocusEvent, node: SimulatedNode): void;
|
|
58
61
|
onExport(type: ExportFormat): void;
|
|
59
62
|
exportToJson(): void;
|
|
60
63
|
exportToCsv(): void;
|
|
@@ -20,6 +20,7 @@ export interface ParallelLine {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class ParallelCoordinatesComponent {
|
|
22
22
|
private readonly exportSvc;
|
|
23
|
+
private readonly i18n;
|
|
23
24
|
data: import("@angular/core").InputSignal<Record<string, any>[]>;
|
|
24
25
|
dimensions: import("@angular/core").InputSignal<string[]>;
|
|
25
26
|
colorKey: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -48,6 +49,8 @@ export declare class ParallelCoordinatesComponent {
|
|
|
48
49
|
constructor();
|
|
49
50
|
yPosForAxis(val: number, axis: AxisDimension): number;
|
|
50
51
|
formatAxisVal(dim: string, val: number): string;
|
|
52
|
+
accessibleLineLabel(line: ParallelLine): string;
|
|
53
|
+
onLineFocus(event: FocusEvent, line: ParallelLine): void;
|
|
51
54
|
onSvgMouseMove(event: MouseEvent): void;
|
|
52
55
|
onMouseLeave(): void;
|
|
53
56
|
onExport(type: ExportFormat): void;
|
|
@@ -7,6 +7,7 @@ export interface ParetoItem {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class ParetoChartComponent {
|
|
9
9
|
private readonly exportSvc;
|
|
10
|
+
private readonly i18n;
|
|
10
11
|
data: import("@angular/core").InputSignal<ParetoItem[]>;
|
|
11
12
|
height: import("@angular/core").InputSignal<number>;
|
|
12
13
|
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
@@ -48,7 +49,9 @@ export declare class ParetoChartComponent {
|
|
|
48
49
|
yRightPos(val: number): number;
|
|
49
50
|
barWidth: import("@angular/core").Signal<number>;
|
|
50
51
|
linePath: import("@angular/core").Signal<string>;
|
|
51
|
-
|
|
52
|
+
itemAccessibleLabel(label: string, value: string): string;
|
|
53
|
+
onItemHover(idx: number): void;
|
|
54
|
+
onItemFocus(idx: number, event: FocusEvent): void;
|
|
52
55
|
onItemMouseMove(event: MouseEvent): void;
|
|
53
56
|
onMouseLeave(): void;
|
|
54
57
|
onExport(type: ExportFormat): void;
|
|
@@ -14,6 +14,7 @@ export interface PictorialIcon {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class PictorialChartComponent {
|
|
16
16
|
private readonly exportSvc;
|
|
17
|
+
private readonly i18n;
|
|
17
18
|
value: import("@angular/core").InputSignal<number>;
|
|
18
19
|
max: import("@angular/core").InputSignal<number>;
|
|
19
20
|
icon: import("@angular/core").InputSignal<"user" | "star" | "heart" | "lightbulb" | "car">;
|
|
@@ -45,6 +46,8 @@ export declare class PictorialChartComponent {
|
|
|
45
46
|
constructor();
|
|
46
47
|
getIconTransform(ic: PictorialIcon): string;
|
|
47
48
|
onIconHover(idx: number): void;
|
|
49
|
+
accessibleIconLabel(icon: PictorialIcon): string;
|
|
50
|
+
onIconFocus(event: FocusEvent, idx: number): void;
|
|
48
51
|
onMouseMove(event: MouseEvent): void;
|
|
49
52
|
onMouseLeave(): void;
|
|
50
53
|
onExport(type: ExportFormat): void;
|
|
@@ -13,6 +13,7 @@ export interface PFCell {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class PointFigureChartComponent {
|
|
15
15
|
private readonly exportSvc;
|
|
16
|
+
private readonly i18n;
|
|
16
17
|
data: import("@angular/core").InputSignal<number[]>;
|
|
17
18
|
boxSize: import("@angular/core").InputSignal<number>;
|
|
18
19
|
reversal: import("@angular/core").InputSignal<number>;
|
|
@@ -42,7 +43,9 @@ export declare class PointFigureChartComponent {
|
|
|
42
43
|
computedCells: import("@angular/core").Signal<PFCell[]>;
|
|
43
44
|
yTicks: import("@angular/core").Signal<number[]>;
|
|
44
45
|
yPos(val: number): number;
|
|
45
|
-
|
|
46
|
+
accessibleCellLabel(cell: PFCell): string;
|
|
47
|
+
onCellHover(idx: number): void;
|
|
48
|
+
onCellFocus(event: FocusEvent, idx: number): void;
|
|
46
49
|
onMouseMove(event: MouseEvent): void;
|
|
47
50
|
onMouseLeave(): void;
|
|
48
51
|
onExport(type: ExportFormat): void;
|
|
@@ -4,6 +4,7 @@ import { ChartDataPoint } from '../shared/chart-utils';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PolarAreaChartComponent {
|
|
6
6
|
private readonly exportSvc;
|
|
7
|
+
private readonly i18n;
|
|
7
8
|
data: import("@angular/core").InputSignal<ChartDataPoint[]>;
|
|
8
9
|
height: import("@angular/core").InputSignal<number>;
|
|
9
10
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
@@ -51,6 +52,16 @@ export declare class PolarAreaChartComponent {
|
|
|
51
52
|
value: number;
|
|
52
53
|
color: string;
|
|
53
54
|
}): void;
|
|
55
|
+
sliceAccessibleLabel(slice: {
|
|
56
|
+
label: string;
|
|
57
|
+
value: number;
|
|
58
|
+
}): string;
|
|
59
|
+
onSliceFocus(event: FocusEvent, slice: {
|
|
60
|
+
label: string;
|
|
61
|
+
value: number;
|
|
62
|
+
color: string;
|
|
63
|
+
}): void;
|
|
64
|
+
onSliceBlur(): void;
|
|
54
65
|
onSliceClick(slice: {
|
|
55
66
|
label: string;
|
|
56
67
|
value: number;
|
package/charts/public-api.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export { HeikinAshiChartComponent } from './heikin-ashi-chart/heikin-ashi-chart.
|
|
|
116
116
|
export { FlagsComponent } from './flags/flags.component';
|
|
117
117
|
export type { ChartFlag } from './flags/flags.component';
|
|
118
118
|
export { MapChoroplethComponent } from './map-choropleth/map-choropleth.component';
|
|
119
|
-
export type { ChoroplethDataPoint } from './map-choropleth/map-choropleth.component';
|
|
119
|
+
export type { ChoroplethBoundary, ChoroplethDataPoint, ChoroplethLocation, } from './map-choropleth/map-choropleth.component';
|
|
120
120
|
export { MapBubbleComponent } from './map-bubble/map-bubble.component';
|
|
121
121
|
export type { MapBubblePoint } from './map-bubble/map-bubble.component';
|
|
122
122
|
export { MapLinePointComponent } from './map-line-point/map-line-point.component';
|
|
@@ -7,6 +7,7 @@ export interface RadarSeries {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class RadarChartComponent {
|
|
9
9
|
private readonly exportSvc;
|
|
10
|
+
private readonly i18n;
|
|
10
11
|
readonly instanceId: string;
|
|
11
12
|
seriesData: import("@angular/core").InputSignal<RadarSeries[]>;
|
|
12
13
|
categories: import("@angular/core").InputSignal<string[]>;
|
|
@@ -41,17 +42,18 @@ export declare class RadarChartComponent {
|
|
|
41
42
|
}[]>;
|
|
42
43
|
getRingPoints(ringFraction: number): string;
|
|
43
44
|
getSeriesPoints(series: RadarSeries): string;
|
|
44
|
-
getSeriesPointList(series: RadarSeries):
|
|
45
|
+
getSeriesPointList(series: RadarSeries): {
|
|
45
46
|
x: number;
|
|
46
47
|
y: number;
|
|
47
48
|
value: number;
|
|
48
|
-
}
|
|
49
|
+
}[];
|
|
49
50
|
getSeriesColor(index: number, opacity: number): string;
|
|
51
|
+
pointAccessibleLabel(series: RadarSeries, index: number, value: number): string;
|
|
50
52
|
onPointEnter(series: RadarSeries, index: number, pt: {
|
|
51
53
|
x: number;
|
|
52
54
|
y: number;
|
|
53
55
|
value: number;
|
|
54
|
-
}, event: MouseEvent): void;
|
|
56
|
+
}, event: MouseEvent | FocusEvent): void;
|
|
55
57
|
onPointLeave(): void;
|
|
56
58
|
onExport(type: ExportFormat): void;
|
|
57
59
|
exportToJson(): void;
|
|
@@ -14,6 +14,7 @@ export interface RenkoBrick {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class RenkoChartComponent {
|
|
16
16
|
private readonly exportSvc;
|
|
17
|
+
private readonly i18n;
|
|
17
18
|
data: import("@angular/core").InputSignal<number[]>;
|
|
18
19
|
boxSize: import("@angular/core").InputSignal<number>;
|
|
19
20
|
height: import("@angular/core").InputSignal<number>;
|
|
@@ -44,7 +45,9 @@ export declare class RenkoChartComponent {
|
|
|
44
45
|
yDomainMax: import("@angular/core").Signal<number>;
|
|
45
46
|
yDomainMin: import("@angular/core").Signal<number>;
|
|
46
47
|
yPos(val: number): number;
|
|
47
|
-
|
|
48
|
+
accessibleBrickLabel(brick: RenkoBrick): string;
|
|
49
|
+
onBrickHover(idx: number): void;
|
|
50
|
+
onBrickFocus(event: FocusEvent, idx: number): void;
|
|
48
51
|
onMouseMove(event: MouseEvent): void;
|
|
49
52
|
onMouseLeave(): void;
|
|
50
53
|
onExport(type: ExportFormat): void;
|
|
@@ -7,6 +7,8 @@ export interface RidgelineItem {
|
|
|
7
7
|
color?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class RidgelineChartComponent {
|
|
10
|
+
private readonly i18n;
|
|
11
|
+
private readonly host;
|
|
10
12
|
private readonly exportSvc;
|
|
11
13
|
readonly instanceId: string;
|
|
12
14
|
data: import("@angular/core").InputSignal<RidgelineItem[]>;
|
|
@@ -56,7 +58,15 @@ export declare class RidgelineChartComponent {
|
|
|
56
58
|
}[]>;
|
|
57
59
|
private kernelDensityEstimator;
|
|
58
60
|
private getStdDev;
|
|
59
|
-
onRowHover(idx: number
|
|
61
|
+
onRowHover(idx: number): void;
|
|
62
|
+
accessibleRowLabel(item: {
|
|
63
|
+
label: string;
|
|
64
|
+
count: number;
|
|
65
|
+
median: number;
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
}): string;
|
|
69
|
+
onRowFocus(event: FocusEvent, idx: number): void;
|
|
60
70
|
onRowMouseMove(event: MouseEvent): void;
|
|
61
71
|
onMouseLeave(): void;
|
|
62
72
|
onExport(type: ExportFormat): void;
|
|
@@ -36,6 +36,7 @@ interface ProcessedLink {
|
|
|
36
36
|
}
|
|
37
37
|
export declare class SankeyChartComponent {
|
|
38
38
|
private readonly exportSvc;
|
|
39
|
+
private readonly i18n;
|
|
39
40
|
nodes: import("@angular/core").InputSignal<SankeyNode[]>;
|
|
40
41
|
links: import("@angular/core").InputSignal<SankeyLink[]>;
|
|
41
42
|
height: import("@angular/core").InputSignal<number>;
|
|
@@ -68,8 +69,13 @@ export declare class SankeyChartComponent {
|
|
|
68
69
|
}>;
|
|
69
70
|
isLinkHighlighted(link: ProcessedLink): boolean;
|
|
70
71
|
isNodeDimmed(node: ProcessedNode): boolean;
|
|
72
|
+
accessibleNodeLabel(node: ProcessedNode): string;
|
|
73
|
+
accessibleLinkLabel(link: ProcessedLink): string;
|
|
71
74
|
onNodeHover(nodeId: string): void;
|
|
72
|
-
|
|
75
|
+
onNodeFocus(event: FocusEvent, nodeId: string): void;
|
|
76
|
+
onLinkHover(idx: number): void;
|
|
77
|
+
onLinkFocus(event: FocusEvent, idx: number): void;
|
|
78
|
+
private positionTooltip;
|
|
73
79
|
onLinkMouseMove(event: MouseEvent): void;
|
|
74
80
|
onMouseLeave(): void;
|
|
75
81
|
onExport(type: ExportFormat): void;
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
export interface MapRegion {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
|
+
/** Optional roll-up ID used by region-level data such as EU, Africa, and South America. */
|
|
5
|
+
dataRegionId?: string;
|
|
4
6
|
polygons: [number, number][][];
|
|
5
7
|
}
|
|
6
|
-
/**
|
|
7
|
-
* Standard World Map outline with coordinates (longitude, latitude)
|
|
8
|
-
*/
|
|
9
8
|
export declare const WORLD_MAP_DATA: MapRegion[];
|
|
10
|
-
|
|
11
|
-
* Projects a longitude and latitude coordinate into a 2D viewport using Equirectangular projection
|
|
12
|
-
*/
|
|
13
|
-
export declare function project(lng: number, lat: number, width: number, height: number, padding?: {
|
|
9
|
+
interface MapPadding {
|
|
14
10
|
top: number;
|
|
15
11
|
right: number;
|
|
16
12
|
bottom: number;
|
|
17
13
|
left: number;
|
|
18
|
-
}
|
|
14
|
+
}
|
|
15
|
+
export type MapProjector = (lng: number, lat: number) => {
|
|
19
16
|
x: number;
|
|
20
17
|
y: number;
|
|
21
18
|
};
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
/** Projects longitude/latitude with an Equal Earth projection and preserves its aspect ratio. */
|
|
20
|
+
export declare function project(lng: number, lat: number, width: number, height: number, padding?: MapPadding): {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
/** Fits a set of geographic polygons into a viewport while preserving their aspect ratio. */
|
|
25
|
+
export declare function fitMapProjection(polygons: [number, number][][][], width: number, height: number, padding?: MapPadding): MapProjector;
|
|
26
|
+
/** Builds an SVG path from closed GeoJSON exterior rings. */
|
|
27
|
+
export declare function getSvgPath(polygons: [number, number][][], width: number, height: number, padding?: MapPadding, projector?: MapProjector): string;
|
|
28
|
+
export {};
|
|
@@ -9,6 +9,8 @@ export interface SlopeDataPoint {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class SlopeChartComponent {
|
|
11
11
|
private readonly exportSvc;
|
|
12
|
+
private readonly i18n;
|
|
13
|
+
private readonly host;
|
|
12
14
|
data: import("@angular/core").InputSignal<SlopeDataPoint[]>;
|
|
13
15
|
startLabel: import("@angular/core").InputSignal<string>;
|
|
14
16
|
endLabel: import("@angular/core").InputSignal<string>;
|
|
@@ -48,7 +50,9 @@ export declare class SlopeChartComponent {
|
|
|
48
50
|
endValue: number;
|
|
49
51
|
color?: string;
|
|
50
52
|
}[]>;
|
|
51
|
-
onSlopeHover(idx: number
|
|
53
|
+
onSlopeHover(idx: number): void;
|
|
54
|
+
accessibleItemLabel(label: string, startValue: number, endValue: number): string;
|
|
55
|
+
onSlopeFocus(event: FocusEvent, idx: number): void;
|
|
52
56
|
onSlopeMouseMove(event: MouseEvent): void;
|
|
53
57
|
onMouseLeave(): void;
|
|
54
58
|
onExport(type: ExportFormat): void;
|
|
@@ -5,6 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class StepLineChartComponent {
|
|
6
6
|
readonly instanceId: string;
|
|
7
7
|
private readonly exportSvc;
|
|
8
|
+
private readonly i18n;
|
|
9
|
+
private readonly host;
|
|
8
10
|
readonly PAD_LEFT = 48;
|
|
9
11
|
readonly PAD_TOP = 12;
|
|
10
12
|
readonly PAD_RIGHT = 16;
|
|
@@ -63,6 +65,9 @@ export declare class StepLineChartComponent {
|
|
|
63
65
|
linePath(s: ChartSeries): string;
|
|
64
66
|
areaPath(s: ChartSeries): string;
|
|
65
67
|
onMouseMove(event: MouseEvent): void;
|
|
68
|
+
onMarkerFocus(event: FocusEvent, index: number): void;
|
|
69
|
+
accessibleMarkLabel(series: string, category: string, value: number): string;
|
|
70
|
+
private showCategoryTooltip;
|
|
66
71
|
onMouseLeave(): void;
|
|
67
72
|
onExport(type: ExportFormat): void;
|
|
68
73
|
readonly fmtNum: typeof fmtNum;
|
|
@@ -19,6 +19,7 @@ export declare class TimelineChartComponent {
|
|
|
19
19
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
20
20
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
21
21
|
private exportSvc;
|
|
22
|
+
private readonly i18n;
|
|
22
23
|
eventClick: import("@angular/core").OutputEmitterRef<TimelineEvent>;
|
|
23
24
|
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
24
25
|
onExport(type: ExportFormat): void;
|
|
@@ -54,6 +55,7 @@ export declare class TimelineChartComponent {
|
|
|
54
55
|
isDuration: boolean;
|
|
55
56
|
color: string;
|
|
56
57
|
}[]>;
|
|
58
|
+
accessibleEventLabel(event: TimelineEvent): string;
|
|
57
59
|
getDiamondPath(cx: number, cy: number, r: number): string;
|
|
58
60
|
getTooltipX(ev: any): number;
|
|
59
61
|
getTooltipY(ev: any): number;
|
|
@@ -7,6 +7,9 @@ export declare class TokenStreamingChartComponent {
|
|
|
7
7
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
8
8
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
9
9
|
threshold: import("@angular/core").InputSignal<number | null>;
|
|
10
|
+
showMovingAverage: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
movingAverageWindow: import("@angular/core").InputSignal<number>;
|
|
12
|
+
streaming: import("@angular/core").InputSignal<boolean>;
|
|
10
13
|
streamTick: import("@angular/core").OutputEmitterRef<{
|
|
11
14
|
index: number;
|
|
12
15
|
value: number;
|
|
@@ -33,6 +36,7 @@ export declare class TokenStreamingChartComponent {
|
|
|
33
36
|
private yMax;
|
|
34
37
|
scaledPoints: import("@angular/core").Signal<[number, number][]>;
|
|
35
38
|
linePath: import("@angular/core").Signal<string>;
|
|
39
|
+
movingAveragePath: import("@angular/core").Signal<string>;
|
|
36
40
|
areaPath: import("@angular/core").Signal<string>;
|
|
37
41
|
yAxisTicks: import("@angular/core").Signal<{
|
|
38
42
|
val: number;
|
|
@@ -66,5 +70,5 @@ export declare class TokenStreamingChartComponent {
|
|
|
66
70
|
exportToSvg(): void;
|
|
67
71
|
exportToPdf(): void;
|
|
68
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<TokenStreamingChartComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TokenStreamingChartComponent, "ngx-token-streaming-chart", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "windowSize": { "alias": "windowSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; }, { "streamTick": "streamTick"; "agentPromptRequest": "agentPromptRequest"; }, never, never, true, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TokenStreamingChartComponent, "ngx-token-streaming-chart", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "windowSize": { "alias": "windowSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "showMovingAverage": { "alias": "showMovingAverage"; "required": false; "isSignal": true; }; "movingAverageWindow": { "alias": "movingAverageWindow"; "required": false; "isSignal": true; }; "streaming": { "alias": "streaming"; "required": false; "isSignal": true; }; }, { "streamTick": "streamTick"; "agentPromptRequest": "agentPromptRequest"; }, never, never, true, never>;
|
|
70
74
|
}
|