@syncfusion/ej2-vue-pdfviewer 34.2.8 → 35.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -60
- 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 +125 -3
- package/dist/es6/ej2-vue-pdfviewer.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-pdfviewer.es5.js +129 -3
- package/dist/es6/ej2-vue-pdfviewer.es5.js.map +1 -1
- package/package.json +4 -4
- package/pdfcomparer.d.ts +4 -0
- package/pdfcomparer.js +4 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/pdfcomparer/index.d.ts +1 -0
- package/src/pdfcomparer/index.js +1 -0
- package/src/pdfcomparer/pdfcomparer.component.d.ts +36 -0
- package/src/pdfcomparer/pdfcomparer.component.js +113 -0
- package/src/pdfviewer/pdfviewer.component.d.ts +5 -0
- package/src/pdfviewer/pdfviewer.component.js +16 -1
- package/styles/bds-lite.css +0 -1
- package/styles/bds-lite.scss +0 -1
- package/styles/bds.css +0 -1
- package/styles/bds.scss +0 -1
- package/styles/bootstrap-dark-lite.css +0 -1
- package/styles/bootstrap-dark-lite.scss +0 -1
- package/styles/bootstrap-dark.css +0 -1
- package/styles/bootstrap-dark.scss +0 -1
- package/styles/bootstrap-lite.css +0 -1
- package/styles/bootstrap-lite.scss +0 -1
- package/styles/bootstrap.css +0 -1
- package/styles/bootstrap.scss +0 -1
- package/styles/bootstrap4-lite.css +0 -1
- package/styles/bootstrap4-lite.scss +0 -1
- package/styles/bootstrap4.css +0 -1
- package/styles/bootstrap4.scss +0 -1
- package/styles/bootstrap5-dark-lite.css +0 -1
- package/styles/bootstrap5-dark-lite.scss +0 -1
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5-dark.scss +0 -1
- package/styles/bootstrap5-lite.css +0 -1
- package/styles/bootstrap5-lite.scss +0 -1
- package/styles/bootstrap5.3-lite.css +0 -1
- package/styles/bootstrap5.3-lite.scss +0 -1
- package/styles/bootstrap5.3.css +0 -1
- package/styles/bootstrap5.3.scss +0 -1
- package/styles/bootstrap5.css +0 -1
- package/styles/bootstrap5.scss +0 -1
- package/styles/fabric-dark-lite.css +0 -1
- package/styles/fabric-dark-lite.scss +0 -1
- package/styles/fabric-dark.css +0 -1
- package/styles/fabric-dark.scss +0 -1
- package/styles/fabric-lite.css +0 -1
- package/styles/fabric-lite.scss +0 -1
- package/styles/fabric.css +0 -1
- package/styles/fabric.scss +0 -1
- package/styles/fluent-dark-lite.css +0 -1
- package/styles/fluent-dark-lite.scss +0 -1
- package/styles/fluent-dark.css +0 -1
- package/styles/fluent-dark.scss +0 -1
- package/styles/fluent-lite.css +0 -1
- package/styles/fluent-lite.scss +0 -1
- package/styles/fluent.css +0 -1
- package/styles/fluent.scss +0 -1
- package/styles/fluent2-lite.css +0 -1
- package/styles/fluent2-lite.scss +0 -1
- package/styles/fluent2.css +0 -1
- package/styles/fluent2.scss +0 -1
- package/styles/highcontrast-light-lite.css +0 -1
- package/styles/highcontrast-light-lite.scss +0 -1
- package/styles/highcontrast-light.css +0 -1
- package/styles/highcontrast-light.scss +0 -1
- package/styles/highcontrast-lite.css +0 -1
- package/styles/highcontrast-lite.scss +0 -1
- package/styles/highcontrast.css +0 -1
- package/styles/highcontrast.scss +0 -1
- package/styles/material-dark-lite.css +0 -1
- package/styles/material-dark-lite.scss +0 -1
- package/styles/material-dark.css +0 -1
- package/styles/material-dark.scss +0 -1
- package/styles/material-lite.css +0 -1
- package/styles/material-lite.scss +0 -1
- package/styles/material.css +0 -1
- package/styles/material.scss +0 -1
- package/styles/material3-dark-lite.css +0 -1
- package/styles/material3-dark-lite.scss +0 -1
- package/styles/material3-dark.css +0 -1
- package/styles/material3-dark.scss +0 -1
- package/styles/material3-lite.css +0 -1
- package/styles/material3-lite.scss +0 -1
- package/styles/material3.css +0 -1
- package/styles/material3.scss +0 -1
- package/styles/pdfviewer/bds.css +0 -1
- package/styles/pdfviewer/bds.scss +0 -1
- package/styles/pdfviewer/bootstrap-dark.css +0 -1
- package/styles/pdfviewer/bootstrap-dark.scss +0 -1
- package/styles/pdfviewer/bootstrap.css +0 -1
- package/styles/pdfviewer/bootstrap.scss +0 -1
- package/styles/pdfviewer/bootstrap4.css +0 -1
- package/styles/pdfviewer/bootstrap4.scss +0 -1
- package/styles/pdfviewer/bootstrap5-dark.css +0 -1
- package/styles/pdfviewer/bootstrap5-dark.scss +0 -1
- package/styles/pdfviewer/bootstrap5.3.css +0 -1
- package/styles/pdfviewer/bootstrap5.3.scss +0 -1
- package/styles/pdfviewer/bootstrap5.css +0 -1
- package/styles/pdfviewer/bootstrap5.scss +0 -1
- package/styles/pdfviewer/fabric-dark.css +0 -1
- package/styles/pdfviewer/fabric-dark.scss +0 -1
- package/styles/pdfviewer/fabric.css +0 -1
- package/styles/pdfviewer/fabric.scss +0 -1
- package/styles/pdfviewer/fluent-dark.css +0 -1
- package/styles/pdfviewer/fluent-dark.scss +0 -1
- package/styles/pdfviewer/fluent.css +0 -1
- package/styles/pdfviewer/fluent.scss +0 -1
- package/styles/pdfviewer/fluent2.css +0 -1
- package/styles/pdfviewer/fluent2.scss +0 -1
- package/styles/pdfviewer/highcontrast-light.css +0 -1
- package/styles/pdfviewer/highcontrast-light.scss +0 -1
- package/styles/pdfviewer/highcontrast.css +0 -1
- package/styles/pdfviewer/highcontrast.scss +0 -1
- package/styles/pdfviewer/material-dark.css +0 -1
- package/styles/pdfviewer/material-dark.scss +0 -1
- package/styles/pdfviewer/material.css +0 -1
- package/styles/pdfviewer/material.scss +0 -1
- package/styles/pdfviewer/material3-dark.css +0 -1
- package/styles/pdfviewer/material3-dark.scss +0 -1
- package/styles/pdfviewer/material3.css +0 -1
- package/styles/pdfviewer/material3.scss +0 -1
- package/styles/pdfviewer/tailwind-dark.css +0 -1
- package/styles/pdfviewer/tailwind-dark.scss +0 -1
- package/styles/pdfviewer/tailwind.css +0 -1
- package/styles/pdfviewer/tailwind.scss +0 -1
- package/styles/pdfviewer/tailwind3.css +0 -1
- package/styles/pdfviewer/tailwind3.scss +0 -1
- package/styles/tailwind-dark-lite.css +0 -1
- package/styles/tailwind-dark-lite.scss +0 -1
- package/styles/tailwind-dark.css +0 -1
- package/styles/tailwind-dark.scss +0 -1
- package/styles/tailwind-lite.css +0 -1
- package/styles/tailwind-lite.scss +0 -1
- package/styles/tailwind.css +0 -1
- package/styles/tailwind.scss +0 -1
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3-lite.scss +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/tailwind3.scss +0 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Trusted by the world's leading companies
|
|
|
18
18
|
<img src="https://ej2.syncfusion.com/home/images/trusted_companies.png" alt="Bootstrap logo">
|
|
19
19
|
</a>
|
|
20
20
|
</p>
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
> **Using this package with an AI coding agent**
|
|
23
23
|
>
|
|
24
24
|
> Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
|
|
@@ -71,24 +71,23 @@ Vue.use(PdfViewerPlugin);
|
|
|
71
71
|
|
|
72
72
|
### Adding CSS references for PDF Viewer
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
Add CSS references needed for PDF Viewer in **style** section of the **App.vue** file from **../node_modules/@syncfusion** package folder.
|
|
75
75
|
|
|
76
|
-
```
|
|
77
|
-
|
|
76
|
+
```html
|
|
77
|
+
<style>
|
|
78
|
+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
|
|
79
|
+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
|
|
80
|
+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
|
|
81
|
+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
|
|
82
|
+
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
|
|
83
|
+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
|
|
84
|
+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
|
|
85
|
+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
|
|
86
|
+
@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
|
|
87
|
+
@import "../node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css";
|
|
88
|
+
</style>
|
|
78
89
|
```
|
|
79
90
|
|
|
80
|
-
The Tailwind 3 theme package includes an `index.css` file that automatically imports all required PDF Viewer styles. Add the required PDF Viewer theme style reference in the **\<style\>** section.
|
|
81
|
-
|
|
82
|
-
{% tabs %}
|
|
83
|
-
{% highlight css tabtitle="~/src/App.vue" %}
|
|
84
|
-
|
|
85
|
-
@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/pdfviewer/index.css';
|
|
86
|
-
|
|
87
|
-
{% endhighlight %}
|
|
88
|
-
{% endtabs %}
|
|
89
|
-
|
|
90
|
-
For more themes, see the [themes documentation](https://ej2.syncfusion.com/vue/documentation/appearance/theme#theme-packages).
|
|
91
|
-
|
|
92
91
|
## Add PDF Viewer component
|
|
93
92
|
|
|
94
93
|
Add the Vue PDF Viewer by using **ejs-pdfviewer** selector in **template** section of the **App.vue** file.
|
|
@@ -96,7 +95,7 @@ Add the Vue PDF Viewer by using **ejs-pdfviewer** selector in **template** secti
|
|
|
96
95
|
```html
|
|
97
96
|
<template>
|
|
98
97
|
<div id="app">
|
|
99
|
-
<ejs-pdfviewer id="pdfViewer" :
|
|
98
|
+
<ejs-pdfviewer id="pdfViewer" :serviceUrl="serviceUrl" :documentPath="documentPath"> </ejs-pdfviewer>
|
|
100
99
|
</div>
|
|
101
100
|
</template>
|
|
102
101
|
|
|
@@ -108,8 +107,8 @@ export default {
|
|
|
108
107
|
name: 'app',
|
|
109
108
|
data () {
|
|
110
109
|
return {
|
|
111
|
-
|
|
112
|
-
documentPath:
|
|
110
|
+
serviceUrl:"https://ej2services.syncfusion.com/production/web-services/api/pdfviewer",
|
|
111
|
+
documentPath:"PDF_Succinctly.pdf"
|
|
113
112
|
};
|
|
114
113
|
},
|
|
115
114
|
provide: {
|
|
@@ -159,47 +158,6 @@ Product support is available through the following mediums.
|
|
|
159
158
|
* [Request feature or report bug](https://www.syncfusion.com/feedback/pdf-viewer-sdk?utm_source=npm&utm_medium=listing&utm_campaign=Vue-pdf-viewer-npm)
|
|
160
159
|
* Live chat
|
|
161
160
|
|
|
162
|
-
## Other Popular Vue Components
|
|
163
|
-
|
|
164
|
-
Explore other popular Syncfusion<sup>®</sup> Vue components curated from UI components, standalone SDKs, and document solution suites.
|
|
165
|
-
|
|
166
|
-
<table>
|
|
167
|
-
<tr>
|
|
168
|
-
<td align="center">
|
|
169
|
-
<a href="https://www.syncfusion.com/vue-components/vue-grid">Vue DataGrid</a>
|
|
170
|
-
</td>
|
|
171
|
-
<td align="center">
|
|
172
|
-
<a href="https://www.syncfusion.com/vue-components/vue-charts">Vue Charts</a>
|
|
173
|
-
</td>
|
|
174
|
-
<td align="center">
|
|
175
|
-
<a href="https://www.syncfusion.com/vue-components/vue-file-manager">Vue File Manager</a>
|
|
176
|
-
</td>
|
|
177
|
-
<td align="center">
|
|
178
|
-
<a href="https://www.syncfusion.com/gantt-sdk/vue-gantt-chart">Vue Gantt Chart</a>
|
|
179
|
-
</td>
|
|
180
|
-
<td align="center">
|
|
181
|
-
<a href="https://www.syncfusion.com/diagram-sdk/vue-diagram">Vue Diagram</a>
|
|
182
|
-
</td>
|
|
183
|
-
</tr>
|
|
184
|
-
<tr>
|
|
185
|
-
<td align="center">
|
|
186
|
-
<a href="https://www.syncfusion.com/scheduler-sdk/vue-scheduler">Vue Scheduler</a>
|
|
187
|
-
</td>
|
|
188
|
-
<td align="center">
|
|
189
|
-
<a href="https://www.syncfusion.com/docx-editor-sdk/vue-docx-editor">Vue DOCX Editor</a>
|
|
190
|
-
</td>
|
|
191
|
-
<td align="center">
|
|
192
|
-
<a href="https://www.syncfusion.com/spreadsheet-editor-sdk/vue-spreadsheet-editor">Vue Spreadsheet Editor</a>
|
|
193
|
-
</td>
|
|
194
|
-
<td align="center">
|
|
195
|
-
<a href="https://www.syncfusion.com/rich-text-editor-sdk/vue-rich-text-editor">Vue Rich Text Editor</a>
|
|
196
|
-
</td>
|
|
197
|
-
<td align="center">
|
|
198
|
-
<a href="https://www.syncfusion.com/vue-components/vue-maps-library">Vue Maps</a>
|
|
199
|
-
</td>
|
|
200
|
-
</tr>
|
|
201
|
-
</table>
|
|
202
|
-
|
|
203
161
|
## Changelog
|
|
204
162
|
|
|
205
163
|
Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/pdfviewer/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=Vue-pdf-viewer-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-pdfviewer.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 35.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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=e||self).ej={},e.ej2Pdfviewer,e.ej2VueBase,e.ej2Base)}(this,function(t,n,i,o){"use strict";var e=["isLazyUpdate","plugins","DropdownFieldSettings","ajaxRequestSettings","annotationDrawingOptions","annotationSelectorSettings","annotationSettings","annotations","areaSettings","arrowSettings","checkBoxFieldSettings","circleSettings","commandManager","contextMenuOption","contextMenuSettings","currentPageNumber","customContextMenuItems","customFonts","customStamp","customStampSettings","dateTimeFormat","designerMode","disableContextMenuItems","disableDefaultContextMenu","distanceSettings","documentLinkSettings","documentPath","downloadFileName","drawingObject","enableAccessibilityTags","enableAnnotation","enableAnnotationToolbar","enableAutoComplete","enableBookmark","enableBookmarkStyles","enableCommentPanel","enableDesktopMode","enableDownload","enableFormDesigner","enableFormDesignerToolbar","enableFormFields","enableFormFieldsValidation","enableFreeText","enableHandwrittenSignature","enableHtmlSanitizer","enableHyperlink","enableImportAnnotationMeasurement","enableInkAnnotation","enableInkEraser","enableLinkAnnotation","enableLocalStorage","enableMagnification","enableMeasureAnnotation","enableMultiLineOverlap","enableMultiPageAnnotation","enableNavigation","enableNavigationToolbar","enablePageOrganizer","enablePersistence","enablePinchZoom","enablePrint","enablePrintRotation","enableRedactionToolbar","enableRtl","enableShapeAnnotation","enableShapeLabel","enableStampAnnotations","enableStickyNotesAnnotation","enableTextMarkupAnnotation","enableTextMarkupResizer","enableTextSearch","enableTextSelection","enableThumbnail","enableToolbar","enableZoomOptimization","exportAnnotationFileName","extractTextOption","formFieldCollections","formFields","freeTextSettings","handWrittenSignatureSettings","height","hideEmptyDigitalSignatureFields","hideSaveSignature","highlightSettings","hyperlinkOpenState","initialDialogSettings","initialFieldSettings","initialRenderPages","inkAnnotationSettings","inkEraserSize","interactionMode","isAnnotationToolbarOpen","isAnnotationToolbarVisible","isBookmarkPanelOpen","isCommandPanelOpen","isDocumentEdited","isExtractText","isFormDesignerToolbarVisible","isFormFieldDocument","isInitialFieldToolbarSelection","isMaintainSelection","isPageOrganizerOpen","isRedactionToolbarVisible","isSignatureEditable","isThumbnailViewOpen","isValidFreeText","lineSettings","listBoxFieldSettings","locale","maxZoom","measurementSettings","minZoom","pageCount","pageOrganizerSettings","passwordFieldSettings","perimeterSettings","polygonSettings","printMode","printScaleFactor","radioButtonFieldSettings","radiusSettings","rectangleSettings","redactionSettings","resourceUrl","restrictZoomRequest","retryCount","retryStatusCodes","retryTimeout","scrollSettings","selectedItems","serverActionSettings","serviceUrl","shapeLabelSettings","showCustomContextMenuBottom","showDigitalSignatureAppearance","showNotificationDialog","signatureDialogSettings","signatureFieldSettings","signatureFitMode","squigglySettings","stampSettings","stickyNotesSettings","strikethroughSettings","textFieldSettings","textSearchColorSettings","tileRenderingSettings","toolbarSettings","underlineSettings","volumeSettings","webLinkSettings","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","customContextMenuBeforeOpen","customContextMenuSelect","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","keyboardCustomCommands","moveSignature","pageChange","pageClick","pageMouseover","pageOrganizerSaveAs","pageRenderComplete","pageRenderInitiate","printEnd","printStart","removeSignature","resizeSignature","resourcesLoaded","signaturePropertiesChange","signatureSelect","signatureUnselect","textSearchComplete","textSearchHighlight","textSearchStart","textSelectionEnd","textSelectionStart","thumbnailClick","toolbarClick","validateFormFields","zoomChange","pageOrganizerZoomChanged"],s=[],a=i.getProps({props:e}),r=a[0],a=a[1],l=Object.keys(a);l.push("modelchanged","update:modelValue");for(var c=0,u=s;c<u.length;c++)l.push("update:"+u[c]);var d=i.vueDefineComponent({name:"PdfViewerComponent",mixins:[i.ComponentBase],props:r,watch:a,emits:l,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.PdfViewer({}),propKeys:e,models:s,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!i.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=null;return(i.isExecute?e:i.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=this.templateCollection[i];if(o&&o.length){for(var s=0,a=o;s<a.length;s++){var r=a[s];this.destroyPortals(r)}delete this.templateCollection[i]}}},setProperties:function(n,e){var i=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){i.models.map(function(e){t!==e||/datasource/i.test(t)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(i.$emit("update:"+t,n[t]),i.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},addAnnotation:function(e){return this.ej2Instances.addAnnotation(e)},addCustomMenu:function(e,t,n){return this.ej2Instances.addCustomMenu(e,t,n)},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()},destroy:function(){return this.ej2Instances.destroy()},download:function(){return this.ej2Instances.download()},exportAnnotation:function(e){return this.ej2Instances.exportAnnotation(e)},exportAnnotationsAsBase64String:function(e){return this.ej2Instances.exportAnnotationsAsBase64String(e)},exportAnnotationsAsObject:function(e){return this.ej2Instances.exportAnnotationsAsObject(e)},exportFormFields:function(e,t){return this.ej2Instances.exportFormFields(e,t)},exportFormFieldsAsObject:function(e){return this.ej2Instances.exportFormFieldsAsObject(e)},extractPages:function(e){return this.ej2Instances.extractPages(e)},extractText:function(e,t){return this.ej2Instances.extractText(e,t)},focusFormField:function(e){return this.ej2Instances.focusFormField(e)},getPageInfo:function(e){return this.ej2Instances.getPageInfo(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)}}}),m={name:"ejs-pdfviewer",install:function(e){e.component(m.name,d)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.PdfViewerComponent=d,t.PdfViewerPlugin=m,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
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=e||self).ej={},e.ej2Pdfviewer,e.ej2VueBase,e.ej2Base)}(this,function(t,n,i,o){"use strict";var e=["isLazyUpdate","plugins","DropdownFieldSettings","ajaxRequestSettings","annotationDrawingOptions","annotationSelectorSettings","annotationSettings","annotations","areaSettings","arrowSettings","checkBoxFieldSettings","circleSettings","commandManager","contextMenuOption","contextMenuSettings","currentPageNumber","customContextMenuItems","customFonts","customStamp","customStampSettings","customTextStamps","dateTimeFormat","designerMode","disableContextMenuItems","disableDefaultContextMenu","distanceSettings","documentLinkSettings","documentPath","downloadFileName","drawingObject","enableAccessibilityTags","enableAnnotation","enableAnnotationToolbar","enableAutoComplete","enableBookmark","enableBookmarkStyles","enableCollaborativeEditing","enableCommentPanel","enableDesktopMode","enableDownload","enableFormDesigner","enableFormDesignerToolbar","enableFormFields","enableFormFieldsValidation","enableFreeText","enableHandwrittenSignature","enableHtmlSanitizer","enableHyperlink","enableImportAnnotationMeasurement","enableInkAnnotation","enableInkEraser","enableLinkAnnotation","enableLocalStorage","enableMagnification","enableMeasureAnnotation","enableMultiLineOverlap","enableMultiPageAnnotation","enableNavigation","enableNavigationToolbar","enablePageOrganizer","enablePersistence","enablePinchZoom","enablePrint","enablePrintRotation","enableRedactionToolbar","enableRtl","enableShapeAnnotation","enableShapeLabel","enableStampAnnotations","enableStickyNotesAnnotation","enableTextMarkupAnnotation","enableTextMarkupResizer","enableTextSearch","enableTextSelection","enableThumbnail","enableToolbar","enableWebMcp","enableZoomOptimization","exportAnnotationFileName","extractTextOption","formFieldCollections","formFields","freeTextSettings","handWrittenSignatureSettings","height","hideEmptyDigitalSignatureFields","hideSaveSignature","highlightSettings","hyperlinkOpenState","initialDialogSettings","initialFieldSettings","initialRenderPages","inkAnnotationSettings","inkEraserSize","interactionMode","isAnnotationToolbarOpen","isAnnotationToolbarVisible","isBookmarkPanelOpen","isCommandPanelOpen","isDocumentEdited","isExtractText","isFormDesignerToolbarVisible","isFormFieldDocument","isInitialFieldToolbarSelection","isMaintainSelection","isPageOrganizerOpen","isRedactionToolbarVisible","isSignatureEditable","isThumbnailViewOpen","isValidFreeText","lineSettings","listBoxFieldSettings","locale","maxZoom","measurementSettings","minZoom","pageCount","pageOrganizerSettings","passwordFieldSettings","perimeterSettings","polygonSettings","printMode","printScaleFactor","radioButtonFieldSettings","radiusSettings","rectangleSettings","redactionSettings","resourceUrl","restrictZoomRequest","retryCount","retryStatusCodes","retryTimeout","scrollSettings","selectedItems","serverActionSettings","serviceUrl","shapeLabelSettings","showCustomContextMenuBottom","showDigitalSignatureAppearance","showNotificationDialog","signatureDialogSettings","signatureFieldSettings","signatureFitMode","squigglySettings","stampSettings","stickyNotesSettings","strikethroughSettings","textFieldSettings","textSearchColorSettings","tileRenderingSettings","toolbarSettings","underlineSettings","volumeSettings","webLinkSettings","webMcpSettings","width","zoomMode","zoomValue","addSignature","ajaxRequestFailed","ajaxRequestInitiate","ajaxRequestSuccess","annotationAdd","annotationChanged","annotationDoubleClick","annotationMouseLeave","annotationMouseover","annotationMove","annotationMoving","annotationPropertiesChange","annotationRemove","annotationResize","annotationSelect","annotationUnSelect","beforeAddFreeText","beforeWebMcpToolExecute","bookmarkClick","buttonFieldClick","commentAdd","commentDelete","commentEdit","commentSelect","commentStatusChanged","created","customContextMenuBeforeOpen","customContextMenuSelect","documentChanged","documentLoad","documentLoadFailed","documentUnload","downloadEnd","downloadStart","exportFailed","exportStart","exportSuccess","extractTextCompleted","formFieldAdd","formFieldChanged","formFieldClick","formFieldDoubleClick","formFieldFocusOut","formFieldMouseLeave","formFieldMouseover","formFieldMove","formFieldPropertiesChange","formFieldRemove","formFieldResize","formFieldSelect","formFieldUnselect","hyperlinkClick","hyperlinkMouseOver","importFailed","importStart","importSuccess","keyboardCustomCommands","moveSignature","pageChange","pageClick","pageMouseover","pageOrganizerSaveAs","pageOrganizerSaved","pageRenderComplete","pageRenderInitiate","printEnd","printStart","removeSignature","resizeSignature","resourcesLoaded","signaturePropertiesChange","signatureSelect","signatureUnselect","textSearchComplete","textSearchHighlight","textSearchStart","textSelectionEnd","textSelectionStart","thumbnailClick","toolbarClick","validateFormFields","zoomChange","pageOrganizerZoomChanged"],s=[],a=i.getProps({props:e}),r=a[0],a=a[1],l=Object.keys(a);l.push("modelchanged","update:modelValue");for(var c=0,u=s;c<u.length;c++)l.push("update:"+u[c]);var d=i.vueDefineComponent({name:"PdfViewerComponent",mixins:[i.ComponentBase],props:r,watch:a,emits:l,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.PdfViewer({}),propKeys:e,models:s,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!i.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=null;return(i.isExecute?e:i.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=this.templateCollection[i];if(o&&o.length){for(var s=0,a=o;s<a.length;s++){var r=a[s];this.destroyPortals(r)}delete this.templateCollection[i]}}},setProperties:function(n,e){var i=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){i.models.map(function(e){t!==e||/datasource/i.test(t)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(i.$emit("update:"+t,n[t]),i.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},addAnnotation:function(e){return this.ej2Instances.addAnnotation(e)},addCustomMenu:function(e,t,n){return this.ej2Instances.addCustomMenu(e,t,n)},applyPageOrganizerActions:function(e,t){return this.ej2Instances.applyPageOrganizerActions(e,t)},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()},destroy:function(){return this.ej2Instances.destroy()},download:function(){return this.ej2Instances.download()},exportAnnotation:function(e){return this.ej2Instances.exportAnnotation(e)},exportAnnotationsAsBase64String:function(e){return this.ej2Instances.exportAnnotationsAsBase64String(e)},exportAnnotationsAsObject:function(e){return this.ej2Instances.exportAnnotationsAsObject(e)},exportFormFields:function(e,t){return this.ej2Instances.exportFormFields(e,t)},exportFormFieldsAsObject:function(e){return this.ej2Instances.exportFormFieldsAsObject(e)},extractPages:function(e){return this.ej2Instances.extractPages(e)},extractText:function(e,t){return this.ej2Instances.extractText(e,t)},focusFormField:function(e){return this.ej2Instances.focusFormField(e)},getPageInfo:function(e){return this.ej2Instances.getPageInfo(e)},getPageNumberFromClientPoint:function(e){return this.ej2Instances.getPageNumberFromClientPoint(e)},getWebMcpTools:function(e){return this.ej2Instances.getWebMcpTools(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()},removeSemanticTextCompare:function(e){return this.ej2Instances.removeSemanticTextCompare(e)},requiredModules:function(){return this.ej2Instances.requiredModules()},resetFormFields:function(){return this.ej2Instances.resetFormFields()},retrieveFormFields:function(){return this.ej2Instances.retrieveFormFields()},saveAsBlob:function(){return this.ej2Instances.saveAsBlob()},semanticTextCompare:function(e,t){return this.ej2Instances.semanticTextCompare(e,t)},setJsonData:function(e){return this.ej2Instances.setJsonData(e)},showNotificationPopup:function(e){return this.ej2Instances.showNotificationPopup(e)},syncViewers:function(e,t){return this.ej2Instances.syncViewers(e,t)},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)}}}),m={name:"ejs-pdfviewer",install:function(e){e.component(m.name,d)}},p=["isLazyUpdate","plugins","comparisonOptions","enableDifferencePanel","enablePersistence","enableRtl","enableSyncScrolling","height","locale","modifiedDocumentPath","originalDocumentPath","resourceUrl","width"],h=[],r=i.getProps({props:p}),a=r[0],r=r[1],g=Object.keys(r);g.push("modelchanged","update:modelValue");for(var f=0,b=h;f<b.length;f++)g.push("update:"+b[f]);var S=i.vueDefineComponent({name:"PdfComparerComponent",mixins:[i.ComponentBase],props:a,watch:r,emits:g,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.PdfComparer({}),propKeys:p,models:h,hasChildDirective:!1,hasInjectedModules:!1,tagMapper:{},tagNameMapper:{},isVue3:!i.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=null;return(i.isExecute?e:i.gh)("div",t=o.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=this.templateCollection[i];if(o&&o.length){for(var s=0,a=o;s<a.length;s++){var r=a[s];this.destroyPortals(r)}delete this.templateCollection[i]}}},setProperties:function(n,e){var i=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){i.models.map(function(e){t!==e||/datasource/i.test(t)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(i.$emit("update:"+t,n[t]),i.$emit("modelchanged",n[t])))})})},custom:function(){this.updated()},compare:function(){return this.ej2Instances.compare()},destroy:function(){return this.ej2Instances.destroy()}}}),j={name:"ejs-pdfcomparer",install:function(e){e.component(j.name,S)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.PdfComparerComponent=S,t.PdfComparerPlugin=j,t.PdfViewerComponent=d,t.PdfViewerPlugin=m,Object.defineProperty(t,"__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":["../src/pdfviewer/pdfviewer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nexport var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationDrawingOptions', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'commandManager', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customContextMenuItems', 'customFonts', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'disableDefaultContextMenu', 'distanceSettings', 'documentLinkSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHtmlSanitizer', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableInkEraser', 'enableLinkAnnotation', 'enableLocalStorage', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePageOrganizer', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRedactionToolbar', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'extractTextOption', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'initialRenderPages', 'inkAnnotationSettings', 'inkEraserSize', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isPageOrganizerOpen', 'isRedactionToolbarVisible', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'maxZoom', 'measurementSettings', 'minZoom', 'pageCount', 'pageOrganizerSettings', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'printScaleFactor', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'redactionSettings', 'resourceUrl', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showCustomContextMenuBottom', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'squigglySettings', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'webLinkSettings', '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', 'customContextMenuBeforeOpen', 'customContextMenuSelect', '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', 'keyboardCustomCommands', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'pageOrganizerSaveAs', 'pageRenderComplete', 'pageRenderInitiate', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'resourcesLoaded', 'signaturePropertiesChange', 'signatureSelect', 'signatureUnselect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'toolbarClick', 'validateFormFields', 'zoomChange', 'pageOrganizerZoomChanged'];\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 * ```html\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 this.destroyPortals(ele);\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 addCustomMenu: function (menuItems, disableDefaultItems, appendToEnd) {\n return this.ej2Instances.addCustomMenu(menuItems, disableDefaultItems, appendToEnd);\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 destroy: function () {\n return this.ej2Instances.destroy();\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 (annotationDataFormat) {\n return this.ej2Instances.exportAnnotationsAsObject(annotationDataFormat);\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 extractPages: function (value) {\n return this.ej2Instances.extractPages(value);\n },\n extractText: function (pageIndex, options) {\n return this.ej2Instances.extractText(pageIndex, options);\n },\n focusFormField: function (field) {\n return this.ej2Instances.focusFormField(field);\n },\n getPageInfo: function (pageIndex) {\n return this.ej2Instances.getPageInfo(pageIndex);\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","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","slots","gh","isNullOrUndefined","$slots","default","methods","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","destroyPortals","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addAnnotation","annotation","addCustomMenu","menuItems","disableDefaultItems","appendToEnd","clearFormFields","formField","convertClientPointToPagePoint","clientPoint","pageNumber","convertPagePointToClientPoint","pagePoint","convertPagePointToScrollingPoint","deleteAnnotations","destroy","download","exportAnnotation","annotationDataFormat","exportAnnotationsAsBase64String","exportAnnotationsAsObject","exportFormFields","formFieldDataFormat","exportFormFieldsAsObject","extractPages","value","extractText","pageIndex","options","focusFormField","field","getPageInfo","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":"kaAGO,IAAIA,EAAa,CAAC,eAAgB,UAAW,wBAAyB,sBAAuB,2BAA4B,6BAA8B,qBAAsB,cAAe,eAAgB,gBAAiB,wBAAyB,iBAAkB,iBAAkB,oBAAqB,sBAAuB,oBAAqB,yBAA0B,cAAe,cAAe,sBAAuB,iBAAkB,eAAgB,0BAA2B,4BAA6B,mBAAoB,uBAAwB,eAAgB,mBAAoB,gBAAiB,0BAA2B,mBAAoB,0BAA2B,q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/pdfviewer/pdfviewer.component.js","../src/pdfcomparer/pdfcomparer.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nexport var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationDrawingOptions', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'commandManager', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customContextMenuItems', 'customFonts', 'customStamp', 'customStampSettings', 'customTextStamps', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'disableDefaultContextMenu', 'distanceSettings', 'documentLinkSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCollaborativeEditing', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHtmlSanitizer', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableInkEraser', 'enableLinkAnnotation', 'enableLocalStorage', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePageOrganizer', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRedactionToolbar', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableWebMcp', 'enableZoomOptimization', 'exportAnnotationFileName', 'extractTextOption', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'initialRenderPages', 'inkAnnotationSettings', 'inkEraserSize', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isPageOrganizerOpen', 'isRedactionToolbarVisible', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'maxZoom', 'measurementSettings', 'minZoom', 'pageCount', 'pageOrganizerSettings', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'printScaleFactor', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'redactionSettings', 'resourceUrl', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showCustomContextMenuBottom', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'squigglySettings', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'webLinkSettings', 'webMcpSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationChanged', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'beforeWebMcpToolExecute', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'documentChanged', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldChanged', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'keyboardCustomCommands', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'pageOrganizerSaveAs', 'pageOrganizerSaved', 'pageRenderComplete', 'pageRenderInitiate', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'resourcesLoaded', 'signaturePropertiesChange', 'signatureSelect', 'signatureUnselect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'toolbarClick', 'validateFormFields', 'zoomChange', 'pageOrganizerZoomChanged'];\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 * ```html\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 this.destroyPortals(ele);\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 addCustomMenu: function (menuItems, disableDefaultItems, appendToEnd) {\n return this.ej2Instances.addCustomMenu(menuItems, disableDefaultItems, appendToEnd);\n },\n applyPageOrganizerActions: function (actions, showPopup) {\n return this.ej2Instances.applyPageOrganizerActions(actions, showPopup);\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 destroy: function () {\n return this.ej2Instances.destroy();\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 (annotationDataFormat) {\n return this.ej2Instances.exportAnnotationsAsObject(annotationDataFormat);\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 extractPages: function (value) {\n return this.ej2Instances.extractPages(value);\n },\n extractText: function (pageIndex, options) {\n return this.ej2Instances.extractText(pageIndex, options);\n },\n focusFormField: function (field) {\n return this.ej2Instances.focusFormField(field);\n },\n getPageInfo: function (pageIndex) {\n return this.ej2Instances.getPageInfo(pageIndex);\n },\n getPageNumberFromClientPoint: function (clientPoint) {\n return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);\n },\n getWebMcpTools: function (toolNames) {\n return this.ej2Instances.getWebMcpTools(toolNames);\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 removeSemanticTextCompare: function (targetViewer) {\n return this.ej2Instances.removeSemanticTextCompare(targetViewer);\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 semanticTextCompare: function (targetViewer, options) {\n return this.ej2Instances.semanticTextCompare(targetViewer, options);\n },\n setJsonData: function (jsonData) {\n return this.ej2Instances.setJsonData(jsonData);\n },\n showNotificationPopup: function (errorString) {\n return this.ej2Instances.showNotificationPopup(errorString);\n },\n syncViewers: function (targetViewer, enable) {\n return this.ej2Instances.syncViewers(targetViewer, enable);\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","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport { PdfComparer } from '@syncfusion/ej2-pdfviewer';\nexport var properties = ['isLazyUpdate', 'plugins', 'comparisonOptions', 'enableDifferencePanel', 'enablePersistence', 'enableRtl', 'enableSyncScrolling', 'height', 'locale', 'modifiedDocumentPath', 'originalDocumentPath', 'resourceUrl', 'width'];\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-pdfcomparer` represents the VueJS PdfComparer Component.\n * ```html\n * <ejs-pdfcomparer></ejs-pdfcomparer>\n * ```\n */\nexport var PdfComparerComponent = vueDefineComponent({\n name: 'PdfComparerComponent',\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 PdfComparer({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: false,\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 this.destroyPortals(ele);\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 compare: function () {\n return this.ej2Instances.compare();\n },\n destroy: function () {\n return this.ej2Instances.destroy();\n },\n }\n});\nexport var PdfComparerPlugin = {\n name: 'ejs-pdfcomparer',\n install: function (Vue) {\n Vue.component(PdfComparerPlugin.name, PdfComparerComponent);\n }\n};\n"],"names":["properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","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","slots","gh","isNullOrUndefined","$slots","default","methods","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","destroyPortals","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addAnnotation","annotation","addCustomMenu","menuItems","disableDefaultItems","appendToEnd","applyPageOrganizerActions","actions","showPopup","clearFormFields","formField","convertClientPointToPagePoint","clientPoint","pageNumber","convertPagePointToClientPoint","pagePoint","convertPagePointToScrollingPoint","deleteAnnotations","destroy","download","exportAnnotation","annotationDataFormat","exportAnnotationsAsBase64String","exportAnnotationsAsObject","exportFormFields","formFieldDataFormat","exportFormFieldsAsObject","extractPages","value","extractText","pageIndex","options","focusFormField","field","getPageInfo","getPageNumberFromClientPoint","getWebMcpTools","toolNames","importAnnotation","importData","importFormFields","load","document","password","redo","removeSemanticTextCompare","targetViewer","requiredModules","resetFormFields","retrieveFormFields","saveAsBlob","semanticTextCompare","setJsonData","jsonData","showNotificationPopup","errorString","syncViewers","enable","undo","unload","updateFormFields","formFields","updateFormFieldsValue","fieldValue","updateViewerContainer","zoomToRect","rectangle","PdfViewerPlugin","install","Vue","component","PdfComparerComponent","PdfComparer","compare","PdfComparerPlugin"],"mappings":"kaAGO,IAAIA,EAAa,CAAC,eAAgB,UAAW,wBAAyB,sBAAuB,2BAA4B,6BAA8B,qBAAsB,cAAe,eAAgB,gBAAiB,wBAAyB,iBAAkB,iBAAkB,oBAAqB,sBAAuB,oBAAqB,yBAA0B,cAAe,cAAe,sBAAuB,mBAAoB,iBAAkB,eAAgB,0BAA2B,4BAA6B,mBAAoB,uBAAwB,eAAgB,mBAAoB,gBAAiB,0BAA2B,mBAAoB,0BAA2B,qBAAsB,iBAAkB,uBAAwB,6BAA8B,qBAAsB,oBAAqB,iBAAkB,qBAAsB,4BAA6B,mBAAoB,6BAA8B,iBAAkB,6BAA8B,sBAAuB,kBAAmB,oCAAqC,sBAAuB,kBAAmB,uBAAwB,qBAAsB,sBAAuB,0BAA2B,yBAA0B,4BAA6B,mBAAoB,0BAA2B,sBAAuB,oBAAqB,kBAAmB,cAAe,sBAAuB,yBAA0B,YAAa,wBAAyB,mBAAoB,yBAA0B,8BAA+B,6BAA8B,0BAA2B,mBAAoB,sBAAuB,kBAAmB,gBAAiB,eAAgB,yBAA0B,2BAA4B,oBAAqB,uBAAwB,aAAc,mBAAoB,+BAAgC,SAAU,kCAAmC,oBAAqB,oBAAqB,qBAAsB,wBAAyB,uBAAwB,qBAAsB,wBAAyB,gBAAiB,kBAAmB,0BAA2B,6BAA8B,sBAAuB,qBAAsB,mBAA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C,GAAqBA,EAAkBvC,OAAQ,CAC/C,IAAK,IAAIwC,EAAK,EAAGC,EAAsBF,EAAmBC,EAAKC,EAAoBzC,OAAQwC,CAAE,GAAI,CAC7F,IAAIE,EAAMD,EAAoBD,GAC9B/B,KAAKkC,eAAeD,CAAG,EAE3B,OAAOjC,KAAKY,mBAAmBiB,MAK/Cb,cAAe,SAAUmB,EAAMC,GAC3B,IAAIC,EAAQrC,KACRA,KAAKU,SACLV,KAAKK,OAAUL,KAAKK,QAASL,KAAKE,aAAaoC,aAE/CtC,KAAKE,cAAgBF,KAAKE,aAAaa,gBACvCf,KAAKE,aAAaa,eAAeoB,EAAMC,CAAY,EAEnDD,GAAQnC,KAAKK,QAAUL,KAAKK,OAAOd,QACnCL,OAAOC,KAAKgD,CAAI,EAAEI,IAAI,SAAUC,GAC5BH,EAAMhC,OAAOkC,IAAI,SAAUE,GAClBD,IAAQC,GAAY,cAAcC,KAAKF,CAAI,IACxCH,EAAM3B,OACN2B,EAAMnC,aAAayC,YAAYC,MAAM,UAAYJ,EAAKL,EAAKK,EAAI,GAG/DH,EAAMO,MAAM,UAAYJ,EAAKL,EAAKK,EAAI,EACtCH,EAAMO,MAAM,eAAgBT,EAAKK,EAAI,IAGhD,EACJ,GAGTzC,OAAQ,WACJC,KAAKkB,WAEToG,QAAS,WACL,OAAOtH,KAAKE,aAAaoH,WAE7BvD,QAAS,WACL,OAAO/D,KAAKE,aAAa6D,WAGrC,CAAC,EACUwD,EAAoB,CAC3B7H,KAAM,kBACNuH,QAAS,SAAUC,GACfA,EAAIC,UAAUI,EAAkB7H,KAAM0H,CAAoB,EAElE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
|
|
1
|
+
import { PdfViewer, PdfComparer } from '@syncfusion/ej2-pdfviewer';
|
|
2
2
|
export * from '@syncfusion/ej2-pdfviewer';
|
|
3
3
|
import { getProps, vueDefineComponent, ComponentBase, isExecute, gh } from '@syncfusion/ej2-vue-base';
|
|
4
4
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
5
|
|
|
6
|
-
const properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationDrawingOptions', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'commandManager', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customContextMenuItems', 'customFonts', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'disableDefaultContextMenu', 'distanceSettings', 'documentLinkSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHtmlSanitizer', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableInkEraser', 'enableLinkAnnotation', 'enableLocalStorage', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePageOrganizer', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRedactionToolbar', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'extractTextOption', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'initialRenderPages', 'inkAnnotationSettings', 'inkEraserSize', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isPageOrganizerOpen', 'isRedactionToolbarVisible', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'maxZoom', 'measurementSettings', 'minZoom', 'pageCount', 'pageOrganizerSettings', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'printScaleFactor', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'redactionSettings', 'resourceUrl', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showCustomContextMenuBottom', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'squigglySettings', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'webLinkSettings', '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', 'customContextMenuBeforeOpen', 'customContextMenuSelect', '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', 'keyboardCustomCommands', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'pageOrganizerSaveAs', 'pageRenderComplete', 'pageRenderInitiate', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'resourcesLoaded', 'signaturePropertiesChange', 'signatureSelect', 'signatureUnselect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'toolbarClick', 'validateFormFields', 'zoomChange', 'pageOrganizerZoomChanged'];
|
|
6
|
+
const properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationDrawingOptions', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'commandManager', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customContextMenuItems', 'customFonts', 'customStamp', 'customStampSettings', 'customTextStamps', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'disableDefaultContextMenu', 'distanceSettings', 'documentLinkSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCollaborativeEditing', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHtmlSanitizer', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableInkEraser', 'enableLinkAnnotation', 'enableLocalStorage', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePageOrganizer', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRedactionToolbar', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableWebMcp', 'enableZoomOptimization', 'exportAnnotationFileName', 'extractTextOption', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'initialRenderPages', 'inkAnnotationSettings', 'inkEraserSize', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isPageOrganizerOpen', 'isRedactionToolbarVisible', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'maxZoom', 'measurementSettings', 'minZoom', 'pageCount', 'pageOrganizerSettings', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'printScaleFactor', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'redactionSettings', 'resourceUrl', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showCustomContextMenuBottom', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'squigglySettings', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'webLinkSettings', 'webMcpSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationChanged', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'beforeWebMcpToolExecute', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'customContextMenuBeforeOpen', 'customContextMenuSelect', 'documentChanged', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldChanged', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'keyboardCustomCommands', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'pageOrganizerSaveAs', 'pageOrganizerSaved', 'pageRenderComplete', 'pageRenderInitiate', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'resourcesLoaded', 'signaturePropertiesChange', 'signatureSelect', 'signatureUnselect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'toolbarClick', 'validateFormFields', 'zoomChange', 'pageOrganizerZoomChanged'];
|
|
7
7
|
const modelProps = [];
|
|
8
8
|
const testProp = getProps({ props: properties });
|
|
9
9
|
const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
@@ -101,6 +101,9 @@ let PdfViewerComponent = vueDefineComponent({
|
|
|
101
101
|
addCustomMenu(menuItems, disableDefaultItems, appendToEnd) {
|
|
102
102
|
return this.ej2Instances.addCustomMenu(menuItems, disableDefaultItems, appendToEnd);
|
|
103
103
|
},
|
|
104
|
+
applyPageOrganizerActions(actions, showPopup) {
|
|
105
|
+
return this.ej2Instances.applyPageOrganizerActions(actions, showPopup);
|
|
106
|
+
},
|
|
104
107
|
clearFormFields(formField) {
|
|
105
108
|
return this.ej2Instances.clearFormFields(formField);
|
|
106
109
|
},
|
|
@@ -152,6 +155,9 @@ let PdfViewerComponent = vueDefineComponent({
|
|
|
152
155
|
getPageNumberFromClientPoint(clientPoint) {
|
|
153
156
|
return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);
|
|
154
157
|
},
|
|
158
|
+
getWebMcpTools(toolNames) {
|
|
159
|
+
return this.ej2Instances.getWebMcpTools(toolNames);
|
|
160
|
+
},
|
|
155
161
|
importAnnotation(importData, annotationDataFormat) {
|
|
156
162
|
return this.ej2Instances.importAnnotation(importData, annotationDataFormat);
|
|
157
163
|
},
|
|
@@ -164,6 +170,9 @@ let PdfViewerComponent = vueDefineComponent({
|
|
|
164
170
|
redo() {
|
|
165
171
|
return this.ej2Instances.redo();
|
|
166
172
|
},
|
|
173
|
+
removeSemanticTextCompare(targetViewer) {
|
|
174
|
+
return this.ej2Instances.removeSemanticTextCompare(targetViewer);
|
|
175
|
+
},
|
|
167
176
|
requiredModules() {
|
|
168
177
|
return this.ej2Instances.requiredModules();
|
|
169
178
|
},
|
|
@@ -176,12 +185,18 @@ let PdfViewerComponent = vueDefineComponent({
|
|
|
176
185
|
saveAsBlob() {
|
|
177
186
|
return this.ej2Instances.saveAsBlob();
|
|
178
187
|
},
|
|
188
|
+
semanticTextCompare(targetViewer, options) {
|
|
189
|
+
return this.ej2Instances.semanticTextCompare(targetViewer, options);
|
|
190
|
+
},
|
|
179
191
|
setJsonData(jsonData) {
|
|
180
192
|
return this.ej2Instances.setJsonData(jsonData);
|
|
181
193
|
},
|
|
182
194
|
showNotificationPopup(errorString) {
|
|
183
195
|
return this.ej2Instances.showNotificationPopup(errorString);
|
|
184
196
|
},
|
|
197
|
+
syncViewers(targetViewer, enable) {
|
|
198
|
+
return this.ej2Instances.syncViewers(targetViewer, enable);
|
|
199
|
+
},
|
|
185
200
|
undo() {
|
|
186
201
|
return this.ej2Instances.undo();
|
|
187
202
|
},
|
|
@@ -209,5 +224,112 @@ const PdfViewerPlugin = {
|
|
|
209
224
|
}
|
|
210
225
|
};
|
|
211
226
|
|
|
212
|
-
|
|
227
|
+
const properties$1 = ['isLazyUpdate', 'plugins', 'comparisonOptions', 'enableDifferencePanel', 'enablePersistence', 'enableRtl', 'enableSyncScrolling', 'height', 'locale', 'modifiedDocumentPath', 'originalDocumentPath', 'resourceUrl', 'width'];
|
|
228
|
+
const modelProps$1 = [];
|
|
229
|
+
const testProp$1 = getProps({ props: properties$1 });
|
|
230
|
+
const props$1 = testProp$1[0], watch$1 = testProp$1[1], emitProbs$1 = Object.keys(watch$1);
|
|
231
|
+
emitProbs$1.push('modelchanged', 'update:modelValue');
|
|
232
|
+
for (let props of modelProps$1) {
|
|
233
|
+
emitProbs$1.push('update:' + props);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* `ejs-pdfcomparer` represents the VueJS PdfComparer Component.
|
|
237
|
+
* ```html
|
|
238
|
+
* <ejs-pdfcomparer></ejs-pdfcomparer>
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
let PdfComparerComponent = vueDefineComponent({
|
|
242
|
+
name: 'PdfComparerComponent',
|
|
243
|
+
mixins: [ComponentBase],
|
|
244
|
+
props: props$1,
|
|
245
|
+
watch: watch$1,
|
|
246
|
+
emits: emitProbs$1,
|
|
247
|
+
provide() { return { custom: this.custom }; },
|
|
248
|
+
data() {
|
|
249
|
+
return {
|
|
250
|
+
ej2Instances: new PdfComparer({}),
|
|
251
|
+
propKeys: properties$1,
|
|
252
|
+
models: modelProps$1,
|
|
253
|
+
hasChildDirective: false,
|
|
254
|
+
hasInjectedModules: false,
|
|
255
|
+
tagMapper: {},
|
|
256
|
+
tagNameMapper: {},
|
|
257
|
+
isVue3: !isExecute,
|
|
258
|
+
templateCollection: {},
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
created() {
|
|
262
|
+
this.bindProperties();
|
|
263
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
264
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
265
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
266
|
+
this.updated = this.updated;
|
|
267
|
+
},
|
|
268
|
+
render(createElement) {
|
|
269
|
+
let h = !isExecute ? gh : createElement;
|
|
270
|
+
let slots = null;
|
|
271
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
272
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
273
|
+
}
|
|
274
|
+
return h('div', slots);
|
|
275
|
+
},
|
|
276
|
+
methods: {
|
|
277
|
+
clearTemplate(templateNames) {
|
|
278
|
+
if (!templateNames) {
|
|
279
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
280
|
+
}
|
|
281
|
+
if (templateNames.length && this.templateCollection) {
|
|
282
|
+
for (let tempName of templateNames) {
|
|
283
|
+
let elementCollection = this.templateCollection[tempName];
|
|
284
|
+
if (elementCollection && elementCollection.length) {
|
|
285
|
+
for (let ele of elementCollection) {
|
|
286
|
+
this.destroyPortals(ele);
|
|
287
|
+
}
|
|
288
|
+
delete this.templateCollection[tempName];
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
setProperties(prop, muteOnChange) {
|
|
294
|
+
if (this.isVue3) {
|
|
295
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
296
|
+
}
|
|
297
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
298
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
299
|
+
}
|
|
300
|
+
if (prop && this.models && this.models.length) {
|
|
301
|
+
Object.keys(prop).map((key) => {
|
|
302
|
+
this.models.map((model) => {
|
|
303
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
304
|
+
if (this.isVue3) {
|
|
305
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
this.$emit('update:' + key, prop[key]);
|
|
309
|
+
this.$emit('modelchanged', prop[key]);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
custom() {
|
|
317
|
+
this.updated();
|
|
318
|
+
},
|
|
319
|
+
compare() {
|
|
320
|
+
return this.ej2Instances.compare();
|
|
321
|
+
},
|
|
322
|
+
destroy() {
|
|
323
|
+
return this.ej2Instances.destroy();
|
|
324
|
+
},
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
const PdfComparerPlugin = {
|
|
328
|
+
name: 'ejs-pdfcomparer',
|
|
329
|
+
install(Vue) {
|
|
330
|
+
Vue.component(PdfComparerPlugin.name, PdfComparerComponent);
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export { PdfComparerComponent, PdfComparerPlugin, PdfViewerComponent, PdfViewerPlugin };
|
|
213
335
|
//# sourceMappingURL=ej2-vue-pdfviewer.es2015.js.map
|