diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index e8c0915f2..394c611cd 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -9,8 +9,9 @@ */ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; +import { InputTextPassThroughOptions } from '../inputtext'; import { PassThroughOptions } from '../passthrough'; -import { ClassComponent, GlobalComponentConstructor, PassThrough, HintedString } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type DropdownPassThroughOptionType = DropdownPassThroughAttributes | ((options: DropdownPassThroughMethodOptions) => DropdownPassThroughAttributes | string) | string | null | undefined; @@ -47,6 +48,20 @@ export interface DropdownPassThroughMethodOptions { global: object | undefined; } +/** + * Custom shared passthrough(pt) option method. + */ +export interface DropdownSharedPassThroughMethodOptions { + /** + * Defines valid properties. + */ + props: DropdownProps; + /** + * Defines current inline state. + */ + state: DropdownState; +} + /** * Custom change event. * @see {@link DropdownEmits.change} @@ -87,9 +102,10 @@ export interface DropdownPassThroughOptions { */ root?: DropdownPassThroughOptionType; /** - * Used to pass attributes to the input's DOM element. + * Used to pass attributes to the InputText component. + * @see {@link InputTextPassThroughOptions} */ - input?: DropdownPassThroughOptionType; + input?: InputTextPassThroughOptions; /** * Used to pass attributes to the clear icon's DOM element. */ @@ -115,9 +131,10 @@ export interface DropdownPassThroughOptions { */ filterContainer?: DropdownPassThroughOptionType; /** - * Used to pass attributes to the filter input's DOM element. + * Used to pass attributes to the InputText component. + * @see {@link InputTextPassThroughOptions} */ - filterInput?: DropdownPassThroughOptionType; + filterInput?: InputTextPassThroughOptions; /** * Used to pass attributes to the filter icon's DOM element. */ @@ -216,7 +233,7 @@ export interface DropdownState { focused: boolean; /** * Current focused item index as a number. - * @defaultvalue -1 + * @defaultValue -1 */ focusedOptionIndex: number; /** @@ -260,7 +277,7 @@ export interface DropdownProps { */ modelValue?: any; /** - * An array of selectitems to display as the available options. + * An array of select items to display as the available options. */ options?: any[]; /** diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index d85de8e33..0cda9406d 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -1,6 +1,6 @@