From af9635307e38d56f72bafe4edd32a5f0e1209463 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Mon, 1 Feb 2021 15:21:52 +0100 Subject: [PATCH] Migrate to "...super.properties" --- src/dbp-official-signature-pdf-upload.js | 5 +++-- src/dbp-pdf-preview.js | 5 +++-- src/dbp-qualified-signature-pdf-upload.js | 5 +++-- src/dbp-signature-lit-element.js | 5 +++-- src/dbp-signature-verification-full.js | 5 +++-- src/dbp-signature-verification.js | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/dbp-official-signature-pdf-upload.js b/src/dbp-official-signature-pdf-upload.js index 8789056..c1f2fff 100644 --- a/src/dbp-official-signature-pdf-upload.js +++ b/src/dbp-official-signature-pdf-upload.js @@ -64,7 +64,8 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem } static get properties() { - return this.getProperties({ + return { + ...super.properties, lang: { type: String }, entryPointUrl: { type: String, attribute: 'entry-point-url' }, nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' }, @@ -88,7 +89,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem signaturePlacementInProgress: { type: Boolean, attribute: false }, withSigBlock: { type: Boolean, attribute: false }, isSignaturePlacement: { type: Boolean, attribute: false }, - }); + }; } connectedCallback() { diff --git a/src/dbp-pdf-preview.js b/src/dbp-pdf-preview.js index 63a8dc7..94e82d0 100644 --- a/src/dbp-pdf-preview.js +++ b/src/dbp-pdf-preview.js @@ -51,7 +51,8 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { * See: https://lit-element.polymer-project.org/guide/properties#initialize */ static get properties() { - return this.getProperties({ + return { + ...super.properties, lang: { type: String }, currentPage: { type: Number, attribute: false }, totalPages: { type: Number, attribute: false }, @@ -63,7 +64,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) { signature_width: { type: Number, attribute: 'signature-width' }, signature_height: { type: Number, attribute: 'signature-height' }, allowSignatureRotation: { type: Boolean, attribute: 'allow-signature-rotation' }, - }); + }; } update(changedProperties) { diff --git a/src/dbp-qualified-signature-pdf-upload.js b/src/dbp-qualified-signature-pdf-upload.js index c810b89..6b39cc4 100644 --- a/src/dbp-qualified-signature-pdf-upload.js +++ b/src/dbp-qualified-signature-pdf-upload.js @@ -66,7 +66,8 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle } static get properties() { - return this.getProperties({ + return { + ...super.properties, lang: { type: String }, entryPointUrl: { type: String, attribute: 'entry-point-url' }, nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' }, @@ -91,7 +92,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle signaturePlacementInProgress: { type: Boolean, attribute: false }, withSigBlock: { type: Boolean, attribute: false }, isSignaturePlacement: { type: Boolean, attribute: false }, - }); + }; } connectedCallback() { diff --git a/src/dbp-signature-lit-element.js b/src/dbp-signature-lit-element.js index 6f286f6..c988210 100644 --- a/src/dbp-signature-lit-element.js +++ b/src/dbp-signature-lit-element.js @@ -70,9 +70,10 @@ export default class DBPSignatureLitElement extends DBPSignatureBaseLitElement { } static get properties() { - return this.getProperties({ + return { + ...super.properties, showNextcloudFilePicker: { type: Boolean, attribute: 'show-nextcloud-file-picker' }, - }); + }; } /** diff --git a/src/dbp-signature-verification-full.js b/src/dbp-signature-verification-full.js index 2041153..05f4759 100644 --- a/src/dbp-signature-verification-full.js +++ b/src/dbp-signature-verification-full.js @@ -53,7 +53,8 @@ class SignatureVerificationFull extends ScopedElementsMixin(DBPSignatureLitEleme } static get properties() { - return this.getProperties({ + return { + ...super.properties, lang: { type: String }, entryPointUrl: { type: String, attribute: 'entry-point-url' }, nextcloudWebAppPasswordURL: { type: String, attribute: 'nextcloud-web-app-password-url' }, @@ -75,7 +76,7 @@ class SignatureVerificationFull extends ScopedElementsMixin(DBPSignatureLitEleme currentFileName: { type: String, attribute: false }, previewInProgress: { type: Boolean, attribute: false }, isSignaturePlacement: { type: Boolean, attribute: false }, - }); + }; } connectedCallback() { diff --git a/src/dbp-signature-verification.js b/src/dbp-signature-verification.js index 9996ac9..e78507c 100644 --- a/src/dbp-signature-verification.js +++ b/src/dbp-signature-verification.js @@ -18,9 +18,10 @@ class SignatureVerification extends ScopedElementsMixin(DBPSignatureLitElement) } static get properties() { - return this.getProperties({ + return { + ...super.properties, lang: { type: String }, - }); + }; } update(changedProperties) { -- GitLab