@progress/kendo-angular-conversational-ui 25.1.0-develop.3 → 25.1.0-develop.4
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/fesm2022/progress-kendo-angular-conversational-ui.mjs +1908 -579
- package/index.d.ts +600 -209
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { SafeUrl } from '@angular/platform-browser';
|
|
|
7
7
|
import { ButtonSettings, SpeechToTextButtonSettings, FloatingActionButtonComponent, FabPositionMode, FabAlign, ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor, SpeechToTextErrorEvent, SpeechToTextResultEvent, IntegrationMode } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { SVGIcon as SVGIcon$1 } from '@progress/kendo-angular-icons';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, Renderer2, OnInit,
|
|
10
|
+
import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, Renderer2, OnInit, AfterContentChecked, NgZone, Injector, QueryList, EventEmitter, ViewContainerRef, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
11
11
|
import { LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import * as rxjs from 'rxjs';
|
|
13
13
|
import { Subject } from 'rxjs';
|
|
@@ -563,7 +563,6 @@ declare abstract class BaseView {
|
|
|
563
563
|
* @hidden
|
|
564
564
|
*/
|
|
565
565
|
template: TemplateRef<any>;
|
|
566
|
-
constructor(viewType: ViewType, localization: LocalizationService);
|
|
567
566
|
/**
|
|
568
567
|
* Sets the text for the Toolbar button of the current view.
|
|
569
568
|
*/
|
|
@@ -579,13 +578,14 @@ declare abstract class BaseView {
|
|
|
579
578
|
*/
|
|
580
579
|
set svgIcon(value: SVGIcon);
|
|
581
580
|
get svgIcon(): SVGIcon;
|
|
581
|
+
private _buttonText;
|
|
582
|
+
private _icon;
|
|
583
|
+
private _svgIcon;
|
|
584
|
+
constructor(viewType: ViewType, localization: LocalizationService);
|
|
582
585
|
/**
|
|
583
586
|
* @hidden
|
|
584
587
|
*/
|
|
585
588
|
messageFor(text: string): string;
|
|
586
|
-
private _buttonText;
|
|
587
|
-
private _icon;
|
|
588
|
-
private _svgIcon;
|
|
589
589
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseView, never>;
|
|
590
590
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseView, never, never, { "buttonText": { "alias": "buttonText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; }, {}, never, never, true, never>;
|
|
591
591
|
}
|
|
@@ -802,21 +802,37 @@ declare class AIPromptOutputBodyTemplateDirective {
|
|
|
802
802
|
*/
|
|
803
803
|
declare class AIPromptService {
|
|
804
804
|
aiPrompt: AIPromptComponent;
|
|
805
|
-
promptValue: string;
|
|
806
|
-
|
|
805
|
+
set promptValue(value: string);
|
|
806
|
+
get promptValue(): string;
|
|
807
|
+
set showOutputRating(value: boolean);
|
|
808
|
+
get showOutputRating(): boolean;
|
|
809
|
+
set promptCommands(value: Array<PromptCommand>);
|
|
810
|
+
get promptCommands(): Array<PromptCommand>;
|
|
811
|
+
set promptOutputs(value: Array<PromptOutput>);
|
|
812
|
+
get promptOutputs(): Array<PromptOutput>;
|
|
813
|
+
set promptSuggestions(value: Array<string>);
|
|
814
|
+
get promptSuggestions(): Array<string>;
|
|
815
|
+
set textAreaSettings(value: TextAreaSettings);
|
|
816
|
+
get textAreaSettings(): TextAreaSettings;
|
|
807
817
|
requestEvent: Subject<PromptRequestEvent>;
|
|
808
818
|
executeEvent: Subject<CommandExecuteEvent>;
|
|
809
819
|
outputCopyEvent: Subject<PromptOutput>;
|
|
810
820
|
outputRatingChangeEvent: Subject<OutputRatingChangeEvent>;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
outputTemplate: AIPromptOutputTemplateDirective;
|
|
816
|
-
outputBodyTemplate: AIPromptOutputBodyTemplateDirective;
|
|
817
|
-
private _speechToTextButton;
|
|
821
|
+
set outputTemplate(value: AIPromptOutputTemplateDirective);
|
|
822
|
+
get outputTemplate(): AIPromptOutputTemplateDirective;
|
|
823
|
+
set outputBodyTemplate(value: AIPromptOutputBodyTemplateDirective);
|
|
824
|
+
get outputBodyTemplate(): AIPromptOutputBodyTemplateDirective;
|
|
818
825
|
get speechToTextButton(): SpeechToTextButtonSettings;
|
|
819
826
|
set speechToTextButton(settings: boolean | SpeechToTextButtonSettings);
|
|
827
|
+
private _promptValue;
|
|
828
|
+
private _showOutputRating;
|
|
829
|
+
private _promptCommands;
|
|
830
|
+
private _promptOutputs;
|
|
831
|
+
private _promptSuggestions;
|
|
832
|
+
private _textAreaSettings;
|
|
833
|
+
private _speechToTextButton;
|
|
834
|
+
private _outputTemplate;
|
|
835
|
+
private _outputBodyTemplate;
|
|
820
836
|
getFlattenPromptCommands(commands?: Array<PromptCommand>): Array<PromptCommand>;
|
|
821
837
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIPromptService, never>;
|
|
822
838
|
static ɵprov: i0.ɵɵInjectableDeclaration<AIPromptService>;
|
|
@@ -898,16 +914,17 @@ declare class ToolbarNavigationService {
|
|
|
898
914
|
* @remarks
|
|
899
915
|
* Supported children components are: {@link AIPromptCustomMessagesComponent}, {@link CustomViewComponent}, {@link CommandViewComponent}, {@link PromptViewComponent}, {@link OutputViewComponent}.
|
|
900
916
|
*/
|
|
901
|
-
declare class AIPromptComponent implements OnInit,
|
|
917
|
+
declare class AIPromptComponent implements OnInit, AfterContentChecked, AfterViewInit, OnDestroy {
|
|
902
918
|
private localization;
|
|
903
919
|
private service;
|
|
904
920
|
private navigationService;
|
|
905
921
|
private ngZone;
|
|
922
|
+
private injector;
|
|
906
923
|
private element;
|
|
907
924
|
private renderer;
|
|
908
925
|
hostClasses: boolean;
|
|
909
926
|
get dirAttr(): string;
|
|
910
|
-
constructor(localization: LocalizationService, service: AIPromptService, navigationService: ToolbarNavigationService, ngZone: NgZone, element: ElementRef, renderer: Renderer2);
|
|
927
|
+
constructor(localization: LocalizationService, service: AIPromptService, navigationService: ToolbarNavigationService, ngZone: NgZone, injector: Injector, element: ElementRef, renderer: Renderer2);
|
|
911
928
|
/**
|
|
912
929
|
* @hidden
|
|
913
930
|
*/
|
|
@@ -937,50 +954,60 @@ declare class AIPromptComponent implements OnInit, OnChanges, AfterContentChecke
|
|
|
937
954
|
* Sets the collection of commands to render in the Command view.
|
|
938
955
|
*/
|
|
939
956
|
set promptCommands(value: Array<PromptCommand>);
|
|
957
|
+
get promptCommands(): Array<PromptCommand>;
|
|
940
958
|
/**
|
|
941
959
|
* Sets the collection of suggestions to render in the Prompt view.
|
|
942
960
|
*/
|
|
943
961
|
set promptSuggestions(value: Array<string>);
|
|
962
|
+
get promptSuggestions(): Array<string>;
|
|
944
963
|
/**
|
|
945
964
|
* Sets the collection of generated prompt outputs to render in the Output view.
|
|
946
965
|
*/
|
|
947
966
|
set promptOutputs(value: Array<PromptOutput>);
|
|
967
|
+
get promptOutputs(): Array<PromptOutput>;
|
|
948
968
|
/**
|
|
949
969
|
* Specifies whether the rating buttons appear in each Output view card.
|
|
950
970
|
* The rating buttons do not appear by default.
|
|
951
971
|
* @default false
|
|
952
972
|
*/
|
|
953
973
|
set showOutputRating(value: boolean);
|
|
974
|
+
get showOutputRating(): boolean;
|
|
954
975
|
/**
|
|
955
976
|
* Specifies whether the Stop generation button appears in the Output view.
|
|
956
977
|
* The Stop generation button does not appear by default.
|
|
957
978
|
* @default false
|
|
958
979
|
*/
|
|
959
|
-
streaming: boolean;
|
|
980
|
+
set streaming(value: boolean);
|
|
981
|
+
get streaming(): boolean;
|
|
960
982
|
/**
|
|
961
983
|
* Sets the settings for the Speech to Text button in the Prompt view
|
|
962
984
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/configuration#enabling-speech-to-text)).
|
|
963
985
|
*/
|
|
964
986
|
set speechToTextButton(settings: boolean | SpeechToTextButtonSettings);
|
|
987
|
+
get speechToTextButton(): boolean | SpeechToTextButtonSettings;
|
|
965
988
|
/**
|
|
966
989
|
* Sets the settings for the TextArea in the Prompt view
|
|
967
990
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/configuration#configuring-the-prompt-text-area)).
|
|
968
991
|
*/
|
|
969
992
|
set textAreaSettings(settings: TextAreaSettings);
|
|
993
|
+
get textAreaSettings(): TextAreaSettings;
|
|
970
994
|
/**
|
|
971
995
|
* Sets the SVG icon for the Generate button in the Prompt view.
|
|
972
996
|
*/
|
|
973
|
-
generateButtonSVGIcon: SVGIcon;
|
|
997
|
+
set generateButtonSVGIcon(value: SVGIcon);
|
|
998
|
+
get generateButtonSVGIcon(): SVGIcon;
|
|
974
999
|
/**
|
|
975
1000
|
* Sets the icon for the Generate button in the Prompt view.
|
|
976
1001
|
* @default 'sparkles'
|
|
977
1002
|
*/
|
|
978
|
-
generateButtonIcon: string;
|
|
1003
|
+
set generateButtonIcon(value: string);
|
|
1004
|
+
get generateButtonIcon(): string;
|
|
979
1005
|
/**
|
|
980
1006
|
* Sets the disabled state for the Generate button in the Prompt view.
|
|
981
1007
|
* @default false
|
|
982
1008
|
*/
|
|
983
|
-
disabledGenerateButton: boolean;
|
|
1009
|
+
set disabledGenerateButton(value: boolean);
|
|
1010
|
+
get disabledGenerateButton(): boolean;
|
|
984
1011
|
/**
|
|
985
1012
|
* Fires when the `activeView` property is updated.
|
|
986
1013
|
* Use this event for two-way binding of the `activeView` property.
|
|
@@ -1009,7 +1036,6 @@ declare class AIPromptComponent implements OnInit, OnChanges, AfterContentChecke
|
|
|
1009
1036
|
*/
|
|
1010
1037
|
promptRequestCancel: EventEmitter<void>;
|
|
1011
1038
|
ngOnInit(): void;
|
|
1012
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1013
1039
|
ngAfterContentChecked(): void;
|
|
1014
1040
|
ngAfterViewInit(): void;
|
|
1015
1041
|
ngOnDestroy(): void;
|
|
@@ -1048,6 +1074,17 @@ declare class AIPromptComponent implements OnInit, OnChanges, AfterContentChecke
|
|
|
1048
1074
|
fabAlignment: FabAlign;
|
|
1049
1075
|
private direction;
|
|
1050
1076
|
private _activeView;
|
|
1077
|
+
private _promptCommands;
|
|
1078
|
+
private _promptSuggestions;
|
|
1079
|
+
private _promptOutputs;
|
|
1080
|
+
private _showOutputRating;
|
|
1081
|
+
private _streaming;
|
|
1082
|
+
private _speechToTextButton;
|
|
1083
|
+
private _textAreaSettings;
|
|
1084
|
+
private _generateButtonSVGIcon;
|
|
1085
|
+
private _generateButtonIcon;
|
|
1086
|
+
private _disabledGenerateButton;
|
|
1087
|
+
private streamingEffect;
|
|
1051
1088
|
/**
|
|
1052
1089
|
* @hidden
|
|
1053
1090
|
*/
|
|
@@ -1169,18 +1206,18 @@ declare class OutputViewComponent extends BaseView {
|
|
|
1169
1206
|
* </kendo-aiprompt-command-view>
|
|
1170
1207
|
* ```
|
|
1171
1208
|
*/
|
|
1172
|
-
declare class CommandViewComponent extends BaseView
|
|
1209
|
+
declare class CommandViewComponent extends BaseView {
|
|
1173
1210
|
private service;
|
|
1174
1211
|
constructor(localization: LocalizationService, service: AIPromptService);
|
|
1175
1212
|
/**
|
|
1176
1213
|
* @hidden
|
|
1177
1214
|
*/
|
|
1178
|
-
|
|
1179
|
-
ngOnInit(): void;
|
|
1215
|
+
get items(): Array<PanelBarItemModel>;
|
|
1180
1216
|
/**
|
|
1181
1217
|
* @hidden
|
|
1182
1218
|
*/
|
|
1183
1219
|
itemClickHandler(ev: PanelBarItemClickEvent): void;
|
|
1220
|
+
private readonly _items;
|
|
1184
1221
|
private getPanelBarItems;
|
|
1185
1222
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommandViewComponent, never>;
|
|
1186
1223
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommandViewComponent, "kendo-aiprompt-command-view", never, {}, {}, never, never, true, never>;
|
|
@@ -1204,7 +1241,9 @@ declare class CustomViewComponent extends BaseView {
|
|
|
1204
1241
|
/**
|
|
1205
1242
|
* Sets the content of the Custom view as a template reference.
|
|
1206
1243
|
*/
|
|
1207
|
-
viewTemplate: TemplateRef<any
|
|
1244
|
+
set viewTemplate(value: TemplateRef<any>);
|
|
1245
|
+
get viewTemplate(): TemplateRef<any>;
|
|
1246
|
+
private _viewTemplate;
|
|
1208
1247
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomViewComponent, never>;
|
|
1209
1248
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomViewComponent, "kendo-aiprompt-custom-view", never, { "viewTemplate": { "alias": "viewTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
1210
1249
|
}
|
|
@@ -1216,47 +1255,69 @@ declare class Messages$3 extends ComponentMessages {
|
|
|
1216
1255
|
/**
|
|
1217
1256
|
* Sets the Toolbar button text for the **Prompt** view.
|
|
1218
1257
|
*/
|
|
1219
|
-
promptView: string;
|
|
1258
|
+
set promptView(value: string);
|
|
1259
|
+
get promptView(): string;
|
|
1220
1260
|
/**
|
|
1221
1261
|
* Sets the Toolbar button text for the **Output** view.
|
|
1222
1262
|
*/
|
|
1223
|
-
outputView: string;
|
|
1263
|
+
set outputView(value: string);
|
|
1264
|
+
get outputView(): string;
|
|
1224
1265
|
/**
|
|
1225
1266
|
* Sets the text for the **Generate** button in the **Prompt** view.
|
|
1226
1267
|
*/
|
|
1227
|
-
generateOutput: string;
|
|
1268
|
+
set generateOutput(value: string);
|
|
1269
|
+
get generateOutput(): string;
|
|
1228
1270
|
/**
|
|
1229
1271
|
* Sets the placeholder text for the **Prompt** view text area.
|
|
1230
1272
|
*/
|
|
1231
|
-
promptPlaceholder: string;
|
|
1273
|
+
set promptPlaceholder(value: string);
|
|
1274
|
+
get promptPlaceholder(): string;
|
|
1232
1275
|
/**
|
|
1233
1276
|
* Sets the text for the **Copy** button text in each **Output** view card.
|
|
1234
1277
|
*/
|
|
1235
|
-
copyOutput: string;
|
|
1278
|
+
set copyOutput(value: string);
|
|
1279
|
+
get copyOutput(): string;
|
|
1236
1280
|
/**
|
|
1237
1281
|
* Sets the **Retry** button text in each **Output** view card.
|
|
1238
1282
|
*/
|
|
1239
|
-
retryGeneration: string;
|
|
1283
|
+
set retryGeneration(value: string);
|
|
1284
|
+
get retryGeneration(): string;
|
|
1240
1285
|
/**
|
|
1241
1286
|
* Sets the title of each card in the **Output** view.
|
|
1242
1287
|
*/
|
|
1243
|
-
outputTitle: string;
|
|
1288
|
+
set outputTitle(value: string);
|
|
1289
|
+
get outputTitle(): string;
|
|
1244
1290
|
/**
|
|
1245
1291
|
* Sets the title of each retry card in the **Output** view.
|
|
1246
1292
|
*/
|
|
1247
|
-
outputRetryTitle: string;
|
|
1293
|
+
set outputRetryTitle(value: string);
|
|
1294
|
+
get outputRetryTitle(): string;
|
|
1248
1295
|
/**
|
|
1249
1296
|
* Sets the title of the **Prompt suggestions** button.
|
|
1250
1297
|
*/
|
|
1251
|
-
promptSuggestions: string;
|
|
1298
|
+
set promptSuggestions(value: string);
|
|
1299
|
+
get promptSuggestions(): string;
|
|
1252
1300
|
/**
|
|
1253
1301
|
* Sets the aria-label for the **Speech to Text** button.
|
|
1254
1302
|
*/
|
|
1255
|
-
speechToTextButton: string;
|
|
1303
|
+
set speechToTextButton(value: string);
|
|
1304
|
+
get speechToTextButton(): string;
|
|
1256
1305
|
/**
|
|
1257
1306
|
* Sets the aria-label for the **Toolbar** element.
|
|
1258
1307
|
*/
|
|
1259
|
-
toolbarLabel: string;
|
|
1308
|
+
set toolbarLabel(value: string);
|
|
1309
|
+
get toolbarLabel(): string;
|
|
1310
|
+
private _promptView;
|
|
1311
|
+
private _outputView;
|
|
1312
|
+
private _generateOutput;
|
|
1313
|
+
private _promptPlaceholder;
|
|
1314
|
+
private _copyOutput;
|
|
1315
|
+
private _retryGeneration;
|
|
1316
|
+
private _outputTitle;
|
|
1317
|
+
private _outputRetryTitle;
|
|
1318
|
+
private _promptSuggestions;
|
|
1319
|
+
private _speechToTextButton;
|
|
1320
|
+
private _toolbarLabel;
|
|
1260
1321
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages$3, never>;
|
|
1261
1322
|
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$3, never, never, { "promptView": { "alias": "promptView"; "required": false; }; "outputView": { "alias": "outputView"; "required": false; }; "generateOutput": { "alias": "generateOutput"; "required": false; }; "promptPlaceholder": { "alias": "promptPlaceholder"; "required": false; }; "copyOutput": { "alias": "copyOutput"; "required": false; }; "retryGeneration": { "alias": "retryGeneration"; "required": false; }; "outputTitle": { "alias": "outputTitle"; "required": false; }; "outputRetryTitle": { "alias": "outputRetryTitle"; "required": false; }; "promptSuggestions": { "alias": "promptSuggestions"; "required": false; }; "speechToTextButton": { "alias": "speechToTextButton"; "required": false; }; "toolbarLabel": { "alias": "toolbarLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
1262
1323
|
}
|
|
@@ -1758,26 +1819,36 @@ declare class AuthorMessageTemplateDirective {
|
|
|
1758
1819
|
declare class ChatService {
|
|
1759
1820
|
private zone;
|
|
1760
1821
|
authorId: string | number;
|
|
1761
|
-
messageWidthMode: MessageWidthMode;
|
|
1762
1822
|
messageContextMenuActions: MessageAction[];
|
|
1763
|
-
calculatedContextMenuActions: MessageAction[];
|
|
1764
1823
|
fileActions: FileAction[];
|
|
1765
|
-
toggleMessageState: boolean;
|
|
1766
1824
|
layoutChangeInProgress: boolean;
|
|
1767
|
-
reply: Message;
|
|
1768
1825
|
messages: Message[];
|
|
1769
1826
|
repliedToMessages: Message[];
|
|
1770
1827
|
chatElement: ViewContainerRef;
|
|
1771
1828
|
messageElementsMap: Map<string | number, ElementRef>;
|
|
1772
1829
|
messagesContextMenu: ContextMenuComponent;
|
|
1773
|
-
activeMessage: Message;
|
|
1774
1830
|
activeMessageElement: any;
|
|
1775
1831
|
selectOnMenuClose: boolean;
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1832
|
+
get calculatedContextMenuActions(): MessageAction[];
|
|
1833
|
+
set calculatedContextMenuActions(v: MessageAction[]);
|
|
1834
|
+
get reply(): Message;
|
|
1835
|
+
set reply(v: Message);
|
|
1836
|
+
get messageWidthMode(): MessageWidthMode;
|
|
1837
|
+
set messageWidthMode(v: MessageWidthMode);
|
|
1838
|
+
get toggleMessageState(): boolean;
|
|
1839
|
+
set toggleMessageState(v: boolean);
|
|
1840
|
+
get activeMessage(): Message;
|
|
1841
|
+
set activeMessage(v: Message);
|
|
1842
|
+
get active(): boolean;
|
|
1843
|
+
set active(v: boolean);
|
|
1844
|
+
get messageFilesLayout(): FilesLayoutMode;
|
|
1845
|
+
set messageFilesLayout(v: FilesLayoutMode);
|
|
1846
|
+
get timestampVisibility(): TimestampVisibilityMode;
|
|
1847
|
+
set timestampVisibility(v: TimestampVisibilityMode);
|
|
1848
|
+
get showUsername(): boolean;
|
|
1849
|
+
set showUsername(v: boolean);
|
|
1850
|
+
get showAvatar(): boolean;
|
|
1851
|
+
set showAvatar(v: boolean);
|
|
1781
1852
|
private _speechToTextButton;
|
|
1782
1853
|
private _fileSelectButton;
|
|
1783
1854
|
private _sendButtonSettings;
|
|
@@ -1785,9 +1856,19 @@ declare class ChatService {
|
|
|
1785
1856
|
private _suggestionsLayout;
|
|
1786
1857
|
private _quickActionsLayout;
|
|
1787
1858
|
private _messageToolbarActions;
|
|
1788
|
-
_authorMessageSettings: MessageSettings
|
|
1789
|
-
_receiverMessageSettings: MessageSettings
|
|
1859
|
+
_authorMessageSettings: i0.WritableSignal<MessageSettings>;
|
|
1860
|
+
_receiverMessageSettings: i0.WritableSignal<MessageSettings>;
|
|
1790
1861
|
private _allowMessageCollapse;
|
|
1862
|
+
private _messageWidthMode;
|
|
1863
|
+
private _toggleMessageState;
|
|
1864
|
+
private _activeMessage;
|
|
1865
|
+
private _active;
|
|
1866
|
+
private _messageFilesLayout;
|
|
1867
|
+
private _timestampVisibility;
|
|
1868
|
+
private _showUsername;
|
|
1869
|
+
private _showAvatar;
|
|
1870
|
+
private _reply;
|
|
1871
|
+
private _calculatedContextMenuActions;
|
|
1791
1872
|
private subjects;
|
|
1792
1873
|
toolbarAction$: rxjs.Observable<MessageActionEvent>;
|
|
1793
1874
|
contextMenuAction$: rxjs.Observable<MessageActionEvent>;
|
|
@@ -2073,6 +2154,7 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2073
2154
|
private ngZone;
|
|
2074
2155
|
private localization;
|
|
2075
2156
|
hostElement: ElementRef;
|
|
2157
|
+
private injector;
|
|
2076
2158
|
get hostSinglelineClass(): boolean;
|
|
2077
2159
|
get hostMultilineClass(): boolean;
|
|
2078
2160
|
get hostDisabledClass(): boolean;
|
|
@@ -2081,29 +2163,34 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2081
2163
|
*
|
|
2082
2164
|
* @default false
|
|
2083
2165
|
*/
|
|
2084
|
-
disabled: boolean;
|
|
2166
|
+
set disabled(value: boolean);
|
|
2167
|
+
get disabled(): boolean;
|
|
2085
2168
|
/**
|
|
2086
2169
|
* @hidden
|
|
2087
2170
|
*/
|
|
2088
|
-
focusableId: string;
|
|
2171
|
+
set focusableId(value: string);
|
|
2172
|
+
get focusableId(): string;
|
|
2089
2173
|
/**
|
|
2090
2174
|
* Sets the loading state of the **Action** button.
|
|
2091
2175
|
*
|
|
2092
2176
|
* @default false
|
|
2093
2177
|
*/
|
|
2094
|
-
loading: boolean;
|
|
2178
|
+
set loading(value: boolean);
|
|
2179
|
+
get loading(): boolean;
|
|
2095
2180
|
/**
|
|
2096
2181
|
* Sets the placeholder text displayed in the PromptBox when it is empty.
|
|
2097
2182
|
*
|
|
2098
2183
|
* @default ''
|
|
2099
2184
|
*/
|
|
2100
|
-
placeholder: string;
|
|
2185
|
+
set placeholder(value: string);
|
|
2186
|
+
get placeholder(): string;
|
|
2101
2187
|
/**
|
|
2102
2188
|
* Sets the read-only state of the PromptBox. When set to `true`, the PromptBox content cannot be modified but remains accessible.
|
|
2103
2189
|
*
|
|
2104
2190
|
* @default false
|
|
2105
2191
|
*/
|
|
2106
|
-
readonly: boolean;
|
|
2192
|
+
set readonly(value: boolean);
|
|
2193
|
+
get readonly(): boolean;
|
|
2107
2194
|
/**
|
|
2108
2195
|
* Sets the title attribute of the input or textarea element.
|
|
2109
2196
|
*
|
|
@@ -2112,7 +2199,8 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2112
2199
|
* @remarks
|
|
2113
2200
|
* This property is related to accessibility.
|
|
2114
2201
|
*/
|
|
2115
|
-
title: string;
|
|
2202
|
+
set title(value: string);
|
|
2203
|
+
get title(): string;
|
|
2116
2204
|
/**
|
|
2117
2205
|
* Sets the mode of the PromptBox. [See example](slug:modes_promptbox).
|
|
2118
2206
|
* @default 'auto'
|
|
@@ -2275,27 +2363,30 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2275
2363
|
/**
|
|
2276
2364
|
* @hidden
|
|
2277
2365
|
*/
|
|
2278
|
-
hasExpanded: boolean;
|
|
2366
|
+
set hasExpanded(value: boolean);
|
|
2367
|
+
get hasExpanded(): boolean;
|
|
2279
2368
|
/**
|
|
2280
2369
|
* @hidden
|
|
2281
2370
|
*/
|
|
2282
|
-
isListening: boolean;
|
|
2371
|
+
set isListening(value: boolean);
|
|
2372
|
+
get isListening(): boolean;
|
|
2283
2373
|
/**
|
|
2284
2374
|
* Provides the currently attached files in the PromptBox component.
|
|
2285
2375
|
*/
|
|
2286
|
-
attachments: FileInfo[];
|
|
2376
|
+
set attachments(value: FileInfo[]);
|
|
2377
|
+
get attachments(): FileInfo[];
|
|
2287
2378
|
/**
|
|
2288
2379
|
* @hidden
|
|
2289
2380
|
*/
|
|
2290
|
-
filesListScrollAtStart: boolean;
|
|
2381
|
+
get filesListScrollAtStart(): boolean;
|
|
2291
2382
|
/**
|
|
2292
2383
|
* @hidden
|
|
2293
2384
|
*/
|
|
2294
|
-
filesListScrollAtEnd: boolean;
|
|
2385
|
+
get filesListScrollAtEnd(): boolean;
|
|
2295
2386
|
/**
|
|
2296
2387
|
* @hidden
|
|
2297
2388
|
*/
|
|
2298
|
-
hasFilesOverflow: boolean;
|
|
2389
|
+
get hasFilesOverflow(): boolean;
|
|
2299
2390
|
private _value;
|
|
2300
2391
|
private _mode;
|
|
2301
2392
|
private _rows;
|
|
@@ -2308,6 +2399,18 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2308
2399
|
private _speechToTextButtonSettings;
|
|
2309
2400
|
private hostWidthAtCapture;
|
|
2310
2401
|
private minMultiRowHeight;
|
|
2402
|
+
private _disabled;
|
|
2403
|
+
private _focusableId;
|
|
2404
|
+
private _loading;
|
|
2405
|
+
private _placeholder;
|
|
2406
|
+
private _readonly;
|
|
2407
|
+
private _title;
|
|
2408
|
+
private _hasExpanded;
|
|
2409
|
+
private _isListening;
|
|
2410
|
+
private _attachments;
|
|
2411
|
+
private _filesListScrollAtStart;
|
|
2412
|
+
private _filesListScrollAtEnd;
|
|
2413
|
+
private _hasFilesOverflow;
|
|
2311
2414
|
private resizeSubscription;
|
|
2312
2415
|
private speechToTextSubscription;
|
|
2313
2416
|
private actionButtonSubscription;
|
|
@@ -2315,7 +2418,7 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2315
2418
|
private focusChangedProgrammatically;
|
|
2316
2419
|
private ngTouched;
|
|
2317
2420
|
private ngChange;
|
|
2318
|
-
constructor(changeDetector: ChangeDetectorRef, renderer: Renderer2, ngZone: NgZone, localization: LocalizationService, hostElement: ElementRef);
|
|
2421
|
+
constructor(changeDetector: ChangeDetectorRef, renderer: Renderer2, ngZone: NgZone, localization: LocalizationService, hostElement: ElementRef, injector: Injector);
|
|
2319
2422
|
ngAfterViewInit(): void;
|
|
2320
2423
|
ngOnDestroy(): void;
|
|
2321
2424
|
/**
|
|
@@ -2417,7 +2520,6 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2417
2520
|
private resetTextArea;
|
|
2418
2521
|
private checkFilesListScroll;
|
|
2419
2522
|
private update;
|
|
2420
|
-
private updateComponentSettings;
|
|
2421
2523
|
private subscribeToSpeechToTextButton;
|
|
2422
2524
|
private subscribeToActionButton;
|
|
2423
2525
|
private subscribeToFileSelectButton;
|
|
@@ -2429,7 +2531,9 @@ declare class PromptBoxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
2429
2531
|
* @hidden
|
|
2430
2532
|
*/
|
|
2431
2533
|
declare abstract class ChatItem {
|
|
2432
|
-
|
|
2534
|
+
private _selected;
|
|
2535
|
+
get selected(): boolean;
|
|
2536
|
+
set selected(value: boolean);
|
|
2433
2537
|
abstract focus(): void;
|
|
2434
2538
|
}
|
|
2435
2539
|
|
|
@@ -2500,17 +2604,23 @@ declare class SuggestedActionsComponent extends ChatItem implements AfterViewIni
|
|
|
2500
2604
|
private scrollService;
|
|
2501
2605
|
private ngZone;
|
|
2502
2606
|
private renderer;
|
|
2607
|
+
private injector;
|
|
2503
2608
|
get defaultClass(): boolean;
|
|
2504
2609
|
get scrollableClass(): boolean;
|
|
2505
2610
|
get scrollButtonsClass(): boolean;
|
|
2506
2611
|
get scrollStartClass(): boolean;
|
|
2507
2612
|
get scrollEndClass(): boolean;
|
|
2508
2613
|
get role(): string;
|
|
2509
|
-
actions: Action[];
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2614
|
+
set actions(value: Action[]);
|
|
2615
|
+
get actions(): Action[];
|
|
2616
|
+
set suggestions(value: ChatSuggestion[]);
|
|
2617
|
+
get suggestions(): ChatSuggestion[];
|
|
2618
|
+
set tabbable(value: boolean);
|
|
2619
|
+
get tabbable(): boolean;
|
|
2620
|
+
set type(value: 'action' | 'suggestion');
|
|
2621
|
+
get type(): 'action' | 'suggestion';
|
|
2622
|
+
set suggestionTemplate(value: ChatSuggestionTemplateDirective);
|
|
2623
|
+
get suggestionTemplate(): ChatSuggestionTemplateDirective;
|
|
2514
2624
|
dispatchAction: EventEmitter<Action>;
|
|
2515
2625
|
dispatchSuggestion: EventEmitter<ChatSuggestion>;
|
|
2516
2626
|
items: QueryList<ElementRef>;
|
|
@@ -2526,9 +2636,14 @@ declare class SuggestedActionsComponent extends ChatItem implements AfterViewIni
|
|
|
2526
2636
|
get isScrollable(): boolean;
|
|
2527
2637
|
get hasScrollButtons(): boolean;
|
|
2528
2638
|
private subscriptions;
|
|
2639
|
+
private _actions;
|
|
2640
|
+
private _suggestions;
|
|
2641
|
+
private _tabbable;
|
|
2642
|
+
private _type;
|
|
2643
|
+
private _suggestionTemplate;
|
|
2529
2644
|
private actionKeyHandlers;
|
|
2530
2645
|
private suggestionKeyHandlers;
|
|
2531
|
-
constructor(chatService: ChatService, localization: LocalizationService, scrollService: SuggestionsScrollService, ngZone: NgZone, renderer: Renderer2);
|
|
2646
|
+
constructor(chatService: ChatService, localization: LocalizationService, scrollService: SuggestionsScrollService, ngZone: NgZone, renderer: Renderer2, injector: Injector);
|
|
2532
2647
|
ngAfterViewInit(): void;
|
|
2533
2648
|
ngOnDestroy(): void;
|
|
2534
2649
|
isSelected(index: number): boolean;
|
|
@@ -2625,18 +2740,30 @@ declare class MessageBoxComponent implements OnInit, OnDestroy {
|
|
|
2625
2740
|
messageBoxWrapperClass: boolean;
|
|
2626
2741
|
messageBoxInput: PromptBoxComponent;
|
|
2627
2742
|
suggestedActionsComponent: SuggestedActionsComponent;
|
|
2628
|
-
authorId: string | number;
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2743
|
+
set authorId(value: string | number);
|
|
2744
|
+
get authorId(): string | number;
|
|
2745
|
+
set autoScroll(value: boolean);
|
|
2746
|
+
get autoScroll(): boolean;
|
|
2747
|
+
set suggestions(value: ChatSuggestion[]);
|
|
2748
|
+
get suggestions(): ChatSuggestion[];
|
|
2749
|
+
set placeholder(value: string);
|
|
2750
|
+
get placeholder(): string;
|
|
2751
|
+
set inputValue(value: string);
|
|
2752
|
+
get inputValue(): string;
|
|
2753
|
+
set localization(value: LocalizationService);
|
|
2754
|
+
get localization(): LocalizationService;
|
|
2755
|
+
set messageBoxTemplate(value: ChatMessageBoxTemplateDirective);
|
|
2756
|
+
get messageBoxTemplate(): ChatMessageBoxTemplateDirective;
|
|
2757
|
+
set messageBoxStartAffixTemplate(value: ChatMessageBoxStartAffixTemplateDirective);
|
|
2758
|
+
get messageBoxStartAffixTemplate(): ChatMessageBoxStartAffixTemplateDirective;
|
|
2759
|
+
set messageBoxEndAffixTemplate(value: ChatMessageBoxEndAffixTemplateDirective);
|
|
2760
|
+
get messageBoxEndAffixTemplate(): ChatMessageBoxEndAffixTemplateDirective;
|
|
2761
|
+
set messageBoxTopAffixTemplate(value: ChatMessageBoxTopAffixTemplateDirective);
|
|
2762
|
+
get messageBoxTopAffixTemplate(): ChatMessageBoxTopAffixTemplateDirective;
|
|
2763
|
+
set suggestionTemplate(value: ChatSuggestionTemplateDirective);
|
|
2764
|
+
get suggestionTemplate(): ChatSuggestionTemplateDirective;
|
|
2765
|
+
set loading(value: boolean);
|
|
2766
|
+
get loading(): boolean;
|
|
2640
2767
|
sendMessage: EventEmitter<any>;
|
|
2641
2768
|
executeSuggestion: EventEmitter<ChatSuggestion>;
|
|
2642
2769
|
fileSelect: EventEmitter<SelectEvent>;
|
|
@@ -2646,6 +2773,18 @@ declare class MessageBoxComponent implements OnInit, OnDestroy {
|
|
|
2646
2773
|
get reply(): Message;
|
|
2647
2774
|
private selectedItem;
|
|
2648
2775
|
private subs;
|
|
2776
|
+
private _authorId;
|
|
2777
|
+
private _autoScroll;
|
|
2778
|
+
private _suggestions;
|
|
2779
|
+
private _placeholder;
|
|
2780
|
+
private _inputValue;
|
|
2781
|
+
private _localization;
|
|
2782
|
+
private _messageBoxTemplate;
|
|
2783
|
+
private _messageBoxStartAffixTemplate;
|
|
2784
|
+
private _messageBoxEndAffixTemplate;
|
|
2785
|
+
private _messageBoxTopAffixTemplate;
|
|
2786
|
+
private _suggestionTemplate;
|
|
2787
|
+
private _loading;
|
|
2649
2788
|
constructor(chatService: ChatService, cdr: ChangeDetectorRef, element: ElementRef, renderer: Renderer2);
|
|
2650
2789
|
ngOnInit(): void;
|
|
2651
2790
|
ngOnDestroy(): void;
|
|
@@ -2692,22 +2831,25 @@ declare class MessageBoxComponent implements OnInit, OnDestroy {
|
|
|
2692
2831
|
* @remarks
|
|
2693
2832
|
* Supported children components are: {@link CustomMessagesComponent}, {@link HeroCardComponent}.
|
|
2694
2833
|
*/
|
|
2695
|
-
declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
2834
|
+
declare class ChatComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
2696
2835
|
private localization;
|
|
2697
2836
|
private zone;
|
|
2698
2837
|
private renderer;
|
|
2699
2838
|
private element;
|
|
2700
2839
|
private chatService;
|
|
2840
|
+
private injector;
|
|
2701
2841
|
/**
|
|
2702
2842
|
* Sets the Chat messages.
|
|
2703
2843
|
* Accepts an array of `Message` objects, but can also accept custom data types.
|
|
2704
2844
|
* For more information, check [Data Binding](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/data-binding) section in the documentation.
|
|
2705
2845
|
*/
|
|
2706
|
-
messages: any[];
|
|
2846
|
+
set messages(value: any[]);
|
|
2847
|
+
get messages(): any[];
|
|
2707
2848
|
/**
|
|
2708
2849
|
* Sets the ID that represents the local user.
|
|
2709
2850
|
*/
|
|
2710
|
-
authorId: string | number;
|
|
2851
|
+
set authorId(value: string | number);
|
|
2852
|
+
get authorId(): string | number;
|
|
2711
2853
|
/**
|
|
2712
2854
|
* Determines the type of input used in the message box.
|
|
2713
2855
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message)).
|
|
@@ -2715,92 +2857,108 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2715
2857
|
*
|
|
2716
2858
|
* @hidden
|
|
2717
2859
|
*/
|
|
2718
|
-
messageBoxType: MessageBoxType;
|
|
2860
|
+
set messageBoxType(value: MessageBoxType);
|
|
2861
|
+
get messageBoxType(): MessageBoxType;
|
|
2719
2862
|
/**
|
|
2720
2863
|
* Sets the height of the Chat component.
|
|
2721
2864
|
* Accepts a string with CSS units (for example, `'400px'`, `'50%'`) or a number (interpreted as pixels).
|
|
2722
2865
|
* The minimum height is `600px`.
|
|
2723
2866
|
*/
|
|
2724
|
-
height: string | number;
|
|
2867
|
+
set height(value: string | number);
|
|
2868
|
+
get height(): string | number;
|
|
2725
2869
|
/**
|
|
2726
2870
|
* Sets the width of the Chat component.
|
|
2727
2871
|
* Accepts a string with CSS units (for example, `'400px'`, `'50%'`) or a number (interpreted as pixels).
|
|
2728
2872
|
* The minimum width is `320px`.
|
|
2729
2873
|
*/
|
|
2730
|
-
width: string | number;
|
|
2874
|
+
set width(value: string | number);
|
|
2875
|
+
get width(): string | number;
|
|
2731
2876
|
/**
|
|
2732
2877
|
* Sets the placeholder text for the message input box.
|
|
2733
2878
|
*/
|
|
2734
|
-
placeholder: string;
|
|
2879
|
+
set placeholder(value: string);
|
|
2880
|
+
get placeholder(): string;
|
|
2735
2881
|
/**
|
|
2736
2882
|
* Controls the width of the message between the predefined options.
|
|
2737
2883
|
*
|
|
2738
2884
|
* @default 'standard'
|
|
2739
2885
|
*/
|
|
2740
|
-
messageWidthMode: MessageWidthMode;
|
|
2886
|
+
set messageWidthMode(value: MessageWidthMode);
|
|
2887
|
+
get messageWidthMode(): MessageWidthMode;
|
|
2741
2888
|
/**
|
|
2742
2889
|
* Controls the visibility of timestamps in messages.
|
|
2743
2890
|
*
|
|
2744
2891
|
* @default 'focus'
|
|
2745
2892
|
*/
|
|
2746
|
-
timestampVisibility: TimestampVisibilityMode;
|
|
2893
|
+
set timestampVisibility(value: TimestampVisibilityMode);
|
|
2894
|
+
get timestampVisibility(): TimestampVisibilityMode;
|
|
2747
2895
|
/**
|
|
2748
2896
|
* Controls the visibility of usernames in messages.
|
|
2749
2897
|
* When set to `true`, the username displays above each message bubble.
|
|
2750
2898
|
*
|
|
2751
2899
|
* @default true
|
|
2752
2900
|
*/
|
|
2753
|
-
showUsername: boolean;
|
|
2901
|
+
set showUsername(value: boolean);
|
|
2902
|
+
get showUsername(): boolean;
|
|
2754
2903
|
/**
|
|
2755
2904
|
* Controls the avatar visibility for the messages.
|
|
2756
2905
|
* When set to `true`, the user avatar displays next to each message bubble.
|
|
2757
2906
|
*
|
|
2758
2907
|
* @default true
|
|
2759
2908
|
*/
|
|
2760
|
-
showAvatar: boolean;
|
|
2909
|
+
set showAvatar(value: boolean);
|
|
2910
|
+
get showAvatar(): boolean;
|
|
2761
2911
|
/**
|
|
2762
2912
|
* Enables the expand or collapse functionality for messages.
|
|
2763
2913
|
*
|
|
2764
2914
|
* @default false
|
|
2765
2915
|
*/
|
|
2766
|
-
allowMessageCollapse: boolean;
|
|
2916
|
+
set allowMessageCollapse(value: boolean);
|
|
2917
|
+
get allowMessageCollapse(): boolean;
|
|
2767
2918
|
/**
|
|
2768
2919
|
* Sets the Speech to Text button settings.
|
|
2769
2920
|
*
|
|
2770
2921
|
* @default true
|
|
2771
2922
|
*/
|
|
2772
|
-
speechToTextButton: boolean | SpeechToTextButtonSettings;
|
|
2923
|
+
set speechToTextButton(value: boolean | SpeechToTextButtonSettings);
|
|
2924
|
+
get speechToTextButton(): boolean | SpeechToTextButtonSettings;
|
|
2773
2925
|
/**
|
|
2774
2926
|
* Sets the File Select Button settings.
|
|
2775
2927
|
*
|
|
2776
2928
|
* @default true
|
|
2777
2929
|
*/
|
|
2778
|
-
fileSelectButton: boolean | FileSelectButtonSettings;
|
|
2930
|
+
set fileSelectButton(value: boolean | FileSelectButtonSettings);
|
|
2931
|
+
get fileSelectButton(): boolean | FileSelectButtonSettings;
|
|
2779
2932
|
/**
|
|
2780
2933
|
* Sets the message box settings.
|
|
2781
2934
|
*/
|
|
2782
|
-
messageBoxSettings: MessageBoxSettings;
|
|
2935
|
+
set messageBoxSettings(value: MessageBoxSettings);
|
|
2936
|
+
get messageBoxSettings(): MessageBoxSettings;
|
|
2783
2937
|
/**
|
|
2784
2938
|
* Sets the actions of the message toolbar.
|
|
2785
2939
|
* These actions display in the message toolbar and let you perform specific operations on the message.
|
|
2786
2940
|
*
|
|
2787
2941
|
* @default []
|
|
2788
2942
|
*/
|
|
2789
|
-
messageToolbarActions: MessageAction[];
|
|
2943
|
+
set messageToolbarActions(value: MessageAction[]);
|
|
2944
|
+
get messageToolbarActions(): MessageAction[];
|
|
2790
2945
|
/**
|
|
2791
2946
|
* Sets the value of the Message Box.
|
|
2792
2947
|
*
|
|
2793
2948
|
* @default ''
|
|
2794
2949
|
*/
|
|
2795
|
-
inputValue: string;
|
|
2950
|
+
set inputValue(value: string);
|
|
2951
|
+
get inputValue(): string;
|
|
2796
2952
|
/**
|
|
2797
2953
|
* Sets the settings for the author's messages.
|
|
2798
2954
|
*/
|
|
2799
|
-
authorMessageSettings: MessageSettings;
|
|
2955
|
+
set authorMessageSettings(value: MessageSettings);
|
|
2956
|
+
get authorMessageSettings(): MessageSettings;
|
|
2800
2957
|
/**
|
|
2801
2958
|
* Sets the settings for the receivers' messages.
|
|
2802
2959
|
*/
|
|
2803
|
-
receiverMessageSettings: MessageSettings;
|
|
2960
|
+
set receiverMessageSettings(value: MessageSettings);
|
|
2961
|
+
get receiverMessageSettings(): MessageSettings;
|
|
2804
2962
|
/**
|
|
2805
2963
|
* Sets the default actions that display in the message context menu.
|
|
2806
2964
|
*
|
|
@@ -2835,32 +2993,37 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2835
2993
|
* @default 'vertical'
|
|
2836
2994
|
*/
|
|
2837
2995
|
set messageFilesLayout(layout: FilesLayoutMode);
|
|
2996
|
+
get messageFilesLayout(): FilesLayoutMode;
|
|
2838
2997
|
/**
|
|
2839
2998
|
* Sets the layout of the suggestions above the message input box.
|
|
2840
2999
|
*
|
|
2841
3000
|
* @default 'scroll'
|
|
2842
3001
|
*/
|
|
2843
3002
|
set suggestionsLayout(layoutMode: SuggestionsLayoutMode);
|
|
3003
|
+
get suggestionsLayout(): SuggestionsLayoutMode;
|
|
2844
3004
|
/**
|
|
2845
3005
|
* Sets the layout of the quick actions suggested below the messages.
|
|
2846
3006
|
*
|
|
2847
3007
|
* @default 'scroll'
|
|
2848
3008
|
*/
|
|
2849
3009
|
set quickActionsLayout(layoutMode: QuickActionsLayoutMode);
|
|
3010
|
+
get quickActionsLayout(): QuickActionsLayoutMode;
|
|
2850
3011
|
/**
|
|
2851
3012
|
* Sets the suggestions that display in the message input box.
|
|
2852
3013
|
* Suggestions display as a list of clickable items that let you quickly insert predefined text into the message input.
|
|
2853
3014
|
*
|
|
2854
3015
|
* @default []
|
|
2855
3016
|
*/
|
|
2856
|
-
suggestions: ChatSuggestion[];
|
|
3017
|
+
set suggestions(value: ChatSuggestion[]);
|
|
3018
|
+
get suggestions(): ChatSuggestion[];
|
|
2857
3019
|
/**
|
|
2858
3020
|
* Sets the send button settings for the Chat component.
|
|
2859
3021
|
* Allows customization of the send button appearance, icons and disabled state.
|
|
2860
3022
|
*
|
|
2861
3023
|
* @default true
|
|
2862
3024
|
*/
|
|
2863
|
-
sendButton: boolean | SendButtonSettings;
|
|
3025
|
+
set sendButton(value: boolean | SendButtonSettings);
|
|
3026
|
+
get sendButton(): boolean | SendButtonSettings;
|
|
2864
3027
|
/**
|
|
2865
3028
|
* @hidden
|
|
2866
3029
|
*/
|
|
@@ -2871,14 +3034,16 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2871
3034
|
*
|
|
2872
3035
|
* @default 'scrollable'
|
|
2873
3036
|
*/
|
|
2874
|
-
scrollMode: ScrollMode;
|
|
3037
|
+
set scrollMode(value: ScrollMode);
|
|
3038
|
+
get scrollMode(): ScrollMode;
|
|
2875
3039
|
/**
|
|
2876
3040
|
* Sets the number of messages loaded per page in endless scroll mode.
|
|
2877
3041
|
* Ignored in `scrollable` mode.
|
|
2878
3042
|
*
|
|
2879
3043
|
* @default 50
|
|
2880
3044
|
*/
|
|
2881
|
-
pageSize: number;
|
|
3045
|
+
set pageSize(value: number);
|
|
3046
|
+
get pageSize(): number;
|
|
2882
3047
|
/**
|
|
2883
3048
|
* Sets the minimum distance from the top of the visible message area that prevents auto-scrolling when a new receiver message arrives.
|
|
2884
3049
|
* Accepts a percentage string (for example, `'30%'`) or a pixel value as a number. Set to `0` to always auto-scroll to new messages.
|
|
@@ -2889,23 +3054,27 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2889
3054
|
*
|
|
2890
3055
|
* @default '20%'
|
|
2891
3056
|
*/
|
|
2892
|
-
autoScrollThreshold: number | string;
|
|
3057
|
+
set autoScrollThreshold(value: number | string);
|
|
3058
|
+
get autoScrollThreshold(): number | string;
|
|
2893
3059
|
/**
|
|
2894
3060
|
* Sets the total number of messages in the conversation when using endless scrolling with remote data source. For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
|
|
2895
3061
|
*/
|
|
2896
|
-
total: number;
|
|
3062
|
+
set total(value: number);
|
|
3063
|
+
get total(): number;
|
|
2897
3064
|
/**
|
|
2898
3065
|
* Sets the index of the first message in the currently loaded batch within the full conversation.
|
|
2899
3066
|
* Used with remote data sources in endless scroll mode to compute the range for the next [`loadMore`](slug:api_conversational-ui_chatcomponent#loadMore) call.
|
|
2900
3067
|
* For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
|
|
2901
3068
|
*/
|
|
2902
|
-
startIndex: number;
|
|
3069
|
+
set startIndex(value: number);
|
|
3070
|
+
get startIndex(): number;
|
|
2903
3071
|
/**
|
|
2904
3072
|
* Sets the exclusive end index of the currently loaded batch within the full conversation.
|
|
2905
3073
|
* Used with remote data sources in endless scroll mode to determine whether more messages exist beyond the current batch.
|
|
2906
3074
|
* For more details, refer to the [Endless Scrolling with Remote Data](slug:scroll_modes_chat#remote-data) section in the documentation.
|
|
2907
3075
|
*/
|
|
2908
|
-
endIndex: number;
|
|
3076
|
+
set endIndex(value: number);
|
|
3077
|
+
get endIndex(): number;
|
|
2909
3078
|
/**
|
|
2910
3079
|
* Sets the full set of pinned messages in the conversation.
|
|
2911
3080
|
* Used with remote data sources in endless scroll mode to render the pinned message indicator when the pinned message is outside the currently loaded batch.
|
|
@@ -2913,7 +3082,8 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2913
3082
|
*
|
|
2914
3083
|
* @default []
|
|
2915
3084
|
*/
|
|
2916
|
-
pinnedMessages: Message[];
|
|
3085
|
+
set pinnedMessages(value: Message[]);
|
|
3086
|
+
get pinnedMessages(): Message[];
|
|
2917
3087
|
/**
|
|
2918
3088
|
* Sets the messages that serve as reply targets for messages in the currently loaded batch but exist outside it.
|
|
2919
3089
|
* Used with remote data sources in endless scroll mode to render reply previews when the replied-to message is not in the current batch.
|
|
@@ -2921,7 +3091,8 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2921
3091
|
*
|
|
2922
3092
|
* @default []
|
|
2923
3093
|
*/
|
|
2924
|
-
repliedToMessages: Message[];
|
|
3094
|
+
set repliedToMessages(value: Message[]);
|
|
3095
|
+
get repliedToMessages(): Message[];
|
|
2925
3096
|
/**
|
|
2926
3097
|
* Sets the names of the model fields from which the Chat reads its data.
|
|
2927
3098
|
* Lets you map custom data types to the expected `Message` format.
|
|
@@ -2933,14 +3104,16 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
2933
3104
|
*
|
|
2934
3105
|
* @default true
|
|
2935
3106
|
*/
|
|
2936
|
-
scrollToBottomButton: boolean;
|
|
3107
|
+
set scrollToBottomButton(value: boolean);
|
|
3108
|
+
get scrollToBottomButton(): boolean;
|
|
2937
3109
|
/**
|
|
2938
3110
|
* Sets the loading state of the Chat component.
|
|
2939
3111
|
* When set to `true`, a loading button is displayed instead of the send button.
|
|
2940
3112
|
*
|
|
2941
3113
|
* @default false
|
|
2942
3114
|
*/
|
|
2943
|
-
loading: boolean;
|
|
3115
|
+
set loading(value: boolean);
|
|
3116
|
+
get loading(): boolean;
|
|
2944
3117
|
/**
|
|
2945
3118
|
* Fires when the user sends a message by clicking the **Send** button or pressing **Enter**.
|
|
2946
3119
|
*
|
|
@@ -3006,23 +3179,40 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
3006
3179
|
get className(): string;
|
|
3007
3180
|
get dirAttr(): string;
|
|
3008
3181
|
set messagesContextMenu(contextMenu: ContextMenuComponent);
|
|
3009
|
-
attachmentTemplate: AttachmentTemplateDirective;
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3182
|
+
set attachmentTemplate(v: AttachmentTemplateDirective);
|
|
3183
|
+
get attachmentTemplate(): AttachmentTemplateDirective;
|
|
3184
|
+
set chatHeaderTemplate(v: ChatHeaderTemplateDirective);
|
|
3185
|
+
get chatHeaderTemplate(): ChatHeaderTemplateDirective;
|
|
3186
|
+
set chatNoDataTemplate(v: NoDataTemplateDirective);
|
|
3187
|
+
get chatNoDataTemplate(): NoDataTemplateDirective;
|
|
3188
|
+
set authorMessageContentTemplate(v: AuthorMessageContentTemplateDirective);
|
|
3189
|
+
get authorMessageContentTemplate(): AuthorMessageContentTemplateDirective;
|
|
3190
|
+
set receiverMessageContentTemplate(v: ReceiverMessageContentTemplateDirective);
|
|
3191
|
+
get receiverMessageContentTemplate(): ReceiverMessageContentTemplateDirective;
|
|
3192
|
+
set messageContentTemplate(v: MessageContentTemplateDirective);
|
|
3193
|
+
get messageContentTemplate(): MessageContentTemplateDirective;
|
|
3194
|
+
set authorMessageTemplate(v: AuthorMessageTemplateDirective);
|
|
3195
|
+
get authorMessageTemplate(): AuthorMessageTemplateDirective;
|
|
3196
|
+
set receiverMessageTemplate(v: ReceiverMessageTemplateDirective);
|
|
3197
|
+
get receiverMessageTemplate(): ReceiverMessageTemplateDirective;
|
|
3198
|
+
set messageTemplate(v: MessageTemplateDirective);
|
|
3199
|
+
get messageTemplate(): MessageTemplateDirective;
|
|
3200
|
+
set timestampTemplate(v: ChatTimestampTemplateDirective);
|
|
3201
|
+
get timestampTemplate(): ChatTimestampTemplateDirective;
|
|
3202
|
+
set suggestionTemplate(v: ChatSuggestionTemplateDirective);
|
|
3203
|
+
get suggestionTemplate(): ChatSuggestionTemplateDirective;
|
|
3204
|
+
set statusTemplate(v: ChatStatusTemplateDirective);
|
|
3205
|
+
get statusTemplate(): ChatStatusTemplateDirective;
|
|
3206
|
+
set messageBoxTemplate(v: ChatMessageBoxTemplateDirective);
|
|
3207
|
+
get messageBoxTemplate(): ChatMessageBoxTemplateDirective;
|
|
3208
|
+
set messageBoxStartAffixTemplate(v: ChatMessageBoxStartAffixTemplateDirective);
|
|
3209
|
+
get messageBoxStartAffixTemplate(): ChatMessageBoxStartAffixTemplateDirective;
|
|
3210
|
+
set messageBoxEndAffixTemplate(v: ChatMessageBoxEndAffixTemplateDirective);
|
|
3211
|
+
get messageBoxEndAffixTemplate(): ChatMessageBoxEndAffixTemplateDirective;
|
|
3212
|
+
set messageBoxTopAffixTemplate(v: ChatMessageBoxTopAffixTemplateDirective);
|
|
3213
|
+
get messageBoxTopAffixTemplate(): ChatMessageBoxTopAffixTemplateDirective;
|
|
3214
|
+
set userStatusTemplate(v: ChatUserStatusTemplateDirective);
|
|
3215
|
+
get userStatusTemplate(): ChatUserStatusTemplateDirective;
|
|
3026
3216
|
messageBox: MessageBoxComponent;
|
|
3027
3217
|
/**
|
|
3028
3218
|
* @hidden
|
|
@@ -3094,9 +3284,63 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
3094
3284
|
private anchor;
|
|
3095
3285
|
private direction;
|
|
3096
3286
|
private subs;
|
|
3097
|
-
private
|
|
3287
|
+
private readonly syncChatServiceState;
|
|
3288
|
+
private readonly syncRepliedToMessages;
|
|
3289
|
+
private readonly syncHeight;
|
|
3290
|
+
private readonly syncWidth;
|
|
3291
|
+
private _messages;
|
|
3292
|
+
private _authorId;
|
|
3293
|
+
private _messageBoxType;
|
|
3294
|
+
private _height;
|
|
3295
|
+
private _width;
|
|
3296
|
+
private _placeholder;
|
|
3297
|
+
private _messageWidthMode;
|
|
3298
|
+
private _timestampVisibility;
|
|
3299
|
+
private _showUsername;
|
|
3300
|
+
private _showAvatar;
|
|
3301
|
+
private _allowMessageCollapse;
|
|
3302
|
+
private _speechToTextButton;
|
|
3303
|
+
private _fileSelectButton;
|
|
3304
|
+
private _messageBoxSettings;
|
|
3305
|
+
private _messageToolbarActions;
|
|
3306
|
+
private _inputValue;
|
|
3307
|
+
private _authorMessageSettings;
|
|
3308
|
+
private _receiverMessageSettings;
|
|
3098
3309
|
private _messageContextMenuActions;
|
|
3099
3310
|
private _fileActions;
|
|
3311
|
+
private _messageFilesLayout;
|
|
3312
|
+
private _suggestionsLayout;
|
|
3313
|
+
private _quickActionsLayout;
|
|
3314
|
+
private _suggestions;
|
|
3315
|
+
private _sendButton;
|
|
3316
|
+
private _scrollMode;
|
|
3317
|
+
private _pageSize;
|
|
3318
|
+
private _autoScrollThreshold;
|
|
3319
|
+
private _total;
|
|
3320
|
+
private _startIndex;
|
|
3321
|
+
private _endIndex;
|
|
3322
|
+
private _pinnedMessages;
|
|
3323
|
+
private _repliedToMessages;
|
|
3324
|
+
private _modelFields;
|
|
3325
|
+
private _scrollToBottomButton;
|
|
3326
|
+
private _loading;
|
|
3327
|
+
private _attachmentTemplate;
|
|
3328
|
+
private _chatHeaderTemplate;
|
|
3329
|
+
private _chatNoDataTemplate;
|
|
3330
|
+
private _authorMessageContentTemplate;
|
|
3331
|
+
private _receiverMessageContentTemplate;
|
|
3332
|
+
private _messageContentTemplate;
|
|
3333
|
+
private _authorMessageTemplate;
|
|
3334
|
+
private _receiverMessageTemplate;
|
|
3335
|
+
private _messageTemplate;
|
|
3336
|
+
private _timestampTemplate;
|
|
3337
|
+
private _suggestionTemplate;
|
|
3338
|
+
private _statusTemplate;
|
|
3339
|
+
private _messageBoxTemplate;
|
|
3340
|
+
private _messageBoxStartAffixTemplate;
|
|
3341
|
+
private _messageBoxEndAffixTemplate;
|
|
3342
|
+
private _messageBoxTopAffixTemplate;
|
|
3343
|
+
private _userStatusTemplate;
|
|
3100
3344
|
private _cachedProcessedMessages;
|
|
3101
3345
|
private _lastMessagesReference;
|
|
3102
3346
|
private _lastModelFields;
|
|
@@ -3114,7 +3358,7 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
3114
3358
|
private _renderedMessagesEnd;
|
|
3115
3359
|
private _pendingRemoteScrollToMessageId;
|
|
3116
3360
|
private _remoteScrollToBottom;
|
|
3117
|
-
constructor(localization: LocalizationService, zone: NgZone, renderer: Renderer2, element: ElementRef, chatService: ChatService);
|
|
3361
|
+
constructor(localization: LocalizationService, zone: NgZone, renderer: Renderer2, element: ElementRef, chatService: ChatService, injector: Injector);
|
|
3118
3362
|
/**
|
|
3119
3363
|
* @hidden
|
|
3120
3364
|
*/
|
|
@@ -3189,7 +3433,6 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
3189
3433
|
private handleRemoteMessagesChange;
|
|
3190
3434
|
private handleRemoteReferencedMessageClick;
|
|
3191
3435
|
private handlePendingRemoteScroll;
|
|
3192
|
-
private updateChatServiceProperties;
|
|
3193
3436
|
private validateRemoteInputs;
|
|
3194
3437
|
private mergeWithDefaultActions;
|
|
3195
3438
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
@@ -3203,96 +3446,142 @@ declare class Messages$2 extends ComponentMessages {
|
|
|
3203
3446
|
/**
|
|
3204
3447
|
* Sets the text that displays when the sender deletes a message.
|
|
3205
3448
|
*/
|
|
3206
|
-
deletedMessageSenderText: string;
|
|
3449
|
+
set deletedMessageSenderText(value: string);
|
|
3450
|
+
get deletedMessageSenderText(): string;
|
|
3207
3451
|
/**
|
|
3208
3452
|
* Sets the text that displays when the receiver deletes a message.
|
|
3209
3453
|
*/
|
|
3210
|
-
deletedMessageReceiverText: string;
|
|
3454
|
+
set deletedMessageReceiverText(value: string);
|
|
3455
|
+
get deletedMessageReceiverText(): string;
|
|
3211
3456
|
/**
|
|
3212
3457
|
* Sets the text that displays when a message fails to send.
|
|
3213
3458
|
*/
|
|
3214
|
-
messageFailedText: string;
|
|
3459
|
+
set messageFailedText(value: string);
|
|
3460
|
+
get messageFailedText(): string;
|
|
3215
3461
|
/**
|
|
3216
3462
|
* Sets the text that displays in the download section of the message.
|
|
3217
3463
|
* This message displays below all files in the message.
|
|
3218
3464
|
*/
|
|
3219
|
-
downloadAllFilesText: string;
|
|
3465
|
+
set downloadAllFilesText(value: string);
|
|
3466
|
+
get downloadAllFilesText(): string;
|
|
3220
3467
|
/**
|
|
3221
3468
|
* Sets the placeholder text for the message text input.
|
|
3222
3469
|
*/
|
|
3223
|
-
messagePlaceholder: string;
|
|
3470
|
+
set messagePlaceholder(value: string);
|
|
3471
|
+
get messagePlaceholder(): string;
|
|
3224
3472
|
/**
|
|
3225
3473
|
* Sets the aria-label for the internal input/textarea element.
|
|
3226
3474
|
*/
|
|
3227
|
-
messageBoxTitle: string;
|
|
3475
|
+
set messageBoxTitle(value: string);
|
|
3476
|
+
get messageBoxTitle(): string;
|
|
3228
3477
|
/**
|
|
3229
3478
|
* Sets the text for the **Action** button.
|
|
3230
3479
|
*/
|
|
3231
|
-
actionButtonTitle: string;
|
|
3480
|
+
set actionButtonTitle(value: string);
|
|
3481
|
+
get actionButtonTitle(): string;
|
|
3232
3482
|
/**
|
|
3233
3483
|
* Sets the label for the message list.
|
|
3234
3484
|
*/
|
|
3235
|
-
messageListLabel: string;
|
|
3485
|
+
set messageListLabel(value: string);
|
|
3486
|
+
get messageListLabel(): string;
|
|
3236
3487
|
/**
|
|
3237
3488
|
* Sets the label for the message input box.
|
|
3238
3489
|
*/
|
|
3239
|
-
messageBoxInputLabel: string;
|
|
3490
|
+
set messageBoxInputLabel(value: string);
|
|
3491
|
+
get messageBoxInputLabel(): string;
|
|
3240
3492
|
/**
|
|
3241
3493
|
* Sets the text for the left arrow of the message attachments.
|
|
3242
3494
|
*/
|
|
3243
|
-
messageAttachmentLeftArrow: string;
|
|
3495
|
+
set messageAttachmentLeftArrow(value: string);
|
|
3496
|
+
get messageAttachmentLeftArrow(): string;
|
|
3244
3497
|
/**
|
|
3245
3498
|
* Sets the text for the right arrow of the message attachments.
|
|
3246
3499
|
*/
|
|
3247
|
-
messageAttachmentRightArrow: string;
|
|
3500
|
+
set messageAttachmentRightArrow(value: string);
|
|
3501
|
+
get messageAttachmentRightArrow(): string;
|
|
3248
3502
|
/**
|
|
3249
3503
|
* Sets the Speech to Text button title.
|
|
3250
3504
|
*/
|
|
3251
|
-
speechToTextButtonTitle: string;
|
|
3505
|
+
set speechToTextButtonTitle(value: string);
|
|
3506
|
+
get speechToTextButtonTitle(): string;
|
|
3252
3507
|
/**
|
|
3253
3508
|
* Sets the File Select button title.
|
|
3254
3509
|
*/
|
|
3255
|
-
fileSelectButtonTitle: string;
|
|
3510
|
+
set fileSelectButtonTitle(value: string);
|
|
3511
|
+
get fileSelectButtonTitle(): string;
|
|
3256
3512
|
/**
|
|
3257
3513
|
* Sets the title of the icon that removes the reply reference in the Message Box.
|
|
3258
3514
|
*/
|
|
3259
|
-
removeReplyTitle: string;
|
|
3515
|
+
set removeReplyTitle(value: string);
|
|
3516
|
+
get removeReplyTitle(): string;
|
|
3260
3517
|
/**
|
|
3261
3518
|
* Sets the title of the icon that removes a selected file in the Message Box.
|
|
3262
3519
|
*/
|
|
3263
|
-
removeFileTitle: string;
|
|
3520
|
+
set removeFileTitle(value: string);
|
|
3521
|
+
get removeFileTitle(): string;
|
|
3264
3522
|
/**
|
|
3265
3523
|
* Sets the title of the icon that shows the message can expand.
|
|
3266
3524
|
*/
|
|
3267
|
-
expandTitle: string;
|
|
3525
|
+
set expandTitle(value: string);
|
|
3526
|
+
get expandTitle(): string;
|
|
3268
3527
|
/**
|
|
3269
3528
|
* Sets the title of the icon that shows the message can collapse.
|
|
3270
3529
|
*/
|
|
3271
|
-
collapseTitle: string;
|
|
3530
|
+
set collapseTitle(value: string);
|
|
3531
|
+
get collapseTitle(): string;
|
|
3272
3532
|
/**
|
|
3273
3533
|
* Sets the title of the DropDownButton that opens the File actions.
|
|
3274
3534
|
*/
|
|
3275
|
-
fileActionsTitle: string;
|
|
3535
|
+
set fileActionsTitle(value: string);
|
|
3536
|
+
get fileActionsTitle(): string;
|
|
3276
3537
|
/**
|
|
3277
3538
|
* Sets the title of the button that shows the **Scroll right** when the suggestions list is scrollable with buttons.
|
|
3278
3539
|
*/
|
|
3279
|
-
nextSuggestionsButtonTitle: string;
|
|
3540
|
+
set nextSuggestionsButtonTitle(value: string);
|
|
3541
|
+
get nextSuggestionsButtonTitle(): string;
|
|
3280
3542
|
/**
|
|
3281
3543
|
* Sets the title of the button that shows the **Scroll left** when the suggestions list is scrollable with buttons.
|
|
3282
3544
|
*/
|
|
3283
|
-
previousSuggestionsButtonTitle: string;
|
|
3545
|
+
set previousSuggestionsButtonTitle(value: string);
|
|
3546
|
+
get previousSuggestionsButtonTitle(): string;
|
|
3284
3547
|
/**
|
|
3285
3548
|
* Sets the title of the button that unpins a pinned message.
|
|
3286
3549
|
*/
|
|
3287
|
-
unpinMessageTitle: string;
|
|
3550
|
+
set unpinMessageTitle(value: string);
|
|
3551
|
+
get unpinMessageTitle(): string;
|
|
3288
3552
|
/**
|
|
3289
3553
|
* Sets the aria-label for the button that resends a failed message.
|
|
3290
3554
|
*/
|
|
3291
|
-
resendButtonTitle: string;
|
|
3555
|
+
set resendButtonTitle(value: string);
|
|
3556
|
+
get resendButtonTitle(): string;
|
|
3292
3557
|
/**
|
|
3293
3558
|
* Sets the aria-label for the attached files list.
|
|
3294
3559
|
*/
|
|
3295
|
-
attachedFilesLabel: string;
|
|
3560
|
+
set attachedFilesLabel(value: string);
|
|
3561
|
+
get attachedFilesLabel(): string;
|
|
3562
|
+
private _deletedMessageSenderText;
|
|
3563
|
+
private _deletedMessageReceiverText;
|
|
3564
|
+
private _messageFailedText;
|
|
3565
|
+
private _downloadAllFilesText;
|
|
3566
|
+
private _messagePlaceholder;
|
|
3567
|
+
private _messageBoxTitle;
|
|
3568
|
+
private _actionButtonTitle;
|
|
3569
|
+
private _messageListLabel;
|
|
3570
|
+
private _messageBoxInputLabel;
|
|
3571
|
+
private _messageAttachmentLeftArrow;
|
|
3572
|
+
private _messageAttachmentRightArrow;
|
|
3573
|
+
private _speechToTextButtonTitle;
|
|
3574
|
+
private _fileSelectButtonTitle;
|
|
3575
|
+
private _removeReplyTitle;
|
|
3576
|
+
private _removeFileTitle;
|
|
3577
|
+
private _expandTitle;
|
|
3578
|
+
private _collapseTitle;
|
|
3579
|
+
private _fileActionsTitle;
|
|
3580
|
+
private _nextSuggestionsButtonTitle;
|
|
3581
|
+
private _previousSuggestionsButtonTitle;
|
|
3582
|
+
private _unpinMessageTitle;
|
|
3583
|
+
private _resendButtonTitle;
|
|
3584
|
+
private _attachedFilesLabel;
|
|
3296
3585
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages$2, never>;
|
|
3297
3586
|
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$2, "kendoConversationalUIMessages", never, { "deletedMessageSenderText": { "alias": "deletedMessageSenderText"; "required": false; }; "deletedMessageReceiverText": { "alias": "deletedMessageReceiverText"; "required": false; }; "messageFailedText": { "alias": "messageFailedText"; "required": false; }; "downloadAllFilesText": { "alias": "downloadAllFilesText"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "messageListLabel": { "alias": "messageListLabel"; "required": false; }; "messageBoxInputLabel": { "alias": "messageBoxInputLabel"; "required": false; }; "messageAttachmentLeftArrow": { "alias": "messageAttachmentLeftArrow"; "required": false; }; "messageAttachmentRightArrow": { "alias": "messageAttachmentRightArrow"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "removeReplyTitle": { "alias": "removeReplyTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "expandTitle": { "alias": "expandTitle"; "required": false; }; "collapseTitle": { "alias": "collapseTitle"; "required": false; }; "fileActionsTitle": { "alias": "fileActionsTitle"; "required": false; }; "nextSuggestionsButtonTitle": { "alias": "nextSuggestionsButtonTitle"; "required": false; }; "previousSuggestionsButtonTitle": { "alias": "previousSuggestionsButtonTitle"; "required": false; }; "unpinMessageTitle": { "alias": "unpinMessageTitle"; "required": false; }; "resendButtonTitle": { "alias": "resendButtonTitle"; "required": false; }; "attachedFilesLabel": { "alias": "attachedFilesLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
3298
3587
|
}
|
|
@@ -3614,21 +3903,31 @@ declare class InlineAIPromptContentComponent implements OnDestroy, AfterViewInit
|
|
|
3614
3903
|
get dirAttr(): string;
|
|
3615
3904
|
get maxHeightStyle(): string;
|
|
3616
3905
|
get widthStyle(): string;
|
|
3617
|
-
popupElement: ElementRef;
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3906
|
+
set popupElement(value: ElementRef);
|
|
3907
|
+
get popupElement(): ElementRef;
|
|
3908
|
+
set promptValue(value: string);
|
|
3909
|
+
get promptValue(): string;
|
|
3910
|
+
set placeholder(value: string);
|
|
3911
|
+
get placeholder(): string;
|
|
3912
|
+
set promptOutput(value: InlineAIPromptOutput);
|
|
3913
|
+
get promptOutput(): InlineAIPromptOutput;
|
|
3914
|
+
set enableSpeechToText(value: boolean | SpeechToTextButtonSettings);
|
|
3915
|
+
get enableSpeechToText(): boolean | SpeechToTextButtonSettings;
|
|
3916
|
+
set streaming(value: boolean);
|
|
3917
|
+
get streaming(): boolean;
|
|
3918
|
+
set width(value: number | string);
|
|
3919
|
+
get width(): number | string;
|
|
3920
|
+
set maxHeight(value: number | string);
|
|
3921
|
+
get maxHeight(): number | string;
|
|
3922
|
+
set appendTo(value: ViewContainerRef);
|
|
3923
|
+
get appendTo(): ViewContainerRef;
|
|
3626
3924
|
defaultOutputActions: InlineAIPromptOutputAction[];
|
|
3627
3925
|
set outputActions(actions: InlineAIPromptOutputAction[]);
|
|
3628
3926
|
get outputActions(): InlineAIPromptOutputAction[];
|
|
3629
3927
|
set promptCommands(commands: InlineAIPromptCommand[]);
|
|
3630
3928
|
get promptCommands(): InlineAIPromptCommand[];
|
|
3631
|
-
outputTemplate: TemplateRef<any
|
|
3929
|
+
set outputTemplate(value: TemplateRef<any>);
|
|
3930
|
+
get outputTemplate(): TemplateRef<any>;
|
|
3632
3931
|
promptRequest: EventEmitter<InlineAIPromptRequestEvent>;
|
|
3633
3932
|
commandExecute: EventEmitter<InlineAIPromptCommand>;
|
|
3634
3933
|
outputActionClick: EventEmitter<InlineAIPromptOutputActionClickEvent>;
|
|
@@ -3645,14 +3944,26 @@ declare class InlineAIPromptContentComponent implements OnDestroy, AfterViewInit
|
|
|
3645
3944
|
} | null;
|
|
3646
3945
|
sendIcon: SVGIcon;
|
|
3647
3946
|
stopGenerationIcon: SVGIcon;
|
|
3648
|
-
isListening: boolean;
|
|
3649
3947
|
commandMenuItems: MenuItem[];
|
|
3650
3948
|
messages: InlineAIPromptMessages;
|
|
3651
3949
|
maxRows: number;
|
|
3652
3950
|
initialRows: number;
|
|
3951
|
+
set isListening(value: boolean);
|
|
3952
|
+
get isListening(): boolean;
|
|
3953
|
+
private _popupElement;
|
|
3954
|
+
private _promptValue;
|
|
3955
|
+
private _placeholder;
|
|
3956
|
+
private _promptOutput;
|
|
3957
|
+
private _enableSpeechToText;
|
|
3958
|
+
private _streaming;
|
|
3959
|
+
private _width;
|
|
3960
|
+
private _maxHeight;
|
|
3961
|
+
private _appendTo;
|
|
3962
|
+
private _outputTemplate;
|
|
3653
3963
|
private _outputActions;
|
|
3654
3964
|
private _promptCommands;
|
|
3655
|
-
private
|
|
3965
|
+
private _direction;
|
|
3966
|
+
private _isListening;
|
|
3656
3967
|
private localizationSubs;
|
|
3657
3968
|
private subs;
|
|
3658
3969
|
constructor(ngZone: NgZone, renderer: Renderer2, element: ElementRef, localization: LocalizationService);
|
|
@@ -3714,47 +4025,54 @@ declare class InlineAIPromptOutputTemplateDirective {
|
|
|
3714
4025
|
* ```
|
|
3715
4026
|
*/
|
|
3716
4027
|
declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy {
|
|
3717
|
-
private
|
|
4028
|
+
private injector;
|
|
3718
4029
|
element: ElementRef;
|
|
3719
4030
|
/**
|
|
3720
4031
|
* Sets the TextArea value.
|
|
3721
4032
|
*
|
|
3722
4033
|
* @default ""
|
|
3723
4034
|
*/
|
|
3724
|
-
promptValue: string;
|
|
4035
|
+
set promptValue(value: string);
|
|
4036
|
+
get promptValue(): string;
|
|
3725
4037
|
/**
|
|
3726
4038
|
* Sets the placeholder text that appears in the text area when it is empty.
|
|
3727
4039
|
*/
|
|
3728
|
-
placeholder: string;
|
|
4040
|
+
set placeholder(value: string);
|
|
4041
|
+
get placeholder(): string;
|
|
3729
4042
|
/**
|
|
3730
4043
|
* Sets the output data for the prompt.
|
|
3731
4044
|
* The output displays as a card above the text area.
|
|
3732
4045
|
*/
|
|
3733
|
-
promptOutput: InlineAIPromptOutput;
|
|
4046
|
+
set promptOutput(value: InlineAIPromptOutput);
|
|
4047
|
+
get promptOutput(): InlineAIPromptOutput;
|
|
3734
4048
|
/**
|
|
3735
4049
|
* Controls the visibility and settings of the Speech to Text button.
|
|
3736
4050
|
*
|
|
3737
4051
|
* @default true
|
|
3738
4052
|
*/
|
|
3739
|
-
enableSpeechToText: boolean | SpeechToTextButtonSettings;
|
|
4053
|
+
set enableSpeechToText(value: boolean | SpeechToTextButtonSettings);
|
|
4054
|
+
get enableSpeechToText(): boolean | SpeechToTextButtonSettings;
|
|
3740
4055
|
/**
|
|
3741
4056
|
* When set to `true`, the **Send** button displays a generating state and the component emits a `promptRequestCancel` event when you click it.
|
|
3742
4057
|
*
|
|
3743
4058
|
* @default false
|
|
3744
4059
|
*/
|
|
3745
|
-
streaming: boolean;
|
|
4060
|
+
set streaming(value: boolean);
|
|
4061
|
+
get streaming(): boolean;
|
|
3746
4062
|
/**
|
|
3747
4063
|
* Sets the width of the component.
|
|
3748
4064
|
* Accepts a number for pixels or a string for other units.
|
|
3749
4065
|
*
|
|
3750
4066
|
* @default 550
|
|
3751
4067
|
*/
|
|
3752
|
-
width: number | string;
|
|
4068
|
+
set width(value: number | string);
|
|
4069
|
+
get width(): number | string;
|
|
3753
4070
|
/**
|
|
3754
4071
|
* Sets the maximum height of the component.
|
|
3755
4072
|
* Accepts a number for pixels or a string for other units.
|
|
3756
4073
|
*/
|
|
3757
|
-
maxHeight: number | string;
|
|
4074
|
+
set maxHeight(value: number | string);
|
|
4075
|
+
get maxHeight(): number | string;
|
|
3758
4076
|
/**
|
|
3759
4077
|
* Represents the configuration of the default output actions.
|
|
3760
4078
|
* The default actions are `copy`, `retry`, and `discard`.
|
|
@@ -3767,11 +4085,13 @@ declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy {
|
|
|
3767
4085
|
*
|
|
3768
4086
|
* @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', svgIcon: cancelIcon, text: 'Discard', fillMode: 'flat', themeColor: 'base', rounded: 'medium'}]
|
|
3769
4087
|
*/
|
|
3770
|
-
outputActions: InlineAIPromptOutputAction[];
|
|
4088
|
+
set outputActions(value: InlineAIPromptOutputAction[]);
|
|
4089
|
+
get outputActions(): InlineAIPromptOutputAction[];
|
|
3771
4090
|
/**
|
|
3772
4091
|
* Sets the available prompt commands.
|
|
3773
4092
|
*/
|
|
3774
|
-
promptCommands: InlineAIPromptCommand[];
|
|
4093
|
+
set promptCommands(value: InlineAIPromptCommand[]);
|
|
4094
|
+
get promptCommands(): InlineAIPromptCommand[];
|
|
3775
4095
|
/**
|
|
3776
4096
|
* Sets the Popup settings.
|
|
3777
4097
|
*
|
|
@@ -3810,9 +4130,18 @@ declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy {
|
|
|
3810
4130
|
* @hidden
|
|
3811
4131
|
*/
|
|
3812
4132
|
calculateMeasurement: (value: string | number) => string;
|
|
4133
|
+
private _promptValue;
|
|
4134
|
+
private _placeholder;
|
|
4135
|
+
private _promptOutput;
|
|
4136
|
+
private _enableSpeechToText;
|
|
4137
|
+
private _streaming;
|
|
4138
|
+
private _width;
|
|
4139
|
+
private _maxHeight;
|
|
4140
|
+
private _outputActions;
|
|
4141
|
+
private _promptCommands;
|
|
3813
4142
|
private _popupSettings;
|
|
3814
4143
|
private subs;
|
|
3815
|
-
constructor(
|
|
4144
|
+
constructor(injector: Injector, element: ElementRef);
|
|
3816
4145
|
ngAfterViewInit(): void;
|
|
3817
4146
|
ngOnDestroy(): void;
|
|
3818
4147
|
/**
|
|
@@ -3854,15 +4183,21 @@ declare class Messages$1 extends ComponentMessages {
|
|
|
3854
4183
|
/**
|
|
3855
4184
|
* The title for the Commands button.
|
|
3856
4185
|
*/
|
|
3857
|
-
commandsButtonTitle: string;
|
|
4186
|
+
set commandsButtonTitle(value: string);
|
|
4187
|
+
get commandsButtonTitle(): string;
|
|
3858
4188
|
/**
|
|
3859
4189
|
* The title for the Generate button.
|
|
3860
4190
|
*/
|
|
3861
|
-
generateButtonTitle: string;
|
|
4191
|
+
set generateButtonTitle(value: string);
|
|
4192
|
+
get generateButtonTitle(): string;
|
|
3862
4193
|
/**
|
|
3863
4194
|
* The title for the Speech to Text button.
|
|
3864
4195
|
*/
|
|
3865
|
-
speechToTextButtonTitle: string;
|
|
4196
|
+
set speechToTextButtonTitle(value: string);
|
|
4197
|
+
get speechToTextButtonTitle(): string;
|
|
4198
|
+
private _commandsButtonTitle;
|
|
4199
|
+
private _generateButtonTitle;
|
|
4200
|
+
private _speechToTextButtonTitle;
|
|
3866
4201
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages$1, never>;
|
|
3867
4202
|
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$1, never, never, { "commandsButtonTitle": { "alias": "commandsButtonTitle"; "required": false; }; "generateButtonTitle": { "alias": "generateButtonTitle"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
3868
4203
|
}
|
|
@@ -3893,31 +4228,45 @@ declare class Messages extends ComponentMessages {
|
|
|
3893
4228
|
/**
|
|
3894
4229
|
* The title for the **File Select** button.
|
|
3895
4230
|
*/
|
|
3896
|
-
fileSelectButtonTitle: string;
|
|
4231
|
+
set fileSelectButtonTitle(value: string);
|
|
4232
|
+
get fileSelectButtonTitle(): string;
|
|
3897
4233
|
/**
|
|
3898
4234
|
* The title for the **Action** button.
|
|
3899
4235
|
*/
|
|
3900
|
-
actionButtonTitle: string;
|
|
4236
|
+
set actionButtonTitle(value: string);
|
|
4237
|
+
get actionButtonTitle(): string;
|
|
3901
4238
|
/**
|
|
3902
4239
|
* The title for the **Stop Generating** action.
|
|
3903
4240
|
*/
|
|
3904
|
-
stopGeneratingTitle: string;
|
|
4241
|
+
set stopGeneratingTitle(value: string);
|
|
4242
|
+
get stopGeneratingTitle(): string;
|
|
3905
4243
|
/**
|
|
3906
4244
|
* The title for the **Speech to Text** button.
|
|
3907
4245
|
*/
|
|
3908
|
-
speechToTextButtonTitle: string;
|
|
4246
|
+
set speechToTextButtonTitle(value: string);
|
|
4247
|
+
get speechToTextButtonTitle(): string;
|
|
3909
4248
|
/**
|
|
3910
4249
|
* The title for the **Remove File** button.
|
|
3911
4250
|
*/
|
|
3912
|
-
removeFileTitle: string;
|
|
4251
|
+
set removeFileTitle(value: string);
|
|
4252
|
+
get removeFileTitle(): string;
|
|
3913
4253
|
/**
|
|
3914
4254
|
* Sets the aria-label for the internal input/textarea element.
|
|
3915
4255
|
*/
|
|
3916
|
-
messageBoxTitle: string;
|
|
4256
|
+
set messageBoxTitle(value: string);
|
|
4257
|
+
get messageBoxTitle(): string;
|
|
3917
4258
|
/**
|
|
3918
4259
|
* Sets the aria-label for the attached files list.
|
|
3919
4260
|
*/
|
|
3920
|
-
attachedFilesLabel: string;
|
|
4261
|
+
set attachedFilesLabel(value: string);
|
|
4262
|
+
get attachedFilesLabel(): string;
|
|
4263
|
+
private _fileSelectButtonTitle;
|
|
4264
|
+
private _actionButtonTitle;
|
|
4265
|
+
private _stopGeneratingTitle;
|
|
4266
|
+
private _speechToTextButtonTitle;
|
|
4267
|
+
private _removeFileTitle;
|
|
4268
|
+
private _messageBoxTitle;
|
|
4269
|
+
private _attachedFilesLabel;
|
|
3921
4270
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
3922
4271
|
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "stopGeneratingTitle": { "alias": "stopGeneratingTitle"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; "attachedFilesLabel": { "alias": "attachedFilesLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
3923
4272
|
}
|
|
@@ -3950,31 +4299,38 @@ declare abstract class PromptBoxBaseTool {
|
|
|
3950
4299
|
/**
|
|
3951
4300
|
* Sets the disabled state of the button.
|
|
3952
4301
|
*/
|
|
3953
|
-
disabled: boolean;
|
|
4302
|
+
set disabled(value: boolean);
|
|
4303
|
+
get disabled(): boolean;
|
|
3954
4304
|
/**
|
|
3955
4305
|
* Sets the background and border styles of the button.
|
|
3956
4306
|
*/
|
|
3957
|
-
fillMode: ButtonFillMode;
|
|
4307
|
+
set fillMode(value: ButtonFillMode);
|
|
4308
|
+
get fillMode(): ButtonFillMode;
|
|
3958
4309
|
/**
|
|
3959
4310
|
* Sets the name of an existing font icon in the Kendo UI theme for the button.
|
|
3960
4311
|
*/
|
|
3961
|
-
icon: string;
|
|
4312
|
+
set icon(value: string);
|
|
4313
|
+
get icon(): string;
|
|
3962
4314
|
/**
|
|
3963
4315
|
* Defines a CSS class, or multiple classes separated by spaces, applied to a span element inside the button.
|
|
3964
4316
|
*/
|
|
3965
|
-
iconClass: string;
|
|
4317
|
+
set iconClass(value: string);
|
|
4318
|
+
get iconClass(): string;
|
|
3966
4319
|
/**
|
|
3967
4320
|
* Specifies a URL for an img element inside the button.
|
|
3968
4321
|
*/
|
|
3969
|
-
imageUrl: string;
|
|
4322
|
+
set imageUrl(value: string);
|
|
4323
|
+
get imageUrl(): string;
|
|
3970
4324
|
/**
|
|
3971
4325
|
* Sets the SVG icon for the tool button.
|
|
3972
4326
|
*/
|
|
3973
|
-
svgIcon: SVGIcon;
|
|
4327
|
+
set svgIcon(value: SVGIcon);
|
|
4328
|
+
get svgIcon(): SVGIcon;
|
|
3974
4329
|
/**
|
|
3975
4330
|
* Sets the border radius of the button.
|
|
3976
4331
|
*/
|
|
3977
|
-
rounded: ButtonRounded;
|
|
4332
|
+
set rounded(value: ButtonRounded);
|
|
4333
|
+
get rounded(): ButtonRounded;
|
|
3978
4334
|
/**
|
|
3979
4335
|
* Sets the padding of the button.
|
|
3980
4336
|
*/
|
|
@@ -3983,19 +4339,30 @@ declare abstract class PromptBoxBaseTool {
|
|
|
3983
4339
|
/**
|
|
3984
4340
|
* Sets a predefined theme color for the button.
|
|
3985
4341
|
*/
|
|
3986
|
-
themeColor: ButtonThemeColor;
|
|
4342
|
+
set themeColor(value: ButtonThemeColor);
|
|
4343
|
+
get themeColor(): ButtonThemeColor;
|
|
3987
4344
|
/**
|
|
3988
4345
|
* Sets the title attribute of the button.
|
|
3989
4346
|
*
|
|
3990
4347
|
* @remarks
|
|
3991
4348
|
* This property is related to accessibility.
|
|
3992
4349
|
*/
|
|
3993
|
-
title: string;
|
|
4350
|
+
set title(value: string);
|
|
4351
|
+
get title(): string;
|
|
3994
4352
|
/**
|
|
3995
4353
|
* @hidden
|
|
3996
4354
|
*/
|
|
3997
4355
|
sizeChange: EventEmitter<ButtonSize>;
|
|
4356
|
+
private _disabled;
|
|
4357
|
+
private _fillMode;
|
|
4358
|
+
private _icon;
|
|
4359
|
+
private _iconClass;
|
|
4360
|
+
private _imageUrl;
|
|
4361
|
+
private _svgIcon;
|
|
4362
|
+
private _rounded;
|
|
3998
4363
|
private _size;
|
|
4364
|
+
private _themeColor;
|
|
4365
|
+
private _title;
|
|
3999
4366
|
static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxBaseTool, never>;
|
|
4000
4367
|
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>;
|
|
4001
4368
|
}
|
|
@@ -4019,31 +4386,41 @@ declare class PromptBoxSpeechToTextButtonComponent extends PromptBoxBaseTool {
|
|
|
4019
4386
|
*
|
|
4020
4387
|
* @default false
|
|
4021
4388
|
*/
|
|
4022
|
-
continuous: boolean;
|
|
4389
|
+
set continuous(value: boolean);
|
|
4390
|
+
get continuous(): boolean;
|
|
4023
4391
|
/**
|
|
4024
4392
|
* Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
|
|
4025
4393
|
*
|
|
4026
4394
|
* @default 'webSpeech'
|
|
4027
4395
|
*/
|
|
4028
|
-
integrationMode: IntegrationMode;
|
|
4396
|
+
set integrationMode(value: IntegrationMode);
|
|
4397
|
+
get integrationMode(): IntegrationMode;
|
|
4029
4398
|
/**
|
|
4030
4399
|
* Sets whether interim results should be returned.
|
|
4031
4400
|
*
|
|
4032
4401
|
* @default false
|
|
4033
4402
|
*/
|
|
4034
|
-
interimResults: boolean;
|
|
4403
|
+
set interimResults(value: boolean);
|
|
4404
|
+
get interimResults(): boolean;
|
|
4035
4405
|
/**
|
|
4036
4406
|
* Sets a `BCP 47` language for speech recognition.
|
|
4037
4407
|
*
|
|
4038
4408
|
* @default 'en-US'
|
|
4039
4409
|
*/
|
|
4040
|
-
lang: string;
|
|
4410
|
+
set lang(value: string);
|
|
4411
|
+
get lang(): string;
|
|
4041
4412
|
/**
|
|
4042
4413
|
* Represents the maximum number of alternative transcriptions to return for each result.
|
|
4043
4414
|
*
|
|
4044
4415
|
* @default 1
|
|
4045
4416
|
*/
|
|
4046
|
-
maxAlternatives: number;
|
|
4417
|
+
set maxAlternatives(value: number);
|
|
4418
|
+
get maxAlternatives(): number;
|
|
4419
|
+
private _continuous;
|
|
4420
|
+
private _integrationMode;
|
|
4421
|
+
private _interimResults;
|
|
4422
|
+
private _lang;
|
|
4423
|
+
private _maxAlternatives;
|
|
4047
4424
|
/**
|
|
4048
4425
|
* Fires when the user clicks the **Speech to Text** button.
|
|
4049
4426
|
* @hidden
|
|
@@ -4095,30 +4472,38 @@ declare class PromptBoxActionButtonComponent extends PromptBoxBaseTool {
|
|
|
4095
4472
|
/**
|
|
4096
4473
|
* @hidden
|
|
4097
4474
|
*/
|
|
4098
|
-
buttonClass: string;
|
|
4475
|
+
set buttonClass(value: string);
|
|
4476
|
+
get buttonClass(): string;
|
|
4099
4477
|
/**
|
|
4100
4478
|
* Sets the loading state of the **Action** button.
|
|
4101
4479
|
*
|
|
4102
4480
|
* @default false
|
|
4103
4481
|
*/
|
|
4104
|
-
loading: boolean;
|
|
4482
|
+
set loading(value: boolean);
|
|
4483
|
+
get loading(): boolean;
|
|
4105
4484
|
/**
|
|
4106
4485
|
* Sets the icon to be displayed when the **Action** button is in loading state.
|
|
4107
4486
|
*
|
|
4108
4487
|
* @default 'stop'
|
|
4109
4488
|
*/
|
|
4110
|
-
loadingIcon: string;
|
|
4489
|
+
set loadingIcon(value: string);
|
|
4490
|
+
get loadingIcon(): string;
|
|
4111
4491
|
/**
|
|
4112
4492
|
* Sets the SVG icon to be displayed when the **Action** button is in loading state.
|
|
4113
4493
|
*
|
|
4114
4494
|
* @default stopIcon
|
|
4115
4495
|
*/
|
|
4116
|
-
loadingSVGIcon: SVGIcon;
|
|
4496
|
+
set loadingSVGIcon(value: SVGIcon);
|
|
4497
|
+
get loadingSVGIcon(): SVGIcon;
|
|
4117
4498
|
/**
|
|
4118
4499
|
* Fires when the user clicks the Action button.
|
|
4119
4500
|
* @hidden
|
|
4120
4501
|
*/
|
|
4121
4502
|
promptAction: EventEmitter<ActionButtonEvent>;
|
|
4503
|
+
private _buttonClass;
|
|
4504
|
+
private _loading;
|
|
4505
|
+
private _loadingIcon;
|
|
4506
|
+
private _loadingSVGIcon;
|
|
4122
4507
|
constructor(localization: LocalizationService);
|
|
4123
4508
|
/**
|
|
4124
4509
|
* @hidden
|
|
@@ -4153,23 +4538,29 @@ declare class PromptBoxFileSelectButtonComponent extends PromptBoxBaseTool {
|
|
|
4153
4538
|
/**
|
|
4154
4539
|
* Sets the restrictions for selected files.
|
|
4155
4540
|
*/
|
|
4156
|
-
restrictions: FileRestrictions;
|
|
4541
|
+
set restrictions(value: FileRestrictions);
|
|
4542
|
+
get restrictions(): FileRestrictions;
|
|
4157
4543
|
/**
|
|
4158
4544
|
* Allows you to select multiple files.
|
|
4159
4545
|
*
|
|
4160
4546
|
* @default true
|
|
4161
4547
|
*/
|
|
4162
|
-
multiple: boolean;
|
|
4548
|
+
set multiple(value: boolean);
|
|
4549
|
+
get multiple(): boolean;
|
|
4163
4550
|
/**
|
|
4164
4551
|
* Sets the `accept` attribute of the internal FileSelect component.
|
|
4165
4552
|
* Specifies the file types that the user can select.
|
|
4166
4553
|
*/
|
|
4167
|
-
accept: string;
|
|
4554
|
+
set accept(value: string);
|
|
4555
|
+
get accept(): string;
|
|
4168
4556
|
/**
|
|
4169
4557
|
* Fires when the user selects files.
|
|
4170
4558
|
* @hidden
|
|
4171
4559
|
*/
|
|
4172
4560
|
selectAttachments: EventEmitter<SelectEvent>;
|
|
4561
|
+
private _restrictions;
|
|
4562
|
+
private _multiple;
|
|
4563
|
+
private _accept;
|
|
4173
4564
|
constructor(localization: LocalizationService);
|
|
4174
4565
|
/**
|
|
4175
4566
|
* @hidden
|