import {css, html, LitElement} from 'lit-element'; import {ScopedElementsMixin} from '@open-wc/scoped-elements'; import {FileSourceDemo} from '@dbp-toolkit/file-handling/src/demo'; import * as commonUtils from '@dbp-toolkit/common/utils'; import * as commonStyles from '@dbp-toolkit/common/styles'; import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; import readme from '@dbp-toolkit/file-handling/README.md'; import highlightCSSPath from 'highlight.js/styles/default.css'; import * as demoStyles from "./styles"; import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element"; class DbpFileHandlingDemoActivity extends ScopedElementsMixin(AdapterLitElement) { static get scopedElements() { return { 'dbp-file-handling-demo': FileSourceDemo, }; } static get properties() { return this.getProperties({ }); } 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` ${unsafeHTML(readme)} <dbp-file-handling-demo id="demo" lang="en"></dbp-file-handling-demo> `; } } commonUtils.defineCustomElement('dbp-file-handling-demo-activity', DbpFileHandlingDemoActivity);