@progress/kendo-angular-conversational-ui 16.5.0 → 16.6.0-develop.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/NOTICE.txt +12 -19
  2. package/ai-prompt/aiprompt.component.d.ts +1 -1
  3. package/ai-prompt/aiprompt.module.d.ts +1 -8
  4. package/ai-prompt/common/output-card.component.d.ts +1 -1
  5. package/ai-prompt/common/toolbar-focusable.directive.d.ts +1 -1
  6. package/ai-prompt/localization/custom-messages.component.d.ts +1 -1
  7. package/ai-prompt/localization/localized-messages.directive.d.ts +1 -1
  8. package/ai-prompt/templates/toolbar-actions.template.d.ts +1 -1
  9. package/ai-prompt/views/command-view.component.d.ts +2 -2
  10. package/ai-prompt/views/custom-view.component.d.ts +1 -1
  11. package/ai-prompt/views/output-view.component.d.ts +1 -1
  12. package/ai-prompt/views/prompt-view.component.d.ts +1 -1
  13. package/chat/api/message.interface.d.ts +1 -1
  14. package/chat/api/user.interface.d.ts +1 -1
  15. package/chat/attachment-template.directive.d.ts +1 -1
  16. package/chat/attachment.component.d.ts +1 -1
  17. package/chat/cards/hero-card.component.d.ts +1 -1
  18. package/chat/chat.component.d.ts +1 -1
  19. package/chat/chat.module.d.ts +1 -13
  20. package/chat/common/focused-state.directive.d.ts +1 -1
  21. package/chat/common/scroll-anchor.directive.d.ts +1 -1
  22. package/chat/l10n/custom-messages.component.d.ts +1 -1
  23. package/chat/l10n/localized-messages.directive.d.ts +1 -1
  24. package/chat/message-attachments.component.d.ts +3 -3
  25. package/chat/message-box.component.d.ts +3 -3
  26. package/chat/message-box.directive.d.ts +1 -1
  27. package/chat/message-list.component.d.ts +3 -3
  28. package/chat/message-template.directive.d.ts +1 -1
  29. package/chat/message.component.d.ts +1 -1
  30. package/chat/suggested-actions.component.d.ts +1 -1
  31. package/conversational-ui.module.d.ts +15 -3
  32. package/directives.d.ts +29 -0
  33. package/esm2020/ai-prompt/aiprompt.component.mjs +10 -8
  34. package/esm2020/ai-prompt/aiprompt.module.mjs +19 -63
  35. package/esm2020/ai-prompt/common/output-card.component.mjs +7 -5
  36. package/esm2020/ai-prompt/common/toolbar-focusable.directive.mjs +3 -2
  37. package/esm2020/ai-prompt/localization/custom-messages.component.mjs +3 -2
  38. package/esm2020/ai-prompt/localization/localized-messages.directive.mjs +3 -2
  39. package/esm2020/ai-prompt/templates/toolbar-actions.template.mjs +3 -2
  40. package/esm2020/ai-prompt/views/command-view.component.mjs +6 -4
  41. package/esm2020/ai-prompt/views/custom-view.component.mjs +3 -2
  42. package/esm2020/ai-prompt/views/output-view.component.mjs +7 -5
  43. package/esm2020/ai-prompt/views/prompt-view.component.mjs +8 -6
  44. package/esm2020/chat/attachment-template.directive.mjs +3 -2
  45. package/esm2020/chat/attachment.component.mjs +6 -4
  46. package/esm2020/chat/cards/hero-card.component.mjs +7 -5
  47. package/esm2020/chat/chat.component.mjs +8 -7
  48. package/esm2020/chat/chat.module.mjs +15 -71
  49. package/esm2020/chat/common/focused-state.directive.mjs +3 -2
  50. package/esm2020/chat/common/scroll-anchor.directive.mjs +3 -2
  51. package/esm2020/chat/l10n/custom-messages.component.mjs +3 -2
  52. package/esm2020/chat/l10n/localized-messages.directive.mjs +3 -2
  53. package/esm2020/chat/message-attachments.component.mjs +10 -8
  54. package/esm2020/chat/message-box.component.mjs +10 -8
  55. package/esm2020/chat/message-box.directive.mjs +3 -2
  56. package/esm2020/chat/message-list.component.mjs +11 -12
  57. package/esm2020/chat/message-template.directive.mjs +3 -2
  58. package/esm2020/chat/message.component.mjs +6 -4
  59. package/esm2020/chat/suggested-actions.component.mjs +6 -4
  60. package/esm2020/conversational-ui.module.mjs +25 -5
  61. package/esm2020/directives.mjs +48 -0
  62. package/esm2020/index.mjs +1 -0
  63. package/esm2020/package-metadata.mjs +2 -2
  64. package/fesm2015/progress-kendo-angular-conversational-ui.mjs +1285 -1306
  65. package/fesm2020/progress-kendo-angular-conversational-ui.mjs +649 -670
  66. package/index.d.ts +1 -0
  67. package/package.json +10 -10
@@ -3,25 +3,22 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Directive, Optional, HostBinding, HostListener, EventEmitter, Component, ViewChild, Input, Output, forwardRef, isDevMode, ViewChildren, ElementRef, ContentChild, InjectionToken, Inject, Injectable, ContentChildren, NgModule } from '@angular/core';
7
- import * as i1 from '@progress/kendo-angular-l10n';
6
+ import { Directive, Optional, HostBinding, HostListener, EventEmitter, Component, ViewChild, Input, Output, isDevMode, forwardRef, ViewChildren, ElementRef, ContentChild, InjectionToken, Inject, Injectable, ContentChildren, NgModule } from '@angular/core';
7
+ import * as i1$1 from '@progress/kendo-angular-l10n';
8
8
  import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
10
- import * as i3 from '@progress/kendo-angular-common';
11
- import { Keys, isPresent, guid, focusableSelector, ResizeSensorModule } from '@progress/kendo-angular-common';
12
- import { paperPlaneIcon, chevronLeftIcon, chevronRightIcon, sparklesIcon, commentIcon, moreHorizontalIcon, chevronUpIcon, chevronDownIcon, copyIcon, arrowRotateCwIcon, thumbUpOutlineIcon, thumbDownOutlineIcon, thumbUpIcon, thumbDownIcon } from '@progress/kendo-svg-icons';
13
- import * as i4 from '@progress/kendo-angular-buttons';
14
- import { ButtonsModule, ButtonModule } from '@progress/kendo-angular-buttons';
15
- import * as i2 from '@angular/common';
16
- import { CommonModule } from '@angular/common';
17
- import * as i1$1 from '@progress/kendo-angular-intl';
10
+ import { NgIf, NgTemplateOutlet, NgFor, NgSwitch, NgSwitchCase } from '@angular/common';
11
+ import { Keys, ResizeSensorComponent, isPresent, focusableSelector, guid, ResizeBatchService } from '@progress/kendo-angular-common';
12
+ import { paperPlaneIcon, chevronLeftIcon, chevronRightIcon, sparklesIcon, commentIcon, moreHorizontalIcon, copyIcon, arrowRotateCwIcon, thumbUpOutlineIcon, thumbDownOutlineIcon, thumbUpIcon, thumbDownIcon, chevronUpIcon, chevronDownIcon } from '@progress/kendo-svg-icons';
13
+ import { ButtonComponent } from '@progress/kendo-angular-buttons';
14
+ import * as i1 from '@progress/kendo-angular-intl';
18
15
  import { fromEvent, Subscription, Subject } from 'rxjs';
19
16
  import { debounceTime } from 'rxjs/operators';
20
- import { IconsModule } from '@progress/kendo-angular-icons';
21
- import * as i5 from '@progress/kendo-angular-inputs';
22
- import { InputsModule } from '@progress/kendo-angular-inputs';
23
- import * as i3$1 from '@progress/kendo-angular-layout';
24
- import { LayoutModule } from '@progress/kendo-angular-layout';
17
+ import { IconsService } from '@progress/kendo-angular-icons';
18
+ import { PopupService } from '@progress/kendo-angular-popup';
19
+ import { DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
20
+ import { PanelBarComponent } from '@progress/kendo-angular-layout';
21
+ import { TextAreaComponent } from '@progress/kendo-angular-inputs';
25
22
 
26
23
  /**
27
24
  * Defines a template that will be used for displaying message attachments. To define an attachment
@@ -41,11 +38,12 @@ class AttachmentTemplateDirective {
41
38
  }
42
39
  }
43
40
  AttachmentTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AttachmentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
44
- AttachmentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AttachmentTemplateDirective, selector: "[kendoChatAttachmentTemplate]", ngImport: i0 });
41
+ AttachmentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AttachmentTemplateDirective, isStandalone: true, selector: "[kendoChatAttachmentTemplate]", ngImport: i0 });
45
42
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AttachmentTemplateDirective, decorators: [{
46
43
  type: Directive,
47
44
  args: [{
48
- selector: '[kendoChatAttachmentTemplate]'
45
+ selector: '[kendoChatAttachmentTemplate]',
46
+ standalone: true
49
47
  }]
50
48
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
51
49
  type: Optional
@@ -103,11 +101,12 @@ class MessageTemplateDirective {
103
101
  }
104
102
  }
105
103
  MessageTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
106
- MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessageTemplateDirective, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
104
+ MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
107
105
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageTemplateDirective, decorators: [{
108
106
  type: Directive,
109
107
  args: [{
110
- selector: '[kendoChatMessageTemplate]'
108
+ selector: '[kendoChatMessageTemplate]',
109
+ standalone: true
111
110
  }]
112
111
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
113
112
  type: Optional
@@ -120,8 +119,8 @@ const packageMetadata = {
120
119
  name: '@progress/kendo-angular-conversational-ui',
121
120
  productName: 'Kendo UI for Angular',
122
121
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
123
- publishDate: 1721814415,
124
- version: '16.5.0',
122
+ publishDate: 1722607209,
123
+ version: '16.6.0-develop.10',
125
124
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
126
125
  };
127
126
 
@@ -136,11 +135,12 @@ class ChatMessageBoxTemplateDirective {
136
135
  }
137
136
  }
138
137
  ChatMessageBoxTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
139
- ChatMessageBoxTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChatMessageBoxTemplateDirective, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
138
+ ChatMessageBoxTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
140
139
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
141
140
  type: Directive,
142
141
  args: [{
143
- selector: '[kendoChatMessageBoxTemplate]'
142
+ selector: '[kendoChatMessageBoxTemplate]',
143
+ standalone: true
144
144
  }]
145
145
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
146
146
 
@@ -159,11 +159,12 @@ class FocusedStateDirective {
159
159
  }
160
160
  }
161
161
  FocusedStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FocusedStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
162
- FocusedStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FocusedStateDirective, selector: "[kendoChatFocusedState]", host: { listeners: { "focusin": "onFocus()", "focusout": "onBlur()" }, properties: { "class.k-focus": "this.focused" } }, ngImport: i0 });
162
+ FocusedStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FocusedStateDirective, isStandalone: true, selector: "[kendoChatFocusedState]", host: { listeners: { "focusin": "onFocus()", "focusout": "onBlur()" }, properties: { "class.k-focus": "this.focused" } }, ngImport: i0 });
163
163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FocusedStateDirective, decorators: [{
164
164
  type: Directive,
165
165
  args: [{
166
- selector: '[kendoChatFocusedState]'
166
+ selector: '[kendoChatFocusedState]',
167
+ standalone: true
167
168
  }]
168
169
  }], propDecorators: { focused: [{
169
170
  type: HostBinding,
@@ -244,7 +245,7 @@ class MessageBoxComponent {
244
245
  }
245
246
  }
246
247
  MessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
247
- MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageBoxComponent, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "class": "this.hostClasses", "class.!k-align-items-end": "this.messageBoxValue" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
248
+ 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: { "class": "this.hostClasses", "class.!k-align-items-end": "this.messageBoxValue" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
248
249
  <ng-container *ngIf="!messageBoxTemplate">
249
250
  <input
250
251
  *ngIf="type === 'textbox'"
@@ -284,7 +285,7 @@ MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
284
285
  </ng-container>
285
286
 
286
287
  <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
287
- `, isInline: true, dependencies: [{ kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FocusedStateDirective, selector: "[kendoChatFocusedState]" }] });
288
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: FocusedStateDirective, selector: "[kendoChatFocusedState]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
288
289
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, decorators: [{
289
290
  type: Component,
290
291
  args: [{
@@ -329,7 +330,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
329
330
  </ng-container>
330
331
 
331
332
  <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
332
- `
333
+ `,
334
+ standalone: true,
335
+ imports: [NgIf, FocusedStateDirective, ButtonComponent, NgTemplateOutlet]
333
336
  }]
334
337
  }], propDecorators: { hostClasses: [{
335
338
  type: HostBinding,
@@ -354,65 +357,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
354
357
  type: Output
355
358
  }] } });
356
359
 
357
- /**
358
- * @hidden
359
- */
360
- let Messages$1 = class Messages extends ComponentMessages {
361
- };
362
- Messages$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages$1, deps: null, target: i0.ɵɵFactoryTarget.Directive });
363
- 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 });
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages$1, decorators: [{
365
- type: Directive,
366
- args: [{
367
- // eslint-disable-next-line @angular-eslint/directive-selector
368
- selector: 'kendoConversationalUIMessages'
369
- }]
370
- }], propDecorators: { messagePlaceholder: [{
371
- type: Input
372
- }], send: [{
373
- type: Input
374
- }], messageListLabel: [{
375
- type: Input
376
- }], messageBoxInputLabel: [{
377
- type: Input
378
- }], messageAttachmentLeftArrow: [{
379
- type: Input
380
- }], messageAttachmentRightArrow: [{
381
- type: Input
382
- }], messageAvatarAlt: [{
383
- type: Input
384
- }] } });
385
-
386
- // eslint-disable no-forward-ref
387
- /**
388
- * @hidden
389
- */
390
- let LocalizedMessagesDirective$1 = class LocalizedMessagesDirective extends Messages$1 {
391
- constructor(service) {
392
- super();
393
- this.service = service;
394
- }
395
- };
396
- LocalizedMessagesDirective$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective$1, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
397
- LocalizedMessagesDirective$1.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective$1, selector: "[kendoChatLocalizedMessages]", providers: [
398
- {
399
- provide: Messages$1,
400
- useExisting: forwardRef(() => LocalizedMessagesDirective$1)
401
- }
402
- ], usesInheritance: true, ngImport: i0 });
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective$1, decorators: [{
404
- type: Directive,
405
- args: [{
406
- providers: [
407
- {
408
- provide: Messages$1,
409
- useExisting: forwardRef(() => LocalizedMessagesDirective$1)
410
- }
411
- ],
412
- selector: '[kendoChatLocalizedMessages]'
413
- }]
414
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
415
-
416
360
  // eslint-disable max-line-length
417
361
 
418
362
  /**
@@ -586,7 +530,7 @@ class SuggestedActionsComponent extends ChatItem {
586
530
  }
587
531
  }
588
532
  SuggestedActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
589
- SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: { actions: "actions", tabbable: "tabbable" }, outputs: { dispatch: "dispatch" }, host: { properties: { "class.k-quick-replies": "this.defaultClass" } }, providers: [{
533
+ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [{
590
534
  provide: ChatItem,
591
535
  useExisting: forwardRef(() => SuggestedActionsComponent)
592
536
  }], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
@@ -605,7 +549,7 @@ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
605
549
  >
606
550
  {{ action.title || action.value }}
607
551
  </span>
608
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
552
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
609
553
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
610
554
  type: Component,
611
555
  args: [{
@@ -630,7 +574,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
630
574
  >
631
575
  {{ action.title || action.value }}
632
576
  </span>
633
- `
577
+ `,
578
+ standalone: true,
579
+ imports: [NgFor]
634
580
  }]
635
581
  }], propDecorators: { actions: [{
636
582
  type: Input
@@ -667,8 +613,8 @@ class MessageComponent extends ChatItem {
667
613
  this.element.nativeElement.focus();
668
614
  }
669
615
  }
670
- MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
671
- MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageComponent, 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: [{
616
+ MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
617
+ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [{
672
618
  provide: ChatItem,
673
619
  useExisting: forwardRef(() => MessageComponent)
674
620
  }], usesInheritance: true, ngImport: i0, template: `
@@ -709,7 +655,7 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
709
655
  </div>
710
656
  </div>
711
657
  </ng-template>
712
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
658
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
713
659
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageComponent, decorators: [{
714
660
  type: Component,
715
661
  args: [{
@@ -756,9 +702,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
756
702
  </div>
757
703
  </div>
758
704
  </ng-template>
759
- `
705
+ `,
706
+ standalone: true,
707
+ imports: [NgIf, NgTemplateOutlet]
760
708
  }]
761
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.IntlService }]; }, propDecorators: { message: [{
709
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.IntlService }]; }, propDecorators: { message: [{
762
710
  type: Input
763
711
  }], tabbable: [{
764
712
  type: Input
@@ -802,7 +750,7 @@ class AttachmentComponent {
802
750
  }
803
751
  }
804
752
  AttachmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AttachmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
805
- AttachmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: { attachment: "attachment", template: "template" }, ngImport: i0, template: `
753
+ AttachmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AttachmentComponent, isStandalone: true, selector: "kendo-chat-attachment", inputs: { attachment: "attachment", template: "template" }, ngImport: i0, template: `
806
754
  <ng-container *ngIf="template">
807
755
  <ng-container *ngTemplateOutlet="template.templateRef; context: context;">
808
756
  </ng-container>
@@ -822,7 +770,7 @@ AttachmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
822
770
  </ng-container>
823
771
  </div>
824
772
  </div>
825
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
773
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
826
774
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AttachmentComponent, decorators: [{
827
775
  type: Component,
828
776
  args: [{
@@ -847,7 +795,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
847
795
  </ng-container>
848
796
  </div>
849
797
  </div>
850
- `
798
+ `,
799
+ standalone: true,
800
+ imports: [NgIf, NgTemplateOutlet]
851
801
  }]
852
802
  }], propDecorators: { attachment: [{
853
803
  type: Input
@@ -963,8 +913,8 @@ class MessageAttachmentsComponent extends ChatItem {
963
913
  return this.localization.get(key);
964
914
  }
965
915
  }
966
- MessageAttachmentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
967
- MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageAttachmentsComponent, 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: [{
916
+ MessageAttachmentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
917
+ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [{
968
918
  provide: ChatItem,
969
919
  useExisting: forwardRef(() => MessageAttachmentsComponent)
970
920
  }], 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: `
@@ -1008,7 +958,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
1008
958
  icon="chevron-right"
1009
959
  >
1010
960
  </button>
1011
- `, isInline: true, dependencies: [{ kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }] });
961
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "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"] }] });
1012
962
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
1013
963
  type: Component,
1014
964
  args: [{
@@ -1058,9 +1008,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1058
1008
  icon="chevron-right"
1059
1009
  >
1060
1010
  </button>
1061
- `
1011
+ `,
1012
+ standalone: true,
1013
+ imports: [NgIf, ButtonComponent, NgFor, AttachmentComponent]
1062
1014
  }]
1063
- }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { attachments: [{
1015
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.LocalizationService }]; }, propDecorators: { attachments: [{
1064
1016
  type: Input
1065
1017
  }], layout: [{
1066
1018
  type: Input
@@ -1213,8 +1165,8 @@ class MessageListComponent {
1213
1165
  return this.localization.get(key);
1214
1166
  }
1215
1167
  }
1216
- MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1217
- MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageListComponent, 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: `
1168
+ MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1169
+ 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: `
1218
1170
  <ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
1219
1171
  <ng-container [ngSwitch]="group.type">
1220
1172
  <div
@@ -1298,7 +1250,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
1298
1250
  </ng-container>
1299
1251
  <kendo-resize-sensor (resize)="onResize()">
1300
1252
  </kendo-resize-sensor>
1301
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { 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: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { kind: "component", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }] });
1253
+ `, 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"] }] });
1302
1254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageListComponent, decorators: [{
1303
1255
  type: Component,
1304
1256
  args: [{
@@ -1387,9 +1339,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1387
1339
  </ng-container>
1388
1340
  <kendo-resize-sensor (resize)="onResize()">
1389
1341
  </kendo-resize-sensor>
1390
- `
1342
+ `,
1343
+ standalone: true,
1344
+ imports: [NgFor, NgSwitch, NgSwitchCase, NgIf, MessageComponent, AttachmentComponent, MessageAttachmentsComponent, SuggestedActionsComponent, ResizeSensorComponent]
1391
1345
  }]
1392
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.IntlService }, { type: i0.Renderer2 }]; }, propDecorators: { messages: [{
1346
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.IntlService }, { type: i0.Renderer2 }]; }, propDecorators: { messages: [{
1393
1347
  type: Input
1394
1348
  }], attachmentTemplate: [{
1395
1349
  type: Input
@@ -1467,12 +1421,13 @@ class ScrollAnchorDirective {
1467
1421
  }
1468
1422
  }
1469
1423
  ScrollAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1470
- ScrollAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: { autoScroll: "autoScroll" }, outputs: { autoScrollChange: "autoScrollChange" }, host: { properties: { "style.overflow-anchor": "this.overflowAnchor" } }, exportAs: ["scrollAnchor"], ngImport: i0 });
1424
+ 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 });
1471
1425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
1472
1426
  type: Directive,
1473
1427
  args: [{
1474
1428
  selector: '[kendoChatScrollAnchor]',
1475
- exportAs: 'scrollAnchor'
1429
+ exportAs: 'scrollAnchor',
1430
+ standalone: true
1476
1431
  }]
1477
1432
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { autoScroll: [{
1478
1433
  type: Input
@@ -1483,6 +1438,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1483
1438
  args: ['style.overflow-anchor']
1484
1439
  }] } });
1485
1440
 
1441
+ /**
1442
+ * @hidden
1443
+ */
1444
+ let Messages$1 = class Messages extends ComponentMessages {
1445
+ };
1446
+ Messages$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages$1, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1447
+ 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 });
1448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages$1, decorators: [{
1449
+ type: Directive,
1450
+ args: [{
1451
+ // eslint-disable-next-line @angular-eslint/directive-selector
1452
+ selector: 'kendoConversationalUIMessages'
1453
+ }]
1454
+ }], propDecorators: { messagePlaceholder: [{
1455
+ type: Input
1456
+ }], send: [{
1457
+ type: Input
1458
+ }], messageListLabel: [{
1459
+ type: Input
1460
+ }], messageBoxInputLabel: [{
1461
+ type: Input
1462
+ }], messageAttachmentLeftArrow: [{
1463
+ type: Input
1464
+ }], messageAttachmentRightArrow: [{
1465
+ type: Input
1466
+ }], messageAvatarAlt: [{
1467
+ type: Input
1468
+ }] } });
1469
+
1470
+ // eslint-disable no-forward-ref
1471
+ /**
1472
+ * @hidden
1473
+ */
1474
+ let LocalizedMessagesDirective$1 = class LocalizedMessagesDirective extends Messages$1 {
1475
+ constructor(service) {
1476
+ super();
1477
+ this.service = service;
1478
+ }
1479
+ };
1480
+ LocalizedMessagesDirective$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective$1, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
1481
+ LocalizedMessagesDirective$1.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective$1, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
1482
+ {
1483
+ provide: Messages$1,
1484
+ useExisting: forwardRef(() => LocalizedMessagesDirective$1)
1485
+ }
1486
+ ], usesInheritance: true, ngImport: i0 });
1487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective$1, decorators: [{
1488
+ type: Directive,
1489
+ args: [{
1490
+ providers: [
1491
+ {
1492
+ provide: Messages$1,
1493
+ useExisting: forwardRef(() => LocalizedMessagesDirective$1)
1494
+ }
1495
+ ],
1496
+ selector: '[kendoChatLocalizedMessages]',
1497
+ standalone: true
1498
+ }]
1499
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
1500
+
1486
1501
  /**
1487
1502
  * Represents the Kendo UI Chat component for Angular.
1488
1503
  *
@@ -1578,8 +1593,8 @@ class ChatComponent {
1578
1593
  return this.localization.get(key);
1579
1594
  }
1580
1595
  }
1581
- ChatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1582
- ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChatComponent, 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: [
1596
+ ChatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatComponent, deps: [{ token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1597
+ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
1583
1598
  LocalizationService,
1584
1599
  {
1585
1600
  provide: L10N_PREFIX,
@@ -1642,7 +1657,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
1642
1657
  (sendMessage)="sendMessage.emit($event)"
1643
1658
  >
1644
1659
  </kendo-message-box>
1645
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$1, selector: "[kendoChatLocalizedMessages]" }, { kind: "component", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "localization", "user"], outputs: ["executeAction", "navigate", "resize"] }, { kind: "directive", type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }, { kind: "component", type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }] });
1660
+ `, 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"] }] });
1646
1661
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatComponent, decorators: [{
1647
1662
  type: Component,
1648
1663
  args: [{
@@ -1711,9 +1726,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1711
1726
  (sendMessage)="sendMessage.emit($event)"
1712
1727
  >
1713
1728
  </kendo-message-box>
1714
- `
1729
+ `,
1730
+ standalone: true,
1731
+ imports: [LocalizedMessagesDirective$1, ScrollAnchorDirective, MessageListComponent, MessageBoxComponent]
1715
1732
  }]
1716
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { messages: [{
1733
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { messages: [{
1717
1734
  type: Input
1718
1735
  }], user: [{
1719
1736
  type: Input
@@ -1826,14 +1843,14 @@ class BaseView {
1826
1843
  return this.localization.get(text);
1827
1844
  }
1828
1845
  }
1829
- BaseView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseView, deps: [{ token: MY_TOKEN }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
1846
+ BaseView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseView, deps: [{ token: MY_TOKEN }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
1830
1847
  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 });
1831
1848
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseView, decorators: [{
1832
1849
  type: Directive
1833
1850
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1834
1851
  type: Inject,
1835
1852
  args: [MY_TOKEN]
1836
- }] }, { type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
1853
+ }] }, { type: i1$1.LocalizationService }]; }, propDecorators: { hostClasses: [{
1837
1854
  type: HostBinding,
1838
1855
  args: ['class.k-prompt-view']
1839
1856
  }], template: [{
@@ -1880,408 +1897,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1880
1897
  }] });
1881
1898
 
1882
1899
  /**
1883
- * The component for rendering the AIPrompt Prompt View.
1900
+ * Represents a template that allows you to define additional ToolBar actions.
1901
+ * The actions will be rendered right after all views' ToolBar buttons.
1902
+ * To define the template, nest an `<ng-template>` tag
1903
+ * with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
1884
1904
  */
1885
- class PromptViewComponent extends BaseView {
1886
- constructor(localization, service) {
1887
- super('prompt', localization);
1888
- this.service = service;
1889
- /**
1890
- * @hidden
1891
- */
1892
- this.showSuggestions = true;
1893
- /**
1894
- * @hidden
1895
- */
1896
- this.contentId = `k-prompt-suggestions-${guid()}`;
1897
- }
1898
- /**
1899
- * @hidden
1900
- */
1901
- get suggestionsIcons() {
1902
- return this.showSuggestions ?
1903
- { font: 'chevron-up', svg: chevronUpIcon } :
1904
- { font: 'chevron-down', svg: chevronDownIcon };
1905
- }
1906
- /**
1907
- * @hidden
1908
- */
1909
- get promptSuggestions() {
1910
- return this.service.promptSuggestions;
1911
- }
1912
- /**
1913
- *
1914
- * @hidden
1915
- */
1916
- set textAreaValue(value) {
1917
- this.service.promptValue = value;
1918
- }
1919
- get textAreaValue() {
1920
- return this.service.promptValue;
1921
- }
1922
- /**
1923
- * @hidden
1924
- */
1925
- suggestionClick(suggestion) {
1926
- this.textAreaValue = this.service.promptValue = suggestion;
1905
+ class AIPromptToolbarActionsDirective {
1906
+ constructor(templateRef) {
1907
+ this.templateRef = templateRef;
1927
1908
  }
1928
1909
  }
1929
- PromptViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
1930
- PromptViewComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PromptViewComponent, selector: "kendo-aiprompt-prompt-view", providers: [
1931
- {
1932
- provide: BaseView,
1933
- useExisting: forwardRef(() => PromptViewComponent)
1934
- }
1935
- ], usesInheritance: true, ngImport: i0, template: `
1936
- <ng-template #content>
1937
- <kendo-textarea
1938
- [placeholder]="messageFor('promptPlaceholder')"
1939
- [rows]="1"
1940
- [(value)]="textAreaValue">
1941
- </kendo-textarea>
1942
- <div *ngIf="promptSuggestions"
1943
- class="k-prompt-expander">
1944
- <button kendoButton
1945
- [attr.aria-controls]="contentId"
1946
- [attr.aria-expanded]="showSuggestions"
1947
- fillMode="flat"
1948
- [icon]="suggestionsIcons.font"
1949
- [svgIcon]="suggestionsIcons.svg"
1950
- type="button"
1951
- (click)="showSuggestions = !showSuggestions">
1952
- {{messageFor('promptSuggestions')}}
1953
- </button>
1954
- <div *ngIf="showSuggestions"
1955
- class="k-prompt-expander-content"
1956
- role="list"
1957
- [attr.id]="contentId">
1958
- <div *ngFor="let suggestion of promptSuggestions"
1959
- class="k-prompt-suggestion"
1960
- role="listitem"
1961
- (click)="suggestionClick(suggestion)">
1962
- {{suggestion}}
1963
- </div>
1964
- </div>
1965
- </div>
1966
- </ng-template>
1967
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i5.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"] }] });
1968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptViewComponent, decorators: [{
1969
- type: Component,
1910
+ AIPromptToolbarActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarActionsDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
1911
+ AIPromptToolbarActionsDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarActionsDirective, isStandalone: true, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
1912
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
1913
+ type: Directive,
1970
1914
  args: [{
1971
- selector: 'kendo-aiprompt-prompt-view',
1972
- providers: [
1973
- {
1974
- provide: BaseView,
1975
- useExisting: forwardRef(() => PromptViewComponent)
1976
- }
1977
- ],
1978
- template: `
1979
- <ng-template #content>
1980
- <kendo-textarea
1981
- [placeholder]="messageFor('promptPlaceholder')"
1982
- [rows]="1"
1983
- [(value)]="textAreaValue">
1984
- </kendo-textarea>
1985
- <div *ngIf="promptSuggestions"
1986
- class="k-prompt-expander">
1987
- <button kendoButton
1988
- [attr.aria-controls]="contentId"
1989
- [attr.aria-expanded]="showSuggestions"
1990
- fillMode="flat"
1991
- [icon]="suggestionsIcons.font"
1992
- [svgIcon]="suggestionsIcons.svg"
1993
- type="button"
1994
- (click)="showSuggestions = !showSuggestions">
1995
- {{messageFor('promptSuggestions')}}
1996
- </button>
1997
- <div *ngIf="showSuggestions"
1998
- class="k-prompt-expander-content"
1999
- role="list"
2000
- [attr.id]="contentId">
2001
- <div *ngFor="let suggestion of promptSuggestions"
2002
- class="k-prompt-suggestion"
2003
- role="listitem"
2004
- (click)="suggestionClick(suggestion)">
2005
- {{suggestion}}
2006
- </div>
2007
- </div>
2008
- </div>
2009
- </ng-template>
2010
- `
1915
+ selector: '[kendoAIPromptToolbarActionsTemplate]',
1916
+ standalone: true
2011
1917
  }]
2012
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: AIPromptService }]; } });
2013
-
2014
- /**
2015
- * @hidden
2016
- */
2017
- class AIPromptOutputCardComponent {
2018
- constructor(localization, service) {
2019
- this.localization = localization;
2020
- this.service = service;
2021
- this.hostClass = true;
2022
- this.listItemRole = 'listitem';
2023
- this.tabIndex = 0;
2024
- this.ariaKeyShortcuts = 'Enter';
2025
- this.copyIcon = copyIcon;
2026
- this.retryIcon = arrowRotateCwIcon;
2027
- this.positiveRatingIcon = thumbUpOutlineIcon;
2028
- this.negativeRatingIcon = thumbDownOutlineIcon;
2029
- this.titleId = `k-output-card-${guid()}`;
2030
- }
2031
- get ariaDescribedBy() {
2032
- return this.titleId;
2033
- }
2034
- ngOnInit() {
2035
- if (this.promptOutput?.rating === 'positive') {
2036
- this.positiveRatingIcon = thumbUpIcon;
2037
- this.negativeRatingIcon = thumbDownOutlineIcon;
2038
- }
2039
- else if (this.promptOutput?.rating === 'negative') {
2040
- this.negativeRatingIcon = thumbDownIcon;
2041
- this.positiveRatingIcon = thumbUpOutlineIcon;
2042
- }
2043
- }
2044
- messageFor(text) {
2045
- return this.localization.get(text);
2046
- }
2047
- get showRating() {
2048
- return this.service.showOutputRating;
2049
- }
2050
- get outputTitle() {
2051
- if (isPresent(this.promptOutput.title)) {
2052
- return this.promptOutput.title;
2053
- }
2054
- else {
2055
- const titleMessage = this.promptOutput.isRetry ? 'outputRetryTitle' : 'outputTitle';
2056
- return this.messageFor(titleMessage);
2057
- }
2058
- }
2059
- handleRetry() {
2060
- if (this.promptOutput.commandId) {
2061
- const eventArgs = {
2062
- command: this.service.getFlattenPromptCommands().find(c => c.id === this.promptOutput.commandId),
2063
- sender: this.service.aiPrompt,
2064
- isRetry: true
2065
- };
2066
- this.service.executeEvent.next(eventArgs);
2067
- }
2068
- else {
2069
- const eventArgs = {
2070
- prompt: this.promptOutput.prompt,
2071
- sender: this.service.aiPrompt,
2072
- isRetry: true
2073
- };
2074
- this.service.requestEvent.next(eventArgs);
2075
- }
2076
- }
2077
- handleCopy() {
2078
- navigator.clipboard.writeText(this.promptOutput.output);
2079
- this.service.outputCopyEvent.next(this.promptOutput);
2080
- }
2081
- handleRating(ratingType) {
2082
- const eventArgs = {
2083
- promptOutput: this.promptOutput,
2084
- rating: ratingType
2085
- };
2086
- this.service.outputRatingChangeEvent.next(eventArgs);
2087
- if (ratingType === 'positive') {
2088
- this.positiveRatingIcon = thumbUpIcon;
2089
- this.negativeRatingIcon = thumbDownOutlineIcon;
2090
- }
2091
- else {
2092
- this.negativeRatingIcon = thumbDownIcon;
2093
- this.positiveRatingIcon = thumbUpOutlineIcon;
2094
- }
2095
- }
2096
- }
2097
- AIPromptOutputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptOutputCardComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2098
- AIPromptOutputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptOutputCardComponent, 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: `
2099
- <div class="k-card-header">
2100
- <div
2101
- class="k-card-title"
2102
- [attr.id]="titleId">{{outputTitle}}
2103
- </div>
2104
- <div class="k-card-subtitle">{{promptOutput.prompt}}</div>
2105
- </div>
2106
- <div class="k-card-body">
2107
- <p>{{promptOutput.output}}</p>
2108
- </div>
2109
- <div class="k-actions k-actions-start k-actions-horizontal k-card-actions">
2110
- <button kendoButton
2111
- fillMode="flat"
2112
- themeColor="primary"
2113
- rounded="full"
2114
- icon="copy"
2115
- [svgIcon]="copyIcon"
2116
- (click)="handleCopy()"
2117
- >{{messageFor('copyOutput')}}</button>
2118
- <button kendoButton
2119
- fillMode="flat"
2120
- rounded="full"
2121
- icon="arrow-rotate-cw"
2122
- [svgIcon]="retryIcon"
2123
- (click)="handleRetry()"
2124
- >{{messageFor('retryGeneration')}}</button>
2125
- <ng-container *ngIf="showRating">
2126
- <span class="k-spacer"></span>
2127
- <button kendoButton
2128
- fillMode="flat"
2129
- icon="thumb-up-outline"
2130
- [svgIcon]="positiveRatingIcon"
2131
- (click)="handleRating('positive')">
2132
- </button>
2133
- <button kendoButton
2134
- fillMode="flat"
2135
- icon="thumb-down-outline"
2136
- [svgIcon]="negativeRatingIcon"
2137
- (click)="handleRating('negative')">
2138
- </button>
2139
- </ng-container>
2140
- </div>
2141
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
2142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptOutputCardComponent, decorators: [{
2143
- type: Component,
2144
- args: [{
2145
- selector: '[kendoAIPromptOutputCard]',
2146
- template: `
2147
- <div class="k-card-header">
2148
- <div
2149
- class="k-card-title"
2150
- [attr.id]="titleId">{{outputTitle}}
2151
- </div>
2152
- <div class="k-card-subtitle">{{promptOutput.prompt}}</div>
2153
- </div>
2154
- <div class="k-card-body">
2155
- <p>{{promptOutput.output}}</p>
2156
- </div>
2157
- <div class="k-actions k-actions-start k-actions-horizontal k-card-actions">
2158
- <button kendoButton
2159
- fillMode="flat"
2160
- themeColor="primary"
2161
- rounded="full"
2162
- icon="copy"
2163
- [svgIcon]="copyIcon"
2164
- (click)="handleCopy()"
2165
- >{{messageFor('copyOutput')}}</button>
2166
- <button kendoButton
2167
- fillMode="flat"
2168
- rounded="full"
2169
- icon="arrow-rotate-cw"
2170
- [svgIcon]="retryIcon"
2171
- (click)="handleRetry()"
2172
- >{{messageFor('retryGeneration')}}</button>
2173
- <ng-container *ngIf="showRating">
2174
- <span class="k-spacer"></span>
2175
- <button kendoButton
2176
- fillMode="flat"
2177
- icon="thumb-up-outline"
2178
- [svgIcon]="positiveRatingIcon"
2179
- (click)="handleRating('positive')">
2180
- </button>
2181
- <button kendoButton
2182
- fillMode="flat"
2183
- icon="thumb-down-outline"
2184
- [svgIcon]="negativeRatingIcon"
2185
- (click)="handleRating('negative')">
2186
- </button>
2187
- </ng-container>
2188
- </div>
2189
- `
2190
- }]
2191
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: AIPromptService }]; }, propDecorators: { hostClass: [{
2192
- type: HostBinding,
2193
- args: ['class.k-card']
2194
- }], listItemRole: [{
2195
- type: HostBinding,
2196
- args: ['attr.role']
2197
- }], tabIndex: [{
2198
- type: HostBinding,
2199
- args: ['attr.tabindex']
2200
- }], ariaDescribedBy: [{
2201
- type: HostBinding,
2202
- args: ['attr.aria-describedby']
2203
- }], ariaKeyShortcuts: [{
2204
- type: HostBinding,
2205
- args: ['attr.aria-keyshortcuts']
2206
- }], promptOutput: [{
2207
- type: Input
2208
- }] } });
2209
-
2210
- /**
2211
- * The component for rendering the AIPrompt Output View.
2212
- */
2213
- class OutputViewComponent extends BaseView {
2214
- constructor(localization, service) {
2215
- super('output', localization);
2216
- this.service = service;
2217
- }
2218
- /**
2219
- * @hidden
2220
- */
2221
- get promptOutputs() {
2222
- return this.service.promptOutputs;
2223
- }
2224
- }
2225
- OutputViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutputViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2226
- OutputViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: OutputViewComponent, selector: "kendo-aiprompt-output-view", providers: [{
2227
- provide: BaseView,
2228
- useExisting: forwardRef(() => OutputViewComponent)
2229
- }], usesInheritance: true, ngImport: i0, template: `
2230
- <ng-template #content>
2231
- <div
2232
- class="k-card-list"
2233
- role="list">
2234
- <div *ngFor="let output of promptOutputs"
2235
- kendoAIPromptOutputCard
2236
- [promptOutput]="output">
2237
- </div>
2238
- </div>
2239
- </ng-template>
2240
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: AIPromptOutputCardComponent, selector: "[kendoAIPromptOutputCard]", inputs: ["promptOutput"] }] });
2241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutputViewComponent, decorators: [{
2242
- type: Component,
2243
- args: [{
2244
- selector: 'kendo-aiprompt-output-view',
2245
- providers: [{
2246
- provide: BaseView,
2247
- useExisting: forwardRef(() => OutputViewComponent)
2248
- }],
2249
- template: `
2250
- <ng-template #content>
2251
- <div
2252
- class="k-card-list"
2253
- role="list">
2254
- <div *ngFor="let output of promptOutputs"
2255
- kendoAIPromptOutputCard
2256
- [promptOutput]="output">
2257
- </div>
2258
- </div>
2259
- </ng-template>
2260
- `
2261
- }]
2262
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: AIPromptService }]; } });
2263
-
2264
- /**
2265
- * Represents a template that allows you to define additional ToolBar actions.
2266
- * The actions will be rendered right after all views' ToolBar buttons.
2267
- * To define the template, nest an `<ng-template>` tag
2268
- * with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
2269
- */
2270
- class AIPromptToolbarActionsDirective {
2271
- constructor(templateRef) {
2272
- this.templateRef = templateRef;
2273
- }
2274
- }
2275
- AIPromptToolbarActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarActionsDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2276
- AIPromptToolbarActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarActionsDirective, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
2277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
2278
- type: Directive,
2279
- args: [{
2280
- selector: '[kendoAIPromptToolbarActionsTemplate]'
2281
- }]
2282
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
2283
- type: Optional
2284
- }] }]; } });
1918
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
1919
+ type: Optional
1920
+ }] }]; } });
2285
1921
 
2286
1922
  /**
2287
1923
  * @hidden
@@ -2325,11 +1961,11 @@ class ToolbarNavigationService {
2325
1961
  this.focusableElements[this.currentFocusedIndex].activate();
2326
1962
  }
2327
1963
  }
2328
- ToolbarNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
1964
+ ToolbarNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
2329
1965
  ToolbarNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService });
2330
1966
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarNavigationService, decorators: [{
2331
1967
  type: Injectable
2332
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
1968
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
2333
1969
 
2334
1970
  /**
2335
1971
  * @hidden
@@ -2382,11 +2018,12 @@ class AIPromptToolbarFocusableDirective {
2382
2018
  }
2383
2019
  }
2384
2020
  AIPromptToolbarFocusableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: ToolbarNavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2385
- AIPromptToolbarFocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarFocusableDirective, selector: "[kendoAIPromptToolbarFocusable]", ngImport: i0 });
2021
+ AIPromptToolbarFocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptToolbarFocusableDirective, isStandalone: true, selector: "[kendoAIPromptToolbarFocusable]", ngImport: i0 });
2386
2022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptToolbarFocusableDirective, decorators: [{
2387
2023
  type: Directive,
2388
2024
  args: [{
2389
- selector: '[kendoAIPromptToolbarFocusable]'
2025
+ selector: '[kendoAIPromptToolbarFocusable]',
2026
+ standalone: true
2390
2027
  }]
2391
2028
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ToolbarNavigationService }, { type: i0.Renderer2 }]; } });
2392
2029
 
@@ -2428,8 +2065,8 @@ class LocalizedMessagesDirective extends Messages {
2428
2065
  this.service = service;
2429
2066
  }
2430
2067
  }
2431
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
2432
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "[kendoAIPromptLocalizedMessages]", providers: [
2068
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
2069
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoAIPromptLocalizedMessages]", providers: [
2433
2070
  {
2434
2071
  provide: Messages,
2435
2072
  useExisting: forwardRef(() => LocalizedMessagesDirective)
@@ -2444,9 +2081,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2444
2081
  useExisting: forwardRef(() => LocalizedMessagesDirective)
2445
2082
  }
2446
2083
  ],
2447
- selector: '[kendoAIPromptLocalizedMessages]'
2084
+ selector: '[kendoAIPromptLocalizedMessages]',
2085
+ standalone: true
2448
2086
  }]
2449
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2087
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
2450
2088
 
2451
2089
  /**
2452
2090
  * Represents the Kendo UI AIPrompt component for Angular.
@@ -2602,8 +2240,8 @@ class AIPromptComponent {
2602
2240
  this.promptRequest.emit(eventArgs);
2603
2241
  }
2604
2242
  }
2605
- AIPromptComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }, { token: ToolbarNavigationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2606
- AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptComponent, 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: [
2243
+ AIPromptComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }, { token: ToolbarNavigationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2244
+ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
2607
2245
  LocalizationService,
2608
2246
  AIPromptService,
2609
2247
  ToolbarNavigationService,
@@ -2672,7 +2310,7 @@ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
2672
2310
  (click)="handleGenerateOutput()">{{messageFor('generateOutput')}}</button>
2673
2311
  </div>
2674
2312
  </div>
2675
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: AIPromptToolbarFocusableDirective, selector: "[kendoAIPromptToolbarFocusable]" }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoAIPromptLocalizedMessages]" }] });
2313
+ `, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "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"] }] });
2676
2314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptComponent, decorators: [{
2677
2315
  type: Component,
2678
2316
  args: [{
@@ -2748,9 +2386,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2748
2386
  (click)="handleGenerateOutput()">{{messageFor('generateOutput')}}</button>
2749
2387
  </div>
2750
2388
  </div>
2751
- `
2389
+ `,
2390
+ standalone: true,
2391
+ imports: [LocalizedMessagesDirective, NgFor, ButtonComponent, AIPromptToolbarFocusableDirective, NgIf, NgTemplateOutlet]
2752
2392
  }]
2753
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: AIPromptService }, { type: ToolbarNavigationService }, { type: i0.NgZone }]; }, propDecorators: { hostClasses: [{
2393
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }, { type: ToolbarNavigationService }, { type: i0.NgZone }]; }, propDecorators: { hostClasses: [{
2754
2394
  type: HostBinding,
2755
2395
  args: ['class.k-prompt']
2756
2396
  }], dirAttr: [{
@@ -2828,8 +2468,8 @@ class CommandViewComponent extends BaseView {
2828
2468
  }));
2829
2469
  }
2830
2470
  }
2831
- CommandViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommandViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2832
- CommandViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CommandViewComponent, selector: "kendo-aiprompt-command-view", providers: [{
2471
+ CommandViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommandViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2472
+ CommandViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CommandViewComponent, isStandalone: true, selector: "kendo-aiprompt-command-view", providers: [{
2833
2473
  provide: BaseView,
2834
2474
  useExisting: forwardRef(() => CommandViewComponent)
2835
2475
  }], usesInheritance: true, ngImport: i0, template: `
@@ -2841,7 +2481,7 @@ CommandViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2841
2481
  (itemClick)="itemClickHandler($event)"
2842
2482
  ></kendo-panelbar>
2843
2483
  </ng-template>
2844
- `, isInline: true, dependencies: [{ kind: "component", type: i3$1.PanelBarComponent, selector: "kendo-panelbar", inputs: ["expandMode", "selectable", "animate", "height", "keepItemContent", "items"], outputs: ["stateChange", "select", "expand", "collapse", "itemClick"], exportAs: ["kendoPanelbar"] }] });
2484
+ `, 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"] }] });
2845
2485
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommandViewComponent, decorators: [{
2846
2486
  type: Component,
2847
2487
  args: [{
@@ -2859,9 +2499,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2859
2499
  (itemClick)="itemClickHandler($event)"
2860
2500
  ></kendo-panelbar>
2861
2501
  </ng-template>
2862
- `
2502
+ `,
2503
+ standalone: true,
2504
+ imports: [PanelBarComponent]
2863
2505
  }]
2864
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: AIPromptService }]; } });
2506
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; } });
2865
2507
 
2866
2508
  /**
2867
2509
  * Custom component messages override the default component messages.
@@ -2876,8 +2518,8 @@ class AIPromptCustomMessagesComponent extends Messages {
2876
2518
  return true;
2877
2519
  }
2878
2520
  }
2879
- AIPromptCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2880
- AIPromptCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptCustomMessagesComponent, selector: "kendo-aiprompt-messages", providers: [
2521
+ AIPromptCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptCustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2522
+ AIPromptCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-aiprompt-messages", providers: [
2881
2523
  {
2882
2524
  provide: Messages,
2883
2525
  useExisting: forwardRef(() => AIPromptCustomMessagesComponent)
@@ -2893,9 +2535,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2893
2535
  }
2894
2536
  ],
2895
2537
  selector: 'kendo-aiprompt-messages',
2896
- template: ``
2538
+ template: ``,
2539
+ standalone: true
2897
2540
  }]
2898
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2541
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
2899
2542
 
2900
2543
  /**
2901
2544
  * The component for rendering an AIPrompt Custom View.
@@ -2905,8 +2548,8 @@ class CustomViewComponent extends BaseView {
2905
2548
  super('custom', localization);
2906
2549
  }
2907
2550
  }
2908
- CustomViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomViewComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2909
- CustomViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomViewComponent, selector: "kendo-aiprompt-custom-view", inputs: { viewTemplate: "viewTemplate" }, providers: [{
2551
+ CustomViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomViewComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2552
+ 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: [{
2910
2553
  provide: BaseView,
2911
2554
  useExisting: forwardRef(() => CustomViewComponent)
2912
2555
  }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
@@ -2918,89 +2561,400 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2918
2561
  provide: BaseView,
2919
2562
  useExisting: forwardRef(() => CustomViewComponent)
2920
2563
  }],
2921
- template: ``
2564
+ template: ``,
2565
+ standalone: true
2922
2566
  }]
2923
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { viewTemplate: [{
2567
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; }, propDecorators: { viewTemplate: [{
2924
2568
  type: Input
2925
2569
  }] } });
2926
2570
 
2927
- const PUBLIC_DIRECTIVES$1 = [
2928
- AIPromptComponent,
2929
- PromptViewComponent,
2930
- OutputViewComponent,
2931
- CommandViewComponent,
2932
- CustomViewComponent,
2933
- AIPromptCustomMessagesComponent,
2934
- AIPromptToolbarActionsDirective,
2935
- AIPromptToolbarFocusableDirective
2936
- ];
2937
- const PRIVATE_DIRECTIVES$1 = [
2938
- LocalizedMessagesDirective,
2939
- AIPromptOutputCardComponent
2940
- ];
2941
2571
  /**
2942
- * The [NgModule](link:site.data.urls.angular['ngmodules']) for the AIPrompt component.
2943
- *
2944
- * @example
2945
- * ```ts-no-run
2946
- * import { NgModule } from '@angular/core';
2947
- * import { Component } from '@angular/core';
2948
- * import { BrowserModule } from '@angular/platform-browser';
2949
- *
2950
- * import { AIPromptModule } from '@progress/kendo-angular-conversational-ui';
2951
- * import { AppComponent } from './app.component';
2952
- *
2953
- * _@NgModule({
2954
- * imports: [ BrowserModule, AIPromptModule ],
2955
- * declarations: [ AppComponent ],
2956
- * bootstrap: [ AppComponent ]
2957
- * })
2958
- *
2959
- * export class AppModule { }
2960
- * ```
2572
+ * @hidden
2961
2573
  */
2962
- class AIPromptModule {
2574
+ class AIPromptOutputCardComponent {
2575
+ constructor(localization, service) {
2576
+ this.localization = localization;
2577
+ this.service = service;
2578
+ this.hostClass = true;
2579
+ this.listItemRole = 'listitem';
2580
+ this.tabIndex = 0;
2581
+ this.ariaKeyShortcuts = 'Enter';
2582
+ this.copyIcon = copyIcon;
2583
+ this.retryIcon = arrowRotateCwIcon;
2584
+ this.positiveRatingIcon = thumbUpOutlineIcon;
2585
+ this.negativeRatingIcon = thumbDownOutlineIcon;
2586
+ this.titleId = `k-output-card-${guid()}`;
2587
+ }
2588
+ get ariaDescribedBy() {
2589
+ return this.titleId;
2590
+ }
2591
+ ngOnInit() {
2592
+ if (this.promptOutput?.rating === 'positive') {
2593
+ this.positiveRatingIcon = thumbUpIcon;
2594
+ this.negativeRatingIcon = thumbDownOutlineIcon;
2595
+ }
2596
+ else if (this.promptOutput?.rating === 'negative') {
2597
+ this.negativeRatingIcon = thumbDownIcon;
2598
+ this.positiveRatingIcon = thumbUpOutlineIcon;
2599
+ }
2600
+ }
2601
+ messageFor(text) {
2602
+ return this.localization.get(text);
2603
+ }
2604
+ get showRating() {
2605
+ return this.service.showOutputRating;
2606
+ }
2607
+ get outputTitle() {
2608
+ if (isPresent(this.promptOutput.title)) {
2609
+ return this.promptOutput.title;
2610
+ }
2611
+ else {
2612
+ const titleMessage = this.promptOutput.isRetry ? 'outputRetryTitle' : 'outputTitle';
2613
+ return this.messageFor(titleMessage);
2614
+ }
2615
+ }
2616
+ handleRetry() {
2617
+ if (this.promptOutput.commandId) {
2618
+ const eventArgs = {
2619
+ command: this.service.getFlattenPromptCommands().find(c => c.id === this.promptOutput.commandId),
2620
+ sender: this.service.aiPrompt,
2621
+ isRetry: true
2622
+ };
2623
+ this.service.executeEvent.next(eventArgs);
2624
+ }
2625
+ else {
2626
+ const eventArgs = {
2627
+ prompt: this.promptOutput.prompt,
2628
+ sender: this.service.aiPrompt,
2629
+ isRetry: true
2630
+ };
2631
+ this.service.requestEvent.next(eventArgs);
2632
+ }
2633
+ }
2634
+ handleCopy() {
2635
+ navigator.clipboard.writeText(this.promptOutput.output);
2636
+ this.service.outputCopyEvent.next(this.promptOutput);
2637
+ }
2638
+ handleRating(ratingType) {
2639
+ const eventArgs = {
2640
+ promptOutput: this.promptOutput,
2641
+ rating: ratingType
2642
+ };
2643
+ this.service.outputRatingChangeEvent.next(eventArgs);
2644
+ if (ratingType === 'positive') {
2645
+ this.positiveRatingIcon = thumbUpIcon;
2646
+ this.negativeRatingIcon = thumbDownOutlineIcon;
2647
+ }
2648
+ else {
2649
+ this.negativeRatingIcon = thumbDownIcon;
2650
+ this.positiveRatingIcon = thumbUpOutlineIcon;
2651
+ }
2652
+ }
2963
2653
  }
2964
- AIPromptModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2965
- AIPromptModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, declarations: [AIPromptComponent,
2966
- PromptViewComponent,
2967
- OutputViewComponent,
2968
- CommandViewComponent,
2969
- CustomViewComponent,
2970
- AIPromptCustomMessagesComponent,
2971
- AIPromptToolbarActionsDirective,
2972
- AIPromptToolbarFocusableDirective, LocalizedMessagesDirective,
2973
- AIPromptOutputCardComponent], imports: [CommonModule,
2974
- ButtonsModule,
2975
- IconsModule,
2976
- InputsModule,
2977
- LayoutModule], exports: [AIPromptComponent,
2978
- PromptViewComponent,
2979
- OutputViewComponent,
2980
- CommandViewComponent,
2981
- CustomViewComponent,
2982
- AIPromptCustomMessagesComponent,
2983
- AIPromptToolbarActionsDirective,
2984
- AIPromptToolbarFocusableDirective] });
2985
- AIPromptModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, imports: [CommonModule,
2986
- ButtonsModule,
2987
- IconsModule,
2988
- InputsModule,
2989
- LayoutModule] });
2990
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, decorators: [{
2991
- type: NgModule,
2654
+ AIPromptOutputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptOutputCardComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2655
+ AIPromptOutputCardComponentcmp = 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: `
2656
+ <div class="k-card-header">
2657
+ <div
2658
+ class="k-card-title"
2659
+ [attr.id]="titleId">{{outputTitle}}
2660
+ </div>
2661
+ <div class="k-card-subtitle">{{promptOutput.prompt}}</div>
2662
+ </div>
2663
+ <div class="k-card-body">
2664
+ <p>{{promptOutput.output}}</p>
2665
+ </div>
2666
+ <div class="k-actions k-actions-start k-actions-horizontal k-card-actions">
2667
+ <button kendoButton
2668
+ fillMode="flat"
2669
+ themeColor="primary"
2670
+ rounded="full"
2671
+ icon="copy"
2672
+ [svgIcon]="copyIcon"
2673
+ (click)="handleCopy()"
2674
+ >{{messageFor('copyOutput')}}</button>
2675
+ <button kendoButton
2676
+ fillMode="flat"
2677
+ rounded="full"
2678
+ icon="arrow-rotate-cw"
2679
+ [svgIcon]="retryIcon"
2680
+ (click)="handleRetry()"
2681
+ >{{messageFor('retryGeneration')}}</button>
2682
+ <ng-container *ngIf="showRating">
2683
+ <span class="k-spacer"></span>
2684
+ <button kendoButton
2685
+ fillMode="flat"
2686
+ icon="thumb-up-outline"
2687
+ [svgIcon]="positiveRatingIcon"
2688
+ (click)="handleRating('positive')">
2689
+ </button>
2690
+ <button kendoButton
2691
+ fillMode="flat"
2692
+ icon="thumb-down-outline"
2693
+ [svgIcon]="negativeRatingIcon"
2694
+ (click)="handleRating('negative')">
2695
+ </button>
2696
+ </ng-container>
2697
+ </div>
2698
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptOutputCardComponent, decorators: [{
2700
+ type: Component,
2992
2701
  args: [{
2993
- declarations: [...PUBLIC_DIRECTIVES$1, ...PRIVATE_DIRECTIVES$1],
2994
- exports: [...PUBLIC_DIRECTIVES$1],
2995
- imports: [
2996
- CommonModule,
2997
- ButtonsModule,
2998
- IconsModule,
2999
- InputsModule,
3000
- LayoutModule
3001
- ]
2702
+ selector: '[kendoAIPromptOutputCard]',
2703
+ template: `
2704
+ <div class="k-card-header">
2705
+ <div
2706
+ class="k-card-title"
2707
+ [attr.id]="titleId">{{outputTitle}}
2708
+ </div>
2709
+ <div class="k-card-subtitle">{{promptOutput.prompt}}</div>
2710
+ </div>
2711
+ <div class="k-card-body">
2712
+ <p>{{promptOutput.output}}</p>
2713
+ </div>
2714
+ <div class="k-actions k-actions-start k-actions-horizontal k-card-actions">
2715
+ <button kendoButton
2716
+ fillMode="flat"
2717
+ themeColor="primary"
2718
+ rounded="full"
2719
+ icon="copy"
2720
+ [svgIcon]="copyIcon"
2721
+ (click)="handleCopy()"
2722
+ >{{messageFor('copyOutput')}}</button>
2723
+ <button kendoButton
2724
+ fillMode="flat"
2725
+ rounded="full"
2726
+ icon="arrow-rotate-cw"
2727
+ [svgIcon]="retryIcon"
2728
+ (click)="handleRetry()"
2729
+ >{{messageFor('retryGeneration')}}</button>
2730
+ <ng-container *ngIf="showRating">
2731
+ <span class="k-spacer"></span>
2732
+ <button kendoButton
2733
+ fillMode="flat"
2734
+ icon="thumb-up-outline"
2735
+ [svgIcon]="positiveRatingIcon"
2736
+ (click)="handleRating('positive')">
2737
+ </button>
2738
+ <button kendoButton
2739
+ fillMode="flat"
2740
+ icon="thumb-down-outline"
2741
+ [svgIcon]="negativeRatingIcon"
2742
+ (click)="handleRating('negative')">
2743
+ </button>
2744
+ </ng-container>
2745
+ </div>
2746
+ `,
2747
+ standalone: true,
2748
+ imports: [ButtonComponent, NgIf]
3002
2749
  }]
3003
- }] });
2750
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; }, propDecorators: { hostClass: [{
2751
+ type: HostBinding,
2752
+ args: ['class.k-card']
2753
+ }], listItemRole: [{
2754
+ type: HostBinding,
2755
+ args: ['attr.role']
2756
+ }], tabIndex: [{
2757
+ type: HostBinding,
2758
+ args: ['attr.tabindex']
2759
+ }], ariaDescribedBy: [{
2760
+ type: HostBinding,
2761
+ args: ['attr.aria-describedby']
2762
+ }], ariaKeyShortcuts: [{
2763
+ type: HostBinding,
2764
+ args: ['attr.aria-keyshortcuts']
2765
+ }], promptOutput: [{
2766
+ type: Input
2767
+ }] } });
2768
+
2769
+ /**
2770
+ * The component for rendering the AIPrompt Output View.
2771
+ */
2772
+ class OutputViewComponent extends BaseView {
2773
+ constructor(localization, service) {
2774
+ super('output', localization);
2775
+ this.service = service;
2776
+ }
2777
+ /**
2778
+ * @hidden
2779
+ */
2780
+ get promptOutputs() {
2781
+ return this.service.promptOutputs;
2782
+ }
2783
+ }
2784
+ OutputViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutputViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2785
+ OutputViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: OutputViewComponent, isStandalone: true, selector: "kendo-aiprompt-output-view", providers: [{
2786
+ provide: BaseView,
2787
+ useExisting: forwardRef(() => OutputViewComponent)
2788
+ }], usesInheritance: true, ngImport: i0, template: `
2789
+ <ng-template #content>
2790
+ <div
2791
+ class="k-card-list"
2792
+ role="list">
2793
+ <div *ngFor="let output of promptOutputs"
2794
+ kendoAIPromptOutputCard
2795
+ [promptOutput]="output">
2796
+ </div>
2797
+ </div>
2798
+ </ng-template>
2799
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: AIPromptOutputCardComponent, selector: "[kendoAIPromptOutputCard]", inputs: ["promptOutput"] }] });
2800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutputViewComponent, decorators: [{
2801
+ type: Component,
2802
+ args: [{
2803
+ selector: 'kendo-aiprompt-output-view',
2804
+ providers: [{
2805
+ provide: BaseView,
2806
+ useExisting: forwardRef(() => OutputViewComponent)
2807
+ }],
2808
+ template: `
2809
+ <ng-template #content>
2810
+ <div
2811
+ class="k-card-list"
2812
+ role="list">
2813
+ <div *ngFor="let output of promptOutputs"
2814
+ kendoAIPromptOutputCard
2815
+ [promptOutput]="output">
2816
+ </div>
2817
+ </div>
2818
+ </ng-template>
2819
+ `,
2820
+ standalone: true,
2821
+ imports: [NgFor, AIPromptOutputCardComponent]
2822
+ }]
2823
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; } });
2824
+
2825
+ /**
2826
+ * The component for rendering the AIPrompt Prompt View.
2827
+ */
2828
+ class PromptViewComponent extends BaseView {
2829
+ constructor(localization, service) {
2830
+ super('prompt', localization);
2831
+ this.service = service;
2832
+ /**
2833
+ * @hidden
2834
+ */
2835
+ this.showSuggestions = true;
2836
+ /**
2837
+ * @hidden
2838
+ */
2839
+ this.contentId = `k-prompt-suggestions-${guid()}`;
2840
+ }
2841
+ /**
2842
+ * @hidden
2843
+ */
2844
+ get suggestionsIcons() {
2845
+ return this.showSuggestions ?
2846
+ { font: 'chevron-up', svg: chevronUpIcon } :
2847
+ { font: 'chevron-down', svg: chevronDownIcon };
2848
+ }
2849
+ /**
2850
+ * @hidden
2851
+ */
2852
+ get promptSuggestions() {
2853
+ return this.service.promptSuggestions;
2854
+ }
2855
+ /**
2856
+ *
2857
+ * @hidden
2858
+ */
2859
+ set textAreaValue(value) {
2860
+ this.service.promptValue = value;
2861
+ }
2862
+ get textAreaValue() {
2863
+ return this.service.promptValue;
2864
+ }
2865
+ /**
2866
+ * @hidden
2867
+ */
2868
+ suggestionClick(suggestion) {
2869
+ this.textAreaValue = this.service.promptValue = suggestion;
2870
+ }
2871
+ }
2872
+ PromptViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptViewComponent, deps: [{ token: i1$1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
2873
+ PromptViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PromptViewComponent, isStandalone: true, selector: "kendo-aiprompt-prompt-view", providers: [
2874
+ {
2875
+ provide: BaseView,
2876
+ useExisting: forwardRef(() => PromptViewComponent)
2877
+ }
2878
+ ], usesInheritance: true, ngImport: i0, template: `
2879
+ <ng-template #content>
2880
+ <kendo-textarea
2881
+ [placeholder]="messageFor('promptPlaceholder')"
2882
+ [rows]="1"
2883
+ [(value)]="textAreaValue">
2884
+ </kendo-textarea>
2885
+ <div *ngIf="promptSuggestions"
2886
+ class="k-prompt-expander">
2887
+ <button kendoButton
2888
+ [attr.aria-controls]="contentId"
2889
+ [attr.aria-expanded]="showSuggestions"
2890
+ fillMode="flat"
2891
+ [icon]="suggestionsIcons.font"
2892
+ [svgIcon]="suggestionsIcons.svg"
2893
+ type="button"
2894
+ (click)="showSuggestions = !showSuggestions">
2895
+ {{messageFor('promptSuggestions')}}
2896
+ </button>
2897
+ <div *ngIf="showSuggestions"
2898
+ class="k-prompt-expander-content"
2899
+ role="list"
2900
+ [attr.id]="contentId">
2901
+ <div *ngFor="let suggestion of promptSuggestions"
2902
+ class="k-prompt-suggestion"
2903
+ role="listitem"
2904
+ (click)="suggestionClick(suggestion)">
2905
+ {{suggestion}}
2906
+ </div>
2907
+ </div>
2908
+ </div>
2909
+ </ng-template>
2910
+ `, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptViewComponent, decorators: [{
2912
+ type: Component,
2913
+ args: [{
2914
+ selector: 'kendo-aiprompt-prompt-view',
2915
+ providers: [
2916
+ {
2917
+ provide: BaseView,
2918
+ useExisting: forwardRef(() => PromptViewComponent)
2919
+ }
2920
+ ],
2921
+ template: `
2922
+ <ng-template #content>
2923
+ <kendo-textarea
2924
+ [placeholder]="messageFor('promptPlaceholder')"
2925
+ [rows]="1"
2926
+ [(value)]="textAreaValue">
2927
+ </kendo-textarea>
2928
+ <div *ngIf="promptSuggestions"
2929
+ class="k-prompt-expander">
2930
+ <button kendoButton
2931
+ [attr.aria-controls]="contentId"
2932
+ [attr.aria-expanded]="showSuggestions"
2933
+ fillMode="flat"
2934
+ [icon]="suggestionsIcons.font"
2935
+ [svgIcon]="suggestionsIcons.svg"
2936
+ type="button"
2937
+ (click)="showSuggestions = !showSuggestions">
2938
+ {{messageFor('promptSuggestions')}}
2939
+ </button>
2940
+ <div *ngIf="showSuggestions"
2941
+ class="k-prompt-expander-content"
2942
+ role="list"
2943
+ [attr.id]="contentId">
2944
+ <div *ngFor="let suggestion of promptSuggestions"
2945
+ class="k-prompt-suggestion"
2946
+ role="listitem"
2947
+ (click)="suggestionClick(suggestion)">
2948
+ {{suggestion}}
2949
+ </div>
2950
+ </div>
2951
+ </div>
2952
+ </ng-template>
2953
+ `,
2954
+ standalone: true,
2955
+ imports: [TextAreaComponent, NgIf, ButtonComponent, NgFor]
2956
+ }]
2957
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; } });
3004
2958
 
3005
2959
  // eslint-disable no-forward-ref
3006
2960
  /**
@@ -3016,8 +2970,8 @@ class CustomMessagesComponent extends Messages$1 {
3016
2970
  return true;
3017
2971
  }
3018
2972
  }
3019
- CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
3020
- CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, selector: "kendo-chat-messages", providers: [
2973
+ CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2974
+ CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
3021
2975
  {
3022
2976
  provide: Messages$1,
3023
2977
  useExisting: forwardRef(() => CustomMessagesComponent)
@@ -3033,9 +2987,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3033
2987
  }
3034
2988
  ],
3035
2989
  selector: 'kendo-chat-messages',
3036
- template: ``
2990
+ template: ``,
2991
+ standalone: true
3037
2992
  }]
3038
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2993
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
3039
2994
 
3040
2995
  /**
3041
2996
  * Represents a Hero Card component ([see example]({% slug dialogflow_chat %})).
@@ -3054,7 +3009,7 @@ class HeroCardComponent {
3054
3009
  }
3055
3010
  }
3056
3011
  HeroCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeroCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3057
- HeroCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HeroCardComponent, 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: `
3012
+ 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: `
3058
3013
  <img class="k-card-image" [src]="imageUrl" *ngIf="imageUrl" />
3059
3014
  <div class="k-card-body">
3060
3015
  <h5 class="k-card-title" *ngIf="title">
@@ -3076,7 +3031,7 @@ HeroCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
3076
3031
  </button>
3077
3032
  </span>
3078
3033
  </div>
3079
- `, isInline: true, dependencies: [{ kind: "component", type: i4.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3034
+ `, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
3080
3035
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeroCardComponent, decorators: [{
3081
3036
  type: Component,
3082
3037
  args: [{
@@ -3103,7 +3058,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3103
3058
  </button>
3104
3059
  </span>
3105
3060
  </div>
3106
- `
3061
+ `,
3062
+ standalone: true,
3063
+ imports: [NgIf, NgFor, ButtonComponent]
3107
3064
  }]
3108
3065
  }], propDecorators: { imageUrl: [{
3109
3066
  type: Input
@@ -3120,7 +3077,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3120
3077
  type: Output
3121
3078
  }] } });
3122
3079
 
3123
- const PUBLIC_DIRECTIVES = [
3080
+ /**
3081
+ * Utility array that contains all `AIPrompt` related components and directives
3082
+ */
3083
+ const KENDO_AIPROMPT = [
3084
+ AIPromptComponent,
3085
+ PromptViewComponent,
3086
+ OutputViewComponent,
3087
+ CommandViewComponent,
3088
+ CustomViewComponent,
3089
+ AIPromptCustomMessagesComponent,
3090
+ AIPromptToolbarActionsDirective,
3091
+ AIPromptToolbarFocusableDirective
3092
+ ];
3093
+ /**
3094
+ * Utility array that contains all `Chat` related components and directives
3095
+ */
3096
+ const KENDO_CHAT = [
3124
3097
  ChatComponent,
3125
3098
  CustomMessagesComponent,
3126
3099
  AttachmentTemplateDirective,
@@ -3128,18 +3101,51 @@ const PUBLIC_DIRECTIVES = [
3128
3101
  HeroCardComponent,
3129
3102
  ChatMessageBoxTemplateDirective
3130
3103
  ];
3131
- const PRIVATE_DIRECTIVES = [
3132
- AttachmentComponent,
3133
- FocusedStateDirective,
3134
- LocalizedMessagesDirective$1,
3135
- MessageAttachmentsComponent,
3136
- MessageComponent,
3137
- MessageListComponent,
3138
- MessageTemplateDirective,
3139
- ScrollAnchorDirective,
3140
- SuggestedActionsComponent,
3141
- MessageBoxComponent
3104
+ /**
3105
+ * Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives
3106
+ */
3107
+ const KENDO_CONVERSATIONALUI = [
3108
+ ...KENDO_AIPROMPT,
3109
+ ...KENDO_CHAT
3142
3110
  ];
3111
+
3112
+ // IMPORTANT: NgModule export kept for backwards compatibility
3113
+ /**
3114
+ * The [NgModule](link:site.data.urls.angular['ngmodules']) for the AIPrompt component.
3115
+ *
3116
+ * @example
3117
+ * ```ts-no-run
3118
+ * import { NgModule } from '@angular/core';
3119
+ * import { Component } from '@angular/core';
3120
+ * import { BrowserModule } from '@angular/platform-browser';
3121
+ *
3122
+ * import { AIPromptModule } from '@progress/kendo-angular-conversational-ui';
3123
+ * import { AppComponent } from './app.component';
3124
+ *
3125
+ * _@NgModule({
3126
+ * imports: [ BrowserModule, AIPromptModule ],
3127
+ * declarations: [ AppComponent ],
3128
+ * bootstrap: [ AppComponent ]
3129
+ * })
3130
+ *
3131
+ * export class AppModule { }
3132
+ * ```
3133
+ */
3134
+ class AIPromptModule {
3135
+ }
3136
+ AIPromptModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3137
+ 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] });
3138
+ 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] });
3139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AIPromptModule, decorators: [{
3140
+ type: NgModule,
3141
+ args: [{
3142
+ exports: [...KENDO_AIPROMPT],
3143
+ imports: [...KENDO_AIPROMPT],
3144
+ providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
3145
+ }]
3146
+ }] });
3147
+
3148
+ // IMPORTANT: NgModule export kept for backwards compatibility
3143
3149
  /**
3144
3150
  * The [NgModule](link:site.data.urls.angular['ngmodules']) for the Chat component.
3145
3151
  *
@@ -3164,47 +3170,18 @@ const PRIVATE_DIRECTIVES = [
3164
3170
  class ChatModule {
3165
3171
  }
3166
3172
  ChatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3167
- ChatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, declarations: [ChatComponent,
3168
- CustomMessagesComponent,
3169
- AttachmentTemplateDirective,
3170
- MessageTemplateDirective,
3171
- HeroCardComponent,
3172
- ChatMessageBoxTemplateDirective, AttachmentComponent,
3173
- FocusedStateDirective,
3174
- LocalizedMessagesDirective$1,
3175
- MessageAttachmentsComponent,
3176
- MessageComponent,
3177
- MessageListComponent,
3178
- MessageTemplateDirective,
3179
- ScrollAnchorDirective,
3180
- SuggestedActionsComponent,
3181
- MessageBoxComponent], imports: [ButtonModule,
3182
- CommonModule,
3183
- ResizeSensorModule], exports: [ChatComponent,
3184
- CustomMessagesComponent,
3185
- AttachmentTemplateDirective,
3186
- MessageTemplateDirective,
3187
- HeroCardComponent,
3188
- ChatMessageBoxTemplateDirective] });
3189
- ChatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, imports: [ButtonModule,
3190
- CommonModule,
3191
- ResizeSensorModule] });
3173
+ 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] });
3174
+ ChatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [ChatComponent, CustomMessagesComponent, HeroCardComponent] });
3192
3175
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, decorators: [{
3193
3176
  type: NgModule,
3194
3177
  args: [{
3195
- declarations: [
3196
- ...PUBLIC_DIRECTIVES,
3197
- ...PRIVATE_DIRECTIVES
3198
- ],
3199
- exports: [PUBLIC_DIRECTIVES],
3200
- imports: [
3201
- ButtonModule,
3202
- CommonModule,
3203
- ResizeSensorModule
3204
- ]
3178
+ exports: [...KENDO_CHAT],
3179
+ imports: [...KENDO_CHAT],
3180
+ providers: [IconsService, ResizeBatchService]
3205
3181
  }]
3206
3182
  }] });
3207
3183
 
3184
+ // IMPORTANT: NgModule export kept for backwards compatibility
3208
3185
  /**
3209
3186
  * Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
3210
3187
  * definition for the Conversational UI components.
@@ -3239,12 +3216,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3239
3216
  class ConversationalUIModule {
3240
3217
  }
3241
3218
  ConversationalUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3242
- ConversationalUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, exports: [AIPromptModule, ChatModule] });
3243
- ConversationalUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, imports: [AIPromptModule, ChatModule] });
3219
+ 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] });
3220
+ 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] });
3244
3221
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, decorators: [{
3245
3222
  type: NgModule,
3246
3223
  args: [{
3247
- exports: [AIPromptModule, ChatModule]
3224
+ exports: [...KENDO_CONVERSATIONALUI],
3225
+ imports: [...KENDO_CONVERSATIONALUI],
3226
+ providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
3248
3227
  }]
3249
3228
  }] });
3250
3229
 
@@ -3252,5 +3231,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3252
3231
  * Generated bundle index. Do not edit.
3253
3232
  */
3254
3233
 
3255
- export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, ChatComponent, ChatMessageBoxTemplateDirective, ChatModule, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, MessageTemplateDirective, OutputViewComponent, PromptViewComponent, SendMessageEvent };
3234
+ export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, ChatComponent, ChatMessageBoxTemplateDirective, ChatModule, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, KENDO_AIPROMPT, KENDO_CHAT, KENDO_CONVERSATIONALUI, MessageTemplateDirective, OutputViewComponent, PromptViewComponent, SendMessageEvent };
3256
3235