@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.
- package/{dist/es2015/api → api}/action.interface.d.ts +0 -0
- package/{dist/es2015/api → api}/attachment.interface.d.ts +0 -0
- package/{dist/es2015/api → api}/execute-action-event.d.ts +1 -1
- package/{dist/es/api/user.interface.js → api/index.d.ts} +6 -0
- package/{dist/es2015/api → api}/message.interface.d.ts +0 -0
- package/{dist/es2015/api → api}/post-message-event.d.ts +0 -0
- package/{dist/es2015/api → api}/preventable-event.d.ts +0 -0
- package/{dist/es2015/api → api}/user.interface.d.ts +0 -0
- package/bundles/kendo-angular-conversational-ui.umd.js +5 -0
- package/{dist/es2015/cards → cards}/hero-card.component.d.ts +3 -0
- package/{dist/es2015/chat → chat}/attachment-template.directive.d.ts +3 -0
- package/{dist/es2015/chat → chat}/attachment.component.d.ts +9 -5
- package/{dist/es2015/chat → chat}/builtin-actions.d.ts +0 -0
- package/{dist/es2015/chat → chat}/chat-item.d.ts +0 -0
- package/{dist/es2015/chat → chat}/chat-view.d.ts +1 -1
- package/{dist/es2015/chat → chat}/chat.component.d.ts +6 -6
- package/{dist/es2015/chat → chat}/chat.directives.d.ts +0 -0
- package/chat/chat.module.d.ts +47 -0
- package/{dist/es2015/chat → chat}/l10n/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/chat → chat}/l10n/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/chat → chat}/l10n/messages.d.ts +3 -0
- package/{dist/es2015/chat → chat}/message-attachments.component.d.ts +5 -2
- package/{dist/es2015/chat → chat}/message-list.component.d.ts +8 -7
- package/{dist/es2015/chat → chat}/message-template.directive.d.ts +3 -0
- package/{dist/es2015/chat → chat}/message.component.d.ts +4 -1
- package/{dist/es2015/chat → chat}/suggested-actions.component.d.ts +4 -1
- package/common/focused-state.directive.d.ts +15 -0
- package/{dist/es2015/common → common}/keys.enum.d.ts +0 -0
- package/{dist/es2015/common → common}/scroll-anchor.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/utils.d.ts +0 -0
- package/{dist/es2015 → esm2015}/api/action.interface.js +2 -1
- package/{dist/es2015 → esm2015}/api/attachment.interface.js +1 -0
- package/{dist/es2015 → esm2015}/api/execute-action-event.js +0 -0
- package/{dist/es/api/attachment.interface.js → esm2015/api/index.js} +6 -0
- package/{dist/es → esm2015}/api/message.interface.js +1 -0
- package/{dist/es2015 → esm2015}/api/post-message-event.js +0 -0
- package/{dist/es2015 → esm2015}/api/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/api/user.interface.js +1 -0
- package/esm2015/cards/hero-card.component.js +88 -0
- package/{dist/es2015 → esm2015}/chat/attachment-template.directive.js +14 -12
- package/esm2015/chat/attachment.component.js +83 -0
- package/{dist/es2015 → esm2015}/chat/builtin-actions.js +13 -16
- package/{dist/es2015 → esm2015}/chat/chat-item.js +0 -0
- package/{dist/es2015 → esm2015}/chat/chat-view.js +0 -6
- package/esm2015/chat/chat.component.js +226 -0
- package/{dist/es → esm2015}/chat/chat.directives.js +0 -0
- package/{dist/es2015 → esm2015}/chat/chat.module.js +40 -15
- package/esm2015/chat/l10n/custom-messages.component.js +42 -0
- package/esm2015/chat/l10n/localized-messages.directive.js +37 -0
- package/esm2015/chat/l10n/messages.js +24 -0
- package/{dist/es2015 → esm2015}/chat/message-attachments.component.js +71 -48
- package/esm2015/chat/message-list.component.js +279 -0
- package/{dist/es2015 → esm2015}/chat/message-template.directive.js +14 -12
- package/esm2015/chat/message.component.js +140 -0
- package/esm2015/chat/suggested-actions.component.js +111 -0
- package/esm2015/common/focused-state.directive.js +37 -0
- package/{dist/es2015 → esm2015}/common/keys.enum.js +1 -0
- package/{dist/es2015 → esm2015}/common/scroll-anchor.directive.js +20 -26
- package/{dist/es2015 → esm2015}/common/utils.js +0 -0
- package/{dist/es/api/action.interface.js → esm2015/kendo-angular-conversational-ui.js} +4 -1
- package/{dist/npm/chat/chat-item.js → esm2015/main.js} +5 -11
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-conversational-ui.js +1576 -0
- package/{dist/es2015/common/focused-state.directive.d.ts → kendo-angular-conversational-ui.d.ts} +3 -6
- package/main.d.ts +9 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +35 -102
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-conversational-ui.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/api/execute-action-event.js +0 -24
- package/dist/es/api/post-message-event.js +0 -18
- package/dist/es/api/preventable-event.js +0 -32
- package/dist/es/cards/hero-card.component.js +0 -54
- package/dist/es/chat/attachment-template.directive.js +0 -32
- package/dist/es/chat/attachment.component.js +0 -65
- package/dist/es/chat/builtin-actions.js +0 -28
- package/dist/es/chat/chat-item.js +0 -13
- package/dist/es/chat/chat-view.js +0 -92
- package/dist/es/chat/chat.component.js +0 -193
- package/dist/es/chat/chat.module.js +0 -76
- package/dist/es/chat/l10n/custom-messages.component.js +0 -45
- package/dist/es/chat/l10n/localized-messages.directive.js +0 -36
- package/dist/es/chat/l10n/messages.js +0 -26
- package/dist/es/chat/message-attachments.component.js +0 -148
- package/dist/es/chat/message-list.component.js +0 -165
- package/dist/es/chat/message-template.directive.js +0 -32
- package/dist/es/chat/message.component.js +0 -77
- package/dist/es/chat/suggested-actions.component.js +0 -91
- package/dist/es/common/focused-state.directive.js +0 -43
- package/dist/es/common/keys.enum.js +0 -4
- package/dist/es/common/scroll-anchor.directive.js +0 -87
- package/dist/es/common/utils.js +0 -13
- package/dist/es/index.js +0 -21
- package/dist/es/main.js +0 -8
- package/dist/es/package-metadata.js +0 -15
- package/dist/es2015/api/message.interface.js +0 -4
- package/dist/es2015/cards/hero-card.component.js +0 -78
- package/dist/es2015/chat/attachment.component.js +0 -66
- package/dist/es2015/chat/chat.component.js +0 -230
- package/dist/es2015/chat/chat.directives.js +0 -7
- package/dist/es2015/chat/chat.module.d.ts +0 -27
- package/dist/es2015/chat/l10n/custom-messages.component.js +0 -37
- package/dist/es2015/chat/l10n/localized-messages.directive.js +0 -32
- package/dist/es2015/chat/l10n/messages.js +0 -20
- package/dist/es2015/chat/message-list.component.js +0 -227
- package/dist/es2015/chat/message.component.js +0 -107
- package/dist/es2015/chat/suggested-actions.component.js +0 -104
- package/dist/es2015/common/focused-state.directive.js +0 -45
- package/dist/es2015/index.d.ts +0 -21
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.d.ts +0 -12
- package/dist/es2015/main.js +0 -8
- package/dist/fesm2015/index.js +0 -1403
- package/dist/fesm5/index.js +0 -1253
- package/dist/npm/api/action.interface.js +0 -7
- package/dist/npm/api/attachment.interface.js +0 -6
- package/dist/npm/api/execute-action-event.js +0 -26
- package/dist/npm/api/message.interface.js +0 -6
- package/dist/npm/api/post-message-event.js +0 -20
- package/dist/npm/api/preventable-event.js +0 -34
- package/dist/npm/api/user.interface.js +0 -6
- package/dist/npm/cards/hero-card.component.js +0 -56
- package/dist/npm/chat/attachment-template.directive.js +0 -34
- package/dist/npm/chat/attachment.component.js +0 -67
- package/dist/npm/chat/builtin-actions.js +0 -33
- package/dist/npm/chat/chat-view.js +0 -98
- package/dist/npm/chat/chat.component.js +0 -195
- package/dist/npm/chat/chat.directives.js +0 -12
- package/dist/npm/chat/chat.module.js +0 -78
- package/dist/npm/chat/l10n/custom-messages.component.js +0 -47
- package/dist/npm/chat/l10n/localized-messages.directive.js +0 -38
- package/dist/npm/chat/l10n/messages.js +0 -28
- package/dist/npm/chat/message-attachments.component.js +0 -150
- package/dist/npm/chat/message-list.component.js +0 -167
- package/dist/npm/chat/message-template.directive.js +0 -34
- package/dist/npm/chat/message.component.js +0 -79
- package/dist/npm/chat/suggested-actions.component.js +0 -93
- package/dist/npm/common/focused-state.directive.js +0 -45
- package/dist/npm/common/keys.enum.js +0 -6
- package/dist/npm/common/scroll-anchor.directive.js +0 -89
- package/dist/npm/common/utils.js +0 -15
- package/dist/npm/index.js +0 -37
- package/dist/npm/main.js +0 -11
- package/dist/npm/package-metadata.js +0 -17
- 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
|
|
6
|
-
import
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
]
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
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
|
};
|