UNPKG

extra-map-card

Version:

Lovelace custom map card for Home Assistant

217 lines (216 loc) 5.91 kB
import { LocalizeFunc } from 'custom-card-helpers'; export declare const CARD_VERSION: string; export declare const STYLE_SCHEMA: { name: string; selector: { select: { options: string[]; }; }; }[]; export declare const DARK_AVAILABLE_STYLES: string[]; export declare const STYLE_OPTIONS: { value: string; label: string; }[]; export declare const DEFAULT_HOURS_TO_SHOW = 0; export declare const DEFAULT_ZOOM = 14; export declare const singleMapConfingSchema: import("memoize-one").MemoizedFn<(localize: LocalizeFunc) => readonly [{ readonly name: ""; readonly type: "expandable"; readonly iconPath: string; readonly title: string; readonly schema: readonly [{ readonly name: ""; readonly type: "grid"; readonly schema: readonly ({ name: string; label: string; selector: { text: {}; number?: undefined; select?: undefined; boolean?: undefined; }; default?: undefined; } | { name: string; label: string; default: number; selector: { number: { mode: string; min: number; }; text?: undefined; select?: undefined; boolean?: undefined; }; } | { name: string; label: string; default: string; selector: { select: { mode: string; options: { value: string; label: string; }[]; }; text?: undefined; number?: undefined; boolean?: undefined; }; } | { name: string; label: string; default: boolean; selector: { boolean: {}; text?: undefined; number?: undefined; select?: undefined; }; })[]; }, { name: string; type: string; iconPath: string; title: string; schema: { name: string; type: string; schema: { name: string; label: string; selector: { select: { mode: string; options: { value: string; label: string; }[]; }; }; }[]; }[]; }]; }]>; export declare const baseMapConfigSchema: import("memoize-one").MemoizedFn<() => readonly [{ readonly name: "title"; readonly label: "Title"; readonly selector: { readonly text: { readonly type: "text"; }; }; }, { readonly name: "api_key"; readonly label: "MapTiler API Key (required)"; readonly required: true; readonly selector: { readonly text: { readonly type: "text"; }; }; }]>; export declare const mapConfigSchema: import("memoize-one").MemoizedFn<(localize: LocalizeFunc) => ({ readonly name: ""; readonly type: "expandable"; readonly iconPath: string; readonly title: string; readonly schema: readonly [{ readonly name: ""; readonly type: "grid"; readonly schema: readonly ({ name: string; label: string; selector: { text: {}; number?: undefined; select?: undefined; boolean?: undefined; }; default?: undefined; } | { name: string; label: string; default: number; selector: { number: { mode: string; min: number; }; text?: undefined; select?: undefined; boolean?: undefined; }; } | { name: string; label: string; default: string; selector: { select: { mode: string; options: { value: string; label: string; }[]; }; text?: undefined; number?: undefined; boolean?: undefined; }; } | { name: string; label: string; default: boolean; selector: { boolean: {}; text?: undefined; number?: undefined; select?: undefined; }; })[]; }, { name: string; type: string; iconPath: string; title: string; schema: { name: string; type: string; schema: { name: string; label: string; selector: { select: { mode: string; options: { value: string; label: string; }[]; }; }; }[]; }[]; }]; } | { readonly name: "title"; readonly label: "Title"; readonly selector: { readonly text: { readonly type: "text"; }; }; } | { readonly name: "api_key"; readonly label: "MapTiler API Key (required)"; readonly required: true; readonly selector: { readonly text: { readonly type: "text"; }; }; })[]>;