@progress/kendo-angular-conversational-ui 19.3.0-develop.24 → 19.3.0-develop.26

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.
Files changed (45) hide show
  1. package/conversational-ui.module.d.ts +4 -1
  2. package/directives.d.ts +5 -1
  3. package/esm2022/ai-prompt/views/prompt-view.component.mjs +1 -1
  4. package/esm2022/chat/message-box.component.mjs +1 -1
  5. package/esm2022/conversational-ui.module.mjs +5 -2
  6. package/esm2022/directives.mjs +10 -1
  7. package/esm2022/index.mjs +5 -0
  8. package/esm2022/inline-ai-prompt/inlineaiprompt-content.component.mjs +549 -0
  9. package/esm2022/inline-ai-prompt/inlineaiprompt.component.mjs +342 -0
  10. package/esm2022/inline-ai-prompt/inlineaiprompt.service.mjs +85 -0
  11. package/esm2022/inline-ai-prompt/localization/custom-messages.component.mjs +53 -0
  12. package/esm2022/inline-ai-prompt/localization/localized-messages.directive.mjs +39 -0
  13. package/esm2022/inline-ai-prompt/localization/messages.mjs +35 -0
  14. package/esm2022/inline-ai-prompt/models/command.interface.mjs +5 -0
  15. package/esm2022/inline-ai-prompt/models/index.mjs +5 -0
  16. package/esm2022/inline-ai-prompt/models/inlineaiprompt-popupsettings.mjs +5 -0
  17. package/esm2022/inline-ai-prompt/models/inlineaiprompt-settings.mjs +59 -0
  18. package/esm2022/inline-ai-prompt/models/messages.mjs +8 -0
  19. package/esm2022/inline-ai-prompt/models/output-action-click-event.mjs +5 -0
  20. package/esm2022/inline-ai-prompt/models/output-action.interface.mjs +5 -0
  21. package/esm2022/inline-ai-prompt/models/prompt-output.interface.mjs +5 -0
  22. package/esm2022/inline-ai-prompt/models/prompt-request-event.mjs +5 -0
  23. package/esm2022/inline-ai-prompt/output-template.directive.mjs +38 -0
  24. package/esm2022/inline-ai-prompt/utils.mjs +22 -0
  25. package/esm2022/package-metadata.mjs +2 -2
  26. package/fesm2022/progress-kendo-angular-conversational-ui.mjs +1195 -42
  27. package/index.d.ts +5 -0
  28. package/inline-ai-prompt/inlineaiprompt-content.component.d.ts +82 -0
  29. package/inline-ai-prompt/inlineaiprompt.component.d.ts +150 -0
  30. package/inline-ai-prompt/inlineaiprompt.service.d.ts +41 -0
  31. package/inline-ai-prompt/localization/custom-messages.component.d.ts +27 -0
  32. package/inline-ai-prompt/localization/localized-messages.directive.d.ts +16 -0
  33. package/inline-ai-prompt/localization/messages.d.ts +25 -0
  34. package/inline-ai-prompt/models/command.interface.d.ts +38 -0
  35. package/inline-ai-prompt/models/index.d.ts +12 -0
  36. package/inline-ai-prompt/models/inlineaiprompt-popupsettings.d.ts +10 -0
  37. package/inline-ai-prompt/models/inlineaiprompt-settings.d.ts +66 -0
  38. package/inline-ai-prompt/models/messages.d.ts +21 -0
  39. package/inline-ai-prompt/models/output-action-click-event.d.ts +19 -0
  40. package/inline-ai-prompt/models/output-action.interface.d.ts +52 -0
  41. package/inline-ai-prompt/models/prompt-output.interface.d.ts +25 -0
  42. package/inline-ai-prompt/models/prompt-request-event.d.ts +17 -0
  43. package/inline-ai-prompt/output-template.directive.d.ts +27 -0
  44. package/inline-ai-prompt/utils.d.ts +13 -0
  45. package/package.json +12 -11
package/index.d.ts CHANGED
@@ -19,4 +19,9 @@ export { AIPromptOutputTemplateDirective } from './ai-prompt/templates/aiprompt-
19
19
  export { AIPromptOutputBodyTemplateDirective } from './ai-prompt/templates/aiprompt-output-body-template.directive';
20
20
  export * from './ai-prompt/views';
21
21
  export * from './ai-prompt/models';
22
+ export { InlineAIPromptComponent } from './inline-ai-prompt/inlineaiprompt.component';
23
+ export { InlineAIPromptOutputTemplateDirective } from './inline-ai-prompt/output-template.directive';
24
+ export { InlineAIPromptService } from './inline-ai-prompt/inlineaiprompt.service';
25
+ export { InlineAIPromptCustomMessagesComponent } from './inline-ai-prompt/localization/custom-messages.component';
26
+ export * from './inline-ai-prompt/models';
22
27
  export * from './directives';
@@ -0,0 +1,82 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2, ViewContainerRef, AfterViewInit, TemplateRef } from '@angular/core';
6
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { SpeechToTextButtonSettings } from '@progress/kendo-angular-buttons';
9
+ import { TextAreaComponent } from '@progress/kendo-angular-inputs';
10
+ import { InlineAIPromptRequestEvent, InlineAIPromptOutputAction, InlineAIPromptOutputActionClickEvent, InlineAIPromptOutput, InlineAIPromptCommand, InlineAIPromptMessages } from './models';
11
+ import { ContextMenuComponent, MenuItem } from '@progress/kendo-angular-menu';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare class InlineAIPromptContentComponent implements OnDestroy, AfterViewInit {
17
+ private ngZone;
18
+ private renderer;
19
+ private element;
20
+ localization: LocalizationService;
21
+ className: boolean;
22
+ get dirAttr(): string;
23
+ get maxHeightStyle(): string;
24
+ get widthStyle(): string;
25
+ popupElement: ElementRef;
26
+ promptValue: string;
27
+ placeholder: string;
28
+ promptOutput: InlineAIPromptOutput;
29
+ enableTextToSpeech: boolean | SpeechToTextButtonSettings;
30
+ streaming: boolean;
31
+ width: number | string;
32
+ maxHeight: number | string;
33
+ appendTo: ViewContainerRef;
34
+ defaultOutputActions: InlineAIPromptOutputAction[];
35
+ set outputActions(actions: InlineAIPromptOutputAction[]);
36
+ get outputActions(): InlineAIPromptOutputAction[];
37
+ set promptCommands(commands: InlineAIPromptCommand[]);
38
+ get promptCommands(): InlineAIPromptCommand[];
39
+ outputTemplate: TemplateRef<any>;
40
+ promptRequest: EventEmitter<InlineAIPromptRequestEvent>;
41
+ executeCommand: EventEmitter<InlineAIPromptCommand>;
42
+ outputActionClick: EventEmitter<InlineAIPromptOutputActionClickEvent>;
43
+ promptRequestCancel: EventEmitter<void>;
44
+ close: EventEmitter<void>;
45
+ promptValueChange: EventEmitter<string>;
46
+ onEscapeKey(event: KeyboardEvent): void;
47
+ textArea: TextAreaComponent;
48
+ contextMenu: ContextMenuComponent;
49
+ calculateMeasurement: (value: string | number) => string;
50
+ commandMenuIcon: SVGIcon;
51
+ sendIcon: SVGIcon;
52
+ stopGenerationIcon: SVGIcon;
53
+ isListening: boolean;
54
+ commandMenuItems: MenuItem[];
55
+ messages: InlineAIPromptMessages;
56
+ maxRows: number;
57
+ initialRows: number;
58
+ private _outputActions;
59
+ private _promptCommands;
60
+ private direction;
61
+ private localizationSubs;
62
+ private subs;
63
+ constructor(ngZone: NgZone, renderer: Renderer2, element: ElementRef, localization: LocalizationService);
64
+ ngAfterViewInit(): void;
65
+ ngOnDestroy(): void;
66
+ focus(): void;
67
+ onActionClick(event: any): void;
68
+ handleDefaultActions(event: InlineAIPromptOutputAction): void;
69
+ handleSpeechResult(event: any): void;
70
+ onClick(action: any): void;
71
+ handlePromptValueChange(value: string): void;
72
+ handleTextAreaKeydown(event: any): void;
73
+ onCommandButtonClick(event: any): void;
74
+ onCommandClick(event: any): void;
75
+ messageFor(text: string): string;
76
+ handlePromptRequest(): void;
77
+ private mergeWithDefaultActions;
78
+ private transformCommands;
79
+ private outsideClickClose;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptContentComponent, [null, null, null, { optional: true; skipSelf: true; }]>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<InlineAIPromptContentComponent, "kendo-inlineaiprompt-content", ["kendoInlineAIPromptContent"], { "popupElement": { "alias": "popupElement"; "required": false; }; "promptValue": { "alias": "promptValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "promptOutput": { "alias": "promptOutput"; "required": false; }; "enableTextToSpeech": { "alias": "enableTextToSpeech"; "required": false; }; "streaming": { "alias": "streaming"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "outputActions": { "alias": "outputActions"; "required": false; }; "promptCommands": { "alias": "promptCommands"; "required": false; }; "outputTemplate": { "alias": "outputTemplate"; "required": false; }; }, { "promptRequest": "promptRequest"; "executeCommand": "executeCommand"; "outputActionClick": "outputActionClick"; "promptRequestCancel": "promptRequestCancel"; "close": "close"; "promptValueChange": "promptValueChange"; }, never, never, true, never>;
82
+ }
@@ -0,0 +1,150 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 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, ElementRef, EventEmitter, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
6
+ import { InlineAIPromptRequestEvent, InlineAIPromptOutputAction, InlineAIPromptOutputActionClickEvent, InlineAIPromptOutput, InlineAIPromptCommand } from './models';
7
+ import { InlineAIPromptContentComponent } from './inlineaiprompt-content.component';
8
+ import { SpeechToTextButtonSettings } from '@progress/kendo-angular-buttons';
9
+ import { InlineAIPromptPopupSettings } from './models/inlineaiprompt-popupsettings';
10
+ import { InlineAIPromptOutputTemplateDirective } from './output-template.directive';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * Represents the Kendo UI InlineAIPrompt component for Angular.
14
+ *
15
+ * @remarks
16
+ * Supported children components are: {@link InlineAIPromptCustomMessagesComponent}
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <kendo-inlineaiprompt
21
+ * placeholder="Enter your prompt..."
22
+ * [promptOutput]="promptOutput"
23
+ * (promptRequest)="onPromptRequest($event)">
24
+ * </kendo-inlineaiprompt>
25
+ * ```
26
+ */
27
+ export declare class InlineAIPromptComponent implements AfterViewInit, OnDestroy {
28
+ private ngZone;
29
+ element: ElementRef;
30
+ /**
31
+ * Sets the text of the TextArea.
32
+ */
33
+ promptValue: string;
34
+ /**
35
+ * Sets the placeholder text that appears in the text area when it is empty.
36
+ */
37
+ placeholder: string;
38
+ /**
39
+ * Sets the output data for the prompt.
40
+ * The output displays as a card above the text area.
41
+ */
42
+ promptOutput: InlineAIPromptOutput;
43
+ /**
44
+ * Controls the visibility and settings of the Speech to Text button.
45
+ *
46
+ * @default true
47
+ */
48
+ enableTextToSpeech: boolean | SpeechToTextButtonSettings;
49
+ /**
50
+ * Sets the streaming state of the component.
51
+ * When set to `true`, the send button displays a generating state and the component emits a `promptRequestCancel` event when you click it.
52
+ *
53
+ * @default false
54
+ */
55
+ streaming: boolean;
56
+ /**
57
+ * Sets the width of the component.
58
+ * Accepts a number for pixels or a string for other units.
59
+ *
60
+ * @default 550
61
+ */
62
+ width: number | string;
63
+ /**
64
+ * Sets the maximum height of the component.
65
+ * Accepts a number for pixels or a string for other units.
66
+ */
67
+ maxHeight: number | string;
68
+ /**
69
+ * Sets the output actions that display in the output card.
70
+ * The default actions are `copy`, `retry`, and `discard`.
71
+ * To customize the appearance and order of the default actions, define them with the same `name`.
72
+ */
73
+ outputActions: InlineAIPromptOutputAction[];
74
+ /**
75
+ * Sets the available prompt commands.
76
+ */
77
+ promptCommands: InlineAIPromptCommand[];
78
+ /**
79
+ * Sets the popup settings for the component.
80
+ */
81
+ set popupSettings(settings: InlineAIPromptPopupSettings);
82
+ get popupSettings(): InlineAIPromptPopupSettings;
83
+ /**
84
+ * Fires when you click the send button.
85
+ */
86
+ promptRequest: EventEmitter<InlineAIPromptRequestEvent>;
87
+ /**
88
+ * Fires when you click a command.
89
+ */
90
+ executeCommand: EventEmitter<InlineAIPromptCommand>;
91
+ /**
92
+ * Fires when you click an output action button.
93
+ */
94
+ outputActionClick: EventEmitter<InlineAIPromptOutputActionClickEvent>;
95
+ /**
96
+ * Fires when you cancel the prompt request by clicking the stop button.
97
+ */
98
+ promptRequestCancel: EventEmitter<void>;
99
+ /**
100
+ * Fires when the component closes, either by clicking outside the popup or by clicking the Discard action.
101
+ */
102
+ close: EventEmitter<void>;
103
+ /**
104
+ * Fires when the value of the TextArea changes.
105
+ */
106
+ promptValueChange: EventEmitter<string>;
107
+ popupElement: ElementRef;
108
+ popupViewContainer: ViewContainerRef;
109
+ contentComponent: InlineAIPromptContentComponent;
110
+ outputTemplate: InlineAIPromptOutputTemplateDirective;
111
+ /**
112
+ * @hidden
113
+ */
114
+ calculateMeasurement: (value: string | number) => string;
115
+ private _popupSettings;
116
+ private subs;
117
+ constructor(ngZone: NgZone, element: ElementRef);
118
+ ngAfterViewInit(): void;
119
+ ngOnDestroy(): void;
120
+ /**
121
+ * Focuses the TextArea of the Inline AI Prompt.
122
+ */
123
+ focus(): void;
124
+ /**
125
+ * @hidden
126
+ */
127
+ onPromptRequest(event: InlineAIPromptRequestEvent): void;
128
+ /**
129
+ * @hidden
130
+ */
131
+ onExecuteCommand(event: InlineAIPromptCommand): void;
132
+ /**
133
+ * @hidden
134
+ */
135
+ onOutputActionClick(event: InlineAIPromptOutputActionClickEvent): void;
136
+ /**
137
+ * @hidden
138
+ */
139
+ onPromptRequestCancel(): void;
140
+ /**
141
+ * @hidden
142
+ */
143
+ onClose(): void;
144
+ /**
145
+ * @hidden
146
+ */
147
+ onPromptValueChange(value: string): void;
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptComponent, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<InlineAIPromptComponent, "kendo-inlineaiprompt", ["kendoInlineAIPrompt"], { "promptValue": { "alias": "promptValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "promptOutput": { "alias": "promptOutput"; "required": false; }; "enableTextToSpeech": { "alias": "enableTextToSpeech"; "required": false; }; "streaming": { "alias": "streaming"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "outputActions": { "alias": "outputActions"; "required": false; }; "promptCommands": { "alias": "promptCommands"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; }, { "promptRequest": "promptRequest"; "executeCommand": "executeCommand"; "outputActionClick": "outputActionClick"; "promptRequestCancel": "promptRequestCancel"; "close": "close"; "promptValueChange": "promptValueChange"; }, ["outputTemplate"], never, true, never>;
150
+ }
@@ -0,0 +1,41 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PopupService, PopupRef } from '@progress/kendo-angular-popup';
6
+ import { InlineAIPromptSettings } from './models';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Provides a service for opening Inline AI Prompt components dynamically.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * import { InlineAIPromptService } from '@progress/kendo-angular-conversational-ui';
14
+ *
15
+ * constructor(private inlineAIPromptService: InlineAIPromptService) {}
16
+ *
17
+ * openPrompt(anchor: ElementRef) {
18
+ * const promptRef = this.inlineAIPromptService.open({
19
+ * anchor: anchor,
20
+ * placeholder: 'Enter your prompt...'
21
+ * });
22
+ * }
23
+ * ```
24
+ */
25
+ export declare class InlineAIPromptService {
26
+ private popupService;
27
+ constructor(popupService: PopupService);
28
+ /**
29
+ * Opens an Inline AI Prompt component in a popup. The popup appears near the specified anchor element or at the provided offset coordinates.
30
+ *
31
+ * @param {InlineAIPromptSettings} options - The options for the InlineAIPromptComponent.
32
+ * @returns {PopupRef} A reference to the popup.
33
+ */
34
+ open(options: InlineAIPromptSettings): PopupRef;
35
+ /**
36
+ * Projects the input options onto the component instance.
37
+ */
38
+ private projectComponentInputs;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptService, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<InlineAIPromptService>;
41
+ }
@@ -0,0 +1,27 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Represents the custom messages component of the Inline AI Prompt.
10
+ *
11
+ * Use this component to override default messages for the Inline AI Prompt.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-inlineaiprompt-messages
16
+ * commandsButtonTitle="Commands Menu"
17
+ * generateButtonTitle="Generate">
18
+ * </kendo-inlineaiprompt-messages>
19
+ * ```
20
+ */
21
+ export declare class InlineAIPromptCustomMessagesComponent extends Messages {
22
+ protected service: LocalizationService;
23
+ constructor(service: LocalizationService);
24
+ protected get override(): boolean;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptCustomMessagesComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<InlineAIPromptCustomMessagesComponent, "kendo-inlineaiprompt-messages", never, {}, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1,16 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class LocalizedMessagesDirective extends Messages {
12
+ protected service: LocalizationService;
13
+ constructor(service: LocalizationService);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoInlineAIPromptLocalizedMessages]", never, {}, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,25 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ComponentMessages } from '@progress/kendo-angular-l10n';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class Messages extends ComponentMessages {
11
+ /**
12
+ * Sets the Commands button title.
13
+ */
14
+ commandsButtonTitle: string;
15
+ /**
16
+ * Sets the Generate button title.
17
+ */
18
+ generateButtonTitle: string;
19
+ /**
20
+ * Sets the Speech to Text button title.
21
+ */
22
+ speechToTextButtonTitle: string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "commandsButtonTitle": { "alias": "commandsButtonTitle"; "required": false; }; "generateButtonTitle": { "alias": "generateButtonTitle"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; }, {}, never, never, false, never>;
25
+ }
@@ -0,0 +1,38 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SVGIcon } from "@progress/kendo-svg-icons";
6
+ /**
7
+ * Defines the interface for the Inline AI Prompt commands that display in the input.
8
+ */
9
+ export interface InlineAIPromptCommand {
10
+ /**
11
+ * Represents the unique identifier of the command.
12
+ */
13
+ id: string | number;
14
+ /**
15
+ * Specifies the command text.
16
+ */
17
+ text?: string;
18
+ /**
19
+ * Defines the prompt that the component uses when the command executes.
20
+ */
21
+ prompt?: string;
22
+ /**
23
+ * Sets the name of the [font icon](slug:icons#icons-list) to render for the command.
24
+ */
25
+ icon?: string;
26
+ /**
27
+ * Sets the name of the [SVG icon](slug:svgicon_list) to render for the command.
28
+ */
29
+ svgIcon?: SVGIcon;
30
+ /**
31
+ * Specifies whether the command is disabled.
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * Specifies the subcommands of the command.
36
+ */
37
+ children?: InlineAIPromptCommand[];
38
+ }
@@ -0,0 +1,12 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export { InlineAIPromptCommand } from './command.interface';
6
+ export { InlineAIPromptOutput } from './prompt-output.interface';
7
+ export { InlineAIPromptRequestEvent } from './prompt-request-event';
8
+ export { InlineAIPromptOutputAction } from './output-action.interface';
9
+ export { InlineAIPromptSettings } from './inlineaiprompt-settings';
10
+ export { InlineAIPromptOutputActionClickEvent } from './output-action-click-event';
11
+ export { InlineAIPromptMessages } from './messages';
12
+ export { InlineAIPromptPopupSettings } from './inlineaiprompt-popupsettings';
@@ -0,0 +1,10 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PopupSettings } from "@progress/kendo-angular-popup";
6
+ /**
7
+ * Interface representing all configuration options of the Popup where the Inline AI Prompt is displayed.
8
+ */
9
+ export interface InlineAIPromptPopupSettings extends Omit<PopupSettings, 'content'> {
10
+ }
@@ -0,0 +1,66 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SpeechToTextButtonSettings } from "@progress/kendo-angular-buttons";
6
+ import { InlineAIPromptOutputAction } from "./output-action.interface";
7
+ import { InlineAIPromptCommand } from "./command.interface";
8
+ import { InlineAIPromptOutput } from "./prompt-output.interface";
9
+ import { InlineAIPromptMessages } from "./messages";
10
+ import { TemplateRef } from "@angular/core";
11
+ import { InlineAIPromptPopupSettings } from "./inlineaiprompt-popupsettings";
12
+ /**
13
+ * Defines the settings for opening an Inline AI Prompt through the `InlineAIPromptService`.
14
+ */
15
+ export declare class InlineAIPromptSettings {
16
+ /**
17
+ * Specifies the settings for the Inline AI Prompt Popup.
18
+ */
19
+ popupSettings?: InlineAIPromptPopupSettings;
20
+ /**
21
+ * Sets the width of the component.
22
+ * Accepts a number for pixels or a string for other units, for example, `50%`.
23
+ */
24
+ width?: number | string;
25
+ /**
26
+ * Sets the maximum height of the component.
27
+ * Accepts a number for pixels or a string for other units, for example, `50%`.
28
+ */
29
+ maxHeight?: number | string;
30
+ /**
31
+ * Sets the value of the Inline AI Prompt TextArea.
32
+ */
33
+ promptValue?: string;
34
+ /**
35
+ * Sets the placeholder of the Inline AI Prompt TextArea.
36
+ */
37
+ placeholder?: string;
38
+ /**
39
+ * Sets the action buttons for the output card.
40
+ */
41
+ outputActions?: InlineAIPromptOutputAction[];
42
+ /**
43
+ * Sets the commands for the Inline AI Prompt TextArea prefix.
44
+ */
45
+ promptCommands?: InlineAIPromptCommand[];
46
+ /**
47
+ * Sets the prompt output to display.
48
+ */
49
+ promptOutput?: InlineAIPromptOutput;
50
+ /**
51
+ * Sets the visibility and configuration of the Speech to Text button.
52
+ */
53
+ enableSpeechToTextButton?: boolean | SpeechToTextButtonSettings;
54
+ /**
55
+ * Sets the template for the output content. If not provided, the default output template is used.
56
+ */
57
+ outputTemplate?: TemplateRef<any>;
58
+ /**
59
+ * Sets whether the send button turns into a stop button.
60
+ */
61
+ streaming?: boolean;
62
+ /**
63
+ * Sets the titles of the buttons shown in the Inline AI Prompt. Use for localization.
64
+ */
65
+ messages?: InlineAIPromptMessages;
66
+ }
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Defines the titles that appear in the Inline AI Prompt. Use for localization.
7
+ */
8
+ export interface InlineAIPromptMessages {
9
+ /**
10
+ * Sets the Commands button title.
11
+ */
12
+ commandsButtonTitle?: string;
13
+ /**
14
+ * Sets the Generate button title.
15
+ */
16
+ generateButtonTitle?: string;
17
+ /**
18
+ * Sets the Speech to Text button title.
19
+ */
20
+ speechToTextButtonTitle?: string;
21
+ }
@@ -0,0 +1,19 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { InlineAIPromptOutputAction } from "./output-action.interface";
6
+ import { InlineAIPromptOutput } from "./prompt-output.interface";
7
+ /**
8
+ * Represents the arguments for the `outputActionClick` event of the Inline AI Prompt.
9
+ */
10
+ export interface InlineAIPromptOutputActionClickEvent {
11
+ /**
12
+ * Contains information about the clicked action.
13
+ */
14
+ action: InlineAIPromptOutputAction;
15
+ /**
16
+ * Contains the output associated with the action click event.
17
+ */
18
+ output: InlineAIPromptOutput;
19
+ }
@@ -0,0 +1,52 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ButtonFillMode, ButtonRounded, ButtonThemeColor } from "@progress/kendo-angular-buttons";
6
+ import { SVGIcon } from "@progress/kendo-svg-icons";
7
+ /**
8
+ * Defines the interface for the Inline AI Prompt output actions.
9
+ */
10
+ export interface InlineAIPromptOutputAction {
11
+ /**
12
+ * Represents the identifying name of the action.
13
+ * Predefined action names are `copy`, `retry`, and `discard`.
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Represents the type of the action.
18
+ */
19
+ type?: "button" | "spacer";
20
+ /**
21
+ * Represents the font icon of the action.
22
+ */
23
+ icon?: string;
24
+ /**
25
+ * Represents the SVG icon of the action.
26
+ */
27
+ svgIcon?: SVGIcon;
28
+ /**
29
+ * Represents the text of the action.
30
+ */
31
+ text?: string;
32
+ /**
33
+ * Represents the title attribute of the action.
34
+ */
35
+ title?: string;
36
+ /**
37
+ * Specifies the fill mode of the button.
38
+ */
39
+ fillMode?: ButtonFillMode;
40
+ /**
41
+ * Specifies the theme color of the button.
42
+ */
43
+ themeColor?: ButtonThemeColor;
44
+ /**
45
+ * Specifies the rounded styling of the button.
46
+ */
47
+ rounded?: ButtonRounded;
48
+ /**
49
+ * Specifies whether the action is disabled.
50
+ */
51
+ disabled?: boolean;
52
+ }
@@ -0,0 +1,25 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Defines the interface for the Inline AI Prompt output.
7
+ */
8
+ export interface InlineAIPromptOutput {
9
+ /**
10
+ * Represents the unique identifier of the prompt output.
11
+ */
12
+ id: number | string;
13
+ /**
14
+ * Represents the text content of the prompt output.
15
+ */
16
+ output: string;
17
+ /**
18
+ * Represents the prompt that initiates the output generation.
19
+ */
20
+ prompt: string;
21
+ /**
22
+ * Specifies a command ID, if the prompt generation is triggered by a command.
23
+ */
24
+ commandId?: string | number;
25
+ }
@@ -0,0 +1,17 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the arguments for the `promptRequest` event of the Inline AI Prompt.
7
+ */
8
+ export interface InlineAIPromptRequestEvent {
9
+ /**
10
+ * Represents the user prompt input.
11
+ */
12
+ prompt: string;
13
+ /**
14
+ * Specifies whether the event is triggered by the built-in **Retry** action button.
15
+ */
16
+ isRetry?: boolean;
17
+ }
@@ -0,0 +1,27 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { TemplateRef } from "@angular/core";
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Defines a template for displaying the output of the Inline AI Prompt.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kendo-inlineaiprompt>
13
+ * <ng-template kendoInlineAIPromptOutputTemplate let-output>
14
+ * <div class="custom-output">
15
+ * <h4>AI Response:</h4>
16
+ * <p>{{ output.output }}</p>
17
+ * </div>
18
+ * </ng-template>
19
+ * </kendo-inlineaiprompt>
20
+ * ```
21
+ */
22
+ export declare class InlineAIPromptOutputTemplateDirective {
23
+ templateRef: TemplateRef<any>;
24
+ constructor(templateRef: TemplateRef<any>);
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptOutputTemplateDirective, [{ optional: true; }]>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InlineAIPromptOutputTemplateDirective, "[kendoInlineAIPromptOutputTemplate]", never, {}, {}, never, never, true, never>;
27
+ }