@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,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
-
__assign = Object.assign || function (t) {
|
|
5
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
exports.AIPromptVue2 = exports.AIPrompt = void 0;
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
var Vue = require("vue");
|
|
21
|
-
var allVue = Vue;
|
|
22
|
-
var gh = allVue.h;
|
|
23
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
|
-
var AIPromptHeader_1 = require("./AIPromptHeader");
|
|
25
|
-
var AIPromptView_1 = require("./views/AIPromptView");
|
|
26
|
-
var AIPromptOutputView_1 = require("./views/AIPromptOutputView");
|
|
27
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
var AIPromptVue2 = {
|
|
32
|
-
name: 'KendoAIPrompt',
|
|
33
|
-
props: {
|
|
34
|
-
activeView: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: true
|
|
37
|
-
},
|
|
38
|
-
dir: String,
|
|
39
|
-
toolbarItems: Array,
|
|
40
|
-
outputs: Array,
|
|
41
|
-
promptPlaceholder: String
|
|
42
|
-
},
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
setup: !isV3 ? undefined : function () {
|
|
45
|
-
var v3 = !!isV3;
|
|
46
|
-
return {
|
|
47
|
-
v3: v3
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
provide: function provide() {
|
|
51
|
-
return {
|
|
52
|
-
kendoAIPrompt: this.$data.contextState
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
data: function data() {
|
|
56
|
-
return {
|
|
57
|
-
contextState: {
|
|
58
|
-
activeView: this.$props.activeView,
|
|
59
|
-
onActiveViewChange: this.onActiveViewChange,
|
|
60
|
-
onPromptRequest: this.onPromptRequest,
|
|
61
|
-
onCommandExecute: this.onCommandExecute,
|
|
62
|
-
onStateAction: this.onStateAction
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
watch: {
|
|
67
|
-
activeView: function activeView(newValue) {
|
|
68
|
-
this.contextState.activeView = newValue;
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
methods: {
|
|
72
|
-
onStateAction: function onStateAction(action) {
|
|
73
|
-
this.contextState.activeView = action.activeView;
|
|
74
|
-
},
|
|
75
|
-
onActiveViewChange: function onActiveViewChange(event) {
|
|
76
|
-
this.$emit('activeviewchange', event);
|
|
77
|
-
},
|
|
78
|
-
onPromptRequest: function onPromptRequest(prompt, outputItem) {
|
|
79
|
-
this.$emit('promptrequest', prompt, outputItem);
|
|
80
|
-
},
|
|
81
|
-
onCommandExecute: function onCommandExecute(event) {
|
|
82
|
-
this.$emit('commandexecute', event);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
render: function render(createElement) {
|
|
86
|
-
var _this = this;
|
|
87
|
-
var h = gh || createElement;
|
|
88
|
-
var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
89
|
-
var _a = this.$props,
|
|
90
|
-
toolbarItems = _a.toolbarItems,
|
|
91
|
-
dir = _a.dir;
|
|
92
|
-
var itemsToShow = toolbarItems || [AIPromptView_1.promptViewDefaults, AIPromptOutputView_1.outputViewDefaults];
|
|
93
|
-
var items = itemsToShow.map(function (item) {
|
|
94
|
-
var content = kendo_vue_common_1.templateRendering.call(_this, item.content, kendo_vue_common_1.getListeners.call(_this));
|
|
95
|
-
return __assign(__assign({}, item), {
|
|
96
|
-
content: content
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
return h("div", {
|
|
100
|
-
"class": "k-prompt",
|
|
101
|
-
dir: dir,
|
|
102
|
-
attrs: this.v3 ? undefined : {
|
|
103
|
-
dir: dir
|
|
104
|
-
}
|
|
105
|
-
}, [h(AIPromptHeader_1.AIPromptHeader, {
|
|
106
|
-
activeView: this.contextState.activeView,
|
|
107
|
-
attrs: this.v3 ? undefined : {
|
|
108
|
-
activeView: this.contextState.activeView,
|
|
109
|
-
toolbarItems: items
|
|
110
|
-
},
|
|
111
|
-
toolbarItems: items,
|
|
112
|
-
onActiveviewchange: this.onActiveViewChange,
|
|
113
|
-
on: this.v3 ? undefined : {
|
|
114
|
-
"activeviewchange": this.onActiveViewChange
|
|
115
|
-
}
|
|
116
|
-
}), defaultSlots]);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
exports.AIPromptVue2 = AIPromptVue2;
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
var AIPrompt = AIPromptVue2;
|
|
124
|
-
exports.AIPrompt = AIPrompt;
|
|
@@ -1,47 +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 AIPromptContent component.
|
|
8
|
-
*/
|
|
9
|
-
interface AIPromptContentProps {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
interface AIPromptContentState {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
interface AIPromptContentData {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export interface AIPromptContentMethods {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export interface AIPromptContentComputed {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
wrapperClass: object;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export interface AIPromptContentAll extends AIPromptContentMethods, AIPromptContentState, AIPromptContentData, AIPromptContentComputed, Vue2type {
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
declare const AIPromptContentVue2: ComponentOptions<Vue2type, DefaultData<AIPromptContentData>, DefaultMethods<AIPromptContentAll>, AIPromptContentComputed, RecordPropsDefinition<AIPromptContentProps>>;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
declare const AIPromptContent: DefineComponent<AIPromptContentProps, any, AIPromptContentData, AIPromptContentComputed, AIPromptContentMethods, {}, {}, {}, string, AIPromptContentProps, AIPromptContentProps, {}>;
|
|
47
|
-
export { AIPromptContent, AIPromptContentVue2 };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptContentVue2 = exports.AIPromptContent = 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 AIPromptContentVue2 = {
|
|
17
|
-
name: 'KendoAIPromptContent',
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
setup: !isV3 ? undefined : function () {
|
|
20
|
-
var v3 = !!isV3;
|
|
21
|
-
return {
|
|
22
|
-
v3: v3
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
render: function render(createElement) {
|
|
26
|
-
var h = gh || createElement;
|
|
27
|
-
var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
28
|
-
return h("div", {
|
|
29
|
-
"class": "k-prompt-content"
|
|
30
|
-
}, [h("div", {
|
|
31
|
-
"class": "k-prompt-view"
|
|
32
|
-
}, [defaultSlots])]);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.AIPromptContentVue2 = AIPromptContentVue2;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
var AIPromptContent = AIPromptContentVue2;
|
|
40
|
-
exports.AIPromptContent = AIPromptContent;
|
|
@@ -1,45 +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
|
-
export interface AIPromptExpanderProps {
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
interface AIPromptExpanderState {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
interface AIPromptExpanderData {
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export interface AIPromptExpanderMethods {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export interface AIPromptExpanderComputed {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
wrapperClass: object;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
export interface AIPromptExpanderAll extends AIPromptExpanderMethods, AIPromptExpanderState, AIPromptExpanderData, AIPromptExpanderComputed, Vue2type {
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
declare const AIPromptExpanderVue2: ComponentOptions<Vue2type, DefaultData<AIPromptExpanderData>, DefaultMethods<AIPromptExpanderAll>, AIPromptExpanderComputed, RecordPropsDefinition<AIPromptExpanderProps>>;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
declare const AIPromptExpander: DefineComponent<AIPromptExpanderProps, any, AIPromptExpanderData, AIPromptExpanderComputed, AIPromptExpanderMethods, {}, {}, {}, string, AIPromptExpanderProps, AIPromptExpanderProps, {}>;
|
|
45
|
-
export { AIPromptExpander, AIPromptExpanderVue2 };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptExpanderVue2 = exports.AIPromptExpander = 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
|
-
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
var AIPromptExpanderVue2 = {
|
|
19
|
-
name: 'KendoAIPromptExpander',
|
|
20
|
-
props: {
|
|
21
|
-
title: String
|
|
22
|
-
},
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
setup: !isV3 ? undefined : function () {
|
|
25
|
-
var v3 = !!isV3;
|
|
26
|
-
return {
|
|
27
|
-
v3: v3
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
data: function data() {
|
|
31
|
-
return {
|
|
32
|
-
expanded: true
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
methods: {
|
|
36
|
-
buttonClick: function buttonClick() {
|
|
37
|
-
this.expanded = !this.expanded;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
render: function render(createElement) {
|
|
41
|
-
var h = gh || createElement;
|
|
42
|
-
var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
43
|
-
var title = this.$props.title;
|
|
44
|
-
return h("div", {
|
|
45
|
-
"class": "k-prompt-expander"
|
|
46
|
-
}, [
|
|
47
|
-
// @ts-ignore function children
|
|
48
|
-
h(kendo_vue_buttons_1.Button, {
|
|
49
|
-
type: 'button',
|
|
50
|
-
attrs: this.v3 ? undefined : {
|
|
51
|
-
type: 'button',
|
|
52
|
-
fillMode: 'flat',
|
|
53
|
-
svgIcon: this.expanded ? kendo_svg_icons_1.chevronUpIcon : kendo_svg_icons_1.chevronDownIcon,
|
|
54
|
-
title: title
|
|
55
|
-
},
|
|
56
|
-
fillMode: 'flat',
|
|
57
|
-
svgIcon: this.expanded ? kendo_svg_icons_1.chevronUpIcon : kendo_svg_icons_1.chevronDownIcon,
|
|
58
|
-
title: title,
|
|
59
|
-
onClick: this.buttonClick,
|
|
60
|
-
on: this.v3 ? undefined : {
|
|
61
|
-
"click": this.buttonClick
|
|
62
|
-
}
|
|
63
|
-
}, this.v3 ? function () {
|
|
64
|
-
return [title];
|
|
65
|
-
} : [title]), this.expanded && h("div", {
|
|
66
|
-
"class": "k-prompt-expander-content"
|
|
67
|
-
}, [defaultSlots])]);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
exports.AIPromptExpanderVue2 = AIPromptExpanderVue2;
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
var AIPromptExpander = AIPromptExpanderVue2;
|
|
75
|
-
exports.AIPromptExpander = AIPromptExpander;
|
|
@@ -1,44 +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
|
-
interface AIPromptFooterProps {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
interface AIPromptFooterState {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
interface AIPromptFooterData {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export interface AIPromptFooterMethods {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export interface AIPromptFooterComputed {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
wrapperClass: object;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export interface AIPromptFooterAll extends AIPromptFooterMethods, AIPromptFooterState, AIPromptFooterData, AIPromptFooterComputed, Vue2type {
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
declare const AIPromptFooterVue2: ComponentOptions<Vue2type, DefaultData<AIPromptFooterData>, DefaultMethods<AIPromptFooterAll>, AIPromptFooterComputed, RecordPropsDefinition<AIPromptFooterProps>>;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
declare const AIPromptFooter: DefineComponent<AIPromptFooterProps, any, AIPromptFooterData, AIPromptFooterComputed, AIPromptFooterMethods, {}, {}, {}, string, AIPromptFooterProps, AIPromptFooterProps, {}>;
|
|
44
|
-
export { AIPromptFooter, AIPromptFooterVue2 };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptFooterVue2 = exports.AIPromptFooter = 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 AIPromptFooterVue2 = {
|
|
17
|
-
name: 'KendoAIPromptFooter',
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
setup: !isV3 ? undefined : function () {
|
|
20
|
-
var v3 = !!isV3;
|
|
21
|
-
return {
|
|
22
|
-
v3: v3
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
render: function render(createElement) {
|
|
26
|
-
var h = gh || createElement;
|
|
27
|
-
var defaultSlots = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
28
|
-
return h("div", {
|
|
29
|
-
"class": "k-prompt-footer"
|
|
30
|
-
}, [h("div", {
|
|
31
|
-
"class": "k-actions k-actions-start k-actions-horizontal k-prompt-actions"
|
|
32
|
-
}, [defaultSlots])]);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.AIPromptFooterVue2 = AIPromptFooterVue2;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
var AIPromptFooter = AIPromptFooterVue2;
|
|
40
|
-
exports.AIPromptFooter = AIPromptFooter;
|
|
@@ -1,71 +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 { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
/**
|
|
8
|
-
* An interface for the AIPromptToolbarItem.
|
|
9
|
-
*/
|
|
10
|
-
export interface AIPromptToolbarItemInterface {
|
|
11
|
-
/**
|
|
12
|
-
* Defines the name of the view witch is related to.
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* Defines the svgIcon used in the Toolbar button.
|
|
17
|
-
*/
|
|
18
|
-
buttonIcon?: SVGIcon;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the text used in the Toolbar button.
|
|
21
|
-
*/
|
|
22
|
-
buttonText?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Defines custom content for the item. It can be either a name of a named slot or a rendered function.
|
|
25
|
-
*/
|
|
26
|
-
content?: string | Function | Object;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
interface AIPromptHeaderProps {
|
|
32
|
-
activeView: string;
|
|
33
|
-
toolbarItems: AIPromptToolbarItemInterface[];
|
|
34
|
-
activeViewChange?: (event: any) => void;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
interface AIPromptHeaderState {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
interface AIPromptHeaderData {
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export interface AIPromptHeaderMethods {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
export interface AIPromptHeaderComputed {
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export interface AIPromptHeaderAll extends AIPromptHeaderMethods, AIPromptHeaderState, AIPromptHeaderData, AIPromptHeaderComputed, Vue2type {
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
declare const AIPromptHeaderVue2: ComponentOptions<Vue2type, DefaultData<AIPromptHeaderData>, DefaultMethods<AIPromptHeaderAll>, AIPromptHeaderComputed, RecordPropsDefinition<AIPromptHeaderProps>>;
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
declare const AIPromptHeader: DefineComponent<AIPromptHeaderProps, any, AIPromptHeaderData, AIPromptHeaderComputed, AIPromptHeaderMethods, {}, {}, {}, string, AIPromptHeaderProps, AIPromptHeaderProps, {}>;
|
|
71
|
-
export { AIPromptHeader, AIPromptHeaderVue2 };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AIPromptHeaderVue2 = exports.AIPromptHeader = 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
|
-
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
var AIPromptHeaderVue2 = {
|
|
18
|
-
name: 'KendoAIPromptHeader',
|
|
19
|
-
props: {
|
|
20
|
-
activeView: String,
|
|
21
|
-
toolbarItems: Array
|
|
22
|
-
},
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
setup: !isV3 ? undefined : function () {
|
|
25
|
-
var v3 = !!isV3;
|
|
26
|
-
return {
|
|
27
|
-
v3: v3
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
handleClick: function handleClick(viewName) {
|
|
32
|
-
this.$emit('activeviewchange', viewName);
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
render: function render(createElement) {
|
|
36
|
-
var _this2 = this;
|
|
37
|
-
var h = gh || createElement;
|
|
38
|
-
var _a = this.$props,
|
|
39
|
-
activeView = _a.activeView,
|
|
40
|
-
toolbarItems = _a.toolbarItems;
|
|
41
|
-
return h("div", {
|
|
42
|
-
"class": "k-prompt-header"
|
|
43
|
-
}, [
|
|
44
|
-
// @ts-ignore function children
|
|
45
|
-
h(kendo_vue_buttons_1.Toolbar, {
|
|
46
|
-
keyboardNavigation: false,
|
|
47
|
-
attrs: this.v3 ? undefined : {
|
|
48
|
-
keyboardNavigation: false,
|
|
49
|
-
role: "toolbar"
|
|
50
|
-
},
|
|
51
|
-
role: "toolbar",
|
|
52
|
-
"class": "k-toolbar-flat"
|
|
53
|
-
}, this.v3 ? function () {
|
|
54
|
-
return [toolbarItems.map(function (item) {
|
|
55
|
-
var _this = this;
|
|
56
|
-
var itemContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
57
|
-
h: h,
|
|
58
|
-
template: item.content,
|
|
59
|
-
defaultRendering: null,
|
|
60
|
-
additionalProps: {
|
|
61
|
-
item: item
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return item.content ? itemContent :
|
|
65
|
-
// @ts-ignore function children
|
|
66
|
-
h(kendo_vue_buttons_1.Button, {
|
|
67
|
-
type: 'button',
|
|
68
|
-
attrs: this.v3 ? undefined : {
|
|
69
|
-
type: 'button',
|
|
70
|
-
size: 'medium',
|
|
71
|
-
themeColor: 'primary',
|
|
72
|
-
fillMode: 'flat',
|
|
73
|
-
rounded: 'full',
|
|
74
|
-
title: item.buttonText,
|
|
75
|
-
svgIcon: item.buttonIcon,
|
|
76
|
-
"aria-hidden": "true"
|
|
77
|
-
},
|
|
78
|
-
key: item.name,
|
|
79
|
-
"class": (0, kendo_vue_common_1.classNames)('k-toolbar-item', {
|
|
80
|
-
'k-selected': activeView === item.name
|
|
81
|
-
}),
|
|
82
|
-
size: 'medium',
|
|
83
|
-
themeColor: 'primary',
|
|
84
|
-
fillMode: 'flat',
|
|
85
|
-
rounded: 'full',
|
|
86
|
-
title: item.buttonText,
|
|
87
|
-
svgIcon: item.buttonIcon,
|
|
88
|
-
"aria-hidden": "true",
|
|
89
|
-
onClick: function onClick() {
|
|
90
|
-
return _this.handleClick(item.name);
|
|
91
|
-
},
|
|
92
|
-
on: this.v3 ? undefined : {
|
|
93
|
-
"click": function onClick() {
|
|
94
|
-
return _this.handleClick(item.name);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, this.v3 ? function () {
|
|
98
|
-
return [item.buttonText];
|
|
99
|
-
} : [item.buttonText]);
|
|
100
|
-
}, _this2)];
|
|
101
|
-
} : [toolbarItems.map(function (item) {
|
|
102
|
-
var _this = this;
|
|
103
|
-
var itemContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
104
|
-
h: h,
|
|
105
|
-
template: item.content,
|
|
106
|
-
defaultRendering: null,
|
|
107
|
-
additionalProps: {
|
|
108
|
-
item: item
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
return item.content ? itemContent : h(kendo_vue_buttons_1.Button, {
|
|
112
|
-
type: 'button',
|
|
113
|
-
attrs: this.v3 ? undefined : {
|
|
114
|
-
type: 'button',
|
|
115
|
-
size: 'medium',
|
|
116
|
-
themeColor: 'primary',
|
|
117
|
-
fillMode: 'flat',
|
|
118
|
-
rounded: 'full',
|
|
119
|
-
title: item.buttonText,
|
|
120
|
-
svgIcon: item.buttonIcon,
|
|
121
|
-
"aria-hidden": "true"
|
|
122
|
-
},
|
|
123
|
-
key: item.name,
|
|
124
|
-
"class": (0, kendo_vue_common_1.classNames)('k-toolbar-item', {
|
|
125
|
-
'k-selected': activeView === item.name
|
|
126
|
-
}),
|
|
127
|
-
size: 'medium',
|
|
128
|
-
themeColor: 'primary',
|
|
129
|
-
fillMode: 'flat',
|
|
130
|
-
rounded: 'full',
|
|
131
|
-
title: item.buttonText,
|
|
132
|
-
svgIcon: item.buttonIcon,
|
|
133
|
-
"aria-hidden": "true",
|
|
134
|
-
onClick: function onClick() {
|
|
135
|
-
return _this.handleClick(item.name);
|
|
136
|
-
},
|
|
137
|
-
on: this.v3 ? undefined : {
|
|
138
|
-
"click": function onClick() {
|
|
139
|
-
return _this.handleClick(item.name);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, this.v3 ? function () {
|
|
143
|
-
return [item.buttonText];
|
|
144
|
-
} : [item.buttonText]);
|
|
145
|
-
}, _this2)])]);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
exports.AIPromptHeaderVue2 = AIPromptHeaderVue2;
|
|
149
|
-
/**
|
|
150
|
-
* @hidden
|
|
151
|
-
*/
|
|
152
|
-
var AIPromptHeader = AIPromptHeaderVue2;
|
|
153
|
-
exports.AIPromptHeader = AIPromptHeader;
|