@progress/kendo-angular-conversational-ui 21.2.0-develop.9 → 21.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/esm2022/ai-prompt/common/toolbar-focusable.directive.mjs +2 -2
- package/esm2022/chat/message-attachments.component.mjs +2 -2
- package/esm2022/chat/message-list.component.mjs +2 -2
- package/esm2022/chat/message.component.mjs +2 -2
- package/esm2022/chat/suggested-actions.component.mjs +3 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +9 -9
- package/package.json +14 -14
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, ElementRef, Renderer2 } from '@angular/core';
|
|
6
6
|
import { ToolbarNavigationService } from './toolbar-navigation.service';
|
|
7
|
-
import { Keys, focusableSelector,
|
|
7
|
+
import { Keys, focusableSelector, normalizeKeys } from '@progress/kendo-angular-common';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "./toolbar-navigation.service";
|
|
10
10
|
/**
|
|
@@ -38,7 +38,7 @@ export class AIPromptToolbarFocusableDirective {
|
|
|
38
38
|
this.element.focus();
|
|
39
39
|
}
|
|
40
40
|
keyDownHandler = (e) => {
|
|
41
|
-
const code =
|
|
41
|
+
const code = normalizeKeys(e);
|
|
42
42
|
const targetsSelf = e.target === this.element;
|
|
43
43
|
const isLeftArrow = code === Keys.ArrowLeft;
|
|
44
44
|
const isRightArrow = code === Keys.ArrowRight;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { Component, ElementRef, forwardRef, HostBinding, Input, NgZone, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
|
7
7
|
import { fromEvent } from 'rxjs';
|
|
8
8
|
import { debounceTime } from 'rxjs/operators';
|
|
9
|
-
import { Keys,
|
|
9
|
+
import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
10
10
|
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
11
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
@@ -81,7 +81,7 @@ export class MessageAttachmentsComponent extends ChatItem {
|
|
|
81
81
|
itemKeydown(e, attachment) {
|
|
82
82
|
const keyHandlers = this.layout === 'list' ?
|
|
83
83
|
this.listKeyHandlers : this.carouselKeyHandlers;
|
|
84
|
-
const code =
|
|
84
|
+
const code = normalizeKeys(e);
|
|
85
85
|
const handler = keyHandlers[code];
|
|
86
86
|
if (handler) {
|
|
87
87
|
handler(e, attachment);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, Input, Output, QueryList, Renderer2, ViewChildren } from '@angular/core';
|
|
8
8
|
import { NgTemplateOutlet } from '@angular/common';
|
|
9
9
|
import { ExecuteActionEvent } from './api';
|
|
10
|
-
import { isPresent, Keys,
|
|
10
|
+
import { isPresent, Keys, normalizeKeys, ResizeSensorComponent } from '@progress/kendo-angular-common';
|
|
11
11
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
12
12
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
13
13
|
import { closest, DOWNLOAD_ALL_SELECTOR, FILE_ACTION_BTN_SELECTOR } from './common/utils';
|
|
@@ -148,7 +148,7 @@ export class MessageListComponent {
|
|
|
148
148
|
}
|
|
149
149
|
onKeydown(e) {
|
|
150
150
|
// On some keyboards Numpad keys are used for Home/End/PageUp/PageDown.
|
|
151
|
-
const code =
|
|
151
|
+
const code = normalizeKeys(e);
|
|
152
152
|
const action = this.keyActions[code];
|
|
153
153
|
if (action) {
|
|
154
154
|
action(e);
|
|
@@ -18,7 +18,7 @@ import { isAuthor } from './chat-view';
|
|
|
18
18
|
import { ChatFileComponent } from './chat-file.component';
|
|
19
19
|
import { MessageReferenceComponent } from './message-reference-content.component';
|
|
20
20
|
import { ChatStatusTemplateDirective } from './templates/status-template.directive';
|
|
21
|
-
import { isPresent, Keys,
|
|
21
|
+
import { isPresent, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
22
22
|
import { MessageTemplateDirective } from './templates/message-template.directive';
|
|
23
23
|
import { AuthorMessageContentTemplateDirective } from './templates/author-message-content-template.directive';
|
|
24
24
|
import { ReceiverMessageContentTemplateDirective } from './templates/receiver-message-content-template.directive';
|
|
@@ -225,7 +225,7 @@ export class MessageComponent extends ChatItem {
|
|
|
225
225
|
this.chatService.toggleMessageState = false;
|
|
226
226
|
}
|
|
227
227
|
onExpandableKeydown(event) {
|
|
228
|
-
const key =
|
|
228
|
+
const key = normalizeKeys(event);
|
|
229
229
|
const isFileActionButton = event.target.closest(FILE_ACTION_BTN_SELECTOR) || event.target.closest(DOWNLOAD_ALL_SELECTOR);
|
|
230
230
|
if (!isFileActionButton && (key === Keys.Enter || key === Keys.Space)) {
|
|
231
231
|
event.preventDefault();
|
|
@@ -8,7 +8,7 @@ import { Component, ElementRef, EventEmitter, forwardRef, HostBinding, Input, Ou
|
|
|
8
8
|
import { NgTemplateOutlet } from '@angular/common';
|
|
9
9
|
import { Subscription } from 'rxjs';
|
|
10
10
|
import { take } from 'rxjs/operators';
|
|
11
|
-
import { Keys,
|
|
11
|
+
import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
12
12
|
import { ChatItem } from './chat-item';
|
|
13
13
|
import { ChatSuggestionTemplateDirective } from './templates/suggestion-template.directive';
|
|
14
14
|
import { ChatService } from './common/chat.service';
|
|
@@ -161,13 +161,13 @@ export class SuggestedActionsComponent extends ChatItem {
|
|
|
161
161
|
this.activeIndex = apply ? index : -1;
|
|
162
162
|
}
|
|
163
163
|
actionKeydown(e, action) {
|
|
164
|
-
const handler = this.actionKeyHandlers[
|
|
164
|
+
const handler = this.actionKeyHandlers[normalizeKeys(e)];
|
|
165
165
|
if (handler) {
|
|
166
166
|
handler(e, action);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
suggestionKeydown(e, suggestion) {
|
|
170
|
-
const handler = this.suggestionKeyHandlers[
|
|
170
|
+
const handler = this.suggestionKeyHandlers[normalizeKeys(e)];
|
|
171
171
|
if (handler) {
|
|
172
172
|
handler(e, suggestion);
|
|
173
173
|
}
|
|
@@ -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.
|
|
13
|
+
publishDate: 1764778759,
|
|
14
|
+
version: '21.3.0-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -7,7 +7,7 @@ import { InjectionToken, Directive, Inject, HostBinding, ViewChild, Input, Injec
|
|
|
7
7
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
8
8
|
import * as i1$2 from '@progress/kendo-angular-popup';
|
|
9
9
|
import { PopupComponent, KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { isPresent,
|
|
10
|
+
import { isPresent, normalizeKeys, Keys, focusableSelector, guid, getter, isDocumentAvailable, closest as closest$1, ResizeSensorComponent, isChanged, processCssValue, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
11
11
|
import { DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { NgTemplateOutlet, NgClass } from '@angular/common';
|
|
13
13
|
import { Subject, Subscription, fromEvent } from 'rxjs';
|
|
@@ -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.
|
|
219
|
+
publishDate: 1764778759,
|
|
220
|
+
version: '21.3.0-develop.1',
|
|
221
221
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
222
222
|
};
|
|
223
223
|
|
|
@@ -404,7 +404,7 @@ class AIPromptToolbarFocusableDirective {
|
|
|
404
404
|
this.element.focus();
|
|
405
405
|
}
|
|
406
406
|
keyDownHandler = (e) => {
|
|
407
|
-
const code =
|
|
407
|
+
const code = normalizeKeys(e);
|
|
408
408
|
const targetsSelf = e.target === this.element;
|
|
409
409
|
const isLeftArrow = code === Keys.ArrowLeft;
|
|
410
410
|
const isRightArrow = code === Keys.ArrowRight;
|
|
@@ -2664,13 +2664,13 @@ class SuggestedActionsComponent extends ChatItem {
|
|
|
2664
2664
|
this.activeIndex = apply ? index : -1;
|
|
2665
2665
|
}
|
|
2666
2666
|
actionKeydown(e, action) {
|
|
2667
|
-
const handler = this.actionKeyHandlers[
|
|
2667
|
+
const handler = this.actionKeyHandlers[normalizeKeys(e)];
|
|
2668
2668
|
if (handler) {
|
|
2669
2669
|
handler(e, action);
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
2672
|
suggestionKeydown(e, suggestion) {
|
|
2673
|
-
const handler = this.suggestionKeyHandlers[
|
|
2673
|
+
const handler = this.suggestionKeyHandlers[normalizeKeys(e)];
|
|
2674
2674
|
if (handler) {
|
|
2675
2675
|
handler(e, suggestion);
|
|
2676
2676
|
}
|
|
@@ -4170,7 +4170,7 @@ class MessageComponent extends ChatItem {
|
|
|
4170
4170
|
this.chatService.toggleMessageState = false;
|
|
4171
4171
|
}
|
|
4172
4172
|
onExpandableKeydown(event) {
|
|
4173
|
-
const key =
|
|
4173
|
+
const key = normalizeKeys(event);
|
|
4174
4174
|
const isFileActionButton = event.target.closest(FILE_ACTION_BTN_SELECTOR) || event.target.closest(DOWNLOAD_ALL_SELECTOR);
|
|
4175
4175
|
if (!isFileActionButton && (key === Keys.Enter || key === Keys.Space)) {
|
|
4176
4176
|
event.preventDefault();
|
|
@@ -4849,7 +4849,7 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
|
4849
4849
|
itemKeydown(e, attachment) {
|
|
4850
4850
|
const keyHandlers = this.layout === 'list' ?
|
|
4851
4851
|
this.listKeyHandlers : this.carouselKeyHandlers;
|
|
4852
|
-
const code =
|
|
4852
|
+
const code = normalizeKeys(e);
|
|
4853
4853
|
const handler = keyHandlers[code];
|
|
4854
4854
|
if (handler) {
|
|
4855
4855
|
handler(e, attachment);
|
|
@@ -5176,7 +5176,7 @@ class MessageListComponent {
|
|
|
5176
5176
|
}
|
|
5177
5177
|
onKeydown(e) {
|
|
5178
5178
|
// On some keyboards Numpad keys are used for Home/End/PageUp/PageDown.
|
|
5179
|
-
const code =
|
|
5179
|
+
const code = normalizeKeys(e);
|
|
5180
5180
|
const action = this.keyActions[code];
|
|
5181
5181
|
if (action) {
|
|
5182
5182
|
action(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-conversational-ui",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.0-develop.1",
|
|
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": 1764778759,
|
|
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.
|
|
61
|
-
"@progress/kendo-angular-inputs": "21.
|
|
62
|
-
"@progress/kendo-angular-layout": "21.
|
|
63
|
-
"@progress/kendo-angular-icons": "21.
|
|
64
|
-
"@progress/kendo-angular-common": "21.
|
|
65
|
-
"@progress/kendo-angular-intl": "21.
|
|
66
|
-
"@progress/kendo-angular-l10n": "21.
|
|
67
|
-
"@progress/kendo-angular-menu": "21.
|
|
68
|
-
"@progress/kendo-angular-popup": "21.
|
|
69
|
-
"@progress/kendo-angular-toolbar": "21.
|
|
70
|
-
"@progress/kendo-angular-upload": "21.
|
|
60
|
+
"@progress/kendo-angular-buttons": "21.3.0-develop.1",
|
|
61
|
+
"@progress/kendo-angular-inputs": "21.3.0-develop.1",
|
|
62
|
+
"@progress/kendo-angular-layout": "21.3.0-develop.1",
|
|
63
|
+
"@progress/kendo-angular-icons": "21.3.0-develop.1",
|
|
64
|
+
"@progress/kendo-angular-common": "21.3.0-develop.1",
|
|
65
|
+
"@progress/kendo-angular-intl": "21.3.0-develop.1",
|
|
66
|
+
"@progress/kendo-angular-l10n": "21.3.0-develop.1",
|
|
67
|
+
"@progress/kendo-angular-menu": "21.3.0-develop.1",
|
|
68
|
+
"@progress/kendo-angular-popup": "21.3.0-develop.1",
|
|
69
|
+
"@progress/kendo-angular-toolbar": "21.3.0-develop.1",
|
|
70
|
+
"@progress/kendo-angular-upload": "21.3.0-develop.1",
|
|
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.
|
|
75
|
+
"@progress/kendo-angular-schematics": "21.3.0-develop.1"
|
|
76
76
|
},
|
|
77
77
|
"schematics": "./schematics/collection.json",
|
|
78
78
|
"module": "fesm2022/progress-kendo-angular-conversational-ui.mjs",
|