1b972a78ba
ComboBox and Autocomplete need two capabilities the collection protocol did not express: filtering a collection by an external input value, and keeping DOM focus in the composite's input while an active option is tracked for aria-activedescendant. Both are opt-in members on CollectionOwner plus optionId/reveal on the owned collection. Standalone ListBox and Select provide none of them and keep their previous behaviour: DOM focus still moves into the list, one roving tab stop, no row filtering. Filtered rows stay mounted with data-filtered (display:none) so their text and accepted selection survive; only display, aria positions and keyboard navigation see the visible subset. Under virtual focus the list never takes DOM focus, never exposes a roving tab stop, and leaves keyboard handling to the composite; reveal() scrolls a virtualized window and waits for the row to mount before the composite reads its id. Includes the playground verification page, a ten-case suite and the B02a section of the migration report.
40 lines
3.4 KiB
JSON
40 lines
3.4 KiB
JSON
{
|
|
"name": "heroui-vue-workspace",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "pnpm build && pnpm --filter @heroui-vue/docs dev",
|
|
"dev:docs": "pnpm dev",
|
|
"build": "pnpm --filter @heroui-vue/styles build && pnpm --filter @heroui-vue/components build",
|
|
"build:playground": "pnpm build && pnpm --filter @heroui-vue/playground build",
|
|
"build:docs": "pnpm build && pnpm --filter @heroui-vue/docs build",
|
|
"typecheck": "vue-tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run tests/choice-demos.test.ts tests/choice-fields.test.ts tests/fieldset-search-field.test.ts tests/components.test.ts tests/composition.test.ts tests/docs-search.test.ts tests/button-demos.test.ts tests/aligned-components.test.ts tests/surface-link-spinner.test.ts tests/close-button-avatar-skeleton.test.ts tests/separator-kbd-chip.test.ts tests/badge-alert.test.ts tests/input-group.test.ts tests/field-docs-textarea.test.ts tests/field-foundation.test.ts tests/typography-empty-breadcrumbs.test.ts tests/progress-meter.test.ts tests/disclosure-accordion.test.ts tests/overlay-foundation.test.ts tests/modal.test.ts tests/popover-tooltip.test.ts tests/overlay-demos.test.ts tests/scroll-tabs.test.ts tests/button-toggle.test.ts tests/m26-review.probe.test.ts tests/toolbar.test.ts tests/m29-review.probe.test.ts tests/m30-m32-review.probe.test.ts tests/pagination.test.ts tests/header.test.ts tests/input-otp.test.ts tests/number-field-foundation.test.ts tests/number-field.test.ts tests/slider-foundation.test.ts tests/slider.test.ts tests/collection-state.test.ts tests/collection-foundation.test.ts tests/list-box.test.ts tests/alert-dialog.test.ts tests/drawer.test.ts tests/m33-m34-review.probe.test.ts tests/m33-m34-lifecycle-review.probe.test.ts tests/m33-m34-coexist.test.ts tests/select.test.ts tests/date-value.test.ts tests/date-model.test.ts tests/date-foundation.test.ts tests/date-field.test.ts tests/date-field-demos.test.ts tests/toast.test.ts tests/table.test.ts tests/m35-m36-takeover.test.ts tests/m35-m36-review.probe.test.ts tests/m35-m36-review-2.probe.test.ts tests/m35-m36-review-3.probe.test.ts tests/m35-m36-review-4.probe.test.ts tests/m35-m36-review-5.probe.test.ts tests/m35-m36-hydration.test.ts tests/docs-shell.test.ts tests/b01-menu-dropdown.test.ts tests/b01-review.probe.test.ts tests/b01-complete-review.probe.test.ts tests/cssom.test.ts tests/tag-error-message.test.ts tests/collection-filter-virtual.test.ts",
|
|
"test:ssr": "vitest run tests/ssr.test.ts tests/input-otp-ssr.test.ts tests/slider-foundation-ssr.test.ts tests/slider-ssr.test.ts tests/collection-foundation-ssr.test.ts tests/list-box-ssr.test.ts tests/select-ssr.test.ts tests/date-foundation-ssr.test.ts tests/date-field-ssr.test.ts tests/m35-m36-ssr.test.ts",
|
|
"format": "prettier --check .",
|
|
"format:fix": "prettier --write .",
|
|
"dev:playground": "pnpm build && pnpm --filter @heroui-vue/playground dev"
|
|
},
|
|
"devDependencies": {
|
|
"@internationalized/date": "3.12.4",
|
|
"@types/node": "^22.0.0",
|
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
"@vue/server-renderer": "^3.5.44",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"jsdom": "^26.1.0",
|
|
"prettier": "^3.6.2",
|
|
"typescript": "~5.9.3",
|
|
"vite": "^7.1.0",
|
|
"vite-plugin-dts": "^4.5.4",
|
|
"vitest": "^3.2.4",
|
|
"vue": "^3.5.44",
|
|
"vue-tsc": "^3.1.0"
|
|
}
|
|
}
|