bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
61 lines (60 loc) • 2.32 kB
TypeScript
import { BFormSelectBaseProps } from '../../types';
/**
* 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_ModelProps = {
modelValue?: BFormSelectBaseProps['modelValue'];
};
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
declare var __VLS_1: {}, __VLS_14: {
[key: string]: unknown;
value: unknown;
text?: string;
disabled?: boolean;
}, __VLS_16: {};
type __VLS_Slots = {} & {
first?: (props: typeof __VLS_1) => any;
} & {
option?: (props: typeof __VLS_14) => any;
} & {
default?: (props: typeof __VLS_16) => any;
};
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
blur: () => void;
element: Readonly<import('vue').ShallowRef<HTMLSelectElement | null, HTMLSelectElement | null>>;
focus: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: import('../..').SelectValue | undefined) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:modelValue"?: ((value: import('../..').SelectValue | undefined) => 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[];
disabledField: string;
multiple: boolean;
textField: string;
valueField: string;
plain: boolean;
labelField: string;
optionsField: string;
selectSize: import('../../types/CommonTypes').Numberish;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};