@progress/kendo-angular-conversational-ui 20.1.2-develop.2 → 21.0.0-develop.11
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/codemods/template-transformer/index.js +1 -2
- package/codemods/utils.js +2 -2
- package/codemods/v20/chat-user.js +1 -1
- package/conversational-ui.module.d.ts +18 -11
- package/directives.d.ts +9 -2
- package/esm2022/ai-prompt/aiprompt.component.mjs +13 -11
- package/esm2022/ai-prompt/aiprompt.module.mjs +4 -4
- package/esm2022/ai-prompt/common/aiprompt.service.mjs +3 -3
- package/esm2022/ai-prompt/common/output-card.component.mjs +4 -4
- package/esm2022/ai-prompt/common/toolbar-focusable.directive.mjs +4 -4
- package/esm2022/ai-prompt/common/toolbar-navigation.service.mjs +4 -4
- package/esm2022/ai-prompt/localization/custom-messages.component.mjs +4 -4
- package/esm2022/ai-prompt/localization/localized-messages.directive.mjs +4 -4
- package/esm2022/ai-prompt/localization/messages.mjs +3 -3
- package/esm2022/ai-prompt/templates/aiprompt-output-body-template.directive.mjs +4 -4
- package/esm2022/ai-prompt/templates/aiprompt-output-template.directive.mjs +4 -4
- package/esm2022/ai-prompt/templates/toolbar-actions.template.mjs +5 -5
- package/esm2022/ai-prompt/views/base-view.mjs +5 -5
- package/esm2022/ai-prompt/views/command-view.component.mjs +4 -4
- package/esm2022/ai-prompt/views/custom-view.component.mjs +4 -4
- package/esm2022/ai-prompt/views/output-view.component.mjs +4 -4
- package/esm2022/ai-prompt/views/prompt-view.component.mjs +4 -4
- 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/attachment.component.mjs +3 -3
- package/esm2022/chat/builtin-actions.mjs +2 -0
- package/esm2022/chat/cards/hero-card.component.mjs +3 -3
- package/esm2022/chat/chat-file.component.mjs +6 -6
- package/esm2022/chat/chat.component.mjs +268 -74
- package/esm2022/chat/chat.directives.mjs +18 -0
- package/esm2022/chat/chat.module.mjs +18 -11
- package/esm2022/chat/common/chat.service.mjs +86 -7
- package/esm2022/chat/common/models/default-model-fields.mjs +0 -1
- package/esm2022/chat/common/scroll-anchor.directive.mjs +4 -4
- 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/custom-messages.component.mjs +4 -4
- package/esm2022/chat/l10n/localized-messages.directive.mjs +4 -4
- package/esm2022/chat/l10n/messages.mjs +15 -3
- package/esm2022/chat/message-attachments.component.mjs +6 -6
- package/esm2022/chat/message-box.component.mjs +12 -7
- package/esm2022/chat/message-list.component.mjs +168 -22
- package/esm2022/chat/message-reference-content.component.mjs +4 -4
- package/esm2022/chat/message.component.mjs +491 -328
- package/esm2022/chat/suggested-actions.component.mjs +299 -81
- package/esm2022/chat/templates/attachment-template.directive.mjs +5 -5
- 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/header-template.directive.mjs +4 -4
- package/esm2022/chat/templates/message-box.directive.mjs +4 -4
- package/esm2022/chat/templates/message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/message-template.directive.mjs +6 -6
- 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/status-template.directive.mjs +4 -4
- package/esm2022/chat/templates/suggestion-template.directive.mjs +4 -4
- package/esm2022/chat/templates/timestamp-template.directive.mjs +5 -5
- package/esm2022/chat/templates/user-status-template.directive.mjs +38 -0
- package/esm2022/conversational-ui.module.mjs +21 -14
- package/esm2022/directives.mjs +15 -1
- package/esm2022/index.mjs +7 -0
- package/esm2022/inline-ai-prompt/inlineaiprompt-content.component.mjs +5 -5
- package/esm2022/inline-ai-prompt/inlineaiprompt.component.mjs +4 -4
- package/esm2022/inline-ai-prompt/inlineaiprompt.module.mjs +4 -4
- package/esm2022/inline-ai-prompt/inlineaiprompt.service.mjs +4 -4
- package/esm2022/inline-ai-prompt/localization/custom-messages.component.mjs +4 -4
- package/esm2022/inline-ai-prompt/localization/localized-messages.directive.mjs +4 -4
- package/esm2022/inline-ai-prompt/localization/messages.mjs +3 -3
- package/esm2022/inline-ai-prompt/output-template.directive.mjs +5 -5
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +1969 -739
- package/index.d.ts +7 -0
- package/package.json +18 -18
- package/schematics/ngAdd/index.js +1 -1
- /package/esm2022/chat/api/{message-toolbar-visibility.mjs → files-layout.mjs} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
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 { Directive, Optional, 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 class MessageContentTemplateDirective {
|
|
24
|
+
templateRef;
|
|
25
|
+
constructor(templateRef) {
|
|
26
|
+
this.templateRef = templateRef;
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessageContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: MessageContentTemplateDirective, isStandalone: true, selector: "[kendoChatMessageContentTemplate]", ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessageContentTemplateDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[kendoChatMessageContentTemplate]',
|
|
35
|
+
standalone: true
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
38
|
+
type: Optional
|
|
39
|
+
}] }] });
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Directive, Optional, 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.
|
|
@@ -25,15 +25,15 @@ export class MessageTemplateDirective {
|
|
|
25
25
|
constructor(templateRef) {
|
|
26
26
|
this.templateRef = templateRef;
|
|
27
27
|
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessageTemplateDirective, decorators: [{
|
|
32
32
|
type: Directive,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: '[kendoChatMessageTemplate]',
|
|
35
35
|
standalone: true
|
|
36
36
|
}]
|
|
37
|
-
}], ctorParameters:
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
38
38
|
type: Optional
|
|
39
|
-
}] }]
|
|
39
|
+
}] }] });
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Directive, Optional, 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 class NoDataTemplateDirective {
|
|
23
|
+
templateRef;
|
|
24
|
+
constructor(templateRef) {
|
|
25
|
+
this.templateRef = templateRef;
|
|
26
|
+
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NoDataTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: NoDataTemplateDirective, isStandalone: true, selector: "[kendoChatNoDataTemplate]", ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NoDataTemplateDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[kendoChatNoDataTemplate]',
|
|
34
|
+
standalone: true
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
37
|
+
type: Optional
|
|
38
|
+
}] }] });
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { Directive, Optional, 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 class ReceiverMessageContentTemplateDirective {
|
|
24
|
+
templateRef;
|
|
25
|
+
constructor(templateRef) {
|
|
26
|
+
this.templateRef = templateRef;
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReceiverMessageContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ReceiverMessageContentTemplateDirective, isStandalone: true, selector: "[kendoChatReceiverMessageContentTemplate]", ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReceiverMessageContentTemplateDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[kendoChatReceiverMessageContentTemplate]',
|
|
35
|
+
standalone: true
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
38
|
+
type: Optional
|
|
39
|
+
}] }] });
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { Directive, Optional, 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 class ReceiverMessageTemplateDirective {
|
|
24
|
+
templateRef;
|
|
25
|
+
constructor(templateRef) {
|
|
26
|
+
this.templateRef = templateRef;
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReceiverMessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ReceiverMessageTemplateDirective, isStandalone: true, selector: "[kendoChatReceiverMessageTemplate]", ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReceiverMessageTemplateDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[kendoChatReceiverMessageTemplate]',
|
|
35
|
+
standalone: true
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
38
|
+
type: Optional
|
|
39
|
+
}] }] });
|
|
@@ -21,13 +21,13 @@ export class ChatStatusTemplateDirective {
|
|
|
21
21
|
constructor(templateRef) {
|
|
22
22
|
this.templateRef = templateRef;
|
|
23
23
|
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatStatusTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ChatStatusTemplateDirective, isStandalone: true, selector: "[kendoChatStatusTemplate]", ngImport: i0 });
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatStatusTemplateDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[kendoChatStatusTemplate]',
|
|
31
31
|
standalone: true
|
|
32
32
|
}]
|
|
33
|
-
}], ctorParameters:
|
|
33
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
@@ -24,13 +24,13 @@ export class ChatSuggestionTemplateDirective {
|
|
|
24
24
|
constructor(templateRef) {
|
|
25
25
|
this.templateRef = templateRef;
|
|
26
26
|
}
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatSuggestionTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ChatSuggestionTemplateDirective, isStandalone: true, selector: "[kendoChatSuggestionTemplate]", ngImport: i0 });
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatSuggestionTemplateDirective, decorators: [{
|
|
31
31
|
type: Directive,
|
|
32
32
|
args: [{
|
|
33
33
|
selector: '[kendoChatSuggestionTemplate]',
|
|
34
34
|
standalone: true
|
|
35
35
|
}]
|
|
36
|
-
}], ctorParameters:
|
|
36
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
@@ -28,15 +28,15 @@ export class ChatTimestampTemplateDirective {
|
|
|
28
28
|
constructor(templateRef) {
|
|
29
29
|
this.templateRef = templateRef;
|
|
30
30
|
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatTimestampTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ChatTimestampTemplateDirective, isStandalone: true, selector: "[kendoChatTimestampTemplate]", ngImport: i0 });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatTimestampTemplateDirective, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{
|
|
37
37
|
selector: '[kendoChatTimestampTemplate]',
|
|
38
38
|
standalone: true
|
|
39
39
|
}]
|
|
40
|
-
}], ctorParameters:
|
|
40
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
41
41
|
type: Optional
|
|
42
|
-
}] }]
|
|
42
|
+
}] }] });
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { Directive, Optional, 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 class ChatUserStatusTemplateDirective {
|
|
23
|
+
templateRef;
|
|
24
|
+
constructor(templateRef) {
|
|
25
|
+
this.templateRef = templateRef;
|
|
26
|
+
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatUserStatusTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ChatUserStatusTemplateDirective, isStandalone: true, selector: "[kendoChatUserStatusTemplate]", ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChatUserStatusTemplateDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[kendoChatUserStatusTemplate]',
|
|
34
|
+
standalone: true
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
37
|
+
type: Optional
|
|
38
|
+
}] }] });
|
|
@@ -22,16 +22,23 @@ import * as i10 from "./ai-prompt/templates/aiprompt-output-body-template.direct
|
|
|
22
22
|
import * as i11 from "./chat/chat.component";
|
|
23
23
|
import * as i12 from "./chat/l10n/custom-messages.component";
|
|
24
24
|
import * as i13 from "./chat/templates/attachment-template.directive";
|
|
25
|
-
import * as i14 from "./chat/templates/message-template.directive";
|
|
26
|
-
import * as i15 from "./chat/
|
|
27
|
-
import * as i16 from "./chat/templates/message-
|
|
28
|
-
import * as i17 from "./chat/templates/
|
|
29
|
-
import * as i18 from "./chat/templates/
|
|
30
|
-
import * as i19 from "./chat/templates/
|
|
31
|
-
import * as i20 from "./chat/
|
|
32
|
-
import * as i21 from "./
|
|
33
|
-
import * as i22 from "./
|
|
34
|
-
import * as i23 from "./
|
|
25
|
+
import * as i14 from "./chat/templates/author-message-content-template.directive";
|
|
26
|
+
import * as i15 from "./chat/templates/receiver-message-content-template.directive";
|
|
27
|
+
import * as i16 from "./chat/templates/message-content-template.directive";
|
|
28
|
+
import * as i17 from "./chat/templates/author-message-template.directive";
|
|
29
|
+
import * as i18 from "./chat/templates/receiver-message-template.directive";
|
|
30
|
+
import * as i19 from "./chat/templates/message-template.directive";
|
|
31
|
+
import * as i20 from "./chat/cards/hero-card.component";
|
|
32
|
+
import * as i21 from "./chat/templates/message-box.directive";
|
|
33
|
+
import * as i22 from "./chat/templates/header-template.directive";
|
|
34
|
+
import * as i23 from "./chat/templates/no-data-template.directive";
|
|
35
|
+
import * as i24 from "./chat/templates/timestamp-template.directive";
|
|
36
|
+
import * as i25 from "./chat/templates/status-template.directive";
|
|
37
|
+
import * as i26 from "./chat/templates/suggestion-template.directive";
|
|
38
|
+
import * as i27 from "./chat/templates/user-status-template.directive";
|
|
39
|
+
import * as i28 from "./inline-ai-prompt/inlineaiprompt.component";
|
|
40
|
+
import * as i29 from "./inline-ai-prompt/output-template.directive";
|
|
41
|
+
import * as i30 from "./inline-ai-prompt/localization/custom-messages.component";
|
|
35
42
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
36
43
|
/**
|
|
37
44
|
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Conversational UI components.
|
|
@@ -52,11 +59,11 @@ import * as i23 from "./inline-ai-prompt/localization/custom-messages.component"
|
|
|
52
59
|
* ```
|
|
53
60
|
*/
|
|
54
61
|
export class ConversationalUIModule {
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
57
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
63
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ConversationalUIModule, imports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i5.CustomViewComponent, i6.AIPromptCustomMessagesComponent, i7.AIPromptToolbarActionsDirective, i8.AIPromptToolbarFocusableDirective, i9.AIPromptOutputTemplateDirective, i10.AIPromptOutputBodyTemplateDirective, i11.ChatComponent, i12.CustomMessagesComponent, i13.AttachmentTemplateDirective, i14.AuthorMessageContentTemplateDirective, i15.ReceiverMessageContentTemplateDirective, i16.MessageContentTemplateDirective, i17.AuthorMessageTemplateDirective, i18.ReceiverMessageTemplateDirective, i19.MessageTemplateDirective, i20.HeroCardComponent, i21.ChatMessageBoxTemplateDirective, i22.ChatHeaderTemplateDirective, i23.NoDataTemplateDirective, i24.ChatTimestampTemplateDirective, i25.ChatStatusTemplateDirective, i26.ChatSuggestionTemplateDirective, i27.ChatUserStatusTemplateDirective, i28.InlineAIPromptComponent, i29.InlineAIPromptOutputTemplateDirective, i30.InlineAIPromptCustomMessagesComponent], exports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i5.CustomViewComponent, i6.AIPromptCustomMessagesComponent, i7.AIPromptToolbarActionsDirective, i8.AIPromptToolbarFocusableDirective, i9.AIPromptOutputTemplateDirective, i10.AIPromptOutputBodyTemplateDirective, i11.ChatComponent, i12.CustomMessagesComponent, i13.AttachmentTemplateDirective, i14.AuthorMessageContentTemplateDirective, i15.ReceiverMessageContentTemplateDirective, i16.MessageContentTemplateDirective, i17.AuthorMessageTemplateDirective, i18.ReceiverMessageTemplateDirective, i19.MessageTemplateDirective, i20.HeroCardComponent, i21.ChatMessageBoxTemplateDirective, i22.ChatHeaderTemplateDirective, i23.NoDataTemplateDirective, i24.ChatTimestampTemplateDirective, i25.ChatStatusTemplateDirective, i26.ChatSuggestionTemplateDirective, i27.ChatUserStatusTemplateDirective, i28.InlineAIPromptComponent, i29.InlineAIPromptOutputTemplateDirective, i30.InlineAIPromptCustomMessagesComponent] });
|
|
64
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConversationalUIModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i11.ChatComponent, i20.HeroCardComponent, i28.InlineAIPromptComponent] });
|
|
58
65
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConversationalUIModule, decorators: [{
|
|
60
67
|
type: NgModule,
|
|
61
68
|
args: [{
|
|
62
69
|
exports: [...KENDO_CONVERSATIONALUI],
|
package/esm2022/directives.mjs
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
|
*
|
|
@@ -74,13 +81,20 @@ export const KENDO_CHAT = [
|
|
|
74
81
|
ChatComponent,
|
|
75
82
|
CustomMessagesComponent,
|
|
76
83
|
AttachmentTemplateDirective,
|
|
84
|
+
AuthorMessageContentTemplateDirective,
|
|
85
|
+
ReceiverMessageContentTemplateDirective,
|
|
86
|
+
MessageContentTemplateDirective,
|
|
87
|
+
AuthorMessageTemplateDirective,
|
|
88
|
+
ReceiverMessageTemplateDirective,
|
|
77
89
|
MessageTemplateDirective,
|
|
78
90
|
HeroCardComponent,
|
|
79
91
|
ChatMessageBoxTemplateDirective,
|
|
80
92
|
ChatHeaderTemplateDirective,
|
|
93
|
+
NoDataTemplateDirective,
|
|
81
94
|
ChatTimestampTemplateDirective,
|
|
82
95
|
ChatStatusTemplateDirective,
|
|
83
|
-
ChatSuggestionTemplateDirective
|
|
96
|
+
ChatSuggestionTemplateDirective,
|
|
97
|
+
ChatUserStatusTemplateDirective
|
|
84
98
|
];
|
|
85
99
|
/**
|
|
86
100
|
* Utility array that contains all InlineAIPrompt related components and directives.
|
package/esm2022/index.mjs
CHANGED
|
@@ -12,8 +12,15 @@ export { HeroCardComponent } from './chat/cards/hero-card.component';
|
|
|
12
12
|
export { CustomMessagesComponent } from './chat/l10n/custom-messages.component';
|
|
13
13
|
export { ChatMessageBoxTemplateDirective } from './chat/templates/message-box.directive';
|
|
14
14
|
export { ChatHeaderTemplateDirective } from './chat/templates/header-template.directive';
|
|
15
|
+
export { NoDataTemplateDirective } from './chat/templates/no-data-template.directive';
|
|
16
|
+
export { ChatUserStatusTemplateDirective } from './chat/templates/user-status-template.directive';
|
|
15
17
|
export { ChatTimestampTemplateDirective } from './chat/templates/timestamp-template.directive';
|
|
16
18
|
export { AttachmentTemplateDirective } from './chat/templates/attachment-template.directive';
|
|
19
|
+
export { AuthorMessageContentTemplateDirective } from './chat/templates/author-message-content-template.directive';
|
|
20
|
+
export { ReceiverMessageContentTemplateDirective } from './chat/templates/receiver-message-content-template.directive';
|
|
21
|
+
export { MessageContentTemplateDirective } from './chat/templates/message-content-template.directive';
|
|
22
|
+
export { AuthorMessageTemplateDirective } from './chat/templates/author-message-template.directive';
|
|
23
|
+
export { ReceiverMessageTemplateDirective } from './chat/templates/receiver-message-template.directive';
|
|
17
24
|
export { MessageTemplateDirective } from './chat/templates/message-template.directive';
|
|
18
25
|
export { ChatSuggestionTemplateDirective } from './chat/templates/suggestion-template.directive';
|
|
19
26
|
export { ChatStatusTemplateDirective } from './chat/templates/status-template.directive';
|
|
@@ -245,8 +245,8 @@ export class InlineAIPromptContentComponent {
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
249
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptContentComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InlineAIPromptContentComponent, isStandalone: true, selector: "kendo-inlineaiprompt-content", inputs: { popupElement: "popupElement", promptValue: "promptValue", placeholder: "placeholder", promptOutput: "promptOutput", enableSpeechToText: "enableSpeechToText", streaming: "streaming", width: "width", maxHeight: "maxHeight", appendTo: "appendTo", outputActions: "outputActions", promptCommands: "promptCommands", outputTemplate: "outputTemplate" }, outputs: { promptRequest: "promptRequest", commandExecute: "commandExecute", outputActionClick: "outputActionClick", promptRequestCancel: "promptRequestCancel", close: "close", promptValueChange: "promptValueChange" }, host: { listeners: { "keydown": "onEscapeKey($event)" }, properties: { "class.k-prompt": "this.className", "attr.dir": "this.dirAttr", "style.max-height": "this.maxHeightStyle", "style.width": "this.widthStyle" } }, providers: [
|
|
250
250
|
LocalizationService,
|
|
251
251
|
{
|
|
252
252
|
provide: L10N_PREFIX,
|
|
@@ -348,7 +348,7 @@ export class InlineAIPromptContentComponent {
|
|
|
348
348
|
</kendo-contextmenu>
|
|
349
349
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoInlineAIPromptLocalizedMessages]" }, { kind: "component", type: i2.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i2.SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }, { kind: "component", type: i3.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "maxResizableRows", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: i3.TextAreaPrefixComponent, selector: "kendo-textarea-prefix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaPrefix"] }, { kind: "component", type: i3.TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }, { kind: "component", type: i4.ContextMenuComponent, selector: "kendo-contextmenu", inputs: ["showOn", "target", "filter", "alignToAnchor", "vertical", "popupAnimate", "popupAlign", "anchorAlign", "collision", "appendTo", "ariaLabel"], outputs: ["popupOpen", "popupClose", "select", "open", "close"], exportAs: ["kendoContextMenu"] }, { kind: "component", type: i5.CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "component", type: i5.CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }, { kind: "component", type: i5.CardBodyComponent, selector: "kendo-card-body" }] });
|
|
350
350
|
}
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptContentComponent, decorators: [{
|
|
352
352
|
type: Component,
|
|
353
353
|
args: [{
|
|
354
354
|
exportAs: 'kendoInlineAIPromptContent',
|
|
@@ -458,11 +458,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
458
458
|
standalone: true,
|
|
459
459
|
imports: [NgClass, NgIf, NgFor, NgTemplateOutlet, LocalizedMessagesDirective, KENDO_BUTTONS, KENDO_TEXTAREA, KENDO_CONTEXTMENU, KENDO_CARD],
|
|
460
460
|
}]
|
|
461
|
-
}], ctorParameters:
|
|
461
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.LocalizationService, decorators: [{
|
|
462
462
|
type: Optional
|
|
463
463
|
}, {
|
|
464
464
|
type: SkipSelf
|
|
465
|
-
}] }]
|
|
465
|
+
}] }], propDecorators: { className: [{
|
|
466
466
|
type: HostBinding,
|
|
467
467
|
args: ['class.k-prompt']
|
|
468
468
|
}], dirAttr: [{
|
|
@@ -195,8 +195,8 @@ export class InlineAIPromptComponent {
|
|
|
195
195
|
onPromptValueChange(value) {
|
|
196
196
|
this.promptValueChange.emit(value);
|
|
197
197
|
}
|
|
198
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
199
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InlineAIPromptComponent, isStandalone: true, selector: "kendo-inlineaiprompt", inputs: { promptValue: "promptValue", placeholder: "placeholder", promptOutput: "promptOutput", enableSpeechToText: "enableSpeechToText", streaming: "streaming", width: "width", maxHeight: "maxHeight", outputActions: "outputActions", promptCommands: "promptCommands", popupSettings: "popupSettings" }, outputs: { promptRequest: "promptRequest", commandExecute: "commandExecute", outputActionClick: "outputActionClick", promptRequestCancel: "promptRequestCancel", close: "close", promptValueChange: "promptValueChange" }, providers: [
|
|
200
200
|
LocalizationService,
|
|
201
201
|
{
|
|
202
202
|
provide: L10N_PREFIX,
|
|
@@ -246,7 +246,7 @@ export class InlineAIPromptComponent {
|
|
|
246
246
|
</kendo-popup>
|
|
247
247
|
`, isInline: true, dependencies: [{ kind: "component", type: i1.PopupComponent, selector: "kendo-popup", inputs: ["animate", "anchor", "anchorAlign", "collision", "popupAlign", "copyAnchorStyles", "popupClass", "positionMode", "offset", "margin"], outputs: ["anchorViewportLeave", "close", "open", "positionChange"], exportAs: ["kendo-popup"] }, { kind: "component", type: InlineAIPromptContentComponent, selector: "kendo-inlineaiprompt-content", inputs: ["popupElement", "promptValue", "placeholder", "promptOutput", "enableSpeechToText", "streaming", "width", "maxHeight", "appendTo", "outputActions", "promptCommands", "outputTemplate"], outputs: ["promptRequest", "commandExecute", "outputActionClick", "promptRequestCancel", "close", "promptValueChange"], exportAs: ["kendoInlineAIPromptContent"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoInlineAIPromptLocalizedMessages]" }] });
|
|
248
248
|
}
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptComponent, decorators: [{
|
|
250
250
|
type: Component,
|
|
251
251
|
args: [{
|
|
252
252
|
exportAs: 'kendoInlineAIPrompt',
|
|
@@ -304,7 +304,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
304
304
|
standalone: true,
|
|
305
305
|
imports: [KENDO_POPUP, InlineAIPromptContentComponent, LocalizedMessagesDirective],
|
|
306
306
|
}]
|
|
307
|
-
}], ctorParameters:
|
|
307
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }], propDecorators: { promptValue: [{
|
|
308
308
|
type: Input
|
|
309
309
|
}], placeholder: [{
|
|
310
310
|
type: Input
|
|
@@ -32,11 +32,11 @@ import * as i3 from "./localization/custom-messages.component";
|
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
34
|
export class InlineAIPromptModule {
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
37
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
36
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, imports: [i1.InlineAIPromptComponent, i2.InlineAIPromptOutputTemplateDirective, i3.InlineAIPromptCustomMessagesComponent], exports: [i1.InlineAIPromptComponent, i2.InlineAIPromptOutputTemplateDirective, i3.InlineAIPromptCustomMessagesComponent] });
|
|
37
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.InlineAIPromptComponent] });
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, decorators: [{
|
|
40
40
|
type: NgModule,
|
|
41
41
|
args: [{
|
|
42
42
|
exports: [...KENDO_INLINEAIPROMPT],
|
|
@@ -81,12 +81,12 @@ export class InlineAIPromptService {
|
|
|
81
81
|
});
|
|
82
82
|
return component;
|
|
83
83
|
}
|
|
84
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, deps: [{ token: i1.PopupService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
85
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, providedIn: 'root' });
|
|
86
86
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, decorators: [{
|
|
88
88
|
type: Injectable,
|
|
89
89
|
args: [{
|
|
90
90
|
providedIn: 'root'
|
|
91
91
|
}]
|
|
92
|
-
}], ctorParameters:
|
|
92
|
+
}], ctorParameters: () => [{ type: i1.PopupService }] });
|
|
@@ -27,15 +27,15 @@ export class InlineAIPromptCustomMessagesComponent extends Messages {
|
|
|
27
27
|
get override() {
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InlineAIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-inlineaiprompt-messages", providers: [
|
|
32
32
|
{
|
|
33
33
|
provide: Messages,
|
|
34
34
|
useExisting: forwardRef(() => InlineAIPromptCustomMessagesComponent)
|
|
35
35
|
}
|
|
36
36
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, decorators: [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{
|
|
41
41
|
providers: [
|
|
@@ -48,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
48
48
|
template: ``,
|
|
49
49
|
standalone: true
|
|
50
50
|
}]
|
|
51
|
-
}], ctorParameters:
|
|
51
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
@@ -16,15 +16,15 @@ export class LocalizedMessagesDirective extends Messages {
|
|
|
16
16
|
super();
|
|
17
17
|
this.service = service;
|
|
18
18
|
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoInlineAIPromptLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: Messages,
|
|
23
23
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
24
24
|
}
|
|
25
25
|
], usesInheritance: true, ngImport: i0 });
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
providers: [
|
|
@@ -36,4 +36,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
36
36
|
selector: '[kendoInlineAIPromptLocalizedMessages]',
|
|
37
37
|
standalone: true
|
|
38
38
|
}]
|
|
39
|
-
}], ctorParameters:
|
|
39
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
@@ -21,10 +21,10 @@ export class Messages extends ComponentMessages {
|
|
|
21
21
|
* The title for the Speech to Text button.
|
|
22
22
|
*/
|
|
23
23
|
speechToTextButtonTitle;
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, inputs: { commandsButtonTitle: "commandsButtonTitle", generateButtonTitle: "generateButtonTitle", speechToTextButtonTitle: "speechToTextButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, decorators: [{
|
|
28
28
|
type: Directive
|
|
29
29
|
}], propDecorators: { commandsButtonTitle: [{
|
|
30
30
|
type: Input
|