From 3d009dac532a208fb63fef7e99bb1bc5615f5b85 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 16 Jan 2025 10:27:47 +0100 Subject: [PATCH] Use ScopedElementsMixin from common And remove the direct dependency on @open-wc/scoped-elements. The mixin is now provided by common. --- .renovaterc.json | 4 ---- package-lock.json | 1 - package.json | 1 - src/baseObject.js | 2 +- src/components/dbp-cabinet-facets.js | 2 +- src/components/dbp-cabinet-file.js | 2 +- src/components/dbp-cabinet-view-person.js | 2 +- src/dbp-cabinet-search.js | 2 +- 8 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.renovaterc.json b/.renovaterc.json index 6677967..0243223 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -10,10 +10,6 @@ }, "cloneSubmodules": true, "packageRules": [ - { - "matchPackageNames": ["@open-wc/scoped-elements"], - "allowedVersions": "<3" - }, { "matchPackageNames": ["pdfjs-dist"], "allowedVersions": "<4.6" diff --git a/package-lock.json b/package-lock.json index 35f5c47..e08463c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,6 @@ "@digital-blueprint/dispatch-app": "^1.2.7", "@digital-blueprint/esign-app": "^2.1.5", "@fontsource/nunito-sans": "^5.0.0", - "@open-wc/scoped-elements": "^2.1.0", "@tugraz/font-source-sans-pro": "^0.2.4", "@tugraz/web-components": "^0.3.6", "@webcomponents/scoped-custom-element-registry": "^0.0.9", diff --git a/package.json b/package.json index d910484..5000875 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "@digital-blueprint/dispatch-app": "^1.2.7", "@digital-blueprint/esign-app": "^2.1.5", "@fontsource/nunito-sans": "^5.0.0", - "@open-wc/scoped-elements": "^2.1.0", "@tugraz/font-source-sans-pro": "^0.2.4", "@tugraz/web-components": "^0.3.6", "@webcomponents/scoped-custom-element-registry": "^0.0.9", diff --git a/src/baseObject.js b/src/baseObject.js index 81ec799..4f029be 100644 --- a/src/baseObject.js +++ b/src/baseObject.js @@ -1,5 +1,5 @@ import DBPLitElement from '@dbp-toolkit/common/dbp-lit-element'; -import {ScopedElementsMixin} from '@open-wc/scoped-elements'; +import {ScopedElementsMixin} from '@dbp-toolkit/common'; import {css, html, unsafeCSS} from 'lit'; import {createInstance} from './i18n'; import * as commonStyles from '@dbp-toolkit/common/styles'; diff --git a/src/components/dbp-cabinet-facets.js b/src/components/dbp-cabinet-facets.js index 1868bf0..372c61d 100644 --- a/src/components/dbp-cabinet-facets.js +++ b/src/components/dbp-cabinet-facets.js @@ -1,6 +1,6 @@ // noinspection CssUnusedSymbol,JSUnresolvedReference -import {ScopedElementsMixin} from '@open-wc/scoped-elements'; +import {ScopedElementsMixin} from '@dbp-toolkit/common'; import {css, html, render, unsafeCSS} from 'lit'; import * as commonStyles from '@dbp-toolkit/common/styles'; import DBPCabinetLitElement from '../dbp-cabinet-lit-element.js'; diff --git a/src/components/dbp-cabinet-file.js b/src/components/dbp-cabinet-file.js index c93aa76..4605174 100644 --- a/src/components/dbp-cabinet-file.js +++ b/src/components/dbp-cabinet-file.js @@ -1,7 +1,7 @@ import {css, html, unsafeCSS} from 'lit'; import {html as staticHtml, unsafeStatic} from 'lit/static-html.js'; import {createRef, ref} from 'lit/directives/ref.js'; -import {ScopedElementsMixin} from '@open-wc/scoped-elements'; +import {ScopedElementsMixin} from '@dbp-toolkit/common'; import DBPCabinetLitElement from '../dbp-cabinet-lit-element'; import * as commonStyles from '@dbp-toolkit/common/styles'; import {Button, combineURLs, Icon, Modal} from '@dbp-toolkit/common'; diff --git a/src/components/dbp-cabinet-view-person.js b/src/components/dbp-cabinet-view-person.js index fd87506..3d33420 100644 --- a/src/components/dbp-cabinet-view-person.js +++ b/src/components/dbp-cabinet-view-person.js @@ -1,7 +1,7 @@ import {css, html, unsafeCSS} from 'lit'; import {html as staticHtml, unsafeStatic} from 'lit/static-html.js'; import {ref, createRef} from 'lit/directives/ref.js'; -import {ScopedElementsMixin} from '@open-wc/scoped-elements'; +import {ScopedElementsMixin} from '@dbp-toolkit/common'; import DBPCabinetLitElement from "../dbp-cabinet-lit-element"; import * as commonStyles from '@dbp-toolkit/common/styles'; import {Button, Icon, Modal} from '@dbp-toolkit/common'; diff --git a/src/dbp-cabinet-search.js b/src/dbp-cabinet-search.js index 22545ef..ff65125 100644 --- a/src/dbp-cabinet-search.js +++ b/src/dbp-cabinet-search.js @@ -1,7 +1,7 @@ import {css, html} from 'lit'; import {html as staticHtml} from 'lit/static-html.js'; import {ref, createRef} from 'lit/directives/ref.js'; -import {ScopedElementsMixin} from '@open-wc/scoped-elements'; +import {ScopedElementsMixin} from '@dbp-toolkit/common'; import DBPCabinetLitElement from "./dbp-cabinet-lit-element"; import * as commonUtils from '@dbp-toolkit/common/utils'; import * as commonStyles from '@dbp-toolkit/common/styles';