@syncfusion/ej2-vue-pdfviewer 26.1.50-4568 → 26.1.51-4568
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/dist/ej2-vue-pdfviewer.umd.min.js +1 -1
- package/dist/ej2-vue-pdfviewer.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es2015.js +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es5.js +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es5.js.map +1 -1
- package/package.json +2 -2
- package/src/pdfviewer/pdfviewer.component.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!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 s=["isLazyUpdate","plugins","ajaxRequestSettings","annotationSelectorSettings","annotationSettings","annotationToolbarSettings","annotations","areaSettings","arrowSettings","circleSettings","contextMenuOption","customStampItems","customStampSettings","distanceSettings","documentPath","downloadFileName","drawingObject","enableAnnotation","enableAnnotationToolbar","enableBookmark","enableCommentPanel","enableDownload","enableFormFields","enableFormFieldsValidation","enableFreeText","enableHandwrittenSignature","enableHyperlink","enableMagnification","enableMeasureAnnotation","enableMultiLineOverlap","enableMultiPageAnnotation","enableNavigation","enableNavigationToolbar","enablePersistence","enablePinchZoom","enablePrint","enableRtl","enableShapeAnnotation","enableShapeLabel","enableStampAnnotations","enableStickyNotesAnnotation","enableTaggedPDF","enableTextMarkupAnnotation","enableTextMarkupResizer","enableTextSearch","enableTextSelection","enableThumbnail","enableToolbar","enableZoomOptimization","freeTextSettings","handWrittenSignatureSettings","height","highlightSettings","httpResponseType","hyperlinkOpenState","interactionMode","isCommandPanelOpen","isExtractText","isSignatureEditable","isThumbnailViewOpen","lineSettings","locale","measurementSettings","perimeterSettings","polygonSettings","printMode","radiusSettings","rectangleSettings","restrictZoomRequest","retryCount","retryStatusCodes","retryTimeout","scrollSettings","selectedItems","serverActionSettings","serviceUrl","shapeLabelSettings","showNotificationDialog","stampSettings","stickyNotesSettings","strikethroughSettings","textSearchColorSettings","tileRenderingSettings","toolbarSettings","underlineSettings","volumeSettings","width","zoomMode","zoomValue","addSignature","ajaxRequestFailed","ajaxRequestInitiate","ajaxRequestSuccess","annotationAdd","annotationDoubleClick","annotationMouseover","annotationMove","annotationPropertiesChange","annotationRemove","annotationResize","annotationSelect","beforeRenderPdfPage","documentLoad","documentLoadFailed","documentUnload","downloadEnd","downloadStart","exportFailed","exportStart","exportSuccess","extractTextCompleted","hyperlinkClick","hyperlinkMouseOver","importFailed","importStart","importSuccess","moveSignature","pageChange","pageClick","pageMouseover","removeSignature","resizeSignature","signaturePropertiesChange","textSelectionEnd","textSelectionStart","thumbnailClick","validateFormFields","zoomChange"],o=[],a=n.getProps({props:s}),r=a[0],l=a[1],u=Object.keys(l);u.push("modelchanged","update:modelValue");for(var c=0,d=o;c<d.length;c++){var p=d[c];u.push("update:"+p)}var m=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:s,models:o,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,s=null;return i.isNullOrUndefined(this.$slots.default)||(s=n.isExecute?this.$slots.default:this.$slots.default()),t("div",s)},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 s=n[t],o=this.templateCollection[s];if(o&&o.length){for(var a=0,r=o;a<r.length;a++){var l=r[a];i.getValue("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[s]}}},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()},deleteAnnotations:function(){return this.ej2Instances.deleteAnnotations()},download:function(){return this.ej2Instances.download()},exportAnnotations:function(){return this.ej2Instances.exportAnnotations()},exportAnnotationsAsObject:function(){return this.ej2Instances.exportAnnotationsAsObject()},exportFormFields:function(e){return this.ej2Instances.exportFormFields(e)},exportFormFieldsAsObject:function(){return this.ej2Instances.exportFormFieldsAsObject()},importAnnotations:function(e){return this.ej2Instances.importAnnotations(e)},importFormFields:function(e){return this.ej2Instances.importFormFields(e)},load:function(e,t){return this.ej2Instances.load(e,t)},redo:function(){return this.ej2Instances.redo()},renderPdfPages:function(e){return this.ej2Instances.renderPdfPages(e)},requiredModules:function(){return this.ej2Instances.requiredModules()},saveAsBlob:function(){return this.ej2Instances.saveAsBlob()},setJsonData:function(e){return this.ej2Instances.setJsonData(e)},undo:function(){return this.ej2Instances.undo()},unload:function(){return this.ej2Instances.unload()},updateViewerContainer:function(){return this.ej2Instances.updateViewerContainer()}}}),h={name:"ejs-pdfviewer",install:function(e){e.component(h.name,m)}};e.PdfViewerComponent=m,e.PdfViewerPlugin=h,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!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 s=["isLazyUpdate","plugins","ajaxRequestSettings","annotationSelectorSettings","annotationSettings","annotationToolbarSettings","annotations","areaSettings","arrowSettings","circleSettings","contextMenuOption","customStampItems","customStampSettings","distanceSettings","documentPath","downloadFileName","drawingObject","enableAnnotation","enableAnnotationToolbar","fitPagesToUniformWidth","enableBookmark","enableCommentPanel","enableDownload","enableFormFields","enableFormFieldsValidation","enableFreeText","enableHandwrittenSignature","enableHyperlink","enableMagnification","enableMeasureAnnotation","enableMultiLineOverlap","enableMultiPageAnnotation","enableNavigation","enableNavigationToolbar","enablePersistence","enablePinchZoom","enablePrint","enableRtl","enableShapeAnnotation","enableShapeLabel","enableStampAnnotations","enableStickyNotesAnnotation","enableTaggedPDF","enableTextMarkupAnnotation","enableTextMarkupResizer","enableTextSearch","enableTextSelection","enableThumbnail","enableToolbar","enableZoomOptimization","freeTextSettings","handWrittenSignatureSettings","height","highlightSettings","httpResponseType","hyperlinkOpenState","interactionMode","isCommandPanelOpen","isExtractText","isSignatureEditable","isThumbnailViewOpen","lineSettings","locale","measurementSettings","perimeterSettings","polygonSettings","printMode","radiusSettings","rectangleSettings","restrictZoomRequest","retryCount","retryStatusCodes","retryTimeout","scrollSettings","selectedItems","serverActionSettings","serviceUrl","shapeLabelSettings","showNotificationDialog","stampSettings","stickyNotesSettings","strikethroughSettings","textSearchColorSettings","tileRenderingSettings","toolbarSettings","underlineSettings","volumeSettings","width","zoomMode","zoomValue","addSignature","ajaxRequestFailed","ajaxRequestInitiate","ajaxRequestSuccess","annotationAdd","annotationDoubleClick","annotationMouseover","annotationMove","annotationPropertiesChange","annotationRemove","annotationResize","annotationSelect","beforeRenderPdfPage","documentLoad","documentLoadFailed","documentUnload","downloadEnd","downloadStart","exportFailed","exportStart","exportSuccess","extractTextCompleted","hyperlinkClick","hyperlinkMouseOver","importFailed","importStart","importSuccess","moveSignature","pageChange","pageClick","pageMouseover","removeSignature","resizeSignature","signaturePropertiesChange","textSelectionEnd","textSelectionStart","thumbnailClick","validateFormFields","zoomChange"],o=[],a=n.getProps({props:s}),r=a[0],l=a[1],u=Object.keys(l);u.push("modelchanged","update:modelValue");for(var c=0,d=o;c<d.length;c++){var p=d[c];u.push("update:"+p)}var m=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:s,models:o,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,s=null;return i.isNullOrUndefined(this.$slots.default)||(s=n.isExecute?this.$slots.default:this.$slots.default()),t("div",s)},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 s=n[t],o=this.templateCollection[s];if(o&&o.length){for(var a=0,r=o;a<r.length;a++){var l=r[a];i.getValue("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[s]}}},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()},deleteAnnotations:function(){return this.ej2Instances.deleteAnnotations()},download:function(){return this.ej2Instances.download()},exportAnnotations:function(){return this.ej2Instances.exportAnnotations()},exportAnnotationsAsObject:function(){return this.ej2Instances.exportAnnotationsAsObject()},exportFormFields:function(e){return this.ej2Instances.exportFormFields(e)},exportFormFieldsAsObject:function(){return this.ej2Instances.exportFormFieldsAsObject()},importAnnotations:function(e){return this.ej2Instances.importAnnotations(e)},importFormFields:function(e){return this.ej2Instances.importFormFields(e)},load:function(e,t){return this.ej2Instances.load(e,t)},redo:function(){return this.ej2Instances.redo()},renderPdfPages:function(e){return this.ej2Instances.renderPdfPages(e)},requiredModules:function(){return this.ej2Instances.requiredModules()},saveAsBlob:function(){return this.ej2Instances.saveAsBlob()},setJsonData:function(e){return this.ej2Instances.setJsonData(e)},undo:function(){return this.ej2Instances.undo()},unload:function(){return this.ej2Instances.unload()},updateViewerContainer:function(){return this.ej2Instances.updateViewerContainer()}}}),h={name:"ejs-pdfviewer",install:function(e){e.component(h.name,m)}};e.PdfViewerComponent=m,e.PdfViewerPlugin=h,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=ej2-vue-pdfviewer.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
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', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', '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 deleteAnnotations: function () {\n return this.ej2Instances.deleteAnnotations();\n },\n download: function () {\n return this.ej2Instances.download();\n },\n exportAnnotations: function () {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject: function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields: function (path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject: function () {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations: function (importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields: function (formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load: function (document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo: function () {\n return this.ej2Instances.redo();\n },\n renderPdfPages: function (jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob: function () {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo: function () {\n return this.ej2Instances.undo();\n },\n unload: function () {\n return this.ej2Instances.unload();\n },\n updateViewerContainer: function () {\n return this.ej2Instances.updateViewerContainer();\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","deleteAnnotations","download","exportAnnotations","exportAnnotationsAsObject","exportFormFields","path","exportFormFieldsAsObject","importAnnotations","importData","importFormFields","formFields","load","document","password","redo","renderPdfPages","jsonData","requiredModules","saveAsBlob","setJsonData","undo","unload","updateViewerContainer","PdfViewerPlugin","install","Vue","component"],"mappings":"wZAGO,IAAIA,GAAc,eAAgB,UAAW,sBAAuB,6BAA8B,qBAAsB,4BAA6B,cAAe,eAAgB,gBAAiB,iBAAkB,oBAAqB,mBAAoB,sBAAuB,mBAAoB,eAAgB,mBAAoB,gBAAiB,mBAAoB,0BAA2B,iBAAkB,qBAAsB,iBAAkB,mBAAoB,6BAA8B,iBAAkB,6BAA8B,kBAAmB,sBAAuB,0BAA2B,yBAA0B,4BAA6B,mBAAoB,0BAA2B,oBAAqB,kBAAmB,cAAe,YAAa,wBAAyB,mBAAoB,yB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ewer.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', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', '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 deleteAnnotations: function () {\n return this.ej2Instances.deleteAnnotations();\n },\n download: function () {\n return this.ej2Instances.download();\n },\n exportAnnotations: function () {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject: function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields: function (path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject: function () {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations: function (importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields: function (formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load: function (document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo: function () {\n return this.ej2Instances.redo();\n },\n renderPdfPages: function (jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob: function () {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo: function () {\n return this.ej2Instances.undo();\n },\n unload: function () {\n return this.ej2Instances.unload();\n },\n updateViewerContainer: function () {\n return this.ej2Instances.updateViewerContainer();\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","deleteAnnotations","download","exportAnnotations","exportAnnotationsAsObject","exportFormFields","path","exportFormFieldsAsObject","importAnnotations","importData","importFormFields","formFields","load","document","password","redo","renderPdfPages","jsonData","requiredModules","saveAsBlob","setJsonData","undo","unload","updateViewerContainer","PdfViewerPlugin","install","Vue","component"],"mappings":"wZAGO,IAAIA,GAAc,eAAgB,UAAW,sBAAuB,6BAA8B,qBAAsB,4BAA6B,cAAe,eAAgB,gBAAiB,iBAA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M,WACF,OAAOrE,KAAKE,aAAamE,QAE7BC,OAAQ,WACJ,OAAOtE,KAAKE,aAAaoE,UAE7BC,sBAAuB,WACnB,OAAOvE,KAAKE,aAAaqE,4BAI1BC,GACP9E,KAAM,gBACN+E,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAgB9E,KAAMF"}
|
|
@@ -2,7 +2,7 @@ import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
|
|
|
2
2
|
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
|
-
const properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
5
|
+
const properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
6
6
|
const modelProps = [];
|
|
7
7
|
const testProp = getProps({ props: properties });
|
|
8
8
|
const props = testProp[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-pdfviewer.es2015.js","sources":["../src/es6/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 const properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * `ejs-pdfviewer` represents the VueJS PdfViewer Component.\n * ```vue\n * <ejs-pdfviewer></ejs-pdfviewer>\n * ```\n */\nexport let PdfViewerComponent = vueDefineComponent({\n name: 'PdfViewerComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\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() {\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(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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() {\n this.updated();\n },\n deleteAnnotations() {\n return this.ej2Instances.deleteAnnotations();\n },\n download() {\n return this.ej2Instances.download();\n },\n exportAnnotations() {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject() {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields(path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject() {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations(importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields(formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load(document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo() {\n return this.ej2Instances.redo();\n },\n renderPdfPages(jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules() {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob() {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData(jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo() {\n return this.ej2Instances.undo();\n },\n unload() {\n return this.ej2Instances.unload();\n },\n updateViewerContainer() {\n return this.ej2Instances.updateViewerContainer();\n },\n }\n});\nexport const PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install(Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAGO,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,eAAe,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,8BAA8B,EAAE,QAAQ,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAE,QAAQ,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,WAAW,E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,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;KAC3D;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-pdfviewer.es2015.js","sources":["../src/es6/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 const properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * `ejs-pdfviewer` represents the VueJS PdfViewer Component.\n * ```vue\n * <ejs-pdfviewer></ejs-pdfviewer>\n * ```\n */\nexport let PdfViewerComponent = vueDefineComponent({\n name: 'PdfViewerComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\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() {\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(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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() {\n this.updated();\n },\n deleteAnnotations() {\n return this.ej2Instances.deleteAnnotations();\n },\n download() {\n return this.ej2Instances.download();\n },\n exportAnnotations() {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject() {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields(path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject() {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations(importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields(formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load(document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo() {\n return this.ej2Instances.redo();\n },\n renderPdfPages(jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules() {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob() {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData(jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo() {\n return this.ej2Instances.undo();\n },\n unload() {\n return this.ej2Instances.unload();\n },\n updateViewerContainer() {\n return this.ej2Instances.updateViewerContainer();\n },\n }\n});\nexport const PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install(Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAGO,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,eAAe,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,8BAA8B,EAAE,QAAQ,EAAE,mBAAmB,EAAE,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OAAO,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;SACpD;KACJ;CACJ,CAAC,CAAC;AACH,AAAO,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,eAAe;IACrB,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;KAC3D;CACJ;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
|
|
|
2
2
|
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
|
-
var properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
5
|
+
var properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
6
6
|
var modelProps = [];
|
|
7
7
|
var testProp = getProps({ props: properties });
|
|
8
8
|
var props = testProp[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-pdfviewer.es5.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', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', '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 deleteAnnotations: function () {\n return this.ej2Instances.deleteAnnotations();\n },\n download: function () {\n return this.ej2Instances.download();\n },\n exportAnnotations: function () {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject: function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields: function (path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject: function () {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations: function (importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields: function (formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load: function (document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo: function () {\n return this.ej2Instances.redo();\n },\n renderPdfPages: function (jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob: function () {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo: function () {\n return this.ej2Instances.undo();\n },\n unload: function () {\n return this.ej2Instances.unload();\n },\n updateViewerContainer: function () {\n return this.ej2Instances.updateViewerContainer();\n },\n }\n});\nexport var PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install: function (Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAGO,IAAI,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,kBAAkB,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,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACrD;QACD,IAAI,EAAE,YAAY;YACd,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;SACnC;QACD,cAAc,EAAE,UAAU,QAAQ,EAAE;YAChC,OAAO,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;SACrD;QACD,eAAe,EAAE,YAAY;YACzB,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;SAC9C;QACD,UAAU,EAAE,YAAY;YACpB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;SACzC;QACD,WAAW,EAAE,UAAU,QAAQ,EAAE;YAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SAClD;QACD,IAAI,EAAE,YAAY;YACd,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;SACnC;QACD,MAAM,EAAE,YAAY;YAChB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;SACrC;QACD,qBAAqB,EAAE,YAAY;YAC/B,OAAO,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;SACpD;KACJ;CACJ,CAAC,CAAC;AACH,AAAO,IAAI,eAAe,GAAG;IACzB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,UAAU,GAAG,EAAE;QACpB,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;KAC3D;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-pdfviewer.es5.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', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', '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 deleteAnnotations: function () {\n return this.ej2Instances.deleteAnnotations();\n },\n download: function () {\n return this.ej2Instances.download();\n },\n exportAnnotations: function () {\n return this.ej2Instances.exportAnnotations();\n },\n exportAnnotationsAsObject: function () {\n return this.ej2Instances.exportAnnotationsAsObject();\n },\n exportFormFields: function (path) {\n return this.ej2Instances.exportFormFields(path);\n },\n exportFormFieldsAsObject: function () {\n return this.ej2Instances.exportFormFieldsAsObject();\n },\n importAnnotations: function (importData) {\n return this.ej2Instances.importAnnotations(importData);\n },\n importFormFields: function (formFields) {\n return this.ej2Instances.importFormFields(formFields);\n },\n load: function (document, password) {\n return this.ej2Instances.load(document, password);\n },\n redo: function () {\n return this.ej2Instances.redo();\n },\n renderPdfPages: function (jsonData) {\n return this.ej2Instances.renderPdfPages(jsonData);\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n saveAsBlob: function () {\n return this.ej2Instances.saveAsBlob();\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n undo: function () {\n return this.ej2Instances.undo();\n },\n unload: function () {\n return this.ej2Instances.unload();\n },\n updateViewerContainer: function () {\n return this.ej2Instances.updateViewerContainer();\n },\n }\n});\nexport var PdfViewerPlugin = {\n name: 'ejs-pdfviewer',\n install: function (Vue) {\n Vue.component(PdfViewerPlugin.name, PdfViewerComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAGO,IAAI,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,eAAe,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,8BAA8B,EAAE,QAAQ,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,qBAAqB,EAAE,qBAAqB,E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CAAC,QAAQ,CAAC,CAAC;SACrD;QACD,eAAe,EAAE,YAAY;YACzB,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;SAC9C;QACD,UAAU,EAAE,YAAY;YACpB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;SACzC;QACD,WAAW,EAAE,UAAU,QAAQ,EAAE;YAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SAClD;QACD,IAAI,EAAE,YAAY;YACd,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;SACnC;QACD,MAAM,EAAE,YAAY;YAChB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;SACrC;QACD,qBAAqB,EAAE,YAAY;YAC/B,OAAO,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;SACpD;KACJ;CACJ,CAAC,CAAC;AACH,AAAO,IAAI,eAAe,GAAG;IACzB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,UAAU,GAAG,EAAE;QACpB,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;KAC3D;CACJ;;;;;"}
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@syncfusion/ej2-base": "26.1.35-813929",
|
|
35
35
|
"@syncfusion/ej2-vue-base": "26.1.35-7502",
|
|
36
|
-
"@syncfusion/ej2-pdfviewer": "26.1.
|
|
36
|
+
"@syncfusion/ej2-pdfviewer": "26.1.51-4568"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "Essential JS 2 PDF viewer Component for Vue",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"ci-publish": "gulp ci-publish",
|
|
58
58
|
"compile": "gulp ci-compile && gulp vue-global-script"
|
|
59
59
|
},
|
|
60
|
-
"version": "26.1.
|
|
60
|
+
"version": "26.1.51-4568",
|
|
61
61
|
"sideEffects": false
|
|
62
62
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
2
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
3
3
|
import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
|
|
4
|
-
export var properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
4
|
+
export var properties = ['isLazyUpdate', 'plugins', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotationToolbarSettings', 'annotations', 'areaSettings', 'arrowSettings', 'circleSettings', 'contextMenuOption', 'customStampItems', 'customStampSettings', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar','fitPagesToUniformWidth', 'enableBookmark', 'enableCommentPanel', 'enableDownload', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTaggedPDF', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'highlightSettings', 'httpResponseType', 'hyperlinkOpenState', 'interactionMode', 'isCommandPanelOpen', 'isExtractText', 'isSignatureEditable', 'isThumbnailViewOpen', 'lineSettings', 'locale', 'measurementSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showNotificationDialog', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseover', 'annotationMove', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'beforeRenderPdfPage', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
|
|
5
5
|
export var modelProps = [];
|
|
6
6
|
export var testProp = getProps({ props: properties });
|
|
7
7
|
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|