From 4221682530f720528bd51f82ff541a64b4202297 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 3 May 2024 23:53:04 +0300 Subject: [PATCH] Refactor #5681, #5683 - For Listbox, Select --- components/lib/listbox/Listbox.d.ts | 14 ++-- components/lib/listbox/Listbox.vue | 12 ++-- components/lib/listbox/style/ListboxStyle.js | 8 +-- components/lib/select/BaseSelect.vue | 20 ++++++ components/lib/select/Select.d.ts | 69 +++++++++++++------- components/lib/select/Select.vue | 47 +++++++------ components/lib/select/style/SelectStyle.js | 22 +++---- 7 files changed, 122 insertions(+), 70 deletions(-) diff --git a/components/lib/listbox/Listbox.d.ts b/components/lib/listbox/Listbox.d.ts index 99ace9aa1..f84775925 100755 --- a/components/lib/listbox/Listbox.d.ts +++ b/components/lib/listbox/Listbox.d.ts @@ -130,15 +130,15 @@ export interface ListboxPassThroughOptions { * Used to pass attributes to the InputText component. * @see {@link InputTextPassThroughOptions} */ - filterInput?: InputTextPassThroughOptions; + filter?: InputTextPassThroughOptions; /** * Used to pass attributes to the filter icon's DOM element. */ filterIcon?: ListboxPassThroughOptionType; /** - * Used to pass attributes to the wrapper's DOM element. + * Used to pass attributes to the list container's DOM element. */ - wrapper?: ListboxPassThroughOptionType; + listContainer?: ListboxPassThroughOptionType; /** * Used to pass attributes to the VirtualScroller component. * @see {@link VirtualScrollerPassThroughOptionType} @@ -149,13 +149,13 @@ export interface ListboxPassThroughOptions { */ list?: ListboxPassThroughOptionType; /** - * Used to pass attributes to the item group's DOM element. + * Used to pass attributes to the option group's DOM element. */ - itemGroup?: ListboxPassThroughOptionType; + optionGroup?: ListboxPassThroughOptionType; /** - * Used to pass attributes to the item's DOM element. + * Used to pass attributes to the option's DOM element. */ - item?: ListboxPassThroughOptionType; + option?: ListboxPassThroughOptionType; /** * Used to pass attributes to the emptyMessage's DOM element. */ diff --git a/components/lib/listbox/Listbox.vue b/components/lib/listbox/Listbox.vue index 6d5e874f1..ab3e9bd40 100755 --- a/components/lib/listbox/Listbox.vue +++ b/components/lib/listbox/Listbox.vue @@ -19,7 +19,7 @@ @@ -43,7 +43,7 @@ {{ filterResultMessageText }} -
+