@syncfusion/ej2-vue-pdfviewer 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.
- package/CHANGELOG.md +47 -0
- package/dist/ej2-vue-pdfviewer.umd.min.js +2 -2
- package/dist/ej2-vue-pdfviewer.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es2015.js +161 -182
- package/dist/es6/ej2-vue-pdfviewer.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es5.js +173 -199
- package/dist/es6/ej2-vue-pdfviewer.es5.js.map +1 -1
- package/dist/global/ej2-vue-pdfviewer.min.js +2 -2
- package/package.json +9 -9
- package/src/pdfviewer/pdfviewer.component.d.ts +3 -52
- package/src/pdfviewer/pdfviewer.component.js +174 -203
- package/styles/fluent-dark.css +25 -6
- package/styles/fluent.css +25 -6
- package/styles/material.css +0 -5
- package/styles/pdfviewer/fluent-dark.css +25 -6
- package/styles/pdfviewer/fluent.css +25 -6
- package/styles/pdfviewer/material.css +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,53 @@
|
|
|
6
6
|
|
|
7
7
|
#### Bug Fixes
|
|
8
8
|
|
|
9
|
+
- `#I437765` - Now, the script error does not occur when the update form field value API is used when a signature already has signature content.
|
|
10
|
+
- `#F180666` - Now, the exception does not occur while downloading the document after adding the type and uploading the handwritten signature and initial annotation.
|
|
11
|
+
- `#I428493` - Now, the signature image in the signature field is visible while printing in the other viewers changes made on the server side.
|
|
12
|
+
- `#I441773` - Now, the annotation positions are moving properly.
|
|
13
|
+
- Now, the `PDFium` package has been updated.
|
|
14
|
+
- `#I438960` - Now, the different culture date time is working properly while exporting annotations.
|
|
15
|
+
- `#I444307` - Now, the check box is not added to the left-most corner of the page.
|
|
16
|
+
- `#I444707` - Now, the signature dialog box footer button alignment is proper in the fluent theme.
|
|
17
|
+
- `#I440251` - Now, the typed handwritten signature is not broken into a new line after downloading and viewing in other viewers.
|
|
18
|
+
- `#I429508` - Now, the form fields appear properly in mobile mode.
|
|
19
|
+
- `#I433831` - The A4 document size is now properly set during printing.
|
|
20
|
+
- `#F180764` - Now, if you move the arrow or line annotations programmatically, their position won't be changed during export.
|
|
21
|
+
- `#I429549` - Now, the checkbox displays properly during the print preview.
|
|
22
|
+
- `#I436286` - Now that the enable shape annotation is false, the script error no longer occurs.
|
|
23
|
+
- `#I429775` - Now, the problem with some specific document's slow rendering has been resolved.
|
|
24
|
+
- `#I437396` - Now, when the page's zoom level is higher, the resizer will not enable inside the annotation.
|
|
25
|
+
- `#I435370` - Now, the border color is preserved properly for the transparent textbox field.
|
|
26
|
+
- `#I438421` - Now, the script error does not occur while loading an annotation restricted document when the `enableAnnotation` API is set to false.
|
|
27
|
+
- `#F180082` - Now, while adding the text markup annotation programmatically, the text markup content is added properly.
|
|
28
|
+
- `#I434198` - Now, the custom stamp is added properly on the form fields.
|
|
29
|
+
- `#I180081` - Now, when attempting to delete a post in the comment panel, the annotations are not deleted from the comment panel.
|
|
30
|
+
- `#I431466` - Now, the toolbar behavior is stable in mobile mode.
|
|
31
|
+
- `#I432820`, `#I432145`, `#F179720` - Now, the formFields with the same name in non-rendered pages are downloaded successfully.
|
|
32
|
+
- `#I429549` - Now, the checkboxes are no longer offset to the right in the print preview.
|
|
33
|
+
- `#I429288` - Now, the delete option for a draw signature type will be visible in the context menu.
|
|
34
|
+
- `#I431758` - Now, the checkboxes with the same name are correctly selected.
|
|
35
|
+
- `#I429416` - The checkbox layer is now rendered properly when loading the provided PDF document.
|
|
36
|
+
- `#I431679` - Now, the handwritten signature does not become empty when a random signature is added.
|
|
37
|
+
- `#I431466` - Now, the toolbar icon is properly visible in mobile mode.
|
|
38
|
+
- `#I431286` - Now, the radio button selector size is proper in the given document.
|
|
39
|
+
- `#I408530`, `#I428623` - Now, the free text annotations do not shift towards the left side in edit mode.
|
|
40
|
+
|
|
41
|
+
#### New Features
|
|
42
|
+
|
|
43
|
+
- `#I344527` - Now, the support provided is navigated to the next and previous signature field in the form designer.
|
|
44
|
+
- `#I443775` - Now, support is provided for the saving type and image signatures in the form fields.
|
|
45
|
+
- Now, the JSON structure has been modified based on the PDF library.
|
|
46
|
+
- `#I411856` - Now, support is provided to render the accessibility tags in the PDF Viewer.
|
|
47
|
+
- `#I426307` - Improvements to page rendering for zoom levels under 25% by using thumbnail images.
|
|
48
|
+
- Now, support is provided for the tab navigation in the form fields and form designer.
|
|
49
|
+
|
|
50
|
+
## 20.4.54 (2023-03-14)
|
|
51
|
+
|
|
52
|
+
### PDF Viewer
|
|
53
|
+
|
|
54
|
+
#### Bug Fixes
|
|
55
|
+
|
|
9
56
|
- `#I438960` - Now, different culture date time is working properly while exporting annotations.
|
|
10
57
|
- `#I444307` - Now, the check box is not added to the left-most corner of the page.
|
|
11
58
|
- `#I444707` - Now, signature dialog box footer button alignment is proper in fluent theme.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-pdfviewer.umd.min.js
|
|
3
|
-
* version :
|
|
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-pdfviewer"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-pdfviewer","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Pdfviewer,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-pdfviewer"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-pdfviewer","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Pdfviewer,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,i){"use strict";var o=["isLazyUpdate","plugins","DropdownFieldSettings","ajaxRequestSettings","annotationSelectorSettings","annotationSettings","annotations","areaSettings","arrowSettings","checkBoxFieldSettings","circleSettings","contextMenuOption","contextMenuSettings","currentPageNumber","customStamp","customStampSettings","dateTimeFormat","designerMode","disableContextMenuItems","distanceSettings","documentPath","downloadFileName","drawingObject","enableAccessibilityTags","enableAnnotation","enableAnnotationToolbar","enableAutoComplete","enableBookmark","enableBookmarkStyles","enableCommentPanel","enableDesktopMode","enableDownload","enableFormDesigner","enableFormDesignerToolbar","enableFormFields","enableFormFieldsValidation","enableFreeText","enableHandwrittenSignature","enableHyperlink","enableImportAnnotationMeasurement","enableInkAnnotation","enableMagnification","enableMeasureAnnotation","enableMultiLineOverlap","enableMultiPageAnnotation","enableNavigation","enableNavigationToolbar","enablePersistence","enablePinchZoom","enablePrint","enablePrintRotation","enableRtl","enableShapeAnnotation","enableShapeLabel","enableStampAnnotations","enableStickyNotesAnnotation","enableTextMarkupAnnotation","enableTextMarkupResizer","enableTextSearch","enableTextSelection","enableThumbnail","enableToolbar","enableZoomOptimization","exportAnnotationFileName","formFieldCollections","formFields","freeTextSettings","handWrittenSignatureSettings","height","hideEmptyDigitalSignatureFields","hideSaveSignature","highlightSettings","hyperlinkOpenState","initialDialogSettings","initialFieldSettings","inkAnnotationSettings","interactionMode","isAnnotationToolbarOpen","isAnnotationToolbarVisible","isBookmarkPanelOpen","isCommandPanelOpen","isDocumentEdited","isExtractText","isFormDesignerToolbarVisible","isFormFieldDocument","isInitialFieldToolbarSelection","isMaintainSelection","isSignatureEditable","isThumbnailViewOpen","isValidFreeText","lineSettings","listBoxFieldSettings","locale","measurementSettings","pageCount","passwordFieldSettings","perimeterSettings","polygonSettings","printMode","radioButtonFieldSettings","radiusSettings","rectangleSettings","restrictZoomRequest","retryCount","retryStatusCodes","scrollSettings","selectedItems","serverActionSettings","serviceUrl","shapeLabelSettings","showDigitalSignatureAppearance","showNotificationDialog","signatureDialogSettings","signatureFieldSettings","signatureFitMode","stampSettings","stickyNotesSettings","strikethroughSettings","textFieldSettings","textSearchColorSettings","tileRenderingSettings","toolbarSettings","underlineSettings","volumeSettings","width","zoomMode","zoomValue","addSignature","ajaxRequestFailed","ajaxRequestInitiate","ajaxRequestSuccess","annotationAdd","annotationDoubleClick","annotationMouseLeave","annotationMouseover","annotationMove","annotationMoving","annotationPropertiesChange","annotationRemove","annotationResize","annotationSelect","annotationUnSelect","beforeAddFreeText","bookmarkClick","buttonFieldClick","commentAdd","commentDelete","commentEdit","commentSelect","commentStatusChanged","created","documentLoad","documentLoadFailed","documentUnload","downloadEnd","downloadStart","exportFailed","exportStart","exportSuccess","extractTextCompleted","formFieldAdd","formFieldClick","formFieldDoubleClick","formFieldFocusOut","formFieldMouseLeave","formFieldMouseover","formFieldMove","formFieldPropertiesChange","formFieldRemove","formFieldResize","formFieldSelect","formFieldUnselect","hyperlinkClick","hyperlinkMouseOver","importFailed","importStart","importSuccess","moveSignature","pageChange","pageClick","pageMouseover","printEnd","printStart","removeSignature","resizeSignature","signaturePropertiesChange","signatureSelect","textSearchComplete","textSearchHighlight","textSearchStart","textSelectionEnd","textSelectionStart","thumbnailClick","validateFormFields","zoomChange"],s=[],a=n.getProps({props:o}),r=a[0],l=a[1],u=Object.keys(l);u.push("modelchanged","update:modelValue");for(var c=0,d=s;c<d.length;c++){var m=d[c];u.push("update:"+m)}var p=n.vueDefineComponent({name:"PdfViewerComponent",mixins:[n.ComponentBase],props:r,watch:l,emits:u,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.PdfViewer({}),propKeys:o,models:s,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 i.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],s=this.templateCollection[o];if(s&&s.length){for(var a=0,r=s;a<r.length;a++){var l=r[a];i.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(i){t!==i||/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()},addAnnotation:function(e){return this.ej2Instances.addAnnotation(e)},clearFormFields:function(e){return this.ej2Instances.clearFormFields(e)},convertClientPointToPagePoint:function(e,t){return this.ej2Instances.convertClientPointToPagePoint(e,t)},convertPagePointToClientPoint:function(e,t){return this.ej2Instances.convertPagePointToClientPoint(e,t)},convertPagePointToScrollingPoint:function(e,t){return this.ej2Instances.convertPagePointToScrollingPoint(e,t)},deleteAnnotations:function(){return this.ej2Instances.deleteAnnotations()},download:function(){return this.ej2Instances.download()},exportAnnotation:function(e){return this.ej2Instances.exportAnnotation(e)},exportAnnotationsAsBase64String:function(e){return this.ej2Instances.exportAnnotationsAsBase64String(e)},exportAnnotationsAsObject:function(){return this.ej2Instances.exportAnnotationsAsObject()},exportFormFields:function(e,t){return this.ej2Instances.exportFormFields(e,t)},exportFormFieldsAsObject:function(e){return this.ej2Instances.exportFormFieldsAsObject(e)},focusFormField:function(e){return this.ej2Instances.focusFormField(e)},getPageNumberFromClientPoint:function(e){return this.ej2Instances.getPageNumberFromClientPoint(e)},importAnnotation:function(e,t){return this.ej2Instances.importAnnotation(e,t)},importFormFields:function(e,t){return this.ej2Instances.importFormFields(e,t)},load:function(e,t){return this.ej2Instances.load(e,t)},redo:function(){return this.ej2Instances.redo()},requiredModules:function(){return this.ej2Instances.requiredModules()},resetFormFields:function(){return this.ej2Instances.resetFormFields()},retrieveFormFields:function(){return this.ej2Instances.retrieveFormFields()},saveAsBlob:function(){return this.ej2Instances.saveAsBlob()},setJsonData:function(e){return this.ej2Instances.setJsonData(e)},showNotificationPopup:function(e){return this.ej2Instances.showNotificationPopup(e)},undo:function(){return this.ej2Instances.undo()},unload:function(){return this.ej2Instances.unload()},updateFormFields:function(e){return this.ej2Instances.updateFormFields(e)},updateFormFieldsValue:function(e){return this.ej2Instances.updateFormFieldsValue(e)},updateViewerContainer:function(){return this.ej2Instances.updateViewerContainer()},zoomToRect:function(e){return this.ej2Instances.zoomToRect(e)}}}),g={name:"ejs-pdfviewer",install:function(e){e.component(g.name,p)}};e.PdfViewerComponent=p,e.PdfViewerPlugin=g,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-pdfviewer.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-pdfviewer.umd.min.js","sources":["../vue2/src/pdfviewer/pdfviewer.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 { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nexport var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];\nexport var modelProps = [];\n/**\n * `ejs-pdfviewer` represents the VueJS PdfViewer Component.\n * ```vue\n * <ejs-pdfviewer></ejs-pdfviewer>\n * ```\n */\nvar PdfViewerComponent = /** @class */ (function (_super) {\n __extends(PdfViewerComponent, _super);\n function PdfViewerComponent() {\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 PdfViewer({});\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 PdfViewerComponent.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 PdfViewerComponent.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 PdfViewerComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n PdfViewerComponent.prototype.custom = function () {\n this.updated();\n };\n PdfViewerComponent.prototype.addAnnotation = function (annotation) {\n return this.ej2Instances.addAnnotation(annotation);\n };\n PdfViewerComponent.prototype.clearFormFields = function (formField) {\n return this.ej2Instances.clearFormFields(formField);\n };\n PdfViewerComponent.prototype.convertClientPointToPagePoint = function (clientPoint, pageNumber) {\n return this.ej2Instances.convertClientPointToPagePoint(clientPoint, pageNumber);\n };\n PdfViewerComponent.prototype.convertPagePointToClientPoint = function (pagePoint, pageNumber) {\n return this.ej2Instances.convertPagePointToClientPoint(pagePoint, pageNumber);\n };\n PdfViewerComponent.prototype.convertPagePointToScrollingPoint = function (pagePoint, pageNumber) {\n return this.ej2Instances.convertPagePointToScrollingPoint(pagePoint, pageNumber);\n };\n PdfViewerComponent.prototype.deleteAnnotations = function () {\n return this.ej2Instances.deleteAnnotations();\n };\n PdfViewerComponent.prototype.download = function () {\n return this.ej2Instances.download();\n };\n PdfViewerComponent.prototype.exportAnnotation = function (annotationDataFormat) {\n return this.ej2Instances.exportAnnotation(annotationDataFormat);\n };\n PdfViewerComponent.prototype.exportAnnotationsAsBase64String = function (annotationDataFormat) {\n return this.ej2Instances.exportAnnotationsAsBase64String(annotationDataFormat);\n };\n PdfViewerComponent.prototype.exportAnnotationsAsObject = function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n };\n PdfViewerComponent.prototype.exportFormFields = function (data, formFieldDataFormat) {\n return this.ej2Instances.exportFormFields(data, formFieldDataFormat);\n };\n PdfViewerComponent.prototype.exportFormFieldsAsObject = function (formFieldDataFormat) {\n return this.ej2Instances.exportFormFieldsAsObject(formFieldDataFormat);\n };\n PdfViewerComponent.prototype.focusFormField = function (field) {\n return this.ej2Instances.focusFormField(field);\n };\n PdfViewerComponent.prototype.getPageNumberFromClientPoint = function (clientPoint) {\n return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);\n };\n PdfViewerComponent.prototype.importAnnotation = function (importData, annotationDataFormat) {\n return this.ej2Instances.importAnnotation(importData, annotationDataFormat);\n };\n PdfViewerComponent.prototype.importFormFields = function (data, formFieldDataFormat) {\n return this.ej2Instances.importFormFields(data, formFieldDataFormat);\n };\n PdfViewerComponent.prototype.load = function (document, password) {\n return this.ej2Instances.load(document, password);\n };\n PdfViewerComponent.prototype.redo = function () {\n return this.ej2Instances.redo();\n };\n PdfViewerComponent.prototype.requiredModules = function () {\n return this.ej2Instances.requiredModules();\n };\n PdfViewerComponent.prototype.resetFormFields = function () {\n return this.ej2Instances.resetFormFields();\n };\n PdfViewerComponent.prototype.retrieveFormFields = function () {\n return this.ej2Instances.retrieveFormFields();\n };\n PdfViewerComponent.prototype.saveAsBlob = function () {\n return this.ej2Instances.saveAsBlob();\n };\n PdfViewerComponent.prototype.setJsonData = function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n };\n PdfViewerComponent.prototype.showNotificationPopup = function (errorString) {\n return this.ej2Instances.showNotificationPopup(errorString);\n };\n PdfViewerComponent.prototype.undo = function () {\n return this.ej2Instances.undo();\n };\n PdfViewerComponent.prototype.unload = function () {\n return this.ej2Instances.unload();\n };\n PdfViewerComponent.prototype.updateFormFields = function (formFields) {\n return this.ej2Instances.updateFormFields(formFields);\n };\n PdfViewerComponent.prototype.updateFormFieldsValue = function (fieldValue) {\n return this.ej2Instances.updateFormFieldsValue(fieldValue);\n };\n PdfViewerComponent.prototype.updateViewerContainer = function () {\n return this.ej2Instances.updateViewerContainer();\n };\n PdfViewerComponent.prototype.zoomToRect = function (rectangle) {\n return this.ej2Instances.zoomToRect(rectangle);\n };\n PdfViewerComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], PdfViewerComponent);\n return PdfViewerComponent;\n}(ComponentBase));\nexport { PdfViewerComponent };\nexport var PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install: function (Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\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","PdfViewerComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","ej2Instances","PdfViewer","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","addAnnotation","annotation","clearFormFields","formField","convertClientPointToPagePoint","clientPoint","pageNumber","convertPagePointToClientPoint","pagePoint","convertPagePointToScrollingPoint","deleteAnnotations","download","exportAnnotation","annotationDataFormat","exportAnnotationsAsBase64String","exportAnnotationsAsObject","exportFormFields","data","formFieldDataFormat","exportFormFieldsAsObject","focusFormField","field","getPageNumberFromClientPoint","importAnnotation","importData","importFormFields","load","document","password","redo","requiredModules","resetFormFields","retrieveFormFields","saveAsBlob","setJsonData","jsonData","showNotificationPopup","errorString","undo","unload","updateFormFields","formFields","updateFormFieldsValue","fieldValue","updateViewerContainer","zoomToRect","rectangle","EJComponentDecorator","props","ComponentB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KAAK8B,aAAauE,UAE7BjF,EAAmBlB,UAAUoG,iBAAmB,SAAUC,GACtD,OAAOvG,KAAK8B,aAAawE,iBAAiBC,IAE9CnF,EAAmBlB,UAAUsG,sBAAwB,SAAUC,GAC3D,OAAOzG,KAAK8B,aAAa0E,sBAAsBC,IAEnDrF,EAAmBlB,UAAUwG,sBAAwB,WACjD,OAAO1G,KAAK8B,aAAa4E,yBAE7BtF,EAAmBlB,UAAUyG,WAAa,SAAUC,GAChD,OAAO5G,KAAK8B,aAAa6E,WAAWC,IAExCxF,EAAqBhB,GACjByG,wBACIC,MAAO5F,KAEZE,IAEL2F,iBAESC,GACPC,KAAM,gBACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUJ,EAAgBC,KAAM7F"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-pdfviewer.umd.min.js","sources":["../src/pdfviewer/pdfviewer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nexport var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];\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 * `ejs-pdfviewer` represents the VueJS PdfViewer Component.\n * ```vue\n * <ejs-pdfviewer></ejs-pdfviewer>\n * ```\n */\nexport var PdfViewerComponent = vueDefineComponent({\n name: 'PdfViewerComponent',\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 PdfViewer({}),\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 addAnnotation: function (annotation) {\n return this.ej2Instances.addAnnotation(annotation);\n },\n clearFormFields: function (formField) {\n return this.ej2Instances.clearFormFields(formField);\n },\n convertClientPointToPagePoint: function (clientPoint, pageNumber) {\n return this.ej2Instances.convertClientPointToPagePoint(clientPoint, pageNumber);\n },\n convertPagePointToClientPoint: function (pagePoint, pageNumber) {\n return this.ej2Instances.convertPagePointToClientPoint(pagePoint, pageNumber);\n },\n convertPagePointToScrollingPoint: function (pagePoint, pageNumber) {\n return this.ej2Instances.convertPagePointToScrollingPoint(pagePoint, pageNumber);\n },\n deleteAnnotations: function () {\n return this.ej2Instances.deleteAnnotations();\n },\n download: function () {\n return this.ej2Instances.download();\n },\n exportAnnotation: function (annotationDataFormat) {\n return this.ej2Instances.exportAnnotation(annotationDataFormat);\n },\n exportAnnotationsAsBase64String: function (annotationDataFormat) {\n return this.ej2Instances.exportAnnotationsAsBase64String(annotationDataFormat);\n },\n exportAnnotationsAsObject: function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields: function (data, formFieldDataFormat) {\n return this.ej2Instances.exportFormFields(data, formFieldDataFormat);\n },\n exportFormFieldsAsObject: function (formFieldDataFormat) {\n return this.ej2Instances.exportFormFieldsAsObject(formFieldDataFormat);\n },\n focusFormField: function (field) {\n return this.ej2Instances.focusFormField(field);\n },\n getPageNumberFromClientPoint: function (clientPoint) {\n return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);\n },\n importAnnotation: function (importData, annotationDataFormat) {\n return this.ej2Instances.importAnnotation(importData, annotationDataFormat);\n },\n importFormFields: function (data, formFieldDataFormat) {\n return this.ej2Instances.importFormFields(data, formFieldDataFormat);\n },\n load: function (document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo: function () {\n return this.ej2Instances.redo();\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n resetFormFields: function () {\n return this.ej2Instances.resetFormFields();\n },\n retrieveFormFields: function () {\n return this.ej2Instances.retrieveFormFields();\n },\n saveAsBlob: function () {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n showNotificationPopup: function (errorString) {\n return this.ej2Instances.showNotificationPopup(errorString);\n },\n undo: function () {\n return this.ej2Instances.undo();\n },\n unload: function () {\n return this.ej2Instances.unload();\n },\n updateFormFields: function (formFields) {\n return this.ej2Instances.updateFormFields(formFields);\n },\n updateFormFieldsValue: function (fieldValue) {\n return this.ej2Instances.updateFormFieldsValue(fieldValue);\n },\n updateViewerContainer: function () {\n return this.ej2Instances.updateViewerContainer();\n },\n zoomToRect: function (rectangle) {\n return this.ej2Instances.zoomToRect(rectangle);\n },\n }\n});\nexport var PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install: function (Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\n }\n};\n"],"names":["properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","PdfViewerComponent","vueDefineComponent","name","mixins","ComponentBase","emits","provide","custom","this","data","ej2Instances","PdfViewer","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","addAnnotation","annotation","clearFormFields","formField","convertClientPointToPagePoint","clientPoint","pageNumber","convertPagePointToClientPoint","pagePoint","convertPagePointToScrollingPoint","deleteAnnotations","download","exportAnnotation","annotationDataFormat","exportAnnotationsAsBase64String","exportAnnotationsAsObject","exportFormFields","formFieldDataFormat","exportFormFieldsAsObject","focusFormField","field","getPageNumberFromClientPoint","importAnnotation","importData","importFormFields","load","document","password","redo","requiredModules","resetFormFields","retrieveFormFields","saveAsBlob","setJsonData","jsonData","showNotificationPopup","errorString","undo","unload","updateFormFields","formFields","updateFormFieldsValue","fieldValue","updateViewerContainer","zoomToRect","rectangle","PdfViewerPlugin","install","Vue","component"],"mappings":"wZAGO,IAA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E7BC,YAAa,SAAUC,GACnB,OAAOnF,KAAKE,aAAagF,YAAYC,IAEzCC,sBAAuB,SAAUC,GAC7B,OAAOrF,KAAKE,aAAakF,sBAAsBC,IAEnDC,KAAM,WACF,OAAOtF,KAAKE,aAAaoF,QAE7BC,OAAQ,WACJ,OAAOvF,KAAKE,aAAaqF,UAE7BC,iBAAkB,SAAUC,GACxB,OAAOzF,KAAKE,aAAasF,iBAAiBC,IAE9CC,sBAAuB,SAAUC,GAC7B,OAAO3F,KAAKE,aAAawF,sBAAsBC,IAEnDC,sBAAuB,WACnB,OAAO5F,KAAKE,aAAa0F,yBAE7BC,WAAY,SAAUC,GAClB,OAAO9F,KAAKE,aAAa2F,WAAWC,OAIrCC,GACPrG,KAAM,gBACNsG,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAgBrG,KAAMF"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
|
|
2
|
-
import { ComponentBase,
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
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;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
};
|
|
11
|
-
// {{VueImport}}
|
|
12
|
-
const properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
5
|
+
const properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
13
6
|
const modelProps = [];
|
|
14
7
|
const testProp = getProps({ props: properties });
|
|
15
8
|
const props = testProp[0];
|
|
@@ -25,79 +18,33 @@ for (let props of modelProps) {
|
|
|
25
18
|
* <ejs-pdfviewer></ejs-pdfviewer>
|
|
26
19
|
* ```
|
|
27
20
|
*/
|
|
28
|
-
let PdfViewerComponent =
|
|
29
|
-
|
|
21
|
+
let PdfViewerComponent = vueDefineComponent({
|
|
22
|
+
name: 'PdfViewerComponent',
|
|
23
|
+
mixins: [ComponentBase],
|
|
30
24
|
props: props,
|
|
31
25
|
watch: watch,
|
|
32
26
|
emits: emitProbs,
|
|
33
|
-
provide:
|
|
27
|
+
provide() { return { custom: this.custom }; },
|
|
28
|
+
data() {
|
|
34
29
|
return {
|
|
35
|
-
|
|
30
|
+
ej2Instances: new PdfViewer({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: false,
|
|
34
|
+
hasInjectedModules: true,
|
|
35
|
+
tagMapper: {},
|
|
36
|
+
tagNameMapper: {},
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
36
39
|
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
class PdfViewerComponent extends ComponentBase {
|
|
40
|
-
constructor() {
|
|
41
|
-
super(arguments);
|
|
42
|
-
this.propKeys = properties;
|
|
43
|
-
this.models = modelProps;
|
|
44
|
-
this.hasChildDirective = false;
|
|
45
|
-
this.hasInjectedModules = true;
|
|
46
|
-
this.tagMapper = {};
|
|
47
|
-
this.tagNameMapper = {};
|
|
48
|
-
this.isVue3 = !isExecute;
|
|
49
|
-
this.ej2Instances = new PdfViewer({});
|
|
40
|
+
},
|
|
41
|
+
created() {
|
|
50
42
|
this.bindProperties();
|
|
51
43
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
52
44
|
this.ej2Instances.setProperties = this.setProperties;
|
|
53
45
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
54
46
|
this.updated = this.updated;
|
|
55
|
-
}
|
|
56
|
-
clearTemplate(templateNames) {
|
|
57
|
-
if (!templateNames) {
|
|
58
|
-
templateNames = Object.keys(this.templateCollection || {});
|
|
59
|
-
}
|
|
60
|
-
if (templateNames.length && this.templateCollection) {
|
|
61
|
-
for (let tempName of templateNames) {
|
|
62
|
-
let elementCollection = this.templateCollection[tempName];
|
|
63
|
-
if (elementCollection && elementCollection.length) {
|
|
64
|
-
for (let ele of elementCollection) {
|
|
65
|
-
let destroy = getValue('__vue__.$destroy', ele);
|
|
66
|
-
if (destroy) {
|
|
67
|
-
ele.__vue__.$destroy();
|
|
68
|
-
}
|
|
69
|
-
if (ele.innerHTML) {
|
|
70
|
-
ele.innerHTML = '';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
delete this.templateCollection[tempName];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
setProperties(prop, muteOnChange) {
|
|
79
|
-
if (this.isVue3) {
|
|
80
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
81
|
-
}
|
|
82
|
-
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
83
|
-
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
84
|
-
}
|
|
85
|
-
if (prop && this.models && this.models.length) {
|
|
86
|
-
Object.keys(prop).map((key) => {
|
|
87
|
-
this.models.map((model) => {
|
|
88
|
-
if ((key === model) && !(/datasource/i.test(key))) {
|
|
89
|
-
if (this.isVue3) {
|
|
90
|
-
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
this.$emit('update:' + key, prop[key]);
|
|
94
|
-
this.$emit('modelchanged', prop[key]);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
47
|
+
},
|
|
101
48
|
render(createElement) {
|
|
102
49
|
let h = !isExecute ? gh : createElement;
|
|
103
50
|
let slots = null;
|
|
@@ -105,116 +52,148 @@ class PdfViewerComponent extends ComponentBase {
|
|
|
105
52
|
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
106
53
|
}
|
|
107
54
|
return h('div', slots);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
clearTemplate(templateNames) {
|
|
58
|
+
if (!templateNames) {
|
|
59
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
60
|
+
}
|
|
61
|
+
if (templateNames.length && this.templateCollection) {
|
|
62
|
+
for (let tempName of templateNames) {
|
|
63
|
+
let elementCollection = this.templateCollection[tempName];
|
|
64
|
+
if (elementCollection && elementCollection.length) {
|
|
65
|
+
for (let ele of elementCollection) {
|
|
66
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
67
|
+
if (destroy) {
|
|
68
|
+
ele.__vue__.$destroy();
|
|
69
|
+
}
|
|
70
|
+
if (ele.innerHTML) {
|
|
71
|
+
ele.innerHTML = '';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
delete this.templateCollection[tempName];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setProperties(prop, muteOnChange) {
|
|
80
|
+
if (this.isVue3) {
|
|
81
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
82
|
+
}
|
|
83
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
84
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
85
|
+
}
|
|
86
|
+
if (prop && this.models && this.models.length) {
|
|
87
|
+
Object.keys(prop).map((key) => {
|
|
88
|
+
this.models.map((model) => {
|
|
89
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
90
|
+
if (this.isVue3) {
|
|
91
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.$emit('update:' + key, prop[key]);
|
|
95
|
+
this.$emit('modelchanged', prop[key]);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
custom() {
|
|
103
|
+
this.updated();
|
|
104
|
+
},
|
|
105
|
+
addAnnotation(annotation) {
|
|
106
|
+
return this.ej2Instances.addAnnotation(annotation);
|
|
107
|
+
},
|
|
108
|
+
clearFormFields(formField) {
|
|
109
|
+
return this.ej2Instances.clearFormFields(formField);
|
|
110
|
+
},
|
|
111
|
+
convertClientPointToPagePoint(clientPoint, pageNumber) {
|
|
112
|
+
return this.ej2Instances.convertClientPointToPagePoint(clientPoint, pageNumber);
|
|
113
|
+
},
|
|
114
|
+
convertPagePointToClientPoint(pagePoint, pageNumber) {
|
|
115
|
+
return this.ej2Instances.convertPagePointToClientPoint(pagePoint, pageNumber);
|
|
116
|
+
},
|
|
117
|
+
convertPagePointToScrollingPoint(pagePoint, pageNumber) {
|
|
118
|
+
return this.ej2Instances.convertPagePointToScrollingPoint(pagePoint, pageNumber);
|
|
119
|
+
},
|
|
120
|
+
deleteAnnotations() {
|
|
121
|
+
return this.ej2Instances.deleteAnnotations();
|
|
122
|
+
},
|
|
123
|
+
download() {
|
|
124
|
+
return this.ej2Instances.download();
|
|
125
|
+
},
|
|
126
|
+
exportAnnotation(annotationDataFormat) {
|
|
127
|
+
return this.ej2Instances.exportAnnotation(annotationDataFormat);
|
|
128
|
+
},
|
|
129
|
+
exportAnnotationsAsBase64String(annotationDataFormat) {
|
|
130
|
+
return this.ej2Instances.exportAnnotationsAsBase64String(annotationDataFormat);
|
|
131
|
+
},
|
|
132
|
+
exportAnnotationsAsObject() {
|
|
133
|
+
return this.ej2Instances.exportAnnotationsAsObject();
|
|
134
|
+
},
|
|
135
|
+
exportFormFields(data, formFieldDataFormat) {
|
|
136
|
+
return this.ej2Instances.exportFormFields(data, formFieldDataFormat);
|
|
137
|
+
},
|
|
138
|
+
exportFormFieldsAsObject(formFieldDataFormat) {
|
|
139
|
+
return this.ej2Instances.exportFormFieldsAsObject(formFieldDataFormat);
|
|
140
|
+
},
|
|
141
|
+
focusFormField(field) {
|
|
142
|
+
return this.ej2Instances.focusFormField(field);
|
|
143
|
+
},
|
|
144
|
+
getPageNumberFromClientPoint(clientPoint) {
|
|
145
|
+
return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);
|
|
146
|
+
},
|
|
147
|
+
importAnnotation(importData, annotationDataFormat) {
|
|
148
|
+
return this.ej2Instances.importAnnotation(importData, annotationDataFormat);
|
|
149
|
+
},
|
|
150
|
+
importFormFields(data, formFieldDataFormat) {
|
|
151
|
+
return this.ej2Instances.importFormFields(data, formFieldDataFormat);
|
|
152
|
+
},
|
|
153
|
+
load(document, password) {
|
|
154
|
+
return this.ej2Instances.load(document, password);
|
|
155
|
+
},
|
|
156
|
+
redo() {
|
|
157
|
+
return this.ej2Instances.redo();
|
|
158
|
+
},
|
|
159
|
+
requiredModules() {
|
|
160
|
+
return this.ej2Instances.requiredModules();
|
|
161
|
+
},
|
|
162
|
+
resetFormFields() {
|
|
163
|
+
return this.ej2Instances.resetFormFields();
|
|
164
|
+
},
|
|
165
|
+
retrieveFormFields() {
|
|
166
|
+
return this.ej2Instances.retrieveFormFields();
|
|
167
|
+
},
|
|
168
|
+
saveAsBlob() {
|
|
169
|
+
return this.ej2Instances.saveAsBlob();
|
|
170
|
+
},
|
|
171
|
+
setJsonData(jsonData) {
|
|
172
|
+
return this.ej2Instances.setJsonData(jsonData);
|
|
173
|
+
},
|
|
174
|
+
showNotificationPopup(errorString) {
|
|
175
|
+
return this.ej2Instances.showNotificationPopup(errorString);
|
|
176
|
+
},
|
|
177
|
+
undo() {
|
|
178
|
+
return this.ej2Instances.undo();
|
|
179
|
+
},
|
|
180
|
+
unload() {
|
|
181
|
+
return this.ej2Instances.unload();
|
|
182
|
+
},
|
|
183
|
+
updateFormFields(formFields) {
|
|
184
|
+
return this.ej2Instances.updateFormFields(formFields);
|
|
185
|
+
},
|
|
186
|
+
updateFormFieldsValue(fieldValue) {
|
|
187
|
+
return this.ej2Instances.updateFormFieldsValue(fieldValue);
|
|
188
|
+
},
|
|
189
|
+
updateViewerContainer() {
|
|
190
|
+
return this.ej2Instances.updateViewerContainer();
|
|
191
|
+
},
|
|
192
|
+
zoomToRect(rectangle) {
|
|
193
|
+
return this.ej2Instances.zoomToRect(rectangle);
|
|
194
|
+
},
|
|
195
|
+
}
|
|
196
|
+
});
|
|
218
197
|
const PdfViewerPlugin = {
|
|
219
198
|
name: 'ejs-pdfviewer',
|
|
220
199
|
install(Vue) {
|