@progress/kendo-angular-conversational-ui 21.2.0-develop.8 → 21.2.0-develop.9
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/chat.component.d.ts +2 -0
- package/esm2022/chat/chat-view.mjs +2 -2
- package/esm2022/chat/chat.component.mjs +8 -1
- package/esm2022/chat/message.component.mjs +4 -12
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +16 -17
- package/package.json +14 -14
package/chat/chat.component.d.ts
CHANGED
|
@@ -328,6 +328,8 @@ export declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
328
328
|
private _cachedProcessedMessages;
|
|
329
329
|
private _lastMessagesReference;
|
|
330
330
|
private _lastModelFields;
|
|
331
|
+
private _cachedContextMenuActions;
|
|
332
|
+
private _lastContextMenuActionsReference;
|
|
331
333
|
constructor(localization: LocalizationService, zone: NgZone, renderer: Renderer2, element: ElementRef, chatService: ChatService);
|
|
332
334
|
/**
|
|
333
335
|
* @hidden
|
|
@@ -61,7 +61,7 @@ const groupItems = (total) => (acc, msg, index) => {
|
|
|
61
61
|
attachments: msg.attachments,
|
|
62
62
|
attachmentLayout: msg.attachmentLayout,
|
|
63
63
|
timestamp: msg.timestamp,
|
|
64
|
-
trackBy: msg
|
|
64
|
+
trackBy: 'attachment-group' + msg.id
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
if (msg.suggestedActions && isLastMessage) {
|
|
@@ -69,7 +69,7 @@ const groupItems = (total) => (acc, msg, index) => {
|
|
|
69
69
|
type: 'action-group',
|
|
70
70
|
actions: msg.suggestedActions,
|
|
71
71
|
timestamp: msg.timestamp,
|
|
72
|
-
trackBy: msg
|
|
72
|
+
trackBy: 'action-group' + msg.id
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
return acc;
|
|
@@ -350,7 +350,12 @@ export class ChatComponent {
|
|
|
350
350
|
* @hidden
|
|
351
351
|
*/
|
|
352
352
|
get contextMenuActions() {
|
|
353
|
-
|
|
353
|
+
const currentActions = this.chatService.calculatedContextMenuActions;
|
|
354
|
+
if (currentActions !== this._lastContextMenuActionsReference) {
|
|
355
|
+
this._cachedContextMenuActions = transformActions(currentActions);
|
|
356
|
+
this._lastContextMenuActionsReference = currentActions;
|
|
357
|
+
}
|
|
358
|
+
return this._cachedContextMenuActions;
|
|
354
359
|
}
|
|
355
360
|
/**
|
|
356
361
|
* @hidden
|
|
@@ -382,6 +387,8 @@ export class ChatComponent {
|
|
|
382
387
|
_cachedProcessedMessages = [];
|
|
383
388
|
_lastMessagesReference = null;
|
|
384
389
|
_lastModelFields = null;
|
|
390
|
+
_cachedContextMenuActions = [];
|
|
391
|
+
_lastContextMenuActionsReference = null;
|
|
385
392
|
constructor(localization, zone, renderer, element, chatService) {
|
|
386
393
|
this.localization = localization;
|
|
387
394
|
this.zone = zone;
|
|
@@ -422,12 +422,8 @@ export class MessageComponent extends ChatItem {
|
|
|
422
422
|
@if (!message.isDeleted && parts.length > 0) {
|
|
423
423
|
<span class="k-chat-bubble-text">
|
|
424
424
|
@for (part of parts; track part) {
|
|
425
|
-
@if (part.type === 'text') {
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
@if (part.type === 'link') {
|
|
429
|
-
<a [href]="part.href" target="_blank">{{part.content}}</a>
|
|
430
|
-
}
|
|
425
|
+
@if (part.type === 'text') {{{part.content}}}
|
|
426
|
+
@if (part.type === 'link') {<a [href]="part.href" target="_blank">{{part.content}}</a>}
|
|
431
427
|
}
|
|
432
428
|
</span>
|
|
433
429
|
}
|
|
@@ -614,12 +610,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
614
610
|
@if (!message.isDeleted && parts.length > 0) {
|
|
615
611
|
<span class="k-chat-bubble-text">
|
|
616
612
|
@for (part of parts; track part) {
|
|
617
|
-
@if (part.type === 'text') {
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
@if (part.type === 'link') {
|
|
621
|
-
<a [href]="part.href" target="_blank">{{part.content}}</a>
|
|
622
|
-
}
|
|
613
|
+
@if (part.type === 'text') {{{part.content}}}
|
|
614
|
+
@if (part.type === 'link') {<a [href]="part.href" target="_blank">{{part.content}}</a>}
|
|
623
615
|
}
|
|
624
616
|
</span>
|
|
625
617
|
}
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.2.0-develop.
|
|
13
|
+
publishDate: 1764346634,
|
|
14
|
+
version: '21.2.0-develop.9',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -216,8 +216,8 @@ const packageMetadata = {
|
|
|
216
216
|
productName: 'Kendo UI for Angular',
|
|
217
217
|
productCode: 'KENDOUIANGULAR',
|
|
218
218
|
productCodes: ['KENDOUIANGULAR'],
|
|
219
|
-
publishDate:
|
|
220
|
-
version: '21.2.0-develop.
|
|
219
|
+
publishDate: 1764346634,
|
|
220
|
+
version: '21.2.0-develop.9',
|
|
221
221
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
222
222
|
};
|
|
223
223
|
|
|
@@ -3135,7 +3135,7 @@ const groupItems = (total) => (acc, msg, index) => {
|
|
|
3135
3135
|
attachments: msg.attachments,
|
|
3136
3136
|
attachmentLayout: msg.attachmentLayout,
|
|
3137
3137
|
timestamp: msg.timestamp,
|
|
3138
|
-
trackBy: msg
|
|
3138
|
+
trackBy: 'attachment-group' + msg.id
|
|
3139
3139
|
});
|
|
3140
3140
|
}
|
|
3141
3141
|
if (msg.suggestedActions && isLastMessage) {
|
|
@@ -3143,7 +3143,7 @@ const groupItems = (total) => (acc, msg, index) => {
|
|
|
3143
3143
|
type: 'action-group',
|
|
3144
3144
|
actions: msg.suggestedActions,
|
|
3145
3145
|
timestamp: msg.timestamp,
|
|
3146
|
-
trackBy: msg
|
|
3146
|
+
trackBy: 'action-group' + msg.id
|
|
3147
3147
|
});
|
|
3148
3148
|
}
|
|
3149
3149
|
return acc;
|
|
@@ -4367,12 +4367,8 @@ class MessageComponent extends ChatItem {
|
|
|
4367
4367
|
@if (!message.isDeleted && parts.length > 0) {
|
|
4368
4368
|
<span class="k-chat-bubble-text">
|
|
4369
4369
|
@for (part of parts; track part) {
|
|
4370
|
-
@if (part.type === 'text') {
|
|
4371
|
-
|
|
4372
|
-
}
|
|
4373
|
-
@if (part.type === 'link') {
|
|
4374
|
-
<a [href]="part.href" target="_blank">{{part.content}}</a>
|
|
4375
|
-
}
|
|
4370
|
+
@if (part.type === 'text') {{{part.content}}}
|
|
4371
|
+
@if (part.type === 'link') {<a [href]="part.href" target="_blank">{{part.content}}</a>}
|
|
4376
4372
|
}
|
|
4377
4373
|
</span>
|
|
4378
4374
|
}
|
|
@@ -4559,12 +4555,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
4559
4555
|
@if (!message.isDeleted && parts.length > 0) {
|
|
4560
4556
|
<span class="k-chat-bubble-text">
|
|
4561
4557
|
@for (part of parts; track part) {
|
|
4562
|
-
@if (part.type === 'text') {
|
|
4563
|
-
|
|
4564
|
-
}
|
|
4565
|
-
@if (part.type === 'link') {
|
|
4566
|
-
<a [href]="part.href" target="_blank">{{part.content}}</a>
|
|
4567
|
-
}
|
|
4558
|
+
@if (part.type === 'text') {{{part.content}}}
|
|
4559
|
+
@if (part.type === 'link') {<a [href]="part.href" target="_blank">{{part.content}}</a>}
|
|
4568
4560
|
}
|
|
4569
4561
|
</span>
|
|
4570
4562
|
}
|
|
@@ -6258,7 +6250,12 @@ class ChatComponent {
|
|
|
6258
6250
|
* @hidden
|
|
6259
6251
|
*/
|
|
6260
6252
|
get contextMenuActions() {
|
|
6261
|
-
|
|
6253
|
+
const currentActions = this.chatService.calculatedContextMenuActions;
|
|
6254
|
+
if (currentActions !== this._lastContextMenuActionsReference) {
|
|
6255
|
+
this._cachedContextMenuActions = transformActions(currentActions);
|
|
6256
|
+
this._lastContextMenuActionsReference = currentActions;
|
|
6257
|
+
}
|
|
6258
|
+
return this._cachedContextMenuActions;
|
|
6262
6259
|
}
|
|
6263
6260
|
/**
|
|
6264
6261
|
* @hidden
|
|
@@ -6290,6 +6287,8 @@ class ChatComponent {
|
|
|
6290
6287
|
_cachedProcessedMessages = [];
|
|
6291
6288
|
_lastMessagesReference = null;
|
|
6292
6289
|
_lastModelFields = null;
|
|
6290
|
+
_cachedContextMenuActions = [];
|
|
6291
|
+
_lastContextMenuActionsReference = null;
|
|
6293
6292
|
constructor(localization, zone, renderer, element, chatService) {
|
|
6294
6293
|
this.localization = localization;
|
|
6295
6294
|
this.zone = zone;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-conversational-ui",
|
|
3
|
-
"version": "21.2.0-develop.
|
|
3
|
+
"version": "21.2.0-develop.9",
|
|
4
4
|
"description": "Kendo UI for Angular Conversational UI components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"package": {
|
|
48
48
|
"productName": "Kendo UI for Angular",
|
|
49
49
|
"productCode": "KENDOUIANGULAR",
|
|
50
|
-
"publishDate":
|
|
50
|
+
"publishDate": 1764346634,
|
|
51
51
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"@angular/core": "18 - 21",
|
|
58
58
|
"@angular/platform-browser": "18 - 21",
|
|
59
59
|
"@progress/kendo-licensing": "^1.7.0",
|
|
60
|
-
"@progress/kendo-angular-buttons": "21.2.0-develop.
|
|
61
|
-
"@progress/kendo-angular-inputs": "21.2.0-develop.
|
|
62
|
-
"@progress/kendo-angular-layout": "21.2.0-develop.
|
|
63
|
-
"@progress/kendo-angular-icons": "21.2.0-develop.
|
|
64
|
-
"@progress/kendo-angular-common": "21.2.0-develop.
|
|
65
|
-
"@progress/kendo-angular-intl": "21.2.0-develop.
|
|
66
|
-
"@progress/kendo-angular-l10n": "21.2.0-develop.
|
|
67
|
-
"@progress/kendo-angular-menu": "21.2.0-develop.
|
|
68
|
-
"@progress/kendo-angular-popup": "21.2.0-develop.
|
|
69
|
-
"@progress/kendo-angular-toolbar": "21.2.0-develop.
|
|
70
|
-
"@progress/kendo-angular-upload": "21.2.0-develop.
|
|
60
|
+
"@progress/kendo-angular-buttons": "21.2.0-develop.9",
|
|
61
|
+
"@progress/kendo-angular-inputs": "21.2.0-develop.9",
|
|
62
|
+
"@progress/kendo-angular-layout": "21.2.0-develop.9",
|
|
63
|
+
"@progress/kendo-angular-icons": "21.2.0-develop.9",
|
|
64
|
+
"@progress/kendo-angular-common": "21.2.0-develop.9",
|
|
65
|
+
"@progress/kendo-angular-intl": "21.2.0-develop.9",
|
|
66
|
+
"@progress/kendo-angular-l10n": "21.2.0-develop.9",
|
|
67
|
+
"@progress/kendo-angular-menu": "21.2.0-develop.9",
|
|
68
|
+
"@progress/kendo-angular-popup": "21.2.0-develop.9",
|
|
69
|
+
"@progress/kendo-angular-toolbar": "21.2.0-develop.9",
|
|
70
|
+
"@progress/kendo-angular-upload": "21.2.0-develop.9",
|
|
71
71
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"tslib": "^2.3.1",
|
|
75
|
-
"@progress/kendo-angular-schematics": "21.2.0-develop.
|
|
75
|
+
"@progress/kendo-angular-schematics": "21.2.0-develop.9"
|
|
76
76
|
},
|
|
77
77
|
"schematics": "./schematics/collection.json",
|
|
78
78
|
"module": "fesm2022/progress-kendo-angular-conversational-ui.mjs",
|