@progress/kendo-vue-conversational-ui 4.3.0-dev.202401291303
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/LICENSE.md +11 -0
- package/NOTICE.txt +86 -0
- package/README.md +53 -0
- package/dist/cdn/js/kendo-vue-conversational-ui.js +1 -0
- package/dist/es/additionalTypes.ts +21 -0
- package/dist/es/ai-prompt/AIPrompt.d.ts +117 -0
- package/dist/es/ai-prompt/AIPrompt.js +117 -0
- package/dist/es/ai-prompt/AIPromptContent.d.ts +47 -0
- package/dist/es/ai-prompt/AIPromptContent.js +33 -0
- package/dist/es/ai-prompt/AIPromptExpander.d.ts +45 -0
- package/dist/es/ai-prompt/AIPromptExpander.js +66 -0
- package/dist/es/ai-prompt/AIPromptFooter.d.ts +44 -0
- package/dist/es/ai-prompt/AIPromptFooter.js +33 -0
- package/dist/es/ai-prompt/AIPromptHeader.d.ts +71 -0
- package/dist/es/ai-prompt/AIPromptHeader.js +141 -0
- package/dist/es/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
- package/dist/es/ai-prompt/views/AIPromptCommandsView.js +116 -0
- package/dist/es/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
- package/dist/es/ai-prompt/views/AIPromptOutputView.js +2048 -0
- package/dist/es/ai-prompt/views/AIPromptView.d.ts +56 -0
- package/dist/es/ai-prompt/views/AIPromptView.js +297 -0
- package/dist/es/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
- package/dist/es/ai-prompt/views/AIPromptViewRender.js +39 -0
- package/dist/es/main.d.ts +8 -0
- package/dist/es/main.js +8 -0
- package/dist/es/messages/main.d.ts +20 -0
- package/dist/es/messages/main.js +21 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/ai-prompt/AIPrompt.d.ts +117 -0
- package/dist/esm/ai-prompt/AIPrompt.js +117 -0
- package/dist/esm/ai-prompt/AIPromptContent.d.ts +47 -0
- package/dist/esm/ai-prompt/AIPromptContent.js +33 -0
- package/dist/esm/ai-prompt/AIPromptExpander.d.ts +45 -0
- package/dist/esm/ai-prompt/AIPromptExpander.js +66 -0
- package/dist/esm/ai-prompt/AIPromptFooter.d.ts +44 -0
- package/dist/esm/ai-prompt/AIPromptFooter.js +33 -0
- package/dist/esm/ai-prompt/AIPromptHeader.d.ts +71 -0
- package/dist/esm/ai-prompt/AIPromptHeader.js +141 -0
- package/dist/esm/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
- package/dist/esm/ai-prompt/views/AIPromptCommandsView.js +116 -0
- package/dist/esm/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
- package/dist/esm/ai-prompt/views/AIPromptOutputView.js +2048 -0
- package/dist/esm/ai-prompt/views/AIPromptView.d.ts +56 -0
- package/dist/esm/ai-prompt/views/AIPromptView.js +297 -0
- package/dist/esm/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
- package/dist/esm/ai-prompt/views/AIPromptViewRender.js +39 -0
- package/dist/esm/main.d.ts +8 -0
- package/dist/esm/main.js +8 -0
- package/dist/esm/messages/main.d.ts +20 -0
- package/dist/esm/messages/main.js +21 -0
- package/dist/esm/package.json +3 -0
- package/dist/npm/additionalTypes.ts +21 -0
- package/dist/npm/ai-prompt/AIPrompt.d.ts +117 -0
- package/dist/npm/ai-prompt/AIPrompt.js +124 -0
- package/dist/npm/ai-prompt/AIPromptContent.d.ts +47 -0
- package/dist/npm/ai-prompt/AIPromptContent.js +40 -0
- package/dist/npm/ai-prompt/AIPromptExpander.d.ts +45 -0
- package/dist/npm/ai-prompt/AIPromptExpander.js +73 -0
- package/dist/npm/ai-prompt/AIPromptFooter.d.ts +44 -0
- package/dist/npm/ai-prompt/AIPromptFooter.js +40 -0
- package/dist/npm/ai-prompt/AIPromptHeader.d.ts +71 -0
- package/dist/npm/ai-prompt/AIPromptHeader.js +148 -0
- package/dist/npm/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
- package/dist/npm/ai-prompt/views/AIPromptCommandsView.js +123 -0
- package/dist/npm/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
- package/dist/npm/ai-prompt/views/AIPromptOutputView.js +2055 -0
- package/dist/npm/ai-prompt/views/AIPromptView.d.ts +56 -0
- package/dist/npm/ai-prompt/views/AIPromptView.js +304 -0
- package/dist/npm/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
- package/dist/npm/ai-prompt/views/AIPromptViewRender.js +46 -0
- package/dist/npm/main.d.ts +8 -0
- package/dist/npm/main.js +24 -0
- package/dist/npm/messages/main.d.ts +20 -0
- package/dist/npm/messages/main.js +24 -0
- package/package.json +70 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { classNames, getTemplate } from '@progress/kendo-vue-common';
|
|
7
|
+
import { Button, Toolbar } from '@progress/kendo-vue-buttons';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
var AIPromptHeaderVue2 = {
|
|
12
|
+
name: 'KendoAIPromptHeader',
|
|
13
|
+
props: {
|
|
14
|
+
activeView: String,
|
|
15
|
+
toolbarItems: Array
|
|
16
|
+
},
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
setup: !isV3 ? undefined : function () {
|
|
19
|
+
var v3 = !!isV3;
|
|
20
|
+
return {
|
|
21
|
+
v3: v3
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
handleClick: function handleClick(viewName) {
|
|
26
|
+
this.$emit('activeviewchange', viewName);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
render: function render(createElement) {
|
|
30
|
+
var _this2 = this;
|
|
31
|
+
var h = gh || createElement;
|
|
32
|
+
var _a = this.$props,
|
|
33
|
+
activeView = _a.activeView,
|
|
34
|
+
toolbarItems = _a.toolbarItems;
|
|
35
|
+
return h("div", {
|
|
36
|
+
"class": "k-prompt-header"
|
|
37
|
+
}, [
|
|
38
|
+
// @ts-ignore function children
|
|
39
|
+
h(Toolbar, {
|
|
40
|
+
keyboardNavigation: false,
|
|
41
|
+
attrs: this.v3 ? undefined : {
|
|
42
|
+
keyboardNavigation: false,
|
|
43
|
+
role: "toolbar"
|
|
44
|
+
},
|
|
45
|
+
role: "toolbar"
|
|
46
|
+
}, this.v3 ? function () {
|
|
47
|
+
return [toolbarItems.map(function (item) {
|
|
48
|
+
var _this = this;
|
|
49
|
+
var itemContent = getTemplate.call(this, {
|
|
50
|
+
h: h,
|
|
51
|
+
template: item.content,
|
|
52
|
+
defaultRendering: null,
|
|
53
|
+
additionalProps: {
|
|
54
|
+
item: item
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return item.content ? itemContent :
|
|
58
|
+
// @ts-ignore function children
|
|
59
|
+
h(Button, {
|
|
60
|
+
key: item.name,
|
|
61
|
+
"class": classNames('k-toolbar-item', {
|
|
62
|
+
'k-selected': activeView === item.name
|
|
63
|
+
}),
|
|
64
|
+
size: 'medium',
|
|
65
|
+
attrs: this.v3 ? undefined : {
|
|
66
|
+
size: 'medium',
|
|
67
|
+
themeColor: 'primary',
|
|
68
|
+
fillMode: 'flat',
|
|
69
|
+
rounded: 'full',
|
|
70
|
+
title: item.buttonText,
|
|
71
|
+
svgIcon: item.buttonIcon,
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
},
|
|
74
|
+
themeColor: 'primary',
|
|
75
|
+
fillMode: 'flat',
|
|
76
|
+
rounded: 'full',
|
|
77
|
+
title: item.buttonText,
|
|
78
|
+
svgIcon: item.buttonIcon,
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
onClick: function onClick() {
|
|
81
|
+
return _this.handleClick(item.name);
|
|
82
|
+
},
|
|
83
|
+
on: this.v3 ? undefined : {
|
|
84
|
+
"click": function onClick() {
|
|
85
|
+
return _this.handleClick(item.name);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, this.v3 ? function () {
|
|
89
|
+
return [item.buttonText];
|
|
90
|
+
} : [item.buttonText]);
|
|
91
|
+
}, _this2)];
|
|
92
|
+
} : [toolbarItems.map(function (item) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
var itemContent = getTemplate.call(this, {
|
|
95
|
+
h: h,
|
|
96
|
+
template: item.content,
|
|
97
|
+
defaultRendering: null,
|
|
98
|
+
additionalProps: {
|
|
99
|
+
item: item
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return item.content ? itemContent : h(Button, {
|
|
103
|
+
key: item.name,
|
|
104
|
+
"class": classNames('k-toolbar-item', {
|
|
105
|
+
'k-selected': activeView === item.name
|
|
106
|
+
}),
|
|
107
|
+
size: 'medium',
|
|
108
|
+
attrs: this.v3 ? undefined : {
|
|
109
|
+
size: 'medium',
|
|
110
|
+
themeColor: 'primary',
|
|
111
|
+
fillMode: 'flat',
|
|
112
|
+
rounded: 'full',
|
|
113
|
+
title: item.buttonText,
|
|
114
|
+
svgIcon: item.buttonIcon,
|
|
115
|
+
"aria-hidden": "true"
|
|
116
|
+
},
|
|
117
|
+
themeColor: 'primary',
|
|
118
|
+
fillMode: 'flat',
|
|
119
|
+
rounded: 'full',
|
|
120
|
+
title: item.buttonText,
|
|
121
|
+
svgIcon: item.buttonIcon,
|
|
122
|
+
"aria-hidden": "true",
|
|
123
|
+
onClick: function onClick() {
|
|
124
|
+
return _this.handleClick(item.name);
|
|
125
|
+
},
|
|
126
|
+
on: this.v3 ? undefined : {
|
|
127
|
+
"click": function onClick() {
|
|
128
|
+
return _this.handleClick(item.name);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, this.v3 ? function () {
|
|
132
|
+
return [item.buttonText];
|
|
133
|
+
} : [item.buttonText]);
|
|
134
|
+
}, _this2)])]);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @hidden
|
|
139
|
+
*/
|
|
140
|
+
var AIPromptHeader = AIPromptHeaderVue2;
|
|
141
|
+
export { AIPromptHeader, AIPromptHeaderVue2 };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
8
|
+
/**
|
|
9
|
+
* The props of the AIPromptCommandsView component.
|
|
10
|
+
*/
|
|
11
|
+
interface AIPromptCommandsViewProps {
|
|
12
|
+
/**
|
|
13
|
+
* The collection of commands that will be rendered in the Command view.
|
|
14
|
+
*/
|
|
15
|
+
commands?: CommandInterface[];
|
|
16
|
+
/**
|
|
17
|
+
* Fires each time the user clicks over a Command view command. Exposes the selected command as event data.
|
|
18
|
+
*/
|
|
19
|
+
onCommandExecute?: (command: CommandItemInterface) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* An interface for the Command view command.
|
|
23
|
+
*/
|
|
24
|
+
export interface CommandInterface extends CommandItemInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Collection with nested commands.
|
|
27
|
+
*/
|
|
28
|
+
children?: CommandItemInterface[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
interface CommandItemInterface {
|
|
34
|
+
/**
|
|
35
|
+
* The unique identifier of the command.
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the command text.
|
|
40
|
+
*/
|
|
41
|
+
text: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the name of the SVG icon that will be rendered for the command.
|
|
44
|
+
*/
|
|
45
|
+
svgIcon?: SVGIcon;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the default values for Commands view Toolbar.
|
|
49
|
+
*/
|
|
50
|
+
export declare const commandsViewDefaults: AIPromptToolbarItemInterface;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
interface AIPromptCommandsViewState {
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
interface AIPromptCommandsViewData {
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
export interface AIPromptCommandsViewMethods {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
export interface AIPromptCommandsViewComputed {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
wrapperClass: object;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
*/
|
|
77
|
+
export interface AIPromptCommandsViewAll extends AIPromptCommandsViewMethods, AIPromptCommandsViewState, AIPromptCommandsViewData, AIPromptCommandsViewComputed, Vue2type {
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @hidden
|
|
81
|
+
*/
|
|
82
|
+
declare const AIPromptCommandsViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptCommandsViewData>, DefaultMethods<AIPromptCommandsViewAll>, AIPromptCommandsViewComputed, RecordPropsDefinition<AIPromptCommandsViewProps>>;
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
declare const AIPromptCommandsView: DefineComponent<AIPromptCommandsViewProps, any, AIPromptCommandsViewData, AIPromptCommandsViewComputed, AIPromptCommandsViewMethods, {}, {}, {}, string, AIPromptCommandsViewProps, AIPromptCommandsViewProps, {}>;
|
|
87
|
+
export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { AIPromptContent } from '../AIPromptContent';
|
|
7
|
+
import { AIPromptViewRender } from './AIPromptViewRender';
|
|
8
|
+
import { moreHorizontalIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { PanelBar } from '@progress/kendo-vue-layout';
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the default values for Commands view Toolbar.
|
|
12
|
+
*/
|
|
13
|
+
export var commandsViewDefaults = {
|
|
14
|
+
name: 'Commands view',
|
|
15
|
+
buttonIcon: moreHorizontalIcon
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
var AIPromptCommandsViewVue2 = {
|
|
21
|
+
name: 'KendoAIPromptCommandsView',
|
|
22
|
+
props: {
|
|
23
|
+
commands: Array
|
|
24
|
+
},
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
setup: !isV3 ? undefined : function () {
|
|
27
|
+
var v3 = !!isV3;
|
|
28
|
+
return {
|
|
29
|
+
v3: v3
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
inject: {
|
|
33
|
+
kendoAIPrompt: {
|
|
34
|
+
default: null
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
render: function render(createElement) {
|
|
38
|
+
var _this2 = this;
|
|
39
|
+
var _this = this;
|
|
40
|
+
var h = gh || createElement;
|
|
41
|
+
var commands = this.$props.commands;
|
|
42
|
+
var onCommandClick = function onCommandClick(event) {
|
|
43
|
+
var _a;
|
|
44
|
+
var command = event.target;
|
|
45
|
+
if (!((_a = command.items) === null || _a === void 0 ? void 0 : _a.length) && _this.kendoAIPrompt.onCommandExecute) {
|
|
46
|
+
_this.kendoAIPrompt.onCommandExecute.call(null, command);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return (
|
|
50
|
+
// @ts-ignore function children
|
|
51
|
+
h(AIPromptViewRender, {
|
|
52
|
+
name: commandsViewDefaults.name,
|
|
53
|
+
attrs: this.v3 ? undefined : {
|
|
54
|
+
name: commandsViewDefaults.name
|
|
55
|
+
}
|
|
56
|
+
}, this.v3 ? function () {
|
|
57
|
+
return [
|
|
58
|
+
// @ts-ignore function children
|
|
59
|
+
h(AIPromptContent, _this2.v3 ? function () {
|
|
60
|
+
return [h("div", {
|
|
61
|
+
"class": "k-prompt-view"
|
|
62
|
+
}, [h(PanelBar, {
|
|
63
|
+
onSelect: onCommandClick,
|
|
64
|
+
on: _this2.v3 ? undefined : {
|
|
65
|
+
"select": onCommandClick
|
|
66
|
+
},
|
|
67
|
+
items: commands,
|
|
68
|
+
attrs: _this2.v3 ? undefined : {
|
|
69
|
+
items: commands
|
|
70
|
+
}
|
|
71
|
+
})])];
|
|
72
|
+
} : [h("div", {
|
|
73
|
+
"class": "k-prompt-view"
|
|
74
|
+
}, [h(PanelBar, {
|
|
75
|
+
onSelect: onCommandClick,
|
|
76
|
+
on: _this2.v3 ? undefined : {
|
|
77
|
+
"select": onCommandClick
|
|
78
|
+
},
|
|
79
|
+
items: commands,
|
|
80
|
+
attrs: _this2.v3 ? undefined : {
|
|
81
|
+
items: commands
|
|
82
|
+
}
|
|
83
|
+
})])])];
|
|
84
|
+
} : [h(AIPromptContent, _this2.v3 ? function () {
|
|
85
|
+
return [h("div", {
|
|
86
|
+
"class": "k-prompt-view"
|
|
87
|
+
}, [h(PanelBar, {
|
|
88
|
+
onSelect: onCommandClick,
|
|
89
|
+
on: _this2.v3 ? undefined : {
|
|
90
|
+
"select": onCommandClick
|
|
91
|
+
},
|
|
92
|
+
items: commands,
|
|
93
|
+
attrs: _this2.v3 ? undefined : {
|
|
94
|
+
items: commands
|
|
95
|
+
}
|
|
96
|
+
})])];
|
|
97
|
+
} : [h("div", {
|
|
98
|
+
"class": "k-prompt-view"
|
|
99
|
+
}, [h(PanelBar, {
|
|
100
|
+
onSelect: onCommandClick,
|
|
101
|
+
on: _this2.v3 ? undefined : {
|
|
102
|
+
"select": onCommandClick
|
|
103
|
+
},
|
|
104
|
+
items: commands,
|
|
105
|
+
attrs: _this2.v3 ? undefined : {
|
|
106
|
+
items: commands
|
|
107
|
+
}
|
|
108
|
+
})])])])
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
var AIPromptCommandsView = AIPromptCommandsViewVue2;
|
|
116
|
+
export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AIPromptOutputInterface } from '../AIPrompt';
|
|
7
|
+
import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
|
|
8
|
+
/**
|
|
9
|
+
* The props of the AIPromptOutputView component.
|
|
10
|
+
*/
|
|
11
|
+
interface AIPromptOutputViewProps {
|
|
12
|
+
/**
|
|
13
|
+
* The collection of generated prompt outputs that will be rendered in the Output view.
|
|
14
|
+
*/
|
|
15
|
+
outputs?: AIPromptOutputInterface[];
|
|
16
|
+
/**
|
|
17
|
+
* Represents a template that allows you to define custom Card .It accepts string of a named slot or a render function.
|
|
18
|
+
* The custom fields will override the default one.
|
|
19
|
+
*/
|
|
20
|
+
outputCard?: String | Function;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies if the rating buttons in each card will be rendered.
|
|
23
|
+
* By default, rating buttons are not rendered.
|
|
24
|
+
*
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
showOutputRating?: boolean;
|
|
28
|
+
onRetry?: (value: any) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Fires each time the user clicks Copy button in the card.
|
|
31
|
+
*/
|
|
32
|
+
onCopy?: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Fires each time the user clicks a rating button in the card.
|
|
35
|
+
*/
|
|
36
|
+
onOutputRating?: () => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the default values for Output view Toolbar.
|
|
40
|
+
*/
|
|
41
|
+
export declare const outputViewDefaults: AIPromptToolbarItemInterface;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
interface AIPromptOutputViewState {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
interface AIPromptOutputViewData {
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export interface AIPromptOutputViewMethods {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
export interface AIPromptOutputViewComputed {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export interface AIPromptOutputViewAll extends AIPromptOutputViewMethods, AIPromptOutputViewState, AIPromptOutputViewData, AIPromptOutputViewComputed, Vue2type {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
declare const AIPromptOutputViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptOutputViewData>, DefaultMethods<AIPromptOutputViewAll>, AIPromptOutputViewComputed, RecordPropsDefinition<AIPromptOutputViewProps>>;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
declare const AIPromptOutputView: DefineComponent<AIPromptOutputViewProps, any, AIPromptOutputViewData, AIPromptOutputViewComputed, AIPromptOutputViewMethods, {}, {}, {}, string, AIPromptOutputViewProps, AIPromptOutputViewProps, {}>;
|
|
77
|
+
export { AIPromptOutputView, AIPromptOutputViewVue2 };
|