@progress/kendo-angular-conversational-ui 19.3.0-develop.36 → 19.3.0-develop.38

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.
@@ -5,7 +5,7 @@
5
5
  import { Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, NgZone, Output, Renderer2, ViewChild, ViewContainerRef, Optional, SkipSelf, inject, TemplateRef } from '@angular/core';
6
6
  import { NgIf, NgClass, NgTemplateOutlet, NgFor } from '@angular/common';
7
7
  import { Subscription } from 'rxjs';
8
- import { menuIcon, paperPlaneIcon, stopSmIcon, copyIcon, cancelOutlineIcon, arrowRotateCwIcon } from '@progress/kendo-svg-icons';
8
+ import { menuIcon, paperPlaneIcon, stopSmIcon } from '@progress/kendo-svg-icons';
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { KENDO_BUTTONS } from '@progress/kendo-angular-buttons';
@@ -14,7 +14,7 @@ import { TextAreaComponent, KENDO_TEXTAREA } from '@progress/kendo-angular-input
14
14
  import { ContextMenuComponent, KENDO_CONTEXTMENU } from '@progress/kendo-angular-menu';
15
15
  import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
16
16
  import { isDocumentAvailable, isPresent } from '@progress/kendo-angular-common';
17
- import { calculateMeasurement } from './utils';
17
+ import { calculateMeasurement, defaultOutputActions } from './utils';
18
18
  import { KENDO_CARD } from '@progress/kendo-angular-layout';
19
19
  import * as i0 from "@angular/core";
20
20
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -43,7 +43,7 @@ export class InlineAIPromptContentComponent {
43
43
  return this.calculateMeasurement(this.width);
44
44
  }
45
45
  popupElement;
46
- promptValue;
46
+ promptValue = "";
47
47
  placeholder;
48
48
  promptOutput;
49
49
  enableSpeechToText = true;
@@ -51,37 +51,7 @@ export class InlineAIPromptContentComponent {
51
51
  width = 550;
52
52
  maxHeight;
53
53
  appendTo;
54
- defaultOutputActions = [{
55
- name: 'copy',
56
- type: 'button',
57
- icon: 'copy',
58
- svgIcon: copyIcon,
59
- text: 'Copy',
60
- fillMode: 'flat',
61
- themeColor: 'primary',
62
- rounded: 'medium',
63
- },
64
- {
65
- name: 'retry',
66
- type: 'button',
67
- icon: 'arrow-rotate-cw',
68
- svgIcon: arrowRotateCwIcon,
69
- text: 'Retry',
70
- fillMode: 'flat',
71
- themeColor: 'primary',
72
- rounded: 'medium',
73
- },
74
- {
75
- name: 'discard',
76
- type: 'button',
77
- icon: 'cancel-outline',
78
- svgIcon: cancelOutlineIcon,
79
- text: 'Discard',
80
- fillMode: 'flat',
81
- themeColor: 'base',
82
- rounded: 'medium',
83
- }
84
- ];
54
+ defaultOutputActions = defaultOutputActions;
85
55
  set outputActions(actions) {
86
56
  this._outputActions = this.mergeWithDefaultActions(actions);
87
57
  }
@@ -253,7 +223,7 @@ export class InlineAIPromptContentComponent {
253
223
  return [];
254
224
  }
255
225
  return userActions.map(userAction => {
256
- const defaultAction = this.defaultOutputActions.find(action => action.name === userAction?.name);
226
+ const defaultAction = defaultOutputActions.find(action => action.name === userAction?.name);
257
227
  if (defaultAction) {
258
228
  return { ...defaultAction, ...userAction };
259
229
  }
@@ -10,7 +10,7 @@ import { InlineAIPromptContentComponent } from './inlineaiprompt-content.compone
10
10
  import { KENDO_POPUP, PopupComponent } from '@progress/kendo-angular-popup';
11
11
  import { take } from 'rxjs/operators';
12
12
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
13
- import { defaultPopupSettings, calculateMeasurement } from './utils';
13
+ import { defaultPopupSettings, calculateMeasurement, defaultOutputActions } from './utils';
14
14
  import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
15
15
  import { InlineAIPromptOutputTemplateDirective } from './output-template.directive';
16
16
  import * as i0 from "@angular/core";
@@ -36,7 +36,7 @@ export class InlineAIPromptComponent {
36
36
  /**
37
37
  * Sets the text of the TextArea.
38
38
  */
39
- promptValue;
39
+ promptValue = "";
40
40
  /**
41
41
  * Sets the placeholder text that appears in the text area when it is empty.
42
42
  */
@@ -71,12 +71,19 @@ export class InlineAIPromptComponent {
71
71
  * Accepts a number for pixels or a string for other units.
72
72
  */
73
73
  maxHeight;
74
+ /**
75
+ * Represents the configuration of the default output actions.
76
+ * The default actions are `copy`, `retry`, and `discard`.
77
+ */
78
+ defaultOutputActions = defaultOutputActions;
74
79
  /**
75
80
  * Sets the output actions that display in the output card.
76
81
  * The default actions are `copy`, `retry`, and `discard`.
77
82
  * To customize the appearance and order of the default actions, define them with the same `name`.
83
+ *
84
+ * @default [{ name: 'copy', type: 'button', icon: 'copy', svgIcon: copyIcon, text: 'Copy', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'retry', type: 'button', icon: 'arrow-rotate-cw', svgIcon: arrowRotateCwIcon, text: 'Retry', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'discard', type: 'button', icon: 'cancel-outline', svgIcon: cancelOutlineIcon, text: 'Discard', fillMode: 'flat', themeColor: 'base', rounded: 'medium'}]
78
85
  */
79
- outputActions;
86
+ outputActions = defaultOutputActions;
80
87
  /**
81
88
  * Sets the available prompt commands.
82
89
  */
@@ -107,7 +114,7 @@ export class InlineAIPromptComponent {
107
114
  */
108
115
  promptRequestCancel = new EventEmitter();
109
116
  /**
110
- * Fires when the component closes, either by clicking outside the popup or by clicking the Discard action.
117
+ * Fires when the component closes, either by clicking outside the popup, clicking the Discard action, or after pressing the Escape key.
111
118
  */
112
119
  close = new EventEmitter();
113
120
  /**
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2025 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
+ import { copyIcon, arrowRotateCwIcon, cancelOutlineIcon } from "@progress/kendo-svg-icons";
5
6
  /**
6
7
  * @hidden
7
8
  */
@@ -20,3 +21,37 @@ export const defaultPopupSettings = {
20
21
  export const calculateMeasurement = (value) => {
21
22
  return value + (typeof value === 'number' ? 'px' : '');
22
23
  };
24
+ /**
25
+ * @hidden
26
+ */
27
+ export const defaultOutputActions = [{
28
+ name: 'copy',
29
+ type: 'button',
30
+ icon: 'copy',
31
+ svgIcon: copyIcon,
32
+ text: 'Copy',
33
+ fillMode: 'flat',
34
+ themeColor: 'primary',
35
+ rounded: 'medium',
36
+ },
37
+ {
38
+ name: 'retry',
39
+ type: 'button',
40
+ icon: 'arrow-rotate-cw',
41
+ svgIcon: arrowRotateCwIcon,
42
+ text: 'Retry',
43
+ fillMode: 'flat',
44
+ themeColor: 'primary',
45
+ rounded: 'medium',
46
+ },
47
+ {
48
+ name: 'discard',
49
+ type: 'button',
50
+ icon: 'cancel-outline',
51
+ svgIcon: cancelOutlineIcon,
52
+ text: 'Discard',
53
+ fillMode: 'flat',
54
+ themeColor: 'base',
55
+ rounded: 'medium',
56
+ }
57
+ ];
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1754913527,
14
- version: '19.3.0-develop.36',
13
+ publishDate: 1754928105,
14
+ version: '19.3.0-develop.38',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -142,8 +142,8 @@ const packageMetadata = {
142
142
  productName: 'Kendo UI for Angular',
143
143
  productCode: 'KENDOUIANGULAR',
144
144
  productCodes: ['KENDOUIANGULAR'],
145
- publishDate: 1754913527,
146
- version: '19.3.0-develop.36',
145
+ publishDate: 1754928105,
146
+ version: '19.3.0-develop.38',
147
147
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
148
148
  };
149
149
 
@@ -3872,6 +3872,40 @@ const defaultPopupSettings = {
3872
3872
  const calculateMeasurement = (value) => {
3873
3873
  return value + (typeof value === 'number' ? 'px' : '');
3874
3874
  };
3875
+ /**
3876
+ * @hidden
3877
+ */
3878
+ const defaultOutputActions = [{
3879
+ name: 'copy',
3880
+ type: 'button',
3881
+ icon: 'copy',
3882
+ svgIcon: copyIcon,
3883
+ text: 'Copy',
3884
+ fillMode: 'flat',
3885
+ themeColor: 'primary',
3886
+ rounded: 'medium',
3887
+ },
3888
+ {
3889
+ name: 'retry',
3890
+ type: 'button',
3891
+ icon: 'arrow-rotate-cw',
3892
+ svgIcon: arrowRotateCwIcon,
3893
+ text: 'Retry',
3894
+ fillMode: 'flat',
3895
+ themeColor: 'primary',
3896
+ rounded: 'medium',
3897
+ },
3898
+ {
3899
+ name: 'discard',
3900
+ type: 'button',
3901
+ icon: 'cancel-outline',
3902
+ svgIcon: cancelOutlineIcon,
3903
+ text: 'Discard',
3904
+ fillMode: 'flat',
3905
+ themeColor: 'base',
3906
+ rounded: 'medium',
3907
+ }
3908
+ ];
3875
3909
 
3876
3910
  const TEXTAREA_MAX_ROWS = 5;
3877
3911
  const TEXTAREA_INITIAL_ROWS = 1;
@@ -3894,7 +3928,7 @@ class InlineAIPromptContentComponent {
3894
3928
  return this.calculateMeasurement(this.width);
3895
3929
  }
3896
3930
  popupElement;
3897
- promptValue;
3931
+ promptValue = "";
3898
3932
  placeholder;
3899
3933
  promptOutput;
3900
3934
  enableSpeechToText = true;
@@ -3902,37 +3936,7 @@ class InlineAIPromptContentComponent {
3902
3936
  width = 550;
3903
3937
  maxHeight;
3904
3938
  appendTo;
3905
- defaultOutputActions = [{
3906
- name: 'copy',
3907
- type: 'button',
3908
- icon: 'copy',
3909
- svgIcon: copyIcon,
3910
- text: 'Copy',
3911
- fillMode: 'flat',
3912
- themeColor: 'primary',
3913
- rounded: 'medium',
3914
- },
3915
- {
3916
- name: 'retry',
3917
- type: 'button',
3918
- icon: 'arrow-rotate-cw',
3919
- svgIcon: arrowRotateCwIcon,
3920
- text: 'Retry',
3921
- fillMode: 'flat',
3922
- themeColor: 'primary',
3923
- rounded: 'medium',
3924
- },
3925
- {
3926
- name: 'discard',
3927
- type: 'button',
3928
- icon: 'cancel-outline',
3929
- svgIcon: cancelOutlineIcon,
3930
- text: 'Discard',
3931
- fillMode: 'flat',
3932
- themeColor: 'base',
3933
- rounded: 'medium',
3934
- }
3935
- ];
3939
+ defaultOutputActions = defaultOutputActions;
3936
3940
  set outputActions(actions) {
3937
3941
  this._outputActions = this.mergeWithDefaultActions(actions);
3938
3942
  }
@@ -4104,7 +4108,7 @@ class InlineAIPromptContentComponent {
4104
4108
  return [];
4105
4109
  }
4106
4110
  return userActions.map(userAction => {
4107
- const defaultAction = this.defaultOutputActions.find(action => action.name === userAction?.name);
4111
+ const defaultAction = defaultOutputActions.find(action => action.name === userAction?.name);
4108
4112
  if (defaultAction) {
4109
4113
  return { ...defaultAction, ...userAction };
4110
4114
  }
@@ -4456,7 +4460,7 @@ class InlineAIPromptComponent {
4456
4460
  /**
4457
4461
  * Sets the text of the TextArea.
4458
4462
  */
4459
- promptValue;
4463
+ promptValue = "";
4460
4464
  /**
4461
4465
  * Sets the placeholder text that appears in the text area when it is empty.
4462
4466
  */
@@ -4491,12 +4495,19 @@ class InlineAIPromptComponent {
4491
4495
  * Accepts a number for pixels or a string for other units.
4492
4496
  */
4493
4497
  maxHeight;
4498
+ /**
4499
+ * Represents the configuration of the default output actions.
4500
+ * The default actions are `copy`, `retry`, and `discard`.
4501
+ */
4502
+ defaultOutputActions = defaultOutputActions;
4494
4503
  /**
4495
4504
  * Sets the output actions that display in the output card.
4496
4505
  * The default actions are `copy`, `retry`, and `discard`.
4497
4506
  * To customize the appearance and order of the default actions, define them with the same `name`.
4507
+ *
4508
+ * @default [{ name: 'copy', type: 'button', icon: 'copy', svgIcon: copyIcon, text: 'Copy', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'retry', type: 'button', icon: 'arrow-rotate-cw', svgIcon: arrowRotateCwIcon, text: 'Retry', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'discard', type: 'button', icon: 'cancel-outline', svgIcon: cancelOutlineIcon, text: 'Discard', fillMode: 'flat', themeColor: 'base', rounded: 'medium'}]
4498
4509
  */
4499
- outputActions;
4510
+ outputActions = defaultOutputActions;
4500
4511
  /**
4501
4512
  * Sets the available prompt commands.
4502
4513
  */
@@ -4527,7 +4538,7 @@ class InlineAIPromptComponent {
4527
4538
  */
4528
4539
  promptRequestCancel = new EventEmitter();
4529
4540
  /**
4530
- * Fires when the component closes, either by clicking outside the popup or by clicking the Discard action.
4541
+ * Fires when the component closes, either by clicking outside the popup, clicking the Discard action, or after pressing the Escape key.
4531
4542
  */
4532
4543
  close = new EventEmitter();
4533
4544
  /**
@@ -65,10 +65,17 @@ export declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy
65
65
  * Accepts a number for pixels or a string for other units.
66
66
  */
67
67
  maxHeight: number | string;
68
+ /**
69
+ * Represents the configuration of the default output actions.
70
+ * The default actions are `copy`, `retry`, and `discard`.
71
+ */
72
+ defaultOutputActions: InlineAIPromptOutputAction[];
68
73
  /**
69
74
  * Sets the output actions that display in the output card.
70
75
  * The default actions are `copy`, `retry`, and `discard`.
71
76
  * To customize the appearance and order of the default actions, define them with the same `name`.
77
+ *
78
+ * @default [{ name: 'copy', type: 'button', icon: 'copy', svgIcon: copyIcon, text: 'Copy', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'retry', type: 'button', icon: 'arrow-rotate-cw', svgIcon: arrowRotateCwIcon, text: 'Retry', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'discard', type: 'button', icon: 'cancel-outline', svgIcon: cancelOutlineIcon, text: 'Discard', fillMode: 'flat', themeColor: 'base', rounded: 'medium'}]
72
79
  */
73
80
  outputActions: InlineAIPromptOutputAction[];
74
81
  /**
@@ -97,7 +104,7 @@ export declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy
97
104
  */
98
105
  promptRequestCancel: EventEmitter<void>;
99
106
  /**
100
- * Fires when the component closes, either by clicking outside the popup or by clicking the Discard action.
107
+ * Fires when the component closes, either by clicking outside the popup, clicking the Discard action, or after pressing the Escape key.
101
108
  */
102
109
  close: EventEmitter<void>;
103
110
  /**
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 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
- import { InlineAIPromptPopupSettings } from "./models";
5
+ import { InlineAIPromptOutputAction, InlineAIPromptPopupSettings } from "./models";
6
6
  /**
7
7
  * @hidden
8
8
  */
@@ -11,3 +11,7 @@ export declare const defaultPopupSettings: InlineAIPromptPopupSettings;
11
11
  * @hidden
12
12
  */
13
13
  export declare const calculateMeasurement: (value: string | number) => string;
14
+ /**
15
+ * @hidden
16
+ */
17
+ export declare const defaultOutputActions: InlineAIPromptOutputAction[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-conversational-ui",
3
- "version": "19.3.0-develop.36",
3
+ "version": "19.3.0-develop.38",
4
4
  "description": "Kendo UI for Angular Conversational UI components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -20,7 +20,7 @@
20
20
  "package": {
21
21
  "productName": "Kendo UI for Angular",
22
22
  "productCode": "KENDOUIANGULAR",
23
- "publishDate": 1754913527,
23
+ "publishDate": 1754928105,
24
24
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
25
25
  }
26
26
  },
@@ -30,20 +30,20 @@
30
30
  "@angular/core": "16 - 20",
31
31
  "@angular/platform-browser": "16 - 20",
32
32
  "@progress/kendo-licensing": "^1.7.0",
33
- "@progress/kendo-angular-buttons": "19.3.0-develop.36",
34
- "@progress/kendo-angular-inputs": "19.3.0-develop.36",
35
- "@progress/kendo-angular-layout": "19.3.0-develop.36",
36
- "@progress/kendo-angular-icons": "19.3.0-develop.36",
37
- "@progress/kendo-angular-common": "19.3.0-develop.36",
38
- "@progress/kendo-angular-intl": "19.3.0-develop.36",
39
- "@progress/kendo-angular-l10n": "19.3.0-develop.36",
40
- "@progress/kendo-angular-menu": "19.3.0-develop.36",
41
- "@progress/kendo-angular-popup": "19.3.0-develop.36",
33
+ "@progress/kendo-angular-buttons": "19.3.0-develop.38",
34
+ "@progress/kendo-angular-inputs": "19.3.0-develop.38",
35
+ "@progress/kendo-angular-layout": "19.3.0-develop.38",
36
+ "@progress/kendo-angular-icons": "19.3.0-develop.38",
37
+ "@progress/kendo-angular-common": "19.3.0-develop.38",
38
+ "@progress/kendo-angular-intl": "19.3.0-develop.38",
39
+ "@progress/kendo-angular-l10n": "19.3.0-develop.38",
40
+ "@progress/kendo-angular-menu": "19.3.0-develop.38",
41
+ "@progress/kendo-angular-popup": "19.3.0-develop.38",
42
42
  "rxjs": "^6.5.3 || ^7.0.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "tslib": "^2.3.1",
46
- "@progress/kendo-angular-schematics": "19.3.0-develop.36"
46
+ "@progress/kendo-angular-schematics": "19.3.0-develop.38"
47
47
  },
48
48
  "schematics": "./schematics/collection.json",
49
49
  "module": "fesm2022/progress-kendo-angular-conversational-ui.mjs",