@progress/kendo-vue-editor 8.4.0-develop.3 → 8.4.0-develop.4

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 r=require("vue"),P=require("@progress/kendo-vue-buttons"),d=require("@progress/kendo-vue-common"),n=require("@progress/kendo-editor-common"),U=require("./config/schema.js"),q=require("./config/defaultStyles.js"),t=require("./config/toolsSettings.js"),_=require("./dialogs/insertLink.js"),T=require("./utils/main.js"),O=require("./utils/props-key.js"),D=require("./utils/controlled-value.js"),A=require("./utils/cleanup.js"),$=require("./package-metadata.js"),L=require("./tools/align.js"),W=require("./tools/indent.js"),B=require("./tools/lists.js"),j=require("./tools/outdent.js"),b=require("./tools/inlineFormat.js"),I=require("./tools/fontStyle.js"),z=require("./tools/formatBlock.js"),h=require("./tools/proseMirrorTool.js"),N=require("./tools/insertLink.js"),G=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:x,bold:oe,italic:se,underline:ne}=t.EditorToolsSettings;function H(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const y={Bold:{comp:b.InlineFormat,props:t.EditorToolsSettings.bold},Italic:{comp:b.InlineFormat,props:t.EditorToolsSettings.italic},Underline:{comp:b.InlineFormat,props:t.EditorToolsSettings.underline},Strikethrough:{comp:b.InlineFormat,props:t.EditorToolsSettings.strikethrough},Subscript:{comp:b.InlineFormat,props:t.EditorToolsSettings.subscript},Superscript:{comp:b.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:j.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:z.FormatBlock,props:t.EditorToolsSettings.formatBlock},Undo:{comp:h.ProseMirror,props:t.EditorToolsSettings.undo},Redo:{comp:h.ProseMirror,props:t.EditorToolsSettings.redo},Link:{comp:N.LinkTool,props:t.EditorToolsSettings.link},Unlink:{comp:G.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:h.ProseMirror,props:t.EditorToolsSettings.mergeCells},SplitCell:{comp:h.ProseMirror,props:t.EditorToolsSettings.splitCell},AddRowBefore:{comp:h.ProseMirror,props:t.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:h.ProseMirror,props:t.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:h.ProseMirror,props:t.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:h.ProseMirror,props:t.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:h.ProseMirror,props:t.EditorToolsSettings.deleteRow},DeleteColumn:{comp:h.ProseMirror,props:t.EditorToolsSettings.deleteColumn},DeleteTable:{comp:h.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($.packageMetadata),this.showLicenseWatermark=d.shouldShowValidationUI($.packageMetadata),this.licenseMessage=d.getLicenseMessage($.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||(D.updateEditorValue(i,this.computedValue(),this._prevValue,this.trOnChange,this.htmlOnChange),this.valueisUpdated=!1,this.trOnChange=null,this.htmlOnChange=null)},beforeUnmount(){var p,g;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 m=A.cleanupAndDestroyProseMirrorView(s);(g=m==null?void 0:m.parentNode)==null||g.removeChild(m)}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:g,value:m}=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 E=this.$props.contentStyle;E===void 0&&(g||{}).height===void 0&&(E={height:"300px"});const C=function(){return this.linkDialog&&r.createVNode(_.InsertLinkDialog,{view:c,settings:x,dir:this.$props.dir,onClose:this.handleClose},null)},V=function(o,f){const u=y[o]||o,F=function(){let k;return o==="ForeColor"?k=S.toLanguageString(v.keys.foregroundColorAriaLabel,v.messages[v.keys.foregroundColorAriaLabel]):o==="BackColor"&&(k=S.toLanguageString(v.keys.backgroundColor,v.messages[v.keys.backgroundColor])),k};if(y[o]){e++;const k={view:c,dir:this.$props.dir,key:e,updateGuid:this.updateGuid,settings:y[o].props,...y[o].props,ariaLabel:F()};return r.h(r.markRaw(y[o].comp),k)}else{if(u==="Separator")return r.createVNode(P.ToolbarSeparator,{key:e},null);{const k=d.templateRendering.call(this,u.render,d.getListeners.call(this));return d.getTemplate.call(this,{h:r.h,template:k,defaultRendering:null,additionalListeners:{},additionalProps:{view:c,dir:this.$props.dir,updateGuid:this.updateGuid,key:e,settings:u.props}})}}},l=function(o,f){return o.map(function(u){return V.call(this,u,f)},this)},a=i.map(function(o,f){let u;return Array.isArray(o)?r.createVNode(P.ButtonGroup,{key:`btn-group-${o.join("-")}`,class:"k-toolbar-button-group"},H(u=l.call(this,o,f))?u:{default:()=>[u]}):V.call(this,o,f)},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,ariaLabel:"Toolbar"},H(a)?a:{default:()=>[a]}),s==="iframe"?r.createVNode("div",{class:"k-editor-content",role:"textbox","aria-label":"Editor content"},[r.createVNode("iframe",{ref:d.setRef(this,"iframe"),title:S.toLanguageString(v.keys.iframeTitle,v.messages[v.keys.iframeTitle]),style:E,class:"k-iframe"},null)]):r.createVNode("div",{style:E,class:"k-editor-content",role:"textbox","aria-label":"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?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()},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 f=l.createElement("style");f.appendChild(l.createTextNode(o)),l.head.appendChild(f)}});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,g=function(l){p.view=l,p.updateGuid=d.guid()};let m=[new n.Plugin({view:l=>{const a={update:g,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={...T.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,f=o.selection.empty,u=n.getMark(o,o.schema.marks[x.mark]);!l&&!(f&&!u)&&(this.linkDialog=!0)}return!l}};const{defaultContent:S="",value:w}=this.$props,M=w&&typeof w!="string"?r.toRaw(w):T.EditorUtils.createDocument(new n.Schema({nodes:U.nodes,marks:n.marks}),w||S,{preserveWhitespace:s}),E={state:n.EditorState.create({plugins:[...m,n.keymap(c),n.keymap(n.baseKeymap)],doc:M}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},C={plugins:m,shortcuts:c,target:p,viewProps:E,dom:i};this.$emit("loaded",C);const V=this.$props.extendView&&this.$props.extendView(C)||new n.EditorView({mount:i},E);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,g=this,m={target:g,value:s,get html(){return g.htmlOnChange=T.EditorUtils.getHtml({doc:s,schema:p}),g.htmlOnChange},transaction:e,schema:p};this.$emit("change",m)}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=y;
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"),$=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"),q=require("./utils/cleanup.js"),A=require("./package-metadata.js"),L=require("./tools/align.js"),W=require("./tools/indent.js"),B=require("./tools/lists.js"),j=require("./tools/outdent.js"),y=require("./tools/inlineFormat.js"),I=require("./tools/fontStyle.js"),z=require("./tools/formatBlock.js"),g=require("./tools/proseMirrorTool.js"),N=require("./tools/insertLink.js"),G=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:j.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:z.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:G.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(A.packageMetadata),this.showLicenseWatermark=d.shouldShowValidationUI(A.packageMetadata),this.licenseMessage=d.getLicenseMessage(A.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=q.cleanupAndDestroyProseMirrorView(s);(m=f==null?void 0:f.parentNode)==null||m.removeChild(f)}this.view&&q.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&&q.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:`group-${u}-${o.join("-")}`},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;[$.defaultStyle,$.tablesStyles,this.$props.dir==="rtl"?$.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,M=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:M}),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,44 +5,44 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as G, toRaw as j, markRaw as x, createVNode as h, isVNode as K, h as F } from "vue";
8
+ import { defineComponent as G, toRaw as j, markRaw as P, createVNode as h, isVNode as K, h as T } from "vue";
9
9
  import { ButtonGroup as J, Toolbar as q, ToolbarSeparator as Q } from "@progress/kendo-vue-buttons";
10
- import { guid as V, WatermarkOverlay as X, classNames as Y, setRef as P, getRef as M, 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 $, PluginKey as R, spacesFix as re, history as ne, dropCursor as ae, gapCursor as le, tableEditing as pe, Schema as de, marks as ce, EditorState as me, keymap as H, baseKeymap as ue, EditorView as he, getMark as fe } from "@progress/kendo-editor-common";
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 $, PluginKey as H, spacesFix as ne, history as re, dropCursor as ae, gapCursor as le, tableEditing as pe, 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
12
  import { nodes as ge } from "./config/schema.mjs";
13
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
15
  import { InsertLinkDialog as ke } from "./dialogs/insertLink.mjs";
16
16
  import { EditorUtils as y } from "./utils/main.mjs";
17
- import { editorPropsKey as _ } from "./utils/props-key.mjs";
17
+ import { editorPropsKey as D } from "./utils/props-key.mjs";
18
18
  import { updateEditorValue as ye } from "./utils/controlled-value.mjs";
19
19
  import { cleanupAndDestroyProseMirrorView as Ce, nullifyObjectProperties as Se, cleanupIframe as Ee } from "./utils/cleanup.mjs";
20
20
  import { packageMetadata as A } from "./package-metadata.mjs";
21
- import { Align as L } from "./tools/align.mjs";
22
- import { Indent as Le } from "./tools/indent.mjs";
23
- import { List as D } from "./tools/lists.mjs";
24
- import { Outdent as Ve } from "./tools/outdent.mjs";
21
+ import { Align as V } from "./tools/align.mjs";
22
+ import { Indent as Ve } from "./tools/indent.mjs";
23
+ import { List as x } from "./tools/lists.mjs";
24
+ import { Outdent as Le } from "./tools/outdent.mjs";
25
25
  import { InlineFormat as b } from "./tools/inlineFormat.mjs";
26
26
  import { FontName as I } from "./tools/fontStyle.mjs";
27
27
  import { FormatBlock as $e } from "./tools/formatBlock.mjs";
28
- import { ProseMirror as d } from "./tools/proseMirrorTool.mjs";
28
+ import { ProseMirror as c } from "./tools/proseMirrorTool.mjs";
29
29
  import { LinkTool as U } from "./tools/insertLink.mjs";
30
30
  import { Unlink as Ae } from "./tools/unlink.mjs";
31
31
  import { CleanFormatting as Oe } from "./tools/cleanFormatting.mjs";
32
32
  import { SelectAll as Be } from "./tools/selectAll.mjs";
33
- import { InsertImage as Te } from "./tools/insertImage.mjs";
34
- import { InsertTable as xe } from "./tools/insertTable/tool.mjs";
35
- import { ViewHtml as Fe } from "./tools/viewHtml.mjs";
36
- import { Pdf as Pe } from "./tools/pdf.mjs";
37
- import { Print as Me } from "./tools/print.mjs";
38
- import { FindAndReplace as Re } from "./tools/findReplace.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
39
  import { ApplyColor as N } from "./tools/applyColor.mjs";
40
40
  import { keys as k, messages as O } from "./messages/main.mjs";
41
- import { provideLocalizationService as He } from "@progress/kendo-vue-intl";
41
+ import { provideLocalizationService as _e } from "@progress/kendo-vue-intl";
42
42
  const {
43
43
  link: W,
44
- bold: _e,
45
- italic: De,
44
+ bold: De,
45
+ italic: xe,
46
46
  underline: Ie
47
47
  } = t;
48
48
  function z(e) {
@@ -74,35 +74,35 @@ const C = {
74
74
  props: t.superscript
75
75
  },
76
76
  AlignLeft: {
77
- comp: L,
77
+ comp: V,
78
78
  props: t.alignLeft
79
79
  },
80
80
  AlignCenter: {
81
- comp: L,
81
+ comp: V,
82
82
  props: t.alignCenter
83
83
  },
84
84
  AlignRight: {
85
- comp: L,
85
+ comp: V,
86
86
  props: t.alignRight
87
87
  },
88
88
  AlignJustify: {
89
- comp: L,
89
+ comp: V,
90
90
  props: t.alignJustify
91
91
  },
92
92
  Indent: {
93
- comp: Le,
93
+ comp: Ve,
94
94
  props: t.indent
95
95
  },
96
96
  Outdent: {
97
- comp: Ve,
97
+ comp: Le,
98
98
  props: t.outdent
99
99
  },
100
100
  OrderedList: {
101
- comp: D,
101
+ comp: x,
102
102
  props: t.orderedList
103
103
  },
104
104
  UnorderedList: {
105
- comp: D,
105
+ comp: x,
106
106
  props: t.bulletList
107
107
  },
108
108
  FontSize: {
@@ -118,11 +118,11 @@ const C = {
118
118
  props: t.formatBlock
119
119
  },
120
120
  Undo: {
121
- comp: d,
121
+ comp: c,
122
122
  props: t.undo
123
123
  },
124
124
  Redo: {
125
- comp: d,
125
+ comp: c,
126
126
  props: t.redo
127
127
  },
128
128
  Link: {
@@ -134,11 +134,11 @@ const C = {
134
134
  props: t.unlink
135
135
  },
136
136
  InsertImage: {
137
- comp: Te,
137
+ comp: Fe,
138
138
  props: t.image
139
139
  },
140
140
  ViewHtml: {
141
- comp: Fe,
141
+ comp: Te,
142
142
  props: t.viewHtml
143
143
  },
144
144
  CleanFormatting: {
@@ -150,51 +150,51 @@ const C = {
150
150
  props: t.selectAll
151
151
  },
152
152
  InsertTable: {
153
- comp: xe,
153
+ comp: Pe,
154
154
  props: t.insertTable
155
155
  },
156
156
  MergeCells: {
157
- comp: d,
157
+ comp: c,
158
158
  props: t.mergeCells
159
159
  },
160
160
  SplitCell: {
161
- comp: d,
161
+ comp: c,
162
162
  props: t.splitCell
163
163
  },
164
164
  AddRowBefore: {
165
- comp: d,
165
+ comp: c,
166
166
  props: t.addRowBefore
167
167
  },
168
168
  AddRowAfter: {
169
- comp: d,
169
+ comp: c,
170
170
  props: t.addRowAfter
171
171
  },
172
172
  AddColumnBefore: {
173
- comp: d,
173
+ comp: c,
174
174
  props: t.addColumnBefore
175
175
  },
176
176
  AddColumnAfter: {
177
- comp: d,
177
+ comp: c,
178
178
  props: t.addColumnAfter
179
179
  },
180
180
  DeleteRow: {
181
- comp: d,
181
+ comp: c,
182
182
  props: t.deleteRow
183
183
  },
184
184
  DeleteColumn: {
185
- comp: d,
185
+ comp: c,
186
186
  props: t.deleteColumn
187
187
  },
188
188
  DeleteTable: {
189
- comp: d,
189
+ comp: c,
190
190
  props: t.deleteTable
191
191
  },
192
192
  Print: {
193
- comp: Me,
193
+ comp: Re,
194
194
  props: t.print
195
195
  },
196
196
  Pdf: {
197
- comp: Pe,
197
+ comp: Me,
198
198
  props: t.pdf
199
199
  },
200
200
  InsertFile: {
@@ -202,7 +202,7 @@ const C = {
202
202
  props: t.insertFile
203
203
  },
204
204
  FindAndReplace: {
205
- comp: Re,
205
+ comp: He,
206
206
  props: t.findAndReplace
207
207
  },
208
208
  ForeColor: {
@@ -260,7 +260,7 @@ const C = {
260
260
  },
261
261
  data() {
262
262
  return {
263
- updateGuid: V(),
263
+ updateGuid: L(),
264
264
  view: void 0,
265
265
  linkDialog: !1,
266
266
  showLicenseWatermark: !1,
@@ -271,7 +271,7 @@ const C = {
271
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);
272
272
  },
273
273
  mounted() {
274
- this.iframe = M(this, "iframe"), this.contentElement = M(this, "contentElement"), this.initialize();
274
+ this.iframe = R(this, "iframe"), this.contentElement = R(this, "contentElement"), this.initialize();
275
275
  },
276
276
  watch: {
277
277
  value: function(e, i) {
@@ -285,7 +285,7 @@ const C = {
285
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);
286
286
  },
287
287
  beforeUnmount() {
288
- var a, c;
288
+ var a, m;
289
289
  this.iframe && (this.iframe.src = "about:blank");
290
290
  const e = this.iframe, i = this.contentElement, s = this.getView();
291
291
  if (s) {
@@ -293,8 +293,8 @@ const C = {
293
293
  var f;
294
294
  (f = l == null ? void 0 : l.destroy) == null || f.call(l);
295
295
  });
296
- const m = Ce(s);
297
- (c = m == null ? void 0 : m.parentNode) == null || c.removeChild(m);
296
+ const u = Ce(s);
297
+ (m = u == null ? void 0 : u.parentNode) == null || m.removeChild(u);
298
298
  }
299
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;
300
300
  },
@@ -307,17 +307,17 @@ const C = {
307
307
  tools: i = [],
308
308
  defaultEditMode: s = "iframe",
309
309
  preserveWhitespace: a = "full",
310
- style: c,
311
- value: m
312
- } = this.$props, l = this.getView(), f = He(this), w = this.showLicenseWatermark ? h(X, {
310
+ style: m,
311
+ value: u
312
+ } = this.$props, l = this.getView(), f = _e(this), w = this.showLicenseWatermark ? h(X, {
313
313
  message: this.licenseMessage
314
314
  }, null) : null;
315
315
  if (this.view) {
316
- const o = _.getState(this.view.state);
316
+ const o = D.getState(this.view.state);
317
317
  o.preserveWhitespace = a;
318
318
  }
319
319
  let g = this.$props.contentStyle;
320
- g === void 0 && (c || {}).height === void 0 && (g = {
320
+ g === void 0 && (m || {}).height === void 0 && (g = {
321
321
  height: "300px"
322
322
  });
323
323
  const S = function() {
@@ -327,8 +327,8 @@ const C = {
327
327
  dir: this.$props.dir,
328
328
  onClose: this.handleClose
329
329
  }, null);
330
- }, E = function(o, u) {
331
- const p = C[o] || o, T = function() {
330
+ }, E = function(o, p) {
331
+ const d = C[o] || o, F = function() {
332
332
  let v;
333
333
  return o === "ForeColor" ? v = f.toLanguageString(k.foregroundColorAriaLabel, O[k.foregroundColorAriaLabel]) : o === "BackColor" && (v = f.toLanguageString(k.backgroundColor, O[k.backgroundColor])), v;
334
334
  };
@@ -341,18 +341,18 @@ const C = {
341
341
  updateGuid: this.updateGuid,
342
342
  settings: C[o].props,
343
343
  ...C[o].props,
344
- ariaLabel: T()
344
+ ariaLabel: F()
345
345
  };
346
- return F(x(C[o].comp), v);
346
+ return T(P(C[o].comp), v);
347
347
  } else {
348
- if (p === "Separator")
348
+ if (d === "Separator")
349
349
  return h(Q, {
350
350
  key: e
351
351
  }, null);
352
352
  {
353
- const v = ie.call(this, p.render, oe.call(this));
353
+ const v = ie.call(this, d.render, oe.call(this));
354
354
  return se.call(this, {
355
- h: F,
355
+ h: T,
356
356
  template: v,
357
357
  defaultRendering: null,
358
358
  additionalListeners: {},
@@ -361,52 +361,46 @@ const C = {
361
361
  dir: this.$props.dir,
362
362
  updateGuid: this.updateGuid,
363
363
  key: e,
364
- settings: p.props
364
+ settings: d.props
365
365
  }
366
366
  });
367
367
  }
368
368
  }
369
- }, r = function(o, u) {
370
- return o.map(function(p) {
371
- return E.call(this, p, u);
369
+ }, n = function(o, p) {
370
+ return o.map(function(d) {
371
+ return E.call(this, d, p);
372
372
  }, this);
373
- }, n = i.map(function(o, u) {
374
- let p;
373
+ }, r = i.map(function(o, p) {
374
+ let d;
375
375
  return Array.isArray(o) ? h(J, {
376
- key: `btn-group-${o.join("-")}`,
377
- class: "k-toolbar-button-group"
378
- }, z(p = r.call(this, o, u)) ? p : {
379
- default: () => [p]
380
- }) : E.call(this, o, u);
376
+ key: `group-${p}-${o.join("-")}`
377
+ }, z(d = n.call(this, o, p)) ? d : {
378
+ default: () => [d]
379
+ }) : E.call(this, o, p);
381
380
  }, this);
382
381
  return h("div", {
383
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
- keyboardNavigation: this.$props.keyboardNavigation,
391
- ariaLabel: "Toolbar"
392
- }, z(n) ? n : {
393
- default: () => [n]
389
+ keyboardNavigation: this.$props.keyboardNavigation
390
+ }, z(r) ? r : {
391
+ default: () => [r]
394
392
  }), s === "iframe" ? h("div", {
395
- class: "k-editor-content",
396
- role: "textbox",
397
- "aria-label": "Editor content"
393
+ class: "k-editor-content"
398
394
  }, [h("iframe", {
399
- ref: P(this, "iframe"),
395
+ ref: M(this, "iframe"),
400
396
  title: f.toLanguageString(k.iframeTitle, O[k.iframeTitle]),
401
397
  style: g,
402
398
  class: "k-iframe"
403
399
  }, null)]) : h("div", {
404
400
  style: g,
405
- class: "k-editor-content",
406
- role: "textbox",
407
- "aria-label": "Editor content"
401
+ class: "k-editor-content"
408
402
  }, [h("div", {
409
- ref: P(this, "contentElement"),
403
+ ref: M(this, "contentElement"),
410
404
  role: "textbox",
411
405
  "aria-labelledby": this.$props.ariaLabelledBy,
412
406
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -429,59 +423,59 @@ const C = {
429
423
  this.getView() && this.getView().focus();
430
424
  },
431
425
  updateTools(e) {
432
- this.view = e, this.updateGuid = V();
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;
431
+ const n = e.document;
438
432
  [ve, we, this.$props.dir === "rtl" ? be : void 0].forEach((o) => {
439
433
  if (o) {
440
- const u = r.createElement("style");
441
- u.appendChild(r.createTextNode(o)), r.head.appendChild(u);
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, c = 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
- let m = [
449
+ let u = [
456
450
  // https://prosemirror.net/docs/ref/#state.PluginSpec
457
451
  new $({
458
- view: (r) => {
459
- const n = {
460
- update: c,
452
+ view: (n) => {
453
+ const r = {
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
- key: new R("toolbar-tools-update-plugin")
462
+ key: new H("toolbar-tools-update-plugin")
469
463
  }),
470
464
  new $({
471
465
  filterTransaction: this.filterTransaction,
472
- key: new R("onExecute-event-plugin")
466
+ key: new H("onExecute-event-plugin")
473
467
  }),
474
468
  new $({
475
- key: _,
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
- re(),
484
477
  ne(),
478
+ re(),
485
479
  ae(),
486
480
  le(),
487
481
  pe()
@@ -492,20 +486,20 @@ const C = {
492
486
  hardBreak: "hard_break"
493
487
  },
494
488
  toolsSettings: {
495
- bold: _e,
496
- italic: De,
489
+ bold: De,
490
+ italic: xe,
497
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, u = o.selection.empty, p = fe(o, o.schema.marks[W.mark]);
506
- !r && !(u && !p) && (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 {
@@ -518,7 +512,7 @@ const C = {
518
512
  preserveWhitespace: s
519
513
  }), g = {
520
514
  state: me.create({
521
- plugins: [...m, H(l), H(ue)],
515
+ plugins: [...u, _(l), _(ue)],
522
516
  doc: B
523
517
  }),
524
518
  transformPastedHTML: this.onPasteHtml,
@@ -529,7 +523,7 @@ const C = {
529
523
  paste: this.onPaste
530
524
  }
531
525
  }, S = {
532
- plugins: m,
526
+ plugins: u,
533
527
  shortcuts: l,
534
528
  target: a,
535
529
  viewProps: g,
@@ -539,7 +533,7 @@ const C = {
539
533
  const E = this.$props.extendView && this.$props.extendView(S) || new he({
540
534
  mount: i
541
535
  }, g);
542
- this.view = x(E);
536
+ this.view = P(E);
543
537
  },
544
538
  filterTransaction(e, i) {
545
539
  const s = {
@@ -565,19 +559,19 @@ const C = {
565
559
  const i = e.docChanged;
566
560
  if (i) {
567
561
  this.trOnChange = e;
568
- const s = e.doc, a = e.doc.type.schema, c = this, m = {
569
- target: c,
562
+ const s = e.doc, a = e.doc.type.schema, m = this, u = {
563
+ target: m,
570
564
  value: s,
571
565
  get html() {
572
- return c.htmlOnChange = y.getHtml({
566
+ return m.htmlOnChange = y.getHtml({
573
567
  doc: s,
574
568
  schema: a
575
- }), c.htmlOnChange;
569
+ }), m.htmlOnChange;
576
570
  },
577
571
  transaction: e,
578
572
  schema: a
579
573
  };
580
- this.$emit("change", m);
574
+ this.$emit("change", u);
581
575
  }
582
576
  this.getView() && (this.$props.value === void 0 || !i) && this.getView().updateState(this.getView().state.apply(e));
583
577
  },
@@ -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"});require("@progress/kendo-vue-buttons");const e=require("../messages/main.js");require("@progress/kendo-vue-pdf");const l=require("@progress/kendo-editor-common"),a=require("@progress/kendo-svg-icons"),i={...l.indentRules.listsTypes};exports.EditorToolsSettings=void 0;(n=>{const s={type:"button"};n.bold={...l.bold,props:{icon:"bold",svgIcon:a.boldIcon,...s},messages:{title:e.keys.bold},commandName:"Bold"},n.italic={...l.italic,props:{icon:"italic",svgIcon:a.italicIcon,...s},messages:{title:e.keys.italic},commandName:"Italic"},n.underline={...l.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...s},messages:{title:e.keys.underline},commandName:"Underline"},n.strikethrough={...l.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...s},messages:{title:e.keys.strikethrough},commandName:"Strikethrough"},n.subscript={...l.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...s},messages:{title:e.keys.subscript},commandName:"Subscript"},n.superscript={...l.superscript,props:{icon:"supscript",svgIcon:a.supscriptIcon,...s},messages:{title:e.keys.superscript},commandName:"Superscript"},n.link={...l.link,props:{icon:"link",svgIcon:a.linkIcon,...s},messages:{insertHyperlink:e.keys.insertHyperlink,insertHyperlinkDialogTitle:e.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:e.keys.insertHyperlinkAddress,insertHyperlinkTitle:e.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:e.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:e.keys.insertHyperlinkCancel,insertHyperlinkInsert:e.keys.insertHyperlinkInsert},commandName:"Link"},n.insertFile={...l.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...s},messages:{insertHyperlink:e.keys.insertFile,insertHyperlinkDialogTitle:e.keys.insertFileDialogTitle,insertHyperlinkAddress:e.keys.insertFileAddress,insertHyperlinkTitle:e.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:e.keys.insertFileCancel,insertHyperlinkInsert:e.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1},n.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...s},messages:{createTable:e.keys.createTable,createTableHint:e.keys.createTableHint},commandName:"InsertTable"},n.addRowBefore={command:l.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...s},messages:{title:e.keys.addRowBefore},commandName:"AddRowBefore"},n.addRowAfter={command:l.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...s},messages:{title:e.keys.addRowAfter},commandName:"AddRowAfter"},n.addColumnBefore={command:l.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...s},messages:{title:e.keys.addColumnBefore},commandName:"AddColumnBefore"},n.addColumnAfter={command:l.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...s},messages:{title:e.keys.addColumnAfter},commandName:"AddColumnAfter"},n.deleteRow={command:l.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...s},messages:{title:e.keys.deleteRow},commandName:"DeleteRow"},n.deleteColumn={command:l.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...s},messages:{title:e.keys.deleteColumn},commandName:"DeleteColumn"},n.deleteTable={command:l.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...s},messages:{title:e.keys.deleteTable},commandName:"DeleteTable"},n.mergeCells={command:l.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...s},messages:{title:e.keys.mergeCells},commandName:"MergeCells"},n.splitCell={command:l.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...s},messages:{title:e.keys.splitCell},commandName:"SplitCell"},n.print={props:{icon:"print",svgIcon:a.printIcon,...s},messages:{title:e.keys.print}},n.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...s},messages:{title:e.keys.selectAll}},n.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...s},messages:{title:e.keys.pdf}},n.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},n.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...s},messages:{title:e.keys.cleanFormatting},commandName:"CleanFormatting"},n.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...s},messages:{insertImage:e.keys.insertImage,insertImageDialogTitle:e.keys.insertImageDialogTitle,insertImageAddress:e.keys.insertImageAddress,insertImageTitle:e.keys.insertImageTitle,insertImageAltText:e.keys.insertImageAltText,insertImageWidth:e.keys.insertImageWidth,insertImageHeight:e.keys.insertImageHeight,insertImageCancel:e.keys.insertImageCancel,insertImageInsert:e.keys.insertImageInsert},commandName:"InsertImage"},n.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...s},messages:{viewHtml:e.keys.viewHtml,viewHtmlDialogTitle:e.keys.viewHtmlDialogTitle,viewHtmlCancel:e.keys.viewHtmlCancel,viewHtmlUpdate:e.keys.viewHtmlUpdate},commandName:"SetContent"},n.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...s},messages:{findReplaceToolTitle:e.keys.findReplaceToolTitle,findReplaceDialogTitle:e.keys.findReplaceDialogTitle,findReplaceTabFind:e.keys.findReplaceTabFind,findReplaceTabReplace:e.keys.findReplaceTabReplace,findReplaceFindWhat:e.keys.findReplaceFindWhat,findReplaceReplaceWith:e.keys.findReplaceReplaceWith,findReplaceReplace:e.keys.findReplaceReplace,findReplaceReplaceAll:e.keys.findReplaceReplaceAll,findReplaceMatchCase:e.keys.findReplaceMatchCase,findReplaceMatchWord:e.keys.findReplaceMatchWord,findReplaceMatchCyclic:e.keys.findReplaceMatchCyclic,findReplaceUseRegExp:e.keys.findReplaceUseRegExp,findReplacePrevMatch:e.keys.findReplacePrevMatch,findReplaceNextMatch:e.keys.findReplaceNextMatch,findReplaceMatches:e.keys.findReplaceMatches,findReplaceInvalidRegExp:e.keys.findReplaceInvalidRegExp}},n.unlink={...l.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...s},messages:{title:e.keys.unlink},commandName:"Unlink"},n.undo={command:l.undo,props:{icon:"undo",svgIcon:a.undoIcon,...s},messages:{title:e.keys.undo},commandName:"Undo"},n.redo={command:l.redo,props:{icon:"redo",svgIcon:a.redoIcon,...s},messages:{title:e.keys.redo},commandName:"Redo"},n.fontSize={style:"font-size",defaultItem:{text:e.messages[e.keys.fontSize],value:"",localizationKey:e.keys.fontSize},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"},n.fontName={style:"font-family",defaultItem:{text:e.messages[e.keys.fontName],value:"",localizationKey:e.keys.fontName},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"},n.formatBlock={defaultItem:{text:e.messages[e.keys.format],value:"",localizationKey:e.keys.format},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"},n.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:e.keys.foregroundColor},commandName:"ForeColor"},n.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:e.keys.backgroundColor},commandName:"BackColor"},n.alignLeft={actions:[...l.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...s},messages:{title:e.keys.alignLeft},commandName:"AlignLeft"},n.alignRight={actions:[...l.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...s},messages:{title:e.keys.alignRight},commandName:"AlignRight"},n.alignCenter={actions:[...l.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...s},messages:{title:e.keys.alignCenter},commandName:"AlignCenter"},n.alignJustify={actions:[...l.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...s},messages:{title:e.keys.alignJustify},commandName:"AlignJustify"},n.alignRemove={actions:[...l.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...s},messages:{},commandName:"AlignRemove"},n.indent={actions:l.indentRules.nodes,listsTypes:i,props:{icon:"indent",svgIcon:a.indentIcon,...s},messages:{title:e.keys.indent},commandName:"Indent"},n.outdent={actions:l.outdentRules.nodes,listsTypes:i,props:{icon:"outdent",svgIcon:a.outdentIcon,...s},messages:{title:e.keys.outdent},commandName:"Outdent"},n.orderedList={listType:i.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...s},messages:{title:e.keys.orderedList},commandName:"OrderedList",types:{...i}},n.bulletList={listType:i.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...s},messages:{title:e.keys.bulletList},commandName:"UnorderedList",types:{...i}}})(exports.EditorToolsSettings||(exports.EditorToolsSettings={}));
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@progress/kendo-vue-buttons");const e=require("../messages/main.js");require("@progress/kendo-vue-pdf");const l=require("@progress/kendo-editor-common"),a=require("@progress/kendo-svg-icons"),i={...l.indentRules.listsTypes};exports.EditorToolsSettings=void 0;(n=>{const s={type:"button"};n.bold={...l.bold,props:{icon:"bold",svgIcon:a.boldIcon,...s},messages:{title:e.keys.bold},commandName:"Bold"},n.italic={...l.italic,props:{icon:"italic",svgIcon:a.italicIcon,...s},messages:{title:e.keys.italic},commandName:"Italic"},n.underline={...l.underline,props:{icon:"underline",svgIcon:a.underlineIcon,...s},messages:{title:e.keys.underline},commandName:"Underline"},n.strikethrough={...l.strikethrough,props:{icon:"strikethrough",svgIcon:a.strikethroughIcon,...s},messages:{title:e.keys.strikethrough},commandName:"Strikethrough"},n.subscript={...l.subscript,props:{icon:"subscript",svgIcon:a.subscriptIcon,...s},messages:{title:e.keys.subscript},commandName:"Subscript"},n.superscript={...l.superscript,props:{icon:"supscript",svgIcon:a.superscriptIcon,...s},messages:{title:e.keys.superscript},commandName:"Superscript"},n.link={...l.link,props:{icon:"link",svgIcon:a.linkIcon,...s},messages:{insertHyperlink:e.keys.insertHyperlink,insertHyperlinkDialogTitle:e.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:e.keys.insertHyperlinkAddress,insertHyperlinkTitle:e.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:e.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:e.keys.insertHyperlinkCancel,insertHyperlinkInsert:e.keys.insertHyperlinkInsert},commandName:"Link"},n.insertFile={...l.link,props:{icon:"file-add",svgIcon:a.fileAddIcon,...s},messages:{insertHyperlink:e.keys.insertFile,insertHyperlinkDialogTitle:e.keys.insertFileDialogTitle,insertHyperlinkAddress:e.keys.insertFileAddress,insertHyperlinkTitle:e.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:e.keys.insertFileCancel,insertHyperlinkInsert:e.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1},n.insertTable={props:{icon:"table-add",svgIcon:a.tableAddIcon,...s},messages:{createTable:e.keys.createTable,createTableHint:e.keys.createTableHint},commandName:"InsertTable"},n.addRowBefore={command:l.addRowBefore,props:{icon:"table-row-insert-above",svgIcon:a.tableRowInsertAboveIcon,...s},messages:{title:e.keys.addRowBefore},commandName:"AddRowBefore"},n.addRowAfter={command:l.addRowAfter,props:{icon:"table-row-insert-below",svgIcon:a.tableRowInsertBelowIcon,...s},messages:{title:e.keys.addRowAfter},commandName:"AddRowAfter"},n.addColumnBefore={command:l.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...s},messages:{title:e.keys.addColumnBefore},commandName:"AddColumnBefore"},n.addColumnAfter={command:l.addColumnAfter,props:{icon:"table-column-insert-right",svgIcon:a.tableColumnInsertRightIcon,...s},messages:{title:e.keys.addColumnAfter},commandName:"AddColumnAfter"},n.deleteRow={command:l.deleteRow,props:{icon:"table-row-delete",svgIcon:a.tableRowDeleteIcon,...s},messages:{title:e.keys.deleteRow},commandName:"DeleteRow"},n.deleteColumn={command:l.deleteColumn,props:{icon:"table-column-delete",svgIcon:a.tableColumnDeleteIcon,...s},messages:{title:e.keys.deleteColumn},commandName:"DeleteColumn"},n.deleteTable={command:l.deleteTable,props:{icon:"table-delete",svgIcon:a.tableDeleteIcon,...s},messages:{title:e.keys.deleteTable},commandName:"DeleteTable"},n.mergeCells={command:l.mergeCells,props:{icon:"cells-merge",svgIcon:a.cellsMergeIcon,...s},messages:{title:e.keys.mergeCells},commandName:"MergeCells"},n.splitCell={command:l.splitCell,props:{icon:"cell-split-horizontally",svgIcon:a.cellSplitHorizontallyIcon,...s},messages:{title:e.keys.splitCell},commandName:"SplitCell"},n.print={props:{icon:"print",svgIcon:a.printIcon,...s},messages:{title:e.keys.print}},n.selectAll={props:{icon:"select-all",svgIcon:a.selectAllIcon,...s},messages:{title:e.keys.selectAll}},n.pdf={props:{icon:"file-pdf",svgIcon:a.filePdfIcon,...s},messages:{title:e.keys.pdf}},n.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},n.cleanFormatting={props:{icon:"clear-css",svgIcon:a.clearCssIcon,...s},messages:{title:e.keys.cleanFormatting},commandName:"CleanFormatting"},n.image={node:"image",props:{icon:"image",svgIcon:a.imageIcon,...s},messages:{insertImage:e.keys.insertImage,insertImageDialogTitle:e.keys.insertImageDialogTitle,insertImageAddress:e.keys.insertImageAddress,insertImageTitle:e.keys.insertImageTitle,insertImageAltText:e.keys.insertImageAltText,insertImageWidth:e.keys.insertImageWidth,insertImageHeight:e.keys.insertImageHeight,insertImageCancel:e.keys.insertImageCancel,insertImageInsert:e.keys.insertImageInsert},commandName:"InsertImage"},n.viewHtml={props:{icon:"code",svgIcon:a.codeIcon,...s},messages:{viewHtml:e.keys.viewHtml,viewHtmlDialogTitle:e.keys.viewHtmlDialogTitle,viewHtmlCancel:e.keys.viewHtmlCancel,viewHtmlUpdate:e.keys.viewHtmlUpdate},commandName:"SetContent"},n.findAndReplace={props:{icon:"search",svgIcon:a.searchIcon,...s},messages:{findReplaceToolTitle:e.keys.findReplaceToolTitle,findReplaceDialogTitle:e.keys.findReplaceDialogTitle,findReplaceTabFind:e.keys.findReplaceTabFind,findReplaceTabReplace:e.keys.findReplaceTabReplace,findReplaceFindWhat:e.keys.findReplaceFindWhat,findReplaceReplaceWith:e.keys.findReplaceReplaceWith,findReplaceReplace:e.keys.findReplaceReplace,findReplaceReplaceAll:e.keys.findReplaceReplaceAll,findReplaceMatchCase:e.keys.findReplaceMatchCase,findReplaceMatchWord:e.keys.findReplaceMatchWord,findReplaceMatchCyclic:e.keys.findReplaceMatchCyclic,findReplaceUseRegExp:e.keys.findReplaceUseRegExp,findReplacePrevMatch:e.keys.findReplacePrevMatch,findReplaceNextMatch:e.keys.findReplaceNextMatch,findReplaceMatches:e.keys.findReplaceMatches,findReplaceInvalidRegExp:e.keys.findReplaceInvalidRegExp}},n.unlink={...l.link,props:{icon:"unlink",svgIcon:a.unlinkIcon,...s},messages:{title:e.keys.unlink},commandName:"Unlink"},n.undo={command:l.undo,props:{icon:"undo",svgIcon:a.undoIcon,...s},messages:{title:e.keys.undo},commandName:"Undo"},n.redo={command:l.redo,props:{icon:"redo",svgIcon:a.redoIcon,...s},messages:{title:e.keys.redo},commandName:"Redo"},n.fontSize={style:"font-size",defaultItem:{text:e.messages[e.keys.fontSize],value:"",localizationKey:e.keys.fontSize},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"},n.fontName={style:"font-family",defaultItem:{text:e.messages[e.keys.fontName],value:"",localizationKey:e.keys.fontName},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"},n.formatBlock={defaultItem:{text:e.messages[e.keys.format],value:"",localizationKey:e.keys.format},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"},n.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",svgIcon:a.foregroundColorIcon,view:"palette",title:e.keys.foregroundColor},commandName:"ForeColor"},n.backColor={color:"background-color",colorPickerProps:{icon:"droplet",svgIcon:a.dropletIcon,view:"palette",title:e.keys.backgroundColor},commandName:"BackColor"},n.alignLeft={actions:[...l.alignLeftRules],props:{icon:"align-left",svgIcon:a.alignLeftIcon,...s},messages:{title:e.keys.alignLeft},commandName:"AlignLeft"},n.alignRight={actions:[...l.alignRightRules],props:{icon:"align-right",svgIcon:a.alignRightIcon,...s},messages:{title:e.keys.alignRight},commandName:"AlignRight"},n.alignCenter={actions:[...l.alignCenterRules],props:{icon:"align-center",svgIcon:a.alignCenterIcon,...s},messages:{title:e.keys.alignCenter},commandName:"AlignCenter"},n.alignJustify={actions:[...l.alignJustifyRules],props:{icon:"align-justify",svgIcon:a.alignJustifyIcon,...s},messages:{title:e.keys.alignJustify},commandName:"AlignJustify"},n.alignRemove={actions:[...l.alignRemoveRules],props:{icon:"align-remove",svgIcon:a.alignRemoveIcon,...s},messages:{},commandName:"AlignRemove"},n.indent={actions:l.indentRules.nodes,listsTypes:i,props:{icon:"indent",svgIcon:a.indentIcon,...s},messages:{title:e.keys.indent},commandName:"Indent"},n.outdent={actions:l.outdentRules.nodes,listsTypes:i,props:{icon:"outdent",svgIcon:a.outdentIcon,...s},messages:{title:e.keys.outdent},commandName:"Outdent"},n.orderedList={listType:i.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...s},messages:{title:e.keys.orderedList},commandName:"OrderedList",types:{...i}},n.bulletList={listType:i.bulletList,props:{icon:"list-unordered",svgIcon:a.listUnorderedIcon,...s},messages:{title:e.keys.bulletList},commandName:"UnorderedList",types:{...i}}})(exports.EditorToolsSettings||(exports.EditorToolsSettings={}));
@@ -9,7 +9,7 @@ import "@progress/kendo-vue-buttons";
9
9
  import { keys as e, messages as i } from "../messages/main.mjs";
10
10
  import "@progress/kendo-vue-pdf";
11
11
  import { indentRules as o, bold as c, italic as m, underline as r, strikethrough as d, subscript as p, superscript as g, link as t, addRowBefore as f, addRowAfter as u, addColumnBefore as I, addColumnAfter as v, deleteRow as R, deleteColumn as y, deleteTable as b, mergeCells as h, splitCell as C, undo as k, redo as N, alignLeftRules as H, alignRightRules as w, alignCenterRules as x, alignJustifyRules as A, alignRemoveRules as F, outdentRules as L } from "@progress/kendo-editor-common";
12
- import { boldIcon as M, italicIcon as z, underlineIcon as W, strikethroughIcon as D, subscriptIcon as B, supscriptIcon as T, linkIcon as P, fileAddIcon as U, tableAddIcon as G, tableRowInsertAboveIcon as J, tableRowInsertBelowIcon as O, tableColumnInsertLeftIcon as K, tableColumnInsertRightIcon as V, tableRowDeleteIcon as j, tableColumnDeleteIcon as q, tableDeleteIcon as Q, cellsMergeIcon as X, cellSplitHorizontallyIcon as Y, printIcon as Z, selectAllIcon as _, filePdfIcon as $, clearCssIcon as S, imageIcon as E, codeIcon as ee, searchIcon as ne, unlinkIcon as ae, undoIcon as le, redoIcon as ie, foregroundColorIcon as te, dropletIcon as se, alignLeftIcon as oe, alignRightIcon as ce, alignCenterIcon as me, alignJustifyIcon as re, alignRemoveIcon as de, indentIcon as pe, outdentIcon as ge, listOrderedIcon as fe, listUnorderedIcon as ue } from "@progress/kendo-svg-icons";
12
+ import { boldIcon as M, italicIcon as z, underlineIcon as W, strikethroughIcon as D, subscriptIcon as B, superscriptIcon as T, linkIcon as P, fileAddIcon as U, tableAddIcon as G, tableRowInsertAboveIcon as J, tableRowInsertBelowIcon as O, tableColumnInsertLeftIcon as K, tableColumnInsertRightIcon as V, tableRowDeleteIcon as j, tableColumnDeleteIcon as q, tableDeleteIcon as Q, cellsMergeIcon as X, cellSplitHorizontallyIcon as Y, printIcon as Z, selectAllIcon as _, filePdfIcon as $, clearCssIcon as S, imageIcon as E, codeIcon as ee, searchIcon as ne, unlinkIcon as ae, undoIcon as le, redoIcon as ie, foregroundColorIcon as te, dropletIcon as se, alignLeftIcon as oe, alignRightIcon as ce, alignCenterIcon as me, alignJustifyIcon as re, alignRemoveIcon as de, indentIcon as pe, outdentIcon as ge, listOrderedIcon as fe, listUnorderedIcon as ue } from "@progress/kendo-svg-icons";
13
13
  const l = { ...o.listsTypes };
14
14
  var s;
15
15
  ((n) => {
@@ -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,g){"use strict";const m=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={...m("style"),...m("class"),...m("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",x="editor.superscript",R="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",ge="editor.image-insert",me="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",xe="editor.alignCenter",Re="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",[x]:"Superscript",[we]:"Remove hyperlink",[be]:"Undo",[Ce]:"Redo",[ye]:"Font Size",[Se]:"Font Name",[Ie]:"Format",[Ne]:"Align text left",[Te]:"Align text right",[xe]:"Center text",[Re]:"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",[R]:"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",[ge]:"Insert",[me]:"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=x,ot=we,it=be,st=Ce,at=ye,lt=Se,rt=Ie,dt=Ne,ct=Te,pt=xe,ut=Re,ht=Ve,gt=Le,mt=Me,ft=De,vt=L,kt=M,wt=D,bt=E,Ct=A,yt=z,St=B,It=F,Nt=H,Tt=$,xt=O,Rt=j,Vt=W,Lt=K,Mt=U,Dt=_,Et=q,At=G,zt=R,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=ge,on=me,sn=fe,an=ve,ln=ke,rn=Ee,dn=Ae,cn=ze,pn=Be,un=Pe,hn=Fe,gn=He,mn=$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:xt},commandName:"AddRowAfter"},e.addColumnBefore={command:i.addColumnBefore,props:{icon:"table-column-insert-left",svgIcon:a.tableColumnInsertLeftIcon,...t},messages:{title:Rt},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:gn,findReplaceReplaceAll:mn,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:gt},commandName:"Outdent"},e.orderedList={listType:Nn.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...t},messages:{title:mt},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 xn=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:g,insertHyperlinkNewWindow:m,insertHyperlinkCancel:f,insertHyperlinkInsert:v}=s.messages,k=p.toLanguageString(m,Qe[m]),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(g,Qe[g])]),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:Rn,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||Rn)(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.4.0-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),g=u||h,m=r.provideLocalizationService(this),f=s.messages.title,v={...a,disabled:!g,title:m.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,g={...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,...g})},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),g=s.messages.title,m={...a,selected:!!l&&i.hasMark(l,u),togglable:!0,title:h.toLanguageString(g,Qe[g]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...m})},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 g=a||s.defaultItem;const m=r.provideLocalizationService(this);g&&g.localizationKey&&(g={...g},g.text=g.localizationKey?m.toLanguageString(g.localizationKey,Qe[g.localizationKey]):g.text);const f={...l,...s.props,value:u&&h.find(e=>e.value===u),dataItems:h,defaultItem:g,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,title:g.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 g=a||s.defaultItem;const m=r.provideLocalizationService(this);g&&g.localizationKey&&(g={...g},g.text=g.localizationKey?m.toLanguageString(g.localizationKey,Qe[g.localizationKey]):g.text);const f={...l,...s.props,value:h&&d.find(e=>e.value===h),dataItems:d,defaultItem:g,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"},title:g.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(xn,{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:g,insertImageTitle:m,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(g,Qe[g])]),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(m,Qe[m])]),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},g=[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,[g])},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)]),g=[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(g)?g:{default:()=>[g]})]})},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:go}=e.EditorToolsSettings,mo=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 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:m,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:x,useRegExp:R,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:x,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:R,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(g.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(m,Qe[m])])]),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 xo={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:mo,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}},Ro=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.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.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 g=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}})}},m=function(e,t){return e.map(function(e){return g.call(this,e,t)},this)},f=i.map(function(e,o){let i;return Array.isArray(e)?t.createVNode(n.ButtonGroup,{key:`btn-group-${e.join("-")}`,class:"k-toolbar-button-group"},To(i=m.call(this,e,o))?i:{default:()=>[i]}):g.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,ariaLabel:"Toolbar"},To(f)?f:{default:()=>[f]}),"iframe"===s?t.createVNode("div",{class:"k-editor-content",role:"textbox","aria-label":"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",role:"textbox","aria-label":"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(xn,{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}),g={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}},m={plugins:d,shortcuts:c,target:l,viewProps:g,dom:s};this.$emit("loaded",m);const f=this.$props.extendView&&this.$props.extendView(m)||new i.EditorView({mount:s},g);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=Ro,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=mo,e.ProseMirror=Lo,e.ProseMirrorTool=qn,e.SelectAll=eo,e.Unlink=Jn,e.ViewHtml=co});
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,g){"use strict";const m=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={...m("style"),...m("class"),...m("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",ge="editor.image-insert",me="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",[ge]:"Insert",[me]:"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,gt=Le,mt=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=ge,on=me,sn=fe,an=ve,ln=ke,rn=Ee,dn=Ae,cn=ze,pn=Be,un=Pe,hn=Fe,gn=He,mn=$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.superscriptIcon,...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:gn,findReplaceReplaceAll:mn,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:gt},commandName:"Outdent"},e.orderedList={listType:Nn.orderedList,props:{icon:"list-ordered",svgIcon:a.listOrderedIcon,...t},messages:{title:mt},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:g,insertHyperlinkNewWindow:m,insertHyperlinkCancel:f,insertHyperlinkInsert:v}=s.messages,k=p.toLanguageString(m,Qe[m]),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(g,Qe[g])]),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.4.0-develop.4",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),g=u||h,m=r.provideLocalizationService(this),f=s.messages.title,v={...a,disabled:!g,title:m.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,g={...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,...g})},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),g=s.messages.title,m={...a,selected:!!l&&i.hasMark(l,u),togglable:!0,title:h.toLanguageString(g,Qe[g]),...s.props};return t.h(n.Button,{onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,...m})},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 g=a||s.defaultItem;const m=r.provideLocalizationService(this);g&&g.localizationKey&&(g={...g},g.text=g.localizationKey?m.toLanguageString(g.localizationKey,Qe[g.localizationKey]):g.text);const f={...l,...s.props,value:u&&h.find(e=>e.value===u),dataItems:h,defaultItem:g,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,title:g.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 g=a||s.defaultItem;const m=r.provideLocalizationService(this);g&&g.localizationKey&&(g={...g},g.text=g.localizationKey?m.toLanguageString(g.localizationKey,Qe[g.localizationKey]):g.text);const f={...l,...s.props,value:h&&d.find(e=>e.value===h),dataItems:d,defaultItem:g,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"},title:g.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:g,insertImageTitle:m,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(g,Qe[g])]),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(m,Qe[m])]),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},g=[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,[g])},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)]),g=[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(g)?g:{default:()=>[g]})]})},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:go}=e.EditorToolsSettings,mo=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 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:m,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(g.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(m,Qe[m])])]),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:mo,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.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.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 g=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}})}},m=function(e,t){return e.map(function(e){return g.call(this,e,t)},this)},f=i.map(function(e,o){let i;return Array.isArray(e)?t.createVNode(n.ButtonGroup,{key:`group-${o}-${e.join("-")}`},To(i=m.call(this,e,o))?i:{default:()=>[i]}):g.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}),g={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}},m={plugins:d,shortcuts:c,target:l,viewProps:g,dom:s};this.$emit("loaded",m);const f=this.$props.extendView&&this.$props.extendView(m)||new i.EditorView({mount:s},g);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=mo,e.ProseMirror=Lo,e.ProseMirrorTool=qn,e.SelectAll=eo,e.Unlink=Jn,e.ViewHtml=co});
@@ -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: 1779097784,version:"8.4.0-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;
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: 1779123431,version:"8.4.0-develop.4",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: 1779097784,
14
- version: "8.4.0-develop.3",
13
+ publishDate: 1779123431,
14
+ version: "8.4.0-develop.4",
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.4.0-develop.3",
3
+ "version": "8.4.0-develop.4",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -25,17 +25,17 @@
25
25
  "sideEffects": false,
26
26
  "peerDependencies": {
27
27
  "@progress/kendo-licensing": "^1.7.2",
28
- "@progress/kendo-vue-buttons": "8.4.0-develop.3",
29
- "@progress/kendo-vue-common": "8.4.0-develop.3",
30
- "@progress/kendo-vue-dialogs": "8.4.0-develop.3",
31
- "@progress/kendo-vue-dropdowns": "8.4.0-develop.3",
32
- "@progress/kendo-vue-form": "8.4.0-develop.3",
33
- "@progress/kendo-vue-inputs": "8.4.0-develop.3",
34
- "@progress/kendo-vue-intl": "8.4.0-develop.3",
35
- "@progress/kendo-vue-layout": "8.4.0-develop.3",
36
- "@progress/kendo-vue-pdf": "8.4.0-develop.3",
37
- "@progress/kendo-vue-popup": "8.4.0-develop.3",
38
- "@progress/kendo-svg-icons": "^4.4.0",
28
+ "@progress/kendo-vue-buttons": "8.4.0-develop.4",
29
+ "@progress/kendo-vue-common": "8.4.0-develop.4",
30
+ "@progress/kendo-vue-dialogs": "8.4.0-develop.4",
31
+ "@progress/kendo-vue-dropdowns": "8.4.0-develop.4",
32
+ "@progress/kendo-vue-form": "8.4.0-develop.4",
33
+ "@progress/kendo-vue-inputs": "8.4.0-develop.4",
34
+ "@progress/kendo-vue-intl": "8.4.0-develop.4",
35
+ "@progress/kendo-vue-layout": "8.4.0-develop.4",
36
+ "@progress/kendo-vue-pdf": "8.4.0-develop.4",
37
+ "@progress/kendo-vue-popup": "8.4.0-develop.4",
38
+ "@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
39
39
  "vue": "^3.0.2"
40
40
  },
41
41
  "dependencies": {
@@ -57,7 +57,7 @@
57
57
  "package": {
58
58
  "productName": "Kendo UI for Vue",
59
59
  "productCode": "KENDOUIVUE",
60
- "publishDate": 1779097784,
60
+ "publishDate": 1779123431,
61
61
  "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"
62
62
  }
63
63
  },
@@ -67,5 +67,10 @@
67
67
  "repository": {
68
68
  "type": "git",
69
69
  "url": "git+https://github.com/telerik/kendo-vue.git"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "@progress/kendo-svg-icons": {
73
+ "optional": true
74
+ }
70
75
  }
71
76
  }