ngx-core-components 0.3.31 → 0.3.32
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 +988 -601
- package/barcodes/barcode/barcode-encoding.d.ts +1 -0
- package/barcodes/barcode/barcode.component.d.ts +4 -4
- package/barcodes/public-api.d.ts +1 -0
- package/charts/bar-chart/bar-chart.component.d.ts +5 -1
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +6 -0
- package/charts/bubble-chart/bubble-chart.component.d.ts +4 -0
- package/charts/bullet-chart/bullet-chart.component.d.ts +3 -0
- package/charts/column-range-chart/column-range-chart.component.d.ts +5 -1
- package/charts/dumbbell-chart/dumbbell-chart.component.d.ts +5 -1
- package/charts/funnel-chart/funnel-chart.component.d.ts +4 -0
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +4 -0
- package/charts/line-chart/line-chart.component.d.ts +2 -0
- package/charts/lollipop-chart/lollipop-chart.component.d.ts +5 -1
- package/charts/marimekko-chart/marimekko-chart.component.d.ts +25 -1
- package/charts/pie-chart/pie-chart.component.d.ts +9 -0
- package/charts/pyramid-chart/pyramid-chart.component.d.ts +5 -0
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +4 -0
- package/charts/range-bar-chart/range-bar-chart.component.d.ts +4 -0
- package/charts/scatter-plot/scatter-plot.component.d.ts +4 -0
- package/charts/shared/chart-accessible-mark.directive.d.ts +9 -0
- package/charts/shared/chart-export-menu.component.d.ts +7 -0
- package/charts/shared/chart-skeleton.component.d.ts +1 -1
- package/charts/sunburst-chart/sunburst-chart.component.d.ts +6 -3
- package/charts/treemap-chart/treemap-chart.component.d.ts +6 -4
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +8 -0
- package/fesm2022/ngx-core-components-barcodes.mjs +196 -42
- package/fesm2022/ngx-core-components-barcodes.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +1399 -875
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +2075 -545
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +129 -35
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +297 -39
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +71 -53
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-testing.mjs +30 -0
- package/fesm2022/ngx-core-components-testing.mjs.map +1 -0
- package/fesm2022/ngx-core-components-views.mjs +69 -29
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/components/grid-filter-builder/grid-filter-builder.component.d.ts +6 -1
- package/grid/data-grid/data-grid.component.d.ts +19 -1
- package/grid/data-grid/grid-data-source.d.ts +22 -0
- package/grid/data-grid/services/grid-state.service.d.ts +7 -0
- package/grid/public-api.d.ts +6 -3
- package/i18n/ngx-core-i18n.d.ts +94 -1
- package/i18n/public-api.d.ts +1 -1
- package/inputs/form-builder/form-builder.component.d.ts +17 -1
- package/package.json +6 -2
- package/public-api.d.ts +8 -7
- package/testing/component-test-harness.d.ts +10 -0
- package/testing/index.d.ts +5 -0
- package/testing/public-api.d.ts +1 -0
- package/views/kanban/kanban.component.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodeCode128B(value: string): boolean[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { OnChanges, ElementRef } from '@angular/core';
|
|
1
|
+
import { OnChanges, AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BarcodeComponent implements OnChanges {
|
|
3
|
+
export declare class BarcodeComponent implements OnChanges, AfterViewInit {
|
|
4
|
+
private readonly platformId;
|
|
5
|
+
readonly encodingError: import("@angular/core").WritableSignal<string>;
|
|
4
6
|
svgRef: ElementRef<SVGElement>;
|
|
5
7
|
value: import("@angular/core").InputSignal<string>;
|
|
6
8
|
label: import("@angular/core").InputSignal<string>;
|
|
@@ -12,8 +14,6 @@ export declare class BarcodeComponent implements OnChanges {
|
|
|
12
14
|
ngOnChanges(): void;
|
|
13
15
|
ngAfterViewInit(): void;
|
|
14
16
|
private draw;
|
|
15
|
-
private encode;
|
|
16
|
-
private charPattern;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeComponent, never>;
|
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeComponent, "ngx-barcode", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "barWidth": { "alias": "barWidth"; "required": false; "isSignal": true; }; "foreground": { "alias": "foreground"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
19
|
}
|
package/barcodes/public-api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
|
3
3
|
import { ChartSeries, fmtNum } from '../shared/chart-utils';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class BarChartComponent {
|
|
6
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
6
7
|
private readonly exportSvc;
|
|
7
8
|
readonly PAD_LEFT = 48;
|
|
8
9
|
readonly PAD_TOP = 12;
|
|
@@ -10,6 +11,8 @@ export declare class BarChartComponent {
|
|
|
10
11
|
readonly PAD_BOTTOM = 32;
|
|
11
12
|
series: import("@angular/core").InputSignal<ChartSeries[]>;
|
|
12
13
|
categories: import("@angular/core").InputSignal<string[]>;
|
|
14
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
chartDescription: import("@angular/core").Signal<string>;
|
|
13
16
|
height: import("@angular/core").InputSignal<number>;
|
|
14
17
|
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
15
18
|
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
@@ -64,6 +67,7 @@ export declare class BarChartComponent {
|
|
|
64
67
|
barColor(si: number, s: ChartSeries): string;
|
|
65
68
|
onMouseMove(event: MouseEvent): void;
|
|
66
69
|
onBarClick(ci: number, si: number, v: number): void;
|
|
70
|
+
barAccessibleLabel(ci: number, si: number, value: number): string;
|
|
67
71
|
onMouseLeave(): void;
|
|
68
72
|
onExport(type: ExportFormat): void;
|
|
69
73
|
exportToJson(): void;
|
|
@@ -72,5 +76,5 @@ export declare class BarChartComponent {
|
|
|
72
76
|
exportToPdf(): void;
|
|
73
77
|
readonly fmtNum: typeof fmtNum;
|
|
74
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarChartComponent, 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>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "ngx-bar-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "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>;
|
|
76
80
|
}
|
|
@@ -12,6 +12,7 @@ export interface BoxPlotItem {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class BoxPlotChartComponent {
|
|
14
14
|
private readonly exportSvc;
|
|
15
|
+
private readonly i18n;
|
|
15
16
|
PAD_LEFT: number;
|
|
16
17
|
PAD_TOP: number;
|
|
17
18
|
PAD_RIGHT: number;
|
|
@@ -68,6 +69,11 @@ export declare class BoxPlotChartComponent {
|
|
|
68
69
|
}[]>;
|
|
69
70
|
onBoxHover(event: MouseEvent, item: BoxPlotItem, index: number): void;
|
|
70
71
|
onOutlierHover(event: MouseEvent, label: string, outlierVal: number): void;
|
|
72
|
+
boxAccessibleLabel(item: BoxPlotItem): string;
|
|
73
|
+
outlierAccessibleLabel(label: string, value: number): string;
|
|
74
|
+
onBoxFocus(event: FocusEvent, item: BoxPlotItem, index: number): void;
|
|
75
|
+
onOutlierFocus(event: FocusEvent, label: string, value: number): void;
|
|
76
|
+
onMarkBlur(): void;
|
|
71
77
|
toggleExportMenu(event: MouseEvent): void;
|
|
72
78
|
closeExportMenu(): void;
|
|
73
79
|
onExport(type: 'json' | 'csv' | 'svg' | 'pdf'): void;
|
|
@@ -11,6 +11,7 @@ export interface BubblePoint {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class BubbleChartComponent {
|
|
13
13
|
private readonly exportSvc;
|
|
14
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
14
15
|
PAD_LEFT: number;
|
|
15
16
|
PAD_TOP: number;
|
|
16
17
|
PAD_RIGHT: number;
|
|
@@ -64,6 +65,9 @@ export declare class BubbleChartComponent {
|
|
|
64
65
|
raw: BubblePoint;
|
|
65
66
|
}[]>;
|
|
66
67
|
onPointHover(event: MouseEvent, pt: BubblePoint, index: number): void;
|
|
68
|
+
onPointFocus(event: FocusEvent, pt: BubblePoint, index: number): void;
|
|
69
|
+
pointAccessibleLabel(pt: BubblePoint): string;
|
|
70
|
+
private showPointTooltip;
|
|
67
71
|
onMouseLeave(): void;
|
|
68
72
|
onExport(type: ExportFormat): void;
|
|
69
73
|
exportToJson(): void;
|
|
@@ -3,6 +3,7 @@ import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BulletChartComponent {
|
|
5
5
|
private readonly exportSvc;
|
|
6
|
+
private readonly i18n;
|
|
6
7
|
value: import("@angular/core").InputSignal<number>;
|
|
7
8
|
target: import("@angular/core").InputSignal<number>;
|
|
8
9
|
max: import("@angular/core").InputSignal<number>;
|
|
@@ -32,6 +33,8 @@ export declare class BulletChartComponent {
|
|
|
32
33
|
xPos(v: number): number;
|
|
33
34
|
valBarWidth: import("@angular/core").Signal<number>;
|
|
34
35
|
targetX: import("@angular/core").Signal<number>;
|
|
36
|
+
valueAccessibleLabel(): string;
|
|
37
|
+
targetAccessibleLabel(): string;
|
|
35
38
|
rangeRects: import("@angular/core").Signal<{
|
|
36
39
|
x: number;
|
|
37
40
|
width: number;
|
|
@@ -14,6 +14,7 @@ export interface ColumnRangeSeries {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class ColumnRangeChartComponent {
|
|
16
16
|
private readonly exportSvc;
|
|
17
|
+
private readonly i18n;
|
|
17
18
|
readonly PAD_LEFT = 48;
|
|
18
19
|
readonly PAD_TOP = 15;
|
|
19
20
|
readonly PAD_RIGHT = 16;
|
|
@@ -51,7 +52,10 @@ export declare class ColumnRangeChartComponent {
|
|
|
51
52
|
barHeight(d: ColumnRangePoint): number;
|
|
52
53
|
isValidPoint(d: ColumnRangePoint): boolean;
|
|
53
54
|
seriesColor(i: number, s: ColumnRangeSeries): string;
|
|
54
|
-
onColumnHover(ci: number, si: number, d: ColumnRangePoint
|
|
55
|
+
onColumnHover(ci: number, si: number, d: ColumnRangePoint): void;
|
|
56
|
+
pointAccessibleLabel(point: ColumnRangePoint, seriesName: string): string;
|
|
57
|
+
onColumnFocus(ci: number, si: number, point: ColumnRangePoint, event: FocusEvent): void;
|
|
58
|
+
onColumnBlur(): void;
|
|
55
59
|
onColumnMouseMove(event: MouseEvent): void;
|
|
56
60
|
onMouseLeave(): void;
|
|
57
61
|
onExport(type: ExportFormat): void;
|
|
@@ -8,6 +8,7 @@ export interface DumbbellItem {
|
|
|
8
8
|
endColor?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare class DumbbellChartComponent {
|
|
11
|
+
private readonly i18n;
|
|
11
12
|
data: import("@angular/core").InputSignal<DumbbellItem[]>;
|
|
12
13
|
height: import("@angular/core").InputSignal<number>;
|
|
13
14
|
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
@@ -56,7 +57,10 @@ export declare class DumbbellChartComponent {
|
|
|
56
57
|
startColor?: string;
|
|
57
58
|
endColor?: string;
|
|
58
59
|
}[]>;
|
|
59
|
-
onRowHover(idx: number
|
|
60
|
+
onRowHover(idx: number): void;
|
|
61
|
+
itemAccessibleLabel(item: DumbbellItem): string;
|
|
62
|
+
onRowFocus(idx: number, event: FocusEvent): void;
|
|
63
|
+
onRowBlur(): void;
|
|
60
64
|
onRowMouseMove(event: MouseEvent): void;
|
|
61
65
|
onMouseLeave(): void;
|
|
62
66
|
toggleExportMenu(event: MouseEvent): void;
|
|
@@ -7,6 +7,7 @@ export interface FunnelItem {
|
|
|
7
7
|
color?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class FunnelChartComponent {
|
|
10
|
+
private readonly i18n;
|
|
10
11
|
data: import("@angular/core").InputSignal<FunnelItem[]>;
|
|
11
12
|
height: import("@angular/core").InputSignal<number>;
|
|
12
13
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
@@ -33,6 +34,9 @@ export declare class FunnelChartComponent {
|
|
|
33
34
|
exportToSvg(): void;
|
|
34
35
|
exportToPdf(): void;
|
|
35
36
|
onMouseMove(event: MouseEvent, index: number): void;
|
|
37
|
+
stageAccessibleLabel(stage: FunnelItem): string;
|
|
38
|
+
onStageFocus(event: FocusEvent, index: number): void;
|
|
39
|
+
onStageBlur(): void;
|
|
36
40
|
readonly fmtNum: typeof fmtNum;
|
|
37
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunnelChartComponent, never>;
|
|
38
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<FunnelChartComponent, "ngx-funnel-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -3,6 +3,7 @@ import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class HeatmapChartComponent {
|
|
5
5
|
private readonly exportSvc;
|
|
6
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
6
7
|
data: import("@angular/core").InputSignal<number[][]>;
|
|
7
8
|
xAxisLabels: import("@angular/core").InputSignal<string[]>;
|
|
8
9
|
yAxisLabels: import("@angular/core").InputSignal<string[]>;
|
|
@@ -33,6 +34,9 @@ export declare class HeatmapChartComponent {
|
|
|
33
34
|
getCellColor(val: number): string;
|
|
34
35
|
private interpolateColor;
|
|
35
36
|
onCellEnter(rIdx: number, cIdx: number, val: number, event: MouseEvent): void;
|
|
37
|
+
onCellFocus(rIdx: number, cIdx: number, val: number, event: FocusEvent): void;
|
|
38
|
+
cellAccessibleLabel(rIdx: number, cIdx: number, val: number): string;
|
|
39
|
+
private showCellTooltip;
|
|
36
40
|
onCellLeave(): void;
|
|
37
41
|
onCellClick(rIdx: number, cIdx: number, val: number): void;
|
|
38
42
|
onExport(type: ExportFormat): void;
|
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class LineChartComponent {
|
|
6
6
|
readonly instanceId: string;
|
|
7
7
|
private readonly exportSvc;
|
|
8
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
8
9
|
readonly PAD_LEFT = 48;
|
|
9
10
|
readonly PAD_TOP = 12;
|
|
10
11
|
readonly PAD_RIGHT = 16;
|
|
@@ -83,6 +84,7 @@ export declare class LineChartComponent {
|
|
|
83
84
|
resetZoom(): void;
|
|
84
85
|
onPointClick(ci: number, si: number, v: number): void;
|
|
85
86
|
onMouseLeave(): void;
|
|
87
|
+
chartAccessibilityLabel(): string;
|
|
86
88
|
onExport(type: ExportFormat): void;
|
|
87
89
|
exportToCsv(): void;
|
|
88
90
|
exportToJson(): void;
|
|
@@ -4,6 +4,7 @@ import { ChartDataPoint } from '../shared/chart-utils';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LollipopChartComponent {
|
|
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
|
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
@@ -42,7 +43,10 @@ export declare class LollipopChartComponent {
|
|
|
42
43
|
label: string;
|
|
43
44
|
value: number;
|
|
44
45
|
}[]>;
|
|
45
|
-
onItemHover(idx: number
|
|
46
|
+
onItemHover(idx: number): void;
|
|
47
|
+
itemAccessibleLabel(item: ChartDataPoint): string;
|
|
48
|
+
onItemFocus(idx: number, event: FocusEvent): void;
|
|
49
|
+
onItemBlur(): void;
|
|
46
50
|
onItemMouseMove(event: MouseEvent): void;
|
|
47
51
|
onMouseLeave(): void;
|
|
48
52
|
onExport(type: ExportFormat): void;
|
|
@@ -9,8 +9,28 @@ export interface MarimekkoItem {
|
|
|
9
9
|
label: string;
|
|
10
10
|
segments: MarimekkoSegment[];
|
|
11
11
|
}
|
|
12
|
+
interface ProcessedSegment {
|
|
13
|
+
name: string;
|
|
14
|
+
value: number;
|
|
15
|
+
color: string;
|
|
16
|
+
y: number;
|
|
17
|
+
height: number;
|
|
18
|
+
pctOfCol: number;
|
|
19
|
+
pctOfTotal: number;
|
|
20
|
+
colIndex: number;
|
|
21
|
+
segIndex: number;
|
|
22
|
+
}
|
|
23
|
+
interface ProcessedCol {
|
|
24
|
+
label: string;
|
|
25
|
+
x: number;
|
|
26
|
+
width: number;
|
|
27
|
+
total: number;
|
|
28
|
+
pctOfTotal: number;
|
|
29
|
+
segments: ProcessedSegment[];
|
|
30
|
+
}
|
|
12
31
|
export declare class MarimekkoChartComponent {
|
|
13
32
|
private readonly exportSvc;
|
|
33
|
+
private readonly i18n;
|
|
14
34
|
data: import("@angular/core").InputSignal<MarimekkoItem[]>;
|
|
15
35
|
height: import("@angular/core").InputSignal<number>;
|
|
16
36
|
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
@@ -57,7 +77,10 @@ export declare class MarimekkoChartComponent {
|
|
|
57
77
|
segIndex: number;
|
|
58
78
|
}[];
|
|
59
79
|
}[]>;
|
|
60
|
-
onSegmentHover(colIndex: number, segIndex: number
|
|
80
|
+
onSegmentHover(colIndex: number, segIndex: number): void;
|
|
81
|
+
segmentAccessibleLabel(segment: ProcessedSegment, column: ProcessedCol): string;
|
|
82
|
+
onSegmentFocus(event: FocusEvent, colIndex: number, segIndex: number): void;
|
|
83
|
+
onSegmentBlur(): void;
|
|
61
84
|
onSegmentMouseMove(event: MouseEvent): void;
|
|
62
85
|
onMouseLeave(): void;
|
|
63
86
|
onExport(type: ExportFormat): void;
|
|
@@ -69,3 +92,4 @@ export declare class MarimekkoChartComponent {
|
|
|
69
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarimekkoChartComponent, never>;
|
|
70
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<MarimekkoChartComponent, "ngx-marimekko-chart", never, { "data": { "alias": "data"; "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; }; "showSegmentLabels": { "alias": "showSegmentLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
71
94
|
}
|
|
95
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { ChartDataPoint, fmtNum } from '../shared/chart-utils';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PieChartComponent {
|
|
6
6
|
private readonly exportSvc;
|
|
7
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
7
8
|
data: import("@angular/core").InputSignal<ChartDataPoint[]>;
|
|
8
9
|
mode: import("@angular/core").InputSignal<"pie" | "donut">;
|
|
9
10
|
donutHoleSize: import("@angular/core").InputSignal<number>;
|
|
@@ -53,6 +54,14 @@ export declare class PieChartComponent {
|
|
|
53
54
|
labelY(s: {
|
|
54
55
|
midAngle: number;
|
|
55
56
|
}): number;
|
|
57
|
+
onSliceFocus(event: FocusEvent, slice: {
|
|
58
|
+
label: string;
|
|
59
|
+
value: number;
|
|
60
|
+
pct: number;
|
|
61
|
+
color: string;
|
|
62
|
+
index: number;
|
|
63
|
+
}): void;
|
|
64
|
+
onSliceBlur(index: number): void;
|
|
56
65
|
onSliceHover(event: MouseEvent, slice: {
|
|
57
66
|
label: string;
|
|
58
67
|
value: number;
|
|
@@ -10,6 +10,7 @@ export interface PyramidItem {
|
|
|
10
10
|
export declare class PyramidChartComponent {
|
|
11
11
|
readonly instanceId: string;
|
|
12
12
|
private readonly exportSvc;
|
|
13
|
+
private readonly i18n;
|
|
13
14
|
data: import("@angular/core").InputSignal<PyramidItem[]>;
|
|
14
15
|
height: import("@angular/core").InputSignal<number>;
|
|
15
16
|
mode: import("@angular/core").InputSignal<"pyramid" | "inverted">;
|
|
@@ -49,6 +50,10 @@ export declare class PyramidChartComponent {
|
|
|
49
50
|
}[]>;
|
|
50
51
|
constructor();
|
|
51
52
|
onMouseEnter(event: MouseEvent, seg: any): void;
|
|
53
|
+
itemAccessibleLabel(seg: PyramidItem): string;
|
|
54
|
+
onSegmentFocus(event: FocusEvent, seg: PyramidItem & {
|
|
55
|
+
color: string;
|
|
56
|
+
}): void;
|
|
52
57
|
onMouseLeave(): void;
|
|
53
58
|
onSegmentClick(seg: any): void;
|
|
54
59
|
onExport(type: ExportFormat): void;
|
|
@@ -10,6 +10,7 @@ export interface RadialBarItem {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class RadialBarChartComponent {
|
|
12
12
|
private readonly exportSvc;
|
|
13
|
+
private readonly i18n;
|
|
13
14
|
readonly instanceId: string;
|
|
14
15
|
data: import("@angular/core").InputSignal<RadialBarItem[]>;
|
|
15
16
|
height: import("@angular/core").InputSignal<number>;
|
|
@@ -40,6 +41,9 @@ export declare class RadialBarChartComponent {
|
|
|
40
41
|
}[]>;
|
|
41
42
|
avgPct: import("@angular/core").Signal<number>;
|
|
42
43
|
onRingHover(item: RadialBarItem, index: number): void;
|
|
44
|
+
ringAccessibleLabel(item: RadialBarItem): string;
|
|
45
|
+
onRingFocus(event: FocusEvent, item: RadialBarItem, index: number): void;
|
|
46
|
+
onRingBlur(): void;
|
|
43
47
|
onRingMouseMove(event: MouseEvent): void;
|
|
44
48
|
onMouseLeave(): void;
|
|
45
49
|
onExport(type: ExportFormat): void;
|
|
@@ -10,6 +10,7 @@ export interface RangeBarItem {
|
|
|
10
10
|
category?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare class RangeBarChartComponent {
|
|
13
|
+
private readonly i18n;
|
|
13
14
|
readonly instanceId: string;
|
|
14
15
|
private readonly exportSvc;
|
|
15
16
|
data: import("@angular/core").InputSignal<RangeBarItem[]>;
|
|
@@ -52,6 +53,9 @@ export declare class RangeBarChartComponent {
|
|
|
52
53
|
constructor();
|
|
53
54
|
xPos(v: number): number;
|
|
54
55
|
onMouseEnter(event: MouseEvent, item: RangeBarItem): void;
|
|
56
|
+
itemAccessibleLabel(item: RangeBarItem): string;
|
|
57
|
+
onBarFocus(event: FocusEvent, item: RangeBarItem): void;
|
|
58
|
+
onBarBlur(): void;
|
|
55
59
|
onMouseLeave(): void;
|
|
56
60
|
onBarClick(item: RangeBarItem): void;
|
|
57
61
|
onExport(type: ExportFormat): void;
|
|
@@ -11,6 +11,7 @@ export interface ScatterPoint {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class ScatterPlotComponent {
|
|
13
13
|
private readonly exportSvc;
|
|
14
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
14
15
|
PAD_LEFT: number;
|
|
15
16
|
PAD_TOP: number;
|
|
16
17
|
PAD_RIGHT: number;
|
|
@@ -58,6 +59,9 @@ export declare class ScatterPlotComponent {
|
|
|
58
59
|
raw: ScatterPoint;
|
|
59
60
|
}[]>;
|
|
60
61
|
onPointHover(event: MouseEvent, pt: ScatterPoint, index: number): void;
|
|
62
|
+
onPointFocus(event: FocusEvent, pt: ScatterPoint, index: number): void;
|
|
63
|
+
onPointBlur(index: number): void;
|
|
64
|
+
private showPointTooltip;
|
|
61
65
|
onMouseLeave(): void;
|
|
62
66
|
ptX(t: {
|
|
63
67
|
xVal: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ChartAccessibleMarkDirective {
|
|
3
|
+
readonly ngxChartAccessibleMark: import("@angular/core").InputSignal<string>;
|
|
4
|
+
readonly ngxChartAccessibleMarkInteractive: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
readonly activated: import("@angular/core").OutputEmitterRef<void>;
|
|
6
|
+
onKeydown(event: KeyboardEvent): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartAccessibleMarkDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartAccessibleMarkDirective, "[ngxChartAccessibleMark]", never, { "ngxChartAccessibleMark": { "alias": "ngxChartAccessibleMark"; "required": true; "isSignal": true; }; "ngxChartAccessibleMarkInteractive": { "alias": "ngxChartAccessibleMarkInteractive"; "required": false; "isSignal": true; }; }, { "activated": "activated"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -14,6 +14,13 @@ export type ExportFormat = 'json' | 'csv' | 'svg' | 'pdf';
|
|
|
14
14
|
* />
|
|
15
15
|
*/
|
|
16
16
|
export declare class ChartExportMenuComponent {
|
|
17
|
+
private static nextInstanceId;
|
|
18
|
+
private readonly instanceId;
|
|
19
|
+
readonly triggerId: string;
|
|
20
|
+
readonly menuId: string;
|
|
21
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
22
|
+
private readonly injector;
|
|
23
|
+
private readonly elementRef;
|
|
17
24
|
formats: import("@angular/core").InputSignal<ExportFormat[]>;
|
|
18
25
|
exportClicked: import("@angular/core").OutputEmitterRef<ExportFormat>;
|
|
19
26
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ChartSkeletonComponent {
|
|
3
3
|
mode: import("@angular/core").InputSignal<"loading" | "empty">;
|
|
4
|
-
chartType: import("@angular/core").InputSignal<"
|
|
4
|
+
chartType: import("@angular/core").InputSignal<"line" | "pie" | "bar" | "scatter" | "heatmap" | "generic">;
|
|
5
5
|
height: import("@angular/core").InputSignal<number>;
|
|
6
6
|
message: import("@angular/core").InputSignal<string>;
|
|
7
7
|
icon: import("@angular/core").InputSignal<string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { fmtNum } from '../shared/chart-utils';
|
|
3
|
+
import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface SunburstNode {
|
|
5
6
|
label: string;
|
|
@@ -20,6 +21,7 @@ interface SunburstSlice {
|
|
|
20
21
|
pct: number;
|
|
21
22
|
}
|
|
22
23
|
export declare class SunburstChartComponent {
|
|
24
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
23
25
|
data: import("@angular/core").InputSignal<SunburstNode[]>;
|
|
24
26
|
height: import("@angular/core").InputSignal<number>;
|
|
25
27
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
@@ -27,7 +29,6 @@ export declare class SunburstChartComponent {
|
|
|
27
29
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
28
30
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
29
31
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
30
|
-
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
31
32
|
hoveredSliceId: import("@angular/core").WritableSignal<string | null>;
|
|
32
33
|
tooltip: import("@angular/core").WritableSignal<{
|
|
33
34
|
x: number;
|
|
@@ -50,9 +51,11 @@ export declare class SunburstChartComponent {
|
|
|
50
51
|
slices: import("@angular/core").Signal<SunburstSlice[]>;
|
|
51
52
|
labelTransform(slice: SunburstSlice): string;
|
|
52
53
|
onSliceHover(event: MouseEvent, slice: SunburstSlice): void;
|
|
54
|
+
onSliceFocus(event: FocusEvent, slice: SunburstSlice): void;
|
|
55
|
+
sliceAccessibleLabel(slice: SunburstSlice): string;
|
|
56
|
+
private showSliceTooltip;
|
|
53
57
|
onSliceLeave(): void;
|
|
54
|
-
|
|
55
|
-
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
58
|
+
onExport(type: ExportFormat): void;
|
|
56
59
|
exportToCsv(): void;
|
|
57
60
|
exportToJson(): void;
|
|
58
61
|
exportToSvg(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface TreemapItem {
|
|
4
5
|
label: string;
|
|
@@ -13,11 +14,11 @@ interface LayoutItem extends TreemapItem {
|
|
|
13
14
|
displayColor: string;
|
|
14
15
|
}
|
|
15
16
|
export declare class TreemapChartComponent {
|
|
17
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
16
18
|
data: import("@angular/core").InputSignal<TreemapItem[]>;
|
|
17
19
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
18
20
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
19
21
|
itemClick: import("@angular/core").OutputEmitterRef<TreemapItem>;
|
|
20
|
-
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
21
22
|
tooltip: import("@angular/core").WritableSignal<{
|
|
22
23
|
show: boolean;
|
|
23
24
|
title: string;
|
|
@@ -30,11 +31,12 @@ export declare class TreemapChartComponent {
|
|
|
30
31
|
layoutRects: import("@angular/core").Signal<LayoutItem[]>;
|
|
31
32
|
private subdivide;
|
|
32
33
|
onItemEnter(item: LayoutItem, event: MouseEvent): void;
|
|
34
|
+
onItemFocus(item: LayoutItem, event: FocusEvent): void;
|
|
35
|
+
itemAccessibleLabel(item: TreemapItem): string;
|
|
36
|
+
private showItemTooltip;
|
|
33
37
|
onItemLeave(): void;
|
|
34
38
|
onItemClick(item: LayoutItem): void;
|
|
35
|
-
|
|
36
|
-
closeExportMenu(): void;
|
|
37
|
-
onExport(type: 'json' | 'csv' | 'svg' | 'pdf'): void;
|
|
39
|
+
onExport(type: ExportFormat): void;
|
|
38
40
|
exportToJson(): void;
|
|
39
41
|
exportToCsv(): void;
|
|
40
42
|
exportToSvg(): void;
|
|
@@ -9,6 +9,7 @@ export interface WaterfallItem {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class WaterfallChartComponent {
|
|
11
11
|
private readonly exportSvc;
|
|
12
|
+
readonly i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
12
13
|
PAD_LEFT: number;
|
|
13
14
|
PAD_TOP: number;
|
|
14
15
|
PAD_RIGHT: number;
|
|
@@ -62,6 +63,13 @@ export declare class WaterfallChartComponent {
|
|
|
62
63
|
isTotal: boolean;
|
|
63
64
|
}[]>;
|
|
64
65
|
onBarHover(event: MouseEvent, bar: any, index: number): void;
|
|
66
|
+
barAccessibleLabel(bar: {
|
|
67
|
+
label: string;
|
|
68
|
+
value: number;
|
|
69
|
+
balance: number;
|
|
70
|
+
}): string;
|
|
71
|
+
onBarFocus(event: FocusEvent, bar: any, index: number): void;
|
|
72
|
+
onBarBlur(index: number): void;
|
|
65
73
|
onExport(type: ExportFormat): void;
|
|
66
74
|
exportToCsv(): void;
|
|
67
75
|
exportToJson(): void;
|