@progress/kendo-angular-conversational-ui 22.1.0-develop.9 → 23.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.
- package/ai-prompt/aiprompt.component.d.ts +3 -3
- package/ai-prompt/localization/custom-messages.component.d.ts +1 -1
- package/ai-prompt/models/command-execute-event.d.ts +1 -1
- package/ai-prompt/models/command.interface.d.ts +2 -2
- package/ai-prompt/models/output-rating-change-event.d.ts +1 -1
- package/ai-prompt/models/prompt-request-event.d.ts +1 -1
- package/chat/api/action.interface.d.ts +3 -3
- package/chat/api/attachment.interface.d.ts +1 -1
- package/chat/api/chat-file-interface.d.ts +9 -9
- package/chat/api/chat-suggestion.interface.d.ts +5 -5
- package/chat/api/file-action.d.ts +8 -8
- package/chat/api/message-action.d.ts +8 -8
- package/chat/api/message-box.d.ts +28 -0
- package/chat/api/message-settings.interface.d.ts +9 -9
- package/chat/api/message-status.interface.d.ts +19 -0
- package/chat/api/message.interface.d.ts +7 -2
- package/chat/api/post-message-event.d.ts +10 -1
- package/chat/api/send-button-settings.d.ts +11 -2
- package/chat/api/user.interface.d.ts +2 -2
- package/chat/cards/hero-card.component.d.ts +5 -5
- package/chat/chat.component.d.ts +45 -14
- package/chat/common/chat.service.d.ts +14 -8
- package/chat/common/models/model-fields.d.ts +7 -1
- package/chat/common/scroll-anchor.directive.d.ts +10 -2
- package/chat/common/utils.d.ts +4 -2
- package/chat/l10n/custom-messages.component.d.ts +1 -1
- package/chat/l10n/messages.d.ts +15 -3
- package/chat/message-box.component.d.ts +16 -16
- package/chat/message.component.d.ts +7 -0
- package/chat/suggested-actions.component.d.ts +8 -1
- package/chat/templates/attachment-template.directive.d.ts +1 -1
- package/chat/templates/author-message-content-template.directive.d.ts +1 -1
- package/chat/templates/author-message-template.directive.d.ts +1 -1
- package/chat/templates/message-box.directive.d.ts +1 -1
- package/chat/templates/message-content-template.directive.d.ts +1 -1
- package/chat/templates/message-template.directive.d.ts +1 -1
- package/chat/templates/no-data-template.directive.d.ts +1 -1
- package/chat/templates/receiver-message-content-template.directive.d.ts +1 -1
- package/chat/templates/receiver-message-template.directive.d.ts +1 -1
- package/chat/templates/timestamp-template.directive.d.ts +1 -1
- package/chat/templates/user-status-template.directive.d.ts +1 -1
- package/conversational-ui.module.d.ts +10 -1
- package/directives.d.ts +28 -1
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +3938 -1389
- package/index.d.ts +11 -1
- package/inline-ai-prompt/localization/custom-messages.component.d.ts +1 -1
- package/inline-ai-prompt/models/command.interface.d.ts +2 -2
- package/package-metadata.mjs +2 -2
- package/package.json +14 -14
- package/promptbox/affixes/promptbox-end-affix.component.d.ts +26 -0
- package/promptbox/affixes/promptbox-start-affix.component.d.ts +26 -0
- package/promptbox/affixes/promptbox-top-affix.component.d.ts +26 -0
- package/promptbox/common/header-template.directive.d.ts +17 -0
- package/promptbox/common/models/action-button.d.ts +62 -0
- package/promptbox/common/models/fileselect-button.d.ts +62 -0
- package/{chat/common/models/message-box-options.d.ts → promptbox/common/models/index.d.ts} +3 -5
- package/promptbox/common/models/promptbox-mode.d.ts +12 -0
- package/promptbox/common/utils.d.ts +18 -0
- package/promptbox/localization/custom-messages.component.d.ts +26 -0
- package/promptbox/localization/localized-messages.directive.d.ts +16 -0
- package/promptbox/localization/messages.d.ts +37 -0
- package/promptbox/promptbox.component.d.ts +383 -0
- package/promptbox/tools/action-button.component.d.ts +63 -0
- package/promptbox/tools/base-tool.d.ts +62 -0
- package/promptbox/tools/fileselect-button.component.d.ts +63 -0
- package/promptbox/tools/promptbox-file.component.d.ts +30 -0
- package/promptbox/tools/speech-to-text-button.component.d.ts +87 -0
|
@@ -16,7 +16,7 @@ import { AIPromptOutputBodyTemplateDirective } from "./templates/aiprompt-output
|
|
|
16
16
|
import { TextAreaSettings } from "@progress/kendo-angular-inputs";
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
/**
|
|
19
|
-
* Represents the [Kendo UI AIPrompt component for Angular](
|
|
19
|
+
* Represents the [Kendo UI AIPrompt component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt).
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```html
|
|
@@ -93,12 +93,12 @@ export declare class AIPromptComponent implements OnInit, OnChanges, AfterConten
|
|
|
93
93
|
streaming: boolean;
|
|
94
94
|
/**
|
|
95
95
|
* Sets the settings for the Speech to Text button in the Prompt view
|
|
96
|
-
* ([see example](
|
|
96
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/configuration#enabling-speech-to-text)).
|
|
97
97
|
*/
|
|
98
98
|
set speechToTextButton(settings: boolean | SpeechToTextButtonSettings);
|
|
99
99
|
/**
|
|
100
100
|
* Sets the settings for the TextArea in the Prompt view
|
|
101
|
-
* ([see example](
|
|
101
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/configuration#configuring-the-prompt-text-area)).
|
|
102
102
|
*/
|
|
103
103
|
set textAreaSettings(settings: TextAreaSettings);
|
|
104
104
|
/**
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* Represents the custom messages component of the AIPrompt.
|
|
10
10
|
*
|
|
11
11
|
* Use this component to override default messages for the AIPrompt
|
|
12
|
-
* ([see example](
|
|
12
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/globalization#custom-messages)).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```html
|
|
@@ -6,7 +6,7 @@ import { AIPromptComponent } from "../aiprompt.component";
|
|
|
6
6
|
import { PromptCommand } from "./command.interface";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the arguments for the `commandExecute` event of the AIPrompt
|
|
9
|
-
* ([see example](
|
|
9
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/events)).
|
|
10
10
|
*/
|
|
11
11
|
export interface CommandExecuteEvent {
|
|
12
12
|
/**
|
|
@@ -16,11 +16,11 @@ export interface PromptCommand {
|
|
|
16
16
|
*/
|
|
17
17
|
text?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Specifies the name of the [font icon](
|
|
19
|
+
* Specifies the name of the [font icon](https://www.telerik.com/kendo-angular-ui/components/styling/icons#icons-list) to render for the command.
|
|
20
20
|
*/
|
|
21
21
|
icon?: string;
|
|
22
22
|
/**
|
|
23
|
-
* Specifies the name of the [SVG icon](
|
|
23
|
+
* Specifies the name of the [SVG icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list) to render for the command.
|
|
24
24
|
*/
|
|
25
25
|
svgIcon?: SVGIcon;
|
|
26
26
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { PromptOutput, PromptOutputRating } from "./prompt-output.interface";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the arguments for the `outputRatingChange` event of the AIPrompt
|
|
8
|
-
* ([see example](
|
|
8
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/events)).
|
|
9
9
|
*/
|
|
10
10
|
export interface OutputRatingChangeEvent {
|
|
11
11
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { AIPromptComponent } from "../aiprompt.component";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the arguments for the `promptRequest` event of the AIPrompt
|
|
8
|
-
* ([see example](
|
|
8
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/events)).
|
|
9
9
|
*/
|
|
10
10
|
export interface PromptRequestEvent {
|
|
11
11
|
/**
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Specifies the button type of a quick action ([see example](
|
|
6
|
+
* Specifies the button type of a quick action ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message)).
|
|
7
7
|
* * `openUrl`—Opens a new browser window with the specified URL.
|
|
8
8
|
* * `reply`—Sends the action value as a reply in the Chat.
|
|
9
9
|
* * `call`—Treats the value as a phone number. Similar to clicking a [telephone link](https://css-tricks.com/the-current-state-of-telephone-links/).
|
|
10
|
-
* * other—Handled by user code in the [`executeAction`](
|
|
10
|
+
* * other—Handled by user code in the [`executeAction`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#executeaction) event.
|
|
11
11
|
*/
|
|
12
12
|
export type ActionType = 'openUrl' | 'reply' | 'call' | string;
|
|
13
13
|
/**
|
|
14
14
|
* Defines a quick action for a message.
|
|
15
|
-
* The value is interpreted according to the specified `ActionType
|
|
15
|
+
* The value is interpreted according to the specified [`ActionType`](slug:api_conversational-ui_actiontype).
|
|
16
16
|
*/
|
|
17
17
|
export interface Action {
|
|
18
18
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents a message attachment ([see example](
|
|
6
|
+
* Represents a message attachment ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/attachments)).
|
|
7
7
|
*/
|
|
8
8
|
export interface Attachment {
|
|
9
9
|
/**
|
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents the files
|
|
6
|
+
* Represents the files attached to a message.
|
|
7
7
|
*/
|
|
8
8
|
export interface ChatFile {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the unique identifier for the file.
|
|
11
11
|
*/
|
|
12
12
|
id: string | number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the file name.
|
|
15
15
|
*/
|
|
16
16
|
name: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the file size in bytes.
|
|
19
19
|
*/
|
|
20
20
|
size: number;
|
|
21
21
|
/**
|
|
22
|
-
* MIME type,
|
|
22
|
+
* Sets the MIME type, for example, `'application/pdf'`.
|
|
23
23
|
*/
|
|
24
24
|
type: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Sets the file extension, for example, `'.pdf'` or `'.jpg'`.
|
|
27
27
|
*/
|
|
28
28
|
extension: string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Provides an in-memory representation of the file.
|
|
31
31
|
*/
|
|
32
32
|
rawFile?: File;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the optional URL to download or view the file.
|
|
35
35
|
*/
|
|
36
36
|
url?: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the optional preview image URL.
|
|
39
39
|
*/
|
|
40
40
|
thumbnailUrl?: string;
|
|
41
41
|
}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents the Chat
|
|
6
|
+
* Represents the Chat suggestions displayed above the message box.
|
|
7
7
|
*/
|
|
8
8
|
export interface ChatSuggestion {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the unique identifier for the suggestion.
|
|
11
11
|
*/
|
|
12
12
|
id: string | number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the display text for the suggestion.
|
|
15
15
|
*/
|
|
16
16
|
text: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the optional description for the suggestion.
|
|
19
19
|
*/
|
|
20
20
|
description?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Determines whether the suggestion is disabled.
|
|
23
23
|
*/
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
}
|
|
@@ -6,37 +6,37 @@ import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
|
6
6
|
import { ChatFile } from "./chat-file-interface";
|
|
7
7
|
/**
|
|
8
8
|
* Defines the structure of a file action in the Chat message.
|
|
9
|
-
*
|
|
9
|
+
* Use these actions to perform specific operations on files.
|
|
10
10
|
*/
|
|
11
11
|
export interface FileAction {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the unique identifier for the action.
|
|
14
14
|
*/
|
|
15
15
|
id: string | number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets the display text for the action.
|
|
18
18
|
*/
|
|
19
19
|
label: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the icon name for the action.
|
|
22
22
|
*/
|
|
23
23
|
icon?: string;
|
|
24
24
|
/**
|
|
25
|
-
* SVG icon object for the action.
|
|
25
|
+
* Sets the SVG icon object for the action.
|
|
26
26
|
*/
|
|
27
27
|
svgIcon?: SVGIcon;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Determines whether the action is disabled.
|
|
30
30
|
*/
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
}
|
|
33
33
|
export interface FileActionEvent {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Specifies the file action that was triggered.
|
|
36
36
|
*/
|
|
37
37
|
action: FileAction;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Specifies the file associated with the action.
|
|
40
40
|
*/
|
|
41
41
|
file: ChatFile;
|
|
42
42
|
}
|
|
@@ -6,37 +6,37 @@ import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
|
6
6
|
import { Message } from "./message.interface";
|
|
7
7
|
/**
|
|
8
8
|
* Defines the structure of a message action in the Chat interface.
|
|
9
|
-
*
|
|
9
|
+
* Use these actions to perform specific operations on messages.
|
|
10
10
|
*/
|
|
11
11
|
export interface MessageAction {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the unique identifier for the action.
|
|
14
14
|
*/
|
|
15
15
|
id: string | number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets the display text for the action.
|
|
18
18
|
*/
|
|
19
19
|
label: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the icon name for the action.
|
|
22
22
|
*/
|
|
23
23
|
icon?: string;
|
|
24
24
|
/**
|
|
25
|
-
* SVG icon object for the action.
|
|
25
|
+
* Sets the SVG icon object for the action.
|
|
26
26
|
*/
|
|
27
27
|
svgIcon?: SVGIcon;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Determines whether the action is disabled.
|
|
30
30
|
*/
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
}
|
|
33
33
|
export interface MessageActionEvent {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Specifies the action that was triggered.
|
|
36
36
|
*/
|
|
37
37
|
action: MessageAction;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Specifies the message associated with the action.
|
|
40
40
|
*/
|
|
41
41
|
message: Message;
|
|
42
42
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PromptBoxMode } from "../../promptbox/common/models/promptbox-mode";
|
|
6
|
+
/**
|
|
7
|
+
* Represents the possible message box options for the Chat component.
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export type MessageBoxType = 'textarea';
|
|
11
|
+
/**
|
|
12
|
+
* Settings for the message box in the Chat component.
|
|
13
|
+
*/
|
|
14
|
+
export interface MessageBoxSettings {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the line mode of the message box.
|
|
17
|
+
*/
|
|
18
|
+
mode?: PromptBoxMode;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the number of visible text lines for the message box.
|
|
21
|
+
* Applies when `mode` is set to `multi`.
|
|
22
|
+
*/
|
|
23
|
+
rows?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the maximum height of the message box in pixels.
|
|
26
|
+
*/
|
|
27
|
+
maxHeight?: number;
|
|
28
|
+
}
|
|
@@ -6,7 +6,7 @@ import { FileAction } from "./file-action";
|
|
|
6
6
|
import { MessageAction } from "./message-action";
|
|
7
7
|
import { MessageWidthMode } from "./message-width-mode";
|
|
8
8
|
/**
|
|
9
|
-
* Represents the settings for the Chat message ([see example](
|
|
9
|
+
* Represents the settings for the Chat message ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/data-binding)).
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
export interface MessageSettings {
|
|
@@ -15,27 +15,27 @@ export interface MessageSettings {
|
|
|
15
15
|
*/
|
|
16
16
|
allowMessageCollapse?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Sets the array of actions
|
|
19
|
-
|
|
18
|
+
* Sets the array of actions displayed in the message toolbar.
|
|
19
|
+
*/
|
|
20
20
|
messageToolbarActions?: MessageAction[];
|
|
21
21
|
/**
|
|
22
|
-
* Sets the array of actions
|
|
23
|
-
|
|
22
|
+
* Sets the array of actions displayed in the message context menu.
|
|
23
|
+
*/
|
|
24
24
|
messageContextMenuActions?: MessageAction[];
|
|
25
25
|
/**
|
|
26
|
-
* Sets the array of actions
|
|
26
|
+
* Sets the array of actions displayed for message files.
|
|
27
27
|
*/
|
|
28
28
|
fileActions?: FileAction[];
|
|
29
29
|
/**
|
|
30
|
-
* Sets the mode
|
|
30
|
+
* Sets the mode used to determine message width.
|
|
31
31
|
*/
|
|
32
32
|
messageWidthMode?: MessageWidthMode;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Controls the visibility of the author's avatar in the message group.
|
|
35
35
|
*/
|
|
36
36
|
showAvatar?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Controls the visibility of the author's username in the message group.
|
|
39
39
|
*/
|
|
40
40
|
showUsername?: boolean;
|
|
41
41
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
|
+
export interface MessageStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the text for the message status.
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the icon for the message status.
|
|
13
|
+
*/
|
|
14
|
+
icon?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the SVG icon for the message status.
|
|
17
|
+
*/
|
|
18
|
+
svgIcon?: SVGIcon;
|
|
19
|
+
}
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
import { Action } from './action.interface';
|
|
6
6
|
import { Attachment, AttachmentLayout } from './attachment.interface';
|
|
7
7
|
import { ChatFile } from './chat-file-interface';
|
|
8
|
+
import { MessageStatus } from './message-status.interface';
|
|
8
9
|
import { User } from './user.interface';
|
|
9
10
|
/**
|
|
10
|
-
* Represents a Chat message ([see example](
|
|
11
|
+
* Represents a Chat message ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/data-binding)).
|
|
11
12
|
*
|
|
12
13
|
*/
|
|
13
14
|
export interface Message {
|
|
@@ -30,7 +31,7 @@ export interface Message {
|
|
|
30
31
|
/**
|
|
31
32
|
* Sets the current status of the message. The status appears when the message is selected by clicking or through keyboard navigation.
|
|
32
33
|
*/
|
|
33
|
-
status?: string;
|
|
34
|
+
status?: string | MessageStatus;
|
|
34
35
|
/**
|
|
35
36
|
* Sets the array of files attached to the message.
|
|
36
37
|
*/
|
|
@@ -65,6 +66,10 @@ export interface Message {
|
|
|
65
66
|
* Indicates if the message is still being typed by the user. If `true`, the Chat shows a typing indicator.
|
|
66
67
|
*/
|
|
67
68
|
typing?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Indicates if sending the message has failed.
|
|
71
|
+
*/
|
|
72
|
+
failed?: boolean;
|
|
68
73
|
/**
|
|
69
74
|
* Provides a reference to the original data item, if any.
|
|
70
75
|
*/
|
|
@@ -10,7 +10,7 @@ export declare class SendMessageEvent {
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents the message that contains the metadata and user input.
|
|
12
12
|
*
|
|
13
|
-
* The Chat does not automatically add the message to its data. For more information, see [Data Binding](
|
|
13
|
+
* The Chat does not automatically add the message to its data. For more information, see [Data Binding](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/data-binding).
|
|
14
14
|
*/
|
|
15
15
|
message: Message;
|
|
16
16
|
/**
|
|
@@ -18,3 +18,12 @@ export declare class SendMessageEvent {
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(message: Message);
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Describes the arguments for the `resendMessage` event.
|
|
23
|
+
*/
|
|
24
|
+
export interface ResendMessageEvent {
|
|
25
|
+
/**
|
|
26
|
+
* Represents the message that failed to send.
|
|
27
|
+
*/
|
|
28
|
+
message: Message;
|
|
29
|
+
}
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ButtonSettings } from '@progress/kendo-angular-buttons';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
6
7
|
/**
|
|
7
8
|
* Defines the settings for the Send button in the Chat component.
|
|
8
|
-
*
|
|
9
|
+
* Customize these settings to change the button appearance and behavior.
|
|
9
10
|
*/
|
|
10
11
|
export interface SendButtonSettings extends ButtonSettings {
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* Sets the CSS class applied to the Button.
|
|
13
14
|
*/
|
|
14
15
|
buttonClass?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the icon displayed while the Chat is in loading state.
|
|
18
|
+
*/
|
|
19
|
+
loadingIcon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the SVG icon displayed while the Chat is in loading state.
|
|
22
|
+
*/
|
|
23
|
+
loadingSVGIcon?: SVGIcon;
|
|
15
24
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { SafeUrl } from '@angular/platform-browser';
|
|
6
6
|
/**
|
|
7
|
-
* Represents a participant in a Chat conversation ([see example](
|
|
7
|
+
* Represents a participant in a Chat conversation ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat)).
|
|
8
8
|
*/
|
|
9
9
|
export interface User {
|
|
10
10
|
/**
|
|
@@ -21,7 +21,7 @@ export interface User {
|
|
|
21
21
|
*/
|
|
22
22
|
avatarUrl?: string | SafeUrl;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the alt text for the user's avatar image.
|
|
25
25
|
*/
|
|
26
26
|
avatarAltText?: string;
|
|
27
27
|
}
|
|
@@ -24,24 +24,24 @@ export declare class HeroCardComponent {
|
|
|
24
24
|
*/
|
|
25
25
|
imageUrl: string;
|
|
26
26
|
/**
|
|
27
|
-
* Sets the title
|
|
27
|
+
* Sets the title text displayed in the hero card.
|
|
28
28
|
*/
|
|
29
29
|
title: string;
|
|
30
30
|
/**
|
|
31
|
-
* Sets the subtitle
|
|
31
|
+
* Sets the subtitle text displayed below the title.
|
|
32
32
|
*/
|
|
33
33
|
subtitle: string;
|
|
34
34
|
/**
|
|
35
|
-
* Sets the array of quick actions
|
|
35
|
+
* Sets the array of quick actions displayed as buttons.
|
|
36
36
|
*/
|
|
37
37
|
actions: Action[];
|
|
38
38
|
cssClass: boolean;
|
|
39
39
|
/**
|
|
40
|
-
* Fires when the user clicks
|
|
40
|
+
* Fires when the user clicks an action button.
|
|
41
41
|
*/
|
|
42
42
|
executeAction: EventEmitter<Action>;
|
|
43
43
|
/**
|
|
44
|
-
* Emits the `executeAction` event when
|
|
44
|
+
* Emits the `executeAction` event when you click an action button.
|
|
45
45
|
*/
|
|
46
46
|
onClick(action: any): void;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeroCardComponent, never>;
|