@progress/kendo-angular-conversational-ui 17.0.0-develop.3 → 17.0.0-develop.30
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/README.md +36 -17
- package/ai-prompt/aiprompt.component.d.ts +1 -1
- package/ai-prompt/common/output-card.component.d.ts +1 -1
- package/ai-prompt/localization/messages.d.ts +1 -1
- package/ai-prompt/models/prompt-output.interface.d.ts +1 -1
- package/ai-prompt/models/view-type.d.ts +1 -1
- package/ai-prompt/views/base-view.d.ts +1 -1
- package/ai-prompt/views/custom-view.component.d.ts +1 -1
- package/chat/api/action.interface.d.ts +1 -1
- package/chat/api/attachment.interface.d.ts +1 -1
- package/chat/attachment.component.d.ts +1 -1
- package/chat/builtin-actions.d.ts +1 -1
- package/chat/cards/hero-card.component.d.ts +1 -1
- package/chat/chat-view.d.ts +1 -1
- package/chat/chat.component.d.ts +1 -1
- package/chat/common/models/message-box-options.d.ts +1 -1
- package/chat/common/scroll-anchor.directive.d.ts +1 -1
- package/chat/l10n/messages.d.ts +1 -1
- package/chat/message-attachments.component.d.ts +1 -1
- package/chat/message-box.component.d.ts +1 -1
- package/chat/message-list.component.d.ts +1 -1
- package/chat/message.component.d.ts +1 -1
- package/chat/suggested-actions.component.d.ts +1 -2
- package/{esm2020 → esm2022}/ai-prompt/aiprompt.component.mjs +62 -49
- package/{esm2020 → esm2022}/ai-prompt/aiprompt.module.mjs +4 -4
- package/{esm2020 → esm2022}/ai-prompt/common/aiprompt.service.mjs +13 -11
- package/{esm2020 → esm2022}/ai-prompt/common/output-card.component.mjs +20 -17
- package/{esm2020 → esm2022}/ai-prompt/common/toolbar-focusable.directive.mjs +28 -25
- package/{esm2020 → esm2022}/ai-prompt/common/toolbar-navigation.service.mjs +6 -5
- package/{esm2020 → esm2022}/ai-prompt/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/ai-prompt/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/ai-prompt/localization/messages.mjs +71 -0
- package/{esm2020 → esm2022}/ai-prompt/templates/toolbar-actions.template.mjs +4 -3
- package/{esm2020 → esm2022}/ai-prompt/views/base-view.mjs +13 -4
- package/{esm2020 → esm2022}/ai-prompt/views/command-view.component.mjs +12 -11
- package/{esm2020 → esm2022}/ai-prompt/views/custom-view.component.mjs +10 -6
- package/{esm2020 → esm2022}/ai-prompt/views/output-view.component.mjs +8 -7
- package/{esm2020 → esm2022}/ai-prompt/views/prompt-view.component.mjs +19 -18
- package/{esm2020 → esm2022}/chat/api/execute-action-event.mjs +8 -0
- package/{esm2020 → esm2022}/chat/api/post-message-event.mjs +7 -0
- package/{esm2020 → esm2022}/chat/api/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/chat/attachment-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/chat/attachment.component.mjs +7 -4
- package/{esm2020 → esm2022}/chat/cards/hero-card.component.mjs +26 -12
- package/{esm2020 → esm2022}/chat/chat-item.mjs +1 -0
- package/{esm2020 → esm2022}/chat/chat.component.mjs +67 -44
- package/{esm2020 → esm2022}/chat/chat.module.mjs +4 -4
- package/{esm2020 → esm2022}/chat/common/scroll-anchor.directive.mjs +11 -7
- package/{esm2020 → esm2022}/chat/l10n/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/chat/l10n/localized-messages.directive.mjs +9 -8
- package/esm2022/chat/l10n/messages.mjs +64 -0
- package/{esm2020 → esm2022}/chat/message-attachments.component.mjs +43 -32
- package/{esm2020 → esm2022}/chat/message-box.component.mjs +17 -13
- package/{esm2020 → esm2022}/chat/message-box.directive.mjs +4 -3
- package/{esm2020 → esm2022}/chat/message-list.component.mjs +32 -22
- package/{esm2020 → esm2022}/chat/message-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/chat/message.component.mjs +17 -11
- package/{esm2020 → esm2022}/chat/suggested-actions.component.mjs +18 -18
- package/{esm2020 → esm2022}/conversational-ui.module.mjs +4 -4
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{fesm2020 → fesm2022}/progress-kendo-angular-conversational-ui.mjs +584 -384
- package/package.json +18 -24
- package/esm2020/ai-prompt/localization/messages.mjs +0 -35
- package/esm2020/chat/l10n/messages.mjs +0 -35
- package/fesm2015/progress-kendo-angular-conversational-ui.mjs +0 -3242
- /package/{esm2020 → esm2022}/ai-prompt/models/command-execute-event.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/command.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/output-rating-change-event.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/prompt-output.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/prompt-request-event.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/models/view-type.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/ai-prompt/views/index.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/api/action.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/api/attachment.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/api/index.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/api/message.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/api/user.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/builtin-actions.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/chat-view.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/chat.directives.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/common/models/message-box-options.mjs +0 -0
- /package/{esm2020 → esm2022}/chat/common/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-conversational-ui.mjs +0 -0
@@ -9,7 +9,7 @@ import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/k
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
10
10
|
import { NgIf, NgTemplateOutlet, NgFor, NgSwitch, NgSwitchCase } from '@angular/common';
|
11
11
|
import { Keys, ResizeSensorComponent, isPresent, focusableSelector, guid, ResizeBatchService } from '@progress/kendo-angular-common';
|
12
|
-
import { paperPlaneIcon, chevronLeftIcon, chevronRightIcon, sparklesIcon, commentIcon, moreHorizontalIcon,
|
12
|
+
import { paperPlaneIcon, chevronLeftIcon, chevronRightIcon, sparklesIcon, commentIcon, moreHorizontalIcon, thumbUpIcon, thumbDownOutlineIcon, thumbDownIcon, thumbUpOutlineIcon, copyIcon, arrowRotateCwIcon, chevronUpIcon, chevronDownIcon } from '@progress/kendo-svg-icons';
|
13
13
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
14
14
|
import { TextBoxComponent, TextAreaComponent, InputSeparatorComponent, TextBoxSuffixTemplateDirective, TextAreaSuffixComponent } from '@progress/kendo-angular-inputs';
|
15
15
|
import * as i1 from '@progress/kendo-angular-intl';
|
@@ -33,13 +33,14 @@ import { PanelBarComponent } from '@progress/kendo-angular-layout';
|
|
33
33
|
* {% endmeta %}
|
34
34
|
*/
|
35
35
|
class AttachmentTemplateDirective {
|
36
|
+
templateRef;
|
36
37
|
constructor(templateRef) {
|
37
38
|
this.templateRef = templateRef;
|
38
39
|
}
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AttachmentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
41
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AttachmentTemplateDirective, isStandalone: true, selector: "[kendoChatAttachmentTemplate]", ngImport: i0 });
|
39
42
|
}
|
40
|
-
|
41
|
-
AttachmentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AttachmentTemplateDirective, isStandalone: true, selector: "[kendoChatAttachmentTemplate]", ngImport: i0 });
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AttachmentTemplateDirective, decorators: [{
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AttachmentTemplateDirective, decorators: [{
|
43
44
|
type: Directive,
|
44
45
|
args: [{
|
45
46
|
selector: '[kendoChatAttachmentTemplate]',
|
@@ -54,6 +55,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
54
55
|
*
|
55
56
|
*/
|
56
57
|
class SendMessageEvent {
|
58
|
+
/**
|
59
|
+
* The message which contains the metadata and the user input.
|
60
|
+
*
|
61
|
+
* > The Chat does not automatically append the message to its data.
|
62
|
+
* > For more information, refer to the article on [data binding]({% slug databinding_chat %}).
|
63
|
+
*/
|
64
|
+
message;
|
57
65
|
/**
|
58
66
|
* @hidden
|
59
67
|
*/
|
@@ -96,13 +104,14 @@ const makeHandler = (action) => handlers[action.type] || noop;
|
|
96
104
|
* {% endmeta %}
|
97
105
|
*/
|
98
106
|
class MessageTemplateDirective {
|
107
|
+
templateRef;
|
99
108
|
constructor(templateRef) {
|
100
109
|
this.templateRef = templateRef;
|
101
110
|
}
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
112
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
|
102
113
|
}
|
103
|
-
|
104
|
-
MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageTemplateDirective, decorators: [{
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageTemplateDirective, decorators: [{
|
106
115
|
type: Directive,
|
107
116
|
args: [{
|
108
117
|
selector: '[kendoChatMessageTemplate]',
|
@@ -119,8 +128,8 @@ const packageMetadata = {
|
|
119
128
|
name: '@progress/kendo-angular-conversational-ui',
|
120
129
|
productName: 'Kendo UI for Angular',
|
121
130
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
122
|
-
publishDate:
|
123
|
-
version: '17.0.0-develop.
|
131
|
+
publishDate: 1730389165,
|
132
|
+
version: '17.0.0-develop.30',
|
124
133
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
125
134
|
};
|
126
135
|
|
@@ -130,13 +139,14 @@ const packageMetadata = {
|
|
130
139
|
* [see example]({% slug message_box %}#toc-message-box-template).
|
131
140
|
*/
|
132
141
|
class ChatMessageBoxTemplateDirective {
|
142
|
+
templateRef;
|
133
143
|
constructor(templateRef) {
|
134
144
|
this.templateRef = templateRef;
|
135
145
|
}
|
146
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatMessageBoxTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
147
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
|
136
148
|
}
|
137
|
-
|
138
|
-
ChatMessageBoxTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
|
140
150
|
type: Directive,
|
141
151
|
args: [{
|
142
152
|
selector: '[kendoChatMessageBoxTemplate]',
|
@@ -148,14 +158,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
148
158
|
* @hidden
|
149
159
|
*/
|
150
160
|
class MessageBoxComponent {
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
161
|
+
borderColor = 'inherit';
|
162
|
+
messageBoxInput;
|
163
|
+
user;
|
164
|
+
autoScroll;
|
165
|
+
type;
|
166
|
+
localization;
|
167
|
+
messageBoxTemplate;
|
168
|
+
sendMessage = new EventEmitter();
|
169
|
+
/**
|
170
|
+
* @hidden
|
171
|
+
*/
|
172
|
+
sendIcon = paperPlaneIcon;
|
159
173
|
/**
|
160
174
|
* @hidden
|
161
175
|
*/
|
@@ -207,9 +221,8 @@ class MessageBoxComponent {
|
|
207
221
|
textFor(key) {
|
208
222
|
return this.localization.get(key);
|
209
223
|
}
|
210
|
-
}
|
211
|
-
|
212
|
-
MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageBoxComponent, isStandalone: true, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "style.border-color": "this.borderColor" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageBoxComponent, isStandalone: true, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "style.border-color": "this.borderColor" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
|
213
226
|
<ng-container *ngIf="!messageBoxTemplate">
|
214
227
|
<kendo-textbox
|
215
228
|
*ngIf="type === 'textbox'"
|
@@ -267,8 +280,9 @@ MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
267
280
|
</ng-container>
|
268
281
|
|
269
282
|
<ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
|
270
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
271
|
-
|
283
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: 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: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: InputSeparatorComponent, selector: "kendo-input-separator, kendo-textbox-separator", inputs: ["orientation"] }, { kind: "directive", type: TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }] });
|
284
|
+
}
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageBoxComponent, decorators: [{
|
272
286
|
type: Component,
|
273
287
|
args: [{
|
274
288
|
selector: 'kendo-message-box',
|
@@ -360,9 +374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
360
374
|
* @hidden
|
361
375
|
*/
|
362
376
|
class PreventableEvent {
|
363
|
-
|
364
|
-
this.prevented = false;
|
365
|
-
}
|
377
|
+
prevented = false;
|
366
378
|
/**
|
367
379
|
* Prevents the default action for a specified event.
|
368
380
|
* In this way, the source component suppresses
|
@@ -388,6 +400,14 @@ class PreventableEvent {
|
|
388
400
|
* a quick action button. Calling `preventDefault()` suppresses the built-in action handler.
|
389
401
|
*/
|
390
402
|
class ExecuteActionEvent extends PreventableEvent {
|
403
|
+
/**
|
404
|
+
* The action that will be executed.
|
405
|
+
*/
|
406
|
+
action;
|
407
|
+
/**
|
408
|
+
* The message that contains the action.
|
409
|
+
*/
|
410
|
+
message;
|
391
411
|
/**
|
392
412
|
* @hidden
|
393
413
|
*/
|
@@ -412,6 +432,7 @@ const closest = (node, predicate) => {
|
|
412
432
|
* @hidden
|
413
433
|
*/
|
414
434
|
class ChatItem {
|
435
|
+
selected;
|
415
436
|
}
|
416
437
|
|
417
438
|
/**
|
@@ -496,17 +517,17 @@ const chatView = (messages) => messages.reduce(groupItems(messages.length), []);
|
|
496
517
|
* @hidden
|
497
518
|
*/
|
498
519
|
class SuggestedActionsComponent extends ChatItem {
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
}
|
520
|
+
actions;
|
521
|
+
tabbable;
|
522
|
+
dispatch = new EventEmitter();
|
523
|
+
defaultClass = true;
|
524
|
+
items;
|
525
|
+
selectedIndex = 0;
|
526
|
+
keyHandlers = {
|
527
|
+
[Keys.Tab]: (e) => this.changeSelectedIndex(e),
|
528
|
+
[Keys.Enter]: (_, action) => this.actionClick(action),
|
529
|
+
[Keys.Space]: (_, action) => this.actionClick(action),
|
530
|
+
};
|
510
531
|
isSelected(index) {
|
511
532
|
return this.selected && this.selectedIndex === index;
|
512
533
|
}
|
@@ -525,12 +546,11 @@ class SuggestedActionsComponent extends ChatItem {
|
|
525
546
|
const prevIndex = this.selectedIndex;
|
526
547
|
this.selectedIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
|
527
548
|
}
|
528
|
-
}
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
}], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
549
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
550
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuggestedActionsComponent, isStandalone: true, selector: "kendo-chat-suggested-actions", inputs: { actions: "actions", tabbable: "tabbable" }, outputs: { dispatch: "dispatch" }, host: { properties: { "class.k-quick-replies": "this.defaultClass" } }, providers: [{
|
551
|
+
provide: ChatItem,
|
552
|
+
useExisting: forwardRef(() => SuggestedActionsComponent)
|
553
|
+
}], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
534
554
|
<span
|
535
555
|
#item
|
536
556
|
*ngFor="let action of actions; index as index; first as first; last as last"
|
@@ -547,7 +567,8 @@ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
547
567
|
{{ action.title || action.value }}
|
548
568
|
</span>
|
549
569
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
550
|
-
|
570
|
+
}
|
571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
|
551
572
|
type: Component,
|
552
573
|
args: [{
|
553
574
|
selector: 'kendo-chat-suggested-actions',
|
@@ -594,14 +615,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
594
615
|
* @hidden
|
595
616
|
*/
|
596
617
|
class MessageComponent extends ChatItem {
|
618
|
+
element;
|
619
|
+
intl;
|
620
|
+
message;
|
621
|
+
tabbable;
|
622
|
+
template;
|
623
|
+
cssClass = true;
|
624
|
+
selected;
|
625
|
+
get tabIndex() {
|
626
|
+
return this.tabbable ? '0' : '-1';
|
627
|
+
}
|
597
628
|
constructor(element, intl) {
|
598
629
|
super();
|
599
630
|
this.element = element;
|
600
631
|
this.intl = intl;
|
601
|
-
this.cssClass = true;
|
602
|
-
}
|
603
|
-
get tabIndex() {
|
604
|
-
return this.tabbable ? '0' : '-1';
|
605
632
|
}
|
606
633
|
formatTimeStamp(date) {
|
607
634
|
return this.intl.formatDate(date, { datetime: 'short' });
|
@@ -609,12 +636,11 @@ class MessageComponent extends ChatItem {
|
|
609
636
|
focus() {
|
610
637
|
this.element.nativeElement.focus();
|
611
638
|
}
|
612
|
-
}
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
639
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
640
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageComponent, isStandalone: true, selector: "kendo-chat-message", inputs: { message: "message", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-message": "this.cssClass", "class.k-selected": "this.selected", "class.k-focus": "this.selected", "attr.tabIndex": "this.tabIndex" } }, providers: [{
|
641
|
+
provide: ChatItem,
|
642
|
+
useExisting: forwardRef(() => MessageComponent)
|
643
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
618
644
|
<time
|
619
645
|
[attr.aria-hidden]="!selected"
|
620
646
|
class="k-message-time"
|
@@ -653,7 +679,8 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
653
679
|
</div>
|
654
680
|
</ng-template>
|
655
681
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
656
|
-
|
682
|
+
}
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageComponent, decorators: [{
|
657
684
|
type: Component,
|
658
685
|
args: [{
|
659
686
|
selector: 'kendo-chat-message',
|
@@ -736,18 +763,20 @@ class AttachmentComponent {
|
|
736
763
|
get attachment() {
|
737
764
|
return this._attachment;
|
738
765
|
}
|
766
|
+
template;
|
739
767
|
get image() {
|
740
768
|
return this.contentType.indexOf('image/') === 0;
|
741
769
|
}
|
742
770
|
get unknown() {
|
743
771
|
return !this.image;
|
744
772
|
}
|
773
|
+
context;
|
745
774
|
get contentType() {
|
746
775
|
return this.attachment.contentType || '';
|
747
776
|
}
|
748
|
-
|
749
|
-
|
750
|
-
|
777
|
+
_attachment;
|
778
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AttachmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
779
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AttachmentComponent, isStandalone: true, selector: "kendo-chat-attachment", inputs: { attachment: "attachment", template: "template" }, ngImport: i0, template: `
|
751
780
|
<ng-container *ngIf="template">
|
752
781
|
<ng-container *ngTemplateOutlet="template.templateRef; context: context;">
|
753
782
|
</ng-container>
|
@@ -768,7 +797,8 @@ AttachmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
768
797
|
</div>
|
769
798
|
</div>
|
770
799
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
771
|
-
|
800
|
+
}
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AttachmentComponent, decorators: [{
|
772
802
|
type: Component,
|
773
803
|
args: [{
|
774
804
|
selector: 'kendo-chat-attachment',
|
@@ -808,39 +838,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
808
838
|
* @hidden
|
809
839
|
*/
|
810
840
|
class MessageAttachmentsComponent extends ChatItem {
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
[Keys.ArrowLeft]: (e) => this.navigateTo(e, this.direction === 'rtl' ? 1 : -1),
|
827
|
-
[Keys.ArrowRight]: (e) => this.navigateTo(e, this.direction === 'rtl' ? -1 : 1)
|
828
|
-
};
|
829
|
-
this.listKeyHandlers = {
|
830
|
-
[Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
|
831
|
-
[Keys.ArrowDown]: (e) => this.navigateTo(e, 1)
|
832
|
-
};
|
833
|
-
this.direction = this.localizationService.rtl ? 'rtl' : 'ltr';
|
834
|
-
}
|
841
|
+
zone;
|
842
|
+
localizationService;
|
843
|
+
/**
|
844
|
+
* @hidden
|
845
|
+
*/
|
846
|
+
chevronLeftIcon = chevronLeftIcon;
|
847
|
+
/**
|
848
|
+
* @hidden
|
849
|
+
*/
|
850
|
+
chevronRightIcon = chevronRightIcon;
|
851
|
+
attachments;
|
852
|
+
layout;
|
853
|
+
tabbable;
|
854
|
+
template;
|
855
|
+
localization;
|
835
856
|
get carousel() {
|
836
857
|
return this.layout !== 'list';
|
837
858
|
}
|
859
|
+
deck;
|
860
|
+
items;
|
861
|
+
scrollPosition = 0;
|
862
|
+
selectedIndex = 0;
|
863
|
+
scrollSubscription;
|
864
|
+
direction;
|
838
865
|
get showLeftArrow() {
|
839
866
|
return this.carousel && this.direction === 'rtl' ? this.scrollPosition > -1 : this.scrollPosition > 0;
|
840
867
|
}
|
841
868
|
get showRightArrow() {
|
842
869
|
return this.carousel && this.direction === 'rtl' ? this.scrollPosition < 0 : this.scrollPosition < 1;
|
843
870
|
}
|
871
|
+
carouselKeyHandlers = {
|
872
|
+
[Keys.ArrowLeft]: (e) => this.navigateTo(e, this.direction === 'rtl' ? 1 : -1),
|
873
|
+
[Keys.ArrowRight]: (e) => this.navigateTo(e, this.direction === 'rtl' ? -1 : 1)
|
874
|
+
};
|
875
|
+
listKeyHandlers = {
|
876
|
+
[Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
|
877
|
+
[Keys.ArrowDown]: (e) => this.navigateTo(e, 1)
|
878
|
+
};
|
879
|
+
constructor(zone, localizationService) {
|
880
|
+
super();
|
881
|
+
this.zone = zone;
|
882
|
+
this.localizationService = localizationService;
|
883
|
+
this.direction = this.localizationService.rtl ? 'rtl' : 'ltr';
|
884
|
+
}
|
844
885
|
ngAfterViewInit() {
|
845
886
|
this.zone.runOutsideAngular(() => {
|
846
887
|
const scrollDebounceTime = 100;
|
@@ -909,12 +950,11 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
909
950
|
textFor(key) {
|
910
951
|
return this.localization.get(key);
|
911
952
|
}
|
912
|
-
}
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
953
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
954
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageAttachmentsComponent, isStandalone: true, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
955
|
+
provide: ChatItem,
|
956
|
+
useExisting: forwardRef(() => MessageAttachmentsComponent)
|
957
|
+
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
918
958
|
<button
|
919
959
|
*ngIf="showLeftArrow"
|
920
960
|
(click)="scrollTo(-1)"
|
@@ -955,8 +995,9 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
955
995
|
icon="chevron-right"
|
956
996
|
>
|
957
997
|
</button>
|
958
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
959
|
-
|
998
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: 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: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }] });
|
999
|
+
}
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
|
960
1001
|
type: Component,
|
961
1002
|
args: [{
|
962
1003
|
providers: [{
|
@@ -1036,24 +1077,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1036
1077
|
* @hidden
|
1037
1078
|
*/
|
1038
1079
|
class MessageListComponent {
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
this.renderer = renderer;
|
1043
|
-
this.executeAction = new EventEmitter();
|
1044
|
-
this.navigate = new EventEmitter();
|
1045
|
-
this.resize = new EventEmitter();
|
1046
|
-
this.cssClass = true;
|
1047
|
-
this.view = [];
|
1048
|
-
this.subs = new Subscription();
|
1049
|
-
this.keyActions = {
|
1050
|
-
[Keys.Home]: (_) => this.onHomeOrEndKeyDown('home'),
|
1051
|
-
[Keys.End]: (_) => this.onHomeOrEndKeyDown('end'),
|
1052
|
-
[Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
|
1053
|
-
[Keys.ArrowDown]: (e) => this.navigateTo(e, 1),
|
1054
|
-
[Keys.Tab]: (e) => this.onTabKeyDown(e),
|
1055
|
-
};
|
1056
|
-
}
|
1080
|
+
element;
|
1081
|
+
intl;
|
1082
|
+
renderer;
|
1057
1083
|
set messages(value) {
|
1058
1084
|
const data = value || [];
|
1059
1085
|
this.view = chatView(data);
|
@@ -1062,6 +1088,31 @@ class MessageListComponent {
|
|
1062
1088
|
get messages() {
|
1063
1089
|
return this._messages;
|
1064
1090
|
}
|
1091
|
+
attachmentTemplate;
|
1092
|
+
messageTemplate;
|
1093
|
+
localization;
|
1094
|
+
user;
|
1095
|
+
executeAction = new EventEmitter();
|
1096
|
+
navigate = new EventEmitter();
|
1097
|
+
resize = new EventEmitter();
|
1098
|
+
items;
|
1099
|
+
cssClass = true;
|
1100
|
+
view = [];
|
1101
|
+
_messages;
|
1102
|
+
subs = new Subscription();
|
1103
|
+
selectedItem;
|
1104
|
+
keyActions = {
|
1105
|
+
[Keys.Home]: (_) => this.onHomeOrEndKeyDown('home'),
|
1106
|
+
[Keys.End]: (_) => this.onHomeOrEndKeyDown('end'),
|
1107
|
+
[Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
|
1108
|
+
[Keys.ArrowDown]: (e) => this.navigateTo(e, 1),
|
1109
|
+
[Keys.Tab]: (e) => this.onTabKeyDown(e),
|
1110
|
+
};
|
1111
|
+
constructor(element, intl, renderer) {
|
1112
|
+
this.element = element;
|
1113
|
+
this.intl = intl;
|
1114
|
+
this.renderer = renderer;
|
1115
|
+
}
|
1065
1116
|
ngOnInit() {
|
1066
1117
|
const elRef = this.element.nativeElement;
|
1067
1118
|
this.subs.add(this.renderer.listen(elRef, 'keydown', event => this.onKeydown(event)));
|
@@ -1161,9 +1212,8 @@ class MessageListComponent {
|
|
1161
1212
|
textFor(key) {
|
1162
1213
|
return this.localization.get(key);
|
1163
1214
|
}
|
1164
|
-
}
|
1165
|
-
|
1166
|
-
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageListComponent, isStandalone: true, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
1215
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
1216
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageListComponent, isStandalone: true, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
1167
1217
|
<ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
|
1168
1218
|
<ng-container [ngSwitch]="group.type">
|
1169
1219
|
<div
|
@@ -1248,7 +1298,8 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
1248
1298
|
<kendo-resize-sensor (resize)="onResize()">
|
1249
1299
|
</kendo-resize-sensor>
|
1250
1300
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { kind: "component", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { kind: "component", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
1251
|
-
|
1301
|
+
}
|
1302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageListComponent, decorators: [{
|
1252
1303
|
type: Component,
|
1253
1304
|
args: [{
|
1254
1305
|
selector: 'kendo-chat-message-list',
|
@@ -1370,14 +1421,18 @@ const maxDelta = 2;
|
|
1370
1421
|
* @hidden
|
1371
1422
|
*/
|
1372
1423
|
class ScrollAnchorDirective {
|
1424
|
+
element;
|
1425
|
+
zone;
|
1426
|
+
renderer;
|
1427
|
+
autoScroll = true;
|
1428
|
+
autoScrollChange = new EventEmitter();
|
1429
|
+
overflowAnchor = 'none';
|
1430
|
+
scrolling = false;
|
1431
|
+
unsubscribe;
|
1373
1432
|
constructor(element, zone, renderer) {
|
1374
1433
|
this.element = element;
|
1375
1434
|
this.zone = zone;
|
1376
1435
|
this.renderer = renderer;
|
1377
|
-
this.autoScroll = true;
|
1378
|
-
this.autoScrollChange = new EventEmitter();
|
1379
|
-
this.overflowAnchor = 'none';
|
1380
|
-
this.scrolling = false;
|
1381
1436
|
}
|
1382
1437
|
ngOnInit() {
|
1383
1438
|
this.zone.runOutsideAngular(() => {
|
@@ -1416,10 +1471,10 @@ class ScrollAnchorDirective {
|
|
1416
1471
|
this.scrolling = true;
|
1417
1472
|
this.zone.runOutsideAngular(() => setTimeout(() => this.scrolling = false, 1000));
|
1418
1473
|
}
|
1474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
1475
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ScrollAnchorDirective, isStandalone: true, selector: "[kendoChatScrollAnchor]", inputs: { autoScroll: "autoScroll" }, outputs: { autoScrollChange: "autoScrollChange" }, host: { properties: { "style.overflow-anchor": "this.overflowAnchor" } }, exportAs: ["scrollAnchor"], ngImport: i0 });
|
1419
1476
|
}
|
1420
|
-
|
1421
|
-
ScrollAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ScrollAnchorDirective, isStandalone: true, selector: "[kendoChatScrollAnchor]", inputs: { autoScroll: "autoScroll" }, outputs: { autoScrollChange: "autoScrollChange" }, host: { properties: { "style.overflow-anchor": "this.overflowAnchor" } }, exportAs: ["scrollAnchor"], ngImport: i0 });
|
1422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
|
1423
1478
|
type: Directive,
|
1424
1479
|
args: [{
|
1425
1480
|
selector: '[kendoChatScrollAnchor]',
|
@@ -1439,10 +1494,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1439
1494
|
* @hidden
|
1440
1495
|
*/
|
1441
1496
|
let Messages$1 = class Messages extends ComponentMessages {
|
1497
|
+
/**
|
1498
|
+
* Sets the placeholder text of the message text input.
|
1499
|
+
*/
|
1500
|
+
messagePlaceholder;
|
1501
|
+
/**
|
1502
|
+
* Sets the text for the **Send** button.
|
1503
|
+
*/
|
1504
|
+
send;
|
1505
|
+
/**
|
1506
|
+
* The label for the Message list.
|
1507
|
+
*/
|
1508
|
+
messageListLabel;
|
1509
|
+
/**
|
1510
|
+
* The label for the Message input box.
|
1511
|
+
*
|
1512
|
+
*/
|
1513
|
+
messageBoxInputLabel;
|
1514
|
+
/**
|
1515
|
+
* The text for the left arrow of the message attachments.
|
1516
|
+
*/
|
1517
|
+
messageAttachmentLeftArrow;
|
1518
|
+
/**
|
1519
|
+
* The text for the right arrow of the message attachments.
|
1520
|
+
*/
|
1521
|
+
messageAttachmentRightArrow;
|
1522
|
+
/**
|
1523
|
+
* The alt attribute text for the avatar image.
|
1524
|
+
*/
|
1525
|
+
messageAvatarAlt;
|
1526
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
1527
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
|
1442
1528
|
};
|
1443
|
-
|
1444
|
-
Messages$1.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages$1, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
|
1445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages$1, decorators: [{
|
1529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages$1, decorators: [{
|
1446
1530
|
type: Directive,
|
1447
1531
|
args: [{
|
1448
1532
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
@@ -1469,19 +1553,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1469
1553
|
* @hidden
|
1470
1554
|
*/
|
1471
1555
|
let LocalizedMessagesDirective$1 = class LocalizedMessagesDirective extends Messages$1 {
|
1556
|
+
service;
|
1472
1557
|
constructor(service) {
|
1473
1558
|
super();
|
1474
1559
|
this.service = service;
|
1475
1560
|
}
|
1561
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
1562
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
|
1563
|
+
{
|
1564
|
+
provide: Messages$1,
|
1565
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
1566
|
+
}
|
1567
|
+
], usesInheritance: true, ngImport: i0 });
|
1476
1568
|
};
|
1477
|
-
|
1478
|
-
LocalizedMessagesDirective$1.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective$1, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
|
1479
|
-
{
|
1480
|
-
provide: Messages$1,
|
1481
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective$1)
|
1482
|
-
}
|
1483
|
-
], usesInheritance: true, ngImport: i0 });
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective$1, decorators: [{
|
1569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective$1, decorators: [{
|
1485
1570
|
type: Directive,
|
1486
1571
|
args: [{
|
1487
1572
|
providers: [
|
@@ -1506,52 +1591,75 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1506
1591
|
*
|
1507
1592
|
*/
|
1508
1593
|
class ChatComponent {
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1594
|
+
localization;
|
1595
|
+
zone;
|
1596
|
+
/**
|
1597
|
+
* Sets the messages of the Chat.
|
1598
|
+
* The message timestamp, if provided, tracks unique messages.
|
1599
|
+
* For more information, refer to [ngFor - Change Tracking](link:site.data.urls.angular['ngforof']#change-propagation).
|
1600
|
+
*/
|
1601
|
+
messages;
|
1602
|
+
/**
|
1603
|
+
* Sets the [`User`]({% slug api_conversational-ui_user %}) instance for the local user.
|
1604
|
+
* The User ID identifies messages that are authored by the local user.
|
1605
|
+
*/
|
1606
|
+
user;
|
1607
|
+
/**
|
1608
|
+
* Used to switch between a one-liner input or a textarea.
|
1609
|
+
* ([see example]({% slug message_box %})#toc-message-box-types).
|
1610
|
+
* @default input
|
1611
|
+
*/
|
1612
|
+
messageBoxType = 'textbox';
|
1613
|
+
/**
|
1614
|
+
* Fires when the user types a message and clicks the **Send** button or presses **Enter**.
|
1615
|
+
* Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
|
1616
|
+
*
|
1617
|
+
* > The message is not automatically appended to the `messages` array.
|
1618
|
+
*/
|
1619
|
+
sendMessage = new EventEmitter();
|
1620
|
+
/**
|
1621
|
+
* Fires when the user clicks a quick action button.
|
1622
|
+
* The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}).
|
1623
|
+
*
|
1624
|
+
* Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_executeactionevent %}).
|
1625
|
+
* The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
|
1626
|
+
*/
|
1627
|
+
executeAction = new EventEmitter();
|
1543
1628
|
get className() {
|
1544
1629
|
return 'k-chat';
|
1545
1630
|
}
|
1546
1631
|
get dirAttr() {
|
1547
1632
|
return this.direction;
|
1548
1633
|
}
|
1634
|
+
attachmentTemplate;
|
1635
|
+
messageTemplate;
|
1636
|
+
messageBoxTemplate;
|
1637
|
+
messageBox;
|
1638
|
+
/**
|
1639
|
+
* @hidden
|
1640
|
+
*/
|
1641
|
+
messageList;
|
1549
1642
|
/**
|
1550
1643
|
* @hidden
|
1551
1644
|
*/
|
1552
1645
|
get localizationText() {
|
1553
1646
|
return this.localization;
|
1554
1647
|
}
|
1648
|
+
/**
|
1649
|
+
* @hidden
|
1650
|
+
*/
|
1651
|
+
autoScroll = true;
|
1652
|
+
direction;
|
1653
|
+
localizationChangeSubscription;
|
1654
|
+
constructor(localization, zone) {
|
1655
|
+
this.localization = localization;
|
1656
|
+
this.zone = zone;
|
1657
|
+
validatePackage(packageMetadata);
|
1658
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
1659
|
+
this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
|
1660
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
1661
|
+
});
|
1662
|
+
}
|
1555
1663
|
ngOnChanges() {
|
1556
1664
|
this.zone.runOutsideAngular(() => setTimeout(() => {
|
1557
1665
|
this.messageList.nativeElement.style.flex = '1 1 auto';
|
@@ -1589,15 +1697,14 @@ class ChatComponent {
|
|
1589
1697
|
textFor(key) {
|
1590
1698
|
return this.localization.get(key);
|
1591
1699
|
}
|
1592
|
-
}
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
}
|
1600
|
-
], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
1700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatComponent, deps: [{ token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
1701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChatComponent, isStandalone: true, selector: "kendo-chat", inputs: { messages: "messages", user: "user", messageBoxType: "messageBoxType" }, outputs: { sendMessage: "sendMessage", executeAction: "executeAction" }, host: { properties: { "class": "this.className", "attr.dir": "this.dirAttr" } }, providers: [
|
1702
|
+
LocalizationService,
|
1703
|
+
{
|
1704
|
+
provide: L10N_PREFIX,
|
1705
|
+
useValue: 'kendo.chat'
|
1706
|
+
}
|
1707
|
+
], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
1601
1708
|
<ng-container kendoChatLocalizedMessages
|
1602
1709
|
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
1603
1710
|
messagePlaceholder="Type a message..."
|
@@ -1655,7 +1762,8 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
|
|
1655
1762
|
>
|
1656
1763
|
</kendo-message-box>
|
1657
1764
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$1, selector: "[kendoChatLocalizedMessages]" }, { kind: "directive", type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }, { kind: "component", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "localization", "user"], outputs: ["executeAction", "navigate", "resize"] }, { kind: "component", type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }] });
|
1658
|
-
|
1765
|
+
}
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatComponent, decorators: [{
|
1659
1767
|
type: Component,
|
1660
1768
|
args: [{
|
1661
1769
|
providers: [
|
@@ -1785,10 +1893,16 @@ const DEFAULT_ICONS = {
|
|
1785
1893
|
* @hidden
|
1786
1894
|
*/
|
1787
1895
|
class BaseView {
|
1896
|
+
viewType;
|
1897
|
+
localization;
|
1898
|
+
hostClasses = true;
|
1899
|
+
/**
|
1900
|
+
* @hidden
|
1901
|
+
*/
|
1902
|
+
template;
|
1788
1903
|
constructor(viewType, localization) {
|
1789
1904
|
this.viewType = viewType;
|
1790
1905
|
this.localization = localization;
|
1791
|
-
this.hostClasses = true;
|
1792
1906
|
if (this.viewType !== 'custom') {
|
1793
1907
|
this.icon = DEFAULT_ICONS[this.viewType];
|
1794
1908
|
this.svgIcon = DEFAULT_SVG_ICONS[this.viewType];
|
@@ -1839,10 +1953,13 @@ class BaseView {
|
|
1839
1953
|
messageFor(text) {
|
1840
1954
|
return this.localization.get(text);
|
1841
1955
|
}
|
1956
|
+
_buttonText;
|
1957
|
+
_icon;
|
1958
|
+
_svgIcon;
|
1959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseView, deps: [{ token: MY_TOKEN }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
1960
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseView, inputs: { buttonText: "buttonText", icon: "icon", svgIcon: "svgIcon" }, host: { properties: { "class.k-prompt-view": "this.hostClasses" } }, viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0 });
|
1842
1961
|
}
|
1843
|
-
|
1844
|
-
BaseView.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseView, inputs: { buttonText: "buttonText", icon: "icon", svgIcon: "svgIcon" }, host: { properties: { "class.k-prompt-view": "this.hostClasses" } }, viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0 });
|
1845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseView, decorators: [{
|
1962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseView, decorators: [{
|
1846
1963
|
type: Directive
|
1847
1964
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1848
1965
|
type: Inject,
|
@@ -1865,14 +1982,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1865
1982
|
* @hidden
|
1866
1983
|
*/
|
1867
1984
|
class AIPromptService {
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1985
|
+
aiPrompt;
|
1986
|
+
promptValue = '';
|
1987
|
+
showOutputRating = false;
|
1988
|
+
requestEvent = new Subject();
|
1989
|
+
executeEvent = new Subject();
|
1990
|
+
outputCopyEvent = new Subject();
|
1991
|
+
outputRatingChangeEvent = new Subject();
|
1992
|
+
promptCommands;
|
1993
|
+
promptOutputs;
|
1994
|
+
promptSuggestions;
|
1876
1995
|
getFlattenPromptCommands(commands = this.promptCommands) {
|
1877
1996
|
let newArr = [];
|
1878
1997
|
commands.forEach(c => {
|
@@ -1886,10 +2005,10 @@ class AIPromptService {
|
|
1886
2005
|
});
|
1887
2006
|
return newArr.concat(this.promptCommands);
|
1888
2007
|
}
|
2008
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
2009
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptService });
|
1889
2010
|
}
|
1890
|
-
|
1891
|
-
AIPromptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptService });
|
1892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptService, decorators: [{
|
2011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptService, decorators: [{
|
1893
2012
|
type: Injectable
|
1894
2013
|
}] });
|
1895
2014
|
|
@@ -1900,13 +2019,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1900
2019
|
* with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
|
1901
2020
|
*/
|
1902
2021
|
class AIPromptToolbarActionsDirective {
|
2022
|
+
templateRef;
|
1903
2023
|
constructor(templateRef) {
|
1904
2024
|
this.templateRef = templateRef;
|
1905
2025
|
}
|
2026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptToolbarActionsDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
2027
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AIPromptToolbarActionsDirective, isStandalone: true, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
|
1906
2028
|
}
|
1907
|
-
|
1908
|
-
AIPromptToolbarActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarActionsDirective, isStandalone: true, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
|
1909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
|
2029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
|
1910
2030
|
type: Directive,
|
1911
2031
|
args: [{
|
1912
2032
|
selector: '[kendoAIPromptToolbarActionsTemplate]',
|
@@ -1920,10 +2040,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1920
2040
|
* @hidden
|
1921
2041
|
*/
|
1922
2042
|
class ToolbarNavigationService {
|
2043
|
+
localizationService;
|
2044
|
+
focusableElements = [];
|
2045
|
+
currentFocusedIndex = 0;
|
1923
2046
|
constructor(localizationService) {
|
1924
2047
|
this.localizationService = localizationService;
|
1925
|
-
this.focusableElements = [];
|
1926
|
-
this.currentFocusedIndex = 0;
|
1927
2048
|
}
|
1928
2049
|
register(tool) {
|
1929
2050
|
if (!this.focusableElements.some(el => el === tool)) {
|
@@ -1957,10 +2078,10 @@ class ToolbarNavigationService {
|
|
1957
2078
|
focusFirst() {
|
1958
2079
|
this.focusableElements[this.currentFocusedIndex].activate();
|
1959
2080
|
}
|
2081
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2082
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService });
|
1960
2083
|
}
|
1961
|
-
|
1962
|
-
ToolbarNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService });
|
1963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
2084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
1964
2085
|
type: Injectable
|
1965
2086
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
1966
2087
|
|
@@ -1968,32 +2089,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
1968
2089
|
* @hidden
|
1969
2090
|
*/
|
1970
2091
|
class AIPromptToolbarFocusableDirective {
|
2092
|
+
host;
|
2093
|
+
navigationService;
|
2094
|
+
renderer;
|
1971
2095
|
constructor(host, navigationService, renderer) {
|
1972
2096
|
this.host = host;
|
1973
2097
|
this.navigationService = navigationService;
|
1974
2098
|
this.renderer = renderer;
|
1975
|
-
this.keyDownHandler = (e) => {
|
1976
|
-
const targetsSelf = e.target === this.element;
|
1977
|
-
const isLeftArrow = e.keyCode === Keys.ArrowLeft;
|
1978
|
-
const isRightArrow = e.keyCode === Keys.ArrowRight;
|
1979
|
-
const isArrow = isLeftArrow || isRightArrow;
|
1980
|
-
if (!targetsSelf || !isArrow) {
|
1981
|
-
return;
|
1982
|
-
}
|
1983
|
-
this.renderer.setAttribute(this.element, 'tabindex', '-1');
|
1984
|
-
this.element.querySelectorAll(focusableSelector).forEach(el => {
|
1985
|
-
this.renderer.setAttribute(el, 'tabindex', '-1');
|
1986
|
-
});
|
1987
|
-
if (isRightArrow) {
|
1988
|
-
this.navigationService.move('right');
|
1989
|
-
}
|
1990
|
-
else if (isLeftArrow) {
|
1991
|
-
this.navigationService.move('left');
|
1992
|
-
}
|
1993
|
-
};
|
1994
|
-
this.clickHandler = () => {
|
1995
|
-
this.navigationService.setActiveIndex(this);
|
1996
|
-
};
|
1997
2099
|
navigationService.register(this);
|
1998
2100
|
}
|
1999
2101
|
get element() {
|
@@ -2013,10 +2115,32 @@ class AIPromptToolbarFocusableDirective {
|
|
2013
2115
|
this.renderer.setAttribute(this.element, 'tabindex', '0');
|
2014
2116
|
this.element.focus();
|
2015
2117
|
}
|
2118
|
+
keyDownHandler = (e) => {
|
2119
|
+
const targetsSelf = e.target === this.element;
|
2120
|
+
const isLeftArrow = e.keyCode === Keys.ArrowLeft;
|
2121
|
+
const isRightArrow = e.keyCode === Keys.ArrowRight;
|
2122
|
+
const isArrow = isLeftArrow || isRightArrow;
|
2123
|
+
if (!targetsSelf || !isArrow) {
|
2124
|
+
return;
|
2125
|
+
}
|
2126
|
+
this.renderer.setAttribute(this.element, 'tabindex', '-1');
|
2127
|
+
this.element.querySelectorAll(focusableSelector).forEach(el => {
|
2128
|
+
this.renderer.setAttribute(el, 'tabindex', '-1');
|
2129
|
+
});
|
2130
|
+
if (isRightArrow) {
|
2131
|
+
this.navigationService.move('right');
|
2132
|
+
}
|
2133
|
+
else if (isLeftArrow) {
|
2134
|
+
this.navigationService.move('left');
|
2135
|
+
}
|
2136
|
+
};
|
2137
|
+
clickHandler = () => {
|
2138
|
+
this.navigationService.setActiveIndex(this);
|
2139
|
+
};
|
2140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: ToolbarNavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
2141
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AIPromptToolbarFocusableDirective, isStandalone: true, selector: "[kendoAIPromptToolbarFocusable]", ngImport: i0 });
|
2016
2142
|
}
|
2017
|
-
|
2018
|
-
AIPromptToolbarFocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarFocusableDirective, isStandalone: true, selector: "[kendoAIPromptToolbarFocusable]", ngImport: i0 });
|
2019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarFocusableDirective, decorators: [{
|
2143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptToolbarFocusableDirective, decorators: [{
|
2020
2144
|
type: Directive,
|
2021
2145
|
args: [{
|
2022
2146
|
selector: '[kendoAIPromptToolbarFocusable]',
|
@@ -2028,10 +2152,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2028
2152
|
* @hidden
|
2029
2153
|
*/
|
2030
2154
|
class Messages extends ComponentMessages {
|
2155
|
+
/**
|
2156
|
+
* The Toolbar button text for the Prompt view.
|
2157
|
+
*/
|
2158
|
+
promptView;
|
2159
|
+
/**
|
2160
|
+
* The Toolbar button text for the Output view.
|
2161
|
+
*/
|
2162
|
+
outputView;
|
2163
|
+
/**
|
2164
|
+
* The text for the Generate button in the Prompt view.
|
2165
|
+
*/
|
2166
|
+
generateOutput;
|
2167
|
+
/**
|
2168
|
+
* The placeholder text for the Prompt View text area.
|
2169
|
+
*/
|
2170
|
+
promptPlaceholder;
|
2171
|
+
/**
|
2172
|
+
* The Copy button text in each Output view card.
|
2173
|
+
*/
|
2174
|
+
copyOutput;
|
2175
|
+
/**
|
2176
|
+
* The Retry button text in each Output view card.
|
2177
|
+
*/
|
2178
|
+
retryGeneration;
|
2179
|
+
/**
|
2180
|
+
* The title of each Output view card.
|
2181
|
+
*/
|
2182
|
+
outputTitle;
|
2183
|
+
/**
|
2184
|
+
* The title of each Output view retry card.
|
2185
|
+
*/
|
2186
|
+
outputRetryTitle;
|
2187
|
+
/**
|
2188
|
+
* The title of the Prompt suggestions button.
|
2189
|
+
*/
|
2190
|
+
promptSuggestions;
|
2191
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
2192
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, inputs: { promptView: "promptView", outputView: "outputView", generateOutput: "generateOutput", promptPlaceholder: "promptPlaceholder", copyOutput: "copyOutput", retryGeneration: "retryGeneration", outputTitle: "outputTitle", outputRetryTitle: "outputRetryTitle", promptSuggestions: "promptSuggestions" }, usesInheritance: true, ngImport: i0 });
|
2031
2193
|
}
|
2032
|
-
|
2033
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, inputs: { promptView: "promptView", outputView: "outputView", generateOutput: "generateOutput", promptPlaceholder: "promptPlaceholder", copyOutput: "copyOutput", retryGeneration: "retryGeneration", outputTitle: "outputTitle", outputRetryTitle: "outputRetryTitle", promptSuggestions: "promptSuggestions" }, usesInheritance: true, ngImport: i0 });
|
2034
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
|
2035
2195
|
type: Directive
|
2036
2196
|
}], propDecorators: { promptView: [{
|
2037
2197
|
type: Input
|
@@ -2057,19 +2217,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2057
2217
|
* @hidden
|
2058
2218
|
*/
|
2059
2219
|
class LocalizedMessagesDirective extends Messages {
|
2220
|
+
service;
|
2060
2221
|
constructor(service) {
|
2061
2222
|
super();
|
2062
2223
|
this.service = service;
|
2063
2224
|
}
|
2225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
2226
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoAIPromptLocalizedMessages]", providers: [
|
2227
|
+
{
|
2228
|
+
provide: Messages,
|
2229
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
2230
|
+
}
|
2231
|
+
], usesInheritance: true, ngImport: i0 });
|
2064
2232
|
}
|
2065
|
-
|
2066
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoAIPromptLocalizedMessages]", providers: [
|
2067
|
-
{
|
2068
|
-
provide: Messages,
|
2069
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
2070
|
-
}
|
2071
|
-
], usesInheritance: true, ngImport: i0 });
|
2072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
2233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
2073
2234
|
type: Directive,
|
2074
2235
|
args: [{
|
2075
2236
|
providers: [
|
@@ -2087,53 +2248,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2087
2248
|
* Represents the Kendo UI AIPrompt component for Angular.
|
2088
2249
|
*/
|
2089
2250
|
class AIPromptComponent {
|
2251
|
+
localization;
|
2252
|
+
service;
|
2253
|
+
navigationService;
|
2254
|
+
ngZone;
|
2255
|
+
hostClasses = true;
|
2256
|
+
get dirAttr() {
|
2257
|
+
return this.direction;
|
2258
|
+
}
|
2090
2259
|
constructor(localization, service, navigationService, ngZone) {
|
2091
2260
|
this.localization = localization;
|
2092
2261
|
this.service = service;
|
2093
2262
|
this.navigationService = navigationService;
|
2094
2263
|
this.ngZone = ngZone;
|
2095
|
-
this.hostClasses = true;
|
2096
|
-
/**
|
2097
|
-
* Fires when the `activeView` property of the component is updated.
|
2098
|
-
* Used to provide a two-way binding for the `activeView` property.
|
2099
|
-
*/
|
2100
|
-
this.activeViewChange = new EventEmitter();
|
2101
|
-
/**
|
2102
|
-
* Fires each time the user clicks the Prompt view Generate button or the Output view Retry button.
|
2103
|
-
* To distinguish the source element, use the event's `isRetry` field.
|
2104
|
-
*/
|
2105
|
-
this.promptRequest = new EventEmitter();
|
2106
|
-
/**
|
2107
|
-
* Fires each time the user clicks a Command view command. Exposes the selected command as event data.
|
2108
|
-
*/
|
2109
|
-
this.commandExecute = new EventEmitter();
|
2110
|
-
/**
|
2111
|
-
* Fires each time the user clicks any Output view Copy button.
|
2112
|
-
*/
|
2113
|
-
this.outputCopy = new EventEmitter();
|
2114
|
-
/**
|
2115
|
-
* Fires each time the user clicks a rating button in any Output view card.
|
2116
|
-
*/
|
2117
|
-
this.outputRatingChange = new EventEmitter();
|
2118
|
-
this.subs = new Subscription();
|
2119
|
-
/**
|
2120
|
-
* @hidden
|
2121
|
-
*/
|
2122
|
-
this.sparklesIcon = sparklesIcon;
|
2123
|
-
/**
|
2124
|
-
* @hidden
|
2125
|
-
*/
|
2126
|
-
this.outputIcon = commentIcon;
|
2127
|
-
this._activeView = 0;
|
2128
2264
|
validatePackage(packageMetadata);
|
2129
2265
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
2130
2266
|
this.subs.add(localization.changes.subscribe(({ rtl }) => {
|
2131
2267
|
this.direction = rtl ? 'rtl' : 'ltr';
|
2132
2268
|
}));
|
2133
2269
|
}
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2270
|
+
/**
|
2271
|
+
* @hidden
|
2272
|
+
*/
|
2273
|
+
views;
|
2274
|
+
/**
|
2275
|
+
* @hidden
|
2276
|
+
*/
|
2277
|
+
toolbarActionsTemplate;
|
2137
2278
|
/**
|
2138
2279
|
* The active view index of the AIPrompt component.
|
2139
2280
|
*/
|
@@ -2173,6 +2314,28 @@ class AIPromptComponent {
|
|
2173
2314
|
set showOutputRating(value) {
|
2174
2315
|
this.service.showOutputRating = value;
|
2175
2316
|
}
|
2317
|
+
/**
|
2318
|
+
* Fires when the `activeView` property of the component is updated.
|
2319
|
+
* Used to provide a two-way binding for the `activeView` property.
|
2320
|
+
*/
|
2321
|
+
activeViewChange = new EventEmitter();
|
2322
|
+
/**
|
2323
|
+
* Fires each time the user clicks the Prompt view Generate button or the Output view Retry button.
|
2324
|
+
* To distinguish the source element, use the event's `isRetry` field.
|
2325
|
+
*/
|
2326
|
+
promptRequest = new EventEmitter();
|
2327
|
+
/**
|
2328
|
+
* Fires each time the user clicks a Command view command. Exposes the selected command as event data.
|
2329
|
+
*/
|
2330
|
+
commandExecute = new EventEmitter();
|
2331
|
+
/**
|
2332
|
+
* Fires each time the user clicks any Output view Copy button.
|
2333
|
+
*/
|
2334
|
+
outputCopy = new EventEmitter();
|
2335
|
+
/**
|
2336
|
+
* Fires each time the user clicks a rating button in any Output view card.
|
2337
|
+
*/
|
2338
|
+
outputRatingChange = new EventEmitter();
|
2176
2339
|
ngAfterViewInit() {
|
2177
2340
|
this.ngZone.runOutsideAngular(() => {
|
2178
2341
|
this.service.aiPrompt = this;
|
@@ -2191,18 +2354,29 @@ class AIPromptComponent {
|
|
2191
2354
|
focus() {
|
2192
2355
|
this.navigationService.focusFirst();
|
2193
2356
|
}
|
2357
|
+
subs = new Subscription();
|
2194
2358
|
/**
|
2195
2359
|
* @hidden
|
2196
2360
|
*/
|
2197
2361
|
get selectedView() {
|
2198
2362
|
return this.viewsArray[this.activeView];
|
2199
2363
|
}
|
2364
|
+
/**
|
2365
|
+
* @hidden
|
2366
|
+
*/
|
2367
|
+
sparklesIcon = sparklesIcon;
|
2368
|
+
/**
|
2369
|
+
* @hidden
|
2370
|
+
*/
|
2371
|
+
outputIcon = commentIcon;
|
2200
2372
|
/**
|
2201
2373
|
* @hidden
|
2202
2374
|
*/
|
2203
2375
|
get viewsArray() {
|
2204
2376
|
return this.views?.toArray();
|
2205
2377
|
}
|
2378
|
+
direction;
|
2379
|
+
_activeView = 0;
|
2206
2380
|
/**
|
2207
2381
|
* @hidden
|
2208
2382
|
*/
|
@@ -2236,17 +2410,16 @@ class AIPromptComponent {
|
|
2236
2410
|
};
|
2237
2411
|
this.promptRequest.emit(eventArgs);
|
2238
2412
|
}
|
2239
|
-
}
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
}
|
2249
|
-
], queries: [{ propertyName: "toolbarActionsTemplate", first: true, predicate: AIPromptToolbarActionsDirective, descendants: true }, { propertyName: "views", predicate: BaseView }], exportAs: ["kendoAIPrompt"], ngImport: i0, template: `
|
2413
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }, { token: ToolbarNavigationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
2414
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AIPromptComponent, isStandalone: true, selector: "kendo-aiprompt", inputs: { activeView: "activeView", promptCommands: "promptCommands", promptSuggestions: "promptSuggestions", promptOutputs: "promptOutputs", showOutputRating: "showOutputRating" }, outputs: { activeViewChange: "activeViewChange", promptRequest: "promptRequest", commandExecute: "commandExecute", outputCopy: "outputCopy", outputRatingChange: "outputRatingChange" }, host: { properties: { "class.k-prompt": "this.hostClasses", "attr.dir": "this.dirAttr" } }, providers: [
|
2415
|
+
LocalizationService,
|
2416
|
+
AIPromptService,
|
2417
|
+
ToolbarNavigationService,
|
2418
|
+
{
|
2419
|
+
provide: L10N_PREFIX,
|
2420
|
+
useValue: 'kendo.aiprompt'
|
2421
|
+
}
|
2422
|
+
], queries: [{ propertyName: "toolbarActionsTemplate", first: true, predicate: AIPromptToolbarActionsDirective, descendants: true }, { propertyName: "views", predicate: BaseView }], exportAs: ["kendoAIPrompt"], ngImport: i0, template: `
|
2250
2423
|
<ng-container kendoAIPromptLocalizedMessages
|
2251
2424
|
i18n-promptView="kendo.aiprompt.promptView|The Toolbar button text for the Prompt view."
|
2252
2425
|
promptView="Ask AI"
|
@@ -2307,8 +2480,9 @@ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
2307
2480
|
(click)="handleGenerateOutput()">{{messageFor('generateOutput')}}</button>
|
2308
2481
|
</div>
|
2309
2482
|
</div>
|
2310
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoAIPromptLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
2311
|
-
|
2483
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoAIPromptLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: 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: "directive", type: AIPromptToolbarFocusableDirective, selector: "[kendoAIPromptToolbarFocusable]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
2484
|
+
}
|
2485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptComponent, decorators: [{
|
2312
2486
|
type: Component,
|
2313
2487
|
args: [{
|
2314
2488
|
exportAs: 'kendoAIPrompt',
|
@@ -2425,14 +2599,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2425
2599
|
* The component for rendering the AIPrompt Command View.
|
2426
2600
|
*/
|
2427
2601
|
class CommandViewComponent extends BaseView {
|
2602
|
+
service;
|
2428
2603
|
constructor(localization, service) {
|
2429
2604
|
super('command', localization);
|
2430
2605
|
this.service = service;
|
2431
|
-
/**
|
2432
|
-
* @hidden
|
2433
|
-
*/
|
2434
|
-
this.panelBarItems = [];
|
2435
2606
|
}
|
2607
|
+
/**
|
2608
|
+
* @hidden
|
2609
|
+
*/
|
2610
|
+
panelBarItems = [];
|
2436
2611
|
ngOnInit() {
|
2437
2612
|
if (this.service.promptCommands) {
|
2438
2613
|
this.panelBarItems = this.getPanelBarItems(this.service.promptCommands);
|
@@ -2464,12 +2639,11 @@ class CommandViewComponent extends BaseView {
|
|
2464
2639
|
children: c.children ? this.getPanelBarItems(c.children) : null
|
2465
2640
|
}));
|
2466
2641
|
}
|
2467
|
-
}
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2472
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
2642
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommandViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
2643
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CommandViewComponent, isStandalone: true, selector: "kendo-aiprompt-command-view", providers: [{
|
2644
|
+
provide: BaseView,
|
2645
|
+
useExisting: forwardRef(() => CommandViewComponent)
|
2646
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
2473
2647
|
<ng-template #content>
|
2474
2648
|
<kendo-panelbar
|
2475
2649
|
[items]="panelBarItems"
|
@@ -2479,7 +2653,8 @@ CommandViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
2479
2653
|
></kendo-panelbar>
|
2480
2654
|
</ng-template>
|
2481
2655
|
`, isInline: true, dependencies: [{ kind: "component", type: PanelBarComponent, selector: "kendo-panelbar", inputs: ["expandMode", "selectable", "animate", "height", "keepItemContent", "items"], outputs: ["stateChange", "select", "expand", "collapse", "itemClick"], exportAs: ["kendoPanelbar"] }] });
|
2482
|
-
|
2656
|
+
}
|
2657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommandViewComponent, decorators: [{
|
2483
2658
|
type: Component,
|
2484
2659
|
args: [{
|
2485
2660
|
selector: 'kendo-aiprompt-command-view',
|
@@ -2507,6 +2682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2507
2682
|
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
2508
2683
|
*/
|
2509
2684
|
class AIPromptCustomMessagesComponent extends Messages {
|
2685
|
+
service;
|
2510
2686
|
constructor(service) {
|
2511
2687
|
super();
|
2512
2688
|
this.service = service;
|
@@ -2514,15 +2690,15 @@ class AIPromptCustomMessagesComponent extends Messages {
|
|
2514
2690
|
get override() {
|
2515
2691
|
return true;
|
2516
2692
|
}
|
2693
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptCustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
2694
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-aiprompt-messages", providers: [
|
2695
|
+
{
|
2696
|
+
provide: Messages,
|
2697
|
+
useExisting: forwardRef(() => AIPromptCustomMessagesComponent)
|
2698
|
+
}
|
2699
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2517
2700
|
}
|
2518
|
-
|
2519
|
-
AIPromptCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-aiprompt-messages", providers: [
|
2520
|
-
{
|
2521
|
-
provide: Messages,
|
2522
|
-
useExisting: forwardRef(() => AIPromptCustomMessagesComponent)
|
2523
|
-
}
|
2524
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptCustomMessagesComponent, decorators: [{
|
2701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptCustomMessagesComponent, decorators: [{
|
2526
2702
|
type: Component,
|
2527
2703
|
args: [{
|
2528
2704
|
providers: [
|
@@ -2544,13 +2720,17 @@ class CustomViewComponent extends BaseView {
|
|
2544
2720
|
constructor(localization) {
|
2545
2721
|
super('custom', localization);
|
2546
2722
|
}
|
2723
|
+
/**
|
2724
|
+
* Sets the content of the Custom view as a template reference.
|
2725
|
+
*/
|
2726
|
+
viewTemplate;
|
2727
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomViewComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
2728
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomViewComponent, isStandalone: true, selector: "kendo-aiprompt-custom-view", inputs: { viewTemplate: "viewTemplate" }, providers: [{
|
2729
|
+
provide: BaseView,
|
2730
|
+
useExisting: forwardRef(() => CustomViewComponent)
|
2731
|
+
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2547
2732
|
}
|
2548
|
-
|
2549
|
-
CustomViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomViewComponent, isStandalone: true, selector: "kendo-aiprompt-custom-view", inputs: { viewTemplate: "viewTemplate" }, providers: [{
|
2550
|
-
provide: BaseView,
|
2551
|
-
useExisting: forwardRef(() => CustomViewComponent)
|
2552
|
-
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomViewComponent, decorators: [{
|
2733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomViewComponent, decorators: [{
|
2554
2734
|
type: Component,
|
2555
2735
|
args: [{
|
2556
2736
|
selector: 'kendo-aiprompt-custom-view',
|
@@ -2569,21 +2749,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2569
2749
|
* @hidden
|
2570
2750
|
*/
|
2571
2751
|
class AIPromptOutputCardComponent {
|
2752
|
+
localization;
|
2753
|
+
service;
|
2754
|
+
hostClass = true;
|
2755
|
+
listItemRole = 'listitem';
|
2756
|
+
tabIndex = 0;
|
2757
|
+
get ariaDescribedBy() {
|
2758
|
+
return this.titleId;
|
2759
|
+
}
|
2760
|
+
ariaKeyShortcuts = 'Enter';
|
2761
|
+
promptOutput;
|
2572
2762
|
constructor(localization, service) {
|
2573
2763
|
this.localization = localization;
|
2574
2764
|
this.service = service;
|
2575
|
-
this.hostClass = true;
|
2576
|
-
this.listItemRole = 'listitem';
|
2577
|
-
this.tabIndex = 0;
|
2578
|
-
this.ariaKeyShortcuts = 'Enter';
|
2579
|
-
this.copyIcon = copyIcon;
|
2580
|
-
this.retryIcon = arrowRotateCwIcon;
|
2581
|
-
this.positiveRatingIcon = thumbUpOutlineIcon;
|
2582
|
-
this.negativeRatingIcon = thumbDownOutlineIcon;
|
2583
|
-
this.titleId = `k-output-card-${guid()}`;
|
2584
|
-
}
|
2585
|
-
get ariaDescribedBy() {
|
2586
|
-
return this.titleId;
|
2587
2765
|
}
|
2588
2766
|
ngOnInit() {
|
2589
2767
|
if (this.promptOutput?.rating === 'positive') {
|
@@ -2595,6 +2773,11 @@ class AIPromptOutputCardComponent {
|
|
2595
2773
|
this.positiveRatingIcon = thumbUpOutlineIcon;
|
2596
2774
|
}
|
2597
2775
|
}
|
2776
|
+
copyIcon = copyIcon;
|
2777
|
+
retryIcon = arrowRotateCwIcon;
|
2778
|
+
positiveRatingIcon = thumbUpOutlineIcon;
|
2779
|
+
negativeRatingIcon = thumbDownOutlineIcon;
|
2780
|
+
titleId = `k-output-card-${guid()}`;
|
2598
2781
|
messageFor(text) {
|
2599
2782
|
return this.localization.get(text);
|
2600
2783
|
}
|
@@ -2647,9 +2830,8 @@ class AIPromptOutputCardComponent {
|
|
2647
2830
|
this.positiveRatingIcon = thumbUpOutlineIcon;
|
2648
2831
|
}
|
2649
2832
|
}
|
2650
|
-
}
|
2651
|
-
|
2652
|
-
AIPromptOutputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptOutputCardComponent, isStandalone: true, selector: "[kendoAIPromptOutputCard]", inputs: { promptOutput: "promptOutput" }, host: { properties: { "class.k-card": "this.hostClass", "attr.role": "this.listItemRole", "attr.tabindex": "this.tabIndex", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-keyshortcuts": "this.ariaKeyShortcuts" } }, ngImport: i0, template: `
|
2833
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptOutputCardComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
2834
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AIPromptOutputCardComponent, isStandalone: true, selector: "[kendoAIPromptOutputCard]", inputs: { promptOutput: "promptOutput" }, host: { properties: { "class.k-card": "this.hostClass", "attr.role": "this.listItemRole", "attr.tabindex": "this.tabIndex", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-keyshortcuts": "this.ariaKeyShortcuts" } }, ngImport: i0, template: `
|
2653
2835
|
<div class="k-card-header">
|
2654
2836
|
<div
|
2655
2837
|
class="k-card-title"
|
@@ -2692,8 +2874,9 @@ AIPromptOutputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
2692
2874
|
</button>
|
2693
2875
|
</ng-container>
|
2694
2876
|
</div>
|
2695
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
2696
|
-
|
2877
|
+
`, isInline: true, dependencies: [{ kind: "component", type: 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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
2878
|
+
}
|
2879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptOutputCardComponent, decorators: [{
|
2697
2880
|
type: Component,
|
2698
2881
|
args: [{
|
2699
2882
|
selector: '[kendoAIPromptOutputCard]',
|
@@ -2767,6 +2950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2767
2950
|
* The component for rendering the AIPrompt Output View.
|
2768
2951
|
*/
|
2769
2952
|
class OutputViewComponent extends BaseView {
|
2953
|
+
service;
|
2770
2954
|
constructor(localization, service) {
|
2771
2955
|
super('output', localization);
|
2772
2956
|
this.service = service;
|
@@ -2777,12 +2961,11 @@ class OutputViewComponent extends BaseView {
|
|
2777
2961
|
get promptOutputs() {
|
2778
2962
|
return this.service.promptOutputs;
|
2779
2963
|
}
|
2780
|
-
}
|
2781
|
-
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
2964
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OutputViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
2965
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OutputViewComponent, isStandalone: true, selector: "kendo-aiprompt-output-view", providers: [{
|
2966
|
+
provide: BaseView,
|
2967
|
+
useExisting: forwardRef(() => OutputViewComponent)
|
2968
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
2786
2969
|
<ng-template #content>
|
2787
2970
|
<div
|
2788
2971
|
class="k-card-list"
|
@@ -2794,7 +2977,8 @@ OutputViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
2794
2977
|
</div>
|
2795
2978
|
</ng-template>
|
2796
2979
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: AIPromptOutputCardComponent, selector: "[kendoAIPromptOutputCard]", inputs: ["promptOutput"] }] });
|
2797
|
-
|
2980
|
+
}
|
2981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OutputViewComponent, decorators: [{
|
2798
2982
|
type: Component,
|
2799
2983
|
args: [{
|
2800
2984
|
selector: 'kendo-aiprompt-output-view',
|
@@ -2823,17 +3007,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2823
3007
|
* The component for rendering the AIPrompt Prompt View.
|
2824
3008
|
*/
|
2825
3009
|
class PromptViewComponent extends BaseView {
|
3010
|
+
service;
|
2826
3011
|
constructor(localization, service) {
|
2827
3012
|
super('prompt', localization);
|
2828
3013
|
this.service = service;
|
2829
|
-
/**
|
2830
|
-
* @hidden
|
2831
|
-
*/
|
2832
|
-
this.showSuggestions = true;
|
2833
|
-
/**
|
2834
|
-
* @hidden
|
2835
|
-
*/
|
2836
|
-
this.contentId = `k-prompt-suggestions-${guid()}`;
|
2837
3014
|
}
|
2838
3015
|
/**
|
2839
3016
|
* @hidden
|
@@ -2843,6 +3020,14 @@ class PromptViewComponent extends BaseView {
|
|
2843
3020
|
{ font: 'chevron-up', svg: chevronUpIcon } :
|
2844
3021
|
{ font: 'chevron-down', svg: chevronDownIcon };
|
2845
3022
|
}
|
3023
|
+
/**
|
3024
|
+
* @hidden
|
3025
|
+
*/
|
3026
|
+
showSuggestions = true;
|
3027
|
+
/**
|
3028
|
+
* @hidden
|
3029
|
+
*/
|
3030
|
+
contentId = `k-prompt-suggestions-${guid()}`;
|
2846
3031
|
/**
|
2847
3032
|
* @hidden
|
2848
3033
|
*/
|
@@ -2865,14 +3050,13 @@ class PromptViewComponent extends BaseView {
|
|
2865
3050
|
suggestionClick(suggestion) {
|
2866
3051
|
this.textAreaValue = this.service.promptValue = suggestion;
|
2867
3052
|
}
|
2868
|
-
}
|
2869
|
-
|
2870
|
-
|
2871
|
-
|
2872
|
-
|
2873
|
-
|
2874
|
-
|
2875
|
-
], usesInheritance: true, ngImport: i0, template: `
|
3053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PromptViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
3054
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PromptViewComponent, isStandalone: true, selector: "kendo-aiprompt-prompt-view", providers: [
|
3055
|
+
{
|
3056
|
+
provide: BaseView,
|
3057
|
+
useExisting: forwardRef(() => PromptViewComponent)
|
3058
|
+
}
|
3059
|
+
], usesInheritance: true, ngImport: i0, template: `
|
2876
3060
|
<ng-template #content>
|
2877
3061
|
<kendo-textarea
|
2878
3062
|
[placeholder]="messageFor('promptPlaceholder')"
|
@@ -2904,8 +3088,9 @@ PromptViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
2904
3088
|
</div>
|
2905
3089
|
</div>
|
2906
3090
|
</ng-template>
|
2907
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
2908
|
-
|
3091
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: 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: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
3092
|
+
}
|
3093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PromptViewComponent, decorators: [{
|
2909
3094
|
type: Component,
|
2910
3095
|
args: [{
|
2911
3096
|
selector: 'kendo-aiprompt-prompt-view',
|
@@ -2959,6 +3144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2959
3144
|
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
2960
3145
|
*/
|
2961
3146
|
class CustomMessagesComponent extends Messages$1 {
|
3147
|
+
service;
|
2962
3148
|
constructor(service) {
|
2963
3149
|
super();
|
2964
3150
|
this.service = service;
|
@@ -2966,15 +3152,15 @@ class CustomMessagesComponent extends Messages$1 {
|
|
2966
3152
|
get override() {
|
2967
3153
|
return true;
|
2968
3154
|
}
|
3155
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
3156
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
|
3157
|
+
{
|
3158
|
+
provide: Messages$1,
|
3159
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
3160
|
+
}
|
3161
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2969
3162
|
}
|
2970
|
-
|
2971
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
|
2972
|
-
{
|
2973
|
-
provide: Messages$1,
|
2974
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
2975
|
-
}
|
2976
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
2977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
3163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
2978
3164
|
type: Component,
|
2979
3165
|
args: [{
|
2980
3166
|
providers: [
|
@@ -2994,19 +3180,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2994
3180
|
* Hero cards host a single large image and action buttons with text content.
|
2995
3181
|
*/
|
2996
3182
|
class HeroCardComponent {
|
2997
|
-
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
|
3003
|
-
|
3183
|
+
/**
|
3184
|
+
* The URL of the hero card image.
|
3185
|
+
*/
|
3186
|
+
imageUrl;
|
3187
|
+
/**
|
3188
|
+
* The title of the hero card.
|
3189
|
+
*/
|
3190
|
+
title;
|
3191
|
+
/**
|
3192
|
+
* The subtitle of the hero card.
|
3193
|
+
*/
|
3194
|
+
subtitle;
|
3195
|
+
/**
|
3196
|
+
* An array with the possible quick actions for this hero card.
|
3197
|
+
*/
|
3198
|
+
actions;
|
3199
|
+
cssClass = true;
|
3200
|
+
/**
|
3201
|
+
* Fires when the user clicks a button.
|
3202
|
+
*/
|
3203
|
+
executeAction = new EventEmitter();
|
3004
3204
|
onClick(action) {
|
3005
3205
|
this.executeAction.next(action);
|
3006
3206
|
}
|
3007
|
-
}
|
3008
|
-
|
3009
|
-
HeroCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HeroCardComponent, isStandalone: true, selector: "kendo-chat-hero-card", inputs: { imageUrl: "imageUrl", title: "title", subtitle: "subtitle", actions: "actions" }, outputs: { executeAction: "executeAction" }, host: { properties: { "class.k-card": "this.cssClass" } }, ngImport: i0, template: `
|
3207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeroCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
3208
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeroCardComponent, isStandalone: true, selector: "kendo-chat-hero-card", inputs: { imageUrl: "imageUrl", title: "title", subtitle: "subtitle", actions: "actions" }, outputs: { executeAction: "executeAction" }, host: { properties: { "class.k-card": "this.cssClass" } }, ngImport: i0, template: `
|
3010
3209
|
<img class="k-card-image" [src]="imageUrl" *ngIf="imageUrl" />
|
3011
3210
|
<div class="k-card-body">
|
3012
3211
|
<h5 class="k-card-title" *ngIf="title">
|
@@ -3028,8 +3227,9 @@ HeroCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
3028
3227
|
</button>
|
3029
3228
|
</span>
|
3030
3229
|
</div>
|
3031
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
3032
|
-
|
3230
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: 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"] }] });
|
3231
|
+
}
|
3232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeroCardComponent, decorators: [{
|
3033
3233
|
type: Component,
|
3034
3234
|
args: [{
|
3035
3235
|
selector: 'kendo-chat-hero-card',
|
@@ -3129,11 +3329,11 @@ const KENDO_CONVERSATIONALUI = [
|
|
3129
3329
|
* ```
|
3130
3330
|
*/
|
3131
3331
|
class AIPromptModule {
|
3332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3333
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AIPromptModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective] });
|
3334
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent] });
|
3132
3335
|
}
|
3133
|
-
|
3134
|
-
AIPromptModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective] });
|
3135
|
-
AIPromptModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent] });
|
3136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, decorators: [{
|
3336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AIPromptModule, decorators: [{
|
3137
3337
|
type: NgModule,
|
3138
3338
|
args: [{
|
3139
3339
|
exports: [...KENDO_AIPROMPT],
|
@@ -3165,11 +3365,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
3165
3365
|
* ```
|
3166
3366
|
*/
|
3167
3367
|
class ChatModule {
|
3368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3369
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, imports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective], exports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective] });
|
3370
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [ChatComponent, HeroCardComponent] });
|
3168
3371
|
}
|
3169
|
-
|
3170
|
-
ChatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, imports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective], exports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective] });
|
3171
|
-
ChatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [ChatComponent, CustomMessagesComponent, HeroCardComponent] });
|
3172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, decorators: [{
|
3372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, decorators: [{
|
3173
3373
|
type: NgModule,
|
3174
3374
|
args: [{
|
3175
3375
|
exports: [...KENDO_CHAT],
|
@@ -3211,11 +3411,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
3211
3411
|
* ```
|
3212
3412
|
*/
|
3213
3413
|
class ConversationalUIModule {
|
3414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3415
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective] });
|
3416
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, ChatComponent, HeroCardComponent] });
|
3214
3417
|
}
|
3215
|
-
|
3216
|
-
ConversationalUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective] });
|
3217
|
-
ConversationalUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, ChatComponent, CustomMessagesComponent, HeroCardComponent] });
|
3218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, decorators: [{
|
3418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, decorators: [{
|
3219
3419
|
type: NgModule,
|
3220
3420
|
args: [{
|
3221
3421
|
exports: [...KENDO_CONVERSATIONALUI],
|