@progress/kendo-angular-conversational-ui 24.2.2 → 25.0.0-develop.2
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 +228 -228
- package/index.d.ts +4350 -51
- package/package-metadata.mjs +2 -2
- package/package.json +18 -18
- package/ai-prompt/aiprompt.component.d.ts +0 -203
- package/ai-prompt/aiprompt.module.d.ts +0 -38
- package/ai-prompt/common/aiprompt.service.d.ts +0 -36
- package/ai-prompt/common/output-card.component.d.ts +0 -42
- package/ai-prompt/common/toolbar-focusable.directive.d.ts +0 -24
- package/ai-prompt/common/toolbar-navigation.service.d.ts +0 -24
- package/ai-prompt/localization/custom-messages.component.d.ts +0 -28
- package/ai-prompt/localization/localized-messages.directive.d.ts +0 -16
- package/ai-prompt/localization/messages.d.ts +0 -53
- package/ai-prompt/models/ai-prompt-settings.d.ts +0 -60
- package/ai-prompt/models/command-execute-event.d.ts +0 -24
- package/ai-prompt/models/command.interface.d.ts +0 -30
- package/ai-prompt/models/index.d.ts +0 -11
- package/ai-prompt/models/output-rating-change-event.d.ts +0 -19
- package/ai-prompt/models/prompt-output.interface.d.ts +0 -41
- package/ai-prompt/models/prompt-request-event.d.ts +0 -23
- package/ai-prompt/models/view-type.d.ts +0 -8
- package/ai-prompt/templates/aiprompt-output-body-template.directive.d.ts +0 -24
- package/ai-prompt/templates/aiprompt-output-template.directive.d.ts +0 -24
- package/ai-prompt/templates/toolbar-actions.template.d.ts +0 -28
- package/ai-prompt/utils.d.ts +0 -19
- package/ai-prompt/views/base-view.d.ts +0 -46
- package/ai-prompt/views/command-view.component.d.ts +0 -36
- package/ai-prompt/views/custom-view.component.d.ts +0 -30
- package/ai-prompt/views/index.d.ts +0 -8
- package/ai-prompt/views/output-view.component.d.ts +0 -33
- package/ai-prompt/views/prompt-view.component.d.ts +0 -76
- package/chat/api/action.interface.d.ts +0 -30
- package/chat/api/attachment.interface.d.ts +0 -33
- package/chat/api/chat-file-interface.d.ts +0 -41
- package/chat/api/chat-load-more-event.d.ts +0 -18
- package/chat/api/chat-referenced-message-click-event.d.ts +0 -18
- package/chat/api/chat-suggestion.interface.d.ts +0 -25
- package/chat/api/execute-action-event.d.ts +0 -27
- package/chat/api/file-action.d.ts +0 -45
- package/chat/api/file-download-event.interface.d.ts +0 -21
- package/chat/api/files-layout.d.ts +0 -12
- package/chat/api/index.d.ts +0 -25
- package/chat/api/message-action.d.ts +0 -45
- package/chat/api/message-box.d.ts +0 -28
- package/chat/api/message-settings.interface.d.ts +0 -41
- package/chat/api/message-status.interface.d.ts +0 -22
- package/chat/api/message-width-mode.d.ts +0 -10
- package/chat/api/message.interface.d.ts +0 -77
- package/chat/api/post-message-event.d.ts +0 -29
- package/chat/api/preventable-event.d.ts +0 -24
- package/chat/api/scroll-mode.d.ts +0 -12
- package/chat/api/send-button-settings.d.ts +0 -24
- package/chat/api/suggestions-layout.d.ts +0 -20
- package/chat/api/timestamp-visibility.d.ts +0 -10
- package/chat/api/user.interface.d.ts +0 -30
- package/chat/attachment.component.d.ts +0 -22
- package/chat/builtin-actions.d.ts +0 -14
- package/chat/cards/hero-card.component.d.ts +0 -49
- package/chat/chat-file.component.d.ts +0 -34
- package/chat/chat-item.d.ts +0 -11
- package/chat/chat-view.d.ts +0 -54
- package/chat/chat.component.d.ts +0 -561
- package/chat/chat.directives.d.ts +0 -18
- package/chat/chat.module.d.ts +0 -51
- package/chat/common/chat.service.d.ts +0 -99
- package/chat/common/endless-scroll-state.d.ts +0 -36
- package/chat/common/models/default-model-fields.d.ts +0 -9
- package/chat/common/models/formatted-text-parts.d.ts +0 -12
- package/chat/common/models/model-fields.d.ts +0 -111
- package/chat/common/models/pending-scroll-action.d.ts +0 -11
- package/chat/common/scroll-anchor.directive.d.ts +0 -72
- package/chat/common/scroll-button.component.d.ts +0 -32
- package/chat/common/scroll.service.d.ts +0 -39
- package/chat/common/utils.d.ts +0 -87
- package/chat/l10n/custom-messages.component.d.ts +0 -28
- package/chat/l10n/localized-messages.directive.d.ts +0 -16
- package/chat/l10n/messages.d.ts +0 -98
- package/chat/message-attachments.component.d.ts +0 -56
- package/chat/message-box.component.d.ts +0 -82
- package/chat/message-list.component.d.ts +0 -85
- package/chat/message-reference-content.component.d.ts +0 -24
- package/chat/message.component.d.ts +0 -106
- package/chat/suggested-actions.component.d.ts +0 -72
- package/chat/templates/attachment-template.directive.d.ts +0 -32
- package/chat/templates/author-message-content-template.directive.d.ts +0 -28
- package/chat/templates/author-message-template.directive.d.ts +0 -28
- package/chat/templates/header-template.directive.d.ts +0 -24
- package/chat/templates/message-box-end-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box-start-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box-top-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box.directive.d.ts +0 -27
- package/chat/templates/message-content-template.directive.d.ts +0 -28
- package/chat/templates/message-template.directive.d.ts +0 -28
- package/chat/templates/no-data-template.directive.d.ts +0 -27
- package/chat/templates/receiver-message-content-template.directive.d.ts +0 -28
- package/chat/templates/receiver-message-template.directive.d.ts +0 -28
- package/chat/templates/status-template.directive.d.ts +0 -24
- package/chat/templates/suggestion-template.directive.d.ts +0 -27
- package/chat/templates/timestamp-template.directive.d.ts +0 -31
- package/chat/templates/user-status-template.directive.d.ts +0 -27
- package/conversational-ui.module.d.ts +0 -70
- package/directives.d.ts +0 -138
- package/inline-ai-prompt/inlineaiprompt-content.component.d.ts +0 -82
- package/inline-ai-prompt/inlineaiprompt.component.d.ts +0 -159
- package/inline-ai-prompt/inlineaiprompt.module.d.ts +0 -31
- package/inline-ai-prompt/inlineaiprompt.service.d.ts +0 -48
- package/inline-ai-prompt/localization/custom-messages.component.d.ts +0 -25
- package/inline-ai-prompt/localization/localized-messages.directive.d.ts +0 -16
- package/inline-ai-prompt/localization/messages.d.ts +0 -25
- package/inline-ai-prompt/models/command.interface.d.ts +0 -38
- package/inline-ai-prompt/models/index.d.ts +0 -12
- package/inline-ai-prompt/models/inlineaiprompt-popupsettings.d.ts +0 -10
- package/inline-ai-prompt/models/inlineaiprompt-settings.d.ts +0 -66
- package/inline-ai-prompt/models/messages.d.ts +0 -21
- package/inline-ai-prompt/models/output-action-click-event.d.ts +0 -19
- package/inline-ai-prompt/models/output-action.interface.d.ts +0 -54
- package/inline-ai-prompt/models/prompt-output.interface.d.ts +0 -25
- package/inline-ai-prompt/models/prompt-request-event.d.ts +0 -17
- package/inline-ai-prompt/output-template.directive.d.ts +0 -27
- package/inline-ai-prompt/utils.d.ts +0 -17
- package/package-metadata.d.ts +0 -9
- package/promptbox/affixes/promptbox-end-affix.component.d.ts +0 -26
- package/promptbox/affixes/promptbox-start-affix.component.d.ts +0 -26
- package/promptbox/affixes/promptbox-top-affix.component.d.ts +0 -26
- package/promptbox/common/header-template.directive.d.ts +0 -17
- package/promptbox/common/models/action-button.d.ts +0 -66
- package/promptbox/common/models/fileselect-button.d.ts +0 -62
- package/promptbox/common/models/index.d.ts +0 -7
- package/promptbox/common/models/promptbox-mode.d.ts +0 -12
- package/promptbox/common/utils.d.ts +0 -18
- package/promptbox/localization/custom-messages.component.d.ts +0 -26
- package/promptbox/localization/localized-messages.directive.d.ts +0 -16
- package/promptbox/localization/messages.d.ts +0 -37
- package/promptbox/promptbox.component.d.ts +0 -385
- package/promptbox/tools/action-button.component.d.ts +0 -63
- package/promptbox/tools/base-tool.d.ts +0 -65
- package/promptbox/tools/fileselect-button.component.d.ts +0 -63
- package/promptbox/tools/promptbox-file.component.d.ts +0 -30
- package/promptbox/tools/speech-to-text-button.component.d.ts +0 -87
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
6
|
-
/**
|
|
7
|
-
* Defines the interface for the AIPrompt commands rendered in the Command view.
|
|
8
|
-
*/
|
|
9
|
-
export interface PromptCommand {
|
|
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
|
-
* Specifies the name of the [font icon](https://www.telerik.com/kendo-angular-ui/components/styling/icons#icons-list) to render for the command.
|
|
20
|
-
*/
|
|
21
|
-
icon?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the name of the [SVG icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list) to render for the command.
|
|
24
|
-
*/
|
|
25
|
-
svgIcon?: SVGIcon;
|
|
26
|
-
/**
|
|
27
|
-
* Defines the child commands as an array.
|
|
28
|
-
*/
|
|
29
|
-
children?: Array<PromptCommand>;
|
|
30
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { CommandExecuteEvent } from './command-execute-event';
|
|
6
|
-
export { PromptCommand } from './command.interface';
|
|
7
|
-
export { PromptOutput } from './prompt-output.interface';
|
|
8
|
-
export { PromptRequestEvent } from './prompt-request-event';
|
|
9
|
-
export { PromptOutputRating } from './prompt-output.interface';
|
|
10
|
-
export { OutputRatingChangeEvent } from './output-rating-change-event';
|
|
11
|
-
export { AIPromptSettings } from './ai-prompt-settings';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PromptOutput, PromptOutputRating } from "./prompt-output.interface";
|
|
6
|
-
/**
|
|
7
|
-
* Represents the arguments for the `outputRatingChange` event of the AIPrompt
|
|
8
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/events)).
|
|
9
|
-
*/
|
|
10
|
-
export interface OutputRatingChangeEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the prompt output for which the rating changes.
|
|
13
|
-
*/
|
|
14
|
-
promptOutput: PromptOutput;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the prompt output rating.
|
|
17
|
-
*/
|
|
18
|
-
rating: PromptOutputRating;
|
|
19
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Defines the interface for the AIPrompt outputs rendered in the **Output** view.
|
|
7
|
-
*/
|
|
8
|
-
export interface PromptOutput {
|
|
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 an optional custom title for the prompt section.
|
|
23
|
-
*/
|
|
24
|
-
title?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies if the prompt generation is initiated with the **Retry** button.
|
|
27
|
-
*/
|
|
28
|
-
isRetry?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* (Optional) Specifies a command id, if the prompt generation is triggered via a command.
|
|
31
|
-
*/
|
|
32
|
-
commandId?: string | number;
|
|
33
|
-
/**
|
|
34
|
-
* (Optional) Specifies the rating for the prompt output.
|
|
35
|
-
*/
|
|
36
|
-
rating?: PromptOutputRating;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Represents the rating of the prompt output.
|
|
40
|
-
*/
|
|
41
|
-
export type PromptOutputRating = "positive" | "negative";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AIPromptComponent } from "../aiprompt.component";
|
|
6
|
-
/**
|
|
7
|
-
* Represents the arguments for the `promptRequest` event of the AIPrompt
|
|
8
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/events)).
|
|
9
|
-
*/
|
|
10
|
-
export interface PromptRequestEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Represents the user prompt input.
|
|
13
|
-
*/
|
|
14
|
-
prompt: string;
|
|
15
|
-
/**
|
|
16
|
-
* Represents the instance of the AIPrompt component.
|
|
17
|
-
*/
|
|
18
|
-
sender: AIPromptComponent;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies if the event is triggered by the **Retry** button.
|
|
21
|
-
*/
|
|
22
|
-
isRetry: boolean;
|
|
23
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export type ViewType = 'prompt' | 'output' | 'command' | 'custom';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the template for the body of the response in the AIPrompt component. The template context is set to the current output object.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```html
|
|
12
|
-
* <kendo-aiprompt>
|
|
13
|
-
* <ng-template kendoAIPromptOutputBodyTemplate let-output>
|
|
14
|
-
* <div>{{output.prompt}}</div>
|
|
15
|
-
* </ng-template>
|
|
16
|
-
* </kendo-aiprompt>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare class AIPromptOutputBodyTemplateDirective {
|
|
20
|
-
templateRef: TemplateRef<any>;
|
|
21
|
-
constructor(templateRef: TemplateRef<any>);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AIPromptOutputBodyTemplateDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AIPromptOutputBodyTemplateDirective, "[kendoAIPromptOutputBodyTemplate]", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the template for the response in the AIPrompt component. The template context is set to the current output object.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```html
|
|
12
|
-
* <kendo-aiprompt>
|
|
13
|
-
* <ng-template kendoAIPromptOutputTemplate let-output>
|
|
14
|
-
* <div>{{output.prompt}}</div>
|
|
15
|
-
* </ng-template>
|
|
16
|
-
* </kendo-aiprompt>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare class AIPromptOutputTemplateDirective {
|
|
20
|
-
templateRef: TemplateRef<any>;
|
|
21
|
-
constructor(templateRef: TemplateRef<any>);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AIPromptOutputTemplateDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AIPromptOutputTemplateDirective, "[kendoAIPromptOutputTemplate]", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template for additional Toolbar actions.
|
|
9
|
-
* The actions appear after the Toolbar buttons for all views.
|
|
10
|
-
*
|
|
11
|
-
* To define the template, nest an `<ng-template>` tag
|
|
12
|
-
* with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <kendo-aiprompt>
|
|
17
|
-
* <ng-template kendoAIPromptToolbarActionsTemplate>
|
|
18
|
-
* <button kendoButton>Custom Action</button>
|
|
19
|
-
* </ng-template>
|
|
20
|
-
* </kendo-aiprompt>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class AIPromptToolbarActionsDirective {
|
|
24
|
-
templateRef: TemplateRef<any>;
|
|
25
|
-
constructor(templateRef: TemplateRef<any>);
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AIPromptToolbarActionsDirective, [{ optional: true; }]>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AIPromptToolbarActionsDirective, "[kendoAIPromptToolbarActionsTemplate]", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
package/ai-prompt/utils.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InjectionToken } from "@angular/core";
|
|
6
|
-
import { ViewType } from "./models/view-type";
|
|
7
|
-
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare const MY_TOKEN: InjectionToken<ViewType>;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare const DEFAULT_SVG_ICONS: Partial<Record<ViewType, SVGIcon>>;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export declare const DEFAULT_ICONS: Partial<Record<ViewType, string>>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { ViewType } from '../models/view-type';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare abstract class BaseView {
|
|
14
|
-
viewType: ViewType;
|
|
15
|
-
private localization;
|
|
16
|
-
hostClasses: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
template: TemplateRef<any>;
|
|
21
|
-
constructor(viewType: ViewType, localization: LocalizationService);
|
|
22
|
-
/**
|
|
23
|
-
* Sets the text for the Toolbar button of the current view.
|
|
24
|
-
*/
|
|
25
|
-
set buttonText(value: string);
|
|
26
|
-
get buttonText(): string;
|
|
27
|
-
/**
|
|
28
|
-
* Sets the font icon for the Toolbar button of the current view.
|
|
29
|
-
*/
|
|
30
|
-
set icon(value: string);
|
|
31
|
-
get icon(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the SVG icon for the Toolbar button of the current view.
|
|
34
|
-
*/
|
|
35
|
-
set svgIcon(value: SVGIcon);
|
|
36
|
-
get svgIcon(): SVGIcon;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
messageFor(text: string): string;
|
|
41
|
-
private _buttonText;
|
|
42
|
-
private _icon;
|
|
43
|
-
private _svgIcon;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseView, never>;
|
|
45
|
-
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>;
|
|
46
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { OnInit } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { PanelBarItemModel, PanelBarItemClickEvent } from '@progress/kendo-angular-layout';
|
|
8
|
-
import { BaseView } from './base-view';
|
|
9
|
-
import { AIPromptService } from '../common/aiprompt.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Represents the component that renders the **Command** view of the AIPrompt.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <kendo-aiprompt-command-view
|
|
17
|
-
* buttonText="My command view">
|
|
18
|
-
* </kendo-aiprompt-command-view>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class CommandViewComponent extends BaseView implements OnInit {
|
|
22
|
-
private service;
|
|
23
|
-
constructor(localization: LocalizationService, service: AIPromptService);
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
panelBarItems: Array<PanelBarItemModel>;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
itemClickHandler(ev: PanelBarItemClickEvent): void;
|
|
33
|
-
private getPanelBarItems;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommandViewComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommandViewComponent, "kendo-aiprompt-command-view", never, {}, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { BaseView } from './base-view';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the component that renders a **Custom** view in the AIPrompt.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <kendo-aiprompt-custom-view [viewTemplate]="customTemplate">
|
|
15
|
-
* </kendo-aiprompt-custom-view>
|
|
16
|
-
*
|
|
17
|
-
* <ng-template #customTemplate>
|
|
18
|
-
* <div>Custom content here</div>
|
|
19
|
-
* </ng-template>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class CustomViewComponent extends BaseView {
|
|
23
|
-
constructor(localization: LocalizationService);
|
|
24
|
-
/**
|
|
25
|
-
* Sets the content of the Custom view as a template reference.
|
|
26
|
-
*/
|
|
27
|
-
viewTemplate: TemplateRef<any>;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomViewComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomViewComponent, "kendo-aiprompt-custom-view", never, { "viewTemplate": { "alias": "viewTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { CommandViewComponent } from './command-view.component';
|
|
6
|
-
export { CustomViewComponent } from './custom-view.component';
|
|
7
|
-
export { OutputViewComponent } from './output-view.component';
|
|
8
|
-
export { PromptViewComponent } from './prompt-view.component';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { BaseView } from './base-view';
|
|
7
|
-
import { PromptOutput } from '../models/prompt-output.interface';
|
|
8
|
-
import { AIPromptService } from '../common/aiprompt.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the component that renders the **Output** view of the AIPrompt.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <kendo-aiprompt-output-view
|
|
16
|
-
* buttonText="My output view">
|
|
17
|
-
* </kendo-aiprompt-output-view>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare class OutputViewComponent extends BaseView {
|
|
21
|
-
private service;
|
|
22
|
-
constructor(localization: LocalizationService, service: AIPromptService);
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
get promptOutputs(): Array<PromptOutput>;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
get customTemplate(): import("@angular/core").TemplateRef<any>;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OutputViewComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OutputViewComponent, "kendo-aiprompt-output-view", never, {}, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { SpeechToTextButtonSettings } from '@progress/kendo-angular-buttons';
|
|
8
|
-
import { TextAreaSettings } from '@progress/kendo-angular-inputs';
|
|
9
|
-
import { BaseView } from './base-view';
|
|
10
|
-
import { AIPromptService } from '../common/aiprompt.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Represents the component that renders the **Prompt** view of the AIPrompt.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-aiprompt-prompt-view
|
|
18
|
-
* buttonText="My prompt view">
|
|
19
|
-
* </kendo-aiprompt-prompt-view>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class PromptViewComponent extends BaseView {
|
|
23
|
-
service: AIPromptService;
|
|
24
|
-
constructor(localization: LocalizationService, service: AIPromptService);
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
get suggestionsIcons(): {
|
|
29
|
-
font: string;
|
|
30
|
-
svg: SVGIcon;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
showSuggestions: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
contentId: string;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
get promptSuggestions(): string[];
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
set textAreaValue(value: string);
|
|
49
|
-
get textAreaValue(): string;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
suggestionClick(suggestion: string): void;
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
suggestionKeydown(event: KeyboardEvent, suggestion: string): void;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
get speechToTextButtonSettings(): SpeechToTextButtonSettings;
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
get textareaSettings(): TextAreaSettings;
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
onSpeechToTextResult(event: any): void;
|
|
70
|
-
/**
|
|
71
|
-
* @hidden
|
|
72
|
-
*/
|
|
73
|
-
onSpeechToTextError(event: any): void;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PromptViewComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PromptViewComponent, "kendo-aiprompt-prompt-view", never, {}, {}, never, never, true, never>;
|
|
76
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the button type of a quick action ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message)).
|
|
7
|
-
* * `openUrl`—Opens a new browser window with the specified URL.
|
|
8
|
-
* * `reply`—Sends the action value as a reply in the Chat.
|
|
9
|
-
* * `call`—Treats the value as a phone number. Similar to clicking a [telephone link](https://css-tricks.com/the-current-state-of-telephone-links/).
|
|
10
|
-
* * other—Handled by user code in the [`executeAction`](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/api/chatcomponent#executeaction) event.
|
|
11
|
-
*/
|
|
12
|
-
export type ActionType = 'openUrl' | 'reply' | 'call' | string;
|
|
13
|
-
/**
|
|
14
|
-
* Defines a quick action for a message.
|
|
15
|
-
* The value is interpreted according to the specified [`ActionType`](slug:api_conversational-ui_actiontype).
|
|
16
|
-
*/
|
|
17
|
-
export interface Action {
|
|
18
|
-
/**
|
|
19
|
-
* Sets a predefined or custom type for the action.
|
|
20
|
-
*/
|
|
21
|
-
type: ActionType;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the value associated with the action.
|
|
24
|
-
*/
|
|
25
|
-
value: any;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the title for the quick action. If not set, the Chat displays the value.
|
|
28
|
-
*/
|
|
29
|
-
title?: string;
|
|
30
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents a message attachment ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/attachments)).
|
|
7
|
-
*/
|
|
8
|
-
export interface Attachment {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the content type identifier for the attachment. Typically a MIME type or any string.
|
|
11
|
-
*/
|
|
12
|
-
contentType: string;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the content of the attachment.
|
|
15
|
-
*/
|
|
16
|
-
content: any;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the title of the attachment.
|
|
19
|
-
*/
|
|
20
|
-
title?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the subtitle of the attachment.
|
|
23
|
-
*/
|
|
24
|
-
subtitle?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the layout for the message attachments.
|
|
28
|
-
*
|
|
29
|
-
* The supported values are:
|
|
30
|
-
* * `list`—A vertical list.
|
|
31
|
-
* * `carousel`—A horizontal, scrollable list. Also called a card deck.
|
|
32
|
-
*/
|
|
33
|
-
export type AttachmentLayout = 'list' | 'carousel';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the files attached to a message.
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatFile {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the unique identifier for the file.
|
|
11
|
-
*/
|
|
12
|
-
id: string | number;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the file name.
|
|
15
|
-
*/
|
|
16
|
-
name: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the file size in bytes.
|
|
19
|
-
*/
|
|
20
|
-
size: number;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the MIME type, for example, `'application/pdf'`.
|
|
23
|
-
*/
|
|
24
|
-
type: string;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the file extension, for example, `'.pdf'` or `'.jpg'`.
|
|
27
|
-
*/
|
|
28
|
-
extension: string;
|
|
29
|
-
/**
|
|
30
|
-
* Provides an in-memory representation of the file.
|
|
31
|
-
*/
|
|
32
|
-
rawFile?: File;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the optional URL to download or view the file.
|
|
35
|
-
*/
|
|
36
|
-
url?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the optional preview image URL.
|
|
39
|
-
*/
|
|
40
|
-
thumbnailUrl?: string;
|
|
41
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Arguments for the `loadMore` event of the Chat.
|
|
7
|
-
* Fires when the user scrolls near the edge of the rendered message window in endless scroll mode.
|
|
8
|
-
*/
|
|
9
|
-
export interface ChatLoadMoreEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The inclusive start index into the full messages array.
|
|
12
|
-
*/
|
|
13
|
-
startIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
* The exclusive end index into the full messages array.
|
|
16
|
-
*/
|
|
17
|
-
endIndex: number;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Arguments for the `referencedMessageClick` event of the Chat.
|
|
7
|
-
* Fires when the user clicks a pinned message indicator or a reply preview.
|
|
8
|
-
*/
|
|
9
|
-
export interface ChatReferencedMessageClickEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The ID of the referenced message that was clicked.
|
|
12
|
-
*/
|
|
13
|
-
id: string | number;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies whether the click originated from a pinned message indicator or a reply preview.
|
|
16
|
-
*/
|
|
17
|
-
type: 'pinned' | 'reply';
|
|
18
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the Chat suggestions displayed above the message box.
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatSuggestion {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the unique identifier for the suggestion.
|
|
11
|
-
*/
|
|
12
|
-
id: string | number;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the display text for the suggestion.
|
|
15
|
-
*/
|
|
16
|
-
text: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the optional description for the suggestion.
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Determines whether the suggestion is disabled.
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
}
|