@syncfusion/ej2-vue-documenteditor 20.4.54 → 21.1.37

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 +46 -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 +11 -10
  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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-documenteditor@*",
3
- "_id": "@syncfusion/ej2-vue-documenteditor@20.4.53",
3
+ "_id": "@syncfusion/ej2-vue-documenteditor@19.61.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-FIh7dOeFEtsFUaZ/xAcNwd08wTW5CKHtBf/ewXt1hspCPjwk4ax+2Pq84kCn5EvfMwlG+bLUeONFnpCz8ndA7A==",
5
+ "_integrity": "sha512-t4dndb0M1C+0TAhidQvwNXYylqU2/wC3QsM9ZUeSGTzyiTvuMyt4pvXKOJPFxdvQiuSz1+1k25P6ac235C/kkA==",
6
6
  "_location": "/@syncfusion/ej2-vue-documenteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,10 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-documenteditor/-/ej2-vue-documenteditor-20.4.53.tgz",
23
- "_shasum": "f29a754fd1111d56196eaa82ae881ee9879a57f0",
22
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-documenteditor/-/ej2-vue-documenteditor-19.61.0.tgz",
23
+ "_shasum": "4355bbf7477c7f1ccbc758bad30d2d196b4bef6d",
24
24
  "_spec": "@syncfusion/ej2-vue-documenteditor@*",
25
- "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
25
+ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
26
26
  "author": {
27
27
  "name": "Syncfusion Inc."
28
28
  },
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~20.4.51",
35
- "@syncfusion/ej2-documenteditor": "20.4.54",
36
- "@syncfusion/ej2-vue-base": "~20.4.51"
34
+ "@syncfusion/ej2-base": "~21.1.37",
35
+ "@syncfusion/ej2-documenteditor": "21.1.37",
36
+ "@syncfusion/ej2-vue-base": "~21.1.37"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Feature-rich document editor control with built-in support for context menu, options pane and dialogs. for Vue",
@@ -54,8 +54,9 @@
54
54
  "url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
55
55
  },
56
56
  "scripts": {
57
- "postinstall": "node ../ej2-vue-base/postinstall.js"
57
+ "ci-publish": "gulp ci-publish",
58
+ "compile": "gulp ci-compile && gulp vue-global-script"
58
59
  },
59
- "version": "20.4.54",
60
+ "version": "21.1.37",
60
61
  "sideEffects": false
61
62
  }
@@ -1,62 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * Represents the Essential JS 2 VueJS Document Editor Component
10
7
  * ```html
11
8
  * <ejs-documenteditor id='container'></ejs-documenteditor>
12
9
  * ```
13
10
  */
14
- export declare class DocumentEditorComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- enableAllModules(): void;
32
- exportAsImage(pageNumber: number, format: Object): Object;
33
- exportFormData(): Object[];
34
- fitPage(pageFitType?: Object): void;
35
- focusIn(): void;
36
- getBookmarks(): string[];
37
- getFormFieldInfo(name: string): Object | Object | Object;
38
- getFormFieldNames(): string[];
39
- getStyleNames(styleType?: Object): string[];
40
- getStyles(styleType?: Object): Object[];
41
- importFormData(formData: Object[]): void;
42
- open(sfdtText: string): void;
43
- openBlank(): void;
44
- print(printWindow?: Object): void;
45
- resetFormFields(name?: string): void;
46
- resize(width?: number, height?: number): void;
47
- save(fileName: string, formatType?: Object): void;
48
- saveAsBlob(formatType?: Object): Object;
49
- scrollToPage(pageNumber: number): boolean;
50
- serialize(): string;
51
- setDefaultCharacterFormat(characterFormat: Object): void;
52
- setDefaultParagraphFormat(paragraphFormat: Object): void;
53
- setDefaultSectionFormat(sectionFormat: Object): void;
54
- setFormFieldInfo(name: string, formFieldInfo: Object | Object | Object): void;
55
- showDialog(dialogType: Object): void;
56
- showOptionsPane(): void;
57
- showRestrictEditingPane(show?: boolean): void;
58
- updateFields(): void;
59
- }
11
+ export declare let DocumentEditorComponent: any;
12
+ export declare type DocumentEditorComponent = InstanceType<typeof DocumentEditorComponent>;
60
13
  export declare const DocumentEditorPlugin: {
61
14
  name: string;
62
15
  install(Vue: any): void;
@@ -1,32 +1,10 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
21
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
3
  import { DocumentEditor } from '@syncfusion/ej2-documenteditor';
23
- import { Options } from 'vue-class-component';
24
- export 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'];
4
+ export 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'];
25
5
  export var modelProps = [];
26
6
  export var testProp = getProps({ props: properties });
27
- export var props = testProp[0];
28
- export var watch = testProp[1];
29
- export var emitProbs = Object.keys(watch);
7
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
30
8
  emitProbs.push('modelchanged', 'update:modelValue');
31
9
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
32
10
  var props_1 = modelProps_1[_i];
@@ -38,186 +16,179 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
38
16
  * <ejs-documenteditor id='container'></ejs-documenteditor>
39
17
  * ```
40
18
  */
41
- var DocumentEditorComponent = /** @class */ (function (_super) {
42
- __extends(DocumentEditorComponent, _super);
43
- function DocumentEditorComponent() {
44
- var _this = _super.call(this, arguments) || this;
45
- _this.propKeys = properties;
46
- _this.models = modelProps;
47
- _this.hasChildDirective = false;
48
- _this.hasInjectedModules = true;
49
- _this.tagMapper = {};
50
- _this.tagNameMapper = {};
51
- _this.isVue3 = !isExecute;
52
- _this.ej2Instances = new DocumentEditor({});
53
- _this.bindProperties();
54
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
55
- _this.ej2Instances.setProperties = _this.setProperties;
56
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
57
- _this.updated = _this.updated;
58
- return _this;
59
- }
60
- DocumentEditorComponent.prototype.clearTemplate = function (templateNames) {
61
- if (!templateNames) {
62
- templateNames = Object.keys(this.templateCollection || {});
19
+ export var DocumentEditorComponent = vueDefineComponent({
20
+ name: 'DocumentEditorComponent',
21
+ mixins: [ComponentBase],
22
+ props: props,
23
+ watch: watch,
24
+ emits: emitProbs,
25
+ provide: function () { return { custom: this.custom }; },
26
+ data: function () {
27
+ return {
28
+ ej2Instances: new DocumentEditor({}),
29
+ propKeys: properties,
30
+ models: modelProps,
31
+ hasChildDirective: false,
32
+ hasInjectedModules: true,
33
+ tagMapper: {},
34
+ tagNameMapper: {},
35
+ isVue3: !isExecute,
36
+ templateCollection: {},
37
+ };
38
+ },
39
+ created: function () {
40
+ this.bindProperties();
41
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
42
+ this.ej2Instances.setProperties = this.setProperties;
43
+ this.ej2Instances.clearTemplate = this.clearTemplate;
44
+ this.updated = this.updated;
45
+ },
46
+ render: function (createElement) {
47
+ var h = !isExecute ? gh : createElement;
48
+ var slots = null;
49
+ if (!isNullOrUndefined(this.$slots.default)) {
50
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
63
51
  }
64
- if (templateNames.length && this.templateCollection) {
65
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
66
- var tempName = templateNames_1[_i];
67
- var elementCollection = this.templateCollection[tempName];
68
- if (elementCollection && elementCollection.length) {
69
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
70
- var ele = elementCollection_1[_a];
71
- var destroy = getValue('__vue__.$destroy', ele);
72
- if (destroy) {
73
- ele.__vue__.$destroy();
74
- }
75
- if (ele.innerHTML) {
76
- ele.innerHTML = '';
52
+ return h('div', slots);
53
+ },
54
+ methods: {
55
+ clearTemplate: function (templateNames) {
56
+ if (!templateNames) {
57
+ templateNames = Object.keys(this.templateCollection || {});
58
+ }
59
+ if (templateNames.length && this.templateCollection) {
60
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
61
+ var tempName = templateNames_1[_i];
62
+ var elementCollection = this.templateCollection[tempName];
63
+ if (elementCollection && elementCollection.length) {
64
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
65
+ var ele = elementCollection_1[_a];
66
+ var destroy = getValue('__vue__.$destroy', ele);
67
+ if (destroy) {
68
+ ele.__vue__.$destroy();
69
+ }
70
+ if (ele.innerHTML) {
71
+ ele.innerHTML = '';
72
+ }
77
73
  }
74
+ delete this.templateCollection[tempName];
78
75
  }
79
- delete this.templateCollection[tempName];
80
76
  }
81
77
  }
82
- }
83
- };
84
- DocumentEditorComponent.prototype.setProperties = function (prop, muteOnChange) {
85
- var _this = this;
86
- if (this.isVue3) {
87
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
88
- }
89
- if (this.ej2Instances && this.ej2Instances._setProperties) {
90
- this.ej2Instances._setProperties(prop, muteOnChange);
91
- }
92
- if (prop && this.models && this.models.length) {
93
- Object.keys(prop).map(function (key) {
94
- _this.models.map(function (model) {
95
- if ((key === model) && !(/datasource/i.test(key))) {
96
- if (_this.isVue3) {
97
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
98
- }
99
- else {
100
- _this.$emit('update:' + key, prop[key]);
101
- _this.$emit('modelchanged', prop[key]);
78
+ },
79
+ setProperties: function (prop, muteOnChange) {
80
+ var _this = this;
81
+ if (this.isVue3) {
82
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
83
+ }
84
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
85
+ this.ej2Instances._setProperties(prop, muteOnChange);
86
+ }
87
+ if (prop && this.models && this.models.length) {
88
+ Object.keys(prop).map(function (key) {
89
+ _this.models.map(function (model) {
90
+ if ((key === model) && !(/datasource/i.test(key))) {
91
+ if (_this.isVue3) {
92
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
93
+ }
94
+ else {
95
+ _this.$emit('update:' + key, prop[key]);
96
+ _this.$emit('modelchanged', prop[key]);
97
+ }
102
98
  }
103
- }
99
+ });
104
100
  });
105
- });
106
- }
107
- };
108
- DocumentEditorComponent.prototype.render = function (createElement) {
109
- var h = !isExecute ? gh : createElement;
110
- var slots = null;
111
- if (!isNullOrUndefined(this.$slots.default)) {
112
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
113
- }
114
- return h('div', slots);
115
- };
116
- DocumentEditorComponent.prototype.custom = function () {
117
- this.updated();
118
- };
119
- DocumentEditorComponent.prototype.enableAllModules = function () {
120
- return this.ej2Instances.enableAllModules();
121
- };
122
- DocumentEditorComponent.prototype.exportAsImage = function (pageNumber, format) {
123
- return this.ej2Instances.exportAsImage(pageNumber, format);
124
- };
125
- DocumentEditorComponent.prototype.exportFormData = function () {
126
- return this.ej2Instances.exportFormData();
127
- };
128
- DocumentEditorComponent.prototype.fitPage = function (pageFitType) {
129
- return this.ej2Instances.fitPage(pageFitType);
130
- };
131
- DocumentEditorComponent.prototype.focusIn = function () {
132
- return this.ej2Instances.focusIn();
133
- };
134
- DocumentEditorComponent.prototype.getBookmarks = function () {
135
- return this.ej2Instances.getBookmarks();
136
- };
137
- DocumentEditorComponent.prototype.getFormFieldInfo = function (name) {
138
- return this.ej2Instances.getFormFieldInfo(name);
139
- };
140
- DocumentEditorComponent.prototype.getFormFieldNames = function () {
141
- return this.ej2Instances.getFormFieldNames();
142
- };
143
- DocumentEditorComponent.prototype.getStyleNames = function (styleType) {
144
- return this.ej2Instances.getStyleNames(styleType);
145
- };
146
- DocumentEditorComponent.prototype.getStyles = function (styleType) {
147
- return this.ej2Instances.getStyles(styleType);
148
- };
149
- DocumentEditorComponent.prototype.importFormData = function (formData) {
150
- return this.ej2Instances.importFormData(formData);
151
- };
152
- DocumentEditorComponent.prototype.open = function (sfdtText) {
153
- return this.ej2Instances.open(sfdtText);
154
- };
155
- DocumentEditorComponent.prototype.openBlank = function () {
156
- return this.ej2Instances.openBlank();
157
- };
158
- DocumentEditorComponent.prototype.print = function (printWindow) {
159
- return this.ej2Instances.print(printWindow);
160
- };
161
- DocumentEditorComponent.prototype.resetFormFields = function (name) {
162
- return this.ej2Instances.resetFormFields(name);
163
- };
164
- DocumentEditorComponent.prototype.resize = function (width, height) {
165
- return this.ej2Instances.resize(width, height);
166
- };
167
- DocumentEditorComponent.prototype.save = function (fileName, formatType) {
168
- return this.ej2Instances.save(fileName, formatType);
169
- };
170
- DocumentEditorComponent.prototype.saveAsBlob = function (formatType) {
171
- return this.ej2Instances.saveAsBlob(formatType);
172
- };
173
- DocumentEditorComponent.prototype.scrollToPage = function (pageNumber) {
174
- return this.ej2Instances.scrollToPage(pageNumber);
175
- };
176
- DocumentEditorComponent.prototype.serialize = function () {
177
- return this.ej2Instances.serialize();
178
- };
179
- DocumentEditorComponent.prototype.setDefaultCharacterFormat = function (characterFormat) {
180
- return this.ej2Instances.setDefaultCharacterFormat(characterFormat);
181
- };
182
- DocumentEditorComponent.prototype.setDefaultParagraphFormat = function (paragraphFormat) {
183
- return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);
184
- };
185
- DocumentEditorComponent.prototype.setDefaultSectionFormat = function (sectionFormat) {
186
- return this.ej2Instances.setDefaultSectionFormat(sectionFormat);
187
- };
188
- DocumentEditorComponent.prototype.setFormFieldInfo = function (name, formFieldInfo) {
189
- return this.ej2Instances.setFormFieldInfo(name, formFieldInfo);
190
- };
191
- DocumentEditorComponent.prototype.showDialog = function (dialogType) {
192
- return this.ej2Instances.showDialog(dialogType);
193
- };
194
- DocumentEditorComponent.prototype.showOptionsPane = function () {
195
- return this.ej2Instances.showOptionsPane();
196
- };
197
- DocumentEditorComponent.prototype.showRestrictEditingPane = function (show) {
198
- return this.ej2Instances.showRestrictEditingPane(show);
199
- };
200
- DocumentEditorComponent.prototype.updateFields = function () {
201
- return this.ej2Instances.updateFields();
202
- };
203
- DocumentEditorComponent = __decorate([
204
- EJComponentDecorator({
205
- props: properties
206
- }, isExecute)
207
- ,Options({
208
- props: props,
209
- watch: watch,
210
- emits: emitProbs,
211
- provide: function provide() {
212
- return {
213
- custom: this.custom
214
- };
215
101
  }
216
- })
217
- ], DocumentEditorComponent);
218
- return DocumentEditorComponent;
219
- }(ComponentBase));
220
- export { DocumentEditorComponent };
102
+ },
103
+ custom: function () {
104
+ this.updated();
105
+ },
106
+ enableAllModules: function () {
107
+ return this.ej2Instances.enableAllModules();
108
+ },
109
+ exportAsImage: function (pageNumber, format) {
110
+ return this.ej2Instances.exportAsImage(pageNumber, format);
111
+ },
112
+ exportFormData: function () {
113
+ return this.ej2Instances.exportFormData();
114
+ },
115
+ fitPage: function (pageFitType) {
116
+ return this.ej2Instances.fitPage(pageFitType);
117
+ },
118
+ focusIn: function () {
119
+ return this.ej2Instances.focusIn();
120
+ },
121
+ getBookmarks: function () {
122
+ return this.ej2Instances.getBookmarks();
123
+ },
124
+ getFormFieldInfo: function (name) {
125
+ return this.ej2Instances.getFormFieldInfo(name);
126
+ },
127
+ getFormFieldNames: function () {
128
+ return this.ej2Instances.getFormFieldNames();
129
+ },
130
+ getStyleNames: function (styleType) {
131
+ return this.ej2Instances.getStyleNames(styleType);
132
+ },
133
+ getStyles: function (styleType) {
134
+ return this.ej2Instances.getStyles(styleType);
135
+ },
136
+ importFormData: function (formData) {
137
+ return this.ej2Instances.importFormData(formData);
138
+ },
139
+ open: function (sfdtText) {
140
+ return this.ej2Instances.open(sfdtText);
141
+ },
142
+ openBlank: function () {
143
+ return this.ej2Instances.openBlank();
144
+ },
145
+ print: function (printWindow) {
146
+ return this.ej2Instances.print(printWindow);
147
+ },
148
+ resetFormFields: function (name) {
149
+ return this.ej2Instances.resetFormFields(name);
150
+ },
151
+ resize: function (width, height) {
152
+ return this.ej2Instances.resize(width, height);
153
+ },
154
+ save: function (fileName, formatType) {
155
+ return this.ej2Instances.save(fileName, formatType);
156
+ },
157
+ saveAsBlob: function (formatType) {
158
+ return this.ej2Instances.saveAsBlob(formatType);
159
+ },
160
+ scrollToPage: function (pageNumber) {
161
+ return this.ej2Instances.scrollToPage(pageNumber);
162
+ },
163
+ serialize: function () {
164
+ return this.ej2Instances.serialize();
165
+ },
166
+ setDefaultCharacterFormat: function (characterFormat) {
167
+ return this.ej2Instances.setDefaultCharacterFormat(characterFormat);
168
+ },
169
+ setDefaultParagraphFormat: function (paragraphFormat) {
170
+ return this.ej2Instances.setDefaultParagraphFormat(paragraphFormat);
171
+ },
172
+ setDefaultSectionFormat: function (sectionFormat) {
173
+ return this.ej2Instances.setDefaultSectionFormat(sectionFormat);
174
+ },
175
+ setFormFieldInfo: function (name, formFieldInfo) {
176
+ return this.ej2Instances.setFormFieldInfo(name, formFieldInfo);
177
+ },
178
+ showDialog: function (dialogType) {
179
+ return this.ej2Instances.showDialog(dialogType);
180
+ },
181
+ showOptionsPane: function () {
182
+ return this.ej2Instances.showOptionsPane();
183
+ },
184
+ showRestrictEditingPane: function (show) {
185
+ return this.ej2Instances.showRestrictEditingPane(show);
186
+ },
187
+ updateFields: function () {
188
+ return this.ej2Instances.updateFields();
189
+ },
190
+ }
191
+ });
221
192
  export var DocumentEditorPlugin = {
222
193
  name: 'ejs-documenteditor',
223
194
  install: function (Vue) {
@@ -1,38 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * Represents the Essential JS 2 VueJS Document Editor Container
10
7
  * ```html
11
8
  * <ejs-documenteditor-container id='container'></ejs-documenteditor-container>
12
9
  * ```
13
10
  */
14
- export declare class DocumentEditorContainerComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- resize(width?: number, height?: number): void;
32
- setDefaultCharacterFormat(characterFormat: Object): void;
33
- setDefaultParagraphFormat(paragraphFormat: Object): void;
34
- setDefaultSectionFormat(sectionFormat: Object): void;
35
- }
11
+ export declare let DocumentEditorContainerComponent: any;
12
+ export declare type DocumentEditorContainerComponent = InstanceType<typeof DocumentEditorContainerComponent>;
36
13
  export declare const DocumentEditorContainerPlugin: {
37
14
  name: string;
38
15
  install(Vue: any): void;