@progress/kendo-vue-editor 8.0.2-develop.2 → 8.0.2-develop.3

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/Editor.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 n=require("vue"),q=require("@progress/kendo-vue-buttons"),d=require("@progress/kendo-vue-common"),r=require("@progress/kendo-editor-common"),_=require("./config/schema.js"),P=require("./config/defaultStyles.js"),t=require("./config/toolsSettings.js"),x=require("./dialogs/insertLink.js"),T=require("./utils/main.js"),O=require("./utils/props-key.js"),z=require("./utils/controlled-value.js"),A=require("./utils/cleanup.js"),B=require("./utils/browser-detection.js"),M=require("./package-metadata.js"),L=require("./tools/align.js"),W=require("./tools/indent.js"),I=require("./tools/lists.js"),G=require("./tools/outdent.js"),y=require("./tools/inlineFormat.js"),N=require("./tools/fontStyle.js"),j=require("./tools/formatBlock.js"),g=require("./tools/proseMirrorTool.js"),R=require("./tools/insertLink.js"),K=require("./tools/unlink.js"),J=require("./tools/cleanFormatting.js"),Q=require("./tools/selectAll.js"),X=require("./tools/insertImage.js"),Y=require("./tools/insertTable/tool.js"),Z=require("./tools/viewHtml.js"),ee=require("./tools/pdf.js"),te=require("./tools/print.js"),ie=require("./tools/findReplace.js"),H=require("./tools/applyColor.js"),v=require("./messages/main.js"),oe=require("@progress/kendo-vue-intl"),{link:D,bold:se,italic:re,underline:ne}=t.EditorToolsSettings;function U(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const b={Bold:{comp:y.InlineFormat,props:t.EditorToolsSettings.bold},Italic:{comp:y.InlineFormat,props:t.EditorToolsSettings.italic},Underline:{comp:y.InlineFormat,props:t.EditorToolsSettings.underline},Strikethrough:{comp:y.InlineFormat,props:t.EditorToolsSettings.strikethrough},Subscript:{comp:y.InlineFormat,props:t.EditorToolsSettings.subscript},Superscript:{comp:y.InlineFormat,props:t.EditorToolsSettings.superscript},AlignLeft:{comp:L.Align,props:t.EditorToolsSettings.alignLeft},AlignCenter:{comp:L.Align,props:t.EditorToolsSettings.alignCenter},AlignRight:{comp:L.Align,props:t.EditorToolsSettings.alignRight},AlignJustify:{comp:L.Align,props:t.EditorToolsSettings.alignJustify},Indent:{comp:W.Indent,props:t.EditorToolsSettings.indent},Outdent:{comp:G.Outdent,props:t.EditorToolsSettings.outdent},OrderedList:{comp:I.List,props:t.EditorToolsSettings.orderedList},UnorderedList:{comp:I.List,props:t.EditorToolsSettings.bulletList},FontSize:{comp:N.FontName,props:t.EditorToolsSettings.fontSize},FontName:{comp:N.FontName,props:t.EditorToolsSettings.fontName},FormatBlock:{comp:j.FormatBlock,props:t.EditorToolsSettings.formatBlock},Undo:{comp:g.ProseMirror,props:t.EditorToolsSettings.undo},Redo:{comp:g.ProseMirror,props:t.EditorToolsSettings.redo},Link:{comp:R.LinkTool,props:t.EditorToolsSettings.link},Unlink:{comp:K.Unlink,props:t.EditorToolsSettings.unlink},InsertImage:{comp:X.InsertImage,props:t.EditorToolsSettings.image},ViewHtml:{comp:Z.ViewHtml,props:t.EditorToolsSettings.viewHtml},CleanFormatting:{comp:J.CleanFormatting,props:t.EditorToolsSettings.cleanFormatting},SelectAll:{comp:Q.SelectAll,props:t.EditorToolsSettings.selectAll},InsertTable:{comp:Y.InsertTable,props:t.EditorToolsSettings.insertTable},MergeCells:{comp:g.ProseMirror,props:t.EditorToolsSettings.mergeCells},SplitCell:{comp:g.ProseMirror,props:t.EditorToolsSettings.splitCell},AddRowBefore:{comp:g.ProseMirror,props:t.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:g.ProseMirror,props:t.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:g.ProseMirror,props:t.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:g.ProseMirror,props:t.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteRow},DeleteColumn:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteColumn},DeleteTable:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteTable},Print:{comp:te.Print,props:t.EditorToolsSettings.print},Pdf:{comp:ee.Pdf,props:t.EditorToolsSettings.pdf},InsertFile:{comp:R.LinkTool,props:t.EditorToolsSettings.insertFile},FindAndReplace:{comp:ie.FindAndReplace,props:t.EditorToolsSettings.findAndReplace},ForeColor:{comp:H.ApplyColor,props:t.EditorToolsSettings.foreColor},BackColor:{comp:H.ApplyColor,props:t.EditorToolsSettings.backColor}},le=n.defineComponent({name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},inject:{kendoLocalizationService:{default:null}},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function,ariaDescribedBy:String,ariaLabelledBy:String,ariaLabel:String},data(){return{updateGuid:d.guid(),view:void 0,linkDialog:!1,showLicenseWatermark:!1,licenseMessage:void 0}},created(){this._view=void 0,this.trOnChange=null,this.valueisUpdated=!1,this._prevValue=this.$props.value,this.pluginViews=[],d.validatePackage(M.packageMetadata),this.showLicenseWatermark=d.shouldShowValidationUI(M.packageMetadata),this.licenseMessage=d.getLicenseMessage(M.packageMetadata)},mounted(){this.iframe=d.getRef(this,"iframe"),this.contentElement=d.getRef(this,"contentElement"),(!this.iframe||!B.firefox)&&this.initialize()},watch:{value:function(e,i){this.valueisUpdated=!0,this._prevValue=i}},updated(){const{value:e}=this.$props,i=this.getView();e===void 0||!this.valueisUpdated||!i||(z.updateEditorValue(i,this.computedValue(),this._prevValue,this.trOnChange,this.htmlOnChange),this.valueisUpdated=!1,this.trOnChange=null,this.htmlOnChange=null)},beforeUnmount(){var p,m;this.iframe&&(this.iframe.src="about:blank");const e=this.iframe,i=this.contentElement,s=this.getView();if(s){(p=this.pluginViews)==null||p.forEach(c=>{var S;(S=c==null?void 0:c.destroy)==null||S.call(c)});const f=A.cleanupAndDestroyProseMirrorView(s);(m=f==null?void 0:f.parentNode)==null||m.removeChild(f)}this.view&&A.nullifyObjectProperties(this.view),this.view=void 0,this._view=null,this.trOnChange=null,this.htmlOnChange=null,this.pasteEvent=void 0,this.valueisUpdated=!1,this._prevValue=void 0,this.pluginViews&&(this.pluginViews.length=0,this.pluginViews=null),this.iframe=void 0,this.contentElement=void 0,e&&A.cleanupIframe(e,i),this.updateGuid=void 0,this.linkDialog=!1},unmounted(){this.view=void 0,this._view=null,this.iframe=void 0,this.contentElement=void 0,this.pluginViews=null},render(){let e=100;const{tools:i=[],defaultEditMode:s="iframe",preserveWhitespace:p="full",style:m,value:f}=this.$props,c=this.getView(),S=oe.provideLocalizationService(this),E=this.showLicenseWatermark?n.createVNode(d.WatermarkOverlay,{message:this.licenseMessage},null):null;if(this.view){const o=O.editorPropsKey.getState(this.view.state);o.preserveWhitespace=p}let k=this.$props.contentStyle;k===void 0&&(m||{}).height===void 0&&(k={height:"300px"});const C=function(){return this.linkDialog&&n.createVNode(x.InsertLinkDialog,{view:c,settings:D,dir:this.$props.dir,onClose:this.handleClose},null)},V=function(o,u){const h=b[o]||o,F=function(){let w;return o==="ForeColor"?w=S.toLanguageString(v.keys.foregroundColorAriaLabel,v.messages[v.keys.foregroundColorAriaLabel]):o==="BackColor"&&(w=S.toLanguageString(v.keys.backgroundColor,v.messages[v.keys.backgroundColor])),w};if(b[o]){e++;const w={view:c,dir:this.$props.dir,key:e,updateGuid:this.updateGuid,settings:b[o].props,...b[o].props,ariaLabel:F()};return n.h(n.markRaw(b[o].comp),w)}else{if(h==="Separator")return n.createVNode(q.ToolbarSeparator,{key:e},null);{const w=d.templateRendering.call(this,h.render,d.getListeners.call(this));return d.getTemplate.call(this,{h:n.h,template:w,defaultRendering:null,additionalListeners:{},additionalProps:{view:c,dir:this.$props.dir,updateGuid:this.updateGuid,key:e,settings:h.props}})}}},l=function(o,u){return o.map(function(h){return V.call(this,h,u)},this)},a=i.map(function(o,u){let h;return Array.isArray(o)?n.createVNode(q.ButtonGroup,{key:u},U(h=l.call(this,o,u))?h:{default:()=>[h]}):V.call(this,o,u)},this);return n.createVNode("div",{class:d.classNames("k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir},[a.length>0&&n.createVNode(q.Toolbar,{overflow:"none",class:"k-editor-toolbar",keyboardNavigation:this.$props.keyboardNavigation},U(a)?a:{default:()=>[a]}),s==="iframe"?n.createVNode("div",{class:"k-editor-content"},[n.createVNode("iframe",{onLoad:this.iframeLoad,ref:d.setRef(this,"iframe"),frameborder:"0",title:S.toLanguageString(v.keys.iframeTitle,v.messages[v.keys.iframeTitle]),style:k,class:"k-iframe"},null)]):n.createVNode("div",{style:k,class:"k-editor-content"},[n.createVNode("div",{ref:d.setRef(this,"contentElement"),role:"textbox","aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-label":this.$props.ariaLabel},null)]),C.call(this),E])},methods:{getView(){return this.view},getHTML(){const e=this.getView();return e?T.EditorUtils.getHtml(e.state):""},setHTML(e){const i=this.getView();i&&T.EditorUtils.setHtml(i,e)},focus(){this.getView()&&this.getView().focus()},updateTools(e){this.view=e,this.updateGuid=d.guid()},iframeLoad(){B.firefox&&this.initialize()},initialize(){const e=this.iframe&&this.iframe.contentWindow;if(e){const l=e.document;[P.defaultStyle,P.tablesStyles,this.$props.dir==="rtl"?P.rtlStyles:void 0].forEach(o=>{if(o){const u=l.createElement("style");u.appendChild(l.createTextNode(o)),l.head.appendChild(u)}});const a=l.createElement("meta");a.setAttribute("charset","utf-8"),l.head.appendChild(a),this.contentElement=l.createElement("div"),l.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content"),this.contentElement.setAttribute("role","main")}const i=this.contentElement;if(!i)return;const{preserveWhitespace:s="full"}=this.$props,p=this,m=function(l){p.view=l,p.updateGuid=d.guid()};let f=[new r.Plugin({view:l=>{const a={update:m,destroy:()=>{const o=p.pluginViews.indexOf(a);o>-1&&p.pluginViews.splice(o,1)}};return p.pluginViews.push(a),a},key:new r.PluginKey("toolbar-tools-update-plugin")}),new r.Plugin({filterTransaction:this.filterTransaction,key:new r.PluginKey("onExecute-event-plugin")}),new r.Plugin({key:O.editorPropsKey,state:{init:()=>({preserveWhitespace:s}),apply:(l,a)=>a}}),r.spacesFix(),r.history(),r.dropCursor(),r.gapCursor(),r.tableEditing()],c={...T.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:se,italic:re,underline:ne}}),"Mod-k":()=>{const{linkDialog:l}=this.$data,a=this.getView();if(a){const o=a.state,u=o.selection.empty,h=r.getMark(o,o.schema.marks[D.mark]);!l&&!(u&&!h)&&(this.linkDialog=!0)}return!l}};const{defaultContent:S="",value:E}=this.$props,$=E&&typeof E!="string"?n.toRaw(E):T.EditorUtils.createDocument(new r.Schema({nodes:_.nodes,marks:r.marks}),E||S,{preserveWhitespace:s}),k={state:r.EditorState.create({plugins:[...f,r.keymap(c),r.keymap(r.baseKeymap)],doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},C={plugins:f,shortcuts:c,target:p,viewProps:k,dom:i};this.$emit("loaded",C);const V=this.$props.extendView&&this.$props.extendView(C)||new r.EditorView({mount:i},k);this.view=n.markRaw(V)},filterTransaction(e,i){const s={target:this,transaction:e,state:i};return this.$emit("execute",s),!0},onPasteHtml(e){if(this.$props.pasteHtml&&this.pasteEvent){const i={target:this,pastedHtml:e,event:this.pasteEvent},s=this.$props.pasteHtml(i);if(this.pasteEvent=void 0,typeof s=="string")return s}return e},dispatchTransaction(e){const i=e.docChanged;if(i){this.trOnChange=e;const s=e.doc,p=e.doc.type.schema,m=this,f={target:m,value:s,get html(){return m.htmlOnChange=T.EditorUtils.getHtml({doc:s,schema:p}),m.htmlOnChange},transaction:e,schema:p};this.$emit("change",f)}this.getView()&&(this.$props.value===void 0||!i)&&this.getView().updateState(this.getView().state.apply(e))},onFocus(e,i){const s={target:this,event:i};return this.$emit("focus",s),!1},onBlur(e,i){const s={target:this,event:i};return this.$emit("blur",s),!1},onPaste(e,i){return this.$props.pasteHtml&&(this.pasteEvent=i),!1},handleClose(){this.linkDialog=!1},computedValue(){return this.trOnChange!==null?this.trOnChange.doc:this.$props.value!==void 0?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}}});exports.Editor=le;exports.allTools=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),P=require("@progress/kendo-vue-buttons"),d=require("@progress/kendo-vue-common"),n=require("@progress/kendo-editor-common"),_=require("./config/schema.js"),q=require("./config/defaultStyles.js"),t=require("./config/toolsSettings.js"),D=require("./dialogs/insertLink.js"),b=require("./utils/main.js"),O=require("./utils/props-key.js"),x=require("./utils/controlled-value.js"),A=require("./utils/cleanup.js"),M=require("./package-metadata.js"),L=require("./tools/align.js"),W=require("./tools/indent.js"),B=require("./tools/lists.js"),z=require("./tools/outdent.js"),y=require("./tools/inlineFormat.js"),I=require("./tools/fontStyle.js"),G=require("./tools/formatBlock.js"),g=require("./tools/proseMirrorTool.js"),N=require("./tools/insertLink.js"),j=require("./tools/unlink.js"),K=require("./tools/cleanFormatting.js"),J=require("./tools/selectAll.js"),Q=require("./tools/insertImage.js"),X=require("./tools/insertTable/tool.js"),Y=require("./tools/viewHtml.js"),Z=require("./tools/pdf.js"),ee=require("./tools/print.js"),te=require("./tools/findReplace.js"),R=require("./tools/applyColor.js"),v=require("./messages/main.js"),ie=require("@progress/kendo-vue-intl"),{link:H,bold:oe,italic:se,underline:ne}=t.EditorToolsSettings;function U(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const T={Bold:{comp:y.InlineFormat,props:t.EditorToolsSettings.bold},Italic:{comp:y.InlineFormat,props:t.EditorToolsSettings.italic},Underline:{comp:y.InlineFormat,props:t.EditorToolsSettings.underline},Strikethrough:{comp:y.InlineFormat,props:t.EditorToolsSettings.strikethrough},Subscript:{comp:y.InlineFormat,props:t.EditorToolsSettings.subscript},Superscript:{comp:y.InlineFormat,props:t.EditorToolsSettings.superscript},AlignLeft:{comp:L.Align,props:t.EditorToolsSettings.alignLeft},AlignCenter:{comp:L.Align,props:t.EditorToolsSettings.alignCenter},AlignRight:{comp:L.Align,props:t.EditorToolsSettings.alignRight},AlignJustify:{comp:L.Align,props:t.EditorToolsSettings.alignJustify},Indent:{comp:W.Indent,props:t.EditorToolsSettings.indent},Outdent:{comp:z.Outdent,props:t.EditorToolsSettings.outdent},OrderedList:{comp:B.List,props:t.EditorToolsSettings.orderedList},UnorderedList:{comp:B.List,props:t.EditorToolsSettings.bulletList},FontSize:{comp:I.FontName,props:t.EditorToolsSettings.fontSize},FontName:{comp:I.FontName,props:t.EditorToolsSettings.fontName},FormatBlock:{comp:G.FormatBlock,props:t.EditorToolsSettings.formatBlock},Undo:{comp:g.ProseMirror,props:t.EditorToolsSettings.undo},Redo:{comp:g.ProseMirror,props:t.EditorToolsSettings.redo},Link:{comp:N.LinkTool,props:t.EditorToolsSettings.link},Unlink:{comp:j.Unlink,props:t.EditorToolsSettings.unlink},InsertImage:{comp:Q.InsertImage,props:t.EditorToolsSettings.image},ViewHtml:{comp:Y.ViewHtml,props:t.EditorToolsSettings.viewHtml},CleanFormatting:{comp:K.CleanFormatting,props:t.EditorToolsSettings.cleanFormatting},SelectAll:{comp:J.SelectAll,props:t.EditorToolsSettings.selectAll},InsertTable:{comp:X.InsertTable,props:t.EditorToolsSettings.insertTable},MergeCells:{comp:g.ProseMirror,props:t.EditorToolsSettings.mergeCells},SplitCell:{comp:g.ProseMirror,props:t.EditorToolsSettings.splitCell},AddRowBefore:{comp:g.ProseMirror,props:t.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:g.ProseMirror,props:t.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:g.ProseMirror,props:t.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:g.ProseMirror,props:t.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteRow},DeleteColumn:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteColumn},DeleteTable:{comp:g.ProseMirror,props:t.EditorToolsSettings.deleteTable},Print:{comp:ee.Print,props:t.EditorToolsSettings.print},Pdf:{comp:Z.Pdf,props:t.EditorToolsSettings.pdf},InsertFile:{comp:N.LinkTool,props:t.EditorToolsSettings.insertFile},FindAndReplace:{comp:te.FindAndReplace,props:t.EditorToolsSettings.findAndReplace},ForeColor:{comp:R.ApplyColor,props:t.EditorToolsSettings.foreColor},BackColor:{comp:R.ApplyColor,props:t.EditorToolsSettings.backColor}},re=r.defineComponent({name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},inject:{kendoLocalizationService:{default:null}},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function,ariaDescribedBy:String,ariaLabelledBy:String,ariaLabel:String},data(){return{updateGuid:d.guid(),view:void 0,linkDialog:!1,showLicenseWatermark:!1,licenseMessage:void 0}},created(){this._view=void 0,this.trOnChange=null,this.valueisUpdated=!1,this._prevValue=this.$props.value,this.pluginViews=[],d.validatePackage(M.packageMetadata),this.showLicenseWatermark=d.shouldShowValidationUI(M.packageMetadata),this.licenseMessage=d.getLicenseMessage(M.packageMetadata)},mounted(){this.iframe=d.getRef(this,"iframe"),this.contentElement=d.getRef(this,"contentElement"),this.initialize()},watch:{value:function(e,i){this.valueisUpdated=!0,this._prevValue=i}},updated(){const{value:e}=this.$props,i=this.getView();e===void 0||!this.valueisUpdated||!i||(x.updateEditorValue(i,this.computedValue(),this._prevValue,this.trOnChange,this.htmlOnChange),this.valueisUpdated=!1,this.trOnChange=null,this.htmlOnChange=null)},beforeUnmount(){var p,m;this.iframe&&(this.iframe.src="about:blank");const e=this.iframe,i=this.contentElement,s=this.getView();if(s){(p=this.pluginViews)==null||p.forEach(c=>{var S;(S=c==null?void 0:c.destroy)==null||S.call(c)});const f=A.cleanupAndDestroyProseMirrorView(s);(m=f==null?void 0:f.parentNode)==null||m.removeChild(f)}this.view&&A.nullifyObjectProperties(this.view),this.view=void 0,this._view=null,this.trOnChange=null,this.htmlOnChange=null,this.pasteEvent=void 0,this.valueisUpdated=!1,this._prevValue=void 0,this.pluginViews&&(this.pluginViews.length=0,this.pluginViews=null),this.iframe=void 0,this.contentElement=void 0,e&&A.cleanupIframe(e,i),this.updateGuid=void 0,this.linkDialog=!1},unmounted(){this.view=void 0,this._view=null,this.iframe=void 0,this.contentElement=void 0,this.pluginViews=null},render(){let e=100;const{tools:i=[],defaultEditMode:s="iframe",preserveWhitespace:p="full",style:m,value:f}=this.$props,c=this.getView(),S=ie.provideLocalizationService(this),w=this.showLicenseWatermark?r.createVNode(d.WatermarkOverlay,{message:this.licenseMessage},null):null;if(this.view){const o=O.editorPropsKey.getState(this.view.state);o.preserveWhitespace=p}let k=this.$props.contentStyle;k===void 0&&(m||{}).height===void 0&&(k={height:"300px"});const C=function(){return this.linkDialog&&r.createVNode(D.InsertLinkDialog,{view:c,settings:H,dir:this.$props.dir,onClose:this.handleClose},null)},V=function(o,u){const h=T[o]||o,F=function(){let E;return o==="ForeColor"?E=S.toLanguageString(v.keys.foregroundColorAriaLabel,v.messages[v.keys.foregroundColorAriaLabel]):o==="BackColor"&&(E=S.toLanguageString(v.keys.backgroundColor,v.messages[v.keys.backgroundColor])),E};if(T[o]){e++;const E={view:c,dir:this.$props.dir,key:e,updateGuid:this.updateGuid,settings:T[o].props,...T[o].props,ariaLabel:F()};return r.h(r.markRaw(T[o].comp),E)}else{if(h==="Separator")return r.createVNode(P.ToolbarSeparator,{key:e},null);{const E=d.templateRendering.call(this,h.render,d.getListeners.call(this));return d.getTemplate.call(this,{h:r.h,template:E,defaultRendering:null,additionalListeners:{},additionalProps:{view:c,dir:this.$props.dir,updateGuid:this.updateGuid,key:e,settings:h.props}})}}},l=function(o,u){return o.map(function(h){return V.call(this,h,u)},this)},a=i.map(function(o,u){let h;return Array.isArray(o)?r.createVNode(P.ButtonGroup,{key:u},U(h=l.call(this,o,u))?h:{default:()=>[h]}):V.call(this,o,u)},this);return r.createVNode("div",{class:d.classNames("k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir},[a.length>0&&r.createVNode(P.Toolbar,{overflow:"none",class:"k-editor-toolbar",keyboardNavigation:this.$props.keyboardNavigation},U(a)?a:{default:()=>[a]}),s==="iframe"?r.createVNode("div",{class:"k-editor-content"},[r.createVNode("iframe",{ref:d.setRef(this,"iframe"),title:S.toLanguageString(v.keys.iframeTitle,v.messages[v.keys.iframeTitle]),style:k,class:"k-iframe"},null)]):r.createVNode("div",{style:k,class:"k-editor-content"},[r.createVNode("div",{ref:d.setRef(this,"contentElement"),role:"textbox","aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-label":this.$props.ariaLabel},null)]),C.call(this),w])},methods:{getView(){return this.view},getHTML(){const e=this.getView();return e?b.EditorUtils.getHtml(e.state):""},setHTML(e){const i=this.getView();i&&b.EditorUtils.setHtml(i,e)},focus(){this.getView()&&this.getView().focus()},updateTools(e){this.view=e,this.updateGuid=d.guid()},initialize(){const e=this.iframe&&this.iframe.contentWindow;if(e){const l=e.document;[q.defaultStyle,q.tablesStyles,this.$props.dir==="rtl"?q.rtlStyles:void 0].forEach(o=>{if(o){const u=l.createElement("style");u.appendChild(l.createTextNode(o)),l.head.appendChild(u)}});const a=l.createElement("meta");a.setAttribute("charset","utf-8"),l.head.appendChild(a),this.contentElement=l.createElement("div"),l.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content"),this.contentElement.setAttribute("role","main")}const i=this.contentElement;if(!i)return;const{preserveWhitespace:s="full"}=this.$props,p=this,m=function(l){p.view=l,p.updateGuid=d.guid()};let f=[new n.Plugin({view:l=>{const a={update:m,destroy:()=>{const o=p.pluginViews.indexOf(a);o>-1&&p.pluginViews.splice(o,1)}};return p.pluginViews.push(a),a},key:new n.PluginKey("toolbar-tools-update-plugin")}),new n.Plugin({filterTransaction:this.filterTransaction,key:new n.PluginKey("onExecute-event-plugin")}),new n.Plugin({key:O.editorPropsKey,state:{init:()=>({preserveWhitespace:s}),apply:(l,a)=>a}}),n.spacesFix(),n.history(),n.dropCursor(),n.gapCursor(),n.tableEditing()],c={...b.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:oe,italic:se,underline:ne}}),"Mod-k":()=>{const{linkDialog:l}=this.$data,a=this.getView();if(a){const o=a.state,u=o.selection.empty,h=n.getMark(o,o.schema.marks[H.mark]);!l&&!(u&&!h)&&(this.linkDialog=!0)}return!l}};const{defaultContent:S="",value:w}=this.$props,$=w&&typeof w!="string"?r.toRaw(w):b.EditorUtils.createDocument(new n.Schema({nodes:_.nodes,marks:n.marks}),w||S,{preserveWhitespace:s}),k={state:n.EditorState.create({plugins:[...f,n.keymap(c),n.keymap(n.baseKeymap)],doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},C={plugins:f,shortcuts:c,target:p,viewProps:k,dom:i};this.$emit("loaded",C);const V=this.$props.extendView&&this.$props.extendView(C)||new n.EditorView({mount:i},k);this.view=r.markRaw(V)},filterTransaction(e,i){const s={target:this,transaction:e,state:i};return this.$emit("execute",s),!0},onPasteHtml(e){if(this.$props.pasteHtml&&this.pasteEvent){const i={target:this,pastedHtml:e,event:this.pasteEvent},s=this.$props.pasteHtml(i);if(this.pasteEvent=void 0,typeof s=="string")return s}return e},dispatchTransaction(e){const i=e.docChanged;if(i){this.trOnChange=e;const s=e.doc,p=e.doc.type.schema,m=this,f={target:m,value:s,get html(){return m.htmlOnChange=b.EditorUtils.getHtml({doc:s,schema:p}),m.htmlOnChange},transaction:e,schema:p};this.$emit("change",f)}this.getView()&&(this.$props.value===void 0||!i)&&this.getView().updateState(this.getView().state.apply(e))},onFocus(e,i){const s={target:this,event:i};return this.$emit("focus",s),!1},onBlur(e,i){const s={target:this,event:i};return this.$emit("blur",s),!1},onPaste(e,i){return this.$props.pasteHtml&&(this.pasteEvent=i),!1},handleClose(){this.linkDialog=!1},computedValue(){return this.trOnChange!==null?this.trOnChange.doc:this.$props.value!==void 0?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}}});exports.Editor=re;exports.allTools=T;
package/Editor.mjs CHANGED
@@ -5,49 +5,48 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as j, toRaw as K, markRaw as P, createVNode as h, h as T, isVNode as J } from "vue";
9
- import { ButtonGroup as q, Toolbar as Q, ToolbarSeparator as X } from "@progress/kendo-vue-buttons";
10
- import { guid as V, WatermarkOverlay as Y, classNames as Z, setRef as M, getRef as R, validatePackage as ee, shouldShowValidationUI as te, getLicenseMessage as ie, templateRendering as oe, getListeners as se, getTemplate as re } from "@progress/kendo-vue-common";
11
- import { Plugin as $, spacesFix as ne, history as ae, dropCursor as le, gapCursor as pe, tableEditing as de, PluginKey as H, Schema as ce, marks as me, EditorState as ue, keymap as _, baseKeymap as he, EditorView as fe, getMark as ge } from "@progress/kendo-editor-common";
12
- import { nodes as ve } from "./config/schema.mjs";
13
- import { defaultStyle as we, tablesStyles as be, rtlStyles as ke } from "./config/defaultStyles.mjs";
8
+ import { defineComponent as G, toRaw as j, markRaw as P, createVNode as h, h as T, isVNode as K } from "vue";
9
+ import { ButtonGroup as J, Toolbar as q, ToolbarSeparator as Q } from "@progress/kendo-vue-buttons";
10
+ import { guid as L, WatermarkOverlay as X, classNames as Y, setRef as M, getRef as R, validatePackage as Z, shouldShowValidationUI as ee, getLicenseMessage as te, templateRendering as ie, getListeners as oe, getTemplate as se } from "@progress/kendo-vue-common";
11
+ import { Plugin as $, spacesFix as ne, history as re, dropCursor as ae, gapCursor as le, tableEditing as pe, PluginKey as H, Schema as de, marks as ce, EditorState as me, keymap as _, baseKeymap as ue, EditorView as he, getMark as fe } from "@progress/kendo-editor-common";
12
+ import { nodes as ge } from "./config/schema.mjs";
13
+ import { defaultStyle as ve, tablesStyles as we, rtlStyles as be } from "./config/defaultStyles.mjs";
14
14
  import { EditorToolsSettings as t } from "./config/toolsSettings.mjs";
15
- import { InsertLinkDialog as ye } from "./dialogs/insertLink.mjs";
15
+ import { InsertLinkDialog as ke } from "./dialogs/insertLink.mjs";
16
16
  import { EditorUtils as y } from "./utils/main.mjs";
17
- import { editorPropsKey as x } from "./utils/props-key.mjs";
18
- import { updateEditorValue as Ce } from "./utils/controlled-value.mjs";
19
- import { cleanupAndDestroyProseMirrorView as Se, nullifyObjectProperties as Le, cleanupIframe as Ee } from "./utils/cleanup.mjs";
20
- import { firefox as D } from "./utils/browser-detection.mjs";
17
+ import { editorPropsKey as D } from "./utils/props-key.mjs";
18
+ import { updateEditorValue as ye } from "./utils/controlled-value.mjs";
19
+ import { cleanupAndDestroyProseMirrorView as Ce, nullifyObjectProperties as Se, cleanupIframe as Ee } from "./utils/cleanup.mjs";
21
20
  import { packageMetadata as A } from "./package-metadata.mjs";
22
- import { Align as E } from "./tools/align.mjs";
21
+ import { Align as V } from "./tools/align.mjs";
23
22
  import { Indent as Ve } from "./tools/indent.mjs";
24
- import { List as I } from "./tools/lists.mjs";
25
- import { Outdent as $e } from "./tools/outdent.mjs";
23
+ import { List as x } from "./tools/lists.mjs";
24
+ import { Outdent as Le } from "./tools/outdent.mjs";
26
25
  import { InlineFormat as b } from "./tools/inlineFormat.mjs";
27
- import { FontName as U } from "./tools/fontStyle.mjs";
28
- import { FormatBlock as Ae } from "./tools/formatBlock.mjs";
26
+ import { FontName as I } from "./tools/fontStyle.mjs";
27
+ import { FormatBlock as $e } from "./tools/formatBlock.mjs";
29
28
  import { ProseMirror as c } from "./tools/proseMirrorTool.mjs";
30
- import { LinkTool as N } from "./tools/insertLink.mjs";
31
- import { Unlink as Oe } from "./tools/unlink.mjs";
32
- import { CleanFormatting as Be } from "./tools/cleanFormatting.mjs";
33
- import { SelectAll as Fe } from "./tools/selectAll.mjs";
34
- import { InsertImage as Pe } from "./tools/insertImage.mjs";
35
- import { InsertTable as Te } from "./tools/insertTable/tool.mjs";
36
- import { ViewHtml as Me } from "./tools/viewHtml.mjs";
37
- import { Pdf as Re } from "./tools/pdf.mjs";
38
- import { Print as He } from "./tools/print.mjs";
39
- import { FindAndReplace as _e } from "./tools/findReplace.mjs";
40
- import { ApplyColor as z } from "./tools/applyColor.mjs";
29
+ import { LinkTool as U } from "./tools/insertLink.mjs";
30
+ import { Unlink as Ae } from "./tools/unlink.mjs";
31
+ import { CleanFormatting as Oe } from "./tools/cleanFormatting.mjs";
32
+ import { SelectAll as Be } from "./tools/selectAll.mjs";
33
+ import { InsertImage as Fe } from "./tools/insertImage.mjs";
34
+ import { InsertTable as Pe } from "./tools/insertTable/tool.mjs";
35
+ import { ViewHtml as Te } from "./tools/viewHtml.mjs";
36
+ import { Pdf as Me } from "./tools/pdf.mjs";
37
+ import { Print as Re } from "./tools/print.mjs";
38
+ import { FindAndReplace as He } from "./tools/findReplace.mjs";
39
+ import { ApplyColor as N } from "./tools/applyColor.mjs";
41
40
  import { keys as k, messages as O } from "./messages/main.mjs";
42
- import { provideLocalizationService as xe } from "@progress/kendo-vue-intl";
41
+ import { provideLocalizationService as _e } from "@progress/kendo-vue-intl";
43
42
  const {
44
43
  link: W,
45
44
  bold: De,
46
- italic: Ie,
47
- underline: Ue
45
+ italic: xe,
46
+ underline: Ie
48
47
  } = t;
49
- function G(e) {
50
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !J(e);
48
+ function z(e) {
49
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !K(e);
51
50
  }
52
51
  const C = {
53
52
  Bold: {
@@ -75,19 +74,19 @@ const C = {
75
74
  props: t.superscript
76
75
  },
77
76
  AlignLeft: {
78
- comp: E,
77
+ comp: V,
79
78
  props: t.alignLeft
80
79
  },
81
80
  AlignCenter: {
82
- comp: E,
81
+ comp: V,
83
82
  props: t.alignCenter
84
83
  },
85
84
  AlignRight: {
86
- comp: E,
85
+ comp: V,
87
86
  props: t.alignRight
88
87
  },
89
88
  AlignJustify: {
90
- comp: E,
89
+ comp: V,
91
90
  props: t.alignJustify
92
91
  },
93
92
  Indent: {
@@ -95,27 +94,27 @@ const C = {
95
94
  props: t.indent
96
95
  },
97
96
  Outdent: {
98
- comp: $e,
97
+ comp: Le,
99
98
  props: t.outdent
100
99
  },
101
100
  OrderedList: {
102
- comp: I,
101
+ comp: x,
103
102
  props: t.orderedList
104
103
  },
105
104
  UnorderedList: {
106
- comp: I,
105
+ comp: x,
107
106
  props: t.bulletList
108
107
  },
109
108
  FontSize: {
110
- comp: U,
109
+ comp: I,
111
110
  props: t.fontSize
112
111
  },
113
112
  FontName: {
114
- comp: U,
113
+ comp: I,
115
114
  props: t.fontName
116
115
  },
117
116
  FormatBlock: {
118
- comp: Ae,
117
+ comp: $e,
119
118
  props: t.formatBlock
120
119
  },
121
120
  Undo: {
@@ -127,31 +126,31 @@ const C = {
127
126
  props: t.redo
128
127
  },
129
128
  Link: {
130
- comp: N,
129
+ comp: U,
131
130
  props: t.link
132
131
  },
133
132
  Unlink: {
134
- comp: Oe,
133
+ comp: Ae,
135
134
  props: t.unlink
136
135
  },
137
136
  InsertImage: {
138
- comp: Pe,
137
+ comp: Fe,
139
138
  props: t.image
140
139
  },
141
140
  ViewHtml: {
142
- comp: Me,
141
+ comp: Te,
143
142
  props: t.viewHtml
144
143
  },
145
144
  CleanFormatting: {
146
- comp: Be,
145
+ comp: Oe,
147
146
  props: t.cleanFormatting
148
147
  },
149
148
  SelectAll: {
150
- comp: Fe,
149
+ comp: Be,
151
150
  props: t.selectAll
152
151
  },
153
152
  InsertTable: {
154
- comp: Te,
153
+ comp: Pe,
155
154
  props: t.insertTable
156
155
  },
157
156
  MergeCells: {
@@ -191,30 +190,30 @@ const C = {
191
190
  props: t.deleteTable
192
191
  },
193
192
  Print: {
194
- comp: He,
193
+ comp: Re,
195
194
  props: t.print
196
195
  },
197
196
  Pdf: {
198
- comp: Re,
197
+ comp: Me,
199
198
  props: t.pdf
200
199
  },
201
200
  InsertFile: {
202
- comp: N,
201
+ comp: U,
203
202
  props: t.insertFile
204
203
  },
205
204
  FindAndReplace: {
206
- comp: _e,
205
+ comp: He,
207
206
  props: t.findAndReplace
208
207
  },
209
208
  ForeColor: {
210
- comp: z,
209
+ comp: N,
211
210
  props: t.foreColor
212
211
  },
213
212
  BackColor: {
214
- comp: z,
213
+ comp: N,
215
214
  props: t.backColor
216
215
  }
217
- }, St = /* @__PURE__ */ j({
216
+ }, yt = /* @__PURE__ */ G({
218
217
  name: "KendoEditor",
219
218
  emits: {
220
219
  focus: null,
@@ -261,7 +260,7 @@ const C = {
261
260
  },
262
261
  data() {
263
262
  return {
264
- updateGuid: V(),
263
+ updateGuid: L(),
265
264
  view: void 0,
266
265
  linkDialog: !1,
267
266
  showLicenseWatermark: !1,
@@ -269,10 +268,10 @@ const C = {
269
268
  };
270
269
  },
271
270
  created() {
272
- this._view = void 0, this.trOnChange = null, this.valueisUpdated = !1, this._prevValue = this.$props.value, this.pluginViews = [], ee(A), this.showLicenseWatermark = te(A), this.licenseMessage = ie(A);
271
+ this._view = void 0, this.trOnChange = null, this.valueisUpdated = !1, this._prevValue = this.$props.value, this.pluginViews = [], Z(A), this.showLicenseWatermark = ee(A), this.licenseMessage = te(A);
273
272
  },
274
273
  mounted() {
275
- this.iframe = R(this, "iframe"), this.contentElement = R(this, "contentElement"), (!this.iframe || !D) && this.initialize();
274
+ this.iframe = R(this, "iframe"), this.contentElement = R(this, "contentElement"), this.initialize();
276
275
  },
277
276
  watch: {
278
277
  value: function(e, i) {
@@ -283,7 +282,7 @@ const C = {
283
282
  const {
284
283
  value: e
285
284
  } = this.$props, i = this.getView();
286
- e === void 0 || !this.valueisUpdated || !i || (Ce(i, this.computedValue(), this._prevValue, this.trOnChange, this.htmlOnChange), this.valueisUpdated = !1, this.trOnChange = null, this.htmlOnChange = null);
285
+ e === void 0 || !this.valueisUpdated || !i || (ye(i, this.computedValue(), this._prevValue, this.trOnChange, this.htmlOnChange), this.valueisUpdated = !1, this.trOnChange = null, this.htmlOnChange = null);
287
286
  },
288
287
  beforeUnmount() {
289
288
  var a, m;
@@ -294,10 +293,10 @@ const C = {
294
293
  var f;
295
294
  (f = l == null ? void 0 : l.destroy) == null || f.call(l);
296
295
  });
297
- const u = Se(s);
296
+ const u = Ce(s);
298
297
  (m = u == null ? void 0 : u.parentNode) == null || m.removeChild(u);
299
298
  }
300
- this.view && Le(this.view), this.view = void 0, this._view = null, this.trOnChange = null, this.htmlOnChange = null, this.pasteEvent = void 0, this.valueisUpdated = !1, this._prevValue = void 0, this.pluginViews && (this.pluginViews.length = 0, this.pluginViews = null), this.iframe = void 0, this.contentElement = void 0, e && Ee(e, i), this.updateGuid = void 0, this.linkDialog = !1;
299
+ this.view && Se(this.view), this.view = void 0, this._view = null, this.trOnChange = null, this.htmlOnChange = null, this.pasteEvent = void 0, this.valueisUpdated = !1, this._prevValue = void 0, this.pluginViews && (this.pluginViews.length = 0, this.pluginViews = null), this.iframe = void 0, this.contentElement = void 0, e && Ee(e, i), this.updateGuid = void 0, this.linkDialog = !1;
301
300
  },
302
301
  unmounted() {
303
302
  this.view = void 0, this._view = null, this.iframe = void 0, this.contentElement = void 0, this.pluginViews = null;
@@ -310,11 +309,11 @@ const C = {
310
309
  preserveWhitespace: a = "full",
311
310
  style: m,
312
311
  value: u
313
- } = this.$props, l = this.getView(), f = xe(this), w = this.showLicenseWatermark ? h(Y, {
312
+ } = this.$props, l = this.getView(), f = _e(this), w = this.showLicenseWatermark ? h(X, {
314
313
  message: this.licenseMessage
315
314
  }, null) : null;
316
315
  if (this.view) {
317
- const o = x.getState(this.view.state);
316
+ const o = D.getState(this.view.state);
318
317
  o.preserveWhitespace = a;
319
318
  }
320
319
  let g = this.$props.contentStyle;
@@ -322,13 +321,13 @@ const C = {
322
321
  height: "300px"
323
322
  });
324
323
  const S = function() {
325
- return this.linkDialog && h(ye, {
324
+ return this.linkDialog && h(ke, {
326
325
  view: l,
327
326
  settings: W,
328
327
  dir: this.$props.dir,
329
328
  onClose: this.handleClose
330
329
  }, null);
331
- }, L = function(o, p) {
330
+ }, E = function(o, p) {
332
331
  const d = C[o] || o, F = function() {
333
332
  let v;
334
333
  return o === "ForeColor" ? v = f.toLanguageString(k.foregroundColorAriaLabel, O[k.foregroundColorAriaLabel]) : o === "BackColor" && (v = f.toLanguageString(k.backgroundColor, O[k.backgroundColor])), v;
@@ -347,12 +346,12 @@ const C = {
347
346
  return T(P(C[o].comp), v);
348
347
  } else {
349
348
  if (d === "Separator")
350
- return h(X, {
349
+ return h(Q, {
351
350
  key: e
352
351
  }, null);
353
352
  {
354
- const v = oe.call(this, d.render, se.call(this));
355
- return re.call(this, {
353
+ const v = ie.call(this, d.render, oe.call(this));
354
+ return se.call(this, {
356
355
  h: T,
357
356
  template: v,
358
357
  defaultRendering: null,
@@ -367,35 +366,33 @@ const C = {
367
366
  });
368
367
  }
369
368
  }
370
- }, r = function(o, p) {
369
+ }, n = function(o, p) {
371
370
  return o.map(function(d) {
372
- return L.call(this, d, p);
371
+ return E.call(this, d, p);
373
372
  }, this);
374
- }, n = i.map(function(o, p) {
373
+ }, r = i.map(function(o, p) {
375
374
  let d;
376
- return Array.isArray(o) ? h(q, {
375
+ return Array.isArray(o) ? h(J, {
377
376
  key: p
378
- }, G(d = r.call(this, o, p)) ? d : {
377
+ }, z(d = n.call(this, o, p)) ? d : {
379
378
  default: () => [d]
380
- }) : L.call(this, o, p);
379
+ }) : E.call(this, o, p);
381
380
  }, this);
382
381
  return h("div", {
383
- class: Z("k-editor", {
382
+ class: Y("k-editor", {
384
383
  "k-editor-resizable": this.$props.resizable
385
384
  }),
386
385
  dir: this.$props.dir
387
- }, [n.length > 0 && h(Q, {
386
+ }, [r.length > 0 && h(q, {
388
387
  overflow: "none",
389
388
  class: "k-editor-toolbar",
390
389
  keyboardNavigation: this.$props.keyboardNavigation
391
- }, G(n) ? n : {
392
- default: () => [n]
390
+ }, z(r) ? r : {
391
+ default: () => [r]
393
392
  }), s === "iframe" ? h("div", {
394
393
  class: "k-editor-content"
395
394
  }, [h("iframe", {
396
- onLoad: this.iframeLoad,
397
395
  ref: M(this, "iframe"),
398
- frameborder: "0",
399
396
  title: f.toLanguageString(k.iframeTitle, O[k.iframeTitle]),
400
397
  style: g,
401
398
  class: "k-iframe"
@@ -426,44 +423,41 @@ const C = {
426
423
  this.getView() && this.getView().focus();
427
424
  },
428
425
  updateTools(e) {
429
- this.view = e, this.updateGuid = V();
430
- },
431
- iframeLoad() {
432
- D && this.initialize();
426
+ this.view = e, this.updateGuid = L();
433
427
  },
434
428
  initialize() {
435
429
  const e = this.iframe && this.iframe.contentWindow;
436
430
  if (e) {
437
- const r = e.document;
438
- [we, be, this.$props.dir === "rtl" ? ke : void 0].forEach((o) => {
431
+ const n = e.document;
432
+ [ve, we, this.$props.dir === "rtl" ? be : void 0].forEach((o) => {
439
433
  if (o) {
440
- const p = r.createElement("style");
441
- p.appendChild(r.createTextNode(o)), r.head.appendChild(p);
434
+ const p = n.createElement("style");
435
+ p.appendChild(n.createTextNode(o)), n.head.appendChild(p);
442
436
  }
443
437
  });
444
- const n = r.createElement("meta");
445
- n.setAttribute("charset", "utf-8"), r.head.appendChild(n), this.contentElement = r.createElement("div"), r.body.appendChild(this.contentElement), this.contentElement.classList.add("k-content"), this.contentElement.setAttribute("role", "main");
438
+ const r = n.createElement("meta");
439
+ r.setAttribute("charset", "utf-8"), n.head.appendChild(r), this.contentElement = n.createElement("div"), n.body.appendChild(this.contentElement), this.contentElement.classList.add("k-content"), this.contentElement.setAttribute("role", "main");
446
440
  }
447
441
  const i = this.contentElement;
448
442
  if (!i)
449
443
  return;
450
444
  const {
451
445
  preserveWhitespace: s = "full"
452
- } = this.$props, a = this, m = function(r) {
453
- a.view = r, a.updateGuid = V();
446
+ } = this.$props, a = this, m = function(n) {
447
+ a.view = n, a.updateGuid = L();
454
448
  };
455
449
  let u = [
456
450
  // https://prosemirror.net/docs/ref/#state.PluginSpec
457
451
  new $({
458
- view: (r) => {
459
- const n = {
452
+ view: (n) => {
453
+ const r = {
460
454
  update: m,
461
455
  destroy: () => {
462
- const o = a.pluginViews.indexOf(n);
456
+ const o = a.pluginViews.indexOf(r);
463
457
  o > -1 && a.pluginViews.splice(o, 1);
464
458
  }
465
459
  };
466
- return a.pluginViews.push(n), n;
460
+ return a.pluginViews.push(r), r;
467
461
  },
468
462
  key: new H("toolbar-tools-update-plugin")
469
463
  }),
@@ -472,19 +466,19 @@ const C = {
472
466
  key: new H("onExecute-event-plugin")
473
467
  }),
474
468
  new $({
475
- key: x,
469
+ key: D,
476
470
  state: {
477
471
  init: () => ({
478
472
  preserveWhitespace: s
479
473
  }),
480
- apply: (r, n) => n
474
+ apply: (n, r) => r
481
475
  }
482
476
  }),
483
477
  ne(),
478
+ re(),
484
479
  ae(),
485
480
  le(),
486
- pe(),
487
- de()
481
+ pe()
488
482
  ], l = {
489
483
  ...y.getShortcuts({
490
484
  types: {
@@ -493,32 +487,32 @@ const C = {
493
487
  },
494
488
  toolsSettings: {
495
489
  bold: De,
496
- italic: Ie,
497
- underline: Ue
490
+ italic: xe,
491
+ underline: Ie
498
492
  }
499
493
  }),
500
494
  "Mod-k": () => {
501
495
  const {
502
- linkDialog: r
503
- } = this.$data, n = this.getView();
504
- if (n) {
505
- const o = n.state, p = o.selection.empty, d = ge(o, o.schema.marks[W.mark]);
506
- !r && !(p && !d) && (this.linkDialog = !0);
496
+ linkDialog: n
497
+ } = this.$data, r = this.getView();
498
+ if (r) {
499
+ const o = r.state, p = o.selection.empty, d = fe(o, o.schema.marks[W.mark]);
500
+ !n && !(p && !d) && (this.linkDialog = !0);
507
501
  }
508
- return !r;
502
+ return !n;
509
503
  }
510
504
  };
511
505
  const {
512
506
  defaultContent: f = "",
513
507
  value: w
514
- } = this.$props, B = w && typeof w != "string" ? K(w) : y.createDocument(new ce({
515
- nodes: ve,
516
- marks: me
508
+ } = this.$props, B = w && typeof w != "string" ? j(w) : y.createDocument(new de({
509
+ nodes: ge,
510
+ marks: ce
517
511
  }), w || f, {
518
512
  preserveWhitespace: s
519
513
  }), g = {
520
- state: ue.create({
521
- plugins: [...u, _(l), _(he)],
514
+ state: me.create({
515
+ plugins: [...u, _(l), _(ue)],
522
516
  doc: B
523
517
  }),
524
518
  transformPastedHTML: this.onPasteHtml,
@@ -536,10 +530,10 @@ const C = {
536
530
  dom: i
537
531
  };
538
532
  this.$emit("loaded", S);
539
- const L = this.$props.extendView && this.$props.extendView(S) || new fe({
533
+ const E = this.$props.extendView && this.$props.extendView(S) || new he({
540
534
  mount: i
541
535
  }, g);
542
- this.view = P(L);
536
+ this.view = P(E);
543
537
  },
544
538
  filterTransaction(e, i) {
545
539
  const s = {
@@ -607,6 +601,6 @@ const C = {
607
601
  }
608
602
  });
609
603
  export {
610
- St as Editor,
604
+ yt as Editor,
611
605
  C as allTools
612
606
  };
@@ -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-buttons"),require("@progress/kendo-vue-common"),require("@progress/kendo-editor-common"),require("@progress/kendo-vue-pdf"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-dialogs"),require("@progress/kendo-vue-intl"),require("@progress/kendo-vue-form"),require("@progress/kendo-vue-inputs"),require("@progress/kendo-vue-dropdowns"),require("@progress/kendo-vue-popup"),require("@progress/kendo-vue-layout"),require("@progress/kendo-vue-labels")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-buttons","@progress/kendo-vue-common","@progress/kendo-editor-common","@progress/kendo-vue-pdf","@progress/kendo-svg-icons","@progress/kendo-vue-dialogs","@progress/kendo-vue-intl","@progress/kendo-vue-form","@progress/kendo-vue-inputs","@progress/kendo-vue-dropdowns","@progress/kendo-vue-popup","@progress/kendo-vue-layout","@progress/kendo-vue-labels"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueEditor={},e.Vue,e.KendoVueButtons,e.KendoVueCommon,e.KendoEditorCommon,e.KendoVuePdf,e.KendoSVGIcons,e.KendoVueDialogs,e.KendoVueIntl,e.KendoVueForm,e.KendoVueInputs,e.KendoVueDropdowns,e.KendoVuePopup,e.KendoVueLayout,e.KendoVueLabels)}(this,(function(e,t,n,o,i,s,a,l,r,d,c,p,u,h,m){"use strict";const g=e=>({[e]:{default:null,getFromDOM:t=>t.getAttribute(e),setDOMAttr:(t,n)=>{n[e]=t}}}),f=e=>{const t={};return Array.from(e.attributes).forEach((e=>{t[e.nodeName]=e.nodeValue})),t},v={...g("style"),...g("class"),...g("id")},k=i.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:v});k.table_row.attrs=k.table_row.attrs||{},k.table_row.attrs.style={default:null},k.table_row.attrs.class={default:null},k.table_row.attrs.id={default:null},k.table_row.toDOM=e=>["tr",e.attrs,0],k.table_row.parseDOM=[{tag:"tr",getAttrs:f}],k.table.attrs=k.table.attrs||{},k.table.attrs.style={default:null},k.table.attrs.class={default:null},k.table.attrs.id={default:null},k.table.toDOM=e=>["table",e.attrs,["tbody",0]],k.table.parseDOM=[{tag:"table",getAttrs:f}];const w={...i.nodes,...k},b='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',C='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n .ProseMirror .selectedCell ::selection {\n background-color: transparent;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',y="editor.bold",S="editor.italic",I="editor.underline",N="editor.strikethrough",T="editor.subscript",R="editor.superscript",x="editor.hyperlink",V="editor.insertFile",L="editor.print",M="editor.selectAll",D="editor.cleanFormatting",E="editor.pdf",A="editor.foregroundColor",z="editor.backgroundColor",B="editor.foregroundColorAriaLabel",P="editor.backgroundColorAriaLabel",F="editor.createTable",H="editor.insertTableHint",$="editor.addRowBefore",O="editor.addRowAfter",j="editor.addColumnBefore",W="editor.addColumnAfter",K="editor.deleteRow",U="editor.deleteColumn",_="editor.deleteTable",q="editor.mergeCells",G="editor.splitCell",J="editor.hyperlink-dialog-title",Q="editor.hyperlink-dialog-content-address",X="editor.hyperlink-dialog-content-title",Y="editor.hyperlink-dialog-content-newwindow",Z="editor.hyperlink-dialog-cancel",ee="editor.hyperlink-dialog-insert",te="editor.insertfile-dialog-title",ne="editor.insertfile-dialog-content-address",oe="editor.insertfile-dialog-content-title",ie="editor.insertfile-dialog-cancel",se="editor.insertfile-dialog-insert",ae="editor.image",le="editor.image-dialog-title",re="editor.image-address",de="editor.image-title",ce="editor.image-altText",pe="editor.image-width",ue="editor.image-height",he="editor.image-cancel",me="editor.image-insert",ge="editor.viewHtml",fe="editor.viewHtml-dialog-title",ve="editor.viewHtml-cancel",ke="editor.viewHtml-update",we="editor.unlink",be="editor.undo",Ce="editor.redo",ye="editor.fontSize",Se="editor.fontName",Ie="editor.format",Ne="editor.alignLeft",Te="editor.alignRight",Re="editor.alignCenter",xe="editor.alignJustify",Ve="editor.indent",Le="editor.outdent",Me="editor.orderedList",De="editor.bulletList",Ee="editor.findReplace-tool-title",Ae="editor.findReplace-dialog-title",ze="editor.findReplace-tab-find",Be="editor.findReplace-tab-replace",Pe="editor.findReplace-findWhat",Fe="editor.findReplace-replaceWith",He="editor.findReplace-replace",$e="editor.findReplace-replaceAll",Oe="editor.findReplace-matchCase",je="editor.findReplace-matchWord",We="editor.findReplace-matchCyclic",Ke="editor.findReplace-useRegExp",Ue="editor.findReplace-prevMatch",_e="editor.findReplace-nextMatch",qe="editor.findReplace-matches",Ge="editor.findReplace-invalidRegExp",Je="editor.iframeTitle",Qe={[y]:"Bold",[S]:"Italic",[I]:"Underline",[N]:"Strikethrough",[T]:"Subscript",[R]:"Superscript",[we]:"Remove hyperlink",[be]:"Undo",[Ce]:"Redo",[ye]:"Font Size",[Se]:"Font Name",[Ie]:"Format",[Ne]:"Align text left",[Te]:"Align text right",[Re]:"Center text",[xe]:"Justify",[Ve]:"Indent",[Le]:"Outdent",[Me]:"Insert ordered list",[De]:"Insert unordered list",[L]:"Print",[M]:"Select All",[D]:"Clean formatting",[E]:"Export as PDF",[A]:"Color",[z]:"Background color",[B]:"Set ForeGround color",[P]:"Set Background color",[F]:"Create a table",[H]:"Create a {0} x {1} table",[$]:"Add row above",[O]:"Add row below",[j]:"Add column on the left",[W]:"Add column on the right",[K]:"Delete row",[U]:"Delete column",[_]:"Delete table",[q]:"Merge cells",[G]:"Split cell",[x]:"Insert hyperlink",[J]:"Insert hyperlink",[Q]:"Web address",[X]:"Title",[Y]:"Open link in new window",[Z]:"Cancel",[ee]:"Insert",[V]:"Insert file",[te]:"Insert file",[ne]:"Web address",[oe]:"Title",[ie]:"Cancel",[se]:"Insert",[ae]:"Insert image",[le]:"Insert image",[re]:"Web address",[de]:"Title",[ce]:"Alternate text",[pe]:"Width (px)",[ue]:"Height (px)",[he]:"Cancel",[me]:"Insert",[ge]:"View HTML",[fe]:"View HTML",[ve]:"Cancel",[ke]:"Update",[Ee]:"Find and Replace",[Ae]:"Find and Replace",[ze]:"Find",[Be]:"Replace",[Pe]:"Find What:",[Fe]:"Replace With",[He]:"Replace",[$e]:"Replace All",[Oe]:"Match Case",[je]:"Match whole word only",[We]:"Match cyclic (Wrap around)",[Ke]:"Regular Expression",[Ue]:"Prev",[_e]:"Next",[qe]:"{0} of {1} matches",[Ge]:"Invalid regular expression.",[Je]:"Editable area. Press Alt + F10 for toolbar."},Xe=y,Ye=S,Ze=I,et=N,tt=T,nt=R,ot=we,it=be,st=Ce,at=ye,lt=Se,rt=Ie,dt=Ne,ct=Te,pt=Re,ut=xe,ht=Ve,mt=Le,gt=Me,ft=De,vt=L,kt=M,wt=D,bt=E,Ct=A,yt=z,St=B,It=F,Nt=H,Tt=$,Rt=O,xt=j,Vt=W,Lt=K,Mt=U,Dt=_,Et=q,At=G,zt=x,Bt=J,Pt=Q,Ft=X,Ht=Y,$t=Z,Ot=ee,jt=V,Wt=te,Kt=ne,Ut=oe,_t=ie,qt=se,Gt=ae,Jt=le,Qt=re,Xt=de,Yt=ce,Zt=pe,en=ue,tn=he,nn=me,on=ge,sn=fe,an=ve,ln=ke,rn=Ee,dn=Ae,cn=ze,pn=Be,un=Pe,hn=Fe,mn=He,gn=$e,fn=Oe,vn=je,kn=We,wn=Ke,bn=Ue,Cn=_e,yn=qe,Sn=Ge,In=Je,Nn={...i.indentRules.listsTypes};function Tn(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}e.EditorToolsSettings=void 0,(e=>{const t={type:"button"};e.bold={...i.bold,props:{icon:"bold",svgIcon:a.boldIcon,...t},messages:{title:Xe},commandName:"Bold"},e.italic={...i.italic,props:{icon:"italic",svgIcon:a.italicIcon,...t},messages:{title:Ye},commandName:"Italic"},e.underline={...i.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...t},messages:{title:Ze},commandName:"Underline"},e.strikethrough={...i.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...t},messages:{title:et},commandName:"Strikethrough"},e.subscript={...i.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...t},messages:{title:tt},commandName:"Subscript"},e.superscript={...i.superscript,props:{icon:"supscript",svgIcon:a.supscriptIcon,...t},messages:{title:nt},commandName:"Superscript"},e.link={...i.link,props:{icon:"link",svgIcon:a.linkIcon,...t},messages:{insertHyperlink:zt,insertHyperlinkDialogTitle:Bt,insertHyperlinkAddress:Pt,insertHyperlinkTitle:Ft,insertHyperlinkNewWindow:Ht,insertHyperlinkCancel:$t,insertHyperlinkInsert:Ot},commandName:"Link"},e.insertFile={...i.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...t},messages:{insertHyperlink:jt,insertHyperlinkDialogTitle:Wt,insertHyperlinkAddress:Kt,insertHyperlinkTitle:Ut,insertHyperlinkNewWindow:"",insertHyperlinkCancel:_t,insertHyperlinkInsert:qt},commandName:"InsertFile",linkTarget:!1},e.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...t},messages:{createTable:It,createTableHint:Nt},commandName:"InsertTable"},e.addRowBefore={command:i.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...t},messages:{title:Tt},commandName:"AddRowBefore"},e.addRowAfter={command:i.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...t},messages:{title:Rt},commandName:"AddRowAfter"},e.addColumnBefore={command:i.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...t},messages:{title:xt},commandName:"AddColumnBefore"},e.addColumnAfter={command:i.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...t},messages:{title:Vt},commandName:"AddColumnAfter"},e.deleteRow={command:i.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...t},messages:{title:Lt},commandName:"DeleteRow"},e.deleteColumn={command:i.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...t},messages:{title:Mt},commandName:"DeleteColumn"},e.deleteTable={command:i.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...t},messages:{title:Dt},commandName:"DeleteTable"},e.mergeCells={command:i.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...t},messages:{title:Et},commandName:"MergeCells"},e.splitCell={command:i.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...t},messages:{title:At},commandName:"SplitCell"},e.print={props:{icon:"print",svgIcon:a.printIcon,...t},messages:{title:vt}},e.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...t},messages:{title:kt}},e.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...t},messages:{title:bt}},e.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},e.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...t},messages:{title:wt},commandName:"CleanFormatting"},e.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...t},messages:{insertImage:Gt,insertImageDialogTitle:Jt,insertImageAddress:Qt,insertImageTitle:Xt,insertImageAltText:Yt,insertImageWidth:Zt,insertImageHeight:en,insertImageCancel:tn,insertImageInsert:nn},commandName:"InsertImage"},e.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...t},messages:{viewHtml:on,viewHtmlDialogTitle:sn,viewHtmlCancel:an,viewHtmlUpdate:ln},commandName:"SetContent"},e.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...t},messages:{findReplaceToolTitle:rn,findReplaceDialogTitle:dn,findReplaceTabFind:cn,findReplaceTabReplace:pn,findReplaceFindWhat:un,findReplaceReplaceWith:hn,findReplaceReplace:mn,findReplaceReplaceAll:gn,findReplaceMatchCase:fn,findReplaceMatchWord:vn,findReplaceMatchCyclic:kn,findReplaceUseRegExp:wn,findReplacePrevMatch:bn,findReplaceNextMatch:Cn,findReplaceMatches:yn,findReplaceInvalidRegExp:Sn}},e.unlink={...i.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...t},messages:{title:ot},commandName:"Unlink"},e.undo={command:i.undo,props:{icon:"undo",svgIcon:a.undoIcon,...t},messages:{title:it},commandName:"Undo"},e.redo={command:i.redo,props:{icon:"redo",svgIcon:a.redoIcon,...t},messages:{title:st},commandName:"Redo"},e.fontSize={style:"font-size",defaultItem:{text:Qe[at],value:"",localizationKey:at},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},e.fontName={style:"font-family",defaultItem:{text:Qe[lt],value:"",localizationKey:lt},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},e.formatBlock={defaultItem:{text:Qe[rt],value:"",localizationKey:rt},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},e.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:Ct},commandName:"ForeColor"},e.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:yt},commandName:"BackColor"},e.alignLeft={actions:[...i.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...t},messages:{title:dt},commandName:"AlignLeft"},e.alignRight={actions:[...i.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...t},messages:{title:ct},commandName:"AlignRight"},e.alignCenter={actions:[...i.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...t},messages:{title:pt},commandName:"AlignCenter"},e.alignJustify={actions:[...i.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...t},messages:{title:ut},commandName:"AlignJustify"},e.alignRemove={actions:[...i.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...t},messages:{},commandName:"AlignRemove"},e.indent={actions:i.indentRules.nodes,listsTypes:Nn,props:{icon:"indent",svgIcon:a.indentIcon,...t},messages:{title:ht},commandName:"Indent"},e.outdent={actions:i.outdentRules.nodes,listsTypes:Nn,props:{icon:"outdent",svgIcon:a.outdentIcon,...t},messages:{title:mt},commandName:"Outdent"},e.orderedList={listType:Nn.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...t},messages:{title:gt},commandName:"OrderedList",types:{...Nn}},e.bulletList={listType:Nn.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...t},messages:{title:ft},commandName:"UnorderedList",types:{...Nn}}})(e.EditorToolsSettings||(e.EditorToolsSettings={}));const Rn=t.defineComponent({name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},data(){const{view:e,settings:t}=this.$props,n=!!e&&i.getMark(e.state,e.state.schema.marks[t.mark]);return{hrefValue:n&&n.attrs.href||void 0,titleValue:n&&n.attrs.title||void 0,targetValue:n&&!!n.attrs.target||void 0}},inject:{kendoLocalizationService:{default:null}},mounted(){this.href=o.getRef(this,"href"),this.title=o.getRef(this,"title"),this.target=o.getRef(this,"target"),this.href&&this.href.focus()},render(){let e,i;const{settings:s,dir:a}=this.$props,p=r.provideLocalizationService(this),{insertHyperlinkDialogTitle:u,insertHyperlinkAddress:h,insertHyperlinkTitle:m,insertHyperlinkNewWindow:g,insertHyperlinkCancel:f,insertHyperlinkInsert:v}=s.messages,k=p.toLanguageString(g,Qe[g]),w=t.createVNode(d.Form,null,{default:()=>[t.createVNode(d.FormElement,{horizontal:!0},{default:()=>[t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-link-url",class:"k-form-label"},[p.toLanguageString(h,Qe[h])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-link-url",ref:o.setRef(this,"href"),onInput:this.hrefChange,value:this.hrefValue},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-link-text",class:"k-form-label"},[p.toLanguageString(m,Qe[m])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-link-text",ref:o.setRef(this,"title"),onInput:this.titleChange,value:this.titleValue},null)])]}),!1!==s.linkTarget&&t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("div",{class:"k-form-label"},null),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Checkbox,{id:"k-editor-link-target",ref:o.setRef(this,"target"),label:k,onChange:this.targetChange,checked:this.targetValue},null)])]})]})]});return t.createVNode(l.Window,{initialWidth:450,initialHeight:250,windowClass:"k-editor-window",title:p.toLanguageString(u,Qe[u]),onClose:this.onClose,dir:a,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[w,t.createVNode(l.DialogActionsBar,null,{default:()=>[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:a,key:"cancel"},Tn(e=p.toLanguageString(f,Qe[f]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",onClick:this.onInsert,themeColor:"primary",dir:a,key:"insert"},Tn(i=p.toLanguageString(v,Qe[v]))?i:{default:()=>[i]})]})]})},methods:{hrefChange(e){this.hrefValue=e.value},titleChange(e){this.titleValue=e.value},targetChange(e){this.targetValue=e.value},onClose(){this.$props.view.focus(),this.$emit("close")},onInsert(){const e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.hrefValue:void 0,title:this.title?this.titleValue:void 0,target:this.target&&this.targetValue?"_blank":void 0};i.applyLink({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}}),{bold:xn,underline:Vn,italic:Ln}=e.EditorToolsSettings,Mn="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Dn=e=>{const t=i.chainCommands(i.exitCode,((t,n)=>{const o=e&&e.types&&e.types.hardBreak||"hard_break",i=t.schema.nodes[o];return n&&n(t.tr.replaceSelectionWith(i.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",o=e&&e.toolsSettings||{};return{"Mod-b":(e,t)=>i.toggleInlineFormat(o.bold||xn)(e,t),"Mod-i":(e,t)=>i.toggleInlineFormat(o.italic||Ln)(e,t),"Mod-u":(e,t)=>i.toggleInlineFormat(o.underline||Vn)(e,t),"Mod-z":i.undo,"Shift-Mod-z":i.redo,...Mn?{}:{"Mod-y":i.redo},Backspace:i.undoInputRule,"Mod-Enter":t,"Shift-Enter":t,...Mn?{"Ctrl-Enter":t}:{},Enter:(e,t)=>i.splitListItem(e.schema.nodes[n])(e,t),Tab:i.goToNextCell(1),"Shift-Tab":i.goToNextCell(-1)}},En=new i.PluginKey("editor-props");e.EditorUtils=void 0,(e=>{e.alignBlocks=function(e,t,n){return!!i.alignBlocks(t,n)(e.state,e.dispatch)},e.applyInlineStyle=function(e,t,n){return i.applyInlineStyle(t,n)(e.state,e.dispatch)},e.applyLink=function(e,t,n){return i.applyLink(t,n)(e.state,e.dispatch)},e.canIndentList=function(e,t){return i.canIndentAsListItem(e,t)},e.canInsert=function(e,t){return i.canInsert(e,t)},e.canOutdentList=function(e,t){return i.canOutdentAsListItem(e,{listsTypes:t,nodes:[]})},e.convertMsLists=function(e){return i.convertMsLists(e)},e.createDocument=function(e,t,n){return i.parseContent(i.trimWhitespace(t),e,void 0!==n?n:{preserveWhitespace:"full"})},e.createTable=function(e,t,n){return i.createTable(e,t,n)},e.formatBlockElements=function(e,t,n){return i.formatBlockElements(t,n)(e.state,e.dispatch)},e.getBlockFormats=function(e){return i.getBlockFormats(e)},e.getHtml=function(e){return i.getHtml(e)},e.getInlineStyles=function(e,t){return i.getInlineStyles(e,t)},e.getMark=function(e,t){return i.getMark(e,t)},e.hasMark=function(e,t){return i.hasMark(e,t)},e.hasNode=function(e,t){return i.hasNode(e,t)},e.indentBlocks=function(e,t,n,o){return!!i.indentBlocks(t,n,o)(e.state,e.dispatch)},e.indentHtml=function(e){return i.indentHtml(e)},e.insertNode=function(e,t,n){i.insertNode(t,n)(e.state,e.dispatch)},e.isAligned=function(e,t){return i.isAligned(e,t)},e.isIndented=function(e,t,n){return i.isIndented(e,t,n)},e.removeComments=function(e){return i.removeComments(e)},e.removeTag=function(e,t){return i.removeTag(e,t)},e.pasteCleanup=function(e,t){return i.pasteCleanup(e,t)},e.sanitizeClassAttr=function(e){i.sanitizeClassAttr(e)},e.sanitizeStyleAttr=function(e){i.sanitizeStyleAttr(e)},e.removeAttribute=function(e){i.removeAttribute(e)},e.sanitize=function(e){return i.sanitize(e)},e.replaceImageSourcesFromRtf=function(e,t){return i.replaceImageSourcesFromRtf(e,t)},e.textHighlight=function(e){return i.textHighlight(e)},e.imageResizing=function(e){return i.imageResizing(e)},e.setHtml=function(e,t,n,o){const s=i.trimWhitespace(t);i.setHtml(s,n,o)(e.state,e.dispatch)},e.toggleInlineFormat=function(e,t,n,o){return i.toggleInlineFormat(t,n,o)(e.state,e.dispatch)},e.toggleList=function(e,t,n){return i.toggleList(e.state,e.dispatch,e,t,n)},e.getShortcuts=function(e){return Dn(e)},e.propsKey=En,e.imageResizeKey=i.imageResizeKey,e.marks={...i.marks},e.nodes={...w}})(e.EditorUtils||(e.EditorUtils={}));const An=(t,n)=>{const o=n.tr||t.state.tr.setSelection(new i.AllSelection(t.state.doc)).replaceSelectionWith(n.doc||e.EditorUtils.createDocument(t.state.schema,n.html||"")).setMeta("commandName","setHTML");t.updateState(t.state.apply(o))},zn=e=>{for(;e.firstChild;){const t=e.firstChild;zn(t),"removeChild"in e&&"function"==typeof e.removeChild&&e.removeChild(t)}if(e instanceof Element){const t=e.attributes;for(let n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name)}},Bn="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),Pn={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1640240773,version:"8.0.2-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},{alignRemove:Fn}=e.EditorToolsSettings,Hn=t.defineComponent({name:"KendoAlign",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=!!a&&i.isAligned(a,o.actions),d=r.provideLocalizationService(this),c=o.messages.title,p={...s,selected:l,togglable:!0,title:d.toLanguageString(c,Qe[c]),...o.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...p})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n=e&&e.state,o=!!n&&i.isAligned(n,t.actions),s=o?Fn.actions:t.actions,a=o?Fn.commandName:t.commandName;return e&&i.alignBlocks(s,a)(e.state,e.dispatch)},preventDefault(e){e.preventDefault()}}}),$n=t.defineComponent({name:"KendoIndent",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,d=l&&l.schema.nodes,c=d&&d[s.listsTypes.listItem],p=s.actions,u=!!l&&(i.isIndented(l,p,a.dir)||p.some((e=>d[e.node]&&i.hasNode(l,d[e.node]))))&&!i.hasNode(l,c),h=!!l&&i.canIndentAsListItem(l,c),m=u||h,g=r.provideLocalizationService(this),f=s.messages.title,v={...a,disabled:!m,title:g.toLanguageString(f,Qe[f]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...v})},methods:{handleClick(){const e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],o=this.settings.actions,s=!!e&&(i.isIndented(e,o,this.dir)||o.some((n=>t[n.node]&&i.hasNode(e,t[n.node]))))&&!i.hasNode(e,n),a=!!e&&i.canIndentAsListItem(e,n);this.view&&a?i.sinkListItem(n)(this.view.state,this.view.dispatch):this.view&&s&&i.indentBlocks(o,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault(e){e.preventDefault()}}}),On=t.defineComponent({name:"KendoList",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props;let l=!1;const d=r.provideLocalizationService(this),c=s.messages.title,p=s.types,u=s.listType;if(e){const t=e.state,n=t.schema.nodes,o=i.hasNode(t,n[p.orderedList]),s=i.hasNode(t,n[p.bulletList]);l=u===p.orderedList?o&&!s:!o&&s}const h={...a,selected:l,togglable:!0,title:d.toLanguageString(c,Qe[c]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...h})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n=t.types,o=t.listType;this.view&&i.toggleList(e.state,e.dispatch,e,{listType:o,...n},t.commandName)},preventDefault(e){e.preventDefault()}}}),jn=t.defineComponent({name:"KendoOutdent",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,d=!!l&&i.isIndented(l,s.actions,a.dir);l&&l.schema.nodes[s.listsTypes.listItem];const c=!!l&&i.canOutdentAsListItem(l,{nodes:s.actions,listsTypes:s.listsTypes}),p=d||c,u=r.provideLocalizationService(this),h=s.messages.title,m={...a,disabled:!p,title:u.toLanguageString(h,Qe[h]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...m})},methods:{handleClick(){const{view:e,settings:t,dir:n}=this.$props,o=e&&e.state,s=!!o&&i.isIndented(o,t.actions,n),a=o&&o.schema.nodes[t.listsTypes.listItem],l=!!o&&i.canOutdentAsListItem(o,{nodes:t.actions,listsTypes:t.listsTypes});e&&l?i.liftListItem(a)(e.state,e.dispatch):e&&s&&i.indentBlocks(t.actions,t.commandName,n)(e.state,e.dispatch)},preventDefault(e){e.preventDefault()}}}),Wn=t.defineComponent({name:"KendoInlineFormat",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,{mark:d,altMarks:c,altStyle:p}=s,u={mark:d,altMarks:c,altStyle:p},h=r.provideLocalizationService(this),m=s.messages.title,g={...a,selected:!!l&&i.hasMark(l,u),togglable:!0,title:h.toLanguageString(m,Qe[m]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...g})},methods:{handleClick(){const e=this.view&&this.view.state,{mark:t,altMarks:n,altStyle:o}=this.settings,s={mark:t,altMarks:n,altStyle:o};return this.view&&i.toggleInlineFormat(s,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault(e){e.preventDefault()}}}),Kn={userSelect:"none"},Un=function(e,...t){return t.forEach(((t,n)=>{e=e.replace("{"+n+"}",String(t))})),e},_n=t.defineComponent({name:"KendoFontName",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...p.DropDownList.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:n,dataItems:o,settings:s,defaultItem:a,...l}=this.$props,{style:d}=s,c=e?i.getInlineStyles(e.state,{name:d,value:/^.+$/}):[],u=1===new Set(c).size?c[0]:null,h=o||s.items;let m=a||s.defaultItem;const g=r.provideLocalizationService(this);m&&m.localizationKey&&(m={...m},m.text=m.localizationKey?g.toLanguageString(m.localizationKey,Qe[m.localizationKey]):m.text);const f={...l,...s.props,value:u&&h.find((e=>e.value===u)),dataItems:h,defaultItem:m,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,title:m.text,onChange:this.onFontNameChange,style:Kn};return t.h(p.DropDownList,f)},methods:{customItemRender:(e,t,n)=>n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick},[e("span",{style:n.dataItem.style},[...t.children])]):t,onFontNameChange(e){const{view:t,settings:n}=this.$props,{style:o}=n,s=e.target.value;if(t){i.applyInlineStyle({style:o,value:s.value},n.commandName)(t.state,t.dispatch);const{event:a}=e;a&&"click"===a.type&&t.focus()}}}}),qn=t.defineComponent({name:"KendoFormatBlock",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...p.DropDownList.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:n,dataItems:o,settings:s,defaultItem:a,...l}=this.$props,d=o||s.items,c=e&&e.state,u=c?i.getBlockFormats(c):[],h=1===new Set(u).size?u[0]:null;let m=a||s.defaultItem;const g=r.provideLocalizationService(this);m&&m.localizationKey&&(m={...m},m.text=m.localizationKey?g.toLanguageString(m.localizationKey,Qe[m.localizationKey]):m.text);const f={...l,...s.props,value:h&&d.find((e=>e.value===h)),dataItems:d,defaultItem:m,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"},title:m.text,onChange:this.onFormatBlockChange,style:Kn};return t.h(p.DropDownList,f)},methods:{customItemRender:(e,t,n)=>n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick},[e("span",{style:n.dataItem.style},[...t.children])]):t,onFormatBlockChange(e){const{view:t,settings:n}=this.$props,o=e.target.value;if(t&&i.formatBlockElements(o.value,n.commandName)(t.state,t.dispatch)){const{event:n}=e;n&&"click"===n.type&&t.focus()}}}}),Gn=t.defineComponent({name:"KendoProseMirror",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},computed:{command(){return this.settings.command||o.noop}},render(){const{view:e,settings:o,...i}=this.$props,s=r.provideLocalizationService(this),a=o.messages.title,l=e&&e.state,d={...i,disabled:!!l&&!this.command(l),title:s.toLanguageString(a,Qe[a]),...o.props};return t.h(n.Button,{onClick:this.handleClick,...d})},methods:{handleClick(){this.view&&this.command(this.view.state,(e=>this.view.dispatch(e.setMeta("commandName",this.settings.commandName))))}}}),Jn=t.defineComponent({name:"KendoLinkTool",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=!a||a.selection.empty,d=a&&i.getMark(a,a.schema.marks[o.mark]),c=r.provideLocalizationService(this),{insertHyperlink:p}=o.messages,u={...s,key:"link",disabled:l&&!d,title:c.toLanguageString(p,Qe[p]),...o.props},h=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...u}),this.openedDialog&&e&&t.createVNode(Rn,{key:"insertLinkDialog",settings:o,dir:this.dir,view:e,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[h])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),Qn=t.defineComponent({name:"KendoUnlink",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o,...s}=this.$props,a={mark:o.mark},l=!!e&&i.hasMark(e.state,a),d=r.provideLocalizationService(this),c=o.messages.title,p={...s,disabled:!l,title:d.toLanguageString(c,Qe[c]),...o.props};return t.h(n.Button,{onClick:this.handleClick,...p})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n={mark:t.mark};e&&i.removeLink(n,e.state.tr.setMeta("commandName",t.commandName))(e.state,e.dispatch)}}}),{cleanFormatting:Xn}=e.EditorToolsSettings,Yn=i.cleanFormatting(),Zn=t.defineComponent({name:"KendoCleanFormatting",props:{view:Object,settings:{type:Object,default:function(){return Xn}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i,...s}=this.$props,a=i.messages.title,l=r.provideLocalizationService(this),d={...s,disabled:!e||!Yn(e.state),title:l.toLanguageString(a,Qe[a]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...d})},methods:{handleClick(){this.view&&Yn(this.view.state,(e=>{e.setMeta("commandName",this.settings.commandName),this.view.dispatch(e)}))},preventDefault(e){e.preventDefault()}}}),{selectAll:eo}=e.EditorToolsSettings,to=t.defineComponent({name:"KendoSelectAll",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o=eo,...i}=this.$props,s=o.messages.title,a={...i,title:r.provideLocalizationService(this).toLanguageString(s,Qe[s]),...o.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...a})},methods:{handleClick(){this.view&&(i.selectAll(this.view.state,this.view.dispatch),this.view.focus())},preventDefault(e){e.preventDefault()}}});function no(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const oo=t.defineComponent({name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},data(){const{view:e,settings:t}=this.$props,n=e&&e.state;let o={};return n&&n.selection instanceof i.NodeSelection&&n.selection.node.type===n.schema.nodes[t.node]&&(o=n.selection.node.attrs),{srcValue:o.src,altValue:o.alt,titleValue:o.title,widthValue:o.width,heightValue:o.height}},mounted(){this.src=o.getRef(this,"src"),this.altText=o.getRef(this,"altText"),this.title=o.getRef(this,"title"),this.width=o.getRef(this,"width"),this.height=o.getRef(this,"height"),this.src&&this.src.focus()},render(){let e,s;const{view:a,settings:p,dir:u}=this.$props,{insertImageDialogTitle:h,insertImageAddress:m,insertImageTitle:g,insertImageAltText:f,insertImageWidth:v,insertImageHeight:k,insertImageCancel:w,insertImageInsert:b}=p.messages,C=r.provideLocalizationService(this),y=a&&a.state;y&&y.selection instanceof i.NodeSelection&&y.selection.node.type===y.schema.nodes[p.node]&&y.selection.node.attrs;const S=t.createVNode(d.Form,null,{default:()=>[t.createVNode(d.FormElement,{horizontal:!0},{default:()=>[t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-url",class:"k-form-label"},[C.toLanguageString(m,Qe[m])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-url",value:this.srcValue,onInput:this.handleSrcInput,ref:o.setRef(this,"src")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-url",class:"k-form-label"},[C.toLanguageString(f,Qe[f])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-alt",value:this.altValue,onInput:this.handleAltInput,ref:o.setRef(this,"altText")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-title",class:"k-form-label"},[C.toLanguageString(g,Qe[g])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-title",value:this.titleValue,onInput:this.handleTitleInput,ref:o.setRef(this,"title")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-width",class:"k-form-label"},[C.toLanguageString(v,Qe[v])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-width",value:this.widthValue,onInput:this.handleWidthInput,ref:o.setRef(this,"width")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-height",class:"k-form-label"},[C.toLanguageString(k,Qe[k])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-height",value:this.heightValue,onInput:this.handleHeightInput,ref:o.setRef(this,"height")},null)])]})]})]}),I=[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:u,key:"cancel"},no(e=C.toLanguageString(w,Qe[w]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",disabled:!this.srcValue,onClick:this.onInsert,themeColor:"primary",dir:u,key:"insert"},no(s=C.toLanguageString(b,Qe[b]))?s:{default:()=>[s]})];return t.createVNode(l.Window,{initialWidth:500,initialHeight:360,windowClass:"k-editor-window",title:C.toLanguageString(h,Qe[h]),onClose:this.onClose,key:"dialog",dir:u,style:"rtl"===u?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[S,t.createVNode(l.DialogActionsBar,null,no(I)?I:{default:()=>[I]})]})},methods:{handleSrcInput(e){this.srcValue=e.value},handleAltInput(e){this.altValue=e.value},handleTitleInput(e){this.titleValue=e.value},handleWidthInput(e){this.widthValue=e.value},handleHeightInput(e){this.heightValue=e.value},onClose(){this.$props.view.focus(),this.$emit("close")},onInsert(){const{view:e,settings:t}=this.$props,n=e.state.schema.nodes[t.node],o={src:this.src?this.srcValue:null,title:this.title?this.titleValue:null,alt:this.altText?this.altValue:null,width:this.width?this.widthValue:null,height:this.height?this.heightValue:null},s=Object.keys(o).filter((e=>null!==o[e]&&""!==o[e])).reduce(((e,t)=>Object.assign(e,{[t]:o[t]})),{}),a=n.createAndFill(s);i.insertNode(a,!0)(e.state,(n=>e.dispatch(n.setMeta("commandName",t.commandName).setMeta("args",s)))),this.onClose()}}}),io=t.defineComponent({name:"KendoInsertImage",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String,...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=a?a.schema.nodes[o.node]:void 0,d=r.provideLocalizationService(this),{insertImage:c}=o.messages,p={...s,key:"insertImage",disabled:!l||!a||!i.canInsert(a,l),title:d.toLanguageString(c,Qe[c]),...o.props},u=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...p}),this.openedDialog&&e&&t.createVNode(oo,{key:"insertImageDialog",view:e,settings:o,dir:p.dir,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[u])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),so=t.defineComponent({name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String,onCellclick:Function,onDown:Function},data:()=>({row:-1,col:-1}),render(){const e=[],n=this.$props.columns*this.$props.rows,{row:o,col:i}=this.$data;let s=this.$props.createTableMessage;i>-1&&(s=Un(this.$props.createTableHintMessage,o+1,i+1));const a=function(e,n,o){const i=Math.floor(e/this.$props.columns),s=e%this.$props.columns,a=s<=o&&i<=n;return t.createVNode("span",{class:"k-ct-cell k-disabled"+(a?" k-selected":""),onMouseenter:()=>this.cellMouseEnter({row:i,col:s}),onClick:()=>this.onCellClick(i,s),key:e},null)};for(let t=0;t<n;t++)e.push(a.call(this,t,o,i));const l=[t.createVNode("div",{onMouseleave:()=>this.handleMouseLeave(),key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onMouseDown,onMousedown:this.onDown},[e]),t.createVNode("div",{class:"k-status",key:"status",onPointerdown:this.onMouseDown,onMousedown:this.onDown},[s])];return t.createVNode("span",null,[l])},methods:{cellMouseEnter({row:e,col:t}){this.row=e,this.col=t},handleMouseLeave(){this.row=-1,this.col=-1},onCellClick(e,t){this.$emit("cellclick",e,t)},onMouseDown(e){this.$emit("down",e)}}}),ao=t.defineComponent({name:"KendoInsertTablePopup",emits:{close:null},props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String,onTableinsert:Function},data:()=>({pointerdown:!1}),updated(){},mounted(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},unmounted(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},render(){const{show:e,anchor:n,dir:o,rows:i,columns:s}=this.$props,a="rtl"===o?"right":"left";return t.createVNode(u.Popup,{anchor:n,anchorAlign:{horizontal:a,vertical:"bottom"},popupAlign:{horizontal:a,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:e,style:"rtl"===o?{direction:"rtl"}:void 0},{default:()=>[t.createVNode(so,{rows:i,columns:s,createTableMessage:this.$props.createTableMessage,createTableHintMessage:this.$props.createTableHintMessage,onCellclick:this.onTableInsert,onDown:this.onPointerDown},null)]})},methods:{onTableInsert(e,t){this.$emit("tableinsert",e,t)},onWindowDown(e){const{anchor:t}=this.$props;t&&(t===e.target||t.firstElementChild===e.target)||(this.$props.show&&!this.pointerdown&&this.$emit("close"),this.pointerdown=!1)},onPointerDown(){this.pointerdown=!0}}}),lo=t.defineComponent({name:"KendoInsertTable",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String,...n.Button.props},inject:{kendoLocalizationService:{default:null}},created(){this.buttonRef=o.guid()},data:()=>({openedPopup:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=r.provideLocalizationService(this),{createTable:d,createTableHint:c}=o.messages,p=l.toLanguageString(d,Qe[d]),u=l.toLanguageString(c,Qe[c]),h={...s,disabled:!a||!i.canInsert(a,a.schema.nodes.table),key:"InsertTable",title:p,...o.props},m=[t.h(n.Button,{ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...h}),e&&t.createVNode(ao,{key:"insertTablePopup",createTableMessage:p,createTableHintMessage:u,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,onTableinsert:this.onTableInsert},null)||null];return t.createVNode("span",null,[m])},methods:{togglePopup(){this.openedPopup=!this.openedPopup},closePopup(){this.openedPopup&&this.togglePopup()},onTableInsert(e,t){const{view:n}=this.$props;if(!n)return;const o=i.createTable(n.state.schema.nodes,e,t);o&&i.insertNode(o,!0)(n.state,n.dispatch),n.focus(),this.closePopup()},preventDefault(e){e.preventDefault()}}});function ro(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const co=t.defineComponent({name:"KendoViewHtmlDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},created(){this.textAreaId=o.guid()},inject:{kendoLocalizationService:{default:null}},data(){const{view:e}=this.$props;return{textAreaValue:i.indentHtml(i.getHtml(e.state))}},mounted(){this.htmlArea=o.getRef(this,"htmlArea"),this.htmlArea&&this.htmlArea.focus()},render(){let e,i;const{settings:s,dir:a}=this.$props,d=r.provideLocalizationService(this),{viewHtmlDialogTitle:c,viewHtmlCancel:p,viewHtmlUpdate:u}=s.messages,h=t.createVNode("span",{class:"k-input k-textarea k-input-md k-input-solid k-rounded-md k-editor-textarea"},[t.createVNode("textarea",{ref:o.setRef(this,"htmlArea"),onInput:this.textAreaChange,value:this.textAreaValue,id:this.textAreaId,role:"textbox",class:"k-input-inner !k-overflow-auto",tabindex:"0","aria-multiline":"true",style:"resize: none;"},null)]),m=[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:a,key:"cancel"},ro(e=d.toLanguageString(p,Qe[p]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",onClick:this.onUpdate,themeColor:"primary",dir:a,key:"update"},ro(i=d.toLanguageString(u,Qe[u]))?i:{default:()=>[i]})];return t.createVNode(l.Window,{initialHeight:400,initialWidth:500,windowClass:"k-editor-window",title:d.toLanguageString(c,Qe[c]),onClose:this.onClose,key:"dialog",dir:a,style:"rtl"===a?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[h,t.createVNode(l.DialogActionsBar,null,ro(m)?m:{default:()=>[m]})]})},methods:{textAreaChange(e){this.textAreaValue=e.target.value},onUpdate(){const{view:e,settings:t}=this.$props,n=i.trimWhitespace(this.htmlArea?this.textAreaValue:""),{preserveWhitespace:o}=En.getState(e.state);i.setHtml(n,t.commandName,{preserveWhitespace:o})(e.state,e.dispatch),this.onClose()},onClose(){this.$props.view.focus(),this.$emit("close")}}}),po=t.defineComponent({name:"KendoViewHtml",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...i}=this.$props,s=r.provideLocalizationService(this),a=o.messages.viewHtml,l={...i,key:"viewHtml",title:s.toLanguageString(a,Qe[a]),...o.props},d=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...l}),this.openedDialog&&e&&t.createVNode(co,{key:"viewHtmlDialog",view:e,settings:o,dir:l.dir,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[d])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),{pdf:uo,savePdfOptions:ho}=e.EditorToolsSettings,mo=t.defineComponent({name:"KendoPdf",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i=uo,savePdfOptions:s,savePdfCallback:a,...l}=this.$props,d=i.messages.title,c={...l,title:r.provideLocalizationService(this).toLanguageString(d,Qe[d]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...c})},methods:{handleClick(){this.view&&s.savePDF(this.view.dom,{...ho,...this.savePdfOptions||{}},this.savePdfCallback)},preventDefault(e){e.preventDefault()}}}),{print:go}=e.EditorToolsSettings,fo=t.defineComponent({name:"KendoPrint",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i=go,...s}=this.$props,a=e&&e.dom,l=a&&a.ownerDocument,d=l&&l.defaultView,c=i.messages.title,p=r.provideLocalizationService(this),u={...s,disabled:!d||d===window,title:p.toLanguageString(c,Qe[c]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...u})},methods:{handleClick(){const e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault(e){e.preventDefault()}}});function vo(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const ko=e.EditorToolsSettings.findAndReplace,wo=t.defineComponent({name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return ko}},dir:String},inject:{kendoLocalizationService:{default:null}},created(){this._prevMatch=void 0,this.nextMatch=void 0},data(){return{selectedTab:0,searchText:i.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){const e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated(){const e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){const o=n.state,s=o.tr,a=[];e.forEach((e=>{a.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),s.setMeta(i.textHighlightKey,a),s.setSelection(t||i.TextSelection.create(o.doc,o.selection.from)),n.dispatch(s)}},unmounted(){this.$el&&this.$el.remove()},render(){let e,i;const s=r.provideLocalizationService(this),{findReplaceDialogTitle:d,findReplaceTabFind:c,findReplaceTabReplace:p,findReplaceFindWhat:u,findReplaceReplaceWith:g,findReplaceReplace:f,findReplaceReplaceAll:v,findReplaceMatchCase:k,findReplaceMatchWord:w,findReplaceMatchCyclic:b,findReplaceUseRegExp:C,findReplacePrevMatch:y,findReplaceNextMatch:S,findReplaceMatches:I}=this.settings.messages,{matchCase:N,matchWord:T,matchCyclic:R,useRegExp:x,searchText:V,replaceText:L,nextMatch:M,error:D}=this,E=t.createVNode("div",{class:"k-search-options"},[t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-case",checked:N,onChange:this.onMatchCaseChecked},null),t.createVNode("label",{for:"match-case",class:"k-checkbox-label"},[s.toLanguageString(k,Qe[k])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-whole",checked:T,onChange:this.onMatchWordChecked},null),t.createVNode("label",{for:"match-whole",class:"k-checkbox-label"},[s.toLanguageString(w,Qe[w])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-cyclic",checked:R,onChange:this.onMatchCyclicChecked},null),t.createVNode("label",{for:"match-cyclic",class:"k-checkbox-label"},[s.toLanguageString(b,Qe[b])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"regular-expression",checked:x,onChange:this.onUseRegExpChecked},null),t.createVNode("label",{for:"regular-expression",class:"k-checkbox-label"},[s.toLanguageString(C,Qe[C])])])]),A=function(e){const i="rtl"===this.$props.dir,l=t.createVNode(n.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},{default:()=>[t.createVNode(o.Icon,{name:"chevron-"+(i?"right":"left"),icon:i?a.chevronRightIcon:a.chevronLeftIcon},null),s.toLanguageString(y,Qe[y])]}),r=t.createVNode(n.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},{default:()=>[s.toLanguageString(S,Qe[S]),t.createVNode(o.Icon,{name:"chevron-"+(i?"left":"right"),icon:i?a.chevronLeftIcon:a.chevronRightIcon},null)]});return t.createVNode("div",{class:"k-matches-container"},[l,this.hasMounted&&t.createVNode("span",{ref:e},[this.matchesMessage(s.toLanguageString(I,Qe[I]))]),r])},z=function(e){return t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{ref:e,for:e},[s.toLanguageString(u,Qe[u])])])},B=function(e){let n;return t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:e,ref:e,type:"text",class:"k-input-inner",value:V,onInput:this.onSearchChange,onFocus:this.onSearchChange,onKeydown:this.onKeyDown},null)]),D&&t.createVNode(m.Error,null,vo(n=s.toLanguageString(D,Qe[D]))?n:{default:()=>[n]})])},P=t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{for:"replaceWith"},[s.toLanguageString(g,Qe[g])])]),F=t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:"replaceWith",class:"k-input-inner",type:"text",value:L,onInput:this.onReplaceChange},null)])]);return t.createVNode(l.Window,{title:s.toLanguageString(d,Qe[d]),onClose:this.onClose,windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:()=>null,maximizeButton:()=>null,dir:this.$props.dir},{default:()=>[t.createVNode(h.TabStrip,{dir:this.$props.dir,selected:this.selectedTab,class:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},{default:()=>[t.createVNode(h.TabStripTab,{title:s.toLanguageString(c,Qe[c])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[z.call(this,"findWhatFind"),B.call(this,"findWhatFind")]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},null),E,A.call(this,"findWhatFind")]}),t.createVNode(h.TabStripTab,{title:s.toLanguageString(p,Qe[p])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[z.call(this,"findWhatReplace"),B.call(this,"findWhatReplace"),P,F]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},[t.createVNode(n.Button,{disabled:!M,onClick:this.onReplace},vo(e=s.toLanguageString(f,Qe[f]))?e:{default:()=>[e]}),t.createVNode(n.Button,{disabled:!M,onClick:this.onReplaceAll},vo(i=s.toLanguageString(v,Qe[v]))?i:{default:()=>[i]})]),E,A.call(this,"findWhatReplace")]})]})]})},methods:{onTabSelect(e){this.selectedTab=e.selected},onClose(){const e=this.$props.view,t=e.state,n=t.tr.setSelection(i.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage(e){const t=this.matches,n=this.nextMatch;let o=0,i=0;if(t&&n){const e=t.findIndex((e=>e.eq(n)));o=-1===e?t.length:e+1,i=t.length}return Un(e,o,i)},onFindNext(){this.onFind()},onFindPrev(){this.onFind(!0)},onFind(e=!1){const t=this.$props.view,{searchText:n,matchCase:o,matchCyclic:s,matchWord:a,useRegExp:l}=this.$data,r={text:n,matchWord:a,matchCase:o,useRegExp:l,backward:e,matchCyclic:s},d=i.find(t.state,r);if(d){const e=t.state.tr.setSelection(d);e.scrollIntoView(),t.updateState(t.state.apply(e)),this._prevMatch=this.nextMatch,this.nextMatch=d,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace(){const e=this.$props.view,t=e.state.selection,{replaceText:n}=this.$data;if(!t.empty){const o=t.from,s=o+n.length,a=i.replace(t,n,e.state.tr);a.setSelection(i.TextSelection.create(a.doc,o,s)),a.scrollIntoView(),e.dispatch(a),this.onFind(),this.setNextState({})}},onReplaceAll(){const e=this.$props.view,{searchText:t,replaceText:n,matchCase:o,matchWord:s,useRegExp:a}=this.$data,l={text:t,matchWord:s,matchCase:o,useRegExp:a},r=i.replaceAll(e.state,n,l);r&&(e.dispatch(r),this.setNextState({}))},onKeyDown(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange(e){this.replaceText=e.target.value,this.setNextState()},setNextState(){const e=this.$props.view;if(this.searchText){const t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection;let o,s=[];try{s=i.findAll(e.state.doc,t)}catch(e){e instanceof SyntaxError&&(o=this.settings.messages.findReplaceInvalidRegExp)}const a=!this.searchText&&s[0]||s.find((e=>e.from>=n.from))||this.matchCyclic&&s[0]||void 0;this._prevMatch=this.nextMatch,this.matches=s,this.nextMatch=a,this.error=o}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0,this.error=void 0}}}),bo=e.EditorToolsSettings.findAndReplace,Co=t.defineComponent({name:"KendoFindAndReplace",props:{view:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({showDialog:!1}),render(){const{view:e,...o}=this.$props,i=r.provideLocalizationService(this),s=bo.messages.findReplaceToolTitle,a={...o,key:"tool",disabled:!e,title:i.toLanguageString(s,Qe[s]),...bo.props},l=t.h(n.Button,{onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...a});return t.createVNode("span",null,[l,this.showDialog&&e&&t.createVNode(wo,{view:e,onClose:this.onClose,dir:this.$props.dir,key:"dialog"},null)])},methods:{onClose(){this.showDialog=!1},onOpen(){this.showDialog=!0},preventDefault(e){e.preventDefault()}}}),yo=t.defineComponent({name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String,ariaLabel:String},inject:{kendoLocalizationService:{default:null}},render(){const{colorPickerProps:e,dir:n,ariaLabel:o}=this.$props,i=e.title,s=r.provideLocalizationService(this),a={...e,dir:n,showButtons:!1,showClearButton:!1,showPreview:!1,title:i&&s.toLanguageString(i,Qe[i]),ariaLabel:o};return t.h(c.ColorPicker,{onChange:this.onChange,onActivecolorclick:this.onChange,...a})},methods:{onChange(e){const{view:t,color:n,colorPickerProps:o,commandName:s}=this.$props;if(t){i.applyInlineStyle({style:n,value:e.value},s)(t.state,t.dispatch);const{view:a="palette"}=o;"palette"===a&&t.focus()}}}}),{link:So,bold:Io,italic:No,underline:To}=e.EditorToolsSettings;function Ro(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const xo={Bold:{comp:Wn,props:e.EditorToolsSettings.bold},Italic:{comp:Wn,props:e.EditorToolsSettings.italic},Underline:{comp:Wn,props:e.EditorToolsSettings.underline},Strikethrough:{comp:Wn,props:e.EditorToolsSettings.strikethrough},Subscript:{comp:Wn,props:e.EditorToolsSettings.subscript},Superscript:{comp:Wn,props:e.EditorToolsSettings.superscript},AlignLeft:{comp:Hn,props:e.EditorToolsSettings.alignLeft},AlignCenter:{comp:Hn,props:e.EditorToolsSettings.alignCenter},AlignRight:{comp:Hn,props:e.EditorToolsSettings.alignRight},AlignJustify:{comp:Hn,props:e.EditorToolsSettings.alignJustify},Indent:{comp:$n,props:e.EditorToolsSettings.indent},Outdent:{comp:jn,props:e.EditorToolsSettings.outdent},OrderedList:{comp:On,props:e.EditorToolsSettings.orderedList},UnorderedList:{comp:On,props:e.EditorToolsSettings.bulletList},FontSize:{comp:_n,props:e.EditorToolsSettings.fontSize},FontName:{comp:_n,props:e.EditorToolsSettings.fontName},FormatBlock:{comp:qn,props:e.EditorToolsSettings.formatBlock},Undo:{comp:Gn,props:e.EditorToolsSettings.undo},Redo:{comp:Gn,props:e.EditorToolsSettings.redo},Link:{comp:Jn,props:e.EditorToolsSettings.link},Unlink:{comp:Qn,props:e.EditorToolsSettings.unlink},InsertImage:{comp:io,props:e.EditorToolsSettings.image},ViewHtml:{comp:po,props:e.EditorToolsSettings.viewHtml},CleanFormatting:{comp:Zn,props:e.EditorToolsSettings.cleanFormatting},SelectAll:{comp:to,props:e.EditorToolsSettings.selectAll},InsertTable:{comp:lo,props:e.EditorToolsSettings.insertTable},MergeCells:{comp:Gn,props:e.EditorToolsSettings.mergeCells},SplitCell:{comp:Gn,props:e.EditorToolsSettings.splitCell},AddRowBefore:{comp:Gn,props:e.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:Gn,props:e.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:Gn,props:e.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:Gn,props:e.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:Gn,props:e.EditorToolsSettings.deleteRow},DeleteColumn:{comp:Gn,props:e.EditorToolsSettings.deleteColumn},DeleteTable:{comp:Gn,props:e.EditorToolsSettings.deleteTable},Print:{comp:fo,props:e.EditorToolsSettings.print},Pdf:{comp:mo,props:e.EditorToolsSettings.pdf},InsertFile:{comp:Jn,props:e.EditorToolsSettings.insertFile},FindAndReplace:{comp:Co,props:e.EditorToolsSettings.findAndReplace},ForeColor:{comp:yo,props:e.EditorToolsSettings.foreColor},BackColor:{comp:yo,props:e.EditorToolsSettings.backColor}},Vo=t.defineComponent({name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},inject:{kendoLocalizationService:{default:null}},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function,ariaDescribedBy:String,ariaLabelledBy:String,ariaLabel:String},data:()=>({updateGuid:o.guid(),view:void 0,linkDialog:!1,showLicenseWatermark:!1,licenseMessage:void 0}),created(){this._view=void 0,this.trOnChange=null,this.valueisUpdated=!1,this._prevValue=this.$props.value,this.pluginViews=[],o.validatePackage(Pn),this.showLicenseWatermark=o.shouldShowValidationUI(Pn),this.licenseMessage=o.getLicenseMessage(Pn)},mounted(){this.iframe=o.getRef(this,"iframe"),this.contentElement=o.getRef(this,"contentElement"),(!this.iframe||!Bn)&&this.initialize()},watch:{value:function(e,t){this.valueisUpdated=!0,this._prevValue=t}},updated(){const{value:e}=this.$props,t=this.getView();void 0===e||!this.valueisUpdated||!t||(((e,t,n,o,i)=>{"string"==typeof t?o&&t===i?An(e,{tr:o}):t!==n&&An(e,{html:t}):o&&t.eq(o.doc)?An(e,{tr:o}):e.state.doc.eq(t)||An(e,{doc:t})})(t,this.computedValue(),this._prevValue,this.trOnChange,this.htmlOnChange),this.valueisUpdated=!1,this.trOnChange=null,this.htmlOnChange=null)},beforeUnmount(){var e,t;this.iframe&&(this.iframe.src="about:blank");const n=this.iframe,o=this.contentElement,i=this.getView();if(i){null==(e=this.pluginViews)||e.forEach((e=>{var t;null==(t=null==e?void 0:e.destroy)||t.call(e)}));const n=(e=>{let t=null;return t=e.dom,e.destroy(),e.state=null,e.dispatch=null,e.updateState=null,e.props=null,e.dom=null,e.docView=null,e.input=null,e.pluginViews&&(e.pluginViews=[]),t})(i);null==(t=null==n?void 0:n.parentNode)||t.removeChild(n)}this.view&&(e=>{Object.keys(e).forEach((t=>{e[t]=null}))})(this.view),this.view=void 0,this._view=null,this.trOnChange=null,this.htmlOnChange=null,this.pasteEvent=void 0,this.valueisUpdated=!1,this._prevValue=void 0,this.pluginViews&&(this.pluginViews.length=0,this.pluginViews=null),this.iframe=void 0,this.contentElement=void 0,n&&((e,t)=>{var n,o,i,s;const a=e.contentDocument||(null==(n=e.contentWindow)?void 0:n.document);a&&(t&&(zn(t),t.parentNode&&t.parentNode.removeChild(t)),a.body&&(zn(a.body),a.body.innerHTML=""),a.head&&(zn(a.head),a.head.innerHTML="")),null==(o=e.contentWindow)||o.document.open(),null==(i=e.contentWindow)||i.document.write(""),null==(s=e.contentWindow)||s.document.close(),e.parentNode&&e.parentNode.removeChild(e),e.contentDocument=null,e.contentWindow=null,e.src="about:blank"})(n,o),this.updateGuid=void 0,this.linkDialog=!1},unmounted(){this.view=void 0,this._view=null,this.iframe=void 0,this.contentElement=void 0,this.pluginViews=null},render(){let e=100;const{tools:i=[],defaultEditMode:s="iframe",preserveWhitespace:a="full",style:l,value:d}=this.$props,c=this.getView(),p=r.provideLocalizationService(this),u=this.showLicenseWatermark?t.createVNode(o.WatermarkOverlay,{message:this.licenseMessage},null):null;if(this.view){En.getState(this.view.state).preserveWhitespace=a}let h=this.$props.contentStyle;void 0===h&&void 0===(l||{}).height&&(h={height:"300px"});const m=function(i,s){const a=xo[i]||i,l=function(){let e;return"ForeColor"===i?e=p.toLanguageString(St,Qe[St]):"BackColor"===i&&(e=p.toLanguageString(yt,Qe[yt])),e};if(xo[i]){e++;const n={view:c,dir:this.$props.dir,key:e,updateGuid:this.updateGuid,settings:xo[i].props,...xo[i].props,ariaLabel:l()};return t.h(t.markRaw(xo[i].comp),n)}if("Separator"===a)return t.createVNode(n.ToolbarSeparator,{key:e},null);{const n=o.templateRendering.call(this,a.render,o.getListeners.call(this));return o.getTemplate.call(this,{h:t.h,template:n,defaultRendering:null,additionalListeners:{},additionalProps:{view:c,dir:this.$props.dir,updateGuid:this.updateGuid,key:e,settings:a.props}})}},g=function(e,t){return e.map((function(e){return m.call(this,e,t)}),this)},f=i.map((function(e,o){let i;return Array.isArray(e)?t.createVNode(n.ButtonGroup,{key:o},Ro(i=g.call(this,e,o))?i:{default:()=>[i]}):m.call(this,e,o)}),this);return t.createVNode("div",{class:o.classNames("k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir},[f.length>0&&t.createVNode(n.Toolbar,{overflow:"none",class:"k-editor-toolbar",keyboardNavigation:this.$props.keyboardNavigation},Ro(f)?f:{default:()=>[f]}),"iframe"===s?t.createVNode("div",{class:"k-editor-content"},[t.createVNode("iframe",{onLoad:this.iframeLoad,ref:o.setRef(this,"iframe"),frameborder:"0",title:p.toLanguageString(In,Qe[In]),style:h,class:"k-iframe"},null)]):t.createVNode("div",{style:h,class:"k-editor-content"},[t.createVNode("div",{ref:o.setRef(this,"contentElement"),role:"textbox","aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-label":this.$props.ariaLabel},null)]),function(){return this.linkDialog&&t.createVNode(Rn,{view:c,settings:So,dir:this.$props.dir,onClose:this.handleClose},null)}.call(this),u])},methods:{getView(){return this.view},getHTML(){const t=this.getView();return t?e.EditorUtils.getHtml(t.state):""},setHTML(t){const n=this.getView();n&&e.EditorUtils.setHtml(n,t)},focus(){this.getView()&&this.getView().focus()},updateTools(e){this.view=e,this.updateGuid=o.guid()},iframeLoad(){Bn&&this.initialize()},initialize(){const n=this.iframe&&this.iframe.contentWindow;if(n){const e=n.document;[b,C,"rtl"===this.$props.dir?"body { direction: rtl }":void 0].forEach((t=>{if(t){const n=e.createElement("style");n.appendChild(e.createTextNode(t)),e.head.appendChild(n)}}));const t=e.createElement("meta");t.setAttribute("charset","utf-8"),e.head.appendChild(t),this.contentElement=e.createElement("div"),e.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content"),this.contentElement.setAttribute("role","main")}const s=this.contentElement;if(!s)return;const{preserveWhitespace:a="full"}=this.$props,l=this,r=function(e){l.view=e,l.updateGuid=o.guid()};let d=[new i.Plugin({view:e=>{const t={update:r,destroy:()=>{const e=l.pluginViews.indexOf(t);e>-1&&l.pluginViews.splice(e,1)}};return l.pluginViews.push(t),t},key:new i.PluginKey("toolbar-tools-update-plugin")}),new i.Plugin({filterTransaction:this.filterTransaction,key:new i.PluginKey("onExecute-event-plugin")}),new i.Plugin({key:En,state:{init:()=>({preserveWhitespace:a}),apply:(e,t)=>t}}),i.spacesFix(),i.history(),i.dropCursor(),i.gapCursor(),i.tableEditing()],c={...e.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:Io,italic:No,underline:To}}),"Mod-k":()=>{const{linkDialog:e}=this.$data,t=this.getView();if(t){const n=t.state,o=n.selection.empty,s=i.getMark(n,n.schema.marks[So.mark]);!e&&(!o||s)&&(this.linkDialog=!0)}return!e}};const{defaultContent:p="",value:u}=this.$props,h=u&&"string"!=typeof u?t.toRaw(u):e.EditorUtils.createDocument(new i.Schema({nodes:w,marks:i.marks}),u||p,{preserveWhitespace:a}),m={state:i.EditorState.create({plugins:[...d,i.keymap(c),i.keymap(i.baseKeymap)],doc:h}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},g={plugins:d,shortcuts:c,target:l,viewProps:m,dom:s};this.$emit("loaded",g);const f=this.$props.extendView&&this.$props.extendView(g)||new i.EditorView({mount:s},m);this.view=t.markRaw(f)},filterTransaction(e,t){const n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml(e){if(this.$props.pasteHtml&&this.pasteEvent){const t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction(t){const n=t.docChanged;if(n){this.trOnChange=t;const n=t.doc,o=t.doc.type.schema,i=this,s={target:i,value:n,get html(){return i.htmlOnChange=e.EditorUtils.getHtml({doc:n,schema:o}),i.htmlOnChange},transaction:t,schema:o};this.$emit("change",s)}this.getView()&&(void 0===this.$props.value||!n)&&this.getView().updateState(this.getView().state.apply(t))},onFocus(e,t){const n={target:this,event:t};return this.$emit("focus",n),!1},onBlur(e,t){const n={target:this,event:t};return this.$emit("blur",n),!1},onPaste(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose(){this.linkDialog=!1},computedValue(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}}}),Lo=i.columnResizingPluginKey,Mo={Selection:i.Selection,SelectionRange:i.SelectionRange,TextSelection:i.TextSelection,NodeSelection:i.NodeSelection,AllSelection:i.AllSelection,EditorState:i.EditorState,Plugin:i.Plugin,PluginKey:i.PluginKey,Transaction:i.Transaction,Decoration:i.Decoration,DecorationSet:i.DecorationSet,EditorView:i.EditorView,Node:i.Node,ResolvedPos:i.ResolvedPos,NodeRange:i.NodeRange,Fragment:i.Fragment,Slice:i.Slice,ReplaceError:i.ReplaceError,Mark:i.Mark,Schema:i.Schema,NodeType:i.NodeType,MarkType:i.MarkType,ContentMatch:i.ContentMatch,DOMParser:i.DOMParser,DOMSerializer:i.DOMSerializer,Transform:i.Transform,Step:i.Step,StepResult:i.StepResult,joinPoint:i.joinPoint,canJoin:i.canJoin,canSplit:i.canSplit,insertPoint:i.insertPoint,dropPoint:i.dropPoint,liftTarget:i.liftTarget,findWrapping:i.findWrapping,StepMap:i.StepMap,MapResult:i.MapResult,Mapping:i.Mapping,AddMarkStep:i.AddMarkStep,RemoveMarkStep:i.RemoveMarkStep,ReplaceStep:i.ReplaceStep,ReplaceAroundStep:i.ReplaceAroundStep,replaceStep:i.replaceStep,deleteSelection:i.deleteSelection,joinBackward:i.joinBackward,selectNodeBackward:i.selectNodeBackward,joinForward:i.joinForward,selectNodeForward:i.selectNodeForward,joinUp:i.joinUp,joinDown:i.joinDown,lift:i.lift,newlineInCode:i.newlineInCode,exitCode:i.exitCode,createParagraphNear:i.createParagraphNear,liftEmptyBlock:i.liftEmptyBlock,splitBlock:i.splitBlock,splitBlockKeepMarks:i.splitBlockKeepMarks,selectParentNode:i.selectParentNode,selectAll:i.selectAll,wrapIn:i.wrapIn,setBlockType:i.setBlockType,toggleMark:i.toggleMark,autoJoin:i.autoJoin,chainCommands:i.chainCommands,pcBaseKeymap:i.pcBaseKeymap,macBaseKeymap:i.macBaseKeymap,baseKeymap:i.baseKeymap,history:i.history,undo:i.undo,redo:i.redo,undoDepth:i.undoDepth,redoDepth:i.redoDepth,InputRule:i.InputRule,inputRules:i.inputRules,undoInputRule:i.undoInputRule,emDash:i.emDash,ellipsis:i.ellipsis,openDoubleQuote:i.openDoubleQuote,closeDoubleQuote:i.closeDoubleQuote,openSingleQuote:i.openSingleQuote,closeSingleQuote:i.closeSingleQuote,smartQuotes:i.smartQuotes,wrappingInputRule:i.wrappingInputRule,textblockTypeInputRule:i.textblockTypeInputRule,keymap:i.keymap,keydownHandler:i.keydownHandler,orderedList:i.orderedList,bulletList:i.bulletList,listItem:i.listItem,addListNodes:i.addListNodes,wrapInList:i.wrapInList,splitListItem:i.splitListItem,liftListItem:i.liftListItem,sinkListItem:i.sinkListItem,dropCursor:i.dropCursor,gapCursor:i.gapCursor,tableEditing:i.tableEditing,fixTables:i.fixTables,fixTablesKey:i.fixTablesKey,cellAround:i.cellAround,isInTable:i.isInTable,selectionCell:i.selectionCell,moveCellForward:i.moveCellForward,inSameTable:i.inSameTable,findCell:i.findCell,colCount:i.colCount,nextCell:i.nextCell,removeColSpan:i.removeColSpan,addColSpan:i.addColSpan,columnIsHeader:i.columnIsHeader,tableNodes:i.tableNodes,tableNodeTypes:i.tableNodeTypes,CellSelection:i.CellSelection,TableMap:i.TableMap,tableEditingKey:i.tableEditingKey,columnResizing:i.columnResizing,columnResizingPluginKey:Lo,updateColumnsOnResize:i.updateColumnsOnResize,selectedRect:i.selectedRect,addColumn:i.addColumn,addColumnBefore:i.addColumnBefore,addColumnAfter:i.addColumnAfter,deleteColumn:i.deleteColumn,rowIsHeader:i.rowIsHeader,addRow:i.addRow,addRowBefore:i.addRowBefore,addRowAfter:i.addRowAfter,deleteRow:i.deleteRow,mergeCells:i.mergeCells,splitCell:i.splitCell,splitCellWithType:i.splitCellWithType,setCellAttr:i.setCellAttr,toggleHeader:i.toggleHeader,toggleHeaderRow:i.toggleHeaderRow,toggleHeaderColumn:i.toggleHeaderColumn,toggleHeaderCell:i.toggleHeaderCell,goToNextCell:i.goToNextCell,deleteTable:i.deleteTable};e.Align=Hn,e.ApplyColor=yo,e.CleanFormatting=Zn,e.Editor=Vo,e.FindAndReplace=Co,e.FontName=_n,e.FormatBlock=qn,e.Indent=$n,e.InlineFormat=Wn,e.InsertImage=io,e.InsertTable=lo,e.LinkTool=Jn,e.List=On,e.Outdent=jn,e.Pdf=mo,e.Print=fo,e.ProseMirror=Mo,e.ProseMirrorTool=Gn,e.SelectAll=to,e.Unlink=Qn,e.ViewHtml=po}));
15
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-buttons"),require("@progress/kendo-vue-common"),require("@progress/kendo-editor-common"),require("@progress/kendo-vue-pdf"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-dialogs"),require("@progress/kendo-vue-intl"),require("@progress/kendo-vue-form"),require("@progress/kendo-vue-inputs"),require("@progress/kendo-vue-dropdowns"),require("@progress/kendo-vue-popup"),require("@progress/kendo-vue-layout"),require("@progress/kendo-vue-labels")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-buttons","@progress/kendo-vue-common","@progress/kendo-editor-common","@progress/kendo-vue-pdf","@progress/kendo-svg-icons","@progress/kendo-vue-dialogs","@progress/kendo-vue-intl","@progress/kendo-vue-form","@progress/kendo-vue-inputs","@progress/kendo-vue-dropdowns","@progress/kendo-vue-popup","@progress/kendo-vue-layout","@progress/kendo-vue-labels"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueEditor={},e.Vue,e.KendoVueButtons,e.KendoVueCommon,e.KendoEditorCommon,e.KendoVuePdf,e.KendoSVGIcons,e.KendoVueDialogs,e.KendoVueIntl,e.KendoVueForm,e.KendoVueInputs,e.KendoVueDropdowns,e.KendoVuePopup,e.KendoVueLayout,e.KendoVueLabels)}(this,(function(e,t,n,o,i,s,a,l,r,d,c,p,u,h,m){"use strict";const g=e=>({[e]:{default:null,getFromDOM:t=>t.getAttribute(e),setDOMAttr:(t,n)=>{n[e]=t}}}),f=e=>{const t={};return Array.from(e.attributes).forEach((e=>{t[e.nodeName]=e.nodeValue})),t},v={...g("style"),...g("class"),...g("id")},k=i.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:v});k.table_row.attrs=k.table_row.attrs||{},k.table_row.attrs.style={default:null},k.table_row.attrs.class={default:null},k.table_row.attrs.id={default:null},k.table_row.toDOM=e=>["tr",e.attrs,0],k.table_row.parseDOM=[{tag:"tr",getAttrs:f}],k.table.attrs=k.table.attrs||{},k.table.attrs.style={default:null},k.table.attrs.class={default:null},k.table.attrs.id={default:null},k.table.toDOM=e=>["table",e.attrs,["tbody",0]],k.table.parseDOM=[{tag:"table",getAttrs:f}];const w={...i.nodes,...k},b='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',C='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n .ProseMirror .selectedCell ::selection {\n background-color: transparent;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',y="editor.bold",S="editor.italic",I="editor.underline",N="editor.strikethrough",T="editor.subscript",R="editor.superscript",x="editor.hyperlink",V="editor.insertFile",L="editor.print",M="editor.selectAll",D="editor.cleanFormatting",E="editor.pdf",A="editor.foregroundColor",z="editor.backgroundColor",B="editor.foregroundColorAriaLabel",P="editor.backgroundColorAriaLabel",F="editor.createTable",H="editor.insertTableHint",$="editor.addRowBefore",O="editor.addRowAfter",j="editor.addColumnBefore",W="editor.addColumnAfter",K="editor.deleteRow",U="editor.deleteColumn",_="editor.deleteTable",q="editor.mergeCells",G="editor.splitCell",J="editor.hyperlink-dialog-title",Q="editor.hyperlink-dialog-content-address",X="editor.hyperlink-dialog-content-title",Y="editor.hyperlink-dialog-content-newwindow",Z="editor.hyperlink-dialog-cancel",ee="editor.hyperlink-dialog-insert",te="editor.insertfile-dialog-title",ne="editor.insertfile-dialog-content-address",oe="editor.insertfile-dialog-content-title",ie="editor.insertfile-dialog-cancel",se="editor.insertfile-dialog-insert",ae="editor.image",le="editor.image-dialog-title",re="editor.image-address",de="editor.image-title",ce="editor.image-altText",pe="editor.image-width",ue="editor.image-height",he="editor.image-cancel",me="editor.image-insert",ge="editor.viewHtml",fe="editor.viewHtml-dialog-title",ve="editor.viewHtml-cancel",ke="editor.viewHtml-update",we="editor.unlink",be="editor.undo",Ce="editor.redo",ye="editor.fontSize",Se="editor.fontName",Ie="editor.format",Ne="editor.alignLeft",Te="editor.alignRight",Re="editor.alignCenter",xe="editor.alignJustify",Ve="editor.indent",Le="editor.outdent",Me="editor.orderedList",De="editor.bulletList",Ee="editor.findReplace-tool-title",Ae="editor.findReplace-dialog-title",ze="editor.findReplace-tab-find",Be="editor.findReplace-tab-replace",Pe="editor.findReplace-findWhat",Fe="editor.findReplace-replaceWith",He="editor.findReplace-replace",$e="editor.findReplace-replaceAll",Oe="editor.findReplace-matchCase",je="editor.findReplace-matchWord",We="editor.findReplace-matchCyclic",Ke="editor.findReplace-useRegExp",Ue="editor.findReplace-prevMatch",_e="editor.findReplace-nextMatch",qe="editor.findReplace-matches",Ge="editor.findReplace-invalidRegExp",Je="editor.iframeTitle",Qe={[y]:"Bold",[S]:"Italic",[I]:"Underline",[N]:"Strikethrough",[T]:"Subscript",[R]:"Superscript",[we]:"Remove hyperlink",[be]:"Undo",[Ce]:"Redo",[ye]:"Font Size",[Se]:"Font Name",[Ie]:"Format",[Ne]:"Align text left",[Te]:"Align text right",[Re]:"Center text",[xe]:"Justify",[Ve]:"Indent",[Le]:"Outdent",[Me]:"Insert ordered list",[De]:"Insert unordered list",[L]:"Print",[M]:"Select All",[D]:"Clean formatting",[E]:"Export as PDF",[A]:"Color",[z]:"Background color",[B]:"Set ForeGround color",[P]:"Set Background color",[F]:"Create a table",[H]:"Create a {0} x {1} table",[$]:"Add row above",[O]:"Add row below",[j]:"Add column on the left",[W]:"Add column on the right",[K]:"Delete row",[U]:"Delete column",[_]:"Delete table",[q]:"Merge cells",[G]:"Split cell",[x]:"Insert hyperlink",[J]:"Insert hyperlink",[Q]:"Web address",[X]:"Title",[Y]:"Open link in new window",[Z]:"Cancel",[ee]:"Insert",[V]:"Insert file",[te]:"Insert file",[ne]:"Web address",[oe]:"Title",[ie]:"Cancel",[se]:"Insert",[ae]:"Insert image",[le]:"Insert image",[re]:"Web address",[de]:"Title",[ce]:"Alternate text",[pe]:"Width (px)",[ue]:"Height (px)",[he]:"Cancel",[me]:"Insert",[ge]:"View HTML",[fe]:"View HTML",[ve]:"Cancel",[ke]:"Update",[Ee]:"Find and Replace",[Ae]:"Find and Replace",[ze]:"Find",[Be]:"Replace",[Pe]:"Find What:",[Fe]:"Replace With",[He]:"Replace",[$e]:"Replace All",[Oe]:"Match Case",[je]:"Match whole word only",[We]:"Match cyclic (Wrap around)",[Ke]:"Regular Expression",[Ue]:"Prev",[_e]:"Next",[qe]:"{0} of {1} matches",[Ge]:"Invalid regular expression.",[Je]:"Editable area. Press Alt + F10 for toolbar."},Xe=y,Ye=S,Ze=I,et=N,tt=T,nt=R,ot=we,it=be,st=Ce,at=ye,lt=Se,rt=Ie,dt=Ne,ct=Te,pt=Re,ut=xe,ht=Ve,mt=Le,gt=Me,ft=De,vt=L,kt=M,wt=D,bt=E,Ct=A,yt=z,St=B,It=F,Nt=H,Tt=$,Rt=O,xt=j,Vt=W,Lt=K,Mt=U,Dt=_,Et=q,At=G,zt=x,Bt=J,Pt=Q,Ft=X,Ht=Y,$t=Z,Ot=ee,jt=V,Wt=te,Kt=ne,Ut=oe,_t=ie,qt=se,Gt=ae,Jt=le,Qt=re,Xt=de,Yt=ce,Zt=pe,en=ue,tn=he,nn=me,on=ge,sn=fe,an=ve,ln=ke,rn=Ee,dn=Ae,cn=ze,pn=Be,un=Pe,hn=Fe,mn=He,gn=$e,fn=Oe,vn=je,kn=We,wn=Ke,bn=Ue,Cn=_e,yn=qe,Sn=Ge,In=Je,Nn={...i.indentRules.listsTypes};function Tn(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}e.EditorToolsSettings=void 0,(e=>{const t={type:"button"};e.bold={...i.bold,props:{icon:"bold",svgIcon:a.boldIcon,...t},messages:{title:Xe},commandName:"Bold"},e.italic={...i.italic,props:{icon:"italic",svgIcon:a.italicIcon,...t},messages:{title:Ye},commandName:"Italic"},e.underline={...i.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...t},messages:{title:Ze},commandName:"Underline"},e.strikethrough={...i.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...t},messages:{title:et},commandName:"Strikethrough"},e.subscript={...i.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...t},messages:{title:tt},commandName:"Subscript"},e.superscript={...i.superscript,props:{icon:"supscript",svgIcon:a.supscriptIcon,...t},messages:{title:nt},commandName:"Superscript"},e.link={...i.link,props:{icon:"link",svgIcon:a.linkIcon,...t},messages:{insertHyperlink:zt,insertHyperlinkDialogTitle:Bt,insertHyperlinkAddress:Pt,insertHyperlinkTitle:Ft,insertHyperlinkNewWindow:Ht,insertHyperlinkCancel:$t,insertHyperlinkInsert:Ot},commandName:"Link"},e.insertFile={...i.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...t},messages:{insertHyperlink:jt,insertHyperlinkDialogTitle:Wt,insertHyperlinkAddress:Kt,insertHyperlinkTitle:Ut,insertHyperlinkNewWindow:"",insertHyperlinkCancel:_t,insertHyperlinkInsert:qt},commandName:"InsertFile",linkTarget:!1},e.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...t},messages:{createTable:It,createTableHint:Nt},commandName:"InsertTable"},e.addRowBefore={command:i.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...t},messages:{title:Tt},commandName:"AddRowBefore"},e.addRowAfter={command:i.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...t},messages:{title:Rt},commandName:"AddRowAfter"},e.addColumnBefore={command:i.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...t},messages:{title:xt},commandName:"AddColumnBefore"},e.addColumnAfter={command:i.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...t},messages:{title:Vt},commandName:"AddColumnAfter"},e.deleteRow={command:i.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...t},messages:{title:Lt},commandName:"DeleteRow"},e.deleteColumn={command:i.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...t},messages:{title:Mt},commandName:"DeleteColumn"},e.deleteTable={command:i.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...t},messages:{title:Dt},commandName:"DeleteTable"},e.mergeCells={command:i.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...t},messages:{title:Et},commandName:"MergeCells"},e.splitCell={command:i.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...t},messages:{title:At},commandName:"SplitCell"},e.print={props:{icon:"print",svgIcon:a.printIcon,...t},messages:{title:vt}},e.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...t},messages:{title:kt}},e.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...t},messages:{title:bt}},e.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},e.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...t},messages:{title:wt},commandName:"CleanFormatting"},e.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...t},messages:{insertImage:Gt,insertImageDialogTitle:Jt,insertImageAddress:Qt,insertImageTitle:Xt,insertImageAltText:Yt,insertImageWidth:Zt,insertImageHeight:en,insertImageCancel:tn,insertImageInsert:nn},commandName:"InsertImage"},e.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...t},messages:{viewHtml:on,viewHtmlDialogTitle:sn,viewHtmlCancel:an,viewHtmlUpdate:ln},commandName:"SetContent"},e.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...t},messages:{findReplaceToolTitle:rn,findReplaceDialogTitle:dn,findReplaceTabFind:cn,findReplaceTabReplace:pn,findReplaceFindWhat:un,findReplaceReplaceWith:hn,findReplaceReplace:mn,findReplaceReplaceAll:gn,findReplaceMatchCase:fn,findReplaceMatchWord:vn,findReplaceMatchCyclic:kn,findReplaceUseRegExp:wn,findReplacePrevMatch:bn,findReplaceNextMatch:Cn,findReplaceMatches:yn,findReplaceInvalidRegExp:Sn}},e.unlink={...i.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...t},messages:{title:ot},commandName:"Unlink"},e.undo={command:i.undo,props:{icon:"undo",svgIcon:a.undoIcon,...t},messages:{title:it},commandName:"Undo"},e.redo={command:i.redo,props:{icon:"redo",svgIcon:a.redoIcon,...t},messages:{title:st},commandName:"Redo"},e.fontSize={style:"font-size",defaultItem:{text:Qe[at],value:"",localizationKey:at},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},e.fontName={style:"font-family",defaultItem:{text:Qe[lt],value:"",localizationKey:lt},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},e.formatBlock={defaultItem:{text:Qe[rt],value:"",localizationKey:rt},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},e.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:Ct},commandName:"ForeColor"},e.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:yt},commandName:"BackColor"},e.alignLeft={actions:[...i.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...t},messages:{title:dt},commandName:"AlignLeft"},e.alignRight={actions:[...i.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...t},messages:{title:ct},commandName:"AlignRight"},e.alignCenter={actions:[...i.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...t},messages:{title:pt},commandName:"AlignCenter"},e.alignJustify={actions:[...i.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...t},messages:{title:ut},commandName:"AlignJustify"},e.alignRemove={actions:[...i.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...t},messages:{},commandName:"AlignRemove"},e.indent={actions:i.indentRules.nodes,listsTypes:Nn,props:{icon:"indent",svgIcon:a.indentIcon,...t},messages:{title:ht},commandName:"Indent"},e.outdent={actions:i.outdentRules.nodes,listsTypes:Nn,props:{icon:"outdent",svgIcon:a.outdentIcon,...t},messages:{title:mt},commandName:"Outdent"},e.orderedList={listType:Nn.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...t},messages:{title:gt},commandName:"OrderedList",types:{...Nn}},e.bulletList={listType:Nn.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...t},messages:{title:ft},commandName:"UnorderedList",types:{...Nn}}})(e.EditorToolsSettings||(e.EditorToolsSettings={}));const Rn=t.defineComponent({name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},data(){const{view:e,settings:t}=this.$props,n=!!e&&i.getMark(e.state,e.state.schema.marks[t.mark]);return{hrefValue:n&&n.attrs.href||void 0,titleValue:n&&n.attrs.title||void 0,targetValue:n&&!!n.attrs.target||void 0}},inject:{kendoLocalizationService:{default:null}},mounted(){this.href=o.getRef(this,"href"),this.title=o.getRef(this,"title"),this.target=o.getRef(this,"target"),this.href&&this.href.focus()},render(){let e,i;const{settings:s,dir:a}=this.$props,p=r.provideLocalizationService(this),{insertHyperlinkDialogTitle:u,insertHyperlinkAddress:h,insertHyperlinkTitle:m,insertHyperlinkNewWindow:g,insertHyperlinkCancel:f,insertHyperlinkInsert:v}=s.messages,k=p.toLanguageString(g,Qe[g]),w=t.createVNode(d.Form,null,{default:()=>[t.createVNode(d.FormElement,{horizontal:!0},{default:()=>[t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-link-url",class:"k-form-label"},[p.toLanguageString(h,Qe[h])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-link-url",ref:o.setRef(this,"href"),onInput:this.hrefChange,value:this.hrefValue},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-link-text",class:"k-form-label"},[p.toLanguageString(m,Qe[m])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-link-text",ref:o.setRef(this,"title"),onInput:this.titleChange,value:this.titleValue},null)])]}),!1!==s.linkTarget&&t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("div",{class:"k-form-label"},null),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Checkbox,{id:"k-editor-link-target",ref:o.setRef(this,"target"),label:k,onChange:this.targetChange,checked:this.targetValue},null)])]})]})]});return t.createVNode(l.Window,{initialWidth:450,initialHeight:250,windowClass:"k-editor-window",title:p.toLanguageString(u,Qe[u]),onClose:this.onClose,dir:a,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[w,t.createVNode(l.DialogActionsBar,null,{default:()=>[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:a,key:"cancel"},Tn(e=p.toLanguageString(f,Qe[f]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",onClick:this.onInsert,themeColor:"primary",dir:a,key:"insert"},Tn(i=p.toLanguageString(v,Qe[v]))?i:{default:()=>[i]})]})]})},methods:{hrefChange(e){this.hrefValue=e.value},titleChange(e){this.titleValue=e.value},targetChange(e){this.targetValue=e.value},onClose(){this.$props.view.focus(),this.$emit("close")},onInsert(){const e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.hrefValue:void 0,title:this.title?this.titleValue:void 0,target:this.target&&this.targetValue?"_blank":void 0};i.applyLink({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}}),{bold:xn,underline:Vn,italic:Ln}=e.EditorToolsSettings,Mn="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Dn=e=>{const t=i.chainCommands(i.exitCode,((t,n)=>{const o=e&&e.types&&e.types.hardBreak||"hard_break",i=t.schema.nodes[o];return n&&n(t.tr.replaceSelectionWith(i.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",o=e&&e.toolsSettings||{};return{"Mod-b":(e,t)=>i.toggleInlineFormat(o.bold||xn)(e,t),"Mod-i":(e,t)=>i.toggleInlineFormat(o.italic||Ln)(e,t),"Mod-u":(e,t)=>i.toggleInlineFormat(o.underline||Vn)(e,t),"Mod-z":i.undo,"Shift-Mod-z":i.redo,...Mn?{}:{"Mod-y":i.redo},Backspace:i.undoInputRule,"Mod-Enter":t,"Shift-Enter":t,...Mn?{"Ctrl-Enter":t}:{},Enter:(e,t)=>i.splitListItem(e.schema.nodes[n])(e,t),Tab:i.goToNextCell(1),"Shift-Tab":i.goToNextCell(-1)}},En=new i.PluginKey("editor-props");e.EditorUtils=void 0,(e=>{e.alignBlocks=function(e,t,n){return!!i.alignBlocks(t,n)(e.state,e.dispatch)},e.applyInlineStyle=function(e,t,n){return i.applyInlineStyle(t,n)(e.state,e.dispatch)},e.applyLink=function(e,t,n){return i.applyLink(t,n)(e.state,e.dispatch)},e.canIndentList=function(e,t){return i.canIndentAsListItem(e,t)},e.canInsert=function(e,t){return i.canInsert(e,t)},e.canOutdentList=function(e,t){return i.canOutdentAsListItem(e,{listsTypes:t,nodes:[]})},e.convertMsLists=function(e){return i.convertMsLists(e)},e.createDocument=function(e,t,n){return i.parseContent(i.trimWhitespace(t),e,void 0!==n?n:{preserveWhitespace:"full"})},e.createTable=function(e,t,n){return i.createTable(e,t,n)},e.formatBlockElements=function(e,t,n){return i.formatBlockElements(t,n)(e.state,e.dispatch)},e.getBlockFormats=function(e){return i.getBlockFormats(e)},e.getHtml=function(e){return i.getHtml(e)},e.getInlineStyles=function(e,t){return i.getInlineStyles(e,t)},e.getMark=function(e,t){return i.getMark(e,t)},e.hasMark=function(e,t){return i.hasMark(e,t)},e.hasNode=function(e,t){return i.hasNode(e,t)},e.indentBlocks=function(e,t,n,o){return!!i.indentBlocks(t,n,o)(e.state,e.dispatch)},e.indentHtml=function(e){return i.indentHtml(e)},e.insertNode=function(e,t,n){i.insertNode(t,n)(e.state,e.dispatch)},e.isAligned=function(e,t){return i.isAligned(e,t)},e.isIndented=function(e,t,n){return i.isIndented(e,t,n)},e.removeComments=function(e){return i.removeComments(e)},e.removeTag=function(e,t){return i.removeTag(e,t)},e.pasteCleanup=function(e,t){return i.pasteCleanup(e,t)},e.sanitizeClassAttr=function(e){i.sanitizeClassAttr(e)},e.sanitizeStyleAttr=function(e){i.sanitizeStyleAttr(e)},e.removeAttribute=function(e){i.removeAttribute(e)},e.sanitize=function(e){return i.sanitize(e)},e.replaceImageSourcesFromRtf=function(e,t){return i.replaceImageSourcesFromRtf(e,t)},e.textHighlight=function(e){return i.textHighlight(e)},e.imageResizing=function(e){return i.imageResizing(e)},e.setHtml=function(e,t,n,o){const s=i.trimWhitespace(t);i.setHtml(s,n,o)(e.state,e.dispatch)},e.toggleInlineFormat=function(e,t,n,o){return i.toggleInlineFormat(t,n,o)(e.state,e.dispatch)},e.toggleList=function(e,t,n){return i.toggleList(e.state,e.dispatch,e,t,n)},e.getShortcuts=function(e){return Dn(e)},e.propsKey=En,e.imageResizeKey=i.imageResizeKey,e.marks={...i.marks},e.nodes={...w}})(e.EditorUtils||(e.EditorUtils={}));const An=(t,n)=>{const o=n.tr||t.state.tr.setSelection(new i.AllSelection(t.state.doc)).replaceSelectionWith(n.doc||e.EditorUtils.createDocument(t.state.schema,n.html||"")).setMeta("commandName","setHTML");t.updateState(t.state.apply(o))},zn=e=>{for(;e.firstChild;){const t=e.firstChild;zn(t),"removeChild"in e&&"function"==typeof e.removeChild&&e.removeChild(t)}if(e instanceof Element){const t=e.attributes;for(let n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name)}},Bn={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1640240773,version:"8.0.2-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},{alignRemove:Pn}=e.EditorToolsSettings,Fn=t.defineComponent({name:"KendoAlign",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=!!a&&i.isAligned(a,o.actions),d=r.provideLocalizationService(this),c=o.messages.title,p={...s,selected:l,togglable:!0,title:d.toLanguageString(c,Qe[c]),...o.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...p})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n=e&&e.state,o=!!n&&i.isAligned(n,t.actions),s=o?Pn.actions:t.actions,a=o?Pn.commandName:t.commandName;return e&&i.alignBlocks(s,a)(e.state,e.dispatch)},preventDefault(e){e.preventDefault()}}}),Hn=t.defineComponent({name:"KendoIndent",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,d=l&&l.schema.nodes,c=d&&d[s.listsTypes.listItem],p=s.actions,u=!!l&&(i.isIndented(l,p,a.dir)||p.some((e=>d[e.node]&&i.hasNode(l,d[e.node]))))&&!i.hasNode(l,c),h=!!l&&i.canIndentAsListItem(l,c),m=u||h,g=r.provideLocalizationService(this),f=s.messages.title,v={...a,disabled:!m,title:g.toLanguageString(f,Qe[f]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...v})},methods:{handleClick(){const e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],o=this.settings.actions,s=!!e&&(i.isIndented(e,o,this.dir)||o.some((n=>t[n.node]&&i.hasNode(e,t[n.node]))))&&!i.hasNode(e,n),a=!!e&&i.canIndentAsListItem(e,n);this.view&&a?i.sinkListItem(n)(this.view.state,this.view.dispatch):this.view&&s&&i.indentBlocks(o,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault(e){e.preventDefault()}}}),$n=t.defineComponent({name:"KendoList",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props;let l=!1;const d=r.provideLocalizationService(this),c=s.messages.title,p=s.types,u=s.listType;if(e){const t=e.state,n=t.schema.nodes,o=i.hasNode(t,n[p.orderedList]),s=i.hasNode(t,n[p.bulletList]);l=u===p.orderedList?o&&!s:!o&&s}const h={...a,selected:l,togglable:!0,title:d.toLanguageString(c,Qe[c]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...h})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n=t.types,o=t.listType;this.view&&i.toggleList(e.state,e.dispatch,e,{listType:o,...n},t.commandName)},preventDefault(e){e.preventDefault()}}}),On=t.defineComponent({name:"KendoOutdent",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,d=!!l&&i.isIndented(l,s.actions,a.dir);l&&l.schema.nodes[s.listsTypes.listItem];const c=!!l&&i.canOutdentAsListItem(l,{nodes:s.actions,listsTypes:s.listsTypes}),p=d||c,u=r.provideLocalizationService(this),h=s.messages.title,m={...a,disabled:!p,title:u.toLanguageString(h,Qe[h]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...m})},methods:{handleClick(){const{view:e,settings:t,dir:n}=this.$props,o=e&&e.state,s=!!o&&i.isIndented(o,t.actions,n),a=o&&o.schema.nodes[t.listsTypes.listItem],l=!!o&&i.canOutdentAsListItem(o,{nodes:t.actions,listsTypes:t.listsTypes});e&&l?i.liftListItem(a)(e.state,e.dispatch):e&&s&&i.indentBlocks(t.actions,t.commandName,n)(e.state,e.dispatch)},preventDefault(e){e.preventDefault()}}}),jn=t.defineComponent({name:"KendoInlineFormat",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:s,...a}=this.$props,l=e&&e.state,{mark:d,altMarks:c,altStyle:p}=s,u={mark:d,altMarks:c,altStyle:p},h=r.provideLocalizationService(this),m=s.messages.title,g={...a,selected:!!l&&i.hasMark(l,u),togglable:!0,title:h.toLanguageString(m,Qe[m]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...g})},methods:{handleClick(){const e=this.view&&this.view.state,{mark:t,altMarks:n,altStyle:o}=this.settings,s={mark:t,altMarks:n,altStyle:o};return this.view&&i.toggleInlineFormat(s,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault(e){e.preventDefault()}}}),Wn={userSelect:"none"},Kn=function(e,...t){return t.forEach(((t,n)=>{e=e.replace("{"+n+"}",String(t))})),e},Un=t.defineComponent({name:"KendoFontName",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...p.DropDownList.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:n,dataItems:o,settings:s,defaultItem:a,...l}=this.$props,{style:d}=s,c=e?i.getInlineStyles(e.state,{name:d,value:/^.+$/}):[],u=1===new Set(c).size?c[0]:null,h=o||s.items;let m=a||s.defaultItem;const g=r.provideLocalizationService(this);m&&m.localizationKey&&(m={...m},m.text=m.localizationKey?g.toLanguageString(m.localizationKey,Qe[m.localizationKey]):m.text);const f={...l,...s.props,value:u&&h.find((e=>e.value===u)),dataItems:h,defaultItem:m,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,title:m.text,onChange:this.onFontNameChange,style:Wn};return t.h(p.DropDownList,f)},methods:{customItemRender:(e,t,n)=>n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick},[e("span",{style:n.dataItem.style},[...t.children])]):t,onFontNameChange(e){const{view:t,settings:n}=this.$props,{style:o}=n,s=e.target.value;if(t){i.applyInlineStyle({style:o,value:s.value},n.commandName)(t.state,t.dispatch);const{event:a}=e;a&&"click"===a.type&&t.focus()}}}}),_n=t.defineComponent({name:"KendoFormatBlock",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...p.DropDownList.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:n,dataItems:o,settings:s,defaultItem:a,...l}=this.$props,d=o||s.items,c=e&&e.state,u=c?i.getBlockFormats(c):[],h=1===new Set(u).size?u[0]:null;let m=a||s.defaultItem;const g=r.provideLocalizationService(this);m&&m.localizationKey&&(m={...m},m.text=m.localizationKey?g.toLanguageString(m.localizationKey,Qe[m.localizationKey]):m.text);const f={...l,...s.props,value:h&&d.find((e=>e.value===h)),dataItems:d,defaultItem:m,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"},title:m.text,onChange:this.onFormatBlockChange,style:Wn};return t.h(p.DropDownList,f)},methods:{customItemRender:(e,t,n)=>n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick},[e("span",{style:n.dataItem.style},[...t.children])]):t,onFormatBlockChange(e){const{view:t,settings:n}=this.$props,o=e.target.value;if(t&&i.formatBlockElements(o.value,n.commandName)(t.state,t.dispatch)){const{event:n}=e;n&&"click"===n.type&&t.focus()}}}}),qn=t.defineComponent({name:"KendoProseMirror",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},computed:{command(){return this.settings.command||o.noop}},render(){const{view:e,settings:o,...i}=this.$props,s=r.provideLocalizationService(this),a=o.messages.title,l=e&&e.state,d={...i,disabled:!!l&&!this.command(l),title:s.toLanguageString(a,Qe[a]),...o.props};return t.h(n.Button,{onClick:this.handleClick,...d})},methods:{handleClick(){this.view&&this.command(this.view.state,(e=>this.view.dispatch(e.setMeta("commandName",this.settings.commandName))))}}}),Gn=t.defineComponent({name:"KendoLinkTool",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=!a||a.selection.empty,d=a&&i.getMark(a,a.schema.marks[o.mark]),c=r.provideLocalizationService(this),{insertHyperlink:p}=o.messages,u={...s,key:"link",disabled:l&&!d,title:c.toLanguageString(p,Qe[p]),...o.props},h=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...u}),this.openedDialog&&e&&t.createVNode(Rn,{key:"insertLinkDialog",settings:o,dir:this.dir,view:e,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[h])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),Jn=t.defineComponent({name:"KendoUnlink",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o,...s}=this.$props,a={mark:o.mark},l=!!e&&i.hasMark(e.state,a),d=r.provideLocalizationService(this),c=o.messages.title,p={...s,disabled:!l,title:d.toLanguageString(c,Qe[c]),...o.props};return t.h(n.Button,{onClick:this.handleClick,...p})},methods:{handleClick(){const{view:e,settings:t}=this.$props,n={mark:t.mark};e&&i.removeLink(n,e.state.tr.setMeta("commandName",t.commandName))(e.state,e.dispatch)}}}),{cleanFormatting:Qn}=e.EditorToolsSettings,Xn=i.cleanFormatting(),Yn=t.defineComponent({name:"KendoCleanFormatting",props:{view:Object,settings:{type:Object,default:function(){return Qn}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i,...s}=this.$props,a=i.messages.title,l=r.provideLocalizationService(this),d={...s,disabled:!e||!Xn(e.state),title:l.toLanguageString(a,Qe[a]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...d})},methods:{handleClick(){this.view&&Xn(this.view.state,(e=>{e.setMeta("commandName",this.settings.commandName),this.view.dispatch(e)}))},preventDefault(e){e.preventDefault()}}}),{selectAll:Zn}=e.EditorToolsSettings,eo=t.defineComponent({name:"KendoSelectAll",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,settings:o=Zn,...i}=this.$props,s=o.messages.title,a={...i,title:r.provideLocalizationService(this).toLanguageString(s,Qe[s]),...o.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...a})},methods:{handleClick(){this.view&&(i.selectAll(this.view.state,this.view.dispatch),this.view.focus())},preventDefault(e){e.preventDefault()}}});function to(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const no=t.defineComponent({name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},data(){const{view:e,settings:t}=this.$props,n=e&&e.state;let o={};return n&&n.selection instanceof i.NodeSelection&&n.selection.node.type===n.schema.nodes[t.node]&&(o=n.selection.node.attrs),{srcValue:o.src,altValue:o.alt,titleValue:o.title,widthValue:o.width,heightValue:o.height}},mounted(){this.src=o.getRef(this,"src"),this.altText=o.getRef(this,"altText"),this.title=o.getRef(this,"title"),this.width=o.getRef(this,"width"),this.height=o.getRef(this,"height"),this.src&&this.src.focus()},render(){let e,s;const{view:a,settings:p,dir:u}=this.$props,{insertImageDialogTitle:h,insertImageAddress:m,insertImageTitle:g,insertImageAltText:f,insertImageWidth:v,insertImageHeight:k,insertImageCancel:w,insertImageInsert:b}=p.messages,C=r.provideLocalizationService(this),y=a&&a.state;y&&y.selection instanceof i.NodeSelection&&y.selection.node.type===y.schema.nodes[p.node]&&y.selection.node.attrs;const S=t.createVNode(d.Form,null,{default:()=>[t.createVNode(d.FormElement,{horizontal:!0},{default:()=>[t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-url",class:"k-form-label"},[C.toLanguageString(m,Qe[m])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-url",value:this.srcValue,onInput:this.handleSrcInput,ref:o.setRef(this,"src")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-url",class:"k-form-label"},[C.toLanguageString(f,Qe[f])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-alt",value:this.altValue,onInput:this.handleAltInput,ref:o.setRef(this,"altText")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-title",class:"k-form-label"},[C.toLanguageString(g,Qe[g])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-title",value:this.titleValue,onInput:this.handleTitleInput,ref:o.setRef(this,"title")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-width",class:"k-form-label"},[C.toLanguageString(v,Qe[v])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-width",value:this.widthValue,onInput:this.handleWidthInput,ref:o.setRef(this,"width")},null)])]}),t.createVNode(d.FieldWrapper,null,{default:()=>[t.createVNode("label",{for:"k-editor-image-height",class:"k-form-label"},[C.toLanguageString(k,Qe[k])]),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(c.Input,{id:"k-editor-image-height",value:this.heightValue,onInput:this.handleHeightInput,ref:o.setRef(this,"height")},null)])]})]})]}),I=[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:u,key:"cancel"},to(e=C.toLanguageString(w,Qe[w]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",disabled:!this.srcValue,onClick:this.onInsert,themeColor:"primary",dir:u,key:"insert"},to(s=C.toLanguageString(b,Qe[b]))?s:{default:()=>[s]})];return t.createVNode(l.Window,{initialWidth:500,initialHeight:360,windowClass:"k-editor-window",title:C.toLanguageString(h,Qe[h]),onClose:this.onClose,key:"dialog",dir:u,style:"rtl"===u?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[S,t.createVNode(l.DialogActionsBar,null,to(I)?I:{default:()=>[I]})]})},methods:{handleSrcInput(e){this.srcValue=e.value},handleAltInput(e){this.altValue=e.value},handleTitleInput(e){this.titleValue=e.value},handleWidthInput(e){this.widthValue=e.value},handleHeightInput(e){this.heightValue=e.value},onClose(){this.$props.view.focus(),this.$emit("close")},onInsert(){const{view:e,settings:t}=this.$props,n=e.state.schema.nodes[t.node],o={src:this.src?this.srcValue:null,title:this.title?this.titleValue:null,alt:this.altText?this.altValue:null,width:this.width?this.widthValue:null,height:this.height?this.heightValue:null},s=Object.keys(o).filter((e=>null!==o[e]&&""!==o[e])).reduce(((e,t)=>Object.assign(e,{[t]:o[t]})),{}),a=n.createAndFill(s);i.insertNode(a,!0)(e.state,(n=>e.dispatch(n.setMeta("commandName",t.commandName).setMeta("args",s)))),this.onClose()}}}),oo=t.defineComponent({name:"KendoInsertImage",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String,...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=a?a.schema.nodes[o.node]:void 0,d=r.provideLocalizationService(this),{insertImage:c}=o.messages,p={...s,key:"insertImage",disabled:!l||!a||!i.canInsert(a,l),title:d.toLanguageString(c,Qe[c]),...o.props},u=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...p}),this.openedDialog&&e&&t.createVNode(no,{key:"insertImageDialog",view:e,settings:o,dir:p.dir,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[u])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),io=t.defineComponent({name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String,onCellclick:Function,onDown:Function},data:()=>({row:-1,col:-1}),render(){const e=[],n=this.$props.columns*this.$props.rows,{row:o,col:i}=this.$data;let s=this.$props.createTableMessage;i>-1&&(s=Kn(this.$props.createTableHintMessage,o+1,i+1));const a=function(e,n,o){const i=Math.floor(e/this.$props.columns),s=e%this.$props.columns,a=s<=o&&i<=n;return t.createVNode("span",{class:"k-ct-cell k-disabled"+(a?" k-selected":""),onMouseenter:()=>this.cellMouseEnter({row:i,col:s}),onClick:()=>this.onCellClick(i,s),key:e},null)};for(let t=0;t<n;t++)e.push(a.call(this,t,o,i));const l=[t.createVNode("div",{onMouseleave:()=>this.handleMouseLeave(),key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onMouseDown,onMousedown:this.onDown},[e]),t.createVNode("div",{class:"k-status",key:"status",onPointerdown:this.onMouseDown,onMousedown:this.onDown},[s])];return t.createVNode("span",null,[l])},methods:{cellMouseEnter({row:e,col:t}){this.row=e,this.col=t},handleMouseLeave(){this.row=-1,this.col=-1},onCellClick(e,t){this.$emit("cellclick",e,t)},onMouseDown(e){this.$emit("down",e)}}}),so=t.defineComponent({name:"KendoInsertTablePopup",emits:{close:null},props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String,onTableinsert:Function},data:()=>({pointerdown:!1}),updated(){},mounted(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},unmounted(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},render(){const{show:e,anchor:n,dir:o,rows:i,columns:s}=this.$props,a="rtl"===o?"right":"left";return t.createVNode(u.Popup,{anchor:n,anchorAlign:{horizontal:a,vertical:"bottom"},popupAlign:{horizontal:a,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:e,style:"rtl"===o?{direction:"rtl"}:void 0},{default:()=>[t.createVNode(io,{rows:i,columns:s,createTableMessage:this.$props.createTableMessage,createTableHintMessage:this.$props.createTableHintMessage,onCellclick:this.onTableInsert,onDown:this.onPointerDown},null)]})},methods:{onTableInsert(e,t){this.$emit("tableinsert",e,t)},onWindowDown(e){const{anchor:t}=this.$props;t&&(t===e.target||t.firstElementChild===e.target)||(this.$props.show&&!this.pointerdown&&this.$emit("close"),this.pointerdown=!1)},onPointerDown(){this.pointerdown=!0}}}),ao=t.defineComponent({name:"KendoInsertTable",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String,...n.Button.props},inject:{kendoLocalizationService:{default:null}},created(){this.buttonRef=o.guid()},data:()=>({openedPopup:!1}),render(){const{view:e,settings:o,...s}=this.$props,a=e&&e.state,l=r.provideLocalizationService(this),{createTable:d,createTableHint:c}=o.messages,p=l.toLanguageString(d,Qe[d]),u=l.toLanguageString(c,Qe[c]),h={...s,disabled:!a||!i.canInsert(a,a.schema.nodes.table),key:"InsertTable",title:p,...o.props},m=[t.h(n.Button,{ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...h}),e&&t.createVNode(so,{key:"insertTablePopup",createTableMessage:p,createTableHintMessage:u,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,onTableinsert:this.onTableInsert},null)||null];return t.createVNode("span",null,[m])},methods:{togglePopup(){this.openedPopup=!this.openedPopup},closePopup(){this.openedPopup&&this.togglePopup()},onTableInsert(e,t){const{view:n}=this.$props;if(!n)return;const o=i.createTable(n.state.schema.nodes,e,t);o&&i.insertNode(o,!0)(n.state,n.dispatch),n.focus(),this.closePopup()},preventDefault(e){e.preventDefault()}}});function lo(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const ro=t.defineComponent({name:"KendoViewHtmlDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},created(){this.textAreaId=o.guid()},inject:{kendoLocalizationService:{default:null}},data(){const{view:e}=this.$props;return{textAreaValue:i.indentHtml(i.getHtml(e.state))}},mounted(){this.htmlArea=o.getRef(this,"htmlArea"),this.htmlArea&&this.htmlArea.focus()},render(){let e,i;const{settings:s,dir:a}=this.$props,d=r.provideLocalizationService(this),{viewHtmlDialogTitle:c,viewHtmlCancel:p,viewHtmlUpdate:u}=s.messages,h=t.createVNode("span",{class:"k-input k-textarea k-input-md k-input-solid k-rounded-md k-editor-textarea"},[t.createVNode("textarea",{ref:o.setRef(this,"htmlArea"),onInput:this.textAreaChange,value:this.textAreaValue,id:this.textAreaId,role:"textbox",class:"k-input-inner !k-overflow-auto",tabindex:"0","aria-multiline":"true",style:"resize: none;"},null)]),m=[t.createVNode(n.Button,{type:"button",onClick:this.onClose,dir:a,key:"cancel"},lo(e=d.toLanguageString(p,Qe[p]))?e:{default:()=>[e]}),t.createVNode(n.Button,{type:"button",onClick:this.onUpdate,themeColor:"primary",dir:a,key:"update"},lo(i=d.toLanguageString(u,Qe[u]))?i:{default:()=>[i]})];return t.createVNode(l.Window,{initialHeight:400,initialWidth:500,windowClass:"k-editor-window",title:d.toLanguageString(c,Qe[c]),onClose:this.onClose,key:"dialog",dir:a,style:"rtl"===a?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},{default:()=>[h,t.createVNode(l.DialogActionsBar,null,lo(m)?m:{default:()=>[m]})]})},methods:{textAreaChange(e){this.textAreaValue=e.target.value},onUpdate(){const{view:e,settings:t}=this.$props,n=i.trimWhitespace(this.htmlArea?this.textAreaValue:""),{preserveWhitespace:o}=En.getState(e.state);i.setHtml(n,t.commandName,{preserveWhitespace:o})(e.state,e.dispatch),this.onClose()},onClose(){this.$props.view.focus(),this.$emit("close")}}}),co=t.defineComponent({name:"KendoViewHtml",props:{view:Object,settings:{type:Object,default:function(){return{messages:{}}}},...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({openedDialog:!1}),render(){const{view:e,settings:o,...i}=this.$props,s=r.provideLocalizationService(this),a=o.messages.viewHtml,l={...i,key:"viewHtml",title:s.toLanguageString(a,Qe[a]),...o.props},d=[t.h(n.Button,{onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...l}),this.openedDialog&&e&&t.createVNode(ro,{key:"viewHtmlDialog",view:e,settings:o,dir:l.dir,onClose:this.toggleDialog},null)||null];return t.createVNode("span",null,[d])},methods:{toggleDialog(){this.openedDialog=!this.openedDialog},preventDefault(e){e.preventDefault()}}}),{pdf:po,savePdfOptions:uo}=e.EditorToolsSettings,ho=t.defineComponent({name:"KendoPdf",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i=po,savePdfOptions:s,savePdfCallback:a,...l}=this.$props,d=i.messages.title,c={...l,title:r.provideLocalizationService(this).toLanguageString(d,Qe[d]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...c})},methods:{handleClick(){this.view&&s.savePDF(this.view.dom,{...uo,...this.savePdfOptions||{}},this.savePdfCallback)},preventDefault(e){e.preventDefault()}}}),{print:mo}=e.EditorToolsSettings,go=t.defineComponent({name:"KendoPrint",props:{view:Object,settings:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},render(){const{view:e,render:o,settings:i=mo,...s}=this.$props,a=e&&e.dom,l=a&&a.ownerDocument,d=l&&l.defaultView,c=i.messages.title,p=r.provideLocalizationService(this),u={...s,disabled:!d||d===window,title:p.toLanguageString(c,Qe[c]),...i.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...u})},methods:{handleClick(){const e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault(e){e.preventDefault()}}});function fo(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const vo=e.EditorToolsSettings.findAndReplace,ko=t.defineComponent({name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return vo}},dir:String},inject:{kendoLocalizationService:{default:null}},created(){this._prevMatch=void 0,this.nextMatch=void 0},data(){return{selectedTab:0,searchText:i.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){const e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated(){const e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){const o=n.state,s=o.tr,a=[];e.forEach((e=>{a.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),s.setMeta(i.textHighlightKey,a),s.setSelection(t||i.TextSelection.create(o.doc,o.selection.from)),n.dispatch(s)}},unmounted(){this.$el&&this.$el.remove()},render(){let e,i;const s=r.provideLocalizationService(this),{findReplaceDialogTitle:d,findReplaceTabFind:c,findReplaceTabReplace:p,findReplaceFindWhat:u,findReplaceReplaceWith:g,findReplaceReplace:f,findReplaceReplaceAll:v,findReplaceMatchCase:k,findReplaceMatchWord:w,findReplaceMatchCyclic:b,findReplaceUseRegExp:C,findReplacePrevMatch:y,findReplaceNextMatch:S,findReplaceMatches:I}=this.settings.messages,{matchCase:N,matchWord:T,matchCyclic:R,useRegExp:x,searchText:V,replaceText:L,nextMatch:M,error:D}=this,E=t.createVNode("div",{class:"k-search-options"},[t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-case",checked:N,onChange:this.onMatchCaseChecked},null),t.createVNode("label",{for:"match-case",class:"k-checkbox-label"},[s.toLanguageString(k,Qe[k])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-whole",checked:T,onChange:this.onMatchWordChecked},null),t.createVNode("label",{for:"match-whole",class:"k-checkbox-label"},[s.toLanguageString(w,Qe[w])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"match-cyclic",checked:R,onChange:this.onMatchCyclicChecked},null),t.createVNode("label",{for:"match-cyclic",class:"k-checkbox-label"},[s.toLanguageString(b,Qe[b])])]),t.createVNode("span",null,[t.createVNode("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",id:"regular-expression",checked:x,onChange:this.onUseRegExpChecked},null),t.createVNode("label",{for:"regular-expression",class:"k-checkbox-label"},[s.toLanguageString(C,Qe[C])])])]),A=function(e){const i="rtl"===this.$props.dir,l=t.createVNode(n.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},{default:()=>[t.createVNode(o.Icon,{name:"chevron-"+(i?"right":"left"),icon:i?a.chevronRightIcon:a.chevronLeftIcon},null),s.toLanguageString(y,Qe[y])]}),r=t.createVNode(n.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},{default:()=>[s.toLanguageString(S,Qe[S]),t.createVNode(o.Icon,{name:"chevron-"+(i?"left":"right"),icon:i?a.chevronLeftIcon:a.chevronRightIcon},null)]});return t.createVNode("div",{class:"k-matches-container"},[l,this.hasMounted&&t.createVNode("span",{ref:e},[this.matchesMessage(s.toLanguageString(I,Qe[I]))]),r])},z=function(e){return t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{ref:e,for:e},[s.toLanguageString(u,Qe[u])])])},B=function(e){let n;return t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:e,ref:e,type:"text",class:"k-input-inner",value:V,onInput:this.onSearchChange,onFocus:this.onSearchChange,onKeydown:this.onKeyDown},null)]),D&&t.createVNode(m.Error,null,fo(n=s.toLanguageString(D,Qe[D]))?n:{default:()=>[n]})])},P=t.createVNode("div",{class:"k-edit-label"},[t.createVNode("label",{for:"replaceWith"},[s.toLanguageString(g,Qe[g])])]),F=t.createVNode("div",{class:"k-edit-field"},[t.createVNode("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[t.createVNode("input",{id:"replaceWith",class:"k-input-inner",type:"text",value:L,onInput:this.onReplaceChange},null)])]);return t.createVNode(l.Window,{title:s.toLanguageString(d,Qe[d]),onClose:this.onClose,windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:()=>null,maximizeButton:()=>null,dir:this.$props.dir},{default:()=>[t.createVNode(h.TabStrip,{dir:this.$props.dir,selected:this.selectedTab,class:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},{default:()=>[t.createVNode(h.TabStripTab,{title:s.toLanguageString(c,Qe[c])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[z.call(this,"findWhatFind"),B.call(this,"findWhatFind")]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},null),E,A.call(this,"findWhatFind")]}),t.createVNode(h.TabStripTab,{title:s.toLanguageString(p,Qe[p])},{default:()=>[t.createVNode("div",{class:"k-edit-form-container"},[z.call(this,"findWhatReplace"),B.call(this,"findWhatReplace"),P,F]),t.createVNode("div",{class:"k-actions k-hstack k-justify-content-end"},[t.createVNode(n.Button,{disabled:!M,onClick:this.onReplace},fo(e=s.toLanguageString(f,Qe[f]))?e:{default:()=>[e]}),t.createVNode(n.Button,{disabled:!M,onClick:this.onReplaceAll},fo(i=s.toLanguageString(v,Qe[v]))?i:{default:()=>[i]})]),E,A.call(this,"findWhatReplace")]})]})]})},methods:{onTabSelect(e){this.selectedTab=e.selected},onClose(){const e=this.$props.view,t=e.state,n=t.tr.setSelection(i.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage(e){const t=this.matches,n=this.nextMatch;let o=0,i=0;if(t&&n){const e=t.findIndex((e=>e.eq(n)));o=-1===e?t.length:e+1,i=t.length}return Kn(e,o,i)},onFindNext(){this.onFind()},onFindPrev(){this.onFind(!0)},onFind(e=!1){const t=this.$props.view,{searchText:n,matchCase:o,matchCyclic:s,matchWord:a,useRegExp:l}=this.$data,r={text:n,matchWord:a,matchCase:o,useRegExp:l,backward:e,matchCyclic:s},d=i.find(t.state,r);if(d){const e=t.state.tr.setSelection(d);e.scrollIntoView(),t.updateState(t.state.apply(e)),this._prevMatch=this.nextMatch,this.nextMatch=d,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace(){const e=this.$props.view,t=e.state.selection,{replaceText:n}=this.$data;if(!t.empty){const o=t.from,s=o+n.length,a=i.replace(t,n,e.state.tr);a.setSelection(i.TextSelection.create(a.doc,o,s)),a.scrollIntoView(),e.dispatch(a),this.onFind(),this.setNextState({})}},onReplaceAll(){const e=this.$props.view,{searchText:t,replaceText:n,matchCase:o,matchWord:s,useRegExp:a}=this.$data,l={text:t,matchWord:s,matchCase:o,useRegExp:a},r=i.replaceAll(e.state,n,l);r&&(e.dispatch(r),this.setNextState({}))},onKeyDown(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange(e){this.replaceText=e.target.value,this.setNextState()},setNextState(){const e=this.$props.view;if(this.searchText){const t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection;let o,s=[];try{s=i.findAll(e.state.doc,t)}catch(e){e instanceof SyntaxError&&(o=this.settings.messages.findReplaceInvalidRegExp)}const a=!this.searchText&&s[0]||s.find((e=>e.from>=n.from))||this.matchCyclic&&s[0]||void 0;this._prevMatch=this.nextMatch,this.matches=s,this.nextMatch=a,this.error=o}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0,this.error=void 0}}}),wo=e.EditorToolsSettings.findAndReplace,bo=t.defineComponent({name:"KendoFindAndReplace",props:{view:Object,...n.Button.props},inject:{kendoLocalizationService:{default:null}},data:()=>({showDialog:!1}),render(){const{view:e,...o}=this.$props,i=r.provideLocalizationService(this),s=wo.messages.findReplaceToolTitle,a={...o,key:"tool",disabled:!e,title:i.toLanguageString(s,Qe[s]),...wo.props},l=t.h(n.Button,{onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...a});return t.createVNode("span",null,[l,this.showDialog&&e&&t.createVNode(ko,{view:e,onClose:this.onClose,dir:this.$props.dir,key:"dialog"},null)])},methods:{onClose(){this.showDialog=!1},onOpen(){this.showDialog=!0},preventDefault(e){e.preventDefault()}}}),Co=t.defineComponent({name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String,ariaLabel:String},inject:{kendoLocalizationService:{default:null}},render(){const{colorPickerProps:e,dir:n,ariaLabel:o}=this.$props,i=e.title,s=r.provideLocalizationService(this),a={...e,dir:n,showButtons:!1,showClearButton:!1,showPreview:!1,title:i&&s.toLanguageString(i,Qe[i]),ariaLabel:o};return t.h(c.ColorPicker,{onChange:this.onChange,onActivecolorclick:this.onChange,...a})},methods:{onChange(e){const{view:t,color:n,colorPickerProps:o,commandName:s}=this.$props;if(t){i.applyInlineStyle({style:n,value:e.value},s)(t.state,t.dispatch);const{view:a="palette"}=o;"palette"===a&&t.focus()}}}}),{link:yo,bold:So,italic:Io,underline:No}=e.EditorToolsSettings;function To(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}const Ro={Bold:{comp:jn,props:e.EditorToolsSettings.bold},Italic:{comp:jn,props:e.EditorToolsSettings.italic},Underline:{comp:jn,props:e.EditorToolsSettings.underline},Strikethrough:{comp:jn,props:e.EditorToolsSettings.strikethrough},Subscript:{comp:jn,props:e.EditorToolsSettings.subscript},Superscript:{comp:jn,props:e.EditorToolsSettings.superscript},AlignLeft:{comp:Fn,props:e.EditorToolsSettings.alignLeft},AlignCenter:{comp:Fn,props:e.EditorToolsSettings.alignCenter},AlignRight:{comp:Fn,props:e.EditorToolsSettings.alignRight},AlignJustify:{comp:Fn,props:e.EditorToolsSettings.alignJustify},Indent:{comp:Hn,props:e.EditorToolsSettings.indent},Outdent:{comp:On,props:e.EditorToolsSettings.outdent},OrderedList:{comp:$n,props:e.EditorToolsSettings.orderedList},UnorderedList:{comp:$n,props:e.EditorToolsSettings.bulletList},FontSize:{comp:Un,props:e.EditorToolsSettings.fontSize},FontName:{comp:Un,props:e.EditorToolsSettings.fontName},FormatBlock:{comp:_n,props:e.EditorToolsSettings.formatBlock},Undo:{comp:qn,props:e.EditorToolsSettings.undo},Redo:{comp:qn,props:e.EditorToolsSettings.redo},Link:{comp:Gn,props:e.EditorToolsSettings.link},Unlink:{comp:Jn,props:e.EditorToolsSettings.unlink},InsertImage:{comp:oo,props:e.EditorToolsSettings.image},ViewHtml:{comp:co,props:e.EditorToolsSettings.viewHtml},CleanFormatting:{comp:Yn,props:e.EditorToolsSettings.cleanFormatting},SelectAll:{comp:eo,props:e.EditorToolsSettings.selectAll},InsertTable:{comp:ao,props:e.EditorToolsSettings.insertTable},MergeCells:{comp:qn,props:e.EditorToolsSettings.mergeCells},SplitCell:{comp:qn,props:e.EditorToolsSettings.splitCell},AddRowBefore:{comp:qn,props:e.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:qn,props:e.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:qn,props:e.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:qn,props:e.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:qn,props:e.EditorToolsSettings.deleteRow},DeleteColumn:{comp:qn,props:e.EditorToolsSettings.deleteColumn},DeleteTable:{comp:qn,props:e.EditorToolsSettings.deleteTable},Print:{comp:go,props:e.EditorToolsSettings.print},Pdf:{comp:ho,props:e.EditorToolsSettings.pdf},InsertFile:{comp:Gn,props:e.EditorToolsSettings.insertFile},FindAndReplace:{comp:bo,props:e.EditorToolsSettings.findAndReplace},ForeColor:{comp:Co,props:e.EditorToolsSettings.foreColor},BackColor:{comp:Co,props:e.EditorToolsSettings.backColor}},xo=t.defineComponent({name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},inject:{kendoLocalizationService:{default:null}},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function,ariaDescribedBy:String,ariaLabelledBy:String,ariaLabel:String},data:()=>({updateGuid:o.guid(),view:void 0,linkDialog:!1,showLicenseWatermark:!1,licenseMessage:void 0}),created(){this._view=void 0,this.trOnChange=null,this.valueisUpdated=!1,this._prevValue=this.$props.value,this.pluginViews=[],o.validatePackage(Bn),this.showLicenseWatermark=o.shouldShowValidationUI(Bn),this.licenseMessage=o.getLicenseMessage(Bn)},mounted(){this.iframe=o.getRef(this,"iframe"),this.contentElement=o.getRef(this,"contentElement"),this.initialize()},watch:{value:function(e,t){this.valueisUpdated=!0,this._prevValue=t}},updated(){const{value:e}=this.$props,t=this.getView();void 0===e||!this.valueisUpdated||!t||(((e,t,n,o,i)=>{"string"==typeof t?o&&t===i?An(e,{tr:o}):t!==n&&An(e,{html:t}):o&&t.eq(o.doc)?An(e,{tr:o}):e.state.doc.eq(t)||An(e,{doc:t})})(t,this.computedValue(),this._prevValue,this.trOnChange,this.htmlOnChange),this.valueisUpdated=!1,this.trOnChange=null,this.htmlOnChange=null)},beforeUnmount(){var e,t;this.iframe&&(this.iframe.src="about:blank");const n=this.iframe,o=this.contentElement,i=this.getView();if(i){null==(e=this.pluginViews)||e.forEach((e=>{var t;null==(t=null==e?void 0:e.destroy)||t.call(e)}));const n=(e=>{let t=null;return t=e.dom,e.destroy(),e.state=null,e.dispatch=null,e.updateState=null,e.props=null,e.dom=null,e.docView=null,e.input=null,e.pluginViews&&(e.pluginViews=[]),t})(i);null==(t=null==n?void 0:n.parentNode)||t.removeChild(n)}this.view&&(e=>{Object.keys(e).forEach((t=>{e[t]=null}))})(this.view),this.view=void 0,this._view=null,this.trOnChange=null,this.htmlOnChange=null,this.pasteEvent=void 0,this.valueisUpdated=!1,this._prevValue=void 0,this.pluginViews&&(this.pluginViews.length=0,this.pluginViews=null),this.iframe=void 0,this.contentElement=void 0,n&&((e,t)=>{var n,o,i,s;const a=e.contentDocument||(null==(n=e.contentWindow)?void 0:n.document);a&&(t&&(zn(t),t.parentNode&&t.parentNode.removeChild(t)),a.body&&(zn(a.body),a.body.innerHTML=""),a.head&&(zn(a.head),a.head.innerHTML="")),null==(o=e.contentWindow)||o.document.open(),null==(i=e.contentWindow)||i.document.write(""),null==(s=e.contentWindow)||s.document.close(),e.parentNode&&e.parentNode.removeChild(e),e.contentDocument=null,e.contentWindow=null,e.src="about:blank"})(n,o),this.updateGuid=void 0,this.linkDialog=!1},unmounted(){this.view=void 0,this._view=null,this.iframe=void 0,this.contentElement=void 0,this.pluginViews=null},render(){let e=100;const{tools:i=[],defaultEditMode:s="iframe",preserveWhitespace:a="full",style:l,value:d}=this.$props,c=this.getView(),p=r.provideLocalizationService(this),u=this.showLicenseWatermark?t.createVNode(o.WatermarkOverlay,{message:this.licenseMessage},null):null;if(this.view){En.getState(this.view.state).preserveWhitespace=a}let h=this.$props.contentStyle;void 0===h&&void 0===(l||{}).height&&(h={height:"300px"});const m=function(i,s){const a=Ro[i]||i,l=function(){let e;return"ForeColor"===i?e=p.toLanguageString(St,Qe[St]):"BackColor"===i&&(e=p.toLanguageString(yt,Qe[yt])),e};if(Ro[i]){e++;const n={view:c,dir:this.$props.dir,key:e,updateGuid:this.updateGuid,settings:Ro[i].props,...Ro[i].props,ariaLabel:l()};return t.h(t.markRaw(Ro[i].comp),n)}if("Separator"===a)return t.createVNode(n.ToolbarSeparator,{key:e},null);{const n=o.templateRendering.call(this,a.render,o.getListeners.call(this));return o.getTemplate.call(this,{h:t.h,template:n,defaultRendering:null,additionalListeners:{},additionalProps:{view:c,dir:this.$props.dir,updateGuid:this.updateGuid,key:e,settings:a.props}})}},g=function(e,t){return e.map((function(e){return m.call(this,e,t)}),this)},f=i.map((function(e,o){let i;return Array.isArray(e)?t.createVNode(n.ButtonGroup,{key:o},To(i=g.call(this,e,o))?i:{default:()=>[i]}):m.call(this,e,o)}),this);return t.createVNode("div",{class:o.classNames("k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir},[f.length>0&&t.createVNode(n.Toolbar,{overflow:"none",class:"k-editor-toolbar",keyboardNavigation:this.$props.keyboardNavigation},To(f)?f:{default:()=>[f]}),"iframe"===s?t.createVNode("div",{class:"k-editor-content"},[t.createVNode("iframe",{ref:o.setRef(this,"iframe"),title:p.toLanguageString(In,Qe[In]),style:h,class:"k-iframe"},null)]):t.createVNode("div",{style:h,class:"k-editor-content"},[t.createVNode("div",{ref:o.setRef(this,"contentElement"),role:"textbox","aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-label":this.$props.ariaLabel},null)]),function(){return this.linkDialog&&t.createVNode(Rn,{view:c,settings:yo,dir:this.$props.dir,onClose:this.handleClose},null)}.call(this),u])},methods:{getView(){return this.view},getHTML(){const t=this.getView();return t?e.EditorUtils.getHtml(t.state):""},setHTML(t){const n=this.getView();n&&e.EditorUtils.setHtml(n,t)},focus(){this.getView()&&this.getView().focus()},updateTools(e){this.view=e,this.updateGuid=o.guid()},initialize(){const n=this.iframe&&this.iframe.contentWindow;if(n){const e=n.document;[b,C,"rtl"===this.$props.dir?"body { direction: rtl }":void 0].forEach((t=>{if(t){const n=e.createElement("style");n.appendChild(e.createTextNode(t)),e.head.appendChild(n)}}));const t=e.createElement("meta");t.setAttribute("charset","utf-8"),e.head.appendChild(t),this.contentElement=e.createElement("div"),e.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content"),this.contentElement.setAttribute("role","main")}const s=this.contentElement;if(!s)return;const{preserveWhitespace:a="full"}=this.$props,l=this,r=function(e){l.view=e,l.updateGuid=o.guid()};let d=[new i.Plugin({view:e=>{const t={update:r,destroy:()=>{const e=l.pluginViews.indexOf(t);e>-1&&l.pluginViews.splice(e,1)}};return l.pluginViews.push(t),t},key:new i.PluginKey("toolbar-tools-update-plugin")}),new i.Plugin({filterTransaction:this.filterTransaction,key:new i.PluginKey("onExecute-event-plugin")}),new i.Plugin({key:En,state:{init:()=>({preserveWhitespace:a}),apply:(e,t)=>t}}),i.spacesFix(),i.history(),i.dropCursor(),i.gapCursor(),i.tableEditing()],c={...e.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:So,italic:Io,underline:No}}),"Mod-k":()=>{const{linkDialog:e}=this.$data,t=this.getView();if(t){const n=t.state,o=n.selection.empty,s=i.getMark(n,n.schema.marks[yo.mark]);!e&&(!o||s)&&(this.linkDialog=!0)}return!e}};const{defaultContent:p="",value:u}=this.$props,h=u&&"string"!=typeof u?t.toRaw(u):e.EditorUtils.createDocument(new i.Schema({nodes:w,marks:i.marks}),u||p,{preserveWhitespace:a}),m={state:i.EditorState.create({plugins:[...d,i.keymap(c),i.keymap(i.baseKeymap)],doc:h}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},g={plugins:d,shortcuts:c,target:l,viewProps:m,dom:s};this.$emit("loaded",g);const f=this.$props.extendView&&this.$props.extendView(g)||new i.EditorView({mount:s},m);this.view=t.markRaw(f)},filterTransaction(e,t){const n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml(e){if(this.$props.pasteHtml&&this.pasteEvent){const t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction(t){const n=t.docChanged;if(n){this.trOnChange=t;const n=t.doc,o=t.doc.type.schema,i=this,s={target:i,value:n,get html(){return i.htmlOnChange=e.EditorUtils.getHtml({doc:n,schema:o}),i.htmlOnChange},transaction:t,schema:o};this.$emit("change",s)}this.getView()&&(void 0===this.$props.value||!n)&&this.getView().updateState(this.getView().state.apply(t))},onFocus(e,t){const n={target:this,event:t};return this.$emit("focus",n),!1},onBlur(e,t){const n={target:this,event:t};return this.$emit("blur",n),!1},onPaste(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose(){this.linkDialog=!1},computedValue(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}}}),Vo=i.columnResizingPluginKey,Lo={Selection:i.Selection,SelectionRange:i.SelectionRange,TextSelection:i.TextSelection,NodeSelection:i.NodeSelection,AllSelection:i.AllSelection,EditorState:i.EditorState,Plugin:i.Plugin,PluginKey:i.PluginKey,Transaction:i.Transaction,Decoration:i.Decoration,DecorationSet:i.DecorationSet,EditorView:i.EditorView,Node:i.Node,ResolvedPos:i.ResolvedPos,NodeRange:i.NodeRange,Fragment:i.Fragment,Slice:i.Slice,ReplaceError:i.ReplaceError,Mark:i.Mark,Schema:i.Schema,NodeType:i.NodeType,MarkType:i.MarkType,ContentMatch:i.ContentMatch,DOMParser:i.DOMParser,DOMSerializer:i.DOMSerializer,Transform:i.Transform,Step:i.Step,StepResult:i.StepResult,joinPoint:i.joinPoint,canJoin:i.canJoin,canSplit:i.canSplit,insertPoint:i.insertPoint,dropPoint:i.dropPoint,liftTarget:i.liftTarget,findWrapping:i.findWrapping,StepMap:i.StepMap,MapResult:i.MapResult,Mapping:i.Mapping,AddMarkStep:i.AddMarkStep,RemoveMarkStep:i.RemoveMarkStep,ReplaceStep:i.ReplaceStep,ReplaceAroundStep:i.ReplaceAroundStep,replaceStep:i.replaceStep,deleteSelection:i.deleteSelection,joinBackward:i.joinBackward,selectNodeBackward:i.selectNodeBackward,joinForward:i.joinForward,selectNodeForward:i.selectNodeForward,joinUp:i.joinUp,joinDown:i.joinDown,lift:i.lift,newlineInCode:i.newlineInCode,exitCode:i.exitCode,createParagraphNear:i.createParagraphNear,liftEmptyBlock:i.liftEmptyBlock,splitBlock:i.splitBlock,splitBlockKeepMarks:i.splitBlockKeepMarks,selectParentNode:i.selectParentNode,selectAll:i.selectAll,wrapIn:i.wrapIn,setBlockType:i.setBlockType,toggleMark:i.toggleMark,autoJoin:i.autoJoin,chainCommands:i.chainCommands,pcBaseKeymap:i.pcBaseKeymap,macBaseKeymap:i.macBaseKeymap,baseKeymap:i.baseKeymap,history:i.history,undo:i.undo,redo:i.redo,undoDepth:i.undoDepth,redoDepth:i.redoDepth,InputRule:i.InputRule,inputRules:i.inputRules,undoInputRule:i.undoInputRule,emDash:i.emDash,ellipsis:i.ellipsis,openDoubleQuote:i.openDoubleQuote,closeDoubleQuote:i.closeDoubleQuote,openSingleQuote:i.openSingleQuote,closeSingleQuote:i.closeSingleQuote,smartQuotes:i.smartQuotes,wrappingInputRule:i.wrappingInputRule,textblockTypeInputRule:i.textblockTypeInputRule,keymap:i.keymap,keydownHandler:i.keydownHandler,orderedList:i.orderedList,bulletList:i.bulletList,listItem:i.listItem,addListNodes:i.addListNodes,wrapInList:i.wrapInList,splitListItem:i.splitListItem,liftListItem:i.liftListItem,sinkListItem:i.sinkListItem,dropCursor:i.dropCursor,gapCursor:i.gapCursor,tableEditing:i.tableEditing,fixTables:i.fixTables,fixTablesKey:i.fixTablesKey,cellAround:i.cellAround,isInTable:i.isInTable,selectionCell:i.selectionCell,moveCellForward:i.moveCellForward,inSameTable:i.inSameTable,findCell:i.findCell,colCount:i.colCount,nextCell:i.nextCell,removeColSpan:i.removeColSpan,addColSpan:i.addColSpan,columnIsHeader:i.columnIsHeader,tableNodes:i.tableNodes,tableNodeTypes:i.tableNodeTypes,CellSelection:i.CellSelection,TableMap:i.TableMap,tableEditingKey:i.tableEditingKey,columnResizing:i.columnResizing,columnResizingPluginKey:Vo,updateColumnsOnResize:i.updateColumnsOnResize,selectedRect:i.selectedRect,addColumn:i.addColumn,addColumnBefore:i.addColumnBefore,addColumnAfter:i.addColumnAfter,deleteColumn:i.deleteColumn,rowIsHeader:i.rowIsHeader,addRow:i.addRow,addRowBefore:i.addRowBefore,addRowAfter:i.addRowAfter,deleteRow:i.deleteRow,mergeCells:i.mergeCells,splitCell:i.splitCell,splitCellWithType:i.splitCellWithType,setCellAttr:i.setCellAttr,toggleHeader:i.toggleHeader,toggleHeaderRow:i.toggleHeaderRow,toggleHeaderColumn:i.toggleHeaderColumn,toggleHeaderCell:i.toggleHeaderCell,goToNextCell:i.goToNextCell,deleteTable:i.deleteTable};e.Align=Fn,e.ApplyColor=Co,e.CleanFormatting=Yn,e.Editor=xo,e.FindAndReplace=bo,e.FontName=Un,e.FormatBlock=_n,e.Indent=Hn,e.InlineFormat=jn,e.InsertImage=oo,e.InsertTable=ao,e.LinkTool=Gn,e.List=$n,e.Outdent=On,e.Pdf=ho,e.Print=go,e.ProseMirror=Lo,e.ProseMirrorTool=qn,e.SelectAll=eo,e.Unlink=Jn,e.ViewHtml=co}));
package/index.d.mts CHANGED
@@ -274,7 +274,6 @@ getHTML(): string;
274
274
  setHTML(value: string): void;
275
275
  focus(): void;
276
276
  updateTools(view: any): void;
277
- iframeLoad(): void;
278
277
  initialize(): void;
279
278
  filterTransaction(transaction: Transaction, state: EditorState): true;
280
279
  onPasteHtml(html: string): string;
package/index.d.ts CHANGED
@@ -274,7 +274,6 @@ getHTML(): string;
274
274
  setHTML(value: string): void;
275
275
  focus(): void;
276
276
  updateTools(view: any): void;
277
- iframeLoad(): void;
278
277
  initialize(): void;
279
278
  filterTransaction(transaction: Transaction, state: EditorState): true;
280
279
  onPasteHtml(html: string): string;
@@ -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-editor",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1772107870,version:"8.0.2-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1772692229,version:"8.0.2-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1772107870,
14
- version: "8.0.2-develop.2",
13
+ publishDate: 1772692229,
14
+ version: "8.0.2-develop.3",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-editor",
3
- "version": "8.0.2-develop.2",
3
+ "version": "8.0.2-develop.3",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -19,16 +19,16 @@
19
19
  "sideEffects": false,
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-licensing": "^1.7.2",
22
- "@progress/kendo-vue-buttons": "8.0.2-develop.2",
23
- "@progress/kendo-vue-common": "8.0.2-develop.2",
24
- "@progress/kendo-vue-dialogs": "8.0.2-develop.2",
25
- "@progress/kendo-vue-dropdowns": "8.0.2-develop.2",
26
- "@progress/kendo-vue-form": "8.0.2-develop.2",
27
- "@progress/kendo-vue-inputs": "8.0.2-develop.2",
28
- "@progress/kendo-vue-intl": "8.0.2-develop.2",
29
- "@progress/kendo-vue-layout": "8.0.2-develop.2",
30
- "@progress/kendo-vue-pdf": "8.0.2-develop.2",
31
- "@progress/kendo-vue-popup": "8.0.2-develop.2",
22
+ "@progress/kendo-vue-buttons": "8.0.2-develop.3",
23
+ "@progress/kendo-vue-common": "8.0.2-develop.3",
24
+ "@progress/kendo-vue-dialogs": "8.0.2-develop.3",
25
+ "@progress/kendo-vue-dropdowns": "8.0.2-develop.3",
26
+ "@progress/kendo-vue-form": "8.0.2-develop.3",
27
+ "@progress/kendo-vue-inputs": "8.0.2-develop.3",
28
+ "@progress/kendo-vue-intl": "8.0.2-develop.3",
29
+ "@progress/kendo-vue-layout": "8.0.2-develop.3",
30
+ "@progress/kendo-vue-pdf": "8.0.2-develop.3",
31
+ "@progress/kendo-vue-popup": "8.0.2-develop.3",
32
32
  "@progress/kendo-svg-icons": "^4.4.0",
33
33
  "vue": "^3.0.2"
34
34
  },
@@ -51,7 +51,7 @@
51
51
  "package": {
52
52
  "productName": "Kendo UI for Vue",
53
53
  "productCode": "KENDOUIVUE",
54
- "publishDate": 1772107870,
54
+ "publishDate": 1772692229,
55
55
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
56
56
  }
57
57
  },
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2026 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=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent);exports.firefox=e;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2026 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 = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent);
9
- export {
10
- e as firefox
11
- };