merge: integrate public collection picker migration

# Conflicts:
#	AGENTS.md
#	docs/compatibility.md
#	docs/upstream.md
#	docs/verification.md
#	package.json
#	packages/styles/src/index.ts
#	packages/vue/src/index.ts
#	packages/vue/src/types.ts
#	tests/package/README.md
This commit is contained in:
maoyingjie
2026-10-25 20:55:18 +08:00
201 changed files with 25848 additions and 48 deletions
+5
View File
@@ -33,6 +33,10 @@ const animationLab =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("overlay-animation");
import OverlayLab from "./OverlayLab.vue";
import FilterVirtualLab from "./FilterVirtualLab.vue";
const filterVirtualLab =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("filter-virtual");
import OverlayComponentsLab from "./OverlayComponentsLab.vue";
const componentsLab =
typeof window !== "undefined" &&
@@ -61,6 +65,7 @@ function save() {
<OverlayAnimationLab v-else-if="animationLab" />
<OverlayComponentsLab v-else-if="componentsLab" />
<OverlayLab v-else-if="overlayLab" />
<FilterVirtualLab v-else-if="filterVirtualLab" />
<div v-else class="lab" :data-theme="dark ? 'dark' : 'light'">
<header>
<a class="wordmark" href="#">
+55
View File
@@ -0,0 +1,55 @@
<script setup lang="ts">
/**
* B02a verification page: proves the optional collection-owner protocol
* (filter + virtual focus) that ComboBox and Autocomplete will consume.
* This is a harness, not a public component.
*/
import FilterVirtualCombobox from "../../../packages/vue/tests/fixtures/FilterVirtualCombobox.vue";
const manyOptions = Array.from({ length: 40 }, (_, index) => ({
id: `row-${index}`,
text: `第 ${index} 行`,
}));
</script>
<template>
<main
class="lab"
data-theme="light"
style="padding: 32px; display: grid; gap: 32px"
>
<header style="display: grid; gap: 8px">
<h1 style="font-size: 20px; font-weight: 600">B02a 过滤与虚拟焦点验证</h1>
<p style="font-size: 13px; color: var(--muted)">
输入“狗”或“鼠”过滤列表;方向键只在可见行之间移动;焦点始终留在输入框,高亮行由
aria-activedescendant 指向。第二个实例的父级拒绝选择提案。
</p>
</header>
<section style="display: grid; gap: 8px">
<h2 style="font-size: 15px; font-weight: 600">1. 过滤 + 虚拟焦点</h2>
<FilterVirtualCombobox />
</section>
<section style="display: grid; gap: 8px">
<h2 style="font-size: 15px; font-weight: 600">
2. 受控拒绝(选择提案不生效)
</h2>
<FilterVirtualCombobox :accept-selection="false" />
</section>
<section style="display: grid; gap: 8px">
<h2 style="font-size: 15px; font-weight: 600">3. 不过滤(对照)</h2>
<FilterVirtualCombobox :filter-enabled="false" />
</section>
<section style="display: grid; gap: 8px">
<h2 style="font-size: 15px; font-weight: 600">4. 虚拟窗口 + 过滤</h2>
<p style="font-size: 13px; color: var(--muted)">
40 行数据,只渲染可见 4 行;输入“1”过滤后窗口、总高度与 posinset/setsize
都应随可见集合收缩。
</p>
<FilterVirtualCombobox :options="manyOptions" :virtualized="true" />
</section>
</main>
</template>