import { type AnyObject, type AnyValue, type ModelValue, type Size } from './p-select-list.types'; import { type PropType } from 'vue'; type __VLS_Slots = { 'selected-item'(props: { item: any; }): unknown; 'no-items'(): unknown; item(props: { item: any; isItemSelected: boolean; itemTextSplit: string[]; }): unknown; }; declare const __VLS_base: import("vue").DefineComponent; default: null; }; /** * `p-select-list v-model normally works with a string or an array of strings (for multiple mode). * Setting this prop to `true` will switch the behavior to an object (or array of objects) for the v-model value. * e.g `:value="{ value: 1, text: 'option text' }"` */ valueIsObject: { type: BooleanConstructor; default: boolean; }; /** * Can be an array of objects or array of strings. When using objects, will look for a text - value pair. * This can be changed using the item-text, item-value props. */ items: { type: PropType; default: () => never[]; }; label: { type: StringConstructor; default: string; }; errorMsg: { type: StringConstructor; default: string; }; required: { type: BooleanConstructor; default: boolean; }; size: { type: PropType; default: string; validator(value: Size): boolean; }; /** * Set property of **items**’s text value */ itemText: { type: StringConstructor; default: string; }; /** * Set property of **items**’s value - must be primitive. */ itemValue: { type: (StringConstructor | NumberConstructor)[]; default: string; }; /** * itemSize sets the list item's height and it's REQUIRED if a custom item template is used * https://github.com/Akryum/vue-virtual-scroller/tree/v1/packages/vue-virtual-scroller#props */ itemSize: { type: NumberConstructor; default: null; }; /** * The number of items visible in the list */ itemsVisible: { type: NumberConstructor; default: number; }; searchable: { type: BooleanConstructor; default: boolean; }; /** * Enables multiple selection */ multiple: { type: BooleanConstructor; default: boolean; }; /** * Dropdown button text */ placeholder: { type: StringConstructor; default: string; }; /** * Placeholder for the search field */ placeholderSearch: { type: StringConstructor; default: string; }; /** * Setting it to `true` will display the selected options at the top of the list */ selectedTopShown: { type: BooleanConstructor; default: boolean; }; topSectionClass: { type: StringConstructor; default: string; }; closePopperOnSelect: { type: BooleanConstructor; default: boolean; }; /** * Focus the search input on mount */ focusSearchOnMount: { type: BooleanConstructor; default: boolean; }; /** * Specify the key in the object to be used as item disabled prop. */ disabledBy: { type: PropType; default: string; }; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { select: (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; }, string, import("vue").PublicProps, Readonly; default: null; }; /** * `p-select-list v-model normally works with a string or an array of strings (for multiple mode). * Setting this prop to `true` will switch the behavior to an object (or array of objects) for the v-model value. * e.g `:value="{ value: 1, text: 'option text' }"` */ valueIsObject: { type: BooleanConstructor; default: boolean; }; /** * Can be an array of objects or array of strings. When using objects, will look for a text - value pair. * This can be changed using the item-text, item-value props. */ items: { type: PropType; default: () => never[]; }; label: { type: StringConstructor; default: string; }; errorMsg: { type: StringConstructor; default: string; }; required: { type: BooleanConstructor; default: boolean; }; size: { type: PropType; default: string; validator(value: Size): boolean; }; /** * Set property of **items**’s text value */ itemText: { type: StringConstructor; default: string; }; /** * Set property of **items**’s value - must be primitive. */ itemValue: { type: (StringConstructor | NumberConstructor)[]; default: string; }; /** * itemSize sets the list item's height and it's REQUIRED if a custom item template is used * https://github.com/Akryum/vue-virtual-scroller/tree/v1/packages/vue-virtual-scroller#props */ itemSize: { type: NumberConstructor; default: null; }; /** * The number of items visible in the list */ itemsVisible: { type: NumberConstructor; default: number; }; searchable: { type: BooleanConstructor; default: boolean; }; /** * Enables multiple selection */ multiple: { type: BooleanConstructor; default: boolean; }; /** * Dropdown button text */ placeholder: { type: StringConstructor; default: string; }; /** * Placeholder for the search field */ placeholderSearch: { type: StringConstructor; default: string; }; /** * Setting it to `true` will display the selected options at the top of the list */ selectedTopShown: { type: BooleanConstructor; default: boolean; }; topSectionClass: { type: StringConstructor; default: string; }; closePopperOnSelect: { type: BooleanConstructor; default: boolean; }; /** * Focus the search input on mount */ focusSearchOnMount: { type: BooleanConstructor; default: boolean; }; /** * Specify the key in the object to be used as item disabled prop. */ disabledBy: { type: PropType; default: string; }; }>> & Readonly<{ onSelect?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; }>, { size: "sm" | "md" | "lg"; label: string; required: boolean; modelValue: ModelValue; items: AnyValue[] | AnyObject[]; itemText: string; errorMsg: string; placeholder: string; valueIsObject: boolean; itemValue: string | number; itemSize: number; itemsVisible: number; searchable: boolean; multiple: boolean; placeholderSearch: string; selectedTopShown: boolean; disabledBy: string; topSectionClass: string; closePopperOnSelect: boolean; focusSearchOnMount: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };