bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
66 lines (65 loc) • 2.34 kB
text/typescript
import { BFormSelectBaseProps } from '../../types/ComponentProps';
/**
* Base component for BFormSelect - non-generic implementation using useDefaults.
* Renders a select element with normalized options and option groups.
* Supports both simple options and complex grouped options.
*/
type __VLS_Props = Omit<BFormSelectBaseProps, 'modelValue'>;
type __VLS_PublicProps = {
modelValue?: unknown;
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
first?(_: {}): any;
option?(_: {
[key: string]: unknown;
value: unknown;
text?: string;
disabled?: boolean;
}): any;
default?(_: {}): any;
};
refs: {
_input: HTMLSelectElement;
};
rootEl: HTMLSelectElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
blur: () => void;
element: Readonly<import('vue').ShallowRef<HTMLSelectElement | null>>;
focus: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: unknown) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
}>, {
disabled: boolean;
ariaInvalid: import('../..').AriaInvalid;
autofocus: boolean;
form: string;
id: string;
name: string;
required: boolean;
size: import('../..').Size;
state: import('../..').ValidationState;
options: readonly (string | number | Record<string, unknown>)[] | readonly import('../..').SelectOptionRaw[] | readonly import('../..').ComplexSelectOptionRaw[];
multiple: boolean;
valueField: string;
textField: string;
disabledField: string;
optionsField: string;
labelField: string;
plain: boolean;
selectSize: import('../../types/CommonTypes').Numberish;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
_input: HTMLSelectElement;
}, HTMLSelectElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};