@cdevhub/ngx-chat 1.0.7 → 1.0.8
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/fesm2022/cdevhub-ngx-chat.mjs +7388 -7332
- package/fesm2022/cdevhub-ngx-chat.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cdevhub-ngx-chat.d.ts +27 -3
package/package.json
CHANGED
|
@@ -1859,6 +1859,16 @@ declare class ChatComponent {
|
|
|
1859
1859
|
readonly theme?: ChatTheme | undefined;
|
|
1860
1860
|
readonly direction?: ChatDirection | undefined;
|
|
1861
1861
|
} | undefined>;
|
|
1862
|
+
/**
|
|
1863
|
+
* Whether there are more messages to load.
|
|
1864
|
+
* When true, enables "load more" functionality at scroll top.
|
|
1865
|
+
*/
|
|
1866
|
+
readonly hasMore: _angular_core.InputSignal<boolean>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Whether more messages are currently being loaded.
|
|
1869
|
+
* Shows loading indicator and prevents duplicate load requests.
|
|
1870
|
+
*/
|
|
1871
|
+
readonly loadingMore: _angular_core.InputSignal<boolean>;
|
|
1862
1872
|
/**
|
|
1863
1873
|
* Emitted when the user sends a message.
|
|
1864
1874
|
* Parent should add the message to state and send to server.
|
|
@@ -1964,7 +1974,7 @@ declare class ChatComponent {
|
|
|
1964
1974
|
*/
|
|
1965
1975
|
onTyping(event: ChatTypingEvent): void;
|
|
1966
1976
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
1967
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatComponent, "ngx-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "isTyping": { "alias": "isTyping"; "required": false; "isSignal": true; }; "typingLabel": { "alias": "typingLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "send": "send"; "typing": "typing"; "action": "action"; "retry": "retry"; "loadMore": "loadMore"; "attachmentClick": "attachmentClick"; }, ["headerContent"], never, true, never>;
|
|
1977
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatComponent, "ngx-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "isTyping": { "alias": "isTyping"; "required": false; "isSignal": true; }; "typingLabel": { "alias": "typingLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "hasMore": { "alias": "hasMore"; "required": false; "isSignal": true; }; "loadingMore": { "alias": "loadingMore"; "required": false; "isSignal": true; }; }, { "send": "send"; "typing": "typing"; "action": "action"; "retry": "retry"; "loadMore": "loadMore"; "attachmentClick": "attachmentClick"; }, ["headerContent"], never, true, never>;
|
|
1968
1978
|
}
|
|
1969
1979
|
|
|
1970
1980
|
/**
|
|
@@ -2766,6 +2776,7 @@ declare class ChatMessageBubbleComponent {
|
|
|
2766
2776
|
*/
|
|
2767
2777
|
declare class ChatSenderComponent {
|
|
2768
2778
|
private readonly configService;
|
|
2779
|
+
private readonly attachmentService;
|
|
2769
2780
|
private readonly destroyRef;
|
|
2770
2781
|
/**
|
|
2771
2782
|
* Reference to the textarea element for auto-resize and focus management.
|
|
@@ -2927,7 +2938,11 @@ declare class ChatSenderComponent {
|
|
|
2927
2938
|
/**
|
|
2928
2939
|
* Pending attachments to be sent with the message.
|
|
2929
2940
|
*/
|
|
2930
|
-
readonly pendingAttachments: _angular_core.WritableSignal<
|
|
2941
|
+
readonly pendingAttachments: _angular_core.WritableSignal<PendingAttachment[]>;
|
|
2942
|
+
/**
|
|
2943
|
+
* Attachment validation error message.
|
|
2944
|
+
*/
|
|
2945
|
+
readonly attachmentError: _angular_core.WritableSignal<string | null>;
|
|
2931
2946
|
/**
|
|
2932
2947
|
* Whether the user is currently typing.
|
|
2933
2948
|
*/
|
|
@@ -3038,7 +3053,16 @@ declare class ChatSenderComponent {
|
|
|
3038
3053
|
/**
|
|
3039
3054
|
* Adds a pending attachment.
|
|
3040
3055
|
*/
|
|
3041
|
-
addAttachment(attachment:
|
|
3056
|
+
addAttachment(attachment: PendingAttachment): void;
|
|
3057
|
+
/**
|
|
3058
|
+
* Handles files selected from the attachment picker.
|
|
3059
|
+
* Validates each file and creates pending attachments.
|
|
3060
|
+
*/
|
|
3061
|
+
onFilesSelected(files: FileList): void;
|
|
3062
|
+
/**
|
|
3063
|
+
* Handles retry request for a failed attachment.
|
|
3064
|
+
*/
|
|
3065
|
+
onRetryAttachment(attachmentId: string): void;
|
|
3042
3066
|
/**
|
|
3043
3067
|
* Removes a pending attachment by ID.
|
|
3044
3068
|
*/
|