@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,117 +0,0 @@
|
|
|
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.$emit('commandexecute', command);
|
|
47
|
-
_this.kendoAIPrompt.onCommandExecute.call(null, command);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
return (
|
|
51
|
-
// @ts-ignore function children
|
|
52
|
-
h(AIPromptViewRender, {
|
|
53
|
-
name: commandsViewDefaults.name,
|
|
54
|
-
attrs: this.v3 ? undefined : {
|
|
55
|
-
name: commandsViewDefaults.name
|
|
56
|
-
}
|
|
57
|
-
}, this.v3 ? function () {
|
|
58
|
-
return [
|
|
59
|
-
// @ts-ignore function children
|
|
60
|
-
h(AIPromptContent, _this2.v3 ? function () {
|
|
61
|
-
return [h("div", {
|
|
62
|
-
"class": "k-prompt-view"
|
|
63
|
-
}, [h(PanelBar, {
|
|
64
|
-
onSelect: onCommandClick,
|
|
65
|
-
on: _this2.v3 ? undefined : {
|
|
66
|
-
"select": onCommandClick
|
|
67
|
-
},
|
|
68
|
-
items: commands,
|
|
69
|
-
attrs: _this2.v3 ? undefined : {
|
|
70
|
-
items: commands
|
|
71
|
-
}
|
|
72
|
-
})])];
|
|
73
|
-
} : [h("div", {
|
|
74
|
-
"class": "k-prompt-view"
|
|
75
|
-
}, [h(PanelBar, {
|
|
76
|
-
onSelect: onCommandClick,
|
|
77
|
-
on: _this2.v3 ? undefined : {
|
|
78
|
-
"select": onCommandClick
|
|
79
|
-
},
|
|
80
|
-
items: commands,
|
|
81
|
-
attrs: _this2.v3 ? undefined : {
|
|
82
|
-
items: commands
|
|
83
|
-
}
|
|
84
|
-
})])])];
|
|
85
|
-
} : [h(AIPromptContent, _this2.v3 ? function () {
|
|
86
|
-
return [h("div", {
|
|
87
|
-
"class": "k-prompt-view"
|
|
88
|
-
}, [h(PanelBar, {
|
|
89
|
-
onSelect: onCommandClick,
|
|
90
|
-
on: _this2.v3 ? undefined : {
|
|
91
|
-
"select": onCommandClick
|
|
92
|
-
},
|
|
93
|
-
items: commands,
|
|
94
|
-
attrs: _this2.v3 ? undefined : {
|
|
95
|
-
items: commands
|
|
96
|
-
}
|
|
97
|
-
})])];
|
|
98
|
-
} : [h("div", {
|
|
99
|
-
"class": "k-prompt-view"
|
|
100
|
-
}, [h(PanelBar, {
|
|
101
|
-
onSelect: onCommandClick,
|
|
102
|
-
on: _this2.v3 ? undefined : {
|
|
103
|
-
"select": onCommandClick
|
|
104
|
-
},
|
|
105
|
-
items: commands,
|
|
106
|
-
attrs: _this2.v3 ? undefined : {
|
|
107
|
-
items: commands
|
|
108
|
-
}
|
|
109
|
-
})])])])
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
var AIPromptCommandsView = AIPromptCommandsViewVue2;
|
|
117
|
-
export { AIPromptCommandsView, AIPromptCommandsViewVue2 };
|
|
@@ -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 };
|