ngx-core-components 0.3.28 → 0.3.30
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/ai/ai-chat/ai-chat.component.d.ts +9 -1
- package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +3 -1
- package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +14 -1
- package/ai/ai-rag-inspector/ai-rag-inspector.component.d.ts +6 -0
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +49 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +18 -2
- 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-ai.mjs +633 -258
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +3347 -39
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +3635 -892
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +894 -542
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +306 -117
- 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 +70 -0
- package/grid/data-grid/components/grid-status-bar/grid-status-bar.component.d.ts +25 -0
- package/grid/data-grid/data-grid.component.d.ts +18 -1
- package/grid/data-grid/models.d.ts +65 -0
- package/grid/data-grid/services/grid-clipboard.service.d.ts +40 -0
- package/grid/data-grid/services/grid-edit.service.d.ts +48 -0
- package/grid/data-grid/services/grid-export-xlsx.service.d.ts +67 -0
- package/grid/data-grid/services/grid-keyboard.service.d.ts +70 -0
- package/grid/data-grid/services/grid-selection.service.d.ts +36 -0
- package/grid/data-grid/services/grid-state.service.d.ts +41 -0
- package/grid/data-grid/services/grid-virtualization.service.d.ts +81 -0
- package/grid/data-grid/utils/grid-aggregate.util.d.ts +13 -0
- package/grid/data-grid/utils/grid-filter.util.d.ts +11 -0
- package/grid/data-grid/utils/grid-sort.util.d.ts +17 -0
- package/grid/pivot-grid/pivot-grid.component.d.ts +15 -2
- package/grid/public-api.d.ts +17 -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/segmented-control/segmented-control.component.d.ts +12 -3
- 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
- package/views/tree-view/tree-view.component.d.ts +20 -2
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ExportFormat } from '../shared/chart-export-menu.component';
|
|
3
|
+
import { ChartSeries, fmtNum } from '../shared/chart-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class StepLineChartComponent {
|
|
6
|
+
readonly instanceId: string;
|
|
7
|
+
private readonly exportSvc;
|
|
8
|
+
readonly PAD_LEFT = 48;
|
|
9
|
+
readonly PAD_TOP = 12;
|
|
10
|
+
readonly PAD_RIGHT = 16;
|
|
11
|
+
readonly PAD_BOTTOM = 32;
|
|
12
|
+
series: import("@angular/core").InputSignal<ChartSeries[]>;
|
|
13
|
+
categories: import("@angular/core").InputSignal<string[]>;
|
|
14
|
+
height: import("@angular/core").InputSignal<number>;
|
|
15
|
+
stepMode: import("@angular/core").InputSignal<"before" | "after" | "middle">;
|
|
16
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
showMarkers: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
showArea: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
22
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
referenceLines: import("@angular/core").InputSignal<{
|
|
24
|
+
value: number;
|
|
25
|
+
label: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
labelFormatter: import("@angular/core").InputSignal<((v: number) => string) | undefined>;
|
|
29
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
30
|
+
pointClick: import("@angular/core").OutputEmitterRef<{
|
|
31
|
+
category: string;
|
|
32
|
+
value: number;
|
|
33
|
+
seriesName: string;
|
|
34
|
+
}>;
|
|
35
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
36
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
37
|
+
crosshair: import("@angular/core").WritableSignal<{
|
|
38
|
+
x: number;
|
|
39
|
+
} | null>;
|
|
40
|
+
activeCategoryIndex: import("@angular/core").WritableSignal<number | null>;
|
|
41
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
cat: string;
|
|
45
|
+
rows: {
|
|
46
|
+
name: string;
|
|
47
|
+
value: number;
|
|
48
|
+
color: string;
|
|
49
|
+
}[];
|
|
50
|
+
} | null>;
|
|
51
|
+
chartHeight: import("@angular/core").Signal<number>;
|
|
52
|
+
innerW: import("@angular/core").Signal<number>;
|
|
53
|
+
innerH: import("@angular/core").Signal<number>;
|
|
54
|
+
private allValues;
|
|
55
|
+
private yMin;
|
|
56
|
+
private yMax;
|
|
57
|
+
yTicks: import("@angular/core").Signal<number[]>;
|
|
58
|
+
constructor();
|
|
59
|
+
yPos(v: number): number;
|
|
60
|
+
xPos(i: number): number;
|
|
61
|
+
seriesColor(i: number, s: ChartSeries): string;
|
|
62
|
+
stepPath(points: [number, number][]): string;
|
|
63
|
+
linePath(s: ChartSeries): string;
|
|
64
|
+
areaPath(s: ChartSeries): string;
|
|
65
|
+
onMouseMove(event: MouseEvent): void;
|
|
66
|
+
onMouseLeave(): void;
|
|
67
|
+
onExport(type: ExportFormat): void;
|
|
68
|
+
readonly fmtNum: typeof fmtNum;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepLineChartComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepLineChartComponent, "ngx-step-line-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "stepMode": { "alias": "stepMode"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "showArea": { "alias": "showArea"; "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; }; }, { "pointClick": "pointClick"; }, never, never, true, never>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 TimelineEvent {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
category?: string;
|
|
8
|
+
startDate: string | Date;
|
|
9
|
+
endDate?: string | Date;
|
|
10
|
+
status?: 'completed' | 'in-progress' | 'pending' | 'failed' | 'warning';
|
|
11
|
+
details?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class TimelineChartComponent {
|
|
15
|
+
events: import("@angular/core").InputSignal<TimelineEvent[]>;
|
|
16
|
+
height: import("@angular/core").InputSignal<number>;
|
|
17
|
+
groupCategories: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
20
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
private exportSvc;
|
|
22
|
+
eventClick: import("@angular/core").OutputEmitterRef<TimelineEvent>;
|
|
23
|
+
container: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
24
|
+
onExport(type: ExportFormat): void;
|
|
25
|
+
width: import("@angular/core").WritableSignal<number>;
|
|
26
|
+
hoverEvent: import("@angular/core").WritableSignal<any>;
|
|
27
|
+
chartId: string;
|
|
28
|
+
marginLeft: number;
|
|
29
|
+
marginRight: number;
|
|
30
|
+
marginTop: number;
|
|
31
|
+
marginBottom: number;
|
|
32
|
+
rowHeight: number;
|
|
33
|
+
get containerEl(): any;
|
|
34
|
+
statusColors: Record<string, string>;
|
|
35
|
+
private destroyRef;
|
|
36
|
+
constructor();
|
|
37
|
+
categories: import("@angular/core").Signal<string[]>;
|
|
38
|
+
categoryColors: import("@angular/core").Signal<Record<string, string>>;
|
|
39
|
+
timeRange: import("@angular/core").Signal<{
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
}>;
|
|
43
|
+
xScale: (time: number) => number;
|
|
44
|
+
yScale: (index: number) => number;
|
|
45
|
+
xTicks: import("@angular/core").Signal<{
|
|
46
|
+
x: number;
|
|
47
|
+
label: string;
|
|
48
|
+
}[]>;
|
|
49
|
+
processedEvents: import("@angular/core").Signal<{
|
|
50
|
+
raw: TimelineEvent;
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
width: number;
|
|
54
|
+
isDuration: boolean;
|
|
55
|
+
color: string;
|
|
56
|
+
}[]>;
|
|
57
|
+
getDiamondPath(cx: number, cy: number, r: number): string;
|
|
58
|
+
getTooltipX(ev: any): number;
|
|
59
|
+
getTooltipY(ev: any): number;
|
|
60
|
+
formatDate(d: any): string;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineChartComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineChartComponent, "ngx-timeline-chart", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "groupCategories": { "alias": "groupCategories"; "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; }; }, { "eventClick": "eventClick"; }, never, never, true, never>;
|
|
63
|
+
}
|