@progress/kendo-angular-conversational-ui 24.2.2 → 25.0.0-develop.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.
Files changed (139) hide show
  1. package/fesm2022/progress-kendo-angular-conversational-ui.mjs +228 -228
  2. package/index.d.ts +4350 -51
  3. package/package-metadata.mjs +2 -2
  4. package/package.json +18 -18
  5. package/ai-prompt/aiprompt.component.d.ts +0 -203
  6. package/ai-prompt/aiprompt.module.d.ts +0 -38
  7. package/ai-prompt/common/aiprompt.service.d.ts +0 -36
  8. package/ai-prompt/common/output-card.component.d.ts +0 -42
  9. package/ai-prompt/common/toolbar-focusable.directive.d.ts +0 -24
  10. package/ai-prompt/common/toolbar-navigation.service.d.ts +0 -24
  11. package/ai-prompt/localization/custom-messages.component.d.ts +0 -28
  12. package/ai-prompt/localization/localized-messages.directive.d.ts +0 -16
  13. package/ai-prompt/localization/messages.d.ts +0 -53
  14. package/ai-prompt/models/ai-prompt-settings.d.ts +0 -60
  15. package/ai-prompt/models/command-execute-event.d.ts +0 -24
  16. package/ai-prompt/models/command.interface.d.ts +0 -30
  17. package/ai-prompt/models/index.d.ts +0 -11
  18. package/ai-prompt/models/output-rating-change-event.d.ts +0 -19
  19. package/ai-prompt/models/prompt-output.interface.d.ts +0 -41
  20. package/ai-prompt/models/prompt-request-event.d.ts +0 -23
  21. package/ai-prompt/models/view-type.d.ts +0 -8
  22. package/ai-prompt/templates/aiprompt-output-body-template.directive.d.ts +0 -24
  23. package/ai-prompt/templates/aiprompt-output-template.directive.d.ts +0 -24
  24. package/ai-prompt/templates/toolbar-actions.template.d.ts +0 -28
  25. package/ai-prompt/utils.d.ts +0 -19
  26. package/ai-prompt/views/base-view.d.ts +0 -46
  27. package/ai-prompt/views/command-view.component.d.ts +0 -36
  28. package/ai-prompt/views/custom-view.component.d.ts +0 -30
  29. package/ai-prompt/views/index.d.ts +0 -8
  30. package/ai-prompt/views/output-view.component.d.ts +0 -33
  31. package/ai-prompt/views/prompt-view.component.d.ts +0 -76
  32. package/chat/api/action.interface.d.ts +0 -30
  33. package/chat/api/attachment.interface.d.ts +0 -33
  34. package/chat/api/chat-file-interface.d.ts +0 -41
  35. package/chat/api/chat-load-more-event.d.ts +0 -18
  36. package/chat/api/chat-referenced-message-click-event.d.ts +0 -18
  37. package/chat/api/chat-suggestion.interface.d.ts +0 -25
  38. package/chat/api/execute-action-event.d.ts +0 -27
  39. package/chat/api/file-action.d.ts +0 -45
  40. package/chat/api/file-download-event.interface.d.ts +0 -21
  41. package/chat/api/files-layout.d.ts +0 -12
  42. package/chat/api/index.d.ts +0 -25
  43. package/chat/api/message-action.d.ts +0 -45
  44. package/chat/api/message-box.d.ts +0 -28
  45. package/chat/api/message-settings.interface.d.ts +0 -41
  46. package/chat/api/message-status.interface.d.ts +0 -22
  47. package/chat/api/message-width-mode.d.ts +0 -10
  48. package/chat/api/message.interface.d.ts +0 -77
  49. package/chat/api/post-message-event.d.ts +0 -29
  50. package/chat/api/preventable-event.d.ts +0 -24
  51. package/chat/api/scroll-mode.d.ts +0 -12
  52. package/chat/api/send-button-settings.d.ts +0 -24
  53. package/chat/api/suggestions-layout.d.ts +0 -20
  54. package/chat/api/timestamp-visibility.d.ts +0 -10
  55. package/chat/api/user.interface.d.ts +0 -30
  56. package/chat/attachment.component.d.ts +0 -22
  57. package/chat/builtin-actions.d.ts +0 -14
  58. package/chat/cards/hero-card.component.d.ts +0 -49
  59. package/chat/chat-file.component.d.ts +0 -34
  60. package/chat/chat-item.d.ts +0 -11
  61. package/chat/chat-view.d.ts +0 -54
  62. package/chat/chat.component.d.ts +0 -561
  63. package/chat/chat.directives.d.ts +0 -18
  64. package/chat/chat.module.d.ts +0 -51
  65. package/chat/common/chat.service.d.ts +0 -99
  66. package/chat/common/endless-scroll-state.d.ts +0 -36
  67. package/chat/common/models/default-model-fields.d.ts +0 -9
  68. package/chat/common/models/formatted-text-parts.d.ts +0 -12
  69. package/chat/common/models/model-fields.d.ts +0 -111
  70. package/chat/common/models/pending-scroll-action.d.ts +0 -11
  71. package/chat/common/scroll-anchor.directive.d.ts +0 -72
  72. package/chat/common/scroll-button.component.d.ts +0 -32
  73. package/chat/common/scroll.service.d.ts +0 -39
  74. package/chat/common/utils.d.ts +0 -87
  75. package/chat/l10n/custom-messages.component.d.ts +0 -28
  76. package/chat/l10n/localized-messages.directive.d.ts +0 -16
  77. package/chat/l10n/messages.d.ts +0 -98
  78. package/chat/message-attachments.component.d.ts +0 -56
  79. package/chat/message-box.component.d.ts +0 -82
  80. package/chat/message-list.component.d.ts +0 -85
  81. package/chat/message-reference-content.component.d.ts +0 -24
  82. package/chat/message.component.d.ts +0 -106
  83. package/chat/suggested-actions.component.d.ts +0 -72
  84. package/chat/templates/attachment-template.directive.d.ts +0 -32
  85. package/chat/templates/author-message-content-template.directive.d.ts +0 -28
  86. package/chat/templates/author-message-template.directive.d.ts +0 -28
  87. package/chat/templates/header-template.directive.d.ts +0 -24
  88. package/chat/templates/message-box-end-affix-template.directive.d.ts +0 -26
  89. package/chat/templates/message-box-start-affix-template.directive.d.ts +0 -26
  90. package/chat/templates/message-box-top-affix-template.directive.d.ts +0 -26
  91. package/chat/templates/message-box.directive.d.ts +0 -27
  92. package/chat/templates/message-content-template.directive.d.ts +0 -28
  93. package/chat/templates/message-template.directive.d.ts +0 -28
  94. package/chat/templates/no-data-template.directive.d.ts +0 -27
  95. package/chat/templates/receiver-message-content-template.directive.d.ts +0 -28
  96. package/chat/templates/receiver-message-template.directive.d.ts +0 -28
  97. package/chat/templates/status-template.directive.d.ts +0 -24
  98. package/chat/templates/suggestion-template.directive.d.ts +0 -27
  99. package/chat/templates/timestamp-template.directive.d.ts +0 -31
  100. package/chat/templates/user-status-template.directive.d.ts +0 -27
  101. package/conversational-ui.module.d.ts +0 -70
  102. package/directives.d.ts +0 -138
  103. package/inline-ai-prompt/inlineaiprompt-content.component.d.ts +0 -82
  104. package/inline-ai-prompt/inlineaiprompt.component.d.ts +0 -159
  105. package/inline-ai-prompt/inlineaiprompt.module.d.ts +0 -31
  106. package/inline-ai-prompt/inlineaiprompt.service.d.ts +0 -48
  107. package/inline-ai-prompt/localization/custom-messages.component.d.ts +0 -25
  108. package/inline-ai-prompt/localization/localized-messages.directive.d.ts +0 -16
  109. package/inline-ai-prompt/localization/messages.d.ts +0 -25
  110. package/inline-ai-prompt/models/command.interface.d.ts +0 -38
  111. package/inline-ai-prompt/models/index.d.ts +0 -12
  112. package/inline-ai-prompt/models/inlineaiprompt-popupsettings.d.ts +0 -10
  113. package/inline-ai-prompt/models/inlineaiprompt-settings.d.ts +0 -66
  114. package/inline-ai-prompt/models/messages.d.ts +0 -21
  115. package/inline-ai-prompt/models/output-action-click-event.d.ts +0 -19
  116. package/inline-ai-prompt/models/output-action.interface.d.ts +0 -54
  117. package/inline-ai-prompt/models/prompt-output.interface.d.ts +0 -25
  118. package/inline-ai-prompt/models/prompt-request-event.d.ts +0 -17
  119. package/inline-ai-prompt/output-template.directive.d.ts +0 -27
  120. package/inline-ai-prompt/utils.d.ts +0 -17
  121. package/package-metadata.d.ts +0 -9
  122. package/promptbox/affixes/promptbox-end-affix.component.d.ts +0 -26
  123. package/promptbox/affixes/promptbox-start-affix.component.d.ts +0 -26
  124. package/promptbox/affixes/promptbox-top-affix.component.d.ts +0 -26
  125. package/promptbox/common/header-template.directive.d.ts +0 -17
  126. package/promptbox/common/models/action-button.d.ts +0 -66
  127. package/promptbox/common/models/fileselect-button.d.ts +0 -62
  128. package/promptbox/common/models/index.d.ts +0 -7
  129. package/promptbox/common/models/promptbox-mode.d.ts +0 -12
  130. package/promptbox/common/utils.d.ts +0 -18
  131. package/promptbox/localization/custom-messages.component.d.ts +0 -26
  132. package/promptbox/localization/localized-messages.directive.d.ts +0 -16
  133. package/promptbox/localization/messages.d.ts +0 -37
  134. package/promptbox/promptbox.component.d.ts +0 -385
  135. package/promptbox/tools/action-button.component.d.ts +0 -63
  136. package/promptbox/tools/base-tool.d.ts +0 -65
  137. package/promptbox/tools/fileselect-button.component.d.ts +0 -63
  138. package/promptbox/tools/promptbox-file.component.d.ts +0 -30
  139. package/promptbox/tools/speech-to-text-button.component.d.ts +0 -87
@@ -1,54 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Message, User, Action, Attachment, AttachmentLayout } from './api';
6
- /**
7
- * @hidden
8
- */
9
- export interface MessageGroup {
10
- type: 'message-group';
11
- messages: Message[];
12
- author: User;
13
- timestamp: Date;
14
- trackBy: any;
15
- }
16
- /**
17
- * @hidden
18
- */
19
- export interface AttachmentGroup {
20
- type: 'attachment-group';
21
- attachments: Attachment[];
22
- attachmentLayout: AttachmentLayout;
23
- timestamp: Date;
24
- trackBy: any;
25
- }
26
- /**
27
- * @hidden
28
- */
29
- export interface ActionGroup {
30
- type: 'action-group';
31
- actions?: Action[];
32
- timestamp: Date;
33
- trackBy: any;
34
- }
35
- /**
36
- * @hidden
37
- */
38
- export interface DateMarker {
39
- type: 'date-marker';
40
- timestamp: Date;
41
- trackBy: any;
42
- }
43
- /**
44
- * @hidden
45
- */
46
- export type ViewItem = MessageGroup | AttachmentGroup | ActionGroup | DateMarker;
47
- /**
48
- * @hidden
49
- */
50
- export declare const isAuthor: (authorId: string | number, msg: Message) => boolean;
51
- /**
52
- * @hidden
53
- */
54
- export declare const chatView: (messages: Message[]) => ViewItem[];
@@ -1,561 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
6
- import { SpeechToTextButtonSettings } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { ContextMenuComponent, ContextMenuPopupEvent } from '@progress/kendo-angular-menu';
9
- import { SelectEvent } from '@progress/kendo-angular-upload';
10
- import { LicenseMessage } from '@progress/kendo-licensing';
11
- import { SVGIcon } from '@progress/kendo-svg-icons';
12
- import { FileSelectButtonSettings } from '../promptbox/common/models';
13
- import { ExecuteActionEvent, FileAction, FileActionEvent, FileDownloadEvent, FilesLayoutMode, Message, MessageSettings, ResendMessageEvent, SendButtonSettings, SendMessageEvent } from './api';
14
- import { ChatFile } from './api/chat-file-interface';
15
- import { ChatLoadMoreEvent } from './api/chat-load-more-event';
16
- import { ChatReferencedMessageClickEvent } from './api/chat-referenced-message-click-event';
17
- import { ChatSuggestion } from './api/chat-suggestion.interface';
18
- import { MessageAction, MessageActionEvent } from './api/message-action';
19
- import { MessageBoxSettings, MessageBoxType } from './api/message-box';
20
- import { MessageWidthMode } from './api/message-width-mode';
21
- import { ScrollMode } from './api/scroll-mode';
22
- import { QuickActionsLayoutMode, SuggestionsLayoutMode } from './api/suggestions-layout';
23
- import { TimestampVisibilityMode } from './api/timestamp-visibility';
24
- import { AuthorMessageContentTemplateDirective, AuthorMessageTemplateDirective, MessageContentTemplateDirective, MessageTemplateDirective, NoDataTemplateDirective, ReceiverMessageContentTemplateDirective, ReceiverMessageTemplateDirective } from './chat.directives';
25
- import { ChatService } from './common/chat.service';
26
- import { ConversationalUIModelFields } from './common/models/model-fields';
27
- import { EndlessScrollState } from './common/endless-scroll-state';
28
- import { MessageBoxComponent } from './message-box.component';
29
- import { AttachmentTemplateDirective } from './templates/attachment-template.directive';
30
- import { ChatHeaderTemplateDirective } from './templates/header-template.directive';
31
- import { ChatMessageBoxEndAffixTemplateDirective } from './templates/message-box-end-affix-template.directive';
32
- import { ChatMessageBoxStartAffixTemplateDirective } from './templates/message-box-start-affix-template.directive';
33
- import { ChatMessageBoxTopAffixTemplateDirective } from './templates/message-box-top-affix-template.directive';
34
- import { ChatMessageBoxTemplateDirective } from './templates/message-box.directive';
35
- import { ChatStatusTemplateDirective } from './templates/status-template.directive';
36
- import { ChatSuggestionTemplateDirective } from './templates/suggestion-template.directive';
37
- import { ChatTimestampTemplateDirective } from './templates/timestamp-template.directive';
38
- import { ChatUserStatusTemplateDirective } from './templates/user-status-template.directive';
39
- import * as i0 from "@angular/core";
40
- /**
41
- * Represents the [Kendo UI Chat component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat).
42
- *
43
- * Provides a conversational UI for chat-based applications.
44
- * Supports message templates, attachments, localization, and user actions.
45
- *
46
- * @example
47
- * ```html
48
- * <kendo-chat
49
- * [messages]="messages"
50
- * [authorId]="authorId"
51
- * (sendMessage)="onSendMessage($event)"
52
- * (executeAction)="onExecuteAction($event)">
53
- * </kendo-chat>
54
- * ```
55
- *
56
- * @remarks
57
- * Supported children components are: {@link CustomMessagesComponent}, {@link HeroCardComponent}.
58
- */
59
- export declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
60
- private localization;
61
- private zone;
62
- private renderer;
63
- private element;
64
- private chatService;
65
- /**
66
- * Sets the Chat messages.
67
- * Accepts an array of `Message` objects, but can also accept custom data types.
68
- * For more information, check [Data Binding](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/data-binding) section in the documentation.
69
- */
70
- messages: any[];
71
- /**
72
- * Sets the ID that represents the local user.
73
- */
74
- authorId: string | number;
75
- /**
76
- * Determines the type of input used in the message box.
77
- * ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message)).
78
- * @default 'textarea'
79
- *
80
- * @hidden
81
- */
82
- messageBoxType: MessageBoxType;
83
- /**
84
- * Sets the height of the Chat component.
85
- * Accepts a string with CSS units (for example, `'400px'`, `'50%'`) or a number (interpreted as pixels).
86
- * The minimum height is `600px`.
87
- */
88
- height: string | number;
89
- /**
90
- * Sets the width of the Chat component.
91
- * Accepts a string with CSS units (for example, `'400px'`, `'50%'`) or a number (interpreted as pixels).
92
- * The minimum width is `320px`.
93
- */
94
- width: string | number;
95
- /**
96
- * Sets the placeholder text for the message input box.
97
- */
98
- placeholder: string;
99
- /**
100
- * Controls the width of the message between the predefined options.
101
- *
102
- * @default 'standard'
103
- */
104
- messageWidthMode: MessageWidthMode;
105
- /**
106
- * Controls the visibility of timestamps in messages.
107
- *
108
- * @default 'focus'
109
- */
110
- timestampVisibility: TimestampVisibilityMode;
111
- /**
112
- * Controls the visibility of usernames in messages.
113
- * When set to `true`, the username displays above each message bubble.
114
- *
115
- * @default true
116
- */
117
- showUsername: boolean;
118
- /**
119
- * Controls the avatar visibility for the messages.
120
- * When set to `true`, the user avatar displays next to each message bubble.
121
- *
122
- * @default true
123
- */
124
- showAvatar: boolean;
125
- /**
126
- * Enables the expand or collapse functionality for messages.
127
- *
128
- * @default false
129
- */
130
- allowMessageCollapse: boolean;
131
- /**
132
- * Sets the Speech to Text button settings.
133
- *
134
- * @default true
135
- */
136
- speechToTextButton: boolean | SpeechToTextButtonSettings;
137
- /**
138
- * Sets the File Select Button settings.
139
- *
140
- * @default true
141
- */
142
- fileSelectButton: boolean | FileSelectButtonSettings;
143
- /**
144
- * Sets the message box settings.
145
- */
146
- messageBoxSettings: MessageBoxSettings;
147
- /**
148
- * Sets the actions of the message toolbar.
149
- * These actions display in the message toolbar and let you perform specific operations on the message.
150
- *
151
- * @default []
152
- */
153
- messageToolbarActions: MessageAction[];
154
- /**
155
- * Sets the value of the Message Box.
156
- *
157
- * @default ''
158
- */
159
- inputValue: string;
160
- /**
161
- * Sets the settings for the author's messages.
162
- */
163
- authorMessageSettings: MessageSettings;
164
- /**
165
- * Sets the settings for the receivers' messages.
166
- */
167
- receiverMessageSettings: MessageSettings;
168
- /**
169
- * Sets the default actions that display in the message context menu.
170
- *
171
- * @default [{ id: 'copy', label: 'Copy', icon: 'copy', svgIcon: copyIcon, disabled: false }, { id: 'reply', label: 'Reply', icon: 'undo', svgIcon: undoIcon, disabled: false }]
172
- */
173
- defaultContextMenuActions: MessageAction[];
174
- /**
175
- * Sets the actions that display in the message as a context menu.
176
- * These actions display as menu items and let you perform specific operations on the message.
177
- * The default actions are `copy` and `reply` and are defined by their `id`.
178
- */
179
- set messageContextMenuActions(actions: MessageAction[] | null);
180
- get messageContextMenuActions(): MessageAction[];
181
- /**
182
- * Sets the default actions that display in the file actions DropDownButton.
183
- *
184
- * @default [{ id: 'download', label: 'Download', icon: 'download', svgIcon: downloadIcon, disabled: false }]
185
- */
186
- defaultFileActions: FileAction[];
187
- /**
188
- * Sets the actions that display in the file as items of a DropDownButton.
189
- * These actions display when you click the file DropDownButton and let you perform specific operations on the file.
190
- * The default action is `download` and is defined by its `id`.
191
- *
192
- * @default [{ id: 'download', label: 'Download', icon: 'download', svgIcon: downloadIcon, disabled: false }]
193
- */
194
- set fileActions(actions: FileAction[] | null);
195
- get fileActions(): FileAction[];
196
- /**
197
- * Sets the layout of the files in the message bubble.
198
- *
199
- * @default 'vertical'
200
- */
201
- set messageFilesLayout(layout: FilesLayoutMode);
202
- /**
203
- * Sets the layout of the suggestions above the message input box.
204
- *
205
- * @default 'scroll'
206
- */
207
- set suggestionsLayout(layoutMode: SuggestionsLayoutMode);
208
- /**
209
- * Sets the layout of the quick actions suggested below the messages.
210
- *
211
- * @default 'scroll'
212
- */
213
- set quickActionsLayout(layoutMode: QuickActionsLayoutMode);
214
- /**
215
- * Sets the suggestions that display in the message input box.
216
- * Suggestions display as a list of clickable items that let you quickly insert predefined text into the message input.
217
- *
218
- * @default []
219
- */
220
- suggestions: ChatSuggestion[];
221
- /**
222
- * Sets the send button settings for the Chat component.
223
- * Allows customization of the send button appearance, icons and disabled state.
224
- *
225
- * @default true
226
- */
227
- sendButton: boolean | SendButtonSettings;
228
- /**
229
- * @hidden
230
- */
231
- set sendButtonSettings(value: boolean | SendButtonSettings);
232
- get sendButtonSettings(): boolean | SendButtonSettings;
233
- /**
234
- * Controls the scrolling behavior of the message list.
235
- *
236
- * @default 'scrollable'
237
- */
238
- scrollMode: ScrollMode;
239
- /**
240
- * Sets the number of messages loaded per page in endless scroll mode.
241
- * Ignored in `scrollable` mode.
242
- *
243
- * @default 50
244
- */
245
- pageSize: number;
246
- /**
247
- * Sets the minimum distance from the top of the visible message area that prevents auto-scrolling when a new receiver message arrives.
248
- * Accepts a percentage string (for example, `'30%'`) or a pixel value as a number. Set to `0` to always auto-scroll to new messages.
249
- *
250
- * Has no effect on author messages, which always scroll to the bottom.
251
- *
252
- * For more details, refer to the [Auto-Scroll Threshold](slug:scroll_modes_chat#auto-scroll-threshold) article.
253
- *
254
- * @default '20%'
255
- */
256
- autoScrollThreshold: number | string;
257
- /**
258
- * Sets the total number of messages in the conversation when using endless scrolling with remote data source. For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
259
- */
260
- total: number;
261
- /**
262
- * Sets the index of the first message in the currently loaded batch within the full conversation.
263
- * Used with remote data sources in endless scroll mode to compute the range for the next [`loadMore`](slug:api_conversational-ui_chatcomponent#loadMore) call.
264
- * For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
265
- */
266
- startIndex: number;
267
- /**
268
- * Sets the exclusive end index of the currently loaded batch within the full conversation.
269
- * Used with remote data sources in endless scroll mode to determine whether more messages exist beyond the current batch.
270
- * For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
271
- */
272
- endIndex: number;
273
- /**
274
- * Sets the full set of pinned messages in the conversation.
275
- * Used with remote data sources in endless scroll mode to render the pinned message indicator when the pinned message is outside the currently loaded batch.
276
- * For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
277
- *
278
- * @default []
279
- */
280
- pinnedMessages: Message[];
281
- /**
282
- * Sets the messages that serve as reply targets for messages in the currently loaded batch but exist outside it.
283
- * Used with remote data sources in endless scroll mode to render reply previews when the replied-to message is not in the current batch.
284
- * For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
285
- *
286
- * @default []
287
- */
288
- repliedToMessages: Message[];
289
- /**
290
- * Sets the names of the model fields from which the Chat reads its data.
291
- * Lets you map custom data types to the expected `Message` format.
292
- */
293
- set modelFields(value: ConversationalUIModelFields);
294
- get modelFields(): ConversationalUIModelFields;
295
- /**
296
- * Controls whether a scroll to bottom button is rendered at the bottom of the Chat. Displayed only when the user has scrolled the component upward.
297
- *
298
- * @default true
299
- */
300
- scrollToBottomButton: boolean;
301
- /**
302
- * Sets the loading state of the Chat component.
303
- * When set to `true`, a loading button is displayed instead of the send button.
304
- *
305
- * @default false
306
- */
307
- loading: boolean;
308
- /**
309
- * Fires when the user sends a message by clicking the **Send** button or pressing **Enter**.
310
- *
311
- * The message is not automatically added to the `messages` array.
312
- */
313
- sendMessage: EventEmitter<SendMessageEvent>;
314
- /**
315
- * Fires when the user clicks the resend button on a failed message.
316
- */
317
- resendMessage: EventEmitter<ResendMessageEvent>;
318
- /**
319
- * Fires when the user clicks a quick action button in the message toolbar.
320
- */
321
- toolbarActionClick: EventEmitter<MessageActionEvent>;
322
- /**
323
- * Fires when the user clicks an action in the message context menu.
324
- */
325
- contextMenuActionClick: EventEmitter<MessageActionEvent>;
326
- /**
327
- * Fires when the user clicks an action in the file context menu.
328
- */
329
- fileActionClick: EventEmitter<FileActionEvent>;
330
- /**
331
- * Fires when the user clicks an action in the file context menu.
332
- */
333
- download: EventEmitter<FileDownloadEvent>;
334
- /**
335
- * Fires when the user clicks a quick action button.
336
- * The Chat internally handles [known actions](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/actiontype) such as `reply`, `openUrl`, and `call`.
337
- *
338
- * The event is preventable. Calling [`preventDefault`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) suppresses the built-in action.
339
- */
340
- executeAction: EventEmitter<ExecuteActionEvent>;
341
- /**
342
- * Fires when the user clicks a suggestion in the message input box.
343
- */
344
- suggestionExecute: EventEmitter<ChatSuggestion>;
345
- /**
346
- * Fires when the user selects a file in the message input box.
347
- */
348
- fileSelect: EventEmitter<SelectEvent>;
349
- /**
350
- * Fires when the user removes a file from the message input box.
351
- */
352
- fileRemove: EventEmitter<ChatFile>;
353
- /**
354
- * Fires when the user unpins the pinned message.
355
- * This event triggers when the user clicks the delete button on the pinned message.
356
- */
357
- unpin: EventEmitter<Message>;
358
- /**
359
- * Fires when the user types in the message input box.
360
- */
361
- inputValueChange: EventEmitter<string>;
362
- /**
363
- * Fires when the user scrolls near the edge of the rendered message window in endless scroll mode.
364
- */
365
- loadMore: EventEmitter<ChatLoadMoreEvent>;
366
- /**
367
- * Fires when the user clicks a referenced message (pinned indicator or reply preview).
368
- */
369
- referencedMessageClick: EventEmitter<ChatReferencedMessageClickEvent>;
370
- get className(): string;
371
- get dirAttr(): string;
372
- set messagesContextMenu(contextMenu: ContextMenuComponent);
373
- attachmentTemplate: AttachmentTemplateDirective;
374
- chatHeaderTemplate: ChatHeaderTemplateDirective;
375
- chatNoDataTemplate: NoDataTemplateDirective;
376
- authorMessageContentTemplate: AuthorMessageContentTemplateDirective;
377
- receiverMessageContentTemplate: ReceiverMessageContentTemplateDirective;
378
- messageContentTemplate: MessageContentTemplateDirective;
379
- authorMessageTemplate: AuthorMessageTemplateDirective;
380
- receiverMessageTemplate: ReceiverMessageTemplateDirective;
381
- messageTemplate: MessageTemplateDirective;
382
- timestampTemplate: ChatTimestampTemplateDirective;
383
- suggestionTemplate: ChatSuggestionTemplateDirective;
384
- statusTemplate: ChatStatusTemplateDirective;
385
- messageBoxTemplate: ChatMessageBoxTemplateDirective;
386
- messageBoxStartAffixTemplate: ChatMessageBoxStartAffixTemplateDirective;
387
- messageBoxEndAffixTemplate: ChatMessageBoxEndAffixTemplateDirective;
388
- messageBoxTopAffixTemplate: ChatMessageBoxTopAffixTemplateDirective;
389
- userStatusTemplate: ChatUserStatusTemplateDirective;
390
- messageBox: MessageBoxComponent;
391
- /**
392
- * @hidden
393
- */
394
- messageList: ViewContainerRef;
395
- /**
396
- * @hidden
397
- * Returns processed messages when model fields are used, otherwise returns original messages.
398
- */
399
- get processedMessages(): Message[];
400
- /**
401
- * @hidden
402
- * Returns `true` when the Chat is in remote endless scroll mode.
403
- * Remote mode is active whenever the consumer provides a `total`.
404
- */
405
- get isRemoteMode(): boolean;
406
- /**
407
- * @hidden
408
- * Returns the messages to render — sliced in endless mode, full in scrollable mode.
409
- * In remote mode, returns processedMessages as-is (consumer already provides only the current batch).
410
- */
411
- get renderedMessages(): Message[];
412
- /**
413
- * @hidden
414
- */
415
- isOwnMessage(message: Message): boolean;
416
- /**
417
- * Gets the actions available in the message context menu.
418
- *
419
- * @hidden
420
- */
421
- get contextMenuActions(): any[];
422
- /**
423
- * @hidden
424
- */
425
- get localizationText(): LocalizationService;
426
- /**
427
- * @hidden
428
- */
429
- autoScroll: boolean;
430
- /**
431
- * @hidden
432
- */
433
- pinIcon: SVGIcon;
434
- /**
435
- * @hidden
436
- */
437
- deleteIcon: SVGIcon;
438
- /**
439
- * @hidden
440
- */
441
- pinnedMessage: Message;
442
- /**
443
- * @hidden
444
- */
445
- scrollToBottomIcon: SVGIcon;
446
- /**
447
- * @hidden
448
- */
449
- endlessState: EndlessScrollState;
450
- /**
451
- * @hidden
452
- */
453
- showLicenseWatermark: boolean;
454
- /**
455
- * @hidden
456
- */
457
- licenseMessage?: LicenseMessage;
458
- private anchor;
459
- private direction;
460
- private subs;
461
- private _modelFields;
462
- private _messageContextMenuActions;
463
- private _fileActions;
464
- private _cachedProcessedMessages;
465
- private _lastMessagesReference;
466
- private _lastModelFields;
467
- private _cachedContextMenuActions;
468
- private _lastContextMenuActionsReference;
469
- private _previousMessagesLength;
470
- private _previousLastMessageId;
471
- private _hasProcessedMessages;
472
- private _pendingScrollAction;
473
- private _scrollHandledBeforePaint;
474
- private _lastNewMessageId;
475
- private _cachedRenderedMessages;
476
- private _renderedMessagesSource;
477
- private _renderedMessagesStart;
478
- private _renderedMessagesEnd;
479
- private _pendingRemoteScrollToMessageId;
480
- private _remoteScrollToBottom;
481
- constructor(localization: LocalizationService, zone: NgZone, renderer: Renderer2, element: ElementRef, chatService: ChatService);
482
- /**
483
- * @hidden
484
- */
485
- ngOnInit(): void;
486
- /**
487
- * @hidden
488
- */
489
- ngOnChanges(changes: SimpleChanges): void;
490
- /**
491
- * @hidden
492
- */
493
- ngAfterViewInit(): void;
494
- /**
495
- * @hidden
496
- */
497
- ngOnDestroy(): void;
498
- /**
499
- * @hidden
500
- */
501
- dispatchAction(e: ExecuteActionEvent): void;
502
- /**
503
- * @hidden
504
- */
505
- textFor(key: string): string;
506
- /**
507
- * @hidden
508
- */
509
- scrollToPinnedMessage(event?: MouseEvent): void;
510
- /**
511
- * @hidden
512
- */
513
- onNearTop(): void;
514
- /**
515
- * @hidden
516
- */
517
- onNearBottom(): void;
518
- /**
519
- * @hidden
520
- */
521
- onScrollToBottomClick(): void;
522
- /**
523
- * @hidden
524
- */
525
- handleReferencedMessageClick(messageId: string | number, type: 'pinned' | 'reply'): void;
526
- /**
527
- * @hidden
528
- */
529
- onContextMenuAction(action: MessageAction): void;
530
- /**
531
- * @hidden
532
- */
533
- handleMenuClose(event: ContextMenuPopupEvent): void;
534
- /**
535
- * @hidden
536
- */
537
- onActionButtonClick(event: MouseEvent): void;
538
- /**
539
- * @hidden
540
- */
541
- onMessageListResize(): void;
542
- /**
543
- * Schedules the new-message scroll adjustment on zone.onStable so it runs
544
- * after Angular renders the new DOM but before the browser paints,
545
- * preventing a visible intermediate frame.
546
- */
547
- private scheduleNewMessageScroll;
548
- private detectNewMessageScrollAction;
549
- private getLastNewMessageElement;
550
- private findLastPinnedMessage;
551
- private initEndlessScroll;
552
- private handleMessagesChange;
553
- private handleRemoteMessagesChange;
554
- private handleRemoteReferencedMessageClick;
555
- private handlePendingRemoteScroll;
556
- private updateChatServiceProperties;
557
- private validateRemoteInputs;
558
- private mergeWithDefaultActions;
559
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
560
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatComponent, "kendo-chat", never, { "messages": { "alias": "messages"; "required": false; }; "authorId": { "alias": "authorId"; "required": false; }; "messageBoxType": { "alias": "messageBoxType"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "messageWidthMode": { "alias": "messageWidthMode"; "required": false; }; "timestampVisibility": { "alias": "timestampVisibility"; "required": false; }; "showUsername": { "alias": "showUsername"; "required": false; }; "showAvatar": { "alias": "showAvatar"; "required": false; }; "allowMessageCollapse": { "alias": "allowMessageCollapse"; "required": false; }; "speechToTextButton": { "alias": "speechToTextButton"; "required": false; }; "fileSelectButton": { "alias": "fileSelectButton"; "required": false; }; "messageBoxSettings": { "alias": "messageBoxSettings"; "required": false; }; "messageToolbarActions": { "alias": "messageToolbarActions"; "required": false; }; "inputValue": { "alias": "inputValue"; "required": false; }; "authorMessageSettings": { "alias": "authorMessageSettings"; "required": false; }; "receiverMessageSettings": { "alias": "receiverMessageSettings"; "required": false; }; "messageContextMenuActions": { "alias": "messageContextMenuActions"; "required": false; }; "fileActions": { "alias": "fileActions"; "required": false; }; "messageFilesLayout": { "alias": "messageFilesLayout"; "required": false; }; "suggestionsLayout": { "alias": "suggestionsLayout"; "required": false; }; "quickActionsLayout": { "alias": "quickActionsLayout"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "sendButton": { "alias": "sendButton"; "required": false; }; "sendButtonSettings": { "alias": "sendButtonSettings"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "autoScrollThreshold": { "alias": "autoScrollThreshold"; "required": false; }; "total": { "alias": "total"; "required": false; }; "startIndex": { "alias": "startIndex"; "required": false; }; "endIndex": { "alias": "endIndex"; "required": false; }; "pinnedMessages": { "alias": "pinnedMessages"; "required": false; }; "repliedToMessages": { "alias": "repliedToMessages"; "required": false; }; "modelFields": { "alias": "modelFields"; "required": false; }; "scrollToBottomButton": { "alias": "scrollToBottomButton"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "sendMessage": "sendMessage"; "resendMessage": "resendMessage"; "toolbarActionClick": "toolbarActionClick"; "contextMenuActionClick": "contextMenuActionClick"; "fileActionClick": "fileActionClick"; "download": "download"; "executeAction": "executeAction"; "suggestionExecute": "suggestionExecute"; "fileSelect": "fileSelect"; "fileRemove": "fileRemove"; "unpin": "unpin"; "inputValueChange": "inputValueChange"; "loadMore": "loadMore"; "referencedMessageClick": "referencedMessageClick"; }, ["attachmentTemplate", "chatHeaderTemplate", "chatNoDataTemplate", "authorMessageContentTemplate", "receiverMessageContentTemplate", "messageContentTemplate", "authorMessageTemplate", "receiverMessageTemplate", "messageTemplate", "timestampTemplate", "suggestionTemplate", "statusTemplate", "messageBoxTemplate", "messageBoxStartAffixTemplate", "messageBoxEndAffixTemplate", "messageBoxTopAffixTemplate", "userStatusTemplate"], never, true, never>;
561
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { ChatComponent } from './chat.component';
6
- export { AttachmentTemplateDirective } from './templates/attachment-template.directive';
7
- export { MessageContentTemplateDirective } from './templates/message-content-template.directive';
8
- export { MessageTemplateDirective } from './templates/message-template.directive';
9
- export { ChatUserStatusTemplateDirective } from './templates/user-status-template.directive';
10
- export { ChatMessageBoxTemplateDirective } from './templates/message-box.directive';
11
- export { ChatHeaderTemplateDirective } from './templates/header-template.directive';
12
- export { NoDataTemplateDirective } from './templates/no-data-template.directive';
13
- export { ChatTimestampTemplateDirective } from './templates/timestamp-template.directive';
14
- export { ChatStatusTemplateDirective } from './templates/status-template.directive';
15
- export { AuthorMessageContentTemplateDirective } from './templates/author-message-content-template.directive';
16
- export { ReceiverMessageContentTemplateDirective } from './templates/receiver-message-content-template.directive';
17
- export { ReceiverMessageTemplateDirective } from './templates/receiver-message-template.directive';
18
- export { AuthorMessageTemplateDirective } from './templates/author-message-template.directive';