@progress/kendo-angular-conversational-ui 17.0.0-develop.8 → 17.0.0

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 (88) hide show
  1. package/README.md +36 -17
  2. package/ai-prompt/aiprompt.component.d.ts +1 -1
  3. package/ai-prompt/common/output-card.component.d.ts +1 -1
  4. package/ai-prompt/localization/messages.d.ts +1 -1
  5. package/ai-prompt/models/prompt-output.interface.d.ts +1 -1
  6. package/ai-prompt/models/view-type.d.ts +1 -1
  7. package/ai-prompt/views/base-view.d.ts +1 -1
  8. package/ai-prompt/views/custom-view.component.d.ts +1 -1
  9. package/chat/api/action.interface.d.ts +1 -1
  10. package/chat/api/attachment.interface.d.ts +1 -1
  11. package/chat/attachment.component.d.ts +1 -1
  12. package/chat/builtin-actions.d.ts +1 -1
  13. package/chat/cards/hero-card.component.d.ts +1 -1
  14. package/chat/chat-view.d.ts +1 -1
  15. package/chat/chat.component.d.ts +1 -1
  16. package/chat/common/models/message-box-options.d.ts +1 -1
  17. package/chat/common/scroll-anchor.directive.d.ts +1 -1
  18. package/chat/l10n/messages.d.ts +1 -1
  19. package/chat/message-attachments.component.d.ts +1 -1
  20. package/chat/message-box.component.d.ts +1 -1
  21. package/chat/message-list.component.d.ts +1 -1
  22. package/chat/message.component.d.ts +1 -1
  23. package/chat/suggested-actions.component.d.ts +1 -2
  24. package/{esm2020 → esm2022}/ai-prompt/aiprompt.component.mjs +61 -48
  25. package/{esm2020 → esm2022}/ai-prompt/aiprompt.module.mjs +4 -4
  26. package/{esm2020 → esm2022}/ai-prompt/common/aiprompt.service.mjs +13 -11
  27. package/{esm2020 → esm2022}/ai-prompt/common/output-card.component.mjs +19 -16
  28. package/{esm2020 → esm2022}/ai-prompt/common/toolbar-focusable.directive.mjs +28 -25
  29. package/{esm2020 → esm2022}/ai-prompt/common/toolbar-navigation.service.mjs +6 -5
  30. package/{esm2020 → esm2022}/ai-prompt/localization/custom-messages.component.mjs +9 -8
  31. package/{esm2020 → esm2022}/ai-prompt/localization/localized-messages.directive.mjs +9 -8
  32. package/esm2022/ai-prompt/localization/messages.mjs +71 -0
  33. package/{esm2020 → esm2022}/ai-prompt/templates/toolbar-actions.template.mjs +4 -3
  34. package/{esm2020 → esm2022}/ai-prompt/views/base-view.mjs +13 -4
  35. package/{esm2020 → esm2022}/ai-prompt/views/command-view.component.mjs +12 -11
  36. package/{esm2020 → esm2022}/ai-prompt/views/custom-view.component.mjs +10 -6
  37. package/{esm2020 → esm2022}/ai-prompt/views/output-view.component.mjs +8 -7
  38. package/{esm2020 → esm2022}/ai-prompt/views/prompt-view.component.mjs +18 -17
  39. package/{esm2020 → esm2022}/chat/api/execute-action-event.mjs +8 -0
  40. package/{esm2020 → esm2022}/chat/api/post-message-event.mjs +7 -0
  41. package/{esm2020 → esm2022}/chat/api/preventable-event.mjs +1 -3
  42. package/{esm2020 → esm2022}/chat/attachment-template.directive.mjs +4 -3
  43. package/{esm2020 → esm2022}/chat/attachment.component.mjs +7 -4
  44. package/{esm2020 → esm2022}/chat/cards/hero-card.component.mjs +25 -11
  45. package/{esm2020 → esm2022}/chat/chat-item.mjs +1 -0
  46. package/{esm2020 → esm2022}/chat/chat.component.mjs +67 -44
  47. package/{esm2020 → esm2022}/chat/chat.module.mjs +4 -4
  48. package/{esm2020 → esm2022}/chat/common/scroll-anchor.directive.mjs +11 -7
  49. package/{esm2020 → esm2022}/chat/l10n/custom-messages.component.mjs +9 -8
  50. package/{esm2020 → esm2022}/chat/l10n/localized-messages.directive.mjs +9 -8
  51. package/esm2022/chat/l10n/messages.mjs +64 -0
  52. package/{esm2020 → esm2022}/chat/message-attachments.component.mjs +42 -31
  53. package/{esm2020 → esm2022}/chat/message-box.component.mjs +16 -12
  54. package/{esm2020 → esm2022}/chat/message-box.directive.mjs +4 -3
  55. package/{esm2020 → esm2022}/chat/message-list.component.mjs +32 -22
  56. package/{esm2020 → esm2022}/chat/message-template.directive.mjs +4 -3
  57. package/{esm2020 → esm2022}/chat/message.component.mjs +17 -11
  58. package/{esm2020 → esm2022}/chat/suggested-actions.component.mjs +18 -18
  59. package/{esm2020 → esm2022}/conversational-ui.module.mjs +4 -4
  60. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  61. package/{fesm2020 → fesm2022}/progress-kendo-angular-conversational-ui.mjs +578 -378
  62. package/package.json +18 -24
  63. package/schematics/ngAdd/index.js +1 -1
  64. package/esm2020/ai-prompt/localization/messages.mjs +0 -35
  65. package/esm2020/chat/l10n/messages.mjs +0 -35
  66. package/fesm2015/progress-kendo-angular-conversational-ui.mjs +0 -3242
  67. /package/{esm2020 → esm2022}/ai-prompt/models/command-execute-event.mjs +0 -0
  68. /package/{esm2020 → esm2022}/ai-prompt/models/command.interface.mjs +0 -0
  69. /package/{esm2020 → esm2022}/ai-prompt/models/index.mjs +0 -0
  70. /package/{esm2020 → esm2022}/ai-prompt/models/output-rating-change-event.mjs +0 -0
  71. /package/{esm2020 → esm2022}/ai-prompt/models/prompt-output.interface.mjs +0 -0
  72. /package/{esm2020 → esm2022}/ai-prompt/models/prompt-request-event.mjs +0 -0
  73. /package/{esm2020 → esm2022}/ai-prompt/models/view-type.mjs +0 -0
  74. /package/{esm2020 → esm2022}/ai-prompt/utils.mjs +0 -0
  75. /package/{esm2020 → esm2022}/ai-prompt/views/index.mjs +0 -0
  76. /package/{esm2020 → esm2022}/chat/api/action.interface.mjs +0 -0
  77. /package/{esm2020 → esm2022}/chat/api/attachment.interface.mjs +0 -0
  78. /package/{esm2020 → esm2022}/chat/api/index.mjs +0 -0
  79. /package/{esm2020 → esm2022}/chat/api/message.interface.mjs +0 -0
  80. /package/{esm2020 → esm2022}/chat/api/user.interface.mjs +0 -0
  81. /package/{esm2020 → esm2022}/chat/builtin-actions.mjs +0 -0
  82. /package/{esm2020 → esm2022}/chat/chat-view.mjs +0 -0
  83. /package/{esm2020 → esm2022}/chat/chat.directives.mjs +0 -0
  84. /package/{esm2020 → esm2022}/chat/common/models/message-box-options.mjs +0 -0
  85. /package/{esm2020 → esm2022}/chat/common/utils.mjs +0 -0
  86. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  87. /package/{esm2020 → esm2022}/index.mjs +0 -0
  88. /package/{esm2020 → esm2022}/progress-kendo-angular-conversational-ui.mjs +0 -0
@@ -14,14 +14,20 @@ import * as i1 from "@progress/kendo-angular-intl";
14
14
  * @hidden
15
15
  */
16
16
  export class MessageComponent extends ChatItem {
17
+ element;
18
+ intl;
19
+ message;
20
+ tabbable;
21
+ template;
22
+ cssClass = true;
23
+ selected;
24
+ get tabIndex() {
25
+ return this.tabbable ? '0' : '-1';
26
+ }
17
27
  constructor(element, intl) {
18
28
  super();
19
29
  this.element = element;
20
30
  this.intl = intl;
21
- this.cssClass = true;
22
- }
23
- get tabIndex() {
24
- return this.tabbable ? '0' : '-1';
25
31
  }
26
32
  formatTimeStamp(date) {
27
33
  return this.intl.formatDate(date, { datetime: 'short' });
@@ -29,12 +35,11 @@ export class MessageComponent extends ChatItem {
29
35
  focus() {
30
36
  this.element.nativeElement.focus();
31
37
  }
32
- }
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, 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
- provide: ChatItem,
36
- useExisting: forwardRef(() => MessageComponent)
37
- }], usesInheritance: true, ngImport: i0, template: `
38
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
39
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageComponent, isStandalone: true, selector: "kendo-chat-message", inputs: { message: "message", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-message": "this.cssClass", "class.k-selected": "this.selected", "class.k-focus": "this.selected", "attr.tabIndex": "this.tabIndex" } }, providers: [{
40
+ provide: ChatItem,
41
+ useExisting: forwardRef(() => MessageComponent)
42
+ }], usesInheritance: true, ngImport: i0, template: `
38
43
  <time
39
44
  [attr.aria-hidden]="!selected"
40
45
  class="k-message-time"
@@ -73,7 +78,8 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
73
78
  </div>
74
79
  </ng-template>
75
80
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageComponent, decorators: [{
81
+ }
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageComponent, decorators: [{
77
83
  type: Component,
78
84
  args: [{
79
85
  selector: 'kendo-chat-message',
@@ -13,17 +13,17 @@ import * as i0 from "@angular/core";
13
13
  * @hidden
14
14
  */
15
15
  export class SuggestedActionsComponent extends ChatItem {
16
- constructor() {
17
- super(...arguments);
18
- this.dispatch = new EventEmitter();
19
- this.defaultClass = true;
20
- this.selectedIndex = 0;
21
- this.keyHandlers = {
22
- [Keys.Tab]: (e) => this.changeSelectedIndex(e),
23
- [Keys.Enter]: (_, action) => this.actionClick(action),
24
- [Keys.Space]: (_, action) => this.actionClick(action),
25
- };
26
- }
16
+ actions;
17
+ tabbable;
18
+ dispatch = new EventEmitter();
19
+ defaultClass = true;
20
+ items;
21
+ selectedIndex = 0;
22
+ keyHandlers = {
23
+ [Keys.Tab]: (e) => this.changeSelectedIndex(e),
24
+ [Keys.Enter]: (_, action) => this.actionClick(action),
25
+ [Keys.Space]: (_, action) => this.actionClick(action),
26
+ };
27
27
  isSelected(index) {
28
28
  return this.selected && this.selectedIndex === index;
29
29
  }
@@ -42,12 +42,11 @@ export class SuggestedActionsComponent extends ChatItem {
42
42
  const prevIndex = this.selectedIndex;
43
43
  this.selectedIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
44
44
  }
45
- }
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, 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
- provide: ChatItem,
49
- useExisting: forwardRef(() => SuggestedActionsComponent)
50
- }], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
46
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuggestedActionsComponent, isStandalone: true, selector: "kendo-chat-suggested-actions", inputs: { actions: "actions", tabbable: "tabbable" }, outputs: { dispatch: "dispatch" }, host: { properties: { "class.k-quick-replies": "this.defaultClass" } }, providers: [{
47
+ provide: ChatItem,
48
+ useExisting: forwardRef(() => SuggestedActionsComponent)
49
+ }], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
51
50
  <span
52
51
  #item
53
52
  *ngFor="let action of actions; index as index; first as first; last as last"
@@ -64,7 +63,8 @@ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
64
63
  {{ action.title || action.value }}
65
64
  </span>
66
65
  `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
68
68
  type: Component,
69
69
  args: [{
70
70
  selector: 'kendo-chat-suggested-actions',
@@ -56,11 +56,11 @@ import * as i14 from "./chat/message-box.directive";
56
56
  * ```
57
57
  */
58
58
  export class ConversationalUIModule {
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
60
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", 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] });
61
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.AIPromptComponent, i2.PromptViewComponent, i3.OutputViewComponent, i4.CommandViewComponent, i9.ChatComponent, i13.HeroCardComponent] });
59
62
  }
60
- ConversationalUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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] });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationalUIModule, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConversationalUIModule, decorators: [{
64
64
  type: NgModule,
65
65
  args: [{
66
66
  exports: [...KENDO_CONVERSATIONALUI],
@@ -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: 1729170417,
13
- version: '17.0.0-develop.8',
12
+ publishDate: 1731414231,
13
+ version: '17.0.0',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };