@syncfusion/ej2-vue-documenteditor 20.4.54 → 21.1.35

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/ej2-vue-documenteditor.umd.min.js +2 -2
  3. package/dist/ej2-vue-documenteditor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-documenteditor.es2015.js +240 -282
  5. package/dist/es6/ej2-vue-documenteditor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-documenteditor.es5.js +261 -313
  7. package/dist/es6/ej2-vue-documenteditor.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-documenteditor.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/document-editor/documenteditor.component.d.ts +3 -50
  11. package/src/document-editor/documenteditor.component.js +168 -197
  12. package/src/document-editor-container/documenteditorcontainer.component.d.ts +3 -26
  13. package/src/document-editor-container/documenteditorcontainer.component.js +96 -125
  14. package/styles/bootstrap-dark.css +64 -21
  15. package/styles/bootstrap.css +60 -17
  16. package/styles/bootstrap4.css +74 -28
  17. package/styles/bootstrap5-dark.css +84 -37
  18. package/styles/bootstrap5.css +84 -37
  19. package/styles/document-editor/bootstrap-dark.css +6 -2
  20. package/styles/document-editor/bootstrap.css +6 -2
  21. package/styles/document-editor/bootstrap4.css +8 -4
  22. package/styles/document-editor/bootstrap5-dark.css +25 -17
  23. package/styles/document-editor/bootstrap5.css +25 -17
  24. package/styles/document-editor/fabric-dark.css +6 -2
  25. package/styles/document-editor/fabric.css +6 -2
  26. package/styles/document-editor/fluent-dark.css +40 -27
  27. package/styles/document-editor/fluent.css +40 -27
  28. package/styles/document-editor/highcontrast-light.css +4 -0
  29. package/styles/document-editor/highcontrast.css +6 -2
  30. package/styles/document-editor/material-dark.css +6 -2
  31. package/styles/document-editor/material.css +6 -2
  32. package/styles/document-editor/tailwind-dark.css +22 -17
  33. package/styles/document-editor/tailwind.css +25 -17
  34. package/styles/document-editor-container/bootstrap-dark.css +58 -19
  35. package/styles/document-editor-container/bootstrap.css +54 -15
  36. package/styles/document-editor-container/bootstrap4.css +66 -24
  37. package/styles/document-editor-container/bootstrap5-dark.css +59 -20
  38. package/styles/document-editor-container/bootstrap5.css +59 -20
  39. package/styles/document-editor-container/fabric-dark.css +58 -19
  40. package/styles/document-editor-container/fabric.css +58 -19
  41. package/styles/document-editor-container/fluent-dark.css +63 -27
  42. package/styles/document-editor-container/fluent.css +63 -27
  43. package/styles/document-editor-container/highcontrast-light.css +58 -19
  44. package/styles/document-editor-container/highcontrast.css +58 -19
  45. package/styles/document-editor-container/material-dark.css +58 -19
  46. package/styles/document-editor-container/material.css +57 -18
  47. package/styles/document-editor-container/tailwind-dark.css +58 -19
  48. package/styles/document-editor-container/tailwind.css +58 -19
  49. package/styles/fabric-dark.css +64 -21
  50. package/styles/fabric.css +64 -21
  51. package/styles/fluent-dark.css +103 -54
  52. package/styles/fluent.css +103 -54
  53. package/styles/highcontrast-light.css +62 -19
  54. package/styles/highcontrast.css +64 -21
  55. package/styles/material-dark.css +64 -21
  56. package/styles/material.css +63 -20
  57. package/styles/tailwind-dark.css +80 -36
  58. package/styles/tailwind.css +83 -36
package/CHANGELOG.md CHANGED
@@ -4,6 +4,28 @@
4
4
 
5
5
  ### Document Editor
6
6
 
7
+ #### Breaking Changes
8
+
9
+ - Starting from version v21.1.x, the SFDT file generated in Word Processor component is optimized by default to reduce the file size. Hence, the optimized SFDT files can't be directly manipulated as JSON string. Please refer the [documentation](https://ej2.syncfusion.com/documentation/document-editor/how-to/optimize-sfdt).
10
+
11
+ - Starting from version v21.1.x, the SFDT file generated in Word Processor component is optimized by default to reduce the file size. Hence, the optimized SFDT files can't be directly manipulated as JSON string. Please refer the [documentation](https://ej2.syncfusion.com/vue/documentation/document-editor/how-to/optimize-sfdt).
12
+
13
+ #### Bug Fixes
14
+
15
+ - `#425697` - Resolved the positioning and line spacing issue in shape document
16
+
17
+ #### New Features
18
+
19
+ - `#I249004`, `#I250933`, `#I256703`, `#I286287`, `#I290760`, `#I301513`, `#I313194`, `#I314827`, `#I316496`, `#I317964`, `#I320201`, `#I320872`, `#I327636`, `#I331310`, `#I333899`, `#I334058`, `#I334929`, `#I337202`, `#I341931`, `#I341953`, `#I345929`, `#I348344`, `#I349206`, `#I349683`, `#I349895`, `#I354081`, `#I356432` - Added support for continuous section break in DocumentEditor.
20
+ - `#I422408`, `#I435125` - Optimized SFDT file to reduce the file size relative to a Docx file.
21
+ - `#I330729`, `#I256794` - Added support to display bookmark start and end in DocumentEditor.
22
+ - `#I333042`, `#I349829` - Added support disable the auto focus to DocumentEditor.
23
+ - `#I175038` - Added API to modify the predefine styles in DocumentEditor.
24
+
25
+ ## 20.4.54 (2023-03-14)
26
+
27
+ ### Document Editor
28
+
7
29
  #### Bug Fixes
8
30
 
9
31
  - `#I436974` - Combined the next paragraph while removing the paragraph mark.
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * filename: ej2-vue-documenteditor.umd.min.js
3
- * version : 20.4.54
3
+ * version : 21.1.35
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-documenteditor"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-documenteditor","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Documenteditor,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o){"use strict";var r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(e,t,n,o){var r,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},a=["isLazyUpdate","plugins","acceptTab","currentUser","defaultPasteOption","documentEditorSettings","documentName","documentSettings","enableBookmarkDialog","enableBordersAndShadingDialog","enableColumnsDialog","enableComment","enableContextMenu","enableCursorOnReadOnly","enableEditor","enableEditorHistory","enableFontDialog","enableFootnoteAndEndnoteDialog","enableFormField","enableHyperlinkDialog","enableImageResizer","enableListDialog","enableLocalPaste","enableLockAndEdit","enableOptionsPane","enablePageSetupDialog","enableParagraphDialog","enablePersistence","enablePrint","enableRtl","enableSearch","enableSelection","enableSfdtExport","enableSpellCheck","enableStyleDialog","enableTableDialog","enableTableOfContentsDialog","enableTableOptionsDialog","enableTablePropertiesDialog","enableTextExport","enableTrackChanges","enableWordExport","headers","height","isReadOnly","layoutType","locale","pageGap","pageOutline","serverActionSettings","serviceUrl","showComments","showRevisions","useCtrlClickToFollowHyperlink","userColor","width","zIndex","zoomFactor","actionComplete","afterFormFieldFill","beforeCommentAction","beforeFileOpen","beforeFormFieldFill","beforePaneSwitch","commentBegin","commentDelete","commentEnd","contentChange","contentControl","created","customContextMenuBeforeOpen","customContextMenuSelect","destroyed","documentChange","keyDown","requestNavigate","searchResultsChange","selectionChange","serviceFailure","trackChange","viewChange","zoomFactorChange","beforeXmlHttpRequestSend"],i=[],c=function(e){function c(){var n=e.call(this,arguments)||this;return n.propKeys=a,n.models=i,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.DocumentEditor({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n.updated=n.updated,n}return r(c,e),c.prototype.clearTemplate=function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var r=n[t],s=this.templateCollection[r];if(s&&s.length){for(var a=0,i=s;a<i.length;a++){var c=i[a];o.getValue("__vue__.$destroy",c)&&c.__vue__.$destroy(),c.innerHTML&&(c.innerHTML="")}delete this.templateCollection[r]}}},c.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},c.prototype.render=function(e){return e("div",this.$slots.default)},c.prototype.custom=function(){this.updated()},c.prototype.enableAllModules=function(){return this.ej2Instances.enableAllModules()},c.prototype.exportAsImage=function(e,t){return this.ej2Instances.exportAsImage(e,t)},c.prototype.exportFormData=function(){return this.ej2Instances.exportFormData()},c.prototype.fitPage=function(e){return this.ej2Instances.fitPage(e)},c.prototype.focusIn=function(){return this.ej2Instances.focusIn()},c.prototype.getBookmarks=function(){return this.ej2Instances.getBookmarks()},c.prototype.getFormFieldInfo=function(e){return this.ej2Instances.getFormFieldInfo(e)},c.prototype.getFormFieldNames=function(){return this.ej2Instances.getFormFieldNames()},c.prototype.getStyleNames=function(e){return this.ej2Instances.getStyleNames(e)},c.prototype.getStyles=function(e){return this.ej2Instances.getStyles(e)},c.prototype.importFormData=function(e){return this.ej2Instances.importFormData(e)},c.prototype.open=function(e){return this.ej2Instances.open(e)},c.prototype.openBlank=function(){return this.ej2Instances.openBlank()},c.prototype.print=function(e){return this.ej2Instances.print(e)},c.prototype.resetFormFields=function(e){return this.ej2Instances.resetFormFields(e)},c.prototype.resize=function(e,t){return this.ej2Instances.resize(e,t)},c.prototype.save=function(e,t){return this.ej2Instances.save(e,t)},c.prototype.saveAsBlob=function(e){return this.ej2Instances.saveAsBlob(e)},c.prototype.scrollToPage=function(e){return this.ej2Instances.scrollToPage(e)},c.prototype.serialize=function(){return this.ej2Instances.serialize()},c.prototype.setDefaultCharacterFormat=function(e){return this.ej2Instances.setDefaultCharacterFormat(e)},c.prototype.setDefaultParagraphFormat=function(e){return this.ej2Instances.setDefaultParagraphFormat(e)},c.prototype.setDefaultSectionFormat=function(e){return this.ej2Instances.setDefaultSectionFormat(e)},c.prototype.setFormFieldInfo=function(e,t){return this.ej2Instances.setFormFieldInfo(e,t)},c.prototype.showDialog=function(e){return this.ej2Instances.showDialog(e)},c.prototype.showOptionsPane=function(){return this.ej2Instances.showOptionsPane()},c.prototype.showRestrictEditingPane=function(e){return this.ej2Instances.showRestrictEditingPane(e)},c.prototype.updateFields=function(){return this.ej2Instances.updateFields()},c=s([n.EJComponentDecorator({props:a})],c)}(n.ComponentBase),l={name:"ejs-documenteditor",install:function(e){e.component(l.name,c)}},p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),u=function(e,t,n,o){var r,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},f=["isLazyUpdate","plugins","currentUser","documentEditorSettings","documentSettings","enableComment","enableCsp","enableLocalPaste","enableLockAndEdit","enablePersistence","enableRtl","enableSpellCheck","enableToolbar","enableTrackChanges","headers","height","layoutType","locale","restrictEditing","serverActionSettings","serviceUrl","showPropertiesPane","toolbarItems","userColor","width","zIndex","beforeCommentAction","beforePaneSwitch","commentDelete","contentChange","contentControl","created","customContextMenuBeforeOpen","customContextMenuSelect","destroyed","documentChange","selectionChange","serviceFailure","toolbarClick","trackChange","beforeXmlHttpRequestSend"],d=[],m=function(e){function r(){var n=e.call(this,arguments)||this;return n.propKeys=f,n.models=d,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.DocumentEditorContainer({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n.updated=n.updated,n}return p(r,e),r.prototype.clearTemplate=function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var r=n[t],s=this.templateCollection[r];if(s&&s.length){for(var a=0,i=s;a<i.length;a++){var c=i[a];o.getValue("__vue__.$destroy",c)&&c.__vue__.$destroy(),c.innerHTML&&(c.innerHTML="")}delete this.templateCollection[r]}}},r.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},r.prototype.render=function(e){return e("div",this.$slots.default)},r.prototype.custom=function(){this.updated()},r.prototype.resize=function(e,t){return this.ej2Instances.resize(e,t)},r.prototype.setDefaultCharacterFormat=function(e){return this.ej2Instances.setDefaultCharacterFormat(e)},r.prototype.setDefaultParagraphFormat=function(e){return this.ej2Instances.setDefaultParagraphFormat(e)},r.prototype.setDefaultSectionFormat=function(e){return this.ej2Instances.setDefaultSectionFormat(e)},r=u([n.EJComponentDecorator({props:f})],r)}(n.ComponentBase),h={name:"ejs-documenteditorcontainer",install:function(e){e.component(h.name,m)}};e.DocumentEditorComponent=c,e.DocumentEditorPlugin=l,e.DocumentEditorContainerComponent=m,e.DocumentEditorContainerPlugin=h,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
10
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-documenteditor"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-documenteditor","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Documenteditor,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,s){"use strict";var o=["isLazyUpdate","plugins","acceptTab","currentUser","defaultPasteOption","documentEditorSettings","documentName","documentSettings","enableAutoFocus","enableBookmarkDialog","enableBordersAndShadingDialog","enableColumnsDialog","enableComment","enableContextMenu","enableCursorOnReadOnly","enableEditor","enableEditorHistory","enableFontDialog","enableFootnoteAndEndnoteDialog","enableFormField","enableHyperlinkDialog","enableImageResizer","enableListDialog","enableLocalPaste","enableLockAndEdit","enableOptionsPane","enablePageSetupDialog","enableParagraphDialog","enablePersistence","enablePrint","enableRtl","enableSearch","enableSelection","enableSfdtExport","enableSpellCheck","enableStyleDialog","enableTableDialog","enableTableOfContentsDialog","enableTableOptionsDialog","enableTablePropertiesDialog","enableTextExport","enableTrackChanges","enableWordExport","headers","height","isReadOnly","layoutType","locale","pageGap","pageOutline","serverActionSettings","serviceUrl","showComments","showRevisions","useCtrlClickToFollowHyperlink","userColor","width","zIndex","zoomFactor","actionComplete","afterFormFieldFill","beforeCommentAction","beforeFileOpen","beforeFormFieldFill","beforePaneSwitch","commentBegin","commentDelete","commentEnd","contentChange","contentControl","created","customContextMenuBeforeOpen","customContextMenuSelect","destroyed","documentChange","keyDown","requestNavigate","searchResultsChange","selectionChange","serviceFailure","trackChange","viewChange","zoomFactorChange","beforeXmlHttpRequestSend"],a=[],i=n.getProps({props:o}),r=i[0],l=i[1],c=Object.keys(l);c.push("modelchanged","update:modelValue");for(var u=0,d=a;u<d.length;u++){var h=d[u];c.push("update:"+h)}var m=n.vueDefineComponent({name:"DocumentEditorComponent",mixins:[n.ComponentBase],props:r,watch:l,emits:c,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.DocumentEditor({}),propKeys:o,models:a,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!n.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=n.isExecute?e:n.gh,o=null;return s.isNullOrUndefined(this.$slots.default)||(o=n.isExecute?this.$slots.default:this.$slots.default()),t("div",o)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var o=n[t],a=this.templateCollection[o];if(a&&a.length){for(var i=0,r=a;i<r.length;i++){var l=r[i];s.getValue("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[o]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},enableAllModules:function(){return this.ej2Instances.enableAllModules()},exportAsImage:function(e,t){return this.ej2Instances.exportAsImage(e,t)},exportFormData:function(){return this.ej2Instances.exportFormData()},fitPage:function(e){return this.ej2Instances.fitPage(e)},focusIn:function(){return this.ej2Instances.focusIn()},getBookmarks:function(){return this.ej2Instances.getBookmarks()},getFormFieldInfo:function(e){return this.ej2Instances.getFormFieldInfo(e)},getFormFieldNames:function(){return this.ej2Instances.getFormFieldNames()},getStyleNames:function(e){return this.ej2Instances.getStyleNames(e)},getStyles:function(e){return this.ej2Instances.getStyles(e)},importFormData:function(e){return this.ej2Instances.importFormData(e)},open:function(e){return this.ej2Instances.open(e)},openBlank:function(){return this.ej2Instances.openBlank()},print:function(e){return this.ej2Instances.print(e)},resetFormFields:function(e){return this.ej2Instances.resetFormFields(e)},resize:function(e,t){return this.ej2Instances.resize(e,t)},save:function(e,t){return this.ej2Instances.save(e,t)},saveAsBlob:function(e){return this.ej2Instances.saveAsBlob(e)},scrollToPage:function(e){return this.ej2Instances.scrollToPage(e)},serialize:function(){return this.ej2Instances.serialize()},setDefaultCharacterFormat:function(e){return this.ej2Instances.setDefaultCharacterFormat(e)},setDefaultParagraphFormat:function(e){return this.ej2Instances.setDefaultParagraphFormat(e)},setDefaultSectionFormat:function(e){return this.ej2Instances.setDefaultSectionFormat(e)},setFormFieldInfo:function(e,t){return this.ej2Instances.setFormFieldInfo(e,t)},showDialog:function(e){return this.ej2Instances.showDialog(e)},showOptionsPane:function(){return this.ej2Instances.showOptionsPane()},showRestrictEditingPane:function(e){return this.ej2Instances.showRestrictEditingPane(e)},updateFields:function(){return this.ej2Instances.updateFields()}}}),p={name:"ejs-documenteditor",install:function(e){e.component(p.name,m)}},f=["isLazyUpdate","plugins","currentUser","documentEditorSettings","documentSettings","enableAutoFocus","enableComment","enableCsp","enableLocalPaste","enableLockAndEdit","enablePersistence","enableRtl","enableSpellCheck","enableToolbar","enableTrackChanges","headers","height","layoutType","locale","restrictEditing","serverActionSettings","serviceUrl","showPropertiesPane","toolbarItems","userColor","width","zIndex","beforeCommentAction","beforePaneSwitch","commentDelete","contentChange","contentControl","created","customContextMenuBeforeOpen","customContextMenuSelect","destroyed","documentChange","selectionChange","serviceFailure","toolbarClick","trackChange","beforeXmlHttpRequestSend"],g=[],b=n.getProps({props:f}),j=b[0],I=b[1],C=Object.keys(I);C.push("modelchanged","update:modelValue");for(var F=0,v=g;F<v.length;F++){var D=v[F];C.push("update:"+D)}var P=n.vueDefineComponent({name:"DocumentEditorContainerComponent",mixins:[n.ComponentBase],props:j,watch:I,emits:C,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.DocumentEditorContainer({}),propKeys:f,models:g,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!n.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=n.isExecute?e:n.gh,o=null;return s.isNullOrUndefined(this.$slots.default)||(o=n.isExecute?this.$slots.default:this.$slots.default()),t("div",o)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var o=n[t],a=this.templateCollection[o];if(a&&a.length){for(var i=0,r=a;i<r.length;i++){var l=r[i];s.getValue("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[o]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},resize:function(e,t){return this.ej2Instances.resize(e,t)},setDefaultCharacterFormat:function(e){return this.ej2Instances.setDefaultCharacterFormat(e)},setDefaultParagraphFormat:function(e){return this.ej2Instances.setDefaultParagraphFormat(e)},setDefaultSectionFormat:function(e){return this.ej2Instances.setDefaultSectionFormat(e)}}}),y={name:"ejs-documenteditorcontainer",install:function(e){e.component(y.name,P)}};e.DocumentEditorComponent=m,e.DocumentEditorPlugin=p,e.DocumentEditorContainerComponent=P,e.DocumentEditorContainerPlugin=y,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
11
11
  //# sourceMappingURL=ej2-vue-documenteditor.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-vue-documenteditor.umd.min.js","sources":["../vue2/src/document-editor/documenteditor.component.js","../vue2/src/document-editor-container/documenteditorcontainer.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { DocumentEditor } from '@syncfusion/ej2-documenteditor';\nexport var properties = ['isLazyUpdate', 'plugins', 'acceptTab', 'currentUser', 'defaultPasteOption', 'documentEditorSettings', 'documentName', 'documentSettings', 'enableBookmarkDialog', 'enableBordersAndShadingDialog', 'enableColumnsDialog', 'enableComment', 'enableContextMenu', 'enableCursorOnReadOnly', 'enableEditor', 'enableEditorHistory', 'enableFontDialog', 'enableFootnoteAndEndnoteDialog', 'enableFormField', 'enableHyperlinkDialog', 'enableImageResizer', 'enableListDialog', 'enableLocalPaste', 'enableLockAndEdit', 'enableOptionsPane', 'enablePageSetupDialog', 'enableParagraphDialog', 'enablePersistence', 'enablePrint', 'enableRtl', 'enableSearch', 'enableSelection', 'enableSfdtExport', 'enableSpellCheck', 'enableStyleDialog', 'enableTableDialog', 'enableTableOfContentsDialog', 'enableTableOptionsDialog', 'enableTablePropertiesDialog', 'enableTextExport', 'enableTrackChanges', 'enableWordExport', 'headers', 'height', 'isReadOnly', 'layoutType', 'locale', 'pageGap', 'pageOutline', 'serverActionSettings', 'serviceUrl', 'showComments', 'showRevisions', 'useCtrlClickToFollowHyperlink', 'userColor', 'width', 'zIndex', 'zoomFactor', 'actionComplete', 'afterFormFieldFill', 'beforeCommentAction', 'beforeFileOpen', 'beforeFormFieldFill', 'beforePaneSwitch', 'commentBegin', 'commentDelete', 'commentEnd', 'contentChange', 'contentControl', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'destroyed', 'documentChange', 'keyDown', 'requestNavigate', 'searchResultsChange', 'selectionChange', 'serviceFailure', 'trackChange', 'viewChange', 'zoomFactorChange', 'beforeXmlHttpRequestSend'];\nexport var modelProps = [];\n/**\n * Represents the Essential JS 2 VueJS Document Editor Component\n * ```html\n * <ejs-documenteditor id='container'></ejs-documenteditor>\n * ```\n */\nvar DocumentEditorComponent = /** @class */ (function (_super) {\n __extends(DocumentEditorComponent, _super);\n function DocumentEditorComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.ej2Instances = new DocumentEditor({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n DocumentEditorComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n DocumentEditorComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n DocumentEditorComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n DocumentEditorComponent.prototype.custom = function () {\n this.updated();\n };\n DocumentEditorComponent.prototype.enableAllModules = function () {\n return this.ej2Instances.enableAllModules();\n };\n DocumentEditorComponent.prototype.exportAsImage = function (pageNumber, format) {\n return this.ej2Instances.exportAsImage(pageNumber, format);\n };\n DocumentEditorComponent.prototype.exportFormData = function () {\n return this.ej2Instances.exportFormData();\n };\n DocumentEditorComponent.prototype.fitPage = function (pageFitType) {\n return this.ej2Instances.fitPage(pageFitType);\n };\n DocumentEditorComponent.prototype.focusIn = function () {\n return this.ej2Instances.focusIn();\n };\n DocumentEditorComponent.prototype.getBookmarks = function () {\n return this.ej2Instances.getBookmarks();\n };\n DocumentEditorComponent.prototype.getFormFieldInfo = function (name) {\n return this.ej2Instances.getFormFieldInfo(name);\n };\n DocumentEditorComponent.prototype.getFormFieldNames = function () {\n return this.ej2Instances.getFormFieldNames();\n };\n DocumentEditorComponent.prototype.getStyleNames = function (styleType) {\n return this.ej2Instances.getStyleNames(styleType);\n };\n DocumentEditorComponent.prototype.getStyles = function (styleType) {\n return this.ej2Instances.getStyles(styleType);\n };\n DocumentEditorComponent.prototype.importFormData = function (formData) {\n return this.ej2Instances.importFormData(formData);\n };\n DocumentEditorComponent.prototype.open = function (sfdtText) {\n return this.ej2Instances.open(sfdtText);\n };\n DocumentEditorComponent.prototype.openBlank = function () {\n return this.ej2Instances.openBlank();\n };\n DocumentEditorComponent.prototype.print = function (printWindow) {\n return this.ej2Instances.print(printWindow);\n };\n DocumentEditorComponent.prototype.resetFormFields = function (name) {\n return this.ej2Instances.resetFormFields(name);\n };\n DocumentEditorComponent.prototype.resize = function (width, height) {\n return this.ej2Instances.resize(width, height);\n };\n DocumentEditorComponent.prototype.save = function (fileName, formatType) {\n return this.ej2Instances.save(fileName, formatType);\n };\n DocumentEditorComponent.prototype.saveAsBlob = function (formatType) {\n return this.ej2Instances.saveAsBlob(formatType);\n };\n DocumentEditorComponent.prototype.scrollToPage = function (pageNumber) {\n return this.ej2Instances.scrollToPage(pageNumber);\n };\n DocumentEditorComponent.prototype.serialize = function () {\n return this.ej2Instances.serialize();\n };\n DocumentEditorComponent.prototype.setDefaultCharacterFormat = function (characterFormat) {\n return this.ej2Instances.setDefaultCharacterFormat(characterFormat);\n };\n DocumentEditorComponent.prototype.setDefaultParagraphFormat = function (paragraphFormat) {\n return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);\n };\n DocumentEditorComponent.prototype.setDefaultSectionFormat = function (sectionFormat) {\n return this.ej2Instances.setDefaultSectionFormat(sectionFormat);\n };\n DocumentEditorComponent.prototype.setFormFieldInfo = function (name, formFieldInfo) {\n return this.ej2Instances.setFormFieldInfo(name, formFieldInfo);\n };\n DocumentEditorComponent.prototype.showDialog = function (dialogType) {\n return this.ej2Instances.showDialog(dialogType);\n };\n DocumentEditorComponent.prototype.showOptionsPane = function () {\n return this.ej2Instances.showOptionsPane();\n };\n DocumentEditorComponent.prototype.showRestrictEditingPane = function (show) {\n return this.ej2Instances.showRestrictEditingPane(show);\n };\n DocumentEditorComponent.prototype.updateFields = function () {\n return this.ej2Instances.updateFields();\n };\n DocumentEditorComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], DocumentEditorComponent);\n return DocumentEditorComponent;\n}(ComponentBase));\nexport { DocumentEditorComponent };\nexport var DocumentEditorPlugin = {\n name: 'ejs-documenteditor',\n install: function (Vue) {\n Vue.component(DocumentEditorPlugin.name, DocumentEditorComponent);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { DocumentEditorContainer } from '@syncfusion/ej2-documenteditor';\nexport var properties = ['isLazyUpdate', 'plugins', 'currentUser', 'documentEditorSettings', 'documentSettings', 'enableComment', 'enableCsp', 'enableLocalPaste', 'enableLockAndEdit', 'enablePersistence', 'enableRtl', 'enableSpellCheck', 'enableToolbar', 'enableTrackChanges', 'headers', 'height', 'layoutType', 'locale', 'restrictEditing', 'serverActionSettings', 'serviceUrl', 'showPropertiesPane', 'toolbarItems', 'userColor', 'width', 'zIndex', 'beforeCommentAction', 'beforePaneSwitch', 'commentDelete', 'contentChange', 'contentControl', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'destroyed', 'documentChange', 'selectionChange', 'serviceFailure', 'toolbarClick', 'trackChange', 'beforeXmlHttpRequestSend'];\nexport var modelProps = [];\n/**\n * Represents the Essential JS 2 VueJS Document Editor Container\n * ```html\n * <ejs-documenteditor-container id='container'></ejs-documenteditor-container>\n * ```\n */\nvar DocumentEditorContainerComponent = /** @class */ (function (_super) {\n __extends(DocumentEditorContainerComponent, _super);\n function DocumentEditorContainerComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.ej2Instances = new DocumentEditorContainer({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n DocumentEditorContainerComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n DocumentEditorContainerComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n DocumentEditorContainerComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n DocumentEditorContainerComponent.prototype.custom = function () {\n this.updated();\n };\n DocumentEditorContainerComponent.prototype.resize = function (width, height) {\n return this.ej2Instances.resize(width, height);\n };\n DocumentEditorContainerComponent.prototype.setDefaultCharacterFormat = function (characterFormat) {\n return this.ej2Instances.setDefaultCharacterFormat(characterFormat);\n };\n DocumentEditorContainerComponent.prototype.setDefaultParagraphFormat = function (paragraphFormat) {\n return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);\n };\n DocumentEditorContainerComponent.prototype.setDefaultSectionFormat = function (sectionFormat) {\n return this.ej2Instances.setDefaultSectionFormat(sectionFormat);\n };\n DocumentEditorContainerComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], DocumentEditorContainerComponent);\n return DocumentEditorContainerComponent;\n}(ComponentBase));\nexport { DocumentEditorContainerComponent };\nexport var DocumentEditorContainerPlugin = {\n name: 'ejs-documenteditorcontainer',\n install: function (Vue) {\n Vue.component(DocumentEditorContainerPlugin.name, DocumentEditorContainerComponent);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","properties","modelProps","DocumentEditorComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","ej2Instances","DocumentEditor","bindProperties","_setProperties","setProperties","clearTemplate","updated","templateNames","keys","templateCollection","_i","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","map","model","test","$emit","render","createElement","$slots","default","custom","enableAllModules","exportAsImage","pageNumber","format","exportFormData","fitPage","pageFitType","focusIn","getBookmarks","getFormFieldInfo","name","getFormFieldNames","getStyleNames","styleType","getStyles","importFormData","formData","open","sfdtText","openBlank","print","printWindow","resetFormFields","resize","width","height","save","fileName","formatType","saveAsBlob","scrollToPage","serialize","setDefaultCharacterFormat","characterFormat","setDefaultParagraphFormat","paragraphFormat","setDefaultSectionFormat","sectionFormat","setFormFieldInfo","formFieldInfo","showDialog","dialogType","showOptionsPane","showRestrictEditingPane","show","updateFields","EJComponentDecorator","props","ComponentBase","DocumentEditorPlugin","install","Vue","component","DocumentEditorContainerComponent","DocumentEditorContainer","DocumentEditorContainerPlugin"],"mappings":"uaAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOoB,yBAAyBP,EAAQC,GAA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AC5Be,EAAMG,OAAO4B,IAAI,SAAUC,GAClB/C,IAAQ+C,GAAY,cAAcC,KAAKhD,IACxCe,EAAMkC,MAAM,UAAYjD,EAAK4C,EAAK5C,SAMtD4G,EAAiCjH,UAAUuD,OAAS,SAAUC,GAC1D,OAAOA,EAAc,MAAO1D,KAAK2D,OAAOC,UAE5CuD,EAAiCjH,UAAU2D,OAAS,WAChD7D,KAAKoC,WAET+E,EAAiCjH,UAAUmF,OAAS,SAAUC,EAAOC,GACjE,OAAOvF,KAAK8B,aAAauD,OAAOC,EAAOC,IAE3C4B,EAAiCjH,UAAU4F,0BAA4B,SAAUC,GAC7E,OAAO/F,KAAK8B,aAAagE,0BAA0BC,IAEvDoB,EAAiCjH,UAAU8F,0BAA4B,SAAUC,GAC7E,OAAOjG,KAAK8B,aAAakE,0BAA0BC,IAEvDkB,EAAiCjH,UAAUgG,wBAA0B,SAAUC,GAC3E,OAAOnG,KAAK8B,aAAaoE,wBAAwBC,IAErDgB,EAAmC/G,GAC/BwG,wBACIC,MAAO3F,KAEZiG,IAELL,iBAESO,GACP7C,KAAM,8BACNwC,QAAS,SAAUC,GACfA,EAAIC,UAAUG,EAA8B7C,KAAM2C"}
1
+ {"version":3,"file":"ej2-vue-documenteditor.umd.min.js","sources":["../src/document-editor/documenteditor.component.js","../src/document-editor-container/documenteditorcontainer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { DocumentEditor } from '@syncfusion/ej2-documenteditor';\nexport var properties = ['isLazyUpdate', 'plugins', 'acceptTab', 'currentUser', 'defaultPasteOption', 'documentEditorSettings', 'documentName', 'documentSettings', 'enableAutoFocus', 'enableBookmarkDialog', 'enableBordersAndShadingDialog', 'enableColumnsDialog', 'enableComment', 'enableContextMenu', 'enableCursorOnReadOnly', 'enableEditor', 'enableEditorHistory', 'enableFontDialog', 'enableFootnoteAndEndnoteDialog', 'enableFormField', 'enableHyperlinkDialog', 'enableImageResizer', 'enableListDialog', 'enableLocalPaste', 'enableLockAndEdit', 'enableOptionsPane', 'enablePageSetupDialog', 'enableParagraphDialog', 'enablePersistence', 'enablePrint', 'enableRtl', 'enableSearch', 'enableSelection', 'enableSfdtExport', 'enableSpellCheck', 'enableStyleDialog', 'enableTableDialog', 'enableTableOfContentsDialog', 'enableTableOptionsDialog', 'enableTablePropertiesDialog', 'enableTextExport', 'enableTrackChanges', 'enableWordExport', 'headers', 'height', 'isReadOnly', 'layoutType', 'locale', 'pageGap', 'pageOutline', 'serverActionSettings', 'serviceUrl', 'showComments', 'showRevisions', 'useCtrlClickToFollowHyperlink', 'userColor', 'width', 'zIndex', 'zoomFactor', 'actionComplete', 'afterFormFieldFill', 'beforeCommentAction', 'beforeFileOpen', 'beforeFormFieldFill', 'beforePaneSwitch', 'commentBegin', 'commentDelete', 'commentEnd', 'contentChange', 'contentControl', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'destroyed', 'documentChange', 'keyDown', 'requestNavigate', 'searchResultsChange', 'selectionChange', 'serviceFailure', 'trackChange', 'viewChange', 'zoomFactorChange', 'beforeXmlHttpRequestSend'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Essential JS 2 VueJS Document Editor Component\n * ```html\n * <ejs-documenteditor id='container'></ejs-documenteditor>\n * ```\n */\nexport var DocumentEditorComponent = vueDefineComponent({\n name: 'DocumentEditorComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new DocumentEditor({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: true,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n enableAllModules: function () {\n return this.ej2Instances.enableAllModules();\n },\n exportAsImage: function (pageNumber, format) {\n return this.ej2Instances.exportAsImage(pageNumber, format);\n },\n exportFormData: function () {\n return this.ej2Instances.exportFormData();\n },\n fitPage: function (pageFitType) {\n return this.ej2Instances.fitPage(pageFitType);\n },\n focusIn: function () {\n return this.ej2Instances.focusIn();\n },\n getBookmarks: function () {\n return this.ej2Instances.getBookmarks();\n },\n getFormFieldInfo: function (name) {\n return this.ej2Instances.getFormFieldInfo(name);\n },\n getFormFieldNames: function () {\n return this.ej2Instances.getFormFieldNames();\n },\n getStyleNames: function (styleType) {\n return this.ej2Instances.getStyleNames(styleType);\n },\n getStyles: function (styleType) {\n return this.ej2Instances.getStyles(styleType);\n },\n importFormData: function (formData) {\n return this.ej2Instances.importFormData(formData);\n },\n open: function (sfdtText) {\n return this.ej2Instances.open(sfdtText);\n },\n openBlank: function () {\n return this.ej2Instances.openBlank();\n },\n print: function (printWindow) {\n return this.ej2Instances.print(printWindow);\n },\n resetFormFields: function (name) {\n return this.ej2Instances.resetFormFields(name);\n },\n resize: function (width, height) {\n return this.ej2Instances.resize(width, height);\n },\n save: function (fileName, formatType) {\n return this.ej2Instances.save(fileName, formatType);\n },\n saveAsBlob: function (formatType) {\n return this.ej2Instances.saveAsBlob(formatType);\n },\n scrollToPage: function (pageNumber) {\n return this.ej2Instances.scrollToPage(pageNumber);\n },\n serialize: function () {\n return this.ej2Instances.serialize();\n },\n setDefaultCharacterFormat: function (characterFormat) {\n return this.ej2Instances.setDefaultCharacterFormat(characterFormat);\n },\n setDefaultParagraphFormat: function (paragraphFormat) {\n return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);\n },\n setDefaultSectionFormat: function (sectionFormat) {\n return this.ej2Instances.setDefaultSectionFormat(sectionFormat);\n },\n setFormFieldInfo: function (name, formFieldInfo) {\n return this.ej2Instances.setFormFieldInfo(name, formFieldInfo);\n },\n showDialog: function (dialogType) {\n return this.ej2Instances.showDialog(dialogType);\n },\n showOptionsPane: function () {\n return this.ej2Instances.showOptionsPane();\n },\n showRestrictEditingPane: function (show) {\n return this.ej2Instances.showRestrictEditingPane(show);\n },\n updateFields: function () {\n return this.ej2Instances.updateFields();\n },\n }\n});\nexport var DocumentEditorPlugin = {\n name: 'ejs-documenteditor',\n install: function (Vue) {\n Vue.component(DocumentEditorPlugin.name, DocumentEditorComponent);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { DocumentEditorContainer } from '@syncfusion/ej2-documenteditor';\nexport var properties = ['isLazyUpdate', 'plugins', 'currentUser', 'documentEditorSettings', 'documentSettings', 'enableAutoFocus', 'enableComment', 'enableCsp', 'enableLocalPaste', 'enableLockAndEdit', 'enablePersistence', 'enableRtl', 'enableSpellCheck', 'enableToolbar', 'enableTrackChanges', 'headers', 'height', 'layoutType', 'locale', 'restrictEditing', 'serverActionSettings', 'serviceUrl', 'showPropertiesPane', 'toolbarItems', 'userColor', 'width', 'zIndex', 'beforeCommentAction', 'beforePaneSwitch', 'commentDelete', 'contentChange', 'contentControl', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'destroyed', 'documentChange', 'selectionChange', 'serviceFailure', 'toolbarClick', 'trackChange', 'beforeXmlHttpRequestSend'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the Essential JS 2 VueJS Document Editor Container\n * ```html\n * <ejs-documenteditor-container id='container'></ejs-documenteditor-container>\n * ```\n */\nexport var DocumentEditorContainerComponent = vueDefineComponent({\n name: 'DocumentEditorContainerComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new DocumentEditorContainer({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: true,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n resize: function (width, height) {\n return this.ej2Instances.resize(width, height);\n },\n setDefaultCharacterFormat: function (characterFormat) {\n return this.ej2Instances.setDefaultCharacterFormat(characterFormat);\n },\n setDefaultParagraphFormat: function (paragraphFormat) {\n return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);\n },\n setDefaultSectionFormat: function (sectionFormat) {\n return this.ej2Instances.setDefaultSectionFormat(sectionFormat);\n },\n }\n});\nexport var DocumentEditorContainerPlugin = {\n name: 'ejs-documenteditorcontainer',\n install: function (Vue) {\n Vue.component(DocumentEditorContainerPlugin.name, DocumentEditorContainerComponent);\n }\n};\n"],"names":["properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","DocumentEditorComponent","vueDefineComponent","name","mixins","ComponentBase","emits","provide","custom","this","data","ej2Instances","DocumentEditor","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","isVue3","isExecute","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","updated","render","createElement","h","gh","slots","isNullOrUndefined","$slots","default","methods","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","enableAllModules","exportAsImage","pageNumber","format","exportFormData","fitPage","pageFitType","focusIn","getBookmarks","getFormFieldInfo","getFormFieldNames","getStyleNames","styleType","getStyles","importFormData","formData","open","sfdtText","openBlank","print","printWindow","resetFormFields","resize","width","height","save","fileName","formatType","saveAsBlob","scrollToPage","serialize","setDefaultCharacterFormat","characterFormat","setDefaultParagraphFormat","paragraphFormat","setDefaultSectionFormat","sectionFormat","setFormFieldInfo","formFieldInfo","showDialog","dialogType","showOptionsPane","showRestrictEditingPane","show","updateFields","DocumentEditorPlugin","install","Vue","component","DocumentEditorContainerComponent","DocumentEditorContainer","DocumentEditorContainerPlugin"],"mappings":"uaAGO,IAAIA,GAAc,eAAgB,UAAW,YAAa,cAAe,qBAA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