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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/ai-prompt/aiprompt.component.d.ts +1 -1
  2. package/ai-prompt/aiprompt.module.d.ts +1 -8
  3. package/ai-prompt/common/output-card.component.d.ts +1 -1
  4. package/ai-prompt/common/toolbar-focusable.directive.d.ts +1 -1
  5. package/ai-prompt/localization/custom-messages.component.d.ts +1 -1
  6. package/ai-prompt/localization/localized-messages.directive.d.ts +1 -1
  7. package/ai-prompt/templates/toolbar-actions.template.d.ts +1 -1
  8. package/ai-prompt/views/command-view.component.d.ts +2 -2
  9. package/ai-prompt/views/custom-view.component.d.ts +1 -1
  10. package/ai-prompt/views/output-view.component.d.ts +1 -1
  11. package/ai-prompt/views/prompt-view.component.d.ts +1 -1
  12. package/chat/api/message.interface.d.ts +1 -1
  13. package/chat/api/user.interface.d.ts +1 -1
  14. package/chat/attachment-template.directive.d.ts +1 -1
  15. package/chat/attachment.component.d.ts +1 -1
  16. package/chat/cards/hero-card.component.d.ts +1 -1
  17. package/chat/chat.component.d.ts +1 -1
  18. package/chat/chat.module.d.ts +1 -13
  19. package/chat/common/focused-state.directive.d.ts +1 -1
  20. package/chat/common/scroll-anchor.directive.d.ts +1 -1
  21. package/chat/l10n/custom-messages.component.d.ts +1 -1
  22. package/chat/l10n/localized-messages.directive.d.ts +1 -1
  23. package/chat/message-attachments.component.d.ts +3 -3
  24. package/chat/message-box.component.d.ts +3 -3
  25. package/chat/message-box.directive.d.ts +1 -1
  26. package/chat/message-list.component.d.ts +3 -3
  27. package/chat/message-template.directive.d.ts +1 -1
  28. package/chat/message.component.d.ts +1 -1
  29. package/chat/suggested-actions.component.d.ts +1 -1
  30. package/conversational-ui.module.d.ts +15 -3
  31. package/directives.d.ts +29 -0
  32. package/esm2020/ai-prompt/aiprompt.component.mjs +10 -8
  33. package/esm2020/ai-prompt/aiprompt.module.mjs +19 -63
  34. package/esm2020/ai-prompt/common/output-card.component.mjs +7 -5
  35. package/esm2020/ai-prompt/common/toolbar-focusable.directive.mjs +3 -2
  36. package/esm2020/ai-prompt/localization/custom-messages.component.mjs +3 -2
  37. package/esm2020/ai-prompt/localization/localized-messages.directive.mjs +3 -2
  38. package/esm2020/ai-prompt/templates/toolbar-actions.template.mjs +3 -2
  39. package/esm2020/ai-prompt/views/command-view.component.mjs +6 -4
  40. package/esm2020/ai-prompt/views/custom-view.component.mjs +3 -2
  41. package/esm2020/ai-prompt/views/output-view.component.mjs +7 -5
  42. package/esm2020/ai-prompt/views/prompt-view.component.mjs +8 -6
  43. package/esm2020/chat/attachment-template.directive.mjs +3 -2
  44. package/esm2020/chat/attachment.component.mjs +6 -4
  45. package/esm2020/chat/cards/hero-card.component.mjs +7 -5
  46. package/esm2020/chat/chat.component.mjs +8 -7
  47. package/esm2020/chat/chat.module.mjs +15 -71
  48. package/esm2020/chat/common/focused-state.directive.mjs +3 -2
  49. package/esm2020/chat/common/scroll-anchor.directive.mjs +3 -2
  50. package/esm2020/chat/l10n/custom-messages.component.mjs +3 -2
  51. package/esm2020/chat/l10n/localized-messages.directive.mjs +3 -2
  52. package/esm2020/chat/message-attachments.component.mjs +10 -8
  53. package/esm2020/chat/message-box.component.mjs +10 -8
  54. package/esm2020/chat/message-box.directive.mjs +3 -2
  55. package/esm2020/chat/message-list.component.mjs +11 -12
  56. package/esm2020/chat/message-template.directive.mjs +3 -2
  57. package/esm2020/chat/message.component.mjs +6 -4
  58. package/esm2020/chat/suggested-actions.component.mjs +6 -4
  59. package/esm2020/conversational-ui.module.mjs +25 -5
  60. package/esm2020/directives.mjs +48 -0
  61. package/esm2020/index.mjs +1 -0
  62. package/esm2020/package-metadata.mjs +2 -2
  63. package/fesm2015/progress-kendo-angular-conversational-ui.mjs +1285 -1306
  64. package/fesm2020/progress-kendo-angular-conversational-ui.mjs +649 -670
  65. package/index.d.ts +1 -0
  66. package/package.json +10 -10
@@ -4,18 +4,18 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
6
  import { Component, ElementRef, forwardRef, HostBinding, Input, NgZone, QueryList, ViewChild, ViewChildren } from '@angular/core';
7
+ import { NgIf, NgFor } from '@angular/common';
7
8
  import { fromEvent } from 'rxjs';
8
9
  import { debounceTime } from 'rxjs/operators';
9
10
  import { Keys } from '@progress/kendo-angular-common';
10
- import { ChatItem } from './chat-item';
11
- import { AttachmentTemplateDirective } from './attachment-template.directive';
12
11
  import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
13
12
  import { LocalizationService } from '@progress/kendo-angular-l10n';
13
+ import { ButtonComponent } from '@progress/kendo-angular-buttons';
14
+ import { ChatItem } from './chat-item';
15
+ import { AttachmentTemplateDirective } from './attachment-template.directive';
16
+ import { AttachmentComponent } from './attachment.component';
14
17
  import * as i0 from "@angular/core";
15
18
  import * as i1 from "@progress/kendo-angular-l10n";
16
- import * as i2 from "@progress/kendo-angular-buttons";
17
- import * as i3 from "@angular/common";
18
- import * as i4 from "./attachment.component";
19
19
  // eslint-disable no-forward-ref
20
20
  /**
21
21
  * @hidden
@@ -124,7 +124,7 @@ export class MessageAttachmentsComponent extends ChatItem {
124
124
  }
125
125
  }
126
126
  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 });
127
- 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: [{
127
+ 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: [{
128
128
  provide: ChatItem,
129
129
  useExisting: forwardRef(() => MessageAttachmentsComponent)
130
130
  }], 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: `
@@ -168,7 +168,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
168
168
  icon="chevron-right"
169
169
  >
170
170
  </button>
171
- `, isInline: true, dependencies: [{ kind: "component", type: i2.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: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }] });
171
+ `, 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"] }] });
172
172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
173
173
  type: Component,
174
174
  args: [{
@@ -218,7 +218,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
218
218
  icon="chevron-right"
219
219
  >
220
220
  </button>
221
- `
221
+ `,
222
+ standalone: true,
223
+ imports: [NgIf, ButtonComponent, NgFor, AttachmentComponent]
222
224
  }]
223
225
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { attachments: [{
224
226
  type: Input
@@ -3,15 +3,15 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';
6
- import { SendMessageEvent } from './api/post-message-event';
6
+ import { NgIf, NgTemplateOutlet } from '@angular/common';
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { Keys } from '@progress/kendo-angular-common';
9
- import { ChatMessageBoxTemplateDirective } from './message-box.directive';
10
9
  import { paperPlaneIcon } from '@progress/kendo-svg-icons';
10
+ import { ButtonComponent } from '@progress/kendo-angular-buttons';
11
+ import { SendMessageEvent } from './api/post-message-event';
12
+ import { ChatMessageBoxTemplateDirective } from './message-box.directive';
13
+ import { FocusedStateDirective } from './common/focused-state.directive';
11
14
  import * as i0 from "@angular/core";
12
- import * as i1 from "@progress/kendo-angular-buttons";
13
- import * as i2 from "@angular/common";
14
- import * as i3 from "./common/focused-state.directive";
15
15
  /**
16
16
  * @hidden
17
17
  */
@@ -80,7 +80,7 @@ export class MessageBoxComponent {
80
80
  }
81
81
  }
82
82
  MessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
- 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: `
83
+ 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: `
84
84
  <ng-container *ngIf="!messageBoxTemplate">
85
85
  <input
86
86
  *ngIf="type === 'textbox'"
@@ -120,7 +120,7 @@ MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
120
120
  </ng-container>
121
121
 
122
122
  <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
123
- `, isInline: true, dependencies: [{ kind: "component", type: i1.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: i3.FocusedStateDirective, selector: "[kendoChatFocusedState]" }] });
123
+ `, 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"] }] });
124
124
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, decorators: [{
125
125
  type: Component,
126
126
  args: [{
@@ -165,7 +165,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
165
165
  </ng-container>
166
166
 
167
167
  <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
168
- `
168
+ `,
169
+ standalone: true,
170
+ imports: [NgIf, FocusedStateDirective, ButtonComponent, NgTemplateOutlet]
169
171
  }]
170
172
  }], propDecorators: { hostClasses: [{
171
173
  type: HostBinding,
@@ -15,10 +15,11 @@ export class ChatMessageBoxTemplateDirective {
15
15
  }
16
16
  }
17
17
  ChatMessageBoxTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
18
- ChatMessageBoxTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChatMessageBoxTemplateDirective, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
18
+ ChatMessageBoxTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
19
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
20
20
  type: Directive,
21
21
  args: [{
22
- selector: '[kendoChatMessageBoxTemplate]'
22
+ selector: '[kendoChatMessageBoxTemplate]',
23
+ standalone: true
23
24
  }]
24
25
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
@@ -5,26 +5,23 @@
5
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
6
6
  /* eslint-disable @typescript-eslint/no-explicit-any */
7
7
  import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, QueryList, Renderer2, ViewChildren } from '@angular/core';
8
+ import { NgFor, NgSwitch, NgSwitchCase, NgIf } from '@angular/common';
8
9
  import { ExecuteActionEvent } from './api';
9
- import { Keys } from '@progress/kendo-angular-common';
10
+ import { Keys, ResizeSensorComponent } from '@progress/kendo-angular-common';
11
+ import { IntlService } from '@progress/kendo-angular-intl';
12
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
10
13
  import { closest } from './common/utils';
11
14
  import { ChatItem } from './chat-item';
12
15
  import { chatView, isAuthor } from './chat-view';
13
16
  import { AttachmentTemplateDirective } from './attachment-template.directive';
14
17
  import { MessageTemplateDirective } from './message-template.directive';
15
- import { IntlService } from '@progress/kendo-angular-intl';
16
18
  import { Subscription } from 'rxjs';
17
19
  import { SuggestedActionsComponent } from './suggested-actions.component';
18
20
  import { MessageComponent } from './message.component';
19
- import { LocalizationService } from '@progress/kendo-angular-l10n';
21
+ import { MessageAttachmentsComponent } from './message-attachments.component';
22
+ import { AttachmentComponent } from './attachment.component';
20
23
  import * as i0 from "@angular/core";
21
24
  import * as i1 from "@progress/kendo-angular-intl";
22
- import * as i2 from "@angular/common";
23
- import * as i3 from "@progress/kendo-angular-common";
24
- import * as i4 from "./attachment.component";
25
- import * as i5 from "./message-attachments.component";
26
- import * as i6 from "./message.component";
27
- import * as i7 from "./suggested-actions.component";
28
25
  /**
29
26
  * @hidden
30
27
  */
@@ -156,7 +153,7 @@ export class MessageListComponent {
156
153
  }
157
154
  }
158
155
  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 });
159
- 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: `
156
+ 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: `
160
157
  <ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
161
158
  <ng-container [ngSwitch]="group.type">
162
159
  <div
@@ -240,7 +237,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
240
237
  </ng-container>
241
238
  <kendo-resize-sensor (resize)="onResize()">
242
239
  </kendo-resize-sensor>
243
- `, 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: i4.AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { kind: "component", type: i5.MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { kind: "component", type: i6.MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { kind: "component", type: i7.SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }] });
240
+ `, 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"] }] });
244
241
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageListComponent, decorators: [{
245
242
  type: Component,
246
243
  args: [{
@@ -329,7 +326,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
329
326
  </ng-container>
330
327
  <kendo-resize-sensor (resize)="onResize()">
331
328
  </kendo-resize-sensor>
332
- `
329
+ `,
330
+ standalone: true,
331
+ imports: [NgFor, NgSwitch, NgSwitchCase, NgIf, MessageComponent, AttachmentComponent, MessageAttachmentsComponent, SuggestedActionsComponent, ResizeSensorComponent]
333
332
  }]
334
333
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.IntlService }, { type: i0.Renderer2 }]; }, propDecorators: { messages: [{
335
334
  type: Input
@@ -22,11 +22,12 @@ export class MessageTemplateDirective {
22
22
  }
23
23
  }
24
24
  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 });
25
- MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessageTemplateDirective, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
25
+ MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
26
26
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageTemplateDirective, decorators: [{
27
27
  type: Directive,
28
28
  args: [{
29
- selector: '[kendoChatMessageTemplate]'
29
+ selector: '[kendoChatMessageTemplate]',
30
+ standalone: true
30
31
  }]
31
32
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
32
33
  type: Optional
@@ -6,9 +6,9 @@ import { Component, ElementRef, forwardRef, HostBinding, Input } from '@angular/
6
6
  import { ChatItem } from './chat-item';
7
7
  import { MessageTemplateDirective } from './message-template.directive';
8
8
  import { IntlService } from '@progress/kendo-angular-intl';
9
+ import { NgIf, NgTemplateOutlet } from '@angular/common';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "@progress/kendo-angular-intl";
11
- import * as i2 from "@angular/common";
12
12
  // eslint-disable no-forward-ref
13
13
  /**
14
14
  * @hidden
@@ -31,7 +31,7 @@ export class MessageComponent extends ChatItem {
31
31
  }
32
32
  }
33
33
  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 });
34
- 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: [{
34
+ 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: [{
35
35
  provide: ChatItem,
36
36
  useExisting: forwardRef(() => MessageComponent)
37
37
  }], usesInheritance: true, ngImport: i0, template: `
@@ -72,7 +72,7 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
72
72
  </div>
73
73
  </div>
74
74
  </ng-template>
75
- `, 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"] }] });
75
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
76
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageComponent, decorators: [{
77
77
  type: Component,
78
78
  args: [{
@@ -119,7 +119,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
119
119
  </div>
120
120
  </div>
121
121
  </ng-template>
122
- `
122
+ `,
123
+ standalone: true,
124
+ imports: [NgIf, NgTemplateOutlet]
123
125
  }]
124
126
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.IntlService }]; }, propDecorators: { message: [{
125
127
  type: Input
@@ -5,10 +5,10 @@
5
5
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
6
  /* eslint-disable @typescript-eslint/no-empty-function */
7
7
  import { Component, EventEmitter, forwardRef, HostBinding, Input, Output, QueryList, ViewChildren } from '@angular/core';
8
+ import { NgFor } from '@angular/common';
8
9
  import { Keys } from '@progress/kendo-angular-common';
9
10
  import { ChatItem } from './chat-item';
10
11
  import * as i0 from "@angular/core";
11
- import * as i1 from "@angular/common";
12
12
  /**
13
13
  * @hidden
14
14
  */
@@ -44,7 +44,7 @@ export class SuggestedActionsComponent extends ChatItem {
44
44
  }
45
45
  }
46
46
  SuggestedActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
47
- 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: [{
47
+ 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: [{
48
48
  provide: ChatItem,
49
49
  useExisting: forwardRef(() => SuggestedActionsComponent)
50
50
  }], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
@@ -63,7 +63,7 @@ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
63
63
  >
64
64
  {{ action.title || action.value }}
65
65
  </span>
66
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
66
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
67
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
68
68
  type: Component,
69
69
  args: [{
@@ -88,7 +88,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
88
88
  >
89
89
  {{ action.title || action.value }}
90
90
  </span>
91
- `
91
+ `,
92
+ standalone: true,
93
+ imports: [NgFor]
92
94
  }]
93
95
  }], propDecorators: { actions: [{
94
96
  type: Input
@@ -3,9 +3,27 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
6
- import { AIPromptModule } from './ai-prompt/aiprompt.module';
7
- import { ChatModule } from './chat/chat.module';
6
+ import { KENDO_CONVERSATIONALUI } from './directives';
7
+ import { IconsService } from '@progress/kendo-angular-icons';
8
+ import { PopupService } from '@progress/kendo-angular-popup';
9
+ import { ResizeBatchService } from '@progress/kendo-angular-common';
10
+ import { DialogContainerService, DialogService, WindowContainerService, WindowService } from '@progress/kendo-angular-dialog';
8
11
  import * as i0 from "@angular/core";
12
+ import * as i1 from "./ai-prompt/aiprompt.component";
13
+ import * as i2 from "./ai-prompt/views/prompt-view.component";
14
+ import * as i3 from "./ai-prompt/views/output-view.component";
15
+ import * as i4 from "./ai-prompt/views/command-view.component";
16
+ import * as i5 from "./ai-prompt/views/custom-view.component";
17
+ import * as i6 from "./ai-prompt/localization/custom-messages.component";
18
+ import * as i7 from "./ai-prompt/templates/toolbar-actions.template";
19
+ import * as i8 from "./ai-prompt/common/toolbar-focusable.directive";
20
+ import * as i9 from "./chat/chat.component";
21
+ import * as i10 from "./chat/l10n/custom-messages.component";
22
+ import * as i11 from "./chat/attachment-template.directive";
23
+ import * as i12 from "./chat/message-template.directive";
24
+ import * as i13 from "./chat/cards/hero-card.component";
25
+ import * as i14 from "./chat/message-box.directive";
26
+ // IMPORTANT: NgModule export kept for backwards compatibility
9
27
  /**
10
28
  * Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
11
29
  * definition for the Conversational UI components.
@@ -40,11 +58,13 @@ import * as i0 from "@angular/core";
40
58
  export class ConversationalUIModule {
41
59
  }
42
60
  ConversationalUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- ConversationalUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, exports: [AIPromptModule, ChatModule] });
44
- ConversationalUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, imports: [AIPromptModule, ChatModule] });
61
+ ConversationalUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, imports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i5.CustomViewComponent, i6.AIPromptCustomMessagesComponent, i7.AIPromptToolbarActionsDirective, i8.AIPromptToolbarFocusableDirective, i9.ChatComponent, i10.CustomMessagesComponent, i11.AttachmentTemplateDirective, i12.MessageTemplateDirective, i13.HeroCardComponent, i14.ChatMessageBoxTemplateDirective], exports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i5.CustomViewComponent, i6.AIPromptCustomMessagesComponent, i7.AIPromptToolbarActionsDirective, i8.AIPromptToolbarFocusableDirective, i9.ChatComponent, i10.CustomMessagesComponent, i11.AttachmentTemplateDirective, i12.MessageTemplateDirective, i13.HeroCardComponent, i14.ChatMessageBoxTemplateDirective] });
62
+ 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: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i5.CustomViewComponent, i6.AIPromptCustomMessagesComponent, i9.ChatComponent, i10.CustomMessagesComponent, i13.HeroCardComponent] });
45
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, decorators: [{
46
64
  type: NgModule,
47
65
  args: [{
48
- exports: [AIPromptModule, ChatModule]
66
+ exports: [...KENDO_CONVERSATIONALUI],
67
+ imports: [...KENDO_CONVERSATIONALUI],
68
+ providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
49
69
  }]
50
70
  }] });
@@ -0,0 +1,48 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AIPromptComponent } from "./ai-prompt/aiprompt.component";
6
+ import { CommandViewComponent } from "./ai-prompt/views/command-view.component";
7
+ import { AIPromptCustomMessagesComponent } from "./ai-prompt/localization/custom-messages.component";
8
+ import { CustomViewComponent } from './ai-prompt/views/custom-view.component';
9
+ import { AIPromptToolbarActionsDirective } from './ai-prompt/templates/toolbar-actions.template';
10
+ import { AIPromptToolbarFocusableDirective } from './ai-prompt/common/toolbar-focusable.directive';
11
+ import { OutputViewComponent, PromptViewComponent } from "./ai-prompt/views";
12
+ import { ChatComponent } from "./chat/chat.component";
13
+ import { CustomMessagesComponent } from "./chat/l10n/custom-messages.component";
14
+ import { AttachmentTemplateDirective } from "./chat/attachment-template.directive";
15
+ import { MessageTemplateDirective } from "./chat/message-template.directive";
16
+ import { HeroCardComponent } from "./chat/cards/hero-card.component";
17
+ import { ChatMessageBoxTemplateDirective } from "./chat/message-box.directive";
18
+ /**
19
+ * Utility array that contains all `AIPrompt` related components and directives
20
+ */
21
+ export const KENDO_AIPROMPT = [
22
+ AIPromptComponent,
23
+ PromptViewComponent,
24
+ OutputViewComponent,
25
+ CommandViewComponent,
26
+ CustomViewComponent,
27
+ AIPromptCustomMessagesComponent,
28
+ AIPromptToolbarActionsDirective,
29
+ AIPromptToolbarFocusableDirective
30
+ ];
31
+ /**
32
+ * Utility array that contains all `Chat` related components and directives
33
+ */
34
+ export const KENDO_CHAT = [
35
+ ChatComponent,
36
+ CustomMessagesComponent,
37
+ AttachmentTemplateDirective,
38
+ MessageTemplateDirective,
39
+ HeroCardComponent,
40
+ ChatMessageBoxTemplateDirective
41
+ ];
42
+ /**
43
+ * Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives
44
+ */
45
+ export const KENDO_CONVERSATIONALUI = [
46
+ ...KENDO_AIPROMPT,
47
+ ...KENDO_CHAT
48
+ ];
package/esm2020/index.mjs CHANGED
@@ -16,3 +16,4 @@ export { AIPromptToolbarActionsDirective } from './ai-prompt/templates/toolbar-a
16
16
  export { AIPromptToolbarFocusableDirective } from './ai-prompt/common/toolbar-focusable.directive';
17
17
  export * from './ai-prompt/views';
18
18
  export * from './ai-prompt/models';
19
+ export * from './directives';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-conversational-ui',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1721814415,
13
- version: '16.5.0',
12
+ publishDate: 1721847310,
13
+ version: '16.6.0-develop.2',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };