ngx-core-components 0.3.17 → 0.3.18
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-audio-wave/ai-audio-wave.component.d.ts +18 -4
- package/ai/ai-chat/ai-chat.component.d.ts +35 -2
- package/ai/ai-chat/models.d.ts +6 -0
- package/ai/ai-code-editor/ai-code-editor.component.d.ts +15 -1
- package/ai/ai-rag-inspector/ai-rag-inspector.component.d.ts +22 -0
- package/ai/ai-rag-inspector/models.d.ts +15 -0
- package/ai/public-api.d.ts +2 -0
- package/buttons/button/button.component.d.ts +15 -1
- package/charts/bubble-chart/bubble-chart.component.d.ts +75 -0
- package/charts/public-api.d.ts +4 -0
- package/charts/sunburst-chart/sunburst-chart.component.d.ts +63 -0
- package/fesm2022/ngx-core-components-ai.mjs +910 -48
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-buttons.mjs +113 -16
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +940 -1
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +746 -213
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +422 -2
- 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/inputs/checkbox/checkbox.component.d.ts +6 -2
- package/inputs/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/inputs/file-preview/file-preview.component.d.ts +1 -1
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +5 -1
- package/inputs/radio/radio-group.component.d.ts +12 -2
- package/inputs/rating/rating.component.d.ts +17 -4
- package/inputs/segmented-control/segmented-control.component.d.ts +2 -2
- package/inputs/switch/switch.component.d.ts +14 -4
- package/inputs/textarea/textarea.component.d.ts +3 -1
- package/inputs/textbox/textbox.component.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +6 -2
- package/views/calendar/calendar.component.d.ts +54 -0
- package/views/public-api.d.ts +2 -0
|
@@ -1,20 +1,34 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export type AIAudioState = 'idle' | 'listening' | 'thinking' | 'speaking';
|
|
3
|
-
export declare class AIAudioWaveComponent {
|
|
4
|
+
export declare class AIAudioWaveComponent implements OnDestroy {
|
|
4
5
|
state: import("@angular/core").InputSignal<AIAudioState>;
|
|
5
6
|
color: import("@angular/core").InputSignal<string>;
|
|
6
7
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
7
8
|
muted: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
autoCapture: import("@angular/core").InputSignal<boolean>;
|
|
8
10
|
stateChange: import("@angular/core").OutputEmitterRef<AIAudioState>;
|
|
9
11
|
mutedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
10
12
|
micToggle: import("@angular/core").OutputEmitterRef<boolean>;
|
|
11
13
|
micEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
12
14
|
localMuted: import("@angular/core").WritableSignal<boolean>;
|
|
13
15
|
speedMultiplier: import("@angular/core").WritableSignal<number>;
|
|
14
|
-
bars: {
|
|
16
|
+
bars: import("@angular/core").WritableSignal<{
|
|
15
17
|
height: number;
|
|
16
18
|
delay: string;
|
|
17
|
-
}[]
|
|
19
|
+
}[]>;
|
|
20
|
+
private defaultHeights;
|
|
21
|
+
private audioCtx?;
|
|
22
|
+
private analyser?;
|
|
23
|
+
private dataArray?;
|
|
24
|
+
private stream?;
|
|
25
|
+
private animationFrameId?;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
private startMicCapture;
|
|
29
|
+
private updateBarsFromAudio;
|
|
30
|
+
private stopMicCapture;
|
|
31
|
+
private resetBars;
|
|
18
32
|
isMuted: import("@angular/core").Signal<boolean>;
|
|
19
33
|
stateLabel: import("@angular/core").Signal<"Listening..." | "Thinking..." | "Speaking..." | "Assistant Idle">;
|
|
20
34
|
volumePercent: import("@angular/core").Signal<0 | 5 | 45 | 12 | 78>;
|
|
@@ -24,5 +38,5 @@ export declare class AIAudioWaveComponent {
|
|
|
24
38
|
toggleMic(): void;
|
|
25
39
|
toggleMute(): void;
|
|
26
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAudioWaveComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AIAudioWaveComponent, "ngx-ai-audio-wave", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "muted": { "alias": "muted"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "mutedChange": "mutedChange"; "micToggle": "micToggle"; }, never, never, true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAudioWaveComponent, "ngx-ai-audio-wave", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "muted": { "alias": "muted"; "required": false; "isSignal": true; }; "autoCapture": { "alias": "autoCapture"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "mutedChange": "mutedChange"; "micToggle": "micToggle"; }, never, never, true, never>;
|
|
28
42
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
3
|
import { AIMessage, AgentStep, AICardAction, QuickReply } from './models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class AIChatComponent {
|
|
6
|
+
private sanitizer;
|
|
5
7
|
messages: import("@angular/core").InputSignal<AIMessage[]>;
|
|
6
8
|
agentName: import("@angular/core").InputSignal<string>;
|
|
7
9
|
agentAvatarUrl: import("@angular/core").InputSignal<string>;
|
|
@@ -17,15 +19,46 @@ export declare class AIChatComponent {
|
|
|
17
19
|
quickReplyClick: import("@angular/core").OutputEmitterRef<QuickReply>;
|
|
18
20
|
cardActionClick: import("@angular/core").OutputEmitterRef<AICardAction>;
|
|
19
21
|
clearHistory: import("@angular/core").OutputEmitterRef<void>;
|
|
22
|
+
messageFeedback: import("@angular/core").OutputEmitterRef<{
|
|
23
|
+
messageId: string;
|
|
24
|
+
rating: "like" | "dislike";
|
|
25
|
+
}>;
|
|
26
|
+
fileAttached: import("@angular/core").OutputEmitterRef<{
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
size: number;
|
|
30
|
+
file: File;
|
|
31
|
+
}>;
|
|
32
|
+
messageSent: import("@angular/core").OutputEmitterRef<{
|
|
33
|
+
content: string;
|
|
34
|
+
attachments: {
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
type: string;
|
|
38
|
+
size?: number;
|
|
39
|
+
}[];
|
|
40
|
+
}>;
|
|
20
41
|
chatBody: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
21
42
|
inputText: string;
|
|
43
|
+
attachedFiles: import("@angular/core").WritableSignal<{
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
size: number;
|
|
47
|
+
url: string;
|
|
48
|
+
rawFile: File;
|
|
49
|
+
}[]>;
|
|
50
|
+
msgFeedbackMap: Record<string, 'like' | 'dislike'>;
|
|
51
|
+
onHostClick(event: MouseEvent): void;
|
|
52
|
+
onFileSelected(event: Event): void;
|
|
53
|
+
removeAttachment(file: any): void;
|
|
54
|
+
onMessageRating(messageId: string, rating: 'like' | 'dislike'): void;
|
|
22
55
|
constructor();
|
|
23
56
|
onSubmit(): void;
|
|
24
57
|
toggleStep(step: AgentStep): void;
|
|
25
58
|
getCompletedStepsCount(steps: AgentStep[]): number;
|
|
26
59
|
getInitials(name: string): string;
|
|
27
60
|
scrollToBottom(): void;
|
|
28
|
-
formatMessage(content: string):
|
|
61
|
+
formatMessage(content: string): SafeHtml;
|
|
29
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIChatComponent, never>;
|
|
30
|
-
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; }; "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"; }, never, never, true, never>;
|
|
63
|
+
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; }; "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>;
|
|
31
64
|
}
|
package/ai/ai-chat/models.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class AICodeEditorComponent {
|
|
3
3
|
code: import("@angular/core").InputSignal<string>;
|
|
4
4
|
suggestion: import("@angular/core").InputSignal<string>;
|
|
5
|
+
suggestions: import("@angular/core").InputSignal<string[]>;
|
|
5
6
|
language: import("@angular/core").InputSignal<string>;
|
|
6
7
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
7
8
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -15,16 +16,29 @@ export declare class AICodeEditorComponent {
|
|
|
15
16
|
showExplanation: import("@angular/core").WritableSignal<boolean>;
|
|
16
17
|
copyText: import("@angular/core").WritableSignal<string>;
|
|
17
18
|
copyTooltip: import("@angular/core").WritableSignal<string>;
|
|
19
|
+
activeSuggestionIndex: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
diffMode: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
currentSuggestion: import("@angular/core").Signal<string>;
|
|
22
|
+
hasSuggestion: import("@angular/core").Signal<boolean>;
|
|
18
23
|
lines: () => string[];
|
|
24
|
+
highlightedCode: import("@angular/core").Signal<string>;
|
|
25
|
+
private highlightJS;
|
|
26
|
+
private highlightCSS;
|
|
27
|
+
private highlightHTML;
|
|
28
|
+
private highlightJSON;
|
|
29
|
+
private escapeHtml;
|
|
19
30
|
editorInput: any;
|
|
20
31
|
focusTextarea(): void;
|
|
21
32
|
onCodeChange(newVal: string): void;
|
|
22
33
|
handleKeydown(event: KeyboardEvent): void;
|
|
34
|
+
prevSuggestion(): void;
|
|
35
|
+
nextSuggestion(): void;
|
|
36
|
+
toggleDiffMode(): void;
|
|
23
37
|
accept(): void;
|
|
24
38
|
decline(): void;
|
|
25
39
|
triggerRegenerate(): void;
|
|
26
40
|
explainSuggestedCode(): void;
|
|
27
41
|
copyCode(): void;
|
|
28
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<AICodeEditorComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AICodeEditorComponent, "ngx-ai-code-editor", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "suggestion": { "alias": "suggestion"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "explanation": { "alias": "explanation"; "required": false; "isSignal": true; }; }, { "codeChange": "codeChange"; "acceptSuggestion": "acceptSuggestion"; "declineSuggestion": "declineSuggestion"; "regenerate": "regenerate"; }, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AICodeEditorComponent, "ngx-ai-code-editor", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "suggestion": { "alias": "suggestion"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "explanation": { "alias": "explanation"; "required": false; "isSignal": true; }; }, { "codeChange": "codeChange"; "acceptSuggestion": "acceptSuggestion"; "declineSuggestion": "declineSuggestion"; "regenerate": "regenerate"; }, never, never, true, never>;
|
|
30
44
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RAGSource } from './models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AIRagInspectorComponent {
|
|
4
|
+
sources: import("@angular/core").InputSignal<RAGSource[]>;
|
|
5
|
+
title: import("@angular/core").InputSignal<string>;
|
|
6
|
+
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
7
|
+
sourceClick: import("@angular/core").OutputEmitterRef<RAGSource>;
|
|
8
|
+
sourceFeedback: import("@angular/core").OutputEmitterRef<{
|
|
9
|
+
sourceId: string;
|
|
10
|
+
type: "up" | "down";
|
|
11
|
+
}>;
|
|
12
|
+
searchQuery: import("@angular/core").WritableSignal<string>;
|
|
13
|
+
expandedId: import("@angular/core").WritableSignal<string | null>;
|
|
14
|
+
feedbackMap: Record<string, 'up' | 'down'>;
|
|
15
|
+
filteredSources: import("@angular/core").Signal<RAGSource[]>;
|
|
16
|
+
toggleExpand(id: string): void;
|
|
17
|
+
submitFeedback(source: RAGSource, type: 'up' | 'down'): void;
|
|
18
|
+
highlightText(text: string): string;
|
|
19
|
+
private escapeHtml;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AIRagInspectorComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIRagInspectorComponent, "ngx-ai-rag-inspector", never, { "sources": { "alias": "sources"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, { "sourceClick": "sourceClick"; "sourceFeedback": "sourceFeedback"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RAGSource {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
sourceType: 'pdf' | 'docx' | 'txt' | 'csv' | 'web' | 'other';
|
|
5
|
+
score: number;
|
|
6
|
+
snippet: string;
|
|
7
|
+
metadata?: {
|
|
8
|
+
pageNumber?: number;
|
|
9
|
+
filePath?: string;
|
|
10
|
+
author?: string;
|
|
11
|
+
publishDate?: string;
|
|
12
|
+
chunkIndex?: number;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
package/ai/public-api.d.ts
CHANGED
|
@@ -7,3 +7,5 @@ export { AIAudioWaveComponent } from './ai-audio-wave/ai-audio-wave.component';
|
|
|
7
7
|
export type { AIAudioState } from './ai-audio-wave/ai-audio-wave.component';
|
|
8
8
|
export { AIModelCompareComponent } from './ai-model-compare/ai-model-compare.component';
|
|
9
9
|
export type { AIModel } from './ai-model-compare/ai-model-compare.component';
|
|
10
|
+
export { AIRagInspectorComponent } from './ai-rag-inspector/ai-rag-inspector.component';
|
|
11
|
+
export type { RAGSource } from './ai-rag-inspector/models';
|
|
@@ -12,8 +12,22 @@ export declare class ButtonComponent {
|
|
|
12
12
|
prefixIcon: import("@angular/core").InputSignal<string>;
|
|
13
13
|
suffixIcon: import("@angular/core").InputSignal<string>;
|
|
14
14
|
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
15
|
+
ripple: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
selected: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
badge: import("@angular/core").InputSignal<string | number>;
|
|
19
|
+
badgePosition: import("@angular/core").InputSignal<"top-right" | "inline">;
|
|
20
|
+
badgeVariant: import("@angular/core").InputSignal<"danger" | "success" | "warning" | "info">;
|
|
15
21
|
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
22
|
+
ripples: import("@angular/core").WritableSignal<{
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
id: number;
|
|
26
|
+
}[]>;
|
|
27
|
+
private rippleId;
|
|
16
28
|
btnClass(): string;
|
|
29
|
+
isClassIcon(icon: string): boolean;
|
|
30
|
+
onButtonClick(event: MouseEvent): void;
|
|
17
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ngx-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ngx-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgePosition": { "alias": "badgePosition"; "required": false; "isSignal": true; }; "badgeVariant": { "alias": "badgeVariant"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["[prefix]", "*", "[suffix]"], true, never>;
|
|
19
33
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface BubblePoint {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
z: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
group?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class BubbleChartComponent {
|
|
12
|
+
PAD_LEFT: number;
|
|
13
|
+
PAD_TOP: number;
|
|
14
|
+
PAD_RIGHT: number;
|
|
15
|
+
PAD_BOTTOM: number;
|
|
16
|
+
data: import("@angular/core").InputSignal<BubblePoint[]>;
|
|
17
|
+
xTitle: import("@angular/core").InputSignal<string>;
|
|
18
|
+
yTitle: import("@angular/core").InputSignal<string>;
|
|
19
|
+
zTitle: import("@angular/core").InputSignal<string>;
|
|
20
|
+
height: import("@angular/core").InputSignal<number>;
|
|
21
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
25
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
26
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
hoveredPointIndex: import("@angular/core").WritableSignal<number | null>;
|
|
29
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
label?: string;
|
|
33
|
+
group?: string;
|
|
34
|
+
xVal: number;
|
|
35
|
+
yVal: number;
|
|
36
|
+
zVal: number;
|
|
37
|
+
color: string;
|
|
38
|
+
} | null>;
|
|
39
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
40
|
+
private container;
|
|
41
|
+
innerW: import("@angular/core").Signal<number>;
|
|
42
|
+
innerH: import("@angular/core").Signal<number>;
|
|
43
|
+
uniqueGroups: import("@angular/core").Signal<string[]>;
|
|
44
|
+
groupColor(groupName?: string): string;
|
|
45
|
+
private xValues;
|
|
46
|
+
private xMin;
|
|
47
|
+
private xMax;
|
|
48
|
+
xTicks: import("@angular/core").Signal<number[]>;
|
|
49
|
+
private yValues;
|
|
50
|
+
private yMin;
|
|
51
|
+
private yMax;
|
|
52
|
+
yTicks: import("@angular/core").Signal<number[]>;
|
|
53
|
+
private zValues;
|
|
54
|
+
private zMin;
|
|
55
|
+
private zMax;
|
|
56
|
+
xPos(x: number): number;
|
|
57
|
+
yPos(y: number): number;
|
|
58
|
+
scaledPoints: import("@angular/core").Signal<{
|
|
59
|
+
cx: number;
|
|
60
|
+
cy: number;
|
|
61
|
+
r: number;
|
|
62
|
+
color: string;
|
|
63
|
+
raw: BubblePoint;
|
|
64
|
+
}[]>;
|
|
65
|
+
onPointHover(event: MouseEvent, pt: BubblePoint, index: number): void;
|
|
66
|
+
onMouseLeave(): void;
|
|
67
|
+
toggleExportMenu(event: MouseEvent): void;
|
|
68
|
+
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
69
|
+
exportToCsv(): void;
|
|
70
|
+
exportToJson(): void;
|
|
71
|
+
exportToSvg(): void;
|
|
72
|
+
readonly fmtNum: typeof fmtNum;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChartComponent, "ngx-bubble-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "xTitle": { "alias": "xTitle"; "required": false; "isSignal": true; }; "yTitle": { "alias": "yTitle"; "required": false; "isSignal": true; }; "zTitle": { "alias": "zTitle"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "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; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
75
|
+
}
|
package/charts/public-api.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export type { FunnelItem } from './funnel-chart/funnel-chart.component';
|
|
|
23
23
|
export { ComboChartComponent } from './combo-chart/combo-chart.component';
|
|
24
24
|
export { ScatterPlotComponent } from './scatter-plot/scatter-plot.component';
|
|
25
25
|
export type { ScatterPoint } from './scatter-plot/scatter-plot.component';
|
|
26
|
+
export { BubbleChartComponent } from './bubble-chart/bubble-chart.component';
|
|
27
|
+
export type { BubblePoint } from './bubble-chart/bubble-chart.component';
|
|
28
|
+
export { SunburstChartComponent } from './sunburst-chart/sunburst-chart.component';
|
|
29
|
+
export type { SunburstNode } from './sunburst-chart/sunburst-chart.component';
|
|
26
30
|
export { WaterfallChartComponent } from './waterfall-chart/waterfall-chart.component';
|
|
27
31
|
export type { WaterfallItem } from './waterfall-chart/waterfall-chart.component';
|
|
28
32
|
export { BoxPlotChartComponent } from './box-plot-chart/box-plot-chart.component';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface SunburstNode {
|
|
5
|
+
label: string;
|
|
6
|
+
value?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
children?: SunburstNode[];
|
|
9
|
+
}
|
|
10
|
+
interface SunburstSlice {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
value: number;
|
|
14
|
+
depth: number;
|
|
15
|
+
startAngle: number;
|
|
16
|
+
endAngle: number;
|
|
17
|
+
path: string;
|
|
18
|
+
color: string;
|
|
19
|
+
parentPath: string;
|
|
20
|
+
pct: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class SunburstChartComponent {
|
|
23
|
+
data: import("@angular/core").InputSignal<SunburstNode[]>;
|
|
24
|
+
height: import("@angular/core").InputSignal<number>;
|
|
25
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
28
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
29
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
hoveredSliceId: import("@angular/core").WritableSignal<string | null>;
|
|
32
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
label: string;
|
|
36
|
+
parentPath: string;
|
|
37
|
+
value: number;
|
|
38
|
+
pct: number;
|
|
39
|
+
color: string;
|
|
40
|
+
} | null>;
|
|
41
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
42
|
+
cx: import("@angular/core").Signal<number>;
|
|
43
|
+
cy: import("@angular/core").Signal<number>;
|
|
44
|
+
radius: import("@angular/core").Signal<number>;
|
|
45
|
+
topLevelNodes: import("@angular/core").Signal<SunburstNode[]>;
|
|
46
|
+
maxDepth: import("@angular/core").Signal<number>;
|
|
47
|
+
getNodeValue(node: SunburstNode): number;
|
|
48
|
+
private adjustColorBrightness;
|
|
49
|
+
private ringPath;
|
|
50
|
+
slices: import("@angular/core").Signal<SunburstSlice[]>;
|
|
51
|
+
labelTransform(slice: SunburstSlice): string;
|
|
52
|
+
onSliceHover(event: MouseEvent, slice: SunburstSlice): void;
|
|
53
|
+
onSliceLeave(): void;
|
|
54
|
+
toggleExportMenu(event: MouseEvent): void;
|
|
55
|
+
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
56
|
+
exportToCsv(): void;
|
|
57
|
+
exportToJson(): void;
|
|
58
|
+
exportToSvg(): void;
|
|
59
|
+
readonly fmtNum: typeof fmtNum;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SunburstChartComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SunburstChartComponent, "ngx-sunburst-chart", never, { "data": { "alias": "data"; "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; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
62
|
+
}
|
|
63
|
+
export {};
|