@progress/kendo-angular-conversational-ui 11.5.0-develop.5 → 11.5.0-develop.7
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 +13 -1
- package/chat/message-attachments.component.d.ts +7 -1
- package/chat/message-list.component.d.ts +7 -1
- package/esm2020/chat/chat.component.mjs +39 -21
- package/esm2020/chat/l10n/messages.mjs +7 -1
- package/esm2020/chat/message-attachments.component.mjs +15 -1
- package/esm2020/chat/message-list.component.mjs +15 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-conversational-ui.mjs +76 -27
- package/fesm2020/progress-kendo-angular-conversational-ui.mjs +76 -27
- package/package.json +7 -7
package/chat/l10n/messages.d.ts
CHANGED
|
@@ -25,6 +25,18 @@ export declare class Messages extends ComponentMessages {
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
messageBoxInputLabel: string;
|
|
28
|
+
/**
|
|
29
|
+
* The text for the left arrow of the message attachments.
|
|
30
|
+
*/
|
|
31
|
+
messageAttachmentLeftArrow: string;
|
|
32
|
+
/**
|
|
33
|
+
* The text for the right arrow of the message attachments.
|
|
34
|
+
*/
|
|
35
|
+
messageAttachmentRightArrow: string;
|
|
36
|
+
/**
|
|
37
|
+
* The alt attribute text for the avatar image.
|
|
38
|
+
*/
|
|
39
|
+
messageAvatarAlt: string;
|
|
28
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendoConversationalUIMessages", never, { "messagePlaceholder": "messagePlaceholder"; "send": "send"; "messageListLabel": "messageListLabel"; "messageBoxInputLabel": "messageBoxInputLabel"; }, {}, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendoConversationalUIMessages", never, { "messagePlaceholder": "messagePlaceholder"; "send": "send"; "messageListLabel": "messageListLabel"; "messageBoxInputLabel": "messageBoxInputLabel"; "messageAttachmentLeftArrow": "messageAttachmentLeftArrow"; "messageAttachmentRightArrow": "messageAttachmentRightArrow"; "messageAvatarAlt": "messageAvatarAlt"; }, {}, never>;
|
|
30
42
|
}
|
|
@@ -7,6 +7,7 @@ import { Attachment, AttachmentLayout } from '../api/attachment.interface';
|
|
|
7
7
|
import { ChatItem } from './chat-item';
|
|
8
8
|
import { AttachmentTemplateDirective } from './attachment-template.directive';
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
@@ -25,6 +26,7 @@ export declare class MessageAttachmentsComponent extends ChatItem implements Aft
|
|
|
25
26
|
layout: AttachmentLayout;
|
|
26
27
|
tabbable: boolean;
|
|
27
28
|
template: AttachmentTemplateDirective;
|
|
29
|
+
localization: LocalizationService;
|
|
28
30
|
get carousel(): boolean;
|
|
29
31
|
deck: ElementRef;
|
|
30
32
|
items: QueryList<ElementRef>;
|
|
@@ -44,6 +46,10 @@ export declare class MessageAttachmentsComponent extends ChatItem implements Aft
|
|
|
44
46
|
private select;
|
|
45
47
|
private navigateTo;
|
|
46
48
|
private onScroll;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
textFor(key: string): string;
|
|
47
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageAttachmentsComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageAttachmentsComponent, "kendo-chat-message-attachments", never, { "attachments": "attachments"; "layout": "layout"; "tabbable": "tabbable"; "template": "template"; }, {}, never, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageAttachmentsComponent, "kendo-chat-message-attachments", never, { "attachments": "attachments"; "layout": "layout"; "tabbable": "tabbable"; "template": "template"; "localization": "localization"; }, {}, never, never>;
|
|
49
55
|
}
|
|
@@ -9,6 +9,7 @@ import { ViewItem } from './chat-view';
|
|
|
9
9
|
import { AttachmentTemplateDirective } from './attachment-template.directive';
|
|
10
10
|
import { MessageTemplateDirective } from './message-template.directive';
|
|
11
11
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
12
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -21,6 +22,7 @@ export declare class MessageListComponent implements OnInit, AfterViewInit, OnDe
|
|
|
21
22
|
get messages(): Message[];
|
|
22
23
|
attachmentTemplate: AttachmentTemplateDirective;
|
|
23
24
|
messageTemplate: MessageTemplateDirective;
|
|
25
|
+
localization: LocalizationService;
|
|
24
26
|
user: User;
|
|
25
27
|
executeAction: EventEmitter<ExecuteActionEvent>;
|
|
26
28
|
navigate: EventEmitter<any>;
|
|
@@ -48,6 +50,10 @@ export declare class MessageListComponent implements OnInit, AfterViewInit, OnDe
|
|
|
48
50
|
private onHomeOrEndKeyDown;
|
|
49
51
|
private onTabKeyDown;
|
|
50
52
|
private navigateTo;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
textFor(key: string): string;
|
|
51
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "kendo-chat-message-list", never, { "messages": "messages"; "attachmentTemplate": "attachmentTemplate"; "messageTemplate": "messageTemplate"; "user": "user"; }, { "executeAction": "executeAction"; "navigate": "navigate"; "resize": "resize"; }, never, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "kendo-chat-message-list", never, { "messages": "messages"; "attachmentTemplate": "attachmentTemplate"; "messageTemplate": "messageTemplate"; "localization": "localization"; "user": "user"; }, { "executeAction": "executeAction"; "navigate": "navigate"; "resize": "resize"; }, never, never>;
|
|
53
59
|
}
|
|
@@ -120,19 +120,27 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
120
120
|
useValue: 'kendo.chat'
|
|
121
121
|
}
|
|
122
122
|
], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
123
|
-
<ng-container
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
messagePlaceholder="Type a message..."
|
|
123
|
+
<ng-container kendoChatLocalizedMessages
|
|
124
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
125
|
+
messagePlaceholder="Type a message..."
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
128
|
+
send="Send..."
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
131
|
+
messageListLabel="Message list"
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
134
|
+
messageBoxInputLabel="Message"
|
|
135
|
+
|
|
136
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
137
|
+
messageAttachmentLeftArrow="Previous item"
|
|
138
|
+
|
|
139
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
140
|
+
messageAttachmentRightArrow="Next item"
|
|
141
|
+
|
|
142
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
143
|
+
messageAvatarAlt="Avatar"
|
|
136
144
|
>
|
|
137
145
|
</ng-container>
|
|
138
146
|
|
|
@@ -149,6 +157,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
149
157
|
<kendo-chat-message-list
|
|
150
158
|
[messages]="messages"
|
|
151
159
|
[messageTemplate]="messageTemplate"
|
|
160
|
+
[localization]="localizationText"
|
|
152
161
|
[attachmentTemplate]="attachmentTemplate"
|
|
153
162
|
[user]="user"
|
|
154
163
|
(executeAction)="dispatchAction($event)"
|
|
@@ -167,7 +176,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
167
176
|
(sendMessage)="sendMessage.emit($event)"
|
|
168
177
|
>
|
|
169
178
|
</kendo-message-box>
|
|
170
|
-
`, isInline: true, components: [{ type: i2.MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: i3.MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: i5.ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
179
|
+
`, isInline: true, components: [{ type: i2.MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "localization", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: i3.MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: i5.ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
171
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChatComponent, decorators: [{
|
|
172
181
|
type: Component,
|
|
173
182
|
args: [{
|
|
@@ -180,19 +189,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
180
189
|
],
|
|
181
190
|
selector: 'kendo-chat',
|
|
182
191
|
template: `
|
|
183
|
-
<ng-container
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
<ng-container kendoChatLocalizedMessages
|
|
193
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
194
|
+
messagePlaceholder="Type a message..."
|
|
195
|
+
|
|
196
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
197
|
+
send="Send..."
|
|
198
|
+
|
|
199
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
200
|
+
messageListLabel="Message list"
|
|
201
|
+
|
|
202
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
203
|
+
messageBoxInputLabel="Message"
|
|
187
204
|
|
|
188
|
-
|
|
189
|
-
|
|
205
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
206
|
+
messageAttachmentLeftArrow="Previous item"
|
|
190
207
|
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
209
|
+
messageAttachmentRightArrow="Next item"
|
|
193
210
|
|
|
194
|
-
|
|
195
|
-
|
|
211
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
212
|
+
messageAvatarAlt="Avatar"
|
|
196
213
|
>
|
|
197
214
|
</ng-container>
|
|
198
215
|
|
|
@@ -209,6 +226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
209
226
|
<kendo-chat-message-list
|
|
210
227
|
[messages]="messages"
|
|
211
228
|
[messageTemplate]="messageTemplate"
|
|
229
|
+
[localization]="localizationText"
|
|
212
230
|
[attachmentTemplate]="attachmentTemplate"
|
|
213
231
|
[user]="user"
|
|
214
232
|
(executeAction)="dispatchAction($event)"
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class Messages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -26,4 +26,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
26
26
|
type: Input
|
|
27
27
|
}], messageBoxInputLabel: [{
|
|
28
28
|
type: Input
|
|
29
|
+
}], messageAttachmentLeftArrow: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], messageAttachmentRightArrow: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], messageAvatarAlt: [{
|
|
34
|
+
type: Input
|
|
29
35
|
}] } });
|
|
@@ -2,6 +2,7 @@
|
|
|
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 */
|
|
5
6
|
import { Component, ElementRef, forwardRef, HostBinding, Input, NgZone, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
|
6
7
|
import { fromEvent } from 'rxjs';
|
|
7
8
|
import { debounceTime } from 'rxjs/operators';
|
|
@@ -9,6 +10,7 @@ import { Keys } from '@progress/kendo-angular-common';
|
|
|
9
10
|
import { ChatItem } from './chat-item';
|
|
10
11
|
import { AttachmentTemplateDirective } from './attachment-template.directive';
|
|
11
12
|
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
13
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
import * as i1 from "@progress/kendo-angular-buttons";
|
|
14
16
|
import * as i2 from "./attachment.component";
|
|
@@ -105,9 +107,15 @@ export class MessageAttachmentsComponent extends ChatItem {
|
|
|
105
107
|
});
|
|
106
108
|
}
|
|
107
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @hidden
|
|
112
|
+
*/
|
|
113
|
+
textFor(key) {
|
|
114
|
+
return this.localization.get(key);
|
|
115
|
+
}
|
|
108
116
|
}
|
|
109
117
|
MessageAttachmentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
110
|
-
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
118
|
+
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
111
119
|
provide: ChatItem,
|
|
112
120
|
useExisting: forwardRef(() => MessageAttachmentsComponent)
|
|
113
121
|
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -116,6 +124,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
116
124
|
(click)="scrollTo(-1)"
|
|
117
125
|
kendoButton
|
|
118
126
|
tabindex="-1"
|
|
127
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
119
128
|
[svgIcon]="chevronLeftIcon"
|
|
120
129
|
icon="chevron-left"
|
|
121
130
|
>
|
|
@@ -141,6 +150,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
141
150
|
(click)="scrollTo(1)"
|
|
142
151
|
kendoButton
|
|
143
152
|
tabindex="-1"
|
|
153
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
144
154
|
[svgIcon]="chevronRightIcon"
|
|
145
155
|
icon="chevron-right"
|
|
146
156
|
>
|
|
@@ -160,6 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
160
170
|
(click)="scrollTo(-1)"
|
|
161
171
|
kendoButton
|
|
162
172
|
tabindex="-1"
|
|
173
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
163
174
|
[svgIcon]="chevronLeftIcon"
|
|
164
175
|
icon="chevron-left"
|
|
165
176
|
>
|
|
@@ -185,6 +196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
185
196
|
(click)="scrollTo(1)"
|
|
186
197
|
kendoButton
|
|
187
198
|
tabindex="-1"
|
|
199
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
188
200
|
[svgIcon]="chevronRightIcon"
|
|
189
201
|
icon="chevron-right"
|
|
190
202
|
>
|
|
@@ -199,6 +211,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
199
211
|
type: Input
|
|
200
212
|
}], template: [{
|
|
201
213
|
type: Input
|
|
214
|
+
}], localization: [{
|
|
215
|
+
type: Input
|
|
202
216
|
}], carousel: [{
|
|
203
217
|
type: HostBinding,
|
|
204
218
|
args: ['class.k-card-deck-scrollwrap']
|
|
@@ -16,6 +16,7 @@ import { IntlService } from '@progress/kendo-angular-intl';
|
|
|
16
16
|
import { Subscription } from 'rxjs';
|
|
17
17
|
import { SuggestedActionsComponent } from './suggested-actions.component';
|
|
18
18
|
import { MessageComponent } from './message.component';
|
|
19
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
import * as i1 from "@progress/kendo-angular-intl";
|
|
21
22
|
import * as i2 from "./message.component";
|
|
@@ -147,9 +148,15 @@ export class MessageListComponent {
|
|
|
147
148
|
e.preventDefault();
|
|
148
149
|
}
|
|
149
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* @hidden
|
|
153
|
+
*/
|
|
154
|
+
textFor(key) {
|
|
155
|
+
return this.localization.get(key);
|
|
156
|
+
}
|
|
150
157
|
}
|
|
151
158
|
MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
-
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
159
|
+
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
153
160
|
<ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
|
|
154
161
|
<ng-container [ngSwitch]="group.type">
|
|
155
162
|
<div
|
|
@@ -167,6 +174,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
167
174
|
<img
|
|
168
175
|
*ngIf="group.author.avatarUrl"
|
|
169
176
|
[attr.src]="group.author.avatarUrl"
|
|
177
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
170
178
|
class="k-avatar"
|
|
171
179
|
/>
|
|
172
180
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -199,6 +207,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
199
207
|
*ngSwitchCase="'attachment-group'"
|
|
200
208
|
[attachments]="group.attachments"
|
|
201
209
|
[layout]="group.attachmentLayout"
|
|
210
|
+
[localization]="localization"
|
|
202
211
|
[tabbable]="lastGroup"
|
|
203
212
|
[template]="attachmentTemplate"
|
|
204
213
|
(click)="select(attachments)"
|
|
@@ -219,7 +228,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
219
228
|
</ng-container>
|
|
220
229
|
<kendo-resize-sensor (resize)="onResize()">
|
|
221
230
|
</kendo-resize-sensor>
|
|
222
|
-
`, isInline: true, components: [{ type: i2.MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: i3.AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: i4.MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template"] }, { type: i5.SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
231
|
+
`, isInline: true, components: [{ type: i2.MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: i3.AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: i4.MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { type: i5.SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
223
232
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, decorators: [{
|
|
224
233
|
type: Component,
|
|
225
234
|
args: [{
|
|
@@ -242,6 +251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
242
251
|
<img
|
|
243
252
|
*ngIf="group.author.avatarUrl"
|
|
244
253
|
[attr.src]="group.author.avatarUrl"
|
|
254
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
245
255
|
class="k-avatar"
|
|
246
256
|
/>
|
|
247
257
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -274,6 +284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
274
284
|
*ngSwitchCase="'attachment-group'"
|
|
275
285
|
[attachments]="group.attachments"
|
|
276
286
|
[layout]="group.attachmentLayout"
|
|
287
|
+
[localization]="localization"
|
|
277
288
|
[tabbable]="lastGroup"
|
|
278
289
|
[template]="attachmentTemplate"
|
|
279
290
|
(click)="select(attachments)"
|
|
@@ -302,6 +313,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
302
313
|
type: Input
|
|
303
314
|
}], messageTemplate: [{
|
|
304
315
|
type: Input
|
|
316
|
+
}], localization: [{
|
|
317
|
+
type: Input
|
|
305
318
|
}], user: [{
|
|
306
319
|
type: Input
|
|
307
320
|
}], executeAction: [{
|
|
@@ -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.5.0-develop.
|
|
12
|
+
publishDate: 1680201975,
|
|
13
|
+
version: '11.5.0-develop.7',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -119,8 +119,8 @@ const packageMetadata = {
|
|
|
119
119
|
name: '@progress/kendo-angular-conversational-ui',
|
|
120
120
|
productName: 'Kendo UI for Angular',
|
|
121
121
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
122
|
-
publishDate:
|
|
123
|
-
version: '11.5.0-develop.
|
|
122
|
+
publishDate: 1680201975,
|
|
123
|
+
version: '11.5.0-develop.7',
|
|
124
124
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
125
125
|
};
|
|
126
126
|
|
|
@@ -582,6 +582,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
582
582
|
type: Input
|
|
583
583
|
}] } });
|
|
584
584
|
|
|
585
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
585
586
|
// eslint-disable no-forward-ref
|
|
586
587
|
/**
|
|
587
588
|
* @hidden
|
|
@@ -674,9 +675,15 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
|
674
675
|
});
|
|
675
676
|
}
|
|
676
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* @hidden
|
|
680
|
+
*/
|
|
681
|
+
textFor(key) {
|
|
682
|
+
return this.localization.get(key);
|
|
683
|
+
}
|
|
677
684
|
}
|
|
678
685
|
MessageAttachmentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
679
|
-
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
686
|
+
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
680
687
|
provide: ChatItem,
|
|
681
688
|
useExisting: forwardRef(() => MessageAttachmentsComponent)
|
|
682
689
|
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -685,6 +692,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
685
692
|
(click)="scrollTo(-1)"
|
|
686
693
|
kendoButton
|
|
687
694
|
tabindex="-1"
|
|
695
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
688
696
|
[svgIcon]="chevronLeftIcon"
|
|
689
697
|
icon="chevron-left"
|
|
690
698
|
>
|
|
@@ -710,6 +718,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
710
718
|
(click)="scrollTo(1)"
|
|
711
719
|
kendoButton
|
|
712
720
|
tabindex="-1"
|
|
721
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
713
722
|
[svgIcon]="chevronRightIcon"
|
|
714
723
|
icon="chevron-right"
|
|
715
724
|
>
|
|
@@ -729,6 +738,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
729
738
|
(click)="scrollTo(-1)"
|
|
730
739
|
kendoButton
|
|
731
740
|
tabindex="-1"
|
|
741
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
732
742
|
[svgIcon]="chevronLeftIcon"
|
|
733
743
|
icon="chevron-left"
|
|
734
744
|
>
|
|
@@ -754,6 +764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
754
764
|
(click)="scrollTo(1)"
|
|
755
765
|
kendoButton
|
|
756
766
|
tabindex="-1"
|
|
767
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
757
768
|
[svgIcon]="chevronRightIcon"
|
|
758
769
|
icon="chevron-right"
|
|
759
770
|
>
|
|
@@ -768,6 +779,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
768
779
|
type: Input
|
|
769
780
|
}], template: [{
|
|
770
781
|
type: Input
|
|
782
|
+
}], localization: [{
|
|
783
|
+
type: Input
|
|
771
784
|
}], carousel: [{
|
|
772
785
|
type: HostBinding,
|
|
773
786
|
args: ['class.k-card-deck-scrollwrap']
|
|
@@ -903,9 +916,15 @@ class MessageListComponent {
|
|
|
903
916
|
e.preventDefault();
|
|
904
917
|
}
|
|
905
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
* @hidden
|
|
921
|
+
*/
|
|
922
|
+
textFor(key) {
|
|
923
|
+
return this.localization.get(key);
|
|
924
|
+
}
|
|
906
925
|
}
|
|
907
926
|
MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
908
|
-
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
927
|
+
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
909
928
|
<ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
|
|
910
929
|
<ng-container [ngSwitch]="group.type">
|
|
911
930
|
<div
|
|
@@ -923,6 +942,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
923
942
|
<img
|
|
924
943
|
*ngIf="group.author.avatarUrl"
|
|
925
944
|
[attr.src]="group.author.avatarUrl"
|
|
945
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
926
946
|
class="k-avatar"
|
|
927
947
|
/>
|
|
928
948
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -955,6 +975,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
955
975
|
*ngSwitchCase="'attachment-group'"
|
|
956
976
|
[attachments]="group.attachments"
|
|
957
977
|
[layout]="group.attachmentLayout"
|
|
978
|
+
[localization]="localization"
|
|
958
979
|
[tabbable]="lastGroup"
|
|
959
980
|
[template]="attachmentTemplate"
|
|
960
981
|
(click)="select(attachments)"
|
|
@@ -975,7 +996,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
975
996
|
</ng-container>
|
|
976
997
|
<kendo-resize-sensor (resize)="onResize()">
|
|
977
998
|
</kendo-resize-sensor>
|
|
978
|
-
`, isInline: true, components: [{ type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template"] }, { type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
999
|
+
`, isInline: true, components: [{ type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
979
1000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, decorators: [{
|
|
980
1001
|
type: Component,
|
|
981
1002
|
args: [{
|
|
@@ -998,6 +1019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
998
1019
|
<img
|
|
999
1020
|
*ngIf="group.author.avatarUrl"
|
|
1000
1021
|
[attr.src]="group.author.avatarUrl"
|
|
1022
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
1001
1023
|
class="k-avatar"
|
|
1002
1024
|
/>
|
|
1003
1025
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -1030,6 +1052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1030
1052
|
*ngSwitchCase="'attachment-group'"
|
|
1031
1053
|
[attachments]="group.attachments"
|
|
1032
1054
|
[layout]="group.attachmentLayout"
|
|
1055
|
+
[localization]="localization"
|
|
1033
1056
|
[tabbable]="lastGroup"
|
|
1034
1057
|
[template]="attachmentTemplate"
|
|
1035
1058
|
(click)="select(attachments)"
|
|
@@ -1058,6 +1081,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1058
1081
|
type: Input
|
|
1059
1082
|
}], messageTemplate: [{
|
|
1060
1083
|
type: Input
|
|
1084
|
+
}], localization: [{
|
|
1085
|
+
type: Input
|
|
1061
1086
|
}], user: [{
|
|
1062
1087
|
type: Input
|
|
1063
1088
|
}], executeAction: [{
|
|
@@ -1247,7 +1272,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1247
1272
|
class Messages extends ComponentMessages {
|
|
1248
1273
|
}
|
|
1249
1274
|
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1250
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel" }, usesInheritance: true, ngImport: i0 });
|
|
1275
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
|
|
1251
1276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
|
|
1252
1277
|
type: Directive,
|
|
1253
1278
|
args: [{
|
|
@@ -1262,6 +1287,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1262
1287
|
type: Input
|
|
1263
1288
|
}], messageBoxInputLabel: [{
|
|
1264
1289
|
type: Input
|
|
1290
|
+
}], messageAttachmentLeftArrow: [{
|
|
1291
|
+
type: Input
|
|
1292
|
+
}], messageAttachmentRightArrow: [{
|
|
1293
|
+
type: Input
|
|
1294
|
+
}], messageAvatarAlt: [{
|
|
1295
|
+
type: Input
|
|
1265
1296
|
}] } });
|
|
1266
1297
|
|
|
1267
1298
|
// eslint-disable no-forward-ref
|
|
@@ -1467,19 +1498,27 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1467
1498
|
useValue: 'kendo.chat'
|
|
1468
1499
|
}
|
|
1469
1500
|
], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1470
|
-
<ng-container
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
messagePlaceholder="Type a message..."
|
|
1501
|
+
<ng-container kendoChatLocalizedMessages
|
|
1502
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
1503
|
+
messagePlaceholder="Type a message..."
|
|
1474
1504
|
|
|
1475
|
-
|
|
1476
|
-
|
|
1505
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
1506
|
+
send="Send..."
|
|
1477
1507
|
|
|
1478
|
-
|
|
1479
|
-
|
|
1508
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
1509
|
+
messageListLabel="Message list"
|
|
1480
1510
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1511
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
1512
|
+
messageBoxInputLabel="Message"
|
|
1513
|
+
|
|
1514
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
1515
|
+
messageAttachmentLeftArrow="Previous item"
|
|
1516
|
+
|
|
1517
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
1518
|
+
messageAttachmentRightArrow="Next item"
|
|
1519
|
+
|
|
1520
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
1521
|
+
messageAvatarAlt="Avatar"
|
|
1483
1522
|
>
|
|
1484
1523
|
</ng-container>
|
|
1485
1524
|
|
|
@@ -1496,6 +1535,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1496
1535
|
<kendo-chat-message-list
|
|
1497
1536
|
[messages]="messages"
|
|
1498
1537
|
[messageTemplate]="messageTemplate"
|
|
1538
|
+
[localization]="localizationText"
|
|
1499
1539
|
[attachmentTemplate]="attachmentTemplate"
|
|
1500
1540
|
[user]="user"
|
|
1501
1541
|
(executeAction)="dispatchAction($event)"
|
|
@@ -1514,7 +1554,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1514
1554
|
(sendMessage)="sendMessage.emit($event)"
|
|
1515
1555
|
>
|
|
1516
1556
|
</kendo-message-box>
|
|
1517
|
-
`, isInline: true, components: [{ type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
1557
|
+
`, isInline: true, components: [{ type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "localization", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
1518
1558
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChatComponent, decorators: [{
|
|
1519
1559
|
type: Component,
|
|
1520
1560
|
args: [{
|
|
@@ -1527,19 +1567,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1527
1567
|
],
|
|
1528
1568
|
selector: 'kendo-chat',
|
|
1529
1569
|
template: `
|
|
1530
|
-
<ng-container
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1570
|
+
<ng-container kendoChatLocalizedMessages
|
|
1571
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
1572
|
+
messagePlaceholder="Type a message..."
|
|
1573
|
+
|
|
1574
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
1575
|
+
send="Send..."
|
|
1576
|
+
|
|
1577
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
1578
|
+
messageListLabel="Message list"
|
|
1579
|
+
|
|
1580
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
1581
|
+
messageBoxInputLabel="Message"
|
|
1534
1582
|
|
|
1535
|
-
|
|
1536
|
-
|
|
1583
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
1584
|
+
messageAttachmentLeftArrow="Previous item"
|
|
1537
1585
|
|
|
1538
|
-
|
|
1539
|
-
|
|
1586
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
1587
|
+
messageAttachmentRightArrow="Next item"
|
|
1540
1588
|
|
|
1541
|
-
|
|
1542
|
-
|
|
1589
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
1590
|
+
messageAvatarAlt="Avatar"
|
|
1543
1591
|
>
|
|
1544
1592
|
</ng-container>
|
|
1545
1593
|
|
|
@@ -1556,6 +1604,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1556
1604
|
<kendo-chat-message-list
|
|
1557
1605
|
[messages]="messages"
|
|
1558
1606
|
[messageTemplate]="messageTemplate"
|
|
1607
|
+
[localization]="localizationText"
|
|
1559
1608
|
[attachmentTemplate]="attachmentTemplate"
|
|
1560
1609
|
[user]="user"
|
|
1561
1610
|
(executeAction)="dispatchAction($event)"
|
|
@@ -115,8 +115,8 @@ const packageMetadata = {
|
|
|
115
115
|
name: '@progress/kendo-angular-conversational-ui',
|
|
116
116
|
productName: 'Kendo UI for Angular',
|
|
117
117
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
118
|
-
publishDate:
|
|
119
|
-
version: '11.5.0-develop.
|
|
118
|
+
publishDate: 1680201975,
|
|
119
|
+
version: '11.5.0-develop.7',
|
|
120
120
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
121
121
|
};
|
|
122
122
|
|
|
@@ -747,6 +747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
747
747
|
type: Input
|
|
748
748
|
}] } });
|
|
749
749
|
|
|
750
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
750
751
|
// eslint-disable no-forward-ref
|
|
751
752
|
/**
|
|
752
753
|
* @hidden
|
|
@@ -839,9 +840,15 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
|
839
840
|
});
|
|
840
841
|
}
|
|
841
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* @hidden
|
|
845
|
+
*/
|
|
846
|
+
textFor(key) {
|
|
847
|
+
return this.localization.get(key);
|
|
848
|
+
}
|
|
842
849
|
}
|
|
843
850
|
MessageAttachmentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
844
|
-
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
851
|
+
MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
845
852
|
provide: ChatItem,
|
|
846
853
|
useExisting: forwardRef(() => MessageAttachmentsComponent)
|
|
847
854
|
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -850,6 +857,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
850
857
|
(click)="scrollTo(-1)"
|
|
851
858
|
kendoButton
|
|
852
859
|
tabindex="-1"
|
|
860
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
853
861
|
[svgIcon]="chevronLeftIcon"
|
|
854
862
|
icon="chevron-left"
|
|
855
863
|
>
|
|
@@ -875,6 +883,7 @@ MessageAttachmentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
875
883
|
(click)="scrollTo(1)"
|
|
876
884
|
kendoButton
|
|
877
885
|
tabindex="-1"
|
|
886
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
878
887
|
[svgIcon]="chevronRightIcon"
|
|
879
888
|
icon="chevron-right"
|
|
880
889
|
>
|
|
@@ -894,6 +903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
894
903
|
(click)="scrollTo(-1)"
|
|
895
904
|
kendoButton
|
|
896
905
|
tabindex="-1"
|
|
906
|
+
[attr.title]="textFor('messageAttachmentLeftArrow')"
|
|
897
907
|
[svgIcon]="chevronLeftIcon"
|
|
898
908
|
icon="chevron-left"
|
|
899
909
|
>
|
|
@@ -919,6 +929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
919
929
|
(click)="scrollTo(1)"
|
|
920
930
|
kendoButton
|
|
921
931
|
tabindex="-1"
|
|
932
|
+
[attr.title]="textFor('messageAttachmentRightArrow')"
|
|
922
933
|
[svgIcon]="chevronRightIcon"
|
|
923
934
|
icon="chevron-right"
|
|
924
935
|
>
|
|
@@ -933,6 +944,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
933
944
|
type: Input
|
|
934
945
|
}], template: [{
|
|
935
946
|
type: Input
|
|
947
|
+
}], localization: [{
|
|
948
|
+
type: Input
|
|
936
949
|
}], carousel: [{
|
|
937
950
|
type: HostBinding,
|
|
938
951
|
args: ['class.k-card-deck-scrollwrap']
|
|
@@ -1068,9 +1081,15 @@ class MessageListComponent {
|
|
|
1068
1081
|
e.preventDefault();
|
|
1069
1082
|
}
|
|
1070
1083
|
}
|
|
1084
|
+
/**
|
|
1085
|
+
* @hidden
|
|
1086
|
+
*/
|
|
1087
|
+
textFor(key) {
|
|
1088
|
+
return this.localization.get(key);
|
|
1089
|
+
}
|
|
1071
1090
|
}
|
|
1072
1091
|
MessageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.IntlService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1073
|
-
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
1092
|
+
MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", messageTemplate: "messageTemplate", localization: "localization", user: "user" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
1074
1093
|
<ng-container *ngFor="let group of view; last as lastGroup; trackBy: trackGroup">
|
|
1075
1094
|
<ng-container [ngSwitch]="group.type">
|
|
1076
1095
|
<div
|
|
@@ -1088,6 +1107,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1088
1107
|
<img
|
|
1089
1108
|
*ngIf="group.author.avatarUrl"
|
|
1090
1109
|
[attr.src]="group.author.avatarUrl"
|
|
1110
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
1091
1111
|
class="k-avatar"
|
|
1092
1112
|
/>
|
|
1093
1113
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -1120,6 +1140,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1120
1140
|
*ngSwitchCase="'attachment-group'"
|
|
1121
1141
|
[attachments]="group.attachments"
|
|
1122
1142
|
[layout]="group.attachmentLayout"
|
|
1143
|
+
[localization]="localization"
|
|
1123
1144
|
[tabbable]="lastGroup"
|
|
1124
1145
|
[template]="attachmentTemplate"
|
|
1125
1146
|
(click)="select(attachments)"
|
|
@@ -1140,7 +1161,7 @@ MessageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1140
1161
|
</ng-container>
|
|
1141
1162
|
<kendo-resize-sensor (resize)="onResize()">
|
|
1142
1163
|
</kendo-resize-sensor>
|
|
1143
|
-
`, isInline: true, components: [{ type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template"] }, { type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1164
|
+
`, isInline: true, components: [{ type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "template"] }, { type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "tabbable"], outputs: ["dispatch"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1144
1165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessageListComponent, decorators: [{
|
|
1145
1166
|
type: Component,
|
|
1146
1167
|
args: [{
|
|
@@ -1163,6 +1184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1163
1184
|
<img
|
|
1164
1185
|
*ngIf="group.author.avatarUrl"
|
|
1165
1186
|
[attr.src]="group.author.avatarUrl"
|
|
1187
|
+
[alt]="textFor('messageAvatarAlt')"
|
|
1166
1188
|
class="k-avatar"
|
|
1167
1189
|
/>
|
|
1168
1190
|
<p *ngIf="group.author.name" class="k-author">{{ group.author.name }}</p>
|
|
@@ -1195,6 +1217,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1195
1217
|
*ngSwitchCase="'attachment-group'"
|
|
1196
1218
|
[attachments]="group.attachments"
|
|
1197
1219
|
[layout]="group.attachmentLayout"
|
|
1220
|
+
[localization]="localization"
|
|
1198
1221
|
[tabbable]="lastGroup"
|
|
1199
1222
|
[template]="attachmentTemplate"
|
|
1200
1223
|
(click)="select(attachments)"
|
|
@@ -1223,6 +1246,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1223
1246
|
type: Input
|
|
1224
1247
|
}], messageTemplate: [{
|
|
1225
1248
|
type: Input
|
|
1249
|
+
}], localization: [{
|
|
1250
|
+
type: Input
|
|
1226
1251
|
}], user: [{
|
|
1227
1252
|
type: Input
|
|
1228
1253
|
}], executeAction: [{
|
|
@@ -1245,7 +1270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1245
1270
|
class Messages extends ComponentMessages {
|
|
1246
1271
|
}
|
|
1247
1272
|
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1248
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel" }, usesInheritance: true, ngImport: i0 });
|
|
1273
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendoConversationalUIMessages", inputs: { messagePlaceholder: "messagePlaceholder", send: "send", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", messageAvatarAlt: "messageAvatarAlt" }, usesInheritance: true, ngImport: i0 });
|
|
1249
1274
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
|
|
1250
1275
|
type: Directive,
|
|
1251
1276
|
args: [{
|
|
@@ -1260,6 +1285,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1260
1285
|
type: Input
|
|
1261
1286
|
}], messageBoxInputLabel: [{
|
|
1262
1287
|
type: Input
|
|
1288
|
+
}], messageAttachmentLeftArrow: [{
|
|
1289
|
+
type: Input
|
|
1290
|
+
}], messageAttachmentRightArrow: [{
|
|
1291
|
+
type: Input
|
|
1292
|
+
}], messageAvatarAlt: [{
|
|
1293
|
+
type: Input
|
|
1263
1294
|
}] } });
|
|
1264
1295
|
|
|
1265
1296
|
// eslint-disable no-forward-ref
|
|
@@ -1465,19 +1496,27 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1465
1496
|
useValue: 'kendo.chat'
|
|
1466
1497
|
}
|
|
1467
1498
|
], queries: [{ propertyName: "attachmentTemplate", first: true, predicate: AttachmentTemplateDirective, descendants: true }, { propertyName: "messageTemplate", first: true, predicate: MessageTemplateDirective, descendants: true }, { propertyName: "messageBoxTemplate", first: true, predicate: ChatMessageBoxTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "messageBox", first: true, predicate: ["messageBox"], descendants: true }, { propertyName: "messageList", first: true, predicate: ["messageList"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1468
|
-
<ng-container
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
messagePlaceholder="Type a message..."
|
|
1499
|
+
<ng-container kendoChatLocalizedMessages
|
|
1500
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
1501
|
+
messagePlaceholder="Type a message..."
|
|
1472
1502
|
|
|
1473
|
-
|
|
1474
|
-
|
|
1503
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
1504
|
+
send="Send..."
|
|
1475
1505
|
|
|
1476
|
-
|
|
1477
|
-
|
|
1506
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
1507
|
+
messageListLabel="Message list"
|
|
1478
1508
|
|
|
1479
|
-
|
|
1480
|
-
|
|
1509
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
1510
|
+
messageBoxInputLabel="Message"
|
|
1511
|
+
|
|
1512
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
1513
|
+
messageAttachmentLeftArrow="Previous item"
|
|
1514
|
+
|
|
1515
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
1516
|
+
messageAttachmentRightArrow="Next item"
|
|
1517
|
+
|
|
1518
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
1519
|
+
messageAvatarAlt="Avatar"
|
|
1481
1520
|
>
|
|
1482
1521
|
</ng-container>
|
|
1483
1522
|
|
|
@@ -1494,6 +1533,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1494
1533
|
<kendo-chat-message-list
|
|
1495
1534
|
[messages]="messages"
|
|
1496
1535
|
[messageTemplate]="messageTemplate"
|
|
1536
|
+
[localization]="localizationText"
|
|
1497
1537
|
[attachmentTemplate]="attachmentTemplate"
|
|
1498
1538
|
[user]="user"
|
|
1499
1539
|
(executeAction)="dispatchAction($event)"
|
|
@@ -1512,7 +1552,7 @@ ChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
1512
1552
|
(sendMessage)="sendMessage.emit($event)"
|
|
1513
1553
|
>
|
|
1514
1554
|
</kendo-message-box>
|
|
1515
|
-
`, isInline: true, components: [{ type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
1555
|
+
`, isInline: true, components: [{ type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "messageTemplate", "localization", "user"], outputs: ["executeAction", "navigate", "resize"] }, { type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["user", "autoScroll", "type", "localization", "messageBoxTemplate"], outputs: ["sendMessage"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoChatLocalizedMessages]" }, { type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll"], outputs: ["autoScrollChange"], exportAs: ["scrollAnchor"] }] });
|
|
1516
1556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChatComponent, decorators: [{
|
|
1517
1557
|
type: Component,
|
|
1518
1558
|
args: [{
|
|
@@ -1525,19 +1565,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1525
1565
|
],
|
|
1526
1566
|
selector: 'kendo-chat',
|
|
1527
1567
|
template: `
|
|
1528
|
-
<ng-container
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1568
|
+
<ng-container kendoChatLocalizedMessages
|
|
1569
|
+
i18n-messagePlaceholder="kendo.chat.messagePlaceholder|The placholder text of the message text input"
|
|
1570
|
+
messagePlaceholder="Type a message..."
|
|
1571
|
+
|
|
1572
|
+
i18n-send="kendo.chat.send|The text for the Send button"
|
|
1573
|
+
send="Send..."
|
|
1574
|
+
|
|
1575
|
+
i18n-messageListLabel="kendo.chat.messageListLabel|The label text for the Message list"
|
|
1576
|
+
messageListLabel="Message list"
|
|
1577
|
+
|
|
1578
|
+
i18n-messageBoxInputLabel="kendo.chat.messageBoxInputLabel|The label text for the Message input box"
|
|
1579
|
+
messageBoxInputLabel="Message"
|
|
1532
1580
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1581
|
+
i18n-messageAttachmentLeftArrow="kendo.chat.messageAttachmentLeftArrow|The text for the left arrow of the message attachments"
|
|
1582
|
+
messageAttachmentLeftArrow="Previous item"
|
|
1535
1583
|
|
|
1536
|
-
|
|
1537
|
-
|
|
1584
|
+
i18n-messageAttachmentRightArrow="kendo.chat.messageAttachmentRightArrow|The text for the right arrow of the message attachments"
|
|
1585
|
+
messageAttachmentRightArrow="Next item"
|
|
1538
1586
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1587
|
+
i18n-messageAvatarAlt="kendo.chat.messageAvatarAlt|The alt attribute text for the avatar"
|
|
1588
|
+
messageAvatarAlt="Avatar"
|
|
1541
1589
|
>
|
|
1542
1590
|
</ng-container>
|
|
1543
1591
|
|
|
@@ -1554,6 +1602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1554
1602
|
<kendo-chat-message-list
|
|
1555
1603
|
[messages]="messages"
|
|
1556
1604
|
[messageTemplate]="messageTemplate"
|
|
1605
|
+
[localization]="localizationText"
|
|
1557
1606
|
[attachmentTemplate]="attachmentTemplate"
|
|
1558
1607
|
[user]="user"
|
|
1559
1608
|
(executeAction)="dispatchAction($event)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-conversational-ui",
|
|
3
|
-
"version": "11.5.0-develop.
|
|
3
|
+
"version": "11.5.0-develop.7",
|
|
4
4
|
"description": "Kendo UI for Angular Conversational UI components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"@angular/core": "13 - 15",
|
|
25
25
|
"@angular/platform-browser": "13 - 15",
|
|
26
26
|
"@progress/kendo-licensing": "^1.0.2",
|
|
27
|
-
"@progress/kendo-angular-buttons": "11.5.0-develop.
|
|
28
|
-
"@progress/kendo-angular-common": "11.5.0-develop.
|
|
29
|
-
"@progress/kendo-angular-intl": "11.5.0-develop.
|
|
30
|
-
"@progress/kendo-angular-l10n": "11.5.0-develop.
|
|
31
|
-
"@progress/kendo-angular-popup": "11.5.0-develop.
|
|
27
|
+
"@progress/kendo-angular-buttons": "11.5.0-develop.7",
|
|
28
|
+
"@progress/kendo-angular-common": "11.5.0-develop.7",
|
|
29
|
+
"@progress/kendo-angular-intl": "11.5.0-develop.7",
|
|
30
|
+
"@progress/kendo-angular-l10n": "11.5.0-develop.7",
|
|
31
|
+
"@progress/kendo-angular-popup": "11.5.0-develop.7",
|
|
32
32
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
|
-
"@progress/kendo-angular-schematics": "11.5.0-develop.
|
|
36
|
+
"@progress/kendo-angular-schematics": "11.5.0-develop.7"
|
|
37
37
|
},
|
|
38
38
|
"schematics": "./schematics/collection.json",
|
|
39
39
|
"module": "fesm2015/progress-kendo-angular-conversational-ui.mjs",
|