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
|
@@ -49,8 +49,15 @@ export declare class AIChatComponent {
|
|
|
49
49
|
rawFile: File;
|
|
50
50
|
}[]>;
|
|
51
51
|
msgFeedbackMap: Record<string, 'like' | 'dislike'>;
|
|
52
|
+
isUserScrolledUp: import("@angular/core").WritableSignal<boolean>;
|
|
53
|
+
isDraggingOver: import("@angular/core").WritableSignal<boolean>;
|
|
52
54
|
onHostClick(event: MouseEvent): void;
|
|
55
|
+
onBodyScroll(): void;
|
|
56
|
+
onDragOver(event: DragEvent): void;
|
|
57
|
+
onDragLeave(event: DragEvent): void;
|
|
58
|
+
onDrop(event: DragEvent): void;
|
|
53
59
|
onFileSelected(event: Event): void;
|
|
60
|
+
private processFiles;
|
|
54
61
|
removeAttachment(file: any): void;
|
|
55
62
|
onMessageRating(messageId: string, rating: 'like' | 'dislike'): void;
|
|
56
63
|
constructor();
|
|
@@ -58,7 +65,8 @@ export declare class AIChatComponent {
|
|
|
58
65
|
toggleStep(step: AgentStep): void;
|
|
59
66
|
getCompletedStepsCount(steps: AgentStep[]): number;
|
|
60
67
|
getInitials(name: string): string;
|
|
61
|
-
scrollToBottom(): void;
|
|
68
|
+
scrollToBottom(force?: boolean): void;
|
|
69
|
+
private highlightSyntax;
|
|
62
70
|
formatMessage(content: string): SafeHtml;
|
|
63
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIChatComponent, never>;
|
|
64
72
|
static ɵcmp: i0.ɵɵComponentDeclaration<AIChatComponent, "ngx-ai-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentName": { "alias": "agentName"; "required": false; "isSignal": true; }; "agentAvatarUrl": { "alias": "agentAvatarUrl"; "required": false; "isSignal": true; }; "isOnline": { "alias": "isOnline"; "required": false; "isSignal": true; }; "isTyping": { "alias": "isTyping"; "required": false; "isSignal": true; }; "isStreaming": { "alias": "isStreaming"; "required": false; "isSignal": true; }; "showSenderNames": { "alias": "showSenderNames"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "quickReplies": { "alias": "quickReplies"; "required": false; "isSignal": true; }; "avatarBg": { "alias": "avatarBg"; "required": false; "isSignal": true; }; }, { "sendMessage": "sendMessage"; "quickReplyClick": "quickReplyClick"; "cardActionClick": "cardActionClick"; "clearHistory": "clearHistory"; "messageFeedback": "messageFeedback"; "fileAttached": "fileAttached"; "messageSent": "messageSent"; }, never, never, true, never>;
|
|
@@ -14,13 +14,15 @@ export declare class AIChatWidgetComponent {
|
|
|
14
14
|
messageSent: import("@angular/core").OutputEmitterRef<string>;
|
|
15
15
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
16
16
|
messages: import("@angular/core").WritableSignal<WidgetMessage[]>;
|
|
17
|
+
isUserScrolledUp: import("@angular/core").WritableSignal<boolean>;
|
|
17
18
|
scrollContainer: ElementRef<HTMLDivElement>;
|
|
19
|
+
onBodyScroll(): void;
|
|
18
20
|
toggleOpen(): void;
|
|
19
21
|
closeOpen(): void;
|
|
20
22
|
sendMessage(text: string): void;
|
|
21
23
|
selectReply(reply: string): void;
|
|
22
24
|
addAssistantReply(text: string): void;
|
|
23
|
-
|
|
25
|
+
scrollToBottom(force?: boolean): void;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIChatWidgetComponent, never>;
|
|
25
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<AIChatWidgetComponent, "ngx-ai-chat-widget", never, { "agentName": { "alias": "agentName"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "welcomeMessage": { "alias": "welcomeMessage"; "required": false; "isSignal": true; }; "quickReplies": { "alias": "quickReplies"; "required": false; "isSignal": true; }; }, { "messageSent": "messageSent"; }, never, never, true, never>;
|
|
26
28
|
}
|
|
@@ -2,20 +2,33 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class AIPromptEditorComponent {
|
|
3
3
|
initialTemplate: import("@angular/core").InputSignal<string>;
|
|
4
4
|
initialSystem: import("@angular/core").InputSignal<string>;
|
|
5
|
-
|
|
5
|
+
systemPromptSignal: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
get systemPrompt(): string;
|
|
7
|
+
set systemPrompt(val: string);
|
|
6
8
|
templateText: import("@angular/core").WritableSignal<string>;
|
|
7
9
|
temperature: import("@angular/core").WritableSignal<number>;
|
|
8
10
|
maxTokens: number;
|
|
11
|
+
selectedModel: import("@angular/core").WritableSignal<"gpt-4o" | "gpt-4o-mini" | "claude-3-5-sonnet" | "gemini-1-5-pro">;
|
|
9
12
|
varValues: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
10
13
|
isRunning: import("@angular/core").WritableSignal<boolean>;
|
|
11
14
|
simulatedResponse: import("@angular/core").WritableSignal<string>;
|
|
15
|
+
readonly MODEL_RATES: Record<string, {
|
|
16
|
+
name: string;
|
|
17
|
+
ratePer1k: number;
|
|
18
|
+
}>;
|
|
19
|
+
systemTokens: import("@angular/core").Signal<number>;
|
|
20
|
+
compiledTokens: import("@angular/core").Signal<number>;
|
|
21
|
+
totalPromptTokens: import("@angular/core").Signal<number>;
|
|
22
|
+
estimatedCost: import("@angular/core").Signal<string>;
|
|
12
23
|
constructor();
|
|
24
|
+
onSystemPromptChange(text: string): void;
|
|
13
25
|
parsedVariables: import("@angular/core").Signal<string[]>;
|
|
14
26
|
compiledPrompt: import("@angular/core").Signal<string>;
|
|
15
27
|
onTemplateChange(text: string): void;
|
|
16
28
|
onTempChange(event: Event): void;
|
|
17
29
|
getVarValue(vName: string): string;
|
|
18
30
|
setVarValue(vName: string, event: Event): void;
|
|
31
|
+
addNewVariable(): void;
|
|
19
32
|
triggerRun(): void;
|
|
20
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIPromptEditorComponent, never>;
|
|
21
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<AIPromptEditorComponent, "ngx-ai-prompt-editor", never, { "initialTemplate": { "alias": "initialTemplate"; "required": false; "isSignal": true; }; "initialSystem": { "alias": "initialSystem"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -11,8 +11,14 @@ export declare class AIRagInspectorComponent {
|
|
|
11
11
|
}>;
|
|
12
12
|
searchQuery: import("@angular/core").WritableSignal<string>;
|
|
13
13
|
expandedId: import("@angular/core").WritableSignal<string | null>;
|
|
14
|
+
viewMode: import("@angular/core").WritableSignal<"splitscreen" | "list">;
|
|
15
|
+
activeChunk: import("@angular/core").WritableSignal<RAGSource | null>;
|
|
14
16
|
feedbackMap: Record<string, 'up' | 'down'>;
|
|
15
17
|
filteredSources: import("@angular/core").Signal<RAGSource[]>;
|
|
18
|
+
toggleViewMode(): void;
|
|
19
|
+
selectChunk(source: RAGSource): void;
|
|
20
|
+
closeViewer(): void;
|
|
21
|
+
navigateChunk(delta: number): void;
|
|
16
22
|
toggleExpand(id: string): void;
|
|
17
23
|
submitFeedback(source: RAGSource, type: 'up' | 'down'): void;
|
|
18
24
|
highlightText(text: string): string;
|
|
@@ -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
|
+
}
|
|
@@ -21,13 +21,29 @@ export declare class GaugeChartComponent {
|
|
|
21
21
|
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
22
22
|
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
23
23
|
constructor();
|
|
24
|
-
startAngle: import("@angular/core").Signal<
|
|
25
|
-
endAngle: import("@angular/core").Signal<
|
|
24
|
+
startAngle: import("@angular/core").Signal<270 | 225>;
|
|
25
|
+
endAngle: import("@angular/core").Signal<450 | 495>;
|
|
26
26
|
arcLength: import("@angular/core").Signal<number>;
|
|
27
27
|
progressDashOffset: import("@angular/core").Signal<number>;
|
|
28
28
|
backgroundArcPath: import("@angular/core").Signal<string>;
|
|
29
29
|
needleTransformString: import("@angular/core").Signal<string>;
|
|
30
30
|
gaugeColor: import("@angular/core").Signal<string>;
|
|
31
|
+
private getThresholdColorForValue;
|
|
32
|
+
ticks: import("@angular/core").Signal<{
|
|
33
|
+
x1: number;
|
|
34
|
+
y1: number;
|
|
35
|
+
x2: number;
|
|
36
|
+
y2: number;
|
|
37
|
+
textX: number;
|
|
38
|
+
textY: number;
|
|
39
|
+
valueText: string;
|
|
40
|
+
isMajor: boolean;
|
|
41
|
+
color: string;
|
|
42
|
+
}[]>;
|
|
43
|
+
thresholdArcs: import("@angular/core").Signal<{
|
|
44
|
+
path: string;
|
|
45
|
+
color: string;
|
|
46
|
+
}[]>;
|
|
31
47
|
toggleExportMenu(event: MouseEvent): void;
|
|
32
48
|
closeExportMenu(): void;
|
|
33
49
|
onExport(type: 'json' | 'csv' | 'svg' | 'pdf'): void;
|
|
@@ -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;
|