UNPKG

@lion/select-rich

Version:

Provides a select with options that can contain html

88 lines (87 loc) 3.34 kB
declare const LionSelectInvoker_base: typeof LionButton & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/SlotMixinTypes").SlotHost> & Pick<typeof import("@lion/core/types/SlotMixinTypes").SlotHost, "prototype"> & Pick<typeof import("@lion/core").LitElement, "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "shadowRootOptions">; /** * @typedef {import('@lion/core').CSSResult} CSSResult * @typedef {import('@lion/core').TemplateResult} TemplateResult * @typedef {import('@lion/listbox').LionOption} LionOption * @typedef {import('@lion/select-rich').LionSelectRich} LionSelectRich */ /** * LionSelectInvoker: invoker button consuming a selected element */ export class LionSelectInvoker extends LionSelectInvoker_base { static get styles(): import("@lion/core").CSSResult[]; static get properties(): { selectedElement: { type: ObjectConstructor; }; hostElement: { type: ObjectConstructor; }; readOnly: { type: BooleanConstructor; reflect: boolean; attribute: string; }; singleOption: { type: BooleanConstructor; reflect: boolean; attribute: string; }; active: { type: BooleanConstructor; reflect: boolean; }; type: { type: StringConstructor; reflect: boolean; }; }; /** * @configure OverlayMixin */ get _contentWrapperNode(): HTMLElement | null; /** * When the connected LionSelectRich instance is readOnly, * this should be reflected in the invoker as well */ readOnly: boolean; /** * The option element that is currently selected * @type {LionOption | null} */ selectedElement: LionOption | null; /** * The LionSelectRich element this invoker is part of. Will be set on connectedCallback of * LionSelectRich * @type {LionSelectRich | null} */ hostElement: LionSelectRich | null; /** * When the connected LionSelectRich instance has only one option, * this should be reflected in the invoker as well */ singleOption: boolean; /** @private */ private __handleKeydown; /** * @protected * @returns {TemplateResult|Node[]|string|null} */ protected _contentTemplate(): TemplateResult | Node[] | string | null; /** * To be overriden for a placeholder, used when `hasNoDefaultSelected` is true on the select rich * @protected * @returns {TemplateResult} */ protected _noSelectionTemplate(): TemplateResult; /** @protected */ protected _beforeTemplate(): import("@lion/core").TemplateResult<1>; /** @protected */ protected _afterTemplate(): import("@lion/core").TemplateResult<1>; } export type CSSResult = import('@lion/core').CSSResult; export type TemplateResult = import('@lion/core').TemplateResult; export type LionOption = import('@lion/listbox').LionOption; export type LionSelectRich = import('@lion/select-rich').LionSelectRich; import { LionButton } from "@lion/button"; export {};