ngx-core-components 0.3.0 → 0.3.2
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 +35 -2
- package/charts/gantt-chart/models/gantt-config.model.d.ts +2 -0
- package/charts/gantt-chart/models/gantt-task.model.d.ts +4 -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-buttons.mjs +2 -2
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +250 -26
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-feedback.mjs +4 -4
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +52 -3
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +76 -13
- 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/grid/data-grid/data-grid.component.d.ts +2 -0
- 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 +3 -1
|
@@ -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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { GanttTask, GanttSubtask, GanttDependency, GanttConfig, GanttColumnDef, ZoomLevel, GanttGroup, GanttBaselineItem, GanttTaskChangeEvent, GanttTaskClickEvent, GanttDependencyClickEvent, GanttScrollEvent, GanttDragEvent, GanttLinkDragEvent, GanttLineClickEvent, GanttBarClickEvent, GanttSelectedEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent, GanttTableDragDroppedEvent, GanttLoadOnScrollEvent, GanttVirtualScrolledIndexChangeEvent, GanttViewChangeEvent, GanttExpandChangeEvent, GanttTooltipContext } from './models';
|
|
2
3
|
import { FlatRow } from './services/gantt-layout.service';
|
|
3
4
|
import { GanttKeyboardService } from './services/gantt-keyboard.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -8,6 +9,10 @@ export declare class GanttChartComponent {
|
|
|
8
9
|
config: import("@angular/core").InputSignal<Partial<GanttConfig>>;
|
|
9
10
|
groups: import("@angular/core").InputSignal<GanttGroup<unknown>[]>;
|
|
10
11
|
baselineItems: import("@angular/core").InputSignal<GanttBaselineItem[]>;
|
|
12
|
+
tooltipTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
13
|
+
$implicit: GanttTooltipContext;
|
|
14
|
+
}> | null>;
|
|
15
|
+
enableDragToZoom: import("@angular/core").InputSignal<boolean>;
|
|
11
16
|
taskChange: import("@angular/core").OutputEmitterRef<GanttTaskChangeEvent>;
|
|
12
17
|
taskClick: import("@angular/core").OutputEmitterRef<GanttTaskClickEvent>;
|
|
13
18
|
taskDblClick: import("@angular/core").OutputEmitterRef<GanttTaskClickEvent>;
|
|
@@ -29,6 +34,10 @@ export declare class GanttChartComponent {
|
|
|
29
34
|
tableDragStarted: import("@angular/core").OutputEmitterRef<GanttTableDragStartedEvent>;
|
|
30
35
|
tableDragEnded: import("@angular/core").OutputEmitterRef<GanttTableDragEndedEvent>;
|
|
31
36
|
tableDragDropped: import("@angular/core").OutputEmitterRef<GanttTableDragDroppedEvent>;
|
|
37
|
+
zoomRangeChange: import("@angular/core").OutputEmitterRef<{
|
|
38
|
+
start: Date;
|
|
39
|
+
end: Date;
|
|
40
|
+
}>;
|
|
32
41
|
private scaleService;
|
|
33
42
|
private layoutService;
|
|
34
43
|
keyboardService: GanttKeyboardService;
|
|
@@ -63,6 +72,25 @@ export declare class GanttChartComponent {
|
|
|
63
72
|
private linkDragSource;
|
|
64
73
|
private tableDragSourceRow;
|
|
65
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>;
|
|
66
94
|
mergedConfig: import("@angular/core").Signal<GanttConfig>;
|
|
67
95
|
themeVars: import("@angular/core").Signal<string>;
|
|
68
96
|
sidebarColumns: import("@angular/core").Signal<GanttColumnDef[]>;
|
|
@@ -133,6 +161,11 @@ export declare class GanttChartComponent {
|
|
|
133
161
|
onToggleCollapse(taskId: string): void;
|
|
134
162
|
onToggleGroupCollapse(group: GanttGroup): void;
|
|
135
163
|
onToolbarViewChange(vt: ZoomLevel): void;
|
|
164
|
+
toggleAreaZoomMode(): void;
|
|
165
|
+
resetZoom(): void;
|
|
166
|
+
private getBestZoomLevel;
|
|
167
|
+
private zoomToRange;
|
|
168
|
+
onTimelinePointerDown(event: PointerEvent): void;
|
|
136
169
|
getViewLabel(vt: ZoomLevel): string;
|
|
137
170
|
onKeyDown(event: KeyboardEvent): void;
|
|
138
171
|
scrollToToday(): void;
|
|
@@ -180,5 +213,5 @@ export declare class GanttChartComponent {
|
|
|
180
213
|
private getSecondaryLabel;
|
|
181
214
|
private getMsPerUnit;
|
|
182
215
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttChartComponent, never>;
|
|
183
|
-
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; }; }, { "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>;
|
|
184
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;
|