@progress/kendo-angular-conversational-ui 19.1.1-develop.2 → 19.1.1
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 +26 -15
- package/ai-prompt/aiprompt.module.d.ts +8 -11
- package/ai-prompt/localization/custom-messages.component.d.ts +12 -2
- package/ai-prompt/localization/messages.d.ts +9 -9
- package/ai-prompt/models/command-execute-event.d.ts +4 -4
- package/ai-prompt/models/command.interface.d.ts +4 -4
- package/ai-prompt/models/output-rating-change-event.d.ts +4 -4
- package/ai-prompt/models/prompt-output.interface.d.ts +8 -8
- package/ai-prompt/models/prompt-request-event.d.ts +5 -5
- package/ai-prompt/templates/toolbar-actions.template.d.ts +12 -2
- package/ai-prompt/views/base-view.d.ts +5 -5
- package/ai-prompt/views/command-view.component.d.ts +8 -1
- package/ai-prompt/views/custom-view.component.d.ts +11 -1
- package/ai-prompt/views/output-view.component.d.ts +8 -1
- package/ai-prompt/views/prompt-view.component.d.ts +8 -1
- package/chat/api/action.interface.d.ts +7 -8
- package/chat/api/attachment.interface.d.ts +8 -10
- package/chat/api/execute-action-event.d.ts +6 -4
- package/chat/api/message.interface.d.ts +12 -18
- package/chat/api/post-message-event.d.ts +4 -5
- package/chat/api/user.interface.d.ts +4 -10
- package/chat/attachment-template.directive.d.ts +13 -5
- package/chat/cards/hero-card.component.d.ts +17 -5
- package/chat/chat.component.d.ts +25 -16
- package/chat/chat.module.d.ts +5 -5
- package/chat/common/models/message-box-options.d.ts +1 -1
- package/chat/l10n/custom-messages.component.d.ts +12 -2
- package/chat/l10n/messages.d.ts +6 -7
- package/chat/message-box.directive.d.ts +13 -3
- package/chat/message-template.directive.d.ts +13 -5
- package/conversational-ui.module.d.ts +8 -21
- package/directives.d.ts +48 -3
- package/esm2022/ai-prompt/aiprompt.component.mjs +26 -15
- package/esm2022/ai-prompt/aiprompt.module.mjs +8 -11
- package/esm2022/ai-prompt/localization/custom-messages.component.mjs +12 -2
- package/esm2022/ai-prompt/localization/messages.mjs +9 -9
- package/esm2022/ai-prompt/templates/toolbar-actions.template.mjs +12 -2
- package/esm2022/ai-prompt/views/base-view.mjs +5 -5
- package/esm2022/ai-prompt/views/command-view.component.mjs +8 -1
- package/esm2022/ai-prompt/views/custom-view.component.mjs +11 -1
- package/esm2022/ai-prompt/views/output-view.component.mjs +8 -1
- package/esm2022/ai-prompt/views/prompt-view.component.mjs +8 -1
- package/esm2022/chat/api/action.interface.mjs +0 -1
- package/esm2022/chat/api/execute-action-event.mjs +6 -4
- package/esm2022/chat/api/post-message-event.mjs +4 -5
- package/esm2022/chat/attachment-template.directive.mjs +13 -5
- package/esm2022/chat/cards/hero-card.component.mjs +17 -5
- package/esm2022/chat/chat.component.mjs +25 -16
- package/esm2022/chat/chat.module.mjs +5 -5
- package/esm2022/chat/l10n/custom-messages.component.mjs +12 -2
- package/esm2022/chat/l10n/messages.mjs +6 -7
- package/esm2022/chat/message-box.directive.mjs +13 -3
- package/esm2022/chat/message-template.directive.mjs +13 -5
- package/esm2022/conversational-ui.module.mjs +8 -21
- package/esm2022/directives.mjs +48 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +279 -133
- package/package.json +11 -11
@@ -5,10 +5,20 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Represents a template
|
9
|
-
* The actions
|
8
|
+
* Represents a template for additional Toolbar actions.
|
9
|
+
* The actions appear after the Toolbar buttons for all views.
|
10
|
+
*
|
10
11
|
* To define the template, nest an `<ng-template>` tag
|
11
12
|
* with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* ```html
|
16
|
+
* <kendo-aiprompt>
|
17
|
+
* <ng-template kendoAIPromptToolbarActionsTemplate>
|
18
|
+
* <button kendoButton>Custom Action</button>
|
19
|
+
* </ng-template>
|
20
|
+
* </kendo-aiprompt>
|
21
|
+
* ```
|
12
22
|
*/
|
13
23
|
export class AIPromptToolbarActionsDirective {
|
14
24
|
templateRef;
|
@@ -28,7 +28,7 @@ export class BaseView {
|
|
28
28
|
}
|
29
29
|
}
|
30
30
|
/**
|
31
|
-
*
|
31
|
+
* Sets the text for the Toolbar button of the current view.
|
32
32
|
*/
|
33
33
|
set buttonText(value) {
|
34
34
|
this._buttonText = value;
|
@@ -39,8 +39,8 @@ export class BaseView {
|
|
39
39
|
this.messageFor(`${this.viewType}View`);
|
40
40
|
}
|
41
41
|
/**
|
42
|
-
|
43
|
-
|
42
|
+
* Sets the font icon for the Toolbar button of the current view.
|
43
|
+
*/
|
44
44
|
set icon(value) {
|
45
45
|
if (isPresent(value)) {
|
46
46
|
this._icon = value;
|
@@ -53,8 +53,8 @@ export class BaseView {
|
|
53
53
|
return this._icon;
|
54
54
|
}
|
55
55
|
/**
|
56
|
-
|
57
|
-
|
56
|
+
* Sets the SVG icon for the Toolbar button of the current view.
|
57
|
+
*/
|
58
58
|
set svgIcon(value) {
|
59
59
|
if (isPresent(value)) {
|
60
60
|
this._svgIcon = value;
|
@@ -11,7 +11,14 @@ import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
12
12
|
import * as i2 from "../common/aiprompt.service";
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* Represents the component that renders the **Command** view of the AIPrompt.
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```html
|
18
|
+
* <kendo-aiprompt-command-view
|
19
|
+
* buttonText="My command view">
|
20
|
+
* </kendo-aiprompt-command-view>
|
21
|
+
* ```
|
15
22
|
*/
|
16
23
|
export class CommandViewComponent extends BaseView {
|
17
24
|
service;
|
@@ -8,7 +8,17 @@ import { BaseView } from './base-view';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Represents the component that renders a **Custom** view in the AIPrompt.
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* ```html
|
15
|
+
* <kendo-aiprompt-custom-view [viewTemplate]="customTemplate">
|
16
|
+
* </kendo-aiprompt-custom-view>
|
17
|
+
*
|
18
|
+
* <ng-template #customTemplate>
|
19
|
+
* <div>Custom content here</div>
|
20
|
+
* </ng-template>
|
21
|
+
* ```
|
12
22
|
*/
|
13
23
|
export class CustomViewComponent extends BaseView {
|
14
24
|
constructor(localization) {
|
@@ -12,7 +12,14 @@ import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
13
13
|
import * as i2 from "../common/aiprompt.service";
|
14
14
|
/**
|
15
|
-
*
|
15
|
+
* Represents the component that renders the **Output** view of the AIPrompt.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* ```html
|
19
|
+
* <kendo-aiprompt-output-view
|
20
|
+
* buttonText="My output view">
|
21
|
+
* </kendo-aiprompt-output-view>
|
22
|
+
* ```
|
16
23
|
*/
|
17
24
|
export class OutputViewComponent extends BaseView {
|
18
25
|
service;
|
@@ -15,7 +15,14 @@ import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "@progress/kendo-angular-l10n";
|
16
16
|
import * as i2 from "../common/aiprompt.service";
|
17
17
|
/**
|
18
|
-
*
|
18
|
+
* Represents the component that renders the **Prompt** view of the AIPrompt.
|
19
|
+
*
|
20
|
+
* @example
|
21
|
+
* ```html
|
22
|
+
* <kendo-aiprompt-prompt-view
|
23
|
+
* buttonText="My prompt view">
|
24
|
+
* </kendo-aiprompt-prompt-view>
|
25
|
+
* ```
|
19
26
|
*/
|
20
27
|
export class PromptViewComponent extends BaseView {
|
21
28
|
service;
|
@@ -2,5 +2,4 @@
|
|
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
|
-
// eslint-disable max-line-length
|
6
5
|
export {};
|
@@ -4,16 +4,18 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from "./preventable-event";
|
6
6
|
/**
|
7
|
-
*
|
8
|
-
*
|
7
|
+
* Represents the arguments for the `executeAction` event.
|
8
|
+
*
|
9
|
+
* The `executeAction` event fires when the user clicks a quick action button.
|
10
|
+
* Call `preventDefault()` to suppress the built-in action handler.
|
9
11
|
*/
|
10
12
|
export class ExecuteActionEvent extends PreventableEvent {
|
11
13
|
/**
|
12
|
-
*
|
14
|
+
* Represents the action to execute.
|
13
15
|
*/
|
14
16
|
action;
|
15
17
|
/**
|
16
|
-
*
|
18
|
+
* Represents the message that contains the action.
|
17
19
|
*/
|
18
20
|
message;
|
19
21
|
/**
|
@@ -3,15 +3,14 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
*
|
6
|
+
* Describes the arguments for the `sendMessage` event.
|
8
7
|
*/
|
9
8
|
export class SendMessageEvent {
|
10
9
|
/**
|
11
|
-
*
|
10
|
+
* Represents the message that contains the metadata and user input.
|
12
11
|
*
|
13
|
-
* > The Chat does not automatically
|
14
|
-
* > For more information,
|
12
|
+
* > The Chat does not automatically add the message to its data.
|
13
|
+
* > For more information, see [Data Binding](slug:databinding_chat).
|
15
14
|
*/
|
16
15
|
message;
|
17
16
|
/**
|
@@ -5,12 +5,20 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from "@angular/core";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Defines a template
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoChatAttachmentTemplate` attribute inside the
|
10
|
-
* `<kendo-chat>` component. The template context is set to the attachment instance. For more information,
|
11
|
-
* refer to the article on [message attachments]({% slug attachments_chat %}).
|
8
|
+
* Defines a template for displaying message attachments.
|
12
9
|
*
|
13
|
-
*
|
10
|
+
* To define an attachment template, nest an `<ng-template>` tag with the `kendoChatAttachmentTemplate` attribute inside the `<kendo-chat>` component.
|
11
|
+
* The template context is set to the attachment instance.
|
12
|
+
* For more information, refer to the article on [message attachments](slug:attachments_chat).
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* ```html
|
16
|
+
* <kendo-chat>
|
17
|
+
* <ng-template kendoChatAttachmentTemplate let-attachment>
|
18
|
+
* <div>Attachment: {{ attachment.content }}</div>
|
19
|
+
* </ng-template>
|
20
|
+
* </kendo-chat>
|
21
|
+
* ```
|
14
22
|
*/
|
15
23
|
export class AttachmentTemplateDirective {
|
16
24
|
templateRef;
|
@@ -7,24 +7,33 @@ import { NgIf, NgFor } from '@angular/common';
|
|
7
7
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
/**
|
10
|
-
* Represents a Hero Card component ([see example](
|
10
|
+
* Represents a Hero Card component ([see example](slug:dialogflow_chat)).
|
11
11
|
* Hero cards host a single large image and action buttons with text content.
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* ```html
|
15
|
+
* <kendo-chat-hero-card
|
16
|
+
* title="Card Title"
|
17
|
+
* subtitle="Card Subtitle"
|
18
|
+
* [actions]="actions">
|
19
|
+
* </kendo-chat-hero-card>
|
20
|
+
* ```
|
12
21
|
*/
|
13
22
|
export class HeroCardComponent {
|
14
23
|
/**
|
15
|
-
*
|
24
|
+
* Sets the URL of the hero card image.
|
16
25
|
*/
|
17
26
|
imageUrl;
|
18
27
|
/**
|
19
|
-
*
|
28
|
+
* Sets the title of the hero card.
|
20
29
|
*/
|
21
30
|
title;
|
22
31
|
/**
|
23
|
-
*
|
32
|
+
* Sets the subtitle of the hero card.
|
24
33
|
*/
|
25
34
|
subtitle;
|
26
35
|
/**
|
27
|
-
*
|
36
|
+
* Sets the array of quick actions for this hero card.
|
28
37
|
*/
|
29
38
|
actions;
|
30
39
|
cssClass = true;
|
@@ -32,6 +41,9 @@ export class HeroCardComponent {
|
|
32
41
|
* Fires when the user clicks a button.
|
33
42
|
*/
|
34
43
|
executeAction = new EventEmitter();
|
44
|
+
/**
|
45
|
+
* Emits the `executeAction` event when the user clicks an action button.
|
46
|
+
*/
|
35
47
|
onClick(action) {
|
36
48
|
this.executeAction.next(action);
|
37
49
|
}
|
@@ -17,44 +17,53 @@ import { LocalizedMessagesDirective } from './l10n/localized-messages.directive'
|
|
17
17
|
import * as i0 from "@angular/core";
|
18
18
|
import * as i1 from "@progress/kendo-angular-l10n";
|
19
19
|
/**
|
20
|
-
* Represents the Kendo UI Chat component for Angular.
|
20
|
+
* Represents the [Kendo UI Chat component for Angular](slug:overview_convui).
|
21
21
|
*
|
22
|
-
*
|
22
|
+
* Provides a conversational UI for chat-based applications.
|
23
|
+
* Supports message templates, attachments, localization, and user actions.
|
23
24
|
*
|
25
|
+
* @example
|
26
|
+
* ```html
|
27
|
+
* <kendo-chat
|
28
|
+
* [messages]="messages"
|
29
|
+
* [user]="user"
|
30
|
+
* (sendMessage)="onSendMessage($event)"
|
31
|
+
* (executeAction)="onExecuteAction($event)">
|
32
|
+
* </kendo-chat>
|
33
|
+
* ```
|
24
34
|
*/
|
25
35
|
export class ChatComponent {
|
26
36
|
localization;
|
27
37
|
zone;
|
28
38
|
/**
|
29
|
-
*
|
30
|
-
*
|
39
|
+
* Defines the array of messages displayed in the Chat.
|
40
|
+
* Each message can include a timestamp for unique identification.
|
31
41
|
* For more information, refer to [ngFor - Change Tracking](link:site.data.urls.angular['ngforof']#change-propagation).
|
32
42
|
*/
|
33
43
|
messages;
|
34
44
|
/**
|
35
|
-
*
|
36
|
-
* The User ID
|
45
|
+
* Specifies the [`User`](slug:api_conversational-ui_user) instance representing the local user.
|
46
|
+
* The User ID is used to distinguish messages authored by the local user.
|
37
47
|
*/
|
38
48
|
user;
|
39
49
|
/**
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
50
|
+
* Determines the type of input used in the message box.
|
51
|
+
* Can be set to `textbox` for a single-line input or `textarea` for multi-line input
|
52
|
+
* ([see example](slug:message_box#message-box-types)).
|
53
|
+
* @default 'textbox'
|
43
54
|
*/
|
44
55
|
messageBoxType = 'textbox';
|
45
56
|
/**
|
46
|
-
*
|
47
|
-
* Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
|
57
|
+
* Emits when the user sends a message by clicking the **Send** button or pressing **Enter**.
|
48
58
|
*
|
49
|
-
* > The message is not automatically
|
59
|
+
* > The message is not automatically added to the `messages` array.
|
50
60
|
*/
|
51
61
|
sendMessage = new EventEmitter();
|
52
62
|
/**
|
53
|
-
*
|
54
|
-
* The Chat internally handles
|
63
|
+
* Emits when the user clicks a quick action button.
|
64
|
+
* The Chat internally handles [known actions](slug:api_conversational-ui_actiontype) such as `reply`, `openUrl`, and `call`.
|
55
65
|
*
|
56
|
-
*
|
57
|
-
* The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
|
66
|
+
* The event is preventable—calling `preventDefault` suppresses the built-in action.
|
58
67
|
*/
|
59
68
|
executeAction = new EventEmitter();
|
60
69
|
get className() {
|
@@ -15,7 +15,7 @@ import * as i5 from "./cards/hero-card.component";
|
|
15
15
|
import * as i6 from "./message-box.directive";
|
16
16
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
17
17
|
/**
|
18
|
-
*
|
18
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Chat component.
|
19
19
|
*
|
20
20
|
* @example
|
21
21
|
* ```ts-no-run
|
@@ -24,12 +24,12 @@ import * as i6 from "./message-box.directive";
|
|
24
24
|
* import { BrowserModule } from '@angular/platform-browser';
|
25
25
|
*
|
26
26
|
* import { ChatModule } from '@progress/kendo-angular-conversational-ui';
|
27
|
-
* import { AppComponent }
|
27
|
+
* import { AppComponent } from './app.component';
|
28
28
|
*
|
29
29
|
* _@NgModule({
|
30
|
-
* imports:
|
31
|
-
* declarations: [
|
32
|
-
* bootstrap:
|
30
|
+
* imports: [BrowserModule, ChatModule],
|
31
|
+
* declarations: [AppComponent],
|
32
|
+
* bootstrap: [AppComponent]
|
33
33
|
* })
|
34
34
|
*
|
35
35
|
* export class AppModule { }
|
@@ -9,8 +9,18 @@ import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
// eslint-disable no-forward-ref
|
11
11
|
/**
|
12
|
-
*
|
13
|
-
*
|
12
|
+
* Represents the custom messages component of the Chat.
|
13
|
+
*
|
14
|
+
* Use this component to override default messages for the Chat
|
15
|
+
* ([see example](slug:globalization_chat#custom-messages)).
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* ```html
|
19
|
+
* <kendo-chat-messages
|
20
|
+
* send="Send Message"
|
21
|
+
* messagePlaceholder="Type here...">
|
22
|
+
* </kendo-chat-messages>
|
23
|
+
* ```
|
14
24
|
*/
|
15
25
|
export class CustomMessagesComponent extends Messages {
|
16
26
|
service;
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
10
10
|
*/
|
11
11
|
export class Messages extends ComponentMessages {
|
12
12
|
/**
|
13
|
-
* Sets the placeholder text
|
13
|
+
* Sets the placeholder text for the message text input.
|
14
14
|
*/
|
15
15
|
messagePlaceholder;
|
16
16
|
/**
|
@@ -18,24 +18,23 @@ export class Messages extends ComponentMessages {
|
|
18
18
|
*/
|
19
19
|
send;
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Sets the label for the message list.
|
22
22
|
*/
|
23
23
|
messageListLabel;
|
24
24
|
/**
|
25
|
-
*
|
26
|
-
*
|
25
|
+
* Sets the label for the message input box.
|
27
26
|
*/
|
28
27
|
messageBoxInputLabel;
|
29
28
|
/**
|
30
|
-
*
|
29
|
+
* Sets the text for the left arrow of the message attachments.
|
31
30
|
*/
|
32
31
|
messageAttachmentLeftArrow;
|
33
32
|
/**
|
34
|
-
*
|
33
|
+
* Sets the text for the right arrow of the message attachments.
|
35
34
|
*/
|
36
35
|
messageAttachmentRightArrow;
|
37
36
|
/**
|
38
|
-
*
|
37
|
+
* Sets the `alt` attribute text for the avatar image.
|
39
38
|
*/
|
40
39
|
messageAvatarAlt;
|
41
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
@@ -5,9 +5,19 @@
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Creates a message box area that overrides the default message box of the
|
9
|
-
*
|
10
|
-
*
|
8
|
+
* Creates a message box area that overrides the default message box of the Chat component.
|
9
|
+
*
|
10
|
+
* To define a message box template, nest an `<ng-template>` tag with the `kendoChatMessageBoxTemplate` directive inside the `<kendo-chat>` tag.
|
11
|
+
* For more information, see [Message Box Template](slug:message_box#toc-message-box-template).
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* ```html
|
15
|
+
* <kendo-chat>
|
16
|
+
* <ng-template kendoChatMessageBoxTemplate>
|
17
|
+
* <input type="text" placeholder="Custom message box..." />
|
18
|
+
* </ng-template>
|
19
|
+
* </kendo-chat>
|
20
|
+
* ```
|
11
21
|
*/
|
12
22
|
export class ChatMessageBoxTemplateDirective {
|
13
23
|
templateRef;
|
@@ -5,12 +5,20 @@
|
|
5
5
|
import { Directive, Optional, TemplateRef } from "@angular/core";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Defines a template
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoChatMessageTemplate` attribute inside the
|
10
|
-
* `<kendo-chat>` component. The template context is set to the message instance. For more information,
|
11
|
-
* refer to the article on [message templates]({% slug message_templates_chat %}).
|
8
|
+
* Defines a template for displaying Chat messages.
|
12
9
|
*
|
13
|
-
*
|
10
|
+
* To define a message template, nest an `<ng-template>` tag with the `kendoChatMessageTemplate` 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 kendoChatMessageTemplate let-message>
|
18
|
+
* <div>Message: {{ message.text }}</div>
|
19
|
+
* </ng-template>
|
20
|
+
* </kendo-chat>
|
21
|
+
* ```
|
14
22
|
*/
|
15
23
|
export class MessageTemplateDirective {
|
16
24
|
templateRef;
|
@@ -25,34 +25,21 @@ import * as i13 from "./chat/cards/hero-card.component";
|
|
25
25
|
import * as i14 from "./chat/message-box.directive";
|
26
26
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
27
27
|
/**
|
28
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
29
|
-
* definition for the Conversational UI components.
|
28
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Conversational UI components.
|
30
29
|
*
|
31
30
|
* @example
|
32
|
-
*
|
33
|
-
* ```ts-no-run
|
34
|
-
* // Import the Conversational UI module
|
35
|
-
* import { ConversationalUIModule } from '@progress/kendo-angular-conversational-ui';
|
36
|
-
*
|
37
|
-
* // The browser platform with a compiler
|
38
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
39
|
-
*
|
31
|
+
* ```ts
|
40
32
|
* import { NgModule } from '@angular/core';
|
41
|
-
*
|
42
|
-
*
|
33
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
34
|
+
* import { ConversationalUIModule } from '@progress/kendo-angular-conversational-ui';
|
43
35
|
* import { AppComponent } from './app.component';
|
44
36
|
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
* bootstrap: [AppComponent]
|
37
|
+
* @NgModule({
|
38
|
+
* declarations: [AppComponent],
|
39
|
+
* imports: [BrowserModule, ConversationalUIModule],
|
40
|
+
* bootstrap: [AppComponent]
|
50
41
|
* })
|
51
42
|
* export class AppModule {}
|
52
|
-
*
|
53
|
-
* // Compile and launch the module
|
54
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
55
|
-
*
|
56
43
|
* ```
|
57
44
|
*/
|
58
45
|
export class ConversationalUIModule {
|
package/esm2022/directives.mjs
CHANGED
@@ -16,7 +16,21 @@ import { MessageTemplateDirective } from "./chat/message-template.directive";
|
|
16
16
|
import { HeroCardComponent } from "./chat/cards/hero-card.component";
|
17
17
|
import { ChatMessageBoxTemplateDirective } from "./chat/message-box.directive";
|
18
18
|
/**
|
19
|
-
* Utility array that contains all
|
19
|
+
* Utility array that contains all AIPrompt related components and directives.
|
20
|
+
*
|
21
|
+
* @example
|
22
|
+
* ```ts
|
23
|
+
* import { Component } from '@angular/core';
|
24
|
+
* import { KENDO_AIPROMPT } from '@progress/kendo-angular-conversational-ui';
|
25
|
+
*
|
26
|
+
* @Component({
|
27
|
+
* standalone: true,
|
28
|
+
* imports: [KENDO_AIPROMPT],
|
29
|
+
* selector: 'my-app',
|
30
|
+
* template: `<kendo-aiprompt></kendo-aiprompt>`
|
31
|
+
* })
|
32
|
+
* export class AppComponent {}
|
33
|
+
* ```
|
20
34
|
*/
|
21
35
|
export const KENDO_AIPROMPT = [
|
22
36
|
AIPromptComponent,
|
@@ -29,7 +43,21 @@ export const KENDO_AIPROMPT = [
|
|
29
43
|
AIPromptToolbarFocusableDirective
|
30
44
|
];
|
31
45
|
/**
|
32
|
-
* Utility array that contains all
|
46
|
+
* Utility array that contains all Chat related components and directives.
|
47
|
+
*
|
48
|
+
* @example
|
49
|
+
* ```ts
|
50
|
+
* import { Component } from '@angular/core';
|
51
|
+
* import { KENDO_CHAT } from '@progress/kendo-angular-conversational-ui';
|
52
|
+
*
|
53
|
+
* @Component({
|
54
|
+
* standalone: true,
|
55
|
+
* imports: [KENDO_CHAT],
|
56
|
+
* selector: 'my-app',
|
57
|
+
* template: `<kendo-chat></kendo-chat>`
|
58
|
+
* })
|
59
|
+
* export class AppComponent {}
|
60
|
+
* ```
|
33
61
|
*/
|
34
62
|
export const KENDO_CHAT = [
|
35
63
|
ChatComponent,
|
@@ -40,7 +68,24 @@ export const KENDO_CHAT = [
|
|
40
68
|
ChatMessageBoxTemplateDirective
|
41
69
|
];
|
42
70
|
/**
|
43
|
-
* Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives
|
71
|
+
* Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives.
|
72
|
+
*
|
73
|
+
* @example
|
74
|
+
* ```ts
|
75
|
+
* import { Component } from '@angular/core';
|
76
|
+
* import { KENDO_CONVERSATIONALUI } from '@progress/kendo-angular-conversational-ui';
|
77
|
+
*
|
78
|
+
* @Component({
|
79
|
+
* standalone: true,
|
80
|
+
* imports: [KENDO_CONVERSATIONALUI],
|
81
|
+
* selector: 'my-app',
|
82
|
+
* template: `
|
83
|
+
* <kendo-aiprompt></kendo-aiprompt>
|
84
|
+
* <kendo-chat></kendo-chat>
|
85
|
+
* `
|
86
|
+
* })
|
87
|
+
* export class AppComponent {}
|
88
|
+
* ```
|
44
89
|
*/
|
45
90
|
export const KENDO_CONVERSATIONALUI = [
|
46
91
|
...KENDO_AIPROMPT,
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
13
|
-
publishDate:
|
14
|
-
version: '19.1.1
|
13
|
+
publishDate: 1749540414,
|
14
|
+
version: '19.1.1',
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
16
16
|
};
|