UNPKG

extra-map-card

Version:

Lovelace custom map card for Home Assistant

28 lines (27 loc) 920 B
import { EntityConfig, ExtraMapCardConfig, HomeAssistant, LovelaceCardEditor } from '@types'; import { LitElement, nothing } from 'lit'; export interface EntitiesEditorEvent extends CustomEvent { detail: { entities?: EntityConfig[]; item?: any; }; target: EventTarget | null; } export declare class ExtraMapEditor extends LitElement implements LovelaceCardEditor { hass?: HomeAssistant; private _config?; private _configEntities?; connectedCallback(): void; disconnectedCallback(): void; setConfig(config: ExtraMapCardConfig): void; protected render(): typeof nothing | import("lit-html").TemplateResult<1>; private _computeLabelCallback; private _valueChanged; private _entitiesValueChanged; static get styles(): import("lit").CSSResult; } declare global { interface HTMLElementTagNameMap { 'extra-map-editor': ExtraMapEditor; } }