import { css, html, LitElement } from "lit"; import { property } from "lit/decorators.js"; export default class BasicInputs extends LitElement { @property({ type: Object }) config?: { text: string; email: string; url: string; password: string; textarea: string; number: number; float: number; units: number; slider: number; checkbox: boolean; switch: boolean; }; static styles = css` .grid { display: grid; grid-template-columns: 20% 75%; gap: 0.5rem 1rem; align-items: center; } .label { font-weight: bold; font-size: 0.9rem; text-align: left; } .value { background: #f5f5f5; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; } `; render() { if (!this.config) { return html`
${value}
`;
}
}