@progress/kendo-angular-conversational-ui 4.0.0-dev.202201131630 → 5.0.0-next.202202241517

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 (148) hide show
  1. package/{dist/es2015/api → api}/action.interface.d.ts +0 -0
  2. package/{dist/es2015/api → api}/attachment.interface.d.ts +0 -0
  3. package/{dist/es2015/api → api}/execute-action-event.d.ts +1 -1
  4. package/{dist/es/api/user.interface.js → api/index.d.ts} +6 -0
  5. package/{dist/es2015/api → api}/message.interface.d.ts +0 -0
  6. package/{dist/es2015/api → api}/post-message-event.d.ts +0 -0
  7. package/{dist/es2015/api → api}/preventable-event.d.ts +0 -0
  8. package/{dist/es2015/api → api}/user.interface.d.ts +0 -0
  9. package/bundles/kendo-angular-conversational-ui.umd.js +5 -0
  10. package/{dist/es2015/cards → cards}/hero-card.component.d.ts +3 -0
  11. package/{dist/es2015/chat → chat}/attachment-template.directive.d.ts +3 -0
  12. package/{dist/es2015/chat → chat}/attachment.component.d.ts +9 -5
  13. package/{dist/es2015/chat → chat}/builtin-actions.d.ts +0 -0
  14. package/{dist/es2015/chat → chat}/chat-item.d.ts +0 -0
  15. package/{dist/es2015/chat → chat}/chat-view.d.ts +1 -1
  16. package/{dist/es2015/chat → chat}/chat.component.d.ts +6 -6
  17. package/{dist/es2015/chat → chat}/chat.directives.d.ts +0 -0
  18. package/chat/chat.module.d.ts +47 -0
  19. package/{dist/es2015/chat → chat}/l10n/custom-messages.component.d.ts +4 -1
  20. package/{dist/es2015/chat → chat}/l10n/localized-messages.directive.d.ts +3 -0
  21. package/{dist/es2015/chat → chat}/l10n/messages.d.ts +3 -0
  22. package/{dist/es2015/chat → chat}/message-attachments.component.d.ts +5 -2
  23. package/{dist/es2015/chat → chat}/message-list.component.d.ts +8 -7
  24. package/{dist/es2015/chat → chat}/message-template.directive.d.ts +3 -0
  25. package/{dist/es2015/chat → chat}/message.component.d.ts +4 -1
  26. package/{dist/es2015/chat → chat}/suggested-actions.component.d.ts +4 -1
  27. package/common/focused-state.directive.d.ts +15 -0
  28. package/{dist/es2015/common → common}/keys.enum.d.ts +0 -0
  29. package/{dist/es2015/common → common}/scroll-anchor.directive.d.ts +3 -0
  30. package/{dist/es2015/common → common}/utils.d.ts +0 -0
  31. package/{dist/es2015 → esm2015}/api/action.interface.js +2 -1
  32. package/{dist/es2015 → esm2015}/api/attachment.interface.js +1 -0
  33. package/{dist/es2015 → esm2015}/api/execute-action-event.js +0 -0
  34. package/{dist/es/api/attachment.interface.js → esm2015/api/index.js} +6 -0
  35. package/{dist/es → esm2015}/api/message.interface.js +1 -0
  36. package/{dist/es2015 → esm2015}/api/post-message-event.js +0 -0
  37. package/{dist/es2015 → esm2015}/api/preventable-event.js +0 -0
  38. package/{dist/es2015 → esm2015}/api/user.interface.js +1 -0
  39. package/esm2015/cards/hero-card.component.js +88 -0
  40. package/{dist/es2015 → esm2015}/chat/attachment-template.directive.js +14 -12
  41. package/esm2015/chat/attachment.component.js +83 -0
  42. package/{dist/es2015 → esm2015}/chat/builtin-actions.js +13 -16
  43. package/{dist/es2015 → esm2015}/chat/chat-item.js +0 -0
  44. package/{dist/es2015 → esm2015}/chat/chat-view.js +0 -6
  45. package/esm2015/chat/chat.component.js +226 -0
  46. package/{dist/es → esm2015}/chat/chat.directives.js +0 -0
  47. package/{dist/es2015 → esm2015}/chat/chat.module.js +40 -15
  48. package/esm2015/chat/l10n/custom-messages.component.js +42 -0
  49. package/esm2015/chat/l10n/localized-messages.directive.js +37 -0
  50. package/esm2015/chat/l10n/messages.js +24 -0
  51. package/{dist/es2015 → esm2015}/chat/message-attachments.component.js +71 -48
  52. package/esm2015/chat/message-list.component.js +279 -0
  53. package/{dist/es2015 → esm2015}/chat/message-template.directive.js +14 -12
  54. package/esm2015/chat/message.component.js +140 -0
  55. package/esm2015/chat/suggested-actions.component.js +111 -0
  56. package/esm2015/common/focused-state.directive.js +37 -0
  57. package/{dist/es2015 → esm2015}/common/keys.enum.js +1 -0
  58. package/{dist/es2015 → esm2015}/common/scroll-anchor.directive.js +20 -26
  59. package/{dist/es2015 → esm2015}/common/utils.js +0 -0
  60. package/{dist/es/api/action.interface.js → esm2015/kendo-angular-conversational-ui.js} +4 -1
  61. package/{dist/npm/chat/chat-item.js → esm2015/main.js} +5 -11
  62. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  63. package/fesm2015/kendo-angular-conversational-ui.js +1576 -0
  64. package/{dist/es2015/common/focused-state.directive.d.ts → kendo-angular-conversational-ui.d.ts} +3 -6
  65. package/main.d.ts +9 -0
  66. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  67. package/package.json +35 -102
  68. package/schematics/ngAdd/index.js +5 -2
  69. package/schematics/ngAdd/index.js.map +1 -1
  70. package/dist/cdn/js/kendo-angular-conversational-ui.js +0 -20
  71. package/dist/cdn/main.js +0 -5
  72. package/dist/es/api/execute-action-event.js +0 -24
  73. package/dist/es/api/post-message-event.js +0 -18
  74. package/dist/es/api/preventable-event.js +0 -32
  75. package/dist/es/cards/hero-card.component.js +0 -54
  76. package/dist/es/chat/attachment-template.directive.js +0 -32
  77. package/dist/es/chat/attachment.component.js +0 -65
  78. package/dist/es/chat/builtin-actions.js +0 -28
  79. package/dist/es/chat/chat-item.js +0 -13
  80. package/dist/es/chat/chat-view.js +0 -92
  81. package/dist/es/chat/chat.component.js +0 -193
  82. package/dist/es/chat/chat.module.js +0 -76
  83. package/dist/es/chat/l10n/custom-messages.component.js +0 -45
  84. package/dist/es/chat/l10n/localized-messages.directive.js +0 -36
  85. package/dist/es/chat/l10n/messages.js +0 -26
  86. package/dist/es/chat/message-attachments.component.js +0 -148
  87. package/dist/es/chat/message-list.component.js +0 -165
  88. package/dist/es/chat/message-template.directive.js +0 -32
  89. package/dist/es/chat/message.component.js +0 -77
  90. package/dist/es/chat/suggested-actions.component.js +0 -91
  91. package/dist/es/common/focused-state.directive.js +0 -43
  92. package/dist/es/common/keys.enum.js +0 -4
  93. package/dist/es/common/scroll-anchor.directive.js +0 -87
  94. package/dist/es/common/utils.js +0 -13
  95. package/dist/es/index.js +0 -21
  96. package/dist/es/main.js +0 -8
  97. package/dist/es/package-metadata.js +0 -15
  98. package/dist/es2015/api/message.interface.js +0 -4
  99. package/dist/es2015/cards/hero-card.component.js +0 -78
  100. package/dist/es2015/chat/attachment.component.js +0 -66
  101. package/dist/es2015/chat/chat.component.js +0 -230
  102. package/dist/es2015/chat/chat.directives.js +0 -7
  103. package/dist/es2015/chat/chat.module.d.ts +0 -27
  104. package/dist/es2015/chat/l10n/custom-messages.component.js +0 -37
  105. package/dist/es2015/chat/l10n/localized-messages.directive.js +0 -32
  106. package/dist/es2015/chat/l10n/messages.js +0 -20
  107. package/dist/es2015/chat/message-list.component.js +0 -227
  108. package/dist/es2015/chat/message.component.js +0 -107
  109. package/dist/es2015/chat/suggested-actions.component.js +0 -104
  110. package/dist/es2015/common/focused-state.directive.js +0 -45
  111. package/dist/es2015/index.d.ts +0 -21
  112. package/dist/es2015/index.js +0 -21
  113. package/dist/es2015/index.metadata.json +0 -1
  114. package/dist/es2015/main.d.ts +0 -12
  115. package/dist/es2015/main.js +0 -8
  116. package/dist/fesm2015/index.js +0 -1403
  117. package/dist/fesm5/index.js +0 -1253
  118. package/dist/npm/api/action.interface.js +0 -7
  119. package/dist/npm/api/attachment.interface.js +0 -6
  120. package/dist/npm/api/execute-action-event.js +0 -26
  121. package/dist/npm/api/message.interface.js +0 -6
  122. package/dist/npm/api/post-message-event.js +0 -20
  123. package/dist/npm/api/preventable-event.js +0 -34
  124. package/dist/npm/api/user.interface.js +0 -6
  125. package/dist/npm/cards/hero-card.component.js +0 -56
  126. package/dist/npm/chat/attachment-template.directive.js +0 -34
  127. package/dist/npm/chat/attachment.component.js +0 -67
  128. package/dist/npm/chat/builtin-actions.js +0 -33
  129. package/dist/npm/chat/chat-view.js +0 -98
  130. package/dist/npm/chat/chat.component.js +0 -195
  131. package/dist/npm/chat/chat.directives.js +0 -12
  132. package/dist/npm/chat/chat.module.js +0 -78
  133. package/dist/npm/chat/l10n/custom-messages.component.js +0 -47
  134. package/dist/npm/chat/l10n/localized-messages.directive.js +0 -38
  135. package/dist/npm/chat/l10n/messages.js +0 -28
  136. package/dist/npm/chat/message-attachments.component.js +0 -150
  137. package/dist/npm/chat/message-list.component.js +0 -167
  138. package/dist/npm/chat/message-template.directive.js +0 -34
  139. package/dist/npm/chat/message.component.js +0 -79
  140. package/dist/npm/chat/suggested-actions.component.js +0 -93
  141. package/dist/npm/common/focused-state.directive.js +0 -45
  142. package/dist/npm/common/keys.enum.js +0 -6
  143. package/dist/npm/common/scroll-anchor.directive.js +0 -89
  144. package/dist/npm/common/utils.js +0 -15
  145. package/dist/npm/index.js +0 -37
  146. package/dist/npm/main.js +0 -11
  147. package/dist/npm/package-metadata.js +0 -17
  148. package/dist/systemjs/kendo-angular-conversational-ui.js +0 -5
@@ -0,0 +1,140 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, forwardRef, HostBinding, Input } from '@angular/core';
6
+ import { ChatItem } from './chat-item';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-intl";
9
+ import * as i2 from "@angular/common";
10
+ // eslint-disable no-forward-ref
11
+ /**
12
+ * @hidden
13
+ */
14
+ export class MessageComponent extends ChatItem {
15
+ constructor(element, intl) {
16
+ super();
17
+ this.element = element;
18
+ this.intl = intl;
19
+ this.cssClass = true;
20
+ }
21
+ get tabIndex() {
22
+ return this.tabbable ? '0' : '-1';
23
+ }
24
+ formatTimeStamp(date) {
25
+ return this.intl.formatDate(date, { datetime: 'short' });
26
+ }
27
+ focus() {
28
+ this.element.nativeElement.focus();
29
+ }
30
+ }
31
+ MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
32
+ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MessageComponent, selector: "kendo-chat-message", inputs: { message: "message", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-message": "this.cssClass", "class.k-state-selected": "this.selected", "class.k-state-focused": "this.selected", "attr.tabIndex": "this.tabIndex" } }, providers: [{
33
+ provide: ChatItem,
34
+ useExisting: forwardRef(() => MessageComponent)
35
+ }], usesInheritance: true, ngImport: i0, template: `
36
+ <time
37
+ [attr.aria-hidden]="!selected"
38
+ class="k-message-time"
39
+ *ngIf="message.timestamp"
40
+ >
41
+ {{ formatTimeStamp(message.timestamp) }}
42
+ </time>
43
+
44
+ <ng-container *ngIf="!message.typing; else typing">
45
+ <div class="k-bubble" *ngIf="template">
46
+ <ng-container
47
+ *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
48
+ >
49
+ </ng-container>
50
+ </div>
51
+
52
+ <div class="k-bubble" *ngIf="!template && message.text">
53
+ {{message.text}}
54
+ </div>
55
+ </ng-container>
56
+
57
+ <span
58
+ class="k-message-status"
59
+ *ngIf="message.status"
60
+ >
61
+ {{ message.status }}
62
+ </span>
63
+
64
+ <ng-template #typing>
65
+ <div class="k-bubble">
66
+ <div class="k-typing-indicator">
67
+ <span></span>
68
+ <span></span>
69
+ <span></span>
70
+ </div>
71
+ </div>
72
+ </ng-template>
73
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageComponent, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ selector: 'kendo-chat-message',
78
+ providers: [{
79
+ provide: ChatItem,
80
+ useExisting: forwardRef(() => MessageComponent)
81
+ }],
82
+ template: `
83
+ <time
84
+ [attr.aria-hidden]="!selected"
85
+ class="k-message-time"
86
+ *ngIf="message.timestamp"
87
+ >
88
+ {{ formatTimeStamp(message.timestamp) }}
89
+ </time>
90
+
91
+ <ng-container *ngIf="!message.typing; else typing">
92
+ <div class="k-bubble" *ngIf="template">
93
+ <ng-container
94
+ *ngTemplateOutlet="template.templateRef; context: { $implicit: message };"
95
+ >
96
+ </ng-container>
97
+ </div>
98
+
99
+ <div class="k-bubble" *ngIf="!template && message.text">
100
+ {{message.text}}
101
+ </div>
102
+ </ng-container>
103
+
104
+ <span
105
+ class="k-message-status"
106
+ *ngIf="message.status"
107
+ >
108
+ {{ message.status }}
109
+ </span>
110
+
111
+ <ng-template #typing>
112
+ <div class="k-bubble">
113
+ <div class="k-typing-indicator">
114
+ <span></span>
115
+ <span></span>
116
+ <span></span>
117
+ </div>
118
+ </div>
119
+ </ng-template>
120
+ `
121
+ }]
122
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.IntlService }]; }, propDecorators: { message: [{
123
+ type: Input
124
+ }], tabbable: [{
125
+ type: Input
126
+ }], template: [{
127
+ type: Input
128
+ }], cssClass: [{
129
+ type: HostBinding,
130
+ args: ['class.k-message']
131
+ }], selected: [{
132
+ type: HostBinding,
133
+ args: ['class.k-state-selected']
134
+ }, {
135
+ type: HostBinding,
136
+ args: ['class.k-state-focused']
137
+ }], tabIndex: [{
138
+ type: HostBinding,
139
+ args: ['attr.tabIndex']
140
+ }] } });
@@ -0,0 +1,111 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, EventEmitter, forwardRef, HostBinding, Input, Output, ViewChildren } from '@angular/core';
6
+ import { ChatItem } from './chat-item';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common";
9
+ // eslint-disable no-forward-ref
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class SuggestedActionsComponent extends ChatItem {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.dispatch = new EventEmitter();
17
+ this.defaultClass = true;
18
+ this.selectedIndex = 0;
19
+ this.keyHandlers = {
20
+ [37 /* left */]: (e) => this.navigateTo(e, -1),
21
+ [39 /* right */]: (e) => this.navigateTo(e, 1),
22
+ [13 /* enter */]: (_, action) => this.actionClick(action)
23
+ };
24
+ }
25
+ isSelected(index) {
26
+ return this.selected && this.selectedIndex === index;
27
+ }
28
+ actionClick(action) {
29
+ this.dispatch.next(action);
30
+ }
31
+ actionKeydown(e, action) {
32
+ const handler = this.keyHandlers[e.keyCode];
33
+ if (handler) {
34
+ handler(e, action);
35
+ }
36
+ }
37
+ focus() {
38
+ this.select(this.selectedIndex);
39
+ }
40
+ select(index) {
41
+ this.selectedIndex = index;
42
+ const item = this.items.toArray()[index];
43
+ if (item) {
44
+ item.nativeElement.focus();
45
+ }
46
+ }
47
+ navigateTo(e, offset) {
48
+ const prevIndex = this.selectedIndex;
49
+ const nextIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
50
+ if (nextIndex !== prevIndex) {
51
+ this.select(nextIndex);
52
+ e.preventDefault();
53
+ }
54
+ }
55
+ }
56
+ SuggestedActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
57
+ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: { actions: "actions", tabbable: "tabbable" }, outputs: { dispatch: "dispatch" }, host: { properties: { "class.k-quick-replies": "this.defaultClass" } }, providers: [{
58
+ provide: ChatItem,
59
+ useExisting: forwardRef(() => SuggestedActionsComponent)
60
+ }], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
61
+ <span #item
62
+ *ngFor="let action of actions; index as index; first as first; last as last"
63
+ class="k-quick-reply"
64
+ [class.k-state-selected]="isSelected(index)"
65
+ [class.k-state-focused]="isSelected(index)"
66
+ [class.k-first]="first"
67
+ [class.k-last]="last"
68
+ [attr.tabindex]="tabbable && selectedIndex === index ? '0' : '-1'"
69
+ (click)="actionClick(action)"
70
+ (keydown)="actionKeydown($event, action)"
71
+ >
72
+ {{ action.title || action.value }}
73
+ </span>
74
+ `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
76
+ type: Component,
77
+ args: [{
78
+ selector: 'kendo-chat-suggested-actions',
79
+ providers: [{
80
+ provide: ChatItem,
81
+ useExisting: forwardRef(() => SuggestedActionsComponent)
82
+ }],
83
+ template: `
84
+ <span #item
85
+ *ngFor="let action of actions; index as index; first as first; last as last"
86
+ class="k-quick-reply"
87
+ [class.k-state-selected]="isSelected(index)"
88
+ [class.k-state-focused]="isSelected(index)"
89
+ [class.k-first]="first"
90
+ [class.k-last]="last"
91
+ [attr.tabindex]="tabbable && selectedIndex === index ? '0' : '-1'"
92
+ (click)="actionClick(action)"
93
+ (keydown)="actionKeydown($event, action)"
94
+ >
95
+ {{ action.title || action.value }}
96
+ </span>
97
+ `
98
+ }]
99
+ }], propDecorators: { actions: [{
100
+ type: Input
101
+ }], tabbable: [{
102
+ type: Input
103
+ }], dispatch: [{
104
+ type: Output
105
+ }], defaultClass: [{
106
+ type: HostBinding,
107
+ args: ['class.k-quick-replies']
108
+ }], items: [{
109
+ type: ViewChildren,
110
+ args: ['item']
111
+ }] } });
@@ -0,0 +1,37 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 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, HostListener, HostBinding } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export class FocusedStateDirective {
11
+ constructor() {
12
+ this.focused = false;
13
+ }
14
+ onFocus() {
15
+ this.focused = true;
16
+ }
17
+ onBlur() {
18
+ this.focused = false;
19
+ }
20
+ }
21
+ FocusedStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusedStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
22
+ FocusedStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FocusedStateDirective, selector: "[kendoChatFocusedState]", host: { listeners: { "focusin": "onFocus()", "focusout": "onBlur()" }, properties: { "class.k-state-focused": "this.focused" } }, ngImport: i0 });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusedStateDirective, decorators: [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[kendoChatFocusedState]'
27
+ }]
28
+ }], propDecorators: { focused: [{
29
+ type: HostBinding,
30
+ args: ['class.k-state-focused']
31
+ }], onFocus: [{
32
+ type: HostListener,
33
+ args: ['focusin']
34
+ }], onBlur: [{
35
+ type: HostListener,
36
+ args: ['focusout']
37
+ }] } });
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,14 +2,14 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Directive, ElementRef, EventEmitter, HostBinding, Input, NgZone, Output, Renderer2 } from '@angular/core';
5
+ import { Directive, EventEmitter, HostBinding, Input, Output } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
7
  // Consider scroll to be at the bottom when within this number of pixels from the container height.
8
8
  const maxDelta = 2;
9
9
  /**
10
10
  * @hidden
11
11
  */
12
- let ScrollAnchorDirective = class ScrollAnchorDirective {
12
+ export class ScrollAnchorDirective {
13
13
  constructor(element, zone, renderer) {
14
14
  this.element = element;
15
15
  this.zone = zone;
@@ -56,26 +56,20 @@ let ScrollAnchorDirective = class ScrollAnchorDirective {
56
56
  this.scrolling = true;
57
57
  this.zone.runOutsideAngular(() => setTimeout(() => this.scrolling = false, 1000));
58
58
  }
59
- };
60
- tslib_1.__decorate([
61
- Input(),
62
- tslib_1.__metadata("design:type", Boolean)
63
- ], ScrollAnchorDirective.prototype, "autoScroll", void 0);
64
- tslib_1.__decorate([
65
- Output(),
66
- tslib_1.__metadata("design:type", EventEmitter)
67
- ], ScrollAnchorDirective.prototype, "autoScrollChange", void 0);
68
- tslib_1.__decorate([
69
- HostBinding('style.overflow-anchor'),
70
- tslib_1.__metadata("design:type", String)
71
- ], ScrollAnchorDirective.prototype, "overflowAnchor", void 0);
72
- ScrollAnchorDirective = tslib_1.__decorate([
73
- Directive({
74
- selector: '[kendoChatScrollAnchor]',
75
- exportAs: 'scrollAnchor'
76
- }),
77
- tslib_1.__metadata("design:paramtypes", [ElementRef,
78
- NgZone,
79
- Renderer2])
80
- ], ScrollAnchorDirective);
81
- export { ScrollAnchorDirective };
59
+ }
60
+ ScrollAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
61
+ ScrollAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ScrollAnchorDirective, 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: "12.2.16", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
63
+ type: Directive,
64
+ args: [{
65
+ selector: '[kendoChatScrollAnchor]',
66
+ exportAs: 'scrollAnchor'
67
+ }]
68
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { autoScroll: [{
69
+ type: Input
70
+ }], autoScrollChange: [{
71
+ type: Output
72
+ }], overflowAnchor: [{
73
+ type: HostBinding,
74
+ args: ['style.overflow-anchor']
75
+ }] } });
File without changes
@@ -2,4 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- // tslint:disable:max-line-length
5
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ export * from './main';
@@ -2,14 +2,8 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * @hidden
9
- */
10
- var ChatItem = /** @class */ (function () {
11
- function ChatItem() {
12
- }
13
- return ChatItem;
14
- }());
15
- exports.ChatItem = ChatItem;
5
+ export { ChatComponent, AttachmentTemplateDirective, MessageTemplateDirective } from './chat/chat.directives';
6
+ export { ExecuteActionEvent, SendMessageEvent } from './api';
7
+ export { ChatModule } from './chat/chat.module';
8
+ export { HeroCardComponent } from './cards/hero-card.component';
9
+ export { CustomMessagesComponent } from './chat/l10n/custom-messages.component';
@@ -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: 1642091336,
12
+ publishDate: 1645715764,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };