import { html, LitElement } from "lit" import { customElement, property } from "lit/decorators.js" //import { baseStyling } from "../../../styling/base.js" import "./default-object-input.js" import "./lint-rule-level-object-input.js" @customElement("object-input") export class ObjectInput extends LitElement { //static override styles = [baseStyling] @property() property: string = "" @property() moduleId?: string @property() modules?: object @property() keyPlaceholder?: string @property() valuePlaceholder?: string @property() value: Record = {} @property() schema: any = {} @property() withTitle?: boolean = true @property() withDescription?: boolean = true @property() required?: boolean = false @property() handleInlangProjectChange: ( value: Record, key: string, moduleId?: string ) => void = () => {} override render() { if (this.property === "messageLintRuleLevels") { return html`` } else { return html`` } } } // add types declare global { interface HTMLElementTagNameMap { "object-input": ObjectInput } }