/** * Combobox component. * * @augments IvComponent */ export class Combobox extends IvComponent { /** @type {Readonly} */ static defaults: Readonly; /** * Returns the combobox instance attached to `el`, if any. * * @param {Element} el Host element. * @returns {Combobox|undefined} The instance or `undefined`. */ static get(el: Element): Combobox | undefined; /** * Returns the existing instance or creates one. * * @param {Element} el Host element. * @param {Partial} [options] Options passed in JavaScript. * @returns {Combobox} The instance. */ static getOrCreate(el: Element, options?: Partial): Combobox; /** * Instantiates every `[data-iv-component="combobox"]` inside `root`. * * @param {ParentNode} [root] Subtree to scan. * @returns {Combobox[]} Newly created instances. */ static initAll(root?: ParentNode): Combobox[]; /** * @param {Element} el A `
` element. * @param {Partial} [options] Options passed in JavaScript. * @throws {IvError} `invalid-element` when there is no input to promote. * @throws {IvError} `missing-target` when `list` is missing or points nowhere. */ constructor(el: Element, options?: Partial); /** @type {HTMLInputElement} The promoted input. */ _input: HTMLInputElement; /** @type {HTMLElement} The datalist kept as the data source. */ _datalist: HTMLElement; /** @type {HTMLElement} The generated listbox. */ _list: HTMLElement; /** @type {HTMLElement} The "no matches" row. */ _empty: HTMLElement; /** @type {ComboboxItem[]} One entry per `