-
Reiter, Christoph authoredReiter, Christoph authored
dbp-demo-template.js 2.08 KiB
import {css, html} from 'lit';
import {ScopedElementsMixin} from '@open-wc/scoped-elements';
//import {ClassName} from '@dbp-toolkit/package-name/src/dbp-demo-activity-name'; TODO
import * as commonStyles from '@dbp-toolkit/common/styles';
//import * as commonUtils from "@dbp-toolkit/common/utils";
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
// import readme from '@dbp-toolkit/class-name/README.md'; TODO
import * as demoStyles from './styles';
import {AdapterLitElement} from '@dbp-toolkit/provider/src/adapter-lit-element';
export class DbpActivityNameDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
//TODO
constructor() {
super();
this.lang = 'en';
this.entryPointUrl = '';
}
static get scopedElements() {
return {
// TODO
//'dbp-class-name-demo': ClassName,
};
}
static get properties() {
return {
...super.properties,
lang: {type: String},
entryPointUrl: {type: String, attribute: 'entry-point-url'},
};
}
connectedCallback() {
super.connectedCallback();
this.updateComplete.then(() => {});
}
static get styles() {
// language=css
return [
commonStyles.getThemeCSS(),
commonStyles.getGeneralCSS(),
demoStyles.getDemoCSS(),
css`
h1.title {
margin-bottom: 1em;
}
div.container {
margin-bottom: 1.5em;
}
#demo {
display: block;
padding-top: 50px;
}
`,
];
}
render() {
return html`
<!--
TODO
${unsafeHTML('readme')}
<dbp-class-name-demo id="demo" lang="${this.lang}" entry-point-url="${this
.entryPointUrl}"></dbp-class-name-demo>
-->
`;
}
}
//commonUtils.defineCustomElement('dbp-class-name-demo-activity', DbpClassNameDemoActivity); TODO