Skip to content
Snippets Groups Projects
Unverified Commit a8c527e6 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Integrate AdapterLitElement (dbp/apps/checkin#3)

parent e012292e
No related branches found
No related tags found
No related merge requests found
Pipeline #16036 passed
...@@ -2,7 +2,7 @@ import {findObjectInApiResults} from './utils.js'; ...@@ -2,7 +2,7 @@ import {findObjectInApiResults} from './utils.js';
import select2LangDe from './i18n/de/select2'; import select2LangDe from './i18n/de/select2';
import select2LangEn from './i18n/en/select2'; import select2LangEn from './i18n/en/select2';
import JSONLD from '@dbp-toolkit/common/jsonld'; import JSONLD from '@dbp-toolkit/common/jsonld';
import {css, html, LitElement} from 'lit-element'; import {css, html} from 'lit-element';
import {ScopedElementsMixin} from '@open-wc/scoped-elements'; import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import {Icon} from '@dbp-toolkit/common'; import {Icon} from '@dbp-toolkit/common';
...@@ -10,6 +10,7 @@ import * as commonUtils from '@dbp-toolkit/common/utils'; ...@@ -10,6 +10,7 @@ import * as commonUtils from '@dbp-toolkit/common/utils';
import * as commonStyles from '@dbp-toolkit/common/styles'; import * as commonStyles from '@dbp-toolkit/common/styles';
import select2CSSPath from 'select2/dist/css/select2.min.css'; import select2CSSPath from 'select2/dist/css/select2.min.css';
import * as errorUtils from "@dbp-toolkit/common/error"; import * as errorUtils from "@dbp-toolkit/common/error";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
const checkInPlaceContext = { const checkInPlaceContext = {
...@@ -19,7 +20,7 @@ const checkInPlaceContext = { ...@@ -19,7 +20,7 @@ const checkInPlaceContext = {
}; };
export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
constructor() { constructor() {
super(); super();
...@@ -56,7 +57,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { ...@@ -56,7 +57,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
lang: { type: String }, lang: { type: String },
active: { type: Boolean, attribute: false }, active: { type: Boolean, attribute: false },
entryPointUrl: { type: String, attribute: 'entry-point-url' }, entryPointUrl: { type: String, attribute: 'entry-point-url' },
...@@ -65,7 +66,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { ...@@ -65,7 +66,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) {
showReloadButton: { type: Boolean, attribute: 'show-reload-button' }, showReloadButton: { type: Boolean, attribute: 'show-reload-button' },
reloadButtonTitle: { type: String, attribute: 'reload-button-title' }, reloadButtonTitle: { type: String, attribute: 'reload-button-title' },
showCapacity: { type: Boolean, attribute: 'show-capacity' }, showCapacity: { type: Boolean, attribute: 'show-capacity' },
}; });
} }
clear() { clear() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment