import { LitElement, html, css, TemplateResult } from "lit"; import { property } from "lit/decorators.js"; import "../components/ew-circular-progress"; class EwtPageProgress extends LitElement { @property() label!: string | TemplateResult; @property() progress: number | undefined; render() { return html`
${this.progress !== undefined ? html`
${this.progress}%
` : ""}
${this.label} `; } static styles = css` :host { display: flex; flex-direction: column; text-align: center; } ew-circular-progress { margin-bottom: 16px; } `; } customElements.define("ewt-page-progress", EwtPageProgress); declare global { interface HTMLElementTagNameMap { "ewt-page-progress": EwtPageProgress; } }