dev-ui.qwc-omnifaces-card.js Maven / Gradle / Ivy
import { LitElement, html, css} from 'lit';
import { pages } from 'build-time-data';
import {JsonRpc} from 'jsonrpc';
import 'qwc/qwc-extension-link.js';
export class QwcOmniFacesCard extends LitElement {
jsonRpc = new JsonRpc(this);
static styles = css`
.identity {
display: flex;
justify-content: flex-start;
}
.description {
padding-bottom: 10px;
}
.logo {
padding-bottom: 10px;
margin-right: 5px;
}
.card-content {
color: var(--lumo-contrast-90pct);
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 2px 2px;
height: 100%;
}
.card-content slot {
display: flex;
flex-flow: column wrap;
padding-top: 5px;
}
`;
static properties = {
extensionName: {attribute: true},
description: {attribute: true},
guide: {attribute: true},
namespace: {attribute: true},
};
constructor() {
super();
}
connectedCallback() {
super.connectedCallback();
}
render() {
return html`
${this.description}
${this._renderCardLinks()}
`;
}
_renderCardLinks(){
return html`${pages.map(page => html`
`)}`;
}
}
customElements.define('qwc-omnifaces-card', QwcOmniFacesCard);