import { SvelteComponentTyped } from "svelte"; export type ListBoxRequiredInputProps = { /** * Set to `true` when the list box has a selection * @default false */ hasValue?: boolean; /** * Set to `true` to bar the proxy from validation, as a disabled field is * @default false */ disabled?: boolean; /** * Set to `true` to bar the proxy from validation, as a read-only field is * @default false */ readonly?: boolean; /** * The element focused when a submit attempt finds the field empty. * @default null */ focusTarget?: null | HTMLElement; /** * The `id` of a `
` to validate with when the list box is outside it. */ form?: string | undefined; }; export default class ListBoxRequiredInput extends SvelteComponentTyped< ListBoxRequiredInputProps, { /** * Constraint-validation proxy for a list box whose value lives in hidden * inputs, which the browser never validates. A required text input that is * empty when nothing is selected, so a wrapping `` blocks submit. * Kept out of the tab order and the accessibility tree. The browser's error * bubble is cancelled; on a submit attempt, the owner shows its invalid * state on `invalid` instead, and clears it on `reset`. Calling * `checkValidity()` from code shows nothing. */ invalid: CustomEvent; reset: CustomEvent; }, Record > {}