ngx-core-components 0.3.1 → 0.3.3
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 +31 -0
- package/ai/ai-chat/models.d.ts +36 -0
- package/ai/index.d.ts +5 -0
- package/ai/public-api.d.ts +2 -0
- package/charts/gantt-chart/gantt-chart.component.d.ts +30 -1
- package/charts/gantt-chart/models/gantt-config.model.d.ts +2 -0
- package/fesm2022/ngx-core-components-ai.mjs +496 -0
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -0
- package/fesm2022/ngx-core-components-charts.mjs +221 -7
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +72 -9
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +1 -0
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +9 -1
- package/inputs/textbox/textbox.component.d.ts +5 -1
- package/package.json +5 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AIMessage, AgentStep, AICardAction, QuickReply } from './models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AIChatComponent {
|
|
5
|
+
messages: import("@angular/core").InputSignal<AIMessage[]>;
|
|
6
|
+
agentName: import("@angular/core").InputSignal<string>;
|
|
7
|
+
agentAvatarUrl: import("@angular/core").InputSignal<string>;
|
|
8
|
+
isOnline: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
isTyping: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
showSenderNames: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
12
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
13
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
quickReplies: import("@angular/core").InputSignal<QuickReply[]>;
|
|
15
|
+
avatarBg: import("@angular/core").InputSignal<string>;
|
|
16
|
+
sendMessage: import("@angular/core").OutputEmitterRef<string>;
|
|
17
|
+
quickReplyClick: import("@angular/core").OutputEmitterRef<QuickReply>;
|
|
18
|
+
cardActionClick: import("@angular/core").OutputEmitterRef<AICardAction>;
|
|
19
|
+
clearHistory: import("@angular/core").OutputEmitterRef<void>;
|
|
20
|
+
chatBody: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
21
|
+
inputText: string;
|
|
22
|
+
constructor();
|
|
23
|
+
onSubmit(): void;
|
|
24
|
+
toggleStep(step: AgentStep): void;
|
|
25
|
+
getCompletedStepsCount(steps: AgentStep[]): number;
|
|
26
|
+
getInitials(name: string): string;
|
|
27
|
+
scrollToBottom(): void;
|
|
28
|
+
formatMessage(content: string): string;
|
|
29
|
+
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>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface AgentStep {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
status: 'running' | 'success' | 'error';
|
|
5
|
+
duration?: string;
|
|
6
|
+
input?: string;
|
|
7
|
+
output?: string;
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AICardAction {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
variant?: 'primary' | 'secondary';
|
|
14
|
+
}
|
|
15
|
+
export interface AICard {
|
|
16
|
+
title: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
imageUrl?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
actions?: AICardAction[];
|
|
21
|
+
}
|
|
22
|
+
export interface AIMessage {
|
|
23
|
+
id: string;
|
|
24
|
+
role: 'user' | 'assistant' | 'system';
|
|
25
|
+
content: string;
|
|
26
|
+
timestamp: Date;
|
|
27
|
+
senderName?: string;
|
|
28
|
+
avatarUrl?: string;
|
|
29
|
+
steps?: AgentStep[];
|
|
30
|
+
cards?: AICard[];
|
|
31
|
+
}
|
|
32
|
+
export interface QuickReply {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
}
|
package/ai/index.d.ts
ADDED
|
@@ -12,6 +12,7 @@ export declare class GanttChartComponent {
|
|
|
12
12
|
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
13
13
|
$implicit: GanttTooltipContext;
|
|
14
14
|
}> | null>;
|
|
15
|
+
enableDragToZoom: import("@angular/core").InputSignal<boolean>;
|
|
15
16
|
taskChange: import("@angular/core").OutputEmitterRef<GanttTaskChangeEvent>;
|
|
16
17
|
taskClick: import("@angular/core").OutputEmitterRef<GanttTaskClickEvent>;
|
|
17
18
|
taskDblClick: import("@angular/core").OutputEmitterRef<GanttTaskClickEvent>;
|
|
@@ -33,6 +34,10 @@ export declare class GanttChartComponent {
|
|
|
33
34
|
tableDragStarted: import("@angular/core").OutputEmitterRef<GanttTableDragStartedEvent>;
|
|
34
35
|
tableDragEnded: import("@angular/core").OutputEmitterRef<GanttTableDragEndedEvent>;
|
|
35
36
|
tableDragDropped: import("@angular/core").OutputEmitterRef<GanttTableDragDroppedEvent>;
|
|
37
|
+
zoomRangeChange: import("@angular/core").OutputEmitterRef<{
|
|
38
|
+
start: Date;
|
|
39
|
+
end: Date;
|
|
40
|
+
}>;
|
|
36
41
|
private scaleService;
|
|
37
42
|
private layoutService;
|
|
38
43
|
keyboardService: GanttKeyboardService;
|
|
@@ -67,6 +72,25 @@ export declare class GanttChartComponent {
|
|
|
67
72
|
private linkDragSource;
|
|
68
73
|
private tableDragSourceRow;
|
|
69
74
|
private virtualRange;
|
|
75
|
+
isAreaZoomMode: import("@angular/core").WritableSignal<boolean>;
|
|
76
|
+
zoomStart: import("@angular/core").WritableSignal<Date | null>;
|
|
77
|
+
zoomEnd: import("@angular/core").WritableSignal<Date | null>;
|
|
78
|
+
zoomColumnWidth: import("@angular/core").WritableSignal<number | null>;
|
|
79
|
+
internalZoomLevel: import("@angular/core").WritableSignal<ZoomLevel | null>;
|
|
80
|
+
isDraggingZoom: import("@angular/core").WritableSignal<boolean>;
|
|
81
|
+
zoomDragStart: import("@angular/core").WritableSignal<{
|
|
82
|
+
x: number;
|
|
83
|
+
y: number;
|
|
84
|
+
} | null>;
|
|
85
|
+
zoomDragCurrent: import("@angular/core").WritableSignal<{
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
} | null>;
|
|
89
|
+
isDragToZoomEnabled: import("@angular/core").Signal<boolean>;
|
|
90
|
+
isZoomed: import("@angular/core").Signal<boolean>;
|
|
91
|
+
zoomOverlayLeft: import("@angular/core").Signal<number>;
|
|
92
|
+
zoomOverlayWidth: import("@angular/core").Signal<number>;
|
|
93
|
+
zoomOverlayDateRangeText: import("@angular/core").Signal<string>;
|
|
70
94
|
mergedConfig: import("@angular/core").Signal<GanttConfig>;
|
|
71
95
|
themeVars: import("@angular/core").Signal<string>;
|
|
72
96
|
sidebarColumns: import("@angular/core").Signal<GanttColumnDef[]>;
|
|
@@ -137,6 +161,11 @@ export declare class GanttChartComponent {
|
|
|
137
161
|
onToggleCollapse(taskId: string): void;
|
|
138
162
|
onToggleGroupCollapse(group: GanttGroup): void;
|
|
139
163
|
onToolbarViewChange(vt: ZoomLevel): void;
|
|
164
|
+
toggleAreaZoomMode(): void;
|
|
165
|
+
resetZoom(): void;
|
|
166
|
+
private getBestZoomLevel;
|
|
167
|
+
private zoomToRange;
|
|
168
|
+
onTimelinePointerDown(event: PointerEvent): void;
|
|
140
169
|
getViewLabel(vt: ZoomLevel): string;
|
|
141
170
|
onKeyDown(event: KeyboardEvent): void;
|
|
142
171
|
scrollToToday(): void;
|
|
@@ -184,5 +213,5 @@ export declare class GanttChartComponent {
|
|
|
184
213
|
private getSecondaryLabel;
|
|
185
214
|
private getMsPerUnit;
|
|
186
215
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttChartComponent, never>;
|
|
187
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GanttChartComponent, "ngx-gantt-chart", never, { "tasks": { "alias": "tasks"; "required": true; "isSignal": true; }; "dependencies": { "alias": "dependencies"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "baselineItems": { "alias": "baselineItems"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "taskChange": "taskChange"; "taskClick": "taskClick"; "taskDblClick": "taskDblClick"; "dependencyClick": "dependencyClick"; "scroll": "scroll"; "zoomChange": "zoomChange"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "barClick": "barClick"; "selectedChange": "selectedChange"; "viewChange": "viewChange"; "expandChange": "expandChange"; "loadOnScroll": "loadOnScroll"; "virtualScrolledIndexChange": "virtualScrolledIndexChange"; "tableDragStarted": "tableDragStarted"; "tableDragEnded": "tableDragEnded"; "tableDragDropped": "tableDragDropped"; }, never, never, true, never>;
|
|
216
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttChartComponent, "ngx-gantt-chart", never, { "tasks": { "alias": "tasks"; "required": true; "isSignal": true; }; "dependencies": { "alias": "dependencies"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "baselineItems": { "alias": "baselineItems"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; "enableDragToZoom": { "alias": "enableDragToZoom"; "required": false; "isSignal": true; }; }, { "taskChange": "taskChange"; "taskClick": "taskClick"; "taskDblClick": "taskDblClick"; "dependencyClick": "dependencyClick"; "scroll": "scroll"; "zoomChange": "zoomChange"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "linkDragStarted": "linkDragStarted"; "linkDragEnded": "linkDragEnded"; "lineClick": "lineClick"; "barClick": "barClick"; "selectedChange": "selectedChange"; "viewChange": "viewChange"; "expandChange": "expandChange"; "loadOnScroll": "loadOnScroll"; "virtualScrolledIndexChange": "virtualScrolledIndexChange"; "tableDragStarted": "tableDragStarted"; "tableDragEnded": "tableDragEnded"; "tableDragDropped": "tableDragDropped"; "zoomRangeChange": "zoomRangeChange"; }, never, never, true, never>;
|
|
188
217
|
}
|
|
@@ -98,5 +98,7 @@ export interface GanttConfig {
|
|
|
98
98
|
enableAlternateRowColor: boolean;
|
|
99
99
|
/** Enable alternate column colors for better column distinction */
|
|
100
100
|
enableAlternateColumnColor: boolean;
|
|
101
|
+
/** Enable drag to select area zoom feature */
|
|
102
|
+
enableDragToZoom: boolean;
|
|
101
103
|
}
|
|
102
104
|
export declare const DEFAULT_GANTT_CONFIG: GanttConfig;
|