@progress/kendo-angular-conversational-ui 4.1.0 → 5.0.0-dev.202204131603
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 +7 -7
- package/{dist/es2015/chat → chat}/chat.directives.d.ts +0 -0
- package/chat/chat.module.d.ts +49 -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-box.component.d.ts +4 -1
- package/{dist/es2015/chat → chat}/message-box.directive.d.ts +3 -0
- package/{dist/es2015/chat → chat}/message-list.component.d.ts +9 -8
- 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}/models/message-box-options.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 +90 -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 +246 -0
- package/{dist/es → esm2015}/chat/chat.directives.js +0 -0
- package/{dist/es2015 → esm2015}/chat/chat.module.js +43 -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 +25 -0
- package/{dist/es2015 → esm2015}/chat/message-attachments.component.js +71 -48
- package/esm2015/chat/message-box.component.js +141 -0
- package/esm2015/chat/message-box.directive.js +24 -0
- 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 +113 -0
- package/esm2015/common/focused-state.directive.js +37 -0
- package/{dist/es2015 → esm2015}/common/keys.enum.js +1 -0
- package/{dist/es → esm2015}/common/models/message-box-options.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/esm2015/main.js +10 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-conversational-ui.js +1757 -0
- package/{dist/es2015/common/focused-state.directive.d.ts → kendo-angular-conversational-ui.d.ts} +3 -6
- package/main.d.ts +11 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +38 -107
- 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 -190
- package/dist/es/chat/chat.module.js +0 -80
- 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-box.component.js +0 -124
- package/dist/es/chat/message-box.directive.js +0 -24
- 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 -22
- 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 -79
- package/dist/es2015/chat/attachment.component.js +0 -66
- package/dist/es2015/chat/chat.component.js +0 -214
- package/dist/es2015/chat/chat.directives.js +0 -8
- 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-box.component.js +0 -157
- package/dist/es2015/chat/message-box.directive.js +0 -23
- 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 -105
- package/dist/es2015/common/focused-state.directive.js +0 -45
- package/dist/es2015/common/models/message-box-options.js +0 -4
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.d.ts +0 -13
- package/dist/es2015/main.js +0 -8
- package/dist/fesm2015/index.js +0 -1554
- package/dist/fesm5/index.js +0 -1383
- 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-item.js +0 -15
- package/dist/npm/chat/chat-view.js +0 -98
- package/dist/npm/chat/chat.component.js +0 -192
- package/dist/npm/chat/chat.directives.js +0 -14
- package/dist/npm/chat/chat.module.js +0 -82
- 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-box.component.js +0 -126
- package/dist/npm/chat/message-box.directive.js +0 -26
- 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/models/message-box-options.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 -39
- 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
|
@@ -1,91 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, EventEmitter, forwardRef, HostBinding, Input, Output, QueryList, ViewChildren } from '@angular/core';
|
|
7
|
-
import { ChatItem } from './chat-item';
|
|
8
|
-
// tslint:disable:no-forward-ref
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var SuggestedActionsComponent = /** @class */ (function (_super) {
|
|
13
|
-
tslib_1.__extends(SuggestedActionsComponent, _super);
|
|
14
|
-
function SuggestedActionsComponent() {
|
|
15
|
-
var _a;
|
|
16
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
-
_this.dispatch = new EventEmitter();
|
|
18
|
-
_this.defaultClass = true;
|
|
19
|
-
_this.selectedIndex = 0;
|
|
20
|
-
_this.keyHandlers = (_a = {},
|
|
21
|
-
_a[37 /* left */] = function (e) { return _this.navigateTo(e, -1); },
|
|
22
|
-
_a[39 /* right */] = function (e) { return _this.navigateTo(e, 1); },
|
|
23
|
-
_a[13 /* enter */] = function (_, action) { return _this.actionClick(action); },
|
|
24
|
-
_a);
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
SuggestedActionsComponent_1 = SuggestedActionsComponent;
|
|
28
|
-
SuggestedActionsComponent.prototype.isSelected = function (index) {
|
|
29
|
-
return this.selected && this.selectedIndex === index;
|
|
30
|
-
};
|
|
31
|
-
SuggestedActionsComponent.prototype.actionClick = function (action) {
|
|
32
|
-
this.dispatch.next(action);
|
|
33
|
-
};
|
|
34
|
-
SuggestedActionsComponent.prototype.actionKeydown = function (e, action) {
|
|
35
|
-
var handler = this.keyHandlers[e.keyCode];
|
|
36
|
-
if (handler) {
|
|
37
|
-
handler(e, action);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
SuggestedActionsComponent.prototype.focus = function () {
|
|
41
|
-
this.select(this.selectedIndex);
|
|
42
|
-
};
|
|
43
|
-
SuggestedActionsComponent.prototype.select = function (index) {
|
|
44
|
-
this.selectedIndex = index;
|
|
45
|
-
var item = this.items.toArray()[index];
|
|
46
|
-
if (item) {
|
|
47
|
-
item.nativeElement.focus();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
SuggestedActionsComponent.prototype.navigateTo = function (e, offset) {
|
|
51
|
-
var prevIndex = this.selectedIndex;
|
|
52
|
-
var nextIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
|
|
53
|
-
if (nextIndex !== prevIndex) {
|
|
54
|
-
this.select(nextIndex);
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
var SuggestedActionsComponent_1;
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
Input(),
|
|
61
|
-
tslib_1.__metadata("design:type", Array)
|
|
62
|
-
], SuggestedActionsComponent.prototype, "actions", void 0);
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
Input(),
|
|
65
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
66
|
-
], SuggestedActionsComponent.prototype, "tabbable", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
Output(),
|
|
69
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
70
|
-
], SuggestedActionsComponent.prototype, "dispatch", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
HostBinding('class.k-quick-replies'),
|
|
73
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
74
|
-
], SuggestedActionsComponent.prototype, "defaultClass", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
ViewChildren('item'),
|
|
77
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
78
|
-
], SuggestedActionsComponent.prototype, "items", void 0);
|
|
79
|
-
SuggestedActionsComponent = SuggestedActionsComponent_1 = tslib_1.__decorate([
|
|
80
|
-
Component({
|
|
81
|
-
selector: 'kendo-chat-suggested-actions',
|
|
82
|
-
providers: [{
|
|
83
|
-
provide: ChatItem,
|
|
84
|
-
useExisting: forwardRef(function () { return SuggestedActionsComponent_1; })
|
|
85
|
-
}],
|
|
86
|
-
template: "\n <span\n #item\n *ngFor=\"let action of actions; index as index; first as first; last as last\"\n class=\"k-quick-reply\"\n [class.k-state-selected]=\"isSelected(index)\"\n [class.k-state-focused]=\"isSelected(index)\"\n [class.k-first]=\"first\"\n [class.k-last]=\"last\"\n [attr.tabindex]=\"tabbable && selectedIndex === index ? '0' : '-1'\"\n (click)=\"actionClick(action)\"\n (keydown)=\"actionKeydown($event, action)\"\n >\n {{ action.title || action.value }}\n </span>\n "
|
|
87
|
-
})
|
|
88
|
-
], SuggestedActionsComponent);
|
|
89
|
-
return SuggestedActionsComponent;
|
|
90
|
-
}(ChatItem));
|
|
91
|
-
export { SuggestedActionsComponent };
|
|
@@ -1,43 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, HostListener, HostBinding } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var FocusedStateDirective = /** @class */ (function () {
|
|
11
|
-
function FocusedStateDirective() {
|
|
12
|
-
this.focused = false;
|
|
13
|
-
}
|
|
14
|
-
FocusedStateDirective.prototype.onFocus = function () {
|
|
15
|
-
this.focused = true;
|
|
16
|
-
};
|
|
17
|
-
FocusedStateDirective.prototype.onBlur = function () {
|
|
18
|
-
this.focused = false;
|
|
19
|
-
};
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
HostBinding('class.k-focus'),
|
|
22
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
23
|
-
], FocusedStateDirective.prototype, "focused", void 0);
|
|
24
|
-
tslib_1.__decorate([
|
|
25
|
-
HostListener('focusin'),
|
|
26
|
-
tslib_1.__metadata("design:type", Function),
|
|
27
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
28
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
29
|
-
], FocusedStateDirective.prototype, "onFocus", null);
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
HostListener('focusout'),
|
|
32
|
-
tslib_1.__metadata("design:type", Function),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
34
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
35
|
-
], FocusedStateDirective.prototype, "onBlur", null);
|
|
36
|
-
FocusedStateDirective = tslib_1.__decorate([
|
|
37
|
-
Directive({
|
|
38
|
-
selector: '[kendoChatFocusedState]'
|
|
39
|
-
})
|
|
40
|
-
], FocusedStateDirective);
|
|
41
|
-
return FocusedStateDirective;
|
|
42
|
-
}());
|
|
43
|
-
export { FocusedStateDirective };
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,87 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef, EventEmitter, HostBinding, Input, NgZone, Output, Renderer2 } from '@angular/core';
|
|
7
|
-
// Consider scroll to be at the bottom when within this number of pixels from the container height.
|
|
8
|
-
var maxDelta = 2;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var ScrollAnchorDirective = /** @class */ (function () {
|
|
13
|
-
function ScrollAnchorDirective(element, zone, renderer) {
|
|
14
|
-
this.element = element;
|
|
15
|
-
this.zone = zone;
|
|
16
|
-
this.renderer = renderer;
|
|
17
|
-
this.autoScroll = true;
|
|
18
|
-
this.autoScrollChange = new EventEmitter();
|
|
19
|
-
this.overflowAnchor = 'none';
|
|
20
|
-
this.scrolling = false;
|
|
21
|
-
}
|
|
22
|
-
ScrollAnchorDirective.prototype.ngOnInit = function () {
|
|
23
|
-
var _this = this;
|
|
24
|
-
this.zone.runOutsideAngular(function () {
|
|
25
|
-
_this.unsubscribe = _this.renderer.listen(_this.element.nativeElement, 'scroll', function () { return _this.onScroll(); });
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
ScrollAnchorDirective.prototype.ngAfterViewInit = function () {
|
|
29
|
-
this.scrollToBottom();
|
|
30
|
-
};
|
|
31
|
-
ScrollAnchorDirective.prototype.ngOnDestroy = function () {
|
|
32
|
-
if (this.unsubscribe) {
|
|
33
|
-
this.unsubscribe();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
ScrollAnchorDirective.prototype.onScroll = function () {
|
|
37
|
-
var _this = this;
|
|
38
|
-
if (this.scrolling) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
var el = this.element.nativeElement;
|
|
42
|
-
var bottom = el.scrollTop + el.offsetHeight;
|
|
43
|
-
var height = el.scrollHeight;
|
|
44
|
-
var atBottom = height - bottom < maxDelta;
|
|
45
|
-
if (this.autoScroll !== atBottom) {
|
|
46
|
-
this.zone.run(function () {
|
|
47
|
-
_this.autoScroll = atBottom;
|
|
48
|
-
_this.autoScrollChange.emit(_this.autoScroll);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
ScrollAnchorDirective.prototype.scrollToBottom = function () {
|
|
53
|
-
var _this = this;
|
|
54
|
-
if (!this.autoScroll) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
var el = this.element.nativeElement;
|
|
58
|
-
el.scrollTop = el.scrollHeight - el.clientHeight;
|
|
59
|
-
this.scrolling = true;
|
|
60
|
-
this.zone.runOutsideAngular(function () {
|
|
61
|
-
return setTimeout(function () { return _this.scrolling = false; }, 1000);
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
Input(),
|
|
66
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
67
|
-
], ScrollAnchorDirective.prototype, "autoScroll", void 0);
|
|
68
|
-
tslib_1.__decorate([
|
|
69
|
-
Output(),
|
|
70
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
71
|
-
], ScrollAnchorDirective.prototype, "autoScrollChange", void 0);
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
HostBinding('style.overflow-anchor'),
|
|
74
|
-
tslib_1.__metadata("design:type", String)
|
|
75
|
-
], ScrollAnchorDirective.prototype, "overflowAnchor", void 0);
|
|
76
|
-
ScrollAnchorDirective = tslib_1.__decorate([
|
|
77
|
-
Directive({
|
|
78
|
-
selector: '[kendoChatScrollAnchor]',
|
|
79
|
-
exportAs: 'scrollAnchor'
|
|
80
|
-
}),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
82
|
-
NgZone,
|
|
83
|
-
Renderer2])
|
|
84
|
-
], ScrollAnchorDirective);
|
|
85
|
-
return ScrollAnchorDirective;
|
|
86
|
-
}());
|
|
87
|
-
export { ScrollAnchorDirective };
|
package/dist/es/common/utils.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var closest = function (node, predicate) {
|
|
9
|
-
while (node && !predicate(node)) {
|
|
10
|
-
node = node.parentNode;
|
|
11
|
-
}
|
|
12
|
-
return node;
|
|
13
|
-
};
|
package/dist/es/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { PreventableEvent } from './api/preventable-event';
|
|
10
|
-
export { HeroCardComponent } from './cards/hero-card.component';
|
|
11
|
-
export { AttachmentComponent } from './chat/attachment.component';
|
|
12
|
-
export { ChatItem } from './chat/chat-item';
|
|
13
|
-
export { CustomMessagesComponent } from './chat/l10n/custom-messages.component';
|
|
14
|
-
export { LocalizedMessagesDirective } from './chat/l10n/localized-messages.directive';
|
|
15
|
-
export { Messages } from './chat/l10n/messages';
|
|
16
|
-
export { MessageAttachmentsComponent } from './chat/message-attachments.component';
|
|
17
|
-
export { MessageBoxComponent } from './chat/message-box.component';
|
|
18
|
-
export { MessageListComponent } from './chat/message-list.component';
|
|
19
|
-
export { MessageComponent } from './chat/message.component';
|
|
20
|
-
export { SuggestedActionsComponent } from './chat/suggested-actions.component';
|
|
21
|
-
export { FocusedStateDirective } from './common/focused-state.directive';
|
|
22
|
-
export { ScrollAnchorDirective } from './common/scroll-anchor.directive';
|
package/dist/es/main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
export * from './chat/chat.directives';
|
|
6
|
-
export * from './chat/chat.module';
|
|
7
|
-
export * from './api/execute-action-event';
|
|
8
|
-
export * from './api/post-message-event';
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var packageMetadata = {
|
|
9
|
-
name: '@progress/kendo-angular-conversational-ui',
|
|
10
|
-
productName: 'Kendo UI for Angular',
|
|
11
|
-
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate: 1649323827,
|
|
13
|
-
version: '',
|
|
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
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,79 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a Hero Card component ([see example]({% slug dialogflow_chat %})).
|
|
9
|
-
* Hero cards host a single large image and action buttons with text content.
|
|
10
|
-
*/
|
|
11
|
-
let HeroCardComponent = class HeroCardComponent {
|
|
12
|
-
/**
|
|
13
|
-
* Represents a Hero Card component ([see example]({% slug dialogflow_chat %})).
|
|
14
|
-
* Hero cards host a single large image and action buttons with text content.
|
|
15
|
-
*/
|
|
16
|
-
constructor() {
|
|
17
|
-
this.cssClass = true;
|
|
18
|
-
/**
|
|
19
|
-
* Fires when the user clicks a button.
|
|
20
|
-
*/
|
|
21
|
-
this.executeAction = new EventEmitter();
|
|
22
|
-
}
|
|
23
|
-
onClick(action) {
|
|
24
|
-
this.executeAction.next(action);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
Input(),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], HeroCardComponent.prototype, "imageUrl", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
Input(),
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], HeroCardComponent.prototype, "title", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
Input(),
|
|
37
|
-
tslib_1.__metadata("design:type", String)
|
|
38
|
-
], HeroCardComponent.prototype, "subtitle", void 0);
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
Input(),
|
|
41
|
-
tslib_1.__metadata("design:type", Array)
|
|
42
|
-
], HeroCardComponent.prototype, "actions", void 0);
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
HostBinding('class.k-card'),
|
|
45
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
46
|
-
], HeroCardComponent.prototype, "cssClass", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
Output(),
|
|
49
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
50
|
-
], HeroCardComponent.prototype, "executeAction", void 0);
|
|
51
|
-
HeroCardComponent = tslib_1.__decorate([
|
|
52
|
-
Component({
|
|
53
|
-
selector: 'kendo-chat-hero-card',
|
|
54
|
-
template: `
|
|
55
|
-
<img class="k-card-image" [src]="imageUrl" *ngIf="imageUrl" />
|
|
56
|
-
<div class="k-card-body">
|
|
57
|
-
<h5 class="k-card-title" *ngIf="title">
|
|
58
|
-
{{ title }}
|
|
59
|
-
</h5>
|
|
60
|
-
<h6 class="k-card-subtitle" *ngIf="subtitle">
|
|
61
|
-
{{ subtitle }}
|
|
62
|
-
</h6>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="k-card-actions k-card-actions-vertical">
|
|
65
|
-
<span class="k-card-action"
|
|
66
|
-
*ngFor="let act of actions"
|
|
67
|
-
>
|
|
68
|
-
<button
|
|
69
|
-
kendoButton fillMode="flat"
|
|
70
|
-
(click)="onClick(act)"
|
|
71
|
-
>
|
|
72
|
-
{{ act.title }}
|
|
73
|
-
</button>
|
|
74
|
-
</span>
|
|
75
|
-
</div>
|
|
76
|
-
`
|
|
77
|
-
})
|
|
78
|
-
], HeroCardComponent);
|
|
79
|
-
export { HeroCardComponent };
|
|
@@ -1,66 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { AttachmentTemplateDirective } from './chat.directives';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
let AttachmentComponent = class AttachmentComponent {
|
|
12
|
-
set attachment(value) {
|
|
13
|
-
this._attachment = value;
|
|
14
|
-
this.context = {
|
|
15
|
-
$implicit: this.attachment
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
get attachment() {
|
|
19
|
-
return this._attachment;
|
|
20
|
-
}
|
|
21
|
-
get image() {
|
|
22
|
-
return this.contentType.indexOf('image/') === 0;
|
|
23
|
-
}
|
|
24
|
-
get unknown() {
|
|
25
|
-
return !this.image;
|
|
26
|
-
}
|
|
27
|
-
get contentType() {
|
|
28
|
-
return this.attachment.contentType || '';
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
Input(),
|
|
33
|
-
tslib_1.__metadata("design:type", Object),
|
|
34
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
35
|
-
], AttachmentComponent.prototype, "attachment", null);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
Input(),
|
|
38
|
-
tslib_1.__metadata("design:type", AttachmentTemplateDirective)
|
|
39
|
-
], AttachmentComponent.prototype, "template", void 0);
|
|
40
|
-
AttachmentComponent = tslib_1.__decorate([
|
|
41
|
-
Component({
|
|
42
|
-
selector: 'kendo-chat-attachment',
|
|
43
|
-
template: `
|
|
44
|
-
<ng-container *ngIf="template">
|
|
45
|
-
<ng-container *ngTemplateOutlet="template.templateRef; context: context;">
|
|
46
|
-
</ng-container>
|
|
47
|
-
</ng-container>
|
|
48
|
-
|
|
49
|
-
<div *ngIf="!template" class="k-card">
|
|
50
|
-
<div class="k-card-body">
|
|
51
|
-
<h5 class="k-card-title" *ngIf="attachment.title">
|
|
52
|
-
{{ attachment.title }}
|
|
53
|
-
</h5>
|
|
54
|
-
<h6 class="k-card-subtitle" *ngIf="attachment.subtitle">
|
|
55
|
-
{{ attachment.subtitle }}
|
|
56
|
-
</h6>
|
|
57
|
-
<img *ngIf="image" [attr.src]="attachment.content" />
|
|
58
|
-
<ng-container *ngIf="unknown">
|
|
59
|
-
{{ attachment.content }}
|
|
60
|
-
</ng-container>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
`
|
|
64
|
-
})
|
|
65
|
-
], AttachmentComponent);
|
|
66
|
-
export { AttachmentComponent };
|
|
@@ -1,214 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, isDevMode, Output, ViewChild, NgZone } from '@angular/core';
|
|
7
|
-
import { AttachmentTemplateDirective } from './attachment-template.directive';
|
|
8
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { makeHandler } from './builtin-actions';
|
|
10
|
-
import { MessageTemplateDirective } from './message-template.directive';
|
|
11
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
|
-
import { packageMetadata } from '../package-metadata';
|
|
13
|
-
import { ChatMessageBoxTemplateDirective } from './message-box.directive';
|
|
14
|
-
import { MessageBoxComponent } from './message-box.component';
|
|
15
|
-
/**
|
|
16
|
-
* Represents the Kendo UI Chat component for Angular.
|
|
17
|
-
*
|
|
18
|
-
* {% meta height:700 %}
|
|
19
|
-
* {% embed_file echo/app.component.ts preview %}
|
|
20
|
-
* {% embed_file shared/app.module.ts %}
|
|
21
|
-
* {% embed_file shared/main.ts hidden %}
|
|
22
|
-
* {% endmeta %}
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
let ChatComponent = class ChatComponent {
|
|
26
|
-
constructor(localization, zone) {
|
|
27
|
-
this.localization = localization;
|
|
28
|
-
this.zone = zone;
|
|
29
|
-
/**
|
|
30
|
-
* Used to switch between a one-liner input or a textarea.
|
|
31
|
-
* ([see example]({% slug message_box %})#toc-message-box-types).
|
|
32
|
-
* @default input
|
|
33
|
-
*/
|
|
34
|
-
this.messageBoxType = 'textbox';
|
|
35
|
-
/**
|
|
36
|
-
* Fires when the user types a message and clicks the **Send** button or presses **Enter**.
|
|
37
|
-
* Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
|
|
38
|
-
*
|
|
39
|
-
* > The message is not automatically appended to the `messages` array.
|
|
40
|
-
*/
|
|
41
|
-
this.sendMessage = new EventEmitter();
|
|
42
|
-
/**
|
|
43
|
-
* Fires when the user clicks a quick action button.
|
|
44
|
-
* The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}).
|
|
45
|
-
*
|
|
46
|
-
* Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_executeactionevent %}).
|
|
47
|
-
* The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
|
|
48
|
-
*/
|
|
49
|
-
this.executeAction = new EventEmitter();
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
this.autoScroll = true;
|
|
54
|
-
validatePackage(packageMetadata);
|
|
55
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
56
|
-
this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
|
|
57
|
-
this.direction = rtl ? 'rtl' : 'ltr';
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
get className() {
|
|
61
|
-
return 'k-chat';
|
|
62
|
-
}
|
|
63
|
-
get dirAttr() {
|
|
64
|
-
return this.direction;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
get localizationText() {
|
|
70
|
-
return this.localization;
|
|
71
|
-
}
|
|
72
|
-
ngOnChanges() {
|
|
73
|
-
this.zone.runOutsideAngular(() => setTimeout(() => {
|
|
74
|
-
this.messageList.nativeElement.style.flex = '1 1 auto';
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
ngAfterViewInit() {
|
|
78
|
-
if (!isDevMode()) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (!this.user) {
|
|
82
|
-
throw new Error('User must be set and have a valid id.');
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
ngOnDestroy() {
|
|
86
|
-
if (this.localizationChangeSubscription) {
|
|
87
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
dispatchAction(e) {
|
|
94
|
-
this.executeAction.emit(e);
|
|
95
|
-
if (!e.isDefaultPrevented()) {
|
|
96
|
-
const handler = makeHandler(e.action);
|
|
97
|
-
handler(e.action, this);
|
|
98
|
-
if (!this.messageBoxTemplate) {
|
|
99
|
-
this.messageBox.messageBoxInput.nativeElement.focus();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*/
|
|
106
|
-
textFor(key) {
|
|
107
|
-
return this.localization.get(key);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
Input(),
|
|
112
|
-
tslib_1.__metadata("design:type", Array)
|
|
113
|
-
], ChatComponent.prototype, "messages", void 0);
|
|
114
|
-
tslib_1.__decorate([
|
|
115
|
-
Input(),
|
|
116
|
-
tslib_1.__metadata("design:type", Object)
|
|
117
|
-
], ChatComponent.prototype, "user", void 0);
|
|
118
|
-
tslib_1.__decorate([
|
|
119
|
-
Input(),
|
|
120
|
-
tslib_1.__metadata("design:type", String)
|
|
121
|
-
], ChatComponent.prototype, "messageBoxType", void 0);
|
|
122
|
-
tslib_1.__decorate([
|
|
123
|
-
Output(),
|
|
124
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
125
|
-
], ChatComponent.prototype, "sendMessage", void 0);
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
Output(),
|
|
128
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
129
|
-
], ChatComponent.prototype, "executeAction", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
HostBinding('class'),
|
|
132
|
-
tslib_1.__metadata("design:type", String),
|
|
133
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
134
|
-
], ChatComponent.prototype, "className", null);
|
|
135
|
-
tslib_1.__decorate([
|
|
136
|
-
HostBinding('attr.dir'),
|
|
137
|
-
tslib_1.__metadata("design:type", String),
|
|
138
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
139
|
-
], ChatComponent.prototype, "dirAttr", null);
|
|
140
|
-
tslib_1.__decorate([
|
|
141
|
-
ContentChild(AttachmentTemplateDirective, { static: false }),
|
|
142
|
-
tslib_1.__metadata("design:type", AttachmentTemplateDirective)
|
|
143
|
-
], ChatComponent.prototype, "attachmentTemplate", void 0);
|
|
144
|
-
tslib_1.__decorate([
|
|
145
|
-
ContentChild(MessageTemplateDirective, { static: false }),
|
|
146
|
-
tslib_1.__metadata("design:type", MessageTemplateDirective)
|
|
147
|
-
], ChatComponent.prototype, "messageTemplate", void 0);
|
|
148
|
-
tslib_1.__decorate([
|
|
149
|
-
ContentChild(ChatMessageBoxTemplateDirective, { static: false }),
|
|
150
|
-
tslib_1.__metadata("design:type", ChatMessageBoxTemplateDirective)
|
|
151
|
-
], ChatComponent.prototype, "messageBoxTemplate", void 0);
|
|
152
|
-
tslib_1.__decorate([
|
|
153
|
-
ViewChild('messageBox', { static: false }),
|
|
154
|
-
tslib_1.__metadata("design:type", MessageBoxComponent)
|
|
155
|
-
], ChatComponent.prototype, "messageBox", void 0);
|
|
156
|
-
tslib_1.__decorate([
|
|
157
|
-
ViewChild('messageList', { static: true }),
|
|
158
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
159
|
-
], ChatComponent.prototype, "messageList", void 0);
|
|
160
|
-
ChatComponent = tslib_1.__decorate([
|
|
161
|
-
Component({
|
|
162
|
-
providers: [
|
|
163
|
-
LocalizationService,
|
|
164
|
-
{
|
|
165
|
-
provide: L10N_PREFIX,
|
|
166
|
-
useValue: 'kendo.chat'
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
selector: 'kendo-chat',
|
|
170
|
-
template: `
|
|
171
|
-
<ng-container
|
|
172
|
-
kendoChatLocalizedMessages
|
|
173
|
-
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
174
|
-
messagePlaceholder="Type a message..."
|
|
175
|
-
|
|
176
|
-
i18n-send="kendo.chat.send|The text for the Send button"
|
|
177
|
-
send="Send..."
|
|
178
|
-
>
|
|
179
|
-
</ng-container>
|
|
180
|
-
|
|
181
|
-
<div
|
|
182
|
-
#messageList
|
|
183
|
-
class="k-message-list k-avatars"
|
|
184
|
-
aria-live="polite" role="log"
|
|
185
|
-
kendoChatScrollAnchor
|
|
186
|
-
#anchor="scrollAnchor"
|
|
187
|
-
[(autoScroll)]="autoScroll"
|
|
188
|
-
>
|
|
189
|
-
<kendo-chat-message-list
|
|
190
|
-
[messages]="messages"
|
|
191
|
-
[messageTemplate]="messageTemplate"
|
|
192
|
-
[attachmentTemplate]="attachmentTemplate"
|
|
193
|
-
[user]="user"
|
|
194
|
-
(executeAction)="dispatchAction($event)"
|
|
195
|
-
(resize)="anchor.scrollToBottom()"
|
|
196
|
-
(navigate)="this.autoScroll = false"
|
|
197
|
-
>
|
|
198
|
-
</kendo-chat-message-list>
|
|
199
|
-
</div>
|
|
200
|
-
<kendo-message-box
|
|
201
|
-
#messageBox
|
|
202
|
-
[messageBoxTemplate]="messageBoxTemplate"
|
|
203
|
-
[type]="messageBoxType"
|
|
204
|
-
[user]="user"
|
|
205
|
-
[autoScroll]="autoScroll"
|
|
206
|
-
[localization]="localizationText"
|
|
207
|
-
(sendMessage)="sendMessage.emit($event)"
|
|
208
|
-
>
|
|
209
|
-
</kendo-message-box>
|
|
210
|
-
`
|
|
211
|
-
}),
|
|
212
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService, NgZone])
|
|
213
|
-
], ChatComponent);
|
|
214
|
-
export { ChatComponent };
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
export { ChatComponent } from './chat.component';
|
|
6
|
-
export { AttachmentTemplateDirective } from './attachment-template.directive';
|
|
7
|
-
export { MessageTemplateDirective } from './message-template.directive';
|
|
8
|
-
export { ChatMessageBoxTemplateDirective } from './message-box.directive';
|