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

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 (87) 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 +62 -49
  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 +20 -17
  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 +19 -18
  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 +26 -12
  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 +43 -32
  53. package/{esm2020 → esm2022}/chat/message-box.component.mjs +17 -13
  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 +584 -384
  62. package/package.json +18 -24
  63. package/esm2020/ai-prompt/localization/messages.mjs +0 -35
  64. package/esm2020/chat/l10n/messages.mjs +0 -35
  65. package/fesm2015/progress-kendo-angular-conversational-ui.mjs +0 -3242
  66. /package/{esm2020 → esm2022}/ai-prompt/models/command-execute-event.mjs +0 -0
  67. /package/{esm2020 → esm2022}/ai-prompt/models/command.interface.mjs +0 -0
  68. /package/{esm2020 → esm2022}/ai-prompt/models/index.mjs +0 -0
  69. /package/{esm2020 → esm2022}/ai-prompt/models/output-rating-change-event.mjs +0 -0
  70. /package/{esm2020 → esm2022}/ai-prompt/models/prompt-output.interface.mjs +0 -0
  71. /package/{esm2020 → esm2022}/ai-prompt/models/prompt-request-event.mjs +0 -0
  72. /package/{esm2020 → esm2022}/ai-prompt/models/view-type.mjs +0 -0
  73. /package/{esm2020 → esm2022}/ai-prompt/utils.mjs +0 -0
  74. /package/{esm2020 → esm2022}/ai-prompt/views/index.mjs +0 -0
  75. /package/{esm2020 → esm2022}/chat/api/action.interface.mjs +0 -0
  76. /package/{esm2020 → esm2022}/chat/api/attachment.interface.mjs +0 -0
  77. /package/{esm2020 → esm2022}/chat/api/index.mjs +0 -0
  78. /package/{esm2020 → esm2022}/chat/api/message.interface.mjs +0 -0
  79. /package/{esm2020 → esm2022}/chat/api/user.interface.mjs +0 -0
  80. /package/{esm2020 → esm2022}/chat/builtin-actions.mjs +0 -0
  81. /package/{esm2020 → esm2022}/chat/chat-view.mjs +0 -0
  82. /package/{esm2020 → esm2022}/chat/chat.directives.mjs +0 -0
  83. /package/{esm2020 → esm2022}/chat/common/models/message-box-options.mjs +0 -0
  84. /package/{esm2020 → esm2022}/chat/common/utils.mjs +0 -0
  85. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  86. /package/{esm2020 → esm2022}/index.mjs +0 -0
  87. /package/{esm2020 → esm2022}/progress-kendo-angular-conversational-ui.mjs +0 -0
@@ -6,4 +6,5 @@
6
6
  * @hidden
7
7
  */
8
8
  export class ChatItem {
9
+ selected;
9
10
  }
@@ -27,52 +27,75 @@ import * as i1 from "@progress/kendo-angular-l10n";
27
27
  *
28
28
  */
29
29
  export class ChatComponent {
30
- constructor(localization, zone) {
31
- this.localization = localization;
32
- this.zone = zone;
33
- /**
34
- * Used to switch between a one-liner input or a textarea.
35
- * ([see example]({% slug message_box %})#toc-message-box-types).
36
- * @default input
37
- */
38
- this.messageBoxType = 'textbox';
39
- /**
40
- * Fires when the user types a message and clicks the **Send** button or presses **Enter**.
41
- * Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
42
- *
43
- * > The message is not automatically appended to the `messages` array.
44
- */
45
- this.sendMessage = new EventEmitter();
46
- /**
47
- * Fires when the user clicks a quick action button.
48
- * The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}).
49
- *
50
- * Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_executeactionevent %}).
51
- * The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
52
- */
53
- this.executeAction = new EventEmitter();
54
- /**
55
- * @hidden
56
- */
57
- this.autoScroll = true;
58
- validatePackage(packageMetadata);
59
- this.direction = localization.rtl ? 'rtl' : 'ltr';
60
- this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
61
- this.direction = rtl ? 'rtl' : 'ltr';
62
- });
63
- }
30
+ localization;
31
+ zone;
32
+ /**
33
+ * Sets the messages of the Chat.
34
+ * The message timestamp, if provided, tracks unique messages.
35
+ * For more information, refer to [ngFor - Change Tracking](link:site.data.urls.angular['ngforof']#change-propagation).
36
+ */
37
+ messages;
38
+ /**
39
+ * Sets the [`User`]({% slug api_conversational-ui_user %}) instance for the local user.
40
+ * The User ID identifies messages that are authored by the local user.
41
+ */
42
+ user;
43
+ /**
44
+ * Used to switch between a one-liner input or a textarea.
45
+ * ([see example]({% slug message_box %})#toc-message-box-types).
46
+ * @default input
47
+ */
48
+ messageBoxType = 'textbox';
49
+ /**
50
+ * Fires when the user types a message and clicks the **Send** button or presses **Enter**.
51
+ * Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
52
+ *
53
+ * > The message is not automatically appended to the `messages` array.
54
+ */
55
+ sendMessage = new EventEmitter();
56
+ /**
57
+ * Fires when the user clicks a quick action button.
58
+ * The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}).
59
+ *
60
+ * Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_executeactionevent %}).
61
+ * The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
62
+ */
63
+ executeAction = new EventEmitter();
64
64
  get className() {
65
65
  return 'k-chat';
66
66
  }
67
67
  get dirAttr() {
68
68
  return this.direction;
69
69
  }
70
+ attachmentTemplate;
71
+ messageTemplate;
72
+ messageBoxTemplate;
73
+ messageBox;
74
+ /**
75
+ * @hidden
76
+ */
77
+ messageList;
70
78
  /**
71
79
  * @hidden
72
80
  */
73
81
  get localizationText() {
74
82
  return this.localization;
75
83
  }
84
+ /**
85
+ * @hidden
86
+ */
87
+ autoScroll = true;
88
+ direction;
89
+ localizationChangeSubscription;
90
+ constructor(localization, zone) {
91
+ this.localization = localization;
92
+ this.zone = zone;
93
+ validatePackage(packageMetadata);
94
+ this.direction = localization.rtl ? 'rtl' : 'ltr';
95
+ this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
96
+ this.direction = rtl ? 'rtl' : 'ltr';
97
+ });
98
+ }
76
99
  ngOnChanges() {
77
100
  this.zone.runOutsideAngular(() => setTimeout(() => {
78
101
  this.messageList.nativeElement.style.flex = '1 1 auto';
@@ -110,15 +133,14 @@ export class ChatComponent {
110
133
  textFor(key) {
111
134
  return this.localization.get(key);
112
135
  }
113
- }
114
- 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 });
115
- 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: [
116
- LocalizationService,
117
- {
118
- provide: L10N_PREFIX,
119
- useValue: 'kendo.chat'
120
- }
121
- ], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
136
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
137
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChatComponent, isStandalone: true, selector: "kendo-chat", inputs: { messages: "messages", user: "user", messageBoxType: "messageBoxType" }, outputs: { sendMessage: "sendMessage", executeAction: "executeAction" }, host: { properties: { "class": "this.className", "attr.dir": "this.dirAttr" } }, providers: [
138
+ LocalizationService,
139
+ {
140
+ provide: L10N_PREFIX,
141
+ useValue: 'kendo.chat'
142
+ }
143
+ ], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
122
144
  <ng-container kendoChatLocalizedMessages
123
145
  i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
124
146
  messagePlaceholder="Type a message..."
@@ -176,7 +198,8 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
176
198
  >
177
199
  </kendo-message-box>
178
200
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, 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"] }] });
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatComponent, decorators: [{
201
+ }
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatComponent, decorators: [{
180
203
  type: Component,
181
204
  args: [{
182
205
  providers: [
@@ -36,11 +36,11 @@ import * as i6 from "./message-box.directive";
36
36
  * ```
37
37
  */
38
38
  export class ChatModule {
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, imports: [i1.ChatComponent, i2.CustomMessagesComponent, i3.AttachmentTemplateDirective, i4.MessageTemplateDirective, i5.HeroCardComponent, i6.ChatMessageBoxTemplateDirective], exports: [i1.ChatComponent, i2.CustomMessagesComponent, i3.AttachmentTemplateDirective, i4.MessageTemplateDirective, i5.HeroCardComponent, i6.ChatMessageBoxTemplateDirective] });
41
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [i1.ChatComponent, i5.HeroCardComponent] });
39
42
  }
40
- ChatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
41
- ChatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, imports: [i1.ChatComponent, i2.CustomMessagesComponent, i3.AttachmentTemplateDirective, i4.MessageTemplateDirective, i5.HeroCardComponent, i6.ChatMessageBoxTemplateDirective], exports: [i1.ChatComponent, i2.CustomMessagesComponent, i3.AttachmentTemplateDirective, i4.MessageTemplateDirective, i5.HeroCardComponent, i6.ChatMessageBoxTemplateDirective] });
42
- ChatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [i1.ChatComponent, i2.CustomMessagesComponent, i5.HeroCardComponent] });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatModule, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatModule, decorators: [{
44
44
  type: NgModule,
45
45
  args: [{
46
46
  exports: [...KENDO_CHAT],
@@ -10,14 +10,18 @@ const maxDelta = 2;
10
10
  * @hidden
11
11
  */
12
12
  export class ScrollAnchorDirective {
13
+ element;
14
+ zone;
15
+ renderer;
16
+ autoScroll = true;
17
+ autoScrollChange = new EventEmitter();
18
+ overflowAnchor = 'none';
19
+ scrolling = false;
20
+ unsubscribe;
13
21
  constructor(element, zone, renderer) {
14
22
  this.element = element;
15
23
  this.zone = zone;
16
24
  this.renderer = renderer;
17
- this.autoScroll = true;
18
- this.autoScrollChange = new EventEmitter();
19
- this.overflowAnchor = 'none';
20
- this.scrolling = false;
21
25
  }
22
26
  ngOnInit() {
23
27
  this.zone.runOutsideAngular(() => {
@@ -56,10 +60,10 @@ export class ScrollAnchorDirective {
56
60
  this.scrolling = true;
57
61
  this.zone.runOutsideAngular(() => setTimeout(() => this.scrolling = false, 1000));
58
62
  }
63
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
64
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ScrollAnchorDirective, isStandalone: true, selector: "[kendoChatScrollAnchor]", inputs: { autoScroll: "autoScroll" }, outputs: { autoScrollChange: "autoScrollChange" }, host: { properties: { "style.overflow-anchor": "this.overflowAnchor" } }, exportAs: ["scrollAnchor"], ngImport: i0 });
59
65
  }
60
- 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 });
61
- 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 });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
63
67
  type: Directive,
64
68
  args: [{
65
69
  selector: '[kendoChatScrollAnchor]',
@@ -13,6 +13,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
13
13
  * ([see example]({% slug globalization_chat %}#toc-custom-messages)).
14
14
  */
15
15
  export class CustomMessagesComponent extends Messages {
16
+ service;
16
17
  constructor(service) {
17
18
  super();
18
19
  this.service = service;
@@ -20,15 +21,15 @@ export class CustomMessagesComponent extends Messages {
20
21
  get override() {
21
22
  return true;
22
23
  }
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
26
+ {
27
+ provide: Messages,
28
+ useExisting: forwardRef(() => CustomMessagesComponent)
29
+ }
30
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
23
31
  }
24
- CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
25
- CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
26
- {
27
- provide: Messages,
28
- useExisting: forwardRef(() => CustomMessagesComponent)
29
- }
30
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
32
33
  type: Component,
33
34
  args: [{
34
35
  providers: [
@@ -12,19 +12,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
12
12
  * @hidden
13
13
  */
14
14
  export class LocalizedMessagesDirective extends Messages {
15
+ service;
15
16
  constructor(service) {
16
17
  super();
17
18
  this.service = service;
18
19
  }
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
21
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
22
+ {
23
+ provide: Messages,
24
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
25
+ }
26
+ ], usesInheritance: true, ngImport: i0 });
19
27
  }
20
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
21
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
22
- {
23
- provide: Messages,
24
- useExisting: forwardRef(() => LocalizedMessagesDirective)
25
- }
26
- ], usesInheritance: true, ngImport: i0 });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
28
29
  type: Directive,
29
30
  args: [{
30
31
  providers: [
@@ -0,0 +1,64 @@
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 { Directive, Input } from '@angular/core';
6
+ import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class Messages extends ComponentMessages {
12
+ /**
13
+ * Sets the placeholder text of the message text input.
14
+ */
15
+ messagePlaceholder;
16
+ /**
17
+ * Sets the text for the **Send** button.
18
+ */
19
+ send;
20
+ /**
21
+ * The label for the Message list.
22
+ */
23
+ messageListLabel;
24
+ /**
25
+ * The label for the Message input box.
26
+ *
27
+ */
28
+ messageBoxInputLabel;
29
+ /**
30
+ * The text for the left arrow of the message attachments.
31
+ */
32
+ messageAttachmentLeftArrow;
33
+ /**
34
+ * The text for the right arrow of the message attachments.
35
+ */
36
+ messageAttachmentRightArrow;
37
+ /**
38
+ * The alt attribute text for the avatar image.
39
+ */
40
+ messageAvatarAlt;
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
42
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
45
+ type: Directive,
46
+ args: [{
47
+ // eslint-disable-next-line @angular-eslint/directive-selector
48
+ selector: 'kendoConversationalUIMessages'
49
+ }]
50
+ }], propDecorators: { messagePlaceholder: [{
51
+ type: Input
52
+ }], send: [{
53
+ type: Input
54
+ }], messageListLabel: [{
55
+ type: Input
56
+ }], messageBoxInputLabel: [{
57
+ type: Input
58
+ }], messageAttachmentLeftArrow: [{
59
+ type: Input
60
+ }], messageAttachmentRightArrow: [{
61
+ type: Input
62
+ }], messageAvatarAlt: [{
63
+ type: Input
64
+ }] } });
@@ -21,39 +21,50 @@ import * as i1 from "@progress/kendo-angular-l10n";
21
21
  * @hidden
22
22
  */
23
23
  export class MessageAttachmentsComponent extends ChatItem {
24
- constructor(zone, localizationService) {
25
- super();
26
- this.zone = zone;
27
- this.localizationService = localizationService;
28
- /**
29
- * @hidden
30
- */
31
- this.chevronLeftIcon = chevronLeftIcon;
32
- /**
33
- * @hidden
34
- */
35
- this.chevronRightIcon = chevronRightIcon;
36
- this.scrollPosition = 0;
37
- this.selectedIndex = 0;
38
- this.carouselKeyHandlers = {
39
- [Keys.ArrowLeft]: (e) => this.navigateTo(e, this.direction === 'rtl' ? 1 : -1),
40
- [Keys.ArrowRight]: (e) => this.navigateTo(e, this.direction === 'rtl' ? -1 : 1)
41
- };
42
- this.listKeyHandlers = {
43
- [Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
44
- [Keys.ArrowDown]: (e) => this.navigateTo(e, 1)
45
- };
46
- this.direction = this.localizationService.rtl ? 'rtl' : 'ltr';
47
- }
24
+ zone;
25
+ localizationService;
26
+ /**
27
+ * @hidden
28
+ */
29
+ chevronLeftIcon = chevronLeftIcon;
30
+ /**
31
+ * @hidden
32
+ */
33
+ chevronRightIcon = chevronRightIcon;
34
+ attachments;
35
+ layout;
36
+ tabbable;
37
+ template;
38
+ localization;
48
39
  get carousel() {
49
40
  return this.layout !== 'list';
50
41
  }
42
+ deck;
43
+ items;
44
+ scrollPosition = 0;
45
+ selectedIndex = 0;
46
+ scrollSubscription;
47
+ direction;
51
48
  get showLeftArrow() {
52
49
  return this.carousel && this.direction === 'rtl' ? this.scrollPosition > -1 : this.scrollPosition > 0;
53
50
  }
54
51
  get showRightArrow() {
55
52
  return this.carousel && this.direction === 'rtl' ? this.scrollPosition < 0 : this.scrollPosition < 1;
56
53
  }
54
+ carouselKeyHandlers = {
55
+ [Keys.ArrowLeft]: (e) => this.navigateTo(e, this.direction === 'rtl' ? 1 : -1),
56
+ [Keys.ArrowRight]: (e) => this.navigateTo(e, this.direction === 'rtl' ? -1 : 1)
57
+ };
58
+ listKeyHandlers = {
59
+ [Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
60
+ [Keys.ArrowDown]: (e) => this.navigateTo(e, 1)
61
+ };
62
+ constructor(zone, localizationService) {
63
+ super();
64
+ this.zone = zone;
65
+ this.localizationService = localizationService;
66
+ this.direction = this.localizationService.rtl ? 'rtl' : 'ltr';
67
+ }
57
68
  ngAfterViewInit() {
58
69
  this.zone.runOutsideAngular(() => {
59
70
  const scrollDebounceTime = 100;
@@ -122,12 +133,11 @@ export class MessageAttachmentsComponent extends ChatItem {
122
133
  textFor(key) {
123
134
  return this.localization.get(key);
124
135
  }
125
- }
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, 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
- provide: ChatItem,
129
- useExisting: forwardRef(() => MessageAttachmentsComponent)
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: `
136
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
137
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageAttachmentsComponent, isStandalone: true, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
138
+ provide: ChatItem,
139
+ useExisting: forwardRef(() => MessageAttachmentsComponent)
140
+ }], 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: `
131
141
  <button
132
142
  *ngIf="showLeftArrow"
133
143
  (click)="scrollTo(-1)"
@@ -168,8 +178,9 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
168
178
  icon="chevron-right"
169
179
  >
170
180
  </button>
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
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
181
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }] });
182
+ }
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
173
184
  type: Component,
174
185
  args: [{
175
186
  providers: [{
@@ -16,14 +16,18 @@ import * as i0 from "@angular/core";
16
16
  * @hidden
17
17
  */
18
18
  export class MessageBoxComponent {
19
- constructor() {
20
- this.borderColor = 'inherit';
21
- this.sendMessage = new EventEmitter();
22
- /**
23
- * @hidden
24
- */
25
- this.sendIcon = paperPlaneIcon;
26
- }
19
+ borderColor = 'inherit';
20
+ messageBoxInput;
21
+ user;
22
+ autoScroll;
23
+ type;
24
+ localization;
25
+ messageBoxTemplate;
26
+ sendMessage = new EventEmitter();
27
+ /**
28
+ * @hidden
29
+ */
30
+ sendIcon = paperPlaneIcon;
27
31
  /**
28
32
  * @hidden
29
33
  */
@@ -75,9 +79,8 @@ export class MessageBoxComponent {
75
79
  textFor(key) {
76
80
  return this.localization.get(key);
77
81
  }
78
- }
79
- MessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
80
- MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MessageBoxComponent, isStandalone: true, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "style.border-color": "this.borderColor" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageBoxComponent, isStandalone: true, selector: "kendo-message-box", inputs: { user: "user", autoScroll: "autoScroll", type: "type", localization: "localization", messageBoxTemplate: "messageBoxTemplate" }, outputs: { sendMessage: "sendMessage" }, host: { properties: { "style.border-color": "this.borderColor" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }], ngImport: i0, template: `
81
84
  <ng-container *ngIf="!messageBoxTemplate">
82
85
  <kendo-textbox
83
86
  *ngIf="type === 'textbox'"
@@ -135,8 +138,9 @@ MessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
135
138
  </ng-container>
136
139
 
137
140
  <ng-template *ngIf="messageBoxTemplate" [ngTemplateOutlet]="messageBoxTemplate?.templateRef"></ng-template>
138
- `, 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: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: InputSeparatorComponent, selector: "kendo-input-separator, kendo-textbox-separator", inputs: ["orientation"] }, { kind: "directive", type: TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }] });
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageBoxComponent, decorators: [{
141
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: InputSeparatorComponent, selector: "kendo-input-separator, kendo-textbox-separator", inputs: ["orientation"] }, { kind: "directive", type: TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }] });
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageBoxComponent, decorators: [{
140
144
  type: Component,
141
145
  args: [{
142
146
  selector: 'kendo-message-box',
@@ -10,13 +10,14 @@ import * as i0 from "@angular/core";
10
10
  * [see example]({% slug message_box %}#toc-message-box-template).
11
11
  */
12
12
  export class ChatMessageBoxTemplateDirective {
13
+ templateRef;
13
14
  constructor(templateRef) {
14
15
  this.templateRef = templateRef;
15
16
  }
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatMessageBoxTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
18
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
16
19
  }
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, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
20
21
  type: Directive,
21
22
  args: [{
22
23
  selector: '[kendoChatMessageBoxTemplate]',
@@ -26,24 +26,9 @@ import * as i1 from "@progress/kendo-angular-intl";
26
26
  * @hidden
27
27
  */
28
28
  export class MessageListComponent {
29
- constructor(element, intl, renderer) {
30
- this.element = element;
31
- this.intl = intl;
32
- this.renderer = renderer;
33
- this.executeAction = new EventEmitter();
34
- this.navigate = new EventEmitter();
35
- this.resize = new EventEmitter();
36
- this.cssClass = true;
37
- this.view = [];
38
- this.subs = new Subscription();
39
- this.keyActions = {
40
- [Keys.Home]: (_) => this.onHomeOrEndKeyDown('home'),
41
- [Keys.End]: (_) => this.onHomeOrEndKeyDown('end'),
42
- [Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
43
- [Keys.ArrowDown]: (e) => this.navigateTo(e, 1),
44
- [Keys.Tab]: (e) => this.onTabKeyDown(e),
45
- };
46
- }
29
+ element;
30
+ intl;
31
+ renderer;
47
32
  set messages(value) {
48
33
  const data = value || [];
49
34
  this.view = chatView(data);
@@ -52,6 +37,31 @@ export class MessageListComponent {
52
37
  get messages() {
53
38
  return this._messages;
54
39
  }
40
+ attachmentTemplate;
41
+ messageTemplate;
42
+ localization;
43
+ user;
44
+ executeAction = new EventEmitter();
45
+ navigate = new EventEmitter();
46
+ resize = new EventEmitter();
47
+ items;
48
+ cssClass = true;
49
+ view = [];
50
+ _messages;
51
+ subs = new Subscription();
52
+ selectedItem;
53
+ keyActions = {
54
+ [Keys.Home]: (_) => this.onHomeOrEndKeyDown('home'),
55
+ [Keys.End]: (_) => this.onHomeOrEndKeyDown('end'),
56
+ [Keys.ArrowUp]: (e) => this.navigateTo(e, -1),
57
+ [Keys.ArrowDown]: (e) => this.navigateTo(e, 1),
58
+ [Keys.Tab]: (e) => this.onTabKeyDown(e),
59
+ };
60
+ constructor(element, intl, renderer) {
61
+ this.element = element;
62
+ this.intl = intl;
63
+ this.renderer = renderer;
64
+ }
55
65
  ngOnInit() {
56
66
  const elRef = this.element.nativeElement;
57
67
  this.subs.add(this.renderer.listen(elRef, 'keydown', event => this.onKeydown(event)));
@@ -151,9 +161,8 @@ export class MessageListComponent {
151
161
  textFor(key) {
152
162
  return this.localization.get(key);
153
163
  }
154
- }
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 });
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: `
164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
165
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessageListComponent, isStandalone: true, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
157
166
  <ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
158
167
  <ng-container [ngSwitch]="group.type">
159
168
  <div
@@ -238,7 +247,8 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
238
247
  <kendo-resize-sensor (resize)="onResize()">
239
248
  </kendo-resize-sensor>
240
249
  `, 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"] }] });
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessageListComponent, decorators: [{
250
+ }
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageListComponent, decorators: [{
242
252
  type: Component,
243
253
  args: [{
244
254
  selector: 'kendo-chat-message-list',