From 645889d8994e4b73ee2f6b9234d1df9eb965ef7b Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 17 Jun 2024 09:58:25 +0200 Subject: [PATCH] remove "as any" from customElements.define() as it excludes widget from the documentation not sure why it was added there in the first place for some widgets --- api/js/etemplate/Et2Vfs/Et2VfsMime.ts | 2 +- api/js/etemplate/Expose/Et2DescriptionExpose.ts | 2 +- api/js/etemplate/Layout/Et2Details/Et2Details.ts | 2 +- api/js/etemplate/Layout/Et2Split/Et2Split.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/Et2Vfs/Et2VfsMime.ts b/api/js/etemplate/Et2Vfs/Et2VfsMime.ts index 0d046e817e..4c78917a27 100644 --- a/api/js/etemplate/Et2Vfs/Et2VfsMime.ts +++ b/api/js/etemplate/Et2Vfs/Et2VfsMime.ts @@ -259,4 +259,4 @@ export class Et2VfsMime extends Et2ImageExpose } -customElements.define("et2-vfs-mime", Et2VfsMime as any); \ No newline at end of file +customElements.define("et2-vfs-mime", Et2VfsMime); \ No newline at end of file diff --git a/api/js/etemplate/Expose/Et2DescriptionExpose.ts b/api/js/etemplate/Expose/Et2DescriptionExpose.ts index 80560af7ff..24f049ad89 100644 --- a/api/js/etemplate/Expose/Et2DescriptionExpose.ts +++ b/api/js/etemplate/Expose/Et2DescriptionExpose.ts @@ -126,4 +126,4 @@ export class Et2DescriptionExpose extends ExposeMixin(Et2Description) implements } } -customElements.define("et2-description-expose", Et2DescriptionExpose as any); \ No newline at end of file +customElements.define("et2-description-expose", Et2DescriptionExpose); \ No newline at end of file diff --git a/api/js/etemplate/Layout/Et2Details/Et2Details.ts b/api/js/etemplate/Layout/Et2Details/Et2Details.ts index 5ad85ceeb0..c49c0926d7 100644 --- a/api/js/etemplate/Layout/Et2Details/Et2Details.ts +++ b/api/js/etemplate/Layout/Et2Details/Et2Details.ts @@ -173,4 +173,4 @@ export class Et2Details extends Et2Widget(SlDetails) if (!this.getDOMNode().contains(event.relatedTarget)) this.hide(); } } -customElements.define("et2-details", Et2Details); +customElements.define("et2-details", Et2Details); \ No newline at end of file diff --git a/api/js/etemplate/Layout/Et2Split/Et2Split.ts b/api/js/etemplate/Layout/Et2Split/Et2Split.ts index c564bd3220..689106f39b 100644 --- a/api/js/etemplate/Layout/Et2Split/Et2Split.ts +++ b/api/js/etemplate/Layout/Et2Split/Et2Split.ts @@ -422,4 +422,4 @@ export class Et2Split extends Et2Widget(SlSplitPanel) } } -customElements.define("et2-split", Et2Split as any); \ No newline at end of file +customElements.define("et2-split", Et2Split); \ No newline at end of file