diff --git a/package.json b/package.json index 3459989cfa698b8c3e9e62c28d09c3d15dd31961..030d80c70c17ed052ac73ac384ad3aff81bd0420 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@dbp-toolkit/person-profile": "^0.2.0", "@dbp-toolkit/organization-select": "^0.2.0", "@digital-blueprint/annotpdf": "^1.0.13-a", - "@open-wc/scoped-elements": "^1.1.1", + "@open-wc/scoped-elements": "^1.3.3", "fabric": "^4.2.0", "file-saver": "^2.0.2", "i18next": "^20.0.0", diff --git a/src/dbp-official-signature-pdf-upload.js b/src/dbp-official-signature-pdf-upload.js index 504f065b2afc730c6a25def3060a8908b9422733..a6423ea17fb292fa3dadfe02fbd23eaf79fb50c8 100644 --- a/src/dbp-official-signature-pdf-upload.js +++ b/src/dbp-official-signature-pdf-upload.js @@ -369,7 +369,8 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem // start signature placement process this.signaturePlacementInProgress = true; this.withSigBlock = withSigBlock; - const previewTag = this.constructor.getScopedTagName("dbp-pdf-preview"); + const previewTag = this.getScopedTagName("dbp-pdf-preview"); + console.error(previewTag); await this._(previewTag).showPDF( file, withSigBlock, //this.queuedFilesPlacementModes[key] === "manual", diff --git a/src/dbp-qualified-signature-pdf-upload.js b/src/dbp-qualified-signature-pdf-upload.js index c12789e9bfa479f97c452772b7c487433020c2d4..99f6919da9ccf4cf457ba53a5c4ed77ccf3e9e6b 100644 --- a/src/dbp-qualified-signature-pdf-upload.js +++ b/src/dbp-qualified-signature-pdf-upload.js @@ -498,7 +498,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle // start signature placement process this.signaturePlacementInProgress = true; this.withSigBlock = withSigBlock; - const previewTag = this.constructor.getScopedTagName("dbp-pdf-preview"); + const previewTag = this.getScopedTagName("dbp-pdf-preview"); await this._(previewTag).showPDF( file, withSigBlock, //this.queuedFilesPlacementModes[key] === "manual", diff --git a/src/dbp-signature-lit-element.js b/src/dbp-signature-lit-element.js index ee7cd7d8e3f5c56a3038ddc142d6e63affd3964f..db0a3cf3d24f8a562505f872b8371611830d689f 100644 --- a/src/dbp-signature-lit-element.js +++ b/src/dbp-signature-lit-element.js @@ -131,7 +131,7 @@ export default class DBPSignatureLitElement extends DBPSignatureBaseLitElement { this.addAnnotationInProgress = true; - const viewTag = this.constructor.getScopedTagName('dbp-pdf-annotation-view'); + const viewTag = this.getScopedTagName('dbp-pdf-annotation-view'); this._(viewTag).setAttribute('key', key); this._(viewTag).setAnnotationRows(this.queuedFilesAnnotations[key]); diff --git a/src/dbp-signature-verification-full.js b/src/dbp-signature-verification-full.js index 6c6cdcc560b481c969c1396eda3482cdea7f7c5a..ed0b9098c06b8237ac324c47d627f689d9dc8086 100644 --- a/src/dbp-signature-verification-full.js +++ b/src/dbp-signature-verification-full.js @@ -273,7 +273,7 @@ class SignatureVerificationFull extends ScopedElementsMixin(DBPSignatureLitEleme console.log(file); // start signature placement process this.previewInProgress = true; - const previewTag = this.constructor.getScopedTagName("dbp-pdf-preview"); + const previewTag = this.getScopedTagName("dbp-pdf-preview"); await this._(previewTag).showPDF(file); }