feat(collections): auto incremental async loading, shared filtering and submenu delay

HD-10 scope, against heroui ce90ea3 collection sources and their
react-aria/react-stately dependencies:

- the ComboBox async demo now auto-loads on scroll-to-bottom
  (IntersectionObserver sentinel + fill chain mirroring the pinned
  ListBoxLoadMoreItem re-observe semantics), never duplicates requests
  (loading guards + monotonic sequence token), drops stale responses on
  query switches, keeps a retry path for failures (injectable mock
  failure) and documents its differences from the pinned SWAPI source;
  the Select demo's observer stays untouched (real-network scroll
  triggering verified in browser)
- the Autocomplete virtualization demo and the default filter share one
  locale-sensitive matcher: createBaseContains (Intl.Collator base
  sensitivity, cafe matches Cafe with accent folding) is now exported
  from the package root
- Autocomplete trigger semantics verified complete (single tab stop,
  Enter/Space/Escape/Delete/IME, single and multiple selection) and the
  scoped slots gained composition data instead of child copying:
  AutocompleteValue exposes selectedItem and per-entry source item,
  the ComboBox root exposes selectedItem
- DropdownSubmenuTrigger exposes the pinned delay contract (default
  200ms): the controlled open gate retimes Reka's fixed 100ms hover,
  keyboard opens stay immediate and cancel the pending hover, pointer
  leave cancels; the dead side/align forwarding is gone (Reka fixes the
  submenu side per direction); Button/Avatar trigger layout
  compensation kept after browser proof it is what wins the cascade
- tests/fixtures/collections-rtl.vue drives the real-browser delay and
  RTL geometry checks; b02-pickers contract pins the new export and
  slot typing

Full suite 111 files / 1666 tests, typecheck, build:docs and the
b02-pickers + api-root-aliases tarball contracts pass.
This commit is contained in:
maoyingjie
2026-10-29 13:46:13 +08:00
parent c34faccd70
commit c8d54abefb
21 changed files with 1020 additions and 173 deletions
+358 -90
View File
@@ -80,7 +80,8 @@
"AutocompletePopover",
"AutocompleteFilter",
"comboBoxVariants",
"autocompleteVariants"
"autocompleteVariants",
"createBaseContains"
],
"css": [
".hv-combo-box",
@@ -169,7 +170,9 @@
]
},
"color-field-protocol": {
"exports": ["ColorPicker"],
"exports": [
"ColorPicker"
],
"css": [
".hv-color-field",
".hv-color-input-group",
@@ -180,8 +183,13 @@
]
},
"color-foundation": {
"exports": ["ColorPicker"],
"css": [".hv-color-area", ".hv-color-area__thumb"]
"exports": [
"ColorPicker"
],
"css": [
".hv-color-area",
".hv-color-area__thumb"
]
},
"color-picker-protocol": {
"exports": [
@@ -198,7 +206,9 @@
]
},
"color-slider-foundation": {
"exports": ["ColorPicker"],
"exports": [
"ColorPicker"
],
"css": [
".hv-color-slider",
".hv-color-slider__track",
@@ -290,7 +300,11 @@
"PaginationItem",
"PaginationLink"
],
"css": ["hv-header", "hv-pagination", "hv-input-otp"]
"css": [
"hv-header",
"hv-pagination",
"hv-input-otp"
]
},
"m33-m34": {
"exports": [
@@ -402,7 +416,10 @@
"Label",
"sliderVariants"
],
"css": [".hv-slider__track", "hv-slider__thumb"]
"css": [
".hv-slider__track",
"hv-slider__thumb"
]
},
"color-swatch": {
"exports": [
@@ -607,7 +624,12 @@
"FieldError",
"Button"
],
"css": [".hv-textfield", ".hv-input", ".hv-field-error", ".hv-button"]
"css": [
".hv-textfield",
".hv-input",
".hv-field-error",
".hv-button"
]
},
"api-root-aliases": {
"exports": [
@@ -778,88 +800,334 @@
"TypographyRoot"
],
"aliases": [
["Accordion", "AccordionRoot"],
["Alert", "AlertRoot"],
["AlertDialog", "AlertDialogRoot"],
["Autocomplete", "AutocompleteRoot"],
["Avatar", "AvatarRoot"],
["AvatarGroup", "AvatarGroupRoot"],
["Badge", "BadgeRoot"],
["Breadcrumbs", "BreadcrumbsRoot"],
["Button", "ButtonRoot"],
["ButtonGroup", "ButtonGroupRoot"],
["Calendar", "CalendarRoot"],
["Card", "CardRoot"],
["Checkbox", "CheckboxRoot"],
["Chip", "ChipRoot"],
["CloseButton", "CloseButtonRoot"],
["ColorArea", "ColorAreaRoot"],
["ColorField", "ColorFieldRoot"],
["ColorInputGroup", "ColorInputGroupRoot"],
["ColorPicker", "ColorPickerRoot"],
["ColorSlider", "ColorSliderRoot"],
["ColorSwatch", "ColorSwatchRoot"],
["ColorSwatchPicker", "ColorSwatchPickerRoot"],
["ComboBox", "ComboBoxRoot"],
["DateField", "DateFieldRoot"],
["DateInputGroup", "DateInputGroupRoot"],
["DatePicker", "DatePickerRoot"],
["DateRangePicker", "DateRangePickerRoot"],
["Description", "DescriptionRoot"],
["Disclosure", "DisclosureRoot"],
["DisclosureGroup", "DisclosureGroupRoot"],
["Drawer", "DrawerRoot"],
["Dropdown", "DropdownRoot"],
["EmptyState", "EmptyStateRoot"],
["ErrorMessage", "ErrorMessageRoot"],
["FieldError", "FieldErrorRoot"],
["Fieldset", "FieldsetRoot"],
["Form", "FormRoot"],
["Header", "HeaderRoot"],
["Input", "InputRoot"],
["InputGroup", "InputGroupRoot"],
["InputOTP", "InputOTPRoot"],
["Kbd", "KbdRoot"],
["Label", "LabelRoot"],
["Link", "LinkRoot"],
["ListBox", "ListBoxRoot"],
["ListBoxItem", "ListBoxItemRoot"],
["ListBoxSection", "ListBoxSectionRoot"],
["Menu", "MenuRoot"],
["MenuItem", "MenuItemRoot"],
["MenuSection", "MenuSectionRoot"],
["Meter", "MeterRoot"],
["Modal", "ModalRoot"],
["NumberField", "NumberFieldRoot"],
["Pagination", "PaginationRoot"],
["Popover", "PopoverRoot"],
["ProgressBar", "ProgressBarRoot"],
["ProgressCircle", "ProgressCircleRoot"],
["Radio", "RadioRoot"],
["RadioGroup", "RadioGroupRoot"],
["RangeCalendar", "RangeCalendarRoot"],
["ScrollShadow", "ScrollShadowRoot"],
["SearchField", "SearchFieldRoot"],
["Select", "SelectRoot"],
["Separator", "SeparatorRoot"],
["Skeleton", "SkeletonRoot"],
["Slider", "SliderRoot"],
["Spinner", "SpinnerRoot"],
["Surface", "SurfaceRoot"],
["Switch", "SwitchRoot"],
["SwitchGroup", "SwitchGroupRoot"],
["Table", "TableRoot"],
["Tabs", "TabsRoot"],
["Tag", "TagRoot"],
["TagGroup", "TagGroupRoot"],
["TextArea", "TextAreaRoot"],
["TextField", "TextFieldRoot"],
["TimeField", "TimeFieldRoot"],
["ToggleButton", "ToggleButtonRoot"],
["ToggleButtonGroup", "ToggleButtonGroupRoot"],
["Toolbar", "ToolbarRoot"],
["Tooltip", "TooltipRoot"],
["Typography", "TypographyRoot"]
[
"Accordion",
"AccordionRoot"
],
[
"Alert",
"AlertRoot"
],
[
"AlertDialog",
"AlertDialogRoot"
],
[
"Autocomplete",
"AutocompleteRoot"
],
[
"Avatar",
"AvatarRoot"
],
[
"AvatarGroup",
"AvatarGroupRoot"
],
[
"Badge",
"BadgeRoot"
],
[
"Breadcrumbs",
"BreadcrumbsRoot"
],
[
"Button",
"ButtonRoot"
],
[
"ButtonGroup",
"ButtonGroupRoot"
],
[
"Calendar",
"CalendarRoot"
],
[
"Card",
"CardRoot"
],
[
"Checkbox",
"CheckboxRoot"
],
[
"Chip",
"ChipRoot"
],
[
"CloseButton",
"CloseButtonRoot"
],
[
"ColorArea",
"ColorAreaRoot"
],
[
"ColorField",
"ColorFieldRoot"
],
[
"ColorInputGroup",
"ColorInputGroupRoot"
],
[
"ColorPicker",
"ColorPickerRoot"
],
[
"ColorSlider",
"ColorSliderRoot"
],
[
"ColorSwatch",
"ColorSwatchRoot"
],
[
"ColorSwatchPicker",
"ColorSwatchPickerRoot"
],
[
"ComboBox",
"ComboBoxRoot"
],
[
"DateField",
"DateFieldRoot"
],
[
"DateInputGroup",
"DateInputGroupRoot"
],
[
"DatePicker",
"DatePickerRoot"
],
[
"DateRangePicker",
"DateRangePickerRoot"
],
[
"Description",
"DescriptionRoot"
],
[
"Disclosure",
"DisclosureRoot"
],
[
"DisclosureGroup",
"DisclosureGroupRoot"
],
[
"Drawer",
"DrawerRoot"
],
[
"Dropdown",
"DropdownRoot"
],
[
"EmptyState",
"EmptyStateRoot"
],
[
"ErrorMessage",
"ErrorMessageRoot"
],
[
"FieldError",
"FieldErrorRoot"
],
[
"Fieldset",
"FieldsetRoot"
],
[
"Form",
"FormRoot"
],
[
"Header",
"HeaderRoot"
],
[
"Input",
"InputRoot"
],
[
"InputGroup",
"InputGroupRoot"
],
[
"InputOTP",
"InputOTPRoot"
],
[
"Kbd",
"KbdRoot"
],
[
"Label",
"LabelRoot"
],
[
"Link",
"LinkRoot"
],
[
"ListBox",
"ListBoxRoot"
],
[
"ListBoxItem",
"ListBoxItemRoot"
],
[
"ListBoxSection",
"ListBoxSectionRoot"
],
[
"Menu",
"MenuRoot"
],
[
"MenuItem",
"MenuItemRoot"
],
[
"MenuSection",
"MenuSectionRoot"
],
[
"Meter",
"MeterRoot"
],
[
"Modal",
"ModalRoot"
],
[
"NumberField",
"NumberFieldRoot"
],
[
"Pagination",
"PaginationRoot"
],
[
"Popover",
"PopoverRoot"
],
[
"ProgressBar",
"ProgressBarRoot"
],
[
"ProgressCircle",
"ProgressCircleRoot"
],
[
"Radio",
"RadioRoot"
],
[
"RadioGroup",
"RadioGroupRoot"
],
[
"RangeCalendar",
"RangeCalendarRoot"
],
[
"ScrollShadow",
"ScrollShadowRoot"
],
[
"SearchField",
"SearchFieldRoot"
],
[
"Select",
"SelectRoot"
],
[
"Separator",
"SeparatorRoot"
],
[
"Skeleton",
"SkeletonRoot"
],
[
"Slider",
"SliderRoot"
],
[
"Spinner",
"SpinnerRoot"
],
[
"Surface",
"SurfaceRoot"
],
[
"Switch",
"SwitchRoot"
],
[
"SwitchGroup",
"SwitchGroupRoot"
],
[
"Table",
"TableRoot"
],
[
"Tabs",
"TabsRoot"
],
[
"Tag",
"TagRoot"
],
[
"TagGroup",
"TagGroupRoot"
],
[
"TextArea",
"TextAreaRoot"
],
[
"TextField",
"TextFieldRoot"
],
[
"TimeField",
"TimeFieldRoot"
],
[
"ToggleButton",
"ToggleButtonRoot"
],
[
"ToggleButtonGroup",
"ToggleButtonGroupRoot"
],
[
"Toolbar",
"ToolbarRoot"
],
[
"Tooltip",
"TooltipRoot"
],
[
"Typography",
"TypographyRoot"
]
],
"css": []
},