@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,7 +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
|
-
"use strict";
|
|
6
|
-
// tslint:disable:max-line-length
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,26 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var preventable_event_1 = require("./preventable-event");
|
|
9
|
-
/**
|
|
10
|
-
* Arguments for the `executeAction` event. The `executeAction` event fires when the user clicks
|
|
11
|
-
* a quick action button. Calling `preventDefault()` suppresses the built-in action handler.
|
|
12
|
-
*/
|
|
13
|
-
var ExecuteActionEvent = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(ExecuteActionEvent, _super);
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
function ExecuteActionEvent(action, message) {
|
|
19
|
-
var _this = _super.call(this) || this;
|
|
20
|
-
_this.action = action;
|
|
21
|
-
_this.message = message;
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
return ExecuteActionEvent;
|
|
25
|
-
}(preventable_event_1.PreventableEvent));
|
|
26
|
-
exports.ExecuteActionEvent = ExecuteActionEvent;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,20 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `SendMessage` event.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
var SendMessageEvent = /** @class */ (function () {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
function SendMessageEvent(message) {
|
|
16
|
-
this.message = message;
|
|
17
|
-
}
|
|
18
|
-
return SendMessageEvent;
|
|
19
|
-
}());
|
|
20
|
-
exports.SendMessageEvent = SendMessageEvent;
|
|
@@ -1,34 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var PreventableEvent = /** @class */ (function () {
|
|
11
|
-
function PreventableEvent() {
|
|
12
|
-
this.prevented = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Prevents the default action for a specified event.
|
|
16
|
-
* In this way, the source component suppresses
|
|
17
|
-
* the built-in behavior that follows the event.
|
|
18
|
-
*/
|
|
19
|
-
PreventableEvent.prototype.preventDefault = function () {
|
|
20
|
-
this.prevented = true;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Returns `true` if the event was prevented
|
|
24
|
-
* by any of its subscribers.
|
|
25
|
-
*
|
|
26
|
-
* @returns `true` if the default action was prevented.
|
|
27
|
-
* Otherwise, returns `false`.
|
|
28
|
-
*/
|
|
29
|
-
PreventableEvent.prototype.isDefaultPrevented = function () {
|
|
30
|
-
return this.prevented;
|
|
31
|
-
};
|
|
32
|
-
return PreventableEvent;
|
|
33
|
-
}());
|
|
34
|
-
exports.PreventableEvent = PreventableEvent;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,56 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
/**
|
|
10
|
-
* Represents a Hero Card component ([see example]({% slug dialogflow_chat %})).
|
|
11
|
-
* Hero cards host a single large image and action buttons with text content.
|
|
12
|
-
*/
|
|
13
|
-
var HeroCardComponent = /** @class */ (function () {
|
|
14
|
-
function HeroCardComponent() {
|
|
15
|
-
this.cssClass = true;
|
|
16
|
-
/**
|
|
17
|
-
* Fires when the user clicks a button.
|
|
18
|
-
*/
|
|
19
|
-
this.executeAction = new core_1.EventEmitter();
|
|
20
|
-
}
|
|
21
|
-
HeroCardComponent.prototype.onClick = function (action) {
|
|
22
|
-
this.executeAction.next(action);
|
|
23
|
-
};
|
|
24
|
-
tslib_1.__decorate([
|
|
25
|
-
core_1.Input(),
|
|
26
|
-
tslib_1.__metadata("design:type", String)
|
|
27
|
-
], HeroCardComponent.prototype, "imageUrl", void 0);
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
core_1.Input(),
|
|
30
|
-
tslib_1.__metadata("design:type", String)
|
|
31
|
-
], HeroCardComponent.prototype, "title", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
core_1.Input(),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], HeroCardComponent.prototype, "subtitle", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
core_1.Input(),
|
|
38
|
-
tslib_1.__metadata("design:type", Array)
|
|
39
|
-
], HeroCardComponent.prototype, "actions", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
core_1.HostBinding('class.k-card'),
|
|
42
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
43
|
-
], HeroCardComponent.prototype, "cssClass", void 0);
|
|
44
|
-
tslib_1.__decorate([
|
|
45
|
-
core_1.Output(),
|
|
46
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
47
|
-
], HeroCardComponent.prototype, "executeAction", void 0);
|
|
48
|
-
HeroCardComponent = tslib_1.__decorate([
|
|
49
|
-
core_1.Component({
|
|
50
|
-
selector: 'kendo-chat-hero-card',
|
|
51
|
-
template: "\n <img class=\"k-card-image\" [src]=\"imageUrl\" *ngIf=\"imageUrl\" />\n <div class=\"k-card-body\">\n <h5 class=\"k-card-title\" *ngIf=\"title\">\n {{ title }}\n </h5>\n <h6 class=\"k-card-subtitle\" *ngIf=\"subtitle\">\n {{ subtitle }}\n </h6>\n </div>\n <div class=\"k-card-actions k-card-actions-vertical\">\n <span class=\"k-card-action\"\n *ngFor=\"let act of actions\"\n >\n <button\n kendoButton fillMode=\"flat\"\n (click)=\"onClick(act)\"\n >\n {{ act.title }}\n </button>\n </span>\n </div>\n "
|
|
52
|
-
})
|
|
53
|
-
], HeroCardComponent);
|
|
54
|
-
return HeroCardComponent;
|
|
55
|
-
}());
|
|
56
|
-
exports.HeroCardComponent = HeroCardComponent;
|
|
@@ -1,34 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
/**
|
|
10
|
-
* Defines a template that will be used for displaying message attachments. To define an attachment
|
|
11
|
-
* template, nest an `<ng-template>` tag with the `kendoChatAttachmentTemplate` attribute inside the
|
|
12
|
-
* `<kendo-chat>` component. The template context is set to the attachment instance. For more information,
|
|
13
|
-
* refer to the article on [message attachments]({% slug attachments_chat %}).
|
|
14
|
-
*
|
|
15
|
-
* {% meta height:700 %}
|
|
16
|
-
* {% embed_file attachments/templates/app.component.ts preview %}
|
|
17
|
-
* {% embed_file shared/app.module.ts preview %}
|
|
18
|
-
* {% embed_file shared/main.ts hidden %}
|
|
19
|
-
* {% endmeta %}
|
|
20
|
-
*/
|
|
21
|
-
var AttachmentTemplateDirective = /** @class */ (function () {
|
|
22
|
-
function AttachmentTemplateDirective(templateRef) {
|
|
23
|
-
this.templateRef = templateRef;
|
|
24
|
-
}
|
|
25
|
-
AttachmentTemplateDirective = tslib_1.__decorate([
|
|
26
|
-
core_1.Directive({
|
|
27
|
-
selector: '[kendoChatAttachmentTemplate]'
|
|
28
|
-
}),
|
|
29
|
-
tslib_1.__param(0, core_1.Optional()),
|
|
30
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
31
|
-
], AttachmentTemplateDirective);
|
|
32
|
-
return AttachmentTemplateDirective;
|
|
33
|
-
}());
|
|
34
|
-
exports.AttachmentTemplateDirective = AttachmentTemplateDirective;
|
|
@@ -1,67 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var chat_directives_1 = require("./chat.directives");
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var AttachmentComponent = /** @class */ (function () {
|
|
14
|
-
function AttachmentComponent() {
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(AttachmentComponent.prototype, "attachment", {
|
|
17
|
-
get: function () {
|
|
18
|
-
return this._attachment;
|
|
19
|
-
},
|
|
20
|
-
set: function (value) {
|
|
21
|
-
this._attachment = value;
|
|
22
|
-
this.context = {
|
|
23
|
-
$implicit: this.attachment
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(AttachmentComponent.prototype, "image", {
|
|
30
|
-
get: function () {
|
|
31
|
-
return this.contentType.indexOf('image/') === 0;
|
|
32
|
-
},
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(AttachmentComponent.prototype, "unknown", {
|
|
37
|
-
get: function () {
|
|
38
|
-
return !this.image;
|
|
39
|
-
},
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(AttachmentComponent.prototype, "contentType", {
|
|
44
|
-
get: function () {
|
|
45
|
-
return this.attachment.contentType || '';
|
|
46
|
-
},
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true
|
|
49
|
-
});
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
core_1.Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", Object),
|
|
53
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
54
|
-
], AttachmentComponent.prototype, "attachment", null);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
core_1.Input(),
|
|
57
|
-
tslib_1.__metadata("design:type", chat_directives_1.AttachmentTemplateDirective)
|
|
58
|
-
], AttachmentComponent.prototype, "template", void 0);
|
|
59
|
-
AttachmentComponent = tslib_1.__decorate([
|
|
60
|
-
core_1.Component({
|
|
61
|
-
selector: 'kendo-chat-attachment',
|
|
62
|
-
template: "\n <ng-container *ngIf=\"template\">\n <ng-container *ngTemplateOutlet=\"template.templateRef; context: context;\">\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"!template\" class=\"k-card\">\n <div class=\"k-card-body\">\n <h5 class=\"k-card-title\" *ngIf=\"attachment.title\">\n {{ attachment.title }}\n </h5>\n <h6 class=\"k-card-subtitle\" *ngIf=\"attachment.subtitle\">\n {{ attachment.subtitle }}\n </h6>\n <img *ngIf=\"image\" [attr.src]=\"attachment.content\" />\n <ng-container *ngIf=\"unknown\">\n {{ attachment.content }}\n </ng-container>\n </div>\n </div>\n "
|
|
63
|
-
})
|
|
64
|
-
], AttachmentComponent);
|
|
65
|
-
return AttachmentComponent;
|
|
66
|
-
}());
|
|
67
|
-
exports.AttachmentComponent = AttachmentComponent;
|
|
@@ -1,33 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var post_message_event_1 = require("../api/post-message-event");
|
|
8
|
-
var noop = function () { };
|
|
9
|
-
var ɵ0 = noop;
|
|
10
|
-
exports.ɵ0 = ɵ0;
|
|
11
|
-
var ɵ1 = function (action, sender) {
|
|
12
|
-
sender.sendMessage.emit(new post_message_event_1.SendMessageEvent({
|
|
13
|
-
author: sender.user,
|
|
14
|
-
text: action.value,
|
|
15
|
-
timestamp: new Date()
|
|
16
|
-
}));
|
|
17
|
-
}, ɵ2 = function (action) {
|
|
18
|
-
window.open('tel:' + action.value);
|
|
19
|
-
}, ɵ3 = function (action) {
|
|
20
|
-
window.open(action.value);
|
|
21
|
-
};
|
|
22
|
-
exports.ɵ1 = ɵ1;
|
|
23
|
-
exports.ɵ2 = ɵ2;
|
|
24
|
-
exports.ɵ3 = ɵ3;
|
|
25
|
-
var handlers = {
|
|
26
|
-
'reply': ɵ1,
|
|
27
|
-
'call': ɵ2,
|
|
28
|
-
'openUrl': ɵ3
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
exports.makeHandler = function (action) { return handlers[action.type] || noop; };
|
|
@@ -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
|
-
"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;
|
|
@@ -1,98 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var core_1 = require("@angular/core");
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
exports.isAuthor = function (user, msg) {
|
|
12
|
-
return user && msg.author && user.id === msg.author.id;
|
|
13
|
-
};
|
|
14
|
-
var last = function (arr) { return arr[arr.length - 1]; };
|
|
15
|
-
var ɵ0 = last;
|
|
16
|
-
exports.ɵ0 = ɵ0;
|
|
17
|
-
var dateChanged = function (curr, prev) {
|
|
18
|
-
return (curr && prev) && (prev.getDate() !== curr.getDate() ||
|
|
19
|
-
prev.getMonth() !== curr.getMonth() ||
|
|
20
|
-
prev.getFullYear() !== curr.getFullYear());
|
|
21
|
-
};
|
|
22
|
-
var ɵ1 = dateChanged;
|
|
23
|
-
exports.ɵ1 = ɵ1;
|
|
24
|
-
var addDateMarker = function (acc, msg) {
|
|
25
|
-
var timestamp = msg.timestamp;
|
|
26
|
-
var lastItem = last(acc);
|
|
27
|
-
if (!timestamp) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (!lastItem || dateChanged(timestamp, lastItem.timestamp)) {
|
|
31
|
-
var dateMarker = {
|
|
32
|
-
type: 'date-marker',
|
|
33
|
-
timestamp: timestamp,
|
|
34
|
-
trackBy: timestamp.getTime()
|
|
35
|
-
};
|
|
36
|
-
acc.push(dateMarker);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var ɵ2 = addDateMarker;
|
|
40
|
-
exports.ɵ2 = ɵ2;
|
|
41
|
-
var groupMessages = function (acc, msg, isLastMessage) {
|
|
42
|
-
var lastItem = last(acc);
|
|
43
|
-
var messages;
|
|
44
|
-
if (core_1.isDevMode() && !msg.author) {
|
|
45
|
-
throw new Error('Author must be set for message: ' + JSON.stringify(msg));
|
|
46
|
-
}
|
|
47
|
-
if (msg.typing && !isLastMessage) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (lastItem && lastItem.type === 'message-group') {
|
|
51
|
-
messages = lastItem.messages;
|
|
52
|
-
}
|
|
53
|
-
if (messages && exports.isAuthor(msg.author, last(messages))) {
|
|
54
|
-
messages.push(msg);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
acc.push({
|
|
58
|
-
type: 'message-group',
|
|
59
|
-
messages: [msg],
|
|
60
|
-
author: msg.author,
|
|
61
|
-
timestamp: msg.timestamp,
|
|
62
|
-
trackBy: msg
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var ɵ3 = groupMessages;
|
|
67
|
-
exports.ɵ3 = ɵ3;
|
|
68
|
-
var groupItems = function (total) { return function (acc, msg, index) {
|
|
69
|
-
var isLastMessage = index === total - 1;
|
|
70
|
-
addDateMarker(acc, msg);
|
|
71
|
-
groupMessages(acc, msg, isLastMessage);
|
|
72
|
-
if (msg.attachments && msg.attachments.length > 1) {
|
|
73
|
-
acc.push({
|
|
74
|
-
type: 'attachment-group',
|
|
75
|
-
attachments: msg.attachments,
|
|
76
|
-
attachmentLayout: msg.attachmentLayout,
|
|
77
|
-
timestamp: msg.timestamp,
|
|
78
|
-
trackBy: msg
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
if (msg.suggestedActions && isLastMessage) {
|
|
82
|
-
acc.push({
|
|
83
|
-
type: 'action-group',
|
|
84
|
-
actions: msg.suggestedActions,
|
|
85
|
-
timestamp: msg.timestamp,
|
|
86
|
-
trackBy: msg
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return acc;
|
|
90
|
-
}; };
|
|
91
|
-
var ɵ4 = groupItems;
|
|
92
|
-
exports.ɵ4 = ɵ4;
|
|
93
|
-
/**
|
|
94
|
-
* @hidden
|
|
95
|
-
*/
|
|
96
|
-
exports.chatView = function (messages) {
|
|
97
|
-
return messages.reduce(groupItems(messages.length), []);
|
|
98
|
-
};
|
|
@@ -1,192 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var attachment_template_directive_1 = require("./attachment-template.directive");
|
|
10
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
11
|
-
var builtin_actions_1 = require("./builtin-actions");
|
|
12
|
-
var message_template_directive_1 = require("./message-template.directive");
|
|
13
|
-
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
14
|
-
var package_metadata_1 = require("../package-metadata");
|
|
15
|
-
var message_box_directive_1 = require("./message-box.directive");
|
|
16
|
-
var message_box_component_1 = require("./message-box.component");
|
|
17
|
-
/**
|
|
18
|
-
* Represents the Kendo UI Chat component for Angular.
|
|
19
|
-
*
|
|
20
|
-
* {% meta height:700 %}
|
|
21
|
-
* {% embed_file echo/app.component.ts preview %}
|
|
22
|
-
* {% embed_file shared/app.module.ts %}
|
|
23
|
-
* {% embed_file shared/main.ts hidden %}
|
|
24
|
-
* {% endmeta %}
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
var ChatComponent = /** @class */ (function () {
|
|
28
|
-
function ChatComponent(localization, zone) {
|
|
29
|
-
var _this = this;
|
|
30
|
-
this.localization = localization;
|
|
31
|
-
this.zone = zone;
|
|
32
|
-
/**
|
|
33
|
-
* Used to switch between a one-liner input or a textarea.
|
|
34
|
-
* ([see example]({% slug message_box %})#toc-message-box-types).
|
|
35
|
-
* @default input
|
|
36
|
-
*/
|
|
37
|
-
this.messageBoxType = 'textbox';
|
|
38
|
-
/**
|
|
39
|
-
* Fires when the user types a message and clicks the **Send** button or presses **Enter**.
|
|
40
|
-
* Emits the [`SendMessageEvent`]({% slug api_conversational-ui_sendmessageevent %}).
|
|
41
|
-
*
|
|
42
|
-
* > The message is not automatically appended to the `messages` array.
|
|
43
|
-
*/
|
|
44
|
-
this.sendMessage = new core_1.EventEmitter();
|
|
45
|
-
/**
|
|
46
|
-
* Fires when the user clicks a quick action button.
|
|
47
|
-
* The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}).
|
|
48
|
-
*
|
|
49
|
-
* Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_executeactionevent %}).
|
|
50
|
-
* The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
|
|
51
|
-
*/
|
|
52
|
-
this.executeAction = new core_1.EventEmitter();
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
this.autoScroll = true;
|
|
57
|
-
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
58
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
59
|
-
this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
|
|
60
|
-
var rtl = _a.rtl;
|
|
61
|
-
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
Object.defineProperty(ChatComponent.prototype, "className", {
|
|
65
|
-
get: function () {
|
|
66
|
-
return 'k-chat';
|
|
67
|
-
},
|
|
68
|
-
enumerable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(ChatComponent.prototype, "dirAttr", {
|
|
72
|
-
get: function () {
|
|
73
|
-
return this.direction;
|
|
74
|
-
},
|
|
75
|
-
enumerable: true,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(ChatComponent.prototype, "localizationText", {
|
|
79
|
-
/**
|
|
80
|
-
* @hidden
|
|
81
|
-
*/
|
|
82
|
-
get: function () {
|
|
83
|
-
return this.localization;
|
|
84
|
-
},
|
|
85
|
-
enumerable: true,
|
|
86
|
-
configurable: true
|
|
87
|
-
});
|
|
88
|
-
ChatComponent.prototype.ngOnChanges = function () {
|
|
89
|
-
var _this = this;
|
|
90
|
-
this.zone.runOutsideAngular(function () { return setTimeout(function () {
|
|
91
|
-
_this.messageList.nativeElement.style.flex = '1 1 auto';
|
|
92
|
-
}); });
|
|
93
|
-
};
|
|
94
|
-
ChatComponent.prototype.ngAfterViewInit = function () {
|
|
95
|
-
if (!core_1.isDevMode()) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
if (!this.user) {
|
|
99
|
-
throw new Error('User must be set and have a valid id.');
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
ChatComponent.prototype.ngOnDestroy = function () {
|
|
103
|
-
if (this.localizationChangeSubscription) {
|
|
104
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* @hidden
|
|
109
|
-
*/
|
|
110
|
-
ChatComponent.prototype.dispatchAction = function (e) {
|
|
111
|
-
this.executeAction.emit(e);
|
|
112
|
-
if (!e.isDefaultPrevented()) {
|
|
113
|
-
var handler = builtin_actions_1.makeHandler(e.action);
|
|
114
|
-
handler(e.action, this);
|
|
115
|
-
if (!this.messageBoxTemplate) {
|
|
116
|
-
this.messageBox.messageBoxInput.nativeElement.focus();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
ChatComponent.prototype.textFor = function (key) {
|
|
124
|
-
return this.localization.get(key);
|
|
125
|
-
};
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
core_1.Input(),
|
|
128
|
-
tslib_1.__metadata("design:type", Array)
|
|
129
|
-
], ChatComponent.prototype, "messages", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
core_1.Input(),
|
|
132
|
-
tslib_1.__metadata("design:type", Object)
|
|
133
|
-
], ChatComponent.prototype, "user", void 0);
|
|
134
|
-
tslib_1.__decorate([
|
|
135
|
-
core_1.Input(),
|
|
136
|
-
tslib_1.__metadata("design:type", String)
|
|
137
|
-
], ChatComponent.prototype, "messageBoxType", void 0);
|
|
138
|
-
tslib_1.__decorate([
|
|
139
|
-
core_1.Output(),
|
|
140
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
141
|
-
], ChatComponent.prototype, "sendMessage", void 0);
|
|
142
|
-
tslib_1.__decorate([
|
|
143
|
-
core_1.Output(),
|
|
144
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
145
|
-
], ChatComponent.prototype, "executeAction", void 0);
|
|
146
|
-
tslib_1.__decorate([
|
|
147
|
-
core_1.HostBinding('class'),
|
|
148
|
-
tslib_1.__metadata("design:type", String),
|
|
149
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
150
|
-
], ChatComponent.prototype, "className", null);
|
|
151
|
-
tslib_1.__decorate([
|
|
152
|
-
core_1.HostBinding('attr.dir'),
|
|
153
|
-
tslib_1.__metadata("design:type", String),
|
|
154
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
155
|
-
], ChatComponent.prototype, "dirAttr", null);
|
|
156
|
-
tslib_1.__decorate([
|
|
157
|
-
core_1.ContentChild(attachment_template_directive_1.AttachmentTemplateDirective, { static: false }),
|
|
158
|
-
tslib_1.__metadata("design:type", attachment_template_directive_1.AttachmentTemplateDirective)
|
|
159
|
-
], ChatComponent.prototype, "attachmentTemplate", void 0);
|
|
160
|
-
tslib_1.__decorate([
|
|
161
|
-
core_1.ContentChild(message_template_directive_1.MessageTemplateDirective, { static: false }),
|
|
162
|
-
tslib_1.__metadata("design:type", message_template_directive_1.MessageTemplateDirective)
|
|
163
|
-
], ChatComponent.prototype, "messageTemplate", void 0);
|
|
164
|
-
tslib_1.__decorate([
|
|
165
|
-
core_1.ContentChild(message_box_directive_1.ChatMessageBoxTemplateDirective, { static: false }),
|
|
166
|
-
tslib_1.__metadata("design:type", message_box_directive_1.ChatMessageBoxTemplateDirective)
|
|
167
|
-
], ChatComponent.prototype, "messageBoxTemplate", void 0);
|
|
168
|
-
tslib_1.__decorate([
|
|
169
|
-
core_1.ViewChild('messageBox', { static: false }),
|
|
170
|
-
tslib_1.__metadata("design:type", message_box_component_1.MessageBoxComponent)
|
|
171
|
-
], ChatComponent.prototype, "messageBox", void 0);
|
|
172
|
-
tslib_1.__decorate([
|
|
173
|
-
core_1.ViewChild('messageList', { static: true }),
|
|
174
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
175
|
-
], ChatComponent.prototype, "messageList", void 0);
|
|
176
|
-
ChatComponent = tslib_1.__decorate([
|
|
177
|
-
core_1.Component({
|
|
178
|
-
providers: [
|
|
179
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
180
|
-
{
|
|
181
|
-
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
182
|
-
useValue: 'kendo.chat'
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
selector: 'kendo-chat',
|
|
186
|
-
template: "\n <ng-container\n kendoChatLocalizedMessages\n i18n-messagePlaceholder=\"kendo.chat.messagePlaceholder|The placholder text of the message text input\"\n messagePlaceholder=\"Type a message...\"\n\n i18n-send=\"kendo.chat.send|The text for the Send button\"\n send=\"Send...\"\n >\n </ng-container>\n\n <div\n #messageList\n class=\"k-message-list k-avatars\"\n aria-live=\"polite\" role=\"log\"\n kendoChatScrollAnchor\n #anchor=\"scrollAnchor\"\n [(autoScroll)]=\"autoScroll\"\n >\n <kendo-chat-message-list\n [messages]=\"messages\"\n [messageTemplate]=\"messageTemplate\"\n [attachmentTemplate]=\"attachmentTemplate\"\n [user]=\"user\"\n (executeAction)=\"dispatchAction($event)\"\n (resize)=\"anchor.scrollToBottom()\"\n (navigate)=\"this.autoScroll = false\"\n >\n </kendo-chat-message-list>\n </div>\n <kendo-message-box\n #messageBox\n [messageBoxTemplate]=\"messageBoxTemplate\"\n [type]=\"messageBoxType\"\n [user]=\"user\"\n [autoScroll]=\"autoScroll\"\n [localization]=\"localizationText\"\n (sendMessage)=\"sendMessage.emit($event)\"\n >\n </kendo-message-box>\n "
|
|
187
|
-
}),
|
|
188
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService, core_1.NgZone])
|
|
189
|
-
], ChatComponent);
|
|
190
|
-
return ChatComponent;
|
|
191
|
-
}());
|
|
192
|
-
exports.ChatComponent = ChatComponent;
|
|
@@ -1,14 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var chat_component_1 = require("./chat.component");
|
|
8
|
-
exports.ChatComponent = chat_component_1.ChatComponent;
|
|
9
|
-
var attachment_template_directive_1 = require("./attachment-template.directive");
|
|
10
|
-
exports.AttachmentTemplateDirective = attachment_template_directive_1.AttachmentTemplateDirective;
|
|
11
|
-
var message_template_directive_1 = require("./message-template.directive");
|
|
12
|
-
exports.MessageTemplateDirective = message_template_directive_1.MessageTemplateDirective;
|
|
13
|
-
var message_box_directive_1 = require("./message-box.directive");
|
|
14
|
-
exports.ChatMessageBoxTemplateDirective = message_box_directive_1.ChatMessageBoxTemplateDirective;
|