import { css, html, LitElement } from "lit"; import { property } from "lit/decorators.js"; interface OptionItem { label: string; value: string; key: string; } export default class ItemsSelectInput extends LitElement { @property({ type: Object }) config?: { "dropdown-list": OptionItem[]; "checkbox-list": OptionItem[]; "radio-list": OptionItem[]; }; static styles = css` .grid { display: grid; grid-template-columns: 35% 60%; 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}`;
}
}