@progress/kendo-vue-conversational-ui 7.0.0-develop.6 → 7.0.0-develop.7
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/ai-prompt/AIPrompt.js +1 -1
- package/ai-prompt/AIPrompt.mjs +17 -12
- package/ai-prompt/views/AIPromptView.js +2 -2
- package/ai-prompt/views/AIPromptView.mjs +49 -43
- package/chat/components/SuggestionGroup.js +1 -1
- package/chat/components/SuggestionGroup.mjs +23 -18
- package/dist/cdn/js/kendo-vue-conversational-ui.js +1 -1
- package/index.d.mts +40 -3
- package/index.d.ts +40 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
package/ai-prompt/AIPrompt.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("./AIPromptHeader.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("./AIPromptHeader.js"),n=require("./views/constants.js"),t=require("@progress/kendo-vue-common"),o=require("../package-metadata.js"),g=a.defineComponent({name:"KendoAIPrompt",props:{activeView:{type:String,required:!0},dir:String,toolbarItems:Array,outputs:Array,promptPlaceholder:String,streaming:Boolean,loading:Boolean,suggestionsView:{type:String,default:"classic"}},provide(){return{kendoAIPrompt:this.$data.contextState}},data(){return{showLicenseWatermark:!1,licenseMessage:"",contextState:{activeView:this.$props.activeView,streaming:this.$props.streaming,loading:this.$props.loading,onCancel:this.onCancel,onActiveViewChange:this.onActiveViewChange,onPromptRequest:this.onPromptRequest,onCommandExecute:this.onCommandExecute,onStateAction:this.onStateAction,suggestionsView:this.$props.suggestionsView}}},watch:{activeView(e){this.contextState.activeView=e},streaming(e){this.contextState.streaming=e},loading(e){this.contextState.loading=e}},methods:{onStateAction(e){this.contextState.activeView=e.activeView},onActiveViewChange(e){this.$emit("activeviewchange",e)},onPromptRequest(e,i){this.$emit("promptrequest",e,i)},onCommandExecute(e){this.$emit("commandexecute",e)},onCancel(){this.$emit("cancel")}},render(){t.validatePackage(o.packageMetadata),this.showLicenseWatermark=t.shouldShowValidationUI(o.packageMetadata),this.licenseMessage=t.getLicenseMessage(o.packageMetadata);const e=t.getDefaultSlots(this),{toolbarItems:i,dir:r}=this.$props,c=(i||[n.promptViewDefaults,n.outputViewDefaults]).map(s=>{const l=t.templateRendering.call(this,s.content,t.getListeners.call(this));return{...s,content:l}}),m=this.showLicenseWatermark?a.createVNode(t.WatermarkOverlay,{message:this.licenseMessage},null):null;return a.createVNode("div",{class:"k-prompt",dir:r},[a.createVNode(h.AIPromptHeader,{activeView:this.contextState.activeView,toolbarItems:c,onActiveviewchange:this.onActiveViewChange},null),e,m])}});exports.AIPrompt=g;
|
package/ai-prompt/AIPrompt.mjs
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import { defineComponent as m, createVNode as i } from "vue";
|
|
9
9
|
import { AIPromptHeader as h } from "./AIPromptHeader.mjs";
|
|
10
10
|
import { promptViewDefaults as l, outputViewDefaults as p } from "./views/constants.mjs";
|
|
11
|
-
import { validatePackage as
|
|
11
|
+
import { validatePackage as g, shouldShowValidationUI as d, getLicenseMessage as u, getDefaultSlots as w, templateRendering as v, getListeners as V, WatermarkOverlay as S } from "@progress/kendo-vue-common";
|
|
12
12
|
import { packageMetadata as o } from "../package-metadata.mjs";
|
|
13
|
-
const
|
|
13
|
+
const P = /* @__PURE__ */ m({
|
|
14
14
|
name: "KendoAIPrompt",
|
|
15
15
|
props: {
|
|
16
16
|
activeView: {
|
|
@@ -22,7 +22,11 @@ const $ = /* @__PURE__ */ m({
|
|
|
22
22
|
outputs: Array,
|
|
23
23
|
promptPlaceholder: String,
|
|
24
24
|
streaming: Boolean,
|
|
25
|
-
loading: Boolean
|
|
25
|
+
loading: Boolean,
|
|
26
|
+
suggestionsView: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "classic"
|
|
29
|
+
}
|
|
26
30
|
},
|
|
27
31
|
provide() {
|
|
28
32
|
return {
|
|
@@ -41,7 +45,8 @@ const $ = /* @__PURE__ */ m({
|
|
|
41
45
|
onActiveViewChange: this.onActiveViewChange,
|
|
42
46
|
onPromptRequest: this.onPromptRequest,
|
|
43
47
|
onCommandExecute: this.onCommandExecute,
|
|
44
|
-
onStateAction: this.onStateAction
|
|
48
|
+
onStateAction: this.onStateAction,
|
|
49
|
+
suggestionsView: this.$props.suggestionsView
|
|
45
50
|
}
|
|
46
51
|
};
|
|
47
52
|
},
|
|
@@ -74,29 +79,29 @@ const $ = /* @__PURE__ */ m({
|
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
render() {
|
|
77
|
-
|
|
82
|
+
g(o), this.showLicenseWatermark = d(o), this.licenseMessage = u(o);
|
|
78
83
|
const t = w(this), {
|
|
79
84
|
toolbarItems: e,
|
|
80
|
-
dir:
|
|
81
|
-
} = this.$props,
|
|
82
|
-
const c = v.call(this, a.content,
|
|
85
|
+
dir: s
|
|
86
|
+
} = this.$props, n = (e || [l, p]).map((a) => {
|
|
87
|
+
const c = v.call(this, a.content, V.call(this));
|
|
83
88
|
return {
|
|
84
89
|
...a,
|
|
85
90
|
content: c
|
|
86
91
|
};
|
|
87
|
-
}), r = this.showLicenseWatermark ? i(
|
|
92
|
+
}), r = this.showLicenseWatermark ? i(S, {
|
|
88
93
|
message: this.licenseMessage
|
|
89
94
|
}, null) : null;
|
|
90
95
|
return i("div", {
|
|
91
96
|
class: "k-prompt",
|
|
92
|
-
dir:
|
|
97
|
+
dir: s
|
|
93
98
|
}, [i(h, {
|
|
94
99
|
activeView: this.contextState.activeView,
|
|
95
|
-
toolbarItems:
|
|
100
|
+
toolbarItems: n,
|
|
96
101
|
onActiveviewchange: this.onActiveViewChange
|
|
97
102
|
}, null), t, r]);
|
|
98
103
|
}
|
|
99
104
|
});
|
|
100
105
|
export {
|
|
101
|
-
|
|
106
|
+
P as AIPrompt
|
|
102
107
|
};
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),
|
|
9
|
-
`);this.value=n+(s?" ":"")+r}},onSpeechStart(){},onSpeechEnd(){},getButtonDisabledState(){const e=this.$props.promptValue!==void 0?this.$props.promptValue:this.value;return!(e!=null&&e.trim())}},render(){const e="Generate",{promptSuggestions:r,enableSpeechToText:n}=this.$props,s=o.templateRendering.call(this,this.$props.promptInput,o.getListeners.call(this)),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),P=require("../AIPromptContent.js"),A=require("../AIPromptFooter.js"),k=require("./constants.js"),d=require("@progress/kendo-vue-inputs"),h=require("@progress/kendo-vue-buttons"),x=require("@progress/kendo-svg-icons"),R=require("./AIPromptViewRender.js"),b=require("../AIPromptExpander.js"),v=require("../../chat/components/SuggestionGroup.js"),o=require("@progress/kendo-vue-common");function m(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const q=t.defineComponent({name:"KendoAIPromptView",props:{promptInput:[Object,String],generateButton:[Object,String],promptValue:String,promptSuggestions:Array,enableSpeechToText:[Boolean,Object]},inject:{kendoAIPrompt:{default:null}},computed:{computedValue(){return this.$props.promptValue!==void 0?this.$props.promptValue:this.value}},data(){return{value:""}},methods:{handleOnRequest(){this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,this.computedValue),this.value=""},handleSuggestionSelect(e){this.value=e},onTextChange(e){this.value=e.value},onSpeechResult(e){if(e.isFinal&&e.alternatives.length>0){const r=e.alternatives[0].transcript,n=this.value,s=n&&!n.endsWith(" ")&&!n.endsWith(`
|
|
9
|
+
`);this.value=n+(s?" ":"")+r}},onSpeechStart(){},onSpeechEnd(){},getButtonDisabledState(){const e=this.$props.promptValue!==void 0?this.$props.promptValue:this.value;return!(e!=null&&e.trim())}},render(){const e="Generate",{promptSuggestions:r,enableSpeechToText:n}=this.$props,s=o.templateRendering.call(this,this.$props.promptInput,o.getListeners.call(this)),g=()=>n?t.createVNode(t.Fragment,null,[t.createVNode(d.InputSeparator,{orientation:"horizontal"},null),t.createVNode("div",{class:"k-input-suffix k-input-suffix-horizontal"},[t.createVNode(h.SpeechToTextButton,t.mergeProps({fillMode:"flat",onStart:this.onSpeechStart,onEnd:this.onSpeechEnd,onResult:this.onSpeechResult},typeof n=="object"?n:{}),null)])]):null,S=t.createVNode(d.TextArea,{value:this.computedValue,onInput:this.onTextChange,placeholder:"Ask or generate content with AI ...",rows:2,class:"!k-flex-col",inputSuffix:g},null),f=o.getTemplate.call(this,{h:t.h,template:s,defaultRendering:S}),V=o.templateRendering.call(this,this.$props.generateButton,o.getListeners.call(this)),I=t.createVNode(h.Button,{type:"button",themeColor:"primary",fillMode:"solid","aria-hidden":"true",rounded:"full",size:"medium",onClick:this.handleOnRequest,disabled:this.getButtonDisabledState(),title:"Generate",svgIcon:x.sparklesIcon},m(e)?e:{default:()=>[e]}),i=o.getTemplate.call(this,{h:t.h,template:V,defaultRendering:I});return t.createVNode(R.AIPromptViewRender,{name:k.promptViewDefaults.name},{default:()=>{var l,p;return[t.createVNode(P.AIPromptContent,{streaming:(l=this.kendoAIPrompt)==null?void 0:l.streaming,onCancel:(p=this.kendoAIPrompt)==null?void 0:p.onCancel},{default:()=>[f,r&&r.length>0&&t.createVNode(b.AIPromptExpander,{title:"Prompt Suggestions"},{default:()=>{var c;return[t.createVNode(v.SuggestionGroup,{suggestionsView:(c=this.kendoAIPrompt)==null?void 0:c.suggestionsView,suggestions:r.map((u,a)=>({id:a,text:u,description:u})),onSuggestionClick:(u,a)=>this.handleSuggestionSelect(a.text)},null)]}})]}),t.createVNode(A.AIPromptFooter,null,m(i)?i:{default:()=>[i]})]}})}});exports.AIPromptView=q;
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { AIPromptContent as
|
|
10
|
-
import { AIPromptFooter as
|
|
11
|
-
import { promptViewDefaults as
|
|
12
|
-
import { TextArea as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { sparklesIcon as
|
|
15
|
-
import { AIPromptViewRender as
|
|
16
|
-
import { AIPromptExpander as
|
|
17
|
-
import { SuggestionGroup as
|
|
18
|
-
import { templateRendering as
|
|
19
|
-
function
|
|
20
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
8
|
+
import { defineComponent as P, createVNode as e, h as m, Fragment as V, mergeProps as R, isVNode as b } from "vue";
|
|
9
|
+
import { AIPromptContent as k } from "../AIPromptContent.mjs";
|
|
10
|
+
import { AIPromptFooter as v } from "../AIPromptFooter.mjs";
|
|
11
|
+
import { promptViewDefaults as T } from "./constants.mjs";
|
|
12
|
+
import { TextArea as B, InputSeparator as C } from "@progress/kendo-vue-inputs";
|
|
13
|
+
import { Button as j, SpeechToTextButton as w } from "@progress/kendo-vue-buttons";
|
|
14
|
+
import { sparklesIcon as O } from "@progress/kendo-svg-icons";
|
|
15
|
+
import { AIPromptViewRender as $ } from "./AIPromptViewRender.mjs";
|
|
16
|
+
import { AIPromptExpander as y } from "../AIPromptExpander.mjs";
|
|
17
|
+
import { SuggestionGroup as D } from "../../chat/components/SuggestionGroup.mjs";
|
|
18
|
+
import { templateRendering as c, getListeners as d, getTemplate as h } from "@progress/kendo-vue-common";
|
|
19
|
+
function g(t) {
|
|
20
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const H = /* @__PURE__ */ P({
|
|
23
23
|
name: "KendoAIPromptView",
|
|
24
24
|
props: {
|
|
25
25
|
promptInput: [Object, String],
|
|
@@ -73,25 +73,27 @@ const K = /* @__PURE__ */ A({
|
|
|
73
73
|
const t = "Generate", {
|
|
74
74
|
promptSuggestions: o,
|
|
75
75
|
enableSpeechToText: n
|
|
76
|
-
} = this.$props, r =
|
|
76
|
+
} = this.$props, r = c.call(this, this.$props.promptInput, d.call(this)), f = () => n ? e(V, null, [e(C, {
|
|
77
|
+
orientation: "horizontal"
|
|
78
|
+
}, null), e("div", {
|
|
77
79
|
class: "k-input-suffix k-input-suffix-horizontal"
|
|
78
|
-
}, [e(
|
|
80
|
+
}, [e(w, R({
|
|
79
81
|
fillMode: "flat",
|
|
80
82
|
onStart: this.onSpeechStart,
|
|
81
83
|
onEnd: this.onSpeechEnd,
|
|
82
84
|
onResult: this.onSpeechResult
|
|
83
|
-
}, typeof n == "object" ? n : {}), null)]) : null,
|
|
85
|
+
}, typeof n == "object" ? n : {}), null)])]) : null, S = e(B, {
|
|
84
86
|
value: this.computedValue,
|
|
85
87
|
onInput: this.onTextChange,
|
|
86
88
|
placeholder: "Ask or generate content with AI ...",
|
|
87
89
|
rows: 2,
|
|
88
90
|
class: "!k-flex-col",
|
|
89
91
|
inputSuffix: f
|
|
90
|
-
}, null),
|
|
91
|
-
h:
|
|
92
|
+
}, null), I = h.call(this, {
|
|
93
|
+
h: m,
|
|
92
94
|
template: r,
|
|
93
|
-
defaultRendering:
|
|
94
|
-
}),
|
|
95
|
+
defaultRendering: S
|
|
96
|
+
}), x = c.call(this, this.$props.generateButton, d.call(this)), A = e(j, {
|
|
95
97
|
type: "button",
|
|
96
98
|
themeColor: "primary",
|
|
97
99
|
fillMode: "solid",
|
|
@@ -101,36 +103,40 @@ const K = /* @__PURE__ */ A({
|
|
|
101
103
|
onClick: this.handleOnRequest,
|
|
102
104
|
disabled: this.getButtonDisabledState(),
|
|
103
105
|
title: "Generate",
|
|
104
|
-
svgIcon:
|
|
105
|
-
},
|
|
106
|
+
svgIcon: O
|
|
107
|
+
}, g(t) ? t : {
|
|
106
108
|
default: () => [t]
|
|
107
|
-
}), i =
|
|
108
|
-
h:
|
|
109
|
-
template:
|
|
110
|
-
defaultRendering:
|
|
109
|
+
}), i = h.call(this, {
|
|
110
|
+
h: m,
|
|
111
|
+
template: x,
|
|
112
|
+
defaultRendering: A
|
|
111
113
|
});
|
|
112
|
-
return e(
|
|
113
|
-
name:
|
|
114
|
+
return e($, {
|
|
115
|
+
name: T.name
|
|
114
116
|
}, {
|
|
115
117
|
default: () => {
|
|
116
|
-
var
|
|
117
|
-
return [e(
|
|
118
|
-
streaming: (
|
|
118
|
+
var l, a;
|
|
119
|
+
return [e(k, {
|
|
120
|
+
streaming: (l = this.kendoAIPrompt) == null ? void 0 : l.streaming,
|
|
119
121
|
onCancel: (a = this.kendoAIPrompt) == null ? void 0 : a.onCancel
|
|
120
122
|
}, {
|
|
121
|
-
default: () => [
|
|
123
|
+
default: () => [I, o && o.length > 0 && e(y, {
|
|
122
124
|
title: "Prompt Suggestions"
|
|
123
125
|
}, {
|
|
124
|
-
default: () =>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
default: () => {
|
|
127
|
+
var u;
|
|
128
|
+
return [e(D, {
|
|
129
|
+
suggestionsView: (u = this.kendoAIPrompt) == null ? void 0 : u.suggestionsView,
|
|
130
|
+
suggestions: o.map((p, s) => ({
|
|
131
|
+
id: s,
|
|
132
|
+
text: p,
|
|
133
|
+
description: p
|
|
134
|
+
})),
|
|
135
|
+
onSuggestionClick: (p, s) => this.handleSuggestionSelect(s.text)
|
|
136
|
+
}, null)];
|
|
137
|
+
}
|
|
132
138
|
})]
|
|
133
|
-
}), e(
|
|
139
|
+
}), e(v, null, g(i) ? i : {
|
|
134
140
|
default: () => [i]
|
|
135
141
|
})];
|
|
136
142
|
}
|
|
@@ -138,5 +144,5 @@ const K = /* @__PURE__ */ A({
|
|
|
138
144
|
}
|
|
139
145
|
});
|
|
140
146
|
export {
|
|
141
|
-
|
|
147
|
+
H as AIPromptView
|
|
142
148
|
};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("@progress/kendo-vue-common"),d=t.defineComponent({name:"KendoSuggestionGroup",props:{suggestions:{type:Array,required:!0},onSuggestionClick:{type:Function,required:!0},suggestionsView:{type:String,default:"classic"}},methods:{handleSuggestionClick(i,o){o.disabled||this.onSuggestionClick(i,o)},handleKeyDown(i,o){(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.onSuggestionClick(i,o))}},render(){const{suggestions:i,suggestionsView:o}=this.$props,n=()=>i.map(e=>t.createVNode("span",{role:"button",tabindex:e.disabled?-1:0,"aria-label":e.description,"aria-disabled":e.disabled,onClick:s=>!e.disabled&&this.handleSuggestionClick(s,e),onKeydown:s=>!e.disabled&&this.handleKeyDown(s,e),key:e.id,title:e.description,class:r.classNames(o==="classic"?"k-prompt-suggestion":"k-suggestion",{"k-disabled":e.disabled})},[e.text]));return o==="classic"?n():t.createVNode("div",{role:"group",class:"k-suggestion-group"},[n()])}});exports.SuggestionGroup=d;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { classNames as
|
|
10
|
-
const
|
|
8
|
+
import { defineComponent as d, createVNode as r } from "vue";
|
|
9
|
+
import { classNames as n } from "@progress/kendo-vue-common";
|
|
10
|
+
const c = /* @__PURE__ */ d({
|
|
11
11
|
name: "KendoSuggestionGroup",
|
|
12
12
|
props: {
|
|
13
13
|
suggestions: {
|
|
@@ -17,38 +17,43 @@ const n = /* @__PURE__ */ r({
|
|
|
17
17
|
onSuggestionClick: {
|
|
18
18
|
type: Function,
|
|
19
19
|
required: !0
|
|
20
|
+
},
|
|
21
|
+
suggestionsView: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "classic"
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
methods: {
|
|
23
|
-
handleSuggestionClick(i,
|
|
24
|
-
|
|
27
|
+
handleSuggestionClick(i, s) {
|
|
28
|
+
s.disabled || this.onSuggestionClick(i, s);
|
|
25
29
|
},
|
|
26
|
-
handleKeyDown(i,
|
|
27
|
-
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), this.onSuggestionClick(i,
|
|
30
|
+
handleKeyDown(i, s) {
|
|
31
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), this.onSuggestionClick(i, s));
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
render() {
|
|
31
35
|
const {
|
|
32
|
-
suggestions: i
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
role: "group",
|
|
36
|
-
class: "k-suggestion-group"
|
|
37
|
-
}, [i.map((e) => o("span", {
|
|
36
|
+
suggestions: i,
|
|
37
|
+
suggestionsView: s
|
|
38
|
+
} = this.$props, t = () => i.map((e) => r("span", {
|
|
38
39
|
role: "button",
|
|
39
40
|
tabindex: e.disabled ? -1 : 0,
|
|
40
41
|
"aria-label": e.description,
|
|
41
42
|
"aria-disabled": e.disabled,
|
|
42
|
-
onClick: (
|
|
43
|
-
onKeydown: (
|
|
43
|
+
onClick: (o) => !e.disabled && this.handleSuggestionClick(o, e),
|
|
44
|
+
onKeydown: (o) => !e.disabled && this.handleKeyDown(o, e),
|
|
44
45
|
key: e.id,
|
|
45
46
|
title: e.description,
|
|
46
|
-
class:
|
|
47
|
+
class: n(s === "classic" ? "k-prompt-suggestion" : "k-suggestion", {
|
|
47
48
|
"k-disabled": e.disabled
|
|
48
49
|
})
|
|
49
|
-
}, [e.text]))
|
|
50
|
+
}, [e.text]));
|
|
51
|
+
return s === "classic" ? t() : r("div", {
|
|
52
|
+
role: "group",
|
|
53
|
+
class: "k-suggestion-group"
|
|
54
|
+
}, [t()]);
|
|
50
55
|
}
|
|
51
56
|
});
|
|
52
57
|
export {
|
|
53
|
-
|
|
58
|
+
c as SuggestionGroup
|
|
54
59
|
};
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-vue-buttons"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-inputs"),require("@progress/kendo-vue-layout"),require("@progress/kendo-vue-intl")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-vue-buttons","@progress/kendo-svg-icons","@progress/kendo-vue-inputs","@progress/kendo-vue-layout","@progress/kendo-vue-intl"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueConversationalUi={},e.Vue,e.KendoVueCommon,e.KendoVueButtons,e.KendoSVGIcons,e.KendoVueInputs,e.KendoVueLayout,e.KendoVueIntl)}(this,(function(e,t,o,n,i,a,r,s){"use strict";function l(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const d=t.defineComponent({name:"KendoAIPromptHeader",props:{activeView:String,toolbarItems:Array,onActiveviewchange:Function},methods:{handleClick(e){this.$emit("activeviewchange",e)}},render(){let e;const{activeView:i,toolbarItems:a}=this.$props;return t.createVNode("div",{class:"k-prompt-header"},[t.createVNode(n.Toolbar,{overflow:"none",keyboardNavigation:!1,class:"k-toolbar-flat"},l(e=a.map((function(e){const a=o.getTemplate.call(this,{h:t.h,template:e.content,defaultRendering:null,additionalProps:{item:e}});return e.content?a:t.createVNode(n.Button,{type:"button",key:e.name,class:o.classNames("k-toolbar-item",{"k-selected":i===e.name}),size:"medium",themeColor:"primary",fillMode:"flat",rounded:"full",title:e.buttonText,svgIcon:e.buttonIcon,onClick:()=>this.handleClick(e.name)},{default:()=>[e.buttonText]})}),this))?e:{default:()=>[e]})])}}),u={name:"Output view",buttonText:"Output",buttonIcon:i.commentIcon},c={name:"Commands view",buttonIcon:i.moreHorizontalIcon},p={name:"prompt-view",buttonText:"Ask AI",buttonIcon:i.sparklesIcon},m={name:"@progress/kendo-vue-conversational-ui",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"7.0.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},h=t.defineComponent({name:"KendoAIPrompt",props:{activeView:{type:String,required:!0},dir:String,toolbarItems:Array,outputs:Array,promptPlaceholder:String,streaming:Boolean,loading:Boolean},provide(){return{kendoAIPrompt:this.$data.contextState}},data(){return{showLicenseWatermark:!1,licenseMessage:"",contextState:{activeView:this.$props.activeView,streaming:this.$props.streaming,loading:this.$props.loading,onCancel:this.onCancel,onActiveViewChange:this.onActiveViewChange,onPromptRequest:this.onPromptRequest,onCommandExecute:this.onCommandExecute,onStateAction:this.onStateAction}}},watch:{activeView(e){this.contextState.activeView=e},streaming(e){this.contextState.streaming=e},loading(e){this.contextState.loading=e}},methods:{onStateAction(e){this.contextState.activeView=e.activeView},onActiveViewChange(e){this.$emit("activeviewchange",e)},onPromptRequest(e,t){this.$emit("promptrequest",e,t)},onCommandExecute(e){this.$emit("commandexecute",e)},onCancel(){this.$emit("cancel")}},render(){o.validatePackage(m),this.showLicenseWatermark=o.shouldShowValidationUI(m),this.licenseMessage=o.getLicenseMessage(m);const e=o.getDefaultSlots(this),{toolbarItems:n,dir:i}=this.$props,a=(n||[p,u]).map((e=>{const t=o.templateRendering.call(this,e.content,o.getListeners.call(this));return{...e,content:t}})),r=this.showLicenseWatermark?t.createVNode(o.WatermarkOverlay,{message:this.licenseMessage},null):null;return t.createVNode("div",{class:"k-prompt",dir:i},[t.createVNode(d,{activeView:this.contextState.activeView,toolbarItems:a,onActiveviewchange:this.onActiveViewChange},null),e,r])}}),g=t.defineComponent({name:"KendoAIPromptFooter",render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{class:"k-prompt-footer"},[t.createVNode("div",{class:"k-actions k-actions-start k-actions-horizontal k-prompt-actions"},[e])])}}),v=t.defineComponent({name:"KendoAIPromptContent",props:{onCancel:Function,streaming:Boolean},inject:{kendoAIPrompt:{default:null}},computed:{showFloatingButton(){var e;const t=(null==(e=this.kendoAIPrompt)?void 0:e.activeView)===u.name;return this.streaming&&t}},methods:{handleKeyDown(e){"Escape"===e.key&&this.showFloatingButton&&this.onCancel&&(e.preventDefault(),this.$props.onCancel())}},render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{class:"k-prompt-content",onKeydown:this.handleKeyDown},[this.showFloatingButton&&t.createVNode(n.FloatingActionButton,{onClick:this.onCancel,svgIcon:i.stopSmIcon,size:"small",positionMode:"absolute",class:"k-prompt-stop-fab k-generating"},null),t.createVNode("div",{class:"k-prompt-view"},[e])])}}),k=t.defineComponent({name:"KendoAIPromptViewRender",inheritAttrs:!1,props:{name:String},inject:{kendoAIPrompt:{default:null}},render(){const e=o.getDefaultSlots(this);return this.kendoAIPrompt.activeView===this.$props.name?e:null}});function f(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const V=t.defineComponent({name:"KendoAIPromptExpander",props:{title:String},data:()=>({expanded:!0}),methods:{buttonClick(){this.expanded=!this.expanded}},render(){const e=o.getDefaultSlots(this),{title:a}=this.$props;return t.createVNode("div",{class:"k-prompt-expander"},[t.createVNode(n.Button,{type:"button",fillMode:"flat",svgIcon:this.expanded?i.chevronUpIcon:i.chevronDownIcon,title:a,onClick:this.buttonClick},f(a)?a:{default:()=>[a]}),this.expanded&&t.createVNode("div",{class:"k-prompt-expander-content"},[e])])}}),I=t.defineComponent({name:"KendoSuggestionGroup",props:{suggestions:{type:Array,required:!0},onSuggestionClick:{type:Function,required:!0}},methods:{handleSuggestionClick(e,t){t.disabled||this.onSuggestionClick(e,t)},handleKeyDown(e,t){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),this.onSuggestionClick(e,t))}},render(){const{suggestions:e}=this.$props;return t.createVNode("div",{role:"group",class:"k-suggestion-group"},[e.map((e=>t.createVNode("span",{role:"button",tabindex:e.disabled?-1:0,"aria-label":e.description,"aria-disabled":e.disabled,onClick:t=>!e.disabled&&this.handleSuggestionClick(t,e),onKeydown:t=>!e.disabled&&this.handleKeyDown(t,e),key:e.id,title:e.description,class:o.classNames("k-suggestion",{"k-disabled":e.disabled})},[e.text])))])}});function C(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const y=t.defineComponent({name:"KendoAIPromptView",props:{promptInput:[Object,String],generateButton:[Object,String],promptValue:String,promptSuggestions:Array,enableSpeechToText:[Boolean,Object]},inject:{kendoAIPrompt:{default:null}},computed:{computedValue(){return void 0!==this.$props.promptValue?this.$props.promptValue:this.value}},data:()=>({value:""}),methods:{handleOnRequest(){this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,this.computedValue),this.value=""},handleSuggestionSelect(e){this.value=e},onTextChange(e){this.value=e.value},onSpeechResult(e){if(e.isFinal&&e.alternatives.length>0){const t=e.alternatives[0].transcript,o=this.value,n=o&&!o.endsWith(" ")&&!o.endsWith("\n");this.value=o+(n?" ":"")+t}},onSpeechStart(){},onSpeechEnd(){},getButtonDisabledState(){const e=void 0!==this.$props.promptValue?this.$props.promptValue:this.value;return!(null!=e&&e.trim())}},render(){const e="Generate",{promptSuggestions:r,enableSpeechToText:s}=this.$props,l=o.templateRendering.call(this,this.$props.promptInput,o.getListeners.call(this)),d=t.createVNode(a.TextArea,{value:this.computedValue,onInput:this.onTextChange,placeholder:"Ask or generate content with AI ...",rows:2,class:"!k-flex-col",inputSuffix:()=>s?t.createVNode("div",{class:"k-input-suffix k-input-suffix-horizontal"},[t.createVNode(n.SpeechToTextButton,t.mergeProps({fillMode:"flat",onStart:this.onSpeechStart,onEnd:this.onSpeechEnd,onResult:this.onSpeechResult},"object"==typeof s?s:{}),null)]):null},null),u=o.getTemplate.call(this,{h:t.h,template:l,defaultRendering:d}),c=o.templateRendering.call(this,this.$props.generateButton,o.getListeners.call(this)),m=t.createVNode(n.Button,{type:"button",themeColor:"primary",fillMode:"solid","aria-hidden":"true",rounded:"full",size:"medium",onClick:this.handleOnRequest,disabled:this.getButtonDisabledState(),title:"Generate",svgIcon:i.sparklesIcon},C(e)?e:{default:()=>[e]}),h=o.getTemplate.call(this,{h:t.h,template:c,defaultRendering:m});return t.createVNode(k,{name:p.name},{default:()=>{var e,o;return[t.createVNode(v,{streaming:null==(e=this.kendoAIPrompt)?void 0:e.streaming,onCancel:null==(o=this.kendoAIPrompt)?void 0:o.onCancel},{default:()=>[u,r&&r.length>0&&t.createVNode(V,{title:"Prompt Suggestions"},{default:()=>[t.createVNode(I,{suggestions:r.map(((e,t)=>({id:t,text:e,description:e}))),onSuggestionClick:(e,t)=>this.handleSuggestionSelect(t.text)},null)]})]}),t.createVNode(g,null,C(h)?h:{default:()=>[h]})]}})}}),b="avatar.alt",N="messageList.ariaLabel",A="aIPrompt.noOutputs",w={[b]:"Avatar",[N]:"Message list",[A]:"No output from Ai available"};function S(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}let P=function(e){return e.positive="positive",e.negative="negative",e}({});const x=t.defineComponent({name:"KendoAIPromptOutputView",emits:{copy:null,retry:null,rating:null},props:{outputs:Array,outputCard:Object,showOutputRating:Boolean},inject:{kendoAIPrompt:{default:null},kendoLocalizationService:{default:null}},data:()=>({copiedIndex:-1,copyButtonIcon:i.copyIcon,contentRef:null}),methods:{retryPrompt(e){this.$emit("retry",e),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,e.prompt,{...e,isRetry:!0}),this.scrollToTopOutput()},copyToClipboard(e,t){null!=e&&e.responseContent&&navigator.clipboard.writeText(e.responseContent),this.copiedIndex=t,this.copyButtonIcon=i.checkIcon,this.$emit("copy",null==e?void 0:e.responseContent),setTimeout((()=>{this.copyButtonIcon=i.copyIcon,this.copiedIndex=-1}),1e3)},outputRating(e,t){this.$emit("rating",e,t),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,e.prompt,{...e,ratingType:t,isRetry:!1}),this.scrollToTopOutput()},scrollToTopOutput(){var e,t;null==(t=null==(e=this.contentRef)?void 0:e.scrollTo)||t.call(e,{top:0,behavior:"smooth"})}},render(){let e;const{outputs:o,showOutputRating:a,outputCard:l}=this.$props,d=s.provideLocalizationService(this),{header:c,body:p,actions:m}=l||{},h=t.createVNode(r.Card,null,{default:()=>[t.createVNode(r.CardHeader,null,{default:()=>[t.createVNode(r.CardTitle,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"200px"}},null)]}),t.createVNode(r.CardSubtitle,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),t.createVNode(r.CardBody,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-rect k-skeleton-pulse",style:{height:"80px"}},null)]}),t.createVNode(r.CardActions,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),g=null==o?void 0:o.map(((e,o)=>t.createVNode(r.Card,{key:`${e.id}_${o}`,class:e.class},{default:()=>[t.createVNode(r.CardHeader,null,{default:()=>[c?c(e):t.createVNode(t.Fragment,null,[e.title&&t.createVNode(r.CardTitle,null,{default:()=>[e.title]}),e.subTitle&&t.createVNode(r.CardSubtitle,null,{default:()=>[e.subTitle]})])]}),t.createVNode(r.CardBody,null,{default:()=>[p?p(e):e.responseContent]}),t.createVNode(r.CardActions,null,{default:()=>[m?m(e):t.createVNode(t.Fragment,null,[t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"primary",fillMode:"flat",rounded:"medium",title:"Copy",svgIcon:this.copiedIndex===o?this.copyButtonIcon:i.copyIcon,"aria-hidden":"true",onClick:()=>this.copyToClipboard(e,o)},{default:()=>["Copy"]}),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"base",fillMode:"flat",rounded:"medium",title:"Retry",svgIcon:i.arrowRotateCwIcon,"aria-hidden":"true",onClick:()=>this.retryPrompt(e)},{default:()=>["Retry"]}),a&&t.createVNode(t.Fragment,null,[t.createVNode("span",{class:"k-spacer"},null),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"positive"===e.ratingType?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate up",svgIcon:i.thumbUpOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(e,"positive")},null),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"negative"===e.ratingType?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate down",svgIcon:i.thumbDownOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(e,"negative")},null)])])]})]}))),f=t.createVNode(r.Card,null,{default:()=>[t.createVNode(r.CardBody,null,S(e=d.toLanguageString(A,w[A]))?e:{default:()=>[e]})]});return t.createVNode(k,{name:u.name},{default:()=>{var e,o;return[t.createVNode(v,{ref:e=>this.contentRef=e,streaming:null==(e=this.kendoAIPrompt)?void 0:e.streaming,onCancel:null==(o=this.kendoAIPrompt)?void 0:o.onCancel},{default:()=>{var e,o;return[t.createVNode("div",{class:"k-card-list"},[(null==(e=this.kendoAIPrompt)?void 0:e.loading)&&h,g,(!g||0===g.length)&&!(null!=(o=this.kendoAIPrompt)&&o.loading)&&f])]}})]}})}}),R=t.defineComponent({name:"KendoAIPromptCommandsView",props:{commands:Array},inject:{kendoAIPrompt:{default:null}},render(){const{commands:e}=this.$props,o=e=>{var t;const o=e.target;(null==(t=o.items)||!t.length)&&this.kendoAIPrompt.onCommandExecute&&(this.$emit("commandexecute",o),this.kendoAIPrompt.onCommandExecute.call(null,o))};return t.createVNode(k,{name:c.name},{default:()=>{var n,i;return[t.createVNode(v,{streaming:null==(n=this.kendoAIPrompt)?void 0:n.streaming,onCancel:null==(i=this.kendoAIPrompt)?void 0:i.onCancel},{default:()=>[t.createVNode("div",{class:"k-prompt-view"},[t.createVNode(r.PanelBar,{onSelect:o,items:e},null)])]})]}})}});e.AIPrompt=h,e.AIPromptCommandsView=R,e.AIPromptContent=v,e.AIPromptFooter=g,e.AIPromptHeader=d,e.AIPromptOutputRating=P,e.AIPromptOutputView=x,e.AIPromptView=y,e.AIPromptViewRender=k,e.SuggestionGroup=I,e.commandsViewDefaults=c,e.outputViewDefaults=u,e.promptViewDefaults=p}));
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-vue-buttons"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-inputs"),require("@progress/kendo-vue-layout"),require("@progress/kendo-vue-intl")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-vue-buttons","@progress/kendo-svg-icons","@progress/kendo-vue-inputs","@progress/kendo-vue-layout","@progress/kendo-vue-intl"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueConversationalUi={},e.Vue,e.KendoVueCommon,e.KendoVueButtons,e.KendoSVGIcons,e.KendoVueInputs,e.KendoVueLayout,e.KendoVueIntl)}(this,(function(e,t,o,n,i,a,s,r){"use strict";function l(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const d=t.defineComponent({name:"KendoAIPromptHeader",props:{activeView:String,toolbarItems:Array,onActiveviewchange:Function},methods:{handleClick(e){this.$emit("activeviewchange",e)}},render(){let e;const{activeView:i,toolbarItems:a}=this.$props;return t.createVNode("div",{class:"k-prompt-header"},[t.createVNode(n.Toolbar,{overflow:"none",keyboardNavigation:!1,class:"k-toolbar-flat"},l(e=a.map((function(e){const a=o.getTemplate.call(this,{h:t.h,template:e.content,defaultRendering:null,additionalProps:{item:e}});return e.content?a:t.createVNode(n.Button,{type:"button",key:e.name,class:o.classNames("k-toolbar-item",{"k-selected":i===e.name}),size:"medium",themeColor:"primary",fillMode:"flat",rounded:"full",title:e.buttonText,svgIcon:e.buttonIcon,onClick:()=>this.handleClick(e.name)},{default:()=>[e.buttonText]})}),this))?e:{default:()=>[e]})])}}),u={name:"Output view",buttonText:"Output",buttonIcon:i.commentIcon},c={name:"Commands view",buttonIcon:i.moreHorizontalIcon},p={name:"prompt-view",buttonText:"Ask AI",buttonIcon:i.sparklesIcon},m={name:"@progress/kendo-vue-conversational-ui",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"7.0.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},h=t.defineComponent({name:"KendoAIPrompt",props:{activeView:{type:String,required:!0},dir:String,toolbarItems:Array,outputs:Array,promptPlaceholder:String,streaming:Boolean,loading:Boolean,suggestionsView:{type:String,default:"classic"}},provide(){return{kendoAIPrompt:this.$data.contextState}},data(){return{showLicenseWatermark:!1,licenseMessage:"",contextState:{activeView:this.$props.activeView,streaming:this.$props.streaming,loading:this.$props.loading,onCancel:this.onCancel,onActiveViewChange:this.onActiveViewChange,onPromptRequest:this.onPromptRequest,onCommandExecute:this.onCommandExecute,onStateAction:this.onStateAction,suggestionsView:this.$props.suggestionsView}}},watch:{activeView(e){this.contextState.activeView=e},streaming(e){this.contextState.streaming=e},loading(e){this.contextState.loading=e}},methods:{onStateAction(e){this.contextState.activeView=e.activeView},onActiveViewChange(e){this.$emit("activeviewchange",e)},onPromptRequest(e,t){this.$emit("promptrequest",e,t)},onCommandExecute(e){this.$emit("commandexecute",e)},onCancel(){this.$emit("cancel")}},render(){o.validatePackage(m),this.showLicenseWatermark=o.shouldShowValidationUI(m),this.licenseMessage=o.getLicenseMessage(m);const e=o.getDefaultSlots(this),{toolbarItems:n,dir:i}=this.$props,a=(n||[p,u]).map((e=>{const t=o.templateRendering.call(this,e.content,o.getListeners.call(this));return{...e,content:t}})),s=this.showLicenseWatermark?t.createVNode(o.WatermarkOverlay,{message:this.licenseMessage},null):null;return t.createVNode("div",{class:"k-prompt",dir:i},[t.createVNode(d,{activeView:this.contextState.activeView,toolbarItems:a,onActiveviewchange:this.onActiveViewChange},null),e,s])}}),g=t.defineComponent({name:"KendoAIPromptFooter",render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{class:"k-prompt-footer"},[t.createVNode("div",{class:"k-actions k-actions-start k-actions-horizontal k-prompt-actions"},[e])])}}),v=t.defineComponent({name:"KendoAIPromptContent",props:{onCancel:Function,streaming:Boolean},inject:{kendoAIPrompt:{default:null}},computed:{showFloatingButton(){var e;const t=(null==(e=this.kendoAIPrompt)?void 0:e.activeView)===u.name;return this.streaming&&t}},methods:{handleKeyDown(e){"Escape"===e.key&&this.showFloatingButton&&this.onCancel&&(e.preventDefault(),this.$props.onCancel())}},render(){const e=o.getDefaultSlots(this);return t.createVNode("div",{class:"k-prompt-content",onKeydown:this.handleKeyDown},[this.showFloatingButton&&t.createVNode(n.FloatingActionButton,{onClick:this.onCancel,svgIcon:i.stopSmIcon,size:"small",positionMode:"absolute",class:"k-prompt-stop-fab k-generating"},null),t.createVNode("div",{class:"k-prompt-view"},[e])])}}),k=t.defineComponent({name:"KendoAIPromptViewRender",inheritAttrs:!1,props:{name:String},inject:{kendoAIPrompt:{default:null}},render(){const e=o.getDefaultSlots(this);return this.kendoAIPrompt.activeView===this.$props.name?e:null}});function f(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const V=t.defineComponent({name:"KendoAIPromptExpander",props:{title:String},data:()=>({expanded:!0}),methods:{buttonClick(){this.expanded=!this.expanded}},render(){const e=o.getDefaultSlots(this),{title:a}=this.$props;return t.createVNode("div",{class:"k-prompt-expander"},[t.createVNode(n.Button,{type:"button",fillMode:"flat",svgIcon:this.expanded?i.chevronUpIcon:i.chevronDownIcon,title:a,onClick:this.buttonClick},f(a)?a:{default:()=>[a]}),this.expanded&&t.createVNode("div",{class:"k-prompt-expander-content"},[e])])}}),I=t.defineComponent({name:"KendoSuggestionGroup",props:{suggestions:{type:Array,required:!0},onSuggestionClick:{type:Function,required:!0},suggestionsView:{type:String,default:"classic"}},methods:{handleSuggestionClick(e,t){t.disabled||this.onSuggestionClick(e,t)},handleKeyDown(e,t){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),this.onSuggestionClick(e,t))}},render(){const{suggestions:e,suggestionsView:n}=this.$props,i=()=>e.map((e=>t.createVNode("span",{role:"button",tabindex:e.disabled?-1:0,"aria-label":e.description,"aria-disabled":e.disabled,onClick:t=>!e.disabled&&this.handleSuggestionClick(t,e),onKeydown:t=>!e.disabled&&this.handleKeyDown(t,e),key:e.id,title:e.description,class:o.classNames("classic"===n?"k-prompt-suggestion":"k-suggestion",{"k-disabled":e.disabled})},[e.text])));return"classic"===n?i():t.createVNode("div",{role:"group",class:"k-suggestion-group"},[i()])}});function C(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const y=t.defineComponent({name:"KendoAIPromptView",props:{promptInput:[Object,String],generateButton:[Object,String],promptValue:String,promptSuggestions:Array,enableSpeechToText:[Boolean,Object]},inject:{kendoAIPrompt:{default:null}},computed:{computedValue(){return void 0!==this.$props.promptValue?this.$props.promptValue:this.value}},data:()=>({value:""}),methods:{handleOnRequest(){this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,this.computedValue),this.value=""},handleSuggestionSelect(e){this.value=e},onTextChange(e){this.value=e.value},onSpeechResult(e){if(e.isFinal&&e.alternatives.length>0){const t=e.alternatives[0].transcript,o=this.value,n=o&&!o.endsWith(" ")&&!o.endsWith("\n");this.value=o+(n?" ":"")+t}},onSpeechStart(){},onSpeechEnd(){},getButtonDisabledState(){const e=void 0!==this.$props.promptValue?this.$props.promptValue:this.value;return!(null!=e&&e.trim())}},render(){const e="Generate",{promptSuggestions:s,enableSpeechToText:r}=this.$props,l=o.templateRendering.call(this,this.$props.promptInput,o.getListeners.call(this)),d=t.createVNode(a.TextArea,{value:this.computedValue,onInput:this.onTextChange,placeholder:"Ask or generate content with AI ...",rows:2,class:"!k-flex-col",inputSuffix:()=>r?t.createVNode(t.Fragment,null,[t.createVNode(a.InputSeparator,{orientation:"horizontal"},null),t.createVNode("div",{class:"k-input-suffix k-input-suffix-horizontal"},[t.createVNode(n.SpeechToTextButton,t.mergeProps({fillMode:"flat",onStart:this.onSpeechStart,onEnd:this.onSpeechEnd,onResult:this.onSpeechResult},"object"==typeof r?r:{}),null)])]):null},null),u=o.getTemplate.call(this,{h:t.h,template:l,defaultRendering:d}),c=o.templateRendering.call(this,this.$props.generateButton,o.getListeners.call(this)),m=t.createVNode(n.Button,{type:"button",themeColor:"primary",fillMode:"solid","aria-hidden":"true",rounded:"full",size:"medium",onClick:this.handleOnRequest,disabled:this.getButtonDisabledState(),title:"Generate",svgIcon:i.sparklesIcon},C(e)?e:{default:()=>[e]}),h=o.getTemplate.call(this,{h:t.h,template:c,defaultRendering:m});return t.createVNode(k,{name:p.name},{default:()=>{var e,o;return[t.createVNode(v,{streaming:null==(e=this.kendoAIPrompt)?void 0:e.streaming,onCancel:null==(o=this.kendoAIPrompt)?void 0:o.onCancel},{default:()=>[u,s&&s.length>0&&t.createVNode(V,{title:"Prompt Suggestions"},{default:()=>{var e;return[t.createVNode(I,{suggestionsView:null==(e=this.kendoAIPrompt)?void 0:e.suggestionsView,suggestions:s.map(((e,t)=>({id:t,text:e,description:e}))),onSuggestionClick:(e,t)=>this.handleSuggestionSelect(t.text)},null)]}})]}),t.createVNode(g,null,C(h)?h:{default:()=>[h]})]}})}}),b="avatar.alt",w="messageList.ariaLabel",N="aIPrompt.noOutputs",S={[b]:"Avatar",[w]:"Message list",[N]:"No output from Ai available"};function A(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}let P=function(e){return e.positive="positive",e.negative="negative",e}({});const x=t.defineComponent({name:"KendoAIPromptOutputView",emits:{copy:null,retry:null,rating:null},props:{outputs:Array,outputCard:Object,showOutputRating:Boolean},inject:{kendoAIPrompt:{default:null},kendoLocalizationService:{default:null}},data:()=>({copiedIndex:-1,copyButtonIcon:i.copyIcon,contentRef:null}),methods:{retryPrompt(e){this.$emit("retry",e),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,e.prompt,{...e,isRetry:!0}),this.scrollToTopOutput()},copyToClipboard(e,t){null!=e&&e.responseContent&&navigator.clipboard.writeText(e.responseContent),this.copiedIndex=t,this.copyButtonIcon=i.checkIcon,this.$emit("copy",null==e?void 0:e.responseContent),setTimeout((()=>{this.copyButtonIcon=i.copyIcon,this.copiedIndex=-1}),1e3)},outputRating(e,t){this.$emit("rating",e,t),this.kendoAIPrompt.onPromptRequest&&this.kendoAIPrompt.onPromptRequest.call(null,e.prompt,{...e,ratingType:t,isRetry:!1}),this.scrollToTopOutput()},scrollToTopOutput(){var e,t;null==(t=null==(e=this.contentRef)?void 0:e.scrollTo)||t.call(e,{top:0,behavior:"smooth"})}},render(){let e;const{outputs:o,showOutputRating:a,outputCard:l}=this.$props,d=r.provideLocalizationService(this),{header:c,body:p,actions:m}=l||{},h=t.createVNode(s.Card,null,{default:()=>[t.createVNode(s.CardHeader,null,{default:()=>[t.createVNode(s.CardTitle,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"200px"}},null)]}),t.createVNode(s.CardSubtitle,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),t.createVNode(s.CardBody,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-rect k-skeleton-pulse",style:{height:"80px"}},null)]}),t.createVNode(s.CardActions,null,{default:()=>[t.createVNode("span",{class:"k-skeleton k-skeleton-text k-skeleton-pulse",style:{width:"100%"}},null)]})]}),g=null==o?void 0:o.map(((e,o)=>t.createVNode(s.Card,{key:`${e.id}_${o}`,class:e.class},{default:()=>[t.createVNode(s.CardHeader,null,{default:()=>[c?c(e):t.createVNode(t.Fragment,null,[e.title&&t.createVNode(s.CardTitle,null,{default:()=>[e.title]}),e.subTitle&&t.createVNode(s.CardSubtitle,null,{default:()=>[e.subTitle]})])]}),t.createVNode(s.CardBody,null,{default:()=>[p?p(e):e.responseContent]}),t.createVNode(s.CardActions,null,{default:()=>[m?m(e):t.createVNode(t.Fragment,null,[t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"primary",fillMode:"flat",rounded:"medium",title:"Copy",svgIcon:this.copiedIndex===o?this.copyButtonIcon:i.copyIcon,"aria-hidden":"true",onClick:()=>this.copyToClipboard(e,o)},{default:()=>["Copy"]}),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"base",fillMode:"flat",rounded:"medium",title:"Retry",svgIcon:i.arrowRotateCwIcon,"aria-hidden":"true",onClick:()=>this.retryPrompt(e)},{default:()=>["Retry"]}),a&&t.createVNode(t.Fragment,null,[t.createVNode("span",{class:"k-spacer"},null),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"positive"===e.ratingType?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate up",svgIcon:i.thumbUpOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(e,"positive")},null),t.createVNode(n.Button,{type:"button",size:"medium",themeColor:"negative"===e.ratingType?"primary":"base",fillMode:"flat",rounded:"medium",title:"Rate down",svgIcon:i.thumbDownOutlineIcon,"aria-hidden":"true",onClick:()=>this.outputRating(e,"negative")},null)])])]})]}))),f=t.createVNode(s.Card,null,{default:()=>[t.createVNode(s.CardBody,null,A(e=d.toLanguageString(N,S[N]))?e:{default:()=>[e]})]});return t.createVNode(k,{name:u.name},{default:()=>{var e,o;return[t.createVNode(v,{ref:e=>this.contentRef=e,streaming:null==(e=this.kendoAIPrompt)?void 0:e.streaming,onCancel:null==(o=this.kendoAIPrompt)?void 0:o.onCancel},{default:()=>{var e,o;return[t.createVNode("div",{class:"k-card-list"},[(null==(e=this.kendoAIPrompt)?void 0:e.loading)&&h,g,(!g||0===g.length)&&!(null!=(o=this.kendoAIPrompt)&&o.loading)&&f])]}})]}})}}),R=t.defineComponent({name:"KendoAIPromptCommandsView",props:{commands:Array},inject:{kendoAIPrompt:{default:null}},render(){const{commands:e}=this.$props,o=e=>{var t;const o=e.target;(null==(t=o.items)||!t.length)&&this.kendoAIPrompt.onCommandExecute&&(this.$emit("commandexecute",o),this.kendoAIPrompt.onCommandExecute.call(null,o))};return t.createVNode(k,{name:c.name},{default:()=>{var n,i;return[t.createVNode(v,{streaming:null==(n=this.kendoAIPrompt)?void 0:n.streaming,onCancel:null==(i=this.kendoAIPrompt)?void 0:i.onCancel},{default:()=>[t.createVNode("div",{class:"k-prompt-view"},[t.createVNode(s.PanelBar,{onSelect:o,items:e},null)])]})]}})}});e.AIPrompt=h,e.AIPromptCommandsView=R,e.AIPromptContent=v,e.AIPromptFooter=g,e.AIPromptHeader=d,e.AIPromptOutputRating=P,e.AIPromptOutputView=x,e.AIPromptView=y,e.AIPromptViewRender=k,e.SuggestionGroup=I,e.commandsViewDefaults=c,e.outputViewDefaults=u,e.promptViewDefaults=p}));
|
package/index.d.mts
CHANGED
|
@@ -28,6 +28,10 @@ outputs: PropType<AIPromptOutputInterface[]>;
|
|
|
28
28
|
promptPlaceholder: PropType<string>;
|
|
29
29
|
streaming: PropType<boolean>;
|
|
30
30
|
loading: PropType<boolean>;
|
|
31
|
+
suggestionsView: {
|
|
32
|
+
type: PropType<SuggestionsView>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
}>, {}, {
|
|
32
36
|
showLicenseWatermark: boolean;
|
|
33
37
|
licenseMessage: string;
|
|
@@ -49,7 +53,13 @@ outputs: PropType<AIPromptOutputInterface[]>;
|
|
|
49
53
|
promptPlaceholder: PropType<string>;
|
|
50
54
|
streaming: PropType<boolean>;
|
|
51
55
|
loading: PropType<boolean>;
|
|
52
|
-
|
|
56
|
+
suggestionsView: {
|
|
57
|
+
type: PropType<SuggestionsView>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
suggestionsView: SuggestionsView;
|
|
62
|
+
}, {}, {}, {}, string, () => {
|
|
53
63
|
kendoAIPrompt: any;
|
|
54
64
|
}, true, {}, any>;
|
|
55
65
|
|
|
@@ -126,6 +136,7 @@ declare interface AIPromptContextInterface {
|
|
|
126
136
|
activeView?: string;
|
|
127
137
|
streaming?: boolean;
|
|
128
138
|
loading?: boolean;
|
|
139
|
+
suggestionsView?: SuggestionsView;
|
|
129
140
|
onCancel?: () => void;
|
|
130
141
|
onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
|
|
131
142
|
onCommandExecute?: (command: AIPromptCommandInterface) => void;
|
|
@@ -324,6 +335,13 @@ export declare interface AIPromptProps {
|
|
|
324
335
|
* Called when the prompt is cancelled.
|
|
325
336
|
*/
|
|
326
337
|
onCancel?: () => void;
|
|
338
|
+
/**
|
|
339
|
+
* Optionally specifies the rendering for the suggestions displayed in the AI Prompt component.
|
|
340
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
341
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
342
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
343
|
+
*/
|
|
344
|
+
suggestionsView?: SuggestionsView;
|
|
327
345
|
}
|
|
328
346
|
|
|
329
347
|
/**
|
|
@@ -398,7 +416,7 @@ export declare interface AIPromptViewRenderProps {
|
|
|
398
416
|
|
|
399
417
|
/**
|
|
400
418
|
* Represents the structure of a chat suggestion item that can be displayed above the message input.
|
|
401
|
-
*
|
|
419
|
+
* @hidden
|
|
402
420
|
* @interface ChatSuggestion
|
|
403
421
|
*/
|
|
404
422
|
export declare interface ChatSuggestion {
|
|
@@ -406,6 +424,7 @@ export declare interface ChatSuggestion {
|
|
|
406
424
|
text: string;
|
|
407
425
|
description?: string;
|
|
408
426
|
disabled?: boolean;
|
|
427
|
+
suggestionsView?: SuggestionsView;
|
|
409
428
|
}
|
|
410
429
|
|
|
411
430
|
/**
|
|
@@ -460,6 +479,10 @@ onSuggestionClick: {
|
|
|
460
479
|
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
461
480
|
required: true;
|
|
462
481
|
};
|
|
482
|
+
suggestionsView: {
|
|
483
|
+
type: PropType<SuggestionsView>;
|
|
484
|
+
default: string;
|
|
485
|
+
};
|
|
463
486
|
}>, {}, {}, {}, {
|
|
464
487
|
handleSuggestionClick(event: MouseEvent, suggestion: ChatSuggestion): void;
|
|
465
488
|
handleKeyDown(event: KeyboardEvent, suggestion: ChatSuggestion): void;
|
|
@@ -472,11 +495,25 @@ onSuggestionClick: {
|
|
|
472
495
|
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
473
496
|
required: true;
|
|
474
497
|
};
|
|
475
|
-
|
|
498
|
+
suggestionsView: {
|
|
499
|
+
type: PropType<SuggestionsView>;
|
|
500
|
+
default: string;
|
|
501
|
+
};
|
|
502
|
+
}>> & Readonly<{}>, {
|
|
503
|
+
suggestionsView: SuggestionsView;
|
|
504
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
476
505
|
|
|
477
506
|
export declare interface SuggestionGroupProps {
|
|
478
507
|
suggestions: ChatSuggestion[];
|
|
479
508
|
onSuggestionClick: (event: MouseEvent, suggestion: ChatSuggestion) => void;
|
|
480
509
|
}
|
|
481
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Represents the rendering options for suggestions in the AI Prompt component.
|
|
513
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
514
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
515
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
516
|
+
*/
|
|
517
|
+
export declare type SuggestionsView = 'classic' | 'modern';
|
|
518
|
+
|
|
482
519
|
export { }
|
package/index.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ outputs: PropType<AIPromptOutputInterface[]>;
|
|
|
28
28
|
promptPlaceholder: PropType<string>;
|
|
29
29
|
streaming: PropType<boolean>;
|
|
30
30
|
loading: PropType<boolean>;
|
|
31
|
+
suggestionsView: {
|
|
32
|
+
type: PropType<SuggestionsView>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
}>, {}, {
|
|
32
36
|
showLicenseWatermark: boolean;
|
|
33
37
|
licenseMessage: string;
|
|
@@ -49,7 +53,13 @@ outputs: PropType<AIPromptOutputInterface[]>;
|
|
|
49
53
|
promptPlaceholder: PropType<string>;
|
|
50
54
|
streaming: PropType<boolean>;
|
|
51
55
|
loading: PropType<boolean>;
|
|
52
|
-
|
|
56
|
+
suggestionsView: {
|
|
57
|
+
type: PropType<SuggestionsView>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
suggestionsView: SuggestionsView;
|
|
62
|
+
}, {}, {}, {}, string, () => {
|
|
53
63
|
kendoAIPrompt: any;
|
|
54
64
|
}, true, {}, any>;
|
|
55
65
|
|
|
@@ -126,6 +136,7 @@ declare interface AIPromptContextInterface {
|
|
|
126
136
|
activeView?: string;
|
|
127
137
|
streaming?: boolean;
|
|
128
138
|
loading?: boolean;
|
|
139
|
+
suggestionsView?: SuggestionsView;
|
|
129
140
|
onCancel?: () => void;
|
|
130
141
|
onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
|
|
131
142
|
onCommandExecute?: (command: AIPromptCommandInterface) => void;
|
|
@@ -324,6 +335,13 @@ export declare interface AIPromptProps {
|
|
|
324
335
|
* Called when the prompt is cancelled.
|
|
325
336
|
*/
|
|
326
337
|
onCancel?: () => void;
|
|
338
|
+
/**
|
|
339
|
+
* Optionally specifies the rendering for the suggestions displayed in the AI Prompt component.
|
|
340
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
341
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
342
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
343
|
+
*/
|
|
344
|
+
suggestionsView?: SuggestionsView;
|
|
327
345
|
}
|
|
328
346
|
|
|
329
347
|
/**
|
|
@@ -398,7 +416,7 @@ export declare interface AIPromptViewRenderProps {
|
|
|
398
416
|
|
|
399
417
|
/**
|
|
400
418
|
* Represents the structure of a chat suggestion item that can be displayed above the message input.
|
|
401
|
-
*
|
|
419
|
+
* @hidden
|
|
402
420
|
* @interface ChatSuggestion
|
|
403
421
|
*/
|
|
404
422
|
export declare interface ChatSuggestion {
|
|
@@ -406,6 +424,7 @@ export declare interface ChatSuggestion {
|
|
|
406
424
|
text: string;
|
|
407
425
|
description?: string;
|
|
408
426
|
disabled?: boolean;
|
|
427
|
+
suggestionsView?: SuggestionsView;
|
|
409
428
|
}
|
|
410
429
|
|
|
411
430
|
/**
|
|
@@ -460,6 +479,10 @@ onSuggestionClick: {
|
|
|
460
479
|
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
461
480
|
required: true;
|
|
462
481
|
};
|
|
482
|
+
suggestionsView: {
|
|
483
|
+
type: PropType<SuggestionsView>;
|
|
484
|
+
default: string;
|
|
485
|
+
};
|
|
463
486
|
}>, {}, {}, {}, {
|
|
464
487
|
handleSuggestionClick(event: MouseEvent, suggestion: ChatSuggestion): void;
|
|
465
488
|
handleKeyDown(event: KeyboardEvent, suggestion: ChatSuggestion): void;
|
|
@@ -472,11 +495,25 @@ onSuggestionClick: {
|
|
|
472
495
|
type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
|
|
473
496
|
required: true;
|
|
474
497
|
};
|
|
475
|
-
|
|
498
|
+
suggestionsView: {
|
|
499
|
+
type: PropType<SuggestionsView>;
|
|
500
|
+
default: string;
|
|
501
|
+
};
|
|
502
|
+
}>> & Readonly<{}>, {
|
|
503
|
+
suggestionsView: SuggestionsView;
|
|
504
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
476
505
|
|
|
477
506
|
export declare interface SuggestionGroupProps {
|
|
478
507
|
suggestions: ChatSuggestion[];
|
|
479
508
|
onSuggestionClick: (event: MouseEvent, suggestion: ChatSuggestion) => void;
|
|
480
509
|
}
|
|
481
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Represents the rendering options for suggestions in the AI Prompt component.
|
|
513
|
+
* 'suggestionsView' can be either 'classic' or 'modern'.
|
|
514
|
+
* - 'classic': Uses a rectangular styling for suggestions.
|
|
515
|
+
* - 'modern': Uses a chip-like styling for suggestions.
|
|
516
|
+
*/
|
|
517
|
+
export declare type SuggestionsView = 'classic' | 'modern';
|
|
518
|
+
|
|
482
519
|
export { }
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-conversational-ui",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-conversational-ui",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1754905645,version:"7.0.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "7.0.0-develop.
|
|
13
|
+
publishDate: 1754905645,
|
|
14
|
+
version: "7.0.0-develop.7",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-conversational-ui",
|
|
3
|
-
"version": "7.0.0-develop.
|
|
3
|
+
"version": "7.0.0-develop.7",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@progress/kendo-licensing": "^1.7.0",
|
|
22
|
-
"@progress/kendo-vue-buttons": "7.0.0-develop.
|
|
23
|
-
"@progress/kendo-vue-common": "7.0.0-develop.
|
|
24
|
-
"@progress/kendo-vue-intl": "7.0.0-develop.
|
|
25
|
-
"@progress/kendo-vue-inputs": "7.0.0-develop.
|
|
26
|
-
"@progress/kendo-vue-layout": "7.0.0-develop.
|
|
22
|
+
"@progress/kendo-vue-buttons": "7.0.0-develop.7",
|
|
23
|
+
"@progress/kendo-vue-common": "7.0.0-develop.7",
|
|
24
|
+
"@progress/kendo-vue-intl": "7.0.0-develop.7",
|
|
25
|
+
"@progress/kendo-vue-inputs": "7.0.0-develop.7",
|
|
26
|
+
"@progress/kendo-vue-layout": "7.0.0-develop.7",
|
|
27
27
|
"@progress/kendo-svg-icons": "^4.4.0",
|
|
28
28
|
"vue": "^3.0.2"
|
|
29
29
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"package": {
|
|
45
45
|
"productName": "Kendo UI for Vue",
|
|
46
46
|
"productCode": "KENDOUIVUE",
|
|
47
|
-
"publishDate":
|
|
47
|
+
"publishDate": 1754905645,
|
|
48
48
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
49
49
|
}
|
|
50
50
|
},
|