import { type ModelValue, type Size } from '../p-select-list/p-select-list.types'; import { type PropType } from 'vue'; type AnyValue = string | number | boolean | null | undefined | Record; type AnyObject = Record; type __VLS_Slots = { 'selected-item'(props: { item: any; }): unknown; 'placeholder'(): unknown; 'no-items'(): unknown; item(props: { item: any; isItemSelected: boolean; itemTextSplit: string[]; }): unknown; }; declare const __VLS_base: import("vue").DefineComponent; default: null; }; /** * `p-dropdown-select 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 text displayed above the dropdown. */ label: { type: StringConstructor; default: string; }; /** * Error message to display below the dropdown. */ errorMsg: { type: StringConstructor; default: string; }; /** * Whether the field is required. */ required: { type: BooleanConstructor; default: boolean; }; /** * The size of the dropdown component. */ 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; }; /** * Additional attributes to apply to the dropdown menu. */ dropdownMenuAttrs: { type: ObjectConstructor; default: () => {}; }; /** * CSS classes to apply to the dropdown menu. */ dropdownMenuClass: { type: StringConstructor; default: string; }; /** * Inline styles to apply to the dropdown menu. */ dropdownMenuStyle: { type: ObjectConstructor; default: () => {}; }; /** * Props to pass to the underlying PDropdown component. */ pDropdownProps: { type: ObjectConstructor; default: () => {}; }; /** * Whether to enable search functionality within the dropdown. */ searchable: { type: BooleanConstructor; default: boolean; }; /** * Whether to show a clear button when items are selected. */ clearable: { 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; }; /** * Specify the key in the object to be used as item disabled prop. */ disabledBy: { type: PropType; default: string; }; /** * Enables the ability to create new items when no search results are found */ creatable: { type: BooleanConstructor; default: boolean; }; /** * Shows selected items as pills in the button when multiple selection is enabled */ pills: { type: BooleanConstructor; default: boolean; }; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { select: (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; create: (...args: any[]) => void; }, string, import("vue").PublicProps, Readonly; default: null; }; /** * `p-dropdown-select 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 text displayed above the dropdown. */ label: { type: StringConstructor; default: string; }; /** * Error message to display below the dropdown. */ errorMsg: { type: StringConstructor; default: string; }; /** * Whether the field is required. */ required: { type: BooleanConstructor; default: boolean; }; /** * The size of the dropdown component. */ 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; }; /** * Additional attributes to apply to the dropdown menu. */ dropdownMenuAttrs: { type: ObjectConstructor; default: () => {}; }; /** * CSS classes to apply to the dropdown menu. */ dropdownMenuClass: { type: StringConstructor; default: string; }; /** * Inline styles to apply to the dropdown menu. */ dropdownMenuStyle: { type: ObjectConstructor; default: () => {}; }; /** * Props to pass to the underlying PDropdown component. */ pDropdownProps: { type: ObjectConstructor; default: () => {}; }; /** * Whether to enable search functionality within the dropdown. */ searchable: { type: BooleanConstructor; default: boolean; }; /** * Whether to show a clear button when items are selected. */ clearable: { 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; }; /** * Specify the key in the object to be used as item disabled prop. */ disabledBy: { type: PropType; default: string; }; /** * Enables the ability to create new items when no search results are found */ creatable: { type: BooleanConstructor; default: boolean; }; /** * Shows selected items as pills in the button when multiple selection is enabled */ pills: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onSelect?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; onCreate?: ((...args: any[]) => any) | undefined; }>, { size: "sm" | "md" | "lg"; label: string; required: boolean; modelValue: ModelValue; items: AnyValue[] | AnyObject[]; itemText: string; errorMsg: string; placeholder: string; clearable: boolean; valueIsObject: boolean; itemValue: string | number; itemSize: number; itemsVisible: number; dropdownMenuAttrs: Record; dropdownMenuClass: string; dropdownMenuStyle: Record; pDropdownProps: Record; searchable: boolean; multiple: boolean; placeholderSearch: string; selectedTopShown: boolean; disabledBy: string; creatable: boolean; pills: 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; }; };