@progress/kendo-angular-conversational-ui 11.2.0-develop.9 → 11.3.0-develop.1
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/chat/l10n/messages.d.ts +10 -1
- package/chat/message-list.component.d.ts +9 -3
- package/chat/suggested-actions.component.d.ts +1 -2
- package/esm2020/cards/hero-card.component.mjs +3 -3
- package/esm2020/chat/attachment-template.directive.mjs +3 -3
- package/esm2020/chat/attachment.component.mjs +3 -3
- package/esm2020/chat/chat.component.mjs +47 -31
- package/esm2020/chat/chat.module.mjs +4 -4
- package/esm2020/chat/l10n/custom-messages.component.mjs +3 -3
- package/esm2020/chat/l10n/localized-messages.directive.mjs +3 -3
- package/esm2020/chat/l10n/messages.mjs +7 -3
- package/esm2020/chat/message-attachments.component.mjs +8 -7
- package/esm2020/chat/message-box.component.mjs +14 -10
- package/esm2020/chat/message-box.directive.mjs +3 -3
- package/esm2020/chat/message-list.component.mjs +51 -14
- package/esm2020/chat/message-template.directive.mjs +3 -3
- package/esm2020/chat/message.component.mjs +3 -3
- package/esm2020/chat/suggested-actions.component.mjs +17 -25
- package/esm2020/common/focused-state.directive.mjs +3 -3
- package/esm2020/common/scroll-anchor.directive.mjs +3 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-conversational-ui.mjs +257 -211
- package/fesm2020/progress-kendo-angular-conversational-ui.mjs +254 -208
- package/package.json +7 -7
- package/common/keys.enum.d.ts +0 -14
- package/esm2020/common/keys.enum.mjs +0 -5
|
@@ -21,9 +21,9 @@ export class MessageTemplateDirective {
|
|
|
21
21
|
this.templateRef = templateRef;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
MessageTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
25
|
-
MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
24
|
+
MessageTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
MessageTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: MessageTemplateDirective, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageTemplateDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: '[kendoChatMessageTemplate]'
|
|
@@ -30,8 +30,8 @@ export class MessageComponent extends ChatItem {
|
|
|
30
30
|
this.element.nativeElement.focus();
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
34
|
-
MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
33
|
+
MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageComponent, selector: "kendo-chat-message", inputs: { message: "message", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-message": "this.cssClass", "class.k-selected": "this.selected", "class.k-focus": "this.selected", "attr.tabIndex": "this.tabIndex" } }, providers: [{
|
|
35
35
|
provide: ChatItem,
|
|
36
36
|
useExisting: forwardRef(() => MessageComponent)
|
|
37
37
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -73,7 +73,7 @@ MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
73
73
|
</div>
|
|
74
74
|
</ng-template>
|
|
75
75
|
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
78
78
|
args: [{
|
|
79
79
|
selector: 'kendo-chat-message',
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
5
7
|
import { Component, EventEmitter, forwardRef, HostBinding, Input, Output, QueryList, ViewChildren } from '@angular/core';
|
|
8
|
+
import { Keys } from '@progress/kendo-angular-common';
|
|
6
9
|
import { ChatItem } from './chat-item';
|
|
7
10
|
import * as i0 from "@angular/core";
|
|
8
11
|
import * as i1 from "@angular/common";
|
|
9
|
-
// eslint-disable no-forward-ref
|
|
10
12
|
/**
|
|
11
13
|
* @hidden
|
|
12
14
|
*/
|
|
@@ -17,9 +19,9 @@ export class SuggestedActionsComponent extends ChatItem {
|
|
|
17
19
|
this.defaultClass = true;
|
|
18
20
|
this.selectedIndex = 0;
|
|
19
21
|
this.keyHandlers = {
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
22
|
+
[Keys.Tab]: (e) => this.changeSelectedIndex(e),
|
|
23
|
+
[Keys.Enter]: (_, action) => this.actionClick(action),
|
|
24
|
+
[Keys.Space]: (_, action) => this.actionClick(action),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
isSelected(index) {
|
|
@@ -34,27 +36,15 @@ export class SuggestedActionsComponent extends ChatItem {
|
|
|
34
36
|
handler(e, action);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
|
-
focus() {
|
|
38
|
-
|
|
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) {
|
|
39
|
+
focus() { }
|
|
40
|
+
changeSelectedIndex(e) {
|
|
41
|
+
const offset = e.shiftKey ? -1 : 1;
|
|
48
42
|
const prevIndex = this.selectedIndex;
|
|
49
|
-
|
|
50
|
-
if (nextIndex !== prevIndex) {
|
|
51
|
-
this.select(nextIndex);
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
}
|
|
43
|
+
this.selectedIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
|
|
54
44
|
}
|
|
55
45
|
}
|
|
56
|
-
SuggestedActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
57
|
-
SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
46
|
+
SuggestedActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SuggestedActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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
48
|
provide: ChatItem,
|
|
59
49
|
useExisting: forwardRef(() => SuggestedActionsComponent)
|
|
60
50
|
}], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -62,18 +52,19 @@ SuggestedActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
62
52
|
#item
|
|
63
53
|
*ngFor="let action of actions; index as index; first as first; last as last"
|
|
64
54
|
class="k-quick-reply"
|
|
55
|
+
role="button"
|
|
65
56
|
[class.k-selected]="isSelected(index)"
|
|
66
57
|
[class.k-focus]="isSelected(index)"
|
|
67
58
|
[class.k-first]="first"
|
|
68
59
|
[class.k-last]="last"
|
|
69
|
-
[attr.tabindex]="
|
|
60
|
+
[attr.tabindex]="0"
|
|
70
61
|
(click)="actionClick(action)"
|
|
71
62
|
(keydown)="actionKeydown($event, action)"
|
|
72
63
|
>
|
|
73
64
|
{{ action.title || action.value }}
|
|
74
65
|
</span>
|
|
75
66
|
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
|
|
77
68
|
type: Component,
|
|
78
69
|
args: [{
|
|
79
70
|
selector: 'kendo-chat-suggested-actions',
|
|
@@ -86,11 +77,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
86
77
|
#item
|
|
87
78
|
*ngFor="let action of actions; index as index; first as first; last as last"
|
|
88
79
|
class="k-quick-reply"
|
|
80
|
+
role="button"
|
|
89
81
|
[class.k-selected]="isSelected(index)"
|
|
90
82
|
[class.k-focus]="isSelected(index)"
|
|
91
83
|
[class.k-first]="first"
|
|
92
84
|
[class.k-last]="last"
|
|
93
|
-
[attr.tabindex]="
|
|
85
|
+
[attr.tabindex]="0"
|
|
94
86
|
(click)="actionClick(action)"
|
|
95
87
|
(keydown)="actionKeydown($event, action)"
|
|
96
88
|
>
|
|
@@ -18,9 +18,9 @@ export class FocusedStateDirective {
|
|
|
18
18
|
this.focused = false;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
FocusedStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
22
|
-
FocusedStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
21
|
+
FocusedStateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FocusedStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
+
FocusedStateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FocusedStateDirective, selector: "[kendoChatFocusedState]", host: { listeners: { "focusin": "onFocus()", "focusout": "onBlur()" }, properties: { "class.k-focus": "this.focused" } }, ngImport: i0 });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FocusedStateDirective, decorators: [{
|
|
24
24
|
type: Directive,
|
|
25
25
|
args: [{
|
|
26
26
|
selector: '[kendoChatFocusedState]'
|
|
@@ -57,9 +57,9 @@ export class ScrollAnchorDirective {
|
|
|
57
57
|
this.zone.runOutsideAngular(() => setTimeout(() => this.scrolling = false, 1000));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
ScrollAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
61
|
-
ScrollAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
60
|
+
ScrollAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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: "13.3.12", 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: "13.3.12", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
|
|
63
63
|
type: Directive,
|
|
64
64
|
args: [{
|
|
65
65
|
selector: '[kendoChatScrollAnchor]',
|
|
@@ -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:
|
|
13
|
-
version: '11.
|
|
12
|
+
publishDate: 1676463622,
|
|
13
|
+
version: '11.3.0-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|