@progress/kendo-vue-conversational-ui 5.3.0-dev.202410141143 → 5.3.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/README.md +27 -34
- package/ai-prompt/AIPrompt.js +8 -0
- package/ai-prompt/AIPrompt.mjs +83 -0
- package/ai-prompt/AIPromptContent.js +8 -0
- package/ai-prompt/AIPromptContent.mjs +23 -0
- package/ai-prompt/AIPromptExpander.js +8 -0
- package/ai-prompt/AIPromptExpander.mjs +51 -0
- package/ai-prompt/AIPromptFooter.js +8 -0
- package/ai-prompt/AIPromptFooter.mjs +23 -0
- package/ai-prompt/AIPromptHeader.js +8 -0
- package/ai-prompt/AIPromptHeader.mjs +70 -0
- package/ai-prompt/views/AIPromptCommandsView.js +8 -0
- package/ai-prompt/views/AIPromptCommandsView.mjs +51 -0
- package/ai-prompt/views/AIPromptOutputView.js +8 -0
- package/ai-prompt/views/AIPromptOutputView.mjs +170 -0
- package/ai-prompt/views/AIPromptView.js +8 -0
- package/ai-prompt/views/AIPromptView.mjs +112 -0
- package/ai-prompt/views/AIPromptViewRender.js +8 -0
- package/ai-prompt/views/AIPromptViewRender.mjs +28 -0
- package/dist/cdn/js/kendo-vue-conversational-ui.js +8 -1
- package/index.d.mts +378 -0
- package/index.d.ts +378 -0
- package/index.js +8 -0
- package/index.mjs +29 -0
- package/messages/main.js +8 -0
- package/messages/main.mjs +18 -0
- package/package.json +24 -50
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/ai-prompt/AIPrompt.d.ts +0 -122
- package/dist/es/ai-prompt/AIPrompt.js +0 -117
- package/dist/es/ai-prompt/AIPromptContent.d.ts +0 -47
- package/dist/es/ai-prompt/AIPromptContent.js +0 -33
- package/dist/es/ai-prompt/AIPromptExpander.d.ts +0 -45
- package/dist/es/ai-prompt/AIPromptExpander.js +0 -68
- package/dist/es/ai-prompt/AIPromptFooter.d.ts +0 -44
- package/dist/es/ai-prompt/AIPromptFooter.js +0 -33
- package/dist/es/ai-prompt/AIPromptHeader.d.ts +0 -71
- package/dist/es/ai-prompt/AIPromptHeader.js +0 -146
- package/dist/es/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
- package/dist/es/ai-prompt/views/AIPromptCommandsView.js +0 -117
- package/dist/es/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
- package/dist/es/ai-prompt/views/AIPromptOutputView.js +0 -2206
- package/dist/es/ai-prompt/views/AIPromptView.d.ts +0 -56
- package/dist/es/ai-prompt/views/AIPromptView.js +0 -299
- package/dist/es/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
- package/dist/es/ai-prompt/views/AIPromptViewRender.js +0 -39
- package/dist/es/main.d.ts +0 -8
- package/dist/es/main.js +0 -8
- package/dist/es/messages/main.d.ts +0 -20
- package/dist/es/messages/main.js +0 -21
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/ai-prompt/AIPrompt.d.ts +0 -122
- package/dist/esm/ai-prompt/AIPrompt.js +0 -117
- package/dist/esm/ai-prompt/AIPromptContent.d.ts +0 -47
- package/dist/esm/ai-prompt/AIPromptContent.js +0 -33
- package/dist/esm/ai-prompt/AIPromptExpander.d.ts +0 -45
- package/dist/esm/ai-prompt/AIPromptExpander.js +0 -68
- package/dist/esm/ai-prompt/AIPromptFooter.d.ts +0 -44
- package/dist/esm/ai-prompt/AIPromptFooter.js +0 -33
- package/dist/esm/ai-prompt/AIPromptHeader.d.ts +0 -71
- package/dist/esm/ai-prompt/AIPromptHeader.js +0 -146
- package/dist/esm/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
- package/dist/esm/ai-prompt/views/AIPromptCommandsView.js +0 -117
- package/dist/esm/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
- package/dist/esm/ai-prompt/views/AIPromptOutputView.js +0 -2206
- package/dist/esm/ai-prompt/views/AIPromptView.d.ts +0 -56
- package/dist/esm/ai-prompt/views/AIPromptView.js +0 -299
- package/dist/esm/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
- package/dist/esm/ai-prompt/views/AIPromptViewRender.js +0 -39
- package/dist/esm/main.d.ts +0 -8
- package/dist/esm/main.js +0 -8
- package/dist/esm/messages/main.d.ts +0 -20
- package/dist/esm/messages/main.js +0 -21
- package/dist/esm/package.json +0 -3
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/ai-prompt/AIPrompt.d.ts +0 -122
- package/dist/npm/ai-prompt/AIPrompt.js +0 -124
- package/dist/npm/ai-prompt/AIPromptContent.d.ts +0 -47
- package/dist/npm/ai-prompt/AIPromptContent.js +0 -40
- package/dist/npm/ai-prompt/AIPromptExpander.d.ts +0 -45
- package/dist/npm/ai-prompt/AIPromptExpander.js +0 -75
- package/dist/npm/ai-prompt/AIPromptFooter.d.ts +0 -44
- package/dist/npm/ai-prompt/AIPromptFooter.js +0 -40
- package/dist/npm/ai-prompt/AIPromptHeader.d.ts +0 -71
- package/dist/npm/ai-prompt/AIPromptHeader.js +0 -153
- package/dist/npm/ai-prompt/views/AIPromptCommandsView.d.ts +0 -86
- package/dist/npm/ai-prompt/views/AIPromptCommandsView.js +0 -124
- package/dist/npm/ai-prompt/views/AIPromptOutputView.d.ts +0 -93
- package/dist/npm/ai-prompt/views/AIPromptOutputView.js +0 -2213
- package/dist/npm/ai-prompt/views/AIPromptView.d.ts +0 -56
- package/dist/npm/ai-prompt/views/AIPromptView.js +0 -306
- package/dist/npm/ai-prompt/views/AIPromptViewRender.d.ts +0 -51
- package/dist/npm/ai-prompt/views/AIPromptViewRender.js +0 -46
- package/dist/npm/main.d.ts +0 -8
- package/dist/npm/main.js +0 -24
- package/dist/npm/messages/main.d.ts +0 -20
- package/dist/npm/messages/main.js +0 -24
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
export interface AIPromptCommandsViewProps {
|
|
12
|
-
/**
|
|
13
|
-
* The collection of commands that will be rendered in the Command view.
|
|
14
|
-
*/
|
|
15
|
-
commands?: AIPromptCommandInterface[];
|
|
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 AIPromptCommandInterface 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
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
export interface AIPromptCommandsViewAll extends AIPromptCommandsViewMethods, AIPromptCommandsViewState, AIPromptCommandsViewData, AIPromptCommandsViewComputed, Vue2type {
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
declare const AIPromptCommandsViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptCommandsViewData>, DefaultMethods<AIPromptCommandsViewAll>, AIPromptCommandsViewComputed, RecordPropsDefinition<AIPromptCommandsViewProps>>;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
declare const AIPromptCommandsView: DefineComponent<AIPromptCommandsViewProps, any, AIPromptCommandsViewData, AIPromptCommandsViewComputed, AIPromptCommandsViewMethods, {}, {}, {}, string, AIPromptCommandsViewProps, AIPromptCommandsViewProps, {}>;
|
|
86
|
-
export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptCommandsViewVue2 = exports.AIPromptCommandsView = exports.commandsViewDefaults = void 0;
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
var Vue = require("vue");
|
|
9
|
-
var allVue = Vue;
|
|
10
|
-
var gh = allVue.h;
|
|
11
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
|
-
var AIPromptContent_1 = require("../AIPromptContent");
|
|
13
|
-
var AIPromptViewRender_1 = require("./AIPromptViewRender");
|
|
14
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
15
|
-
var kendo_vue_layout_1 = require("@progress/kendo-vue-layout");
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the default values for Commands view Toolbar.
|
|
18
|
-
*/
|
|
19
|
-
exports.commandsViewDefaults = {
|
|
20
|
-
name: 'commands-view',
|
|
21
|
-
buttonIcon: kendo_svg_icons_1.moreHorizontalIcon
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
var AIPromptCommandsViewVue2 = {
|
|
27
|
-
name: 'KendoAIPromptCommandsView',
|
|
28
|
-
props: {
|
|
29
|
-
commands: Array
|
|
30
|
-
},
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
setup: !isV3 ? undefined : function () {
|
|
33
|
-
var v3 = !!isV3;
|
|
34
|
-
return {
|
|
35
|
-
v3: v3
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
inject: {
|
|
39
|
-
kendoAIPrompt: {
|
|
40
|
-
default: null
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
render: function render(createElement) {
|
|
44
|
-
var _this2 = this;
|
|
45
|
-
var _this = this;
|
|
46
|
-
var h = gh || createElement;
|
|
47
|
-
var commands = this.$props.commands;
|
|
48
|
-
var onCommandClick = function onCommandClick(event) {
|
|
49
|
-
var _a;
|
|
50
|
-
var command = event.target;
|
|
51
|
-
if (!((_a = command.items) === null || _a === void 0 ? void 0 : _a.length) && _this.kendoAIPrompt.onCommandExecute) {
|
|
52
|
-
_this.$emit('commandexecute', command);
|
|
53
|
-
_this.kendoAIPrompt.onCommandExecute.call(null, command);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return (
|
|
57
|
-
// @ts-ignore function children
|
|
58
|
-
h(AIPromptViewRender_1.AIPromptViewRender, {
|
|
59
|
-
name: exports.commandsViewDefaults.name,
|
|
60
|
-
attrs: this.v3 ? undefined : {
|
|
61
|
-
name: exports.commandsViewDefaults.name
|
|
62
|
-
}
|
|
63
|
-
}, this.v3 ? function () {
|
|
64
|
-
return [
|
|
65
|
-
// @ts-ignore function children
|
|
66
|
-
h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
|
|
67
|
-
return [h("div", {
|
|
68
|
-
"class": "k-prompt-view"
|
|
69
|
-
}, [h(kendo_vue_layout_1.PanelBar, {
|
|
70
|
-
onSelect: onCommandClick,
|
|
71
|
-
on: _this2.v3 ? undefined : {
|
|
72
|
-
"select": onCommandClick
|
|
73
|
-
},
|
|
74
|
-
items: commands,
|
|
75
|
-
attrs: _this2.v3 ? undefined : {
|
|
76
|
-
items: commands
|
|
77
|
-
}
|
|
78
|
-
})])];
|
|
79
|
-
} : [h("div", {
|
|
80
|
-
"class": "k-prompt-view"
|
|
81
|
-
}, [h(kendo_vue_layout_1.PanelBar, {
|
|
82
|
-
onSelect: onCommandClick,
|
|
83
|
-
on: _this2.v3 ? undefined : {
|
|
84
|
-
"select": onCommandClick
|
|
85
|
-
},
|
|
86
|
-
items: commands,
|
|
87
|
-
attrs: _this2.v3 ? undefined : {
|
|
88
|
-
items: commands
|
|
89
|
-
}
|
|
90
|
-
})])])];
|
|
91
|
-
} : [h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
|
|
92
|
-
return [h("div", {
|
|
93
|
-
"class": "k-prompt-view"
|
|
94
|
-
}, [h(kendo_vue_layout_1.PanelBar, {
|
|
95
|
-
onSelect: onCommandClick,
|
|
96
|
-
on: _this2.v3 ? undefined : {
|
|
97
|
-
"select": onCommandClick
|
|
98
|
-
},
|
|
99
|
-
items: commands,
|
|
100
|
-
attrs: _this2.v3 ? undefined : {
|
|
101
|
-
items: commands
|
|
102
|
-
}
|
|
103
|
-
})])];
|
|
104
|
-
} : [h("div", {
|
|
105
|
-
"class": "k-prompt-view"
|
|
106
|
-
}, [h(kendo_vue_layout_1.PanelBar, {
|
|
107
|
-
onSelect: onCommandClick,
|
|
108
|
-
on: _this2.v3 ? undefined : {
|
|
109
|
-
"select": onCommandClick
|
|
110
|
-
},
|
|
111
|
-
items: commands,
|
|
112
|
-
attrs: _this2.v3 ? undefined : {
|
|
113
|
-
items: commands
|
|
114
|
-
}
|
|
115
|
-
})])])])
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
exports.AIPromptCommandsViewVue2 = AIPromptCommandsViewVue2;
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
var AIPromptCommandsView = AIPromptCommandsViewVue2;
|
|
124
|
-
exports.AIPromptCommandsView = AIPromptCommandsView;
|
|
@@ -1,93 +0,0 @@
|
|
|
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
|
-
export 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
|
-
/**
|
|
29
|
-
* Fires each time the user clicks Retry button in the card.
|
|
30
|
-
*/
|
|
31
|
-
onRetry?: (output: AIPromptOutputInterface) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Fires each time the user clicks Copy button in the card.
|
|
34
|
-
*/
|
|
35
|
-
onCopy?: (content: string) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Fires each time the user clicks a rating button in the card.
|
|
38
|
-
*/
|
|
39
|
-
onRating?: (output: AIPromptOutputInterface, ratingType: AIPromptOutputRating) => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Enum option for the output rating
|
|
43
|
-
*/
|
|
44
|
-
export declare enum AIPromptOutputRating {
|
|
45
|
-
/**
|
|
46
|
-
* Positive output rating
|
|
47
|
-
*/
|
|
48
|
-
positive = "positive",
|
|
49
|
-
/**
|
|
50
|
-
* Negative output rating
|
|
51
|
-
*/
|
|
52
|
-
negative = "negative"
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Specifies the default values for Output view Toolbar.
|
|
56
|
-
*/
|
|
57
|
-
export declare const outputViewDefaults: AIPromptToolbarItemInterface;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
interface AIPromptOutputViewState {
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
interface AIPromptOutputViewData {
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
export interface AIPromptOutputViewMethods {
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
export interface AIPromptOutputViewComputed {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @hidden
|
|
82
|
-
*/
|
|
83
|
-
export interface AIPromptOutputViewAll extends AIPromptOutputViewMethods, AIPromptOutputViewState, AIPromptOutputViewData, AIPromptOutputViewComputed, Vue2type {
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
declare const AIPromptOutputViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptOutputViewData>, DefaultMethods<AIPromptOutputViewAll>, AIPromptOutputViewComputed, RecordPropsDefinition<AIPromptOutputViewProps>>;
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
declare const AIPromptOutputView: DefineComponent<AIPromptOutputViewProps, any, AIPromptOutputViewData, AIPromptOutputViewComputed, AIPromptOutputViewMethods, {}, {}, {}, string, AIPromptOutputViewProps, AIPromptOutputViewProps, {}>;
|
|
93
|
-
export { AIPromptOutputView, AIPromptOutputViewVue2 };
|