@progress/kendo-vue-conversational-ui 7.0.0-develop.5 → 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.
@@ -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 o=require("vue"),m=require("./AIPromptHeader.js"),a=require("./views/constants.js"),i=require("@progress/kendo-vue-common"),p=o.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{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(t){this.contextState.activeView=t},streaming(t){this.contextState.streaming=t},loading(t){this.contextState.loading=t}},methods:{onStateAction(t){this.contextState.activeView=t.activeView},onActiveViewChange(t){this.$emit("activeviewchange",t)},onPromptRequest(t,e){this.$emit("promptrequest",t,e)},onCommandExecute(t){this.$emit("commandexecute",t)},onCancel(){this.$emit("cancel")}},render(){const t=i.getDefaultSlots(this),{toolbarItems:e,dir:r}=this.$props,s=(e||[a.promptViewDefaults,a.outputViewDefaults]).map(n=>{const c=i.templateRendering.call(this,n.content,i.getListeners.call(this));return{...n,content:c}});return o.createVNode("div",{class:"k-prompt",dir:r},[o.createVNode(m.AIPromptHeader,{activeView:this.contextState.activeView,toolbarItems:s,onActiveviewchange:this.onActiveViewChange},null),t])}});exports.AIPrompt=p;
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;
@@ -5,11 +5,12 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as s, createVNode as i } from "vue";
9
- import { AIPromptHeader as c } from "./AIPromptHeader.mjs";
10
- import { promptViewDefaults as m, outputViewDefaults as p } from "./views/constants.mjs";
11
- import { getDefaultSlots as h, templateRendering as l, getListeners as d } from "@progress/kendo-vue-common";
12
- const V = /* @__PURE__ */ s({
8
+ import { defineComponent as m, createVNode as i } from "vue";
9
+ import { AIPromptHeader as h } from "./AIPromptHeader.mjs";
10
+ import { promptViewDefaults as l, outputViewDefaults as p } from "./views/constants.mjs";
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
+ import { packageMetadata as o } from "../package-metadata.mjs";
13
+ const P = /* @__PURE__ */ m({
13
14
  name: "KendoAIPrompt",
14
15
  props: {
15
16
  activeView: {
@@ -21,7 +22,11 @@ const V = /* @__PURE__ */ s({
21
22
  outputs: Array,
22
23
  promptPlaceholder: String,
23
24
  streaming: Boolean,
24
- loading: Boolean
25
+ loading: Boolean,
26
+ suggestionsView: {
27
+ type: String,
28
+ default: "classic"
29
+ }
25
30
  },
26
31
  provide() {
27
32
  return {
@@ -30,6 +35,8 @@ const V = /* @__PURE__ */ s({
30
35
  },
31
36
  data() {
32
37
  return {
38
+ showLicenseWatermark: !1,
39
+ licenseMessage: "",
33
40
  contextState: {
34
41
  activeView: this.$props.activeView,
35
42
  streaming: this.$props.streaming,
@@ -38,7 +45,8 @@ const V = /* @__PURE__ */ s({
38
45
  onActiveViewChange: this.onActiveViewChange,
39
46
  onPromptRequest: this.onPromptRequest,
40
47
  onCommandExecute: this.onCommandExecute,
41
- onStateAction: this.onStateAction
48
+ onStateAction: this.onStateAction,
49
+ suggestionsView: this.$props.suggestionsView
42
50
  }
43
51
  };
44
52
  },
@@ -71,26 +79,29 @@ const V = /* @__PURE__ */ s({
71
79
  }
72
80
  },
73
81
  render() {
74
- const t = h(this), {
82
+ g(o), this.showLicenseWatermark = d(o), this.licenseMessage = u(o);
83
+ const t = w(this), {
75
84
  toolbarItems: e,
76
- dir: n
77
- } = this.$props, a = (e || [m, p]).map((o) => {
78
- const r = l.call(this, o.content, d.call(this));
85
+ dir: s
86
+ } = this.$props, n = (e || [l, p]).map((a) => {
87
+ const c = v.call(this, a.content, V.call(this));
79
88
  return {
80
- ...o,
81
- content: r
89
+ ...a,
90
+ content: c
82
91
  };
83
- });
92
+ }), r = this.showLicenseWatermark ? i(S, {
93
+ message: this.licenseMessage
94
+ }, null) : null;
84
95
  return i("div", {
85
96
  class: "k-prompt",
86
- dir: n
87
- }, [i(c, {
97
+ dir: s
98
+ }, [i(h, {
88
99
  activeView: this.contextState.activeView,
89
- toolbarItems: a,
100
+ toolbarItems: n,
90
101
  onActiveviewchange: this.onActiveViewChange
91
- }, null), t]);
102
+ }, null), t, r]);
92
103
  }
93
104
  });
94
105
  export {
95
- V as AIPrompt
106
+ P as AIPrompt
96
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"),I=require("../AIPromptContent.js"),V=require("../AIPromptFooter.js"),P=require("./constants.js"),A=require("@progress/kendo-vue-inputs"),c=require("@progress/kendo-vue-buttons"),x=require("@progress/kendo-svg-icons"),R=require("./AIPromptViewRender.js"),b=require("../AIPromptExpander.js"),k=require("../../chat/components/SuggestionGroup.js"),o=require("@progress/kendo-vue-common");function d(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const v=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)),h=()=>n?t.createVNode("div",{class:"k-input-suffix k-input-suffix-horizontal"},[t.createVNode(c.SpeechToTextButton,t.mergeProps({fillMode:"flat",onStart:this.onSpeechStart,onEnd:this.onSpeechEnd,onResult:this.onSpeechResult},typeof n=="object"?n:{}),null)]):null,m=t.createVNode(A.TextArea,{value:this.computedValue,onInput:this.onTextChange,placeholder:"Ask or generate content with AI ...",rows:2,class:"!k-flex-col",inputSuffix:h},null),g=o.getTemplate.call(this,{h:t.h,template:s,defaultRendering:m}),f=o.templateRendering.call(this,this.$props.generateButton,o.getListeners.call(this)),S=t.createVNode(c.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},d(e)?e:{default:()=>[e]}),i=o.getTemplate.call(this,{h:t.h,template:f,defaultRendering:S});return t.createVNode(R.AIPromptViewRender,{name:P.promptViewDefaults.name},{default:()=>{var a,p;return[t.createVNode(I.AIPromptContent,{streaming:(a=this.kendoAIPrompt)==null?void 0:a.streaming,onCancel:(p=this.kendoAIPrompt)==null?void 0:p.onCancel},{default:()=>[g,r&&r.length>0&&t.createVNode(b.AIPromptExpander,{title:"Prompt Suggestions"},{default:()=>[t.createVNode(k.SuggestionGroup,{suggestions:r.map((u,l)=>({id:l,text:u,description:u})),onSuggestionClick:(u,l)=>this.handleSuggestionSelect(l.text)},null)]})]}),t.createVNode(V.AIPromptFooter,null,d(i)?i:{default:()=>[i]})]}})}});exports.AIPromptView=v;
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 A, createVNode as e, h as u, mergeProps as P, isVNode as R } from "vue";
9
- import { AIPromptContent as b } from "../AIPromptContent.mjs";
10
- import { AIPromptFooter as V } from "../AIPromptFooter.mjs";
11
- import { promptViewDefaults as v } from "./constants.mjs";
12
- import { TextArea as T } from "@progress/kendo-vue-inputs";
13
- import { Button as k, SpeechToTextButton as B } from "@progress/kendo-vue-buttons";
14
- import { sparklesIcon as C } from "@progress/kendo-svg-icons";
15
- import { AIPromptViewRender as j } from "./AIPromptViewRender.mjs";
16
- import { AIPromptExpander as O } from "../AIPromptExpander.mjs";
17
- import { SuggestionGroup as $ } from "../../chat/components/SuggestionGroup.mjs";
18
- import { templateRendering as m, getListeners as c, getTemplate as d } from "@progress/kendo-vue-common";
19
- function h(t) {
20
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !R(t);
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 K = /* @__PURE__ */ A({
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 = m.call(this, this.$props.promptInput, c.call(this)), f = () => n ? e("div", {
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(B, P({
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, g = e(T, {
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), S = d.call(this, {
91
- h: u,
92
+ }, null), I = h.call(this, {
93
+ h: m,
92
94
  template: r,
93
- defaultRendering: g
94
- }), I = m.call(this, this.$props.generateButton, c.call(this)), x = e(k, {
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: C
105
- }, h(t) ? t : {
106
+ svgIcon: O
107
+ }, g(t) ? t : {
106
108
  default: () => [t]
107
- }), i = d.call(this, {
108
- h: u,
109
- template: I,
110
- defaultRendering: x
109
+ }), i = h.call(this, {
110
+ h: m,
111
+ template: x,
112
+ defaultRendering: A
111
113
  });
112
- return e(j, {
113
- name: v.name
114
+ return e($, {
115
+ name: T.name
114
116
  }, {
115
117
  default: () => {
116
- var s, a;
117
- return [e(b, {
118
- streaming: (s = this.kendoAIPrompt) == null ? void 0 : s.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: () => [S, o && o.length > 0 && e(O, {
123
+ default: () => [I, o && o.length > 0 && e(y, {
122
124
  title: "Prompt Suggestions"
123
125
  }, {
124
- default: () => [e($, {
125
- suggestions: o.map((p, l) => ({
126
- id: l,
127
- text: p,
128
- description: p
129
- })),
130
- onSuggestionClick: (p, l) => this.handleSuggestionSelect(l.text)
131
- }, null)]
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(V, null, h(i) ? i : {
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
- K as AIPromptView
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 d=require("vue"),r=require("@progress/kendo-vue-common"),t=d.defineComponent({name:"KendoSuggestionGroup",props:{suggestions:{type:Array,required:!0},onSuggestionClick:{type:Function,required:!0}},methods:{handleSuggestionClick(i,e){e.disabled||this.onSuggestionClick(i,e)},handleKeyDown(i,e){(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.onSuggestionClick(i,e))}},render(){const{suggestions:i}=this.$props;return d.createVNode("div",{role:"group",class:"k-suggestion-group"},[i.map(e=>d.createVNode("span",{role:"button",tabindex:e.disabled?-1:0,"aria-label":e.description,"aria-disabled":e.disabled,onClick:o=>!e.disabled&&this.handleSuggestionClick(o,e),onKeydown:o=>!e.disabled&&this.handleKeyDown(o,e),key:e.id,title:e.description,class:r.classNames("k-suggestion",{"k-disabled":e.disabled})},[e.text]))])}});exports.SuggestionGroup=t;
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 r, createVNode as o } from "vue";
9
- import { classNames as a } from "@progress/kendo-vue-common";
10
- const n = /* @__PURE__ */ r({
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, e) {
24
- e.disabled || this.onSuggestionClick(i, e);
27
+ handleSuggestionClick(i, s) {
28
+ s.disabled || this.onSuggestionClick(i, s);
25
29
  },
26
- handleKeyDown(i, e) {
27
- (i.key === "Enter" || i.key === " ") && (i.preventDefault(), this.onSuggestionClick(i, e));
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
- } = this.$props;
34
- return o("div", {
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: (d) => !e.disabled && this.handleSuggestionClick(d, e),
43
- onKeydown: (d) => !e.disabled && this.handleKeyDown(d, e),
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: a("k-suggestion", {
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
- n as SuggestionGroup
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,l){"use strict";function s(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"},s(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=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{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(){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}}));return t.createVNode("div",{class:"k-prompt",dir:i},[t.createVNode(d,{activeView:this.contextState.activeView,toolbarItems:a,onActiveviewchange:this.onActiveViewChange},null),e])}}),h=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])])}}),g=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])])}}),v=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 k=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])])}}),V=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 I=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:l}=this.$props,s=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:()=>l?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 l?l:{}),null)]):null},null),u=o.getTemplate.call(this,{h:t.h,template:s,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]}),f=o.getTemplate.call(this,{h:t.h,template:c,defaultRendering:m});return t.createVNode(v,{name:p.name},{default:()=>{var e,o;return[t.createVNode(g,{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(k,{title:"Prompt Suggestions"},{default:()=>[t.createVNode(V,{suggestions:r.map(((e,t)=>({id:t,text:e,description:e}))),onSuggestionClick:(e,t)=>this.handleSuggestionSelect(t.text)},null)]})]}),t.createVNode(h,null,C(f)?f:{default:()=>[f]})]}})}}),y="avatar.alt",b="messageList.ariaLabel",A="aIPrompt.noOutputs",S={[y]:"Avatar",[b]:"Message list",[A]:"No output from Ai available"};function N(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}let w=function(e){return e.positive="positive",e.negative="negative",e}({});const P=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:s}=this.$props,d=l.provideLocalizationService(this),{header:c,body:p,actions:m}=s||{},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)]})]}),f=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)])])]})]}))),k=t.createVNode(r.Card,null,{default:()=>[t.createVNode(r.CardBody,null,N(e=d.toLanguageString(A,S[A]))?e:{default:()=>[e]})]});return t.createVNode(v,{name:u.name},{default:()=>{var e,o;return[t.createVNode(g,{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,f,(!f||0===f.length)&&!(null!=(o=this.kendoAIPrompt)&&o.loading)&&k])]}})]}})}}),x=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(v,{name:c.name},{default:()=>{var n,i;return[t.createVNode(g,{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=m,e.AIPromptCommandsView=x,e.AIPromptContent=g,e.AIPromptFooter=h,e.AIPromptHeader=d,e.AIPromptOutputRating=w,e.AIPromptOutputView=P,e.AIPromptView=I,e.AIPromptViewRender=v,e.SuggestionGroup=V,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,7 +28,13 @@ 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
  }>, {}, {
36
+ showLicenseWatermark: boolean;
37
+ licenseMessage: string;
32
38
  contextState: AIPromptContextInterface;
33
39
  }, {}, {
34
40
  onStateAction(action: StateActionInterface): void;
@@ -47,7 +53,13 @@ outputs: PropType<AIPromptOutputInterface[]>;
47
53
  promptPlaceholder: PropType<string>;
48
54
  streaming: PropType<boolean>;
49
55
  loading: PropType<boolean>;
50
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
56
+ suggestionsView: {
57
+ type: PropType<SuggestionsView>;
58
+ default: string;
59
+ };
60
+ }>> & Readonly<{}>, {
61
+ suggestionsView: SuggestionsView;
62
+ }, {}, {}, {}, string, () => {
51
63
  kendoAIPrompt: any;
52
64
  }, true, {}, any>;
53
65
 
@@ -124,6 +136,7 @@ declare interface AIPromptContextInterface {
124
136
  activeView?: string;
125
137
  streaming?: boolean;
126
138
  loading?: boolean;
139
+ suggestionsView?: SuggestionsView;
127
140
  onCancel?: () => void;
128
141
  onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
129
142
  onCommandExecute?: (command: AIPromptCommandInterface) => void;
@@ -322,6 +335,13 @@ export declare interface AIPromptProps {
322
335
  * Called when the prompt is cancelled.
323
336
  */
324
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;
325
345
  }
326
346
 
327
347
  /**
@@ -396,7 +416,7 @@ export declare interface AIPromptViewRenderProps {
396
416
 
397
417
  /**
398
418
  * Represents the structure of a chat suggestion item that can be displayed above the message input.
399
- *
419
+ * @hidden
400
420
  * @interface ChatSuggestion
401
421
  */
402
422
  export declare interface ChatSuggestion {
@@ -404,6 +424,7 @@ export declare interface ChatSuggestion {
404
424
  text: string;
405
425
  description?: string;
406
426
  disabled?: boolean;
427
+ suggestionsView?: SuggestionsView;
407
428
  }
408
429
 
409
430
  /**
@@ -458,6 +479,10 @@ onSuggestionClick: {
458
479
  type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
459
480
  required: true;
460
481
  };
482
+ suggestionsView: {
483
+ type: PropType<SuggestionsView>;
484
+ default: string;
485
+ };
461
486
  }>, {}, {}, {}, {
462
487
  handleSuggestionClick(event: MouseEvent, suggestion: ChatSuggestion): void;
463
488
  handleKeyDown(event: KeyboardEvent, suggestion: ChatSuggestion): void;
@@ -470,11 +495,25 @@ onSuggestionClick: {
470
495
  type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
471
496
  required: true;
472
497
  };
473
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
498
+ suggestionsView: {
499
+ type: PropType<SuggestionsView>;
500
+ default: string;
501
+ };
502
+ }>> & Readonly<{}>, {
503
+ suggestionsView: SuggestionsView;
504
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
474
505
 
475
506
  export declare interface SuggestionGroupProps {
476
507
  suggestions: ChatSuggestion[];
477
508
  onSuggestionClick: (event: MouseEvent, suggestion: ChatSuggestion) => void;
478
509
  }
479
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
+
480
519
  export { }
package/index.d.ts CHANGED
@@ -28,7 +28,13 @@ 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
  }>, {}, {
36
+ showLicenseWatermark: boolean;
37
+ licenseMessage: string;
32
38
  contextState: AIPromptContextInterface;
33
39
  }, {}, {
34
40
  onStateAction(action: StateActionInterface): void;
@@ -47,7 +53,13 @@ outputs: PropType<AIPromptOutputInterface[]>;
47
53
  promptPlaceholder: PropType<string>;
48
54
  streaming: PropType<boolean>;
49
55
  loading: PropType<boolean>;
50
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
56
+ suggestionsView: {
57
+ type: PropType<SuggestionsView>;
58
+ default: string;
59
+ };
60
+ }>> & Readonly<{}>, {
61
+ suggestionsView: SuggestionsView;
62
+ }, {}, {}, {}, string, () => {
51
63
  kendoAIPrompt: any;
52
64
  }, true, {}, any>;
53
65
 
@@ -124,6 +136,7 @@ declare interface AIPromptContextInterface {
124
136
  activeView?: string;
125
137
  streaming?: boolean;
126
138
  loading?: boolean;
139
+ suggestionsView?: SuggestionsView;
127
140
  onCancel?: () => void;
128
141
  onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
129
142
  onCommandExecute?: (command: AIPromptCommandInterface) => void;
@@ -322,6 +335,13 @@ export declare interface AIPromptProps {
322
335
  * Called when the prompt is cancelled.
323
336
  */
324
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;
325
345
  }
326
346
 
327
347
  /**
@@ -396,7 +416,7 @@ export declare interface AIPromptViewRenderProps {
396
416
 
397
417
  /**
398
418
  * Represents the structure of a chat suggestion item that can be displayed above the message input.
399
- *
419
+ * @hidden
400
420
  * @interface ChatSuggestion
401
421
  */
402
422
  export declare interface ChatSuggestion {
@@ -404,6 +424,7 @@ export declare interface ChatSuggestion {
404
424
  text: string;
405
425
  description?: string;
406
426
  disabled?: boolean;
427
+ suggestionsView?: SuggestionsView;
407
428
  }
408
429
 
409
430
  /**
@@ -458,6 +479,10 @@ onSuggestionClick: {
458
479
  type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
459
480
  required: true;
460
481
  };
482
+ suggestionsView: {
483
+ type: PropType<SuggestionsView>;
484
+ default: string;
485
+ };
461
486
  }>, {}, {}, {}, {
462
487
  handleSuggestionClick(event: MouseEvent, suggestion: ChatSuggestion): void;
463
488
  handleKeyDown(event: KeyboardEvent, suggestion: ChatSuggestion): void;
@@ -470,11 +495,25 @@ onSuggestionClick: {
470
495
  type: PropType<(event: MouseEvent, suggestion: ChatSuggestion) => void>;
471
496
  required: true;
472
497
  };
473
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
498
+ suggestionsView: {
499
+ type: PropType<SuggestionsView>;
500
+ default: string;
501
+ };
502
+ }>> & Readonly<{}>, {
503
+ suggestionsView: SuggestionsView;
504
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
474
505
 
475
506
  export declare interface SuggestionGroupProps {
476
507
  suggestions: ChatSuggestion[];
477
508
  onSuggestionClick: (event: MouseEvent, suggestion: ChatSuggestion) => void;
478
509
  }
479
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
+
480
519
  export { }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
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: 1754905645,version:"7.0.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ const e = {
9
+ name: "@progress/kendo-vue-conversational-ui",
10
+ productName: "Kendo UI for Vue",
11
+ productCode: "KENDOUIVUE",
12
+ productCodes: ["KENDOUIVUE"],
13
+ publishDate: 1754905645,
14
+ version: "7.0.0-develop.7",
15
+ licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
16
+ };
17
+ export {
18
+ e as packageMetadata
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-conversational-ui",
3
- "version": "7.0.0-develop.5",
3
+ "version": "7.0.0-develop.7",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -19,12 +19,12 @@
19
19
  "sideEffects": false,
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-licensing": "^1.7.0",
22
- "@progress/kendo-vue-buttons": "7.0.0-develop.5",
23
- "@progress/kendo-vue-common": "7.0.0-develop.5",
24
- "@progress/kendo-vue-intl": "7.0.0-develop.5",
25
- "@progress/kendo-vue-inputs": "7.0.0-develop.5",
26
- "@progress/kendo-vue-layout": "7.0.0-develop.5",
27
- "@progress/kendo-svg-icons": "^4.0.0",
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
+ "@progress/kendo-svg-icons": "^4.4.0",
28
28
  "vue": "^3.0.2"
29
29
  },
30
30
  "dependencies": {},
@@ -40,7 +40,13 @@
40
40
  ],
41
41
  "@progress": {
42
42
  "friendlyName": "ConversationalUi",
43
- "framework": "Kendo UI for Vue"
43
+ "framework": "Kendo UI for Vue",
44
+ "package": {
45
+ "productName": "Kendo UI for Vue",
46
+ "productCode": "KENDOUIVUE",
47
+ "publishDate": 1754905645,
48
+ "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
49
+ }
44
50
  },
45
51
  "publishConfig": {
46
52
  "access": "public"