@progress/kendo-angular-conversational-ui 21.0.0-develop.8 → 21.0.0-develop.9
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/chat/api/files-layout.d.ts +12 -0
- package/chat/api/index.d.ts +3 -1
- package/chat/api/message-settings.interface.d.ts +33 -0
- package/chat/api/message.interface.d.ts +5 -1
- package/chat/api/suggestions-layout.d.ts +20 -0
- package/chat/chat.component.d.ts +92 -34
- package/chat/chat.directives.d.ts +18 -0
- package/chat/chat.module.d.ts +15 -8
- package/chat/common/chat.service.d.ts +32 -3
- package/chat/common/models/model-fields.d.ts +0 -6
- package/chat/common/scroll-button.component.d.ts +32 -0
- package/chat/common/scroll.service.d.ts +39 -0
- package/chat/common/utils.d.ts +13 -1
- package/chat/l10n/messages.d.ts +9 -1
- package/chat/message-list.component.d.ts +20 -3
- package/chat/message.component.d.ts +40 -16
- package/chat/suggested-actions.component.d.ts +30 -5
- package/chat/templates/author-message-content-template.directive.d.ts +28 -0
- package/chat/templates/author-message-template.directive.d.ts +28 -0
- package/chat/templates/message-content-template.directive.d.ts +28 -0
- package/chat/templates/message-template.directive.d.ts +1 -1
- package/chat/templates/no-data-template.directive.d.ts +27 -0
- package/chat/templates/receiver-message-content-template.directive.d.ts +28 -0
- package/chat/templates/receiver-message-template.directive.d.ts +28 -0
- package/chat/templates/user-status-template.directive.d.ts +27 -0
- package/conversational-ui.module.d.ts +18 -11
- package/directives.d.ts +9 -2
- package/esm2022/chat/api/index.mjs +3 -1
- package/{chat/api/message-toolbar-visibility.d.ts → esm2022/chat/api/message-settings.interface.mjs} +1 -4
- package/esm2022/chat/api/suggestions-layout.mjs +5 -0
- package/esm2022/chat/builtin-actions.mjs +2 -0
- package/esm2022/chat/chat-file.component.mjs +2 -2
- package/esm2022/chat/chat.component.mjs +265 -71
- package/esm2022/chat/chat.directives.mjs +18 -0
- package/esm2022/chat/chat.module.mjs +16 -9
- package/esm2022/chat/common/chat.service.mjs +83 -4
- package/esm2022/chat/common/models/default-model-fields.mjs +0 -1
- package/esm2022/chat/common/scroll-button.component.mjs +81 -0
- package/esm2022/chat/common/scroll.service.mjs +110 -0
- package/esm2022/chat/common/utils.mjs +22 -3
- package/esm2022/chat/l10n/messages.mjs +13 -1
- package/esm2022/chat/message-attachments.component.mjs +2 -2
- package/esm2022/chat/message-box.component.mjs +5 -2
- package/esm2022/chat/message-list.component.mjs +165 -19
- package/esm2022/chat/message.component.mjs +487 -326
- package/esm2022/chat/suggested-actions.component.mjs +298 -80
- package/esm2022/chat/templates/author-message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/author-message-template.directive.mjs +39 -0
- package/esm2022/chat/templates/message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/message-template.directive.mjs +1 -1
- package/esm2022/chat/templates/no-data-template.directive.mjs +38 -0
- package/esm2022/chat/templates/receiver-message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/receiver-message-template.directive.mjs +39 -0
- package/esm2022/chat/templates/user-status-template.directive.mjs +38 -0
- package/esm2022/conversational-ui.module.mjs +19 -12
- package/esm2022/directives.mjs +15 -1
- package/esm2022/index.mjs +7 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +1771 -547
- package/index.d.ts +7 -0
- package/package.json +14 -14
- /package/esm2022/chat/api/{message-toolbar-visibility.mjs → files-layout.mjs} +0 -0
package/chat/common/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Message, SendButtonSettings, MessageAction, FileAction } from "../api";
|
|
5
|
+
import { Message, SendButtonSettings, MessageAction, FileAction, SuggestionsLayoutMode } from "../api";
|
|
6
6
|
import { ConversationalUIModelFields } from "./models/model-fields";
|
|
7
7
|
import { FileSelectSettings } from '@progress/kendo-angular-upload';
|
|
8
8
|
import { SpeechToTextButtonSettings } from "@progress/kendo-angular-buttons";
|
|
@@ -40,6 +40,14 @@ export declare const SEND_BTN_DEFAULT_SETTINGS: SendButtonSettings;
|
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
42
42
|
export declare const FILESELECT_DEFAULT_SETTINGS: FileSelectSettings;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
export declare const SUGGESTIONS_LAYOUT_DEFAULT_SETTINGS: SuggestionsLayoutMode;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
export type ScrollButtonType = 'prev' | 'next';
|
|
43
51
|
/**
|
|
44
52
|
* @hidden
|
|
45
53
|
*/
|
|
@@ -56,3 +64,7 @@ export declare const processMessages: (messages: any[], fields?: ConversationalU
|
|
|
56
64
|
* @hidden
|
|
57
65
|
*/
|
|
58
66
|
export declare const parseMessage: (message: any, fields?: ConversationalUIModelFields) => Message;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
export declare const transformActions: (actions: MessageAction[]) => any[];
|
package/chat/l10n/messages.d.ts
CHANGED
|
@@ -73,6 +73,14 @@ export declare class Messages extends ComponentMessages {
|
|
|
73
73
|
* Sets the title of the DropDownButton that opens the File actions.
|
|
74
74
|
*/
|
|
75
75
|
fileActionsTitle: string;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the title of the button that shows the **Scroll right** when the suggestions list is scrollable with buttons.
|
|
78
|
+
*/
|
|
79
|
+
nextSuggestionsButtonTitle: string;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the title of the button that shows the **Scroll left** when the suggestions list is scrollable with buttons.
|
|
82
|
+
*/
|
|
83
|
+
previousSuggestionsButtonTitle: string;
|
|
76
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
77
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendoConversationalUIMessages", never, { "deletedMessageSenderText": { "alias": "deletedMessageSenderText"; "required": false; }; "deletedMessageReceiverText": { "alias": "deletedMessageReceiverText"; "required": false; }; "downloadAllFilesText": { "alias": "downloadAllFilesText"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "send": { "alias": "send"; "required": false; }; "messageListLabel": { "alias": "messageListLabel"; "required": false; }; "messageBoxInputLabel": { "alias": "messageBoxInputLabel"; "required": false; }; "messageAttachmentLeftArrow": { "alias": "messageAttachmentLeftArrow"; "required": false; }; "messageAttachmentRightArrow": { "alias": "messageAttachmentRightArrow"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "removeReplyTitle": { "alias": "removeReplyTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "expandTitle": { "alias": "expandTitle"; "required": false; }; "collapseTitle": { "alias": "collapseTitle"; "required": false; }; "fileActionsTitle": { "alias": "fileActionsTitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
85
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendoConversationalUIMessages", never, { "deletedMessageSenderText": { "alias": "deletedMessageSenderText"; "required": false; }; "deletedMessageReceiverText": { "alias": "deletedMessageReceiverText"; "required": false; }; "downloadAllFilesText": { "alias": "downloadAllFilesText"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "send": { "alias": "send"; "required": false; }; "messageListLabel": { "alias": "messageListLabel"; "required": false; }; "messageBoxInputLabel": { "alias": "messageBoxInputLabel"; "required": false; }; "messageAttachmentLeftArrow": { "alias": "messageAttachmentLeftArrow"; "required": false; }; "messageAttachmentRightArrow": { "alias": "messageAttachmentRightArrow"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "removeReplyTitle": { "alias": "removeReplyTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "expandTitle": { "alias": "expandTitle"; "required": false; }; "collapseTitle": { "alias": "collapseTitle"; "required": false; }; "fileActionsTitle": { "alias": "fileActionsTitle"; "required": false; }; "nextSuggestionsButtonTitle": { "alias": "nextSuggestionsButtonTitle"; "required": false; }; "previousSuggestionsButtonTitle": { "alias": "previousSuggestionsButtonTitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
78
86
|
}
|
|
@@ -9,10 +9,16 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
9
9
|
import { ChatItem } from './chat-item';
|
|
10
10
|
import { ViewItem } from './chat-view';
|
|
11
11
|
import { AttachmentTemplateDirective } from './templates/attachment-template.directive';
|
|
12
|
-
import {
|
|
12
|
+
import { MessageContentTemplateDirective } from './templates/message-content-template.directive';
|
|
13
13
|
import { ChatTimestampTemplateDirective } from './templates/timestamp-template.directive';
|
|
14
14
|
import { ChatService } from './common/chat.service';
|
|
15
15
|
import { ChatStatusTemplateDirective } from './templates/status-template.directive';
|
|
16
|
+
import { ChatUserStatusTemplateDirective } from './templates/user-status-template.directive';
|
|
17
|
+
import { MessageTemplateDirective } from './templates/message-template.directive';
|
|
18
|
+
import { AuthorMessageContentTemplateDirective } from './templates/author-message-content-template.directive';
|
|
19
|
+
import { ReceiverMessageContentTemplateDirective } from './templates/receiver-message-content-template.directive';
|
|
20
|
+
import { AuthorMessageTemplateDirective } from './templates/author-message-template.directive';
|
|
21
|
+
import { ReceiverMessageTemplateDirective } from './templates/receiver-message-template.directive';
|
|
16
22
|
import * as i0 from "@angular/core";
|
|
17
23
|
/**
|
|
18
24
|
* @hidden
|
|
@@ -26,9 +32,15 @@ export declare class MessageListComponent implements OnInit, AfterViewInit, OnDe
|
|
|
26
32
|
set messages(value: Message[]);
|
|
27
33
|
get messages(): Message[];
|
|
28
34
|
attachmentTemplate: AttachmentTemplateDirective;
|
|
35
|
+
authorMessageContentTemplate: AuthorMessageContentTemplateDirective;
|
|
36
|
+
receiverMessageContentTemplate: ReceiverMessageContentTemplateDirective;
|
|
37
|
+
messageContentTemplate: MessageContentTemplateDirective;
|
|
38
|
+
authorMessageTemplate: AuthorMessageTemplateDirective;
|
|
39
|
+
receiverMessageTemplate: ReceiverMessageTemplateDirective;
|
|
29
40
|
messageTemplate: MessageTemplateDirective;
|
|
30
41
|
timestampTemplate: ChatTimestampTemplateDirective;
|
|
31
42
|
statusTemplate: ChatStatusTemplateDirective;
|
|
43
|
+
userStatusTemplate: ChatUserStatusTemplateDirective;
|
|
32
44
|
localization: LocalizationService;
|
|
33
45
|
authorId: string | number;
|
|
34
46
|
executeAction: EventEmitter<ExecuteActionEvent>;
|
|
@@ -47,7 +59,9 @@ export declare class MessageListComponent implements OnInit, AfterViewInit, OnDe
|
|
|
47
59
|
ngOnDestroy(): void;
|
|
48
60
|
onResize(): void;
|
|
49
61
|
onClick(message: any, event: any): void;
|
|
62
|
+
onContextMenuClick(message: Message, event: MouseEvent, messageElement?: any): void;
|
|
50
63
|
formatTimeStamp(date: any): string;
|
|
64
|
+
calculateMessageWidthMode(message: any): boolean;
|
|
51
65
|
onKeydown(e: any): void;
|
|
52
66
|
onBlur(args: any): void;
|
|
53
67
|
isOwnMessage(msg: Message): boolean;
|
|
@@ -56,11 +70,14 @@ export declare class MessageListComponent implements OnInit, AfterViewInit, OnDe
|
|
|
56
70
|
select(item: ChatItem, event?: Event): void;
|
|
57
71
|
last(items: any): any;
|
|
58
72
|
handleMenuClose(state: boolean): void;
|
|
73
|
+
textFor(key: string): string;
|
|
59
74
|
private onHomeOrEndKeyDown;
|
|
60
75
|
private onTabKeyDown;
|
|
61
76
|
private navigateTo;
|
|
62
77
|
private scrollToAndSelectMessage;
|
|
63
|
-
|
|
78
|
+
private openContextMenu;
|
|
79
|
+
private findMessageComponentFromActiveElement;
|
|
80
|
+
private findMessageComponentFromEvent;
|
|
64
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "kendo-chat-message-list", never, { "messages": { "alias": "messages"; "required": false; }; "attachmentTemplate": { "alias": "attachmentTemplate"; "required": false; }; "messageTemplate": { "alias": "messageTemplate"; "required": false; }; "timestampTemplate": { "alias": "timestampTemplate"; "required": false; }; "statusTemplate": { "alias": "statusTemplate"; "required": false; }; "localization": { "alias": "localization"; "required": false; }; "authorId": { "alias": "authorId"; "required": false; }; }, { "executeAction": "executeAction"; "navigate": "navigate"; "resize": "resize"; }, never, never, true, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "kendo-chat-message-list", never, { "messages": { "alias": "messages"; "required": false; }; "attachmentTemplate": { "alias": "attachmentTemplate"; "required": false; }; "authorMessageContentTemplate": { "alias": "authorMessageContentTemplate"; "required": false; }; "receiverMessageContentTemplate": { "alias": "receiverMessageContentTemplate"; "required": false; }; "messageContentTemplate": { "alias": "messageContentTemplate"; "required": false; }; "authorMessageTemplate": { "alias": "authorMessageTemplate"; "required": false; }; "receiverMessageTemplate": { "alias": "receiverMessageTemplate"; "required": false; }; "messageTemplate": { "alias": "messageTemplate"; "required": false; }; "timestampTemplate": { "alias": "timestampTemplate"; "required": false; }; "statusTemplate": { "alias": "statusTemplate"; "required": false; }; "userStatusTemplate": { "alias": "userStatusTemplate"; "required": false; }; "localization": { "alias": "localization"; "required": false; }; "authorId": { "alias": "authorId"; "required": false; }; }, { "executeAction": "executeAction"; "navigate": "navigate"; "resize": "resize"; }, never, never, true, never>;
|
|
66
83
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import {
|
|
5
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
6
6
|
import { Message } from './api/message.interface';
|
|
7
7
|
import { ChatItem } from './chat-item';
|
|
8
|
-
import {
|
|
8
|
+
import { MessageContentTemplateDirective } from './templates/message-content-template.directive';
|
|
9
9
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
10
10
|
import { ChatFile } from './api/chat-file-interface';
|
|
11
11
|
import { ContextMenuPopupEvent } from '@progress/kendo-angular-menu';
|
|
@@ -15,59 +15,83 @@ import { MessageAction } from './api';
|
|
|
15
15
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
16
16
|
import { ChatStatusTemplateDirective } from './templates/status-template.directive';
|
|
17
17
|
import { FormattedTextPart } from './common/models/formatted-text-parts';
|
|
18
|
+
import { MessageTemplateDirective } from './templates/message-template.directive';
|
|
19
|
+
import { AuthorMessageContentTemplateDirective } from './templates/author-message-content-template.directive';
|
|
20
|
+
import { ReceiverMessageContentTemplateDirective } from './templates/receiver-message-content-template.directive';
|
|
21
|
+
import { ReceiverMessageTemplateDirective } from './templates/receiver-message-template.directive';
|
|
22
|
+
import { AuthorMessageTemplateDirective } from './templates/author-message-template.directive';
|
|
18
23
|
import * as i0 from "@angular/core";
|
|
19
24
|
/**
|
|
20
25
|
* @hidden
|
|
21
26
|
*/
|
|
22
|
-
export declare class MessageComponent extends ChatItem implements OnDestroy {
|
|
27
|
+
export declare class MessageComponent extends ChatItem implements OnInit, OnDestroy {
|
|
23
28
|
element: ElementRef;
|
|
24
29
|
private intl;
|
|
25
30
|
chatService: ChatService;
|
|
26
31
|
private localization;
|
|
27
|
-
|
|
32
|
+
private cdr;
|
|
33
|
+
set message(value: Message);
|
|
34
|
+
get message(): Message;
|
|
28
35
|
tabbable: boolean;
|
|
29
|
-
|
|
36
|
+
authorMessageContentTemplate: AuthorMessageContentTemplateDirective;
|
|
37
|
+
receiverMessageContentTemplate: ReceiverMessageContentTemplateDirective;
|
|
38
|
+
messageContentTemplate: MessageContentTemplateDirective;
|
|
39
|
+
authorMessageTemplate: AuthorMessageTemplateDirective;
|
|
40
|
+
receiverMessageTemplate: ReceiverMessageTemplateDirective;
|
|
41
|
+
messageTemplate: MessageTemplateDirective;
|
|
30
42
|
statusTemplate: ChatStatusTemplateDirective;
|
|
31
43
|
showMessageTime: boolean;
|
|
32
44
|
authorId: string | number;
|
|
33
|
-
contextMenuVisibilityChange: EventEmitter<boolean>;
|
|
34
45
|
cssClass: boolean;
|
|
35
46
|
get removedClass(): boolean;
|
|
36
47
|
onKeyDown(event: KeyboardEvent): void;
|
|
37
48
|
selected: boolean;
|
|
38
|
-
active: boolean;
|
|
39
|
-
selectOnMenuClose: boolean;
|
|
40
49
|
get tabIndex(): string;
|
|
41
|
-
onContextMenu(event: MouseEvent): void;
|
|
42
50
|
expandIcon: SVGIcon;
|
|
43
51
|
collapseIcon: SVGIcon;
|
|
44
52
|
downloadIcon: SVGIcon;
|
|
45
53
|
isMessageExpanded: boolean;
|
|
46
|
-
|
|
54
|
+
showExpandCollapseIcon: boolean;
|
|
47
55
|
fileActions: any;
|
|
56
|
+
toolbarActions: MessageAction[];
|
|
48
57
|
parts: FormattedTextPart[];
|
|
49
|
-
|
|
58
|
+
get useCustomBubbleTemplate(): boolean;
|
|
59
|
+
get useCustomContentTemplate(): boolean;
|
|
60
|
+
get hasMessageContent(): boolean;
|
|
61
|
+
get hasFiles(): boolean;
|
|
62
|
+
get hasMultipleFiles(): boolean;
|
|
63
|
+
get isActiveMessage(): boolean;
|
|
64
|
+
get isMessageExpandable(): boolean;
|
|
65
|
+
get showToolbar(): boolean;
|
|
66
|
+
private subs;
|
|
67
|
+
private _message;
|
|
68
|
+
constructor(element: ElementRef, intl: IntlService, chatService: ChatService, localization: LocalizationService, cdr: ChangeDetectorRef);
|
|
50
69
|
ngOnInit(): void;
|
|
70
|
+
ngAfterViewInit(): void;
|
|
51
71
|
ngOnDestroy(): void;
|
|
72
|
+
calculateExpandCollapseIconVisibility(): boolean;
|
|
73
|
+
getActiveBubbleTemplate(): MessageTemplateDirective | AuthorMessageTemplateDirective | ReceiverMessageTemplateDirective | null;
|
|
74
|
+
getActiveContentTemplate(): MessageContentTemplateDirective | AuthorMessageContentTemplateDirective | ReceiverMessageContentTemplateDirective | null;
|
|
75
|
+
getDeletedMessageText(): string;
|
|
52
76
|
textFor(key: string): string;
|
|
53
77
|
formatTimeStamp(date: any): string;
|
|
54
78
|
focus(): void;
|
|
55
79
|
onDownloadAll(): void;
|
|
56
80
|
toggleMessageState(event: Event): void;
|
|
57
81
|
onExpandableKeydown(event: KeyboardEvent): void;
|
|
58
|
-
isToolbarVisible(): boolean;
|
|
59
82
|
onToolbarAction(event: Event, action: MessageAction, message: Message): void;
|
|
60
|
-
onContextMenuAction(action: MessageAction): void;
|
|
61
83
|
onFileAction(action: any, file: ChatFile): void;
|
|
62
|
-
private transformActions;
|
|
63
84
|
getMessageById(id: string | number): Message | undefined;
|
|
64
|
-
private getFormattedTextParts;
|
|
65
85
|
onReplyReferenceClick(event: Event, replyToId: string | number): void;
|
|
66
86
|
handleMenuClose(event?: ContextMenuPopupEvent): void;
|
|
67
87
|
onActionButtonClick(event: MouseEvent): void;
|
|
68
88
|
handleMenuOpen(): void;
|
|
69
89
|
onActionPopupChange(expanded: boolean): void;
|
|
70
90
|
isOwnMessage(msg: Message): boolean;
|
|
91
|
+
private getFormattedTextParts;
|
|
92
|
+
private getMessageSettings;
|
|
93
|
+
private getToolbarActions;
|
|
94
|
+
private getFileActions;
|
|
71
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "kendo-chat-message", never, { "message": { "alias": "message"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "kendo-chat-message", never, { "message": { "alias": "message"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "authorMessageContentTemplate": { "alias": "authorMessageContentTemplate"; "required": false; }; "receiverMessageContentTemplate": { "alias": "receiverMessageContentTemplate"; "required": false; }; "messageContentTemplate": { "alias": "messageContentTemplate"; "required": false; }; "authorMessageTemplate": { "alias": "authorMessageTemplate"; "required": false; }; "receiverMessageTemplate": { "alias": "receiverMessageTemplate"; "required": false; }; "messageTemplate": { "alias": "messageTemplate"; "required": false; }; "statusTemplate": { "alias": "statusTemplate"; "required": false; }; "showMessageTime": { "alias": "showMessageTime"; "required": false; }; "authorId": { "alias": "authorId"; "required": false; }; }, {}, never, never, true, never>;
|
|
73
97
|
}
|
|
@@ -2,30 +2,51 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, EventEmitter, QueryList } from '@angular/core';
|
|
5
|
+
import { ElementRef, EventEmitter, QueryList, AfterViewInit, OnDestroy, NgZone, Renderer2 } from '@angular/core';
|
|
6
6
|
import { Action } from './api/action.interface';
|
|
7
7
|
import { ChatItem } from './chat-item';
|
|
8
8
|
import { ChatSuggestion } from './api/chat-suggestion.interface';
|
|
9
9
|
import { ChatSuggestionTemplateDirective } from './templates/suggestion-template.directive';
|
|
10
|
+
import { ChatService } from './common/chat.service';
|
|
11
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { SuggestionsScrollService } from './common/scroll.service';
|
|
13
|
+
import { ScrollButtonType } from './common/utils';
|
|
10
14
|
import * as i0 from "@angular/core";
|
|
11
15
|
/**
|
|
12
16
|
* @hidden
|
|
13
17
|
*/
|
|
14
|
-
export declare class SuggestedActionsComponent extends ChatItem {
|
|
18
|
+
export declare class SuggestedActionsComponent extends ChatItem implements AfterViewInit, OnDestroy {
|
|
19
|
+
private chatService;
|
|
20
|
+
private localization;
|
|
21
|
+
private scrollService;
|
|
22
|
+
private ngZone;
|
|
23
|
+
private renderer;
|
|
24
|
+
get defaultClass(): boolean;
|
|
25
|
+
get scrollableClass(): boolean;
|
|
26
|
+
get scrollButtonsClass(): boolean;
|
|
27
|
+
get role(): string;
|
|
15
28
|
actions: Action[];
|
|
16
29
|
suggestions: ChatSuggestion[];
|
|
17
30
|
tabbable: boolean;
|
|
31
|
+
type: 'action' | 'suggestion';
|
|
18
32
|
suggestionTemplate: ChatSuggestionTemplateDirective;
|
|
19
33
|
dispatchAction: EventEmitter<Action>;
|
|
20
34
|
dispatchSuggestion: EventEmitter<ChatSuggestion>;
|
|
21
|
-
defaultClass: boolean;
|
|
22
|
-
role: string;
|
|
23
35
|
items: QueryList<ElementRef>;
|
|
36
|
+
suggestionsContainer: ElementRef;
|
|
37
|
+
prevScrollButton: ElementRef;
|
|
38
|
+
nextScrollButton: ElementRef;
|
|
24
39
|
selectedIndex: number;
|
|
25
40
|
activeIndex: number;
|
|
26
41
|
active: boolean;
|
|
42
|
+
get hasScrollButtons(): boolean;
|
|
43
|
+
private subscriptions;
|
|
44
|
+
private resizeObserver;
|
|
27
45
|
private actionKeyHandlers;
|
|
28
46
|
private suggestionKeyHandlers;
|
|
47
|
+
constructor(chatService: ChatService, localization: LocalizationService, scrollService: SuggestionsScrollService, ngZone: NgZone, renderer: Renderer2);
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
29
50
|
isSelected(index: number): boolean;
|
|
30
51
|
isActive(index: number): boolean;
|
|
31
52
|
actionClick(action: Action, index?: number): void;
|
|
@@ -33,8 +54,12 @@ export declare class SuggestedActionsComponent extends ChatItem {
|
|
|
33
54
|
toggleActiveState(apply: boolean, index: number): void;
|
|
34
55
|
actionKeydown(e: any, action: Action): void;
|
|
35
56
|
suggestionKeydown(e: any, suggestion: ChatSuggestion): void;
|
|
57
|
+
getScrollButtonTitle(direction: string): string;
|
|
58
|
+
onScroll(event: Event): void;
|
|
59
|
+
scrollSuggestions(direction: ScrollButtonType): void;
|
|
36
60
|
focus(): void;
|
|
61
|
+
private toggleScrollButtonState;
|
|
37
62
|
private changeSelectedIndex;
|
|
38
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestedActionsComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestedActionsComponent, "kendo-chat-suggested-actions", never, { "actions": { "alias": "actions"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "suggestionTemplate": { "alias": "suggestionTemplate"; "required": false; }; }, { "dispatchAction": "dispatchAction"; "dispatchSuggestion": "dispatchSuggestion"; }, never, never, true, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestedActionsComponent, "kendo-chat-suggested-actions", never, { "actions": { "alias": "actions"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "type": { "alias": "type"; "required": false; }; "suggestionTemplate": { "alias": "suggestionTemplate"; "required": false; }; }, { "dispatchAction": "dispatchAction"; "dispatchSuggestion": "dispatchSuggestion"; }, never, never, true, never>;
|
|
40
65
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying custom content inside the current user's messages in the Chat.
|
|
9
|
+
*
|
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatAuthorMessageContentTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* The template context is set to the `message` instance.
|
|
12
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chat>
|
|
17
|
+
* <ng-template kendoChatAuthorMessageContentTemplate let-message>
|
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-chat>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class AuthorMessageContentTemplateDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
constructor(templateRef: TemplateRef<any>);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorMessageContentTemplateDirective, [{ optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AuthorMessageContentTemplateDirective, "[kendoChatAuthorMessageContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying fully custom Chat message bubbles for the current user.
|
|
9
|
+
*
|
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatAuthorMessageTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* The template context is set to the `message` instance.
|
|
12
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chat>
|
|
17
|
+
* <ng-template kendoChatAuthorMessageTemplate let-message>
|
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-chat>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class AuthorMessageTemplateDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
constructor(templateRef: TemplateRef<any>);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorMessageTemplateDirective, [{ optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AuthorMessageTemplateDirective, "[kendoChatAuthorMessageTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying custom content inside the Chat messages.
|
|
9
|
+
*
|
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatMessageContentTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* The template context is set to the `message` instance.
|
|
12
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chat>
|
|
17
|
+
* <ng-template kendoChatMessageContentTemplate let-message>
|
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-chat>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class MessageContentTemplateDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
constructor(templateRef: TemplateRef<any>);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageContentTemplateDirective, [{ optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MessageContentTemplateDirective, "[kendoChatMessageContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TemplateRef } from "@angular/core";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Defines a template for displaying Chat
|
|
8
|
+
* Defines a template for displaying fully custom Chat message bubbles.
|
|
9
9
|
*
|
|
10
10
|
* To define a message template, nest an `<ng-template>` tag with the `kendoChatMessageTemplate` directive inside the `<kendo-chat>` component.
|
|
11
11
|
* The template context is set to the `message` instance.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying custom content when there are no messages in the Chat.
|
|
9
|
+
*
|
|
10
|
+
* To define an empty Chat template, nest an `<ng-template>` tag with the `kendoChatNoDataTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-chat>
|
|
16
|
+
* <ng-template kendoChatNoDataTemplate>
|
|
17
|
+
* <div>No messages.</div>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-chat>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class NoDataTemplateDirective {
|
|
23
|
+
templateRef: TemplateRef<any>;
|
|
24
|
+
constructor(templateRef: TemplateRef<any>);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoDataTemplateDirective, [{ optional: true; }]>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataTemplateDirective, "[kendoChatNoDataTemplate]", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying custom content inside the other users' messages in the Chat.
|
|
9
|
+
*
|
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatReceiverMessageContentTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* The template context is set to the `message` instance.
|
|
12
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chat>
|
|
17
|
+
* <ng-template kendoChatReceiverMessageContentTemplate let-message>
|
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-chat>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class ReceiverMessageContentTemplateDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
constructor(templateRef: TemplateRef<any>);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReceiverMessageContentTemplateDirective, [{ optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReceiverMessageContentTemplateDirective, "[kendoChatReceiverMessageContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying fully custom Chat message bubbles for the other users.
|
|
9
|
+
*
|
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatReceiverMessageTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* The template context is set to the `message` instance.
|
|
12
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chat>
|
|
17
|
+
* <ng-template kendoChatReceiverMessageTemplate let-message>
|
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
|
19
|
+
* </ng-template>
|
|
20
|
+
* </kendo-chat>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class ReceiverMessageTemplateDirective {
|
|
24
|
+
templateRef: TemplateRef<any>;
|
|
25
|
+
constructor(templateRef: TemplateRef<any>);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReceiverMessageTemplateDirective, [{ optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReceiverMessageTemplateDirective, "[kendoChatReceiverMessageTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a template for displaying user status in the Chat.
|
|
9
|
+
*
|
|
10
|
+
* To define a user status template, nest an `<ng-template>` tag with the `kendoChatUserStatusTemplate` directive inside the `<kendo-chat>` component.
|
|
11
|
+
* For more information, refer to the article on [message templates](slug:message_templates_chat).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-chat>
|
|
16
|
+
* <ng-template kendoChatUserStatusTemplate let-status>
|
|
17
|
+
* <div>{{ status }}</div>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-chat>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class ChatUserStatusTemplateDirective {
|
|
23
|
+
templateRef: TemplateRef<any>;
|
|
24
|
+
constructor(templateRef: TemplateRef<any>);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatUserStatusTemplateDirective, [{ optional: true; }]>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChatUserStatusTemplateDirective, "[kendoChatUserStatusTemplate]", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -16,16 +16,23 @@ import * as i10 from "./ai-prompt/templates/aiprompt-output-body-template.direct
|
|
|
16
16
|
import * as i11 from "./chat/chat.component";
|
|
17
17
|
import * as i12 from "./chat/l10n/custom-messages.component";
|
|
18
18
|
import * as i13 from "./chat/templates/attachment-template.directive";
|
|
19
|
-
import * as i14 from "./chat/templates/message-template.directive";
|
|
20
|
-
import * as i15 from "./chat/
|
|
21
|
-
import * as i16 from "./chat/templates/message-
|
|
22
|
-
import * as i17 from "./chat/templates/
|
|
23
|
-
import * as i18 from "./chat/templates/
|
|
24
|
-
import * as i19 from "./chat/templates/
|
|
25
|
-
import * as i20 from "./chat/
|
|
26
|
-
import * as i21 from "./
|
|
27
|
-
import * as i22 from "./
|
|
28
|
-
import * as i23 from "./
|
|
19
|
+
import * as i14 from "./chat/templates/author-message-content-template.directive";
|
|
20
|
+
import * as i15 from "./chat/templates/receiver-message-content-template.directive";
|
|
21
|
+
import * as i16 from "./chat/templates/message-content-template.directive";
|
|
22
|
+
import * as i17 from "./chat/templates/author-message-template.directive";
|
|
23
|
+
import * as i18 from "./chat/templates/receiver-message-template.directive";
|
|
24
|
+
import * as i19 from "./chat/templates/message-template.directive";
|
|
25
|
+
import * as i20 from "./chat/cards/hero-card.component";
|
|
26
|
+
import * as i21 from "./chat/templates/message-box.directive";
|
|
27
|
+
import * as i22 from "./chat/templates/header-template.directive";
|
|
28
|
+
import * as i23 from "./chat/templates/no-data-template.directive";
|
|
29
|
+
import * as i24 from "./chat/templates/timestamp-template.directive";
|
|
30
|
+
import * as i25 from "./chat/templates/status-template.directive";
|
|
31
|
+
import * as i26 from "./chat/templates/suggestion-template.directive";
|
|
32
|
+
import * as i27 from "./chat/templates/user-status-template.directive";
|
|
33
|
+
import * as i28 from "./inline-ai-prompt/inlineaiprompt.component";
|
|
34
|
+
import * as i29 from "./inline-ai-prompt/output-template.directive";
|
|
35
|
+
import * as i30 from "./inline-ai-prompt/localization/custom-messages.component";
|
|
29
36
|
/**
|
|
30
37
|
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Conversational UI components.
|
|
31
38
|
*
|
|
@@ -46,6 +53,6 @@ import * as i23 from "./inline-ai-prompt/localization/custom-messages.component"
|
|
|
46
53
|
*/
|
|
47
54
|
export declare class ConversationalUIModule {
|
|
48
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationalUIModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationalUIModule, never, [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationalUIModule, never, [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.AuthorMessageContentTemplateDirective, typeof i15.ReceiverMessageContentTemplateDirective, typeof i16.MessageContentTemplateDirective, typeof i17.AuthorMessageTemplateDirective, typeof i18.ReceiverMessageTemplateDirective, typeof i19.MessageTemplateDirective, typeof i20.HeroCardComponent, typeof i21.ChatMessageBoxTemplateDirective, typeof i22.ChatHeaderTemplateDirective, typeof i23.NoDataTemplateDirective, typeof i24.ChatTimestampTemplateDirective, typeof i25.ChatStatusTemplateDirective, typeof i26.ChatSuggestionTemplateDirective, typeof i27.ChatUserStatusTemplateDirective, typeof i28.InlineAIPromptComponent, typeof i29.InlineAIPromptOutputTemplateDirective, typeof i30.InlineAIPromptCustomMessagesComponent], [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.AuthorMessageContentTemplateDirective, typeof i15.ReceiverMessageContentTemplateDirective, typeof i16.MessageContentTemplateDirective, typeof i17.AuthorMessageTemplateDirective, typeof i18.ReceiverMessageTemplateDirective, typeof i19.MessageTemplateDirective, typeof i20.HeroCardComponent, typeof i21.ChatMessageBoxTemplateDirective, typeof i22.ChatHeaderTemplateDirective, typeof i23.NoDataTemplateDirective, typeof i24.ChatTimestampTemplateDirective, typeof i25.ChatStatusTemplateDirective, typeof i26.ChatSuggestionTemplateDirective, typeof i27.ChatUserStatusTemplateDirective, typeof i28.InlineAIPromptComponent, typeof i29.InlineAIPromptOutputTemplateDirective, typeof i30.InlineAIPromptCustomMessagesComponent]>;
|
|
50
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConversationalUIModule>;
|
|
51
58
|
}
|
package/directives.d.ts
CHANGED
|
@@ -12,11 +12,17 @@ import { OutputViewComponent, PromptViewComponent } from "./ai-prompt/views";
|
|
|
12
12
|
import { ChatComponent } from "./chat/chat.component";
|
|
13
13
|
import { CustomMessagesComponent } from "./chat/l10n/custom-messages.component";
|
|
14
14
|
import { AttachmentTemplateDirective } from "./chat/templates/attachment-template.directive";
|
|
15
|
+
import { AuthorMessageContentTemplateDirective } from "./chat/templates/author-message-content-template.directive";
|
|
16
|
+
import { ReceiverMessageContentTemplateDirective } from "./chat/templates/receiver-message-content-template.directive";
|
|
17
|
+
import { MessageContentTemplateDirective } from "./chat/templates/message-content-template.directive";
|
|
18
|
+
import { AuthorMessageTemplateDirective } from "./chat/templates/author-message-template.directive";
|
|
19
|
+
import { ReceiverMessageTemplateDirective } from "./chat/templates/receiver-message-template.directive";
|
|
15
20
|
import { MessageTemplateDirective } from "./chat/templates/message-template.directive";
|
|
16
21
|
import { ChatTimestampTemplateDirective } from "./chat/templates/timestamp-template.directive";
|
|
17
22
|
import { HeroCardComponent } from "./chat/cards/hero-card.component";
|
|
18
23
|
import { ChatMessageBoxTemplateDirective } from "./chat/templates/message-box.directive";
|
|
19
24
|
import { ChatHeaderTemplateDirective } from "./chat/templates/header-template.directive";
|
|
25
|
+
import { NoDataTemplateDirective } from "./chat/templates/no-data-template.directive";
|
|
20
26
|
import { AIPromptOutputBodyTemplateDirective } from "./ai-prompt/templates/aiprompt-output-body-template.directive";
|
|
21
27
|
import { AIPromptOutputTemplateDirective } from "./ai-prompt/templates/aiprompt-output-template.directive";
|
|
22
28
|
import { InlineAIPromptComponent } from "./inline-ai-prompt/inlineaiprompt.component";
|
|
@@ -24,6 +30,7 @@ import { InlineAIPromptOutputTemplateDirective } from "./inline-ai-prompt/output
|
|
|
24
30
|
import { InlineAIPromptCustomMessagesComponent } from "./inline-ai-prompt/localization/custom-messages.component";
|
|
25
31
|
import { ChatStatusTemplateDirective } from "./chat/templates/status-template.directive";
|
|
26
32
|
import { ChatSuggestionTemplateDirective } from "./chat/templates/suggestion-template.directive";
|
|
33
|
+
import { ChatUserStatusTemplateDirective } from "./chat/templates/user-status-template.directive";
|
|
27
34
|
/**
|
|
28
35
|
* Utility array that contains all AIPrompt related components and directives.
|
|
29
36
|
*
|
|
@@ -59,7 +66,7 @@ export declare const KENDO_AIPROMPT: readonly [typeof AIPromptComponent, typeof
|
|
|
59
66
|
* export class AppComponent {}
|
|
60
67
|
* ```
|
|
61
68
|
*/
|
|
62
|
-
export declare const KENDO_CHAT: readonly [typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective];
|
|
69
|
+
export declare const KENDO_CHAT: readonly [typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective];
|
|
63
70
|
/**
|
|
64
71
|
* Utility array that contains all InlineAIPrompt related components and directives.
|
|
65
72
|
*
|
|
@@ -98,4 +105,4 @@ export declare const KENDO_INLINEAIPROMPT: readonly [typeof InlineAIPromptCompon
|
|
|
98
105
|
* export class AppComponent {}
|
|
99
106
|
* ```
|
|
100
107
|
*/
|
|
101
|
-
export declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent];
|
|
108
|
+
export declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent];
|