diff --git a/.changeset/nine-vans-dress.md b/.changeset/nine-vans-dress.md new file mode 100644 index 00000000..d972507c --- /dev/null +++ b/.changeset/nine-vans-dress.md @@ -0,0 +1,6 @@ +--- +'@soramitsu-ui/ui': minor +--- + +**feat**(`STextField`): add `prefix` slot to render inline elements before input, and `filled-state` prop to manually activate the filled state on the component when the prefix presents + diff --git a/.changeset/real-radios-repair.md b/.changeset/real-radios-repair.md new file mode 100644 index 00000000..03e45569 --- /dev/null +++ b/.changeset/real-radios-repair.md @@ -0,0 +1,5 @@ +--- +'@soramitsu-ui/ui': minor +--- + +**feat**(`SSelect`, `SDropdown`): introduce `empty` slot; it is forwarded to the underlying `SSelectDropdown` component diff --git a/.changeset/sixty-pants-dance.md b/.changeset/sixty-pants-dance.md new file mode 100644 index 00000000..1ea5be9a --- /dev/null +++ b/.changeset/sixty-pants-dance.md @@ -0,0 +1,5 @@ +--- +'@soramitsu-ui/ui': patch +--- + +**fix**(`STextField`): specify input font (`sora-tpg-p3`) diff --git a/.changeset/sweet-baboons-brush.md b/.changeset/sweet-baboons-brush.md new file mode 100644 index 00000000..e211b316 --- /dev/null +++ b/.changeset/sweet-baboons-brush.md @@ -0,0 +1,5 @@ +--- +'@soramitsu-ui/ui': minor +--- + +**feat**(`SSelect`, `SDropdown`): add `remote-search` prop that disables default search behaviour diff --git a/.changeset/wild-timers-act.md b/.changeset/wild-timers-act.md new file mode 100644 index 00000000..20341b54 --- /dev/null +++ b/.changeset/wild-timers-act.md @@ -0,0 +1,5 @@ +--- +'@soramitsu-ui/ui': minor +--- + +**feat**(`SSelect`): add `triggerSearch` prop to enable search input in select input diff --git a/packages/ui/cypress/component/Select.spec.cy.ts b/packages/ui/cypress/component/Select.spec.cy.ts index 8dfe47e1..70e2c9c7 100644 --- a/packages/ui/cypress/component/Select.spec.cy.ts +++ b/packages/ui/cypress/component/Select.spec.cy.ts @@ -1,5 +1,14 @@ import { VueTestUtils } from 'cypress/vue' -import { SSelect, SSelectBase, SSelectButton, SSelectInput, SDropdown, SelectSize, STextField } from '@/lib' +import { + SSelect, + SSelectBase, + SSelectButton, + SSelectInput, + SDropdown, + SelectSize, + STextField, + SelectOptionType, +} from '@/lib' const SIZES = [SelectSize.Sm, SelectSize.Md, SelectSize.Lg, SelectSize.Xl] @@ -14,6 +23,7 @@ after(() => { }) const findBtnLabel = () => cy.get('.s-select-btn__label') +const testidSelector = (id: string) => `[data-testid=${id}]` it('Gallery - Dropdown', () => { cy.mount({ @@ -407,3 +417,132 @@ it('SSelectDropdown overlaps STextField', () => { // trying to click to ensure the element is not covered by anything .click() }) +;['SSelect', 'SDropdown'].forEach((selectVariantName) => { + it(`${selectVariantName} - 'empty' slot works`, () => { + cy.mount({ + setup() { + return { + options: [], + selectVariantName, + } + }, + template: ` + + + + `, + }) + + cy.get(testidSelector('select-trigger')).click() + cy.contains("I'm empty").should('exist') + }) + + it(`${selectVariantName} - it is possible to set option type`, () => { + cy.mount({ + setup() { + return { + options: [{ label: 'label', value: 'value' }], + selectVariantName, + selectOptionTypes: Object.values(SelectOptionType), + selectOptionType: ref(), + } + }, + template: ` + + + + `, + }) + + cy.get('select#options-type').select(SelectOptionType.Default) + cy.get(testidSelector('select-trigger')).click() + cy.get(testidSelector('select-option-checkmark')).should('exist') + + cy.get('select#options-type').select(SelectOptionType.Radio) + cy.get(testidSelector('select-trigger')).click() + cy.get(testidSelector('select-option-radio')).should('exist') + + cy.get('select#options-type').select(SelectOptionType.Checkbox) + cy.get(testidSelector('select-trigger')).click() + cy.get(testidSelector('select-option-checkbox')).should('exist') + }) + + it(`${selectVariantName} - there are dropdown search that allows filter options by labels`, () => { + cy.mount({ + setup() { + return { + options: [ + { label: 'label11', value: 'value1' }, + { label: 'label112', value: 'value2' }, + { label: 'label133', value: 'value3' }, + { label: 'label13', value: 'value4' }, + ], + model: ref('value1'), + selectVariantName, + } + }, + template: ` + + `, + }) + + const SEARCH_QUERY = 'label11' + const OPTIONS_WITH_SEARCH_QUERY_IN_LABEL = 2 + + cy.get(testidSelector('select-trigger')).click() + cy.get(testidSelector('select-dropdown-search')).type(SEARCH_QUERY) + cy.get(testidSelector('select-option')).should('have.length', OPTIONS_WITH_SEARCH_QUERY_IN_LABEL) + }) +}) + +it(`SSelect - there are trigger search that allows filter options by labels`, () => { + cy.mount({ + setup() { + return { + options: [ + { label: 'label11', value: 'value1' }, + { label: 'label112', value: 'value2' }, + { label: 'label133', value: 'value3' }, + { label: 'label13', value: 'value4' }, + ], + model: ref('value1'), + } + }, + template: ` + + `, + }) + + const SEARCH_QUERY = 'label11' + const OPTIONS_WITH_SEARCH_QUERY_IN_LABEL = 2 + + cy.get(testidSelector('select-trigger')).click() + cy.get(testidSelector('select-trigger')).type(SEARCH_QUERY) + cy.get(testidSelector('select-option')).should('have.length', OPTIONS_WITH_SEARCH_QUERY_IN_LABEL) +}) + +it(`SSelect - popup is same width as trigger`, () => { + cy.mount({ + setup() { + return { + options: [{ label: 'label11', value: 'value1' }], + model: ref('value1'), + } + }, + template: ` + + `, + }) + + cy.get(testidSelector('select-trigger')).click() + + cy.get(testidSelector('select-trigger')).then(($el1) => { + cy.get(testidSelector('select-dropdown')).should(($el2) => { + expect($el2).to.have.css('width', $el1.outerWidth() + 'px') + }) + }) +}) diff --git a/packages/ui/etc/api/ui.api.md b/packages/ui/etc/api/ui.api.md index 54e1f459..77d19f95 100644 --- a/packages/ui/etc/api/ui.api.md +++ b/packages/ui/etc/api/ui.api.md @@ -367,7 +367,7 @@ showCloseBtn: boolean; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SBadge: DefineComponent<__VLS_WithDefaults_18<__VLS_TypePropsToRuntimeProps_21<{ +export const SBadge: DefineComponent<__VLS_WithDefaults_19<__VLS_TypePropsToRuntimeProps_22<{ type?: "info" | "warning" | "error" | "active" | "debug" | "pending" | undefined; colorBackground?: boolean | undefined; withBorder?: boolean | undefined; @@ -377,7 +377,7 @@ type: string; colorBackground: boolean; withBorder: boolean; onlyMarker: boolean; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SCheckboxSolo: DefineComponent<__VLS_WithDefaults_19<__VLS_TypePropsToRuntimeProps_22, { +export const SCheckboxSolo: DefineComponent<__VLS_WithDefaults_20<__VLS_TypePropsToRuntimeProps_23, { modelValue: boolean; type: string; size: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { modelValue: boolean; type: string; size: string; @@ -495,11 +495,11 @@ size: "md" | "lg" | "xl"; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SCollapseTransition: DefineComponent<__VLS_WithDefaults_20<__VLS_TypePropsToRuntimeProps_23<{ +export const SCollapseTransition: DefineComponent<__VLS_WithDefaults_21<__VLS_TypePropsToRuntimeProps_24<{ duration?: string | undefined; }>, { duration: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { duration: string; @@ -512,12 +512,12 @@ duration: string; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SDatePicker: DefineComponent<__VLS_WithDefaults_14<__VLS_TypePropsToRuntimeProps_17, { +export const SDatePicker: DefineComponent<__VLS_WithDefaults_15<__VLS_TypePropsToRuntimeProps_18, { type: string; time: boolean; disabled: boolean; shortcuts: () => DatePickerOptions; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { type: string; time: boolean; disabled: boolean; @@ -546,6 +546,7 @@ inline?: boolean | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly[] | SelectOptionGroup[] | undefined; @@ -558,6 +559,7 @@ inline?: boolean | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>>>, {}>; // @public (undocumented) @@ -583,6 +585,8 @@ export interface SelectApi extends UnwrapRef> { // (undocumented) readonly options: UnwrapRef[] | SelectOptionGroup[]>; // (undocumented) + readonly remoteSearch: boolean; + // (undocumented) readonly searchQuery: string; // (undocumented) readonly size: SelectSize; @@ -770,7 +774,7 @@ close: boolean; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SNavigationMenu: DefineComponent<__VLS_WithDefaults_24<__VLS_TypePropsToRuntimeProps_27<{ +export const SNavigationMenu: DefineComponent<__VLS_WithDefaults_25<__VLS_TypePropsToRuntimeProps_28<{ modelValue?: string | undefined; collapsed?: boolean | undefined; }>, { @@ -778,7 +782,7 @@ modelValue: string; collapsed: boolean; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: string) => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { @@ -795,9 +799,9 @@ collapsed: boolean; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SNavigationMenuItem: DefineComponent<__VLS_WithDefaults_23<__VLS_TypePropsToRuntimeProps_26<{ +export const SNavigationMenuItem: DefineComponent<__VLS_WithDefaults_24<__VLS_TypePropsToRuntimeProps_27<{ value: string; -}>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}>>>, {}>; @@ -846,7 +850,7 @@ export const SNotificationsProvider: FunctionalComponent<{ // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SPagination: DefineComponent<__VLS_WithDefaults_26<__VLS_TypePropsToRuntimeProps_29<{ +export const SPagination: DefineComponent<__VLS_WithDefaults_27<__VLS_TypePropsToRuntimeProps_30<{ total?: number | undefined; pageSize?: number | null | undefined; currentPage?: number | undefined; @@ -866,7 +870,7 @@ sizesLabel: string; "update:currentPage": (value: number) => void; } & { "update:pageSize": (value: number) => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SProgressBar: DefineComponent<__VLS_WithDefaults_15<__VLS_TypePropsToRuntimeProps_18<{ +export const SProgressBar: DefineComponent<__VLS_WithDefaults_16<__VLS_TypePropsToRuntimeProps_19<{ percent?: number | undefined; lineHeight?: number | undefined; }>, { percent: number; lineHeight: number; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { @@ -1025,11 +1029,11 @@ percent: number; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SRadio: DefineComponent<__VLS_WithDefaults_21<__VLS_TypePropsToRuntimeProps_24, { +export const SRadio: DefineComponent<__VLS_WithDefaults_22<__VLS_TypePropsToRuntimeProps_25, { disabled: boolean; type: string; size: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { disabled: boolean; type: string; size: string; @@ -1049,12 +1053,12 @@ export const SRadioAtom: FunctionalComponent; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SRadioGroup: DefineComponent<__VLS_WithDefaults_22<__VLS_TypePropsToRuntimeProps_25, { +export const SRadioGroup: DefineComponent<__VLS_WithDefaults_23<__VLS_TypePropsToRuntimeProps_26, { modelValue: null; radioSelector: string; labelledBy: string; describedBy: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { modelValue: null; radioSelector: string; labelledBy: string; @@ -1081,7 +1085,9 @@ label?: string | undefined; size?: SelectSize | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; +triggerSearch?: boolean | undefined; dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly[] | SelectOptionGroup[] | undefined; @@ -1092,7 +1098,9 @@ label?: string | undefined; size?: SelectSize | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; +triggerSearch?: boolean | undefined; dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>>>, {}>; // Warning: (ae-forgotten-export) The symbol "__VLS_WithDefaults" needs to be exported by the entry point lib.d.ts @@ -1111,7 +1119,9 @@ syncMenuAndInputWidths?: boolean | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; sameWidthPopper?: boolean | undefined; -dropdownSearch: boolean; +triggerSearch?: boolean | undefined; +dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>, { size: "md"; options: () => never[]; @@ -1123,7 +1133,9 @@ noAutoClose: boolean; label: null; loading: boolean; sameWidthPopper: boolean; +triggerSearch: boolean; dropdownSearch: boolean; +remoteSearch: boolean; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: any) => void; } & { @@ -1140,7 +1152,9 @@ syncMenuAndInputWidths?: boolean | undefined; noAutoClose?: boolean | undefined; loading?: boolean | undefined; sameWidthPopper?: boolean | undefined; -dropdownSearch: boolean; +triggerSearch?: boolean | undefined; +dropdownSearch?: boolean | undefined; +remoteSearch?: boolean | undefined; }>, { size: "md"; options: () => never[]; @@ -1152,7 +1166,9 @@ noAutoClose: boolean; label: null; loading: boolean; sameWidthPopper: boolean; +triggerSearch: boolean; dropdownSearch: boolean; +remoteSearch: boolean; }>>> & { "onUpdate:modelValue"?: ((value: any) => any) | undefined; onSearch?: ((value: string) => any) | undefined; @@ -1166,8 +1182,10 @@ options: SelectOption[] | SelectOptionGroup[]; label: string | null; noAutoClose: boolean; dropdownSearch: boolean; +remoteSearch: boolean; syncMenuAndInputWidths: boolean; sameWidthPopper: boolean; +triggerSearch: boolean; }>; // Warning: (ae-forgotten-export) The symbol "__VLS_WithDefaults" needs to be exported by the entry point lib.d.ts @@ -1191,18 +1209,31 @@ type: SelectButtonType; // @public (undocumented) export const SSelectChevron: FunctionalComponent; +// Warning: (ae-forgotten-export) The symbol "__VLS_WithDefaults" needs to be exported by the entry point lib.d.ts +// Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts +// // @public (undocumented) -export const SSelectInput: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly>, {}>; +export const SSelectInput: DefineComponent<__VLS_WithDefaults_11<__VLS_TypePropsToRuntimeProps_13<{ +search?: boolean | undefined; +}>, { +search: boolean; +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +search: boolean; +}>>>, { +search: boolean; +}>; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SSelectOption: DefineComponent<__VLS_TypePropsToRuntimeProps_13<{ +export const SSelectOption: DefineComponent<__VLS_TypePropsToRuntimeProps_14<{ type: SelectOptionType; selected?: boolean | undefined; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { toggle: () => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly>> & { @@ -1214,10 +1245,10 @@ onToggle?: (() => any) | undefined; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SSpinner: DefineComponent<__VLS_WithDefaults_11<__VLS_TypePropsToRuntimeProps_14, { +export const SSpinner: DefineComponent<__VLS_WithDefaults_12<__VLS_TypePropsToRuntimeProps_15, { size: string; width: number; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { size: string; width: number; }>>>, { @@ -1230,12 +1261,12 @@ width: string | number; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const SSwitch: DefineComponent<__VLS_WithDefaults_12<__VLS_TypePropsToRuntimeProps_15, { +export const SSwitch: DefineComponent<__VLS_WithDefaults_13<__VLS_TypePropsToRuntimeProps_16, { label: string; disabled: boolean; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: boolean) => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { label: string; disabled: boolean; }>>> & { @@ -1249,12 +1280,12 @@ label: string; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const STab: DefineComponent<__VLS_WithDefaults_17<__VLS_TypePropsToRuntimeProps_20<{ +export const STab: DefineComponent<__VLS_WithDefaults_18<__VLS_TypePropsToRuntimeProps_21<{ disabled?: boolean | undefined; name: string; }>, { disabled: boolean; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { @@ -1267,7 +1298,7 @@ disabled: boolean; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const STable: DefineComponent<__VLS_WithDefaults_25<__VLS_TypePropsToRuntimeProps_28<{ +export const STable: DefineComponent<__VLS_WithDefaults_26<__VLS_TypePropsToRuntimeProps_29<{ data?: TableRow[] | undefined; defaultSort?: { prop: string; @@ -1361,7 +1392,7 @@ select: (payload_0: TableRow[], payload_1: TableRow) => void; "change:current": (payload_0: TableRow | null, payload_1: TableRow | null) => void; } & { "click:row-details": (value: TableRow) => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly; @@ -1624,13 +1655,13 @@ reserveSelection: boolean; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const STabsPanel: DefineComponent<__VLS_WithDefaults_16<__VLS_TypePropsToRuntimeProps_19<{ +export const STabsPanel: DefineComponent<__VLS_WithDefaults_17<__VLS_TypePropsToRuntimeProps_20<{ modelValue: string; background?: "primary" | "secondary" | "none" | undefined; }>, { modelValue: string; background: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { @@ -1669,30 +1700,36 @@ export type Status = typeof Status[keyof typeof Status]; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const STextField: DefineComponent<__VLS_WithDefaults_13<__VLS_TypePropsToRuntimeProps_16, { +export const STextField: DefineComponent<__VLS_WithDefaults_14<__VLS_TypePropsToRuntimeProps_17, { multiline: boolean; password: boolean; disabled: boolean; counter: boolean; noEye: boolean; noModelValueStrictSync: boolean; +filledState: boolean; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: string) => void; -}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { +} & { +"click:input-wrapper": (value: MouseEvent) => void; +}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, { multiline: boolean; password: boolean; disabled: boolean; counter: boolean; noEye: boolean; noModelValueStrictSync: boolean; +filledState: boolean; }>>> & { "onUpdate:modelValue"?: ((value: string) => any) | undefined; +"onClick:input-wrapper"?: ((value: MouseEvent) => any) | undefined; }, { disabled: boolean; noModelValueStrictSync: boolean; password: boolean; noEye: boolean; counter: string | number | boolean; +filledState: boolean; }>; // @public (undocumented) @@ -1765,7 +1802,7 @@ apiKey: ProvideKey | ProvideKey[]; // Warning: (ae-forgotten-export) The symbol "__VLS_TypePropsToRuntimeProps" needs to be exported by the entry point lib.d.ts // // @public (undocumented) -export const STooltip: DefineComponent<__VLS_WithDefaults_27<__VLS_TypePropsToRuntimeProps_30<{ +export const STooltip: DefineComponent<__VLS_WithDefaults_28<__VLS_TypePropsToRuntimeProps_31<{ wrapperTag?: string | object | undefined; content?: string | undefined; header?: string | undefined; @@ -1779,7 +1816,7 @@ header: string; placement: string; primaryButtonText: string; secondaryButtonText: string; -}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("click:primary-button" | "click:secondary-button")[], "click:primary-button" | "click:secondary-button", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("click:primary-button" | "click:secondary-button")[], "click:primary-button" | "click:secondary-button", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly { + instance.value?.update() + }) + debouncedWatch( () => props.trigger === 'hover' && [sharedHover.value], (maybeHover) => { diff --git a/packages/ui/src/components/Select/SDropdown.vue b/packages/ui/src/components/Select/SDropdown.vue index 7b67dec2..7fb659a3 100644 --- a/packages/ui/src/components/Select/SDropdown.vue +++ b/packages/ui/src/components/Select/SDropdown.vue @@ -16,6 +16,7 @@ const props = defineProps<{ noAutoClose?: boolean loading?: boolean dropdownSearch?: boolean + remoteSearch?: boolean }>() const buttonType = computed(() => (props.inline ? SelectButtonType.Inline : SelectButtonType.Default)) @@ -30,7 +31,10 @@ function isThereLabelSlot() {