@progress/kendo-angular-conversational-ui 22.1.0-develop.8 → 23.0.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/ai-prompt/aiprompt.component.d.ts +3 -3
- package/ai-prompt/localization/custom-messages.component.d.ts +1 -1
- package/ai-prompt/models/command-execute-event.d.ts +1 -1
- package/ai-prompt/models/command.interface.d.ts +2 -2
- package/ai-prompt/models/output-rating-change-event.d.ts +1 -1
- package/ai-prompt/models/prompt-request-event.d.ts +1 -1
- package/chat/api/action.interface.d.ts +3 -3
- package/chat/api/attachment.interface.d.ts +1 -1
- package/chat/api/chat-file-interface.d.ts +9 -9
- package/chat/api/chat-suggestion.interface.d.ts +5 -5
- package/chat/api/file-action.d.ts +8 -8
- package/chat/api/message-action.d.ts +8 -8
- package/chat/api/message-box.d.ts +28 -0
- package/chat/api/message-settings.interface.d.ts +9 -9
- package/chat/api/message-status.interface.d.ts +19 -0
- package/chat/api/message.interface.d.ts +7 -2
- package/chat/api/post-message-event.d.ts +10 -1
- package/chat/api/send-button-settings.d.ts +11 -2
- package/chat/api/user.interface.d.ts +2 -2
- package/chat/cards/hero-card.component.d.ts +5 -5
- package/chat/chat.component.d.ts +45 -14
- package/chat/common/chat.service.d.ts +14 -8
- package/chat/common/models/model-fields.d.ts +7 -1
- package/chat/common/scroll-anchor.directive.d.ts +10 -2
- package/chat/common/utils.d.ts +4 -2
- package/chat/l10n/custom-messages.component.d.ts +1 -1
- package/chat/l10n/messages.d.ts +15 -3
- package/chat/message-box.component.d.ts +16 -16
- package/chat/message.component.d.ts +7 -0
- package/chat/suggested-actions.component.d.ts +8 -1
- package/chat/templates/attachment-template.directive.d.ts +1 -1
- package/chat/templates/author-message-content-template.directive.d.ts +1 -1
- package/chat/templates/author-message-template.directive.d.ts +1 -1
- package/chat/templates/message-box.directive.d.ts +1 -1
- package/chat/templates/message-content-template.directive.d.ts +1 -1
- package/chat/templates/message-template.directive.d.ts +1 -1
- package/chat/templates/no-data-template.directive.d.ts +1 -1
- package/chat/templates/receiver-message-content-template.directive.d.ts +1 -1
- package/chat/templates/receiver-message-template.directive.d.ts +1 -1
- package/chat/templates/timestamp-template.directive.d.ts +1 -1
- package/chat/templates/user-status-template.directive.d.ts +1 -1
- package/conversational-ui.module.d.ts +10 -1
- package/directives.d.ts +28 -1
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +3938 -1389
- package/index.d.ts +11 -1
- package/inline-ai-prompt/localization/custom-messages.component.d.ts +1 -1
- package/inline-ai-prompt/models/command.interface.d.ts +2 -2
- package/package-metadata.mjs +2 -2
- package/package.json +15 -15
- package/promptbox/affixes/promptbox-end-affix.component.d.ts +26 -0
- package/promptbox/affixes/promptbox-start-affix.component.d.ts +26 -0
- package/promptbox/affixes/promptbox-top-affix.component.d.ts +26 -0
- package/promptbox/common/header-template.directive.d.ts +17 -0
- package/promptbox/common/models/action-button.d.ts +62 -0
- package/promptbox/common/models/fileselect-button.d.ts +62 -0
- package/{chat/common/models/message-box-options.d.ts → promptbox/common/models/index.d.ts} +3 -5
- package/promptbox/common/models/promptbox-mode.d.ts +12 -0
- package/promptbox/common/utils.d.ts +18 -0
- package/promptbox/localization/custom-messages.component.d.ts +26 -0
- package/promptbox/localization/localized-messages.directive.d.ts +16 -0
- package/promptbox/localization/messages.d.ts +37 -0
- package/promptbox/promptbox.component.d.ts +383 -0
- package/promptbox/tools/action-button.component.d.ts +63 -0
- package/promptbox/tools/base-tool.d.ts +62 -0
- package/promptbox/tools/fileselect-button.component.d.ts +63 -0
- package/promptbox/tools/promptbox-file.component.d.ts +30 -0
- package/promptbox/tools/speech-to-text-button.component.d.ts +87 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { SpeechToTextButtonSettings, SpeechToTextErrorEvent, SpeechToTextResultEvent } from '@progress/kendo-angular-buttons';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { FileInfo, SelectEvent } from '@progress/kendo-angular-upload';
|
|
10
|
+
import { PromptBoxEndAffixComponent } from './affixes/promptbox-end-affix.component';
|
|
11
|
+
import { PromptBoxStartAffixComponent } from './affixes/promptbox-start-affix.component';
|
|
12
|
+
import { PromptBoxTopAffixComponent } from './affixes/promptbox-top-affix.component';
|
|
13
|
+
import { PromptBoxHeaderTemplateDirective } from './common/header-template.directive';
|
|
14
|
+
import { ActionButtonEvent, ActionButtonSettings, FileSelectButtonSettings } from './common/models';
|
|
15
|
+
import { PromptBoxMode } from './common/models/promptbox-mode';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
/**
|
|
18
|
+
* Represents the Kendo UI PromptBox component for Angular.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-promptbox placeholder="Ask a question..."></kendo-promptbox>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Supported children components are: {@link PromptBoxCustomMessagesComponent}, {@link PromptBoxStartAffixComponent}, {@link PromptBoxEndAffixComponent}, {@link PromptBoxTopAffixComponent}, {@link PromptBoxSpeechToTextButtonComponent}, {@link PromptBoxActionButtonComponent}, {@link PromptBoxFileSelectButtonComponent}.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit {
|
|
30
|
+
private changeDetector;
|
|
31
|
+
private renderer;
|
|
32
|
+
private ngZone;
|
|
33
|
+
private localization;
|
|
34
|
+
hostElement: ElementRef;
|
|
35
|
+
hostClasses: string;
|
|
36
|
+
get hostSinglelineClass(): boolean;
|
|
37
|
+
get hostMultilineClass(): boolean;
|
|
38
|
+
get hostDisabledClass(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Enables or disables the PromptBox.
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
focusableId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Sets the loading state of the **Action** button.
|
|
51
|
+
*
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
loading: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the placeholder text displayed in the PromptBox when it is empty.
|
|
57
|
+
*
|
|
58
|
+
* @default ''
|
|
59
|
+
*/
|
|
60
|
+
placeholder: string;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the read-only state of the PromptBox. When set to `true`, the PromptBox content cannot be modified but remains accessible.
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
readonly: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the title attribute of the input or textarea element.
|
|
69
|
+
*
|
|
70
|
+
* @default ''
|
|
71
|
+
*/
|
|
72
|
+
title: string;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the mode of the PromptBox. [See example](slug:modes_promptbox).
|
|
75
|
+
* @default 'auto'
|
|
76
|
+
*/
|
|
77
|
+
set mode(promptBoxMode: PromptBoxMode);
|
|
78
|
+
get mode(): PromptBoxMode;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the number of visible text lines in the textarea. Applies only when the `mode` is set to `multi`.
|
|
81
|
+
*/
|
|
82
|
+
set rows(value: number);
|
|
83
|
+
get rows(): number;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the maximum height of the textarea in pixels.
|
|
86
|
+
* The textarea resizes automatically until it reaches this height. When the content exceeds this height, a scrollbar appears.
|
|
87
|
+
*/
|
|
88
|
+
set maxTextAreaHeight(value: number);
|
|
89
|
+
get maxTextAreaHeight(): number;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the value of the PromptBox.
|
|
92
|
+
*/
|
|
93
|
+
set value(value: string);
|
|
94
|
+
get value(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Controls the visibility and configuration of the **Action** button in the end affix.
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
set actionButton(settings: boolean | ActionButtonSettings);
|
|
101
|
+
get actionButton(): boolean | ActionButtonSettings;
|
|
102
|
+
/**
|
|
103
|
+
* Controls the visibility and configuration of the **File Select** button in the end affix.
|
|
104
|
+
*
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
set fileSelectButton(settings: boolean | FileSelectButtonSettings);
|
|
108
|
+
get fileSelectButton(): boolean | FileSelectButtonSettings;
|
|
109
|
+
/**
|
|
110
|
+
* Controls the visibility and configuration of the **Speech to Text** button in the end affix.
|
|
111
|
+
*
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
set speechToTextButton(settings: boolean | SpeechToTextButtonSettings);
|
|
115
|
+
get speechToTextButton(): boolean | SpeechToTextButtonSettings;
|
|
116
|
+
/**
|
|
117
|
+
* Fires each time the value of the PromptBox changes.
|
|
118
|
+
*/
|
|
119
|
+
valueChange: EventEmitter<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Fires each time the PromptBox is focused.
|
|
122
|
+
*/
|
|
123
|
+
onFocus: EventEmitter<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Fires each time the PromptBox gets blurred.
|
|
126
|
+
*/
|
|
127
|
+
onBlur: EventEmitter<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Fires each time the internal input element is focused.
|
|
130
|
+
*/
|
|
131
|
+
inputFocus: EventEmitter<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Fires each time the internal input element is blurred.
|
|
134
|
+
*/
|
|
135
|
+
inputBlur: EventEmitter<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Fires each time you click the **Action** button.
|
|
138
|
+
*/
|
|
139
|
+
promptAction: EventEmitter<ActionButtonEvent>;
|
|
140
|
+
/**
|
|
141
|
+
* Fires each time you select files using the **File Select** button.
|
|
142
|
+
*/
|
|
143
|
+
selectAttachments: EventEmitter<SelectEvent>;
|
|
144
|
+
/**
|
|
145
|
+
* Fires each time you remove a file from the PromptBox.
|
|
146
|
+
*/
|
|
147
|
+
fileRemove: EventEmitter<FileInfo>;
|
|
148
|
+
/**
|
|
149
|
+
* Fires each time you click the **Speech to Text** button.
|
|
150
|
+
*/
|
|
151
|
+
speechToTextClick: EventEmitter<any>;
|
|
152
|
+
/**
|
|
153
|
+
* Fires each time the speech recognition service begins listening to incoming audio.
|
|
154
|
+
*/
|
|
155
|
+
speechToTextStart: EventEmitter<any>;
|
|
156
|
+
/**
|
|
157
|
+
* Fires each time the speech recognition service disconnects.
|
|
158
|
+
*/
|
|
159
|
+
speechToTextEnd: EventEmitter<any>;
|
|
160
|
+
/**
|
|
161
|
+
* Fires when a speech recognition error occurs.
|
|
162
|
+
*/
|
|
163
|
+
speechToTextError: EventEmitter<SpeechToTextErrorEvent>;
|
|
164
|
+
/**
|
|
165
|
+
* Fires when the speech recognition service returns a result.
|
|
166
|
+
*/
|
|
167
|
+
speechToTextResult: EventEmitter<SpeechToTextResultEvent>;
|
|
168
|
+
/**
|
|
169
|
+
* @hidden
|
|
170
|
+
*/
|
|
171
|
+
inputElement: ElementRef<HTMLInputElement>;
|
|
172
|
+
/**
|
|
173
|
+
* @hidden
|
|
174
|
+
*/
|
|
175
|
+
textareaElement: ElementRef<HTMLTextAreaElement>;
|
|
176
|
+
/**
|
|
177
|
+
* @hidden
|
|
178
|
+
*/
|
|
179
|
+
filesList: ElementRef<HTMLUListElement>;
|
|
180
|
+
/**
|
|
181
|
+
* @hidden
|
|
182
|
+
*/
|
|
183
|
+
headerTemplate: PromptBoxHeaderTemplateDirective;
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
*/
|
|
187
|
+
startAffix: PromptBoxStartAffixComponent;
|
|
188
|
+
/**
|
|
189
|
+
* @hidden
|
|
190
|
+
*/
|
|
191
|
+
endAffix: PromptBoxEndAffixComponent;
|
|
192
|
+
/**
|
|
193
|
+
* @hidden
|
|
194
|
+
*/
|
|
195
|
+
topAffix: PromptBoxTopAffixComponent;
|
|
196
|
+
/**
|
|
197
|
+
* @hidden
|
|
198
|
+
*/
|
|
199
|
+
private speechToTextButtonComponent;
|
|
200
|
+
/**
|
|
201
|
+
* @hidden
|
|
202
|
+
*/
|
|
203
|
+
private actionButtonComponent;
|
|
204
|
+
/**
|
|
205
|
+
* @hidden
|
|
206
|
+
*/
|
|
207
|
+
private fileSelectButtonComponent;
|
|
208
|
+
/**
|
|
209
|
+
* @hidden
|
|
210
|
+
*/
|
|
211
|
+
get hasEndAffixContent(): boolean;
|
|
212
|
+
/**
|
|
213
|
+
* @hidden
|
|
214
|
+
*/
|
|
215
|
+
get isActionButtonDisabled(): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* @hidden
|
|
218
|
+
*/
|
|
219
|
+
get actionButtonSettings(): ActionButtonSettings;
|
|
220
|
+
/**
|
|
221
|
+
* @hidden
|
|
222
|
+
*/
|
|
223
|
+
get fileSelectButtonSettings(): FileSelectButtonSettings;
|
|
224
|
+
/**
|
|
225
|
+
* @hidden
|
|
226
|
+
*/
|
|
227
|
+
get speechToTextButtonSettings(): SpeechToTextButtonSettings;
|
|
228
|
+
/**
|
|
229
|
+
* @hidden
|
|
230
|
+
*/
|
|
231
|
+
get effectiveRows(): number;
|
|
232
|
+
/**
|
|
233
|
+
* @hidden
|
|
234
|
+
*/
|
|
235
|
+
hasExpanded: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* @hidden
|
|
238
|
+
*/
|
|
239
|
+
isListening: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Provides the currently attached files in the PromptBox component.
|
|
242
|
+
*/
|
|
243
|
+
attachments: FileInfo[];
|
|
244
|
+
/**
|
|
245
|
+
* @hidden
|
|
246
|
+
*/
|
|
247
|
+
filesListScrollAtStart: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* @hidden
|
|
250
|
+
*/
|
|
251
|
+
filesListScrollAtEnd: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* @hidden
|
|
254
|
+
*/
|
|
255
|
+
hasFilesOverflow: boolean;
|
|
256
|
+
private _value;
|
|
257
|
+
private _mode;
|
|
258
|
+
private _rows;
|
|
259
|
+
private initialHeight;
|
|
260
|
+
private singleRowHeight;
|
|
261
|
+
private singleLineWidth;
|
|
262
|
+
private _maxTextAreaHeight;
|
|
263
|
+
private _actionButtonSettings;
|
|
264
|
+
private _fileSelectButtonSettings;
|
|
265
|
+
private _speechToTextButtonSettings;
|
|
266
|
+
private hostWidthAtCapture;
|
|
267
|
+
private minMultiRowHeight;
|
|
268
|
+
private resizeSubscription;
|
|
269
|
+
private speechToTextSubscription;
|
|
270
|
+
private actionButtonSubscription;
|
|
271
|
+
private fileSelectSubscription;
|
|
272
|
+
private focusChangedProgrammatically;
|
|
273
|
+
private ngTouched;
|
|
274
|
+
private ngChange;
|
|
275
|
+
constructor(changeDetector: ChangeDetectorRef, renderer: Renderer2, ngZone: NgZone, localization: LocalizationService, hostElement: ElementRef);
|
|
276
|
+
ngAfterViewInit(): void;
|
|
277
|
+
ngOnDestroy(): void;
|
|
278
|
+
/**
|
|
279
|
+
* Focuses the PromptBox.
|
|
280
|
+
*/
|
|
281
|
+
focus(): void;
|
|
282
|
+
/**
|
|
283
|
+
* Blurs the PromptBox.
|
|
284
|
+
*/
|
|
285
|
+
blur(): void;
|
|
286
|
+
/**
|
|
287
|
+
* Clears all attached files from the PromptBox.
|
|
288
|
+
*/
|
|
289
|
+
clearAttachments(): void;
|
|
290
|
+
/**
|
|
291
|
+
* @hidden
|
|
292
|
+
*/
|
|
293
|
+
writeValue(value: string): void;
|
|
294
|
+
/**
|
|
295
|
+
* @hidden
|
|
296
|
+
*/
|
|
297
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
298
|
+
/**
|
|
299
|
+
* @hidden
|
|
300
|
+
*/
|
|
301
|
+
registerOnTouched(fn: () => void): void;
|
|
302
|
+
/**
|
|
303
|
+
* @hidden
|
|
304
|
+
*/
|
|
305
|
+
handleInput: (event: Event) => void;
|
|
306
|
+
/**
|
|
307
|
+
* @hidden
|
|
308
|
+
*/
|
|
309
|
+
handleInputFocus: () => void;
|
|
310
|
+
/**
|
|
311
|
+
* @hidden
|
|
312
|
+
*/
|
|
313
|
+
handleInputBlur: () => void;
|
|
314
|
+
/**
|
|
315
|
+
* @hidden
|
|
316
|
+
*/
|
|
317
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
318
|
+
/**
|
|
319
|
+
* @hidden
|
|
320
|
+
*/
|
|
321
|
+
handlePromptAction(event: ActionButtonEvent): void;
|
|
322
|
+
/**
|
|
323
|
+
* @hidden
|
|
324
|
+
*/
|
|
325
|
+
handleFileSelectAttachments(event: SelectEvent): void;
|
|
326
|
+
/**
|
|
327
|
+
* @hidden
|
|
328
|
+
*/
|
|
329
|
+
removeFile(index: number): void;
|
|
330
|
+
/**
|
|
331
|
+
* @hidden
|
|
332
|
+
*/
|
|
333
|
+
onFilesListScroll(filesList: HTMLDivElement): void;
|
|
334
|
+
/**
|
|
335
|
+
* @hidden
|
|
336
|
+
*/
|
|
337
|
+
handleSpeechToTextClick(event: any): void;
|
|
338
|
+
/**
|
|
339
|
+
* @hidden
|
|
340
|
+
*/
|
|
341
|
+
handleSpeechToTextStart(event: any): void;
|
|
342
|
+
/**
|
|
343
|
+
* @hidden
|
|
344
|
+
*/
|
|
345
|
+
handleSpeechToTextEnd(event: any): void;
|
|
346
|
+
/**
|
|
347
|
+
* @hidden
|
|
348
|
+
*/
|
|
349
|
+
handleSpeechToTextError(event: SpeechToTextErrorEvent): void;
|
|
350
|
+
/**
|
|
351
|
+
* @hidden
|
|
352
|
+
*/
|
|
353
|
+
handleSpeechToTextResult(event: SpeechToTextResultEvent): void;
|
|
354
|
+
/**
|
|
355
|
+
* @hidden
|
|
356
|
+
*/
|
|
357
|
+
textFor(key: string): string;
|
|
358
|
+
/**
|
|
359
|
+
* @hidden
|
|
360
|
+
*/
|
|
361
|
+
private handleFocus;
|
|
362
|
+
/**
|
|
363
|
+
* @hidden
|
|
364
|
+
*/
|
|
365
|
+
private handleBlur;
|
|
366
|
+
private attachResizeHandler;
|
|
367
|
+
private captureInitialDimensions;
|
|
368
|
+
private resize;
|
|
369
|
+
private resizeMultiMode;
|
|
370
|
+
private resizeAutoMode;
|
|
371
|
+
private updateHeight;
|
|
372
|
+
private shouldCollapse;
|
|
373
|
+
private calculateHeight;
|
|
374
|
+
private resetTextArea;
|
|
375
|
+
private checkFilesListScroll;
|
|
376
|
+
private update;
|
|
377
|
+
private updateComponentSettings;
|
|
378
|
+
private subscribeToSpeechToTextButton;
|
|
379
|
+
private subscribeToActionButton;
|
|
380
|
+
private subscribeToFileSelectButton;
|
|
381
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxComponent, never>;
|
|
382
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxComponent, "kendo-promptbox", ["kendoPromptBox"], { "disabled": { "alias": "disabled"; "required": false; }; "focusableId": { "alias": "focusableId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "title": { "alias": "title"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxTextAreaHeight": { "alias": "maxTextAreaHeight"; "required": false; }; "value": { "alias": "value"; "required": false; }; "actionButton": { "alias": "actionButton"; "required": false; }; "fileSelectButton": { "alias": "fileSelectButton"; "required": false; }; "speechToTextButton": { "alias": "speechToTextButton"; "required": false; }; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "promptAction": "promptAction"; "selectAttachments": "selectAttachments"; "fileRemove": "fileRemove"; "speechToTextClick": "speechToTextClick"; "speechToTextStart": "speechToTextStart"; "speechToTextEnd": "speechToTextEnd"; "speechToTextError": "speechToTextError"; "speechToTextResult": "speechToTextResult"; }, ["headerTemplate", "startAffix", "endAffix", "topAffix", "speechToTextButtonComponent", "actionButtonComponent", "fileSelectButtonComponent"], never, true, never>;
|
|
383
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
+
import { PromptBoxBaseTool } from './base-tool';
|
|
9
|
+
import { ActionButtonEvent } from '../common/models';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* Defines the **Action** button component for the PromptBox. Used to send messages or stop ongoing operations.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-promptbox>
|
|
17
|
+
* <kendo-promptbox-end-affix>
|
|
18
|
+
* <kendo-promptbox-action-button></kendo-promptbox-action-button>
|
|
19
|
+
* </kendo-promptbox-end-affix>
|
|
20
|
+
* </kendo-promptbox>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class PromptBoxActionButtonComponent extends PromptBoxBaseTool {
|
|
24
|
+
private localization;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
buttonClass: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the loading state of the **Action** button.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
loading: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the icon to be displayed when the **Action** button is in loading state.
|
|
37
|
+
*
|
|
38
|
+
* @default 'stop-sm'
|
|
39
|
+
*/
|
|
40
|
+
loadingIcon: string;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the SVG icon to be displayed when the **Action** button is in loading state.
|
|
43
|
+
*
|
|
44
|
+
* @default stopSmIcon
|
|
45
|
+
*/
|
|
46
|
+
loadingSVGIcon: SVGIcon;
|
|
47
|
+
/**
|
|
48
|
+
* Fires when the user clicks the Action button.
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
promptAction: EventEmitter<ActionButtonEvent>;
|
|
52
|
+
constructor(localization: LocalizationService);
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
handleClick(): void;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
textFor(key: string): string;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxActionButtonComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxActionButtonComponent, "kendo-promptbox-action-button", ["kendoPromptBoxActionButton"], { "buttonClass": { "alias": "buttonClass"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "loadingSVGIcon": { "alias": "loadingSVGIcon"; "required": false; }; }, { "promptAction": "promptAction"; }, never, never, true, never>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
* Base class for PromptBox tools.
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class PromptBoxBaseTool {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the disabled state of the button.
|
|
16
|
+
*/
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the background and border styles of the button.
|
|
20
|
+
*/
|
|
21
|
+
fillMode: ButtonFillMode;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the name of an existing font icon in the Kendo UI theme for the button.
|
|
24
|
+
*/
|
|
25
|
+
icon: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines a CSS class, or multiple classes separated by spaces, applied to a span element inside the button.
|
|
28
|
+
*/
|
|
29
|
+
iconClass: string;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies a URL for an img element inside the button.
|
|
32
|
+
*/
|
|
33
|
+
imageUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the SVG icon for the tool button.
|
|
36
|
+
*/
|
|
37
|
+
svgIcon: SVGIcon;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the border radius of the button.
|
|
40
|
+
*/
|
|
41
|
+
rounded: ButtonRounded;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the padding of the button.
|
|
44
|
+
*/
|
|
45
|
+
set size(value: ButtonSize);
|
|
46
|
+
get size(): ButtonSize;
|
|
47
|
+
/**
|
|
48
|
+
* Sets a predefined theme color for the button.
|
|
49
|
+
*/
|
|
50
|
+
themeColor: ButtonThemeColor;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the title attribute of the button.
|
|
53
|
+
*/
|
|
54
|
+
title: string;
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
58
|
+
sizeChange: EventEmitter<ButtonSize>;
|
|
59
|
+
private _size;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxBaseTool, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PromptBoxBaseTool, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "sizeChange": "sizeChange"; }, never, never, true, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { PromptBoxBaseTool } from './base-tool';
|
|
7
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { FileRestrictions, FileSelectComponent, SelectEvent } from '@progress/kendo-angular-upload';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* Defines the **File Select** button component for the PromptBox. Allows users to attach files to their messages.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-promptbox>
|
|
16
|
+
* <kendo-promptbox-end-affix>
|
|
17
|
+
* <kendo-promptbox-fileselect-button></kendo-promptbox-fileselect-button>
|
|
18
|
+
* </kendo-promptbox-end-affix>
|
|
19
|
+
* </kendo-promptbox>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class PromptBoxFileSelectButtonComponent extends PromptBoxBaseTool {
|
|
23
|
+
private localization;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
fileSelectComponent: FileSelectComponent;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the restrictions for selected files.
|
|
30
|
+
*/
|
|
31
|
+
restrictions: FileRestrictions;
|
|
32
|
+
/**
|
|
33
|
+
* Allows you to select multiple files.
|
|
34
|
+
*
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
multiple: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the `accept` attribute of the internal FileSelect component.
|
|
40
|
+
* Specifies the file types that the user can select.
|
|
41
|
+
*/
|
|
42
|
+
accept: string;
|
|
43
|
+
/**
|
|
44
|
+
* Fires when the user selects files.
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
selectAttachments: EventEmitter<SelectEvent>;
|
|
48
|
+
constructor(localization: LocalizationService);
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
textFor(key: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
selectFiles(): void;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
handleSelect(event: SelectEvent): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxFileSelectButtonComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxFileSelectButtonComponent, "kendo-promptbox-fileselect-button", ["kendoPromptBoxFileSelectButton"], { "restrictions": { "alias": "restrictions"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "selectAttachments": "selectAttachments"; }, never, never, true, never>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { FileInfo } from '@progress/kendo-angular-upload';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class PromptBoxFileComponent {
|
|
14
|
+
private localization;
|
|
15
|
+
promptBoxFile: FileInfo;
|
|
16
|
+
removable: boolean;
|
|
17
|
+
fileActions: any;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
remove: EventEmitter<FileInfo>;
|
|
20
|
+
deleteIcon: SVGIcon;
|
|
21
|
+
moreIcon: SVGIcon;
|
|
22
|
+
constructor(localization: LocalizationService);
|
|
23
|
+
fileThumbnail(extension: string): SVGIcon;
|
|
24
|
+
fileGroupClass(extension: string): string;
|
|
25
|
+
getTotalFilesSizeMessage(file: FileInfo): string;
|
|
26
|
+
textFor(key: string): string;
|
|
27
|
+
focus(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxFileComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxFileComponent, "li[promptBoxFile]", never, { "promptBoxFile": { "alias": "promptBoxFile"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "fileActions": { "alias": "fileActions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "remove": "remove"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { PromptBoxBaseTool } from './base-tool';
|
|
7
|
+
import { IntegrationMode } from '@progress/kendo-angular-buttons';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { SpeechToTextErrorEvent, SpeechToTextResultEvent } from '@progress/kendo-angular-buttons';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* Defines the **Speech to Text** button component for the PromptBox. Enables voice input through speech recognition.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-promptbox>
|
|
17
|
+
* <kendo-promptbox-end-affix>
|
|
18
|
+
* <kendo-promptbox-speech-to-text-button></kendo-promptbox-speech-to-text-button>
|
|
19
|
+
* </kendo-promptbox-end-affix>
|
|
20
|
+
* </kendo-promptbox>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class PromptBoxSpeechToTextButtonComponent extends PromptBoxBaseTool {
|
|
24
|
+
private localization;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies whether continuous results are returned for each recognition, or only a single result once recognition stops.
|
|
27
|
+
*
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
continuous: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
|
|
33
|
+
*
|
|
34
|
+
* @default 'webSpeech'
|
|
35
|
+
*/
|
|
36
|
+
integrationMode: IntegrationMode;
|
|
37
|
+
/**
|
|
38
|
+
* Sets whether interim results should be returned.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
interimResults: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Sets a `BCP 47` language for speech recognition.
|
|
45
|
+
*
|
|
46
|
+
* @default 'en-US'
|
|
47
|
+
*/
|
|
48
|
+
lang: string;
|
|
49
|
+
/**
|
|
50
|
+
* Represents the maximum number of alternative transcriptions to return for each result.
|
|
51
|
+
*
|
|
52
|
+
* @default 1
|
|
53
|
+
*/
|
|
54
|
+
maxAlternatives: number;
|
|
55
|
+
/**
|
|
56
|
+
* Fires when the user clicks the **Speech to Text** button.
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
stbClick: EventEmitter<any>;
|
|
60
|
+
/**
|
|
61
|
+
* Fires when the speech recognition service has begun listening to incoming audio.
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
stbStart: EventEmitter<any>;
|
|
65
|
+
/**
|
|
66
|
+
* Fires when the speech recognition service has disconnected.
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
stbEnd: EventEmitter<any>;
|
|
70
|
+
/**
|
|
71
|
+
* Fires when a speech recognition error occurs.
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
stbError: EventEmitter<SpeechToTextErrorEvent>;
|
|
75
|
+
/**
|
|
76
|
+
* Fires when the speech recognition service returns a result.
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
stbResult: EventEmitter<SpeechToTextResultEvent>;
|
|
80
|
+
constructor(localization: LocalizationService);
|
|
81
|
+
/**
|
|
82
|
+
* @hidden
|
|
83
|
+
*/
|
|
84
|
+
textFor(key: string): string;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxSpeechToTextButtonComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxSpeechToTextButtonComponent, "kendo-promptbox-speech-to-text-button", ["kendoPromptBoxSpeechToTextButton"], { "continuous": { "alias": "continuous"; "required": false; }; "integrationMode": { "alias": "integrationMode"; "required": false; }; "interimResults": { "alias": "interimResults"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "maxAlternatives": { "alias": "maxAlternatives"; "required": false; }; }, { "stbClick": "stbClick"; "stbStart": "stbStart"; "stbEnd": "stbEnd"; "stbError": "stbError"; "stbResult": "stbResult"; }, never, never, true, never>;
|
|
87
|
+
}
|