From f6751003f9948947881f797d9408dc97b8901b09 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 8 Apr 2024 15:58:58 +0300 Subject: [PATCH] Refactor #5548 - For Dropdown --- components/lib/dropdown/Dropdown.d.ts | 25 ++++---------------- components/lib/dropdown/Dropdown.vue | 21 ++++++----------- doc/common/apidoc/index.json | 33 ++++----------------------- 3 files changed, 16 insertions(+), 63 deletions(-) diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index c743b51d3..ad078cb1c 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -9,7 +9,6 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { InputTextPassThroughOptions } from '../inputtext'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, DesignToken, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; @@ -48,20 +47,6 @@ 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} @@ -102,10 +87,9 @@ export interface DropdownPassThroughOptions { */ root?: DropdownPassThroughOptionType; /** - * Used to pass attributes to the InputText component. - * @see {@link InputTextPassThroughOptions} + * Used to pass attributes to the input's DOM element. */ - input?: InputTextPassThroughOptions; + input?: DropdownPassThroughOptionType; /** * Used to pass attributes to the clear icon's DOM element. */ @@ -131,10 +115,9 @@ export interface DropdownPassThroughOptions { */ filterContainer?: DropdownPassThroughOptionType; /** - * Used to pass attributes to the InputText component. - * @see {@link InputTextPassThroughOptions} + * Used to pass attributes to the filter input's DOM element. */ - filterInput?: InputTextPassThroughOptions; + filterInput?: DropdownPassThroughOptionType; /** * Used to pass attributes to the filter icon's DOM element. */ diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index d85a8fc7f..b59789344 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -1,6 +1,6 @@