@progress/kendo-vue-conversational-ui 8.0.3-develop.1 → 8.0.3-develop.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-prompt/AIPrompt.d.ts +178 -0
- package/ai-prompt/AIPromptContent.d.ts +23 -0
- package/ai-prompt/AIPromptExpander.d.ts +24 -0
- package/ai-prompt/AIPromptFooter.d.ts +12 -0
- package/ai-prompt/AIPromptHeader.d.ts +45 -0
- package/ai-prompt/views/AIPromptCommandsView.d.ts +57 -0
- package/ai-prompt/views/AIPromptOutputView.d.ts +105 -0
- package/ai-prompt/views/AIPromptOutputView.js +1 -1
- package/ai-prompt/views/AIPromptOutputView.mjs +2 -2
- package/ai-prompt/views/AIPromptView.d.ts +37 -0
- package/ai-prompt/views/AIPromptViewRender.d.ts +26 -0
- package/ai-prompt/views/constants.d.ts +20 -0
- package/ai-prompt/views/constants.mjs +3 -3
- package/chat/components/SuggestionGroup.d.ts +67 -0
- package/dist/cdn/js/kendo-vue-conversational-ui.js +1 -1
- package/index.d.mts +10 -512
- package/index.d.ts +10 -512
- package/messages/main.d.ts +27 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +15 -9
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AIPromptToolbarItemInterface } from './AIPromptHeader';
|
|
9
|
+
import { AIPromptCommandInterface } from './views/AIPromptCommandsView';
|
|
10
|
+
import { AIPromptOutputRating } from './views/AIPromptOutputView';
|
|
11
|
+
import { PropType } from 'vue';
|
|
12
|
+
import { SuggestionsView } from '../chat/components/SuggestionGroup';
|
|
13
|
+
/**
|
|
14
|
+
* The props of the AIPrompt component.
|
|
15
|
+
*/
|
|
16
|
+
export interface AIPromptProps {
|
|
17
|
+
/**
|
|
18
|
+
* Name of the active view.
|
|
19
|
+
*/
|
|
20
|
+
activeView: string;
|
|
21
|
+
/**
|
|
22
|
+
* Collection with items that will override the default Toolbar items.
|
|
23
|
+
*/
|
|
24
|
+
toolbarItems?: AIPromptToolbarItemInterface[];
|
|
25
|
+
/**
|
|
26
|
+
* The collection of generated prompt outputs that will be rendered in the Output view.
|
|
27
|
+
*/
|
|
28
|
+
outputs?: AIPromptOutputInterface[];
|
|
29
|
+
/**
|
|
30
|
+
* The placeholder text for the Prompt view textarea.
|
|
31
|
+
*/
|
|
32
|
+
promptPlaceholder?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The direction of the Prompt.
|
|
35
|
+
*/
|
|
36
|
+
dir?: string;
|
|
37
|
+
/**
|
|
38
|
+
* If true, the prompt is in a streaming state.
|
|
39
|
+
*/
|
|
40
|
+
streaming?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If true, the prompt is in a loading state.
|
|
43
|
+
*/
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The onActiveViewChange event handler of the Kendo UI for Vue AIPrompt component.
|
|
47
|
+
* Fires when active view is changed. Exposes the name of the new active view as event data.
|
|
48
|
+
*/
|
|
49
|
+
onActiveviewchange?: (name: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The onCommandExecute event handler of the Kendo UI for Vue AIPrompt component.
|
|
52
|
+
* Fires each time the user clicks a command in the Command view. Exposes the selected command as event data.
|
|
53
|
+
*/
|
|
54
|
+
onCommandexecute?: (command: AIPromptCommandInterface) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The onPromptRequest event handler of the Kendo UI for Vue AIPrompt component.
|
|
57
|
+
* Fires when user clicks the `Generate` button in the Prompt view.
|
|
58
|
+
*/
|
|
59
|
+
onPromptrequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Called when the prompt is cancelled.
|
|
62
|
+
*/
|
|
63
|
+
onCancel?: () => void;
|
|
64
|
+
/**
|
|
65
|
+
* Optionally specifies the rendering for the suggestions displayed in the AI Prompt component.
|
|
66
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
67
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
68
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
69
|
+
*/
|
|
70
|
+
suggestionsView?: SuggestionsView;
|
|
71
|
+
}
|
|
72
|
+
export interface AIPromptOutputInterface {
|
|
73
|
+
/**
|
|
74
|
+
* The unique identifier of the command.
|
|
75
|
+
*/
|
|
76
|
+
id: string | number;
|
|
77
|
+
/**
|
|
78
|
+
* An optional custom title for the prompt output.
|
|
79
|
+
*/
|
|
80
|
+
title?: string;
|
|
81
|
+
/**
|
|
82
|
+
* An optional custom sub title for the prompt output.
|
|
83
|
+
*/
|
|
84
|
+
subTitle?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The prompt that initiated the output generation.
|
|
87
|
+
*/
|
|
88
|
+
prompt?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The class of the prompt that is rendered on the output card.
|
|
91
|
+
*/
|
|
92
|
+
class?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The text content of the prompt output.
|
|
95
|
+
*/
|
|
96
|
+
responseContent: string;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies if the prompt generation was initiated via the retry button.
|
|
99
|
+
*/
|
|
100
|
+
isRetry?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* The prompt output rating.
|
|
103
|
+
*/
|
|
104
|
+
ratingType?: AIPromptOutputRating;
|
|
105
|
+
/**
|
|
106
|
+
* Optionally specifies a command, if the prompt generation was triggered via a command.
|
|
107
|
+
*/
|
|
108
|
+
command?: AIPromptCommandInterface;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The AIPrompt context that is passed to the view.
|
|
112
|
+
*/
|
|
113
|
+
interface AIPromptContextInterface {
|
|
114
|
+
activeView?: string;
|
|
115
|
+
streaming?: boolean;
|
|
116
|
+
loading?: boolean;
|
|
117
|
+
suggestionsView?: SuggestionsView;
|
|
118
|
+
onCancel?: () => void;
|
|
119
|
+
onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
|
|
120
|
+
onCommandExecute?: (command: AIPromptCommandInterface) => void;
|
|
121
|
+
onActiveViewChange?: (view: string) => void;
|
|
122
|
+
onStateAction?: (action: StateActionInterface) => void;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @hidden
|
|
126
|
+
*/
|
|
127
|
+
interface StateActionInterface {
|
|
128
|
+
activeView: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @hidden
|
|
132
|
+
*/
|
|
133
|
+
declare const AIPrompt: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
134
|
+
activeView: {
|
|
135
|
+
type: PropType<string>;
|
|
136
|
+
required: true;
|
|
137
|
+
};
|
|
138
|
+
dir: PropType<string>;
|
|
139
|
+
toolbarItems: PropType<AIPromptToolbarItemInterface[]>;
|
|
140
|
+
outputs: PropType<AIPromptOutputInterface[]>;
|
|
141
|
+
promptPlaceholder: PropType<string>;
|
|
142
|
+
streaming: PropType<boolean>;
|
|
143
|
+
loading: PropType<boolean>;
|
|
144
|
+
suggestionsView: {
|
|
145
|
+
type: PropType<SuggestionsView>;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
}>, {}, {
|
|
149
|
+
showLicenseWatermark: boolean;
|
|
150
|
+
licenseMessage: string;
|
|
151
|
+
contextState: AIPromptContextInterface;
|
|
152
|
+
}, {}, {
|
|
153
|
+
onStateAction(action: StateActionInterface): void;
|
|
154
|
+
onActiveViewChange(event: string): void;
|
|
155
|
+
onPromptRequest(prompt?: string, outputItem?: AIPromptOutputInterface): void;
|
|
156
|
+
onCommandExecute(event: AIPromptCommandInterface): void;
|
|
157
|
+
onCancel(): void;
|
|
158
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
159
|
+
activeView: {
|
|
160
|
+
type: PropType<string>;
|
|
161
|
+
required: true;
|
|
162
|
+
};
|
|
163
|
+
dir: PropType<string>;
|
|
164
|
+
toolbarItems: PropType<AIPromptToolbarItemInterface[]>;
|
|
165
|
+
outputs: PropType<AIPromptOutputInterface[]>;
|
|
166
|
+
promptPlaceholder: PropType<string>;
|
|
167
|
+
streaming: PropType<boolean>;
|
|
168
|
+
loading: PropType<boolean>;
|
|
169
|
+
suggestionsView: {
|
|
170
|
+
type: PropType<SuggestionsView>;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
}>> & Readonly<{}>, {
|
|
174
|
+
suggestionsView: SuggestionsView;
|
|
175
|
+
}, {}, {}, {}, string, () => {
|
|
176
|
+
kendoAIPrompt: any;
|
|
177
|
+
}, true, {}, any>;
|
|
178
|
+
export { AIPrompt };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare const AIPromptContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
onCancel: PropType<() => void>;
|
|
14
|
+
streaming: PropType<boolean>;
|
|
15
|
+
}>, {}, {}, {
|
|
16
|
+
showFloatingButton(): boolean;
|
|
17
|
+
}, {
|
|
18
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
19
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
onCancel: PropType<() => void>;
|
|
21
|
+
streaming: PropType<boolean>;
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export { AIPromptContent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
export interface AIPromptExpanderProps {
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
declare const AIPromptExpander: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
title: PropType<string>;
|
|
17
|
+
}>, {}, {
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
}, {}, {
|
|
20
|
+
buttonClick(): void;
|
|
21
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
+
title: PropType<string>;
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export { AIPromptExpander };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
declare const AIPromptFooter: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export { AIPromptFooter };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* An interface for the AIPromptToolbarItem.
|
|
12
|
+
*/
|
|
13
|
+
export interface AIPromptToolbarItemInterface {
|
|
14
|
+
/**
|
|
15
|
+
* Defines the name of the view witch is related to.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the svgIcon used in the Toolbar button.
|
|
20
|
+
*/
|
|
21
|
+
buttonIcon?: SVGIcon;
|
|
22
|
+
/**
|
|
23
|
+
* Defines the text used in the Toolbar button.
|
|
24
|
+
*/
|
|
25
|
+
buttonText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines custom content for the item. It can be either a name of a named slot or a rendered function.
|
|
28
|
+
*/
|
|
29
|
+
content?: string | Function | Object;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
declare const AIPromptHeader: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
35
|
+
activeView: PropType<string>;
|
|
36
|
+
toolbarItems: PropType<AIPromptToolbarItemInterface[]>;
|
|
37
|
+
onActiveviewchange: PropType<(event: any) => void>;
|
|
38
|
+
}>, {}, {}, {}, {
|
|
39
|
+
handleClick(viewName: string): void;
|
|
40
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
+
activeView: PropType<string>;
|
|
42
|
+
toolbarItems: PropType<AIPromptToolbarItemInterface[]>;
|
|
43
|
+
onActiveviewchange: PropType<(event: any) => void>;
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export { AIPromptHeader };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the AIPromptCommandsView component.
|
|
12
|
+
*/
|
|
13
|
+
export interface AIPromptCommandsViewProps {
|
|
14
|
+
/**
|
|
15
|
+
* The collection of commands that will be rendered in the Command view.
|
|
16
|
+
*/
|
|
17
|
+
commands?: AIPromptCommandInterface[];
|
|
18
|
+
/**
|
|
19
|
+
* Fires each time the user clicks over a Command view command. Exposes the selected command as event data.
|
|
20
|
+
*/
|
|
21
|
+
onCommandexecute?: (command: CommandItemInterface) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* An interface for the Command view command.
|
|
25
|
+
*/
|
|
26
|
+
export interface AIPromptCommandInterface extends CommandItemInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Collection with nested commands.
|
|
29
|
+
*/
|
|
30
|
+
children?: CommandItemInterface[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
interface CommandItemInterface {
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of the command.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the command text.
|
|
42
|
+
*/
|
|
43
|
+
text: string;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the name of the SVG icon that will be rendered for the command.
|
|
46
|
+
*/
|
|
47
|
+
svgIcon?: SVGIcon;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
declare const AIPromptCommandsView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
53
|
+
commands: PropType<AIPromptCommandInterface[]>;
|
|
54
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
commands: PropType<AIPromptCommandInterface[]>;
|
|
56
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export { AIPromptCommandsView };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AIPromptOutputInterface } from '../AIPrompt';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* The fields of the AIPromptOutputView card prop.
|
|
12
|
+
*/
|
|
13
|
+
export interface AIPromptCardInterface {
|
|
14
|
+
/**
|
|
15
|
+
* Custom template for AIPromptCard header.
|
|
16
|
+
*/
|
|
17
|
+
header?: (props: AIPromptOutputInterface) => any;
|
|
18
|
+
/**
|
|
19
|
+
* Custom template for AIPromptCard body.
|
|
20
|
+
*/
|
|
21
|
+
body?: (props: AIPromptOutputInterface) => any;
|
|
22
|
+
/**
|
|
23
|
+
* Custom template for AIPromptCard actions.
|
|
24
|
+
*/
|
|
25
|
+
actions?: (props: AIPromptOutputInterface) => any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The props of the AIPromptOutputView component.
|
|
29
|
+
*/
|
|
30
|
+
export interface AIPromptOutputViewProps {
|
|
31
|
+
/**
|
|
32
|
+
* The collection of generated prompt outputs that will be rendered in the Output view.
|
|
33
|
+
*/
|
|
34
|
+
outputs?: AIPromptOutputInterface[];
|
|
35
|
+
/**
|
|
36
|
+
* Represents a template that allows you to define custom Card fields for:
|
|
37
|
+
* header
|
|
38
|
+
* body
|
|
39
|
+
* actions
|
|
40
|
+
* The custom fields will override the default one.
|
|
41
|
+
*/
|
|
42
|
+
outputCard?: AIPromptCardInterface;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies if the rating buttons in each card will be rendered.
|
|
45
|
+
* By default, rating buttons are not rendered.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
showOutputRating?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Fires each time the user clicks Retry button in the card.
|
|
52
|
+
*/
|
|
53
|
+
onRetry?: (output: AIPromptOutputInterface) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Fires each time the user clicks Copy button in the card.
|
|
56
|
+
*/
|
|
57
|
+
onCopy?: (content: string) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Fires each time the user clicks a rating button in the card.
|
|
60
|
+
*/
|
|
61
|
+
onRating?: (output: AIPromptOutputInterface, ratingType: AIPromptOutputRating) => void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Enum option for the output rating
|
|
65
|
+
*/
|
|
66
|
+
export declare enum AIPromptOutputRating {
|
|
67
|
+
/**
|
|
68
|
+
* Positive output rating
|
|
69
|
+
*/
|
|
70
|
+
positive = "positive",
|
|
71
|
+
/**
|
|
72
|
+
* Negative output rating
|
|
73
|
+
*/
|
|
74
|
+
negative = "negative"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
declare const AIPromptOutputView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
80
|
+
outputs: PropType<AIPromptOutputInterface[]>;
|
|
81
|
+
outputCard: PropType<AIPromptCardInterface>;
|
|
82
|
+
showOutputRating: PropType<boolean>;
|
|
83
|
+
}>, {}, {
|
|
84
|
+
copiedIndex: number;
|
|
85
|
+
copyButtonIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
86
|
+
contentRef: any;
|
|
87
|
+
}, {}, {
|
|
88
|
+
retryPrompt(output: AIPromptOutputInterface): void;
|
|
89
|
+
copyToClipboard(output: AIPromptOutputInterface, index: number): void;
|
|
90
|
+
outputRating(output: AIPromptOutputInterface, ratingType: AIPromptOutputRating): void;
|
|
91
|
+
scrollToTopOutput(): void;
|
|
92
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
93
|
+
copy: any;
|
|
94
|
+
retry: any;
|
|
95
|
+
rating: any;
|
|
96
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
97
|
+
outputs: PropType<AIPromptOutputInterface[]>;
|
|
98
|
+
outputCard: PropType<AIPromptCardInterface>;
|
|
99
|
+
showOutputRating: PropType<boolean>;
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onCopy?: (...args: any[] | unknown[]) => any;
|
|
102
|
+
onRetry?: (...args: any[] | unknown[]) => any;
|
|
103
|
+
onRating?: (...args: any[] | unknown[]) => any;
|
|
104
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
export { AIPromptOutputView };
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../AIPromptContent.js"),c=require("../../messages/main.js"),g=require("./AIPromptViewRender.js"),N=require("./constants.js"),n=require("@progress/kendo-vue-layout"),l=require("@progress/kendo-svg-icons"),s=require("@progress/kendo-vue-buttons"),P=require("@progress/kendo-vue-intl");function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}let R=function(t){return t.positive="positive",t.negative="negative",t}({});const v=e.defineComponent({name:"KendoAIPromptOutputView",emits:{copy:null,retry:null,rating:null},props:{outputs:Array,outputCard:Object,showOutputRating:Boolean},inject:{kendoAIPrompt:{default:null},kendoLocalizationService:{default:null}},data(){return{copiedIndex:-1,copyButtonIcon:l.copyIcon,contentRef:null}},methods:{retryPrompt(t){this.$emit("retry",t),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,t.prompt,{...t,isRetry:!0}),this.scrollToTopOutput()},copyToClipboard(t,r){t!=null&&t.responseContent&&navigator.clipboard.writeText(t.responseContent),this.copiedIndex=r,this.copyButtonIcon=l.checkIcon,this.$emit("copy",t==null?void 0:t.responseContent),setTimeout(()=>{this.copyButtonIcon=l.copyIcon,this.copiedIndex=-1},1e3)},outputRating(t,r){this.$emit("rating",t,r),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,t.prompt,{...t,ratingType:r,isRetry:!1}),this.scrollToTopOutput()},scrollToTopOutput(){var t,r;(r=(t=this.contentRef)==null?void 0:t.scrollTo)==null||r.call(t,{top:0,behavior:"smooth"})}},render(){let t;const{outputs:r,showOutputRating:k,outputCard:y}=this.$props,f=P.provideLocalizationService(this),{header:u,body:p,actions:m}=y||{},I=e.createVNode(n.Card,null,{default:()=>[e.createVNode(n.CardHeader,null,{default:()=>[e.createVNode(n.CardTitle,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"200px"}},null)]}),e.createVNode(n.CardSubtitle,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),e.createVNode(n.CardBody,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-rect k-skeleton-pulse",style:{height:"80px"}},null)]}),e.createVNode(n.CardActions,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),d=r==null?void 0:r.map((o,a)=>e.createVNode(n.Card,{key:`${o.id}_${a}`,class:o.class},{default:()=>[e.createVNode(n.CardHeader,null,{default:()=>[u?u(o):e.createVNode(e.Fragment,null,[o.title&&e.createVNode(n.CardTitle,null,{default:()=>[o.title]}),o.subTitle&&e.createVNode(n.CardSubtitle,null,{default:()=>[o.subTitle]})])]}),e.createVNode(n.CardBody,null,{default:()=>[p?p(o):o.responseContent]}),e.createVNode(n.CardActions,null,{default:()=>[m?m(o):e.createVNode(e.Fragment,null,[e.createVNode(s.Button,{type:"button",size:"medium",themeColor:"primary",fillMode:"flat",rounded:"medium",title:"Copy",svgIcon:this.copiedIndex===a?this.copyButtonIcon:l.copyIcon,"aria-hidden":"true",onClick:()=>this.copyToClipboard(o,a)},{default:()=>["Copy"]}),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:"base",fillMode:"flat",rounded:"medium",title:"Retry",svgIcon:l.arrowRotateCwIcon,"aria-hidden":"true",onClick:()=>this.retryPrompt(o)},{default:()=>["Retry"]}),k&&e.createVNode(e.Fragment,null,[e.createVNode("span",{class:"k-spacer"},null),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:o.ratingType==="positive"?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate up",svgIcon:l.thumbUpOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(o,"positive")},null),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:o.ratingType==="negative"?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate down",svgIcon:l.thumbDownOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(o,"negative")},null)])])]})]})),V=e.createVNode(n.Card,null,{default:()=>[e.createVNode(n.CardBody,null,b(t=f.toLanguageString(c.aIPromptNoOutputs,c.messages[c.aIPromptNoOutputs]))?t:{default:()=>[t]})]});return e.createVNode(g.AIPromptViewRender,{name:N.outputViewDefaults.name},{default:()=>{var o,a;return[e.createVNode(C.AIPromptContent,{ref:i=>this.contentRef=i,streaming:(o=this.kendoAIPrompt)==null?void 0:o.streaming,onCancel:(a=this.kendoAIPrompt)==null?void 0:a.onCancel},{default:()=>{var i,h;return[e.createVNode("div",{class:"k-card-list"},[((i=this.kendoAIPrompt)==null?void 0:i.loading)&&I,d,(!d||d.length===0)&&!((h=this.kendoAIPrompt)!=null&&h.loading)&&V])]}})]}})}});exports.AIPromptOutputRating=R;exports.AIPromptOutputView=v;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../AIPromptContent.js"),c=require("../../messages/main.js"),g=require("./AIPromptViewRender.js"),N=require("./constants.js"),n=require("@progress/kendo-vue-layout"),l=require("@progress/kendo-svg-icons"),s=require("@progress/kendo-vue-buttons"),P=require("@progress/kendo-vue-intl");function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}let R=(function(t){return t.positive="positive",t.negative="negative",t})({});const v=e.defineComponent({name:"KendoAIPromptOutputView",emits:{copy:null,retry:null,rating:null},props:{outputs:Array,outputCard:Object,showOutputRating:Boolean},inject:{kendoAIPrompt:{default:null},kendoLocalizationService:{default:null}},data(){return{copiedIndex:-1,copyButtonIcon:l.copyIcon,contentRef:null}},methods:{retryPrompt(t){this.$emit("retry",t),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,t.prompt,{...t,isRetry:!0}),this.scrollToTopOutput()},copyToClipboard(t,r){t!=null&&t.responseContent&&navigator.clipboard.writeText(t.responseContent),this.copiedIndex=r,this.copyButtonIcon=l.checkIcon,this.$emit("copy",t==null?void 0:t.responseContent),setTimeout(()=>{this.copyButtonIcon=l.copyIcon,this.copiedIndex=-1},1e3)},outputRating(t,r){this.$emit("rating",t,r),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,t.prompt,{...t,ratingType:r,isRetry:!1}),this.scrollToTopOutput()},scrollToTopOutput(){var t,r;(r=(t=this.contentRef)==null?void 0:t.scrollTo)==null||r.call(t,{top:0,behavior:"smooth"})}},render(){let t;const{outputs:r,showOutputRating:k,outputCard:y}=this.$props,f=P.provideLocalizationService(this),{header:u,body:p,actions:m}=y||{},I=e.createVNode(n.Card,null,{default:()=>[e.createVNode(n.CardHeader,null,{default:()=>[e.createVNode(n.CardTitle,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"200px"}},null)]}),e.createVNode(n.CardSubtitle,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),e.createVNode(n.CardBody,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-rect k-skeleton-pulse",style:{height:"80px"}},null)]}),e.createVNode(n.CardActions,null,{default:()=>[e.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),d=r==null?void 0:r.map((o,a)=>e.createVNode(n.Card,{key:`${o.id}_${a}`,class:o.class},{default:()=>[e.createVNode(n.CardHeader,null,{default:()=>[u?u(o):e.createVNode(e.Fragment,null,[o.title&&e.createVNode(n.CardTitle,null,{default:()=>[o.title]}),o.subTitle&&e.createVNode(n.CardSubtitle,null,{default:()=>[o.subTitle]})])]}),e.createVNode(n.CardBody,null,{default:()=>[p?p(o):o.responseContent]}),e.createVNode(n.CardActions,null,{default:()=>[m?m(o):e.createVNode(e.Fragment,null,[e.createVNode(s.Button,{type:"button",size:"medium",themeColor:"primary",fillMode:"flat",rounded:"medium",title:"Copy",svgIcon:this.copiedIndex===a?this.copyButtonIcon:l.copyIcon,"aria-hidden":"true",onClick:()=>this.copyToClipboard(o,a)},{default:()=>["Copy"]}),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:"base",fillMode:"flat",rounded:"medium",title:"Retry",svgIcon:l.arrowRotateCwIcon,"aria-hidden":"true",onClick:()=>this.retryPrompt(o)},{default:()=>["Retry"]}),k&&e.createVNode(e.Fragment,null,[e.createVNode("span",{class:"k-spacer"},null),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:o.ratingType==="positive"?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate up",svgIcon:l.thumbUpOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(o,"positive")},null),e.createVNode(s.Button,{type:"button",size:"medium",themeColor:o.ratingType==="negative"?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate down",svgIcon:l.thumbDownOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(o,"negative")},null)])])]})]})),V=e.createVNode(n.Card,null,{default:()=>[e.createVNode(n.CardBody,null,b(t=f.toLanguageString(c.aIPromptNoOutputs,c.messages[c.aIPromptNoOutputs]))?t:{default:()=>[t]})]});return e.createVNode(g.AIPromptViewRender,{name:N.outputViewDefaults.name},{default:()=>{var o,a;return[e.createVNode(C.AIPromptContent,{ref:i=>this.contentRef=i,streaming:(o=this.kendoAIPrompt)==null?void 0:o.streaming,onCancel:(a=this.kendoAIPrompt)==null?void 0:a.onCancel},{default:()=>{var i,h;return[e.createVNode("div",{class:"k-card-list"},[((i=this.kendoAIPrompt)==null?void 0:i.loading)&&I,d,(!d||d.length===0)&&!((h=this.kendoAIPrompt)!=null&&h.loading)&&V])]}})]}})}});exports.AIPromptOutputRating=R;exports.AIPromptOutputView=v;
|
|
@@ -17,9 +17,9 @@ import { provideLocalizationService as q } from "@progress/kendo-vue-intl";
|
|
|
17
17
|
function M(e) {
|
|
18
18
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !A(e);
|
|
19
19
|
}
|
|
20
|
-
let G = /* @__PURE__ */ function(e) {
|
|
20
|
+
let G = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.positive = "positive", e.negative = "negative", e;
|
|
22
|
-
}({});
|
|
22
|
+
})({});
|
|
23
23
|
const J = /* @__PURE__ */ w({
|
|
24
24
|
name: "KendoAIPromptOutputView",
|
|
25
25
|
emits: {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare const AIPromptView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
promptInput: PropType<any>;
|
|
14
|
+
generateButton: PropType<any>;
|
|
15
|
+
promptValue: PropType<string>;
|
|
16
|
+
promptSuggestions: PropType<string[]>;
|
|
17
|
+
enableSpeechToText: PropType<boolean | object>;
|
|
18
|
+
}>, {}, {
|
|
19
|
+
value: string;
|
|
20
|
+
}, {
|
|
21
|
+
computedValue(): any;
|
|
22
|
+
}, {
|
|
23
|
+
handleOnRequest(): void;
|
|
24
|
+
handleSuggestionSelect(suggestion: string): void;
|
|
25
|
+
onTextChange(event: any): void;
|
|
26
|
+
onSpeechResult(event: any): void;
|
|
27
|
+
onSpeechStart(): void;
|
|
28
|
+
onSpeechEnd(): void;
|
|
29
|
+
getButtonDisabledState(): boolean;
|
|
30
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
+
promptInput: PropType<any>;
|
|
32
|
+
generateButton: PropType<any>;
|
|
33
|
+
promptValue: PropType<string>;
|
|
34
|
+
promptSuggestions: PropType<string[]>;
|
|
35
|
+
enableSpeechToText: PropType<boolean | object>;
|
|
36
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export { AIPromptView };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* The props of the AIPromptViewRender component.
|
|
11
|
+
*/
|
|
12
|
+
export interface AIPromptViewRenderProps {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the name of the view.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
declare const AIPromptViewRender: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
22
|
+
name: PropType<string>;
|
|
23
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
name: PropType<string>;
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export { AIPromptViewRender };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the default values for Output view Toolbar.
|
|
11
|
+
*/
|
|
12
|
+
export declare const outputViewDefaults: AIPromptToolbarItemInterface;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the default values for Commands view Toolbar.
|
|
15
|
+
*/
|
|
16
|
+
export declare const commandsViewDefaults: AIPromptToolbarItemInterface;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the default values for Prompt view Toolbar.
|
|
19
|
+
*/
|
|
20
|
+
export declare const promptViewDefaults: AIPromptToolbarItemInterface;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { moreHorizontalIcon as t, commentIcon as o, sparklesIcon as n } from "@progress/kendo-svg-icons";
|
|
9
9
|
const m = {
|
|
10
10
|
name: "Output view",
|
|
11
11
|
buttonText: "Output",
|
|
12
|
-
buttonIcon:
|
|
12
|
+
buttonIcon: o
|
|
13
13
|
}, u = {
|
|
14
14
|
name: "Commands view",
|
|
15
|
-
buttonIcon:
|
|
15
|
+
buttonIcon: t
|
|
16
16
|
}, c = {
|
|
17
17
|
name: "Prompt view",
|
|
18
18
|
buttonText: "Ask AI",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the rendering options for suggestions in the AI Prompt component.
|
|
11
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
12
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
13
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
14
|
+
*/
|
|
15
|
+
export type SuggestionsView = 'classic' | 'modern';
|
|
16
|
+
/**
|
|
17
|
+
* Represents the structure of a chat suggestion item that can be displayed above the message input.
|
|
18
|
+
* @hidden
|
|
19
|
+
* @interface ChatSuggestion
|
|
20
|
+
*/
|
|
21
|
+
export interface ChatSuggestion {
|
|
22
|
+
id: string | number;
|
|
23
|
+
text: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
suggestionsView?: SuggestionsView;
|
|
27
|
+
}
|
|
28
|
+
interface SuggestionGroupProps {
|
|
29
|
+
suggestions: ChatSuggestion[];
|
|
30
|
+
onSuggestionClick: (event: MouseEvent, suggestion: ChatSuggestion) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
declare const SuggestionGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
36
|
+
suggestions: {
|
|
37
|
+
type: PropType<ChatSuggestion[]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
onSuggestionClick: {
|
|
41
|
+
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
suggestionsView: {
|
|
45
|
+
type: PropType<SuggestionsView>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, {}, {}, {}, {
|
|
49
|
+
handleSuggestionClick(event: MouseEvent, suggestion: ChatSuggestion): void;
|
|
50
|
+
handleKeyDown(event: KeyboardEvent, suggestion: ChatSuggestion): void;
|
|
51
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
+
suggestions: {
|
|
53
|
+
type: PropType<ChatSuggestion[]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
onSuggestionClick: {
|
|
57
|
+
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
suggestionsView: {
|
|
61
|
+
type: PropType<SuggestionsView>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
suggestionsView: SuggestionsView;
|
|
66
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
export { SuggestionGroup, type SuggestionGroupProps };
|