@syncfusion/ej2-vue-pdfviewer 20.4.54 → 21.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +195 -0
  2. package/README.md +1 -1
  3. package/dist/ej2-vue-pdfviewer.umd.min.js +2 -2
  4. package/dist/ej2-vue-pdfviewer.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-vue-pdfviewer.es2015.js +161 -182
  6. package/dist/es6/ej2-vue-pdfviewer.es2015.js.map +1 -1
  7. package/dist/es6/ej2-vue-pdfviewer.es5.js +173 -199
  8. package/dist/es6/ej2-vue-pdfviewer.es5.js.map +1 -1
  9. package/dist/global/ej2-vue-pdfviewer.min.js +2 -2
  10. package/package.json +11 -10
  11. package/src/pdfviewer/pdfviewer.component.d.ts +3 -52
  12. package/src/pdfviewer/pdfviewer.component.js +174 -203
  13. package/styles/bootstrap-dark.css +55 -11
  14. package/styles/bootstrap.css +55 -11
  15. package/styles/bootstrap4.css +55 -11
  16. package/styles/bootstrap5-dark.css +67 -17
  17. package/styles/bootstrap5.css +67 -17
  18. package/styles/fabric-dark.css +55 -11
  19. package/styles/fabric.css +55 -11
  20. package/styles/fluent-dark.css +92 -17
  21. package/styles/fluent.css +92 -17
  22. package/styles/highcontrast-light.css +55 -11
  23. package/styles/highcontrast.css +55 -11
  24. package/styles/material-dark.css +55 -11
  25. package/styles/material.css +55 -16
  26. package/styles/material3-dark.css +3482 -0
  27. package/styles/material3-dark.scss +2 -0
  28. package/styles/material3.css +3538 -0
  29. package/styles/material3.scss +2 -0
  30. package/styles/pdfviewer/bootstrap-dark.css +55 -11
  31. package/styles/pdfviewer/bootstrap.css +55 -11
  32. package/styles/pdfviewer/bootstrap4.css +55 -11
  33. package/styles/pdfviewer/bootstrap5-dark.css +67 -17
  34. package/styles/pdfviewer/bootstrap5.css +67 -17
  35. package/styles/pdfviewer/fabric-dark.css +55 -11
  36. package/styles/pdfviewer/fabric.css +55 -11
  37. package/styles/pdfviewer/fluent-dark.css +92 -17
  38. package/styles/pdfviewer/fluent.css +92 -17
  39. package/styles/pdfviewer/highcontrast-light.css +55 -11
  40. package/styles/pdfviewer/highcontrast.css +55 -11
  41. package/styles/pdfviewer/material-dark.css +55 -11
  42. package/styles/pdfviewer/material.css +55 -16
  43. package/styles/pdfviewer/material3-dark.css +3482 -0
  44. package/styles/pdfviewer/material3-dark.scss +2 -0
  45. package/styles/pdfviewer/material3.css +3538 -0
  46. package/styles/pdfviewer/material3.scss +2 -0
  47. package/styles/pdfviewer/tailwind-dark.css +58 -11
  48. package/styles/pdfviewer/tailwind.css +58 -11
  49. package/styles/tailwind-dark.css +58 -11
  50. package/styles/tailwind.css +58 -11
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-pdfviewer@*",
3
- "_id": "@syncfusion/ej2-vue-pdfviewer@20.4.53",
3
+ "_id": "@syncfusion/ej2-vue-pdfviewer@22.1.34",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Sq7+0AkaGxlmuqR4K202xmcEjU5CLv0GFz28OjUBFU22Pb8uLuWIkJ+ZiXYCcIGzt9omITnBVYMRnlVvIdZJWA==",
5
+ "_integrity": "sha512-3ysUihvcNR+Ys8iM8n4Laphl+UxWtVb6JmcbULsgRsoQtxWcVEB/Z0on9LMngVbU+8q2brKrtFMkSHS6xTAH3g==",
6
6
  "_location": "/@syncfusion/ej2-vue-pdfviewer",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,10 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-pdfviewer/-/ej2-vue-pdfviewer-20.4.53.tgz",
23
- "_shasum": "ac45d5fc6316a2ce7772eac692ed666daed13c9a",
22
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-pdfviewer/-/ej2-vue-pdfviewer-22.1.34.tgz",
23
+ "_shasum": "eeecc62f6a963f5003b8d0219f68c72e00cdc885",
24
24
  "_spec": "@syncfusion/ej2-vue-pdfviewer@*",
25
- "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
25
+ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
26
26
  "author": {
27
27
  "name": "Syncfusion Inc."
28
28
  },
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~20.4.51",
35
- "@syncfusion/ej2-pdfviewer": "20.4.54",
36
- "@syncfusion/ej2-vue-base": "~20.4.51"
34
+ "@syncfusion/ej2-base": "~22.1.34",
35
+ "@syncfusion/ej2-pdfviewer": "21.1.36",
36
+ "@syncfusion/ej2-vue-base": "~22.1.34"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 PDF viewer Component for Vue",
@@ -54,8 +54,9 @@
54
54
  "url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
55
55
  },
56
56
  "scripts": {
57
- "postinstall": "node ../ej2-vue-base/postinstall.js"
57
+ "ci-publish": "gulp ci-publish",
58
+ "compile": "gulp ci-compile && gulp vue-global-script"
58
59
  },
59
- "version": "20.4.54",
60
+ "version": "21.1.36",
60
61
  "sideEffects": false
61
62
  }
@@ -1,64 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * `ejs-pdfviewer` represents the VueJS PdfViewer Component.
10
7
  * ```vue
11
8
  * <ejs-pdfviewer></ejs-pdfviewer>
12
9
  * ```
13
10
  */
14
- export declare class PdfViewerComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- addAnnotation(annotation: any): void;
32
- clearFormFields(formField?: any): void;
33
- convertClientPointToPagePoint(clientPoint: Object, pageNumber: number): Object;
34
- convertPagePointToClientPoint(pagePoint: Object, pageNumber: number): Object;
35
- convertPagePointToScrollingPoint(pagePoint: Object, pageNumber: number): Object;
36
- deleteAnnotations(): void;
37
- download(): void;
38
- exportAnnotation(annotationDataFormat?: Object): void;
39
- exportAnnotationsAsBase64String(annotationDataFormat: Object): Object;
40
- exportAnnotationsAsObject(): Object;
41
- exportFormFields(data?: string, formFieldDataFormat?: Object): void;
42
- exportFormFieldsAsObject(formFieldDataFormat?: Object): Object;
43
- focusFormField(field: any): void;
44
- getPageNumberFromClientPoint(clientPoint: Object): number;
45
- importAnnotation(importData: any, annotationDataFormat?: Object): void;
46
- importFormFields(data?: string, formFieldDataFormat?: Object): void;
47
- load(document: string, password: string): void;
48
- redo(): void;
49
- requiredModules(): Object[];
50
- resetFormFields(): void;
51
- retrieveFormFields(): Object[];
52
- saveAsBlob(): Object;
53
- setJsonData(jsonData: any): void;
54
- showNotificationPopup(errorString: string): void;
55
- undo(): void;
56
- unload(): void;
57
- updateFormFields(formFields: any): void;
58
- updateFormFieldsValue(fieldValue: any): void;
59
- updateViewerContainer(): void;
60
- zoomToRect(rectangle: Object): void;
61
- }
11
+ export declare let PdfViewerComponent: any;
12
+ export declare type PdfViewerComponent = InstanceType<typeof PdfViewerComponent>;
62
13
  export declare const PdfViewerPlugin: {
63
14
  name: string;
64
15
  install(Vue: any): void;
@@ -1,32 +1,10 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
21
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
3
  import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
23
- import { Options } from 'vue-class-component';
24
- export var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
4
+ export var properties = ['isLazyUpdate', 'plugins', 'DropdownFieldSettings', 'ajaxRequestSettings', 'annotationSelectorSettings', 'annotationSettings', 'annotations', 'areaSettings', 'arrowSettings', 'checkBoxFieldSettings', 'circleSettings', 'contextMenuOption', 'contextMenuSettings', 'currentPageNumber', 'customStamp', 'customStampSettings', 'dateTimeFormat', 'designerMode', 'disableContextMenuItems', 'distanceSettings', 'documentPath', 'downloadFileName', 'drawingObject', 'enableAccessibilityTags', 'enableAnnotation', 'enableAnnotationToolbar', 'enableAutoComplete', 'enableBookmark', 'enableBookmarkStyles', 'enableCommentPanel', 'enableDesktopMode', 'enableDownload', 'enableFormDesigner', 'enableFormDesignerToolbar', 'enableFormFields', 'enableFormFieldsValidation', 'enableFreeText', 'enableHandwrittenSignature', 'enableHyperlink', 'enableImportAnnotationMeasurement', 'enableInkAnnotation', 'enableMagnification', 'enableMeasureAnnotation', 'enableMultiLineOverlap', 'enableMultiPageAnnotation', 'enableNavigation', 'enableNavigationToolbar', 'enablePersistence', 'enablePinchZoom', 'enablePrint', 'enablePrintRotation', 'enableRtl', 'enableShapeAnnotation', 'enableShapeLabel', 'enableStampAnnotations', 'enableStickyNotesAnnotation', 'enableTextMarkupAnnotation', 'enableTextMarkupResizer', 'enableTextSearch', 'enableTextSelection', 'enableThumbnail', 'enableToolbar', 'enableZoomOptimization', 'exportAnnotationFileName', 'formFieldCollections', 'formFields', 'freeTextSettings', 'handWrittenSignatureSettings', 'height', 'hideEmptyDigitalSignatureFields', 'hideSaveSignature', 'highlightSettings', 'hyperlinkOpenState', 'initialDialogSettings', 'initialFieldSettings', 'initialRenderPages', 'inkAnnotationSettings', 'interactionMode', 'isAnnotationToolbarOpen', 'isAnnotationToolbarVisible', 'isBookmarkPanelOpen', 'isCommandPanelOpen', 'isDocumentEdited', 'isExtractText', 'isFormDesignerToolbarVisible', 'isFormFieldDocument', 'isInitialFieldToolbarSelection', 'isMaintainSelection', 'isSignatureEditable', 'isThumbnailViewOpen', 'isValidFreeText', 'lineSettings', 'listBoxFieldSettings', 'locale', 'measurementSettings', 'pageCount', 'passwordFieldSettings', 'perimeterSettings', 'polygonSettings', 'printMode', 'radioButtonFieldSettings', 'radiusSettings', 'rectangleSettings', 'restrictZoomRequest', 'retryCount', 'retryStatusCodes', 'retryTimeout', 'scrollSettings', 'selectedItems', 'serverActionSettings', 'serviceUrl', 'shapeLabelSettings', 'showDigitalSignatureAppearance', 'showNotificationDialog', 'signatureDialogSettings', 'signatureFieldSettings', 'signatureFitMode', 'stampSettings', 'stickyNotesSettings', 'strikethroughSettings', 'textFieldSettings', 'textSearchColorSettings', 'tileRenderingSettings', 'toolbarSettings', 'underlineSettings', 'volumeSettings', 'width', 'zoomMode', 'zoomValue', 'addSignature', 'ajaxRequestFailed', 'ajaxRequestInitiate', 'ajaxRequestSuccess', 'annotationAdd', 'annotationDoubleClick', 'annotationMouseLeave', 'annotationMouseover', 'annotationMove', 'annotationMoving', 'annotationPropertiesChange', 'annotationRemove', 'annotationResize', 'annotationSelect', 'annotationUnSelect', 'beforeAddFreeText', 'bookmarkClick', 'buttonFieldClick', 'commentAdd', 'commentDelete', 'commentEdit', 'commentSelect', 'commentStatusChanged', 'created', 'documentLoad', 'documentLoadFailed', 'documentUnload', 'downloadEnd', 'downloadStart', 'exportFailed', 'exportStart', 'exportSuccess', 'extractTextCompleted', 'formFieldAdd', 'formFieldClick', 'formFieldDoubleClick', 'formFieldFocusOut', 'formFieldMouseLeave', 'formFieldMouseover', 'formFieldMove', 'formFieldPropertiesChange', 'formFieldRemove', 'formFieldResize', 'formFieldSelect', 'formFieldUnselect', 'hyperlinkClick', 'hyperlinkMouseOver', 'importFailed', 'importStart', 'importSuccess', 'moveSignature', 'pageChange', 'pageClick', 'pageMouseover', 'printEnd', 'printStart', 'removeSignature', 'resizeSignature', 'signaturePropertiesChange', 'signatureSelect', 'textSearchComplete', 'textSearchHighlight', 'textSearchStart', 'textSelectionEnd', 'textSelectionStart', 'thumbnailClick', 'validateFormFields', 'zoomChange'];
25
5
  export var modelProps = [];
26
6
  export var testProp = getProps({ props: properties });
27
- export var props = testProp[0];
28
- export var watch = testProp[1];
29
- export var emitProbs = Object.keys(watch);
7
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
30
8
  emitProbs.push('modelchanged', 'update:modelValue');
31
9
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
32
10
  var props_1 = modelProps_1[_i];
@@ -38,192 +16,185 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
38
16
  * <ejs-pdfviewer></ejs-pdfviewer>
39
17
  * ```
40
18
  */
41
- var PdfViewerComponent = /** @class */ (function (_super) {
42
- __extends(PdfViewerComponent, _super);
43
- function PdfViewerComponent() {
44
- var _this = _super.call(this, arguments) || this;
45
- _this.propKeys = properties;
46
- _this.models = modelProps;
47
- _this.hasChildDirective = false;
48
- _this.hasInjectedModules = true;
49
- _this.tagMapper = {};
50
- _this.tagNameMapper = {};
51
- _this.isVue3 = !isExecute;
52
- _this.ej2Instances = new PdfViewer({});
53
- _this.bindProperties();
54
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
55
- _this.ej2Instances.setProperties = _this.setProperties;
56
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
57
- _this.updated = _this.updated;
58
- return _this;
59
- }
60
- PdfViewerComponent.prototype.clearTemplate = function (templateNames) {
61
- if (!templateNames) {
62
- templateNames = Object.keys(this.templateCollection || {});
19
+ export var PdfViewerComponent = vueDefineComponent({
20
+ name: 'PdfViewerComponent',
21
+ mixins: [ComponentBase],
22
+ props: props,
23
+ watch: watch,
24
+ emits: emitProbs,
25
+ provide: function () { return { custom: this.custom }; },
26
+ data: function () {
27
+ return {
28
+ ej2Instance: new PdfViewer({}),
29
+ propKeys: properties,
30
+ models: modelProps,
31
+ hasChildDirective: false,
32
+ hasInjectedModules: true,
33
+ tagMapper: {},
34
+ tagNameMapper: {},
35
+ isVue3: !isExecute,
36
+ templateCollection: {},
37
+ };
38
+ },
39
+ created: function () {
40
+ this.bindProperties();
41
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
42
+ this.ej2Instances.setProperties = this.setProperties;
43
+ this.ej2Instances.clearTemplate = this.clearTemplate;
44
+ this.updated = this.updated;
45
+ },
46
+ render: function (createElement) {
47
+ var h = !isExecute ? gh : createElement;
48
+ var slots = null;
49
+ if (!isNullOrUndefined(this.$slots.default)) {
50
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
63
51
  }
64
- if (templateNames.length && this.templateCollection) {
65
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
66
- var tempName = templateNames_1[_i];
67
- var elementCollection = this.templateCollection[tempName];
68
- if (elementCollection && elementCollection.length) {
69
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
70
- var ele = elementCollection_1[_a];
71
- var destroy = getValue('__vue__.$destroy', ele);
72
- if (destroy) {
73
- ele.__vue__.$destroy();
74
- }
75
- if (ele.innerHTML) {
76
- ele.innerHTML = '';
52
+ return h('div', slots);
53
+ },
54
+ methods: {
55
+ clearTemplate: function (templateNames) {
56
+ if (!templateNames) {
57
+ templateNames = Object.keys(this.templateCollection || {});
58
+ }
59
+ if (templateNames.length && this.templateCollection) {
60
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
61
+ var tempName = templateNames_1[_i];
62
+ var elementCollection = this.templateCollection[tempName];
63
+ if (elementCollection && elementCollection.length) {
64
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
65
+ var ele = elementCollection_1[_a];
66
+ var destroy = getValue('__vue__.$destroy', ele);
67
+ if (destroy) {
68
+ ele.__vue__.$destroy();
69
+ }
70
+ if (ele.innerHTML) {
71
+ ele.innerHTML = '';
72
+ }
77
73
  }
74
+ delete this.templateCollection[tempName];
78
75
  }
79
- delete this.templateCollection[tempName];
80
76
  }
81
77
  }
82
- }
83
- };
84
- PdfViewerComponent.prototype.setProperties = function (prop, muteOnChange) {
85
- var _this = this;
86
- if (this.isVue3) {
87
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
88
- }
89
- if (this.ej2Instances && this.ej2Instances._setProperties) {
90
- this.ej2Instances._setProperties(prop, muteOnChange);
91
- }
92
- if (prop && this.models && this.models.length) {
93
- Object.keys(prop).map(function (key) {
94
- _this.models.map(function (model) {
95
- if ((key === model) && !(/datasource/i.test(key))) {
96
- if (_this.isVue3) {
97
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
98
- }
99
- else {
100
- _this.$emit('update:' + key, prop[key]);
101
- _this.$emit('modelchanged', prop[key]);
78
+ },
79
+ setProperties: function (prop, muteOnChange) {
80
+ var _this = this;
81
+ if (this.isVue3) {
82
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
83
+ }
84
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
85
+ this.ej2Instances._setProperties(prop, muteOnChange);
86
+ }
87
+ if (prop && this.models && this.models.length) {
88
+ Object.keys(prop).map(function (key) {
89
+ _this.models.map(function (model) {
90
+ if ((key === model) && !(/datasource/i.test(key))) {
91
+ if (_this.isVue3) {
92
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
93
+ }
94
+ else {
95
+ _this.$emit('update:' + key, prop[key]);
96
+ _this.$emit('modelchanged', prop[key]);
97
+ }
102
98
  }
103
- }
99
+ });
104
100
  });
105
- });
106
- }
107
- };
108
- PdfViewerComponent.prototype.render = function (createElement) {
109
- var h = !isExecute ? gh : createElement;
110
- var slots = null;
111
- if (!isNullOrUndefined(this.$slots.default)) {
112
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
113
- }
114
- return h('div', slots);
115
- };
116
- PdfViewerComponent.prototype.custom = function () {
117
- this.updated();
118
- };
119
- PdfViewerComponent.prototype.addAnnotation = function (annotation) {
120
- return this.ej2Instances.addAnnotation(annotation);
121
- };
122
- PdfViewerComponent.prototype.clearFormFields = function (formField) {
123
- return this.ej2Instances.clearFormFields(formField);
124
- };
125
- PdfViewerComponent.prototype.convertClientPointToPagePoint = function (clientPoint, pageNumber) {
126
- return this.ej2Instances.convertClientPointToPagePoint(clientPoint, pageNumber);
127
- };
128
- PdfViewerComponent.prototype.convertPagePointToClientPoint = function (pagePoint, pageNumber) {
129
- return this.ej2Instances.convertPagePointToClientPoint(pagePoint, pageNumber);
130
- };
131
- PdfViewerComponent.prototype.convertPagePointToScrollingPoint = function (pagePoint, pageNumber) {
132
- return this.ej2Instances.convertPagePointToScrollingPoint(pagePoint, pageNumber);
133
- };
134
- PdfViewerComponent.prototype.deleteAnnotations = function () {
135
- return this.ej2Instances.deleteAnnotations();
136
- };
137
- PdfViewerComponent.prototype.download = function () {
138
- return this.ej2Instances.download();
139
- };
140
- PdfViewerComponent.prototype.exportAnnotation = function (annotationDataFormat) {
141
- return this.ej2Instances.exportAnnotation(annotationDataFormat);
142
- };
143
- PdfViewerComponent.prototype.exportAnnotationsAsBase64String = function (annotationDataFormat) {
144
- return this.ej2Instances.exportAnnotationsAsBase64String(annotationDataFormat);
145
- };
146
- PdfViewerComponent.prototype.exportAnnotationsAsObject = function () {
147
- return this.ej2Instances.exportAnnotationsAsObject();
148
- };
149
- PdfViewerComponent.prototype.exportFormFields = function (data, formFieldDataFormat) {
150
- return this.ej2Instances.exportFormFields(data, formFieldDataFormat);
151
- };
152
- PdfViewerComponent.prototype.exportFormFieldsAsObject = function (formFieldDataFormat) {
153
- return this.ej2Instances.exportFormFieldsAsObject(formFieldDataFormat);
154
- };
155
- PdfViewerComponent.prototype.focusFormField = function (field) {
156
- return this.ej2Instances.focusFormField(field);
157
- };
158
- PdfViewerComponent.prototype.getPageNumberFromClientPoint = function (clientPoint) {
159
- return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);
160
- };
161
- PdfViewerComponent.prototype.importAnnotation = function (importData, annotationDataFormat) {
162
- return this.ej2Instances.importAnnotation(importData, annotationDataFormat);
163
- };
164
- PdfViewerComponent.prototype.importFormFields = function (data, formFieldDataFormat) {
165
- return this.ej2Instances.importFormFields(data, formFieldDataFormat);
166
- };
167
- PdfViewerComponent.prototype.load = function (document, password) {
168
- return this.ej2Instances.load(document, password);
169
- };
170
- PdfViewerComponent.prototype.redo = function () {
171
- return this.ej2Instances.redo();
172
- };
173
- PdfViewerComponent.prototype.requiredModules = function () {
174
- return this.ej2Instances.requiredModules();
175
- };
176
- PdfViewerComponent.prototype.resetFormFields = function () {
177
- return this.ej2Instances.resetFormFields();
178
- };
179
- PdfViewerComponent.prototype.retrieveFormFields = function () {
180
- return this.ej2Instances.retrieveFormFields();
181
- };
182
- PdfViewerComponent.prototype.saveAsBlob = function () {
183
- return this.ej2Instances.saveAsBlob();
184
- };
185
- PdfViewerComponent.prototype.setJsonData = function (jsonData) {
186
- return this.ej2Instances.setJsonData(jsonData);
187
- };
188
- PdfViewerComponent.prototype.showNotificationPopup = function (errorString) {
189
- return this.ej2Instances.showNotificationPopup(errorString);
190
- };
191
- PdfViewerComponent.prototype.undo = function () {
192
- return this.ej2Instances.undo();
193
- };
194
- PdfViewerComponent.prototype.unload = function () {
195
- return this.ej2Instances.unload();
196
- };
197
- PdfViewerComponent.prototype.updateFormFields = function (formFields) {
198
- return this.ej2Instances.updateFormFields(formFields);
199
- };
200
- PdfViewerComponent.prototype.updateFormFieldsValue = function (fieldValue) {
201
- return this.ej2Instances.updateFormFieldsValue(fieldValue);
202
- };
203
- PdfViewerComponent.prototype.updateViewerContainer = function () {
204
- return this.ej2Instances.updateViewerContainer();
205
- };
206
- PdfViewerComponent.prototype.zoomToRect = function (rectangle) {
207
- return this.ej2Instances.zoomToRect(rectangle);
208
- };
209
- PdfViewerComponent = __decorate([
210
- EJComponentDecorator({
211
- props: properties
212
- }, isExecute)
213
- ,Options({
214
- props: props,
215
- watch: watch,
216
- emits: emitProbs,
217
- provide: function provide() {
218
- return {
219
- custom: this.custom
220
- };
221
101
  }
222
- })
223
- ], PdfViewerComponent);
224
- return PdfViewerComponent;
225
- }(ComponentBase));
226
- export { PdfViewerComponent };
102
+ },
103
+ custom: function () {
104
+ this.updated();
105
+ },
106
+ addAnnotation: function (annotation) {
107
+ return this.ej2Instances.addAnnotation(annotation);
108
+ },
109
+ clearFormFields: function (formField) {
110
+ return this.ej2Instances.clearFormFields(formField);
111
+ },
112
+ convertClientPointToPagePoint: function (clientPoint, pageNumber) {
113
+ return this.ej2Instances.convertClientPointToPagePoint(clientPoint, pageNumber);
114
+ },
115
+ convertPagePointToClientPoint: function (pagePoint, pageNumber) {
116
+ return this.ej2Instances.convertPagePointToClientPoint(pagePoint, pageNumber);
117
+ },
118
+ convertPagePointToScrollingPoint: function (pagePoint, pageNumber) {
119
+ return this.ej2Instances.convertPagePointToScrollingPoint(pagePoint, pageNumber);
120
+ },
121
+ deleteAnnotations: function () {
122
+ return this.ej2Instances.deleteAnnotations();
123
+ },
124
+ download: function () {
125
+ return this.ej2Instances.download();
126
+ },
127
+ exportAnnotation: function (annotationDataFormat) {
128
+ return this.ej2Instances.exportAnnotation(annotationDataFormat);
129
+ },
130
+ exportAnnotationsAsBase64String: function (annotationDataFormat) {
131
+ return this.ej2Instances.exportAnnotationsAsBase64String(annotationDataFormat);
132
+ },
133
+ exportAnnotationsAsObject: function (annotationDataFormat) {
134
+ return this.ej2Instances.exportAnnotationsAsObject(annotationDataFormat);
135
+ },
136
+ exportFormFields: function (data, formFieldDataFormat) {
137
+ return this.ej2Instances.exportFormFields(data, formFieldDataFormat);
138
+ },
139
+ exportFormFieldsAsObject: function (formFieldDataFormat) {
140
+ return this.ej2Instances.exportFormFieldsAsObject(formFieldDataFormat);
141
+ },
142
+ focusFormField: function (field) {
143
+ return this.ej2Instances.focusFormField(field);
144
+ },
145
+ getPageNumberFromClientPoint: function (clientPoint) {
146
+ return this.ej2Instances.getPageNumberFromClientPoint(clientPoint);
147
+ },
148
+ importAnnotation: function (importData, annotationDataFormat) {
149
+ return this.ej2Instances.importAnnotation(importData, annotationDataFormat);
150
+ },
151
+ importFormFields: function (data, formFieldDataFormat) {
152
+ return this.ej2Instances.importFormFields(data, formFieldDataFormat);
153
+ },
154
+ load: function (document, password) {
155
+ return this.ej2Instances.load(document, password);
156
+ },
157
+ redo: function () {
158
+ return this.ej2Instances.redo();
159
+ },
160
+ requiredModules: function () {
161
+ return this.ej2Instances.requiredModules();
162
+ },
163
+ resetFormFields: function () {
164
+ return this.ej2Instances.resetFormFields();
165
+ },
166
+ retrieveFormFields: function () {
167
+ return this.ej2Instances.retrieveFormFields();
168
+ },
169
+ saveAsBlob: function () {
170
+ return this.ej2Instances.saveAsBlob();
171
+ },
172
+ setJsonData: function (jsonData) {
173
+ return this.ej2Instances.setJsonData(jsonData);
174
+ },
175
+ showNotificationPopup: function (errorString) {
176
+ return this.ej2Instances.showNotificationPopup(errorString);
177
+ },
178
+ undo: function () {
179
+ return this.ej2Instances.undo();
180
+ },
181
+ unload: function () {
182
+ return this.ej2Instances.unload();
183
+ },
184
+ updateFormFields: function (formFields) {
185
+ return this.ej2Instances.updateFormFields(formFields);
186
+ },
187
+ updateFormFieldsValue: function (fieldValue) {
188
+ return this.ej2Instances.updateFormFieldsValue(fieldValue);
189
+ },
190
+ updateViewerContainer: function () {
191
+ return this.ej2Instances.updateViewerContainer();
192
+ },
193
+ zoomToRect: function (rectangle) {
194
+ return this.ej2Instances.zoomToRect(rectangle);
195
+ },
196
+ }
197
+ });
227
198
  export var PdfViewerPlugin = {
228
199
  name: 'ejs-pdfviewer',
229
200
  install: function (Vue) {