@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,56 +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
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
interface AIPromptViewProps {
|
|
11
|
-
promptInput?: any;
|
|
12
|
-
generateButton?: any;
|
|
13
|
-
promptValue?: string;
|
|
14
|
-
promptSuggestions?: string[];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the default values for Prompt view Toolbar.
|
|
18
|
-
*/
|
|
19
|
-
export declare const promptViewDefaults: AIPromptToolbarItemInterface;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
interface AIPromptViewState {
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
interface AIPromptViewData {
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export interface AIPromptViewMethods {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export interface AIPromptViewComputed {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
computedValue: object;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
export interface AIPromptViewAll extends AIPromptViewMethods, AIPromptViewState, AIPromptViewData, AIPromptViewComputed, Vue2type {
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
declare const AIPromptViewVue2: ComponentOptions<Vue2type, DefaultData<AIPromptViewData>, DefaultMethods<AIPromptViewAll>, AIPromptViewComputed, RecordPropsDefinition<AIPromptViewProps>>;
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
declare const AIPromptView: DefineComponent<AIPromptViewProps, any, AIPromptViewData, AIPromptViewComputed, AIPromptViewMethods, {}, {}, {}, string, AIPromptViewProps, AIPromptViewProps, {}>;
|
|
56
|
-
export { AIPromptView, AIPromptViewVue2 };
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptViewVue2 = exports.AIPromptView = exports.promptViewDefaults = 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 AIPromptFooter_1 = require("../AIPromptFooter");
|
|
14
|
-
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
15
|
-
var kendo_vue_inputs_1 = require("@progress/kendo-vue-inputs");
|
|
16
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
17
|
-
var AIPromptViewRender_1 = require("./AIPromptViewRender");
|
|
18
|
-
var AIPromptExpander_1 = require("../AIPromptExpander");
|
|
19
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the default values for Prompt view Toolbar.
|
|
22
|
-
*/
|
|
23
|
-
exports.promptViewDefaults = {
|
|
24
|
-
name: 'prompt-view',
|
|
25
|
-
buttonText: 'Ask AI',
|
|
26
|
-
buttonIcon: kendo_svg_icons_1.sparklesIcon
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
var AIPromptViewVue2 = {
|
|
32
|
-
name: 'KendoAIPromptView',
|
|
33
|
-
props: {
|
|
34
|
-
promptInput: [Object, String],
|
|
35
|
-
generateButton: [Object, String],
|
|
36
|
-
promptValue: String,
|
|
37
|
-
promptSuggestions: Array
|
|
38
|
-
},
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
setup: !isV3 ? undefined : function () {
|
|
41
|
-
var v3 = !!isV3;
|
|
42
|
-
return {
|
|
43
|
-
v3: v3
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
inject: {
|
|
47
|
-
kendoAIPrompt: {
|
|
48
|
-
default: null
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
computed: {
|
|
52
|
-
computedValue: function computedValue() {
|
|
53
|
-
return this.$props.promptValue !== undefined ? this.$props.promptValue : this.value;
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
data: function data() {
|
|
57
|
-
return {
|
|
58
|
-
value: ''
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
methods: {
|
|
62
|
-
handleOnRequest: function handleOnRequest() {
|
|
63
|
-
if (this.kendoAIPrompt.onPromptRequest) {
|
|
64
|
-
this.kendoAIPrompt.onPromptRequest.call(null, this.value);
|
|
65
|
-
}
|
|
66
|
-
this.value = '';
|
|
67
|
-
},
|
|
68
|
-
handleSuggestionSelect: function handleSuggestionSelect(suggestion) {
|
|
69
|
-
this.value = suggestion;
|
|
70
|
-
},
|
|
71
|
-
onTextChange: function onTextChange(event) {
|
|
72
|
-
this.value = event.value;
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
render: function render(createElement) {
|
|
76
|
-
var _this2 = this;
|
|
77
|
-
var h = gh || createElement;
|
|
78
|
-
var buttonText = 'Generate';
|
|
79
|
-
var promptSuggestions = this.$props.promptSuggestions;
|
|
80
|
-
var promptInput = kendo_vue_common_1.templateRendering.call(this, this.$props.promptInput, kendo_vue_common_1.getListeners.call(this));
|
|
81
|
-
var promptInputDefaultRendering = h(kendo_vue_inputs_1.TextArea, {
|
|
82
|
-
value: this.computedValue,
|
|
83
|
-
attrs: this.v3 ? undefined : {
|
|
84
|
-
value: this.computedValue,
|
|
85
|
-
placeholder: 'Ask or generate content with AI ...',
|
|
86
|
-
rows: 2
|
|
87
|
-
},
|
|
88
|
-
onChange: this.onTextChange,
|
|
89
|
-
on: this.v3 ? undefined : {
|
|
90
|
-
"change": this.onTextChange
|
|
91
|
-
},
|
|
92
|
-
placeholder: 'Ask or generate content with AI ...',
|
|
93
|
-
rows: 2
|
|
94
|
-
});
|
|
95
|
-
var promptInputRendering = kendo_vue_common_1.getTemplate.call(this, {
|
|
96
|
-
h: h,
|
|
97
|
-
template: promptInput,
|
|
98
|
-
defaultRendering: promptInputDefaultRendering
|
|
99
|
-
});
|
|
100
|
-
var generateButton = kendo_vue_common_1.templateRendering.call(this, this.$props.generateButton, kendo_vue_common_1.getListeners.call(this));
|
|
101
|
-
var generateButtonDefaultRendering =
|
|
102
|
-
// @ts-ignore function children
|
|
103
|
-
h(kendo_vue_buttons_1.Button, {
|
|
104
|
-
type: 'button',
|
|
105
|
-
attrs: this.v3 ? undefined : {
|
|
106
|
-
type: 'button',
|
|
107
|
-
themeColor: "primary",
|
|
108
|
-
fillMode: "solid",
|
|
109
|
-
"aria-hidden": "true",
|
|
110
|
-
rounded: "full",
|
|
111
|
-
size: "medium",
|
|
112
|
-
title: 'Generate',
|
|
113
|
-
svgIcon: kendo_svg_icons_1.sparklesIcon
|
|
114
|
-
},
|
|
115
|
-
themeColor: "primary",
|
|
116
|
-
fillMode: "solid",
|
|
117
|
-
"aria-hidden": "true",
|
|
118
|
-
rounded: "full",
|
|
119
|
-
size: "medium",
|
|
120
|
-
onClick: this.handleOnRequest,
|
|
121
|
-
on: this.v3 ? undefined : {
|
|
122
|
-
"click": this.handleOnRequest
|
|
123
|
-
},
|
|
124
|
-
title: 'Generate',
|
|
125
|
-
svgIcon: kendo_svg_icons_1.sparklesIcon
|
|
126
|
-
}, this.v3 ? function () {
|
|
127
|
-
return [buttonText];
|
|
128
|
-
} : [buttonText]);
|
|
129
|
-
var generateButtonRendering = kendo_vue_common_1.getTemplate.call(this, {
|
|
130
|
-
h: h,
|
|
131
|
-
template: generateButton,
|
|
132
|
-
defaultRendering: generateButtonDefaultRendering
|
|
133
|
-
});
|
|
134
|
-
return (
|
|
135
|
-
// @ts-ignore function children
|
|
136
|
-
h(AIPromptViewRender_1.AIPromptViewRender, {
|
|
137
|
-
name: exports.promptViewDefaults.name,
|
|
138
|
-
attrs: this.v3 ? undefined : {
|
|
139
|
-
name: exports.promptViewDefaults.name
|
|
140
|
-
}
|
|
141
|
-
}, this.v3 ? function () {
|
|
142
|
-
return [
|
|
143
|
-
// @ts-ignore function children
|
|
144
|
-
h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
|
|
145
|
-
return [promptInputRendering, promptSuggestions && promptSuggestions.length > 0 &&
|
|
146
|
-
// @ts-ignore function children
|
|
147
|
-
h(AIPromptExpander_1.AIPromptExpander, {
|
|
148
|
-
title: 'Prompt Suggestions',
|
|
149
|
-
attrs: _this2.v3 ? undefined : {
|
|
150
|
-
title: 'Prompt Suggestions'
|
|
151
|
-
}
|
|
152
|
-
}, _this2.v3 ? function () {
|
|
153
|
-
return [promptSuggestions.map(function (suggestion) {
|
|
154
|
-
var _this = this;
|
|
155
|
-
return h("div", {
|
|
156
|
-
key: suggestion,
|
|
157
|
-
"class": "k-prompt-suggestion",
|
|
158
|
-
onClick: function onClick() {
|
|
159
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
160
|
-
},
|
|
161
|
-
on: this.v3 ? undefined : {
|
|
162
|
-
"click": function onClick() {
|
|
163
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}, [suggestion]);
|
|
167
|
-
}, _this2)];
|
|
168
|
-
} : [promptSuggestions.map(function (suggestion) {
|
|
169
|
-
var _this = this;
|
|
170
|
-
return h("div", {
|
|
171
|
-
key: suggestion,
|
|
172
|
-
"class": "k-prompt-suggestion",
|
|
173
|
-
onClick: function onClick() {
|
|
174
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
175
|
-
},
|
|
176
|
-
on: this.v3 ? undefined : {
|
|
177
|
-
"click": function onClick() {
|
|
178
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}, [suggestion]);
|
|
182
|
-
}, _this2)])];
|
|
183
|
-
} : [promptInputRendering, promptSuggestions && promptSuggestions.length > 0 && h(AIPromptExpander_1.AIPromptExpander, {
|
|
184
|
-
title: 'Prompt Suggestions',
|
|
185
|
-
attrs: _this2.v3 ? undefined : {
|
|
186
|
-
title: 'Prompt Suggestions'
|
|
187
|
-
}
|
|
188
|
-
}, _this2.v3 ? function () {
|
|
189
|
-
return [promptSuggestions.map(function (suggestion) {
|
|
190
|
-
var _this = this;
|
|
191
|
-
return h("div", {
|
|
192
|
-
key: suggestion,
|
|
193
|
-
"class": "k-prompt-suggestion",
|
|
194
|
-
onClick: function onClick() {
|
|
195
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
196
|
-
},
|
|
197
|
-
on: this.v3 ? undefined : {
|
|
198
|
-
"click": function onClick() {
|
|
199
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}, [suggestion]);
|
|
203
|
-
}, _this2)];
|
|
204
|
-
} : [promptSuggestions.map(function (suggestion) {
|
|
205
|
-
var _this = this;
|
|
206
|
-
return h("div", {
|
|
207
|
-
key: suggestion,
|
|
208
|
-
"class": "k-prompt-suggestion",
|
|
209
|
-
onClick: function onClick() {
|
|
210
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
211
|
-
},
|
|
212
|
-
on: this.v3 ? undefined : {
|
|
213
|
-
"click": function onClick() {
|
|
214
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}, [suggestion]);
|
|
218
|
-
}, _this2)])]),
|
|
219
|
-
// @ts-ignore function children
|
|
220
|
-
h(AIPromptFooter_1.AIPromptFooter, _this2.v3 ? function () {
|
|
221
|
-
return [generateButtonRendering];
|
|
222
|
-
} : [generateButtonRendering])];
|
|
223
|
-
} : [h(AIPromptContent_1.AIPromptContent, _this2.v3 ? function () {
|
|
224
|
-
return [promptInputRendering, promptSuggestions && promptSuggestions.length > 0 && h(AIPromptExpander_1.AIPromptExpander, {
|
|
225
|
-
title: 'Prompt Suggestions',
|
|
226
|
-
attrs: _this2.v3 ? undefined : {
|
|
227
|
-
title: 'Prompt Suggestions'
|
|
228
|
-
}
|
|
229
|
-
}, _this2.v3 ? function () {
|
|
230
|
-
return [promptSuggestions.map(function (suggestion) {
|
|
231
|
-
var _this = this;
|
|
232
|
-
return h("div", {
|
|
233
|
-
key: suggestion,
|
|
234
|
-
"class": "k-prompt-suggestion",
|
|
235
|
-
onClick: function onClick() {
|
|
236
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
237
|
-
},
|
|
238
|
-
on: this.v3 ? undefined : {
|
|
239
|
-
"click": function onClick() {
|
|
240
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}, [suggestion]);
|
|
244
|
-
}, _this2)];
|
|
245
|
-
} : [promptSuggestions.map(function (suggestion) {
|
|
246
|
-
var _this = this;
|
|
247
|
-
return h("div", {
|
|
248
|
-
key: suggestion,
|
|
249
|
-
"class": "k-prompt-suggestion",
|
|
250
|
-
onClick: function onClick() {
|
|
251
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
252
|
-
},
|
|
253
|
-
on: this.v3 ? undefined : {
|
|
254
|
-
"click": function onClick() {
|
|
255
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}, [suggestion]);
|
|
259
|
-
}, _this2)])];
|
|
260
|
-
} : [promptInputRendering, promptSuggestions && promptSuggestions.length > 0 && h(AIPromptExpander_1.AIPromptExpander, {
|
|
261
|
-
title: 'Prompt Suggestions',
|
|
262
|
-
attrs: _this2.v3 ? undefined : {
|
|
263
|
-
title: 'Prompt Suggestions'
|
|
264
|
-
}
|
|
265
|
-
}, _this2.v3 ? function () {
|
|
266
|
-
return [promptSuggestions.map(function (suggestion) {
|
|
267
|
-
var _this = this;
|
|
268
|
-
return h("div", {
|
|
269
|
-
key: suggestion,
|
|
270
|
-
"class": "k-prompt-suggestion",
|
|
271
|
-
onClick: function onClick() {
|
|
272
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
273
|
-
},
|
|
274
|
-
on: this.v3 ? undefined : {
|
|
275
|
-
"click": function onClick() {
|
|
276
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}, [suggestion]);
|
|
280
|
-
}, _this2)];
|
|
281
|
-
} : [promptSuggestions.map(function (suggestion) {
|
|
282
|
-
var _this = this;
|
|
283
|
-
return h("div", {
|
|
284
|
-
key: suggestion,
|
|
285
|
-
"class": "k-prompt-suggestion",
|
|
286
|
-
onClick: function onClick() {
|
|
287
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
288
|
-
},
|
|
289
|
-
on: this.v3 ? undefined : {
|
|
290
|
-
"click": function onClick() {
|
|
291
|
-
return _this.handleSuggestionSelect(suggestion);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}, [suggestion]);
|
|
295
|
-
}, _this2)])]), h(AIPromptFooter_1.AIPromptFooter, _this2.v3 ? function () {
|
|
296
|
-
return [generateButtonRendering];
|
|
297
|
-
} : [generateButtonRendering])])
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
exports.AIPromptViewVue2 = AIPromptViewVue2;
|
|
302
|
-
/**
|
|
303
|
-
* @hidden
|
|
304
|
-
*/
|
|
305
|
-
var AIPromptView = AIPromptViewVue2;
|
|
306
|
-
exports.AIPromptView = AIPromptView;
|
|
@@ -1,51 +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
|
-
/**
|
|
7
|
-
* The props of the AIPromptViewRender component.
|
|
8
|
-
*/
|
|
9
|
-
export interface AIPromptViewRenderProps {
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the name of the view.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
interface AIPromptViewRenderState {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
interface AIPromptViewRenderData {
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export interface AIPromptViewRenderMethods {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export interface AIPromptViewRenderComputed {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
wrapperClass: object;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export interface AIPromptViewRenderAll extends AIPromptViewRenderMethods, AIPromptViewRenderState, AIPromptViewRenderData, AIPromptViewRenderComputed, Vue2type {
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
declare const AIPromptViewRenderVue2: ComponentOptions<Vue2type, DefaultData<AIPromptViewRenderData>, DefaultMethods<AIPromptViewRenderAll>, AIPromptViewRenderComputed, RecordPropsDefinition<AIPromptViewRenderProps>>;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
declare const AIPromptViewRender: DefineComponent<AIPromptViewRenderProps, any, AIPromptViewRenderData, AIPromptViewRenderComputed, AIPromptViewRenderMethods, {}, {}, {}, string, AIPromptViewRenderProps, AIPromptViewRenderProps, {}>;
|
|
51
|
-
export { AIPromptViewRender, AIPromptViewRenderVue2 };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptViewRenderVue2 = exports.AIPromptViewRender = 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 kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
var AIPromptViewRenderVue2 = {
|
|
17
|
-
name: 'KendoAIPromptViewRender',
|
|
18
|
-
inheritAttrs: false,
|
|
19
|
-
props: {
|
|
20
|
-
name: String
|
|
21
|
-
},
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
setup: !isV3 ? undefined : function () {
|
|
24
|
-
var v3 = !!isV3;
|
|
25
|
-
return {
|
|
26
|
-
v3: v3
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
inject: {
|
|
30
|
-
kendoAIPrompt: {
|
|
31
|
-
default: null
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
render: function render(createElement) {
|
|
35
|
-
var h = gh || createElement;
|
|
36
|
-
var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
37
|
-
var active = this.kendoAIPrompt.activeView === this.$props.name;
|
|
38
|
-
return active ? this.v3 ? defaultSlots : h("div", [defaultSlots]) : null;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.AIPromptViewRenderVue2 = AIPromptViewRenderVue2;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
var AIPromptViewRender = AIPromptViewRenderVue2;
|
|
46
|
-
exports.AIPromptViewRender = AIPromptViewRender;
|
package/dist/npm/main.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './ai-prompt/AIPrompt';
|
|
2
|
-
export * from './ai-prompt/AIPromptHeader';
|
|
3
|
-
export * from './ai-prompt/AIPromptFooter';
|
|
4
|
-
export * from './ai-prompt/AIPromptContent';
|
|
5
|
-
export * from './ai-prompt/views/AIPromptView';
|
|
6
|
-
export * from './ai-prompt/views/AIPromptOutputView';
|
|
7
|
-
export * from './ai-prompt/views/AIPromptCommandsView';
|
|
8
|
-
export * from './ai-prompt/views/AIPromptViewRender';
|
package/dist/npm/main.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ai-prompt/AIPrompt"), exports);
|
|
18
|
-
__exportStar(require("./ai-prompt/AIPromptHeader"), exports);
|
|
19
|
-
__exportStar(require("./ai-prompt/AIPromptFooter"), exports);
|
|
20
|
-
__exportStar(require("./ai-prompt/AIPromptContent"), exports);
|
|
21
|
-
__exportStar(require("./ai-prompt/views/AIPromptView"), exports);
|
|
22
|
-
__exportStar(require("./ai-prompt/views/AIPromptOutputView"), exports);
|
|
23
|
-
__exportStar(require("./ai-prompt/views/AIPromptCommandsView"), exports);
|
|
24
|
-
__exportStar(require("./ai-prompt/views/AIPromptViewRender"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const avatarAlt = "avatar.alt";
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const ariaLabelMessageList = "messageList.ariaLabel";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const aIPromptNoOutputs = "aIPrompt.noOutputs";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const messages: {
|
|
17
|
-
"avatar.alt": string;
|
|
18
|
-
"messageList.ariaLabel": string;
|
|
19
|
-
"aIPrompt.noOutputs": string;
|
|
20
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.messages = exports.aIPromptNoOutputs = exports.ariaLabelMessageList = exports.avatarAlt = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
exports.avatarAlt = 'avatar.alt';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
exports.ariaLabelMessageList = 'messageList.ariaLabel';
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
exports.aIPromptNoOutputs = 'aIPrompt.noOutputs';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
exports.messages = (_a = {},
|
|
21
|
-
_a[exports.avatarAlt] = 'Avatar',
|
|
22
|
-
_a[exports.ariaLabelMessageList] = 'Message list',
|
|
23
|
-
_a[exports.aIPromptNoOutputs] = 'No output from Ai available',
|
|
24
|
-
_a);
|