/** * `` custom element. Finds the first record in the `value` collection exposed * by its parent element (e.g. ``) whose `key` field matches `value`, then * dispatches a `found` event on the parent with the matching record. * * @example * ```html * * * * * ``` */ export default class KUBAFindElement extends HTMLElement { /** Name of the record field to compare against `value`. Reflects the `key` attribute. */ key: string /** * Value each record's `key` field is compared against (triggers search on set). * Reflects the `value` attribute. */ value: string } declare global { interface HTMLElementTagNameMap { 'kb-find': KUBAFindElement } }