From 916825df76a10f37d94c4f727013249f9b134c33 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 8 Apr 2024 15:20:42 +0300 Subject: [PATCH 1/4] Refactor #5548 - For AutoComplete --- components/lib/autocomplete/AutoComplete.d.ts | 6 +- components/lib/autocomplete/AutoComplete.vue | 17 +++--- components/lib/chip/Chip.d.ts | 18 +++--- doc/common/apidoc/index.json | 57 +++++++++++++------ nuxt-vite.config.js | 1 + rollup.config.js | 1 + 6 files changed, 64 insertions(+), 36 deletions(-) diff --git a/components/lib/autocomplete/AutoComplete.d.ts b/components/lib/autocomplete/AutoComplete.d.ts index 9c8dcac9b..9530c7ec9 100755 --- a/components/lib/autocomplete/AutoComplete.d.ts +++ b/components/lib/autocomplete/AutoComplete.d.ts @@ -9,6 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; +import { ChipPassThroughOptions } from '../chip'; import { InputTextPassThroughOptions } from '../inputtext'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, DesignToken, GlobalComponentConstructor, HintedString, Nullable, PassThrough } from '../ts-helpers'; @@ -156,9 +157,10 @@ export interface AutoCompletePassThroughOptions { */ token?: AutoCompletePassThroughOptionType; /** - * Used to pass attributes to the token label's DOM element. + * Used to pass attributes to the Chip. + * @see {@link ChipPassThroughOptions} */ - tokenLabel?: AutoCompletePassThroughOptionType; + tokenLabel?: ChipPassThroughOptions; /** * Used to pass attributes to the remove token icon's DOM element. */ diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index 090a7df33..dd4e47436 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -45,7 +45,7 @@ >
  • - - {{ getOptionLabel(option) }} - - -
  • @@ -182,9 +183,9 @@ From 81383c0f0cd49e0fa22fc945516fc877ca763304 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 8 Apr 2024 15:21:00 +0300 Subject: [PATCH 3/4] Refactor #5548 - For MultiSelect --- components/lib/multiselect/MultiSelect.d.ts | 6 ++++-- components/lib/multiselect/MultiSelect.vue | 17 +++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/components/lib/multiselect/MultiSelect.d.ts b/components/lib/multiselect/MultiSelect.d.ts index e0f60ad35..e4fa398c2 100755 --- a/components/lib/multiselect/MultiSelect.d.ts +++ b/components/lib/multiselect/MultiSelect.d.ts @@ -9,6 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; +import { ChipPassThroughOptions } from '../chip'; import { InputTextPassThroughOptions } from '../inputtext'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, DesignToken, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers'; @@ -133,9 +134,10 @@ export interface MultiSelectPassThroughOptions { */ token?: MultiSelectPassThroughOptionType; /** - * Used to pass attributes to the token label's DOM element. + * Used to pass attributes to the Chip. + * @see {@link ChipPassThroughOptions} */ - tokenLabel?: MultiSelectPassThroughOptionType; + tokenLabel?: ChipPassThroughOptions; /** * Used to pass attributes to the remove token icon's DOM element. */ diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 93d3c461a..583c306c2 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -31,12 +31,12 @@