feat(combo-box): migrate ComboBox with input-owned focus and filtering
Port the fixed-baseline ComboBox onto the B02a collection protocol: the input keeps real DOM focus, the list only tracks an active row, and filtering reuses the owner filter instead of a second collection kernel. - Five parts: root (field text control, value/input/open models, form value, owner wiring), InputGroup (composes the caller's Input into the combobox control and anchors the popover), Trigger, Value, Popover. - Closed-state metadata is planned from the slot tree, so filtering, the initial value label and form-value="text" work before the list has mounted. - Selection text syncs on selection changes only, so allows-custom-value typing is not overwritten; read-only and disabled are injected onto the composed input because it reads the text-field protocol, not the field context. - 24 baseline previews, the Chinese doc page, navigation, 19 behaviour tests and 6 demo/document contracts. Async demo uses a local async source with abort, loading and incremental append (documented adaptations). Not included: independent tarball consumption (B02d).
This commit is contained in:
@@ -958,3 +958,24 @@ export {
|
||||
type TagGroupVariants,
|
||||
type ErrorMessageVariants,
|
||||
} from "@heroui-vue/styles";
|
||||
|
||||
export { default as ComboBox } from "./components/combo-box/ComboBox.vue";
|
||||
export { default as ComboBoxInputGroup } from "./components/combo-box/ComboBoxInputGroup.vue";
|
||||
export { default as ComboBoxTrigger } from "./components/combo-box/ComboBoxTrigger.vue";
|
||||
export { default as ComboBoxValue } from "./components/combo-box/ComboBoxValue.vue";
|
||||
export { default as ComboBoxPopover } from "./components/combo-box/ComboBoxPopover.vue";
|
||||
export type {
|
||||
ComboBoxProps,
|
||||
ComboBoxInputGroupProps,
|
||||
ComboBoxTriggerProps,
|
||||
ComboBoxValueProps,
|
||||
ComboBoxPopoverProps,
|
||||
} from "./types";
|
||||
export type {
|
||||
ComboBoxItem,
|
||||
ComboBoxValue as ComboBoxValueType,
|
||||
ComboBoxMenuTrigger,
|
||||
ComboBoxOptions,
|
||||
} from "./components/combo-box/context";
|
||||
|
||||
export { comboBoxVariants, type ComboBoxVariants } from "@heroui-vue/styles";
|
||||
|
||||
Reference in New Issue
Block a user